UNPKG

territorium-proctoring

Version:

Componente de prueba

1 lines 21 kB
var TerritoriumProctoring=function(e){"use strict";function t(e,t,r,n,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function r(e){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=e.apply(r,n);function c(e){t(i,o,a,c,s,"next",e)}function s(e){t(i,o,a,c,s,"throw",e)}c(void 0)}))}}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=e.defineComponent({name:"TerritoriumProctoring",components:{TerritoriumDeviceManager:TerritoriumDeviceManager},props:{idUniversidad:{type:[Number,String],default:"1483"},idExamen:{type:[Number,String],default:"6078814"},idEstudiante:{type:[Number,String],default:"1414446"},urlConfig:{type:[Number,String],default:"http://localhost:8081/getconfig"},authorization:{type:[String],default:"62b3500e1fed8933d18a154bc0df26584fc744fb3e71e32fed52b208aa07dfd6c3158990624de11faa4be9a7d6e35c730f39de2074891a98cd60ad97e70926f8"},urlPerfil:{type:[Number,String],default:"https://proctoring-files.azureedge.net/files/proctoringFiles/1483/2021-03-30/FaceId/1050159/6tLwXWjEFpY51617121804TuoL21228600.jpg"}},data:function(){return{modelPromise:null,allowsLocalSupervision:!1,uriPerfil:null,uriCaptura:null,feedback:"",diagnosticos:[],capturas:[],objetosSospechoso:["backpack","handbag","tv","laptop","cell phone","book"],analisysType:["objetos","reconocido","acompanado","detectado"],maxDescriptorDistance:.6,faceMatcher:null,blobServiceClient:null,containerClient:null,containerName:"container-proctoring-test",urlToken:"http://localhost:8081/gentoken",urlProcessDiagnosticos:"http://localhost:8081/territoriumService",urlSaveDiagnosticos:"http://localhost:8081/storeevidences",urlSaveAudio:"http://localhost:8081/storeaudio",urlSaveVideo:"http://localhost:8081/storevideo",sasString:"se=2025-12-31&sp=rwdlac&sv=2018-03-28&ss=b&srt=sco&sig=yygWiToa3acI3mRmryM6t1wi%2Bgh1%2B7c4mme/Z8UOEik%3D",containerURL:null,accountName:"proctoringfiles",token:"",config:{},idCoreProctoring:null,timeInterval:1e3,timeElapsed:0,capturarFoto:0,capturarVideo:0,capturarAudio:0,uriAudio:null,uriVideo:null,blobVideo:null}},watch:{allowsLocalSupervision:"configProctoring",diagnosticos:"processDiagnosticos",capturas:"processCapturas",uriAudio:"processBlobAudio",blobVideo:"processBlobVideo"},methods:{processAudio:function(){this.allowsLocalSupervision||alert("No se permite supervision local")},processVideo:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.allowsLocalSupervision){t.next=7;break}return e.$refs.video.src=e.uriVideo,t.next=4,e.uploadFiles(e.uriVideo);case 4:t.sent,t.next=8;break;case 7:alert("No se permite supervision local");case 8:case"end":return t.stop()}}),t)})))()},processBlobVideo:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r="",void 0===e.blobVideo||null==e.blobVideo||e.blobVideo.size<=0){t.next=7;break}return t.next=4,e.uploadBlobVideo(e.blobVideo);case 4:return r=t.sent,t.next=7,e.saveVideo(r);case 7:case"end":return t.stop()}}),t)})))()},uploadBlobAudio:function(e){var t=arguments,n=this;return r(regeneratorRuntime.mark((function r(){var o,a,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:"",a="",r.prev=2,""==o&&(o=uuidv4(),o="".concat(o,".webm")),n.reportStatus("Uploading files..."),i=azblob.BlockBlobURL.fromContainerURL(n.containerURL,o),r.next=8,azblob.uploadBrowserDataToBlockBlob(azblob.Aborter.none,e,i);case 8:return a=r.sent,r.abrupt("return",a._response.request.url);case 12:return r.prev=12,r.t0=r.catch(2),n.reportStatus(r.t0.message),r.abrupt("return",null);case 16:case"end":return r.stop()}}),r,null,[[2,12]])})))()},processBlobAudio:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r="",void 0===e.uriAudio||null==e.uriAudio||e.uriAudio.size<=0){t.next=7;break}return t.next=4,e.uploadBlobAudio(e.uriAudio);case 4:return r=t.sent,t.next=7,e.saveAudio(r);case 7:case"end":return t.stop()}}),t)})))()},configProctoring:function(){this.allowsLocalSupervision},verifyLocalAnalysis:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r,n,o,a,i,c,s,u,l,p,d,f,g,m,h,b,v,x,w;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.modelPromise;case 2:return r=t.sent,n=["https://i.ibb.co/3N0ZRH1/CA1.jpg","https://i.ibb.co/C7hXLHt/CA2.jpg","https://i.ibb.co/tX5kjpL/CA3.jpg","https://i.ibb.co/yW2r9D4/CA4.jpg","https://i.ibb.co/VB67VPX/CA5.jpg","https://i.ibb.co/dLzKt0N/CA6.jpg","https://i.ibb.co/p0LwmBT/CA7.jpg","https://i.ibb.co/FwSscRy/CA8.jpg","https://i.ibb.co/wWyMj2n/CA9.jpg","https://i.ibb.co/fSjNfwT/CA11.jpg","https://i.ibb.co/QmWb2gC/CA10.jpg"],"https://i.ibb.co/fv2Nkyx/chris-Evans-Profile.jpg",o=["true","false","true","true","true","true","true","true","true","true","true"],a=["person","person","person","person","person","person","person","person","person","person","person"],i=[],c=[],s=0,t.next=6,faceapi.fetchImage("https://i.ibb.co/fv2Nkyx/chris-Evans-Profile.jpg");case 6:return u=t.sent,t.next=9,faceapi.detectSingleFace(u).withFaceLandmarks().withFaceDescriptor();case 9:l=t.sent,p=[l.descriptor],d=new faceapi.LabeledFaceDescriptors("true",p),.6,f=new faceapi.FaceMatcher(d,.6),g=0;case 15:if(!(g<n.length)){t.next=35;break}return m=n[g],t.next=19,faceapi.fetchImage(m);case 19:return h=t.sent,t.next=22,faceapi.detectAllFaces(h,new faceapi.TinyFaceDetectorOptions).withFaceLandmarks().withFaceDescriptors();case 22:return b=t.sent,v=b[0].descriptor,"unknown"==(x=f.findBestMatch(v)).label?i.push("false"):i.push(x.label),t.next=28,r.detect(h);case 28:(w=t.sent)[0]&&c.push(w[0].class),o[g]==i[g]&&a[g]==c[g]&&(s+=1);case 32:g++,t.next=15;break;case 35:e.allowsLocalSupervision=11==s;case 37:case"end":return t.stop()}}),t)})))()},verifyFace:function(e){var t=this;return r(regeneratorRuntime.mark((function r(){var n,a,i,c,s,u,l,p,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.uploadFiles(t.uriCaptura);case 2:return n=r.sent,a={idUniversidad:t.idUniversidad,idExamen:t.idExamen,IdEstudiante:t.idEstudiante,fotoPerfil:t.urlPerfil,objetos:[],diagnosticos:[],objetosSospechoso:[],marcaTiempoCaptura:"",marcaTiempoGuardado:"",guardado:!1,reconocido:!1,detectadosAnalisis:0,detectadosCoco:0,url:n},r.next=6,t.modelPromise;case 6:return i=r.sent,r.next=9,faceapi.fetchImage(e);case 9:return c=r.sent,r.next=12,faceapi.detectAllFaces(c).withFaceLandmarks().withFaceDescriptors();case 12:return s=r.sent,r.next=15,faceapi.detectAllFaces(c,new faceapi.TinyFaceDetectorOptions).withFaceLandmarks().withFaceDescriptors();case 15:if(r.sent,s.length>0)for(a.detectadosAnalisis=s.length,u=s.map((function(e){return t.faceMatcher.findBestMatch(e.descriptor)})),l=0;l<u.length;l++)"true"==u[l]._label&&(a.reconocido=!0);return r.next=19,i.detect(c);case 19:p=r.sent,d={id:0,name:""},a.objetos=p.map((function(e){return e.class})),a.objetosSospechoso=a.objetos.filter((function(e){return t.objetosSospechoso.includes(e)})),a.detectadosCoco=a.objetos.filter((function(e){return"person"==e})).length,a.reconocido&&(d={id:6,name:"Reconocido"},a.diagnosticos=[].concat(o(a.diagnosticos),[d])),a.objetosSospechoso.length>0&&(d={id:1,name:"Deteccion de objeto sospechoso"},a.diagnosticos=[].concat(o(a.diagnosticos),[d])),0==a.detectadosAnalisis&&0==a.detectadosCoco?(d={id:16,name:"No Detectado"},a.diagnosticos=[].concat(o(a.diagnosticos),[d])):a.detectadosAnalisis>1||a.detectadosCoco>1?(d={id:21,name:"Acompañado"},a.diagnosticos=[].concat(o(a.diagnosticos),[d])):0==a.reconocido&&(a.detectadosAnalisis>0||a.detectadosCoco>0)&&(d={id:11,name:"No Reconocido"},a.diagnosticos=[].concat(o(a.diagnosticos),[d])),t.diagnosticos=[].concat(o(t.diagnosticos),[a]),t.feedback=d.name;case 31:case"end":return r.stop()}}),r)})))()},blobToDataURL:function(e){return new Promise((function(t,r){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){t(n.result)},n.onerror=r}))},getFoto:function(){var e=this;return new Promise((function(t,r){var n=e.$refs.devices.photo(),o=new Image;o.src=n,o.onload=function(){t(o.src)},o.onerror=r}))},getVideo:function(){this.$refs.devices.video()},getAudio:function(){this.$refs.devices.audio()},procesarPerfil:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r,n,o,a,i,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.allowsLocalSupervision){t.next=22;break}return t.next=3,axios.get(e.urlPerfil,{method:"GET",responseType:"blob"});case 3:return r=t.sent,n=new Blob([r.data],{type:"image/jpeg"}),t.next=7,e.blobToDataURL(n);case 7:return e.uriPerfil=t.sent,e.$refs.perfil.src=e.uriPerfil,t.next=12,faceapi.fetchImage(e.urlPerfil);case 12:return o=t.sent,t.next=15,faceapi.detectSingleFace(o).withFaceLandmarks().withFaceDescriptor();case 15:a=t.sent,i=[a.descriptor],c=new faceapi.LabeledFaceDescriptors("true",i),.6,e.faceMatcher=new faceapi.FaceMatcher(c,.6),t.next=22;break;case 22:case"end":return t.stop()}}),t)})))()},getDataVerify:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.allowsLocalSupervision){t.next=8;break}return t.next=3,e.getFoto();case 3:return e.uriCaptura=t.sent,t.next=6,e.verifyFace(e.uriCaptura);case 6:t.next=8;break;case 8:case"end":return t.stop()}}),t)})))()},start:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getDataVerify();case 2:case"end":return t.stop()}}),t)})))()},reportStatus:function(e){},createContainer:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.reportStatus('Creating container "'.concat(e.containerName,'"...')),t.next=4,e.containerClient.create();case 4:e.reportStatus("Done."),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),e.reportStatus(t.t0.message);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},dataURItoBlob:function(e){for(var t=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),o=new Uint8Array(n),a=0;a<t.length;a++)o[a]=t.charCodeAt(a);return new Blob([n],{type:r})},uploadFiles:function(e){var t=arguments,n=this;return r(regeneratorRuntime.mark((function r(){var o,a,i,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:"",a="",i=n.dataURItoBlob(e),r.prev=3,""==o&&(o=uuidv4(),o="".concat(o,".jpg")),n.reportStatus("Uploading files..."),c=azblob.BlockBlobURL.fromContainerURL(n.containerURL,o),r.next=9,azblob.uploadBrowserDataToBlockBlob(azblob.Aborter.none,i,c);case 9:return a=r.sent,r.abrupt("return",a._response.request.url);case 13:return r.prev=13,r.t0=r.catch(3),n.reportStatus(r.t0.message),r.abrupt("return",null);case 17:case"end":return r.stop()}}),r,null,[[3,13]])})))()},uploadBlobVideo:function(e){var t=arguments,n=this;return r(regeneratorRuntime.mark((function r(){var o,a,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:"",a="",r.prev=2,""==o&&(o=uuidv4(),o="".concat(o,".webm")),n.reportStatus("Uploading files..."),i=azblob.BlockBlobURL.fromContainerURL(n.containerURL,o),r.next=8,azblob.uploadBrowserDataToBlockBlob(azblob.Aborter.none,e,i);case 8:return a=r.sent,r.abrupt("return",a._response.request.url);case 12:return r.prev=12,r.t0=r.catch(2),n.reportStatus(r.t0.message),r.abrupt("return",null);case 16:case"end":return r.stop()}}),r,null,[[2,12]])})))()},obtenerToken:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=JSON.stringify({data:{idtest:e.idExamen,iduser:e.idEstudiante,institution:e.idUniversidad}}),n={method:"post",url:e.urlToken,headers:{Authorization:"Bearer ".concat(e.authorization),"Content-Type":"application/json"},data:r},t.next=5,axios(n);case 5:o=t.sent,e.token=o.data,t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})))()},configDiagnosticos:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r={},r=JSON.stringify(r),n={method:"get",url:e.urlConfig,headers:{Authorization:"Bearer ".concat(e.token),"Content-Type":"application/json"},data:r},t.next=6,axios(n);case 6:o=t.sent,e.config=o.data,e.capturarFoto=e.config.startPhotos,e.capturarVideo=e.config.startVideo,e.capturarAudio=e.config.startAudio,t.next=15;break;case 13:t.prev=13,t.t0=t.catch(0);case 15:case"end":return t.stop()}}),t,null,[[0,13]])})))()},processDiagnosticos:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.diagnosticos.length>=e.config.acumularPhotos)){t.next=13;break}return t.prev=1,r={data:e.diagnosticos},r=JSON.stringify(r),n={method:"post",url:e.urlSaveDiagnosticos,headers:{Authorization:"Bearer ".concat(e.token),"Content-Type":"application/json"},data:r},t.next=7,axios(n);case 7:t.sent,e.diagnosticos=[],t.next=13;break;case 11:t.prev=11,t.t0=t.catch(1);case 13:case"end":return t.stop()}}),t,null,[[1,11]])})))()},processCapturas:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r,n,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.capturas.length>=e.config.acumularPhotos)){t.next=14;break}return t.prev=1,r=o(e.capturas),e.capturas=[],n={data:r,objects:e.objetosSospechoso,analisysType:e.analisysType,compareFace:e.urlPerfil},n=JSON.stringify(n),a={method:"post",url:e.urlProcessDiagnosticos,headers:{Authorization:"Bearer ".concat(e.token),"Content-Type":"application/json"},data:n},t.next=9,axios(a);case 9:t.sent,t.next=14;break;case 12:t.prev=12,t.t0=t.catch(1);case 14:case"end":return t.stop()}}),t,null,[[1,12]])})))()},saveVideo:function(e){var t=this;return r(regeneratorRuntime.mark((function r(){var n,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n={data:{url:e}},n=JSON.stringify(n),o={method:"post",url:t.urlSaveVideo,headers:{Authorization:"Bearer ".concat(t.token),"Content-Type":"application/json"},data:n},r.next=6,axios(o);case 6:r.sent,r.next=11;break;case 9:r.prev=9,r.t0=r.catch(0);case 11:case"end":return r.stop()}}),r,null,[[0,9]])})))()},saveAudio:function(e){var t=this;return r(regeneratorRuntime.mark((function r(){var n,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n={data:{url:e}},n=JSON.stringify(n),o={method:"post",url:t.urlSaveAudio,headers:{Authorization:"Bearer ".concat(t.token),"Content-Type":"application/json"},data:n},r.next=6,axios(o);case 6:r.sent,r.next=11;break;case 9:r.prev=9,r.t0=r.catch(0);case 11:case"end":return r.stop()}}),r,null,[[0,9]])})))()},coreProctoring:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.timeElapsed>=e.capturarVideo&&(e.capturarVideo=e.capturarVideo+e.config.intervalVideo,e.getVideo(),console.log("this.capturarVideo",e.capturarVideo)),e.timeElapsed>=e.capturarAudio&&(e.capturarAudio=e.capturarAudio+e.config.intervalAudio,e.getAudio(),console.log("this.capturarAudio",e.capturarAudio)),!(e.timeElapsed>=e.capturarFoto)){t.next=19;break}if(e.capturarFoto=e.capturarFoto+e.config.intervalPhotos,!e.allowsLocalSupervision){t.next=11;break}return t.next=7,e.getDataVerify();case 7:return t.next=9,e.processDiagnosticos();case 9:t.next=18;break;case 11:return t.next=13,e.getFoto();case 13:return r=t.sent,t.next=16,e.uploadFiles(r);case 16:n=t.sent,e.capturas=[].concat(o(e.capturas),[n]);case 18:console.log("this.capturarFoto",e.capturarFoto);case 19:e.timeElapsed=e.timeElapsed+e.timeInterval,console.log("this.timeElapsed",e.timeElapsed);case 21:case"end":return t.stop()}}),t)})))()},startProctoring:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log(e.config);try{e.config.active&&(e.idCoreProctoring=setIntervalAsync(e.coreProctoring,e.timeInterval))}catch(e){console.log(e)}case 2:case"end":return t.stop()}}),t)})))()},createContainer2:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,console.log('Creating container "'.concat(e.containerName,'"...')),t.next=4,e.containerURL.create(azblob.Aborter.none);case 4:console.log("Done."),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0.body.message);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}},mounted:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.allowsLocalSupervision=!1,t.next=3,e.obtenerToken();case 3:return t.next=5,e.configDiagnosticos();case 5:return console.log("inicio"),e.containerURL=new azblob.ContainerURL("https://".concat(e.accountName,".blob.core.windows.net/").concat(e.containerName,"?").concat(e.sasString),azblob.StorageURL.newPipeline(new azblob.AnonymousCredential)),t.next=9,e.createContainer2();case 9:return t.next=11,e.startProctoring();case 11:console.log("fin");case 12:case"end":return t.stop()}}),t)})))()},beforeUnmount:function(){var e=this;return r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,clearIntervalAsync(e.idCoreProctoring);case 2:case"end":return t.stop()}}),t)})))()}}),s=e.withScopeId("data-v-e6fc70d8");e.pushScopeId("data-v-e6fc70d8");var u={class:"territorium-proctoring"},l={ref:"perfil",src:""},p={ref:"captura",src:""};e.popScopeId();var d=s((function(t,r,n,o,a,i){var c=e.resolveComponent("territorium-device-manager");return e.openBlock(),e.createBlock("div",u,[e.createVNode(c,{ref:"devices",onSendAudio:r[1]||(r[1]=function(e){return t.uriAudio=e}),onSendBlob:r[2]||(r[2]=function(e){return t.blobVideo=e})},null,512),e.createVNode("label",null,e.toDisplayString(t.feedback),1),e.createVNode("img",l,null,512),e.createVNode("img",p,null,512)])}));!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.territorium-proctoring[data-v-e6fc70d8] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: darkgrey;\n width: 100%;\n height: 100%;\n}\n"),c.render=d,c.__scopeId="data-v-e6fc70d8";var f=function(){var e=c;return e.install=function(t){t.component("TerritoriumProctoring",e)},e}(),g=Object.freeze({__proto__:null,default:f});return Object.entries(g).forEach((function(e){var t=n(e,2),r=t[0],o=t[1];"default"!==r&&(f[r]=o)})),f}(Vue);