PageSourceSearch

https://coinsamba.com/_next/static/chunks/pages/tools/is-checksum-address-11c6cd8cad6d25c8.js

js coinsamba.com collected 2026-10-05 10:50:49 UTC 16,678 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9903],{1986:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876);r(14232);var a=r(20879),l=r(17416),n=r(96960);let i=e=>{let{children:t,title:r,ogImageText:i,description:d,keywords:o,supportedChainIds:c}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{title:r,description:d,keywords:o,ogImageText:i}),(0,s.jsx)(n.A,{supportedChainIds:c}),(0,s.jsx)("main",{className:"w-full max-w-[66rem] mx-auto",children:t}),(0,s.jsx)(l.A,{})]})}},9947:(e,t,r)=>{"use strict";r.d(t,{Ke:()=>w,R6:()=>N,UC:()=>R,bL:()=>k,l9:()=>C,z3:()=>p});var s=r(14232),a=r(33716),l=r(91844),n=r(58162),i=r(81285),d=r(10714),o=r(66326),c=r(96822),m=r(70294),u=r(37876),x="Collapsible",[f,p]=(0,l.A)(x),[h,j]=f(x),v=s.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:a,defaultOpen:l,disabled:i,onOpenChange:d,...c}=e,[f,p]=(0,n.i)({prop:a,defaultProp:l??!1,onChange:d,caller:x});return(0,u.jsx)(h,{scope:r,disabled:i,contentId:(0,m.B)(),open:f,onOpenToggle:s.useCallback(()=>p(e=>!e),[p]),children:(0,u.jsx)(o.sG.div,{"data-state":A(f),"data-disabled":i?"":void 0,...c,ref:t})})});v.displayName=x;var b="CollapsibleTrigger",N=s.forwardRef((e,t)=>{let{__scopeCollapsible:r,...s}=e,l=j(b,r);return(0,u.jsx)(o.sG.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":A(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...s,ref:t,onClick:(0,a.m)(e.onClick,l.onOpenToggle)})});N.displayName=b;var g="CollapsibleContent",w=s.forwardRef((e,t)=>{let{forceMount:r,...s}=e,a=j(g,e.__scopeCollapsible);return(0,u.jsx)(c.C,{present:r||a.open,children:({present:e})=>(0,u.jsx)(y,{...s,ref:t,present:e})})});w.displayName=g;var y=s.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:a,children:l,...n}=e,c=j(g,r),[m,x]=s.useState(a),f=s.useRef(null),p=(0,d.s)(t,f),h=s.useRef(0),v=h.current,b=s.useRef(0),N=b.current,w=c.open||m,y=s.useRef(w),k=s.useRef(void 0);return s.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,i.N)(()=>{let e=f.current;if(e){k.current=k.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,b.current=t.width,y.current||(e.style.transitionDuration=k.current.transitionDuration,e.style.animationName=k.current.animationName),x(a)}},[c.open,a]),(0,u.jsx)(o.sG.div,{"data-state":A(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...n,ref:p,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:w&&l})});function A(e){return e?"open":"closed"}var k=v,C=N,R=w},30621:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(37876);r(14232);let a=()=>(0,s.jsx)("span",{id:"ct_cK5014cOteJ"})},31188:(e,t,r)=>{"use strict";r.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>n,aR:()=>i,wL:()=>m});var s=r(37876),a=r(14232),l=r(15565);let n=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});n.displayName="Card";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",r),...a})});i.displayName="CardHeader";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});d.displayName="CardTitle";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})});o.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let m=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",r),...a})});m.displayName="CardFooter"},49002:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(37876);r(14232);var a=r(48230),l=r.n(a),n=r(49038),i=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,i.Bd)(["common"]);return(0,s.jsxs)("div",{className:t,children:[(0,s.jsxs)("p",{className:"text-lg mb-2",children:[(0,s.jsx)(n.EcP,{className:"inline-block mr-2 text-green-500 text-2xl"}),r("common:joinWhatsAppCommunity")]}),(0,s.jsx)(l(),{href:"/community",className:"text-blue-600 hover:underline font-medium",children:r("common:clickHereToJoin")})]})}},75316:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>d,TN:()=>c,XL:()=>o});var s=r(37876),a=r(14232),l=r(47137),n=r(15565);let i=(0,l.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d=a.forwardRef((e,t)=>
1{let{className:r,variant:a,...l}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(i({variant:a}),r),...l})});d.displayName="Alert";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});o.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...a})});c.displayName="AlertDescription"},76619:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(37876);r(14232);var a=r(30621);let l=()=>(0,s.jsx)("div",{className:"row mb-3 ",children:(0,s.jsx)("div",{className:"col text-center",children:(0,s.jsx)(a.A,{})})})},78716:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>y,default:()=>A});var s=r(37876),a=r(14232),l=r(1986),n=r(49002),i=r(62002),d=r(90806),o=r(91541),c=r(76369),m=r(95159),u=r(48230),x=r.n(u),f=r(31188),p=r(75316),h=r(88016),j=r(67514),v=r(42298),b=r(76619),N=r(57512),g=r(32544);let w=()=>{let{t:e}=(0,i.Bd)("is-checksum-address");return(0,s.jsxs)(h.nD,{type:"multiple",className:"w-full max-w-4xl mx-auto border rounded-lg p-4",children:[(0,s.jsxs)(h.As,{value:"item-1",className:"border-b",children:[(0,s.jsx)(h.$m,{className:"text-left",children:e("faq-1-title")}),(0,s.jsx)(h.ub,{children:(0,s.jsx)(i.x6,{i18nKey:"is-checksum-address:faq-1-content",components:{strong:(0,s.jsx)("strong",{}),br:(0,s.jsx)("br",{})}})})]}),(0,s.jsxs)(h.As,{value:"item-2",className:"border-b",children:[(0,s.jsx)(h.$m,{className:"text-left",children:e("faq-2-title")}),(0,s.jsx)(h.ub,{children:(0,s.jsx)(i.x6,{i18nKey:"is-checksum-address:faq-2-content",components:{strong:(0,s.jsx)("strong",{}),br:(0,s.jsx)("br",{})}})})]}),(0,s.jsxs)(h.As,{value:"item-3",className:"border-b",children:[(0,s.jsx)(h.$m,{className:"text-left",children:e("faq-3-title")}),(0,s.jsx)(h.ub,{children:(0,s.jsx)(i.x6,{i18nKey:"is-checksum-address:faq-3-content",components:{strong:(0,s.jsx)("strong",{}),br:(0,s.jsx)("br",{})}})})]})]})};var y=!0;let A=()=>{let{t:e}=(0,i.Bd)("is-checksum-address"),[t,r]=(0,a.useState)(""),[u,h]=(0,a.useState)(""),[y,A]=(0,a.useState)(!1),[k,C]=(0,a.useState)(!1),[R,_]=(0,a.useState)(!1),[I,T]=(0,a.useState)(!1),D=t=>{navigator.clipboard.writeText(t),(0,c.oR)({title:e("copy-success")})};return(0,s.jsxs)(l.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)(f.Zp,{children:(0,s.jsxs)(f.Wu,{children:[(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"inputAddress",className:"block mb-2 text-sm font-medium",children:e("ethereum-address-label")}),(0,s.jsx)(j.p,{autoComplete:"off",id:"inputAddress",type:"text",name:"inputAddress",className:"mb-2 mt-1 w-full font-mono",placeholder:e("address-placeholder"),value:t,autoFocus:!0,required:!0,title:e("insert-address"),onChange:e=>{let{target:t}=e;r(t.value),_(!1),A(!1),h(""),C(!1)}}),R&&(0,s.jsx)(p.Fc,{variant:"destructive",children:e("invalid-address-error")})]}),(0,s.jsx)(v.$,{onClick:()=>(()=>{if(!t||!(0,N.P)(t)){_(!0),A(!1),h(""),C(!1),(0,c.oR)({title:e("invalid-address-error"),variant:"destructive"});return}T(!0),_(!1);try{let r=(0,g.b)(t);h(r);let s=t===r;C(s),A(!0),s?(0,c.oR)({title:e("already-checksum-message")}):(0,c.oR)({title:e("difference-message")})}catch(t){_(!0),A(!1),h(""),C(!1),(0,o.H)(t),(0,c.oR)({title:e("validation-error"),variant:"destructive"})}finally{T(!1)}})(),className:"mt-2 w-full",disabled:I||!t.trim(),children:I?e("validating"):e("validate-button")}),y&&u&&(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold mb-4",children:e("result-title")}),(0,s.jsx)(p.Fc,{className:k?"border-green-500":"border-yellow-500",variant:"default",children:(0,s.jsx)(p.TN,{className:"text-base",children:k?e("is-valid-checksum"):e("is-valid-not-checksum")})}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsx)("h4",{className:"text-md font-semibold mb-3",children:e("comparison-title")}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,s.jsx)("label",{htmlFor:"originalAddress",className:"block text-sm font-medium",children:e("original-address-label")}),(0,s.jsx)(v.$,{type:"button",variant:"outline",size:"sm",onClick:()=>D(t),children:e("copy-button")})]}),(0,s.jsx)(j.p,{id:"originalAddress",type:"text",readOnly:!0,value:t,className:"font-mono",title:e("original-address-label")})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,s.jsx)("label",{htmlFor:"checksumAddress",className:"block text-sm font-medium",children:e("checksum-address-label")}),(0,s.jsx)(v.$,{type:"button",variant:"outline",size:"sm",onClick:()=>D(u),children:e("copy-button")})]}),(0,s.jsx)(j.p,{id:"checksumAddress",type:"text",readOnly:!0,value:u,className:"font-mono",title:e("checksum-address-label")})]})]}),(0,s.jsxs)(p.Fc,{className:"mt-4",children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),(0,s.jsx)(p.TN,{children:k?e("already-checksum-message"):e("difference-message")})]})]})]})]})}),(0,s.jsx)(x(),{href:"/defi/token-maker",className:"px-2",children:(0,s.jsxs)(p.Fc,{children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),(0,s.jsx)(p.TN,{children:e("ad")})]})}),(0,s.jsx)(b.A,{}),(0,s.jsx)("div",{className:"max-w-4xl mx-auto mt-8 px-4",children:(0,s.jsx)(n.A,{})})]}),(0,s.jsx)("div",{className:"py-20",children:(0,s.jsx)(w,{})})]})}},82540:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/is-checksum-address",function(){return r(78716)}])},88016:(e,t,r)=>{"use strict";r.d(t,{$m:()=>c,As:()=>o,nD:()=>d,ub:()=>m});var s=r(37876),a=r(14232),l=r(92413),n=r(58725),i=r(15565);let d=l.bL,o=a.forwardRef((e,t)=>
1{let{className:r,...a}=e;return(0,s.jsx)(l.q7,{ref:t,className:(0,i.cn)("border-b",r),...a})});o.displayName="AccordionItem";let c=a.forwardRef((e,t)=>{let{className:r,children:a,...d}=e;return(0,s.jsx)(l.Y9,{className:"flex",children:(0,s.jsxs)(l.l9,{ref:t,className:(0,i.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",r),...d,children:[a,(0,s.jsx)(n.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});c.displayName=l.l9.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,...n}=e;return(0,s.jsx)(l.UC,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,s.jsx)("div",{className:(0,i.cn)("pb-4 pt-0",r),children:a})})});m.displayName=l.UC.displayName},90806:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(37876);r(14232);var a=r(30621);function l(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)(a.A,{})}),(0,s.jsx)("div",{className:"w-full ".concat(r?"lg:w-1/2":""," lg:order-1"),children:t})]})}},92413:(e,t,r)=>{"use strict";r.d(t,{UC:()=>W,Y9:()=>G,bL:()=>K,l9:()=>M,q7:()=>U});var s=r(14232),a=r(91844),l=r(88775),n=r(10714),i=r(33716),d=r(58162),o=r(66326),c=r(9947),m=r(70294),u=r(14966),x=r(37876),f="Accordion",p=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[h,j,v]=(0,l.N)(f),[b,N]=(0,a.A)(f,[v,c.z3]),g=(0,c.z3)(),w=s.forwardRef((e,t)=>{let{type:r,...s}=e;return(0,x.jsx)(h.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,x.jsx)(_,{...s,ref:t}):(0,x.jsx)(R,{...s,ref:t})})});w.displayName=f;var[y,A]=b(f),[k,C]=b(f,{collapsible:!1}),R=s.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:l=()=>{},collapsible:n=!1,...i}=e,[o,c]=(0,d.i)({prop:r,defaultProp:a??"",onChange:l,caller:f});return(0,x.jsx)(y,{scope:e.__scopeAccordion,value:s.useMemo(()=>o?[o]:[],[o]),onItemOpen:c,onItemClose:s.useCallback(()=>n&&c(""),[n,c]),children:(0,x.jsx)(k,{scope:e.__scopeAccordion,collapsible:n,children:(0,x.jsx)(D,{...i,ref:t})})})}),_=s.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:l=()=>{},...n}=e,[i,o]=(0,d.i)({prop:r,defaultProp:a??[],onChange:l,caller:f}),c=s.useCallback(e=>o((t=[])=>[...t,e]),[o]),m=s.useCallback(e=>o((t=[])=>t.filter(t=>t!==e)),[o]);return(0,x.jsx)(y,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:m,children:(0,x.jsx)(k,{scope:e.__scopeAccordion,collapsible:!0,children:(0,x.jsx)(D,{...n,ref:t})})})}),[I,T]=b(f),D=s.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:a,dir:l,orientation:d="vertical",...c}=e,m=s.useRef(null),f=(0,n.s)(m,t),v=j(r),b="ltr"===(0,u.jH)(l),N=(0,i.m)(e.onKeyDown,e=>{if(!p.includes(e.key))return;let t=e.target,r=v().filter(e=>!e.ref.current?.disabled),s=r.findIndex(e=>e.ref.current===t),a=r.length;if(-1===s)return;e.preventDefault();let l=s,n=a-1,i=()=>{(l=s+1)>n&&(l=0)},o=()=>{(l=s-1)<0&&(l=n)};switch(e.key){case"Home":l=0;break;case"End":l=n;break;case"ArrowRight":"horizontal"===d&&(b?i():o());break;case"ArrowDown":"vertical"===d&&i();break;case"ArrowLeft":"horizontal"===d&&(b?o():i());break;case"ArrowUp":"vertical"===d&&o()}let c=l%a;r[c].ref.current?.focus()});return(0,x.jsx)(I,{scope:r,disabled:a,direction:l,orientation:d,children:(0,x.jsx)(h.Slot,{scope:r,children:(0,x.jsx)(o.sG.div,{...c,"data-orientation":d,ref:f,onKeyDown:a?void 0:N})})})}),F="AccordionItem",[O,S]=b(F),q=s.forwardRef((e,t)=>{let{__scopeAccordion:r,value:s,...a}=e,l=T(F,r),n=A(F,r),i=g(r),d=(0,m.B)(),o=s&&n.value.includes(s)||!1,u=l.disabled||e.disabled;return(0,x.jsx)(O,{scope:r,open:o,disabled:u,triggerId:d,children:(0,x.jsx)(c.bL,{"data-orientation":l.orientation,"data-state":H(o),...i,...a,ref:t,disabled:u,open:o,onOpenChange:e=>{e?n.onItemOpen(s):n.onItemClose(s)}})})});q.displayName=F;var E="AccordionHeader",$=s.forwardRef((e,t)=>{let{__scopeAccordion:r,...s}=e,a=T(f,r),l=S(E,r);return(0,x.jsx)(o.sG.h3,{"data-orientation":a.orientation,"data-state":H(l.open),"data-disabled":l.disabled?"":void 0,...s,ref:t})});$.displayName=E;var z="AccordionTrigger",B=s.forwardRef((e,t)=>
1{let{__scopeAccordion:r,...s}=e,a=T(f,r),l=S(z,r),n=C(z,r),i=g(r);return(0,x.jsx)(h.ItemSlot,{scope:r,children:(0,x.jsx)(c.l9,{"aria-disabled":l.open&&!n.collapsible||void 0,"data-orientation":a.orientation,id:l.triggerId,...i,...s,ref:t})})});B.displayName=z;var L="AccordionContent",P=s.forwardRef((e,t)=>{let{__scopeAccordion:r,...s}=e,a=T(f,r),l=S(L,r),n=g(r);return(0,x.jsx)(c.UC,{role:"region","aria-labelledby":l.triggerId,"data-orientation":a.orientation,...n,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function H(e){return e?"open":"closed"}P.displayName=L;var K=w,U=q,G=$,M=B,W=P},95159:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])}},e=>{e.O(0,[8585,4938,2909,9015,1768,8260,5733,636,6593,8792],()=>e(e.s=82540)),_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.