1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[324,5369],{3128:(e,t,n)=>{"use strict";n.d(t,{$:()=>f,g:()=>p});var r=n(16927),i=n(4902),c=n(14678),u=n(31753),s=n(46626),a=n.n(s),o=n(50075),l=n(88202),d=n(84367),p=function(e){return(0,r._)(function(){var t,n,r,s,p;return(0,i.YH)(this,function(i){return n=(t=(0,l.$)()).COOKIE_CONSENT.ANONYMOUS_VERSION,r=e,s=a()(),p=(0,o.S7)({domain:t.COOKIE_DOMAIN}),[2,d.bj.saveAnonymousCookieConsent({ckcs_v:n,ckcs_mkt:r.ckcsMkt,ckcs_perf:r.ckcsPerf,reference_id:s}).then(function(){p.set("_ckcs_v",n),p.set("_ckcs_mkt",r.ckcsMkt),p.set("_ckcs_perf",r.ckcsPerf),p.set("_ckcs_ref",s),c.y8.success({text:u.Ru.t("pdpa-setting.manage-cookie.submit-success.toast-message")})}).catch(function(){c.y8.error({text:u.Ru.t("error.message.general")})})]})})()},f=function(e){return(0,r._)(function(){return(0,i.YH)(this,function(t){return[2,d.bj.acknowledgeConsent(e).then(function(){c.y8.success({text:u.Ru.t("pdpa-setting.manage-data-usage.ookie.submit-success.toast-message")})}).catch(function(){c.y8.error({text:u.Ru.t("error.message.general")})})]})})()}},53142:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(16927),i=n(20294),c=n(4902),u=n(37876),s=n(15039),a=n.n(s),o=n(14232),l=n(93996),d=n(17907),p=n(97038),f=n(70930),g=n(50075),_=n(10997),m=n(79514),h=n(48457),y=n(3128);let b=function(e){var t=e.isCloseAppBar,n=(0,i._)((0,g.Bd)("common"),1)[0],s=(0,l.u)(),b=s.isLoggedIn,v=s.user,x=b&&(0,f.eT)(v),k=(0,o.useRef)(null),j=(0,o.useRef)(null),N=(0,o.useRef)(null),q=(0,i._)((0,o.useState)(!1),2),w=q[0],U=q[1],H=(0,i._)((0,o.useState)(b?1:2),2),C=H[0],F=H[1],R=(0,p.X)();(0,o.useEffect)(function(){1===C&&j.current?j.current.init():2===C&&k.current?k.current.init():3===C&&N.current&&N.current.init()},[C]);var S=x?d.gj:d.gu,Y=x?d.BR:d.pk;return(0,u.jsxs)(m.wW,{isCloseAppBar:t,children:[(0,u.jsx)("div",{className:"cookie-management lo-container _pdt-24px _pdbt-64px",children:(0,u.jsxs)("div",{style:{maxWidth:"800px"},children:[(0,u.jsx)("h2",{children:n("cookie-manage-page.title")}),(0,u.jsxs)("div",{className:"_mgbt-16px _mgt-8px",children:[n("pdpa-setting.term.read")," ",(0,u.jsx)(_.Gr,{href:S,className:"tb-link -primary _tdcrt-udl",children:n("pdpa-setting.top.terms-and-conditions")})," ",n("pdpa-setting.term.and")," ",(0,u.jsx)(_.Gr,{href:Y,className:"tb-link -primary _tdcrt-udl",children:n("pdpa-setting.top.privacy-policy")})]}),(0,u.jsxs)("div",{className:"cookie-tabs _mgbt-32px _mgt-24px",children:[b&&(0,u.jsx)("div",{className:1===C?"active":"",onClick:function(){return F(1)},children:n("pdpa-setting.data-usage.title")}),(0,u.jsx)("div",{className:2===C?"active":"",onClick:function(){return F(2)},children:n("pdpa-setting.manage-cookie.title")}),b&&(0,u.jsx)("div",{className:3===C?"active":"",onClick:function(){return F(3)},children:n("pdpa-setting.3rd-party.title")})]}),1===C&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(h.Zt,{ref:j,isHideSubmitButton:!0,privacyUrl:Y}),(0,u.jsx)("div",{className:"_mgt-16px _dp-f _jtfct-fe",children:(0,u.jsx)("button",{type:"button",className:a()("tb-button _w-100pct",{"-loading":w}),onClick:function(){return(0,r._)(function(){var e;return(0,c.YH)(this,function(t){switch(t.label){case 0:if(w||!(e=j.current.getFieldsValue()))return[2];return U(!0),[4,(0,y.$)(e)];case 1:return t.sent(),U(!1),[2]}})})()},children:n("pdpa-setting.manage-cookie.submit-button.label")})})]}),2===C&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h4",{className:"_fs-600",children:n("pdpa-setting.manage-cookie.title")}),(0,u.jsxs)("p",{className:"_mgt-12px _mgbt-16px",children:[n("pdpa-setting.manage-cookie.description")," ",(0,u.jsx)("a",{href:n("pdpa-setting.manage-cookie.description-link.url"),className:"tb-link -primary _tdcrt-udl",target:"_blank",rel:"noopener noreferrer",children:n("pdpa-setting.manage-cookie.description-link.title")})]}),(0,u.jsx)(h.Wr,{ref:k,isHideSubmitButton:!0}),(0,u.jsx)("div",{className:"_mgt-16px _dp-f _jtfct-fe",children:(0,u.jsx)("button",{type:"button",className:a()("tb-button _w-100pct",{"-loading":w}),onClick:function(){return(0,r._)(function(){var e;return(0,c.YH)(this,function(t){switch(t.label){case 0:if(w||!(e=k.current.getFieldsValue()))return[2];return U(!0),[4,(0,y.g)(e)];case 1:return t.sent(),R(),U(!1),[2]}})})()},children:n("pdpa-setting.manage-cookie.submit-button.label")})})]}),3===C&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(h.qU,{ref:N,userId:null==v?void 0:v.id,isHideSubmitButton:!0})})]})}),(0,u.jsx)(_.Yh,{isLoading:w})]})}},70967:(e,t,n)=>{"use strict";n.d(t,{Gl:()=>p,Hv:()=>a,M8:()=>o,VS:()=>u,XI:()=>l,aZ:()=>s,nG:()=>d});var r=n(37876),i=n(10997),c=n(17907),u=Array(10).fill(new Date().getFullYear()).map(function(e,t){return e-t}),s="coin_topup_history",a="coin_topup",o="user_coin",l=["5000","10000","50000","100000"],d=10,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:c.gy,className:"_cl-primary-600 _tdcrt-udl",children:"Support Center"})]},"4")]}},71260:(e,t,n)=>{"use strict";n.d(t,{DS:()=>_,Rq:()=>m,SJ:()=>b,_3:()=>h,pU:()=>g,qf:()=>y});var r=n(16927),i=n(67684),c=n(62701),u=n(65699),s=n(4902),a=n(42252),o=n(79819),l=n(15526),d=n(66002),p=n(84367),f=n(93661),g=function(){var e=(0,l.n)(function(e){return(0,r._)(function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,p.jU.createProductActionLog(e)];case 1:return[2,t.sent().createProductActionLog]}})})()});return(0,i._)({referenceUserId:(0,f.Tv)()},e)},_=function(e){var t=[d.g1,e],n=(0,a.I)({queryKey:t,queryFn:function(){return(0,r._)(function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,p.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)},m=function(e){var t={id:e,page:1,limit:5};return(0,o.q)({queryKey:[d.QV,e],queryFn:function(e){var n=e.pageParam,i=void 0===n?t:n;return(0,r._)(function(){return(0,s.YH)(this,function(e){switch(e.label){case 0:return[4,p.jU.getSellerReviews(i)];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,c._)((0,i._)({},t),{page:(null==e?void 0:e.page)+1})}})},h=function(){return(0,l.n)(function(e){return p.jU.setFavoriteById(e)})},y=function(e,t){var n=t.isMobile,o=(0,u._)(t,["isMobile"]),l=[d.sj,e],f=(0,a.I)((0,i._)({queryKey:l,queryFn:function(){return(0,r._)(function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,p.jU.getProductDetailV2("".concat(e),{isMobile:n})];case 1:return[2,t.sent()]}})})()}},o));return(0,c._)((0,i._)({},f),{queryKey:l})},b=function(e){return(0,a.I)((0,i._)({queryKey:[d._],queryFn:p.jU.getMyServices},e))}},84194:(e,t,n)=>{"use strict";n.d(t,{AR:()=>m,PD:()=>v,RD:()=>k,UW:()=>b,hb:()=>h,nw:()=>y});var r=n(16927),i=n(67684),c=n(62701),u=n(4902),s=n(42252),a=n(79819),o=n(15526),l=n(88202),d=n(66002),p=n(10415),f=n(84367),g=n(70967),_=(0,l.$)().API_URL,m=function(e){return(0,s.I)({queryKey:[g.Hv,e],queryFn:function(){return(0,r._)(function(){return(0,u.YH)(this,function(t){switch(t.label){case 0:return[4,f.BZ.getCoinTopUp(e)];case 1:return[2,t.sent().getCoinTopUp]}})})()},enabled:!!e})},h=function(e,t){return(0,s.I)({queryKey:[g.aZ,e],queryFn:function(){return(0,r._)(function(){return(0,u.YH)(this,function(t){switch(t.label){case 0:return[4,f.BZ.getTopUpHistory((0,c._)((0,i._)({},e),{limit:10,order_by:"",dir:""}))];case 1:return[2,t.sent()]}})})()},keepPreviousData:!0,enabled:t})},y=function(e,t){return(0,a.q)({queryKey:[g.aZ,{year:e.year}],queryFn:function(t){var n=t.pageParam,i=void 0===n?e:n;return(0,r._)(function(){return(0,u.YH)(this,function(e){switch(e.label){case 0:return[4,f.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,c._)((0,i._)({},e),{page:t.metadata.page+1})},enabled:t})},b=function(e){return(0,s.I)({queryKey:[g.M8],queryFn:function(){return(0,r._)(function(){return(0,u.YH)(this,function(e){switch(e.label){case 0:return[4,f.BZ.getUserCoin()];case 1:return[2,e.sent().user]}})})()},enabled:e,staleTime:1/0,cacheTime:1/0})},v=function(){return(0,o.n)(function(e){var t=e.data.amount;return(0,r._)(function(){return(0,u.YH)(this,function(e){switch(e.label){case 0:if(!(0,l.$)().FEATURES.FASTPAY)return[3,2];return[4,f.BZ.topUpWithFastpay(t)];case 1:return[2,e.sent().redirect_url];case 2:return[4,f.BZ.topUp(t)];case 3:return[2,e.sent().coinTopUp];case 4:return[2]}})})()})},x=function(){return(0,r._)(function(){return(0,u.YH)(this,function(e){switch(e.label){case 0:return[4,(0,p.A)("".concat(_,"/api/payment/available-method"))];case 1:return[2,e.sent().parsedBody]}})})()},k=function(){return(0,s.I)({queryKey:[d.C0],queryFn:x})}},99342:e=>{e.exports=function(e){return void 0===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.