1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f6e2032a-8161-474a-aff7-66c2777e285d",e._sentryDebugIdIdentifier="sentry-dbid-f6e2032a-8161-474a-aff7-66c2777e285d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5292],{90253:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(37838),o=n(99217),i=n(44194),a=n(7829),l=n(85913),c=n(33370),s=n(70110),u=n(57329),d=n(94066),p=n(32313),h=n(29618),m=n(68342),f=n(10105),v=n(31549);let g=["component","direction","spacing","divider","children","className","useFlexGap"],b=(0,h.Z)(),y=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function useThemePropsDefault(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:b})}let getSideFromDirection=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],style=({ownerState:e,theme:t})=>{let n=(0,o.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:t},(0,m.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let r=(0,f.hB)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=(0,m.P$)({values:e.direction,base:o}),a=(0,m.P$)({values:e.spacing,base:o});
1"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{let r=i[e];if(!r){let r=t>0?i[n[t-1]]:"column";i[e]=r}}),n=(0,l.Z)(n,(0,m.k9)({theme:t},a,(t,n)=>e.useFlexGap?{gap:(0,f.NA)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${getSideFromDirection(n?i[n]:e.direction)}`]:(0,f.NA)(r,t)}}))}return(0,m.dt)(t.breakpoints,n)};var Z=n(67622),S=n(16845);let x=function(e={}){let{createStyledComponent:t=y,useThemeProps:n=useThemePropsDefault,componentName:l="MuiStack"}=e,useUtilityClasses=()=>(0,s.Z)({root:["root"]},e=>(0,c.ZP)(l,e),{}),u=t(style),d=i.forwardRef(function(e,t){let l=n(e),c=(0,p.Z)(l),{component:s="div",direction:d="column",spacing:h=0,divider:m,children:f,className:b,useFlexGap:y=!1}=c,Z=(0,r.Z)(c,g),S=useUtilityClasses();return(0,v.jsx)(u,(0,o.Z)({as:s,ownerState:{direction:d,spacing:h,useFlexGap:y},ref:t,className:(0,a.Z)(S.root,b)},Z,{children:m?function(e,t){let n=i.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e),[])}(f,m):f}))});return d}({createStyledComponent:(0,Z.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,S.i)({props:e,name:"MuiStack"})});var O=x},22585:function(e,t,n){"use strict";n.d(t,{b:function(){return ShopLevelBadge}});var r=n(21526),o=n(38327);n(89957);var i=n(78011),a=n(51865),l=n.n(a);n(44194);var c=n(11461),s=n(62940),ShopLevelBadge=function(e){var t,n,a,u,d,p=(0,o.W)().shopLevel,h=(0,i.Z)(),m=(0,c.$G)().t;if(!p||!e.shop||"SHOP_LEVEL_UNSPECIFIED"===e.shop.shopLevel||"WITHDRAW_ACCOUNT_VERIFICATION_STATUS_APPROVED"!==e.shop.verificationStatus)return null;var f={SHOP_LEVEL_MALL:{icon:null,text:"Mall",css:{backgroundColor:null===(t=h.palette.feature.shopLevel)||void 0===t?void 0:t.mall},visible:!0},SHOP_LEVEL_MALL_PREMIUM:{icon:null,text:"Premium",css:{backgroundColor:null===(n=h.palette.feature.shopLevel)||void 0===n?void 0:n.premium},visible:!0},SHOP_LEVEL_NORMAL:{icon:null,text:"Verified",css:{backgroundColor:null===(a=h.palette.feature.shopLevel)||void 0===a?void 0:a.verified},visible:e.allowLevelNormal},SHOP_LEVEL_CUSTOM_1:{icon:null,text:m("common.shop-level.SHOP_LEVEL_CUSTOM_1"),css:{backgroundColor:null===(u=h.palette.feature.shopLevel)||void 0===u?void 0:u.custom1},visible:!0}};return null!==(d=f[e.shop.shopLevel])&&void 0!==d&&d.visible?(0,s.tZ)("div",{className:l()("w-fit inline-flex align-middle",e.className),children:(0,s.tZ)("div",{className:"flex items-center justify-center rounded-sm p-1 text-white w-fit",css:(0,r.iv)({backgroundColor:f[e.shop.shopLevel].css.backgroundColor},"",""),children:(0,s.BX)("div",{className:"flex w-full items-center justify-center gap-1 truncate font-bold",css:(0,r.iv)({fontSize:"SHOP_LEVEL_CUSTOM_1"===e.shop.shopLevel?"9px":"11px",fontFamily:"Roboto !important",lineHeight:"SHOP_LEVEL_CUSTOM_1"===e.shop.shopLevel?"normal":1},"",""),children:[f[e.shop.shopLevel].icon,f[e.shop.shopLevel].text]})})}):null}},45292:function(e,t,n){"use strict";n.r(t),n.d(t,{ShopListPage:function(){return ShopListPage}});var r=n(12086),o=n(42693),i=n(47886),a=n(89859),l=n(27976),c=n(26479),s=n(92406),u=n(56602),d=n(90253),p=n(60237),h=n(39036),m=n(1597),f=n(11461),v=n(62940),ShopListPage=function(){var e,t,n=(0,f.$G)().t,g=(0,m.useRouter)(),b=(0,a.k)().track,y="string"==typeof g.query.keyword?g.query.keyword:void 0,Z=Math.max(1,Math.floor(Number(g.query.page))||1),S=(0,l.S8)(y,{skip:(Z-1)*20,limit:20}),x=S.data,O=S.error,k=S.isLoading;(0,i.L)(O);var N=null!==(e=null==x?void 0:x.data.items)&&void 0!==e?e:[],_=null!==(t=null==x?void 0:x.data.count)&&void 0!==t?t:0,C=Math.ceil(_/20),onSelectShop=function(e){(0,c.gS)(b,{keyword:y,target:c.L4.card,shop:e})};return(0,v.BX)(u.Z,{className:"w-full flex flex-col gap-y-4 py-4",children:[(0,v.BX)(d.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,v.tZ)(p.Z,{onClick:function(){return g.back()},className:"-ml-2",children:(0,v.tZ)(s.Z,{})}),(0,v.tZ)(h.Z,{variant:"h4",component:"h1",children:(0,v.tZ)(f.cC,{i18nKey:"search.related-shops.title",values:{keyword:y},components:[(0,v.tZ)("span",{className:"text-ci-primary"},0)]})})]}),k||0!==N.length?(0,v.tZ)(h.Z,{variant:"body14",color:"primary.darkGray",children:n("search.shop-list.total",{count:_})}):(0,v.tZ)("p",{className:"text-ci-gray",children:n("search.shop-list.empty")}),(0,v.tZ)("ul",{className:"flex flex-col gap-y-6 list-none p-0 m-0",children:N.map(function(e){return(0,v.tZ)("li",{children:(0,v.tZ)(r.A,{shop:e,onSelectShop:onSelectShop})},e.id)})}),C>1&&(0,v.tZ)(o.t,{count:C,page:Z,className:"self-center"})]})}},12086:function(e,t,n){"use strict";n.d(t,{A:function(){return ShopResultCard}});var r=n(22379),o=n(22585),i=n(79853),a=n(1639),l=n(50374),c=n(2e3),s=n(37403),u=n(67753),d=n(78011),p=n(27719),h=n(39036),m=n(65440),f=n(51865),v=n.n(f),g=n(23947),b=n.n(g),y=n(11461),Z=n(62940),S={compact:44,tablet:80,desktop:100},ShopResultCard=function(e){var t,n,f,g,x,O,k,N,_,C,w,P=(0,y.$G)().t,L=(0,d.Z)(),j=(0,c.bj)(),T=e.shop,E=j.isMobile,I=(0,s.Xf)(null!==(t=T.id)&&void 0!==t?t:"",{}),M=(null!==(n=null===(f=T.contacts)||void 0===f?void 0:f.length)&&void 0!==n?n:0)>0,B=E?S.compact:j.isTablet?S.tablet:S.desktop,X=(0,Z.tZ)(o.b,{shop:{shopLevel:T.shopLevel,verificationStatus:T.verificationStatus}}),R=(0,Z.tZ)(p.Z,{component:b(),href:I,onClick:function(){return e.onSelectShop(T)},variant:"contained",size:"small",className:v()(!E&&"w-full min-w-[150px]"),startIcon:(0,Z.tZ)(u.Z,{className:"w-4"}),children:P("shop-item.to-shop")});return E?(0,Z.BX)("div",{className:"flex items-center gap-x-3 py-2",children:[(0,Z.BX)(b(),{href:I,onClick:function(){return e.onSelectShop(T)},className:"flex items-center gap-x-3 flex-1 min-w-0 no-underline text-inherit",children:[(0,Z.tZ)(r.z,{src:T.logoUrl,name:T.name,size:B}),(0,Z.BX)("div",{className:"flex flex-col min-w-0",children:[(0,Z.BX)("span",{className:"flex items-center gap-x-2 min-w-0",children:[(0,Z.tZ)(h.Z,{variant:"body14",fontWeight:700,className:"truncate",children:T.name}),X]}),(0,Z.BX)(h.Z,{variant:"caption",color:"primary.gray",children:[P("number-abbr",{value:null!==(w=T.numberOfProducts)&&void 0!==w?w:0})," ",P("shop-information-page.product-list")]})]})]}),(0,Z.tZ)("div",{className:"shrink-0",children:R})]}):(0,Z.BX)("div",{className:"flex items-center gap-x-4 py-[23px] px-6 border border-solid border-ci-gray rounded-xl",children:[(0,Z.BX)(b(),{href:I,onClick:function(){return e.onSelectShop(T)},className:"flex items-center gap-x-3 flex-1 min-w-0 no-underline text-inherit",children:[(0,Z.tZ)(r.z,{src:T.logoUrl,name:T.name,size:B,badge:X}),(0,Z.BX)("div",{className:"flex flex-col min-w-0 gap-y-1",children:[(0,Z.tZ)(h.Z,{variant:"h5",component:"p",className:"truncate",children:T.name}),(0,Z.BX)("span",{className:"flex items-center gap-x-2",children:[(0,Z.tZ)(l.i,{value:null!==(g=T.rating)&&void 0!==g?g:0,precision:.1,readOnly:!0,size:"small"}),(0,Z.BX)(h.Z,{variant:"caption",color:"primary.gray",children:["(",P("physical-page.number-of-review",{amount:null!==(x=T.reviewCount)&&void 0!==x?x:0}),")"]})]})]})]}),(0,Z.BX)("div",{className:"flex items-center shrink-0",children:[(0,Z.tZ)(a.k,{title:P("shop-information-page.product-list"),amount:P("number-abbr",{value:null!==(O=T.numberOfProducts)&&void 0!==O?O:0})}),(0,Z.tZ)(m.Z,{className:"mx-6",orientation:"vertical",flexItem:!0,style:{height:"unset",borderColor:L.palette.primary.lighterGray}}),(0,Z.tZ)(a.k,{title:P("shop-information-page.number-of-sold"),amount:P("number-abbr",{value:Number(null!==(k=T.soldCount)&&void 0!==k?k:0)})})]}),(0,Z.BX)("div",{className:"flex flex-col gap-y-2 shrink-0 ml-6",children:[R,M&&(0,Z.tZ)(i.o,{shopId:null!==(N=T.id)&&void 0!==N?N:"",shopName:null!==(_=T.name)&&void 0!==_?_:"",links:null!==(C=T.contacts)&&void 0!==C?C:[],variant:"outlined",fullWidth:!0})]})]})}},79853:function(e,t,n){"use strict";n.d(t,{o:function(){return ShopContactPopOver}});var r=n(33461),o=n(89859),i=n(2e3),a=n(26479),l=n(27719),c=n(39036),s=n(88794),u=n(1878),d=n.n(u),p=n(44194),h=n(11461),m=n(62940),ChannelIcon=function(e){return(0,m.tZ)("div",{className:"border-b border-solid border-0 border-ci-lighter-gray py-4",children:(0,m.BX)(l.Z,{variant:"text",color:"inherit",style:{minHeight:32},onClick:function(){e.onClick(),window.open(e.link,"_blank")},className:"py-0 flex flex-row text-left justify-start gap-x-3 px-0 w-full",children:[(0,m.tZ)(d(),{src:e.imageSrc,alt:e.alt,width:32,height:32}),(0,m.tZ)(c.Z,{children:e.text})]})})},ShopContactPopOver=function(e){var t,n,u,d=(0,p.useState)(null),f=d[0],v=d[1],g=(0,h.$G)().t,b=(0,i.bj)(),y=(0,o.k)().track,publishToAnalytic=function(t,n){y(t,{shop_id:e.shopId,shop_name:e.shopName,contact_type:n.contact_type},!0)},Z=e.links.find(function(e){return"SHOP_CONTACT_TYPE_LINE"===e.type}),S=e.links.find(function(e){return"SHOP_CONTACT_TYPE_FACEBOOK"===e.type});return(0,m.BX)(m.HY,{children:[(0,m.tZ)(l.Z,{variant:null!==(t=e.variant)&&void 0!==t?t:"contained",size:e.fullWidth?"small":void 0,className:e.fullWidth?"w-full min-w-[150px]":void 0,onClick:function(t){v(t.currentTarget),y(a.aM.CONTACT_SHOP_INTENT,{shop_id:e.shopId,shop_name:e.shopName},!0)},style:e.fullWidth?void 0:b.isMobile?{fontWeight:400,maxWidth:88,maxHeight:32,paddingTop:6,paddingBottom:6,fontSize:14,paddingLeft:26,paddingRight:26}:b.isTablet?{minWidth:130,padding:0,height:32}:{minWidth:130,padding:0},children:g("shop-information-page.contact-us")}),(0,m.BX)(s.ZP,{open:!!f,anchorEl:f,onClose:function(){v(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{padding:24,borderRadius:16,width:271}}},children:[(0,m.tZ)(c.Z,{variant:"body",fontWeight:700,children:g("shop-information-page.contact-us-description")}),Z&&(0,m.tZ)(ChannelIcon,{link:null!==(n=Z.url)&&void 0!==n?n:"",imageSrc:"/images/social-login/line.svg",alt:"Line",text:"Line Official",onClick:function(){return publishToAnalytic(a.aM.CONTACT_SHOP_INTENT,{shop_id:e.shopId,shop_name:e.shopName,contact_type:a.XX.LINE})}},Z.url),S&&(0,m.tZ)(ChannelIcon,{link:null!==(u=S.url)&&void 0!==u?u:"",imageSrc:"/images/social-share/facebook.svg",alt:"Facebook",text:"Facebook",onClick:function(){return publishToAnalytic(a.aM.CONTACT_SHOP_INTENT,{shop_id:e.shopId,shop_name:e.shopName,contact_type:a.XX.FACEBOOK})}},S.url),r.m.vendorShopContactUrl&&(0,m.tZ)(ChannelIcon,{link:r.m.vendorShopContactUrl,onClick:function(){publishToAnalytic(a.aM.CONTACT_SHOP_INTENT,{shop_id:e.shopId,shop_name:e.shopName,contact_type:a.XX.OTHER})},imageSrc:"/images/reeeed-icon.svg",alt:"Reeeed",text:"Reeeed"}),!Z&&!S&&!r.m.vendorShopContactUrl&&(0,m.tZ)("div",{className:" py-4",children:(0,m.tZ)(c.Z,{children:g("shop-information-page.not-specified")})})]})]})}},1639:function(e,t,n){"use strict";n.d(t,{C:function(){return TabletStat},k:function(){return Stat}});var r,o,i=n(49601),a=n(78011),l=n(21526),c=n(39036),s=n(51865),u=n.n(s),d=n(62940),TabletStat=function(e){var t=e.amount,n=e.title,o=e.className,s=(0,a.Z)();return(0,d.BX)("div",{className:u()("flex justify-between px-8 py-2",o),css:(0,l.iv)(r||(r=(0,i.Z)(["\n border-color: ",";\n "])),s.palette.primary.lighterGray),children:[(0,d.tZ)(c.Z,{variant:"caption",children:n}),(0,d.tZ)(c.Z,{className:"font-bold",variant:"body",children:t})]})},Stat=function(e){var t=e.title,n=e.amount,r=e.className,s=(0,a.Z)();return(0,d.BX)("div",{className:u()("justify-center flex flex-col items-center",r),css:(0,l.iv)(o||(o=(0,i.Z)(["\n border-color: ",";\n "])),s.palette.primary.lighterGray),children:[(0,d.tZ)(c.Z,{variant:"caption",children:t}),(0,d.tZ)(c.Z,{className:"font-bold",variant:"body",children:n})]})}},42693:function(e,t,n){"use strict";n.d(t,{t:function(){return Pagination}});
1var r=n(84302),o=n(24231),i=n(2e3),a=n(21526),l=n(78011),c=n(41443),s=n(61603),u=n(23947),d=n.n(u),p=n(1597),h=n(62940),m=["renderItem"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Pagination=function(e){var t=e.renderItem,n=(0,o.Z)(e,m),r=(0,l.Z)().palette,u=(0,i.bj)().isMobile,f=(0,p.useRouter)();return(0,h.tZ)(c.Z,_objectSpread(_objectSpread({variant:"outlined",shape:"rounded",css:(0,a.iv)({".MuiPagination-root":{gap:"5px"},".MuiPaginationItem-root":{borderRadius:"8px",backgroundColor:r.primary.lighterGray,border:"none",color:r.primary.gray,height:"40px",minWidth:"36px","&:hover":{backgroundColor:r.primary.exLightPrimary,color:"white"},"&.Mui-selected":{backgroundColor:r.primary.main,color:"white","&:hover":{backgroundColor:r.primary.main}},"&.MuiPaginationItem-previousNext":{border:"1px solid ".concat(r.primary.main),color:r.primary.main,backgroundColor:"white"},"&.MuiPaginationItem-ellipsis":{backgroundColor:"transparent",lineHeight:"40px","&:hover":{color:"unset"}}}},"",""),siblingCount:u?0:1},n),{},{renderItem:function(e){if(t)return t(e);var n=f.asPath.split("?")[0],r=new URLSearchParams(f.asPath.split("?")[1]||""),o=e.page&&e.page>1?e.page:1;return r.set("page",o.toString()),(0,h.tZ)(d(),{href:"".concat(n,"?").concat(r.toString()),passHref:!0,legacyBehavior:!0,children:(0,h.tZ)(s.Z,_objectSpread(_objectSpread({},e),{},{component:"a"}))})}}))}},50374:function(e,t,n){"use strict";n.d(t,{i:function(){return Rating}});var r=n(84302),o=n(93818),i=n(21526),a=n(62940);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Rating=function(e){return(0,a.tZ)(o.Z,_objectSpread(_objectSpread({css:(0,i.iv)({".MuiRating-icon":{transform:"scale(1) !important"}})},e),{},{emptyIcon:(0,a.tZ)("div",{className:"flex justify-center items-center",style:{width:"1em",height:"1em"},children:(0,a.tZ)("img",{src:"/images/star.svg",style:{width:"0.95em",height:"0.95em"}})})}))}},89957:function(){},49601:function(e,t,n){"use strict";function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return _taggedTemplateLiteral}})}}]);
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.