PageSourceSearch

https://bookclubs.com/static/js/JoinABookClubByCategory-52f0199e.be98adfa.chunk.js

js bookclubs.com collected 2026-09-24 09:17:22 UTC 17,765 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2226,7923],{41125:(e,s,t)=>{t.d(s,{A:()=>l});var i=t(73538),a=t(80886),o=t(75046),r=(t(9950),t(60853)),n=t(67812),c=t(44414);const l=function(){const e=(0,r.d4)((e=>e.auth.isAuth));return(0,c.jsxs)("div",{className:"cta-jbc-container mt0 center",children:[(0,c.jsxs)("div",{className:"cta-jbc-left",children:[(0,c.jsx)("div",{className:"cta-jbc-left__description",children:"Looking to start a new, open-to-the-public club or find new members or followers for your existing club? Contact us to add your club to our directory."}),(0,c.jsx)("div",{className:"cta-jbc-left__button",children:(0,c.jsx)("a",{className:"mtr-button btn-orange",href:e?"/jbc-inbound-leads":"/signup?redirect=/jbc-inbound-leads",onClick:function(){(0,o.yz)(n.V.JBC_CTA_BANNER_USER_CLICKS_LIST_CLUB_ON_THIS_PAGE)},children:"List your club on this page"})})]}),(0,c.jsx)("div",{className:"cta-jbc-right",children:(0,c.jsx)("div",{className:"cta-jbc-right__image",children:(0,c.jsx)(a.A,{height:198,once:!0,children:(0,c.jsx)(i.default,{alt:"CTA join book a club",className:"banner-mobile",height:198,image:"join-book-club/CTA_JBC2x.png",srcSetDesktop:"media/images/join-book-club/CTA_JBC.png 1x, media/images/join-book-club/CTA_JBC1.5x.png 1.5x, media/images/join-book-club/CTA_JBC2x.png 2x",type:"local",webp:"join-book-club/CTA_JBC2x.webp",width:538})})})})]})}},52885:(e,s,t)=>{t.r(s),t.d(s,{default:()=>S});var i=t(62057),a=t(41125),o=t(60827),r=t(72835),n=t(3016),c=t(48738),l=t.n(c),d=t(20410),p=t(76848),h=t(91609),b=t(64714),m=t(75046),u=t(75915),g=t.n(u),x=t(87946),j=t.n(x),N=t(86791),w=t.n(N),_=t(9950),f=t(50663),y=t(67812),v=t(11501),k=t(44414);const C={...f.A1,position:"relative",lines:12,length:5,width:2,radius:5,color:"#ccc"};const S=function(e){const{fetched:s,isFetching:t,searchResults:c,subCategories:u,mainCategory:x,count:N,searched:S,match:A,clubsOfMainCategory:$,dispatch:E,searchClubs:I,isAuth:P,nextSubCategories:B,childTags:O,isFetchingSubCategories:R,isShowAnouncementBar:L}=e,[T,U]=(0,_.useState)(""),[D,M]=(0,_.useState)(null),[F,G]=(0,_.useState)(null),[H,Y]=(0,_.useState)({keyword:""}),[J,K]=(0,_.useState)(!1),[q,Q]=(0,_.useState)(0);function z(e,s=0){Q(s||0);const t={search:!0,q:T.trim(),filter_by:"tags:=[`"+x.name+"`]",sort_by:e||"",typo_tokens_threshold:3,page:s+1},i=new URLSearchParams({keyword:T});e&&(i.set("sort_by",e),i.set("address",(null===D||void 0===D?void 0:D.address)||"")),s&&i.set("page",String(s));const a=`${window.location.pathname}?${i.toString()}`;(0,m.mO)(y.V.SEARCH_JBC,{keyword:t.q}),I(t).then((()=>{G(D),setTimeout((()=>{(0,b.PA)("jbc_content",L)}),300),window.history.pushState(null,"",a),Y({keyword:""})}))}(0,_.useEffect)((()=>{if(x.name&&(0,m.sx)(y.V.USER_VISIT_JBC_BY_CATEGORY_PAGE,"Join a Book Club",x.name.toLowerCase()),"undefined"!==typeof window&&j()(window,"location.search")){const e=new URL(window.location.href).searchParams;Q(Number(e.get("page")||0))}}),[]),(0,_.useEffect)((()=>{!e.isFetching&&J&&K(!1)}),[e.isFetching]),(0,_.useEffect)((()=>{if(!w()(x)&&j()(window,"location.search")){const e=new URL(window.location.href).searchParams,s=e.get("keyword")||"",t=e.get("sort_by")||"",i=e.get("address")||"",a=Number(e.get("page")||0)+1,o=(0,b.wz)(t);if(o.geopoint){const e={lat:Number(o.lat),lng:Number(o.lng),address:decodeURIComponent(i||"")};M(e),G(e)}(s||t)&&(U(s),I({search:!0,q:s||"*",filter_by:"tags:=[`"+x.name+"`]",sort_by:t,typo_tokens_threshold:3,page:a}))}}),[x]);const V=(0,_.useCallback)((e=>{if(e.preventDefault(),(null===D||void 0===D||!D.lat)&&(null===D||void 0===D||!D.lng)&&T.trim().length<=2)return Y({keyword:v.ZkC});let s="";null!==D&&void 0!==D&&D.lat&&D.lng&&(s=`location_geopoint(${D.lat}, ${D.lng}):asc`),z(s)}),[D,T,I]);function W(){window.history.pushState(null,"",window.location.pathname),Promise.all([K(!1),U(""),M(null),Y({keyword:""})]).then((()=>{I();const e={limit:f.ve,offset:0};Q(0),E((0,n.vt)(A.params.slug,e))}))}function X(e){const{name:s,value:t}=e.target;"searchType"!==s&&"keyword"!==s||U(t)}const Z=!!g()(u,(e=>(e.clubs||[]).length)),ee=(0,_.useMemo)((()=>c.map(((e,s)=>
1(0,k.jsx)(i.A,{category:{label:"search"},club:e},`${s}_${e.id}`)))),[c]),se=e=>{let s="",t="",i="?page="+(e-1),a="";if("undefined"!==typeof window){const o=new URL(window.location.href).searchParams;s=o.get("keyword")||"",t=o.get("sort_by")||"",a=o.get("sort_by")||"",(T||t)&&(i=`?keyword=${s}&sort_by=${t}&address=${a}&page=${e-1}`)}return`/join-a-book-club/${A.params.slug}${i}`},te=(0,_.useMemo)((()=>$.map(((e,s)=>(0,k.jsx)("div",{className:"club-item-jbc",children:(0,k.jsx)(i.A,{category:x,className:"inline-block h-full !my-0",club:e})},`${s}_${e.id}`)))),[$,x]),ie=(0,_.useMemo)((()=>{let e=`Hmm, looks like we don\u2019t have a club that matches that search. Check out some of the ${j()(x,"name","").toLowerCase()} book clubs below, or <a href='${P?"/jbc-inbound-leads":"/signup"}' class='link txt-underline'>click here to create your own public club</a>!`,s=`Not seeing the right club for you? <a class='link txt-underline' href='${P?"/jbc-inbound-leads":"/signup"}'>Click here to start your own book club</a>`;return S&&F&&(e=`No clubs were found within 50 miles of ${F.address}. Check out one of our <a href='/join-a-book-club/online' class='link txt-underline'> online book clubs </a> or <a href='${P?"/jbc-inbound-leads":"/signup"}' class='link txt-underline'>click here to start your own book club</a>`,s=`Not seeing the right club for you? Check out one of our <a href='/join-a-book-club/online' class='link txt-underline'> online clubs </a> or <a class='link txt-underline' href='${P?"/jbc-inbound-leads":"/signup"}'>click here to start your own book club</a>`),{descriptionNoClubFound:e,descriptionNoClubExpected:s}}),[S,F,x.name,P]),ae=(0,_.useMemo)((()=>{if(!x.description)return"";const e=x.description.slice(-1),s=["?","!","."].includes(e);return`${x.description}${s?"":"."} Find a book club, discover new books, and organize your reading on Bookclubs, the free hub for all your book club needs.`}),[x.description]),oe=(0,_.useMemo)((()=>x.total_clubs&&x.total_clubs>f.ve),[x.total_clubs]),re=N/f.ve;return s&&w()(x)?(0,k.jsx)(o.A,{}):(0,k.jsx)("div",{className:"faq-container join-book-club",children:(0,k.jsx)("div",{className:"container-fluid",children:(0,k.jsx)("div",{className:"row",children:(0,k.jsxs)("div",{className:l()("block-container",{"faq-content":!w()(u),"list-clubs-container":w()(u)}),children:[(0,k.jsx)("div",{className:"banner-jbc-by-category",children:(0,k.jsx)("div",{className:"center",children:(0,k.jsx)("div",{className:"banner-jbc-by-category__content",children:w()(x)?null:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("h1",{className:"banner-jbc-by-category__title",children:[x.name,"\xa0Book Clubs"]}),ae&&(0,k.jsx)("span",{className:"banner-jbc-by-category__desc",children:ae})]})})})}),oe||x.long_description||Z?(0,k.jsx)("div",{className:"search-club-container !pb-[20px]",children:(0,k.jsxs)("div",{className:"center",children:[Z&&(0,k.jsxs)("div",{className:"search-category",children:[(0,k.jsx)("h2",{className:"title-search",children:"Browse public book clubs:"}),O.map((e=>(0,k.jsx)("a",{className:"mtr-button btn-category !tracking-normal",href:`/join-a-book-club/${e.slug}`,children:e.name},e.id)))]}),!Z&&x.long_description&&(0,k.jsx)("p",{className:"md:pr-[50px] font-roboto-light text-[16px] leading-[140%] tracking-[0.02em] text-[#333]",children:x.long_description}),oe?(0,k.jsxs)("div",{className:"wrap-search",children:[(0,k.jsx)("h2",{className:"title-search",children:v.Ez$}),(0,k.jsxs)("form",{className:"search-club-form",method:"GET",onSubmit:V,children:[(0,k.jsx)("div",{className:"wrap-input-icon",children:(0,k.jsx)("input",{"aria-label":"Search keyword input",className:"input-text",name:"keyword",onChange:X,placeholder:"Search book clubs by keyword",type:"text",value:T})}),(0,k.jsx)("div",{className:"wrap-input-icon search-jbc min-h-[41px]",children:(0,k.jsx)(h.Iu,{className:"input-text",classNameContent:"top-[45px]",handleChange:e=>{M((s=>({...s,address:e})))},handleSelect:e=>{M(e?()=>({oldAdress:e.address,address:e.address,lat:e.lat,lng:e.lng}):null)},icon:!1,onBlurAddress:()=>{M((e=>({...e,address:(null===D||void 0===D?void 0:D.oldAdress)||""})))},place:y.R.JOIN_A_BOOK_CLUB,placeholder:"Search book clubs by location",value:(null===D||void 0===D?void 0:D.address)||""})}),H.keyword&&(0,k.jsx)("p",{className:"txt-error txt-center mb10",children:H.keyword}),(0,k.jsxs)("div",{className:"wrap-buttons",children:[(0,k.jsx)("button",{className:"btn-search",disabled:t&&s&&!J,type:"submit",children:t&&s&&!J?(0,k.jsx)(p.y$,{config:C}):v.Hwf}),e.searched?(0,k.jsx)("button",{"aria-label":"btn-reset",className:"btn-reset",onClick:W,children:t&&s&&J?(0,k.jsx)(p.y$,{config:C}):(0,k.jsx)("span",{className:"ficon ficon-reset"})}):null]})]})]}):null]})}):null,Z&&x.long_description&&(0,k.jsx)("div",{className:"long-desc pb-5 px-[15px] flex items-center justify-center",children:(0,k.jsx)("div",{className:"center",children:(0,k.jsx)("p",{className:"font-roboto-light text-[16px] leading-[140%] tracking-[0.02em] text-[#333]",children:x.long_description})})}),(0,k.jsx)("div",{className:"ad-container",children:(0,k.jsx)(d.A,{})}),(0,k.jsx)("div",{id:"jbc_content",children:t?(0,k.jsx)("div",{className:"pt35 pb35 mb35",children:(0,k.jsx)(p.y$,{config:C})}):S?N>0?(0,k.jsxs)("div",{className:"center search-results",children:[(0,k.jsx)("h2",{className:"title-search sm:my-[30px] mt-[20px] mb-[10px] pl-[16px] text-[20px]",children:(0,k.jsxs)("b",{children:[N," ",N>1?"CLUBS":"CLUB"," FOUND"]})}),(0,k.jsx)("div",{className:"jbc-list-items main-items",children:ee}),N/f.Sx>1?(0,k.jsxs)("div",{className:"txt-center mb30",children:[(0,k.jsx)(h.dK,{hrefBuilder:se,onPageChange:e=>{((e=0)=>{let s="";"undefined"!==typeof window&&(s=new URL(window.location.href).searchParams.get("sort_by")||"");z(s,e),Q(e)})(e.selected||0)},pageNumber:q,totalPage:N/f.Sx}),(0,k.jsx)("div",{className:"mt-5 mb-6",children:(0,k.jsx)(h.v$,{className:"description",content:ie.descriptionNoClubExpected||"",replaceBreakLines:!1,tagName:"p"})}),(0,k.jsx)(a.A,{})]}):null]}):(0,k.jsxs)("div",{className:"block-content",children:[(0,k.jsx)("div",{className:"no-items",children:(0,k.jsx)("div",{className:"center",children:(0,k.jsx)(h.v$,{className:"description",content:ie.descriptionNoClubFound||"",replaceBreakLines:!1,tagName:"p"})})}),(ne=S,ce=!(null===F||void 0===F||!F.address),ne&&ce?null:(0,k.jsx)("div",{className:"list-related-jbc center",children:(0,k.jsx)("div",{className:"jbc-list-items",children:[...$].splice(0,4).map(((e,s)=>(0,k.jsx)("div",{className:"club-item-jbc",children:(0,k.jsx)(i.A,{c
1ategory:{label:"search"},club:e})},`${s}_${e.id}`)))})})),(0,k.jsx)(a.A,{})]}):(0,k.jsxs)("div",{className:"list-clubs center",children:[(0,k.jsxs)("div",{className:"slider-category",children:[u.map((e=>(0,k.jsx)("div",{children:(0,k.jsx)(r.A,{category:e,filterSubItems:!1,includeOnBookDetail:!1,searchByCategory:!1,showTotalClub:!0})},e.id))),B&&(0,k.jsx)("div",{className:"text-center mb-8",children:(0,k.jsx)(h.$n,{color:"DARK_ORANGE",disabled:R,loading:R,onSubmit:()=>{E((0,n.xN)(A.params.slug,{offset:Number(B.split("offset=")[1]||0)}))},title:"Load More"})})]}),(0,k.jsxs)("div",{className:"list-all-jbc-of-category center",children:[Z&&(0,k.jsx)("div",{className:"px-4",children:(0,k.jsxs)("p",{"aria-label":x.name,className:"heading-category mt-[30px]",children:[x.name,` (${x.total_clubs} ${1===x.total_clubs?"club":"clubs"})`]})}),(0,k.jsx)("div",{className:"jbc-list-items main-items",id:"tag_content",children:te}),re>1&&(0,k.jsx)(h.dK,{hrefBuilder:se,onPageChange:e=>{(e=>{"undefined"!==typeof window&&window.history.pushState(null,"",`${window.location.pathname}?page=${e}`);const s={limit:f.ve,offset:e*f.ve};Q(e),E((0,n.vt)(A.params.slug,s)).then((()=>{setTimeout((()=>{(0,b.PA)("tag_content",L)}),300)}))})(e.selected||0)},pageNumber:q,totalPage:re})]})]})}),(0,k.jsx)("div",{className:"clearfix"})]})})})});var ne,ce}},60827:(e,s,t)=>{t.d(s,{A:()=>o});var i=t(91609),a=(t(9950),t(44414));function o(){return(0,a.jsxs)("section",{className:"not-found-component",children:[(0,a.jsx)("div",{className:"image-content",children:(0,a.jsx)(i.p2,{alt:"",className:"img-responsive",height:340,src:"club-avatar.png",type:"local",webp:"club-avatar.webp",width:340})}),(0,a.jsxs)("h2",{className:"title",children:[(0,a.jsx)("p",{children:"Hmm, looks like we can't find that club."}),(0,a.jsx)("p",{children:" We\u2019re sure there\u2019s another book club you\u2019ll love!"})]}),(0,a.jsx)("div",{className:"wrap-button",children:(0,a.jsx)("a",{className:"btn btn-default-corner btn-black",href:"/join-a-book-club",children:"Join a book club"})})]})}},43929:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var i=t(9950),a=t(44414);class o extends i.Component{render(){return"local"!==this.props.type?(0,a.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,a.jsxs)("picture",{children:[(0,a.jsx)("source",{srcSet:`media/webp/${this.props.webp}`,type:"image/webp"}),(0,a.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,a.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 r=o},73538:(e,s,t)=>{t.r(s),t.d(s,{default:()=>c});var i=t(48738),a=t.n(i),o=t(9950),r=t(44414);class n extends o.Component{render(){return"local"!==this.props.type?(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description||"",className:a()(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||0,width:this.props.width||""}):this.props.webp&&this.props.type.length?(0,r.jsxs)("picture",{children:[(0,r.jsx)("source",{media:"(min-width: 768px)",srcSet:`media/webp/${this.props.webp}`,type:"image/webp"}),(0,r.jsx)("source",{media:"(max-width: 767px)",srcSet:`media/webp/${this.props.webpMobile||this.props.webp}`,type:"image/webp"}),(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description||"",className:a()("d-none invisible md:block md:visible",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||0,width:this.props.width||""}),(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description||"",className:a()("md:hidden md:invisible",this.props.className),fetchPriority:this.props.fetchPriority||"auto",height:this.props.heightMobile||this.props.height||"",loading:this.props.loading,src:`media/images/${this.props.srcMobile||this.props.image||this.props.src}`,tabIndex:this.props.tabIndex||0,width:this.props.widthMobile||this.props.width||""})]}):(0,r.jsxs)("picture",{children:[(0,r.jsx)("source",{media:"(min-width: 768px)",srcSet:this.props.srcSetDesktop||`media/images/${this.props.image||this.props.src}`,type:"image/png"}),(0,r.jsx)("source",{media:"(max-width: 767px)",srcSet:this.props.srcSetMobile||this.props.srcSetDesktop||`media/images/${this.props.srcMobile||this.props.image||this.props.src}`,type:"image/png"}),(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description||"",className:a()("d-none invisible md:block md:visible",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||0,width:this.props.width||""}),(0,r.jsx)("img",{alt:this.props.description||this.props.alt||"","aria-label":this.props.description||"",className:a()("md:hidden md:invisible",this.props.className),fetchPriority:this.props.fetchPriority||"auto",height:this.props.heightMobile||this.props.height||"",loading:this.props.loading,src:`media/images/${this.props.srcMobile||this.props.image||this.props.src}`,tabIndex:this.props.tabIndex||0,width:this.props.widthMobile||this.props.width||""})]})}}const c=n},46137:(e,s,t)=>{var i;t.d(s,{F2:()=>r,Lx:()=>o,_0:()=>a});const a={API_KEY:null!==(i="9FHS0caqtO8vlkcXtR17990pidQDiYgn")?i:"",HOST:"6cry3ex9n0ua5w2qp-1.a1.typesense.net",PORT:443,PROTOCOL:"https",CACHE_SEARCH_RESULTS_FOR_SECONDS:120,PER_PAGE:16,GEO_LOCATION_FIELD:"location_geopoint",QUERY_BY:"name,about_us,join_a_bookclub_card_description,location_description,tags",QUERY_BY_WEIGHTS:"4,2,2,1,1",AROUND_RADIUS_METERS:8e4,SORT_BY:"position_on_jbc_page:desc"},o={INDEX_NAMES:{STAGING:"staging-chapter-clubs",PRODUCTION:"production-chapter-clubs"},CHAPTER_FIELD:"chapter_club_slug",QUERY_BY:"name,about_us,description",QUERY_BY_WEIGHTS:"4,2,2",GEO_LOCATION_FIELD:"location_geopoint"},r={STAGING:"staging-jbcs",PRODUCTION:"production-jbcs"}}}]);

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.