PageSourceSearch

https://storyweaver.org.in/assets/index.DzAbTy3Q.js

js storyweaver.org.in collected 2026-09-24 08:43:08 UTC 9,482 bytes, 2 lines download raw bytes

1import{j as e,r as a}from"./react-vendor.B75MsAI9.js";import{u as i,O as l,Q as s,V as o,cH as t,o as r,U as n,b2 as d,L as c,t as u,p as f,v as m,aN as g,bm as p,ea as v,aE as h,a as w,E as j,aG as L,aH as y,aI as b,aJ as k,H as N,aK as x,x as A,y as V}from"./AuthModalContainer.CwDh3qj_.js";import{S as C,e as _,I as O,r as S,f as R}from"./main.Bj0Ml4GZ.js";import{i as F}from"./isEmpty.B73GR3ul.js";import{u as I}from"./RTLProvider.Dbr8G8Qw.js";import{F as B}from"./FiltersBar.C4fvBThS.js";import{F as M}from"./FiltersPanel.CVoPsmCv.js";import{B as $}from"./Block.DxpdHCJY.js";import{R as W}from"./ReadingListCard.D-LWH4X3.js";import{A as H,a as P}from"./ActionBar.8O9ziOF6.js";import{P as q}from"./PageHeader.DyETjqw4.js";import E from"./BottomTabbedNavBar.DYM7eBY1.js";import"./LazyFontLoader.pvie9HdJ.js";import"./flatMap.BtxoME2v.js";import"./pick.Cpaa_ErP.js";import"./SelectField.CyNICQh1.js";import"./Inliner.DMPsK-K7.js";import"./SiteNavLink.DcUce1mo.js";const D=({baseClassName:a,t:i,lists:l,viewport:s,allListUrl:o,onViewAllClicked:t,offlineBooks:r,addSlimNotification:n,windowDimensions:d,saveOfflineWorkflow:u,unsaveOfflineWorkflow:f,isAvailableOffline:m,addNotificationModal:g,removeNotificationModal:p,openAuthModal:v,isLoggedIn:h,openListQuickView:w,profile:j,isRtl:L})=>F(l)?null:e.jsxs($,{noVerticalPadding:!0,background:"transparent",noHorizontalPadding:!0,children:[e.jsxs($,{parentClassName:`${a}__lists-carousal-wrapper`,isRtl:L,children:[e.jsx("h2",{className:`${a}__lists-carousal-title`,children:l.title}),o?e.jsx(c,{parentClassName:`${a}__view-all`,href:o,onClick:()=>t(),children:i("global.view-all")}):null]}),e.jsx($,{noVerticalPadding:!0,noHorizontalPadding:!0,children:e.jsx(_,{cellWidth:"list-card",cellSpacing:0,cardsInFrame:{small:2,medium:2,large:3,xxlarge:3},viewport:s,isRtl:L,parentClassName:`${a}__lists-carousal`,children:l.results.map(a=>e.jsx(W,{alignLeftCard:!0,title:a.title,count:a.count,slug:a.slug,books:a.books,owner:a.organisation,openListQuickView:w,offlineBooks:r,addSlimNotification:n,windowDimensions:d,saveOfflineWorkflow:u,unsaveOfflineWorkflow:f,isAvailableOffline:m,addNotificationModal:g,removeNotificationModal:p,openAuthModal:v,isLoggedIn:h,list:a,viewport:s,profile:j,isRtl:L,listId:a.id},a.slug))})})]}),U=({baseClassName:a,t:i,cards:l,viewport:s,isRtl:o})=>l&&l.length>2?e.jsxs($,{background:"transparent",noHorizontalPadding:!0,parentClassName:`${a}__org-carousal-wrapper`,children:[e.jsx($,{noVerticalPadding:!0,background:"transparent",isRtl:o,children:e.jsx("h2",{className:`${a}__lists-carousal-title`,children:i("ReadingList.literacy-organisations")})}),e.jsx(_,{cellWidth:"category-card",cellSpacing:0,cardsInFrame:{small:1,medium:3,large:3,xxlarge:3},viewport:s,popoutControls:!0,isRtl:o,parentClassName:`${a}__org-carousal`,children:l.map((i,l)=>e.jsx("div",{className:`${a}__org-card`,children:e.jsx("div",{className:`${a}__image`,children:e.jsxs(c,{href:`/publishers/${i.slug}?tab=lists`,title:i.name,children:[e.jsx(O,{image:i.backgroundImgUrls,parentClassName:`${a}__org-card-img`,alt:i.name}),e.jsx("div",{className:`${a}__content`,children:e.jsx("img",{className:`${a}__org-card-icon-img`,alt:i.name,src:i.logoUrl})})]})})},l))})]}):null,z=({headerBgUrl:a=t.listsHeaderBgUrl,isFetchingListsHome:c,languageLists:u,categoryLists:f,recommendedLists:m,literacyOrganizations:g,filters:p,filtersComponent:v,listsCount:h,readCount:w,viewport:j,openListQuickView:L,offlineBooks:y,addSlimNotification:b,windowDimensions:k,saveOfflineWorkflow:N,unsaveOfflineWorkflow:x,isAvailableOffline:A,addNotificationModal:V,removeNotificationModal:_,isLoggedIn:O,openAuthModal:S,profile:R,isRtl:F})=>{const I=i(),B="pb-lists-home",M={[B]:!0};let W;p&&(W=p.filter(e=>"language"===e.queryKey)[0].queryValues.filter(e=>"English"!==e.queryValue),W={language:W.map(e=>e.queryValue)});const z=[{title:I("global.home"),href:l.home(),isInternal:!0}],Q=h?e.jsx(C,{parentClassName:`${B}__read-count`,label:I("global.list",h||0),value:h,isRtl:F}):null,T=w?e.jsx(C,{parentClassName:`${B}__read-count`,label:I("global.list-read",w),value:w,isRtl:F}):null,K=e=>{e===d.overAll&&(window.location.href=l.allLists({}))};return e.jsxs("div",{className:s(M),children:[e.jsx(o,{children:e.jsx("title",{children:`${I("global.list",2)} - ${I("global.site-title")}`})}),e.jsx(q,{icon:"lists",image:a,pullInBottom:!0,title:I("global.list",2),breadcrumbPaths:z,isRtl:F,description:I("global.all-lists-description")}),e.jsxs($,{background:"transparent",children:[e.jsxs($,{noVerticalPadding:!0,children:[j.medium?v:null,e.jsxs(H,{noTopBorder:!0,isRtl:F,children:[e.jsx(P,{children:j.medium?e.jsx("div",{className:`${B}__status`,children:c?I("global.loading"):e.jsxs("span",{className:`${B}__count`,children:[Q,T]})}):v}),e.jsx(P,{forceAlignRight:!0,children:e.jsx(r,{parentClassName:`${B}__all-lists`,label:I("global.view-all-lists"),variant:"primary",onClick:()=>K(d.overAll)})})]})]}),e.jsx(D,{baseClassName:B,t:I,lists:m,viewport:j,openListQuickView:L,offlineBooks:y,addSlimNotification:b,windowDimensions:k,saveOfflineWorkflow:N,unsaveOfflineWorkflow:x,isAvailableOffline:A,addNotificationModal:V,removeNotificationModal:_,isLoggedIn:O,openAuthModal:S,profile:R,isRtl:F}),e.jsx(U,{baseClassName:B,t:I,cards:g,viewport:j,isRtl:F}),c||!u?e.jsx(n,{}):e.jsx(D,{baseClassName:B,t:I,lists:u,viewport:j,allListUrl:l.allLists(W),onViewAllClicked:()=>K(d.nonEnglishLanguage),openListQuickView:L,offlineBooks:y,addSlimNotification:b,windowDimensions:k,saveOfflineWorkflow:N,unsaveOfflineWorkflow:x,isAvailableOffline:A,addNotificationModal:V,removeNotificationModal:_,isLoggedIn:O,openAuthModal:S,profile:R,isRtl:F}),f.map((a,i)=>e.jsx(D,{baseClassName:B,t:I,lists:a,viewport:j,allListUrl:l.allLists({category:a.slug}),onViewAllClicked:()=>K(a.slug),openListQuickView:L,offlineBooks:y,addSlimNotification:b,windowDimensions:k,saveOfflineWorkflow:N,unsaveOfflineWorkflow:x,isAvailableOffline:A,addNotificationModal:V,removeNotificationModal:_,isLoggedIn:O,openAuthModal:S,profile:R,isRtl:F},a.slug||i))]}),j.medium?null:e.jsx(E,{user:R,viewport:j,t:I,isRtl:F})]})};z.propTypes={};const Q={category:[],level:[],language:[],sort:g.relevance,tags:[],query:""},T=()=>{const s=u(),o=i(),t=I(),{isFetchingListsHome:r,languageLists:n,categoryLists:d,literacyOrganizations:c,isFetchingRecommendedLists:C,recommendedLists:_,listsInfo:O,filters:$}=f(e=>e.allLists),{viewport:W,offlineBooks:H}=f(e=>({viewport:e.viewport,offlineBooks:e.offlineBooks}),m),{isLoggedIn:P,profile:q,windowDimensions:E}=f(e=>e.user),[D,U]=a.useState({category:"",level:"",language:""}),T=a.useRef(P),K=a.useRef(_),J=[{name:o("sort.relevance"),queryValue:g.relevance},{name:o("sort.new-arrivals"),queryValue:g.newArrivals},{name:o("sort.most-viewed"),queryValue:g.mostViewed},{name:o("sort.most-liked"),queryValue:g.mostLiked}],G=J.map(e=>({label:e.name,value:e.queryValue}));a.useEffect(()=>
1{s(p()),s(v()),s(h())},[s]),a.useEffect(()=>{S(T.current,P)||F(_)||!S(K.current,_)||s(h()),T.current=P,K.current=_},[P,_,s]);const X=()=>{const e=A.parse(window.location.search);return Object.entries(e).forEach(([a,i])=>{Array.isArray(Q[a])&&!Array.isArray(i)&&(e[a]=[i])}),{...Q,...e}},Y=(e,a)=>{U(i=>({...i,[e]:a}))},Z=e=>Y("category",e.target.value),ee=e=>Y("level",e.target.value),ae=e=>Y("language",e.target.value),ie=(e,a)=>{const i=V(X());Array.isArray(i[e])?i[e].push(a):i[e]=a,window.location.href=l.allLists(i)},le=(e,a)=>{const i=V(X());if(i[e]){if(Array.isArray(i[e])){const l=i[e].indexOf(a);-1!==l&&i[e].splice(l,1)}else delete i[e];window.location.href=l.allLists(i)}},se=e=>ie("sort",e),oe={};$&&$.forEach(e=>{oe[e.queryKey]=e});const te=X(),re=O.hits,ne=O.totalReads;let de=null;return de=W.medium?e.jsx(B,{noTopBorder:!0,pullUp:!0,filters:oe,applyFilter:ie,removeFilter:le,appliedFilters:te,categorySearchValue:D.category,updateCategorySearchValue:Z,levelSearchValue:D.level,updateLevelSearchValue:ee,languageSearchValue:D.language,updateLanguageSearchValue:ae,sortOptions:J,applySortOption:se,appliedSortOption:te.sort,hideStatusBar:!0,isRtl:t,isFetchingData:r,useLevelFilterLabelFromAPI:!0,userType:null==q?void 0:q.profile_type,category:w.allListsHome}):e.jsx(M,{viewport:W,filters:oe,applyFilter:ie,removeFilter:le,clearFilter:e=>{let a=V(X());a[e]&&(Array.isArray(a[e])?a[e]=[]:delete a[e],window.location.href=l.allLists(a))},appliedFilters:te,categorySearchValue:D.category,updateCategorySearchValue:Z,levelSearchValue:D.level,updateLevelSearchValue:ee,languageSearchValue:D.language,updateLanguageSearchValue:ae,sortOptions:G,applySortOption:se,appliedSortOption:te.sort,itemTypeLabel:o("global.list",re||0),hideStatusBar:!!W.medium,resultsCount:re,readCount:ne,floatingFilter:!0,isRtl:t,isFetchingData:r,useLevelFilterLabelFromAPI:!0,category:w.allListsHome}),e.jsx(z,{isFetchingListsHome:r,languageLists:n,categoryLists:d,recommendedLists:_,literacyOrganizations:c,filtersComponent:de,filters:$,userRoles:null==q?void 0:q.roles,listsCount:re,readCount:ne,viewport:W,offlineBooks:H,openListQuickView:e=>s(x({list:e})),addSlimNotification:e=>s(N(e)),windowDimensions:E,saveOfflineWorkflow:(e,a,i)=>s(k({book:e,imageSize:a,userId:i})),unsaveOfflineWorkflow:(e,a,i)=>s(b({book:e,imageSize:a,userId:i})),isAvailableOffline:R,addNotificationModal:e=>s(y(e)),removeNotificationModal:()=>s(L()),openAuthModal:()=>s(j()),isLoggedIn:P,userEmail:null==q?void 0:q.email,userId:null==q?void 0:q.id,profile:q,isRtl:t})};export{T as default};
2//# sourceMappingURL=index.DzAbTy3Q.js.map

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.