PageSourceSearch

https://www.auktionstjanst.se/_next/static/chunks/1052-fc7947d4b89acb1c.js

js auktionstjanst.se collected 2026-10-03 01:30:40 UTC 102,366 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1052],{4072:function(e,t,n){"use strict";var r=n(67294),i=n(30381),o=n.n(i),a=n(42851),l=n(85893);t.Z=function(e){var t=e.date,n=e.format,i=(0,a.Sv)();"da-DK"===i&&o().updateLocale("da",{monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]}),"nb-NO"===i&&o().updateLocale("nb",{monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"]});var s=(0,r.useMemo)(function(){return o()(t).format(n)},[t,i,n]);return(0,l.jsx)(l.Fragment,{children:s})}},94572:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(59499),i=n(4730),o=n(67294),a=n(93967),l=n.n(a),s=n(10144),d=n(85893),c=["defaultSelected","className","menuComponent","menuComponentClassName","children","styles"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var DefaultMenu=function(e){var t=e.children;return(0,d.jsx)("div",{children:t})},u=n(3893),m=n(97934),p=n.n(m),g=[p()],h=(0,u.Z)(function(e){var t=e.defaultSelected,n=e.className,r=e.menuComponent,a=e.menuComponentClassName,u=e.children,m=e.styles,p=(0,i.Z)(e,c),g=(0,o.useState)(void 0===t?null:t),h=g[0],f=g[1],v=o.Children.toArray(u,[h]),x=r||DefaultMenu,setIndex=function(e){f(e!==h&&e)},y=o.useMemo(function(){return"expandable-menu-content-".concat(Math.floor(1e4*Math.random()))},[]),b="number"==typeof h;return(0,d.jsxs)("div",{className:l()(m.ExpandableMenuContainer,n),children:[(0,d.jsx)(x,_objectSpread(_objectSpread({className:a},p),{},{children:v.map(function(e,t){return o.cloneElement(e,{selected:t===h,portalId:y,onToggleExpanded:function(){setIndex(t)}})})})),(0,d.jsx)("div",{"data-cy":"expandableMenuContent",className:l()(m.MenuContent,b&&m.expanded),children:(0,d.jsx)(s.KM,{id:y})})]})},{defaultStyle:p(),styles:g});h.Item=function(e){var t=e.titleComponent,n=e.content,r=e.selected,i=e.onToggleExpanded,a=e.className,s=e.selectedClassName;return(0,d.jsx)("div",{className:l()(a,r&&s),children:o.isValidElement(t)&&o.cloneElement(t,{onToggleExpanded:function(){i(n,i)},selected:r})})};var f=h},66810:function(e,t,n){"use strict";n.d(t,{T:function(){return GenericTabMenu_ChildItem},Z:function(){return b}});var r=n(67294),i=n(96785),o=n(94572),a=n(85893),l=n(3893),s=n(16835),d=n(93967),c=n.n(d),u=n(66037),m=n(82495),p=n(33170),g=n(10144),h=n(90958),f=n.n(h),Content=function(e){var t=e.selected,n=e.children;return(0,a.jsx)(u.Z,{in:!!t,children:(0,a.jsx)("div",{className:c()(f().expanderContent),children:n})})},GenericTabMenu_ChildItem=function(e){var t=e.onToggleExpanded,n=e.selected,i=e.initialSelected,o=e.portalId,l=e.children,d=e.title,u=(0,a.jsx)(Content,{selected:n,children:void 0===l?"":l}),h=r.useCallback(function(){t(u)},[t,u]),v=r.useState(!1),x=(0,s.Z)(v,2),y=x[0],b=x[1];return r.useEffect(function(){i&&!y&&(b(!0),t(u))},[i,y,u,t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:c()(f().menuItem,n&&f().selected),onClick:h,children:[(0,a.jsx)("span",{className:f().icon,children:m.s2}),(0,a.jsx)(p.Z,{variant:"body2",component:"span",fontWeight:"bold",children:void 0===d?"":d})]}),(0,a.jsx)(g.gk,{outletId:o||"expandable-menu-content",children:(0,a.jsx)("div",{className:f().desktopOnly,children:u})}),(0,a.jsx)("div",{className:f().mobileOnly,children:u})]})},v=n(67218),x=n.n(v),y=[x()],b=(0,l.Z)(function(e){var t=e.styles,n=e.children,r=e.defaultSelected;return(0,a.jsx)(o.Z,{defaultSelected:r,menuComponent:i.Z,menuComponentClassName:t.menuLayout,className:t.GenericTabMenu,children:n})},{defaultStyle:x(),styles:y})},96785:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}}),n(67294);var r=n(93967),i=n.n(r),o=n(85893),a=n(3893),l=n(46614),s=n.n(l),d=[s()],c=(0,a.Z)(function(e){var t=e.className,n=e.children,r=e.styles,a=n.filter(function(e){return Object.hasOwnProperty.call(e.props,"left")}),l=n.filter(function(e){return Object.hasOwnProperty.call(e.props,"center")}),s=n.filter(function(e){return Object.hasOwnProperty.call(e.props,"right")});return(0,o.jsxs)("div",{className:i()(r.MenuLayout,t),children:[a.length>0&&(0,o.jsx)("div",{"data-cy":"leftContent",className:r.left,children:a}),l.length>0&&(0,o.jsx)("div",{className:r.center,children:l}),s.length>0&&(0,o.jsx)("div",{"data-cy":"rightContent",className:r.right,children:s})]})},{defaultStyle:s(),styles:d})},45323:function(e,t,n){"use strict";n.d(t,{e1:function(){return requestCatalogScrollRestore},nx:function(){return useCatalogScrollMemory}});var r=n(67294),i=n(45570),o="catalogScrollPositions",a="catalogScrollRestore",canUseStorage=function(){return void 0!==window.sessionStorage},readPositions=function(){if(!canUseStorage())return{};try{var e=window.sessionStorage.getItem(o);if(!e)return{};var t=JSON.parse(e);if(!t||"object"!=typeof t)return{};return t}catch(e){return{}}},writePositions=function(e){if(canUseStorage())try{window.sessionStorage.setItem(o,JSON.stringify(e))}catch(e){}},saveCatalogScroll=function(e){if(e){var t=readPositions();t[e]=window.scrollY;var n=Object.keys(t);if(n.length>10){var r={};
1n.slice(n.length-10).forEach(function(e){r[e]=t[e]}),writePositions(r);return}writePositions(t)}},requestCatalogScrollRestore=function(e){if(e&&canUseStorage())try{window.sessionStorage.setItem(a,e)}catch(e){}},peekCatalogScrollRestore=function(){if(canUseStorage())try{return window.sessionStorage.getItem(a)||void 0}catch(e){return}},clearCatalogScrollRestore=function(){if(canUseStorage())try{window.sessionStorage.removeItem(a)}catch(e){}},getSavedScroll=function(e){var t=readPositions()[e];return"number"==typeof t&&Number.isFinite(t)?t:void 0},useCatalogScrollMemory=function(e){var t=(0,r.useRef)(e);t.current=e,(0,r.useEffect)(function(){var handleRouteChangeStart=function(){saveCatalogScroll(t.current)};return i.Z.events.on("routeChangeStart",handleRouteChangeStart),function(){i.Z.events.off("routeChangeStart",handleRouteChangeStart)}},[]),(0,r.useEffect)(function(){var t=peekCatalogScrollRestore();if(t&&t===e){clearCatalogScrollRestore();var n=getSavedScroll(e);if(void 0!==n&&!(n<=0)){var r=0,i=requestAnimationFrame(function(){r=requestAnimationFrame(function(){n<=document.documentElement.scrollHeight&&window.scrollTo(0,n)})});return function(){cancelAnimationFrame(i),r&&cancelAnimationFrame(r)}}}},[e])}},71052:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ow},default:function(){return _itemId_}});var r,i,o,a,l,s,d,c,u,m,p,g,h,f,v,x,y,b,j,w,I,Z,S,B,_,C,k,P,O,N,T,M,D,L,z,A,V,F,E,R,H,q,Y,W,K,U,G,J,X,$,Q,ee,et,en,er,ei,eo,ea,el,es,ed,ec,eu,em,ep,eg,eh,ef,ev,ex,ey,eb,ej,ew,eI,eZ,eS,eB,e_,eC,ek,eP,eO,eN,eT,eM,eD,eL,ez,eA,eV,eF,eE,eR,eH,eq,eY,eW,eK,eU,eG,eJ,eX,e$,eQ,e0,e1,e2,e4,e6,e5,e3,e8,e7,e9,te,tt,tn,tr,ti,to,ta,tl,ts,td=n(59499),tc=n(71383),tu=n(8804),tm=n.n(tu),tp=n(53632),tg=n.n(tp),th=n(6162),tf=n.n(th),tv=n(14293),tx=n.n(tv),ty=n(27361),tb=n.n(ty),tj=n(67294),tw=n(19395),tI=n(9008),tZ=n.n(tI),tS=n(11163),tB=n(72070),t_=n(96702),tC=n(65344),tk=n(94698),tP=n(92301),tO=n(99088),tN=n(4730),tT=n(16835),tM=n(84753),tD=n.n(tM),tL=n(28583),tz=n.n(tL),tA=n(13311),tV=n.n(tA),tF=n(96012),tE=n(55564),tR=n(27861),tH=n(23490),tq=n(451),tY=n(68814),tW=n(10215),tK=n(10780),tU=n(85893),tG=tj.createContext(void 0),useAuction=function(){var e=(0,tj.useContext)(tG);return(0,tq.Z)(e,"must be wrapped with a AuctionProvider"),e};function Provider(e){var t=e.auction,n=e.children;return(0,tU.jsx)(tG.Provider,{value:t,children:n})}var tJ=["bids","user"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,td.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tX=tj.createContext(null);function useInventoryBidding(){var e=(0,tj.useContext)(tX);return(0,tq.Z)(e,"must be wrapped with a InventoryBiddingContext"),e}function useInventoryBiddingItem(){var e=useInventoryBidding();return(0,tT.Z)(e,2)[1].item}var t$=[{id:"highBidder",label:function(){return(0,tw.t)(i||(i=(0,tc.Z)(["You are the highest bidder"])))},patch:function(e){return{user:{id:e},highBidderId:e,reserveMet:!0,bids:[{id:-1}]}}},{id:"reserveNotMet",label:function(){return(0,tw.t)(o||(o=(0,tc.Z)(["Reserve not met, please bid again"])))},patch:function(e){return{user:{id:e},highBidderId:e,reserveMet:!1,bids:[{id:-1}]}}},{id:"outbid",label:function(){return(0,tw.t)(a||(a=(0,tc.Z)(["You have been outbid"])))},patch:function(e){return{user:{id:e},highBidderId:-3,reserveMet:!0,bids:[{id:-1}]}}}];function InventoryBiddingContext_Provider(e){var t,n,r,i,o,a,c,u,m,p,g,h,f,v,x,y,b,j,w,I,Z,S,B,_,C,k,P,O=e.children,N=(t=e.item,r=(n=(0,tR.Wf)(!tx()(null==t?void 0:t.id)&&"/CatalogItems/".concat(null==t?void 0:t.id))).data,i=n.refresh,{isItemStale:!r,item:(0,tj.useMemo)(function(){return r?tz()({},t,r):t},[t,r]),refreshItem:i}),T=N.item,M=N.isItemStale,D=N.refreshItem,L=(0,t_.JL)(),z=L.user,A=L.customer,V=useAuction(),F=(null==V?void 0:V.buyersPremium)||0,E=tb()(null==V?void 0:V.hammerFees,["buyer","rate"],0),R=(0,tW.W)(),H=R.bids,q=R.updateBids,Y=R.loadingUserBids,W=tD()(V.sessions,function(e){return e.id}),K=(0,tE.Z)(q,H,T,(null==W?void 0:W.currentLotBidLevelFactor)||1,V.isLiveAuction,V.blindAuction,void 0,Y),U=K.onStraightBid,G=K.onMaxBid,J=(0,tF.ZP)({onStraightBid:U,onMaxBid:G}),X=J.bidConfirmModalProps,$=X.isOpen,Q=X.selectedBidAmount,ee=X.onConfirm,et=X.onClose,en=X.anchorY,er=(a=(o={biddingInfo:K,isItemStale:M,refreshItem:D,confirmBid:J.confirmBid,auction:V,user:z}).biddingInfo,c=o.isItemStale,u=o.refreshItem,m=o.confirmBid,p=o.auction,g=o.user,[a,(f=(h={item:a.updatedItem,isItemStale:c,refreshItem:u,auction:p,user:g}).isItemStale,v=h.auction,x=h.item,y=h.user,b=h.refreshItem,j=tV()([(0,tH.X2)((null==x?void 0:x.id)&&"/InventoryItems/".concat(null==x?void 0:x.id,"/bidHistory/count")),tb()(x,["initialBidCount"],0)]),(0,tj.useMemo)(function(){return{currentBidCount:j,isItemStale:f,auction:v,user:y,item:x,refreshItem:b}},[j,f,v,x,y,b])),(I=(w={biddingInfo:a,confirmBid:m}).biddingInfo,Z=w.confirmBid,S=I.selectedBid,{onStraightBidClick:(0,tj.useCallback)(function(e){e&&!e.defaultPrevented&&e.preventDefault(),Z(tF.tE,null==S?void 0:S.value,
1null==e?void 0:e.currentTarget)},[null==S?void 0:S.value,Z]),onMaxBidClick:(0,tj.useCallback)(function(e){e&&!e.defaultPrevented&&e.preventDefault(),Z(tF.nb,null==S?void 0:S.value,null==e?void 0:e.currentTarget)},[null==S?void 0:S.value,Z]),onSelectedBidChange:I.setBid})]);return(0,tU.jsxs)(tX.Provider,{value:(B=null==z?void 0:z.id,C=(_=(0,tj.useState)(null))[0],k=_[1],(0,tK.EB)(),(0,tK.e)(t$.map(function(e,t){return{id:e.id,group:(0,tw.t)(l||(l=(0,tc.Z)(["The lot page"]))),label:e.label(),order:t+1,run:function(){return k(e.patch(null!=B?B:-2))}}})),(0,tK.jm)({id:"resetBidState",group:(0,tw.t)(s||(s=(0,tc.Z)(["The lot page"]))),label:(0,tw.t)(d||(d=(0,tc.Z)(["Back to the real state"]))),order:t$.length+1,run:function(){return k(null)}},null!==C),(0,tj.useMemo)(function(){if(!C)return er;var e=(0,tT.Z)(er,3),t=e[0],n=e[1],r=e[2],i=C.bids,o=C.user,a=(0,tN.Z)(C,tJ);return[_objectSpread(_objectSpread({},t),{},{bids:i}),_objectSpread(_objectSpread({},n),{},{user:_objectSpread(_objectSpread({},n.user),o),item:_objectSpread(_objectSpread({},n.item),a)}),r]},[er,C])),children:[O,(0,tU.jsx)(tY.Z,{selectedBidAmount:Q,onConfirm:ee,onClose:et,isOpen:$,currentItemId:null==T?void 0:T.id,customer:A,buyersHammerFee:null==V?void 0:null===(P=V.hammerFees)||void 0===P?void 0:P.buyer,currentItem:T,buyersPremium:F,vatRate:E,anchorY:en})]})}var tQ=n(35161),t0=n.n(tQ),t1=n(41664),t2=n.n(t1),t4=n(79186),t6=n(42851),t5=n(45570),t3=n(78388),t8=n(17543),t7=n(53857),t9=n(24122),ne=n(92304),nt=[{compositionType:"image",props:{imageFormatting:"Cover"}},{compositionType:"title",props:{showLotNumber:t4.uX}},{compositionType:"details",props:{showCurrentBidLabel:t4.Dv,showNumberOfBids:t4.Dv,showReservePrice:t4.Dv,showCurrentBid:t4.Dv,showEstimate:t4.uX}}];function InventorySimilarLotsSection(){var e,t,n=(0,t6.Sv)(),r=(0,t5.t)(),i=(0,ne.Kp)(null==r?void 0:r.asPath),o=(e=useInventoryBiddingItem(),t=tb()(e,["categoryIds"],[]),(0,tR.Wf)((0,t8.Z)(t)&&e&&"/CatalogItems".concat((0,t7.Z)({top:6,filter:{id:{ne:e.id},publish:{eq:!0},categoryId:{in:t},auctionId:e.auctionId,state:{in:["'".concat(t3.sI,"'"),"'".concat(t3.yb,"'"),"'".concat(t3.FD,"'"),"'".concat(t3.tD,"'"),"'".concat(t3.eh,"'")]}}}))).data);return(0,t8.Z)(o)?(0,tU.jsxs)(nn,{children:[(0,tU.jsx)(nr,{children:(0,tU.jsx)(ni,{children:(0,tw.t)(c||(c=(0,tc.Z)(["Similar lots"])))})}),(0,tU.jsx)(no,{children:t0()(o,function(e){if(!e)return null;var t="/".concat(n,"/inventories/").concat(e.id),r=i?{catNav:i}:void 0,o=r?new URLSearchParams(r).toString():"",a="".concat(t).concat(o?"?".concat(o):"");return(0,tU.jsx)(t2(),{href:{pathname:t,query:r},passHref:!0,legacyBehavior:!0,children:(0,tU.jsx)(na,{children:(0,tU.jsx)(t9.Z,{configuration:nt,item:e,itemUrl:a})})},e.id)})})]}):null}var nn=(0,tC.Z)("div",{target:"emgm1us4"})({name:"nbsvr3",styles:"padding:var(--vertical-gutter) var(--page-gutter)"}),nr=(0,tC.Z)("div",{target:"emgm1us3"})({name:"15etzt1",styles:"margin-bottom:var(--vertical-gutter)"}),ni=(0,tC.Z)("h3",{target:"emgm1us2"})({name:"1c30g9y",styles:"font-family:var(--font-secondary);font-weight:500;font-stretch:normal;font-style:normal;text-transform:uppercase;font-size:20px;line-height:1.6;letter-spacing:2px;margin:0;padding:0"}),no=(0,tC.Z)("div",{target:"emgm1us1"})("display:grid;width:100%;grid-template-columns:repeat(2, 1fr);grid-gap:8px;",(0,tk.up)("md"),"{grid-template-columns:repeat(3, 1fr);grid-gap:15px;}",(0,tk.up)("lg"),"{grid-template-columns:repeat(6, 1fr);grid-gap:25px;}"),na=(0,tC.Z)("a",{target:"emgm1us0"})({name:"v0y7sl",styles:"text-decoration:none;display:block;&:hover{box-shadow:0px 0px 8px 0px rgba(163, 163, 163, 0.5);color:var(--font-color);}"});function InventorySimilarLotsSectionWrapper(){var e=(0,ne.zu)();return tb()(e,["showSimilarLots"])?(0,tU.jsx)(InventorySimilarLotsSection,{}):null}function withConditionalRenderHook_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function withConditionalRenderHook_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?withConditionalRenderHook_ownKeys(Object(n),!0).forEach(function(t){(0,td.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):withConditionalRenderHook_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function withConditionalRenderHook(e,t){return function(n){return tj.forwardRef(function(r,i){return e(r)?(0,tU.jsx)(n,withConditionalRenderHook_objectSpread({ref:i},r)):t?(0,tU.jsx)(t,withConditionalRenderHook_objectSpread({ref:i},r)):null})}}var nl=n(32474),ns=n(66810),nd=n(33170),nc=(0,tC.Z)("div",{target:"e18j5ezf0"})({name:"1y3jyaj",styles:"display:flex;align-self:center;flex-direction:column;max-width:795px;width:100%;.detail{display:grid;grid-template-columns:minmax(160px, max-content) auto;margin-bottom:10px;}"}),getShippingCategory=function(e){return tb()(e,"initialShippingCategory")},showShippingTab=function(e){var t=e.showShippingCategory,n=e.shippingText,r=e.item;return t&&(n||getShippingCategory(r))};function InventoryShippingCategory(){var e=(0,ne.zu)().showShippingCategory,t=getShippingCategory(useInventoryBiddingItem());return e&&t?(0,tU.jsxs)(tU.Fragment,{children:[tb()(t,"name")?(0,tU.jsxs)("div",{className:"detail",children:[(0,tU.jsx)(nd.Z,{variant:"body1",fontWeight:"bold",component:"span",children:(0,tw.t)(m||(m=(0,tc.Z)(["Category "])))}),(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:tb()(t,"name")})]}):null,tb()(t,"flatRate")?(0,tU.jsxs)("div",{className:"detail",children:[(0,tU.jsx)(nd.Z,{variant:"body1",fontWeight:"bold",component:"span",children:(0,tw.t)(p||(p=(0,tc.Z)(["Fee "])))}),(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:(0,nl.ZP)(tb()(t,"flatRate"))})]}):null]}):null}var nu=withConditionalRenderHook(function(e){var t=e.shippingText;return showShippingTab({showShippingCategory:(0,ne.zu)().showShippingCategory,shippingText:t,item:useInventoryBiddingItem()})})(function(e){var t=e.shippingText,n=(0,ne.zu)().showShippingCategory,r=useInventoryBiddingItem();return(0,tU.jsx)(ns.Z,{children:showShippingTab({showShippingCategory:n,shippingText:t,item:r})?(0,tU.jsx)(ns.T,{left:!0,title:(0,tw.t)(u||(u=(0,tc.Z)(["Shipping"]))),children:(0,tU.jsxs)(nc,{children:[t,(0,tU.jsx)(InventoryShippingCategory,{})]})}):null})}),nm=n(63105),np=n.n(nm),ng=n(98611),nh=n.n(ng),nf=n(77775),getCountryName=function(e){return tb()(e,["initalCountry","name"])},getDescription=function(e){return tb()(e,["biography"])},getCategory=function(e){return tb()(e,["initialCategory","categoryName"])},getDefaultImageUrl=function(e){return tb()(e,["defaultImage","images",0,"url"])};function getTitle(e){var t=e.firstName,n=e.prefix,r=e.middleName,i=e.lastName,o=e.suffix,a=e.birthYear,l=e.deathYear;return nh()(np()([n,t,r,i,o,a&&l?"(".concat(a,"-").concat(l,")"):a&&!l?"(".concat(a,"-)"):""],Boolean)," ")}var nv=tj.createContext(null),useBiography=function(){var e=(0,tj.useContext)(nv);return(0,tq.Z)(e,"need to wrap component with BiographyContext.Provider"),e};function BiographyItem(){return(0,tU.jsx)(nx,{children:(0,tU.jsxs)(ny,{children:[(0,tU.jsxs)(nb,{children:[(0,tU.jsx)(BiographyTitle,{}),(0,tU.jsx)(BiographyCategory,{})]}),(0,tU.jsx)(BiographyImage,{}),(0,tU.jsx)(BiographyDescription,{})]})})}function BiographyTitle(){var e=useBiography();return(0,tU.jsxs)(nI,{children:[getTitle(e)," ",(0,tU.jsx)(BiographyCountry,{})]})}function BiographyCountry(){var e=useBiography();return getCountryName(e)?(0,tU.jsx)(nZ,{children:getCountryName(e)}):null}function BiographyCategory(){var e=useBiography();return getCategory(e)?(0,tU.jsxs)(nS,{children:[(0,tw.t)(g||(g=(0,tc.Z)(["In category"])))," ",(0,tU.jsx)("strong",{children:getCategory(e)})]}):null}function BiographyDescription(){var e=useBiography();return getDescription(e)?(0,tU.jsx)(nw,{children:(0,tU.jsx)(nB,{children:getDescription(e)})}):null}function BiographyImage(){var e=useBiography();return getDefaultImageUrl(e)?(0,tU.jsx)(nj,{children:(0,tU.jsx)(n_,{children:(0,tU.jsx)(nf.Z,{src:getDefaultImageUrl(e),alt:getTitle(e),width:176,height:176})})}):null}var nx=(0,tC.Z)("div",{target:"eu2ws5d9"})("margin:32px 0;padding:0 var(--page-gutter);",(0,tk.up)("md"),"{margin:48px 0;padding:0 var(--page-gutter);}"),ny=(0,tC.Z)("div",{target:"eu2ws5d8"})("gap:16px;display:flex;flex-direction:column;",(0,tk.up)("md"),"{gap:32px;display:grid;grid-template:'top top' auto 'media body' auto/auto minmax(0, 1fr);}"),nb=(0,tC.Z)("div",{target:"eu2ws5d7"})({name:"8yhdcj",styles:"grid-area:top;padding:0"}),nj=(0,tC.Z)("div",{target:"eu2ws5d6"})({name:"9nmnle",styles:"grid-area:media"}),nw=(0,tC.Z)("div",{target:"eu2ws5d5"})({name:"vooc89",styles:"grid-area:body"}),nI=(0,tC.Z)("h4",{target:"eu2ws5d4"})("font-weight:600;display:flex;font-size:20px;line-height:32px;gap:0;margin:0;padding:0;margin-bottom:16px;flex-direction:column;",(0,tk.up)("md"),"{gap:8px;margin-bottom:8px;align-items:center;font-size:24px;line-height:32px;flex-direction:row;}"),nZ=(0,tC.Z)("div",{target:"eu2ws5d3"})({name:"iwt7jr",styles:"font-weight:500;font-size:20px;line-height:24px"}),nS=(0,tC.Z)("div",{target:"eu2ws5d2"})({name:"1n38f9y",styles:"text-transform:uppercase;letter-spacing:0.8px;font-weight:500;strong{font-weight:700;font-style:italic;}"}),nB=(0,tC.Z)("div",{target:"eu2ws5d1"})("font-size:16px;font-weight:500;line-height:24px;white-space:pre-wrap;",(0,tk.up)("md"),"{max-width:800px;}"),n_=(0,tC.Z)("div",{target:"eu2ws5d0"})("width:100%;",(0,tk.up)("md"),"{width:176px;}position:relative;padding-bottom:100%;
1img{display:block;position:absolute;height:100%;width:100%;top:0;left:0;bottom:0;right:0;}"),sections_InventoryBiographySection=function(e){var t=e.biographyData;return t8.Z?(0,tU.jsx)(tU.Fragment,{children:t0()(t,function(e){return e?(0,tU.jsx)(nv.Provider,{value:e,children:(0,tU.jsx)(BiographyItem,{})},e.id):null})}):null},nC=n(47745),nk=n.n(nC),nP=n(57369),nO=n(82285),nN=n(84619);function withInventoryStalePlaceholder_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function withInventoryStalePlaceholder_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?withInventoryStalePlaceholder_ownKeys(Object(n),!0).forEach(function(t){(0,td.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):withInventoryStalePlaceholder_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sections_withInventoryStalePlaceholder=function(e){return function(t){return tj.forwardRef(function(n,r){var i=useInventoryBidding(),o=(0,tT.Z)(i,2);return(o[0],o[1].isItemStale)?(0,tU.jsx)(e,withInventoryStalePlaceholder_objectSpread({ref:r},n)):(0,tU.jsx)(t,withInventoryStalePlaceholder_objectSpread({ref:r},n))})}},nT=n(23560),nM=n.n(nT);function generateBidButton(e){return function(t){var n=t.className,r=t.children,i=t.dataCy,o=t.disabled,a=void 0!==o&&o,l=t.disabledToolTip,s=void 0===l?null:l,d=useInventoryBidding(),c=(0,tT.Z)(d,3),u=c[0],m=e(u,c[1],c[2]),p=m.onClick,g=m.loading,h=m.defaultLabel,f=tb()(u,"selectedBid"),v=null!=r?r:h,x=(0,tU.jsx)(nD,{"data-cy":i,className:n,onClick:p,disabled:g||a,children:nM()(v)?v({selectedAmount:(0,nl.ZP)(null==f?void 0:f.value),selectedBid:f}):v});return a&&s?(0,tU.jsx)(nL,{"data-tooltip":s,children:x}):x}}var nD=(0,tC.Z)("button",{target:"ezwqhw51"})({name:"pkmuen",styles:"cursor:pointer;display:block;text-decoration:none;text-align:center;width:100%;padding:12px;box-sizing:border-box;border-radius:0;line-height:24px;box-sizing:border-box;background:transparent;overflow:hidden;font-weight:600;font-size:16px;line-height:24px;border:1px solid var(--color-primary);background:var(--color-primary);font-family:var(--font-secondary);color:#fff;&:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover);}&:focus{outline:none;box-shadow:0 0 0 1px var(--color-primary-hover);}&:active{background:var(--color-primary-selected);border-color:var(--color-primary-selected);}&:disabled{cursor:not-allowed;background:var(--color-primary-disabled);border-color:var(--color-primary-disabled);}"}),nL=(0,tC.Z)("div",{target:"ezwqhw50"})({name:"10ufczx",styles:"position:relative;display:contents;&:hover::after{content:attr(data-tooltip);position:absolute;bottom:120%;left:50%;transform:translateX(-50%);background:#333;color:white;padding:6px 10px;border-radius:4px;font-size:14px;white-space:nowrap;z-index:100;}"}),nz=generateBidButton(function(e,t,n){var r=e.maxLoading,i=e.disabled,o=e.disabledToolTip,a=n.onMaxBidClick;return{defaultLabel:(0,tw.t)(h||(h=(0,tc.Z)(["Place maxbid"]))),onClick:a,loading:r,disabled:void 0!==i&&i,disabledToolTip:void 0===o?null:o}}),nA=(0,tC.Z)(nz,{target:"e1unee3e0"})(""),nV=n(92671),nF=new Map,nE=new Set,notify=function(){return nE.forEach(function(e){return e()})},purchaseOf=function(e,t){if(null!=e&&null!=t){var n=nF.get(e);return(null==n?void 0:n.buyerId)===t?n:void 0}};function cancelBuyNow(e){nF.delete(e),notify()}var subscribe=function(e){return nE.add(e),function(){nE.delete(e)}};function useBoughtNow(e,t){return(0,tj.useSyncExternalStore)(subscribe,function(){var n;return null===(n=purchaseOf(e,t))||void 0===n?void 0:n.price},function(){})}function useBuyNowPending(e,t){return(0,tj.useSyncExternalStore)(subscribe,function(){var n;return(null===(n=purchaseOf(e,t))||void 0===n?void 0:n.pending)===!0},function(){return!1})}var nR=(0,t_.oc)(nD),nH=nk()([sections_withInventoryStalePlaceholder(function(){return null}),withConditionalRenderHook(function(){var e=(0,nN.r)(),t=useAuction(),n=useInventoryBiddingItem(),r=(0,t_.JL)().user;return!(null!=useBoughtNow(null==n?void 0:n.id,null==r?void 0:r.id)||null!=t&&t.realtimeAuction||(0,ne.dh)(e))&&(0,ne.D2)(n)}),(0,t_.st)(function(){var e=(0,nP.Z)();return(0,tU.jsx)(nY,{appear:!1,direction:"up",in:e,children:(0,tU.jsx)(nq,{children:(0,tU.jsx)(nR,{children:(0,tw.t)(f||(f=(0,tc.Z)(["Login to bid"])))})})})})]),nq=(0,tC.Z)("div",{target:"e12fkz664"}
1)({name:"h3kb49",styles:"--bid-slide-padding:16px;background:var(--color-background-popout-light);box-shadow:0 -2px 4px 0 rgba(52, 52, 52, 0.15);position:fixed;padding:var(--bid-slide-padding);z-index:80;right:0;bottom:0;left:0"}),nY=(0,tC.Z)(nO.Z,{target:"e12fkz663"})("display:block;",(0,tk.up)("md"),"{display:none;}"),nW=(0,tC.Z)("div",{target:"e12fkz662"})({name:"eakfpj",styles:"flex-shrink:0;white-space:nowrap"}),nK=(0,tC.Z)("div",{target:"e12fkz661"})({name:"eakfpj",styles:"flex-shrink:0;white-space:nowrap"}),nU=(0,tC.Z)("div",{target:"e12fkz660"})({name:"vimqdt",styles:"display:flex;flex-wrap:wrap;justify-content:space-between;font-size:16px;line-height:1;margin-bottom:var(--bid-slide-padding)"}),nG=nH(function(){var e,t,n=(0,nP.Z)(),r=useInventoryBiddingItem(),i=(0,nN.r)().systemSettings,o=(0,t_.JL)(),a=o.isLoggedIn,l=o.customer,s=(e=(0,ne.FS)(r),t=(0,ne.GH)(r),(0,tj.useMemo)(function(){return e?(0,tw.t)(v||(v=(0,tc.Z)(["Current bid"]))):t?(0,tw.t)(x||(x=(0,tc.Z)(["Starting bid"]))):null},[e,t])),d=!1,c=(null==l?void 0:l.isEstate)===!0;return c&&(d=!0),a&&l&&!l.isVerified&&i.eidVerificationEnabled&&(d=!0),(0,tU.jsx)(nY,{appear:!1,direction:"up",in:n,children:(0,tU.jsxs)(nq,{children:[(0,tU.jsxs)(nU,{children:[(0,tU.jsx)(nW,{children:s?(0,tU.jsxs)("span",{children:[s," ",(0,tU.jsx)("strong",{children:(0,nl.ZP)((0,ne.FS)(r)||(0,ne.GH)(r))})]}):null}),(0,tU.jsx)(nK,{children:(0,tU.jsx)("span",{children:(0,tU.jsx)(nV.Z,{date:null==r?void 0:r.endDate,format:"short",as:"strong"})})})]}),(0,tU.jsx)(nA,{disabled:d,disabledToolTip:c?(0,tw.t)(y||(y=(0,tc.Z)(["Estate users are not allowed to place bids"]))):(0,tw.t)(b||(b=(0,tc.Z)(["You need to verify your account to be able to place a bid"]))),children:function(e){var t=e.selectedAmount;return(0,tw.t)(j||(j=(0,tc.Z)(["Bid ",""])),t)}})]})})}),nJ=n(70917),nX=n(92879),n$=n(61239),nQ=n(93967),n0=n.n(nQ),n1=n(55152),n2=n(79061),n4=n.n(n2),components_VideoBox=function(e){var t=e.src,n=e.onClick;return(0,tU.jsxs)("div",{className:n4().videoBox,onClick:n,children:[(0,tU.jsx)("div",{className:n4().overlay,onClick:n}),(0,tU.jsx)("iframe",{src:t,className:n4().video,frameBorder:"0",title:"videobox",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})]})},n6=n(3465),n5=n(27812),n3={youtube:{name:"youtube",url:"https://www.youtube.com/embed"},vimeo:{name:"vimeo",url:"https://player.vimeo.com/video"}},filterVideos=function(e){var t=e.url,n=e.key;return(0,n6.mC)(t,n)||(0,n6.X4)(t,n)},videoChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,n6.mC)(e,t)?n3.youtube.name:(0,n6.X4)(e,t)?n3.vimeo.name:""},youtubeVideoId=function(e){if(!e)return null;var t=e.match(n6.TQ);return t&&11===t[7].length?t[7]:null},videoId=function(e){return youtubeVideoId(e)||(e?e.match(/\d/g).join(""):null)||""},buildMedia=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[].concat((0,n5.Z)(e),(0,n5.Z)(t.filter(filterVideos).map(function(e){return{videoSrc:e.url,key:e.key}})),(0,n5.Z)(t.filter(function(e){return e.key===n6.GC})))},setPrevIndex=function(e,t){return e-1<0?t.length-1:e-1},setNextIndex=function(e,t){return e+1>=t.length?0:e+1},n8=n(65633),Icon_ThreeSixty=function(e){var t=e.style,n=e.className;return(0,tU.jsx)(n8.Z,{style:t,className:n})},n7=n(37315),Play=function(e){var t=e.style,n=e.className;return(0,tU.jsx)(n7.Z,{style:t,className:n})},n9=n(41971),re=n.n(n9),ImageViewer_Thumbnails=function(e){var t=e.media,n=e.selected,r=e.onSetMediaIndex,i=e.title;return(0,tU.jsx)("ul",{className:n0()(re().thumbnails,"skeleton-ui-thumbnails"),children:t.map(function(e,t){return(null==e?void 0:e.videoSrc)?(0,tU.jsx)("li",{onClick:function(){return r(t)},className:n0()(re().thumbnailList,t===n&&re().selected,"skeleton-ui-thumbnails__item"),children:(0,tU.jsx)("div",{className:re().iconThumbnailContainer,children:(0,tU.jsx)("div",{className:re().videoItemThumbnail,children:(0,tU.jsxs)("div",{className:re().iconThumbnailContent,children:[(0,tU.jsx)("p",{className:re().iconThumbnailIcon,children:(0,tU.jsx)(Play,{})}),(0,tU.jsx)("p",{className:re().iconThumbnailTitle,children:(0,tU.jsx)("span",{children:"Video"})})]})})})},t):(null==e?void 0:e.key)===n6.GC?(0,tU.jsx)("li",{onClick:function(){return r(t)},className:n0()(re().thumbnailList,t===n&&re().selected,"skeleton-ui-thumbn
1ails__item"),children:(0,tU.jsx)("div",{className:re().iconThumbnailContainer,children:(0,tU.jsx)("div",{className:re().videoItemThumbnail,children:(0,tU.jsxs)("div",{className:re().iconThumbnailContent,children:[(0,tU.jsx)("p",{className:re().iconThumbnailIcon,children:(0,tU.jsx)(Icon_ThreeSixty,{})}),(0,tU.jsx)("p",{className:re().iconThumbnailTitle,children:(0,tU.jsx)("span",{children:"360\xb0"})})]})})})},t):(0,tU.jsx)("li",{onMouseEnter:function(){return r(t)},className:n0()(re().thumbnailList,t===n&&re().selected,"skeleton-ui-thumbnails__item"),children:(0,tU.jsx)(n1.Z,{image:e,imageSize:"Small",width:100,height:100,imgixParams:{fit:"crop"},fill:!0,alt:i,onClick:function(){r(t)}})},t)})})},rt=nX.Z,rn=n(3893),rr=n(19959),ri=n.n(rr),ro=[ri()],ra=(0,rn.Z)(function(e){var t,n,r=e.images,i=void 0===r?[]:r,o=e.children,a=e.className,l=e.styles,s=e.urls,d=void 0===s?[]:s,c=e.title,u="true"===String((0,tS.useRouter)().query.previewFromAdmin).toLowerCase(),m=(0,tj.useState)(0),p=m[0],g=m[1],h=(0,tj.useState)(),f=h[0],v=h[1],x=(0,tj.useState)(),y=x[0],b=x[1],j=(0,tj.useState)(),w=j[0],I=j[1],Z=(0,tj.useRef)(0);(0,tj.useEffect)(function(){if(w){var e=setTimeout(function(){return I(void 0)},260);return function(){return clearTimeout(e)}}},[w]);var S=buildMedia(i,d),handleSetNextGalleryItem=function(){v(setNextIndex(f,i))},handleSetPrevGalleryItem=function(){v(setPrevIndex(f,i))},isImageMedia=function(e){return!!e&&i.some(function(t){return t.id===e.id})},goToMediaIndex=function(e,t){e!==p&&(isImageMedia(S[p])&&isImageMedia(S[e])?(Z.current+=1,I({index:p,direction:t,token:Z.current})):I(void 0),g(e))},B=null===(t=S[p])||void 0===t?void 0:t.videoSrc,_=videoId(B),C=videoChannel(B,null===(n=S[p])||void 0===n?void 0:n.key),k=i.map(function(e){return(e&&e.images&&e.images.length>0?e.images.find(function(e){return"Large"===e.size.name}).url:null)||""}),renderMedia=function(e){var t,n=S[e];if(!n)return null;var r=n.videoSrc,i=videoChannel(r,n.key);return(0,tU.jsxs)(tU.Fragment,{children:[isImageMedia(n)&&(0,tU.jsx)(n1.Z,{image:n,imageSize:"Medium",sameOriginJpeg:u,sizes:"(min-width: 1680px) 550w, (min-width: 1010px) 33vw, 100vw",alt:c,onClick:function(){return v(e)}}),n.key&&n.key.trim().toLowerCase()===n6.GC&&(0,tU.jsx)("div",{className:l.viewerBox,children:(0,tU.jsx)("div",{className:l.panoramaViewerContainer,children:(0,tU.jsx)("iframe",{style:{width:"100%"},height:360,src:n.url,frameBorder:"0",title:"360-image-viewer",allowFullScreen:!0})})}),r&&(0,tU.jsx)(components_VideoBox,{onClick:function(){return b(e)},src:(t=videoId(r),i&&t?"".concat(n3[i].url,"/").concat(t):"")})]})};return(0,tU.jsxs)("div",{className:n0()(l.ImageViewer,a),children:[(0,tU.jsxs)("div",{className:l.imageViewerContainer,children:[(0,tU.jsxs)("div",{className:l.selectedImage,children:[(0,tU.jsxs)("div",{className:l.mediaStage,children:[w&&(0,tU.jsx)("div",{className:n0()(l.mediaLayer,l.outgoingMedia,1===w.direction?l.slideOutToLeft:l.slideOutToRight),style:{animationDuration:"".concat(260,"ms")},"aria-hidden":"true",children:renderMedia(w.index)},"outgoing-".concat(w.token)),(0,tU.jsx)("div",{className:n0()(l.mediaLayer,w&&(1===w.direction?l.slideInFromRight:l.slideInFromLeft)),style:w?{animationDuration:"".concat(260,"ms")}:void 0,children:renderMedia(p)},"current-".concat(p))]}),S.length>1&&(0,tU.jsxs)(tU.Fragment,{children:[(0,tU.jsx)("button",{type:"button",className:n0()(l.previousButton,l.arrowButton),onClick:function(){goToMediaIndex(setPrevIndex(p,S),-1)},children:(0,tU.jsx)("div",{className:l.arrow})}),(0,tU.jsx)("button",{type:"button",className:n0()(l.nextButton,l.arrowButton),onClick:function(){goToMediaIndex(setNextIndex(p,S),1)},children:(0,tU.jsx)("div",{className:l.arrow})})]})]}),(0,tU.jsx)("div",{className:l.children,children:o})]}),(0,tU.jsx)(ImageViewer_Thumbnails,{media:S,selected:p,onSetMediaIndex:function(e){goToMediaIndex(e,e>p?1:-1)},title:c}),void 0!==f&&(0,tU.jsx)(rt,{mainSrc:k[f],mainSrcThumbnail:k[f],nextSrc:k[(f+1)%k.length],prevSrc:k[(f+k.length-1)%k.length],onCloseRequest:function(){return v(void 0)},reactModalStyle:{overlay:{zIndex:"100000"}},onMovePrevRequest:function(){return handleSetPrevGalleryItem()},onMoveNextRequest:function(){return handleSetNextGalleryItem()},imageTitle:c}),(0,tU.jsx)(n$.Z,{channel:C,isOpen:void 0!==y,classNames:{modalVideoEffect:"modal-video-effect",modalVideo:"modal-video",modalVideoClose:"modal-video-close",modalVideoBody:"modal-video-body",modalVideoInner:"modal-video-inner",modalVideoIframeWrap:"modal-video-movie-wrap",modalVideoCloseBtn:l.modalVideoButton},videoId:_,onClose:function(){return b(void 0)}})]})},{defaultStyle:ri(),styles:ro}
1),rl=n(65579),rs=n(76005),rd=n(13217),rc=n.n(rd),ru=n(57274),rm=n(53078),rp=n(93235),rg=n(43099),Download=function(e){var t=e.style,n=e.className;return(0,tU.jsx)(rg.Z,{style:t,className:n})},rh=n(86092),getDimension=function(e){return tb()(e,"itemDimensions")},getCondition=function(e){return tb()(e,"condition")},getWeight=function(e){return tb()(e,"weight")},getId=function(e){return tb()(e,"id")},getProvenance=function(e){return tb()(e,"provenance")},showProvenanceTab=function(e){var t=e.showProvenance,n=e.documents,r=e.item;return t&&(getProvenance(r)||(0,t8.Z)(n))};function LinkToDocument(e){var t=e.document,n=(0,rm.nK)(),r=useInventoryBiddingItem();return(0,tU.jsx)(rh.Z,{download:tb()(t,"origFileName"),target:"_blank",href:"".concat(n.SKELETON_API_URL,"/InventoryItems/").concat(getId(r),"/Documents/").concat(getId(t),"/download"),children:(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:tb()(t,"origFileName")})})}function DocumentDownloadList(e){var t=e.documents;return(0,t8.Z)(t)?(0,tU.jsx)(rv,{children:t0()(t,function(e){return getId(e)?(0,tU.jsx)("li",{children:(0,tU.jsx)(LinkToDocument,{document:e})},getId(e)):null})}):null}var rf=(0,tC.Z)("div",{target:"e1pfu8rm1"})({name:"p8gvtv",styles:"display:flex;align-items:center;margin-top:32px;margin-bottom:16px;text-transform:uppercase"}),rv=(0,tC.Z)("ul",{target:"e1pfu8rm0"})({name:"3c72dy",styles:"margin:0;padding-left:26px;li{margin-bottom:4px;cursor:pointer;}"}),sections_InventoryMoreDetails=function(e){var t=e.documents,n=(0,nN.r)(),r=useInventoryBiddingItem(),i=(0,ne.zu)(),o=i.showCondition,a=i.showDimension,l=i.showLocation,s=i.showWeight,d=i.showProvenance,c=(0,ne.Wk)({showLocation:l,item:r});return(0,tU.jsxs)("ul",{children:[o&&getCondition(r)?(0,tU.jsxs)("li",{children:[(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:(0,tw.t)(w||(w=(0,tc.Z)(["Condition"])))}),(0,tU.jsx)("span",{style:{marginRight:5},children:":"}),(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:getCondition(r)})]}):null,a&&getDimension(r)?(0,tU.jsxs)("li",{children:[(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:(0,tw.t)(I||(I=(0,tc.Z)(["Dimensions"])))}),(0,tU.jsx)("span",{style:{marginRight:5},children:":"}),(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:getDimension(r)})]}):null,s&&getWeight(r)?(0,tU.jsxs)("li",{children:[(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:(0,tw.t)(Z||(Z=(0,tc.Z)(["Weight"])))}),(0,tU.jsx)("span",{style:{marginRight:5},children:":"}),(0,tU.jsxs)(nd.Z,{variant:"body1",component:"span",children:[getWeight(r)," ",tb()(n,["systemSettings","defaultWeightUnit"])]})]}):null,l&&c?(0,tU.jsxs)("li",{children:[(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:(0,tw.t)(S||(S=(0,tc.Z)(["Location"])))}),(0,tU.jsx)("span",{style:{marginRight:5},children:":"}),(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:c})]}):null,showProvenanceTab({showProvenance:d,documents:t,item:r})?(0,tU.jsxs)("li",{children:[getProvenance(r)?(0,tU.jsxs)(tU.Fragment,{children:[(0,tU.jsx)(nd.Z,{variant:"body1",component:"span",children:(0,tw.t)(B||(B=(0,tc.Z)(["Provenance"])))}),(0,tU.jsx)("span",{style:{marginRight:5},children:":"}),(0,tU.jsx)(rp.Z,{variant:"body1",content:getProvenance(r)})]}):null,(0,t8.Z)(t)?(0,tU.jsxs)(tU.Fragment,{children:[(0,tU.jsxs)(rf,{children:[(0,tU.jsx)(Download,{style:{marginRight:8},className:""}),(0,tU.jsx)(nd.Z,{component:"span",variant:"body1",children:(0,tw.t)(_||(_=(0,tc.Z)(["Downloads"])))})]}),(0,tU.jsx)(DocumentDownloadList,{documents:t})]}):null]}):null]})},rx=/<p>\s*<br\s*\/?>\s*<\/p>/im,getItemDescription=function(e){var t=tb()(e,["description"]);return t&&rx.test(t)?t.split(/<p>\s*<br\s*\/?>\s*<\/p>/gim).map(function(e){return e.replace(/<\/p>\s*<p>/gim,"<br>")}).join(""):t},ry=(0,tC.Z)("div",{target:"e1z064vq3"})({name:"1teal7v",styles:">*{margin:0;padding:0;}"}),rb=(0,tC.Z)("div",{target:"e1z064vq2"})({name:"i7y3py",styles:">*:last-child{margin-bottom:0;}"}),rj=(0,tC.Z)("div",{target:"e1z064vq1"})("padding:0 var(--item-detail-space);",(0,tk.up)("lg"),"{padding:0;}"),rw=(0,tC.Z)("div",{target:"e1z064vq0"})("position:relative;ul{padding:0;padding-left:18px;}",function(e){return e.readMore?(0,nJ.iv)(rb,"{display:block;}",""):(0,nJ.iv)(rb,"{display:none;}",ry,"{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}","")},";"),sections_InventoryDescription=function(e){var t=e.documents,n=getItemDescription(useInventoryBiddingItem()),r=(0,ru.l)("body2"),i=(0,tj.useMemo)(function(){if(!n)return[];var e=tj.Children.toArray(r(n));return[tm()(e),rc()(e)]},[r,n]),o=i[0],a=i[1];return(0,tU.jsx)(rj,{children:(0,tU.jsxs)(rw,{readMore:!0,children:[o?(0,tU.jsx)(ry,{children:o}):null,(0,t8.Z)(a)?(0,tU.jsx)(rb,{children:a}):null,(0,tU.jsx)(sections_InventoryMoreDetails,{documents:t})]})})},rI={name:"dj54fl",styles:"position:absolute;right:var(--item-detail-space);top:var(--item-detail-space);z-index:201;flex-direction:column"},rZ=(0,tC.Z)("div",{target:"ef4kt5u3"})("display:flex;align-items:center;gap:4px;",function(e){return e.$overlay?rI:(0,nJ.iv)("justify-content:flex-end;padding:0 var(--item-detail-space);",(0,tk.up)("lg"),"{padding:0;}","")},";"),rS=(0,tC.Z)(ra,{target:"ef4kt5u2"})("margin-bottom:0;
1.skeleton-ui-thumbnails{display:none;margin-bottom:0;margin-top:calc(2px + var(--indent));",(0,tk.up)("md"),"{display:grid;padding:0 var(--item-detail-space);}",(0,tk.up)("lg"),"{padding:0;}}.skeleton-ui-thumbnails__item{margin:0;}"),rB=(0,tC.Z)("div",{target:"ef4kt5u1"})("display:block;width:100%;flex:auto;position:relative;img{width:100%;}.description{margin-top:var(--item-detail-space);}.description,.expander{left:0;",(0,tk.up)("md"),"{margin-bottom:var(--item-detail-space);}}"),r_=(0,tC.Z)("div",{target:"ef4kt5u0"})({name:"10jyjfz",styles:"display:flex;flex-direction:column;gap:var(--item-detail-space)"}),sections_InventoryDisplaySection=function(e){var t=e.urls,n=e.images,r=e.documents,i=useInventoryBiddingItem(),o=buildMedia(n,t).length>0;return(0,tU.jsxs)(r_,{children:[(0,tU.jsxs)(rB,{children:[(0,tU.jsxs)(rZ,{$overlay:o,children:[(0,tU.jsx)(rl.Z,{itemId:null==i?void 0:i.id}),(0,tU.jsx)(rs.Z,{title:null==i?void 0:i.name})]}),(0,tU.jsx)(rS,{urls:t,images:n,title:null==i?void 0:i.name})]}),(0,tU.jsx)(sections_InventoryDescription,{documents:r})]})},rC=n(59704),rk=n.n(rC),rP=n(77813),rO=n.n(rP),rN=n(30998),rT=n.n(rN),rM=n(95979),rD=n(10144),rL=n(76509),rz=n(45323),getAuctionId=function(e){return tb()(e,["auctionId"])},InventoryTopNavigation_getId=function(e){return tb()(e,["id"])};function ConnectedContainer(e){var t=e.className,n=e.children,r=(0,rM.lh)("header",{foregroundActiveColor:"color-primary-selected",foregroundHoverColor:"color-primary-hover",foregroundColor:"font-color",backgroundColor:"color-background"}),i=r.foregroundActiveColor,o=r.foregroundHoverColor,a=r.foregroundColor,l=r.backgroundColor;return(0,tU.jsx)(rV,{foregroundActiveColor:i,foregroundHoverColor:o,foregroundColor:a,backgroundColor:l,className:void 0===t?void 0:t,children:n})}var rA=(0,tC.Z)(function(e){var t=e.className,n=e.style;return(0,tU.jsx)("svg",{className:t,style:n,viewBox:"0 0 24 24",width:"24",height:"24",children:(0,tU.jsx)("path",{d:"M10 6 L16 12 L10 18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})},{target:"e1v8zq8v5"})("transform:",function(e){var t=e.dir;return tb()({left:"rotate(-180deg)"},null!=t?t:"")},";display:block;width:24px;height:24px;"),getProp=function(e){return function(t){return tb()(t,e)}},rV=(0,tC.Z)("div",{target:"e1v8zq8v4"})("--header-color-background:",getProp("backgroundColor"),";--header-color-foreground:",getProp("foregroundColor"),";--header-color-foreground-hover:",getProp("foregroundHoverColor"),";--header-color-foreground-active:",getProp("foregroundActiveColor"),";color:var(--header-color-foreground);background-color:var(--header-color-background);display:block;box-shadow:0 2px 2px 0 rgba(52, 52, 52, 0.29);"),rF={name:"ubwun",styles:"text-decoration:none;cursor:pointer;color:var(--header-color-foreground);&:active{color:var(--header-color-foreground-active);}&:hover{color:var(--header-color-foreground-hover);}"},rE=(0,tC.Z)("span",{target:"e1v8zq8v3"})("display:flex;align-items:center;font-weight:",function(e){return e.bold?600:500},";font-size:16px;line-height:24px;color:var(--header-color-foreground);>span{display:block;}",function(e){var t=e.as;return tb()({a:rF},t)},";"),rR=(0,tC.Z)("div",{target:"e1v8zq8v2"})({name:"3xksoi",styles:"align-items:center;display:flex;gap:6px"}),rH=(0,tC.Z)("div",{target:"e1v8zq8v1"})({name:"3xksoi",styles:"align-items:center;display:flex;gap:6px"}),rq=(0,tC.Z)("div",{target:"e1v8zq8v0"})({name:"l2yonl",styles:"display:flex;height:47px;justify-content:space-between;align-items:center;max-width:1440px;margin:0 auto;padding:0 var(--page-gutter)"}),sections_InventoryTopNavigation=function(e){var t,n,r,i,o,a,l,s,d,c,u,m,p,g,h,f,v,x,y=e.lotOrder,b=e.auctionSearchResult,j=useAuction(),w=useInventoryBiddingItem(),I=(0,t6.Sv)(),Z=(n=(t={auctionSearchResult:b,auction:j,culture:I}).auctionSearchResult,r=t.auction,i=t.culture,(0,tj.useMemo)(function(){return n?(0,tw.t)(C||(C=(0,tc.Z)(["Search"]))):tb()(r,["dailyAuction"])?(0,tw.t)(k||(k=(0,tc.Z)(["Lots"]))):getAuctionId(r)?(0,tw.t)(P||(P=(0,tc.Z)(["Catalog"]))):null},[getAuctionId(r),n,i])),S=(s=(l={auctionSearchResult:b,lotOrder:y,auction:j,query:(o=(0,t5.t)(),a=tb()(o,"asPath"),(0,tj.useMemo)(function(){try{if(!/\?/.test(a))return{};var e=new URLSearchParams(a.split("?").pop()),t={},n=(0,ne.Kp)(a);n&&(t.catNav=n);var r=e.get("auctionId");r&&(t.auctionId=parseInt(r,10));var i=e.get("top");return i&&/\d+/.test(i)&&(t.top=parseInt(i,10)),t}catch(e){return{}}},[a])),item:w,culture:I}).auctionSearchResult,d=l.lotOrder,c=l.auction,u=l.query,m=l.culture,p=l.item,g=getAuctionId(c),h=InventoryTopNavigation_getId(p),f=(0,t5.t)(),v=function(e){var t;if(e){try{t=decodeURIComponent(e)}catch(e){return}if(/^\/(lots|auctions)(?=[/?]|$)/.test(t))return t}}(null==u?void 0:u.catNav),x=(0,tj.useCallback)(function(){v?((0,rz.e1)(v),f.push(v)):s?f.push({pathname:"/".concat(m,"/auctions/search")}):f.push({pathname:(0,ne.Kl)(c,m)})},[v,s,c,m,f]),(0,tj.useMemo)(function(){var e,t=rT()(d,function(e){return rO()(h,e)}),itemLink=function(e){if(e&&g)return{pathname:"/".concat(m,"/auctions/").concat(g,"/").concat(e),query:null!=u&&u.catNav?{catNav:u.catNav}:void 0}};return{backHref:(e=tb()(u,["top"],48),g?{pathname:"/".concat(m,"/auctions/").concat(g),query:{top:e,skip:Math.floor(Math.max(0,t)/e)*e}}:s?{pathname:"/".concat(m,"/auctions/search"),query:{top:e,skip:Math.floor(Math.max(0,t)/e)*e}}:null),prevHref:itemLink(tb()(d,[t-1])),nextHref:itemLink(tb()(d,[t+1])),onNavigateToCatalogClick:x}},[h,g,s,d,u,x])),B=S.backHref,_=S.prevHref,O=S.nextHref,N=S.onNavigateToCatalogClick,T=(0,tj.useState)(!1),M=T[0],D=T[1];if((0,tj.useEffect)(function(){D(!0)},[]),!B)return null;var L=(0,tU.jsxs)(rE,{as:"a",children:[(0,tU.jsx)(rA,{dir:"left",style:{marginTop:"2px"}}),(0,tU.jsx)("span",{children:Z})]});return(0,tU.jsx)(rD.gk,{outletId:"subheader",children:(0,tU.jsx)(ConnectedContainer,{children:(0,tU.jsxs)(rq,{children:[(0,tU.jsx)(rR,{children:M?(0,tU.jsx)("div",{onClick:N,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&
1(e.preventDefault(),N())},role:"button",tabIndex:0,children:L}):(0,tU.jsx)(rL.Z,{href:B,passHref:!0,children:L})}),rk()([_,O])?(0,tU.jsxs)(rH,{children:[_?(0,tU.jsx)(rL.Z,{href:_,passHref:!0,children:(0,tU.jsx)(rE,{as:"a",children:(0,tU.jsx)(rA,{dir:"left"})})}):null,(0,tU.jsx)(rE,{bold:!0,children:tV()([tb()(w,["lotNumber"]),InventoryTopNavigation_getId(w)])}),O?(0,tU.jsx)(rL.Z,{href:O,passHref:!0,children:(0,tU.jsx)(rE,{as:"a",children:(0,tU.jsx)(rA,{dir:"right"})})}):null]}):null]})})})},rY=n(93612),rW=(0,tC.Z)("a",{target:"ezggd3g1"})({name:"1c2ou8f",styles:"border:1px solid var(--color-primary);color:var(--color-primary);background-color:transparent;padding:0 10px;line-height:22px;box-sizing:border-box;font-size:16px;border-radius:12px;display:block;position:relative;overflow:hidden;cursor:pointer;text-decoration:none;&:hover{border:1px solid var(--color-primary-hover);color:#fff;background-color:var(--color-primary-hover);}&:active{border:1px solid var(--color-primary-selected);color:#fff;background-color:var(--color-primary-selected);}&:focus{outline:none;box-shadow:0 0 0 1px var(--color-primary-hover);}"}),rK=(0,tC.Z)("nav",{target:"ezggd3g0"})({name:"w7hf4u",styles:"margin:0;padding:0;ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0;}"}),sections_InventoryCategoryPills=function(){var e,t=(e=useInventoryBiddingItem(),tb()(e,["initialCategories"])),n=useAuction(),r=(0,t6.Sv)(),i=(0,rY.Ke)("Detail page: click category link"),o=(0,tj.useCallback)(function(e){var t=e.id,i=e.name;return tb()(n,["auctionId"])?(0,tU.jsx)(rL.Z,{passHref:!0,href:{pathname:(0,ne.Kl)(n,r),query:{categories:t}},legacyBehavior:!0,children:(0,tU.jsx)(rW,{children:i})}):(0,tU.jsx)(rW,{children:i})},[n]);return(0,t8.Z)(t)?(0,tU.jsx)(rK,{children:(0,tU.jsx)("ul",{children:t0()(t,function(e){var t=e.id,n=e.name,r=e.level;return(0,tU.jsx)("li",{onClick:function(){i({categoryId:t,categoryName:n,categoryLevel:String(r)})},children:o({id:t,name:n})},t)})})}):null},rU=n(57043),rG=n.n(rU),rJ=n(54061),rX=n.n(rJ),r$=n(82576),itemRange=function(e,t,n){var r=n.min,i=n.max;return function(n){var o=[tb()(n,r),tb()(n,i)];return o.length?{type:"range",label:t,value:o,key:e}:null}},itemAmount=function(e,t,n){return function(r){var i=tb()(r,n);return i?{type:"amount",label:t,value:i,key:e}:null}},itemPercentage=function(e,t,n){return function(r){var i=tb()(r,n);return i?{type:"percentage",label:t,value:i,key:e}:null}},callLeft=function(e){return function(t){var n=e;do n=n(t);while(nM()(n));return n}},rQ=callLeft(function(){return itemRange("estimate",(0,tw.t)(O||(O=(0,tc.Z)(["Estimate"]))),{min:["item","estimateLow"],max:["item","estimateHigh"]})}),r0=callLeft(function(e){var t,n,r=e.showVat,i=e.auction;return r?(t=itemPercentage("buyersPremium",(0,tw.t)(N||(N=(0,tc.Z)(["Buyers Premium (inc. VAT)"]))),["auction","buyersPremium"]),n=tb()(i,["hammerFees","buyer","rate"],0),function(e){var r=t(e);return r?tz()({},r,{value:(0,r$.Z)(r.value,n)}):null}):itemPercentage("buyersPremium",(0,tw.t)(T||(T=(0,tc.Z)(["Buyers Premium"]))),["auction","buyersPremium"])}),r1=callLeft(function(e){return e.showVat?itemAmount("buyersHammerFee",(0,tw.t)(M||(M=(0,tc.Z)(["Hammer Fee (inc. VAT)"]))),["auction","hammerFees","buyer","total"]):itemAmount("buyersHammerFee",(0,tw.t)(D||(D=(0,tc.Z)(["Hammer Fee"]))),["auction","hammerFees","buyer","amount"])}),r2=callLeft(function(e){var t=e.item;return tb()(t,"initialShippingCategory.pickupOnly")?{type:"pickupOnly",label:(0,tw.t)(L||(L=(0,tc.Z)(["Shipping info"]))),value:(0,tw.t)(z||(z=(0,tc.Z)(["Pick up only"])))}:itemAmount("shippingFee",(0,tw.t)(A||(A=(0,tc.Z)(["Shipping Fee (from)"]))),["item","initialShippingCategory","flatRate"])}),r4=callLeft(function(){var e,t;return e=(0,tw.t)(V||(V=(0,tc.Z)(["Droit de Suite applies"]))),t=["item","isDroitDeSuite"],function(n){return tb()(n,t)?{type:"subscript",label:e,key:"isDroitDeSuite"}:null}}),useInventoryFees=function(e){var t=e.item,n=e.auction,r=(0,n6.N2)(tb()(t,"vatScheme.vatSchemeType.name"));return(0,tj.useMemo)(function(){return rX()([rQ,r0,r1,r2,r4],function(e,i){var o=i&&i({showVat:r,item:t,auction:n});return o?rG()(e,[o]):e},[])},[t,n,r])};function FeeRow(e){var t=e.label,n=e.type,r=e.value;switch(n){case"subscript":return(0,tU.jsx)("tr",{children:(0,tU.jsxs)("td",{className:"label",colSpan:2,children:["*",(0,tU.jsx)("small",{children:t})]})});case"pickupOnly":return(0,tU.jsxs)("tr",{children:[(0,tU.jsx)("td",{className:"label",children:t}),(0,tU.jsx)("td",{className:"value",children:r})]});default:return(0,ne.vN)({type:n,value:r})?(0,tU.jsxs)("tr",{children:[(0,tU.jsx)("td",{className:"label",children:t}),(0,tU.jsx)("td",{className:"value",children:(0,ne.Bw)({type:n,value:r})})]}):null}}var r6=(0,tC.Z)("table",{target:"e1jr5ke00"})({name:"1t8x5w0",styles:"--meta-value-border-color:#dedede;table-layout:auto;width:100%;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;tr>td{padding:2px 0;font-size:16px;line-height:24px;font-weight:500;border-bottom:1px solid var(--meta-value-border-color);}tr:last-of-type>td{border-bottom:0;}.label{text-align:left;}.value{font-weight:600;text-align:right;}"}),sections_InventoryFeeTable=function(e){var t=e.className,n=useAuction(),r=useInventoryFees({item:useInventoryBiddingItem(),auction:n});return(0,tU.jsx)(r6,{className:t,children:(0,tU.jsx)("tbody",{children:t0()(r,function(e){var t=e.key,n=e.label,r=e.type,i=e.value;return(0,tU.jsx)(FeeRow,{label:n,type:r,value:i},t)}
1)})})},r5={name:"mans7h",styles:"line-height:24px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:20px;margin:4px 0"},r3=(0,tC.Z)("div",{target:"ewhnjew6"})("background:var(--box-background-color);min-width:0;padding:16px;",(0,tk.up)("md"),"{padding:20px 24px;}",(0,tk.up)("lg"),"{padding:16px;}",(0,tk.up)("xl"),"{padding:20px 24px;}"),r8=(0,tC.Z)("h4",{target:"ewhnjew5"})({name:"x2xlh9",styles:"display:block;font-size:16px;line-height:24px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:0"}),r7=(0,tC.Z)("strong",{target:"ewhnjew4"})(r5," display:block;"),r9=(0,tC.Z)("strong",{target:"ewhnjew3"})(r5," display:inline-block;margin-right:6px;margin-bottom:0;"),ie=(0,tC.Z)("span",{target:"ewhnjew2"})(r5," display:inline-block;font-size:16px;font-weight:600;margin:0px;align-self:center;"),it=(0,tC.Z)("span",{target:"ewhnjew1"})({name:"166jfad",styles:"display:block;font-size:14px;line-height:24px"}),ir=(0,tC.Z)("div",{target:"ewhnjew0"})("display:flex;",(0,tk.up)("lg"),"{display:block;}"),ii=sections_withInventoryStalePlaceholder(function(e){var t=e.className;return(0,tU.jsxs)(r3,{className:t,children:[(0,tU.jsx)(r8,{children:"\xa0"}),(0,tU.jsx)(r7,{children:"\xa0"}),(0,tU.jsx)(it,{children:"\xa0"})]})}),InventoryDetailBidBox_useBidLabel=function(e){var t=(0,ne.Mq)(e),n=(0,ne.FS)(e),r=(0,t6.Sv)();return(0,tj.useMemo)(function(){return(0,t3.Yc)(t)?(0,tw.t)(E||(E=(0,tc.Z)(["Final bid"]))):n?(0,tw.t)(R||(R=(0,tc.Z)(["Current bid"]))):(0,tw.t)(H||(H=(0,tc.Z)(["Starting bid"])))},[t,n,r])},io=(0,tC.Z)("span",{target:"e1lov8fn1"})("font-weight:600;white-space:nowrap;color:",function(e){return e.reserveMet?"var(--color-success)":"var(--color-warning)"},";"),ia=(0,tC.Z)(ii(function(e){var t,n,r,i,o,a,l,s,d,c=e.className,u=useInventoryBiddingItem(),m=(t=useInventoryBidding(),(0,tT.Z)(t,2)[1].currentBidCount),p=InventoryDetailBidBox_useBidLabel(u),g=(n=(0,ne.Mq)(u),r=(0,ne.FS)(u),i=(0,ne.GH)(u),(0,tj.useMemo)(function(){return r?(0,nl.ZP)(r):!(0,t3.Yc)(n)&&i?(0,nl.ZP)(i):(0,tw.t)(q||(q=(0,tc.Z)(["No bids"])))},[n,r,i])),h=(o=(0,ne.Mq)(u),a=(0,ne.FS)(u),l=(0,ne.GH)(u),s=useAuction(),d=.01*tb()(null==s?void 0:s.hammerFees,["buyer","rate"],0),(0,tj.useMemo)(function(){return a?(0,nl.ZP)(a+a*d,{showCurrency:!1,precision:2}):!(0,t3.Yc)(o)&&l?(0,nl.ZP)(l+l*d,{showCurrency:!1,precision:2}):null},[o,a,l]));return(0,tU.jsxs)(r3,{className:c,children:[(0,tU.jsxs)(r8,{children:[p," ",m>0?"(".concat((0,tw.ngettext)((0,tw.msgid)(F||(F=(0,tc.Z)([""," bid"])),m),"".concat(m," bids"),m),")"):null]}),(0,tU.jsxs)(ir,{children:[(0,tU.jsx)(r9,{children:g}),!(null!=u&&u.nonTaxable)&&(0,tU.jsxs)(ie,{children:["(",h," ",(0,tw.t)(Y||(Y=(0,tc.Z)(["inc. VAT"]))),")"]})]}),u&&0!==u.reservePrice&&(0,tU.jsxs)(it,{children:[(0,tw.t)(W||(W=(0,tc.Z)(["Reserve price"])))," ",(0,tU.jsx)(io,{reserveMet:(0,ne.Xs)(u),children:(0,ne.Xs)(u)?(0,tw.t)(K||(K=(0,tc.Z)(["Met"]))):(0,tw.t)(U||(U=(0,tc.Z)(["Not Met"])))})]})]})}),{target:"e1lov8fn0"})({name:"tnribe",styles:"grid-area:bid"}),il=n(30381),is=n.n(il),id=n(4072),ic=n(12215),iu=n(55041);function LiveAuctionState(e){var t,n,r,i,o,a=e.as,l=void 0===a?"span":a,s=useInventoryBidding(),d=(0,tT.Z)(s,2),c=(n=(t={biddingInfo:d[0],item:d[1].item}).biddingInfo,r=t.item,i=(0,ne.$9)(n),o=(0,ne.BD)(r),(0,tj.useMemo)(function(){switch(o){case t3.eh:case t3.sI:return(0,tw.t)(er||(er=(0,tc.Z)(["Starts soon"])));case t3.tD:return i?(0,tw.t)(ei||(ei=(0,tc.Z)(["Live"]))):(0,tw.t)(eo||(eo=(0,tc.Z)(["OngoingAuction"])));case t3.V4:return(0,tw.t)(ea||(ea=(0,tc.Z)(["Paused"])));default:return null}},[i,o]));return c?(0,tU.jsx)(l,{children:c}):null}function ClosedState(e){var t,n,r,i,o,a,l=e.as,s=void 0===l?"span":l,d=(t=({item:useInventoryBiddingItem()}).item,n=(0,ne.eZ)(t),r=(0,ne.Xs)(t),i=(0,ne.Fs)(t),o=(0,ne.FS)(t),a=(0,t6.Sv)(),(0,tj.useMemo)(function(){return n?(0,tw.t)(el||(el=(0,tc.Z)(["Passed"]))):o&&(i||r)?(0,tw.t)(es||(es=(0,tc.Z)(["Sold"]))):(0,tw.t)(ed||(ed=(0,tc.Z)(["Unsold"])))},[n,r,i,o,a]));return d?(0,tU.jsx)(s,{children:d}):null}var im=(0,tC.Z)(ii(function(e){var t=e.className,n=useInventoryBiddingItem(),r=useAuction(),i=r.isLiveAuction?(0,tw.t)(G||(G=(0,tc.Z)(["Live auction begins"]))):(0,tw.t)(J||(J=(0,tc.Z)(["Lot ends"]))),o=r.isLiveAuction?(0,tw.t)(X||(X=(0,tc.Z)(["Pending Live"]))):(0,tw.t)($||($=(0,tc.Z)(["Closed"]))),a=null==n?void 0:n.endDate,l=(0,iu.$)(a,{format:"long"});return(0,ne.CT)(n)||(0,ne.dV)(n)&&r.isLiveAuction&&!l?(0,tU.jsxs)(r3,{className:t,children:[(0,tU.jsx)(r8,{children:(0,tw.t)(Q||(Q=(0,tc.Z)(["Live"])))}),(0,tU.jsx)(LiveAuctionState,{as:r7}),(0,tU.jsx)(it,{children:"\xa0"})]}):(0,ne.dV)(n)&&r.realtimeAuction?(0,tU.jsxs)(r3,{className:t,children:[l&&l<=0?(0,tU.jsx)(r8,{children:o}):(0,tU.jsx)(r8,{children:(0,tw.t)(ee||(ee=(0,tc.Z)(["Live"])))}),l?(0,tU.jsx)(nV.Z,{date:a,fallback:(0,tU.jsx)(ic.Z,{}),format:"long",as:r7}):(0,tU.jsx)(r7,{children:(0,tw.t)(et||(et=(0,tc.Z)(["OngoingAuction"])))}),(0,tU.jsx)(it,{children:"\xa0"})]}):(0,ne.dV)(n)?(0,tU.jsxs)(r3,{className:t,children:[l?(0,tU.jsx)(r8,{children:i}):(0,tU.jsx)(r8,{children:o}),l?(0,tU.jsx)(nV.Z,{date:a,fallback:(0,tU.jsx)(ic.Z,{}),format:"long",as:r7}):(0,tU.jsx)(ClosedState,{as:r7}),(0,tU.jsx)(it,{children:(0,tU.jsx)("time",{dateTime:is()(a).toISOString(),children:(0,tU.jsx)(id.Z,{date:a,format:"D MMM, YYYY H:mm"})})})]}):(0,ne.kk)(n)?(0,tU.jsxs)(r3,{className:t,children:[(0,tU.jsx)(r8,{children:(0,tw.t)(en||(en=(0,tc.Z)(["Closed"])))}),(0,tU.jsx)(ClosedState,{as:r7}),(0,tU.jsx)(it,{children:(0,tU.jsx)("time",{dateTime:is()(a).toISOString(),children:(0,tU.jsx)(id.Z,{date:a,format:"D MMM, YYYY H:mm"})})})]}):null}),{target:"ewu9yj80"})({name:"rns6dj",styles:"grid-area:end"}),ip=(0,tC.Z)("div",{target:"e14em8wv1"})({name:"14dorh1",styles:"background:var(--box-background-color);padding:16px;grid-area:fee"}),ig=(0,tC.Z)("div",{target:"e14em8wv0"})("display:grid;box-sizing:border-box;gap:var(--item-detail-space);margin-bottom:var(--item-detail-space);grid-template:",function(e){return e.showInventoryDetailBidBox?"'bid' auto 'end' auto 'fee' auto / minmax(0, 1fr);":"'end' auto 'fee' auto / minmax(0, 1fr);"},";",(0,tk.up)("md"),"{grid-template:",function(e){return e.showInventoryDetailBidBox?"'bid end' auto 'fee fee' auto / minmax(0, 1fr) minmax(0, 1fr);":"'end end' auto / minmax(0, 1fr) minmax(0, 1fr) 'fee fee' auto / minmax(0, 1fr) minmax(0, 1fr);"},";}"),sections_InventoryDetailSection=function(){var e=(0,nN.r)(),t=(0,ne.dh)(e),n=useInventoryBiddingItem(),r=(0,ne.Mq)(n),i=!t||(0,t3.Yc)(r);return(0,tU.jsxs)(ig,{showInventoryDetailBidBox:i,children:[i&&(0,tU.jsx)(ia,{}),(0,tU.jsx)(im,{}),(0,tU.jsx)(ip,{children:(0,tU.jsx)(sections_InventoryFeeTable,{})})]})},ih=n(95383),iv=n(7654),ix=n.n(iv),iy=n(58030),ib=(0,tC.Z)("div",{target:"e1c7uee3"})({name:"1ahpxvv",styles:"margin-bottom:var(--gutter);display:flex;justify-content:space-between"}),ij=(0,tC.Z)("table",{target:"e1c7uee2"})({name:"1nvuu6h",styles:"table-layout:auto;border-spacing:0;width:100%;tr>td{border-bottom:1px solid #e8e8e8;padding:4px 8px;white-space:nowrap;}tr>td:first-of-type{padding-left:0;}tr>td:last-of-type{padding-right:0;}"}),iw=(0,tC.Z)("div",{target:"e1c7uee1"})(function(e){var t=e.tableRows,n=void 0===t?5:t;return(0,nJ.iv)("max-height:calc(33px * ",n,");","")}," overflow-y:auto;padding-right:16px;::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.025);border-radius:4px;}::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3);border-radius:4px;}::-webkit-scrollbar-thumb:hover{background:rgba(0, 0, 0, 0.6);}"),iI=(0,tC.Z)("div",{target:"e1c7uee0"})({name:"1qqgsj3",styles:"width:18px;line-height:18px;text-align:center;display:block;font-weight:600;font-size:12px;border-radius:2px;border:1px solid var(--id-color);color:var(--id-color)"});function Bidder(e){var t=parseInt(e.id,10);return ix()(t)?null:(0,tU.jsx)(iI,{style:{"--id-color":iy.V[(t-1)%iy.V.length]},children:t})}var iZ=(0,nJ.F4)(ec||(ec=(0,tc.Z)(["\n from {\n    text-shadow: 0px 0px 5px #fff, 0px 0px 5px #614ad3;\n  }\n  to {\n    text-shadow: none;\n  }\n"]))),iS={name:"es6w4t",styles:"color:#a7a7a7"},iB=(0,tC.Z)("tr",{target:"e1o2ayi50"})(function(e){return e.bidTrigger&&iS}," ",function(e){return e.runEffect&&(0,nJ.iv)("animation:",iZ," 2s ease-in-out;","")},";"),BidHistory_BidHistoryItem=function(e){var t=e.item,n=e.runEffect,r=t.amount,i=t.maxBidTime,o=t.bidderNumber,a=t.bidTrigger;return(0,tU.jsxs)(iB,{bidTrigger:a,runEffect:void 0!==n&&n,children:[(0,tU.jsx)("td",{children:(0,tU.jsx)(Bidder,{id:o})}),(0,tU.jsx)(nd.Z,{component:"td",fontWeight:"semibold",variant:"body2",children:(0,tU.jsx)(id.Z,{date:i,format:"DD MMM"})}),(0,tU.jsx)(nd.Z,{component:"td",fontWeight:"semibold",variant:"body2",children:(0,tU.jsx)(id.Z,{date:i,format:"LT"})}),(0,tU.jsx)(nd.Z,{component:"td",fontWeight:"semibold",textAlign:"right",variant:"body2",children:(0,nl.ZP)(null!=r?r:0)})]})},i_=["inventoryItem","itemId"];function BidCount_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BidCount_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?BidCount_ownKeys(Object(n),!0).forEach(function(t){(0,td.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BidCount_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function useBidCount(e){var t=e.inventoryItem,n=e.itemId,r=rk()([n,tb()(t,"id")])&&"/InventoryItems/".concat(null!=n?n:null==t?void 0:t.id,"/bidHistory/count");return(0,tH.X2)(r)}(0,t_.c8)(function(e){var t=e.inventoryItem,n=e.itemId,r=(0,tN.Z)(e,i_),i=useBidCount({inventoryItem:void 0===t?{}:t,itemId:n});return i?(0,tU.jsxs)(nd.Z,BidCount_objectSpread(BidCount_objectSpread({variant:"span",lowercase:!0,fontWeight:"bold"},r),{},{children:["(",(0,tw.ngettext)((0,tw.msgid)(eu||(eu=(0,tc.Z)([""," bid"])),i),"".concat(i," bids"),i),")"]})):null});var iC=(0,tC.Z)(function(e){var t=e.inventoryItem,n=e.className,r=(0,tj.useState)([]),i=r[0],o=r[1],a=(0,ih.Z)({inventoryItem:t}),l=(0,ih.Z)({inventoryItem:t,channelEvent:"delete"});(0,tj.useEffect)(function(){o(a)},[a]),(0,tj.useEffect)(function(){o(l)},[l]);var s=useBidCount({inventoryItem:t}),d=useAuction(),c=tb()(null==d?void 0:d.hammerFees,["buyer","rate"],0);return Array.isArray(i)&&i.length>0?(0,tU.jsxs)("div",{className:n,children:[(0,tU.jsxs)(ib,{children:[(0,tU.jsxs)("div",{children:[(0,tU.jsx)(nd.Z,{variant:"smallMenu",fontWeight:"semibold",children:(0,tw.t)(em||(em=(0,tc.Z)(["Bid history"])))})," ",(0,tU.jsxs)(nd.Z,{variant:"smallMenu",fontWeight:"normal",children:["(",s,")"]})]}),!(null!=t&&t.nonTaxable)&&(0,tU.jsx)("div",{children:(0,tU.jsxs)(nd.Z,{variant:"smallMenu",font:!0,children:["(",(0,tw.t)(ep||(ep=(0,tc.Z)(["ex. ","% VAT"])),c),")"]})})]}),(0,tU.jsx)(iw,{children:(0,tU.jsxs)(ij,{children:[(0,tU.jsxs)("colgroup",{children:[(0,tU.jsx)("col",{width:"auto"}),(0,tU.jsx)("col",{width:"auto"}),(0,tU.jsx)("col",{width:"auto"}),(0,tU.jsx)("col",{width:"100%"})]}),(0,tU.jsx)("tbody",{children:i.map(function(e){return(0,tU.jsx)(BidHistory_BidHistoryItem,{item:e},tb()(e,"key"))})})]})})]}):null},{target:"eloyymo0"})(""),ik=n(94885),iP=n.n(ik),PurchasedLot=function(e){var t,n,r=e.itemId,i=e.price,o=e.pending,a=void 0!==o&&o,l=e.closedOnBuyer,s=(0,t6.Sv)(),d=(0,nl.ZP)(i),c=(0,tR.Wf)(r&&!a?"/BuyNow/".concat(r,"/invoice?apiVersion=2.0"):null),u=c.data,m=c.error,p=c.refresh,g=null!==(n=a?void 0!==l&&l?"invoicing":"buying":null)&&void 0!==n?n:(t=null!=u?u:void 0)?t.paid?"paid":t.paymentPending?"pending":t.invoiceNumber?"pay":"coming":m?"unread":"loading",h=function(e){switch(e){case"buying":return["current","todo","todo"];case"invoicing":case"loading":case"coming":case"unread":return["done","current","todo"];case"pay":case"pending":return["done","done","current"];default:return["done","done","done"]}}(g),f="buying"===g||"invoicing"===g||"loading"===g;(0,tj.useEffect)(function(){if("pending"===g){var e=setInterval(p,1e4);return function(){return clearInterval(e)}}},[g,p]);var v=null==u?void 0:u.invoiceNumber,x=(null==u?void 0:u.dueAmount)!=null?(0,nl.ZP)(u.dueAmount):null;return(0,tU.jsxs)(iT,{"data-cy":"buyNowPurchased","data-step":g,children:[(0,tU.jsx)(iM,{role:"status",children:"buying"===g?(0,tw.t)(eg||(eg=(0,tc.Z)(["Completing your purchase…"]))):(0,tw.t)(eh||(eh=(0,tc.Z)(["You bought the item"])))}),(0,tU.jsx)(iD,{children:"buying"===g?(0,tw.t)(ef||(ef=(0,tc.Z)(["Buy now for ","."])),d):(0,tw.t)(ev||(ev=(0,tc.Z)(["Bought with Buy now for ","."])),d)}),(0,tU.jsx)(iz,{"aria-label":(0,tw.t)(ex||(ex=(0,tc.Z)(["Progress"]))),children:[(0,tw.t)(ey||(ey=(0,tc.Z)(["Bought"]))),(0,tw.t)(eb||(eb=(0,tc.Z)(["Invoice"]))),(0,tw.t)(ej||(ej=(0,tc.Z)(["Paid"])))].map(function(e,t){return(0,tU.jsxs)(iA,{"data-state":h[t],"aria-current":"current"===h[t]?"step":void 0,children:[(0,tU.jsx)(iV,{"aria-hidden":"true","data-busy":f&&"current"===h[t]?"":void 0,children:"done"===h[t]?"✓":t+1}),e]},e)})}),"invoicing"===g?(0,tU.jsx)(iD,{children:(0,tw.t)(ew||(ew=(0,tc.Z)(["Creating your invoice…"])))}):null,"pay"===g&&v?(0,tU.jsx)(t2(),{href:"/".concat(s,"/payment/").concat(v),passHref:!0,legacyBehavior:!0,children:(0,tU.jsxs)(iF,{"data-cy":"buyNowGoToPayment",children:[(0,tw.t)(eI||(eI=(0,tc.Z)(["Pay invoice ",""])),v),x?(0,tU.jsx)(iE,{children:x}):null]})}):null,"pending"===g?(0,tU.jsx)(iD,{role:"status",children:(0,tw.t)(eZ||(eZ=(0,tc.Z)(["Processing payment, it can take up to a couple of minutes until the payment is fully processed."])))}):null,"paid"===g?(0,tU.jsx)(iL,{"data-cy":"buyNowPaid",children:(0,tw.t)(eS||(eS=(0,tc.Z)(["The invoice is paid. Thank y
1ou!"])))}):null,"coming"===g?(0,tU.jsx)(iD,{children:(0,tw.t)(eB||(eB=(0,tc.Z)(["The invoice will follow. You will find it under My account."])))}):null,"unread"===g?(0,tU.jsx)(iD,{role:"status",children:(0,tw.t)(e_||(e_=(0,tc.Z)(["We could not show your invoice right now. You will find it under My account."])))}):null,f?null:(0,tU.jsx)(t2(),{href:"/".concat(s,"/myaccount/invoices"),passHref:!0,legacyBehavior:!0,children:(0,tU.jsx)(iR,{"data-cy":"buyNowMyInvoices",children:(0,tw.t)(eC||(eC=(0,tc.Z)(["All my invoices"])))})})]})},iO=(0,nJ.F4)(ek||(ek=(0,tc.Z)(["\n  from { opacity: 0; transform: translateY(4px); }\n  to { opacity: 1; transform: none; }\n"]))),iN=(0,nJ.F4)(eP||(eP=(0,tc.Z)(["\n  to { transform: rotate(360deg); }\n"]))),iT=(0,tC.Z)("div",{target:"e9dxzai9"})("margin-bottom:var(--item-detail-space);padding:16px;text-align:center;border:1px solid var(--color-primary);animation:",iO," 0.2s ease-out;@media (prefers-reduced-motion: reduce){animation:none;}"),iM=(0,tC.Z)("div",{target:"e9dxzai8"})({name:"1m1emnq",styles:"text-transform:uppercase;font-weight:600;font-size:16px;line-height:24px"}),iD=(0,tC.Z)("p",{target:"e9dxzai7"})({name:"5v5a06",styles:"margin:8px 0 16px;font-size:14px;line-height:1.5"}),iL=(0,tC.Z)("p",{target:"e9dxzai6"})({name:"v02sx4",styles:"margin:8px 0 0;font-size:14px;font-weight:600"}),iz=(0,tC.Z)("ol",{target:"e9dxzai5"})({name:"amzxp6",styles:"display:grid;grid-template-columns:repeat(3, 1fr);margin:0 0 16px;padding:0;list-style:none;font-size:13px;line-height:1.3"}),iA=(0,tC.Z)("li",{target:"e9dxzai4"})({name:"1599dla",styles:"display:flex;flex-direction:column;align-items:center;gap:4px;color:#767676;&[data-state='done'],&[data-state='current']{color:inherit;}&[data-state='current']{font-weight:600;}"}),iV=(0,tC.Z)("span",{target:"e9dxzai3"})("display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;border:1px solid currentColor;font-size:12px;line-height:1;[data-state='done']>&{border-color:var(--color-primary);background:var(--color-primary);color:#fff;}[data-state='current']>&{border:2px solid var(--color-primary);}&[data-busy]{border:2px solid var(--color-primary);border-top-color:transparent;color:transparent;animation:",iN," 0.8s linear infinite;}@media (prefers-reduced-motion: reduce){&[data-busy]{animation-duration:2.4s;}}"),iF=(0,tC.Z)("a",{target:"e9dxzai2"})({name:"pbdvx7",styles:"display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 8px;box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:1px solid var(--color-primary);background:var(--color-primary);color:#fff;font-family:var(--font-secondary);font-size:16px;font-weight:600;line-height:24px;text-align:center;text-decoration:none;touch-action:manipulation;&:hover,&:active{background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:#fff;}&:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;}"}),iE=(0,tC.Z)("span",{target:"e9dxzai1"})({name:"11qa24s",styles:"font-weight:400;white-space:nowrap"}),iR=(0,tC.Z)("a",{target:"e9dxzai0"})({name:"1f3k9ir",styles:"display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:var(--color-primary);font-size:14px;font-weight:600;touch-action:manipulation;&:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;}"}),BuyNow_BuyNowPurchased=function(e){var t=e.itemId,n=e.price,r=e.pending,i=e.closedOnBuyer;return(0,tU.jsx)(PurchasedLot,{itemId:t,price:n,pending:void 0!==r&&r,closedOnBuyer:void 0!==i&&i},null!=t?t:"none")};function offersBuyNow(e){return!!e&&!e.isLiveAuction&&!e.realtimeAuction&&!e.blindAuction}var createMessage=function(e,t,n){return{shouldDisplay:t,key:e,getProps:n}},iH=[createMessage("closed",ne.Wh,function(){return{variant:"closed",message:(0,tw.t)(eO||(eO=(0,tc.Z)(["Item closed"])))}}),createMessage("withdrawn",ne.MJ,function(){return{variant:"default",message:(0,tw.t)(eN||(eN=(0,tc.Z)(["Item withdrawn"])))}}),createMessage("paused",ne.qb,function(){return{variant:"default",message:(0,tw.t)(eT||(eT=(0,tc.Z)(["Pending start"])))}}),createMessage("preview",ne.Cg,function(){return{variant:"primary",message:(0,tw.t)(eM||(eM=(0,tc.Z)(["Preview"])))}}),createMessage("extended",ne.gm,function(){return{variant:"default",message:(0,tw.t)(eD||(eD=(0,tc.Z)(["End time has been extended"])))}}),createMessage("highBidder",(0,ne.xZ)([ne.Pv,ne.Ks]),function(){return{variant:"success",message:(0,tw.t)(eL||(eL=(0,tc.Z)(["You are the highest bidder"])))}}
1),createMessage("reserveNotMet",(0,ne.xZ)([ne.Pv,iP()(ne.Ks)]),function(){return{variant:"warning",message:(0,tw.t)(ez||(ez=(0,tc.Z)(["Reserve not met, please bid again"])))}}),createMessage("outbid",(0,ne.xZ)([ne.tt,iP()(ne.Pv)]),function(){return{variant:"warning",message:(0,tw.t)(eA||(eA=(0,tc.Z)(["You have been outbid"])))}})],iq=(0,tC.Z)("div",{target:"e181vhe90"})({name:"1uvqdnx",styles:"margin-bottom:var(--item-detail-space);padding:12px 24px;text-transform:uppercase;font-weight:600;font-size:16px;line-height:24px;text-align:center"}),sections_BidMessage=function(){var e,t,n,r,i,o,a,l,s,d=useInventoryBidding(),c=(0,tT.Z)(d,2),u=c[0],m=c[1],p=m.auction,g=m.item,h=m.user,f=(t=(e={biddingInfo:u,auction:p,item:g,user:h}).biddingInfo,n=e.auction,r=e.user,i=e.item,(0,tj.useMemo)(function(){var e={biddingInfo:t,auction:n,item:i,user:r};return t0()(np()(iH,function(t){return(0,t.shouldDisplay)(e)}),function(t){var n=t.getProps,r=t.key;return tz()({key:r},n(e))})},[t,n,i,r])),v=useBoughtNow(null==g?void 0:g.id,null==h?void 0:h.id),x=useBuyNowPending(null==g?void 0:g.id,null==h?void 0:h.id),y=(o=null==h?void 0:h.id,!!(g&&null!=o&&offersBuyNow(p))&&!0===g.boughtWithBuyNow&&g.highBidderId===o);return(s=useBuyNowPending(a=null==g?void 0:g.id,l=null==h?void 0:h.id),(0,tj.useEffect)(function(){null!=a&&y&&!s&&purchaseOf(a,l)&&nF.delete(a)&&notify()},[a,l,y,s]),null!=v||y)?(0,tU.jsx)(BuyNow_BuyNowPurchased,{itemId:null==g?void 0:g.id,price:null!=v?v:null==g?void 0:g.highBid,pending:x,closedOnBuyer:y}):(0,tU.jsx)(tU.Fragment,{children:t0()(f,function(e){var t=e.key,n=e.variant,r=e.message;return(0,tU.jsx)(iq,{variant:n,children:r},t)})})},iY=(0,tC.Z)("div",{target:"e1vpf5st0"})("display:flex;line-height:26px;font-size:14px;justify-content:space-between;",(0,tk.up)("md"),"{font-size:16px;line-height:24px;}"),sections_UserBidInformation=function(){var e,t,n=useInventoryBidding(),r=(0,tT.Z)(n,2),i=r[0],o=r[1],a=o.item,l=o.user,s=tb()(i,["bids"]),d=(0,tj.useMemo)(function(){return l&&rO()(tb()(l,"id"),tb()(a,"highBidderId"))?tb()(a,"highBid"):0},[l,a]),c=(0,tj.useMemo)(function(){return rX()(s,function(e,t){switch(tb()(t,["bidType","id"])){case iy.j.STRAIGHT:var n=tb()(t,["amount"]);return[tf()([n,e[0]]),e[1]];case iy.j.MAX:var r=tb()(t,["amount"]);return[e[0],tf()([r,e[1]])];default:return e}},[d,0])},[s,d]),u=c[0],m=c[1];return rk()([u,m])?(0,tU.jsxs)(iY,{children:[u?(0,tU.jsx)("div",{children:(e=(0,tU.jsx)("strong",{"data-cy":"user-straight-bid-label",children:(0,nl.ZP)(u)},"straight-bid"),(0,tw.jt)(eV||(eV=(0,tc.Z)(["Your latest bid ",""])),e))}):(0,tU.jsx)("div",{}),m&&(!u||m>u)?(0,tU.jsx)("div",{children:(t=(0,tU.jsx)("strong",{"data-cy":"user-max-bid-label",children:(0,nl.ZP)(m)},"max-bid"),(0,tw.jt)(eF||(eF=(0,tc.Z)(["Your max bid ",""])),t))}):null]}):null},iW=generateBidButton(function(e,t,n){var r=e.straightLoading;return{defaultLabel:function(e){var t=e.selectedAmount;return(0,tw.t)(eE||(eE=(0,tc.Z)(["Bid ",""])),t)},onClick:n.onStraightBidClick,loading:r}}),iK=(0,tC.Z)(iW,{target:"e1ka9fsu0"})({name:"1cc5jzi",styles:"background:transparent;color:var(--color-primary);&:hover,&:active{color:#fff;}&:disabled{background:transparent;color:var(--color-primary-disabled);}"}),iU=n(14754);function BidLadderSelect_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BidLadderSelect_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BidLadderSelect_ownKeys(Object(n),!0).forEach(function(t){(0,td.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BidLadderSelect_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var iG={indicatorSeparator:function(){return{display:"none"}},container:function(e){return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{fontWeight:"500",lineHeight:"24px",fontSize:"16px",pointerEvents:"all"})},control:function(e,t){var n=t.isFocused,r=t.isDisabled;return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{backgroundColor:"var(--box-background-color)",borderRadius:0,transition:"none",boxShadow:n?"0 0 0 1px var(--color-primary-hover)":void 0,borderColor:n?"var(--color-primary)":"var(--box-background-color)",":hover":{borderColor:n?"var(--color-primary)":"var(--color-primary-hover)"},cursor:r?"not-allowed":"pointer"})},valueContainer:function(e){return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{padding:"8px 12px"})},dropdownIndicator:function(e){return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{padding:"14px 16px",color:"inherit",":hover":{color:"inherit"}})},singleValue:function(e){return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{fontWeight:600})},menu:function(e){return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{marginTop:4,borderRadius:0,boxShadow:"0 0 4px 0 rgba(52, 52, 52, 0.15)",borderColor:"var(--border-color)"})},menuList:function(e){return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{padding:0})},option:function(e,t){var n=t.isSelected,r=t.isFocused;return BidLadderSelect_objectSpread(BidLadderSelect_objectSpread({},e),{},{color:r||n?"#fff":"inherit",backgroundColor:n?"var(--color-primary)":r?"var(--color-primary-hover)":"transparent",":active":{backgroundColor:n?"var(--color-primary)":"var(--color-primary-selected)"}})}},getBidLevelValue=function(e){return tb()(e,"value")},iJ=(0,tC.Z)(function(e){var t,n=e.bidLevels,r=e.className,i=e.onCh
1ange,o=e.disabled,a=e.loading,l=e.value,s=useAuction(),d=.01*tb()(null==s?void 0:s.hammerFees,["buyer","rate"],0),c=null===(t=useInventoryBiddingItem())||void 0===t?void 0:t.nonTaxable;return(0,tU.jsx)(iU.ZP,{className:r,formatOptionLabel:function(e){var t=e.value,n=e.name,r="(".concat((0,nl.ZP)(t+t*d,{showCurrency:!1,precision:2})," ").concat((0,tw.t)(eR||(eR=(0,tc.Z)(["inc. VAT"]))),")");return(0,tU.jsxs)("div",{style:{display:"flex"},children:[(0,tU.jsx)("div",{children:n}),!c&&(0,tU.jsx)("div",{style:{marginLeft:"4px",fontSize:"12px",fontWeight:500},children:r})]})},getOptionValue:getBidLevelValue,onChange:i,options:n,placeholder:o?"":(0,tw.t)(eH||(eH=(0,tc.Z)(["Select bid amount..."]))),isDisabled:o||a,styles:iG,isLoading:a,value:l,isSearchable:!1})},{target:"ekid3ri0"})({name:"1082qq3",styles:"display:block;width:100%"}),iX=(0,tC.Z)(function(e){var t=e.className,n=e.disabled,r=void 0!==n&&n,i=useInventoryBidding(),o=(0,tT.Z)(i,3),a=o[0],l=a.isBidLevelsLoading,s=a.straightLoading,d=a.bidLevelItems,c=a.selectedBid,u=a.maxLoading,m=(o[1],o[2].onSelectedBidChange);return(0,tU.jsx)(iJ,{className:t,bidLevels:d,value:c,onChange:m,loading:l,disabled:rk()([l,s,u,!(0,t8.Z)(d),r])})},{target:"e5nllmz0"})(""),i$=n(50029),iQ=n(87794),i0=n.n(iQ),i1=n(6184),i2=n(25710);function BuyNowBox_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BuyNowBox_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BuyNowBox_ownKeys(Object(n),!0).forEach(function(t){(0,td.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BuyNowBox_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var BuyNowTerms=function(e){var t=e.price;return(0,tU.jsxs)(i8,{children:[(0,tU.jsx)("li",{children:(0,tw.t)(eq||(eq=(0,tc.Z)(["With Buy now you buy the item straight away for ",". The bidding closes and the item is yours."])),t)}),(0,tU.jsx)("li",{children:(0,tw.t)(eY||(eY=(0,tc.Z)(["If someone has already placed a higher max bid, the purchase does not go through. Your Buy now then counts as an ordinary bid of ",", and you are not leading."])),t)}),(0,tU.jsx)("li",{children:(0,tw.t)(eW||(eW=(0,tc.Z)(["Buy now disappears when the bidding gets close to the Buy now price. If someone places a bid before you have bought the item, you are told so."])))}),(0,tU.jsx)("li",{children:(0,tw.t)(eK||(eK=(0,tc.Z)(["The buyer's premium and fees are added just as for a won item. You usually receive the invoice straight away; otherwise it follows, and you will find it under My account."])))})]})},i4=(0,tC.Z)("div",{target:"e1iczdna4"})({name:"n3y4p3",styles:"display:flex;flex-direction:column;margin-bottom:var(--item-detail-space)"}),i6=(0,tC.Z)("button",{target:"e1iczdna3"})({name:"1qbke9i",styles:"cursor:pointer;display:block;box-sizing:border-box;width:100%;min-height:48px;padding:11px 12px;border:1px solid var(--color-primary);border-radius:0;background:#fff;color:var(--color-primary);font-family:var(--font-secondary);font-size:16px;font-weight:600;line-height:24px;text-align:center;text-decoration:none;touch-action:manipulation;transition:0.2s background-color,0.2s box-shadow,0.2s color;@media (hover: hover){&:hover:not(:disabled){background-color:#fff;background-color:color-mix(in srgb, var(--color-primary) 7%, #fff);box-shadow:inset 0 0 0 1px var(--color-primary);}}&:active:not(:disabled){box-shadow:none;background:var(--color-primary-selected, var(--color-primary));border-color:var(--color-primary-selected, var(--color-primary));color:#fff;}&:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;}&:disabled{cursor:not-allowed;background:#fff;border-color:var(--color-primary-disabled);color:var(--color-primary-disabled);}"}),i5=(0,t_.oc)(i6),i3=(0,tC.Z)("details",{target:"e1iczdna2"})({name:"1rafp2x",styles:"font-size:14px;line-height:1.5;summary{display:flex;align-items:center;gap:8px;min-height:44px;
1cursor:pointer;color:var(--color-primary);font-weight:600;list-style:none;touch-action:manipulation;}summary::-webkit-details-marker{display:none;}summary::after{content:'';flex:none;width:7px;height:7px;margin-top:-4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform 0.15s ease;}&[open] summary::after{margin-top:4px;transform:rotate(-135deg);}&>ul{margin-top:0;}"}),i8=(0,tC.Z)("ul",{target:"e1iczdna1"})({name:"1austyh",styles:"margin:8px 0;padding-left:20px;font-size:14px;line-height:1.5;text-align:left;li+li{margin-top:6px;}"}),i7=(0,tC.Z)("div",{target:"e1iczdna0"})({name:"yz1nei",styles:"margin-top:16px"}),BuyNow_BuyNowBox=function(e){var t,n,r=e.className,i=useInventoryBidding(),o=(0,tT.Z)(i,2)[1],a=o.item,l=o.auction,s=o.user,d=o.refreshItem,c=(0,t_.JL)(),u=c.customer,m=c.isLoggedIn,p=(0,tW.W)().updateBids,g=(0,i1.d$)(),h=(0,tj.useState)(!1),f=h[0],v=h[1],x=(0,tj.useState)(!1),y=x[0],b=x[1],j=null!==(t=null==a?void 0:a.buyNowPrice)&&void 0!==t?t:0,w=(0,nl.ZP)(j),I=(0,tj.useCallback)((0,i$.Z)(i0().mark(function _callee(){var e,t,n,r;return i0().wrap(function(i){for(var o,l,c,u,m;;)switch(i.prev=i.next){case 0:if(e=null==s?void 0:s.id,!(!(null!=a&&a.id)||null==e||y)){i.next=3;break}return i.abrupt("return");case 3:return b(!0),v(!1),o=a.id,l=e,nF.set(o,{price:j,pending:!0,buyerId:l}),notify(),i.prev=6,i.next=9,(0,tR.rd)("/BuyNow/".concat(a.id,"?apiVersion=2.0"),{method:"POST"});case 9:t=i.sent,i.next=20;break;case 12:return i.prev=12,i.t0=i.catch(6),cancelBuyNow(a.id),b(!1),g({type:"warning",autoHide:1e4,message:(n=function(e){var t;return"number"!=typeof(t=null==e?void 0:e.status)||t>=500?{message:(0,tw.t)(e1||(e1=(0,tc.Z)(["The purchase could not be confirmed. Check the item before you try again."]))),rereadLot:!0}:{message:e instanceof Error&&(0,i2.aG)(e.message)||(0,tw.t)(e0||(e0=(0,tc.Z)(["The purchase could not be completed."]))),rereadLot:!1}}(i.t0)).message}),n.rereadLot&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:setTimeout;e(),t(),n(e,6e3)}(d,p),i.abrupt("return");case 20:(b(!1),g(BuyNowBox_objectSpread(BuyNowBox_objectSpread({},function(e,t){switch(e.outcome){case"Bought":return{type:"success",message:e.invoiceCreated?(0,tw.t)(eU||(eU=(0,tc.Z)(["You bought the item for ",". The invoice is under My account."])),t):(0,tw.t)(eG||(eG=(0,tc.Z)(["You bought the item for ",". The invoice will follow."])),t)};case"Outbid":return{type:"warning",message:(0,tw.t)(eJ||(eJ=(0,tc.Z)(["Someone had already placed a higher max bid, so the purchase did not go through. Your Buy now stands as a bid of ",", but you are not leading right now."])),t)};case"WindowClosed":return{type:"warning",message:(0,tw.t)(eX||(eX=(0,tc.Z)(["Sorry, someone else got there first – Buy now is no longer available. Nothing was bought."])))};case"AlreadyLeading":return{type:"info",message:(0,tw.t)(e$||(e$=(0,tc.Z)(["You are already the highest bidder on this item."])))};default:return{type:"warning",message:(0,tw.t)(eQ||(eQ=(0,tc.Z)(["Buy now is not available for this item any more. Nothing was bought."])))}}}(t,w)),{},{autoHide:1e4})),"Bought"===t.outcome)?(c=a.id,u=null!==(r=t.amount)&&void 0!==r?r:j,m=e,nF.set(c,{price:u,pending:!1,buyerId:m}),notify()):cancelBuyNow(a.id),p();case 24:case"end":return i.stop()}},_callee,null,[[6,12]])})),[null==a?void 0:a.id,null==s?void 0:s.id,y,g,w,j,p,d]);return!function(e,t,n){if(!e||!offersBuyNow(t))return!1;var r=e.buyNowPrice,i=e.buyNowHideAtBid,o=e.highBid,a=e.highBidderId;return!!r&&!(r<=0)&&!!i&&!((null!=o?o:0)>=i)&&(null==o||!(o>0)||null==n||a!==n)}(a,l,null==s?void 0:s.id)?null:m?(0,tU.jsxs)(i4,{className:r,"data-cy":"buyNowBox",children:[(0,tU.jsxs)(i6,{type:"button",onClick:function(){return v(!0)},disabled:y,"data-cy":"buyNowButton",children:[(0,tw.t)(e6||(e6=(0,tc.Z)(["Buy now"])))," – ",w]}),(0,tU.jsxs)(i3,{children:[(0,tU.jsx)("summary",{children:(0,tw.t)(e5||(e5=(0,tc.Z)(["How Buy now works"])))}),(0,tU.jsx)(BuyNowTerms,{price:w})]}),(0,tU.jsx)(tY.Z,{isOpen:f,onClose:function(){return v(!1)},onConfirm:I,confirmDisabled:y,selectedBidAmount:j,currentItemId:null==a?void 0:a.id,currentItem:a,customer:u,buyersHammerFee:null==l?void 0:null===(n=l.hammerFees)||void 0===n?void 0:n.buyer,buyersPremium:(null==l?void 0:l.buyersPremium)||0,vatRate:tb()(null==l?void 0:l.hammerFees,["buyer","rate"],0),title:(0,tw.t)(e3||(e3=(0,tc.Z)(["Buy the item now for ","?"])),w),hideAmount:!0,children:(0,tU.jsx)(i7,{children:(0,tU.jsx)(BuyNowTerms,{price:w})})})]}):(0,tU.jsxs)(i4,{className:r,"data-cy":"buyNowBox",children:[(0,tU.jsxs)(i5,{dataCy:"buyNowLoginButton",children:[(0,tw.t)(e2||(e2=(0,tc.Z)(["Buy now"])))," – ",w]}),(0,tU.jsxs)(i3,{children:[(0,tU.jsx)("summary",{children:(0,tw.t)(e4||(e4=(0,tc.Z)(["How Buy now works"])))}),(0,tU.jsx)(BuyNowTerms,{price:w})]})]})},i9=(0,t_.oc)(nD),oe=nk()([withConditionalRenderHook(function(){var e=(0,nN.r)(),t=useInventoryBidding(),n=(0,tT.Z)(t,2),r=n[0],i=n[1],o=i.item,a=i.auction,l=i.user,s=(0,iu.$)(null==o?void 0:o.endDate,{format:"long"});if(null!=useBoughtNow(null==o?void 0:o.id,null==l?void 0:l.id))return!1;if(null!=a&&a.realtimeAuction){var d=a.startDate,c=a.sessions,u=is()().utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]");return null!=o&&o.endDate?!!(is()(d).isBefore(u)&&is()(c[0].realtimeAuctionStartDate).isAfter(u)):!(0,ne.Hd)(e)}return(0,ne.tF)(e)?!(0,ne.$9)(r)&&(0,ne.Im)(o,s):(0,ne.D2)(o)}),(0,t_.st)(function(){return(0,tU.jsxs)(tU.Fragment,{children:[(0,tU.jsx)(BuyNow_BuyNowBox,{}),(0,tU.jsx)(i9,{dataCy:"bidLoginButton",children:(0,tw.t)(e8||(e8=(0,tc.Z)(["Login to bid"])))})]})}
1)]),VerificationWarning=function(e){var t=e.verificationDate,n=e.shouldDisplayVerificationWarning,r=e.hasUploadedDocuments,i=e.locale,o=e.currentPath;if(!n||r)return null;var a=is()(t).format("DD MMMM YYYY");return(0,tU.jsx)(oa,{children:(0,tU.jsxs)("p",{style:{margin:"0",fontSize:"16px",letterSpacing:"0.7px"},children:[(0,tw.t)(e7||(e7=(0,tc.Z)(["Starting from ",", you need to be verified to place a bid."])),a)," ",(0,tU.jsx)(rL.Z,{href:{pathname:"/".concat(i,"/myaccount/verification"),query:{returnTo:encodeURIComponent("/".concat(i).concat(o))}},children:(0,tU.jsx)(ol,{children:(0,tw.t)(e9||(e9=(0,tc.Z)(["Verify your identity"])))})})]})})},ot={name:"19ljpt6",styles:"grid-template:'ladder m-bid' auto 'u-bid u-bid' auto/minmax(60%, 1fr) minmax(0, 1fr)"},on={name:"sv2g2b",styles:"grid-template:'ladder ladder' auto 's-bid m-bid' auto 'u-bid u-bid' auto/minmax(0, 1fr) minmax(0, 1fr)"},or={name:"1dvssyf",styles:"grid-template:'ladder m-bid' auto 'u-bid u-bid' auto/minmax(0, 1fr) minmax(0, 1fr)"},oi={name:"sv2g2b",styles:"grid-template:'ladder ladder' auto 's-bid m-bid' auto 'u-bid u-bid' auto/minmax(0, 1fr) minmax(0, 1fr)"},oo=(0,tC.Z)("div",{target:"e1t7mzsk2"})("margin-bottom:var(--item-detail-space);display:flex;flex-direction:column;gap:var(--item-detail-space);",(0,tk.up)("md"),"{display:grid;",function(e){return e.showStraightBidButton?oi:or},";}",(0,tk.up)("lg"),"{display:grid;",function(e){return e.showStraightBidButton?on:ot},";}",iY,"{grid-area:u-bid;}",iX,"{grid-area:ladder;}",iK,"{grid-area:s-bid;}",nA,"{grid-area:m-bid;}"),oa=(0,tC.Z)("div",{target:"e1t7mzsk1"})("grid-column:1/span 2;border:solid 1px #eda617;background-color:#fdf6e8;text-align:center;padding:16px 12px;",(0,tk.up)("md"),"{padding:22px 18px;}"),ol=(0,tC.Z)("span",{target:"e1t7mzsk0"})({name:"fd1zoh",styles:"margin:0;letter-spacing:0.7px;font-size:16px;color:var(--color-primary);text-decoration:underline;font-weight:bold;cursor:pointer;&:hover{color:var(--color-primary-hover);}"}),os=oe(function(){var e=(0,ne.zu)().showStraightBidButton,t=(0,nN.r)(),n=(0,t_.JL)(),r=n.isLoggedIn,i=n.customer,o=(0,t5.t)(),a=(0,t6.Sv)(),l=t.systemSettings,s=o.asPath,d=!1,c=(null==i?void 0:i.isEstate)===!0;if((0,ne.dh)(t))return null;c&&(d=!0),r&&i&&!i.isVerified&&l.eidVerificationEnabled&&new Date(l.eidVerificationEnabled)<=new Date&&(d=!0);var u=r&&i&&!i.isVerified&&l.eidVerificationEnabled&&new Date(l.eidVerificationEnabled)>=new Date,m=i&&null==i.verificationDate&&"PendingReview"===i.verificationMethod;return(0,tU.jsxs)(tU.Fragment,{children:[d?null:(0,tU.jsx)(BuyNow_BuyNowBox,{}),(0,tU.jsxs)(oo,{showStraightBidButton:e,children:[!(0,ne.dh)(t)&&(0,tU.jsxs)(tU.Fragment,{children:[(0,tU.jsx)(iX,{disabled:d}),e?(0,tU.jsx)(iK,{}):null,(0,tU.jsx)(nA,{disabled:d,disabledToolTip:c?(0,tw.t)(te||(te=(0,tc.Z)(["Estate users are not allowed to place bids"]))):(0,tw.t)(tt||(tt=(0,tc.Z)(["You need to verify your account to be able to place a bid"])))}),!d||c||m?(0,tU.jsx)(VerificationWarning,{verificationDate:l.eidVerificationEnabled,shouldDisplayVerificationWarning:u,hasUploadedDocuments:m,locale:a,currentPath:s}):(0,tU.jsx)(oa,{children:(0,tU.jsxs)("p",{style:{margin:"0",fontSize:"16px",letterSpacing:"0.7px"},children:[(0,tw.t)(tn||(tn=(0,tc.Z)(["Please note that you need to"])))," ",(0,tU.jsx)(rL.Z,{href:{pathname:"/".concat(a,"/myaccount/verification"),query:{returnTo:encodeURIComponent("/".concat(a).concat(s))}},children:(0,tU.jsx)(ol,{children:(0,tw.t)(tr||(tr=(0,tc.Z)(["verify your account"])))})})," ",(0,tw.t)(ti||(ti=(0,tc.Z)(["before you can place a bid."])))]})})]}),(0,tU.jsx)(sections_UserBidInformation,{})]})]})}),od=(0,tj.createContext)({fetchAuctionCompany:(r=(0,i$.Z)(i0().mark(function _callee(){return i0().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",void 0);case 1:case"end":return e.stop()}},_callee)})),function(){return r.apply(this,arguments)}),auctionCompany:void 0}),stripHtmlTags=function(e){return null!=e?"".concat(e).replace(/(<([^>]+)>)/gi,""):e},sections_AuctionBranchInfo=function(){var e={auctionCompany:(0,tj.useContext)(od).auctionCompany}.auctionCompany,t=useAuction();return(0,tU.jsxs)("div",{style:{margin:"26px 0",display:"flex",flexDirection:"column",gap:"18px"},children:[(0,tU.jsxs)("div",{style:{background:"var(--box-background-color)",padding:"16px"},children:[(0,tU.jsx)("div",{style:{fontSize:"16px",lineHeight:"24px",fontWeight:500,whiteSpace:"nowrap"},children:(0,tw.t)(to||(to=(0,tc.Z)(["Location"])))}),(0,tU.jsx)("div",{style:{fontSize:"20px",fontWeight:"bold",marginTop:"4px"},children:null==e?void 0:e.displayName}),(0,tU.jsx)("div",{style:{fontSize:"14px",marginTop:"8px"},children:null==e?void 0:e.primaryAddress1}),(0,tU.jsxs)("div",{style:{fontSize:"14px"},children:[null==e?void 0:e.primaryZipCode," ",null==e?void 0:e.primaryCity]})]}),((null==t?void 0:t.pickupByDate)||""!==stripHtmlTags(null==e?void 0:e.termsAndConditions))&&(0,tU.jsxs)("div",{style:{background:"var(--box-background-color)",padding:"16px"},children:[(null==t?void 0:t.pickupByDate)&&(0,tU.jsxs)(tU.Fragment,{children:[(0,tU.jsx)("div",{style:{fontSize:"16px",lineHeight:"24px",fontWeight:500,whiteSpace:"nowrap"},children:(0,tw.t)(ta||(ta=(0,tc.Z)(["Last pickup date"])))}),(0,tU.jsx)("div",{style:{fontSize:"20px",fontWeight:"bold",marginTop:"4px"},children:is()(t.pickupByDate).format("DD MMM YYYY")})]}),(null==e?void 0:e.termsAndConditions)&&""!==stripHtmlTags(e.termsAndConditions)&&(0,tU.jsx)(nd.Z,{variant:"span",style:{display:"flex",flexDirection:"column",fontSize:"14px",marginTop:"8px"},children:(0,tU.jsx)(rp.Z,{content:null==e?void 0:e.termsAndConditions,variant:"span"})})]})]})},oc=(0,tC.Z)("div",{target:"e1kx2ibo0"})("display:block;",iC,"{margin-top:calc(2 * var(--item-detail-space));}"),sections_InventoryBidSection=function(){var e=useInventoryBidding(),t=(0,tT.Z)(e,2),n=(t[0],t[1]),r=n.isItemStale,i=n.item,o=(0,nN.r)(),a=o.systemSettings;return(0,ne.dh)(o)?null:(0,tU.jsxs)(oc,{children:[r?null:(0,tU.jsxs)(tU.Fragment,{children:[(0,tU.jsx)(sections_BidMessage,{}),(0,tU.jsx)(os,{})]}
1),(null==a?void 0:a.useMultipleAuctionBranches)&&(0,tU.jsx)(sections_AuctionBranchInfo,{}),(0,tU.jsx)(iC,{inventoryItem:i})]})},ou=n(31841),om=(0,tC.Z)(function(e){var t=e.lotNumber,n=e.className,r=e.element,i=void 0===r?"span":r,o=useInventoryBiddingItem();return(0,tU.jsxs)(i,{className:n,children:[t?(0,tU.jsx)("strong",{children:tb()(o,"lotNumber")}):null," ",(0,tU.jsx)("span",{children:tb()(o,"name")})]})},{target:"e131kxrm0"})("padding:0;margin:0;",function(e){var t=e.variant;return tb()({big:(0,nJ.iv)("font-size:28px;line-height:32px;font-family:var(--font-primary);font-weight:500;",(0,ou._)("md"),"{font-size:32px;line-height:40px;}","")},t)},";"),op=(0,tC.Z)("div",{target:"elgp8ni4"})({name:"1w7k0hs",styles:"display:flex;flex-direction:column;gap:12px;margin:calc(1.5 * var(--item-detail-space)) 0 var(--item-detail-space)"}),og=(0,tC.Z)("div",{target:"elgp8ni3"})("--item-detail-grid-gap:0rem;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));",(0,tk.up)("lg"),"{--item-detail-grid-gap:calc(2 * var(--item-detail-space));grid-template-columns:repeat(2, minmax(0, 1fr));}",(0,tk.up)("xl"),"{--item-detail-grid-gap:calc(6 * var(--item-detail-space));}"),oh=(0,tC.Z)("div",{target:"elgp8ni2"})({name:"fmvyly",styles:"margin-right:var(--item-detail-grid-gap)"}),of=(0,tC.Z)("div",{target:"elgp8ni1"})({name:"1u5b5ly",styles:"margin-left:var(--item-detail-grid-gap)"}),ov=(0,tC.Z)("div",{target:"elgp8ni0"})("--item-detail-space:16px;--box-background-color:var(--color-background-highlight);box-sizing:border-box;width:100%;padding:0;margin-bottom:calc(2 * var(--item-detail-space));",op,"{padding:0 var(--item-detail-space);}",of,"{padding:var(--item-detail-space);}",(0,tk.up)("lg"),"{padding:0 var(--item-detail-space);",of,",",op,"{padding:0;}}",(0,tk.up)("xl"),"{padding:0 var(--page-gutter);}"),ItemDetails_ItemDetailsAuction=function(e){var t=e.shipping,n=e.inventoryItem,r=e.biographyData,i=e.auctionData,o=e.documents,a=e.lotOrder,l=e.images,s=e.urls,d=(0,tO.Y8)(tO.Yx.AUTO_SCROLL_LOT_DETAIL),c=(0,tj.useRef)(null);return d&&(0,tj.useEffect)(function(){var e;null!=i&&i.isLiveAuction&&(null==i?void 0:null===(e=i.state)||void 0===e?void 0:e.name)===tP.Uq&&setTimeout(function(){c.current&&c.current.scrollIntoView({behavior:"smooth",block:"center"})},200)},[i]),(0,tU.jsx)(Provider,{auction:i,children:(0,tU.jsxs)(InventoryBiddingContext_Provider,{item:n,children:[(0,tU.jsx)(sections_InventoryTopNavigation,{lotOrder:a}),(0,tU.jsxs)(ov,{ref:d?c:null,children:[(0,tU.jsxs)(op,{children:[(0,tU.jsx)(om,{lotNumber:!0,variant:"big",element:"h1"}),(0,tU.jsx)(sections_InventoryCategoryPills,{})]}),(0,tU.jsxs)(og,{children:[(0,tU.jsx)(oh,{children:(0,tU.jsx)(sections_InventoryDisplaySection,{images:l,urls:s,documents:o})}),(0,tU.jsxs)(of,{children:[(0,tU.jsx)(sections_InventoryDetailSection,{}),(0,tU.jsx)(sections_InventoryBidSection,{})]})]})]}),(0,tU.jsx)(nu,{shippingText:t}),(0,tU.jsx)(sections_InventoryBiographySection,{biographyData:r}),(0,tU.jsx)(InventorySimilarLotsSectionWrapper,{}),(0,tU.jsx)(nG,{})]})})},ox=n(27860),oy=n(42714),getFormattedSeoTitle=function(e,t){var n="";t&&(n="www."===t.substring(0,4)?" ".concat(t.substring(4)):" ".concat(t));var r=" | ".concat((0,tw.t)(tl||(tl=(0,tc.Z)(["Auction"])))).concat(n),i=65-r.length,o=e.name.substring(0,i),a=/\S/.test(e.name.charAt(i)),l=o.lastIndexOf(" "),s=(a&&l>0?o.substring(0,l):o).trim();return e.name.length+r.length>65?s+r:e.name+r},ob={MerchantTitleMaxLength:70,MerchantDescriptionMaxLength:1e3,FacebookDefaultAppId:"966242223397117"},buildLotMetaDescription=function(e){var t;return(null!==(t=e.description)&&void 0!==t?t:"").replace(/<\/?[^>]+(>|$)/g,"").trim()||[e.name,e.condition].map(function(e){return(null!=e?e:"").trim()}).filter(Boolean).reduce(function(e,t){if(!e)return t;var n=/[.!?:]$/.test(e)?" ":". ";return"".concat(e).concat(n).concat(t)},"")},oj=n(56785),AuctionCompany_provider=function(e){var t,n=e.children,r=e.companyId,i=(0,tj.useState)(),o=i[0],a=i[1],l=(0,tj.useCallback)((t=(0,i$.Z)(i0().mark(function _callee(e){var t,n;return i0().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=null!=e?e:r){i.next=3;break}return i.abrupt("return");case 3:return i.next=5,(0,tR.ZP)("/Companies/GetPublicById/".concat(t),{method:"GET"});case 5:if(!(null!=(n=i.sent)&&n.ok)){i.next=11;break}return i.next=9,n.json();case 9:a(i.sent);case 11:case"end":return i.stop()}},_callee)})),function(e){return t.apply(this,arguments)}),[r]);(0,tj.useEffect)(function(){r&&l(r)},[r,l]);var s=(0,tj.useMemo)(function(){return{fetchAuctionCompany:l,auctionCompany:o}},[l,o]);return(0,tU.jsx)(od.Provider,{value:s,children:n})};function _itemId_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ow=!0,_itemId_=function(e){var t,n,r,i,o=e.compositionProps,a=e.shippingText,l=e.itemId,s=e.inventoryItem,d=e.documents,c=e.auctionItemConfig,u=e.auctionData,m=e.biographyData,p=e.images,g=e.lotOrder,h=e.urls,f=e.canonicalHostname,v=(0,t_.JL)().user,x=(0,tS.useRouter)(),y=(0,t6.Sv)(),b=x.query.previewFromAdmin;if(tx()(s))return null;var j=(0,rY.v8)(x.query.linkSource||x.query.l),w=tb()(s,"state.name")===t3.kW||!tb()(s,"publish"),I=(null==v?void 0:v.consignerId)===s.consignerId;if(w&&!(b||I))return(0,tU.jsx)("h3",{style:{textAlign:"center"},children:(0,tw.t)(ts||(ts=(0,tc.Z)(["This lot has not been published"])))});
1var Z=null!=f?f:"",S=null!==(t=null===(n=(0,oy.gJ)(tm()(p)))||void 0===n?void 0:n.url)&&void 0!==t?t:"",B=null!==(r=null===(i=(0,oy.gJ)(tm()(p),"Medium"))||void 0===i?void 0:i.url)&&void 0!==r?r:"",_=(0,ne.gf)(s,Z,y),C=_.canonicalUrl,k=_.fullUrl,P=getFormattedSeoTitle(s,Z),O=buildLotMetaDescription(s),N=s.name.length>ob.MerchantTitleMaxLength?"".concat(s.name.substring(0,ob.MerchantTitleMaxLength),"..."):s.name,T=O.length>ob.MerchantDescriptionMaxLength?"".concat(O.substring(0,ob.MerchantDescriptionMaxLength),"..."):O,M={"@context":"https://schema.org/","@type":"Product",name:N,sku:String(s.id),image:[B],description:T,offers:{"@type":"Offer",url:k,priceCurrency:(0,nl.ri)(),price:tf()([s.askingBid,s.highBid,s.minBid,s.storePrice,s.storeSalePrice]),priceValidUntil:tg()([s.endDate,s.soldDate]),availability:s.livePassed||s.sold||!s.active||(0,t3.Yc)(s.liveState)||(0,t3.Yc)(s.state)?"https://schema.org/SoldOut":"https://schema.org/InStock"}},D=(0,rY.Ke)("Followed link from email: Lot closing soon"),L=(0,rY.Ke)("Followed link from sms: Outbid");return(0,tj.useEffect)(function(){"email"===j?D({inventoryItemId:s.id,inventoryName:s.name,inventoryState:s.state.name,auctionId:s.auctionId,highBid:s.highBid,isHighBidder:s.highBidderId===(null==v?void 0:v.id),isReserveMet:s.reserveMet}):"sms"===j&&L({inventoryItemId:s.id,inventoryName:s.name,inventoryState:s.state.name,auctionId:s.auctionId,highBid:s.highBid,isReserveMet:s.reserveMet})},[j,s]),(0,tU.jsxs)("div",{children:[(0,tU.jsxs)(tZ(),{children:[(0,tU.jsx)("link",{rel:"canonical",href:C}),(0,tU.jsx)("title",{children:P}),(0,tU.jsx)("meta",{charSet:"utf-8"}),(0,tU.jsx)("meta",{name:"description",content:O}),(0,tU.jsx)("meta",{name:"googlebot",content:"index,follow"}),(0,tU.jsx)("meta",{name:"robots",content:"index,follow"}),(0,tU.jsx)("meta",{name:"viewport",content:"width=device-width initial-scale=1"}),(0,tU.jsx)("meta",{property:"fb:app_id",content:ob.FacebookDefaultAppId}),(0,tU.jsx)("meta",{property:"og:description",content:O}),(0,tU.jsx)("meta",{property:"og:image",content:S}),(0,tU.jsx)("meta",{property:"og:locale",content:y.toLowerCase()}),(0,tU.jsx)("meta",{property:"og:site_name",content:Z}),(0,tU.jsx)("meta",{property:"og:title",content:P}),(0,tU.jsx)("meta",{property:"og:type",content:"website"}),(0,tU.jsx)("meta",{property:"og:url",content:k}),(0,tU.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(M)}})]}),(0,tU.jsxs)(oj.K,{auctionItemConfig:c,children:[(0,tU.jsx)(AuctionCompany_provider,{companyId:null==u?void 0:u.auctionCompanyId,children:(0,tU.jsx)(ItemDetails_ItemDetailsAuction,{inventoryItem:s,documents:d,biographyData:m,shipping:(0,ox.ks)(a)&&(0,ox.ZP)(a),auctionData:u,images:p,lotOrder:void 0===g?[]:g,urls:void 0===h?[]:h},l)}),(0,tU.jsx)(tB.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_itemId_ownKeys(Object(n),!0).forEach(function(t){(0,td.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_itemId_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},o))]})]})}},97934:function(e){e.exports={MenuLayoutContainer:"ExpandableMenu_MenuLayoutContainer__t7jTv"}},90958:function(e){e.exports={mobileOnly:"ChildItem_mobileOnly__iWZur",desktopOnly:"ChildItem_desktopOnly__3yany",menuItem:"ChildItem_menuItem__RIjlM",icon:"ChildItem_icon__NApQq",selected:"ChildItem_selected__uAjb7",scrollableContent:"ChildItem_scrollableContent__7_8E0",expanderContent:"ChildItem_expanderContent__q3DgO",text:"ChildItem_text__RBRAd",close:"ChildItem_close__G4DgO",right:"ChildItem_right__0p1ZM",additionalInfo:"ChildItem_additionalInfo__6QUnL",bidProgressionTable:"ChildItem_bidProgressionTable__LdVWi"}},67218:function(e){e.exports={GenericTabMenu:"GenericTabMenu_GenericTabMenu__r7xC5"}},19959:function(e){e.exports={ImageViewer:"ImageViewer_ImageViewer__VpuKq",imageViewerContainer:"ImageViewer_imageViewerContainer__ItgPw",selectedImage:"ImageViewer_selectedImage__KJOJv",mediaStage:"ImageViewer_mediaStage__PZWXn",mediaLayer:"ImageViewer_mediaLayer__uv04H",outgoingMedia:"ImageViewer_outgoingMedia__JVux6",slideInFromRight:"ImageViewer_slideInFromRight___PLwm",slideInFromLeft:"ImageViewer_slideInFromLeft__l2UkM",slideOutToLeft:"ImageViewer_slideOutToLeft__2YUZd",slideOutToRight:"ImageViewer_slideOutToRight__l5tNv",arrowButton:"ImageViewer_arrowButton__a3QEv",arrow:"ImageViewer_arrow__ymiJt",previousButton:"ImageViewer_previousButton__BMvGo",nextButton:"ImageViewer_nextButton__UXGjP",viewerBox:"ImageViewer_viewerBox__qK7EM",modalVideoButton:"ImageViewer_modalVideoButton__xllIx"}},41971:function(e){e.exports={thumbnails:"Thumbnails_thumbnails__izkSk",thumbnailList:"Thumbn
1ails_thumbnailList___PSi_",selected:"Thumbnails_selected__4cOFr",iconThumbnailContainer:"Thumbnails_iconThumbnailContainer__GE5IH",videoItemThumbnail:"Thumbnails_videoItemThumbnail__eIE5q",iconThumbnailContent:"Thumbnails_iconThumbnailContent__6Irng",iconThumbnailIcon:"Thumbnails_iconThumbnailIcon___iZ0g",iconThumbnailTitle:"Thumbnails_iconThumbnailTitle__jAT4i"}},46614:function(e){e.exports={MenuLayout:"MenuLayout_MenuLayout__FOpe_",left:"MenuLayout_left__ygb3P",center:"MenuLayout_center__TF2X6",right:"MenuLayout_right__4b7Tt"}},79061:function(e){e.exports={videoBox:"VideoBox_videoBox__uxPhV",video:"VideoBox_video__ynqiz",overlay:"VideoBox_overlay__gIEg1"}}}]);

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.