1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[612],{261:(e,l,t)=>{"use strict";t.d(l,{i:()=>o});var a=t(4930),s=t(8026),i=t(8856),n=t(6507);let o=e=>{let{title:l,children:t,className:o,titleClassName:r="",contentClassName:c="",contentPadding:d=0,mobileOnly:u=!1,defaultOpen:h=!1,maxHeight:m="300px",id:p}=e,[x,v]=(0,s.useState)(h),[_,g]=(0,s.useState)(h?m:"0px"),f=(0,s.useRef)(null),j=(0,i.Pp)();return(0,s.useEffect)(()=>{let e=()=>{u&&j?g("0px"):u||g(x?m:"0px")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[j,u,x,m]),(0,a.jsxs)("div",{className:"".concat(o," ").concat(x?"is-open":""),children:[(0,a.jsxs)("div",{className:"ta-filters-criteria-title flex justify-between ".concat(x?"not-collapsed":""," ").concat(r),onClick:()=>{(j||!u)&&g(e=>{let l=e;return l="0px"===l?m||"".concat(f.current.scrollHeight+16,"px"):"0px",v(!x),l})},role:"button",tabIndex:0,"aria-expanded":"true","aria-controls":p,children:[(0,a.jsx)("p",{className:"mb-0",children:l}),(0,a.jsx)(n.A,{icon:x?"chevron_down":"chevron_right"})]}),(0,a.jsx)("div",{id:p,className:"accordion-content flex flex-col transition-all duration-300 ease-out ".concat(x?"show overflow-auto":"overflow-hidden"," ").concat(c),style:{maxHeight:j||!u?_:"1000px"},ref:f,children:t})]})}},1678:e=>{e.exports={lotItemDesc:"apiLot_lotItemDesc__6DF7t",lotItemStatus:"apiLot_lotItemStatus__cAIvC",apiLotLink:"apiLot_apiLotLink__G8PbH"}},5669:(e,l,t)=>{"use strict";t.d(l,{A:()=>p});var a=t(4930);t(8026);var s=t(1181),i=t(1841),n=t(6661),o=t.n(n),r=t(2273),c=t(618),d=t(1678),u=t.n(d),h=t(653),m=t(9193);function p(e){var l,t,n,d,p,x,v,_,g,f,j,b,y,N;let{lot:w,className:k,canBookmark:C=!1,source:I="auction",listId:L="",listName:S="",index:E=0,result:q={search_term:"",position:0}}=e,D=(0,i.useRouter)(),A=(0,c.c)("lot"),V=(0,r.QZ)((0,s.KY)(null==w?void 0:w.title,D.locale)),P=Math.round(100*parseFloat(null==w||null==(l=w.financeItem)?void 0:l.hammer_bp_incl_vat))/100,R=m.xp.includes(null==w?void 0:w.uuid),B=null==w?void 0:w.auction,M=(null==B?void 0:B.status)&&(null==B?void 0:B.status)==="completed"||!(null==B?void 0:B.status),z=(0,s.a0)(B,null==w?void 0:w.department_uuid),F=(0,s.Sl)(B);return(0,a.jsx)("div",{className:"ta-lot-list-item ".concat(k," relative border-b border-grey-filet"),onClick:()=>{let e="click_lot_card";"auction"===I?e="click_lot_from_vente":"search"===I&&(e="click_search_result");let l={lot_id:L,lot_name:V,lot_estimate_low:null==w?void 0:w.low,lot_estimate_high:null==w?void 0:w.high,vente_id:null==B?void 0:B.uuid,...(null==w?void 0:w.hammer_price)>0&&M?{lot_result:(0,s.xf)(P)}:{}};(null==q?void 0:q.search_term)&&(l={search_term:null==q?void 0:q.search_term,result_type:"lot",result_name:V,result_position:null==q?void 0:q.position}),(0,h.xR)(e,l)},children:(0,a.jsxs)("div",{className:"ta-lot-list-item-inner flex flex-col",children:[(0,a.jsxs)("div",{className:"ta-lot-list-item-image-wrapper relative",children:[(0,a.jsx)("div",{className:"ta-lot-list-item-thumb relative aspect-[270/210]",children:(0,a.jsx)("a",{href:(0,s.E8)({lot:w,auction:B,locale:D.locale}),className:"absolute inset-0 hover:no-underline",children:"auction"!==I&&(null==w||null==(d=w.primary_image)||null==(n=d.data)||null==(t=n.lg)?void 0:t.url)?(0,a.jsx)(o(),{src:null==w||null==(v=w.primary_image)||null==(x=v.data)||null==(p=x.lg)?void 0:p.url,className:"object-contain",fill:!0,sizes:"(max-width: 768px) 50vw, 25vw",alt:V||""}):"auction"===I&&(null==w||null==(_=w.images)?void 0:_.length)>0&&(null==w||null==(j=w.images[0])||null==(f=j.data)||null==(g=f.lg)?void 0:g.url)?(0,a.jsx)(o(),{src:null==w||null==(N=w.images[0])||null==(y=N.data)||null==(b=y.lg)?void 0:b.url,className:"object-contain",fill:!0,sizes:"(max-width: 768px) 50vw, 25vw",alt:V||""}):null})})," "]})," ",(0,a.jsx)("div",{className:"ta-lot-list-item-content h-full pb-6 md:pb-10",children:(0,a.jsxs)("div",{className:"ta-lot-list-item-desc h-full flex flex-col ".concat(u().lotItemDesc," pt-4"),children:[(0,a.jsxs)("div",{className:"ta-lotno-bids-info flex justify-between",children:[!F&&(0,a.jsxs)("p",{className:"ta-lot-lotno uppercase ui-2 text-nowrap block mb-1",children:[(0,a.jsx)("span",{className:"ta-lot-view-lotno-label",children:"Lot"}),(0,a.jsx)("span",{className:"ta-lot-ID font-bold ml-1",children:null==w?void 0:w.lot_no})]})," ",(0,a.jsxs)("p",{className:"sr-only",children:["Stock no: ",null==w?void 0:w.stock_no]})]})," ",(0,a.jsx)("a",{href:(0,s.E8)({lot:w,auction:B,locale:D.locale}),className:"".concat(u().apiLotLink," block uppercase"),children:(0,a.jsx)("p",{className:"ta-lot-list-item-title h5 w-10/12",dangerouslySetInnerHTML:{__html:V}})}),((null==w?void 0:w.low)||(null==w?void 0:w.high))&&(null==w?void 0:w.status)!=="sold"&&!z?(0,a.jsxs)("div",{className:"mt-3 mb-2 text-grey flex items-center justify-between estimation",children:[(0,a.jsx)("p",{children:A("estimate_label")}),(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{children:(0,s.xf)(null==w?void 0:w.low)})," - ",(0,a.jsxs)("span",{children:[(0,s.xf)(null==w?void 0:w.high)," â¬"]})]})]}):null,(null==w?void 0:w.hammer_price)>0&&M&&!R?(0,a.jsxs)("div",{className:"mb-4 mt-3 flex items-center justify-between",children:[(0,a.jsxs)("p",{children:[A("lot_result")," :"," ",(0,a.jsxs)("span",{children:[(0,s.xf)(P)," â¬"]})," "]}),(0,a.jsx)("p",{})]}):null,(null==w?void 0:w.hammer_price)>0&&M&&R?(0,a.jsxs)("div",{className:"mb-4 mt-3 flex items-center justify-between",children:[(0,a.jsx)("p",{children:A("lot_result")}),(0,a.jsx)("p",{})]}):null]})})]})})}},6137:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSP:()=>C,default:()=>I});var a=t(4930),s=t(498),i=t.n(s),n=t(8026),o=t(9087),r=t(6617),c=t(618),d=t(4112),u=t(1684),h=t(9876),m=t(1841),p=t(2778),x=t(261),v=t(5669),_=t(1181),g=t(8556),f=t(6507),j=t(1820),b=t(1934),y=t(966),N=t(6061),w=t(6366),k=t(653),C=!0;function I(e){var l,t,s,C,I,L,S,E,q,D,A,V,P,R,B,M,z,F,G,O,Y,H,K;let{story:T,settings:U,lotsData:X,ventesData:Z,actualitesData:Q,departmentsWithCountData:W,departmentsWithCategoriesData:$}=e;(0,r.ZR)({cta:h.R,header_menu:d.A,push_item:u.A,link_list:p.A}),T=(0,r.kY)(T);let J=(0,m.useRouter)();(0,w.usePathname)();
1let ee=J.query,el=(0,c.c)(),[et,ea]=(0,n.useState)(ee.title||ee.keyword||""),[es,ei]=(0,n.useState)(!1),[en,eo]=(0,n.useState)(X),[er,ec]=(0,n.useState)(Z),[ed,eu]=(0,n.useState)(Q),eh=null!=(R=null==(l=en||X)?void 0:l.facetDistribution)?R:{},em=["ventes","actualites"].includes(ee.tab)?ee.tab:"lots",ep="ventes"===em?er||Z:"actualites"===em?ed||Q:en||X,ex=null!=(B=null==(t=er||Z)?void 0:t.count)?B:0,ev=null!=(M=null==(s=ed||Q)?void 0:s.count)?M:0,[e_,eg]=(0,n.useState)((null==X?void 0:X.results)||[]),[ef,ej]=(0,n.useState)({}),[eb,ey]=(0,n.useState)(!1),[eN,ew]=(0,n.useState)([]),ek=(0,n.useRef)({}),eC=(0,n.useRef)({}),[eI,eL]=(0,n.useState)({low:ee.price_start||"",high:ee.price_end||""}),[eS,eE]=(0,n.useState)({low:ee.lot_no_start||"",high:ee.lot_no_end||""}),eq=ee.auction_status||"completed",eD=!!(ee.keyword||ee.title),eA=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=null!==l?l:et;if(""!==t.trim()&&t.trim().length<2)return;ei(!0),eL({low:"",high:""}),eE({low:"",high:""}),ej({});let a={page:1};t.trim()&&(a.keyword=t.trim()),J.push({pathname:"/search",query:a})},eV=()=>{ea(""),J.replace({pathname:"/search",query:{}},void 0,{shallow:!0})};(0,n.useEffect)(()=>{if(ei(!1),null==X?void 0:X.results){eg(null==X?void 0:X.results),eo(X);let e=ee.keyword||ee.title||"";"lots"===em&&(e&&((0,k.Ar)({searchTerm:e,resultsCount:X.count||0,searchCategory:"lots"}),(0,k.qt)("view_search_results",{search_term:e,search_results_count:X.count||0,search_category:"lots"})),(0,k.az)({listId:"recherche-lots",listName:e?"Recherche: ".concat(e):"Tous les lots",items:X.results.map((e,l)=>(0,k.aD)(e,J.locale,l+1))}))}},[X,em]),(0,n.useEffect)(()=>{if(Z){ec(Z);let e=ee.keyword||ee.title||"";"ventes"===em&&e&&((0,k.Ar)({searchTerm:e,resultsCount:Z.count||0,searchCategory:"ventes"}),(0,k.qt)("view_search_results",{search_term:e,search_results_count:Z.count||0,search_category:"ventes"}))}},[Z,em]),(0,n.useEffect)(()=>{if(Q){eu(Q);let e=ee.keyword||ee.title||"";"actualites"===em&&e&&((0,k.Ar)({searchTerm:e,resultsCount:Q.count||0,searchCategory:"actualites"}),(0,k.qt)("view_search_results",{search_term:e,search_results_count:Q.count||0,search_category:"actualites"}))}},[Q,em]),(0,n.useEffect)(()=>{ea(ee.title||ee.keyword||"")},[ee.title,ee.keyword]),(0,n.useEffect)(()=>{if(ee.category){let e=ee.category.split(",").filter(e=>e.trim()),l={};e.forEach(e=>{l[e]=!0}),ej(l)}else ej({})},[ee.category]);let eP=(e,l)=>{let t=e.target.value,a={...eI,[l]:t};eL(a),ei(!0);let s={...ee,price_start:a.low,price_end:a.high,page:1};delete s.slug,(0,k.UP)("filter_lots",{filter_type:"price_range",filter_value:"".concat(a.low,"-").concat(a.high)}),eB(s)},eR=(e,l)=>{let t=e.target.value,a={...eS,[l]:t};eE(a),ei(!0);let s={...ee,lot_no_start:a.low,lot_no_end:a.high,page:1};delete s.slug,(0,k.UP)("filter_lots",{filter_type:"lot_range",filter_value:"".concat(a.low,"-").concat(a.high)}),eB(s)},eB=(0,n.useMemo)(()=>(0,_.sg)(e=>{J.push({pathname:"/search",query:e})},500),[J]),eM=()=>{ei(!0);let e={...ee,page:1};delete e.slug,J.push({pathname:"/search",query:e})},ez=()=>{if(ei(!0),ee.page>1){let e={...ee,page:ee.page-1};delete e.slug,J.push({pathname:"/search",query:e})}},eF=()=>{ei(!0);let e=Math.ceil((null==ep?void 0:ep.count)/(null==ep?void 0:ep.limit));if(ee.page<e){let e={...ee,page:ee.page+1};delete e.slug,J.push({pathname:"/search",query:e})}},eG=()=>{ei(!0);let e=Math.ceil((null==ep?void 0:ep.count)/(null==ep?void 0:ep.limit)),l={...ee,page:e};delete l.slug,J.push({pathname:"/search",query:l})},eO=e=>{ei(!0);let l={...ee,page:1};delete l.slug,"ventes"===e||"actualites"===e?l.tab=e:(delete l.tab,l.auction_status=e),J.push({pathname:"/search",query:l})},eY=()=>{ey(!eb)},eH=null!=(z=null==(I=en||X)||null==(C=I.facetDistribution)?void 0:C.departments_list)?z:[],eK=(()=>{if(!ee.department||eH.some(e=>e.uuid===ee.department))return eH;let e=eC.current[ee.department];return e?[...eH,{uuid:ee.department,name:e,count:0}]:eH})(),eT=null!=(F=eK.find(e=>e.uuid===ee.department))?F:null,eU=null!=(G=null==(S=en||X)||null==(L=S.facetDistribution)?void 0:L.categories_list)?G:[],eX=(null!=(O=ee.category)?O:"").split(",").filter(
1Boolean),eZ=(()=>{let e=new Set(eU.map(e=>e.uuid));return[...eU,...eX.filter(l=>!e.has(l)&&ek.current[l]).map(e=>({uuid:e,name:ek.current[e],count:0}))]})();(0,n.useEffect)(()=>{eU.forEach(e=>{(e.name.fr||e.name.en)&&(ek.current[e.uuid]=e.name)}),eH.forEach(e=>{(e.name.fr||e.name.en)&&(eC.current[e.uuid]=e.name)}),ew(eZ)},[en,X]);let eQ=()=>{let e=(null==ep?void 0:ep.page)||1,l=(null==ep?void 0:ep.count)||0,t=(null==ep?void 0:ep.limit)||50,s=l>0&&t>0?Math.ceil(l/t):0,i=Math.max(1,e-3)||1,n=Math.min(s,e+3)||1;return 0===s?null:(0,a.jsxs)("ul",{role:"menubar","aria-disabled":"false","aria-label":"Pagination",className:"pagination flex gap-1 ta-lot-list-pagination b-pagination",children:[(0,a.jsx)("li",{role:"presentation","aria-hidden":1===e,className:"page-item px-1 disabled",children:(0,a.jsx)("button",{role:"menuitem","aria-label":"Go to first page","aria-disabled":1===e,className:"page-link",onClick:eM,disabled:1===e,children:"\xab"})}),(0,a.jsx)("li",{role:"presentation","aria-hidden":1===e,className:"page-item px-1 disabled",children:(0,a.jsx)("button",{role:"menuitem","aria-label":"Go to previous page","aria-disabled":1===e,className:"page-link",onClick:ez,disabled:1===e,children:"â¹"})}),Array.from({length:n-i+1},(e,l)=>i+l).map(l=>(0,a.jsx)("li",{role:"presentation",className:"page-item px-1 ".concat(l===e?"active":""),children:(0,a.jsx)("button",{role:"menuitemradio",type:"button","aria-label":"Go to page ".concat(l),"aria-checked":l===e,"aria-posinset":l,"aria-setsize":s,tabIndex:l===e?0:-1,className:"page-link",onClick:()=>(e=>{ei(!0);let l={...ee,page:e};delete l.slug,J.push({pathname:"/search",query:l})})(l),disabled:l===e,children:l})},l)),(0,a.jsx)("li",{role:"presentation","aria-hidden":e===s,className:"page-item px-1",children:(0,a.jsx)("button",{type:"button",tabIndex:-1,"aria-label":"Go to next page",className:"page-link",onClick:eF,disabled:e===s,children:"âº"})}),(0,a.jsx)("li",{role:"presentation","aria-hidden":e===s,className:"page-item px-1",children:(0,a.jsx)("button",{role:"menuitem",type:"button",tabIndex:-1,"aria-label":"Go to last page",className:"page-link",onClick:eG,disabled:e===s,children:"\xbb"})})]})};return(0,a.jsxs)(o.A,{settings:U,children:[(0,a.jsx)(i(),{children:(0,a.jsx)("meta",{name:"robots",content:J.asPath.includes("lots?")?"noindex":"index"})}),(0,a.jsxs)("div",{className:"relative artisio-webapp-page-lots ".concat(es?"cursor-progress":""),children:[(0,a.jsxs)("div",{className:"container",children:[ee.keyword?(0,a.jsxs)("p",{className:"h4 font-ivar py-10 uppercase text-center",children:[el("search.results_display_term")," ",(0,a.jsxs)("span",{className:"text-grey",children:['"',et,'"']})]}):(0,a.jsx)("p",{className:"h4 font-ivar py-10 uppercase text-center",children:el("search.results_display_term_no_search")}),(0,a.jsx)("div",{className:"flex gap-2 md:gap-6 border-b border-grey-filet justify-center",children:(0,a.jsxs)("div",{className:"c-lots-type-switch flex gap-2 md:gap-6 mb-4 md:mb-6",children:[(0,a.jsxs)("button",{className:"flex ui-2 py-3 c-lots-type-switch-btn ".concat("lots"===em&&"completed"===eq?"active":"!font-regular"," ").concat(es?"cursor-wait":""),onClick:()=>eO("completed"),children:[el("search.past_lots_option"),eD&&(0,a.jsxs)(a.Fragment,{children:[" (",null!=(Y=null==(E=eh.auction_status)?void 0:E.completed)?Y:0,")"]})]}),(0,a.jsxs)("button",{className:"flex ui-2 py-3 c-lots-type-switch-btn ".concat("lots"===em&&"published"===eq?"active":"!font-regular"," ").concat(es?"cursor-wait":""),onClick:()=>eO("published"),children:[el("search.upcoming_lots_option"),eD&&(0,a.jsxs)(a.Fragment,{children:[" (",null!=(H=null==(q=eh.auction_status)?void 0:q.published)?H:0,")"]})]}),(0,a.jsxs)("button",{className:"flex ui-2 py-3 c-lots-type-switch-btn ".concat("ventes"===em?"active":"!font-regular"," ").concat(es?"cursor-wait":""),onClick:()=>eO("ventes"),children:[el("search.ventes_option"),eD&&(0,a.jsxs)(a.Fragment,{children:[" (",ex,")"]})]}),(0,a.jsxs)("button",{className:"flex ui-2 py-3 c-lots-type-switch-btn ".concat("actualites"===em?"active":"!font-regular"," ").concat(es?"cursor-wait":""),onClick:()=>eO("actualites"),children:[el("search.actualites_option"),eD&&(0,a.jsxs)(a.Fragment,{children:[" (",ev,")"]})]})]})})]}),(0,a.jsx)("div",{id:"artisioContent",className:"w-full",children:(0,a.jsx)("div",{className:"ta-app ta-overlay-filters",children:(0,a.jsxs)("div",{className:"ta-app-router-view container",children:[(0,a.jsxs)("div",{className:"ta-lot-keyword-search flex flex-row-reverse",children:[et&&!es&&ee.keyword&&(0,a.jsx)("button",{className:"ta-lot-keyword-clear-btn absolute top-4 right-8 md:right-10",onClick:eV,type:"button",title:"Clear search",children:(0,a.jsx)(f.A,{icon:"close",size:16})}),es||!((null==et?void 0:et.length)>0)||(null==e_?void 0:e_.length)!==0||ee.keyword?null:(0,a.jsx)("button",{className:"absolute right-8 md:right-10 top-4",onClick:eA,disabled:es,children:(0,a.jsx)(f.A,{icon:"mignifying",className:""})}),(0,a.jsx)("input",{type:"text",placeholder:el("lot.search.search_placeholder"),className:"form-control",id:"__BVID__19",value:et,onChange:e=>{let l=e.target.value;ea(l),""===l&&eV()},onKeyDown:e=>{"Enter"===e.key&&!es&&et.trim().length>=2&&eA(e)}}),es&&(0,a.jsx)(b.y,{className:"absolute right-8 md:right-12 top-4"})]}),!eD&&(0,a.jsx)("div",{className:"pb-24"}),eD&&(0,a.jsxs)(a.Fragment,{children:["ventes"===em&&(0,a.jsxs)("div",{className:"ta-lot-section py-4",children:[(0,a.jsx)("div",{className:"ta-lot-list-header flex justify-between items-center mb-4",children:(0,a.jsx)("div",{className:"ta-total-items-found",children:el("lot.search.ventes_found",{total:ex})})}),(0,a.jsx)("div",{className:"flex flex-col",children:null==(A=er||Z)||null==(D=A.results)?void 0:D.map(e=>(0,a.jsx)("div",{className:"relative border-b py-6 md:py-8 border-grey-filet",children:(0,a.jsx)(y.Y,{data:e,isResult:!0,isAu
1ctionPage:!0})},e.uuid))}),(0,a.jsxs)("div",{className:"ta-lot-list-footer mt-12 md:flex justify-between",children:[(0,a.jsx)("div",{className:"ta-lot-pagination-summary",children:el("lot.search.showing",{from:1+((null==ep?void 0:ep.limit)*(null==ep?void 0:ep.page)-(null==ep?void 0:ep.limit))||0,to:(null==ep?void 0:ep.count)>=(null==ep?void 0:ep.limit)?(null==ep?void 0:ep.limit)*(null==ep?void 0:ep.page)||0:null==ep?void 0:ep.count,total:(null==ep?void 0:ep.count)||0})}),eQ()]})]}),"actualites"===em&&(0,a.jsxs)("div",{className:"ta-lot-section py-4",children:[(0,a.jsx)("div",{className:"ta-lot-list-header flex justify-between items-center mb-4",children:(0,a.jsx)("div",{className:"ta-total-items-found",children:el("lot.search.actualites_found",{total:ev})})}),(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:null==(P=ed||Q)||null==(V=P.results)?void 0:V.map(e=>(0,a.jsx)(N.C,{data:e,imageContainerClass:"aspect-[16/10]"},e.uuid))}),(0,a.jsxs)("div",{className:"ta-lot-list-footer mt-12 md:flex justify-between",children:[(0,a.jsx)("div",{className:"ta-lot-pagination-summary",children:el("lot.search.showing",{from:1+((null==ep?void 0:ep.limit)*(null==ep?void 0:ep.page)-(null==ep?void 0:ep.limit))||0,to:(null==ep?void 0:ep.count)>=(null==ep?void 0:ep.limit)?(null==ep?void 0:ep.limit)*(null==ep?void 0:ep.page)||0:null==ep?void 0:ep.count,total:(null==ep?void 0:ep.count)||0})}),eQ()]})]}),"ventes"!==em&&"actualites"!==em&&(0,a.jsxs)("div",{className:"ta-lots-and-filters",children:[(0,a.jsxs)("div",{className:"ta-filters ".concat(eb?"ta-filter--open":""),children:[(0,a.jsxs)("div",{className:"ta-filters-header flex justify-between",children:[(0,a.jsx)("h3",{className:"ta-filters-title m-0",children:el("lot.filters")}),(0,a.jsx)("button",{className:"ta-btn-icon ta-filter-close-btn",onClick:eY,style:{marginLeft:"-0.75rem"},children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",style:{width:"28px"},children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),(0,a.jsxs)("div",{className:"ta-lot-filter-list",children:[(0,a.jsx)(x.i,{className:"ta-filters-criteria ta-filter-group",title:el("lot.search.filter_departments"),id:"collapse-departments",defaultOpen:!0,children:(0,a.jsx)("fieldset",{className:"form-group ta-auction-category-filter px-2",id:"__BVID__545","data-lenis-prevent":!0,children:(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"ta-input-list-group-item",children:eK.map(e=>{let l=(0,_.KY)(e.name,J.locale);return(0,a.jsx)("div",{children:(0,a.jsxs)("button",{className:"text-left text-dark ".concat((null==eT?void 0:eT.uuid)===e.uuid?"font-bold":""),onClick:()=>(e=>{ei(!0);let l={...ee,department:e};delete l.category,ej({}),delete l.slug,(0,k.UP)("filter_lots",{filter_type:"department",filter_value:e}),J.push({pathname:"/search",query:l})})(e.uuid),children:[l," ",(0,a.jsxs)("small",{children:["(",e.count,")"]})]})},"fdpt".concat(e.uuid))})})})})}),eT&&eZ.length>0&&(0,a.jsx)(x.i,{className:"ta-filters-criteria ta-filter-group",title:el("lot.search.filter_categories"),id:"collapse-categories",defaultOpen:!0,children:(0,a.jsxs)("div",{"aria-label":"Categories",children:[(0,a.jsx)("input",{type:"text",placeholder:el("lot.filter_category_placeholder_input"),className:"form-control form-control-sm",id:"__BVID__38",onChange:e=>{let l=e.target.value;0===l.length?ew(eZ):ew(eZ.filter(e=>(0,_.KY)(e.name,J.locale).toLowerCase().includes(l.toLowerCase())))}}),(0,a.jsx)("div",{className:"ta-checkbox-list mt-1","data-lenis-prevent":!0,style:{maxHeight:"none",overflow:"visible"},children:eN.map(e=>{var l,t;return(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex ta-checkbox-list-item",children:(0,a.jsxs)("div",{className:"custom-control custom-checkbox",children:[(0,a.jsx)("input",{type:"checkbox",className:"custom-control-input",checked:ef[e.uuid],onChange:l=>((e,l)=>{let t=e.target.checked;ej({...ef,[l]:t}),ei(!0);let a={...ee},s=[];ee.category&&(s=ee.category.split(",").filter(e=>e.trim())),t?s.includes(l)||s.push(l):s=s.filter(e=>e!==l),s.length>0?a.category=s.join(","):delete a.category,delete a.slug,(0,k.UP)("filter_lots",{filter_type:"department",filter_value:a.category}),J.push({pathname:"/search",query:a})})(l,e.uuid),id:"scateg-".concat(e.uuid)}),(0,a.jsxs)("label",{className:"custom-control-label",htmlFor:"scateg-".concat(e.uuid),children:[(0,_.KY)(e.name,J.locale)," ",(0,a.jsxs)("small",{children:["(",null!=(t=null==(l=eh.category_uuid)?void 0:l[e.uuid])?t:0,")"]})]})]})})},"fclcateg".concat(e.uuid))})})]})}),(0,a.jsx)(x.i,{className:"ta-filters-criteria ta-filter-group",title:el("catalogue.filter_price_range"),id:"collapse-for-price",defaultOpen:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"col",children:(0,a.jsx)("input",{type:"number",placeholder:el("search.lot_filter_low_placeholder"),className:"form-control",id:"__BVID__47",value:eI.low,onChange:e=>eP(e,"low")})}),(0,a.jsx)("div",{className:"col",children:(0,a.jsx)("input",{type:"number",placeholder:el("search.lot_filter_high_placeholder"),className:"form-control",id:"__BVID__48",value:eI.high,onChange:e=>eP(e,"high")})})]})}),(0,a.jsx)(x.i,{className:"ta-filters-criteria ta-filter-group",title:el("catalogue.filter_lot_range"),id:"collapse-for-lotno",defaultOpen:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"col",children:(0,a.jsx)("input",{type:"number",placeholder:el("search.lot_filter_low_placeholder"),className:"form-control",id:"__BVID__59",value:e
1S.low,onChange:e=>eR(e,"low")})}),(0,a.jsx)("div",{className:"col",children:(0,a.jsx)("input",{type:"number",placeholder:el("search.lot_filter_high_placeholder"),className:"form-control",id:"__BVID__60",value:eS.high,onChange:e=>eR(e,"high")})})]})}),(0,a.jsx)(g.$,{className:"btn-clear justify-center",onClick:()=>{ei(!0),eL({low:"",high:""}),eE({low:"",high:""}),ej({});let e={};ee.keyword&&(e.keyword=ee.keyword),ee.title&&(e.title=ee.title),J.push({pathname:"/search",query:e})},children:el("common.cta_clear_filters")})]}),(0,a.jsx)("div",{className:"ta-filters-footer",children:(0,a.jsx)("div",{className:"ta-footer-buttons"})})]}),(0,a.jsxs)("div",{className:"ta-lot-section",children:[(0,a.jsxs)("div",{className:"ta-lot-section-title flex justify-between items-center",children:[(0,a.jsx)("p",{className:"h5 mb-0",children:"Lots"}),(0,a.jsxs)("button",{className:"ta-filter-menu-btn items-center",onClick:eY,children:[(0,a.jsx)("span",{className:"ta-filter-menu-btn-label",children:el("lot.filters")}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",style:{width:"24px"},children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 9.75V10.5"})})]})]}),(0,a.jsxs)("div",{className:"ta-lot-list-header flex justify-between items-center md:grid grid-cols-12 gap-1 md:gap-3",children:[(0,a.jsxs)("div",{className:"ta-per-page-wrapper md:col-span-4",children:[el("lot.result_per_page"),(0,a.jsxs)("select",{className:"mx-2 custom-select appearance-none py-2 pr-6 ",id:"__BVID__63",defaultValue:null==ep?void 0:ep.limit,onChange:e=>{let l=e.target.value;ei(!0);let t={...ee,limit:l};delete t.slug,J.push({pathname:"/search",query:t})},children:[(0,a.jsx)("option",{value:"12",children:"12"}),(0,a.jsx)("option",{value:"24",children:"24"}),(0,a.jsx)("option",{value:"48",children:"48"}),(0,a.jsx)("option",{value:"96",children:"96"})]})]}),(0,a.jsx)("div",{className:"ta-total-items-found md:col-span-3",children:el("ventes"===em?"lot.search.ventes_found":"actualites"===em?"lot.search.actualites_found":"lot.search.items_found",{total:(null==ep?void 0:ep.count)||0})}),(0,a.jsx)("div",{className:"ta-lot-search-wrapper flex gap-3 md:col-span-5",children:(0,a.jsxs)("div",{className:"ta-sorting-dropdown",children:[(0,a.jsxs)("label",{className:"whitespace-nowrap mb-0",children:[el("lot.sort_by")," "]}),(0,a.jsxs)("select",{className:"custom-select appearance-none py-2 pr-6",id:"__BVID__66",onChange:e=>{let l=e.target.value;ei(!0);let t={...ee};l?t.ordering=l:delete t.ordering,t.page=1,delete t.slug,(0,k.UP)("sort_lots",{sort_by:l,sort_order:(null==l?void 0:l.includes("-"))?"desc":"asc"}),J.push({pathname:"/search",query:t})},value:null!=(K=ee.ordering)?K:"",children:[(0,a.jsx)("option",{value:"",children:el("lot.default_ordering")}),(0,a.jsx)("option",{value:"lot_no_numeric",children:el("lot.lot_no_asc")}),(0,a.jsx)("option",{value:"-lot_no_numeric",children:el("lot.lot_no_desc")}),"published"!==eq&&(0,a.jsx)("option",{value:"price",children:el("lot.lowest_price")}),"published"!==eq&&(0,a.jsx)("option",{value:"-price",children:el("lot.highest_price")}),"completed"!==eq&&(0,a.jsx)("option",{value:"-high",children:el("lot.low_estimate_desc")}),"completed"!==eq&&(0,a.jsx)("option",{value:"high",children:el("lot.low_estimate_asc")}),(0,a.jsx)("option",{value:"auction_start_date",children:el("lot.auction_start_date_asc")}),(0,a.jsx)("option",{value:"-auction_start_date",children:el("lot.auction_start_date_desc")})]})]})})]}),(0,a.jsxs)("div",{className:"ta-lot-list-items",children:[(null==e_?void 0:e_.length)!==0||et?null:(0,a.jsx)("div",{className:"ta-lot-list py-6",children:(0,a.jsx)("p",{className:"block w-full p-4 bg-quaternary/20",children:el("lot.search.no_lots_found")})}),(0,a.jsx)("div",{className:"ta-lot-list view-type-grid grid",children:null==e_?void 0:e_.map((e,l)=>(0,a.jsx)(v.A,{lot:e,source:"search",result:{search_term:et,position:l+1},listId:"recherche-lots",listName:et?"Recherche: ".concat(et):"Tous les lots",index:l+1},"".concat(e.uuid,"-").concat(l)))}),(0,a.jsxs)("div",{className:"ta-lot-list-footer mt-12 md:flex justify-between",children:[(0,a.jsx)("div",{className:"ta-lot-pagination-summary",children:el("lot.search.showing",{from:1+((null==ep?void 0:ep.limit)*(null==ep?void 0:ep.page)-(null==ep?void 0:ep.limit))||0,to:(null==ep?void 0:ep.count)>=(null==ep?void 0:ep.limit)?(null==ep?void 0:ep.limit)*(null==ep?void 0:ep.page)||0:null==ep?void 0:ep.count,total:(null==ep?void 0:ep.count)||0})}),eQ()]})]})]})]})]})]})})})]}),(0,a.jsx)(j.A,{params:J})]})}},6620:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return t(6137)}])}},e=>{e.O(0,[6593,6701,8389,9087,5331,1820,6056,636,8792],()=>e(e.s=6620)),_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.