1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8780],{3007:(e,t,n)=>{n.d(t,{_o:()=>b,p8:()=>g,YL:()=>f});var r=n(6029),i=n(55729),o=n(28438),l=n.n(o),a=n(19357),s=n(35365),c=n(86684),d=n(74636),u=n(18472),p=n(7612),m=n(92260);let y=JSON.parse('{"sl_translate":"sl_all","sold":"Sold","price":"Sold for {price}","premium":"Sold for {price} inc. premium","withdrawn":"Withdrawn"}'),{text:h}=(0,p.r)(y),b=(0,i.memo)(e=>{let{lotStatus:t,hammerPrice:n,hammerPremium:i,currencySymbol:o,isUserWinner:l,invoiceId:a,invoicePaymentStatus:d,isResultPublished:p,invoiceButtonVariant:y="primary",showOnlyWonPrice:b=!1}=e;return t===s.oq.withdrawn?(0,r.jsx)(g,{$uppercase:!0,children:h("withdrawn")}):l?(0,r.jsx)(f,{children:(0,r.jsx)(m.KB,{currencySymbol:o,soldPrice:i||n,isPremium:!!i,invoiceId:a||void 0,invoicePaymentStatus:null!=d?d:void 0,variant:y,showOnlyWonPrice:b})}):p&&t===s.oq.sold&&(i||n)?(0,r.jsx)(g,{children:i?h("premium",{price:(0,u.b)({currencySymbol:(0,c.i)(o),lowPrice:i})}):h("price",{price:(0,u.b)({currencySymbol:(0,c.i)(o),lowPrice:n})})}):t===s.oq.sold?(0,r.jsx)(g,{children:h("sold")}):null},l()),f=a.Ay.div.withConfig({componentId:"sc-c1b09a63-0"})([""]),g=(0,a.Ay)(d.nB).withConfig({componentId:"sc-c1b09a63-1"})(["",""],e=>{let{$uppercase:t}=e;return(0,a.AH)(["width:100%;margin:0;",""],t&&(0,a.AH)(["text-transform:uppercase;"]))})},7690:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(83069),i=n(35365);let o=e=>{let{auctionType:t,biddableFrom:n,biddingEngine:o,isExhibition:l,isPreview:a,isToBeSold:s,lotAMId:c}=e,d=t===i.Yo.online?!!n&&(0,r.R)(n.datetime):!l,u=!a&&!!s;return o===i.n6.AM?d&&u&&!!c:o===i.n6.BBE&&d&&u}},9844:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(35365),i=n(64482),o=n(96136);async function l(e,t,n){try{return(await (0,o.IW)({userId:e,type:r.y.lot,cookies:t,baseURL:n})).data.reduce((e,t)=>(e[t.auctionId]?e[t.auctionId].push(t.iSaleItemNo):e[t.auctionId]=[t.iSaleItemNo],e),{})}catch(t){return i.v.error(t,"Could not fetch lot likes for user ".concat(e)),{}}}},10234:(e,t,n)=>{n.d(t,{T:()=>r});
1let r=n(19357).Ay.button.withConfig({componentId:"sc-f9f71515-0"})(["all:unset;background:",";display:grid;place-items:center;cursor:pointer;width:39px;height:39px;border-radius:50%;svg{width:26px;height:26px;}"],e=>{let{theme:t}=e;return t.colours.primary.white})},16675:(e,t,n)=>{n.d(t,{P:()=>r,r:()=>i});var r=function(e){return e.connected="connected",e.disconnected="disconnected",e.errored="errored",e}({}),i=function(e){return e.wrapperPrefix="am-target",e[e.minTimeBetweenRequests=1500]="minTimeBetweenRequests",e}({})},17562:(e,t,n)=>{n.d(t,{m:()=>o});var r=n(19357),i=n(62594);let o=(0,r.Ay)(i.h).withConfig({componentId:"sc-ad9fbe57-0"})(["animation-name:",";animation-duration:1.8s;animation-iteration-count:infinite;animation-timing-function:linear;"],e=>{let{theme:t}=e;return t.animation.rotate360})},18472:(e,t,n)=>{function r(e){let{value:t,locale:n,iso:r,bonhamsCode:i}=e;return Intl.NumberFormat(n,{style:"currency",currency:r,maximumFractionDigits:0}).formatToParts(t).map(e=>{let{type:t,value:n}=e;return"currency"===t&&null!=i?i:n}).reduce((e,t)=>e+t)}n.d(t,{b:()=>o});var i=n(91344);function o(e){let{currencySymbol:t,lowPrice:n,highPrice:o,locale:l,iso:a,bonhamsCode:s}=e,c=!!o&&!!n,d=o===n,u=!!n&&!o,p=!!o&&!n,m=!!l&&!!a&&!!s,y="";return(c||d||u)&&n&&(y=m?"".concat(y).concat(r({value:n,iso:a,locale:l,bonhamsCode:s})):"".concat(y).concat(t).concat((0,i.H)(n))),!d&&c&&(y="".concat(y," - ")),!d&&(c||p)&&(y=m?"".concat(y).concat(r({value:o,iso:a,locale:l,bonhamsCode:s})):"".concat(y).concat(t).concat((0,i.H)(o))),y}},18723:(e,t,n)=>{n.d(t,{W:()=>x});var r=n(6029),i=n(55729),o=n(7612),l=n(19357),a=n(47727);let s=l.Ay.div.withConfig({componentId:"sc-3db4858b-0"})(["",""],e=>{let{theme:t}=e;return(0,l.AH)(["align-items:center;background-color:",";color:",";display:flex;flex-direction:row;margin:0;padding:15px;"],t.colours.status.error,t.colours.primary.white)}),c=l.Ay.div.withConfig({componentId:"sc-3db4858b-1"})(["flex:1;padding:0 0.85rem;"]),d=l.Ay.div.withConfig({componentId:"sc-3db4858b-2"})([""," color:",";line-height:1;"],e=>{let{theme:t}=e;return t.typography.body.L},e=>{let{theme:t}=e;return t.colours.primary.white}),u=l.Ay.div.withConfig({componentId:"sc-3db4858b-3"})([""," color:",";"],e=>{let{theme:t}=e;return t.typography.body.S},e=>{let{theme:t}=e;return t.colours.primary.white}),p=l.Ay.button.withConfig({componentId:"sc-3db4858b-4"})([""," color:",";border:none;border-bottom:1px solid ",";padding:0;background:rgb(255 255 255 / 0%);cursor:pointer;&:hover{border-bottom:0;}"],e=>{let{theme:t}=e;return t.typography.label.S},e=>{let{theme:t}=e;return t.colours.primary.white},e=>{let{theme:t}=e;return t.colours.primary.white}),m=(0,l.Ay)(a.h).withConfig({componentId:"sc-3db4858b-5"})(["height:35px;"]),y=JSON.parse('{"sl_translate":"sl_all","title":"Bidding Connection Lost","body":"Please refresh the page.","button":"REFRESH"}'),{text:h}=(0,o.r)(y),b=()=>(0,r.jsxs)(s,{role:"status",children:[(0,r.jsx)(m,{}),(0,r.jsxs)(c,{children:[(0,r.jsx)(d,{children:h("title")}),(0,r.jsx)(u,{children:h("body")})]}),(0,r.jsx)(p,{onClick:()=>window.location.reload(),children:h("button")})]});var f=n(6207),g=n(65164);let x=e=>{let{isAMConnected:t,biddingEngine:n,hideLostConnectionNotification:o=!1}=e,l=(0,i.useRef)(null),a=(0,i.useRef)(null),{pusherConnectionStatus:s}=(0,f.p)();(0,i.useEffect)(()=>{"AM"===n&&(t||l.current||o?t&&l.current&&(g.P.dismiss(l.current),l.current=null):l.current=g.P.error((0,r.jsx)(b,{}),{autoClose:!1,icon:!1,closeButton:!1,toastId:"am-connection-failed",className:"notification-full-width"}))},[t,n,o]),(0,i.useEffect)(()=>{"bonhams_bidding_engine"===n&&("DISCONNECTED"!==s||a.current?"CONNECTED"===s&&a.current&&(g.P.dismiss(a.current),a.current=null):a.current=g.P.error((0,r.jsx)(b,{}),{autoClose:!1,icon:!1,closeButton:!1,toastId:"bbe-connection-failed",className:"notification-full-width"}))},[n,s]),(0,i.useEffect)(()=>()=>{l.current&&(g.P.dismiss(l.current),l.current=null),a.current&&(g.P.dismiss(a.current),a.current=null)},[])}},18873:(e,t,n)=>{n.d(t,{Q:()=>r});let r=e=>"cache-lot-".concat(e,"-v").concat(1)}
1,21743:(e,t,n)=>{n.d(t,{Z:()=>y,G:()=>h});var r=n(6029),i=n(55729),o=n(28438),l=n.n(o),a=n(19357),s=n(86684),c=n(74636),d=n(18472),u=n(7612);let p=JSON.parse('{"sl_translate":"sl_all","current":"Current {price}","currentWinning":"Current winning bid {price}"}'),{text:m}=(0,u.r)(p),y=(0,i.memo)(e=>{let{currencySymbol:t,price:n,isOutbid:i=!1,...o}=e;return(0,r.jsx)(h,{$level:"M",...o,children:m(i?"currentWinning":"current",{price:(0,d.b)({currencySymbol:(0,s.i)(t),lowPrice:n})})})},l()),h=(0,a.Ay)(c.JU).withConfig({componentId:"sc-7a31f7ee-0"})([""])},25316:(e,t,n)=>{n.d(t,{j:()=>l});var r=n(35365),i=n(64482),o=n(96136);async function l(e,t,n){try{return(await (0,o.IW)({userId:e,type:r.y.auction,cookies:t,baseURL:n})).data.map(e=>e.iSaleNo)}catch(t){return i.v.error(t,"Could not fetch auction likes for user ".concat(e)),[]}}},29392:(e,t,n)=>{n.d(t,{k:()=>eW});var r=n(6029),i=n(35365),o=n(18068),l=n(55452),a=n(93251),s=n(55729),c=n(94445),d=n(26015),u=n(18873),p=n(7612),m=n(19357),y=n(98638),h=n(74636);let b=(0,m.Ay)(h.nB).withConfig({componentId:"sc-99ad7924-0"})(["",""],e=>{let{theme:t}=e;return(0,m.AH)(["color:",";margin:0;"],t.colours.status.error)}),f=(0,m.Ay)(y.L).withConfig({componentId:"sc-99ad7924-1"})(["text-decoration:underline;"]),g=JSON.parse('{"sl_translate":"sl_all","connectionFailed":"Bidding information currently unavailable","refresh":"Refresh"}'),{text:x}=(0,p.r)(g);function v(e){let{refreshCallback:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{children:x("connectionFailed")}),(0,r.jsx)("div",{children:(0,r.jsx)(f,{variant:"ghost",onClick:()=>t(),children:x("refresh")})})]})}var w=n(81631),S=n(98115);let I=m.Ay.div.withConfig({componentId:"sc-6af07bad-0"})([""," background:",";padding:15px;border-radius:5px;"],e=>{let{theme:t}=e;return t.fontStyles.body.regular},e=>{let{theme:t}=e;return w.B3(t.colours.status.error,.1)}),C=(0,m.Ay)(h.DZ).withConfig({componentId:"sc-6af07bad-1"})([""," color:",";display:flex;align-items:center;gap:10px;margin-bottom:5px;"],e=>{let{theme:t}=e;return t.fontStyles.body.bold},e=>{let{theme:t}=e;return t.colours.status.error}),B=(0,m.Ay)(h.nB).withConfig({componentId:"sc-6af07bad-2"})(["color:",";margin-bottom:0;"],e=>{let{theme:t}=e;return t.colours.status.error}),A=(0,m.Ay)(S.h).withConfig({componentId:"sc-6af07bad-3"})(["",""],e=>{let{theme:t}=e;return(0,m.AH)(["border-width:2px;border-style:solid;border-radius:100%;height:20px;padding:2px;width:20px;border-color:",";color:",";"],t.colours.status.error,t.colours.status.error)}),j=JSON.parse('{"title":"You have been outbid","message":"Please place another bid."}'),{text:P}=(0,p.r)(j),_=()=>(0,r.jsxs)(I,{children:[(0,r.jsxs)(C,{$level:6,as:"div",children:[(0,r.jsx)(A,{}),P("title")]}),(0,r.jsx)(B,{children:P("message")})]});var k=n(92434),N=n(50382),E=n(53502);let R=e=>{let t=new Date,n=new Date(e);if((0,k.Y)(n,t))return{days:0,hours:0,minutes:0,seconds:0};let r=(0,N.c)(n,t),{hours:i=0,minutes:o=0,seconds:l=0}=(0,E.F)({start:t,end:n});return{days:r,hours:i,minutes:o,seconds:l}},L=e=>!e||e<0?"00":e.toString().padStart(2,"0"),O=m.Ay.div.withConfig({componentId:"sc-685e2fec-0"})(["display:flex;flex-direction:column;align-items:center;"]),D=(0,m.Ay)(h.JU).withConfig({componentId:"sc-685e2fec-1"})(["color:",";margin-bottom:10px;"],e=>{let{theme:t}=e;return t.colours.primary.charcoal}),F=m.Ay.div.withConfig({componentId:"sc-685e2fec-2"})(["display:flex;gap:25px;"]),H=m.Ay.div.withConfig({componentId:"sc-685e2fec-3"})(["display:flex;flex-direction:column;align-items:center;"," ",""],e=>{let{$isMinWidth:t=!1}=e;return!t&&(0,m.AH)(["width:34px;"])},e=>{let{$isMinWidth:t=!1}=e;return t&&(0,m.AH)(["min-width:34px;"])}),T=(0,m.Ay)(h.nB).withConfig({componentId:"sc-685e2fec-4"})(["color:",";"],e=>{let{theme:t}=e;return t.colours.primary.charcoal}),U=JSON.parse('{"sl_translate":"sl_all","lotClosesIn":"Lot closes in","days":"Days","hours":"Hours","mins":"Mins","secs":"Secs"}'),{text:$}=(0,p.r)(U);function W(e){let{endDate:t,setIsClosingTimeReached:n}=e,[i,o]=(0,s.useState)(R(t));return(0,s.useEffect)(()=>{let e=setInterval(()=>{let e=R(t);o(e),0===e.days&&0===e.hours&&0===e.minutes&&0===e.seconds&&n(!0)},1e3);return()=>{clearInterval(e)}},[t,n]),(0,r.jsxs)(O,{children:[(0,r.jsx)(D,{$level:"M",children:$("lotClosesIn")}),(0,r.jsxs)(F,{children:[(0,r.jsxs)(H,{$isMinWidth:!0,children:[(0,r.jsx)(h.DZ,{$level:4,as:"div",suppressHydrationWarning:!0,children:L(i.days)}),(0,r.jsx)(T,{$level:"XXS",as:"span",children:$("days")})]}),(0,r.jsxs)(H,{children:[(0,r.jsx)(h.DZ,{$level:4,as:"div",suppressHydrationWarning:!0,children:L(i.hours)}),(0,r.jsx)(T,{$level:"XXS",as:"span",children:$("hours")})]}),(0,r.jsxs)(H,{children:[(0,r.jsx)(h.DZ,{$level:4,as:"div",suppressHydrationWarning:!0,children:L(i.minutes)}),(0,r.jsx)(T,{$level:"XXS",as:"span",children:$("mins")})]}),(0,r.jsxs)(H,{children:[(0,r.jsx)(h.DZ,{$level:4,as:"div",suppressHydrationWarning:!0,children:L(i.seconds)}),(0,r.jsx)(T,{$level:"XXS",as:"span",children:$("secs")})]})]})]})}let J=(0,m.Ay)(h.nB).withConfig({componentId:"sc-49cdf47d-0"})(["color:",";margin:0;"],e=>{let{theme:{colours:t}}=e;return t.status.error}),q=JSON.parse('{"sl_translate":"sl_all","timeLeft":"Closing in: {timeLeft}","daysLeftPlural":"{daysLeft} days left to bid","daysLeftSingular":"{daysLeft} day left to bid"}'),{text:M}=(0,p.r)(q);function K(e){let{endDate:t,setIsClosingTimeReached:n}
1=e,[i,o]=(0,s.useState)(R(t));return(0,s.useEffect)(()=>{let e=setInterval(()=>{let e=R(t);o(e),0===e.days&&0===e.hours&&0===e.minutes&&0===e.seconds&&n(!0)},1e3);return()=>{clearInterval(e)}},[t,n]),(0,r.jsx)(J,{children:i.days>0?M(1===i.days?"daysLeftSingular":"daysLeftPlural",{daysLeft:i.days}):M("timeLeft",{timeLeft:"".concat(L(i.hours),":").concat(L(i.minutes),":").concat(L(i.seconds))})})}var V=n(36145);function Q(){let e=(0,m.DP)(),t=(0,s.useId)();return(0,r.jsxs)(V.Ay,{backgroundColor:e.colours.grey[45],foregroundColor:e.colours.grey[30],height:88,speed:2,width:250,uniqueKey:t,viewBox:"0 0 250 88",children:[(0,r.jsx)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"16"}),(0,r.jsx)("rect",{x:"0",y:"24",rx:"3",ry:"3",width:"215",height:"16"}),(0,r.jsx)("rect",{x:"0",y:"48",rx:"3",ry:"3",width:"232",height:"16"}),(0,r.jsx)("rect",{x:"0",y:"72",rx:"3",ry:"3",width:"118",height:"16"})]})}var X=n(21743),Z=n(81147),Y=n(28438),z=n.n(Y),G=n(86684),ee=n(18472);let et=JSON.parse('{"sl_translate":"sl_all","starting":"Starting bid {price}"}'),{text:en}=(0,p.r)(et),er=(0,s.memo)(e=>{let{currencySymbol:t,price:n,...i}=e;return(0,r.jsx)(ei,{$level:"M",...i,children:en("starting",{price:(0,ee.b)({currencySymbol:(0,G.i)(t),lowPrice:n})})})},z()),ei=(0,m.Ay)(h.JU).withConfig({componentId:"sc-cc59d7ad-0"})([""]);var eo=n(35124);let el=e=>{let{userLotData:t,biddingEvent:n,currencySymbol:i,isWinningBidder:o,showOutbidMessage:l}=e;return t&&t.hasActiveBid||!n.currentBid?"startingPrice"in n&&!n.currentBid?(0,r.jsx)(er,{currencySymbol:i,price:n.startingPrice}):o&&n.currentBid?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eo.t,{currencySymbol:i,price:n.currentBid}),(null==t?void 0:t.bidAmount)&&n.currentBid&&t.bidAmount>n.currentBid&&(0,r.jsx)(Z.W,{currencySymbol:i,price:t.bidAmount})]}):l&&n.currentBid?(0,r.jsx)(X.Z,{currencySymbol:i,price:n.currentBid,isOutbid:!0}):n.currentBid?(0,r.jsx)(eo.z,{currencySymbol:i,price:n.currentBid}):null:(0,r.jsx)(X.Z,{currencySymbol:i,price:n.currentBid})};var ea=n(69575),es=n(25590),ec=n(17065);let ed=m.Ay.div.withConfig({componentId:"sc-d436ee47-0"})(["position:relative;"]),eu=(0,m.Ay)(ec.h).withConfig({componentId:"sc-d436ee47-1"})(["",""],e=>{let{$direction:t}=e;return(0,m.AH)(["height:15px;transform:rotate(",");transition:rotate ease 0.3s;width:15px;"],"up"===t?"0deg":"180deg")}),ep=(0,m.Ay)(h.nB).withConfig({componentId:"sc-d436ee47-2"})(["display:block;"]),em=m.Ay.div.withConfig({componentId:"sc-d436ee47-3"})(["",""],e=>{let{theme:t,$hasError:n}=e;return(0,m.AH)(["align-items:center;background-color:",";border:1px solid ",";border-radius:3px;cursor:pointer;display:flex;gap:10px;justify-content:space-between;line-height:1.4;padding:5px;width:100%;"],t.colours.primary.white,n?t.colours.status.error:t.colours.primary.black)}),ey=m.Ay.ul.withConfig({componentId:"sc-d436ee47-4"})(["display:",";"],e=>{let{$visible:t}=e;return t?"block":"none"}),eh=m.Ay.div.withConfig({componentId:"sc-d436ee47-5"})(["",""],e=>{let{theme:t}=e;return(0,m.AH)(["background-color:",";border:1px solid ",";border-radius:0 0 3px 3px;border-top:0;display:flex;flex-direction:column;height:181px;overflow:scroll;position:absolute;width:100%;z-index:",";"],t.colours.primary.white,t.colours.primary.black,t.zIndex.dropdown)}),eb=m.Ay.li.withConfig({componentId:"sc-d436ee47-6"})(["",""],e=>{let{theme:t,$disabled:n}=e;return(0,m.AH)(["padding:5px;&:hover{background-color:",";cursor:pointer;}",";"],t.colours.grey["45"],n&&(0,m.AH)(["color:",";&:hover{background-color:",";cursor:not-allowed;}"],t.colours.grey["60"],t.colours.primary.white))}),ef=JSON.parse('{"sl_translate":"sl_all","label":"Place max bid"}'),{text:eg}=(0,p.r)(ef),ex=(0,s.memo)(e=>{let{biddingPolicy:t,currencySymbol:n,currentBid:o,nextBid:l,maxBidValue:a,maxPossibleBidValue:c,numberOfOptions:d,selectBidCallback:u,isCurrentBidIncluded:p=!1,label:m,isWinningBidder:y,hasError:h,...b}
1=e,f=(0,s.useRef)(null),[g,x]=(0,s.useState)([]),v=e=>e<o||e===a,w=y&&a&&a>o?o:p?l:void 0,{isOpen:S,selectedItem:I,getToggleButtonProps:C,getLabelProps:B,getMenuProps:A,getItemProps:j,selectItem:P}=(0,ea.WM)({items:g,onIsOpenChange:e=>{e.isOpen&&(void 0===g[0]||g[0]!==w)&&x([...w?[w]:[],...(e=>{let{biddingPolicy:t,currentBidValue:n,isWinningBidder:r,maxBidValue:o,maxPossibleBidValue:l,numberOfOptions:a}=e;return"number"==typeof l?(0,i.iV)({policy:t,currentBid:n,maxPossibleBid:l}):r&&o?(0,i.iV)({policy:t,currentBid:n,maxPossibleBid:o,amountOfExtraOptions:a}):(0,i.iV)({policy:t,currentBid:n,amountOfOptions:a})})({biddingPolicy:t,currentBidValue:o,isWinningBidder:y,maxBidValue:a,maxPossibleBidValue:c,numberOfOptions:d})])},onSelectedItemChange:e=>{e.selectedItem&&u(e.selectedItem)},isItemDisabled:v});return(0,s.useEffect)(()=>{P(l)},[P,l]),(0,s.useEffect)(()=>{let e=f.current,n=(0,es.s)(e=>{let n=e.target,r=n.scrollHeight-2*n.clientHeight;n.scrollTop>=r&&x(e=>[...e,...(0,i.iV)({policy:t,currentBid:e[e.length-1],amountOfOptions:d})])},50);return e&&!c&&e.addEventListener("scroll",n),()=>{e&&!c&&e.removeEventListener("scroll",n)}},[t,d,f,S,c]),(0,r.jsxs)(ed,{...b,children:[(0,r.jsx)(ep,{$level:"S",as:"label",...B(),children:m||eg("label")}),(0,r.jsxs)(em,{...C(),$hasError:h,children:[(0,ee.b)({currencySymbol:(0,G.i)(n),lowPrice:I||l}),(0,r.jsx)(eu,{$direction:S?"up":"down"})]}),(0,r.jsx)(ey,{...A(),$visible:S,children:S&&(0,r.jsx)(eh,{ref:f,children:g.map((e,t)=>(0,r.jsx)(eb,{$disabled:v(e),...j({item:e,index:t}),children:(0,ee.b)({currencySymbol:(0,G.i)(n),lowPrice:e})},e))})})]})},z());var ev=n(6207),ew=n(65164),eS=n(65094),eI=n(7690),eC=n(64196),eB=n(31752),eA=n(23335),ej=n(82281),eP=n.n(ej),e_=n(16932),ek=n(64482),eN=n(85649);async function eE(e){let{bidId:t,baseURL:n,amount:r,cookies:i}=e;return(0,eN.B)({accessTokenSSR:(null==i?void 0:i.bonhams_access)||"",refreshTokenSSR:(null==i?void 0:i.bonhams_token)||"",baseURL:n}).patch("/api/bbe/v1/maxbids/".concat(t),{amount:r},{baseURL:n})}let{publicRuntimeConfig:eR}=eP()();async function eL(e){let{baseURL:t,cookies:n,...r}=e,i=(0,eN.B)({accessTokenSSR:(null==n?void 0:n.bonhams_access)||"",refreshTokenSSR:(null==n?void 0:n.bonhams_token)||"",baseURL:t});return(await i.post("/api/bbe/v1/maxbids",r,{baseURL:t})).data}let{publicRuntimeConfig:eO}=eP()();var eD=n(65582);let{publicRuntimeConfig:eF}=eP()();var eH=n(18723),eT=n(92780);let eU=JSON.parse('{"sl_translate":"sl_all","bid":"Bid {price}","confirm":"Click to confirm {price}","bidFailed":"Unfortunately, your bid could not be processed. Please try again.","calculating":"Calculating..."}'),{text:e$}=(0,p.r)(eU);function eW(e){var t;let n,p,{isClosingTimeReached:m,setIsClosingTimeReached:y,auction:{auctionId:h,startDate:b,biddingStatus:f,auctionStatus:g,auctionType:x},biddingStyle:w,lot:{currencySymbol:S,hammerTime:I,isExhibition:C,isPreviewLot:B,isToBeSold:A,lotUniqueId:j},showOutbidMessage:P,timerStyle:k,onLotFinished:N,refreshCallback:E}=e,R=(0,eC.v)(),L=(0,a.jE)(),O=(0,eA.b)(),{userRegistrations:D}=(n={clientNo:null==(t=O.data)?void 0:t.customerId},(0,eD.H)({baseUrl:eF.WEB_API_URL,...n})),F=(0,u.Q)(j),H=(0,d.Pj)((0,c.k)(e=>e.channels[F])),T=null==H?void 0:H.lastPayload,U=(0,d.Pj)((0,c.k)(e=>e.user.lots[j])),$=(0,d.Pj)((0,c.k)(e=>({addRegistration:e.addRegistration,removeRegistration:e.removeRegistration,getRegistrationsCount:e.getRegistrationsCount,updateChannelPayload:e.updateChannelPayload,updateChannelSubscriptionStatus:e.updateChannelSubscriptionStatus,addLot:e.addLot,updateLot:e.updateLot,removeLot:e.removeLot}))),{pusherConnectionStatus:J,subscribe:q,unsubscribe:M}=(0,ev.p)();(e=>{let{channelName:t,subscribe:n,unsubscribe:r,addRegistration:i,removeRegistration:o,getRegistrationsCount:l,updateChannelPayload:a,updateChannelSubscriptionStatus:c}=e,d=(0,s.useRef)(!1),u=(0,s.useMemo)(()=>["lot.bid","lot.info","lot.timeExtended","lot.cancelBid","lot.finished"].reduce((e,n)=>(e[n]=e=>{a({channelName:t,payload:{...e,type:n}})},e),{}),[t,a]);(0,s.useEffect)(()=>{if(!d.current){let e=i(t);d.current=!0;let r=n(t,u,()=>{c({channelName:t,status:"SUBSCRIBED"})});1===e&&(null==r||r.bind("pusher:subscription_error",()=>{o(t),d.current=!1,c({channelName:t,status:"FAILED"})}))}},[i,t,u,o,n,r,c]),(0,s.useEffect)(()=>()=>{if(d.current){let e=o(t);d.current=!1,e||setTimeout(()=>{l(t)||(r(t),c({channelName:t,status:"UNSUBSCRIBED"}))},0)}},[])})({channelName:F,subscribe:q,unsubscribe:M,addRegistration:$.addRegistration,removeRegistration:$.removeRegistration,getRegistrationsCount:$.getRegistrationsCount,updateChannelPayload:$.updateChannelPayload,updateChannelSubscriptionStatus:$.updateChannelSubscriptionStatus});let V=function(e){let{baseURL:t}=e,n=(0,a.jE)();return(0,e_.n)({mutationFn:e=>eL({...e,baseURL:t}),onSuccess:()=>{n.invalidateQueries({queryKey:["bids"]})},onError:e=>{l.Cp(e)}})}({baseURL:eO.WEB_API_URL}),X=function(e){let{baseURL:t}=e;return(0,e_.n)({mutationFn:e=>eE({...e,baseURL:t}),onError:e=>{ek.v.error(e),l.Cp(e)}})}({baseURL:eR.WEB_API_URL}
1),[Z,Y]=(0,s.useState)(0),[z,et]=(0,s.useState)(!1),[en,er]=(0,s.useState)(0);(0,eH.W)({biddingEngine:"bonhams_bidding_engine"});let ei=(0,eS.o)({auctionType:x,auctionStatus:g,biddingStatus:f,biddingEngine:i.n6.BBE}),eo=(0,eI.V)({auctionType:x,biddableFrom:b,biddingEngine:i.n6.BBE,isExhibition:C,isPreview:B,isToBeSold:(null==T?void 0:T.type)!=="lot.finished"&&(T&&"isToBeSold"in T?T.isToBeSold:A)}),ea=!!((null==H?void 0:H.subscriptionStatus)!=="SUBSCRIBED"&&!T),es=!!O.data,ec=D.find(e=>String(e.iSaleNo)===h),ed=es&&ec&&ec.status===i.m7.APPROVED&&(null==T?void 0:T.type)!=="lot.finished"&&ei&&eo,eu=!!(U&&U.bidAmount&&T&&T.currentBid&&"currentPaddleNo"in T&&U.paddleNo!==T.currentPaddleNo&&U.bidAmount<=T.currentBid),ep=!!(U&&T&&"currentPaddleNo"in T&&U.paddleNo===T.currentPaddleNo),em=(0,G.i)(S),ey=null==T?void 0:T.currentBid;T&&"startingPrice"in T&&null===ey&&(ey=T.startingPrice),I&&(p=new o.BB(T&&"endingDate"in T?T.endingDate:I.timestamp,I.timezone.iana));let eh=!!(T&&"startingPrice"in T&&null===T.currentBid);(0,s.useEffect)(()=>{T&&"bidIncrementPolicy"in T&&ey&&Y(e=>{let t=(e=>{let{biddingPolicy:t,currentBidValue:n,isCurrentBidIncluded:r,isWinningBidder:o,maxBidValue:l,maxPossibleBidValue:a}=e;if(r)return n;let s=o&&"number"==typeof l?l:n;if("number"==typeof a){let[e]=(0,i.iV)({policy:t,currentBid:s,maxPossibleBid:a});return null!=e?e:s}let[c]=(0,i.iV)({policy:t,currentBid:s,amountOfOptions:1});return c})({biddingPolicy:T.bidIncrementPolicy,currentBidValue:ey,isCurrentBidIncluded:eh,isWinningBidder:ep,maxBidValue:null==U?void 0:U.bidAmount});return"lot.cancelBid"===T.type||null===T.currentBid||t>e?t:e})},[T,ey,ep,null==U?void 0:U.bidAmount,eh]),(0,s.useEffect)(()=>{ec&&(null==T?void 0:T.currentBid)&&!U&&(T.currentPaddleNo===ec.iPaddleNo&&T.currentBid?$.addLot({auctionId:h,lotUniqueId:j,bidAmount:T.currentBid,paddleNo:ec.iPaddleNo,won:!1,hasActiveBid:!0}):T.previousPaddleNo===ec.iPaddleNo&&$.addLot({auctionId:h,lotUniqueId:j,paddleNo:ec.iPaddleNo,won:!1,hasActiveBid:!0}))},[h,T,j,$,U,ec]);let eb=(0,s.useRef)(null);(0,s.useEffect)(()=>{if((null==T?void 0:T.type)==="lot.finished"&&T!==eb.current){var e;eb.current=T,"status"in T&&"SOLD"===T.status&&$.updateLot(j,{won:(null==U?void 0:U.paddleNo)===T.currentPaddleNo}),null==N||N({hammerPrice:T.currentBid,hammerPremium:T.hammerPremium,status:null!=(e=({SOLD:i.oq.sold,UNSOLD:i.oq.unsold,WITHDRAWN:i.oq.withdrawn})[T.status])?e:i.oq.unsold})}},[T,j,$,U,N]);let ef=(0,s.useRef)(null);if((0,s.useEffect)(()=>{(null==T?void 0:T.type)==="lot.cancelBid"&&"cancelPaddleNo"in T&&T.cancelPaddleNo===(null==U?void 0:U.paddleNo)&&T.cancelledBid!==ef.current&&(ef.current=T.cancelledBid,L.invalidateQueries({queryKey:["activeBBEBids"],exact:!1}).then(()=>{var e;let t=L.getQueryData(["activeBBEBids",null==(e=O.data)?void 0:e.customerId]),n=null==t?void 0:t.bids.find(e=>e.lot_id===j);n?$.updateLot(j,{bidAmount:n.amount,bidId:n.max_bid_id}):$.removeLot(j)}).catch(e=>{l.Cp(e,{extra:{message:"Unable to refetch user invoices after their bid was cancelled"}}),$.removeLot(j)}))},[T,j,$,U,L,O.data,F]),!ei||!eo)return null;if((null==H?void 0:H.subscriptionStatus)==="FAILED"||"DISCONNECTED"===J)return(0,r.jsx)(eT.mK,{children:(0,r.jsx)(v,{refreshCallback:()=>E()})});let eg=m&&(null==T?void 0:T.type)!=="lot.finished";return(0,r.jsx)(eT.mK,{children:eg?(0,r.jsx)(eT._s,{children:e$("calculating")}):(0,r.jsxs)(r.Fragment,{children:[P&&eu?(0,r.jsx)(_,{}):null,p?"flipClock"===k?(0,r.jsx)(W,{endDate:p,setIsClosingTimeReached:y}):(0,r.jsx)(K,{endDate:p,setIsClosingTimeReached:y}):null,ea?(0,r.jsx)(Q,{}):T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(el,{userLotData:U,biddingEvent:T,currencySymbol:S,isWinningBidder:ep,showOutbidMessage:P}),"dropdown"===w?ed&&"bidIncrementPolicy"in T&&ey&&(0,r.jsx)(ex,{biddingPolicy:T.bidIncrementPolicy,currencySymbol:S,currentBid:ey,nextBid:Z,isWinningBidder:ep,maxBidValue:null==U?void 0:U.bidAmount,numberOfOptions:50,selectBidCallback:Y,isCurrentBidIncluded:eh}):null,ed&&Z?"nextIncrement"===w&&ep?null:(0,r.jsx)(eT.RI,{bidValueInvalid:Z===(null==U?void 0:U.bidAmount),label:{confirmation:e$("confirm",{price:(0,ee.b)({currencySymbol:em,lowPrice:Z})}),initial:e$("bid",{price:(0,ee.b)({currencySymbol:em,lowPrice:Z})})},onConfirmClick:async()=>
1{if(et(!0),ed&&ec.iPaddleNo){let e=e=>R.push({event:eB.bk.bidOnLot,data:{bid_source:"BON",lotId:"".concat(h,"-").concat(j),auctionId:h,amount:e,paddleNo:ec.iPaddleNo}});ep&&U&&U.bidId?await X.mutateAsync({amount:Z,bidId:U.bidId},{onSuccess:(t,n)=>{e(n.amount),$.updateLot(j,{bidAmount:n.amount,bidId:n.bidId})},onError:()=>{ew.P.error(e$("bidFailed")),er(e=>e+1),X.reset()}}):await V.mutateAsync({amount:Z,lot_id:String(j),bid_type:"online",cancelled:0,channel:"web.www"},{onSuccess:t=>{e(t.max_bid.amount),$.addLot({auctionId:h,lotUniqueId:j,bidAmount:t.max_bid.amount,paddleNo:ec.iPaddleNo,won:!1,hasActiveBid:!0,bidId:t.max_bid.max_bid_id})},onError:()=>{ew.P.error(e$("bidFailed")),er(e=>e+1),V.reset()}})}et(!1)},pauseAnimation:z,variant:"nextIncrement"===w?"compact":"large"},en):null]}):null]})})}},35124:(e,t,n)=>{n.d(t,{z:()=>f,t:()=>g});var r=n(19357),i=n(83868),o=n(6029),l=n(55729),a=n(28438),s=n.n(a),c=n(86684),d=n(74636),u=n(18472),p=n(7612);let m=JSON.parse('{"sl_translate":"sl_all","winning":"Winning {price}"}'),{text:y}=(0,p.r)(m),h=(0,l.memo)(e=>{let{currencySymbol:t,price:n,...r}=e;return(0,o.jsx)(b,{$level:"M",...r,children:y("winning",{price:(0,u.b)({currencySymbol:(0,c.i)(t),lowPrice:n})})})},s()),b=(0,r.Ay)(d.JU).withConfig({componentId:"sc-7d97705c-0"})([""]),f=(0,r.I4)(i.Kk).withConfig({componentId:"sc-e1fa425f-0"})(["",""],e=>{let{theme:t}=e;return(0,r.AH)(["color:",";"],t.colours.status.error)}),g=(0,r.I4)(h).withConfig({componentId:"sc-e1fa425f-1"})(["",""],e=>{let{theme:t}=e;return(0,r.AH)(["color:",";margin-bottom:15px;"],t.colours.status.success)})},36474:(e,t,n)=>{n.d(t,{n:()=>l});var r=n(35365),i=n(64482),o=n(96136);async function l(e,t,n){try{return(await (0,o.IW)({userId:e,type:r.y.artist,cookies:t,baseURL:n})).data.map(e=>e.iArtistNo)}catch(t){return i.v.error(t,"Could not fetch artist likes for user ".concat(e," ")),[]}}},45901:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(35365),i=n(14649),o=n(93251),l=n(16932),a=n(96136),s=n(76216);let c=e=>{let{type:t,itemId:n,metadata:c,baseURL:d,openLogin:u}=e,{data:p}=(0,i.b)(d),m=(0,s.B)({userId:null==p?void 0:p.customerId,baseUrl:d}),y=function(e){let t=(0,o.jE)();return(0,l.n)({mutationFn:t=>{let{userId:n,type:r,itemId:i}=t;return(0,a.pv)({userId:n,itemId:i,type:r,baseURL:e})},onMutate:async e=>{let{userId:n,type:i,itemId:o,metadata:l}=e;await t.cancelQueries({queryKey:["followed-".concat(i,"s"),n]});let a=t.getQueryData(["followed-".concat(i,"s"),n]);return t.setQueryData(["followed-".concat(i,"s"),n],e=>{if(r.y.lot!==i)return e?[...e,o]:[o];let t=e?JSON.parse(JSON.stringify(e)):{};return i===r.y.lot&&(null==l?void 0:l.auctionId)&&(t[l.auctionId]?t[l.auctionId].push(Number(o)):t[l.auctionId]=[Number(o)]),t}),{previousFollows:a}},onSettled:(e,n,r,i)=>{let{userId:o,type:l}=r;(null==e?void 0:e.status)!==200&&void 0!==i&&t.setQueryData(["followed-".concat(l,"s"),o],i.previousFollows)}})}(d),h=function(e){let t=(0,o.jE)();return(0,l.n)({mutationFn:t=>{let{userId:n,type:r,itemId:i}=t;return(0,a.UJ)({userId:n,itemId:i,type:r,baseURL:e})},onMutate:async e=>{let{userId:n,type:i,itemId:o,metadata:l}=e;await t.cancelQueries({queryKey:["followed-".concat(i,"s"),n]});let a=t.getQueryData(["followed-".concat(i,"s"),n]);return t.setQueryData(["followed-".concat(i,"s"),n],e=>{if(r.y.lot!==i)return e?e.filter(e=>String(e)!==String(o)):[];let t=e?JSON.parse(JSON.stringify(e)):{};return i===r.y.lot&&t&&(null==l?void 0:l.auctionId)&&t[l.auctionId]&&(t[l.auctionId]=t[l.auctionId].filter(e=>String(e)!==String(o)),t=Object.entries(t=Object.entries(t).reduce((e,t)=>{let[n,r]=t;return r.length&&(e[n]=r),e},{})).reduce((e,t)=>{let[n,r]=t;return r.length&&(e[n]=r),e},{})),t}),{previousFollows:a}},onSettled:(e,n,r,i)=>{let{userId:o,type:l}=r;(null==e?void 0:e.status)!==200&&void 0!==i&&t.setQueryData(["followed-".concat(l,"s"),o],i.previousFollows)}})}(d),b=function(e,t){switch(t){case r.y.artist:return e.artists;case r.y.auction:return e.auctions;case r.y.department:return e.departments;default:return{...e.lots,data:e.lots.data?Object.values(e.lots.data).flat():[]}}}(m,t),f=!!Array.isArray(null==b?void 0:b.data)&&b.data.some(e=>String(e)===String(n));return{toggleFollow:function(e){p?f?h.mutate({userId:p.customerId,type:t,itemId:n,metadata:c}):y.mutate({userId:p.customerId,type:t,itemId:n,metadata:c}):(e.preventDefault(),null==u||u())},isFollowing:f,isLoading:y.isPending||h.isPending}}},57865:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(75119);function i(e){return"object"==typeof e&&!!e&&"error"in e&&"status"in e&&"message"in e&&r.A.isAxiosError(e.error)}},65094:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(35365);let i=e=>{let{auctionType:t,auctionStatus:n,rowId:i,biddingStatus:o,biddingEngine:l}=e,a=n===r.aO.ready&&![r.Yo.private,r.Yo.exhibition].includes(t)&&o!==r.x9.ended;return l===r.n6.AM?a&&!!i:l===r.n6.BBE&&a}},65582:(e,t,n)=>{n.d(t,{H:()=>d});var r=n(12482),i=n(46887),o=n(85649),l=n(57865),a=n(41208),s=n(64482);async function c(e,t,n,r){if(!n&&!i.A.get(a.lB.access))return null;
1let c=(0,o.B)({accessTokenSSR:n,refreshTokenSSR:r,baseURL:t});try{return(await c.get("/api/client/".concat(e,"/registrations/"))).data}catch(t){return(0,l.i)(t)&&s.v.error(t,"Error on ".concat(c.defaults.baseURL,"/api/client/").concat(e,"/registrations/ - status code: ").concat(t.status)),null}}function d(e){let{clientNo:t=0,baseUrl:n}=e,{data:i,status:o,error:l}=(0,r.I)({queryKey:["userRegistrations",{clientNo:t}],queryFn:async()=>{let e=await c(t,n);if(e)return e;throw Error("User has no registrations")},retry:1,enabled:!!t,refetchOnWindowFocus:!0,staleTime:3e5});return{userRegistrations:i||[],status:o,error:l}}},76216:(e,t,n)=>{n.d(t,{B:()=>d});var r=n(78075),i=n(46887),o=n(35365),l=n(36474),a=n(25316),s=n(96012),c=n(9844);function d(e){let{userId:t=0,baseUrl:n}=e,d=i.A.get(),u=(0,r.E)({queries:[{queryKey:["followed-".concat(o.y.artist,"s"),t],queryFn:()=>(0,l.n)(t,d,n),enabled:!!t},{queryKey:["followed-".concat(o.y.auction,"s"),t],queryFn:()=>(0,a.j)(t,d,n),enabled:!!t},{queryKey:["followed-".concat(o.y.department,"s"),t],queryFn:()=>(0,s.A)(t,d,n),enabled:!!t},{queryKey:["followed-".concat(o.y.lot,"s"),t],queryFn:()=>(0,c.B)(t,d,n),enabled:!!t}]});function p(e){let{status:t,data:n,isFetching:r,error:i}=e;return{status:t,data:n,isFetching:r,error:i}}return{artists:p(u[0]),auctions:p(u[1]),departments:p(u[2]),lots:p(u[3])}}},81147:(e,t,n)=>{n.d(t,{W:()=>y,t:()=>h});var r=n(6029),i=n(55729),o=n(28438),l=n.n(o),a=n(19357),s=n(86684),c=n(74636),d=n(18472),u=n(7612);let p=JSON.parse('{"sl_translate":"sl_all","max":"(Max bid: {price})"}'),{text:m}=(0,u.r)(p),y=(0,i.memo)(e=>{let{currencySymbol:t,price:n,...i}=e;return(0,r.jsx)(h,{$level:"S",...i,children:m("max",{price:(0,d.b)({currencySymbol:(0,s.i)(t),lowPrice:n})})})},l()),h=(0,a.Ay)(c.JU).withConfig({componentId:"sc-a5d9852f-0"})([""])},83868:(e,t,n)=>{n.d(t,{Kk:()=>y,$p:()=>h,Gi:()=>b});var r=n(6029),i=n(55729),o=n(28438),l=n.n(o),a=n(19357),s=n(86684),c=n(74636),d=n(18472),u=n(7612);let p=JSON.parse('{"sl_translate":"sl_all","outbid":"Outbid","outbidPrice":"Current winning bid {price}"}'),{text:m}=(0,u.r)(p),y=(0,i.memo)(e=>{let{currencySymbol:t,price:n,...i}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h,{$level:"M",...i,children:m("outbid")}),(0,r.jsx)(b,{$level:"M",...i,children:m("outbidPrice",{price:(0,d.b)({currencySymbol:(0,s.i)(t),lowPrice:n})})})]})},l()),h=(0,a.Ay)(c.JU).withConfig({componentId:"sc-b96e9ca5-0"})(["margin-bottom:15px;"]),b=(0,a.Ay)(c.JU).withConfig({componentId:"sc-b96e9ca5-1"})([""])},84145:(e,t,n)=>{n.d(t,{a:()=>p});var r=n(6029),i=n(98638),o=n(31520),l=n(45901),a=n(61704),s=n(7612),c=n(10234);let d=JSON.parse('{"sl_translate":"sl_all","follow.simple":"Follow","following.simple":"Unfollow","follow.full":"Follow","following.full":"Following"}'),{text:u}=(0,s.r)(d);function p(e){let{type:t,itemId:n,title:s="",metadata:d,variant:p="full",baseURL:m,followIcons:y,openLogin:h}=e,{toggleFollow:b,isFollowing:f,isLoading:g}=(0,l.f)({type:t,itemId:n,metadata:d,baseURL:m,openLogin:h}),x=f?y[0]:y[1];return"simple"===p?(0,r.jsxs)(c.T,{onClick:b,disabled:g,children:[(0,r.jsx)(x,{}),(0,r.jsxs)(o.A,{children:[u(f?"following.simple":"follow.simple"),"\xa0",(0,r.jsx)("span",{...a.TY.noTranslate,children:s})]})]}):(0,r.jsx)(i.L,{variant:"ghost",startIcon:x,onClick:b,disabled:g,children:u(f?"following.full":"follow.full")})}},92260:(e,t,n)=>{n.d(t,{$P:()=>f,Xv:()=>b,KB:()=>h});var r=n(6029),i=n(55729),o=n(28438),l=n.n(o),a=n(19357),s=n(86684),c=n(98638),d=n(74636),u=n(18472),p=n(7612);let m=JSON.parse('{"sl_translate":"sl_all","price":"Won for {price}","premium":"Won for {price} inc. premium","checkout":"Checkout online","checkoutSoon":"Checkout available soon"}'),{text:y}=(0,p.r)(m),h=(0,i.memo)(e=>{let{soldPrice:t,isPremium:n,invoiceId:i,invoicePaymentStatus:o,currencySymbol:l,variant:a="ghost",showOnlyWonPrice:c,...d}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{$level:"M",...d,children:n?y("premium",{price:(0,u.b)({currencySymbol:(0,s.i)(l),lowPrice:t})}):y("price",{price:(0,u.b)({currencySymbol:(0,s.i)(l),lowPrice:t})})}),!c&&"PAID"!==o&&"PAID_PENDING"!==o&&(0,r.jsx)(f,{variant:a,disabled:!i,href:i?"/mybonhams/invoices/pay/?invoiceIds=".concat(i):void 0,...d,children:i?y("checkout"):y("checkoutSoon")})]})}
1,l()),b=(0,a.Ay)(d.nB).withConfig({componentId:"sc-177b9f02-0"})(["margin-bottom:10px;padding-bottom:10px;"]),f=(0,a.Ay)(c.L).withConfig({componentId:"sc-177b9f02-1"})([""])},92780:(e,t,n)=>{n.d(t,{RI:()=>f,mK:()=>b,_s:()=>g});var r=n(19357),i=n(6029),o=n(55729),l=n(7612),a=n(81631),s=n(98638),c=n(74636);let d=r.Ay.div.withConfig({componentId:"sc-8429d1dd-0"})(["display:grid;width:100%;"]),u=r.Ay.button.withConfig({componentId:"sc-8429d1dd-1"})(["",""],e=>{let{theme:t,$animationDuration:n,$variant:i,$pauseAnimation:o}=e;return(0,r.AH)([""," "," cursor:pointer;background-color:",";color:",";position:relative;width:100%;padding:","px;text-align:center;border:0;border-radius:5px;&:hover{text-decoration:underline;}@keyframes background-fill{0%{width:100%;}100%{width:0;}}&::after{content:'';position:absolute;height:100%;top:0;left:0;border-radius:5px;background-color:",";animation:","s linear 0s 1 background-fill;","}"],t.typography.body.M,t.fontStyles.body.medium,(0,a.B3)(t.colours.status.error,.1),t.colours.status.error,"compact"===i?4:8,(0,a.B3)(t.colours.status.error,.2),n,o&&(0,r.AH)(["animation-play-state:paused;"]))}),p=(0,r.Ay)(s.L).withConfig({componentId:"sc-8429d1dd-2"})([""," ",""],e=>{let{theme:t}=e;return t.fontStyles.body.medium},e=>{let{theme:t,$variant:n}=e;return"compact"===n&&(0,r.AH)([""," "," color:",";text-decoration:underline;&:hover{color:"," !important;}"],t.typography.body.M,t.fontStyles.body.medium,t.colours.primary.primary,t.colours.primary.black)}),m=(0,r.Ay)(c.nB).withConfig({componentId:"sc-8429d1dd-3"})(["margin:5px 0 0;"]),y=JSON.parse('{"sl_translate":"sl_all","incorrectIncrement":"*Please select an available max bid"}'),{text:h}=(0,l.r)(y),b=r.Ay.div.withConfig({componentId:"sc-4943b03e-0"})(["",""],e=>{let{theme:t}=e;return(0,r.AH)(["border-bottom:1px solid ",";border-top:1px solid ",";display:grid;gap:5px;margin:15px 0;padding:10px 0;position:relative;"],t.colours.grey["45"],t.colours.grey["45"])}),f=(0,r.Ay)(e=>{let{label:t,onConfirmClick:n,onInitialClick:r,variant:l="compact",confirmationDuration:a=15,pauseAnimation:s=!1,bidValueInvalid:c,...y}=e,[b,f]=(0,o.useState)("initial"),g=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{f("initial")},[t.initial]),(0,i.jsxs)(d,{children:["initial"===b?(0,i.jsxs)(p,{...y,type:"button",variant:"compact"===l?"ghost":"primary",onClick:()=>{null==r||r(),f("confirmation")},"data-stage":b,disabled:c,$variant:l,children:[t.initial,c?"*":null]}):(0,i.jsx)(u,{...y,onAnimationEnd:()=>{f("initial")},onClick:async()=>{if(!g.current){g.current=!0;try{await n()}finally{g.current=!1}f("initial")}},"data-stage":b,disabled:c,$animationDuration:a,$variant:l,$pauseAnimation:s,children:t.confirmation}),c&&(0,i.jsx)(m,{$level:"XXS",children:h("incorrectIncrement")})]})}).withConfig({componentId:"sc-4943b03e-1"})(["",""],e=>{let{variant:t}=e;return(0,r.AH)(["",""],"compact"===t?(0,r.AH)(["justify-content:start;margin-top:10px;"]):(0,r.AH)(["margin:0;"]))}),g=(0,r.Ay)(c.nB).withConfig({componentId:"sc-4943b03e-2"})(["&&{margin:0;}"])},96012:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(35365),i=n(64482),o=n(96136);async function l(e,t,n){try{return(await (0,o.IW)({userId:e,type:r.y.department,cookies:t,baseURL:n})).data.map(e=>e.sDepartment)}catch(t){return i.v.error(t,"Could not fetch department likes for user ".concat(e)),[]}}},96136:(e,t,n)=>{n.d(t,{IW:()=>i,UJ:()=>l,pv:()=>o});var r=n(85649);function i(e){let{userId:t,type:n,cookies:i,baseURL:o}=e;return(0,r.B)({accessTokenSSR:(null==i?void 0:i.bonhams_access)||"",refreshTokenSSR:(null==i?void 0:i.bonhams_token)||"",baseURL:o}).get("/api/client/".concat(t,"/").concat(n,"-likes/"))}function o(e){let{userId:t,itemId:n,type:i,cookies:o,baseURL:l}=e;return(0,r.B)({accessTokenSSR:(null==o?void 0:o.bonhams_access)||"",refreshTokenSSR:(null==o?void 0:o.bonhams_token)||"",baseURL:l}).post("/api/client/".concat(t,"/").concat(i,"-likes/"),{sKey:n},{headers:{"Content-Type":"application/json"}})}function l(e){let{userId:t,itemId:n,type:i,cookies:o,baseURL:l}=e;return(0,r.B)({accessTokenSSR:(null==o?void 0:o.bonhams_access)||"",refreshTokenSSR:(null==o?void 0:o.bonhams_token)||"",baseURL:l}).delete("/api/client/".concat(t,"/").concat(i,"-likes/"),{headers:{"Content-Type":"application/json"},data:{sKey:n}})}},97316:(e,t,n)=>{n.d(t,{b:()=>r});let r=e=>10===String(e).length?1e3*e:e}}]);
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.