1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[324,5616],{10184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>q,default:()=>P});var r=n(16927),u=n(20294),i=n(4902),c=n(37876),a=n(14678),s=n(15039),o=n.n(s),l=n(80505),d=n.n(l),f=n(89099),p=n(14232),_=n(69050),v=n(10997),h=n(93996),g=n(79514),y=n(88202),m=n(80481),x=n(28341),b=n(50075),j=n(84367),w=n(78735),q=!0;let P=function(e){var t=e.isMobile,n=(0,f.useRouter)(),s=(0,u._)((0,b.Bd)("common"),1)[0],l=(0,u._)((0,b.Bd)(m.gr),1)[0],q=(0,h.u)().accessToken,P=(0,u._)((0,p.useState)(null),2),U=P[0],N=P[1];(0,p.useEffect)(function(){(0,r._)(function(){var e,t;return(0,i.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,j.Dv.getFavorites(q)];case 1:if(e=n.sent(),!(t=d()(null==e?void 0:e.favorite_products,function(e){return e.product_id})).length)return[3,3];return[4,(0,w.zh)(t)];case 2:return N(n.sent()||[]),[3,4];case 3:N([]),n.label=4;case 4:return[3,6];case 5:return n.sent(),N([]),[3,6];case 6:return[2]}})})()},[]);var T="".concat((0,y.$)().HOSTNAME).concat((0,x.NS)(n.asPath));return(0,c.jsxs)("div",{className:"favorites-page",children:[(0,c.jsx)(v.W8,{url:T,alternateLink:T}),(0,c.jsx)(v.po,{wrapper:function(e){return t?(0,c.jsx)(g.wW,{children:e}):(0,c.jsx)(g.w7,{children:e})},children:(0,c.jsx)("div",{className:o()("favorite",{"_mgv-48px lo-container-desktop":!t,"_mgv-24px _pdh-12px":t}),children:(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{className:o()("_ffml-secondary",{"_fs-800":!t,"_fs-500 _fw-600":t}),children:l("user-menu.favorite")}),null===U&&(0,c.jsxs)("div",{className:"lo-product-card-container _mgt-32px-md _mgt-16px",style:{"--column":t?1:5},children:[(0,c.jsx)(a.Rl,{}),(0,c.jsx)(a.Rl,{}),(0,c.jsx)(a.Rl,{}),(0,c.jsx)(a.Rl,{}),(0,c.jsx)(a.Rl,{})]}),(0,c.jsx)("div",{className:"lo-product-card-container _mgt-32px-md _mgt-16px",style:{"--column":t?1:5},children:(null==U?void 0:U.length)>0&&(null==U?void 0:U.map(function(e){var n,r;return(0,c.jsx)(_.c,{productId:e.objectID,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,reviewCount:null==e?void 0:e.review_count,responseTime:null==e||null==(r=e.user)||null==(n=r.stats)?void 0:n.response_time,productCardDecor:null==e?void 0:e.product_card_decor,productImageAlt:e.title,variant:t?"horizontal":void 0,overrideSource:"favorite-freelance"},e.objectID)}))}),null!==U&&(null==U?void 0:U.length)===0&&(0,c.jsx)("div",{className:"_bgcl-neutral-100 _pdv-32px _pdh-16px _w-100pct _tal-ct _bdrd-4px",children:(0,c.jsx)("p",{className:"_ffml-secondary _cl-text-default-200 _fs-700 _fw-600",children:s("favorites-page.title.nonfavorite")})})]})})})]})}},22760:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/me/favorites",function(){return n(10184)}])},70967:(e,t,n)=>{"use strict";n.d(t,{Gl:()=>f,Hv:()=>s,M8:()=>o,VS:()=>c,XI:()=>l,aZ:()=>a,nG:()=>d});var r=n(37876),u=n(10997),i=n(17907),c=Array(10).fill(new Date().getFullYear()).map(function(e,t){return e-t}),a="coin_topup_history",s="coin_topup",o="user_coin",l=["5000","10000","50000","100000"],d=10,f=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)(u.Gr,{href:i.gy,className:"_cl-primary-600 _tdcrt-udl",children:"Support Center"})]},"4")]}},71260:(e,t,n)=>{"use strict";n.d(t,{DS:()=>v,Rq:()=>h,SJ:()=>m,_3:()=>g,pU:()=>_,qf:()=>y});var r=n(16927),u=n(67684),i=n(62701),c=n(65699),a=n(4902),s=n(42252),o=n(79819),l=n(15526),d=n(66002),f=n(84367),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,u._)({referenceUserId:(0,p.Tv)()},e)},v=function(e){var t=[d.g1,e],n=(0,s.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,u._)({queryKey:t},n)},h=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,u=void 0===n?t:n;return(0,r._)(function(){return(0,a.YH)(this,function(e){switch(e.label){case 0:return[4,f.jU.getSellerReviews(u)];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,i._)((0,u._)({},t),{page:(null==e?void 0:e.page)+1})}})},g=function(){return(0,l.n)(function(e){return f.jU.setFavoriteById(e)})},y=function(e,t){var n=t.isMobile,o=(0,c._)(t,["isMobile"]),l=[d.sj,e],p=(0,s.I)((0,u._)({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()]}})})()}},o));return(0,i._)((0,u._)({},p),{queryKey:l})},m=function(e){return(0,s.I)((0,u._)({queryKey:[d._],queryFn:f.jU.getMyServices},e))}},84194:(e,t,n)=>{"use strict";n.d(t,{AR:()=>h,PD:()=>x,RD:()=>j,UW:()=>m,hb:()=>g,nw:()=>y});var r=n(16927),u=n(67684),i=n(62701),c=n(4902),a=n(42252),s=n(79819),o=n(15526),l=n(88202),d=n(66002),f=n(10415),p=n(84367),_=n(70967),v=(0,l.$)().API_URL,h=function(e){return(0,a.I)({queryKey:[_.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:[_.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,i._)((0,u._)({},e),{limit:10,order_by:"",dir:""}))];case 1:return[2,t.sent()]}})})()},keepPreviousData:!0,enabled:t})},y=function(e,t){return(0,s.q)({queryKey:[_.aZ,{year:e.year}],queryFn:function(t){var n=t.pageParam,u=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(u)];case 1:return[2,e.sent()]}})})()},getNextPageParam:function(t){if(!(t.metadata.total_count<t.metadata.limit*t.metadata.page))return(0,i._)((0,u._)({},e),{page:t.metadata.page+1})},enabled:t})},m=function(e){return(0,a.I)({queryKey:[_.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})},x=function(){return(0,o.n)(function(e){var t=e.data.amount;return(0,r._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:if(!(0,l.$)().FEATURES.FASTPAY)return[3,2];return[4,p.BZ.topUpWithFastpay(t)];case 1:return[2,e.sent().redirect_url];case 2:return[4,p.BZ.topUp(t)];case 3:return[2,e.sent().coinTopUp];case 4:return[2]}})})()})},b=function(){return(0,r._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:return[4,(0,f.A)("".concat(v,"/api/payment/available-method"))];case 1:return[2,e.sent().parsedBody]}})})()},j=function(){return(0,a.I)({queryKey:[d.C0],queryFn:b})}},99342:e=>{e.exports=function(e){return void 0===e}}},e=>{e.O(0,[6018,636,6593,8792],()=>e(e.s=22760)),_N_E=e.O()}]);
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.