1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[17423,78910,448,62380],{61727:(e,t,r)=>{r.d(t,{D1:()=>c,KL:()=>m,Rz:()=>h,XM:()=>u,gm:()=>f,j$:()=>d,zH:()=>p});var n=r(80150),s=r(64714),o=r(20708),a=r(63600),i=r(78674),l=r(20064);function c(){return(e,t)=>{const{fetched:r,fetching:n}=t().giveaways;return r||n?Promise.resolve():(e({type:i.Rw_}),o.Ay.get((0,a.FWG)()).then((t=>{return e((r=t.data.results||[],{type:i.Dt,giveaways:r}));var r})).catch((()=>e({type:i.Ixv}))))}}function d(e){return t=>(t({type:i.aim}),o.Ay.get((0,a.rL$)(e)).then((e=>{return t((r=e.data,{type:i.MhQ,detail:r}));var r})).catch((()=>t({type:i.Bq7}))))}function u(){return(e,t)=>{const{bannersFetched:r,bannersFetching:n}=t().giveaways;return r||n?Promise.resolve():(e({type:i.mgq}),o.Ay.get((0,a.VJ5)()).then((t=>{return e((r=t.data.results||[],{type:i.oBQ,banners:r}));var r})).catch((()=>e({type:i.pYH}))))}}function m(e,t){return r=>o.Ay.post((0,a.WGH)(e),t).then((e=>(r({type:i.V4v,entry:{...t,is_winner:!1}}),e.data))).catch((e=>(r((0,n.ZH)((0,s.vG)(e,l.w_))),Promise.reject(e))))}function f(e){return t=>(t({type:i.edA}),o.Ay.get((0,a.KHD)(e)).then((e=>t({type:i.KBQ,entry:e.data}))).catch((()=>t({type:i.zle}))))}function p(e,t){return r=>o.Ay.patch((0,a.KHD)(e),t).then((e=>(r({type:i.jXA,entry:e.data}),e.data))).catch((e=>(r((0,n.ZH)((0,s.vG)(e,l.lW))),Promise.reject(e))))}function h(e){return t=>o.Ay.delete((0,a.KHD)(e)).then((()=>{t({type:i.tTX})})).catch((e=>(t((0,n.ZH)((0,s.vG)(e,l.k5))),Promise.reject(e))))}},47491:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(48738),s=r.n(n),o=r(68784),a=(r(9950),r(44414));function i({deadline:e,isCountdownWhenUrgent:t=!1,userTimezone:r}){const{formattedTime:n,isUrgent:i,timeRemaining:l}=(0,o.A)(e,5,r);return(0,a.jsx)("div",{className:"countdown-timer",children:(0,a.jsx)("p",{className:s()("countdown-timer__time text-gray-900",{"!text-[#FF0000]":i}),children:t&&i?n:l})})}},74023:(e,t,r)=>{r.d(t,{A:()=>j});var n=r(76848),s=r(59044),o=r(94174),a=r(64414),i=r(407),l=r(22381),c=r(9950),d=r(28429),u=r(10938),m=r(20064),f=r(28695),p=r(44414);const h=u.Ik().shape({name:u.Yj().required("Name is required"),address:u.Yj().required("Street address is required"),city:u.Yj().required("City is required"),state:u.Yj().required("State/Province is required"),zip:u.Yj().required("ZIP/Postal code is required"),termsAccepted:u.zM().oneOf([!0],m.pc)}),y={position:"relative",lines:12,length:5,color:"#fff",width:2,radius:4};function j({entryFormType:e,onCloseModal:t,onSubmit:r,currentUser:s,mode:o="enter",defaultValues:a}){const i=(0,c.useRef)(null);(0,l.A)(i,t);const d=(0,f.Ll)(s);return(0,p.jsx)(n.aF,{ariaHideApp:!1,className:"modal-shipping-address-for-giveaway entry-form-modal",isOpen:!!e,onRequestClose:t,shouldReturnFocusAfterClose:!1,children:(0,p.jsxs)("div",{ref:i,className:"modal-content",children:[(0,p.jsx)("button",{"aria-label":"Close",className:"btn-close",onClick:t,children:(0,p.jsx)("i",{className:"ficon ficon-close"})}),(0,p.jsx)(x,{defaultValues:a,isShowing:1===e,mode:o,onCloseModal:t,onSubmit:r}),(0,p.jsx)(v,{isBookwormMember:d,isShowing:2===e,onCloseModal:t})]})})}const x=({isShowing:e,onSubmit:t,onCloseModal:r,mode:n="enter",defaultValues:l})=>{var c,d,u,f,j;if(!e)return null;const x="edit"===n,v={name:null!==(c=null===l||void 0===l?void 0:l.name)&&void 0!==c?c:"",address:null!==(d=null===l||void 0===l?void 0:l.address)&&void 0!==d?d:"",city:null!==(u=null===l||void 0===l?void 0:l.city)&&void 0!==u?u:"",state:null!==(f=null===l||void 0===l?void 0:l.state)&&void 0!==f?f:"",zip:null!==(j=null===l||void 0===l?void 0:l.zip)&&void 0!==j?j:"",termsAccepted:x};return(0,p.jsxs)("div",{className:"modal-content__main",children:[(0,p.jsx)("h2",{children:x?m.tr:m.j0}),(0,p.jsx)("p",{children:x?m.zM:m.f}),(0,p.jsx)(i.Formik,{initialValues:v,onSubmit:(e,{setSubmitting:r})=>{t(e),r(!1)},validationSchema:h,children:({isSubmitting:e,setFieldValue:t,values:n,errors:l,touched:c})=>(0,p.jsxs)(i.Form,{className:"modal-content__form",method:"POST",noValidate:!0,children:[(0,p.jsx)(a.ConnectedFocusError,{}),(0,p.jsxs)("div",{className:"form-main",children:[(0,p.jsxs)("div",{className:"form-group",children:[(0,p.jsx)("label",{htmlFor:"name",children:"Name"}),(0,p.jsx)(i.Field,{className:l.name&&c.name?"error":"",id:"name",name:"name",type:"text"}),(0,p.jsx)(i.ErrorMessage,{name:"name",render:e=>(0,p.jsx)("p",{className:"txt-error",role:"alert",children:e})})]}),(0,p.jsxs)("div",{className:"form-group",children:[(0,p.jsx)("label",{htmlFor:"address",children:"Street address"}),(0,p.jsx)(i.Field,{className:l.address&&c.address?"error":"",id:"address",name:"address",type:"text"}),(0,p.jsx)(i.ErrorMessage,{name:"address",render:e=>(0,p.jsx)("p",{className:"txt-error",role:"alert",children:e})})]}),(0,p.jsxs)("div",{className:"form-group",children:[(0,p.jsx)("label",{htmlFor:"city",children:"City"}),(0,p.jsx)(i.Field,{className:l.city&&c.city?"error":"",id:"city",name:"city",type:"text"}),(0,p.jsx)(i.ErrorMessage,{name:"city",render:e=>(0,p.jsx)("p",{className:"txt-error",role:"alert",children:e})})]}),(0,p.jsxs)("div",{className:"form-group",children:[(0,p.jsx)("label",{htmlFor:"state",children:"State/Province"}),(0,p.jsx)(i.Field,{className:l.state&&c.state?"error":"",id:"state",name:"state",type:"text"}),(0,p.jsx)(i.ErrorMessage,{name:"state",render:e=>(0,p.jsx)("p",{className:"txt-error",role:"alert",children:e})})]}),(0,p.jsxs)("div",{className:"form-group",children:[(0,p.jsx)("label",{htmlFor:"zip",children:"ZIP/Postal code"}),(0,p.jsx)(i.Field,{className:l.zip&&c.zip?"error":"",id:"zip",name:"zip",type:"text"}),(0,p.jsx)(i.ErrorMessage,{name:"zip",render:e=>(0,p.jsx)("p",{className:"txt-error",role:"alert",children:e})})]})]}),(0,p.jsxs)("div",{className:"form-group checkbox",children:[(0,p.jsx)(s.default,{checked:n.termsAccepted,disabled:x,label:(0,p.jsxs)("span",{children:["By entering, I agree to the"," ",(0,p.jsx)("a",{className:"underline text-[#ce4419] hover:text-[#ce4419] hover:underline focus:text-[#ce4419] focus:underline",href:"/giveaways#terms-conditions",rel:"noopener noreferrer",target:"_blank",children:m.w4})," ","and understand that Bookclubs is not responsible for prize shipment or delivery. No purchase necessary. Void where prohibited."]}),loading:!1,onToggle:()=>t("termsAccepted",!n.termsAccepted)}),!x&&(0,p.jsx)(i.ErrorMessage,{name:"termsAccepted",render:e=>(0,p.jsx)("p",{className:"txt-error",role:"alert",children:e})})]}),(0,p.jsxs)("div",{className:"form-actions",children:[(0,p.jsx)("button",{disabled:e,onClick:r,type:"button",children:m.jy}),(0,p.jsx)("button",{className:"disabled:opacity-70 disabled:!cursor-not-allowed",disabled:e||!n.termsAccepted,type:"submit",children:e?(0,p.jsx)(o.A,{configSpinner:y}):x?m.Ot:m.hG})]})]})})]})},v=({isShowing:e,onCloseModal:t,isBookwormMember:r})=>{const n=(0,d.Zp)();return e?(0,p.jsxs)("div",{className:"modal-content__main confirmation-modal",children:[(0,p.jsx)("div",{className:"confetti"}),(0,p.jsx)("h2",{children:m._g}),(0,p.jsx)("p",{children:m.G1}),r&&(0,p.jsx)("p",{className:"bookworm-bonus",children:(0,p.jsx)("strong",{children:m.$c})}),(0,p.jsx)("button",{onClick:()=>{t(),n("/giveaways")},type:"button",children:m.Cp})]}):null}},59044:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var n=r(94174),s=r(48738),o=r.n(s),a=(r(9950),r(44414));const i={position:"relative",lines:8,length:3,color:"#333",width:2,radius:2};function l({checkboxClassName:e,checked:t=!1,className:r,disabled:s,label:l,labelClassName:c,loading:d,onClickLabel:u,onToggle:m}){const f=()=>{d||m()};return(0,a.jsxs)("div",{className:o()("flex cursor-pointer",r),children:[(0,a.jsx)("button",{className:o()("w-5 h-5 rounded-sm flex items-center justify-center transition-colors duration-200 shrink-0 "+(t&&!d?"bg-neutral-800 text-white":"bg-neutral-300 text-transparent"),e),disabled:s,onClick:f,type:"button",children:d?(0,a.jsx)(n.A,{configSpinner:i}):(0,a.jsx)("svg",{className:"w-2/3 h-2/3",fill:"none",stroke:"currentColor",strokeWidth:"3",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsx)("button",{className:o()("text-gray-800 text-left pl-2",c),disabled:s,onClick:u||f,type:"button",children:l})]})}},80399:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectedFocusError=void 0;var n=r(97242),s=r(49366),o=(0,n.formikConnect)(s.FocusError);t.ConnectedFocusError=o},49366:(e,t,r)=>{function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.FocusError=function(e){var t=e.formik,r=t.isSubmitting,n=t.touched,s=t.isValidating,l=t.errors,c=e.focusDelay,d=void 0===c?100:c;return(0,o.useEffect)((function(){if(r&&!s){var e,t=(0,i.default)(n),o=Object.keys(t).reduce((function(e,t){return(0,a.getIn)(l,t)&&e.push(t),e}),[]);if(o.length&&"undefined"!==typeof document)o.forEach((function(t){var r='[name="'.concat(t,'"]');e||(e=document.querySelector(r))})),setTimeout((function(){e&&e.focus()}),d)}}),[r,s,l,n,d]),o.default.createElement(o.Fragment,null)};var s,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=s?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(9950)),a=r(407),i=(s=r(30827))&&s.__esModule?s:{default:s};function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}},30827:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=Object.prototype.toString.call(r),o="[object Object]"===s||"[object Array]"===s,a=Array.isArray(r);!a&&o?Object.keys(r).forEach((function(t){var s=n?n+"."+t:t;e(r[t],s)}
1)):a?r.forEach((function(t,r){e(t,n+"["+r+"]")})):t[n]=r}(e),t}},97242:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formikConnect=function(e){return(0,n.connect)(e)};var n=r(407)},64414:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=r(80399);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=r(49366);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}))},82531:()=>{}}]);
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.