1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5010,7309],{1602:(e,t,n)=>{var r=n(19031);e.exports=function(){return r.Date.now()}},4917:(e,t,n)=>{var r=n(98825),i=n(1602),o=n(52782),c=Math.max,a=Math.min;e.exports=function(e,t,n){var u,s,l,d,f,p,_=0,v=!1,h=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var n=u,r=s;return u=s=void 0,_=t,d=e.apply(r,n)}function y(e){var n=e-p,r=e-_;return void 0===p||n>=t||n<0||h&&r>=l}function x(){var e,n,r,o=i();if(y(o))return b(o);f=setTimeout(x,(e=o-p,n=o-_,r=t-e,h?a(r,l-n):r))}function b(e){return(f=void 0,m&&u)?g(e):(u=s=void 0,d)}function j(){var e,n=i(),r=y(n);if(u=arguments,s=this,p=n,r){if(void 0===f)return _=e=p,f=setTimeout(x,t),v?g(e):d;if(h)return clearTimeout(f),f=setTimeout(x,t),g(p)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(v=!!n.leading,l=(h="maxWait"in n)?c(o(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),j.cancel=function(){void 0!==f&&clearTimeout(f),_=0,u=p=s=f=void 0},j.flush=function(){return void 0===f?d:b(i())},j}},26236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(20294),i=n(85993),o=n(37876),c=n(14678),a=n(15039),u=n.n(a),s=n(80782),l=n.n(s),d=n(89099),f=n(14232),p=n(69050),_=n(37127),v=n(4188),h=n(56472),m=n(57010);let g=function(e){var t,n,i=e.intention,c=e.isCloseAppBar,a=(0,r._)((0,f.useState)([]),2),s=a[0],d=a[1],p=(0,r._)((0,f.useState)(""),2),h=p[0],g=p[1],x=function(e){var t=document.querySelector('[id="section-menu-bar"]'),n=document.querySelector('[id="button-to-'.concat(e,'"]')),r=Number(window.getComputedStyle(t).paddingLeft.replace("px","")),i=n.offsetLeft-r;t.scrollLeft!==i&&(t.scrollLeft=i)},b=function(){var e=i.sections.map(function(e){return{top:document.querySelector('[id="'.concat(e.sort_order,'"]')).offsetTop,id:"".concat(e.sort_order)}}),t=function(){var t=e.filter(function(e){return(0,v.$V)('[id="'.concat(e.id,'"]'),300)}).slice(-1);(null==t?void 0:t.length)&&h!==t[0].id?(g(t[0].id),x(t[0].id)):""!==h&&g("")};return window.addEventListener("scroll",l()(t,300)),function(){window.removeEventListener("scroll",t)}};return(0,f.useEffect)(function(){(0,m.V)(i).then(d)},[]),(0,f.useLayoutEffect)(function(){return b()},[]),(0,o.jsx)(_.wW,{isCloseAppBar:c,children:(0,o.jsxs)("div",{className:"intention-page-mobile _pdbt-48px",children:[(0,o.jsx)("section",{className:"_dp-f _jtfct-ct _alit-ct _bgcl-neutral-500 _pdh-16px",style:{height:"300px",backgroundImage:"url(".concat(i.banner_background_mobile,")")},children:(0,o.jsxs)("div",{style:{color:"white"},children:[(0,o.jsx)("div",{className:"_fs-600 _fw-600 _tal-ct _ffml-secondary",children:i.banner_title}),(0,o.jsx)("div",{className:"_tal-ct _mgt-12px",children:i.banner_description})]})}),(0,o.jsx)("div",{id:"section-menu-bar",className:"section-menu-bar _dp-f _alit-ct _ovf-at _pdh-16px",children:(0,o.jsx)("div",{className:"lo-grid-span-horizontal _gg-8px _pdr-16px",children:i.sections.sort(function(e,t){return e.sort_order-t.sort_order}).map(function(e,t){return(0,o.jsx)("a",{id:"button-to-".concat(e.sort_order),onClick:function(){return g("".concat(e.link_title))},href:"#".concat(e.sort_order),className:u()("section-link tb-button -secondary -small _wsp-nw _pdh-12px",{"_cl-primary-500 _bdcl-primary-400":h==="".concat(e.sort_order),"_cl-text-default-200":h!=="".concat(e.sort_order)}),children:e.link_title},t)})})}),i.sections.sort(function(e,t){return e.sort_order-t.sort_order}).map(function(e,t){return(0,o.jsx)(y,{section:e,products:s},t)}),(0,o.jsx)("hr",{className:"_h-8px"}),(0,o.jsx)("section",{className:"lo-container _pdv-32px",children:(0,o.jsxs)("div",{className:"lo-6 _gg-16px",children:[(0,o.jsx)("div",{style:{height:"96px",color:"white",background:"#0045aa"},className:"_cl-white-100 _pd-12px _bdrd-8px _dp-f _alit-fe _ffml-secondary _fw-600",children:"à¸à¸¸à¸à¸¡à¸à¸à¸«à¸²à¸à¸¹à¹à¸à¹à¸§à¸¢ à¹à¸à¹à¸£à¸·à¹à¸à¸à¹à¸«à¸¥à¹à¸²à¸à¸µà¹à¸à¸¢à¸¹à¹à¸«à¸£à¸·à¸à¹à¸¡à¹?"}),null==i||null==(n=i.related_intentions)||null==(t=n.filter(function(e,t){return t<5}))?void 0:t.map(function(e,t){return(0,o.jsx)("a",{"data-selenium":"intention.related.".concat(e.title),href:e.link,target:"_blank",rel:"noreferrer",children:(0,o.jsx)("div",{style:{height:"96px",color:"white",backgroundImage:"url(".concat(e.image,")")},className:"_bgcl-neutral-300 _cl-white-100 _pd-12px _bdrd-8px _dp-f _alit-fe _ffml-secondary _fs-300 _fw-600 _bgs-cv _bgpst-ct",children:e.title},t)},t)})]})})]})})};var y=function(e){var t,n=e.section,a=e.products,u=(0,r._)((0,h.Bd)("common"),1)[0],s=(0,d.useRouter)().query;return(0,o.jsxs)("div",{className:"intention-section _pdbt-24px _pst-rlt",children:[(0,o.jsx)("div",{id:"".concat(n.sort_order),className:"_pst-asl",style:{to
1p:"-100px"}}),(0,o.jsx)("hr",{className:"_h-8px"}),(0,o.jsxs)("div",{className:"_pd-24px",children:[(0,o.jsxs)("div",{className:"_fw-600 _ffml-secondary",children:[null==n?void 0:n.title," ",(0,o.jsx)("a",{href:"".concat(n.url,"?source=intention_").concat(null==s?void 0:s.intentionSlug),target:"_blank","data-selenium":"intention-section.".concat(null==n?void 0:n.link_title,".link"),rel:"noreferrer",children:(0,o.jsx)("span",{className:"_cl-primary-500",children:null==n?void 0:n.link_title})})]}),(0,o.jsx)("p",{className:"_fs-300 _mgt-16px",children:null==n?void 0:n.description})]}),(0,o.jsxs)("div",{className:"lo-12",children:[(t=null==a?void 0:a.filter(function(e){return null==n?void 0:n.product_ids.includes(e.objectID)}),0===a.length?(0,o.jsx)("div",{className:"lo-12 _gg-8px _pdh-8px _jtfs-ct _w-100pct",children:(0,i._)([,,]).map(function(e,t){return(0,o.jsx)(c.Rl,{},"skeleton-card-product-".concat(t))})}):(0,o.jsx)("div",{className:"lo-6 _gg-8px _pdh-8px _jtfs-ct",children:t.filter(function(e,t){return t<2}).map(function(e,t){var r,i;return(0,o.jsx)(p.c,{tabIndex:t,category:e.category,subcategory:e.subcategory,titleSubCate:null==s?void 0:s.intentionSlug,productId:e.objectID,className:"card-product",purchaseCount:null==e?void 0:e.purchase_count,title:e.title,coverPhoto:e.image||"",basePrice:e.base_price,slug:e.slug,rating:e.rating,badges:e.badges,user:e.user,fallbackSource:"intention_".concat(null==s?void 0:s.intentionSlug),reviewCount:e.review_count,responseTime:null==e||null==(i=e.user)||null==(r=i.stats)?void 0:r.response_time,productCardDecor:null==e?void 0:e.product_card_decor,variant:"horizontal",productImageAlt:"".concat(null==n?void 0:n.title," ").concat(null==n?void 0:n.link_title," - ").concat(t+1)},e.objectID)})})),(0,o.jsx)("div",{className:"_pdh-24px _mgt-24px",children:(0,o.jsx)("a",{href:"".concat(null==n?void 0:n.url,"?source=intention_").concat(null==s?void 0:s.intentionSlug),target:"_blank",rel:"noopener noreferrer","data-selenium":"intention-category.".concat(null==n?void 0:n.link_title,".see-more"),children:(0,o.jsx)("span",{className:"tb-button -secondary",children:u("intention.see-more")})})})]})]})}},39824:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},52782:(e,t,n)=>{var r=n(88046),i=n(98825),o=n(76014),c=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return c;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):a.test(e)?c:+e}},57010:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,y:()=>d});var r=n(16927),i=n(67684),o=n(62701),c=n(85993),a=n(4902),u=n(76757),s=n(78735),l=function(e){return(0,r._)(function(){var t;return(0,a.YH)(this,function(n){return t=[],e.sections.forEach(function(e){t=(0,c._)(t).concat((0,c._)(e.product_ids))}),[2,(0,s.zh)(t)]})})()},d=function(e,t){var n=new URL(e),r=u.parse(n.search),c=u.stringify((0,o._)((0,i._)({},r),{source:t}));return"".concat(n.origin).concat(n.pathname,"?").concat(c)}},70967:(e,t,n)=>{"use strict";n.d(t,{Gl:()=>p,Hv:()=>u,M8:()=>s,VS:()=>c,XI:()=>l,aZ:()=>a,nG:()=>d,pN:()=>f});var r=n(37876),i=n(45691),o=n(17907),c=Array(10).fill(new Date().getFullYear()).map(function(e,t){return e-t}),a="coin_topup_history",u="coin_topup",s="user_coin",l=["5000","10000","50000","100000"],d=10,f="web_coin_topup",p=function(e){return[(0,r.jsx)("li",{children:e("top-up.coin-note.1")},"1"),(0,r.jsx)("li",{children:e("top-up.coin-note.2")},"2"),(0,r.jsx)("li",{children:e("top-up.coin-note.3")},"3"),(0,r.jsxs)("li",{children:[e("top-up.coin-note.4"),"\xa0",(0,r.jsx)(i.Gr,{href:o.gy,className:"_cl-primary-600 _tdcrt-udl",children:"Support Center"})]},"4")]}},71260:(e,t,n)=>{"use strict";n.d(t,{DS:()=>v,K7:()=>y,Rq:()=>h,SJ:()=>x,_3:()=>m,pU:()=>_,qf:()=>g});var r=n(16927),i=n(67684),o=n(62701),c=n(65699),a=n(4902),u=n(42252),s=n(79819),l=n(15526),d=n(66002),f=n(93298),p=n(93661),_=function(){var e=(0,l.n)(function(e){return(0,r._)(function(){return(0,a.YH)(this,function(t){switch(t.label){case 0:return[4,f.jU.createProductActionLog(e)];case 1:return[2,t.sent().createProductActionLog]}})})()});return(0,i._)({referenceUserId:(0,p.Tv)()},e)},v=function(e){var t=[d.g1,e],n=(0,u.I)({queryKey:t,queryFn:function(){return(0,r._)(function(){var t,n;return(0,a.YH)(this,function(r){switch(r.label){case 0:return[4,f.jU.getRelatedProduct(e)
1];case 1:return[2,(null==(n=r.sent())||null==(t=n.getRelatedProducts)?void 0:t.related_products)||[]]}})})()},cacheTime:1/0,staleTime:1/0,enabled:!!e});return(0,i._)({queryKey:t},n)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2?arguments[2]:void 0,c={id:e,page:1,limit:t};return(0,s.q)((0,i._)({queryKey:[d.QV,e,t],queryFn:function(e){var t=e.pageParam,n=void 0===t?c:t;return(0,r._)(function(){return(0,a.YH)(this,function(e){switch(e.label){case 0:return[4,f.jU.getSellerReviews(n)];case 1:return[2,e.sent().getSellerReviews]}})})()},getNextPageParam:function(e){if((null==e?void 0:e.page)!==(null==e?void 0:e.total_pages))return(0,o._)((0,i._)({},c),{page:(null==e?void 0:e.page)+1})}},n))},m=function(){return(0,l.n)(function(e){return f.jU.setFavoriteById(e)})},g=function(e,t){var n=t.isMobile,s=(0,c._)(t,["isMobile"]),l=[d.sj,e],p=(0,u.I)((0,i._)({queryKey:l,queryFn:function(){return(0,r._)(function(){return(0,a.YH)(this,function(t){switch(t.label){case 0:return[4,f.jU.getProductDetailV2("".concat(e),{isMobile:n})];case 1:return[2,t.sent()]}})})()}},s));return(0,o._)((0,i._)({},p),{queryKey:l})},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.isMobile,a=void 0!==r&&r,s=n.reviewsLimit,l=void 0===s?5:s,p=(0,c._)(n,["isMobile","reviewsLimit"]),_=[d.ny,e,t,a,l],v=(0,u.I)((0,i._)({queryKey:_,queryFn:function(){return f.jU.getProductDetailWithSellerReviews({productId:e,slug:t,isMobile:a,reviewsLimit:l})}},p));return(0,o._)((0,i._)({},v),{queryKey:_})},x=function(e){return(0,u.I)((0,i._)({queryKey:[d._],queryFn:f.jU.getMyServices},e))}},80782:(e,t,n)=>{var r=n(4917),i=n(98825);e.exports=function(e,t,n){var o=!0,c=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,c="trailing"in n?!!n.trailing:c),r(e,t,{leading:o,maxWait:t,trailing:c})}},84194:(e,t,n)=>{"use strict";n.d(t,{AR:()=>m,PD:()=>b,RD:()=>w,UW:()=>x,hb:()=>g,nw:()=>y});var r=n(16927),i=n(67684),o=n(62701),c=n(4902),a=n(42252),u=n(79819),s=n(15526),l=n(88202),d=n(66002),f=n(10415),p=n(93298),_=n(57010),v=n(70967),h=(0,l.$)().API_URL,m=function(e){return(0,a.I)({queryKey:[v.Hv,e],queryFn:function(){return(0,r._)(function(){return(0,c.YH)(this,function(t){switch(t.label){case 0:return[4,p.BZ.getCoinTopUp(e)];case 1:return[2,t.sent().getCoinTopUp]}})})()},enabled:!!e})},g=function(e,t){return(0,a.I)({queryKey:[v.aZ,e],queryFn:function(){return(0,r._)(function(){return(0,c.YH)(this,function(t){switch(t.label){case 0:return[4,p.BZ.getTopUpHistory((0,o._)((0,i._)({},e),{limit:10,order_by:"",dir:""}))];case 1:return[2,t.sent()]}})})()},keepPreviousData:!0,enabled:t})},y=function(e,t){return(0,u.q)({queryKey:[v.aZ,{year:e.year}],queryFn:function(t){var n=t.pageParam,i=void 0===n?e:n;return(0,r._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:return[4,p.BZ.getTopUpHistory(i)];case 1:return[2,e.sent()]}})})()},getNextPageParam:function(t){if(!(t.metadata.total_count<t.metadata.limit*t.metadata.page))return(0,o._)((0,i._)({},e),{page:t.metadata.page+1})},enabled:t})},x=function(e){return(0,a.I)({queryKey:[v.M8],queryFn:function(){return(0,r._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:return[4,p.BZ.getUserCoin()];case 1:return[2,e.sent().user]}})})()},enabled:e,staleTime:1/0,cacheTime:1/0})},b=function(){return(0,s.n)(function(e){var t=e.data.amount;return(0,r._)(function(){var e;return(0,c.YH)(this,function(n){switch(n.label){case 0:if(!(0,l.$)().FEATURES.FASTPAY)return[3,2];return[4,p.BZ.topUpWithFastpay(t)];case 1:return e=n.sent(),[2,(0,_.y)(e.redirect_url,v.pN)];case 2:return[4,p.BZ.topUp(t)];case 3:return[2,n.sent().coinTopUp];case 4:return[2]}})})()})},j=function(){return(0,r._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:return[4,(0,f.A)("".concat(h,"/api/payment/available-method"))];case 1:return[2,e.sent().parsedBody]}})})()},w=function(){return(0,a.I)({queryKey:[d.C0],queryFn:j})}},88046:(e,t,n)=>{var r=n(39824),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}}}]);
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.