1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5918],{1395:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(94641),l=a(41423);let i=(e,t,a)=>{let i,n,c=(0,r.c)(8);c[0]!==t||c[1]!==e.current||c[2]!==a?(i=()=>{let r=r=>{!e.current||e.current.contains(r.target)||(null==a?void 0:a.some(e=>{var t;return null==(t=e.current)?void 0:t.contains(r.target)}))||t(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},c[0]=t,c[1]=e.current,c[2]=a,c[3]=i):i=c[3],c[4]!==t||c[5]!==e||c[6]!==a?(n=[e,t,a],c[4]=t,c[5]=e,c[6]=a,c[7]=n):n=c[7],(0,l.useEffect)(i,n)}},15914:(e,t,a)=>{a.d(t,{default:()=>g});var r=a(94087),l=a(94641),i=a(50624),n=a(26313),c=a(7195),o=a(82680),s=a(41423),d=a(37736),h=a(9833),m=a(78813),f=a(51225),u=a(26438),p=a(40178),x=a(80643);let y=e=>{let t,a,i,o,d,h,p,y,g,_,b,N,v=(0,l.c)(34),{id:w,icon:j,title:S,description:k,time:A,read:C,url:T,badgeImage:E}=e,I=(0,m.rd)(),{setRead:P}=(0,s.useContext)(u.V);v[0]!==w||v[1]!==C||v[2]!==I||v[3]!==P||v[4]!==T?(t=async()=>{C||await P(w),I.push(T),(0,x.$s)("click_read_notification")},v[0]=w,v[1]=C,v[2]=I,v[3]=P,v[4]=T,v[5]=t):t=v[5];let J=t,O=!C&&"bg-surface-surface-container-highest/20";return v[6]!==O?(a=(0,n.e)("relative border-b flex border-surface-surface-container cursor-pointer",O),v[6]=O,v[7]=a):a=v[7],v[8]!==j?(i=(0,r.jsx)(c.default,{src:j,className:"h-16 w-16 rounded-full object-cover",width:80,height:80,alt:"Notification Icon"}),v[8]=j,v[9]=i):i=v[9],v[10]!==E?(o=E&&(0,r.jsx)("div",{className:"absolute bottom-0 right-0 h-8 w-8",children:(0,r.jsx)(c.default,{src:E,className:"object-contain",fill:!0,alt:"Notification Badge"})}),v[10]=E,v[11]=o):o=v[11],v[12]!==i||v[13]!==o?(d=(0,r.jsxs)("div",{className:"relative m-2 flex h-20 w-20 shrink-0 items-center justify-center py-2",children:[i,o]}),v[12]=i,v[13]=o,v[14]=d):d=v[14],v[15]!==S?(h=(0,r.jsx)("h3",{className:"typography-typescale-label-large grow truncate",children:S}),v[15]=S,v[16]=h):h=v[16],v[17]!==A?(p=(0,f.A)(A).fromNow(),v[17]=A,v[18]=p):p=v[18],v[19]!==p?(y=(0,r.jsx)("span",{className:"typography-typescale-label-small shrink-0 text-surface-on-surface",children:p}),v[19]=p,v[20]=y):y=v[20],v[21]!==h||v[22]!==y?(g=(0,r.jsxs)("div",{className:"flex justify-between",children:[h,y]}),v[21]=h,v[22]=y,v[23]=g):g=v[23],v[24]!==k?(_=(0,r.jsx)("p",{className:"typography-typescale-body-small line-clamp-2 break-words",children:k}),v[24]=k,v[25]=_):_=v[25],v[26]!==g||v[27]!==_?(b=(0,r.jsxs)("div",{className:"relative my-4 mr-4 flex w-full flex-col overflow-hidden text-surface-on-surface-variant-bright",children:[g,_]}),v[26]=g,v[27]=_,v[28]=b):b=v[28],v[29]!==J||v[30]!==b||v[31]!==a||v[32]!==d?(N=(0,r.jsxs)("div",{className:a,onClick:J,children:[d,b]}),v[29]=J,v[30]=b,v[31]=a,v[32]=d,v[33]=N):N=v[33],N},g=e=>{let t,a,c,m,f,x,y,g,b=(0,l.c)(19);b[0]!==e?({className:t,rootScroll:c,...a}=e,b[0]=e,b[1]=t,b[2]=a,b[3]=c):(t=b[1],a=b[2],c=b[3]);let N=void 0===c||c,v=(0,o.c3)(),{notifications:w,fetchMore:j,setSeen:S,hasMore:k}=(0,s.useContext)(u.V);return b[4]!==S?(m=()=>{S()},f=[S],b[4]=S,b[5]=m,b[6]=f):(m=b[5],f=b[6]),(0,s.useEffect)(m,f),b[7]!==t?(x=(0,n.e)("overflow-y-auto",t),b[7]=t,b[8]=x):x=b[8],b[9]!==j||b[10]!==k||b[11]!==w||b[12]!==N||b[13]!==v?(y=0===w.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-10",children:[(0,r.jsx)(h.hZ,{}),(0,r.jsx)("p",{className:"typography-typescale-body-large text-surface-on-surface",children:v(p.N.BellNotiEmtyBoxDesc)})]}):(0,r.jsx)(d.A,{dataLength:w.length,next:j,hasMore:k,loader:(0,r.jsx)(i.Loading,{className:"mx-auto mt-4"},0),className:"h-fit",scrollableTarget:N?void 0:"notifications-parent",children:w.map(_)}),b[9]=j,b[10]=k,b[11]=w,b[12]=N,b[13]=v,b[14]=y):y=b[14],b[15]!==a||b[16]!==x||b[17]!==y?(g=(0,r.jsx)("div",{id:"notifications-parent",className:x,...a,children:y}),b[15]=a,b[16]=x,b[17]=y,b[18]=g):g=b[18],g};function _(e){return(0,r.jsx)(y,{...e},"notification-".concat(e.id))}},22009:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(94087),l=a(94641),i=a(26313),n=a(7195),c=a(9833);let o=e=>{let t,a,o,s,d,h,m,f,u,p,x,y,g,_,b,N,v=(0,l.c)(38);v[0]!==e?({image:o,title:u,variant:m,className:a,textClassName:f,imageClassName:s,checkBadge:t,priority:d,...h}=e,v[0]=e,v[1]=t,v[2]=a,v[3]=o,v[4]=s,v[5]=d,v[6]=h,v[7]=m,v[8]=f,v[9]=u):(t=v[1],a=v[2],o=v[3],s=v[4],d=v[5],h=v[6],m=v[7],f=v[8],u=v[9]);let w=void 0===m?"default":m;
1v[10]!==a?(p=(0,i.e)("flex w-fit items-center justify-center gap-2 max-w-full",a),v[10]=a,v[11]=p):p=v[11];let j="default"===w&&"w-6 h-6 sm:h-8 sm:w-8",S="small"===w&&"h-6 w-6",k="large"===w&&"h-20 w-20 p-1";v[12]!==s||v[13]!==j||v[14]!==S||v[15]!==k?(x=(0,i.e)("rounded-full object-cover shrink-0",j,S,k,s),v[12]=s,v[13]=j,v[14]=S,v[15]=k,v[16]=x):x=v[16],v[17]!==o||v[18]!==d||v[19]!==x||v[20]!==u?(y=(0,r.jsx)(n.default,{"data-testid":"cover-image",src:o,className:x,width:80,height:80,alt:u,priority:d}),v[17]=o,v[18]=d,v[19]=x,v[20]=u,v[21]=y):y=v[21];let A="default"===w&&"typography-typescale-label-large sm:typography-typescale-title-small",C="small"===w&&"typography-typescale-label-large",T="large"===w&&"typography-typescale-headline-small";return v[22]!==T||v[23]!==A||v[24]!==C||v[25]!==f?(g=(0,i.e)("text-surface-on-surface-variant-bright whitespace-nowrap truncate",A,C,T,f),v[22]=T,v[23]=A,v[24]=C,v[25]=f,v[26]=g):g=v[26],v[27]!==g||v[28]!==u?(_=(0,r.jsx)("span",{"data-testid":"title",className:g,children:u}),v[27]=g,v[28]=u,v[29]=_):_=v[29],v[30]!==t?(b=t&&(0,r.jsx)(c.eX,{className:"ml-1"}),v[30]=t,v[31]=b):b=v[31],v[32]!==h||v[33]!==_||v[34]!==b||v[35]!==p||v[36]!==y?(N=(0,r.jsxs)("div",{className:p,...h,children:[y,_,b]}),v[32]=h,v[33]=_,v[34]=b,v[35]=p,v[36]=y,v[37]=N):N=v[37],N}},23267:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(94641),l=a(41423);let i=()=>{let e,t,a,i=(0,r.c)(3);i[0]===Symbol.for("react.memo_cache_sentinel")?(e={width:window.innerWidth,height:window.innerHeight},i[0]=e):e=i[0];let[n,c]=(0,l.useState)(e);return i[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=()=>c({width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},a=[],i[1]=t,i[2]=a):(t=i[1],a=i[2]),(0,l.useEffect)(t,a),n}},24042:(e,t,a)=>{a.d(t,{Q:()=>m,ConfigProvider:()=>f});var r=a(94087),l=a(94641),i=a(68577),n=a(17360),c=a(41423),o=a(45613),s=a(80643),d=a(78813),h=a(84050);let m=(0,c.createContext)({forceHeaderShadow:!1,setForceHeaderShadow:e=>{},forceDisableFooter:!1,setForceDisableFooter:e=>{},forceDisableHeader:!1,setForceDisableHeader:e=>{},userLocation:void 0}),f=e=>{let t,a,f,u,p,x,y,g,_,b,N,v=(0,l.c)(19),{children:w}=e,j=(0,d.a8)();v[0]===Symbol.for("react.memo_cache_sentinel")?(t={},v[0]=t):t=v[0];let S=(e=>{let t,a,r=(0,l.c)(3),{onError:i}=e,[n,o]=(0,c.useState)();return r[0]!==i?(t=()=>{let e=navigator.geolocation.watchPosition(e=>{o({lng:e.coords.longitude,lat:e.coords.latitude}),(0,s.$s)("location_allowed")},e=>{i&&i(e),(0,s.$s)("location_rejected")},{enableHighAccuracy:!1,maximumAge:1e3});return()=>{navigator.geolocation.clearWatch(e)}},a=[i],r[0]=i,r[1]=t,r[2]=a):(t=r[1],a=r[2]),(0,c.useEffect)(t,a),n})(t),k=(0,n.useSearchParams)(),[A,C]=(0,c.useState)(!1),[T,E]=(0,c.useState)(!1),[I,P]=(0,c.useState)(!1);return v[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{E(!1),P(!1)},v[1]=a):a=v[1],v[2]!==j?(f=[j],v[2]=j,v[3]=f):f=v[3],(0,c.useLayoutEffect)(a,f),v[4]!==k?(u=()=>{let e=k.get("navbar"),t=k.get("footer");"hide"===e&&C(!0),"hide"===t&&P(!0)},p=[k],v[4]=k,v[5]=u,v[6]=p):(u=v[5],p=v[6]),(0,c.useEffect)(u,p),v[7]!==S?(x=()=>{S&&(0,h.TV)(o.Hk.USER_LOCATION,JSON.stringify(S))},y=[S],v[7]=S,v[8]=x,v[9]=y):(x=v[8],y=v[9]),v[10]===Symbol.for("react.memo_cache_sentinel")?(g={wait:1234},v[10]=g):g=v[10],(0,i.A)(x,y,g),v[11]!==I||v[12]!==A||v[13]!==T||v[14]!==S?(b={forceHeaderShadow:T,setForceHeaderShadow:E,forceDisableFooter:I,setForceDisableFooter:P,forceDisableHeader:A,setForceDisableHeader:C,userLocation:S},v[11]=I,v[12]=A,v[13]=T,v[14]=S,v[15]=b):b=v[15],_=b,v[16]!==w||v[17]!==_?(N=(0,r.jsx)(m.Provider,{value:_,children:w}),v[16]=w,v[17]=_,v[18]=N):N=v[18],N}},26438:(e,t,a)=>{a.d(t,{V:()=>g,NotificationProvider:()=>_});var r=a(94087),l=a(94641),i=a(41423),n=a(45613),c=a(84050),o=a(65401);class s{encodeQueryParam(e,t){let a=encodeURIComponent(e);return"".concat(a,"=").concat(encodeURIComponent("number"==typeof t?t:"".concat(t)))}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(e=>this.encodeQueryParam(t,e)).join("&")}toQueryString(e){let t=e||{};return Object.keys(t).filter(e=>void 0!==t[e]).map(e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e)).join("&")}addQueryParams(e){let t=this.toQueryString(e);return t?"?".concat(t):""}
1mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}constructor(e={}){this.baseUrl="",this.securityData=null,this.abortControllers=new Map,this.customFetch=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return fetch(...t)},this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"},this.setSecurityData=e=>{this.securityData=e},this.contentFormatters={"application/json":e=>null!==e&&("object"==typeof e||"string"==typeof e)?JSON.stringify(e):e,"text/plain":e=>null!==e&&"string"!=typeof e?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,a)=>{let r=e[a];return t.append(a,r instanceof Blob?r:"object"==typeof r&&null!==r?JSON.stringify(r):"".concat(r)),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)},this.createAbortSignal=e=>{if(this.abortControllers.has(e)){let t=this.abortControllers.get(e);return t?t.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal},this.abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))},this.request=async e=>{let{body:t,secure:a,path:r,type:l,query:i,format:n,baseUrl:c,cancelToken:o,...s}=e,d=("boolean"==typeof a?a:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{}
1,h=this.mergeRequestParams(s,d),m=i&&this.toQueryString(i),f=this.contentFormatters[l||"application/json"],u=n||h.format;return this.customFetch("".concat(c||this.baseUrl||"").concat(r).concat(m?"?".concat(m):""),{...h,headers:{...h.headers||{},...l&&"multipart/form-data"!==l?{"Content-Type":l}:{}},signal:(o?this.createAbortSignal(o):h.signal)||null,body:null==t?null:f(t)}).then(async e=>{e.data=null,e.error=null;let t=u?await e[u]().then(t=>(e.ok?e.data=t:e.error=t,e)).catch(t=>(e.error=t,e)):e;return o&&this.abortControllers.delete(o),t})},Object.assign(this,e)}}class d{constructor(e){var t=this;this.v1={notificationGetNotification:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.http.request({path:"/v1/notifications/get/".concat(e),method:"GET",format:"json",...a})},notificationListNotifications:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.http.request({path:"/v1/notifications/list",method:"GET",query:e,format:"json",...a})},notificationMarkAsRead:function(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.http.request({path:"/v1/notifications/mark-as-read/".concat(e),method:"PATCH",body:a,type:"application/json",format:"json",...r})},notificationMarkAsSeen:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.http.request({path:"/v1/notifications/mark-as-seen",method:"PATCH",body:e,type:"application/json",format:"json",...a})},notificationSaveFcmToken:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.http.request({path:"/v1/notifications/save-fcm-token",method:"POST",body:e,type:"application/json",format:"json",...a})}},this.http=e}}var h=a(68389),m=a(31146),f=a(17006),u=a(37309),p=a(2204);class x{async getNotifications(e){try{let t=await this.httpClient.request({baseUrl:m.A.API_GATEWAY_URL_CHRONOS,path:"/v1/notifications/list",method:"GET",query:(0,u.IR)(e),format:"json",headers:await (0,o.p)()});if(!t.ok)throw t.status,await (0,f.uU)(x.logKeys.GET_NOTIFICATIONS,t);let{data:a}=t;return{unseen:a.has_unseen,paging:{data:a.data.map(e=>{var t;return{id:e.id,title:e.title,description:e.body,fullRichContent:null==(t=e.rich_content)?void 0:t.html_format,read:!!e.is_read,icon:e.preview_image||h.zC.coralFallback,url:e.click_action||p.J.notification.view(e.id),time:new Date(e.created_at),badgeImage:e.badge_image}}),pagination:{nextCursor:a.pagination.next_cursor,prevCursor:a.pagination.prev_cursor,count:a.pagination.count}}}}catch(e){throw(0,f.x6)(x.logKeys.GET_NOTIFICATIONS,e)}}async getNotificationsNext(e){try{let t=await this.httpClient.request({baseUrl:m.A.APP_URL,path:"/api/app/notification",method:"GET",query:(0,u.IR)(e),format:"json",headers:await (0,o.p)({"x-skip-detach-token":"true"})});if(!t.ok)throw t.status,await (0,f.uU)(x.logKeys.GET_NOTIFICATIONS,t);return t.data}catch(e){throw(0,f.x6)(x.logKeys.GET_NOTIFICATIONS,e)}}async getNotification(e){try{var t;let a=await this.api.notificationGetNotification(e,{baseUrl:m.A.API_GATEWAY_URL_CHRONOS,headers:await (0,o.p)()});if(!a.ok)throw a.status,await (0,f.uU)(x.logKeys.GET_NOTIFICATION,a);let{data:r}=a.data;return{id:r.id,title:r.title,description:r.body,fullRichContent:null==(t=r.rich_content)?void 0:t.html_format,read:!!r.is_read,icon:r.preview_image||h.zC.coralFallback,url:r.click_action||p.J.notification.view(r.id),time:new Date(r.created_at),badgeImage:r.badge_image}}catch(e){throw(0,f.x6)(x.logKeys.GET_NOTIFICATIONS,e)}}async markAsRead(e){try{let t=await this.api.notificationMarkAsRead(e,{},{baseUrl:m.A.API_GATEWAY_URL_CHRONOS,headers:await (0,o.p)()});if(!t.ok)throw t.status,await (0,f.uU)(x.logKeys.MASK_AS_READ,t)}catch(e){throw(0,f.x6)(x.logKeys.MASK_AS_READ,e)}}async markAsSeen(e){try{let t=await this.api.notificationMarkAsSeen({},{baseUrl:m.A.API_GATEWAY_URL_CHRONOS,headers:await (0,o.p)(),signal:e});if(!t.ok)throw t.status,await (0,f.uU)(x.logKeys.MASK_AS_SEEN,t)}catch(e){throw(0,f.x6)(x.logKeys.MASK_AS_SEEN,e)}}constructor(){let e=new s({});this.api=new d(e).v1,this.httpClient=e}}x.logKeys={GET_NOTIFICATIONS:"[NotificationServices][getNotifications]",GET_NOTIFICATION:"[NotificationServices][getNotification]",MASK_AS_READ:"[NotificationServices][markAsRead]",MASK_AS_SEEN:"[NotificationServices][markAsSeen]"};let y=new x,g=(0,i.createContext)({unseen:!1,setSeen:async()=>{},notifications:[],hasMore:!1,fetchMore:async()=>{},nextCursor:void 0,setRead:async e=>{}}),_=e=>{let t,a,o,s,d,h,m,f,u,p,x=(0,l.c)(17),{children:_}=e,[N,v]=(0,i.useState)(!1);x[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],x[0]=t):t=x[0];let[w,j]=(0,i.useState)(t),[S,k]=(0,i.useState)(),[A,C]=(0,i.useState)(!1);x[1]===Symbol.for("react.memo_cache_sentinel")?(a=async()=>{let e=await y.getNotificationsNext({limit:20});v(e.unseen),j(t=>{0===t.length&&e.paging.data.length>0&&C(!0);let a=new Set(t.map(b));return[...e.paging.data.filter(e=>!a.has(e.id)),...t]}),k(t=>void 0===t?e.paging.pagination.nextCursor:t)},x[1]=a):a=x[1];let T=a;x[2]!==S?(o=async()=>
1{if(!S)return void C(!1);let e=await y.getNotifications({limit:20,cursor:S});if(0===e.paging.pagination.count)return void C(!1);j(t=>[...t,...e.paging.data]),k(e.paging.pagination.nextCursor),C(!0)},x[2]=S,x[3]=o):o=x[3];let E=o;x[4]===Symbol.for("react.memo_cache_sentinel")?(s=()=>(v(!1),y.markAsSeen()),x[4]=s):s=x[4];let I=s;x[5]===Symbol.for("react.memo_cache_sentinel")?(d=async e=>{j(t=>t.map(t=>t.id===e?{...t,read:!0}:t)),await y.markAsRead(e)},x[5]=d):d=x[5];let P=d;return x[6]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{if(!(0,c.PA)(n.Hk.ACCESS_TOKEN))return;T();let e=setInterval(()=>{if(!(0,c.PA)(n.Hk.ACCESS_TOKEN))return void clearInterval(e);T().catch(()=>{clearInterval(e)})},13e3);return()=>clearInterval(e)},m=[T],x[6]=h,x[7]=m):(h=x[6],m=x[7]),(0,i.useEffect)(h,m),x[8]!==E||x[9]!==A||x[10]!==S||x[11]!==w||x[12]!==N?(u={unseen:N,setSeen:I,hasMore:A,notifications:w,fetchMore:E,nextCursor:S,setRead:P},x[8]=E,x[9]=A,x[10]=S,x[11]=w,x[12]=N,x[13]=u):u=x[13],f=u,x[14]!==_||x[15]!==f?(p=(0,r.jsx)(g.Provider,{value:f,children:_}),x[14]=_,x[15]=f,x[16]=p):p=x[16],p};function b(e){return e.id}},37309:(e,t,a)=>{a.d(t,{$g:()=>r,Cb:()=>i,IR:()=>l,WA:()=>n});let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e%1==0;return new Intl.NumberFormat("th-TH",{style:"decimal",minimumFractionDigits:t&&a?0:2,maximumFractionDigits:2}).format(e)},l=e=>{let t={};if(e){let{cursor:a,limit:r=20,sortField:l,sortOrder:i,search:n,filter:c}=e;a&&(t["pagination.cursor"]=a),r&&(t["pagination.limit"]=r),l&&(t["pagination.sort.field"]=l),i&&(t["pagination.sort.order"]=i),n&&(t["pagination.search"]=n),c&&Object.entries(c).forEach(e=>{let[a,r]=e;t["pagination.filter[".concat(a,"]")]=r})}return t},i=e=>{let t={};return e&&Object.entries(e).forEach(e=>{let[a,r]=e;t["filter[".concat(a,"]")]=r}),t},n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(e).padStart(t,"0")}},72088:(e,t,a)=>{a.d(t,{default:()=>c});var r=a(94087),l=a(94641),i=a(78813),n=a(80643);let c=e=>{let t,a,c,o,s,d=(0,l.c)(11);d[0]!==e?({analytic:t,children:a,...c}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=c):(t=d[1],a=d[2],c=d[3]);let h=null==t?void 0:t.eventName,m=null==t?void 0:t.eventParams;return d[4]!==h||d[5]!==m?(o=(0,n.Uc)(h,m),d[4]=h,d[5]=m,d[6]=o):o=d[6],d[7]!==a||d[8]!==c||d[9]!==o?(s=(0,r.jsx)(i.N_,{...c,onClick:o,prefetch:!1,children:a}),d[7]=a,d[8]=c,d[9]=o,d[10]=s):s=d[10],s}},80643:(e,t,a)=>{a.d(t,{$s:()=>i,Uc:()=>n,Zo:()=>c});var r=a(80238),l=a(31146);let i=(e,t)=>{let a=window.location.pathname;a&&a.startsWith("/en")&&(a=a.replace("/en","")),(0,r.sendGAEvent)("event",e,{...t,path:a})},n=(e,t)=>()=>{e&&i(e,t)},c=e=>{window.gtag&&(window.gtag("config",l.A.FIREBASE_MEASUREMENT_ID,{user_id:e}),window.gtag("set",{user_id:e}))}},82672:(e,t,a)=>{a.d(t,{default:()=>o});var r=a(94087),l=a(94641),i=a(78146),n=a(78813),c=a(80643);let o=e=>{let t,a,o,s,d,h,m,f=(0,l.c)(15);f[0]!==e?({link:o,analytic:t,children:a,...s}=e,f[0]=e,f[1]=t,f[2]=a,f[3]=o,f[4]=s):(t=f[1],a=f[2],o=f[3],s=f[4]);let u=null==t?void 0:t.eventName,p=null==t?void 0:t.eventParams;return f[5]!==u||f[6]!==p?(d=(0,c.Uc)(u,p),f[5]=u,f[6]=p,f[7]=d):d=f[7],f[8]!==a||f[9]!==o||f[10]!==d?(h=(0,r.jsx)(n.N_,{...o,onClick:d,prefetch:!1,children:a}),f[8]=a,f[9]=o,f[10]=d,f[11]=h):h=f[11],f[12]!==s||f[13]!==h?(m=(0,r.jsx)(i.Button,{asChild:!0,...s,children:h}),f[12]=s,f[13]=h,f[14]=m):m=f[14],m}},97387:(e,t,a)=>{a.d(t,{default:()=>P});var r=a(94087),l=a(94641),i=a(14359),n=a(78146),c=a(26313),o=a(51157),s=a(7195),d=a(17360),h=a(82680),m=a(41423),f=a(82672),u=a(72088),p=a(9833),x=a(15914),y=a(22009),g=a(1395),_=a(23267),b=a(78813),N=a(24042),v=a(26438),w=a(68389),j=a(40178),S=a(2204),k=a(80643),A=a(33309),C=a(64760),T=a(13324);let E=e=>{let t,a,i,o,x,y,g,N,E,P,J,O,R,F,U,L,D,B,H,M,K,q,G,z,Q,W,V,$,Y,X,Z,ee,et,ea,er,el,ei,en,ec,eo,es,ed,eh,em,ef,eu,ep,ex=(0,l.c)(119),{phone:ey,locale:eg,showMenu:e_,closeMenu:eb}=e,eN=(0,h.c3)(),{unseen:ev,setSeen:ew}=(0,m.useContext)(v.V),ej=(0,b.rd)(),{width:eS}=(0,_.A)(),ek=(0,b.a8)(),eA=(0,d.useSearchParams)();ex[0]!==eS||ex[1]!==e_?(t=()=>(e_&&eS<1024?document.body.style.overflow="hidden":document.body.style.overflow="unset",I),a=[e_,eS],ex[0]=eS,ex[1]=e_,ex[2]=t,ex[3]=a):(t=ex[2],a=ex[3]),(0,m.useEffect)(t,a),ex[4]!==eb||ex[5]!==ej||ex[6]!==ew?(i=()=>{eb(),ew(),ej.push(S.J.notification.index),(0,k.$s)("click_tab_notification")},ex[4]=eb,ex[5]=ej,ex[6]=ew,ex[7]=i):i=ex[7];let eC=i,eT=eA.size?"".concat(ek,"?").concat(eA):ek;ex[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)("div",{className:"animate-pulse-scale bg-gradient-blue absolute left-0 top-0 aspect-square w-[83%] max-w-[400px] -translate-x-1/2 -translate-y-1/2 roun
1ded-full blur-3xl"}),ex[8]=o):o=ex[8],ex[9]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsx)(s.default,{width:120,height:32,src:w.zC.coralLogo,alt:"coralworld"}),ex[9]=x):x=ex[9],ex[10]!==eb?(y=(0,r.jsx)(b.N_,{href:S.J.home,onClick:eb,prefetch:!1,children:x}),ex[10]=eb,ex[11]=y):y=ex[11],ex[12]!==eC||ex[13]!==ey||ex[14]!==ev?(g=ey&&(0,r.jsx)("div",{onClick:eC,className:"flex aspect-square w-[33.33px] shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface-surface-container-high/20",children:(0,r.jsx)(p.Ir,{className:"h-6 w-6",indicator:ev})}),ex[12]=eC,ex[13]=ey,ex[14]=ev,ex[15]=g):g=ex[15],ex[16]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsx)(A.A,{className:"h-6 w-6 text-white"}),ex[16]=N):N=ex[16],ex[17]!==eb?(E=(0,r.jsx)("div",{className:"flex aspect-square w-[33.33px] shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface-surface-container-high/20",onClick:eb,children:N}),ex[17]=eb,ex[18]=E):E=ex[18],ex[19]!==g||ex[20]!==E?(P=(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[g,E]}),ex[19]=g,ex[20]=E,ex[21]=P):P=ex[21],ex[22]!==P||ex[23]!==y?(J=(0,r.jsxs)("div",{className:"relative flex items-center justify-between p-4",children:[y,P]}),ex[22]=P,ex[23]=y,ex[24]=J):J=ex[24],ex[25]!==eb||ex[26]!==ey?(O=ey&&(0,r.jsx)(b.N_,{href:S.J.me.index,onClick:eb,className:"relative my-2 px-4",prefetch:!1,children:(0,r.jsx)(C.W,{mode:C.y.PERSIST_TITLE,title:ey,children:(0,r.jsx)(T.e,{className:"h-20 w-20",src:w.zC.avatarBuyerFallback,alt:"avatar"})})}),ex[25]=eb,ex[26]=ey,ex[27]=O):O=ex[27];let eE=ey?"max-h-[calc(100vh-220px)]":"max-h-[calc(100vh-180px)]";ex[28]!==eE?(R=(0,c.e)("relative typography-typescale-body-large flex flex-col justify-between overflow-y-auto px-4 text-surface-on-surface-variant-bright",eE),ex[28]=eE,ex[29]=R):R=ex[29],ex[30]!==eN?(F=eN(j.N.PassportHomeViewAllTitle),ex[30]=eN,ex[31]=F):F=ex[31],ex[32]!==eb||ex[33]!==F?(U=(0,r.jsx)(b.N_,{href:S.J.passport.index,className:"border-b border-munsell py-5",onClick:eb,prefetch:!1,children:F}),ex[32]=eb,ex[33]=F,ex[34]=U):U=ex[34],ex[35]!==eN?(L=eN(j.N.MapLabel),ex[35]=eN,ex[36]=L):L=ex[36],ex[37]!==eb||ex[38]!==L?(D=(0,r.jsx)(b.N_,{href:S.J.map.index,className:"border-b border-munsell py-5",onClick:eb,prefetch:!1,children:L}),ex[37]=eb,ex[38]=L,ex[39]=D):D=ex[39],ex[40]!==eN?(B=eN(j.N.WalletNavTitle),ex[40]=eN,ex[41]=B):B=ex[41],ex[42]!==eb||ex[43]!==B?(H=(0,r.jsx)(b.N_,{href:S.J.wallet.index,className:"border-b border-munsell py-5",onClick:eb,prefetch:!1,children:B}),ex[42]=eb,ex[43]=B,ex[44]=H):H=ex[44],ex[45]===Symbol.for("react.memo_cache_sentinel")?(M={eventName:"view_rewards_page"},ex[45]=M):M=ex[45],ex[46]!==eN?(K=eN(j.N.MyRewardTitle),ex[46]=eN,ex[47]=K):K=ex[47],ex[48]!==eb||ex[49]!==K?(q=(0,r.jsx)(u.default,{href:S.J.downloadApp.reward,onClick:eb,className:"border-b border-munsell py-5",analytic:M,children:K}),ex[48]=eb,ex[49]=K,ex[50]=q):q=ex[50],ex[51]!==eN?(G=eN(j.N.AboutUsNavTitle),ex[51]=eN,ex[52]=G):G=ex[52],ex[53]!==eb||ex[54]!==G?(z=(0,r.jsx)(b.N_,{href:S.J.aboutUs,onClick:eb,className:"border-b border-munsell py-5",prefetch:!1,children:G}),ex[53]=eb,ex[54]=G,ex[55]=z):z=ex[55],ex[56]!==eN?(Q=eN(j.N.B2BNavTitle),ex[56]=eN,ex[57]=Q):Q=ex[57],ex[58]!==eb||ex[59]!==Q?(W=(0,r.jsx)(b.N_,{href:S.J.business,onClick:eb,className:"border-b border-munsell py-5",prefetch:!1,children:Q}),ex[58]=eb,ex[59]=Q,ex[60]=W):W=ex[60],ex[61]!==eN?(V=eN(j.N.HelpCenterSectionTitle),ex[61]=eN,ex[62]=V):V=ex[62],ex[63]!==eb||ex[64]!==V?($=(0,r.jsx)(b.N_,{href:S.J.helpCenter,onClick:eb,className:"border-b border-munsell py-5",prefetch:!1,children:V}),ex[63]=eb,ex[64]=V,ex[65]=$):$=ex[65],ex[66]!==eN?(Y=eN(j.N.LanguageLabel),ex[66]=eN,ex[67]=Y):Y=ex[67],ex[68]!==Y?(X=(0,r.jsx)("p",{children:Y}),ex[68]=Y,ex[69]=X):X=ex[69];let eI="th"!==eg&&"text-extended-disable/30";ex[70]!==eI?(Z=(0,c.e)(eI),ex[70]=eI,ex[71]=Z):Z=ex[71],ex[72]===Symbol.for("react.memo_cache_sentinel")?(ee={eventName:"click_web_landing_page_language_th"},ex[72]=ee):ee=ex[72],ex[73]!==eT||ex[74]!==Z?(et=(0,r.jsx)(u.default,{href:eT,prefetch:!1,locale:"th",className:Z,analytic:ee,children:"à¹à¸à¸¢"}),ex[73]=eT,ex[74]=Z,ex[75]=et):et=ex[75],ex[76]===Symbol.for("react.memo_cache_sentinel")?(ea=(0,r.jsx)("div",{className:"mx-2 h-4 w-[1px] bg-white"}),ex[76]=ea):ea=ex[76];let eP="en"!==eg&&"text-extended-disable/30";return ex[77]!==eP?(er=(0,c.e)(eP),ex[77]=eP,ex[78]=er):er=ex[78],ex[79]===Symbol.for("react.memo_cache_sentinel")?(el={eventName:"click_web_landing_page_language_en"},ex[79]=el):el=ex[79],ex[80]!==eT||ex[81]!==er?(ei=(0,r.jsx)(u.default,{href:eT,prefetch:!1,locale:"en",className:er,analytic:el,children:"EN"}),ex[80]=eT,ex[81]=er,ex[82]=ei):ei=ex[82],ex[83]!==et||ex[84]!==ei?(en=(0,r.jsxs)("div",{className:"typography-typescale-label-large flex items-center",children:[et,ea,ei]}),ex[83]=et,ex[84]=ei,ex[85]=en):en=ex[85],ex[86]!==X||ex[87]!==en?(ec=(0,r.jsxs)("div",{className:"flex items-center justify-between py-5",children:[X,en]}),ex[86]=X,ex[87]=en,ex[88]=ec):ec=ex[88],ex[89]!==R||ex[90]!==U||ex[91]!==D||ex[92]!==H||ex[93]!==q||ex[94]!==z||ex[95]!==W||ex[96]!==$||ex[97]!==ec?(eo=(0,r.jsxs)("div",{className:R,children:[U,D,H,q,z,W,$,ec]}),ex[89]=R,ex[90]=U,ex[91]=D,ex[92]=H,ex[93]=q,ex[94]=z,ex[95]=W,ex[96]=$,ex[97]=ec,ex[98]=eo):eo=ex[98],ex[99]!==eb||ex[100]!==ek||ex[101]!==ey||ex[102]!==eN?(es=!ey&&(0,r.jsx)(b.N_,{href:S.J.signIn.from(ek),onClick:eb,"aria-label":"Sign In",prefetch:!1,children:(0,r.jsx)(n.Button,{className:"typography-typescale-label-large mb-4 w-full px-4 text-center leading-none",children:eN(j.N.CommonLogInButton)})}),ex[99]=eb,ex[100]=ek,ex[101]=ey,ex[102]=eN,ex[103]=es):es=ex[103],ex[104]===Symbol.for("react.memo_cache_sentinel")?(ed={href:S.J.downloadApp.index},eh={eventName:"download_coral"},ex[104]=ed,ex[105]=eh):(ed=ex[104],eh=ex[105]),ex[106]!==eN?(em=eN(j.N.CommonDownloadAppButton),ex[106]=eN,ex[107]=em):em=ex[107],ex[108]!==eb||ex[109]!==em?(ef=(0,r.jsx)(f.default,{className:"typography-typescale-label-large w-full text-surface-on-surface-variant-bright",variant:"outline",link:ed,analytic:eh,onClick:eb,children:em}),ex[108]=eb,ex[109]=em,ex[110]=ef):ef=ex[110],ex[111]!==es||ex[112]!==ef?(eu=(0,r.jsxs)("div",{className:"fixed bottom-0 w-full bg-surface-surface-extended px-4 pb-6",children:[es,ef]}),ex[111]=es,ex[112]=ef,ex[113]=eu):eu=ex[113],ex[114]!==J||ex[115]!==O||ex[116]!==eo||ex[117]!==eu?(ep=(0,r.jsxs)("div",{className:"full-height fixed inset-x-0 top-0 z-40 flex flex-col bg-surface-surface-extended md:hidden",children:[o,J,O,eo,eu]}),ex[114]=J,ex[115]=O,ex[116]=eo,ex[117]=eu,ex[118]=ep):ep=ex[118],ep};function I(){document.body.style.overflow="unset"}let P=e=>{let t,a,A,C,T,I,P,O,R,F,U,L,D,B,H,M,K,q,G,z,Q,W,V,$,Y,X,Z,ee,et,ea,er,el,ei,en,ec,eo,es,ed,eh,em,ef,eu,ep,ex,ey,eg,e_=(0,l.c)(106),{displayName:eb,locale:eN}=e,ev=(0,o.A)(),ew=(0,h.c3)(),ej=(0,b.rd)(),eS=(0,b.a8)(),ek=(0,d.useSearchParams)(),{width:eA,height:eC}=(0,_.A)(),{forceHeaderShadow:eT,forceDisableHeader:eE}=(0,m.useContext)(N.Q),{unseen:eI,setSeen:eP,notifications:eJ}=(0,m.useContext)(v.V),[eO,eR]=(0,m.useState)(!1),eF=(0,m.useRef)(null),eU=(0,m.useRef)(null),[eL,eD]=(0,m.useState)(!1);e_[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>eR(!1),a=[eU],e_[0]=t,e_[1]=a):(t=e_[0],a=e_[1]),(0,g.A)(eF,t,a),e_[2]!==ej||e_[3]!==eA||e_[4]!==eP?(A=()=>{eP(),eA<1024?ej.push(S.J.notification.index):eR(J),(0,k.$s)("click_tab_notification")},e_[2]=ej,e_[3]=eA,e_[4]=eP,e_[5]=A):A=e_[5];let eB=A;e_[6]!==eB?(C=e=>{"Enter"===e.key&&eB()},e_[6]=eB,e_[7]=C):C=e_[7];let eH=C;e_[8]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{eR(!1),(0,k.$s)("click_close_notification_page")},e_[8]=T):T=e_[8];let eM=T;e_[9]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{eR(!1),(0,k.$s)("click_see_more_notification")},e_[9]=I):I=e_[9];let eK=I;e_[10]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{eD(!0)},e_[10]=P):P=e_[10];let eq=P;e_[11]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{eD(!1)},e_[11]=O):O=e_[11];let eG=O,ez=ek.size?"".concat(eS,"?").concat(ek):eS,eQ=eE&&"hidden";e_[12]!==eQ?(R=(0,c.e)("fixed left-1/2 top-0 z-30 flex h-16 w-full max-w-[1920px] -translate-x-1/2 items-center justify-center p-2 md:h-20 md:px-6",eQ),e_[12]=eQ,e_[13]=R):R=e_[13];let eW=(eT||ev&&ev.top>5)&&"bg-background-background-navigation/50 backdrop-blur-sm";e_[14]!==eW?(F=(0,c.e)("flex w-full h-12 md:h-16 rounded-2xl transition-all max-w-[1392px] items-center justify-between px-3 sm:px-4 md:gap-5",eW),e_[14]=eW,e_[15]=F):F=e_[15],e_[16]===Symbol.for("react.memo_cache_sentinel")?(U=(0,r.jsx)(b.N_,{href:S.J.home,className:"relative h-8 w-[120px] shrink-0",prefetch:!1,children:(0,r.jsx)(s.default,{width:120,height:32,src:w.zC.coralLogo,alt:"coralworld",priority:!0})}),e_[16]=U):U=e_[16],e_[17]!==ew?(L=ew(j.N.PassportHomeViewAllTitle),e_[17]=ew,e_[18]=L):L=e_[18],e_[19]!==L?(D=(0,r.jsx)(b.N_,{href:S.J.passport.index,prefetch:!1,children:L}),e_[19]=L,e_[20]=D):D=e_[20],e_[21]!==ew?(B=ew(j.N.MapLabel),e_[21]=ew,e_[22]=B):B=e_[22],e_[23]!==B?(H=(0,r.jsx)(b.N_,{href:S.J.map.index,prefetch:!1,children:B}
1),e_[23]=B,e_[24]=H):H=e_[24],e_[25]!==ew?(M=ew(j.N.WalletNavTitle),e_[25]=ew,e_[26]=M):M=e_[26],e_[27]!==M?(K=(0,r.jsx)(b.N_,{href:S.J.wallet.index,prefetch:!1,children:M}),e_[27]=M,e_[28]=K):K=e_[28],e_[29]===Symbol.for("react.memo_cache_sentinel")?(q={eventName:"view_rewards_page"},e_[29]=q):q=e_[29],e_[30]!==ew?(G=ew(j.N.MyRewardTitle),e_[30]=ew,e_[31]=G):G=e_[31],e_[32]!==G?(z=(0,r.jsx)(u.default,{href:S.J.downloadApp.reward,analytic:q,children:G}),e_[32]=G,e_[33]=z):z=e_[33],e_[34]!==ew?(Q=ew(j.N.AboutUsNavTitle),e_[34]=ew,e_[35]=Q):Q=e_[35],e_[36]!==Q?(W=(0,r.jsx)(b.N_,{href:S.J.aboutUs,prefetch:!1,children:Q}),e_[36]=Q,e_[37]=W):W=e_[37],e_[38]!==ew?(V=ew(j.N.B2BNavTitle),e_[38]=ew,e_[39]=V):V=e_[39],e_[40]!==V?($=(0,r.jsx)(b.N_,{href:S.J.business,className:"hidden min-[1140px]:block",prefetch:!1,children:V}),e_[40]=V,e_[41]=$):$=e_[41],e_[42]!==ew?(Y=ew(j.N.HelpCenterSectionTitle),e_[42]=ew,e_[43]=Y):Y=e_[43],e_[44]!==Y?(X=(0,r.jsx)(b.N_,{href:S.J.helpCenter,className:"hidden min-[1260px]:block",prefetch:!1,children:Y}),e_[44]=Y,e_[45]=X):X=e_[45],e_[46]!==D||e_[47]!==H||e_[48]!==K||e_[49]!==z||e_[50]!==W||e_[51]!==$||e_[52]!==X?(Z=(0,r.jsxs)("nav",{className:"typography-typescale-label-large hidden text-white md:flex md:grow md:space-x-6",children:[D,H,K,z,W,$,X]}),e_[46]=D,e_[47]=H,e_[48]=K,e_[49]=z,e_[50]=W,e_[51]=$,e_[52]=X,e_[53]=Z):Z=e_[53],e_[54]===Symbol.for("react.memo_cache_sentinel")?(ee={href:S.J.downloadApp.index},et={eventName:"download_coral"},e_[54]=ee,e_[55]=et):(ee=e_[54],et=e_[55]),e_[56]!==ew?(ea=ew(j.N.CommonDownloadAppButton),e_[56]=ew,e_[57]=ea):ea=e_[57],e_[58]!==ea?(er=(0,r.jsx)(f.default,{className:"typography-typescale-label-large hidden h-10 min-w-[162px] px-4 min-[1440px]:flex",variant:"outline",size:"sm",link:ee,analytic:et,children:ea}),e_[58]=ea,e_[59]=er):er=e_[59];let eV="th"!==eN&&"text-extended-disable/30";e_[60]!==eV?(el=(0,c.e)(eV),e_[60]=eV,e_[61]=el):el=e_[61],e_[62]===Symbol.for("react.memo_cache_sentinel")?(ei={eventName:"click_web_landing_page_language_th"},e_[62]=ei):ei=e_[62],e_[63]!==ez||e_[64]!==el?(en=(0,r.jsx)(u.default,{href:ez,prefetch:!1,locale:"th",className:el,analytic:ei,children:"à¹à¸à¸¢"}),e_[63]=ez,e_[64]=el,e_[65]=en):en=e_[65],e_[66]===Symbol.for("react.memo_cache_sentinel")?(ec=(0,r.jsx)("div",{className:"mx-2 h-4 w-[1px] bg-white"}),e_[66]=ec):ec=e_[66];let e$="en"!==eN&&"text-extended-disable/30";return e_[67]!==e$?(eo=(0,c.e)(e$),e_[67]=e$,e_[68]=eo):eo=e_[68],e_[69]===Symbol.for("react.memo_cache_sentinel")?(es={eventName:"click_web_landing_page_language_en"},e_[69]=es):es=e_[69],e_[70]!==ez||e_[71]!==eo?(ed=(0,r.jsx)(u.default,{href:ez,prefetch:!1,locale:"en",className:eo,analytic:es,children:"EN"}),e_[70]=ez,e_[71]=eo,e_[72]=ed):ed=e_[72],e_[73]!==en||e_[74]!==ed?(eh=(0,r.jsxs)("div",{className:"typography-typescale-label-large hidden items-center rounded-[20px] bg-surface-surface-container-highest/20 px-4 py-[10px] text-surface-on-surface-variant-bright md:flex",children:[en,ec,ed]}),e_[73]=en,e_[74]=ed,e_[75]=eh):eh=e_[75],e_[76]!==eb||e_[77]!==eJ||e_[78]!==eH||e_[79]!==eO||e_[80]!==eS||e_[81]!==eC||e_[82]!==ew||e_[83]!==eB||e_[84]!==eI?(em=eb?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:eU,className:(0,c.e)("flex w-[33.33px] md:w-10 aspect-square shrink-0 cursor-pointer items-center justify-center rounded-full",{"bg-surface-surface-container-high":eO,"bg-surface-surface-container-high/20":!eO}),onClick:eB,onKeyDown:eH,role:"button",tabIndex:0,"aria-label":"notifications",children:(0,r.jsx)(p.Ir,{variant:eO?"dark":"light",className:"h-6 w-6",indicator:eI})}),(0,r.jsx)(b.N_,{href:S.J.me.index,className:"hidden md:block",prefetch:!1,children:(0,r.jsx)(y.A,{"data-testid":"profile",image:w.zC.avatarBuyerFallback,title:eb,className:"h-10 rounded-[20px] bg-surface-surface-container-highest/20 pl-[6.67px] pr-4",imageClassName:"w-[26.67px] h-[26.67px]",textClassName:"typography-typescale-label-large",priority:!0})}),eO&&(0,r.jsxs)("div",{className:"fixed right-6 top-20 hidden w-full max-w-md rounded-2xl bg-surface-on-surface-variant-dim md:block",ref:eF,children:[(0,r.jsxs)("div",{className:"flex justify-between p-4",children:[(0,r.jsx)("h3",{className:"typography-typescale-headline-medium text-surface-on-surface-variant-bright",children:ew(j.N.BellNotiTitle)}),(0,r.jsx)(p.bm,{className:"h-10 w-10 cursor-pointer",onClick:eM})]}),(0,r.jsx)(x.default,{className:"w-full",style:{maxHeight:Math.min(eC-200,780)},rootScroll:!1}),eJ.length>0&&(0,r.jsx)("div",{className:"typography-typescale-label-large px-4 py-2 text-center text-surface-on-surface-variant-bright",children:(0,r.jsx)(b.N_,{href:S.J.notification.index,onClick:eK,prefetch:!1,children:ew(j.N.CommonViewDetailsButton)})})]})]}):(0,r.jsx)(b.N_,{href:S.J.signIn.from(eS),prefetch:!1,"aria-label":"Sign In",children:(0,r.jsx)(n.Button,{className:"typography-typescale-label-large hidden h-10 min-w-[162px] px-4 leading-none md:flex",children:ew(j.N.CommonLogInButton)})}),e_[76]=eb,e_[77]=eJ,e_[78]=eH,e_[79]=eO,e_[80]=eS,e_[81]=eC,e_[82]=ew,e_[83]=eB,e_[84]=eI,e_[85]=em):em=e_[85],e_[86]===Symbol.for("react.memo_cache_sentinel")?(ef=(0,r.jsx)("div",{className:"flex aspect-square w-[33.33px] shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface-surface-container-high/20 md:hidden",onClick:eq,children:(0,r.jsx)(i.A,{className:"h-6 w-6 text-white"})}),e_[86]=ef):ef=e_[86],e_[87]!==er||e_[88]!==eh||e_[89]!==em?(eu=(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[er,eh,em,ef]}),e_[87]=er,e_[88]=eh,e_[89]=em,e_[90]=eu):eu=e_[90],e_[91]!==F||e_[92]!==Z||e_[93]!==eu?(ep=(0,r.jsxs)("div",{className:F,children:[U,Z,eu]}),e_[91]=F,e_[92]=Z,e_[93]=eu,e_[94]=ep):ep=e_[94],e_[95]!==R||e_[96]!==ep?(ex=(0,r.jsx)("header",{className:R,children:ep}),e_[95]=R,e_[96]=ep,e_[97]=ex):ex=e_[97],e_[98]!==eb||e_[99]!==eN||e_[100]!==eS||e_[101]!==eL?(ey=eL&&(0,r.jsx)(E,{phone:eb,locale:eN,showMenu:eL,closeMenu:eG},"mobile-header-".concat(eS)),e_[98]=eb,e_[99]=eN,e_[100]=eS,e_[101]=eL,e_[102]=ey):ey=e_[102],e_[103]!==ex||e_[104]!==ey?(eg=(0,r.jsxs)(r.Fragment,{children:[ex,ey]}),e_[103]=ex,e_[104]=ey,e_[105]=eg):eg=e_[105],eg};function J(e){return!e}},98488:(e,t,a)=>{a.d(t,{default:()=>g});var r=a(94087),l=a(94641),i=a(24149),n=a(17151),c=a(63787),o=a(26313),s=a(7195),d=a(82680),h=a(41423),m=a(45613),f=a(24042),u=a(68389),p=a(40178),x=a(2204),y=a(72088);let g=e=>{let t,a,g,_,b,N,v,w,j,S,k,A,C,T,E,I,P,J,O,R,F,U,L,D,B,H,M,K,q,G,z,Q,W,V,$,Y,X,Z,ee,et,ea,er,el,ei,en=(0,l.c)(83),{termConditionDocLink:ec,privacyPolicyDocLink:eo,userAgreementDocLink:es}=e,ed=(0,d.c3)(),{forceDisableFooter:eh}=(0,h.useContext)(f.Q),em=eh&&"hidden";return en[0]!==em?(t=(0,o.e)("z-2 w-full bg-surface-surface-container-lowest",em),en[0]=em,en[1]=t):t=en[1],en[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsx)(y.default,{href:x.J.home,analytic:{eventName:"click_footer_landing_page"},children:(0,r.jsx)(s.default,{src:u.zC.coralLogo,alt:"coralworld",width:120,height:32,className:"h-8"})}),en[2]=a):a=en[2],en[3]!==ed?(g=ed(p.N.CommonContactUsButton),en[3]=ed,en[4]=g):g=en[4],en[5]!==g?(_=(0,r.jsx)("p",{className:"typography-typescale-title-small text-surface-surface-container",children:g}),en[5]=g,en[6]=_):_=en[6],en[7]===Symbol.for("react.memo_cache_sentinel")?(b=(0,r.jsx)("p",{className:"typography-typescale-body-large text-surface-surface-container",children:(0,r.jsx)(y.default,{href:"mailto:[email protected]",analytic:{eventName:"click_footer_contact_us"},children:"[email protected]"})}),en[7]=b):b=en[7],en[8]!==_?(N=(0,r.jsxs)("div",{className:"mt-10",children:[_,b]}),en[8]=_,en[9]=N):N=en[9],en[10]===Symbol.for("react.memo_cache_sentinel")?(v={eventName:"click_footer_socials_facebook"},en[10]=v):v=en[10],en[11]===Symbol.for("react.memo_cache_sentinel")?(w=(0,r.jsx)(y.default,{className:"cursor-pointer hover:opacity-70",href:m.ln,target:"blank",analytic:v,"aria-label":"Facebook",children:(0,r.jsx)(i.b,{width:32,height:32,className:"w-7"})}),en[11]=w):w=en[11],en[12]===Symbol.for("react.memo_cache_sentinel")?(j={eventName:"click_footer_socials_instagram"},en[12]=j):j=en[12],en[13]===Symbol.for("react.memo_cache_sentinel")?(S=(0,r.jsx)(y.default,{className:"cursor-pointer hover:opacity-70",href:m.F6,target:"blank",analytic:j,"aria-label":"Instagram",children:(0,r.jsx)(n.F,{width:32,height:32,className:"w-7"})}),en[13]=S):S=en[13],en[14]===Symbol.for("react.memo_cache_sentinel")?(k={eventName:"click_footer_socials_line"},en[14]=k):k=en[14],en[15]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsxs)("div",{className:"mt-8 flex gap-6",children:[w,S,(0,r.jsx)(y.default,{className:"cursor-pointer hover:opacity-70",href:m.bL,target:"blank",analytic:k,"aria-label":"Line",children:(0,r.jsx)(c.D,{width:32,height:32,className:"w-7"})})]}),en[15]=A):A=en[15],en[16]!==N?(C=(0,r.jsxs)("div",{className:"flex flex-col",children:[a,N,A]}),en[16]=N,en[17]=C):C=en[17],en[18]===Symbol.for("react.memo_cache_sentinel")?(T={eventName:"click_footer_all_collectibles"},en[18]=T):T=en[18],en[19]!==ed?(E=ed(p.N.CollectibleSectionTitle),en[19]=ed,en[20]=E):E=en[20],en[21]!==E?(I=(0,r.jsx)(y.default,{href:x.J.home,analytic:T,children:E}),en[21]=E,en[22]=I):I=en[22],en[23]===Symbol.for("react.memo_cache_sentinel")?(P={eventName:"click_footer_consent_terms"},en[23]=P):P=en[23],en[24]!==ed?(J=ed(p.N.TandCSectionTitle),en[24]=ed,en[25]=J):J=en[25],en[26]!==J||en[27]!==ec?(O=(0,r.jsx)(y.default,{href:ec,target:"_blank",analytic:P,children:J}),en[26]=J,en[27]=ec,en[28]=O):O=en[28],en[29]===Symbol.for("react.memo_cache_sentinel")?(R={eventName:"click_footer_for_business"},en[29]=R):R=en[29],en[30]!==ed?(F=ed(p.N.B2BNavTitle),en[30]=ed,en[31]=F):F=en[31],en[32]!==F?(U=(0,r.jsx)(y.default,{href:x.J.business,analytic:R,children:F}),en[32]=F,en[33]=U):U=en[33],en[34]===Symbol.for("react.memo_cache_sentinel")?(L={eventName:"click_footer_all_collections"}
1,en[34]=L):L=en[34],en[35]!==ed?(D=ed(p.N.CollectionSectionTitle),en[35]=ed,en[36]=D):D=en[36],en[37]!==D?(B=(0,r.jsx)(y.default,{href:x.J.home,analytic:L,children:D}),en[37]=D,en[38]=B):B=en[38],en[39]===Symbol.for("react.memo_cache_sentinel")?(H={eventName:"click_footer_privacy_policy"},en[39]=H):H=en[39],en[40]!==ed?(M=ed(p.N.PrivacyPolicySectionTitle),en[40]=ed,en[41]=M):M=en[41],en[42]!==eo||en[43]!==M?(K=(0,r.jsx)(y.default,{href:eo,target:"_blank",analytic:H,children:M}),en[42]=eo,en[43]=M,en[44]=K):K=en[44],en[45]===Symbol.for("react.memo_cache_sentinel")?(q={eventName:"click_footer_for_privacy_notice_for_decommission"},en[45]=q):q=en[45],en[46]!==ed?(G=ed(p.N.PrivacyNoticeDecommissionSectionTitle),en[46]=ed,en[47]=G):G=en[47],en[48]!==G?(z=(0,r.jsx)(y.default,{href:x.J.privacyNoticeForDecommission,analytic:q,target:"_blank",children:G}),en[48]=G,en[49]=z):z=en[49],en[50]===Symbol.for("react.memo_cache_sentinel")?(Q={eventName:"click_footer_support"},en[50]=Q):Q=en[50],en[51]!==ed?(W=ed(p.N.HelpCenterSectionTitle),en[51]=ed,en[52]=W):W=en[52],en[53]!==W?(V=(0,r.jsx)(y.default,{href:x.J.helpCenter,analytic:Q,children:W}),en[53]=W,en[54]=V):V=en[54],en[55]===Symbol.for("react.memo_cache_sentinel")?($={eventName:"click_footer_about_us"},en[55]=$):$=en[55],en[56]!==ed?(Y=ed(p.N.AboutUsSectionTitle),en[56]=ed,en[57]=Y):Y=en[57],en[58]!==Y?(X=(0,r.jsx)(y.default,{href:x.J.aboutUs,analytic:$,children:Y}),en[58]=Y,en[59]=X):X=en[59],en[60]===Symbol.for("react.memo_cache_sentinel")?(Z={eventName:"click_footer_user_agreement"},en[60]=Z):Z=en[60],en[61]!==ed?(ee=ed(p.N.EndUserAgreementSectionTitle),en[61]=ed,en[62]=ee):ee=en[62],en[63]!==ee||en[64]!==es?(et=(0,r.jsx)(y.default,{href:es,target:"_blank",analytic:Z,children:ee}),en[63]=ee,en[64]=es,en[65]=et):et=en[65],en[66]!==I||en[67]!==O||en[68]!==U||en[69]!==B||en[70]!==K||en[71]!==z||en[72]!==V||en[73]!==X||en[74]!==et?(ea=(0,r.jsxs)("div",{className:"typography-typescale-label-large mt-6 grid grid-cols-1 gap-6 md:mt-18 md:grid-cols-3 md:gap-x-20 md:px-6",children:[I,O,U,B,K,z,V,X,et]}),en[66]=I,en[67]=O,en[68]=U,en[69]=B,en[70]=K,en[71]=z,en[72]=V,en[73]=X,en[74]=et,en[75]=ea):ea=en[75],en[76]===Symbol.for("react.memo_cache_sentinel")?(er=(0,r.jsx)("div",{className:"mt-16 flex justify-center md:mt-0",children:(0,r.jsxs)(y.default,{href:m.U9,target:"_blank",analytic:{eventName:"click_footer_KX"},children:[(0,r.jsx)(s.default,{src:u.zC.kxLogo,width:120,height:32,alt:"kx-logo",className:"mx-auto w-20"}),(0,r.jsx)("p",{children:"www.kx.tech"})]})}),en[76]=er):er=en[76],en[77]!==C||en[78]!==ea?(el=(0,r.jsxs)("footer",{id:"footer",className:"container z-2 p-10 text-surface-on-surface-variant-bright md:flex md:justify-between md:px-6 md:pb-24",children:[C,ea,er]}),en[77]=C,en[78]=ea,en[79]=el):el=en[79],en[80]!==t||en[81]!==el?(ei=(0,r.jsx)("div",{className:t,children:el}),en[80]=t,en[81]=el,en[82]=ei):ei=en[82],ei}}}]);
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.