(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5017],{33314:(e,n,s)=>{"use strict";s.r(n),s.d(n,{default:()=>o});var r=s(95155),t=s(68220),i=s(15239),l=s(12115);function o(e){var n;let{src:s="",alt:o,...a}=e,[u,d]=(0,l.useState)(!1),{settings:c}=(0,t.t)();return(0,r.jsx)(i.default,{unoptimized:!0,src:u?null==c||null==(n=c.images)?void 0:n.not_found:null!=s?s:"/products/Placeholder.png",alt:o,onError:()=>d(!0),...a})}},45973:(e,n,s)=>{"use strict";s.d(n,{default:()=>d});var r=s(95155),t=s(66759),i=s(86639),l=s(95604),o=s(23723),a=s(35944),u=s(97005);function d(e){var n,s,d;let{currentPage:c}=e,h=(0,l.useLocale)(),m=(0,l.useTranslations)("navbar"),{refetch:v,isLoading:b,isFetching:P,data:f}=(0,i.useSuspenseQuery)({queryKey:["/auctions?page=".concat(c),h],queryFn:()=>(0,u.A)({endPoint:"/auctions?page=".concat(c)})}),{data:p}=(0,i.useSuspenseQuery)({queryKey:["/user/get/profile"],queryFn:()=>(0,t.A)()}),x=(null==f||null==(n=f.data)?void 0:n.auctions)||[],g=(null==f||null==(d=f.data)||null==(s=d.meta)?void 0:s.last_page)||1;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("h1",{className:"font-bold md:text-4xl text-xl text-main my-6",children:m("auctions")}),(0,r.jsx)(a.A,{currentPage:c,refetch:v,isLoading:b,isFetching:P})]}),(0,r.jsx)("div",{className:"min-h-[1090px]",children:(0,r.jsx)(o.A,{profile:p,isSinglePage:!0,currentPage:c,totalNumberOfPages:g,auctions:x})})]})}},78081:(e,n,s)=>{Promise.resolve().then(s.bind(s,87958)),Promise.resolve().then(s.bind(s,33742)),Promise.resolve().then(s.bind(s,99776)),Promise.resolve().then(s.bind(s,47785)),Promise.resolve().then(s.bind(s,25979)),Promise.resolve().then(s.bind(s,59441)),Promise.resolve().then(s.bind(s,80549)),Promise.resolve().then(s.bind(s,1043)),Promise.resolve().then(s.bind(s,11515)),Promise.resolve().then(s.bind(s,53455)),Promise.resolve().then(s.bind(s,45339)),Promise.resolve().then(s.bind(s,5947)),Promise.resolve().then(s.bind(s,86639)),Promise.resolve().then(s.bind(s,45973))}},e=>{e.O(0,[5442,2978,6711,5897,2202,5604,4909,2619,7527,1356,1668,595,4130,2912,5849,8441,1255,7358],()=>e(e.s=78081)),_N_E=e.O()}]);