PageSourceSearch

https://kubet.lt/_next/static/chunks/7161-d1610258b4d3f555.js

js kubet.lt collected 2026-10-02 02:00:27 UTC 63,013 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7161],{48464:function(e,t,s){!function(){var t={452:function(e){"use strict";e.exports=s(46405)}},a={};function o(e){var s=a[e];if(void 0!==s)return s.exports;var n=a[e]={exports:{}},r=!0;try{t[e](n,n.exports,o),r=!1}finally{r&&delete a[e]}return n.exports}o.ab="//";var n={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,s=/https?|ftp|gopher|file/;function a(e){"string"==typeof e&&(e=w(e));var a,o,n,r,i,l,c,u,d,h=(o=(a=e).auth,n=a.hostname,r=a.protocol||"",i=a.pathname||"",l=a.hash||"",c=a.query||"",u=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",a.host?u=o+a.host:n&&(u=o+(~n.indexOf(":")?"["+n+"]":n),a.port&&(u+=":"+a.port)),c&&"object"==typeof c&&(c=t.encode(c)),d=a.search||c&&"?"+c||"",r&&":"!==r.substr(-1)&&(r+=":"),a.slashes||(!r||s.test(r))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:r,host:u,pathname:i=i.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var r="http://",i=r+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function u(e,t){var s="string"==typeof e?w(e):e;e="object"==typeof e?a(e):e;var o=w(t),n="";s.protocol&&!s.slashes&&(n=s.protocol,e=e.replace(s.protocol,""),n+="/"===t[0]||"/"===e[0]?"/":""),n&&o.protocol&&(n="",o.slashes||(n=o.protocol,t=t.replace(o.protocol,"")));var u=e.match(l);u&&!o.protocol&&(e=e.substr((n=u[1]+(u[2]||"")).length),/^\/\/[^/]/.test(t)&&(n=n.slice(0,-1)));var d=new URL(e,i+"/"),h=new URL(t,d).toString().replace(i,""),p=o.protocol||s.protocol;return p+=s.slashes||o.slashes?"//":"",!n&&p?h=h.replace(r,p):n&&(h=h.replace(r,"")),c.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),n&&(h=n+("/"===h[0]?h.substr(1):h)),h}function d(){}d.prototype.parse=w,d.prototype.format=a,d.prototype.resolve=u,d.prototype.resolveObject=u;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,x=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function w(e,s,o){if(void 0===s&&(s=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof d)return e;var n=(e=e.trim()).match(p);e=n?n[1].replace(/\\/g,"/")+n[2]:e.replace(/\\/g,"/"),x.test(e)&&"/"!==e.slice(-1)&&(e+="/");var r=!/(^javascript)/.test(e)&&e.match(m),l=g.test(e),c="";r&&(h.test(r[1])||(c=r[1].toLowerCase(),e=""+r[2]+r[3]),r[2]||(l=!1,h.test(r[1])?(c=r[1],e=""+r[3]):e="//"+r[3]),3!==r[2].length&&1!==r[2].length||(c=r[1],e="/"+r[3]));var u,w=(n?n[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=w&&w[1],f=new d,_="",A="";try{u=new URL(e)}catch(t){_=t,c||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(A="/",e=e.substr(1));try{u=new URL(e,i)}catch(e){return f.protocol=c,f.href=c,f}}f.slashes=l&&!A,f.host="w.w"===u.host?"":u.host,f.hostname="w.w"===u.hostname?"":u.hostname.replace(/(\[|\])/g,""),f.protocol=_?c||null:u.protocol,f.search=u.search.replace(/\\/g,"%5C"),f.hash=u.hash.replace(/\\/g,"%5C");var v=e.split("#");!f.search&&~v[0].indexOf("?")&&(f.search="?"),f.hash||""!==v[1]||(f.hash="#"),f.query=s?t.decode(u.search.substr(1)):f.search.substr(1),f.pathname=A+(r?u.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):u.pathname),"about:"===f.protocol&&"blank"===f.pathname&&(f.protocol="",f.pathname=""),_&&"/"!==e[0]&&(f.pathname=f.pathname.substr(1)),c&&!h.test(c)&&"/"!==e.slice(-1)&&"/"===f.pathname&&(f.pathname=""),f.path=f.pathname+f.search,f.auth=[u.username,u.password].map(decodeURIComponent).filter(Boolean).join(":"),f.port=u.port,b&&!f.host.endsWith(b)&&(f.host+=b,f.port=b.slice(1)),f.href=A?""+f.pathname+f.search+f.hash:a(f);var C=/^(file)/.test(f.href)?["host","hostname"]:[];return Object.keys(f).forEach(function(e){~C.indexOf(e)||(f[e]=f[e]||null)}),f}n.parse=w,n.format=a,n.resolve=u,n.resolveObject=function(e,t){return w(u(e,t))},n.Url=d}(),e.exports=n}()},46405:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,s,a,o){s=s||"&",a=a||"=";var n={};if("string"!=typeof e||0===e.length)return n;var r=/\+/g;e=e.split(s);var i=1e3;o&&"number"==typeof o.maxKeys&&(i=o.maxKeys);var l=e.length;i>0&&l>i&&(l=i);for(var c=0;c<l;++c){var u,d,h,p,m=e[c].replace(r,"%20"),g=m.indexOf(a);(g>=0?(u=m.substr(0,g),d=m.substr(g+1)):(u=m,d=""),h=decodeURIComponent(u),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(n,h))?t(n[h])?n[h].push(p):n[h]=[n[h],p]:n[h]=p}return n};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return(n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e)?a(o(e),function(o){var i=encodeURIComponent(t(o))+r;return s(e[o])?a(e[o],function(e){return i+encodeURIComponent(t(e))}).join(n):i+encodeURIComponent(t(e[o]))}).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var s=[],a=0;a<e.length;a++)s.push(t(e[a],a));return s}var o=Object.keys||function(e){var t=[];
1for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.push(s);return t}}},s={};function a(e){var o=s[e];if(void 0!==o)return o.exports;var n=s[e]={exports:{}},r=!0;try{t[e](n,n.exports,a),r=!1}finally{r&&delete s[e]}return n.exports}a.ab="//";var o={};o.decode=o.parse=a(815),o.encode=o.stringify=a(577),e.exports=o}()},12920:function(e,t,s){"use strict";var a=s(57437),o=s(97826),n=s.n(o);t.Z=e=>{let{type:t,labelClassName:s,isMobile:o,children:r,disabled:i,name:l,checked:c,onChange:u,onBlur:d}=e,h=n().checkbox;s&&(h="".concat(h," ").concat(s));let p={wrapper:n().checkboxInputWrapper,input:n().checkboxHidden};return o&&(p={wrapper:"".concat(p.wrapper," ").concat(n().mobile),input:n().checkboxHiddenMobile}),(0,a.jsxs)("label",{className:h,children:[(0,a.jsx)("div",{className:p.wrapper,children:(0,a.jsx)("input",{className:p.input,type:"checkbox",disabled:i,onChange:u,onBlur:d,name:l,checked:c})}),(0,a.jsx)("span",{className:n().checkboxlabelWrapper,children:r})]})}},79847:function(e,t,s){"use strict";var a=s(57437);s(2265);var o=s(89042),n=s.n(o);t.Z=e=>{let{maxLength:t,allowOnlyNumbers:s,isMobile:o,...r}=e,i=e=>/\d/.test(e),l=(e,t)=>!["Backspace","Delete","ArrowLeft","ArrowRight"].includes(e)&&8!==t;return(0,a.jsx)("div",{className:n().inputWrapper,children:(0,a.jsx)("input",{type:"number",className:"".concat(n().input," ").concat(n().inputNumber," ").concat(o&&n().mobile," px-[8px] py-[4px] h-[35px]"),onKeyDown:e=>{let{value:a}=e.target,o=t&&a.length>=t,n=s&&!i(e.key)&&l(e.key,e.keyCode),r=o&&l(e.key,e.keyCode);(n||r)&&e.preventDefault()},...r})})}},87323:function(e,t,s){"use strict";var a=s(57437);s(2265);var o=s(9010),n=s.n(o);t.Z=e=>{let{className:t="",children:s,badgePosition:o,onClick:r}=e;return(0,a.jsxs)("div",{className:["cursor-pointer",n().iconButton,t].join(" "),onClick:r,children:[s,o&&(0,a.jsx)("span",{className:n()[o],children:(0,a.jsx)("div",{className:"bg-red-200 p-1 rounded-full w-1 h-1"})})]})}},90899:function(e,t,s){"use strict";var a=s(57437),o=s(48639);let n=()=>(0,a.jsxs)("svg",{width:"22",height:"14",viewBox:"0 0 5.8208332 3.7041666",version:"1.1",id:"svg1",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("defs",{id:"defs1"}),(0,a.jsx)("g",{id:"layer1",children:(0,a.jsx)("path",{style:{fill:"#ffffff",fillOpacity:1,stroke:"#e5e5e5",strokeWidth:.264583,strokeDasharray:"none",strokeOpacity:1},d:"M 5.8186539,-0.18915696 2.9126016,3.4918425 0.00654922,-0.19722936 l -0.00807,-0.75073007 5.83632158,0.03229 z",id:"path1"})})]}),r=()=>(0,a.jsxs)("svg",{width:"22",height:"14",viewBox:"0 0 5.8208332 3.7041666",version:"1.1",id:"svg1",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("defs",{id:"defs1"}),(0,a.jsx)("g",{id:"layer1",children:(0,a.jsx)("path",{style:{fill:"#ffffff",fillOpacity:1,stroke:"#e5e5e5",strokeWidth:.264583,strokeDasharray:"none",strokeOpacity:1},d:"M 0.01614473,3.8872715 2.922197,0.20627198 5.8282494,3.8953439 5.8363194,4.646074 -2.1351963e-6,4.613784 Z",id:"path1"})})]});t.Z=e=>{let{children:t,content:s,show:i,position:l=o.I.TOP,className:c}=e,u="absolute bottom-[100%] z-10";return l===o.I.BOTTOM&&(u="absolute top-[100%] z-10"),(0,a.jsxs)("div",{className:"relative",children:[t,i&&(0,a.jsxs)("div",{className:"".concat(u," ").concat(c||""),children:[l===o.I.BOTTOM&&(0,a.jsx)("div",{className:"mb-[-1px] ml-[12px]",children:(0,a.jsx)(r,{})}),(0,a.jsx)("div",{className:"bg-neutral-10 shadow-lg border-box p-[6px] w-auto rounded-[4px] border-[1px] border-neutral-100",children:s}),l===o.I.TOP&&(0,a.jsx)("div",{className:"mt-[-1px] ml-[12px]",children:(0,a.jsx)(n,{})})]})]})}},3242:function(e,t,s){"use strict";var a=s(57437),o=s(97168),n=s.n(o),r=s(55535);let i=e=>{switch(e){case r._.WHITE_ARROW_BOTTOM:return n().toolTipWhiteArrow;case r._.DEFAULT:default:return n().toolTipDefault}};t.Z=e=>{let{children:t,message:s,isShown:o=!0,onClick:l,className:c,tooltipStyle:u=r._.DEFAULT}=e;return(0,a.jsxs)("div",{className:"group relative inline-block",children:[(0,a.jsx)("span",{onClick:l,children:t}),s&&(0,a.jsx)("span",{className:"".concat(n().toolTip," ").concat(i(u)," ").concat(o?"block":"hidden"," group opacity-0 invisible group-hover:opacity-80 group-hover:visible ").concat(c),children:s})]})}},68237:function(e,t,s){"use strict";s.d(t,{default:function(){return e2}});var a,o,n,r,i=s(57437),l=s(75049),c=s.n(l),u=s(98570),d=s(47945),h=s(20463),p=s.n(h),m=s(66648),g={src:"/_next/static/media/logoutIcon.0dde8666.png",height:24,width:24,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEXj8v/j9v/l9f/l9P9MaXHk8//k8v7////MzP/j8//h8v/m9P/p+P/+DxLNAAAADXRSTlNlLSSYAIZbAQXhRX+dFYJxKAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAC9JREFUeJxNi0kOACAMhKYtdf//e72o8UYCCJdkVLFmyaCJcBiGCCvK7j9c9eKzbyWPAQvzUjFeAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},x={src:"/_next/static/media/memberIcon.e4f3b928.png",height:24,width:24,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEVMaXHj8//d7v/g8v/q///k8//l9P/z+v7j8//l9P+jmFBCAAAACnRSTlMAdgwlBoxHflw9jrZkWgAAAAlwSFlzAAALEwAACxMBAJqcGAAAADJJREFUeJwdiskNADAIwxyOAvsvXEE+tqwAuHNrqZdWULam93QlM3OLBkbgIgI5cT+LDxFwAIHyyFM3AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},w=s(87323),b=s(3242),f=s(18087),_=s(53268),A=s(46612),v=s(62838),C=s(11038),S=s(57818),N=s(2265),j=s(19214),k=s(17821),y=s(65749),E=s(73988),O=s(68295),M=s.n(O),T=e=>(0,i.jsx)("textarea",{className:"".concat(M().textarea),...e}),L=s(7659),I=s(81903),P=s.n(I);(a=n||(n={})).BOTTOM_LEFT="bottom-left",a.BOTTOM_RIGHT="bottom-right";let R=e=>{let{slot:t,align:s="bottom-right"}=e,a=P().right;return"bottom-left"===s&&(a=P().left),(0,i.jsx)("span",{className:"".concat(P().indicator," ").concat(a," bg-red-500"),children:t})};var B=e=>{let{textArea:t,lengthIndicator:s,indicatorAligment:a,indicatorSlot:o}=e;return s?(0,i.jsxs)("div",{className:P().textAreaWrapper,children:[(0,i.jsx)("div",{className:"w-full h-[108px]",children:t}),(0,i.jsx)("div",{className:"w-full h-[18px]",children:(0,i.jsx)(R,{slot:o,align:a})})]}):t},W=e=>{let{initialValues:t,handleFormSubmit:s}=e,a=(0,f.useTranslations)("Member.PersonalMessage.LeaveMessageModal");return(0,i.jsx)(k.J9,{initialValues:t,onSubmit:s,children:e=>{let{values:t,setFieldValue:s,handleSubmit:o,resetForm:r}=e;
1return(0,i.jsxs)(k.l0,{children:[(0,i.jsx)(L.Z,{align:y.$.COLUMN,label:a("messageContent"),children:(0,i.jsx)(B,{textArea:(0,i.jsx)(T,{name:"messageContent",value:t.messageContent,placeholder:a("messageContentPlaceholder"),maxLength:1e3,onChange:e=>{(0,E.PO)(e,"messageContent",s)}}),lengthIndicator:!0,indicatorAligment:n.BOTTOM_RIGHT,indicatorSlot:"(".concat(t.messageContent.length," / ").concat(1e3,")")})}),(0,i.jsxs)("div",{className:"flex gap-2 mt-4 justify-between items-center",children:[(0,i.jsx)(u.z,{size:d.qE.LARGE,label:a("buttonLeft"),variant:d.Wu.OUTLINE,fullWidth:!0,onClick:r,type:"button"}),(0,i.jsx)(u.z,{size:d.qE.LARGE,label:a("buttonRight"),variant:d.Wu.PRIMARY,fullWidth:!0,type:"submit",onClick:o})]})]})}})},D=s(87492);let H=e=>{let{isOpen:t,onClose:s}=e,a=(0,f.useTranslations)("Member.PersonalMessage.LeaveMessageModal.LeaveMessageContentErrorModal");return(0,i.jsx)(D.s,{modal:{showCloseIcon:!1,title:a("title"),children:(0,i.jsx)("div",{className:"text-black text-center pl-5 pr-5",children:a("description")}),isOpen:t},rightButton:{label:a("button"),onClick:s}})};var F=(0,S.default)(()=>Promise.resolve(H),{ssr:!1});let Z=e=>{let{isOpen:t,leftButton:s,rightButton:a}=e,o=(0,f.useTranslations)("Member.PersonalMessage.LeaveMessageModal.LeaveMessageContentConfirmationModal");return(0,i.jsx)(D.s,{modal:{showCloseIcon:!1,title:o("title"),children:(0,i.jsx)("div",{className:"text-black text-center pl-5 pr-5",children:o("description")}),isOpen:t},rightButton:{label:o("buttonRight"),onClick:a.onClick},leftButton:{label:o("buttonLeft"),onClick:s.onClick}})};var U=(0,S.default)(()=>Promise.resolve(Z),{ssr:!1});let G=e=>{let{isOpen:t,onClick:s}=e,a=(0,f.useTranslations)("Member.PersonalMessage.LeaveMessageModal.LeaveMessageContentSuccessModal");return(0,i.jsx)(D.s,{modal:{showCloseIcon:!1,title:a("title"),children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)("div",{className:"text-black text-center pl-5 pr-5",children:a("sucessText1")}),(0,i.jsx)("div",{className:"text-black text-center pl-5 pr-5",children:a("sucessText2")})]}),isOpen:t},rightButton:{label:a("button"),onClick:s}})};var J=(0,S.default)(()=>Promise.resolve(G),{ssr:!1});let V=e=>{let{isOpen:t,onClose:s}=e,a={messageContent:""},o=(0,f.useTranslations)("Member.PersonalMessage.LeaveMessageModal"),[n,r]=(0,N.useState)(a),[l,c]=(0,N.useState)(!1),[u,d]=(0,N.useState)(!1),[h,p]=(0,N.useState)(!1),m=e=>{r(e),d(!0)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.u,{isOpen:t,title:o("title"),onClose:s,noFocusTrap:!0,children:(0,i.jsx)(W,{initialValues:a,handleFormSubmit:e=>{let{messageContent:t}=e;t.trim().length?m(e):c(!0)}})}),(0,i.jsx)(J,{isOpen:h,onClick:()=>{r(a),p(!1),null==s||s()}}),(0,i.jsx)(U,{isOpen:u,rightButton:{onClick:()=>{d(!1),console.log("message to send :",n),p(!0)}},leftButton:{onClick:()=>d(!1)}}),(0,i.jsx)(F,{isOpen:l,onClose:()=>c(!1)})]})};var z=(0,S.default)(()=>Promise.resolve(V),{ssr:!1}),K=s(23992),q=s(89280),Y=s(63530),X=s(51622),Q=s(25566),$=()=>{let e=(0,f.useTranslations)("Header"),{logout:t}=(0,C.Z)(),{intlRoute:s}=(0,K.Z)(),{userBalance:a,userNickname:o}=(0,N.useContext)(Y.Z),{showFakeWithdraw:n,showFakeWithdrawModal:r}=(0,N.useContext)(X.V),l=e=>{n?r():e()},[c,h]=(0,N.useState)(!1);return(0,i.jsx)("main",{className:"flex justify-between items-center",children:(0,i.jsxs)(_.Z,{children:[(0,i.jsxs)("div",{className:"flex items-center mr-6 gap-4",children:[(0,i.jsx)("span",{className:"uppercase text-neutral-10",children:o}),(0,i.jsxs)("span",{className:"text-orange-100",children:["$",a]}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(u.z,{label:e("recharge"),size:d.qE.SMALL,className:"".concat(p().rechargeButton," ").concat(p().active),onClick:()=>{l(()=>{(0,A.xw)(s(Q.env.NEXT_PUBLIC_IS_SENPAY_ENABLE?q.Z.MEMBER_DEPOSIT_SENPAY:q.Z.MEMBER_DEPOSIT_NICEPAY),v.J.WINDOW,A.lH)})}}),(0,i.jsx)(u.z,{label:e("withdraw"),size:d.qE.SMALL,className:"".concat(p().withdrawButton),onClick:()=>{l(()=>{(0,A.xw)(s(q.Z.MEMBER_WITHDRAWAL),v.J.WINDOW,A.lH)})}})]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)(b.Z,{message:e("member"),children:(0,i.jsx)(w.Z,{children:(0,i.jsx)(m.default,{src:x,alt:"member icon",onClick:()=>{l(()=>{(0,A.xw)(s(q.Z.MEMBER_PROFILE),v.J.WINDOW,A.lH)})}})})}),(0,i.jsx)(b.Z,{message:e("logout"),children:(0,i.jsx)(w.Z,{children:(0,i.jsx)(m.default,{src:g,alt:"logout icon",onClick:t})})})]}),(0,i.jsx)(z,{isOpen:c,onClose:()=>{h(!1)}})]})})},ee=s(81530),et=s(61858),es=s(11006),ea=s(49917),eo=s.n(ea),en=s(85344),er=s(47364),ei=()=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"#32ABFF"}),(0,i.jsx)("circle",{cx:"40",cy:"40",r:"32",fill:"#32ABFF",stroke:"white",strokeWidth:"2"}),(0,i.jsx)("path",{d:"M57.6098 33.3538C57.6098 31.821 57.3084 30.3356 56.7186 28.932C56.1459 27.58 55.3279 26.3658 54.2859 25.3239C53.244 24.2819 52.0298 23.4639 50.6779 22.8913C49.2786 22.2971 47.7888 22 46.2561 22C44.7233 22 43.2379 22.3014 41.8342 22.8913C40.4823 23.4639 39.2681 24.2819 38.2262 25.3239C37.1842 26.3658 36.3662 27.58 35.7935 28.932C35.1994 30.3313 34.9023 31.821 34.9023 33.3538C34.9023 35.2698 35.3845 37.147 36.3016 38.8175L22.7089 52.3973C22.3946 52.7116 22.2956 53.1895 22.4893 53.6416C22.5281 53.7363 22.5927 53.8224 22.6659 53.8956L25.7099 56.9396C25.7831 57.0128 25.8692 57.0731 25.9639 57.1162C26.416 57.3099 26.8939 57.2152 27.2082 56.8966L29.0898 55.015L31.798 57.7232C31.8712 57.7964 31.9573 57.8567 32.0519 57.8998C32.504 58.0935 32.982 57.9988 33.2963 57.6802L36.2972 54.6792C36.3704 54.606 36.4307 54.5199 36.4738 54.4252C36.6675 53.9731 36.5728 53.4952 36.2542 53.1809L33.589 50.5158L40.7879 43.3126C42.4542 44.2296 44.3357 44.7119 46.2517 44.7119C47.7845 44.7119 49.2699 44.4105 50.6735 43.8206C52.0254 43.248 53.2396 42.4299 54.2816 41.388C55.3235 40.3461 56.1415 39.1319 56.7142 37.7799
1C57.3084 36.372 57.6098 34.8866 57.6098 33.3538ZM50.2344 37.3364C49.171 38.3999 47.7544 38.9855 46.2518 38.9855C44.7491 38.9855 43.3326 38.3999 42.2691 37.3364C41.2057 36.273 40.6158 34.8564 40.6158 33.3538C40.6158 31.8468 41.2014 30.4346 42.2648 29.3711C43.3283 28.3077 44.7449 27.7221 46.2475 27.7221C47.7501 27.7221 49.1667 28.3077 50.2301 29.3711C51.2936 30.4346 51.8792 31.8511 51.8792 33.3538C51.8877 34.8564 51.3022 36.273 50.2344 37.3364Z",fill:"white"})]})}),el=s(17906);(o=r||(r={})).LOGIN_PASSWORD="LoginPassword",o.SECURITY_PASSWORD="SecurityPassword",o.BOTH_PASSWORDS="LoginAndSecurityPassword";var ec=s(64615),eu=s(57345),ed=()=>{let e=async e=>(0,eu.I)(ec.B.SETUP_NEW_PASSWORD,{cache:"no-cache"}).catch(e=>{throw e.error});return{changePassword:async t=>{try{let s=await e(t);if(s)return s;throw Error()}catch(e){throw Error("Error. Try again")}}}},eh=s(80062),ep=s(71255),em=s(91521);let eg=e=>{let{isOpen:t,onClose:s,setupType:a}=e,o=(0,f.useTranslations)("Header.setupnewpasswordmodal"),{changePassword:n}=ed(),[l,c]=(0,N.useState)(!1),[d,h]=(0,N.useState)(!1),[p,g]=(0,N.useState)(!1),[x,w]=(0,N.useState)(!1),b=(0,em.tv)();(0,N.useEffect)(()=>{x&&setTimeout(()=>{s(),b.push("/")},3e3)},[x]);let _=async e=>{try{var t;let s={};a===r.LOGIN_PASSWORD&&(s={loginPassword:e.loginPassword,loginConfirmPassword:e.loginConfirmPassword}),a===r.SECURITY_PASSWORD&&(s={securitypassword:e.securitypassword,confirmsecuritypassword:e.confirmsecuritypassword}),a===r.BOTH_PASSWORDS&&(s={loginPassword:e.loginPassword,loginConfirmPassword:e.loginConfirmPassword,securitypassword:e.securitypassword,confirmsecuritypassword:e.confirmsecuritypassword});let o=await n(s),i=o.status.toLowerCase(),l=null===(t=o.code)||void 0===t?void 0:t.toString();"error"===i?l===eh.n.NEW_LOGIN_PASSWORD_SAME_OLD?c(!0):l===eh.n.NEW_SECURITY_PASSWORD_SAME_OLD?h(!0):l===eh.n.LOGIN_AND_SECURITY_PASSWORD_SAME&&g(!0):w(!0)}catch(e){}},A=(e,t,s)=>{let a=t;(a.endsWith(" ")||!(0,E.bJ)(a))&&(a=""),e(s,a)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.u,{isOpen:t,onClose:()=>s(),title:o("title"),children:(0,i.jsx)(k.J9,{initialValues:{loginpassword:"",confirmloginpassword:"",securitypassword:"",confirmsecuritypassword:""},validationSchema:(()=>{if(a===r.LOGIN_PASSWORD)return(0,en.i)(er.pL)})(),validateOnChange:!0,onSubmit:e=>{_(e)},validateOnMount:!0,children:e=>{let{handleSubmit:t,errors:s,setFieldValue:n,values:l,isValid:c,touched:d,setFieldTouched:h}=e;return(0,i.jsxs)(k.l0,{onSubmit:t,children:[(0,i.jsxs)("div",{className:"flex justify-between items-center mb-[15px]",children:[(0,i.jsx)("div",{className:"w-[80px]",children:ei()}),(0,i.jsx)("span",{className:"w-full text-left ml-5",children:o("description")})]}),(a===r.LOGIN_PASSWORD||a===r.BOTH_PASSWORDS)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L.Z,{childrenWrapperClass:"!w-full",error:(d.loginpassword||l.loginpassword)&&s.loginpassword||"",children:(0,i.jsx)(el.Z,{name:"loginPassword",value:l.loginpassword,autoFocus:!1,autoComplete:"current-password",placeholder:o("loginPasswordPlaceholder"),onChange:e=>{A(n,e.target.value,"newloginpassword"),A(n,e.target.value,"loginpassword")},onBlur:()=>h("loginpassword")})}),(0,i.jsx)(L.Z,{childrenWrapperClass:"!w-full",error:(d.confirmloginpassword||l.confirmloginpassword)&&s.confirmloginpassword||"",children:(0,i.jsx)(el.Z,{name:"confirmloginpassword",value:l.confirmloginpassword,autoFocus:!1,autoComplete:"current-password",placeholder:o("confirmloginpasswordPlaceholder"),onChange:e=>{A(n,e.target.value,"confirmloginpassword")},onBlur:()=>h("confirmloginpassword")})})]}),(a===r.SECURITY_PASSWORD||a===r.BOTH_PASSWORDS)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L.Z,{childrenWrapperClass:"!w-full",error:(d.securitypassword||l.securitypassword)&&s.securitypassword||"",children:(0,i.jsx)(el.Z,{name:"securitypassword",value:l.securitypassword,autoFocus:!1,autoComplete:"current-password",placeholder:o("securityPasswordPlaceholder"),onChange:e=>{A(n,e.target.value,"securitypassword"),A(n,e.target.value,"newsecuritypassword")},onBlur:()=>h("securitypassword")})}),(0,i.jsx)(L.Z,{childrenWrapperClass:"!w-full",error:(d.confirmsecuritypassword||l.confirmsecuritypassword)&&s.confirmsecuritypassword||"",children:(0,i.jsx)(el.Z,{name:"confirmsecuritypassword",value:l.confirmsecuritypassword,autoFocus:!1,autoComplete:"current-password",placeholder:o("confirmsecurityPasswordPlaceholder"),onChange:e=>{A(n,e.target.value,"confirmsecuritypassword")},onBlur:()=>h("confirmsecuritypassword")})})]}),(0,i.jsx)(u.z,{type:"submit",disabled:!c,label:o("submitButton"),className:"color-blue-400 mt-5",fullWidth:!0})]})}})}),(0,i.jsx)(D.s,{modal:{title:o("repeatedPasswordErrorModal.title"),children:(0,i.jsx)("div",{className:"text-center pl-5 pr-5",children:o("repeatedPasswordErrorModal.description")}),isOpen:l},rightButton:{label:o("repeatedPasswordErrorModal.button"),onClick:()=>{c(!1)}}}),(0,i.jsx)(D.s,{modal:{title:o("repeatedSecurityPasswordErrorModal.title"),children:(0,i.jsx)("div",{className:"text-center pl-5 pr-5",children:o("repeatedSecurityPasswordErrorModal.description")}),isOpen:d},rightButton:{label:o("repeatedSecurityPasswordErrorModal.button"),onClick:()=>{h(!1)}}}),(0,i.jsx)(D.s,{modal:{title:o("loginAndSecurityRepeteatedErrorModal.title"),children:(0,i.jsx)("div",{className:"text-center pl-5 pr-5",children:o("loginAndSecurityRepeteatedErrorModal.description")}),isOpen:p},rightButton:{label:o("loginAndSecurityRepeteatedErrorModal.button"),onClick:()=>{g(!1)}}}),(0,i.jsx)(D.s,{modal:{title:"",children:(0,i.jsxs)("div",{className:"text-center pl-5 pr-5",children:[(0,i.jsx)("div",{className:"flex justify-center mb-[25px]",children:(0,i.jsx)(m.default,{width:48,height:48,src:ep.Z,alt:"Success image"})}),o("successModal.description")]}),isOpen:x}})]})};var ex=(0,S.default)(()=>Promise.resolve(eg),{ssr:!1}),ew=s(59429),eb=s(69989),ef=s(90896),e_=s(63303),eA=s(76092),ev=s(31934);
1let eC=e=>{let{isOpen:t,onClose:s,openSignUp:a}=e,{login:o}=(0,C.Z)(),{showToastSuccess:n,showToastError:r}=(0,ef.p)(),l=(0,em.tv)(),c=(0,f.useTranslations)("Header.userauthenticationmodal"),[h,p]=(0,N.useState)(!1),[m,g]=(0,N.useState)(!0),[x,w]=(0,N.useState)(!1),[b,_]=(0,N.useState)(!1),[A,v]=(0,N.useState)(null),[S,y]=(0,N.useState)(!1),[O,M]=(0,N.useState)(!1),T=(0,N.useRef)(),{getValidationSchema:I}=(0,eb.$)(ew.a.LOGIN),P=I(er.x4),R=e=>{var t,s,a,o,n;switch(null===(t=e.status)||void 0===t?void 0:t.toString()){case eh.n.LOGIN_WRONG_PASSWORD_ATTEMPTS_REACHED:g(!1);break;case eh.n.LOGIN_FAILED_MANY_TIMES_ERROR:_(!0),g(!1);break;case eh.n.LOGIN_WRONG_USER:w(!0),null===(s=T.current)||void 0===s||s.setFieldValue("password",""),null===(a=T.current)||void 0===a||a.setFieldTouched("password",!1);break;case eh.n.LOGIN_FAILED_UNKNOWN_ERROR:y(!0),null===(o=T.current)||void 0===o||o.setFieldValue("password",""),null===(n=T.current)||void 0===n||n.setFieldTouched("password",!1);break;default:r(e.message)}},B=async(e,t)=>{try{M(!0),await o(e,t),n(c("login_success")),l.push("/"),s()}catch(e){R(e)}finally{M(!1)}},W=()=>{p(!0),s()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.u,{isOpen:t,onClose:()=>s(),title:c("title"),children:(0,i.jsx)(k.J9,{innerRef:e=>T.current=e,initialValues:{username:"",password:""},validationSchema:P,validateOnChange:!0,isInitialValid:!1,onSubmit:e=>{B(e.username,e.password)},validateOnMount:!1,children:e=>{let{handleSubmit:t,errors:s,setFieldValue:o,values:n,isValid:r,touched:l,setFieldTouched:h,setTouched:p}=e;return(0,i.jsxs)(k.l0,{onSubmit:t,autoFocus:!0,children:[(0,i.jsx)(L.Z,{label:c("account"),error:(l.username||n.username)&&s.username||"",children:(0,i.jsx)(e_.Z,{name:"username",autoFocus:!1,autoComplete:"username",value:n.username.toUpperCase(),placeholder:c("accountPlaceholder"),onChange:e=>{(0,E.PO)(e,"username",o)},onBlur:()=>{h("username")}})}),(0,i.jsx)(L.Z,{label:c("password"),error:(l.password||n.password)&&s.password||"",children:(0,i.jsx)(el.Z,{name:"password",maxLength:50,value:n.password,autoFocus:!1,autoComplete:"current-password",placeholder:c("passwordPlaceholder"),onChange:e=>o("password",e.target.value),onBlur:()=>h("password")})}),(0,i.jsxs)("div",{className:"flex justify-end",children:[(0,i.jsx)(eA.Q,{className:"text-orange-600 text-[14px] hover:font-bold mr-[14px]",onClick:a,href:"#",children:c("registerLink")}),(0,i.jsx)(eA.Q,{href:"",onClick:W,className:"text-blue-700 text-[14px] hover:font-bold",children:c("forgotPasswordLink")})]}),(0,i.jsx)(u.z,{type:"submit",disabled:!r||!m||O,label:O?c("loggingIn"):c("loginButton"),className:"color-blue-400 mt-[24px]",fullWidth:!0,size:d.qE.LARGE})]})}})}),(0,i.jsx)(D.s,{modal:{title:c("wrongusermodal.title"),children:(0,i.jsx)("div",{className:"leading-[19.6px] text-[14px] font-normal text-neutral-900",children:c("wrongusermodal.description")}),isOpen:x,titleStyle:{color:"var(--color-neutral-900)"}},rightButton:{label:c("wrongusermodal.button"),onClick:()=>{w(!1)}}}),(0,i.jsx)(D.s,{modal:{title:c("maxAttemptsReachedModal.title"),children:(0,i.jsx)("div",{className:"leading-[19.6px] text-[14px] font-normal text-neutral-900",children:c("maxAttemptsReachedModal.description")}),isOpen:b,titleStyle:{color:"var(--color-neutral-900)"}},rightButton:{label:c("maxAttemptsReachedModal.button"),onClick:()=>{_(!1)}}}),(0,i.jsx)(D.s,{modal:{title:c("unkownerrormodal.title"),children:(0,i.jsx)("div",{className:"leading-[19.6px] text-[14px] font-normal text-neutral-900",children:c("unkownerrormodal.description")}),isOpen:S,titleStyle:{color:"var(--color-neutral-900)"}},rightButton:{label:c("unkownerrormodal.button"),onClick:()=>{y(!1)}}}),h&&(0,i.jsx)(ev.Z,{isOpen:h,onClose:()=>{p(!1)}}),A&&(0,i.jsx)(ex,{setupType:A,isOpen:!!A,onClose:()=>{v(null)}})]})};var eS=(0,S.default)(()=>Promise.resolve(eC),{ssr:!1}),eN=s(58730),ej=s(1340),ek=s(8572),ey=()=>{let e=async(e,t)=>(0,eu.I)(ec.B.PHONE_VERIFICATION,{cache:"no-cache"}).catch(e=>{throw e.error}),t=async(e,t,s)=>(0,eu.I)(ec.B.PHONE_CODE_VERIFICATION,{cache:"no-cache"}).catch(e=>{throw e.error});return{getPhoneVerificationCode:async(t,s)=>{try{let a=await e(t,s);if(a)return a;throw Error()}catch(e){throw Error("Error. Try again")}},validateVerificationCode:async(e,s,a)=>{try{let o=await t(e,s,a);if(o)return o;throw Error()}catch(e){throw Error("Error. Try again")}}}},eE=s(66271);let eO=()=>{let e=(0,f.useTranslations)("CodeValidationErrorModal");return{getCodeValidationErrorMessage:t=>{switch(t.toString().toLocaleLowerCase()){case eh.n.RECOVER_PASSWORD_2_ATTEMPS_LEFT.toLocaleLowerCase():return e("description2AttemptsLefts");case eh.n.RECOVER_PASSWORD_1_ATTEMPS_LEFT.toLocaleLowerCase():return e("description1AttemptsLefts");case eh.n.RECOVER_PASSWORD_MAX_REACHED.toLocaleLowerCase():return e("descriptionMaxReached")}return""}}};var eM=s(12920),eT=s(93658),eL=s(82496),eI=s(20358),eP=s(48639),eR=s(93334),eB=s(15722),eW=s(14245),eD=s(70948),eH=s(90899),eF=s(57523),eZ=s(79847);let eU=e=>{let{isOpen:t,onClose:s}=e,a=(0,em.tv)(),o=(0,f.useTranslations)("SignUp"),{showToastError:n}=(0,ef.p)(),{validateVerificationCode:r}=ey(),{getCodeValidationErrorMessage:l}=eO(),c=(0,f.useTranslations)("CodeValidationErrorModal"),[h,p]=(0,N.useState)(!1),[m,g]=(0,N.useState)(!1),[x,w]=(0,N.useState)(0),[b,_]=(0,N.useState)(),[A,v]=(0,N.useState)(!1),[C,S]=(0,N.useState)(!1),[y,O]=(0,N.useState)(ek.N.EMPTY),[M,T]=(0,N.useState)({show:!1}),[I,P]=(0,N.useState)(""),{checkAccountExists:R,checkNicknameExists:B,userSignUp:W}=(0,eE.Z)(),[H,F]=(0,N.useState)(!1),Z=()=>T({show:!1}),[U,G]=(0,N.useState)(""),[J,V]=(0,N.useState)(!1),[z,K]=(0,N.useState)(""),[Y,Q]=(0,N.useState)(""),[$,ee]=(0,N.useState)(""),{setAllowWelcomePage:et}=(0,N.useContext)(X.V),[es,ea]=(0,N.useState)(!1),eo=(0,eF.f)(),[ei,ec]=(0,N.useState)(!1),eu=eW.Z_().test("nickname-account",o("form.nickName.repeatedWithAccountFormError"),function(e){let{username:t}=this.parent;return""!==e&&(null==e?void 0:e.toLowerCase())!==(null==t?void 0:t.toLowerCase())}),ed=eW.O7().oneOf([!0]),ep=(0,en.i)(er.z2),eg=ep.shape({fullname:ep.fields.fullname.concat(eu),acceptPolicy:ep.fields.acceptPolicy.concat(ed)}),ex=e=>{e>eN.e2&&x<=eN.e2&&!C&&(S(!0),setTimeout(()=>S(!1),3e3)),w(e)},ew=(e,t)=>{switch(e){case ek.N.AVAILABLE:return{icon:(0,i.jsx)("span",{className:"text-[#00C405] mt-[1px] block available-icon",children:(0,i.jsx)(eT.Z,{})})};case ek.N.NOT_AVAILABLE:return{icon:(0,i.jsx)("span",{className:"text-[#FF0000] mt-[4px] block cursor-pointer",onClick:t,children:(0,i.jsx)(eL.Z,{})})};case ek.N.EMPTY:return{}}},eb=e=>{var t;switch(null===(t=e.status)||void 0===t?void 0:t.toString()){case eh.n.SIGN_UP_PHONE_ALREADY_REGISTERED:G(o("errorsModals.p
1honeAlreadyRegistered")),V(!0);break;case eh.n.SIGN_UP_EMAIL_ALREADY_REGISTERED:G(o("errorsModals.emailAlreadyRegistered")),V(!0);break;default:n(e.message)}},ev=async e=>{try{ec(!0);let t={username:e.username.toUpperCase(),fullname:e.fullname,password:e.password,phoneNumber:e.phoneNumber,confirmPassword:e.password,email:e.email,country:"vn"};W({...t,queries:eo}).then(e=>{if(null==e?void 0:e.token){et(!0),a.push(q.Z.WELCOME),window.dispatchEvent(new Event("socketStorageChange"));return}})}catch(e){eb(e)}finally{ec(!1)}},eC=()=>{(0,eB.x)(q.Z.GAME_TERMS,eR.J.WINDOW)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.u,{isOpen:t,title:o("title"),onClose:()=>p(!0),children:(0,i.jsx)(k.J9,{initialValues:{referralagent:"",username:"",fullname:"",password:"",phoneNumber:void 0,verificationcode:"",allowreceivesms:!1,acceptPolicy:!0,email:""},validateOnMount:!0,validationSchema:eg,onSubmit:e=>{ev(e)},children:e=>{var t;let{values:s,errors:a,touched:r,handleChange:l,handleBlur:c,handleSubmit:h,setFieldValue:p,setFieldError:m,isValid:g,isSubmitting:x}=e,w=function(e){p("username",e),O(ek.N.AVAILABLE),Z()},b=async e=>{try{let{accountStatus:t,accountTooltip:s}=await R(e);if(O(t),t===ek.N.AVAILABLE){ea(!1),Z();return}s?T({show:!0,options:s}):Z()}catch(e){n(e.message)}},f=async e=>{try{let t=await B(e);t&&t.exists?K(o("form.nickName.notAvailableFormError")):(K(""),ea(!1))}catch(e){n(e.message)}};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("form",{onSubmit:h,onFocus:e=>{F("email"===e.target.name)}
1,autoComplete:"false",children:[(0,i.jsx)(L.Z,{label:o("form.account.label"),...(0,E.Mr)(a.username,r.username),isRequired:!0,children:(0,i.jsx)(eH.Z,{show:M.show,position:eP.I.BOTTOM,content:(0,i.jsxs)("div",{className:"p-[3px]",children:[(0,i.jsx)("span",{className:"block",children:o("form.account.notAvailable")}),(0,i.jsx)("ul",{children:null===(t=M.options)||void 0===t?void 0:t.map(e=>(0,i.jsx)("span",{className:"block text-blue-400 hover:text-blue-600 cursor-pointer",onClick:w.bind(null,e),children:e},e))})]}),children:(0,i.jsx)(e_.Z,{placeholder:o("form.account.placeholder"),value:s.username.toUpperCase(),name:"username",autoComplete:"off",onChange:e=>{Z(),ea(!0),l(e)},onBlur:e=>{var t;c(e);let s=null===(t=e.target)||void 0===t?void 0:t.value;a.username||Y===s.toUpperCase()||(Q(s.toUpperCase()),b(s))},...ew(y,()=>{p("username",""),Q(""),O(ek.N.EMPTY),Z()})})})}),(0,i.jsx)(L.Z,{label:o("form.nickName.label"),...(0,E.Mr)(a.fullname||z,r.fullname),isRequired:!0,children:(0,i.jsx)(e_.Z,{placeholder:o("form.nickName.placeholder"),value:s.fullname,name:"fullname",onChange:e=>{ea(!0),l(e)},onBlur:e=>{var t;c(e);let s=null===(t=e.target)||void 0===t?void 0:t.value;a.fullname||$===s.toUpperCase()||(ee(s.toUpperCase()),f(s))},autoComplete:"off"})}),(0,i.jsx)(L.Z,{label:o("form.password.label"),...(0,E.Mr)(a.password,r.password),isRequired:!0,children:(0,i.jsx)(eH.Z,{show:C,position:eP.I.TOP,content:(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("span",{className:"text-orange-200 mr-[8px]",children:(0,i.jsx)(eI.Z,{width:16,height:16})})," ",(0,i.jsx)("span",{className:"text-red-200 text-xs",children:o("form.password.lenghtTooltip")})]}),children:(0,i.jsx)(el.Z,{showPassword:!0,placeholder:o("form.password.placeholder"),value:s.password,name:"password",onChange:e=>{ex(e.target.value.length),l(e)},onBlur:c,autoComplete:"off"})})}),(0,i.jsx)(eD.Z,{}),(0,i.jsx)(L.Z,{label:"SĐT",...(0,E.Mr)(a.phoneNumber,r.phoneNumber),isRequired:!0,children:(0,i.jsx)(eZ.Z,{placeholder:o("form.phone.placeholder"),value:s.phoneNumber,name:"phoneNumber",maxLength:10,onChange:e=>{p("phoneNumber",e.target.value.toString())},onBlur:c,allowOnlyNumbers:!0})}),(0,i.jsx)(eD.Z,{}),(0,i.jsxs)(eM.Z,{checked:s.acceptPolicy,name:"acceptPolicy",onChange:l,onBlur:c,children:[o("form.termsAndConditions.label")," ",(0,i.jsx)(eA.Q,{href:"",onClick:eC,className:"text-blue-700 hover:font-bold",children:o("form.termsAndConditions.link")})]}),(0,i.jsx)(u.z,{disabled:ei||!g||es,type:"submit",size:d.qE.LARGE,fullWidth:!0,label:ei?o("form.submitButtonLoading"):o("form.submitButton")})]})})}})}),(0,i.jsx)(D.s,{modal:{title:o("confirmation.title"),children:(0,i.jsx)("div",{children:o("confirmation.description")}),isOpen:h},rightButton:{label:o("confirmation.cancel"),onClick:()=>{p(!1)}},leftButton:{label:o("confirmation.confirm"),onClick:()=>{O(ek.N.EMPTY),Z(),p(!1),s()}}}),(0,i.jsx)(D.s,{modal:{size:ej.C.SMALL,title:c("title"),children:(0,i.jsx)("div",{className:"text-center max-w-[230px]",children:I}),isOpen:m},rightButton:{label:c("button"),onClick:()=>{g(!1)}}}),(0,i.jsx)(D.s,{modal:{title:o("errorsModals.title"),children:(0,i.jsx)("div",{className:" text-center",children:U}),isOpen:J},rightButton:{label:o("errorsModals.button"),onClick:()=>V(!1)}})]})};var eG=(0,S.default)(()=>Promise.resolve(eU),{ssr:!1}),eJ=()=>{let e=(0,f.useTranslations)("Header"),[t,s]=(0,N.useState)(!1),[a,o]=(0,N.useState)(!1),{isLoggedIn:n,openAuthenticationModal:r}=(0,C.Z)(),[l,c]=(0,N.useState)(null),h=()=>{n()||s(!0)};return(0,N.useEffect)(()=>(et.Z.on(ee.R.OPEN_LOGIN_MODAL,h),()=>{et.Z.removeListener(ee.R.OPEN_LOGIN_MODAL,()=>{})}),[]),(0,i.jsxs)("div",{children:[(0,i.jsx)(es.Z,{children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(u.z,{label:e("button.register"),onClick:()=>{o(!0)},size:d.qE.SMALL,className:eo().registerButton}),(0,i.jsx)(u.z,{label:e("button.login"),className:eo().loginButton,onClick:()=>{r()},size:d.qE.SMALL})]})}),(0,i.jsx)(eS,{isOpen:t,onClose:()=>{s(!1)},openSignUp:()=>{s(!1),o(!0)}}),(0,i.jsx)(eG,{isOpen:a,onClose:()=>{o(!1)}}),l&&(0,i.jsx)(ex,{setupType:l,isOpen:!!l,onClose:()=>{c(null)}})]})},eV=s(85713),ez=s.n(eV),eK=s(79731);let eq=e=>{let{isOpen:t,onClose:s}=e,a=(0,f.useTranslations)();return(0,i.jsx)("div",{children:(0,i.jsxs)(j.u,{isOpen:t,onClose:s,title:a("Header.bookmark.modal.title"),children:[(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)("p",{children:a("Header.bookmark.modal.body",{shortcutKey:function(e){let t;let s=t=>t.test(e);switch(!0){case s(/Opera\//i):t=eK.A.OPERA;break;case s(/edg/i):t=eK.A.MICROSOFT_EDGE;break;case s(/chrome|chromium|crios/i):t=eK.A.GOOGLE_CHROME;break;case s(/firefox|fxios/i):t=eK.A.MOZILLA_FIREFOX;break;case s(/safari/i):t=eK.A.APPLE_SAFARI;break;case s(/trident/i):t=eK.A.MICROSOFT_INTERNET_EXPLOER;break;case s(/ucbrowser/i):t=eK.A.UC_BROWSER;break;case s(/samsungbrowser/i):t=eK.A.SAMSUNG_BROWSER;break;default:t=eK.A.UNKNOWN_BROWSER}return t}(navigator.userAgent)===eK.A.APPLE_SAFARI?"Command + ".concat("D"):"Crtl + ".concat("D")})})}),(0,i.jsx)("div",{className:"flex justify-center m-5",children:(0,i.jsx)(u.z,{onClick:s,label:a("Header.bookmark.modal.confirm")})})]})})};var eY=(0,S.default)(()=>Promise.resolve(eq),{ssr:!1}),eX=()=>{let[e,t]=(0,N.useState)(!1);return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:ez().headerBookmark,onClick:()=>{t(!0)}}),(0,i.jsx)(eY,{isOpen:e,onClose:()=>{t(!1)}})]})},eQ=s(45272);let e$=()=>{let[e,t]=(0,N.useState)((0,eQ.e1)());return(0,N.useEffect)(()=>{let e=setTimeout(()=>{let e=new Date;t((0,eQ.e1)(e));let s=setInterval(()=>{let e=new Date;t((0,eQ.e1)(e))},6e4);return()=>clearInterval(s)},(60-new Date().getSeconds())*1e3);return()=>{clearInterval(e)}},[]),{currentDateTime:e}};var e0=s(72664),e1=s.n(e0),e3=()=>{let{currentDateTime:e}=e$();return(0,i.jsx)("span",{className:e1().time,children:e})},e2=()=>{let{user:e}=(0,N.useContext)(X.V);return(0,i.jsx)("div",{className:c().headerContainer,children:(0,i.jsxs)("div",{className:c().header,children:[(0,i.jsxs)("div",{className:"flex justify-between items-center text-blue-50",children:[(0,i.jsx)(e3,{}),(0,i.jsx)("span",{className:c().separator,children:"|"}),(0,i.jsx)("div",{children:(0,i.jsx)(eX,{})})]}),(0,i.jsx)("div",{}),(0,i.jsxs)("div",{children:[e&&(0,i.jsx)($,{}),!e&&(0,i.jsx)(eJ,{})]})]})})}},48544:function(e,t,s){"use strict";s.d(t,{default:function(){return E}});var a=s(57437),o=s(66648),n=s(92388),r=s.n(n),i=s(87138),l=s(89317),c=s(75114),u=s(11038),d=s(18087),h=s(788
163),p=s.n(h),m=s(81393),g=s(25094),x=s(64051),w=s(98321),b=s(89280);let f={hot:{data:[{banners:[{url:"/assets/images/home/menu/sport/logo_KUCasino.png",alt:"logo",width:50,height:50},{url:"/assets/images/home/menu/sport/logo_CAO.png",alt:"logo",width:30,height:30},{url:"/assets/images/home/menu/sport/logo_OSA.png",alt:"logo",width:30,height:30}],name:"hot.childOne",isHot:!1,isNew:!1,isJackpot:!1,game:g.T5,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/sport/logo_KUCasino.png",alt:"logo",width:50,height:50}],name:"hot.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.LIVE_STREAM_GAME,gameType:w.D.GAME,moneyRequired:!1},{banners:[{url:"/assets/images/home/menu/sport/logo_KUCasino.png",alt:"logo",width:50,height:50}],name:"hot.childThree",isHot:!1,isNew:!1,isJackpot:!1,gameType:w.D.GAME,game:g.gF},{banners:[{url:"/assets/images/home/menu/sport/logo_KUCasino.png",alt:"logo",width:40,height:40}],name:"hot.childFour",isHot:!1,isNew:!1,isJackpot:!1,gameType:w.D.LOBBY_GAME,game:"",gameProvider:m.AH}],backgroundUrl:"/assets/images/home/menu/hot/bgHot3.png"},sport:{data:[{banners:[{url:"/assets/images/home/menu/sport/logo_KUCasino.png",alt:"logo",width:40,height:40},{url:"/assets/images/home/menu/sport/logo_CAO.png",alt:"logo",width:30,height:30},{url:"/assets/images/home/menu/sport/logo_OSA.png",alt:"logo",width:30,height:30}],name:"sport.childOne",isHot:!1,isNew:!1,isJackpot:!1,game:g.T5,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/sport/logo_JZ.png",alt:"logo BTI",width:50,height:50}],name:"sport.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.aZ,gameType:w.D.SPORTS,disabled:!0},{banners:[{url:"/assets/images/home/menu/sport/logo_OneBook.png",alt:"logo IM",width:70,height:70}],name:"sport.childThree",isHot:!1,isNew:!1,isJackpot:!1,game:g.lZ,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/sport/logo_CMD.png",alt:"logo IM",width:70,height:70}],name:"sport.childFour",isHot:!1,isNew:!1,isJackpot:!1,disabled:!0,game:g.jq,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/sport/logo_AI.png",alt:"logo IM",width:50,height:50}],name:"sport.childFive",isHot:!1,isNew:!1,isJackpot:!1,disabled:!0,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/sport/logo_AG.png",alt:"logo IM",width:50,height:50}],name:"sport.childSix",isHot:!1,isNew:!1,isJackpot:!1,disabled:!0,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/sport/logo_OBsport.png",alt:"logo IM",width:60,height:60}],name:"sport.childSeven",isHot:!1,isNew:!1,isJackpot:!1,disabled:!0,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/sport/logo_noticeSport.png",alt:"logo IM",width:40,height:40}],name:"sport.childEight",isHot:!1,isNew:!1,isJackpot:!1,disabled:!0,gameType:w.D.SPORTS}],backgroundUrl:"/assets/images/home/menu/sport/bgSport.png"},liveCasino:{data:[{banners:[{url:"/assets/images/home/menu/casino/logo_KUCasino.png",alt:"logo",width:60,height:60}],name:"liveCasino.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.LIVE_STREAM_GAME,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/casino/logo_DG.png",alt:"logo VIVO",width:60,height:60}],name:"liveCasino.childThree",isHot:!1,isNew:!1,isJackpot:!1,game:g.F_,gameType:w.D.CASINO},{banners:[{url:"/assets/images/home/menu/casino/logoAES.png",alt:"logo EVO",width:60,height:60}],name:"liveCasino.childFour",isHot:!1,isNew:!1,isJackpot:!1,game:g.lI,gameType:w.D.CASINO,disabled:!0},{banners:[{url:"/assets/images/home/menu/casino/logo_WM.png",alt:"logo Ezugi",width:40,height:40}],name:"liveCasino.childFive",isHot:!1,isNew:!1,isJackpot:!1,game:g.lQ,gameType:w.D.CASINO,disabled:!0},{banners:[{url:"/assets/images/home/menu/casino/logo_SA.png",alt:"logo Ezugi",width:40,height:40}],name:"liveCasino.childSix",isHot:!1,isNew:!1,isJackpot:!1,game:g.X_,gameType:w.D.CASINO},{banners:[{url:"/assets/images/home/menu/casino/logo_AG.png",alt:"logo Ezugi",width:40,height:40}],name:"liveCasino.childSeven",isHot:!1,isNew:!1,isJackpot:!1,game:g.qF,gameType:w.D.CASINO,disabled:!0},{banners:[{url:"/assets/images/home/menu/casino/logo_GPI.png",alt:"logo Ezugi",width:40,height:40}],name:"liveCasino.childEight",isHot:!1,isNew:!1,isJackpot:!1,game:g.hG,gameType:w.D.CASINO,disabled:!0},{banners:[{url:"/assets/images/home/menu/casino/logo_OBlive.png",alt:"logo Ezugi",width:40,height:40}],name:"liveCasino.childNine",isHot:!1,isNew:!1,isJackpot:!1,game:g.qF,gameType:w.D.CASINO,disabled:!0},{banners:[{url:"/assets/images/home/menu/casino/logo_noticeLive.png",alt:"logo Ezugi",width:40,height:40}],name:"liveCasino.childTen",isHot:!1,isNew:!1,isJackpot:!1,disabled:!0}],backgroundUrl:"/assets/images/home/menu/casino/bgCasino.png"},games:{data:[{banners:[{url:"/assets/images/home/menu/eSport/logoSABA.png",alt:"logo SABA",width:40,height:40}],name:"games.childOne",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.PLS_GAME,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/games/logoSpribe.png",alt:"logo Spribe",width:40,height:40}
1],name:"games.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.BNG_GAME,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/games/logo_KU.png",alt:"logo KU",width:60,height:60}],name:"games.childThree",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.KU_GAME,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/games/logoPG.png",alt:"logo PG",width:80,height:50}],name:"games.childFour",isHot:!1,isNew:!1,game:g.P_.PG_GAME,gameType:w.D.GAME,isJackpot:!1,gameLink:"/gameLink",moneyRequired:!1,disabled:!0},{banners:[{url:"/assets/images/home/menu/games/logoPlay.png",alt:"logo Play",width:60,height:60}],name:"games.childFive",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.FC_GAME,gameType:w.D.GAME,moneyRequired:!1},{banners:[{url:"/assets/images/home/menu/games/logoPP.png",alt:"logo PP",width:40,height:40}],name:"games.childSix",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.KA_GAME,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/lottery/logo_FTG.png",alt:"logo SB",width:60,height:30}],name:"games.childSeven",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.FTG_GAME,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/fishing/logoCQ9.png",alt:"logo CQ9",width:60,height:50}],name:"games.childEight",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.CQ9_GAME,gameType:w.D.GAME,moneyRequired:!1,disabled:!0},{banners:[{url:"/assets/images/home/menu/games/logoTP.png",alt:"logo TP",width:40,height:40}],name:"games.childNine",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.DS_GAME,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/games/logoPT.png",alt:"logo PT",width:60,height:34}],name:"games.childTen",isHot:!1,isNew:!1,isJackpot:!1,game:g.P_.RK5_GAME,gameType:w.D.GAME}],backgroundUrl:"/assets/images/home/menu/games/bgGame.png"},lottery:{data:[{banners:[{url:"/assets/images/home/menu/lottery/logo_BBIN.png",alt:"logo BBIN",width:70,height:70}],name:"lottery.childOne",isHot:!1,isNew:!1,isJackpot:!1,game:g.Ey,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/sport/logo_KUCasino.png",alt:"logo",width:70,height:70}],name:"lottery.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.gF,gameType:w.D.GAME},{banners:[{url:"/assets/images/home/menu/lottery/lotteryDisabled.png",alt:"lottery Disabled",width:70,height:70}],name:"comingSoon",isHot:!1,isNew:!1,isJackpot:!1,gameLink:"/gameLink"}],backgroundUrl:"/assets/images/home/menu/lottery/bgLottery.png"},eSport:{data:[{banners:[{url:"/assets/images/home/menu/eSport/logoSABA.png",alt:"logo SABA",width:87,height:31}],name:"eSport.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.uD,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/eSport/logoIM.png",alt:"logo IM",width:120,height:100}],name:"eSport.childOne",isHot:!1,isNew:!1,isJackpot:!1,game:g.iQ,gameType:w.D.SPORTS},{banners:[{url:"/assets/images/home/menu/eSport/logoDB.png",alt:"logo DB",width:80,height:50}],name:"eSport.childThree",isHot:!1,isNew:!1,isJackpot:!1,gameType:w.D.SPORTS,game:{isMaintain:!0}}],backgroundUrl:"/assets/images/home/menu/eSport/bgESports.png"},fishing:{data:[{banners:[{url:"/assets/images/home/menu/fishing/logo_AG.png",alt:"logo KING",width:50,height:50}],name:"fishing.childOne",isHot:!1,isNew:!1,isJackpot:!1,game:g.pK,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/fishing/logo_KS.png",alt:"logo BT",width:50,height:50}],name:"fishing.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.nb,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/fishing/logo_KU.png",alt:"logo",width:50,height:50}],name:"fishing.childThree",isHot:!1,isNew:!1,isJackpot:!1,game:g.BC,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/fishing/logo_DS.png",alt:"logo XU",width:50,height:50}],name:"fishing.childFour",isHot:!1,isNew:!1,isJackpot:!1,game:g.dr,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/fishing/logo_V8.png",alt:"logo DG",width:80,height:60}],name:"fishing.childFive",isHot:!0,isNew:!1,isJackpot:!1,game:g.B9,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/fishing/logo_KA.png",alt:"logo TB",width:40,height:40}],name:"fishing.childSix",isHot:!1,isNew:!1,isJackpot:!1,game:g.Hh,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/fishing/logo_CQ9.png",alt:"logo MC",width:60,height:60}],name:"fishing.childSeven",isHot:!1,isNew:!1,isJackpot:!1,game:g.aX,gameType:w.D.BANCA,disabled:!0},{banners:[{url:"/assets/images/home/menu/fishing/logo_obfish.png",alt:"comming soon",width:50,height:50}],isHot:!1,isNew:!1,isJackpot:!1,gameLink:"/gameLink",name:"fishing.childTen",disabled:!0}],backgroundUrl:"/assets/images/home/menu/fishing/bgFishing.png"},poker:{data:[{banners:[{url:"/assets/images/home/menu/poker/logo_V8.png",alt:"logo OG",width:120,height:70}],name:"poker.childOne",isHot:!0,isNew:!1,isJackpot:!1,game:g.Wr,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/poker/logo_KU.png",alt:"logo",width:60,height:60}
1],name:"poker.childTwo",isHot:!1,isNew:!1,isJackpot:!1,game:g.W$,gameType:w.D.BANCA},{banners:[{url:"/assets/images/home/menu/poker/logo_noticeChess.png",alt:"poker Disabled",width:60,height:60}],name:"poker.childThree",isHot:!1,isNew:!1,isJackpot:!1,gameLink:"/gameLink"}],backgroundUrl:"/assets/images/home/menu/poker/bgPoker.png"}},_=[{icon:{url:"/assets/images/home/menu/iconFire.gif",alt:"hot",width:30,height:30},title:"hot",clickable:!1,subMenu:{cols:l.L3.FOUR,data:f.hot,type:l.Wd.HOT}},{title:"sport",clickable:!0,subMenu:{cols:l.L3.FOUR,data:f.sport,type:l.Wd.SPORT}},{title:"liveCasino",clickable:!0,subMenu:{cols:l.L3.FIVE,data:f.liveCasino,type:l.Wd.LIVE_CASINO}},{title:"games",clickable:!0,subMenu:{cols:l.L3.FIVE,data:f.games,type:l.Wd.GAMES}},{title:"lottery",clickable:!0,subMenu:{cols:l.L3.THREE,data:f.lottery,type:l.Wd.LOTTERY}},{title:"eSport",clickable:!0,subMenu:{cols:l.L3.THREE,data:f.eSport,type:l.Wd.E_SPORT}},{title:"fishing",clickable:!0,subMenu:{cols:l.L3.FOUR,data:f.fishing,type:l.Wd.FISHING}},{title:"poker",clickable:!0,subMenu:{cols:l.L3.THREE,data:f.poker,type:l.Wd.POKER}},{title:"promotion",clickable:!0,link:b.Z.BONUS},{icon:{url:"/assets/images/home/menu/phone.svg",alt:"phone",width:12,height:21},title:"download",clickable:!0,link:x.rP}];var A=s(82638),v=s(2265),C=s(23091),S=s(56800),N=s.n(S);f.game;var j=e=>{var t,s;let{startIndex:n,subMenu:r,type:i}=e,{toggleShowDepositSuggestionModal:h}=(0,v.useContext)(C.t),m=(0,d.useTranslations)("SubMenu"),{isLoggedIn:g,getUserData:x}=(0,u.Z)(),{gameLauncher:w}=(0,c.Z)(),{showAuthModal:b}=(0,A.Z)(),f=x(),_=null!==(s=null==f?void 0:null===(t=f.wallet)||void 0===t?void 0:t.subBalance)&&void 0!==s?s:0,S=e=>{let{game:t,gameType:s="",gameProvider:a="",disabled:o}=e;if(!o){if(!g()){b();return}if(f&&e.moneyRequired&&_<=0){h({isBalanceRequired:!0,playGame:()=>{}});return}null!=t&&t.isMaintain||w({game:t,gameType:s,gameProvider:a})}},j=e=>{switch(e){case l.Wd.HOT:return p().hotInfoWrap;case l.Wd.LOTTERY:case l.Wd.E_SPORT:case l.Wd.POKER:return p().pokerInfoWrap;default:return p().infoWrap}},k=e=>{switch(e){case l.Wd.HOT:return p().hotWrapper;case l.Wd.SPORT:return p().fishingWrapper;case l.Wd.LIVE_CASINO:case l.Wd.GAMES:return p().gamesWrapper;case l.Wd.LOTTERY:return p().lotteryWrapper;case l.Wd.E_SPORT:return p().eSportWrapper;case l.Wd.FISHING:return p().fishingWrapper;case l.Wd.POKER:return p().pokerWrapper;default:return""}},y=(e,t)=>{"Enter"===e.key&&S(t)};return(0,a.jsx)("div",{className:(e=>{switch(e){case l.Wd.HOT:return p().hotMenu;case l.Wd.SPORT:case l.Wd.FISHING:return"grid h-[340px] grid-cols-4";case l.Wd.LIVE_CASINO:case l.Wd.GAMES:return"grid h-[340px] grid-cols-5";case l.Wd.LOTTERY:case l.Wd.E_SPORT:case l.Wd.POKER:return"grid h-[340px] grid-cols-3";default:return""}})(i),children:r.data.map((e,t)=>{var s,l,c,u;return(0,a.jsxs)("div",{className:N()(k(i),{[p().isComingSoon]:(null===(s=e.game)||void 0===s?void 0:s.isComingSoon)||e.disabled,[p().underFix]:g()&&(null===(l=e.game)||void 0===l?void 0:l.isMaintain)}),onClick:()=>S(e),onKeyDown:t=>y(t,e),tabIndex:n,children:[(0,a.jsx)("div",{className:"".concat(p().subItem),style:{backgroundImage:"url(".concat(r.backgroundUrl,")")}}),(0,a.jsxs)("div",{className:"".concat(j(i)),children:[(0,a.jsx)("div",{className:"".concat(p().logoWrap," gap-2"),children:null==e?void 0:null===(c=e.banners)||void 0===c?void 0:c.map((e,t)=>(0,a.jsx)(o.default,{src:e.url,alt:e.alt,width:e.width,height:e.height,className:"object-contain",priority:!0},"banner-".concat(t)))}),(0,a.jsx)("span",{className:"".concat(p().itemName),children:m(e.name)})]}),e.isJackpot&&(0,a.jsx)("div",{className:"".concat(p().jackpotIcon)}
1),e.isHot&&(0,a.jsx)("div",{className:"".concat(p().hotIcon)}),e.isNew&&(0,a.jsx)("div",{className:"".concat(p().newIcon)}),g()&&(null===(u=e.game)||void 0===u?void 0:u.isMaintain)&&(0,a.jsx)("div",{className:"".concat(p().maintain),children:(0,a.jsx)("div",{children:m("underMaintainance")})})]},"subMenu-".concat(t))})})},k=s(46612),y=s(62838),E=()=>{let e=(0,d.useTranslations)("Menu"),[t,s]=(0,v.useState)(-1),{openAuthenticationModal:n,isLoggedIn:c}=(0,u.Z)(),{toggleShowComingSoonModal:h}=(0,v.useContext)(C.t),p=e=>{s(e)},m=()=>{s(-1)},g=e=>{(0,k.xw)(e.link,y.J.WINDOW)},x=e=>{if(e.clickable){if(e.title===l.F$.APP_DOWNLOAD){h();return}e.link?g(e):n()}},w=(e,t)=>{"Enter"===e.key&&x(t)};return(0,a.jsx)("div",{className:"".concat(r().menuArea),children:(0,a.jsxs)("div",{className:"w-[1000px] flex justify-start",children:[(0,a.jsx)(i.default,{href:b.Z.HOME,className:r().logoLink,children:(0,a.jsx)(o.default,{src:"/assets/images/home/menu/logo_KUbet.png",width:105,height:23,className:"object-contain w-auto h-auto",alt:"logo",priority:!0})}),(0,a.jsx)("div",{className:"flex",children:_.map((s,n)=>(0,a.jsx)("div",{className:"h-full flex items-center",children:(0,a.jsxs)("div",{onMouseEnter:()=>p(n),onMouseLeave:m,onFocus:()=>p(n),children:[(0,a.jsxs)("div",{className:"".concat(r().menuItem," ").concat(s.title===l.F$.PROMOTION&&"!text-purple-50 hover:!border-neutral-10"),tabIndex:n,onKeyDown:e=>w(e,s),onClick:()=>x(s),children:[(0,a.jsxs)("span",{className:"".concat(s.icon&&"!pl-0"," px-2 flex justify-center items-center"),children:[s.icon&&(0,a.jsx)(o.default,{src:s.icon.url,width:s.icon.width,height:s.icon.height,className:"mx-2 mr-1 object-contain w-auto h-[30px]",alt:"logo"}),e(s.title)]}),n!==_.length-1&&(0,a.jsx)("span",{className:"text-neutral-100 text-xs",children:"|"})]}),s.subMenu&&(0,a.jsxs)("div",{className:"".concat(r().subMenu," ").concat(t===n&&r().activeMenu),children:[(0,a.jsx)("div",{className:"".concat(r().bgMenuShadow)}),(0,a.jsx)("div",{className:"h-full mx-auto w-[1000px] ".concat(t===n&&"!block"||"hidden"),children:(0,a.jsx)(j,{startIndex:n,subMenu:s.subMenu.data,type:s.subMenu.type})})]})]})},"menu-".concat(n)))})]})})}},93658:function(e,t,s){"use strict";var a=s(57437);t.Z=()=>(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 14.4C11.9823 14.4 14.4 11.9823 14.4 9C14.4 6.01766 11.9823 3.6 9 3.6C6.01766 3.6 3.6 6.01766 3.6 9C3.6 11.9823 6.01766 14.4 9 14.4ZM9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"currentColor"})})},82496:function(e,t,s){"use strict";var a=s(57437);t.Z=()=>(0,a.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M0.181819 10.5219L4.68859 6.01513L0.166687 1.49323L1.49325 0.166668L6.01515 4.68857L10.5219 0.1818L11.8132 1.47305L7.3064 5.97983L11.8334 10.5068L10.5068 11.8333L5.97984 7.30639L1.47307 11.8132L0.181819 10.5219Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M0.181819 10.5219L4.68859 6.01513L0.166687 1.49323L1.49325 0.166668L6.01515 4.68857L10.5219 0.1818L11.8132 1.47305L7.3064 5.97983L11.8334 10.5068L10.5068 11.8333L5.97984 7.30639L1.47307 11.8132L0.181819 10.5219Z",fill:"currentColor"})]})},20358:function(e,t,s){"use strict";var a=s(57437);t.Z=e=>{let{width:t,height:s}=e;return(0,a.jsxs)("svg",{width:t||"auto",height:s||"auto",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.51 6.01C11.51 6.83843 10.8384 7.51 10.01 7.51H10C9.17157 7.51 8.5 6.83843 8.5 6.01V6C8.5 5.17157 9.17157 4.5 10 4.5H10.01C10.8384 4.5 11.51 5.17157 11.51 6V6.01Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.01 15.01C9.45772 15.01 9.01 14.5623 9.01 14.01V10.01C9.01 9.45772 9.45772 9.01 10.01 9.01C10.5623 9.01 11.01 9.45772 11.01 10.01V14.01C11.01 14.5623 10.5623 15.01 10.01 15.01Z",fill:"currentColor"})]})}},48639:function(e,t,s){"use strict";var a,o;s.d(t,{I:function(){return a}}),(o=a||(a={}))[o.BOTTOM=0]="BOTTOM",o[o.TOP=1]="TOP"},8572:function(e,t,s){"use strict";var a,o;s.d(t,{N:function(){return a}}),(o=a||(a={}))[o.EMPTY=0]="EMPTY",o[o.AVAILABLE=1]="AVAILABLE",o[o.NOT_AVAILABLE=2]="NOT_AVAILABLE"},93334:function(e,t,s){"use strict";var a,o;s.d(t,{J:function(){return a}}),(o=a||(a={})).TAB="tab",o.WINDOW="window"},39537:function(e,t,s){"use strict";var a,o;s.d(t,{F:function(){return a}}),(o=a||(a={})).POST="post",o.PUT="put",o.DELETE="delete"},45331:function(e,t,s){"use strict";s.d(t,{e:function(){return n}});var a=s(2314),o=s(85922);function n(e,t){let s=(0,o.Z)(),n=async s=>{try{let o=await a.eN[t](e,s);return a.ub.getDataIfAvailable(o)}catch(e){throw a.ub.checkErrorStatus(e)}},r=async s=>{try{let o=await a.eN[t](e,s);return a.ub.getMessageIfAvailable(o)}catch(e){throw a.ub.checkErrorStatus(e)}};return{...s,submitHandler:n,submitHandlerWithMessage:r}}},15722:function(e,t,s){"use strict";s.d(t,{x:function(){return l}});var a=s(93334);let o={width:800,height:600},n=()=>!0,r={popup:",popup=true",noPopup:",popup=false"},i=(e,t)=>{t={...o,...t};let s="\n    width=".concat(t.width,",\n    height=").concat(t.height,",\n    left=").concat(n()&&(window.screen.width-t.width)/2||0,",\n    top=").concat(n()&&(window.screen.height-t.height)/2||0,"\n  ");switch(e){case a.J.WINDOW:s+=r.popup;break;case a.J.TAB:s+=r.noPopup}return s},l=(e,t,s)=>{let a=i(t,s);window.open(e,"_blank",a)}},23992:function(e,t,s){"use strict";var a=s(16463);t.Z=()=>{let{locale:e}=(0,a.useParams)();return{intlRoute:t=>"/"===t[0]?"/".concat(e).concat(t):"/".concat(e,"/").concat(t)}}},66271:function(e,t,s){"use strict";
1var a=s(64615),o=s(34793),n=s(8572),r=s(59429),i=s(39537),l=s(69989),c=s(45331),u=s(51622),d=s(2265),h=s(54828),p=s(90896);t.Z=()=>{let{showToastError:e}=(0,p.p)(),{submitHandler:t}=(0,l.$)(r.a.REGISTER),{submitHandler:s}=(0,l.$)(r.a.CHECK_FULL_NAME_EXISTS),{submitHandler:m}=(0,c.e)(a.B.CHECK_ACCOUNT_EXISTS,i.F.POST),{user:g,setUser:x}=(0,d.useContext)(u.V),{triggerRegisterEvent:w}=(0,h.Z)();return{userSignUp:async s=>{try{var a;let e=await t(s),n=JSON.parse(JSON.stringify(e));return n.wallet={balance:n.balance,subBalance:null!==(a=n.subBalance)&&void 0!==a?a:0},w(),await localStorage.setItem(o.I.TOKEN,n.token),await localStorage.setItem(o.I.USER_DATA,JSON.stringify(n)),await x(n.token),n}catch(t){e(t.message)}},checkAccountExists:async e=>""===e?{accountStatus:n.N.EMPTY}:{accountStatus:(await m({username:e})).exists?n.N.NOT_AVAILABLE:n.N.AVAILABLE,accountTooltip:[]},checkNicknameExists:async e=>await s({fullname:e})}}},57523:function(e,t,s){"use strict";s.d(t,{f:function(){return n}});var a=s(4591),o=s(2265);function n(){return(0,o.useContext)(a.I)}},4591:function(e,t,s){"use strict";s.d(t,{I:function(){return a}});let a=(0,s(2265).createContext)({a:"",utm_campaign:"",utm_source:"",utm_medium:"",utm_term:"",utm_content:""})},45272:function(e,t,s){"use strict";s.d(t,{_v:function(){return c},e1:function(){return d},sI:function(){return l}});var a=s(64051);let o={timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},n={day:a.eA,month:a.eA},r={hour:a.eA,minute:a.eA},i={hour:a.eA,minute:a.eA,second:a.eA},l=e=>new Date(Date.parse(e=e.replace(/(\b\w{2}\b)-(\b\w{2}\b)/g,"$2-$1"))).toISOString(),c=(e,t)=>{switch(t){case"date":return u(new Date(e),n);case"time":return u(new Date(e),i)}},u=(e,t)=>{try{return new Intl.DateTimeFormat(a.Ak,{...{...t,hour12:!1},...o}).format(e)}catch(e){return""}},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=u(e,n),s=u(e,r);return"".concat(t," ").concat(s)}},97826:function(e){e.exports={checkbox:"checkbox_checkbox__MNaBz",checkboxInputWrapper:"checkbox_checkboxInputWrapper__uiAvO",mobile:"checkbox_mobile__97ZuL",checkboxHidden:"checkbox_checkboxHidden__3ShFm",checkboxlabelWrapper:"checkbox_checkboxlabelWrapper__MoXRI",checkboxHiddenMobile:"checkbox_checkboxHiddenMobile__ZVCsM"}},68295:function(e){e.exports={textarea:"textArea_textarea__rFN1O"}},81903:function(e){e.exports={textAreaWrapper:"textAreaWrapper_textAreaWrapper__luhGf",indicator:"textAreaWrapper_indicator__1PZId",left:"textAreaWrapper_left__NPm4M",right:"textAreaWrapper_right__il1HK"}},9010:function(e){e.exports={iconButton:"iconButton_iconButton__ZPMga",left:"iconButton_left__YX4gq",right:"iconButton_right__TPoji"}},97168:function(e){e.exports={toolTip:"tooltip_toolTip__XclCx",toolTipDefault:"tooltip_toolTipDefault__hBntA",toolTipWhiteArrow:"tooltip_toolTipWhiteArrow__1d4uP"}},49917:function(e){e.exports={registerButton:"authButton_registerButton__hwNQA",loginButton:"authButton_loginButton__pC88B"}},85713:function(e){e.exports={headerBookmark:"bookmark_headerBookmark__6rlKi"}},75049:function(e){e.exports={headerContainer:"header_headerContainer__og21v",header:"header_header__MLuLB",separator:"header_separator__8fV_z"}},72664:function(e){e.exports={time:"time_time__qBhRm"}},20463:function(e){e.exports={rechargeButton:"loginHeaderButton_rechargeButton__e_ZdM",active:"loginHeaderButton_active__wkoGu",disabled:"loginHeaderButton_disabled__B9z_z",withdrawButton:"loginHeaderButton_withdrawButton__IQ_dH",warningIcon:"loginHeaderButton_warningIcon__qH0__"}},92388:function(e){e.exports={menuArea:"megaMenu_menuArea__MAaBf",logoLink:"megaMenu_logoLink__lAYAJ",menuItem:"megaMenu_menuItem__CaQqt",subMenu:"megaMenu_subMenu__LyU_a",activeMenu:"megaMenu_activeMenu__vWfJd",bgMenuShadow:"megaMenu_bgMenuShadow__DyLBo"}},78863:function(e){e.exports={eSportWrapper:"subMenuList_eSportWrapper__Pltbd",lotteryWrapper:"subMenuList_lotteryWrapper__30aqE",pokerWrapper:"subMenuList_pokerWrapper__LjUPa",sportWrapper:"subMenuList_sportWrapper__ob_dh",disabled:"subMenuList_disabled__TnL8J",underFix:"subMenuList_underFix__wgNj9",subItem:"subMenuList_subItem__fK5En",itemName:"subMenuList_itemName__H18DQ",hotWrapper:"subMenuList_hotWrapper__osAQ5",fishingWrapper:"subMenuList_fishingWrapper__DGS8C",gamesWra
1pper:"subMenuList_gamesWrapper__baLK5",casinoWrapper:"subMenuList_casinoWrapper__OguLb",hotMenu:"subMenuList_hotMenu__r4Amw",hotInfoWrap:"subMenuList_hotInfoWrap__tX31F",pokerInfoWrap:"subMenuList_pokerInfoWrap__VUr1a",isComingSoon:"subMenuList_isComingSoon__1nDXf",infoWrap:"subMenuList_infoWrap__iAFy2",logoWrap:"subMenuList_logoWrap__Qmz8L",newIcon:"subMenuList_newIcon__uazAc",jackpotIcon:"subMenuList_jackpotIcon__RrfMB",maintain:"subMenuList_maintain__Ko0sc"}},71255:function(e,t){"use strict";t.Z={src:"/_next/static/media/successCircleCheck.c44c12d3.svg",height:49,width:48,blurWidth:0,blurHeight:0}}}]);

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.