PageSourceSearch

https://geschichte-bayerns.de/_next/static/chunks/3945.241aff5abfa86b76.js

js geschichte-bayerns.de collected 2026-10-02 19:31:49 UTC 11,164 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3945],{37380:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>f});var o=n(48098),t=n(22538),s=n(47820),i=n(70973);n(18306),n(68044);var l=n(87551),d=n(9031),a=n(14638);let c=e=>{let{store:r}=e,[n,s]=t.useState(0),i=e=>{let r=e.target;r instanceof HTMLDivElement&&s(Math.min(100,Math.floor(100*r.scrollTop/(r.scrollHeight-r.clientHeight))))},l=()=>{let e=r.get("getPagesContainer");e&&e().addEventListener("scroll",i)};return t.useLayoutEffect(()=>(r.subscribe("getPagesContainer",l),()=>r.unsubscribe("getPagesContainer",l)),[]),(0,o.jsx)("div",{className:"mx-auto w-full overflow-hidden absolute h-[42px] pointer-events-none",children:(0,o.jsx)("div",{className:"scroll-indicator z-[1] relative",style:{width:"".concat(n,"%")}})})};var x=n(11658),h=n(19528),p=n.n(h),u=n(40212),g=function(e){return e[e.NotSearchedYet=0]="NotSearchedYet",e[e.Searching=1]="Searching",e[e.FoundResults=2]="FoundResults",e}(g||{});let m=e=>{let{searchPluginInstance:r,searchString:n}=e,[i,l]=t.useState(0),[d,a]=t.useState([]),[c,h]=t.useState(n),{Search:p}=r;return(0,o.jsx)(p,{children:e=>{let{currentMatch:r,keyword:n,setKeyword:p,jumpToMatch:u,jumpToNextMatch:g,jumpToPreviousMatch:m,search:b}=e;return n!==c&&p(c),t.useEffect(()=>{if(c&&c.length>2){l(1);let e=(function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=null;return function(){for(var o=arguments.length,t=Array(o),s=0;s<o;s++)t[s]=arguments[s];n&&clearTimeout(n),n=setTimeout(()=>{e(...t),n=null},r)}})(()=>{b().then(e=>{l(2),a(e)})},750)();return()=>{e&&clearTimeout(e)}}l(0),a([])},[c]),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",width:"100%"},children:[(0,o.jsx)("div",{style:{padding:"0.2rem .5rem"},children:(0,o.jsxs)("div",{style:{position:"relative",marginTop:".125rem",display:"flex",padding:"0 2px"},children:[(0,o.jsx)("input",{type:"text",style:{borderRadius:"0",borderTopLeftRadius:"0.25rem",borderBottomLeftRadius:"0.25rem",width:"80%"},className:"focus:outline-none focus:ring-0 border border-gray-300 rounded-l-md px-1",placeholder:"Suche...",value:n,onChange:p,onKeyDown:e=>{if("Enter"===e.key&&n)l(1),b().then(e=>{l(2),a(e)});else if("Backspace"===e.key)h(e=>e.slice(0,-1));else{if(e.ctrlKey||e.metaKey)return;1===e.key.length&&h(r=>r+e.key)}}}),1===i&&(0,o.jsx)("div",{style:{alignItems:"center",display:"flex",bottom:0,position:"absolute",right:".5rem",top:0},children:(0,o.jsx)(s.Spinner,{size:"1.5rem"})}),(0,o.jsxs)("div",{className:"inline-flex gap-0 justify-end",children:[(0,o.jsx)("button",{style:{border:"none",height:"100%",padding:"0 2px"},title:"Gro\xdf-/Kleinschreibung",className:"text-antiqua ".concat(e.matchCase?"text-gray-900":"text-gray-400"," bg-neutral mx-0 rounded-none"),onClick:()=>e.changeMatchCase(!e.matchCase),children:(0,o.jsxs)("svg",{"aria-hidden":"true",className:"rpv-core__icon",focusable:"false",height:"18px",viewBox:"0 0 24 24",width:"18px",children:[(0,o.jsx)("path",{d:"M15.979,21.725,9.453,2.612a.5.5,0,0,0-.946,0L2,21.725"}),(0,o.jsx)("path",{d:"M4.383 14.725L13.59 14.725"}),(0,o.jsx)("path",{d:"M0.5 21.725L3.52 21.725"}),(0,o.jsx)("path",{d:"M14.479 21.725L17.5 21.725"}),(0,o.jsx)("path",{d:"M22.5,21.725,18.377,9.647a.5.5,0,0,0-.946,0l-1.888,5.543"}),(0,o.jsx)("path",{d:"M16.92 16.725L20.794 16.725"}),(0,o.jsx)("path",{d:"M21.516 21.725L23.5 21.725"})]})}),(0,o.jsx)("button",{style:{border:"none",height:"100%",padding:"0 2px"},title:"Ganze W\xf6rter",className:"text-antiqua ".concat(e.wholeWords?"text-gray-900":"text-gray-400"," bg-neutral mx-0 rounded-none rounded-tr-md rounded-br-md"),onClick:()=>e.changeWholeWords(!e.wholeWords),children:(0,o.jsxs)("svg",{"aria-hidden":"true",className:"rpv-core__icon",focusable:"false",height:"18px",viewBox:"0 0 24 24",width:"18px",children:[(0,o.jsx)("path",{d:"M0.500 7.498 L23.500 7.498 L23.500 16.498 L0.500 16.498 Z"}),(0,o.jsx)("path",{d:"M3.5 9.498L3.5 14.498"})]})})]})]})}),2===i&&(0,o.jsxs)(o.Fragment,{children:[0===d.length&&(0,o.jsx)("div",{style:{color:"rgba(0, 0, 0, .5)",fontSize:".8rem",marginRight:".5rem"},children:"'Keine Treffer gefunden.'"}),d.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:{alignItems:"center",display:"flex",padding:"0 .5rem"},children:[(0,o.jsxs)("div",{style:{color:"rgba(0, 0, 0, .5)",fontSize:".8rem",marginRight:".5rem"},children:[d.length," Treffer"]}),(0,o.jsx)("div",{style:{marginLeft:"auto",marginRight:".5rem"},children:(0,o.jsx)(s.MinimalButton,{onClick:m,children:(0,o.jsx)(x.PreviousIcon,{})})}),(0,o.jsx)(s.MinimalButton,{onClick:g,children:(0,o.jsx)(x.NextIcon,{})})]}),(0,o.jsx)("div",{style:{borderTop:"1px solid rgba(0, 0, 0, .2)",flex:1,overflow:"auto",padding:".5rem 1rem"},children:d.map((e,r)=>(0,o.jsxs)("div",{style:{margin:"1rem 0"},className:"text-sans",children:[(0,o.jsx)("div",{style:{display:"flex",justifyContent:"space-between",color:"#085884",fontSize:".5rem"},children:(0,o.jsxs)("div",{style:{color:"#085884",fontSize:".75rem",textAlign:"right",marginBottom:"-0.25rem"},className:"text-antiqua",children:["Seite ",e.pageIndex+1]})}),(0,o.jsx)("div",{style:{borderRadius:".25rem",cursor:"pointer",overflowWrap:"break-word",padding:".25rem",fontSize:".8rem"},onClick:()=>u(r+1),children:(e=>{let r=e.pageText.substr(e.startIndex-12,12),n=r.split(" ");n.shift();let t=0===n.length?r:n.join(" "),s=e.pageText.substr(e.endIndex,60);(n=s.split(" ")).pop();let i=0===n.length?s:n.join(" ");return(0,o.jsxs)("p",{className:"hit-text font-normal text-gray leading-4 text-xs pb-2 w-11/12",children:[t,(0,o.jsx)("span",{className:"sidebar-highlight hit hit-colored",children:e.pageText.substring(e.startIndex,e.endIndex)}),i]})})(e)})]},r))})]})]})]})}})},b=e=>{let{fileUrl:r,searchString:n,searchPluginInstance:x}=e,h=(()=>{let e=t.useMemo(()=>(0,s.createStore)({}),[]);return{install:r=>{e.update("getPagesContainer",r.getPagesContainer)},ReadingIndicator:()=>(0,o.jsx)(c,{store:e})}})(),{ReadingIndicator:g}
1=h,{highlight:m,jumpToNextMatch:b,jumpToPreviousMatch:f}=x,j=(0,u.zoomPlugin)(),{Zoom:y}=j,v=t.useCallback(e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{style:{top:0,position:"absolute",left:0,width:"100%"},children:(0,o.jsx)(g,{})}),(0,o.jsx)(e,{children:e=>{let{ZoomIn:r,ZoomOut:n,Download:t}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"grid items-end w-full gap-1",children:(0,o.jsxs)("div",{className:"flex flex-row",children:[(0,o.jsx)("div",{style:{padding:"0px 2px",marginLeft:"auto"},children:(0,o.jsx)(n,{children:e=>(0,o.jsx)("button",{style:{fontSize:"0.7rem",backgroundColor:"#085884",border:"none",borderRadius:"4px",color:"#ffffff",cursor:"pointer",padding:"0.25rem 0.5rem"},onClick:e.onClick,children:(0,o.jsx)(l.A,{className:"h-4 w-4"})})})}),(0,o.jsxs)("div",{className:"dropdown py-0 px-1",children:[(0,o.jsx)("div",{tabIndex:0,role:"button",className:"text-sans bg-transparent border-none text-white",style:{fontSize:"0.7rem",backgroundColor:"#085884",border:"none",borderRadius:"4px",color:"#ffffff",cursor:"pointer",padding:"0.25rem 0.5rem"},children:(0,o.jsx)("span",{style:{fontSize:"0.7rem"},children:"Zoom"})}),(0,o.jsx)("div",{tabIndex:0,className:"dropdown-content card card-compact text-sans z-[1] w-32 p-0 shadow",style:{backgroundColor:"rgba(240, 240, 237, 0.84)",backdropFilter:"blur(3px)",borderRadius:"4px"},children:(0,o.jsxs)("div",{className:"card-body gap-0",children:[(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem",marginRight:"0.5rem"},onClick:()=>j.zoomTo(s.SpecialZoomLevel.ActualSize),children:"Originalgr\xf6\xdfe"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem",marginRight:"0.5rem"},onClick:()=>j.zoomTo(s.SpecialZoomLevel.PageFit),children:"Seitengr\xf6\xdfe"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(s.SpecialZoomLevel.PageWidth),children:"Seitenbreite"}),(0,o.jsx)("div",{className:"divider my-1"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(.5),children:"50%"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(.75),children:"75%"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(1),children:"100%"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(1.25),children:"125%"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(1.5),children:"150%"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(1.75),children:"175%"}),(0,o.jsx)("span",{style:{border:"none",borderRadius:"4px",color:"rgb(66, 67, 70)",userSelect:"none",cursor:"pointer",padding:"0 0.25rem 0 0.5rem"},onClick:()=>j.zoomTo(2),children:"200%"})]})})]}),(0,o.jsx)("div",{style:{padding:"0px 2px"},children:(0,o.jsx)(r,{children:e=>(0,o.jsx)("button",{style:{fontSize:"0.7rem",backgroundColor:"#085884",border:"none",borderRadius:"4px",color:"#ffffff",cursor:"pointer",padding:"0.25rem 0.5rem"},onClick:e.onClick,children:(0,o.jsx)(d.A,{className:"h-4 w-4"})})})}),(0,o.jsx)("div",{style:{padding:"0px 2px"},children:(0,o.jsx)(t,{children:e=>(0,o.jsx)("button",{style:{fontSize:"0.7rem",backgroundColor:"#085884",border:"none",borderRadius:"4px",color:"#ffffff",cursor:"pointer",padding:"0.25rem 0.5rem"},onClick:e.onClick,children:(0,o.jsx)(i.A,{className:"h-4 w-4"})})})})]})})})}})]}),[]),k=(0,a.defaultLayoutPlugin)({sidebarTabs:e=>[],renderToolbar:v});return(0,o.jsx)(s.Viewer,{fileUrl:r,plugins:[k,h,x,j],defaultScale:s.SpecialZoomLevel.PageFit,onDocumentLoad:()=>{console.table({keyword:n,matchCase:!1,wholeWords:!1}),p()(e=>{e&&(m({keyword:e,matchCase:!1,wholeWords:!1}),b())},500,n)}})},f=e=>{let{pdfUri:r,searchString:n}=e,t=(0,x.searchPlugin)();return(0,o.jsx)(s.Worker,{workerUrl:"https://unpkg.com/pdfjs-dist@".concat("3.11.174","/build/pdf.worker.min.js"),children:(0,o.jsxs)("div",{style:{height:"100%",width:"100%",display:"flex",marginLeft:"auto",marginRight:"auto"},children:[(0,o.jsx)("div",{style:{borderLeft:"1px solid rgba(0, 0, 0, .2)",borderRight:"1px solid rgba(0, 0, 0, .2)",flex:"0 0 15rem",width:"13rem",maxWidth:"13rem"},children:(0,o.jsx)(m,{searchPluginInstance:t,searchString:n})}),(0,o.jsx)("div",{style:{flex:1},children:(0,o.jsx)(b,{fileUrl:r,searchString:n,searchPluginInstance:t})})]})})}},40829:()=>{},58211:()=>{},62130:()=>{},77089:()=>{}}]);

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.