PageSourceSearch

https://www.truck2hand.com/_next/static/chunks/7491-d06e5da90092b6cd.js

js truck2hand.com collected 2026-10-08 09:56:58 UTC 39,905 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7491,1704,4026,9303],{94026:function(e,t,s){s.r(t),s.d(t,{Image:function(){return o}});var i=s(75271),n=s(21373),r=function(){return(r=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++)for(var n in t=arguments[s])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function a(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}var l=(0,i.forwardRef)(function(e,t){var s=a(e,[]);return i.createElement(n.xu,r({ref:t},s))}),o=(0,i.forwardRef)(function(e,t){var s=e.src,n=e.src2x,o=e.srcSet,c=e.fallbackSrc,u=e.fallbackElement,p=e.alt,x=e.sx,d=e.loading,m=a(e,["src","src2x","srcSet","fallbackSrc","fallbackElement","alt","sx","loading"]),g=(0,i.useState)(!1),h=g[0],f=g[1];return!0===h&&u?i.createElement(l,r({ref:t,sx:x},m),u):i.createElement(l,r({as:"img",ref:t,src:!1===h?s:c,srcSet:!1===h?n?"".concat(s," 1x, ").concat(n," 2x"):o:void 0,alt:p,loading:void 0===d?"lazy":d,onError:function(){return f(!0)},sx:r({display:"block",maxWidth:"100%",height:"auto"},x)},m))})},68715:function(e,t,s){s.d(t,{$:function(){return c}});var i=s(75271),n=s(21373),r=function(){return(r=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++)for(var n in t=arguments[s])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function a(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}var l=(0,i.forwardRef)(function(e,t){var s=a(e,[]);return i.createElement(n.xu,r({ref:t},s))}),o=function(e){var t,s=0;for(t=0;t<e.length;t+=1)s=e.charCodeAt(t)+((s<<5)-s);var i="#";for(t=0;t<3;t+=1)i+="00".concat((s>>8*t&255).toString(16)).substr(-2);return i},c=(0,i.forwardRef)(function(e,t){var s,n,c,u=e.name,p=e.size,x=void 0===p?40:p,d=e.sx,m=a(e,["name","size","sx"]);return i.createElement(l,r({sx:r({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"999px",backgroundColor:u?o(u):"#eee",color:u?(299*parseInt((c=o(u).replace("#","")).substr(0,2),16)+587*parseInt(c.substr(2,2),16)+114*parseInt(c.substr(4,2),16))/1e3>155?"inherit":"#fff":"inherit",width:"".concat(x,"px"),height:"".concat(x,"px"),fontSize:"".concat((x/2.4).toFixed(2),"px")},d),ref:t},m),(s="",n="",u&&(s=u[0]),u&&(null==u?void 0:u.includes(" "))&&(n=null==u?void 0:u.split(" ")[1][0]),"".concat(s||"?").concat(n||"").toUpperCase()))})},41704:function(e,t,s){s.r(t),s.d(t,{MessengerContext:function(){return m},default:function(){return g}});var i=s(52676),n=s(75271),r=s(75922),a=s.n(r),l=s(3457),o=s(86122),c=s(18154),u=s(68588);let p=a()(()=>s.e(5512).then(s.bind(s,65512)),{loadableGenerated:{webpack:()=>[65512]},ssr:!1}),x=a()(()=>s.e(9102).then(s.bind(s,19102)),{loadableGenerated:{webpack:()=>[19102]},ssr:!1}),d="wDpPa4narQ,XJpAXd3NbN,WvbBxLPXr2,YJbG82dOp1,QYlyDMJQro,DRb81LNp56".split(",").filter(e=>!!e),m=(0,n.createContext)({allMessageGroups:[],setAllMessageGroups:()=>null,messageGroups:[],setMessageGroups:()=>null,updateMessageGroupData:()=>null,isLoadingMessageGroups:!0,updateLoadingGroupFlag:()=>null,unreadMessageCount:0,setUnreadMessageCount:()=>null,currentUser:null,assignMessengerUser:()=>void 0,isNotificationOpened:!1,closeMessageNotification:()=>null,openMessageNotification:()=>null,cachedUsers:[],setCachedUsers:()=>null,allTotalGroup:1,setAllTotalGroup:()=>null,currentGroupPage:1,setCurrentGroupPage:()=>null,loadMoreGroup:()=>null,searchValue:"",setSearchValue:()=>null,totalGroupPage:1,setTotalGroupPage:()=>null,totalMessageGroup:0,setTotalMessageGroup:()=>null,isPreparingGroup:!1,setIsPreparingGroup:()=>null,findGroupFromId:()=>-1,getGroupIndex:()=>-1,quickChatEnabled:!1});function g(e){let{children:t}=e,{isFirebaseAuthChecked:s}=(0,n.useContext)(u.V),{device:r,authUser:a}
1=(0,n.useContext)(c.I),g=(0,l.useRouter)(),[h,f]=(0,n.useState)([]),[b,v]=(0,n.useState)([]),[C,j]=(0,n.useState)(!!a),[k,y]=(0,n.useState)(0),[S,w]=(0,n.useState)(null),E=(0,n.useRef)(null),[Z,I]=(0,n.useState)(!1),[N,z]=(0,n.useState)([]),[A,T]=(0,n.useState)(1),[M,L]=(0,n.useState)(1),[_,R]=(0,n.useState)(""),[H,F]=(0,n.useState)(1),[O,P]=(0,n.useState)(0),[q,D]=(0,n.useState)(!1),V=(0,n.useMemo)(()=>!!a?.userHashId&&d.includes(a.userHashId)&&s&&a&&r?.platform==="desktop"&&!/^(\/chat\/*)/gi.test(g.pathname)&&"/listing/add"!==g.pathname&&b.length>0,[a,r?.platform,s,b.length,g.pathname]),U=(0,n.useCallback)(()=>{I(!1)},[]),G=(0,n.useCallback)(()=>{I(!0)},[]),B=(0,n.useCallback)(async e=>{e&&e?.hashId&&(e.profileImageUrl=a?.profileImage?.fullUrl||""),w(e),E.current=e},[a?.profileImage?.fullUrl]),$=(0,n.useCallback)(e=>{v(e)},[]),W=(0,n.useCallback)(e=>{j(e)},[]),Y=(0,n.useCallback)(()=>{M<H&&L(H+1)},[M,H]),Q=(0,n.useCallback)(e=>{let t=-1;if(h.length>0){let s=h.findIndex(t=>t.id===e);t=s>-1?Math.ceil(s/o.t2):-1}return t+1},[h]),K=(0,n.useCallback)(e=>h.findIndex(t=>t.id===e),[h]),J=(0,n.useMemo)(()=>({messageGroups:b,setMessageGroups:v,isLoadingMessageGroups:C,updateLoadingGroupFlag:W,unreadMessageCount:k,setUnreadMessageCount:y,currentUser:S,assignMessengerUser:B,isNotificationOpened:Z,closeMessageNotification:U,openMessageNotification:G,updateMessageGroupData:$,cachedUsers:N,setCachedUsers:z,allTotalGroup:A,setAllTotalGroup:T,currentGroupPage:M,setCurrentGroupPage:L,loadMoreGroup:Y,searchValue:_,setSearchValue:R,totalGroupPage:H,setTotalGroupPage:F,totalMessageGroup:O,setTotalMessageGroup:P,isPreparingGroup:q,setIsPreparingGroup:D,allMessageGroups:h,setAllMessageGroups:f,findGroupFromId:Q,getGroupIndex:K,quickChatEnabled:V}),[h,A,B,N,U,M,S,Q,K,C,Z,q,Y,b,G,V,_,H,O,k,W,$]);return(0,i.jsxs)(m.Provider,{value:J,children:[(0,i.jsx)(x,{}),V&&(0,i.jsx)(p,{}),t]})}},54271:function(e,t,s){var i=s(52676);s(75271);var n=s(61807);t.Z=e=>(0,i.jsxs)(n.Z,{viewBox:"0 0 24 24",...e,children:[(0,i.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 2.8 1.2 5.6 3.3 7.4h0L2 22h9.4.1.1.5c5.5 0 10-4.5 10-10C22 6.5 17.5 2 12 2zm0 18.5h-.5-5.1l1.3-1-1.3-1.2c-1.8-1.6-2.8-3.9-2.8-6.3 0-4.7 3.8-8.5 8.5-8.5s8.5 3.8 8.5 8.5c-.1 4.7-3.9 8.5-8.6 8.5z"}),(0,i.jsx)("circle",{cx:"7.6",cy:"12",r:"1.2"}),(0,i.jsx)("circle",{cx:"16.4",cy:"12",r:"1.2"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"1.2"})]})},60518:function(e,t,s){var i=s(52676);s(75271);var n=s(61807);t.Z=e=>(0,i.jsx)(n.Z,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.29 16.29L5.7 12.7c-.39-.39-.39-1.02 0-1.41s1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0z"})})},52040:function(e,t,s){var i=s(52676);s(75271);var n=s(61807);t.Z=e=>(0,i.jsx)(n.Z,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41L10.59 12 7.7 9.11c-.39-.39-.39-1.02 0-1.41s1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41z"})})},58057:function(e,t,s){var i=s(52676);s(75271);var n=s(61807);t.Z=e=>(0,i.jsx)(n.Z,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M12 11.375c-1.375 0-2.5-.437-3.375-1.312s-1.312-2-1.312-3.375.438-2.5 1.313
1-3.375S10.625 2 12 2s2.5.438 3.375 1.313 1.313 2 1.313 3.375-.437 2.5-1.312 3.375-2 1.313-3.375 1.313zM2 21.406v-2.937c0-.792.198-1.469.594-2.031a3.81 3.81 0 0 1 1.531-1.281c1.396-.625 2.734-1.094 4.016-1.406s2.568-.469 3.859-.469a15.55 15.55 0 0 1 3.844.484c1.271.323 2.604.787 4 1.391.646.292 1.167.719 1.562 1.281s.594 1.24.594 2.031v2.937H2zm1.875-1.875h16.25v-1.062c0-.333-.099-.651-.297-.953a1.88 1.88 0 0 0-.734-.672c-1.333-.646-2.552-1.089-3.656-1.328s-2.25-.359-3.437-.359-2.344.12-3.469.359-2.344.682-3.656 1.328c-.292.146-.531.37-.719.672a1.78 1.78 0 0 0-.281.953v1.062zM12 9.5c.813 0 1.484-.266 2.016-.797s.797-1.203.797-2.016-.266-1.484-.797-2.016-1.203-.797-2.016-.797-1.484.266-2.016.797-.797 1.203-.797 2.016.266 1.484.797 2.016S11.188 9.5 12 9.5z"})})},13448:function(e,t,s){var i=s(52676);s(75271);var n=s(61807);t.Z=e=>(0,i.jsx)(n.Z,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M13.26 3A9.01 9.01 0 0 0 4 12H2.21c-.45 0-.67.54-.35.85l2.79 2.8c.2.2.51.2.71 0l2.79-2.8a.5.5 0 0 0-.36-.85H6a7 7 0 0 1 7.1-7c3.72.05 6.85 3.18 6.9 6.9.05 3.91-3.1 7.1-7 7.1-1.61 0-3.1-.55-4.28-1.48-.4-.31-.96-.28-1.32.08-.42.42-.39 1.13.08 1.49C9 20.29 10.91 21 13 21a9.01 9.01 0 0 0 9-9.26c-.13-4.69-4.05-8.61-8.74-8.74zm-.51 5c-.41 0-.75.34-.75.75v3.68a1.01 1.01 0 0 0 .49.86l3.12 1.85a.76.76 0 0 0 1.03-.26.76.76 0 0 0-.26-1.03l-2.88-1.71v-3.4c0-.4-.34-.74-.75-.74z"})})},67862:function(e,t,s){s.d(t,{Z:function(){return b}});var i=s(52676),n=s(75271),r=s(90879),a=s(36550),l=s(68940),o=s(94528),c=s(60518),u=s(52040),p=s(61807),x=e=>(0,i.jsx)(p.Z,{viewBox:"0 -960 960 960",...e,children:(0,i.jsx)("path",{d:"M480-280q17 0 28.5-11.5T520-320v-160q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480v160q0 17 11.5 28.5T480-280Zm0-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 516q-7 0-13-1t-12-3q-135-45-215-166.5T160-516v-189q0-25 14.5-45t37.5-29l240-90q14-5 28-5t28 5l240 90q23 9 37.5 29t14.5 45v189q0 140-80 261.5T505-88q-6 2-12 3t-13 1Zm0-80q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"})}),d=e=>(0,i.jsx)(p.Z,{viewBox:"0 -960 960 960",...e,children:(0,i.jsx)("path",{d:"m438-452-56-56q-12-12-28-12t-28 12q-12 12-12 28.5t12 28.5l84 85q12 12 28 12t28-12l170-170q12-12 12-28.5T636-593q-12-12-28.5-12T579-593L438-452Zm42 368q-7 0-13-1t-12-3q-135-45-215-166.5T160-516v-189q0-25 14.5-45t37.5-29l240-90q14-5 28-5t28 5l240 90q23 9 37.5 29t14.5 45v189q0 140-80 261.5T505-88q-6 2-12 3t-13 1Zm0-80q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"})});let m=(0,n.memo)(({icon:e,message:t,testId:s,sx:n,labelSx:a})=>(0,i.jsxs)(r.x,{sx:{display:"grid",gridTemplateColumns:"18px 1fr",alignItems:"center",...n},"data-testid":s,children:[e,(0,i.jsx)(o.Z,{as:"div",sx:{variant:"text.sm",pl:"6px",...a},children:t})]}));function g({user:e}){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{message:e.isVerified?"ยืนยันตัวตนแล้ว":"ไม่ได้ยืนยันตัวตน",icon:e.isVerified?(0,i.jsx)(d,{size:18,sx:{fill:"primary.500"}}):(0,i.jsx)(x,{size:18,sx:{fill:"primary.500"}}),testId:"profile-verified-label",labelSx:{fontWeight:700}}),"QUICK_POST"===e.sellerTypeDisplay&&(0,i.jsx)(m,{message:"เบอร์โทรศัพท์ที่ผูกกับบัญชีพร้อมเพย์",icon:(0,i.jsx)(c.Z,{size:18,sx:{fill:"success.500",transform:"translateY(1px)"}}),testId:"profile-promptpay-verified-label",sx:{mt:"8px"}}),"UNVERIFIED_SELLER"===e.sellerTypeDisplay&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{message:"รูปถ่ายบัตรประจำตัวประชาชน",icon:(0,i.jsx)(u.Z,{size:18,sx:{fill:"error.500",transform:"translateY(1px)"}}),testId:"profile-id-verified-label",sx:{mt:"8px"}}),(0,i.jsx)(m,{message:"รูปถ่ายคู่บัตรประจำตัวประชาชน",icon:(0,i.jsx)(u.Z,{size:18,sx:{fill:"error.500",transform:"translateY(1px)"}}),testId:"profile-id-selfie-verified-label",sx:{mt:"8px"}}),(0,i.jsx)(m,{message:"รูปถ่ายหน้าบัญชีธนาคาร",icon:(0,i.jsx)(u.Z,{size:18,sx:{fill:"error.500",transform:"translateY(1px)"}}),testId:"profile-bank-account-verified-label",sx:{mt:"8px"}})]}),"SELLER"===e.sellerTypeDisplay&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{message:"รูปถ่ายบัตรประจำตัวประชาชน",icon:(0,i.jsx)(c.Z,{size:18,sx:{fill:"success.500",transform:"translateY(1px)"}}),testId:"profile-id-verified-label",sx:{mt:"8px"}}),(0,i.jsx)(m,{message:"รูปถ่ายคู่บัตรประจำตัวประชาชน",icon:(0,i.jsx)(c.Z,{size:18,sx:{fill:"success.500",transform:"translateY(1px)"}}),testId:"profile-id-selfie-verified-label",sx:{mt:"8px"}}),(0,i.jsx)(m,{message:"รูปถ่ายหน้าบัญชีธนาคาร",icon:(0,i.jsx)(c.Z,{size:18,sx:{fill:"success.500",transform:"translateY(1px)"}}),testId:"profile-bank-account-verified-label",sx:{mt:"8px"}})]}),"TENT"===e.sellerTypeDisplay&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{message:"รูปถ่ายใบอนุญาตค้าของเก่า",icon:(0,i.jsx)(c.Z,{size:18,sx:{fill:"success.500",transform:"translateY(1px)"}}),testId:"profile-scrap-dealer-license-label",sx:{mt:"8px"}}),(0,i.jsx)(m,{message:"รูปถ่ายหน้าเต็นท์",icon:(0,i.jsx)(c.Z,{size:18,sx:{fill:"success.500",transform:"translateY(1px)"}}),testId:"profile-tent-image-label",sx:{mt:"8px"}})]})]})}g.displayName="VerificationDetail";let h={SELLER:{iconUrl:"/static/v3/images/icon-badge-seller-verify.svg",backgroundColor:"#dbf2ee",color:"#107d60",text:"ผู้ขายยืนยันตัวตน"},QUICK_POST:{iconUrl:"/static/v3/images/icon-badge-quick-post.svg",backgroundColor:"#ffefdd",color:"#ff7740",text:"ผู้ขายใหม่"},TENT:{iconUrl:"/static/v3/images/icon-badge-tent.svg",backgroundColor:"#efedff",color:"#503ecb",text:"เต็นท์รถ"},UNVERIFIED_SELLER:{iconUrl:"",backgroundColor:"",color:"",text:""},NONE:{iconUrl:"",backgroundColor:"",color:"",text:""}}
1,f=e=>{let{user:t,disabledTooltip:s=!1,sx:n,sellerTypeOverride:o}=e,c=o??t?.sellerTypeDisplay??"NONE";return h[c]&&h[c].iconUrl?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.x,{className:!1===s?"badge-seller-type":void 0,sx:{height:"24px",borderRadius:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:"12px",backgroundColor:h[c].backgroundColor,color:h[c].color,gap:"4px",px:"10px",userSelect:"none",...n},children:[(0,i.jsx)("img",{className:"shop-card-badge",src:h[c].iconUrl,width:16,height:16,alt:`user-${c}-badge`,"data-testid":"profile-seller-type-icon"}),h[c].text]}),t&&!1===s&&(0,i.jsx)(l.Z,{children:(0,i.jsx)(a.u,{anchorSelect:".badge-seller-type",placement:"bottom",children:(0,i.jsx)(g,{user:t})})})]}):null};f.displayName="SellerTypeBadge";var b=f},9811:function(e,t,s){s.d(t,{Z:function(){return o}});var i=s(52676),n=s(75271),r=s(90879),a=s(79809),l=s(37095);function o(e){let{btnClassName:t,layoutStyle:s="normal",showDetail:o=!1,showBtnCreateItem:c=!1,sx:u,isSellerApplicationValid:p=!1,onClick:x}=e,{isDataLoading:d,applicationType:m,formStatus:g,sellerApplicationType:h,dataFirstItemApplication:f,sellerApplicationErrorList:b}=(0,n.useContext)(l.SellerApplicationContext),v="";"quick-post"===h&&(v="ผู้ขายใหม่"),"seller"===h&&(v="ผู้ขายยืนยันตัวตน"),"tent"===h&&(v="เต็นท์รถ");let C=p?`vector-${h}-approve`:`vector-${h}-${g}`,j=!f?.isValidItemApplication&&b.length<=0,k=null;return"rejected"===g&&(k=j?"แก้ไขประกาศ":"แก้ไขใบสมัคร"),c&&"registration"===m&&null===f&&(k="สร้างประกาศ"),!1===d&&h&&g&&"normal"!==g?(0,i.jsxs)(r.x,{className:`${g} ${p?"approved":""}`,sx:{p:"16px",border:"1px solid",borderRadius:"8px",boxShadow:"light",display:"flex",gap:"16px",alignItems:!1===o?"center":"flex-start",img:{flex:"none",mb:"auto"},"&.in-review":{borderColor:"yellow.500",".status":{bg:"yellow.100",color:"yellow.900",".circle":{bg:"yellow.500"}}},"&.rejected":{borderColor:"error.500",".status":{bg:"error.100",color:"error.500",".circle":{bg:"error.500"}}},"&.approved":{borderColor:"success.500",".status":{bg:"success.100",color:"success.500",".circle":{bg:"success.500"}}},...u},children:[(0,i.jsx)("img",{className:"block",src:`/static/v3/images/${C}-1x.png`,srcSet:`/static/v3/images/${C}-1x.png 1x, /static/v3/images/${C}-2x.png 2x`,alt:C,width:48,height:48}),(0,i.jsxs)(r.x,{sx:{flex:1,".label":{fontSize:"14px",fontWeight:700},".detail":{mt:"8px",fontSize:"12px",color:"neutral.500"},".status":{px:"8px",py:"4px",width:"max-content",fontSize:"14px",borderRadius:"16px",display:"flex",alignItems:"center",gap:"8px",".circle":{width:"6px",height:"6px",borderRadius:"6px"}}},children:[(0,i.jsxs)(r.x,{sx:{flex:1,display:"flex",gap:["8px",null,null,null,"16px"],alignItems:"normal"===s&&!1===o||!1===o?["flex-start",null,null,null,"center"]:"flex-start",flexDirection:"compact"===s?"column":["column",null,null,null,"row"]},children:[(0,i.jsxs)(r.x,{sx:{flex:1,span:{display:"inline-block"}},children:[(0,i.jsxs)("div",{className:"label",children:["in-review"===g&&`ใบสมัคร “${v}” `,"in-review"===g&&(0,i.jsx)("span",{children:p?"อนุมัติแล้ว":"กำลังรออนุมัติ"}),"rejected"===g&&(0,i.jsx)(i.Fragment,{children:j?(0,i.jsx)(i.Fragment,{children:"คุณเป็นผู้ขายแล้ว! แต่มีประกาศรอแก้ไข"}):(0,i.jsxs)(i.Fragment,{children:[`ใบสมัคร “${v}” `,(0,i.jsx)("span",{children:"ไม่อนุมัติ"})]})})]}),!0===o&&(0,i.jsxs)("div",{className:"detail",children:["in-review"===g&&`ใบสมัคร “${v}” ของคุณกำลังอยู่ในขั้นตอนการตรวจสอบจะได้รับการอนุมัติภายใน 24 ชั่วโมง ในวันดำเนินการ`,"rejected"===g&&(0,i.jsx)(i.Fragment,{children:!f?.isValidItemApplication&&b.length<=0?(0,i.jsx)(i.Fragment,{children:"ประกาศของคุณต้องแก้ไขอีกเล็กน้อย ให้พร้อมลงขาย และใช้งานฟีเจอร์สำหรับผู้ขายได้เต็มที่"}):(0,i.jsx)(i.Fragment,{children:"ใบสมัครของคุณต้องการข้อมูลเพิ่มเติม กรุณาตรวจสอบ แก้ไข และดำเนินการส่งใบสมัครอีกครั้ง"})})]})]}),"in-review"===g&&(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"status",children:[(0,i.jsx)("div",{className:"circle"}),p?"สถานะ: อนุมัติ":"สถานะ: รออนุมัติ"]})}),"rejected"===g&&b.length>0&&(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"status",children:[(0,i.jsx)("div",{className:"circle"}),"สถานะ: รอการแก้ไข"]})})]}
1),k&&(0,i.jsx)(a.z,{href:"/seller-application/",className:t,size:"small",variant:"outlined",sx:{mt:"8px",width:"max-content"},"data-testid":`${s}-button-go-to-seller-application-page`,onClick:()=>{x?.()},children:k})]})]}):null}o.displayName="InfoStatusSellerApplicationForm"},47197:function(e,t,s){s.d(t,{Z:function(){return F}});var i=s(52676),n=s(75271),r=s(90879),a=s(79809),l=s(94026),o=s(37368),c=s.n(o),u=s(3457),p=s(18154),x=s(41704),d=s(786),m=s(54271),g=s(61807),h=e=>(0,i.jsx)(g.Z,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M4 19v-1.5h2.1V9.85c0-1.4.413-2.646 1.238-3.737A5.33 5.33 0 0 1 10.6 4.05v-.725c0-.383.138-.7.412-.95S11.617 2 12 2s.713.125.988.375.412.567.412.95v.725c1.35.283 2.442.971 3.275 2.063s1.25 2.337 1.25 3.738v7.65H20V19H4zm8 3c-.533 0-1-.196-1.4-.587S10 20.55 10 20h4c0 .55-.196 1.021-.588 1.413S12.55 22 12 22zm-4.4-4.5h8.825V9.85A4.33 4.33 0 0 0 15.15 6.7c-.85-.867-1.892-1.3-3.125-1.3s-2.279.433-3.138 1.3A4.31 4.31 0 0 0 7.6 9.85v7.65z"})}),f=s(58057),b=e=>(0,i.jsx)(g.Z,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M9.357 13.143l.857-2.738-2.262-1.762h2.762l.905-2.833.881 2.833h2.786l-2.262 1.762.833 2.738-2.238-1.69-2.262 1.69zM6 22v-7.238c-.714-.746-1.226-1.564-1.536-2.452A8.13 8.13 0 0 1 4 9.619c0-2.159.73-3.968 2.19-5.429S9.46 2 11.619 2s3.968.73 5.429 2.19 2.191 3.27 2.191 5.429c0 .905-.155 1.802-.464 2.69s-.821 1.706-1.536 2.452V22l-5.619-1.881L6 22zm5.619-6.19c1.73 0 3.194-.599 4.393-1.798s1.798-2.663 1.798-4.393-.599-3.194-1.798-4.393-2.663-1.798-4.393-1.798-3.194.599-4.393 1.798-1.798 2.663-1.798 4.393.599 3.194 1.798 4.393 2.663 1.798 4.393 1.798zM7.429 20l4.19-1.309L15.81 20v-4.071a6.46 6.46 0 0 1-2.048 1 7.86 7.86 0 0 1-2.143.309 7.86 7.86 0 0 1-2.143-.309c-.73-.206-1.413-.54-2.048-1V20z"})}),v=s(13448),C=s(73683),j=e=>(0,i.jsxs)(g.Z,{viewBox:"0 0 24 24",fill:"none",strokeWidth:"1.5",strokeLinejoin:"round",...e,children:[(0,i.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),(0,i.jsx)("path",{d:"M8.5 7a3.5 3.5 0 1 0 7 0",strokeLinecap:"round"})]}),k=s(9811),y=s(34859),S=s(76554),w=s(13149),E=s(82136),Z=e=>{let{iconComponent:t,trackingClassName:s,title:a,area:l,endAdornment:o=null,isCurrent:c,as:u="li",className:p,dataProps:x,onClick:d}=e,m=(0,n.useCallback)(e=>{"function"==typeof d&&d(e)},[d]);return(0,i.jsx)(r.x,{as:u,children:(0,i.jsxs)(r.x,{as:"button",className:`${p} ${(0,E.Z)("MenuItem",s,l)} ${c?"is-current":""}`,onClick:m,sx:{px:[0,null,"16px","16px"],width:"100%",height:"48px",display:"flex",alignItems:"center",cursor:"pointer",color:"neutral.800","&:hover,&.is-current":{color:"info.500",backgroundColor:"neutral.100"}},...x,children:[t&&(0,i.jsx)(r.x,{sx:{width:"24px",display:"flex",alignItems:"center",flexShrink:0},children:t}),(0,i.jsx)(r.x,{sx:{pl:"16px",flex:1,textAlign:"left",fontSize:"16px"},children:a}),o&&(0,i.jsx)(r.x,{sx:{flexShrink:0},children:o})]})})},I=e=>{let{number:t}=e;return 0!==t&&t?(0,i.jsx)(r.x,{sx:{px:"6px",minWidth:"20px",height:"20px",borderRadius:"16px",backgroundColor:"error.500",color:"white",display:"flex",alignItems:"center",justifyContent:"center",variant:"text.xs",fontWeight:700},children:t>99?"99+":t}):null},N=s(94528),z=e=>(0,i.jsx)(g.Z,{viewBox:"0 0 16 16",...e,children:(0,i.jsx)("path",{d:"M8.66601 9.33301H5.99935C5.82254 9.33301 5.65297 9.40324 5.52794 9.52827C5.40292 9.65329 5.33268 9.82286 5.33268 9.99967C5.33268 10.1765 5.40292 10.3461 5.52794 10.4711C5.65297 10.5961 5.82254 10.6663 5.99935 10.6663H8.66601C8.84282 10.6663 9.01239 10.5961 9.13742 10.4711C9.26244 10.3461 9.33268 10.1765 9.33268 9.99967C9.33268 9.82286 9.26244 9.65329 9.13742 9.52827C9.01239 9.40324 8.84282 9.33301 8.66601 9.33301ZM11.3327 2.66634H10.546C10.4085 2.27731 10.154 1.94034 9.81739 1.70163C9.48081 1.46293 9.07864 1.33417 8.66601 1.33301H7.33268C6.92005 1.33417 6.51788 1.46293 6.1813 1.70163C5.84473 1.94034 5.59022 2.27731 5.45268 2.66634H4.66602C4.13558 2.66634 3.62687 2.87705 3.2518 3.25213C2.87673 3.6272 2.66602 4.13591 2.66602 4.66634V12.6663C2.66602 13.1968 2.87673 13.7055 3.2518 14.0806C3.62687 14.4556 4.13558 14.6663 4.66602 14.6663H11.3327C11.8631 14.6663 12.3718 14.4556 12.7469 14.0806C13.122 13.7055 13.3327 13.1968 
113.3327 12.6663V4.66634C13.3327 4.13591 13.122 3.6272 12.7469 3.25213C12.3718 2.87705 11.8631 2.66634 11.3327 2.66634ZM6.66601 3.33301C6.66601 3.1562 6.73625 2.98663 6.86128 2.8616C6.9863 2.73658 7.15587 2.66634 7.33268 2.66634H8.66601C8.84282 2.66634 9.01239 2.73658 9.13742 2.8616C9.26244 2.98663 9.33268 3.1562 9.33268 3.33301V3.99967H6.66601V3.33301ZM11.9993 12.6663C11.9993 12.8432 11.9291 13.0127 11.8041 13.1377C11.6791 13.2628 11.5095 13.333 11.3327 13.333H4.66602C4.4892 13.333 4.31964 13.2628 4.19461 13.1377C4.06959 13.0127 3.99935 12.8432 3.99935 12.6663V4.66634C3.99935 4.48953 4.06959 4.31996 4.19461 4.19494C4.31964 4.06991 4.4892 3.99967 4.66602 3.99967H5.33268V4.66634C5.33268 4.84315 5.40292 5.01272 5.52794 5.13775C5.65297 5.26277 5.82254 5.33301 5.99935 5.33301H9.99935C10.1762 5.33301 10.3457 5.26277 10.4708 5.13775C10.5958 5.01272 10.666 4.84315 10.666 4.66634V3.99967H11.3327C11.5095 3.99967 11.6791 4.06991 11.8041 4.19494C11.9291 4.31996 11.9993 4.48953 11.9993 4.66634V12.6663ZM9.99935 6.66634H5.99935C5.82254 6.66634 5.65297 6.73658 5.52794 6.8616C5.40292 6.98663 5.33268 7.1562 5.33268 7.33301C5.33268 7.50982 5.40292 7.67939 5.52794 7.80441C5.65297 7.92944 5.82254 7.99967 5.99935 7.99967H9.99935C10.1762 7.99967 10.3457 7.92944 10.4708 7.80441C10.5958 7.67939 10.666 7.50982 10.666 7.33301C10.666 7.1562 10.5958 6.98663 10.4708 6.8616C10.3457 6.73658 10.1762 6.66634 9.99935 6.66634Z"})}),A=s(67862),T=s(85345),M=s(82486),L=s(15763),_=e=>{let{itemClickHandler:t}=e,{authUser:s}=(0,n.useContext)(p.I);if(!s)return null;let o=(0,T.Z)(s.userRoleStateWorkflow||null);return(0,i.jsx)(c(),{href:(0,L.Z)(s.userHashId,s.displayName),passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,i.jsxs)(r.x,{as:"a",sx:{display:"flex",padding:"8px",borderRadius:"8px",background:o.bg,position:"relative",overflow:"hidden"},onClick:t,children:[o.img1x&&o.img2x&&(0,i.jsx)(l.Image,{src:o.img1x,src2x:o.img2x,alt:"Go to Profile",width:94,height:94,sx:{width:"94px",height:"94px",position:"absolute",top:0,right:"-8px"}}),(0,i.jsx)(r.x,{sx:{flexShrink:0},children:(0,i.jsx)(M.Z,{userData:s,isDisplayBadge:!0,size:56})}),(0,i.jsxs)(r.x,{sx:{pl:"16px",flex:1},children:[(0,i.jsx)(r.x,{sx:{display:"flex",flexFlow:"row nowrap",alignItems:"center",mb:"4px"},children:(0,i.jsx)(N.Z,{numberOfLines:1,sx:{fontSize:"18px",color:"neutral.800",fontWeight:700,flex:"1 0 auto",maxWidth:"calc(100% - 16px)",pr:"4px"},"data-testid":"user-menu-display-name-label",children:s.displayName})}),["QUICK_POST","SELLER","TENT"].includes(s.sellerTypeDisplay)&&(0,i.jsx)(A.Z,{user:s,disabledTooltip:!0}),"UNVERIFIED_SELLER"===s.sellerTypeDisplay&&(0,i.jsx)(c(),{href:"/seller-application",passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,i.jsxs)(a.z,{as:"a",type:"button",size:"xs",variant:"outlined",sx:{bg:"#fff",px:"8x",maxWidth:"max-content"},children:[(0,i.jsx)(z,{size:16,sx:{fill:"primary.500",mr:"4px"}}),"เพิ่มเอกสาร/เปลี่ยนประเภทผู้ขาย"]})}),"NONE"===s.sellerTypeDisplay&&(0,i.jsxs)(r.x,{sx:{mt:"4px",display:"flex",alignItems:"center"},children:[(0,i.jsx)(l.Image,{src:"/static/v3/images/icon-buyer-circle.svg",alt:"User membership badge",width:20,height:20,sx:{flexShrink:0}}),(0,i.jsx)(r.x,{sx:{pl:"6px",variant:"text.sm",color:"neutral.800"},"data-testid":"user-menu-role-label",children:"ผู้ซื้อ"})]})]})]})})},R=s(69328);let H={color:"info.500",svg:{fill:"info.500"},backgroundColor:"neutral.100"};function F(e){let{area:t,onItemClick:s}=e,{authUser:o,openNotificationPanel:g,t2hNotification:E,snsNotifications:N}=(0,n.useContext)(p.I),{unreadMessageCount:z}=(0,n.useContext)(x.MessengerContext),A=(0,u.useRouter)(),T=N.filter(e=>!e.isRead).length,M=(0,n.useMemo)(()=>o?.balance||0,[o?.balance]),F=(0,n.useCallback)(e=>
1{e&&(0,w.Z)({ga:{eventName:e,eventParams:{position:"user-menu"}}}),"function"==typeof s&&s()},[s]),O=[{iconComponent:(0,i.jsx)(C.Z,{size:30,sx:{display:"flex",cursor:"pointer",fill:"neutral.500",color:"neutral.500"}}),trackingClassName:"MyAccountPublicProfile",title:"ร้านของฉัน",isActive:o?.isSeller===!0,className:(0,S.Z)("app-menu-store-click"),onClick:()=>{o?.userHashId&&(A.push((0,L.Z)(o.userHashId,o?.displayName)),F("button-click-shop"))},dataProps:{"data-testid":"menu-manage-listing-button"}},{iconComponent:(0,i.jsx)(f.Z,{sx:{fill:"neutral.500"}}),trackingClassName:"MyAccountProfileDetail",title:"บัญชีของฉัน",isActive:!0,className:(0,S.Z)("app-menu-myaccount-click"),onClick:()=>{A.push("/my-account/"),F("button-click-my-account")},dataProps:{"data-testid":"menu-my-account-button"}},{iconComponent:(0,i.jsx)(d.Z,{sx:{fill:"neutral.500"}}),trackingClassName:"MyAccountFavorites",title:y.L7?"รายการที่บันทึก":"บันทึกโพสต์",isCurrent:A.pathname.includes("/bookmarks"),isActive:!0,sx:{"&:hover":{...H,svg:{fill:"secondary.500"}}},className:(0,S.Z)("app-menu-bookmark-click"),onClick:()=>{o?.userHashId&&A.push("/bookmarks"),F("button-click-bookmark")},dataProps:{"data-testid":"menu-favorites-button"}},{iconComponent:(0,i.jsx)(v.Z,{sx:{fill:"neutral.500"}}),trackingClassName:"MyAccountVisitHistory",title:"ประวัติการเข้าชม",isCurrent:A.pathname.includes("/visit-history"),isActive:!0,sx:{"&:hover":{...H,svg:{fill:"secondary.500"}}},className:(0,S.Z)("app-menu-visit-history-click"),onClick:()=>{o?.userHashId&&A.push("/visit-history"),F("button-click-visit-history")},dataProps:{"data-testid":"menu-visit-history-button"}},{iconComponent:(0,i.jsx)(m.Z,{sx:{fill:"neutral.500"}}),trackingClassName:"Chat",title:"แชท",isActive:!0,isCurrent:"/chat"===A.pathname,endAdornment:(0,i.jsx)(I,{number:z}),className:(0,S.Z)("app-menu-chat-click"),onClick:()=>{A.push("/chat/"),F("button-click-chat-page")},dataProps:{"data-testid":"menu-chat-button"}},{iconComponent:(0,i.jsx)(h,{sx:{fill:"neutral.500"}}),trackingClassName:"Notification",title:"การแจ้งเตือน",isActive:!0,endAdornment:(0,i.jsx)(I,{number:(E?.unreadCount??0)+(T??0)}),className:(0,S.Z)("app-menu-notification-click"),onClick:()=>{g(),F("button-click-notification")},dataProps:{"data-testid":"menu-notification-button"}},{iconComponent:(0,i.jsx)("img",{className:"block",src:"/static/v3/images/icon-coin-1x.png",srcSet:"/static/v3/images/icon-coin-1x.png 1x, /static/v3/images/icon-coin-2x.png 2x",alt:"icon-coin",width:24,height:24,style:{width:"24px",height:"24px"}}),trackingClassName:"MyAccountCoin",title:"ซื้อ Coin เพิ่ม",isActive:!0,isCurrent:"/product/coin"===A.pathname,endAdornment:M>0?(0,i.jsxs)(r.x,{title:M.toLocaleString(),sx:{px:"8px",height:"32px",display:"flex",alignItems:"center",bg:"info.100",borderRadius:"20px",fontSize:"14px",fontWeight:700,color:"primary.500"},children:[`คงเหลือ : ${M.toLocaleString()}`,(0,i.jsx)("img",{className:"block",src:"/static/v3/images/icon-coin-1x.png",srcSet:"/static/v3/images/icon-coin-1x.png 1x, /static/v3/images/icon-coin-2x.png 2x",alt:"icon-coin",width:16,height:16,style:{marginLeft:"4px",width:"16px",height:"16px"}})]}):null,className:(0,S.Z)("app-menu-coin-click"),onClick:()=>{A.push("/product/coin/"),F("button-click-coin-page")},dataProps:{"data-testid":"menu-coin-button"}},{iconComponent:(0,i.jsx)(b,{sx:{fill:"neutral.500"}}),trackingClassName:"MyAccountMembership",title:"อัปเกรดสมาชิก",isActive:!0,isCurrent:"/product/membership"===A.pathname,className:(0,S.Z)("app-menu-membership-click"),onClick:()=>{A.push("/product/membership/"),F("button-click-upgrad-membership")},dataProps:{"data-testid":"menu-upgrade-membership-button"}},{iconComponent:(0,i.jsx)(j,{sx:{stroke:"neutral.500"}}),trackingClassName:"T2hFakkai",title:"ฝากขายกับเรา",isActive:!0,isCurrent:"/selling-methods"===A.pathname,className:(0,S.Z)("app-menu-membership-click"),onClick:()=>{A.push("/selling-methods/?section=fakkai"),F("button-click-fakkai")},dataProps:{"data-testid":"menu-upgrade-membership-button"}},{iconComponent:(0,i.jsx)("img",{src:"/static/v3/images/icon-sns-new-1x.png",srcSet:"/static/v3/images/icon-sns-new-1x.png 1x, /static/v3/images/icon-sns-new-2x.png 2x",width:24,height:24,alt:"club",style:{objectFit:"contain"}}),trackingClassName:"Club",title:"ชุมชนคนซื้อขาย",isActive:y.HF,isCurrent:"/club"===A.pathname,className:(0,S.Z)("app-menu-sns-click"),onClick:()=>{A.push("/club/"),F("button-click-sns-page")},dataProps:{"data-testid":"menu-club-button"}}];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.x,{sx:"Header"===t?{p:"16px",pr:"12px",bg:"white",position:"sticky",top:0,boxShadow:"light",zIndex:1}:{pb:"16px"},children:[(0,i.jsx)(_,{itemClickHandler:F}),o&&o.isSeller&&o.userHashId&&(0,i.jsxs)(r.x,{sx:{mt:"16px",display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px"},children:[(0,i.jsx)(c(),{href:`/u/${o.userHashId}/`,passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,i.jsxs)(a.z,{className:(0,S.Z)("app-menu-manage-post-click"),variant:"outlined",onClick:()=>F("button-click-manage-listing"),"data-testid":"account-menu-manage-post",sx:{whiteSpace:"nowrap"},children:[(0,i.jsx)(l.Image,{src:"/static/v3/images/icon-boost-1x.png",src2x:"/static/v3/images/icon-boost-2x.png",alt:"icon-boost",width:18,height:18,sx:{mr:"8px",flex:"none"}}),"จัดการประกาศ"]})}),(0,i.jsx)(R.Z,{className:(0,S.Z)("app-menu-sell-click"),onClick:()=>F("button-click-sell")})]})]}),(0,i.jsx)(k.Z,{layoutStyle:"compact",showDetail:!0,sx:{m:"12px"},btnClassName:(0,S.Z)("app-menu-update-seller-application-click"),onClick:()=>
1{(0,w.Z)({ga:{eventName:"notification-click",eventParams:{position:"user-menu"}}})}}),(0,i.jsx)(r.x,{as:"ul",className:"list-style-none",children:O.filter(e=>!!e&&e.isActive&&(void 0===e.permissions||o?.role&&e.permissions?.includes(o?.role))).map((e,s)=>{let n=`account-menu-${s}`;return(0,i.jsx)(Z,{area:t,...e},n)})})]})}},82486:function(e,t,s){var i=s(52676),n=s(75271),r=s(90879),a=s(68715),l=s(75922),o=s.n(l),c=s(24542),u=s(65928);let p=o()(()=>s.e(4026).then(s.bind(s,94026)).then(e=>e.Image),{loadableGenerated:{webpack:()=>[94026]},ssr:!1});t.Z=e=>{let{userData:t,hasNotification:s,size:l=40,isDisplayBadge:o=!1,onClick:x,sx:d,unreadNotifications:m,position:g="header-bar"}=e,h=(0,u.Z)({op:"<",breakpoint:"desktop"}),f=t.userRoleStateWorkflow??"W3_BUYER_STATE",b=(l/3.2).toFixed(0),v={width:18,height:24,style:{display:"block",width:`${b}px`,height:"auto",position:"absolute",bottom:0,right:0,zIndex:2,pointerEvents:"none",objectFit:"contain"}},C=o?(0,c.d)({bronze:{borderStyle:{background:"linear-gradient(to right, #AC671A 0%, #FFE2C9 50%, #AE6A1D 99.97%)"},icon:(0,i.jsx)("img",{src:"/static/v3/images/icon-bronze-ribbon-1x.png",srcSet:"/static/v3/images/icon-bronze-ribbon-1x.png 1x, /static/v3/images/icon-bronze-ribbon-2x.png 2x",alt:"icon-bronze-ribbon",...v})},silver:{borderStyle:{background:"linear-gradient(to right, #828896 0%, #E9E9E9 50%, #878C9A 99.97%)"},icon:(0,i.jsx)("img",{src:"/static/v3/images/icon-silver-ribbon-1x.png",srcSet:"/static/v3/images/icon-silver-ribbon-1x.png 1x, /static/v3/images/icon-silver-ribbon-2x.png 2x",alt:"icon-silver-ribbon",...v})},gold:{borderStyle:{background:"linear-gradient(89.83deg, #FCE1A1 5.04%, #FFFAE6 52.01%, #DEB662 99.97%)"},icon:(0,i.jsx)("img",{src:"/static/v3/images/icon-gold-ribbon-1x.png",srcSet:"/static/v3/images/icon-gold-ribbon-1x.png 1x, /static/v3/images/icon-gold-ribbon-2x.png 2x",alt:"icon-gold-ribbon",...v})},normal:{borderStyle:{p:"1px",bg:"neutral.300"},icon:null}},f):{borderStyle:{p:"1px",bg:"neutral.300"},icon:null},j=(0,n.useMemo)(()=>t.profileImage?.fullUrl,[t.profileImage?.fullUrl]),k=(0,n.useMemo)(()=>t.displayName??"",[t.displayName]);return(0,i.jsxs)(r.x,{sx:{p:"2px",width:`${l}px`,height:`${l}px`,position:"relative",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:void 0!==x?"pointer":void 0,...C.borderStyle,...d,"& .user-profile-image":{display:"flex",width:"100%",height:"100%",bg:"#fff",borderRadius:"50%",objectFit:"cover"},".user-profile-image-fallback":{display:"flex",width:"100%",height:"100%"}},onClick:x,className:"avatar-user","data-testid":"profile-panel"===g?"user-profile-avatar-panel":"user-profile-avatar",children:[j?(0,i.jsx)(p,{src:j,width:l,height:l,alt:"user-avatar",className:"user-profile-image",fallbackElement:(0,i.jsx)(a.$,{name:k,size:l,className:"user-profile-image-fallback"})}):(0,i.jsx)(a.$,{name:k,size:l,sx:{display:"flex",width:"100%",height:"100%"}}),s&&(0,i.jsx)(r.x,{children:m&&h?(0,i.jsx)(r.x,{sx:{px:"4px",minWidth:"16px",height:"16px",bg:"error.500",borderRadius:"99px",position:"absolute",top:"-4px",right:"-4px",border:"1px solid",borderColor:"#fff",color:"#fff",fontSize:"10px",fontWeight:700,lineHeight:"16px"},children:m&&m>99?"99+":m}):(0,i.jsx)(r.x,{sx:{width:"8px",height:"8px",bg:"error.500",borderRadius:"8px",position:"absolute",top:"1px",right:"1px"}})}),C?.icon]})}},86122:function(e,t,s){s.d(t,{Sy:function(){return a},ku:function(){return l},nf:function(){return r},t2:function(){return o},uc:function(){return n}});var i=s(71518);let n=!0;i.env.NEXT_PUBLIC_POPUP_INTRO_CHAT_ENABLE;let r="YYYY-MM-DD HH:mm:ss",a="__sending__",l="__failed__",o=14},49894:function(e,t,s){s.d(t,{AS:function(){return r},Kc:function(){return i},Sr:function(){return n},c6:function(){return a}});let i="jkke",n="t2h_official",r="t2h_official_consignment",a={withIn12Hours:"12",withIn24Hours:"24",withIn48Hours:"48"}},85345:function(e,t,s){s.d(t,{Z:function(){return i}});function i(e){switch(e){case"W3_SELLER_BRONZE_STATE":return{bg:"linear-gradient(90deg, #E5C6A9 0%, #D6AC86 100%)",borderColor:"linear-gradient(89.83deg, #AC671A 5.04%, #FFE2C9 52.01%, #AE6A1D 99.97%)",text:"bronze",img1x:"/static/v3/images/bronze-coin-1x.png",img2x:"/static/v3/images/bronze-coin-2x.png"};case"W3_SELLER_SILVER_STATE":return{bg:"linear-gradient(90deg, #E3EAF3 0%, #C1CBD9 100%)",borderColor:"linear-gradient(89.83deg, #828896 5.04%, #E9E9E9 52.01%, #878C9A 99.97%)",text:"silver",img1x:"/static/v3/images/silver-coin-1x.png",img2x:"/static/v3/images/silver-coin-2x.png"};case"W3_SELLER_GOLD_STATE":return{bg:"linear-gradient(90deg, #F3E9D0 0%, #E5C686 100%)",borderColor:"linear-gradient(89.83deg, #FCE1A1 5.04%, #FFFAE6 52.01%, #DEB662 99.97%)",text:"gold",img1x:"/static/v3/images/gold-coin-1x.png",img2x:"/static/v3/images/gold-coin-2x.png"};default:return{bg:"neutral.100",borderColor:"neutral.300",text:"",img1x:"",img2x:""}}}},24542:function(e,t,s){s.d(t,{d:function(){return n}});var i=s(49894);let n=(e,t,s)=>{let{bronze:n,silver:r,gold:a,normal:l=null,t2h:o,fakkai:c,directOwner:u}=e,p=l;switch(t){case"W3_SELLER_BRONZE_STATE":p=n||l;break;case"W3_SELLER_SILVER_STATE":p=r||l;break;case"W3_SELLER_GOLD_STATE":p=a||l}if(s)switch(s){case i.Sr:p=o||l;break;case i.AS:p=c||l;break;case i.Kc:p=u||l}return p}},84425:function(e,t,s){s.d(t,{t:function(){return i}});let i=e=>new Promise(t=>{setTimeout(()=>{t()},e)})},2148:function(e,t,s){var i=s(52676),n=s(75271),r=s(71830),a=s(3457),l=s(18154),o=s(68588),c=s(50574),u=s(83079),p=s(84425),x=s(69676),d=s(51443);t.Z=()=>{let e=(0,a.useRouter)(),{broadcast:t}=(0,n.useContext)(o.V),{openDialogLoading:s,setAuthUser:m,setIsCheckingAuth:g,closeDialogLoading:h}=(0,n.useContext)(l.I),{showDialog:f}=(0,n.useContext)(r.J);return{appSignOut:(0,n.useCallback)(()=>{f({open:!0,titleEl:(0,i.jsx)("div",{"data-testid":"popup-sign-out-title",children:"โปรดยืนยัน"}),children:"คุณต้องการออกจากระบบหรือไม่?",buttonConfirm:{label:"ตกลง",onClick:async()=>{f({open:!1}),s(),g(!0),await (0,d.Z)(),(0,x.Z)(null),m(null),g(!1),(0,u.Z)("g_state"),t(c.km),await (0,p.t)(500),h(),e.push("/")},props:{"data-testid":"popup-sign-out-confirm-button"}},buttonCancel:{label:"ยกเลิก",onClick:()=>{f({open:!1})},props:{"data-testid":"popup-sign-out-cancel-button"}},buttonClose:{onClick:()=>{f({open:!1})},props:{"data-testid":"popup-sign-out-close-button"}}})},[t,h,s,e,m,g,f])}}},65928:function(e,t,s){s.d(t,{Z:function(){return a}});var i=s(75271),n=s(18154),r=s(30702);function a(e){let{op:t=">=",breakpoint:s="mobile"}
1=e,{viewport:a}=(0,i.useContext)(n.I),[l,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{a?o(function(e,t,s){let i=r.Z[s];if("<"===t)return e.width<i;if(">"===t)return e.width>i;if("<="===t)return e.width<=i;if(">="===t||"widescreen"===s)return e.width>=i;let n=Object.keys(r.Z).reduce((e,t)=>r.Z[t]>=i&&s!==t?{...e,max:r.Z[t]}:e,{min:i,max:0});return e.width>=n.min&&e.width<n.max}(a,t,s)):o(!1)},[s,t,a]),l}}}]);

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.