(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{19494:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(81945)}])},98486:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});var l,r,a=n(48282),s=n(18529),i=n(45014),c=n.n(i),o=n(28486);(l=r||(r={})).Green="green",l.Red="red",l.Gold="gold",l.GoldFull="fullGold",l.GoldCustom="customGold",l.GrayDark="darkGray";let getSizeClasses=e=>{switch(e){case"small":return"badge-sm h-2";case"medium":return"badge-md h-[1.625rem]";case"large":return"badge-lg h-8";default:return"badge-md h-5"}},getTheme=e=>{switch(e){case"red":return"bg-red text-black border-red";case"green":return"bg-green text-black border-green";case"gold":return"bg-white text-gold border-gold";case"darkGray":case"white":return"bg-gray-700 text-white border-gray-700";case"gray":return"bg-[#696561] text-white border-[#696561]";case"fullGold":return"bg-gold text-dark border-gold";case"customGold":return"bg-[#C8961E] text-black border-[#C8961E]";case"lightGray":return"bg-gray-100 text-black border-gray-100";default:return"text-white bg-gold border-gold"}};t.Z=e=>{let{id:t,theme:n="green",size:l=o.$u.Medium,label:r,href:i,"data-cy":d,iconLeft:u,iconRight:m}=e,h=(0,s.useMemo)(()=>{let e=getTheme(n);return[e].join(" ")},[n]),x=getSizeClasses(l);return(0,a.jsxs)("div",{"data-cy":d,id:t,className:"".concat("badge font-medium md:font-bold font-austinNewsDeck italic rounded-full"," ").concat(h," ").concat(x," flex items-center"),children:[u&&(0,a.jsx)(u,{className:"h-3 w-3 mr-2"}),i?(0,a.jsx)(c(),{href:i,children:r}):r,m&&(0,a.jsx)("div",{className:"ml-2 flex items-center justify-center",children:m})]})}},10891:function(e,t,n){"use strict";n.d(t,{Z:function(){return DropdownItem}});var l=n(48282);n(18529);var r=n(90227);function DropdownItem(e){let{href:t,hiddenOptions:n,children:a,onClick:s}=e,i=(0,r.useRouter)(),c=i.pathname;return(0,l.jsx)("li",{onClick:s,className:"text-sm ".concat(null!=n?n:""),children:(0,l.jsx)("a",{href:t,className:"hover:text-gray-200 duration-500 ".concat(c===t?"text-white font-bold":"text-gray-400"),children:a})})}},49124:function(e,t,n){"use strict";n.d(t,{Z:function(){return OptionsIcon}});var l=n(48282);function OptionsIcon(e){let{className:t=""}=e;return(0,l.jsx)("svg",{"data-cy":"options-icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:t,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}},81769:function(e,t,n){"use strict";n.d(t,{Z:function(){return LiveBadge}});var l=n(48282),r=n(76924),a=n(98486);function DotIcon(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("circle",{cx:"5",cy:"5.5",r:"5",fill:"black"})})}var s=n(30119),i=n(71229),c=n(22089);function LiveBadge(e){let{id:t,endDatetime:n,size:o,href:d,"data-cy":u}=e,{formattedTime:m,isLessThanTenMinutes:h}=(0,i.M)(n),{t:x}=(0,r.Z)(),{openModal:p}=(0,c.a)(),g=x("auctions:badges.live",{time:m}),b=x("auctions:badges.extendedBidding");return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"font-bold",children:(0,l.jsx)(a.Z,{"data-cy":u,id:t,theme:h?a.a.Red:a.a.Green,label:h?b:g,size:o,iconLeft:DotIcon,href:d,iconRight:h&&(0,l.jsx)("button",{onClick:e=>{e.stopPropagation(),p(c.w.ExtendedBidding)},children:(0,l.jsx)(s.Z,{className:"w-4 h-4 text-black opacity-50"})})})})})}},70276:function(e,t,n){"use strict";n.d(t,{Z:function(){return UpcomingBadge}});var l=n(48282),r=n(76924),a=n(98486),s=n(71229);function UpcomingBadge(e){let{id:t,startDatetime:n,href:i,"data-cy":c,size:o}=e,{formattedTime:d}=(0,s.M)(n),u=d.split(" ");4===u.length&&u.pop();let{t:m}=(0,r.Z)(),h=m("auctions:badges.startingIn",{time:u.join(" ")});return(0,l.jsx)("div",{className:"font-medium",children:(0,l.jsx)(a.Z,{size:o,"data-cy":c,id:t,href:i,theme:a.a.GrayDark,label:h})})}},24749:function(e,t,n){"use strict";var l=n(48282),r=n(45014),a=n.n(r),s=n(29072);t.Z=e=>{let{auctionName:t,auctionUuid:n}=e;return(0,l.jsx)(s.ZP,{i18nKey:"auctions:notifications.auctionEnded",values:{auctionName:t},components:{div:(0,l.jsx)("div",{className:"flex flex-col"}),span:(0,l.jsx)("span",{className:"text-left"}),span2:(0,l.jsx)("span",{className:"text-left font-light line-clamp-1"}),link:(0,l.jsx)(a(),{className:"text-right text-xs text-[#A7A29C] uppercase",href:"/auction/".concat(n)})}})}},27507:function(e,t,n){"use strict";var l=n(48282),r=n(45014),a=n.n(r),s=n(29072);t.Z=e=>{let{auctionName:t,auctionUuid:n}=e;return(0,l.jsx)(s.ZP,{i18nKey:"auctions:notifications.auctionStarted",values:{auctionName:t},components:{div:(0,l.jsx)("div",{className:"flex flex-col"}),span:(0,l.jsx)("span",{className:"text-left"}),span2:(0,l.jsx)("span",{className:"text-left font-light line-clamp-1"}),link:(0,l.jsx)(a(),{className:"text-right text-xs text-[#A7A29C] uppercase",href:"/auction/".concat(n)})}})}},52365:function(e,t,n){"use strict";n.d(t,{Z:function(){return auction_useAuctionEvents}});var l=n(18529),r=n(96882),a=n(64859),s=n(21001);function _templateObject(){let e=(0,r._)(["\n  subscription SubscribeToAuctions($auctions: [ID!]!) {\n    subscribeToAuctions(auctions: $auctions) {\n      message\n      type\n      auctionUuid\n      publishedName\n      id\n    }\n  }\n"]);return _templateObject=function(){return e},e}let i=(0,a.Ps)(_templateObject()),useAuctionsSubscription=e=>(0,s.m)(i,e);var c=n(50324),auction_useAuctionEvents=function(e){let{auctionsToSubscribe:t,refetch:n,onAuctionStarted:r,onAuctionEnded:a,onAuctionKilled:s,onLotsEnded:i}=e,{data:{subscribeToAuctions:o}={},loading:d}=useAuctionsSubscription({variables:{auctions:t}}),u=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(o){let{id:e,type:t,publishedName:l,auctionUuid:d}=o;if(e!==u.current){switch(t){case c.nx.Started:null==r||r(l,d),null==n||n();break;case c.nx.Ended:null==a||a(l,d),null==n||n();break;case c.nx.Killed:null==s||s(),null==n||n();break;case c.nx.NotifyBidUpdate:null==n||n();break;case c.nx.LotsEnded:null==n||n(),null==i||i()}u.current=e}}},[o,d])}},9982:function(e,t,n){"use strict";n.d(t,{w:function(){return useGetEndAuctions}});var l=n(96882),r=n(64859),a=n(43890);function _templateObject(){let e=(0,l._)(["\n  query GetEndAuctions($limit: Int, $offset: Int) {\n    endAuctions(limit: $limit, offset: $offset) {\n      count\n      next\n      previous\n      results {\n        uuid\n        state\n        internalName\n        publishedName\n        startDatetime\n        endDatetime\n        description\n        coverImageUrl\n        lotCount: lots\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}let s=(0,r.Ps)(_templateObject()),useGetEndAuctions=e=>(0,a.aM)(s,e)},28603:function(e,t,n){"use strict";n.d(t,{j:function(){return useGetLiveUpcomingAuctions}});var l=n(96882),r=n(64859),a=n(43890);function _templateObject(){let e=(0,l._)(["\n  query GetLiveAndUpcomingAuctions(\n    $limit: Int\n    $offset: Int\n    $published: Boolean\n  ) {\n    liveAndUpcomingAuctions(\n      limit: $limit\n      offset: $offset\n      published: $published\n    ) {\n      count\n      next\n      previous\n      results {\n        uuid\n        state\n        internalName\n        publishedName\n        startDatetime\n        endDatetime\n        description\n        coverImageUrl\n        published\n        lotCount: lots\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}let s=(0,r.Ps)(_templateObject()),useGetLiveUpcomingAuctions=e=>(0,a.aM)(s,e)},41903:function(e,t,n){"use strict";n.d(t,{d:function(){return useIsMobile}});var l=n(18529);function useIsMobile(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1024,[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let checkScreenSize=()=>{window.innerWidth<e?n(!0):n(!1)};return checkScreenSize(),window.addEventListener("resize",checkScreenSize),()=>window.removeEventListener("resize",checkScreenSize)},[e]),t}},81945:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return ef},default:function(){return Home}});var l=n(48282),r=n(18529),a=n(30861),s=n(76924),i=n(37694),c=n(24749),o=n(27507),d=n(98714),u=n(52365),m=n(9982),h=n(96882),x=n(64859),p=n(43890);function _templateObject(){let e=(0,h._)(["\n  query GetHeroAuction {\n    heroAuctionV2 {\n      uuid\n      publishedName\n      startDatetime\n      endDatetime\n      description\n      coverImageUrl\n      published\n      state\n      lotCount\n      lots {\n        uuid\n        number\n        bidCount\n        numberOfBidders\n        title\n        description\n        reservePriceMet\n        photos {\n          photo1\n        }\n        currentBid {\n          amount\n          userId\n          currency\n          createdAt\n        }\n        quantity\n        size\n        state\n        category\n        condition\n        lowEstimate\n        highEstimate\n        reservePrice\n        watched\n        userBidStatus\n        endDatetime\n        isExtended\n        isConsignor\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}let g=(0,x.Ps)(_templateObject()),useGetHeroAuction=e=>(0,p.aM)(g,e);var b=n(28603),f=n(78872),v=n(45014),j=n.n(v),w=n(75230),N=n(1853),y=n(43590),k=n(80699),S=n(43189),E=n(41663),home_AuctionGrid=e=>{let{title:t,auctions:n=[],isEnded:r=!1,loading:a}=e,{t:i}=(0,s.Z)("main"),c=(0,k.C)(E.L,e=>e.user);return a?(0,l.jsx)("div",{className:"xl:container xl:mx-auto px-4",children:(0,l.jsx)(N.Z,{})}):n?(0,l.jsxs)("div",{className:"xl:container xl:mx-auto px-4",children:[(0,l.jsx)("h2",{className:"text-[1.5rem] uppercase font-black mb-8 -tracking-[0.48px]",children:t}),(0,l.jsx)("div",{className:"grid grid-cols-12 gap-3 mb-5",children:null==n?void 0:n.map(e=>(0,l.jsx)("div",{className:"col-span-4 xl:col-span-3",children:(0,l.jsx)(S.Z,{cardId:e.uuid,auction:e})},e.uuid))}),(0,l.jsx)(j(),{href:"/auctions/ended",onClick:()=>{r?(0,y.Nf)({action:"user_click_view_all_ended_home",category:"user_engagement",label:"User clicked view all ended auctions button from home screen",email:null==c?void 0:c.email}):(0,y.Nf)({action:"user_click_view_all_live_upcoming_home",category:"user_engagement",label:"User clicked view all live & upcoming auctions button from home screen",email:null==c?void 0:c.email})},className:"uppercase text-black font-bold hover:underline",children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2 font-bold -tracking-[0.16px]",children:i(r?"allEnded":"viewAll")}),(0,l.jsx)(w.Z,{className:"h-[0.875rem] w-[0.875rem]"})]})})]}):null},_=n(74243),M=n(43097),Z=n(66800),O=n(28486),home_AuctionSlider=e=>{let{title:t,auctions:n=[],isEnded:a=!1,loading:i}=e,{t:c}=(0,s.Z)("main"),o=(0,k.C)(E.L,e=>e.user),d=(0,r.useRef)(null),[u,m]=(0,r.useState)(!1),scrollCarousel=e=>{d.current&&(d.current.scrollLeft+=e)},onIsOverflow=e=>{m(!!e&&e.scrollWidth>e.clientWidth)};return((0,r.useEffect)(()=>{let e=null==d?void 0:d.current;if(!e)return;let t=new ResizeObserver(()=>{onIsOverflow(e)});return t.observe(e),()=>{t.disconnect()}},[]),i)?(0,l.jsx)("div",{className:"xl:container xl:mx-auto px-4",children:(0,l.jsx)(N.Z,{})}):n?(0,l.jsxs)("div",{className:"xl:container xl:mx-auto mx-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-7",children:[(0,l.jsx)("h3",{className:"text-[1.5rem] uppercase font-black -tracking-[0.48px]",children:t}),u&&(0,l.jsxs)("div",{className:"hidden sm:flex",children:[(0,l.jsx)("button",{className:"h-8 w-8 p-2 border border-black rounded-full mr-1",onClick:()=>scrollCarousel(-300),children:(0,l.jsx)(M.Z,{})}),(0,l.jsx)("button",{className:"h-8 w-8 p-2 border border-black rounded-full",onClick:()=>scrollCarousel(300),children:(0,l.jsx)(Z.Z,{})})]})]}),(0,l.jsx)("div",{ref:d,className:"carousel carousel-center w-full overflow-x-auto mb-5",children:null==n?void 0:n.map(e=>(0,l.jsx)("div",{className:"carousel-item mr-3 w-[21.5rem] lg:w-[25.875rem]",children:(0,l.jsx)(S.Z,{cardId:e.uuid,auction:e})},e.uuid))}),(0,l.jsxs)(j(),{href:a?"/auctions/ended":"/auctions/live-upcoming",className:"",onClick:()=>{a?(0,y.Nf)({action:"user_click_view_all_ended_home",category:"user_engagement",label:"User clicked view all ended auctions button from home screen",email:null==o?void 0:o.email}):(0,y.Nf)({action:"user_click_view_all_live_upcoming_home",category:"user_engagement",label:"User clicked view all live & upcoming auctions button from home screen",email:null==o?void 0:o.email})},children:[(0,l.jsxs)("div",{className:"hidden md:flex items-center uppercase text-black font-bold hover:underline",children:[(0,l.jsx)("p",{className:"mr-2 font-bold -tracking-[0.16px]",children:c(a?"allEnded":"viewAll")}),(0,l.jsx)(w.Z,{className:"h-[0.875rem] w-[0.875rem]"})]}),(0,l.jsx)("div",{className:"md:hidden",children:(0,l.jsx)(_.ZP,{theme:_.bn.Dark,label:c(a?"allEnded":"viewAll"),size:O.$u.Large,fullWidth:!0,iconPosition:"right",icon:()=>(0,l.jsx)(w.Z,{className:"h-4 w-4 ml-2"})})})]})]}):null};let I={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},C={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},L="mousemove",A="mouseup";function rotateXYByAngle(e,t){if(0===t)return e;let n=Math.PI/180*t,l=e[0]*Math.cos(n)+e[1]*Math.sin(n),r=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[l,r]}var T=n(99744),D=n(41903),U=n(32284),B=n.n(U),V=n(86492),home_AuctionThumbnail=e=>{let{auction:t,isActive:n,onClick:a}=e,{coverImageUrl:s,publishedName:i}=t,c=s&&(0,V.jv)(s)?s:(0,V.Jn)({src:s,width:420,height:190}),[o,d]=(0,r.useState)(c);return(0,r.useEffect)(()=>{o&&s?d(c):d("/auctionDefault.jpg")},[s]),(0,l.jsxs)("div",{className:"flex items-center justify-center pb-3 max-w-[19.3rem] ".concat(n?"opacity-100 border-b-4 border-black":"opacity-50"),style:{cursor:"pointer",transition:"opacity 0.3s ease-in-out"},onClick:a,children:[(0,l.jsx)(B(),{src:o,onError:()=>{d("/auctionDefault.jpg")},quality:100,width:800,height:800,className:"w-[6.25rem] h-[3.5rem] object-cover",alt:"cover"}),(0,l.jsx)("p",{className:"text-left font-black text-base ml-2 line-clamp-2",children:i})]})},G=n(75223),H=n(81704),P=n(98486),z=n(81769),$=n(70276),F=n(85642),R=n.n(F),q=n(90227),X=n(46614),K=n(48175),W=n(19562),J=n(46046),Y=n(47084),Q=n(55545),ee=n(95292),et=n(55218),en=n(42422),el=n(13184);let er={shouldTriggerRefetchHero:!1},ea=(0,el.Ue)()(e=>({...er,setTriggerRefetchHero:t=>e({shouldTriggerRefetchHero:t}),reset:()=>{e(er)}}));var es=n(61817),ei=n(22089),ec=n(72812),eo=n(94747);function LotCardSlider(e){let{lot:t,cardId:n,auctionUuid:i,isLive:c,isEnded:o,renderButtons:u}=e,{t:m}=(0,s.Z)("main"),{isAuthenticated:h}=(0,d.aC)(),x=(0,ee.Z)(["create_bid"]),p=(0,q.useRouter)(),{openModal:g}=(0,ei.a)(),{setLotToBid:b}=(0,es.f)(),{checkUserActivity:f,user:v}=E.L.getState(),{setActiveTab:w}=(0,ec.P)(),{setAuctionToExpand:N}=(0,en.j)(),{setTriggerRefetchHero:k}=ea(),[S,_]=(0,r.useState)(""),{uuid:M,title:Z,number:O,photos:I,category:C,reservePrice:L,bidCount:A,numberOfBidders:T,reservePriceMet:D,watched:U,userBidStatus:G,currentBid:H,isConsignor:z}=t,$=null==H?void 0:H.amount,F=R()(G,eo.t.Outbid),el=R()(G,eo.t.Winning),er=R()(G,eo.t.Lost),ed=R()(G,eo.t.Won),eu=(0,r.useMemo)(()=>(0,V.Jn)({src:null==I?void 0:I.photo1,width:220,height:290}),[null==I?void 0:I.photo1]),[em,eh]=(0,r.useState)(eu),[ex,ep]=(0,r.useState)(!1),[eg,eb]=(0,r.useState)(U),[ef,{loading:ev}]=(0,Q.q)({onCompleted:e=>{e&&(eb(!0),N(i),k(!0),a.ZP.success((0,l.jsx)(J.Z,{auctionUuid:i,lotUuid:S})),null==f||f(),(0,y.Nf)({action:"add_to_watchlist",category:"ecommerce",label:"Item added to watchlist",email:null==v?void 0:v.email,data:{auctionId:i,lotId:M}}))},onError:e=>{let t=(0,V.e$)(e,m);a.ZP.error(t)}}),[ej,{loading:ew}]=(0,Y.N)({variables:{input:{lotUuid:M,auctionUuid:i,lotNumber:O,userId:null==v?void 0:v.id}},onCompleted:e=>{e&&(eb(!1),k(!0),a.ZP.success((0,l.jsx)(W.Z,{})),null==f||f())},onError:e=>{let t=(0,V.e$)(e,m);a.ZP.error(t)}});(0,r.useEffect)(()=>{ep(!1),eh(eu),eb(U)},[t]);let eN=(0,r.useRef)({uuid:"",action:""}),executeFavoriteToggle=()=>{let{uuid:e,action:t}=eN.current;_(e),"watch"===t?ef({variables:{input:{auctionUuid:i,lotUuid:e,lotNumber:O,userId:null==v?void 0:v.id}}}):"unwatch"===t&&ej({variables:{input:{auctionUuid:i,lotUuid:e,lotNumber:O,userId:null==v?void 0:v.id}}}),eN.current={uuid:"",action:""}},prepareFavoriteToggle=e=>{let{uuid:t,watched:n,state:l}=e,r=n?"unwatch":l===eo.X.Ended?"watchEnded":"watch";eN.current={uuid:t,action:r},h?executeFavoriteToggle():g(ei.w.Login)};return(0,r.useEffect)(()=>{h&&eN.current.uuid&&executeFavoriteToggle()},[h]),(0,l.jsxs)("div",{className:"flex max-h-24 md:max-h-full",children:[(0,l.jsx)("div",{className:"mr-4 bg-white hidden md:block",style:{width:"1px"}}),(0,l.jsx)("div",{"data-cy":n,className:"mr-5",children:(0,l.jsxs)("div",{className:"relative w-20 md:w-[7.75rem] h-full",children:[(0,l.jsx)(B(),{src:ex?"/lotDefault.png":em,onError:()=>{ep(!0)},fill:!0,quality:100,className:"object-cover object-center",alt:""}),h&&(0,l.jsxs)(l.Fragment,{children:[(F||er)&&(0,l.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-red-800"}),(el||ed)&&(0,l.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-green-800"})]}),!G&&!o&&(0,l.jsx)("button",{className:"absolute top-2 left-2",disabled:ev||ew,onClick:()=>prepareFavoriteToggle(t),children:eg?(0,l.jsx)(X.Z,{className:"w-4 h-4"}):(0,l.jsx)(K.Z,{className:"w-4 h-4"})})]})}),(0,l.jsxs)("div",{children:[(0,l.jsxs)(j(),{href:"/auction/".concat(i,"/lot/").concat(M),children:[(0,l.jsx)("p",{className:"text-[0.625rem] md:text-[0.6875rem] text-white uppercase",children:m("hero.lotSlider.lot",{number:O})}),(0,l.jsx)("h3",{className:"line-clamp-1 text-[0.875rem] md:text-[1rem] font-atlasGrotesk text-white font-medium",children:Z}),(0,l.jsx)("p",{className:"text-[0.625rem] md:text-[0.6875rem] text-white uppercase mb-3 md:mb-4",children:C})]}),(0,l.jsxs)("div",{className:"flex items-center mb-5",children:[(0,l.jsx)("button",{onClick:c?()=>{h&&x?(b({...t,auctionUuid:i}),g(ei.w.BidLot)):h&&!x?(b({...t,auctionUuid:i}),w(et.ProfileTab.Banking),p.push("/profile")):g(ei.w.Login)}:()=>{p.push("/auction/".concat(i,"/lot/").concat(M))},disabled:z,className:"py-2 px-4 border border-white rounded-full text-white font-bold uppercase text-[0.75rem] mr-3 ".concat(z?"disabled:opacity-50 cursor-auto":""),children:c?m("hero.lotSlider.bidButton"):m("hero.lotSlider.viewLot")}),(0,l.jsx)("p",{className:"text-white text-[0.6875rem]",children:m("hero.lotSlider.bidsAndBidders",{bids:null!=A?A:0,bidders:null!=T?T:0})})]}),o&&(D||(null!=$?$:0)>0&&0===L)&&(0,l.jsx)("div",{className:"mt-2 hidden lg:block",children:(0,l.jsx)(P.Z,{id:"sold-badge",theme:P.a.Green,label:m("hero.lotSlider.sold")})}),(0,l.jsx)("div",{className:"hidden md:flex",children:u()})]})]})}function LotSlider(e){let{lots:t,auctionUuid:n,isLive:a=!1,isEnded:s=!1,isPaused:i=!1}=e,[c,o]=(0,r.useState)(0),d=(0,r.useRef)(null),[u,m]=(0,r.useState)(!0),[h,x]=(0,r.useState)(!1),prevSlide=()=>{m(!1),setTimeout(()=>{o(e=>(e-1+(null==t?void 0:t.length))%(null==t?void 0:t.length))},200)},nextSlide=()=>{m(!1),setTimeout(()=>{o(e=>(e+1)%(null==t?void 0:t.length))},200)};(0,r.useEffect)(()=>(i||(d.current=setInterval(()=>{h||nextSlide()},2e3)),()=>{d.current&&clearInterval(d.current)}),[h,i]),(0,r.useEffect)(()=>{m(!0)},[c]);let p=u?{opacity:1,transition:"opacity 600ms ease-in"}:{opacity:0,transition:"opacity 600ms ease-out"},ButtonsSlider=()=>(0,l.jsxs)("div",{style:p,className:"flex items-center",children:[(0,l.jsxs)("div",{className:"mr-12 flex items-center h-6",children:[" ",t.map((e,t)=>(0,l.jsx)("button",{className:"w-2 h-2 border border-white mr-[0.375rem] rounded-full ".concat(c===t?"bg-white":""),onClick:()=>o(t)},t))]}),h&&(0,l.jsxs)("div",{className:"hidden md:block",children:[(0,l.jsx)("button",{onClick:prevSlide,"aria-label":"Previous slide",children:(0,l.jsx)(M.Z,{className:"h-4 w-4 text-white mr-6"})}),(0,l.jsx)("button",{onClick:nextSlide,"aria-label":"Next slide",children:(0,l.jsx)(Z.Z,{className:"h-4 w-4 text-white"})})]})]});return(0,l.jsx)("div",{className:"w-full max-w-[27rem]",onMouseEnter:()=>{x(!0),d.current&&clearInterval(d.current)},onMouseLeave:()=>{x(!1)},children:(0,l.jsxs)("div",{style:p,children:[t.length>0&&(0,l.jsx)(LotCardSlider,{lot:t[c],cardId:"card-".concat(c),auctionUuid:n,isLive:a,isEnded:s,renderButtons:ButtonsSlider}),(0,l.jsx)("div",{className:"block md:hidden mt-2",children:(0,l.jsx)(ButtonsSlider,{})})]})})}function MainHeroAuction(e){let{auction:t,carouselMode:n=!1,isActive:a=!0}=e,{t:i}=(0,s.Z)("main"),c=(0,k.C)(E.L,e=>e.user),o=(null==t?void 0:t.coverImageUrl)&&(0,V.jv)(null==t?void 0:t.coverImageUrl)?null==t?void 0:t.coverImageUrl:(0,V.Jn)({src:null==t?void 0:t.coverImageUrl,width:1920,height:1200}),[d,u]=(0,r.useState)(o);(0,r.useEffect)(()=>{d&&(null==t?void 0:t.coverImageUrl)?u(o):u("/auctionDefault.jpg")},[null==t?void 0:t.coverImageUrl]);let{uuid:m,publishedName:h,startDatetime:x,endDatetime:p,lots:g,lotCount:b,state:f}=t,v=(0,G.Z)(new Date(x),"MMMM dd, hh a"),N=f===eo.X.Live,S=f===eo.X.Ended,_=f===eo.X.Upcoming,M=(0,G.Z)(new Date(p),"MMMM dd, hh a"),Z="/auction/".concat(m);return(0,l.jsxs)("div",{className:"relative w-full h-[40.5rem] lg:h-[45rem] pb-[3.75rem]",children:[(0,l.jsx)("div",{className:"absolute top-0 left-0 right-0 h-1/2 md:h-full",children:(0,l.jsx)(j(),{href:Z,children:(0,l.jsx)(B(),{src:d,quality:100,onError:()=>{u("/auctionDefault.jpg")},fill:!0,className:"object-cover object-center",alt:""})})}),a&&(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-white/0 to-black z-1 to-50% md:to-100%"}),(0,l.jsxs)("div",{className:(0,T.Z)("relative xl:container xl:mx-auto grid grid-cols-12 gap-6 h-full",{"px-8":n,"px-4 xl:px-0":!n}),children:[(0,l.jsxs)("div",{className:"col-span-12 lg:col-span-6 flex items-start flex-col justify-end",children:[(0,l.jsxs)("div",{className:"mb-4",children:[N&&(0,l.jsx)(z.Z,{size:O.$u.Large,endDatetime:new Date(p),href:Z,id:"live-badge"}),_&&(0,l.jsx)($.Z,{size:O.$u.Large,startDatetime:new Date(x),href:Z,id:"upcoming-badge"}),!_&&!N&&(0,l.jsx)(P.Z,{size:O.$u.Large,theme:P.a.GoldFull,href:Z,label:i("auctions:badges.recentlyEnded"),id:"ended-badge"})]}),(0,l.jsx)(j(),{href:Z,children:(0,l.jsx)("h3",{className:"mb-4 lg:mb-5 font-black text-[2.125rem] lg:text-[4.125rem] font-atlasGrotesk -tracking-[1.32px] leading-none text-white drop-shadow-[0_0_60px_rgba(16,24,40,0.14)] w-full max-w-[39rem]",children:h})}),(0,l.jsxs)("ul",{className:"list-none text-white mb-5 lg:mb-6 w-full",children:[(0,l.jsx)(j(),{href:Z,children:(0,l.jsx)("li",{className:"py-2 lg:py-4 border border-white border-r-0 border-l-0",children:(0,l.jsx)("p",{className:"text-[0.875rem] lg:text-[1.125rem] font-atlasGrotesk",children:(0,l.jsx)(H.Z,{i18nKey:"main:hero.auctionDates",values:{startDatetime:v,endDatetime:M},components:{italic:(0,l.jsx)("span",{className:"font-austinNewsDeck italic"})}})})})}),(0,l.jsx)(j(),{href:Z,children:(0,l.jsx)("li",{className:"py-2 lg:py-4 border border-white border-t-0 border-r-0 border-l-0",children:(0,l.jsx)("p",{className:"text-[0.875rem] lg:text-[1.125rem] font-[400] font-atlasGrotesk",children:i("hero.lots",{lots:b})})})})]}),(0,l.jsx)("div",{className:"flex lg:hidden mb-6",children:g&&g.length>0&&(0,l.jsx)(LotSlider,{lots:g,auctionUuid:m,isLive:N,isEnded:S})}),(0,l.jsxs)(j(),{href:Z,onClick:()=>{(0,y.Nf)({action:"user_click_browse_auction_main_hero",category:"user_engagement",label:"User clicked browse auction button from main hero",email:null==c?void 0:c.email})},className:"bg-white px-[1.125rem] py-[0.625rem] rounded-full flex items-center justify-center w-full sm:w-auto",children:[(0,l.jsx)("span",{className:"text-[0.875rem] font-bold uppercase mr-2",children:i("hero.button")}),(0,l.jsx)(w.Z,{className:"w-5 h-5"})]})]}),(0,l.jsx)("div",{className:"col-span-6 hidden lg:flex items-end justify-end",children:g&&g.length>0&&(0,l.jsx)(LotSlider,{lots:g,auctionUuid:m,isLive:N,isEnded:S,isPaused:!a})})]})]})}var home_HeroAuctionCarousel=e=>{var t;let{auctions:n,loading:a}=e,[s,i]=(0,r.useState)(1),c=(0,D.d)(),o=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)(null),m=(0,r.useRef)(!1),h=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0,x=h>1,p=(0,r.useMemo)(()=>n&&0!==n.length?n&&n.length>1?[n[n.length-1],...n,n[0]]:n:[],[n]),g=(0,r.useCallback)(()=>{i(e=>e+1)},[]),b=(0,r.useCallback)(()=>{o.current&&clearInterval(o.current),o.current=setInterval(()=>{i(e=>e+1)},1e4)},[]),f=(0,r.useCallback)(()=>{o.current&&clearInterval(o.current)},[]);(0,r.useEffect)(()=>{let handleVisibilityChange=()=>{"visible"===document.visibilityState?(i(e=>e>=p.length-1?1:e<=0?p.length-2:e),b()):f()};return document.addEventListener("visibilitychange",handleVisibilityChange),()=>document.removeEventListener("visibilitychange",handleVisibilityChange)},[b,f,p.length]),(0,r.useEffect)(()=>(m.current?f():b(),()=>f()),[s,m.current,b,f]);let handleInteractionStart=()=>{m.current=!0,f()},handleInteractionEnd=()=>{m.current=!1,b()};(0,r.useEffect)(()=>{if(!u.current||!x)return;let handleTransitionEnd=()=>{s===p.length-1?(u.current.style.transition="none",i(1)):0===s?(u.current.style.transition="none",i(p.length-2)):u.current.style.transition="transform 0.5s ease-in-out"};return u.current.addEventListener("transitionend",handleTransitionEnd),()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.removeEventListener("transitionend",handleTransitionEnd)}},[s,p.length,x]);let v=function(e){var t,n,l;let a;let{trackMouse:s}=e,i=r.useRef(Object.assign({},C)),c=r.useRef(Object.assign({},I)),o=r.useRef(Object.assign({},c.current));for(a in o.current=Object.assign({},c.current),c.current=Object.assign(Object.assign({},I),e),I)void 0===c.current[a]&&(c.current[a]=I[a]);let[d,u]=r.useMemo(()=>(function(e,t){let onStart=t=>{let n="touches"in t;n&&t.touches.length>1||e((e,l)=>{l.trackMouse&&!n&&(document.addEventListener(L,onMove),document.addEventListener(A,onUp));let{clientX:r,clientY:a}=n?t.touches[0]:t,s=rotateXYByAngle([r,a],l.rotationAngle);return l.onTouchStartOrOnMouseDown&&l.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),C),{initial:s.slice(),xy:s,start:t.timeStamp||0})})},onMove=t=>{e((e,n)=>{let l="touches"in t;if(l&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:r,clientY:a}=l?t.touches[0]:t,[s,i]=rotateXYByAngle([r,a],n.rotationAngle),c=s-e.xy[0],o=i-e.xy[1],d=Math.abs(c),u=Math.abs(o),m=(t.timeStamp||0)-e.start,h=Math.sqrt(d*d+u*u)/(m||1),x=[c/(m||1),o/(m||1)],p=d>u?c>0?"Right":"Left":o>0?"Down":"Up",g="number"==typeof n.delta?n.delta:n.delta[p.toLowerCase()]||I.delta;if(d<g&&u<g&&!e.swiping)return e;let b={absX:d,absY:u,deltaX:c,deltaY:o,dir:p,event:t,first:e.first,initial:e.initial,velocity:h,vxvy:x};b.first&&n.onSwipeStart&&n.onSwipeStart(b),n.onSwiping&&n.onSwiping(b);let f=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${p}`])&&(f=!0),f&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:b,swiping:!0})})},onEnd=t=>{e((e,n)=>{let l;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){l=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(l);let r=n[`onSwiped${l.dir}`];r&&r(l)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),C),{eventData:l})})},cleanUpMouse=()=>{document.removeEventListener(L,onMove),document.removeEventListener(A,onUp)},onUp=e=>{cleanUpMouse(),onEnd(e)},attachTouch=(e,t)=>{let cleanup=()=>{};if(e&&e.addEventListener){let n=Object.assign(Object.assign({},I.touchEventOptions),t.touchEventOptions),l=[["touchstart",onStart,n],["touchmove",onMove,Object.assign(Object.assign({},n),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",onEnd,n]];l.forEach(([t,n,l])=>e.addEventListener(t,n,l)),cleanup=()=>l.forEach(([t,n])=>e.removeEventListener(t,n))}return cleanup},n={ref:t=>{null!==t&&e((e,n)=>{if(e.el===t)return e;let l={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),l.cleanUpTouch=void 0),n.trackTouch&&t&&(l.cleanUpTouch=attachTouch(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),l)})}};return t.trackMouse&&(n.onMouseDown=onStart),[n,attachTouch]})(e=>i.current=e(i.current,c.current),{trackMouse:s}),[s]);return i.current=(t=i.current,n=c.current,l=o.current,n.trackTouch&&t.el?t.cleanUpTouch?n.preventScrollOnSwipe!==l.preventScrollOnSwipe||n.touchEventOptions.passive!==l.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:u(t.el,n)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:u(t.el,n)}):(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0}))),d}({onSwipedLeft:g,trackMouse:!0,preventScrollOnSwipe:!1,onTouchStartOrOnMouseDown:handleInteractionStart,onTouchEndOrOnMouseUp:handleInteractionEnd});return((0,r.useEffect)(()=>{if(d.current&&x){let e=d.current,t=e.children[s===p.length-1?1:0===s?h:s-1];if(t){let n=t.offsetLeft-e.offsetWidth/2+t.offsetWidth/2;e.scrollTo({left:n,behavior:"smooth"})}}},[s,h,x,p.length]),!n&&a)?(0,l.jsx)("div",{className:"relative h-[40.5rem] lg:h-[45rem] pb-[3.75rem]",children:(0,l.jsx)(N.Z,{})}):n&&0!==n.length?1===n.length?(0,l.jsx)(MainHeroAuction,{auction:n[0],isActive:!0}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"relative w-full overflow-hidden bg-black ",...v,children:(0,l.jsxs)("div",{className:(0,T.Z)("relative",{"lg:container lg:mx-auto":x,"mx-4":!c}),children:[(0,l.jsx)("div",{ref:u,className:(0,T.Z)("flex transition-transform duration-500 ease-in-out"),style:{transform:"translateX(-".concat(100*s,"%)")},onMouseEnter:handleInteractionStart,onMouseLeave:handleInteractionEnd,children:p.map((e,t)=>(0,l.jsxs)("div",{className:"carousel-item flex-shrink-0 relative",style:{width:"".concat(100,"%")},children:[(0,l.jsx)("div",{className:"hidden lg:block relative",children:(0,l.jsxs)("div",{className:"absolute inset-0 pointer-events-none",children:[(0,l.jsx)("div",{className:"absolute top-0 bottom-0 left-1/2 w-[10px] bg-black transform -translate-x-1/2"}),(0,l.jsx)("div",{className:"absolute top-0 bottom-0 right-1/2 w-[10px] bg-black transform translate-x-1/2"})]})}),t!==s&&(0,l.jsx)("div",{className:(0,T.Z)("absolute inset-0 z-10 transition-opacity duration-500",{"bg-gradient-to-r from-black via-black/70 to-black/30":t<s,"bg-gradient-to-l from-black via-black/70 to-black/30":t>s,"bg-black":t!==s-1&&t!==s+1,"opacity-100":t!==s,"opacity-0":t===s})}),(0,l.jsx)(MainHeroAuction,{auction:e,carouselMode:!0,isActive:t===s})]},"slide".concat(t)))}),x&&s<p.length-1&&!c&&(0,l.jsx)("button",{onClick:g,"aria-label":"Next Slide",className:"absolute -right-6 top-[43%] transform -translate-y-1/2 bg-white p-3 rounded-full z-10",children:(0,l.jsx)(Z.Z,{className:"w-6 h-6"})})]})}),x&&(0,l.jsx)("div",{className:"w-full overflow-hidden",children:(0,l.jsx)("div",{className:"mt-3 mx-4 lg:container lg:mx-auto flex carousel carousel-center overflow-x-auto space-x-4 pr-8 border-b-2 border-black",ref:d,children:n.map((e,t)=>(0,l.jsx)("div",{className:"carousel-item",children:(0,l.jsx)(home_AuctionThumbnail,{auction:e,isActive:t===(s-1)%h,onClick:()=>i(t+1)})},"thumbnail".concat(t)))})})]}):null},ed=n(91123),eu=n(93685),em=n(71912);let BuySellVaultItem=e=>{let{title:t,text:n,buy:r=!1,sell:a=!1,vault:i=!1,onClick:c,learnMoreHref:o}=e,{t:d}=(0,s.Z)("marketing");return(0,l.jsxs)(l.Fragment,{children:[r&&(0,l.jsx)(ed.p,{className:"w-12 mb-[2.25rem] lg:mb-[3.375rem] text-primary"}),a&&(0,l.jsx)(em.x,{className:"w-12 mb-[2.25rem] lg:mb-[3.375rem] fill-[#B48250]"}),i&&(0,l.jsx)(eu.l,{className:"mb-[2.25rem] lg:mb-[3.375rem] fill-[#B48250]"}),(0,l.jsx)("h4",{className:"text-white text-[3.75rem] lg:text-[5rem] xl:text-[6.25rem] font-black md:mb-6 leading-none font-atlasGrotesk uppercase",children:t}),(0,l.jsx)("p",{className:"grow text-white xl:text-[1.25rem] mb-6 lg:mb-[6.625rem]",children:n}),(0,l.jsxs)("div",{className:"flex space-x-8 mb-8",children:[(a||i)&&(0,l.jsx)("button",{onClick:c,className:"text-white border border-white rounded-full text-[.875rem] xl:text-[1rem] py-[.625rem] px-[1.125rem] xl:py-3 xl:px-6 mr-2 uppercase -tracking-[0.14px] md:-tracking-[0.16px]",children:d("buySellVault.getStarted")}),r&&(0,l.jsx)(j(),{href:"/auctions",className:"text-white border border-white rounded-full text-[.875rem] xl:text-[1rem] py-[.625rem] px-[1.125rem] xl:py-3 xl:px-6 mr-2 uppercase -tracking-[0.14px] md:-tracking-[0.16px]",children:d("buySellVault.getStarted")}),(0,l.jsxs)(j(),{href:o,className:"text-white flex justify-center items-center text-[.875rem] xl:text-[1rem] -tracking-[0.14px] md:-tracking-[0.16px]",children:[(0,l.jsx)("span",{className:"uppercase mr-2",children:d("buySellVault.learnMore")}),(0,l.jsx)(w.Z,{})]})]})]})};var eh=n(87510),ex=n(18696);let BuySellVault=()=>{let{t:e}=(0,s.Z)("marketing"),{openModal:t}=(0,ei.a)();return(0,l.jsxs)("div",{className:"pt-12 pb-4 lg:py-[3.75rem] bg-black",children:[(0,l.jsxs)("div",{className:"xl:container xl:mx-auto px-4",children:[(0,l.jsx)("div",{className:"w-full max-w-[20.5625rem] sm:max-w-[62.875rem]",children:(0,l.jsx)(H.Z,{i18nKey:"marketing:buySellVault.noMatter",components:{p:(0,l.jsx)("h3",{className:"text-white font-black text-[2.25rem] lg:text-[3.75rem] font-atlasGrotesk leading-none -tracking-[1.08px] lg:-tracking-[1.8px] mb-8 lg:mb-[8.75rem]"}),span:(0,l.jsx)("span",{className:"font-[300] font-austinNewsDeck italic -tracking-[1.08px] lg:-tracking-[1.95px]"})}})}),(0,l.jsxs)("div",{className:"grid grid-cols-12 gap-y-8 lg:gap-y-6 gap-x-6",children:[(0,l.jsx)("div",{className:"flex flex-col h-full col-span-12 lg:col-span-4 lg:pr-6 xl:pr-[3.75rem] border border-white border-l-0 border-t-0 border-b-1 lg:border-b-0 border-r-0 lg:border-r-[1px]",children:(0,l.jsx)(BuySellVaultItem,{buy:!0,title:e("buySellVault.buy"),text:e("buySellVault.findTheBottles"),learnMoreHref:"/services#buy-nav-item"})}),(0,l.jsx)("div",{className:"flex flex-col h-full col-span-12 lg:col-span-4 lg:pr-6 xl:pl-[2.25rem] xl:pr-[3.75rem] border border-white border-l-0 border-t-0 border-b-1 lg:border-b-0 border-r-0 lg:border-r-[1px]",children:(0,l.jsx)(BuySellVaultItem,{sell:!0,title:e("buySellVault.sell"),text:e("buySellVault.newHome"),onClick:()=>t(ei.w.SellForm),learnMoreHref:"/services#sell-nav-item"})}),(0,l.jsx)("div",{className:"flex flex-col h-full col-span-12 lg:col-span-4 xl:pl-[2.25rem]",children:(0,l.jsx)(BuySellVaultItem,{vault:!0,title:e("buySellVault.vault"),text:e("buySellVault.store"),onClick:()=>t(ei.w.VaultForm),learnMoreHref:"/services#vault-nav-item"})})]})]}),(0,l.jsx)(eh.F,{}),(0,l.jsx)(ex.j,{})]})};var ep=n(42042);let ModernPlatform=()=>{let{t:e}=(0,s.Z)("marketing");return(0,l.jsxs)("div",{className:"relative py-8 md:py-[3.75rem] h-[30.9375rem] md:h-[45.3125rem]",children:[(0,l.jsx)(B(),{quality:100,src:"/home-modern-platform.png",fill:!0,className:"object-cover object-center",alt:"banner"}),(0,l.jsxs)("div",{className:"relative xl:container xl:mx-auto px-4 h-full flex flex-col items-start justify-between",children:[(0,l.jsx)("div",{className:"w-full max-w-[20.5rem] md:max-w-[35rem]",children:(0,l.jsx)(H.Z,{i18nKey:"marketing:welcome.modernPlatform",components:{p:(0,l.jsx)("h3",{className:"text-black font-black text-[2.25rem] md:text-[3.75rem] font-atlasGrotesk leading-none -tracking-[1.08px] md:-tracking-[1.8px]"}),span:(0,l.jsx)("span",{className:"font-[300] font-austinNewsDeck italic -tracking-[1.08px] md:-tracking-[1.95px]"})}})}),(0,l.jsx)(j(),{href:"/our-company",className:"bg-white text-[.875rem] md:text-[1rem] py-[.625rem] px-[1.125rem] md:py-3 md:px-6 rounded-full font-bold uppercase text-black -tracking-[0.14px] md:-tracking-[0.16px]",children:e("modernPlatform.learnMore")})]})]})};var eg=n(19277),eb=n(96915),ef=!0;function Home(){var e,t;let{t:n}=(0,s.Z)("main"),{checkUserActivity:h}=E.L.getState(),{isAuthenticated:x}=(0,d.aC)(),{shouldTriggerRefetchHero:p,setTriggerRefetchHero:g}=ea(),{data:{heroAuctionV2:v}={},loading:j,refetch:w}=useGetHeroAuction(),{data:{liveAndUpcomingAuctions:N}={},loading:y,refetch:k}=(0,b.j)({variables:{offset:1,limit:7,published:!0},fetchPolicy:"no-cache"}),{data:{endAuctions:S}={},loading:_}=(0,m.w)({variables:{offset:1,limit:6},fetchPolicy:"no-cache"}),M=(null==N?void 0:N.results.map(e=>e.uuid))||[];return(0,r.useEffect)(()=>{p&&(w(),g(!1))},[p,k]),(0,r.useEffect)(()=>{w()},[x]),(0,u.Z)({auctionsToSubscribe:M,refetch:void k(),onAuctionStarted:(e,t)=>{(0,a.ZP)((0,l.jsx)(o.Z,{auctionName:e,auctionUuid:t}))},onAuctionEnded:(e,t)=>{null==h||h(),(0,a.ZP)((0,l.jsx)(c.Z,{auctionName:e,auctionUuid:t}))},onAuctionKilled:()=>void(null==h||h())}),(0,l.jsx)(i.Z,{children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(home_HeroAuctionCarousel,{auctions:v,loading:j}),(null!==(t=null==N?void 0:null===(e=N.results)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0&&(0,l.jsx)("div",{className:"mt-[3.75rem] mb-[5.25rem]",children:(0,l.jsx)(home_AuctionSlider,{auctions:null==N?void 0:N.results,title:n("liveAndUpcoming"),loading:y})}),(0,l.jsx)("div",{className:"border border-black border-r-0 border-l-0 border-b-0",children:(0,l.jsx)(eg.c,{})}),(0,l.jsx)(ep.y,{home:!0}),(0,l.jsx)("div",{className:"my-[3.75rem] hidden lg:block",children:(0,l.jsx)(home_AuctionGrid,{auctions:null==S?void 0:S.results,title:n("ended"),isEnded:!0,loading:_})}),(0,l.jsx)("div",{className:"my-[3.75rem] block lg:hidden",children:(0,l.jsx)(home_AuctionSlider,{auctions:null==S?void 0:S.results,title:n("ended"),isEnded:!0,loading:_})}),(0,l.jsx)(f.Z,{}),(0,l.jsx)(BuySellVault,{}),(0,l.jsx)(ModernPlatform,{}),(0,l.jsx)(eb.H,{})]})})}},43189:function(e,t,n){"use strict";n.d(t,{Z:function(){return AuctionCard}});var l=n(48282),r=n(18529),a=n(75223),s=n(76924),i=n(32284),c=n.n(i),o=n(45014),d=n.n(o),u=n(10891),m=n(49124),h=n(81769),x=n(70276),p=n(94747),g=n(28486),b=n(86492);function AuctionCard(e){let{auction:t,canEdit:n,canDelete:i,clickOnEdit:o,clickOnDelete:f,clickOnPublish:v,clickOnUnpublish:j}=e,{t:w}=(0,s.Z)("auctions"),{uuid:N,state:y,lotCount:k,startDatetime:S,endDatetime:E,coverImageUrl:_,publishedName:M,published:Z}=t,O=_&&(0,b.jv)(_)?_:(0,b.Jn)({src:_,width:628,height:396}),[I,C]=(0,r.useState)(O);(0,r.useEffect)(()=>{I&&_?C(O):C("/auctionDefault.jpg")},[_]);let L=y===p.X.Live,A=y===p.X.Upcoming,T=y===p.X.Ended,D=(0,a.Z)(new Date(E),A?"MMM dd, h:mm a":"MMM dd, yyyy 'at' h:mm a"),U=(0,a.Z)(new Date(S),A?"MMM dd, h:mm a":"MMM dd, yyyy 'at' h:mm a");return t?(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsxs)("div",{className:"relative mb-3 aspect-video",children:[(n&&A||i&&!Z)&&(0,l.jsxs)("details",{"data-cy":"menu-button",className:"dropdown dropdown-end absolute top-2 right-2 z-10",children:[(0,l.jsx)("summary",{"data-cy":"options-menu",className:"flex bg-[rgba(0,0,0,0.7)] rounded-full p-1 hover:scale-110 delay-75 ",children:(0,l.jsx)(m.Z,{className:"w-6 h-6 text-white "})}),(0,l.jsx)("ul",{tabIndex:0,className:"menu menu-compact dropdown-content shadow bg-black rounded-box w-32 p-2 mt-1","data-cy":"user-menu-compact",children:[{key:"edit",condition:n,action:o},{key:"publish",condition:n&&!Z,action:v},{key:"unpublish",condition:n&&Z,action:j},{key:"delete",condition:i&&!Z,action:f}].map(e=>{let{key:t,condition:n,action:r}=e;return n?(0,l.jsx)(u.Z,{onClick:r,children:w("adminOptions.".concat(t))},t):null})})]}),A&&(0,l.jsx)("div",{className:"absolute top-3 z-10 h-[1.625rem] px-3 rounded-full flex items-center",children:(0,l.jsx)(x.Z,{size:g.$u.Medium,startDatetime:new Date(S),id:"upcoming-badge"})}),L&&(0,l.jsx)("div",{className:"absolute top-3 z-10 h-[1.625rem] px-3 flex items-center rounded-full ",children:(0,l.jsx)(h.Z,{size:g.$u.Medium,endDatetime:new Date(E),id:"live-badge"})}),(0,l.jsx)(d(),{href:"/auction/".concat(N),children:(0,l.jsx)(c(),{src:I,quality:100,onError:()=>{C("/auctionDefault.jpg")},fill:!0,className:"object-cover object-center",alt:"banner"})})]}),(0,l.jsx)("h2",{className:"truncate font-atlasGrotesk font-bold lg:text-[1.125rem] border border-black border-r-0 border-l-0 border-t-0 pb-1 lg:pb-3",children:M}),(0,l.jsxs)("p",{className:"py-1 lg:py-3 border border-black border-r-0 border-l-0 border-t-0 text-[0.875rem] lg:text-[1rem]",children:[T&&(0,l.jsx)("span",{children:w("auctionCard.ended",{endDatetime:D})}),L&&(0,l.jsx)("span",{children:w("auctionCard.ending",{endDatetime:D})}),A&&(0,l.jsxs)("span",{children:[U," - ",D]})]}),(0,l.jsx)("p",{className:"py-1 lg:py-3 text-[0.875rem] lg:text-[1rem]",children:w("auctionCard.lots",{lotsAmount:k})}),n&&A&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("hr",{className:"border-t-1 border-black mt-2 mb-2"}),(0,l.jsx)("p",{"data-cy":"auction-status-paragraph",className:"text-left font-bold text-sm ".concat(Z?"text-gold":"text-gray-400"),children:Z?w("published"):w("unpublished")})]})]}):null}},42042:function(e,t,n){"use strict";n.d(t,{y:function(){return Highlight}});var l=n(48282),r=n(76924);let LaptopIcon=e=>{let{className:t}=e;return(0,l.jsxs)("svg",{width:"60",height:"49",viewBox:"0 0 60 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_4433_4650)",children:[(0,l.jsx)("path",{d:"M31.5225 8.27167H28.4702V33.2698H31.5225V8.27167Z",fill:"#B48250"}),(0,l.jsx)("path",{d:"M42.6709 14.8646H39.6187V33.2698H42.6709V14.8646Z",fill:"#B48250"}),(0,l.jsx)("path",{d:"M20.374 24.0671H17.3218V33.2697H20.374V24.0671Z",fill:"#B48250"}),(0,l.jsx)("path",{d:"M55.9176 40.5494V5.95956C55.9176 2.67837 53.2469 0 49.958 0H10.042C6.76078 0 4.08241 2.67074 4.08241 5.95956V40.4273L0 45.6467V48.3251H60V45.6391L55.9176 40.557V40.5494ZM6.83709 5.95956C6.83709 4.19687 8.27165 2.7623 10.0343 2.7623H49.958C51.7207 2.7623 53.1553 4.19687 53.1553 5.95956V38.6494H6.83709V5.95956ZM3.55589 45.5704L6.81419 41.404H53.0637L56.406 45.5704H3.55589Z",fill:"#B48250"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_4433_4650",children:(0,l.jsx)("rect",{width:"60",height:"48.3251",fill:"white"})})})]})},HighlightItem=e=>{let{value:t,text:n,dark:r=!1,className:a=""}=e;return(0,l.jsxs)("div",{className:"flex justify-between lg:block py-4 border border-[#B48250] border-r-0 border-t-0 border-l-0 ".concat(a),children:[(0,l.jsx)("span",{className:"font-black text-[2.25rem] order-last lg:text-[3.75rem] xl:text-[5rem] leading-none font-atlasGrotesk -tracking-[0.32px] ".concat(r?"text-white":""),children:t}),(0,l.jsx)("p",{className:"text-[#B48250] leading-none text-[1.5rem] xl:text-[2rem] font-austinNewsDeck italic -tracking-[1.6px]",children:n})]})},Highlight=e=>{let{home:t=!1}=e,{t:n}=(0,r.Z)("marketing");return(0,l.jsx)("div",{className:"border border-black border-r-0 border-l-0 ".concat(t?"bg-black":""),children:(0,l.jsxs)("div",{className:"xl:container xl:mx-auto px-4 grid grid-cols-12 gap-y-10 gap-x-6 lg:gap-6 ".concat(t?"pb-10 md:py-10":"py-10"),children:[(0,l.jsxs)("div",{className:"lg:pr-10 lg:py-10 col-span-12 md:col-span-7 xl:mr-8",children:[(0,l.jsx)(LaptopIcon,{className:"w-[3.75rem] mb-3"}),(0,l.jsxs)("div",{className:"flex items-end justify-between py-4 border border-[#B48250] border-r-0 border-t-0 border-l-0 lg:mb-6",children:[(0,l.jsx)("div",{className:"w-full max-w-[11rem] lg:max-w-[12.5rem] mr-2",children:(0,l.jsx)("span",{className:"text-[1.5rem] lg:text-[2.125rem] text-[#B48250] leading-none lg:w-[14.5rem] xl:w-[19rem] font-austinNewsDeck italic -tracking-[0.24px] md:-tracking-[0.34px]",children:n("highlight.totalNumber")})}),(0,l.jsx)("div",{className:"w-full max-w-[20rem] text-right",children:(0,l.jsx)("span",{className:"text-[#B48250] text-right font-black text-[2.25rem] lg:text-[5.3125rem] leading-none lg:w-[14.5rem] xl:w-[19rem] font-atlasGrotesk -tracking-[0.72px] md:-tracking-[1.7px]",children:n("highlight.totalNumberValue")})})]}),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-end lg:justify-between",children:[(0,l.jsx)(HighlightItem,{className:"lg:w-[13rem] xl:w-[18.5rem]",value:n("highlight.salesAllTimeValue"),text:n("highlight.salesAllTime"),dark:t}),(0,l.jsx)(HighlightItem,{className:"lg:w-[13rem] xl:w-[16.875rem]",value:n("highlight.auctionedLotsValue"),text:n("highlight.auctionedLots"),dark:t})]}),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-end lg:justify-between",children:[(0,l.jsx)(HighlightItem,{className:"lg:w-[13rem] xl:w-[18.5rem]",value:n("highlight.bottlesSecurelyVaultedValue"),text:n("highlight.bottlesSecurelyVaulted"),dark:t}),(0,l.jsx)(HighlightItem,{className:"lg:w-[13rem] xl:w-[16.875rem]",value:n("highlight.totalVaultedBottlesValue"),text:n("highlight.totalVaultedBottles"),dark:t})]})]}),(0,l.jsx)("div",{className:"md:col-span-5 order-first md:order-last md:flex md:justify-end md:items-center ".concat(t?"col-span-12 -mx-4 sm:mx-0":"hidden"),children:(0,l.jsx)("video",{src:"https://d2wag3k7jlyj3q.cloudfront.net/all/VIDEO%20BANNER/Unicorn_SquareVideo_Web_HD.mov",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full aspect-[1/1.0345]"})})]})})}},19277:function(e,t,n){"use strict";n.d(t,{c:function(){return StayInTheKnow}});var l=n(48282),r=n(68295),a=n(30861),s=n(96187),i=n(76924),c=n(29072),o=n(66800),d=n(40876),u=n(14740);let mailchimpSubscribeFormSchema=e=>u.z.object({email:u.z.string().trim().min(1,{message:e("mailchimpForm.errors.email.required")}).max(254,{message:e("mailchimpForm.errors.email.tooLong")}).email({message:e("mailchimpForm.errors.email.valid")})});var m=n(96882),h=n(64859),x=n(21260);function _templateObject(){let e=(0,m._)(["\n  mutation SubscribeMailchimpList($email: String!, $listId: String!) {\n    subscribeMailchimpList(email: $email, listId: $listId) {\n      success\n    }\n  }\n"]);return _templateObject=function(){return e},e}let p=(0,h.Ps)(_templateObject()),useSubscribeToMailchimp=e=>(0,x.D)(p,e);var g=n(58784),b=n(86492);let StayInTheKnow=()=>{let{t:e}=(0,i.Z)("marketing"),t=(0,g.M)(e=>e.setError),n=mailchimpSubscribeFormSchema(e),{register:u,handleSubmit:m,reset:h,formState:{isValid:x}}=(0,r.cI)({mode:"onTouched",resolver:(0,s.F)(n)}),[p,{loading:f}]=useSubscribeToMailchimp({onCompleted:t=>{t&&(h(),a.ZP.success((0,l.jsx)(c.ZP,{message:e("auctions:notifications.formSubmmited")})))},onError:n=>{let l=(0,b.e$)(n,e);t({title:e("mailchimpForm.errorModal"),message:l})}}),onSubmit=async(e,t)=>{null==t||t.preventDefault(),await p({variables:{email:e.email,listId:"051d5164e2"}})};return(0,l.jsx)("div",{className:"py-9 md:py-[6.25rem]",children:(0,l.jsxs)("div",{className:"xl:container xl:mx-auto px-4 grid grid-cols-12 gap-y-4 md:gap-y-6 gap-x-6 items-center",children:[(0,l.jsx)("h3",{className:"col-span-12 lg:col-span-4 text-[1.875rem] md:text-[3.75rem] 2xl:text-[3.75rem] leading-none font-black font-atlasGrotesk -tracking-[0.9px] md:-tracking-[1.8px]",children:e("stayInTheKnow.stayInTheKnow")}),(0,l.jsxs)("form",{onSubmit:m(onSubmit),className:"col-span-12 lg:col-span-8 relative",children:[(0,l.jsx)("button",{type:"submit",disabled:f||!x,className:"".concat(!f&&x?"bg-black":"bg-gray-600"," bg-black p-2 md:p-[0.625rem] absolute top-1/2 -translate-y-1/2 right-2 md:right-[2.0625rem] rounded-full"),children:f?(0,l.jsx)(d.Z,{className:"w-6 h-6 md:w-9 md:h-9 text-white animate-spin"}):(0,l.jsx)(o.Z,{className:"w-6 h-6 md:w-9 md:h-9 text-white"})}),(0,l.jsx)("input",{className:"w-full border border-black placeholder:text-black placeholder:font-[600] placeholder:text-xs md:placeholder:text-[1.25rem] rounded-full py-3 pl-5 pr-[5rem] md:py-[2.375rem] md:pl-[2.625rem] md:pr-[10rem] 2xl:py-[2.375rem] 2xl:pl-[2.625rem] 2xl:pr-[10rem]",type:"text",placeholder:e("stayInTheKnow.placeholder"),...u("email")})]})]})})}}},function(e){e.O(0,[6187,7705,5223,6254,4101,5945,7694,5218,3817,6915,7511,9774,2888,179],function(){return e(e.s=19494)}),_N_E=e.O()}]);