PageSourceSearch

https://www.bonhams.com/_next/static/chunks/6810-ddc9082292b6ca0e.js

js bonhams.com collected 2026-10-01 10:13:34 UTC 17,905 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6810],{12275:(e,n,t)=>{"use strict";t.d(n,{m:()=>r});class r extends Error{}},13484:(e,n,t)=>{"use strict";t.d(n,{S:()=>F,f:()=>L});var r=t(6029),o=t(44517);t(84799);var i=t(55452),a=t(52229),c=t(81278),s=t(55729),l=t(47947),d=t(17562),u=t(61704),p=t(7612),m=t(64482),h=t(93050);let g={[u.ml.english]:"en-US",[u.ml.french]:"fr-FR",[u.ml.flemish]:"en-US",[u.ml.chineseSimplified]:"zh-CN",[u.ml.chineseTraditional]:"zh-TW"};var f=t(16932),y=t(46887),x=t(85649),b=t(77667),C=t(6663),I=function(e){return e.WEB="WEB",e.A3="A3",e}({});let w=C.Ik({amount:C.ai(),apiKey:C.Yj().trim().min(1),bonhamsCurrencyCode:C.Yj().trim().min(1),countryCode:C.Yj().trim().min(1),customerId:C.Yj().trim().optional(),environment:C.k5(["LIVE","TEST"]),merchantAccount:C.Yj().trim().min(1),recurringProcessingModel:C.fc(b.Types.checkout.CreateCheckoutSessionRequest.RecurringProcessingModelEnum).optional(),returnUrl:C.Yj().trim().min(1),reference:C.Yj().trim().min(1),shopperEmail:C.Yj().trim().optional(),storePaymentMethodMode:C.fc(b.Types.checkout.CreateCheckoutSessionRequest.StorePaymentMethodModeEnum).optional(),source:C.fc(I).default("WEB").optional(),liveEndpointUrlPrefix:C.Yj().trim().optional(),minorUnits:C.ai()});C.Ik({amount:C.ai(),countryCode:C.Yj().trim().min(1),bonhamsCurrencyCode:C.Yj().trim().min(1),customerId:C.Yj().trim().min(1),reference:C.Yj().trim().min(1),returnUrl:C.Yj().trim().min(1),merchantAccount:C.Yj().trim().min(1),minorUnits:C.ai(),paymentMethodData:C.g1(C.L5()),invoiceIds:C.YO(C.ai()).min(1),shopperEmail:C.Yj().trim().optional()});let k=w.pick({amount:!0,countryCode:!0,bonhamsCurrencyCode:!0,customerId:!0,recurringProcessingModel:!0,reference:!0,returnUrl:!0,shopperEmail:!0,storePaymentMethodMode:!0,merchantAccount:!0,minorUnits:!0,source:!0}),v=async e=>{let{accessToken:n,refreshToken:t,baseURL:r,apiURL:o,authenticate:i=!0,...a}=e,c=k.safeParse(a);return c.success?(i?(0,x.B)({accessTokenSSR:n,refreshTokenSSR:t,timeout:5e3,baseURL:o}):(0,x.w)({baseURL:r,timeout:5e3})).post("/api/adyen/session/",a,{baseURL:r,headers:i?{cookie:"bonhams_access=".concat(n,"; bonhams_token=").concat(t,";")}:void 0}).then(e=>e.data):Promise.reject(c.error.errors)},_=function(){let{authenticate:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{authenticate:!0};return(0,f.n)({mutationFn:n=>{let{baseURL:t,apiURL:r,...o}=n,i=y.A.get();return v({accessToken:i.bonhams_access,refreshToken:i.bonhams_token,baseURL:t,apiURL:r,authenticate:e,...o})},retry:3})};var A=t(19357),S=t(46817),E=t(74636);let R=A.Ay.div.withConfig({componentId:"sc-3e14e46e-0"})(["display:flex;margin:0 auto;width:100%;"]),j=A.Ay.div.withConfig({componentId:"sc-3e14e46e-1"})(["",""],e=>{let{theme:n}=e;return(0,A.AH)(["width:100%;.adyen-checkout__payment-method{background-color:",";border-radius:4px;}.adyen-checkout__button--pay{background-color:",";border-radius:4px;}.adyen-checkout__input{border-radius:4px;}.adyen-checkout__checkbox__input{background-color:",";}.adyen-checkout__payment-method__radio--selected{background-color:",";}.adyen-checkout__input--focus,.adyen-checkout__input--focus:hover,.adyen-checkout__input:active,.adyen-checkout__input:active:hover,.adyen-checkout__input:focus{border-color:",";box-shadow:0 0 0 1px -webkit-focus-ring-color;}.adyen-checkout__label--focused .adyen-checkout__label__text{color:",";}"],n.colours.primary,n.colours.primary.primary,n.colours.primary.primary,n.colours.primary.primary,n.colours.grey["45"],n.colours.primary.primary)}),P=A.Ay.div.withConfig({componentId:"sc-3e14e46e-2"})(["align-items:center;display:flex;justify-content:center;min-height:200px;width:100%;"]),U=A.Ay.div.withConfig({componentId:"sc-3e14e46e-3"})(["",""],e=>{let{theme:n}=e;return(0,A.AH)(["background:",";border:1px solid ",";border-radius:5px;display:flex;flex-direction:column;padding:30px;width:100%;"],n.colours.grey["30"],n.colours.grey["45"])}),N=(0,A.Ay)(S.h).withConfig({componentId:"sc-3e14e46e-4"})(["height:30px;margin-bottom:10px;width:30px;"]),T=(0,A.Ay)(E.nB).withConfig({componentId:"sc-3e14e46e-5"})(["margin:0;"]),D=JSON.parse('{"sl_translate":"sl_all","AdyenPaymentFailedToLoad":"We are unable to take payment right now, please contact {link} or try again later.","AdyenPaymentMessageLink":"customer support"}'),{text:Y,textHTML:B}=(0,p.r)(D);function F(e){let n,{className:t,authenticate:d=!0,...p}=e;try{n=(0,c.useRouter)().query}catch(e){n=Object.fromEntries([...(0,a.useSearchParams)()])}
1let f=function(){let[e,n]=(0,s.useState)(u.ml.english);return(0,s.useEffect)(()=>{var e;n(null!=(e=document.documentElement.getAttribute("lang"))?e:u.ml.english)},[]),e}(),{mutateAsync:y}=_({authenticate:d}),x=(0,s.useRef)(null),b=(0,s.useRef)(void 0),[C,I]=(0,s.useState)(!1),[w,k]=(0,s.useState)("PAY"),v=(0,s.useCallback)(async()=>{k("LOADING");let e=null;try{e=await y({...p.sessionConfig,baseURL:p.baseUrl,apiURL:p.apiUrl})}catch(e){i.Cp(e)}if(null===e)return void k("ERROR");p.shouldRefreshOnFail&&(p.dropinConfig.disableFinalAnimation=!0);let{checkoutConfig:t,dropinConfig:r}=(e=>{var n;let{baseUrl:t,cardConfig:r,checkoutConfig:o,dropinConfig:a,merchantAccount:c,paymentLimitsExceeded:s,theme:l,paymentLimitsExceededCallback:d,setComponentState:u}=e;return{checkoutConfig:{...o,locale:null!=(n=g[o.locale])?n:"en-US",onPaymentCompleted:e=>{var n;switch(e.resultCode){case"Pending":case"Received":u("PAYMENT_PENDING");break;default:u("PAYMENT_SUCCESS")}null==(n=o.onPaymentCompleted)||n.call(o,e)},onPaymentFailed:e=>{var n;u("PAYMENT_FAILED"),null==(n=o.onPaymentFailed)||n.call(o,e)},onError:e=>{var n;"CANCEL"!==e.name&&(u("ERROR"),i.Cp(e,{extra:{message:"There was an error with the Adyen payment component"}}),null==(n=o.onError)||n.call(o,e))},beforeSubmit:async(e,n,r)=>{let o=e.paymentMethod.encryptedCardNumber;if("string"==typeof o)try{let n=await (0,h.X)({cardNumber:"",encryptedCardNumber:o,merchantAccount:c,baseUrl:t});"CREDIT"===n.fundingSource&&s.credit||"DEBIT"===n.fundingSource&&s.debit?(null==d||d(!0),r.reject()):(null==d||d(!1),r.resolve(e))}catch(n){null==d||d(!1),r.resolve(e)}else null==d||d(!1),r.resolve(e)}},dropinConfig:{showRadioButton:!1,instantPaymentTypes:["googlepay","applepay"],...a,paymentMethodsConfiguration:{card:{...r,hasHolderName:!0,positionHolderNameOnTop:!0,holderNameRequired:!0,showBrandIcon:!0,styles:l?{placeholder:{color:l.placeholderColour,fontStyle:"italic"},error:{color:l.errorColour}}:{}},googlepay:{allowCreditCards:!s.credit},storedCard:{styles:l?{placeholder:{color:l.placeholderColour,fontStyle:"italic"},error:{color:l.errorColour}}:{}}}}}})({...function(e){let{locale:n,props:t,query:r,sessionData:o}=e,i={...t};return i.checkoutConfig.locale=n,i.checkoutConfig.countryCode=o.countryCode,r.sessionId&&r.redirectResult?i.checkoutConfig.session={id:r.sessionId}:i.checkoutConfig.session={id:o.id,sessionData:o.sessionData},i}({props:p,sessionData:e,locale:f,query:n}),merchantAccount:p.sessionConfig.merchantAccount,setComponentState:k});try{var a;let e=await (0,o.mU)(t);null==(a=p.onCheckoutCreated)||a.call(p,e),n.sessionId&&n.redirectResult?(e.submitDetails({details:{redirectResult:n.redirectResult}}),k("3DS_REDIRECT"),I(!0)):(b.current&&"PAYMENT_FAILED"===w&&(b.current.remove(),b.current=void 0),x.current&&!b.current&&(k("PAY"),b.current=new o.Bf(e,r),b.current.mount("#dropin-container"),I(!0)))}catch(e){k("ERROR"),m.v.error(e)}},[y,f,p,n,w]);switch((0,s.useEffect)(()=>{["PAY","3DS_REDIRECT"].includes(w)&&!C&&v()},[w,v,C]),(0,s.useEffect)(()=>{"PAYMENT_FAILED"===w&&p.shouldRefreshOnFail&&v()},[w,p.shouldRefreshOnFail,v]),w){case"3DS_REDIRECT":return null;case"ERROR":return(0,r.jsx)(L,{children:B("AdyenPaymentFailedToLoad",{link:(0,r.jsx)(l.r,{href:"/help/",children:Y("AdyenPaymentMessageLink")},"failed_to_load_link")})});case"PAYMENT_FAILED":if(p.paymentFailedComponent)return p.paymentFailedComponent;break;case"PAYMENT_PENDING":if(p.paymentPendingComponent)return p.paymentPendingComponent;break;case"PAYMENT_SUCCESS":if(p.paymentSuccessComponent)return p.paymentSuccessComponent}return(0,r.jsx)(M,{paymentContainer:x,className:t})}let M=e=>{let{paymentContainer:n,className:t}=e;return(0,r.jsx)(R,{"data-testid":"adyen_dropin",className:t,children:(0,r.jsx)(j,{id:"dropin-container",children:(0,r.jsx)(P,{ref:n,className:"payment",children:(0,r.jsx)(d.m,{})})})},"adyen_wrapper")},L=e=>{let{children:n}=e;return(0,r.jsxs)(U,{children:[(0,r.jsx)(N,{}),(0,r.jsx)(T,{children:n},"failed_to_load_body")]},"failed_to_load")}},17027:(e,n,t)=>{"use strict";t.d(n,{Z:()=>r});let r={AUD:{minorUnit:2,bonhamsCode:"AU$"},CHF:{minorUnit:2,bonhamsCode:"CHF"},EUR:{minorUnit:2,bonhamsCode:"€"},GBP:{minorUnit:2,bonhamsCode:"\xa3"},HKD:{minorUnit:2,bonhamsCode:"HK$"},USD:{minorUnit:2,bonhamsCode:"US$"}};Object.values(r).map(e=>e.bonhamsCode)},17562:(e,n,t)=>{"use strict";t.d(n,{m:()=>i});var r=t(19357),o=t(62594);let i=(0,r.Ay)(o.h).withConfig({componentId:"sc-ad9fbe57-0"})(["animation-name:",";animation-duration:1.8s;animation-iteration-count:infinite;animation-timing-function:linear;"],e=>{let{theme:n}=e;return n.animation.rotate360})},23371:()=>{},33798:(e,n,t)=>{"use strict";t.d(n,{O:()=>a});var r=t(6029),o=t(23316),i=t(76252);function a(e){let{level:n="INFO",icon:t=o.h,children:a}=e;return(0,r.jsxs)(i.bf,{$level:n,children:[(0,r.jsx)(i.bu,{$level:n,as:t}),(0,r.jsx)(i.G1,{children:a})]})}},39138:()=>{},44521:(e,n,t)=>{"use strict";t.d(n,{Ac:()=>k,DC:()=>h,Fb:()=>D,G1:()=>P,G3:()=>N,Gh:()=>I,HS:()=>u,K3:()=>v,LU:()=>R,NR:()=>b,PS:()=>C,PZ:()=>f,QA:()=>y,RF:()=>j,T7:()=>x,UI:()=>U,XX:()=>T,_A:()=>_,dM:()=>w,iP:()=>S,iV:()=>g,n8:()=>m,q:()=>p,u6:()=>A,zi:()=>E});var r=t(81631),o=t(19357),i=t(85459),a=t(23316),c=t(98638),s=t(40199),l=t(10109),d=t(74636);let u=(0,o.I4)(s.S).withConfig({componentId:"sc-c71c50b4-0"})(["display:flex;flex-direction:column;padding:0;","{width:90vw;}","{height:100%;max-width:1060px;max-height:min(772px,80vh);}","{box-shadow:",";display:contents;","{position:sticky;display:grid;grid-template-columns:max-content 1fr;height:106px;flex-shrink:0;padding-bottom:0;align-items:center;background:",";overflow:clip;}","{position:fixed;top:0;right:0;background:transparent;z-index:",";","{position:absolute;top:0;right:13px;}}}"],e=>{let{theme:n}=e;return n.media.up.lg},e=>{let{theme:n}=e;return n.media.up.xxl},l.h9,e=>{let{theme:n}=e;return n.shadows.smallBottomOnly},e=>{let{theme:n}=e;return n.media.up.lg},e=>{let{theme:n}=e;return n.colours.grey[30]},l.JK,e=>{let{theme:n}=e;return n.zIndex.modal+1},e=>{let{theme:n}=e;return n.media.up.lg}),p=o.I4.form.withConfig({componentId:"sc-c71c50b4-1"})(["display:flex;flex-direction:column;flex-grow:1;"]),m=o.I4.div.withConfig({componentId:"sc-c71c50b4-2"})(["flex-grow:1;"]),h=o.I4.div.withConfig({componentId:"sc-c71c50b4-3"})(["display:grid;","{grid-template-columns:48fr 52fr;margin:0 15px 30px;column-gap:20px;}"],e=>{let{theme:n}=e;return n.media.up.xl}),g=(0,o.I4)(d.JU).withConfig({componentId:"sc-c71c50b4-4"})(["margin-top:35px;","{margin-top:30px;}"],e=>{let{theme:n}=e;return n.media.up.xl}),f=o.I4.section.withConfig({componentId:"sc-c71c50b4-5"})(["",""],e=>{let{$visible:n=!0}=e;return(0,o.AH)(["margin:0 15px;","{margin:0 30px;}","{margin:0 15px;}",""],e=>{let{theme:n}=e;return n.media.up.lg},e=>{let{theme:n}=e;return n.media.up.xl},n?"":(0,o.AH)(["display:none;"]))}),y=(0,o.I4)(f).withConfig({componentId:"sc-c71c50b4-6"})(["box-sizing:content-box;margin:0;max-width:640px;padding:20px 15px;","{padding:50px 50px 60px;}"],e=>{let{theme:n}=e;return n.media.up.lg}),x=o.I4.fieldset.withConfig({componentId:"sc-c71c50b4-7"})(["display:flex;gap:20px;"]),b=o.I4.label.withConfig({componentId:"sc-c71c50b4-8"})(["box-shadow:inset 0 0 0 1px ",";border-radius:5px;color:",";padding:10px;display:grid;align-items:center;cursor:pointer;&:has(input:checked){background:",";}input{margin:0;}> :first-child{grid-row:1 / -1;}> :nth-child(2){grid-column:2 / -1;}"],e=>{let{theme:n}=e;return(0,r.B3)(n.colours.primary.primary,.1)},e=>{let{theme:n}=e;return n.colours.primary.primary},e=>{let{theme:n}=e;return(0,r.B3)(n.colours.primary.primary,.1)}),C=(0,o.I4)(d.nB).withConfig({componentId:"sc-c71c50b4-9"})(["color:",";",";"],e=>{let{theme:n}=e;return n.colours.primary.primary},e=>{let{theme:n}=e;return n.fontStyles.body.medium}),I=o.I4.div.withConfig({componentId:"sc-c71c50b4-10"})(["margin-top:15px;"]),w=(0,o.I4)(d.nB).withConfig({componentId:"sc-c71c50b4-11"})(["margin-top:4px;"]),k=(0,o.I4)(c.L).withConfig({componentId:"sc-c71c50b4-12"})(["margin-block:25px;width:100%;","{width:fit-content;margin-block:0;}"],e=>{let{theme:n}=e;return n.media.up.xl}),v=o.I4.div.withConfig({componentId:"sc-c71c50b4-13"})(["background-color:",";inset:0;display:grid;place-items:center;position:absolute;width:100%;z-index:20;"],e=>{let{theme:n}=e;return n.colours.primary.white}),_=(0,o.I4)(d.nB).withConfig({componentId:"sc-c71c50b4-14"})(["color:",";margin-top:16px;+ ","{margin-top:5px;}"],e=>{let{theme:n}=e;return n.colours.status.error},b),A=o.I4.div.withConfig({componentId:"sc-c71c50b4-15"})(["margin:20px 0;"]),S=o.I4.div.withConfig({componentId:"sc-c71c50b4-16"})(["",""],e=>{let{theme:n}=e;return(0,o.AH)(["background:",";border:1px solid ",";border-radius:5px;
1display:flex;flex-direction:column;padding:30px;width:100%;"],n.colours.grey["30"],n.colours.grey["45"])}),E=(0,o.I4)(i.h).withConfig({componentId:"sc-c71c50b4-17"})(["border:2px solid ",";border-radius:100%;height:30px;margin-bottom:10px;padding:3px;width:30px;"],e=>{let{theme:n}=e;return n.colours.primary.black}),R=(0,o.I4)(d.nB).withConfig({componentId:"sc-c71c50b4-18"})(["margin:0;"]),j=o.I4.div.withConfig({componentId:"sc-c71c50b4-19"})(["align-items:center;display:flex;flex-flow:row wrap;gap:40px;margin-top:50px;","{gap:100px;}"],e=>{let{theme:n}=e;return n.media.up.lg}),P=(0,o.I4)(d.nB).withConfig({componentId:"sc-c71c50b4-20"})(["margin-top:20px;"]),U=(0,o.I4)(a.h).withConfig({componentId:"sc-c71c50b4-21"})(["border:2px solid ",";border-radius:100%;height:25px;padding:1px;width:25px;"],e=>{let{theme:n}=e;return n.colours.primary.black}),N=o.I4.span.withConfig({componentId:"sc-c71c50b4-22"})(["display:flex;"]),T=o.I4.div.withConfig({componentId:"sc-c71c50b4-23"})(["position:relative;"]),D=o.I4.div.withConfig({componentId:"sc-c71c50b4-24"})(["background-color:rgb(255 255 255 / 60%);height:100%;left:0;position:absolute;top:0;width:100%;z-index:10;"])},47073:(e,n,t)=>{"use strict";t.d(n,{VQ:()=>s,hD:()=>a,lR:()=>c});var r=t(66310),o=t(57865),i=t(12275);class a extends Error{}class c extends Error{}function s(e){let n;if((0,r.F0)(e)&&e.response)n=e.response;else if((0,o.i)(e))n=e.error.response;else if(e instanceof Error)return new a(e.message);if(n){let e=n.status,{baseURL:t,url:r,params:o}=n.config,s=new URL(r||"",t);return(o&&(s.search=new URLSearchParams(o).toString()),403===e)?new c("".concat(e.toString()," ").concat(n.statusText," - ").concat(s)):404===e?new i.m("".concat(e.toString()," ").concat(n.statusText," - ").concat(s.toString())):new a(e.toString())}return new a("Unknown error")}},47427:(e,n,t)=>{"use strict";t.d(n,{K:()=>d});var r=t(6029),o=t(74636),i=t(7612),a=t(19357),c=t(44521);let s=(0,a.Ay)(c.NR).withConfig({componentId:"sc-a103a73c-0"})(["column-gap:10px;grid-template-columns:min-content 1fr;margin-top:14px;","{display:inline-block;margin-right:20px;}& + &{margin-top:20px;}user-select:none;",""],o.nB,e=>{let{$increasedPadding:n}=e;return n&&(0,a.AH)(["padding:15px;"])}),l=JSON.parse('{"sl_translate":"sl_all","country":"Country","city":"City","state":"State","county":"County","address":"Address","postalCode":"Postal code"}'),d=e=>{let{userAddresses:n,formElementAttrs:t,onAddressSelect:a,selectedAddressId:c}=e,{text:d}=(0,i.r)(l);return n.map(e=>{var n;return(0,r.jsxs)(s,{$increasedPadding:!!a,children:[(0,r.jsx)("span",{children:(0,r.jsx)("input",{type:"radio",value:e.addressID,onChange:t?void 0:()=>null==a?void 0:a(e.addressID),checked:t?void 0:c===e.addressID,...t})}),(0,r.jsxs)("span",{children:[(0,r.jsxs)(o.nB,{$level:"S",as:"span",children:[d("address"),": ",(0,r.jsx)("b",{children:e.line1})]}),(0,r.jsxs)(o.nB,{$level:"S",as:"span",children:[d("city"),": ",(0,r.jsx)("b",{children:e.town})]}),(0,r.jsxs)(o.nB,{$level:"S",as:"span",children:[d("postalCode"),": ",(0,r.jsx)("b",{children:e.postCode})]}),(0,r.jsxs)(o.nB,{$level:"S",as:"span",children:[d("country"),": ",(0,r.jsx)("b",{children:e.country.code})]}),(null==(n=e.region)?void 0:n.name)&&(0,r.jsxs)(o.nB,{$level:"S",as:"span",children:[d(e.region.type),": ",(0,r.jsx)("b",{children:e.region.name})]})]})]},"".concat(e.addressID))})}},57865:(e,n,t)=>{"use strict";t.d(n,{i:()=>o});var r=t(75119);function o(e){return"object"==typeof e&&!!e&&"error"in e&&"status"in e&&"message"in e&&r.A.isAxiosError(e.error)}},76252:(e,n,t)=>{"use strict";t.d(n,{G1:()=>s,bf:()=>a,bu:()=>c});var r=t(81631),o=t(19357),i=t(74636);let a=o.I4.div.withConfig({componentId:"sc-753607c7-0"})(["",""],e=>{let{theme:n,$level:t}=e,i="INFO"===t?n.colours.primary.charcoal:n.colours.status.error;return(0,o.AH)(["background:",";display:flex;flex-direction:row;gap:10px;margin:20px 0;padding:10px 15px 15px;*{color:",";}a{text-decoration:underline;}"],(0,r.B3)(i,.1),i)}),c=o.I4.svg.withConfig({componentId:"sc-753607c7-1"})(["",""],e=>{let{theme:n,$level:t}=e,r="INFO"===t?n.colours.primary.charcoal:n.colours.status.error;return(0,o.AH)(["border:2px solid ",";border-radius:100%;flex-shrink:0;height:20px;padding:2px;width:20px;"],r)}),s=(0,o.I4)(i.nB).withConfig({componentId:"sc-753607c7-2"})(["margin:0;"])},80034:()=>{},93050:(e,n,t)=>{"use strict";t.d(n,{X:()=>o});var r=t(35365);async function o(e){let{cardNumber:n,encryptedCardNumber:t,merchantAccount:o,baseUrl:i}=e,a={cardNumber:n,merchantAccount:o};t&&(a.encryptedCardNumber=t);let c=new URLSearchParams(a);
1return(await r.SP.get("/api/adyen/card-details/?".concat(c.toString()),{baseURL:i})).data}}}]);

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.