1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="46352ccf-1ed3-4c66-8c80-8e0fc2a75544",e._sentryDebugIdIdentifier="sentry-dbid-46352ccf-1ed3-4c66-8c80-8e0fc2a75544")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[282],{7111:(e,t,a)=>{"use strict";a.d(t,{C5:()=>s,G:()=>n,N4:()=>r,Re:()=>d,WF:()=>c,YZ:()=>o,qF:()=>i});var l=a(59292);let r=e=>l.request.get("/content/public/getbanner",e),s=e=>l.request.get("/content/user/getbanner",e),n=e=>l.request.get("/content/public/webscreen",e),i=e=>l.request.get("/content/user/webscreen",e),o=e=>l.request.get("/api/usdt-rouse-api/grants/list",e),c=e=>l.request.get("/api/usdt-rouse-api/vip-benefit/unclaimed-benefits",e),d=(e,t,a)=>l.request.post(e,{...a,params:{...t,...null==a?void 0:a.params}})},10282:(e,t,a)=>{Promise.resolve().then(a.bind(a,29387)),Promise.resolve().then(a.bind(a,18348)),Promise.resolve().then(a.bind(a,93924)),Promise.resolve().then(a.t.bind(a,76958,23)),Promise.resolve().then(a.bind(a,97120)),Promise.resolve().then(a.bind(a,94180)),Promise.resolve().then(a.bind(a,7608)),Promise.resolve().then(a.bind(a,84361)),Promise.resolve().then(a.bind(a,8918)),Promise.resolve().then(a.bind(a,26485)),Promise.resolve().then(a.bind(a,47362)),Promise.resolve().then(a.bind(a,81315)),Promise.resolve().then(a.bind(a,47355)),Promise.resolve().then(a.bind(a,7248))},13202:(e,t,a)=>{"use strict";a.d(t,{E:()=>s});var l=a(79237),r=a(90477);function s(e){let{className:t,...a}=e;return(0,l.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-t5 animate-pulse rounded-md",t),...a})}},18348:(e,t,a)=>{"use strict";a.d(t,{default:()=>y});var l=a(79237),r=a(70659),s=a(19125),n=a(66960),i=a(44017),o=a(29265),c=a(83125),d=a(77222),u=a(38113),x=a(29962),m=a(84980);function p(e){let{open:t,onOpenChange:a}=e,{$t:s}=(0,n.B)();return(0,l.jsx)(m.DrawerRoot,{open:t,onOpenChange:a,direction:"bottom",children:(0,l.jsx)(m.DrawerContent,{className:"!bg-m2 !rounded-t-[14px] !border-0",children:(0,l.jsx)(m.DrawerBody,{className:"px-4 pt-8 pb-3",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,l.jsxs)("div",{className:"relative h-20 w-20",children:[(0,l.jsx)("div",{className:"bg-bt1 absolute inset-0 rounded-full opacity-30"}),(0,l.jsx)(c.Image,{src:"https://cdn.tapbit.mobi/home/pwa/pwa-success.png",alt:"pwa-success",width:80,height:80,className:"relative h-20 w-20"})]})}),(0,l.jsx)("div",{className:"text-b14 text-t1 mb-6 text-center leading-[1.4]",children:s("Successfully added! Tap the icon on your home screen to open.")}),(0,l.jsx)(r.$,{className:"h-10 w-full rounded-[6px]",size:"m",variant:"primary",onClick:()=>a(!1),children:s("OK")})]})})})})}var h=a(54818),f=a(65375);let b=u.forwardRef((e,t)=>(0,l.jsxs)(f.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:[(0,l.jsx)("path",{d:"M778.0352 246.016c0-22.528 0-36.864-0.9216-47.616-0.8704-10.3936-2.2528-13.824-2.9184-15.104a35.072 35.072 0 0 0-15.36-15.3088c-1.28-0.6144-4.608-2.048-15.0016-2.9184a662.528 662.528 0 0 0-47.616-0.9216H244.5824c-22.528 0-36.864 0-47.6672 0.9216-10.3424 0.8192-13.7216 2.304-15.0016 2.9184a35.1232 35.1232 0 0 0-15.36 15.36c-0.6656 1.28-2.048 4.6592-2.9184 15.0016-0.8704 10.8544-0.8704 25.1904-0.8704 47.616v299.8784h165.0688
1c5.632 0 13.0048-0.1024 20.8384 0.8704l7.8848 1.3824 6.144 1.7408c4.096 1.3312 8.0384 2.9696 11.8784 4.9152l5.5808 3.1744 6.5536 4.5568c6.1952 4.8128 11.3664 10.1376 15.36 14.1312l6.656 6.656 1.4848 1.4336 2.2016 0.0512 5.888 0.0512a42.752 42.752 0 1 1 0 85.504c-7.4752 0-18.2272 0.256-28.7232-2.2528a81.8176 81.8176 0 0 1-23.6032-9.7792c-9.216-5.6832-16.64-13.4656-21.9136-18.7392l-2.4576-2.4064-4.1984-4.1984-1.5872-1.536H123.8016v9.1136c0 26.88 0.3584 31.9488 1.2288 35.072a35.1744 35.1744 0 0 0 24.832 24.832c3.072 0.8192 8.192 1.1776 34.9696 1.1776h233.472a42.752 42.752 0 1 1 0 85.504H184.832c-21.3504 0-40.448 0.4096-57.1392-4.096a120.6784 120.6784 0 0 1-85.2992-85.2992c-4.4544-16.6912-4.096-35.84-4.096-57.1904v-12.9536c0-29.44 15.616-55.1424 38.912-69.5296V246.016c0-21.0944 0-39.5264 1.2288-54.6304 1.28-15.6672 4.1472-31.5392 11.9808-46.848a120.6272 120.6272 0 0 1 52.736-52.736c15.3088-7.8336 31.1808-10.6496 46.7968-11.9296 15.104-1.2288 33.536-1.2288 54.6304-1.2288h451.584c21.1456 0 39.5264 0 54.6304 1.2288 15.6672 1.28 31.5392 4.096 46.8992 11.9296 22.6816 11.5712 41.1648 30.0032 52.736 52.736 7.7824 15.36 10.6496 31.232 11.9296 46.848 1.2288 15.104 1.1776 33.536 1.1776 54.6304a42.8032 42.8032 0 0 1-85.504 0z"}),(0,l.jsx)("path",{d:"M900.1472 436.6848c0-16.2816 0-25.856-0.6144-32.9728a36.9152 36.9152 0 0 0-0.8704-6.2976 12.6976 12.6976 0 0 0-5.376-5.3248c1.024 0.512 0.256-0.3072-6.144-0.8192a465.2032 465.2032 0 0 0-32.9728-0.6144h-210.7904c-16.2304 0-25.8048 0-32.9216 0.6144-6.2976 0.512-7.168 1.28-6.2464 0.8192a12.7488 12.7488 0 0 0-5.376 5.376c0.4096-0.8704-0.3072-0.0512-0.8192 6.2464a465.5104 465.5104 0 0 0-0.6144 32.9728v377.1392c0 16.2304 0 25.856 0.6144 32.9216 0.512 6.4512 1.3312 7.168 0.8192 6.1952 1.2288 2.304 3.072 4.1472 5.3248 5.376a36.7104 36.7104 0 0 0 6.2976 0.9216c7.1168 0.512 16.6912 0.5632 32.9216 0.5632h210.7904c16.2304 0 25.856 0 32.9216-0.5632a36.7616 36.7616 0 0 0 6.2464-0.9216 12.5952 12.5952 0 0 0 5.3248-5.3248 37.2736 37.2736 0 0 0 0.8704-6.2464c0.6144-7.0656 0.6144-16.6912 0.6144-32.9216V436.6848z m-145.6128 284.7744a56.6272 56.6272 0 1 1-5.7344-0.3072l5.7344 0.3072z m231.1168 92.3648c0 14.848 0 28.5696-0.9216 39.936a99.6352 99.6352 0 0 1-9.7792 37.9392c-9.4208 18.4832-24.4224 33.4848-42.9056 42.9056a99.584 99.584 0 0 1-37.9392 9.8304c-11.4176 0.9216-25.088 0.8704-39.936 0.8704h-210.7904c-14.848 0-28.4672 0-39.8848-0.8704a99.584 99.584 0 0 1-37.9392-9.8304 98.304 98.304 0 0 1-42.9568-42.9056 99.6352 99.6352 0 0 1-9.7792-37.888c-0.9728-11.4176-0.9216-25.1904-0.9216-39.9872V436.6848c0-14.848 0-28.5184 0.9216-39.936 0.9728-11.8784 3.1744-24.9856 9.7792-37.888l3.7888-6.8608c9.472-15.36 23.04-27.904 39.168-36.1472l9.728-4.1984c9.6768-3.4304 19.3024-4.864 28.2112-5.632 11.4176-0.8704 25.088-0.8704 39.936-0.8704h210.7392c14.848 0 28.5184 0 39.936 0.9216 8.9088 0.7168 18.4832 2.1504 28.16 5.632l9.7792 4.1472 6.7584 3.7888c15.36 9.472 27.904 23.04 36.1472 39.168 6.6048 12.9536 8.8064 26.112 9.7792 37.9392 0.9728 11.4176 0.9216 25.088 0.9216 39.936v377.1392z"})]}));b.displayName="Laptop01Icon";var g=a(13647);function w(e){let{open:t,onOpenChange:a,onDownload:s,onShowGuide:o,onShowAdded:c}=e,{$t:d}=(0,n.B)(),x=(0,u.useRef)(null);(0,u.useEffect)(()=>{t&&(0,i.O5)()},[t]),(0,u.useEffect)(()=>{let e=e=>{e.preventDefault(),x.current=e},t=()=>{x.current=null,(0,i.Cr)(),c(),a(!1)};return window.addEventListener("beforeinstallprompt",e),window.addEventListener("appinstalled",t),()=>{window.removeEventListener("beforeinstallprompt",e),window.removeEventListener("appinstalled",t)}},[a,c]);let p=async()=>{let e=x.current;if((0,g.un)()||!e){a(!1),o();return}await e.prompt();try{await e.userChoice}catch(e){console.error("Unhandled async action error",e)}finally{x.current=null}};return(0,l.jsx)(m.DrawerRoot,{open:t,onOpenChange:a,direction:"bottom",children:(0,l.jsxs)(m.DrawerContent,{className:"!bg-m2 !rounded-t-[14px] !border-0",children:[(0,l.jsx)(m.DrawerHeader,{className:"px-4 pt-6 pb-3",children:(0,l.jsx)(m.DrawerTitle,{className:"text-t16 leading-[22px] font-[500]",children:d("Download/Install")})}),(0,l.jsx)(m.DrawerBody,{className:"px-4 py-6",children:(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)(r.$,{className:"text-t14 h-12 w-full rounded-[8px] font-[500]",size:"l",variant:"secondary",iconLeft:(0,l.jsx)(h.s,{className:"h-5 w-5"}),onClick:()=>{(0,i.bj)(),s()},children:d("Download APP")}),(0,l.jsx)(r.$,{className:"text-t14 h-12 w-full rounded-[10px] font-[500]",size:"l",variant:"secondary",iconLeft:(0,l.jsx)(b,{className:"h-5 w-5"}),onClick:()=>{(0,i.jU)(),p()},children:d("Add Tapbit to Home Screen")})]})})]})})}let v=["fa","ar"];function j(e,t){return 1===t?v.includes(e)?"/next-web/pwa/guide/fa-ar1.png":"/next-web/pwa/guide/en1.png":"/next-web/pwa/guide/".concat(e).concat(t,".png")}function N(e){let{open:t,onOpenChange:a}=e,{$t:s,locale:o}=(0,n.B)(),d=(0,u.useRef)(!1);return(0,u.useEffect)(()=>{t&&(d.current=!1,(0,i.Ft)())},[t]),(0,l.jsx)(m.DrawerRoot,{open:t,onOpenChange:e=>{e||d.current||(0,i.Ov)("close"),d.current=!1,a(e)},direction:"bottom",children:(0,l.jsxs)(m.DrawerContent,{className:"!bg-m2 !rounded-t-[14px] !border-0",children:[(0,l.jsx)(m.DrawerHeader,{className:"px-4 pt-6 pb-3",children:(0,l.jsx)(m.DrawerTitle,{className:"text-t16 leading-[22px] font-[500]",children:s("Add Tapbit to Home Screen")})}),(0,l.jsxs)(m.DrawerBody,{className:"px-4 pt-6",children:[(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mb-3 flex items-start gap-2",children:[(0,l.jsx)("div",{className:"bg-bt1 text-t1 mt-[1px] flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-[14px] text-[14px] leading-[1.4] font-medium",children:"1"}),(0,l.jsx)("div",{className:"text-b14 text-t1 leading-[1.4]",children:s('Tap the "Share" button in the bottom toolbar.')})]}),(0,l.jsx)(c.Image,{src:j(o,1),alt:"pwa-guide-step-1",width:343,height:148,className:"w-full rounded-[12px]"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mb-3 flex items-start gap-2",children:[(0,l.jsx)("div",{className:"bg-bt1 text-t1 mt-[1px] flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-[14px] text-[14px] leading-[1.4] font-medium",children:"2"}),(0,l.jsx)("div",{className:"text-b14 text-t1 leading-[1.4]",children:s('In the toolbar, tap "Add to Home Screen."')})]}),(0,l.jsx)(c.Image,{src:j(o,2),alt:"pwa-guide-step-2",width:343,height:148,className:"w-full rounded-[12px]"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mb-3 flex items-start gap-2",children:[(0,l.jsx)("div",{className:"bg-bt1 text-t1 mt-[1px] flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-[14px] text-[14px] leading-[1.4] font-medium",children:"3"}),(0,l.jsx)("div",{className:"text-b14 text-t1 leading-[1.4]",children:s('Confirm b
1y tapping "Add" to add the page to your home screen for easy access.')})]}),(0,l.jsx)(c.Image,{src:j(o,3),alt:"pwa-guide-step-3",width:343,height:148,className:"w-full rounded-[12px]"})]})]}),(0,l.jsx)(r.$,{className:"my-6 w-full",size:"m",variant:"primary",onClick:()=>{d.current=!0,(0,i.Ov)("complete"),a(!1)},children:s("Complete")})]})]})})}function y(){let{$t:e}=(0,n.B)(),t=(0,x.Ub)({maxWidth:767}),[a,m]=(0,u.useState)(!1),[h,f]=(0,u.useState)(!1),[b,g]=(0,u.useState)(!1),[v,j]=(0,o.B)(),y=(0,d.useRouter)(),k=(0,s.q)(),C=()=>{y.push(k("/download"))};return!t||j?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"border-l1 bg-bg1 relative z-1 flex w-full items-center border-b px-4 py-3",children:[(0,l.jsx)(c.Image,{className:"mr-[13px] h-10 w-10 rounded-lg align-top",src:"https://cdn.tapbit.mobi/static/home/logo-h5-new.png",alt:"Logo",width:40,height:40}),v?(0,l.jsxs)("div",{className:"flex flex-1 items-center",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("div",{className:"text-t1 mb-1 text-[14px] leading-5 font-bold",children:"TAPBIT"}),(0,l.jsx)("div",{className:"text-t2 h-[10px] leading-[10px]",children:(0,l.jsx)("span",{className:"inline-block origin-left scale-[0.8] text-xs",children:e("Add Tapbit to Home Screen")})})]}),(0,l.jsx)(r.$,{className:"min-w-[56px] font-[500]",variant:"primary",size:"xxs",onClick:()=>m(!0),children:e("Add_1")})]}):(0,l.jsxs)("div",{className:"relative mr-3 h-10 flex-1",children:[(0,l.jsx)("div",{className:"text-t1 text-[14px] font-bold",children:"TAPBIT"}),(0,l.jsx)("div",{className:"text-t2 mb-[4px] text-[8px] leading-[8px]",children:(0,l.jsx)("span",{className:"inline-block origin-left scale-[0.8] text-xs",children:e("Buy & sell cryptocurrencies anywhere.")})}),(0,l.jsx)(c.Image,{className:"h-2 align-top",src:"https://cdn.tapbit.mobi/static/home/star.png",alt:"star",width:46,height:8}),(0,l.jsx)(r.$,{className:"absolute top-1/2 right-0 min-w-[56px] -translate-y-1/2",variant:"primary",size:"xxs",onClick:C,children:e("GET")})]})]}),(0,l.jsx)(w,{open:a,onOpenChange:m,onDownload:C,onShowGuide:()=>f(!0),onShowAdded:()=>{(0,i.jN)(),g(!0)}}),(0,l.jsx)(N,{open:h,onOpenChange:f}),(0,l.jsx)(p,{open:b,onOpenChange:g})]})}},23719:(e,t,a)=>{"use strict";a.r(t),a.d(t,{SocketContainer:()=>o});var l=a(79237),r=a(62302),s=a(25825),n=a(38113),i=a(76656);function o(){let{children:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{let{socket:e,connecting:a}=s.G.getState();(null==e?void 0:e.readyState)===WebSocket.OPEN||a||t.current||(async()=>{try{t.current=!0,await r.W.connect()}catch(e){console.error("WebSocket connection failed:",e)}finally{t.current=!1}})()},[]),(0,n.useEffect)(()=>()=>{r.W.disconnect()},[]),null!=e?e:(0,l.jsx)(c,{})}function c(e){let{position:t="fixed",left:a=15,bottom:r=15}=e,{reconnecting:n,connectionFailed:o}=(0,s.G)((0,i.k)(e=>({reconnecting:e.reconnecting,connectionFailed:e.connectionFailed})));return n||o?(0,l.jsx)("div",{className:"bg-error-light center-vh sh-2 br-main z-10000 h-[50px] min-w-[150px] px-[15px] ".concat("fixed"===t?"fixed":"absolute"),style:{left:"".concat(a,"px"),bottom:"".concat(r,"px")},children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"h-4 w-4",children:o?(0,l.jsx)("div",{className:"h-4 w-4 animate-pulse rounded-full bg-red-500"}):(0,l.jsx)("div",{className:"h-4 w-4 animate-pulse rounded-full bg-yellow-500"})}),(0,l.jsx)("span",{className:"".concat(o?"text-p3":"text-p1"," text-sm font-medium"),children:o?"Connection failed, please refresh the page":"Network reconnecting ..."})]})}):null}},29387:(e,t,a)=>{"use strict";a.d(t,{default:()=>M});var l=a(79237),r=a(91405),s=a(73400),n=a(34071),i=a(81742),o=a(59502),c=a(51025),d=a(23719),u=a(12407),x=a(38113),m=a(13202);function p(){return(0,l.jsxs)("div",{className:"mx-auto w-full max-w-[1200px]",children:[(0,l.jsxs)("div",{className:"bg-bg1 flex h-[50px] items-center gap-2",children:[(0,l.jsx)(m.E,{className:"h-6 w-6 rounded-full"}),(0,l.jsx)(m.E,{className:"h-4 w-[400px]"})]}),(0,l.jsx)("div",{className:"mt-4 grid grid-cols-3 gap-3",children:[0,1,2].map(e=>(0,l.jsx)(m.E,{className:"h-[164px] rounded-xl"},e))}),(0,l.jsxs)("div",{className:"mt-8 space-y-4",children:[(0,l.jsx)(m.E,{className:"h-6 w-48"}),[0,1,2,3,4,5].map(e=>(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)(m.E,{className:"h-8 w-8 rounded-full"}),(0,l.jsx)(m.E,{className:"h-4 w-24"})]}),(0,l.jsx)(m.E,{className:"h-4 w-20"}),(0,l.jsx)(m.E,{className:"h-4 w-20"}),(0,l.jsx)(m.E,{className:"h-4 w-16"})]},e))]})]})}var h=a(45469),f=a(19125),b=a(66960),g=a(44017),w=a(29962),v=a(7111),j=a(4390),N=a(88117),y=a(83125),k=a(68454),C=a(83604),_=a(46540),E=a(56250),S=a(40760);function I(e){let{isLogged:t=!1}=e,a=(0,n.q)(),r=(0,w.Ub)({maxWidth:1200}),s="".concat(window.location.origin,"/download?").concat(Date.now()),i=(0,l.jsx)("div",{"data-testid":"hero-qr-card",className:t?"relative size-[170px] rounded-2xl bg-white p-2.5":"relative size-[138px] rounded-[12px] border border-black/[0.07] bg-white p-[9px] shadow-[0px_8px_28px_0px_rgba(0,0,0,0.06)]",children:(0,l.jsx)(S.Ay,{className:t?"size-[150px]":"size-[118px]",value:s,size:t?150:118,level:"H",imageSettings:{excavate:!0,src:"https://cdn.tapbit.mobi/common/logo/qrcode.png",height:24,width:24}})}),o=(0,l.jsx)("div",{className:"h-10 w-10 cursor-pointer rounded-full bg-[url('https://cdn.tapbit.mobi/static/home/qrcode.png')] bg-[length:40px_40px] bg-center bg-no-repeat hover:border hover:border-yellow-400",onClick:()=>{(0,g.mv)("scan")}});return a&&r?null:(0,l.jsx)("div",{className:"flex h-10 items-center",children:(0,l.jsxs)("div",{className:"flex items-center gap-5",children:[(0,l.jsx)("div",{className:"h-10 w-10 cursor-pointer rounded-full bg-[url('https://cdn.tapbit.mobi/static/home/apple.png')] bg-[length:40px_40px] bg-center bg-no-repeat hover:border hover:border-yellow-400",onClick:()=>{(0,g.mv)("app_store"),E.o&&window.open(E.o,"_blank")}}),(0,l.jsx)("div",{className:"h-10 w-10 cursor-pointer rounded-full bg-[url('https://cdn.tapbit.mobi/static/home/google.png')] bg-[length:40px_40px] bg-center bg-no-repeat hover:border hover:border-yellow-400",onClick:()=>{(0,g.mv)("google_play"),E.B&&window.open(E.B,"_blank")}}),t?(0,l.jsx)(_.Tooltip,{content:i,side:"right",align:"center",showArrow:!1,className:"!max-w-none !border-0 !bg-transparent !p-0 !shadow-none",children:o}):(0,l.jsxs)("div",{className:"group relative",children:[o,(0,l.jsx)("div",{role:"tooltip","data-testid":"hero-qr-popover",className:"invisible absolute top-full left-1/2 z-350 mt-3 -translate-x-1/2 opacity-0 transition-opacity group-hover:visible group-hover:opacity-100",children:i})]})]})})}var L=a(70659);function z(e){let{item:t,index:a=0}=e,{$t:r}=(0,b.B)(),{gotoRegister:s,user:n}=(0,c.k)(),i=!!(null==n?void 0:n.userId),[o,d]=(0,x.useState)(""),[u,m]=(0,x.useState)(""),p=(0,w.Ub)({maxWidth:768}),h=(0,f.q)(),v=e=>{(0,g.RO)("button"),(0,g.IM)({index:a,id:t.id}),window.open(e,"_blank")};return i?p?(0,l.jsx)(L.$,{className:"bg-p1 hover:bg-p1-dark rounded-rb3 h-14 w-[240px] px-5 text-[18px] leading-[22px] font-semibold text-black",onClick:()=>v(h("/futures/BTC-USDT")),children:r("Start Trading")}):(0,l.jsx)(L.$,{className:"bg-p1 hover:bg-p1-dark rounded-rb3 h-14 w-[240px] px-5 text-[18px] leading-[22px] font-semibold text-black",onClick:()=>v(t.buttonLink),children:t.buttonText}):(0,l.jsxs)("div",{className:"flex h-14 items-start gap-4 max-[1200px]:w-full",children:[(0,l.jsx)("input",{type:"text",className:"h-14 w-[329px] rounded-[8px] border border-[rgba(0,0,0,0.07)] bg-white px-4 text-[16px] leading-[22px] font-normal
1!text-black placeholder:text-black/30 hover:border-black/15 focus:border-yellow-400 focus:outline-none max-[1200px]:min-w-0 max-[1200px]:flex-1",placeholder:r("Email / Phone"),value:o,onChange:e=>{let t=e.target.value;d(t),t&&-1!==t.indexOf("@")?m("email"):m("phone")}}),(0,l.jsx)(L.$,{className:"bg-p1 hover:bg-p1-dark h-14 w-[141px] shrink-0 cursor-pointer !rounded-[8px] px-5 text-[18px] leading-[22px] font-semibold !text-black",onClick:()=>{(0,g.RO)("button"),(0,g.IM)({index:a,id:t.id}),o?s("/email",{loginId:o,regisType:u}):s()},children:r("Get started")})]})}function U(e){let{isLogged:t}=e;return(0,l.jsxs)("div",{"data-testid":"hero-actions-skeleton",className:t?"flex items-center gap-4 max-[1200px]:w-full":"flex flex-col items-start gap-4 max-[1200px]:w-full",children:[t?(0,l.jsx)(m.E,{className:"h-14 w-[240px] shrink-0 rounded-[8px] bg-black/10"}):(0,l.jsxs)("div",{className:"flex h-14 items-start gap-4 max-[1200px]:w-full",children:[(0,l.jsx)(m.E,{className:"h-14 w-[329px] rounded-[8px] bg-black/10 max-[1200px]:min-w-0 max-[1200px]:flex-1"}),(0,l.jsx)(m.E,{className:"h-14 w-[141px] shrink-0 rounded-[8px] bg-black/10"})]}),(0,l.jsx)("div",{className:"flex h-10 items-center gap-5",children:[0,1,2].map(e=>(0,l.jsx)(m.E,{className:"size-10 rounded-full bg-black/10"},e))})]})}function P(e){var t;let{item:a,index:r=0,priority:s,defaultVideoPriority:i=!1,mediaLoading:o=!1,titleLoading:d,onMouseEnter:u,onMouseLeave:x}=e,p=(0,n.q)(),h=(0,w.Ub)({maxWidth:1200}),f=!!p&&h,{i18n:b}=(0,k.Bd)(),v=(0,c.k)(e=>e.user),j=!!(0,c.k)(e=>e.userLoadFromStorage),_=!!(j&&(null==v?void 0:v.userId)),E=!!(d||!j),S=()=>{a.imgLink&&(f||(0,g.IM)({index:r,id:a.id}),window.open(a.imgLink,"_blank"))},L={en:"max-w-[560px]",ja:"max-w-[530px]",ru:"max-w-[560px]",zh:"max-w-full",fr:"max-w-[560px]",tr:"max-w-[480px]"}[b.language]||"";return(0,l.jsx)("div",{className:"mx-auto flex h-[836px] items-center max-[1200px]:h-auto max-[1200px]:px-4 max-[1200px]:pt-[24px] max-[1200px]:pb-[12px]",children:(0,l.jsxs)("div",{"data-hero-content":!0,onMouseEnter:u,onMouseLeave:x,className:"mx-auto flex w-full max-w-[1200px] -translate-y-[38px] items-center justify-between max-[1200px]:translate-y-0",children:[(0,l.jsxs)("div",{className:"w-[560px] shrink-0 max-[1200px]:w-full max-[1200px]:flex-1",children:[(0,l.jsx)("h1",{className:"text-h56 text-black ".concat((null==a?void 0:a.subtitle)?"mb-4":"mb-10"," leading-[1.2] font-bold whitespace-pre-line max-[1200px]:mb-3 max-[1200px]:font-[700] ").concat(L," max-[1200px]:text-start max-[1200px]:text-[32px] max-[1200px]:leading-[40px]"),children:E?(0,l.jsxs)("span",{"data-testid":"hero-title-skeleton",className:"block space-y-4 max-[1200px]:space-y-2",children:[(0,l.jsx)(m.E,{className:"h-[58px] w-[610px] max-w-full bg-black/20 max-[1200px]:h-8"}),(0,l.jsx)(m.E,{className:"h-[58px] w-[570px] max-w-full bg-black/20 max-[1200px]:h-8"})]}):a.title}),E?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.E,{"data-testid":"hero-subtitle-skeleton",className:"h-7 w-[420px] max-w-full rounded-[6px] bg-black/10 ".concat(_?"mb-16":"mb-10")}),j?(0,l.jsx)(U,{isLogged:_}):(0,l.jsx)("div",{"data-testid":"hero-actions-skeleton-placeholder",className:"h-[112px] w-full"})]}):(0,l.jsxs)(l.Fragment,{children:[(null==a?void 0:a.subtitle)&&(0,l.jsx)("div",{className:"text-[20px] leading-[28px] text-black/70 ".concat(_?"mb-16":"mb-10"," max-[1200px]:mb-8 max-[1200px]:text-start max-[1200px]:text-[14px] max-[1200px]:leading-[20px]"),children:a.subtitle}),(0,l.jsxs)("div",{className:_?"flex items-center gap-4 max-[1200px]:w-full":"flex flex-col items-start gap-4 max-[1200px]:w-full",children:[(0,l.jsx)(z,{item:a,index:r}),(0,l.jsx)(I,{isLogged:_})]})]})]}),(0,l.jsx)("div",{className:"flex size-[600px] shrink-0 items-center justify-center",children:!f&&!o&&(a.imgUrl||a.videoUrl)&&(0,l.jsx)(l.Fragment,{children:a.videoUrl?(0,l.jsx)(C.A,{webmUrl:a.videoUrl,safariUrl:a.safariVideoUrl,fallbackUrl:a.videoFallbackUrl||a.imgUrl,className:"size-[600px] object-contain ".concat(a.imgLink?"cursor-pointer":""),onClick:S,loop:null==(t=a.videoLoop)||t,preload:"auto",priority:i&&a.videoUrl===N.kd.webmUrl&&a.safariVideoUrl===N.kd.safariUrl,width:600,height:600,alt:a.title||"Landing page image"}):(0,l.jsx)(y.Image,{src:a.imgUrl,className:"size-[600px] object-contain ".concat(a.imgLink?"cursor-pointer":""),onClick:S,alt:a.title||"Landing page image",width:600,height:600,priority:s})})})]})})}function T(e){var t,a,r,s;let{trackModuleView:i=!1,videoPriority:d=!1}=e,{$t:u,locale:m}=(0,b.B)(),p=(0,n.q)(),y=(0,w.Ub)({maxWidth:1200}),k=!!p&&y,{user:C,userLoadFromStorage:_}=(0,c.k)(),E=(0,x.useRef)(new Set),[S,I]=(0,x.useState)(!1),L=(0,o.s)((0,g.XQ)(),(0,g.F2)("hero"),{trigger:"visible"}),z=!!(_&&(null==C?void 0:C.userId)),U=[u("key_quality_assets_1_3_09_1"),u("key_smarter_trading_1_3_09_1")].join("\n"),T=u("key_trade_crypto_and_global_stocks_with_usdt_1_3_09_1"),R=(0,f.q)()("/futures/BTC-USDT"),F=u("Start Trading"),D=e=>{var t,a,l,r;return{...e,title:(null==(t=e.title)?void 0:t.trim())||U,subtitle:(null==(a=e.subt
1itle)?void 0:a.trim())||T,buttonText:(null==(l=e.buttonText)?void 0:l.trim())||F,buttonLink:(null==(r=e.buttonLink)?void 0:r.trim())||R}},B=[D({title:U,subtitle:T,buttonText:F,buttonLink:R,imgUrl:N.kd.fallbackUrl,videoUrl:N.kd.webmUrl,safariVideoUrl:N.kd.safariUrl,videoFallbackUrl:N.kd.fallbackUrl,videoLoop:!1})],M=(a={locale:m,isLogin:z,enabled:!!_,normalizeItem:D},(0,j.useQuery)({queryKey:["homeLandingBanner",a.locale,a.isLogin],queryFn:async()=>{let e=a.isLogin?await (0,v.qF)({locale:a.locale}):await (0,v.G)({locale:a.locale});return 200===e.code&&e.data?e.data.map(a.normalizeItem):[]},enabled:null==(r=a.enabled)||r,placeholderData:e=>e,staleTime:12e4})),{items:A,mediaLoading:q,showTitleSkeleton:H}=(s={items:null!=(t=M.data)?t:[],isLoading:M.isPending,fallbackItems:B}).items.length>0?{items:s.items,mediaLoading:!1,showTitleSkeleton:!1,usesFallback:!1}:s.isLoading?{items:s.fallbackItems,mediaLoading:!0,showTitleSkeleton:!0,usesFallback:!1}:{items:s.fallbackItems,mediaLoading:!1,showTitleSkeleton:!1,usesFallback:!0};(0,x.useEffect)(()=>{!p||k||H||A.slice(0,1).forEach((e,t)=>{let a="".concat(t,":").concat(e.title,":").concat(e.imgUrl,":").concat(e.videoUrl);E.current.has(a)||(E.current.add(a),(0,g.Z9)({index:t,id:e.id}))})},[k,p,H,A]);let O=1===A.length;return(0,l.jsxs)("div",{ref:i?L:void 0,"data-theme":"light",className:"-mt-16 h-[900px] w-full overflow-hidden bg-[#F7F7F7] bg-[url('https://cdn.tapbit.mobi/next-web/home/v2-hero-background-new.png')] bg-cover bg-bottom bg-no-repeat pt-16",children:[!k&&(0,l.jsx)(l.Fragment,{children:O?(0,l.jsx)("div",{className:"mx-auto max-w-[1200px]",children:A.map((e,t)=>(0,l.jsx)(P,{index:t,item:e,priority:0===t,defaultVideoPriority:d&&0===t,mediaLoading:q,titleLoading:H},t))}):(0,l.jsx)(h.Carousel,{opts:{watchDrag:!1,loop:!0,align:"start"},itemsPerView:1,showArrows:"never",showIndicators:A.length>1,indicatorContainerClassName:"absolute bottom-20 left-1/2 z-2 -translate-x-1/2",indicatorItemClassName:"size-[6px] cursor-pointer rounded-[5px] transition-[width,background-color]",indicatorActiveClassName:"w-[16px] bg-black",indicatorInactiveClassName:"bg-black/[0.08]",autoplay:!0,autoplayDelay:5e3,autoplayPaused:S,autoplayPauseOnHover:!1,className:"mx-auto h-[836px] w-[1200px]",children:A.map((e,t)=>(0,l.jsx)(h.CarouselItem,{children:(0,l.jsx)(P,{item:e,index:t,priority:0===t,defaultVideoPriority:d&&0===t,mediaLoading:q,titleLoading:H,onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1)})},t))})}),k&&A.map((e,t)=>(0,l.jsx)(P,{index:t,item:e,priority:0===t,mediaLoading:q,titleLoading:H},t))]})}function R(){return(0,l.jsxs)("div",{className:"px-4 py-8",children:[(0,l.jsx)(m.E,{className:"mb-4 h-[22px] w-36"}),[0,1,2,3,4,5].map(e=>(0,l.jsxs)("div",{className:"flex items-center justify-between py-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(m.E,{className:"h-7 w-7 rounded-full"}),(0,l.jsx)(m.E,{className:"h-4 w-20"})]}),(0,l.jsx)(m.E,{className:"h-4 w-16"}),(0,l.jsx)(m.E,{className:"h-4 w-14"})]},e))]})}function F(e){let{trackModuleView:t=!1,videoPriority:a=!1}=e,{$t:r}=(0,b.B)(),{gotoRegister:s,user:n,userLoadFromStorage:i}=(0,c.k)(),d=!!(i&&(null==n?void 0:n.userId)),u=(0,o.s)((0,g.XQ)(),(0,g.F2)("hero"),{trigger:"visible"});return(0,l.jsxs)("div",{ref:t?u:void 0,className:"px-s4 mt-8 flex flex-col items-center gap-6",children:[(0,l.jsxs)("div",{className:"gap-s2 flex w-full flex-col items-center",children:[(0,l.jsx)(C.A,{className:"size-[300px] shrink-0 object-contain",webmUrl:N.kd.webmUrl,safariUrl:N.kd.safariUrl,fallbackUrl:N.kd.fallbackUrl,loop:!1,preload:"auto",priority:a,width:300,height:300,alt:"Tapbit markets"}),(0,l.jsxs)("div",{className:"gap-s3 flex w-full flex-col items-center px-4 text-center",children:[(0,l.jsxs)("h1",{className:"text-t1 w-full text-[28px] leading-[1.4] font-semibold",children:[(0,l.jsx)("span",{className:"block",children:r("key_quality_assets_1_3_09_1")}),(0,l.jsx)("span",{className:"block",children:r("key_smarter_trading_1_3_09_1")})]}),(0,l.jsx)("p",{className:"text-t2 w-full text-[14px] leading-[1.4] font-normal",children:r("key_trade_crypto_and_global_stocks_with_usdt_1_3_09_1")})]})]}),(0,l.jsx)(L.$,{className:"w-full ".concat((!i||d)&&"invisible"),size:"m",onClick:()=>{s()},children:r("Sign Up Now")})]})}let D=(0,u.default)(()=>Promise.all([a.e(6851),a.e(7514),a.e(1726),a.e(3517)]).then(a.bind(a,75774)),{loadableGenerated:{webpack:()=>[75774]},ssr:!1}),B=(0,u.default)(()=>Promise.all([a.e(1726),a.e(2145)]).then(a.bind(a,54378)),{loadableGenerated:{webpack:()=>[54378]},ssr:!1});function M(){let e=(0,r.no)(),t=(0,n.q)(),[a,u]=(0,x.useState)(!1),{setTheme:m}=(0,i.W)(),h=(0,c.k)(e=>e.user),f=!(0,c.k)(e=>e.userLoadFromStorage)||!(null==h?void 0:h.userId);(0,o.s)("homev2_view",{page_name:"home"},{trigger:"active",active:a});let b=(0,x.useRef)(null),g=(0,x.useRef)(null),w=(0,x.useRef)(null);(0,x.useLayoutEffect)(()=>{let e="".concat("tapbit-home-scroll-position",":").concat(window.location.pathname),t=Number(window.sessionStorage.getItem(e));g.current=e,function(){let e=performance.getEntriesByType("navigation")[0];return(null==e?void 0:e.type)==="reload"}()&&Number.isFinite(t)&&t>0?(b.current=t,w.current=window.history.scrollRestoration,window.history.scrollRestoration="manual"):window.sessionStorage.removeItem(e);let a=()=>{window.sessionStorage.setItem(e,String(window.scrollY))};return window.addEventListener("pagehide",a),()=>{window.removeEventListener("pagehide",a),w.current&&(window.history.scrollRestoration=w.current)}},[]),(0,x.useEffect)(()=>{let e=b.current,t=g.current;if(!a||null===e||null===t)return;let l=0,r=0,s=()=>{let a=Math.min(e,Math.max(0,document.documentElement.scrollHeight-window.innerHeight));if(window.scrollTo(0,a),r+=1,a>=e||r>
1=120)return void(b.current=null,window.sessionStorage.removeItem(t),w.current&&(window.history.scrollRestoration=w.current,w.current=null));l=window.requestAnimationFrame(s)};return l=window.requestAnimationFrame(s),()=>window.cancelAnimationFrame(l)},[a]),(0,x.useLayoutEffect)(()=>(m(e?"light":"dark"),()=>m("light")),[e,m]);let v=(0,x.useMemo)(()=>({layout:e?"h5":"pc"}),[e]),{markReady:j}=(0,s.J)({pageName:"home",attributes:v});return(0,x.useEffect)(()=>{a&&j()},[a,j]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.SocketContainer,{}),(0,l.jsxs)("div",{className:"bg-bg1 hidden md:block","data-theme":"dark",children:[(!t||!e)&&(0,l.jsx)(T,{trackModuleView:a,videoPriority:!e}),!a&&(0,l.jsx)(p,{})]}),(0,l.jsxs)("div",{className:"bg-bg1 md:hidden",children:[(!t||e)&&f&&(0,l.jsx)(F,{trackModuleView:a,videoPriority:e}),!a&&(0,l.jsx)(R,{})]}),t&&(e?(0,l.jsx)(B,{onReady:()=>u(!0)}):(0,l.jsx)(D,{onReady:()=>u(!0)}))]})}},41241:(e,t,a)=>{"use strict";a.d(t,{J:()=>n});var l=a(79237),r=a(38113),s=a(65375);let n=r.forwardRef((e,t)=>(0,l.jsx)(s.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,l.jsx)("path",{d:"M215.424 718.890667A51.2 51.2 0 0 1 142.933333 646.4l341.333334-341.333333a51.2 51.2 0 0 1 72.448 0l341.333333 341.333333a51.2 51.2 0 0 1-72.448 72.448L520.533333 413.738667 215.424 718.933333z"})}));n.displayName="ChevronUp1Icon"},45469:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Carousel:()=>p,CarouselContainer:()=>f,CarouselContent:()=>h,CarouselIndicators:()=>v,CarouselItem:()=>b,CarouselNext:()=>w,CarouselPrevious:()=>g});var l=a(79237),r=a(91405),s=a(90477),n=a(8065),i=a(38113),o=a(4637),c=a(41241),d=a(76562),u=a(47776);let x=i.createContext(null);function m(){let e=i.useContext(x);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let p=i.forwardRef((e,t)=>{let{orientation:a="horizontal",opts:o,setApi:c,plugins:d,autoplay:u=!1,autoplayDelay:m=3e3,autoplayPaused:p=!1,autoplayPauseOnHover:b=!0,itemsPerView:j,responsive:N=!1,showArrows:y="hover",showIndicators:k=!0,indicatorContainerClassName:C,indicatorItemClassName:_,indicatorActiveClassName:E,indicatorInactiveClassName:S,previousClassName:I,nextClassName:L,className:z,children:U,...P}=e,T=(0,r.no)(),[R,F]=(0,n.A)({...o,axis:"horizontal"===a?"x":"y"},d),[D,B]=i.useState(!1),[M,A]=i.useState(!1),[q,H]=i.useState(0),[O,Q]=i.useState([]),[V,W]=i.useState(!1),G=i.useRef(null),$=i.useCallback(e=>{e&&(B(e.canScrollPrev()),A(e.canScrollNext()),H(e.selectedScrollSnap()))},[]),J=i.useCallback(e=>{e&&(Q(e.scrollSnapList()),$(e))},[$]),K=i.useCallback(()=>{null==F||F.scrollPrev()},[F]),Y=i.useCallback(()=>{null==F||F.scrollNext()},[F]),X=i.useCallback(e=>{null==F||F.scrollTo(e)},[F]),Z=i.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),K()):"ArrowRight"===e.key&&(e.preventDefault(),Y())},[K,Y]);i.useEffect(()=>{F&&c&&c(F)},[F,c]),i.useEffect(()=>{if(F)return $(F),Q(F.scrollSnapList()),F.on("reInit",J),F.on("select",$),()=>{null==F||F.off("select",$),null==F||F.off("reInit",J)}},[F,$,J]),i.useEffect(()=>{if(u&&F&&!p&&!V)return G.current=setInterval(()=>{F.canScrollNext()?F.scrollNext():F.scrollTo(0)},m),()=>{G.current&&(clearInterval(G.current),G.current=null)}},[F,u,m,p,V]);let ee=i.useCallback(()=>{u&&b&&W(!0)},[u,b]),et=i.useCallback(()=>{u&&b&&W(!1)},[u,b]),ea=i.useMemo(()=>!i.Children.toArray(U).some(e=>{if(!i.isValidElement(e))return!1;let t=e.type;return t===h||"CarouselContent"===t.displayName}),[U])?(0,l.jsx)(h,{children:U}):U,el=T?"never":y,er=(0,l.jsx)(f,{className:"vertical"===a?"flex-1":void 0,children:"horizontal"===a?(0,l.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,l.jsx)(g,{className:I}),ea,(0,l.jsx)(w,{className:L})]}):(0,l.jsx)("div",{className:"h-full min-h-0 w-full",children:ea})});return(0,l.jsx)(x.Provider,{value:{carouselRef:R,api:F,opts:o,orientation:a||((null==o?void 0:o.axis)==="y"?"vertical":"horizontal"),scrollPrev:K,scrollNext:Y,canScrollPrev:D,canScrollNext:M,scrollTo:X,selectedIndex:q,scrollSnaps:O,itemsPerView:N&&T?1:j,showArrows:el,showIndicators:k,indicatorContainerClassName:C,indicatorItemClassName:_,indicatorActiveClassName:E,indicatorInactiveClassName:S},children:(0,l.jsx)("section",{ref:t,"aria-label":"Carousel",onKeyDownCapture:Z,onMouseEnter:ee,onMouseLeave:et,className:(0,s.Q)("group relative flex flex-col","horizontal"===a&&"ga
1p-s6","vertical"===a&&"h-full min-h-0",z),...P,children:"vertical"===a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,l.jsx)("div",{className:(0,s.Q)("h-full min-h-0",k&&"pr-[calc(var(--spacing-s6)+3px)] rtl:pr-0 rtl:pl-[calc(var(--spacing-s6)+3px)]"),children:er}),k&&(0,l.jsx)(v,{className:(0,s.Q)("absolute top-1/2 right-0 shrink-0 -translate-y-1/2 flex-col justify-center rtl:right-auto rtl:left-0",C)})]}),"never"!==el&&(0,l.jsxs)("div",{className:"mt-s6 gap-s6 flex items-center justify-center",children:[(0,l.jsx)(g,{className:I}),(0,l.jsx)(w,{className:L})]})]}):(0,l.jsxs)(l.Fragment,{children:[er,k&&(0,l.jsx)(v,{className:(0,s.Q)("justify-center",C)})]})})})});p.displayName="Carousel";let h=i.forwardRef((e,t)=>{let{className:a,...r}=e,{carouselRef:n,orientation:i}=m();return(0,l.jsx)("div",{ref:n,className:(0,s.Q)("w-full overflow-hidden","vertical"===i&&"h-full min-h-0"),children:(0,l.jsx)("div",{ref:t,className:(0,s.Q)("flex","vertical"===i&&"flex-col",a),...r})})});h.displayName="CarouselContent";let f=i.forwardRef((e,t)=>{let{className:a,...r}=e,{orientation:n}=m();return(0,l.jsx)("div",{ref:t,className:(0,s.Q)("relative flex items-center","horizontal"===n?"flex-row":"h-full min-h-0 flex-col",a),...r})});f.displayName="CarouselContainer";let b=i.forwardRef((e,t)=>{let{className:a,style:r,...n}=e,{itemsPerView:i}=m();return(0,l.jsx)("div",{ref:t,className:(0,s.Q)("min-h-0 min-w-0 shrink-0 grow-0",a),style:{...i?{flexBasis:"".concat(100/i,"%")}:{},...r},...n})});b.displayName="CarouselItem";let g=i.forwardRef((e,t)=>{let{className:a,...r}=e,{orientation:n,scrollPrev:i,canScrollPrev:d,showArrows:u}=m();return"never"===u?null:(0,l.jsxs)("button",{ref:t,type:"button",className:(0,s.Q)("z-10 flex shrink-0 items-center justify-center","border-l1 bg-bg1 size-9 rounded-[20px] border","hover:bg-bg6 transition-all","disabled:pointer-events-none disabled:opacity-0","cursor-pointer","always"===u?"opacity-100":"opacity-0 group-hover:opacity-100","horizontal"===n?"absolute top-1/2 left-[calc(-36px-var(--spacing-s6))] -translate-y-1/2 rtl:right-[calc(-36px-var(--spacing-s6))] rtl:left-auto":"static translate-x-0 translate-y-0",a),disabled:!d,onClick:i,...r,children:["horizontal"===n?(0,l.jsx)(o.F,{className:"text-t1 h-3 w-3 rtl:rotate-180"}):(0,l.jsx)(c.J,{className:"text-t1 h-3 w-3"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});g.displayName="CarouselPrevious";let w=i.forwardRef((e,t)=>{let{className:a,...r}=e,{orientation:n,scrollNext:i,canScrollNext:o,showArrows:c}=m();return"never"===c?null:(0,l.jsxs)("button",{ref:t,type:"button",className:(0,s.Q)("z-10 flex shrink-0 items-center justify-center","border-l1 bg-bg1 size-9 rounded-[20px] border","hover:bg-bg6 transition-all","disabled:pointer-events-none disabled:opacity-0","cursor-pointer","always"===c?"opacity-100":"opacity-0 group-hover:opacity-100","horizontal"===n?"absolute top-1/2 right-[calc(-36px-var(--spacing-s6))] -translate-y-1/2 rtl:right-auto rtl:left-[calc(-36px-var(--spacing-s6))]":"static translate-x-0 translate-y-0",a),disabled:!o,onClick:i,...r,children:["horizontal"===n?(0,l.jsx)(d.Y,{className:"text-t1 h-3 w-3 rtl:rotate-180"}):(0,l.jsx)(u.C,{className:"text-t1 h-3 w-3"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});w.displayName="CarouselNext";let v=i.forwardRef((e,t)=>{let{className:a,...r}=e,{scrollSnaps:n,selectedIndex:i,scrollTo:o,orientation:c,indicatorItemClassName:d,indicatorActiveClassName:u,indicatorInactiveClassName:x}=m(),p=null!=d?d:"vertical"===c?"h-[16px] md:h-[20px] w-[3px] cursor-pointer rounded-[5px] transition-colors":"h-[3px] w-[16px] md:w-[20px] cursor-pointer rounded-[5px] transition-colors",h=null!=u?u:"bg-t1",f=null!=x?x:"bg-bg6";return(0,l.jsx)("div",{ref:t,className:(0,s.Q)("flex items-center gap-[6px]",a),...r,children:n.map((e,t)=>(0,l.jsx)("button",{type:"button",className:(0,s.Q)(p,t===i?h:f),onClick:()=>o(t),"aria-label":"Go to slide ".concat(t+1)},t))})});v.displayName="CarouselIndicators"},54818:(e,t,a)=>{"use strict";a.d(t,{s:()=>n});var l=a(79237),r=a(38113),s=a(65375);let n=r.forwardRef((e,t)=>
1(0,l.jsx)(s.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,l.jsx)("path",{d:"M180.65 484.95a34.133 34.133 0 1 1 48.3-48.3l248.917 248.96V119.468a34.133 34.133 0 0 1 68.266 0V685.61l248.918-248.96a34.176 34.176 0 0 1 48.298 48.298l-307.2 307.2a34.09 34.09 0 0 1-48.298 0l-307.2-307.2zM887.468 870.4H136.533a34.133 34.133 0 0 0 0 68.267h750.934a34.133 34.133 0 1 0 0-68.267z"})}));n.displayName="DownloadIcon"},56250:(e,t,a)=>{"use strict";a.d(t,{B:()=>r,o:()=>l});let l="https://apps.apple.com/app/id1610497530",r="https://play.google.com/store/apps/details?id=com.tapbit.android"},73400:(e,t,a)=>{"use strict";a.d(t,{J:()=>n});var l=a(48996),r=a(13647),s=a(38113);function n(e){let{pageName:t,attributes:a,auto:n=!1,fallbackMs:i=1e4}=e,o=(0,s.useRef)(!1),c=(0,s.useRef)("cold"),d=(0,s.useRef)(null),u=(0,s.useRef)(null),x=(0,s.useRef)(null),m=(0,s.useCallback)(()=>{let e=performance.getEntriesByType("navigation")[0];if(!e||!Number.isFinite(e.responseStart))return null;let{responseEnd:t,responseStart:a,requestStart:l}=e,r=Math.abs(t-a),s=Math.abs(a-l);return r<5&&s<10&&(c.current="hot"),Math.max(0,performance.now()-a)},[]),p=(0,s.useCallback)(e=>{var s,n,i;if(o.current||null==e)return;o.current=!0,null!=x.current&&(window.clearTimeout(x.current),x.current=null);let d=null!=(i=null==(s=u.current)?void 0:s.read())?i:0;null==(n=u.current)||n.disconnect(),(0,l.KD)().send({value:t,duration:Math.round(e),code:d>0?Math.round(d):void 0,extra:{startupType:c.current,...function(){if("undefined"==typeof navigator)return{};let e=navigator,t=performance.memory,a=e.connection;return{deviceMemory:e.deviceMemory,cpuCores:e.hardwareConcurrency,dpr:window.devicePixelRatio,screen:window.screen?"".concat(window.screen.width,"x").concat(window.screen.height):void 0,viewport:"".concat(window.innerWidth,"x").concat(window.innerHeight),netType:null==a?void 0:a.effectiveType,downlink:null==a?void 0:a.downlink,rtt:null==a?void 0:a.rtt,saveData:null==a?void 0:a.saveData,usedMB:(null==t?void 0:t.usedJSHeapSize)?Math.round(t.usedJSHeapSize/1048576):void 0,limitMB:(null==t?void 0:t.jsHeapSizeLimit)?Math.round(t.jsHeapSizeLimit/1048576):void 0,inApp:(0,r.bf)()}}(),...a}})},[t,a]),h=(0,s.useCallback)(()=>{p(m())},[m,p]);return(0,s.useEffect)(()=>{u.current=function(){if("undefined"==typeof PerformanceObserver)return{read:()=>0,disconnect:()=>{}};let e=0;try{let t=new PerformanceObserver(t=>{let a=t.getEntries(),l=a[a.length-1];l&&(e=l.startTime)});return t.observe({type:"largest-contentful-paint",buffered:!0}),{read:()=>e,disconnect:()=>t.disconnect()}}catch(t){return{read:()=>e,disconnect:()=>{}}}}();let e=window.requestAnimationFrame(()=>{d.current=m(),n&&p(d.current)});return x.current=window.setTimeout(()=>{var e;p(null!=(e=d.current)?e:m())},i),()=>{var t;window.cancelAnimationFrame(e),null!=x.current&&(window.clearTimeout(x.current),x.current=null),null==(t=u.current)||t.disconnect()}},[n,i,m,p]),{markReady:h}}},76656:(e,t,a)=>{"use strict";a.d(t,{k:()=>s});var l=a(38113),r=a(5676);function s(e){let t=l.useRef(void 0);return a=>{let l=e(a);return(0,r.x)(t.current,l)?t.current:t.current=l}}},83604:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(79237),r=a(83125),s=a(38113),n=a(48772),i=a(88117);function o(e){let{webmUrl:t,safariUrl:a,fallbackUrl:o,className:c,width:d,height:u,alt:x="",autoPlay:m=!0,loop:p=!0,preload:h="metadata",priority:f=!1,onClick:b}=e,[g,w]=(0,s.useState)(!1),[v,j]=(0,s.useState)(null);if(f&&"undefined"!=typeof navigator){let e=(0,i.uk)(t,a);a&&e===a&&((0,n.preconnect)("https://cdn.tapbit.mobi"),(0,n.preload)(e,{as:"video",fetchPriority:"high"}))}(0,s.useEffect)(()=>{w(!1),j((0,i.uk)(t,a))},[a,t]);let N=o?(0,l.jsx)(r.Image,{className:c,onClick:b,src:o,alt:x,width:d,height:u,unoptimized:!0}):null;return g?N:v?(0,l.jsx)("video",{className:c,onClick:b,onError:()=>w(!0),src:v,autoPlay:m,loop:p,muted:!0,playsInline:!0,preload:h,"aria-label":x||void 0,"aria-hidden":!x||void 0}):null}},88117:(e,t,a)=>{"use strict";a.d(t,{KE:()=>s,kd:()=>r,uk:()=>n});let l="https://cdn.tapbit.mobi/next-web/home",r={webmUrl:"".concat(l,"/v6-hero.webm"),safariUrl:"".concat(l,"/v6-hero-safari.mov"),fallbackUrl:"".concat(l,"/hero-fallback.png")},s={webmUrl:"".concat(l,"/v2-phone.webm"),safariUrl:"".concat(l,"/v5-phone-safari.mov"),fallbackUrl:"".concat(l,"/phone-fallback.png")};function n(e,t){return"undefined"!=typeof navigator&&t?!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=e.toLowerCase();return!!/iphone|ipad|ipod|ios/.test(l)||"MacIntel"===t&&a>1||l.includes("safari")&&!/(chrome|chromium|crios|android|edg|edge|firefox|fxios|opr|opera)/.test(l)}(navigator.userAgent,navigator.platform,navigator.maxTouchPoints)?e:t:e}}}]);
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.