1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="cc354187-b343-43cb-9ba7-f419a4dfd257",e._sentryDebugIdIdentifier="sentry-dbid-cc354187-b343-43cb-9ba7-f419a4dfd257")}catch(e){}}();import"./_sentry-release-injection-file-BIxAPxRH.js";import{a as e}from"./rolldown-runtime-CynJssAt.js";import{t as a}from"./react-C9jbeexS.js";import{i as s}from"./routeWith-1gM_5i5h.js";import{n as r,t}from"./lib-C2GB3B5V.js";import{n as i,r as c,t as o}from"./BookList-7evwofEo.js";import{K as n,at as l}from"./index-eSpJ4TSf.js";import{a as d,o as h,t as p}from"./dist-B1e1jRIr.js";import{n as u,t as b}from"./GQLPaginatedResults-BsGYEQZI.js";import{t as g}from"./useQueryString-Br-PC4Hh.js";var f=e(a());r();var m=l(),j=n(),x=t` 2 query GetClipBotSearchPage( 3 $page: Int! 4 $search: String! 5 $includeClipboard: Boolean! 6 $includeMatches: Boolean! 7 ) { 8 clipBotSearch( 9 page: $page 10 search: $search 11 includeClipboard: $includeClipboard 12 includeMatches: $includeMatches 13 ) { 14 ...BookListPageOfBooks 15 paginatorInfo { 16 ...PaginatedResultsPaginatorInfo 17 } 18 } 19 } 20 ${i} 21 ${u} 22`,C=()=>{const[e,a]=g({page:1,all_text:"",include_matches:"false",include_clipboard:"false"},!0),r=(0,f.useMemo)((()=>Object.fromEntries(e)),[e]),t=(0,f.useMemo)((()=>({page:r.page?parseInt(r.page):1,search:r.all_text,includeMatches:"true"===r.include_matches,includeClipboard:"true"===r.include_clipboard})),[r]);let i=(0,j.jsx)(m.T,{message:"Clipboard & Matches Search:"});t.includeClipboard?t.includeMatches||(i=(0,j.jsx)(m.T,{message:"Clipboard Search:"})):i=(0,j.jsx)(m.T,{message:"Matches Search:"});const n=(0,f.useCallback)((e=>{a({...e,page:1})}),[a]),l=(0,f.useCallback)((e=>{a({...r,page:e})}),[r,a]);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("h2",{className:"page-title",children:(0,j.jsxs)("span",{children:[i," ",t.search]})}),(0,j.jsx)(b,{query:x,page:t.page,onPageChange:l,extraVariables:s(t,"page"),fetchPolicy:"no-cache",extraSearchControl
22s:(0,j.jsx)(c,{showClipboardCheckbox:!0,showMatchesCheckbox:!0,onSubmit:n,searchString:t.search,clipboardChecked:t.includeClipboard,matchesChecked:t.includeMatches},`${t.search}:${t.includeClipboard}:${t.includeMatches}`),children:(0,j.jsx)(o,{})})]})},y=()=>(0,j.jsx)(p,{basename:"/",children:(0,j.jsx)(h,{children:(0,j.jsx)(d,{path:"*",element:(0,j.jsx)(C,{})})})});export{y as default}; 23//# sourceMappingURL=ClipBotSearch-CukAcvhC.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.