PageSourceSearch

https://saluta-app.web.app/static/js/21.4eb2badb.chunk.js

js saluta-app.web.app collected 2026-10-03 12:39:12 UTC 11,597 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkreactsaluta=globalThis.webpackChunkreactsaluta||[]).push([[21],{12402(e,t,a){a.d(t,{AA:()=>l,DG:()=>d,Em:()=>n,LI:()=>u,Lc:()=>c,T1:()=>s,ZO:()=>m,er:()=>p});var i=a(90910),o=a(4695),r=a.n(o);const n=(e,t,o,n)=>async e=>{const{getReduxStore:d}=await a.e(1782).then(a.bind(a,81782)),c=await d(),s=c.db;let u=c.storage.child(`audios/${n.idDocument}.mp3`);await u.put(t).then(function(t){t.ref.getDownloadURL().then(function(t){""!==n.timeEnd?s.collection("meet_peritaje").doc(n.idDocument).update({timeEnd:n.timeEnd,descriptionStatus:"Asisti\xf3 por Videollamada",statusPeritaje:"Atenci\xf3n Finalizada",problemsConsalud:n.problemsConsalud,audio:!0,createDateAudio:(new Date).toUTCString(),urlAudio:t}).then(t=>{e({type:i.g.peritoAddNewAudio}),g(i.g.peritoAddNewAudio,o,n.idDocument),n.problemsConsalud?b("Se cre\xf3 el Audio del Peritaje"):b("Se Finaliz\xf3 el Peritaje")}).catch(t=>{e({type:i.g.peritoAddNewAudio}),y(i.g.peritoAddNewAudio,t.code,o),r().fire({icon:"error",title:"Error",text:"El Audio no se pudo guardar"})}):s.collection("meet_peritaje").doc(n.idDocument).update({audio:!0,createDateAudio:(new Date).toUTCString(),urlAudio:t}).then(t=>{e({type:i.g.peritoAddNewAudio}),g(i.g.peritoAddNewAudio,o,n.idDocument),b("Se Finaliz\xf3 el Peritaje")}).catch(t=>{e({type:i.g.peritoAddNewAudio}),y(i.g.peritoAddNewAudio,t.code,o),r().fire({icon:"error",title:"Error",text:"El Audio no se pudo guardar"})})})})},d=(e,t)=>async e=>{const{getReduxStore:o}=await a.e(1782).then(a.bind(a,81782)),n=(await o()).db;await n.collection("forms_peritaje").doc(t.idDocument).set({nameDoctor:t.nameDoctor,rutDoctor:t.rutDoctor,namePatient:t.namePatient.trim(),rutPatient:t.rutPatient.trim(),age:t.age,occupation:t.occupation.trim(),attend:t.attend,nDays:t.nDays,antecedentes:t.antecedentes.trim(),anamnesis:t.anamnesis,examenFisicoMental:t.examenFisicoMental.trim(),farmacos:t.farmacos.trim(),adecuado:t.adecuado,textAdecuado:t.textAdecuado.trim(),gradeCompromise:t.gradeCompromise,gradeCompromiseAdditional:t.gradeCompromiseAdditional,psychiatric:t.psychiatric.trim(),pathologyGes:t.pathologyGes,treatmentGes:t.treatmentGes,licenseGesInstitutional:t.licenseGesInstitutional,repose:t.repose,typeRepose:t.typeRepose,nDaysRepose:t.nDaysRepose,extension:t.extension,nDaysExtension:t.nDaysExtension,recoverability:t.recoverability,invalidityProcedures:t.invalidityProcedures,isapre:t.isapre,originPathology:t.originPathology,scoreObtained:t.scoreObtained,conclusion:t.conclusion,specialty:t.specialty.trim(),createDate:(new Date).toUTCString(),approved:!1,transcribed:!1,dateTranscribed:"",timestamp:t.timestamp,reviewedBy:{},reviewed:!1,opcPathology:t.opcPathology,questOne:t.questOne,questTwo:t.questTwo,questThree:t.questThree,questFour:t.questFour,questFive:t.questFive,questSix:t.questSix}).then(a=>{n.collection("meet_peritaje").doc(t.idDocument).update({timeEnd:t.timeEnd,idDocumentForm:t.idDocument,problemsConsalud:t.problemsConsalud,descriptionStatus:"Asisti\xf3 por Videollamada",statusPeritaje:"Atenci\xf3n Finalizada",dateApproved:"",approved:!1,reviewed:!1}).then(t=>{e({type:i.g.peritoAddNewAudio}),w("La atenci\xf3n pasar\xe1 a Finalizada una vez la digitadora transcriba esta informaci\xf3n a consalud")}).catch(e=>{y(i.g.peritoAddNewForm,e.code,t.rutDoctor),r().fire({icon:"error",title:"Error",text:"El Formulario no se pudo guardar"})})}).catch(e=>{y(i.g.peritoAddNewForm,e.code,t.rutDoctor),r().fire({icon:"error",title:"Error",text:"Hubo problemas al crear el formulario"})})},c=(e,t,o,n,d)=>async c=>{const{getReduxStore:s}=await a.e(1782).then(a.bind(a,81782)),u=(await s()).db,l=`${d.nameFirst} ${d.nameSecond}`,m=`${d.lastnameFirst} ${d.lastnameSecond}`,p=`${l.trim()} ${m.trim()}`;let D=(new Date).toUTCString(),h=u.collection("forms_peritaje").doc(`${e}`);return await h.update({nameDoctor:t.nameDoctor,rutDoctor:t.rutDoctor,namePatient:t.namePatient.trim(),rutPatient:t.rutPatient.trim(),age:t.age,occupation:t.occupation.trim(),attend:t.attend,nDays:t.nDays,antecedentes:t.antecedentes.trim(),anamnesis:t.anamnesis,examenFisicoMental:t.examenFisicoMental.trim(),farmacos:t.farmacos.trim(),adecuado:t.adecuado,textAdecuado:t.textAdecuado.trim(),gradeCompromise:t.gradeCompromise,gradeCompromiseAdditional:t.gradeCompromiseAdditional,psychiatric:t.psychiatric.trim(),pathologyGes:t.pathologyGes,treatmentGes:t.treatmentGes,licenseGesInstitutional:t.licenseGesInstitutional,repose:t.repose,typeRepose:t.typeRepose?t.typeRepose:"",nDaysRepose:t.nDaysRepose?t.nDaysRepose:"",extension:t.extension,nDaysExtension:t.nDaysExtension,recoverability:t.recoverability,invalidityProcedures:t.invali
1dityProcedures,originPathology:t.originPathology,scoreObtained:t.scoreObtained,conclusion:t.conclusion,specialty:t.specialty.trim(),approved:n,dateApproved:0===o?D:"",reviewed:1===o||t.reviewed,reviewedBy:1===o?{name:p.trim(),dni:d.dni,email:d.email,typeUser:d.typeUser}:t.reviewedBy,opcPathology:t.opcPathology,questOne:t.questOne,questTwo:t.questTwo,questThree:t.questThree,questFour:t.questFour,questFive:t.questFive,questSix:t.questSix}).then(()=>{c({type:i.g.digitadorChangeStateAudio}),g(i.g.digitadorChangeStateAudio,t.rutDoctor,e),u.collection("meet_peritaje").doc(e).update({approved:0===o,dateApproved:0===o?D:"",reviewed:1===o||t.reviewed,reviewedBy:1===o?{name:p.trim(),dni:d.dni,email:d.email,typeUser:d.typeUser}:t.reviewedBy}).then(e=>{c({type:i.g.peritoAddNewAudio}),r().fire("Excelente!",1===o?"El Formulario cambi\xf3 el estado a Revisado":n?"El Formulario cambi\xf3 el estado a Aprobado":"El Formulario se actualiz\xf3","success")}).catch(t=>{c({type:i.g.peritoUpdateForm}),y(i.g.peritoUpdateForm,t.code,e),r().fire({icon:"error",title:"Error",text:"No se pudo cambiar el estado a Aprobado"})})}).catch(e=>{y(i.g.peritoUpdateForm,e.code,t.rutDoctor),r().fire({icon:"error",title:"Error",text:"Hubo problemas al cambiar el estado a Aprobado"})})},s=e=>async t=>{const{getReduxStore:i}=await a.e(1782).then(a.bind(a,81782)),o=(await i()).db;await o.collection("meet_peritaje").doc(e.idDocument).update({transcribedConsalud:!0,dateApproved:(new Date).toUTCString()}).then(e=>{b("Se Confirm\xf3 la Transcripci\xf3n")}).catch(e=>{P("Error al Confirmar la Transcripci\xf3n")})},u=(e,t)=>async o=>{const{getReduxStore:r}=await a.e(1782).then(a.bind(a,81782)),n=(await r()).db;o({type:i.g.peritoAttendance}),t.problemsConsalud?await n.collection("meet_peritaje").doc(t.idDocument).update({timeEnd:t.timeEnd,statusPeritaje:"Atenci\xf3n Finalizada",formConsalud:t.formConsalud,descriptionStatus:t.description,problemsConsalud:t.problemsConsalud}).then(a=>{o({type:i.g.updateTimeEndPeritaje}),D(i.g.updateTimeEndPeritaje,e,t.idDocument),w("Puede crear Audio o Formulario para que el Digitar lo Transcriba a Consalud Posteriormente")}).catch(a=>{o({type:i.g.updateTimeDoctorPeritaje}),h(i.g.updateTimeDoctorPeritaje,a.code,e,t.idDocument),P("Error al Guardar el Peritaje")}):t.transcribedConsalud?await n.collection("meet_peritaje").doc(t.idDocument).update({timeEnd:t.timeEnd,statusPeritaje:"Atenci\xf3n Finalizada",formConsalud:t.formConsalud,descriptionStatus:t.description,transcribedConsalud:t.transcribedConsalud}).then(a=>{o({type:i.g.updateTimeEndPeritaje}),D(i.g.updateTimeEndPeritaje,e,t.idDocument),b("Se Finaliz\xf3 el Peritaje")}).catch(a=>{o({type:i.g.updateTimeDoctorPeritaje}),h(i.g.updateTimeDoctorPeritaje,a.code,e,t.idDocument),P("Error al Guardar el Peritaje")}):await n.collection("meet_peritaje").doc(t.idDocument).update({timeEnd:t.timeEnd,statusPeritaje:"Atenci\xf3n Finalizada",formConsalud:t.formConsalud,descriptionStatus:t.description}).then(a=>{o({type:i.g.updateTimeEndPeritaje}),D(i.g.updateTimeEndPeritaje,e,t.idDocument),w("Se Finaliz\xf3 el Peritaje, no olvide transcribir el Peritaje y Confirmar la Transcripci\xf3n en la Plataforma de Saluta")}).catch(a=>{o({type:i.g.updateTimeDoctorPeritaje}),h(i.g.updateTimeDoctorPeritaje,a.code,e,t.idDocument),P("Error al Guardar el Peritaje")})},l=(e,t)=>{let o=""!==t.timePatient?"Doctor y Paciente en Videollamada":"Doctor en Videollamada";return async r=>{const{getReduxStore:n}=await a.e(1782).then(a.bind(a,81782)),d=(await n()).db;await d.collection("meet_peritaje").doc(t.idDocument).update({timeDoctor:t.timeDoctor,statusPeritaje:o}).then(a=>{r({type:i.g.updateTimeDoctorPeritaje}),D(i.g.updateTimeDoctorPeritaje,e,t.idDocument)}).catch(a=>{r({type:i.g.updateTimeDoctorPeritaje}),h(i.g.updateTimeDoctorPeritaje,a.code,e,t.idDocument)})}},m=e=>async()=>{const{getReduxStore:t}=await a.e(1782).then(a.bind(a,81782)),i=(await t()).db;await i.collection("meet_peritaje").doc(e.idDocument).update({timeEnd:e.timeEnd,statusPeritaje:"Atenci\xf3n Finalizada",descriptionStatus:e.description}).then(e=>{w("Una vez transcrito en consalud porfavor recuerde confirmar la transcripci\xf3n en la Plataforma de Saluta")}).catch(e=>{P("Error al Guardar el Peritaje")})},p=e=>async t=>{const{getReduxStore:o}=await a.e(1782).then(a.bind(a,81782)),n=(await o()).db;await n.collection("forms_peritaje").doc(e.idDocument).set({nameDoctor:e.n
1ameDoctor,rutDoctor:e.rutDoctor,namePatient:e.namePatient,rutPatient:e.rutPatient,age:"",occupation:"",attend:!1,nDays:"",antecedentes:"",anamnesis:"",examenFisicoMental:"",farmacos:"",adecuado:"",textAdecuado:"",gradeCompromise:"",psychiatric:"",pathologyGes:"",treatmentGes:"",licenseGesInstitutional:"",repose:"",extension:"",nDaysExtension:"",recoverability:"",invalidityProcedures:"",originPathology:"",scoreObtained:"",conclusion:"",specialty:"",createDate:e.timeEnd,approved:!0,transcribed:!1,dateTranscribed:"",timestamp:e.timestamp}).then(t=>{n.collection("meet_peritaje").doc(e.idDocument).update({timeEnd:e.timeEnd,idDocumentForm:e.idDocument,formConsalud:e.formConsalud,descriptionStatus:e.descriptionStatus,statusPeritaje:"Atenci\xf3n Finalizada",dateApproved:e.timeEnd,approved:!0}).then(e=>{w("La atenci\xf3n pasar\xe1 a Finalizada una vez la digitadora transcriba esta informaci\xf3n a Consalud")}).catch(e=>{r().fire({icon:"error",title:"Error",text:"El Formulario no se pudo guardar"})})}).catch(a=>{t({type:i.g.digitadorChangeStateAudio}),y(i.g.digitadorChangeStateAudio,a.code,e.rutDoctor),console.log(a),r().fire({icon:"error",title:"Error",text:"Hubo problemas al cambiar el estado a Aprobado"})})},g=async(e,t,i)=>{const{getReduxStore:o}=await a.e(1782).then(a.bind(a,81782)),r=(await o()).db;let n=new Date;r.collection("log").add({log_date:n,action:e,user:t,id_audio:i}).then(e=>{}).catch(e=>{})},y=async(e,t,i)=>{const{getReduxStore:o}=await a.e(1782).then(a.bind(a,81782)),r=(await o()).db;let n=new Date;r.collection("log").add({log_date:n,action:e,error:t,user:i}).then(e=>{}).catch(e=>{})},D=async(e,t,i)=>{const{getReduxStore:o}=await a.e(1782).then(a.bind(a,81782)),r=(await o()).db;let n=new Date;r.collection("log").add({log_date:n,action:e,user:t,id_document:i}).then(e=>{}).catch(e=>{})},h=async(e,t,i,o)=>{const{getReduxStore:r}=await a.e(1782).then(a.bind(a,81782)),n=(await r()).db;let d=new Date;n.collection("log").add({log_date:d,action:e,error:t,user:i,id_document:o}).then(e=>{}).catch(e=>{})},b=e=>{r().fire({position:"center",title:"Excelente!",text:e,icon:"success",showConfirmButton:!0})},w=e=>{let t;r().fire({title:"Excelente!",html:`${e}. Esta ventana se cerrar\xe1 en <b></b> segundos`,timer:1e4,timerProgressBar:!0,didOpen:()=>{r().showLoading();const e=r().getHtmlContainer().querySelector("b");t=setInterval(()=>{e.textContent=Math.round(r().getTimerLeft()/1e3)},100)},willClose:()=>{clearInterval(t)}})},P=e=>{r().fire({icon:"error",title:"Error",text:"El audio no se pudo guardar"})}}}]);

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.