PageSourceSearch

https://bookclubs.com/static/js/components-pages-JoinABookClubPage-tsx.0b48c84a.chunk.js

js bookclubs.com collected 2026-09-24 09:17:19 UTC 10,539 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1446],{3016:(e,t,o)=>{o.d(t,{Io:()=>I,Nf:()=>S,Ng:()=>B,R6:()=>b,SD:()=>E,Vz:()=>R,W8:()=>C,hd:()=>T,iP:()=>P,ix:()=>g,ke:()=>L,sr:()=>k,vt:()=>G,xN:()=>O});var n=o(18971),r=o(34507),s=o(196),u=o(38660),i=o(64714),l=o(19145),a=o(87946),d=o.n(a),c=o(86791),v=o.n(c),h=o(20708),y=o(63600),p=o(78674),A=o(50663),f=o(46137);function m(){return{type:p.kyY}}function _(e,t,o,n,r){return{type:p.teR,clubs:e,count:t,params:o,fetchWithoutClubTag:n,numberOfClubs:r}}function b(e,t=!1,o){const n={url:y.JHx(),method:"GET"};return n.params=e,r=>(r(m()),(0,h.Ay)(n).then((n=>r(_(n.data.results,n.data.count,e,t,o)))).catch((()=>r(_([],0,e,t,o)))))}function g(e={}){return t=>(0,h.Ay)({url:y.$qL(),method:"GET",headers:(0,u.I)(e)}).then((e=>{return t((o=e.data.results,{type:p.zVN,tags:o}));var o}))}function C(e,t={}){return(o,r)=>{var s,l;const a=(null===(s=r())||void 0===s||null===(l=s.joinABookClub)||void 0===l?void 0:l.limitedClubsByCategory)||[];return o({type:p.FUo}),(0,h.Ay)({url:y.$qL(),method:"GET",headers:(0,u.I)(t),params:{include_jbc_clubs:"True",limit:A.gL,offset:0,...e}}).then((t=>{const{results:n}=t.data;if(null!==e&&void 0!==e&&e.offset&&"undefined"!==typeof window){const e=(document.documentElement.scrollTop||document.body.scrollTop)+50;if(e){const t=e;window.scrollTo({top:t,behavior:"smooth"})}}o({type:p.iov,tags:null!==e&&void 0!==e&&e.offset?a.concat(n):n,next:t.data.next})})).catch((e=>{o((0,n.ZH)((0,i.vG)(e,"Could not fetch club list")))}))}}function E(e={}){return t=>(0,h.Ay)({url:y.wng(),method:"GET",headers:(0,u.I)(e)}).then((e=>{var o;t({type:p.Vw5,tags:(null===(o=e.data)||void 0===o?void 0:o.results)||[]})})).catch((()=>{t({type:p.Vw5,tags:[]})}))}function S(e,t={}){return o=>(0,h.Ay)({url:y.IC9(e),method:"GET",headers:(0,u.I)(t)}).then((e=>(o({type:p._Vu,clubInfo:e.data}),e.data))).catch((e=>{o((0,n.ZH)((0,i.vG)(e,"Could not fetch club info")))}))}function T(e,t){return o=>{if(!e||v()(e))return o({type:p.rEG,clubs:[],searchResults:[],count:0,params:e});""===e.q&&(e.q="*");let u=e.filter_by,l=e.sort_by;if(l){const e=(0,i.wz)(l);e.geopoint?u=u?`${u} && ${e.geopoint}`:e.geopoint:l=void 0}e={...e,filter_by:u,sort_by:l,query_by:"name,about_us,join_a_bookclub_card_description,location_description,tags",query_by_weights:"4,2,2,1,1",per_page:A.Sx},o(m());const a={"X-TYPESENSE-API-KEY":f._0.API_KEY};let d="https://6cry3ex9n0ua5w2qp-1.a1.typesense.net/collections/staging-jbcs/documents/search";return(0,s.A)("production")&&(d="https://6cry3ex9n0ua5w2qp-1.a1.typesense.net/collections/production-jbcs/documents/search"),(0,h.Ay)({url:d,method:"GET",headers:a,params:e}).then((n=>{o({type:p.rEG,searchResults:n.data.hits,count:n.data.found,params:e}),null===t||void 0===t||t()})).catch((t=>{var s,u,l,a;o({type:p.W1i});const d=(0,i.vG)(t,"Could not search club");r.Cp(t,{level:"error",tags:{function:"searchJBCClubs",status:(null===(s=t.response)||void 0===s?void 0:s.status)||"unknown"},extra:{filter_by:null===(u=e)||void 0===u?void 0:u.filter_by,sort_by:null===(l=e)||void 0===l?void 0:l.sort_by,errorMessage:d,url:null===(a=t.config)||void 0===a?void 0:a.url}}),o((0,n.ZH)(d))}))}}function B(e,t,o,n,r){return()=>(0,h.Ay)({method:"POST",url:y.qwk(t,o),data:e}).then((e=>((0,l.fn)({club_id:t}),n(e.data)))).catch((e=>{r&&r((0,i.vG)(e,"Could not perform this action"))}))}function k(e,t,o,n){return()=>(0,h.Ay)({method:"POST",url:y.pHY(t),data:e}).then((e=>{const t=d()(e,"data.id");return t&&(0,l.fn)({club_id:t}),o(e.data)})).catch((e=>{n&&n((0,i.vG)(e,"Could not perform this action"))}))}function G(e,t={offset:0,limit:A.Sx}){return o=>(o({type:p.kyY}),(0,h.Ay)({method:"GET",url:y.n66(e),params:t}).then((e=>{var n;return o({type:p.mSX,clubs:d()(e,"data.results",[]),count:d()(e,"data.count",""),next:d()(e,"data.next",""),offset:t.offset}),(null===(n=e.data)||void 0===n?void 0:n.results)||[]})).catch((e=>{o((0,n.ZH)((0,i.vG)(e,"Could not fetch clubs of category")))})))}function O(e,t){return o=>(o({type:p.f2E}),(0,h.Ay)({method:"GET",url:y.hc2(e),params:{limit:A.gL,offset:0,...t}}).then((n=>{var r,s;const u=(null===(r=n.data)||void 0===r?void 0:r.results)||[];return o({type:p.utH,data:u,next:null===(s=n.data)||void 0===s?void 0:s.next,offset:null===t||void 0===t?void 0:t.offset,slug:e}),u})).catch((e=>{o((0,n.ZH)((0,i.vG)(e,"Could not fetch sub categories")))})))}function R(e,t=0){return o=>{return o({type:p.kyY}),Promise.all([o(O(e)),o(G(e,{offset:t*A.ve,limit:A.ve})),o((n=e,e=>(0,h.Ay)({url:y.oHW(n),method:"GET"}).then((t=>{e({type:p.jxF,tags:t.data||[]})})).catch((()=>{e({type:p.jxF,tags:[]})}))))]).then((e=>(o({type:p.AQd}),e[0]||[])));var n}}function P(e,t){return(0,h.Ay)({method:"POST",url:y.A3E(e),data:t})}function I(e,t){return(0,h.Ay)({method:"POST",url:y.Gkp(e),data:t})}function L(e,t){const{offset:o=0}=t||{},n=A.HL;return t=>{t({type:p.miP});const r=Math.floor(o/n);return(0,h.Ay)({method:"GET",url:y.mQs(e),params:{limit:n,offset:o.toString()}}).then((e=>{e.data.results.length||o||t(G("trending")),t({type:p.zqy,clubs:e.data.results||[],count:e.data.count||0,pageNumber:r})})).catch((()=>t({type:p.HQJ})))}}},97160:(e,t,o)=>{o.d(t,{$$:()=>i,TD:()=>l,cd:()=>a,kC:()=>u,uS:()=>s});var n=o(24499),r=o(64714);const s=(0,n.Ay)({resolved:{},chunkName:()=>"BlockJoinABookClub",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!o.m[t]},importAsync:()=>(0,r.L5)((()=>Promise.all([o.e(72835),o.e(84540)]).then(o.bind(o,31941)))),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 o(t)}
1,resolve(){return 31941}}),u=(0,n.Ay)({resolved:{},chunkName:()=>"DetailJoinABookClub",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!o.m[t]},importAsync:()=>(0,r.L5)((()=>Promise.all([o.e(11645),o.e(16391),o.e(16402)]).then(o.bind(o,39611)))),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 o(t)},resolve(){return 39611}}),i=(0,n.Ay)({resolved:{},chunkName:()=>"JoinABookClub",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!o.m[t]},importAsync:()=>(0,r.L5)((()=>Promise.all([o.e(72835),o.e(66701),o.e(89243),o.e(41859)]).then(o.bind(o,9253)))),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 o(t)},resolve(){return 9253}}),l=(0,n.Ay)({resolved:{},chunkName:()=>"search-JoinABookClubSearch",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!o.m[t]},importAsync:()=>(0,r.L5)((()=>Promise.all([o.e(18347),o.e(40987),o.e(44304),o.e(57403),o.e(16049),o.e(56573),o.e(98469),o.e(42202),o.e(92940),o.e(48373),o.e(88041),o.e(56618),o.e(31364),o.e(77781),o.e(75623),o.e(82991),o.e(38285),o.e(25721)]).then(o.bind(o,89844)))),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 o(t)},resolve(){return 89844}}),a=(0,n.Ay)({resolved:{},chunkName:()=>"JoinABookClubByCategory",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!o.m[t]},importAsync:()=>(0,r.L5)((()=>Promise.all([o.e(72835),o.e(99556),o.e(2226),o.e(40438)]).then(o.bind(o,52885)))),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 o(t)},resolve(){return 52885}})},92006:(e,t,o)=>{o.r(t),o.d(t,{default:()=>d});o(57183);var n=o(80150),r=o(3016),s=o(23065),u=o(97160),i=o(9950),l=o(60853),a=o(44414);const d=()=>{const e=(0,l.wA)(),t=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.auth)||void 0===o?void 0:o.isAuth)&&void 0!==t&&t})),o=(0,l.d4)((e=>{var t;return(null===e||void 0===e||null===(t=e.joinABookClub)||void 0===t?void 0:t.limitedClubsByCategory)||[]})),d=(0,l.d4)((e=>{var t;return(null===e||void 0===e||null===(t=e.joinABookClub)||void 0===t?void 0:t.parentTags)||[]})),c=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.joinABookClub)||void 0===o?void 0:o.isFetching)&&void 0!==t&&t})),v=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.joinABookClub)||void 0===o?void 0:o.fetched)&&void 0!==t&&t})),h=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.joinABookClub)||void 0===o?void 0:o.searchPage)&&void 0!==t?t:1})),y=(0,l.d4)((e=>{var t;return(null===e||void 0===e||null===(t=e.joinABookClub)||void 0===t?void 0:t.nextPageOfJBC)||""})),p=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.joinABookClub)||void 0===o?void 0:o.count)&&void 0!==t?t:0})),A=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.joinABookClub)||void 0===o?void 0:o.searched)&&void 0!==t&&t})),f=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.joinABookClub)||void 0===o?void 0:o.searchResults)&&void 0!==t?t:[]})),m=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.bannersAd)||void 0===o?void 0:o.data)&&void 0!==t?t:[]})),_=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.joinABookClub)||void 0===o?void 0:o.searchByCategory)&&void 0!==t&&t})),b=(0,l.d4)((e=>{var t,o;return null!==(t=null===(o=e.announcements)||void 0===o?void 0:o.isShowAnouncementBar)&&void 0!==t&&t})),g=(0,l.d4)((e=>{var t;return(null===(t=e.auth)||void 0===t?void 0:t.userInfo)||{}}));return(0,i.useEffect)((()=>{v||(e((0,n.lV)({place:"JBC_PAGE"})),e((0,r.W8)()),e((0,r.SD)()))}),[v]),(0,a.jsx)(s.A,{children:(0,a.jsx)(u.$$,{bannersAd:m,clubsByCategory:o,count:p,currentUser:g,dispatch:e,fetched:v,isAuth:t,isFetching:c,isShowAnouncementBar:b,next:y,parentTags:d,searchByCategory:_,searchPage:h,searchResults:f,searched:A})})}},46137:(e,t,o)=>{var n;o.d(t,{F2:()=>u,Lx:()=>s,_0:()=>r});const r={API_KEY:null!==(n="9FHS0caqtO8vlkcXtR17990pidQDiYgn")?n:"",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"},s={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"},u={STAGING:"staging-jbcs",PRODUCTION:"production-jbcs"}},57183:()=>{}}]);

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.