PageSourceSearch

https://116lotto.tv/_next/static/chunks/pages/coin/history-941a015bd2f3424a.js

js 116lotto.tv collected 2026-10-09 21:54:55 UTC 48,587 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c5de470d-79d3-4631-a174-e6898f7819df",t._sentryDebugIdIdentifier="sentry-dbid-c5de470d-79d3-4631-a174-e6898f7819df")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8346],{95570:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return getYear}});var r=n(19013),i=n(13882);function getYear(t){return(0,i.Z)(1,arguments),(0,r.default)(t).getFullYear()}},22095:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},i=n(49526),a={date:(0,i.Z)({formats:{full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},defaultWidth:"medium"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},s=n(88486),c={ordinalNumber:function(t){return Number(t)},era:(0,s.Z)({values:{narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:(0,s.Z)({values:{narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},defaultFormattingWidth:"wide"})},d=n(60974),l=n(76723),u={code:"th",formatDistance:function(t,e,n){var i;return(n=n||{},i="string"==typeof r[t]?r[t]:1===e?r[t].one:r[t].other.replace("{{count}}",e),n.addSuffix)?n.comparison>0?"halfAMinute"===t?"ใน"+i:"ใน "+i:i+"ที่ผ่านมา":i},formatLong:a,formatRelative:function(t,e,n,r){return o[t]},localize:c,match:{ordinalNumber:(0,d.Z)({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:(0,l.Z)({matchPatterns:{narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},defaultParseWidth:"any"}),quarter:(0,l.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,l.Z)({matchPatterns:{narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},defaultParseWidth:"any"}),day:(0,l.Z)({matchPatterns:{narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},defaultParseWidth:"any"}),dayPeriod:(0,l.Z)({matchPatterns:{any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,no
1on:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},75622:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/coin/history",function(){return n(82491)}])},43558:function(t,e,n){"use strict";var r=n(24043),i=n(82729),a=n(85893),o=n(67294),s=n(70714),c=n(40030),d=n(74599),l=n(78358),u=n(7311),m=n(67466);function _templateObject(){var t=(0,i._)(["\n  position: fixed;\n  z-index: 1000;\n  width: 100%;\n  height: 100%;\n  background-color: #fff;\n  top: 0;\n  left: 0;\n  opacity: 0.95;\n"]);return _templateObject=function(){return t},t}function _templateObject1(){var t=(0,i._)(["\n  display: flex;\n  width: 100%;\n  height: 100%;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n"]);return _templateObject1=function(){return t},t}function _templateObject2(){var t=(0,i._)(["\n  width: 14rem;\n  @media screen and (max-width: ","px) {\n    width: 8rem;\n  }\n"]);return _templateObject2=function(){return t},t}function _templateObject3(){var t=(0,i._)(["\n  width: 14rem;\n  @media screen and (max-width: ","px) {\n    width: 8rem;\n  }\n  /* width: 100%;\n  height: 100%; */\n"]);return _templateObject3=function(){return t},t}var f=s.ZP.div.withConfig({displayName:"Loading__Wrapper",componentId:"sc-ca2ca1f5-0"})(_templateObject()),p=s.ZP.div.withConfig({displayName:"Loading__LoadingWrapper",componentId:"sc-ca2ca1f5-1"})(_templateObject1()),y=s.ZP.img.withConfig({displayName:"Loading__Image",componentId:"sc-ca2ca1f5-2"})(_templateObject2(),u.y.TABLET_UP),h=s.ZP.video.withConfig({displayName:"Loading__Video",componentId:"sc-ca2ca1f5-3"})(_templateObject3(),u.y.TABLET_UP);e.Z=function(t){var e=(0,c.$G)("common").t,n=t.display,i=t.label,s=void 0===i?e("loadingModal.label"):i,u=(0,r._)((0,o.useState)(!1),2),_=u[0],x=u[1];return((0,o.useEffect)(function(){x((0,m._2)())},[]),n)?(0,a.jsx)(f,{"data-sentry-element":"Wrapper","data-sentry-component":"Loading","data-sentry-source-file":"Loading.tsx",children:(0,a.jsxs)(p,{"data-sentry-element":"LoadingWrapper","data-sentry-source-file":"Loading.tsx",children:[_?(0,a.jsx)(y,{src:l.pQ}):(0,a.jsx)("div",{children:(0,a.jsxs)(h,{loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,a.jsx)("source",{src:"".concat(l.pQ.split(".")[0],".webm"),type:"video/webm"}),(0,a.jsx)("source",{src:"".concat(l.pQ.split(".")[0],".mp4"),type:"video/mp4"})]})}),s&&(0,a.jsx)(d.xv,{type:"BODY2",children:s})]})}):(0,a.jsx)("div",{})}},53163:function(t,e,n){"use strict";var r=n(85893),i=n(5152),a=n.n(i);n(67294);var o=a()(function(){return n.e(4344).then(n.t.bind(n,14344,23))},{loadableGenerated:{webpack:function(){return[14344]}},ssr:!1});e.Z=function(t){var e=t.size,n=t.color,i=t.width;return(0,r.jsx)(o,{primaryColor:n||"#126ab2",size:e||"40px",width:i||"4px","data-sentry-element":"LoadingSpin","data-sentry-component":"LoadingSpinner","data-sentry-source-file":"LoadingSpinner.tsx"})}},64321:function(t,e,n){"use strict";n.d(e,{$S:function(){return p},$d:function(){return h},R1:function(){return y},W2:function(){return c},dk:function(){return f},en:function(){return u},er:function(){return m},i_:function(){return b},ip:function(){return l},jm:function(){return v},pB:function(){return j},qk:function(){return d},ug:function(){return T},ui:function(){return _},zr:function(){return x},zx:function(){return g}});var r=n(82729),i=n(70714),a=n(74599),o=n(19964),s=n(7311);function _templateObject(){var t=(0,r._)(["\n  max-width: 80rem;\n  width: 100%;\n  padding: 0 1.6rem;\n"]);return _templateObject=function(){return t},t}function _templateObject1(){var t=(0,r._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 4.2rem;\n  height: 4.2rem;\n  svg {\n    width: 4em;\n    height: 4rem;\n  }\n"]);return _templateObject1=function(){return t},t}function _templateObject2(){var t=(0,r._)(["\n  cursor: pointer;\n  display: flex;\n  width: 100%;\n  align-items: center;\n  padding: 1.2rem 1.6rem 0.8rem 1rem;\n  background-color: ",";\n  :hover {\n    background-color: ",";\n  }\n\n  border: 0.1rem solid ",";\n  border-radius: 0.4rem;\n  ","\n  &:not(:nth-of-type(1)) {\n    margin-top: 0.8rem;\n  }\n"]);
1return _templateObject2=function(){return t},t}function _templateObject3(){var t=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n  margin-left: 12px;\n"]);return _templateObject3=function(){return t},t}function _templateObject4(){var t=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n  text-align: right;\n  margin-left: auto;\n  align-self: flex-start;\n"]);return _templateObject4=function(){return t},t}function _templateObject5(){var t=(0,r._)(["\n  display: flex;\n  justify-content: space-between;\n  padding-top: 2px;\n  padding-bottom: 0.6rem;\n  @media (max-width: ","px) {\n    padding-bottom: 0.2rem;\n  }\n"]);return _templateObject5=function(){return t},t}function _templateObject6(){var t=(0,r._)(["\n  display: flex;\n  justify-content: space-between;\n  padding-left: 1.6rem; \n  padding-right: 4rem; \n  margin-left: -1.6rem;\n  margin-right: -4rem;\n  border-bottom: 0.1rem solid ",";\n  @media (max-width: ","px) {\n    padding-bottom: 0.2rem;\n  }\n"]);return _templateObject6=function(){return t},t}function _templateObject7(){var t=(0,r._)(["\n  padding: ",";\n  ","\n  color: ",";\n"]);return _templateObject7=function(){return t},t}function _templateObject8(){var t=(0,r._)(["\n  color: ",";\n"]);return _templateObject8=function(){return t},t}function _templateObject9(){var t=(0,r._)(["\n  padding: 1rem 1.6rem;\n  padding-right: 4rem;\n  background-color: ",";\n  border:  0.1rem solid  ",";\n  border-top: none;\n\n  ","\n\n  @media (max-width: ","px) {\n    border-top: 0px;\n    padding-right: 1.6rem;\n  }\n"]);return _templateObject9=function(){return t},t}function _templateObject10(){var t=(0,r._)(["\n  ",";\n"]);return _templateObject10=function(){return t},t}function _templateObject11(){var t=(0,r._)(["\n  color: ",";\n\n  &.transaction-type {\n    padding-left: 4.8rem;\n    @media (max-width: ","px) {\n      padding-left: 0;\n    }\n  }\n\n  @media screen and (max-width: ","px) {\n    font-size: 18px;\n  }\n"]);return _templateObject11=function(){return t},t}function _templateObject12(){var t=(0,r._)(["\n  font-size: 2.4rem;\n  margin: 2.6rem 0;\n  & span {\n    color: ",";\n  }\n  @media (max-width: ","px) {\n    min-width: 16.8rem;\n  }\n"]);return _templateObject12=function(){return t},t}function _templateObject13(){var t=(0,r._)(["\n  margin-top: 2.6rem;\n  min-width: 18rem;\n  @media (max-width: ","px) {\n    min-width: 11.8rem;\n  }\n"]);return _templateObject13=function(){return t},t}function _templateObject14(){var t=(0,r._)(["\n  padding: ",";\n  color: ",";\n\n  @media (max-width: ","px) {\n    border: none;\n  }\n"]);return _templateObject14=function(){return t},t}function _templateObject15(){var t=(0,r._)(["\n  padding-left: 4px;\n\n  svg {\n    width: 3rem;\n    margin-top: -2rem;\n    margin-right: -1rem;\n\n    path {\n      fill: ",";\n    }\n\n    @media (min-width: ","px) {\n      margin-top: -2.4rem;\n    }\n  }\n"]);return _templateObject15=function(){return t},t}var c=i.ZP.div.withConfig({displayName:"History.styled__Container",componentId:"sc-5a2c45a8-0"})(_templateObject()),d=i.ZP.div.withConfig({displayName:"History.styled__IconContainer",componentId:"sc-5a2c45a8-1"})(_templateObject1()),l=i.ZP.div.withConfig({displayName:"History.styled__HistoryItemTitle",componentId:"sc-5a2c45a8-2"})(_templateObject2(),function(t){var e=t.theme;return t.expand?e.color.BACKGROUND.BLUE[30]:e.color.NATURAL.WHITE[1e3]},function(t){return t.theme.color.BACKGROUND.BLUE[30]},function(t){return t.theme.color.BACKGROUND.BLUE[100]},function(t){return t.expand&&"\n    border-bottom-left-radius: 0px;\n    border-bottom-right-radius: 0px;\n  "}),u=i.ZP.div.withConfig({displayName:"History.styled__HistoryItemTitleDetail",componentId:"sc-5a2c45a8-3"})(_templateObject3()),m=i.ZP.div.withConfig({displayName:"History.styled__HistoryItemTitleAmount",componentId:"sc-5a2c45a8-4"})(_templateObject4()),f=i.ZP.div.withConfig({displayName:"History.styled__Description",componentId:"sc-5a2c45a8-5"})(_templateObject5(),s.y.TABLET_UP),p=i.ZP.div.withConfig({displayName:"History.styled__RewardDetails",componentId:"sc-5a2c45a8-6"}
1)(_templateObject6(),function(t){return t.theme.color.BACKGROUND.BLUE[100]},s.y.TABLET_UP),y=(0,i.ZP)(a.Dx).attrs({level:"H3",fontSize:"2.6rem",fontSizeMobile:"2.5rem",fontWeight:"500"}).withConfig({displayName:"History.styled__DateTitle",componentId:"sc-5a2c45a8-7"})(_templateObject7(),function(t){return t.padding||"4rem 0 0"},function(t){return t.underlined&&"\n    padding-bottom: 0.9rem;\n  "},function(t){return t.theme.color.NATURAL.BLACK[1e3]}),h=(0,i.ZP)(a.xv).attrs({type:"BODY",fontSize:"2.4rem",fontSizeMobile:"2.2rem",fontWeight:"600"}).withConfig({displayName:"History.styled__Amount",componentId:"sc-5a2c45a8-8"})(_templateObject8(),function(t){var e=t.theme;return t.color||e.color.NATURAL.BLACK[1e3]}),_=i.ZP.div.withConfig({displayName:"History.styled__CollapseContainer",componentId:"sc-5a2c45a8-9"})(_templateObject9(),function(t){return t.theme.color.BACKGROUND.BLUE[30]},function(t){return t.theme.color.BACKGROUND.BLUE[100]},function(t){return t.isExpand&&"\n    border-bottom-left-radius: 0.4rem;\n    border-bottom-right-radius: 0.4rem;\n  "},s.y.TABLET_UP),x=(0,i.ZP)(a.xv).attrs({type:"BODY",fontSize:"2.4rem",fontSizeMobile:"2.2rem",fontWeight:"500"}).withConfig({displayName:"History.styled__MainText",componentId:"sc-5a2c45a8-10"})(_templateObject10(),function(t){var e=t.margin;return"margin: ".concat(e,";")||0}),b=(0,i.ZP)(a.xv).attrs({type:"BODY2",fontSize:"2.2rem",fontSizeMobile:"2.0rem",fontWeight:"400"}).withConfig({displayName:"History.styled__SubText",componentId:"sc-5a2c45a8-11"})(_templateObject11(),function(t){var e=t.theme,n=t.active;return t.color||(n?e.color.NATURAL.BLACK[1e3]:e.color.NATURAL.BLACK[600])},s.y.TABLET_UP,s.y.MOBILE_UP-1),v=(0,i.ZP)(o.ZP).attrs({variant:"PRIMARY"}).withConfig({displayName:"History.styled__TopUpButton",componentId:"sc-5a2c45a8-12"})(_templateObject12(),function(t){return t.theme.color.NATURAL.WHITE[1e3]},s.y.TABLET_UP),g=(0,i.ZP)(o.ZP).attrs({variant:"GHOST"}).withConfig({displayName:"History.styled__Button",componentId:"sc-5a2c45a8-13"})(_templateObject13(),s.y.TABLET_UP),j=(0,i.ZP)(a.Dx).attrs({level:"H5",fontSize:"2.4rem",fontSizeMobile:"2.2rem",fontWeight:"400"}).withConfig({displayName:"History.styled__EmptyText",componentId:"sc-5a2c45a8-14"})(_templateObject14(),function(t){return t.padding||"4rem 0 0"},function(t){return t.theme.color.NATURAL.BLACK[600]},s.y.TABLET_UP),T=i.ZP.span.withConfig({displayName:"History.styled__WrapIcon",componentId:"sc-5a2c45a8-15"})(_templateObject15(),function(t){return t.theme.color.DIVIDER.BLACK[300]},s.y.TABLET_UP)},82491:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return F},default:function(){return coin_history}});var r,i,a=n(24043),o=n(85893),s=n(57119),c=n(40030),d=n(11163),l=n(67294),u=n(11010),m=n(72253),f=n(248),p=n(97582),y=n(42298),h=n(23567),_=n(13935),x=n(55619),b=n(99067),v=n(87537),g=n(51526),j=n(65565),T=n(63393),w=n(53163),E=n(99948),C=n(79365),O=n(64321),I=n(82729),N=n(70714),H=n(89756),D=n(74599);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}function _templateObject(){var t=(0,I._)(["\n  width: ",";\n"]);return _templateObject=function(){return t},t}function _templateObject1(){var t=(0,I._)(["\n  && {\n    margin-top: 2.3rem;\n    margin-bottom: 4rem;\n  }\n  color: ",";\n  white-space: pre;\n  text-align: center;\n"]);return _templateObject1=function(){return t},t}function _templateObject2(){var t=(0,I._)(["\n  margin-top: 9rem;\n"]);return _templateObject2=function(){return t},t}var B=(0,N.ZP)(t=>l.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:127,height:245,fill:"none",viewBox:"0 0 127 245"},t),r||(r=l.createElement("g",{clipPath:"url(#a)"},l.createElement("path",{fill:"#FFE687",d:"M83.669 94.23c24.795-12.294 34.838-42.176 22.43-66.744C93.692 2.918 63.533-7.033 38.739 5.26 13.942 17.555 3.9 47.437 16.308 72.005c12.406 24.568 42.565 34.518 67.36 22.225"}),l.createElement("path",{fill:"#FFCD0F",d:"M88.61 79.962c16.831-14.989 18.206-40.664 3.072-57.349s-41.046-18.06-57.877-3.072C16.975 34.53 15.6 60.206 30.734 76.89S71.78 94.95 88.61 79.962"}),l.createElement("path",{fill:"#FFE687",d:"M66.672 42.868q-.04-1.68-.332-3.027-.293-1.367-.938-2.324a4.25 4.25 0 0 0-1.68-1.465q-1.035-.528-2.519-.528-1.524 0-2.578.645a5.6 5.6 0 0 0-1.738 1.719 8.5 8.5 0 0 0-1.055 2.422 22 22 0 0 0-.566 2.812 31 31 0 0 0-.215 2.852 185 185 0 0 0 0 5.41 35 35 0 0 0 .176 3.066q.176 1.543.546 2.969.372 1.425 1.055 2.539a5.5 5.5 0 0 0 1.738 1.758q1.075.644 2.637.644 1.68 0 2.754-.761 1.094-.762 1.719-2.07.624-1.329.84-3.106.214-1.796.156-3.848h8.77a24.5 24.5 0 0 1-.235 4.395 19 19 0 0 1-1.035 4.023 14.7 14.7 0 0 1-1.856 3.496 12.2 12.2 0 0 1-2.695 2.735Q68.058 68.356 66.047 69q-1.993.625-4.453.625-2.676 0-4.766-.527-2.07-.508-3.672-1.426a11.4 11.4 0 0 1-2.734-2.188 13.3 13.3 0 0 1-1.934-2.812 18.2 18.2 0 0 1-1.27-3.262 28 28 0 0 1-.722-3.535 43 43 0 0 1-.352-3.652 86 86 0 0 1-.078-3.633q0-2.246.235-4.63.234-2.382.86-4.628.644-2.246 1.737-4.238a13 13 0 0 1 2.832-3.516q1.74-1.504 4.16-2.383 2.422-.879 5.704-.879 3.28 0 5.879 1.153 2.597 1.132 4.394 3.105 1.817 1.972 2.735 4.63.916 2.636.84 5.663z"}),l.createElement("path",{fill:"#FCD4CA",d:"M102.633 91.26c1.331-3.698 1.412-8.004 2.158-11.905.464-2.466.484-4.184-.888-6.286-.907-1.415-3.832-4.85-4.599-3.456-.645.95 2.481 4.891 2.905 5.942-.545-1.172-3.651-6.852-5.527-5.66-1.513.971 2.985 5.923 3.288 7.197-.989-1.719-3.43-5.074-4.539-4.427-1.069 1.293 1.755 4.346 2.885 6.266-.686-.91-3.45-4.144-3.954-2.345-.464 1.698 2.683 4.184 3.066 6.105.444 2.284.484 5.74-.363 8.145-.464 1.213 4.862 2.406 5.568.425M22.047 95.809c-1.351-3.699-1.492-7.984-2.259-11.885-.484-2.466-.504-4.164.847-6.306.888-1.415 3.772-4.892 4.56-3.497.665.95-2.442 4.911-2.865 5.962.524-1.172 3.61-6.872 5.486-5.7 1.534.95-2.945 5.943-3.227 7.216.968-1.718 3.389-5.093 4.498-4.467 1.09 1.294-1.714 4.346-2.824 6.286.666-.909 3.41-4.163 3.934-2.385.484 1.698-2.643 4.205-3.006 6.145-.424 2.284-.444 5.74.444 8.146.444 1.233-4.861 2.486-5.588.485M67.958 109.331a17.7 17.7 0 0 1-4.438 2.688c-1.069.445-2.46.849-3.893 1.072-.363 2.324-1.21 6.832-2.481 8.449 0 0-.262 3.133 5.527 2.304 5.79-.809 4.559-3.113 4.559-3.113s-.222-7.054.726-11.4"}),l.createElement("path",{fill:"#E8A393",d:"M61.08 123.783v-.586c0-.728.06-1.496.282-2.203.685-2.203 2.582-3.76 4.82-4.144.344-.06.686-.081 1.03-.081.06-2.324.241-5.235.726-7.438a17.7 17.7 0 0 1-4.438 2.688c-1.07.445-2.461.849-3.893 1.072-.363 2.324-1.21 6.832-2.481 8.449 0 0-.202 2.506 3.933 2.445.02-.06 0-.141.02-.202"}),l.createElement("path",{fill:"#110239",d:"M25.275 230.871s.988 3.982 1.009 6.771c.02 2.79-1.01 4.407-1.876 5.114-1.715 1.395-21.866 3.416-23.621 1.415s-.585-5.235 3.994-6.367c4.921-1.193 5.607-1.86 8.694-3.032 3.086-1.172 3.69-5.255 3.69-5.255zM115.704 208.92s5.063-.546 7.564.707c2.481 1.254 3.47 2.911 3.692 3.982.463 2.163-6.879 21.082-9.461 21.729-2.582.667-4.922-1.859
1-3.853-6.448 1.17-4.932.888-5.841 1.231-9.136.363-3.295-2.602-3.962-2.602-3.962z"}),l.createElement("path",{fill:"#3178B5",d:"M72.537 163.663H52.849s-27.453 20.577-31.064 25.408c-2.3 3.072-6.314 42.588-6.314 42.588l11.256 1.051s5.467-35.13 7.322-38c1.876-2.89 38.488-13.906 38.488-13.906s4.66-5.62 0-17.141"}),l.createElement("path",{fill:"#0056A3",d:"M72.537 163.663H53.273c-.202 0-.04 11.137-1.856 15.867-2.037 5.235-8.028 10.774-8.936 11.117 8.15-3.113 30.056-9.843 30.056-9.843s4.66-5.62 0-17.141",opacity:.65}),l.createElement("path",{fill:"#3178B5",d:"m79.839 162.996-27.131 1.536s22.148 41.699 24.75 43.862c2.582 2.163 36.854 10.511 36.854 10.511l2.864-10.854s-26.546-7.277-28.744-9.096c-1.271-1.051-6.94-15.018-6.556-22.376.424-8.57-.484-12.411-2.037-13.583"}),l.createElement("path",{fill:"#E82612",d:"M66.647 120.731s-5.023 3.315-9.34.728c0 0-2.017 1.253-6.616.99s-14.665-7.479-15.815-9.197c-1.15-1.738-7.483-23.628-7.483-23.628l-7.322.869s4.74 29.147 6.172 31.997c1.311 2.627 15.875 13.178 22.915 16.332.988.444 1.614 1.435 1.533 2.506-.383 4.932-2.118 18.252-3.873 24.639 0 0 12.486 8.773 36.067 1.436 0 0-.242-16.332-2.804-29.37a7.03 7.03 0 0 1 1.936-6.367c4.76-4.81 14.221-14.331 15.391-15.402 1.574-1.435 6.616-27.126 6.616-27.126l-7.382-.485s-7.1 19.101-8.049 20.456c-.968 1.354-12.546 12.006-13.615 12.491-1.05.485-5.164-.93-8.331-.869"}),l.createElement("path",{fill:"#C9071E",d:"M82.3 115.759c6.253-2.587 10.045-5.457 11.074-12.855.484-3.537 3.369-10.288 3.046-13.684-1.15 3.092-6.98 18.676-7.847 19.889-.504.708-4.034 4.083-7.383 7.135.384-.161.747-.343 1.11-.485M67.252 170.273c1.533-.061 6.01-14.27 6.535-16.554.484-2.062 2.42-15.968 2.703-1
17.929.263-1.981.706-2.83 2.22-4.164 3.872-3.416 8.128-6.448 12.223-9.581.424-.323.928-.465 1.331-.647-2.037 2.042-4.377 4.407-6.515 6.549l-.323.324-.12.121c-.505.505-.99.991-1.453 1.476l-.464.465c-.484.485-.948.95-1.352 1.374a7.09 7.09 0 0 0-1.916 6.367c2.562 13.037 2.804 29.369 2.804 29.369-5.95 1.799-11.175 2.628-15.673 2.83M26.263 114.101c3.732 8.287 9.884 14.372 18.114 18.03 5.85 2.608 7.04 2.931 7.585 3.719-.242 4.144-1.17 8.186-2.017 12.451.363-2.85.625-5.336.766-6.953.08-1.091-.544-2.082-1.533-2.526-7.04-3.154-21.583-13.705-22.895-16.312-.726-1.456-2.3-9.662-3.691-17.404a137 137 0 0 0 3.671 8.995",opacity:.35}),l.createElement("path",{fill:"#FCD4CA",d:"M68.966 98.437s-9.42-4.73-11.86-2.507c-2.441 2.224-2.421 8.045-2.865 8.652-.464.586-2.622 3.011-2.763 3.537s2.34 1.213 2.44 1.597c.101.404.686 5.033 2.3 5.882s10.953-.142 13.575-5.074c2.643-4.932 2.582-10.288-.827-12.087"}),l.createElement("path",{fill:"#110239",d:"m71.044 93.687-5.93 2.93s-1.473 7.823-1.352 11.057 1.876.343 2.017-1.516c.162-1.86 1.695-1.981 2.663-1.092.968.89.242 2.951-1.936 4.003 0 0-1.312 2.567-.364 4.81 0 0 3.813-.829 6.233-5.599 2.179-4.305 3.329-10.591-1.33-14.594"}),l.createElement("path",{fill:"#110239",d:"M69.531 91.22c-1.331-.97-3.853-1.455-5.426-1.597-1.815-.141-4.176 1.092-5.507 2.446-1.19 1.193-2.239 2.082-4.034 2.325-1.23.161-1.735.1-2.643-.627-.463.95-.161 3.113.545 4.568.545.768 1.049 1.658 1.856 2.143 2.945 1.738 6.273 1.657 7.02 1.677 1.613.081 3.247-.02 4.78-.505 1.715-.525 6.919-4.69 6.818-5.7-.141-1.799-2.178-3.82-3.409-4.73"}))),i||(i=l.createElement("defs",null,l.createElement("clipPath",{id:"a"},l.createElement("path",{fill:"#fff",d:"M0 0h127v245H0z"})))))).withConfig({displayName:"HistoryEmptyTransaction__CoinMan",componentId:"sc-20a675b-0"})(_templateObject(),function(t){return t.theme.coinHistory.emptyTransaction.coinManWidth}),A=(0,N.ZP)(D.xv).withConfig({displayName:"HistoryEmptyTransaction__TipsText",componentId:"sc-20a675b-1"})(_templateObject1(),function(t){return t.theme.coinHistory.emptyTransaction.tipsColor});(0,N.ZP)(H.Z).withConfig({displayName:"HistoryEmptyTransaction__DividerStyled",componentId:"sc-20a675b-2"})(_templateObject2());var HistoryEmptyTransaction_HistoryEmptyTransaction=function(){var t=(0,c.$G)("coin").t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(B,{id:"img-coin-history-empty-1","data-testid":"img-coin-history-empty-1","data-sentry-element":"CoinMan","data-sentry-source-file":"HistoryEmptyTransaction.tsx"}),(0,o.jsx)(A,{id:"label-coin-history-empty-tips-1","data-testid":"label-coin-history-empty-tips-1",type:"BODY","data-sentry-element":"TipsText","data-sentry-source-file":"HistoryEmptyTransaction.tsx",children:t("historyTab.emptyTransaction.tips")})]})},P=n(40907),RegisterItemDetail=function(){var t,e,n,r=(0,l.useContext)(x.J);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(O.dk,{"data-sentry-element":"Description","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)(O.i_,{className:"transaction-type","data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:"ชื่อ"}),(0,o.jsx)(O.i_,{active:!0,"data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:(0,g.R0)("".concat((null==r?void 0:null===(t=r.profile)||void 0===t?void 0:t.first_name)||""," ").concat((null==r?void 0:null===(e=r.profile)||void 0===e?void 0:e.last_name)||""),"00********")})]}),(0,o.jsxs)(O.dk,{"data-sentry-element":"Description","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)(O.i_,{className:"transaction-type","data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:"เบอร์โทรศัพท์มือถือ"}),(0,o.jsx)(O.i_,{active:!0,"data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:(null==r?void 0:null===(n=r.profile)||void 0===n?void 0:n.phone_number)||"-"})]})]})},DescriptionDivider=function(){return(0,o.jsx)("div",{className:"w-full pt-[2px] pb-[4px] tablet:pl-[48px]","data-sentry-component":"DescriptionDivider","data-sentry-source-file":"History.tsx",children:(0,o.jsx)("div",{className:"border-t-[1px] border-t-[#D9D9D9] w-full"})})},CoinItemRefundDetail=function(t){var e,n=t.bet_slip_ref,r=t.round_type,i=void 0===r?_.HJ.FULLDAY:r,a=t.refund_details,s=(0,l.useMemo)(function(){var t=Array.isArray(n)?n[0]:n;if(!t)return null;var e=(0,C.Hn)(t);if(!e)return null;var r=(0,C.sM)(e,i),a=(0,C.gW)(e,r);return{id:t,name:E.C0[e],round:a}},[n,i,a]);return s?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(O.dk,{"data-sentry-element":"Description","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)(O.i_,{className:"transaction-type","data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:"หมายเลขรายการ"}),(0,o.jsx)(O.i_,{active:!0,"data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:s.id})]}),(0,o.jsxs)(O.dk,{"data-sentry-element":"Description","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)(O.i_,{className:"transaction-type","data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:"ประเภท"}),(0,o.jsx)(O.i_,{active:!0,"data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:s.name})]}),s.round?(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"รอบ"}),(0,o.jsx)(O.i_,{active:!0,children:s.round})]}):null,a?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(DescriptionDivider,{}),(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"ยอดที่หักจากกระเป๋าเงิน"}),(0,o.jsx)(O.i_,{active:!0,children:"".concat((0,g.iP)(a.money_used,0)," บาท")})]}),(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"Lotto Coins ที่ใช้เป็นส่วนลด"}),(0,o.jsx)(O.i_,{active:!0,children:"".concat((0,g.iP)(a.coin_used,0)," เหรียญ")})]}),(0,o.jsxs)(O.dk,{children:[(0,o.jsxs)(O.i_,{className:"transaction-type flex flex-col tablet:flex-row",children:[(0,o.jsx)("span",{children:"ดึงเหรียญกลับจากโปร"}),(0,o.jsx)("span",{className:"text-[16px] tablet:text-[22px] pb-[2px]",children:"ยิ่งเล่นยิ่งได้ Lotto Coins"})]}),(0,o.jsx)(O.i_,{active:!0,children:"".concat((e=a.bonus_amount)>0?"- ".concat((0,g.iP)(e,0)):(0,g.iP)(e,0)," เหรียญ")})]}),a.cancellation_fee?(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"หักค่าธรรมเนียม"}),(0,o.jsx)(O.i_,{active:!0,children:"- ".concat((0,g.iP)(a.cancellation_fee,0)," เหรียญ")})]}):null]}):null]}):null},CoinItemDetail=function(t){var e=t.bet_slip_ref,n=t.ref_id,r=t.round_date,i=t.round_type,a=t.refer_name,s=t.refer_phone,c=t.refund_details,d=t.remark;return"REFUND_BET"===d||"CANCEL_BETSLIP"===d?(0,o.jsx)(CoinItemRefundDetail,{bet_slip_ref:e,ref_id:n,round_date:r,round_type:i,refer_name:a,refer_phone:s,refund_details:c,remark:d}):"SOCIAL_ACTIVITY"===d?null:(0,o.jsx)(o.Fragment,{children:"FriendGetFriend"!==d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"หมายเลขรายการ"}),(0,o.jsx)(O.i_,{active:!0,children:e})]}),(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"หมายเลขอ้างอิง"}),(0,o.jsx)(O.i_,{active:!0,children:n})]}),"N/A"!==r&&(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"งวดประจำวันที่"}),(0,o.jsx)(O.i_,{active:!0,children:function(t){if("N/A"!==t){var e=new Date(t),n=e.setFullYear(e.getFullYear()+543);return(0,y.default)(n,"dd/MM/yyyy")}return t}(r)})]})]}):(0,o.jsxs)(o.Fragment,{children:[a&&(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"ผู้ถูกแนะนำ"}),(0,o.jsx)(O.i_,{active:!0,children:a})]}),s&&(0,o.jsxs)(O.dk,{children:[(0,o.jsx)(O.i_,{className:"transaction-type",children:"เบอร์โทรศัพท์"}),(0,o.jsx)(O.i_,{active:!0,children:s})]})]})})},HistoryItem=function(t){var e=t.remark,n=t.created_at,r=t.coin_amount,i=t.bet_slip_ref,s=t.game_type,c=t.ref_id,d=t.round_date,u=t.round_type,m=t.refer_name,f=t.refer_phone,p=t.refund_details,y=t.itemIndex,_=void 0===y?0:y,x=(0,a._)((0,l.useState)(!1),2),b=x[0],v=x[1],w=(0,l.useMemo)(function(){var t=Array.isArray(i)?i[0]:i;return!(!t||i[0].includes("CN"))&&!!(0,C.Hn)(t)},[i]),E=(0,l.useMemo)(function(){return s||"N/A"},[s]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(O.ip,{id:"tr-coin-history-item-".concat(_+1),"data-testid":"tr-coin-history-item-".concat(_+1),expand:b,onClick:function(){return v(!b)},"data-sentry-element":"HistoryItemTitle","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)(O.qk,{"data-sentry-element":"IconContainer","data-sentry-source-file":"History.tsx",children:"REFUND_BET"===e||"CANCEL_BETSLIP"===e?(0,o.jsx)(T.Hc,{}):"DISCOUNT_BET"===e?(0,o.jsx)(T.Di,{}):(0,o.jsx)(T.nm,{"data-sentry-element":"AddSuccess","data-sentry-component":"renderIcon","data-sentry-source-file":"History.tsx"})}),(0,o.jsxs)(O.en,{"data-sentry-element":"HistoryItemTitleDetail","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)(O.zr,{id:"label-coin-history-item-title-".concat(_+1),"data-testid":"label-coin-history-item-title-".concat(_+1),"data-sentry-element":"MainText","data-sentry-source-file":"History.tsx",children:function(t){switch(t){case"REGIST
1ER":case"PERCENT_BET":case"FriendGetFriend":case"SOCIAL_ACTIVITY":return"ได้รับ Lotto Coins";case"DISCOUNT_BET":return"ใช้ Lotto Coins";case"REFUND_BET":return"ยกเลิกรายการ";case"CANCEL_BETSLIP":if("LOTTERY"===E)return"คืนสลาก";return"คืนโพย";default:return"N/A"}}(e)}),(0,o.jsx)(O.i_,{id:"label-coin-history-item-date-".concat(_+1),"data-testid":"label-coin-history-item-date-".concat(_+1),"data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:"".concat((0,j.m2)(n),"  ").concat((0,j.rn)(n))})]}),(0,o.jsx)(O.er,{"data-sentry-element":"HistoryItemTitleAmount","data-sentry-source-file":"History.tsx",children:(0,o.jsx)(O.$d,{id:"label-coin-history-item-amount-".concat(_+1),"data-testid":"label-coin-history-item-amount-".concat(_+1),color:"DISCOUNT_BET"===e?h.D.INTENSITY_BLACK.RED[800]:h.D.INTENSITY_BLACK.GREEN[800],"data-sentry-element":"Amount","data-sentry-source-file":"History.tsx",children:"".concat("DISCOUNT_BET"===e?"-":"+","\n            ").concat((0,g.iP)(r,0)," เหรียญ")})}),(0,o.jsx)(O.ug,{"data-sentry-element":"WrapIcon","data-sentry-source-file":"History.tsx",children:(0,o.jsx)(T.K5,{style:{transition:"transform 300ms",transform:b?"rotateZ(-180deg)":void 0},"data-sentry-element":"ArrowDown","data-sentry-source-file":"History.tsx"})})]}),(0,o.jsx)("div",{className:(0,P.A)("transition-[max-height] overflow-hidden",{"pointer-events-none":!b}),style:{maxHeight:b?function(t){switch(t){case"REGISTER":case"PERCENT_BET":case"DISCOUNT_BET":case"SOCIAL_ACTIVITY":return"160px";case"FriendGetFriend":return"200px";case"REFUND_BET":return"320px";case"CANCEL_BETSLIP":return"330px";default:return"N/A"}}(e):0},children:(0,o.jsxs)(O.ui,{isExpand:b,"data-sentry-element":"CollapseContainer","data-sentry-source-file":"History.tsx",children:["REGISTER"===e?(0,o.jsx)(RegisterItemDetail,{}):(0,o.jsx)(CoinItemDetail,{bet_slip_ref:i,ref_id:c,round_date:d,round_type:u,refer_name:m,refer_phone:f,refund_details:p,remark:e}),"SOCIAL_ACTIVITY"===e?null:(0,o.jsx)(DescriptionDivider,{}),(0,o.jsxs)(O.dk,{"data-sentry-element":"Description","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)(O.i_,{className:"transaction-type","data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:"หมายเหตุ"}),(0,o.jsx)(O.i_,{active:!0,"data-sentry-element":"SubText","data-sentry-source-file":"History.tsx",children:function(t){switch(t){case"REGISTER":return"สมาชิกใหม่";case"PERCENT_BET":return"ยิ่งซื้อ ยิ่งได้";case"DISCOUNT_BET":if("COIN"===E)return"โยนหัวก้อย";if("PAOYINGCHUB"===E)return"เป่ายิ้งฉุบ";if("LUCKYROLL"===E)return"ลูกเต๋าเขย่าโชค";if("MINILOTTO"===E)return"ทายหวยรวยทรัพย์";if(w)return"ส่วนลดแทงหวย";return"ส่วนลดซื้อสลาก";case"FriendGetFriend":return"ยิ่งชวน ยิ่งรวย";case"REFUND_BET":if("PAOYINGCHUB"===E)return"ยกเลิกรายการ";return"ไม่ออกรางวัล";case"CANCEL_BETSLIP":if("LOTTERY"===E)return"คืนสลาก";return"คืนโพย";case"SOCIAL_ACTIVITY":return"กิจกรรมพิเศษ";default:return"N/A"}}(e)})]})]})})]})},History_History=function(){var t=(0,c.$G)("wallet").t,e=(0,a._)((0,l.useState)(!1),2),n=e[0],r=e[1],i=(0,a._)((0,l.useState)(1),2),s=i[0],d=i[1],y=(0,a._)((0,l.useState)(!1),2),h=y[0],_=y[1],x=(0,a._)((0,l.useState)(),2),g=x[0],j=x[1],T=(0,a._)((0,l.useState)(),2),E=T[0],C=T[1],I=(0,a._)((0,l.useState)(!1),2),N=I[0],H=I[1],D=(0,l.useCallback)((0,u._)(function(){var t,e,n,i,a,o,s,c,d,l,u,m=arguments;return(0,p.Jh)(this,function(p){switch(p.label){case 0:t=m.length>0&&void 0!==m[0]?m[0]:0,e=m.length>1&&void 0!==m[1]?m[1]:20,p.label=1;case 1:return p.trys.push([1,3,,4]),H(!0),[4,(0,b.U_)({url:"".concat("https://bcdef90123.com/api/v1","/wallet/coin/transactions"),method:"GET",data:{},params:{limit:e+1,skip:t}})];case 2:return(null==(d=p.sent())?void 0:null===(i=d.data)||void 0===i?void 0:null===(n=i.summary_history)||void 0===n?void 0:n.length)>0&&(u=null==d?void 0:null===(l=d.data)||void 0===l?void 0:l.summary_history.slice(0,e),C((0,f._)(E||[]).concat((0,f._)(u)))),(null==d?void 0:null===(o=d.data)||void 0===o?void 0:null===(a=o.summary_history)||void 0===a?void 0:a.length)<e+1?_(!1):_(!0),(null==d?void 0:null===(c=d.data)||void 0===c?void 0:null===(s=c.summary_history)||void 0===s?void 0:s.length)===0&&0===t&&(r(!0),_(!1)),H(!1),[3,4];case 3:return p.sent(),H(!1),[3,4];case 4:return[2]}})}),[E]);(0,l.useEffect)(function(){return D(),function(){}},[]);var pushData=function(t,e,n){var r=(0,f._)(e),i=e.findIndex(function(e){return e.date===t});return i>-1?r[i].list.push(n):r.push({date:t,list:[n]}),r};(0,l.useEffect)(function(){if(E){var t=[];
1null==E||E.forEach(function(e){var n=new Date(e.created_at);t=pushData((0,v.zl)(n,"MMMM yyyy"),t,e)}),j(t)}},[E]);var B=(0,l.useCallback)(function(){var t=s+1;D((t-1)*20),d(t)},[D,s]),renderDescription=function(){return(0,o.jsx)("h3",{id:"label-coin-history-description-1","data-testid":"label-coin-history-description-1",className:"mt-[8px] mb-[16px] max-w-[574px] leading-[1] px-[16px] font-[400] text-center text-[22px] text-[#333333]","data-sentry-component":"renderDescription","data-sentry-source-file":"History.tsx",children:"ประวัติการได้รับและใช้ Lotto Coins เป็นส่วนลดในการซื้อสลากออนไลน์ และแทงหวยออนไลน์โดย Lotto Coins 1 เหรียญ มีมูลค่าเท่ากับ 1 บาท"})};return n?(0,o.jsxs)(o.Fragment,{children:[renderDescription(),(0,o.jsx)(HistoryEmptyTransaction_HistoryEmptyTransaction,{})]}):(0,o.jsxs)("div",{id:"div-coin-history-1","data-testid":"div-coin-history-1",className:"flex flex-col items-center pb-[80px]","data-sentry-component":"History","data-sentry-source-file":"History.tsx",children:[(0,o.jsx)("h2",{id:"label-coin-history-title-1","data-testid":"label-coin-history-title-1",className:"text-[4rem] leading-[1] font-medium mt-[24px] md:mt-[32px]",children:"ประวัติ Lotto Coins"}),renderDescription(),N&&(0,o.jsx)("div",{id:"div-coin-history-loading-1","data-testid":"div-coin-history-loading-1",className:"h-full flex justify-center items-center",children:(0,o.jsx)(w.Z,{})}),null==g?void 0:g.map(function(t,e){var n;return(0,o.jsxs)(O.W2,{id:"div-coin-history-group-".concat(e+1),"data-testid":"div-coin-history-group-".concat(e+1),children:[(0,o.jsx)(O.R1,{id:"label-coin-history-date-".concat(e+1),"data-testid":"label-coin-history-date-".concat(e+1),underlined:!0,padding:0===e?"0":void 0,children:t.date}),null===(n=t.list)||void 0===n?void 0:n.map(function(t,e){return(0,o.jsx)(HistoryItem,(0,m._)({itemIndex:e},t),t.ref_id)})]},t.date)}),h?(0,o.jsx)(O.zx,{id:"btn-coin-history-see-more-1","data-testid":"btn-coin-history-see-more-1",children:(0,o.jsx)(O.i_,{id:"label-coin-history-see-more-1","data-testid":"label-coin-history-see-more-1",onClick:B,children:t("history.seeMore")})}):void 0]})},L=n(63314),S=n(52416),M=n(20618),k=n(43558),Z=n(6635),U=n(99269),R=n(80331),F=!0,coin_history=function(t){var e=t.meta;(0,c.$G)("coin").t;var n=(0,d.useRouter)(),r=(0,U.ZP)().isLogin,i=(0,a._)((0,l.useState)(!1),2),u=i[0],m=i[1];return((0,l.useEffect)(function(){r?m(!0):n.replace("/login")},[r,n]),u)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Z.V,{meta:e,"data-sentry-element":"PageMeta","data-sentry-source-file":"history.tsx"}),(0,o.jsxs)(M.Z,{fluid:!0,"data-sentry-element":"Layout","data-sentry-source-file":"history.tsx",children:[(0,o.jsxs)(L.Z,{pageKey:S.UY.HISTORY,"data-sentry-element":"ContentContainer","data-sentry-source-file":"history.tsx",children:[(0,o.jsx)(History_History,{"data-sentry-element":"History","data-sentry-source-file":"history.tsx"}),(0,o.jsx)(R.Z,{"data-sentry-element":"BackToTopButton","data-sentry-source-file":"history.tsx"})]}),(0,o.jsx)(s.Z,{"data-sentry-element":"BottomNavigationBarV2","data-sentry-source-file":"history.tsx"})]})]}):(0,o.jsx)(k.Z,{display:!0})}},80331:function(t,e,n){"use strict";n.d(e,{H:function(){return u}});var r=n(24043),i=n(82729),a=n(248),o=n(85893),s=n(67294),c=n(70714),d=n(52207),l=n(7311);function _templateObject(){var t=(0,i._)(["\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 t},t}var u=100,m=c.ZP.button.withConfig({displayName:"BackToTopButton__StyledButton",componentId:"sc-a6f6c5bb-0"}
1)(_templateObject(),function(t){return t.showScroll?"flex":"none"},function(t){return t.theme.backToTopButtonColor},function(t){return t.bottom||"9.5rem"},l.y.MD,function(t){return t.bottom||"11rem"}),BackToTopButton=function(t){var e=t.onClick,n=t.bottom,i=(0,r._)((0,s.useState)(!1),2),c=i[0],l=i[1],f=(0,s.useCallback)(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];window.scrollTo({top:0,behavior:"smooth"}),null==e||e.apply(void 0,(0,a._)(n))},[e]);return(0,s.useEffect)(function(){var checkScrollTop=function(){!c&&window.pageYOffset>u?l(!0):c&&window.pageYOffset<=u&&l(!1)};return window.addEventListener("scroll",checkScrollTop),function(){window.removeEventListener("scroll",checkScrollTop)}},[c]),(0,o.jsx)(m,{id:"back-to-top-button",onClick:f,showScroll:c,bottom:n,"data-sentry-element":"StyledButton","data-sentry-component":"BackToTopButton","data-sentry-source-file":"BackToTopButton.tsx",children:(0,o.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",e.Z=BackToTopButton},89756:function(t,e,n){"use strict";var r=n(82729);function _templateObject(){var t=(0,r._)(["\n  border: ",";\n  border-top-style: ",";\n  border-color: ",";\n  margin: ",";\n  width: 100%;\n"]);return _templateObject=function(){return t},t}var i=n(70714).ZP.div.withConfig({displayName:"Divider",componentId:"sc-1d10698b-0"})(_templateObject(),function(t){return t.size||"0.2rem"},function(t){return t.lineStyle||"solid"},function(t){return t.color||"#E6E6E6"},function(t){return t.margin||"1em 0"});e.Z=i},67466:function(t,e,n){"use strict";n.d(e,{DA:function(){return checkIsMobileOrTablet},_2:function(){return checkIsIOS}}),n(11163);var r=/Android/i,i=/iPhone|iPad|iPod/i,checkIsAndroid=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=navigator)||void 0===t?void 0:t.userAgent;return!!r.exec(e)},checkIsIOS=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=navigator)||void 0===t?void 0:t.userAgent;return!!i.exec(e)};function checkIsMobileOrTablet(){return"navigator"in window&&(window.navigator.maxTouchPoints>0||checkIsAndroid()||checkIsIOS())}},65565:function(t,e,n){"use strict";n.d(e,{FF:function(){return formatLocale},ZF:function(){return getLocalDate},jb:function(){return getYearLocale},m2:function(){return renderDate},p6:function(){return formatDate},rn:function(){return renderTime}});var r=n(42298),i=n(12274),a=n(95570),o=n(22095),s=n(87537),c="dd/MM/yyyy",renderDate=function(t,e){var n=new Date(t);return(0,i.default)(n)?(0,s.zl)(n,c):t},renderTime=function(t){var e=new Date(t);return(0,i.default)(e)?(0,s.zl)(e,"HH:mm"):t},formatLocale=function(t,e){return(0,r.default)(t,e,{locale:o.Z})},getYearLocale=function(t){return(0,a.default)(t)+543},getLocalDate=function(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()))},formatDate=function(t){var e=new Date(t.input),n=t.pattern||c;return(0,i.default)(e)?(0,s.zl)(e,n):t.input}}},function(t){t.O(0,[9774,8307,5518,1664,7911,2298,3393,4599,4962,1276,9964,870,2888,179],function(){return t(t.s=75622)}),_N_E=t.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.