1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2238],{40693:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var i=n(37876),l=n(1213),o=n(24400),r=n(68191),a=n(66530),s=n(48230),d=n.n(s),c=n(89099),m=n(2233),u=n(14232);let h={"provider-promotion":"promotion"};function x(e){let t=(0,c.useRouter)(),[n,o]=(0,u.useState)([]),{t:s}=(0,m.A)(),{theme:d}=(0,a.DP)(),x=["games"];(0,u.useEffect)(()=>{let e;o((-1!==(e=t.asPath).indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),-1!==e.indexOf("#")&&(e=e.substring(0,e.indexOf("#"))),e).split("/").map(e=>{var t;return null!=(t=h[e])?t:e}))},[t.asPath]);let b={"":{label:s("common:home")},notifications:{label:s("common:notification")},transaction:{label:s("common:transaction")},withdraw:{label:s("common:withdraw")},deposit:{label:s("common:deposit")},"terms-and-conditions":{label:s("common:terms_and_condition")},"how-to-play":{label:s("common:how_to_play")},"my-bonus":{label:s("common:my_bonus")},"my-promotion":{label:s("common:my_promotion")},"my-favorite":{label:s("common:my_favorite")},"my-cashback":{label:s("common:my_cashback")},"transaction-account":{label:s("common:transaction_account")},"transaction-history":{label:s("common:transaction_history")},"referral-history":{label:s("common:referral_history")},"provider-promotion":{label:s("common:promotion")},...e.customTitle},j="";return(0,i.jsx)(v,{children:null==n?void 0:n.map((e,t)=>{var o,a,s;return(j+=e+"/",x.includes(e))?null:(0,i.jsxs)(u.Fragment,{children:[0!==t&&(0,i.jsx)(p,{children:(0,i.jsx)(l.sC,{color:d.colors.primaryLight})}),(0,i.jsx)(g,{href:j,passHref:!0,prefetch:!1,children:(0,i.jsx)(f,{variant:t===n.length-1?"body1Medium":"body1Light",className:(0,r.AH)({color:(n.length,"$primaryLight")})(),children:null==(a=(null==(s=b[e])?void 0:s.label)||e)||null==(o=a.replaceAll("-"," "))?void 0:o.split("?")[0]})})]},t.toString())})})}let p=(0,r.I4)("div",{display:"flex",mx:12}),v=(0,r.I4)("div",{display:"flex",alignItems:"center",padding:"8px 0px","@lg":{padding:"0px"},background:"rgba(0, 0, 0, 0.2)",width:"fit-content"}),f=(0,r.I4)(o.EY,{textTransform:"capitalize","&:hover":{fontWeight:"$bold"}}),g=(0,r.I4)(d(),{textDecoration:"none",cursor:"pointer","&:hover":{}})},45152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>L,default:()=>P});var i=n(37876),l=n(46258),o=n(5751),r=n(75922),a=n(40693),s=n(68191),d=n(2233),c=n(87339),m=n(1213),u=n(24400),h=n(54343),x=n(55728),p=n(66530),v=n(34022),f=n(89099),g=n(14232);function b(e){var t,n,o,a,s,b,C,N,D,L,P,M;let R=(0,f.useRouter)(),{t:S}=(0,d.A)(),{format:B}=(0,v.BF)(),{theme:H}=(0,p.DP)(),{website:O}
1=(0,l.NQ)(),F=null==(t=R.query)?void 0:t.id,{data:Y,isLoading:$,isFetching:T,refetch:q,error:z}=(0,c.xH)({notificationId:F},{enabled:!!F}),J=(0,g.useMemo)(()=>{var e,t;return null==O||null==(t=O.websitePersonalize)||null==(e=t.frameBackgroundColors)?void 0:e.primary},[null==O||null==(o=O.websitePersonalize)||null==(n=o.frameBackgroundColors)?void 0:n.primary]);return(0,i.jsxs)(y,{children:[(0,i.jsx)(r.wv,{mt:20}),(0,i.jsx)(u._3,{label:S("common:back"),href:"/notifications",variant:"normal",startEnhancer:(0,i.jsx)(m.pW,{color:H.colors.primaryDefault})}),(0,i.jsx)(j,{children:(0,i.jsx)(u.EY,{variant:{"@desktop":"title2Semibold","@mobile":"title3Semibold"},children:S("common:notification")})}),(0,i.jsx)(_,{css:{background:J||""},children:(0,i.jsx)(h.A,{isLoading:$||T,onRetry:q,error:z,loadingComponent:(0,i.jsx)(r.BJ,{direction:"vertical",gap:16,children:(0,i.jsx)(r.BJ,{children:(0,i.jsx)(E,{})})}),component:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(I,{children:[(0,i.jsx)(k,{children:(0,i.jsx)(u.EY,{variant:"title3Bold",children:null==Y||null==(a=Y.data)?void 0:a.title})}),(0,i.jsx)(r.wv,{mb:8,media:"onlyMobile"}),!!(null==Y||null==(s=Y.data)?void 0:s.createdAt)&&(0,i.jsx)(u.EY,{variant:{"@desktop":"body3Regular","@mobile":"captionRegular"},children:B(null==Y||null==(b=Y.data)?void 0:b.createdAt,"dd MMM yyyy, HH:mm")})]}),(0,i.jsx)(A,{}),(0,i.jsxs)(w,{children:[(0,i.jsx)(r.wv,{mb:12}),!!(null==Y||null==(C=Y.data)?void 0:C.subject)&&(0,i.jsx)(u.EY,{variant:"body2Regular",dangerouslySetInnerHTML:{__html:(0,x.Iv)(JSON.parse((null==Y||null==(N=Y.data)?void 0:N.subject)||""))}}),!!(null==Y||null==(L=Y.data)||null==(D=L.attachment)?void 0:D.url)&&(0,i.jsx)(u.hw,{src:null==Y||null==(M=Y.data)||null==(P=M.attachment)?void 0:P.url,alt:""})]})]})})})]})}let j=(0,s.I4)("div",{mt:8,mb:28,"@mobile":{mb:32}}),y=(0,s.I4)("div",{}),_=(0,s.I4)("div",{background:"$inkLight",padding:"32px 24px",height:"100%",borderRadius:20,"@mobile":{padding:"20px 16px"}}),I=(0,s.I4)("div",{display:"flex",flex:1,alignItems:"center","@mobile":{alignItems:"flex-start",flexDirection:"column"}}),w=(0,s.I4)("div",{}),k=(0,s.I4)("div",{display:"flex",flex:1}),A=(0,s.I4)("div",{my:20,width:"100%",height:.5,background:"$skyLightest"}),E=(0,s.I4)("div",{width:"100%",height:400,background:"$inkLightest"});function C(){let{t:e}=(0,d.A)();return(0,i.jsx)(N,{children:(0,i.jsxs)(r.wn,{children:[(0,i.jsx)(D,{children:(0,i.jsx)(a.A,{})}),(0,i.jsx)(b,{})]})})}let N=(0,s.I4)("div",{mb:32}),D=(0,s.I4)("div",{mb:8,"@desktop":{mt:20},"@mobile":{mt:12}});var L=!0;function P(e){return(0,i.jsx)(l.Ay,{value:e,children:(0,i.jsx)(o.m,{children:(0,i.jsx)(C,{})})})}},54343:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(37876);n(14232);var l=n(1213),o=n(24400),r=n(68191),a=n(66530),s=n(2233),d=n(96262);function c(e){let{t}=(0,s.A)(),{isLoading:n,refetch:r}=e,{theme:c}=(0,a.DP)();return(0,i.jsxs)(m,{children:[(0,i.jsx)(u,{children:(0,i.jsx)(o.EY,{variant:"body1Regular",children:t("common:load_failed_title")})}),(0,i.jsx)(h,{children:n?(0,i.jsx)(d.BM,{color:"white",height:18,width:18}):(0,i.jsx)(x,{onClick:()=>{r&&r()},children:(0,i.jsx)(l.gM,{color:c.colors.primaryDefault})})})]})}let m=(0,r.I4)("div",{display:"flex",flexDirection:"row",maxWidth:"100%",alignSelf:"flex-start",alignItems:"center",background:"$inkLight",padding:"12px 12px",borderRadius:12,my:16}),u=(0,r.I4)("div",{margin:"0px 8px",textAlign:"center"}),h=(0,r.I4)("div",{marginLeft:12,display:"flex",alignItems:"center"}),x=(0,r.I4)("div",{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"});function p(e){let{isLoading:t=!1,error:n,onRetry:l,loadingComponent:o,component:r,errorComponent:a}=e;return t?(0,i.jsx)(i.Fragment,{children:o})||null:n?a?(0,i.jsx)(i.Fragment,{children:a}):(0,i.jsx)(c,{refetch:l}):(0,i.jsx)(i.Fragment,{children:r})}},77108:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/[id]",function(){return n(45152)}])},87339:(e,t,n)=>{"use strict";n.d(t,{xH:()=>h,iw:()=>u});var i=n(79819),l=n(42252),o=n(64837),r=n(4902),a=n(20830),s=n(17494),d=n(20913);class c{}(0,r.Cg)([(0,a.v)({name:"read_at"})],c.prototype,"readAt",void 0),(0,r.Cg)([(0,a.v)({name:"created_at"}),(0,s.Z)(()=>Date)],c.prototype,"createdAt",void 0);class m{}function u(e,t){return(0,o.oE)((0,i.q)(["getNotifications",null==e?void 0:e.params],t=>{let{pageParam:n=1}=t;return(0,o.hs)({url:"notifications",params:{...null==e?void 0:e.params}})},t),c)}function h(e,t){return(0,o.oE)((0,l.I)(["getNotification",null==e?void 0:e.notificationId],()=>(0,o.hs)({url:"notifications/".concat(null==e?void 0:e.notificationId)}),t),m)}(0,r.Cg)([(0,s.Z)(()=>d.qn)],m.prototype,"attachment",void 0),(0,r.Cg)([(0,a.v)({name:"created_at"}),(0,s.Z)(()=>Date)],m.prototype,"createdAt",void 0)}},e=>{e.O(0,[9089,1418,5751,636,6593,8792],()=>e(e.s=77108)),_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.