1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[72835],{62057:(e,o,t)=>{t.d(o,{A:()=>b});var n=t(48738),a=t.n(n),s=t(80886),i=t(91609),l=t(64714),r=t(40042),c=t(87946),_=t.n(c),d=(t(9950),t(50663)),E=t(11501),O=t(41058),m=t(44414);const N=Object.assign({},d.A1);N.position="relative",N.color="#ccc",N.lines=22,N.length=5,N.width=2,N.radius=5;const b=function(e){const{club:o,category:t,locationUserVisitBook:n,isShowExploreClubButton:c=!1}=e,N="Subscription"===t.name,b=o.description||o.seo_about_us,u=_()(t,"settings.variableWidth",!1)?{width:290}:{},p=_()(o,"currently_reading_books",[]).length>0?{title:"Currently reading",book:_()(o,"currently_reading_books[0]")}:_()(o,"recently_read_books",[]).length>0?{title:"Recently Read",book:{..._()(o,"recently_read_books[0]"),url:""}}:null;return(0,m.jsx)("div",{className:a()("jbc-club-card cursor-pointer",e.className||""),style:u,children:(0,m.jsx)("a",{"aria-label":`Learn more about ${o.name||""}`,href:`/join-a-book-club/club/${o.slug||""}`,target:"_self",children:(0,m.jsxs)("div",{className:"club-card-container",children:[(0,m.jsxs)("div",{className:"club-card-center",children:[(0,m.jsxs)("div",{className:"club-card-image",children:[(0,m.jsx)(i.XK,{className:"club-card-background",height:92,src:o.thumbnail_avatar||o.avatar||"media/images/club-avatar.png"}),o.payment_type||N?(0,m.jsx)("div",{className:"club-card-image__refresh ficon-refresh"}):null]}),(0,m.jsx)("div",{className:"club-card-title",children:o.name||""}),(0,m.jsx)("div",{className:"club-card-desc",children:b&&(0,m.jsx)("div",{className:"content",children:(0,m.jsx)(i.v$,{className:"content-html line-clamp-3 whitespace-pre-line",content:b||"",replaceBreakLines:!1})})}),function(){let e="",t="";return o.club_type===d.Qf&&(e="ficon-computer",t=E.pER),o.club_type===d.Qu&&(e="ficon-chat",t=E.D9x),o.club_type===d.i9&&(o.location_description||o.location)&&(e="ficon-location",t=o.location_description||o.location||""),t?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:"club-card-meets-location mb0",children:[(0,m.jsx)("div",{className:`club-card-meets-location__icon ${e}`}),(0,m.jsx)("p",{children:t})]}),(0,m.jsx)("p",{className:"club-card-meets-location",children:o.searchDistance?`${o.searchDistance} miles away`:null})]}):(0,m.jsx)("div",{className:"club-card-meets-location"})}(),o.number_members&&o.number_members>1?(0,m.jsxs)("div",{className:"club-card-members",children:[o.number_members," members"]}):null]}),(0,m.jsx)("div",{className:"club-card-book",children:p?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"club-card-book__title",children:p.title}),(0,m.jsx)("div",{className:"club-card-book__image",children:(0,m.jsx)("div",{className:"book-image",children:(0,m.jsx)(i.XK,{"aria-label":p.book.title,className:"image-mask inline-block",height:134,href:p.book.url||`/books/${(0,l.Ay)(p.book.slug)}`,onClick:e=>{e.stopPropagation(),n&&(0,r.m)(n,O.PM.BOOK)},rel:p.book.url?"sponsored noopener noreferrer":void 0,src:p.book.image_url,target:p.book.url?"_blank":"_self",type:"link",children:(0,m.jsx)("svg",{className:"img-responsive",height:134,width:92})})})})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"club-card-book__title",children:"Reading Next..."}),(0,m.jsx)("div",{className:"club-card-book__image--book-default ",children:(0,m.jsx)("div",{className:"book-image",children:(0,m.jsx)(s.A,{height:134,once:!0,children:(0,m.jsx)(i.p2,{alt:"Reading Next...",className:"banner",height:134,image:"join-book-club/reading-next.png",type:"local",webp:"join-book-club/reading-next.webp",width:123})})})})]})}),c&&(0,m.jsx)("div",{className:"text-center my-4",children:(0,m.jsx)(i.$n,{"aria-label":`Explore ${o.name||""} club`,color:"DARK_ORANGE_OUTLINE",link:`/join-a-book-club/club/${o.slug||""}`,loading:!1,onClickOfLink:e=>e.stopPropagation(),title:E.i30})})]})})})}},72835:(e,o,t)=>{t.d(o,{A:()=>O});var n=t(91609),a=t(64714),s=t(87946),i=t.n(s),l=t(9950),r=t(11501),c=t(44414);function _(e){var o;const{club:t,category:s,includeOnBookDetail:l}=e,_=t.description||t.seo_about_us||"",d=i()(s,"settings.variableWidth",!1)?{width:290}:{};return(0,c.jsx)("div",{className:"wrap-item",style:d,children:(0,c.jsxs)("div",{className:"club-item"+(l?" h-full include-book-detail":""),children:[(0,c.jsx)("div",{className:"link-wrap",children:(0,c.jsx)(n.XK,{"aria-label":t.name,className:"club-avatar inline-block",href:`/join-a-book-club/club/${t.slug}`,src:t.thumbnail_avatar||t.avatar||"media/images/club-avatar.png",type:"link"})}),(0,c.jsx)("a",{href:`/join-a-book-club/club/${t.slug}`,children:(0,c.jsx)("h2",{className:"club-name",children:t.name})}),_?(0,c.jsx)("div",{className:"content",children:(0,c.jsx)(n.v$,{className:"content-html line-clamp-3 whitespace-pre-line",content:_||"",replaceBreakLines:!1})}):null,l?(0,c.jsx)("div",{className:"text-center mb15",children:(0,c.jsx)("a",{"aria-label":`Learn more about ${t.name}`,className:"mtr-button btn-white",href:`/join-a-book-club/club/${t.slug}`,children:"Learn More"})}
1):null,l||!t.get_join_url&&!t.receiving_join_request_email?null:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h3",{"aria-label":String(r.WCV).toLowerCase(),className:"title-content",children:r.WCV}),t.receiving_join_request_email?(0,c.jsxs)("p",{className:"content",children:[(0,c.jsx)("span",{"aria-hidden":!0,tabIndex:-1,children:r.nov}),(0,c.jsx)("a",{"aria-label":"Send email to club",className:"link",href:`mailto:${t.receiving_join_request_email}`,children:r.dv0}),(0,c.jsx)("span",{"aria-hidden":!0,tabIndex:-1,children:r.wn1})]}):(0,c.jsxs)("p",{className:"content",children:[(0,c.jsxs)("span",{"aria-hidden":!0,tabIndex:-1,children:["Click invitation"," "]}),(0,c.jsx)("a",{"aria-label":"Click invitation link",className:"link",href:t.get_join_url,children:r.zDt})]})]}),l||!t.location_description&&!t.location?null:(0,c.jsxs)("p",{"aria-label":`Location: ${t.location_description||t.location}`,className:"content",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"ficon ficon-location",tabIndex:-1}),t.location_description||t.location]}),l?null:(0,c.jsxs)("p",{className:"content",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"ficon ficon-member",tabIndex:-1}),t.number_members&&t.number_members>1?String(t.number_members)+r.YHG:String(t.number_members)+r.fAT]}),null!==(o=t.currently_reading_books)&&void 0!==o&&o.length&&!l?(0,c.jsxs)("div",{className:"currently-reading",children:[(0,c.jsxs)("h3",{className:"title-content",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"ficon ficon-currently-reading",tabIndex:-1}),r.xh9]}),t.currently_reading_books.map((e=>{const o=e.url||(e.id&&e.slug?`/books/${(0,a.Ay)(e.slug)}`:void 0);return(0,c.jsx)("div",{className:"currently-reading-item",children:o?(0,c.jsx)("a",{className:"content link",href:o,rel:e.url?"noopener noreferrer":"",target:e.url?"_blank":"_self",children:e.title}):(0,c.jsx)("span",{className:"content",children:e.title})},e.id)}))]}):null]})})}var d=t(62057),E=t(60853);const O=function(e){const{category:o,searchByCategory:t,includeOnBookDetail:a,filterSubItems:s,showTotalClub:r,onGetClubsAreReadingBook:O,countOfclubsAreReadingBook:m=0,locationUserVisitBook:N}=e,b=(0,l.useMemo)((()=>i()(o,"total_clubs")||i()(o,"clubs.length")||0),[o]),u=(0,E.d4)((e=>e.book.clubsAreReadingBook.isLoading)),p=(o.clubs||[]).map(((e,n)=>t&&n>11?null:a?(0,c.jsx)(_,{category:o,club:e,includeOnBookDetail:a},n):(0,c.jsx)("div",{className:"club-item-jbc",children:(0,c.jsx)(d.A,{category:o,className:"inline-block h-full !my-0",club:e,locationUserVisitBook:N})},n)));return 0===Number(i()(o,"total_clubs"))||s&&i()(o,"is_sub_tag")?null:(0,c.jsx)("div",{className:`category_${o.id} list-club-by-category`,children:(0,c.jsxs)("div",{className:"center",children:[(0,c.jsx)("div",{className:"title-category",children:o.hideTitleLink?(0,c.jsxs)("span",{"aria-label":String(o.name||"").toLowerCase(),className:"link",id:`category_${o.id}`,children:[o.name||"",r&&`(${b} ${Number(b)>1?"clubs":"club"})`]}):(0,c.jsxs)("div",{className:"group-title",children:[(0,c.jsxs)("div",{children:[(0,c.jsxs)("a",{"aria-label":String(o.name||"").toLowerCase(),className:"link",href:`/join-a-book-club/${o.slug}`,id:`category_${o.id}`,children:[o.name||""," Book Clubs\xa0",`(${i()(o,"total_clubs")} ${Number(i()(o,"total_clubs"))>1?"clubs":"club"})`]}),o.description?(0,c.jsx)(n.v$,{className:"slight-text text-desc",content:o.description||"",replaceBreakLines:!1,tagName:"p"}):null]}),Number(i()(o,"total_clubs"))>4&&(0,c.jsx)("a",{"aria-label":String(o.name||"").toLowerCase(),className:"mtr-button btn-orange",href:`/join-a-book-club/${o.slug}`,children:"Browse all"})]})}),(0,c.jsx)("div",{className:"slider",children:t?(0,c.jsxs)("div",{className:"jbc-list-items",children:[p,(o.clubs||[]).length>12?(0,c.jsx)("div",{className:"wrap-view-all",children:(0,c.jsx)("a",{className:"link",href:`/join-a-book-club/${o.slug}`,children:"View all"})}):null]}):(0,c.jsxs)("div",{className:"jbc-list-items",children:[p,O&&b<m&&(0,c.jsx)("div",{className:"viewmore text-center my-auto ml-[-20px]",children:(0,c.jsx)("button",{className:`w-[190p
1x] ${u?"text-gray-400":"text-[#333]"} ml-[20px] font-montserrat-semibold text-[13px] text-left uppercase leading-[140%] border border-solid border-[#333] rounded-[20px] px-[20px] py-[10px]`,disabled:u,onClick:()=>{u||O()},type:"button",children:"View more clubs \u2192"})})]})})]})})}},41058:(e,o,t)=>{t.d(o,{In:()=>s,Ld:()=>a,PM:()=>n});const n={BOOK:"book",DISCUSSION_GUIDE:"discussionGuide"},a={AUTHOR_DETAILS:"Author details",BOOK_DETAILS:"Books with the same author in book details",BOOKS_WE_HAVE_READ:"Books we have read from the club",BOOKS_WE_WANT_TO_READ:"Books we want to read from the club",CLUB_CURRENTLY_READING:"Books currently reading from the club",USER_FAVORITE_BOOKS:"User's favorite books",USER_CURRENTLY_READING_BOOKS:"User's currently reading books",USER_BOOKS_HAVE_READ:"User's already read books",USER_BOOKS_WANT_READ:"User's books want to read",PROFILE_BOOK_RECOMMENDATIONS:"Book recommendations on my profile",PROFILE_BOOK_RECOMMENDATIONS_ON_OVERVIEW_PROFILE:"Book recommendations on overview profile",SEARCH_BOOKS:"Search books",BOOK_END:"Book end",BOOK_ON_JBC_PAGE:"Books on the JBC",BOOK_ON_JBC_CATEGORY_PAGE:"Books on the JBC Category",BOOK_FROM_JBC_DETAIL:"Book from JBC details",LIST_DISCUSSION_GUIDE:"List discussion guide",DISCUSSION_GUIDE_DETAILS:"Discussion guide detail",JBC_AT_HOME_PAGE:"Home page: Join a Book Club",BOOK_OF_THE_MONTH_AT_HOME_PAGE:"Home page: Book of the month",RECOMMENDED_READING_AT_HOME_PAGE:"Home page: recommended reading",POPULAR_BOOK_AT_HOME_PAGE:"Home page: popular books",USER_NOTIFICATIONS:"User's notifications",GREAT_INDIE_BOOKS:"Great indie books page",HEAR_OUR_VOICES:"Hear our voices bookclub page",FALL_BACK_INTO_BOOKCLUB:"Fall back into book club",ZIBBY_BOOK_ON_NEWSLETTER_PAGE:"Zibby Book on newsletter page",NEWSLETTER_BOTM_ON_CLUB_INSPIRATION:"Newsletter: book of the month on Club inspiration",NEWSLETTER_BOTM_ON_MONTHLY:"Newsletter: book of the month on Bookclubs monthly",NEWSLETTER_BOTM_ON_CUSTOM_EMAIL:"Newsletter: book of the month on Custom email",NEWSLETTER_GREAT_INDIE:"Newsletter: great indie reads on Bookclub monthly",NEWSLETTER_COMMUNITY_REVIEW:"Newsletter: Book of community reviews on Bookclubs monthly",NEWSLETTER_BOOK_PICK:"Newsletter: Anna's book pick (including Zoe, Carrie)",NEWSLETTER_RECOMMENDED_READING_HORIZONTAL_LIST:"Newsletter: Horizontal list books of recommended reading",NEWSLETTER_NEW_AND_TRENDING_HORIZONTAL_LIST:"Newsletter: Horizontal list books of new and trending",NEWSLETTER_RECOMMENDED_READING_VERTICAL_LIST:"Newsletter: Vertical list books of recommended reading",NEWSLETTER_LIST_NEW_AND_TRENDING:"Newsletter: List books of new and trending",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_CLUB_INSPIRATION:"Newsletter: Book recommended by sponsors on Club inspiration",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_NEW_AND_TRENDING:"Newsletter: Book recommended by sponsors on New and trending",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_CUSTOM_EMAIL:"Newsletter: Book recommended by sponsors on Custom email",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_BOOKCLUBS_MONTHLY:"Newsletter: Book recommended by sponsors on Bookclubs monthly",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_RECOMMENDED_READING:"Newsletter: Book recommended by sponsors on Recommended reading",NEWSLETTER_MONTHLY_GIVEAWAY_ON_CLUB_INSPIRATION:"Newsletter: Monthly giveaway on Club inspiration",LIST_OF_POLLS:"List of polls",LIST_OF_MEETINGS:"List of meetings",FORUM:"Forum",FORUM_MESSAGE_DETAILS:"Forum message details",EVENTS:"Events page",MEMBER_PROFILE:"Books from a member's profile",TOP_RATED_BOOKS_PAGE:"Book from top rated books of all time page",MOST_POPULAR_BOOKS_OF_THE_MONTH:"Book from most popular books of the month"},s={BOOK_DETAILS:"Book details",BOOK_OF_THE_MONTH_AT_HOME_PAGE:"Home page: Book of the month",RECOMMENDED_READING_AT_HOME_PAGE:"Home page: recommended reading",LIST_DISCUSSION_GUIDE:"List discussion guide",LIST_OF_MEETINGS:"List of meetings",GREAT_INDIE_BOOKS:"Great indie books page",READ_TO_LEARN:"Read to learn page",SEARCH_BOOKS:"Search books",TOP_RATED_BOOKS_PAGE:"Book from top rated books of all time page",MOST_POPULAR_BOOKS_OF_THE_MONTH:"Book from most popular books of the month",NEWSLETTER_BOTM_ON_CLUB_INSPIRATION:"Newsletter: book of the month on Club inspiration",NEWSLETTER_BOTM_ON_MONTHLY:"Newsletter: book of the month on Bookclubs monthly",NEWSLETTER_BOTM_ON_CUSTOM_EMAIL:"Newsletter: book of the month on Custom email",NEWSLETTER_RECOMMENDED_READING_HORIZONTAL_LIST:"Newsletter: Horizontal list books of recommended reading",NEWSLETTER_RECOMMENDED_READING_VERTICAL_LIST:"Newsletter: Vertical list books of recommended reading",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_CLUB_INSPIRATION:"Newsletter: Book recommended by sponsors on Club inspiration",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_NEW_AND_TRENDING:"Newsletter: Book recommended by sponsors on New and trending",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_CUSTOM_EMAIL:"Newsletter: Book recommended by sponsors on Custom email",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_BOOKCLUBS_MONTHLY:"Newsletter: Book recommended by sponsors on Bookclubs monthly",NEWSLETTER_BOOK_RECOMMENDED_BY_SPONSORS_ON_RECOMMENDED_READING:"Newsletter: Book recommended by sponsors on Recommended reading",NEWSLETTER_LIST_NEW_AND_TRENDING:"Newsletter: List books of new and trending"}},40042:(e,o,t)=>{t.d(o,{R:()=>c,m:()=>r});var n=t(31916),a=t(41058);const s=[{pattern:/^\/notifications$/,location:a.Ld.USER_NOTIFICATIONS}
1,{pattern:/^\/profile\/my-bookend$/,location:a.Ld.BOOK_END},{pattern:/^\/profile\/want-to-read-books$/,location:a.Ld.USER_BOOKS_WANT_READ},{pattern:/^\/profile\/favorite-books$/,location:a.Ld.USER_FAVORITE_BOOKS},{pattern:/^\/profile\/currently-reading-books$/,location:a.Ld.USER_CURRENTLY_READING_BOOKS},{pattern:/^\/profile\/already-read-books$/,location:a.Ld.USER_BOOKS_HAVE_READ},{pattern:/^\/profile\/recommendations$/,location:a.Ld.PROFILE_BOOK_RECOMMENDATIONS},{pattern:/^\/profile$/,location:a.Ld.PROFILE_BOOK_RECOMMENDATIONS_ON_OVERVIEW_PROFILE},{pattern:/^\/join-a-book-club$/,location:a.Ld.BOOK_ON_JBC_PAGE},{pattern:/^\/join-a-book-club\/[^/]+$/,location:a.Ld.BOOK_ON_JBC_CATEGORY_PAGE},{pattern:/^\/join-a-book-club\/club\/.+$/,location:a.Ld.BOOK_FROM_JBC_DETAIL},{pattern:/^\/great-indie-books$/,location:a.Ld.GREAT_INDIE_BOOKS},{pattern:/^\/books\/.+-\d+$/,location:a.Ld.BOOK_DETAILS},{pattern:/^\/hear-our-voices-bookclub$/,location:a.Ld.HEAR_OUR_VOICES},{pattern:/^\/fall-back-into-book-club$/,location:a.Ld.FALL_BACK_INTO_BOOKCLUB},{pattern:/^\/discussion-guides$/,location:a.Ld.LIST_DISCUSSION_GUIDE},{pattern:/^\/discussion-guides\/.+$/,location:a.Ld.DISCUSSION_GUIDE_DETAILS},{pattern:/^\/[^/]+\/polls$/,location:a.Ld.LIST_OF_POLLS},{pattern:/^\/forum$/,location:a.Ld.FORUM},{pattern:/^\/forum\/messages\/\d+$/,location:a.Ld.FORUM_MESSAGE_DETAILS},{pattern:/^\/[^/]+\/meetings$/,location:a.Ld.LIST_OF_MEETINGS},{pattern:/^\/[^/]+\/book-inspiration$/,location:a.Ld.BOOKS_WE_WANT_TO_READ},{pattern:/^\/[^/]+\/currently-reading$/,location:a.Ld.CLUB_CURRENTLY_READING},{pattern:/^\/[^/]+\/already-read-books$/,location:a.Ld.BOOKS_WE_HAVE_READ},{pattern:/^\/events$/,location:a.Ld.EVENTS},{pattern:/^\/author\/[\w-]+-\d+$/,location:a.Ld.AUTHOR_DETAILS},{pattern:/^\/members\/\d+$/,location:a.Ld.MEMBER_PROFILE},{pattern:/^\/books$/,location:a.Ld.SEARCH_BOOKS},{pattern:/^\/top-rated-books$/,location:a.Ld.TOP_RATED_BOOKS_PAGE},{pattern:/^\/(best-book-club-books\/this-month|most-popular-books\/\d{1,2}\/\d{4})$/,location:a.Ld.MOST_POPULAR_BOOKS_OF_THE_MONTH}],i=[{pattern:/^\/books\/.+-\d+$/,location:a.In.BOOK_DETAILS},{pattern:/^\/discussion-guides$/,location:a.In.LIST_DISCUSSION_GUIDE},{pattern:/^\/[^/]+\/meetings$/,location:a.In.LIST_OF_MEETINGS},{pattern:/^\/great-indie-books$/,location:a.In.GREAT_INDIE_BOOKS},{pattern:/^\/read-to-learn$/,location:a.In.READ_TO_LEARN},{pattern:/^\/books$/,location:a.In.SEARCH_BOOKS},{pattern:/^\/top-rated-books$/,location:a.In.TOP_RATED_BOOKS_PAGE},{pattern:/^\/(best-book-club-books\/this-month|most-popular-books\/\d{1,2}\/\d{4})$/,location:a.In.MOST_POPULAR_BOOKS_OF_THE_MONTH}],l={book:{locationUserVisitMap:a.Ld,patternsForTracking:s},discussionGuide:{locationUserVisitMap:a.In,patternsForTracking:i}};function r(e,o){if(e&&"undefined"!==typeof window){const t=Date.now(),a=JSON.stringify({location:window.btoa(e),pageType:o,timestamp:t});n.d.setItem("clickLocation",a)}}const c=(e,o)=>{try{const t=function(){const e=JSON.parse(n.d.getItem("clickLocation")||"{}");if("undefined"!==typeof window&&e.location&&e.pageType&&e.timestamp&&Date.now()-e.timestamp<18e4){const o=window.atob(e.location);return n.d.removeItem("clickLocation"),{location:o,pageType:e.pageType}}}();if(t&&t.pageType===e)return t.location;const a=o||("undefined"!==typeof document?document.referrer:"")||"";if(a){const o=l[e],t=new URL(a).pathname;for(const{pattern:e,location:n}of o.patternsForTracking)if(e.test(t))return n}return n.d.getItem("hasVisited")?"User reload the page":(n.d.setItem("hasVisited","true"),"Other")}catch(t){return""}}}}]);
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.