https://www.herma.de/_assets/abdcebe541972f43cf5eaefea1519fd3/Febuild/assets/isbnScanner-GIDExTcf.js
1import{n as r}from"./slick-carousel-Bl7B8E9H.js";import{Q as o}from"./quagga-CHQ1O-KM.js";import"../main.js";import{getBook as v}from"./scout-BBQjuSO1.js";import"./jquery-DPij569U.js";import"./picturefill-BXw1sXem.js";import"./nouislider-LsUh3dUJ.js";import"./wnumb-CeODi2ot.js";import"./vimeo-regex-grzcvC04.js";import"./swiper-CBqQIH-H.js";import"./tippy.js-CDVdcS98.js";import"./@popperjs-B_2vCoY7.js";let f=0;const C=".bJS_isbnscanner-overlay-factfinder",U=()=>{r(C).on("click",n=>{n.preventDefault(),f=window.scrollY,R(n.currentTarget)})},R=n=>{const l=r(n).attr("data-unique-id"),a=r(`#isbn-scanner-overlay-${l}`),p=r(n).closest(".factfinder-wrapper.scout");let i="";const u=()=>{a.foundation().foundation("open"),a.on("closed.zf.reveal",()=>{window.scrollTo(0,f),S()}),m()},m=()=>{o.init(g(),t=>{if(t){console.error(t);return}o.start()}),o.onDetected(s)},S=()=>{o.offDetected(s),o.stop()},s=t=>{if(!t||!t.codeResult)return;const{code:e}=t.codeResult;if(e===i)return;b(t.codeResult.decodedCodes)<.11&&(i=e,p.attr("data-scout-isbn",e).find("#isbn-no").val(e),a.foundation().foundation("close"),v(e,!0))},b=t=>{let e=0,c=0;return t.forEach(({error:d})=>{d!==void 0&&(c++,e+=parseFloat(d))}),c?e/c:Number.MAX_VALUE},g=()=>({frequency:10,inputStream:{name:"Live",type:"LiveStream",target:r(a).find("#scanner-container")[0],constraints:{facingMode:"environment"},area:{top:"5%",right:"5%",left:"5%",bottom:"5%"}},decoder:{readers:["ean_reader"]},locate:!1,locator:{patchSize:"medium"}});u()};export{C as CTA_SELECTOR,U as bindIsbnScanner};
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.