PageSourceSearch

https://app.stoqui.com.br/assets/web-Brw6WZih.js

js stoqui.com.br collected 2026-09-24 11:58:51 UTC 3,552 bytes, 1 lines download raw bytes

1import{W as p}from"./index-TALscxEc.js";import{C as S,H as w,a as g}from"./index-D9stzMVV.js";import"./mui-CRsYZxVY.js";import"./vendor-Dwao9eNC.js";import"./query-8ViTdhdk.js";import"./datePickers-BIJXYOKG.js";import"./icons-D8aatgQ4.js";import"./lab-DSem1Osk.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"2ad85febf9735404429b0670d4acf56a0af5a0a2"}}catch{}})();try{(function(){var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="68aaec5a-2c63-40ca-9f84-5a07e5afdc4f",n._sentryDebugIdIdentifier="sentry-dbid-68aaec5a-2c63-40ca-9f84-5a07e5afdc4f")})()}catch{}class O extends p{async stopAndHideScanner(){console.log(window.OSBarcodeWebScanner),window.OSBarcodeWebScanner&&(await window.OSBarcodeWebScanner.stop(),window.OSBarcodeWebScanner=null),document.getElementById("cap-os-barcode-scanner-container-dialog").style.display="none"}buildScannerElement(){if(document.getElementById("cap-os-barcode-scanner-container")){document.getElementById("cap-os-barcode-scanner-container").className="scanner-container-display";return}const e=document.body.appendChild(document.createElement("div"));e.id="cap-os-barcode-scanner-container";const r=document.createElement("div");r.id="cap-os-barcode-scanner-container-dialog",r.className="scanner-dialog";const o=document.createElement("div");o.className="scanner-dialog-inner";const c=document.createElement("span");c.className="close-button",c.innerHTML="&times;",o.appendChild(c);const t=document.createElement("p");t.innerHTML="&nbsp;",o.appendChild(t);const a=document.createElement("div");a.className="scanner-container-full-width",a.id="cap-os-barcode-scanner-container-scanner",o.appendChild(a),r.appendChild(o),e.appendChild(r),c.onclick=this.stopAndHideScanner}async scanBarcode(e){return this.buildScannerElement(),document.getElementById("cap-os-barcode-scanner-container-dialog").style.display="block",new Promise((r,o)=>{var c,t;const a={facingMode:e.cameraDirection===1?"environment":"user",hasScannerButton:!1,scanButton:e.scanButton===void 0?!1:e.scanButton,showScanLine:!1,scanInstructions:e.scanInstructions?e.scanInstructions:"",orientation:e.scanOrientation?e.scanOrientation:S.PORTRAIT,showCameraSelection:!((c=e.web)===null||c===void 0)&&c.showCameraSelection?e.web.showCameraSelection:!1,typeHint:e.hint===17?void 0:e.hint,scannerFPS:!((t=e.web)===null||t===void 0)&&t.scannerFPS?e.web.scannerFPS:50},s=document.getElementById("cap-os-barcode-scanner-container-scanner");if(!s)throw new Error("Scanner Element is required for web");window.OSBarcodeWebScanner=new w(s.id,{formatsToSupport:a.typeHint!==void 0?[a.typeHint]:void 0,verbose:void 0});const u={fps:a.scannerFPS,qrbox:s.getBoundingClientRect().width*(9/16)-10,aspectRatio:16/9,videoConstraints:{focusMode:"continuous",height:{min:576,ideal:1920},deviceId:void 0,facingMode:a.facingMode}},b=(d,f)=>{var i,l;this.stopAndHideScanner(),r({ScanResult:d,format:(l=(i=f.result.format)===null||i===void 0?void 0:i.format)!==null&&l!==void 0?l:g.ALL})},m=d=>{["NotFoundException","No barcode or QR code detected","No MultiFormat Readers were able to detect the code"].find(i=>d.indexOf(i)!==-1)||(this.stopAndHideScanner(),console.error(`[Scanner Web Error] ${d}`),o(d))};window.OSBarcodeWebScanner.start({facingMode:a.facingMode},u,b,m)})}}export{O as CapacitorBarcodeScannerWeb};

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.