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AE,CAAC,6BAAO0H,CAAuB7H,EAAEC,EAAEC,EAAEC,GAAG,KAAKH,aAAa2H,QAAQ,OAAO,EAAE,IAAIvH,EAAEN,EAAE6N,mBAAyD,OAAtC3N,EAAE4N,YAAY,CAAC7I,GAAG3E,EAAEyN,KAAK5N,EAAE9C,KAAK+C,GAAGC,GAAUC,CAAC,EAAEN,EAAES,oBAAoB,IAAIT,EAAE0I,iBAAiB,mBAAmB1I,EAAEmJ,yBAAwB,EAAGnJ,EAAE6N,iBAAiB,EAAE,W","sources":["webpack://app/./app/javascript/packs/qr_scanner.js","webpack://app/./app/javascript/shared/spinner.js","webpack://app/./node_modules/qr-scanner/qr-scanner.min.js"],"sourcesContent":["import QrScanner from 'qr-scanner';\nimport {addSpinner} from '../shared/spinner'\nimport {removeSpinner} from '../shared/spinner'\n\nconst videoElem = document.getElementById('qr-scan-display');\nconst qrError = document.getElementById('qr-error');\nconst qrCode = document.getElementById('qr_code');\nconst form = document.getElementById('punch-form');\nlet spinnerContainer;\n\nconst qrScanner = new QrScanner(\n videoElem,\n result => send_login(result?.data),\n {\n onDecodeError: error => {\n qrError.textContent = error;\n },\n highlightScanRegion: true,\n highlightCodeOutline: true,\n maxScansPerSecond: 25\n },\n);\n\ndocument.addEventListener('DOMContentLoaded', () => {\n QrScanner.hasCamera()\n .then(result => start_camera(result))\n .catch(error => console.log(error || 'No Camera found.'));\n});\n\nfunction send_login(qr) {\n addSpinner(qrCode)\n qrCode.value = qr?.trim();\n qrScanner.stop();\n form.submit();\n}\n\nfunction start_camera(has_camera) {\n if (has_camera) {\n document.getElementById('qr-login').style.display = 'block';\n qrScanner.start()\n .then()\n .catch(error => console.log(error || 'Unable to Start Camera.'));\n }\n}\n","function addSpinner(element) {\n const card = element.closest('.card');\n\n // Create spinner container\n const spinnerContainer = document.createElement('div');\n spinnerContainer.classList.add('ajax-spinner-container');\n spinnerContainer.style.position = 'absolute';\n spinnerContainer.style.top = '0';\n spinnerContainer.style.left = '0';\n spinnerContainer.style.width = '100%';\n spinnerContainer.style.height = '100%';\n spinnerContainer.style.display = 'flex';\n spinnerContainer.style.justifyContent = 'center';\n spinnerContainer.style.alignItems = 'center';\n spinnerContainer.style.backgroundColor = 'rgba(0, 0, 0, 0.5)'; // Semi-transparent white background\n spinnerContainer.style.zIndex = '2';\n spinnerContainer.style.cursor = 'pointer';\n\n // Create spinner element (you can customize the spinner)\n const spinner = document.createElement('div');\n spinner.classList.add('ajax-spinner');\n spinner.innerHTML = `\n
{const x=parseFloat(r);return r.endsWith(\"%\")?(y?f-l:d-g)*x/100:x});n=this._scanRegion.width||b;q=this._scanRegion.height||c;p=this._scanRegion.x||0;var u=this._scanRegion.y||0;k=this.$overlay.style;k.width=\n`${n/b*g}px`;k.height=`${q/c*l}px`;k.top=`${m+w+u/c*l}px`;c=/scaleX\\(-1\\)/.test(a.style.transform);k.left=`${h+(c?d-v-g:v)+(c?b-p-n:p)/b*g}px`;k.transform=a.style.transform}})}static _convertPoints(a,b){if(!b)return a;let c=b.x||0,d=b.y||0,f=b.width&&b.downScaledWidth?b.width/b.downScaledWidth:1;b=b.height&&b.downScaledHeight?b.height/b.downScaledHeight:1;for(let h of a)h.x=h.x*f+c,h.y=h.y*b+d;return a}_scanFrame(){!this._active||this.$video.paused||this.$video.ended||(\"requestVideoFrameCallback\"in\nthis.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)(async()=>{if(!(1>=this.$video.readyState)){var a=Date.now()-this._lastScanTimestamp,b=1E3/this._maxScansPerSecond;asetTimeout(d,b-a));this._lastScanTimestamp=Date.now();try{var c=await e.scanImage(this.$video,{scanRegion:this._scanRegion,qrEngine:this._qrEnginePromise,canvas:this.$canvas})}catch(d){if(!this._active)return;this._onDecodeError(d)}!e._disableBarcodeDetector||await this._qrEnginePromise instanceof\nWorker||(this._qrEnginePromise=e.createQrEngine());c?(this._onDecode?this._onDecode(c):this._legacyOnDecode&&this._legacyOnDecode(c.data),this.$codeOutlineHighlight&&(clearTimeout(this._codeOutlineHighlightRemovalTimeout),this._codeOutlineHighlightRemovalTimeout=void 0,this.$codeOutlineHighlight.setAttribute(\"viewBox\",`${this._scanRegion.x||0} `+`${this._scanRegion.y||0} `+`${this._scanRegion.width||this.$video.videoWidth} `+`${this._scanRegion.height||this.$video.videoHeight}`),this.$codeOutlineHighlight.firstElementChild.setAttribute(\"points\",\nc.cornerPoints.map(({x:d,y:f})=>`${d},${f}`).join(\" \")),this.$codeOutlineHighlight.style.display=\"\")):this.$codeOutlineHighlight&&!this._codeOutlineHighlightRemovalTimeout&&(this._codeOutlineHighlightRemovalTimeout=setTimeout(()=>this.$codeOutlineHighlight.style.display=\"none\",100))}this._scanFrame()})}_onDecodeError(a){a!==e.NO_QR_CODE_FOUND&&console.log(a)}async _getCameraStream(){if(!navigator.mediaDevices)throw\"Camera not found.\";let a=/^(environment|user)$/.test(this._preferredCamera)?\"facingMode\":\n\"deviceId\",b=[{width:{min:1024}},{width:{min:768}},{}],c=b.map(d=>Object.assign({},d,{[a]:{exact:this._preferredCamera}}));for(let d of[...c,...b])try{let f=await navigator.mediaDevices.getUserMedia({video:d,audio:!1}),h=this._getFacingMode(f)||(d.facingMode?this._preferredCamera:\"environment\"===this._preferredCamera?\"user\":\"environment\");return{stream:f,facingMode:h}}catch(f){}throw\"Camera not found.\";}async _restartVideoStream(){let a=this._paused;await this.pause(!0)&&!a&&this._active&&await this.start()}static _stopVideoStream(a){for(let b of a.getTracks())b.stop(),\na.removeTrack(b)}_setVideoMirror(a){this.$video.style.transform=\"scaleX(\"+(\"user\"===a?-1:1)+\")\"}_getFacingMode(a){return(a=a.getVideoTracks()[0])?/rear|back|environment/i.test(a.label)?\"environment\":/front|user|face/i.test(a.label)?\"user\":null:null}static _drawToCanvas(a,b,c,d=!1){c=c||document.createElement(\"canvas\");let f=b&&b.x?b.x:0,h=b&&b.y?b.y:0,m=b&&b.width?b.width:a.videoWidth||a.width,n=b&&b.height?b.height:a.videoHeight||a.height;d||(d=b&&b.downScaledWidth?b.downScaledWidth:m,b=b&&b.downScaledHeight?\nb.downScaledHeight:n,c.width!==d&&(c.width=d),c.height!==b&&(c.height=b));b=c.getContext(\"2d\",{alpha:!1});b.imageSmoothingEnabled=!1;b.drawImage(a,f,h,m,n,0,0,c.width,c.height);return[c,b]}static async _loadImage(a){if(a instanceof Image)return await e._awaitImageLoad(a),a;if(a instanceof HTMLVideoElement||a instanceof HTMLCanvasElement||a instanceof SVGImageElement||\"OffscreenCanvas\"in window&&a instanceof OffscreenCanvas||\"ImageBitmap\"in window&&a instanceof ImageBitmap)return a;if(a instanceof\nFile||a instanceof Blob||a instanceof URL||\"string\"===typeof a){let b=new Image;b.src=a instanceof File||a instanceof Blob?URL.createObjectURL(a):a.toString();try{return await e._awaitImageLoad(b),b}finally{(a instanceof File||a instanceof Blob)&&URL.revokeObjectURL(b.src)}}else throw\"Unsupported image type.\";}static async _awaitImageLoad(a){a.complete&&0!==a.naturalWidth||await new Promise((b,c)=>{let d=f=>{a.removeEventListener(\"load\",d);a.removeEventListener(\"error\",d);f instanceof ErrorEvent?\nc(\"Image load error\"):b()};a.addEventListener(\"load\",d);a.addEventListener(\"error\",d)})}static async _postWorkerMessage(a,b,c,d){return e._postWorkerMessageSync(await a,b,c,d)}static _postWorkerMessageSync(a,b,c,d){if(!(a instanceof Worker))return-1;let f=e._workerMessageId++;a.postMessage({id:f,type:b,data:c},d);return f}}e.DEFAULT_CANVAS_SIZE=400;e.NO_QR_CODE_FOUND=\"No QR code found\";e._disableBarcodeDetector=!1;e._workerMessageId=0;export default e\n//# sourceMappingURL=qr-scanner.min.js.map\n"],"names":["videoElem","document","getElementById","qrError","qrCode","form","qrScanner","QrScanner","result","send_login","qr","data","addSpinner","value","trim","stop","submit","onDecodeError","error","textContent","highlightScanRegion","highlightCodeOutline","maxScansPerSecond","addEventListener","hasCamera","then","style","display","start","catch","console","log","element","card","closest","spinnerContainer","createElement","classList","add","position","top","left","width","height","justifyContent","alignItems","backgroundColor","zIndex","cursor","spinner","innerHTML","appendChild","removeSpinner","remove","e","constructor","a","b","c","d","f","this","_legacyCanvasSize","DEFAULT_CANVAS_SIZE","_preferredCamera","_maxScansPerSecond","_lastScanTimestamp","_destroyed","_flashOn","_paused","_active","$video","$canvas","_onDecode","warn","_legacyOnDecode","_onDecodeError","_calculateScanRegion","calculateScanRegion","preferredCamera","_onPlay","bind","_onLoadedMetaData","_onVisibilityChange","_updateOverlay","disablePictureInPicture","playsInline","muted","h","hidden","body","contains","parentElement","overlay","$overlay","pointerEvents","firstElementChild","animate","transform","duration","iterations","Infinity","direction","easing","m","insertBefore","nextSibling","insertAdjacentHTML","$codeOutlineHighlight","lastElementChild","_scanRegion","requestAnimationFrame","window","getComputedStyle","setProperty","visibility","opacity","removeChild","_qrEnginePromise","createQrEngine","WORKER_PATH","listCameras","length","navigator","mediaDevices","async","enumerateDevices","filter","kind","every","label","getUserMedia","audio","video","map","id","deviceId","_stopVideoStream","hasFlash","srcObject","MediaStream","_getCameraStream","stream","getVideoTracks","getSettings","isFlashOn","toggleFlash","turnFlashOff","turnFlashOn","applyConstraints","advanced","torch","_restartVideoStream","destroy","removeEventListener","_postWorkerMessage","Error","location","protocol","play","facingMode","_setVideoMirror","pause","Promise","setTimeout","setCamera","scanImage","n","scanRegion","qrEngine","canvas","disallowCanvasResizing","alsoTryWithoutScanRegion","p","k","q","all","_loadImage","_drawToCanvas","Worker","g","_postWorkerMessageSync","l","v","w","u","r","y","t","clearTimeout","cornerPoints","_convertPoints","NO_QR_CODE_FOUND","message","x","getImageData","buffer","race","detect","rawValue","test","_disableBarcodeDetector","setGrayscaleWeights","red","green","blue","useIntegerApproximation","setInversionMode","createWorker","BarcodeDetector","getSupportedFormats","includes","userAgentData","brands","some","brand","platform","getHighEntropyValues","architecture","platformVersion","parseInt","formats","_scanFrame","Math","round","min","videoWidth","videoHeight","downScaledWidth","downScaledHeight","offsetWidth","offsetHeight","offsetLeft","offsetTop","objectFit","objectPosition","split","parseFloat","endsWith","paused","ended","requestVideoFrameCallback","readyState","Date","now","_codeOutlineHighlightRemovalTimeout","setAttribute","join","Object","assign","exact","_getFacingMode","getTracks","removeTrack","getContext","alpha","imageSmoothingEnabled","drawImage","Image","_awaitImageLoad","HTMLVideoElement","HTMLCanvasElement","SVGImageElement","OffscreenCanvas","ImageBitmap","File","Blob","URL","src","createObjectURL","toString","revokeObjectURL","complete","naturalWidth","ErrorEvent","_workerMessageId","postMessage","type"],"sourceRoot":""}