1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1607],{78969:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/homepagecache",function(){return l(4171)}])},4171:function(e,t,l){"use strict";l.r(t),l.d(t,{Banner:function(){return h},__N_SSP:function(){return B},default:function(){return V}});var n=l(85893),a=l(67294);l(1538);var r=l(10615),i=l(29552),s=l(99603),o=l(59417),c=l(41664),d=l.n(c);let u=()=>({autoPlay:!0,showArrows:!0,showStatus:!1,showIndicators:!0,infiniteLoop:!0,showThumbs:!1,stopOnHover:!0,interval:5e3,transitionTime:500,swipeScrollTolerance:5});var h=e=>{let{bannerDetail:t}=e,l={position:"absolute",zIndex:2,top:"calc(50% - 15px)"};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.lr,{...u(),renderArrowPrev:(e,t)=>t&&(0,n.jsx)("button",{type:"button",onClick:e,style:{...l,left:10},children:(0,n.jsx)(s.G,{icon:o.EyR,size:"lg",className:"h-5 w-4 mt-auto text-gray-200 hover:text-gray-100"})}),renderArrowNext:(e,t)=>t&&(0,n.jsx)("button",{type:"button",onClick:e,style:{...l,right:10},children:(0,n.jsx)(s.G,{icon:o.yOZ,size:"lg",className:"h-5 w-4 mt-auto text-gray-200 hover:text-gray-100"})}),children:null==t?void 0:t.map((e,t)=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d(),{href:"".concat(e.url),children:(0,n.jsx)("div",{className:"cursor-pointer",children:(0,n.jsx)("img",{src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/banner/").concat(e.images),className:"object-contain ",alt:"banner"})},t)})}))})})};let m=()=>({autoPlay:!0,showArrows:!1,showStatus:!1,showIndicators:!1,infiniteLoop:!0,showThumbs:!1,stopOnHover:!0,interval:6e3,transitionTime:500,swipeScrollTolerance:5,style:{}});var g=e=>{let{sideBannerDetail:t}=e;return Array.isArray(t)&&t.reverse(),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.lr,{...m(),animationHandler:"slide",children:null==t?void 0:t.map((e,t)=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d(),{href:"".concat(e.url),children:(0,n.jsx)("div",{children:(0,n.jsx)("img",{src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/banner/").concat(e.images),className:"object-contain ",alt:"slider-image"})},t)})}))})})},x=l(8916),p=l(22632);let f=e=>e.replace(/[^\w\s]/g," ").toLowerCase().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"");var v=e=>{let{eShopData:t}=e,l=0,a={},r=[];"object"==typeof t&&(Array.isArray(t.product)&&t.product.length>=1&&(a=t.product[0]),Array.isArray(t.hp)&&t.hp.length>0&&(r=t.hp),l=t.count);let c=0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(d(),{href:"/e-shop",className:"text-red-800 ",children:"eShop"}),(0,n.jsx)("div",{className:"",children:(()=>{let e=0,t="",l="";if("object"==typeof a&&Object.keys(a).length>0){e=parseInt(a.code.toString().slice(0,4));let n=a.code.toString().slice(-4),r=n.toString();parseInt(parseInt(r,10).toString()),c=parseInt(a.code.toString().substring(2,4)),t=(0,x.Z)(a.title),l=(0,p.Z)({category:[a.category1Details,a.category2Details,a.category3Details,a.category4Details,a.category5Details],title:a.title,auction:c,code:a.code,auctiontype:"e-shop",type:1,isLive:0})}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex flex-col items-center justify-around xxxs:flex-row md:max-w-xl border",children:(0,n.jsx)(d(),{href:l,className:"children:my-2",children:(0,n.jsx)("img",{src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/l/").concat(e,"/").concat(null==a?void 0:a.code,"13.jpg"),className:"object-contain lg:h-36 md:h-36 xxxs:h-36 w-full",alt:"eshop images",loading:"lazy"})})}),(0,n.jsx)("div",{className:" w-full border border-t-0 h-16 py-4 px-2",children:(0,n.jsx)("div",{className:"lining-nums",children:(0,n.jsx)(d(),{href:l,children:(0,n.jsx)("h6",{className:"text-xs text-center hover:text-red-900",children:t})})})})]})})()}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)(d(),{href:"/e-shop",children:(0,n.jsxs)("div",{className:"border p-2 lining-nums hover:text-red-900",children:["Total Records # ",l]})})})]}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:" border-2 overflow-auto max-h-40 p-2",children:null==r?void 0:r.map((e,t)=>{let l=f(e.cat_url),a="/e-shop/CHP/".concat(l,"/").concat(e.id);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{children:(0,n.jsx)(d(),{href:a,children:(0,n.jsxs)("div",{className:"lining-nums hover:text-red-900",children:[(0,n.jsx)(s.G,{icon:o.yOZ,className:"h-4 w-4",size:"lg"}),(0,n.jsx)("span",{className:"pl-2",children:"".concat(e.category," (").concat(e.count,")")})]})})},t)})})}),(0,n.jsx)("div",{className:"pt-1",children:(0,n.jsx)(d(),{href:"/e-shop",children:(0,n.jsx)("button",{className:"px-2 py-2 w-full bg-sky-4
100 text-white",children:"View more ..."})})})]})})]})};let y=e=>e.replace(/[^\w\s]/g," ").toLowerCase().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"");var j=e=>{let{pAuctionData:t}=e,l=0,a={},r=[];"object"==typeof t&&(Array.isArray(t.hp)&&t.hp.length>0&&(r=t.hp),Array.isArray(t.product)&&t.product.length>=1&&(a=t.product[0]),l=t.count);let c=0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(d(),{href:"/printed-auction-archive",className:"text-red-800",children:"Archive Printed Auctions"}),(0,n.jsx)("div",{className:"",children:(()=>{let e=0,t="",l="";if("object"==typeof a&&Object.keys(a).length>0){e=parseInt(a.code.toString().slice(0,4));let n=a.code.toString().slice(-4),r=n.toString();parseInt(parseInt(r,10).toString()),c=parseInt(a.code.toString().substring(2,4)),t=(0,x.Z)(a.title),l=(0,p.Z)({category:[a.category1Details,a.category2Details,a.category3Details,a.category4Details,a.category5Details],title:a.title,auction:c,code:a.code,auctiontype:"p-auction-archive",type:1,isLive:0})}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex flex-col items-center justify-around xxxs:flex-row md:max-w-xl border",children:(0,n.jsx)(d(),{href:l,className:"children:my-2",children:(0,n.jsx)("img",{src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/l/").concat(e,"/").concat(null==a?void 0:a.code,"13.jpg"),className:"object-contain lg:h-36 md:h-36 xxxs:h-36 w-full",alt:"P auction images",loading:"lazy"})})}),(0,n.jsx)("div",{className:" w-full border border-t-0 h-16 py-4 px-2",children:(0,n.jsx)("div",{className:"lining-nums",children:(0,n.jsx)(d(),{href:l,children:(0,n.jsx)("h6",{className:"text-xs hover:text-red-900",children:t})})})})]})})()}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)(d(),{href:"/printed-auction-archive",children:(0,n.jsxs)("div",{className:"border p-2 lining-nums hover:text-red-900",children:["Total Records # ",l]})})})]}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:" border-2 overflow-auto max-h-40 p-2",children:null==r?void 0:r.map((e,t)=>{let l=y(e.cat_url),a="/printed-auction/CHP/".concat(l,"/").concat(e.id);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{children:(0,n.jsx)(d(),{href:a,children:(0,n.jsxs)("div",{className:"lining-nums hover:text-red-900",children:[(0,n.jsx)(s.G,{icon:o.yOZ,className:"h-4 w-4",size:"lg"}),(0,n.jsx)("span",{className:"pl-2",children:"".concat(e.category," (").concat(e.count,")")})]})})},t)})})}),(0,n.jsx)("div",{className:"pt-1",children:(0,n.jsx)(d(),{href:"/printed-auction-archive",children:(0,n.jsx)("button",{className:"px-2 py-2 w-full bg-sky-400 text-white",children:"View more ..."})})})]})})]})};l(85231);var b=l(30120),w=l(61839);let N=e=>e.replace(/[^\w\s]/g," ").toLowerCase().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"");var _=e=>{let{eAuctionData:t}=e,l=0,a={},r=[];"object"==typeof t&&(Array.isArray(t.hp)&&t.hp.length>0&&(r=t.hp),Array.isArray(t.product)&&t.product.length>=1&&(a=t.product[0]),l=t.count);let c=0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(d(),{href:"/e-auction-archive",className:"text-red-800",children:"Archive e-Auctions"}),(0,n.jsx)("div",{className:"",children:(()=>{let e=0,t="",l="";if("object"==typeof a&&Object.keys(a).length>0){e=parseInt(a.code.toString().slice(0,4));let n=a.code.toString().slice(-4),r=n.toString();parseInt(parseInt(r,10).toString()),c=parseInt(a.code.toString().substring(2,4)),t=(0,x.Z)(a.title),l=(0,p.Z)({category:[a.category1Details,a.category2Details,a.category3Details,a.category4Details,a.category5Details],title:a.title,auction:c,code:a.code,auctiontype:"e-auction-archive",type:1,isLive:0})}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex flex-col items-center justify-around xxxs:flex-row md:max-w-xl border",children:(0,n.jsx)(d(),{href:l,className:"children:my-2",children:(0,n.jsx)("img",{src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/l/").concat(e,"/").concat(null==a?void 0:a.code,"13.jpg"),className:"object-contain lg:h-36 md:h-36 xxxs:h-36 w-full",alt:"e-Auction images",loading:"lazy"})})}),(0,n.jsx)("div",{className:" w-full border border-t-0 h-16 py-4 text-center px-2",children:(0,n.jsx)("div",{className:"lining-nums",children:(0,n.jsx)(d(),{href:l,children:(0,n.jsx)("h6",{className:"text-xs hover:text-red-900",children:t})})})})]})})()}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)(d(),{href:"/e-auction-archive",children:(0,n.jsxs)("div",{className:"border p-2 lining-nums hover:text-red-900",children:["Total Records # ",l," "]})})})]}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:" border-2 overflow-auto max-h-40 p-2",children:null==r?void 0:r.map((e,t)=>{let l=N(e.cat_url),a="/e-auction/CHP/".concat(l,"/").concat(e.id);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{children:(0,n.jsx)(d(),{href:a,children:(0,n.jsxs)("div",{className:"lining-nums hover:text-red-900",children:[(0,n.jsx)(s.G,{icon:o.yOZ,className:"h-4 w-4",size:"lg"}),(0,n.jsx)("span",{className:"pl-2",children:"".concat(e.category," (").concat(e.count,")")})]})})},t)})})}),(0,n.jsx)("div",{className:"pt-1",children:(0,n.jsx)(d(),{href:"/e-auction-archive",children:(0,n.jsx)("button",{className:"px-2 py-2 w-full bg-sky-4
100 text-white",children:"View more ..."})})})]})})]})},D=l(44080),C=l(91479),S=l(94543),A=l(48583),T=l(67727),Z=e=>{try{let t=new Date(e),l=new Date((0,T.Z)()),n=t.valueOf(),a=l.valueOf();return n>a?"not-expired":"expired"}catch(e){return"expired"}},L=l(86501),M=l(37106),k=l(11163),I=e=>{let t,l,r,c,u,{isLiveAuctionData:h}=e,m=(0,A.Dv)(S.ZP),[g,x]=(0,a.useState)({}),[p,f]=(0,a.useState)(""),[v,y]=(0,a.useState)(!1),j=(0,a.useRef)(null),N=(0,k.useRouter)(),_=(0,a.useRef)(!1),T={},I="/",F="",O="",E="",P="",H="",R="",[U,B]=(0,a.useState)([]),V=!1;if("object"==typeof h&&Object.keys(h).length>0){var z,G,J,W;T=null==h?void 0:h.auction_data[0];let e=0;if("number"==typeof T.auction_sessions&&(e=null==T?void 0:T.auction_sessions),"number"==typeof g.auction_sessions&&g.auction_sessions>=1&&((0,w.Z)(g.session_1_start_time,"dd MMM yyyy a"),Z(g.session_1_end_time)),"number"==typeof g.auction_sessions&&g.auction_sessions>1){let e=Z(g.session_2_end_time);"not-expired"===e&&(V=!0),(0,w.Z)(g.session_1_start_time,"dd MMM yyyy a"),(0,w.Z)(g.session_2_start_time,"dd MMM yyyy a")}if((0,w.Z)(T.session_1_start_time,"dd MMM yyyy HH:mm ff"),e>1&&(0,w.Z)(T.session_2_start_time,"dd MMM yyyy HH:mm ff"),P="/errata.html",2===T.auction_type?(I="/live-printed-auction/auctionno/".concat(T.auction_no),F="Live Printed Auction",O="/printed-auction",E=I,R="/real-time-live-p-auction/auction-no-".concat(T.auction_no,"/real-time-live-bidding"),H="/live-printed-auction/CHP/"):1===T.auction_type&&(I="/live-e-auction/auctionno/".concat(T.auction_no),F="Live e Auction",O="/e-auction",E=I,H="/live-e-auction/CHP/",R="/real-time-live-e-auction/auction-no-".concat(T.auction_no,"/real-time-live-bidding")),O.length>0){let e=U.filter(e=>"View by Category"===e.label);0===e.length&&U.push({label:"View by Category",path:O,type:"button"})}if(E.length>0){let e=U.filter(e=>"View by Lot Number"===e.label);0===e.length&&U.push({label:"View by Lot Number",path:E,type:"button"})}if((null==T?void 0:T.status)===1){let e=U.filter(e=>"Watch on YouTube"===e.label);0===e.length&&U.push({label:"Watch on YouTube",path:"https://www.youtube.com/@RMHistoryChannel",type:"youtube"})}if((null==T?void 0:null===(z=T.catalouges)||void 0===z?void 0:z.length)>0||(null==T?void 0:null===(G=T.catalouges)||void 0===G?void 0:G.length)===0){let e=U.filter(e=>"View Catalogue"===e.label);0===e.length&&U.push({label:"View Catalogue",path:null==T?void 0:T.catalouges,type:"img"})}if((null==T?void 0:null===(J=T.catalouges_hdpi)||void 0===J?void 0:J.length)>0||(null==T?void 0:null===(W=T.catalouges_hdpi)||void 0===W?void 0:W.length)===0){let e=U.filter(e=>"Download PDF Catalogue (HD)"===e.label);0===e.length&&U.push({label:"Download PDF Catalogue (HD)",path:null==T?void 0:T.catalouges_hdpi,type:"img"})}if(P.length>0&&T.auctionErrataArrLen>0){let e=U.filter(e=>"View Errata"===e.label);0===e.length&&U.push({label:"View Errata",path:P,type:"button"})}let t=setInterval(()=>{if((null==R?void 0:R.length)>0){let e=null==T?void 0:T.session_1_start_time,l=null==T?void 0:T.session_2_start_time,n=null==T?void 0:T.session_1_end_time,a=null==T?void 0:T.session_2_end_time;if(null!==e&&null!==n){let l=e.replace("Z","+05:30"),a=n.replace("Z","+05:30"),r=new Date(a),i=b.ou.fromJSDate(r),s=new Date(l),o=b.ou.fromJSDate(s),c=b.ou.now(),d=o.diff(c,"minutes");if(d.minutes<5&&c<=i&&o<=i){let e=U.filter(e=>"p-Auction Live Bidding"===e.label);0===e.length&&B([...U,{label:"p-Auction Live Bidding",path:R,type:"live"}]),clearInterval(t)}}if(null!==l&&null!==n&&null!==a){let e=l.replace("Z","+05:30"),r=new Date(e),i=n.replace("Z","+05:30"),s=new Date(i),o=b.ou.fromJSDate(s),c=a.replace("Z","+05:30"),d=new Date(c),u=b.ou.fromJSDate(d),h=b.ou.fromJSDate(r),m=b.ou.now(),g=h.diff(m,"minutes");if(g.minutes<5&&h>o&&u>=m){let e=U.filter(e=>"p-Auction Live Bidding"===e.label);0===e.length&&B([...U,{label:"p-Auction Live Bidding",path:R,type:"live"}]),clearInterval(t)}}}},1e3)}(0,a.useEffect)(()=>(!1===_.current&&x(T),()=>{_.current}),[h]);let $=e=>{try{if("string"!=typeof e)return"";return e.replace(/[^\w\s]/g," ").toLowerCase().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"")}catch(e){return console.error(e),""}},q=T.catalouges;T.catalouges_hdpi;let Y=()=>U.filter(e=>"img"===e.type).map(e=>(0,n.jsx)(n.Fragment,{children:"View Catalogue"===e.label&&(0,n.jsx)("div",{className:"bg-gray-100 py-1",children:(0,n.jsx)("div",{className:"m-auto text-center py-1",children:q.length>0?(0,n.jsx)(d(),{href:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/catalogues/").concat(e.path),children:(0,n.jsx)("button",{className:"bg-gray-200 w-
156 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none ring-1 ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black",children:"Download Catalogue"})}):0===q.length?(0,n.jsx)("button",{onClick:()=>{y(!0)},className:"bg-gray-200 w-56 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none ring-1 ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black",children:"Download Catalogue"}):""},e.path)})})),K=()=>(0,n.jsx)("div",{className:"bg-gray-100 py-1",children:(0,n.jsx)("div",{className:"text-center py-2",children:(0,n.jsx)("button",{onClick:()=>L.ZP.error("Once catalogue is online you can download it"),className:"bg-gray-200 w-56 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none ring-1 ring-gray-300 border-gray-100 rounded px-2 py-1 text-black",children:"Download Catalogue"})})}),X=e=>(0,n.jsxs)("div",{className:"py-3",children:[e.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(d(),{href:"/".concat(H,"/").concat($(e.cat_url),"/").concat(e.id),children:(0,n.jsxs)("div",{className:"lining-nums hover:text-red-900 px-3",children:[(0,n.jsx)(s.G,{icon:o.yOZ,className:"h-4 w-4",size:"lg"}),(0,n.jsx)("span",{className:"pl-2",children:"".concat(e.category," (").concat(e.count,")")})]})})},t)),Y()?Y():K()]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"w-full md:w-3/12 lg:w-3/12 xxxs:hidden md:block",children:(t=g.images,(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"relative w-full flex flex-col justify-center items-center bg-gray-100 overflow-hidden lg:h-[438px] md:h-[340px]",children:(0,n.jsxs)("div",{className:"relative flex flex-col items-center z-10",children:[(0,n.jsx)("p",{className:"text-gray-700 text-lg md:text-lg lg:text-md md:mt-2 lg:mt-0 hidden md:block lg:block xl:hidden",children:"Marudhar Arts"}),(0,n.jsx)(d(),{href:I,className:"block relative",children:(0,n.jsx)("img",{alt:"Marudhar Arts",src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/catalogues/").concat(t),className:"object-contain max-w-full max-h-full border-t-2 border-b-2 border-gray-400"})}),(0,n.jsx)("p",{className:"text-gray-700 text-lg md:text-lg lg:text-md md:mb-2 lg:mb-0 hidden md:block lg:block xl:hidden",children:"Marudhar Arts"})]})})}))}),(0,n.jsx)("div",{className:"w-full md:w-5/12 lg:w-5/12",children:(l=!1,m.isLoggedIn&&(l=!0),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"w-full h-full border md:h-[340px] lg:h-[438px] flex flex-col",children:[(0,n.jsx)("div",{className:"w-full h-[40px] border lining-nums px-2 py-2 text-red-800 bg-gray-100 text-lg flex items-center justify-center",children:"".concat(F," # ").concat(g.auction_no)}),(0,n.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[l?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["Member Already ?",(0,n.jsx)(d(),{href:"/login",className:"underline",children:(0,n.jsx)("span",{className:"px-1",children:"Login"})}),"Bid Now"]})}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["New Member ?"," ",(0,n.jsx)(d(),{href:"/register",className:"underline",children:(0,n.jsx)("span",{className:"px-1",children:"Register"})})]})})]}),(0,n.jsx)("div",{className:"m-auto py-1 xxxs:px-7 md:px-4 lg:px-14 flex flex-col gap-y-2 md:pt-8",children:(()=>{let e=[],t=[];for(let l=0;l<U.length;l++){let a=U[l],r="".concat(i.Z.CDN_URL_PUBLIC,"/uploads/catalogues/").concat(a.path);"button"===a.type&&e.push((0,n.jsx)("div",{className:"w-full lg:w-full md:w-[95%] md:text-xs lg:text-base",children:(0,n.jsx)(d(),{href:a.path,children:(0,n.jsx)("button",{className:"w-full bg-gray-200 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none focus:ring-1 focus:ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black",children:a.label})})},l)),"img"===a.type&&e.push((0,n.jsx)("div",{className:"w-full lg:w-full md:w-[95%] md:text-xs lg:text-base",children:(0,n.jsx)("button",{onClick:()=>{"View Catalogue"===a.label&&(null==T?void 0:T.catalouges.length)===0||"Download PDF Catalogue (HD)"===a.label&&(null==T?void 0:T.catalouges.length)===0?y(!0):N.push(r)},className:"w-full bg-gray-200 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none focus:ring-1 focus:ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black text-base",children:a.label})},l)),"live"===a.type&&(null==T?void 0:T.status)===1&&e.push((0,n.jsx)("div",{className:"w-full lg:w-full md:w-[95%] md:text-xs lg:text-base",children:(0,n.jsx)(d(),{href:R,children:(0,n.jsx)("button",{className:"w-full bg-green-600 inline-flex justify-center items-center gap-x-1 hover:bg-green-600 active:bg-green-700 focus:outline-none focus:ring-1 focus:ring-green-300 hover:border-green-100 rounded px-2 py-1 text-white",children:"p-Auction Live Bidding"})})},l)),"youtube"===a.type&&t.push((0,n.jsx)("button",{onClick:()=>{("Marudhar Arts"===a.label||"Watch on YouTube"===a.label)&&window.open(a.path,"_blank","noopener noreferrer")},className:"w-full ".concat("Marudhar Arts"===a.label?"bg-gray-600":"bg-red-600"," \n inline-flex justify-center items-center gap-x-1 hover:").concat("Marudhar Arts"===a.label?"bg-gray-600":"bg-red-600","\n active:").concat("Marudhar Arts"===a.label?"bg-gray-600":"bg-red-600"," \n focus:outline-none focus:ring-1 focus:ring-").concat("Marudhar Arts"===a.label?"gray-600":"red-600"," \n hover:border-").concat((a.label,"red-600")," rounded px-2 py-1 text-white"),title:"Marudhar Arts"===a.label?"Marudhar Arts: An Auction House with The Legacy of Three Generations.":"",children:"Marudhar Arts"===a.label?"Tribute To Shri Prem Ratan Ji":a.label},l))}return[...e,...t]})()})]})]})}))}),(0,n.jsx)("div",{className:"w-full md:w-4/12 lg:w-4/12",children:(r=[],c=[],u=[],"object"==typeof h&&Object.keys(h).length>0&&(c=(r=null==h?void 0:h.category_hp[0]).sessionOnedata,u=r.sessionTwodata),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"w-full h-[300px] border md:h-[340px] lg:h-[438px] flex flex-col",children:[(0,n.jsxs)("div",{className:"w-full h-[40px] border text-center bg-gray-200 sticky",children:[(0,n.jsx)("span",{className:"font-semibold md:text-xs lg:text-lg",children:"Session I :"}),(0,n.jsx)("span",{className:"px-1 lining-nums md:text-xs lg:text-lg",children:(0,w.Z)(T.session_1_start_time,"MMMM dd, yyyy , hh:mm")}
1)]}),(0,n.jsx)("div",{className:"overflow-y-auto h-full flex flex-col ",children:(0,n.jsx)("div",{children:X(c)})}),V&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"w-full h-[40px] border text-center bg-gray-200 sticky",children:[(0,n.jsx)("span",{className:"font-semibold md:text-xs lg:text-lg",children:"Session II :"}),(0,n.jsx)("span",{className:"px-1 lining-nums md:text-xs lg:text-lg",children:(0,w.Z)(T.session_2_start_time,"MMMM dd, yyyy , hh:mm")})]}),(0,n.jsx)("div",{className:"overflow-y-auto h-full flex flex-col ",children:(0,n.jsx)("div",{children:X(u)})})]})]})}))}),v&&(0,n.jsx)(D.u.Root,{show:v,children:(0,n.jsxs)(C.V,{as:"div",className:"relative z-10",initialFocus:j,onClose:y,children:[(0,n.jsx)(D.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,n.jsx)("div",{className:"fixed inset-0 z-10 w-full h-full overflow-y-auto",children:(0,n.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,n.jsx)(D.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)(C.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full ",children:(0,n.jsxs)("div",{className:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4 flex flex-col w-96 h-44",children:[(0,n.jsxs)("div",{className:"flex justify-start items-center",children:[(0,n.jsx)(M.FQi,{})," \xa0\xa0\xa0 marudhararts.com"]}),(0,n.jsx)("div",{className:"flex items-start pl-5 justify-start mt-5",children:"Catalogue will be live soon"}),(0,n.jsx)("div",{className:"flex justify-end items-end mt-6",children:(0,n.jsx)("button",{onClick:()=>{y(!1)},className:"bg-blue-500 text-white rounded-md font-medium px-3",children:"Ok"})})]})})})})})]})})]})},F=e=>{var t,l,r,c,u;let h,m,g,x,p;let{isLiveAuctionData:f}=e,v=(0,A.Dv)(S.ZP),y=(0,k.useRouter)(),[j,N]=(0,a.useState)({}),[_,T]=(0,a.useState)(""),[I,F]=(0,a.useState)(!1),O=(0,a.useRef)(null),E=(0,a.useRef)(!1),P={},H="/",R="",U="",B="",V="",z="",G="",[J,W]=(0,a.useState)([]),$=!1;if("object"==typeof f&&(null===(t=Object.keys(f))||void 0===t?void 0:t.length)>0){P=null==f?void 0:f.auction_data[0];let e=0;if("number"==typeof(null==P?void 0:P.auction_sessions)&&(e=null==P?void 0:P.auction_sessions),"number"==typeof(null==j?void 0:j.auction_sessions)&&(null==j?void 0:j.auction_sessions)>=1&&((0,w.Z)(null==j?void 0:j.session_1_start_time,"dd MMM yyyy a"),Z(null==j?void 0:j.session_1_end_time)),"number"==typeof(null==j?void 0:j.auction_sessions)&&(null==j?void 0:j.auction_sessions)>1){let e=Z(null==j?void 0:j.session_2_end_time);"not-expired"===e&&($=!0),(0,w.Z)(null==j?void 0:j.session_1_start_time,"dd MMM yyyy a"),(0,w.Z)(null==j?void 0:j.session_2_start_time,"dd MMM yyyy a")}if((0,w.Z)(null==P?void 0:P.session_1_start_time,"dd MMM yyyy HH:mm ff"),e>1&&(0,w.Z)(null==P?void 0:P.session_2_start_time,"dd MMM yyyy HH:mm ff"),V="/errata.html",(null==P?void 0:P.auction_type)===2?(H="/live-printed-auction/auctionno/".concat(null==P?void 0:P.auction_no),R="Live Printed Auction",U="/printed-auction",B=H,G="https://www.icollector.com/Marudhar-Arts-Auction-43_as96955",z="/live-printed-auction/CHP/"):(null==P?void 0:P.auction_type)===1&&(H="/live-e-auction/auctionno/".concat(null==P?void 0:P.auction_no),R="Live e Auction",U="/e-auction",B=H,z="/live-e-auction/CHP/",G="/real-time-live-e-auction/auction-no-".concat(null==P?void 0:P.auction_no,"/real-time-live-bidding")),U.length>0){let e=J.filter(e=>"View by Category"===e.label);0===e.length&&J.push({label:"View by Category",path:U,type:"button"})}if(B.length>0){let e=J.filter(e=>"View by Lot Number"===e.label);0===e.length&&J.push({label:"View by Lot Number",path:B,type:"button"})}if((null==P?void 0:null===(l=P.catalouges)||void 0===l?void 0:l.length)>0||(null==P?void 0:null===(r=P.catalouges)||void 0===r?void 0:r.length)===0){let e=J.filter(e=>"View Catalogue"===e.label);0===e.length&&J.push({label:"View Catalogue",path:null==P?void 0:P.catalouges,type:"img"})}if((null==P?void 0:null===(c=P.catalouges_hdpi)||void 0===c?void 0:c.length)>0||(null==P?void 0:null===(u=P.catalouges_hdpi)||void 0===u?void 0:u.length)===0){let e=J.filter(e=>"Download PDF Catalogue (HD)"===e.label);0===e.length&&J.push({label:"Download PDF Catalogue (HD)",path:null==P?void 0:P.catalouges_hdpi,type:"img"})}if(V.length>0&&P.auctionErrataArrLen>0){let e=J.filter(e=>"View Errata"===e.label);0===e.length&&J.push({label:"View Errata",path:V,type:"button"})}let t=setInterval(()=>{if((null==G?void 0:G.length)>0){let e=null==P?void 0:P.session_1_start_time,l=null==P?void 0:P.session_2_start_time,n=null==P?void 0:P.session_1_end_time,a=null==P?void 0:P.session_2_end_time;if(null!==e&&null!==n){let l=e.replace("Z","+05:30"),a=n.replace("Z","+05:30"),r=new Date(a),i=b.ou.fromJSDate(r),s=new Date(l),o=b.ou.fromJSDate(s),c=b.ou.now(),d=o.diff(c,"minutes");if(d.minutes<5&&c<=i&&o<=i){let e=J.filter(e=>"e-Auction Live Bidding"===e.label);0===e.length&&W([...J,{label:"e-Auction Live Bidding",path:G,type:"live"}]),clearInterval(t)}}if(null!==l&&null!==n&&null!==a){let e=l.replace("Z","+05:30"),r=new Date(e),i=n.replace("Z","+05:30"),s=new Date(i),o=b.ou.fromJSDate(s),c=a.replace("Z","+05:30"),d=new Date(c),u=b.ou.fromJSDate(d),h=b.ou.fromJSDate(r),m=b.ou.now(),g=h.diff(m,"minutes");if(g.minutes<5&&h>o&&u>=m){let e=J.filter(e=>"e-Auction Live Bidding"===e.label);0===e.length&&W([...J,{label:"e-Auction Live Bidding",path:G,type:"live"}]),clearInterval(t)}}}},1e3)}(0,a.useEffect)(()=>(!1===E.current&&N(P),()=>{E.current}),[f]);let q=e=>{try{if("string"!=typeof e)return"";return e.replace(/[^\w\s]/g," ").toLowerCase().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"")}catch(e){return console.error(e),""}},Y=null==P?void 0:P.catalouges;null==P||P.catalouges_hdpi;let K=()=>J.filter(e=>"img"===e.type).map(e=>(0,n.jsx)(n.Fragment,{children:"View Catalogue"===e.label&&(0,n.jsx)("div",{className:"bg-gray-100 py-1",children:(0,n.jsx)("div",{className:"m-auto text-center py-1",children:(null==Y?void 0:Y.length)>0?(0,n.jsx)(d(),{href:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/catalogues/").concat(e.path),children:(0,n.jsx)("button",{className:"bg-gray-200 w-
156 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none ring-1 ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black",children:"Download Catalogue"})}):(null==Y?void 0:Y.length)===0?(0,n.jsx)("button",{onClick:()=>{F(!0)},className:"bg-gray-200 w-56 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none ring-1 ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black",children:"Download Catalogue"}):""},e.path)})})),X=()=>(0,n.jsx)("div",{className:"bg-gray-100 py-1",children:(0,n.jsx)("div",{className:"text-center py-2",children:(0,n.jsx)("button",{onClick:()=>L.ZP.error("Once catalogue is online you can download it"),className:"bg-gray-200 w-56 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none ring-1 ring-gray-300 border-gray-100 rounded px-2 py-1 text-black",children:"Download Catalogue"})})}),Q=e=>(0,n.jsxs)("div",{className:"py-3",children:[e.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(d(),{href:"/".concat(z,"/").concat(q(e.cat_url),"/").concat(e.id),children:(0,n.jsxs)("div",{className:"lining-nums hover:text-red-900 px-3",children:[(0,n.jsx)(s.G,{icon:o.yOZ,className:"h-4 w-4",size:"lg"}),(0,n.jsx)("span",{className:"pl-2",children:"".concat(e.category," (").concat(e.count,")")})]})})},t)),K()?K():X()]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"w-full md:w-3/12 lg:w-3/12 xxxs:hidden md:block",children:(h=null==j?void 0:j.images,(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"relative w-full flex flex-col justify-center items-center bg-gray-100 overflow-hidden lg:h-[438px] md:h-[340px]",children:(0,n.jsxs)("div",{className:"relative flex flex-col items-center z-10",children:[(0,n.jsx)("p",{className:"text-gray-700 text-lg md:text-lg lg:text-md md:mt-2 lg:mt-0 hidden md:block lg:block xl:hidden",children:"Marudhar Arts"}),(0,n.jsx)(d(),{href:H,className:"block relative",children:(0,n.jsx)("img",{alt:"Marudhar Arts",src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/catalogues/").concat(h),className:"object-contain max-w-full max-h-full border-t-2 border-b-2 border-gray-400"})}),(0,n.jsx)("p",{className:"text-gray-700 text-lg md:text-lg lg:text-md md:mb-2 lg:mb-0 hidden md:block lg:block xl:hidden",children:"Marudhar Arts"})]})})}))}),(0,n.jsx)("div",{className:"w-full md:w-5/12 lg:w-5/12",children:(m=!1,v.isLoggedIn&&(m=!0),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"w-full h-full border md:h-[340px] lg:h-[438px] flex flex-col",children:[(0,n.jsx)("div",{className:"w-full h-[40px] border lining-nums px-2 py-2 text-red-800 bg-gray-100 text-lg flex items-center justify-center",children:"".concat(R," # ").concat(null==j?void 0:j.auction_no)}),(0,n.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[m?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["Member Already ?",(0,n.jsx)(d(),{href:"/login",className:"underline",children:(0,n.jsx)("span",{className:"px-1",children:"Login"})}),"Bid Now"]})}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["New Member ?"," ",(0,n.jsx)(d(),{href:"/register",className:"underline",children:(0,n.jsx)("span",{className:"px-1",children:"Register"})})]})})]}),(0,n.jsx)("div",{className:"m-auto py-1 xxxs:px-7 md:px-4 lg:px-14 flex flex-col gap-y-2 md:pt-8 ",children:J.map((e,t)=>{let l="".concat(i.Z.CDN_URL_PUBLIC,"/uploads/catalogues/").concat(e.path);return(0,n.jsxs)("div",{className:"w-full lg:w-full md:w-[95%] md:text-xs lg:text-base ",children:["button"===e.type&&(0,n.jsx)(d(),{href:e.path,children:(0,n.jsx)("button",{className:"w-full bg-gray-200 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none focus:ring-1 focus:ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black",children:e.label})}),"img"===e.type&&(0,n.jsx)("button",{onClick:()=>{"View Catalogue"===e.label&&(null==P?void 0:P.catalouges.length)===0||"Download PDF Catalogue (HD)"===e.label&&(null==P?void 0:P.catalouges.length)===0?F(!0):y.push(l)},className:"w-full bg-gray-200 inline-flex justify-center items-center gap-x-1 hover:bg-gray-200 active:bg-gray-200 focus:outline-none focus:ring-1 focus:ring-gray-300 hover:border-gray-100 rounded px-2 py-1 text-black",children:e.label}),"live"===e.type&&(null==P?void 0:P.status)===1&&(0,n.jsx)(d(),{href:G,children:(0,n.jsx)("button",{className:"w-full bg-green-600 inline-flex justify-center items-center gap-x-1 hover:bg-green-600 active:bg-green-700 focus:outline-none focus:ring-1 focus:ring-green-300 hover:border-green-100 rounded px-2 py-1 text-white",children:"e-Auction Live Bidding"})})]},t)})})]})]})}))}),(0,n.jsx)("div",{className:"w-full md:w-4/12 lg:w-4/12",children:(g=[],x=[],p=[],"object"==typeof f&&Object.keys(f).length>0&&(x=(g=null==f?void 0:f.category_hp[0]).sessionOnedata,p=g.sessionTwodata),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"w-full h-[300px] border md:h-[340px] lg:h-[438px] flex flex-col",children:[(0,n.jsxs)("div",{className:"w-full h-[40px] border text-center bg-gray-200 sticky",children:[(0,n.jsx)("span",{className:"font-semibold md:text-xs lg:text-lg",children:"Session I :"}),(0,n.jsx)("span",{className:"px-1 lining-nums md:text-xs lg:text-lg",children:(0,w.Z)(null==P?void 0:P.session_1_start_time,"MMMM dd, yyyy , hh:mm")}
1)]}),(0,n.jsx)("div",{className:"overflow-y-auto h-full flex flex-col ",children:(0,n.jsx)("div",{children:Q(x)})}),$&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"w-full h-[40px] border text-center bg-gray-200 sticky",children:[(0,n.jsx)("span",{className:"font-semibold md:text-xs lg:text-lg",children:"Session II :"}),(0,n.jsx)("span",{className:"px-1 lining-nums md:text-xs lg:text-lg",children:(0,w.Z)(null==P?void 0:P.session_2_start_time,"MMMM dd, yyyy , hh:mm")})]}),(0,n.jsx)("div",{className:"overflow-y-auto h-full flex flex-col ",children:(0,n.jsx)("div",{children:Q(p)})})]})]})}))}),I&&(0,n.jsx)(D.u.Root,{show:I,children:(0,n.jsxs)(C.V,{as:"div",className:"relative z-10",initialFocus:O,onClose:F,children:[(0,n.jsx)(D.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,n.jsx)("div",{className:"fixed inset-0 z-10 w-full h-full overflow-y-auto",children:(0,n.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,n.jsx)(D.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)(C.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full ",children:(0,n.jsxs)("div",{className:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4 flex flex-col w-96 h-44",children:[(0,n.jsxs)("div",{className:"flex justify-start items-center",children:[(0,n.jsx)(M.FQi,{})," \xa0\xa0\xa0 marudhararts.com"]}),(0,n.jsx)("div",{className:"flex items-start pl-5 justify-start mt-5",children:"Catalogue will be live soon"}),(0,n.jsx)("div",{className:"flex justify-end items-end mt-6",children:(0,n.jsx)("button",{onClick:()=>{F(!1)},className:"bg-blue-500 text-white rounded-md font-medium px-3",children:"Ok"})})]})})})})})]})})]})},O=e=>{let{randomProductsInHomePage:t,eshopRandomProductShowBtnThisWeek:l}=e,r=t.product,s=[];return Array.isArray(r)&&r.length>=1&&(s=r),(0,n.jsx)(a.Fragment,{children:(0,n.jsx)("section",{className:" lg:px-0 md:p-0",children:(0,n.jsx)("div",{className:"container mx-auto",children:(0,n.jsx)("div",{className:"w-full flex md:flex-row xxxs:flex-col ",children:(0,n.jsx)("div",{className:"w-full lg:w-full ",children:(0,n.jsx)("section",{className:"",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:" flex xxxs:flex-col sm:flex-col md:flex-row md:justify-between lg:flex-row lg:justify-between p-2 bg-gray-100 w-full border sm:h-20 md:h-10 lg:h-10 mt-2 ",children:[(0,n.jsx)("div",{className:"font-bold",children:"New Arrivals"}),(0,n.jsxs)("div",{className:"flex gap-x-2",children:[l&&(0,n.jsx)(d(),{href:"/e-shop/all-products?viewBy=this_week",children:(0,n.jsx)("h1",{children:"(This Week)"})}),(0,n.jsx)(d(),{href:"/e-shop/all-products?viewBy=last_week",children:(0,n.jsx)("h1",{children:"(Last Week)"})}),(0,n.jsx)(d(),{href:"/e-shop/all-products?viewBy=this_month",children:(0,n.jsx)("h1",{children:"(This Month)"})}),(0,n.jsx)(d(),{href:"/e-shop/all-products",children:(0,n.jsx)("h1",{children:"(View All)"})})]})]}),(0,n.jsx)("div",{className:"grid lg:grid-cols-4 md:grid-cols-4 gap-1 w-full pt-4",children:null==s?void 0:s.map((e,t)=>{let l=0,a="",r="",s=0;return r=(0,p.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],title:e.title,auction:0,code:e.code,auctiontype:"e-shop",type:1,isLive:0}),s=e.code,a=e.title,l=e.code.toString().slice(0,4),Array.isArray(e.categoryHpList)&&e.categoryHpList,"object"==typeof e.productListCount&&Object.keys(e.productListCount.length>0)&&e.productListCount[0].productListCount,(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"border-2 ",children:[(0,n.jsx)("div",{className:"",children:(0,n.jsx)("div",{className:"flex justify-center p-2 bg-gray-100 w-full border-b-2",children:(0,n.jsx)("div",{className:"text-sm",children:(0,n.jsx)(d(),{href:r,className:"hover:text-red-900",children:(0,n.jsxs)("span",{className:"font-bold lining-nums text-xs",children:["SKU #","(".concat(s,")")]})})})})}),(0,n.jsx)("div",{className:"flex flex-col items-center justify-around xxxs:flex-row md:max-w-xl",children:(0,n.jsx)(d(),{href:r,className:"children:my-2",children:(0,n.jsx)("img",{src:"".concat(i.Z.CDN_URL_PUBLIC,"/uploads/m/").concat(l,"/").concat(s,"12.jpg"),className:"object-contain md:h-36 xxxs:h-36 w-full"})})}),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"pt-1 px-1",children:[(0,n.jsx)("div",{className:"flex flex-col border border-gray-200 rounded w-full",children:(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsx)("div",{className:" text-center",children:(0,n.jsx)("div",{className:"w-full px-2 py-2 text-xs ",children:(0,n.jsxs)("span",{className:"font-medium text-xs lining-nums",children:[" ",(0,x.Z)(a)]})})})})}),(0,n.jsx)("div",{className:"py-1",children:(0,n.jsx)(d(),{href:r,children:(0,n.jsxs)("button",{className:"px-2 w-full py-1 flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded ",children:[(0,n.jsx)("span",{}),"View detail"]})})})]})})]},t)})})})]})})})})})})})},E=l(9008),P=l.n(E),H=l(48274),R=l(26612),U=l(7023),B=!0,V=e=>
1{let{bannerDetail:t,sideBannerDetail:l,pAuctionData:a,eAuctionData:r,eShopData:i,isLivePAuctionData:s,isLiveEAuctionData:o,randomProductsInHomePage:c,eshopRandomProductShowBtnThisWeek:d,portalInfoArrScrollingMessages:u}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(P(),{children:[(0,n.jsxs)("title",{children:["Auctioneer of Coins, Notes, Stamps, Paintings and Many More"," "]}),(0,n.jsx)("meta",{name:"description",content:" Marudhar Arts is India's most trusted auction house for Coins, Banknotes, Stamps, Jewelry, Painting, and many more collectables."}),(0,n.jsx)("meta",{name:"keywords",content:"Indian coins and notes old indian head pennies old antique coins for sale old gold coin old coin values vs currency old indian currency notes value"}),(0,n.jsx)("meta",{name:"og:description",content:U.Z.OG_DESCRIPTION},"ogdescription"),(0,n.jsx)("meta",{property:"og:url",content:U.Z.OG_URL}),(0,n.jsx)("meta",{property:"og:title",content:U.Z.OG_TITLE}),(0,n.jsx)("meta",{property:"og:type",content:U.Z.OG_TYPE},"ogtype"),(0,n.jsx)("meta",{property:"og:image",content:U.Z.OG_IMAGE},"ogimage")]})}),(0,n.jsx)("section",{className:"md:mx-8 px-3 lg:mx-28 lg:px-0 md:p-0",children:(0,n.jsxs)("div",{className:"container mx-auto",children:[(0,n.jsxs)("section",{className:"flex w-full md:flex-row xxxs:flex-col gap-1 overflow-hidden",children:[(0,n.jsx)(H.Z,{isLiveEAuctionData:o}),(0,n.jsx)(R.Z,{isLivePAuctionData:s,scrollingMessages:u})]}),(0,n.jsxs)("section",{className:"flex w-full md:flex-row xxxs:flex-col gap-1",children:[(0,n.jsx)("div",{className:"md:w-3/4 pt-2 pb-1",children:(0,n.jsx)(h,{bannerDetail:t})}),(0,n.jsx)("div",{className:"md:w-1/4 md:block pt-2 xxxs:hidden",children:(0,n.jsx)(g,{sideBannerDetail:l})})]}),(0,n.jsx)("section",{className:"flex w-full md:flex-row xxxs:flex-col gap-2 pt-2",children:(()=>{let e=!1;try{var t,l;return"object"==typeof s&&(null==s?void 0:null===(t=s.auction_data)||void 0===t?void 0:t.length)>0&&(null===(l=null==s?void 0:s.auction_data[0])||void 0===l?void 0:l.status)===1&&(e=!0),e}catch(t){return console.error(t),e}})()&&(0,n.jsx)(I,{isLiveAuctionData:s})}),(0,n.jsx)("section",{className:"flex w-full md:flex-row xxxs:flex-col gap-2 pt-2",children:(()=>{let e=!1;try{var t,l;return"object"==typeof o&&(null==o?void 0:null===(t=o.auction_data)||void 0===t?void 0:t.length)>0&&(null===(l=null==o?void 0:o.auction_data[0])||void 0===l?void 0:l.status)===1&&(e=!0),e}catch(t){return console.error(t),e}})()&&(0,n.jsx)(F,{isLiveAuctionData:o})}),(0,n.jsxs)("section",{className:"grid md:grid-cols-3 lg:gap-1 md:gap-2 w-full pt-6 xxxs:flex-col",children:[(0,n.jsx)("div",{children:(0,n.jsx)(v,{eShopData:i})}),(0,n.jsx)("div",{children:(0,n.jsx)(j,{pAuctionData:a})}),(0,n.jsx)("div",{children:(0,n.jsx)(_,{eAuctionData:r})})]}),(0,n.jsx)("section",{className:"w-full pt-1 xxxs:flex-col",children:(0,n.jsx)("div",{children:(0,n.jsx)(O,{randomProductsInHomePage:c,eshopRandomProductShowBtnThisWeek:d})})})]})})]})}},22632:function(e,t){"use strict";let l=e=>{var t,l,n;let a=null==e?void 0:e.replace(/[^\w\s]/g," "),r=null===(t=null==a?void 0:a.toLowerCase())||void 0===t?void 0:t.replace(/\s+/g,"-");return null===(l=null===(n=null==r?void 0:r.replace(/[^a-zA-Z0-9-]/g,""))||void 0===n?void 0:n.replace(/-{2,}/g,"-"))||void 0===l?void 0:l.replace(/^-+|-+$/g,"")};t.Z=e=>{try{var t,n,a;let r="",i="",s=e.code,o=e.isLive,c=null==s?void 0:s.toString().slice(-4),d=null==c?void 0:c.toString(),u=parseInt(null===(t=parseInt(d,10))||void 0===t?void 0:t.toString()),h=parseInt(null==s?void 0:s.toString().substring(0,2)),m=e.auctiontype;if("all"===m)switch(h){case 10:m=1==o?"live-e-auction":"e-auction-archive";break;case 20:m=1==o?"live-p-auction":"p-auction-archive";break;case 30:m="e-shop"}if(1===e.type){for(let t of e.category)if(Array.isArray(t)&&(null==t?void 0:t.length)>0){let e=t[0];if("number"==typeof(null==e?void 0:e.id)&&"string"==typeof(null==e?void 0:e.category)&&(null===(n=e.cat_url)||void 0===n?void 0:n.length)>0){let t=l(null==e?void 0:e.cat_url);i+="".concat(t,"/")}}}else if(2===e.type){for(let t of e.category)if(Array.isArray(t)&&(null==t?void 0:t.length)>0){let e=t[0];if("number"==typeof(null==e?void 0:e.id)&&"string"==typeof(null==e?void 0:e.category)&&(null===(a=e.cat_url)||void 0===a?void 0:a.length)>0){let t=l(null==e?void 0:e.cat_url);i+="".concat(t,"/")}}}let g=l(e.title),x=i.substring(0,(null==i?void 0:i.length)-1);switch(m){case"p-auction-archive":r="/printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;case"e-auction-archive":r="/e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;case"live-p-auction":r="/live-printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;case"live-e-auction":r="/live-e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;case"e-shop":r="/e-shop/pid-no-".concat(u,"/").concat(x,"/").concat(g)}return r}catch(e){console.error(e)}return""}},85231:function(e,t,l){"use strict";var n=l(6154),a=l(29552);n.default.create({baseURL:"".concat(a.Z.BACKEND_URL_SERVER,"/api/main"),headers:{"Content-Type":"application/json"},withCredentials:!0})},7023:function(e,t){"use strict";t.Z={OG_DESCRIPTION:"Auction, Buy & Sell of Coins, Notes, Stamps and Many Collectibles",OG_TYPE:"website",OG_IMAGE:"https://marudhararts.com/icons/ma_image.png",OG_TITLE:"marudhararts.com",OG_URL:"https://marudhararts.com"}},48274:function(e,t,l){"use strict";var n=l(85893),a=l(67294),r=l(97005),i=l(25258);t.Z=e=>{let{isLiveEAuctionData:t}=e,[l,s]=(0,a.useState)(!1),[o,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1),[h,m]=(0,a.useState)(0),[g,x]=(0,a.useState)(""),[p,f]=(0,a.useState)("");(0,a.useEffect)(()=>{var e,l,n;t&&(null==t?void 0:null===(e=t.auction_data)||void 0===e?void 0:e.length)>0&&(x(null===(l=null==t?void 0:t.auction_data[0])||void 0===l?void 0:l.auction_no),f(null===(n=null==t?void 0:t.auction_data[0])||void 0===n?void 0:n.session_1_start_time))},[t]),(0,a.useEffect)(()=>{var e,l,n,a;if(t&&(null==t?void 0:null===(e=t.auction_data)||void 0===e?void 0:e.length)>0){let e=(0,i.Oj)(null===(l=null==t?void 0:t.auction_data[0])||void 0===l?void 0:l.session_1_start_time),r=(0,i.L2)(null===(n=null==t?void 0:t.auction_data[0])||void 0===n?void 0:n.session_1_start_time,null===(a=null==t?void 0:t.auction_data[0])||void 0===a?void 0:a.session_1_end_time),o=(0,i.wW)();e?s(!0):s(!1),r?(c(!0),s(!1)):c(!1),o?(u(!0),s(!1)):u(!1)}}
1,[h]);let v=()=>{let e=!1;try{var l,n;return"object"==typeof t&&(null==t?void 0:null===(l=t.auction_data)||void 0===l?void 0:l.length)>0&&(null===(n=null==t?void 0:t.auction_data[0])||void 0===n?void 0:n.status)===1&&(e=!0),e}catch(t){return console.error(t),e}};return(0,a.useEffect)(()=>{let e=window.setInterval(()=>{m(e=>e+1)},500);return()=>window.clearInterval(e)},[]),(0,n.jsxs)(n.Fragment,{children:[v()&&(0,n.jsxs)(n.Fragment,{children:[l&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{pauseOnHover:!0,children:(0,n.jsxs)("div",{className:"px-10 text-red-800 cursor-pointer",children:["Our eAuction #",g," will take place on ",(0,n.jsxs)("strong",{children:[(e=>{let t=new Date(e),l=t.getTimezoneOffset();return t.setTime(t.getTime()+6e4*l),t.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"})})(p),"th"]})," . Lot closures will begin at ",(0,n.jsx)("strong",{children:(e=>{let t=new Date(e),l=t.getUTCHours(),n=t.getUTCMinutes();return"".concat(l%12==0?12:l%12,":").concat(n.toString().padStart(2,"0")," ").concat(l<12?"am":"pm")})(p)}),", with each lot closing every 30 seconds. Ensure your account is approved with the desired bidding limit to avoid last-minute disappointments. For assistance, contact us at ",(0,n.jsx)("strong",{className:"text-blue-600",children:"[email protected]"})," or ",(0,n.jsx)("strong",{className:"text-blue-600",children:"8867029800"}),"."]})})}),o&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{pauseOnHover:!0,children:(0,n.jsxs)("div",{className:"px-10 text-red-800 cursor-pointer",children:["eAuction #",g," is now LIVE! Bid on your favorite lots to win. Refresh if no changes appear. Ensure you have sufficient bidding limit. Clear cache and ensure strong internet connectivity for seamless bidding. For support, contact us at ",(0,n.jsx)("strong",{className:"text-blue-600",children:"8867029800"})," or ",(0,n.jsx)("strong",{className:"text-blue-600",children:"[email protected]"}),". Note: Outbid notifications will not be sent via email or SMS during the live sale."]})})})]}),d&&!v()&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{pauseOnHover:!0,children:(0,n.jsxs)("div",{className:"px-10 text-red-800 cursor-pointer",children:["We extend our gratitude to all bidders for participating and making eAuction ",g," a success. Invoices will be uploaded shortly. If you wish to sell your collections, please contact us at ",(0,n.jsx)("strong",{className:"text-blue-600",children:"[email protected]"})," with photos."]})})})})]})}},26612:function(e,t,l){"use strict";var n=l(85893),a=l(67294),r=l(97005),i=l(25258);t.Z=e=>{var t,l,s;let{isLivePAuctionData:o,scrollingMessages:c}=e,[d,u]=(0,a.useState)(!1),[h,m]=(0,a.useState)(!1),[g,x]=(0,a.useState)(!1),[p,f]=(0,a.useState)(!1),[v,y]=(0,a.useState)(0),[j,b]=(0,a.useState)(""),[w,N]=(0,a.useState)("");(0,a.useEffect)(()=>{var e,t,l;o&&(null==o?void 0:null===(e=o.auction_data)||void 0===e?void 0:e.length)>0&&(b(null===(t=null==o?void 0:o.auction_data[0])||void 0===t?void 0:t.auction_no),N(null===(l=null==o?void 0:o.auction_data[0])||void 0===l?void 0:l.session_1_start_time))},[o]),(0,a.useEffect)(()=>{var e,t,l,n,a,r,s;if(o&&(null==o?void 0:null===(e=o.auction_data)||void 0===e?void 0:e.length)>0){let e=(0,i.AV)(null===(t=c.portalInfoScrolling[0])||void 0===t?void 0:t.startdate_after_live,null===(l=c.portalInfoScrolling[0])||void 0===l?void 0:l.enddate_after_live),o=(0,i.L2)(null===(n=c.portalInfoScrolling[0])||void 0===n?void 0:n.startdate_for_prebid,null===(a=c.portalInfoScrolling[0])||void 0===a?void 0:a.enddate_for_prebid),d=(0,i.L2)(null===(r=c.portalInfoScrolling[0])||void 0===r?void 0:r.startdate_after_realtime,null===(s=c.portalInfoScrolling[0])||void 0===s?void 0:s.enddate_after_realtime);e?u(!0):u(!1),d?(m(!0),u(!1),x(!1)):m(!1),o?(x(!0),m(!1),m(!1)):x(!1)}},[v]),(0,a.useEffect)(()=>{let e=window.setInterval(()=>{y(e=>e+1)},500);return()=>window.clearInterval(e)},[]);let _=e=>{let t=document.createElement("textarea");return t.innerHTML=e,t.value};return(0,n.jsx)(n.Fragment,{children:(()=>{let e=!1;try{var t,l;return"object"==typeof o&&(null==o?void 0:null===(t=o.auction_data)||void 0===t?void 0:t.length)>0&&(null===(l=null==o?void 0:o.auction_data[0])||void 0===l?void 0:l.status)===1&&(e=!0),e}catch(t){return console.error(t),e}})()&&(0,n.jsxs)(n.Fragment,{children:[d&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{pauseOnHover:!0,children:(0,n.jsx)("div",{className:"px-10cursor-pointer",dangerouslySetInnerHTML:{__html:(null===(t=null==c?void 0:c.portalInfoScrolling[0])||void 0===t?void 0:t.scrolling_message_after_live)?_(c.portalInfoScrolling[0].scrolling_message_after_live):""}})})}),g&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{pauseOnHover:!0,children:(0,n.jsx)("div",{className:"px-10cursor-pointer",dangerouslySetInnerHTML:{__html:(null===(l=null==c?void 0:c.portalInfoScrolling[0])||void 0===l?void 0:l.scrolling_message_for_prebid)?_(c.portalInfoScrolling[0].scrolling_message_for_prebid):""}})})}),h&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{pauseOnHover:!0,children:(0,n.jsx)("div",{className:"px-10cursor-pointer",dangerouslySetInnerHTML:{__html:(null===(s=null==c?void 0:c.portalInfoScrolling[0])||void 0===s?void 0:s.scrolling_message_after_realtime)?_(c.portalInfoScrolling[0].scrolling_message_after_realtime):""}})})})]})})}},25258:function(e,t,l){"use strict";l.d(t,{AV:function(){return i},E1:function(){return r},H5:function(){return o},L2:function(){return s},Oj:function(){return a},dU:function(){return n},wW:function(){return c}});let n=()=>{try{let e=new Date,t=new Date("2024-05-25T05:30:00.000Z");if(e.getTime()>t.getTime())return!0;return!1}catch(e){return console.error(e),!1}},a=e=>{try{let t=new Date,l=new Date(e),n=new Date(l.getTime()-198e5);if(t.getTime()<n.getTime())return!0;return!1}catch(e){return console.error(e),!1}},r=(e,t)=>{try{let l=new Date,n=new Date(e),a=new Date(n.getTime()-198e5),r=new Date(t),i=new Date(r.getTime()-198e5);if(l.getTime()>a.getTime()&&l.getTime()<i.getTime())return!0;return!1}catch(e){return console.error(e),!1}},i=(e,t)=>{try{let l=new Date,n=new Date(e),a=new Date(n.getTime()-198e5),r=new Date(t),i=new Date(r.getTime()-198e5);if(l.getTime()>a.getTime()&&l.getTime()<i.getTime())return!0;return!1}catch(e){return console.error(e),!1}},s=(e,t)=>{try{let l=new Date,n=new Date(e),a=new Date(n.getTime()-198e5),r=new Date(t),i=new Date(r.getTime()-198e5);if(l.getTime()>a.getTime()&&l.getTime()<i.getTime())return!0;return!1}catch(e){return console.error(e),!1}},o=()=>{try{let e=new Date,t=new Date("2024-02-24T06:00:00.000Z"),l=new Date("2024-02-24T18:29:00.000Z");if(e.getTime()>t.getTime()&&e.getTime()<l.getTime())return!0;return!1}catch(e){return console.error(e),!1}},c=()=>{try{let e=new Date,t=new Date("2024-05-25T05:30:00.000Z"),l=new Date("2024-05-25T18:29:00.000Z");if(e.getTime()>t.getTime()&&e.getTime()<l.getTime())return!0;return!1}catch(e){return console.error(e),!1}}},67727:function(e,t,l){"use strict";var n=l(30120);t.Z=()=>{let e=n.ou.now().setZone("Asia/Kolkata").toFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").toString();return e}},61839:function(e,t,l){"use strict";var n=l(30120);t.Z=(e,t)=>{try{if(!e)return"Date does not exist";let l=new Date(e),a=l.valueOf();if("number"!=typeof a||isNaN(a))return"Invalid Date";let r={year:l.getUTCFullYear(),month:l.getUTCMonth(),date:l.getUTCDate(),hours:l.getUTCHours(),minutes:l.getUTCMinutes(),seconds:l.getUTCSeconds()},i=n.ou.fromObject({year:r.year,month:r.month+1,day:r.date,hour:r.hours,minute:r.minutes,second:r.seconds});if(t.length>0)return i.setZone("Asia/Kolkata").toFormat(t).toString();return i.setZone("Asia/Kolkata").toString()}catch(e){return console.error(e),"Invalid Date"}}},8916:function(e,t,l){"use strict";l(67294),t.Z=e=>(null==e?void 0:e.length)>=60?"".concat(e.substring(0,55)," ..."):e},9008:function(e,t,l){e.exports=l(42636)},97005:function(e,t,l){var n=l(67294),a=n&&"object"==typeof n&&"default"in n?n:{default:n};!function(e){if(!e||"undefined"==typeof window)return;let t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');let r=n.forwardRef(function({style:e={},className:t="",autoFill:l=!1,play:r=!0,pauseOnHover:i=!1,pauseOnClick:s=!1,direction:o="left",speed:c=50,delay:d=0,loop:u=0,gradient:h=!1,gradientColor:m="white",gradientWidth:g=200,onFinish:x,onCycleComplete:p,onMount:f,children:v},y){let[j,b]=n.useState(0),[w,N]=n.useState(0),[_,D]=n.useState(1),[C,S]=n.useState(!1),A=n.useRef(null),T=y||A,Z=n.useRef(null),L=n.useCallback(()=>
1{if(Z.current&&T.current){let e=T.current.getBoundingClientRect(),t=Z.current.getBoundingClientRect(),n=e.width,a=t.width;("up"===o||"down"===o)&&(n=e.height,a=t.height),l&&n&&a?D(a<n?Math.ceil(n/a):1):D(1),b(n),N(a)}},[l,T,o]);n.useEffect(()=>{if(C&&(L(),Z.current&&T.current)){let e=new ResizeObserver(()=>L());return e.observe(T.current),e.observe(Z.current),()=>{e&&e.disconnect()}}},[L,T,C]),n.useEffect(()=>{L()},[L,v]),n.useEffect(()=>{S(!0)},[]),n.useEffect(()=>{"function"==typeof f&&f()},[]);let M=n.useMemo(()=>l?w*_/c:w<j?j/c:w/c,[l,j,w,_,c]),k=n.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!r||i?"paused":"running","--pause-on-click":!r||i&&!s||s?"paused":"running","--width":"up"===o||"down"===o?"100vh":"100%","--transform":"up"===o?"rotate(-90deg)":"down"===o?"rotate(90deg)":"none"}),[e,r,i,s,o]),I=n.useMemo(()=>({"--gradient-color":m,"--gradient-width":"number"==typeof g?`${g}px`:g}),[m,g]),F=n.useMemo(()=>({"--play":r?"running":"paused","--direction":"left"===o?"normal":"reverse","--duration":`${M}
1s`,"--delay":`${d}s`,"--iteration-count":u?`${u}`:"infinite","--min-width":l?"auto":"100%"}),[r,o,M,d,u,l]),O=n.useMemo(()=>({"--transform":"up"===o?"rotate(90deg)":"down"===o?"rotate(-90deg)":"none"}),[o]),E=n.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,t)=>a.default.createElement(n.Fragment,{key:t},n.Children.map(v,e=>a.default.createElement("div",{style:O,className:"rfm-child"},e)))),[O,v]);return C?a.default.createElement("div",{ref:T,style:k,className:"rfm-marquee-container "+t},h&&a.default.createElement("div",{style:I,className:"rfm-overlay"}),a.default.createElement("div",{className:"rfm-marquee",style:F,onAnimationIteration:p,onAnimationEnd:x},a.default.createElement("div",{className:"rfm-initial-child-container",ref:Z},n.Children.map(v,e=>a.default.createElement("div",{style:O,className:"rfm-child"},e))),E(_-1)),a.default.createElement("div",{className:"rfm-marquee",style:F},E(_))):null});t.Z=r},88357:function(e,t,l){"use strict";l.d(t,{w_:function(){return o}});var n=l(67294),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r=n.createContext&&n.createContext(a),i=function(){return(i=Object.assign||function(e){for(var t,l=1,n=arguments.length;l<n;l++)for(var a in t=arguments[l])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},s=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(l[n[a]]=e[n[a]]);return l};function o(e){return function(t){return n.createElement(c,i({attr:i({},e.attr)},t),function e(t){return t&&t.map(function(t,l){return n.createElement(t.tag,i({key:l},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var l,a=e.attr,r=e.size,o=e.title,c=s(e,["attr","size","title"]),d=r||t.size||"1em";return t.className&&(l=t.className),e.className&&(l=(l?l+" ":"")+e.className),n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:l,style:i(i({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&n.createElement("title",null,o),e.children)};return void 0!==r?n.createElement(r.Consumer,null,function(e){return t(e)}):t(a)}}},function(e){e.O(0,[8907,120,1303,1624,9774,2888,179],function(){return e(e.s=78969)}),_N_E=e.O()}]);
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.