1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="562bfc8a-1450-4270-964e-90b735da6fce",e._sentryDebugIdIdentifier="sentry-dbid-562bfc8a-1450-4270-964e-90b735da6fce")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3951,6399],{53951:(e,a,l)=>{l.r(a),l.d(a,{Dialog:()=>w,DialogClose:()=>u,DialogContent:()=>g,DialogDescription:()=>v,DialogFooter:()=>y,DialogHeader:()=>N,DialogOverlay:()=>p,DialogPortal:()=>f,DialogRoot:()=>x,DialogTitle:()=>j,DialogTrigger:()=>h});var s=l(79237),t=l(91405),n=l(90477),i=l(45056),r=l(12407),o=l(61058),d=l(38113),c=l(51924),m=l(70659);let x=i.bL,h=i.l9,f=i.ZL,u=i.bm,p=d.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,s.jsx)(i.hJ,{ref:a,className:(0,n.Q)("bg-p6 fixed inset-0 z-300","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",l),...t})});p.displayName=i.hJ.displayName;let g=d.forwardRef((e,a)=>{let{className:l,children:t,style:r,overlayClassName:o,...d}=e;return(0,s.jsxs)(f,{children:[(0,s.jsx)(p,{className:o}),(0,s.jsx)(i.UC,{ref:a,style:r,className:(0,n.Q)("fixed top-[50%] left-[50%] z-300 translate-x-[-50%] translate-y-[-50%] outline-none","w-[420px] max-md:w-[calc(100vw-var(--spacing-s8)-var(--spacing-s8))] max-md:max-w-[420px]","flex flex-col","border-l1 bg-m1 p-s6 shadow-3 rounded-[12px] border","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",l),...d,children:t})]})});g.displayName=i.UC.displayName;let N=e=>{let{className:a,...l}=e;return(0,s.jsx)("div",{className:(0,n.Q)("gap-s4 flex flex-col",a),...l})};N.displayName="DialogHeader";let y=e=>{let{className:a,layout:l="horizontal",...t}=e;return(0,s.jsx)("div",{className:(0,n.Q)("gap-s2 flex w-full","horizontal"===l?"flex-row":"flex-col",a),...t})};y.displayName="DialogFooter";let j=d.forwardRef((e,a)=>{let{className:l,showClose:t=!0,onClose:r,children:o,...d}=e;return(0,s.jsxs)("div",{className:"gap-s6 flex items-center justify-between",children:[(0,s.jsx)(i.hE,{ref:a,className:(0,n.Q)("text-t1 text-tm18 flex-1",l),...d,children:o}),t&&(0,s.jsx)(u,{className:"flex h-[22px] cursor-pointer items-center justify-center px-0 py-[2px] focus:outline-none",onClick:r,children:(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(c.U,{className:"text-t3 size-5"})})})]})});j.displayName=i.hE.displayName;let v=d.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,s.jsx)(i.VY,{ref:a,className:(0,n.Q)("text-t2 text-b14",l),...t})});v.displayName=i.VY.displayName;let b=(0,r.default)(()=>Promise.all([l.e(2243),l.e(3447)]).then(l.bind(l,33447)),{loadableGenerated:{webpack:()=>[33447]},ssr:!1}),w=e=>{let{trigger:a,defaultOpen:l,open:i,onOpenChange:r,title:c,description:f,showClose:p=!0,okText:w,cancelText:C,onOk:D,onCancel:k,okButtonProps:z,cancelButtonProps:E,footerLayout:F,footer:L=null,children:Q,onClose:O,className:R,hideHeader:$=!1,headerClassName:_,bodyClassName:I,footerClassName:P,preventOutsideClose:T=!1,preventEscapeClose:S=!1,variant:H="default",overlayClassName:B,onOpenAutoFocus:U}=e,A=(0,t.no)(),[J,V]=d.useState(!1);d.useEffect(()=>{V(!0)},[]);let[Y,G]=d.useState(null!=l&&l),K=void 0!==i,Z=K?i:Y,q=K?r:e=>{G(e),null==r||r(e)},M=F||(w&&C?"horizontal":"single"),W="vertical"===M?"vertical":"horizontal",X=!$&&(c||f||p),ee=(e,a,l,s,t)=>{let{className:i,onClick:r,variant:o,size:d,...c}=e||{};return{...c,variant:o||a,size:d||l,className:(0,n.Q)(s,i),onClick:((e,a)=>l=>{null==e||e(l),l.defaultPrevented||null==a||a()})(r,t)}};return"drawer"===H&&J&&A?(0,s.jsx)(b,{open:Z,onOpenChange:q,trigger:a,title:c,description:f,showClose:p,okText:w,cancelText:C,onOk:D,onCancel:k,okButtonProps:z,cancelButtonProps:E,footerLayout:F,footer:L,onClose:O,className:R,hideHeader:$,headerClassName:_,bodyClassName:I,footerClassName:P,dismissible:!T,overlayClassName:B,children:Q}):(0,s.jsxs)(x,{open:Z,onOpenChange:q,children:[a&&(0,s.jsx)(h,{asChild:!0,children:a}),(0,s.jsxs)(g,{"aria-describedby":f?"dialog-description":void 0,className:R,overlayClassName:B,onOpenAutoFocus:U,onInteractOutside:e=>{T&&e.preventDefault()},onPointerDownOutside:e=>{T&&e.preventDefault()},onEscapeKeyDown:e=>{S&&e.preventDefault()},children:[X?(0,s.jsxs)(N,{className:_,children:[(0,s.jsx)(j,{showClose:p,onClose:()=>{null==q||q(!1),null==O||O()},children:c}),f&&(0,s.jsx)(v,{children:f})]}
1):(0,s.jsx)(o.bL,{children:(0,s.jsx)(j,{showClose:p,children:c})}),Q&&(0,s.jsx)("div",{className:(0,n.Q)(X?"mt-s4":"mt-0",I),children:Q}),(()=>{if(!1===L)return null;let e=L;return L||(e=(0,s.jsx)(y,{layout:W,children:"single"===M?(0,s.jsx)(s.Fragment,{children:w?(0,s.jsx)(m.$,{...ee(z,"primary","m","w-full",D),children:w}):C?(0,s.jsx)(u,{asChild:!0,children:(0,s.jsx)(m.$,{...ee(E,"secondary","m","w-full",k),children:C})}):null}):"vertical"===M?(0,s.jsxs)(s.Fragment,{children:[w&&(0,s.jsx)(m.$,{...ee(z,"primary","l","h-11 w-full md:h-12",D),children:w}),C&&(0,s.jsx)(u,{asChild:!0,children:(0,s.jsx)(m.$,{...ee(E,"white","l","text-t3 h-11 w-full border-none md:h-12",k),children:C})})]}):(0,s.jsxs)(s.Fragment,{children:[C&&(0,s.jsx)(u,{asChild:!0,children:(0,s.jsx)(m.$,{...ee(E,"secondary","m","h-10 flex-1",k),children:C})}),w&&(0,s.jsx)(m.$,{...ee(z,"primary","m",C?"h-10 flex-1":"h-10 w-full",D),children:w})]})})),(0,s.jsx)("div",{className:(0,n.Q)("mt-s7",P),children:e})})()]})]})};w.displayName="Dialog"},92460:(e,a,l)=>{l.r(a),l.d(a,{default:()=>c});var s=l(79237),t=l(53951),n=l(70659),i=l(66960),r=l(83125),o=l(38113),d=l(25749);function c(){var e,a,l;let{$t:c}=(0,i.B)(),m=(0,d.N5)(),x=m.params,[h,f]=(0,o.useState)(!1);(0,o.useEffect)(()=>{m.visible&&f(!1)},[m.visible]);let u=async()=>{f(!0);try{var e;let a=await (null==x||null==(e=x.onConfirm)?void 0:e.call(x));!1!==a&&m.hideLayer()}finally{f(!1)}};return(0,s.jsx)(t.Dialog,{open:m.visible,onOpenChange:e=>{e||m.hideLayer()},title:c("Reset Demo Fund"),hideHeader:!0,showClose:!1,className:"md:!p-s6 !w-[420px] !max-w-[calc(100vw-64px)] !p-4 md:!max-w-[calc(100vw-32px)]",bodyClassName:"pb-0",footerClassName:"mt-s5",footer:(0,s.jsxs)("div",{className:"gap-s2 flex",children:[(0,s.jsx)(n.$,{variant:"secondary",className:"h-10 flex-1",onClick:()=>m.hideLayer(),children:c("Cancel")}),(0,s.jsx)(n.$,{className:"h-10 flex-1",loading:h,disabled:h,onClick:()=>void u(),children:c("Confirm")})]}),children:(0,s.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,s.jsx)(r.Image,{src:"https://cdn.tapbit.mobi/contract/simul/competition/reset-icon.png",alt:c("Reset Demo Fund"),width:76,height:76,dpi:3,className:"mt-s4 mb-s4 h-[76px] w-[76px]",unoptimized:!0}),(0,s.jsx)("div",{className:"text-b14 text-t1 mb-s3 font-medium",children:c("Reset Demo Fund")}),(0,s.jsx)("div",{className:"text-c12 text-t3 mb-s2 leading-5",children:c("After you reset your fund, the previous trading performance will not be considered valid for the event.")}),(0,s.jsx)("div",{className:"text-c12 text-t3 leading-5",children:(e=c("Each user has {0} chance to restart the event, remaining {1} chance."),a=null==x?void 0:x.resetNumLimit,l=null==x?void 0:x.resetNumLeft,e.replace("{0}",String(null!=a?a:"--")).replace("{1}",String(null!=l?l:"--")))})]})})}}}]);
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.