1import{a as he}from"./chunk-O2VDJNRU.js";import{a as vt,b as ut}from"./chunk-5XBU4W6K.js";import{a as $}from"./chunk-JG3VZZY4.js";import{a as _t,b as ht}from"./chunk-HY63757C.js";import{a as gt}from"./chunk-Q2KUA2HM.js";import"./chunk-KH4MM3R3.js";import"./chunk-BVCJYP5M.js";import"./chunk-HJIP32AF.js";import"./chunk-45XUUWBS.js";import"./chunk-JK6VBQRQ.js";import"./chunk-UR7B3SVE.js";import"./chunk-ZOXOJ2SW.js";import{a as ge,l as at,n as Pe,p as q,s as rt,t as st}from"./chunk-75FPLXLX.js";import{a as it,k as G,q as dt,r as mt}from"./chunk-AQBRTEMP.js";import"./chunk-GCZ3C3HM.js";import{a as B}from"./chunk-QGUVMJOM.js";import{a as lt}from"./chunk-G4IDWB6G.js";import{a as ot}from"./chunk-UWTSORKH.js";import"./chunk-BCD2KHGG.js";import"./chunk-XMQL2ZPB.js";import{a as me}from"./chunk-YQ2HBBL5.js";import{a as _e}from"./chunk-4M3H6OJK.js";import{a as pt}from"./chunk-2NWUFIXC.js";import"./chunk-KADQP2XK.js";import{a as I,b as ct}from"./chunk-ECMF7CC2.js";import{e as pe}from"./chunk-C4XHNRNH.js";import"./chunk-Z36TISWV.js";import"./chunk-V5JHT2G4.js";import{a as W,b as j}from"./chunk-XM23J7BA.js";import{a as tt,c as nt,d as ce}from"./chunk-WH6ILIPS.js";import{a as w}from"./chunk-LKIIPTIG.js";import"./chunk-AJZMXFMA.js";import{a as et,b as F}from"./chunk-23N7CA4O.js";import"./chunk-IUPWKUGB.js";import"./chunk-W4BNGQYG.js";import{a as R}from"./chunk-OSVOK6WL.js";import"./chunk-WXXKR7LF.js";import{b as L}from"./chunk-R2NO6V5K.js";import{a as z}from"./chunk-L44SDTPC.js";import{a as Ze}from"./chunk-EGNI2XJ3.js";import"./chunk-F457L6VT.js";import"./chunk-6BC3ZOBR.js";import"./chunk-7RWCIHFI.js";import{a as A}from"./chunk-V4NS6LW3.js";import{a as le}from"./chunk-LJSWAOQY.js";import"./chunk-SPFBMSSO.js";import"./chunk-34KEMFZC.js";import"./chunk-3TCRHIAB.js";import{p as Qe}from"./chunk-76JNFTGE.js";import{Ra as xe,g as m,sb as He,ub as We}from"./chunk-C7VFP4N4.js";import{c as Xe,d as Je}from"./chunk-CYMQMRSQ.js";import{D as Ye,F as de,d as H,f as ie,g as oe,m as ae,o as re,r as se,s as Ge,v as je,y as $e}from"./chunk-SAPP7HDL.js";import"./chunk-YJOTM47P.js";import{j as qe}from"./chunk-2PJAPLDY.js";import"./chunk-UQ5LDOFJ.js";import"./chunk-3APTCJCW.js";import{a as be,c as ne}from"./chunk-TPWGF6XO.js";import{$a as P,A as we,Cb as n,Dc as O,Ia as f,Ic as v,Ja as C,Jc as h,Jd as Ce,Kd as l,L as Te,Lb as Le,Ld as te,Qa as Ve,Tb as S,Uc as Ie,Vc as Ne,Wc as Z,Xa as M,Xc as c,Ya as u,Yb as T,Yc as E,Zc as g,bd as ze,cd as Fe,dd as Be,ha as Ae,hd as Ue,id as fe,kc as Re,kd as Ke,lc as p,nc as V,pd as U,qd as K,ra as Ee,sc as k,sd as ee,vc as X,wc as J,xa as b,xc as o,yb as De,yc as r,zc as _}from"./chunk-MH4BPXDL.js";import"./chunk-E3LNTQT4.js";import{a as Oe,l as ke}from"./chunk-CU44V7JF.js";var ft="Psic\xF3logo cl\xEDnico com foco em ansiedade, burnout e transi\xE7\xF5es de vida. Atendo adultos em um espa\xE7o seguro e sem julgamentos, com abordagem baseada na Terapia Cognitivo-Comportamental. CRP 06/123456.",D="Medplex Eixo Norte, Av. Assis Brasil, 2827 - Passo d'Areia, Porto Alegre - RS, 91350-000",Ct="[email protected]",bt="+55 (48) 9 3668-8547",xt="55489936688547";var Pt=(()=>{let d=class d{constructor(){this.translation=b(A),this.aboutText=ft,this.headerLeadingVisual={type:"icon",iconName:"vds-info-information-circle"},this.title=l(()=>this.translation.get(m.PagesAgendaRemoteAbout))}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["app-personal-about-modal"]],decls:6,vars:4,consts:[["surface","001"],[3,"titleText","showClose","leadingVisual"],[1,"personal-about-modal__body"],["variant","body-lg"]],template:function(a,t){a&1&&(o(0,"vds-modal",0),_(1,"vds-modal-header",1),o(2,"vds-modal-content")(3,"div",2)(4,"vds-text",3),c(5),r()()()()),a&2&&(n(),p("titleText",t.title())("showClose",!0)("leadingVisual",t.headerLeadingVisual),n(4),E(t.aboutText))},dependencies:[W,G,j,w],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}.personal-about-modal__body[_ngcontent-%COMP%]{margin-bottom:.5rem}'],changeDetection:0});let s=d;return s})();function It(s,d){if(s&1){let i=O();o(0,"vds-card",3)(1,"vds-list-item",4),_(2,"vds-icon",12),o(3,"vds-text",6),c(4),r(),o(5,"vds-text",7),c(6),r(),o(7,"div",8)(8,"vds-button",9),v("click",function(a){f(i);let t=h();return C(t.onCopyAddress(a))}),r()()()()}if(s&2){let i=h();n(),p("showDivider",!1),n(3),E(i.localLabel()),n(2),E(i.address()),n(2),p("iconOnly",!0)}}var yt=(()=>{let d=class d{constructor(){this.translation=b(A),this.toastService=b(F),this.clipboardService=b(z),this.whatsappClient=b(Ze),this.address=P(D),this.email=P(Ct),this.phone=P(bt),this.headerLeadingVisual={type:"icon",iconName:"vds-phone"},this.title=l(()=>this.translation.get(m.PagesAgendaRemoteContact)),this.localLabel=l(()=>this.translation.get(m.PagesAgendaRemoteContactLocalLabel)),this.emailLabel=l(()=>this.translation.get(m.PagesAgendaRemoteContactEmailLabel)),this.phoneLabel=l(()=>this.translation.get(m.PagesAgendaRemoteContactPhoneLabel))}onCopyAddress(e){e.stopPropagation(),this.copyWithToast(this.address(),m.PagesAgendaRemoteAddressCopiedToast)}onCopyEmail(e){e.stopPropagation(),this.copyWithToast(this.email(),m.PagesAgendaRemoteEmailCopiedToast)}onCopyPhone(e){e.stopPropagation(),this.copyWithToast(this.phone(),m.PagesAgendaRemotePhoneCopiedToast)}onWhatsAppClick(e){e.stopPropagation(),this.whatsappClient.send({phone:le.fromBrazil(xt),message:""})}copyWithToast(e,a){this.clipboardService.copyToClipboard(e),this.toastService.show({state:"success",title:this.translation.get(a),isLong:!1})}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["app-personal-contact-modal"]],decls:24,vars:13,consts:[["surface","001"],[3,"titleText","showClose","leadingVisual"],[1,"personal-contact-modal__cards"],["variant","bordered","bg","high"],[3,"showDivider"],["vds-list-item-leading","","name","vds-email","size","24"],["vds-list-item-title","","variant","functional-sm","color","muted"],["vds-list-item-subtitle","","variant","body-md","color","dark"],["vds-list-item-trailing","",1,"personal-contact-modal__trailing-actions"],["variant","secondary","size","sm","leadingIcon","vds-files-copy","type","button",3,"click","iconOnly"],["vds-list-item-leading","","name","vds-phone","size","24"],["variant","secondary","size","sm","leadingIcon","vds-whatsapp-media","type","button",3,"click","iconOnly"],["vds-list-item-leading","","name","vds-pin","size","24"]],template:function(a,t){a&1&&(o(0,"vds-modal",0),_(1,"vds-modal-header",1),o(2,"vds-modal-content")(3,"div",2),T(4,It,9,4,"vds-card",3),o(5,"vds-card",3)(6,"vds-list-item",4),_(7,"vds-icon",5),o(8,"vds-text",6),c(9),r(),o(10,"vds-text",7),c(11),r(),o(12,"div",8)(13,"vds-button",9),v("click",function(y){return t.onCopyEmail(y)}),r()()()(),o(14,"vds-card",3)(15,"vds-list-item",4),_(16,"vds-icon",10),o(17,"vds-text",6),c(18),r(),o(19,"vds-text",7),c(20),r(),o(21,"div",8)(22,"vds-button",11),v("click",function(y){return t.onWhatsAppClick(y)}),r(),o(23,"vds-button",9),v("click",function(y){return t.onCopyPhone(y)}),r()()()()()()()),a&2&&(n(),p("titleText",t.title())("showClose",!0)("leadingVisual",t.headerLeadingVisual),n(3),k(t.address()?4:-1),n(2),p("showDivider",!1),n(3),E(t.emailLabel()),n(2),E(t.email()),n(2),p("iconOnly",!0),n(2),p("showDivider",!1),n(3),E(t.phoneLabel()),n(2),E(t.phone()),n(2),p("iconOnly",!0),n(),p("iconOnly",!0))},dependencies:[W,G,j,I,mt,L,w,R],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}
1.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}.personal-contact-modal__cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-bottom:.5rem}.personal-contact-modal__cards[_ngcontent-%COMP%] [vds-list-item-leading][_ngcontent-%COMP%]{--vds-icon-color: #868f9d}.personal-contact-modal__cards[_ngcontent-%COMP%] [vds-list-item-leading].theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .personal-contact-modal__cards[_ngcontent-%COMP%] [vds-list-item-leading][_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .personal-contact-modal__cards[_ngcontent-%COMP%] [vds-list-item-leading][_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .personal-contact-modal__cards[_ngcontent-%COMP%] [vds-list-item-leading][_ngcontent-%COMP%]{--vds-icon-color: #a3acbd}.personal-contact-modal__trailing-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}'],changeDetection:0});let s=d;return s})();function Nt(s,d){if(s&1&&_(0,"img",3),s&2){let i=h();p("src",i.coverGraphicUrl(),De)}}function zt(s,d){s&1&&(o(0,"div",4)(1,"div",14),_(2,"span",15),r(),o(3,"div",16),_(4,"span",15),r(),o(5,"div",17)(6,"div",18),_(7,"span",15),r()()())}var Mt=(()=>{let d=class d{constructor(){this.role=u.required(),this.name=u.required(),this.description=u.required(),this.avatarUrl=u(void 0),this.avatarAlt=u(void 0),this.coverGraphicUrl=u(void 0),this.aboutLabel=u.required(),this.contactLabel=u.required(),this.aboutClick=M(),this.contactClick=M(),this.effectiveAvatarAlt=l(()=>this.avatarAlt()??this.name())}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["vds-public-profile-header-layout"]],inputs:{role:[1,"role"],name:[1,"name"],description:[1,"description"],avatarUrl:[1,"avatarUrl"],avatarAlt:[1,"avatarAlt"],coverGraphicUrl:[1,"coverGraphicUrl"],aboutLabel:[1,"aboutLabel"],contactLabel:[1,"contactLabel"]},outputs:{aboutClick:"aboutClick",contactClick:"contactClick"},decls:20,vars:9,consts:[[1,"public-profile-header"],[1,"public-profile-header__inner"],["aria-hidden","true",1,"public-profile-header__banner"],["alt","",1,"public-profile-header__cover-fallback",3,"src"],[1,"public-profile-header__vectors"],[1,"public-profile-header__avatar-shell"],["size","xl","borderColor","surface",3,"src","name","alt"],[1,"public-profile-header__profile"],[1,"public-profile-header__text"],["variant","body-sm","color","secondary","align","center"],["variant","heading-md","color","dark","align","center"],[1,"public-profile-header__actions"],["type","button","variant","secondary","size","sm","leadingIcon","vds-info-information-circle",3,"click"],["type","button","variant","secondary","size","sm","leadingIcon","vds-phone",3,"click"],[1,"public-profile-header__vector","public-profile-header__vector--1"],["aria-hidden","true",1,"public-profile-header__vector-graphic"],[1,"public-profile-header__vector","public-profile-header__vector--2"],[1,"public-profile-header__vector","public-profile-header__vector--3"],[1,"public-profile-header__vector-rotate"]],template:function(a,t){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),T(3,Nt,1,1,"img",3)(4,zt,8,0,"div",4),r(),o(5,"div",5),_(6,"vds-avatar",6),r(),o(7,"div",7)(8,"div",8)(9,"vds-text",9),c(10),r(),o(11,"vds-text",10),c(12),r()(),o(13,"vds-text",9),c(14),r(),o(15,"div",11)(16,"vds-button",12),v("click",function(){return t.aboutClick.emit()}),c(17),r(),o(18,"vds-button",13),v("click",function(){return t.contactClick.emit()}),c(19),r()()()()()),a&2&&(n(3),k(t.coverGraphicUrl()?3:4),n(3),p("src",t.avatarUrl())("name",t.name())("alt",t.effectiveAvatarAlt()),n(4),g(" ",t.role()," "),n(2),g(" ",t.name()," "),n(2),g(" ",t.description()," "),n(3),g(" ",t.aboutLabel()," "),n(2),g(" ",t.contactLabel()," "))},dependencies:[B,R,w],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}
1.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}[_nghost-%COMP%]{display:block;width:100%;min-width:0}.public-profile-header[_ngcontent-%COMP%]{width:100%}.public-profile-header__inner[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;min-width:0;isolation:isolate}.public-profile-header__banner[_ngcontent-%COMP%]{position:relative;z-index:0;width:100%;height:6.4375rem;overflow:hidden;background:linear-gradient(79.02deg,#68b3ad 3.46%,#185964 103.19%);border-radius:1.25rem}.public-profile-header__cover-fallback[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.public-profile-header__vectors[_ngcontent-%COMP%]{position:absolute;inset:0;pointer-events:none}.public-profile-header__vector[_ngcontent-%COMP%]{position:absolute;opacity:.8}.public-profile-header__vector--1[_ngcontent-%COMP%]{left:-2.4375rem;top:3.576875rem;width:10.7711875rem;height:13.8574375rem}.public-profile-header__vector--1[_ngcontent-%COMP%] .public-profile-header__vector-graphic[_ngcontent-%COMP%]{position:absolute;inset:-3.61% -8.12% -5.41% -3.48%;background-image:url("./media/vector-1-2EZWWKYT.svg")}.public-profile-header__vector--2[_ngcontent-%COMP%]{left:6.544375rem;top:3.576875rem;width:2.698625rem;height:4.631125rem}.public-profile-header__vector--2[_ngcontent-%COMP%] .public-profile-header__vector-graphic[_ngcontent-%COMP%]{background-image:url("./media/vector-2-KAF63HP6.svg")}.public-profile-header__vector--3[_ngcontent-%COMP%]{left:7.423125rem;top:-.1875rem;display:flex;align-items:center;justify-content:center;width:8.0145rem;height:10.294625rem}.public-profile-header__vector--3[_ngcontent-%COMP%] .public-profile-header__vector-graphic[_ngcontent-%COMP%]{background-image:url("./media/vector-3-76KMJIVX.svg")}.public-profile-header__vector-graphic[_ngcontent-%COMP%]{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:100% 100%}.public-profile-header__vector-rotate[_ngcontent-%COMP%]{flex-shrink:0;width:4.6678125rem;height:9.1895625rem;transform:rotate(24.11deg)}.public-profile-header__avatar-shell[_ngcontent-%COMP%]{position:absolute;top:3.4375rem;left:50%;z-index:2;display:inline-flex;line-height:0;transform:translate(-50%)}.public-profile-header__profile[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:.75rem;width:100%;min-width:0;box-sizing:border-box;padding:3.75rem 1.25rem 0}.public-profile-header__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.25rem;width:100%}.public-profile-header__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem}@media (max-width: 37.49875em){.public-profile-header__banner[_ngcontent-%COMP%]{width:100%;margin:0;background:linear-gradient(83.11deg,#68b3ad 3.46%,#185964 103.19%),linear-gradient(220.6deg,#065e6b 24.85%,#013848 103.05%);border-radius:.75rem}}'],changeDetection:0});let s=d;return s})();var Ft=(s,d)=>d.id;function Bt(s,d){if(s&1){let i=O();o(0,"vds-card",10),v("click",function(){let a=f(i).$implicit,t=h();return C(t.onServiceClick(a))})("keydown.enter",function(){let a=f(i).$implicit,t=h();return C(t.onServiceClick(a))}),o(1,"div",11)(2,"div",12)(3,"vds-text",13),c(4),r(),o(5,"vds-text",14),c(6),r()(),_(7,"vds-icon",15),r()()}if(s&2){let i=d.$implicit;p("clickable",!0),n(4),g(" ",i.name," "),n(2),g(" ",i.priceLabel," ")}}var St=(()=>{let d=class d{constructor(){this.translation=b(A),this.professional=u.required(),this.services=u.required(),this.isMobile=u(!1),this.serviceSelected=M(),this.aboutClick=M(),this.contactClick=M(),this.meetingType=P("in_person"),this.inPersonLeading={type:"icon",iconName:"vds-pin"},this.teleconsultationLeading={type:"icon",iconName:"vds-message-video-camera"},this.sectionTitle=l(()=>this.translation.get(m.PagesAgendaRemoteTitle)),this.inPersonLabel=l(()=>this.translation.get(m.PagesAgendaRemoteMeetingInPerson)),this.teleconsultationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteMeetingTeleconsultation)),this.aboutLabel=l(()=>this.translation.get(m.PagesAgendaRemoteAbout)),this.contactLabel=l(()=>this.translation.get(m.PagesAgendaRemoteContact))}onAboutClick(){this.aboutClick.emit()}onContactClick(){this.contactClick.emit()}onServiceClick(e){let a=Oe({id:e.id,name:e.name,priceLabel:e.priceLabel,durationLabel:e.durationLabel,meetingType:this.meetingType()},this.meetingType()==="in_person"&&e.location?{location:e.location}:{});this.serviceSelected.emit(a)}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["vds-agenda-remote-service-selection"]],inputs:{professional:[1,"professional"],services:[1,"services"],isMobile:[1,"isMobile"]},outputs:{serviceSelected:"serviceSelected",aboutClick:"aboutClick",contactClick:"contactClick"},decls:13,vars:13,consts:[[1,"vds-agenda-remote-service-selection"],[3,"aboutClick","contactClick","role","name","description","avatarUrl","aboutLabel","contactLabel"],["variant","elevated-flat",1,"vds-agenda-remote-service-selection__services-panel",3,"radiusBottom"],[1,"vds-agenda-remote-service-selection__services-body"],["variant","heading-sm","color","dark"],[3,"valueChange","value"],["value","in_person",3,"label","leadingVisual"],["value","teleconsultation",3,"label","leadingVisual"],[1,"vds-agenda-remote-service-selection__service-grid"],["variant","flat","tabindex","0",3,"clickable"],["variant","flat","tabindex","0",3,"click","keydown.enter","clickable"],[1,"vds-agenda-remote-service-selection__service-row"],[1,"vds-agenda-remote-service-selection__service-copy"],["variant","functional-md","color","default"],["variant","body-sm","color","muted"],["name","vds-chevron-right","size","24"]],template:function(a,t){a&1&&(o(0,"div",0)(1,"vds-public-profile-header-layout",1),v("aboutClick",function(){return t.onAboutClick()})("contactClick",function(){return t.onContactClick()}),r(),o(2,"vds-card",2)(3,"vds-card-content")(4,"div",3)(5,"vds-text",4),c(6),r(),o(7,"vds-content-switcher",5),Be("valueChange",function(y){return Fe(t.meetingType,y)||(t.meetingType=y),y}),_(8,"vds-content-switcher-item",6)(9,"vds-content-switcher-item",7),r(),o(10,"div",8),X(11,Bt,8,3,"vds-card",9,Ft),r()()()()()),a&2&&(n(),p("role",t.professional().role)("name",t.professional().name)("description",t.professional().description)("avatarUrl",t.professional().avatarUrl)("aboutLabel",t.aboutLabel())("contactLabel",t.contactLabel()),n(),p("radiusBottom",!t.isMobile()),n(4),g(" ",t.sectionTitle()," "),n(),ze("value",t.meetingType),n(),p("label",t.inPersonLabel())("leadingVisual",t.inPersonLeading),n(),p("label",t.teleconsultationLabel())("leadingVisual",t.teleconsultationLeading),n(2),J(t.services()))},dependencies:[Mt,I,ct,w,ut,vt,L],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}
1.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}.vds-agenda-remote-service-selection[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3rem;width:100%}.vds-agenda-remote-service-selection__services-panel[_ngcontent-%COMP%]{width:100%;border-radius:1.25rem}.vds-agenda-remote-service-selection__services-panel[_ngcontent-%COMP%] .vds-card-content{padding:1.25rem}.vds-agenda-remote-service-selection__services-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.vds-agenda-remote-service-selection__service-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:.5rem}.vds-agenda-remote-service-selection__service-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem 1rem}.vds-agenda-remote-service-selection__service-row[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #686f7a}.vds-agenda-remote-service-selection__service-row[_ngcontent-%COMP%] vds-icon.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .vds-agenda-remote-service-selection__service-row[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .vds-agenda-remote-service-selection__service-row[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .vds-agenda-remote-service-selection__service-row[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #c1c8d3}.vds-agenda-remote-service-selection__service-copy[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0rem;min-width:0}@media (min-width: 46.5em){.vds-agenda-remote-service-selection__service-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (max-width: 37.49875em){.vds-agenda-remote-service-selection[_ngcontent-%COMP%]{gap:2rem}.vds-agenda-remote-service-selection__services-panel[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-height:0;border-radius:1.25rem 1.25rem 0 0}.vds-agenda-remote-service-selection__services-panel[_ngcontent-%COMP%] .vds-card-content{display:flex;flex:1 1 auto;flex-direction:column}.vds-agenda-remote-service-selection__services-body[_ngcontent-%COMP%]{flex:1 1 auto}}'],changeDetection:0});let s=d;return s})();var Ut=(s,d)=>d.id;function Kt(s,d){if(s&1){let i=O();o(0,"div",16)(1,"div",17),_(2,"vds-icon",31),r(),o(3,"div",19)(4,"vds-text",9),c(5),r(),o(6,"div",32)(7,"vds-text",8),c(8),r()()(),o(9,"div",20)(10,"vds-button",33),v("click",function(){f(i);let a=h();return C(a.onCopyAddress())}),r()()()}if(s&2){let i=h();n(5),g(" ",i.locationLabel()," "),n(),p("title",i.service().location.address),n(2),g(" ",i.service().location.address," "),n(2),p("iconOnly",!0)}}function qt(s,d){if(s&1){let i=O();o(0,"div",16)(1,"div",17),_(2,"vds-icon",34),r(),o(3,"div",19)(4,"vds-text",9),c(5),r(),o(6,"div",32)(7,"vds-text",8),c(8),r()()(),o(9,"div",20)(10,"vds-button",35),v("click",function(){f(i);let a=h();return C(a.onCopyMeetingLink())}),r()()()}if(s&2){let i=h();n(5),g(" ",i.teleconsultationLabel()," "),n(),p("title",i.meetingLink),n(2),g(" ",i.meetingLink," "),n(2),p("iconOnly",!0)}}function Ht(s,d){if(s&1){let i=O();o(0,"vds-card",36),v("click",function(){let a=f(i).$implicit,t=h();return C(t.onSlotClick(a))})("keydown.enter",function(){let a=f(i).$implicit,t=h();return C(t.onSlotClick(a))}),o(1,"div",37)(2,"div",38)(3,"vds-text",8),c(4),r(),o(5,"vds-text",9),c(6),r()(),_(7,"vds-icon",39),r()()}if(s&2){let i=d.$implicit,e=h();V("schedule__slot-card--active",e.selectedSlotId()===i.id),p("clickable",!0),n(4),g(" ",i.start," "),n(2),g(" ",e.slotUntilLabel(i.end)," ")}}var Ot="meet.google.com/xxx-yyyy-zzz",kt=4,wt=2,Tt=(()=>{let d=class d{constructor(){this.translation=b(A),this.clipboard=b(z),this.toast=b(F),this.professional=u.required(),this.service=u.required(),this.selectedDate=u.required(),this.selectedSlotId=u(null),this.availableDates=u.required(),this.timeSlots=u.required(),this.minDate=u.required(),this.maxDate=u.required(),this.isMobile=u(!1),this.back=M(),this.dateChange=M(),this.slotSelected=M(),this.progressValue=l(()=>wt/kt*100),this.stepIndicator=l(()=>this.translation.get(m.PagesAgendaRemoteStep2StepIndicator,{current:wt,total:kt})),this.sectionTitle=l(()=>this.service().name),this.durationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep2DurationLabel)),this.locationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep2LocationLabel)),this.teleconsultationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteMeetingTeleconsultation)),this.meetingLink=Ot,this.backAriaLabel=l(()=>this.translation.get(m.CommonActionsBack)),this.calendarLayout=l(()=>this.isMobile()?"horizontal":"vertical"),this.scheduleTitle=l(()=>this.translation.get(m.PagesAgendaRemoteStep2ScheduleTitle)),this.scheduleSubtitle=l(()=>this.translation.get(m.PagesAgendaRemoteStep2ScheduleSubtitle)),this.dateHeaderLabel=l(()=>{let e=this.translation.appLocaleContext.current,a=new Intl.DateTimeFormat(e,{weekday:"long",day:"numeric",month:"long",year:"numeric"}
1).format(this.selectedDate());return a.charAt(0).toUpperCase()+a.slice(1)})}slotUntilLabel(e){return this.translation.get(m.PagesAgendaRemoteStep2SlotUntil,{end:e})}onBackClick(){this.back.emit()}onDateChange(e){e&&this.dateChange.emit(e)}onCopyAddress(){let e=this.service().location?.address;e&&(this.clipboard.copyToClipboard(e),this.toast.show({state:"success",title:this.translation.get(m.PagesAgendaRemoteAddressCopiedToast),isLong:!1}))}onCopyMeetingLink(){this.clipboard.copyToClipboard(Ot),this.toast.show({state:"success",title:this.translation.get(m.PagesAgendaRemoteLinkCopiedToast),isLong:!1})}onSlotClick(e){this.slotSelected.emit(e)}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["vds-agenda-remote-datetime-selection"]],inputs:{professional:[1,"professional"],service:[1,"service"],selectedDate:[1,"selectedDate"],selectedSlotId:[1,"selectedSlotId"],availableDates:[1,"availableDates"],timeSlots:[1,"timeSlots"],minDate:[1,"minDate"],maxDate:[1,"maxDate"],isMobile:[1,"isMobile"]},outputs:{back:"back",dateChange:"dateChange",slotSelected:"slotSelected"},decls:47,vars:26,consts:[[1,"vds-agenda-remote-datetime-selection"],[1,"vds-agenda-remote-datetime-selection__header"],[1,"vds-agenda-remote-datetime-selection__layout"],[1,"vds-agenda-remote-datetime-selection__header-row"],["variant","tertiary","leadingIcon","vds-arrow-left",3,"click","iconOnly","ariaLabel"],[1,"vds-agenda-remote-datetime-selection__profile"],["size","sm","borderColor","surface",3,"src","name"],[1,"vds-agenda-remote-datetime-selection__profile-copy"],["variant","body-md","color","default"],["variant","body-sm","color","muted"],["variant","body-md"],[1,"vds-agenda-remote-datetime-selection__layout","vds-agenda-remote-datetime-selection__progress"],["size","sm",3,"value"],[1,"vds-agenda-remote-datetime-selection__layout","vds-agenda-remote-datetime-selection__service-info"],["variant","heading-sm","color","dark"],[1,"vds-agenda-remote-datetime-selection__service-cards"],[1,"vds-agenda-remote-datetime-selection__service-card"],[1,"vds-agenda-remote-datetime-selection__service-card-leading"],["name","vds-clock-watch","size","24"],[1,"vds-agenda-remote-datetime-selection__service-card-content"],[1,"vds-agenda-remote-datetime-selection__service-card-trailing"],["color","neutral","size","sm",3,"label"],[1,"vds-agenda-remote-datetime-selection__layout","vds-agenda-remote-datetime-selection__schedule"],["variant","elevated-flat","bg","high",1,"schedule",3,"radiusBottom"],[1,"schedule__header"],[1,"schedule__body"],["headerFormat","full",1,"schedule__calendar",3,"selectedChange","layout","selected","minDate","maxDate","highlightedDates"],[1,"schedule__divider"],[1,"schedule__slots"],["variant","body-md","color","secondary",1,"schedule__date"],["variant","flat","tabindex","0",1,"schedule__slot-card",3,"clickable","schedule__slot-card--active"],["name","vds-pin","size","24"],[1,"vds-agenda-remote-datetime-selection__service-card-address",3,"title"],["variant","tertiary","leadingIcon","vds-files-copy","size","sm",3,"click","iconOnly"],["name","vds-message-video-camera","size","24"],["variant","secondary","leadingIcon","vds-files-copy","size","sm",3,"click","iconOnly"],["variant","flat","tabindex","0",1,"schedule__slot-card",3,"click","keydown.enter","clickable"],[1,"schedule__slot"],[1,"schedule__slot-copy"],["name","vds-chevron-right","size","24"]],template:function(a,t){a&1&&(o(0,"div",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"vds-button",4),v("click",function(){return t.onBackClick()}),r(),o(5,"div",5),_(6,"vds-avatar",6),o(7,"div",7)(8,"vds-text",8),c(9),r(),o(10,"vds-text",9),c(11),r()()(),o(12,"vds-text",10),c(13),r()()()(),o(14,"div",11),_(15,"vds-progress",12),r(),o(16,"section",13)(17,"vds-text",14),c(18),r(),o(19,"div",15)(20,"div",16)(21,"div",17),_(22,"vds-icon",18),r(),o(23,"div",19)(24,"vds-text",9),c(25),r(),o(26,"vds-text",8),c(27),r()(),o(28,"div",20),_(29,"vds-tag",21),r()(),T(30,Kt,11,4,"div",16)(31,qt,11,4,"div",16),r()(),o(32,"section",22)(33,"vds-card",23)(34,"div",24)(35,"vds-text",14),c(36),r(),o(37,"vds-text",9),c(38),r()(),o(39,"div",25)(40,"vds-calendar",26),v("selectedChange",function(y){return t.onDateChange(y)}),r(),_(41,"div",27),o(42,"div",28)(43,"vds-text",29),c(44),r(),X(45,Ht,8,5,"vds-card",30,Ut),r()()()()()),a&2&&(n(4),p("iconOnly",!0)("ariaLabel",t.backAriaLabel()),n(2),p("src",t.professional().avatarUrl)("name",t.professional().name),n(3),g(" ",t.professional().name," "),n(2),g(" ",t.professional().role," "),n(2),g(" ",t.stepIndicator()," "),n(2),p("value",t.progressValue()),n(3),g(" ",t.sectionTitle()," "),n(7),g(" ",t.durationLabel()," "),n(2),g(" ",t.service().durationLabel," "),n(2),p("label",t.service().priceLabel),n(),k(t.service().meetingType==="in_person"&&t.service().location?30:t.service().meetingType==="teleconsultation"?31:-1),n(3),p("radiusBottom",!t.isMobile()),n(3),g(" ",t.scheduleTitle()," "),n(2),g(" ",t.scheduleSubtitle()," "),n(),V("schedule__body--mobile",t.isMobile()),n(),p("layout",t.calendarLayout())("selected",t.selectedDate(
1))("minDate",t.minDate())("maxDate",t.maxDate())("highlightedDates",t.availableDates()),n(),V("schedule__divider--horizontal",t.isMobile()),n(3),g(" ",t.dateHeaderLabel()," "),n(),J(t.timeSlots()))},dependencies:[R,B,w,he,L,$,I,st],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}.vds-agenda-remote-datetime-selection[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.vds-agenda-remote-datetime-selection__layout[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;max-width:37.5rem;margin-inline:auto}.vds-agenda-remote-datetime-selection__header[_ngcontent-%COMP%]{background:#f1f3f5;padding-block:.5rem}.vds-agenda-remote-datetime-selection__header-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.vds-agenda-remote-datetime-selection__profile[_ngcontent-%COMP%]{display:flex;flex:1;align-items:center;gap:.75rem;min-width:0}.vds-agenda-remote-datetime-selection__profile-copy[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.vds-agenda-remote-datetime-selection__progress[_ngcontent-%COMP%]{background:#f1f3f5;padding-bottom:.5rem}.vds-agenda-remote-datetime-selection__progress[_ngcontent-%COMP%] vds-progress[_ngcontent-%COMP%]{display:block;width:100%}.vds-agenda-remote-datetime-selection__service-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding-block:2rem 1rem}.vds-agenda-remote-datetime-selection__service-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.vds-agenda-remote-datetime-selection__service-card[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#a2acbd1a;border-radius:.75rem;padding:1rem;gap:.75rem}.vds-agenda-remote-datetime-selection__service-card.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .vds-agenda-remote-datetime-selection__service-card[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .vds-agenda-remote-datetime-selection__service-card[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .vds-agenda-remote-datetime-selection__service-card[_ngcontent-%COMP%]{background-color:#a2acbd1a}.vds-agenda-remote-datetime-selection__service-card-leading[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center}.vds-agenda-remote-datetime-selection__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #686f7a}.vds-agenda-remote-datetime-selection__service-card-leading[_ngcontent-%COMP%] vds-icon.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .vds-agenda-remote-datetime-selection__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .vds-agenda-remote-datetime-selection__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .vds-agenda-remote-datetime-selection__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #c1c8d3}.vds-agenda-remote-datetime-selection__service-card-content[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0;gap:0rem}.vds-agenda-remote-datetime-selection__service-card-address[_ngcontent-%COMP%]{min-width:0;overflow:hidden}.vds-agenda-remote-datetime-selection__service-card-address[_ngcontent-%COMP%] vds-text[_ngcontent-%COMP%]{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vds-agenda-remote-datetime-selection__service-card-trailing[_ngcontent-%COMP%]{flex-shrink:0}.vds-agenda-remote-datetime-selection__schedule[_ngcontent-%COMP%]{width:100%}@media (min-width: 46.5em){.vds-agenda-remote-datetime-selection__schedule[_ngcontent-%COMP%]{padding-bottom:2rem}}.schedule[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem;width:100%;padding:1.25rem;box-sizing:border-box;border-radius:1.25rem}.schedule__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.75rem}.schedule__body[_ngcontent-%COMP%]{display:flex;gap:2rem;align-items:flex-start}.schedule__body--mobile[_ngcontent-%COMP%]{flex-direction:column;gap:1rem}.schedule__divider[_ngcontent-%COMP%]{flex-shrink:0;align-self:stretch;width:1px;border-left:1px solid;border-color:#dee1e8}.schedule__divider.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .schedule__divider[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .schedule__divider[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .schedule__divider[_ngcontent-%COMP%]{border-color:#474b53}
1.schedule__divider--horizontal[_ngcontent-%COMP%]{width:100%;height:0;border-left:none;border-top:1px solid;border-color:#dee1e8}.schedule__divider--horizontal.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .schedule__divider--horizontal[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .schedule__divider--horizontal[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .schedule__divider--horizontal[_ngcontent-%COMP%]{border-color:#474b53}.schedule__calendar[_ngcontent-%COMP%], .schedule__slots[_ngcontent-%COMP%]{flex:1 1 0;min-width:0}.schedule__slots[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%}.schedule__date[_ngcontent-%COMP%]{margin-bottom:.25rem}.schedule__slot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem}.schedule__slot-copy[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;gap:0rem;min-width:0}.schedule__slot-card[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box}.schedule__slot-card[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{flex-shrink:0;--vds-icon-color: #868f9d}.schedule__slot-card[_ngcontent-%COMP%] vds-icon.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .schedule__slot-card[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .schedule__slot-card[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .schedule__slot-card[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #a3acbd}@media (max-width: 37.49875em){[_nghost-%COMP%]{flex:1 1 auto;min-height:0}.vds-agenda-remote-datetime-selection[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.vds-agenda-remote-datetime-selection__header[_ngcontent-%COMP%], .vds-agenda-remote-datetime-selection__progress[_ngcontent-%COMP%]{margin-inline:-.5rem;width:calc(100% + 1rem)}.vds-agenda-remote-datetime-selection__layout[_ngcontent-%COMP%]{padding-inline:.5rem}.vds-agenda-remote-datetime-selection__service-info[_ngcontent-%COMP%]{padding:1rem 1.5rem 1.5rem}.vds-agenda-remote-datetime-selection__schedule[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;margin-inline:-.5rem;width:calc(100% + 1rem)}.schedule[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border-radius:1.25rem 1.25rem 0 0}.schedule__body--mobile[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.schedule__calendar[_ngcontent-%COMP%], .schedule__slots[_ngcontent-%COMP%]{flex:0 0 auto;width:100%}.schedule__body--mobile[_ngcontent-%COMP%]:has(.vds-calendar--period-expanded) .schedule__divider[_ngcontent-%COMP%], .schedule__body--mobile[_ngcontent-%COMP%]:has(.vds-calendar--period-expanded) .schedule__slots[_ngcontent-%COMP%]{display:none}.schedule[_ngcontent-%COMP%]:has(.vds-calendar--period-expanded){overflow:visible}}'],changeDetection:0});let s=d;return s})();var Gt=(s,d)=>({label:s,disabled:d});function jt(s,d){s&1&&(c(0),U(1,"translate")),s&2&&g(" ",K(1,1,"PAGES.AGENDA_REMOTE.CHANGE_PHONE.PHONE_REQUIRED")," ")}function $t(s,d){s&1&&(c(0),U(1,"translate")),s&2&&g(" ",K(1,1,"PAGES.AGENDA_REMOTE.CHANGE_PHONE.PHONE_INVALID")," ")}function Yt(s,d){s&1&&(c(0),U(1,"translate")),s&2&&g(" ",K(1,1,"PAGES.AGENDA_REMOTE.CHANGE_PHONE.PHONE_SAME_AS_CURRENT")," ")}function Qt(s,d){if(s&1&&T(0,jt,2,3)(1,$t,2,3)(2,Yt,2,3),s&2){let i=h();k(i.phoneControl.hasError("required")?0:i.phoneControl.hasError("invalidPhone")?1:i.phoneControl.hasError("samePhone")?2:-1)}}var Xt=1e3;function Jt(s){return d=>{let i=d.value?.replace(/\D/g,"")??"",e=s.replace(/\D/g,"");return i&&i===e?{samePhone:!0}:null}}var ye=(()=>{let d=class d{constructor(){this.modalRef=b(nt,{optional:!0}),this.dialogData=b(tt,{optional:!0}),this.isLoading=P(!1),this.phoneControl=new ae("",{nonNullable:!0,validators:[H.required,Jt(this.dialogData?.currentPhone??"")]})}onClose(){this.modalRef?.close(void 0)}onSubmit(){return ke(this,null,function*(){if(!this.isLoading()&&(this.phoneControl.markAsTouched(),this.phoneControl.updateValueAndValidity(),!this.phoneControl.invalid)){this.isLoading.set(!0);try{yield new Promise(e=>{setTimeout(e,Xt)}),this.modalRef?.close(this.phoneControl.value)}finally{this.isLoading.set(!1)}}})}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["vds-agenda-remote-change-phone-modal"]],decls:12,vars:17,consts:[["phone
1ErrorTpl",""],[3,"closeClick","titleText","showClose"],["id","changePhoneForm",3,"ngSubmit"],[3,"formControl","required","placeholder","errorTemplate"],[3,"primaryClick","primary"],["size","md",3,"active"]],template:function(a,t){if(a&1){let x=O();o(0,"vds-modal")(1,"vds-modal-header",1),U(2,"translate"),v("closeClick",function(){return f(x),C(!t.isLoading()&&t.onClose())}),r(),o(3,"vds-modal-content")(4,"form",2),v("ngSubmit",function(){return f(x),C(t.onSubmit())}),T(5,Qt,3,1,"ng-template",null,0,ee),_(7,"vds-phone-input",3),U(8,"translate"),r()(),o(9,"vds-default-footer-actions-modal",4),U(10,"translate"),v("primaryClick",function(){return f(x),C(t.onSubmit())}),r(),_(11,"vds-container-loading",5),r()}if(a&2){let x=Z(6);n(),p("titleText",K(2,8,"PAGES.AGENDA_REMOTE.CHANGE_PHONE.TITLE"))("showClose",!t.isLoading()),n(6),p("formControl",t.phoneControl)("required",!0)("placeholder",K(8,10,"PAGES.AGENDA_REMOTE.CHANGE_PHONE.PLACEHOLDER"))("errorTemplate",x),n(2),p("primary",Ke(14,Gt,K(10,12,"PAGES.AGENDA_REMOTE.CHANGE_PHONE.SUBMIT_BUTTON"),t.isLoading())),n(2),p("active",t.isLoading())}},dependencies:[de,re,ie,oe,$e,se,Je,Xe,W,G,j,dt,ge,_e],encapsulation:2,changeDetection:0});let s=d;return s})();var Zt=1;function At(s=new Date){let d=new Date(s.getFullYear(),s.getMonth(),s.getDate());return d.setFullYear(d.getFullYear()+Zt),d}function Me(s,d){let i=et.fromString(d),e=new Date(s.getFullYear(),s.getMonth(),s.getDate());return e.setHours(i.hour,i.minute,0,0),e}function ve(s,d,i){let e=new Intl.DateTimeFormat(i,{weekday:"long",day:"numeric",month:"long",year:"numeric"}).format(s),a=e.charAt(0).toUpperCase()+e.slice(1);return`${d.start} - ${d.end}, ${a}`}var en=["resendCountdown"],tn=()=>["/termos/termos-de-uso"],nn=()=>["/termos/politicas-de-privacidade"];function on(s,d){if(s&1){let i=O();o(0,"div",2)(1,"header",4)(2,"div",5)(3,"div",6)(4,"vds-button",7),v("click",function(){f(i);let a=h();return C(a.onBackClick())}),r(),o(5,"div",8),_(6,"vds-avatar",9),o(7,"div",10)(8,"vds-text",11),c(9),r(),o(10,"vds-text",12),c(11),r()()(),o(12,"vds-text",13),c(13),r()()()(),o(14,"div",14),_(15,"vds-progress",15),r(),o(16,"section",16)(17,"vds-text",17),c(18),r(),o(19,"div",18)(20,"div",19)(21,"div",20),_(22,"vds-icon",21),r(),o(23,"div",22)(24,"vds-text",12),c(25),r(),o(26,"vds-text",11),c(27),r()(),o(28,"div",23),_(29,"vds-tag",24),r()(),o(30,"div",19)(31,"div",20),_(32,"vds-icon",25),r(),o(33,"div",22)(34,"vds-text",12),c(35),r(),o(36,"div",26)(37,"vds-text",11),c(38),r()()(),o(39,"div",23)(40,"vds-button",27),v("click",function(){f(i);let a=h();return C(a.onCopyAddress())}),r()()(),o(41,"div",19)(42,"div",20),_(43,"vds-icon",28),r(),o(44,"div",22)(45,"vds-text",12),c(46),r(),o(47,"vds-text",11),c(48),r()()()()(),o(49,"section",29)(50,"vds-card",30)(51,"div",31)(52,"form",32),v("ngSubmit",function(){f(i);let a=h();return C(a.onSubmitClick())}),o(53,"vds-text",33),c(54),r(),o(55,"div",34),_(56,"vds-full-name-input",35)(57,"vds-phone-input",36)(58,"vds-email-input",37),o(59,"div",38)(60,"div",39)(61,"vds-text",40),c(62),r(),o(63,"vds-text",41),c(64),r()(),_(65,"vds-textarea",42),r()(),o(66,"div",43)(67,"vds-text",44),c(68),o(69,"a",45),c(70),r(),c(71),o(72,"a",45),c(73),r(),c(74),r()(),o(75,"div",46)(76,"vds-button",47),c(77),r(),o(78,"vds-button",48),v("click",function(){f(i);let a=h();return C(a.onBackClick())}),c(79),r()()(),_(80,"vds-container-loading",49),r()()()()}if(s&2){let i=h();n(4),p("iconOnly",!0)("ariaLabel",i.backAriaLabel()),n(2),p("src",i.professional().avatarUrl)("name",i.professional().name),n(3),g(" ",i.professional().name," "),n(2),g(" ",i.professional().role," "),n(2),g(" ",i.stepIndicator()," "),n(2),p("value",i.progressValue()),n(3),g(" ",i.sectionTitle()," "),n(7),g(" ",i.durationLabel()," "),n(2),g(" ",i.service().durationLabel," "),n(2),p("label",i.service().priceLabel),n(6),g(" ",i.locationLabel()," "),n(),p("title",i.locationAddress()),n(2),g(" ",i.locationAddress()," "),n(2),p("iconOnly",!0),n(6),g(" ",i.scheduleLabel()," "),n(2),g(" ",i.scheduleSummary()," "),n(2),p("radiusBottom",!i.isMobile()),n(2),p("formGroup",i.form()),n(2),g(" ",i.formTitle()," "),n(2),p("label",i.fullNameLabel())("placeholder",i.fullNamePlaceholder())("errorMessage",i.fullNameError()),n(),p("label",i.phoneLabel())("placeholder",i.phonePlaceholder())("errorMessage",i.phoneError()),n(),p("label",i.emailLabel())("placeholder",i.emailPlaceholder())("noLeadingIcon",!0)("errorMessage",i.emailError()),n(4),g(" ",i.additionalInfoLabel()," "),n(2),g(" ",i.optionalLabel()," "),n(),p("placeholder",i.additionalInfoPlaceholder())("maxLength",400),n(3),g(" ",i.termsPrefix(),""),n(),p("bold",!0)("routerLink",fe(51,tn)),n(),E(i.termsLink()),n(),E(i.termsMiddle()),n(),p("bold",!0)("routerLink",fe(52,nn)),n(),E(i.privacyLink()),n(),g("",i.termsSuffix()," "),n(),V("patient-form__actions--mobile",i.isMobile()),n(),p("fullWidth",i.isMobile()),n(),g(" ",i.submitLabel()," "),n(),p("fullWidth",i.isMobile()),n(),g(" ",i.backLabel()," "),n(),p("active",i.isSubmitting())}}function an(s,d){if(s&1&&c(0),s&2){let i=h(3);g(" ",i.otpCodeRequiredLabel()," ")}}function rn(s,d){if(s&1&&c(0),s&2){let i=h(3);g(" ",i.otpCodeInvalidLabel()," ")}}function sn(s,d){if(s&1&&T(0,an,1,1)(1,rn,1,1),s&2){let i=h(2);k(i.codeStatus()==="required"?0:1)}}function dn(s,d){if(s&1){let i=O();o(0,"div",3)(1,"vds-card",50)(2,"div",51)(3,"div",52),_(4,"vds-logo",53),r(),o(5,"vds-text",54),c(6),r(),o(7,"div",55),_(8,"vds-otp-input",56),r(),T(9,sn,2,1,"ng-template",null,0,ee),o(11,"vds-text",57),c(12),r(),o(13,"div",58)(14,"vds-text",59),c(15),r(),o(16,"vds-button",60),v("click",function(){f(i);let a=h();return C(a.onEditPhone())}),r()(),o(17,"div",61)(18,"vds-button",62),v("click",function(){f(i);let a=h();return C(a.onVerify())}),c(19),r(),o(20,"vds-countdown-button",63,1),v("actionClick",function(){f(i);let a=h();return C(a.onResendCode())}),r()()(),_(22,"vds-container-loading",64),r()()}if(s&2){let i=Z(10),e=h();n(4),p("type",e.isMobile()?"symbol":"full")("height",e.isMobile()?40:32),n(2),g(" ",e.otpTitle()," "),n(2),p("formControl",e.codeControl)("length",6)("state",e.otpState())("errorTemplate",i
1),n(4),g(" ",e.otpCodeSentTo()," "),n(3),g(" ",e.formattedPhone()," "),n(),p("iconOnly",!0),Re("aria-label",e.editPhoneAriaLabel()),n(2),p("fullWidth",!0)("disabled",!e.canVerify()),n(),g(" ",e.otpVerifyLabel()," "),n(),p("defaultText",e.otpResendLabel())("countingText",e.otpResendCountingLabel())("duration",e.resendCountdownDuration)("autoStart",!0)("restartTimerOnClick",!1)("loading",e.isResending())("disabled",e.isVerifying())("fullWidth",!0),n(2),p("active",e.isVerifying()||e.isResending())("text",e.loadingLabel())}}var Et=4,Vt=3,ln=2e3,cn=2e3,mn=1e3,pn=90,gn="123456",Dt=(()=>{let d=class d{constructor(){this.translation=b(A),this.clipboard=b(z),this.toast=b(F),this.modalService=b(ce),this.destroyRef=b(Ve),this.resendCountdownBtn=Le("resendCountdown"),this.professional=u.required(),this.service=u.required(),this.form=u.required(),this.selectedDateTime=u(null),this.isMobile=u(!1),this.phase=u("form"),this.verifiedPhone=u(""),this.back=M(),this.formSubmitted=M(),this.enterOtpPhase=M(),this.phoneUpdated=M(),this.verificationSuccess=M(),this.controlTick=P(0),this.isSubmitted=P(!1),this.isSubmitting=P(!1),this.isVerifying=P(!1),this.isResending=P(!1),this.codeStatus=P("initial"),this.codeControl=new ae("",{nonNullable:!0}),this.codeValue=ne(this.codeControl.valueChanges.pipe(Ae(this.codeControl.value)),{initialValue:this.codeControl.value}),this.canVerify=l(()=>this.codeValue().length===6&&!this.isVerifying()&&!this.isResending()),this.otpState=l(()=>this.codeStatus()==="initial"?"enabled":"error"),this.formattedPhone=l(()=>{let e=this.verifiedPhone();if(!e)return"";let a=le.fromBrazil(e),x=a.number.match(/^(\d{2})(\d)(\d{4})(\d{4})$/);if(x){let[,y,Y,Q,Rt]=x;return`${a.countryCode} ${y} ${Y} ${Q}-${Rt}`}return a.toString()}),this.scheduleSummary=l(()=>{let e=this.selectedDateTime();if(!e)return"";let a=this.translation.appLocaleContext.current;return ve(e.date,e.slot,a)}),this.fullNameError=l(()=>{this.controlTick();let e=this.form().get("fullName");if(pe(e,this.isSubmitted()))return this.translation.get(m.PagesAgendaRemoteStep3FullNameError)}),this.phoneError=l(()=>{this.controlTick();let e=this.form().get("phone");if(pe(e,this.isSubmitted()))return this.translation.get(m.PagesAgendaRemoteStep3PhoneError)}),this.emailError=l(()=>{this.controlTick();let e=this.form().get("email");if(pe(e,this.isSubmitted()))return this.translation.get(m.PagesAgendaRemoteStep3EmailError)}),this.progressValue=l(()=>Vt/Et*100),this.stepIndicator=l(()=>this.translation.get(m.PagesAgendaRemoteStep3StepIndicator,{current:Vt,total:Et})),this.sectionTitle=l(()=>this.service().name),this.durationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep2DurationLabel)),this.locationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep2LocationLabel)),this.scheduleLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3ScheduleLabel)),this.formTitle=l(()=>this.translation.get(m.PagesAgendaRemoteStep3FormTitle)),this.fullNameLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3FullNameLabel)),this.fullNamePlaceholder=l(()=>this.translation.get(m.PagesAgendaRemoteStep3FullNamePlaceholder)),this.phoneLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3PhoneLabel)),this.phonePlaceholder=l(()=>this.translation.get(m.PagesAgendaRemoteStep3PhonePlaceholder)),this.emailLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3EmailLabel)),this.emailPlaceholder=l(()=>this.translation.get(m.PagesAgendaRemoteStep3EmailPlaceholder)),this.additionalInfoLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3AdditionalInfoLabel)),this.optionalLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OptionalLabel)),this.additionalInfoPlaceholder=l(()=>this.translation.get(m.PagesAgendaRemoteStep3AdditionalInfoPlaceholder)),this.termsPrefix=l(()=>this.translation.get(m.PagesAgendaRemoteStep3TermsPrefix)),this.termsLink=l(()=>this.translation.get(m.PagesAgendaRemoteStep3TermsLink)),this.termsMiddle=l(()=>this.translation.get(m.PagesAgendaRemoteStep3TermsMiddle)),this.privacyLink=l(()=>this.translation.get(m.PagesAgendaRemoteStep3PrivacyLink)),this.termsSuffix=l(()=>this.translation.get(m.PagesAgendaRemoteStep3TermsSuffix)),this.backLabel=l(()=>this.translation.get(m.CommonActionsBack)),this.submitLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3Submit)),this.backAriaLabel=l(()=>this.translation.get(m.CommonActionsBack)),this.otpTitle=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OtpTitle)),this.otpCodeSentTo=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OtpCodeSentTo)),this.otpVerifyLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OtpVerify)),this.otpResendLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OtpResend)),this.otpResendCountingLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OtpResendCounting)),this.loadingLabel=l(()=>this.isResending()?this.translation.get(m.PagesAgendaRemoteStep3OtpResending):this.translation.get(m.PagesAgendaRemoteStep3OtpValidating)),this.otpCodeInvalidLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OtpCodeInvalid)),this.otpCodeRequiredLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3OtpCodeRequired)),this.editPhoneAriaLabel=l(()=>this.translation.get(m.PagesAgendaRemoteChangePhoneEditPhoneAria)),this.locationAddress=l(()=>this.service().location?.address??D),this.resendCountdownDuration=pn,te(e=>{let a=this.form(),t=Te(a.statusChanges,a.valueChanges).subscribe(()=>{this.controlTick.update(x=>x+1)});e(()=>t.unsubscribe())}),this.codeControl.valueChanges.pipe(be(this.destroyRef)).subscribe(()=>
1{this.codeStatus()!=="initial"&&this.codeStatus.set("initial")})}onBackClick(){this.back.emit()}onSubmitClick(){if(this.isSubmitted.set(!0),this.form().invalid){this.form().markAllAsTouched();return}this.formSubmitted.emit(),this.isSubmitting.set(!0),setTimeout(()=>{this.isSubmitting.set(!1),this.enterOtpPhase.emit()},ln)}onVerify(){this.codeControl.markAsTouched();let e=this.codeControl.value;if(e.length===0){this.codeStatus.set("required"),this.codeControl.setErrors({required:!0});return}if(e.length<6){this.codeStatus.set("invalid"),this.codeControl.setErrors({invalid:!0});return}this.codeControl.setErrors(null),this.isVerifying.set(!0),setTimeout(()=>{if(this.isVerifying.set(!1),e!==gn){this.codeStatus.set("invalid"),this.codeControl.setErrors({invalid:!0});return}this.verificationSuccess.emit()},cn)}onResendCode(){this.isResending()||this.isVerifying()||(this.isResending.set(!0),setTimeout(()=>{this.isResending.set(!1),this.codeStatus.set("initial"),this.codeControl.setValue(""),this.resendCountdownBtn()?.startTimer()},mn))}onEditPhone(){let e=this.verifiedPhone();e&&this.modalService.open(ye,{data:{currentPhone:e},width:"400px"}).afterClosed().pipe(be(this.destroyRef)).subscribe(a=>{a&&(this.phoneUpdated.emit(a),this.codeStatus.set("initial"),this.codeControl.setValue(""),this.resendCountdownBtn()?.startTimer())})}onCopyAddress(){let e=this.locationAddress();this.clipboard.copyToClipboard(e),this.toast.show({state:"success",title:this.translation.get(m.PagesAgendaRemoteAddressCopiedToast),isLong:!1})}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["vds-agenda-remote-patient-data"]],viewQuery:function(a,t){a&1&&Ie(t.resendCountdownBtn,en,5),a&2&&Ne()},hostVars:2,hostBindings:function(a,t){a&2&&V("vds-agenda-remote-patient-data--otp",t.phase()==="otp")},inputs:{professional:[1,"professional"],service:[1,"service"],form:[1,"form"],selectedDateTime:[1,"selectedDateTime"],isMobile:[1,"isMobile"],phase:[1,"phase"],verifiedPhone:[1,"verifiedPhone"]},outputs:{back:"back",formSubmitted:"formSubmitted",enterOtpPhase:"enterOtpPhase",phoneUpdated:"phoneUpdated",verificationSuccess:"verificationSuccess"},decls:2,vars:2,consts:[["otpErrorTpl",""],["resendCountdown",""],[1,"vds-agenda-remote-patient-data"],[1,"vds-agenda-remote-patient-data","vds-agenda-remote-patient-data--otp-view"],[1,"vds-agenda-remote-patient-data__header"],[1,"vds-agenda-remote-patient-data__layout"],[1,"vds-agenda-remote-patient-data__header-row"],["variant","tertiary","leadingIcon","vds-arrow-left",3,"click","iconOnly","ariaLabel"],[1,"vds-agenda-remote-patient-data__profile"],["size","sm","borderColor","surface",3,"src","name"],[1,"vds-agenda-remote-patient-data__profile-copy"],["variant","body-md","color","default"],["variant","body-sm","color","muted"],["variant","body-md"],[1,"vds-agenda-remote-patient-data__layout","vds-agenda-remote-patient-data__progress"],["size","sm",3,"value"],[1,"vds-agenda-remote-patient-data__layout","vds-agenda-remote-patient-data__service-info"],["variant","heading-sm","color","dark"],[1,"vds-agenda-remote-patient-data__service-cards"],[1,"vds-agenda-remote-patient-data__service-card"],[1,"vds-agenda-remote-patient-data__service-card-leading"],["name","vds-clock-watch","size","24"],[1,"vds-agenda-remote-patient-data__service-card-content"],[1,"vds-agenda-remote-patient-data__service-card-trailing"],["color","neutral","size","sm",3,"label"],["name","vds-pin","size","24"],[1,"vds-agenda-remote-patient-data__service-card-address",3,"title"],["variant","tertiary","leadingIcon","vds-files-copy","size","sm",3,"click","iconOnly"],["name","vds-calendar","size","24"],[1,"vds-agenda-remote-patient-data__layout","vds-agenda-remote-patient-data__form-section"],["variant","elevated-flat","bg","high",1,"patient-form",3,"radiusBottom"],[1,"patient-form__content"],["novalidate","",1,"patient-form__body",3,"ngSubmit","formGroup"],["variant","heading-sm","color","dark",1,"patient-form__title"],[1,"patient-form__fields"],["formControlName","fullName",3,"label","placeholder","errorMessage"],["formControlName","phone",3,"label","placeholder","errorMessage"],["formControlName","email",3,"label","placeholder","noLeadingIcon","errorMessage"],[1,"patient-form__textarea-group"],[1,"patient-form__textarea-header"],["variant","body-lg","color","default"],["variant","body-lg","color","tertiary"],["formControlName","additionalInfo",3,"placeholder","maxLength"],[1,"patient-form__terms"],["variant","body-lg","color","secondary"],["vds-link","","size","lg","target","_blank","rel","noopener noreferrer",3,"bold","routerLink"],[1,"patient-form__actions"],["variant","primary","size","lg","type","submit",1,"patient-form__actions-submit",3,"fullWidth"],["variant","secondary","size","lg","type","button",1,"patient-form__actions-back",3,"click","fullWidth"],["size","md",3,"active"],["variant","elevated-flat","bg","high",1,"otp-card"],[1,"otp-card__content"],[1,"otp-card__logo"],[3,"type","height"],["variant","heading-md","color","dark",1,"otp-card__title"],[1,"otp-card__otp"],[3,"formControl","length","state","errorTemplate"],["variant","body-md","color","muted",1,"otp-card__hint"],[1,"otp-card__phone-row"],["variant","functional-lg","color","default",1,"otp-card__phone"],["variant","tertiary","size","sm","leadingIcon","vds-pencil",3,"click","iconOnly"],[1,"otp-card__actions"],["variant","primary","type","button","size","lg",3,"click","fullWidth","disabled"],["variant","secondary","size","lg",3,"actionClick","defaultText","countingText","duration","autoStart","restartTimerOnClick","loading","disabled","fullWidth"],["size","md",3,"active","text"]],template:function(a,t){a&1&&T(0,on,81,53,"div",2)(1,dn,23,24,"div",3),a&2&&(k(t.phase()==="form"?0:-1),n(),k(t.phase()==="otp"?1:-1))},dependencies:[de,re,ie,oe,se,Ge,je,qe,R,B,w,he,L,$,I,gt,ge,ot,lt,pt,me,_t,_e,ht],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}
1.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}.vds-agenda-remote-patient-data--otp[_nghost-%COMP%]{flex:1 1 auto;justify-content:center;min-height:0}.vds-agenda-remote-patient-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.vds-agenda-remote-patient-data__layout[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;max-width:37.5rem;margin-inline:auto}.vds-agenda-remote-patient-data__header[_ngcontent-%COMP%]{background:#f1f3f5;padding-block:.5rem}.vds-agenda-remote-patient-data__header-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.vds-agenda-remote-patient-data__profile[_ngcontent-%COMP%]{display:flex;flex:1;align-items:center;gap:.75rem;min-width:0}.vds-agenda-remote-patient-data__profile-copy[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.vds-agenda-remote-patient-data__progress[_ngcontent-%COMP%]{background:#f1f3f5;padding-bottom:.5rem}.vds-agenda-remote-patient-data__progress[_ngcontent-%COMP%] vds-progress[_ngcontent-%COMP%]{display:block;width:100%}.vds-agenda-remote-patient-data__service-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding-block:2rem 1rem}.vds-agenda-remote-patient-data__service-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.vds-agenda-remote-patient-data__service-card[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#a2acbd1a;border-radius:.75rem;padding:1rem;gap:.75rem}.vds-agenda-remote-patient-data__service-card.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .vds-agenda-remote-patient-data__service-card[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .vds-agenda-remote-patient-data__service-card[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .vds-agenda-remote-patient-data__service-card[_ngcontent-%COMP%]{background-color:#a2acbd1a}.vds-agenda-remote-patient-data__service-card-leading[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center}.vds-agenda-remote-patient-data__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #686f7a}.vds-agenda-remote-patient-data__service-card-leading[_ngcontent-%COMP%] vds-icon.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .vds-agenda-remote-patient-data__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .vds-agenda-remote-patient-data__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .vds-agenda-remote-patient-data__service-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #c1c8d3}.vds-agenda-remote-patient-data__service-card-content[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0;gap:0rem}.vds-agenda-remote-patient-data__service-card-address[_ngcontent-%COMP%]{min-width:0;overflow:hidden}.vds-agenda-remote-patient-data__service-card-address[_ngcontent-%COMP%] vds-text[_ngcontent-%COMP%]{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vds-agenda-remote-patient-data__service-card-trailing[_ngcontent-%COMP%]{flex-shrink:0}.vds-agenda-remote-patient-data__form-section[_ngcontent-%COMP%]{width:100%}@media (min-width: 46.5em){.vds-agenda-remote-patient-data__form-section[_ngcontent-%COMP%]{padding-bottom:2rem}}.patient-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;width:100%;box-sizing:border-box;border-radius:1.25rem}.patient-form__content[_ngcontent-%COMP%]{position:relative;display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding:1.25rem;box-sizing:border-box}.patient-form__body[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}.patient-form__title[_ngcontent-%COMP%]{display:block;margin-bottom:1.5rem}.patient-form__fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.25rem}.patient-form__textarea-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.patient-form__textarea-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.patient-form__terms[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.patient-form__terms[_ngcontent-%COMP%] vds-text[_ngcontent-%COMP%]{display:block;width:100%}.patient-form__actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end;
1gap:.5rem}.patient-form__actions-back[_ngcontent-%COMP%]{order:1}.patient-form__actions-submit[_ngcontent-%COMP%]{order:2}.patient-form__actions--mobile[_ngcontent-%COMP%]{flex-direction:column}.patient-form__actions--mobile[_ngcontent-%COMP%] .patient-form__actions-back[_ngcontent-%COMP%]{order:2}.patient-form__actions--mobile[_ngcontent-%COMP%] .patient-form__actions-submit[_ngcontent-%COMP%]{order:1}@media (max-width: 37.49875em){[_nghost-%COMP%]{flex:1 1 auto;min-height:0}.vds-agenda-remote-patient-data[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.vds-agenda-remote-patient-data__header[_ngcontent-%COMP%], .vds-agenda-remote-patient-data__progress[_ngcontent-%COMP%]{margin-inline:-.5rem;width:calc(100% + 1rem)}.vds-agenda-remote-patient-data__layout[_ngcontent-%COMP%]{padding-inline:.5rem}.vds-agenda-remote-patient-data__service-info[_ngcontent-%COMP%]{padding:1rem 1.5rem 1.5rem}.vds-agenda-remote-patient-data__form-section[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;margin-inline:-.5rem;width:calc(100% + 1rem)}.patient-form[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border-radius:1.25rem 1.25rem 0 0}}.vds-agenda-remote-patient-data--otp-view[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:0}.otp-card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;padding:1.25rem 1.5rem;box-sizing:border-box;border-radius:1.25rem}.otp-card__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.otp-card__logo[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;max-width:19.375rem;margin-bottom:1rem}.otp-card__title[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:1.5rem;text-align:center}.otp-card__otp[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-bottom:1.5rem}.otp-card__hint[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:.5rem;text-align:center}.otp-card__phone-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;margin-bottom:1.5rem}.otp-card__phone[_ngcontent-%COMP%]{word-break:break-word;text-align:center}.otp-card__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%}@media (max-width: 37.49875em){.otp-card__logo[_ngcontent-%COMP%]{max-width:none;height:auto}}@media (min-width: 46.5em){.otp-card[_ngcontent-%COMP%]{max-width:28.125rem;border-radius:.75rem;padding:1.5rem}}'],changeDetection:0});let s=d;return s})();var Lt=(()=>{let d=class d{constructor(){this.translation=b(A),this.clipboard=b(z),this.toast=b(F),this.professional=u.required(),this.service=u.required(),this.selectedDateTime=u(null),this.isMobile=u(!1),this.backToStart=M(),this.successTitle=l(()=>this.translation.get(m.PagesAgendaRemoteStep4SuccessTitle)),this.successSubtitle=l(()=>this.translation.get(m.PagesAgendaRemoteStep4SuccessSubtitle)),this.appointmentTitle=l(()=>this.translation.get(m.PagesAgendaRemoteStep4AppointmentTitle)),this.durationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep2DurationLabel)),this.locationLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep2LocationLabel)),this.scheduleLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep3ScheduleLabel)),this.addToCalendarLabel=l(()=>this.translation.get(this.isMobile()?m.PagesAgendaRemoteStep4AddToCalendarMobile:m.PagesAgendaRemoteStep4AddToCalendarDesktop)),this.backToStartLabel=l(()=>this.translation.get(m.PagesAgendaRemoteStep4BackToStart)),this.scheduleSummary=l(()=>{let e=this.selectedDateTime();if(!e)return"";let a=this.translation.appLocaleContext.current;return ve(e.date,e.slot,a)}),this.locationAddress=l(()=>this.service().location?.address??D),this.appointmentCalendarDetails=l(()=>{let e=this.selectedDateTime();if(!e)return null;let a=this.service(),t=this.professional(),x=a.meetingType==="teleconsultation",y=this.translation.get(m.PagesAgendaRemoteStep4TeleconsultationLocation);return{title:a.name,professionalName:t.name,professionalRole:t.role,teleconsultationLabel:x?y:void 0,startAt:Me(e.date,e.slot.start),endAt:Me(e.date,e.slot.end),location:x?y:this.locationAddress(),meetingType:a.meetingType}})}onBackToStartClick(){this.backToStart.emit()}onAddToCalendarClick(){let e=this.appointmentCalendarDetails();if(!e)return;let a=We(e),t=new Blob([a],{type:"text/calendar;charset=utf-8"});He(t,"agendamento.ics")}onCopyAddress(){let e=this.locationAddress();this.clipboard.copyToClipboard(e),this.toast.show({state:"success",title:this.translation.get(m.PagesAgendaRemoteAddressCopiedToast),isLong:!1})}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["vds-agenda-remote-success"]],hostAttrs:[1,"vds-agenda-remote-success"],inputs:{professional:[1,"professional"],service:[1,"service"],selectedDateTime:[1,"selectedDateTime"],isMobile:[1,"isMobile"]},outputs:{backToStart:"backToStart"},decls:57,vars:21,consts:[[1,"vds-agenda-remote-success__layout"],[1,"vds-agenda-remote-success__hero"],["icon","vds-check-circle","color","accent"],["variant","heading-md","color","dark",1,"vds-agenda-remote-success__title"],["variant","body-md","color","muted",1,"vds-agenda-remote-success__subtitle"],["variant","bordered","bg","high",1,"vds-agenda-remote-success__card"],[1,"vds-agenda-remote-success__card-content"],["variant","heading-sm","color","dark",1,"vds-agenda-remote-success__card-title"],[1,"vds-agenda-remote-success__summary-cards"],["variant","flat",1,"vds-agenda-remote-success__summary-card"],[1,"vds-agenda-remote-success__summary-card-inner"],["size","sm","borderColor","surface",3,"src","name"],[1,"vds-agenda-remote-success__profile-copy"],["variant","body-md","color","default"],["variant","body-sm","color","muted"],[1,"vds-agenda-remote-success__summary-card-leading"],["name","vds-clock-watch","size","24"],[1,"vds-agenda-remote-success__summary-card-content"],[1,"vds-agenda-remote-success__summary-card-trailing"],["color","accent","size","sm",3,"label"],["name","vds-pin","size","24"],[1,"vds-agenda-remote-success__summary-card-address",3,"title"],["variant","tertiary","leadingIcon","vds-files-copy","
1size","sm",3,"click","iconOnly"],["name","vds-calendar","size","24"],[1,"vds-agenda-remote-success__actions"],["variant","primary","size","lg","leadingIcon","vds-add-agenda",3,"click","fullWidth","disabled"],["variant","secondary","size","lg",3,"click","fullWidth"]],template:function(a,t){a&1&&(o(0,"div",0)(1,"div",1),_(2,"vds-pictogram",2),o(3,"vds-text",3),c(4),r(),o(5,"vds-text",4),c(6),r()(),o(7,"vds-card",5)(8,"div",6)(9,"vds-text",7),c(10),r(),o(11,"div",8)(12,"vds-card",9)(13,"div",10),_(14,"vds-avatar",11),o(15,"div",12)(16,"vds-text",13),c(17),r(),o(18,"vds-text",14),c(19),r()()()(),o(20,"vds-card",9)(21,"div",10)(22,"div",15),_(23,"vds-icon",16),r(),o(24,"div",17)(25,"vds-text",14),c(26),r(),o(27,"vds-text",13),c(28),r()(),o(29,"div",18),_(30,"vds-tag",19),r()()(),o(31,"vds-card",9)(32,"div",10)(33,"div",15),_(34,"vds-icon",20),r(),o(35,"div",17)(36,"vds-text",14),c(37),r(),o(38,"div",21)(39,"vds-text",13),c(40),r()()(),o(41,"div",18)(42,"vds-button",22),v("click",function(){return t.onCopyAddress()}),r()()()(),o(43,"vds-card",9)(44,"div",10)(45,"div",15),_(46,"vds-icon",23),r(),o(47,"div",17)(48,"vds-text",14),c(49),r(),o(50,"vds-text",13),c(51),r()()()()()()(),o(52,"div",24)(53,"vds-button",25),v("click",function(){return t.onAddToCalendarClick()}),c(54),r(),o(55,"vds-button",26),v("click",function(){return t.onBackToStartClick()}),c(56),r()()()),a&2&&(n(4),g(" ",t.successTitle()," "),n(2),g(" ",t.successSubtitle()," "),n(4),g(" ",t.appointmentTitle()," "),n(4),p("src",t.professional().avatarUrl)("name",t.professional().name),n(3),g(" ",t.professional().name," "),n(2),g(" ",t.professional().role," "),n(7),g(" ",t.durationLabel()," "),n(2),g(" ",t.service().durationLabel," "),n(2),p("label",t.service().priceLabel),n(7),g(" ",t.locationLabel()," "),n(),p("title",t.locationAddress()),n(2),g(" ",t.locationAddress()," "),n(2),p("iconOnly",!0),n(7),g(" ",t.scheduleLabel()," "),n(2),g(" ",t.scheduleSummary()," "),n(2),p("fullWidth",!0)("disabled",!t.appointmentCalendarDetails()),n(),g(" ",t.addToCalendarLabel()," "),n(),p("fullWidth",!0),n(),g(" ",t.backToStartLabel()," "))},dependencies:[R,B,w,L,it,$,I],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}[_nghost-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%;min-height:0}.vds-agenda-remote-success__layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;width:100%}.vds-agenda-remote-success__hero[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5rem;width:100%;margin-bottom:.5rem}.vds-agenda-remote-success__title[_ngcontent-%COMP%], .vds-agenda-remote-success__subtitle[_ngcontent-%COMP%]{display:block;width:100%;text-align:center}.vds-agenda-remote-success__card[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;box-shadow:0 8px 12px #00000014}.vds-agenda-remote-success__card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1.25rem;box-sizing:border-box}.vds-agenda-remote-success__card-title[_ngcontent-%COMP%]{display:block}.vds-agenda-remote-success__summary-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.vds-agenda-remote-success__summary-card[_ngcontent-%COMP%]{width:100%}.vds-agenda-remote-success__summary-card-inner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:1rem;box-sizing:border-box}.vds-agenda-remote-success__profile-copy[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0}.vds-agenda-remote-success__summary-card-leading[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center}.vds-agenda-remote-success__summary-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #686f7a}.vds-agenda-remote-success__summary-card-leading[_ngcontent-%COMP%] vds-icon.theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .vds-agenda-remote-success__summary-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .vds-agenda-remote-success__summary-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%], .theme-dark[_ngcontent-%COMP%] .vds-agenda-remote-success__summary-card-leading[_ngcontent-%COMP%] vds-icon[_ngcontent-%COMP%]{--vds-icon-color: #c1c8d3}.vds-agenda-remote-success__summary-card-content[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0;gap:0rem}.vds-agenda-remote-success__summary-card-address[_ngcontent-%COMP%]{min-width:0;overflow:hidden}.vds-agenda-remote-success__summary-card-address[_ngcontent-%COMP%] vds-text[_ngcontent-%COMP%]{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vds-agenda-remote-success__summary-card-trailing[_ngcontent-%COMP%]{flex-shrink:0}.vds-agenda-remote-success__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%}@media (min-width: 46.5em){.vds-agenda-remote-success__card-content[_ngcontent-%COMP%]{padding:1.5rem}}'],changeDetection:0});let s=d;return s})();var _n="https://i.pravatar.cc/150?img=12",hn={role:"Fisioterapeuta",name:"Dr. Lucas Jos\xE9 Vieira",description:"Registro: CREFITO 3/80598-F",avatarUrl:_n},vn=[{id:"1",name:"Avalia\xE7\xE3o inicial",priceLabel:"R$ 100,00",durationLabel:"1 hora",location:{name:"Medplex Eixo Norte",address:D}},{id:"2",name:"Sess\xE3o de fisioterapia",priceLabel:"R$ 100,00",durationLabel:"50 minutos",location:{name:"Medplex Eixo Norte",address:D}},{id:"3",name:"Retorno",priceLabel:"R$ 100,00",durationLabel:"30 minutos",location:{name:"Medplex Eixo Norte",address:D}},{id:"4",name:"Pacote 4 sess\xF5es",priceLabel:"R$ 100,00",durationLabel:"50 minutos",location:{name:"Medplex Eixo Norte",address:D}}];function ue(s){return new Date(s.getFullYear(),s.getMonth(),s.getDate())}function un(){let s=ue(new Date);return[q(s,-2),q(s,-1),s,q(s,1),q(s,2),q(s,5),q(s,6)]}var fn=[{id:"1",start:"09:15",end:"10:15"},{id:"2",start:"10:30",end:"11:30"},{id:"3",start:"14:00",end:"15:00"},{id:"4",start:"15:15",end:"16:15"},{id:"5",start:"16:30",end:"17:30"}],Se=(()=>
1{let d=class d{constructor(){this.fb=b(Ye),this.currentStep=P("service-selection"),this.patientDataPhase=P("form"),this.verifiedPhone=P(""),this.professional=P(hn),this.services=P(vn),this.selectedService=P(null),this.selectedDate=P(ue(new Date)),this.selectedSlot=P(null),this.availableDates=P(un()),this.minDate=P(ue(new Date)),this.maxDate=P(At()),this.timeSlots=P(fn),this.patientForm=this.fb.group({fullName:["",H.required],phone:["",H.required],email:["",H.required],additionalInfo:[""]}),this.selectedDateTime=l(()=>{let e=this.selectedSlot();return e?{date:this.selectedDate(),slot:e}:null}),this.selectedSlotId=l(()=>this.selectedSlot()?.id??null),te(()=>{let e=this.availableDates(),a=this.minDate(),t=this.maxDate(),x=Ce(()=>this.selectedDate()),Y=rt(x,e,Q=>!!Q&&at(Q,a,t));Pe(Y)!==Pe(x)&&Ce(()=>this.selectedDate.set(Y))})}selectService(e){this.selectedService.set(e),this.currentStep.set("datetime-selection")}selectDate(e){this.selectedDate.set(ue(e)),this.selectedSlot.set(null)}selectSlot(e){this.selectedSlot.set(e),this.patientDataPhase.set("form"),this.currentStep.set("patient-data")}goBack(){if(!(this.patientDataPhase()==="otp"||this.currentStep()==="booking-success")){if(this.currentStep()==="patient-data"){this.currentStep.set("datetime-selection");return}this.currentStep.set("service-selection")}}completeBooking(){this.currentStep.set("booking-success")}resetToStart(){this.currentStep.set("service-selection"),this.selectedService.set(null),this.selectedSlot.set(null),this.patientDataPhase.set("form"),this.verifiedPhone.set(""),this.patientForm.reset({fullName:"",phone:"",email:"",additionalInfo:""})}submitPatientData(){if(this.patientForm.invalid){this.patientForm.markAllAsTouched();return}let e=this.patientForm.controls.phone.value;this.verifiedPhone.set(e)}enterOtpPhase(){this.patientDataPhase.set("otp")}updateVerifiedPhone(e){this.verifiedPhone.set(e)}};d.\u0275fac=function(a){return new(a||d)},d.\u0275prov=Ee({token:d,factory:d.\u0275fac});let s=d;return s})();function Cn(s,d){if(s&1){let i=O();o(0,"vds-agenda-remote-service-selection",9),v("serviceSelected",function(a){f(i);let t=h();return C(t.orchestrator.selectService(a))})("aboutClick",function(){f(i);let a=h();return C(a.onAboutClick())})("contactClick",function(){f(i);let a=h();return C(a.onContactClick())}),r()}if(s&2){let i=h();p("professional",i.orchestrator.professional())("services",i.orchestrator.services())("isMobile",i.isMobile())}}function bn(s,d){if(s&1){let i=O();o(0,"vds-agenda-remote-datetime-selection",10),v("back",function(){f(i);let a=h();return C(a.orchestrator.goBack())})("dateChange",function(a){f(i);let t=h();return C(t.orchestrator.selectDate(a))})("slotSelected",function(a){f(i);let t=h();return C(t.orchestrator.selectSlot(a))}),r()}if(s&2){let i=h();p("professional",i.orchestrator.professional())("service",i.orchestrator.selectedService())("selectedDate",i.orchestrator.selectedDate())("selectedSlotId",i.orchestrator.selectedSlotId())("availableDates",i.orchestrator.availableDates())("timeSlots",i.orchestrator.timeSlots())("minDate",i.orchestrator.minDate())("maxDate",i.orchestrator.maxDate())("isMobile",i.isMobile())}}function xn(s,d){if(s&1){let i=O();o(0,"vds-agenda-remote-patient-data",11),v("back",function(){f(i);let a=h();return C(a.orchestrator.goBack())})("formSubmitted",function(){f(i);let a=h();return C(a.orchestrator.submitPatientData())})("enterOtpPhase",function(){f(i);let a=h();return C(a.orchestrator.enterOtpPhase())})("phoneUpdated",function(a){f(i);let t=h();return C(t.orchestrator.updateVerifiedPhone(a))})("verificationSuccess",function(){f(i);let a=h();return C(a.orchestrator.completeBooking())}),r()}if(s&2){let i=h();p("professional",i.orchestrator.professional())("service",i.orchestrator.selectedService())("selectedDateTime",i.orchestrator.selectedDateTime())("form",i.orchestrator.patientForm)("isMobile",i.isMobile())("phase",i.orchestrator.patientDataPhase())("verifiedPhone",i.orchestrator.verifiedPhone())}}function Pn(s,d){if(s&1){let i=O();o(0,"vds-agenda-remote-success",12),v("backToStart",function(){f(i);let a=h();return C(a.orchestrator.resetToStart())}),r()}if(s&2){let i=h();p("professional",i.orchestrator.professional())("service",i.orchestrator.selectedService())("selectedDateTime",i.orchestrator.selectedDateTime())("isMobile",i.isMobile())}}var ka=(()=>{let d=class d{constructor(){this.orchestrator=b(Se),this.translation=b(A),this.breakpointObserver=b(Qe),this.modalService=b(ce),this.isMobile=ne(this.breakpointObserver.observe(xe).pi
1pe(we(e=>e.matches)),{initialValue:this.breakpointObserver.isMatched(xe)}),this.copyrightText=l(()=>this.translation.get(m.PagesAgendaRemoteCopyright,{year:new Date().getFullYear()}))}onAboutClick(){this.modalService.open(Pt,{width:"600px",autoFocus:!1})}onContactClick(){this.modalService.open(yt,{width:"600px",autoFocus:!1})}};d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=S({type:d,selectors:[["app-agenda-remote-page"]],features:[Ue([Se])],decls:10,vars:14,consts:[[1,"agenda-remote-page"],[1,"agenda-remote-page__content"],[3,"professional","services","isMobile"],[3,"professional","service","selectedDate","selectedSlotId","availableDates","timeSlots","minDate","maxDate","isMobile"],[3,"professional","service","selectedDateTime","form","isMobile","phase","verifiedPhone"],[3,"professional","service","selectedDateTime","isMobile"],[1,"agenda-remote-page__footer"],["type","symbol",3,"height"],["variant","body-sm","color","secondary"],[3,"serviceSelected","aboutClick","contactClick","professional","services","isMobile"],[3,"back","dateChange","slotSelected","professional","service","selectedDate","selectedSlotId","availableDates","timeSlots","minDate","maxDate","isMobile"],[3,"back","formSubmitted","enterOtpPhase","phoneUpdated","verificationSuccess","professional","service","selectedDateTime","form","isMobile","phase","verifiedPhone"],[3,"backToStart","professional","service","selectedDateTime","isMobile"]],template:function(a,t){a&1&&(o(0,"div",0)(1,"div",1),T(2,Cn,1,3,"vds-agenda-remote-service-selection",2)(3,bn,1,9,"vds-agenda-remote-datetime-selection",3)(4,xn,1,7,"vds-agenda-remote-patient-data",4)(5,Pn,1,4,"vds-agenda-remote-success",5),r(),o(6,"footer",6),_(7,"vds-logo",7),o(8,"vds-text",8),c(9),r()()()),a&2&&(V("agenda-remote-page--success",t.orchestrator.currentStep()==="booking-success"),n(),V("agenda-remote-page__content--otp",t.orchestrator.patientDataPhase()==="otp")("agenda-remote-page__content--success",t.orchestrator.currentStep()==="booking-success"),n(),k(t.orchestrator.currentStep()==="service-selection"?2:-1),n(),k(t.orchestrator.currentStep()==="datetime-selection"&&t.orchestrator.selectedService()?3:-1),n(),k(t.orchestrator.currentStep()==="patient-data"&&t.orchestrator.selectedService()?4:-1),n(),k(t.orchestrator.currentStep()==="booking-success"&&t.orchestrator.selectedService()?5:-1),n(),V("agenda-remote-page__footer--form",t.orchestrator.currentStep()==="patient-data"&&t.orchestrator.patientDataPhase()==="form"),n(),p("height",20),n(2),g(" ",t.copyrightText()," "))},dependencies:[St,Tt,Dt,Lt,w,me],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100dvh;overflow-x:hidden;background:#f1f3f5}.agenda-remote-page[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;gap:3rem;width:100%;min-height:0;padding:1.25rem 1.25rem 0;box-sizing:border-box}.agenda-remote-page--success[_ngcontent-%COMP%]{gap:1.5rem}.agenda-remote-page__content[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;width:100%;max-width:37.5rem;min-width:0;min-height:0}.agenda-remote-page__content--otp[_ngcontent-%COMP%], .agenda-remote-page__content--success[_ngcontent-%COMP%]{justify-content:center}.agenda-remote-page__footer[_ngcontent-%COMP%]{display:flex;flex-shrink:0;flex-direction:row;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:1.25rem;box-sizing:border-box}@media (max-width: 37.49875em){.agenda-remote-page[_ngcontent-%COMP%]{padding:.5rem .5rem 0;gap:0}.agenda-remote-page--success[_ngcontent-%COMP%]{gap:1.5rem}.agenda-remote-page__content[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.agenda-remote-page__footer--form[_ngcontent-%COMP%]{background:#fefefe}}'],changeDetection:0});let s=d;return s})();export{ka as AgendaRemotePageComponent};
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.