PageSourceSearch

https://exty.ai/_expo/static/js/web/index-10299846ae821df0b780d114f409b7de.js

js exty.ai collected 2026-10-05 14:18:18 UTC 11,916 bytes, 3 lines download raw bytes

1__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=r(d[1]),l=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),o=r(d[3]),c=r(d[4]);function s(){const e=(0,t.c)(8),{appointmentId:n,kind:s}=(0,o.useLocalSearchParams)(),f="teleconsultation"===s?"Detalle de la consulta \u2013 Exty":"Detalle del turno \u2013 Exty";let p,_,j;return e[0]!==f?(p=(0,c.jsx)(u.PageHead,{title:f}),e[0]=f,e[1]=p):p=e[1],e[2]!==n||e[3]!==s?(_=(0,c.jsx)(l.default,{appointmentId:n,kind:s}),e[2]=n,e[3]=s,e[4]=_):_=e[4],e[5]!==p||e[6]!==_?(j=(0,c.jsxs)(c.Fragment,{children:[p,_]}),e[5]=p,e[6]=_,e[7]=j):j=e[7],j}},5572,[5688,5573,3288,79,2]);
2__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return D}});var e,t=r(d[0]),o=r(d[1]),n=r(d[2]),l=r(d[3]),c=r(d[4]),s=r(d[5]),u=r(d[6]),x=r(d[7]),h=r(d[8]),f=r(d[9]),y=r(d[10]),p=r(d[11]),j=r(d[12]),S=r(d[13]),b=(e=S)&&e.__esModule?e:{default:e},_=r(d[14]);const k=e=>{const o=(0,t.c)(7),{icon:n,children:l}=e,c=n;let u,x,h;return o[0]!==c?(u=(0,_.jsx)(s.NextIcon,{as:c,color:"exty-primary-700",fontSize:"default"}),o[0]=c,o[1]=u):u=o[1],o[2]!==l?(x=(0,_.jsx)(s.Text,{color:"exty-neutral-800",fontSize:"sm",children:l}),o[2]=l,o[3]=x):x=o[3],o[4]!==u||o[5]!==x?(h=(0,_.jsxs)(s.Stack,{flexDirection:"row",alignItems:"center",gap:"2",children:[u,x]}),o[4]=u,o[5]=x,o[6]=h):h=o[6],h},w=e=>{const n=(0,t.c)(62),{appointmentId:l}=e,{appointment:c,isLoading:x}=(0,o.useAppointment)(l),{cancel:p,isCanceling:j}=(0,o.useCancelAppointment)(),S=(0,s.useShowHide)(!1);let w;n[0]!==l||n[1]!==p||n[2]!==S?(w=async()=>{try{await p(l),S.hide(),f.toastService.show("Tu turno fue cancelado.","success")}catch(e){const t=e;S.hide(),t instanceof u.ApiError&&f.toastService.show(t.message,"error")}},n[0]=l,n[1]=p,n[2]=S,n[3]=w):w=n[3];const z=w;if(x||!c){let e,t;return n[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,_.jsx)(y.HeaderBar,{title:"Detalle del turno",showBackButton:!0}),n[4]=e):e=n[4],n[5]===Symbol.for("react.memo_cache_sentinel")?(t=(0,_.jsxs)(_.Fragment,{children:[e,(0,_.jsx)(s.Stack,{h:"100%",alignItems:"center",justifyContent:"center",children:(0,_.jsx)(s.Loader,{fontSize:"xl",color:"exty-primary-600"})})]}),n[5]=t):t=n[5],t}const{doctor:C,calendar:T}=c;let D;n[6]!==c?(D=(0,o.isCancelable)(c),n[6]=c,n[7]=D):D=n[7];const B=D;let I;n[8]===Symbol.for("react.memo_cache_sentinel")?(I=(0,_.jsx)(y.HeaderBar,{title:"Detalle del turno",showBackButton:!0}),n[8]=I):I=n[8];const v=`${C.first_name} ${C.last_name}`;let W,L,R,H,N,$,A,P,V,F,M,O,E;n[9]!==v?(W=(0,_.jsx)(s.Text,{fontWeight:"semibold",color:"exty-neutral-800",fontSize:"lg",children:v}),n[9]=v,n[10]=W):W=n[10],n[11]!==C.specialty?(L=(0,_.jsx)(s.Text,{color:"neutral-400",fontSize:"sm",children:C.specialty}),n[11]=C.specialty,n[12]=L):L=n[12],n[13]!==W||n[14]!==L?(R=(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"0.5",children:[W,L]}),n[13]=W,n[14]=L,n[15]=R):R=n[15],n[16]!==c.start?(H=(0,h.formatLongDateTime)(c.start),n[16]=c.start,n[17]=H):H=n[17],n[18]!==H?(N=(0,_.jsx)(k,{icon:"calendar_today",children:H}),n[18]=H,n[19]=N):N=n[19],n[20]!==c.motivo?($=c.motivo?(0,_.jsx)(k,{icon:"description",children:c.motivo}):null,n[20]=c.motivo,n[21]=$):$=n[21],n[22]!==c.status?(A="pending_payment"===c.status?(0,_.jsx)(s.Text,{color:"exty-primary-700",fontSize:"sm",fontWeight:"semibold",children:"Pago pendiente"}):null,n[22]=c.status,n[23]=A):A=n[23],n[24]!==$||n[25]!==A||n[26]!==R||n[27]!==N?(P=(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"3",backgroundColor:"neutral-white",borderRadius:"lg",borderWidth:1,borderColor:"exty-neutral-100",p:"4",children:[R,N,$,A]}),n[24]=$,n[25]=A,n[26]=R,n[27]=N,n[28]=P):P=n[28],n[29]!==T?(V=T?.google_url?(0,_.jsx)(s.Button,{onClick:()=>b.default.openURL(T.google_url),w:"100%",py:"3",borderRadius:"lg",backgroundColor:"exty-primary-100",children:(0,_.jsxs)(s.Stack,{flexDirection:"row",alignItems:"center",gap:"2",children:[(0,_.jsx)(s.NextIcon,{as:"calendar_today",color:"exty-primary-700",fontSize:"default"}),(0,_.jsx)(s.Text,{color:"exty-primary-700",fontWeight:"semibold",fontSize:"default",children:"Agregar a mi calendario"})]})}):null,n[29]=T,n[30]=V):V=n[30],n[31]===Symbol.for("react.memo_cache_sentinel")?(F=(0,_.jsx)(s.NextIcon,{as:"upload_file",color:"exty-secondary-800",fontSize:"lg"}),n[31]=F):F=n[31],n[32]===Symbol.for("react.memo_cache_sentinel")?(M=(0,_.jsxs)(s.Stack,{flexDirection:"row",alignItems:"center",gap:"2",backgroundColor:"exty-secondary-100",borderRadius:"lg",p:"3",children:[F,(0,_.jsx)(s.Stack,{flex:1,children:(0,_.jsx)(s.Text,{color:"exty-secondary-800",fontSize:"sm",children:"Pod\xe9s subir tus estudios a tu Historia Cl\xednica para que el m\xe9dico los tenga a mano."})})]}),n[32]=M):M=n[32],n[33]!==B||n[34]!==S.show?(O=B?(0,_.jsx)(s.Button,{onClick:S.show,w:"100%",py:"3",alignItems:"center",backgroundColor:"neutral-white",children:(0,_.jsx)(s.Text,{color:"exty-semantic-error-600",fontWeight:"semibold",fontSize:"default",children:"Cancelar turno"})}):null,n[33]=B,n[34]=S.show,n[35]=O):O=n[35],n[36]!==P||n[37]!==V||n[38]!==O?(E=(0,_.jsx)(s.ScrollBox,{h:"100%",children:(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"4",p:"4",children:[P,V,M,O]})}),n[36]=P,n[37]=V,n[38]=O,n[39]=E):E=n[39];const U=S.isVisible,q=S.hide,Q=C.specialty;let G;n[40]!==c.start?(G=(0,h.formatLongDateTime)(c.start),n[40]=c.start,n[41]=G):G=n[41];const J=`${Q} \xb7 ${G}`;let K,X,Y,Z,ee,te,oe;return n[42]!==j?(K=j?(0,_.jsx)(s.Loader,{fontSize:"default",color:"neutral-white"}):(0,_.jsx)(s.Text,{color:"neutral-white",fontWeight:"bold",fontSize:"default",children:"S\xed, cancelar el turno"}),n[42]=j,n[43]=K):K=n[43],n[44]!==z||n[45]!==j||n[46]!==K?(X=(0,_.jsx)(s.Button,{onClick:z,disabled:j,backgroundColor:"exty-semantic-error-600",py:"3",w:"100%",alignItems:"center",children:K}),n[44]=z,n[45]=j,n[46]=K,n[47]=X):X=n[47],n[48]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,_.jsx)(s.Text,{color:"exty-primary-700",fontWeight:"semibold",fontSize:"default",children:"Volver"}),n[48]=Y):Y=n[48],n[49]!==S.hide?(Z=(0,_.jsx)(s.Button,{onClick:S.hide,py:"3",w:"100%",alignItems:"center",backgroundColor:"neutral-white",children:Y}
2),n[49]=S.hide,n[50]=Z):Z=n[50],n[51]!==X||n[52]!==Z?(ee=(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"2",marginTop:"5",children:[X,Z]}),n[51]=X,n[52]=Z,n[53]=ee):ee=n[53],n[54]!==S.hide||n[55]!==S.isVisible||n[56]!==J||n[57]!==ee?(te=(0,_.jsx)(y.AlertModal,{isOpen:U,onClose:q,title:"\xbfQuer\xe9s cancelar este turno?",message:J,ctaButtons:ee}),n[54]=S.hide,n[55]=S.isVisible,n[56]=J,n[57]=ee,n[58]=te):te=n[58],n[59]!==E||n[60]!==te?(oe=(0,_.jsxs)(_.Fragment,{children:[I,E,te]}),n[59]=E,n[60]=te,n[61]=oe):oe=n[61],oe},z=e=>{switch(e){case"attended":return"Atendida";case"in_progress":return"En curso";case"cancelled":return"Cancelada"}},C=({document:e})=>{const t=(0,p.useRouter)(),[o,l]=(0,j.useState)(!1);return(0,_.jsxs)(s.Button,{onClick:async()=>{if(e.prescription_id)t.push(`/${x.Paths.MedicalPrescriptions}/${e.prescription_id}`);else{l(!0);try{const t=await(0,n.getMedicalRecord)(e.id,{error:()=>{f.toastService.show("No pudimos abrir el documento.","error")}});t.download_url?b.default.openURL(t.download_url):f.toastService.show("El documento todav\xeda no est\xe1 listo.","error")}catch{f.toastService.show("No pudimos abrir el documento.","error")}finally{l(!1)}}},disabled:o,w:"100%",py:"3",px:"3",borderRadius:"lg",backgroundColor:"exty-secondary-25",flexDirection:"row",alignItems:"center",gap:"2",children:[(0,_.jsx)(s.NextIcon,{as:"description",color:"exty-secondary-800",fontSize:"default"}),(0,_.jsx)(s.Stack,{flex:1,children:(0,_.jsx)(s.Text,{color:"exty-secondary-800",fontSize:"sm",numberOfLines:1,children:e.filename})}),o?(0,_.jsx)(s.Loader,{fontSize:"sm",color:"exty-secondary-800"}):(0,_.jsx)(s.Text,{color:"exty-secondary-800",fontSize:"sm",fontWeight:"semibold",children:e.prescription_id?"Ver receta":"Ver documento"})]})},T=e=>{const o=(0,t.c)(10),{orderId:n}=e,{history:u,isLoading:x,error:f}=(0,c.useDoctorOrderHistory)(),p=u?.find(e=>e.id===n);if((0,l.useTeleconsultationHistoryErrorToast)(f,u),x){let e,t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,_.jsx)(y.HeaderBar,{title:"Detalle de la consulta",showBackButton:!0}),o[0]=e):e=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,_.jsxs)(_.Fragment,{children:[e,(0,_.jsx)(s.Stack,{h:"100%",alignItems:"center",justifyContent:"center",children:(0,_.jsx)(s.Loader,{fontSize:"xl",color:"exty-primary-600"})})]}),o[1]=t):t=o[1],t}if(!u||!p){let e,t;return o[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,_.jsx)(y.HeaderBar,{title:"Detalle de la consulta",showBackButton:!0}),o[2]=e):e=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,_.jsxs)(_.Fragment,{children:[e,(0,_.jsxs)(s.Stack,{h:"100%",alignItems:"center",justifyContent:"center",gap:"2",p:"4",children:[(0,_.jsx)(s.NextIcon,{as:"error",color:"neutral-400",fontSize:"2xl"}),(0,_.jsx)(s.Text,{color:"neutral-400",fontSize:"default",textAlign:"center",children:"No encontramos esta consulta."})]})]}),o[3]=t):t=o[3],t}let j;o[4]===Symbol.for("react.memo_cache_sentinel")?(j=(0,_.jsx)(y.HeaderBar,{title:"Detalle de la consulta",showBackButton:!0}),o[4]=j):j=o[4];const S=p.doctor?`${p.doctor.first_name} ${p.doctor.last_name}`:"Sin m\xe9dico asignado";let b;o[5]!==S?(b=(0,_.jsx)(s.Text,{fontWeight:"semibold",color:"exty-neutral-800",fontSize:"lg",children:S}),o[5]=S,o[6]=b):b=o[6];const w=p.specialty?(0,_.jsx)(s.Text,{color:"neutral-400",fontSize:"sm",children:p.specialty}):null;let C;return o[7]!==b||o[8]!==w?(C=(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"0.5",children:[b,w]}),o[7]=b,o[8]=w,o[9]=C):C=o[9],(0,_.jsxs)(_.Fragment,{children:[j,(0,_.jsx)(s.ScrollBox,{h:"100%",children:(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"4",p:"4",children:[(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"3",backgroundColor:"neutral-white",borderRadius:"lg",borderWidth:1,borderColor:"exty-neutral-100",p:"4",children:[C,(0,_.jsx)(k,{icon:"calendar_today",children:(0,h.formatLongDateTime)(p.date)}),p.reason?(0,_.jsx)(k,{icon:"description",children:p.reason}):null,(0,_.jsx)(s.Text,{color:"cancelled"===p.status?"exty-semantic-error-600":"exty-primary-700",fontSize:"sm",fontWeight:"semibold",children:z(p.status)})]}),p.diagnosis?(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"1",backgroundColor:"neutral-white",borderRadius:"lg",borderWidth:1,borderColor:"exty-neutral-100",p:"4",children:[(0,_.jsx)(s.Text,{fontWeight:"semibold",color:"exty-neutral-800",fontSize:"default",children:"Diagn\xf3stico"}),(0,_.jsx)(s.Text,{color:"exty-neutral-800",fontSize:"sm",children:p.diagnosis.description??p.diagnosis.co
2de})]}):null,p.documents.length>0?(0,_.jsxs)(s.Stack,{flexDirection:"column",gap:"2",children:[(0,_.jsx)(s.Text,{fontWeight:"semibold",color:"exty-neutral-800",fontSize:"default",children:"Documentos"}),p.documents.map(B)]}):null]})})]})};var D=e=>{const o=(0,t.c)(4),{appointmentId:n,kind:l}=e;if("teleconsultation"===l){let e;return o[0]!==n?(e=(0,_.jsx)(T,{orderId:n}),o[0]=n,o[1]=e):e=o[1],e}let c;return o[2]!==n?(c=(0,_.jsx)(w,{appointmentId:n}),o[2]=n,o[3]=c):c=o[3],c};function B(e){return(0,_.jsx)(C,{document:e},e.id)}},5573,[5688,4392,4588,5574,4551,742,2339,2047,5575,2465,3288,79,39,398,2]);
3__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useTeleconsultationHistoryErrorToast",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);const s=(s,c)=>{const u=(0,t.c)(4);let l,f;u[0]!==s||u[1]!==c?(l=()=>{s&&!c&&o.toastService.show("No pudimos cargar esta consulta. Intent\xe1 de nuevo m\xe1s tarde.","error")},f=[s,c],u[0]=s,u[1]=c,u[2]=l,u[3]=f):(l=u[2],f=u[3]),(0,n.useEffect)(l,f)}},5574,[5688,2465,39]);

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.