PageSourceSearch

https://livebid.cz/_next/static/chunks/023263c5aa26b433.js

js livebid.cz collected 2026-10-02 08:23:10 UTC 22,086 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,420388,t=>{"use strict";var e=t.i(391398),i=t.i(666282),s=t.i(191788);let n=(0,t.i(8762).styled)("div",{position:"relative",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"$neutral500",borderRadius:"4px",p:"$1"}),l=({error:t})=>{let s=(0,i.useTranslations)();return(0,e.jsxs)(n,{children:[s("common.errorOccured")," - ",t.message]})};class a extends s.default.Component{state={error:null};constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}render(){if(this.state.error){if(this.props.errorRender){let t=this.props.errorRender;return(0,e.jsx)(t,{error:this.state.error})}return(0,e.jsx)(l,{error:this.state.error})}return(0,e.jsx)(e.Fragment,{children:this.props.children})}}t.s(["default",()=>a])},494557,t=>{"use strict";var e=t.i(391398),i=t.i(666282),s=t.i(191788),n=t.i(41158),l=t.i(203828),a=t.i(484881),o=t.i(972815
1),r=t.i(497835),h=t.i(320651),d=t.i(528870),p=t.i(400056),c=t.i(789678);let u=(0,s.forwardRef)(({client:t,css:s,author:u,curator:m,variant:f="small",hideLabel:g=!1,clickNav:y=!1,onClick:v,imgContain:w=!1,...x},A)=>{let S=(0,i.useTranslations)(),b=(0,l.useRouter)();if(!t&&!u)return null;let C=t?S("common.auctionHouse"):u?S("common.author"):m?S("common.curator"):"",I=t?.logo||u?.logo||m?.image||"",_="big"===f?48:24,E=(0,e.jsxs)(a.default,{inline:!0,css:{gap:"$1",maxWidth:"100%"},children:[(0,e.jsx)(o.default,{src:(0,p.pathCloudImage)(I,h.default.src),alt:t?.name||u?.name||m?.name||"",width:_,height:_,style:{flex:"0 0 auto",height:`${_}px`,borderRadius:t?void 0:"50%",objectFit:""===I||w?"contain":"cover",objectPosition:"left",color:"transparent",opacity:""===I?.6:1}}),(0,e.jsxs)(a.default,{inline:"column",css:{gap:"$h1"},children:[(0,e.jsx)(a.default,{css:{fontSize:"big"===f?"12px":"14px",fontWeight:"big"===f?500:400,lineHeight:"big"===f?"16px":"22px",overflow:"hidden",textOverflow:"ellipsis"},children:t?.name||u?.name||m?.name}),"big"===f&&!g&&(0,e.jsx)(a.default,{css:{fontSize:"9px",fontStyle:"normal",fontWeight:"500",lineHeight:"9px",bg:"$midnight100",p:"3px 12px",br:"2px"},children:C})]})]});if(t&&!t.link||u&&!u.id)return E;let P=!m,D=t?c.Route.Livebid.Client.Detail(t?.link??""):u?c.Route.Livebid.Author.Detail(u.id):"";return(0,e.jsx)(r.default,{as:!P||y?"div":n.default,color:"neutral",href:D,css:{display:"inline-flex",flex:"0 1 auto",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",...s},...x,onClick:t=>{v?.(),!P||y&&(t.stopPropagation(),t.preventDefault(),d.default.closeAll(),b.push(D))},children:E})});t.s(["default",0,u])},353545,621447,t=>{"use strict";function e(t,e,i){let s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function i(t,e,i){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof i?`${i}px`:i}let s="loading",n="loaded",l="error";function a(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{let n="string"==typeof t?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}function o(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}class r{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class h{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){this._filters[t]||(this._filters[t]=[]),this._filters[t]?.push({fn:e,priority:i}),this._filters[t]?.sort((t,e)=>t.priority-e.priority),this.pswp?.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(t=>t.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){return this._filters[t]?.forEach(t=>{e[0]=t.fn.apply(this,e)}),e[0]}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t]?.push(e),this.pswp?.on(t,e)}off(t,e){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(t=>e!==t)),this.pswp?.off(t,e)}dispatch(t,e){if(this.pswp)return this.pswp.dispatch(t,e);let i=new r(t,e);return this._listeners[t]?.forEach(t=>{t.call(this,i)}),i}}class d{constructor(t,i){if(this.element=e("pswp__img pswp__img--placeholder",t?"img":"div",i),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){if(this.element)if("IMG"===this.element.tagName){var s;let e;i(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=(e="translate3d(0px,0px,0)",s=t/250,e+=` scale3d(${s},${s},1)`)}else i(this.element,t,e)}destroy(){this.element?.parentNode&&this.element.remove(),this.element=null}}class p{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state="idle",this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.t
1ype="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,i){if(this.slide&&this.usePlaceholder())if(this.placeholder){let t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{let t=this.instance.applyFilters("placeholderSrc",!!this.data.msrc&&!!this.slide.isFirstSlide&&this.data.msrc,this);this.placeholder=new d(t,this.slide.container)}this.element&&!i||!this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented&&(this.isImageContent()?(this.element=e("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=e("pswp__content","div"),this.element.innerHTML=this.data.html||""),i&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;let e=this.element;this.updateSrcsetSizes(),this.data.srcset&&(e.srcset=this.data.srcset),e.src=this.data.src??"",e.alt=this.data.alt??"",this.state=s,e.complete?this.onLoaded():(e.onload=()=>{this.onLoaded()},e.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=n,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===n||this.state===l)&&this.removePlaceholder())}onError(){this.state=l,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===s,this)}isError(){return this.state===l}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(i(this.element,t,e),this.isImageContent()&&!this.isError()))){let i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==l,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let t=e("pswp__error-msg","div");t.innerText=this.instance.options?.errorMsg??"",t=this.instance.applyFilters("contentErrorElement",t,this),this.element=e("pswp__content pswp__error-msg-container","div"),this.element.appendChild(t),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===l)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;let t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||o())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!o()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){!this.isAttached||this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===n||this.state===l)&&this.removePlaceholder())}}function c(t,e,i,s,n){let l=0;if(e.paddingFn)l=e.paddingFn(i,s,n)[t];else if(e.padding)l=e.padding[t];else{let i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(l=e[i])}return Number(l)||0}class u{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){let s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;let n=i.x/s.x,l=i.y/s.y;this.fit=Math.min(1,n<l?n:l),this.fill=Math.min(1,n>l?n:l),this.vFill=Math.min(1,l),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){let e=this.options[t+"ZoomLevel"];
1if(e)return"function"==typeof e?e(this):"fill"===e?this.fill:"fit"===e?this.fit:Number(e)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x)),t}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function m(t,e,i){let s,n=e.createContentFromData(t,i),{options:l}=e;if(l){let a;s=new u(l,t,-1),a=e.pswp?e.pswp.viewportSize:function(t,e){if(t.getViewportSizeFn){let i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(l,e);let o={x:a.x-c("left",l,a,t,i)-c("right",l,a,t,i),y:a.y-c("top",l,a,t,i)-c("bottom",l,a,t,i)};s.update(n.width,n.height,o)}return n.lazyLoad(),s&&n.setDisplayedSize(Math.ceil(n.width*s.initial),Math.ceil(n.height*s.initial)),n}class f extends h{getNumItems(){let t=0,e=this.options?.dataSource;e&&"length"in e?t=e.length:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),e.items&&(t=e.items.length));let i=this.dispatch("numItems",{dataSource:e,numItems:t});return this.applyFilters("numItems",i.numItems,e)}createContentFromData(t,e){return new p(t,this,e)}getItemData(t){let e=this.options?.dataSource,i={};Array.isArray(e)?i=e[t]:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),i=e.items[t]);let s=i;s instanceof Element&&(s=this._domElementToItemData(s));let n=this.dispatch("itemData",{itemData:s||{},index:t});return this.applyFilters("itemData",n.itemData,t)}_getGalleryDOMElements(t){return this.options?.children||this.options?.childSelector?a(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){let e={element:t},i="A"===t.tagName?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);let s=t.querySelector("img");s&&(e.msrc=s.currentSrc||s.src,e.alt=s.getAttribute("alt")??""),(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return m(t,this,e)}}class g extends f{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){a(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if("button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||window.pswp||!1===window.navigator.onLine)return;let e={x:t.clientX,y:t.clientY};e.x||e.y||(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);let s={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,s,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);let e=t.target,i=a(this.options.children,this.options.childSelector,t.currentTarget).findIndex(t=>t===e||t.contains(e));return -1!==i?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){return!window.pswp&&(this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0)}preload(t,e){var i;let{options:s}=this;e&&(s.dataSource=e);let n=[],l=typeof s.pswpModule;if("function"==typeof(i=s.pswpModule)&&i.prototype&&i.prototype.goTo)n.push(Promise.resolve(s.pswpModule));else if("string"===l)throw Error("pswpModule as string is no longer supported");else if("function"===l)n.push(s.pswpModule());else throw Error("pswpModule is not valid");"function"==typeof s.openPromise&&n.push(s.openPromise()),!1!==s.preloadFirstSlide&&t>=0&&(this._preloadedContent=function(t,e){let i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return m(i,e,t)}(t,this));let a=++this._uid;Promise.all(n).then(t=>{if(this.shouldOpen){let e=t[0];this._openPhotoswipe(e,a)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let i="object"==typeof t?new t.default(this.options):new t(this.options);
1this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(t=>{this._listeners[t]?.forEach(e=>{i.on(t,e)})}),Object.keys(this._filters).forEach(t=>{this._filters[t]?.forEach(e=>{i.addFilter(t,e.fn,e.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){this.pswp?.destroy(),this.shouldOpen=!1,this._listeners={},a(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}}t.s(["default",()=>g],353545);var y,v=t.i(763166),w=t.i(97531),x=t.i(634329),A=t.i(626502),S=t.i(208308),b=t.i(565411),C=t.i(282383),I=t.i(390569),_=((y={})[y.PreAuctionNotStarted=0]="PreAuctionNotStarted",y[y.PreAuction=1]="PreAuction",y[y.PreAuctionEnded=2]="PreAuctionEnded",y[y.AuctionEnded=3]="AuctionEnded",y[y.AfterAuction=4]="AfterAuction",y[y.Exhibition=5]="Exhibition",y);t.s(["VerificationAuctionPhase",()=>_,"default",0,function(t){let e=(0,S.default)(),i=!!e&&!!t.auctionLink,{res:s}=(0,x.useUserContacts)({shouldFetch:i}),{res:n}=(0,w.useAuctionApproval)({auctionLink:t.auctionLink,shouldFetch:i}),l=n?.data?.auctionApproval?.status,a=(0,b.useIsEmailVerified)({shouldFetch:i}),o=(0,b.useIsSmsVerified)({shouldFetch:i}),r=(0,b.useIsIdentityVerified)({shouldFetch:i}),h=(0,b.useIsDocumentVerified)({shouldFetch:i}),d=(0,A.default)({shouldFetch:i}),p=!1,c=null,u=!1,m=I.AuctionApprovalType.Standard,f=!1,g=!1,y="auction";if("lotn"in t){let e=t.resItemDetail;p=!!e;let i={id:e?.item?.itemId??0,cacheTimestamp:e?.timestamp??0};c=new Date(e?.item?.limitingStart??e?.auction?.preauctionStart??0),u=C.default.get(i,"isFinished")??e?.item?.isFinished??!1,m=e?.auction?.approvalType??m,y=e?.item?.displayMode??"auction",f=(!C.default.get(i,"actualPrice")||!!e?.item?.hasReservePrice)&&u&&"afterAuction"===y,g=!C.default.get(i,"actualPrice")&&"exhibition"===y}else{let{res:e}=(0,w.useAuctionDetail)({auctionLink:t.auctionLink,shouldFetch:i});p=e?.ok??!1,c=new Date(e?.data?.preauctionStart??0),m=e?.data?.approvalType??m}let _=0;if(c.getTime()<Date.now()&&(_=1),u&&(_=3),f&&(_=4),g&&(_=5),!e)return{loggedIn:!1,phase:_};if(!p||!s?.ok||!n?.ok)return null;let E=n?.data?.clientApproval,P=l===v.AuctionApprovalStatus.Banned||E?.status===v.ClientApprovalStatus.Banned,D=E?.status===v.ClientApprovalStatus.Declined,k=E?.msg??n?.data?.auctionApproval?.declinedMsg??"",T=a??!1,j=d?null:o??!1,z=m!==I.AuctionApprovalType.Manual?r??!1:null,L=m!==I.AuctionApprovalType.Identity?h??!1:null,F=l===v.AuctionApprovalStatus.Approved&&(E?.status??v.ClientApprovalStatus.Pending)<=v.ClientApprovalStatus.Approved;!0===z?L=null:!0===L&&F&&(z=null),m===I.AuctionApprovalType.Manual&&!0===r&&(L=!0);let M=!0!==z&&!0!==L,O=m!==I.AuctionApprovalType.Identity,N=null;M&&(N=!1),l===v.AuctionApprovalStatus.Pending&&(N="pending"),l===v.AuctionApprovalStatus.Approved&&(N=!0),((l??-1)>=2||(E?.status??-1)>=2)&&(N="rejected",O=!1);let W=z,R=O||P||m===I.AuctionApprovalType.Manual?L:null,H=(T??!0)&&(j??!0)&&!!(W||R)&&!P,$=m!==I.AuctionApprovalType.Manual&&!0===W;return{loggedIn:!0,phase:_,canParticipate:H,canAskForApproval:H&&(!F||$),expressApproval:$,approvalType:m,hasToVerifyFurther:m===I.AuctionApprovalType.Standard&&"rejected"===N&&null!==W,changeableRejection:"rejected"===N&&(m===I.AuctionApprovalType.Standard&&null!==W||m===I.AuctionApprovalType.Manual),approved:F,needed:{email:T,phone:j,basics:T&&(j??!0),identity:W,document:R,approval:N},blocker:{banned:s?.data?.verification?.banned??!1,blacklist:P,rejected:D,msg:k}}}],621447)},991952,t=>{"use strict";var e=t.i(391398),i=t.i(666282),s=t.i(577001),n=t.i(484881),l=t.i(427549),a=t.i(36986),o=t.i(686412),r=t.i(875163),h=t.i(693446),d=t.i(486950),p=t.i(8762),c=t.i(991845);let u=(0,p.styled)(n.default,{width:"100%",minHeight:"48px",backgroundColor:"#000",color:"#fff",p:"$2",textAlign:"center",fontWeight:"500",position:"relative",variants:{hasCloseButton:{true:{pr:"$8"}}}}),m=(0,p.styled)(n.default,{position:"absolute",right:"$2",top:0,bottom:0,display:"flex",alignItems:"center"});function f({announcement:t,onClose:i}){let a=t.title.trim().length>0&&t.description.trim().length>0,r=!!(t.isCloseable??!0);return(0,e.jsxs)(u,{hasCloseButton:r,css:{backgroundColor:t.colorBackgroun
1d??void 0,color:t.colorText??void 0},children:[(0,e.jsxs)("b",{children:[t.title,a?": ":""]}),(0,e.jsx)(n.default,{dangerouslySetInnerHTML:{__html:t.description},css:{display:"inline"}}),r&&(0,e.jsx)(m,{children:(0,e.jsx)(s.default,{shape:"transparent",onClick:i,css:{"& > svg":{fill:t.colorText||"#fff"}},children:(0,e.jsx)(l.Icon,{as:o.default,css:{size:"12px"}})})})]})}function g({announcement:t,onClose:l}){let o=!!(t.isCloseable??!0),r=(0,i.useTranslations)();return(0,h.useDisableScroll)("modal"),(0,e.jsxs)(e.Fragment,{children:[!o&&(0,e.jsx)(n.default,{css:{position:"fixed",inset:0,background:t.colorBackground??"$background",backgroundSize:"cover",backgroundPosition:"center"}}),(0,e.jsxs)(a.default,{open:!0,onClose:o?l:void 0,size:"small",disableCloseOnBackdrop:!0,children:[(0,e.jsx)(a.ModalHead,{isHeading:!0,css:{justifyContent:o?void 0:"center"},children:t.title}),(0,e.jsxs)(a.ModalBody,{css:{pt:0,textAlign:o?void 0:"center"},children:[(0,e.jsx)(n.default,{dangerouslySetInnerHTML:{__html:t.description},css:{maxWidth:"100%","& *":{maxWidth:"100%"}}}),o&&(0,e.jsx)(n.default,{inline:"center",css:{mt:"$2"},children:(0,e.jsx)(s.default,{black:!0,onClick:l,children:r("common.ok")})})]})]})]})}function y({type:t}){let{data:i}=(0,r.useGlobalOverview)({}),[s,l]=(0,d.useStoredState)("closedAnnouncements",[]);if(!i)return null;let a=t=>{l([...s,t])},o=i.announcements.filter(t=>!s.includes(t.id)).filter(e=>"livebid"===t?e.showOn.livebid:"originals"===t?e.showOn.originals:"live"===t?e.showOn.live:"admin"!==t||e.showOn.admin);return o.length>0?(0,e.jsx)(n.default,{css:{position:"relative",zIndex:c.ZINDEX_HOVER_ROLLDOWN+10},children:o.map(t=>t.isPopup?(0,e.jsx)(g,{announcement:t,onClose:()=>a(t.id)},t.id):(0,e.jsx)(f,{announcement:t,onClose:()=>a(t.id)},t.id))}):null}t.s(["default",()=>y])}]);

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.