1import{a as It}from"./chunk-5HI72EE4.js";import{a as Nt,b as Vt,c as Bt,d as z}from"./chunk-IKWRQ4GC.js";import{a as Dt,b as kt}from"./chunk-QVRKFDXD.js";import{e as Ut,f as Ft,g as qt}from"./chunk-JXHHNFK4.js";import{d as jt,e as Wt}from"./chunk-O5EJJVHH.js";import{a as zt}from"./chunk-7C5JE7JZ.js";import{b as Lt}from"./chunk-J5NRK73A.js";import"./chunk-HUERJLW6.js";import{c as yt,e as Ie}from"./chunk-K7GGQVIK.js";import{a as At}from"./chunk-JGFUTTST.js";import{a as Tt}from"./chunk-5CRQFKDA.js";import"./chunk-BYXBJQAS.js";import{a as ae}from"./chunk-7AAUCWQR.js";import{c as we}from"./chunk-4TJQHVPV.js";import"./chunk-XGHI7KS5.js";import{a as wt}from"./chunk-GX4UVFWP.js";import"./chunk-GCZ3C3HM.js";import{a as Mt,b as Rt}from"./chunk-Z36TISWV.js";import{C as Ot,L as bt,f as Pt,i as ht,j as vt,r as Ct,s as xt,v as Le}from"./chunk-25QDB3SE.js";import{a as Me,f as me}from"./chunk-KJ3PV2LN.js";import"./chunk-HCVRNL4G.js";import"./chunk-AJZMXFMA.js";import{a as Re}from"./chunk-NZ4I6U2Z.js";import"./chunk-6IH4M65S.js";import"./chunk-6DMACB4X.js";import{a as St}from"./chunk-SXLHBEO2.js";import"./chunk-IUPWKUGB.js";import"./chunk-WXXKR7LF.js";import{a as ot}from"./chunk-FV2Q4OA6.js";import{e as Fe,j as Et}from"./chunk-QPZCEWML.js";import"./chunk-L44SDTPC.js";import{f as _t}from"./chunk-CLQP3QCS.js";import"./chunk-TWVMK4TV.js";import"./chunk-EGNI2XJ3.js";import{a as be}from"./chunk-A3N634GV.js";import"./chunk-F457L6VT.js";import"./chunk-6BC3ZOBR.js";import{Ga as fe,I as gt,b as ct,h as ue,s as ce,w as ut,y as ft}from"./chunk-4U4PLY73.js";import{a as pt}from"./chunk-RQ4F2COW.js";import"./chunk-7RWCIHFI.js";import"./chunk-GP7G4HVV.js";import"./chunk-X5ROTD3U.js";import{a as ne}from"./chunk-V4NS6LW3.js";import{a as rt}from"./chunk-VFTYDXHH.js";import{a as Ue}from"./chunk-LJSWAOQY.js";import"./chunk-RFPVTC6I.js";import{b as it}from"./chunk-SPFBMSSO.js";import"./chunk-TZOYHBJT.js";import"./chunk-34KEMFZC.js";import{g as dt,j as k,k as G}from"./chunk-4BUGZAA4.js";import"./chunk-3TCRHIAB.js";import{p as mt}from"./chunk-76JNFTGE.js";import{A as Ce,Dc as nt,Hc as Oe,Ja as Qe,Ra as $e,g as F,ga as Ke,l as Ze,tc as et,vc as tt}from"./chunk-C7VFP4N4.js";import{c as N,d as I}from"./chunk-CYMQMRSQ.js";import{C as xe,E as Xe,d as ke,j as Je,m as x}from"./chunk-SAPP7HDL.js";import"./chunk-YJOTM47P.js";import{g as Ge}from"./chunk-2PJAPLDY.js";import"./chunk-UQ5LDOFJ.js";import{Fb as lt,Ua as at,vb as st}from"./chunk-C2CO7BOS.js";import"./chunk-UVTXHEDZ.js";import{f as Ye,i as V,k as He,q as w}from"./chunk-3APTCJCW.js";import"./chunk-KDTKTPR2.js";import"./chunk-TPWGF6XO.js";import{Ac as T,Bc as A,Cb as l,Cc as re,Dc as j,Ha as X,Ia as P,Ib as O,Ic as C,Ja as h,Jc as E,Ka as ee,La as Pe,Mc as b,Nc as ve,Qc as Z,Rc as K,Sc as Q,Tb as R,Ua as L,Wc as y,Xc as r,Yb as g,Yc as te,Zc as _,_c as je,id as We,lc as c,mc as he,nc as v,pd as u,qd as f,ra as pe,sc as q,sd as U,wa as Y,xc as s,yc as i,zc as m}from"./chunk-MH4BPXDL.js";import{l as J}from"./chunk-CU44V7JF.js";var se=class e{constructor(o,p){this._userVediusReferenceKey=o,this._value=p}static from(o,p){return new e(o,p)}get value(){return this._value}get userVediusReferenceKey(){return this._userVediusReferenceKey}};function sn(e,o){if(e&1&&(s(0,"span"),r(1),i()),e&2){let p=E();l(),_(" (",p.patientRegisterProfileRemoteSent==null||p.patientRegisterProfileRemoteSent.professional==null||p.patientRegisterProfileRemoteSent.professional.register==null?null:p.patientRegisterProfileRemoteSent.professional.register.value,") ")}}function ln(e,o){if(e&1&&(s(0,"div",12),m(1,"mat-icon",13),s(2,"vedius-text",8),r(3),i()()),e&2){let p=E();l(2),c("size",p.isSmallScreen?"nano":"sm"),l(),_(" ",p.patientRegisterProfileRemoteSent==null||p.patientRegisterProfileRemoteSent.professional==null||p.patientRegisterProfileRemoteSent.professional.phone==null?null:p.patientRegisterProfileRemoteSent.professional.phone.formattedPhoneNumber()," ")}}function pn(e,o){if(e&1&&(s(0,"div",12),m(1,"mat-icon",14),s(2,"vedius-text",8),r(3),i()()),e&2){let p=E();l(2),c("size",p.isSmallScreen?"nano":"sm"),l(),_(" ",p.patientRegisterProfileRemoteSent==null||p.patientRegisterProfileRemoteSent.professional==null||p.patientRegisterProfileRemoteSent.professional.email==null?null:p.patientRegisterProfileRemoteSent.professional.email.value," ")}}var Te=(()=>{let o=class o{constructor(a){this.translation=a,this.borderRadius=8,this.isSmallScreen=!1,this.professionalOccupation=""}ngOnInit(){this.loadOccupationTranslation()}loadOccupationTranslation(){return J(this,null,function*(){this.professionalOccupation=this.patientRegisterProfileRemoteSent?.professional?.occupations?.length?yield Ze(this.translation,this.patientRegisterProfileRemoteSent.professional.occupations[0]):""})}};o.\u0275fac=function(n){return new(n||o)(O(ne))}
1,o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-professional-card"]],inputs:{patientRegisterProfileRemoteSent:"patientRegisterProfileRemoteSent",borderRadius:"borderRadius",isSmallScreen:"isSmallScreen"},decls:16,vars:14,consts:[[1,"answer-patient-remote-profile-professional-card"],[1,"professional-info-card-content"],[1,"professional-avatar"],["size","xlarge",3,"alt","src"],[1,"professional-info"],[1,"professional-info-content"],["variant","text",1,"neutral-dark-color",3,"size"],["variant","text",1,"neutral-dusk-color",3,"size"],["variant","text",1,"neutral-darker-color",3,"size"],[4,"ngIf"],[1,"professional-contact"],["class","contact-item",4,"ngIf"],[1,"contact-item"],["svgIcon","phone",1,"contact-icon"],["svgIcon","email",1,"contact-icon"]],template:function(n,t){n&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),m(3,"vedius-avatar",3),i(),s(4,"div",4)(5,"div",5)(6,"vedius-text",6),r(7," Profissional Respons\xE1vel "),i(),s(8,"vedius-text",7),r(9),i()(),s(10,"vedius-text",8),r(11),g(12,sn,2,1,"span",9),i()()(),s(13,"div",10),g(14,ln,4,2,"div",11)(15,pn,4,2,"div",11),i()()),n&2&&(he("border-radius",t.borderRadius),v("small",t.isSmallScreen),l(3),c("alt",t.patientRegisterProfileRemoteSent==null||t.patientRegisterProfileRemoteSent.professional==null||t.patientRegisterProfileRemoteSent.professional.name==null?null:t.patientRegisterProfileRemoteSent.professional.name.fullName)("src",(t.patientRegisterProfileRemoteSent==null||t.patientRegisterProfileRemoteSent.professional==null||t.patientRegisterProfileRemoteSent.professional.logo==null?null:t.patientRegisterProfileRemoteSent.professional.logo.url)||""),l(3),c("size",t.isSmallScreen?"nano":"micro"),l(2),c("size",t.isSmallScreen?"sm":"xl"),l(),_(" ",t.patientRegisterProfileRemoteSent==null||t.patientRegisterProfileRemoteSent.professional==null||t.patientRegisterProfileRemoteSent.professional.name==null?null:t.patientRegisterProfileRemoteSent.professional.name.fullName," "),l(),c("size",t.isSmallScreen?"nano":"sm"),l(),_(" ",t.professionalOccupation," "),l(),c("ngIf",t.patientRegisterProfileRemoteSent==null||t.patientRegisterProfileRemoteSent.professional==null||t.patientRegisterProfileRemoteSent.professional.register==null?null:t.patientRegisterProfileRemoteSent.professional.register.value),l(2),c("ngIf",t.patientRegisterProfileRemoteSent==null||t.patientRegisterProfileRemoteSent.professional==null?null:t.patientRegisterProfileRemoteSent.professional.phone),l(),c("ngIf",t.patientRegisterProfileRemoteSent==null||t.patientRegisterProfileRemoteSent.professional==null||t.patientRegisterProfileRemoteSent.professional.email==null?null:t.patientRegisterProfileRemoteSent.professional.email.value))},dependencies:[w,V,dt,At,k,I],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:40px;align-items:flex-start;gap:24px;border-radius:8px;border:1px solid #d3dae5;background:#fff;box-sizing:border-box}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .professional-avatar[_ngcontent-%COMP%]{flex-shrink:0}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .professional-info-card-content[_ngcontent-%COMP%]{display:flex;width:100%;align-items:flex-start;gap:24px}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .professional-info[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:8px}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .professional-info[_ngcontent-%COMP%] .professional-info-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .neutral-dark-color[_ngcontent-%COMP%]{color:#6d7a8e}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .neutral-darker-color[_ngcontent-%COMP%]{color:#425168}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .professional-contact[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .contact-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.answer-patient-remote-profile-professional-card[_ngcontent-%COMP%] .contact-icon[_ngcontent-%COMP%]{width:16px;height:16px;stroke:#96a0b0}.answer-patient-remote-profile-professional-card.small[_ngcontent-%COMP%] .contact-icon[_ngcontent-%COMP%]{width:13px;height:13px}"]});let e=o;return e})();function cn(e,o){e&1&&(s(0,"div",1)(1,"div",8),m(2,"img",9),s(3,"vedius-text",10),r(4,"vedius"),i()()())}var Yt=(()=>{let o=class o{constructor(){this.isSmallScreen=!1,this.startClicked=new L}
1onStartClick(){this.startClicked.emit()}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-welcome-step"]],inputs:{patientRegisterProfileRemoteSent:"patientRegisterProfileRemoteSent",isSmallScreen:"isSmallScreen"},outputs:{startClicked:"startClicked"},decls:14,vars:16,consts:[[1,"welcome-step-container"],[1,"vedius-logo-content-wrapper"],[3,"borderRadius","isSmallScreen","patientRegisterProfileRemoteSent"],[1,"welcome-message"],["variant","display","size","md",1,"neutral-dusk-color"],["variant","text","size","md","fontFamily","font-family-secundary",1,"neutral-darker-color"],[1,"start-button-container"],["variant","primary",3,"onClick","fullSize"],[1,"vedius-logo-content"],["src","assets/images/vedius-logo.png","alt","Vedius Logo",1,"logo"],["variant","display","size","micro","weight","bold",1,"neutral-dusk-color"]],template:function(n,t){n&1&&(s(0,"div",0),g(1,cn,5,0,"div",1),m(2,"app-answer-patient-remote-profile-professional-card",2),s(3,"div",3)(4,"vedius-text",4),r(5),u(6,"translate"),i(),s(7,"vedius-text",5),r(8),u(9,"translate"),i()(),s(10,"div",6)(11,"vedius-button",7),C("onClick",function(){return t.onStartClick()}),r(12),u(13,"translate"),i()()()),n&2&&(v("small",t.isSmallScreen),l(),q(t.isSmallScreen?1:-1),l(),c("borderRadius",t.isSmallScreen?0:8)("isSmallScreen",t.isSmallScreen)("patientRegisterProfileRemoteSent",t.patientRegisterProfileRemoteSent),l(3),_(" ",f(6,10,"ANSWER_PATIENT_REMOTE_PROFILE.WELCOME_MESSAGE.TITLE")," "),l(3),_(" ",f(9,12,"ANSWER_PATIENT_REMOTE_PROFILE.WELCOME_MESSAGE.DESCRIPTION")," "),l(3),c("fullSize",!0),l(),_(" ",f(13,14,"ANSWER_PATIENT_REMOTE_PROFILE.WELCOME_MESSAGE.SUBMIT_TEXT")," "))},dependencies:[w,k,G,I,N,Te],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.welcome-step-container[_ngcontent-%COMP%]{max-width:470px;margin:0 auto;padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}.welcome-step-container[_ngcontent-%COMP%] app-answer-patient-remote-profile-professional-card[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}.welcome-step-container[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.welcome-step-container[_ngcontent-%COMP%] .neutral-dark-color[_ngcontent-%COMP%]{color:#6d7a8e}.welcome-step-container[_ngcontent-%COMP%] .neutral-darker-color[_ngcontent-%COMP%]{color:#425168}.welcome-step-container[_ngcontent-%COMP%] .welcome-message[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.welcome-step-container[_ngcontent-%COMP%] .start-button-container[_ngcontent-%COMP%]{margin-top:24px}.welcome-step-container.small[_ngcontent-%COMP%]{padding:0;min-height:100vh;min-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.welcome-step-container.small[_ngcontent-%COMP%] .vedius-logo-content-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding-top:calc(24px + env(safe-area-inset-top));width:100%}.welcome-step-container.small[_ngcontent-%COMP%] .vedius-logo-content-wrapper[_ngcontent-%COMP%] .vedius-logo-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-start;gap:2px}.welcome-step-container.small[_ngcontent-%COMP%] .vedius-logo-content-wrapper[_ngcontent-%COMP%] .vedius-logo-content[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:49px;height:29px}.welcome-step-container.small[_ngcontent-%COMP%] .welcome-message[_ngcontent-%COMP%]{padding:0 24px;max-height:calc(100vh - 224px);overflow-y:auto;overflow-x:hidden;margin-bottom:calc(88px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:smooth;will-change:scroll-position;transform:translateZ(0);-webkit-transform:translateZ(0)}.welcome-step-container.small[_ngcontent-%COMP%] .start-button-container[_ngcontent-%COMP%]{width:100%;padding-top:calc(24px + env(safe-area-inset-top));padding-left:24px;padding-right:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom));box-sizing:border-box;border-top:1px solid #f5f6f8;border-bottom:1px solid #f5f6f8;background:#fff;position:fixed;bottom:0}.welcome-step-container.small[_ngcontent-%COMP%] .start-button-container[_ngcontent-%COMP%] vedius-button[_ngcontent-%COMP%]{width:100%}"]});let e=o;return e})();function mn(e,o){e&1&&(ee(),s(0,"svg",3),m(1,"path",4),i())}function dn(e,o){e&1&&m(0,"div",11)}function un(e,o){e&1&&(ee(),s(0,"svg",3),m(1,"path",4),i())}function fn(e,o){e&1&&m(0,"div",11)}function gn(e,o){e&1&&(ee(),s(0,"svg",3),m(1,"path",4),i())}function _n(e,o){e&1&&m(0,"div",11)}function En(e,o){e&1&&(ee(),s(0,"svg",3),m(1,"path",4),i())}function Sn(e,o){e&1&&m(0,"div",11)}var Ht=(()=>{let o=class o{constructor(){this.step=1}};o.\u0275fac=function(n){return new(n||o)}
1,o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-steps-timeline"]],inputs:{step:"step"},decls:45,vars:39,consts:[[1,"answer-patient-remote-profile-steps-timeline"],[1,"step-item","completed"],[1,"step-icon"],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["d","M13.5 4.5L6 12L2.5 8.5","stroke","white","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"step-content"],["variant","text","size","xl",1,"neutral-dusk-color"],[1,"step-connector"],[1,"step-item"],["width","16","height","16","viewBox","0 0 16 16","fill","none",4,"ngIf"],["class","current-dot",4,"ngIf"],[1,"current-dot"]],template:function(n,t){n&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),ee(),s(3,"svg",3),m(4,"path",4),i()(),Pe(),s(5,"div",5)(6,"vedius-text",6),r(7),u(8,"translate"),i()(),m(9,"div",7),i(),s(10,"div",8)(11,"div",2),g(12,mn,2,0,"svg",9)(13,dn,1,0,"div",10),i(),s(14,"div",5)(15,"vedius-text",6),r(16),u(17,"translate"),i()(),m(18,"div",7),i(),s(19,"div",8)(20,"div",2),g(21,un,2,0,"svg",9)(22,fn,1,0,"div",10),i(),s(23,"div",5)(24,"vedius-text",6),r(25),u(26,"translate"),i()(),m(27,"div",7),i(),s(28,"div",8)(29,"div",2),g(30,gn,2,0,"svg",9)(31,_n,1,0,"div",10),i(),s(32,"div",5)(33,"vedius-text",6),r(34),u(35,"translate"),i()(),m(36,"div",7),i(),s(37,"div",8)(38,"div",2),g(39,En,2,0,"svg",9)(40,Sn,1,0,"div",10),i(),s(41,"div",5)(42,"vedius-text",6),r(43),u(44,"translate"),i()()()()),n&2&&(l(7),te(f(8,29,"ANSWER_PATIENT_REMOTE_PROFILE.STEPS_TIMELINE.INTRODUCTION")),l(3),v("current",t.step===2)("completed",t.step>2),l(2),c("ngIf",t.step>2),l(),c("ngIf",t.step===2),l(3),te(f(17,31,"ANSWER_PATIENT_REMOTE_PROFILE.STEPS_TIMELINE.BASIC_DATA")),l(3),v("current",t.step===3)("completed",t.step>3),l(2),c("ngIf",t.step>3),l(),c("ngIf",t.step===3),l(3),te(f(26,33,"ANSWER_PATIENT_REMOTE_PROFILE.STEPS_TIMELINE.CONTACT_DATA")),l(3),v("current",t.step===4)("completed",t.step>4),l(2),c("ngIf",t.step>4),l(),c("ngIf",t.step===4),l(3),te(f(35,35,"ANSWER_PATIENT_REMOTE_PROFILE.STEPS_TIMELINE.HOW_I_KNOW_YOU")),l(3),v("current",t.step===5)("completed",t.step>5),l(2),c("ngIf",t.step>5),l(),c("ngIf",t.step===5),l(3),te(f(44,37,"ANSWER_PATIENT_REMOTE_PROFILE.STEPS_TIMELINE.TERMS_OF_USE")))},dependencies:[w,V,k,I,N],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;padding:0}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;position:relative;margin-bottom:0;padding:34px 0}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-icon[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:16px;position:relative;z-index:2;flex-shrink:0;margin-top:3px}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%]{flex:1;opacity:.32}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:20px;transition:all .3s ease;display:block}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-connector[_ngcontent-%COMP%]{position:absolute;left:11px;top:70px;width:2px;height:56px;z-index:1}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item.completed[_ngcontent-%COMP%] .step-icon[_ngcontent-%COMP%]{background-color:#0d7180;border:none}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item.completed[_ngcontent-%COMP%] .step-connector[_ngcontent-%COMP%]{background-color:#0d7180}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item.current[_ngcontent-%COMP%] .step-icon[_ngcontent-%COMP%]{background-color:#0d7180;border:none}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item.current[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%]{opacity:1}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item.current[_ngcontent-%COMP%] .step-connector[_ngcontent-%COMP%]{background-color:#0d718052}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item[_ngcontent-%COMP%]:not(.completed):not(.current) .step-icon[_ngcontent-%COMP%]{background-color:transparent;border:2px solid rgba(25,40,64,.32);height:20px;width:20px}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item[_ngcontent-%COMP%]:not(.completed):not(.current) .step-connector[_ngcontent-%COMP%]{background-color:#0d718052}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .current-dot[_ng
1content-%COMP%]{width:8px;height:8px;background-color:#fff;border-radius:50%}.answer-patient-remote-profile-steps-timeline[_ngcontent-%COMP%] .step-item[_ngcontent-%COMP%]:last-child .step-connector[_ngcontent-%COMP%]{display:none}"]});let e=o;return e})();var vn=["nameInput"],Cn=["cpfInput"],xn=["birthdatePicker"];function On(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.NO_EMOJI.INVALID_ERROR")," "))}function bn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.NAME.REQUIRED_ERROR")," "))}function Mn(e,o){if(e&1&&g(0,On,3,3,"ng-container",21)(1,bn,3,3,"ng-container",21),e&2){let p=E();c("ngIf",p.controls.name.hasError("invalidNoEmoji")),l(),c("ngIf",p.controls.name.hasError("invalidName")&&!p.controls.name.hasError("invalidNoEmoji"))}}function Rn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.CPF.REQUIRED_ERROR")," "))}function wn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.CPF.INVALID_ERROR")," "))}function In(e,o){if(e&1&&g(0,Rn,3,3,"ng-container",21)(1,wn,3,3,"ng-container",21),e&2){let p=E();c("ngIf",p.controls.cpf.hasError("required")),l(),c("ngIf",!p.controls.cpf.hasError("required")&&p.controls.cpf.hasError("invalidCpf"))}}function Tn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.PROFESSION.INVALID_ERROR")," "))}function An(e,o){if(e&1&&g(0,Tn,3,3,"ng-container",21),e&2){let p=E();c("ngIf",p.controls.profession.errors)}}function yn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.BIRTHPLACE.INVALID_ERROR")," "))}function Nn(e,o){if(e&1&&g(0,yn,3,3,"ng-container",21),e&2){let p=E();c("ngIf",p.controls.birthplace.errors)}}var ze=(()=>{let o=class o{constructor(a,n,t,d){this.formBuilder=a,this.socialNumberMaskService=n,this.translationService=t,this.toastService=d,this.isSmallScreen=!1,this.nextStep=new L,this.previousStep=new L,this.isLoading=!1,this.maritalStatusOptions=[],this.biologicalSexOptions=[],this.genderOptions=[],this.educationOptions=[],this.currentPatientsObjectInfos=[],this.socialNumberMask=this.socialNumberMaskService.get(),this.form=this.getForm()}get controls(){return this.form.controls}ngOnChanges(a){a.patient?.currentValue&&this.populateForm()}ngOnInit(){this.setMaritalStatusOptions(),this.setBiologicalSexOptions(),this.setGenderOptions(),this.setEducationOptions()}onNextClick(){if(this.formHasErrors()){this.scrollToFirstError();return}this.nextStep.emit()}onPreviousClick(){this.previousStep.emit()}onSelectPatientImage(a){this.patientImageFileSelected=a,this.controls.imageUrl?.setValue("")}onRemoveImageProfile(){this.patientImageFileSelected=void 0,this.controls.imageUrl?.setValue("")}onUploadPatientImageWithError(){this.toastService.showDefaultErrorMessage()}setMaritalStatusOptions(){this.maritalStatusOptions=[{label:this.translationService.get(F.SelectAnOption),value:"",disabled:!0}],Object.keys(kt).forEach(n=>{let d={label:this.translationService.get(`${F.MaritalStatus}.${n.toUpperCase()}`),value:n};this.maritalStatusOptions.push(d)});let a=this.maritalStatusOptions.find(n=>n.value===this.controls.maritalStatus.value);this.maritalStatusSelectedOption=a}setBiologicalSexOptions(){this.biologicalSexOptions=[{label:this.translationService.get(F.SelectAnOption),value:"",disabled:!0}],Object.keys(xt).forEach(n=>{let d={label:this.translationService.get(`${F.BiologicalSex}.${n.toUpperCase()}`),value:n};this.biologicalSexOptions.push(d)});let a=this.biologicalSexOptions.find(n=>n.value===this.controls.biologicalSex.value);this.biologicalSexSelectedOption=a}setGenderOptions(){this.genderOptions=[{label:this.translationService.get(F.SelectAnOption),value:"",disabled:!0}],Object.keys(Ke).forEach(n=>{let d={label:this.translationService.get(`${F.Gender}.${n.toUpperCase()}`),value:n};this.genderOptions.push(d)});let a=this.genderOptions.find(n=>n.value===this.controls.gender.value);this.genderSelectedOption=a}setEducationOptions(){this.educationOptions=[{label:this.translationService.get(F.SelectAnOption),value:"",disabled:!0}],Object.keys(Dt).forEach(n=>{let d={label:this.translationService.get(`${F.Education}.${n.toUpperCase()}`),value:n};this.educationOptions.push(d)});let a=this.educationOptions.find(n=>n.value===this.controls.education.value);this.educationSelectedOption=a}onNameBlur(){let a=this.controls.name,n=a?.value;
1if(typeof n!="string")return;let t=Qe(n);!t||t===n||a.setValue(t)}getForm(){return this.formBuilder.group({imageUrl:new x(this.patient?.imageUrl?.url,[]),name:new x(this.patient?.name?.fullName,[nt,qt]),cpf:new x(this.patient?.socialNumber?.value,[ke.required,et]),biologicalSex:new x(this.patient?.biologicalSex),profession:new x(this.patient?.profession,ae),gender:new x(this.patient?.gender),birthplace:new x(this.patient?.birthplace,ae),education:new x(this.patient?.education),birthdate:new x(this.patient?.birthday?.date,[ke.required]),maritalStatus:new x(this.patient?.maritalStatus)})}populateForm(){this.form.get("name")?.setValue(this.patient?.name?.fullName),this.form.get("cpf")?.setValue(this.patient?.socialNumber?.value),this.form.get("biologicalSex")?.setValue(this.patient?.biologicalSex),this.form.get("profession")?.setValue(this.patient?.profession),this.form.get("gender")?.setValue(this.patient?.gender),this.form.get("birthplace")?.setValue(this.patient?.birthplace),this.form.get("education")?.setValue(this.patient?.education),this.form.get("maritalStatus")?.setValue(this.patient?.maritalStatus),this.form.get("birthdate")?.setValue(this.patient?.birthday?.date),this.form.get("maritalStatus")?.setValue(this.patient?.maritalStatus),this.form.get("maritalStatus")?.setValue(this.patient?.maritalStatus),this.form.get("imageUrl")?.setValue(this.patient?.imageUrl?.url);let a=this.maritalStatusOptions.find(S=>S.value===this.controls.maritalStatus.value);this.maritalStatusSelectedOption=a;let n=this.biologicalSexOptions.find(S=>S.value===this.controls.biologicalSex.value);this.biologicalSexSelectedOption=n;let t=this.genderOptions.find(S=>S.value===this.controls.gender.value);this.genderSelectedOption=t;let d=this.educationOptions.find(S=>S.value===this.controls.education.value);this.educationSelectedOption=d}formHasErrors(){return Me(this.form),this.controls.name?.valid||(this.patientNameInputComponent?.searchPatientAutoComplete?.searchControl?.markAsDirty(),this.patientNameInputComponent?.searchPatientAutoComplete?.searchControl?.markAsTouched()),!this.form.valid}scrollToFirstError(){let a=["name","cpf","birthdate"];for(let n of a){let t=this.controls[n];if(t&&!t.valid){this.scrollToField(n);break}}}scrollToField(a){setTimeout(()=>{let n=null;switch(a){case"name":n=this.nameInput?.inputElementRef?.nativeElement;break;case"cpf":n=this.cpfInput?.inputElementRef?.nativeElement;break;case"birthdate":n=this.birthdatePicker?.datepicker?.datepickerRef?.nativeElement;break}if(n&&(n.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),a==="cpf"||a==="name")){let t=n.querySelector("input");t&&t.focus()}},100)}};o.\u0275fac=function(n){return new(n||o)(O(xe),O(Lt),O(ne),O(be))},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-basic-data-step"]],viewQuery:function(n,t){if(n&1&&(Z(Ut,5),Z(vn,5),Z(Cn,5),Z(xn,5)),n&2){let d;K(d=Q())&&(t.patientNameInputComponent=d.first),K(d=Q())&&(t.nameInput=d.first),K(d=Q())&&(t.cpfInput=d.first),K(d=Q())&&(t.birthdatePicker=d.first)}},inputs:{patient:"patient",isSmallScreen:"isSmallScreen"},outputs:{nextStep:"nextStep",previousStep:"previousStep"},features:[X],decls:40,vars:72,consts:[["nameInput",""],["patientNameError",""],["cpfInput",""],["CpfError",""],["professionError",""],["birthplaceError",""],["birthdatePicker",""],[1,"answer-patient-remote-profile-basic-data-step"],[1,"step-basic-data-content"],[3,"fileSelected","fileRemoved","fileUploadError","currentImage","isLoading","isSmall","emptyColor","smallMode","textType"],["size","small","type","text",3,"onBlur","label","control","errorTemplate"],["size","small","type","text",3,"label","placeholder","mask","control","errorTemplate"],["size","small",3,"label","options","selectedOption","control"],["type","text","size","small",3,"label","control","errorTemplate"],["size","small",1,"biological-sex-select",3,"label","options","selectedOption","control"],["size","small",1,"gender-select",3,"label","options","selectedOption","control"],["size","small",1,"education-select",3,"label","options","selectedOption","control"],["size","small",1,"birthdate",3,"control","displayAge","label"],[1,"step-actions"],["variant","secondary",3,"onClick","fullSize"],["variant","primary",3,"onClick","fullSize"],[4,"ngIf"]],template:function(n,t){if(n&1){let d=j();s(0,"div",7)(1,"div",8)(2,"vedius-profile-image-uploader",9),u(3,"translate"),C("fileSelected",function(M){return P(d),h(t.onSelectPatientImage(M))})("fileRemoved",function(){return P(d),h(t.onRemoveImageProfile())})("fileUploadError",function(){return P(d),h(t.onUploadPatientImageWithError())}),i(),s(4,"vedius-input",10,0),u(6,"translate"),C("onBlur",function(){return P(d),h(t.onNameBlur())}),g(7,Mn,2,2,"ng-template",null,1,U),i(),s(9,"vedius-input",11,2),u(11,"translate"),g(12,In,2,2,"ng-template",null,3,U),i(),m(14,"vedius-select",12),u(15,"translate"),s(16,"vedius-input",13),u(17,"translate"),g(18,An,1,1,"ng-template",null,4,U),i(),m(20,"vedius-select",14),u(21,"translate"),m(22,"vedius-select",15),u(23,"translate"),s(24,"vedius-input",13),u(25,"translate"),g(26,Nn,1,1,"ng-template",null,5,U),i(),m(28,"vedius-select",16),u(29,"translate"),m(30,"app-birthdate-picker",17,6),u(32,"translate"),i(),s(33,"div",18)(34,"vedius-button",19),C("onClick",function(){return P(d),h(t.onPreviousClick())}),r(35),u(36,"translate"),i(),s(37,"vedius-button",20),C("onClick",function(){return P(d),h(t.onNextClick())}),r(38),u(39,"translate"),i()()()}if(n&2){let d=y(8),S=y(13),M=y(19),D=y(27);v("small",t.isSmallScreen),l(2),c("currentImage",(t.patient==null||t.patient.imageUrl==null?null:t.patient.imageUrl.url)||"")("isLoading",t.isLoading)("isSmall",t.isSmallScreen)("emptyColor",t.isSmallScreen?"#e2eef0":void 0)("smallMode",t.isSmallScreen?"micro":"default")("textType",t.isSmallScreen?"":f(3,48,"PROFILE_IMAGE_UPLOADER.CHOOSE_PHOTO_PATIENT")),l(2),ve("label","",f(6,50,"PATIENT_PROFILE.FORM.INPUTS.NAME.LABEL")," *"),c("control",t.controls.name)("errorTemplate",d),l(5),ve("label","",f(11,52,"PATIENT_PROFILE.FORM.INPUTS.CPF.LABEL")," *"),c("placeholder",t.socialNumberMask)("mask",t.socialNumberMask)("control",t.controls.cpf)("errorTemplate",S),l(5),b("label",f(15,54,"PATIENT_PROFILE.FORM.INPUTS.MARITAL_STATUS.LABEL")),c("options",t.maritalStatusOptions)("selectedOption",t.maritalStatusSelectedOption)("control",t.controls.maritalStatus),l(2),b("label",f(17,56,"PATIENT_PROFILE.FORM.INPUTS.PROFESSION.LABEL")),c("control",t.controls.profession)("errorTemplate",M),l(4),b("label",f(21,58,"PATIENT_PROFILE.FORM.INPUTS.BIOLOGICAL_SEX.LABEL")),c("options",t.biologicalSexOptions)("selectedOption",t.biologicalSexSelectedOption)("control",t.controls.biologicalSex),l(2),b("label",f(23,60,"PATIENT_PROFILE.FORM.INPUTS.GENDER.LABEL")),c("options",t.genderOptions)("selectedOption",t.genderSelectedOption)("control",t.controls.gender),l(2),b("label",f(25,62,"PATIENT_PROFILE.FORM.INPUTS.BIRTHPLACE.LABEL")),c("control",t.controls.birthplace)("errorTemplate",D),l(4),b("label",f(29,64,"PATIENT_PROFILE.FORM.INPUTS.EDUCATION.LABEL")),c("options",t.educationOptions)("selectedOption",t.educationSelectedOption)("control",t.controls.education),l(2),ve("label","",f(32,66,"PATIENT_PROFILE.FORM.INPUTS.BIRTHDATE.LABEL")," *"),c("control",t.controls.birthdate)("displayAge",!1),l(4),c("fullSize",t.isSmallScreen),l(),_(" ",f(36,68,"BUTTONS.BACK")," "),l(2),c("fullSize",t.isSmallScreen),l(),_(" ",f(39,70,"BUTTONS.ADVANCE")," ")}},dependencies:[w,V,I,N,G,me,we,Ft,yt],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;
1-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:48px;min-width:400px}.answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%] vedius-profile-image-uploader[_ngcontent-%COMP%]{width:100%;margin-bottom:24px}.answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%] .step-basic-data-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px;align-self:stretch}.answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%] .step-basic-data-content[_ngcontent-%COMP%] vedius-input[_ngcontent-%COMP%], .answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%] .step-basic-data-content[_ngcontent-%COMP%] vedius-patient-name-input[_ngcontent-%COMP%], .answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%] .step-basic-data-content[_ngcontent-%COMP%] vedius-select[_ngcontent-%COMP%], .answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%] .step-basic-data-content[_ngcontent-%COMP%] app-birthdate-picker[_ngcontent-%COMP%]{width:100%}.answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:48px;align-self:stretch}.answer-patient-remote-profile-basic-data-step.small[_ngcontent-%COMP%]{width:100%;height:100vh;overflow:hidden}.answer-patient-remote-profile-basic-data-step.small[_ngcontent-%COMP%] vedius-profile-image-uploader[_ngcontent-%COMP%]{width:100%;padding:8px 0;margin-bottom:0}.answer-patient-remote-profile-basic-data-step.small[_ngcontent-%COMP%] .step-basic-data-content[_ngcontent-%COMP%]{padding:24px 24px 160px;margin-top:calc(88px + env(safe-area-inset-top));overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:smooth;will-change:scroll-position;transform:translateZ(0);-webkit-transform:translateZ(0)}.answer-patient-remote-profile-basic-data-step.small[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%]{padding-top:calc(16px + env(safe-area-inset-top));padding-left:24px;padding-right:24px;padding-bottom:calc(16px + env(safe-area-inset-bottom));border-top:1px solid #f5f6f8;border-bottom:1px solid #f5f6f8;position:fixed;bottom:0;width:100%;box-sizing:border-box;gap:16px;background:#fff;z-index:2}.answer-patient-remote-profile-basic-data-step.small[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%] vedius-button[_ngcontent-%COMP%]{width:100%}"]});let e=o;return e})();var kn=()=>({height:"56px"});function Un(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.EMAIL.INVALID_ERROR")," "))}function Fn(e,o){if(e&1&&g(0,Un,3,3,"ng-container",30),e&2){let p=E();c("ngIf",!p.controls.email.hasError("required")&&p.controls.email.errors)}}function Ln(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.CEP.REQUIRED_ERROR")," "))}function Vn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.CEP.CEP_NOT_FOUND")," "))}function zn(e,o){if(e&1&&g(0,Ln,3,3,"ng-container",30)(1,Vn,3,3,"ng-container",30),e&2){let p=E();c("ngIf",p.controls.zipcode.hasError("required")),l(),c("ngIf",p.controls.zipcode.hasError("zipcodeNotFound"))}}function Bn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.STREET.REQUIRED_ERROR")," "))}function qn(e,o){if(e&1&&g(0,Bn,3,3,"ng-container",30),e&2){let p=E(2);c("ngIf",p.controls.street.errors)}}function jn(e,o){if(e&1&&(s(0,"vedius-input",31,5),u(2,"translate"),g(3,qn,1,1,"ng-template",null,6,U),i()),e&2){let p=y(4),a=E();b("label",f(2,3,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.STREET.LABEL")),c("control",a.controls.street)("errorTemplate",p)}}function Wn(e,o){e&1&&re(0)}function Yn(e,o){if(e&1&&(s(0,"div",20),g(1,Wn,1,0,"ng-container",26),i()),e&2){E();let p=y(43);l(),c("ngTemplateOutlet",p)}}function Hn(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.NUMBER.REQUIRED_ERROR")," "))}function Gn(e,o){if(e&1&&g(0,Hn,3,3,"ng-container",30),e&2){let p=E(2);c("ngIf",p.controls.number.errors)}}function Zn(e,o){if(e&1&&(s(0,"vedius-input",32,7),u(2,"translate"),g(3,Gn,1,1,"ng-template",null,8,U),i()),e&2){let p=y(4),a=E();b("label",f(2,3,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.NUMBER.LABEL")),c("control",a.controls.number)("errorTemplate",p)}}function Kn(e,o){e&1&&re(0)}function Qn(e,o){if(e&1&&(s(0,"div",20),g(1,Kn,1,0,"ng-container",26),i()),e&2){E();let p=y(43);l(),c("ngTemplateOutlet",p)}}function $n(e,o){if(e&1&&(m(0,"vedius-input",33,9),u(2,"translate")),e&2){let p=E();b("label",f(2,2,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.COMPLEMENT.LABEL_DEFAULT")),c("control",p.controls.complement)}}function Jn(e,o){e&1&&re(0)}function Xn(e,o){if(e&1&&(s(0,"div",20),g(1,Jn,1,0,"ng-container",26),i()),e&2){E();let p=y(43);l(),c("ngTemplateOutlet",p)}}function ei(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.NEIGHBORHOOD.REQUIRED_ERROR")," "))}function ti(e,o){if(e&1&&g(0,ei,3,3,"ng-container",30),e&2){let p=E(2);c("ngIf",p.controls.neighborhood.errors)}}function ni(e,o){if(e&1&&(s(0,"vedius-input",31,10),u(2,"translate"),g(3,ti,1,1,"ng-template",null,11,U),i()),e&2){let p=y(4),a=E();b("label",f(2,3,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.NEIGHBORHOOD.LABEL")),c("control",a.controls.neighborhood)("errorTemplate",p)}}function ii(e,o){e&1&&re(0)}function oi(e,o){if(e&1&&(m(0,"vedius-input",33,12),u(2,"translate")),e&2){let p=E();b("label",f(2,2,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.CITY.LABEL")),c("control",p.controls.city)}}function ri(e,o){e&1&&re(0)}function ai(e,o){if(e&1&&(m(0,"vedius-input",33,13),u(2,"translate")),e&2){let p=E();b("label",f(2,2,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.STATE.LABEL")),c("control",p.controls.state)}}function si(e,o){e&1&&re(0)}function li(e,o){e&1&&(T(0),m(1,"ngx-skeleton-loader",34),A()),e&2&&(l(),c("count",1)("theme",We(2,kn)))}function pi(e,o){if(e&1&&g(0,li,2,3,"ng-container",30),e&2){let p=E();c("ngIf",p.isLoadingZipCode)}}var Be=(()=>{let o=class o{constructor(a,n,t){this.formBuilder=a,this.zipcodeMaskService=n,this.zipcodeService=t,this.isSmallScreen=!1,this.nextStep=new L,this.previousStep=new L,this.isLoading=!1,this.populatingForm=!1,this.isLoadingZipCode=!1,this.enablePending=!1,this.form=this.getForm(),this.zipcodeMask=this.zipcodeMaskService.get()}get controls(){return this.form.controls}ngOnChanges(a){a.patient?.currentValue&&this.populateForm()}
1ngOnInit(){this.listenControls()}onNextClick(){this.formHasErrors()||this.nextStep.emit()}onPreviousClick(){this.previousStep.emit()}getForm(){return this.formBuilder.group({email:new x(this.patient?.email?.value,[ae,tt]),phone:new x("",[Oe]),zipcode:new x(""),street:new x(""),number:new x(""),complement:new x(""),neighborhood:new x(""),city:new x({value:"",disabled:!0},[]),state:new x({value:"",disabled:!0},[])})}populateForm(){this.populatingForm=!0,this.form.get("email")?.setValue(this.patient?.email?.value),this.form.get("phone")?.setValue(this.patient?.phone?.number),this.form.get("city")?.setValue(this.patient?.address?.city),this.form.get("state")?.setValue(this.patient?.address?.state),this.form.get("zipcode")?.setValue(this.patient?.address?.postalCode),this.controls.street.setValue(this.patient?.address?.street),this.controls.number.setValue(this.patient?.address?.number?.toString()),this.controls.complement.setValue(this.patient?.address?.complement),this.controls.neighborhood.setValue(this.patient?.address?.neighborhood),this.controls.city.setValue(this.patient?.address?.city),this.controls.state.setValue(this.patient?.address?.state),setTimeout(()=>{this.populatingForm=!1},1e3)}formHasErrors(){return Me(this.form),!this.form.valid}listenControls(){let a=this.controls.zipcode;a.valueChanges.subscribe(n=>{if(n&&n.length===8&&!this.populatingForm){if(this.isLoadingZipCode){this.enablePending=!0;return}this.getZipCode(n)}}),a.statusChanges.subscribe(n=>{n==="VALID"&&this.enablePending&&(this.enablePending=!1)})}getZipCode(a){this.isLoadingZipCode=!0;let n=this.controls.zipcode;n.disable(),this.zipcodeService.get({code:a,patient_remote_profile_code:this.sentUid}).then(t=>{if(n.enable(),!t){n.setErrors({zipcodeNotFound:!0});return}n.setErrors(null),this.populateAddressFields(t)}).catch(()=>{n.enable(),n.setErrors({zipcodeNotFound:!0})}).finally(()=>{this.isLoadingZipCode=!1})}populateAddressFields(a){this.controls.street.setValue(a.street),this.controls.number.setValue(a.number),this.controls.complement.setValue(a.complement),this.controls.neighborhood.setValue(a.neighborhood),this.controls.city.setValue(a.city),this.controls.state.setValue(a.state)}};o.\u0275fac=function(n){return new(n||o)(O(xe),O(zt),O(wt))},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-contact-step"]],inputs:{sentUid:"sentUid",patient:"patient",isSmallScreen:"isSmallScreen"},outputs:{nextStep:"nextStep",previousStep:"previousStep"},features:[X],decls:44,vars:42,consts:[["emailInput",""],["emailError",""],["zipcodeInput",""],["zipcodeError",""],["skeletonLoader",""],["streetInput",""],["streetError",""],["numberInput",""],["numberError",""],["complementInput",""],["neighborhoodInput",""],["neighborhoodError",""],["cityInput",""],["stateInput",""],[1,"answer-patient-remote-profile-contact-step"],[1,"step-contact-content"],["size","small",3,"label","control"],["size","small","type","text",3,"label","control","errorTemplate"],[1,"address-form"],["type","text",3,"label","mask","placeholder","control","errorTemplate"],[1,"flex-input"],["type","text",3,"label","control","errorTemplate",4,"ngIf"],["class","flex-input",4,"ngIf"],[1,"inputs"],["class","number-input","type","number",3,"label","control","errorTemplate",4,"ngIf"],["type","text",3,"label","control",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"step-actions"],["variant","secondary",3,"onClick","fullSize"],["variant","primary",3,"onClick","fullSize"],[4,"ngIf"],["type","text",3,"label","control","errorTemplate"],["type","number",1,"number-input",3,"label","control","errorTemplate"],["type","text",3,"label","control"],[1,"loader",3,"count","theme"]],template:function(n,t){if(n&1){let d=j();s(0,"div",14)(1,"div",15),m(2,"vedius-phone-input",16),u(3,"translate"),s(4,"vedius-input",17,0
1),u(6,"translate"),g(7,Fn,1,1,"ng-template",null,1,U),i(),s(9,"div",18)(10,"vedius-input",19,2),u(12,"translate"),g(13,zn,2,2,"ng-template",null,3,U),i(),s(15,"div",20),g(16,jn,5,5,"vedius-input",21)(17,Yn,2,1,"div",22),i(),s(18,"div",23)(19,"div",20),g(20,Zn,5,5,"vedius-input",24)(21,Qn,2,1,"div",22),i(),s(22,"div",20),g(23,$n,3,4,"vedius-input",25)(24,Xn,2,1,"div",22),i()(),s(25,"div",20),g(26,ni,5,5,"vedius-input",21)(27,ii,1,0,"ng-container",26),i(),s(28,"div",23)(29,"div"),g(30,oi,3,4,"vedius-input",25)(31,ri,1,0,"ng-container",26),i(),s(32,"div"),g(33,ai,3,4,"vedius-input",25)(34,si,1,0,"ng-container",26),i()()()(),s(35,"div",27)(36,"vedius-button",28),C("onClick",function(){return P(d),h(t.onPreviousClick())}),r(37),u(38,"translate"),i(),s(39,"vedius-button",29),C("onClick",function(){return P(d),h(t.onNextClick())}),r(40),u(41,"translate"),i()()(),g(42,pi,1,1,"ng-template",null,4,U)}if(n&2){let d=y(8),S=y(14),M=y(43);v("small",t.isSmallScreen),l(2),b("label",f(3,32,"PATIENT_PROFILE.FORM.INPUTS.CONTACT_PHONE.LABEL_DEFAULT")),c("control",t.controls.phone),l(2),b("label",f(6,34,"PATIENT_PROFILE.FORM.INPUTS.EMAIL.LABEL")),c("control",t.controls.email)("errorTemplate",d),l(6),b("label",f(12,36,"LOCAL_ADDRESS_FORM_COMPONENT.INPUTS.CEP.LABEL")),c("mask",t.zipcodeMask)("placeholder",t.zipcodeMask)("control",t.controls.zipcode)("errorTemplate",S),l(6),c("ngIf",!t.isLoadingZipCode),l(),c("ngIf",t.isLoadingZipCode),l(3),c("ngIf",!t.isLoadingZipCode),l(),c("ngIf",t.isLoadingZipCode),l(2),c("ngIf",!t.isLoadingZipCode),l(),c("ngIf",t.isLoadingZipCode),l(2),c("ngIf",!t.isLoadingZipCode),l(),c("ngTemplateOutlet",M),l(2),v("flex-input",t.isLoadingZipCode),l(),c("ngIf",!t.isLoadingZipCode),l(),c("ngTemplateOutlet",M),l(),v("flex-input",t.isLoadingZipCode),l(),c("ngIf",!t.isLoadingZipCode),l(),c("ngTemplateOutlet",M),l(2),c("fullSize",t.isSmallScreen),l(),_(" ",f(38,38,"BUTTONS.BACK")," "),l(2),c("fullSize",t.isSmallScreen),l(),_(" ",f(41,40,"BUTTONS.ADVANCE")," ")}},dependencies:[w,V,He,I,N,G,me,Ie,Rt,Mt],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:48px;min-width:400px}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px;align-self:stretch}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%] vedius-input[_ngcontent-%COMP%], .answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%] vedius-phone-input[_ngcontent-%COMP%]{width:100%}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{width:100%}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%] .address-form[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:24px}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%] .address-form[_ngcontent-%COMP%] .flex-input[_ngcontent-%COMP%]{width:100%}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%] .address-form[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:24px;align-self:stretch}.answer-patient-remote-profile-contact-step[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:48px;align-self:stretch}.answer-patient-remote-profile-contact-step.small[_ngcontent-%COMP%] .step-contact-content[_ngcontent-%COMP%]{padding:32px 24px 140px;margin-top:calc(88px + env(safe-area-inset-top));overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:smooth;will-change:scroll-position;transform:translateZ(0);-webkit-transform:translateZ(0)}.answer-patient-remote-profile-contact-step.small[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%]{padding-top:calc(16px + env(safe-area-inset-top));padding-left:24px;padding-right:24px;padding-bottom:calc(16px + env(safe-area-inset-bottom));border-top:1px solid #f5f6f8;border-bottom:1px solid #f5f6f8;position:fixed;bottom:0;width:100%;box-sizing:border-box;gap:16px;background:#fff;z-index:2}.answer-patient-remote-profile-contact-step.small[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%] vedius-button[_ngcontent-%COMP%]{width:100%}"]});let e=o;return e})();function ci(e,o){if(e&1&&m(0,"app-answer-patient-remote-profile-professional-card",17),e&2){let p=E();c("isSmallScreen",p.isSmallScreen)("patientRegisterProfileRemoteSent",p.patientRegisterProfileRemoteSent)}}function mi(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.INDICATION.REQUIRED")," "))}function di(e,o){if(e&1&&g(0,mi,3,3,"ng-container",18),e&2){let p=E();c("ngIf",p.controls.indicationType.hasError("required"))}}function ui(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.INDICATOR_NAME.INVALID_ERROR")," "))}function fi(e,o){e&1&&(T(0),r(1),u(2,"translate"),A()),e&2&&(l(),_(" ",f(2,1,"PATIENT_PROFILE.FORM.INPUTS.INDICATOR_NAME.REQUIRED")," "))}function gi(e,o){if(e&1&&g(0,ui,3,3,"ng-container",18)(1,fi,3,3,"ng-container",18),e&2){let p=E();c("ngIf",p.controls.indicatorName.hasError("whitespace")),l(),c("ngIf",p.controls.indicatorName.hasError("required"))}}var qe=(()=>{let o=class o{get controls(){return this.form.controls}constructor(a){this.translationService=a,this.isSmallScreen=!1,this.nextStep=new L,this.previousStep=new L,this.howYouMetMeOptions=[],this.indicationOptions=[],this.form=new Je({howYouMetMeType:new x(null),indicationType:new x(""),indicatorName:new x("",[ae]),indicatorPhone:new x("",[Oe])})}ngOnInit(){this.translationService.loaded().then(()=>{this.setOptions(),this.setIndicationOptions()})}ngOnChanges(a){a.patient?.currentValue&&this.populateForm()}setOptions(){this.howYouMetMeOptions=[{label:this.translationService.get(F.SelectAnOption),value:"",disabled:!0}],Object.keys(Bt).forEach(n=>{let d={label:this.translationService.get(`${F.HowYouMetMeType}.${n.toUpperCase()}`),value:n};this.howYouMetMeOptions.push(d)});let a=this.howYouMetMeOptions.find(n=>n.value===this.controls.howYouMetMeType.value);this.howYouMetMeSelectedOption=a}setIndicationOptions(){Object.keys(Vt).forEach(n=>{let d={label:this.translationService.get(`${F.IndicationType}.${n.toUpperCase()}`),value:n};this.indicationOptions.push(d)});let a=this.indicationOptions.find(n=>n.value===this.controls.indicationType?.value);this.indicationSelectedOption=a}
1onNextClick(){this.nextStep.emit()}onBackClick(){this.previousStep.emit()}populateForm(){this.controls.howYouMetMeType.setValue(this.patient?.howYouMetMe),this.controls.indicationType.setValue(this.patient?.indicationInfo?.type),this.controls.indicatorName.setValue(this.patient?.indicationInfo?.name),this.controls.indicatorPhone.setValue(this.patient?.indicationInfo?.phone?.number);let a=this.indicationOptions.find(t=>t.value===this.controls.indicationType?.value);this.indicationSelectedOption=a;let n=this.howYouMetMeOptions.find(t=>t.value===this.controls.howYouMetMeType.value);this.howYouMetMeSelectedOption=n}};o.\u0275fac=function(n){return new(n||o)(O(ne))},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-how-you-met-me-step"]],inputs:{patientRegisterProfileRemoteSent:"patientRegisterProfileRemoteSent",isSmallScreen:"isSmallScreen",patient:"patient"},outputs:{nextStep:"nextStep",previousStep:"previousStep"},features:[X],decls:32,vars:38,consts:[["indicatorTypeError",""],["nameInput",""],["indicatorNameError",""],[1,"how-you-met-me-step-container"],[3,"isSmallScreen","patientRegisterProfileRemoteSent",4,"ngIf"],[1,"step-content"],[1,"patient-how-you-met-met-data-partial-forms"],["variant","display","size","md",1,"section-title"],[1,"patient-how-you-met-met-wrapper"],["size","small",1,"how-you-met-met-select",3,"label","options","selectedOption","control"],["variant","display","size","micro",1,"other-option-text"],["size","small",1,"indication-select",3,"label","options","selectedOption","control","errorTemplate"],["size","small","type","text",1,"indicator-name-input",3,"label","control","errorTemplate"],["size","small",1,"indicator-phone-input",3,"label","control"],[1,"step-actions"],["variant","secondary",3,"onClick","fullSize"],["variant","primary",3,"onClick","fullSize"],[3,"isSmallScreen","patientRegisterProfileRemoteSent"],[4,"ngIf"]],template:function(n,t){if(n&1){let d=j();s(0,"div",3),g(1,ci,1,2,"app-answer-patient-remote-profile-professional-card",4),s(2,"div",5)(3,"div",6)(4,"vedius-text",7),r(5),u(6,"translate"),i(),s(7,"div",8),m(8,"vedius-select",9),u(9,"translate"),i(),s(10,"vedius-text",10),r(11,"Ou"),i(),s(12,"vedius-text",10),r(13,"Indica\xE7\xE3o de Profissional da Sa\xFAde?"),i(),s(14,"vedius-select",11),u(15,"translate"),g(16,di,1,1,"ng-template",null,0,U),i(),s(18,"vedius-input",12,1),u(20,"translate"),g(21,gi,2,2,"ng-template",null,2,U),i(),m(23,"vedius-phone-input",13),u(24,"translate"),i()(),s(25,"div",14)(26,"vedius-button",15),C("onClick",function(){return P(d),h(t.onBackClick())}),r(27),u(28,"translate"),i(),s(29,"vedius-button",16),C("onClick",function(){return P(d),h(t.onNextClick())}),r(30),u(31,"translate"),i()()()}if(n&2){let d=y(17),S=y(22);v("small",t.isSmallScreen),l(),c("ngIf",!t.isSmallScreen),l(2),v("small",t.isSmallScreen),l(2),te(f(6,24,"PATIENT_PROFILE.FORM.HOW_YOU_MET_ME_TITLE")),l(3),b("label",f(9,26,"PATIENT_PROFILE.FORM.INPUTS.INDICATION.LABEL_DEFAULT")),c("options",t.howYouMetMeOptions)("selectedOption",t.howYouMetMeSelectedOption)("control",t.controls.howYouMetMeType),l(6),b("label",f(15,28,"PATIENT_PROFILE.FORM.INPUTS.INDICATION.LABEL")),c("options",t.indicationOptions)("selectedOption",t.indicationSelectedOption)("control",t.controls.indicationType)("errorTemplate",d),l(4),b("label",f(20,30,"PATIENT_PROFILE.FORM.INPUTS.NAME.LABEL")),c("control",t.controls.indicatorName)("errorTemplate",S),l(5),b("label",f(24,32,"PATIENT_PROFILE.FORM.INPUTS.INDICATOR_PHONE.LABEL")),c("control",t.controls.indicatorPhone),l(3),c("fullSize",t.isSmallScreen),l(),_(" ",f(28,34,"BUTTONS.BACK")," "),l(2),c("fullSize",t.isSmallScreen),l(),_(" ",f(31,36,"BUTTONS.ADVANCE")," ")}},dependencies:[w,V,k,G,I,N,Te,we,Ie,me],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.how-you-met-me-step-container[_ngcontent-%COMP%]{max-width:470px;margin:0 auto;padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}.how-you-met-me-step-container[_ngcontent-%COMP%] app-answer-patient-remote-profile-professional-card[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}.how-you-met-me-step-container[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.how-you-met-me-step-container[_ngcontent-%COMP%] .neutral-dark-color[_ngcontent-%COMP%]{color:#6d7a8e}.how-you-met-me-step-container[_ngcontent-%COMP%] .neutral-darker-color[_ngcontent-%COMP%]{color:#425168}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;width:100%}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:24px}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms.small[_ngcontent-%COMP%]{margin-top:40px}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%] .patient-how-you-met-met-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:24px}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#192840}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%] .other-option-text[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;color:#192840}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%] .how-you-met-met-select[_ngcontent-%COMP%], .how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%] .indication-select[_ngcontent-%COMP%], .how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%] .indicator-name-input[_ngcontent-%COMP%], .how-you-met-me-step-container[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%] .patient-how-you-met-met-data-partial-forms[_ngcontent-%COMP%] .indicator-phone-input[_ngcontent-%COMP%]{width:100%}.how-you-met-me-step-container[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:48px;align-self:stretch;margin-top:24px}.how-you-met-me-step-container.small[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;max-width:100%;padding:0;margin-top:calc(88px + env(safe-area-inset-top));height:calc(100vh - 88px - env(safe-area-inset-top));
1display:flex;flex-direction:column;overflow:hidden}.how-you-met-me-step-container.small[_ngcontent-%COMP%] app-answer-patient-remote-profile-professional-card[_ngcontent-%COMP%]{padding:24px;flex-shrink:0}.how-you-met-me-step-container.small[_ngcontent-%COMP%] .step-content[_ngcontent-%COMP%]{padding:0 24px;padding-bottom:calc(140px + env(safe-area-inset-bottom));box-sizing:border-box;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:smooth;will-change:scroll-position;transform:translateZ(0);-webkit-transform:translateZ(0)}.how-you-met-me-step-container.small[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%]{padding-top:calc(16px + env(safe-area-inset-top));padding-left:24px;padding-right:24px;padding-bottom:calc(16px + env(safe-area-inset-bottom));border-top:1px solid #f5f6f8;border-bottom:1px solid #f5f6f8;position:fixed;bottom:0;width:100%;box-sizing:border-box;gap:16px;background-color:#fff;z-index:10;flex-shrink:0}.how-you-met-me-step-container.small[_ngcontent-%COMP%] .step-actions[_ngcontent-%COMP%] vedius-button[_ngcontent-%COMP%]{width:100%}"]});let e=o;return e})();function _i(e,o){if(e&1){let p=j();s(0,"div",10)(1,"vedius-checkbox",11),u(2,"translate"),C("onCustomChange",function(n){P(p);let t=E();return h(t.onTermsChange(n))}),i()()}if(e&2){let p=E();l(),b("title",f(2,2,"ANSWER_PATIENT_REMOTE_PROFILE.TERMS_OF_USE.ACCEPT_MESSAGE")),c("checked",p.termsAccepted)}}function Ei(e,o){if(e&1){let p=j();s(0,"div",12)(1,"vedius-button",13),C("onClick",function(){P(p);let n=E();return h(n.onBackClick())}),r(2),u(3,"translate"),i(),s(4,"vedius-button",14),C("onClick",function(){P(p);let n=E();return h(n.onFinishClick())}),r(5),u(6,"translate"),i()()}if(e&2){let p=E();l(2),_(" ",f(3,3,"BUTTONS.BACK")," "),l(2),c("disabled",!p.termsAccepted),l(),_(" ",f(6,5,"BUTTONS.FINISH")," ")}}function Si(e,o){if(e&1){let p=j();s(0,"div",15)(1,"div",16)(2,"vedius-checkbox",11),u(3,"translate"),C("onCustomChange",function(n){P(p);let t=E();return h(t.onTermsChange(n))}),i()(),s(4,"div",17)(5,"vedius-button",18),C("onClick",function(){P(p);let n=E();return h(n.onBackClick())}),r(6),u(7,"translate"),i(),s(8,"vedius-button",19),C("onClick",function(){P(p);let n=E();return h(n.onFinishClick())}),r(9),u(10,"translate"),i()()()}if(e&2){let p=E();l(2),b("title",f(3,7,"ANSWER_PATIENT_REMOTE_PROFILE.TERMS_OF_USE.ACCEPT_MESSAGE")),c("checked",p.termsAccepted),l(3),c("fullSize",!0),l(),_(" ",f(7,9,"BUTTONS.BACK")," "),l(2),c("fullSize",!0)("disabled",!p.termsAccepted),l(),_(" ",f(10,11,"BUTTONS.FINISH")," ")}}var Gt=(()=>{let o=class o{constructor(){this.isSmallScreen=!1,this.acceptTerms=new L,this.previousStep=new L,this.termsAccepted=!1}onFinishClick(){this.termsAccepted&&this.acceptTerms.emit()}onBackClick(){this.previousStep.emit()}onTermsChange(a){this.termsAccepted=a.checked}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-terms-of-use-step"]],inputs:{patientRegisterProfileRemoteSent:"patientRegisterProfileRemoteSent",isSmallScreen:"isSmallScreen"},outputs:{acceptTerms:"acceptTerms",previousStep:"previousStep"},decls:353,vars:5,consts:[[1,"terms-of-use-step-container"],[1,"terms-of-use-step-content"],["variant","text","size","sm","weight","bold","fontFamily","font-family-secundary",1,"neutral-dusk-color"],["variant","text","size","sm","fontFamily","font-family-secundary",1,"neutral-dusk-color"],["href","mailto:[email protected]",2,"color","#007bff","text-decoration","underline"],["href","https://vedius.com.br/termos/privacy-policy","target","_blank",2,"color","#007bff","text-decoration","underline"],["href","mailto:[email protected]",2,"color","#007bff","text-decoration","underline"],["class","checkbox-container",4,"ngIf"],["class","buttons-container",4,"ngIf"],["class","small-footer-container",4,"ngIf"],[1,"checkbox-container"],["labelSize","sm",3,"onCustomChange","checked","title"],[1,"buttons-container"],["variant","secondary","size","large",1,"back-button",3,"onClick"],["variant","primary","size","large",1,"finish-button",3,"onClick","disabled"],[1,"small-footer-container"],[1,"small-checkbox-container"],[1,"small-buttons-container"],["variant","secondary","size","large",1,"back-button",3,"onClick","fullSize"],["variant","primary","size","large",1,"finish-button",3,"onClick","fullSize","disabled"]],template:function(n,t){n&1&&(s(0,"div",0)(1,"div",1)(2,"vedius-text",2),r(3," TERMOS E CONDI\xC7\xD5ES GERAIS DE USO - USU\xC1RIOS-PACIENTES/ALUNOS "),i(),s(4,"vedius-text",3)(5,"span")(6,"strong"),r(7,"Atualizado em 31 de outubro de 2023"),i()(),m(8,"br")(9,"br"),s(10,"span"),r(11,"N\xF3s, da VEDIUS agradecemos o seu interesse em nossos servi\xE7os. Por favor, leia atentamente os presentes TERMOS DE USO, na medida em que este documento reger\xE1 a
1nossa rela\xE7\xE3o com voc\xEA."),i(),m(12,"br")(13,"br"),s(14,"span"),r(15,"Para facilitar a compreens\xE3o, aqui est\xE3o algumas defini\xE7\xF5es importantes, relacionadas aos termos utilizados neste documento:"),i(),m(16,"br")(17,"br"),s(18,"span")(19,"strong"),r(20,'"Usu\xE1rio-Profissional"'),i(),r(21,": Profissionais da sa\xFAde que possuem cadastro junto \xE0 VEDIUS e, atrav\xE9s de uma das modalidades de planos, contratam os servi\xE7os oferecidos pela VEDIUS."),i(),m(22,"br")(23,"br"),s(24,"span")(25,"strong"),r(26,'"Usu\xE1rio-Paciente/Aluno"'),i(),r(27,": Pessoas que possuem cadastro junto \xE0 VEDIUS e acessam ou interagem com os servi\xE7os oferecidos, por meio de sua Conta de Acesso para pacientes ou alunos."),i(),m(28,"br")(29,"br"),s(30,"span")(31,"strong"),r(32,'"Visitante"'),i(),r(33,": Qualquer pessoa que navegar pelo site ou aplicativo VEDIUS, independentemente de possuir ou n\xE3o cadastro junto \xE0 VEDIUS por meio de uma Conta de Acesso."),i(),m(34,"br")(35,"br"),s(36,"span")(37,"strong"),r(38,'"Conta de Acesso"'),i(),r(39,": Cadastro facultativo que pode ser realizado atrav\xE9s de um formul\xE1rio para utiliza\xE7\xE3o de servi\xE7os oferecidos pela VEDIUS."),i(),m(40,"br")(41,"br"),s(42,"span")(43,"strong"),r(44,'"Acordo"'),i(),r(45,": conjunto de documentos que regem a rela\xE7\xE3o da VEDIUS com o USU\xC1RIO-PROFISSIONAL e com o USU\xC1RIO-PACIENTE/ALUNO, entre eles: Termos de Uso, Pol\xEDtica de Privacidade, Pol\xEDtica de Cookies."),i(),m(46,"br")(47,"br"),s(48,"span")(49,"strong"),r(50,"VEDIUS"),i(),r(51,": Solu\xE7\xE3o digital, em formato de sistema web ou aplicativo de dispositivos m\xF3veis, a profissionais da sa\xFAde e seus pacientes ou alunos, que podem ser utilizados mediante cadastro e, a depender do caso, contrata\xE7\xE3o de um plano, de acordo com as modalidades oferecidas."),i(),m(52,"br")(53,"br"),s(54,"span")(55,"strong"),r(56,"1. CONSIDERA\xC7\xD5ES INICIAIS E ADES\xC3O AO TERMO"),i()(),m(57,"br")(58,"br"),s(59,"span")(60,"strong"),r(61,"1.1"),i(),r(62," A VEDIUS \xE9 mantida e operada pela VEDIUS PORTAL DE INFORMA\xC7\xC3O LTDA, empresa privada, inscrita no CNPJ sob o n\xB0 33.350.339/0001-77"),i(),m(63,"br")(64,"br"),s(65,"span")(66,"strong"),r(67,"1.2"),i(),r(68,' Este documento estabelece um Termo de Licen\xE7a de Uso de Software, de forma revog\xE1vel, n\xE3o-exclusiva e intransfer\xEDvel, no estado em que se encontra, e \xE9 firmado entre a VEDIUS e o "Usu\xE1rio-Paciente/Aluno", que deve concordar e aderir integralmente aos termos aqui presentes.'),i(),m(69,"br")(70,"br"),s(71,"span")(72,"strong"),r(73,"1.3"),i(),r(74,' Na posi\xE7\xE3o de "Usu\xE1rio-Paciente/Aluno", \xE9 importante que voc\xEA entenda e concorde que n\xF3s iremos considerar o seu aceite afirmativo a estes Termos de Uso, quando do preenchimento do seu cadastro e manifesta\xE7\xE3o de aceite atrav\xE9s de checkbox durante a realiza\xE7\xE3o do seu cadastro. Caso voc\xEA n\xE3o concorde com o disposto nestes Termos de Uso ou em nossa Pol\xEDtica de Privacidade, aconselhamos que voc\xEA n\xE3o finalize o seu cadastro.'),i(),m(75,"br")(76,"br"),s(77,"span")(78,"strong"),r(79,"1.4"),i(),r(80," Estes Termos de Uso podem ser modificados a qualquer momento, sem a necessidade de autoriza\xE7\xE3o pr\xE9via, cabendo \xE0 VEDIUS, enviar notifica\xE7\xE3o por e-mail ou por meio de avisos na conta ou painel de controle sobre eventual modifica\xE7\xE3o. Neste caso, a perman\xEAncia de utiliza\xE7\xE3o dos servi\xE7os oferecidos pela VEDIUS ser\xE1 considerada como ACEITE a quaisquer eventuais modifica\xE7\xF5es."),i(),m(81,"br")(82,"br"),s(83,"span")(84,"strong"),r(85,"2. O SERVI\xC7O E OS REQUISITOS PARA A SUA UTILIZA\xC7\xC3O"),i()(),m(86,"br")(87,"br"),s(88,"span")(89,"strong"),r(90,"2.1"),i(),r(91,' A VEDIUS \xE9 um sistema destinado \xE0 interlocu\xE7\xE3o entre o profissional da sa\xFAde e o paciente/aluno. Por isso, ao utilizar a VEDIUS, o "Usu\xE1rio-Paciente/Aluno" est\xE1 aderindo a estes Termos, e est\xE1 ciente de que suas informa\xE7\xF5es e dados pessoais ser\xE3o compartilhados com os profissionais que possui v\xEDnculo.'),i(),m(92,"br")(93,"br"),s(94,"span")(95,"strong"),r(96,"2.2"),i(),r(97,' O acesso a algumas das funcionalidades acima poder\xE1 ser condicionado \xE0 realiza\xE7\xE3o de cadastro por meio de uma "Conta de Acesso". Sem a cria\xE7\xE3o de uma "Conta de Acesso", "
1Usu\xE1rios-Pacientes/Alunos" somente poder\xE3o consultar as informa\xE7\xF5es e prescri\xE7\xF5es dispon\xEDveis atrav\xE9s do link enviado pelo "Usu\xE1rio-Profissional".'),i(),m(98,"br")(99,"br"),s(100,"span")(101,"strong"),r(102,"2.3"),i(),r(103,' A VEDIUS atua apenas como solu\xE7\xE3o de tecnologia facilitadora do relacionamento entre "Usu\xE1rios-Profissionais" e "Usu\xE1rios-Pacientes/Alunos". Neste sentido, a VEDIUS n\xE3o possui qualquer controle ou responsabilidade sobre os servi\xE7os de sa\xFAde prestados pela rede de "Usu\xE1rios-Profissionais", e tamb\xE9m sobre a boa execu\xE7\xE3o ou observa\xE7\xE3o das prescri\xE7\xF5es por parte de "Usu\xE1rios-Pacientes/Alunos".'),i(),m(104,"br")(105,"br"),s(106,"span")(107,"strong"),r(108,"2.4"),i(),r(109,' Para o melhor e mais seguro funcionamento dos recursos da "Vedius", \xE9 altamente recomend\xE1vel a utiliza\xE7\xE3o da vers\xE3o mais atualizada do aplicativo e do sistema operacional do dispositivo m\xF3vel. No mesmo sentido, para utiliza\xE7\xE3o via web, \xE9 recomend\xE1vel a utiliza\xE7\xE3o da vers\xE3o mais atualizada do sistema operacional e navegador de internet, com prefer\xEAncia para Google Chrome, Edge e Mozilla Firefox.'),i(),m(110,"br")(111,"br"),s(112,"span")(113,"strong"),r(114,"3. CADASTRO, LOGIN E SENHA"),i()(),m(115,"br")(116,"br"),s(117,"span")(118,"strong"),r(119,"3.1"),i(),r(120,' Para criar uma "Conta de Acesso" junto \xE0 VEDIUS e acessar todas as suas funcionalidades, o "Usu\xE1rio-Paciente/Aluno" deve: (a) ser maior de 18 anos; (b) ser civilmente capaz de firmar contratos; (c) completar as etapas do cadastro, fornecendo todas as informa\xE7\xF5es solicitadas em car\xE1ter verdadeiro, correto, completo e atualizado; (d) manifestar afirmativamente (opt-in) a sua concord\xE2ncia aos Termos de Uso e \xE0 Pol\xEDtica de Privacidade.'),i(),m(121,"br")(122,"br"),s(123,"span")(124,"strong"),r(125,"3.2"),i(),r(126,' A VEDIUS reserva a si o direito de verificar, a qualquer momento, a veracidade das informa\xE7\xF5es cadastrais submetidas por "Usu\xE1rios-Pacientes/Alunos", podendo solicitar dados ou documentos adicionais. Caso seja detectada a utiliza\xE7\xE3o de informa\xE7\xF5es falsas ou imprecisas, a VEDIUS poder\xE1 cancelar "Contas de Acesso", de forma que n\xE3o ser\xE1 mais poss\xEDvel o acesso \xE0 VEDIUS e utiliza\xE7\xE3o dos servi\xE7os pelo(s) usu\xE1rio(s) atingido(s), sem que seja devida qualquer compensa\xE7\xE3o ou ressarcimento, e sem preju\xEDzo da regular ado\xE7\xE3o de medidas legais cab\xEDveis por parte da VEDIUS.'),i(),m(127,"br")(128,"br"),s(129,"span")(130,"strong"),r(131,"3.3"),i(),r(132,' As credenciais de acesso, compostas por endere\xE7o de e-mail e senha vinculados a uma "Conta de Acesso" s\xE3o de uso pessoal e intransfer\xEDvel por parte de cada "Usu\xE1rio-Paciente/Aluno" cadastrado junto \xE0 VEDIUS. Cada "Usu\xE1rio-Paciente/Aluno" dever\xE1 zelar pela confidencialidade das suas credenciais de acesso, responsabilizando-se por eventuais danos decorrentes de acessos realizados por terceiros n\xE3o autorizados. A VEDIUS n\xE3o se responsabiliza por acessos n\xE3o autorizados decorrentes de descuidos de "Usu\xE1rios-Pacientes/Alunos".'),i(),m(133,"br")(134,"br"),s(135,"span")(136,"strong"),r(137,"3.4"),i(),r(138,' Frente \xE0 suspeita ou ocorr\xEAncia de alguma falha de seguran\xE7a ou conex\xE3o n\xE3o autorizada \xE0 sua "Conta de Acesso", "Voc\xEA" ("Usu\xE1rio-Paciente/Aluno") compromete-se a notificar a VEDIUS atrav\xE9s do e-mail: '),s(139,"a",4),r(140,"[email protected]"),i(),r(141,"."),i(),m(142,"br")(143,"br"),s(144,"span")(145,"strong"),r(146,'4. CONTE\xDADO INSERIDO POR VOC\xCA ("USU\xC1RIO-PACIENTE/ALUNO") NA VEDIUS'),i()(),m(147,"br")(148,"br"),s(149,"span")(150,"strong"),r(151,"4.1"),i(),r(152,' Qualquer conte\xFAdo audiovisual, informa\xE7\xF5es escritas ou dados pessoais inseridos na VEDIUS por "Usu\xE1rios-Pacientes/Alunos" s\xE3o de sua exclusiva responsabilidade. A VEDIUS n\xE3o se responsabiliza por orienta\xE7\xF5es ou prescri\xE7\xF5es transmitidas pelos "Usu\xE1rios-Profissionais", especialmente se decorrentes de informa\xE7\xF5es incorretas ou imprecisas.'),i(),m(153,"br")(154,"br"),s(155,"span")(156,"strong"),r(157,"4.2"),i(),r(158,' A VEDIUS n\xE3o acessa, compartilha ou utiliza conte\xFAdos ou informa\xE7\xF5es inseridas por "Usu\xE1rios-Pacientes/Alunos" na VEDIUS para al\xE9m das finalidades e limita\xE7\xF5es indicadas na Pol\xEDtica de Privacidade. Ainda assim, todo tratamento de informa\xE7\xF5es consideradas como "Dados Pessoais" ser\xE1 realizado em observ\xE2ncia \xE0s disposi\xE7\xF5es da Lei Geral de Prote\xE7\xE3o de Dados, e demais legisla\xE7\xF5es aplic\xE1veis.'),i(),m(159,"br")(160,"br"),s(161,"span")(162,"strong"),r(163,"4.3"),i(),r(164,' A VEDIUS possibilita a "Voc\xEA" ("Usu\xE1rio-Paciente/Aluno") uma a\xE7\xE3o facilitada de compartilhamento de seus dados pessoais e demais informa\xE7\xF5es com "Usu\xE1rios- Profissionais" da \xE1rea da sa\xFAde, assinantes da VEDIUS. Somente compartilharemos as informa\xE7\xF5es mediante a sua expressa manifesta\xE7\xE3o de vontade, e n\xE3o utilizaremos canal diverso da VEDIUS.'),i(),m(165,"br")(166,"br"),s(167,"span")(168,"strong"),r(169,"4.4"),i(),r(170,' "Voc\xEA" ("Usu\xE1rio-Paciente/Aluno") declara e garante que todas as informa\xE7\xF5es e conte\xFAdos inseridos na sua "Conta de Acesso" junto \xE0 VED
1IUS:'),i(),m(171,"br")(172,"br"),s(173,"span"),r(174,"(i) N\xE3o violam a legisla\xE7\xE3o brasileira, os dispositivos destes TERMOS DE USO e demais normas aplic\xE1veis;"),i(),m(175,"br")(176,"br"),s(177,"span"),r(178,"(ii) N\xE3o infringem, nem infringir\xE3o, qualquer obriga\xE7\xE3o ou direito de terceiros, seja pessoa f\xEDsica ou jur\xEDdica, incluindo, mas n\xE3o se limitando a, direitos de propriedade industrial, direitos autorais, direitos de imagem, direitos de privacidade de dados, direitos do consumidor, entre outros;"),i(),m(179,"br")(180,"br"),s(181,"span"),r(182,"(iii) N\xE3o s\xE3o ilegais, tampouco foram obtidos de forma ilegal, especialmente \xE0 luz da vig\xEAncia da Lei Geral de Prote\xE7\xE3o de Dados."),i(),m(183,"br")(184,"br"),s(185,"span")(186,"strong"),r(187,'5. CONTE\xDADO INSERIDO POR "USU\xC1RIOS-PROFISSIONAIS" DA \xC1REA DA SA\xDADE'),i()(),m(188,"br")(189,"br"),s(190,"span")(191,"strong"),r(192,"5.1"),i(),r(193,' Somente est\xE3o autorizados a acessar perfis e inserir conte\xFAdos destinados a "Usu\xE1rios-Pacientes/Alunos" os "Usu\xE1rios-Profissionais" ligados \xE0 \xE1rea da sa\xFAde com "Conta de Acesso" ativa junto \xE0 VEDIUS. Incluem-se nestes conte\xFAdos mencionados orienta\xE7\xF5es e prescri\xE7\xF5es de exerc\xEDcios e demais recomenda\xE7\xF5es compat\xEDveis com o prop\xF3sito da VEDIUS.'),i(),m(194,"br")(195,"br"),s(196,"span")(197,"strong"),r(198,"5.2"),i(),r(199,' Como mera facilitadora de rela\xE7\xF5es, a VEDIUS n\xE3o se responsabiliza por conte\xFAdos, orienta\xE7\xF5es e prescri\xE7\xF5es emitidas por "Usu\xE1rios-Profissionais", tampouco por eventuais experi\xEAncias negativas ou danos sofridos por "Usu\xE1rios-Pacientes/Alunos" decorrentes da observa\xE7\xE3o ou aplica\xE7\xE3o de tais conte\xFAdos.'),i(),m(200,"br")(201,"br"),s(202,"span")(203,"strong"),r(204,"6. PROPRIEDADE INTELECTUAL SOBRE A VEDIUS"),i()(),m(205,"br")(206,"br"),s(207,"span")(208,"strong"),r(209,"6.1"),i(),r(210,' A VEDIUS concede aos seus "Usu\xE1rios-Pacientes/Alunos" e "Usu\xE1rios-Profissionais" uma licen\xE7a limitada, tempor\xE1ria, n\xE3o exclusiva e n\xE3o transfer\xEDvel para acessar a plataforma e o site somente naquilo que seja estritamente necess\xE1rio para o regular cumprimento do prop\xF3sito da VEDIUS e frui\xE7\xE3o dos servi\xE7os disponibilizados.'),i(),m(211,"br")(212,"br"),s(213,"span")(214,"strong"),r(215,"6.2"),i(),r(216," Todos os materiais disponibilizados oficialmente pela VEDIUS, incluindo, mas n\xE3o se limitando a apresenta\xE7\xE3o, layout, marcas, logotipos, sistemas, produtos, denomina\xE7\xF5es de servi\xE7os e quaisquer outros, inclusive bases de dados, programas, arquivos, imagens, v\xEDdeos ou materiais de qualquer outra natureza s\xE3o pertencentes \xE0 VEDIUS e protegidos pela legisla\xE7\xE3o de Propriedade Intelectual."),i(),m(217,"br")(218,"br"),s(219,"span")(220,"strong"),r(221,"6.3"),i(),r(222," O direito de acesso \xE0 VEDIUS n\xE3o implica em transfer\xEAncia, ainda que parcial, dos direitos autorais, sendo vedada a pr\xE1tica de qualquer atividade que possa ofender a tutela destes direitos, nos termos da legisla\xE7\xE3o em vigor."),i(),m(223,"br")(224,"br"),s(225,"span")(226,"strong"),r(227,"6.4"),i(),r(228," N\xE3o s\xE3o autorizadas quaisquer modifica\xE7\xF5es do sistema, melhorias, aplica\xE7\xE3o de engenharia reversa ou disponibiliza\xE7\xE3o do conte\xFAdo por outros meios que n\xE3o sejam os oferecidos pela VEDIUS."),i(),m(229,"br")(230,"br"),s(231,"span")(232,"strong"),r(233,"6.5"),i(),r(234," \xC9 proibida a publica\xE7\xE3o, transmiss\xE3o, distribui\xE7\xE3o, reprodu\xE7\xE3o parcial ou integral e a comercializa\xE7\xE3o de quaisquer funcionalidades da VEDIUS nos termos da legisla\xE7\xE3o de direitos autorais."),i(),m(235,"br")(236,"br"),s(237,"span")(238,"strong"),r(239,"6.6"),i(),r(240,' Eventuais sugest\xF5es, solicita\xE7\xF5es de melhorias ou recomenda\xE7\xF5es fornecidas pelos "Usu\xE1rios-Pacientes/Alunos" ou "Usu\xE1rios-Profissionais" relacionadas \xE0 VEDIUS, sejam ela implementadas ou n\xE3o, n\xE3o conferir\xE3o qualquer direito de titularidade sobre elas, ou qualquer direito de reten\xE7\xE3o, uso ou indeniza\xE7\xE3o.'),i(),m(241,"br")(242,"br"),s(243,"span")(244,"strong"),r(245,'7. HIP\xD3TESES DE RESCIS\xC3O E CANCELAMENTO DA "CONTA DE ACESSO"'),i()(),m(246,"br")(247,"br"),s(248,"span")(249,"strong"),r(250,"7.1"),i(),r(251,' O cancelamento e a exclus\xE3o da conta por iniciativa do "Usu\xE1rio-Paciente/Aluno" poder\xE1 ser solicitada por meio de contato com a VEDIUS atrav\xE9s do e-mail '),s(252,"a",4),r(253,"[email protected]"),i(),r(254,"."),i(),m(255,"br")(256,"br"),s(257,"span")(258,"strong"),r(259,"7.2"),i(),r(260,' O cancelamento e a exclus\xE3o de contas de "Usu\xE1rios-Pacientes/Alunos" por iniciativa da VEDIUS poder\xE1 ocorrer mediante a verifica\xE7\xE3o: de (a) viola\xE7\xE3o aos presentes Termos de Uso, ou \xE0 qualquer legisla\xE7\xE3o ou norma vigente; de (b) ocorr\xEAncia de situa\xE7\xE3o prevista ao longo deste documento; ou em (c) casos de a\xE7\xF5es que venham a prejudicar a imagem e reputa\xE7\xE3o da VEDIUS.'),i(),m(261,"br")(262,"br"),s(263,"span")(264,"strong"),r(265,"8. COMPROMISSOS ASSUMIDOS PELA VEDIUS"),i()(),m(266,"br")(267,"br"),s(268,"span")(269,"strong"),r(270,"8.1"),i(),r(271," A VEDIUS se compromete a:"),i(),m(272,"br")(273,"br"),s(274,"span"),r(275,'a) Empregar os seus melhores esfor\xE7os a fim de assegurar o bom funcionamento da VEDIUS, no sentido de manter o sistema acess\xEDvel e em constante opera\xE7\xE3o, buscando atender da melhor forma poss\xEDvel os "Usu\xE1rios-Pacientes/Alunos" e "Usu\xE1rios-Profissionais", a despeito de condi\xE7\xF5es peculiares da internet tendentes a afetar a continuidade dos servi\xE7os, salvo interrup\xE7\xF5es necess\xE1rias por ocasi\xE3o de servi\xE7os de manuten\xE7\xE3o no sistema, falhas na opera\xE7\xE3o das empresas fornecedoras de energia el\xE9trica e/ou das empresas prestadoras de servi\xE7os de telecomunica\xE7\xE3o, casos fortuitos e de for\xE7a maior, ou ainda, a\xE7\xF5es ou omiss\xF5es de terceiros;'),i(),m(276,"br")(277,"br"),s(278,"span"),r(279,"b) Corrigir erros no funcionamento da VEDIUS durante o per\xEDodo que for necess\xE1rio para manuten\xE7\xE3o, n\xE3o se responsabilizando, todavia, por danos decorrentes da n\xE3o disponibilidade ou erro de funcionamento."),i(),m(280,"br")(281,"br"),s(282,"span"),r(283,'c) Utilizar as melhores pr\xE1ticas e todas as prote\xE7\xF5es vi\xE1veis para garantir a privacidade dos "Dados Pessoais" confiados e c
1ontrolados pela VEDIUS. N\xE3o obstante, em fun\xE7\xE3o de condi\xE7\xF5es fora do controle da VEDIUS, esta n\xE3o se responsabiliza por tentativas de invas\xE3o de privacidade que possam vir a ocorrer no tr\xE1fego de informa\xE7\xF5es por essas linhas ou, ainda, pelo acesso que outras pessoas possam ter aos dispositivos ou credenciais de acesso de "Usu\xE1rios-Pacientes/Alunos" ou "Usu\xE1rios-Profissionais".'),i(),m(284,"br")(285,"br"),s(286,"span")(287,"strong"),r(288,"9. ISEN\xC7\xC3O DE RESPONSABILIDADE DA VEDIUS"),i()(),m(289,"br")(290,"br"),s(291,"span")(292,"strong"),r(293,"9.1"),i(),r(294,' A VEDIUS aplica seus melhores esfor\xE7os para a constru\xE7\xE3o de uma plataforma intuitiva e inclusiva, contudo, nosso compromisso limita-se \xE0 publica\xE7\xE3o e manuten\xE7\xE3o da VEDIUS no estado em que se encontra. Isso significa que n\xE3o \xE9 poss\xEDvel garantir que a VEDIUS alcan\xE7ar\xE1 as expectativas de todos "Usu\xE1rios-Pacientes/Alunos" e "Usu\xE1rios-Profissionais". Nesse sentido, a VEDIUS n\xE3o se responsabiliza ou oferece qualquer tipo de garantia sobre performance ou alcance de resultados espec\xEDficos decorrentes da rela\xE7\xE3o entre "Usu\xE1rios-Pacientes/Alunos" e "Usu\xE1rios-Profissionais".'),i(),m(295,"br")(296,"br"),s(297,"span")(298,"strong"),r(299,"9.2"),i(),r(300," A VEDIUS n\xE3o \xE9 e nem ser\xE1 respons\xE1vel:"),i(),m(301,"br")(302,"br"),s(303,"span"),r(304,'a) Pela impossibilidade de acesso ou utiliza\xE7\xE3o da VEDIUS, ou aproveitamento de qualquer de seus recursos, em raz\xE3o da incompatibilidade com configura\xE7\xF5es de hardware ou vers\xE3o de softw
1ares e sistemas operacionais de dispositivos utilizados por "Usu\xE1rios-Pacientes/Alunos";'),i(),m(305,"br")(306,"br"),s(307,"span"),r(308,'b) Pela repara\xE7\xE3o de danos de qualquer natureza causados pela quebra de privacidade ou seguran\xE7a de dados pessoais relativos a "Usu\xE1rios-Pacientes/Alunos" quando decorrentes de suas pr\xF3prias atitudes ou descuido;'),i(),m(309,"br")(310,"br"),s(311,"span"),r(312,"c) Por qualquer conte\xFAdo, propaganda, an\xFAncio, promo\xE7\xE3o, chamada ou promessa feita e/ou recebida atrav\xE9s de links externos e n\xE3o-oficiais;"),i(),m(313,"br")(314,"br"),s(315,"span"),r(316,'d) Pelos servi\xE7os de sa\xFAde prestados por "Usu\xE1rios-Profissionais" que utilizam a VEDIUS;'),i(),m(317,"br")(318,"br"),s(319,"span"),r(320,"e) Por demais hip\xF3teses previstas ao longo destes Termos de Uso."),i(),m(321,"br")(322,"br"),s(323,"span")(324,"strong"),r(325,"10. PRIVACIDADE DE DADOS"),i()(),m(326,"br")(327,"br"),s(328,"span")(329,"strong"),r(330,"10.1"),i(),r(331,' Ao utilizar a VEDIUS e consentir com estes Termos de Uso, voc\xEA manifesta a sua concord\xE2ncia e ci\xEAncia com o tratamento de seus "Dados Pessoais" pela VEDIUS, especialmente para que os servi\xE7os oferecidos pela VEDIUS possam ser plenamente executados.'),i(),m(332,"br")(333,"br"),s(334,"span")(335,"strong"),r(336,"10.2"),i(),r(337,' Toda atividade de tratamento sobre os seus "Dados Pessoais" observar\xE1 as diretrizes descritas na Pol\xEDtica de Privacidade, na Lei Geral de Prote\xE7\xE3o de Dados e demais legisla\xE7\xF5es aplic\xE1veis. A Pol\xEDtica de Privacidade da VEDIUS pode ser acessada a qualquer momento atrav\xE9s do link: '),s(338,"a",5),r(339,"https://vedius.com.br/termos/privacy-policy"),i(),r(340,"."),i(),m(341,"br")(342,"br"),s(343,"span")(344,"strong"),r(345,"10.3"),i(),r(346," Em caso de qualquer d\xFAvida com rela\xE7\xE3o \xE0s disposi\xE7\xF5es constantes neste documento, os USU\xC1RIOS poder\xE3o entrar em contato por meio do e-mail: "),s(347,"a",6),r(348,"[email protected]"),i(),r(349,"."),i()()(),g(350,_i,3,4,"div",7)(351,Ei,7,7,"div",8)(352,Si,11,13,"div",9),i()),n&2&&(v("small",t.isSmallScreen),l(350),c("ngIf",!t.isSmallScreen),l(),c("ngIf",!t.isSmallScreen),l(),c("ngIf",t.isSmallScreen))},dependencies:[w,V,Xe,k,G,bt,I,N],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.terms-of-use-step-container[_ngcontent-%COMP%]{max-width:520px;display:flex;flex-direction:column;align-items:center;gap:48px;flex:1 0 0;align-self:stretch}.terms-of-use-step-container[_ngcontent-%COMP%] .terms-of-use-step-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px;max-height:calc(100vh - 400px);overflow:auto;padding-right:16px}.terms-of-use-step-container[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.terms-of-use-step-container[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{width:100%;background-color:#f5f6f8;border-radius:8px}.terms-of-use-step-container[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{width:100%;display:flex;gap:16px;justify-content:space-between}.terms-of-use-step-container.small[_ngcontent-%COMP%]{max-width:100%;padding:0}.terms-of-use-step-container.small[_ngcontent-%COMP%] .terms-of-use-step-content[_ngcontent-%COMP%]{padding:24px 24px 240px;max-height:100%;overflow:auto;margin-top:calc(88px + env(safe-area-inset-top));-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:smooth;will-change:scroll-position;transform:translateZ(0);-webkit-transform:translateZ(0)}.terms-of-use-step-container.small[_ngcontent-%COMP%] .small-footer-container[_ngcontent-%COMP%]{padding-top:calc(16px + env(safe-area-inset-top));padding-left:24px;padding-right:24px;padding-bottom:calc(16px + env(safe-area-inset-bottom));border-top:1px solid #f5f6f8;border-bottom:1px solid #f5f6f8;position:fixed;bottom:0;width:100%;box-sizing:border-box;gap:16px;display:flex;flex-direction:column;align-items:flex-start;background:#fff;z-index:2}
1.terms-of-use-step-container.small[_ngcontent-%COMP%] .small-footer-container[_ngcontent-%COMP%] .small-checkbox-container[_ngcontent-%COMP%]{width:100%}.terms-of-use-step-container.small[_ngcontent-%COMP%] .small-footer-container[_ngcontent-%COMP%] .small-buttons-container[_ngcontent-%COMP%]{width:100%;display:flex;gap:16px}.terms-of-use-step-container.small[_ngcontent-%COMP%] .small-footer-container[_ngcontent-%COMP%] .small-buttons-container[_ngcontent-%COMP%] vedius-button[_ngcontent-%COMP%]{width:100%}"]});let e=o;return e})();var Zt=(()=>{let o=class o{constructor(){this.isSmallScreen=!1}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-success-step"]],inputs:{isSmallScreen:"isSmallScreen"},decls:10,vars:8,consts:[[1,"success-step-container"],[1,"success-step-content"],[1,"success-illustration"],["src","assets/images/subscription-success.svg","alt","Cadastro enviado com sucesso",1,"success-image"],["variant","display","size","micro",1,"neutral-dusk-color"],["variant","text","size","md","fontFamily","font-family-secundary",1,"neutral-darker-color"]],template:function(n,t){n&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),m(3,"img",3),i(),s(4,"vedius-text",4),r(5),u(6,"translate"),i(),s(7,"vedius-text",5),r(8),u(9,"translate"),i()()()),n&2&&(v("small",t.isSmallScreen),l(5),_(" ",f(6,4,"ANSWER_PATIENT_REMOTE_PROFILE.SUCCESS_MESSAGE.TITLE")," "),l(3),_(" ",f(9,6,"ANSWER_PATIENT_REMOTE_PROFILE.SUCCESS_MESSAGE.DESCRIPTION")," "))},dependencies:[w,k,I,N],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.success-step-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background-color:#fff;position:relative;padding:40px}.success-step-container[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.success-step-container[_ngcontent-%COMP%] .neutral-darker-color[_ngcontent-%COMP%]{color:#425168}.success-step-container[_ngcontent-%COMP%] .success-step-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;align-self:stretch;max-width:450px}.success-step-container[_ngcontent-%COMP%] .success-step-content[_ngcontent-%COMP%] .success-illustration[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.success-step-container[_ngcontent-%COMP%] .success-step-content[_ngcontent-%COMP%] .success-illustration[_ngcontent-%COMP%] .success-image[_ngcontent-%COMP%]{width:200px;height:200px;object-fit:contain}.success-step-container.small[_ngcontent-%COMP%]{padding:0}.success-step-container.small[_ngcontent-%COMP%] .success-step-content[_ngcontent-%COMP%]{padding:40px}"]});let e=o;return e})();var Kt=(()=>{let o=class o{constructor(){this.currentStep=1,this.totalSteps=4,this.circumference=0,this.strokeDashoffset=0,this.circumference=2*Math.PI*15.9155}ngOnChanges(a){(a.currentStep||a.totalSteps)&&this.updateProgress()}updateProgress(){let a=Math.min(this.currentStep/this.totalSteps,1);this.strokeDashoffset=this.circumference-a*this.circumference}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-circular-progress"]],inputs:{currentStep:"currentStep",totalSteps:"totalSteps"},features:[X],decls:6,vars:6,consts:[[1,"circular-progress-container"],["viewBox","0 0 36 36",1,"circular-progress"],["d",`M18 2.0845 2 a 15.9155 15.9155 0 0 1 0 31.831 3 a 15.9155 15.9155 0 0 1 0 -31.831`,"fill","none","stroke","#E5E7EB","stroke-width","2",1,"circle-bg"],["d",`M18 2.0845 4 a 15.9155 15.9155 0 0 1 0 31.831 5 a 15.9155 15.9155 0 0 1 0 -31.831`,"fill","none","stroke","#0D7180","stroke-width","2","stroke-linecap","round",1,"circle-progress"],[1,"progress-text"]],template:function(n,t){n&1&&(s(0,"div",0),ee(),s(1,"svg",1),m(2,"path",2)(3,"path",3),i(),Pe(),s(4,"div",4),r(5),i()()),n&2&&(l(3),he("stroke-dasharray",t.circumference)("stroke-dashoffset",t.strokeDashoffset),l(2),je("",t.currentStep," de ",t.totalSteps,""))},dependencies:[w],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;
5-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.circular-progress-container[_ngcontent-%COMP%]{position:relative;width:64px;height:64px;display:flex;align-items:center;justify-content:center}.circular-progress[_ngcontent-%COMP%]{width:100%;height:100%;transform:rotate(0)}.circle-bg[_ngcontent-%COMP%]{stroke:#fff}.circle-progress[_ngcontent-%COMP%]{stroke:#0d7180;transition:stroke-dashoffset .3s ease-in-out}.progress-text[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);line-height:1;color:#192840;text-align:center;font-family:DM Sans;font-size:.625rem;font-style:normal;font-weight:500}"]});let e=o;return e})();function Pi(e,o){e&1&&(s(0,"vedius-text",3),r(1),u(2,"translate"),i(),s(3,"vedius-text",4),r(4),u(5,"translate"),i()),e&2&&(l(),_(" ",f(2,2,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_2")," "),l(3),_(" ",f(5,4,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_2_DESCRIPTION")," "))}function hi(e,o){e&1&&(s(0,"vedius-text",3),r(1),u(2,"translate"),i(),s(3,"vedius-text",4),r(4),u(5,"translate"),i()),e&2&&(l(),_(" ",f(2,2,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_3")," "),l(3),_(" ",f(5,4,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_3_DESCRIPTION")," "))}function vi(e,o){e&1&&(s(0,"vedius-text",3),r(1),u(2,"translate"),i(),s(3,"vedius-text",4),r(4),u(5,"translate"),i()),e&2&&(l(),_(" ",f(2,2,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_4")," "),l(3),_(" ",f(5,4,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_4_DESCRIPTION")," "))}function Ci(e,o){e&1&&(s(0,"vedius-text",3),r(1),u(2,"translate"),i(),s(3,"vedius-text",4),r(4),u(5,"translate"),i()),e&2&&(l(),_(" ",f(2,2,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_5")," "),l(3),_(" ",f(5,4,"ANSWER_PATIENT_REMOTE_PROFILE.MOBILE_STEP.STEP_5_DESCRIPTION")," "))}var Qt=(()=>{let o=class o{};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile-mobile-step"]],inputs:{step:"step",currentStep:"currentStep"},decls:7,vars:6,consts:[[1,"step-mobile"],[3,"currentStep","totalSteps"],[1,"step-info"],["variant","text","size","md",1,"neutral-dusk-color"],["variant","text","size","micro",1,"neutral-dark-color"]],template:function(n,t){n&1&&(s(0,"div",0),m(1,"app-answer-patient-remote-profile-circular-progress",1),s(2,"div",2),g(3,Pi,6,6)(4,hi,6,6)(5,vi,6,6)(6,Ci,6,6),i()()),n&2&&(l(),c("currentStep",t.currentStep)("totalSteps",4),l(2),q(t.step===2?3:-1),l(),q(t.step===3?4:-1),l(),q(t.step===4?5:-1),l(),q(t.step===5?6:-1))},dependencies:[w,Kt,k,I,N],styles:[".disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.step-mobile[_ngcontent-%COMP%]{height:88px;display:flex;width:100%;gap:24px;background:#e2eef0;align-items:center;justify-content:center;box-sizing:border-box;padding-top:calc(24px + env(safe-area-inset-top));padding-left:24px;padding-right:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.step-mobile[_ngcontent-%COMP%] .step-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.step-mobile[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.step-mobile[_ngcontent-%COMP%] .neutral-dark-color[_ngcontent-%COMP%]{color:#6d7a8e}"]});let e=o;return e})();function $t(e){if(e==null)return"";if(typeof e=="string"){let o=e.trim();return o?ue.fromFullName(o).fullName:""}if(typeof e=="object"){let o=e,p=typeof o.first_name=="string"?o.first_name.trim():"",a=typeof o.last_name=="string"?o.last_name.trim():"",n=`${p} ${a}`.trim();return n?ue.fromFullName(n).fullName:""}return""}var ge=class e{constructor(o,p,a,n,t,d,S,M,D){this._patientRegisterProfileSentKey=o,this._patientRegisterProfileLink=p,this._patient=a,this._expireAt=n,this._status=t,this._professional=d,this._createdAt=S,this._shareMessage=M,this._responseAt=D}static create({patientRegisterProfileSentKey:o,patientRegisterProfileLink:p,patient:a,expireAt:n,professional:t,shareMessage:d}){return new e(o,p,a,n,z.WAITING_FOR_RESPONSE,t,new Date,d)}static from({patientRegisterProfileSentKey:o,patientRegisterProfileLink:p,patient:a,expireAt:n,status:t,professional:d,createdAt:S,shareMessage:M,responseAt:D}){return new e(o,p,a,n,t,d,S,M,D)}get patientRegisterProfileSentKey(){return this._patientRegisterProfileSentKey}get patientRegisterProfileLink(){return this._patientRegisterProfileLink}get patient(){return this._patient}get expireAt(){return this._expireAt}get isExpired(){return this.expireAt<new Date}get status(){return this._status===z.WAITING_FOR_RESPONSE&&this.isExpired?z.EXPIRED:this._status}get isAnswered(){return this.status===z.REMOTE_ANSWERED}get professional(){return this._professional}get createdAt(){return this._createdAt}get shareMessage(){return this._shareMessage}get responseAt(){return this._responseAt}toFuncDocument(){return{sent_uid:this.patientRegisterProfileSentKey.value,link:this.patientRegisterProfileLink.value,patient:this.patient.toFuncDocument(),expire_at:ce.fromDate(this.expireAt),status:this.status,professional_uid:this.professional.key.value,created_at:ce.fromDate(this.createdAt),share_message:this.shareMessage||"",response_at:this.responseAt?ce.fromDate(this.responseAt):""}}};var Jt=(()=>{let o=class o extends ut{constructor(a,n){super(),this.professionalParser=a,this.patientParser=n}parseDocument({data:a,patient:n,professional:t}){let d=fe.create(t),S=Ce(a.expire_at),M=a.response_date?Ce(a.response_date):void 0,D=a.status;D===z.WAITING_FOR_RESPONSE&&S.getTime()<new Date().getTime()&&(D=z.EXPIRED);let H=Ce(a.created_date),oe=se.from(d,a.uid),$=Le.fromString(a.uid);return ge.from({patientRegisterProfileSentKey:oe,patientRegisterProfileLink:$,patient:n,expireAt:S,status:D,professional:t,createdAt:H,shareMessage:a.share_message,responseAt:M})}parseFromJson(a){let{_patientRegisterProfileSentKey:n,_patientRegisterProfileLink:t,_patient:d,_expireAt:S,_status:M,_professional:D,_createdAt:H,_shareMessage:oe,_responseAt:$}=a,le=this.professionalParser.parseFromJson(D),_e=fe.create(le),W=se.from(_e,n._value),Ee=Le.fromString(t._value),Se=this.patientParser.parseFromJson(d),Ae=new Date(S),ye=$?new Date($):void 0,Ne=M,De=new Date(H);return ge.from({patientRegisterProfileSentKey:W,patientRegisterProfileLink:Ee,patient:Se,expireAt:Ae,status:Ne,professional:le,createdAt:De,shareMessage:oe,responseAt:ye})}};o.\u0275fac=function(n){return new(n||o)(Y(Re),Y(Ot))}
5,o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();var Xt=(()=>{let o=class o{constructor(a,n,t,d,S){this.firebaseErrorHandler=a,this.firestore=n,this.professionalParser=t,this.patientRepository=d,this.patientRegisterProfileRemoteSentParser=S}getBySentUid(a){return J(this,null,function*(){try{let n=st(this.firestore,Pt.PatientRegisterProfileLinks,a),t=yield lt(n);if(!t.exists())return null;let d=t.data(),S=this.professionalParser.parseDocument({professionalId:d.professional_info.uid,professionals:[],professionalName:$t(d.professional_info.name),professionalEmail:d.professional_info.email,professionalImageUrl:d.professional_info.logo_url,professionalPhone:d.professional_info.phone_number||void 0,professionalOcuppations:d.professional_info.occupations?[d.professional_info.occupations]:void 0,professionalRegistry:d.professional_info.register_code}),M=d.patient_id,D=vt.from(ht.fromString(d.professional_info?.user_group_id||d.professional_info.uid),ct.fromString(M)),H=yield this.patientRepository.get({patientKey:D,professionals:[S]});return H?this.patientRegisterProfileRemoteSentParser.parseDocument({data:d,patient:H,professional:S}):null}catch(n){throw this.firebaseErrorHandler.handleError(n)}})}};o.\u0275fac=function(n){return new(n||o)(Y(_t),Y(at),Y(Re),Y(jt),Y(Jt))},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();var en=(()=>{let o=class o{constructor(a){this.patientRegisterProfileRemoteSentRepository=a}getBySentUid(a){return J(this,null,function*(){return yield this.patientRegisterProfileRemoteSentRepository.getBySentUid(a)})}};o.\u0275fac=function(n){return new(n||o)(Y(Xt))},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();function Ri(e,o){e&1&&m(0,"img",9)}function wi(e,o){if(e&1&&m(0,"app-answer-patient-remote-profile-steps-timeline",10),e&2){let p=E();c("step",p.step)}}function Ii(e,o){if(e&1&&m(0,"app-answer-patient-remote-profile-mobile-step",11),e&2){let p=E(3);c("step",p.step)("currentStep",p.getCurrentStepForProgress())}}function Ti(e,o){if(e&1){let p=j();g(0,Ii,1,2,"app-answer-patient-remote-profile-mobile-step",11),s(1,"app-answer-patient-remote-profile-welcome-step",12),C("startClicked",function(){P(p);let n=E(2);return h(n.onStartClicked())}),i(),s(2,"app-answer-patient-remote-profile-basic-data-step",13,0),C("nextStep",function(){P(p);let n=E(2);return h(n.setStep(3))})("previousStep",function(){P(p);let n=E(2);return h(n.setStep(1))}),i(),s(4,"app-answer-patient-remote-profile-contact-step",14,1),C("nextStep",function(){P(p);let n=E(2);return h(n.setStep(4))})("previousStep",function(){P(p);let n=E(2);return h(n.setStep(2))}),i(),s(6,"app-answer-patient-remote-profile-how-you-met-me-step",15,2),C("nextStep",function(){P(p);let n=E(2);return h(n.setStep(5))})("previousStep",function(){P(p);let n=E(2);return h(n.setStep(3))}),i(),s(8,"app-answer-patient-remote-profile-terms-of-use-step",16),C("acceptTerms",function(){P(p);let n=E(2);return h(n.submit())})("previousStep",function(){P(p);let n=E(2);return h(n.setStep(4))}),i(),m(9,"app-answer-patient-remote-profile-success-step",17)}if(e&2){let p=E(2);q(p.isMobile&&p.step>1&&p.step<6?0:-1),l(),v("hidden",p.step!==1),c("patientRegisterProfileRemoteSent",p.patientRegisterProfileRemoteSent)("isSmallScreen",p.isMobile),l(),v("hidden",p.step!==2),c("patient",p.patient)("isSmallScreen",p.isMobile),l(2),v("hidden",p.step!==3),c("patient",p.patient)("sentUid",p.sentUid)("isSmallScreen",p.isMobile),l(2),v("hidden",p.step!==4),c("patientRegisterProfileRemoteSent",p.patientRegisterProfileRemoteSent)("isSmallScreen",p.isMobile),l(2),v("hidden",p.step!==5),c("isSmallScreen",p.isMobile),l(),v("hidden",p.step!==6),c("isSmallScreen",p.isMobile)}}function Ai(e,o){e&1&&(s(0,"div",18)(1,"vedius-text",19),r(2),u(3,"translate"),i(),s(4,"vedius-text",20),r(5),u(6,"translate"),i()()),e&2&&(l(2),_(" ",f(3,2,"ANSWER_PATIENT_REMOTE_PROFILE.REMOTE_ANSWERED_TITLE")," "),l(3),_(" ",f(6,4,"ANSWER_PATIENT_REMOTE_PROFILE.REMOTE_ANSWERED_DESCRIPTION")," "))}function yi(e,o){e&1&&(s(0,"div",18)(1,"vedius-text",19),r(2),u(3,"translate"),i(),s(4,"vedius-text",20),r(5),u(6,"translate"),i()()),e&2&&(l(2),_(" ",f(3,2,"ANSWER_PATIENT_REMOTE_PROFILE.NOT_FOUND_TIT
5LE")," "),l(3),_(" ",f(6,4,"ANSWER_PATIENT_REMOTE_PROFILE.NOT_FOUND_DESCRIPTION")," "))}function Ni(e,o){if(e&1&&g(0,Ai,7,6,"div",18)(1,yi,7,6,"div",18),e&2){let p=E(2);q(p.status==="REMOTE_ANSWERED"?0:1)}}function Di(e,o){if(e&1&&g(0,Ti,10,24)(1,Ni,2,1),e&2){let p=E();q(p.found?0:1)}}var tn=(()=>{let o=class o{constructor(a,n,t,d,S,M,D,H,oe,$,le){this.activatedRoute=a,this.sideBarService=n,this.evolutionProgressTrackerService=t,this.location=d,this.patientRegisterProfileRemoteSentService=S,this.toastService=M,this.trackingErrorCore=D,this.analyticsService=H,this.patientService=oe,this.breakpointObserver=$,this.translationService=le,this.isLoading=!1,this.status=z.WAITING_FOR_RESPONSE,this.found=!0,this.step=1,this.isMobile=!1,this.indications=[],this.sideBarService.hideSidebar(),this.evolutionProgressTrackerService.invisible()}ngOnInit(){this.activatedRoute.params.subscribe(a=>{let n=a.sentUid;if(this.sentUid=n,!n){console.error("Uid not found"),this.location.back();return}this.listenSize(),this.load(n)})}listenSize(){this.breakpointObserver.observe([$e]).subscribe(a=>{this.isMobile=a.matches})}load(a){this.isLoading=!0,this.patientRegisterProfileRemoteSentService.getBySentUid(a).then(n=>{if(!n)this.status=z.EXPIRED,this.found=!1;else{if(this.professional=n.professional,this.patientRegisterProfileRemoteSent=n,this.status=this.patientRegisterProfileRemoteSent.status,this.patient=this.patientRegisterProfileRemoteSent?.patient,this.status===z.REMOTE_ANSWERED){this.found=!1;return}let t=fe.create(this.professional);this.key=se.from(t,a),this.status===z.WAITING_FOR_RESPONSE&&this.loadAnalyticsAnswerPatientRemoteProfile()}}).catch(n=>{this.toastService.showDefaultErrorMessage(),this.trackingErrorCore.onCaptureException(n),console.error("Error to get patient register profile remote sent: ",n)}).finally(()=>this.isLoading=!1)}loadAnalyticsAnswerPatientRemoteProfile(){this.analyticsService.trackEvent(Fe.StartAnswerPatientRemoteProfile,{$patient_register_profile_link:this.patientRegisterProfileRemoteSent?.patientRegisterProfileLink?.value,$patient_id:this.patientRegisterProfileRemoteSent?.patient?.key?.patientKey?.value,$patient_name:this.patientRegisterProfileRemoteSent?.patient?.name?.fullName,$sent_id:this.key?.value,$professional_id:this.professional?.key?.value})}onStartClicked(){this.step=2,this.resetScroll()}setStep(a){this.step=a,this.resetScroll()}getCurrentStepForProgress(){return Math.max(0,this.step-1)}submit(){return J(this,null,function*(){try{this.isLoading=!0;let a=this.populatePatient(),n=this.basicDataStep?.patientImageFileSelected?Nt.create(this.basicDataStep?.patientImageFileSelected):void 0,t=this.howYouMetMeStep?.form,d=t?.get("indicationType")?.value,S=t?.get("indicatorName")?.value,M=t?.get("indicatorPhone")?.value;yield this.patientService.answerRemoteProfile({sentKey:this.key,patient:a,imageFile:n,indicationInfo:d&&S?{type:d,name:S,phone:M?Ue.fromBrazil(M)?.toString():void 0}:void 0}),this.step=6}catch(a){if(console.error(a),a instanceof ot&&a.functionErrorCode==="invalid_recaptcha"){this.analyticsService.trackError(Fe.Error,{error_code:"invalid_recaptcha",sent_uid:this.sentUid}),this.toastService.showError({title:this.translationService.get(F.AnswerPatientRemoteProfileInvalidRecaptcha)});return}this.toastService.showDefaultErrorMessage(),this.trackingErrorCore.onCaptureException(a)}finally{this.isLoading=!1}})}populatePatient(){let a=this.patient,n=this.basicDataStep?.form,t=n?.get("name")?.value,d=n?.get("cpf")?.value,S=n?.get("maritalStatus")?.value,M=n?.get("profession")?.value,D=n?.get("biologicalSex")?.value,H=n?.get("gender")?.value,oe=n?.get("birthplace")?.value,$=n?.get("education")?.value,le=n?.get("birthdate")?.value,_e=n?.get("imageUrl")?.value;a.name=ue.fromFullName(t),a.socialNumber=ft.fromString(d),a.maritalStatus=S,a.profession=M,a.biologicalSex=D,a.gender=H,a.birthplace=oe,a.education=$,a.birthday=Ct.fromDateTZ(ce.fromDate(le)),a.imageUrl=_e?pt.fromUrl(_e):void 0;let W=this.contactStep?.form,Ee=W?.get("email")?.value,Se=W?.get("phone")?.value,Ae=W?.get("zipcode")?.value,ye=W?.get("street")?.value,Ne=W?.get("number")?.value,De=W?.get("complement")?.value,nn=W?.get("neighborhood")?.value,on=W?.get("city")?.value,rn=W?.get("state")?.value;a.email=Ee?rt.fromString(Ee):void 0,a.phone=Se?Ue.fromBrazil(Se):void 0,a.address=gt.create({postalCode:Ae,street:ye,number:Ne,complement:De,neighborhood:nn,city:on,state:rn});let an=this.howYouMetMeStep?.form?.get("howYouMetMeType")?.value;return a.howYouMetMe=an,a}resetScroll(){setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},100),this.isMobile&&setTimeout(()=>{let a=document.querySelector(".step-basic-data-content");a&&a.scrollTo({top:0,behavior:"smooth"});let n=document.querySelector(".step-contact-content");n&&n.scrollTo({top:0,behavior:"smooth"});
5let t=document.querySelector(".terms-of-use-step-content");t&&t.scrollTo({top:0,behavior:"smooth"})},150)}ngOnDestroy(){this.evolutionProgressTrackerService.visible(),this.sideBarService.showSidebar()}};o.\u0275fac=function(n){return new(n||o)(O(Ge),O(It),O(Tt),O(Ye),O(en),O(be),O(it),O(Et),O(Wt),O(mt),O(ne))},o.\u0275cmp=R({type:o,selectors:[["app-answer-patient-remote-profile"]],viewQuery:function(n,t){if(n&1&&(Z(ze,5),Z(Be,5),Z(qe,5)),n&2){let d;K(d=Q())&&(t.basicDataStep=d.first),K(d=Q())&&(t.contactStep=d.first),K(d=Q())&&(t.howYouMetMeStep=d.first)}},decls:7,vars:6,consts:[["basicDataStep",""],["contactStep",""],["howYouMetMeStep",""],[1,"answer-patient-remote-profile-page"],[1,"left-content"],["src","assets/images/patient-remote-profile-step-1.svg","alt","Answer Patient Remote Profile",4,"ngIf"],[3,"step",4,"ngIf"],[1,"right-content"],[3,"active"],["src","assets/images/patient-remote-profile-step-1.svg","alt","Answer Patient Remote Profile"],[3,"step"],[3,"step","currentStep"],[3,"startClicked","patientRegisterProfileRemoteSent","isSmallScreen"],[3,"nextStep","previousStep","patient","isSmallScreen"],[3,"nextStep","previousStep","patient","sentUid","isSmallScreen"],[3,"nextStep","previousStep","patientRegisterProfileRemoteSent","isSmallScreen"],[3,"acceptTerms","previousStep","isSmallScreen"],[3,"isSmallScreen"],[1,"not-found"],["variant","display","size","micro",1,"neutral-dusk-color"],["variant","text","size","md",1,"neutral-dark-color"]],template:function(n,t){n&1&&(s(0,"div",3)(1,"div",4),g(2,Ri,1,0,"img",5)(3,wi,1,1,"app-answer-patient-remote-profile-steps-timeline",6),i(),s(4,"div",7),m(5,"vedius-page-loading",8),g(6,Di,2,1),i()()),n&2&&(v("small",t.isMobile),l(2),c("ngIf",t.step===1),l(),c("ngIf",t.step>=2),l(2),c("active",t.isLoading),l(),q(t.isLoading?-1:6))},dependencies:[w,V,St,Yt,Ht,ze,Be,qe,Gt,Zt,Qt,k,I,N],styles:['.disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.answer-patient-remote-profile-page[_ngcontent-%COMP%]{display:flex;align-items:stretch;flex:1 0 0;align-self:stretch;min-height:100vh}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .not-found[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .neutral-dusk-color[_ngcontent-%COMP%]{color:#192840}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .neutral-dark-color[_ngcontent-%COMP%]{color:#6d7a8e}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .hidden[_ngcontent-%COMP%]{display:none!important}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .left-content[_ngcontent-%COMP%]{display:flex;padding:48px 80px;justify-content:center;align-items:center;gap:10px;width:50%;position:relative;background:transparent}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .left-content[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;background:#c6eef7;opacity:.32;z-index:1}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .left-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:relative;z-index:2;opacity:1}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:50%;background:#fff;padding:48px 80px;position:relative}.answer-patient-remote-profile-page[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%] app-answer-patient-remote-profile-basic-data-step[_ngcontent-%COMP%]{width:100%;justify-content:center;display:flex}.answer-patient-remote-profile-page.small[_ngcontent-%COMP%] .left-content[_ngcontent-%COMP%]{display:none}.answer-patient-remote-profile-page.small[_ngcontent-%COMP%] .right-content[_ngcontent-%COMP%]{width:100%;padding:0;justify-content:flex-start}.answer-patient-remote-profile-page.small[_ngcontent-%COMP%] app-answer-patient-remote-profile-mobile-step[_ngcontent-%COMP%]{width:100%;position:fixed;z-index:2}.answer-patient-remote-profile-page.small[_ngcontent-%COMP%] app-answer-patient-remote-profile-how-you-met-me-step[_ngcontent-%COMP%]{width:100%}']});let e=o;return e})();var Ka=[{path:":sentUid",component:tn}];export{Ka as ANSWER_PATIENT_REMOTE_PROFILE_ROUTES};
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.