1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7049],{54448:function(e,t,l){"use strict";l.r(t),l.d(t,{Modal:function(){return i}});var s=l(57437),n=l(2265),r=l(36248),a=l(54887);let i=e=>{let{children:t,onClose:l,backgroundColor:i="rgba(0, 0, 0, 0.5)",disableOutsideClick:c=!1}=e,o=(0,n.useRef)(null),d=e=>{c||!o.current||o.current.contains(e.target)||l()};return(0,n.useEffect)(()=>(document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}),[]),(0,a.createPortal)((0,s.jsx)("div",{className:"fixed top-0 left-0 w-full h-full z-50 flex",style:{backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",backgroundColor:i},children:(0,s.jsx)("div",{ref:o,className:(0,r.cw)("m-auto rounded-md max-w-full","transparent"!==i&&"bg-black-off"),children:t})}),document.body)};i.Header=function(e){let{title:t,onClose:l,containerClassName:n,titleClassName:a,hasClose:i=!0,walletLink:c}=e;return(0,s.jsxs)("div",{className:(0,r.cw)("relative mb-4 px-6 h-12 pt-6 flex items-center justify-between",n),children:[(0,s.jsxs)("h2",{className:(0,r.cw)("text-center text-lg text-purple font-bold",a),children:[t,c?(0,s.jsx)("a",{href:c,className:"ml-4 text-sm text-white opacity-30",children:(0,s.jsx)("button",{className:"underline",children:"View Full History"})}):null]}),(void 0===i||i)&&(0,s.jsx)("button",{onClick:l,className:"absolute right-4 top-4 text-white opacity-30 text-2xl",children:"\xd7"})]})},i.Body=function(e){let{children:t}=e;return(0,s.jsx)("div",{className:"px-6 pt-4 pb-6",children:t})}},79823:function(e,t,l){"use strict";l.r(t),l.d(t,{NotifierProvider:function(){return x},useNotifier:function(){return m}});var s=l(57437),n=l(24797),r=l(2265),a=l(54887),i=l(7476);let c=new Map([["default","#fff"],["success","#8349FF"],["alert","#8349FF"]]),o=e=>{let{action:t="default",children:l,link:r,font:a}=e;return(0,s.jsxs)("div",{className:(0,n.cn)("relative mx-auto px-6 py-3 rounded-full bg-[var(--bg-color)]",a),style:{"--bg-color":c.get(t)},children:[(0,s.jsx)("div",{className:"absolute z-0 top-0 left-0 w-full h-full bg-[var(--bg-color)] blur-lg opacity-30"}),(0,s.jsxs)("div",{className:"relative z-[1] text-black flex items-center",children:[(0,s.jsx)("p",{className:"mr-2",children:l}),r&&(0,s.jsxs)("a",{href:r,className:"ml-2 text-xs font-normal underline flex items-center",children:["View Explorer ",(0,s.jsx)(i.AlO,{className:"ml-1"})]})]})]})},d=()=>{let e="notifier-container",t=document.getElementById(e);return t||((t=document.createElement("div")).className="fixed z-10 top-0 left-0 w-full h-full pointer-events-none flex flex-col justify-start items-center pt-12 gap-4",t.setAttribute("id",e),document.body.appendChild(t)),t},u=(0,r.createContext)({notify:e=>{},success:(e,t,l)=>{},alert:e=>{}}),x=e=>{let{children:t}=e,[l,n]=(0,r.useState)([]),i=(0,r.useRef)(null),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return(t,l,r)=>{let a=Date.now().toString();n(n=>[...n,(0,s.jsx)(o,{action:e,link:l,font:r,children:t},a)]),setTimeout(()=>{n(e=>e.filter(e=>e.key!==a))},1500)}};return(0,r.useLayoutEffect)(()=>(i.current=d(),()=>{var e,t;null===(t=i.current)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(i.current)}),[]),(0,s.jsxs)(u.Provider,{value:{notify:c(),success:c("success"),alert:c("alert")},children:[t,i.current&&(0,a.createPortal)(l,i.current)]})},m=()=>(0,r.useContext)(u)},62364:function(e,t,l){"use strict";l.r(t),l.d(t,{PwaModal:function(){return c}});var s=l(57437);l(2265);var n=l(16356),r=l(63872),a=l(63858),i=l(54887);let c=e=>{let{onClose:t}=e;return(0,i.createPortal)((0,s.jsx)("div",{className:"fixed top-0 left-0 w-full h-full px-5 z-50 backdrop-blur-md flex",children:(0,s.jsxs)("div",{className:"m-auto bottom-2 fixed left-2 right-2 h-2/7 p-8 rounded-3xl bg-purple max-w-full",children:[(0,s.jsx)("button",{className:"absolute top-4 right-4 text-black text-2xl font-bold",onClick:t,children:"\xd7"}),(0,s.jsx)("div",{className:"h-1 mb-6 flex items-center justify-center",children:(0,s.jsx)("h2",{className:"text-center text-navy text-left font-bold",children:"ADD TO HOME SCREEN"})}),(0,s.jsxs)("div",{className:"h-1/2 flex flex-col items-center",children:[a.gn&&(0,s.jsxs)("div",{className:"flex flex-col border-t-0.5 gap-y-1",children:[(0,s.jsx)("hr",{className:"border-gray border-t-0.5 opacity-50 mb-1"}),(0,s.jsx)("div",{className:"flex flex-col items-left",children:(0,s.jsx)("p",{className:" text-[14px] text-navy text-left opacity-50",children:"This website has app functionality. Add it to your home screen to use in fullscreen and while offline."})}),(0,s.jsx)("hr",{className:"border-gray border-t-0.5 opacity-50 mb-1"}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(n.aOG,{className:"h-6 w-6 text-blue-500"}),(0,s.jsx)("p",{className:"ml-3 text-[14px] text-navy opacity-50",children:"1) Press the 'Share' button on the menu bar below."})]}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(r.Wxb,{className:"h-5 w-5"}),(0,s.jsx)("p",{className:"ml-3 text-[14px] text-navy opacity-50",children:"2) Press 'Add to Home Screen'."})]})]}),a.Dt&&(0,s.jsxs)("div",{className:"flex flex-col border-t-0.5 gap-y-1",children:[(0,s.jsx)("hr",{className:"border-gray border-t-0.5 opacity-50 mb-1"}),(0,s.jsx)("div",{className:"flex flex-col items-left",children:(0,s.jsx)("p",{className:" text-[14px] text-navy text-left opacity-50",children:"This website has app functionality. Add it to your home screen to use in fullscreen and while offline."})}),(0,s.jsx)("hr",{className:"border-gray border-t-0.5 opacity-50 mb-1"}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(n.aOG,{className:"h-6 w-6 text-blue-500"}),(0,s.jsx)("p",{className:"ml-3 text-[14px] text-navy opacity-50",children:"1) Press the 'More' icon menu."})]}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(r.Wxb,{className:"h-5 w-5"}),(0,s.jsx)("p",{className:"ml-3 text-[14px] text-navy opacity-50",children:"2) Press 'Add to Home Screen'."})]})]})]})]})}),document.body)}},47597:function(e,t,l){"use strict";l.d(t,{u_:function(){return c.Modal},KM:function(){return a},$j:function(){return r},kC:function(){return i.useNotifier}});var s=l(57437),n=l(36248);let r=e=>{let{className:t}=e;return(0,s.jsxs)("div",{role:"status",children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:(0,n.cw)("w-6 h-6 text-gray-200 animate-spin fill-black",t),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",className:"fill-black/30"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"})]}),(0,s.jsx)("span",{className:"sr-only",children:"Loading..."})]})},a=e=>{let{children:t,className:l,isLoading:n=!1,disabled:a=!1,...i}=e;return(0,s.jsx)("button",{className:[(null==l?void 0:l.split(" ").some(e=>e.startsWith("py-")))?"":"py-4","bg-purple text-white rounded-full px-12 hover:brightness-125 flex items-center justify-center",a?"opacity-50 cursor-not-allowed":"",l].filter(e=>e).join(" "),...i,children:n?(0,s.jsx)("div",{className:"px-6",children:(0,s.jsx)(r,{})}):t})};var i=l(79823),c=l(54448);l(62364)},74690:function(e,t,l){"use strict";var s=l(57437),n=l(10767),r=l(2265),a=l(66648);t.default=e=>{let{value:t,onChange:l,min:i,max:c,step:o,label:d,description:u,walletAddress:x,assets:m,amount:p,desc1:h,hasMax:f=!0,handleAssetChange:g,title:w,validateAndUpdateAmount:v,handleAmountChange:b,hasSelectBox:j=!0,customLabel:N,maxAmount:y,disabled:k,fullWidth:C,backgroundClass:S,isStaking:E,stakingMobile:A,type:D,amountError:F}=e,I=[{id:1,icon:"/DCAI.svg",currency:"DCAI",network:"BASE"},{id:2,icon:"/ETH.svg",currency:"ETH",network:"BASE"}],T=(t-i)/(c-i)*100,M=(e,t)=>{let s=e.currentTarget,n=s.getBoundingClientRect(),r=n.left+n.width/2,a=e=>{let n=e.clientX-r,a=s.parentElement.parentElement.clientWidth/(c-i);l(Math.max(i,Math.min(c,t+Math.round(n/a))))},o=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",o)},B=I.filter(e=>m.includes("".concat(e.network,":").concat(e.currency))),W=B.map(e=>e.network).filter((e,t,l)=>l.indexOf(e)===t).map(e=>({network:e,assets:B.filter(t=>t.network===e)})),[P,L]=(0,r.useState)(B[0]),[z,H]=(0,r.useState)(!1),R=e=>{let t=I.find(t=>t.id===e);L(t),t&&g(t),H(!1)};return(0,s.jsxs)("div",{className:"lg:w-full md:w-full w-[320px] p-4 rounded-[16px] flex flex-col lg:gap-4 w-full bg-lightpurpleInner",children:[(0,s.jsxs)("div",{className:"flex justify-between mb-1 mt-1",children:[(0,s.jsx)("label",{className:"block text-white text-[12px] lg:text-lg font-bold lg:max-w-[180px] line-clamp-1",children:w}),(0,s.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,s.jsx)("span",{className:"text-gray text-[12px] lg:text-md",children:h}),(0,s.jsx)("span",{className:"ml-1 text-white text-[14px] lg:text-xs",children:N||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if(0===e)return"wallet"===t?"0.000000":"0";let[l,s]=e.toFixed("wallet"===t&&e>=100?2:6).split("."),n=l.replace(/\B(?=(\d{3})+(?!\d))/g,",");return s?"".concat(n,".").concat(s):n}(null!=y?y:0)}),f?(0,s.jsx)("button",{className:"ml-1 text-purple text-[12px] lg:text-md",onClick:()=>{if(null!=y){let e;if("string"==typeof y)e=parseFloat(y.replace(/,/g,"").trim());else if("number"==typeof y)e=y;else{console.error("Max amount is not a valid string or number:",y);return}v(e)}else console.error("Max amount is not valid:",y)},children:"MAX"}):null]})]}),(0,s.jsxs)("div",{className:"flex items-center lg:gap-2 gap-1 mb-2",children:[(0,s.jsx)("input",{type:"text",id:"amount",value:"number"!=typeof p||isNaN(p)?"":p,onChange:e=>{let{value:t}=e.target;if("0"===t||"0."===t){b({...e,target:{...e.target,value:t}});return}t.startsWith("0")&&!t.startsWith("0.")&&(t=t.replace(/^0+/,"")),(/^\d*\.?\d{0,6}$/.test(t)||""===t)&&b({...e,target:{...e.target,value:t}})},inputMode:"decimal",className:"bg-transparent text-purple lg:text-[20px] text-lg lg:w-full md:w-full w-[50px] lg:text-lg focus:outline-none flex-1 placeholder-purple rounded-md px-2 pt-2",placeholder:"Amount",disabled:k}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-1 cursor-pointer pt-2",onClick:()=>H(!z),children:[function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lg:h-6 h-6 lg:w-6 w-6";return e?(0,s.jsx)("img",{src:"/DCAI.svg",alt:P.currency,className:t}):(0,s.jsx)("img",{src:P.icon,alt:P.currency,className:t})}(E),j?(0,s.jsxs)("div",{className:"text-white font-bold lg:text-sm text-[16px] p-1 flex items-center pl-2",children:[P.currency,(0,s.jsx)(a.default,{width:10,height:10,src:"/dropdown.png",alt:"Drop down",className:"matches-icon ml-[15px]"})]}):(0,s.jsx)("div",{className:"text-white font-bold lg:text-sm text-[16px] px-2",children:P.currency})]}),j&&z&&(0,s.jsx)("ul",{className:"absolute bg-lightpurpleInner text-sm rounded-md mt-1 p-2 z-10 lg:w-[120px] md:w-[100px] w-[95px] ",children:W.map(e=>(0,s.jsxs)("li",{className:"mb-1",children:[(0,s.jsx)("div",{className:"font-bold text-white",children:e.network}),(0,s.jsx)("ul",{children:e.assets.map(e=>(0,s.jsxs)("li",{onClick:()=>R(e.id),className:"flex items-center cursor-pointer py-1 hover:bg-gray text-white text-opacity-50 rounded-md",children:[(0,s.jsx)("img",{src:e.icon,alt:e.currency,className:"inline-block mr-1 h-4 w-4"}),e.currency]},e.id))})]},e.network))})]})]}),F&&(0,s.jsx)("p",{className:"text-red text-[12px] mt-1",children:F}),(0,s.jsxs)("div",{className:"w-full max-w-md",children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)("h3",{className:"text-[12px] lg:text-lg font-bold text-white",children:d})}),(0,s.jsxs)("div",{className:"relative pt-6 pb-12",children:[(0,s.jsx)("div",{className:"absolute w-full flex justify-between px-3 z-10",children:n.S6.map((e,r)=>(0,s.jsxs)("div",{className:"flex flex-col items-center cursor-pointer w-0",onMouseDown:e=>M(e,r),onClick:()=>l(r),children:[(0,s.jsx)("div",{className:"w-4 h-4 rounded-full transition-all duration-200 \n ".concat(t>=r?"bg-purple":"bg-gray","\n ").concat(t===r?"ring-2 ring-purple":"","\n hover:scale-105 active:scale-110")}),(0,s.jsx)("span",{className:"text-xs text-white mt-2 whitespace-nowrap",children:r===n.S6.length?"flexi":"".concat(e.label)})]},r))}),(0,s.jsx)("div",{className:"absolute w-full h-2 bg-gray opacity-20 rounded-lg mt-[3px] z-0",children:(0,s.jsx)("div",{className:"absolute h-full bg-purple roun
1ded-lg transition-all duration-200",style:{width:"".concat(T,"%")}})}),(0,s.jsx)("input",{type:"range",min:i,max:c,step:1,value:n.S6.findIndex(e=>e.value===t),onChange:e=>l(Number(e.target.value)),className:"w-full h-2 appearance-none cursor-pointer bg-transparent mt-[3px] [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-transparent [&::-webkit-slider-thumb]:cursor-pointer [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:w-3 [&::-moz-range-thumb]:h-3 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-transparent [&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:border-0"})]}),(0,s.jsx)("div",{className:"text-center text-sm",children:"The longer the locking period, the higher the rewards multiplier"})]})]})}},51466:function(e,t,l){"use strict";var s=l(57437);l(2265),t.default=()=>(0,s.jsx)("div",{className:"col-start-1 col-span-12 lg:col-start-4 lg:col-span-6 gap-2 px-8 py-8 bg-lightpurpleInner rounded-[16px] mt-8",children:(0,s.jsx)("div",{className:"flex flex-col gap-8 items-center justify-center",children:(0,s.jsxs)("div",{className:"w-full text-center",children:[(0,s.jsx)("div",{className:"w-full mb-1",children:(0,s.jsx)("div",{className:"block text-purple font-bold",children:"Positions"})}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-2",children:(0,s.jsx)("div",{className:"flex flex-row items-center gap-2",children:(0,s.jsx)("div",{className:"flex flex-row items-center gap-1",children:(0,s.jsx)("span",{className:"text-white text-[16px]",children:"No deposits found"})})})})]})})})},85141:function(e,t,l){"use strict";var s=l(57437);l(2265);var n=l(47597),r=l(42921),a=l(24797),i=l(25566);t.default=e=>{var t,l;let{selectedBtn:c,tokenId:o,positionNumber:d,position:u,unstaked:x,onClaim:m,unStake:p,loading:h,fixedPosition:f}=e,g=Math.floor(Date.now()/1e3),w=1e3*((null==u?void 0:u.endTime)||parseInt(null!==(t=i.env.NEXT_PUBLIC_FIXED_STAKING_END)&&void 0!==t?t:"0"))<=Date.now(),v=(null==u?void 0:u.reward)===0||!u||g<(null==u?void 0:u.rewardStart),b=null===x?w:!x,j="0";"number"==typeof(null==u?void 0:u.amount)?j=BigInt(u.amount).toString():"string"==typeof(null==u?void 0:u.amount)&&(j=u.amount||"0");let N=Number((0,r.b)(j,18)).toFixed(4),y=(null==u?void 0:u.duration)==="Flexi"||b,k=o===(null==u?void 0:u.tokenId);return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center p-4 gap-2 w-full h-auto rounded-[16px] lg:mb-3 mb-2 ".concat(w?"bg-lightpurpleInner bg-opacity-10":"bg-white bg-opacity-10"),children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-2 items-center w-full",children:[(0,s.jsx)("div",{className:"text-[#B4B4B7] text-sm",children:"Your stake amount"}),(0,s.jsxs)("div",{className:"text-white font-semibold text-sm text-right",children:[N," DCAI"]}),(0,s.jsx)("div",{className:"text-[#B4B4B7] text-sm",children:"Your APR"}),(0,s.jsxs)("div",{className:"text-white font-semibold text-sm text-right",children:[null==u?void 0:u.apr," %"]}),(0,s.jsx)("div",{className:"text-[#B4B4B7] text-sm",children:"Mature At"}),(0,s.jsx)("div",{className:"text-white full-width font-semibold text-sm text-right",children:(null==u?void 0:u.endTime)?(0,a.Os)(null==u?void 0:u.endTime):"-"})]}),(0,s.jsx)("div",{className:"w-full border-t border-white opacity-20 my-3"}),(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-x-2 gap-y-2 items-center w-full",children:[(0,s.jsx)("div",{className:"col-span-3 text-white text-sm font-bold",children:"Claimable Rewards"}),(0,s.jsxs)("div",{className:"col-span-2 text-[#B4B4B7] text-sm",children:[(l=null==u?void 0:u.reward)?(("string"==typeof l?Number(l):l)/1e18).toLocaleString(void 0,{minimumFractionDigits:4,maximumFractionDigits:6}):"0.000000"," DCAI"]}),b?(0,s.jsxs)("div",{className:"col-span-1 flex gap-2 justify-end",children:[y?(0,s.jsx)(n.KM,{disabled:!y&&v,isLoading:k&&"unstake"===c,onClick:()=>{(y||!v)&&p(null==u?void 0:u.tokenId)},className:"bg-purpleGradient text-white text-sm font-bold rounded-full lg:px-4 px-2 lg:py-2 py-1
1w-full",children:"Unstake"}):null,(0,s.jsx)(n.KM,{disabled:v,isLoading:k&&"claim"===c,onClick:()=>{v||m(null==u?void 0:u.tokenId)},className:"bg-purple text-white text-sm font-bold rounded-full lg:px-4 px-2 lg:py-2 py-1 w-full",children:"Claim"})]}):(0,s.jsx)("div",{className:"col-span-1 flex gap-2 justify-end",children:(0,s.jsx)(n.KM,{isLoading:k&&"claim"===c,disabled:v,onClick:()=>{v||m(null==u?void 0:u.tokenId)},className:"bg-purple text-white text-sm font-bold rounded-full lg:px-4 px-2 lg:py-2 py-1 w-full",children:"Claim"})})]})]})}},13577:function(e,t,l){"use strict";var s=l(57437);l(2265);var n=l(85141);t.default=e=>{let{positions:t,onClaim:l,unStake:r,loading:a,unstaked:i,selectedToken:c,selectedBtn:o}=e;return(0,s.jsx)("div",{className:"flex flex-col lg:gap-4 w-full rounded-[16px] lg:p-4 p-2",children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"flex flex-col items-start gap-2 lg:max-h-[1200px] max-h-[500px] overflow-y-auto pr-2",children:t.length>0&&t.map((e,t)=>(0,s.jsx)(n.default,{tokenId:c,selectedBtn:o,loading:a,unstaked:null!=i?i:null,unStake:r,onClaim:l,positionNumber:t+1,position:e},t))})})})}},45155:function(e,t,l){"use strict";var s=l(57437);l(2265);var n=l(42921);t.default=e=>{let{tvl:t,label:l,rank:r}=e,a=r?t:Number((0,n.b)(t,18)).toFixed(4);return(0,s.jsxs)("div",{className:"bg-purpleGradient rounded-full py-1 lg:px-6 px-2 shadow-lg flex items-center justify-between gap-3 transition-all mb-2 duration-300 hover:bg-purple",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"lg:text-sm text-xs font-semibold text-white",children:l}),(0,s.jsx)("span",{className:"lg:text-lg text-sm font-bold text-white",children:r?a:a.toLocaleString()})]}),!r&&(0,s.jsx)("div",{className:"flex items-center rounded-full py-1",children:(0,s.jsx)("img",{src:"/DCAI-logo-gradient.png",alt:"icon",className:"w-5 h-5"})})]})}},62224:function(e,t,l){"use strict";l.r(t),l.d(t,{AssetComponent:function(){return a}});var s=l(57437),n=l(2265),r=l(66648);function a(e){let{walletAddress:t,assets:l,amount:a,desc1:i,hasMax:c=!0,handleAssetChange:o,title:d,validateAndUpdateAmount:u,handleAmountChange:x,hasSelectBox:m=!0,customLabel:p,maxAmount:h,disabled:f,fullWidth:g,backgroundClass:w,isStaking:v,stakingMobile:b,type:j}=e,N=[{id:1,icon:"/DCAI.svg",currency:"DCAI",network:"BASE"},{id:2,icon:"/ETH.svg",currency:"ETH",network:"BASE"}],y="bg-black-offD";w&&(y=w);let k=N.filter(e=>l.includes("".concat(e.network,":").concat(e.currency))),C=k.map(e=>e.network).filter((e,t,l)=>l.indexOf(e)===t).map(e=>({network:e,assets:k.filter(t=>t.network===e)})),[S,E]=(0,n.useState)(k[0]),[A,D]=(0,n.useState)(k[0].id),[F,I]=(0,n.useState)(!1),T=e=>{D(e);let t=N.find(t=>t.id===e);E(t),t&&o(t),I(!1)};return(0,s.jsxs)("div",{className:"lg:w-full md:w-full w-[320px] p-4 rounded-[16px] flex flex-col lg:gap-4 ".concat(g?"w-full":""," ").concat(y),children:[(0,s.jsxs)("div",{className:"flex justify-between mb-1 mt-1",children:[(0,s.jsx)("label",{className:"block text-white text-[12px] lg:text-sm lg:max-w-[180px] line-clamp-1",children:d}),(0,s.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,s.jsx)("span",{className:"text-gray text-[12px] lg:text-sm",children:i}),(0,s.jsx)("span",{className:"ml-1 text-white text-[14px] lg:text-xs",children:p||function(e){let[t,l]=e.toFixed(8).split(".");if(0===e)return"wallet"===j?"0.000000":"0";if("wallet"===j){let t=e>=100?2:6;return e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})}if(e>=1e3)return"".concat((e/1e3).toFixed(2),"K");{let[t,l]=e.toFixed(8).split("."),s=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return void 0!==l?"".concat(s,".").concat(l.substring(0,2)):s}}(null!=h?h:0)}),c?(0,s.jsx)("button",{className:"ml-1 text-purple text-[12px] lg:text-sm",onClick:()=>{if(null!=h){let e;if("string"==typeof h){let t=h.trim();e=t.toUpperCase().endsWith("K")?1e3*parseFloat(t.slice(0,-1)):parseFloat(t)}else if("number"==typeof h)e=h;else{console.error("Max amount is not a valid string or number:",h);return}u(e)}
1else console.error("Max amount is not valid:",h)},children:"MAX"}):null]})]}),(0,s.jsxs)("div",{className:"flex items-center lg:gap-2 gap-1",children:[(0,s.jsx)("input",{type:"text",id:"amount",value:null==a?"":a,onChange:e=>{let{value:t}=e.target;if("0"===t||"0."===t){x({...e,target:{...e.target,value:t}});return}t.startsWith("0")&&!t.startsWith("0.")&&(t=t.replace(/^0+/,"")),(/^\d*\.?\d{0,6}$/.test(t)||""===t)&&x({...e,target:{...e.target,value:t}})},inputMode:"decimal",className:"bg-transparent text-white text-[20px] font-bold lg:w-full w-[50px] lg:text-lg focus:outline-none flex-1 placeholder-gray rounded-md px-2 pt-2",placeholder:"Amount",disabled:f}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-1 cursor-pointer pt-2",onClick:()=>I(!F),children:[function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lg:h-6 h-6 lg:w-6 w-6";return e?(0,s.jsx)("img",{src:"/DCAI-logo-gradient.png",width:"40",height:"40",alt:S.currency,className:t}):(0,s.jsx)("img",{src:S.icon,alt:S.currency,className:t})}(v),m?(0,s.jsxs)("div",{className:"text-white font-bold lg:text-sm text-[16px] p-1 flex items-center pl-2",children:[S.currency,(0,s.jsx)(r.default,{width:10,height:10,src:"/dropdown.png",alt:"Drop down",className:"matches-icon ml-[15px]"})]}):(0,s.jsx)("div",{className:"text-white font-bold lg:text-sm text-[16px] px-2",children:S.currency})]}),m&&F&&(0,s.jsx)("ul",{className:"absolute bg-[#1f1f25] text-sm rounded-md mt-1 p-2 z-10 lg:w-[120px] w-[95px] ",children:C.map(e=>(0,s.jsxs)("li",{className:"mb-1",children:[(0,s.jsx)("div",{className:"font-bold text-white",children:e.network}),(0,s.jsx)("ul",{children:e.assets.map(e=>(0,s.jsxs)("li",{onClick:()=>T(e.id),className:"flex items-center cursor-pointer py-1 hover:bg-gray text-white text-opacity-50 rounded-md",children:[(0,s.jsx)("img",{src:e.icon,alt:e.currency,className:"inline-block mr-1 h-4 w-4"}),e.currency]},e.id))})]},e.network))})]})]})]})}},9036:function(e,t,l){"use strict";l.r(t),l.d(t,{CryptoBalances:function(){return r}});var s=l(57437),n=l(24797);function r(e){let{balances:t}=e;return(0,s.jsx)("div",{className:"flex flex-col items-center w-full",children:t.map((e,l)=>(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-[16px] shadow-md w-full max-w-[450px] md:w-full ".concat(l!==t.length-1?"mb-6":""),children:[(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("img",{src:e.icon,alt:e.currency,className:"w-10 h-10 object-contain ml-2"}),(0,s.jsxs)("div",{className:"text-white font-bold text-[18px] lg:text-lg",children:[(0,s.jsx)("div",{className:"line-clamp-1",children:"".concat((0,n.az)(e.amount,2)," ").concat(e.currency)}),(0,s.jsx)("div",{className:"text-white opacity-30 font-normal text-[14px] mt-1",children:e.network})]})]}),(0,s.jsxs)("span",{className:"text-gray text-[16px] ml-2 whitespace-nowrap",children:["$",(0,n.az)(e.usdValue)]})]},e.id))})}},4537:function(e,t,l){"use strict";l.r(t),l.d(t,{HistoryButton:function(){return n}});var s=l(57437);function n(e){let{walletAddress:t}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{className:"bg-purple w-[113px] mb-3 h-[38px] hover:bg-purple lg:px-4 lg:py-1 hover:text-black text-white lg:leading-[14px] leading-[14px] lg:text-sm text-[12px] font-normal px-4 py-2 rounded-full",onClick:()=>{window.open("https://sepolia.basescan.org/address/".concat(t),"_blank")},children:"HISTORY"})})}l(37346)},8568:function(e,t,l){"use strict";l.r(t),l.d(t,{PrivateKeyReveal:function(){return a}});var s=l(57437),n=l(2265);l(24912);var r=l(76437);function a(e){let{updateUserStatus:t}=e,[l,a]=(0,n.useState)(!1),[i,c]=(0,n.useState)(null),{exportWallet:o,authenticated:d,ready:u,getAccessToken:x,user:m}=(0,r.sv)(),p=!!(null==m?void 0:m.linkedAccounts.find(e=>"wallet"===e.type&&"privy"===e.walletClient)),h=()=>{var e;c(setTimeout(()=>{o(),t&&t()},3e3)),null===(e=document.getElementById("reveal-button"))||void 0===e||e.classList.add("active")},f=()=>{var e;i&&(clearTimeout(i),c(null)),null===(e=document.getElementById("reveal-button"))||void 0===e||e.classList.remove("active")};return(0,n.useEffect)(()=>()=>{i&&clearTimeout(i)},[i]),(0,s.jsx)("div",{className:"flex flex-col items-start p-0 gap-2 w-90 h-20",children:(0,s.jsx)("div",{className:"flex flex-col items-center justify-center space-y-4 p-1 w-full",children:(0,s.jsx)("div",{className:"pb-6",children:p?(0,s.jsx)("div",{id:"reveal-button",className:"reveal-button bg-[#8349FF] text-white py-4 px-8 font-bold text-[16px] rounded-[100px] cursor-pointer font-sans",onMouseDown:h,onMouseUp:f,onMouseLeave:f,onTouchStart:h,onTouchEnd:f,children:(0,s.jsx)("span",{className:"text-sans text-white non-selectable",children:"HOLD TO REVEAL"})}):(0,s.jsx)("div",{className:"w-22 h-6 font-sans text-purple items-center justify-center",children:"Please export from your Metamask"})})})})}},81622:function(e,t,l){"use strict";l.r(t),l.d(t,{SwapButton:function(){return n}});var s=l(57437);function n(e){let{walletAddress:t}=e;return(0,s.jsx)("div",{className:"flex justify-center items-center h-full w-full mt-20",children:(0,s.jsx)("button",{className:"bg-purple hover:bg-[#9C6DFF] text-white hover:text-gray-100 text-sm font-normal px-4 py-2 w-[113px] h-[38px] rounded-full",onClick:()=>{window.open("https://app.uniswap.org/swap?inputCurrency=ETH&outputCurrency=0x8441051Ca0F29b102d51FFda666a3745079aFdDF","_blank")},children:"SWAP"})})}},94894:function(e,t,l){"use strict";l.r(t),l.d(t,{SwapForm:function(){return i}});var s=l(57437),n=l(57818),r=l(47597);let a=(0,n.default)(()=>Promise.all([l.e(6465),l.e(5098)]).then(l.bind(l,85098)).then(e=>e.UniswapWidget),{loadableGenerated:{webpack:()=>[85098]},ssr:!1,loading:()=>(0,s.jsx)(r.$j,{})});function i(e){return window.Browser={T:()=>{}},(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"lg:w-full mb-6 lg:flex lg:justify-center lg:px-4 lg:ml-0 ml-[-30px]",children:(0,s.jsx)("div",{className:"shadow-lg rounded-2xl lg:p-4 md:p-4 lg:max-w-full max-w-[300px] w-full",children:(0,s.jsx)(a,{})})})})}},37722:function(e,t,l){"use strict";l.r(t),l.d(t,{WalletButton:function(){return r}});var s=l(57437),n=l(47597);function r(e){let{loading:t,label:l,enable:r,onClick:a}=e;return(0,s.jsx)("div",{className:"flex items-center justify-center mb-4",children:(0,s.jsx)("button",{onClick:a,disabled:!r||t,className:"".concat(r?"bg-purple hover:bg-[#f7b936] items-center text-black":"bg-black-offD text-gray "," lg:text-[16
1px] text-[16px] font-bold py-4 lg:px-8 px-6 rounded-[120px] w-[150px] lg:w-[w-350px] sm:w-auto"),children:t?(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(n.$j,{})}):l})})}},24259:function(e,t,l){"use strict";l.r(t),l.d(t,{WalletInfo:function(){return u}});var s=l(57437),n=l(2265),r=l(16356),a=l(47597),i=l(63858),c=l(20656),o=l(24797),d=l(76437);let u=n.memo(e=>{let{walletAddress:t,activeTab:l}=e,{success:n}=(0,a.kC)(),{exportWallet:u,authenticated:x,ready:m,getAccessToken:p,user:h}=(0,d.sv)(),f=()=>{navigator.clipboard.writeText(t).then(()=>{n("Address copied")})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"text-purple text-2xl relative flex flex-col lg:space-y-8 w-full sm:text-lg ".concat("swap"!==l?"max-w-md":""),children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("div",{className:"w-full",children:(e=>{let l="text-white text-[16px] font-bold leading-6 flex justify-center items-center mt-2",n="text-gray text-[16px] leading-6 mb-3";switch(e){case"deposit":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-white p-2 rounded-md lg:mb-3 mb-2",children:[(0,s.jsx)("div",{className:l,children:"Step 1"}),(0,s.jsx)("div",{className:n,children:"Copy wallet address."}),(0,s.jsx)("div",{className:"flex flex-col items-center justify-center bg-[#8349FF33] bg-opacity-20 text-white text-sm rounded-full p-4 mx-auto w-full mt-2 lg:mb-1 mb-4",children:(0,s.jsxs)("div",{className:"flex w-full ",children:[(0,s.jsx)("div",{className:"private-key text-center whitespace-nowrap overflow-hidden overflow-ellipsis w-[60vw] sm:w-[300px] md:w-[350px] lg:w-[400px]",children:i.tq?(0,o.R1)(t):t}),(0,s.jsx)("button",{"aria-label":"Copy wallet address",onClick:f,className:"text-gray hover:text-white ml-2 shrink-0",children:(0,s.jsx)(r.Fqs,{size:20})})]})}),(0,s.jsx)("div",{className:"flex flex-col items-center justify-center p-2 mt-2 ",children:(0,s.jsx)("div",{className:"bg-[#fff] py-2 px-2",children:(0,s.jsx)(c.ZP,{value:t,size:100})})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:l,children:"Step 2"}),(0,s.jsx)("div",{className:n,children:"Send funds to the provided wallet address using the correct token network."})]})]});case"withdraw":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:" text-white p-2 rounded-md lg:mb-3",children:[(0,s.jsx)("div",{className:l,children:"Step 1"}),(0,s.jsx)("div",{className:n,children:"Select the amount and asset type to withdraw."})]}),(0,s.jsxs)("div",{className:" text-white p-2 rounded-md lg:mb-3",children:[(0,s.jsx)("div",{className:l,children:"Step 2"}),(0,s.jsx)("div",{className:n,children:"Type in the withdrawal wallet address."})]}),(0,s.jsxs)("div",{className:" text-white p-2 rounded-md lg:mb-3",children:[(0,s.jsx)("div",{className:l,children:"Step 3"}),(0,s.jsx)("div",{className:n,children:'Click "Withdraw" and wait for the deposit.'})]})]});case"swap":return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"min-h-[300px]",children:(0,s.jsxs)("div",{className:"text-white px-4 rounded-md mb-8",children:[(0,s.jsx)("div",{className:"mt-8 flex justify-center text-purple font-semibold text-base",children:(0,s.jsxs)("p",{children:["Notice:"," ",(0,s.jsx)("span",{className:"font-normal",children:"Swap Ethereum to DCAI on BASE chain"})]})}),(0,s.jsx)("div",{className:"flex justify-center mt-4",children:(0,s.jsx)("button",{className:"bg-purple hover:text-black text-white font-medium text-sm w-[250px] h-10 px-4 py-2 rounded-full shadow-lg transition-colors duration-150",onClick:()=>{window.open("https://app.uniswap.org/swap?outputCurrency=".concat("0xB8147CE9b0dac5F8165785DEc6494E57748e4B78","&chain=base"),"_blank")},children:"Trade on Uniswap"})})]})})});case"exportWallet":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-white p-2 rounded-md lg:mb-3",children:[(0,s.jsx)("div",{className:"flex text-purple text-xl items-center justify-center mb-6",children:"STEPS"}),(0,s.jsx)("div",{className:"mb-6 flex text-purple text-balance",children:(0,s.jsxs)("span",{className:"text-purple text-base font-bold",children:["WARNING:"," ",(0,s.jsx)("span",{className:"text-[16px] font-bold",children:"Protect your private key as anyone with it can access your funds."})]})}),(0,s.jsx)("div",{className:l,children:"Step 1"}),(0,s.jsx)("div",{className:n,children:"Ensure your surroundings are secure and no one can see your private key."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:l,children:"Step 2"}),(0,s.jsx)("div",{className:n,children:'Click the "Reveal" button to display your private key.'})]})]});default:return null}})(l)})})})})});u.displayName="WalletInfo"},61467:function(e,t,l){"use strict";l.r(t),l.d(t,{WalletSecondInfo:function(){return u}});
1var s=l(57437),n=l(9036),r=l(48631),a=l(2265),i=l(47597);let c=[{symbol:"DCAI",name:"DCAI Token",icon:"/DCAI.svg"},{symbol:"ETH",name:"Ethereum",icon:"/ETH.svg"}];function o(e){let{walletAddress:t}=e,{balances:l,refreshBalances:n}=(0,r.AK)(t),[o,d]=(0,a.useState)(""),[u,x]=(0,a.useState)(c[0]),[m,p]=(0,a.useState)(!1),[h,f]=(0,a.useState)(""),[g,w]=(0,a.useState)(!1),{success:v,alert:b}=(0,i.kC)(),{transfer:j,transferNative:N}=(0,r.GP)(),[y,k]=(0,a.useState)(!1),C=l.find(e=>e.currency===u.symbol),S=(null==C?void 0:C.amount)||0;(0,a.useEffect)(()=>{o&&w(Number(o)>0&&""!==h.trim())},[o,h]);let E=async()=>{if(o&&C){k(!0);try{"0x"===C.contract?await N(C.networkId,h,o.toString()):await j(C.contract,C.networkId,h,o.toString()),v("Withdrawal completed"),f(""),d(""),setTimeout(n,2e3)}catch(e){console.error(e),b("Withdraw failed")}finally{k(!1)}}};return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("h2",{className:"text-lg text-center mt-2 font-semibold text-white",children:"Withdrawal"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("label",{className:"text-white",children:"Amount to Withdraw"}),(0,s.jsxs)("span",{className:"text-gray-400 text-sm",children:["Balance: ",S.toFixed(6),(0,s.jsx)("button",{className:"ml-2 text-purple hover:text-purple font-bold",onClick:()=>d(S.toString()),children:"MAX"})]})]}),(0,s.jsxs)("div",{className:"flex items-center bg-black/40 rounded-xl border border-purple p-4 focus-within:ring-1 focus-within:ring-purple",children:[(0,s.jsx)("input",{type:"number",placeholder:"Amount",value:o,onChange:e=>{let t=e.target.value;if(Number(t)>S){b("Check your balance.");return}d(t)},className:"flex-1 bg-transparent text-white outline-none placeholder:text-purple"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("button",{onClick:()=>p(!m),className:"flex items-center gap-2 text-white bg-black/40 py-2 px-3 rounded-lg hover:bg-black/60 transition-colors",children:[(0,s.jsx)("img",{src:u.icon,alt:u.symbol,className:"w-6 h-6"}),(0,s.jsx)("span",{children:u.symbol}),(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})]}),m&&(0,s.jsx)("div",{className:"absolute right-0 mt-2 w-48 bg-black/90 rounded-xl shadow-lg py-1 z-10",children:c.map(e=>(0,s.jsxs)("button",{onClick:()=>{x(e),p(!1)},className:"flex items-center gap-2 w-full px-4 py-2 text-left text-white hover:bg-purple/20 transition-colors",children:[(0,s.jsx)("img",{src:e.icon,alt:e.symbol,className:"w-6 h-6"}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"font-medium",children:e.symbol})})]},e.symbol))})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-white",children:"Withdrawal Address"}),(0,s.jsx)("div",{className:"flex items-center bg-black/40 rounded-xl border border-purple p-4 focus-within:ring-1 focus-within:ring-purple",children:(0,s.jsx)("input",{type:"text",placeholder:"Your Address",value:h,onChange:e=>f(e.target.value),className:"w-full bg-transparent text-white outline-none placeholder:text-purple"})})]}),(0,s.jsx)("button",{className:"w-full ".concat(g?"bg-purple hover:bg-purple":"bg-lightpurple cursor-not-allowed"," text-white py-4 rounded-xl font-medium transition-colors"),disabled:!g||y,onClick:E,children:y?"Processing...":"Withdraw"})]})}var d=l(8568);function u(e){let{activeTab:t,walletAddress:l,updateUserStatus:i}=e,{balances:c,refreshBalances:u}=(0,r.AK)(l);return(0,a.useEffect)(()=>{u()},[t,u]),(0,s.jsx)("div",{className:"w-auto lg:w-full",children:(0,s.jsxs)("div",{className:"",children:[" ",(e=>{switch(e){case"deposit":return(0,s.jsx)(n.CryptoBalances,{balances:c});case"withdraw":return(0,s.jsx)(o,{walletAddress:l});case"exportWallet":return(0,s.jsx)(d.PrivateKeyReveal,{updateUserStatus:i});default:return null}})(t)]})})}},920:function(e,t,l){"use strict";l.r(t),l.d(t,{TabSwitcher:function(){return r}});var s=l(57437),n=l(10767);function r(e){let{setActiveTab:t,activeTab:l,modal:r=!1}=e,a=[{key:n.Py.DEPOSIT,label:"DEPOSIT",disabled:!1},{key:n.Py.WITHDRAW,label:"WITHDRAW",disabled:!1}],i=(e,t)=>t?"flex rounded-lg whitespace-nowrap disabled-wallet-button px-1":"flex rounded-lg whitespace-nowrap lg:px-1 md:px-1 px-2 lg:py-0 md:py-0 py-1 ".concat(l===e?"text-purple":"text-white opacity-20 hover:text-white");return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsxs)("div",{className:"flex-start flex flex-row w-full h-[38px] p-[12px] justify-center items-center py-1 lg:px-4 px-4 bg-black p-1 rounded-full space-x-2 lg:space-x-6 mb-4",children:[" ",a.map(e=>(0,s.jsx)("button",{className:i(e.key,e.disabled),onClick:()=>!e.disabled&&t(e.key),children:(0,s.jsx)("p",{className:"lg:text-sm md:text-sm text-sm",children:e.label})},e.key))]}):(0,s.jsxs)("div",{className:"flex w-full justify-center items-center bg-black py-1 lg:p-2 lg:px-4 px-2 rounded-full space-x-2 lg:space-x-4 mb-4",children:[" ",a.map(e=>(0,s.jsx)("button",{className:i(e.key,e.disabled),onClick:()=>!e.disabled&&t(e.key),children:(0,s.jsx)("p",{className:"text-sm lg:text-sm md:text-sm",children:e.label})},e.key))]})})}l(2265)},12192:function(e,t,l){"use strict";l.d(t,{LoaderProvider:function(){return i},U:function(){return c}});var s=l(57437),n=l(2265),r=l(27485);let a=(0,n.createContext)({loading:!1,setLoading:e=>{}}),i=e=>{let{children:t}
1=e,[l,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[l]),(0,s.jsxs)(a.Provider,{value:{loading:l,setLoading:i},children:[t,l&&(0,s.jsx)("div",{className:"fixed top-0 left-0 w-full h-full bg-black bg-opacity-50 z-50 flex items-center justify-center",children:(0,s.jsx)(r._P,{color:"#8349FF",visible:!0})})]})},c=()=>(0,n.useContext)(a)},36248:function(e,t,l){"use strict";l.d(t,{cw:function(){return r}});var s=l(44839),n=l(96164);function r(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,n.m6)((0,s.W)(t))}},24797:function(e,t,l){"use strict";l.d(t,{cn:function(){return s},az:function(){return n},ie:function(){return o},Os:function(){return d},R1:function(){return r},DZ:function(){return c},pi:function(){return a},uw:function(){return u}});let s=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return t.filter(e=>!!e).join(" ")},n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,l=arguments.length>2?arguments[2]:void 0;if(null==e)return l?"0":"0.000000";let s=parseFloat(e.toString());if(isNaN(s))throw Error("Invalid price passed");if(s>=100?t=2:t<6&&(t=6),l){let e=10**t;return s>=1e3?"".concat(Math.trunc(s/1e3*e)/e,"k"):Math.trunc(s*e)/e}return s.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})},r=(e,t)=>{if(!e)return"";if(e.length<=20)return e;let l=e.slice(0,6),s=e.slice(-4);return t&&(l=e.slice(0,10),s=e.slice(-6)),"".concat(l,"...").concat(s)};function a(e){let t=new Date("string"==typeof e?e:1e3*e),l=Math.floor(Math.floor((new Date().getTime()-t.getTime())/1e3)/60),s=Math.floor(l/60),n=Math.floor(s/24);return n>0?"".concat(n," day").concat(n>1?"s":""," ago"):s>0?"".concat(s," hour").concat(s>1?"s":""," ago"):l>0?"".concat(l," minute").concat(l>1?"s":""," ago"):"just now"}let i={t1:{d0:188,d1:300,d2:400,d3:1e3},t2:{d0:188,d1:500,d2:600,d3:1500},t3:{d0:188,d1:600,d2:800,d3:2e3}};function c(e,t){var l;let s=null===(l=i["t".concat(e)])||void 0===l?void 0:l["d".concat(t)];return s?s/100:0}let o=e=>new Date(e).toLocaleDateString("en-GB",{day:"2-digit",month:"long",year:"numeric"}),d=e=>{let t=new Date;if(0===e)return"Ongoing";{let l=new Date(1e3*e),s=Math.ceil((l-t)/864e5),n=l.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"});return"".concat(n," (").concat(s>0?"".concat(s," days"):"Matured",")")}};function u(e,t){return Array.from(new Map(e.map(e=>[e[t],e])).values())}},10767:function(e,t,l){"use strict";var s,n;l.d(t,{Py:function(){return s},k5:function(){return a},S6:function(){return r}}),(n=s||(s={})).DEPOSIT="deposit",n.WITHDRAW="withdraw",n.EXPORT_WALLET="exportWallet",n.SWAP="swap";let r=[{label:"30 days",value:30,duration:1},{label:"180 days",value:180,duration:2},{label:"365 days",value:365,duration:3}],a={tier1:{0:1.88,1:3,2:4,3:10},tier2:{0:1.88,1:5,2:6,3:15},tier3:{0:1.88,1:6,2:8,3:20}}},37346:function(){},24912:function(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.