1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4922],{2373:(t,e,o)=>{o.d(e,{t:()=>g});var n=o(6029),r=o(35365),i=o(82281),a=o.n(i),l=o(55729),c=o(16675),d=o(92786),s=o(41208),u=o(18723),p=o(19357),h=o(39570);let y="#0dab62",m=p.Ay.div.withConfig({componentId:"sc-2f3d494f-0"})(["&.lot-page-am-widget{.am-data{.am-timer{margin-top:20px;.label{"," padding:0 0 5px !important;}.time-wrapper{padding-bottom:0;}}.am-lot-status-label{[class='sold']{"," display:",";}.lost.outbid,.win.sold,.lost.sold{"," padding-left:0;}.win.sold,.lost.sold{"," padding-bottom:0;}.lost.outbid,.lost.sold{"," color:",";}.win.sold{"," color:",";}}.am-bid-status-label{> div:first-child{padding-left:0;padding-right:0;","}.current-label,.current-bid{width:auto;"," "," color:",";}.current-label{margin-right:30px;}.win.winning{.current-label,.current-bid{color:",";}}}.am-bid-box{margin-top:20px;> div:first-child{padding:0;}.bid-button{&:not(.selected-price){",";",";border:2px solid "," !important;width:100%;min-width:150px;margin-top:20px;","{width:fit-content;}}.selected-price{","}}.bid-controls{.bid-label,.bid-price,.bid-suggestions .bid-suggestion{","}.bid-button-container *{","}}}}.lot-detail-dialogue{"," *{","}.lot-detail-text > div *,.lot-detail-close{color:"," !important;}}.bid-controls{.bid-label,.bid-price{color:"," !important;}}}"],t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{$hasHammerPrice:e}=t;return e?"none":"block"},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.M},"#ce2d4f",t=>{let{theme:e}=t;return e.typography.body.M},y,t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.L},t=>{let{theme:e}=t;return e.fontStyles.body.medium},t=>{let{theme:e}=t;return e.colours.primary.primary},y,(0,h.mt)({$variant:"primary",$size:"M"}),h.sy,t=>{let{theme:e}=t;return e.colours.accent.background},t=>{let{theme:e}=t;return e.media.up.sm},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.typography.body.M},t=>{let{theme:e}=t;return e.colours.primary.primary},t=>{let{theme:e}=t;return e.colours.primary.primary}),{publicRuntimeConfig:f}=a()(),g=(0,l.memo)(function(t){let{auction:e,lot:o,options:i,...a}=t,[p,h]=(0,l.useState)(!1),[y,g]=(0,l.useState)(!0),b=(0,l.useCallback)(t=>{var e;t===c.P.disconnected||t===c.P.errored?g(!1):t===c.P.connected&&g(!0),null==(e=i.onAmConnectionChange)||e.call(i,t)},[i.onAmConnectionChange]);return((0,l.useEffect)(()=>{let t=i.isUserLoggedIn&&e.sBidOnlineStatus===r.x9.ended,o=e.sSaleType===r.Yo.online?e.sBidOnlineStatus===r.x9.inProgress:e.sSaleStatus===r.aO.ready&&e.sBidOnlineStatus!==r.x9.ended;h(f.MAINTENANCE_MODE!==s.JH.partial&&(t||o))},[e,i]),(0,d.U)({config:{maintenanceMode:f.MAINTENANCE_MODE,paths:f.AM_PATHS},showBidding:p,amRowId:o.amsale_rowid,lotIds:[o.rowid],connectionStatusCallback:b}),(0,u.W)({isAMConnected:y,biddingEngine:"AM",hideLostConnectionNotification:i.hideLostConnectionNotification}),p)?(0,n.jsx)(m,{$hasHammerPrice:i.hasHammerPrice,...a,className:"lot-page-am-widget",children:(0,n.jsxs)("div",{id:"".concat(c.r.wrapperPrefix,"-").concat(o.rowid),"lot-id":o.rowid,className:"am-data",children:[i.showCountdown&&(0,n.jsx)("div",{children:(0,n.jsx)("am-timer",{})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("am-lot-status-label",{}),(0,n.jsx)("am-bid-status-label",{})]}),(0,n.jsx)("div",{children:(0,n.jsx)("am-bid-box",{})})]})}):null},(t,e)=>JSON.stringify(t)===JSON.stringify(e))},38687:(t,e,o)=>{o.d(e,{z:()=>f});var n=o(6029),r=o(55729),i=o(2284),a=o(61704),l=o(7612),c=o(53365),d=o(19357),s=o(74636);let u=d.Ay.div.withConfig({componentId:"sc-6ed7b20a-0"})(["display:flex;flex-direction:row;"]),p=(0,d.Ay)(s.JU).withConfig({componentId:"sc-6ed7b20a-1"})(["color:",";"," ",""],t=>{let{theme:e}=t;return e.colours.primary.charcoal},t=>{let{theme:e}=t;return e.fontStyles.body.medium},t=>{let{$hasSymbols:e,theme:o}=t;return e&&(0,d.AH)(["margin-top:15px;text-decoration:underline;cursor:pointer;sup{",";line-height:1;vertical-align:top;}","{margin-top:15px;}"],o.typography.body.XXS,o.media.up.xs)}),h=d.Ay.div.withConfig({componentId:"sc-6ed7b20a-2"})(["td{vertical-align:middle;min-width:30px;}"]),y=JSON.parse('{"sl_translate":"sl_all","item":"Item {id}","lot":"Lot {id}","previewLot":"Preview Lot"}'),{text:m}=(0,l.r)(y),f=t=>{let{lExhibition:e,iSaleLotNo:o,sSaleLotNoA:l,lotSymbols:d,...s}=t,[y,f]=(0,r.useState)(!1),g="";e?0!==o&&(g=m("item",{id:"".concat(o).concat(l)})):g=0!==o?m("lot",{id:"".concat(o).concat(l)}):m("previewLot");let b=d.map(t=>{let{symbol:e}=t;return e}).join(),w=!!d.length;return(0,n.jsx)(u,{...a.TY.noTranslate,...s,children:(0,n.jsx)(i.Q,{showTooltip:y,onCloseClick:()=>f(!1),tooltip:(0,n.jsx)(h,{children:(0,n.jsx)(c.S,{symbols:d})}),children:(0,n.jsx)("span",{onClick:()=>w&&f(!0),children:!!g&&(0,n.jsxs)(p,{$hasSymbols:w,children:[g,d&&(0,n.jsx)("sup",{children:b})]})})})})}},42798:(t,e,o)=>{o.d(e,{X:()=>x});var n=o(6029),r=o(35365),i=o(82281),a=o.n(i),l=o(55729),c=o(12482),d=o(46887),s=o(85649),u=o(53092),p=o(57918),h=o(65164),y=o(7612),m=o(64196),f=o(51438),g=o(23335),b=o(96467);let w=JSON.parse('{"sl_translate":"sl_all","viewReport":"View condition report","requestReport":"Request condition report","downloadFailed":"Download failed, please try again later.","email.subject":"Condition report request for lot {lotId} in Auction: {auctionId} - {description}","email.body":"Please send me a condition report for Lot {lotId}, Auction {auctionId}, {description}"}'),{publicRuntimeConfig:S}=a()(),{text:v}=(0,y.r)(w);function x(t){let{auction:e,lot:o,contacts:i,displayConditionReportIcon:a=!0}=t,{data:y}=(0,g.b)(),w=(0,m.v)(),{dispatch:x}=(0,f.U8)(),[I,A]=(0,l.useState)(!1),R=(0,l.useRef)(null),O=function(t,e,o){let n=d.A.get(),r
1=(0,s.B)({accessTokenSSR:(null==n?void 0:n.bonhams_access)||"",refreshTokenSSR:(null==n?void 0:n.bonhams_token)||"",baseURL:e}),{data:i,status:a,fetchStatus:l,error:u,refetch:p}=(0,c.I)({queryKey:["conditionsReport",t,"/api/auctions/condition-report/".concat(t,"/")],queryFn:async()=>{try{return(await r.get("/api/auctions/condition-report/".concat(t,"/"),{headers:{Accept:"application/pdf, text/plain, */*"}})).data}catch(t){throw Error("Failed to get conditions report")}},retry:3,retryDelay:1e3,enabled:o,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchIntervalInBackground:!1,refetchOnReconnect:!1,retryOnMount:!1});return{data:i,status:a,fetchStatus:l,error:u,refetch:p}}(o.iSaleLotNoUnique,S.WEB_API_URL,!!(I&&y)),C=function(t,e,o){let n=d.A.get(),r=(0,s.B)({accessTokenSSR:(null==n?void 0:n.bonhams_access)||"",refreshTokenSSR:(null==n?void 0:n.bonhams_token)||"",baseURL:e}),i="/api/auctions/condition-report/".concat(t,"/redirect/");if(null==o?void 0:o.redirect){let{redirect:t}=o;i=(0,u.OI)(i,t)}let{data:a,status:l,fetchStatus:p,error:h,refetch:y}=(0,c.I)({queryKey:["conditionsReportRetry",i],queryFn:async()=>{try{var t;let e=(await r.get(i,{headers:{Accept:"application/pdf, text/plain, */*"}})).data;if(null==e||null==(t=e.redirect)?void 0:t.includes("saction=Show"))return e;throw Error("Conditions report not ready, try again")}catch(t){if(t instanceof Error)throw Error(t.message);throw Error("Failed to get conditions report")}},retry:30,retryDelay:1e3,enabled:(null==o?void 0:o.status)==="REDIRECT",refetchOnMount:!1,refetchOnWindowFocus:!1,refetchIntervalInBackground:!1,refetchOnReconnect:!1,retryOnMount:!1});return{data:a,status:l,fetchStatus:p,error:h,refetch:y}}(o.iSaleLotNoUnique,S.WEB_API_URL,O.data),N=function(t,e,o){let n=d.A.get(),r=(0,s.B)({accessTokenSSR:(null==n?void 0:n.bonhams_access)||"",refreshTokenSSR:(null==n?void 0:n.bonhams_token)||"",baseURL:e}),i="/api/auctions/condition-report/".concat(t,"/redirect/");if(null==o?void 0:o.redirect){let{redirect:t}=o;i=(0,u.OI)(i,t)}let{data:a,status:l,fetchStatus:p,error:h,refetch:y}=(0,c.I)({queryKey:["conditionsReport",i],queryFn:async()=>{try{let t=await r.get(i,{responseType:"arraybuffer",headers:{Accept:"application/pdf, text/plain, */*"}}),e=t.headers["content-disposition"],o=t.headers["content-type"];if(e){let n=e.split("filename=")[1].replace(/"/g,"");return{documentUrl:URL.createObjectURL(new Blob([t.data],{type:o})),filename:n}}throw Error("Failed to get conditions report")}catch(t){throw Error("Failed to get conditions report")}},retry:3,retryDelay:1e3,enabled:!!(null==o?void 0:o.redirect.includes("saction=Show")),refetchOnMount:!1,refetchOnWindowFocus:!1,refetchIntervalInBackground:!1,refetchOnReconnect:!1,retryOnMount:!1});return{data:a,status:l,fetchStatus:p,error:h,refetch:y}}(o.iSaleLotNoUnique,S.WEB_API_URL,C.data),M="idle"===O.fetchStatus||"idle"===C.fetchStatus||"idle"===N.fetchStatus,_=I&&("fetching"===O.fetchStatus||"fetching"===C.fetchStatus||"fetching"===N.fetchStatus),L="error"===O.status||"error"===C.status||"error"===N.status,j=I&&"success"===N.status;if((0,l.useEffect)(()=>{if(j){var t;null==(t=R.current)||t.click()}return()=>{A(!1)}},[j]),(0,l.useEffect)(()=>{L&&h.P.error(v("downloadFailed"))},[L]),o.iSaleLotNoUnique&&o.has_condition_report){let t,r;return j&&N.data?(t=N.data.documentUrl,r=N.data.filename):(t=void 0,r=void 0),(0,n.jsx)(b.e,{ref:R,href:t,download:r,onClick:function(t){j||t.preventDefault(),M&&(y?(w.push({event:"conditionReport",conditionReportData:{lotid:"".concat(e.iSaleNo,"-").concat(o.iSaleLotNo),userid:"".concat(y.customerId)}}),A(!0)):null==x||x({type:"OPEN",payload:{modal:"LOGIN",props:{brand:e.brand,user:y}}})),L&&O.refetch()},icon:a?p.h:void 0,isLoading:_,title:v("viewReport")})}return e.lOfferCondition&&e.sSaleStatus!==r.aO.finished&&o.sLotStatus!==r.oq.withdrawn?(0,n.jsx)(b.e,{href:(()=>{let t="".concat(o.iSaleLotNo).concat(null==o?void 0:o.sSaleLotNoA),n=v("email.subject",{lotId:t,auctionId:"".concat(e.iSaleNo),description:"".concat(o.sDesc.substring(0,50)).concat(o.sDesc.length>50?"...":"")}),r=v("email.body",{lotId:t,auctionId:"".concat(e.iSaleNo),description:o.sDesc});return"mailto: ".concat(i&&i.length>0&&i[0].contact.email,"?subject=").concat(n,"&body=").concat(r)})(),target:"_blank",rel:"noreferrer",icon:a?p.h:void 0,title:v("requestReport")}):null}},96467:(t,e,o)=>{o.d(e,{e:()=>c});var n=o(6029),r=o(55729),i=o(19357),a=o(62594),l=o(98638);let c=(0,r.forwardRef)(function(t,e){let{title:o,icon:r,isLoading:i=!1,forceAnchor:l=!0,...c}=t;return(0,n.jsxs)(d,{...c,variant:"ghost",forceAnchor:c.href?l:void 0,ref:e,children:[(0,n.jsx)(s,{as:i?a.h:r,$
1isLoading:i}),o]})}),d=(0,i.Ay)(l.L).withConfig({componentId:"sc-445592df-0"})(["",""],t=>{let{theme:e}=t;return(0,i.AH)(["color:",";margin-bottom:5px;&:hover,&:focus{color:",";}"],e.colours.grey["90"],e.colours.primary.primary)}),s=i.Ay.svg.withConfig({componentId:"sc-445592df-1"})(["",""],t=>{let{theme:e,$isLoading:o}=t;return(0,i.AH)(["animation-name:",";animation-duration:1.8s;animation-iteration-count:infinite;animation-timing-function:linear;height:22px;margin-right:4px;width:22px;"],o?e.animation.rotate360:"")})}}]);
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.