1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4472,7923],{84051:(e,i,t)=>{t.r(i),t.d(i,{default:()=>u,getButtonClassName:()=>d});var s=t(76848),r=t(48738),n=t.n(r),a=(t(9950),t(50663)),o=t(44414);const l=Object.assign({},a.A1);l.position="relative",l.lines=12,l.length=5,l.width=2,l.radius=5,l.color="#ccc";const c={BLACK:"bg-black hover:text-black border-black text-white hover:bg-white focus:text-white focus:bg-black",BLACK_NO_HOVER:"bg-black hover:text-white border-black text-white hover:bg-black focus:text-white focus:bg-black",BLACK_OUTLINE:"bg-white text-black border-black hover:bg-black hover:text-white focus:text-black focus:bg-white",DARK_ORANGE:"bg-[#CE4419] hover:text-[#CE4419] border-[#CE4419] text-white hover:bg-white focus:text-white focus:bg-[#CE4419]",DARK_ORANGE_OUTLINE:"bg-white hover:text-white border-[#CE4419] text-[#CE4419] hover:bg-[#CE4419] focus:text-[#CE4419] focus:bg-white",RUST_ORANGE:"bg-orange-700 hover:text-orange-700 border-orange-700 text-white hover:bg-white focus:text-white focus:bg-orange-700",RUST_ORANGE_NO_HOVER:"bg-orange-700 hover:text-white border-orange-700 text-white hover:bg-orange-700 focus:text-white focus:bg-orange-700",RUST_ORANGE_ORANGE_OUTLINE:"bg-white hover:text-white border-orange-700 text-orange-700 hover:bg-orange-700 focus:text-orange-700 focus:bg-white",LIGHT_ORANGE:"bg-[#E76852] hover:text-[#E76852] border-[#E76852] text-white hover:bg-white focus:text-white focus:bg-[#E76852]",LIGHT_ORANGE_OUTLINE:"bg-white hover:text-white border-[#E76852] text-[#E76852] hover:bg-[#E76852] focus:text-[#E76852] focus:bg-white",NIGHT_RIDER:"bg-[#333] hover:text-[#333] border-[#333] text-white hover:bg-white focus:text-white focus:bg-[#333]",NIGHT_RIDER_NO_HOVER:"bg-[#333] hover:text-white border-[#333] text-white hover:bg-[#333] focus:text-white focus:bg-[#333]",NIGHT_RIDER_OUTLINE:"bg-white hover:text-white border-[#333] text-[#333] hover:bg-[#333] focus:text-[#333] focus:bg-white",NIGHT_RIDER_OUTLINE_NO_HOVER:"bg-white hover:text-[#333] border-[#333] text-[#333] hover:bg-white focus:text-[#333] focus:bg-white",PEACH_CREAM:"bg-[#F5E8DF] hover:bg-[#EAD9CC] border-[#F5E8DF] text-[#333] focus:bg-[#F5E8DF] focus:text-[#333]",GHOST_GRAY:"bg-transparent border-transparent text-[#828282] hover:text-[#1b1615] focus:text-[#828282]"};function d(e="NIGHT_RIDER",i,t=!1){return n()(`${c[e]} inline-flex items-center font-montserrat-semibold text-[14px] uppercase tracking-[0.01em] leading-[140%] border border-solid px-[16px] py-[9px] rounded-[30px] focus:outline-none focus:no-underline`,i,{"w-[100px] h-[40px] justify-center":t})}const h=(e,i,t,s)=>i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:n()("ficon",i,t)}),(0,o.jsx)("span",{className:n()(s),children:e})]}):e;const u=function({typeOfButton:e="button",color:i="NIGHT_RIDER",title:t,icon:r,classNameIcon:n,classNameText:a,link:c,onClickOfLink:u,onSubmit:p,className:g,loading:b,disabled:m=!1,target:x,ariaLabel:f}){const w=d(i,g,b);if(c){const e=c.startsWith("http")&&!c.includes("bookclubs.com")||"_blank"===x;return(0,o.jsx)("a",{"aria-label":f||t,className:w,href:c,onClick:e=>null===u||void 0===u?void 0:u(e),...e?{rel:"sponsored noopener noreferrer",target:"_blank"}:{},children:h(t,r,n,a)})}return(0,o.jsx)("button",{"aria-label":f||t,className:w,disabled:m||b,onClick:()=>null===p||void 0===p?void 0:p(),type:e,children:b?(0,o.jsx)(s.y$,{config:l}):h(t,r,n,a)})}},43929:(e,i,t)=>{t.r(i),t.d(i,{default:()=>a});var s=t(9950),r=t(44414);class n extends s.Component{render(){return"local"!==this.props.type?(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description,className:this.props.className,fetchPriority:this.props.fetchPriority||"auto",height:this.props.height||"",loading:this.props.loading,src:this.props.image||this.props.src,tabIndex:this.props.tabIndex,width:this.props.width||""}):this.props.webp&&this.props.type.length?(0,r.jsxs)("picture",{children:[(0,r.jsx)("source",{srcSet:`media/webp/${this.props.webp}`,type:"image/webp"}),(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description,className:this.props.className,fetchPriority:this.props.fetchPriority||"auto",height:this.props.height||"",loading:this.props.loading,src:`media/images/${this.props.image||this.props.src}`,tabIndex:this.props.tabIndex,width:this.props.width||""})]}):(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description,className:this.props.className,fetchPriority:this.props.fetchPriority||"auto",height:this.props.height||"",loading:this.props.loading,src:`media/images/${this.props.image||this.props.src}`,tabIndex:this.props.tabIndex,width:this.props.width||""})}}const a=n},64115:(e,i,t)=>{t.r(i),t.d(i,{default:()=>z});var s=t(61727),r=t(23065),n=t(48738),a=t.n(n),o=t(91609),l=t(84051),c=t(43929),d=t(4159),h=t.n(d),u=t(80963),p=t(42894),g=t(64714),b=t(68784),m=t(9950),x=t(13939),f=t(50663),w=t(44414);const v=function({giveaway:e,userTimezone:i}){const{timeRemaining:t,isEnded:s,isUrgent:r}=(0,b.A)(e.end_date,5,i),{countFormatted:n}=(0,p.sP)(e),{isFeatured:d}=(0,p.sK)(e);return(0,w.jsxs)("li",{className:"giveaway-item",children:[(0,w.jsx)("div",{className:"giveaway-item__image",children:e.book.image_url?(0,w.jsx)(x.Ay,{height:197,once:!0,children:(0,w.jsxs)("a",{"aria-label":e.book.title||"",className:"wrap-image cursor-pointer",href:e.book.slug?`/books/${(0,g.Ay)(e.book.slug)}`:void 0,children:[d&&(0,w.jsx)("span",{className:"ribbon",children:"Featured"}),(0,w.jsx)(c.default,{className:"image w-full",description:e.book.title,height:197,image:e.book.image_url,loading:"lazy",webp:null,width:158})]})}):(0,w.jsx)("div",{className:"wrap-image",children:(0,w.jsx)("div",{className:"no-cover",children:(0,w.jsx)("span",{children:"No cover available"})})})}),(0,w.jsxs)("div",{className:"giveaway-item__content",children:[(0,w.jsx)("div",{className:"main-content",children:(0,w.jsxs)("div",{className:"content",children:[(0,w.jsx)("h3",{className:"book-title",children:(0,w.jsx)("a",{className:"book-title",href:(0,p.QW)(e.slug||""),children:e.book.title})}),(0,w.jsxs)("p",{className:"book-author",children:["By"," ",(0,w.jsx)(o.v$,{content:(0,g.qo)(e.book.get_author_name,e.book.authors,!0),replaceBreakLines:!1,tagName:"span"})]}),e.book.publisher&&(0,w.jsxs)("p",{className:"book-publisher",children:["Publisher: ",e.book.publisher]}),(0,w.jsxs)("p",{className:"book-prize-info",children:[!s&&(0,w.jsxs)("span",{className:a()("countdown-text",{urgent:r}),children:[e.start_date&&e.end_date&&(0,w.jsxs)(w.Fragment,{children:[h()(e.start_date).format("MMM D, YYYY")," - ",h()(e.end_date).format("MMM D, YYYY")," "]}),"(Ends in ",t,")"]}),(0,w.jsx)("span",{className:"book-prize-count",children:n})]}),e.prize_description&&(0,w.jsx)(o.v$,{className:"book-prize-desc",content:e.prize_description,replaceBreakLines:!1,tagName:"div",typeOpenLinks:f.kd.NEW_TAB}),e.book.description&&(0,w.jsx)(u.Y,{book:e.book,btnShowMoreBgColor:"#fff",className:"summary",classNameWrap:"!pb-[20px] !mb-0",limit:100})]})}),(0,w.jsx)("div",{className:"actions-content",children:(0,w.jsx)(l.default,{className:"enter-giveaway-btn !px-6 !normal-case",color:s?"NIGHT_RIDER":"DARK_ORANGE",link:(0,p.QW)(e.slug||""),loading:!1,title:s?"View Giveaway":"Enter Giveaway"})})]})]})};const y=function({giveaways:e,userTimezone:i}){return(0,w.jsxs)("section",{className:"active-giveaways-list",children:[(0,w.jsx)("h2",{className:"section-title",children:"Active Giveaways"}),(0,w.jsx)("div",{className:"book-list-content",children:(0,w.jsx)("ul",{className:"giveaway-list",children:e.map((e=>(0,w.jsx)(v,{giveaway:e,userTimezone:i},e.id)))})})]})},j=({banner:e})=>{var i;const t=(null===(i=e.banner_link)||void 0===i?void 0:i.startsWith("http"))&&!e.banner_link.includes("bookclubs.com"),s=()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(c.default,{"aria-hidden":"true",className:"giveaways-banner",height:235,image:e.banner,webp:"",width:1015}),(0,w.jsx)(c.default,{"aria-hidden":"true",className:"giveaways-banner-mobile",height:80,image:e.banner,webp:"",width:345})]});return e.banner?e.banner_link?(0,w.jsx)("div",{className:"giveaways-banner-container",children:(0,w.jsx)("a",{href:e.banner_link||"",...t?{rel:"sponsored noopener noreferrer",target:"_blank"}:{},children:s()})}):(0,w.jsx)("div",{className:"giveaways-banner-container",children:s()}):null};const N=function(){return(0,w.jsxs)("header",{className:"giveaways-header",children:[(0,w.jsx)("h1",{className:"page-title",children:"Bookclubs Giveaways!"}),(0,w.jsxs)("p",{className:"page-subtitle",children:["Enter to win free books for you and your club, sponsored by publishers and authors.",(0,w.jsx)("br",{}),"Bookworm Platinum and Pulitzer members get double entries!"]})]})};var k=t(99230);const E=function(){const[e,i]=(0,m.useState)(!1);return m.useEffect((()=>{"undefined"!==typeof window&&"#terms-conditions"===window.location.hash&&i(!0)}),[]),(0,w.jsxs)("section",{className:"terms-section",id:"terms-conditions",children:[(0,w.jsxs)("button",{className:"terms-toggle",onClick:()=>{i(!e)},type:"button",children:[(0,w.jsx)("span",{className:"terms-title",children:"Terms & Conditions"}),(0,w.jsx)("span",{className:a()("ficon ficon-arrow-down text-[12px]",{"rotate-180":e})})]}
1),(0,w.jsx)(k.Collapse,{"aria-hidden":!e,id:"collapse",isOpened:e,children:(0,w.jsxs)("div",{className:"terms-content",children:[(0,w.jsx)("h4",{children:"BOOKCLUBS GIVEAWAY TERMS & CONDITIONS"}),(0,w.jsx)("p",{className:"font-roboto-italic mb-3",children:"(Applies to all giveaways hosted on Bookclubs.com unless otherwise stated on the individual giveaway page)"}),(0,w.jsxs)("ul",{children:[(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"1. No Purchase Necessary"})}),(0,w.jsx)("p",{children:"No purchase necessary to enter or win."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"2. Eligibility"})}),(0,w.jsx)("p",{children:"Unless otherwise stated on the giveaway page, giveaways are open only to legal residents of the 50 United States and the District of Columbia who are 18 years of age or older and the legal age of majority in their jurisdiction at the time of entry. If a giveaway is open to Canada, it is open only to legal residents of Canada excluding Quebec. Void where prohibited by law."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"3. Bookclubs Account Required"})}),(0,w.jsx)("p",{children:"All entrants must have a registered Bookclubs.com account and must enter using the email associated with that account. By entering, the featured book will automatically be added to the entrant\u2019s \u201cWant to Read\u201d shelf."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"4. Entry Period and How to Enter"})}),(0,w.jsx)("p",{children:"Each giveaway will list its own start and end dates, prize details, number of winners, and eligible regions on the giveaway page. Only entries received during the listed entry period are valid. Limit one (1) entry per person per giveaway unless otherwise stated."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"5. Bonus Entries for Bookworms Members"})}),(0,w.jsx)("p",{children:"Members enrolled in Bookclubs\u2019 Bookworms program will automatically receive one (1) additional bonus entry per giveaway."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"6. Winner Selection and Notification"})}),(0,w.jsx)("p",{children:"Winners will be selected at random from all eligible entries. Odds of winning depend on the number of eligible entries received. Winners will be notified by email within ten (10) business days after the giveaway ends. If a winner does not respond within seven (7) days, an alternate winner may be selected."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"7. Prize Fulfillment and Shipping"})}),(0,w.jsx)("p",{children:"All prize fulfillment, including printing, shipment, and delivery, is the sole responsibility of the prize sponsor listed on the giveaway page. Bookclubs does not ship prizes and is not responsible for lost, delayed, damaged, misdirected, or undelivered prizes. Delivery timelines are not guaranteed."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"8. Club Prizes vs. Individual Prizes"})}),(0,w.jsx)("p",{children:"Giveaways may award prizes either to an individual entrant or to a book club. If a prize is designated as a club prize (for example, multiple copies of a book for club distribution), the full prize will be shipped to one winner at a single mailing address for their club. If a prize is designated as an individual prize, it will be shipped only to the individual winner listed on the entry."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"9. Prize Condition and Warranty"})}),(0,w.jsx)("p",{children:"All prizes are provided \u201cas is\u201d without warranty of any kind, express or implied, including any implied warranty of merchantability or fitness for a particular purpose. No substitution, transfer, or cash redemption of prizes is permitted unless stated by the sponsor."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("strong",{children:"10. Taxes, Duties, and Fees"}),(0,w.jsx)("p",{children:"Sponsors are responsible for covering the cost of shipping prizes. Winners may be responsible for any applicable taxes, duties, customs fees, or reporting obligations required by law in their jurisdiction."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"11. Marketing and Communications Consent"})}
1),(0,w.jsx)("p",{children:"By entering, you agree to receive marketing and prize-fulfillment communications from both Bookclubs and the prize sponsor. You may unsubscribe at any time through your Bookclubs account settings or via the sponsor\u2019s unsubscribe process."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"12. Publicity and Winner List Disclosure"})}),(0,w.jsxs)("p",{children:["Except where prohibited, entrants consent to the use of their first name, last initial, and state (or province, if applicable) for winner confirmation purposes. A list of winners may be requested by emailing"," ",(0,w.jsx)("a",{className:"partnership-email",href:"mailto:[email protected]",children:"[email protected]"})," ","within 30 days of winner selection."]})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"13. Disqualification"})}),(0,w.jsx)("p",{children:"Bookclubs reserves the right to disqualify entries that are incomplete, fraudulent, automated, generated by bots, or otherwise violate these Terms."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"14. General Release and Limitation of Liability"})}),(0,w.jsx)("p",{children:"By entering, you agree that Bookclubs, its employees, and affiliates are not liable for any claims, loss, or damage arising out of or relating to participation in the giveaway or use of the prize, including but not limited to technical failures, sponsor-related issues, or shipping errors."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"15. Governing Law"})}),(0,w.jsx)("p",{children:"These Terms are governed by the laws of the State of Maine, without regard to its conflict of law principles. Any disputes arising from or relating to a giveaway shall be resolved exclusively in the state or federal courts located in Maine."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"16. Modification or Cancellation"})}),(0,w.jsx)("p",{children:"Bookclubs reserves the right to modify, suspend, or cancel any giveaway at any time if fraud, technical issues, sponsor withdrawal, or other circumstances impair the integrity of the promotion."})]}),(0,w.jsxs)("li",{children:[(0,w.jsx)("p",{children:(0,w.jsx)("strong",{children:"17. Privacy and Site Terms"})}),(0,w.jsxs)("p",{children:["Personal information collected in connection with a giveaway will be used in accordance with the Bookclubs"," ",(0,w.jsx)("a",{href:"/privacy-policy",children:"Privacy Policy"})," and the Bookclubs"," ",(0,w.jsx)("a",{href:"/terms-of-use",children:"Website Terms of Use"}),". By entering, you consent to the collection, use, and disclosure of your information as outlined in these Terms, the Privacy Policy, and the Terms of Use, including sharing your information with the prize sponsor for fulfillment and marketing purposes."]})]})]})]})})]})};var _=t(94174),A=t(60853),C=t(28429);const I={zIndex:1};const z=function(){const e=(0,A.wA)(),i=(0,C.zy)().hash,t=(0,A.d4)((e=>{var i;return(null===(i=e.announcements)||void 0===i?void 0:i.isShowAnouncementBar)||!1})),n=(0,A.d4)((e=>e.auth.userInfo)),a=(0,A.d4)((e=>e.giveaways.giveaways)),o=(0,A.d4)((e=>e.giveaways.banners)),l=(0,A.d4)((e=>e.giveaways.fetching)),c=(0,A.d4)((e=>e.giveaways.bannersFetching)),d=l||c;(0,m.useEffect)((()=>{e((0,s.D1)()),e((0,s.XM)())}),[e]),(0,m.useEffect)((()=>{"#terms-conditions"===i&&setTimeout((()=>{(0,g.PA)("terms-conditions",t)}),500)}),[i,t]);const h=(0,m.useCallback)((()=>l?null:0===a.length?(0,w.jsxs)("div",{className:"empty-state",children:[(0,w.jsx)("div",{className:"empty-icon",children:(0,w.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,w.jsx)("path",{d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})})}),(0,w.jsx)("h2",{className:"empty-title",children:"No Giveaways Available"}),(0,w.jsx)("p",{className:"empty-description",children:"There are no active giveaways at the moment. Check back soon for new opportunities to win amazing books!"})]}):(0,w.jsx)(y,{giveaways:a,userTimezone:null===n||void 0===n?void 0:n.timezone})),[l,a,null===n||void 0===n?void 0:n.timezone]);return d?(0,w.jsx)(r.A,{children:(0,w.jsx)("div",{className:"giveaways-container",children:(0,w.jsx)("div",{className:"loading-state",children:(0,w.jsx)(_.A,{configSpinner:I})})})}):(0,w.jsx)(r.A,{children:(0,w.jsxs)("div",{className:"giveaways-container",children:[!c&&o.length>0&&(0,w.jsx)("div",{className:"giveaways-banners",children:o.filter((e=>e.is_active)).map((e=>(0,w.jsx)(j,{banner:e},e.id)))}),(0,w.jsx)(N,{}),h(),!l&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(R,{}),(0,w.jsx)(E,{})]})]})})},R=()=>(0,w.jsx)("section",{className:"partnership-section",children:(0,w.jsxs)("p",{className:"partnership-content",children:["Are you an author or publisher and would like to sponsor a giveaway on this page? Contact us here:"," ",(0,w.jsx)("a",{className:"partnership-email",href:"mailto:[email protected]",children:"[email protected]"})]})})},20064:(e,i,t)=>{t.d(i,{$c:()=>G,Cp:()=>O,G1:()=>B,Gz:()=>x,Kb:()=>p,L:()=>h,NR:()=>d,Ot:()=>C,WI:()=>s,YL:()=>a,_Q:()=>l,_g:()=>T,aV:()=>c,b8:()=>m,ex:()=>u,f:()=>k,gI:()=>g,hD:()=>o,hG:()=>E,j0:()=>N,jy:()=>I,k5:()=>j,lW:()=>y,me:()=>n,my:()=>b,nE:()=>r,pY:()=>f,pc:()=>R,qt:()=>w,tr:()=>_,w4:()=>
1z,w_:()=>v,zM:()=>A});const s="Giveaway For",r="Giveaway Details",n="About the Book",a="\u2190 Back to Giveaways",o="View full book details",l="Enter Giveaway",c="Giveaway Ended",d="Not Yet Active",h="Your entry is confirmed!",u="Shipping address",p="Edit Entry",g="Remove Entry",b="Giveaway Not Available",m="This giveaway is no longer available or does not exist.",x="Browse Other Giveaways",f="Are you sure you want to withdraw your entry? You can re-enter the giveaway after removal.",w="Yes, Remove",v="Failed to submit your entry. Please try again or contact support.",y="Failed to update your entry. Please try again or contact support.",j="Failed to remove your entry. Please try again or contact support.",N="Enter Giveaway",k="Please provide your shipping address to complete your entry.",E="Submit Entry",_="Edit Shipping Address",A="Update your shipping address for this giveaway.",C="Save Changes",I="Cancel",z="Giveaway Terms & Conditions",R="You must accept the terms and conditions",T="You're In! \ud83c\udf89",B="Thanks for entering the giveaway. Winners will be notified by email when the contest closes.",G="Hooray! As a Bookworm member you get double the entries, automatically!",O="Continue Browsing"},42894:(e,i,t)=>{t.d(i,{QW:()=>n,sK:()=>r,sP:()=>s});const s=e=>e?{count:e.number_of_prizes,description:e.prize_description,countFormatted:`${e.number_of_prizes} prize${1!==e.number_of_prizes?"s":""} available`}:{count:0,description:"",countFormatted:""},r=e=>{if(!e)return{isActive:!1,isUpcoming:!1,isEnded:!1,isFeatured:!1,isEntered:!1};const i=new Date,t=new Date(e.start_date),s=new Date(e.end_date);return{isActive:i>=t&&i<=s,isUpcoming:i<t,isEnded:i>s,isFeatured:e.is_featured,isEntered:e.has_entered}},n=e=>e?`/giveaways/${e}`:"/"},80963:(e,i,t)=>{t.d(i,{Y:()=>n});var s=t(91609),r=(t(9950),t(44414));function n({book:e,className:i,limit:t,btnShowMoreBgColor:n,showMoreClassName:a,classNameWrap:o}){const l=e.description||"";return l?(0,r.jsx)(s.ub,{btnShowMoreBgColor:n,className:i,classNameWrap:o,content:l,limit:t||162,showMoreClassName:a}):null}},68784:(e,i,t)=>{t.d(i,{A:()=>d});var s=t(4159),r=t.n(s),n=t(15007),a=t.n(n),o=t(36220),l=t.n(o),c=t(9950);function d(e,i=5,t){const[s,n]=(0,c.useState)(""),[a,o]=(0,c.useState)(""),[l,d]=(0,c.useState)(!1),[h,u]=(0,c.useState)(!1),p=(0,c.useRef)(!1),g=(0,c.useRef)(null),b=(0,c.useRef)(null);return(0,c.useEffect)((()=>(p.current=!0,()=>{p.current=!1})),[]),(0,c.useEffect)((()=>{if(!e)return;const s=r()(e);if(!s.isValid())return;const a=e=>{p.current&&e()},l=()=>{if(!p.current)return;const e=t?r()().tz(t):r()(),l=s.diff(e);if(l<=0)return void a((()=>{d(!0),n("Ended"),o("00d : 00h : 00m"),u(!1)}));const c=Math.floor(l/1e3),h=Math.floor(c/86400),g=Math.floor(c%86400/3600),b=Math.floor(c%3600/60),m=h<i;a((()=>u(m))),n(h>0?`${h} day${h>1?"s":""}`:g>0?`${g} hour${g>1?"s":""}`:`${b} min${b>1?"s":""}`);const x=`${String(h).padStart(2,"0")}d : ${String(g).padStart(2,"0")}h : ${String(b).padStart(2,"0")}m`;a((()=>o(x)))};if("undefined"===typeof window)return;g.current&&(clearInterval(g.current),g.current=null),b.current&&(clearTimeout(b.current),b.current=null),l();const c=t?r()().tz(t):r()(),h=s.diff(c)-864e5*i;return h<=0?g.current=setInterval(l,1e3):(g.current=setInterval(l,6e4),b.current=setTimeout((()=>{p.current&&(g.current&&(clearInterval(g.current),g.current=null),l(),g.current=setInterval(l,1e3))}),h)),()=>{g.current&&(clearInterval(g.current),g.current=null),b.current&&(clearTimeout(b.current),b.current=null)}}),[e,i,t]),{timeRemaining:s,formattedTime:a,isEnded:l,isUrgent:h}}r().extend(l()),r().extend(a())}}]);
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.