1import{a as _e}from"./chunk-UCWVZLGI.js";import{a as he}from"./chunk-4C5QWGKM.js";import{a as ye}from"./chunk-OKTRJV57.js";import{a as fe}from"./chunk-SCGZHYEV.js";import{a as ue,b as D,k as ge}from"./chunk-OTQICGEV.js";import{b as ce,f as U}from"./chunk-N6AVC6IW.js";import{a as se,b as de}from"./chunk-YMSX6ORJ.js";import"./chunk-K36MFXZO.js";import{c as le}from"./chunk-UZBBDQ6D.js";import{l as re}from"./chunk-MRVVTN3M.js";import{l as oe,o as A,p as ae,s as pe,t as me}from"./chunk-NZHJC434.js";import{a as ee,b as ne,c as ie}from"./chunk-ZJNJ2YV4.js";import{a as V}from"./chunk-3TWW43VM.js";import"./chunk-X2CDRPV2.js";import"./chunk-Z4U2QIWV.js";import{Ia as Qt,Ja as te,N as Wt,aa as F,da as Xt,ma as qt,q as z,u as Zt,w as Jt}from"./chunk-C6MMI4UH.js";import{x as Kt}from"./chunk-AHPCJ4WC.js";import{e as Vt,f as $t,g as Gt,l as Ht}from"./chunk-MVIE6R26.js";import"./chunk-TLTR6JIE.js";import"./chunk-CWKS2JZF.js";import"./chunk-XTWGI42R.js";import{$ as At,Ab as Ut,Db as jt,Fb as Lt,Gb as Yt,Hb as B,R as Tt,U as Et,dc as R,fa as It,hb as Nt,ia as Dt,ib as Bt,kb as Rt,lb as zt,zb as Ft}from"./chunk-2CB67CRE.js";import{F as St,W as Ot,Y as kt,aa as wt,e as yt,f as xt,h as Ct,i as bt,j as vt,m as Pt,o as Mt}from"./chunk-AH2GBE4P.js";import{Aa as P,Ac as S,Ad as _t,Bd as ut,Cd as gt,Dd as O,Ed as ht,Gc as mt,Jc as I,Lb as N,Mb as ot,Oc as x,Qa as tt,Qb as at,Qc as c,Rb as pt,Xa as et,Yd as ft,_c as rt,ab as nt,cd as L,dd as l,e as q,ed as y,fd as u,ga as M,gd as Y,id as lt,jd as st,kd as dt,ld as ct,pa as Q,qc as h,rd as b,sc as f,ta as d,ub as it,uc as w,vc as T,wb as o,wc as E,xc as C,yc as m,yd as s,za as v,zc as p,zd as _}from"./chunk-BKBETLCE.js";import"./chunk-3SYEH6ZZ.js";function Pe(e,a){if(e&1&&(m(0,"div",4)(1,"div",5),l(2),p(),m(3,"div",6),l(4),p()()),e&2){let t=a.$implicit;
1o(2),y(t.name),o(2),y(t.appointmentDate)}}var $=(()=>{let a=class a{constructor(){this.dialogData=d($t,{optional:!0}),this.bottomSheetData=d(ee,{optional:!0}),this.bottomSheetRef=d(ne,{optional:!0}),this.dialogRef=d(Vt,{optional:!0}),this.isMobile=!1}ngOnInit(){var i,n;this.isMobile=((i=this.dialogData)==null?void 0:i.isMobile)||((n=this.bottomSheetData)==null?void 0:n.isMobile)||!1,this.data=this.isMobile?this.bottomSheetData:this.dialogData}closePopup(){var i;(i=this.dialogRef)==null||i.close()}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=N({type:a,selectors:[["magneto-patient-select-dialog"]],decls:9,vars:2,consts:[[3,"onClose","showCloseIcon"],[1,"patient-information"],[1,"title"],[1,"procedure-name"],[1,"detail-wrapper"],[1,"patient-name"],[1,"appt-date"]],template:function(n,r){n&1&&(m(0,"hd-base-popup-container",0),x("onClose",function(){return r.closePopup()}),m(1,"hd-base-popup-container-content")(2,"div",1)(3,"h1",2),l(4,"Rincian Pemesanan"),p(),m(5,"div",3),l(6),p(),T(7,Pe,5,2,"div",4,w),p()()()),n&2&&(C("showCloseIcon",!r.isMobile),o(6),y(r.data==null?null:r.data.name),o(),E(r.data==null?null:r.data.patientdata))},dependencies:[Ht,Kt],styles:[".patient-information[_ngcontent-%COMP%]{position:relative;color:#424242}.patient-information[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:700;line-height:18px;letter-spacing:0px;text-align:left;color:#424242}.patient-information[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%]{border-bottom:.5px solid #dfdfdf;min-height:60px;margin-top:20px}.patient-information[_ngcontent-%COMP%] .procedure-name[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#424242}.patient-information[_ngcontent-%COMP%] .patient-name[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:19px;letter-spacing:0px;text-align:left}.patient-information[_ngcontent-%COMP%] .appt-date[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:19px;letter-spacing:0px;text-align:left;color:#616161}.patient-information--close-btn[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.patient-information[_ngcontent-%COMP%] .close-popup[_ngcontent-%COMP%]{position:absolute;right:-40px;top:0;background:transparent!important}.patient-information[_ngcontent-%COMP%] .close-popup[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:15px;height:15px}@media(max-width:991px){ .patient-details-dialog{position:absolute!important;bottom:0;width:100%!important;max-height:unset!important;max-width:100%!important} .mat-mdc-dialog-surface{border-radius:12px 12px 0 0/12px 12px 0px 0!important}} .patient-information .mat-button-focus-overlay{display:none!important;transition:none!important;opacity:0!important}"]});let e=a;return e})();var Ce=e=>({"padding-bottom-20":e}),Me=e=>({retryPaymentTime:e}),j=e=>[e,"Rp ","symbol",".0","id"],be=e=>[e,"- Rp ","symbol",".0","id"];function Se(e,a){if(e&1&&(m(0,"div",2)(1,"span",35),S(2,"hd-base-image-mapper",36),p(),m(3,"span",37),l(4),s(5,"async"),s(6,"translate"),p()()),e&2){let t=c(2);o(2),C("webpImage","assets/icon/info/info-red.webp")("fallbackImage","assets/icon/info/info-red.png"),o(2),u(" ",_t(6,5,"PAYMENT_SUMMARY.RETRY_PAYMENT_MSG",b(8,Me,_(5,3,t.getRetryPaymentTime())))," ")}}function Oe(e,a){if(e&1&&(m(0,"div",41),l(1),s(2,"currency"),p()),e&2){let t=c(3).$implicit;o(),u(" ",O(2,1,b(7,j,t==null?null:t.value))," ")}}function ke(e,a){if(e&1&&(m(0,"div",42),l(1),s(2,"currency"),p()),e&2){let t=c(3).$implicit;o(),u(" ",O(2,1,b(7,be,t==null?null:t.value))," ")}}function we(e,a){if(e&1&&h(0,Oe,3,9,"div",41)(1,ke,3,9,"div",42),e&2){let t=c(2).$implicit;f(t.type!=="discount"?0:1)}}function Te(e,a){e&1&&(m(0,"div",39),l(1),s(2,"translate"),p()),e&2&&(o(),y(_(2,1,"PAYMENT.FREE")))}function Ee(e,a){if(e&1&&(m(0,"p",40),l(1),p()),e&2){let t=c(4);o(),Y(" ",t.appointment==null||t.appointment.appointment_booking==null||t.appointment.appointment_booking.appointments==null?null:t.appointment.appointment_booking.appointments.length," X ",t.appointment==null||t.appointment.medical_procedure==null?null:t.appointment.medical_procedure.name," ")}}function Ae(e,a){if(e&1&&(m(0,"div",26)(1,"div",38),l(2),p(),h(3,we,2,1)(4,Te,3,3,"div",39),p(),h(
15,Ee,2,2,"p",40)),e&2){let t=c().$implicit,i=c(2);o(2),y(t.attributes.display_name.id),o(),f(t!=null&&t.value?3:4),o(2),f(t.attributes.display_name.default==="Medical Fee"&&(i.appointment!=null&&i.appointment.medical_procedure)?5:-1)}}function Ie(e,a){if(e&1&&h(0,Ae,6,3),e&2){let t=a.$implicit;f(t.type!=="discount"?0:-1)}}function De(e,a){if(e&1&&(m(0,"div",26)(1,"div",43),l(2),s(3,"translate"),p(),m(4,"div",44),l(5),s(6,"currency"),p()()),e&2){let t=c(2);o(2),y(_(3,2,"DISKON")),o(3),u(" ",O(6,4,b(10,be,t.totalDiscount))," ")}}function Ne(e,a){if(e&1&&(m(0,"div",29),l(1),s(2,"currency"),p()),e&2){let t=c(2);o(),u(" ",O(2,1,b(7,j,t.appointment==null||t.appointment.appointment_booking==null?null:t.appointment.appointment_booking.total))," ")}}function Be(e,a){e&1&&(m(0,"div",30),l(1),s(2,"translate"),p()),e&2&&(o(),y(_(2,1,"PAYMENT.FREE")))}function Re(e,a){e&1&&(m(0,"div",31)(1,"div",45)(2,"span",46),l(3,"info"),p(),m(4,"span",47),l(5),s(6,"translate"),p()()()),e&2&&(o(5),u(" ",_(6,1,"PAYMENT_SUMMARY.INFO_MESSAGE")," "))}function ze(e,a){if(e&1&&(m(0,"span",56),l(1),p()),e&2){let t=c().$implicit;o(),y((t==null||t.attributes==null||t.attributes.promo_message==null?null:t.attributes.promo_message.id)||(t==null||t.attributes==null||t.attributes.promo_message==null?null:t.attributes.promo_message.default))}}function Fe(e,a){if(e&1){let t=I();m(0,"div",50)(1,"span",51)(2,"div",52),l(3),s(4,"uppercase"),p(),m(5,"p",53),l(6),s(7,"currency"),p()(),m(8,"a",54),x("click",function(){let n=v(t).$implicit,r=c(4);return P(r.removePromo(n.adjustment_reference_id))}),S(9,"img",55),p()(),h(10,ze,2,1,"span",56)}if(e&2){let t=a.$implicit;o(3),u(" ",_(4,3,t.adjustment_reference_id)," "),o(3),u(" Kamu menghemat ",O(7,5,b(11,j,t.value))," "),o(4),f(!(t==null||t.attributes==null)&&t.attributes.promo_message&&(!(t==null||t.attributes==null||t.attributes.promo_message==null)&&t.attributes.promo_message.id||!(t==null||t.attributes==null||t.attributes.promo_message==null)&&t.attributes.promo_message.default)?10:-1)}}function Ue(e,a){if(e&1&&T(0,Fe,11,13,null,null,w),e&2){let t=c(3);E(t.appliedPromos)}}function je(e,a){if(e&1&&(m(0,"p",61),l(1),p()),e&2){let t=c(4);o(),u(" ",t.invalidCouponErrorMsg," ")}}function Le(e,a){if(e&1&&(m(0,"div"),mt(1,62),p()),e&2){c(2);let t=rt(8);o(),C("ngTemplateOutlet",t)}}function Ye(e,a){if(e&1){let t=I();m(0,"div",57)(1,"input",58),s(2,"translate"),dt("ngModelChange",function(n){v(t);let r=c(3);return st(r.couponValue,n)||(r.couponValue=n),P(n)}),x("input",function(){v(t);let n=c(3);return P(n.isPromoError=!1)}),p(),m(3,"hd-base-button",59),s(4,"translate"),x("onClick",function(){v(t);let n=c(3);return P(n.onApplyCoupon())}),p()(),m(5,"p",60),l(6),s(7,"translate"),p(),h(8,je,2,1,"p",61),h(9,Le,2,1,"div")}if(e&2){let t=c(3);o(),C("placeholder",ct(_(2,10,"PAYMENT_SUMMARY.PROMO_PLACEHOLDER"))),lt("ngModel",t.couponValue),C("disabled",(t.appointment==null||t.appointment.appointment_booking==null?null:t.appointment.appointment_booking.status)==="payment_failed"),o(2),C("label",_(4,12,"PAYMENT_SUMMARY.PROMO_APPLY"))("width","100px")("disabled",!t.couponValue),o(3),y(_(7,14,"PAYMENT_SUMMARY.MAX_3_COUPON")),o(2),f(t.isPromoError?8:-1),o(),f(t.appliedPromos&&t.appliedPromos.length?9:-1)}}function Ve(e,a){if(e&1&&(m(0,"span",66),l(1),p()),e&2){let t=c().$implicit;o(),y((t==null||t.attributes==null||t.attributes.promo_message==null?null:t.attributes.promo_message.id)||(t==null||t.attributes==null||t.attributes.promo_message==null?null:t.attributes.promo_message.default))}}function $e(e,a){if(e&1){let t=I();m(0,"div",50)(1,"span",51)(2,"div",63),l(3),s(4,"uppercase"),p(),m(5,"p",64),l(6),s(7,"currency"),p()(),m(8,"a",65),x("click",function(){let n=v(t).$implicit,r=c(4);return P(r.removePromo(n.adjustment_reference_id))}),S(9,"img",55),p()(),h(10,Ve,2,1,"span",66)}if(e&2){let t=a.$implicit;o(3),u(" ",_(4,3,t.adjustment_reference_id)," "),o(3),u(" Kamu menghemat ",O(7,5,b(11,j,t.value))," "),o(4),f(!(t==null||t.attributes==null)&&t.attributes.promo_message&&(!(t==null||t.attributes==null||t.attributes.promo_message==null)&&t.attributes.promo_message.id||!(t==null||t.attributes==null||t.attributes.promo_message==null)&&t.attributes.promo_message.default)?10:-1)}}function Ge(e,a){if(e&1&&T(0,$e,11,13,null,null,w),e&2){let t=c(3);E(t.appliedPromos)}}function He(e,a){if(e&1&&(m(0,"div",23)(1,"div",48)(2,"p",49),l(3),s(4,"translate"),p(),h(
15,Ue,2,0)(6,Ye,10,16),pt(7,Ge,2,0,"ng-template",null,0,ht),p()()),e&2){let t=c(2);o(),L(b(6,Ce,!t.isMobile)),o(2),y(_(4,4,"PAYMENT_SUMMARY.PROMO_TITLE")),o(2),f(t.appliedPromos&&t.appliedPromos.length>=t.maxAllowedPromo?5:6)}}function Ke(e,a){e&1&&(m(0,"div",23)(1,"div",67)(2,"div",68),S(3,"img",69),p(),m(4,"div",70),l(5),s(6,"translate"),p()()()),e&2&&(o(5),u(" ",_(6,1,"PAYMENT_SUMMARY.PAY_AT_HOSPITAL_MESSAGE")," "))}function Ze(e,a){if(e&1){let t=I();m(0,"div",1),h(1,Se,7,10,"div",2),m(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),l(6),s(7,"translate"),m(8,"span",7),l(9),p(),l(10),p(),m(11,"p",8)(12,"span",9),l(13),p()(),m(14,"div",10)(15,"div",11),l(16),s(17,"translate"),m(18,"span",12),l(19),s(20,"dateTime"),p(),m(21,"span",13),l(22," \xA0|\xA0"),p(),l(23),s(24,"translate"),m(25,"span",14),l(26),s(27,"dateTime"),p()(),m(28,"div",15),x("click",function(){v(t);let n=c();return P(n.patientdetails())}),m(29,"span",16),l(30),p(),S(31,"img",17),p()()(),m(32,"div",18)(33,"hd-base-button",19),s(34,"translate"),s(35,"titlecase"),x("onClick",function(){v(t);let n=c();return P(n.editSlot())}),m(36,"hd-base-leading-content")(37,"mat-icon",20),l(38,"edit"),p()()()()(),m(39,"div",21)(40,"div",22)(41,"div",23)(42,"div",24)(43,"p",25),l(44),s(45,"translate"),p(),T(46,Ie,1,1,null,null,w),h(48,De,7,12,"div",26),m(49,"div",27)(50,"div",28),l(51),s(52,"translate"),p(),h(53,Ne,3,9,"div",29)(54,Be,3,3,"div",30),p(),h(55,Re,7,3,"div",31),p()(),h(56,He,9,8,"div",23),h(57,Ke,7,3,"div",23),p(),m(58,"div",32)(59,"div",33)(60,"hd-base-button",34),s(61,"translate"),s(62,"translate"),x("onClick",function(){v(t);let n=c();return P(n.onProceed())}),p()()()()()()}if(e&2){let t=c();o(),f((t.appointment==null||t.appointment.appointment_booking==null?null:t.appointment.appointment_booking.status)==="payment_failed"?1:-1),o(5),u(" ",_(7,27,"PAYMENT_SUMMARY.VISITING")," untuk "),o(3),Y(" ",t.doctorFullName.transform(t.appointment==null?null:t.appointment.personnel)," ",t.appointment==null||t.appointment.medical_procedure==null?null:t.appointment.medical_procedure.name," "),o(),u(" ",t.appointment==null||t.appointment.provider_location==null?null:t.appointment.provider_location.name," "),o(3),u(" ",(t.appointment==null||t.appointment.provider_location==null?null:t.appointment.provider_location.name)+", "+(t.appointment==null||t.appointment.provider_location==null?null:t.appointment.provider_location.type)+", "+(t.appointment==null||t.appointment.provider_location==null?null:t.appointment.provider_location.district)+", "+(t.appointment==null||t.appointment.provider_location==null?null:t.appointment.provider_location.city)," "),o(3),u(" ",_(17,29,"PAYMENT_SUMMARY.TIME")," "),o(3),u(" ",gt(20,31,t.appointment==null||t.appointment.appointment_booking==null||t.appointment.appointment_booking.appointments==null?null:t.appointment.appointment_booking.appointments[0].appointment_date,t.appointment==null||t.appointment.provider_location==null?null:t.appointment.provider_location.time_zone,t.timeFormatOptions,"en-US")," "),o(4),u(" ",_(24,36,"PAYMENT_SUMMARY.DATE")," - "),o(3),u(" ",ut(27,38,t.appointment==null||t.appointment.appointment_booking==null||t.appointment.appointment_booking.appointments==null?null:t.appointment.appointment_booking.appointments[0].appointment_date,t.appointment==null||t.appointment.provider_location==null?null:t.appointment.provider_location.time_zone,t.dateFormatOptions)," "),o(4),u("",t.appointment==null||t.appointment.appointment_booking==null||t.appointment.appointment_booking.appointments==null?null:t.appointment.appointment_booking.appointments.length," pasien"),o(3),C("label",_(35,44,_(34,42,"EDIT")))("buttonStyle",t.ButtonStyle.PLAIN)("buttonSize",t.ButtonSize.SMALL),o(9),L(b(54,Ce,!t.isMobile)),o(2),y(_(45,46,"PAYMENT_SUMMARY.TITLE")),o(2),E(t.appointment==null||t.appointment.appointment_booking==null?null:t.appointment.appointment_booking.adjustments),o(2),f(t.totalDiscount&&t.totalDiscount>0?48:-1),o(3),y(_(52,48,"PAYMENT_SUMMARY.TO_PAY")),o(2),f(!(t.appointment==null||t.appointment.appointment_booking==null)&&t.appointment.appointment_booking.total?53:54),o(2),f(-1),o(),f(t.payAtHospital?-1:56),o(),f(t.payAtHospital?57:-1),o(3),C("label",(t.appointment==null||t.appointment.appointment_booking==null?null:t.appointment.appointment_booking.total)===0?_(61,50,"PAYMENT_SUMMARY.REQUEST_BOOKING"):_(62,52,"PAYMENT_SUMMARY.PROCEED_TO_PAY"))("buttonSize",t.ButtonSize.LARGE)("width","100%")("disabled",t.isLoading)}}function Je(e,a){e&1&&S(0,"magneto-full-screen-loader")}var ve=(()=>
1{let a=class a extends _e{constructor(){super(...arguments),this.appointmentPaymentsService=d(ye),this.alertService=d(pe),this.appointmentService=d(fe),this.dataService=d(Zt),this.activatedRoute=d(Ot),this.router=d(kt),this.localStorageService=d(Jt),this.translate=d(Bt),this.sessionExpiryModal=d(he),this.spinnerModalService=d(Qt),this.gtmService=d(Xt),this.doctorFullName=d(ce),this.configService=d(te),this.goJekAnalytics=d(me),this.paymentService=d(le),this.dateTimePipe=d(U),this.dialog=d(Gt),this.datePipe=d(vt),this.utilityService=d(F),this.bottomSheet=d(ie),this._cdrZoneless=d(ft),this.appointmentId="",this.couponValue="",this.invalidCouponErrorMsg="",this.maxAllowedPromo=1,this.isPromoError=!1,this.appliedPromos=[],this.totalDiscount=0,this.isLoading=!1,this.canDeactivatePage=!1,this.isDeepLinkFlow=!1,this.userProfile=null,this.dateFormatOptions={month:"long",day:"2-digit"},this.timeFormatOptions={hour:"2-digit",minute:"2-digit",hour12:!1},this.payAtHospital=!1,this.isMobile=!1,this.ButtonSize=Yt,this.ButtonStyle=Lt,this.ngUnsubscribe$=new q}unloadWindow(){this.localStorageService.removeItem("APPOINTMENT_STATE")}getRetryPaymentTime(){var i;return this.paymentService.calculateRetryPaymentTimeFromOrder((i=this.appointment)==null?void 0:i.appointment_booking,qt.hospital_appointment)}canDeactivate(){return this.canDeactivatePage}ngOnDestroy(){this.spinnerModalService.hide(),this.ngUnsubscribe$.next(),this.ngUnsubscribe$.complete()}ngOnInit(){this.utilityService.isServer()||(this.dataService.getUserProfile().pipe(M(this.ngUnsubscribe$)).subscribe(i=>{this.userProfile=i,this._cdrZoneless.markForCheck()}),this.isMobile=this.utilityService.isMobileDevice(),this.spinnerModalService.show(),this.configureTranslation(),this.configService.getAppointmentConfiguration().pipe(M(this.ngUnsubscribe$)).subscribe(i=>{this.maxAllowedPromo=i.max_allowed_promo_count||3,this._cdrZoneless.markForCheck()}),this.appointmentSchedule=this.localStorageService.getItem("APPOINTMENT_STATE"),this.activatedRoute.queryParams.pipe(M(this.ngUnsubscribe$)).subscribe(i=>{i.appointment_id&&(this.appointmentId=i.appointment_id,this.getAppointmentDetails(this.appointmentId)),this.isDeepLinkFlow=!i.flow,this._cdrZoneless.markForCheck()}))}configureTranslation(){let i=this.dataService.currentUserLang;this.translate.use(i)}handleAppointmentAbandoned(){let i=this.translate.instant("SESSION_EXPIRY"),n=this.sessionExpiryModal.getRedirectURL(this.appointment);this.spinnerModalService.hide(),this.sessionExpiryModal.show(i.MESSAGE,i.CTA,n,this.isDeepLinkFlow)}editSlot(){var n,r;if(((r=(n=this.appointment)==null?void 0:n.appointment_booking)==null?void 0:r.status)==="payment_failed"||!this.appointment)return;let i=this.sessionExpiryModal.getRedirectURL(this.appointment);this.appointmentSchedule||(this.appointmentSchedule=new ge),this.appointment.appointment_booking&&(this.appointmentSchedule&&(!this.appointmentSchedule.customer_appointment_id||this.appointmentSchedule.customer_appointment_id!==this.appointment.appointment_booking.customer_booking_id)&&(this.appointmentSchedule.customer_appointment_id=this.appointment.appointment_booking.customer_booking_id),this.appointmentSchedule&&(!this.appointmentSchedule.slot_id||this.appointmentSchedule.slot_id!==this.appointment.appointment_booking.slot_id)&&(this.appointmentSchedule.slot_id=this.appointment.appointment_booking.slot_id),this.appointmentSchedule&&(!this.appointmentSchedule.appointment_date||this.appointmentSchedule.appointment_date!==this.appointment.appointment_booking.appointment_date)&&(this.appointmentSchedule.appointment_date=this.appointment.appointment_booking.appointment_date),this.appointment.appointment_booking.patient_id&&(this.appointmentSchedule.patient_id=this.appointment.appointment_booking.patient_id)),this.appointmentSchedule&&this.appointment.personnel&&(!this.appointmentSchedule.personnel_slug||this.appointmentSchedule.personnel_slug!==this.appointment.personnel.slug)&&(this.appointmentSchedule.personnel_slug=this.appointment.personnel.slug),this.appointmentSchedule&&this.appointment.provider_location&&(!this.appointmentSchedule.provider_location_slug||this.appointmentSchedule.provider_location_slug!==this.appointment.provider_location.slug)&&(this.appointmentSchedule.provider_location_slug=this.appointment.provider_location.slug),this.appointmentSchedule.current_step=ue.PAYMENT_SUMMARY,this.localStorageService.setItem("APPOINTMENT_STATE",this.appointmentSchedule),this.canDeactivatePage=!0,this.router.navigateByUrl(i),this.sendGoJekEvent(A.CART_BUTTON_CLICKED,"LANJUTKAN")}getAppointmentDetails(i){this.appointmentService.getAppointment(i).pipe(M(this.ngUnsubscribe$)).subscribe(n=>{if(this.spinnerModalService.hide(),this.appointment=n,this.appointment&&this.appointment.appointment_booking&&this.appointment.appointment_booking.appointments){if(this.payAtHospital=!(this.appointment.appointment_booking.appointments.length&&this.appointment.appointment_booking.appointments[0].attributes&&this.appointment.appointment_booking.appointments[0].attributes.payment_capability&&this.appointment.appointment_booking.appointments[0].attributes.payment_capability==="true"),this.appointment.appointment_booking.status===D.abandoned)this.canDeactivatePage=!0,this.handleAppointmentAbandoned();else if(this.appointment.appointment_booking.status!==D.created&&this.appointment.appointment_booking.status!==D.payment_failed){this.canDeactivatePage=!0,this.localStorageService.removeItem("APPOINTMENT_STATE"),this.router.navigateByUrl(`/riwayat/buatjanji/${this.appointment.appointment_booking.customer_booking_id}`);return}else if(this.appointment.appointment_booking.status===D.created&&this.appointment.appointment_booking.payment_processing){this.router.navigateByUrl(`/buatjanji/${i}/pembayaran_diproses`);return}this.sortAppointmentAdjustments(this.appointment.appointment_booking.adjustments),this.extractAppliedPromos(this.appointment.appointment_booking.adjustments)}this.gtmEvents(),this.sendGoJekEvent(A.CART_VIEWED),this._cdrZoneless.markForCheck()},()=>{this.spinnerModalService.hide(),this.canDeactivatePage=!0,this.router.navigateByUrl("/rumah-sakit"),this._cdrZoneless.markForCheck()})}gtmEvents(){this.utilityService.isServer()||this._trackAppointmentCheckoutEvent()}sortAppointmentAdjustments(i){i.sort((n,r)=>n.attributes.display_order-r.attributes.display_order)}extractAppliedPromos(i){this.appliedPromos=i.filter(n=>n.type==="discount"),this.totalDiscount=0,this.appliedPromos.forEach(n=>{this.totalDiscount+=Number(n.value)})}onApplyCoupon(){var n,r;if(((r=(n=this.appointment)==null?void 0:n.appointment_booking)==null?void 0:r.status)==="payment_failed")return;let i=this.appointment&&this.appointment.appointment_booking&&this.appointment.appointment_booking.customer_booking_id;i&&this.appointmentPaymentsService.applyPromotion(i,this.couponValue).pipe(M(this.ngUnsubscribe$)).subscribe(g=>{this.couponValue="",this.isPromoError=!1,this.appointment&&(this.appointment.appointment_booking=g,this.sortAppointmentAdjustments(this.appointment.appointment_booking.adjustments),this.extractAppliedPromos(this.appointment.appointment_booking.adjustments)),this.sendGoJekEvent(A.CART_BUTTON_CLICKED,"Coupon Applied"),this._cdrZoneless.markForCheck()},()=>
1{this.isPromoError=!0,this.invalidCouponErrorMsg="Kupon ini tidak dapat digunakan",this._cdrZoneless.markForCheck()})}removePromo(i){var r,g;if(((g=(r=this.appointment)==null?void 0:r.appointment_booking)==null?void 0:g.status)==="payment_failed"||!i)return;let n=this.appointment&&this.appointment.appointment_booking&&this.appointment.appointment_booking.customer_booking_id;n&&this.appointmentPaymentsService.removePromotion(n,i).pipe(M(this.ngUnsubscribe$)).subscribe(k=>{this.appointment=k,this.isPromoError=!1,this.appointment.appointment_booking&&(this.sortAppointmentAdjustments(this.appointment.appointment_booking.adjustments),this.extractAppliedPromos(this.appointment.appointment_booking.adjustments)),this.sendGoJekEvent(A.CART_BUTTON_CLICKED,"Coupon Removed"),this._cdrZoneless.markForCheck()},()=>{this.isPromoError=!0,this.invalidCouponErrorMsg="Tidak valid, coba lagi",this._cdrZoneless.markForCheck()})}onProceed(){var i;if(this.isLoading=!0,this.canDeactivatePage=!0,this.sendGoJekEvent(A.CART_BUTTON_CLICKED,"LANJUTKAN"),this.appointment&&this.appointment.appointment_booking.total>0){let n="";(i=this.appointmentSchedule)!=null&&i.pay_at_hospital?(n=`/riwayat/buatjanji/${this.appointment.appointment_booking.customer_booking_id}`,this.bookAppointment(),this.router.navigateByUrl(n)):(n=`/buatjanji/${this.appointment.appointment_booking.customer_booking_id}/metode_pembayaran?flow=regular`,this.router.navigateByUrl(n))}else this.bookAppointment()}bookAppointment(){let i=this.appointment&&this.appointment.appointment_booking&&this.appointment.appointment_booking.customer_booking_id;this.spinnerModalService.show(),i&&this.appointmentService.bookAppointment(i).pipe(M(this.ngUnsubscribe$)).subscribe(()=>{this.isLoading=!1,this.canDeactivatePage=!0,this.spinnerModalService.hide(),this.localStorageService.removeItem("APPOINTMENT_STATE"),this.router.navigateByUrl(`/riwayat/buatjanji/${i}`),this._cdrZoneless.markForCheck()},n=>{this.isLoading=!1,this.spinnerModalService.hide();let r=n.error&&n.error.code;Number(r)===8021||Number(r)===8012?this.handleAppointmentAbandoned():this.alertService.setAlerts([new oe("danger",n.error.message,3e3)]),this._cdrZoneless.markForCheck()})}sendGoJekEvent(i,n){let r=this.goJekAnalytics.generateGojekDataEvent(i);r.value.ServiceType=ae.CONTACT_DOCTOR,n&&(r.value.activityName=n),this.goJekAnalytics.sendEvent(r)}_trackAppointmentCheckoutEvent(){if(!this.appointment)return;let n={products:[{id:this.appointment.personnel&&this.appointment.personnel.external_id||this.appointment.medical_procedure&&this.appointment.medical_procedure.external_id,name:this.appointment.personnel&&this.appointment.personnel.slug||this.appointment.medical_procedure&&this.appointment.medical_procedure.slug,price:this._getPrice(),brand:this.appointment.provider_location.name,variant:this._getSelectedDateTime(),quantity:"1",dimension1:"IHS",dimension2:"2",dimension5:this.appointment.provider_location.city}]},r={step:4};this.gtmService.trackGaEcommerceEvent(Wt.CHECKOUT,n,r)}_getPrice(){var i,n,r;if(((n=(i=this.appointment)==null?void 0:i.appointment_booking.attributes)==null?void 0:n.payment_capability)==="true"){if((r=this.appointment.appointment_booking.adjustments)!=null&&r.length){let g=this.appointment.appointment_booking.adjustments.find(k=>k.type==="medical_fee");return g?g.value:"0"}return this.appointment.appointment_booking.attributes.medical_fee||"0"}return"0"}_getSelectedDateTime(){if(!this.appointment)return"";let i={year:"numeric",month:"2-digit",day:"2-digit"},n=this.dateTimePipe.transform(this.appointment.appointment_booking.appointment_date,this.appointment.provider_location.time_zone,i,"fr-ca"),r={hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1},g=this.dateTimePipe.transform(this.appointment.appointment_booking.appointment_date,this.appointment.provider_location.time_zone,r,"en-US");return!n||!g?"":n+" "+g}patientdetails(){var g,k,G,H,K,Z,J,W,X;let n=((g=this.appointment)!=null&&g.personnel?(G=(k=this.appointment)==null?void 0:k.personnel)==null?void 0:G.full_name:(K=(H=this.appointment)==null?void 0:H.medical_procedure)==null?void 0:K.name)+" di "+((J=(Z=this.appointment)==null?void 0:Z.provider_location)==null?void 0:J.name),r=this.getpatientDetails((X=(W=this.appointment)==null?void 0:W.appointment_booking)==null?void 0:X.appointments);this.isMobile?this.bottomSheet.open($,{panelClass:"patient-details-bottomsheet",data:{name:n,patientdata:r,isMobile:!0}}):this.dialog.open($,{panelClass:"patient-details-dialog",data:{name:n,patientdata:r,isMobile:!1}})}getpatientDetails(i){let n=[];
1return i.forEach(r=>{let g={name:r.patient.name,appointmentDate:this.appointmentdate_(r.updated_at)};n.push(g)}),n}appointmentdate_(i){return this.datePipe.transform(i,"EEEE, d MMMM, HH:mm")}};a.\u0275fac=(()=>{let i;return function(r){return(i||(i=tt(a)))(r||a)}})(),a.\u0275cmp=N({type:a,selectors:[["magneto-payment-summary"]],hostBindings:function(n,r){n&1&&x("unload",function(){return r.unloadWindow()},it)},standalone:!1,features:[at],decls:2,vars:1,consts:[["appliedPromo",""],[1,"md:flex","flex-col","items-center"],[1,"hidden","md:block","md:flex","complete-payment-warning"],[1,"coupon-payment","flex","flex-col","items-center","h-full"],[1,"coupon-payment__header","flex","w-full","items-center","md:items-start","gap-2"],[1,"flex-1","min-w-0"],["data-testid","payment-summary-visiting-info",1,"truncate"],["data-testid","payment-summary-doctor-name",1,"doctor-name"],[1,"hidden","md:block","truncate","hospital-address"],["data-testid","payment-summary-hospital-address-value"],[1,"pt-1","md:pt-2","date-time-section"],["data-testid","payment-summary-datetime-row"],["data-testid","payment-summary-appointment-time",1,"time"],["data-testid","payment-summary-time-date-separator",1,"separator"],["data-testid","payment-summary-appointment-date",1,"date"],["dataTestId","patient-details",1,"btn-patient","flex","flex-row",3,"click"],["data-testid","payment-summary-patient-count"],["src","assets/icon/redarrow.webp",1,"arrow-icon",2,"height","25px","width","20px"],["dataTestId","edit-slot",1,"shrink-0"],[3,"onClick","label","buttonStyle","buttonSize"],["dataTestId","edit-icon"],[1,"coupon-payment__content","flex","flex-col","items-center","w-full"],[1,"flex","flex-col","items-center","w-full","payment-breakdown"],[1,"w-full","md:p-0"],[1,"payment-summary","coupon-payment__content__coupon"],["data-testid","payment-summary-breakdown-title",1,"coupon-payment__content__coupon--title"],[1,"payment-summary__summary-item","coupon-payment__content__coupon__applied","flex","flex-wrap","items-center"],[1,"payment-summary__summary-total","coupon-payment__content__coupon__applied","flex","flex-wrap","items-center"],["data-testid","payment-summary-total-label",1,"payment-summary__summary-item__label-bold"],["data-testid","payment-summary-total-value",1,"payment-summary__summary-item__value-bold"],["data-testid","payment-summary-total-value-free",1,"payment-summary__summary-item__value-free"],[1,"payment-summary__summary-info","flex","flex-wrap","items-center"],[1,"w-full"],["dataTestId","complete-payment",1,"coupon-payment__content__action","border-top","w-full"],[3,"onClick","label","buttonSize","width","disabled"],[2,"padding-right","0.5rem"],[1,"alert-img",3,"webpImage","fallbackImage"],["data-testid","payment-summary-payment-failed-warning-text",1,"complete-payment-warning__text"],["data-testid","payment-summary-adjustment-label",1,"payment-summary__summary-item__label"],["data-testid","payment-summary-adjustment-value-free",1,"payment-summary__summary-item__value-free"],["data-testid","payment-summary-medical-fee-detail",1,"coupon-message","fee-detail"],["data-testid","payment-summary-adjustment-value-positive",1,"payment-summary__summary-item__value"],["data-testid","payment-summary-adjustment-value-negative",1,"payment-summary__summary-item__value"],["data-testid","payment-summary-discount-label",1,"payment-summary__summary-item__label"],["data-testid","payment-summary-discount-value",1,"payment-summary__summary-item__value"],[1,"payment-summary__summary-info--text"],["data-testid","payment-summary-info-icon",1,"material-icons"],["data-testid","payment-summary-info-message",1,"info-content"],[1,"coupon-payment__content__coupon"],["data-testid","payment-summary-promo-title",1,"coupon-payment__content__coupon--title"],[1,"coupon-payment__content__coupon__applied","flex","justify-between"],[1,"flex"],["data-testid","payment-summary-promo-code-value",1,"coupon-payment__content__coupon__applied--coupon-value","sm:truncate","xs:truncate"],["id","couponInfo","data-testid","payment-summary-promo-savings-value",1,"coupon-payment__content__coupon__applied--success-msg"],["dataTestId","payment-summary-a-1","href","javascript:;",1,"coupon-payment__content__coupon__applied--close","flex",3,"click"],["src","assets/svg/close.svg","alt","close","loading","lazy"],["data-testid","payment-summary-promo-message-info",1,"coupon-payment__content__coupon__applied--info","pt-2"],[1,"coupon-payment__content__coupon__input","flex","items-center","overflow-hidden"],["type","text","id","appointmentCouponInput1","maxlength","18",3,"ngModelChange","input","placeholder","ngModel","disabled"],[3,"onClick","label","width","disabled"],["data-testid","payment-summary-max-coupon-message",1,"coupon-message"],["data-testid","payment-summary-promo-error-message",1,"coupon-payment__content__coupon__error-msg"],[3,"ngTemplateOutlet"],["data-testid","payment-summary-promo-code-value-template",1,"coupon-payment__content__coupon__applied--coupon-value","sm:truncate","xs:truncate"],["id","couponInfo-2","data-testid","payment-summary-promo-savings-value-template",1,"coupon-payment__content__coupon__applied--success-msg"],["dataTestId","payment-summary-a","href","javascript:;",1,"coupon-payment__content__coupon__applied--close","flex",3,"click"],["data-testid","payment-summary-promo-message-info-template",1,"coupon-payment__content__coupon__applied--info","pt-2"],[1,"hospital-message"],[1,"image-info"],["loading","lazy","src","/assets/svg/appointment/info.svg","alt","info",1,"info-icon"],["data-testid","payment-summary-pay-at-hospital-message",1,"text-teal-500"]],template:function(n,r){n&1&&h(0,Ze,63,56,"div",1)(1,Je,1,0,"magneto-full-screen-loader"),n&2&&f(r.userProfile?0:1)},dependencies:[yt,z,R,B,Tt,Et,It,At,Ft,jt,xt,bt,Ct,Pt,U,Rt],styles:['.complete-payment-warning[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;display:flex;flex-direction:row;align-items:center;margin-bottom:12px;margin-top:6px;padding:12px;background:#fcebe7}.complete-payment-warning__text[_ngcontent-%COMP%]{font-size:16px;color:#861f07}.complete-payment-warning[_ngcontent-%COMP%] .alert-img[_ngcontent-%COMP%]{width:20px}@media(min-width:768px){.complete-payment-warning[_ngcontent-%COMP%]{width:565px}}.coupon-payment[_ngcontent-%COMP%]{font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;background-color:#fff}@media(min-width:768px){.coupon-payment[_ngcontent-%COMP%]{width:565px;min-height:550px;margin:25px 0;border-radius:8px;border:solid 1px #dfdfdf;overflow:hidden}}
1.coupon-payment__header[_ngcontent-%COMP%]{padding:12px 16px;background-color:#fff;font-weight:400;font-size:12px;color:#999;border-bottom:solid 1px #dfdfdf}@media(min-width:768px){.coupon-payment__header[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#53565a;padding:24px 48px;position:relative}.coupon-payment__header[_ngcontent-%COMP%] .hospital-address[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:1.71;color:#999;padding-top:2px}}.coupon-payment__header[_ngcontent-%COMP%] .doctor-name[_ngcontent-%COMP%]{font-weight:700;color:#53565a}@media(min-width:768px){.coupon-payment__header[_ngcontent-%COMP%] .doctor-name[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:1.71}}.coupon-payment__header[_ngcontent-%COMP%] .hospital-name[_ngcontent-%COMP%]{opacity:.75}.coupon-payment__header[_ngcontent-%COMP%] .date-time-section[_ngcontent-%COMP%]{display:flex}@media(max-width:991px){.coupon-payment__header[_ngcontent-%COMP%] .date-time-section[_ngcontent-%COMP%]{display:unset}}.coupon-payment__header[_ngcontent-%COMP%] .time[_ngcontent-%COMP%], .coupon-payment__header[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{font-weight:400;font-size:14px;color:#53565a}@media(max-width:991px){.coupon-payment__header[_ngcontent-%COMP%] .time[_ngcontent-%COMP%], .coupon-payment__header[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{font-size:12px}}
1.coupon-payment__header[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{font-weight:700;font-size:12px;color:#dfdfdf}@media(min-width:768px){.coupon-payment__header[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{font-size:14px}}.coupon-payment__content[_ngcontent-%COMP%]{flex:1;overflow:auto}@media(min-width:768px){.coupon-payment__content[_ngcontent-%COMP%]{margin-top:30px}}.coupon-payment__content__coupon[_ngcontent-%COMP%]{padding:10px 16px 20px;background-color:#fff}@media(min-width:768px){.coupon-payment__content__coupon[_ngcontent-%COMP%]{box-shadow:none;padding:0 48px 30px}}.coupon-payment__content__coupon--title[_ngcontent-%COMP%]{font-weight:700;font-size:14px;color:#53565a;padding:0 0 5px;letter-spacing:-.2px}@media(min-width:768px){.coupon-payment__content__coupon--title[_ngcontent-%COMP%]{font-size:16px;letter-spacing:-.13px}}.coupon-payment__content__coupon__applied[_ngcontent-%COMP%]{margin-top:12px}.coupon-payment__content__coupon__applied--coupon-value[_ngcontent-%COMP%]{margin-top:4px;border-radius:4px;border:dashed 1px #00e092;font-weight:700;font-size:10px;line-height:2.4;color:#00e092;padding:3px 10px;margin-right:8px}@media(min-width:768px){.coupon-payment__content__coupon__applied--coupon-value[_ngcontent-%COMP%]{font-size:12px;padding:3px 10px;margin-right:10px;align-items:center;display:flex}}@media(max-width:767px){.coupon-payment__content__coupon__applied--coupon-value[_ngcontent-%COMP%]{max-width:40%}}.coupon-payment__content__coupon__applied--info[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:1.71;color:#00e092}@media(max-width:767px){.coupon-payment__content__coupon__applied--info[_ngcontent-%COMP%]{font-size:12px;line-height:2}}.coupon-payment__content__coupon__applied--success-msg[_ngcontent-%COMP%]{margin-top:4px;font-weight:400;font-size:12px;line-height:2;color:#53565a;display:flex;align-items:center}@media(min-width:768px){.coupon-payment__content__coupon__applied--success-msg[_ngcontent-%COMP%]{font-size:14px}}.coupon-payment__content__coupon__input[_ngcontent-%COMP%]{margin-top:16px;border:solid 1px #e4e4e4;background-color:#f9f9f9;height:44px;border-radius:18px}@media(min-width:768px){.coupon-payment__content__coupon__input[_ngcontent-%COMP%]{border-radius:4px;border:solid 1px #e4e4e4}}.coupon-payment__content__coupon__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{color:#53565a;flex:1;border:none;padding:1px 14px;font-size:14px;font-weight:700;text-transform:uppercase;height:36px}@media(min-width:768px){.coupon-payment__content__coupon__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:10px 18px;font-size:16px}}.coupon-payment__content__coupon__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{font-weight:400;font-size:12px;color:#dfdfdf}.coupon-payment__content__coupon__input--btn[_ngcontent-%COMP%]{height:36px;background-color:#e0004d;font-weight:700;font-size:14px;line-height:1.71;color:#fff;text-align:center;border:none;border-radius:18px;padding:0 20px}@media(min-width:768px){.coupon-payment__content__coupon__input--btn[_ngcontent-%COMP%]{padding:0 32px;margin:1px 2px 1px 1px;height:36px;border-radius:4px;background-color:#e0004d}}.coupon-payment__content__coupon__input--btn[_ngcontent-%COMP%]:disabled{border:none;background-color:#f0f0f0;color:#999}.coupon-payment__content__coupon__error-msg[_ngcontent-%COMP%]{font-size:12px;font-weight:700;letter-spacing:0px;color:#f20522;padding-top:10px}.coupon-payment__content__coupon__status-msg[_ngcontent-%COMP%]{font-weight:400;font-size:14px;color:#53565a}@media(min-width:768px){.coupon-payment__content__coupon__status-msg[_ngcontent-%COMP%]{font-size:16px}}.coupon-payment__content__coupon__provider[_ngcontent-%COMP%]{font-size:14px;color:#999;padding-top:9px}@media(min-width:768px){.coupon-payment__content__coupon__provider[_ngcontent-%COMP%]{font-size:16px}}.coupon-payment__content__coupon__provider--label[_ngcontent-%COMP%]{font-weight:400}.coupon-payment__content__coupon__provider--name[_ngcontent-%COMP%]{font-weight:700;color:#53565a}.coupon-payment__content--img[_ngcontent-%COMP%]{padding-bottom:20px}@media(min-width:768px){.coupon-payment__content--img[_ngcontent-%COMP%]{height:185px}}.coupon-payment__content__action[_ngcontent-%COMP%]{padding:0;background-color:#fff;position:absolute;bottom:0;z-index:9}@media(min-width:768px){.coupon-payment__content__action[_ngcontent-%COMP%]{padding:20px 56px;position:static}}.coupon-payment__content__action--btn[_ngcontent-%COMP%]{font-weight:700;font-size:14px;letter-spacing:0;text-align:center;border-radius:0;background-color:#e0004d;color:#fff;height:36px;border:none}.coupon-payment__content__action--btn[_ngcontent-%COMP%]:disabled{background-color:#f0f0f0;color:#999}@media(min-width:768px){.coupon-payment__content__action--btn[_ngcontent-%COMP%]{border-radius:4px}}.payment-summary[_ngcontent-%COMP%]{font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#424242}.payment-summary__summary-item[_ngcontent-%COMP%]{font-weight:400}.payment-summary__summary-item__label[_ngcontent-%COMP%]{width:50%;font-size:14px}@media(min-width:768px){.payment-summary__summary-item__label[_ngcontent-%COMP%]{font-size:16px}}.payment-summary__summary-item__label-bold[_ngcontent-%COMP%]{width:50%;font-size:14px;font-weight:700}@media(min-width:768px){.payment-summary__summary-item__label-bold[_ngcontent-%COMP%]{font-size:16px}}.payment-summary__summary-item__value[_ngcontent-%COMP%]{width:50%;text-align:right;font-size:14px}@media(min-width:768px){.payment-summary__summary-item__value[_ngcontent-%COMP%]{font-size:16px}}.payment-summary__summary-item__value-bold[_ngcontent-%COMP%]{width:50%;text-align:right;font-size:14px;font-weight:700}@media(min-width:768px){.payment-summary__summary-item__value-bold[_ngcontent-%COMP%]{font-size:16px}}.payment-summary__summary-item__value-free[_ngcontent-%COMP%]{color:#00e092;width:50%;text-align:right;font-weight:700}.payment-summary__summary-total[_ngcontent-%COMP%]{border-top:solid .5px #dfdfdf;padding:15px 0;margin:15px 0 0}.payment-summary__summary-info[_ngcontent-%COMP%]{font-weight:400;font-stretch:normal;font-style:normal;letter-spacing:normal}.payment-summary__summary-info[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#05c3de;font-size:16px;margin:0 5px}.payment-summary__summary-info[_ngcontent-%COMP%] .info-content[_ngcontent-%COMP%]{color:#53565a;opacity:.7}.payment-summary__summary-info--text[_ngcontent-%COMP%]{line-height:1.29;background-color:#cce8f5;font-weight:400;font-size:12px;padding:8px 5px;display:flex}@media(min-width:768px){.payment-summary__summary-info--text[_ngcontent-%COMP%]{font-size:14px}}.padding-10[_ngcontent-%COMP%]{padding:10px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.payment-breakdown[_ngcontent-%COMP%]{padding-bottom:48px}@media(min-width:768px){.payment-breakdown[_ngcontent-%COMP%]{padding-bottom:0}}.border-top[_ngcontent-%COMP%]{border-top:solid .5px #dfdfdf}.coupon-provider[_ngcontent-%COMP%]{border-top:solid 1px #dfdfdf;border-radius:0;padding:20px 8px;margin:0 40px}.coupon-message[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:0px;text-align:left;color:#616161;margin-top:.5rem}.fee-detail[_ngcontent-%COMP%]{line-height:12px;margin-top:4px}.btn-patient[_ngcontent-%COMP%]{color:#e0004d;margin-left:1rem;cursor:pointer}@media(max-width:991px){.btn-patient[_ngcontent-%COMP%]{margin-left:0;line-height:1.5rem}}.arrow-icon[_ngcontent-%COMP%]{margin-left:2px;padding-bottom:5px;cursor:pointer}.text-truncate[_ngcontent-%COMP%]{white-space:pre;width:80%}.hospital-message[_ngcontent-%COMP%]{margin:0 48px 30px;background-color:#edf8fc;padding:16px;font-size:14px;font-family:Inter,"sans-serif";font-weight:400;text-align:left;line-height:19px;display:flex;color:#424242}.hospital-message[_ngcontent-%COMP%] .image-info[_ngcontent-%COMP%]{align-items:center;padding-right:12px;display:flex}.hospital-message[_ngcontent-%COMP%] .image-info[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:16px;min-height:16px}.hospital-message[_ngcontent-%COMP%] .text-info[_ngcontent-%COMP%]{color:#424242}']});let e=a;return e})();function We(e,a,t){return t.isServer()?new de(e,a,[{prefix:"assets/i18n/appointment",suffix:".json"}]):new se(e,a,[{prefix:"assets/i18n/appointment",suffix:".json?cb="+V.VERSION}])}var Jn=(()=>{let a=class a{};a.\u0275fac=function(n){return new(n||a)},a.\u0275mod=ot({type:a}),a.\u0275inj=Q({imports:[Mt,z,R,B,Dt,Ut,zt.forChild({loader:{provide:Nt,useFactory:We,deps:[nt,St,F,et]},isolate:!0}),re.forRoot({environment:V}),wt.forChild([{path:"",component:ve}])]});let e=a;return e})();
1export{Jn as PaymentSummaryModule,We as translateLoaderFactory};
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.