diff --git a/404.html b/404.html index ceb0e92..35a22d5 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -EthDA \ No newline at end of file +EthDA \ No newline at end of file diff --git a/_next/static/chunks/app/blobtx/page-2d8891b9b7a9863c.js b/_next/static/chunks/app/blobtx/page-2d8891b9b7a9863c.js deleted file mode 100644 index 36adc80..0000000 --- a/_next/static/chunks/app/blobtx/page-2d8891b9b7a9863c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1949],{93598:function(e,t,s){Promise.resolve().then(s.bind(s,4289))},4289:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return U}});var n=s(5761),l=s(43359),o=s.n(l);let ALoading=e=>{let{className:t,...s}=e;return(0,n.jsx)("div",{id:"modal",...s,className:o()("text-black w-full h-full flex items-center justify-center",t),children:(0,n.jsx)("div",{className:" w-[420px] bg-white flex justify-center h-[340px] rounded-xl",children:(0,n.jsxs)("div",{className:" flex flex-col items-center w-full justify-center bg-[#FFFAF6] mx-[10px] my-[10px] border-dashed border rounded-xl border-[#FC7823]",children:[(0,n.jsx)("img",{src:"loading.svg",className:"animate-spin"}),(0,n.jsx)("div",{className:" mt-5 font-medium text-xl text-[#FC7823] ",children:"Sending"})]})})})},LoadingFull=()=>(0,n.jsx)(ALoading,{className:"fixed z-50 left-0 top-0 w-full !h-full bg-black/25 px-10"}),AToastFull=e=>{let{onLeftButton:t,className:s,contentClassName:l,onRightButton:a,chilren:r,size:i="",...c}=e;return(0,n.jsx)("div",{id:"modal",...c,className:o()("text-black w-full h-full flex items-center justify-center fixed z-50 left-0 top-0 bg-black/25 px-10 ",s),children:(0,n.jsx)("div",{className:o()(" w-[420px] relative bg-white flex justify-center h-[340px] rounded-xl",l),children:(0,n.jsx)("div",{className:" flex flex-col items-center w-full justify-center bg-[#FFFAF6] mx-[10px] my-[10px] border-dashed border rounded-xl border-[#FC7823]",children:r})})})};var a=s(83376),r=s(45489),i=s(44103);function _templateObject(){let e=(0,r._)(["\n cursor: pointer;\n position: relative;\n display: flex;\n color: #ffffff;\n justify-content: soace-between;\n background: #fc7823;\n align-items: center;\n font-size: 16px;\n font-weight: 500;\n width: auto;\n height: 48px;\n padding-left: 20px;\n padding-right: 20px;\n border-radius: 10px;\n gap: 10px;\n"]);return _templateObject=function(){return e},e}let c=i.ZP.button(_templateObject()),d=i.ZP.div(e=>{let{}=e;return{borderRadius:"10px",backgroundImage:"linear-gradient(to left, #000000 30%, transparent 10%), linear-gradient(to left, #000000 30%, transparent 10%), linear-gradient(to top, #000000 40%, transparent 10%), linear-gradient(to top, #000000 30%, transparent 10%)",backgroundPosition:"left top, left bottom, left top, right top",backgroundRepeat:"repeat-x, repeat-x, repeat-y, repeat-y"}}),m=(0,i.ZP)(d)(e=>{let{}=e;return{backgroundSize:"10px 1px, 10px 1px, 1px 9px, 1px 9px"}}),x=(0,i.ZP)(d)(e=>{let{}=e;return{backgroundSize:"10px 1px, 10px 1px, 1px 9px, 1px 9px"}});var u=s(94488),p=s(73758),f=s(90077),h=s(54457),b=s(25997);function cn(){for(var e=arguments.length,t=Array(e),s=0;s{let{className:s,inset:l,children:o,...a}=e;return(0,n.jsxs)(p.fF,{ref:t,className:cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",l&&"pl-8",s),...a,children:[o,(0,n.jsx)(f.XCv,{className:"ml-auto h-4 w-4"})]})});j.displayName=p.fF.displayName;let v=u.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,n.jsx)(p.tu,{ref:t,className:cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...l})});v.displayName=p.tu.displayName;let N=u.forwardRef((e,t)=>{let{className:s,sideOffset:l=4,...o}=e;return(0,n.jsx)(p.Uv,{children:(0,n.jsx)(p.VY,{ref:t,sideOffset:l,className:cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...o})})});N.displayName=p.VY.displayName;let k=u.forwardRef((e,t)=>{let{className:s,inset:l,...o}=e;return(0,n.jsx)(p.ck,{ref:t,className:cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l&&"pl-8",s),...o})});k.displayName=p.ck.displayName;let y=u.forwardRef((e,t)=>{let{className:s,children:l,checked:o,...a}=e;return(0,n.jsxs)(p.oC,{ref:t,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:o,...a,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(p.wU,{children:(0,n.jsx)(f.nQG,{className:"h-4 w-4"})})}),l]})});y.displayName=p.oC.displayName;let F=u.forwardRef((e,t)=>{let{className:s,children:l,...o}=e;return(0,n.jsxs)(p.Rk,{ref:t,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...o,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(p.wU,{children:(0,n.jsx)(f.jXb,{className:"h-4 w-4 fill-current"})})}),l]})});F.displayName=p.Rk.displayName;let C=u.forwardRef((e,t)=>{let{className:s,inset:l,...o}=e;return(0,n.jsx)(p.__,{ref:t,className:cn("px-2 py-1.5 text-sm font-semibold",l&&"pl-8",s),...o})});C.displayName=p.__.displayName;let E=u.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,n.jsx)(p.Z0,{ref:t,className:cn("-mx-1 my-1 h-px bg-muted",s),...l})});function EncodeBlobs(e){let t=e.length;if(0===t)throw Error("invalid blob data");let s=0,n=-1,l=[new Uint8Array(131072).fill(0)];for(let o=0;ot&&(a=t),l[s].set(e.subarray(o,a),32*n+1)}return l}function createMetaDataForBlobs(e,t){return{originator:e,description:t.map(e=>e.content_type).join(","),content_type:"",extras:"",blobs:t}}function sleep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(t=>{setTimeout(()=>t(void 0),e)})}E.displayName=p.Z0.displayName,s(61900).Buffer;let formatEthereumAddress=e=>{if(!e)return"";let t=null==e?void 0:e.slice(0,7),s=null==e?void 0:e.slice(-5);return"".concat(t).concat("...").concat(s)},scrollToTop=()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0};function shortStr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6;if(!e)return"";if(e.length<=t+s)return e;let n=(null==e?void 0:e.substring(0,t))||"",l=(null==e?void 0:e.substring(e.length-s))||"";return"".concat(n,"...").concat(l)}let openTo=e=>{e&&window.open(e,"_blank")};var S=s(35336),T=s(42770),A=s(35848),B=s(85579),D=s(25986),P=s(1318),_=s(36014),I=s(22749),z=s(85870),R=s(77290),O=s(7248),G=s(88275),L=s(61900).Buffer;function ConnnectBtn(e){let t=(0,O.We)();return(0,n.jsx)("div",{className:"mt-[60px] mo:mt-[130px] flex justify-center",children:(0,n.jsxs)(c,{onClick:()=>{var s,n;null===(s=e.onClick)||void 0===s||s.call(e),null===(n=t.openConnectModal)||void 0===n||n.call(t)},children:[(0,n.jsx)("div",{className:" text-lg font-medium",children:"Connect wallet to start"}),(0,n.jsx)("div",{className:" rounded-lg bg-white w-[38px] h-[38px] flex items-center justify-center",children:(0,n.jsx)("img",{src:"/share2.svg"})})]})})}var U=(0,G.n)(()=>{let[e,t]=(0,u.useState)({loading:!1,success:!1,error:!1,errorMsg:"Failed",uploadImageError:""}),s=(0,u.useRef)(null),[l,o]=(0,u.useState)(null),[r,i]=(0,u.useState)(!0),[c,d]=(0,u.useState)(""),[p,h]=(0,u.useState)(""),[b,j]=(0,u.useState)(!1),[v,y]=(0,u.useState)(!0),{disconnect:F}=(0,_.q)(),[C,E]=(0,u.useState)(!1),{data:O}=(0,I.p)({chainId:S.k.id}),G=(0,z.t)({chainId:S.k.id}),[U,W]=(0,u.useState)(),M=(0,u.useRef)({isClickShowModal:!1}),Z=(0,R.m)(),H=["image/png","image/jpeg","image/jpg","image/gif","image/svg+xml"],J=Z.address&&Z.isConnected&&Z.chainId==S.k.id,clearAllState=()=>{t({loading:!1,success:!1,error:!1,errorMsg:"",uploadImageError:""}),E(!1),j(!1),o(null),s.current&&(s.current.value=""),h(""),i(!0),j(!1),d(""),W(null)},currentOpenState=()=>{document.body.classList.add("overflow-hidden"),document.documentElement.classList.add("overflow-hidden")},currentCloseState=()=>{document.body.classList.remove("overflow-hidden"),document.documentElement.classList.remove("overflow-hidden")},handleBlobClick=e=>{i(e)};(0,u.useEffect)(()=>(J||(clearAllState(),F()),()=>{}),[J]);let X=(0,u.useCallback)(e=>{var s;e.preventDefault();let n=null===(s=e.dataTransfer.files)||void 0===s?void 0:s.item(0);if(!H.includes(null==n?void 0:n.type)){t({uploadImageError:"Only PNG, JPG, JPEG, GIF formats are supported. Please select again."});return}let l=n.size/1024;if(l>128){t({uploadImageError:"File size exceeding 128KB! Please select again."});return}o(n)},[]),V=(0,u.useCallback)(e=>{var s;let n=null===(s=e.target.files)||void 0===s?void 0:s.item(0);if(!n)return;let l=n.size/1024;if(!H.includes(null==n?void 0:n.type)){t({uploadImageError:"Only PNG, JPG, JPEG, GIF formats are supported. Please select again."});return}if(l>128){t({uploadImageError:"File size exceeding 128KB! Please select again."});return}o(n);let a=new FileReader;a.onloadend=()=>{h(a.result)},a.readAsDataURL(n)},[]);(0,u.useEffect)(()=>(e.loading||e.success||e.error||C||e.uploadImageError?currentOpenState():currentCloseState(),()=>{currentCloseState()}),[e]);let handleFileSelect=()=>{s.current&&(s.current.value="",s.current.click())},onTranscode=async()=>{if(!O||!l||l.size>131072)return;let e=new FileReader;e.onload=()=>{W({text:L.from(c,"utf-8").valueOf(),img:L.from(e.result).valueOf(),imgType:l.type})},e.readAsArrayBuffer(l)},ub8a2numa=e=>{let t=[];for(let s=0;s{let t=[],s=[],n=[],l=[],o="".concat(S.k.blockExplorers.blobs.url,"/backend/convert/blob");for(let a=0;ae.json());t.push(r.commitments.map(e=>new Uint8Array(e.data))[0]),s.push(r.proofs.map(e=>new Uint8Array(e.data))[0]),n.push(r.versionedHashes.map(e=>new Uint8Array(Object.values(e)))[0]);let i=EncodeBlobs(e[a]);if(i.length>1)throw"blob too large!";l.push(i[0])}return{commitments:t,proofs:s,versionHashs:n,encodeBlobs:l}},loopGetResult=async e=>{let{result:s}=e;for(;;){await sleep(5e3);let e=await fetch(S.k.rpcUrls.default.http[0],{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({method:"eth_getTransactionReceipt",params:[s],id:1,jsonrpc:"2.0"})}).then(e=>e.json()).catch(e=>console.error(e)).finally(()=>t({loading:!1,success:!1,error:!0}));if(e.result&&"status"in e.result&&"0x1"===e.result.status)return t({loading:!1,success:!0,error:!1}),e;t({loading:!1,success:!1,error:!0});return}},onSendTx=async()=>{if(O&&U&&G&&Z&&Z.address)try{var e,s,n;t({loading:!0});let l=await G.getBalance({address:Z.address});if(l<(0,B.f)("0.00001"))return t({loading:!1,error:!0,errorMsg:"Insufficient funds for gas"});let o=[U.text,U.img],{commitments:a,proofs:r,versionHashs:i,encodeBlobs:c}=await getConvertOfZkg(o),d=await G.getBlobBaseFee(),m=await G.estimateFeesPerGas({type:"eip4844"});console.info("blobBaseFee",d,(null!==(e=m.gasPrice)&&void 0!==e?e:1n)*BigInt(o.length)*128n*1024n);let x=createMetaDataForBlobs(Z.address,[{content_type:"text/plain",versioned_hash:(0,D.ci)(i[0]),kzg_commitment:(0,D.ci)(a[0]),kzg_proof:(0,D.ci)(r[0])},{content_type:U.imgType,versioned_hash:(0,D.ci)(i[1]),kzg_commitment:(0,D.ci)(a[1]),kzg_proof:(0,D.ci)(r[1])}]),u=(0,D.$G)(JSON.stringify(x)),p=await G.getTransactionCount({address:Z.address}),f=21000n+10n*BigInt(u.length),h=S.k.contracts.blobTo.address,b=131072n*d*BigInt(o.length)*2n,g=await O.prepareTransactionRequest({account:Z.address,nonce:p,gas:f,gasPrice:1000000000n,to:h,value:b,data:u,type:"legacy",chain:S.k});console.info("tx:",g.gas,g.gasPrice,g.maxPriorityFeePerGas);let w=await (null==O?void 0:O.signTransaction(g)),j=w.startsWith("0x")?w:"0x".concat(w),v=(0,P.bt)(j);if(!v)return;let N=T.Gn.custom({name:"ethda",networkId:S.k.id,chainId:S.k.id},{eips:[1559,3860,4844]}),k=new A.fx({chainId:BigInt(S.k.id),nonce:p,to:h,data:u,value:b,maxPriorityFeePerGas:1000000000n,maxFeePerGas:1000000000n,gasLimit:v.gas,maxFeePerBlobGas:d,blobVersionedHashes:i,blobs:c,kzgCommitments:a,kzgProofs:r,v:(v.v||0n)-2n*BigInt(S.k.id)-35n,r:v.r,s:v.s},{common:N}),y=k.serializeNetworkWrapper(),F=L.from(y).toString("hex"),C=await fetch(S.k.rpcUrls.default.http[0],{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({method:"eth_sendRawTransaction",params:["0x"+F],id:2,jsonrpc:"2.0"})}).then(e=>e.json());if(C.error){let e=(null===(n=C.error)||void 0===n?void 0:null===(s=n.message)||void 0===s?void 0:s.includes("insufficient funds"))?"Insufficient funds for gas":"";console.info("error:",C),t({loading:!1,success:!1,error:!0,errorMsg:e})}else await loopGetResult(C)}catch(e){console.info(e),t({loading:!1,success:!1,error:!0})}},onSwitchTo=()=>{openTo("https://www.eip4844.com")},onGas=()=>{openTo(S.k.custom.bridgeUrl)},onClickAddNet=()=>{openTo("https://docs.ethda.io/resources/network-configuration/add-ethda-network/")};return(0,u.useEffect)(()=>{J&&M.current.isClickShowModal&&(E(!0),currentOpenState())},[J]),(0,n.jsxs)("div",{className:" font-montserrat",children:[(0,n.jsx)(a.h,{className:"".concat(J?"bg-[#FFFFFFCC]":"bg-[#FBE8DE] mo:bg-[#FCE1D6] mo:border-b-[#FCE1D6]"," py-[29px]"),containerClassName:"!w-full pl-9 pr-[31px] mo:w-full mo:pl-0 mo:pr-0 ",logo:"b-EthDA.svg",isShow:y,headerTextClassName:"!text-[#000000] gap-[50px]"}),(0,n.jsx)("div",{className:" ".concat(!J&&" bg-[url(/blobTXBg.svg)] mo:bg-[url(/b-m-EthDA.svg)] "," min-h-screen bg-cover object-cover "),children:J?(0,n.jsxs)("div",{className:"bg-[url(/black_bg.svg)] mo:bg-none bg-cover h-auto overflow-hidden ",children:[(0,n.jsx)("div",{className:"bg-[#F6F6F6]",children:(0,n.jsx)("div",{className:"mo:w-full mo:px-[30px] mx-auto w-container md:w-full md:px-[30px] ",children:(0,n.jsxs)("div",{className:" flex h-[120px] flex-row items-center mo:justify-between mo:h-[102px]",children:[(0,n.jsxs)("div",{className:"mo:hidden w-full justify-center flex flex-col gap-2 text-2xl md:text-lg font-normal",children:[(0,n.jsxs)("div",{className:" flex items-center font-medium",children:[(0,n.jsxs)("button",{onClick:onSwitchTo,className:"flex flex-row items-center",children:["Experience EIP-4844 ",(0,n.jsx)("img",{src:"/share3.svg",className:" mx-2"})]}),"blob-carrying transactions (Blob TX)"]}),(0,n.jsxs)("div",{className:"flex gap-5",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:"mo:w-full text-base underline mo:text-2xl ",children:"Add EthDA Testnet to wallet"}),(0,n.jsx)("button",{onClick:onGas,className:"mo:mt-[70px] mo:text-2xl text-base underline",children:"Bridge"})]})]}),(0,n.jsxs)(g,{children:[(0,n.jsx)(w,{asChild:!0,children:(0,n.jsx)("div",{className:"cursor-pointer rounded-lg border-[#FC7823] md:text-sm border h-[42px] items-center flex text-[#FC7823] px-[15px]",children:formatEthereumAddress(Z.address)})}),(0,n.jsx)(N,{align:"start",className:"w-[161px] bg-white",children:(0,n.jsx)(k,{textValue:"Disconnect",onClick:()=>{t({success:!1}),d(""),o(null),W(null),F()},className:"text-base hover:text-orange-400 cursor-pointer",children:"Disconnect"})})]}),(0,n.jsxs)("div",{onClick:()=>window.open("".concat(S.k.blockExplorers.blobs.url,"/address/").concat(null==Z?void 0:Z.address),"_blank"),className:" cursor-pointer flex mr-10 mo:mr-0 gap-[13px] items-center",children:[(0,n.jsx)("img",{className:"ml-5 mo:h-[32px]",src:"deal.svg"}),(0,n.jsx)("span",{className:"text-[#FC7823] font-normal text-base",children:"History"})]})]})})}),(0,n.jsx)("div",{className:"mo:w-full mo:px-[30px] mx-auto w-container md:w-full md:px-[30px] ",children:(0,n.jsxs)("div",{className:"flex mo:gap-5 gap-[100px] md:gap-[50px] mt-[30px] mo:mt-10 mo:flex mo:flex-wrap mo:w-full",children:[(0,n.jsxs)("div",{className:"w-[440px] md:w-[400px] h-full mo:flex mo:flex-wrap mo:w-full mo:flex-col ",children:[(0,n.jsxs)("div",{className:"sm:hidden w-full h-[120px] mo:h-auto font-medium items-center flex text-2xl mo:text-2xl md:text-lg mo:flex-wrap mo:flex-row",children:[(0,n.jsx)("button",{onClick:onSwitchTo,children:" Experience EIP-4844 "}),(0,n.jsx)("img",{src:"/share3.svg",className:" mx-2"})," blob-carrying transactions (Blob TX)"]}),(0,n.jsxs)("div",{className:"sm:hidden flex gap-2 mt-4 flex-col items-start",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:"text-base underline ",children:"Add EthDA Testnet to wallet"}),(0,n.jsx)("button",{onClick:onGas,className:"text-base underline",children:"Bridge"})]}),(0,n.jsx)("div",{className:" text-2xl font-medium mo:mt-10",children:"Input"}),(0,n.jsx)("div",{className:" mt-[36px] md:mt-[40px] mo:mt-5 font-medium mo:text-base md:text-sm mb-5",children:"Type text here"}),(0,n.jsx)(m,{className:" w-full h-[68px] px-2",children:(0,n.jsx)("input",{placeholder:"Please Enter ...",maxLength:40,value:c,onChange:e=>d(e.target.value),className:" mt-2 input-Text mo:w-full w-[425px] md:w-[380px] h-[55px] "})}),(0,n.jsx)("div",{className:" text-base md:text-sm font-medium mt-[27px] mo:text-base mo:mt-5",children:"Attach an image, not exceeding 128KB"}),(0,n.jsx)("div",{className:" mo:px-[50px]",children:(0,n.jsx)(m,{className:" mt-5 w-full bg-white h-[303px] md:h-[308px] border-[#000000] mo:mt-5 ",children:(0,n.jsxs)("div",{onDrop:X,onDragOver:e=>{e.preventDefault()},className:" flex items-center justify-center h-full flex-col ",children:[(0,n.jsx)("input",{type:"file",hidden:!0,ref:s,accept:"image/png, image/jpg, image/jpeg, image/gif, image/svg",onChange:V}),(0,n.jsx)("div",{onClick:handleFileSelect,className:" cursor-pointer w-[100px] h-[100px] bg-[#FFF8F4] border border-dashed rounded-[5px] border-[#FC7823] flex items-center justify-center",children:(0,n.jsx)("img",{src:"chooseAnyImg.svg"})}),(0,n.jsxs)("div",{className:" mt-5 mo:mt-[30px] text-center justify-center flex flex-col overflow-hidden truncate w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center w-auto flex-row justify-center ",children:[(0,n.jsx)("span",{title:null==l?void 0:l.name,className:"cursor-default w-auto",children:shortStr(null==l?void 0:l.name,5)}),p&&(0,n.jsx)("div",{className:" ml-2",children:(0,n.jsx)("img",{src:"iconPreview.svg",title:"preview",alt:"Preview",width:20,onClick:()=>{j(!b),currentOpenState()}})})]}),(0,n.jsx)("button",{className:" text-base font-semibold",onClick:handleFileSelect,children:"Browse"})]})]})})}),(0,n.jsx)("div",{className:"mt-5 mo:mt-10 flex justify-center mb-20 mo:px-[50px]",children:(0,n.jsx)("button",{onClick:onTranscode,className:" ".concat((null==l?void 0:l.name)&&c?"bg-[#FC7823] ":"cursor-not-allowed bg-[#BABABA] "," border px-6 text-base font-semibold items-center mo:w-full flex rounded-xl text-[#FFFFFF] justify-center h-12 text-center"),children:"Transcode"})})]}),(0,n.jsxs)("div",{className:"w-0 flex-1 h-full mo:mt-[-70px]",children:[(0,n.jsx)("div",{className:" text-2xl font-medium ",children:" Blob Data"}),(0,n.jsxs)("div",{className:"flex gap-[14px] mo:gap-[5px] ",children:[(0,n.jsx)("button",{onClick:()=>handleBlobClick(!0),className:"w-[195px] md:w-[180px] h-[50px] flex border-[#000000] ".concat(r&&"custom-background"," items-center justify-center mt-[30px] md:text-sm text-base font-medium "),children:"Blob1(Text data)"}),(0,n.jsx)("button",{onClick:()=>handleBlobClick(!1),className:"w-[220px] md:w-[180px] h-[50px] flex ".concat(!r&&"custom-background"," items-center border-[#000000] justify-center mt-[30px] md:text-sm border-dashed text-base font-medium "),children:"Blob2(Image data)"})]}),(0,n.jsx)(x,{className:"overflow-y-auto overflow-x-hidden h-[442px] mo:h-[303px] p-5 break-all whitespace-normal ",children:U&&U.text&&(0,n.jsx)(n.Fragment,{children:JSON.stringify(ub8a2numa(r?U.text:U.img))})}),(0,n.jsx)("div",{className:"mt-5 mo:mt-[37px] flex justify-center mb-5 mo:px-[50px] ",children:(0,n.jsx)("button",{className:" ".concat(U?"bg-[#FC7823] ":"cursor-not-allowed bg-[#BABABA] "," border mo:w-full px-6 text-base font-semibold items-center flex rounded-xl text-[#FFFFFF] justify-center h-12 text-center"),onClick:onSendTx,children:"Send Transaction"})})]})]})})]}):(0,n.jsxs)("div",{className:"mo:w-full mx-auto w-container md:w-full md:px-[30px] mo:px-[30px]",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-center pt-[119px] mo:items-center text-[54px] mo:text-[23px] md:text-[46px]",children:[(0,n.jsx)("span",{className:"font-medium cursor-default mo:font-bold mr-2",children:"Experience"}),(0,n.jsxs)("span",{onClick:onSwitchTo,className:"flex font-semibold cursor-pointer mo:font-bold underline",children:["EIP-4844 ",(0,n.jsx)("img",{className:" ml-2 w-[30px] ",src:"/share.svg"})]})]}),(0,n.jsx)("div",{className:"md:text-[46px] cursor-default mo:mt-[10px] mo:text-center mo:leading-10 flex justify-center mo:w-full mo:flex-wrap font-medium text-[54px] capitalize mo:text-[22px] mo:font-bold",children:(0,n.jsx)("div",{children:"blob-carrying transactions (Blob TX)"})}),(0,n.jsxs)("div",{className:"cursor-default mt-[34px] mo:mt-5 justify-center text-center mo:flex flex-wrap mo:flex-row ",children:[(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light ",children:"Store a piece of text or an image fully on-chain with EthDA to understand the changes"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light",children:" introduced by "}),(0,n.jsx)("button",{onClick:onSwitchTo,className:"font-semibold text-xl mo:text-[16px] mo:font-medium",children:"EIP-4844"}),(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light ",children:" blob-carrying transactions"}),(0,n.jsx)("span",{className:"font-semibold text-xl mo:text-[16px] mo:font-medium",children:" (Blob TX) "}),(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light",children:" following the "})]}),(0,n.jsx)("span",{className:"font-semibold text-xl mo:text-[16px] mo:font-medium",children:"Ethereum "}),(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light",children:"\xa0Cancun-Deneb Upgrade."})]}),v&&(0,n.jsx)(ConnnectBtn,{onClick:()=>{M.current.isClickShowModal=!0}}),(0,n.jsxs)("div",{className:" mt-[100px] flex mo:mx-0 md:mx-[100px] mx-[200px] mo:text-center mo:justify-center justify-between mo:flex-wrap mo:w-full",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:"mo:w-full underline text-lg ",children:"Add EthDA Testnet to wallet"}),(0,n.jsx)("button",{onClick:onGas,className:"mo:mt-[70px] mo:mb-10 text-lg underline",children:"Bridge"})]})]})}),e.loading&&(0,n.jsx)(LoadingFull,{}),e.success&&(0,n.jsx)(AToastFull,{chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)("img",{src:"success.svg"}),(0,n.jsx)("div",{className:"font-medium text-xl text-[#FC7823] mt-[-30px]",children:"Success"}),(0,n.jsxs)("div",{className:"flex gap-[15px] mt-5 mb-5 mo:mb-10 ",children:[(0,n.jsx)("button",{onClick:()=>{window.open("".concat(S.k.blockExplorers.blobs.url,"/address/").concat(null==Z?void 0:Z.address),"_blank")},className:" mo:w-[120px] w-[140px] border h-[36px] rounded-lg border-[#000000] px-[10px] font-medium text-base mo:text-sm",children:"View History"}),(0,n.jsx)("button",{onClick:()=>{t({success:!1}),d(""),o(null),W(null),scrollToTop(),h(null)},className:"mo:w-[120px] w-[140px] mo:wa h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[10px] font-medium text-base mo:text-sm",children:"Send More"})]})]})}),e.error&&(0,n.jsx)(AToastFull,{chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(f.xrR,{className:"text-[#FC7823] w-6 h-6 cursor-pointer absolute right-5 top-5",onClick:()=>{t({})}}),(0,n.jsx)("img",{src:"failed.svg"}),(0,n.jsx)("div",{className:"font-medium text-xl text-[#FC7823] mt-[-35px]",children:e.errorMsg||"Failed"}),(0,n.jsx)("div",{className:"flex gap-[38px] mt-[40px] mb-5",children:(0,n.jsx)("button",{onClick:()=>{t({success:!1,error:!1,loading:!1}),onSendTx()},className:"w-[141px] h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[21px] font-medium text-base",children:"Send Again"})})]})}),C&&(0,n.jsx)("div",{className:" fixed z-40 top-0 left-0 w-full h-full backdrop-blur-sm flex justify-center items-center bg-black/10",children:(0,n.jsx)("div",{className:"w-[calc(100%-40px)] bg-white p-5 rounded-lg max-w-[46rem]",children:(0,n.jsxs)("div",{className:"border border-dashed rounded-lg border-orange-400 py-5 px-[2rem] bg-[#FFFAF6]",children:[(0,n.jsx)("div",{className:"text-center text-[FC7823] font-medium text-[1.25rem]",children:"Switch to EthDA Network"}),(0,n.jsxs)("div",{className:"mt-[2rem] mb-[2.25rem] flex flex-col gap-3",children:[(0,n.jsx)("p",{className:" mo:text-sm",children:"Please add EthDA Devnet to your wallet and make sure you have switched to EthDA Devnet before you start."}),(0,n.jsxs)("p",{className:" mo:text-sm",children:["Click on ",(0,n.jsx)("strong",{className:"mo:text-base",children:"“Add Network”"})," button to view a simple guide for manually adding network."]}),(0,n.jsxs)("p",{className:" mo:text-sm",children:["Click on ",(0,n.jsx)("strong",{className:" mo:text-base",children:"“Enter App”"})," after you have switched your wallet to EthDA Devnet."]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-5 mo:w-full flex-wrap ",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:" w-[160px] border h-[36px] rounded-lg border-[#000000] px-[10px] font-medium text-base",children:"Add Network"}),(0,n.jsx)("button",{onClick:()=>{M.current.isClickShowModal=!1,E(!1),currentCloseState()},className:"w-[160px] mo:wa h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[10px] font-medium text-base",children:"Enter App"})]})]})})}),e.uploadImageError&&(0,n.jsx)(AToastFull,{chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(f.xrR,{className:"text-[#FC7823] w-6 h-6 cursor-pointer absolute right-5 top-5",onClick:()=>{t({}),currentCloseState()}}),(0,n.jsx)("img",{src:"failed.svg"}),(0,n.jsx)("div",{className:"font-medium text-xl mx-5 text-[#FC7823] mt-[-35px] text-center",children:e.uploadImageError||"Failed"}),(0,n.jsx)("div",{className:"flex gap-[38px] mt-5 mb-10",children:(0,n.jsx)("button",{onClick:()=>{t({}),currentCloseState()},className:"w-[141px] h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[21px] font-medium text-base",children:"OK"})})]})}),b&&(0,n.jsx)(AToastFull,{contentClassName:" h-auto w-auto min-w-[350px]",className:"px-5",chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(f.xrR,{className:"text-[#FC7823] w-6 h-6 cursor-pointer absolute right-5 top-5",onClick:()=>{t({}),j(!1),currentCloseState()}}),(0,n.jsx)("div",{className:" mt-11 mx-5 ",children:(0,n.jsx)("img",{src:p,alt:"Preview",className:" max-h-[70vh]"})}),(0,n.jsx)("div",{className:"flex gap-[38px] mt-5 mb-5 ",children:(0,n.jsx)("button",{onClick:()=>{t({}),j(!1),currentCloseState()},className:"w-[141px] h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[21px] font-medium text-base",children:"OK"})})]})})]})})},83376:function(e,t,s){"use strict";s.d(t,{h:function(){return Header}});var n=s(5761),l=s(87254),o=s.n(l),a=s(31151),r=s(44475),i=s.n(r),c=s(94488),d=s(41129),m=s(43359),x=s.n(m),u=s(56401),components_FullModal=e=>{let{menus:t,keys:s="text",onChooseItem:l,chooseValue:o,wrapperClassName:r}=e,i=(0,a.useRouter)(),d=document.location.pathname.split("/")[1]||"",onClickItem=e=>{if(e.onClick&&e.onClick(),e.to.startsWith("http")){window.open(e.to,"_blank");return}i.push(e.to),"function"==typeof l&&l(e.text)};return(0,n.jsx)("div",{id:"modal",style:{background:"rgba(255, 255, 255, 0.90)"},className:x()("fixed inset-0 mt-[81px] flex z-50",r),children:(0,n.jsx)("div",{className:"p-8 rounded-md mo:w-full",children:t.map((e,t)=>(0,n.jsxs)(c.Fragment,{children:[e.topSplit&&t>0&&(0,n.jsx)("div",{className:"h-[1px] my-[.625rem] mo:my-[2px] mx-4 bg-[#eeeeee]"}),(0,n.jsxs)("div",{className:x()("flex w-full items-center py-[.625rem] mo:py-[.875rem] text-black hover:text-green-2 cursor-pointer"),onClick:()=>onClickItem(e),children:[!!e.icon&&(0,n.jsx)("div",{className:"text-xl mo:text-2xl",children:e.icon}),(0,n.jsxs)("div",{className:" text-[22px] inline-block font-medium border-b border-[#D9D9D9] border-solid pb-5 w-full mo:flex mo:w-full items-center mo:justify-between",children:[(0,n.jsx)("span",{className:x()({"text-[#FC7823]":!e.to.startsWith("http")&&d===e.to.split("/")[1]}),children:e[s]}),(0,n.jsx)(u.wpV,{className:x()({"text-[#FC7823]":!e.to.startsWith("http")&&d===e.to.split("/")[1]}),size:22})]})]})]},"poper_menu_item".concat(t)))})})},p=s(35336);let Header=e=>{let{logo:t="/logo.svg",containerClassName:s="container mx-auto ",headerTextClassName:l,wrapperClassName:r,className:m,btnClassName:u,contentClassName:f=" border-b",isShow:h}=e,{push:b}=(0,a.useRouter)(),g=(0,a.usePathname)(),[w,j]=(0,c.useState)(!1),[v,N]=(0,c.useState)(!1),[k,y]=(0,c.useState)(void 0),getWindowWidth=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,handleResize=()=>{j(900>=getWindowWidth())};(0,c.useEffect)(()=>(handleResize(),window.addEventListener("resize",handleResize),()=>{window.removeEventListener("resize",handleResize)}),[]),(0,c.useEffect)(()=>{v||(document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden"))},[v]);let F=[{text:"Home",to:"/"},{text:"Explorer",to:p.k.blockExplorers.default.url},{text:"Blobscan",to:p.k.blockExplorers.blobs.url},{text:"Try BlobTX",to:"/blobtx"},{text:"Document",to:"https://docs.ethda.io/"}],onSwitchTo=e=>{if(e.startsWith("http")){window.open(e,"_blank");return}b(e)};return(0,n.jsx)("div",{className:x()(" ".concat(f)),suppressHydrationWarning:!0,children:(0,n.jsxs)("header",{className:x()("py-5 ".concat(v&&" !bg-white"," border-b-[rgba(255,255,255,.2)]"),m),children:[(0,n.jsx)("div",{className:" mo:mx-[30px] ",children:(0,n.jsxs)("div",{className:x()("flex justify-between items-center",s),children:[(0,n.jsx)(i(),{href:"/",children:(0,n.jsx)(o(),{src:"".concat(v?"b-EthDA.svg":t),alt:" ".concat(v?"b-EthDA.svg":"logo.svg"),width:110,height:22})}),w?(0,n.jsx)("button",{onClick:()=>{N(!v),"function"==typeof h&&h(v),document.documentElement.classList.add("overflow-hidden"),document.body.classList.add("overflow-hidden")},children:v?(0,n.jsx)(d.fMW,{className:x()("".concat(v&&"!text-black"," w-6 h-6 "),u)}):(0,n.jsx)(d.otZ,{className:x()(u,"w-6 h-6 ")})}):(0,n.jsxs)("div",{className:x()("flex items-center gap-8 text-white text-sm",l),children:[(0,n.jsx)("div",{onClick:()=>onSwitchTo("/"),className:"nav-item ".concat("/"===g?"active":""),children:"Home"}),(0,n.jsx)("div",{onClick:()=>onSwitchTo(p.k.blockExplorers.default.url),className:"nav-item ".concat("/Explorer"===g?"active":""),children:"Explorer"}),(0,n.jsx)("div",{onClick:()=>onSwitchTo(p.k.blockExplorers.blobs.url),className:"nav-item ".concat("/Blobscan"===g?"active":""),children:"Blobscan"}),(0,n.jsx)("div",{onClick:()=>onSwitchTo("blobtx"),className:"nav-item ".concat("/blobtx"===g?"active":""),children:"Try BlobTx"}),(0,n.jsx)(i(),{href:"https://docs.ethda.io/",target:"_blank",className:"block nav-item",children:"Document"})]})]})}),v&&(0,n.jsx)(components_FullModal,{wrapperClassName:r,menus:F,onChooseItem:e=>{y(e),N(!1),document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden")},chooseValue:k})]})})}},88275:function(e,t,s){"use strict";s.d(t,{n:function(){return withClient}});var n=s(5761),l=s(94488);function withClient(e){return function(t){let[s,o]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{o(!0)},[]),s)?(0,n.jsx)(e,{...t}):null}}},35336:function(e,t,s){"use strict";s.d(t,{k:function(){return d}});var n=s(7248),l=s(48557),o=s(82955),a=s(72545),r=s(82334),i=s(15526),c=s(70707);let d=(0,a.a)({id:2832,network:"EthDA Testnet",name:"EthDA Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.ethda.io"]},public:{http:["https://rpc-testnet.ethda.io"]}},blockExplorers:{default:{name:"Blockscan",url:"https://scan-testnet.ethda.io"},blobs:{name:"Blobscan",url:"https://blobscan-testnet.ethda.io"}},contracts:{blobTo:{address:"0xD0d387145B497FF1992DF7b35DE4594991adf00B"}},custom:{bridgeUrl:"https://bridge-testnet.ethda.io"}}),m=(0,n.a3)([{groupName:"Recommended",wallets:[r.D,i.u]}],{appName:"EthDA",appUrl:"https://ethda.io",appIcon:"https://ethda.io/logo.svg",projectId:"08655efd533e1054791755a0c58862c4"}),x=(0,l._)({connectors:m,chains:[d],client(e){let{chain:t}=e;return(0,c.e)({chain:t,transport:(0,o.d)()})}});t.Z=x}},function(e){e.O(0,[1118,5899,6324,6545,8343,8128,2803,1740,6651,6314,1744],function(){return e(e.s=93598)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/blobtx/page-e8d1fa664e44c67a.js b/_next/static/chunks/app/blobtx/page-e8d1fa664e44c67a.js new file mode 100644 index 0000000..f13a273 --- /dev/null +++ b/_next/static/chunks/app/blobtx/page-e8d1fa664e44c67a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1949],{93598:function(e,t,s){Promise.resolve().then(s.bind(s,4289))},4289:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return U}});var n=s(5761),l=s(43359),o=s.n(l);let ALoading=e=>{let{className:t,...s}=e;return(0,n.jsx)("div",{id:"modal",...s,className:o()("text-black w-full h-full flex items-center justify-center",t),children:(0,n.jsx)("div",{className:" w-[420px] bg-white flex justify-center h-[340px] rounded-xl",children:(0,n.jsxs)("div",{className:" flex flex-col items-center w-full justify-center bg-[#FFFAF6] mx-[10px] my-[10px] border-dashed border rounded-xl border-[#FC7823]",children:[(0,n.jsx)("img",{src:"loading.svg",className:"animate-spin"}),(0,n.jsx)("div",{className:" mt-5 font-medium text-xl text-[#FC7823] ",children:"Sending"})]})})})},LoadingFull=()=>(0,n.jsx)(ALoading,{className:"fixed z-50 left-0 top-0 w-full !h-full bg-black/25 px-10"}),AToastFull=e=>{let{onLeftButton:t,className:s,contentClassName:l,onRightButton:a,chilren:r,size:i="",...c}=e;return(0,n.jsx)("div",{id:"modal",...c,className:o()("text-black w-full h-full flex items-center justify-center fixed z-50 left-0 top-0 bg-black/25 px-10 ",s),children:(0,n.jsx)("div",{className:o()(" w-[420px] relative bg-white flex justify-center h-[340px] rounded-xl",l),children:(0,n.jsx)("div",{className:" flex flex-col items-center w-full justify-center bg-[#FFFAF6] mx-[10px] my-[10px] border-dashed border rounded-xl border-[#FC7823]",children:r})})})};var a=s(83376),r=s(45489),i=s(44103);function _templateObject(){let e=(0,r._)(["\n cursor: pointer;\n position: relative;\n display: flex;\n color: #ffffff;\n justify-content: soace-between;\n background: #fc7823;\n align-items: center;\n font-size: 16px;\n font-weight: 500;\n width: auto;\n height: 48px;\n padding-left: 20px;\n padding-right: 20px;\n border-radius: 10px;\n gap: 10px;\n"]);return _templateObject=function(){return e},e}let c=i.ZP.button(_templateObject()),d=i.ZP.div(e=>{let{}=e;return{borderRadius:"10px",backgroundImage:"linear-gradient(to left, #000000 30%, transparent 10%), linear-gradient(to left, #000000 30%, transparent 10%), linear-gradient(to top, #000000 40%, transparent 10%), linear-gradient(to top, #000000 30%, transparent 10%)",backgroundPosition:"left top, left bottom, left top, right top",backgroundRepeat:"repeat-x, repeat-x, repeat-y, repeat-y"}}),m=(0,i.ZP)(d)(e=>{let{}=e;return{backgroundSize:"10px 1px, 10px 1px, 1px 9px, 1px 9px"}}),x=(0,i.ZP)(d)(e=>{let{}=e;return{backgroundSize:"10px 1px, 10px 1px, 1px 9px, 1px 9px"}});var u=s(94488),p=s(73758),f=s(90077),h=s(54457),b=s(25997);function cn(){for(var e=arguments.length,t=Array(e),s=0;s{let{className:s,inset:l,children:o,...a}=e;return(0,n.jsxs)(p.fF,{ref:t,className:cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",l&&"pl-8",s),...a,children:[o,(0,n.jsx)(f.XCv,{className:"ml-auto h-4 w-4"})]})});j.displayName=p.fF.displayName;let v=u.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,n.jsx)(p.tu,{ref:t,className:cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...l})});v.displayName=p.tu.displayName;let N=u.forwardRef((e,t)=>{let{className:s,sideOffset:l=4,...o}=e;return(0,n.jsx)(p.Uv,{children:(0,n.jsx)(p.VY,{ref:t,sideOffset:l,className:cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...o})})});N.displayName=p.VY.displayName;let k=u.forwardRef((e,t)=>{let{className:s,inset:l,...o}=e;return(0,n.jsx)(p.ck,{ref:t,className:cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l&&"pl-8",s),...o})});k.displayName=p.ck.displayName;let y=u.forwardRef((e,t)=>{let{className:s,children:l,checked:o,...a}=e;return(0,n.jsxs)(p.oC,{ref:t,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:o,...a,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(p.wU,{children:(0,n.jsx)(f.nQG,{className:"h-4 w-4"})})}),l]})});y.displayName=p.oC.displayName;let F=u.forwardRef((e,t)=>{let{className:s,children:l,...o}=e;return(0,n.jsxs)(p.Rk,{ref:t,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...o,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(p.wU,{children:(0,n.jsx)(f.jXb,{className:"h-4 w-4 fill-current"})})}),l]})});F.displayName=p.Rk.displayName;let C=u.forwardRef((e,t)=>{let{className:s,inset:l,...o}=e;return(0,n.jsx)(p.__,{ref:t,className:cn("px-2 py-1.5 text-sm font-semibold",l&&"pl-8",s),...o})});C.displayName=p.__.displayName;let E=u.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,n.jsx)(p.Z0,{ref:t,className:cn("-mx-1 my-1 h-px bg-muted",s),...l})});function EncodeBlobs(e){let t=e.length;if(0===t)throw Error("invalid blob data");let s=0,n=-1,l=[new Uint8Array(131072).fill(0)];for(let o=0;ot&&(a=t),l[s].set(e.subarray(o,a),32*n+1)}return l}function createMetaDataForBlobs(e,t){return{originator:e,description:t.map(e=>e.content_type).join(","),content_type:"",extras:"",blobs:t}}function sleep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(t=>{setTimeout(()=>t(void 0),e)})}E.displayName=p.Z0.displayName,s(61900).Buffer;let formatEthereumAddress=e=>{if(!e)return"";let t=null==e?void 0:e.slice(0,7),s=null==e?void 0:e.slice(-5);return"".concat(t).concat("...").concat(s)},scrollToTop=()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0};function shortStr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6;if(!e)return"";if(e.length<=t+s)return e;let n=(null==e?void 0:e.substring(0,t))||"",l=(null==e?void 0:e.substring(e.length-s))||"";return"".concat(n,"...").concat(l)}let openTo=e=>{e&&window.open(e,"_blank")};var T=s(35336),S=s(42770),A=s(35848),B=s(85579),P=s(25986),_=s(1318),I=s(36014),D=s(22749),z=s(85870),R=s(77290),O=s(7248),G=s(88275),L=s(61900).Buffer;function ConnnectBtn(e){let t=(0,O.We)();return(0,n.jsx)("div",{className:"mt-[60px] mo:mt-[130px] flex justify-center",children:(0,n.jsxs)(c,{onClick:()=>{var s,n;null===(s=e.onClick)||void 0===s||s.call(e),null===(n=t.openConnectModal)||void 0===n||n.call(t)},children:[(0,n.jsx)("div",{className:" text-lg font-medium",children:"Connect wallet to start"}),(0,n.jsx)("div",{className:" rounded-lg bg-white w-[38px] h-[38px] flex items-center justify-center",children:(0,n.jsx)("img",{src:"/share2.svg"})})]})})}var U=(0,G.n)(()=>{let[e,t]=(0,u.useState)({loading:!1,success:!1,error:!1,errorMsg:"Failed",uploadImageError:""}),s=(0,u.useRef)(null),[l,o]=(0,u.useState)(null),[r,i]=(0,u.useState)(!0),[c,d]=(0,u.useState)(""),[p,h]=(0,u.useState)(""),[b,j]=(0,u.useState)(!1),[v,y]=(0,u.useState)(!0),{disconnect:F}=(0,I.q)(),[C,E]=(0,u.useState)(!1),{data:O}=(0,D.p)({chainId:T.k.id}),G=(0,z.t)({chainId:T.k.id}),[U,W]=(0,u.useState)(),M=(0,u.useRef)({isClickShowModal:!1}),Z=(0,R.m)(),H=["image/png","image/jpeg","image/jpg","image/gif","image/svg+xml"],J=Z.address&&Z.isConnected&&Z.chainId==T.k.id,clearAllState=()=>{t({loading:!1,success:!1,error:!1,errorMsg:"",uploadImageError:""}),E(!1),j(!1),o(null),s.current&&(s.current.value=""),h(""),i(!0),j(!1),d(""),W(null)},currentOpenState=()=>{document.body.classList.add("overflow-hidden"),document.documentElement.classList.add("overflow-hidden")},currentCloseState=()=>{document.body.classList.remove("overflow-hidden"),document.documentElement.classList.remove("overflow-hidden")},handleBlobClick=e=>{i(e)};(0,u.useEffect)(()=>(J||(clearAllState(),F()),()=>{}),[J]);let X=(0,u.useCallback)(e=>{var s;e.preventDefault();let n=null===(s=e.dataTransfer.files)||void 0===s?void 0:s.item(0);if(!H.includes(null==n?void 0:n.type)){t({uploadImageError:"Only PNG, JPG, JPEG, GIF formats are supported. Please select again."});return}let l=n.size/1024;if(l>128){t({uploadImageError:"File size exceeding 128KB! Please select again."});return}o(n)},[]),V=(0,u.useCallback)(e=>{var s;let n=null===(s=e.target.files)||void 0===s?void 0:s.item(0);if(!n)return;let l=n.size/1024;if(!H.includes(null==n?void 0:n.type)){t({uploadImageError:"Only PNG, JPG, JPEG, GIF formats are supported. Please select again."});return}if(l>128){t({uploadImageError:"File size exceeding 128KB! Please select again."});return}o(n);let a=new FileReader;a.onloadend=()=>{h(a.result)},a.readAsDataURL(n)},[]);(0,u.useEffect)(()=>(e.loading||e.success||e.error||C||e.uploadImageError?currentOpenState():currentCloseState(),()=>{currentCloseState()}),[e]);let handleFileSelect=()=>{s.current&&(s.current.value="",s.current.click())},onTranscode=async()=>{if(!O||!l||l.size>131072)return;let e=new FileReader;e.onload=()=>{W({text:L.from(c,"utf-8").valueOf(),img:L.from(e.result).valueOf(),imgType:l.type})},e.readAsArrayBuffer(l)},ub8a2numa=e=>{let t=[];for(let s=0;s{let t=[],s=[],n=[],l=[],o="".concat(T.k.blockExplorers.blobs.url,"/backend/convert/blob");for(let a=0;ae.json());t.push(r.commitments.map(e=>new Uint8Array(e.data))[0]),s.push(r.proofs.map(e=>new Uint8Array(e.data))[0]),n.push(r.versionedHashes.map(e=>new Uint8Array(Object.values(e)))[0]);let i=EncodeBlobs(e[a]);if(i.length>1)throw"blob too large!";l.push(i[0])}return{commitments:t,proofs:s,versionHashs:n,encodeBlobs:l}},loopGetResult=async e=>{let{result:s}=e;for(;;){await sleep(5e3);let e=await fetch(T.k.rpcUrls.default.http[0],{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({method:"eth_getTransactionReceipt",params:[s],id:1,jsonrpc:"2.0"})}).then(e=>e.json()).catch(e=>console.error(e));if((null==e?void 0:e.result)&&"status"in e.result&&"0x1"===e.result.status)return t({loading:!1,success:!0,error:!1}),e;t({loading:!1,success:!1,error:!0});return}},onSendTx=async()=>{if(O&&U&&G&&Z&&Z.address)try{var e,s,n;t({loading:!0});let l=await G.getBalance({address:Z.address});if(l<(0,B.f)("0.00001"))return t({loading:!1,error:!0,errorMsg:"Insufficient funds for gas"});let o=[U.text,U.img],{commitments:a,proofs:r,versionHashs:i,encodeBlobs:c}=await getConvertOfZkg(o),d=await G.getBlobBaseFee(),m=await G.estimateFeesPerGas({type:"eip4844"});console.info("blobBaseFee",d,(null!==(e=m.gasPrice)&&void 0!==e?e:1n)*BigInt(o.length)*128n*1024n);let x=createMetaDataForBlobs(Z.address,[{content_type:"text/plain",versioned_hash:(0,P.ci)(i[0]),kzg_commitment:(0,P.ci)(a[0]),kzg_proof:(0,P.ci)(r[0])},{content_type:U.imgType,versioned_hash:(0,P.ci)(i[1]),kzg_commitment:(0,P.ci)(a[1]),kzg_proof:(0,P.ci)(r[1])}]),u=(0,P.$G)(JSON.stringify(x)),p=await G.getTransactionCount({address:Z.address}),f=21000n+10n*BigInt(u.length),h=T.k.contracts.blobTo.address,b=131072n*d*BigInt(o.length)*2n,g=await O.prepareTransactionRequest({account:Z.address,nonce:p,gas:f,gasPrice:1000000000n,to:h,value:b,data:u,type:"legacy",chain:T.k});console.info("tx:",g.gas,g.gasPrice,g.maxPriorityFeePerGas);let w=await O.signTransaction(g),j=w.startsWith("0x")?w:"0x".concat(w),v=(0,_.bt)(j);if(!v)return;let N=S.Gn.custom({name:"ethda",networkId:T.k.id,chainId:T.k.id},{eips:[1559,3860,4844]}),k=new A.fx({chainId:BigInt(T.k.id),nonce:p,to:h,data:u,value:b,maxPriorityFeePerGas:1000000000n,maxFeePerGas:1000000000n,gasLimit:v.gas,maxFeePerBlobGas:d,blobVersionedHashes:i,blobs:c,kzgCommitments:a,kzgProofs:r,v:(v.v||0n)-2n*BigInt(T.k.id)-35n,r:v.r,s:v.s},{common:N}),y=k.serializeNetworkWrapper(),F=L.from(y).toString("hex"),C=await fetch(T.k.rpcUrls.default.http[0],{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({method:"eth_sendRawTransaction",params:["0x"+F],id:2,jsonrpc:"2.0"})}).then(e=>e.json());if(C.error){let e=(null===(n=C.error)||void 0===n?void 0:null===(s=n.message)||void 0===s?void 0:s.includes("insufficient funds"))?"Insufficient funds for gas":"";console.info("error:",C),t({loading:!1,success:!1,error:!0,errorMsg:e})}else await loopGetResult(C)}catch(e){console.info(e),t({loading:!1,success:!1,error:!0})}},onSwitchTo=()=>{openTo("https://www.eip4844.com")},onGas=()=>{openTo(T.k.custom.bridgeUrl)},onClickAddNet=()=>{openTo("https://docs.ethda.io/resources/network-configuration/add-ethda-network/")};return(0,u.useEffect)(()=>{J&&M.current.isClickShowModal&&(E(!0),currentOpenState())},[J]),(0,n.jsxs)("div",{className:" font-montserrat",children:[(0,n.jsx)(a.h,{className:"".concat(J?"bg-[#FFFFFFCC]":"bg-[#FBE8DE] mo:bg-[#FCE1D6] mo:border-b-[#FCE1D6]"," py-[29px]"),containerClassName:"!w-full pl-9 pr-[31px] mo:w-full mo:pl-0 mo:pr-0 ",logo:"b-EthDA.svg",isShow:y,headerTextClassName:"!text-[#000000] gap-[50px]"}),(0,n.jsx)("div",{className:" ".concat(!J&&" bg-[url(/blobTXBg.svg)] mo:bg-[url(/b-m-EthDA.svg)] "," min-h-screen bg-cover object-cover "),children:J?(0,n.jsxs)("div",{className:"bg-[url(/black_bg.svg)] mo:bg-none bg-cover h-auto overflow-hidden ",children:[(0,n.jsx)("div",{className:"bg-[#F6F6F6]",children:(0,n.jsx)("div",{className:"mo:w-full mo:px-[30px] mx-auto w-container md:w-full md:px-[30px] ",children:(0,n.jsxs)("div",{className:" flex h-[120px] flex-row items-center mo:justify-between mo:h-[102px]",children:[(0,n.jsxs)("div",{className:"mo:hidden w-full justify-center flex flex-col gap-2 text-2xl md:text-lg font-normal",children:[(0,n.jsxs)("div",{className:" flex items-center font-medium",children:[(0,n.jsxs)("button",{onClick:onSwitchTo,className:"flex flex-row items-center",children:["Experience EIP-4844 ",(0,n.jsx)("img",{src:"/share3.svg",className:" mx-2"})]}),"blob-carrying transactions (Blob TX)"]}),(0,n.jsxs)("div",{className:"flex gap-5",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:"mo:w-full text-base underline mo:text-2xl ",children:"Add EthDA Testnet to wallet"}),(0,n.jsx)("button",{onClick:onGas,className:"mo:mt-[70px] mo:text-2xl text-base underline",children:"Bridge"})]})]}),(0,n.jsxs)(g,{children:[(0,n.jsx)(w,{asChild:!0,children:(0,n.jsx)("div",{className:"cursor-pointer rounded-lg border-[#FC7823] md:text-sm border h-[42px] items-center flex text-[#FC7823] px-[15px]",children:formatEthereumAddress(Z.address)})}),(0,n.jsx)(N,{align:"start",className:"w-[161px] bg-white",children:(0,n.jsx)(k,{textValue:"Disconnect",onClick:()=>{t({success:!1}),d(""),o(null),W(null),F()},className:"text-base hover:text-orange-400 cursor-pointer",children:"Disconnect"})})]}),(0,n.jsxs)("div",{onClick:()=>window.open("".concat(T.k.blockExplorers.blobs.url,"/address/").concat(null==Z?void 0:Z.address),"_blank"),className:" cursor-pointer flex mr-10 mo:mr-0 gap-[13px] items-center",children:[(0,n.jsx)("img",{className:"ml-5 mo:h-[32px]",src:"deal.svg"}),(0,n.jsx)("span",{className:"text-[#FC7823] font-normal text-base",children:"History"})]})]})})}),(0,n.jsx)("div",{className:"mo:w-full mo:px-[30px] mx-auto w-container md:w-full md:px-[30px] ",children:(0,n.jsxs)("div",{className:"flex mo:gap-5 gap-[100px] md:gap-[50px] mt-[30px] mo:mt-10 mo:flex mo:flex-wrap mo:w-full",children:[(0,n.jsxs)("div",{className:"w-[440px] md:w-[400px] h-full mo:flex mo:flex-wrap mo:w-full mo:flex-col ",children:[(0,n.jsxs)("div",{className:"sm:hidden w-full h-[120px] mo:h-auto font-medium items-center flex text-2xl mo:text-2xl md:text-lg mo:flex-wrap mo:flex-row",children:[(0,n.jsx)("button",{onClick:onSwitchTo,children:" Experience EIP-4844 "}),(0,n.jsx)("img",{src:"/share3.svg",className:" mx-2"})," blob-carrying transactions (Blob TX)"]}),(0,n.jsxs)("div",{className:"sm:hidden flex gap-2 mt-4 flex-col items-start",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:"text-base underline ",children:"Add EthDA Testnet to wallet"}),(0,n.jsx)("button",{onClick:onGas,className:"text-base underline",children:"Bridge"})]}),(0,n.jsx)("div",{className:" text-2xl font-medium mo:mt-10",children:"Input"}),(0,n.jsx)("div",{className:" mt-[36px] md:mt-[40px] mo:mt-5 font-medium mo:text-base md:text-sm mb-5",children:"Type text here"}),(0,n.jsx)(m,{className:" w-full h-[68px] px-2",children:(0,n.jsx)("input",{placeholder:"Please Enter ...",maxLength:40,value:c,onChange:e=>d(e.target.value),className:" mt-2 input-Text mo:w-full w-[425px] md:w-[380px] h-[55px] "})}),(0,n.jsx)("div",{className:" text-base md:text-sm font-medium mt-[27px] mo:text-base mo:mt-5",children:"Attach an image, not exceeding 128KB"}),(0,n.jsx)("div",{className:" mo:px-[50px]",children:(0,n.jsx)(m,{className:" mt-5 w-full bg-white h-[303px] md:h-[308px] border-[#000000] mo:mt-5 ",children:(0,n.jsxs)("div",{onDrop:X,onDragOver:e=>{e.preventDefault()},className:" flex items-center justify-center h-full flex-col ",children:[(0,n.jsx)("input",{type:"file",hidden:!0,ref:s,accept:"image/png, image/jpg, image/jpeg, image/gif, image/svg",onChange:V}),(0,n.jsx)("div",{onClick:handleFileSelect,className:" cursor-pointer w-[100px] h-[100px] bg-[#FFF8F4] border border-dashed rounded-[5px] border-[#FC7823] flex items-center justify-center",children:(0,n.jsx)("img",{src:"chooseAnyImg.svg"})}),(0,n.jsxs)("div",{className:" mt-5 mo:mt-[30px] text-center justify-center flex flex-col overflow-hidden truncate w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center w-auto flex-row justify-center ",children:[(0,n.jsx)("span",{title:null==l?void 0:l.name,className:"cursor-default w-auto",children:shortStr(null==l?void 0:l.name,5)}),p&&(0,n.jsx)("div",{className:" ml-2",children:(0,n.jsx)("img",{src:"iconPreview.svg",title:"preview",alt:"Preview",width:20,onClick:()=>{j(!b),currentOpenState()}})})]}),(0,n.jsx)("button",{className:" text-base font-semibold",onClick:handleFileSelect,children:"Browse"})]})]})})}),(0,n.jsx)("div",{className:"mt-5 mo:mt-10 flex justify-center mb-20 mo:px-[50px]",children:(0,n.jsx)("button",{onClick:onTranscode,className:" ".concat((null==l?void 0:l.name)&&c?"bg-[#FC7823] ":"cursor-not-allowed bg-[#BABABA] "," border px-6 text-base font-semibold items-center mo:w-full flex rounded-xl text-[#FFFFFF] justify-center h-12 text-center"),children:"Transcode"})})]}),(0,n.jsxs)("div",{className:"w-0 flex-1 h-full mo:mt-[-70px]",children:[(0,n.jsx)("div",{className:" text-2xl font-medium ",children:" Blob Data"}),(0,n.jsxs)("div",{className:"flex gap-[14px] mo:gap-[5px] ",children:[(0,n.jsx)("button",{onClick:()=>handleBlobClick(!0),className:"w-[195px] md:w-[180px] h-[50px] flex border-[#000000] ".concat(r&&"custom-background"," items-center justify-center mt-[30px] md:text-sm text-base font-medium "),children:"Blob1(Text data)"}),(0,n.jsx)("button",{onClick:()=>handleBlobClick(!1),className:"w-[220px] md:w-[180px] h-[50px] flex ".concat(!r&&"custom-background"," items-center border-[#000000] justify-center mt-[30px] md:text-sm border-dashed text-base font-medium "),children:"Blob2(Image data)"})]}),(0,n.jsx)(x,{className:"overflow-y-auto overflow-x-hidden h-[442px] mo:h-[303px] p-5 break-all whitespace-normal ",children:U&&U.text&&(0,n.jsx)(n.Fragment,{children:JSON.stringify(ub8a2numa(r?U.text:U.img))})}),(0,n.jsx)("div",{className:"mt-5 mo:mt-[37px] flex justify-center mb-5 mo:px-[50px] ",children:(0,n.jsx)("button",{className:" ".concat(U?"bg-[#FC7823] ":"cursor-not-allowed bg-[#BABABA] "," border mo:w-full px-6 text-base font-semibold items-center flex rounded-xl text-[#FFFFFF] justify-center h-12 text-center"),onClick:onSendTx,children:"Send Transaction"})})]})]})})]}):(0,n.jsxs)("div",{className:"mo:w-full mx-auto w-container md:w-full md:px-[30px] mo:px-[30px]",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-center pt-[119px] mo:items-center text-[54px] mo:text-[23px] md:text-[46px]",children:[(0,n.jsx)("span",{className:"font-medium cursor-default mo:font-bold mr-2",children:"Experience"}),(0,n.jsxs)("span",{onClick:onSwitchTo,className:"flex font-semibold cursor-pointer mo:font-bold underline",children:["EIP-4844 ",(0,n.jsx)("img",{className:" ml-2 w-[30px] ",src:"/share.svg"})]})]}),(0,n.jsx)("div",{className:"md:text-[46px] cursor-default mo:mt-[10px] mo:text-center mo:leading-10 flex justify-center mo:w-full mo:flex-wrap font-medium text-[54px] capitalize mo:text-[22px] mo:font-bold",children:(0,n.jsx)("div",{children:"blob-carrying transactions (Blob TX)"})}),(0,n.jsxs)("div",{className:"cursor-default mt-[34px] mo:mt-5 justify-center text-center mo:flex flex-wrap mo:flex-row ",children:[(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light ",children:"Store a piece of text or an image fully on-chain with EthDA to understand the changes"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light",children:" introduced by "}),(0,n.jsx)("button",{onClick:onSwitchTo,className:"font-semibold text-xl mo:text-[16px] mo:font-medium",children:"EIP-4844"}),(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light ",children:" blob-carrying transactions"}),(0,n.jsx)("span",{className:"font-semibold text-xl mo:text-[16px] mo:font-medium",children:" (Blob TX) "}),(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light",children:" following the "})]}),(0,n.jsx)("span",{className:"font-semibold text-xl mo:text-[16px] mo:font-medium",children:"Ethereum "}),(0,n.jsx)("span",{className:"font-medium text-xl mo:text-[14px] mo:font-light",children:"\xa0Cancun-Deneb Upgrade."})]}),v&&(0,n.jsx)(ConnnectBtn,{onClick:()=>{M.current.isClickShowModal=!0}}),(0,n.jsxs)("div",{className:" mt-[100px] flex mo:mx-0 md:mx-[100px] mx-[200px] mo:text-center mo:justify-center justify-between mo:flex-wrap mo:w-full",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:"mo:w-full underline text-lg ",children:"Add EthDA Testnet to wallet"}),(0,n.jsx)("button",{onClick:onGas,className:"mo:mt-[70px] mo:mb-10 text-lg underline",children:"Bridge"})]})]})}),e.loading&&(0,n.jsx)(LoadingFull,{}),e.success&&(0,n.jsx)(AToastFull,{chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)("img",{src:"success.svg"}),(0,n.jsx)("div",{className:"font-medium text-xl text-[#FC7823] mt-[-30px]",children:"Success"}),(0,n.jsxs)("div",{className:"flex gap-[15px] mt-5 mb-5 mo:mb-10 ",children:[(0,n.jsx)("button",{onClick:()=>{window.open("".concat(T.k.blockExplorers.blobs.url,"/address/").concat(null==Z?void 0:Z.address),"_blank")},className:" mo:w-[120px] w-[140px] border h-[36px] rounded-lg border-[#000000] px-[10px] font-medium text-base mo:text-sm",children:"View History"}),(0,n.jsx)("button",{onClick:()=>{t({success:!1}),d(""),o(null),W(null),scrollToTop(),h(null)},className:"mo:w-[120px] w-[140px] mo:wa h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[10px] font-medium text-base mo:text-sm",children:"Send More"})]})]})}),e.error&&(0,n.jsx)(AToastFull,{chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(f.xrR,{className:"text-[#FC7823] w-6 h-6 cursor-pointer absolute right-5 top-5",onClick:()=>{t({})}}),(0,n.jsx)("img",{src:"failed.svg"}),(0,n.jsx)("div",{className:"font-medium text-xl text-[#FC7823] mt-[-35px]",children:e.errorMsg||"Failed"}),(0,n.jsx)("div",{className:"flex gap-[38px] mt-[40px] mb-5",children:(0,n.jsx)("button",{onClick:()=>{t({success:!1,error:!1,loading:!1}),onSendTx()},className:"w-[141px] h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[21px] font-medium text-base",children:"Send Again"})})]})}),C&&(0,n.jsx)("div",{className:" fixed z-40 top-0 left-0 w-full h-full backdrop-blur-sm flex justify-center items-center bg-black/10",children:(0,n.jsx)("div",{className:"w-[calc(100%-40px)] bg-white p-5 rounded-lg max-w-[46rem]",children:(0,n.jsxs)("div",{className:"border border-dashed rounded-lg border-orange-400 py-5 px-[2rem] bg-[#FFFAF6]",children:[(0,n.jsx)("div",{className:"text-center text-[FC7823] font-medium text-[1.25rem]",children:"Switch to EthDA Network"}),(0,n.jsxs)("div",{className:"mt-[2rem] mb-[2.25rem] flex flex-col gap-3",children:[(0,n.jsx)("p",{className:" mo:text-sm",children:"Please add EthDA Testnet to your wallet and make sure you have switched to EthDA Testnet before you start."}),(0,n.jsxs)("p",{className:" mo:text-sm",children:["Click on ",(0,n.jsx)("strong",{className:"mo:text-base",children:"“Add Network”"})," button to view a simple guide for manually adding network."]}),(0,n.jsxs)("p",{className:" mo:text-sm",children:["Click on ",(0,n.jsx)("strong",{className:" mo:text-base",children:"“Enter App”"})," after you have switched your wallet to EthDA Testnet."]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-5 mo:w-full flex-wrap ",children:[(0,n.jsx)("button",{onClick:onClickAddNet,className:" w-[160px] border h-[36px] rounded-lg border-[#000000] px-[10px] font-medium text-base",children:"Add Network"}),(0,n.jsx)("button",{onClick:()=>{M.current.isClickShowModal=!1,E(!1),currentCloseState()},className:"w-[160px] mo:wa h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[10px] font-medium text-base",children:"Enter App"})]})]})})}),e.uploadImageError&&(0,n.jsx)(AToastFull,{chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(f.xrR,{className:"text-[#FC7823] w-6 h-6 cursor-pointer absolute right-5 top-5",onClick:()=>{t({}),currentCloseState()}}),(0,n.jsx)("img",{src:"failed.svg"}),(0,n.jsx)("div",{className:"font-medium text-xl mx-5 text-[#FC7823] mt-[-35px] text-center",children:e.uploadImageError||"Failed"}),(0,n.jsx)("div",{className:"flex gap-[38px] mt-5 mb-10",children:(0,n.jsx)("button",{onClick:()=>{t({}),currentCloseState()},className:"w-[141px] h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[21px] font-medium text-base",children:"OK"})})]})}),b&&(0,n.jsx)(AToastFull,{contentClassName:" h-auto w-auto min-w-[350px]",className:"px-5",chilren:(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(f.xrR,{className:"text-[#FC7823] w-6 h-6 cursor-pointer absolute right-5 top-5",onClick:()=>{t({}),j(!1),currentCloseState()}}),(0,n.jsx)("div",{className:" mt-11 mx-5 ",children:(0,n.jsx)("img",{src:p,alt:"Preview",className:" max-h-[70vh]"})}),(0,n.jsx)("div",{className:"flex gap-[38px] mt-5 mb-5 ",children:(0,n.jsx)("button",{onClick:()=>{t({}),j(!1),currentCloseState()},className:"w-[141px] h-[36px] text-[#FFFFFF] rounded-lg bg-[#FC7823] px-[21px] font-medium text-base",children:"OK"})})]})})]})})},83376:function(e,t,s){"use strict";s.d(t,{h:function(){return Header}});var n=s(5761),l=s(87254),o=s.n(l),a=s(31151),r=s(44475),i=s.n(r),c=s(94488),d=s(41129),m=s(43359),x=s.n(m),u=s(56401),components_FullModal=e=>{let{menus:t,keys:s="text",onChooseItem:l,chooseValue:o,wrapperClassName:r}=e,i=(0,a.useRouter)(),d=document.location.pathname.split("/")[1]||"",onClickItem=e=>{if(e.onClick&&e.onClick(),e.to.startsWith("http")){window.open(e.to,"_blank");return}i.push(e.to),"function"==typeof l&&l(e.text)};return(0,n.jsx)("div",{id:"modal",style:{background:"rgba(255, 255, 255, 0.90)"},className:x()("fixed inset-0 mt-[81px] flex z-50",r),children:(0,n.jsx)("div",{className:"p-8 rounded-md mo:w-full",children:t.map((e,t)=>(0,n.jsxs)(c.Fragment,{children:[e.topSplit&&t>0&&(0,n.jsx)("div",{className:"h-[1px] my-[.625rem] mo:my-[2px] mx-4 bg-[#eeeeee]"}),(0,n.jsxs)("div",{className:x()("flex w-full items-center py-[.625rem] mo:py-[.875rem] text-black hover:text-green-2 cursor-pointer"),onClick:()=>onClickItem(e),children:[!!e.icon&&(0,n.jsx)("div",{className:"text-xl mo:text-2xl",children:e.icon}),(0,n.jsxs)("div",{className:" text-[22px] inline-block font-medium border-b border-[#D9D9D9] border-solid pb-5 w-full mo:flex mo:w-full items-center mo:justify-between",children:[(0,n.jsx)("span",{className:x()({"text-[#FC7823]":!e.to.startsWith("http")&&d===e.to.split("/")[1]}),children:e[s]}),(0,n.jsx)(u.wpV,{className:x()({"text-[#FC7823]":!e.to.startsWith("http")&&d===e.to.split("/")[1]}),size:22})]})]})]},"poper_menu_item".concat(t)))})})},p=s(35336);let Header=e=>{let{logo:t="/logo.svg",containerClassName:s="container mx-auto ",headerTextClassName:l,wrapperClassName:r,className:m,btnClassName:u,contentClassName:f=" border-b",isShow:h}=e,{push:b}=(0,a.useRouter)(),g=(0,a.usePathname)(),[w,j]=(0,c.useState)(!1),[v,N]=(0,c.useState)(!1),[k,y]=(0,c.useState)(void 0),getWindowWidth=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,handleResize=()=>{j(900>=getWindowWidth())};(0,c.useEffect)(()=>(handleResize(),window.addEventListener("resize",handleResize),()=>{window.removeEventListener("resize",handleResize)}),[]),(0,c.useEffect)(()=>{v||(document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden"))},[v]);let F=[{text:"Home",to:"/"},{text:"Explorer",to:p.k.blockExplorers.default.url},{text:"Blobscan",to:p.k.blockExplorers.blobs.url},{text:"Try BlobTX",to:"/blobtx"},{text:"Document",to:"https://docs.ethda.io/"}],onSwitchTo=e=>{if(e.startsWith("http")){window.open(e,"_blank");return}b(e)};return(0,n.jsx)("div",{className:x()(" ".concat(f)),suppressHydrationWarning:!0,children:(0,n.jsxs)("header",{className:x()("py-5 ".concat(v&&" !bg-white"," border-b-[rgba(255,255,255,.2)]"),m),children:[(0,n.jsx)("div",{className:" mo:mx-[30px] ",children:(0,n.jsxs)("div",{className:x()("flex justify-between items-center",s),children:[(0,n.jsx)(i(),{href:"/",children:(0,n.jsx)(o(),{src:"".concat(v?"b-EthDA.svg":t),alt:" ".concat(v?"b-EthDA.svg":"logo.svg"),width:110,height:22})}),w?(0,n.jsx)("button",{onClick:()=>{N(!v),"function"==typeof h&&h(v),document.documentElement.classList.add("overflow-hidden"),document.body.classList.add("overflow-hidden")},children:v?(0,n.jsx)(d.fMW,{className:x()("".concat(v&&"!text-black"," w-6 h-6 "),u)}):(0,n.jsx)(d.otZ,{className:x()(u,"w-6 h-6 ")})}):(0,n.jsxs)("div",{className:x()("flex items-center gap-8 text-white text-sm",l),children:[(0,n.jsx)("div",{onClick:()=>onSwitchTo("/"),className:"nav-item ".concat("/"===g?"active":""),children:"Home"}),(0,n.jsx)("div",{onClick:()=>onSwitchTo(p.k.blockExplorers.default.url),className:"nav-item ".concat("/Explorer"===g?"active":""),children:"Explorer"}),(0,n.jsx)("div",{onClick:()=>onSwitchTo(p.k.blockExplorers.blobs.url),className:"nav-item ".concat("/Blobscan"===g?"active":""),children:"Blobscan"}),(0,n.jsx)("div",{onClick:()=>onSwitchTo("blobtx"),className:"nav-item ".concat("/blobtx"===g?"active":""),children:"Try BlobTx"}),(0,n.jsx)(i(),{href:"https://docs.ethda.io/",target:"_blank",className:"block nav-item",children:"Document"})]})]})}),v&&(0,n.jsx)(components_FullModal,{wrapperClassName:r,menus:F,onChooseItem:e=>{y(e),N(!1),document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden")},chooseValue:k})]})})}},88275:function(e,t,s){"use strict";s.d(t,{n:function(){return withClient}});var n=s(5761),l=s(94488);function withClient(e){return function(t){let[s,o]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{o(!0)},[]),s)?(0,n.jsx)(e,{...t}):null}}},35336:function(e,t,s){"use strict";s.d(t,{k:function(){return d}});var n=s(7248),l=s(48557),o=s(82955),a=s(72545),r=s(82334),i=s(15526),c=s(70707);let d=(0,a.a)({id:2832,network:"EthDA Testnet",name:"EthDA Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.ethda.io"]},public:{http:["https://rpc-testnet.ethda.io"]}},blockExplorers:{default:{name:"Blockscan",url:"https://scan-testnet.ethda.io"},blobs:{name:"Blobscan",url:"https://blobscan-testnet.ethda.io"}},contracts:{blobTo:{address:"0x975ef84AE286F95a9F732C30267Bb50D103b4374"}},custom:{bridgeUrl:"https://bridge-testnet.ethda.io"}}),m=(0,n.a3)([{groupName:"Recommended",wallets:[r.D,i.u]}],{appName:"EthDA",appUrl:"https://ethda.io",appIcon:"https://ethda.io/logo.svg",projectId:"08655efd533e1054791755a0c58862c4"}),x=(0,l._)({connectors:m,chains:[d],client(e){let{chain:t}=e;return(0,c.e)({chain:t,transport:(0,o.d)()})}});t.Z=x}},function(e){e.O(0,[1118,5899,6324,6545,8343,8128,2803,1740,6651,6314,1744],function(){return e(e.s=93598)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-72846f9907e05423.js b/_next/static/chunks/app/layout-8e35ef9cb0020cba.js similarity index 98% rename from _next/static/chunks/app/layout-72846f9907e05423.js rename to _next/static/chunks/app/layout-8e35ef9cb0020cba.js index 0539519..9bf2b30 100644 --- a/_next/static/chunks/app/layout-72846f9907e05423.js +++ b/_next/static/chunks/app/layout-8e35ef9cb0020cba.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{44964:function(e,t,s){Promise.resolve().then(s.t.bind(s,64476,23)),Promise.resolve().then(s.t.bind(s,73444,23)),Promise.resolve().then(s.t.bind(s,67218,23)),Promise.resolve().then(s.bind(s,70921))},88275:function(e,t,s){"use strict";s.d(t,{n:function(){return withClient}});var a=s(5761),r=s(94488);function withClient(e){return function(t){let[s,i]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{i(!0)},[]),s)?(0,a.jsx)(e,{...t}):null}}},70921:function(e,t,s){"use strict";s.r(t),s.d(t,{Providers:function(){return v}});var a=s(5761),r=s(7248),i=s(35209),n=s(35336),u=s(72221),o=s(47940),h=s(21887),l=s(86344),c=class extends l.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,s){let a=t.queryKey,r=t.queryHash??(0,u.Rm)(a,t),i=this.get(r);return i||(i=new o.A({cache:this,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){h.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,u._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,u._x)(e,t)):t}notify(e){h.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){h.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){h.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},f=s(18112),d=class extends l.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#s=Date.now()}#t;#s;build(e,t,s){let a=new f.m({mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:s});return this.add(a),a}add(e){let t=scopeFor(e),s=this.#t.get(t)??[];s.push(e),this.#t.set(t,s),this.notify({type:"added",mutation:e})}remove(e){let t=scopeFor(e);if(this.#t.has(t)){let s=this.#t.get(t)?.filter(t=>t!==e);s&&(0===s.length?this.#t.delete(t):this.#t.set(t,s))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(scopeFor(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(scopeFor(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){h.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,u.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,u.X7)(e,t))}notify(e){h.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return h.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(u.ZT))))}};function scopeFor(e){return e.options.scope?.id??String(e.mutationId)}var y=s(97071),p=s(83787);function infiniteQueryBehavior(e){return{onFetch:(t,s)=>{let fetchFn=async()=>{let s;let a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],n=t.state.data?.pageParams||[],o=!1,addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?o=!0:t.signal.addEventListener("abort",()=>{o=!0}),t.signal)})},h=(0,u.cG)(t.options,t.fetchOptions),fetchPage=async(e,s,a)=>{if(o)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);let r={queryKey:t.queryKey,pageParam:s,direction:a?"backward":"forward",meta:t.options.meta};addSignalProperty(r);let i=await h(r),{maxPages:n}=t.options,l=a?u.Ht:u.VX;return{pages:l(e.pages,i,n),pageParams:l(e.pageParams,s,n)}};if(r&&i.length){let e="backward"===r,t=e?getPreviousPageParam:getNextPageParam,u={pages:i,pageParams:n},o=t(a,u);s=await fetchPage(u,o,e)}else{s=await fetchPage({pages:[],pageParams:[]},n[0]??a.initialPageParam);let t=e??i.length;for(let e=1;et.options.persister?.(fetchFn,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=fetchFn}}}function getNextPageParam(e,{pages:t,pageParams:s}){let a=t.length-1;return e.getNextPageParam(t[a],t,s[a],s)}function getPreviousPageParam(e,{pages:t,pageParams:s}){return e.getPreviousPageParam?.(t[0],t,s[0],s)}var m=class{#a;#r;#i;#n;#u;#o;#h;#l;constructor(e={}){this.#a=e.queryCache||new c,this.#r=e.mutationCache||new d,this.#i=e.defaultOptions||{},this.#n=new Map,this.#u=new Map,this.#o=0}mount(){this.#o++,1===this.#o&&(this.#h=y.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onFocus())}),this.#l=p.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onOnline())}))}unmount(){this.#o--,0===this.#o&&(this.#h?.(),this.#h=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#a.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let s=this.defaultQueryOptions(e),a=this.#a.build(this,s);return e.revalidateIfStale&&a.isStaleByTime((0,u.KC)(s.staleTime,a))&&this.prefetchQuery(s),Promise.resolve(t)}}getQueriesData(e){return this.#a.findAll(e).map(({queryKey:e,state:t})=>{let s=t.data;return[e,s]})}setQueryData(e,t,s){let a=this.defaultQueryOptions({queryKey:e}),r=this.#a.get(a.queryHash),i=r?.state.data,n=(0,u.SE)(t,i);if(void 0!==n)return this.#a.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(e,t,s){return h.V.batch(()=>this.#a.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,s)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state}removeQueries(e){let t=this.#a;h.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let s=this.#a,a={type:"active",...e};return h.V.batch(()=>(s.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(a,t)))}cancelQueries(e={},t={}){let s={revert:!0,...t},a=h.V.batch(()=>this.#a.findAll(e).map(e=>e.cancel(s)));return Promise.all(a).then(u.ZT).catch(u.ZT)}invalidateQueries(e={},t={}){return h.V.batch(()=>{if(this.#a.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let s={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(s,t)})}refetchQueries(e={},t){let s={...t,cancelRefetch:t?.cancelRefetch??!0},a=h.V.batch(()=>this.#a.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,s);return s.throwOnError||(t=t.catch(u.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(a).then(u.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let s=this.#a.build(this,t);return s.isStaleByTime((0,u.KC)(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(u.ZT).catch(u.ZT)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(u.ZT).catch(u.ZT)}resumePausedMutations(){return p.N.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#a}getMutationCache(){return this.#r}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#n.set((0,u.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#n.values()],s={};return t.forEach(t=>{(0,u.to)(e,t.queryKey)&&(s={...s,...t.defaultOptions})}),s}setMutationDefaults(e,t){this.#u.set((0,u.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#u.values()],s={};return t.forEach(t=>{(0,u.to)(e,t.mutationKey)&&(s={...s,...t.defaultOptions})}),s}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#i.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,u.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===u.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#a.clear(),this.#r.clear()}},g=s(30606),b=s(88275);let P=new m,v=(0,b.n)(e=>{let{children:t}=e;return(0,a.jsx)(i.F,{config:n.Z,children:(0,a.jsx)(g.aH,{client:P,children:(0,a.jsx)(r.pj,{locale:"en-US",modalSize:"compact",children:t})})})})},35336:function(e,t,s){"use strict";s.d(t,{k:function(){return l}});var a=s(7248),r=s(48557),i=s(82955),n=s(72545),u=s(82334),o=s(15526),h=s(70707);let l=(0,n.a)({id:2832,network:"EthDA Testnet",name:"EthDA Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.ethda.io"]},public:{http:["https://rpc-testnet.ethda.io"]}},blockExplorers:{default:{name:"Blockscan",url:"https://scan-testnet.ethda.io"},blobs:{name:"Blobscan",url:"https://blobscan-testnet.ethda.io"}},contracts:{blobTo:{address:"0xD0d387145B497FF1992DF7b35DE4594991adf00B"}},custom:{bridgeUrl:"https://bridge-testnet.ethda.io"}}),c=(0,a.a3)([{groupName:"Recommended",wallets:[u.D,o.u]}],{appName:"EthDA",appUrl:"https://ethda.io",appIcon:"https://ethda.io/logo.svg",projectId:"08655efd533e1054791755a0c58862c4"}),f=(0,r._)({connectors:c,chains:[l],client(e){let{chain:t}=e;return(0,h.e)({chain:t,transport:(0,i.d)()})}});t.Z=f},64476:function(){},73444:function(){},67218:function(e){e.exports={style:{fontFamily:"'__Montserrat_b1da2a', '__Montserrat_Fallback_b1da2a'",fontStyle:"normal"},className:"__className_b1da2a",variable:"__variable_b1da2a"}}},function(e){e.O(0,[1118,8128,2802,6651,6314,1744],function(){return e(e.s=44964)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{44964:function(e,t,s){Promise.resolve().then(s.t.bind(s,64476,23)),Promise.resolve().then(s.t.bind(s,73444,23)),Promise.resolve().then(s.t.bind(s,67218,23)),Promise.resolve().then(s.bind(s,70921))},88275:function(e,t,s){"use strict";s.d(t,{n:function(){return withClient}});var a=s(5761),r=s(94488);function withClient(e){return function(t){let[s,i]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{i(!0)},[]),s)?(0,a.jsx)(e,{...t}):null}}},70921:function(e,t,s){"use strict";s.r(t),s.d(t,{Providers:function(){return v}});var a=s(5761),r=s(7248),i=s(35209),n=s(35336),u=s(72221),o=s(47940),h=s(21887),l=s(86344),c=class extends l.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,s){let a=t.queryKey,r=t.queryHash??(0,u.Rm)(a,t),i=this.get(r);return i||(i=new o.A({cache:this,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){h.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,u._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,u._x)(e,t)):t}notify(e){h.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){h.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){h.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},f=s(18112),d=class extends l.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#s=Date.now()}#t;#s;build(e,t,s){let a=new f.m({mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:s});return this.add(a),a}add(e){let t=scopeFor(e),s=this.#t.get(t)??[];s.push(e),this.#t.set(t,s),this.notify({type:"added",mutation:e})}remove(e){let t=scopeFor(e);if(this.#t.has(t)){let s=this.#t.get(t)?.filter(t=>t!==e);s&&(0===s.length?this.#t.delete(t):this.#t.set(t,s))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(scopeFor(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(scopeFor(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){h.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,u.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,u.X7)(e,t))}notify(e){h.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return h.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(u.ZT))))}};function scopeFor(e){return e.options.scope?.id??String(e.mutationId)}var y=s(97071),p=s(83787);function infiniteQueryBehavior(e){return{onFetch:(t,s)=>{let fetchFn=async()=>{let s;let a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],n=t.state.data?.pageParams||[],o=!1,addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?o=!0:t.signal.addEventListener("abort",()=>{o=!0}),t.signal)})},h=(0,u.cG)(t.options,t.fetchOptions),fetchPage=async(e,s,a)=>{if(o)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);let r={queryKey:t.queryKey,pageParam:s,direction:a?"backward":"forward",meta:t.options.meta};addSignalProperty(r);let i=await h(r),{maxPages:n}=t.options,l=a?u.Ht:u.VX;return{pages:l(e.pages,i,n),pageParams:l(e.pageParams,s,n)}};if(r&&i.length){let e="backward"===r,t=e?getPreviousPageParam:getNextPageParam,u={pages:i,pageParams:n},o=t(a,u);s=await fetchPage(u,o,e)}else{s=await fetchPage({pages:[],pageParams:[]},n[0]??a.initialPageParam);let t=e??i.length;for(let e=1;et.options.persister?.(fetchFn,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=fetchFn}}}function getNextPageParam(e,{pages:t,pageParams:s}){let a=t.length-1;return e.getNextPageParam(t[a],t,s[a],s)}function getPreviousPageParam(e,{pages:t,pageParams:s}){return e.getPreviousPageParam?.(t[0],t,s[0],s)}var m=class{#a;#r;#i;#n;#u;#o;#h;#l;constructor(e={}){this.#a=e.queryCache||new c,this.#r=e.mutationCache||new d,this.#i=e.defaultOptions||{},this.#n=new Map,this.#u=new Map,this.#o=0}mount(){this.#o++,1===this.#o&&(this.#h=y.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onFocus())}),this.#l=p.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onOnline())}))}unmount(){this.#o--,0===this.#o&&(this.#h?.(),this.#h=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#a.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let s=this.defaultQueryOptions(e),a=this.#a.build(this,s);return e.revalidateIfStale&&a.isStaleByTime((0,u.KC)(s.staleTime,a))&&this.prefetchQuery(s),Promise.resolve(t)}}getQueriesData(e){return this.#a.findAll(e).map(({queryKey:e,state:t})=>{let s=t.data;return[e,s]})}setQueryData(e,t,s){let a=this.defaultQueryOptions({queryKey:e}),r=this.#a.get(a.queryHash),i=r?.state.data,n=(0,u.SE)(t,i);if(void 0!==n)return this.#a.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(e,t,s){return h.V.batch(()=>this.#a.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,s)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state}removeQueries(e){let t=this.#a;h.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let s=this.#a,a={type:"active",...e};return h.V.batch(()=>(s.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(a,t)))}cancelQueries(e={},t={}){let s={revert:!0,...t},a=h.V.batch(()=>this.#a.findAll(e).map(e=>e.cancel(s)));return Promise.all(a).then(u.ZT).catch(u.ZT)}invalidateQueries(e={},t={}){return h.V.batch(()=>{if(this.#a.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let s={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(s,t)})}refetchQueries(e={},t){let s={...t,cancelRefetch:t?.cancelRefetch??!0},a=h.V.batch(()=>this.#a.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,s);return s.throwOnError||(t=t.catch(u.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(a).then(u.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let s=this.#a.build(this,t);return s.isStaleByTime((0,u.KC)(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(u.ZT).catch(u.ZT)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(u.ZT).catch(u.ZT)}resumePausedMutations(){return p.N.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#a}getMutationCache(){return this.#r}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#n.set((0,u.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#n.values()],s={};return t.forEach(t=>{(0,u.to)(e,t.queryKey)&&(s={...s,...t.defaultOptions})}),s}setMutationDefaults(e,t){this.#u.set((0,u.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#u.values()],s={};return t.forEach(t=>{(0,u.to)(e,t.mutationKey)&&(s={...s,...t.defaultOptions})}),s}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#i.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,u.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===u.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#a.clear(),this.#r.clear()}},g=s(30606),b=s(88275);let P=new m,v=(0,b.n)(e=>{let{children:t}=e;return(0,a.jsx)(i.F,{config:n.Z,children:(0,a.jsx)(g.aH,{client:P,children:(0,a.jsx)(r.pj,{locale:"en-US",modalSize:"compact",children:t})})})})},35336:function(e,t,s){"use strict";s.d(t,{k:function(){return l}});var a=s(7248),r=s(48557),i=s(82955),n=s(72545),u=s(82334),o=s(15526),h=s(70707);let l=(0,n.a)({id:2832,network:"EthDA Testnet",name:"EthDA Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.ethda.io"]},public:{http:["https://rpc-testnet.ethda.io"]}},blockExplorers:{default:{name:"Blockscan",url:"https://scan-testnet.ethda.io"},blobs:{name:"Blobscan",url:"https://blobscan-testnet.ethda.io"}},contracts:{blobTo:{address:"0x975ef84AE286F95a9F732C30267Bb50D103b4374"}},custom:{bridgeUrl:"https://bridge-testnet.ethda.io"}}),c=(0,a.a3)([{groupName:"Recommended",wallets:[u.D,o.u]}],{appName:"EthDA",appUrl:"https://ethda.io",appIcon:"https://ethda.io/logo.svg",projectId:"08655efd533e1054791755a0c58862c4"}),f=(0,r._)({connectors:c,chains:[l],client(e){let{chain:t}=e;return(0,h.e)({chain:t,transport:(0,i.d)()})}});t.Z=f},64476:function(){},73444:function(){},67218:function(e){e.exports={style:{fontFamily:"'__Montserrat_b1da2a', '__Montserrat_Fallback_b1da2a'",fontStyle:"normal"},className:"__className_b1da2a",variable:"__variable_b1da2a"}}},function(e){e.O(0,[1118,8128,2802,6651,6314,1744],function(){return e(e.s=44964)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-a144af1a332fa439.js b/_next/static/chunks/app/page-c60a2148010e61ef.js similarity index 99% rename from _next/static/chunks/app/page-a144af1a332fa439.js rename to _next/static/chunks/app/page-c60a2148010e61ef.js index db9b4b7..9fd31f3 100644 --- a/_next/static/chunks/app/page-a144af1a332fa439.js +++ b/_next/static/chunks/app/page-c60a2148010e61ef.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{12454:function(e,t,s){Promise.resolve().then(s.bind(s,33352))},33352:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return Home}});var l=s(5761),r=s(44475),a=s.n(r);let TelegramIcon=()=>(0,l.jsx)("svg",{width:"25",height:"20",viewBox:"0 0 25 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M9.0915 18.79L9.46694 13.1963L19.7646 4.04528C20.2204 3.63534 19.6707 3.43698 19.0673 3.79403L6.3562 11.7152L0.858767 9.99607C-0.321169 9.66547 -0.334578 8.85881 1.12693 8.27696L22.5401 0.130983C23.5189 -0.305408 24.4575 0.369015 24.0821 1.8501L20.435 18.79C20.1802 19.9934 19.4428 20.2843 18.4237 19.7289L12.8727 15.6824L10.2044 18.2346C9.896 18.5388 9.64124 18.79 9.0915 18.79Z",fill:"currentColor"})}),MediumIcon=()=>(0,l.jsx)("svg",{width:"26",height:"20",viewBox:"0 0 26 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M23.8385 2.35024L25.834 0.422258V0H18.9232L13.998 12.3863L8.39583 0H1.14974V0.422258L3.48047 3.25696C3.70833 3.46645 3.82552 3.77414 3.79622 4.08183V15.2209C3.86784 15.6236 3.74089 16.0327 3.46094 16.3241L0.833984 19.5417V19.9574H8.27539V19.5352L5.65169 16.3273C5.36849 16.036 5.23177 15.6301 5.29036 15.2242V5.58756L11.8236 19.964H12.582L18.2005 5.58756V17.0409C18.2005 17.3421 18.2005 17.4043 18.0052 17.6039L15.9837 19.5777V20H25.7884V19.5777L23.8385 17.6498C23.6693 17.5188 23.5814 17.2995 23.6172 17.0867V2.91326C23.5814 2.70049 23.6693 2.48118 23.8385 2.35024Z",fill:"currentColor"})}),TwitterIcon=()=>(0,l.jsx)("svg",{width:"26",height:"20",viewBox:"0 0 29 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M22.9454 0.788574H27.3156L17.768 11.7008L29 26.5499H20.2055L13.3173 17.544L5.43561 26.5499H1.06279L11.2749 14.8781L0.5 0.788574H9.5178L15.7441 9.02032L22.9454 0.788574ZM21.4116 23.9342H23.8332L8.20199 3.26695H5.60339L21.4116 23.9342Z",fill:"currentColor"})}),GithubIcon=()=>(0,l.jsx)("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M16.4083 3.4091C17.185 1.93182 16.2974 0 16.2974 0C14.3001 0 12.8577 1.36363 12.8577 1.36363C12.081 0.909079 9.52903 0.909079 9.52903 0.909079C9.52903 0.909079 6.97704 0.909079 6.20035 1.36363C6.20035 1.36363 4.75792 0 2.76071 0C2.76071 0 1.87305 1.93182 2.64975 3.4091C2.64975 3.4091 0.874453 5.11365 1.54018 8.75001C2.16577 12.1671 5.09077 13.0682 6.97702 13.0682C6.97702 13.0682 6.20033 13.75 6.31129 14.8864C6.31129 14.8864 5.20173 15.5682 4.09217 15.1137C2.98261 14.6591 2.42782 13.5227 2.42782 13.5227C2.42782 13.5227 1.31826 12.0455 0.2087 12.6136C0.2087 12.6136 -0.124166 12.9545 1.09636 13.5227C1.09636 13.5227 1.98401 14.8864 2.31688 15.6818C2.64974 16.4773 4.42504 17.1591 6.20035 16.7045V19.3182C6.20035 19.3182 6.20035 19.5454 5.75652 19.6591C5.31269 19.7727 5.31269 20 5.53462 20H13.5234C13.7453 20 13.7453 19.7727 13.3015 19.6591C12.8577 19.5454 12.8577 19.3182 12.8577 19.3182V16.7045C12.8577 16.7045 12.8675 15.3417 12.8577 14.8864C12.8333 13.7446 12.081 13.0682 12.081 13.0682C13.9673 13.0682 16.8923 12.1671 17.5179 8.74999C18.1836 5.11365 16.4083 3.4091 16.4083 3.4091Z",fill:"currentColor"})}),DiscordIcon=()=>(0,l.jsx)("svg",{width:"22",height:"18",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M18.704 2.07358C21.1504 5.70543 22.3588 9.80212 21.9072 14.5193C21.9062 14.5292 21.9031 14.5388 21.8982 14.5475C21.8933 14.5561 21.8866 14.5635 21.8785 14.5694C20.2411 15.7938 18.4087 16.7273 16.4602 17.3294C16.4464 17.3338 16.4314 17.3338 16.4176 17.3292C16.4037 17.3246 16.3917 17.3157 16.3831 17.3038C15.9715 16.7265 15.6022 16.1196 15.2783 15.4879C15.2738 15.4792 15.2711 15.4695 15.2705 15.4597C15.2699 15.4499 15.2713 15.44 15.2748 15.4307C15.2782 15.4215 15.2835 15.4131 15.2904 15.4061C15.2973 15.3991 15.3055 15.3936 15.3147 15.39C15.8999 15.1681 16.4656 14.8965 17.0055 14.5782C17.0152 14.5724 17.0233 14.5642 17.0291 14.5544C17.035 14.5447 17.0384 14.5336 17.0391 14.5222C17.0397 14.5108 17.0376 14.4994 17.0329 14.489C17.0282 14.4786 17.021 14.4696 17.0121 14.4626C16.8975 14.3765 16.7852 14.2875 16.675 14.1957C16.6653 14.1876 16.6535 14.1825 16.641 14.1809C16.6285 14.1793 16.6159 14.1814 16.6045 14.1868C13.1006 15.8215 9.26186 15.8215 5.71611 14.1868C5.70461 14.1817 5.6919 14.1799 5.67944 14.1816C5.66697 14.1834 5.65525 14.1887 5.64561 14.1968C5.53569 14.2881 5.42368 14.3767 5.30966 14.4626C5.30074 14.4696 5.29366 14.4788 5.28905 14.4892C5.28444 14.4997 5.28242 14.5111 5.28318 14.5225C5.28394 14.5339 5.28746 14.5449 5.29342 14.5547C5.29938 14.5644 5.3076 14.5725 5.31738 14.5782C5.85712 14.8907 6.41778 15.1654 7.00709 15.3911C7.01627 15.3944 7.02463 15.3997 7.03162 15.4066C7.0386 15.4134 7.04405 15.4217 7.0476 15.4309C7.05115 15.4401 7.05272 15.4499 7.05219 15.4597C7.05166 15.4695 7.04906 15.4791 7.04455 15.4879C6.72513 16.1239 6.35391 16.73 5.93754 17.3049C5.9288 17.3162 5.91686 17.3247 5.9033 17.329C5.88973 17.3334 5.87517 17.3335 5.86154 17.3294C3.91657 16.7252 2.08738 15.792 0.452015 14.5694C0.444057 14.5633 0.437415 14.5556 0.432493 14.5468C0.427572 14.538 0.424473 14.5283 0.423385 14.5182C0.0455595 10.4382 0.815512 6.30929 3.62435 2.07248C3.6312 2.06157 3.64119 2.05303 3.65298 2.04801C5.03538 1.40749 6.5158 0.935981 8.0634 0.666881C8.07711 0.664685 8.09116 0.666691 8.10373 0.672638C8.1163 0.678585 8.12681 0.6882 8.13391 0.700242C8.32557 1.04274 8.54367 1.48088 8.69237 1.83896C10.3338 1.58749 12.0033 1.58749 13.6447 1.83896C13.7934 1.48867 14.0038 1.04276 14.1944 0.701362C14.2012 0.688775 14.2118 0.678733 14.2247 0.672724C14.2376 0.666715 14.2521 0.665059 14.266 0.668002C15.8136 0.937102 17.2951 1.40861 18.6753 2.04692C18.6878 2.05199 18.6979 2.06148 18.704 2.07361L18.704 2.07358ZM9.52183 9.83105C9.53835 8.62451 8.66707 7.62703 7.57436 7.62703C6.48937 7.62703 5.62689 8.61672 5.62689 9.83105C5.62689 11.0454 6.507 12.034 7.57436 12.034C8.65824 12.034 9.52183 11.0443 9.52183 9.83105ZM16.7202 9.83105C16.7378 8.62451 15.8665 7.62703 14.7738 7.62703C13.6888 7.62703 12.8263 8.61672 12.8263 9.83105C12.8263 11.0454 13.7065 12.034 14.7738 12.034C15.8665 12.034 16.7202 11.0443 16.7202 9.83105Z",fill:"currentColor"})}),Footer=()=>{let e=new Date().getFullYear();return(0,l.jsx)("div",{className:"bg-[url(/left-p.svg)] ",children:(0,l.jsx)("footer",{className:"bg-black py-20 mo:py-10 px-5",children:(0,l.jsxs)("div",{className:"container mx-auto mo:flex mo:flex-col justify-center mo:flex-wrap md:px-[30px]",children:[(0,l.jsx)("img",{src:"/logo.svg",className:"shrink-0 h-[26px] w-[119px]"}),(0,l.jsxs)("div",{className:"flex justify-between mo:flex-col gap-8 items-center mt-8",children:[(0,l.jsx)("div",{className:"text-white font-light text-2xl mo:text-xl mo:w-full mo:flex mo:justify-center",children:"Start Your EthDA Journey Now !"}),(0,l.jsx)("div",{className:"rounded-full",style:{padding:1,backgroundImage:"linear-gradient(90deg, #FFBA04 0%, #FC7823 100%)"},children:(0,l.jsx)("button",{style:{background:"linear-gradient(90deg, #855A10 0%, #562B0F 100%)"},onClick:()=>window.open("https://forms.gle/TTxnVhnEyNEkyXUAA","_blank"),className:"overflow-hidden rounded-full px-8 py-2 text-2xl font-light mo:text-xl text-white",children:"Connect with Crust Team"})})]}),(0,l.jsx)("div",{className:"bg-white/15 my-10 h-[1px] w-full"}),(0,l.jsxs)("div",{className:"flex justify-between items-center mo:flex-col mo:w-full ",children:[(0,l.jsxs)("div",{className:"text-white/65 text-sm mo:self-start",children:["Copyright \xa9 EthDA ",e," All Rights Reserved"]}),(0,l.jsxs)("div",{className:"flex gap-10 mo:gap-[50px] mo:my-10 mo:w-full mo:justify-center mo:justify-between text-[#737373]",children:[(0,l.jsx)(a(),{href:"https://twitter.com/CrustNetwork",target:"_blank",className:"link-icon",children:(0,l.jsx)(TwitterIcon,{})}),(0,l.jsx)(a(),{href:"https://discord.com/invite/Jbw2PAUSCR",target:"_blank",className:"link-icon",children:(0,l.jsx)(DiscordIcon,{})}),(0,l.jsx)(a(),{href:"https://t.me/CrustNetwork",target:"_blank",className:"link-icon",children:(0,l.jsx)(TelegramIcon,{})}),(0,l.jsx)(a(),{href:"https://github.com/crustio",target:"_blank",className:"link-icon",children:(0,l.jsx)(GithubIcon,{})}),(0,l.jsx)(a(),{href:"https://crustnetwork.medium.com/",target:"_blank",className:"link-icon",children:(0,l.jsx)(MediumIcon,{})})]})]})]})})})};var n=s(94488),i=s(83376);let Typewriter=e=>{let{phrases:t}=e,[s,r]=(0,n.useState)(0),[a,i]=(0,n.useState)(0),[o,c]=(0,n.useState)(!1),[x,d]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e=t[s],l=setTimeout(()=>{o||a!==e.length?o&&0===a?(c(!1),r(e=>e===t.length-1?0:e+1)):i(e=>o?e-1:e+1):c(!0)},o?80:150);return d(e.substring(0,a)),()=>clearTimeout(l)},[a,o,s,t]),(0,l.jsx)("div",{className:"typewriter",children:(0,l.jsx)("h1",{children:x})})},o=["Aggregated Blockchains","Aggregated Staking","Aggregated Data","Aggregated Growth"];var Home_ABanner=()=>(0,l.jsxs)("div",{className:"h-[1000px] mo:max-h-[160vw] mo:h-screen mo:min-h-[120vw] flex flex-col bg-black",children:[(0,l.jsx)(i.h,{contentClassName:"border-b-[#E0890033] border-b",wrapperClassName:"mt-[67px]",btnClassName:"text-white ",className:"py-[28px] md:mx-[30px] "}),(0,l.jsxs)("div",{className:"flex-1 flex justify-center flex-col items-center",style:{backgroundImage:"url(/bg_gif.gif)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"contain"},children:[(0,l.jsx)("div",{className:" w-full ",children:(0,l.jsxs)("div",{className:" font-bold text-[62px] md:text-[50px] mo:text-[6vw] text-center text-white pt-[206px] mo:pt-[20vw]",children:[(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)("div",{className:"flex justify-center items-center ",children:(0,l.jsxs)("div",{className:"w-auto whitespace-nowrap flex border border-[#E08900] px-8 mo:px-4 py-3 architecture-info-right items-center",children:[(0,l.jsx)("div",{className:"text-center",children:"A Data Availability "}),(0,l.jsx)("span",{className:"text-[#E08900] ml-3",children:" Layer"}),(0,l.jsx)("div",{className:"border_corner border_corner_left_top"}),(0,l.jsx)("div",{className:"border_corner border_corner_right_top"}),(0,l.jsx)("div",{className:"border_corner border_corner_left_bottom"}),(0,l.jsx)("div",{className:"border_corner border_corner_right_bottom"}),(0,l.jsxs)("div",{className:"flex justify-center flex-col float-end absolute top-[calc(100%+12px)] right-0",children:[(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:"./mouse.svg"})}),(0,l.jsx)("div",{className:"ml-2 mt-2",children:(0,l.jsx)("div",{className:" border w-[70px] h-[30px] rounded border-[#E08900] text-[#E08900] text-[10px] flex items-center justify-center ",children:"Layer 2"})})]})]})})}),(0,l.jsxs)("div",{className:" pt-[60px] font-hlc w-full flex justify-center items-center flex-wrap gap-4 mo:flex-col",style:{letterSpacing:"2px"},children:["Designed for",(0,l.jsx)("div",{className:"text-[#E08900] md:text-[50px]",children:(0,l.jsx)(Typewriter,{phrases:o})})]})]})}),(0,l.jsx)("div",{className:"mt-auto mb-5 w-full ",children:(0,l.jsx)("div",{className:"flex justify-center rounded-sm ",children:(0,l.jsx)("button",{onClick:()=>window.open("https://docs.ethda.io/"),style:{background:"linear-gradient(90deg, rgba(222, 149, 25, 0.6) 0%, rgba(142, 70, 24, 0.6) 100%)"},className:"borders text-white w-[260px] h-[66px] mo:w-[200px] mo:h-[40px] font-hlc text-2xl mo:text-lg font-black",children:"Read Docs"})})}),(0,l.jsx)("div",{className:"flex justify-center mb-8",children:(0,l.jsxs)("div",{style:{letterSpacing:"2px"},className:" text-white flex items-center font-hlc ",children:[(0,l.jsx)("img",{src:"./polygon.svg",className:"w-[3.1vw]"})," ",(0,l.jsx)("span",{className:" ml-3 text-[28px] mo:text-[3vw]",children:"Polygon"}),(0,l.jsxs)("div",{className:"text-[32px] mo:text-[3vw]",children:[(0,l.jsx)("span",{className:"text-[#8F4FFF] ml-2",children:"CDK"}),"-based L2, ",(0,l.jsx)("span",{className:"ml-2",children:"Connect"})," with"," ",(0,l.jsx)("span",{className:"text-[#8F4FFF]",children:"AggLayer"})]})]})})]})]}),Home_AConnectEthDA=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:" text-center ",children:[(0,l.jsx)("div",{className:"bg-black",children:(0,l.jsxs)("div",{className:" mo:mx-0 px-10 mo:px-5 mo:flex-wrap mo:w-full mx-auto w-container md:w-full md:px-[30px]",children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)("div",{className:" pt-[72px] pb-20 text-white text-[42px] mo:text-[6vw] font-black font-hlc",children:(0,l.jsxs)("div",{className:"flex z-20",children:[(0,l.jsx)("div",{className:" relative z-10",children:"Connect to EthDA"}),(0,l.jsxs)("div",{className:" relative left-[-35px] mt-6 rounded-[40px] bg-[#823ADE] w-[170px] h-[50px] gap-1 px-5 text-[26px] transform -rotate-12 font-hlc items-center flex",children:[(0,l.jsx)("img",{src:"./polygon-w.svg",className:" "}),"Polygon"]})]})})}),(0,l.jsx)("div",{className:"flex justify-center pb-[120px] ",children:(0,l.jsx)("img",{src:"./connectEthDA.svg"})})]})}),(0,l.jsxs)("div",{className:"flex justify-center overflow-visible bg-black",children:[(0,l.jsx)("div",{className:"flex-1 bg-white rounded-tr-lg"}),(0,l.jsxs)("div",{className:"w-[20vw] max-w-40 h-[10vw] max-h-20 p-3 mo:p-[2vw] shrink-0 bg-white relative translate-y-2",children:[(0,l.jsx)("div",{className:"w-full h-full absolute left-0 top-0 bg-black rounded-b-full z-0"}),(0,l.jsx)("img",{src:"./design.svg",className:"w-full h-auto -translate-y-[calc(50%+0.75rem)] mo:-translate-y-[calc(50%+2vw)]"})]}),(0,l.jsx)("div",{className:"flex-1 bg-white rounded-tl-lg"})]})]})}),Home_Aaggregated=()=>(0,l.jsxs)("div",{className:" ",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-center items-center mt-5 gap-[27px] mo:mx-0 px-10 mo:px-5 mo:w-full mx-auto w-container md:w-full md:px-[30px]",children:[(0,l.jsx)("div",{className:" ml-[100px] mo:ml-0 font-hlc font-black text-[42px] mo:text-[6vw]",children:"Aggregated with EthDA"}),(0,l.jsx)("img",{src:"./arrow.svg",className:"mo:w-[8vw]"})]}),(0,l.jsx)("div",{className:"flex flex-row w-full justify-center mt-20 md:px-[30px] mo:mt-5",children:(0,l.jsx)("img",{src:"./aggregated.svg",className:"mo:px-2"})})]}),c=s(39586);s(16476),s(9025);var x=s(18980);let useIsClient=()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)}),e},d=[{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line1.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2024 Q1"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(-2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"DevNet launch in Feb, with workable chain and interfaces, demonstration DApp, BlobScan, and necessary dev docs"}),borderImg:"bg-[url(/border1.svg)] w-[200px] mt-[54px]"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line2.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2024 Q2"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(-2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"TestNet launch in May, with initial DAS implementation and related flows, full dev docs and SDK; CDK readiness for market promotion"}),borderImg:"bg-[url(/border2.svg)]"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line3.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2024 Q4"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"Full DAS and Staking implementation, benefit sharing contracts, treasury and governance modules MainNet Launch"}),borderImg:"bg-[url(/border3.svg)] mt-[-24px]"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line1.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2025"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(-2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"Extend DStorage use cases like assurance pool, Blob operating and management Continuously L2 technologies and ecosystems integration"}),borderImg:"bg-[url(/border2.svg)] mt-8"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line2.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2026"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"Extend DA services to Ethereum L1 light / stateless nodes GraphQL-like query and programmabilities on data blobs"}),borderImg:"bg-[url(/border1.svg)] -mt-5"}];var Home_AIntroduce=()=>{let{width:e}=(0,x.Z)(1024),t=Math.min(4,d.length,Math.round(e/350)),s=useIsClient();return(0,l.jsx)("div",{className:" rounded-t-[40px] mo:rounded-t-3xl mt-20 mo:mt-8 bg-black text-white ",children:(0,l.jsxs)("div",{className:" mt-[100px] mo:mt-0 pb-10 justify-center mo:mx-0 px-10 mo:px-5 mo:flex-wrap mo:w-full mx-auto w-container md:w-full md:px-[30px]",children:[(0,l.jsxs)("div",{className:" flex font-hlc font-black gap-4 text-[42px] mo:text-[6vw] items-center pt-10",children:["Dev Plan",(0,l.jsx)("img",{src:"./plus.svg"})]}),(0,l.jsxs)("div",{style:{fontFamily:"inter"},className:"mt-[50px] font-extralight text-[54px] mo:text-[7vw] mo:mt-5",children:[(0,l.jsx)("div",{children:"MainNet Launch in"}),(0,l.jsx)("div",{children:"2024 Q4"})]}),(0,l.jsx)("div",{className:"h-[455px] mb-[100px] mo:mb-0 mo:mt-4",children:s&&(0,l.jsx)(c.Z,{dots:!1,slidesToShow:t,slidesToScroll:1,adaptiveHeight:!0,arrows:!1,infinite:!0,autoplay:!0,speed:2e3,autoplaySpeed:2e3,cssEase:"linear",children:d.map((e,t)=>{let{img:s,content:r,borderImg:a,title:n,line:i}=e;return(0,l.jsx)("div",{className:"".concat(a," h-[435px] bg-repeat bg-cover"),children:(0,l.jsxs)("div",{className:" mt-[34px] mx-[34px]",children:[(0,l.jsxs)("div",{style:{fontFamily:"inter"},className:" flex items-center gap-3",children:[s,n]}),(0,l.jsx)("div",{className:"mt-[37px]",children:i}),r]})},"content_".concat(t))})})})]})})};let m="#fff",h="#E08900";function GrowthSVG(e){let{className:t}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 582 636",style:{background:"#000000"},xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("defs",{children:(0,l.jsx)("path",{width:"10",height:"10",id:"ethda_arrow",d:"M0 2L5 8L10 2",strokeLinecap:"round",strokeWidth:"1.6"})}),(0,l.jsx)("path",{d:"M250 30L76 30L76 114M76 210L76 330L223 330M345 330L506 330L506 222M506 120L506 30L333 30",stroke:m,strokeWidth:"1",strokeDasharray:"4 4",fill:"none",children:(0,l.jsx)("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-80",dur:"2s",repeatCount:"indefinite"})}),(0,l.jsx)("path",{d:"M291 260L30 260L30 400M30 470L30 560L62 560M220 560L254 560M291 530L291 352M291 300L291 260L552 260L552 400M552 470L552 560L505 560M350 560L323 560",stroke:h,strokeWidth:"1",strokeDasharray:"4 4",fill:"none",children:(0,l.jsx)("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-80",dur:"2s",repeatCount:"indefinite"})}),(0,l.jsxs)("g",{transform:"translate(263, 2)",children:[(0,l.jsx)("image",{xlinkHref:"/users.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{textAnchor:"middle",x:"25",y:"75",fontSize:"14",fill:m,children:"Users"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(330, 25) rotate(90,5,5)",stroke:m}),(0,l.jsxs)("g",{transform:"translate(52, 130)",children:[(0,l.jsx)("image",{xlinkHref:"/layer2s.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{textAnchor:"middle",x:"25",y:"75",fontSize:"14",fill:m,children:"Layer2s"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(71, 110)",stroke:m}),(0,l.jsxs)("g",{transform:"translate(481, 130)",children:[(0,l.jsx)("image",{xlinkHref:"/dataInterface.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{textAnchor:"middle",x:"0",y:"75",fontSize:"14",fill:m,children:"Data Onchain Interface"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(501, 220) rotate(180,5,5)",stroke:m}),(0,l.jsx)("image",{xlinkHref:"ethDA.png",width:"109",height:"24",x:"236.5",y:"316",style:{background:"#000000"}}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(220, 325) rotate(-90,5,5)",stroke:m}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(286, 292) rotate(0,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(286, 349) rotate(180,5,5)",stroke:h}),(0,l.jsx)("text",{x:"90",y:"56",fill:m,children:"Tx"}),(0,l.jsx)("text",{x:"90",y:"310",fill:m,children:"Blobs"}),(0,l.jsx)("text",{x:"492",y:"56",fill:m,textAnchor:"end",children:"Accessible"}),(0,l.jsx)("text",{x:"492",y:"310",fill:m,textAnchor:"end",children:"Agg.Data"}),(0,l.jsx)("text",{x:"295",y:"452",fill:h,children:"Pos"}),(0,l.jsxs)("g",{transform:"translate(5, 420)",children:[(0,l.jsx)("image",{xlinkHref:"/y-users.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{x:"70",y:"32",fontSize:"14",fill:h,children:"Benefit-Sharing"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(25, 392) rotate(0,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(547, 392) rotate(0,5,5)",stroke:h}),(0,l.jsxs)("g",{transform:"translate(527, 420)",children:[(0,l.jsx)("image",{xlinkHref:"/y-users.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{x:"-20",y:"32",fontSize:"14",fill:h,textAnchor:"end",children:"Protocal Incentive"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(60, 555) rotate(-90,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(250, 555) rotate(-90,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(322, 555) rotate(90,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(500, 555) rotate(90,5,5)",stroke:h}),(0,l.jsxs)("g",{transform:"translate(80, 545)",children:[(0,l.jsx)("rect",{width:"140",height:"30",x:"0",y:"0",rx:"15",stroke:h}),(0,l.jsx)("text",{x:"70",y:"20",fontSize:"14",fill:h,textAnchor:"middle",children:"Dual-Stake"}),(0,l.jsx)("text",{x:"70",y:"60",fontSize:"14",fill:h,textAnchor:"middle",children:"L2 Native Token"})]}),(0,l.jsxs)("g",{transform:"translate(350, 545)",children:[(0,l.jsx)("rect",{width:"140",height:"30",x:"0",y:"0",rx:"15",stroke:h}),(0,l.jsx)("text",{x:"70",y:"20",fontSize:"14",fill:h,textAnchor:"middle",children:"PoS Stake"}),(0,l.jsx)("text",{x:"70",y:"60",fontSize:"14",fill:h,textAnchor:"middle",children:"Restake ETH"})]}),(0,l.jsxs)("g",{transform:"translate(267, 536)",children:[(0,l.jsx)("image",{xlinkHref:"/das.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{x:"25",y:"70",fontSize:"14",fill:h,textAnchor:"middle",children:"DAS Nodes"})]})]})}let f=["Staking","Data","Growth"];function ContentItem(e){let{tit:t,sub:s}=e;return(0,l.jsxs)("div",{className:"leading-none flex flex-col text-left max-w-[500px] mr-10 mo:mr-0",children:[(0,l.jsxs)("span",{className:" text-[32px] md:text-[28px] mo:text-[4.1vw] font-extrabold text-black",children:[" ",t,":"]}),(0,l.jsxs)("span",{className:"leading-tight text-2xl mo:text-[3.9vw] font-medium text-black mt-6 mo:mt-4",children:[" ",s]})]})}var Home_ANewAgg=()=>{let e=(0,n.useMemo)(()=>[{title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:'"'}),(0,l.jsx)("span",{children:"Agg. "}),(0,l.jsx)("span",{className:"text-black",children:"Staking"})]}),other:(0,l.jsxs)("div",{className:"self-center",children:[(0,l.jsx)("div",{className:"flex ml-10 mo:ml-0 ",children:(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(143, 79, 255, 0.13) 0%, rgba(86, 47, 153, 0.4) 100%)"},className:"text-[#8F4FFF] tracking-[0.045em] text-base md:text-sm border-[#8F4FFF] border rounded-[50px] px-5 w-[170px] md:w-[155px] h-9 flex items-center",children:"ETH Restaking"})}),(0,l.jsx)("div",{className:"flex mt-6 mo:mt-3 ml-10 mo:ml-0",children:(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(253, 121, 35, 0.13) 0%, rgba(255, 199, 0, 0.21) 100%)"},className:"text-[#E08900] text-base md:text-sm border-[#E08900] border rounded-[50px] px-5 w-[170px] md:w-[155px] h-9 flex items-center",children:"L2 Native Token"})})]}),img:(0,l.jsx)("div",{className:" w-[600px] md:w-auto mo:w-auto",children:(0,l.jsx)("img",{src:"./gif/1.gif"})}),content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ContentItem,{tit:"ETH Restaking",sub:"Restake ETH on EthDA DAS nodes."}),(0,l.jsx)(ContentItem,{tit:"Dual-Staking",sub:"Dual-stake native token of L2 protocols."})]})},{title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:'"Agg. '}),(0,l.jsx)("span",{className:"text-black",children:"Data"})]}),img:(0,l.jsxs)("div",{className:"flex relative w-fit",children:[(0,l.jsx)("div",{className:" ",children:(0,l.jsx)("img",{src:"./gif/2.gif",id:"gif",className:"py-[30px] w-full mmd:w-[500px] bg-cover"})}),(0,l.jsx)("div",{className:"flex ",children:(0,l.jsx)("div",{className:"self-start",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 font-medium mo:items-end",children:[(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(143, 79, 255, 0.13) 0%, rgba(86, 47, 153, 0.4) 100%)"},className:"text-[#8F4FFF] border-[#8F4FFF] border rounded-[50px] px-5 w-[110px] h-8 flex items-center justify-center",children:"Blob Tx"}),(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(253, 121, 35, 0.13) 0%, rgba(255, 199, 0, 0.21) 100%)"},className:"text-[#E08900] border-[#E08900] border rounded-[50px] px-5 w-[110px] h-8 flex items-center justify-center",children:"Blob Tx"})]})})}),(0,l.jsx)("div",{className:"absolute top-[40%] right-0 w-fit",children:(0,l.jsxs)("div",{style:{fontFamily:"inter",background:"linear-gradient(90deg, rgba(153, 153, 153, 0.21) 15.21%, rgba(255, 255, 255, 0.21) 100%)"},className:" border mt-4 text-white text-[12px] font-medium border-white h-8 flex items-center justify-center rounded-[50px] w-[227px] ",children:[(0,l.jsx)("img",{src:"./interface.svg",className:" mr-1"}),(0,l.jsx)("span",{className:"",children:"On-chain Interface for Agg. Data"})]})})]}),content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ContentItem,{tit:"zkBlob",sub:"Ethereum Blob TX —> DAS —> Data Proof via ZK rollup."}),(0,l.jsx)(ContentItem,{tit:"Data Programmability",sub:"On-chain interfaces for data functions can be instanly accessed by smart contracts and AggLayer blockchains."})]})},{title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:'"Agg. '}),(0,l.jsx)("span",{className:"text-black",children:"Growth"})]}),img:(0,l.jsx)(GrowthSVG,{className:"w-[600px] py-10 md:w-[500px] md:mt-14 mo:mt-8 mo:py-0 mo:w-full"}),content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ContentItem,{tit:"Data Value Extraction",sub:"Bi-directional value growth driven by data amount and value."}),(0,l.jsx)(ContentItem,{tit:"Benfit Sharing",sub:"Value stream reward back to all blockchain users that connect with EthDA."})]})}],[]);return(0,l.jsx)("div",{className:" mo:h-max",children:e.map((t,s)=>(0,l.jsx)("article",{id:"panel-".concat(s),className:" mo:!relative bg-slate-500 w-full tab".concat(s," sticky top-0"),style:{boxShadow:"0px 10px 6px 10px rgba(0,0,0,0.3)"},children:(0,l.jsxs)("div",{className:"flex mo:flex-col mo:h-fit",children:[(0,l.jsx)("div",{className:" bg-[url(/GroupBg.svg)] w-[50%] md:w-[40%] mo:w-full font-le text-white diagram-right flex justify-end mo:justify-center",children:(0,l.jsx)("div",{className:"flex flex-wrap px-[30px] md:w-full mo:px-[12vw] mo:py-8 h-full text-center items-center float-end mo:float-none mo:w-full",children:(0,l.jsxs)("div",{className:"flex flex-col gap-14 mo:gap-6 mo:w-full",children:[(0,l.jsx)("div",{className:"flex items-center flex-row",children:(0,l.jsx)("span",{className:"font-extrabold text-[48px] xmd:text-[40px] md:text-3xl mo:text-[6vw]",children:t.title})}),t.content]})})}),(0,l.jsx)("div",{className:"bg-black w-[50%] md:w-[60%] mo:w-full",children:(0,l.jsxs)("div",{className:"w-full max-w-[750px] md:w-full mo:w-full mo:max-w-none",children:[(0,l.jsxs)("div",{className:"flex flex-start mt-[62px] px-10 flex-row items-start justify-between gap-5 mo:mt-8 mo:px-5 mo:flex-col",children:[(0,l.jsx)("div",{className:"flex items-center gap-8 pb-5",children:[...Array(e.length)].map((e,t)=>(0,l.jsxs)("div",{style:{background:s===t?"linear-gradient(90deg, rgba(222, 149, 25, 0.2) 0%, rgba(142, 70, 24, 0.2) 100%)":"none"},className:" ".concat(s===t?" borders text-[#E08900] h-[40px] mo:h-[36px] w-auto gap-1 px-5":" text-white"," text-lg font-medium flex items-center justify-center "),children:[s===t&&(0,l.jsx)("img",{src:"./Box.svg"}),f[t]]},"tabs_".concat(t)))}),t.other]}),(0,l.jsx)("div",{className:"flex mx-[40px] md:block items-center mo:mx-0 mo:px-5 justify-center mo:w-full",children:t.img})]})})]})},"slider".concat(s)))})};function Home(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Home_ABanner,{}),(0,l.jsx)(Home_ANewAgg,{}),(0,l.jsx)(Home_AConnectEthDA,{}),(0,l.jsx)(Home_Aaggregated,{}),(0,l.jsx)(Home_AIntroduce,{}),(0,l.jsx)(Footer,{})]})}},83376:function(e,t,s){"use strict";s.d(t,{h:function(){return Header}});var l=s(5761),r=s(87254),a=s.n(r),n=s(31151),i=s(44475),o=s.n(i),c=s(94488),x=s(41129),d=s(43359),m=s.n(d),h=s(56401),components_FullModal=e=>{let{menus:t,keys:s="text",onChooseItem:r,chooseValue:a,wrapperClassName:i}=e,o=(0,n.useRouter)(),x=document.location.pathname.split("/")[1]||"",onClickItem=e=>{if(e.onClick&&e.onClick(),e.to.startsWith("http")){window.open(e.to,"_blank");return}o.push(e.to),"function"==typeof r&&r(e.text)};return(0,l.jsx)("div",{id:"modal",style:{background:"rgba(255, 255, 255, 0.90)"},className:m()("fixed inset-0 mt-[81px] flex z-50",i),children:(0,l.jsx)("div",{className:"p-8 rounded-md mo:w-full",children:t.map((e,t)=>(0,l.jsxs)(c.Fragment,{children:[e.topSplit&&t>0&&(0,l.jsx)("div",{className:"h-[1px] my-[.625rem] mo:my-[2px] mx-4 bg-[#eeeeee]"}),(0,l.jsxs)("div",{className:m()("flex w-full items-center py-[.625rem] mo:py-[.875rem] text-black hover:text-green-2 cursor-pointer"),onClick:()=>onClickItem(e),children:[!!e.icon&&(0,l.jsx)("div",{className:"text-xl mo:text-2xl",children:e.icon}),(0,l.jsxs)("div",{className:" text-[22px] inline-block font-medium border-b border-[#D9D9D9] border-solid pb-5 w-full mo:flex mo:w-full items-center mo:justify-between",children:[(0,l.jsx)("span",{className:m()({"text-[#FC7823]":!e.to.startsWith("http")&&x===e.to.split("/")[1]}),children:e[s]}),(0,l.jsx)(h.wpV,{className:m()({"text-[#FC7823]":!e.to.startsWith("http")&&x===e.to.split("/")[1]}),size:22})]})]})]},"poper_menu_item".concat(t)))})})},f=s(35336);let Header=e=>{let{logo:t="/logo.svg",containerClassName:s="container mx-auto ",headerTextClassName:r,wrapperClassName:i,className:d,btnClassName:h,contentClassName:g=" border-b",isShow:p}=e,{push:u}=(0,n.useRouter)(),j=(0,n.usePathname)(),[w,v]=(0,c.useState)(!1),[b,N]=(0,c.useState)(!1),[k,y]=(0,c.useState)(void 0),getWindowWidth=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,handleResize=()=>{v(900>=getWindowWidth())};(0,c.useEffect)(()=>(handleResize(),window.addEventListener("resize",handleResize),()=>{window.removeEventListener("resize",handleResize)}),[]),(0,c.useEffect)(()=>{b||(document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden"))},[b]);let C=[{text:"Home",to:"/"},{text:"Explorer",to:f.k.blockExplorers.default.url},{text:"Blobscan",to:f.k.blockExplorers.blobs.url},{text:"Try BlobTX",to:"/blobtx"},{text:"Document",to:"https://docs.ethda.io/"}],onSwitchTo=e=>{if(e.startsWith("http")){window.open(e,"_blank");return}u(e)};return(0,l.jsx)("div",{className:m()(" ".concat(g)),suppressHydrationWarning:!0,children:(0,l.jsxs)("header",{className:m()("py-5 ".concat(b&&" !bg-white"," border-b-[rgba(255,255,255,.2)]"),d),children:[(0,l.jsx)("div",{className:" mo:mx-[30px] ",children:(0,l.jsxs)("div",{className:m()("flex justify-between items-center",s),children:[(0,l.jsx)(o(),{href:"/",children:(0,l.jsx)(a(),{src:"".concat(b?"b-EthDA.svg":t),alt:" ".concat(b?"b-EthDA.svg":"logo.svg"),width:110,height:22})}),w?(0,l.jsx)("button",{onClick:()=>{N(!b),"function"==typeof p&&p(b),document.documentElement.classList.add("overflow-hidden"),document.body.classList.add("overflow-hidden")},children:b?(0,l.jsx)(x.fMW,{className:m()("".concat(b&&"!text-black"," w-6 h-6 "),h)}):(0,l.jsx)(x.otZ,{className:m()(h,"w-6 h-6 ")})}):(0,l.jsxs)("div",{className:m()("flex items-center gap-8 text-white text-sm",r),children:[(0,l.jsx)("div",{onClick:()=>onSwitchTo("/"),className:"nav-item ".concat("/"===j?"active":""),children:"Home"}),(0,l.jsx)("div",{onClick:()=>onSwitchTo(f.k.blockExplorers.default.url),className:"nav-item ".concat("/Explorer"===j?"active":""),children:"Explorer"}),(0,l.jsx)("div",{onClick:()=>onSwitchTo(f.k.blockExplorers.blobs.url),className:"nav-item ".concat("/Blobscan"===j?"active":""),children:"Blobscan"}),(0,l.jsx)("div",{onClick:()=>onSwitchTo("blobtx"),className:"nav-item ".concat("/blobtx"===j?"active":""),children:"Try BlobTx"}),(0,l.jsx)(o(),{href:"https://docs.ethda.io/",target:"_blank",className:"block nav-item",children:"Document"})]})]})}),b&&(0,l.jsx)(components_FullModal,{wrapperClassName:i,menus:C,onChooseItem:e=>{y(e),N(!1),document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden")},chooseValue:k})]})})}},35336:function(e,t,s){"use strict";s.d(t,{k:function(){return x}});var l=s(7248),r=s(48557),a=s(82955),n=s(72545),i=s(82334),o=s(15526),c=s(70707);let x=(0,n.a)({id:2832,network:"EthDA Testnet",name:"EthDA Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.ethda.io"]},public:{http:["https://rpc-testnet.ethda.io"]}},blockExplorers:{default:{name:"Blockscan",url:"https://scan-testnet.ethda.io"},blobs:{name:"Blobscan",url:"https://blobscan-testnet.ethda.io"}},contracts:{blobTo:{address:"0xD0d387145B497FF1992DF7b35DE4594991adf00B"}},custom:{bridgeUrl:"https://bridge-testnet.ethda.io"}}),d=(0,l.a3)([{groupName:"Recommended",wallets:[i.D,o.u]}],{appName:"EthDA",appUrl:"https://ethda.io",appIcon:"https://ethda.io/logo.svg",projectId:"08655efd533e1054791755a0c58862c4"}),m=(0,r._)({connectors:d,chains:[x],client(e){let{chain:t}=e;return(0,c.e)({chain:t,transport:(0,a.d)()})}});t.Z=m}},function(e){e.O(0,[1118,5899,6324,8128,2803,8377,6651,6314,1744],function(){return e(e.s=12454)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{12454:function(e,t,s){Promise.resolve().then(s.bind(s,33352))},33352:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return Home}});var l=s(5761),r=s(44475),a=s.n(r);let TelegramIcon=()=>(0,l.jsx)("svg",{width:"25",height:"20",viewBox:"0 0 25 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M9.0915 18.79L9.46694 13.1963L19.7646 4.04528C20.2204 3.63534 19.6707 3.43698 19.0673 3.79403L6.3562 11.7152L0.858767 9.99607C-0.321169 9.66547 -0.334578 8.85881 1.12693 8.27696L22.5401 0.130983C23.5189 -0.305408 24.4575 0.369015 24.0821 1.8501L20.435 18.79C20.1802 19.9934 19.4428 20.2843 18.4237 19.7289L12.8727 15.6824L10.2044 18.2346C9.896 18.5388 9.64124 18.79 9.0915 18.79Z",fill:"currentColor"})}),MediumIcon=()=>(0,l.jsx)("svg",{width:"26",height:"20",viewBox:"0 0 26 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M23.8385 2.35024L25.834 0.422258V0H18.9232L13.998 12.3863L8.39583 0H1.14974V0.422258L3.48047 3.25696C3.70833 3.46645 3.82552 3.77414 3.79622 4.08183V15.2209C3.86784 15.6236 3.74089 16.0327 3.46094 16.3241L0.833984 19.5417V19.9574H8.27539V19.5352L5.65169 16.3273C5.36849 16.036 5.23177 15.6301 5.29036 15.2242V5.58756L11.8236 19.964H12.582L18.2005 5.58756V17.0409C18.2005 17.3421 18.2005 17.4043 18.0052 17.6039L15.9837 19.5777V20H25.7884V19.5777L23.8385 17.6498C23.6693 17.5188 23.5814 17.2995 23.6172 17.0867V2.91326C23.5814 2.70049 23.6693 2.48118 23.8385 2.35024Z",fill:"currentColor"})}),TwitterIcon=()=>(0,l.jsx)("svg",{width:"26",height:"20",viewBox:"0 0 29 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M22.9454 0.788574H27.3156L17.768 11.7008L29 26.5499H20.2055L13.3173 17.544L5.43561 26.5499H1.06279L11.2749 14.8781L0.5 0.788574H9.5178L15.7441 9.02032L22.9454 0.788574ZM21.4116 23.9342H23.8332L8.20199 3.26695H5.60339L21.4116 23.9342Z",fill:"currentColor"})}),GithubIcon=()=>(0,l.jsx)("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M16.4083 3.4091C17.185 1.93182 16.2974 0 16.2974 0C14.3001 0 12.8577 1.36363 12.8577 1.36363C12.081 0.909079 9.52903 0.909079 9.52903 0.909079C9.52903 0.909079 6.97704 0.909079 6.20035 1.36363C6.20035 1.36363 4.75792 0 2.76071 0C2.76071 0 1.87305 1.93182 2.64975 3.4091C2.64975 3.4091 0.874453 5.11365 1.54018 8.75001C2.16577 12.1671 5.09077 13.0682 6.97702 13.0682C6.97702 13.0682 6.20033 13.75 6.31129 14.8864C6.31129 14.8864 5.20173 15.5682 4.09217 15.1137C2.98261 14.6591 2.42782 13.5227 2.42782 13.5227C2.42782 13.5227 1.31826 12.0455 0.2087 12.6136C0.2087 12.6136 -0.124166 12.9545 1.09636 13.5227C1.09636 13.5227 1.98401 14.8864 2.31688 15.6818C2.64974 16.4773 4.42504 17.1591 6.20035 16.7045V19.3182C6.20035 19.3182 6.20035 19.5454 5.75652 19.6591C5.31269 19.7727 5.31269 20 5.53462 20H13.5234C13.7453 20 13.7453 19.7727 13.3015 19.6591C12.8577 19.5454 12.8577 19.3182 12.8577 19.3182V16.7045C12.8577 16.7045 12.8675 15.3417 12.8577 14.8864C12.8333 13.7446 12.081 13.0682 12.081 13.0682C13.9673 13.0682 16.8923 12.1671 17.5179 8.74999C18.1836 5.11365 16.4083 3.4091 16.4083 3.4091Z",fill:"currentColor"})}),DiscordIcon=()=>(0,l.jsx)("svg",{width:"22",height:"18",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M18.704 2.07358C21.1504 5.70543 22.3588 9.80212 21.9072 14.5193C21.9062 14.5292 21.9031 14.5388 21.8982 14.5475C21.8933 14.5561 21.8866 14.5635 21.8785 14.5694C20.2411 15.7938 18.4087 16.7273 16.4602 17.3294C16.4464 17.3338 16.4314 17.3338 16.4176 17.3292C16.4037 17.3246 16.3917 17.3157 16.3831 17.3038C15.9715 16.7265 15.6022 16.1196 15.2783 15.4879C15.2738 15.4792 15.2711 15.4695 15.2705 15.4597C15.2699 15.4499 15.2713 15.44 15.2748 15.4307C15.2782 15.4215 15.2835 15.4131 15.2904 15.4061C15.2973 15.3991 15.3055 15.3936 15.3147 15.39C15.8999 15.1681 16.4656 14.8965 17.0055 14.5782C17.0152 14.5724 17.0233 14.5642 17.0291 14.5544C17.035 14.5447 17.0384 14.5336 17.0391 14.5222C17.0397 14.5108 17.0376 14.4994 17.0329 14.489C17.0282 14.4786 17.021 14.4696 17.0121 14.4626C16.8975 14.3765 16.7852 14.2875 16.675 14.1957C16.6653 14.1876 16.6535 14.1825 16.641 14.1809C16.6285 14.1793 16.6159 14.1814 16.6045 14.1868C13.1006 15.8215 9.26186 15.8215 5.71611 14.1868C5.70461 14.1817 5.6919 14.1799 5.67944 14.1816C5.66697 14.1834 5.65525 14.1887 5.64561 14.1968C5.53569 14.2881 5.42368 14.3767 5.30966 14.4626C5.30074 14.4696 5.29366 14.4788 5.28905 14.4892C5.28444 14.4997 5.28242 14.5111 5.28318 14.5225C5.28394 14.5339 5.28746 14.5449 5.29342 14.5547C5.29938 14.5644 5.3076 14.5725 5.31738 14.5782C5.85712 14.8907 6.41778 15.1654 7.00709 15.3911C7.01627 15.3944 7.02463 15.3997 7.03162 15.4066C7.0386 15.4134 7.04405 15.4217 7.0476 15.4309C7.05115 15.4401 7.05272 15.4499 7.05219 15.4597C7.05166 15.4695 7.04906 15.4791 7.04455 15.4879C6.72513 16.1239 6.35391 16.73 5.93754 17.3049C5.9288 17.3162 5.91686 17.3247 5.9033 17.329C5.88973 17.3334 5.87517 17.3335 5.86154 17.3294C3.91657 16.7252 2.08738 15.792 0.452015 14.5694C0.444057 14.5633 0.437415 14.5556 0.432493 14.5468C0.427572 14.538 0.424473 14.5283 0.423385 14.5182C0.0455595 10.4382 0.815512 6.30929 3.62435 2.07248C3.6312 2.06157 3.64119 2.05303 3.65298 2.04801C5.03538 1.40749 6.5158 0.935981 8.0634 0.666881C8.07711 0.664685 8.09116 0.666691 8.10373 0.672638C8.1163 0.678585 8.12681 0.6882 8.13391 0.700242C8.32557 1.04274 8.54367 1.48088 8.69237 1.83896C10.3338 1.58749 12.0033 1.58749 13.6447 1.83896C13.7934 1.48867 14.0038 1.04276 14.1944 0.701362C14.2012 0.688775 14.2118 0.678733 14.2247 0.672724C14.2376 0.666715 14.2521 0.665059 14.266 0.668002C15.8136 0.937102 17.2951 1.40861 18.6753 2.04692C18.6878 2.05199 18.6979 2.06148 18.704 2.07361L18.704 2.07358ZM9.52183 9.83105C9.53835 8.62451 8.66707 7.62703 7.57436 7.62703C6.48937 7.62703 5.62689 8.61672 5.62689 9.83105C5.62689 11.0454 6.507 12.034 7.57436 12.034C8.65824 12.034 9.52183 11.0443 9.52183 9.83105ZM16.7202 9.83105C16.7378 8.62451 15.8665 7.62703 14.7738 7.62703C13.6888 7.62703 12.8263 8.61672 12.8263 9.83105C12.8263 11.0454 13.7065 12.034 14.7738 12.034C15.8665 12.034 16.7202 11.0443 16.7202 9.83105Z",fill:"currentColor"})}),Footer=()=>{let e=new Date().getFullYear();return(0,l.jsx)("div",{className:"bg-[url(/left-p.svg)] ",children:(0,l.jsx)("footer",{className:"bg-black py-20 mo:py-10 px-5",children:(0,l.jsxs)("div",{className:"container mx-auto mo:flex mo:flex-col justify-center mo:flex-wrap md:px-[30px]",children:[(0,l.jsx)("img",{src:"/logo.svg",className:"shrink-0 h-[26px] w-[119px]"}),(0,l.jsxs)("div",{className:"flex justify-between mo:flex-col gap-8 items-center mt-8",children:[(0,l.jsx)("div",{className:"text-white font-light text-2xl mo:text-xl mo:w-full mo:flex mo:justify-center",children:"Start Your EthDA Journey Now !"}),(0,l.jsx)("div",{className:"rounded-full",style:{padding:1,backgroundImage:"linear-gradient(90deg, #FFBA04 0%, #FC7823 100%)"},children:(0,l.jsx)("button",{style:{background:"linear-gradient(90deg, #855A10 0%, #562B0F 100%)"},onClick:()=>window.open("https://forms.gle/TTxnVhnEyNEkyXUAA","_blank"),className:"overflow-hidden rounded-full px-8 py-2 text-2xl font-light mo:text-xl text-white",children:"Connect with Crust Team"})})]}),(0,l.jsx)("div",{className:"bg-white/15 my-10 h-[1px] w-full"}),(0,l.jsxs)("div",{className:"flex justify-between items-center mo:flex-col mo:w-full ",children:[(0,l.jsxs)("div",{className:"text-white/65 text-sm mo:self-start",children:["Copyright \xa9 EthDA ",e," All Rights Reserved"]}),(0,l.jsxs)("div",{className:"flex gap-10 mo:gap-[50px] mo:my-10 mo:w-full mo:justify-center mo:justify-between text-[#737373]",children:[(0,l.jsx)(a(),{href:"https://twitter.com/CrustNetwork",target:"_blank",className:"link-icon",children:(0,l.jsx)(TwitterIcon,{})}),(0,l.jsx)(a(),{href:"https://discord.com/invite/Jbw2PAUSCR",target:"_blank",className:"link-icon",children:(0,l.jsx)(DiscordIcon,{})}),(0,l.jsx)(a(),{href:"https://t.me/CrustNetwork",target:"_blank",className:"link-icon",children:(0,l.jsx)(TelegramIcon,{})}),(0,l.jsx)(a(),{href:"https://github.com/crustio",target:"_blank",className:"link-icon",children:(0,l.jsx)(GithubIcon,{})}),(0,l.jsx)(a(),{href:"https://crustnetwork.medium.com/",target:"_blank",className:"link-icon",children:(0,l.jsx)(MediumIcon,{})})]})]})]})})})};var n=s(94488),i=s(83376);let Typewriter=e=>{let{phrases:t}=e,[s,r]=(0,n.useState)(0),[a,i]=(0,n.useState)(0),[o,c]=(0,n.useState)(!1),[x,d]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e=t[s],l=setTimeout(()=>{o||a!==e.length?o&&0===a?(c(!1),r(e=>e===t.length-1?0:e+1)):i(e=>o?e-1:e+1):c(!0)},o?80:150);return d(e.substring(0,a)),()=>clearTimeout(l)},[a,o,s,t]),(0,l.jsx)("div",{className:"typewriter",children:(0,l.jsx)("h1",{children:x})})},o=["Aggregated Blockchains","Aggregated Staking","Aggregated Data","Aggregated Growth"];var Home_ABanner=()=>(0,l.jsxs)("div",{className:"h-[1000px] mo:max-h-[160vw] mo:h-screen mo:min-h-[120vw] flex flex-col bg-black",children:[(0,l.jsx)(i.h,{contentClassName:"border-b-[#E0890033] border-b",wrapperClassName:"mt-[67px]",btnClassName:"text-white ",className:"py-[28px] md:mx-[30px] "}),(0,l.jsxs)("div",{className:"flex-1 flex justify-center flex-col items-center",style:{backgroundImage:"url(/bg_gif.gif)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"contain"},children:[(0,l.jsx)("div",{className:" w-full ",children:(0,l.jsxs)("div",{className:" font-bold text-[62px] md:text-[50px] mo:text-[6vw] text-center text-white pt-[206px] mo:pt-[20vw]",children:[(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)("div",{className:"flex justify-center items-center ",children:(0,l.jsxs)("div",{className:"w-auto whitespace-nowrap flex border border-[#E08900] px-8 mo:px-4 py-3 architecture-info-right items-center",children:[(0,l.jsx)("div",{className:"text-center",children:"A Data Availability "}),(0,l.jsx)("span",{className:"text-[#E08900] ml-3",children:" Layer"}),(0,l.jsx)("div",{className:"border_corner border_corner_left_top"}),(0,l.jsx)("div",{className:"border_corner border_corner_right_top"}),(0,l.jsx)("div",{className:"border_corner border_corner_left_bottom"}),(0,l.jsx)("div",{className:"border_corner border_corner_right_bottom"}),(0,l.jsxs)("div",{className:"flex justify-center flex-col float-end absolute top-[calc(100%+12px)] right-0",children:[(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:"./mouse.svg"})}),(0,l.jsx)("div",{className:"ml-2 mt-2",children:(0,l.jsx)("div",{className:" border w-[70px] h-[30px] rounded border-[#E08900] text-[#E08900] text-[10px] flex items-center justify-center ",children:"Layer 2"})})]})]})})}),(0,l.jsxs)("div",{className:" pt-[60px] font-hlc w-full flex justify-center items-center flex-wrap gap-4 mo:flex-col",style:{letterSpacing:"2px"},children:["Designed for",(0,l.jsx)("div",{className:"text-[#E08900] md:text-[50px]",children:(0,l.jsx)(Typewriter,{phrases:o})})]})]})}),(0,l.jsx)("div",{className:"mt-auto mb-5 w-full ",children:(0,l.jsx)("div",{className:"flex justify-center rounded-sm ",children:(0,l.jsx)("button",{onClick:()=>window.open("https://docs.ethda.io/"),style:{background:"linear-gradient(90deg, rgba(222, 149, 25, 0.6) 0%, rgba(142, 70, 24, 0.6) 100%)"},className:"borders text-white w-[260px] h-[66px] mo:w-[200px] mo:h-[40px] font-hlc text-2xl mo:text-lg font-black",children:"Read Docs"})})}),(0,l.jsx)("div",{className:"flex justify-center mb-8",children:(0,l.jsxs)("div",{style:{letterSpacing:"2px"},className:" text-white flex items-center font-hlc ",children:[(0,l.jsx)("img",{src:"./polygon.svg",className:"w-[3.1vw]"})," ",(0,l.jsx)("span",{className:" ml-3 text-[28px] mo:text-[3vw]",children:"Polygon"}),(0,l.jsxs)("div",{className:"text-[32px] mo:text-[3vw]",children:[(0,l.jsx)("span",{className:"text-[#8F4FFF] ml-2",children:"CDK"}),"-based L2, ",(0,l.jsx)("span",{className:"ml-2",children:"Connect"})," with"," ",(0,l.jsx)("span",{className:"text-[#8F4FFF]",children:"AggLayer"})]})]})})]})]}),Home_AConnectEthDA=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:" text-center ",children:[(0,l.jsx)("div",{className:"bg-black",children:(0,l.jsxs)("div",{className:" mo:mx-0 px-10 mo:px-5 mo:flex-wrap mo:w-full mx-auto w-container md:w-full md:px-[30px]",children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)("div",{className:" pt-[72px] pb-20 text-white text-[42px] mo:text-[6vw] font-black font-hlc",children:(0,l.jsxs)("div",{className:"flex z-20",children:[(0,l.jsx)("div",{className:" relative z-10",children:"Connect to EthDA"}),(0,l.jsxs)("div",{className:" relative left-[-35px] mt-6 rounded-[40px] bg-[#823ADE] w-[170px] h-[50px] gap-1 px-5 text-[26px] transform -rotate-12 font-hlc items-center flex",children:[(0,l.jsx)("img",{src:"./polygon-w.svg",className:" "}),"Polygon"]})]})})}),(0,l.jsx)("div",{className:"flex justify-center pb-[120px] ",children:(0,l.jsx)("img",{src:"./connectEthDA.svg"})})]})}),(0,l.jsxs)("div",{className:"flex justify-center overflow-visible bg-black",children:[(0,l.jsx)("div",{className:"flex-1 bg-white rounded-tr-lg"}),(0,l.jsxs)("div",{className:"w-[20vw] max-w-40 h-[10vw] max-h-20 p-3 mo:p-[2vw] shrink-0 bg-white relative translate-y-2",children:[(0,l.jsx)("div",{className:"w-full h-full absolute left-0 top-0 bg-black rounded-b-full z-0"}),(0,l.jsx)("img",{src:"./design.svg",className:"w-full h-auto -translate-y-[calc(50%+0.75rem)] mo:-translate-y-[calc(50%+2vw)]"})]}),(0,l.jsx)("div",{className:"flex-1 bg-white rounded-tl-lg"})]})]})}),Home_Aaggregated=()=>(0,l.jsxs)("div",{className:" ",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-center items-center mt-5 gap-[27px] mo:mx-0 px-10 mo:px-5 mo:w-full mx-auto w-container md:w-full md:px-[30px]",children:[(0,l.jsx)("div",{className:" ml-[100px] mo:ml-0 font-hlc font-black text-[42px] mo:text-[6vw]",children:"Aggregated with EthDA"}),(0,l.jsx)("img",{src:"./arrow.svg",className:"mo:w-[8vw]"})]}),(0,l.jsx)("div",{className:"flex flex-row w-full justify-center mt-20 md:px-[30px] mo:mt-5",children:(0,l.jsx)("img",{src:"./aggregated.svg",className:"mo:px-2"})})]}),c=s(39586);s(16476),s(9025);var x=s(18980);let useIsClient=()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)}),e},d=[{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line1.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2024 Q1"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(-2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"DevNet launch in Feb, with workable chain and interfaces, demonstration DApp, BlobScan, and necessary dev docs"}),borderImg:"bg-[url(/border1.svg)] w-[200px] mt-[54px]"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line2.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2024 Q2"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(-2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"TestNet launch in May, with initial DAS implementation and related flows, full dev docs and SDK; CDK readiness for market promotion"}),borderImg:"bg-[url(/border2.svg)]"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line3.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2024 Q4"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"Full DAS and Staking implementation, benefit sharing contracts, treasury and governance modules MainNet Launch"}),borderImg:"bg-[url(/border3.svg)] mt-[-24px]"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line1.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2025"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(-2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"Extend DStorage use cases like assurance pool, Blob operating and management Continuously L2 technologies and ecosystems integration"}),borderImg:"bg-[url(/border2.svg)] mt-8"},{img:(0,l.jsx)("img",{src:"./calendar.svg"}),line:(0,l.jsx)("img",{src:"./dev-Line2.svg"}),title:(0,l.jsx)("div",{className:" text-2xl font-bold text-white",children:"2026"}),content:(0,l.jsx)("div",{style:{fontFamily:"inter",transform:"rotate(2deg)"},className:"mt-[37px] font-medium text-base text-white",children:"Extend DA services to Ethereum L1 light / stateless nodes GraphQL-like query and programmabilities on data blobs"}),borderImg:"bg-[url(/border1.svg)] -mt-5"}];var Home_AIntroduce=()=>{let{width:e}=(0,x.Z)(1024),t=Math.min(4,d.length,Math.round(e/350)),s=useIsClient();return(0,l.jsx)("div",{className:" rounded-t-[40px] mo:rounded-t-3xl mt-20 mo:mt-8 bg-black text-white ",children:(0,l.jsxs)("div",{className:" mt-[100px] mo:mt-0 pb-10 justify-center mo:mx-0 px-10 mo:px-5 mo:flex-wrap mo:w-full mx-auto w-container md:w-full md:px-[30px]",children:[(0,l.jsxs)("div",{className:" flex font-hlc font-black gap-4 text-[42px] mo:text-[6vw] items-center pt-10",children:["Dev Plan",(0,l.jsx)("img",{src:"./plus.svg"})]}),(0,l.jsxs)("div",{style:{fontFamily:"inter"},className:"mt-[50px] font-extralight text-[54px] mo:text-[7vw] mo:mt-5",children:[(0,l.jsx)("div",{children:"MainNet Launch in"}),(0,l.jsx)("div",{children:"2024 Q4"})]}),(0,l.jsx)("div",{className:"h-[455px] mb-[100px] mo:mb-0 mo:mt-4",children:s&&(0,l.jsx)(c.Z,{dots:!1,slidesToShow:t,slidesToScroll:1,adaptiveHeight:!0,arrows:!1,infinite:!0,autoplay:!0,speed:2e3,autoplaySpeed:2e3,cssEase:"linear",children:d.map((e,t)=>{let{img:s,content:r,borderImg:a,title:n,line:i}=e;return(0,l.jsx)("div",{className:"".concat(a," h-[435px] bg-repeat bg-cover"),children:(0,l.jsxs)("div",{className:" mt-[34px] mx-[34px]",children:[(0,l.jsxs)("div",{style:{fontFamily:"inter"},className:" flex items-center gap-3",children:[s,n]}),(0,l.jsx)("div",{className:"mt-[37px]",children:i}),r]})},"content_".concat(t))})})})]})})};let m="#fff",h="#E08900";function GrowthSVG(e){let{className:t}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 582 636",style:{background:"#000000"},xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("defs",{children:(0,l.jsx)("path",{width:"10",height:"10",id:"ethda_arrow",d:"M0 2L5 8L10 2",strokeLinecap:"round",strokeWidth:"1.6"})}),(0,l.jsx)("path",{d:"M250 30L76 30L76 114M76 210L76 330L223 330M345 330L506 330L506 222M506 120L506 30L333 30",stroke:m,strokeWidth:"1",strokeDasharray:"4 4",fill:"none",children:(0,l.jsx)("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-80",dur:"2s",repeatCount:"indefinite"})}),(0,l.jsx)("path",{d:"M291 260L30 260L30 400M30 470L30 560L62 560M220 560L254 560M291 530L291 352M291 300L291 260L552 260L552 400M552 470L552 560L505 560M350 560L323 560",stroke:h,strokeWidth:"1",strokeDasharray:"4 4",fill:"none",children:(0,l.jsx)("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-80",dur:"2s",repeatCount:"indefinite"})}),(0,l.jsxs)("g",{transform:"translate(263, 2)",children:[(0,l.jsx)("image",{xlinkHref:"/users.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{textAnchor:"middle",x:"25",y:"75",fontSize:"14",fill:m,children:"Users"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(330, 25) rotate(90,5,5)",stroke:m}),(0,l.jsxs)("g",{transform:"translate(52, 130)",children:[(0,l.jsx)("image",{xlinkHref:"/layer2s.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{textAnchor:"middle",x:"25",y:"75",fontSize:"14",fill:m,children:"Layer2s"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(71, 110)",stroke:m}),(0,l.jsxs)("g",{transform:"translate(481, 130)",children:[(0,l.jsx)("image",{xlinkHref:"/dataInterface.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{textAnchor:"middle",x:"0",y:"75",fontSize:"14",fill:m,children:"Data Onchain Interface"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(501, 220) rotate(180,5,5)",stroke:m}),(0,l.jsx)("image",{xlinkHref:"ethDA.png",width:"109",height:"24",x:"236.5",y:"316",style:{background:"#000000"}}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(220, 325) rotate(-90,5,5)",stroke:m}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(286, 292) rotate(0,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(286, 349) rotate(180,5,5)",stroke:h}),(0,l.jsx)("text",{x:"90",y:"56",fill:m,children:"Tx"}),(0,l.jsx)("text",{x:"90",y:"310",fill:m,children:"Blobs"}),(0,l.jsx)("text",{x:"492",y:"56",fill:m,textAnchor:"end",children:"Accessible"}),(0,l.jsx)("text",{x:"492",y:"310",fill:m,textAnchor:"end",children:"Agg.Data"}),(0,l.jsx)("text",{x:"295",y:"452",fill:h,children:"Pos"}),(0,l.jsxs)("g",{transform:"translate(5, 420)",children:[(0,l.jsx)("image",{xlinkHref:"/y-users.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{x:"70",y:"32",fontSize:"14",fill:h,children:"Benefit-Sharing"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(25, 392) rotate(0,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(547, 392) rotate(0,5,5)",stroke:h}),(0,l.jsxs)("g",{transform:"translate(527, 420)",children:[(0,l.jsx)("image",{xlinkHref:"/y-users.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{x:"-20",y:"32",fontSize:"14",fill:h,textAnchor:"end",children:"Protocal Incentive"})]}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(60, 555) rotate(-90,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(250, 555) rotate(-90,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(322, 555) rotate(90,5,5)",stroke:h}),(0,l.jsx)("use",{xlinkHref:"#ethda_arrow",transform:"translate(500, 555) rotate(90,5,5)",stroke:h}),(0,l.jsxs)("g",{transform:"translate(80, 545)",children:[(0,l.jsx)("rect",{width:"140",height:"30",x:"0",y:"0",rx:"15",stroke:h}),(0,l.jsx)("text",{x:"70",y:"20",fontSize:"14",fill:h,textAnchor:"middle",children:"Dual-Stake"}),(0,l.jsx)("text",{x:"70",y:"60",fontSize:"14",fill:h,textAnchor:"middle",children:"L2 Native Token"})]}),(0,l.jsxs)("g",{transform:"translate(350, 545)",children:[(0,l.jsx)("rect",{width:"140",height:"30",x:"0",y:"0",rx:"15",stroke:h}),(0,l.jsx)("text",{x:"70",y:"20",fontSize:"14",fill:h,textAnchor:"middle",children:"PoS Stake"}),(0,l.jsx)("text",{x:"70",y:"60",fontSize:"14",fill:h,textAnchor:"middle",children:"Restake ETH"})]}),(0,l.jsxs)("g",{transform:"translate(267, 536)",children:[(0,l.jsx)("image",{xlinkHref:"/das.svg",width:"50",height:"50",x:"0",y:"0"}),(0,l.jsx)("text",{x:"25",y:"70",fontSize:"14",fill:h,textAnchor:"middle",children:"DAS Nodes"})]})]})}let f=["Staking","Data","Growth"];function ContentItem(e){let{tit:t,sub:s}=e;return(0,l.jsxs)("div",{className:"leading-none flex flex-col text-left max-w-[500px] mr-10 mo:mr-0",children:[(0,l.jsxs)("span",{className:" text-[32px] md:text-[28px] mo:text-[4.1vw] font-extrabold text-black",children:[" ",t,":"]}),(0,l.jsxs)("span",{className:"leading-tight text-2xl mo:text-[3.9vw] font-medium text-black mt-6 mo:mt-4",children:[" ",s]})]})}var Home_ANewAgg=()=>{let e=(0,n.useMemo)(()=>[{title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:'"'}),(0,l.jsx)("span",{children:"Agg. "}),(0,l.jsx)("span",{className:"text-black",children:"Staking"})]}),other:(0,l.jsxs)("div",{className:"self-center",children:[(0,l.jsx)("div",{className:"flex ml-10 mo:ml-0 ",children:(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(143, 79, 255, 0.13) 0%, rgba(86, 47, 153, 0.4) 100%)"},className:"text-[#8F4FFF] tracking-[0.045em] text-base md:text-sm border-[#8F4FFF] border rounded-[50px] px-5 w-[170px] md:w-[155px] h-9 flex items-center",children:"ETH Restaking"})}),(0,l.jsx)("div",{className:"flex mt-6 mo:mt-3 ml-10 mo:ml-0",children:(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(253, 121, 35, 0.13) 0%, rgba(255, 199, 0, 0.21) 100%)"},className:"text-[#E08900] text-base md:text-sm border-[#E08900] border rounded-[50px] px-5 w-[170px] md:w-[155px] h-9 flex items-center",children:"L2 Native Token"})})]}),img:(0,l.jsx)("div",{className:" w-[600px] md:w-auto mo:w-auto",children:(0,l.jsx)("img",{src:"./gif/1.gif"})}),content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ContentItem,{tit:"ETH Restaking",sub:"Restake ETH on EthDA DAS nodes."}),(0,l.jsx)(ContentItem,{tit:"Dual-Staking",sub:"Dual-stake native token of L2 protocols."})]})},{title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:'"Agg. '}),(0,l.jsx)("span",{className:"text-black",children:"Data"})]}),img:(0,l.jsxs)("div",{className:"flex relative w-fit",children:[(0,l.jsx)("div",{className:" ",children:(0,l.jsx)("img",{src:"./gif/2.gif",id:"gif",className:"py-[30px] w-full mmd:w-[500px] bg-cover"})}),(0,l.jsx)("div",{className:"flex ",children:(0,l.jsx)("div",{className:"self-start",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 font-medium mo:items-end",children:[(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(143, 79, 255, 0.13) 0%, rgba(86, 47, 153, 0.4) 100%)"},className:"text-[#8F4FFF] border-[#8F4FFF] border rounded-[50px] px-5 w-[110px] h-8 flex items-center justify-center",children:"Blob Tx"}),(0,l.jsx)("div",{style:{background:"linear-gradient(90deg, rgba(253, 121, 35, 0.13) 0%, rgba(255, 199, 0, 0.21) 100%)"},className:"text-[#E08900] border-[#E08900] border rounded-[50px] px-5 w-[110px] h-8 flex items-center justify-center",children:"Blob Tx"})]})})}),(0,l.jsx)("div",{className:"absolute top-[40%] right-0 w-fit",children:(0,l.jsxs)("div",{style:{fontFamily:"inter",background:"linear-gradient(90deg, rgba(153, 153, 153, 0.21) 15.21%, rgba(255, 255, 255, 0.21) 100%)"},className:" border mt-4 text-white text-[12px] font-medium border-white h-8 flex items-center justify-center rounded-[50px] w-[227px] ",children:[(0,l.jsx)("img",{src:"./interface.svg",className:" mr-1"}),(0,l.jsx)("span",{className:"",children:"On-chain Interface for Agg. Data"})]})})]}),content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ContentItem,{tit:"zkBlob",sub:"Ethereum Blob TX —> DAS —> Data Proof via ZK rollup."}),(0,l.jsx)(ContentItem,{tit:"Data Programmability",sub:"On-chain interfaces for data functions can be instanly accessed by smart contracts and AggLayer blockchains."})]})},{title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:'"Agg. '}),(0,l.jsx)("span",{className:"text-black",children:"Growth"})]}),img:(0,l.jsx)(GrowthSVG,{className:"w-[600px] py-10 md:w-[500px] md:mt-14 mo:mt-8 mo:py-0 mo:w-full"}),content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ContentItem,{tit:"Data Value Extraction",sub:"Bi-directional value growth driven by data amount and value."}),(0,l.jsx)(ContentItem,{tit:"Benfit Sharing",sub:"Value stream reward back to all blockchain users that connect with EthDA."})]})}],[]);return(0,l.jsx)("div",{className:" mo:h-max",children:e.map((t,s)=>(0,l.jsx)("article",{id:"panel-".concat(s),className:" mo:!relative bg-slate-500 w-full tab".concat(s," sticky top-0"),style:{boxShadow:"0px 10px 6px 10px rgba(0,0,0,0.3)"},children:(0,l.jsxs)("div",{className:"flex mo:flex-col mo:h-fit",children:[(0,l.jsx)("div",{className:" bg-[url(/GroupBg.svg)] w-[50%] md:w-[40%] mo:w-full font-le text-white diagram-right flex justify-end mo:justify-center",children:(0,l.jsx)("div",{className:"flex flex-wrap px-[30px] md:w-full mo:px-[12vw] mo:py-8 h-full text-center items-center float-end mo:float-none mo:w-full",children:(0,l.jsxs)("div",{className:"flex flex-col gap-14 mo:gap-6 mo:w-full",children:[(0,l.jsx)("div",{className:"flex items-center flex-row",children:(0,l.jsx)("span",{className:"font-extrabold text-[48px] xmd:text-[40px] md:text-3xl mo:text-[6vw]",children:t.title})}),t.content]})})}),(0,l.jsx)("div",{className:"bg-black w-[50%] md:w-[60%] mo:w-full",children:(0,l.jsxs)("div",{className:"w-full max-w-[750px] md:w-full mo:w-full mo:max-w-none",children:[(0,l.jsxs)("div",{className:"flex flex-start mt-[62px] px-10 flex-row items-start justify-between gap-5 mo:mt-8 mo:px-5 mo:flex-col",children:[(0,l.jsx)("div",{className:"flex items-center gap-8 pb-5",children:[...Array(e.length)].map((e,t)=>(0,l.jsxs)("div",{style:{background:s===t?"linear-gradient(90deg, rgba(222, 149, 25, 0.2) 0%, rgba(142, 70, 24, 0.2) 100%)":"none"},className:" ".concat(s===t?" borders text-[#E08900] h-[40px] mo:h-[36px] w-auto gap-1 px-5":" text-white"," text-lg font-medium flex items-center justify-center "),children:[s===t&&(0,l.jsx)("img",{src:"./Box.svg"}),f[t]]},"tabs_".concat(t)))}),t.other]}),(0,l.jsx)("div",{className:"flex mx-[40px] md:block items-center mo:mx-0 mo:px-5 justify-center mo:w-full",children:t.img})]})})]})},"slider".concat(s)))})};function Home(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Home_ABanner,{}),(0,l.jsx)(Home_ANewAgg,{}),(0,l.jsx)(Home_AConnectEthDA,{}),(0,l.jsx)(Home_Aaggregated,{}),(0,l.jsx)(Home_AIntroduce,{}),(0,l.jsx)(Footer,{})]})}},83376:function(e,t,s){"use strict";s.d(t,{h:function(){return Header}});var l=s(5761),r=s(87254),a=s.n(r),n=s(31151),i=s(44475),o=s.n(i),c=s(94488),x=s(41129),d=s(43359),m=s.n(d),h=s(56401),components_FullModal=e=>{let{menus:t,keys:s="text",onChooseItem:r,chooseValue:a,wrapperClassName:i}=e,o=(0,n.useRouter)(),x=document.location.pathname.split("/")[1]||"",onClickItem=e=>{if(e.onClick&&e.onClick(),e.to.startsWith("http")){window.open(e.to,"_blank");return}o.push(e.to),"function"==typeof r&&r(e.text)};return(0,l.jsx)("div",{id:"modal",style:{background:"rgba(255, 255, 255, 0.90)"},className:m()("fixed inset-0 mt-[81px] flex z-50",i),children:(0,l.jsx)("div",{className:"p-8 rounded-md mo:w-full",children:t.map((e,t)=>(0,l.jsxs)(c.Fragment,{children:[e.topSplit&&t>0&&(0,l.jsx)("div",{className:"h-[1px] my-[.625rem] mo:my-[2px] mx-4 bg-[#eeeeee]"}),(0,l.jsxs)("div",{className:m()("flex w-full items-center py-[.625rem] mo:py-[.875rem] text-black hover:text-green-2 cursor-pointer"),onClick:()=>onClickItem(e),children:[!!e.icon&&(0,l.jsx)("div",{className:"text-xl mo:text-2xl",children:e.icon}),(0,l.jsxs)("div",{className:" text-[22px] inline-block font-medium border-b border-[#D9D9D9] border-solid pb-5 w-full mo:flex mo:w-full items-center mo:justify-between",children:[(0,l.jsx)("span",{className:m()({"text-[#FC7823]":!e.to.startsWith("http")&&x===e.to.split("/")[1]}),children:e[s]}),(0,l.jsx)(h.wpV,{className:m()({"text-[#FC7823]":!e.to.startsWith("http")&&x===e.to.split("/")[1]}),size:22})]})]})]},"poper_menu_item".concat(t)))})})},f=s(35336);let Header=e=>{let{logo:t="/logo.svg",containerClassName:s="container mx-auto ",headerTextClassName:r,wrapperClassName:i,className:d,btnClassName:h,contentClassName:g=" border-b",isShow:p}=e,{push:u}=(0,n.useRouter)(),j=(0,n.usePathname)(),[w,v]=(0,c.useState)(!1),[b,N]=(0,c.useState)(!1),[k,y]=(0,c.useState)(void 0),getWindowWidth=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,handleResize=()=>{v(900>=getWindowWidth())};(0,c.useEffect)(()=>(handleResize(),window.addEventListener("resize",handleResize),()=>{window.removeEventListener("resize",handleResize)}),[]),(0,c.useEffect)(()=>{b||(document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden"))},[b]);let C=[{text:"Home",to:"/"},{text:"Explorer",to:f.k.blockExplorers.default.url},{text:"Blobscan",to:f.k.blockExplorers.blobs.url},{text:"Try BlobTX",to:"/blobtx"},{text:"Document",to:"https://docs.ethda.io/"}],onSwitchTo=e=>{if(e.startsWith("http")){window.open(e,"_blank");return}u(e)};return(0,l.jsx)("div",{className:m()(" ".concat(g)),suppressHydrationWarning:!0,children:(0,l.jsxs)("header",{className:m()("py-5 ".concat(b&&" !bg-white"," border-b-[rgba(255,255,255,.2)]"),d),children:[(0,l.jsx)("div",{className:" mo:mx-[30px] ",children:(0,l.jsxs)("div",{className:m()("flex justify-between items-center",s),children:[(0,l.jsx)(o(),{href:"/",children:(0,l.jsx)(a(),{src:"".concat(b?"b-EthDA.svg":t),alt:" ".concat(b?"b-EthDA.svg":"logo.svg"),width:110,height:22})}),w?(0,l.jsx)("button",{onClick:()=>{N(!b),"function"==typeof p&&p(b),document.documentElement.classList.add("overflow-hidden"),document.body.classList.add("overflow-hidden")},children:b?(0,l.jsx)(x.fMW,{className:m()("".concat(b&&"!text-black"," w-6 h-6 "),h)}):(0,l.jsx)(x.otZ,{className:m()(h,"w-6 h-6 ")})}):(0,l.jsxs)("div",{className:m()("flex items-center gap-8 text-white text-sm",r),children:[(0,l.jsx)("div",{onClick:()=>onSwitchTo("/"),className:"nav-item ".concat("/"===j?"active":""),children:"Home"}),(0,l.jsx)("div",{onClick:()=>onSwitchTo(f.k.blockExplorers.default.url),className:"nav-item ".concat("/Explorer"===j?"active":""),children:"Explorer"}),(0,l.jsx)("div",{onClick:()=>onSwitchTo(f.k.blockExplorers.blobs.url),className:"nav-item ".concat("/Blobscan"===j?"active":""),children:"Blobscan"}),(0,l.jsx)("div",{onClick:()=>onSwitchTo("blobtx"),className:"nav-item ".concat("/blobtx"===j?"active":""),children:"Try BlobTx"}),(0,l.jsx)(o(),{href:"https://docs.ethda.io/",target:"_blank",className:"block nav-item",children:"Document"})]})]})}),b&&(0,l.jsx)(components_FullModal,{wrapperClassName:i,menus:C,onChooseItem:e=>{y(e),N(!1),document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden")},chooseValue:k})]})})}},35336:function(e,t,s){"use strict";s.d(t,{k:function(){return x}});var l=s(7248),r=s(48557),a=s(82955),n=s(72545),i=s(82334),o=s(15526),c=s(70707);let x=(0,n.a)({id:2832,network:"EthDA Testnet",name:"EthDA Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.ethda.io"]},public:{http:["https://rpc-testnet.ethda.io"]}},blockExplorers:{default:{name:"Blockscan",url:"https://scan-testnet.ethda.io"},blobs:{name:"Blobscan",url:"https://blobscan-testnet.ethda.io"}},contracts:{blobTo:{address:"0x975ef84AE286F95a9F732C30267Bb50D103b4374"}},custom:{bridgeUrl:"https://bridge-testnet.ethda.io"}}),d=(0,l.a3)([{groupName:"Recommended",wallets:[i.D,o.u]}],{appName:"EthDA",appUrl:"https://ethda.io",appIcon:"https://ethda.io/logo.svg",projectId:"08655efd533e1054791755a0c58862c4"}),m=(0,r._)({connectors:d,chains:[x],client(e){let{chain:t}=e;return(0,c.e)({chain:t,transport:(0,a.d)()})}});t.Z=m}},function(e){e.O(0,[1118,5899,6324,8128,2803,8377,6651,6314,1744],function(){return e(e.s=12454)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/_nWlRQzeL2BXe7BkBSE1p/_buildManifest.js b/_next/static/q4HndrfQW_76QC6AGITMl/_buildManifest.js similarity index 100% rename from _next/static/_nWlRQzeL2BXe7BkBSE1p/_buildManifest.js rename to _next/static/q4HndrfQW_76QC6AGITMl/_buildManifest.js diff --git a/_next/static/_nWlRQzeL2BXe7BkBSE1p/_ssgManifest.js b/_next/static/q4HndrfQW_76QC6AGITMl/_ssgManifest.js similarity index 100% rename from _next/static/_nWlRQzeL2BXe7BkBSE1p/_ssgManifest.js rename to _next/static/q4HndrfQW_76QC6AGITMl/_ssgManifest.js diff --git a/blobtx.html b/blobtx.html index 9be79bd..04c7b5b 100644 --- a/blobtx.html +++ b/blobtx.html @@ -1 +1 @@ -EthDA \ No newline at end of file +EthDA \ No newline at end of file diff --git a/blobtx.txt b/blobtx.txt index dd16e5d..7623f6f 100644 --- a/blobtx.txt +++ b/blobtx.txt @@ -1,12 +1,12 @@ 1:HL["/_next/static/media/e1c529c04de64b40-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] 2:HL["/_next/static/css/b6501bb98401d848.css","style",{"crossOrigin":""}] 3:HL["/_next/static/css/5b18b6a5b2a27393.css","style",{"crossOrigin":""}] -0:["_nWlRQzeL2BXe7BkBSE1p",[[["",{"children":["blobtx",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b6501bb98401d848.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5b18b6a5b2a27393.css","precedence":"next","crossOrigin":""}]],"$L5"]]]] -6:I[70921,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","3185","static/chunks/app/layout-72846f9907e05423.js"],"Providers"] +0:["q4HndrfQW_76QC6AGITMl",[[["",{"children":["blobtx",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b6501bb98401d848.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5b18b6a5b2a27393.css","precedence":"next","crossOrigin":""}]],"$L5"]]]] +6:I[70921,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","3185","static/chunks/app/layout-8e35ef9cb0020cba.js"],"Providers"] 7:I[10276,[],""] 8:I[68348,[],""] a:I[57306,[],""] -b:I[4289,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","5899","static/chunks/9e6acbcb-ef697bd681a7b6d1.js","6324","static/chunks/abfc1a8b-27e9e20cc47dc494.js","6545","static/chunks/f923c8e2-3adf627add7d119b.js","8343","static/chunks/8343-cf612740feaee460.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","2803","static/chunks/2803-bc4e4dbb3ad91ce2.js","1740","static/chunks/1740-0372e0e4f0fc8f8e.js","1949","static/chunks/app/blobtx/page-2d8891b9b7a9863c.js"],""] +b:I[4289,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","5899","static/chunks/9e6acbcb-ef697bd681a7b6d1.js","6324","static/chunks/abfc1a8b-27e9e20cc47dc494.js","6545","static/chunks/f923c8e2-3adf627add7d119b.js","8343","static/chunks/8343-cf612740feaee460.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","2803","static/chunks/2803-bc4e4dbb3ad91ce2.js","1740","static/chunks/1740-0372e0e4f0fc8f8e.js","1949","static/chunks/app/blobtx/page-e8d1fa664e44c67a.js"],""] 4:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_b1da2a","suppressHydrationWarning":true,"children":["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children","blobtx","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L9",["$","$La",null,{"propsForComponent":{"params":{}},"Component":"$b","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"blobtx"},"styles":null}]}]}]}],null] 5:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"EthDA"}],["$","meta","3",{"name":"description","content":"EthDA"}],["$","link","4",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"150x150"}],["$","meta","5",{"name":"next-size-adjust"}]] 9:null diff --git a/index.html b/index.html index 0db64d9..ff64ea2 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -EthDA \ No newline at end of file +EthDA \ No newline at end of file diff --git a/index.txt b/index.txt index 8e191a5..b79a6e0 100644 --- a/index.txt +++ b/index.txt @@ -1,13 +1,13 @@ 1:HL["/_next/static/media/e1c529c04de64b40-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] 2:HL["/_next/static/css/b6501bb98401d848.css","style",{"crossOrigin":""}] 3:HL["/_next/static/css/5b18b6a5b2a27393.css","style",{"crossOrigin":""}] -0:["_nWlRQzeL2BXe7BkBSE1p",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b6501bb98401d848.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5b18b6a5b2a27393.css","precedence":"next","crossOrigin":""}]],"$L5"]]]] +0:["q4HndrfQW_76QC6AGITMl",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b6501bb98401d848.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5b18b6a5b2a27393.css","precedence":"next","crossOrigin":""}]],"$L5"]]]] 6:HL["/_next/static/css/4df78f2cd73d6b26.css","style",{"crossOrigin":""}] -7:I[70921,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","3185","static/chunks/app/layout-72846f9907e05423.js"],"Providers"] +7:I[70921,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","3185","static/chunks/app/layout-8e35ef9cb0020cba.js"],"Providers"] 8:I[10276,[],""] 9:I[68348,[],""] b:I[57306,[],""] -c:I[33352,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","5899","static/chunks/9e6acbcb-ef697bd681a7b6d1.js","6324","static/chunks/abfc1a8b-27e9e20cc47dc494.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","2803","static/chunks/2803-bc4e4dbb3ad91ce2.js","8377","static/chunks/8377-9a72461298eb61b5.js","1931","static/chunks/app/page-a144af1a332fa439.js"],""] +c:I[33352,["1118","static/chunks/a075cb68-4d417ce1a9af9cd7.js","5899","static/chunks/9e6acbcb-ef697bd681a7b6d1.js","6324","static/chunks/abfc1a8b-27e9e20cc47dc494.js","8128","static/chunks/8128-85b1b9ef3dbba538.js","2803","static/chunks/2803-bc4e4dbb3ad91ce2.js","8377","static/chunks/8377-9a72461298eb61b5.js","1931","static/chunks/app/page-c60a2148010e61ef.js"],""] 4:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_b1da2a","suppressHydrationWarning":true,"children":["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$La",["$","$Lb",null,{"propsForComponent":{"params":{}},"Component":"$c","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4df78f2cd73d6b26.css","precedence":"next","crossOrigin":""}]]}]}]}]}],null] 5:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"EthDA"}],["$","meta","3",{"name":"description","content":"EthDA"}],["$","link","4",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"150x150"}],["$","meta","5",{"name":"next-size-adjust"}]] a:null