PageSourceSearch

http://thefightnation.com/_next/static/chunks/2629.40713eff7f26c7ad.js

js thefightnation.com collected 2026-10-03 18:03:51 UTC 99,809 bytes, 26 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2629,124],{51276:function(e,t,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"#B3BCC9",viewBox:"0 0 12 12"},e),r||(r=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",{fill:"#fff",d:"M0 0h12v12H0z"})))))},46334:function(e,t,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 192 200"},e),r||(r=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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 250 250"},e),r||(r=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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 12 12"},e),r||(r=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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,f
1ill:"none"},e),r||(r=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,n){var r,l=n(4410);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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),r||(r=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"})))},68882:function(e,t,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},e),r||(r=a.createElement("g",{clipPath:"url(#icon_add_svg__a)"},a.createElement("path",{d:"M17.608 8.35H11.65V2.392c0-.906-.743-1.649-1.652-1.65-.906-.001-1.648.741-1.65 1.65V8.35H2.392c-.907 0-1.65.743-1.651 1.651 0 .907.742 1.65 1.65 1.652l5.957-.001v5.957c0 .906.743 1.648 1.652 1.65.906 0 1.649-.742 1.65-1.65v-5.957h5.958c.907 0 1.65-.742 1.651-1.65a1.653 1.653 0 0 0-1.65-1.652"}))),l||(l=a.createElement("defs",null,a.createElement("clipPath",{id:"icon_add_svg__a"},a.createElement("path",{d:"M0 0h20v20H0z"})))))},43644:function(e,t,n){var r,l=n(4410);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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),r||(r=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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 12 12"},e),r||(r=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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 28 28"},e),r||(r=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"})))},95:function(e,t,n){var r,l,a,i=n(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.createElement("path",{fill:"url(#icon_flag_thumb_svg__a)",d:"M2.963 0h14.074v18.773a.74.74 0 0 1-1.086.656l-5.261-2.77a1.48 1.48 0 0 0-1.38 0l-5.261 2.77a.74.74 0 0 1-1.086-.656z"})),l||(l=i.createElement("path",{fill:"#fff",d:"M10.748 3.706c1.042-.058 1.694 1.281 1.64 2.153-.024.39-.143.763-.254 1.135h1.836c.542 0 .963.544.814 1.075l-1.179 4.174a.85.85 0 0 1-.814.615H9.063a.854.854 0 0 1-.846-.845V7.706c0-.356.219-.656.513-.794.776-.366 1.232-.903 1.377-1.771.052-.307.051-.616.092-.922 0-.278.295-.499.55-.513m-3.034 8.307c0 .46-.385.845-.846.845h-.475a.854.854 0 0 1-.843-.772l-.362-4.17a.86.86 0 0 1 .842-.919h.838c.461 0 .846.385.846.846z"})),a||(a=i.createElement("defs",null,i.createElement("linearGradient",{id:"icon_flag_thumb_svg__a",x1:10,x2:10,y1:0,y2:20,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#FF9F19"}),i.createElement("stop",{offset:1,stopColor:"#FF7300"})))))},72863:function(e,t,n){var r,l=n(4410);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>l.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor",viewBox:"0 0 14 14"},e),r||(r=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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),r||(r=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"})))))},58554:function(e,t,n){var r,l=n(4410);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>l.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},e),r||(r=l.createElement("path",{d:"M18.34 8.318c.009.04.178.962.178 1.689 0 .741-.175 1.68-.178 1.688-.1.532-.421.877-.833.877h-.072c-1.15 0-2.085.947-2.085 2.112 0 .376.18.803.182.807a1.12 1.12 0 0 1-.396 1.354L12.96 18.06a1.18 1.18 0 0 1-1.311-.289c-.237-.261-1.056-1.01-1.696-1.01-.59 0-1.388.667-1.683.991a1.185 1.185 0 0 1-1.34.266l-2.096-1.19a1.114 1.114 0 0 1-.367-1.34c.002-.003.182-.426.182-.804 0-1.163-.934-2.112-2.084-2.112h-.088c-.397 0-.719-.343-.819-.877-.008-.04-.178-.966-.178-1.688 0-.725.171-1.65.178-1.689.1-.533.42-.876.832-.876h.072c1.15 0 2.085-.948 2.085-2.112 0-.382-.18-.803-.182-.807a1.12 1.12 0 0 1 .398-1.357L7.079 1.94q.206-.089.439-.087c.331 0 .654.134.866.362.233.246 1.037.952 1.658.952.614 0 1.415-.69 1.646-.933a1.205 1.205 0 0 1 1.335-.252l2.138 1.206c.416.294.575.87.369 1.34-.002.004-.182.427-.182.804 0 1.164.936 2.112 2.085 2.112h.087c.399-.001.72.342.82.875m-5.32 1.92c0-1.685-1.353-3.054-3.016-3.054s-3.018 1.369-3.018 3.054 1.353 3.055 3.018 3.055 3.017-1.37 3.017-3.055"})))},89322:function(e,t,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},e),r||(r=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.
1112 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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:140,height:140,fill:"none"},e),r||(r=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,n){var r,l,a=n(4410);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:140,height:140,fill:"none"},e),r||(r=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,n){n.d(t,{BD:function(){return h},Gv:function(){return _},Jf:function(){return E},cs:function(){return v},e7:function(){return p},fU:function(){return c},hU:function(){return m},jV:function(){return d},n7:function(){return u},s3:function(){return y},ty:function(){return f}});var r=n(42848),l=n(53498),a=n(66401),i=n(60653),s=n(44833),o=n(89804);n(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,i.Eo)(e)}},u=async(e,t)=>{try{let n=await (0,a.ZP)("POST","user/v1/info/check/payout/account",e);return n&&0==n.result&&t&&t(n),n}catch(e){console.log("error :",e),(0,i.Eo)(e)}};async function d(e,t){let n=s.qM.safeParse({phone:t.get("phone")});return n.success?f(Object.fromEntries(t)):{error:n.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,r.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 p(e,t){let n=s.nI.safeParse({email:t.get("email")});return n.success?m(Object.fromEntries(t)):{error:n.error.flatten().fieldErrors}}async function m(e){try{let t={email:e.email,timestamp:(0,r.yi)(),web:!0,act:"BIND"},n=await (0,a.ZP)("POST","user/v2/user/email/otp",t,{needSign:!0});if(n)return n;return{error:null==n?void 0:n.message}}catch(e){return console.log(e,"error"),{}}}async function h(e,t){let n=s.rW.safeParse({otp:t.get("otp")});if(!n.success)return{error:n.error.flatten().fieldErrors};let r=Object.fromEntries(t);try{var a=await x((0,l.Hc)((null==r?void 0:r.phoneCode)||o.gJ,r.phone),r.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 x(e,t){var n={phone:e,otp:t,timestamp:(0,r.yi)()};return await (0,a.ZQ)("POST","user/v1/user/bindPhoneByOTPSigned",n)}async function v(e,t){let n=s.rW.safeParse({otp:t.get("otp")});if(!n.success)return{error:n.error.flatten().fieldErrors};let r=Object.fromEntries(t);try{var l=await g(r.email,r.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 g(e,t){var n={email:e,otp:t,timestamp:(0,r.yi)()};return await (0,a.ZQ)("POST","user/v1/user/email/bind",n)}async function E(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){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,n){n.d(t,{Z:function(){return u}});var r=n(57437),l=n(21222),a=n(45816),i=n(31725),s=n(18087),o=n(80752),c=n(8590);function u(e){let{open:t,onOpenChange:n,btnClick:u,onClose:d,dialogTitle:f="",dialogDescription:p="",hideFooterBtn:m=!1,hasCloseIcon:h=!1,hasDialogHeader:x=!0,footerBoxClsName:v="",children:g,submitText:E="",submitClsName:y="",contentClsName:_="",titleClsName:b="",overlayZIndex:w="z-50",disablePortal:N=!1,hasCornerBlur:j=!0}=e,C=(0,s.useTranslations)();return(0,r.jsx)("div",{className:"px-40 container mx-auto",children:(0,r.jsx)(l.Vq,{open:t,onOpenChange:n,children:(0,r.jsxs)(l.cZ,{onOpenAutoFocus:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),hasCloseIcon:h,className:`${(0,a.cn)("",_)}`,style:{maxWidth:(0,a.Q1)(382)},onInteractOutside:e=>
1e.preventDefault(),overlayZIndex:w,disablePortal:N,children:[j&&(0,r.jsx)(o.Z,{theme:"yellow"}),x&&(0,r.jsxs)(l.fK,{className:"flex-row",children:[(0,r.jsx)(l.$N,{className:(0,a.cn)("flex flex-1",b),children:f}),p&&(0,r.jsx)(l.Be,{children:p}),!p&&(0,r.jsx)(i.fC,{children:(0,r.jsx)(l.Be,{})})]}),!x&&(0,r.jsx)(i.fC,{children:(0,r.jsx)(l.$N,{})}),g,!m&&(0,r.jsx)(l.cN,{className:(0,a.cn)("z-50",v),children:(0,r.jsx)(c.Z,{onClick:()=>u&&u()||n&&n(!1),className:(0,a.cn)("w-full h-14 rounded-lg",y),children:E||C("SUBMIT")})})]})})})}},81785:function(e,t,n){var r=n(57437);n(2265);var l=n(79522),a=n(45816);let i={warn:"/images/dialog_warn.png"};t.Z=e=>{let{variant:t="warn",width:n,height:s,className:o}=e,c=i[t];return(0,r.jsx)(l.default,{src:c,alt:`${t} icon`,width:n||90,height:s||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,n){n.d(t,{s:function(){return s}});var r=n(57437),l=n(68125),a=n(18087),i=n(81785);let s=e=>{let{open:t,onOpenChange:n,confirmBtnOnClick:s,tipText:o="VERIFICATION_CODE_HAS_EXPIRED_PLEASE_RE_VERIFY",submitText:c="CONFIRM"}=e,u=(0,a.useTranslations)();return(0,r.jsx)(l.Z,{open:t,onOpenChange:n,btnClick:s,submitText:u(c),contentClsName:"gap-0 bg-square_bg",submitClsName:"text-secondary",dialogTitle:"",hasDialogHeader:!1,overlayZIndex:"z-[60]",children:(0,r.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,r.jsx)(i.Z,{variant:"warn"}),(0,r.jsx)("span",{className:"mt-7 mb-6 text-primary1 whitespace-pre-line text-center ",children:u(o)})]})})}},17528:function(e,t,n){n.r(t);var r=n(57437),l=n(68125),a=n(2265),i=n(42848),s=n(18087),o=n(79522),c=n(81785);t.default=e=>{var t,n,u;let{open:d,onOpenChange:f,confirmBtnOnClick:p,submitText:m="",expires:h,children:x}=e,v=(0,a.useRef)(null),g=null,E=(0,s.useTranslations)(),[y,_]=(0,a.useState)(),[b,w]=(0,a.useState)(new Date().getTime()),N=(0,a.useRef)(),j=(0,a.useRef)();""==m&&(m=E("CONFIRM")),(0,a.useEffect)(()=>(clearInterval(v.current),v.current=setInterval(()=>{_(e=>e-1e3)},1e3),()=>{clearInterval(v.current)}),[h]),(0,a.useEffect)(()=>{h&&(_(h),w(new Date().getTime()))},[h]),(0,a.useEffect)(()=>{y+b<=new Date().getTime()&&v&&clearInterval(v)},[y]),(0,a.useEffect)(()=>{let e=function(){if("hidden"===document.visibilityState)clearInterval(v),N.current=(0,i.eq)(),j.current=y;else{let e=(0,i.eq)()-N.current;j.current-e>0?(_(j.current-e),g=setInterval(function(){_(e=>e-1e3)},1e3)):_(0)}};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e),clearInterval(g)}},[y]);let C="border border-primary1 text-[2rem] bg-bg2  rounded-lg flex items-center justify-center w-16 h-[3.625rem]";return(0,r.jsxs)(l.Z,{open:d,onOpenChange:f,btnClick:p,submitText:m,contentClsName:"gap-0 bg-square_bg",submitClsName:"h-12",dialogTitle:"",hasDialogHeader:!1,children:[(0,r.jsxs)("div",{className:"relative flex flex-col items-center justify-center pt-4 text-primary1 text-sm",children:[(0,r.jsx)(c.Z,{variant:"warn"}),(0,r.jsxs)("div",{className:"my-2  text-center",children:[(0,r.jsx)("p",{className:"",children:E("ONLY_THREE_VERIFICATION_CODES_CAN_BE_SENT")}),(0,r.jsx)("p",{className:"",children:E("THE_VERIFICATION_CODE_CAN_BE_SENT_AGAIN_AT")})]})]}),(0,r.jsxs)("div",{className:"text-center text-primary1 mb-6 flex justify-center items-center",children:[(0,r.jsx)("span",{className:C,children:null===(t=(0,i.SD)(y))||void 0===t?void 0:t.hourText}),(0,r.jsx)("div",{className:"mx-2.5 flex justify-center items-center w-1.5 h-6",children:(0,r.jsx)(o.default,{src:"/images/send_num_icon.svg",alt:"",width:6,height:24})}),(0,r.jsx)("span",{className:C,children:null===(n=(0,i.SD)(y))||void 0===n?void 0:n.minText}),(0,r.jsx)("div",{className:"mx-2.5 flex justify-center items-center w-1.5 h-6",children:(0,r.jsx)(o.default,{src:"/images/send_num_icon.svg",alt:"",width:6,height:24})}),(0,r.jsx)("span",{className:C,children:null===(u=(0,i.SD)(y))||void 0===u?void 0:u.secText})]})]})}},37118:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(57437),l=n(2265),a=n(93770),i=n(54887),s=n(36661),o=n(39343),c=n(83102),u=n(16463),d=n(60653),f=n(43572),p=n(78174),m=n(61097),h=n(18087),x=n(80804),v=n(13231);function g(e){var t;let{setPhoneOtpOpen:n,setIsPhoneOtp:g,setSendNumLimitOpen:E,setSendNumLimitExpires:y,setPhone:_}=e,b=(0,h.useTranslations)(),[w,N]=(0,l.useState)(""),{userData:j}=(0,x.J)();(0,u.useRouter)(),(0,a.TL)();let[C,O]=(0,l.useState)(!1),[T,A]=(0,i.useFormState)(m.jV,{error:{}},w),I=(0,o.cI)({defaultValues:{phone:"",serverError:""}}),S=null==I?void 0:I.watch(),R=null==I?void 0:null===(t=I.formState)||void 0===t?void 0:t.errors;(0,f.Z)({state:T,form:I,t:b,successCallback:()=>{g(!0),_(I.getValues("phone")),n(!0)},errorCallback:e=>{(null==e?void 0:e.result)===21010305?(y&&y(e.message),E&&E(!0)):(null==e?void 0:e.result)===21010106?((0,d.Eo)(b(null==e?void 0:e.message)),I.setError("phone",{type:"manual",message:""})):(null==e?void 0:e.message)&&(0,d.Eo)(null==e?void 0:e.message)},showErrorMsg:!1}),(0,l.useEffect)(()=>{S.phone?O(!1):O(!0)},[S]),(0,l.useEffect)(()=>{(null==j?void 0:j.phone)&&I.setValue("phone",null==j?void 0:j.phone.substring(2))},[null==j?void 0:j.phone]);let P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"phone";I.clearErrors(e)},D=e=>{let t=e.target.value;/[\x20-\x7E\d\w]*$/.test(t)&&t.length<=20&&I.setValue("phone",e.target.value)};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"flex flex-col flex-1",children:(0,r.jsx)(s.l0,{...I,children:(0,r.jsx)("form",{action:A,autoComplete:"off",role:"presentation",children:(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsx)(s.Wi,{control:I.control,name:"serverError",render:e=>{let{field:t}=e;return(0,r.jsx)(s.zG,{})}}),(0,r.jsx)(s.Wi,{control:I.control,name:"phone",render:e=>{let{field:t}=e;return(0,r.jsx)("div",{className:"grid ",children:(0,r.jsxs)(s.xJ,{onBlur:()=>P("phone"),className:"space-y-0",children:[(0,r.jsx)(s.NI,{children:(0,r.jsx)(c.I,{type:"country",disabled:(null==j?void 0:j.phone)!=null,className:`${(null==R?void 0:R.phone)?"border-danger":""} bg-bg1`,required:!0,...t,onChange:D,endIconNode:(null==j?void 0:j.phone)?(0,r.jsxs)("span",{className:"flex items-center  text-sm text-secondary1 gap-1 pr-3",children:[(0,r.jsx)(v.Z,{width:16,height:16,className:"text-secondary1"}),b("VERIFIED")]}):(0,r.jsx)(p.Z,{text:b("SUBMIT"),className:" h-10 w-20 text-secondary",disabled:C})})}),(0,r.jsx)(s.zG,{})]})})}})]})})})})})}function E(e){var t;let{setEmail:n,setPhoneOtpOpen:a,setSendNumLimitOpen:u,setSendNumLimitExpires:g,setIsPhoneOtp:E}=e,y=(0,h.useTranslations)(),[_,b]=(0,l.useState)(""),{userData:w}=(0,x.J)(),[N,j]=(0,l.useState)(!1),[C,O]=(0,i.useFormState)(m.e7,{error:{}},_),T=(0,o.cI)({defaultValues:{email:"",serverError:""}}),A=null==T?void 0:T.watch(),I=null==T?void 0:null===(t=T.formState)||void 0===t?void 0:t.errors;(0,f.Z)({state:C,form:T,t:y,successCallback:()=>{n(T.getValues("email")),E(!1),a(!0)},errorCallback:e=>{(null==e?void 0:e.result)===21010305?(g&&g(y(e.message)),u&&u(!0)):(null==e?void 0:e.message)&&(0,d.Eo)(y(e.message))},showErrorMsg:!1}),(0,l.useEffect)(()=>{A.email?j(!1):j(!0)},[A]),(0,l.useEffect)(()=>{(null==w?void 0:w.bindEmail)&&T.setValue("email",null==w?void 0:w.bindEmail)},[null==w?void 0:w.bindEmail]);let S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"email";T.clearErrors(e)},R=e=>{let t=e.target.value;/[\x20-\x7E\d\w]*$/.test(t)&&T.setValue("email",e.target.value)};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"flex flex-col flex-1",children:(0,r.jsx)(s.l0,{...T,children:(0,r.jsx)("form",{action:O,autoComplete:"off",role:"presentation",children:(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsx)(s.Wi,{control:T.control,name:"serverError",render:e=>{let{field:t}=e;return(0,r.jsx)(s.zG,{})}}),(0,r.jsx)(s.Wi,{control:T.control,name:"email",render:e=>{let{field:t}=e;return(0,r.jsx)("div",{className:"grid ",children:(0,r.jsxs)(s.xJ,{onBlur:()=>S("email"),className:"space-y-0",children:[(0,r.jsx)(s.NI,{children:(0,r.jsx)(c.I,{type:"text",disabled:(null==w?void 0:w.bindEmail)!=null,placeholder:y("ENTER_EMAIL"),className:`${(null==I?void 0:I.email)?"border-danger":""} bg-bg1`,required:!0,...t,onChange:R,endIconNode:(null==w?void 0:w.bindEmail)?(0,r.jsxs)("span",{className:"flex items-center  text-sm text-secondary1 gap-1 ",children:[(0,r.jsx)(v.Z,{width:16,height:16,className:"text-secondary1"}),y("VERIFIED")]}):(0,r.jsx)(p.Z,{text:y("SUBMIT"),className:" w-20 h-10 text-secondary  translate-x-3 ",disabled:N})})}),(0,r.jsx)(s.zG,{})]})})}})]})})})})})}var y=n(58066),_=n(14292);function b(e){let{setPhoneOtpOpen:t,setIsPhoneOtp:n,setEmail:i,isPhoneOtp:s,setSendNumLimitOpen:o,setSendNumLimitExpires:c,setPhone:u,needBindPhone:d=!0,needBindEmail:f=!0}=e,p=(0,h.useTranslations)(),{hasBindPhone:m,hasBindEmail:x}=(0,a.CG)(e=>e.wallet),{getProfileInfo:v}=(0,_.Z)(!1);return(0,a.TL)(),(0,l.useEffect)(()=>{(m||x)&&(t(!1),v())},[m,x]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"flex justify-center flex-col flex-1  space-y-4",children:[d&&(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[(0,r.jsx)(y.default,{src:"/images/account_phone.svg",decoding:"async",loading:"lazy",alt:"brazil",className:"",width:18,height:18}),(0,r.jsx)("span",{className:"text-sm text-image2 font-ali",children:p("PHONE_VERIFICATION")})]}),(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)(g,{setPhoneOtpOpen:t,setSendNumLimitOpen:o,setIsPhoneOtp:n,setPhone:u,setSendNumLimitExpires:c})})]}),f&&(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"flex space-x-2 items-center mb-2",children:[(0,r.jsx)(y.default,{src:"/images/account_email.svg",decoding:"async",loading:"lazy",alt:"brazil",className:"",width:18,height:18}),(0,r.jsx)("span",{className:"text-sm text-image2 font-ali",children:p("EMAIL_VERIFICATION")})]}),(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)(E,{setPhoneOtpOpen:t,setSendNumLimitOpen:o,setIsPhoneOtp:n,setEmail:i,setSendNumLimitExpires:c})}),(0,r.jsx)("span",{className:"text-sm text-image2 mt-2 font-ali w-full text-left",children:p("EMAIL_INPUT_FORMAT_EXAMPLE_JACKWAN_GMIL_COM")})]})]})})}},42942:function(e,t,n){n.d(t,{m:function(){return l},x:function(){return r}});let r=e=>{var t,n;return{manualAmountEnabled:null!==(t=null==e?void 0:e.manualAmountEnabled)&&void 0!==t&&t,fixedAmountEnabled:null!==(n=null==e?void 0:e.fixedAmountEnabled)&&void 0!==n&&n}},l=e=>{if(!e)return[];try{let t=JSON.parse(e);if(!t||Array.isArray(t)||"object"!=typeof t)return[];return Object.keys(t).map(Number).filter(e=>Number.isFinite(e)&&e>0).sort((e,t)=>
1e-t)}catch{return[]}}},39357:function(e,t,n){n.r(t),n.d(t,{default:function(){return er}});var r=n(57437),l=n(45816),a=n(50495),i=n(8492),s=n(83102),o=n(78174),c=n(124),u=n(31252),d=n(80999),f=n(70225),p=n(87060),m=n(68125),h=n(98966),x=n(94712),v=n(79522),g=n(46067),E=n(44585),y=n(16463),_=n(13231),b=n(18087),w=n(22161);let N=e=>{let{open:t,onOpenChange:n,confirmBtnOnClick:a,source:i=""}=e,s=(0,b.useTranslations)();(0,y.useRouter)();let{handleLinkClick:o}=(0,w.Z)();return(0,r.jsx)(E.Z,{open:t,onOpenChange:n,confirmBtnOnClick:a,hasCancelBtn:!1,confirmText:s("CONFIRM"),children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,r.jsx)(_.Z,{className:"text-success mt-1 w-14 h-14"}),(0,r.jsx)("div",{className:"mt-4 mb-2 text-center text-white text-base flex-col flex ",children:(0,r.jsx)("span",{children:s("WITHDRAWAL_APPLICATION_SUCCESSFUL")})}),(0,r.jsxs)("div",{style:{width:(0,l.Q1)(312),height:(0,l.Q1)(38)},className:"flex  flex-col justify-center text-sm  text-lightgray items-center",children:[(0,r.jsx)("span",{children:s("YOU_CAN_CHECK_THE_ORDER_STATUS")}),(0,r.jsx)("span",{children:s("IN_THE_WITHDRAWAL_TRANSACTION_RECORD")})]}),(0,r.jsxs)("div",{className:"flex space-x-2 text-primary font-ali my-4 text-sm items-center",onClick:()=>{n(!1),o("invite-account"==i?"/referral-agent/invite-transactions?tab=withdraw":"/transactions-v2?type=Withdraw")},children:[(0,r.jsx)(v.default,{src:"/images/withdraw_transaction.png",alt:"Transaction_icon",width:16,height:16,className:"w-4 h-4"}),(0,r.jsx)("span",{children:s("TRANSACTIONS")})]})]})})};var j=n(71021),C=n(96015),O=n(2265),T=n(93770),A=n(53670),I=n(71410),S=n(82671),R=n(60653),P=n(14292),D=n(91379),M=n(81013),L=n(1339),W=n(53498),F=n(89804),k=n(59469),B=n(26655),H=n(85304),U=n(56699),Z=n(82611);let V=e=>{let{source:t="wallet"}=e,n=(0,b.useTranslations)();(0,M.tv)();let r=(0,T.TL)(),{userData:l,isLogin:a}=(0,P.Z)(!0),{locale:i}=(0,w.Z)(),{userMoney:s="",userWebBonusInfo:o={},balanceFlow:c={}}=(0,D.Z)(),{bonus:u="0.00",webBonusBetAmount:d=0,webBonusCompleteFlow:f=0,webBonusCollectable:p}=o,{webBalanceBetAmount:m=0,webBalanceCompleteFlow:h=0,webWithdrawAble:x}=c,{data:v,refresh:g}=(0,A.KM)(I.P.MESSAGE_GET_PAYOUT_ACCOUNT_INDIA,null,{wrapRAWData:e=>e}),{data:E={}}=(0,H.M6)(),{bonusWalletStatus:y}=E,{data:_,refresh:N}=(0,A.KM)(I.P.MESSAGE_GET_TODAY_WITHDRAW_TOTAL),{data:j,isLoading:C}=(0,A.KM)(I.P.MESSAGE_QUERY_INDIA_KYC,{appId:"tpgo",channelId:(0,W.G1)()}),{data:V={}}=(0,H.M6)(),[G,Y]=(0,O.useState)(!1),[z,$]=(0,O.useState)(!1),[q,Q]=(0,O.useState)(!1),[K,J]=(0,O.useState)(!1),[X,ee]=(0,O.useState)(!1),[et,en]=(0,O.useState)(!1),[er,el]=(0,O.useState)(!1),[ea,ei]=(0,O.useState)(!1),[es,eo]=(0,O.useState)(!1),[ec,eu]=(0,O.useState)(!1),[ed,ef]=(0,O.useState)(!1),[ep,em]=(0,O.useState)(!1),[eh,ex]=(0,O.useState)(0),ev=(0,U.Z)(eh),[eg,eE]=(0,O.useState)(!1),{walletInfo:ey,payOrderContent:e_,firstInputAccount:eb,hasBindPhone:ew,hasBindEmail:eN,accountInfo:ej,withdrawMethodSelectIdx:eC,inviteWithdrawAmountSelectIdx:eO,showWithdrawBannedDialog:eT,showWithdrawLimitDialog:eA}=(0,T.CG)(e=>e.wallet),eI="invite-account"==t,eS="wallet"==t,eR=null,eP=null;if(eI){let{inviteInfo:e,inviteInfoLoading:t,inviteInfoError:n,inviteInfoRefresh:r}=(0,B.m)();eR=e,eP=r;let l=(0,T.CG)(k.oJ);(null==l?void 0:l.payChannelConfig4Agent)&&console.log("payChannelConfig4Agent  = ",ey=null==l?void 0:l.payChannelConfig4Agent)}let{orderType:eD}=e_,eM=Object.keys(ey).length>0&&(null==ey?void 0:ey.payOut),eL=eM[eC],{dailyTimesQuota:eW,dailyTotalQuota:eF,state:ek,taxConfig:eB,userRestVipTotalWithdrawQuota:eH,nextVipLevel:eU,nextVipLevelName:eZ}=_||{},eV=null;if(eI){let e=eM&&eM[eC];eV=e&&(0,L.ne)(e.amountList)||{}}(0,O.useEffect)(()=>{if(void 0!==eO&&eV){let e=Object.keys(eV);e.length>0&&ex(parseInt((e[eO]||0).toString(),10))}},[eO,eV]),(0,O.useEffect)(()=>{j&&j.info},[j]),(0,O.useEffect)(()=>{(null==v?void 0:v.data)?r((0,S.Qf)(null==v?void 0:v.data)):r((0,S.Qf)({})),ee((null==v?void 0:v.result)==0)},[v]),(0,O.useEffect)(()=>{(ew&&(null==V?void 0:V.withdrawVerifyPhone)&&!(null==V?void 0:V.withdrawVerifyEmail)||eN&&!(null==V?void 0:V.withdrawVerifyPhone)&&(null==V?void 0:V.withdrawVerifyEmail)||ew&&eN&&(null==V?void 0:V.withdrawVerifyPhone)&&(null==V?void 0:V.withdrawVerifyEmail))&&en(!1)},[ew,eN,V]),(0,O.useEffect)(()=>{"Withdraw"===eD&&g()},[e_]);let eG=async()=>{try{em(!0);let e=await (0,A.rQ)(I.P.MESSAGE_POST_SAVE_PAYOUT_ACCOUNT_INDIA,eb);0===e.result&&r((0,S.Qf)(null==e?void 0:e.data))}catch(e){console.log("error :",e)}finally{em(!1)}},eY=async()=>{try{let e;eo(!0);let t={amount:eh,extInfo:{name:null==ej?void 0:ej.name,ifsc:null==ej?void 0:ej.ifsc,accountNumber:null==ej?void 0:ej.bankAccount,email:(null==ej?void 0:ej.email)||(null==l?void 0:l.bindEmail),contact:null==l?void 0:l.phone}},a={appId:"tpgo",channelId:(0,W.G1)(),description:"webPayout",pmId:"bank",...t};e=eI?await (0,A.rQ)(I.P.MESSAGE_POS_AGENT_PAYOUT,a):await (0,A.rQ)(I.P.MESSAGE_POS_PAYOUT_INDIA,a);let i=" "+eh+" "+F.ce;if(F.ww.includes(e.result)){r((0,S.sg)(!0));return}e&&0===e.result?(Q(!0),eI?null==eP||eP():N(),(0,R.XA)(n("WITHDRAWAL_APPLICATION_SUCCESSFUL")+i)):21010359===e.result?(0,R.Eo)(n(e.message)):(0,R.Eo)(n("WITHDRAW_APP
1LICATION_FAILED_PLEASE_CONTACT_LIVE_SUPPORT"))}catch(e){console.log("error :",e)}finally{eo(!1)}},ez=async e=>{try{let t=await (0,A.rQ)(I.P.MESSAGE_GET_IFSC,null,{moreUrl:"/"+e});if(t&&0===t.result)return!0;return(0,R.Eo)(n((null==t?void 0:t.message)||"")),J(!0),!1}catch(e){return!1}},e$=async()=>{if((null==l?void 0:l.walletStatus)==="WithdrawBanned"){r((0,S.sg)(!0));return}if(!(null==ej?void 0:ej.ifsc)||!(null==ej?void 0:ej.bankAccount)||!(null==ej?void 0:ej.name)||!(null==ej?void 0:ej.email)||!(0,Z.q)("bankAccount",null==ej?void 0:ej.bankAccount,n)||!(0,Z.q)("name",null==ej?void 0:ej.name,n)){J(!0);return}if(await ez(null==ej?void 0:ej.ifsc)){if(!eh){(0,R.Eo)(n("PLEASE_ENTER_THE_WITHDRAWAL_AMOUNT"));return}if(eS){if(Number(eh)+Number(ev)>Number(s)){(0,R.Eo)(n("INSUFFICIENT_PRINCIPAL_ACCOUNT_BALANCE"));return}}else if(eI&&Number(eh)>Number(null==eR?void 0:eR.balance)){(0,R.Eo)(n("INSUFFICIENT_PRINCIPAL_ACCOUNT_BALANCE"));return}if(Number(eh)<Number(null==eL?void 0:eL.minLimit)||Number(eh)>Number(null==eL?void 0:eL.maxLimit)){(0,R.Eo)(`${n("THE_AMOUNT_ENTERED_CANNOT_BE_LESS_THAN_OR_GREATER_THAN_THE_PAYMENT_RANGE")} "${null==eL?void 0:eL.minLimit}~${null==eL?void 0:eL.maxLimit}"`);return}if(eS&&Number(null==ek?void 0:ek.times)>=Number(eW)){(0,R.Eo)(n("INSUFFICIENT_NUMBER_OF_WITHDRAWALS_PER_DAY"));return}if(eS){let e=(null==ek?void 0:ek.totalAmount)||0;if(Number(eh)>e||e<=0){r((0,S.ah)(!0));return}}else if(eI){let e=(null==eR?void 0:eR.dailyMaxWithdrawAmount)||0;if(Number(eh)>e||e<=0){r((0,S.ah)(!0));return}}if(eS&&Number(eh)>eH){eE(!0);return}if((null==V?void 0:V.withdrawVerifyPhone)&&!(null==l?void 0:l.phone)||(null==V?void 0:V.withdrawVerifyEmail)&&!(null==l?void 0:l.bindEmail)){en(!0);return}if(null==j?void 0:j.needApprove){var e,t,a;if(j&&(null==j?void 0:null===(e=j.info)||void 0===e?void 0:e.status)){if((null==j?void 0:null===(t=j.info)||void 0===t?void 0:t.status)=="Pending"){ei(!0);return}if((null==j?void 0:null===(a=j.info)||void 0===a?void 0:a.status)!="Approve"){el(!0);return}}else{j&&el(!0);return}}if(!x){eu(!0);return}if(eS&&Number(u)>0&&y){ef(!0);return}eY()}},eq=async()=>{await eG(),J(!1),$(!1)},{handleLinkClick:eQ}=(0,w.Z)();return{locale:i,open:G,setOpen:Y,confirmOpen:z,setConfirmOpen:$,withdrawSuccessOpen:q,setWithdrawSuccessOpen:Q,accountOpen:K,setAccountOpen:J,accountInfoLoaded:X,phoneOpen:et,setPhoneOpen:en,kycOpen:er,setKycOpen:el,kycPending:ea,setKycPending:ei,pending:es,isBalanceWaringDialogOpen:ec,setIsBalanceWaringDialogOpen:eu,isBonusWaringDialogOpen:ed,setIsBonusWaringDialogOpen:ef,saveAccountInfoPending:ep,amountVal:eh,setAmountVal:ex,withdrawList:eM,currentMethod:eL,dailyTimesQuota:eW,dailyTotalQuota:eF,state:ek,withdrawClick:e$,submitClick:eq,withdrawSuccessCallback:()=>{J(!1),en(!1),Q(!1)},methodChange:e=>{r((0,S.NU)(e)),Y(!1)},skipToVip:()=>{r((0,S.ah)(!1)),eQ("/vip-club")},kycIndia:j,amoutInputChange:e=>{var t;ex((null==e?void 0:null===(t=e.replace(/[^\d]/g,""))||void 0===t?void 0:t.replace(/^0+/,""))||"0")},firstInputAccount:eb,createWithdrawPayoutOrder:eY,showWithdrawBannedDialog:eT,showWithdrawLimitDialog:eA,setShowWithdrawBannedDialogHook:e=>{r((0,S.sg)(e))},setShowWithdrawLimitDialogHook:e=>{r((0,S.ah)(e))},dispatch:r,amountList:eV,withdrawMethodSelectIdx:eC,inviteWithdrawAmountSelectIdx:eO,isMaxLimitDialogOpen:eg,setIsMaxLimitDialogOpen:eE,withdrawTotalInfo:_,commonWebSettingData:V,networkFee:ev}};var G=n(10434),Y=n(1418),z=n(90837),$=n(80068),q=n(80752),Q=n(85326),K=n(8590),J=n(94171),X=n(95),ee=n(14494),et=n(52256),en=n(42942);function er(e){var t,n,E,y;let _,{source:w="wallet"}=e,T=(0,b.useTranslations)(),{locale:A,open:I,setOpen:S,confirmOpen:R,setConfirmOpen:P,withdrawSuccessOpen:D,setWithdrawSuccessOpen:M,accountOpen:L,setAccountOpen:W,accountInfoLoaded:k,phoneOpen:B,setPhoneOpen:H,kycOpen:U,setKycOpen:Z,kycPending:er,setKycPending:el,pending:ea,isBalanceWaringDialogOpen:ei,setIsBalanceWaringDialogOpen:es,isBonusWaringDialogOpen:eo,setIsBonusWaringDialogOpen:ec,saveAccountInfoPending:eu,amountVal:ed,setAmountVal:ef,withdrawList:ep,dailyTotalQuota:em,state:eh,withdrawClick:ex,submitClick:ev,withdrawSuccessCallback:eg,methodChange:eE,skipToVip:ey,kycIndia:e_,networkFee:eb,firstInputAccount:ew,createWithdrawPayoutOrder:eN,showWithdrawBannedDialog:ej,showWithdrawLimitDialog:eC,setShowWithdrawBannedDialogHook:eO,setShowWithdrawLimitDialogHook:eT,amountList:eA,withdrawMethodSelectIdx:eI,inviteWithdrawAmountSelectIdx:eS,isMaxLimitDialogOpen:eR,setIsMaxLimitDialogOpen:eP,withdrawTotalInfo:eD,commonWebSettingData:eM}=V({source:w}),eL=ep[eI],eW="invite-account"==w,eF="wallet"==w,[ek,eB]=O.useState("0"),[eH,eU]=O.useState(null),eZ=(0,en.m)(null==eL?void 0:eL.amountList),{manualAmountEnabled:eV,fixedAmountEnabled:eG}=(0,en.x)(eL),eY=eF&&eG&&eZ.length>0,ez=!eF||eV,e$=e=>{let t=e.replace(/[^\d]/g,"").replace(/^0+(?=\d)/,"");eB(t);let n=eZ.find(e=>String(e)===t);eU(null!=n?n:null),ef(t)},eq=e=>{eU(e),eB(String(e)),ef(e)};return eA&&(_=()=>(0,r.jsx)(Y.default,{withdrawList:ep,withdrawMethodSelectIdx:eI,inviteWithdrawAmountSelectIdx:eS})),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:(0,l.cn)("relative flex w-full flex-1 flex-col overflow-auto px-3 pb-4",eF?"gap-y-4 pt-4":"gap-y-3 pt-3"),children:[(0,r.jsx)(i.Z,{accountInfoLoaded:k,setAccountOpen:W}),eF?(0,r.jsxs)("div",{className:"hidden flex-col","aria-hidden":"true",children:[(0,r.jsx)("span",{className:"mb-3 text-base leading-5 text-image1 font-600",children:T("CHOOSE_A_WITHDRAW_METHOD")}),(0,r.jsx)("div",{className:"relative grid w-full grid-cols-3 gap-3",children:(0,r.jsxs)("div",{className:"relative flex h-16 flex-col items-center justify-center overflow-hidden rounded-[0.625rem] border-1.4 border-primary1 bg-primary3",children:[(0,r.jsx)(X.Z,{width:20,height:20,className:"absolute left-1 top-0 h-5 w-5"}),(0,r.jsxs)("div",{className:"flex h-11 items-center justify-center gap-x-1 pt-1",children:[(null==eL?void 0:eL.iconUrl)&&(0,r.jsx)(v.default,{src:eL.iconUrl,alt:"",width:64,height:44,className:"h-11 w-16 object-contain"}),(0,r.jsx)("span",{className:"text-xl text-image1 font-400",children:"I"})]}),(0,r.jsxs)("span",{className:"-mt-1.5 text-xs leading-[0.9375rem] text-image1",children:[null==eL?void 0:null===(t=eL.minLimit)||void 0===t?void 0:t.toLocaleStr
1ing(),"~",null==eL?void 0:null===(n=eL.maxLimit)||void 0===n?void 0:n.toLocaleString()]})]})})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-y-2 rounded-lg bg-bg3 px-2 py-3",children:[(0,r.jsx)("span",{className:"text-sm text-image2",children:T("CHOOSE_A_WITHDRAW_METHOD")}),(0,r.jsx)("div",{className:"relative grid w-full grid-cols-3 gap-2",children:(0,r.jsxs)("div",{className:"relative flex h-16 flex-col items-center justify-center rounded-lg bg-primary3 outline outline-1 outline-primary1",children:[(0,r.jsx)(X.Z,{width:20,height:20,className:"absolute left-1 top-0 h-5 w-5"}),(0,r.jsxs)("div",{className:"flex h-11 items-center justify-center gap-x-1",children:[(null==eL?void 0:eL.iconUrl)&&(0,r.jsx)(v.default,{src:eL.iconUrl,alt:"",width:64,height:44,className:"w-16 object-contain"}),(0,r.jsx)("span",{className:"font-ali text-xl text-white",children:"I"})]}),(0,r.jsxs)("span",{className:"-mt-1.5 text-xs text-image1",children:[null==eL?void 0:null===(E=eL.minLimit)||void 0===E?void 0:E.toLocaleString(),"~",null==eL?void 0:null===(y=eL.maxLimit)||void 0===y?void 0:y.toLocaleString()]})]})})]}),_&&(0,r.jsx)(_,{}),(eY||ez)&&(0,r.jsxs)("div",{className:(0,l.cn)("flex flex-col",eF&&"mt-1"),children:[(0,r.jsx)("p",{className:(0,l.cn)("mb-2",eF?"text-base leading-5 text-image1 font-600":"text-xs text-image2"),children:`${T("WITHDRAW_AMOUNT")} *`}),eY&&(0,r.jsx)("div",{className:(0,l.cn)("grid grid-cols-3 gap-3",eF?"mb-2":"mb-3"),role:"group","aria-label":T("WITHDRAW_AMOUNT"),children:eZ.map(e=>{let t=eH===e;return(0,r.jsx)("button",{type:"button","aria-pressed":t,onClick:()=>eq(e),className:(0,l.cn)("flex h-13.5 cursor-pointer items-center justify-center rounded-lg text-2xl leading-[1.875rem] transition-colors font-500",t?"border-1.4 border-primary1 bg-primary3 text-image1":"border border-bg6 bg-bg4 text-image2"),children:e},e)})}),ez&&(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)(s.I,{className:(0,l.cn)("relative border border-[#3D3D35] bg-[#2D2C28] pl-16",{"disabled:opacity-100":eW}),type:"number",startIconNode:(0,r.jsxs)("span",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#F56600]",children:(0,r.jsx)("span",{className:"font-ali text-xs text-[#FFF]",children:F.Cd})}),(0,r.jsx)("span",{className:"ml-3 text-image1",style:{fontSize:"16px"},children:F.Cd})]}),endIconNode:(0,r.jsxs)("span",{className:"text-secondary1",children:["+",F.Cd,eb," ",T("WALLET_WITHDRAW_V2_FEE")]}),"aria-label":T("WITHDRAW_AMOUNT"),value:eF?ek:ed,onChange:e=>e$(e.target.value),disabled:eW})})]}),"wallet"===w&&(0,r.jsx)(f.Z,{amountVal:ed,showWager:!0}),"invite-account"===w&&(0,r.jsx)(G.default,{amountVal:ed}),(0,r.jsx)(ee.Z,{variant:eF?"withdrawFigma":"default"})]}),(0,r.jsxs)("div",{className:(0,l.cn)("fixed bottom-0 left-1/2 z-50 flex w-full max-w-110 -translate-x-1/2 flex-col items-center bg-bg3 px-3 pb-4 pt-2",eF?"h-[6.5rem]":"justify-center"),children:[(0,r.jsx)(et.Z,{scroll:!1,href:"/transactions-v2?type=Withdraw",className:(0,l.cn)("mb-3 self-end text-sm text-image1 underline",eF?"leading-[1.125rem] font-500":"font-ali"),children:T("TRANSACTIONS_WITHDRAWAL_LOW_SPEED_ORDERS")}),(0,r.jsxs)(K.Z,{onClick:ex,loading:ea,disabled:ea,variant:"bt3",className:(0,l.cn)(eF&&"text-lg font-600"),children:[(0,r.jsx)("span",{children:T("WALLET_WITHDRAW_V2_CONFIRM_WITHDRAW")}),(0,r.jsx)(J.Z,{width:28,height:28,className:"h-7 w-7"})]})]}),(0,r.jsx)(c.default,{open:L,onOpenChange:W,side:"bottom",sheetContentClassName:"",sheetTitleClsName:" justify-start",sheetTitle:T("SET_UP_ACCOUNT_FOR_PIX"),children:(0,r.jsx)("div",{className:"flex flex-1 flex-col justify-center",children:(0,r.jsx)(u.C,{setOpen:S,setConfirmOpen:P})})}),(0,r.jsx)(d.Z,{open:B,onOpenChange:H,needBindEmail:null==eM?void 0:eM.withdrawVerifyEmail,needBindPhone:null==eM?void 0:eM.withdrawVerifyPhone}),(0,r.jsx)(j.Z,{open:U,onOpenChange:Z}),e_&&e_.info&&(0,r.jsx)(C.Z,{open:er,onOpenChange:el,data:null==e_?void 0:e_.info}),(0,r.jsx)(m.Z,{open:R,onOpenChange:P,dialogTitle:T("SETUP_CONFIRMATION"),hideFooterBtn:!0,contentClsName:"gap-0 p-4",titleClsName:"justify-center text-white",children:(0,r.jsxs)("div",{className:"flex flex-col pt-4",children:[(0,r.jsxs)("div",{className:"flex flex-col space-y-2 rounded-lg bg-bggray p-4",children:[(0,r.jsx)("div",{className:"flex w-full items-center justify-between",children:(0,r.jsxs)("span",{className:"text-sm text-white",children:[T("KYC_INDIA_WITHDRAW_ACCOUNT")," "]})}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,r.jsx)("span",{className:"font-ali text-sm text-lightgray",children:T("IFSC_INDIA")}),(0,r.jsx)("span",{className:"text-sm text-primary",children:null==ew?void 0:e
1w.ifsc})]}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,r.jsx)("span",{className:"font-ali text-sm text-lightgray",children:T("ACCOUNT")}),(0,r.jsx)("span",{className:"text-sm text-primary",children:null==ew?void 0:ew.bankAccount})]}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,r.jsx)("span",{className:"font-ali text-sm text-lightgray",children:T("REAL_NAME")}),(0,r.jsx)("span",{className:"text-sm text-primary",children:null==ew?void 0:ew.name})]}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,r.jsx)("span",{className:"font-ali text-sm text-lightgray",children:T("WITHDRAWAL_SET_EMAIL")}),(0,r.jsx)("span",{className:"text-sm text-primary",children:null==ew?void 0:ew.email})]})]}),(0,r.jsxs)("div",{className:"my-4 flex flex-col gap-3 font-ali text-sm text-lightgray",children:[(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("span",{className:"mr-3 mt-2 inline-block h-1 w-1 flex-shrink-0 rounded-full bg-lightgray"}),(0,r.jsx)("span",{className:"flex",children:T("PLEASE_CONFIRM_WHETHER_THE_WITHDRAWAL_INFORMATION_IS_CORRECT")})]}),(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("span",{className:"mr-3 mt-2 inline-block h-1 w-1 flex-shrink-0 rounded-full bg-lightgray"}),(0,r.jsx)("span",{children:T("WHEN_THE_WITHDRAWAL_IS_SUCCESSFUL_THE_FIAT_ACCOUNT_INFORMATION_WILL_BE_TIED_TO_YOUR_USER_ID")})]}),(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("span",{className:"mr-3 mt-2 inline-block h-1 w-1 flex-shrink-0 rounded-full bg-lightgray"}),(0,r.jsx)("span",{children:T("IF_YOU_NEED_TO_MAKE_CHANGES_AFTER_THE_ACCOUNT_IS_SUCCESSFULLY_BOUND_PLEASE_CONTACT_LIVE_SUPPORT_FOR_ASSISTANCE")})]})]}),(0,r.jsxs)("div",{className:"mb-1 flex w-full",children:[(0,r.jsx)(a.z,{className:"mr-2 flex-1 border border-primary bg-background text-primary",onClick:()=>{P(!1)},children:T("CANCEL")}),(0,r.jsx)(o.Z,{text:T("SAVE"),className:"flex-1",pending:eu,disabled:eu,onClick:ev})]})]})}),(0,r.jsx)(N,{open:D,onOpenChange:M,confirmBtnOnClick:eg,source:w}),ei&&(0,r.jsx)(x.Z,{open:ei,openChange:es,showRemainingAmount:!0}),(0,r.jsx)(h.Z,{open:eo,openChange:ec,cancelButtonText:T("RETURN"),confirmButtonText:T("APPLY_FOR_WITHDRAWAL"),confirmButtonCallback:()=>eN(),descriptions:[T("YOUR_BONUS_ACCOUNT_STILL_HAS_UNLOCKED_BONUSES"),T("IF_YOU_APPLY_TO_WITHDRAW_MONEY_FROM_YOUR_BALANCE_ACCOUNT_IT_WILL_BE_DEEMED_AS_GIVING_UP_THE_UNLOCKED_BONUS")]}),ej&&(0,r.jsx)(g.BannedTipDialog,{open:ej,onOpenChange:()=>eO(!ej),tipText:"YOUR_ACCOUNT_HAS_BEEN_RESTRICTED_FROM_WITHDRAWALS_DUE_TO_ABNORMAL_GAMING_BEHAVIOR"}),eC&&(0,r.jsx)(z.Vq,{open:eC,onOpenChange:()=>eT(!eC),children:(0,r.jsx)(z.cZ,{className:"z-[50] space-y-0 rounded-lg border-none bg-transparent p-0 px-4",children:(0,r.jsxs)("div",{className:"relative flex flex-col justify-center rounded-lg bg-background px-4 pb-4 pt-12 text-primary",children:[(0,r.jsx)("div",{className:"mb-6 flex justify-center",children:(0,r.jsx)($.Z,{})}),(0,r.jsx)(q.Z,{}),(0,r.jsx)("div",{className:"mb-4 flex justify-center font-ali-bold text-lg text-primary",children:(0,r.jsx)("span",{className:"flex",children:T("INSUFFICIENT_DAILY_WITHDRAWAL_LIMIT")})}),(0,r.jsxs)("div",{className:"mb-4 flex h-[5.375rem] flex-col items-center justify-center rounded-lg bg-secondary p-4",children:[(0,r.jsx)("p",{className:"mb-2 font-ali text-sm text-lightgray",children:T("REMAINING_DAILY_WITHDRAWAL_LIMIT")}),(0,r.jsxs)("p",{className:"space-x-0.5 font-ali-bold text-xl text-primary",children:[(0,r.jsxs)("span",{children:[F.Cd,null==eh?void 0:eh.totalAmount]}),(0,r.jsx)("span",{children:"/"}),(0,r.jsxs)("span",{children:[F.Cd,em]})]})]}),(0,r.jsx)("ol",{className:"space-y-2 text-start font-ali text-sm text-white",children:["THE_WITHDRAWAL_LIMIT_RESETS_DAILY_AT_00:00:00","UPGRADING_YOUR_VIP_LEVEL_CAN_PROVIDE_A_HIGHER_DAILY_WITHDRAWAL_LIMIT"].map((e,t)=>(0,r.jsxs)("li",{children:[". ",T(e)]},t))}),(0,r.jsx)("div",{className:"my-4 font-ali text-sm text-primary",onClick:ey,children:T("GO_TO_VIEW_THE_VIP_LEVEL_PRIVILEGES_LIST")+" >>"}),(0,r.jsx)(Q.C,{className:"h-12 w-full bg-primary text-background",onClick:()=>eT(!1),children:T("CONFIRM")})]})})}),(0,r.jsx)(p.Z,{open:eR,setOpen:eP,info:eD,nextLevelItem:{vipLevel:null==eD?void 0:eD.nextVipLevel,levelName:null==eD?void 0:eD.nextVipLevelName}})]})}},124:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var r=n(57437),l=n(95317),a=n(45816),i=n(18087),s=n(2265),o=n(43644),c=n(93770),u=n(16463),d=n(22161),f=n(89804);function p(e){let{open:t=!1,onOpenChange:n,sheetContentClassName:p="",sheetTitle:m="",children:h={},hasCloseIcon:x=!0,hasTitle:v=!0,side:g="left",descriptionClsName:E="",titleHeight:y=54,sheetTitleClsName:_="justify-center",overlayZIndex:b="z-50",overlayClassName:w="",style:N={},showBackButton:j=!1,onBack:C=()=>{},fullScreen:O=!0}=e,T=(0,i.useTranslations)(),{hasEnterHome:A}=(0,c.CG)(e=>e.home),I=(0,u.useRouter)(),{locale:S,handleLinkClick:R}=(0,d.Z)(),P=e=>{e.stopPropagation()},D=(0,s.useCallback)(()=>{A?I.back():R()},[A,I,R]);return(0,r.jsxs)(l.yo,{open:t,onOpenChange:n,children:[(0,r.jsx)(l.aM,{asChild:!0,onClick:e=>{e.stopPropagation(),n(!1)}}),(0,r.jsx)(l.ue,{onOpenAutoFocus:e=>e.preventDefault(),className:`max-w-110 rounded-t-lg px-3 pb-4 ${p}`,side:g,hasCloseIcon:x,onInteractOutside:e=>P,overlayZIndex:b,overlayClassName:w,fullScreen:O,style:{width:(0,a.Q1)(f.Iu),maxWidth:"100%",...N},children:(0,r.jsxs)(l.Tu,{className:"space-y-0",children:[v&&(0,r.jsxs)(l.bC,{className:`relative flex flex-shrink-0 items-center pr-5 text-image1 ${_}`,style:{height:(0,a.Q1)(y)},children:[j&&(0,r.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 cursor-pointer rounded-md bg-bg6 p-2",onClick:C||D,children:(0,r.jsx)(o.Z,{width:16,height:16,className:"h-4 w-4"})}),m||T("SET_USER_NAME")]}),(0,r.jsx)("div",{className:`flex flex-1 ${E}`,children:h}),(0,r.jsx)(l.Ei,{})]})})]})}},21222:function(e,t,n){n.d(t,{$N:function(){return h},Be:function(){return x},Vq:function(){return c},cN:function(){return m},cZ:function(){return f},fK:function(){return p}});var r=n(57437),l=n(2265),a=n(32226),i=n(45816),s=n(89804),o=n(14507);let c=a.fC;a.xz;let u=a.h_;a.x8;let d=l.forwardRef((e,t)=>
1{let{className:n,zIndex:l,...s}=e;return(0,r.jsx)(a.aV,{ref:t,className:(0,i.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",n),...s})});d.displayName=a.aV.displayName;let f=l.forwardRef((e,t)=>{let{className:n,hasCloseIcon:l=!1,overlayClassName:c,overlayZIndex:f,disablePortal:p=!1,children:m,...h}=e,x=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{className:c,zIndex:f}),(0,r.jsxs)(a.VY,{ref:t,className:(0,i.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:rounded-lg",f||"z-50",n),style:{maxWidth:`${s.Iu}px`,...h.style},...h,children:[m,l&&(0,r.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,r.jsx)(o.Z,{className:"h-3 w-3 text-image2"}),(0,r.jsx)("span",{className:"sr-only",children:"close"})]})]})]});return p?x:(0,r.jsx)(u,{children:x})});f.displayName=a.VY.displayName;let p=e=>{let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-left sm:text-left",t),...n})};p.displayName="DialogHeader";let m=e=>{let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n})};m.displayName="DialogFooter";let h=l.forwardRef((e,t)=>{let{className:n,...l}=e;return(0,r.jsx)(a.Dx,{ref:t,className:(0,i.cn)("text-left text-image1 tracking-tight",n),...l})});h.displayName=a.Dx.displayName;let x=l.forwardRef((e,t)=>{let{className:n,...l}=e;return(0,r.jsx)(a.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",n),...l})});x.displayName=a.dk.displayName},36661:function(e,t,n){n.d(t,{l0:function(){return f},NI:function(){return E},Wi:function(){return m},xJ:function(){return v},lX:function(){return g},zG:function(){return y}});var r=n(57437),l=n(2265),a=n(71538),i=n(39343),s=n(45816),o=n(38837);let c=(0,n(13027).j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=l.forwardRef((e,t)=>{let{className:n,...l}=e;return(0,r.jsx)(o.f,{ref:t,className:(0,s.cn)(c(),n),...l})});u.displayName=o.f.displayName;var d=n(76780);let f=i.RV,p=l.createContext({}),m=e=>{let{...t}=e;return(0,r.jsx)(p.Provider,{value:{name:t.name},children:(0,r.jsx)(i.Qr,{...t})})},h=()=>{let e=l.useContext(p),t=l.useContext(x),{getFieldState:n,formState:r}=(0,i.Gc)(),a=n(e.name,r);if(!e)throw Error("useFormField should be used within <FormField>");let{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...a}},x=l.createContext({}),v=l.forwardRef((e,t)=>{let{className:n,...a}=e,i=l.useId();return(0,r.jsx)(x.Provider,{value:{id:i},children:(0,r.jsx)("div",{ref:t,className:(0,s.cn)("space-y-4",n),...a})})});v.displayName="FormItem";let g=l.forwardRef((e,t)=>{let{className:n,...l}=e,{error:a,formItemId:i}=h();return(0,r.jsx)(u,{ref:t,className:(0,s.cn)(a&&"text-destructive",n),htmlFor:i,...l})});g.displayName="FormLabel";let E=l.forwardRef((e,t)=>{let{...n}=e,{error:l,formItemId:i,formDescriptionId:s,formMessageId:o}=h();return(0,r.jsx)(a.g7,{ref:t,id:i,"aria-describedby":l?`${s} ${o}`:`${s}`,"aria-invalid":!!l,...n})});E.displayName="FormControl",l.forwardRef((e,t)=>{let{className:n,...l}=e,{formDescriptionId:a}=h();return(0,r.jsx)("p",{ref:t,id:a,className:(0,s.cn)("text-[0.8rem] text-muted-foreground",n),...l})}).displayName="FormDescription";let y=l.forwardRef((e,t)=>{let{className:n,children:l,...a}=e,{error:i,formMessageId:o}=h(),c=i?String(null==i?void 0:i.message):l;return c?(0,r.jsxs)("p",{ref:t,id:o,className:(0,s.cn)("text-[0.8rem] pt-2 flex font-medium text-danger",n),...a,children:[(0,r.jsx)(d.Z,{size:18,className:"mr-1"}),c]}):null});y.displayName="FormMessage"},94268:function(e,t,n){n.d(t,{Zn:function(){return o},aM:function(){return d},cY:function(){return u},hf:function(){return c}});var r=n(57437),l=n(2265),a=n(66431),i=n(45816),s=n(88002);let o=l.forwardRef((e,t)=>
1{let{className:n,containerClassName:l,...s}=e;return(0,r.jsx)(a.uZ,{ref:t,containerClassName:(0,i.cn)("flex items-center gap-1.5 has-[:disabled]:opacity-50",l),className:(0,i.cn)("disabled:cursor-not-allowed",n),...s})});o.displayName="InputOTP";let c=l.forwardRef((e,t)=>{let{className:n,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center  rounded-lg",n),...l})});c.displayName="InputOTPGroup";let u=l.forwardRef((e,t)=>{let{index:n,className:s,...o}=e,{char:c,hasFakeCaret:u,isActive:d}=l.useContext(a.VM).slots[n];return(0,r.jsxs)("div",{ref:t,className:(0,i.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",d&&"border-primary1",s),...o,children:[c,u&&(0,r.jsx)("div",{className:" absolute inset-0 flex items-center justify-center nimate-caret-blink",children:(0,r.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-gray"})})]})});u.displayName="InputOTPSlot";let d=l.forwardRef((e,t)=>{let{...n}=e;return(0,r.jsx)("div",{ref:t,role:"separator",...n,children:(0,r.jsx)(s.Z,{className:"text-gray"})})});d.displayName="InputOTPSeparator"},83102:function(e,t,n){n.d(t,{I:function(){return u}});var r=n(57437),l=n(2265),a=n(45816),i=n(18087),s=n(89804),o=n(47781),c=n(21275);let u=l.forwardRef((e,t)=>{let{className:n,type:u,startIcon:d,endIcon:f,endIconClick:p,endIconNode:m,startIconNode:h,iconProps:x={},maxLength:v=1e4,endIconNodeClassName:g,...E}=e,[y,_]=l.useState(!1),{className:b,...w}=x,N=(0,i.useTranslations)();return"country"===u?(0,r.jsxs)("div",{className:"w-full relative",children:[(0,r.jsxs)("div",{className:"absolute flex items-center  left-4 top-1/2 transform -translate-y-1/2",children:[(0,r.jsxs)("span",{className:"text-image1 mr-4 ",children:["+",s.gJ]}),(0,r.jsx)("span",{className:"bg-image2 h-5 w-[1px]"})]}),(0,r.jsx)("input",{...E,autoComplete:"off",role:"presentation",autoFocus:!1,type:"text",inputMode:"numeric",pattern:"[0-9]*",placeholder:N("ENTER_PHONE_NUMBER"),onChange:e=>{var t;let n=e.target.value;n.startsWith("+")&&(n=n.substring(1)).startsWith(s.gJ)&&(n=n.substring(s.gJ.length)),n=n.replace(/\D/g,""),e.target.value=n,null===(t=E.onChange)||void 0===t||t.call(E,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",n),maxLength:s.yH,ref:t,style:{paddingLeft:(0,a.Q1)(78),...E.style}}),m&&(0,r.jsx)("div",{className:"absolute right-1 top-1/2 transform -translate-y-1/2",onClick:()=>p&&p(),children:m})]}):"password"===u?(0,r.jsxs)("div",{className:"w-full relative",children:[(0,r.jsx)("input",{...E,autoComplete:"off",placeholder:(null==E?void 0:E.placeholder)||N("ENTER_PASSWORD"),role:"presentation",readOnly:null==E?void 0:E.readOnly,type:y?"text":u,maxLength:v,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",n),ref:t,style:{...E.style}}),(0,r.jsx)("button",{onClick:()=>_(e=>!e),className:"absolute right-4 top-1/2 transform -translate-y-1/2",type:"button",children:y?(0,r.jsx)(o.Z,{className:"text-image1",width:22,height:22}):(0,r.jsx)(c.Z,{className:"text-image1",width:22,height:22})})]}):"code"===u?(0,r.jsxs)("div",{className:"w-full relative",children:[d&&(0,r.jsx)("div",{className:"absolute left-4 flex items-center h-full",children:(0,r.jsx)(d,{className:(0,a.cn)("text-muted-foreground size-6  ",b),...w})}),h&&(0,r.jsx)("div",{className:"absolute left-4  z-20 flex h-full items-center",children:h}),(0,r.jsx)("input",{...E,autoComplete:"off",role:"presentation",type:"text",inputMode:"numeric",pattern:"[0-9]*",onChange:e=>{var t;let n=e.target.value.replace(/\D/g,"");e.target.value=n,null===(t=E.onChange)||void 0===t||t.call(E,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",d?"pl-8":"",f?"pr-8":"",n),maxLength:v,ref:t,style:{...E.style}}),f&&(0,r.jsx)("div",{className:"absolute right-3 top-0 flex h-full items-center ",children:(0,r.jsx)(f,{className:(0,a.cn)("text-muted-foreground size-6",b),onClick:()=>p&&p(),...w})}),m&&(0,r.jsx)("div",{className:(0,a.cn)("absolute right-4 top-0 flex h-full items-center",g),onClick:()=>p&&p(),children:m})]}):(0,r.jsxs)("div",{className:"w-full relative",children:[d&&(0,r.jsx)("div",{className:"absolute left-4 flex items-center h-full",children:(0,r.jsx)(d,{className:(0,a.cn)("text-muted-foreground size-6  ",b),...w})}),h&&(0,r.jsx)("div",{className:"absolute left-4  z-20 flex h-full items-center",children:h}),(0,r.jsx)("input",{...E,autoComplete:"off",role:"presentation",type:u,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",d?"pl-8":"",f?"pr-8":"",n),maxLength:v,ref:t,style:{...E.style}}),f&&(0,r.jsx)("div",{className:"absolute right-3 top-0 flex h-full items-center ",children:(0,r.jsx)(f,{className:(0,a.cn)("text-muted-foreground size-6",b),onClick:()=>p&&p(),...w})}),m&&(0,r.jsx)("div",{className:(0,a.cn)("absolute right-4 top-0 flex h-full items-center",g),onClick:()=>p&&p(),children:m})]})});u.displayName="Input"},14494:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(57437),l=n(18087),a=n(2265),i=n(79522),s=n(82767),o=n(53670),c=n(71410),u=n(64715),d=n(45816);function f(e){let{variant:t="default"}=e,n=(0,l.useTranslations)(),f="withdrawFigma"===t,p=(0,u.nu)(),{data:m}=(0,o.KM)(p&&!f?c.P.MESSAGE_GET_DEPOSIT_PROMO_INFO:null),{data:h}=(0,o.KM)(c.P.MESSAGE_GET_TODAY_WITHDRAW_TOTAL),x=a.useCallback((e,t)=>null==e?void 0:e.map(e=>{let l=e.delayMinutes,a=l>=60,i=100*Number(e.compensationRatio)+"%",s=t?n("DEPOSIT_COMPENSATE_DEPOSIT_DELAY_OF_THE_PAYMENT_AMOUNT"):n("WITHDRAWAL_COMPENSATE_WITHDRAWAL_DELAY_OF_THE_PAYMENT_AMOUNT");return(0,r.jsx)("span",{className:"w-full",children:n.rich(s,{color:e=>(0,r.jsx)("span",{className:(0,d.cn)("font-500",f?"text-primary1":"text-secondary1"),children:e}),TIME:a?l/60:l,TIME_UNIT:a?n("COMPENSATE_TIME_UNIT_HOUR"):n("COMPENSATE_TIME_UNIT_MINUTE"),COMPENSATE:i})},`${e.delayMinutes}-${e.compensationRatio}`)}),[f,n]);return(0,r.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center gap-y-3 p-4",f?"min-h-[19.625rem] justify-start rounded-[0.625rem]":"mt-1 justify-center rounded-lg"),style:{background:f?"linear-gradient(180deg, #2E533D 0%, #202A27 100%)":"linear-gradient(180deg, #2E533D 0%, #161919 100%)"},children:[(0,r.jsxs)("div",{className:"flex w-full items-center justify-start",children:[(0,r.jsx)(i.default,{src:"/images/wallet/icon_shield_check.png",width:f?74:64,height:f?74:64,className:(0,d.cn)(f?"mr-4 h-[4.625rem] w-[4.625rem]":"mr-2 h-16 w-16")}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center gap-y-0.5 text-start text-image1",children:[(0,r.jsx)("span",{className:(0,d.cn)("w-full",f?"text-2xl leading-[1.875rem] font-700":"font-ali-bold text-xl"),children:n("WALLET_WITHDRAW_PAYMENT_GUARANTEE")}),(0,r.jsx)("span",{className:(0,d.cn)("w-full",f?"text-base leading-5 font-600":"font-ali-med text-sm"),children:n("WALLET_WITHDRAW_MEETING_WITH_SLOW_PAYMENT_CONFIRMATION_PROBLEM")})]})]}),(0,r.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center justify-start gap-y-1 text-start text-image2",f?"text-sm leading-[1.125rem] font-500":"font-ali text-xs"),children:[f&&(0,r.jsx)("span",{className:"w-full",children:n("WALLET_WITHDRAW_WE_WILL_REWARD_YOU_WITH_FULL_COMPENSATION_NO_QUESTION_ASKED")}),(0,r.jsx)("span",{className:"w-full",children:n.rich("WALLET_WITHDRAW_DONT_WORRY_YOUR_MONEY_IS_ABSOLUTELY_SAFE_WITH_BEANSBET_COM",{BRAND_WEBSITE:(0,s.ZR)(),color:e=>(0,r.jsx)("span",{className:"font-ali-med text-secondary1",children:e})})}),!f&&(0,r.jsx)("span",{className:"w-full",children:n("WALLET_WITHDRAW_WE_WILL_REWARD_YOU_WITH_FULL_COMPENSATION_NO_QUESTION_ASKED")})]}),(0,r.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center justify-start gap-y-1 text-start text-image1",f?"text-sm leading-[1.125rem] font-500":"font-ali text-xs"),children:[f&&(0,r.jsx)("span",{className:"w-full text-base leading-5 font-600",children:n("WALLET_WITHDRAW_WITHDRAWAL_DELAY")}),!f&&x(null==m?void 0:m.transactionDelayCompensations,!0),x(null==h?void 0:h.transactionDelayCompensations,!1)]}),!f&&(0,r.jsx)("div",{className:"flex w-full flex-col items-center justify-start gap-y-1 rounded-sm p-2 text-start font-ali text-xs text-image2",style:{backgroundColor:"hsla(150, 86%, 54%, 0.1)"},children:(0,r.jsxs)("span",{className:"w-full text-image2",children:[(0,r.jsx)(i.default,{src:"/images/wallet/guarantee_icon.png",width:16,height:16,className:"mr-1 inline-block h-4 w-4"}),n.rich("WALLET_YOU_WILL_BE_REDIRECTED_TO_A_THIRD_PARTY_SITE_VERIFIED_BY_FOR_A_SECURE_AND_TRUSTWORTHY_BROWSING_EXPERIENCE",{BRAND_WEBSITE:(0,s.ZR)(),color:e=>(0,r.jsx)("span",{className:"font-ali-med text-secondary1",children:e})})]})})]})}},43572:function(e,t,n){var r=n(2265),l=n(60653);t.Z=function(e){let{state:t,form:n,t:a,successCallback:i,errorCallback:s,showErrorMsg:o=!0}=e;(0,r.useEffect)(()=>
1{if(n.clearErrors(),t&&t.data&&0===t.result&&i&&i(),t&&t.message&&0!=t.result&&(s&&s(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]))}),s&&s(null==t?void 0:t.message)}},[t,n])}},50683:function(e,t,n){n.d(t,{t:function(){return r}});function r(e,t,n){for(let r in e){let l=e[r];if(void 0!=e&&e.hasOwnProperty(r)&&void 0!==l){let e=Array.isArray(l)?l[0]:l;t(r,{type:"server",message:n&&n(e)})}}}},69546:function(e,t,n){n.d(t,{aU:function(){return L},$j:function(){return W},VY:function(){return M},dk:function(){return k},aV:function(){return D},h_:function(){return P},fC:function(){return S},Dx:function(){return F},xz:function(){return R}});var r=n(2265),l=n(98324),a=n(1584),i=n(32226),s=n(78149),o=n(57437),c=Symbol("radix.slottable"),u="AlertDialog",[d,f]=(0,l.b)(u,[i.p8]),p=(0,i.p8)(),m=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,o.jsx)(i.fC,{...r,...n,modal:!0})};m.displayName=u;var h=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,l=p(n);return(0,o.jsx)(i.xz,{...l,...r,ref:t})});h.displayName="AlertDialogTrigger";var x=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,o.jsx)(i.h_,{...r,...n})};x.displayName="AlertDialogPortal";var v=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,l=p(n);return(0,o.jsx)(i.aV,{...l,...r,ref:t})});v.displayName="AlertDialogOverlay";var g="AlertDialogContent",[E,y]=d(g),_=function(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=c,t}("AlertDialogContent"),b=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:l,...c}=e,u=p(n),d=r.useRef(null),f=(0,a.e)(t,d),m=r.useRef(null);return(0,o.jsx)(i.jm,{contentName:g,titleName:w,docsSlug:"alert-dialog",children:(0,o.jsx)(E,{scope:n,cancelRef:m,children:(0,o.jsxs)(i.VY,{role:"alertdialog",...u,...c,ref:f,onOpenAutoFocus:(0,s.Mj)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,o.jsx)(_,{children:l}),(0,o.jsx)(I,{contentRef:d})]})})})});b.displayName=g;var w="AlertDialogTitle",N=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,l=p(n);return(0,o.jsx)(i.Dx,{...l,...r,ref:t})});N.displayName=w;var j="AlertDialogDescription",C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,l=p(n);return(0,o.jsx)(i.dk,{...l,...r,ref:t})});C.displayName=j;var O=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,l=p(n);return(0,o.jsx)(i.x8,{...l,...r,ref:t})});O.displayName="AlertDialogAction";var T="AlertDialogCancel",A=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:l}=y(T,n),s=p(n),c=(0,a.e)(t,l);return(0,o.jsx)(i.x8,{...s,...r,ref:c})});A.displayName=T;var I=e=>{let{contentRef:t}=e,n=`\`${g}\` requires a description for the component to be accessible for screen reader users.
2
3You can add a description to the \`${g}\` by passing a \`${j}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
5Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${g}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
6
7For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},S=m,R=h,P=x,D=v,M=b,L=O,W=A,F=N,k=C},1584:function(e,t,n){n.d(t,{F:function(){return a},e:function(){return i}});var r=n(2265);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function i(...e){return r.useCallback(a(...e),e)}},7568:function(e,t,n){n.d(t,{ee:function(){return Y},Eh:function(){return Q},VY:function(){return q},h_:function(){return $},fC:function(){return G},xz:function(){return z}});var r=n(2265),l=n(78149),a=n(1584),i=n(98324),s=n(53938),o=n(20589),c=n(80467),u=n(53201),d=n(25510),f=n(56935),p=n(31383),m=n(18676),h=n(57437),x=Symbol("radix.slottable");function v(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}var g=n(91715),E=n(78369),y=n(17590),_="Popover",[b,w]=(0,i.b)(_,[d.D7]),N=(0,d.D7)(),[j,C]=b(_),O=e=>{let{__scopePopover:t,children:n,open:l,defaultOpen:a,onOpenChange:i,modal:s=!1}=e,o=N(t),c=r.useRef(null),[f,p]=r.useState(!1),[m,x]=(0,g.T)({prop:l,defaultProp:null!=a&&a,onChange:i,caller:_});return(0,h.jsx)(d.fC,{...o,children:(0,h.jsx)(j,{scope:t,contentId:(0,u.M)(),triggerRef:c,open:m,onOpenChange:x,onOpenToggle:r.useCallback(()=>x(e=>!e),[x]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:s,children:n})})};O.displayName=_;var T="PopoverAnchor",A=r.forwardRef((e,t)=>
7{let{__scopePopover:n,...l}=e,a=C(T,n),i=N(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=a;return r.useEffect(()=>(s(),()=>o()),[s,o]),(0,h.jsx)(d.ee,{...i,...l,ref:t})});A.displayName=T;var I="PopoverTrigger",S=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=C(I,n),s=N(n),o=(0,a.e)(t,i.triggerRef),c=(0,h.jsx)(m.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":V(i.open),...r,ref:o,onClick:(0,l.Mj)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,h.jsx)(d.ee,{asChild:!0,...s,children:c})});S.displayName=I;var R="PopoverPortal",[P,D]=b(R,{forceMount:void 0}),M=e=>{let{__scopePopover:t,forceMount:n,children:r,container:l}=e,a=C(R,t);return(0,h.jsx)(P,{scope:t,forceMount:n,children:(0,h.jsx)(p.z,{present:n||a.open,children:(0,h.jsx)(f.h,{asChild:!0,container:l,children:r})})})};M.displayName=R;var L="PopoverContent",W=r.forwardRef((e,t)=>{let n=D(L,e.__scopePopover),{forceMount:r=n.forceMount,...l}=e,a=C(L,e.__scopePopover);return(0,h.jsx)(p.z,{present:r||a.open,children:a.modal?(0,h.jsx)(k,{...l,ref:t}):(0,h.jsx)(B,{...l,ref:t})})});W.displayName=L;var F=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...l}=e;if(r.isValidElement(n)){var i,s;let e,o;let c=(e=null===(i=Object.getOwnPropertyDescriptor(n.props,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null===(s=Object.getOwnPropertyDescriptor(n,"ref"))||void 0===s?void 0:s.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let r in t){let l=e[r],a=t[r];/^on[A-Z]/.test(r)?l&&a?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=a(...t);return l(...t),r}:l&&(n[r]=l):"style"===r?n[r]={...l,...a}:"className"===r&&(n[r]=[l,a].filter(Boolean).join(" "))}return{...e,...n}}(l,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,a.F)(t,c):c),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...a}=e,i=r.Children.toArray(l),s=i.find(v);if(s){let e=s.props.children,l=i.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,h.jsx)(t,{...a,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}("PopoverContent.RemoveScroll"),k=r.forwardRef((e,t)=>{let n=C(L,e.__scopePopover),i=r.useRef(null),s=(0,a.e)(t,i),o=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,E.Ry)(e)},[]),(0,h.jsx)(y.Z,{as:F,allowPinchZoom:!0,children:(0,h.jsx)(H,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.Mj)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,l.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,l.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),B=r.forwardRef((e,t)=>{let n=C(L,e.__scopePopover),l=r.useRef(!1),a=r.useRef(!1);return(0,h.jsx)(H,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(l.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),l.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(l.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),H=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:l,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...x}=e,v=C(L,n),g=N(n);return(0,o.EW)(),(0,h.jsx)(c.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,h.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1),children:(0,h.jsx)(d.VY,{"data-state":V(v.open),role:"dialog",id:v.contentId,...g,...x,ref:t,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),U="PopoverClose";r.forwardRef((e,t)=>
7{let{__scopePopover:n,...r}=e,a=C(U,n);return(0,h.jsx)(m.WV.button,{type:"button",...r,ref:t,onClick:(0,l.Mj)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=U;var Z=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=N(n);return(0,h.jsx)(d.Eh,{...l,...r,ref:t})});function V(e){return e?"open":"closed"}Z.displayName="PopoverArrow";var G=O,Y=A,z=S,$=M,q=W,Q=Z},71538:function(e,t,n){n.d(t,{Z8:function(){return u},g7:function(){return d}});var r,l=n(2265),a=n(1584),i=n(57437),s=Symbol.for("react.lazy"),o=(r||(r=n.t(l,2)))[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function u(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(c(n)&&"function"==typeof o&&(n=o(n._payload)),l.isValidElement(n)){var i;let e,s;let o=(i=n,(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref),c=function(e,t){let n={...t};for(let r in t){let l=e[r],a=t[r];/^on[A-Z]/.test(r)?l&&a?n[r]=(...e)=>{let t=a(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...a}:"className"===r&&(n[r]=[l,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(c.ref=t?(0,a.F)(t,o):o),l.cloneElement(n,c)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...a}=e;c(r)&&"function"==typeof o&&(r=o(r._payload));let s=l.Children.toArray(r),u=s.find(p);if(u){let e=u.props.children,r=s.map(t=>t!==u?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,i.jsx)(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var d=u("Slot"),f=Symbol("radix.slottable");function p(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}},60364:function(e,t,n){n.d(t,{Eh:function(){return G},VY:function(){return V},zt:function(){return H},fC:function(){return U},xz:function(){return Z}});var r=n(2265),l=n(78149),a=n(1584),i=n(98324),s=n(53938),o=n(53201),c=n(25510),u=(n(56935),n(31383)),d=n(18676),f=n(57437),p=Symbol("radix.slottable"),m=n(91715),h=n(31725),[x,v]=(0,i.b)("Tooltip",[c.D7]),g=(0,c.D7)(),E="TooltipProvider",y="tooltip.open",[_,b]=x(E),w=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:l=300,disableHoverableContent:a=!1,children:i}=e,s=r.useRef(!0),o=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,f.jsx)(_,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,l)},[l]),isPointerInTransitRef:o,onPointerInTransitChange:r.useCallback(e=>{o.current=e},[]),disableHoverableContent:a,children:i})};w.displayName=E;var N="Tooltip",[j,C]=x(N),O=e=>{let{__scopeTooltip:t,children:n,open:l,defaultOpen:a,onOpenChange:i,disableHoverableContent:s,delayDuration:u}=e,d=b(N,e.__scopeTooltip),p=g(t),[h,x]=r.useState(null),v=(0,o.M)(),E=r.useRef(0),_=null!=s?s:d.disableHoverableContent,w=null!=u?u:d.delayDuration,C=r.useRef(!1),[O,T]=(0,m.T)({prop:l,defaultProp:null!=a&&a,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(y))):d.onClose(),null==i||i(e)},caller:N}),A=r.useMemo(()=>O?C.current?"delayed-open":"instant-open":"closed",[O]),I=r.useCallback(()=>{window.clearTimeout(E.current),E.current=0,C.current=!1,T(!0)},[T]),S=r.useCallback(()=>{window.clearTimeout(E.current),E.current=0,T(!1)},[T]),R=r.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{C.current=!0,T(!0),E.current=0},w)},[w,T]);return r.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),(0,f.jsx)(c.fC,{...p,children:(0,f.jsx)(j,{scope:t,contentId:v,open:O,stateAttribute:A,trigger:h,onTriggerChange:x,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?R():I()}
7,[d.isOpenDelayedRef,R,I]),onTriggerLeave:r.useCallback(()=>{_?S():(window.clearTimeout(E.current),E.current=0)},[S,_]),onOpen:I,onClose:S,disableHoverableContent:_,children:n})})};O.displayName=N;var T="TooltipTrigger",A=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,s=C(T,n),o=b(T,n),u=g(n),p=r.useRef(null),m=(0,a.e)(t,p,s.onTriggerChange),h=r.useRef(!1),x=r.useRef(!1),v=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,f.jsx)(c.ee,{asChild:!0,...u,children:(0,f.jsx)(d.WV.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:m,onPointerMove:(0,l.Mj)(e.onPointerMove,e=>{"touch"===e.pointerType||x.current||o.isPointerInTransitRef.current||(s.onTriggerEnter(),x.current=!0)}),onPointerLeave:(0,l.Mj)(e.onPointerLeave,()=>{s.onTriggerLeave(),x.current=!1}),onPointerDown:(0,l.Mj)(e.onPointerDown,()=>{s.open&&s.onClose(),h.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,l.Mj)(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:(0,l.Mj)(e.onBlur,s.onClose),onClick:(0,l.Mj)(e.onClick,s.onClose)})})});A.displayName=T;var[I,S]=x("TooltipPortal",{forceMount:void 0}),R="TooltipContent",P=r.forwardRef((e,t)=>{let n=S(R,e.__scopeTooltip),{forceMount:r=n.forceMount,side:l="top",...a}=e,i=C(R,e.__scopeTooltip);return(0,f.jsx)(u.z,{present:r||i.open,children:i.disableHoverableContent?(0,f.jsx)(F,{side:l,...a,ref:t}):(0,f.jsx)(D,{side:l,...a,ref:t})})}),D=r.forwardRef((e,t)=>{let n=C(R,e.__scopeTooltip),l=b(R,e.__scopeTooltip),i=r.useRef(null),s=(0,a.e)(t,i),[o,c]=r.useState(null),{trigger:u,onClose:d}=n,p=i.current,{onPointerInTransitChange:m}=l,h=r.useCallback(()=>{c(null),m(!1)},[m]),x=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},l=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),l=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,l,a)){case a:return"left";case l:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,l),...function(e){let{top:t,right:n,bottom:r,left:l}=e;return[{x:l,y:t},{x:n,y:t},{x:n,y:r},{x:l,y:r}]}(t.getBoundingClientRect())])),m(!0)},[m]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(u&&p){let e=e=>x(e,p),t=e=>x(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,x,h]),r.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==p?void 0:p.contains(t)),l=!function(e,t){let{x:n,y:r}=e,l=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],s=t[a],o=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-o)*(r-c)/(d-c)+o&&(l=!l)}return l}(n,o);r?h():l&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,o,d,h]),(0,f.jsx)(F,{...e,ref:s})}),[M,L]=x(N,{isInside:!1}),W=function(e){let t=e=>{let{children:t}=e;return(0,f.jsx)(f.Fragment,{children:t})};return t.displayName=`${e}.Slottable`,t.__radixId=p,t}("TooltipContent"),F=r.forwardRef((e,t)=>
7{let{__scopeTooltip:n,children:l,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...u}=e,d=C(R,n),p=g(n),{onClose:m}=d;return r.useEffect(()=>(document.addEventListener(y,m),()=>document.removeEventListener(y,m)),[m]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&m()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,m]),(0,f.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:m,children:(0,f.jsxs)(c.VY,{"data-state":d.stateAttribute,...p,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,f.jsx)(W,{children:l}),(0,f.jsx)(M,{scope:n,isInside:!0,children:(0,f.jsx)(h.fC,{id:d.contentId,role:"tooltip",children:a||l})})]})})});P.displayName=R;var k="TooltipArrow",B=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,l=g(n);return L(k,n).isInside?null:(0,f.jsx)(c.Eh,{...l,...r,ref:t})});B.displayName=k;var H=w,U=O,Z=A,V=P,G=B},13027:function(e,t,n){n.d(t,{cx:function(){return a},j:function(){return i}});var r=n(44839);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.W,i=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let a=l(t)||l(r);return i[e][a]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return a(e,o,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...l}=t;return Object.entries(l).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...c}[t]):({...s,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},66431:function(e,t,n){n.d(t,{VM:function(){return m},uZ:function(){return h}});var r=n(2265),l=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))c.call(t,n)&&u(e,n,t[n]);return e},f=(e,t)=>a(e,i(t)),p=(e,t)=>{var n={};for(var r in e)o.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))0>t.indexOf(r)&&c.call(e,r)&&(n[r]=e[r]);return n},m=r.createContext({}),h=r.forwardRef((e,t)=>{let n;var l,a,i,s,o,{value:c,onChange:u,maxLength:h,textAlign:g="left",pattern:E,placeholder:y,inputMode:_="numeric",onComplete:b,pushPasswordManagerStrategy:w="increase-width",pasteTransformer:N,
vendor: 4,123 bytes, line 7
7containerClassName:j,noScriptCSSFallback:C=v,render:O,children:T}=e,A=p(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[I,S]=r.useState("string"==typeof A.defaultValue?A.defaultValue:""),R=null!=c?c:I,P=(n=r.useRef(),r.useEffect(()=>{n.current=R}),n.current),D=r.useCallback(e=>{null==u||u(e),S(e)},[u]),M=r.useMemo(()=>E?"string"==typeof E?new RegExp(E):E:null,[E]),L=r.useRef(null),W=r.useRef(null),F=r.useRef({value:R,onChange:D,isIOS:"undefined"!=typeof window&&(null==(a=null==(l=null==window?void 0:window.CSS)?void 0:l.supports)?void 0:a.call(l,"-webkit-touch-callout","none"))}),k=r.useRef({prev:[null==(i=L.current)?void 0:i.selectionStart,null==(s=L.current)?void 0:s.selectionEnd,null==(o=L.current)?void 0:o.selectionDirection]});r.useImperativeHandle(t,()=>L.current,[]),r.useEffect(()=>{let e=L.current,t=W.current;if(!e||!t)return;function n(){if(document.activeElement!==e){G(null),z(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,l=e.maxLength,a=e.value,i=k.current.prev,s=-1,o=-1,c;if(0!==a.length&&null!==t&&null!==n){let e=t===n,r=t===a.length&&a.length<l;if(e&&!r){if(0===t)s=0,o=1,c="forward";else if(t===l)s=t-1,o=t,c="backward";else if(l>1&&a.length>1){let e=0;if(null!==i[0]&&null!==i[1]){c=t<i[1]?"backward":"forward";let n=i[0]===i[1]&&i[0]<l;"backward"!==c||n||(e=-1)}s=e+t,o=e+t+1}}-1!==s&&-1!==o&&s!==o&&L.current.setSelectionRange(s,o,c)}let u=-1!==s?s:t,d=-1!==o?o:n,f=null!=c?c:r;G(u),z(d),k.current.prev=[u,d,f]}if(F.current.value!==e.value&&F.current.onChange(e.value),k.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&Z(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";x(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),x(e.sheet,`[data-input-otp]:autofill { ${t} }`),x(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),x(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),x(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let l=new ResizeObserver(r);return l.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),l.disconnect()}},[]);let[B,H]=r.useState(!1),[U,Z]=r.useState(!1),[V,G]=r.useState(null),[Y,z]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=L.current)||e.dispatchEvent(new Event("input"));let l=null==(t=L.current)?void 0:t.selectionStart,a=null==(n=L.current)?void 0:n.selectionEnd,i=null==(r=L.current)?void 0:r.selectionDirection;null!==l&&null!==a&&(G(l),z(a),k.current.prev=[l,a,i])},0),setTimeout(e,10),setTimeout(e,50)},[R,U]),r.useEffect(()=>{void 0!==P&&R!==P&&P.length<h&&R.length===h&&(null==b||b(R))},[h,b,P,R]);let $=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:l}){let[a,i]=r.useState(!1),[s,o]=r.useState(!1),[c,u]=r.useState(!1),d=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&a&&s,[a,s,n]),f=r.useCallback(()=>{let r=e.current,l=t.current;if(!r||!l||c||"none"===n)return;let a=r.getBoundingClientRect().left+r.offsetWidth,s=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;
7"]').length&&document.elementFromPoint(a-18,s)===r||(i(!0),u(!0))},[e,t,c,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){o(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let l=setInterval(r,1e3);return()=>{clearInterval(l)}},[e,n]),r.useEffect(()=>{let e=l||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(f,0),a=setTimeout(f,2e3),i=setTimeout(f,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(a),clearTimeout(i),clearTimeout(s)}},[t,l,n,f]),{hasPWMBadge:a,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:W,inputRef:L,pushPasswordManagerStrategy:w,isFocused:U}),q=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,h);if(t.length>0&&M&&!M.test(t)){e.preventDefault();return}"string"==typeof P&&t.length<P.length&&document.dispatchEvent(new Event("selectionchange")),D(t)},[h,D,P,M]),Q=r.useCallback(()=>{var e;if(L.current){let t=Math.min(L.current.value.length,h-1),n=L.current.value.length;null==(e=L.current)||e.setSelectionRange(t,n),G(t),z(n)}Z(!0)},[h]),K=r.useCallback(e=>{var t,n;let r=L.current;if(!N&&(!F.current.isIOS||!e.clipboardData||!r))return;let l=e.clipboardData.getData("text/plain"),a=N?N(l):l;e.preventDefault();let i=null==(t=L.current)?void 0:t.selectionStart,s=null==(n=L.current)?void 0:n.selectionEnd,o=(i!==s?R.slice(0,i)+a+R.slice(s):R.slice(0,i)+a+R.slice(i)).slice(0,h);if(o.length>0&&M&&!M.test(o))return;r.value=o,D(o);let c=Math.min(o.length,h-1),u=o.length;r.setSelectionRange(c,u),G(c),z(u)},[h,D,M,R]),J=r.useMemo(()=>({position:"relative",cursor:A.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[A.disabled]),X=r.useMemo(()=>({position:"absolute",inset:0,width:$.willPushPWMBadge?`calc(100% + ${$.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:$.willPushPWMBadge?`inset(0 ${$.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:g,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[$.PWM_BADGE_SPACE_WIDTH,$.willPushPWMBadge,g]),ee=r.useMemo(()=>r.createElement("input",f(d({autoComplete:A.autoComplete||"one-time-code"},A),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===R.length||void 0,"data-input-otp-mss":V,"data-input-otp-mse":Y,inputMode:_,pattern:null==M?void 0:M.source,"aria-placeholder":y,style:X,maxLength:h,value:R,ref:L,onPaste:e=>{var t;K(e),null==(t=A.onPaste)||t.call(A,e)},onChange:q,onMouseOver:e=>{var t;H(!0),null==(t=A.onMouseOver)||t.call(A,e)},onMouseLeave:e=>{var t;H(!1),null==(t=A.onMouseLeave)||t.call(A,e)},onFocus:e=>{var t;Q(),null==(t=A.onFocus)||t.call(A,e)},onBlur:e=>{var t;Z(!1),null==(t=A.onBlur)||t.call(A,e)}})),[q,Q,K,_,X,h,Y,V,A,null==M?void 0:M.source,R]),et=r.useMemo(()=>({slots:Array.from({length:h}).map((e,t)=>{var n;let r=U&&null!==V&&null!==Y&&(V===Y&&t===V||t>=V&&t<Y),l=void 0!==R[t]?R[t]:null;return{char:l,placeholderChar:void 0!==R[0]?null:null!=(n=null==y?void 0:y[t])?n:null,isActive:r,hasFakeCaret:r&&null===l}}),isFocused:U,isHovering:!A.disabled&&B}),[U,B,h,Y,V,A.disabled,R]),en=r.useMemo(()=>O?O(et):r.createElement(m.Provider,{value:et},T),[T,et,O]);return r.createElement(r.Fragment,null,null!==C&&r.createElement("noscript",null,r.createElement("style",null,C)),r.createElement("div",{ref:W,"data-input-otp-container":!0,style:J,className:j},en,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ee)))});function x(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}h.displayName="Input";var v=`
8[data-input-otp] {
9  --nojs-bg: white !important;
10  --nojs-fg: black !important;
11
12  background-color: var(--nojs-bg) !important;
13  color: var(--nojs-fg) !important;
14  caret-color: var(--nojs-fg) !important;
15  letter-spacing: .25em !important;
16  text-align: center !important;
17  border: 1px solid var(--nojs-fg) !important;
18  border-radius: 4px !important;
19  width: 100% !important;
20}
21@media (prefers-color-scheme: dark) {
22  [data-input-otp] {
23    --nojs-bg: black !important;
24    --nojs-fg: white !important;
25  }
26}`}}]);

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.