PageSourceSearch

https://bookclubs.com/static/js/components-pages-DeliveryServicePage-tsx.b95f4935.chunk.js

js bookclubs.com collected 2026-09-24 09:18:45 UTC 13,452 bytes, 1 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[22069,78910,448,62380],{34399:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(48738),s=r.n(n),o=r(76848),l=r(86791),i=r.n(l),a=r(9950),c=r(44414);const u=({placeholder:e,field:t,form:r,options:n,isMulti:l=!1,className:a})=>(0,c.jsx)(o.l6,{className:s()("custom-select",a),classNamePrefix:"select",closeOnSelect:!1,isMulti:l,name:t.name,onChange:e=>{r.setFieldValue(t.name,l?i()(e)?[]:e.map((e=>e.value)):e.value)},options:n,placeholder:e,value:i()(n)?l?[]:"":l?n.filter((e=>t.value.indexOf(e.value)>=0)):n.find((e=>e.value===t.value))});var d=r(64414),p=r(407),m=r(10938);const f=m.Ik().shape({clubId:m.YO().required("This field is required")});function x({clubOptions:e,data:t,updateData:r}){const[n,s]=(0,a.useState)({clubId:[],sendWhen:"1"}),o=e.map((e=>({value:e.id,label:e.name})));return(0,a.useEffect)((()=>{t&&s(t)}),[]),(0,c.jsx)("div",{className:"sm:py-12 sm:pr-12 py-6 pr-4",children:(0,c.jsx)(p.Formik,{enableReinitialize:!0,initialValues:n,onSubmit:e=>{r(e)},validationSchema:f,children:()=>(0,c.jsxs)(p.Form,{method:"POST",children:[(0,c.jsx)(d.ConnectedFocusError,{}),(0,c.jsx)("div",{className:"max-w-[450px]",children:(0,c.jsx)(p.Field,{"aria-label":"Choose your book clubs",className:"w-[400px] h-[50px] pl-4 pr-4 rounded-full block border-gray-400",component:u,isMulti:!0,name:"clubId",options:o,placeholder:"Choose club"})}),(0,c.jsx)(p.ErrorMessage,{name:"clubId",render:e=>(0,c.jsx)("p",{className:"txt-error",role:"alert",children:e})}),(0,c.jsx)("div",{className:"mb-6"}),(0,c.jsxs)("div",{className:"inline-flex items-center mb-6",children:[(0,c.jsx)("span",{className:"ficon-checked border-2 rounded-full p-1 text-[12px] border-solid text-[#E76852]"}),(0,c.jsx)("span",{className:"text-[14px] leading-tight md:text-[16px] lg:text-[18px] pl-2",children:"Send me the book when my meeting is scheduled"})]}),(0,c.jsx)("div",{className:"bg-[#000] bg-opacity-5 text-[#333] p-[15px] pb-[13px] text-[14px] font-light leading-[150%]",children:(0,c.jsx)("p",{children:"You'll receive an email from Shelf Service when your meeting is scheduled confirming your shipment. To skip, simply reply within 24 hours."})}),(0,c.jsx)("br",{}),(0,c.jsx)("div",{className:"mb-6"}),(0,c.jsx)("div",{children:(0,c.jsx)("button",{className:"mtr-button btn-orange mt-4",type:"submit",children:"Continue"})})]})})})}},20178:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(9950);var n=r(44414);function s({data:e}){return(0,n.jsxs)("div",{className:"flex items-center justify-center flex-col py-16",children:[(0,n.jsx)("img",{alt:"Success icon",height:100,src:"media/images/green-check.svg",width:100}),(0,n.jsx)("p",{className:"text-center font-merriweather-light text-base sm:text-xl pt-6 pb-2",children:"Thank you for signing up for Shelf Service!"}),1===Number(null===e||void 0===e?void 0:e.sendWhen)?(0,n.jsx)("p",{className:"text-sm sm:text-base text-center font-roboto pb-6",children:"Your first book will arrive as soon as your club schedules its next meeting."}):(0,n.jsx)("p",{className:"text-sm sm:text-base text-center font-roboto pb-6",children:'Your first book will arrive as soon as you RSVP "Yes" to your next meeting.'}),(0,n.jsx)("a",{className:"mtr-button btn-orange",href:"/",children:"back home"})]})}},40163:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(34399),s=r(20178),o=r(24499),l=r(65604),i=r.n(l),a=r(69084),c=r(91609),u=r(196),d=r(64714),p=r(9950),m=r(60853),f=r(50663),x=r(44414);const b=(0,o.Ay)({resolved:{},chunkName:()=>"StepTwo",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>(0,d.L5)((()=>Promise.all([r.e(25285),r.e(30917)]).then(r.bind(r,3085)))),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return r(t)},resolve(){return 3085}}),h=(0,u.A)("test")?null:(0,a.loadStripe)(f.RD);function v({activeStep:e}){const t=[{title:"Choose Club",active:0,className:"relative text-sm lg:text-base py-2 px-4 pr-2 lg:px-6 xl:px-8 sm:px-8 text-white h-[40px] flex items-center justify-center rounded-tl-lg rounded-bl-lg z-[2]"},{title:"Payment",active:1,className:"relative text-sm lg:text-base py-2 pl-8 lg:pl-11 pr-2 lg:pr-6 xl:pr-8 xl:pl-16 sm:pr-8 sm:pl-16 text-white h-[40px] flex items-center justify-center z-[1]"},{title:"Success",active:2,className:"relative text-sm lg:text-base py-2 pl-8 lg:pl-11 pr-2 lg:pr-6 xl:pr-8 xl:pl-16 sm:pr-8 sm:pl-16 text-white h-[40px] flex items-center justify-center z-0"}].map((({title:t,active:r,className:n})=>(0,x.jsxs)("div",{className:`\n          ${n}\n          ${r<e?"bg-gray-500":r===e?"bg-[#333]":"bg-gray-300 text-[#333]"}\n        `,children:[t,(0,x.jsx)("div",{className:`\n            absolute right-[-24px]\n            w-0 h-0 border-solid top-[-4px]\n            border-t-[24px] border-t-transparent\n            border-l-[24px] border-l-white\n            z-1\n            border-b-[24px] border-b-transparent\n            ${2===r?"hidden":""}\n          `}),(0,x.jsx)("div",{className:`\n            absolute -right-[20px]\n            w-0 h-0 border-solid top-[-4px]\n            border-t-[24px] border-t-transparent\n            border-l-[24px]\n            border-b-[24px] border-b-transparent\n            ${r<e?"border-l-gray-500":r===e?"border-l-[#333]":"border-l-gray-300 text-[#333]"}\n          `})]},t)));return(0,x.jsx)("div",{className:"flex h-[40px] overflow-hidden items-center",children:t})}function y(){const[e,t]=(0,p.useState)({}),[r,o]=(0,p.useState)(0),{results:i}=(0,m.d4)((e=>e.clubReducers));return(0,x.jsx)("div",{className:"bookclubs__container",children:(0,x.jsxs)("div",{className:"flex lg:flex-row flex-col-reverse ",children:[(0,x.jsxs)("div",{className:"flex-1 sm:pl-16 px-4 pt-8 sm:pt-16 bg-white relative flex-col flex",children:[(0,x.jsxs)("div",{className:"w-full 2xl:w-[720px] max-w-full ml-auto flex flex-col",children:[(0,x.jsx)("h1",{className:"text-3xl font-merriweather-light mb-4",children:"Shelf Service"}),(0,x.jsx)(v,{activeStep:r}),0===r?(0,x.jsx)(n.A,{clubOptions:i,data:e.stepOne,updateData:r=>{t({...e,stepOne:r}),o(1)}}):null,1===r?(0,x.jsx)(l.Elements,{stripe:h,children:(0,x.jsx)(b,{data:e.stepOne,goBack:()=>o(0),success:()=>o(2)})}):null,2===r?(0,x.jsx)(s.A,{data:e.stepOne}):null]}),(0,x.jsx)("div",{className:"w-full 2xl:w-[720px] max-w-full ml-auto flex flex-col mt-auto",children:(0,x.jsxs)("div",{className:"text-base w-full h-[50px] mb-12",children:[(0,x.jsx)("img",{alt:"",className:"relative -top-2",height:30,src:"media/images/bookclubs-logo.svg",width:45}),"\xa0partners with\xa0",(0,x.jsx)("img",{alt:"",className:"relative -top-1",height:50,src:"media/images/stripe-logo.svg",width:83}),"\xa0the leading global credit card payment service"]})})]}),(0,x.jsxs)("div",{className:"text-base bg-[#F5EACA] flex-1 bg-gradient-to-b from-[#FFFAF7] to-[#FFE7D6]",children:[(0,x.jsxs)("div",{className:"flex items-center justify-center flex-col px-8 pt-16",children:[(0,x.jsx)("div",{children:(0,x.jsx)("img",{alt:"Shelf service",className:"mx-auto max-w-full mb-8 mt-6 inline-block",height:78,src:"media/images/shelf-service.svg",width:269})}),(0,x.jsx)("p",{className:"text-base xl:text-lg font-roboto-light mb-6 text-center xl:w-[552px] w-[480px] max-w-full mx-auto",children:"For your automatic book club book delivery. Sign up once to receive the book in the mail every time your club schedules a meeting. You'll never get behind on your reading again!"})]}),(0,x.jsx)(c.p2,{className:"block h-auto w-full max-w-full mb-6",description:"subscription delivery service",height:271,image:"paper-box-packaging-delivery-concept.png",type:"local",webp:"paper-box-packaging-delivery-concept.webp",width:720}),(0,x.jsx)("p",{className:"text-sm font-roboto-light mb-12 text-center w-full xl:w-[625px] max-w-full mx-auto px-4",children:"You'll be charged the price of the book plus shipping. All Shelf Service customers receive 10% off the publisher's list price. Your purchase supports Bookclubs AND independent bookstores. You may opt-out of any book purchase by replying \"skip\" to your confirmation email within 24 hours."})]})]})})}const g=y},4837:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DeliveryServicePage:()=>l,default:()=>i});var n=r(23065),s=r(40163),o=(r(9950),r(44414));function l(){return(0,o.jsx)(n.A,{children:(0,o.jsx)(s.A,{})})}const i=l},98023:(e,t)=>
1{"use strict";function r(e){return r="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},r(e)}var n,s="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,l="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",i=null,a=function(e){return null!==i||(i=new Promise((function(t,r){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(l),window.Stripe)t(window.Stripe);else try{var n=function(){for(var e=document.querySelectorAll('script[src^="'.concat(s,'"]')),t=0;t<e.length;t++){var r=e[t];if(o.test(r.src))return r}return null}();n&&e?console.warn(l):n||(n=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(s).concat(t);var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r}(e)),n.addEventListener("load",(function(){window.Stripe?t(window.Stripe):r(new Error("Stripe.js not available"))})),n.addEventListener("error",(function(){r(new Error("Failed to load Stripe.js"))}))}catch(i){return void r(i)}else t(null)}))),i},c=function(e,t,r){if(null===e)return null;var n=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:t})}(n,r),n},u=function(e){var t="invalid load parameters; expected object of shape\n\n    {advancedFraudSignals: boolean}\n\nbut received\n\n    ".concat(JSON.stringify(e),"\n");if(null===e||"object"!==r(e))throw new Error(t);if(1===Object.keys(e).length&&"boolean"===typeof e.advancedFraudSignals)return e;throw new Error(t)},d=!1,p=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d=!0;var s=Date.now();return a(n).then((function(e){return c(e,t,s)}))};p.setLoadParameters=function(e){if(d&&n){var t=u(e);if(Object.keys(t).reduce((function(t,r){var s;return t&&e[r]===(null===(s=n)||void 0===s?void 0:s[r])}),!0))return}if(d)throw new Error("You cannot change load parameters after calling loadStripe");
1n=u(e)},t.loadStripe=p},69084:(e,t,r)=>{e.exports=r(98023)},80399:(e,t,r)=>{"use strict";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)=>{"use strict";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,a=t.errors,c=e.focusDelay,u=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,l.getIn)(a,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()}),u)}}),[r,s,a,n,u]),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=a();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 l=s?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(9950)),l=r(407),i=(s=r(30827))&&s.__esModule?s:{default:s};function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},30827:(e,t)=>{"use strict";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,l=Array.isArray(r);!l&&o?Object.keys(r).forEach((function(t){var s=n?n+"."+t:t;e(r[t],s)}
1)):l?r.forEach((function(t,r){e(t,n+"["+r+"]")})):t[n]=r}(e),t}},97242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formikConnect=function(e){return(0,n.connect)(e)};var n=r(407)},64414:(e,t,r)=>{"use strict";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]}}))}))}}]);

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.