1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="39e2b5a9-5ede-4eb2-a003-ba61bda233cc",e._sentryDebugIdIdentifier="sentry-dbid-39e2b5a9-5ede-4eb2-a003-ba61bda233cc")}catch(e){}}();import"./_sentry-release-injection-file-SYOkQ1Km.js";import{a as e}from"./rolldown-runtime-BBzOAo5_.js";import{t as s}from"./react-DuV36FPs.js";import{v as a}from"./ToolTray-8w5WKyGn.js";import{t as r}from"./prop-types-Ccm1EFGL.js";import{r as t,t as n}from"./BookList-DGCwsiKw.js";import{K as o,at as i,n as l,nt as d,r as c,v as u,x as m}from"./index-CRc22cjs.js";import{t as f}from"./usePageLayout-CkXFEI4G.js";import{t as p}from"./FacetSubmitButton-6gN5MkbS.js";import{n as h,t as j}from"./FacetFormFields-BqnWW_sm.js";import{t as g}from"./useModalOpen-mKz3mVC_.js";import{t as y}from"./SearchSorter-DKvUYvP2.js";var x=i(),b=e(d()),v=e(s()),w=o();function _(e){return(0,w.jsx)("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",...e,children:(0,w.jsx)("path",{d:"M0 10.889v1.555h4.667V10.89H0zm0-9.333V3.11h7.778V1.556H0zM7.778 14v-1.556H14V10.89H7.778V9.333H6.222V14h1.556zM3.11 4.667v1.555H0v1.556h3.111v1.555h1.556V4.667H3.11zM14 7.777V6.223H6.222v1.556H14zm-4.667-3.11h1.556V3.11H14V1.556h-3.111V0H9.333v4.667z",fill:"#000"})})}var C=({children:e,title:s,footer:a,isOpen:r,setModalIsOpen:t})=>r?(0,w.jsxs)("div",{className:"modal",children:[(0,w.jsxs)("div",{className:"modal__title",children:[s,(0,w.jsx)("div",{className:"modal__close",onClick:()=>t(!1),children:"x"})]}),(0,w.jsx)("div",{className:"modal__content",children:e}),(0,w.jsx)("div",{className:"modal__footer",children:a})]}):e,H=e(r()),V=({currency:e})=>{const{columnCount:s}=f(),[a,r]=(0,v.useState)(!1),t=c(),{updating:n,canSubmit:o}=h();return g(a),1===s?a?(0,w.jsx)(C,{title:(0,w.jsx)(x.T,{message:"Filters"}),isOpen:a,setModalIsOpen:r,footer:(0,w.jsx)(p,{currency:e,onClick:()=>t(u()),disabled:!o,updating:n}),children:(0,w.jsx)(j,{currency:e})}):(0,w.jsxs)("a",{href:"#",onClick:()=>r(!0),className:"facet-area__filter",children:[(0,w.jsx)(_,{})," ",(0,w.jsx)(x.T,{message:"Filters"})]}):null};V.propTypes={currency:H.default.object.isRequired};var I=({data:e,clipboardSearch:s=null,sortingOptions:r=null,includeFacetModal:o=!1})=>{const i=l((e=>e.searchData?.queryStringOrder)),d=l((e=>e.searchData?.addWantUrl)),c=(0,v.useCallback)((e=>{window.location.assign("?"+function(e,s){const a=b.default.parse(window.location.search.substring(1));1===e?delete a.page:a.page=e;return s?b.default.stringify(a,{sort:m(s)}):b.default.stringify(a)}(e,i))}),[i]),u=(0,v.useCallback)((()=>window.location.reload()),[]),f=(0,v.useMemo)((()=>{const a=[];return s&&a.push((0,w.jsx)(t,{...s},"search")),r&&a.push((0,w.jsx)(y,{selected:r.selected,names:r.names,onChange:e=>{window.location.assign(r.urls[e])}},"sort")),o&&a.push((0,w.jsx)("div",{className:"hide--two-columns-up",children:(0,w.jsx)(V,{currency:e.displayCurrency})},"facets")),a.length>0?a:null}),[s,e.displayCurrency,o,r]);return(0,w.jsx)(a,{queryData:e,paginatorInfo:e.paginatorInfo,onPageChange:c,onRefresh:u,extraSearchControl
1s:f,children:(0,w.jsx)(n,{addWantUrl:d,sortingCriteria:r?r.names[r.selected]:null})})};export{I as default}; 2//# sourceMappingURL=PageOfBooksFromProps-BBaEkoIR.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.