PageSourceSearch

http://thefightnation.com/_next/static/chunks/544.7975a48a1f26623b.js

js thefightnation.com collected 2026-10-03 18:03:30 UTC 63,458 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[544,124,434,1418],{46334:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 192 200"},e),n||(n=a.createElement("g",{filter:"url(#blur_corner_br_svg__a)"},a.createElement("path",{fill:"#FF3C00",fillOpacity:.1,d:"M350 200c0 82.843-67.157 150-150 150S50 282.843 50 200 117.157 50 200 50s150 67.157 150 150"}),a.createElement("path",{fill:"#FF4D00",fillOpacity:.15,d:"M300 200c0 55.228-44.772 100-100 100s-100-44.772-100-100 44.772-100 100-100 100 44.772 100 100"}),a.createElement("path",{fill:"#FF6A00",fillOpacity:.15,d:"M250 200c0 27.614-22.386 50-50 50s-50-22.386-50-50 22.386-50 50-50 50 22.386 50 50"}))),l||(l=a.createElement("defs",null,a.createElement("filter",{id:"blur_corner_br_svg__a",width:400,height:400,x:0,y:0,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_28751_1403",stdDeviation:25})))))},83687:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 250 250"},e),n||(n=a.createElement("g",{filter:"url(#blur_corner_tl_svg__a)"},a.createElement("path",{fill:"#FF3C00",fillOpacity:.1,d:"M150 0c0 82.843-67.157 150-150 150S-150 82.843-150 0-82.843-150 0-150 150-82.843 150 0"}),a.createElement("path",{fill:"#FF6A00",fillOpacity:.15,d:"M50 0c0 27.614-22.386 50-50 50S-50 27.614-50 0s22.386-50 50-50S50-27.614 50 0"}),a.createElement("path",{fill:"#FF4D00",fillOpacity:.15,d:"M100 0c0 55.229-44.771 100-100 100S-100 55.229-100 0-55.228-100 0-100 100-55.228 100 0"}))),l||(l=a.createElement("defs",null,a.createElement("filter",{id:"blur_corner_tl_svg__a",width:500,height:500,x:-250,y:-250,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_28751_1404",stdDeviation:50})))))},14507:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 12 12"},e),n||(n=a.createElement("g",{clipPath:"url(#icon_close1_svg__a)"},a.createElement("path",{d:"M11.266 9.866 7.4 6l3.866-3.866a.995.995 0 0 0 0-1.401.995.995 0 0 0-1.401 0L5.999 4.599 2.134.733a.995.995 0 0 0-1.401 0 .995.995 0 0 0 0 1.4L4.598 6 .733 9.866a.995.995 0 0 0 0 1.401.995.995 0 0 0 1.4 0L6 7.401l3.866 3.866a.995.995 0 0 0 1.4 0 .99.99 0 0 0 0-1.4"}))),l||(l=a.createElement("defs",null,a.createElement("clipPath",{id:"icon_close1_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 0h12v12H0z"})))))},47781:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),n||(n=a.createElement("path",{fill:"#B5B4AD",d:"M13.648 11a2.648 2.648 0 1 1-5.296 0 2.648 2.648 0 0 1 5.296 0"})),l||(l=a.createElement("path",{fill:"#B5B4AD",d:"M.815 11S4.879 4.992 11 4.992C17.12 4.992 21.185 11 21.185 11S17.121 17.008 11 17.008C4.88 17.008.815 11 .815 11M11 15.285a4.285 4.285 0 1 0 0-8.57 4.285 4.285 0 0 0 0 8.57"})))},21275:function(e,t,r){var n,l=r(4410);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>l.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),n||(n=l.createElement("path",{fill:"#B5B4AD",d:"M3.11 9.779v-.001l-1.165.804c.29.592.869 1.131 1.317 1.604L1.48 13.912a.365.365 0 0 0 .507.524l1.789-1.732c.803.772 1.69 1.459 2.656 2.005l-1.169 2.284a.363.363 0 1 0 .646.33l1.166-2.277c1.059.51 2.263.87 3.588.92v2.504a.361.361 0 0 0 .722 0v-2.507c1.303-.064 2.488-.43 3.53-.936l1.176 2.296a.363.363 0 0 0 .645-.33l-1.179-2.305a13.4 13.4 0 0 0 2.643-2.007l1.813 1.755a.365.365 0 0 0 .507-.524l-1.807-1.75c.47-.498.889-1.028 1.294-1.58l-1.165-.804a13.4 13.4 0 0 1-2.191 2.391c-1.415 1.215-3.37 2.37-5.675 2.37s-4.26-1.155-5.674-2.37A13.4 13.4 0 0 1 3.11 9.78"})))},43644:function(e,t,r){var n,l=r(4410);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>l.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),n||(n=l.createElement("path",{fillRule:"evenodd",d:"M10.15 14.46a.997.997 0 0 0 1.41-1.41L7.046 8.536a.593.593 0 0 1 0-.838l4.514-4.515a.997.997 0 1 0-1.41-1.41L5.217 6.707l-.362.362a1.48 1.48 0 0 0 0 2.095l.362.362z",clipRule:"evenodd"})))},15448:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 12 12"},e),n||(n=a.createElement("g",{clipPath:"url(#icon_close_svg__a)"},a.createElement("path",{d:"M11.266 9.866 7.4 6l3.866-3.866a.995.995 0 0 0 0-1.401.995.995 0 0 0-1.401 0L5.999 4.599 2.134.733a.995.995 0 0 0-1.401 0 .995.995 0 0 0 0 1.4L4.598 6 .733 9.866a.995.995 0 0 0 0 1.401.995.995 0 0 0 1.4 0L6 7.401l3.866 3.866a.995.995 0 0 0 1.4 0 .99.99 0 0 0 0-1.4"}))),l||(l=a.createElement("defs",null,a.createElement("clipPath",{id:"icon_close_svg__a"},a.createElement("path",{d:"M0 0h12v12H0z"})))))},94171:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 28 28"},e),n||(n=a.createElement("path",{d:"m13.482 21.778 7.612-7.824-7.612-7.823h5.87l7.611 7.823-7.612 7.824z"})),l||(l=a.createElement("path",{d:"m1.568 21.778 7.612-7.824-7.612-7.823h5.87l7.611 7.823-7.612 7.824z"})))},72863:function(e,t,r){var n,l=r(4410);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>l.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 14 14"},e),n||(n=l.createElement("path",{d:"M7 .519q1.344-.001 2.527.51 1.186.513 2.059 1.385a6.6 6.6 0 0 1 1.386 2.059A6.3 6.3 0 0 1 13.482 7a6.4 6.4 0 0 1-.511 2.527q-.509 1.185-1.385 2.059a6.6 6.6 0 0 1-2.059 1.386 6.25 6.25 0 0 1-2.527.51q-1.344 0-2.527-.51a6.5 6.5 0 0 1-2.059-1.386A6.6 6.6 0 0 1 1.03 9.527 6.3 6.3 0 0 1 .52 7q0-1.346.51-2.527a6.6 6.6 0 0 1 1.385-2.059A6.5 6.5 0 0 1 4.473 1.03Q5.656.52 7 .52m.001 1.037c-.761 0-1.464.144-2.12.425a5.5 5.5 0 0 0-1.733 1.165 5.6 5.6 0 0 0-1.167 1.738 5.3 5.3 0 0 0-.425 2.115c0 .762.144 1.465.425 2.118.29.673.68 1.248 1.166 1.735a5.5 5.5 0 0 0 1.736 1.168A5.3 5.3 0 0 0 7 12.444h.002a5.2 5.2 0 0 0 2.113-.424 5.6 5.6 0 0 0 1.739-1.17 5.45 5.45 0 0 0 1.59-3.852 5.2 5.2 0 0 0-.425-2.114 5.5 5.5 0 0 0-1.167-1.737 5.5 5.5 0 0 0-1.736-1.166 5.25 5.25 0 0 0-2.115-.425m-.033 7.713q.341-.002.575.234a.8.8 0 0 1 .234.576.78.78 0 0 1-.234.574.78.78 0 0 1-.575.236.79.79 0 0 1-.575-.235.77.77 0 0 1-.236-.575.8.8 0 0 1 .236-.575.79.79 0 0 1 .575-.235m-.019.779-.006.005-.006.007-.001.023v.015l.003.004.01.008a.1.1 0 0 0 .037 0L7 10.098 7 10.08q0-.017-.002-.02l-.007-.01-.004-.003-.016-.001zm.115-6.937q.908 0 1.573.487.664.486.664 1.393 0 .534-.243.915a5 5 0 0 1-.664.802s-.487.551-.617.81c-.13.26-.194.876-.194.876h-1.2q.001-.469.05-.778a1.4 1.4 0 0 1 .113-.405q.162-.324.875-.956.292-.243.486-.526.195-.285.195-.609a.9.9 0 0 0-.26-.623q-.258-.285-.778-.284-.582 0-.866.34-.18.216-.277.41a1.2 1.2 0 0 0-.088.223l-1.07-.422a2.6 2.6 0 0 1 .36-.695 2.7 2.7 0 0 1 .443-.471q.576-.486 1.498-.487"})))},15018:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),n||(n=a.createElement("g",{clipPath:"url(#icon_loading_svg__a)"},a.createElement("path",{fillOpacity:.3,fillRule:"evenodd",d:"M16.33 5.359a2.297 2.297 0 0 1 4.593 0 2.297 2.297 0 0 1-4.593 0",clipRule:"evenodd"}),a.createElement("path",{fillOpacity:.4,fillRule:"evenodd",d:"M19.407 12A2.297 2.297 0 0 1 24 12a2.297 2.297 0 0 1-4.593 0",clipRule:"evenodd"}),a.createElement("path",{fillOpacity:.5,fillRule:"evenodd",d:"M17.237 17.238a2.3 2.3 0 0 1 3.248 0 2.3 2.3 0 0 1 0 3.248 2.3 2.3 0 0 1-3.248 0 2.3 2.3 0 0 1 0-3.248",clipRule:"evenodd"}),a.createElement("path",{fillOpacity:.6,d:"M12 24a2.297 2.297 0 1 0 0-4.593A2.297 2.297 0 0 0 12 24"}),a.createElement("path",{fillOpacity:.7,fillRule:"evenodd",d:"M6.763 17.238a2.3 2.3 0 0 1 0 3.248 2.3 2.3 0 0 1-3.25 0 2.3 2.3 0 0 1 0-3.248 2.3 2.3 0 0 1 3.25 0",clipRule:"evenodd"}),a.createElement("path",{fillOpacity:.8,fillRule:"evenodd",d:"M4.593 12A2.297 2.297 0 0 1 0 12a2.297 2.297 0 0 1 4.593 0",clipRule:"evenodd"}),a.createElement("path",{fillOpacity:.9,fillRule:"evenodd",d:"M6.763 6.763a2.3 2.3 0 0 1-3.25 0 2.3 2.3 0 0 1 0-3.25 2.3 2.3 0 0 1 3.25 0 2.3 2.3 0 0 1 0 3.25",clipRule:"evenodd"}),a.createElement("path",{d:"M12 4.593A2.296 2.296 0 1 0 12 0a2.296 2.296 0 0 0 0 4.593"}))),l||(l=a.createElement("defs",null,a.createElement("clipPath",{id:"icon_loading_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))))},89322:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},e),n||(n=a.createElement("g",{clipPath:"url(#icon_warn_svg__a)"},a.createElement("path",{fill:"#FF891A",d:"M.444 6a5.556 5.556 0 1 1 11.112 0A5.556 5.556 0 0 1 .444 6"}),a.createElement("path",{fill:"#22211F",fillRule:"evenodd",d:"M6 2.667c.46 0 .833.373.833.833V6a.833.833 0 1 1-1.667 0V3.5c0-.46.373-.833.833-.833m0 5a.833.833 0 1 0 0 1.666h.006a.833.833 0 1 0 0-1.666z",clipRule:"evenodd"}))),l||(l=a.createElement("defs",null,a.createElement("clipPath",{id:"icon_warn_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 0h12v12H0z"})))))},54028:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:140,height:140,fill:"none"},e),n||(n=a.createElement("path",{fill:"url(#yellow_blur_corner_br_svg__a)",d:"M140 280c77.32 0 140-62.68 140-140S217.32 0 140 0 0 62.68 0 140s62.68 140 140 140"})),l||(l=a.createElement("defs",null,a.createElement("radialGradient",{id:"yellow_blur_corner_br_svg__a",cx:0,cy:0,r:1,gradientTransform:"rotate(90 0 140)scale(140)",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFD400",stopOpacity:.4}),a.createElement("stop",{offset:.4,stopColor:"#FFB500",stopOpacity:.15}),a.createElement("stop",{offset:1,stopColor:"#FF9500",stopOpacity:0})))))},91824:function(e,t,r){var n,l,a=r(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:140,height:140,fill:"none"},e),n||(n=a.createElement("path",{fill:"url(#yellow_blur_corner_tl_svg__a)",d:"M140 0c0 77.32-62.68 140-140 140S-140 77.32-140 0-77.32-140 0-140 140-77.32 140 0"})),l||(l=a.createElement("defs",null,a.createElement("radialGradient",{id:"yellow_blur_corner_tl_svg__a",cx:0,cy:0,r:1,gradientTransform:"rotate(90)scale(140)",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFD400",stopOpacity:.4}),a.createElement("stop",{offset:.4,stopColor:"#FFB500",stopOpacity:.15}),a.createElement("stop",{offset:1,stopColor:"#FF9500",stopOpacity:0})))))},61097:function(e,t,r){r.d(t,{BD:function(){return x},Gv:function(){return E},Jf:function(){return j},cs:function(){return g},e7:function(){return m},fU:function(){return c},hU:function(){return p},jV:function(){return u},n7:function(){return d},s3:function(){return y},ty:function(){return f}});
1var n=r(42848),l=r(53498),a=r(66401),s=r(60653),i=r(44833),o=r(89804);r(71410);let c=async(e,t)=>{try{return await (0,a.ZP)("GET","user/v2/order/status",e)}catch(e){console.log("error :",e),(0,s.Eo)(e)}},d=async(e,t)=>{try{let r=await (0,a.ZP)("POST","user/v1/info/check/payout/account",e);return r&&0==r.result&&t&&t(r),r}catch(e){console.log("error :",e),(0,s.Eo)(e)}};async function u(e,t){let r=i.qM.safeParse({phone:t.get("phone")});return r.success?f(Object.fromEntries(t)):{error:r.error.flatten().fieldErrors}}async function f(e){try{let t={phone:(0,l.Hc)((null==e?void 0:e.phoneCode)||o.gJ,e.phone),timestamp:(0,n.yi)(),web:!0};return await (0,a.ZP)("POST","user/v1/user/getBindPhoneOtpSigned",t,{needSign:!0})}catch(e){return console.log(e,"error"),{error:e}}}async function m(e,t){let r=i.nI.safeParse({email:t.get("email")});return r.success?p(Object.fromEntries(t)):{error:r.error.flatten().fieldErrors}}async function p(e){try{let t={email:e.email,timestamp:(0,n.yi)(),web:!0,act:"BIND"},r=await (0,a.ZP)("POST","user/v2/user/email/otp",t,{needSign:!0});if(r)return r;return{error:null==r?void 0:r.message}}catch(e){return console.log(e,"error"),{}}}async function x(e,t){let r=i.rW.safeParse({otp:t.get("otp")});if(!r.success)return{error:r.error.flatten().fieldErrors};let n=Object.fromEntries(t);try{var a=await h((0,l.Hc)((null==n?void 0:n.phoneCode)||o.gJ,n.phone),n.otp);if(a)return a;return{error:null==a?void 0:a.message}}catch(e){if(e instanceof Error)return{error:{serverError:e.message}};return{error:{serverError:"Caught an unknown error:"}}}}async function h(e,t){var r={phone:e,otp:t,timestamp:(0,n.yi)()};return await (0,a.ZQ)("POST","user/v1/user/bindPhoneByOTPSigned",r)}async function g(e,t){let r=i.rW.safeParse({otp:t.get("otp")});if(!r.success)return{error:r.error.flatten().fieldErrors};let n=Object.fromEntries(t);try{var l=await v(n.email,n.otp);if(l)return l;return{error:null==l?void 0:l.message}}catch(e){if(e instanceof Error)return{error:{serverError:e.message}};return{error:{serverError:"Caught an unknown error:"}}}}async function v(e,t){var r={email:e,otp:t,timestamp:(0,n.yi)()};return await (0,a.ZQ)("POST","user/v1/user/email/bind",r)}async function j(e){let t={...e};return await (0,a.ZP)("POST","user/v1/info/save/payout/account",t)}async function y(e){let t={appId:"tpgo",channelId:(0,l.G1)(),description:"webPayout",pmId:"pix.cpf",...e};return await (0,a.ZP)("POST","user/v3/order/web/payout",t)}async function E(e){let t={appId:"tpgo",channelId:(0,l.G1)(),description:"webPayout",pmId:"pix.cpf",...e};return await (0,a.ZP)("POST","user/v1/w/agent/web/payout",t)}},68125:function(e,t,r){r.d(t,{Z:function(){return d}});var n=r(57437),l=r(21222),a=r(45816),s=r(31725),i=r(18087),o=r(80752),c=r(8590);function d(e){let{open:t,onOpenChange:r,btnClick:d,onClose:u,dialogTitle:f="",dialogDescription:m="",hideFooterBtn:p=!1,hasCloseIcon:x=!1,hasDialogHeader:h=!0,footerBoxClsName:g="",children:v,submitText:j="",submitClsName:y="",contentClsName:E="",titleClsName:N="",overlayZIndex:b="z-50",disablePortal:_=!1,hasCornerBlur:w=!0}=e,I=(0,i.useTranslations)();return(0,n.jsx)("div",{className:"px-40 container mx-auto",children:(0,n.jsx)(l.Vq,{open:t,onOpenChange:r,children:(0,n.jsxs)(l.cZ,{onOpenAutoFocus:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),hasCloseIcon:x,className:`${(0,a.cn)("",E)}`,style:{maxWidth:(0,a.Q1)(382)},onInteractOutside:e=>e.preventDefault(),overlayZIndex:b,disablePortal:_,children:[w&&(0,n.jsx)(o.Z,{theme:"yellow"}),h&&(0,n.jsxs)(l.fK,{className:"flex-row",children:[(0,n.jsx)(l.$N,{className:(0,a.cn)("flex flex-1",N),children:f}),m&&(0,n.jsx)(l.Be,{children:m}),!m&&(0,n.jsx)(s.fC,{children:(0,n.jsx)(l.Be,{})})]}),!h&&(0,n.jsx)(s.fC,{children:(0,n.jsx)(l.$N,{})}),v,!p&&(0,n.jsx)(l.cN,{className:(0,a.cn)("z-50",g),children:(0,n.jsx)(c.Z,{onClick:()=>d&&d()||r&&r(!1),className:(0,a.cn)("w-full h-14 rounded-lg",y),children:j||I("SUBMIT")})})]})})})}},81785:function(e,t,r){var n=r(57437);r(2265);var l=r(79522),a=r(45816);let s={warn:"/images/dialog_warn.png"};t.Z=e=>{let{variant:t="warn",width:r,height:i,className:o}=e,c=s[t];return(0,n.jsx)(l.default,{src:c,alt:`${t} icon`,width:r||90,height:i||90,className:(0,a.cn)("w-[5.625rem] h-[5.625rem] absolute left-1/2 -top-[4.25rem] -translate-x-1/2 ",o)})}},16307:function(e,t,r){r.d(t,{s:function(){return i}});var n=r(57437),l=r(68125),a=r(18087),s=r(81785);let i=e=>{let{open:t,onOpenChange:r,confirmBtnOnClick:i,tipText:o="VERIFICATION_CODE_HAS_EXPIRED_PLEASE_RE_VERIFY",submitText:c="CONFIRM"}=e,d=(0,a.useTranslations)();return(0,n.jsx)(l.Z,{open:t,onOpenChange:r,btnClick:i,submitText:d(c),contentClsName:"gap-0 bg-square_bg",submitClsName:"text-secondary",dialogTitle:"",hasDialogHeader:!1,overlayZIndex:"z-[60]",children:(0,n.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,n.jsx)(s.Z,{variant:"warn"}),(0,n.jsx)("span",{className:"mt-7 mb-6 text-primary1 whitespace-pre-line text-center ",children:d(o)})]})})}},17528:function(e,t,r){r.r(t);var n=r(57437),l=r(68125),a=r(2265),s=r(42848),i=r(18087),o=r(79522),c=r(81785);t.default=e=>{var t,r,d;let{open:u,onOpenChange:f,confirmBtnOnClick:m,submitText:p="",expires:x,children:h}=e,g=(0,a.useRef)(null),v=null,j=(0,i.useTranslations)(),[y,E]=(0,a.useState)(),[N,b]=(0,a.useState)(new Date().getTime()),_=(0,a.useRef)(),w=(0,a.useRef)();""==p&&(p=j("CONFIRM")),(0,a.useEffect)(()=>(clearInterval(g.current),g.current=setInterval(()=>{E(e=>e-1e3)},1e3),()=>{clearInterval(g.current)}),[x]),(0,a.useEffect)(()=>{x&&(E(x),b(new Date().getTime()))},[x]),(0,a.useEffect)(()=>{y+N<=new Date().getTime()&&g&&clearInterval(g)},[y]),(0,a.useEffect)(()=>{let e=function(){if("hidden"===document.visibilityState)clearInterval(g),_.current=(0,s.eq)(),w.current=y;else{let e=(0,s.eq)()-_.current;w.current-e>
10?(E(w.current-e),v=setInterval(function(){E(e=>e-1e3)},1e3)):E(0)}};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e),clearInterval(v)}},[y]);let I="border border-primary1 text-[2rem] bg-bg2  rounded-lg flex items-center justify-center w-16 h-[3.625rem]";return(0,n.jsxs)(l.Z,{open:u,onOpenChange:f,btnClick:m,submitText:p,contentClsName:"gap-0 bg-square_bg",submitClsName:"h-12",dialogTitle:"",hasDialogHeader:!1,children:[(0,n.jsxs)("div",{className:"relative flex flex-col items-center justify-center pt-4 text-primary1 text-sm",children:[(0,n.jsx)(c.Z,{variant:"warn"}),(0,n.jsxs)("div",{className:"my-2  text-center",children:[(0,n.jsx)("p",{className:"",children:j("ONLY_THREE_VERIFICATION_CODES_CAN_BE_SENT")}),(0,n.jsx)("p",{className:"",children:j("THE_VERIFICATION_CODE_CAN_BE_SENT_AGAIN_AT")})]})]}),(0,n.jsxs)("div",{className:"text-center text-primary1 mb-6 flex justify-center items-center",children:[(0,n.jsx)("span",{className:I,children:null===(t=(0,s.SD)(y))||void 0===t?void 0:t.hourText}),(0,n.jsx)("div",{className:"mx-2.5 flex justify-center items-center w-1.5 h-6",children:(0,n.jsx)(o.default,{src:"/images/send_num_icon.svg",alt:"",width:6,height:24})}),(0,n.jsx)("span",{className:I,children:null===(r=(0,s.SD)(y))||void 0===r?void 0:r.minText}),(0,n.jsx)("div",{className:"mx-2.5 flex justify-center items-center w-1.5 h-6",children:(0,n.jsx)(o.default,{src:"/images/send_num_icon.svg",alt:"",width:6,height:24})}),(0,n.jsx)("span",{className:I,children:null===(d=(0,s.SD)(y))||void 0===d?void 0:d.secText})]})]})}},37118:function(e,t,r){r.d(t,{Z:function(){return N}});var n=r(57437),l=r(2265),a=r(93770),s=r(54887),i=r(36661),o=r(39343),c=r(83102),d=r(16463),u=r(60653),f=r(43572),m=r(78174),p=r(61097),x=r(18087),h=r(80804),g=r(13231);function v(e){var t;let{setPhoneOtpOpen:r,setIsPhoneOtp:v,setSendNumLimitOpen:j,setSendNumLimitExpires:y,setPhone:E}=e,N=(0,x.useTranslations)(),[b,_]=(0,l.useState)(""),{userData:w}=(0,h.J)();(0,d.useRouter)(),(0,a.TL)();let[I,O]=(0,l.useState)(!1),[C,R]=(0,s.useFormState)(p.jV,{error:{}},b),T=(0,o.cI)({defaultValues:{phone:"",serverError:""}}),D=null==T?void 0:T.watch(),F=null==T?void 0:null===(t=T.formState)||void 0===t?void 0:t.errors;(0,f.Z)({state:C,form:T,t:N,successCallback:()=>{v(!0),E(T.getValues("phone")),r(!0)},errorCallback:e=>{(null==e?void 0:e.result)===21010305?(y&&y(e.message),j&&j(!0)):(null==e?void 0:e.result)===21010106?((0,u.Eo)(N(null==e?void 0:e.message)),T.setError("phone",{type:"manual",message:""})):(null==e?void 0:e.message)&&(0,u.Eo)(null==e?void 0:e.message)},showErrorMsg:!1}),(0,l.useEffect)(()=>{D.phone?O(!1):O(!0)},[D]),(0,l.useEffect)(()=>{(null==w?void 0:w.phone)&&T.setValue("phone",null==w?void 0:w.phone.substring(2))},[null==w?void 0:w.phone]);let A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"phone";T.clearErrors(e)},S=e=>{let t=e.target.value;/[\x20-\x7E\d\w]*$/.test(t)&&t.length<=20&&T.setValue("phone",e.target.value)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex flex-col flex-1",children:(0,n.jsx)(i.l0,{...T,children:(0,n.jsx)("form",{action:R,autoComplete:"off",role:"presentation",children:(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)(i.Wi,{control:T.control,name:"serverError",render:e=>{let{field:t}=e;return(0,n.jsx)(i.zG,{})}}),(0,n.jsx)(i.Wi,{control:T.control,name:"phone",render:e=>{let{field:t}=e;return(0,n.jsx)("div",{className:"grid ",children:(0,n.jsxs)(i.xJ,{onBlur:()=>A("phone"),className:"space-y-0",children:[(0,n.jsx)(i.NI,{children:(0,n.jsx)(c.I,{type:"country",disabled:(null==w?void 0:w.phone)!=null,className:`${(null==F?void 0:F.phone)?"border-danger":""} bg-bg1`,required:!0,...t,onChange:S,endIconNode:(null==w?void 0:w.phone)?(0,n.jsxs)("span",{className:"flex items-center  text-sm text-secondary1 gap-1 pr-3",children:[(0,n.jsx)(g.Z,{width:16,height:16,className:"text-secondary1"}),N("VERIFIED")]}):(0,n.jsx)(m.Z,{text:N("SUBMIT"),className:" h-10 w-20 text-secondary",disabled:I})})}),(0,n.jsx)(i.zG,{})]})})}})]})})})})})}function j(e){var t;let{setEmail:r,setPhoneOtpOpen:a,setSendNumLimitOpen:d,setSendNumLimitExpires:v,setIsPhoneOtp:j}=e,y=(0,x.useTranslations)(),[E,N]=(0,l.useState)(""),{userData:b}=(0,h.J)(),[_,w]=(0,l.useState)(!1),[I,O]=(0,s.useFormState)(p.e7,{error:{}},E),C=(0,o.cI)({defaultValues:{email:"",serverError:""}}),R=null==C?void 0:C.watch(),T=null==C?void 0:null===(t=C.formState)||void 0===t?void 0:t.errors;(0,f.Z)({state:I,form:C,t:y,successCallback:()=>{r(C.getValues("email")),j(!1),a(!0)},errorCallback:e=>{(null==e?void 0:e.result)===21010305?(v&&v(y(e.message)),d&&d(!0)):(null==e?void 0:e.message)&&(0,u.Eo)(y(e.message))},showErrorMsg:!1}),(0,l.useEffect)(()=>{R.email?w(!1):w(!0)},[R]),(0,l.useEffect)(()=>{(null==b?void 0:b.bindEmail)&&C.setValue("email",null==b?void 0:b.bindEmail)},[null==b?void 0:b.bindEmail]);let D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"email";C.clearErrors(e)},F=e=>{let t=e.target.value;/[\x20-\x7E\d\w]*$/.test(t)&&C.setValue("email",e.target.value)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex flex-col flex-1",children:(0,n.jsx)(i.l0,{...C,children:(0,n.jsx)("form",{action:O,autoComplete:"off",role:"presentation",children:(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)(i.Wi,{control:C.control,name:"serverError",render:e=>{let{field:t}=e;return(0,n.jsx)(i.zG,{})}}),(0,n.jsx)(i.Wi,{control:C.control,name:"email",render:e=>{let{field:t}=e;return(0,n.jsx)("div",{className:"grid ",children:(0,n.jsxs)(i.xJ,{onBlur:()=>D("email"),className:"space-y-0",children:[(0,n.jsx)(i.NI,{children:(0,n.jsx)(c.I,{type:"text",disabled:(null==b?void 0:b.bindEmail)!=null,placeholder:y("ENTER_EMAIL"),className:`${(null==T?void 0:T.email)?"border-danger":""} bg-bg1`,required:!0,...t,onChange:F,endIconNode:(null==b?void 0:b.bindEmail)?(0,n.jsxs)("span",{className:"flex items-center  text-sm text-secondary1 gap-1 ",children:[(0,n.jsx)(g.Z,{width:16,height:16,className:"text-secondary1"}),y("VERIFIED")]}):(0,n.jsx)(m.Z,{text:y("SUBMIT"),className:" w-20 h-10 text-secondary  translate-x-3 ",disabled:_})})}),(0,n.jsx)(i.zG,{})]})})}})]})})})})})}var y=r(58066),E=r(14292);function N(e){let{setPhoneOtpOpen:t,setIsPhoneOtp:r,setEmail:s,isPhoneOtp:i,setSendNumLimitOpen:o,setSendNumLimitExpires:c,setPhone:d,needBindPhone:u=!0,needBindEmail:f=!0}=e,m=(0,x.useTranslations)(),{hasBindPhone:p,hasBindEmail:h}=(0,a.CG)(e=>e.wallet),{getProfileInfo:g}=(0,E.Z)(!1);return(0,a.TL)(),(0,l.useEffect)(()=>{(p||h)&&(t(!1),g())},[p,h]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-center flex-col flex-1  space-y-4",children:[u&&(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[(0,n.jsx)(y.default,{src:"/images/account_phone.svg",decoding:"async",loading:"lazy",alt:"brazil",className:"",width:18,height:18}),(0,n.jsx)("span",{className:"text-sm text-image2 font-ali",children:m("PHONE_VERIFICATION")})]}),(0,n.jsx)("div",{className:"flex",children:(0,n.jsx)(v,{setPhoneOtpOpen:t,setSendNumLimitOpen:o,setIsPhoneOtp:r,setPhone:d,setSendNumLimitExpires:c})})]}),f&&(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("div",{className:"flex space-x-2 items-center mb-2",children:[(0,n.jsx)(y.default,{src:"/images/account_email.svg",decoding:"async",loading:"lazy",alt:"brazil",className:"",width:18,height:18}),(0,n.jsx)("span",{className:"text-sm text-image2 font-ali",children:m("EMAIL_VERIFICATION")})]}),(0,n.jsx)("div",{className:"flex",children:(0,n.jsx)(j,{setPhoneOtpOpen:t,setSendNumLimitOpen:o,setIsPhoneOtp:r,setEmail:s,setSendNumLimitExpires:c})}),(0,n.jsx)("span",{className:"text-sm text-image2 mt-2 font-ali w-full text-left",children:m("EMAIL_INPUT_FORMAT_EXAMPLE_JACKWAN_GMIL_COM")})]})]})})}},63360:function(e,t,r){r.d(t,{Z:function(){return c}});var n=r(57437),l=r(18087),a=r(19573),s=r(16463),i=r(2265),o=r(72863);function c(){let e=(0,l.useTranslations)();(0,s.useRouter)();let[t,r]=(0,i.useState)(!1),c=e("NETWORK_FEE");return(0,n.jsxs)(a.J2,{open:t,onOpenChange:r,children:[(0,n.jsx)(a.xo,{children:(0,n.jsx)(o.Z,{width:16,height:16,className:"h-4 w-4 text-image2"})}),(0,n.jsxs)(a.yk,{side:"top",sideOffset:12,className:"ml-2.5",children:[(0,n.jsx)(a.QH,{className:"fill-[#363C49]"}),(0,n.jsxs)("div",{className:" flex flex-col  justify-center font-ali-med space-y-2 w-[22.375rem] mr-10 rounded-lg bg-[#363C49] p-3 ",children:[(0,n.jsx)("span",{className:"text-primary ",children:c}),(0,n.jsx)("div",{className:"flex pl-5",children:(0,n.jsx)("ol",{className:" list-disc list-outside  font-ali text-start space-y-2 ",children:["THE_WITHDRAWAL_FEE_IS_CHARGED_BY_THE_PAYMENT_PROVIDER","THE_WITHDRAWAL_FEE_AMOUNT_=_THE_WITHDRAWAL_AMOUNT_YOU_REQUESTED_*_THE_WITHDRAWAL_FEE_RATE","THE_WITHDRAWAL_FEE_WILL_BE_DEDUCTED_FROM_THE_REQUESTED_WITHDRAWAL_AMOUNT_TO_AVOID_WITHDRAWAL_FAILURE_DUE_TO_INSUFFICIENT_FEES"].map((t,r)=>(0,n.jsx)("li",{children:(0,n.jsx)("span",{className:"-ml-1 flex justify-start",children:e(t)})},r))})})]})]})]})}},18326:function(e,t,r){r.d(t,{Z:function(){return j}});var n=r(57437),l=r(54887),a=r(36661),s=r(2265),i=r(42848),o=r(50683),c=r(39343),d=r(16463),u=r(93770),f=r(60653),m=r(94268),p=r(64019),x=r(61097),h=r(82671),g=r(89804),v=r(18087);function j(e){let{setValidCodePass:t,validCodePass:r,otpExpired:j,email:y,setCodeExpiredDialog:E,setSendNumLimitExpires:N,setSendNumLimitOpen:b}=e,_=(0,v.useTranslations)();(0,d.useRouter)();
1let w=(0,u.TL)(),[I,O]=(0,s.useState)(!1),[C,R]=(0,s.useState)(!0),[T,D]=(0,s.useState)(g.nB),[F,A]=(0,s.useState)(new Date().getTime()),[S,M]=(0,l.useFormState)(x.cs,{error:{}}),P=(0,s.useRef)(null),Z=(0,c.cI)({defaultValues:{otp:"",serverError:""}}),V=null==Z?void 0:Z.watch(),L=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!0===C)return A((0,i.eq)()),clearInterval(L.current),L.current=setInterval(()=>{D(e=>e-1)},1e3),()=>{clearInterval(L.current)}},[C]),(0,s.useEffect)(()=>{if(T<=0){R(!1);return}return L.current=setInterval(()=>{D(e=>e<=1?(clearInterval(L.current),R(!1),0):e-1)},1e3),()=>{L.current&&clearInterval(L.current)}},[T]),(0,s.useEffect)(()=>{(0,f.XA)(_("VERIFICATION_CODE_SEND"))},[]),(0,s.useEffect)(()=>{j&&W()},[j]),(0,s.useEffect)(()=>{if(Z.clearErrors(),S&&(null==S?void 0:S.result)==g.Sj){E&&E(!0);return}if(S&&S.result==g.e_){(0,f.Eo)(_("VERIFICATION_CODE_ERROR")),t&&t(!1),Z.resetField("otp"),O(!0);return}S&&S.data&&((0,f.XA)(_("EMAIL_VERIFICATION_COMPLETED")),t&&t(!0),w((0,h.Im)(!0))),S&&S.errorMessage&&((0,f.Eo)(S.errorMessage),t&&t(!1),Z.resetField("otp")),S&&S.error&&Object.keys(S.error).length>0&&(0,o.t)(S.error,Z.setError)},[S,Z,w]),(0,s.useEffect)(()=>{let e=V.otp;if(e&&O(!1),(null==e?void 0:e.length)==6){var t;null==P||null===(t=P.current)||void 0===t||t.blur();let r=new FormData;r.append("otp",e),r.append("email",y),M(r)}},[Z,V.otp]);let W=async()=>{(0,f.XA)(_("VERIFICATION_CODE_SEND")),D(g.nB),Z.resetField("otp"),t&&t(!1),O(!1);let e=await (0,x.hU)({email:y});if(e&&(null==e?void 0:e.result)===21010305){N&&N(null==e?void 0:e.message),b&&b(!0),w((0,p.DY)(""));return}R(!0),A(""),e&&e.errorMessage&&((0,f.Eo)(e.errorMessage),O(!0)),w((0,p.DY)(""))},B=(I?"border-danger ":"")+" w-12 h-12";return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-4 pt-2",children:[(0,n.jsx)(a.l0,{...Z,children:(0,n.jsx)("form",{onSubmit:Z.handleSubmit(e=>{M(e)}),children:(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)(a.Wi,{control:Z.control,name:"serverError",render:e=>{let{field:t}=e;return(0,n.jsx)(a.zG,{})}}),(0,n.jsx)(a.Wi,{control:Z.control,name:"otp",render:e=>{let{field:t}=e;return(0,n.jsx)("div",{className:"grid ",children:(0,n.jsxs)(a.xJ,{className:" space-y-2",children:[(0,n.jsx)(a.lX,{className:"text-lightgray font-ali",children:_("ENTER_CONFIRMATION_CODE")}),(0,n.jsx)(a.NI,{ref:P,children:(0,n.jsxs)(m.Zn,{maxLength:6,...t,children:[(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:0,className:B})}),(0,n.jsx)(m.hf,{className:"bg-secondary ",children:(0,n.jsx)(m.cY,{index:1,className:B})}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:2,className:B})}),(0,n.jsx)(m.aM,{}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:3,className:B})}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:4,className:B})}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:5,className:B})})]})}),(0,n.jsx)(a.zG,{})]})})}})]})})}),r?(0,n.jsx)(n.Fragment,{}):C?(0,n.jsxs)("div",{className:"inline-block text-sm",children:[(0,n.jsxs)("span",{className:"text-lightgray  font-ali",children:[_("CODE_VALIDITY_TIME"),": "]}),(0,n.jsxs)("span",{className:"text-primary",children:[T,"s"]})]}):(0,n.jsx)("span",{onClick:W,className:" underline text-primary w-fit text-sm",children:_("SEND_VERIFICATION_CODE_AGAIN")}),(0,n.jsxs)("div",{className:"flex w-full flex-col rounded-lg border border-secondary1 bg-secondary3 p-3 font-ali text-xs text-image1",children:[(0,n.jsx)("span",{children:_("THE_VERIFICATION_EMAIL_MIGHT_BE_IN_THE_SPAM_FOLDER")}),(0,n.jsx)("span",{children:_("IT_IS_RECOMMENDED_TO_MARK_THE_EMAIL_AS_NOT_SPAM_TO_AVOID_MISSING_IMPORTANT_DEPOSIT_AND_WITHDRAWAL_NOTIFICATIONS")})]})]})})}},2319:function(e,t,r){r.d(t,{Z:function(){return j}});var n=r(57437),l=r(54887),a=r(36661),s=r(2265),i=r(42848),o=r(50683),c=r(39343),d=r(16463),u=r(93770),f=r(60653),m=r(94268),p=r(64019),x=r(61097),h=r(82671),g=r(89804),v=r(18087);function j(e){let{setCodeExpiredDialog:t,setValidCodePass:r,validCodePass:j,otpExpired:y,phone:E,setOtpExpired:N,setSendNumLimitExpires:b,setSendNumLimitOpen:_}=e,w=(0,v.useTranslations)();(0,d.useRouter)();
1let I=(0,u.TL)(),[O,C]=(0,s.useState)(!1),[R,T]=(0,s.useState)(!0),[D,F]=(0,s.useState)(g.nB),[A,S]=(0,s.useState)((0,i.eq)()),[M,P]=(0,l.useFormState)(x.BD,{error:{}}),Z=(0,s.useRef)(null),V=(0,c.cI)({defaultValues:{otp:"",serverError:""}}),L=null==V?void 0:V.watch(),W=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!0===R)return S((0,i.eq)()),clearInterval(W.current),W.current=setInterval(()=>{F(e=>e-1)},1e3),()=>{clearInterval(W.current)}},[R]),(0,s.useEffect)(()=>{A&&A+1e3*g.nB<=new Date().getTime()&&R&&(T(!1),clearInterval(W.current))},[A,D,R]),(0,s.useEffect)(()=>{(0,f.XA)(w("VERIFICATION_CODE_SEND"))},[]),(0,s.useEffect)(()=>{y&&B()},[y]),(0,s.useEffect)(()=>{if(V.clearErrors(),M&&(null==M?void 0:M.result)==g.Sj){t&&t(!0);return}if(M&&M.result==g.e_){(0,f.Eo)(w("VERIFICATION_CODE_ERROR")),r&&r(!1),V.resetField("otp"),C(!0);return}M&&M.data&&((0,f.XA)(w("PHONE_VERIFICATION_COMPLETED")),r&&r(!0),I((0,h.Fv)(!0))),M&&M.errorMessage&&((0,f.Eo)(M.errorMessage),r&&r(!1),V.resetField("otp")),M&&M.error&&Object.keys(M.error).length>0&&(0,o.t)(M.error,V.setError)},[M,V,I,r]),(0,s.useEffect)(()=>{let e=L.otp;if(e&&C(!1),(null==e?void 0:e.length)==6){var t;null==Z||null===(t=Z.current)||void 0===t||t.blur();let r=new FormData;r.append("otp",e),r.append("phone",E),P(r)}},[V,L.otp]);let B=async()=>{(0,f.XA)(w("VERIFICATION_CODE_SEND"));let e=await (0,x.ty)({phone:E});if(e&&(null==e?void 0:e.result)===21010305){b&&b(null==e?void 0:e.message),_&&_(!0),I((0,p.DY)(""));return}T(!0),S(""),N(!1),F(g.nB),V.resetField("otp"),r&&r(!1),C(!1),e&&e.errorMessage&&((0,f.Eo)(e.errorMessage),C(!0)),I((0,p.DY)(""))},k=(O?"border-danger ":"")+" w-12 h-12";return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-4 pt-2 ",children:[(0,n.jsx)(a.l0,{...V,children:(0,n.jsx)("form",{onSubmit:V.handleSubmit(e=>{P(e)}),children:(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)(a.Wi,{control:V.control,name:"serverError",render:e=>{let{field:t}=e;return(0,n.jsx)(a.zG,{})}}),(0,n.jsx)(a.Wi,{control:V.control,name:"otp",render:e=>{let{field:t}=e;return(0,n.jsx)("div",{className:"grid ",children:(0,n.jsxs)(a.xJ,{className:" space-y-2",children:[(0,n.jsx)(a.lX,{className:"text-lightgray font-ali",children:w("ENTER_CONFIRMATION_CODE")}),(0,n.jsx)(a.NI,{ref:Z,children:(0,n.jsxs)(m.Zn,{maxLength:6,...t,children:[(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:0,className:k})}),(0,n.jsx)(m.hf,{className:"bg-secondary ",children:(0,n.jsx)(m.cY,{index:1,className:k})}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:2,className:k})}),(0,n.jsx)(m.aM,{}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:3,className:k})}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:4,className:k})}),(0,n.jsx)(m.hf,{className:"bg-secondary",children:(0,n.jsx)(m.cY,{index:5,className:k})})]})}),(0,n.jsx)(a.zG,{})]})})}})]})})}),j?(0,n.jsx)(n.Fragment,{}):R?(0,n.jsxs)("div",{className:"inline-block text-sm ",children:[(0,n.jsxs)("span",{className:"text-lightgray  font-ali",children:[w("CODE_VALIDITY_TIME"),": "]}),(0,n.jsxs)("span",{className:"text-primary",children:[D,"s"]})]}):(0,n.jsx)("span",{onClick:B,className:" underline text-primary w-fit text-sm",children:w("SEND_VERIFICATION_CODE_AGAIN")})]})})}},1418:function(e,t,r){r.r(t),r.d(t,{default:function(){return u}});var n=r(57437),l=r(45816),a=r(1339);r(2265);var s=r(93770),i=r(82671),o=r(79522),c=r(89804),d=r(18087);function u(e){let{withdrawList:t,withdrawMethodSelectIdx:r,inviteWithdrawAmountSelectIdx:u}=e;(0,d.useTranslations)();let f=(0,s.TL)(),m=t&&t[r],p=m&&(0,a.ne)(m.amountList)||{},x=p?Object.keys(p):[],h=p?Object.values(p):[],g=m?x.filter(e=>Number(e)<=Number(m.maxLimit)):[],v=e=>{f((0,i.u)(e))};return(0,n.jsx)("div",{className:"flex flex-col pt-4",children:(0,n.jsx)("div",{className:"flex flex-wrap",children:g.length>0&&g.map((e,t)=>{var r;let a=t===u,s=(t+1)%3==0||t===g.length-1,i=((null==m?void 0:null===(r=m.hotAmounts)||void 0===r?void 0:r.split(","))||[]).includes(parseInt(e)+"");return(0,n.jsxs)("div",{className:`${a?"text-white":"text-lightgray"} ${s?"mr-0":"mr-3"} relative mb-2 flex h-14 flex-col items-center justify-center rounded-lg bg-gray313 text-sm`,style:{flex:`0 0 calc((100% - ${(0,l.Q1)(24)})/3)`},onClick:()=>v(t),children:[i&&(0,n.jsx)(o.default,{src:"/images/hot_game.svg",decoding:"async",loading:"lazy",alt:"Hot",className:"absolute left-0 top-0",width:36,height:36}),(0,n.jsxs)("span",{className:"text-sm",children:[parseInt(e,10)," ",c.ce]}),Number(h[t])>0&&(0,n.jsxs)("span",{className:"text-sm text-primary",children:["+",c.Y5,(0,n.jsx)("span",{className:"ml-1",children:parseInt(h[t],10)})]}),a&&(0,n.jsx)(o.default,{src:"/images/money_select.png",alt:"activity_bg",className:"absolute bottom-0 right-0 h-5 w-5",width:20,height:20}),a&&(0,n.jsx)("div",{className:"absolute inset-0 rounded-lg border border-primary"})]},t)})})})}},10434:function(e,t,r){r.r(t),r.d(t,{default:function(){return x}});
1var n=r(57437),l=r(89054),a=r(2265),s=r(93770),i=r(89804),o=r(91379),c=r(18087),d=r(29625),u=r(85),f=r(26655),m=r(63360),p=r(59469);function x(e){let{amountVal:t,fristLabelText:r}=e,x=(0,c.useTranslations)(),h=(0,s.CG)(p.D0),{userMoney:g="",userWebBonusInfo:v={},balanceFlow:j={}}=(0,o.Z)(),{webBalanceBetAmount:y=0,webBalanceCompleteFlow:E=0,webWithdrawAble:N}=j,{inviteInfo:b,inviteInfoLoading:_,inviteInfoError:w,inviteInfoRefresh:I}=(0,f.m)(),{balance:O="0",withdrawFee:C=0,dailyMaxWithdrawAmount:R=0,todayRestWithdrawAmount:T}=b||{},D=(0,l.dN)(O);(0,a.useEffect)(()=>{null!=h&&I()},[h]);let F=()=>(0,n.jsx)("span",{className:"mr-1",children:i.Cd});return(0,n.jsx)("div",{className:"flex w-full flex-1 flex-col  mt-4",children:(0,n.jsxs)("div",{className:"mb-4 flex flex-col space-y-2 font-ali text-sm text-lightgray",children:[(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)("span",{children:`${r||x("INVITE_ACCOUNT")}:`}),(0,n.jsxs)("span",{className:"text-[#3AFE1A]",children:[F(),D]}),(0,n.jsx)(d.Z,{webWithdrawAble:!!E})]}),(0,n.jsxs)("span",{className:"flex items-center",children:[`${x("NETWORK_FEE")}:`,(0,n.jsxs)("span",{className:"mr-2",children:[F(),(C*t).toFixed(2)," (",parseFloat((100*C).toFixed(2))+"%",")"]}),(0,n.jsx)(m.Z,{})]}),(0,n.jsxs)("span",{className:"flex items-center",children:[`${x("DAILY_WITHDRAWAL_AMOUNT")}:`,(0,n.jsxs)("span",{className:"mr-2",children:[F(),T,"/",R]}),(0,n.jsx)(u.Z,{})]})]})})}},124:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});var n=r(57437),l=r(95317),a=r(45816),s=r(18087),i=r(2265),o=r(43644),c=r(93770),d=r(16463),u=r(22161),f=r(89804);function m(e){let{open:t=!1,onOpenChange:r,sheetContentClassName:m="",sheetTitle:p="",children:x={},hasCloseIcon:h=!0,hasTitle:g=!0,side:v="left",descriptionClsName:j="",titleHeight:y=54,sheetTitleClsName:E="justify-center",overlayZIndex:N="z-50",overlayClassName:b="",style:_={},showBackButton:w=!1,onBack:I=()=>{},fullScreen:O=!0}=e,C=(0,s.useTranslations)(),{hasEnterHome:R}=(0,c.CG)(e=>e.home),T=(0,d.useRouter)(),{locale:D,handleLinkClick:F}=(0,u.Z)(),A=e=>{e.stopPropagation()},S=(0,i.useCallback)(()=>{R?T.back():F()},[R,T,F]);return(0,n.jsxs)(l.yo,{open:t,onOpenChange:r,children:[(0,n.jsx)(l.aM,{asChild:!0,onClick:e=>{e.stopPropagation(),r(!1)}}),(0,n.jsx)(l.ue,{onOpenAutoFocus:e=>e.preventDefault(),className:`max-w-110 rounded-t-lg px-3 pb-4 ${m}`,side:v,hasCloseIcon:h,onInteractOutside:e=>A,overlayZIndex:N,overlayClassName:b,fullScreen:O,style:{width:(0,a.Q1)(f.Iu),maxWidth:"100%",..._},children:(0,n.jsxs)(l.Tu,{className:"space-y-0",children:[g&&(0,n.jsxs)(l.bC,{className:`relative flex flex-shrink-0 items-center pr-5 text-image1 ${E}`,style:{height:(0,a.Q1)(y)},children:[w&&(0,n.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 cursor-pointer rounded-md bg-bg6 p-2",onClick:I||S,children:(0,n.jsx)(o.Z,{width:16,height:16,className:"h-4 w-4"})}),p||C("SET_USER_NAME")]}),(0,n.jsx)("div",{className:`flex flex-1 ${j}`,children:x}),(0,n.jsx)(l.Ei,{})]})})]})}},21222:function(e,t,r){r.d(t,{$N:function(){return x},Be:function(){return h},Vq:function(){return c},cN:function(){return p},cZ:function(){return f},fK:function(){return m}});var n=r(57437),l=r(2265),a=r(32226),s=r(45816),i=r(89804),o=r(14507);let c=a.fC;a.xz;let d=a.h_;a.x8;let u=l.forwardRef((e,t)=>{let{className:r,zIndex:l,...i}=e;return(0,n.jsx)(a.aV,{ref:t,className:(0,s.cn)("fixed inset-0 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",l||"z-50",r),...i})});u.displayName=a.aV.displayName;let f=l.forwardRef((e,t)=>{let{className:r,hasCloseIcon:l=!1,overlayClassName:c,overlayZIndex:f,disablePortal:m=!1,children:p,...x}=e,h=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{className:c,zIndex:f}),(0,n.jsxs)(a.VY,{ref:t,className:(0,s.cn)("fixed left-[50%] top-[50%] grid w-full  translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg bg-background p-4 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] sm:rou
1nded-lg",f||"z-50",r),style:{maxWidth:`${i.Iu}px`,...x.style},...x,children:[p,l&&(0,n.jsxs)(a.x8,{className:"absolute right-3 top-3 h-8 w-8 rounded-sm bg-bg4 transition-opacity flex justify-center items-center disabled:pointer-events-none",children:[(0,n.jsx)(o.Z,{className:"h-3 w-3 text-image2"}),(0,n.jsx)("span",{className:"sr-only",children:"close"})]})]})]});return m?h:(0,n.jsx)(d,{children:h})});f.displayName=a.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-left sm:text-left",t),...r})};m.displayName="DialogHeader";let p=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};p.displayName="DialogFooter";let x=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,n.jsx)(a.Dx,{ref:t,className:(0,s.cn)("text-left text-image1 tracking-tight",r),...l})});x.displayName=a.Dx.displayName;let h=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,n.jsx)(a.dk,{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...l})});h.displayName=a.dk.displayName},36661:function(e,t,r){r.d(t,{l0:function(){return f},NI:function(){return j},Wi:function(){return p},xJ:function(){return g},lX:function(){return v},zG:function(){return y}});var n=r(57437),l=r(2265),a=r(71538),s=r(39343),i=r(45816),o=r(38837);let c=(0,r(13027).j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,n.jsx)(o.f,{ref:t,className:(0,i.cn)(c(),r),...l})});d.displayName=o.f.displayName;var u=r(76780);let f=s.RV,m=l.createContext({}),p=e=>{let{...t}=e;return(0,n.jsx)(m.Provider,{value:{name:t.name},children:(0,n.jsx)(s.Qr,{...t})})},x=()=>{let e=l.useContext(m),t=l.useContext(h),{getFieldState:r,formState:n}=(0,s.Gc)(),a=r(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},h=l.createContext({}),g=l.forwardRef((e,t)=>{let{className:r,...a}=e,s=l.useId();return(0,n.jsx)(h.Provider,{value:{id:s},children:(0,n.jsx)("div",{ref:t,className:(0,i.cn)("space-y-4",r),...a})})});g.displayName="FormItem";let v=l.forwardRef((e,t)=>{let{className:r,...l}=e,{error:a,formItemId:s}=x();return(0,n.jsx)(d,{ref:t,className:(0,i.cn)(a&&"text-destructive",r),htmlFor:s,...l})});v.displayName="FormLabel";let j=l.forwardRef((e,t)=>{let{...r}=e,{error:l,formItemId:s,formDescriptionId:i,formMessageId:o}=x();return(0,n.jsx)(a.g7,{ref:t,id:s,"aria-describedby":l?`${i} ${o}`:`${i}`,"aria-invalid":!!l,...r})});j.displayName="FormControl",l.forwardRef((e,t)=>{let{className:r,...l}=e,{formDescriptionId:a}=x();return(0,n.jsx)("p",{ref:t,id:a,className:(0,i.cn)("text-[0.8rem] text-muted-foreground",r),...l})}).displayName="FormDescription";let y=l.forwardRef((e,t)=>{let{className:r,children:l,...a}=e,{error:s,formMessageId:o}=x(),c=s?String(null==s?void 0:s.message):l;return c?(0,n.jsxs)("p",{ref:t,id:o,className:(0,i.cn)("text-[0.8rem] pt-2 flex font-medium text-danger",r),...a,children:[(0,n.jsx)(u.Z,{size:18,className:"mr-1"}),c]}):null});y.displayName="FormMessage"},94268:function(e,t,r){r.d(t,{Zn:function(){return o},aM:function(){return u},cY:function(){return d},hf:function(){return c}});var n=r(57437),l=r(2265),a=r(66431),s=r(45816),i=r(88002);let o=l.forwardRef((e,t)=>{let{className:r,containerClassName:l,...i}=e;return(0,n.jsx)(a.uZ,{ref:t,containerClassName:(0,s.cn)("flex items-center gap-1.5 has-[:disabled]:opacity-50",l),className:(0,s.cn)("disabled:cursor-not-allowed",r),...i})});o.displayName="InputOTP";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center  rounded-lg",r),...l})});c.displayName="InputOTPGroup";let d=l.forwardRef((e,t)=>{let{index:r,className:i,...o}=e,{char:c,hasFakeCaret:d,isActive:u}=l.useContext(a.VM).slots[r];return(0,n.jsxs)("div",{ref:t,className:(0,s.cn)("relative flex h-9 w-9  pointer-events-auto items-center justify-center border border-bg4 text-xl shadow-sm  first:rounded-l-md first:border-l last:rounded-r-md",u&&"border-primary1",i),...o,children:[c,d&&(0,n.jsx)("div",{className:" absolute inset-0 flex items-center justify-center nimate-caret-blink",children:(0,n.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-gray"})})]})});d.displayName="InputOTPSlot";let u=l.forwardRef((e,t)=>
1{let{...r}=e;return(0,n.jsx)("div",{ref:t,role:"separator",...r,children:(0,n.jsx)(i.Z,{className:"text-gray"})})});u.displayName="InputOTPSeparator"},83102:function(e,t,r){r.d(t,{I:function(){return d}});var n=r(57437),l=r(2265),a=r(45816),s=r(18087),i=r(89804),o=r(47781),c=r(21275);let d=l.forwardRef((e,t)=>{let{className:r,type:d,startIcon:u,endIcon:f,endIconClick:m,endIconNode:p,startIconNode:x,iconProps:h={},maxLength:g=1e4,endIconNodeClassName:v,...j}=e,[y,E]=l.useState(!1),{className:N,...b}=h,_=(0,s.useTranslations)();return"country"===d?(0,n.jsxs)("div",{className:"w-full relative",children:[(0,n.jsxs)("div",{className:"absolute flex items-center  left-4 top-1/2 transform -translate-y-1/2",children:[(0,n.jsxs)("span",{className:"text-image1 mr-4 ",children:["+",i.gJ]}),(0,n.jsx)("span",{className:"bg-image2 h-5 w-[1px]"})]}),(0,n.jsx)("input",{...j,autoComplete:"off",role:"presentation",autoFocus:!1,type:"text",inputMode:"numeric",pattern:"[0-9]*",placeholder:_("ENTER_PHONE_NUMBER"),onChange:e=>{var t;let r=e.target.value;r.startsWith("+")&&(r=r.substring(1)).startsWith(i.gJ)&&(r=r.substring(i.gJ.length)),r=r.replace(/\D/g,""),e.target.value=r,null===(t=j.onChange)||void 0===t||t.call(j,e)},className:(0,a.cn)("flex h-12 w-full text-image1 rounded-lg border border-bg4 bg-bg2 py-2 px-4  placeholder:text-image3 placeholder:font-ali  placeholder:text-sm focus-visible:outline-none focus-visible:border-primary1 not(disabled) disabled:cursor-not-allowed disabled:opacity-50 focus-visible::border-[1.4px] error:border-[1.4px] error:border-secondary2",r),maxLength:i.yH,ref:t,style:{paddingLeft:(0,a.Q1)(78),...j.style}}),p&&(0,n.jsx)("div",{className:"absolute right-1 top-1/2 transform -translate-y-1/2",onClick:()=>m&&m(),children:p})]}):"password"===d?(0,n.jsxs)("div",{className:"w-full relative",children:[(0,n.jsx)("input",{...j,autoComplete:"off",placeholder:(null==j?void 0:j.placeholder)||_("ENTER_PASSWORD"),role:"presentation",readOnly:null==j?void 0:j.readOnly,type:y?"text":d,maxLength:g,className:(0,a.cn)("flex h-12 w-full text-image1 rounded-lg border border-bg4 bg-bg2 py-2 px-4  placeholder:text-image3 placeholder:font-ali  placeholder:text-sm focus-visible:outline-none focus-visible:border-primary not(disabled) disabled:cursor-not-allowed disabled:opacity-50 focus:border-[1.4px] focus:border-primary1 error:border-[1.4px] error:border-secondary2",r),ref:t,style:{...j.style}}),(0,n.jsx)("button",{onClick:()=>E(e=>!e),className:"absolute right-4 top-1/2 transform -translate-y-1/2",type:"button",children:y?(0,n.jsx)(o.Z,{className:"text-image1",width:22,height:22}):(0,n.jsx)(c.Z,{className:"text-image1",width:22,height:22})})]}):"code"===d?(0,n.jsxs)("div",{className:"w-full relative",children:[u&&(0,n.jsx)("div",{className:"absolute left-4 flex items-center h-full",children:(0,n.jsx)(u,{className:(0,a.cn)("text-muted-foreground size-6  ",N),...b})}),x&&(0,n.jsx)("div",{className:"absolute left-4  z-20 flex h-full items-center",children:x}),(0,n.jsx)("input",{...j,autoComplete:"off",role:"presentation",type:"text",inputMode:"numeric",pattern:"[0-9]*",onChange:e=>{var t;let r=e.target.value.replace(/\D/g,"");e.target.value=r,null===(t=j.onChange)||void 0===t||t.call(j,e)},className:(0,a.cn)("flex h-12 w-full text-image1 rounded-lg border border-bg4 bg-bg2 py-2 px-4  placeholder:text-image2 placeholder:font-ali  placeholder:text-sm focus-visible:outline-none focus-visible:border-primary not(disabled) disabled:cursor-not-allowed disabled:opacity-50 focus:border-[1.4px] focus:border-primary1 error:border-[1.4px] error:border-secondary2",u?"pl-8":"",f?"pr-8":"",r),maxLength:g,ref:t,style:{...j.style}}),f&&(0,n.jsx)("div",{className:"absolute right-3 top-0 flex h-full items-center ",children:(0,n.jsx)(f,{className:(0,a.cn)("text-muted-foreground size-6",N),onClick:()=>m&&m(),...b})}),p&&(0,n.jsx)("div",{className:(0,a.cn)("absolute right-4 top-0 flex h-full items-center",v),onClick:()=>m&&m(),children:p})]}):(0,n.jsxs)("div",{className:"w-full relative",children:[u&&(0,n.jsx)("div",{className:"absolute left-4 flex items-center h-full",children:(0,n.jsx)(u,{className:(0,a.cn)("text-muted-foreground size-6  ",N),...b})}),x&&(0,n.jsx)("div",{className:"absolute left-4  z-20 flex h-full items-center",children:x}),(0,n.jsx)("input",{...j,autoComplete:"off",role:"presentation",type:d,className:(0,a.cn)("flex h-12 w-full text-image1 rounded-lg border border-bg4 bg-bg2 py-2 px-4  placeholder:text-image2 placeholder:font-ali  placeholder:text-sm focus-visible:outline-none focus-visible:border-primary not(disabled) disabled:cursor-not-allowed disabled:opacity-50 focus:border-[1.4px] focus:border-primary1 error:border-[1.4px] error:border-secondary2",u?"pl-8":"",f?"pr-8":"",r),maxLength:g,ref:t,style:{...j.style}}),f&&(0,n.jsx)("div",{className:"absolute right-3 top-0 flex h-full items-center ",children:(0,n.jsx)(f,{className:(0,a.cn)("text-muted-foreground size-6",N),onClick:()=>m&&m(),...b})}),p&&(0,n.jsx)("div",{className:(0,a.cn)("absolute right-4 top-0 flex h-full items-center",v),onClick:()=>m&&m(),children:p})]})});d.displayName="Input"},43572:function(e,t,r){var n=r(2265),l=r(60653);t.Z=function(e){let{state:t,form:r,t:a,successCallback:s,errorCallback:i,showErrorMsg:o=!0}=e;(0,n.useEffect)(()=>
1{if(r.clearErrors(),t&&t.data&&0===t.result&&s&&s(),t&&t.message&&0!=t.result&&(i&&i(t),o&&(0,l.Eo)(t.message)),t&&t.error&&Object.keys(t.error).length>0){var e;null===(e=Object.values(t.error))||void 0===e||e.forEach(e=>{(0,l.Eo)(a&&a(e[0]))}),i&&i(null==t?void 0:t.message)}},[t,r])}},50683:function(e,t,r){r.d(t,{t:function(){return n}});function n(e,t,r){for(let n in e){let l=e[n];if(void 0!=e&&e.hasOwnProperty(n)&&void 0!==l){let e=Array.isArray(l)?l[0]:l;t(n,{type:"server",message:r&&r(e)})}}}},921:function(e,t,r){r.d(t,{B:function(){return d}}),r(6151),r(16244),r(49778);var n=r(2265),l=r(98324),a=r(1584),s=r(57437);function i(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){let e,s;let i=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,o=function(e,t){let r={...t};for(let n in t){let l=e[n],a=t[n];/^on[A-Z]/.test(n)?l&&a?r[n]=(...e)=>{let t=a(...e);return l(...e),t}:l&&(r[n]=l):"style"===n?r[n]={...l,...a}:"className"===n&&(r[n]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(o.ref=t?(0,a.F)(t,i):i),n.cloneElement(r,o)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:l,...a}=e,i=n.Children.toArray(l),o=i.find(c);if(o){let e=o.props.children,l=i.map(t=>t!==o?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,l):null})}return(0,s.jsx)(t,{...a,ref:r,children:l})});return r.displayName=`${e}.Slot`,r}var o=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}function d(e){let t=e+"CollectionProvider",[r,o]=(0,l.b)(t),[c,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:r}=e,l=n.useRef(null),a=n.useRef(new Map).current;return(0,s.jsx)(c,{scope:t,itemMap:a,collectionRef:l,children:r})};u.displayName=t;let f=e+"CollectionSlot",m=i(f),p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=d(f,r),i=(0,a.e)(t,l.collectionRef);return(0,s.jsx)(m,{ref:i,children:n})});p.displayName=f;let x=e+"CollectionItemSlot",h="data-radix-collection-item",g=i(x),v=n.forwardRef((e,t)=>{let{scope:r,children:l,...i}=e,o=n.useRef(null),c=(0,a.e)(t,o),u=d(x,r);return n.useEffect(()=>(u.itemMap.set(o,{ref:o,...i}),()=>void u.itemMap.delete(o))),(0,s.jsx)(g,{[h]:"",ref:c,children:l})});return v.displayName=x,[{Provider:u,Slot:p,ItemSlot:v},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},o]}},32226:function(e,t,r){r.d(t,{x8:function(){return es},VY:function(){return en},dk:function(){return ea},aV:function(){return er},h_:function(){return et},fC:function(){return K},Dx:function(){return el},xz:function(){return ee},jm:function(){return q},p8:function(){return N}});var n=r(2265),l=r(78149),a=r(1584),s=r(98324),i=r(53201),o=r(91715),c=r(53938),d=r(80467),u=r(56935),f=r(31383),m=r(18676),p=r(20589),x=r(17590),h=r(78369),g=r(57437),v=Symbol("radix.slottable");function j(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var y="Dialog",[E,N]=(0,s.b)(y),[b,_]=E(y),w=e=>{let{__scopeDialog:t,children:r,open:l,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,d=n.useRef(null),u=n.useRef(null),[f,m]=(0,o.T)({prop:l,defaultProp:null!=a&&a,onChange:s,caller:y});return(0,g.jsx)(b,{scope:t,triggerRef:d,contentRef:u,contentId:(0,i.M)(),titleId:(0,i.M)(),descriptionId:(0,i.M)(),open:f,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:r})};w.displayName=y;var I="DialogTrigger",O=n.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,s=_(I,r),i=(0,a.e)(t,s.triggerRef);return(0,g.jsx)(m.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":U(s.open),...n,ref:i,onClick:(0,l.Mj)(e.onClick,s.onOpenToggle)})});O.displayName=I;var C="DialogPortal",[R,T]=E(C,{forceMount:void 0}),D=e=>{let{__scopeDialog:t,forceMount:r,children:l,container:a}=e,s=_(C,t);return(0,g.jsx)(R,{scope:t,forceMount:r,children:n.Children.map(l,e=>(0,g.jsx)(f.z,{present:r||s.open,children:(0,g.jsx)(u.h,{asChild:!0,container:a,children:e})}))})};D.displayName=C;var F="DialogOverlay",A=n.forwardRef((e,t)=>{let r=T(F,e.__scopeDialog),{forceMount:n=r.forceMount,...l}=e,a=_(F,e.__scopeDialog);return a.modal?(0,g.jsx)(f.z,{present:n||a.open,children:(0,g.jsx)(M,{...l,ref:t})}):null});A.displayName=F;var S=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){var s,i;let e,o;let c=(e=null===(s=Object.getOwnPropertyDescriptor(r.props,"ref"))||void 0===s?void 0:s.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=null===(i=Object.getOwnPropertyDescriptor(r,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,d=function(e,t){let r={...t};for(let n in t){let l=e[n],a=t[n];/^on[A-Z]/.test(n)?l&&a?r[n]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=a(...t);return l(...t),n}:l&&(r[n]=l):"style"===n?r[n]={...l,...a}:"className"===n&&(r[n]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(d.ref=t?(0,a.F)(t,c):c),n.cloneElement(r,d)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:l,...a}=e,s=n.Children.toArray(l),i=s.find(j);if(i){let e=i.props.children,l=s.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,g.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,l):null})}return(0,g.jsx)(t,{...a,ref:r,children:l})});return r.displayName=`${e}.Slot`,r}("DialogOverlay.RemoveScroll"),M=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=_(F,r);return(0,g.jsx)(x.Z,{as:S,allowPinchZoom:!0,shards:[l.contentRef],children:(0,g.jsx)(m.WV.div,{"data-state":U(l.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),P="DialogContent",Z=n.forwardRef((e,t)=>{let r=T(P,e.__scopeDialog),{forceMount:n=r.forceMount,...l}=e,a=_(P,e.__scopeDialog);return(0,g.jsx)(f.z,{present:n||a.open,children:a.modal?(0,g.jsx)(V,{...l,ref:t}):(0,g.jsx)(L,{...l,ref:t})})});Z.displayName=P;var V=n.forwardRef((e,t)=>{let r=_(P,e.__scopeDialog),s=n.useRef(null),i=(0,a.e)(t,r.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,h.Ry)(e)},[]),(0,g.jsx)(W,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.Mj)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,l.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,l.Mj)(e.onFocusOutside,e=>e.preventDefault())})}),L=n.forwardRef((e,t)=>{let r=_(P,e.__scopeDialog),l=n.useRef(!1),a=n.useRef(!1);return(0,g.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(l.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault()),l.current=!1,a.current=!1},onInteractOutside:t=>{var n,s;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(l.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let i=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),W=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,u=_(P,r),f=n.useRef(null),m=(0,a.e)(t,f);return(0,p.EW)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(d.M,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:s,onUnmountAutoFocus:i,children:(0,g.jsx)(c.XB,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":U(u.open),...o,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(X,{titleId:u.titleId}),(0,g.jsx)(Q,{contentRef:f,descriptionId:u.descriptionId})]})]})}),B="DialogTitle",k=n.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,l=_(B,r);return(0,g.jsx)(m.WV.h2,{id:l.titleId,...n,ref:t})});k.displayName=B;var z="DialogDescription",H=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=_(z,r);return(0,g.jsx)(m.WV.p,{id:l.descriptionId,...n,ref:t})});H.displayName=z;var $="DialogClose",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=_($,r);return(0,g.jsx)(m.WV.button,{type:"button",...n,ref:t,onClick:(0,l.Mj)(e.onClick,()=>a.onOpenChange(!1))})});function U(e){return e?"open":"closed"}G.displayName=$;var Y="DialogTitleWarning",[q,J]=(0,s.k)(Y,{contentName:P,titleName:B,docsSlug:"dialog"}),X=e=>{let{titleId:t}=e,r=J(Y),l=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(l)},[l,t]),null},Q=e=>{let{contentRef:t,descriptionId:r}=e,l=J("DialogDescriptionWarning"),a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${l.contentName}}.`;return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");r&&n&&!document.getElementById(r)&&console.warn(a)},[a,t,r]),null},K=w,ee=O,et=D,er=A,en=Z,el=k,ea=H,es=G},87513:function(e,t,r){r.d(t,{gm:function(){return a}});var n=r(2265);r(57437);var l=n.createContext(void 0);function a(e){let t=n.useContext(l);return e||t||"ltr"}},31725:function(e,t,r){r.d(t,{C2:function(){return s},TX:function(){return i},fC:function(){return o}});var n=r(2265),l=r(18676),a=r(57437),s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),i=n.forwardRef((e,t)=>(0,a.jsx)(l.WV.span,{...e,ref:t,style:{...s,...e.style}}));i.displayName="VisuallyHidden";var o=i}}]);

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.