PageSourceSearch

https://116lotto.tv/_next/static/chunks/pages/gamelobby-79e74f899fc9505b.js

js 116lotto.tv collected 2026-10-09 21:55:07 UTC 113,319 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f98a07ef-fe33-4889-8321-1ac555c1d796",e._sentryDebugIdIdentifier="sentry-dbid-f98a07ef-fe33-4889-8321-1ac555c1d796")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4296],{98873:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gamelobby",function(){return a(75817)}])},66409:function(e,t,a){"use strict";a.d(t,{g:function(){return use100vh}});var n=a(67294),__assign=function(){return(__assign=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},__rest=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a},r=!1,s=(0,n.forwardRef)(function(e,t){var a=e.style,s=__rest(e,["style"]),i=use100vh();!r&&(null==a?void 0:a.height)&&(r=!0,console.warn("<Div100vh /> overrides the height property of the style prop"));var l=__assign(__assign({},a),{height:i?i+"px":"100vh"});return n.createElement("div",__assign({ref:t,style:l},s))});function use100vh(){var e,t,a,r=(0,n.useState)(measureHeight),s=r[0],i=r[1],l=(t=(e=(0,n.useState)(!1))[0],a=e[1],(0,n.useEffect)(function(){isClient()&&a(!0)},[]),t);return(0,n.useEffect)(function(){if(l)return window.addEventListener("resize",setMeasuredHeight),function(){return window.removeEventListener("resize",setMeasuredHeight)};function setMeasuredHeight(){i(measureHeight())}},[l]),l?s:null}function measureHeight(){return isClient()?window.innerHeight:null}function isClient(){return"undefined"!=typeof window&&"undefined"!=typeof document}s.displayName="Div100vh",t.ZP=s},28629:function(e,t,a){"use strict";a.d(t,{C7:function(){return useScrollDirection},Ie:function(){return r},ey:function(){return useScrollYPosition}});var n,r,s=a(24043),i=a(67294),getScrollY=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},isSkip=function(){var e=document.body.style;return"fixed"===e.position&&"hidden"===e.overflow||!!document.querySelector('[data-modal-visible="true"]')};function useScrollDirection(){var e=(0,s._)((0,i.useState)(0),2),t=e[0],a=e[1];return(0,i.useEffect)(function(){var e=getScrollY(),handleScroll=function(){if(!isSkip()){var t=getScrollY(),n=t-e;0===t||n<=-50?(e=t,a(1)):n>=100&&(e=t,a(2))}};return window.addEventListener("scroll",handleScroll),function(){window.removeEventListener("scroll",handleScroll)}},[]),t}function useScrollYPosition(){var e=(0,s._)((0,i.useState)(0),2),t=e[0],a=e[1];return(0,i.useEffect)(function(){var handleScroll=function(){isSkip()||a(getScrollY())};return window.addEventListener("scroll",handleScroll),function(){window.removeEventListener("scroll",handleScroll)}},[]),{yPosition:t}}(n=r||(r={}))[n.NONE=0]="NONE",n[n.UP=1]="UP",n[n.DOWN=2]="DOWN"},79015:function(e,t,a){"use strict";a.d(t,{_L:function(){return CardContainer},xu:function(){return CardImage},SK:function(){return CardText},ll:function(){return CardTitle}});var n=a(85893);a(67294),a(78358);var CardContainer=function(e){var t=e.children,a=e.testId,r=null!=a?a:"gamelobby-card";return(0,n.jsx)("div",{id:"div-".concat(r,"-1"),"data-testid":"div-".concat(r,"-1"),className:"bg-white rounded-[0.8rem] shadow-[0_3px_10px_rgba(0,94,184,0.15)] pl-[0.8rem] py-[0.4rem] flex flex-col h-[100px] desktop-standard:pr-[0.8rem] desktop-standard:pb-[1.2rem] desktop-standard:h-[112px] xl:pr-0 xl:pb-[0.4rem] xl:h-[100px] hover:bg-[#F0F6FB]","data-sentry-component":"CardContainer","data-sentry-source-file":"CardContainer.tsx",children:t})},r=a(63682),CardImage=function(e){var t=e.src,a=e.testId;return(0,n.jsx)(r.Z,{id:"img-".concat(null!=a?a:"gamelobby-card","-1"),className:"w-[3.2rem h-[3.2rem] ml-[-2px]",src:"/game-lobby/".concat(t),alt:"card",width:32,height:32,"data-sentry-element":"Img","data-sentry-component":"CardImage","data-sentry-source-file":"CardImage.tsx"})},s=a(82729),i=a(70714),l=a(7311),o=a(77113);
1function _templateObject(){var e=(0,s._)(["\n  color: #666666;\n  \n  line-height: 1;\n\n\n  b {\n    font-weight: 700;\n  }\n  font-size: 14px;\n  font-weight: 400;\n  /* @media screen and (min-width: ","px) {\n    font-size: 1.8rem;\n  } */\n"]);return _templateObject=function(){return e},e}var d=i.ZP.div.withConfig({displayName:"CardText__Text",componentId:"sc-3a802b79-0"})(_templateObject(),l.y.MD),CardText=function(e){var t=e.text,a=e.testId,r=null!=a?a:"gamelobby-card";return(0,n.jsx)(d,{id:"label-".concat(r,"-message-1"),"data-testid":"label-".concat(r,"-message-1"),"data-sentry-element":"Text","data-sentry-component":"CardText","data-sentry-source-file":"CardText.tsx",children:(0,n.jsx)(o.Jv,{value:t,"data-sentry-element":"HTMLText","data-sentry-source-file":"CardText.tsx"})})},c=a(29360),CardTitle=function(e){var t=e.text,a=e.testId,r=(0,c.Z)(),s=null!=a?a:"gamelobby-card";return(0,n.jsx)("div",{id:"label-".concat(s,"-title-1"),"data-testid":"label-".concat(s,"-title-1"),className:"text-nowrap font-[700] text-[#000000] text-[2.2rem] pt-[0.75rem]","data-sentry-component":"CardTitle","data-sentry-source-file":"CardTitle.tsx",children:"หวยออมสิน ดิจิทัล 2 ปี"===t||"หวยออมสิน ดิจิทัล 1 ปี"===t?r?(0,n.jsxs)("div",{className:"text-start",children:[t.split(" ")[0],(0,n.jsx)("br",{}),(0,n.jsxs)("div",{className:"",children:[t.split(" ")[1]," ",t.split(" ")[2]," ","ปี"]})]}):(0,n.jsx)("div",{children:t}):t})}},47776:function(e,t,a){"use strict";a.d(t,{r:function(){return Grid}});var n=a(85893);a(67294);var r=a(40907),Grid=function(e){var t=e.children,a=e.className,s=e.id,i=e["data-testid"],l=e.colsClassName,o=void 0===l?"mobile-sm:grid-cols-2 desktop:grid-cols-4":l;return(0,n.jsx)("div",{id:s,"data-testid":i,className:(0,r.A)("grid items-stretch","gap-x-[1.6rem] gap-y-[3.2rem] md:gap-x-[2.4rem]",o,a),"data-sentry-component":"Grid","data-sentry-source-file":"Grid.tsx",children:t})}},5258:function(e,t,a){"use strict";var n=a(24043),r=a(67294);t.Z=function(e){var t=window.innerWidth,a=window.innerHeight,s=(0,n._)((0,r.useState)(e?0:t),2),i=s[0],l=s[1],o=(0,n._)((0,r.useState)(e?0:a),2),d=o[0],c=o[1];return(0,r.useEffect)(function(){var handleWindowResize=function(){e&&e.current?(l(e.current.offsetWidth),c(e.current.offsetHeight)):void 0===e&&(l(window.innerWidth),c(window.innerHeight))};return handleWindowResize(),window.addEventListener("resize",handleWindowResize),window.addEventListener("orientationchange",handleWindowResize),function(){window.removeEventListener("resize",handleWindowResize),window.removeEventListener("orientationchange",handleWindowResize)}},[e]),{width:i,height:d}}},72694:function(e,t,a){"use strict";a.d(t,{f:function(){return FavoriteIcon}});var n=a(85893),FavoriteIcon=function(e){var t=e.style,a=e.className,r=e.isActive;return(0,n.jsx)("svg",{className:a,style:t,fill:"none",height:"48",viewBox:"0 0 48 48",width:"48",xmlns:"http://www.w3.org/2000/svg","data-sentry-element":"svg","data-sentry-component":"FavoriteIcon","data-sentry-source-file":"index.tsx",children:r?(0,n.jsx)("path",{d:"M42.465 9.58853C37.6796 4.80447 29.8949 4.80447 25.1108 9.58853L23.9996 10.6991L22.8891 9.58853C18.105 4.80382 10.3196 4.80382 5.53553 9.58853C0.848607 14.2755 0.818172 21.7047 5.46495 26.8702C9.70313 31.5798 22.2027 41.7547 22.733 42.1853C23.0931 42.478 23.5263 42.6204 23.9569 42.6204C23.9711 42.6204 23.9854 42.6204 23.999 42.6198C24.4445 42.6405 24.8932 42.4877 25.2649 42.1853C25.7953 41.7547 38.2961 31.5798 42.5356 26.8695C47.1817 21.7047 47.1513 14.2755 42.465 9.58853Z",fill:"#F1525F"}):(0,n.jsx)("path",{d:"M42.4644 9.59044C37.6772 4.80319 29.8916 4.80319 25.1144 9.59044L24.005 10.6998L22.8956 9.59044C18.0984 4.80319 10.3128 4.80319 5.53557 9.59044C0.84826 14.2778 0.818277 21.7035 5.46562 26.8705C9.70319 31.5779 22.206 41.752 22.7357 42.1818C23.0955 42.4716 23.5253 42.6215 23.955 42.6215C23.965 42.6215 23.985 42.6215 23.995 42.6215C24.4447 42.6415 24.8845 42.4916 25.2643 42.1918C25.794 41.762 38.2968 31.5878 42.5344 26.8805C47.1817 21.7135 47.1517 14.2878 42.4644 9.60044V9.59044ZM39.646 24.272C36.3379 27.9399 27.2631 35.5156 23.995 38.2041C20.7369 35.5156 11.6521 27.9499 8.35396 24.272C5.11582 20.6741 5.08583 15.537 8.284 12.3389C9.92306 10.6998 12.0618 9.89027 14.2106 9.89027C16.3594 9.89027 18.5081 10.7098 20.1372 12.3389L22.5758 14.7775C22.8656 15.0673 23.2354 15.2372 23.6152 15.3072C24.2349 15.4371 24.9145 15.2672 25.4042 14.7875L27.8528 12.3489C31.1209 9.08074 36.4479 9.08074 39.716 12.3489C42.9142 15.547 42.8842 20.6841 39.646 24.282V24.272Z",fill:"#666666"})})}},15444:function(e,t,a){"use strict";a.d(t,{EH:function(){return CardOpenedV2},Qc:function(){return m},gH:function(){return c}});var n=a(82729),r=a(85893),s=a(57680),i=a(40030),l=a(70714),o=a(7311),d=a(79015);
1function _templateObject(){var e=(0,n._)(["\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,n._)(["\n  @media screen and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) {\n    display: none;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,n._)(["\n  position: relative;\n  \n  &::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    right: 0;\n    width: 4.5rem;\n    height: 4.5rem;\n    pointer-events: none;\n    z-index: 5;\n  }\n"]);return _templateObject2=function(){return e},e}var c=l.ZP.div.withConfig({displayName:"CardOpenedV2__Footer1",componentId:"sc-c0c70dd7-0"})(_templateObject(),o.y.XXS,o.y.MD-1,o.y.LG,o.y.XL-1),m=l.ZP.div.withConfig({displayName:"CardOpenedV2__Footer2",componentId:"sc-c0c70dd7-1"})(_templateObject1(),o.y.XXS-1,o.y.MD,o.y.LG-1,o.y.XL),u=(0,l.ZP)(d._L).withConfig({displayName:"CardOpenedV2__StyledCardContent",componentId:"sc-c0c70dd7-2"})(_templateObject2()),CardOpenedV2=function(e){var t=e.image,a=e.link,n=e.schedule,l=e.title,o=e.round,x=e.allowClickThrough,f=e.testId,y=(0,i.$G)("gameLobby").t,p=null!=f?f:"gamelobby-card",h=(0,r.jsxs)(u,{testId:f,children:[(0,r.jsxs)("div",{className:"relative w-full h-full shrink rounded-[0.4rem]",children:[(0,r.jsx)("span",{id:"label-".concat(p,"-status-1"),"data-testid":"label-".concat(p,"-status-1"),className:"absolute left-0 top-[2px] font-[700] bg-[#22CA8D] text-white leading-[1.6rem] text-[1.4rem] ml-[-0.8rem] rounded-r-full px-[0.8rem]",children:y("status.open")}),(0,r.jsx)("div",{className:"mt-[1.4rem] -mx-[0.8rem] pb-[0.4rem] leading-none border-b-[0.1rem] border-b-solid border-b-[#E6EFF8]",children:(0,r.jsx)("div",{className:"px-[0.8rem]",children:o?(0,r.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,r.jsx)(d.xu,{src:t}),(0,r.jsx)("div",{className:"w-[0.8rem]"}),(0,r.jsxs)("div",{className:"flex flex-col items-start",children:[(0,r.jsx)(d.ll,{text:l}),(0,r.jsx)("span",{className:"text-black text-[1.8rem] font-[700]",children:o})]})]}):(0,r.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,r.jsx)(d.xu,{src:t,testId:f}),(0,r.jsx)("div",{className:"w-[0.8rem]"}),(0,r.jsx)(d.ll,{text:l,testId:f})]})})})]}),(0,r.jsxs)("div",{className:"leading-[1] font-[400] text-[#666666] text-left",children:[(0,r.jsx)(c,{children:(0,r.jsxs)("div",{className:"flex flex-col items-center text-[1.4rem]",children:[(0,r.jsx)("div",{className:"w-full shrink",children:(0,r.jsx)("div",{children:(0,r.jsx)("span",{id:"label-".concat(p,"-schedule-close-1"),"data-testid":"label-".concat(p,"-schedule-close-1"),children:"\n                  ".concat(y("schedule.close")," ").concat(n.close,"\n                  ")})})}),(0,r.jsx)("div",{className:"w-full shrink",children:(0,r.jsx)("div",{children:(0,r.jsx)("span",{id:"label-".concat(p,"-schedule-result-1"),"data-testid":"label-".concat(p,"-schedule-result-1"),children:"\n                  ".concat(y("schedule.result")," ").concat(n.result,"\n                  ")})})})]})}),(0,r.jsx)(m,{children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-between text-[1.2rem] mobile:text-[1.4rem] desktop-standard:text-[1.8rem] pt-[0.4rem]",children:[(0,r.jsxs)("div",{className:"w-full shrink flex flex-row",children:[(0,r.jsx)("div",{className:"min-w-[5.4rem] lg:min-w-[8rem] mr-[0.4rem]",children:y("schedule.close")}),(0,r.jsx)("div",{children:n.close})]}),(0,r.jsxs)("div",{className:"w-full shrink flex flex-row",children:[(0,r.jsx)("div",{className:"min-w-[5.4rem] lg:min-w-[8rem] mr-[0.4rem]",children:y("schedule.result")}),(0,r.jsx)("div",{children:n.result})]})]})})]})]});return void 0===x||x?(0,r.jsx)(s.Z,{id:"link-".concat(p,"-play-1"),"data-testid":"link-".concat(p,"-play-1"),className:"grid",href:a.href,passHref:!0,"data-sentry-element":"NextLink","data-sentry-component":"CardOpenedV2","data-sentry-source-file":"CardOpenedV2.tsx",children:h}):h}},2932:function(e,t,a){"use strict";a.d(t,{C:function(){return LoadingCircular}});var n=a(24043),r=a(85893),s=a(67294),i=a(82729),l=a(70714),o=a(7311);
1function _templateObject(){var e=(0,i._)(["\n  .sk-circle {\n    margin: "," auto auto auto;\n    width: ","px;\n    height: ","px;\n    position: relative;\n  }\n  .sk-circle .sk-child {\n    width: 100%;\n    height: 100%;\n    position: absolute;\n    left: 0;\n    top: 0;\n  }\n  .sk-circle .sk-child:before {\n    content: '';\n    display: block;\n    margin: 0 auto;\n    width: 15%;\n    height: 15%;\n    background-color: #126ab2;\n    border-radius: 100%;\n    -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;\n    animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;\n  }\n  .sk-circle .sk-circle2 {\n    -webkit-transform: rotate(30deg);\n    -ms-transform: rotate(30deg);\n    transform: rotate(30deg);\n  }\n  .sk-circle .sk-circle3 {\n    -webkit-transform: rotate(60deg);\n    -ms-transform: rotate(60deg);\n    transform: rotate(60deg);\n  }\n  .sk-circle .sk-circle4 {\n    -webkit-transform: rotate(90deg);\n    -ms-transform: rotate(90deg);\n    transform: rotate(90deg);\n  }\n  .sk-circle .sk-circle5 {\n    -webkit-transform: rotate(120deg);\n    -ms-transform: rotate(120deg);\n    transform: rotate(120deg);\n  }\n  .sk-circle .sk-circle6 {\n    -webkit-transform: rotate(150deg);\n    -ms-transform: rotate(150deg);\n    transform: rotate(150deg);\n  }\n  .sk-circle .sk-circle7 {\n    -webkit-transform: rotate(180deg);\n    -ms-transform: rotate(180deg);\n    transform: rotate(180deg);\n  }\n  .sk-circle .sk-circle8 {\n    -webkit-transform: rotate(210deg);\n    -ms-transform: rotate(210deg);\n    transform: rotate(210deg);\n  }\n  .sk-circle .sk-circle9 {\n    -webkit-transform: rotate(240deg);\n    -ms-transform: rotate(240deg);\n    transform: rotate(240deg);\n  }\n  .sk-circle .sk-circle10 {\n    -webkit-transform: rotate(270deg);\n    -ms-transform: rotate(270deg);\n    transform: rotate(270deg);\n  }\n  .sk-circle .sk-circle11 {\n    -webkit-transform: rotate(300deg);\n    -ms-transform: rotate(300deg);\n    transform: rotate(300deg);\n  }\n  .sk-circle .sk-circle12 {\n    -webkit-transform: rotate(330deg);\n    -ms-transform: rotate(330deg);\n    transform: rotate(330deg);\n  }\n  .sk-circle .sk-circle2:before {\n    -webkit-animation-delay: -1.1s;\n    animation-delay: -1.1s;\n  }\n  .sk-circle .sk-circle3:before {\n    -webkit-animation-delay: -1s;\n    animation-delay: -1s;\n  }\n  .sk-circle .sk-circle4:before {\n    -webkit-animation-delay: -0.9s;\n    animation-delay: -0.9s;\n  }\n  .sk-circle .sk-circle5:before {\n    -webkit-animation-delay: -0.8s;\n    animation-delay: -0.8s;\n  }\n  .sk-circle .sk-circle6:before {\n    -webkit-animation-delay: -0.7s;\n    animation-delay: -0.7s;\n  }\n  .sk-circle .sk-circle7:before {\n    -webkit-animation-delay: -0.6s;\n    animation-delay: -0.6s;\n  }\n  .sk-circle .sk-circle8:before {\n    -webkit-animation-delay: -0.5s;\n    animation-delay: -0.5s;\n  }\n  .sk-circle .sk-circle9:before {\n    -webkit-animation-delay: -0.4s;\n    animation-delay: -0.4s;\n  }\n  .sk-circle .sk-circle10:before {\n    -webkit-animation-delay: -0.3s;\n    animation-delay: -0.3s;\n  }\n  .sk-circle .sk-circle11:before {\n    -webkit-animation-delay: -0.2s;\n    animation-delay: -0.2s;\n  }\n  .sk-circle .sk-circle12:before {\n    -webkit-animation-delay: -0.1s;\n    animation-delay: -0.1s;\n  }\n\n  @-webkit-keyframes sk-circleBounceDelay {\n    0%,\n    80%,\n    100% {\n      -webkit-transform: scale(0);\n      transform: scale(0);\n    }\n    40% {\n      -webkit-transform: scale(1);\n      transform: scale(1);\n    }\n  }\n\n  @keyframes sk-circleBounceDelay {\n    0%,\n    80%,\n    100% {\n      -webkit-transform: scale(0);\n      transform: scale(0);\n    }\n    40% {\n      -webkit-transform: scale(1);\n      transform: scale(1);\n    }\n  }\n\n  @media (min-width: ","px) {\n    .sk-circle {\n      margin: 1rem auto;\n    }\n  }\n"]);return _templateObject=function(){return e},e}var d=l.ZP.div.withConfig({displayName:"Circular.styled__SpinnerContainer",componentId:"sc-f5f083a9-0"})(_templateObject(),function(e){return .3*e.size},function(e){return e.size},function(e){return e.size},o.y.TABLET_UP),generateSpinnerChild=function(e){for(var t=[],a=0;a<e;a++)t.push((0,r.jsx)("div",{className:"sk-circle".concat(a+1," sk-child")},"sk-circle".concat(a+1)));return t},LoadingCircular=function(e){e.color;var t=e.size,a=e.numbers,i=void 0===a?12:a,l=e.label,o=(0,n._)((0,s.use
1State)(0),2);o[0],o[1];var c=generateSpinnerChild(i);return(0,r.jsxs)(d,{className:"spinner",size:void 0===t?60:t,"data-sentry-element":"SpinnerContainer","data-sentry-component":"LoadingCircular","data-sentry-source-file":"Circular.tsx",children:[(0,r.jsx)("div",{className:"sk-circle",children:null==c?void 0:c.map(function(e){return e})}),l?(0,r.jsx)("div",{className:"text-center pt-1",children:(0,r.jsx)("p",{children:l})}):null]})}},69373:function(e,t,a){"use strict";a.d(t,{R:function(){return NotLoggedInDialog}});var n=a(85893),r=a(67294),s=a(81785),NotLoggedInDialog=function(e){var t=e.visible,a=e.onCancel,i=(0,r.useMemo)(function(){return t?encodeURIComponent(window.location.pathname+window.location.search):encodeURIComponent("/")},[t]);return(0,n.jsxs)(s.Dialog,{action:{primary:{href:"/login?path=".concat(i),title:"สมัคร/เข้าสู่ระบบ"}},emoji:s.Emoji.CAUTION,title:"สมัคร/เข้าสู่ระบบก่อนนะ",visible:t,onClose:a,"data-sentry-element":"Dialog","data-sentry-component":"NotLoggedInDialog","data-sentry-source-file":"NotLoggedInDialog.tsx",children:[(0,n.jsx)("span",{children:"กรุณาสมัครสมาชิกหรือเข้าสู่ระบบ"}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{children:"เพื่อดำเนินการต่อ"})]})}},53163:function(e,t,a){"use strict";var n=a(85893),r=a(5152),s=a.n(r);a(67294);var i=s()(function(){return a.e(4344).then(a.t.bind(a,14344,23))},{loadableGenerated:{webpack:function(){return[14344]}},ssr:!1});t.Z=function(e){var t=e.size,a=e.color,r=e.width;return(0,n.jsx)(i,{primaryColor:a||"#126ab2",size:t||"40px",width:r||"4px","data-sentry-element":"LoadingSpin","data-sentry-component":"LoadingSpinner","data-sentry-source-file":"LoadingSpinner.tsx"})}},75817:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return eb},default:function(){return gamelobby}});var n=a(85893),r=a(67294),s=a(57119),i=a(248),l=a(42010),o=a(86489),d=a(40030),c=a(11163),m=a(44134),u=a(40907),x=a(5258),f=a(78358),y=a(7311),p=a(80331),h=a(57649),b=a(86028),v=a(28629),g=a(50166),j=a(87537);function getRoundStatusFromData(e,t){if(t){var a={thai:"UNDERGROUND",lottery:"LOTTERY",baac:"BANK-BAAC",gsb1:"BANK-GSB1",gsb2:"BANK-GSB2",malay:"MALAY",set_malay:"MALAYSET",hanoi:"HANOI-NORMAL",hanoi_vip:"HANOI-VIP",hanoi_sp:"HANOI-SPECIAL",hanoi_asian:"HANOI-ASIAN",hanoi_hd:"HANOI-HD",hanoi_star:"HANOI-STAR",hanoi_tv:"HANOI-TV",hanoi_redcross:"HANOI-REDCROSS",hanoi_extra:"HANOI-EXTRA",set_hanoi:"HANOISET",laos:"LAO-NORMAL",laos_super:"LAO-SUPER",laos_star:"LAO-STAR",laos_redcross:"LAO-REDCROSS",laos_zodiac:"LAO-ZODIAC",laos_hd:"LAO-HD",laos_extra:"LAO-EXTRA",laos_tv:"LAO-TV",laos_union:"LAO-UNION",laos_asian:"LAO-ASIAN",laos_vip:"LAO-VIP",laos_union_vip:"LAO-UNION_VIP",laos_star_vip:"LAO-STAR_VIP",set_laos:"LAOSET",stock_china:"STOCK-CHINA",stock_egypt:"STOCK-EGYPT",stock_german:"STOCK-GERMANY",stock_hangseng:"STOCK-HONGKONG",stock_india:"STOCK-INDIA",stock_nikkei:"STOCK-JAPAN",stock_korea:"STOCK-KOREA",stock_russia:"STOCK-RUSSIA",stock_singapore:"STOCK-SINGAPORE",stock_taiwan:"STOCK-TAIWAN",stock_england:"STOCK-ENGLAND",stock_dowjones:"STOCK-USA",stock_thai:"STOCK-THAI",stock_korea_vip:"STOCK-KOREA_VIP",stock_china_vip:"STOCK-CHINA_VIP",stock_usa_vip:"STOCK-USA_VIP",stock_taiwan_vip:"STOCK-TAIWAN_VIP",stock_japan_vip:"STOCK-JAPAN_VIP",stock_germany_vip:"STOCK-GERMANY_VIP",stock_russia_vip:"STOCK-RUSSIA_VIP",stock_singapore_vip:"STOCK-SINGAPORE_VIP",stock_england_vip:"STOCK-ENGLAND_VIP",stock_hongkong_vip:"STOCK-HONGKONG_VIP","yeekee-fifteen":"YEEKEE-FIFTEEN","yeekee-five":"YEEKEE-FIVE"}[e]||e.toUpperCase();if(t[a]){var n=t[a],r=g.J.ERROR;200===n.status_code?r=g.J.OPENED:"E20016"===n.service_code?r=g.J.CLOSED:"E30000"===n.service_code&&(r=g.J.FORCE_CLOSED);var s=r===g.J.FORCE_CLOSED,i=null==n?void 0:n.start_at;if(!s&&"string"==typeof i&&i.length>0){var l=new Date(i).getTime();r=(0,j.Bq)().getTime()<l?g.J.CLOSED:g.J.PROCESSING}return{status:r,countdown:n.count_down,endAt:n.end_at,endDate:n.end_date,startAt:n.start_at}}}}var C=a(72694),N=a(327),FilterButton=function(e){var t=e.titleKey,a=e.disabled,r=e.onClick,s=e.isActivated,i=e.children;return(0,n.jsx)("button",{className:(0,u.A)("flex items-center justify-center\n          rounded-full font-[700]\n          border-[1px] border-[#005eb8]\n          shadow-[0_1px_4px_rgba(0,94,184,0.2)]\n          text-[#005eb8] text-[18px] mobile:text-[22px]\n          px-[12px]\n          h-[24px] mobile-sm:h-[28px] mobile:h-[32px] opacity-100",{"pointer-events-none opacity-[0.4]":void 0!==a&&a,"bg-primary-blue text-white":s,"bg-[#ffffff] hover:bg-[#F0F6FB] focus:bg-[#F0F6FB]":!s}),onClick:r,"data-sentry-component":"FilterButton","data-sentry-source-file":"index.tsx",children:t===N.e4.FAVORITE?(0,n.jsx)("div",{className:"w-[20px] h-[20px] flex justify-center items-center",children:(0,n.jsx)(C.f,{isActive:!0})}):i})},w=a(47776),_=a(86958),E=a(58741),k=a(96865),I=a(99269);function GameCard(e){var t=e.component,a=e.gameKey,r=e.isActiveFavorite,s=e.round;return(0,n.jsx)(t,{gameKey:a,round:s,isActiveFavorite:r,"data-sentry-element":"GameComponent","data-sentry-component":"GameCard","data-sentry-source-file":"GameCard.tsx"})}var L=a(63682),T=a(13935),O=a(24043),S=a(79365),truncateDelay=function(e){return Math.min(864e6,e)};function useRoundStatus(e,t){var a,n=(0,O._)((0,r.useState)(null!==(a=null==t?void 0:t.status)&&void 0!==a?a:g.J.CHECKING),2),s=n[0],i=n[1],l=(0,O._)((0,r.useState)(t),2),o=l[0],d=l[1],c=(0,O._)((0,r.useState)(s===g.J.CHECKING?1:0),2),m=(c[0],c[1]);return(0,r.useEffect)(function(){d(t)},[t,e]),(0,r.useEffect)(function(){if((null==o?void 0:o.status)===g.J.FORCE_CLOSED)return i(g.J.FORCE_CLOSED),function(){};if((null==o?void 0:o.status)===g.J.ERROR){i(g.J.ERROR);var t=setTimeout(function(){return m(function(e){return e+1})},6e4);return function(){clearTimeout(t)}}if((null==o?void 0:o.status)===g.J.PROCESSING){i(g.J.PROCESSING);var a=setTimeout(function(){return m(function(e){return e+1})},6e4);return function(){clearTimeout(a)}}var n=null==o?void 0:o.endAt;if("string"==typeof n){if(n.length>0){var r=new Date(n).getTime(),s=(0,j.Bq)().getTime();if(s<r){var l=null==o?void 0:o.startAt;if("string"==typeof l&&l.length>0){if(s>=new Date(l).getTime()){i(g.J.OPENED);var d=setTimeout(function(){return i(g.J.CLOSED)},r-s);return function(){clearTimeout(d)}}}else{i(g.J.OPENED);var c=setTimeout(function(){return i(g.J.CLOSED)},truncateDelay(r-s));return function(){clearTimeout(c)}}}i(g.J.CLOSED);var u=null==o?void 0:o.startAt;if("string"==typeof u&&u.length>0){var x=new Date(u).getTime();if(s<x){var f=setTimeout(function(){return m(function(e){return e+1})},truncateDelay(x-s)+3e3);return function(){clearTimeout(f)}}}else{var y=(0,S.sM)(e,null==o?void 0:o.type),p=(0,S.xt)(e,y+1);
1if(s<p){var h=setTimeout(function(){return m(function(e){return e+1})},truncateDelay(p-s)+3e3);return function(){clearTimeout(h)}}}return function(){}}return i(g.J.CLOSED),function(){}}var b=null==o?void 0:o.startAt;if("string"==typeof b&&b.length>0){var v=new Date(b).getTime(),C=(0,j.Bq)().getTime();if(C<v){i(g.J.CLOSED);var N=setTimeout(function(){return m(function(e){return e+1})},truncateDelay(v-C)+3e3);return function(){clearTimeout(N)}}return(0,S.WI)(e)>1?i(g.J.PROCESSING):i(g.J.CLOSED),function(){}}return i(g.J.CHECKING),function(){}},[e,o]),s}var G=a(99948),B=a(15444),A=a(82729),K=a(57680),V=a(70714),R=a(79015);function _templateObject(){var e=(0,A._)(["\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,A._)(["\n  @media screen and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) {\n    display: none;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,A._)(["\n  position: relative;\n  \n  &::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    right: 0;\n    width: 4.5rem;\n    height: 4.5rem;\n    pointer-events: none;\n    z-index: 5;\n  }\n"]);return _templateObject2=function(){return e},e}var F=V.ZP.div.withConfig({displayName:"CardClosedV2__Footer1",componentId:"sc-5221bd27-0"})(_templateObject(),y.y.XXS,y.y.MD-1,y.y.LG,y.y.XL-1),D=V.ZP.div.withConfig({displayName:"CardClosedV2__Footer2",componentId:"sc-5221bd27-1"})(_templateObject1(),y.y.XXS-1,y.y.MD,y.y.LG-1,y.y.XL),P=(0,V.ZP)(R._L).withConfig({displayName:"CardClosedV2__StyledCardContent",componentId:"sc-5221bd27-2"})(_templateObject2()),CardClosedV2=function(e){var t=e.footer,a=e.image,r=e.link,s=e.message,i=e.title,l=e.round,o=e.allowClickThrough,c=e.testId,m=(0,d.$G)("gameLobby").t,u=null!=c?c:"gamelobby-card",x=r.href.includes("stock-"),f=x&&r.href.includes("-vip"),y=(0,n.jsxs)(P,{testId:c,children:[(0,n.jsxs)("div",{className:"relative w-full h-full shrink rounded-[0.4rem]",children:[(0,n.jsx)("span",{id:"label-".concat(u,"-status-1"),"data-testid":"label-".concat(u,"-status-1"),className:"absolute left-0 top-[2px] font-[700] bg-[#EE2737] text-white leading-[1.6rem] text-[1.4rem] ml-[-0.8rem] rounded-r-full px-[0.8rem]",children:m("status.close")}),(0,n.jsx)("div",{className:"mt-[1.4rem] -mx-[0.8rem] pb-[0.4rem] leading-none border-b-[0.1rem] border-b-solid border-b-[#E6EFF8]",children:(0,n.jsx)("div",{className:"px-[0.8rem]",children:l?(0,n.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,n.jsx)(R.xu,{src:a}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsxs)("div",{className:"flex flex-col items-start",children:[(0,n.jsx)(R.ll,{text:i}),(0,n.jsx)("span",{className:"text-black text-[1.8rem] font-[700]",children:l})]})]}):(0,n.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,n.jsx)(R.xu,{src:a,testId:c}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsx)(R.ll,{text:i,testId:c})]})})})]}),(0,n.jsxs)("div",{className:"leading-[1] font-[400] text-[#666666] text-left",children:[(0,n.jsx)(F,{children:(0,n.jsx)("div",{className:"flex flex-col items-center text-[1.4rem]",children:(0,n.jsxs)("div",{className:"w-full shrink",children:[x&&!f?(0,n.jsx)("span",{id:"label-".concat(u,"-message-1"),"data-testid":"label-".concat(u,"-message-1"),dangerouslySetInnerHTML:{__html:s}}):(0,n.jsx)("span",{id:"label-".concat(u,"-message-1"),"data-testid":"label-".concat(u,"-message-1"),dangerouslySetInnerHTML:{__html:s.replace(/\n/g,"<br />")}}),t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),(0,n.jsx)("span",{id:"label-".concat(u,"-footer-1"),"data-testid":"label-".concat(u,"-footer-1"),dangerouslySetInnerHTML:{__html:t}})]})]})})}),(0,n.jsx)(D,{children:(0,n.jsx)("div",{className:"flex flex-col items-center justify-center text-[1.2rem] mobile:text-[1.4rem] desktop-standard:text-[1.8rem] pt-[0.4rem] text-nowrap",children:(0,n.jsxs)("div",{className:"w-full shrink",children:[(0,n.jsx)("div",{children:x&&!f?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:s}}):(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:s.replace(/\n/g,"<br />")}})}),t&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})})]})})})]})]});return void 0===o||o?(0,n.jsx)(K.Z,{id:"link-".concat(u,"-play-1"),"data-testid":"link-".concat(u,"-play-1"),className:"grid",href:r.href,passHref:!0,"data-sentry-element":"NextLink","data-sentry-component":"CardClosedV2","data-sentry-source-file":"CardClosedV2.tsx",children:y}):y},H=a(2932);
1function CardProcessingV2_templateObject(){var e=(0,A._)(["\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n"]);return CardProcessingV2_templateObject=function(){return e},e}function CardProcessingV2_templateObject1(){var e=(0,A._)(["\n  @media screen and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) {\n    display: none;\n  }\n"]);return CardProcessingV2_templateObject1=function(){return e},e}function CardProcessingV2_templateObject2(){var e=(0,A._)(["\n  position: relative;\n  \n  &::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    right: 0;\n    width: 4.5rem;\n    height: 4.5rem;\n    pointer-events: none;\n    z-index: 5;\n  }\n"]);return CardProcessingV2_templateObject2=function(){return e},e}var M=V.ZP.div.withConfig({displayName:"CardProcessingV2__Footer1",componentId:"sc-22c68e2a-0"})(CardProcessingV2_templateObject(),y.y.XXS,y.y.MD-1,y.y.LG,y.y.XL-1),Z=V.ZP.div.withConfig({displayName:"CardProcessingV2__Footer2",componentId:"sc-22c68e2a-1"})(CardProcessingV2_templateObject1(),y.y.XXS-1,y.y.MD,y.y.LG-1,y.y.XL),J=(0,V.ZP)(R._L).withConfig({displayName:"CardProcessingV2__StyledCardContent",componentId:"sc-22c68e2a-2"})(CardProcessingV2_templateObject2()),CardProcessingV2=function(e){var t=e.image,a=e.link,r=e.title,s=e.allowClickThrough,i=e.round,l=e.testId,o=(0,d.$G)("gameLobby").t,c=null!=l?l:"gamelobby-card",m=(0,n.jsxs)(J,{testId:l,children:[(0,n.jsxs)("div",{className:"relative w-full h-full shrink rounded-[0.4rem]",children:[(0,n.jsx)("span",{id:"label-".concat(c,"-status-1"),"data-testid":"label-".concat(c,"-status-1"),className:"absolute left-0 top-[2px] font-[700] bg-[#EE2737] text-white leading-[1.6rem] text-[1.4rem] ml-[-0.8rem] rounded-r-full px-[0.8rem]",children:o("status.close")}),(0,n.jsx)("div",{className:"mt-[1.4rem] -mx-[0.8rem] pb-[0.4rem] leading-none border-b-[0.1rem] border-b-solid border-b-[#E6EFF8]",children:(0,n.jsx)("div",{className:"px-[0.8rem]",children:i?(0,n.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,n.jsx)(R.xu,{src:t}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsxs)("div",{className:"flex flex-col items-start",children:[(0,n.jsx)(R.ll,{text:r}),(0,n.jsx)("span",{className:"text-black text-[1.8rem] font-[700]",children:i})]})]}):(0,n.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,n.jsx)(R.xu,{src:t,testId:l}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsx)(R.ll,{text:r,testId:l})]})})})]}),(0,n.jsxs)("div",{className:"leading-[1] font-[400] text-[#666666] text-left -mt-1",children:[(0,n.jsx)(M,{children:(0,n.jsx)("div",{className:"flex flex-col items-center text-[1.4rem]",children:(0,n.jsxs)("div",{className:"w-full h-full shrink flex items-center justify-start space-x-6",children:[(0,n.jsx)(H.C,{color:"#005EB8",size:24}),(0,n.jsx)("span",{id:"label-".concat(c,"-message-1"),"data-testid":"label-".concat(c,"-message-1"),dangerouslySetInnerHTML:{__html:o("processing").replace(/\n/g,"<br />")}})]})})}),(0,n.jsx)(Z,{children:(0,n.jsx)("div",{className:"flex flex-col items-center justify-center text-[1.2rem] mobile:text-[1.4rem] desktop-standard:text-[1.8rem] pt-[0.4rem]",children:(0,n.jsxs)("div",{className:"w-full shrink flex items-center justify-start space-x-6",children:[(0,n.jsx)(H.C,{color:"#005EB8",size:24}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:o("processing").replace(/\n/g,"<br />")}})]})})})]})]});return void 0===s||s?(0,n.jsx)(K.Z,{id:"link-".concat(c,"-play-1"),"data-testid":"link-".concat(c,"-play-1"),className:"grid",href:a.href,passHref:!0,"data-sentry-element":"NextLink","data-sentry-component":"CardProcessingV2","data-sentry-source-file":"CardProcessingV2.tsx",children:m}):m};function CardErrorV2_templateObject(){var e=(0,A._)(["\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n"]);
1return CardErrorV2_templateObject=function(){return e},e}function CardErrorV2_templateObject1(){var e=(0,A._)(["\n  @media screen and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) and (max-width: ","px) {\n    display: none;\n  }\n\n  @media screen and (min-width: ","px) {\n    display: none;\n  }\n"]);return CardErrorV2_templateObject1=function(){return e},e}function CardErrorV2_templateObject2(){var e=(0,A._)(["\n  position: relative;\n\n  &::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    right: 0;\n    width: 4.5rem;\n    height: 4.5rem;\n    pointer-events: none;\n    z-index: 5;\n  }\n"]);return CardErrorV2_templateObject2=function(){return e},e}var z=V.ZP.div.withConfig({displayName:"CardErrorV2__Footer1",componentId:"sc-4472db68-0"})(CardErrorV2_templateObject(),y.y.XXS,y.y.MD-1,y.y.LG,y.y.XL-1),U=V.ZP.div.withConfig({displayName:"CardErrorV2__Footer2",componentId:"sc-4472db68-1"})(CardErrorV2_templateObject1(),y.y.XXS-1,y.y.MD,y.y.LG-1,y.y.XL),Y=(0,V.ZP)(R._L).withConfig({displayName:"CardErrorV2__StyledCardContent",componentId:"sc-4472db68-2"})(CardErrorV2_templateObject2()),CardErrorV2=function(e){var t=e.image,a=e.link,r=e.message,s=e.title,i=e.round,l=e.allowClickThrough,o=e.testId,c=(0,d.$G)("gameLobby").t,m=null!=o?o:"gamelobby-card",u=(0,n.jsxs)(Y,{testId:o,children:[(0,n.jsxs)("div",{className:"relative w-full h-full shrink rounded-[0.4rem]",children:[(0,n.jsx)("span",{id:"label-".concat(m,"-status-1"),"data-testid":"label-".concat(m,"-status-1"),className:"absolute left-0 top-[2px] font-[700] bg-[#B3B3B3] text-white leading-[1.6rem] text-[1.4rem] ml-[-0.8rem] rounded-r-full px-[0.8rem]",children:c("status.error")}),(0,n.jsx)("div",{className:"mt-[1.4rem] -mx-[0.8rem] pb-[0.4rem] leading-none border-b-[0.1rem] border-b-solid border-b-[#E6EFF8]",children:(0,n.jsx)("div",{className:"px-[0.8rem]",children:i?(0,n.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,n.jsx)(R.xu,{src:t}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsxs)("div",{className:"flex flex-col items-start",children:[(0,n.jsx)(R.ll,{text:s}),(0,n.jsx)("span",{className:"text-black text-[1.8rem] font-[700]",children:i})]})]}):(0,n.jsxs)("div",{className:"flex text-nowrap items-center h-[4rem]",children:[(0,n.jsx)(R.xu,{src:t,testId:o}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsx)(R.ll,{text:s,testId:o})]})})})]}),(0,n.jsxs)("div",{className:"leading-[1] font-[400] text-[#666666] text-left -mt-1",children:[(0,n.jsx)(z,{children:(0,n.jsx)("div",{className:"flex flex-col items-center text-[1.4rem]",children:(0,n.jsx)("div",{className:"w-full h-full shrink flex items-center justify-start space-x-6",children:(0,n.jsx)("span",{id:"label-".concat(m,"-message-1"),"data-testid":"label-".concat(m,"-message-1"),dangerouslySetInnerHTML:{__html:r.replace(/\n/g,"<br />")}})})})}),(0,n.jsx)(U,{children:(0,n.jsx)("div",{className:"flex flex-col items-center justify-center text-[1.2rem] mobile:text-[1.4rem] desktop-standard:text-[1.8rem] pt-[0.4rem]",children:(0,n.jsx)("div",{className:"w-full shrink flex items-center justify-start space-x-6",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:r.replace(/\n/g,"<br />")}})})})})]})]});return void 0===l||l?(0,n.jsx)(K.Z,{id:"link-".concat(m,"-play-1"),"data-testid":"link-".concat(m,"-play-1"),className:"grid",href:a.href,passHref:!0,"data-sentry-element":"NextLink","data-sentry-component":"CardErrorV2","data-sentry-source-file":"CardErrorV2.tsx",children:u}):u},X=a(53163),CardLoadingV2=function(e){var t=e.image,a=e.title,r=e.round,s=e.testId;return(0,d.$G)("gameLobby").t,(0,n.jsxs)(R._L,{testId:s,"data-sentry-element":"CardContainer","data-sentry-component":"CardLoadingV2","data-sentry-source-file":"CardLoadingV2.tsx",children:[(0,n.jsx)("div",{className:"relative w-full shrink rounded-[0.4rem]",children:(0,n.jsx)("div",{className:"mt-[1.4rem] -mx-[0.8rem] pb-[0.4rem] leading-none border-b-[0.1rem] border-b-solid border-b-[#E6EFF8]",children:(0,n.jsx)("div",{className:"px-[0.8rem]",children:r?(0,n.jsxs)("div",{className:"flex text-nowrap items-center",children:[(0,n.jsx)(R.xu,{src:t}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsxs)("div",{className:"flex flex-col items-start",children:[(0,n.jsx)(R.ll,{text:a}),(0,n.jsx)("span",{className:"text-black text-[1.8rem] font-[700]",children:r})]})]}):(0,n.jsxs)("div",{className:"flex text-nowrap items-center",children:[(0,n.jsx)(R.xu,{src:t,testId:s}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsx)(R.ll,{text:a,testId:s})]})})})}),(0,n.jsx)("div",{className:"leading-none font-[400] text-[#666666] text-left",children:(0,n.jsx)("div",{className:"flex flex-col items-center justify-center h-full py-4",children:(0,n.jsx)(X.Z,{size:"22px","data-sentry-element":"LoadingSpinner","data-sentry-source-file":"CardLoadingV2.tsx"})})})]})},CardInactiveV2=function(e){var t=e.image,a=e.title,r=e.round,s=e.testId,i=(0,d.$G)("gameLobby").t;return(0,n.jsxs)(R._L,{testId:s,"data-sentry-element":"CardContainer","data-sentry-component":"CardInactiveV2","data-sentry-source-file":"CardInactiveV2.tsx",children:[(0,n.jsx)("div",{className:"relative w-full shrink rounded-[0.4rem]",children:(0,n.jsx)("div",{className:"mt-[1.4rem] -mx-[0.8rem] pb-[0.4rem] leading-none border-b-[0.1rem] border-b-solid border-b-[#E6EFF8]",children:(0,n.jsx)("div",{className:"px-[0.8rem]",children:r?(0,n.jsxs)("div",{className:"flex text-nowrap items-center",children:[(0,n.jsx)(R.xu,{src:t}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsxs)("div",{className:"flex flex-col items-start",children:[(0,n.jsx)(R.ll,{text:a}),(0,n.jsx)("span",{className:"text-black text-[1.8rem] font-[700]",children:r})]})]}):(0,n.jsxs)("div",{className:"flex text-nowrap items-center",children:[(0,n.jsx)(R.xu,{src:t,testId:s}),(0,n.jsx)("div",{className:"w-[0.8rem]"}),(0,n.jsx)(R.ll,{text:a,testId:s})]})})})}),(0,n.jsx)("div",{className:"leading-none font-[400] text-[#666666] text-left",children:(0,n.jsx)("div",{className:"flex flex-col justify-center mt-[0.8rem]",children:(0,n.jsx)(R.SK,{text:i("soon"),testId:s,"data-sentry-element":"CardText","data-sentry-source-file":"CardInactiveV2.tsx"})})})]})},W=a(11010),$=a(97582),q=a(69373),Q=a(55619);
1function FavoriteButton_templateObject(){var e=(0,A._)(["\n  width: 2rem;\n  height: 3rem;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  position: absolute;\n  right: 4px;\n  top: 0;\n  z-index: 1;\n  transition: 0.2s;\n  background-color: transparent;\n  pointer-events: auto;\n\n  @media (min-width: 768px) {\n    right: 0.6rem;\n  }\n\n  svg {\n    width: 2.2rem;\n    height: 2.2rem;\n  }\n\n  &:hover {\n    path {\n      fill: #f1525f;\n    }\n  }\n\n  &:active {\n    path {\n      fill: #f1525f;\n    }\n  }\n"]);return FavoriteButton_templateObject=function(){return e},e}var ee=V.ZP.button.withConfig({displayName:"FavoriteButton__ButtonWrapper",componentId:"sc-16ac4f43-0"})(FavoriteButton_templateObject()),Games_FavoriteButton=function(e){var t,a=e.gameKey,s=e.isActive,i=e.testId,o=(0,I.ZP)().isLogin,d=(0,l.z)().favGames,c=(0,r.useContext)(Q.J),m=(0,O._)((0,r.useState)(!1),2),u=m[0],x=m[1],f=(0,O._)((0,r.useState)(!1),2),y=f[0],p=f[1];return(0,r.useEffect)(function(){u&&p(!0)},[u]),(0,n.jsxs)(ee,{id:"btn-".concat(null!=i?i:"gamelobby-card","-favorite-1"),"data-testid":"btn-".concat(null!=i?i:"gamelobby-card","-favorite-1"),onClick:(t=(0,W._)(function(e){return(0,$.Jh)(this,function(t){switch(t.label){case 0:if(e.stopPropagation(),!o)return[3,4];if(!d.some(function(e){return e.gameKey===a}))return[3,2];return[4,(0,_.lL)(a)];case 1:return t.sent()&&(null==c?void 0:c.reloadProfile)&&c.reloadProfile(),[2];case 2:return[4,(0,_.BB)(a)];case 3:return t.sent()&&(null==c?void 0:c.reloadProfile)&&c.reloadProfile(),[3,5];case 4:x(!0),t.label=5;case 5:return[2]}})}),function(e){return t.apply(this,arguments)}),"data-sentry-element":"ButtonWrapper","data-sentry-component":"FavoriteButton","data-sentry-source-file":"FavoriteButton.tsx",children:[(0,n.jsx)(C.f,{isActive:s,"data-sentry-element":"FavoriteIcon","data-sentry-source-file":"FavoriteButton.tsx"}),y?(0,n.jsx)(q.R,{visible:u,onCancel:function(){x(!1)}}):null]})},et=o.y.favorite,getOpenTime=function(e,t,a){if(t.type===T.HJ.FULLDAY)return(0,S.xY)((0,S.CG)(e,a));var n=(0,S.FV)(e);if(t.startAt){var r=new Date(t.startAt).getTime(),s=n.find(function(e){return e.open.getTime()===r});if(s){var i=(0,S.sM)(e,s.type);return(0,S.xY)((0,S.CG)(e,i))}}var l=new Date((0,S.xt)(e,a)),o=(0,j.Bq)(),d=n.find(function(e){return e.open>o&&e.open<=l}),c=(null==d?void 0:d.type)?(0,S.sM)(e,d.type):a;return(0,S.xY)((0,S.CG)(e,c))},Stock=function(e){var t=e.gameKey,a=e.round,r=e.isActiveFavorite,s=(0,d.$G)("gameLobby").t,i=(0,l.z)().favGames,o=useRoundStatus(t,a),c=!E._V.includes(t),m="flags/".concat(t,".png"),u="list.".concat(t),x="gamelobby-card-".concat(t).concat(r?"-fav":"");if(!a)return(0,n.jsx)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:(0,n.jsx)(CardLoadingV2,{testId:x,image:m,title:G.C0[t]})});var f=(0,S.sM)(t,a.type),y=(0,S.gW)(t,f),p=G.C0[t],h=c&&y?y:"",b=!!i.find(function(e){return e.gameKey===t})||r;if(!c)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[et?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:b,testId:x}):null,!1,(0,n.jsx)(CardInactiveV2,{testId:x,image:m,title:p,round:h})]});if(o===g.J.CHECKING)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[et?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:b,testId:x}):null,!1,(0,n.jsx)(CardLoadingV2,{testId:x,image:m,title:p,round:h})]});if(o===g.J.OPENED){var v=(0,S.xY)((0,S.V_)(t,f)),j=(0,S.xY)((0,S.R7)(t,f));return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[et?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:b,testId:x}):null,!1,(0,n.jsx)(B.EH,{testId:x,image:m,link:{href:G.IN[t],title:s("play")}
1,schedule:{close:s("".concat(u,".schedule.close"),{VALUE:v}),result:s("".concat(u,".schedule.result"),{VALUE:j})},title:p,round:h})]})}if(o===g.J.ERROR||o===g.J.FORCE_CLOSED)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[et?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:b,testId:x}):null,!1,(0,n.jsx)(CardErrorV2,{testId:x,image:m,link:{href:G.IN[t]},message:s("error"),title:p,round:h})]});if(o===g.J.PROCESSING)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[et?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:b,testId:x}):null,!1,(0,n.jsx)(CardProcessingV2,{testId:x,image:m,link:{href:G.IN[t]},title:p,round:h})]});var C=getOpenTime(t,a,f);return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),"data-sentry-component":"Stock","data-sentry-source-file":"Stock.tsx",children:[et?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:b,testId:x}):null,!1,(0,n.jsx)(CardClosedV2,{testId:x,footer:G.IN[t].includes("-vip")?"":s("".concat(u,".footer")),image:m,link:{href:G.IN[t]},message:s("".concat(u,".message"),{VALUE:C}),title:p,round:h,"data-sentry-element":"CardClosedV2","data-sentry-source-file":"Stock.tsx"})]})},ea=o.y.favorite,Lotto=function(e){var t=e.gameKey,a=e.round,r=e.isActiveFavorite,s=(0,d.$G)("gameLobby").t,i=(0,l.z)().favGames,o=useRoundStatus(t,a),m=!E.yT.includes(t),u="flags/".concat(t,".png"),x="list.".concat(t),f=G.C0[t],y=(0,c.useRouter)(),p="หวยออมสิน ดิจิทัล 1 ปี"===G.C0[t];"หวยลาว / ลาวพัฒนา"===f&&(f="หวยลาว");var h=!!i.find(function(e){return e.gameKey===t})||r,b="gamelobby-card-".concat(t).concat(r?"-fav":"");return a?m?o===g.J.CHECKING?(0,n.jsxs)("div",{className:"relative",id:"div-".concat(b,"-wrapper-1"),"data-testid":"div-".concat(b,"-wrapper-1"),children:[ea?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:b}):null,p&&(0,n.jsx)("div",{className:"absolute top-[0.6rem] left-[6rem] z-10",children:(0,n.jsx)(L.Z,{id:"img-".concat(b,"-new-1"),src:"/game-lobby/new-menu-lobby.gif",alt:"new-lobby",width:34,height:16})}),(0,n.jsx)(CardLoadingV2,{image:u,title:f,testId:b})]}):o===g.J.OPENED?(0,n.jsxs)("div",{className:"relative",id:"div-".concat(b,"-wrapper-1"),"data-testid":"div-".concat(b,"-wrapper-1"),children:[ea?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:b}):null,p&&(0,n.jsx)("div",{className:"absolute top-[0.6rem] left-[6rem] z-10",children:(0,n.jsx)(L.Z,{id:"img-".concat(b,"-new-1"),src:"/game-lobby/new-menu-lobby.gif",alt:"new-lobby",width:34,height:16})}),(0,n.jsx)("div",{id:"btn-".concat(b,"-link-1"),"data-testid":"btn-".concat(b,"-link-1"),className:"cursor-pointer",onClick:function(){return y.push(G.IN[t])},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&y.push(G.IN[t])},role:"button",tabIndex:0,children:(0,n.jsx)(B.EH,{testId:b,image:u,link:{href:G.IN[t],title:s("play")},schedule:{close:s("".concat(x,".schedule.close")),result:s("".concat(x,".schedule.result"))},title:f,allowClickThrough:!1})})]}):o===g.J.ERROR||o===g.J.FORCE_CLOSED?(0,n.jsxs)("div",{className:"relative",id:"div-".concat(b,"-wrapper-1"),"data-testid":"div-".concat(b,"-wrapper-1"),children:[ea?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:b}):null,p&&(0,n.jsx)("div",{className:"absolute top-[0.6rem] left-[6.5rem] z-10",children:(0,n.jsx)(L.Z,{id:"img-".concat(b,"-new-1"),src:"/game-lobby/new-menu-lobby.gif",alt:"new-lobby",width:34,height:16})}),(0,n.jsx)("div",{id:"btn-".concat(b,"-link-1"),"data-testid":"btn-".concat(b,"-link-1"),className:"cursor-pointer",onClick:function(){return y.push(G.IN[t])},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&y.push(G.IN[t])},role:"button",tabIndex:0,children:(0,n.jsx)(CardErrorV2,{testId:b,image:u,link:{href:G.IN[t]},message:s("error"),title:f,allowClickThrough:!1})})]}):o===g.J.PROCESSING?(0,n.jsxs)("div",{className:"relative",id:"div-".concat(b,"-wrapper-1"),"data-testid":"div-".concat(b,"-wrapper-1"),children:[ea?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:b}):null,p&&(0,n.jsx)("div",{className:"absolute top-[0.6rem] left-[6rem] z-10",children:(0,n.jsx)(L.Z,{id:"img-".concat(b,"-new-1"),src:"/game-lobby/new-menu-lobby.gif",alt:"new-lobby",width:34,he
1ight:16})}),(0,n.jsx)("div",{id:"btn-".concat(b,"-link-1"),"data-testid":"btn-".concat(b,"-link-1"),className:"cursor-pointer",onClick:function(){return y.push(G.IN[t])},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&y.push(G.IN[t])},role:"button",tabIndex:0,children:(0,n.jsx)(CardProcessingV2,{testId:b,image:u,link:{href:G.IN[t]},title:f,allowClickThrough:!1})})]}):(0,n.jsxs)("div",{className:"relative",id:"div-".concat(b,"-wrapper-1"),"data-testid":"div-".concat(b,"-wrapper-1"),"data-sentry-component":"Lotto","data-sentry-source-file":"Lotto.tsx",children:[ea?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:b}):null,p&&(0,n.jsx)("div",{className:"absolute top-[0.6rem] left-[6rem] z-10",children:(0,n.jsx)(L.Z,{id:"img-".concat(b,"-new-1"),src:"/game-lobby/new-menu-lobby.gif",alt:"new-lobby",width:34,height:16})}),(0,n.jsx)("div",{id:"btn-".concat(b,"-link-1"),"data-testid":"btn-".concat(b,"-link-1"),className:"cursor-pointer",onClick:function(){return y.push(G.IN[t])},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&y.push(G.IN[t])},role:"button",tabIndex:0,children:(0,n.jsx)(CardClosedV2,{testId:b,image:u,link:{href:G.IN[t]},message:s("".concat(x,".message")),title:f,allowClickThrough:!1,"data-sentry-element":"CardClosedV2","data-sentry-source-file":"Lotto.tsx"})})]}):(0,n.jsxs)("div",{className:"relative",id:"div-".concat(b,"-wrapper-1"),"data-testid":"div-".concat(b,"-wrapper-1"),children:[ea?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:b}):null,p&&(0,n.jsx)("div",{className:"absolute top-[0.6rem] left-[6rem] z-10",children:(0,n.jsx)(L.Z,{id:"img-".concat(b,"-new-1"),src:"/game-lobby/new-menu-lobby.gif",alt:"new-lobby",width:34,height:16})}),(0,n.jsx)(CardInactiveV2,{image:u,title:f,testId:b})]}):(0,n.jsx)("div",{className:"relative",id:"div-".concat(b,"-wrapper-1"),"data-testid":"div-".concat(b,"-wrapper-1"),children:(0,n.jsx)(CardLoadingV2,{image:u,title:f,testId:b})})},en=o.y.favorite,LottoSet_getOpenTime=function(e,t,a){if(t.type===T.HJ.FULLDAY)return(0,S.xY)((0,S.CG)(e,a));var n=(0,S.FV)(e);if(t.startAt){var r=new Date(t.startAt).getTime(),s=n.find(function(e){return e.open.getTime()===r});if(s){var i=(0,S.sM)(e,s.type);return(0,S.xY)((0,S.CG)(e,i))}}var l=new Date((0,S.xt)(e,a)),o=(0,j.Bq)(),d=n.find(function(e){return e.open>o&&e.open<=l}),c=(null==d?void 0:d.type)?(0,S.sM)(e,d.type):a;return(0,S.xY)((0,S.CG)(e,c))},LottoSet=function(e){var t=e.gameKey,a=e.round,r=e.isActiveFavorite,s=(0,d.$G)("gameLobby").t,i=(0,l.z)().favGames,o=useRoundStatus(t,a),c=!E.sC.includes(t),m="flags/".concat(t,".png"),u="list.".concat(t),x="gamelobby-card-".concat(t).concat(r?"-fav":"");if(!a)return(0,n.jsx)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:(0,n.jsx)(CardLoadingV2,{testId:x,image:m,title:G.C0[t]})});var f=(0,S.sM)(t,null==a?void 0:a.type),y=(0,S.gW)(t,f),p=G.C0[t]+(c&&y?" - ".concat(y):""),h=!!i.find(function(e){return e.gameKey===t})||r;if(!c)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[en?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:x}):null,(0,n.jsx)(CardInactiveV2,{testId:x,image:m,title:p})]});if(o===g.J.CHECKING)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[en?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:x}):null,(0,n.jsx)(CardLoadingV2,{testId:x,image:m,title:p})]});if(o===g.J.OPENED){var b=(0,S.xY)((0,S.V_)(t,f)),v=(0,S.xY)((0,S.R7)(t,f));return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[en?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:x}):null,(0,n.jsx)(B.EH,{testId:x,image:m,link:{href:G.IN[t],title:s("play")}
1,schedule:{close:s("".concat(u,".schedule.close"),{VALUE:b}),result:s("".concat(u,".schedule.result"),{VALUE:v})},title:p})]})}if(o===g.J.ERROR||o===g.J.FORCE_CLOSED)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[en?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:x}):null,(0,n.jsx)(CardErrorV2,{testId:x,image:m,link:{href:G.IN[t]},message:s("error"),title:p})]});if(o===g.J.PROCESSING)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),children:[en?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:x}):null,(0,n.jsx)(CardProcessingV2,{testId:x,image:m,link:{href:G.IN[t]},title:p})]});var j=LottoSet_getOpenTime(t,a,f);return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(x,"-wrapper-1"),"data-testid":"div-".concat(x,"-wrapper-1"),"data-sentry-component":"LottoSet","data-sentry-source-file":"LottoSet.tsx",children:[en?(0,n.jsx)(Games_FavoriteButton,{gameKey:t,isActive:h,testId:x}):null,(0,n.jsx)(CardClosedV2,{testId:x,image:m,link:{href:G.IN[t]},message:s("".concat(u,".message"),{VALUE:j}),title:p,"data-sentry-element":"CardClosedV2","data-sentry-source-file":"LottoSet.tsx"})]})},er=o.y.favorite,Games_Yeekee=function(e){var t,a=e.gameKey,r=e.round,s=e.isActiveFavorite,i=(0,d.$G)("gameLobby").t,o=(0,l.z)().favGames,c=useRoundStatus(a,r),m=!E.yT.includes(a),u="flags/".concat(a,".png"),x="list.".concat(a),f=G.C0[a],y="gamelobby-card-".concat(a).concat(s?"-fav":"");if(!r)return(0,n.jsx)("div",{className:"relative",id:"div-".concat(y,"-wrapper-1"),"data-testid":"div-".concat(y,"-wrapper-1"),children:(0,n.jsx)(CardLoadingV2,{image:u,title:f,testId:y})});var p=!!o.find(function(e){return e.gameKey===a})||s;if(!m)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(y,"-wrapper-1"),"data-testid":"div-".concat(y,"-wrapper-1"),children:[er?(0,n.jsx)(Games_FavoriteButton,{gameKey:a,isActive:p,testId:y}):null,(0,n.jsx)(CardInactiveV2,{image:u,title:f,testId:y})]});if(c===g.J.CHECKING)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(y,"-wrapper-1"),"data-testid":"div-".concat(y,"-wrapper-1"),children:[er?(0,n.jsx)(Games_FavoriteButton,{gameKey:a,isActive:p,testId:y}):null,(0,n.jsx)(CardLoadingV2,{image:u,title:f,testId:y})]});if(c===g.J.OPENED)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(y,"-wrapper-1"),"data-testid":"div-".concat(y,"-wrapper-1"),children:[er?(0,n.jsx)(Games_FavoriteButton,{gameKey:a,isActive:p,testId:y}):null,(0,n.jsx)(B.EH,{testId:y,image:u,link:{href:G.IN[a],title:i("play")},schedule:{close:i("".concat(x,".schedule.close")),result:i("".concat(x,".schedule.result"))},title:f})]});if(c===g.J.ERROR||c===g.J.FORCE_CLOSED)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(y,"-wrapper-1"),"data-testid":"div-".concat(y,"-wrapper-1"),children:[er?(0,n.jsx)(Games_FavoriteButton,{gameKey:a,isActive:p,testId:y}):null,(0,n.jsx)(CardErrorV2,{testId:y,image:u,link:{href:G.IN[a]},message:i("error"),title:f})]});if(c===g.J.PROCESSING)return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(y,"-wrapper-1"),"data-testid":"div-".concat(y,"-wrapper-1"),children:[er?(0,n.jsx)(Games_FavoriteButton,{gameKey:a,isActive:p,testId:y}):null,(0,n.jsx)(CardProcessingV2,{testId:y,image:u,link:{href:G.IN[a]},title:f})]});var h=null===(t=r.rounds)||void 0===t?void 0:t[0].start_at,b=h?(0,j.zl)(h,"HH:mm"):(0,S.xY)(G.g3[a][0]);return(0,n.jsxs)("div",{className:"relative",id:"div-".concat(y,"-wrapper-1"),"data-testid":"div-".concat(y,"-wrapper-1"),"data-sentry-component":"Yeekee","data-sentry-source-file":"Yeekee.tsx",children:[er?(0,n.jsx)(Games_FavoriteButton,{gameKey:a,isActive:p,testId:y}):null,(0,n.jsx)(CardClosedV2,{testId:y,image:u,link:{href:G.IN[a]},message:i("".concat(x,".message"),{VALUE:b}),title:f,"data-sentry-element":"CardClosedV2","data-sentry-source-file":"Yeekee.tsx"})]})},es=a(52207),GroupTitle=function(e){var t=e.id,a=e.children,r=e.className,s=e.icon,i=e["data-testid"];return(0,n.jsxs)("div",{id:t,"data-testid":i,className:(0,u.A)("flex items-center gap-x-[0.8rem]","font-[500] text-[3rem] text-[#000000] text-left leading-[1] mb-[0.8rem]","md:font-[700] md:text-[3.8rem] md:mb-[1.6rem]",r),"data-sentry-component":"GroupTitle","data-sentry-source-file":"index.tsx",children:[s?(0,n.jsx)(es.Z,{alt:"",src:s,width:40,height:40}):null,a]})},FavoriteGames_Illustrate=function(){return(0,n.jsxs)("svg",{id:"img-gamelobby-favorite-illustrate-1","data-testid":"img-gamelobby-favorite-illustrate-1",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-sentry-element":"svg","data-sentry-component":"Illustrate","data-sentry-source-file":"Illustrate.tsx",children:[(0,n.jsxs)("g",{clipPath:"url(#clip0_397_4458)","data-sentry-element":"g","data-sentry-source-file":"Illustrate.tsx",children:[(0,n.jsx)("path",{d:"M28.7043 25.723C30.77 23.0283 31.9989 19.6571 31.9989 15.9995C31.9989 7.18928 24.8775 0.0431033 16.0781 0.00109863C16.7566 1.45618 17.1368 3.07929 17.1368 4.79178C17.1368 11.0591 12.0564 16.1395 5.7891 16.1395C3.70072 16.1395 1.74373 15.5741 0.0624684 14.5896C0.0215408 15.0549 0 15.5245 0 15.9995C0 19.6571 1.22891 23.0283 3.29467 25.723H28.7043Z",fill:"#B8E1F9","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M15.9992 31.9989C21.1776 31.9989 25.7798 29.5379 28.704 25.723H3.29443C6.2186 29.5379 10.8208 31.9989 15.9992 31.9989Z",fill:"#DADADA","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M17.1369 4.79176C17.1369 3.07926 16.7567 1.45616 16.0781 0.00107704C16.0523 0.00107704 16.0253 0 15.9995 0C7.63842 0 0.776579 6.41379 0.0625 14.5896C1.74376 15.574 3.69967 16.1395 5.78913 16.1395C12.0564 16.1395 17.1369 11.0591 17.1369 4.79176Z",fill:"#DEF0FD","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M22.6999 7.96045C22.5771 7.96045 22.478 8.05954 22.478 8.18232C22.478 8.3051 22.5771 8.40419 22.6999 8.40419H22.8108V7.96045H22.6999Z",fill:"#B2B2B2","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.3185 7.96045C24.4412 7.96045 24.5403 8.05954 24.5403 8.18232C24.5403 8.3051 24.4412 8.40419 24.3185 8.40419H24.2075V7.96045H24.3185Z",fill:"#B2B2B2","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M22.6997 7.10315V8.32344C22.6997 8.58085 22.815 8.76287 22.8656 8.83288L22.7493 9.81191V10.5626H24.3174V7.10315H22.6997Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.6525 24.4091H23.5723V24.7914H24.6525V24.4091Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.5722 24.7914L22.5081 25.3461C22.3681 25.4193 22.2798 25.5647 22.2798 25.723H24.408C24.5427 25.723 24.6525 25.6132 24.6525 25.4785V24.7914H23.5722Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M22.313 18.955C23.319 16.9764 24.3658 15.53 24.3658 14.0049H22.0168L20.3959 18.5015C20.1988 18.956 20.3 19.4859 20.6511 19.836L24.9001 24.0849L25.8694 23.1156C24.046 21.2932 23.4137 19.2328 22.313 18.955Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.8355 14.006C25.6961 15.2112 25.3805 16.8978 24.9152 18.9313C24.7709 19.5613 24.9572 19.7789 25.0477 20.2323C25.3116 21.5593 24.6524 22.5372 24.6524 24.408C24.2377 24.408 23.249 24.408 23.249 24.408V14.0049L24.8355 14.006Z",fill:"#005FAA","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.6525 24.4091H23.5723V24.7914H24.6525V24.4091Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.3188 8.35791C24.3188 8.8135 23.9429 9.18077 23.4851 9.16677C23.3193 9.16138 23.1674 9.1043 23.0425 9.01168C23.4604 9.42957 23.902 9.79253 23.902 10.33C24.0452 10.33 24.3188 10.33 24.3188 10.33V8.35791Z",fill:"#B2B2B2","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M25.2405 11.3585L26.338 12.2826C25.9837 12.4409 25.6519 12.735 25.3816 13.1227C25.4871 13.5966 25.8716 13.9262 26.2561 14.0457L27.6961 12.6057C27.9213 12.3806 27.9213 12.0166 27.6961 11.7926L26.002 10.0984C25.8189 9.91529 25.5701 9.81189 25.3116 9.81189H24.3185C24.2313 10.0758 23.9136 10.2707 23.5345 10.2707C23.1553 10.2707 22.8376 10.0747 22.7504 9.81189H21.7444C21.4299 9.81189 21.1359 9.96268 20.9517 10.2179L19.8531 11.7409C19.3545 11.4985 18.6738 11.5793 18.3604 11.6159V12.9989H19.9684C20.215 12.9989 20.452 12.9008 20.6264 12.7264L21.669 11.6838C21.669 11.6838 21.7229 14.1674 21.7229 14.8201H24.8344L25.2405 11.3585Z",fill:"#E62A2E","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.3564 14.1233L24.6709 11.408C24.7043 11.2056 24.9445 11.1151 25.1028 11.2454L25.2407 11.3585L24.8347 14.8201L24.3564 14.1233Z",fill:"#AD1921","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.0864 8.10036C23.1299 8.10036 23.1651 8.06516 23.1651 8.02174C23.1651 7.97832 23.1299 7.94312 23.0864 7.94312C23.043 7.94312 23.0078 7.97832 23.0078 8.02174C23.0078 8.06516 23.043 8.10036 23.0864 8.10036Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.4019 10.792C23.4453 10.792 23.4805 10.7568 23.4805 10.7134C23.4805 10.67 23.4453 10.6348 23.4019 10.6348C23.3584 10.6348 23.3232 10.67 23.3232 10.7134C23.3232 10.7568 23.3584 10.792 23.4019 10.792Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.4019 11.3003C23.4453 11.3003 23.4805 11.2651 23.4805 11.2217C23.4805 11.1783 23.4453 11.1431 23.4019 11.1431C23.3584 11.1431 23.3232 11.1783 23.3232 11.2217C23.3232 11.2651 23.3584 11.3003 23.4019 11.3003Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.4019 11.8086C23.4453 11.8086 23.4805 11.7734 23.4805 11.73C23.4805 11.6866 23.4453 11.6514 23.4019 11.6514C23.3584 11.6514 23.3232 11.6866 23.3232 11.73C23.3232 11.7734 23.3584 11.8086 23.4019 11.8086Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.959 8.10036C24.0024 8.10036 24.0376 8.06516 24.0376 8.02174C24.0376 7.97832 24.0024 7.94312 23.959 7.94312C23.9156 7.94312 23.8804 7.97832 23.8804 8.02174C23.8804 8.06516 23.9156 8.10036 23.959 8.10036Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.0568 7.77412H23.8608C23.8381 7.77412 23.8198 7.75581 23.8198 7.73319C23.8198 7.71057 23.8381 7.69226 23.8608 7.69226H24.0568C24.0794 7.69226 24.0977 7.71057 24.0977 7.73319C24.0977 7.75581 24.0794 7.77412 24.0568 7.77412Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.7153 8.65944H23.3028C23.2877 8.65944 23.2759 8.64759 23.2759 8.63252C23.2759 8.61744 23.2877 8.60559 23.3028 8.60559H23.7153C23.7304 8.60559 23.7422 8.61744 23.7422 8.63252C23.7422 8.64759 23.7304 8.65944 23.7153 8.65944Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M21.6691 11.6838C21.6605 11.5621 21.653 11.4393 21.6476 11.3143C21.6422 11.1862 21.4785 11.1399 21.4042 11.2443C21.1381 11.6159 20.7386 12.037 20.3616 12.414C20.2776 12.498 20.1645 12.5454 20.046 12.5454H18.3594V12.9988H19.9674C2
10.214 12.9988 20.451 12.9008 20.6255 12.7263L21.6691 11.6838Z",fill:"#AD1921","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M25.3073 9.81189H24.3185C24.2313 10.0758 23.9136 10.2707 23.5344 10.2707C23.1553 10.2707 22.8376 10.0747 22.7504 9.81189H22.5791L22.5963 9.86251C22.703 10.1835 23.0605 10.4107 23.4774 10.4301V10.4323H24.4144C24.8226 10.4323 25.1705 10.1738 25.3073 9.81189Z",fill:"#AD1921","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M25.8679 23.1161L25.104 23.88L25.3744 24.1504L26.1382 23.3865L25.8679 23.1161Z",fill:"#B2B2B2","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M25.3754 24.1506L25.0157 25.2944C24.9683 25.4452 25.0082 25.61 25.1202 25.722L26.6248 24.2173C26.7207 24.1215 26.7207 23.9675 26.6248 23.8716L26.1391 23.3859L25.3754 24.1506Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.8857 14.3624C24.1076 14.5348 24.3015 14.6834 24.4706 14.8191H25.2288C25.175 14.6371 25.1039 14.4626 25.0145 14.2957L23.8857 14.3624Z",fill:"#AD1921","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M25.2289 14.8202H24.4707C24.9575 15.2133 25.2376 15.5063 25.3765 15.9672C25.3776 15.558 25.3345 15.1745 25.2289 14.8202Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M25.5078 14.6079L26.1217 13.994C25.7856 13.8454 25.4755 13.5406 25.3828 13.1227C25.2417 13.3252 25.1168 13.5524 25.0145 13.7991C24.7366 13.6289 24.1464 13.575 23.8857 13.7269V14.3624L24.6881 14.7522C24.9639 14.8804 25.2913 14.8233 25.5078 14.6079Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.7744 14.2063C24.5482 14.0695 24.224 14.0437 23.8848 14.1342V14.2149C23.8891 14.2149 23.8923 14.2149 23.8966 14.2139C24.2186 14.1266 24.5235 14.1482 24.7335 14.2752C24.7399 14.2796 24.7475 14.2806 24.7539 14.2806C24.7679 14.2806 24.7809 14.2742 24.7884 14.2612C24.8002 14.2429 24.7938 14.2182 24.7744 14.2063Z",fill:"#B2B2B2","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M24.7744 13.965C24.5482 13.8282 24.224 13.8023 23.8848 13.8928V13.9736C23.8891 13.9736 23.8923 13.9736 23.8966 13.9725C24.2186 13.8853 24.5235 13.9068 24.7335 14.0339C24.7399 14.0382 24.7475 14.0393 24.7539 14.0393C24.7679 14.0393 24.7809 14.0328 24.7884 14.0199C24.8002 14.0016 24.7938 13.9768 24.7744 13.965Z",fill:"#B2B2B2","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M26.1216 13.994C26.0236 13.951 25.9299 13.8928 25.8405 13.825L25.3268 14.3387C25.2029 14.4626 25.0338 14.5326 24.8583 14.5326H24.2368L24.6881 14.7523C24.9638 14.8805 25.2912 14.8234 25.5077 14.608L26.1216 13.994Z",fill:"#B2B2B2","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M23.9544 6.74015C23.4805 6.74015 23.4612 6.69169 23.3007 6.50751L23.2996 6.50859C23.2479 6.4472 23.1725 6.40735 23.0863 6.40735C22.9506 6.40735 22.8376 6.50428 22.8128 6.63353C22.7772 6.62168 22.7395 6.61414 22.7008 6.61414C22.4983 6.61414 22.3335 6.77893 22.3335 6.98141C22.3335 7.1839 22.4983 7.34868 22.7008 7.34868C22.7202 7.34868 22.7395 7.34545 22.7589 7.3433V7.34438L23.8823 7.14943C23.8823 7.39069 24.0772 7.58563 24.3185 7.58563V7.10419C24.3185 6.90279 24.1559 6.74015 23.9544 6.74015Z",fill:"black","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M16.2148 8.24036L18.8105 10.8263H16.2148V8.24036Z",fill:"#00AFE9","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("path",{d:"M18.2052 10.5625H16.5379V8.89528C16.5379 8.5097 16.2741 8.18767 15.9176 8.09504C15.8077 8.07889 15.6957 8.06812 15.5837 8.06812H5.78906V25.7251H19.0324V11.519V11.3929C19.0324 11.3628 19.0291 11.3337 19.0281 11.3046C18.985 10.8867 18.6328 10.5625 18.2052 10.5625Z",fill:"white","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"}),(0,n.jsx)("g",{clipPath:"url(#clip1_397_4458)","data-sentry-element":"g","data-sentry-source-file":"Illustrate.tsx",children:(0,n.jsx)("path",{d:"M16.4502 14.0775C15.396 13.0236 13.6811 13.0236 12.6272 14.0775L12.3824 14.3221L12.1378 14.0775C11.0839 13.0235 9.36885 13.0235 8.31498 14.0775C7.28249 15.11 7.27579 16.7466 8.29943 17.8845C9.23305 18.922 11.9866 21.1634 12.1034 21.2582C12.1827 21.3227 12.2782 21.3541 12.373 21.3541C12.3761 21.3541 12.3793 21.3541 12.3823 21.354C12.4804 21.3585 12.5793 21.3249 12.6612 21.2582C12.778 21.1634 15.5318 18.922 16.4657 17.8843C17.4892 16.7466 17.4825 15.11 16.4502 14.0775Z",fill:"#F1525F","data-sentry-element":"path","data-sentry-source-file":"Illustrate.tsx"})})]}),(0,n.jsxs)("defs",{"data-sentry-element":"defs","data-sentry-source-file":"Illustrate.tsx",children:[(0,n.jsx)("clipPath",{id:"clip0_397_4458","data-sentry-element":"clipPath","data-sentry-source-file":"Illustrate.tsx",children:(0,n.jsx)("rect",{width:"32",height:"32",fill:"white","data-sentry-element":"rect","data-sentry-source-file":"Illustrate.tsx"})}),(0,n.jsx)("clipPath",{id:"clip1_397_4458","data-sentry-element":"clipPath","data-sentry-source-file":"Illustrate.tsx",children:(0,n.jsx)("rect",{width:"10.5
1739",height:"10.5739",fill:"white",transform:"translate(7.0957 11.9652)","data-sentry-element":"rect","data-sentry-source-file":"Illustrate.tsx"})})]})]})},FavoriteGames_Empty=function(){return(0,n.jsx)("div",{id:"div-gamelobby-favorite-empty-1","data-testid":"div-gamelobby-favorite-empty-1",className:(0,u.A)("flex","mx-[1.6rem] px-[1.2rem] md:px-0","md:w-full md:mx-auto","max-w-[1128px] py-[0.8rem] leading-[1] my-[24px]","rounded-lg border border-slate-400 border-dashed justify-center items-center"),"data-sentry-component":"Empty","data-sentry-source-file":"Empty.tsx",children:(0,n.jsxs)("div",{className:"flex items-center text-stone-500 text-[22px] font-normal",children:[(0,n.jsx)(FavoriteGames_Illustrate,{"data-sentry-element":"Illustrate","data-sentry-source-file":"Empty.tsx"}),(0,n.jsx)("span",{className:"px-[4px]",id:"label-gamelobby-favorite-empty-title-1","data-testid":"label-gamelobby-favorite-empty-title-1",children:"คุณชอบแทงหวยไหนบ่อยๆ ลองกด"}),"\xa0",(0,n.jsx)(C.f,{style:{width:"2.4rem",height:"2.4rem"},"data-sentry-element":"FavoriteIcon","data-sentry-source-file":"Empty.tsx"}),"\xa0",(0,n.jsx)("span",{className:"pl-2",id:"label-gamelobby-favorite-empty-desc-1","data-testid":"label-gamelobby-favorite-empty-desc-1",children:"ดูสิ"})]})})},ei=(0,r.memo)(function(){return(0,n.jsx)("div",{id:"div-gamelobby-favorite-loading-1","data-testid":"div-gamelobby-favorite-loading-1",className:"w-full max-w-[1128px] py-[16px] leading-[1] my-[24px] rounded-lg border border-slate-400 border-dashed justify-center items-center inline-flex","data-sentry-component":"Loading","data-sentry-source-file":"Loading.tsx",children:(0,n.jsx)("div",{children:(0,n.jsx)(H.C,{color:"#005EB8",size:32,"data-sentry-element":"LoadingCircular","data-sentry-source-file":"Loading.tsx"})})})}),el=o.y.favorite,GameLobby_FavoriteGames=function(e){var t=e.games,a=e.rounds,r=(0,k.F)(),s=(0,l.z)().isLoading;return(0,I.ZP)().isLogin&&r?s?(0,n.jsx)("div",{children:(0,n.jsx)(ei,{})}):el?0===t.length?(0,n.jsx)(FavoriteGames_Empty,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"h-[2.4rem] md:h-[4.8rem]"}),(0,n.jsx)("div",{className:"bg-[#D6E5F3] md:-m-[24px] rounded-[8px] md:mx-[13.2rem]",id:"div-gamelobby-favorite-1","data-testid":"div-gamelobby-favorite-1",children:(0,n.jsxs)("div",{className:"py-[24px] px-[16px] md:p-[24px]",id:"div-gamelobby-favorite-content-1","data-testid":"div-gamelobby-favorite-content-1",children:[(0,n.jsxs)("div",{className:"flex",id:"div-gamelobby-favorite-header-1","data-testid":"div-gamelobby-favorite-header-1",children:[(0,n.jsx)("div",{className:(0,u.A)("flex justify-center items-center w-[30px] h-[30px] md:w-[34px] md:h-[34px] mr-2 md:mr-0"),children:(0,n.jsx)(C.f,{isActive:!0})}),(0,n.jsx)(GroupTitle,{className:"mx-[1rem]",id:"favorite-title","data-testid":"favorite-title",children:"หวยที่ถูกใจ"})]}),(0,n.jsx)(w.r,{className:"md:mx-0",children:null==t?void 0:t.map(function(e){var t=e.gameGroup;return t===N.e4.UNDERGROUND?(0,n.jsx)("div",{id:"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),"data-testid":"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),children:(0,n.jsx)(GameCard,{component:Lotto,gameKey:e.gameKey,round:getRoundStatusFromData(e.gameKey,a),isActiveFavorite:!0})},"fav-".concat(e.gameKey)):t===N.e4.LOTTO_SET?(0,n.jsx)("div",{id:"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),"data-testid":"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),children:(0,n.jsx)(GameCard,{component:LottoSet,gameKey:e.gameKey,round:getRoundStatusFromData(e.gameKey,a),isActiveFavorite:!0})},"fav-".concat(e.gameKey)):t===N.e4.STOCK?(0,n.jsx)("div",{id:"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),"data-testid":"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),children:(0,n.jsx)(GameCard,{component:Stock,gameKey:e.gameKey,round:getRoundStatusFromData(e.gameKey,a),isActiveFavorite:!0})},"fav-".concat(e.gameKey)):t===N.e4.YEEKEE?(0,n.jsx)("div",{id:"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),"data-testid":"div-gamelobby-favorite-item-".concat(e.gameKey,"-1"),children:(0,n.jsx)(GameCard,{component:Games_Yeekee,gameKey:e.gameKey,round:getRoundStatusFromData(e.gameKey,a),isActiveFavorite:!0})},"fav-".concat(e.gameKey)):(0,n.jsx)("div",{className:"flex items-center justify-center text-5xl",id:"div-gamelobby-favorite-unmatched-1","data-testid":"div-gamelobby-favorite-unmatched-1",children:"Game group dose not match!!"})})})]})}),(0,n.jsx)("div",{className:"h-[4.8rem] md:h-[7.4rem]"})]}):null:(0,n.jsx)(FavoriteGames_Empty,{})};
1function GameLobby_styled_templateObject(){var e=(0,A._)(["\n  width: 10rem;\n  height: 5rem;\n\n  @media screen and (min-width: ","px) {\n    width: 12rem;\n    height: 6rem;\n  }\n\n  @media screen and (min-width: ","px) {\n    width: 22rem;\n    height: 11rem;\n  }\n\n  @media screen and (min-width: ","px) {\n    width: 33.6rem;\n    height: 16.8rem;\n  }\n"]);return GameLobby_styled_templateObject=function(){return e},e}function GameLobby_styled_templateObject1(){var e=(0,A._)(["\n  width: 9rem;\n  height: 9rem;\n\n  @media screen and (min-width: ","px) {\n    width: 18rem;\n    height: 18rem;\n  }\n\n  @media screen and (min-width: ","px) {\n    width: 25.2rem;\n    height: 25.2rem;\n  }\n"]);return GameLobby_styled_templateObject1=function(){return e},e}var eo=V.ZP.img.withConfig({displayName:"GameLobby.styled__BgTopLeft",componentId:"sc-47d914cc-0"})(GameLobby_styled_templateObject(),y.y.XS,y.y.MD,y.y.LG),ed=V.ZP.img.withConfig({displayName:"GameLobby.styled__BgBottomRight",componentId:"sc-47d914cc-1"})(GameLobby_styled_templateObject1(),y.y.MD,y.y.LG),SectionBar=function(e){var t=e.id,a=e.children,r=e.className,s=e["data-testid"];return(0,n.jsxs)("div",{id:t,"data-testid":s,className:(0,u.A)("flex items-center h-[4rem] rounded-[0.4rem] bg-[#D6E5F3] overflow-hidden mb-[0.8rem] md:mb-[1.6rem]",r),"data-sentry-component":"SectionBar","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)("div",{className:"w-[0.8rem] self-stretch bg-[#005EB8]"}),(0,n.jsx)("span",{className:"ml-[1.2rem] font-[700] text-[2rem] md:text-[2.2rem] text-[#000000] leading-[1]",children:a})]})},SectionBullet=function(e){var t=e.id,a=e.children,r=e.className,s=e["data-testid"];return(0,n.jsxs)("div",{id:t,"data-testid":s,className:(0,u.A)("flex items-center mb-[0.8rem] md:mb-[1.2rem]",r),"data-sentry-component":"SectionBullet","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)("div",{className:"w-[0.8rem] h-[0.8rem] bg-[#005EB8]"}),(0,n.jsx)("span",{className:"ml-[1.2rem] font-[500] text-[2rem] md:text-[2.2rem] text-[#000000] leading-[1]",children:a})]})},ec=a(41664),em=a.n(ec),GameLobby_SEOText=function(){return(0,n.jsxs)("div",{id:"div-gamelobby-seo-1","data-testid":"div-gamelobby-seo-1",className:"seo-text leading-none text-[#666]","data-sentry-component":"SEOText","data-sentry-source-file":"SEOText.tsx",children:[(0,n.jsx)("p",{id:"label-gamelobby-seo-intro-1","data-testid":"label-gamelobby-seo-intro-1",className:"text-[1.6rem] py-[0.4rem]",children:"สำหรับบริการด้านการแทงหวยออนไลน์ หรือ หวยใต้ดิน ทางเว็บ 116Lotto มีให้บริการหวยครบทุกชนิด ที่ได้รับความนิยม โดยมีทั้งหวยในกระแสและนอกกระแส เช่น หวยรัฐบาลไทย, หวยลาว, หวยฮานอย, หวยมาเลย์ และหวยต่างประเทศยอดฮิต นอกจากนี้ เรายังมีให้บริการหวยหุ้นออนไลน์ ที่มีให้เลือกมากกว่า 10 ชนิด โดยหวยออนไลน์ทุกชนิด จ่ายเต็มทุกโพย สูงสุดที่บาทละ 950"}),(0,n.jsx)("h2",{id:"label-gamelobby-seo-heading-1","data-testid":"label-gamelobby-seo-heading-1",className:"text-[1.8rem] font-bold",children:"หวยออนไลน์มาแรง แทงหวยเริ่มต้นโพยละ 5 บาท"}),(0,n.jsxs)("p",{className:"text-[1.6rem] py-[0.4rem]",children:["โดยบริการด้านการ",(0,n.jsx)(em(),{href:"/gamelobby",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"แทงหวยออนไลน์"}),"ผ่านทางเว็บแทงหวย 24 ชม. ของทาง 116Lotto เรามีบริการหวยหลายชนิดมาก ๆ โดยให้อัตราจ่ายที่สูงสุดในตลาด ไม่มีลดอัตราจ่าย หรือการคืนโพย โดยหวยที่ให้บริการครอบคลุมทั้งหวยไทยและต่างประเทศ และที่สำคัญ ซื้อหวยได้ทั้งผ่านเว็บและแอปแทงหวยใต้ดินของเรา เริ่มต้นที่โพยละ 5 บาท เท่านั้น แถมลุ้นได้ทุกวัน ทุกเวลา ไม่อั้นเลข ไม่ว่าจะเป็น"]}),(0,n.jsx)("h3",{id:"label-gamelobby-seo-heading-2","data-testid":"label-gamelobby-seo-heading-2",className:"text-[1.8rem] font-bold",children:"1. หวยรัฐบาลไทย"}),(0,n.jsx)("p",{className:"text-[1.6rem] py-[0.4rem]",children:"หวยรัฐบาลไทย เป็นการซื้อหวยออนไลน์ โดยการอ้างอิงรางวัลà¸
1ˆà¸²à¸à¸ªà¸¥à¸²à¸à¸à¸´à¸™à¹à¸šà¹ˆà¸‡à¸£à¸±à¸à¸šà¸²à¸¥à¹‚ดยตรง แต่รูปแบบการ แทงหวยออนไลน์ หรือหวยใต้ดินของทาง 116Lotto เว็บหวยออนไลน์ จ่ายจริง จ่ายไว จะมีข้อดีกว่าคือ สามารถกำหนดวงเงินในการซื้อหวยใต้ดินออนไลน์เองได้ โดยเริ่มต้นที่โพยละ 5 บาทเท่านั้น และที่สำคัญคือ เลือกเล่นได้หลายรูปแบบภายในเว็บหวยไทย ไม่ว่าจะเป็น 3 ตัวบน, 3 ตัวโต๊ด, 3 ตัวล่าง, 2 ตัวบน, 2 ตัวล่าง และเลขวิ่งบน - ล่าง"}),(0,n.jsx)("h3",{id:"label-gamelobby-seo-heading-3","data-testid":"label-gamelobby-seo-heading-3",className:"text-[1.8rem] font-bold",children:"2. หวยลาวพัฒนา"}),(0,n.jsxs)("p",{className:"text-[1.6rem] py-[0.4rem]",children:["สำหรับ",(0,n.jsx)(em(),{href:"/gamelobby/laos",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยลาวพัฒนา"}),"(Laos Lottery) หรือ ຫວຍລາວ ก็เป็นอีกหนึ่งหวยยอดฮิตของเว็บหวยลาว  ที่ติดอันดับมาแรงเสมอมา โดยเรามีให้บริการทั้งการซื้อหวยลาว พร้อมตรวจหวยลาวออนไลน์ทุกชนิด ไม่ว่าจะเป็น หวยลาวพัฒนา,",(0,n.jsx)(em(),{href:"/gamelobby/laos-super",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยลาว Super"}),",",(0,n.jsx)(em(),{href:"/gamelobby/laos-star",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยลาวสตาร์"}),",",(0,n.jsx)(em(),{href:"/gamelobby/laos-redcross",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยลาวกาชาด"}),", และ",(0,n.jsx)(em(),{href:"/gamelobby/laos-zodiac",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยลาว 12 ราศี"}),"ที่ทาง 116ล็อตโต้ ถือเป็นเว็บแรกในเมืองไทย ที่เปิดให้บริการเล่นหวยลาวชนิดนี้ และที่พิเศษมากกว่าคือ หากถูกรางวัลหวยลาว 12 ราศี 6 ตัว สามารถลุ้นรับรางวัลใหญ่มูลค่า 1,500,000 บาท ได้เลย"]}),(0,n.jsx)("h3",{id:"label-gamelobby-seo-heading-4","data-testid":"label-gamelobby-seo-heading-4",className:"text-[1.8rem] font-bold",children:"3. หวยฮานอย"}),(0,n.jsxs)("p",{className:"text-[1.6rem] py-[0.4rem]",children:["หนึ่งในหวยใต้ดินยอดฮิตของนักลุ้นโชคก็ต้องยกให้กับ",(0,n.jsx)(em(),{href:"/gamelobby/hanoi",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยฮานอย"}),"(Hanoi Lottery) หรือก็คือ หวยเวียดนาม ที่ออกรางวัลค่อนข้างถี่ เหมาะกับนักลุ้นโชคที่อยากเก็งหวยกันทุกวัน โดยเรามีให้บริการครบทุกชนิด ไม่ว่าจะเป็น หวยฮานอยปกติ,",(0,n.jsx)(em(),{href:"/gamelobby/hanoi-sp",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยฮานอยพิเศษ"}),",",(0,n.jsx)(em(),{href:"/gamelobby/hanoi-vip",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยฮานอย VIP"}),"โดยข้อดีของหวยฮานอย คือนักเสี่ยงโชคสามารถทำกำไรในการเล่นหวยได้มากกว่าหวยรัฐบาลไทย เพราะออกรางวัลถี่ มีให้เล่นหลายแบบ โดยอัตราจ่ายหวยฮานอย คือ บาทละ 950 เช่นเดียวกับหวยใต้ดินชนิดอื่น ๆ เช่นกัน"]}),(0,n.jsx)("h3",{id:"label-gamelobby-seo-heading-5","data-testid":"label-gamelobby-seo-heading-5",className:"text-[1.8rem] font-bold",children:"4. หวยมาเลย์"}),(0,n.jsxs)("p",{className:"text-[1.6rem] py-[0.4rem]",children:["สำหรับ",(0,n.jsx)(em(),{href:"/gamelobby/malay",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยมาเลย์"}),"(Magnum 4D) เรียกกันอีกอย่างว่า หวยแม็กนั่ม โดยทางเรามีให้เล่นทั้งแบบหวยใต้ดินทั่ว ๆ ไป ที่ใช้หลักการเล่นเหมือนการแทงหวยออนไลน์ที่คุ้นชินกัน โดยหวยมาเลย์สามารถเสี่ยงดวงและลุ้นโชคได้ 3 วัน/สัปดาห์ ออกรางวัลทุกวันพุธ วันเสาร์ และวันอาทิตย์ ซึ่งในบางสัปดาห์จะออกรางวัลในวันอังคารด้วย (ขึ้นอยู่กับทางประเทศมาเลเซีย) โดยอัตราจ่ายหวยมาเลย์ของทาง 116Lotto ถือว่าสูงสุดในตลาดตอนนี้ เพราะจ่ายจริง บาทละ 950 ต่างจากบางเว็บที่ให้สูงสุดเพียงบาทละ 750 เท่านั้น เช่น Lotto VIP"]}),(0,n.jsx)("h3",{id:"label-gamelobby-seo-heading-6","data-testid":"label-gamelobby-seo-heading-6",className:"text-[1.8rem] font-bold",children:"5. หวยหุ้นออนไลน์ หวยหุ้นต่างประเทศ"}),(0,n.jsxs)("p",{className:"text-[1.6rem] py-[0.4rem]",children:["และที่ขาดไม่ได้สำหรับนักเก็งหวยก็คือ",(0,n.jsx)(em(),{href:"/gamelobby?target=stock",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นออนไลน์"}),"ที่ทางเว็บหวยของเรามีหวยหุ้นให้ลุ้นกันครบทุกชนิด ทั้งกลุ่ม",(0,n.jsx)(em(),{href:"/gamelobby/stock-thai",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นไทย"}),"และหวยหุ้นต่างประเทศ อาทิ",(0,n.jsx)(em(),{href:"/gamelobby/stock-dowjones",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นดาวโจนส์"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-nikkei",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นนิเคอิ"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-hangseng",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นฮั่งเส็ง"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-england",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นอังกฤษ"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-china",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นจีน"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-russia",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นรัสเซีย"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-egypt",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นอียิปต์"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-taiwan",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นไต้หวัน"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-india",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นอินเดีย"}),",",(0,n.jsx)(em(),{href:"/gamelobby/stock-singapore",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยหุ้นสิงคโปร์"}),"แน่นอนว่า หลักการเล่นก็
1สามารถอ้างอิงสถิติหวยย้อนหลัง หรือจะดูจากตลาดหุ้นที่เลือกเล่นก็ได้ โดยที่สามารถใช้โปรแกรม AI คำนวณหวย มาวิเคราะห์ตลาดหุ้น เพื่อนำเลขวิ่ง/รูด มาใช้ในการลุ้นโชคได้เช่นกัน"]}),(0,n.jsx)("h3",{id:"label-gamelobby-seo-heading-7","data-testid":"label-gamelobby-seo-heading-7",className:"text-[1.8rem] font-bold",children:"6. หวยยี่กี หวยด่วน 88 รอบ"}),(0,n.jsxs)("p",{className:"text-[1.6rem] py-[0.4rem]",children:["ปิดท้ายกันด้วยมาแรงที่ออกบ่อยและถี่มากที่สุด คือ",(0,n.jsx)(em(),{href:"/gamelobby/yeekee",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยยี่กี"}),"(Huay Yeekee) หรือที่เรียกกันว่า จับยี่กี โดยเปิดให้เล่น 88 รอบต่อวัน ออกผลรางวัลทุก ๆ 15 นาที และที่พิเศษมากกว่าก็คือ คอหวยที่แทงหวยยี่กีกับทางเรา สามารถเลือกยิงเลขเพื่อรับ Lotto Coins ได้โดยไม่มีค่าใช้จ่าย เพียงแค่มาร่วมสนุกด้วยการยิงเลขก็ลุ้นรับล็อตโต้คอยน์ไปได้เลย! โดยปัจจุบันอัตราจ่ายหวยยี่กีนั้น ทางเว็บ Lotto จ่ายให้บาทละ 950 ไม่มีอั้นเลข และสามารถแทงหวยล่วงหน้าได้ด้วย"]}),(0,n.jsx)("h3",{id:"label-gamelobby-seo-heading-8","data-testid":"label-gamelobby-seo-heading-8",className:"text-[1.8rem] font-bold",children:"7. หวยชุด 120 บาท"}),(0,n.jsxs)("p",{className:"text-[1.6rem] py-[0.4rem]",children:["ปิดท้ายกันด้วย",(0,n.jsx)(em(),{href:"/gamelobby?target=lotto-set",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยชุดออนไลน์"}),"120 บาท ที่ในปัจจุบันเรามีให้บริการ 3 ชนิด คือ",(0,n.jsx)(em(),{href:"/gamelobby/set-laos",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยชุดลาว"}),",",(0,n.jsx)(em(),{href:"/gamelobby/set-hanoi",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยชุดฮานอย"}),",",(0,n.jsx)(em(),{href:"/gamelobby/set-malay",className:"text-[#005EB8] underline","data-sentry-element":"Link","data-sentry-source-file":"SEOText.tsx",children:"หวยชุดมาเลย์"}),"โดยจะออกรางวัลวันเดียวกับหวยใต้ดินทั้ง 3 ชนิด แต่ที่พิเศษกว่าคือ เป็นการเลือกซื้อหวยชุดที่สามารถลุ้นได้ถึง 6 รางวัล ตั้งแต่รางวัล 4 ตัวตรง ไปจนถึงรางวัล 2 ตัวหลัง โดยอัตราจ่ายจะแตกต่างกัน ดังนี้"]}),(0,n.jsxs)("ul",{className:"text-[1.6rem] list-disc list-inside py-[0.4rem]",children:[(0,n.jsx)("li",{children:"หวยชุดลาว 120 บาท ถูกรางวัล 4 ตัวตรง จ่ายชุดละ 120,000 บาท"}),(0,n.jsx)("li",{children:"หวยชุดฮานอย 120 บาท ถูกรางวัล 4 ตัวตรง จ่ายชุดละ 90,000 บาท"}),(0,n.jsx)("li",{children:"หวยชุดมาเลย์ 120 บาท ถูกรางวัล 4 ตัวตรง จ่ายชุดละ 90,000 บาท"})]}),(0,n.jsx)("h2",{id:"label-gamelobby-seo-heading-9","data-testid":"label-gamelobby-seo-heading-9",className:"text-[1.8rem] font-bold",children:"แทงหวยใต้ดินทุกชนิด จะเลขไหนก็
1ลุ้นได้ทุกโพย!"}),(0,n.jsx)("p",{className:"text-[1.6rem] py-[0.4rem]",children:"สำหรับบริการหวยใต้ดิน หรือหวยออนไลน์ ที่ทางเว็บแทงหวย 116Lotto มีให้บริการนั้น เรียกได้ว่า เป็นเว็บที่เปิดให้บริการหวยที่ครบวงจรมากที่สุดในเมืองไทย เพราะนอกจากจะมีหวยใต้ดินที่คนไทยนิยมกันแล้ว เรายังนำหวยต่างประเทศที่เป็นกระแสมาให้ลุ้นโชคกันอีกด้วย โดยที่นักเสี่ยงโชคสามารถนำเลขเด็ด เลขดัง หรือเลขมาแรงจากสำนักต่าง ๆ มาลุ้นกันได้ทุกเลขภายในเว็บ จะแทงหวย 3 ตัวตรง, 3 ตัวโต๊ด หรือเลข 2 ตัวบน - ล่าง ก็รับเก็งทุกโพย และที่สำคัญ การันตีว่าเราเป็นเพียงเว็บเดียว ที่ไม่มีการคืนโพย (ยกเว้นผู้เล่นต้องการคืนโพยด้วยตัวเอง) ทำให้มั่นใจได้ว่า ต่อให้เลขนั้นเป็นเลขที่มาแรง ก็สามารถลุ้นโชคกับเว็บหวยล็อตโต้ของเราได้อย่างแน่นอน"})]})},eu=o.y.favorite,ex="/lobby",ef=[{title:"หวยลาว",gameKeys:E.jR,testId:"gamelobby-grid-laos-1"},{title:"หวยฮานอย",gameKeys:E.Jl,testId:"gamelobby-grid-hanoi-1"},{title:"หวยต่างประเทศอื่นๆ",gameKeys:E.Wd,testId:"gamelobby-grid-foreign-other-1"}],ey=[{title:"หวย",titleKey:N.e4.UNDERGROUND},{title:"หวยยี่กี",titleKey:N.e4.YEEKEE},{title:"หวยชุด",titleKey:N.e4.LOTTO_SET},{title:"หวยหุ้น",titleKey:N.e4.STOCK}],GameLobby=function(){var e,t=(0,d.$G)("gameLobby").t,a=(0,c.useRouter)(),s=a.query,o=a.isReady,g=(0,v.ey)().yPosition,j=(0,x.Z)().width,C=(0,l.z)().favGames,k=(0,r.useRef)(null),I=(0,r.useRef)(null),L=(0,r.useRef)(null),T=(0,r.useRef)(null),O=(0,r.useRef)(null),S=(0,r.useRef)(null),G=(0,r.useRef)(null),B=(0,m.ZP)("all-current-round",_.Gn,{refreshInterval:1e4,revalidateOnFocus:!1}).data,A=52;j>=y.y.TABLET_STANDARD&&(A=56);var K=(0,r.useMemo)(function(){return eu&&C.length>0?[{title:"รายการโปรด",titleKey:N.e4.FAVORITE}].concat((0,i._)(ey)):ey},[eu,C]),V=(0,r.useMemo)(function(){var e;return 0===g||g<(null===(e=k.current)||void 0===e?void 0:e.offsetTop)-A?"0rem":j>=y.y.DESKTOP_UP?"calc(".concat(h.c.header.height," - ").concat(0!==g?"0":"5.4","rem)"):"calc(".concat(h.c.header.heightMobile," - ").concat(0!==g?"0":"4.8","rem)")},[j,g]),R="0rem"!==V&&g>=(null===(e=k.current)||void 0===e?void 0:e.offsetTop)-A,scrollToTarget=function(e){var t,a=(j>=y.y.DESKTOP_UP?72:56)+(j>=y.y.DESKTOP_UP?40:20),n=null;e===N.e4.FAVORITE&&(n=k.current),e===N.e4.UNDERGROUND&&(n=document.getElementById("".concat(N.e4.UNDERGROUND,"-title"))),e===N.e4.LOTTO_SET&&(n=document.getElementById("".concat(N.e4.LOTTO_SET,"-title"))),e===N.e4.STOCK&&(n=document.getElementById("".concat(N.e4.STOCK,"-title"))),e===N.e4.YEEKEE&&(n=document.getElementById("".concat(N.e4.YEEKEE,"-title"))),e===N.e4.FOREIGN&&(n=document.getElementById("".concat(N.e4.FOREIGN,"-title"))),e===N.e4.STOCK_VIP&&(n=document.getElementById("".concat(N.e4.STOCK_VIP,"-title")));var r=null==n?void 0:null===(t=n.getBoundingClientRect())||void 0===t?void 0:t.top;if(r!==a){var s=a;j<y.y.TABLET_STANDARD?s=a+32:j>=y.y.TABLET_STANDARD&&j<y.y.DESKTOP_UP?s=a+36:j>=y.y.DESKTOP_UP&&(s=a);var i=(0,b.bf)({distance:r-s,duration:500});return function(){i.stop()}}return function(){}};return(0,r.useEffect)(function(){return o&&((null==s?void 0:s.target)===N.e4.FAVORITE&&scrollToTarget(N.e4.FAVORITE),(null==s?void 0:s.target)===N.e4.UNDERGROUND&&scrollToTarget(N.e4.UNDERGROUND),(null==s?void 0:s.target)===N.e4.LOTTO_SET&&scrollToTarget(N.e4.LOTTO_SET),(null==s?void 0:s.target)===N.e4.STOCK&&scrollToTarget(N.e4.STOCK),(null==s?void 0:s.target)===N.e4.YEEKEE&&scrollToTarget(N.e4.YEEKEE),(null==s?void 0:s.target)===N.e4.FOREIGN&&scrollToTarget(N.e4.FOREIGN),(null==s?void 0:s.target)===N.e4.STOCK_VIP&&scrollToTarget(N.e4.STOCK_VIP)),function(){}},[s,o]),(0,n.jsxs)("div",{id:"div-gamelobby-page-1","data-testid":"div-gamelobby-page-1",className:"bg-[#E6EFF8] relative h-full","data-sentry-component":"GameLobby","data-sentry-source-file":"GameLobby.tsx",children:[(0,n.jsx)("div",{id:"div-gamelobby-nav-sticky-1","data-testid":"div-gamelobby-nav-sticky-1",className:"fixed left-0 w-full h-[4.8rem] z-[10] transition-[top] duration-[300ms] bg-white opacity-90",style:{to
1p:V},children:(0,n.jsx)("div",{className:"flex items-center gap-x-4 h-full px-[8px] md:justify-center",children:null==K?void 0:K.map(function(e){var t,a,r,s,i,l,o,d,c,m,u,x,f=!1;return R&&e.titleKey===N.e4.FAVORITE&&g>=(null===(u=k.current)||void 0===u?void 0:u.offsetTop)-A&&g<(null===(x=I.current)||void 0===x?void 0:x.offsetTop)-A&&(f=!0),R&&e.titleKey===N.e4.UNDERGROUND&&g>=(null===(t=I.current)||void 0===t?void 0:t.offsetTop)-A&&g<(null===(a=S.current)||void 0===a?void 0:a.offsetTop)-A&&(f=!0),R&&e.titleKey===N.e4.FOREIGN&&g>=(null===(r=S.current)||void 0===r?void 0:r.offsetTop)-A&&g<(null===(s=O.current)||void 0===s?void 0:s.offsetTop)-A&&(f=!0),R&&e.titleKey===N.e4.YEEKEE&&g>=(null===(i=O.current)||void 0===i?void 0:i.offsetTop)-A&&g<(null===(l=L.current)||void 0===l?void 0:l.offsetTop)-A&&(f=!0),R&&e.titleKey===N.e4.LOTTO_SET&&g>=(null===(o=L.current)||void 0===o?void 0:o.offsetTop)-A&&g<(null===(d=T.current)||void 0===d?void 0:d.offsetTop)-A&&(f=!0),R&&e.titleKey===N.e4.STOCK&&g>=(null===(c=T.current)||void 0===c?void 0:c.offsetTop)-A&&(f=!0),R&&e.titleKey===N.e4.STOCK_VIP&&g>=(null===(m=G.current)||void 0===m?void 0:m.offsetTop)-A&&(f=!0),(0,n.jsx)(FilterButton,{titleKey:e.titleKey,onClick:function(){scrollToTarget(e.titleKey)},isActivated:f,children:e.title},"nav-2-".concat(e.titleKey))})})}),(0,n.jsx)("div",{className:"absolute left-0 top-0",children:(0,n.jsx)(eo,{id:"img-gamelobby-bg-top-left-1","data-testid":"img-gamelobby-bg-top-left-1",src:"".concat(f.gp,"/game-lobby/bg-top-left.svg"),alt:"bg-top-left",width:336,height:168,"data-sentry-element":"BgTopLeft","data-sentry-source-file":"GameLobby.tsx"})}),(0,n.jsx)("div",{className:"absolute right-0 bottom-0",children:(0,n.jsx)(ed,{id:"img-gamelobby-bg-bottom-right-1","data-testid":"img-gamelobby-bg-bottom-right-1",src:"".concat(f.gp,"/game-lobby/bg-bottom-right.svg"),alt:"bg-top-right",width:252,height:252,"data-sentry-element":"BgBottomRight","data-sentry-source-file":"GameLobby.tsx"})}),(0,n.jsx)("div",{className:"relative pt-[2.4rem] md:pt-[3.2rem] pb-[4rem]",children:(0,n.jsxs)("div",{className:"w-full text-[#000000]",children:[(0,n.jsx)("div",{className:"leading-[1] px-[2.4rem]",children:(0,n.jsx)("h1",{id:"label-gamelobby-title-1","data-testid":"label-gamelobby-title-1",className:"font-[700] text-[3.6rem] md:text-[5rem] mb-[1.6rem] text-center",children:t("page.title")})}),(0,n.jsx)("div",{id:"div-gamelobby-nav-1","data-testid":"div-gamelobby-nav-1",className:(0,u.A)("flex md:gap-x-4 gap-x-2 mb-[8px] md:justify-center px-[1.6rem] md:px-0",{"opacity-0":R,"opacity-1":!R}),children:null==K?void 0:K.map(function(e){return(0,n.jsx)(FilterButton,{titleKey:e.titleKey,onClick:function(){scrollToTarget(e.titleKey)},isActivated:!1,children:e.title},"nav-".concat(e.titleKey))})}),(0,n.jsxs)("div",{id:"favorite-section",ref:k,children:[(0,n.jsx)("div",{}),(0,n.jsx)(GameLobby_FavoriteGames,{games:C,rounds:B,"data-sentry-element":"FavoriteGames","data-sentry-source-file":"GameLobby.tsx"})]}),(0,n.jsxs)("div",{id:"div-gamelobby-section-underground-1","data-testid":"div-gamelobby-section-underground-1",ref:I,className:"pb-[5rem] px-[1.6rem] md:px-0",children:[(0,n.jsx)(GroupTitle,{id:"".concat(N.e4.UNDERGROUND,"-title"),"data-testid":"".concat(N.e4.UNDERGROUND,"-title"),className:"md:mx-[13.6rem]",icon:"".concat(ex,"/lotto-game.svg"),"data-sentry-element":"GroupTitle","data-sentry-source-file":"GameLobby.tsx",children:t("group.lotto")}),(0,n.jsx)(SectionBar,{id:"label-gamelobby-header-thai-1","data-testid":"label-gamelobby-header-thai-1",className:"md:mx-[13.6rem]","data-sentry-element":"SectionBar","data-sentry-source-file":"GameLobby.tsx",children:"หวยไทย"}),(0,n.jsx)(w.r,{id:"li-gamelobby-grid-thai-1","data-testid":"li-gamelobby-grid-thai-1",className:"md:mx-[13.6rem]","data-sentry-element":"Grid","data-sentry-source-file":"GameLobby.tsx",children:(E.j9||[]).map(function(e){return(0,n.jsx)(GameCard,{component:Lotto,gameKey:e,round:getRoundStatusFromData(e,B)},e)})}),(0,n.jsxs)("div",{id:"foreign-section","data-testid":"foreign-section",ref:S,className:"pt-[2.5rem]",children:[(0,n.jsx)(SectionBar,{id:"".concat(N.e4.FOREIGN,"-title"),"data-testid":"label-gamelobby-header-foreign-1",className:"md:mx-[13.6rem]","data-sentry-element":"SectionBar","data-sentry-source-file":"GameLobby.tsx",children:"หวยต่างประเทศ"}),ef.map(function(e){var t=e.title,a=e.gameKeys,r=e.testId;return(0,n.jsxs)("div",{children:[(0,n.jsx)(SectionBullet,{"data-testid":r,className:"md:mx-[13.6rem] pt-[1.6rem]",children:t}),(0,n.jsx)(w.r,{id:r,"data-testid":"li-".concat(r),className:"md:mx-[13.6rem]",children:a.map(function(e){return(0,n.jsx)(GameCard,{component:Lotto,gameKey:e,round:getRoundStatusFromData(e,B)},e)})})]},r)})]})]}),(0,n.jsxs)("div",{id:"div-gamelobby-section-yeekee-1","data-testid":"div-gamelobby-section-yeekee-1",ref:O,className:"pb-[5rem] px-[1.6rem] md:px-0",children:[(0,n.jsx)(GroupTitle,{id:"".concat(N.e4.YEEKEE,"-title"),"data-testid":"".concat(N.e4.YEEKEE,"-title"),className:"md:mx-[13.6rem]",icon:"".concat(ex,"/yeekee-game.svg"),"data-sentry-element":"GroupTitle","data-sentry-source-file":"GameLobby.tsx",children:t("group.yeekee")}),(0,n.jsx)(w.r,{id:"li-gamelobby-grid-yeekee-1","data-testid":"li-gamelobby-grid-yeekee-1",className:"md:mx-[13.6rem]","data-sentry-element":"Grid","data-sentry-source-file":"GameLobby.tsx",children:(E.ap||[]).map(function(e){return(0,n.jsx)(GameCard,{component:Games_Yeekee,gameKey:e,round:getRoundStatusFromData(e,B)},e)})})]}),(0,n.jsxs)("div",{id:"div-gamelobby-section-lottoset-1","data-testid":"div-gamelobby-section-lottoset-1",ref:L,className:"pb-[5rem] px-[1.6rem] md:px-0",children:[(0,n.jsx)(GroupTitle,{id:"".concat(N.e4.LOTTO_SET,"-title"),"data-testid":"".concat(N.e4.LOTTO_SET,"-title"),className:"md:mx-[13.6rem]",icon:"".concat(ex,"/set-game.svg"),"data-sentry-element":"GroupTitle","data-sentry-source-file":"GameLobby.tsx",children:t("group.set_lotto")}),(0,n.jsx)(w.r,{id:"li-gamelobby-grid-lottoset-1","data-testid":"li-gamelobby-grid-lottoset-1",className:"md:mx-[13.6rem]","data-sentry-element":"Grid","data-sentry-source-file":"GameLobby.tsx",children:(E.rs||[]).map(function(e){return(0,n.jsx)(GameCard,{component:LottoSet,gameKey:e,round:getRoundStatusFromData(e,B)},e)})})]}),(0,n.jsxs)("div",{id:"div-gamelobby-section-stock-1","data-testid":"div-gamelobby-section-stock-1",ref:T,className:"px-[1.6rem] md:px-0",children:[(0,n.jsx)(GroupTitle,{id:"".concat(N.e4.STOCK,"-title"),"data-testid":"".concat(N.e4.STOCK,"-title"),className:"md:mx-[13.6rem]",icon:"".concat(ex,"/stock-game.svg"),"data-sentry-element":"GroupTitle","data-sentry-source-file":"GameLobby.tsx",children:t("group.stock")}),(0,n.jsx)(SectionBar,{id:"label-gamelobby-header-stock-1","data-testid":"label-gamelobby-header-stock-1",className:"md:mx-[13.6rem]","data-sentry-element":"SectionBar","data-sentry-source-file":"GameLobby.tsx",children:"หวยหุ้นปกติ"}),(0,n.jsx)(w.r,{id:"li-gamelobby-grid-stock-1","data-testid":"li-gamelobby-grid-stock-1",className:"md:mx-[13.6rem]","data-sentry-element":"Grid","data-sentry-source-file":"GameLobby.tsx",children:(E.OY||[]).map(function(e){return(0,n.jsx)(GameCard,{component:Stock,gameKey:e,round:getRoundStatusFromData(e,B)},e)})}),(0,n.jsx)(SectionBar,{id:"label-gamelobby-header-stock-vip-1","data-testid":"label-gamelobby-header-stock-vip-1",className:"md:mx-[13.6rem] mt-[1.7rem] md:mt-[2.5rem]","data-sentry-element":"SectionBar","data-sentry-source-file":"GameLobby.tsx",children:"หวยหุ้น VIP"}),(0,n.jsx)(w.r,{id:"li-gamelobby-grid-stock-vip-1","data-testid":"li-gamelobby-grid-stock-vip-1",className:"md:mx-[13.6rem]","data-sentry-element":"Grid","data-sentry-source-file":"GameLobby.tsx",children:(E.A7||[]).map(function(e){return(0,n.jsx)(GameCard,{component:Stock,gameKey:e,round:getRoundStatusFromData(e,B)},e)})})]})]})}),(0,n.jsxs)("div",{className:"mx-0 px-[1.6rem] md:px-0 md:mx-[13.6rem]",children:[(0,n.jsxs)("div",{id:"div-gamelobby-footnote-1","data-testid":"div-gamelobby-footnote-1",className:"mt-[0.8rem] md:mt-[1.2rem] font-[400] text-[1.8rem] text-[#666666] w-[290px] text-left leading-[1] mb-[1.6rem] md:mb-[3.2rem]",children:[(0,n.jsx)("div",{className:"text-[1.8rem] leading-none text-black",children:"* วันเวลาเปิดปิดอาจเปลี่ยนแปลงตามข้อกำหนดแต่ละประเทศ"}),(0,n.jsx)("div",{className:"text-[1.8rem] leading-none text-black",children:"* ระบบใช้เวลาประมวลผลรางวัลไม่เกิน 1 ชั่วโมง"})]}),(0,n.jsx)("div",{className:"h-[2.4rem] border-b-2 border-[#BACEE1] border-solid mb-[1.6rem] md:mb-[3.2rem]"}),(0,n.jsx)(GameLobby_SEOText,{"data-sentry-element":"SEOText","data-sentry-source-file":"GameLobby.tsx"}),(0,n.jsx)("div",{className:"h-[16.4rem]"})]}),(0,n.jsx)(p.Z,{bottom:"8.5rem","data-sentry-element":"BackToTopButton","data-sentry-source-file":"GameLobby.tsx"})]})},ep=a(20618),eh=a(6635),eb=!0,gamelobby=function(e){var t=e.meta;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eh.V,{meta:t,"data-sentry-element":"PageMeta","data-sentry-source-file":"index.tsx"}),(0,n.jsxs)(ep.Z,{contentProps:{className:"flex"},enableFooterMargin:!1,fluid:!0,"data-sentry-element":"Layout","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)(GameLobby,{"data-sentry-element":"GameLobby","data-sentry-source-file":"index.tsx"}),(0,n.jsx)(s.Z,{"data-sentry-element":"BottomNavigationBarV2","data-sentry-source-file":"index.tsx"})]})]})}},80331:function(e,t,a){"use strict";a.d(t,{H:function(){return m}});var n=a(24043),r=a(82729),s=a(248),i=a(85893),l=a(67294),o=a(70714),d=a(52207),c=a(7311);
1function _templateObject(){var e=(0,r._)(["\n  display: ",";\n  color: ",";\n  position: fixed;\n  bottom: ",";\n  right: 2.2rem;\n  align-items: center;\n  border: none;\n  outline: none;\n  background: none;\n  justify-content: center;\n  flex-direction: column;\n  z-index: 1000;\n  cursor: pointer;\n  animation: fadeIn 0.3s;\n  transition: opacity 0.4s;\n  opacity: 1;\n\n  &:hover {\n    opacity: 0.8;\n  }\n\n  @media screen and (min-width: ","px) {\n    bottom: ",";\n  }\n"]);return _templateObject=function(){return e},e}var m=100,u=o.ZP.button.withConfig({displayName:"BackToTopButton__StyledButton",componentId:"sc-a6f6c5bb-0"})(_templateObject(),function(e){return e.showScroll?"flex":"none"},function(e){return e.theme.backToTopButtonColor},function(e){return e.bottom||"9.5rem"},c.y.MD,function(e){return e.bottom||"11rem"}),BackToTopButton=function(e){var t=e.onClick,a=e.bottom,r=(0,n._)((0,l.useState)(!1),2),o=r[0],c=r[1],x=(0,l.useCallback)(function(){for(var e=arguments.length,a=Array(e),n=0;n<e;n++)a[n]=arguments[n];window.scrollTo({top:0,behavior:"smooth"}),null==t||t.apply(void 0,(0,s._)(a))},[t]);return(0,l.useEffect)(function(){var checkScrollTop=function(){!o&&window.pageYOffset>m?c(!0):o&&window.pageYOffset<=m&&c(!1)};return window.addEventListener("scroll",checkScrollTop),function(){window.removeEventListener("scroll",checkScrollTop)}},[o]),(0,i.jsx)(u,{id:"back-to-top-button",onClick:x,showScroll:o,bottom:a,"data-sentry-element":"StyledButton","data-sentry-component":"BackToTopButton","data-sentry-source-file":"BackToTopButton.tsx",children:(0,i.jsx)(d.Z,{alt:"goto top",className:"w-[4.4rem] h-[4.4rem] md:w-[5.6rem] md:h-[5.6rem]",src:"/icons/goto-top.svg",width:56,height:56,"data-sentry-element":"Svg","data-sentry-source-file":"BackToTopButton.tsx"})})};BackToTopButton.displayName="BackToTopButton",t.Z=BackToTopButton},73617:function(e,t,a){"use strict";a.d(t,{Ny:function(){return easeLinear},Q9:function(){return easeInCubic},eE:function(){return easeInQuad}});var easeLinear=function(e,t,a,n){return a*e/n+t},easeInQuad=function(e,t,a,n){return a*(e/=n)*e+t},easeInCubic=function(e,t,a,n){return a*(e/=n)*e*e+t}},86028:function(e,t,a){"use strict";a.d(t,{Mq:function(){return elementHorizontalScrollBy},qJ:function(){return elementScrollBy},k3:function(){return scrollToTop},bf:function(){return windowScrollBy}});var n=a(73617),r={ENABLED:!0,INTERVAL_ID:null},disableScrollRestoration=function(){r.ENABLED=!1},stopScrollRestoration=function(){r.INTERVAL_ID&&(clearInterval(r.INTERVAL_ID),r.INTERVAL_ID=null)},windowScrollBy=function(e){disableScrollRestoration(),stopScrollRestoration();var t=e.distance,a=e.duration,r=e.easing,s=void 0===r?n.Q9:r,i=e.onEnded,l=0,o=window.scrollY,d=void 0===a?400:a,c=Math.ceil(d/10);window.scrollTo({top:s(0,o,t,d)});var m=setInterval(function(){window.scrollTo({top:s(10*++l,o,t,d)}),l>=c&&(window.scrollTo({top:o+t}),clearInterval(m),null==i||i())},10);return{stop:function(){clearInterval(m)}}},elementScrollBy=function(e){disableScrollRestoration(),stopScrollRestoration();var t=e.distance,a=e.duration,r=e.easing,s=void 0===r?n.Q9:r,i=e.target,l=e.onEnded,o=0,d=i.scrollTop,c=void 0===a?400:a,m=Math.ceil(c/10);i.scrollTo({top:s(0,d,t,c)});var u=setInterval(function(){i.scrollTo({top:s(10*++o,d,t,c)}),o>=m&&(i.scrollTo({top:d+t}),clearInterval(u),null==l||l())},10);return{stop:function(){clearInterval(u)}}},elementHorizontalScrollBy=function(e){disableScrollRestoration(),stopScrollRestoration();var t=e.distance,a=e.duration,r=e.easing,s=void 0===r?n.Q9:r,i=e.target,l=e.onEnded,o=0,d=i.scrollLeft,c=void 0===a?400:a,m=Math.ceil(c/10);i.scrollTo({left:s(0,d,t,c)});var u=setInterval(function(){i.scrollTo({left:s(10*++o,d,t,c)}),o>=m&&(i.scrollTo({left:d+t}),clearInterval(u),null==l||l())},10);return{stop:function(){clearInterval(u)}}},scrollToTop=function(){window.scrollTo(0,0)}}},function(e){e.O(0,[9774,8307,5518,1664,7911,3393,4599,4962,1276,2888,179],function(){return e(e.s=98873)}),_N_E=e.O()}]);

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.