PageSourceSearch

https://www.certiverse.com/chunk-ISNC3QDO.js

js certiverse.com collected 2026-09-28 06:38:55 UTC 188,983 bytes, 485 lines download raw bytes

1import{a as ha,b as je,d as Ca,e as Oi,f as Zi,g as Ni,h as ga,i as fa,j as xa,k as _a,l as $i,m as st,n as qi,o as ya,p as ji}from"./chunk-LL5IH6HM.js";import{f as pa}from"./chunk-P4JJMY6A.js";import{a as Ao,b as Ee,c as Da}from"./chunk-ZKNZEQBK.js";import{a as va,b as Sa}from"./chunk-O7HPY3VG.js";import{D as ka,G as ba}from"./chunk-CXLSQGGA.js";import{$c as Xe,$d as vn,$i as Ii,Aa as x,Ab as tn,Ac as $e,Ba as _,Bb as ui,Bd as Cn,Be as Nt,Bi as et,Bk as Hn,C as Ho,Ca as xt,Cb as vt,Cc as sn,Ce as ki,Ck as Wn,D as Wo,Da as fe,Dc as R,Di as Tn,Dk as zi,E as O,Ea as xe,Ei as qe,Ej as Rn,Ek as Gn,Fa as k,Fi as ht,Fj as Fn,Ga as d,Gb as St,Gc as Me,Gj as Ai,Gk as Un,Ha as l,Hk as Qn,Hm as Li,Ia as w,Ib as on,Ic as Ci,Ik as Kn,Im as ca,Jc as Lt,Jk as Yn,Kb as nt,Kc as ln,Kk as Jn,Km as da,L as _e,Lc as cn,Ld as U,Lk as Xn,Ll as ta,M as de,Ma as li,Mb as pi,Mc as Be,Mj as Mo,Mk as Eo,Ml as ia,Na as ci,Nb as ee,Nc as Ie,Nd as _i,Nk as ea,Nl as Bi,O as ke,Oa as _t,Ob as Ge,Od as yi,Oe as bi,Ol as oa,Pa as H,Pd as gn,Pj as Pi,Pl as na,Qa as A,Qb as hi,Qd as Xr,Qj as Ri,R as si,Ra as m,Rc as gi,Rd as Q,Re as Di,S as Go,Sa as yt,Sb as nn,Sd as wo,Se as Ti,Ta as be,Tc as dn,Td as fn,U as ge,Ua as De,Uc as mn,Ud as xn,Vc as Ve,Vi as wn,Wc as at,Wd as rt,Wi as Mn,Wl as aa,Xa as Ne,Xc as fi,Xd as vi,Y as z,Yd as _n,Z as B,Za as Do,Zc as un,Zd as bt,Ze as wi,Zl as ra,_c as me,_d as yn,_e as Mt,_i as In,ab as p,ad as xi,b as Yt,bb as y,bc as an,be as Dt,c as pt,cb as T,cd as Ot,ce as Tt,ck as zn,db as Pe,dd as ue,de as wt,dk as Bn,fb as di,fe as oe,ga as Uo,gk as Rt,hj as En,i as le,ic as Te,ij as Ei,ik as Xt,in as ma,ja as bo,jb as Jo,jm as sa,jn as ua,k as Ze,kb as To,kj as Le,la as zt,lc as rn,lj as Ke,lm as se,m as ie,ma as Qo,me as Sn,n as q,nb as Bt,ne as Qe,ni as Jt,nk as Io,ob as Xo,oi as kn,ok as Vn,pa as r,pk as Ln,qb as Re,qe as pe,qj as P,qk as Fi,rb as en,ri as bn,rk as On,sa as V,sd as kt,se as ve,sk as Zn,sm as la,ta as N,ti as L,tj as An,tk as Nn,u as Je,ua as Ko,ub as h,ud as pn,ue as Si,ui as Mi,uk as $n,um as $t,v as Fe,va as re,vb as g,vc as ze,ve as he,vi as Dn,vk as qn,wa as ot,wb as W,wc as Ue,wj as Pn,wk as jn,xa as Yo,xb as Vt,xc as G,xd as hn,xm as Vi,ya as Z,yb as mi,yc as ye,ye as Zt,yi as Ce,zc as we}from"./chunk-SXONRALJ.js";import"./chunk-IHML2XVU.js";import"./chunk-TC4O2CWE.js";import{a as S,b,h as ri,j as Ye}from"./chunk-TWZW5B45.js";var $u=ri(Ao());var lt=class e{static pushCheckoutStepEvent(o,t,i){let n=t.storeExam.organizationName.toLowerCase(),a=t.storeExam.displayedCurrency?.currencyCode,u=t.storeExam.displayedCurrency?.priceAmount,s=b(S({event:o},i?{search_term:i}:{}),{organization_selected:n,exam_code:t.storeExam.storeExamCode,exam_name:t.storeExam.storeExamName,exam_location:t.storeExam.browserCountry?.countryName}),v=typeof a=="string"&&a.length>0&&typeof u=="number"?b(S({},s),{ecommerce:{currency:a,value:u,items:[{item_id:t.storeExam.storeExamCode,item_name:t.storeExam.storeExamName,item_brand:n}]}}):s;Xt.Push(v)}static buildPurchasePayload(o,t,i,n){let a=o.organizationName.toLowerCase(),u=t.payment?.currency??o.displayedCurrency?.currencyCode,s=t.payment?.subTotalAmountInCurrency??o.displayedCurrency?.priceAmount,f=b(S({},n?{search_term:n}:{}),{organization_selected:a,exam_code:o.storeExamCode,exam_name:o.storeExamName,exam_location:o.browserCountry?.countryName});return typeof u=="string"&&u.length>0&&typeof s=="number"?b(S({},f),{ecommerce:b(S({currency:u,value:s,transaction_id:t.payment?.vendorTransactionId??t.reservationId},i?{coupon:i}:{}),{items:[{item_id:o.storeExamCode,item_name:o.storeExamName,item_brand:a}]})}):f}static getPurchaseStorageKey(o){return`gtmPurchasePayload_${o}`}static firePurchaseFromStorage(o,t){let i=e.getPurchaseStorageKey(o),n=localStorage.getItem(i);if(localStorage.removeItem(i),!(!t||!n))try{let a=JSON.parse(n);Xt.Push(S({event:Rt.Purchase},a))}catch(a){}}};var Hi=class{constructor(o,t,i,n,a,u,s,f,v,D,I,E,$,te,J,ae,X,c,C,M,F,K,Y){this.loadingStoreExam=o,this.processing=t,this.showTestDeliveryLocation=i,this.isScheduleInvalid=n,this.showRequestAccommodationButton=a,this.pageHeaderHeight=u,this.stepperOrientation=s,this.stepperSelectedIndex=f,this.isStoreExamEligible=v,this.reservation=D,this.storeExamId=I,this.authorizationCode=E,this.hasMultipleLanguages=$,this.showSchedulingCalendar=te,this.showVerifyCompatibilityStep=J,this.systemValidationAcknowledgementChecked=ae,this.schedulingStepIndex=X,this.reviewStepIndex=c,this.storeExam=C,this.showPayment=M,this.isRescheduleReservation=F,this.isSecureBrowser=K,this.isLiveProctored=Y}};var qt=class{constructor(o,t,i,n){this.id=o,this.label=t,this.icon=i,this.type=n}};var ct=(function(e){return e[e.EarlyMorning=0]="EarlyMorning",e[e.Evening=1]="Evening",e[e.DayTime=2]="DayTime",e})(ct||{});var He=class{constructor(o,t,i,n,a,u,s){this.showPaymentCodeDesc=o,this.paymentCodeTitle=t,this.discountAmount=i,this.amountDue=n,this.currency=a,this.expirationDate=u,this.promoCode=s}};var Po=class{constructor(o,t,i,n,a,u,s,f){this.error=o,this.processing=t,this.checkout=i,this.scheduling=n,this.paymentMethods=a,this.testCenterSessions=u,this.selectedPaymentMethod=s,this.countries=f}},Ro=class{constructor(o,t,i,n,a,u,s,f,v,D,I,E,$,te,J,ae,X,c,C){this.selectedStepIndex=o,this.organization=t,this.storeExam=i,this.reservation=n,this.rescheduledReservation=a,this.isRescheduleReservation=u,this.storeExamLoaded=s,this.isStoreExamEligible=f,this.showSchedulingCalendar=v,this.authorizationCode=D,this.rescheduleInfoMessage=I,this.scheduleDate=E,this.selectedAccommodationRequest=$,this.paymentCode=te,this.showReimbursementField=J,this.personCustomFields=ae,this.selectedCountry=X,this.selectedTimeZone=c,this.autoApplyPromoCode=C}},It=class{constructor(o,t,i){this.scheduleStartDate=o,this.scheduleEnd
1Date=t,this.externalSchedulingSystemSlotId=i}},ei=class{constructor(o,t,i,n){this.id=o,this.code=t,this.organizationName=i,this.dashboardTabs=n}},Wi=class{constructor(o,t,i,n,a){this.name=o,this.tabType=t,this.order=i,this.sections=n,this.links=a}},Gi=class{constructor(o,t,i){this.name=o,this.content=t,this.order=i}},Ui=class{constructor(o,t,i){this.label=o,this.url=t,this.order=i}},Fo=class{constructor(o,t){this.schedulingData=o,this.calendarData=t}},ti=class{constructor(o,t,i,n){this.selectedDate=o,this.selectedTimeZone=t,this.windowStartDate=i,this.windowEndDate=n,this.availableLinks=[new qt(0,"Early Morning","routine",ct.EarlyMorning),new qt(1,"Daytime","light_mode",ct.DayTime),new qt(2,"Evening","dark_mode",ct.Evening)],this.timeSlots=[],this.setSelectedDate=a=>{this.selectedDate=a,this.setWindowDatesInTimeZone()},this.setActiveLink=a=>{this.activeLink=this.availableLinks.find(u=>u.id===a)},this.addTimeSlots=a=>{this.timeSlots.push(...a)},this.clearTimeSlots=()=>{this.timeSlots=[]},this.setSelectedTimeZone=a=>{this.selectedTimeZone=a,this.setWindowDatesInTimeZone(),this.selectedDate=this.selectedDate.setZone(a.ianaTimeZoneName)},this.setWindowDatesInTimeZone=()=>{this.selectedTimeZone&&(this.windowStartDateInTimeZone=Q.fromISO(this.windowStartDate.toISOString()).setZone(this.selectedTimeZone.ianaTimeZoneName).set({hour:this.selectedDate.hour,minute:this.selectedDate.minute,second:0,millisecond:0}),this.windowEndDateInTimeZone=Q.fromISO(this.windowEndDate.toISOString()).setZone(this.selectedTimeZone.ianaTimeZoneName))},this.activeLink=this.availableLinks.find(a=>a.type===ct.DayTime),this.setWindowDatesInTimeZone()}},zo=class{constructor(o,t,i,n,a,u,s){this.isScheduleSaved=o,this.schedulingWindowStartDate=t,this.schedulingWindowEndDate=i,this.adjustedDeliveryStartDate=n,this.eligibilityWindows=a,this.selectedSlot=u,this.bypassScheduleInAdvanceRules=s}},Qi=class{constructor(o,t){this.startDate=o,this.endDate=t}},Ki=class{constructor(o,t,i){this.reservationId=o,this.scheduledDateUtc=t,this.scheduledTimeZone=i}},Et=class{constructor(o,t,i,n,a){this.navigateToStore=o,this.storeExamId=t,this.externalSchedulingSystemSlotId=i,this.loadAvailableTimeSlots=n,this.additionalTimeInMinutes=a}},Yi=class{constructor(o,t,i,n,a){this.isValid=o,this.title=t,this.errorMessage=i,this.buttonLabel=n,this.successCallback=a}},Ji=class{constructor(o,t){this.customFieldId=o,this.customFieldValue=t}};function Ta(){return new Po(null,!1,new Ro(je.Scheduling,new ei(null,null,null,null),new Oi(null,null,null,null,null,null,0,0,!1,!1,[],new Zi(null,null,!1,new Date,null,null,null),[],new Ni(!1,0,!1,0),null,null,null,!1,!1,[],[],new $i(!1,null,[],!1,null),!1,null,null,null,null,null,null,null,null),null,null,!1,!1,!1,!1,null,null,new It(new Date,new Date,""),null,new He(!1,null,0,0,""),!1,[],null,null,null),new Fo(new zo(!1,new Date,new Date,null,[],null,!1),new ti(Q.now(),null,new Date,new Date)),null,null,null,[])}var ii=class{constructor(o,t,i,n,a,u){this.startDate=o,this.endDate=t,this.timeZone=i,this.externalSchedulingSystemProctorIds=n,this.isAvailable=a,this.isVisible=u,this.isSameSlotDate=s=>{let f=this.getSlotId(s);return this.id===f},this.generateId=()=>{if(!this.startDate)return;let s=Q.fromISO(new Date(this.startDate).toISOString());this.id=this.getSlotId(s)}
1,this.getSlotId=s=>s.setLocale("en-US").toLocaleString(),this.getDateTimeInTimeZone=s=>!s||!this.timeZone?null:Q.fromISO(s,{zone:this.timeZone.ianaTimeZoneName,keepLocalTime:!0}),this.generateId(),this.startDateTime=this.getDateTimeInTimeZone(this.startDate),this.endDateTime=this.getDateTimeInTimeZone(this.endDate)}};function wa(e,o){return!e||e.length===0?[new ii(null,null,null,null,!1,!1)]:e.filter(t=>Q.fromISO(t.startDate,{zone:t.timeZone.ianaTimeZoneName,keepLocalTime:!0}).day===o.day).map(es)}function es(e){return new ii(e.startDate,e.endDate,e.timeZone,e.externalSchedulingSystemProctorIds,!0,!0)}function Ma(e){return e.map(is)}function Ia(e,o,t,i){let n=Q.fromJSDate(t??o).setZone(i.ianaTimeZoneName);if(e<n)return n.plus({hours:1}).set({minute:0,seconds:0,milliseconds:0});if(!(e.hasSame(n,"day")&&e.hasSame(n,"month")&&e.hasSame(n,"year")))return e.set({hour:0,minute:0,seconds:0,milliseconds:0});let u=ts(e,o,t,i.ianaTimeZoneName);return Q.fromISO(e.toISO()).setZone(i.ianaTimeZoneName).set({hour:u,minute:0,seconds:0,milliseconds:0})}var Ea=(e,o)=>{if(!e||!o)return!1;let t=Q.fromJSDate(o).setZone(e.zoneName);return e.hasSame(t,"day")&&e.hasSame(t,"month")&&e.hasSame(t,"year")},ts=(e,o,t,i)=>{let n=Q.now().setZone(i).hour,u=Q.fromJSDate(o).setZone(i).hour,s=t??o;return Ea(e,s)&&(u=Q.fromJSDate(s).setZone(i).hour),u>n?u:n+1};function Aa(e,o,t){if(Ea(e,o))return Q.fromJSDate(o).setZone(t.ianaTimeZoneName);let n=Q.fromISO(e.toISO()).setZone(t.ianaTimeZoneName);return n=n.set({hour:23,minute:59,second:59,millisecond:999}),e>n&&(n=n.plus({days:1})),n}function Pa(e,o){e.forEach(t=>{let i=new Date(t.startDate).getHours();switch(o.type){case ct.EarlyMorning:t.isVisible=i>=0&&i<6;break;case ct.Evening:t.isVisible=i>=18&&i<=23;break;case ct.DayTime:t.isVisible=i>=6&&i<18;break;default:throw new Error("Invalid time slot type")}})}function Ra(e){let o=new Date;if(e.bypassSchedulingValidation)return o;o.setHours(o.getHours()+e.leadTimeInDays*24);let t=new Date(e.deliveryType.startDate);return t>o?t:o}function is(e){return new Qi(new Date(e.startDate),new Date(e.endDate))}function Fa(e,o,t){let i=e.deliveryType,n=e.testCenterSessions?.map(os)??[],a=Intl.DateTimeFormat().resolvedOptions().timeZone,u=e.browserCountry?e.browserCountry:t.countries.find(s=>s.timeZones.some(f=>f.ianaTimeZoneName===a));return new Oi(e.organizationName,e.organizationId,e.storeExamId,e.storeExamName,e.storeExamDescription,e.storeExamCode,e.durationInMinutes,e.leadTimeInDays,e.displayDomainTree,e.hasPerformanceBasedTest,e.currencies.map(s=>new Ca(s.currencyCode,s.priceAmount)),new Zi(i.deliveryTypeId,bn[i.deliveryType],i.isScheduled,i.deliveryWindow.startDate,Bn(i.deliveryType),Sa(i.deliveryType),va(i.deliveryType),i.deliveryWindow.endDate),e.paymentMethods,new Ni(e.retakeRules.retakesAllowed,e.retakeRules.waitTimeBetweenRetakesInDays,e.retakeRules.retakesAllowedIfExamPassed,e.retakeRules.waitTimeBetweenRetakesIfExamPassedInDays,e.retakeRules.maximumNumberOfAttempts,e.retakeRules.maximumNumberOfDaysForMaximumNumberOfAttempts),e.termsAndConditions,o,e.eligibilityProvider,e.isPracticeExam,e.isPriceHidden,ns(e.languages),e.demographicFields.map(s=>new fa(s.id,s.label,s.fieldType,ht[s.fieldDataType],s.isRequired,s.options,s.isOrganizationCustomField,s.order)),new $i(e.accommodationRequests?.processAccommodationInCertiverseEnabled??!1,e.accommodationRequests?.accommodationHtmlRequestForm,e.accommodationRequests?.accommodationOptions??[],e.accommodationRequests?.processAccommodationInCertiverseEnabled??!1,e.accommodationRequests?.countryWithoutLanguageAdditionalTimeInMinutes),e.hasActivePromoCodes,e.hasAutoApplyDomain,e.storeExamGroupHeader?new xa(e.storeExamGroupHeader.id,e.storeExamGroupHeader.name,e.storeExamGroupHeader.order):null,e.testCenterGroupId,e.testCenterId,e.testCenterLocationCountryCode,n,new qi(u.countryCode,u.countryName,u.isMilitaryTime,u.isEmbargoed,u.primaryCurrencyCodeIso,u.timeZones.map(s=>new ji(s.ianaTimeZoneName,s.displayName,s.dstDisplayName,s.shortDisplayName,s.shortDstDisplayName,s.utcOffset,s.hasDaylightSavings))),e.bookingException?new ya(e.bookingException.exceptionId,e.bookingException.bypassOptions,new Date(e.bookingException.expirationDateUtc)):null)}function os(e){return new _a(e.id,e.numberOfSeats,e.numberOfTakenSeats,new Date(e.startDateUtc),e.startDateConvertedTimeZone,e.timeZone,e.locationWindowsTimeZoneDisplayName,e.timeZoneOffsetInMinutes)}function ns(e){let o=[];for(let t of e)o.push(new ga(t.name,t.value));return o}function za(e){return e.map(as)}function as(e){return new Ji(e.customFieldId,e.customFieldValue)}function Ba(e){return new Wi(e.name,wn[e.tabType],e.order,e.sections.map(o=>rs(o)),e.links.map(o=>ss(o)))}function rs(e){return new Gi(e.name,e.content,e.order)}function ss(e){return new Ui(e.label,e.url,e.order)}function dt(e,o){return o?e:e-1}var Va=(e,o)=>{let t=e;if(o?.length>0){let n=new Date(o[0].substitutionValue);t=e.replace(o[0].substitutionName,on(n,"MM/dd/yy h:mm a","en-US"))}return t};function Xi(e,o,t){return o&&(t||e.accommodationRequests.processAccommodationInCertiverseEnabled)?e.durationInMinutes+o:e.durationInMinutes}var La=(e,o)=>
1{o.timeZones.forEach(t=>{let i=e.find(n=>n.ianaTimeZoneName===t.ianaTimeZoneName);t.setDisplayedNameBasedOnDST(i?.isDaylightSavings)})};var eo=class{constructor(o,t,i,n,a,u){this.paymentMethod=o,this.paymentMethodIcon=t,this.paymentMethodLabel=i,this.paymentMethodDescription=n,this.showPaymentMethodDescription=a,this.showPaymentCode=u}};function Bo(e,o){return e.paymentMethods.map(t=>{let i=o===t,n=t;return new eo(n,Pi(n),ls(n),Ri(n),i,i&&n===L.Voucher)})}function jt(e){return e.find(o=>o===L.CreditCard)!=null}var ls=e=>{switch(e){case L.Voucher:return P.MarketBookingReviewPaymentVoucherLabel;case L.CreditCard:return P.MarketBookingReviewPaymentCreditCardLabel;default:return Mi[e]}};var oi=class{constructor(o,t,i,n,a,u,s){this.reservationId=o,this.reservationCode=t,this.deliveryType=i,this.reservationStatus=n,this.transactionDateUtc=a,this.scheduledDateUtc=u,this.payment=s}};var to=class{constructor(o,t,i,n,a){this.paymentMethod=o,this.subTotalAmountInCurrency=t,this.currency=i,this.vendorTransactionId=n,this.checkoutSessionUri=a,this.totalAmountPaid=t,this.shouldNavigateToPaymentScreen=o===L.CreditCard&&this.totalAmountPaid>0}};var Oa=(e,o)=>b(S({},e),{processing:o}),Za=(e,o)=>b(S({},e),{error:o,processing:!1}),Na=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{organization:new ei(o.id,o.code,o.organizationName,o.dashboardTabs.map(t=>Ba(t)))})}),$a=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{personCustomFields:za(o)})}),qa=(e,o)=>o?b(S({},e),{checkout:b(S({},e.checkout),{isRescheduleReservation:!0,rescheduledReservation:new Ki(o.reservationId,o.scheduledDateConvertedTimeZone,o.transactionWindowsTimeZoneDisplayName)})}):e,ja=(e,o)=>o?b(S({},e),{processing:!1,checkout:b(S({},e.checkout),{reservation:new oi(o.reservationId,o.reservationCode,o.deliveryType,o.reservationStatus,o.transactionDateUtc,o.scheduledDateUtc,o.payment?new to(o.payment.paymentMethod,o.payment.subTotalAmountInCurrency,o.payment.currencyCode,o.payment.vendorTransactionId,o.payment.checkoutSessionUri):null)})}):e,Ha=(e,o)=>o?b(S({},e),{processing:!1,checkout:b(S({},e.checkout),{reservation:new oi(o.reservationId,o.reservationCode,o.deliveryType,o.reservationStatus,o.transactionDateUtc,o.scheduledDateUtc)})}):e,Wa=(e,o,t)=>{let i=Fa(o,t.settings.settings.storage.url,e),n=Ra(i),a=i.accommodationRequests,u=a.processAccommodationInCertiverseEnabled&&a.countryWithoutLanguageAdditionalTimeInMinutes?new st(Ee.CountryWithoutLanguageFixedTime,null,"Language Time Accommodation",null,i.accommodationRequests.countryWithoutLanguageAdditionalTimeInMinutes):e.checkout.selectedAccommodationRequest,s=new Date(n);s.setHours(0,0,0,0);let f=i.deliveryType.endDate?new Date(i.deliveryType.endDate):null,v=new ti(Q.fromISO(n.toISOString()),null,s,f);return b(S({},e),{checkout:b(S({},e.checkout),{storeExam:i,selectedAccommodationRequest:u,selectedStepIndex:dt(i.deliveryType.isLiveProctored?je.SystemVerification:je.Scheduling,i.deliveryType.isLiveProctored)}),scheduling:b(S({},e.scheduling),{schedulingData:b(S({},e.scheduling.schedulingData),{schedulingWindowStartDate:n,schedulingWindowEndDate:f,eligibilityWindows:[]}),calendarData:v}),paymentMethods:Bo(i,null),testCenterSessions:i.testCenterSessions})},Ga=(e,o)=>{let t=o&&!e.checkout.storeExam.deliveryType.isScheduled;return b(S({},e),{checkout:b(S({},e.checkout),{storeExam:b(S({},e.checkout.storeExam),{deliveryType:b(S({},e.checkout.storeExam.deliveryType),{endDate:t?new Date(o):e.checkout.storeExam.deliveryType.endDate})})})})},Ua=(e,o)=>(e.scheduling.calendarData.setActiveLink(o),S({},e)),Qa=(e,o)=>{o=o??[];let t=o.length>0,i=!e.scheduling.schedulingData.schedulingWindowEndDate||e.scheduling.schedulingData.schedulingWindowStartDate<e.scheduling.schedulingData.schedulingWindowEndDate,n=o.sort((u,s)=>new Date(u.startDate)>new Date(s.startDate)?1:-1),a=i?t?n.find(u=>new Date(u.startDate)>=e.scheduling.schedulingData.schedulingWindowStartDate)?.startDate??e.scheduling.schedulingData.schedulingWindowStartDate:e.scheduling.schedulingData.schedulingWindowStartDate:null;return e.scheduling.calendarData.setSelectedDate(a?Q.fromISO(new Date(a).toISOString()):null),b(S({},e),{processing:!1,scheduling:b(S({},e.scheduling),{schedulingData:b(S({},e.scheduling.schedulingData),{eligibilityWindows:Ma(o)})})})},Ka=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{authorizationCode:o})}),Ya=(e,o)=>(e.scheduling.calendarData.setSelectedDate(o),S({},e)),Ja=(e,o)=>{let t=new Date(o),i=Q.fromJSDate(t);return e.scheduling.calendarData.setSelectedDate(i),b(S({},e),{scheduling:b(S({},e.scheduling),{schedulingData:b(S({},e.scheduling.schedulingData),{adjustedDeliveryStartDate:t})})})},Xa=(e,o)=>
1{let t=o?new Date(o):e.scheduling.schedulingData.schedulingWindowEndDate;return b(S({},e),{scheduling:b(S({},e.scheduling),{schedulingData:b(S({},e.scheduling.schedulingData),{schedulingWindowEndDate:t})})})},er=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{rescheduleInfoMessage:o})}),tr=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{isStoreExamEligible:o})}),ir=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{storeExamLoaded:o})}),or=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{showSchedulingCalendar:o})}),nr=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{selectedStepIndex:o})}),ar=(e,o)=>b(S({},e),{scheduling:b(S({},e.scheduling),{schedulingData:b(S({},e.scheduling.schedulingData),{isScheduleSaved:o})})}),rr=(e,o)=>b(S({},e),{scheduling:b(S({},e.scheduling),{schedulingData:b(S({},e.scheduling.schedulingData),{selectedSlot:o})})}),sr=(e,o)=>{let t=wa(o,e.scheduling.calendarData.selectedDate);return e.scheduling.calendarData.addTimeSlots(t),b(S({},e),{processing:!1})},lr=(e,o)=>b(S({},e),{paymentMethods:Bo(e.checkout.storeExam,o),selectedPaymentMethod:o}),cr=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{showReimbursementField:o})}),dr=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{paymentCode:o})}),mr=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{autoApplyPromoCode:o})}),ur=(e,o)=>{let t=e.checkout.storeExam.currencies.find(n=>n.currencyCode===Dn.USD),i=e.checkout.storeExam.currencies.find(n=>n.currencyCode===o)||t;return b(S({},e),{checkout:b(S({},e.checkout),{storeExam:b(S({},e.checkout.storeExam),{displayedCurrency:i})})})},pr=(e,o)=>b(S({},e),{processing:!1,countries:o.map(t=>new qi(t.countryCode,t.countryName,t.isMilitaryTime,t.isEmbargoed,t.primaryCurrencyCodeIso,t.timeZones.map(i=>new ji(i.ianaTimeZoneName,i.displayName,i.dstDisplayName,i.shortDisplayName,i.shortDstDisplayName,i.utcOffset,i.hasDaylightSavings))))}),hr=(e,o)=>o===null?b(S({},e),{checkout:b(S({},e.checkout),{scheduleDate:new It(null,null,null)})}):b(S({},e),{checkout:b(S({},e.checkout),{scheduleDate:o})}),Cr=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{selectedAccommodationRequest:o})}),gr=(e,o)=>(e.scheduling.schedulingData.selectedSlot&&o.snackBar.open("Updated exam duration requires a new appointment time to be selected.","Dismiss",{duration:15e3}),e.scheduling.calendarData.clearTimeSlots(),b(S({},e),{scheduling:b(S({},e.scheduling),{schedulingData:b(S({},e.scheduling.schedulingData),{selectedSlot:null})})})),fr=(e,o)=>b(S({},e),{checkout:b(S({},e.checkout),{selectedCountry:o})}),xr=(e,o)=>(e.scheduling.calendarData.setSelectedTimeZone(o),b(S({},e),{checkout:b(S({},e.checkout),{selectedTimeZone:o})})),_r=(e,o)=>{if(e.checkout.storeExam.accommodationRequests.accommodationOptions.some(n=>n.id===o.id))return e;let i=[...e.checkout.storeExam.accommodationRequests.accommodationOptions,o];return b(S({},e),{checkout:b(S({},e.checkout),{storeExam:b(S({},e.checkout.storeExam),{accommodationRequests:b(S({},e.checkout.storeExam.accommodationRequests),{accommodationOptions:i})})})})};var Ar=ri(Xr());var ce=class{constructor(o,t,i,n){this.isValid=o,this.shouldCancelCheckout=t,this.error=i,this.substitutionData=n}},mt=class{constructor(o,t,i,n,a,u,s){this.errorTitle=o,this.errorTitleLocalizationCode=t,this.defaultErrorMessage=i,this.localizationErrorCode=n,this.redirectToDashboard=a,this.errorValueSubstitutions=u,this.buttonLabel=s}};var io=class{constructor(o,t,i,n,a,u,s){this.adjustedDeliveryEndDate=o,this.accommodationAdditionalMinutes=t,this.accommodationType=i,this.accommodationDescription=n,this.maxNumberOfDaysToScheduleExamInAdvanced=a,this.numberOfDaysToRescheduleExam=u,this.rescheduleInfoMessage=s}},oo=class{constructor(o,t,i,n,a,u,s){this.schedulingWindows=o,this.unscheduledAdjustedDeliveryEndDate=t,this.authorizationCode=i,this.accommodationId=n,this.accommodationCode=a,this.accommodationAdditionalMinutes=u,this.accommodationDescription=s}},no=class{constructor(o){this.adjustedDeliveryStartDate=o}};var ao=class{constructor(o,t,i,n,a,u,s,f,v,D,I,E){this.adjustedDeliveryStartDate=o,this.adjustedDeliveryEndDate=t,this.accommodationAdditionalMinutes=i,this.accommodationType=n,this.accommodationCode=a,this.accommodationId=u,this.accommodationDescription=s,this.maxNumberOfDaysToScheduleExamInAdvanced=f,this.numberOfDaysToRescheduleExam=v,this.authorizationCode=D,this.unscheduledAdjustedDeliveryEndDate=I,this.schedulingWindows=E}};var yr=e=>{let o=e.storeExam(),t=new Hn(o.storeExamId);return Ze(e.storeExamMarketService.validatePrerequisite(t).pipe(de(i=>
1{if(!i.isValid){let n=new mt(null,null,i.error,i.errorLocalizationCode),a=new ce(!1,!1,n);return le(a)}return le(new ce(!0))}),Fe(i=>(e.cancelCheckout(),e.handleError(i),le(new ce(!1))))))};var vr=e=>{if(!e.isRescheduleReservation())return Promise.resolve(new ce(!0));let o=e.storeExam(),t=e.route.snapshot.params.rescheduledReservationId,i=new jn(o.storeExamId,t);return Ze(e.storeExamMarketService.validateReschedule(i).pipe(de(n=>{if(!n.isValid&&!n.canInvalidContinueBooking){let f=new mt("Booking cannot be rescheduled",P.MarketErrorVoucherRescheduleLabel,n.error,n.errorLocalizationCode,!0,n.errorValueSubstitutions),v=new ce(!1,!1,f);return le(v)}let a=`Exams can be scheduled up to ${n.maxNumberOfDaysToScheduleExamInAdvanced} days in advance, and cannot be rescheduled more than ${n.numberOfDaysToRescheduleExam} days from original transaction date-time.`,u=new io(n.adjustedDeliveryEndDate,n.accommodationAdditionalMinutes,n.accommodationType,n.accommodationDescription,n.maxNumberOfDaysToScheduleExamInAdvanced,n.numberOfDaysToRescheduleExam,a),s=new ce(!0,!1,null,u);return le(s)}),Fe(n=>{throw e.cancelCheckout(),e.handleError(n),n})))};function cs(e,o){if(e&1){let t=H();d(0,"h2",0),p(1),h(2,"translate"),l(),d(3,"form",1),A("ngSubmit",function(){z(t);let n=m();return B(n.continue())}),d(4,"mat-dialog-content")(5,"p",2),p(6),h(7,"translate"),l(),d(8,"mat-form-field",3)(9,"mat-label"),p(10),h(11,"translate"),l(),w(12,"input",4),l()(),d(13,"mat-dialog-actions")(14,"button",5),A("click",function(){z(t);let n=m();return B(n.close())}),p(15),h(16,"translate"),l(),d(17,"button",6),h(18,"async"),p(19),h(20,"translate"),l()()()}if(e&2){let t=m();r(),y(g(2,9,t.localizationId.MarketBookingEligibilityAuthCodeLabel)),r(2),k("formGroup",t.form),r(3),T(" ",g(7,11,t.localizationId.MarketBookingEligibilityAuthCodeInformation)," "),r(4),y(g(11,13,t.localizationId.MarketBookingEligibilityAuthCodeField)),r(4),Z("size",t.buttonSize.Small),r(),T(" ",g(16,15,t.localizationId.CommonButtonBackToStore)," "),r(2),k("disabled",g(18,17,t.enableContinueButton$)===!1),Z("size",t.buttonSize.Small),r(2),T(" ",g(20,19,t.localizationId.CommonButtonContinue)," ")}}var Sr=(()=>{class e{constructor(t){this.dialogRef=t,this.form=new $e({authorizationCode:new R("",[G.required])}),this.buttonSize=Le,this.localizationId=P,this.viewModel$=q([this.form.controls.authorizationCode.valueChanges.pipe(_e(null))]).pipe(ie(([i])=>new Vo(!!i))),this.close=()=>{this.dialogRef.close()},this.continue=()=>{this.dialogRef.close(this.form.controls.authorizationCode.value)}}ngOnInit(){this.enableContinueButton$=this.form.controls.authorizationCode.valueChanges.pipe(ie(t=>!!t),_e(!1))}static{this.\u0275fac=function(i){return new(i||e)(V(bt))}}static{this.\u0275cmp=N({type:e,selectors:[["market-exam-authorization-code-dialog"]],standalone:!1,decls:2,vars:3,consts:[["mat-dialog-title","",1,"authorization-code-title"],[3,"ngSubmit","formGroup"],[1,"body--large"],["appearance","outline",1,"authorization-code-form"],["matInput","","type","text","formControlName","authorizationCode"],["mat-stroked-button","","type","button",3,"click"],["mat-flat-button","","type","submit",3,"disabled"]],template:function(i,n){if(i&1&&(x(0,cs,21,21),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[ue,Dt,wt,Tt,me,Ve,Qe,Me,Ue,ye,we,Ie,Be,ee,U],styles:[".authorization-code-form[_ngcontent-%COMP%]{width:100%;margin-top:16px}"],changeDetection:0})}}return e})(),Vo=class{constructor(o){this.enableContinueButton=o}};var kr=e=>Ye(null,null,function*(){let o=e.storeExam(),t=null,i=o.eligibilityProvider,n=Ce[i];switch(n){case Ce.AuthorizationCode:if(e.isRescheduleReservation())break;let u=yield ms(e);if(!u)return Promise.resolve(new ce(!1,!0));t=new Io(o.storeExamId,u);break;case Ce.Litmos:case Ce.Skilljar:case Ce.Moodle:case Ce.PartnerApi:case Ce.Certmetrics:case Ce.Docebo:case Ce.Cornerstone:case Ce.ClientApi:case Ce.ThoughtIndustries:case Ce.Schoox:case Ce.LearnUpon:let s=e.route.snapshot.params.rescheduledReservationId;t=new Io(o.storeExamId,null,s);break;case Ce.None:break;default:throw new Error(`${n}: Eligibility provider not implemented`)}return yield ds(e,t)}),ds=(e,o)=>
1o?Ze(e.storeExamMarketService.validateEligibility(o).pipe(de(t=>{if(!t.isEligible){let a=new mt(null,null,t.error,t.errorLocalizationCode,!1,t.errorValueSubstitutions),u=new ce(!1,!1,a);return le(u)}t.eligibilityAccommodation&&us(e,t.eligibilityAccommodation);let i=new oo(t.schedulingWindows,t.unscheduledAdjustedDeliveryEndDate,o.eligibilityId,t.eligibilityAccommodation?.id,t.eligibilityAccommodation?.code,t.eligibilityAccommodation?.additionalTimeInMinutes,t.eligibilityAccommodation?.description),n=new ce(!0,!1,null,i);return le(n)}),Fe(t=>{throw e.handleError(t),t}))):Promise.resolve(new ce(!0)),ms=e=>{let o=e.dialog.open(Sr,{disableClose:!0,maxWidth:"75ch",panelClass:"dark"});return Ze(o.afterClosed().pipe(O()))},us=(e,o)=>{let t=new st(o.id,o.code,o.description,o.candidateInstructions,o.additionalTimeInMinutes);e.appendStoreExamAccommodationRequestOption(t)};var br=e=>{let o=e.storeExam(),t=e.route.snapshot.params.rescheduledReservationId;if(o.bookingException&&new Date(o.bookingException.expirationDateUtc)>new Date&&o.bookingException.bypassOptions.some(a=>a===Mn.BypassRetakeRules))return Promise.resolve(new ce(!0));let n=new Vn(o.storeExamId,t);return Ze(e.storeExamMarketService.validateRetakes(n).pipe(de(a=>{if(!a.isValid&&!a.canInvalidContinueBooking){let f=e.localizationStore.translate(P.CommonButtonContinue),v=new mt(a.errorTitle,a.errorTitleLocalizationCode,a.error,a.errorLocalizationCode,a.redirectToDashboard,a.errorValueSubstitutions,f),D=new ce(!1,!1,v);return le(D)}let u=new no(a.adjustedDeliveryStartDate),s=new ce(!0,!1,null,u);return le(s)}),Fe(a=>{throw e.cancelCheckout(),e.handleError(a),a})))};var Dr=e=>Ye(null,null,function*(){let o=yield yr(e);if(!o.isValid)return o;let t=yield vr(e);if(!t.isValid)return t;let i=yield kr(e);if(!i.isValid)return i;let n=yield br(e);if(!n.isValid)return n;let a=i.substitutionData?.accommodationAdditionalMinutes??t.substitutionData?.accommodationAdditionalMinutes,u=i.substitutionData?.accommodationId??null,s=i.substitutionData?.accommodationDescription??t.substitutionData?.accommodationDescription,f=i.substitutionData?.accommodationCode??null,v=new ao(n.substitutionData?.adjustedDeliveryStartDate,t.substitutionData?.adjustedDeliveryEndDate,a,t.substitutionData?.accommodationType,f,u,s,t.substitutionData?.maxNumberOfDaysToScheduleExamInAdvanced,t.substitutionData?.numberOfDaysToRescheduleExam,i.substitutionData?.authorizationCode,i.substitutionData?.unscheduledAdjustedDeliveryEndDate,i.substitutionData?.schedulingWindows);return new ce(!0,!1,null,v)});var so=(e,o)=>{if(!e)return;let t=o.storeExam();if(o.updateStoreExamDisplayedCurrency(e.primaryCurrencyCodeIso),!t.deliveryType.isScheduled)return hs(e,o,t);ps(e,o,t)},ps=(e,o,t)=>{o.applicationDataService.getCountries(e.countryCode,new Date).pipe(O()).subscribe(i=>{let n=i.find(s=>s.countryCode===e.countryCode);La(n.timeZones,e),o.setSelectedCountry(e),o.loadTimeZone();let a=o.selectedAccommodationRequest();if(!(a&&a.id!==Ee.CountryWithoutLanguageFixedTime)&&t.accommodationRequests.processAccommodationInCertiverseEnabled&&t.accommodationRequests.isCountryWithoutLanguageEnabled)return Tr(e.countryCode,o);o.refreshScheduledExamSlots(o.selectedAccommodationRequest()?.additionalTimeInMinutes)})},hs=(e,o,t)=>{o.setSelectedCountry(e);let i=o.selectedAccommodationRequest();if(!(i&&i.id!==Ee.CountryWithoutLanguageFixedTime)&&t.accommodationRequests.processAccommodationInCertiverseEnabled&&t.accommodationRequests.isCountryWithoutLanguageEnabled)return Tr(e.countryCode,o)},Tr=(e,o)=>{o.updateTimeAccommodationForCountryWithoutLanguage(e)};var wr=e=>Ye(null,null,function*(){e.updateProcessing(!0);let o=yield Ze(gs(e));o&&e.onOrganizationLoaded(o),yield Ze(q([fs(e),xs(e),e.applicationDataService.getCountries()]).pipe(de(([t,i,n])=>(t&&e.onRescheduledReservationLoaded(t),e.onCountriesLoaded(n),Cs(e,i,o))),Fe(t=>{throw e.handleError(t),t})))}),Cs=(e,o,t)=>{e.onStoreExamLoaded(o),_s(e,o),ys(e,o);let i=!!t,n=i?le(t):e.organizationMarketService.getById(o.organizationId);return q([e.personProfileService.getPersonCustomFields(o.organizationId),n]).pipe(ke({next:([a,u])=>{e.onPersonCustomFieldsLoaded(a),i||e.onOrganizationLoaded(u),Ss(e),vs(e,o)},error:e.handleError}),Fe(a=>{throw e.handleError(a),a}))},gs=e=>{let o=e.route.snapshot.params.organizationLandingPageCode;return o?e.organizationMarketService.get(o).pipe(Fe(t=>
1(e.snackBar.open("The Organization code is not valid.","Dismiss",{duration:5e3}),e.router.navigate(["/"]),le(null)))):le(null)},fs=e=>{let o=e.route.snapshot.params.rescheduledReservationId;return o?e.personExamReservationService.getPersonExamReservations([],o).pipe(de(t=>{let i=t.reservations.find(n=>n.reservationId==o);return le(i)})):le(null)},xs=e=>{let o=new On(e.route.snapshot.params.organizationLandingPageCode,e.route.snapshot.params.storeExamId,e.route.snapshot.params.storeExamCode,e.route.snapshot.params.testCenterGroupId,e.route.snapshot.params.testCenterId,e.route.snapshot.params.deliveryCountryCode);return e.storeExamMarketService.getBookableExam(o)},_s=(e,o)=>{if(o.paymentMethods.length==1)return e.setPaymentMethod(L[o.paymentMethods[0]]);if(jt(o.paymentMethods))return e.setPaymentMethod(L.CreditCard)},ys=(e,o)=>{if(!e.route.snapshot.params.testCenterId)return;let t=e.countries().find(i=>i.countryCode==o.testCenterLocationCountryCode);e.updateStoreExamDisplayedCurrency(t?.primaryCurrencyCodeIso)},vs=(e,o)=>Ye(null,null,function*(){if(!o.hasAutoApplyDomain||!jt(o.paymentMethods)){e.patchState({processing:!1});return}try{let t=e.storeExam(),i=new Fi(o.storeExamId,t.displayedCurrency.currencyCode,!0),n=yield Ze(e.storeExamMarketService.promoCodeValidate(i));if(n.isValid){let a=new He(!0,P.MarketCommonPromoCodeDiscount,t.displayedCurrency.priceAmount-n.discountedPrice,n.discountedPrice,t.displayedCurrency.currencyCode,void 0,n.promoCode);e.setAutoApplyPromoCode(a),e.setPaymentCode(a)}}catch(t){}e.patchState({processing:!1})}),Ss=e=>{let o=e.storeExam(),t=e.marketLayoutStore.deliveryCountryCode(),i=t?e.countries().find(n=>n.countryCode===t):o.browserCountry;so(i,e)};var Mr=(e,o)=>Ye(null,null,function*(){if(!o.isValid&&o.shouldCancelCheckout)return e.cancelCheckout();if(!o.isValid)return e.promptErrorDialog(o.error);ks(e,o.substitutionData),e.setIsStoreExamEligible(!0),e.setStoreExamLoaded(!0);let t=e.storeExam().deliveryType;(t?.isScheduled||t?.isTestCenter)&&e.setShowSchedulingCalendar(!0),e.updateProcessing(!1)}),ks=(e,o)=>{if(!o)return;if(o.adjustedDeliveryStartDate&&e.setAdjustedDeliveryStartDate(o.adjustedDeliveryStartDate),o.adjustedDeliveryEndDate&&e.setAdjustedDeliveryEndDate(o.adjustedDeliveryEndDate),o.authorizationCode&&e.setAuthorizationCode(o.authorizationCode),o.unscheduledAdjustedDeliveryEndDate&&e.updateEligibilityDeliveryEndDate(o.unscheduledAdjustedDeliveryEndDate),o.schedulingWindows?.length>0&&e.schedulingEligibilityWindowsLoaded(o.schedulingWindows),o.accommodationAdditionalMinutes){let i=o.accommodationAdditionalMinutes?new st(o.accommodationId,o.accommodationCode,Da(o.accommodationType,o.accommodationDescription,e.localizationStore),null,o.accommodationAdditionalMinutes):null;e.updateRequestAccommodation(i)}if(!o.accommodationAdditionalMinutes&&o.adjustedDeliveryStartDate&&e.getAvailableSlotsWithAdditionalDuration(e.selectedAccommodationRequest()?.additionalTimeInMinutes),o.numberOfDaysToRescheduleExam&&o.maxNumberOfDaysToScheduleExamInAdvanced!==null){let i=`Exams can be scheduled up to ${o.maxNumberOfDaysToScheduleExamInAdvanced} days in advance, and cannot be rescheduled more than ${o.numberOfDaysToRescheduleExam} days from original transaction date-time.`;e.setRescheduleInfoMessage(i)}};var Ir=(e,o)=>{e&&(o.setSelectedTimeZone(e),o.refreshScheduledExamSlots(o.selectedAccommodationRequest()?.additionalTimeInMinutes))};var Er=(e,o)=>{let t=o.selectedCountry();o.setSelectedCountry(t),o.setSelectedDate(e),o.getAvailableSlotsWithAdditionalDuration(o.selectedAccommodationRequest()?.additionalTimeInMinutes)};var ne=(()=>{class e extends Cn{constructor(t,i,n,a,u,s,f,v,D,I,E,$,te,J,ae,X){super(Ta()),this.dialog=t,this.settings=i,this.route=n,this.router=a,this.applicationDataService=u,this.organizationMarketService=s,this.storeExamMarketService=f,this.snackBar=v,this.localizationStore=D,this.personExamReservationService=I,this.personProfileService=E,this.marketLayoutStore=$,this.userService=te,this.userSessionService=J,this.storeExamSchedulingService=ae,this.storeExamReservationService=X,this.error$=this.select(c=>
1c.error),this.processing$=this.select(c=>c.processing),this.storeExam$=this.select(c=>c.checkout.storeExam),this.rescheduledReservation$=this.select(c=>c.checkout.rescheduledReservation),this.isRescheduleReservation$=this.select(c=>c.checkout.isRescheduleReservation),this.rescheduleInfoMessage$=this.select(c=>c.checkout.rescheduleInfoMessage),this.paymentMethods$=this.select(c=>c.paymentMethods),this.organization$=this.select(c=>c.checkout.organization),this.storeExamDeliveryType$=this.select(c=>c.checkout.storeExam.deliveryType),this.schedulingData$=this.select(c=>c.scheduling.schedulingData),this.calendarData$=this.select(c=>c.scheduling.calendarData),this.checkoutSelectedStepIndex$=this.select(c=>c.checkout.selectedStepIndex),this.testCenterSessions$=this.select(c=>c.testCenterSessions),this.hasPromoCode$=this.select(c=>c.checkout.storeExam.hasActivePromoCodes),this.hasAutoApplyDomain$=this.select(c=>c.checkout.storeExam.hasAutoApplyDomain),this.selectedPaymentMethod$=this.select(c=>c.selectedPaymentMethod),this.accommodationRequests$=this.select(c=>c.checkout.storeExam.accommodationRequests),this.countries$=this.select(c=>c.countries),this.personCustomFields$=this.select(c=>c.checkout.personCustomFields),this.reservation$=this.select(c=>c.checkout.reservation),this.authorizationCode$=this.select(c=>c.checkout.authorizationCode),this.storeExamLoaded$=this.select(c=>c.checkout.storeExamLoaded),this.isStoreExamEligible$=this.select(c=>c.checkout.isStoreExamEligible),this.showSchedulingCalendar$=this.select(c=>c.checkout.showSchedulingCalendar),this.scheduleDate$=this.select(c=>c.checkout.scheduleDate),this.selectedAccommodationRequest$=this.select(c=>c.checkout.selectedAccommodationRequest),this.paymentCode$=this.select(c=>c.checkout.paymentCode),this.autoApplyPromoCode$=this.select(c=>c.checkout.autoApplyPromoCode),this.showReimbursementField$=this.select(c=>c.checkout.showReimbursementField),this.selectedCountryCode$=this.marketLayoutStore.deliveryCountryCode$,this.selectedTimeZone$=this.select(c=>c.checkout.selectedTimeZone),this.validationResultSubject=new Yt,this.validationResult$=this.validationResultSubject.asObservable(),this.cancelCheckoutSubject=new Yt,this.cancelCheckout$=this.cancelCheckoutSubject.asObservable(),this.clearPaymentCodeSubject=new Yt,this.clearPaymentCode$=this.clearPaymentCodeSubject.asObservable(),this.slotReleasedSubject=new Yt,this.slotReleased$=this.slotReleasedSubject.asObservable(),this.filteredAvailableTimeSlots$=this.select(c=>{let C=c.scheduling.schedulingData,M=c.scheduling.calendarData,F=M.timeSlots.filter(j=>j.isAvailable);Pa(F,M.activeLink);let K=M.selectedDate;K&&(F=F.filter(j=>j.isSameSlotDate(K)));let Y=C.eligibilityWindows;return Y.length>0&&(F=F.filter(j=>Y.some(Ae=>new Date(j.startDateTime)>=new Date(Ae.startDate)&&new Date(j.endDateTime)<=new Date(Ae.endDate)))),F.sort((j,Ae)=>new Date(j.startDate)>new Date(Ae.startDate)?1:-1)}),this.isRescheduleReservation=this.selectSignal(c=>c.checkout.isRescheduleReservation),this.storeExam=this.selectSignal(c=>c.checkout.storeExam),this.scheduleDate=this.selectSignal(c=>c.checkout.scheduleDate),this.selectedAccommodationRequest=this.selectSignal(c=>c.checkout.selectedAccommodationRequest),this.schedulingData=this.selectSignal(c=>c.scheduling.schedulingData),this.calendarData=this.selectSignal(c=>c.scheduling.calendarData),this.countries=this.selectSignal(c=>c.countries),this.selectedCountry=this.selectSignal(c=>c.checkout.selectedCountry),this.selectedTimeZone=this.selectSignal(c=>c.checkout.selectedTimeZone),this.processAccommodationInCertiverseEnabled=this.selectSignal(c=>c.checkout.storeExam.accommodationRequests.processAccommodationInCertiverseEnabled),this.selectedDate=this.selectSignal(c=>c.scheduling.calendarData.selectedDate),this.countryTimeZones=this.selectSignal(c=>c.checkout.selectedCountry?.timeZones),this.autoApplyPromoCode=this.selectSignal(c=>c.checkout.autoApplyPromoCode),this.init=()=>Ye(this,null,function*(){yield wr(this);let c=yield Dr(this);yield Mr(this,c)}),this.applySelectedDateChange=this.effect(c=>c.pipe(ke(C=>Er(C,this)))),this.loadTimeZone=()=>{let c=this.countryTimeZones();if(!c)return;let C=c.find(M=>M.ianaTimeZoneName===Intl.DateTimeFormat().resolvedOptions().timeZone);C&&this.setSelectedTimeZone(C)},this.loadAvailableSlotsFromQuery=this.effect(c=>c.pipe(ke(C=>this.updateProcessing(!0)),de(C=>this.storeExamSchedulingService.getAvailableSlots(C).pipe(Mt(M=>this.availableSlotsLoaded(M),M=>this.handleError(M)))))),this.getAvailableSlotsWithAdditionalDuration=c=>{let C=this.storeExam(),M=this.schedulingData(),F=this.calendarData(),K=this.isRescheduleReservation(),Y=this.selectedTimeZone();if(!Y)return;let j=Xi(C,c,K),Ae=Ia(F.selectedDate,M.schedulingWindowStartDate,M.adjustedDeliveryStartDate,Y),Ut=Aa(Ae,F.windowEndDate,Y),Qt=new Gn(C.storeExamId,Ae,Ut,Y?.ianaTimeZoneName??Ar.default.tz.guess(),j,C.bookingException?.exceptionId);F.timeSlots.some(ft=>ft.isSameSlotDate(F.selectedDate)&&ft.timeZone?.ianaTimeZoneName===Y.ianaTimeZoneName)||this.loadAvailableSlotsFromQuery(Qt)},this.releaseSlot=this.effect(c=>c.pipe(ke(C=>this.updateProcessing(!0)),wi(()=>[this.organization$.pipe(O()),this.isRescheduleReservation$]),de(([C,M,F])=>{let K=new Wn(C.storeExamId,C.externalSchedulingSystemSlotId);return this.storeExamSchedulingService.releaseSlot(K).pipe(Mt(()=>{if(this.updateScheduleDate(null),this.updateProcessing(!1),this.scheduleSaved(!1),this.slotReleasedSubject.next(!0),C.loadAvailableTimeSlots)return this.getAvailableSlotsWithAdditionalDuration(C.additionalTimeInMinutes);F&&this.router.navigate(["dashboard"]),C.navigateToStore&&this.router.navigate([`./store/${M.code}`])},Y=>this.handleError(Y)))}))),this.holdSlot=this.effect(c=>c.pipe(ke(C=>this.updateProcessing(!0)),wi(()=>this.storeExamDeliveryType$),de(([C,M])=>{let F=new zi(C.storeExamId,C.externalSchedulingSystemProctorIds,C.startDate,C.endDate,C.timeZone,this.selectedAccommodationRequest()?.additionalTimeInMinutes);return this.storeExamSchedulingService.holdSlot(F).pipe(Mt(K=>{let Y=new It(new Date(C.startDate),new Date(C.startDate),K.externalSchedulingSystemSlotId);this.updateScheduleDate(Y),this.updateProcessing(!1),this.scheduleSaved(!0);let j=dt(je.Review,M.isLiveProctored);this.setCheckoutStep(j)},K=>this.handleError(K)))}))),this.updateOnEmployerInformationForReimbursementVisible=this.effect(c=>c.pipe(ke(C=>{this.onShowReimbursementFieldUpdated(C)}))),this.setSelectedSession=this.effect(c=>c.pipe(ke(C=>{let M=new It(C.startDateUtc,null,null);M.scheduledDateConvertedTimeZone=C.startDateConvertedTimeZone,M.timeZone=C.timeZone,M.testCenterSessionId=C.id,this.updateScheduleDate(M)}))),this.createReservation=this.effect(c=>c.pipe(ke(C=>this.updateProcessing(!0)),de(C=>this.storeExamReservationService.create(C).pipe(Mt(this.renewIdentity,this.handleError))))),this.rescheduleReservation=this.effect(c=>c.pipe(ke(C=>this.updateProcessing(!0)),de(C=>this.storeExamReservationService.reschedule(C).pipe(Fe(M=>{throw this.handleError(M),M}),de(M=>this.userService.renewIdentity().pipe(Mt(F=>{F&&this.onReservationRescheduled(M)},this.handleError))))))),this.renewIdentity=this.effect(c=>c.pipe(ke(C=>this.updateProcessing(!0)),de(C=>this.userService.renewIdentity().pipe(Mt(M=>{M&&this.onReservationCreated(C)},M=>this.handleError(M)))))),this.updateRequestAccommodation=this.effect(c=>c.pipe(Wo(C=>(this.refreshScheduledExamSlots(C?.additionalTimeInMinutes),this.setRequestAccommodation(C),le(!0))))),this.updateStoreExamDisplayedCurrency=this.effect(c=>c.pipe(ke(C=>{this.updateDisplayedCurrencyState(C),this.clearPaymentCodeSubject.next(!0)}))),this.updateTimeAccommodationForCountryWithoutLanguage=this.effect(c=>c.pipe(wi(()=>[this.storeExam$.pipe(O())]),de(([C,M])=>this.storeExamMarketService.getAccommodationDeliveryCountry(M.storeExamId,C).pipe(Mt(F=>{let K=F?.accommodationInMinutes?new st(Ee.CountryWithoutLanguageFixedTime,null,"Language Time Accommodation",null,F.accommodationInMinutes):null;this.updateRequestAccommodation(K)},this.handleError))))),this.saveReservationId=this.effect(c=>c.pipe(ke(C=>{let M=`${Ii}${this.userSessionService.getPersonId()}`;localStorage.setItem(M,JSON.stringify(C))}))),this.updateSelectedCountry=this.effect(c=>c.pipe(ke(C=>so(C,this)))),this.handleTimeZoneChanged=this.effect(c=>c.pipe(ke(C=>Ir(C,this)))),this.promptErrorDialog=c=>{let C=this.localizationStore.translateLocalizationId(c.localizationErrorCode,c.errorValueSubstitutions),M=this.localizationStore.translate(c.errorTitleLocalizationCode),F=c.errorTitle??this.localizationStore.translate(P.MarketErrorEligibilityLabel),K=Va(c.defaultErrorMessage,c.errorValueSubstitutions),Y=new Yi(!1,M??F,C??K,c.buttonLabel,c.redirectToDashboard?()=>this.router.navigate(["dashboard"]):null);this.validationResultSubject.next(Y)},this.cancelCheckout=()=>{this.cancelCheckoutSubject.next(!0)},this.refreshScheduledExamSlots=c=>{let C=this.storeExam();if(!C.deliveryType.isScheduled)return;this.clearExistingSlots();let M=this.scheduleDate();if(M.externalSchedulingSystemSlotId){let F=new Et(!1,C.storeExamId,M.externalSchedulingSystemSlotId,!0,c);return this.releaseSlot(F)}this.getAvailableSlotsWithAdditionalDuration(c)},this.appendStoreExamAccommodationRequestOption=this.effect(c=>c.pipe(ke(C=>this.updateStoreExamAccommodationRequestOptions(C)))),this.handleError=this.updater((c,C)=>
1Za(c,C)),this.updateProcessing=this.updater((c,C)=>Oa(c,C)),this.onStoreExamLoaded=this.updater((c,C)=>Wa(c,C,this)),this.onRescheduledReservationLoaded=this.updater((c,C)=>qa(c,C)),this.onReservationCreated=this.updater((c,C)=>ja(c,C)),this.onReservationRescheduled=this.updater((c,C)=>Ha(c,C)),this.onOrganizationLoaded=this.updater((c,C)=>Na(c,C)),this.onPersonCustomFieldsLoaded=this.updater((c,C)=>$a(c,C)),this.availableSlotsLoaded=this.updater((c,C)=>sr(c,C)),this.setActiveLink=this.updater((c,C)=>Ua(c,C)),this.updateEligibilityDeliveryEndDate=this.updater((c,C)=>Ga(c,C)),this.schedulingEligibilityWindowsLoaded=this.updater((c,C)=>Qa(c,C)),this.setAuthorizationCode=this.updater((c,C)=>Ka(c,C)),this.setIsStoreExamEligible=this.updater((c,C)=>tr(c,C)),this.setShowSchedulingCalendar=this.updater((c,C)=>or(c,C)),this.setStoreExamLoaded=this.updater((c,C)=>ir(c,C)),this.setSelectedDate=this.updater((c,C)=>Ya(c,C)),this.setAdjustedDeliveryStartDate=this.updater((c,C)=>Ja(c,C)),this.setAdjustedDeliveryEndDate=this.updater((c,C)=>Xa(c,C)),this.setRescheduleInfoMessage=this.updater((c,C)=>er(c,C)),this.scheduleSaved=this.updater((c,C)=>ar(c,C)),this.setSelectedSlot=this.updater((c,C)=>rr(c,C)),this.setCheckoutStep=this.updater((c,C)=>nr(c,C)),this.setPaymentMethod=this.updater((c,C)=>lr(c,C)),this.onShowReimbursementFieldUpdated=this.updater((c,C)=>cr(c,C)),this.setPaymentCode=this.updater((c,C)=>dr(c,C)),this.setAutoApplyPromoCode=this.updater((c,C)=>mr(c,C)),this.updateDisplayedCurrencyState=this.updater((c,C)=>ur(c,C)),this.onCountriesLoaded=this.updater((c,C)=>pr(c,C)),this.updateScheduleDate=this.updater((c,C)=>hr(c,C)),this.setRequestAccommodation=this.updater((c,C)=>Cr(c,C)),this.setSelectedCountry=this.updater((c,C)=>fr(c,C)),this.setSelectedTimeZone=this.updater((c,C)=>xr(c,C)),this.clearExistingSlots=this.updater(c=>gr(c,this)),this.updateStoreExamAccommodationRequestOptions=this.updater((c,C)=>_r(c,C))}static{this.\u0275fac=function(i){return new(i||e)(ge(vn),ge(An),ge(kt),ge(pn),ge(ta),ge(ia),ge(Bi),ge(_n),ge(Rn),ge(aa),ge(ra),ge(pa),ge(Fn),ge(Pn),ge(oa),ge(na))}}static{this.\u0275prov=si({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pr=`
2
3 :root {
4    --ck-content-color-mention-background: hsla(341, 100%, 30%, 0.1);
5    --ck-content-color-mention-text: hsl(341deg, 100%, 30%);
6    --ck-content-highlight-marker-blue: hsl(201deg, 97%, 72%);
7    --ck-content-highlight-marker-green: hsl(120deg, 93%, 68%);
8    --ck-content-highlight-marker-pink: hsl(345deg, 96%, 73%);
9    --ck-content-highlight-marker-yellow: hsl(60deg, 97%, 73%);
10    --ck-content-highlight-pen-green: hsl(112deg, 100%, 27%);
11    --ck-content-highlight-pen-red: hsl(0deg, 85%, 49%);
12    --ck-content-image-style-spacing: 1.5em;
13    --ck-content-todo-list-checkmark-size: 16px;
14}
15.rich-text-box {
16    word-break: break-word;
17    line-height: 1.44;
18    font-size: 16px;
19    font-family: 'Roboto', "Helvetica Neue", sans-serif;
20    font-size: 16px;
21}
22
23.rich-text-box p,
24.rich-text-box h1,
25.rich-text-box h2,
26.rich-text-box h3,
27.rich-text-box h4,
28.rich-text-box h5,
29.rich-text-box h6 {
30    word-break: break-word;
31    line-height: 1.44;
32    margin-top: 0;
33    margin-bottom: 0;
34    min-height: 1.44rem;
35    white-space: pre-wrap;
36}
37/* ckeditor5-highlight/theme/highlight.css */
38.rich-text-box .marker-yellow {
39    background-color: var(--ck-content-highlight-marker-yellow);
40    margin: 0!important;
41}
42/* ckeditor5-highlight/theme/highlight.css */
43.rich-text-box .marker-green {
44    background-color: var(--ck-content-highlight-marker-green);
45}
46/* ckeditor5-highlight/theme/highlight.css */
47.rich-text-box .marker-pink {
48    background-color: var(--ck-content-highlight-marker-pink);
49}
50/* ckeditor5-highlight/theme/highlight.css */
51.rich-text-box .marker-blue {
52    background-color: var(--ck-content-highlight-marker-blue);
53}
54/* ckeditor5-highlight/theme/highlight.css */
55.rich-text-box .pen-red {
56    color: var(--ck-content-highlight-pen-red);
57    background-color: transparent;
58}
59/* ckeditor5-highlight/theme/highlight.css */
60.rich-text-box .pen-green {
61    color: var(--ck-content-highlight-pen-green);
62    background-color: transparent;
63}
64/* ckeditor5-image/theme/imagestyle.css */
65.rich-text-box .image-style-side {
66    float: right;
67    margin-left: var(--ck-content-image-style-spacing);
68    max-width: 50%;
69}
70/* ckeditor5-image/theme/imagestyle.css */
71.rich-text-box .image-style-align-left {
72    float: left;
73    margin-right: var(--ck-content-image-style-spacing);
74}
75/* ckeditor5-image/theme/imagestyle.css */
76.rich-text-box .image-style-align-center {
77    margin-left: auto;
78    margin-right: auto;
79}
80/* ckeditor5-image/theme/imagestyle.css */
81.rich-text-box .image-style-align-right {
82    float: right;
83    margin-left: var(--ck-content-image-style-spacing);
84}
85/* ckeditor5-block-quote/theme/blockquote.css */
86.rich-text-box blockquote {
87    overflow: hidden;
88    padding-right: 1.5em;
89    padding-left: 1.5em;
90    margin-left: 0;
91    margin-right: 0;
92    font-style: italic;
93    border-left: solid 5px #cccccc;
94}
95/* ckeditor5-block-quote/theme/blockquote.css */
96.rich-text-box[dir="rtl"] blockquote {
97    border-left: 0;
98    border-right: solid 5px #cccccc;
99}
100/* ckeditor5-horizontal-line/theme/horizontalline.css */
101.rich-text-box hr {
102    margin: 15px 0;
103    height: 4px;
104    background: #dedede;
105    border: 0;
106}
107/* ckeditor5-image/theme/image.css */
108.rich-text-box .image {
109    display: table;
110    clear: both;
111    text-align: center;
112    margin: 0.5em auto;
113    position: relative;
114    min-height: 32px;
115}
116.rich-text-box .image.loading::before {
117    content: '';
118    width: 100%;
119    height: 100%;
120    background-color: #e6e6e6;
121    position: absolute;
122    top: 0;
123    left: 0;
124    z-index: 3;
125    display: flex;
126    align-items: center;
127    justify-content: center;
128}
129.rich-text-box .image.loading::after {
130    content: "Uploading...";
131    background-image: unset;
132    font-size: 16px;
133    color: #2e2e2e;
134    position: absolute;
135    z-index: 3;
136    top: 5px;
137    left: 0;
138    width: 100%;
139    height: calc(100% - 5px);
140    white-space: pre;
141    display: flex;
142    align-items: center;
143    justify-content: center;
144}
145/* ckeditor5-image/theme/image.css */
146.rich-text-box .image img {
147    display: block;
148    margin: 0 auto;
149    max-width: 100%;
150    min-width: 50px;
151    position: relative;
152    z-index: 2;
153    color: #2e2e2e;
154    height: auto;
155}
156.rich-text-box .image img:not([src]) {
157    content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA27SURBVHgB7d3LcxRVG8fxRlFAUNSogKCgWLhwwcKF/vsurHLrwoULUyAiF2+gIl5A3vfbzJOcnJx5ZibdiaTn+6mawiQz0wHPr8+l+zxzZHNz80knqem5TtJcBkRKGBApYUCkhAGREgZEShgQKWFApIQBkR
157IGREoYEClhQKSEAZESBkRKGBApYUCkhAGREgZEShgQKWFApIQBkRIGREoc7dS7f/9+9/3333ePHz/u1tWRI0e6t99+u3vttdc6PWUPMvPDDz+sdTjw5MmT7u7du522GZCZdQ9H+Pfffzttc4jVcPz48e6VV17p1sWDBw/6h3YzIA0nTpzo3nrrrW5d3Llzx4DM4RBLShgQKWFA1L344otb//3CCy902uYcRN2rr77a/fPPP93ff/+9VnOvZRgQ9RcIDUabQywpYUCkhEMs9XcR3Lp1q5+DcC8WF0r1lD2Iul9//bW7d+9e98cff3TXr1/vtM2AaAeXeXdyiKV+mZebFP/666/uzTff7LTNgKhf5t3Y2Oi0m0MsKWEPMhAbrbgTlmEKj3l+//337ueff+5XiN54443uuedWOzf9+OOP/Xtwpn/55ZfnPo/fhee+9NJLDpdGYEAGYNWHW8VB42W5tDVUodGyOsSOPVaMVt1vwnvfvn17670uXLjQnT59etfzeO/vvvuun0/89ttv3bFjx5Y6DreZxDLvuXPnupMnT3Z6yiHWiGhk9BIlGu23337bhyMw5l9F+XzehxCwh770yy+/9McpdwQuexwCyO/5559/9u+tbQZkAIYxZ8+e3fE9QvLTTz/1/81Z/MaNGzu281IQIRsizTtO2TNFSOI4hOPmzZs7XrPKceg5gltud3KINRDziUePHvXjftB4CcnDhw/7s3zZczAsYgizKnoCXse8hTlPHIfhHWf9ujfhdzpz5kyn4QzICKIXiZCAK9MlJvDMHYag0dMbxTCOsz29R4mehuetOoxTmwEZCSGhUcYZvkSj3UvP0cK9UqjnOoiew3CMxznIiJgrtBpnuWNvDKxOtXCbiOEYlwEZCStB9WpVaK1u7RWrTbG0XGMpuB5yaRgDMoLyOkeoew3Kmsaq016V1zlC2ZtwfI5TT9q1dwZkoNZ1DuYcV65c2XUle0hP0rrOwZzjgw8+6F5//fWt7827TqK9MSADcP2Axlhf54gJORPmermVkKxapI2lXHqGEqtisTDAn63rJCw1axgDMgC3h5dn9NZ1DnoRzvSBxltemFv2OGUPxfudP39+62uuj3Dcssfi+QRLwxiQAU6dOtVfreYsTs/xzjvvNG9C5AxPo+Z5rHTxulWPw4PXR6/UWq3i+4QkjpPdPKnleB1kABrixYsXl3ouIdnrNYrnn3++u3TpUt8rLHo9x6CEj8u947AHOUBDG+2yrzcc4zEgUsKASAkDIiUMiJQwIFLCgEgJAyIlDIiUMCBSwoBICe/F+g9xJzBF27hdngdfc7Mj917xYAvtqhUYNS4DckAoDcS2XKoxEgr+LPeRzENQqMTIzkHu0KXqoR9RcHAMyD4iCJT/iWC09qsvQojYYMWD3YjciHjixIn+9nfKivppUPvLgOwDGnMUtd5LKDK8H2HjwTEICntNrKe7PwzIiNjBt2hLbfQAPI4ePdoPl/iToRTzDQLAcCwe9CARiDpsfE15Ux5RBpU/NR4DMgIaMWfzsrJiiRCw4zCGRnvZr0EYCB5BoSAD23BLfH9zc7M/DpumCJ2G819xIBomhaPrBktvwLCH4c+8gnKr4PWx9ZYdgxyXMkJUVSl7FqqfMOd59913+0BqGAMyAEOga9eu7aqIzuSZs/i8CohjIHQ8KABx9+7dHYWyWRygN3n//fcNyUAGZADK6pThoFgctXNXLcowBMekKDa1sSj1ExVToqqJARnGq1ADMITiwfCHXuPy5csHGo4SvQk9BkGJhYDWp1BpNfYgAzDPeO+997pnBRNzerCoAK/h7EGkhAGREgZEShgQKWFApIQBkRIGREoYEClhQKSEAZESBkRKGBAp4c2KhxyFHNj/McSqn7q7TgzITFl/6rBsV2X3YP3x0BqXQ6wZNh3FnnH2VBwG+/ExzxSP0DZ7kBnCwYanw4pNUqv2fPXQjPdgv7u2GZCJoHLKlStXln7+nTt3+kosgXCcP3/ez1avOMRaQ61w0HMYjt3sQWaobUXDoQjCxsbGZD9rnMJ2lAsK/D3PnTt3aOZdB82AzNy4caOvJxWoZzUlVDm5ffv2rnA4rMo5xJopJ6xj19N9FlA7qw4HxR0MR86AzFCJkNI5lMqhfOeUtOYcDKum9vfcDw6xZqiCSF2pqWFYVdYMds6xGgMyUQwT6TnqcDjnWI1DrIlizlGHwznH6uxBZqhpyzidq9FcEzjMy7zOOcZjQGYo/MxHCoD7kQ7rMu+8cDjn2BsDMlMu89af9XEYxHUO5xzjcg4yEQTcOcf4DMgEOecYj0OsBj4Yh1WgZ13MmUrOOcZlQBrYiLQfm5H2Wwyr7DnGY0BmDvvdu07I94dzkBka12HdbsrvzbDKcIzvyObm5vRuXZVGYg8iJQyIlDAgUsKASAkDIiUMiJQwIFLCgEgJAyIlDIiUMCBSwoBICQMiJQyIlDAgUsKASAkDIiUMiJQwIFLCgEgJy/7M3Lt3r3/g1KlTu4pX8/mFUdqz9fNHjx71tXF5HjW1eA5VRpYpgs3zeW0mjsnvEJ+lyNd8v3z98ePHu7Nnz859H4p087tmeD3vIwOyhXBcv369/28+AoGGVzYSGmX8nAZUNnwa5zfffLOj4d2/f7+7efNm/z4fffRR2uBo4PHe88QxCQgV3MF7RkDi9YRyUUAWFefmPQzIUw6xGmjoX3/99VLPJVg8N8IRPUc0MIL11VdfdcsinLy2fuxHza7WcQzGTvYgc8SQa1ExtjJIly5d6i5evNj/N2d1gkFAeHDmvnDhQrcIAbt69Wp3EDiOgcjZgyQW9SIx3wANLcIRX1++fHnr6/IjmHV4GJCGOKvS+DnzzxOTenDmr5XfK5/7rIgi3eVj0QR+3TjEajhz5kw/yY6J+7xJb9mYTp48uevnzCd4xPNogIuGNBzziy++2PX9Tz/9tBvbl19+uet7H374YTrJXzf2IHPEcInGvWiFKbOXyTWrTPVD/w17kDmYnDOpZojFY9FZdd7QpGzc9CaL0MPQgx0Eeou6R2sNFdeZAUnQi3CNIy4C1srG9eDBg10/jwt6iOHWIrwnq2EHwesdiznEStCgy5WpGhfuotEzd6g/laoM1WH9WOl1Zw+yAMMsroi3PpKNcPDBOzFHYdLL0i7fJzC8LmRBG9O821boKeprOlyVb/VqZfDXnf8KS2Cs3lrxAQHiG
157kdcE2ldNWfIdFBDGX6H1vUb5lB1QLg9pqUVpnXlEGsJNJZ5DYYz7ccff9wMAa/havVB9R4anx/BNrIYii07Kdezzf+DI3NVaFocYkkJAyIlDIiUMCBSwoBICQMiJSa9zHvt2rX+T65H1Ntdy+oerSol4JaNuK5RXywsb+lovX/rODwnbkPJKqjMs8wxOda8TV4cqy5GMe93bCkrqsyzyt/nMJhsQGhI5T6OKKYQyn0erfI8deGG+kp6WQUFvL51DaSsIsLtHhGQeRVSMsscc5n9K4Sg3A7c+h1byooq86zy9zkMJjvEihpW874u93fQ8Or9HOUW2da9SeWNiFhU12oMezlmVCopGz2BiN51rw6y+sp/aZI9CEORukgCZz7ul4qGEo0+gkCAytCUgarDwfvXQw0a737u49jLMfk7fvLJJ1tfc3NiDL/49xny+9IDrcPW3En2IOXZPxo3PUTdi5w+fXrrv9mDXiq/rnf4lWffGE7w/vtZmGGMYx7UTsUpmWRAYihCb0FVw1CPn+f1GHU5n7oHifDUpX3qAI5pjGOWzx26tZZwrkNFlMkNsaJQG2jYhCSGUjHXaA2z4mxcDrviPUrlzsHYsnrs2LF+klsP48ay12PymqiQ8vjx460GzHsMvQWf4Vq9n4QTDntnpmRyPUi5xLmxsbHjz/rn9c/K+UiohyXlxDh+Fj1Raxg3hiHHjKoo5dn9yRN3OCxrcj1IOXeIsTqNKc529eS0/BmvpSGVw5l6abgsHB0/489YWuXnY05ehxyT50cZU96HvztzGf5+LGEPKXHKVuN6OXeKt/pPKiCcScu9459//vmu5zD8Kmvu1kOwbPWq/BnH+eyzz3a9fz2MG2roMctGy7zj1q1bfY8Sw7a9Nur6utJUTWqItezwpn5eOcwqx9WcJUvLXuvIypWuauxjMhfR8ibTg3A2LFepWL0qz6icYaOgQj2xLYdZMVaPz94o3z+GXvXqWPw8rrzH+y/j4cOHzRDE2XnIMet6Xgyxyr9fq/doVTrh63o4VS+Lh6kVfJhMQOqVp9btDuWKFUOt1jArlL0K6hpXrUYQH6JDw13moxNAQ2s1NlaDyuHisscsG332OSfz7h1rVTrhPet/T/49WsFuVU85zCYzxGqt9NTKC4P1/Up1IOoGVPZO9XNbxx1jNWvsY8aJ4Or/J+f18FFtVjWREu4HkRIGREoYEClhQKSEAZESBkRKGBApYUCkhAGREgZEShgQKWFApIQBkRIGREoYEClhQKSEAZESBkRKGBApYUCkhAGREgZEShgQKWFApIQBkRIGREoYEClhQKSEAZESBkRK/A+6fkTbGWmzvQAAAABJRU5ErkJggg==');
158    z-index: 1!important;
159    width: 100px;
160    height: 100px;
161}
162.rich-text-box .image:not(.loading) img {
163    z-index: 3;
164}
165.rich-text-box .image::before {
166    content: '';
167    width: 100%;
168    height: 100%;
169    position: absolute;
170    top: 0;
171    color:#2e2e2e;
172    left: 0;
173}
174.rich-text-box .image::after {
175    content: "";
176    font-size: 16px;
177    color: #2e2e2e;
178    position: absolute;
179    z-index: 0;
180    top: 5px;
181    left: 0;
182    width: 100%;
183    height: calc(100% - 5px);
184    white-space: pre;
185    display: flex;
186    align-items: center;
187    justify-content: center;
188}
189/* ckeditor5-image/theme/imageresize.css */
190.rich-text-box .image_resized {
191    max-width: 100%;
192    display: block;
193    box-sizing: border-box;
194    height: auto;
195}
196/* ckeditor5-image/theme/imageresize.css */
197.rich-text-box .image_resized img {
198    width: 100%;
199    height: auto;
200}
201/* ckeditor5-image/theme/imageresize.css */
202.rich-text-box .image_resized > figcaption {
203    display: block;
204}
205
206/* ckeditor5-image/theme/imagecaption.css */
207.rich-text-box .image > figcaption {
208    display: table-caption;
209    caption-side: bottom;
210    word-break: break-word;
211    color: #333333;
212    background-color: #f7f7f7;
213    padding: .6em;
214    font-size: .75em;
215    outline-offset: -1px;
216}
217/* ckeditor5-basic-styles/theme/code.css */
218.rich-text-box code {
219    background-color: rgb(236, 236, 236);
220    border-radius: 2px;
221    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace!important;
222    padding: 0;
223    font-weight: 500;
224    color: #121212;
225    white-space: pre-wrap;
226    tab-size: 3;
227    border: none;
228}
229/* ckeditor5-font/theme/fontsize.css */
230.rich-text-box .text-tiny {
231    font-size: .7em;
232}
233/* ckeditor5-font/theme/fontsize.css */
234.rich-text-box .text-small {
235    font-size: .85em;
236}
237/* ckeditor5-font/theme/fontsize.css */
238.rich-text-box .text-big {
239    font-size: 1.4em;
240}
241/* ckeditor5-font/theme/fontsize.css */
242.rich-text-box .text-huge {
243    font-size: 1.8em;
244}
245/* ckeditor5-table/theme/table.css */
246.rich-text-box .table {
247    display: table;
248    margin: .9em auto;
249}
250/* ckeditor5-table/theme/table.css */
251.rich-text-box .table table {
252    border-collapse: initial;
253    border-spacing: 0;
254    width: 100%;
255    height: 100%;
256    border: 1px double #ff0000;
257}
258/* ckeditor5-table/theme/table.css */
259.rich-text-box .table table td,
260.rich-text-box .table table th {
261    min-width: 2em;
262    padding: .4em;
263    border: 1px solid #bfbfbf;
264}
265/* ckeditor5-table/theme/table.css */
266.rich-text-box .table table th {
267    font-weight: bold;
268    background: #0d0d0d;
269}
270/* ckeditor5-table/theme/table.css */
271.rich-text-box[dir="rtl"] .table th {
272    text-align: right;
273}
274/* ckeditor5-table/theme/table.css */
275.rich-text-box[dir="ltr"] .table th {
276    text-align: left;
277}
278/* ckeditor5-page-break/theme/pagebreak.css */
279.rich-text-box .page-break {
280    position: relative;
281    clear: both;
282    padding: 5px 0;
283    display: flex;
284    align-items: center;
285    justify-content: center;
286}
287/* ckeditor5-page-break/theme/pagebreak.css */
288.rich-text-box .page-break::after {
289    content: '';
290    position: absolute;
291    border-bottom: 2px dashed #c4c4c4;
292    width: 100%;
293}
294/* ckeditor5-page-break/theme/pagebreak.css */
295.rich-text-box .page-break__label {
296    position: relative;
297    z-index: 1;
298    padding: .3em .6em;
299    display: block;
300    text-transform: uppercase;
301    border: 1px solid #c4c4c4;
302    border-radius: 2px;
303    font-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;
304    font-size: 0.75em;
305    font-weight: bold;
306    color: #333333;
307    background: #ffffff;
308    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
309    -webkit-user-select: none;
310    -moz-user-select: none;
311    -ms-user-select: none;
312    user-select: none;
313}
314/* ckeditor5-media-embed/theme/mediaembed.css */
315.rich-text-box .media {
316    clear: both;
317    display: block;
318    min-width: 15em;
319}
320/* ckeditor5-list/theme/todolist.css */
321.rich-text-box .todo-list {
322    list-style: none;
323}
324/* ckeditor5-list/theme/todolist.css */
325.rich-text-box .todo-list li {
326    margin-bottom: 5px;
327}
328/* ckeditor5-list/theme/todolist.css */
329.rich-text-box .todo-list li .todo-list {
330    margin-top: 5px;
331}
332/* ckeditor5-list/theme/todolist.css */
333.rich-text-box .todo-list .todo-list__label > input {
334    -webkit-appearance: none;
335    display: inline-block;
336    position: relative;
337    width: var(--ck-content-todo-list-checkmark-size);
338    height: var(--ck-content-todo-list-checkmark-size);
339    vertical-align: middle;
340    border: 0;
341    left: -25px;
342    margin-right: -15px;
343    right: 0;
344    margin-left: 0;
345}
346/* ckeditor5-list/theme/todolist.css */
347.rich-text-box .todo-list .todo-list__label > input::before {
348    display: block;
349    position: absolute;
350    box-sizing: border-box;
351    content: '';
352    width: 100%;
353    height: 100%;
354    border: 1px solid #333333;
355    border-radius: 2px;
356    transition: 250ms ease-in-out box-shadow, 250ms ease-in-out background, 250ms ease-in-out border;
357}
358/* ckeditor5-list/theme/todolist.css */
359.rich-text-box .todo-list .todo-list__label > input::after {
360    display: block;
361    position: absolute;
362    box-sizing: content-box;
363    pointer-events: none;
364    content: '';
365    left: calc( var(--ck-content-todo-list-checkmark-size) / 3 );
366    top: calc( var(--ck-content-todo-list-checkmark-size) / 5.3 );
367    width: calc( var(--ck-content-todo-list-checkmark-size) / 5.3 );
368    height: calc( var(--ck-content-todo-list-checkmark-size) / 2.6 );
369    border-style: solid;
370    border-color: transparent;
371    border-width: 0 calc( var(--ck-content-todo-list-checkmark-size) / 8 ) calc( var(--ck-content-todo-list-checkmark-size) / 8 ) 0;
372    transform: rotate(45deg);
373}
374/* ckeditor5-list/theme/todolist.css */
375.rich-text-box .todo-list .todo-list__label > input[checked]::before {
376    background: #26ab33;
377    border-color: #26ab33;
378}
379/* ckeditor5-list/theme/todolist.css */
380.rich-text-box .todo-list .todo-list__label > input[checked]::after {
381    border-color: #ffffff;
382}
383/* ckeditor5-list/theme/todolist.css */
384.rich-text-box .todo-list .todo-list__label .todo-list__label__description {
385    vertical-align: middle;
386}
387/* ckeditor5-code-block/theme/codeblock.css */
388.rich-text-box pre {
389    font-style: normal;
390    min-width: 200px;
391    background-color: #c7c7c780;
392    border-radius: 4px;
393    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace!important;
394    padding: 0;
395    font-weight: 500;
396    color: #121212;
397    white-space: pre-wrap;
398    tab-size: 3;
399    border: none;
400    margin: 0;
401    padding: 0.15em 0.5em;
402
403}
404/* ckeditor5-code-block/theme/codeblock.css */
405.rich-text-box pre code {
406    background: unset;
407    padding: 0;
408    border-radius: 0;
409}
410/* ckeditor5-mention/theme/mention.css */
411.rich-text-box .mention {
412    background: var(--ck-content-color-mention-background);
413    color: var(--ck-content-color-mention-text);
414}
415
416.rich-text-box a {
417    color: #604f88;
418    padding: unset;
419}
420
421.rich-text-box a:hover {
422    color: #1e88e5;
423}
424@media print {
425    /* ckeditor5-page-break/theme/pagebreak.css */
426    .rich-text-box .page-break {
427        padding: 0;
428    }
429    /* ckeditor5-page-break/theme/pagebreak.css */
430    .rich-text-box .page-break::after {
431        display: none;
432    }
433}
434@media (prefers-color-scheme: dark) {
435    .rich-text-box code, .rich-text-box pre {
436        color: #121212;
437        background-color: #ececec;
438    }
439    .rich-text-box code * {
440        color: inherit
441    }
442    .rich-text-box pre * {
443        color: inherit
444    }
445  }
446
447  .wiris-plugin-toolbar {
448    display: none;
449  }`;var bs=["RTEViewer"],Ds=(e,o)=>({"has-acknowledgement":e,"p-0 h-0":o}),Ts=e=>({"d-none":e}),ws=e=>({"accommodation-instructions__loaded":e}),Ms=(e,o)=>
449o.id;function Is(e,o){if(e&1&&(d(0,"mat-option",7),p(1),l()),e&2){let t=o.$implicit;k("value",t),r(),T(" ",t.description," ")}}function Es(e,o){if(e&1&&(d(0,"mat-option",7),p(1),l()),e&2){let t=m();k("value",t.otherAccommodation),r(),T(" ",t.otherAccommodation.description," ")}}function As(e,o){e&1&&(d(0,"div")(1,"h2",14),p(2,"Acknowledgement"),l(),d(3,"mat-checkbox",15),p(4," I certify that I meet the requirements for this accommodation "),l()())}var Fr=(()=>{class e extends se{constructor(t,i,n){super(),this.dialogRef=t,this.data=i,this.sanitizer=n,this.form=new $e({accommodationType:new R(null,G.required),acknowledgementChecked:new R(!1)}),this.accommodationTypes=[],this.buttonSize=Le,this.buttonTypes=Ke,this.onClose=()=>{let a=this.form.controls.accommodationType?.value?.id===Ee.OtherAccommodationRequests?null:void 0;this.dialogRef.close(a)},this.continue=()=>{let a=this.form.controls.accommodationType?.value?.id!==Ee.OtherAccommodationRequests?this.form.controls.accommodationType.value:null;this.dialogRef.close(a)},this.handleAccommodationTypeChange=a=>{this.form.controls.acknowledgementChecked.clearValidators(),this.safeHtml=this.sanitizer.bypassSecurityTrustHtml(a.candidateInstructions),this.showAcknowledgement=a.id!==Ee.OtherAccommodationRequests,this.showAcknowledgement&&this.form.controls.acknowledgementChecked.setValidators(G.requiredTrue),this.form.controls.acknowledgementChecked.updateValueAndValidity()},this.injectStylesIntoIframe=()=>{let a=this.richTextEditor?.nativeElement;if(a&&a.contentDocument){let u=document.createElement("style");u.appendChild(document.createTextNode(Pr)),a.contentDocument.head.appendChild(u),a.contentDocument.body.classList.add("rich-text-box")}},this.buildAccommodationOptions=()=>{this.accommodationTypes=this.data.accommodationOptions??[],this.showOtherAccommodation=!!this.data.html,this.showOtherAccommodation&&(this.otherAccommodation=new st(Ee.OtherAccommodationRequests,null,"Other Accommodation",this.data.html,null))}}ngAfterViewInit(){this.injectStylesIntoIframe()}ngOnInit(){this.buildAccommodationOptions();let t=![Ee.OtherAccommodationRequests,Ee.CountryWithoutLanguageFixedTime].includes(this.data.selectedAccommodationRequest?.id);if(this.data.selectedAccommodationRequest&&t){let i=this.accommodationTypes.find(n=>n.id===this.data.selectedAccommodationRequest.id);this.form.patchValue({accommodationType:i,acknowledgementChecked:t}),this.handleAccommodationTypeChange(i)}}static{this.\u0275fac=function(i){return new(i||e)(V(bt),V(yn),V(an))}}static{this.\u0275cmp=N({type:e,selectors:[["market-request-accomodation-dialog"]],viewQuery:function(i,n){if(i&1&&yt(bs,5),i&2){let a;be(a=De())&&(n.richTextEditor=a.first)}},standalone:!1,features:[re],decls:32,vars:41,consts:[["RTEViewer",""],["mat-dialog-title","",1,"p-r-24","headline--small"],[3,"formGroup"],[1,"accommodation-body"],["appearance","outline",1,"w-100","accommodation-type",3,"subscriptSizing"],["formControlName","accommodationType",3,"selectionChange","placeholder"],[1,"screen-reader-only"],[3,"value"],[3,"ngClass"],[1,"title--medium",3,"ngClass"],[1,"accommodation-instructions",3,"load","srcdoc","ngClass"],[1,"p-b-24","p-l-24","p-r-24",3,"align"],["matButton","",3,"click"],["matButton","",3,"click","disabled"],[1,"title--medium"],["formControlName","acknowledgementChecked",1,"w-100"]],template:function(i,n){i&1&&(d(0,"h1",1),p(1),h(2,"translate"),l(),d(3,"form",2)(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),p(7),h(8,"translate"),l(),d(9,"mat-select",5),h(10,"translate"),A("selectionChange",function(u){return n.handleAccommodationTypeChange(u.value)}),d(11,"mat-select-trigger"),p(12),l(),d(13,"mat-option",6),p(14,"None"),l(),fe(15,Is,2,2,"mat-option",7,Ms),h(17,"sortByKey"),x(18,Es,2,2,"mat-option",7),l()(),d(19,"mat-dialog-content",8)(20,"h2",9),p(21,"Instructions"),l(),d(22,"iframe",10,0),A("load",function(){return n.injectStylesIntoIframe()}),l(),x(24,As,5,0,"div"),l()(),d(25,"mat-dialog-actions",11)(26,"button",12),A("click",function(){return n.onClose()}),p(27),h(28,"translate"),l(),d(29,"button",13),A("click",function(){return n.continue()}),p(30),h(31,"translate"),l()()()),i&2&&(r(),y(g(2,20,n.localizationId.MarketCommonRequestAccommodation)),r(2),k("formGroup",n.form),r(2),k("subscriptSizing","dynamic"),r(2),y(g(8,22,n.localizationId.MarketCommonRequestAccommodationSelect)),r(2),k("placeholder",g(10,24,n.localizationId.MarketCommonRequestAccommodationSelect)),r(3),T(" ",n.form.controls.accommodationType.value==null?null:n.form.controls.accommodationType.value.description," "),r(3),xe(Vt(17,26,n.accommodationTypes,"asc","description")),r(3),_(n.showOtherAccommodation?18:-1),r(),k("ngClass",en(34,Ds,n.showAcknowledgement,!n.safeHtml)),r(),k("ngClass",Re(37,Ts,!n.safeHtml)),r(2),k("srcdoc",n.safeHtml,zt)("ngClass",Re(39,ws,n.safeHtml)),r(2),_(n.showAcknowledgement?24:-1),r(),k("align","end"),r(),Z("type",n.buttonTypes.Round)("size",n.buttonSize.Small),r(),T(" ",g(28,30,n.localizationId.CommonButtonCancel)," "),r(2),k("disabled",n.form.invali
449d),Z("type",n.buttonTypes.Round)("size",n.buttonSize.Small),r(),T(" ",g(31,32,n.localizationId.CommonButtonContinue)," "))},dependencies:[nt,ze,ue,Zt,Dt,wt,Tt,me,Ve,rt,vi,Me,ye,we,Ie,Be,$t,U],styles:["[_nghost-%COMP%]{--dialog-actions: 53px;--accommodation-acknowledgement: 0px}.accomodation-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--mat-sys-measurement-space300)}.accommodation-type[_ngcontent-%COMP%]{padding:var(--mat-sys-measurement-space50) var(--mat-sys-measurement-space300) 0}.has-acknowledgement[_ngcontent-%COMP%]{--accommodation-acknowledgement: 120px}mat-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--mat-sys-measurement-space150)}.accommodation-instructions[_ngcontent-%COMP%]{width:100%;border:none;border-radius:6px;height:0}.accommodation-instructions__loaded[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container-low);height:calc(65vh - var(--dialog-actions) - var(--accommodation-acknowledgement, 0px) - 32px)}.h-0[_ngcontent-%COMP%]{height:0}"]})}}return e})();var co=class{constructor(o,t,i){this.html=o,this.accommodationOptions=t,this.selectedAccommodationRequest=i}};var zr=ri(Ao());var Ps=["examLanguage"],Rs=["deliveryLocation"],Fs=["candidateInfo"],zs=["scheduling"],Bs=e=>({"d-none":e});function Vs(e,o){e&1&&w(0,"mat-progress-bar",5)}function Ls(e,o){e&1&&(d(0,"section",7),li(1),w(2,"lib-page-tabs-skeleton"),d(3,"div",9),w(4,"lib-single-select-skeleton"),l(),ci(),l())}function Os(e,o){e&1&&_t(0)}function Zs(e,o){if(e&1){let t=H();ot(0,Os,1,0,"ng-container",20),d(1,"div",21)(2,"mat-card",22)(3,"mat-card-header",23)(4,"h2",24),p(5),h(6,"translate"),l()(),w(7,"mat-divider"),d(8,"mat-card-content",25)(9,"p",26),p(10),h(11,"translate"),l(),d(12,"div",27),w(13,"market-verify-system-compatibility-dialog",28),l()(),d(14,"mat-card-actions",29)(15,"mat-checkbox",30),A("change",function(n){z(t);let a=m(3);return B(a.systemValidationAcknowledged(n))})("keydown.enter",function(n){z(t);let a=m(3);return B(a.preventEnterSubmit(n))}),p(16),h(17,"translate"),l()()(),d(18,"div",17)(19,"button",18),A("click",function(){z(t);let n=m(3);return B(n.cancelCheckout())}),p(20),h(21,"translate"),l(),d(22,"button",19),A("click",function(){z(t);let n=m(3);return B(n.goToReview())}),p(23),h(24,"translate"),l()()()}if(e&2){let t=m(2),i=m(),n=Ne(3);k("ngTemplateOutlet",n),r(5),y(g(6,15,i.localizationId.MarketBookingSystemCheckLabel)),r(5),y(g(11,17,i.localizationId.MarketBookingSystemCheckExplanation)),r(3),k("isSecureBrowser",t.isSecureBrowser)("storeExamId",t.storeExam.storeExamId)("isCardStyleFilled",!0),r(3),y(g(17,19,i.localizationId.MarketBookingSystemCheckCheckboxVerified)),r(3),k("disabled",t.processing),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Medium),r(),y(g(21,21,i.localizationId.CommonButtonCancel)),r(2),k("disabled",t.processing||!t.systemValidationAcknowledgementChecked),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Medium),r(),y(g(24,23,i.localizationId.CommonButtonNext))}}function Ns(e,o){e&1&&_t(0)}function $s(e,o){if(e&1&&ot(0,Ns,1,0,"ng-container",20),e&2){m(3);let t=Ne(3);k("ngTemplateOutlet",t)}}function qs(e,o){if(e&1&&w(0,"market-candidate-information",14,2),e&2){let t=m(3);k("checkoutForm",t.checkoutForm)}}function js(e,o){if(e&1&&w(0,"market-checkout-test-delivery-location",15,3),e&2){let t=m(3);k("browserCountryControl",t.checkoutForm.controls.browserCountry)("timeZoneControl",t.checkoutForm.controls.timeZone)("timeZoneValue",t.checkoutForm.controls.timeZone.value)}}function Hs(e,o){if(e&1&&w(0,"market-checkout-scheduling",16,4),e&2){let t=m(3);k("externalSchedulingControl",t.checkoutForm.controls.externalSchedulingSystemSlotId)}}function Ws(e,o){e&1&&_t(0)}function Gs(e,o){e&1&&w(0,"market-checkout-terms-and-conditions")}function Us(e,o){if(e&1&&w(0,"market-checkout-payment",14),e&2){let t=m(4);k("checkoutForm",t.checkoutForm)}}function Qs(e,o){if(e&1&&(p(0),h(1,"translate")),e&2){let t=m(4);T(" ",g(1,1,t.localizationId.MarketBookingExplicitAcceptTermsAndConditionsButtonLabel)," ")}}function Ks(e,o){if(e&1&&(p(0),h(1,"translate")),e&2){let t=m(4);T(" ",g(1,1,t.localizationId.CommonButtonContinue)," ")}}function Ys(e,o){if(e&1){let t=H();ot(0,Ws,1,0,"ng-container",20),d(1,"div",21),w(2,"market-checkout-summary",31),x(3,Gs,1,0,"market-checkout-terms-and-conditions"),x(4,Us,1,1,"market-checkout-payment",14),d(5,"div",17)(6,"button",18),A("click",function(){z(t);let n=m(3);return B(n.previousStep())}),p(7),h(8,"translate"),l(),d(9,"button",32),A("click",function(){z(t);let n=m(3);return B(n.finishCheckout())}),x(10,Qs,2,3)(11,Ks,2,3),l()()()}if(e&2){let t=m(2),i=m(),n=Ne(3);k("ngTemplateOutlet",n),r(2),k("checkoutCurrentStep",t.stepperSelectedIndex)("checkoutForm",i.checkoutForm),r(),_(t.storeExam.termsAndConditions||t.isLiveProctored?3:-1),r(),_(t.showPayment?4:-1),r(2),k("disabled",t.processing),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Medium),r(),y(g(8,13,i.localizationId.CommonButtonBack)),r(2),k("disabled",t.processing),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Medium),r(),_(t.storeExam.termsAndConditions||t.isLiveProctored?10:11)}}function Js(e,o){if(e&1){let t=H();d(0,"div",7),w(1,"lib-step-progress",10),x(2,Zs,25,25),x(3,$s,1,1,"ng-container"),d(4,"div",11)(5,"market-checkout-exam-summary",12),A("accommodationRequested",function(){z(t);let n=m(2);return B(n.openRequestAcommodation())}),l(),d(6,"market-exam-language",13,1),A("accommodationRequested",function(){z(t);let n=m(2);return B(n.openRequestAcommodation())}),l(),x(8,qs,2,1,"market-candidate-information",14),x(9,js,2,3,"market-checkout-test-delivery-location",15),x(10,Hs,2,1,"market-checkout-scheduling",16),d(11,"div",17)(12,"button",18),A("click",function(){z(t);let n=m(2);return B(n.cancelCheckout())}),p(13),h(14,"translate"),l(),d(15,"button",19),A("click",function(){z(t);let n=m(2);return B(n.validateScheduling())}),p(16),h(17,"translate"),l()()(),x(18,Ys,12,15),l()}if(e&2){let t=m(),i=m();r(),k("label",i.getStepLabel(t))("currentStep",t.stepperSelectedIndex+1)("totalSteps",t.showVerifyCompatibilityStep?3:2),r(),_(t.showVerifyCompatibilityStep&&t.stepperSelectedIndex===0?2:-1),r(),_(t.stepperSelectedIndex===t.schedulingStepIndex?3:-1),r(),k("ngClass",Re(26,Bs,t.stepperSelectedIndex!==t.schedulingStepIndex)),r(),k("showAccommodationButton",t.showRequestAccommodationButton)("hasMultipleLanguages",t.hasMultipleLanguages),r(),k("examLanguageControl",i.checkoutForm.controls.examLanguage)("showAccommodationButton",t.showRequestAccommodationButton&&!t.hasMultipleLanguages),r(2),_((t.storeExam==null||t.storeExam.customFields==null?null:t.storeExam.customFields.length)>0?8:-1),r(),_(t.showTestDeliveryLocation?9:-1),r(),_(t.showSchedulingCalendar?10:-1),r(2),k("disabled",t.processing),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Medium),r(),y(g(14,22,i.localizationId.CommonButtonCancel)),r(2),k("disabled",t.processing||!t.isStoreExamEligible||t.isScheduleInvalid),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Medium),r(),y(g(17,24,i.localizationId.CommonButtonNext)),r(2),_(t.stepperSelectedIndex===t.reviewStepIndex?18:-1)}}function Xs(e,o){if(e&1&&(x(0,Vs,1,0,"mat-progress-bar",5),d(1,"section",6),x(2,Ls,5,0,"section",7),d(3,"form",8),x(4,Js,19,28,"div",7),l()()),e&2){let t=o,i=m();_(t.loadingStoreExam||t.processing?0:-1),r(2),_(t.loadingStoreExam?2:-1),r(),k("formGroup",i.checkoutForm),r(),_(t.loadingStoreExam?-1:4)}}function el(e,o){e&1&&w(0,"div",33)}var Ht=(()=>{class e extends se{constructor(t,i,n){super(),this.store=t,this.breakpointObserver=i,this.route=n,this.buttonSizes=Le,this.buttonTypes=Ke,this.systemValidationAcknowledgement$=new pt(!1),this._searchTerm=window.history.state?.searchTerm??null,this.viewModel$=q([this.store.storeExamDeliveryType$,this.store.schedulingData$,this.store.checkoutSelectedStepIndex$,this.store.accommodationRequests$,this.store.processing$,this.store.isResc
449heduleReservation$,this.systemValidationAcknowledgement$,this.store.reservation$,this.store.storeExam$,this.breakpointObserver.observe("(min-width: 960px)"),this.store.authorizationCode$,this.store.storeExamLoaded$,this.store.isStoreExamEligible$,this.store.showSchedulingCalendar$]).pipe(ie(([s,f,v,D,I,E,$,te,J,ae,X,c,C,M])=>{let F=s.isScheduled&&f.selectedSlot===null,K=s.isLiveProctored,Y=dt(je.Scheduling,s.isLiveProctored),j=dt(je.Review,s.isLiveProctored),Ae=!s.isTestCenter,Ut=D.processAccommodationInCertiverseEnabled&&(D.accommodationOptions.length>0||D.accommodationHtmlRequestForm)&&!E,Qt=J.languages.length>1,Kt=J.displayedCurrency?.priceAmount>0&&!E,ft=ae?"horizontal":"vertical",Jr=document.getElementById("dark-header")?.clientHeight;return new Hi(!c,I,Ae,F,Ut,Jr,ft,v,C,te,J.storeExamId,X,Qt,M,K,$,Y,j,J,Kt,E,s.isSecureBrowser,s.isLiveProctored)})),this.cancelCheckout=()=>{if(this.shouldReleaseSlot()){this.releaseSlot();return}if(this.shouldNavigateToTestCenter()){this.navigateToTestCenter();return}if(this.shouldNavigateToDashboard()){this._router.navigate(["dashboard"]);return}this.navigateToStoreExamPage()},this.shouldReleaseSlot=()=>!!this.checkoutForm.controls.externalSchedulingSystemSlotId.value,this.releaseSlot=()=>{this.store.storeExam$.pipe(O()).subscribe(s=>{let f=new Et(!0,s.storeExamId,this.checkoutForm.controls.externalSchedulingSystemSlotId.value);this.store.releaseSlot(f)})},this.shouldNavigateToTestCenter=()=>this.route.snapshot.data.isTestCenter,this.navigateToTestCenter=()=>{let s=localStorage.getItem("testCenterCode")?`./store/test-center/${localStorage.getItem("testCenterCode")}`:"./";this._router.navigate([s])},this.shouldNavigateToDashboard=()=>this.route.snapshot.params.rescheduledReservationId,this.navigateToStoreExamPage=()=>{this.store.organization$.pipe(O()).subscribe(s=>{this._router.navigate([`./store/${s.code??localStorage.getItem("orgCode")}`])})},this.validateScheduling=()=>{q([this.store.schedulingData$,this.store.storeExam$,this.store.selectedAccommodationRequest$,this.store.selectedTimeZone$,this.store.storeExamDeliveryType$]).pipe(O()).subscribe(([s,f,v,D,I])=>{if(this.checkoutForm.controls.examLanguage.invalid||this.checkoutForm.controls.testCenterSessionId.invalid||this.checkoutForm.controls.customFields.invalid||!D&&I.isScheduled){this.examLanguage?.markAsTouched(),this.candidateInfo?.markAllAsTouched(),this.deliveryLocation?.markAsTouched(),this.scheduling?.markAsTouched(),this.checkoutForm.controls.testCenterSessionId.markAllAsTouched();let E=this.translateText(P.MarketErrorMissingRequiredFields),$=this.translateText(P.CommonButtonDismiss);this._snackBar.open(E,$,{duration:8e3});return}if(this.deliveryLocation){if(this.deliveryLocation.browserCountryControl.invalid||typeof this.deliveryLocation.browserCountryControl.getRawValue()=="string"){this.deliveryLocation.markAsTouched();let E=this.translateText(P.MarketErrorMissingDeliveryLocation),$=this.translateText(P.CommonButtonDismiss);this._snackBar.open(E,$,{duration:8e3});return}if(this.deliveryLocation.timeZoneControl().invalid){this.deliveryLocation.markAsTouched();let E=this.translateText(P.MarketErrorMissingTimeZone),$=this.translateText(P.CommonButtonDismiss);this._snackBar.open(E,$,{duration:8e3});return}}if(f.deliveryType.isScheduled)if(this.shouldHoldSlot(s)){let E=new zi(f.storeExamId,s.selectedSlot.externalSchedulingSystemProctorIds,s.selectedSlot.startDate,s.selectedSlot.endDate,D.ianaTimeZoneName,v?.additionalTimeInMinutes);this.store.holdSlot(E)}else{let E=dt(je.Review,f.deliveryType.isLiveProctored);this.store.setCheckoutStep(E)}else this.goToReview(),this.store.setPaymentMethod(this.checkoutForm.controls.paymentMethod.value)})},this.shouldHoldSlot=s=>!!s.selectedSlot&&!s.isScheduleSaved,this.finishCheckout=()=>
449{if(this.checkoutForm.invalid){this.updateValidationCheckoutForm();return}this.viewModel$.pipe(O()).subscribe(s=>lt.pushCheckoutStepEvent(Rt.ViewPaymentInfo,s,this._searchTerm)),this.confirmReservation()},this.openRequestAcommodation=()=>{q([this.store.accommodationRequests$,this.store.selectedAccommodationRequest$]).pipe(O()).subscribe(([s,f])=>{let v=new co(s.accommodationHtmlRequestForm,s.accommodationOptions,f);this._dialog.open(Fr,{data:v,width:"95%",maxWidth:"692px",autoFocus:"dialog",panelClass:["dialog--surface-high"]}).afterClosed().pipe(O()).subscribe(I=>{I!==void 0&&this.store.updateRequestAccommodation(I)})})},this.systemValidationAcknowledged=s=>{this.store.updateProcessing(!0);let f=setTimeout(()=>{this.store.updateProcessing(!1),this.systemValidationAcknowledgement$.next(s.checked),clearTimeout(f)},1e3)},this.previousStep=()=>{this.store.checkoutSelectedStepIndex$.pipe(O()).subscribe(s=>{let v=s===0?0:s-1;this.store.setCheckoutStep(v)})},this.getStepLabel=s=>s.showVerifyCompatibilityStep&&s.stepperSelectedIndex===0?this._localizationStore.translate(P.MarketBookingProgressVerify):s.stepperSelectedIndex===s.schedulingStepIndex?this._localizationStore.translate(P.MarketBookingProgressScheduling):this._localizationStore.translate(s.showPayment?P.MarketBookingProgressReviewPayment:P.MarketBookingProgressReview),this.goToReview=()=>{this.store.checkoutSelectedStepIndex$.pipe(O()).subscribe(s=>{this.store.setCheckoutStep(s+1)}),this.store.updateProcessing(!1)},this.confirmReservation=()=>{q([this.store.storeExam$,this.store.isRescheduleReservation$,this.store.rescheduledReservation$,this.store.authorizationCode$,this.store.personCustomFields$,this.store.selectedTimeZone$]).pipe(O()).subscribe(([s,f,v,D,I,E])=>{f?this.rescheduleReservation(s,v.reservationId,D,I,E):this.createReservation(s,D,I,E)})},this.clearPaymentCode=()=>{this.checkoutForm.controls.paymentCode.value&&this.store.storeExam$.pipe(O()).subscribe(s=>{let f=jt(s.paymentMethods)?L.CreditCard:L[s.paymentMethods[0]];this.checkoutForm.controls.paymentCode.setValue(null),this.checkoutForm.controls.paymentCode.updateValueAndValidity(),this.checkoutForm.controls.paymentMethod.setValue(f),this.checkoutForm.controls.paymentMethod.updateValueAndValidity(),this.store.setPaymentMethod(f),this.store.setPaymentCode(new He(!1,null,0,0,""))})},this.getTestCenterSessionCommand=()=>{let s=this.checkoutForm.controls.testCenterSessionId.value;return s?new ea(this.route.snapshot.params.testCenterGroupId,this.route.snapshot.params.testCenterId,s):null},this.getPayment=s=>{if(s.paymentMethods.length===0)return null;let f=this.checkoutForm.controls.paymentMethod.value,v=s.hasActivePromoCodes&&f===L.CreditCard&&this.checkoutForm.controls.paymentCode.value;return new Un(s.displayedCurrency?.priceAmount>0?f:null,s.displayedCurrency?.priceAmount,s.displayedCurrency?.priceAmount>0?this.getPaymentMethodData(s,f):null,v?this.checkoutForm.controls.paymentCode.value:null)},this.getPaymentMethodData=(s,f)=>{switch(f){case L.Voucher:return new Qn(this.checkoutForm.controls.paymentCode.value);case L.CreditCard:let v=`${this._settings.settings.marketPlace.domain}/#/checkout/checkout-reservation`,D=`${v}/success`,I=`${v}/error`,E=this.checkoutForm.controls.invoiceDescription.value;return new Kn(1,s.displayedCurrency.priceAmount,D,I,E);default:throw new Error("Payment method not supported")}},this.updateValidationCheckoutForm=()=>{this.checkoutForm.markAllAsTouched(),Object.values(this.checkoutForm.controls).forEach(s=>{s.updateValueAndValidity()})},this.onReservationCreated=s=>{this.store.storeExam$.pipe(O()).subscribe(f=>{let v=this.checkoutForm.controls.paymentCode.value?.toLowerCase()||void 0,D=lt.buildPurchasePayload(f,s,v,this._searchTerm);if(s.payment?.shouldNavigateToPaymentScreen){localStorage.setItem(lt.getPurchaseStorageKey(this._userId),JSON.stringify(D)),window.location.href=s.payment.checkoutSessionUri,this.store.saveReservationId(s.reservationId);return}Xt.Push(S({event:Rt.Purchase},D)),this._router.navigate(["dashboard"])})},this.onValidationComplete=s=>{this.openErrorDialog(s.errorMessage,s.title,s.buttonLabel,s.successCallback)},this.openErrorDialog=(s,f,v,D)=>
449{let I=!!this.route.snapshot.params.rescheduledReservationId,E=I?P.CommonButtonBackToDashboard:P.CommonButtonBackToStore,$=v||this._localizationStore.translate(E),te=I?P.MarketErrorRescheduleLabel:P.MarketErrorPrerequisiteLabel,J=f??this._localizationStore.translate(te),ae=D??this.cancelCheckout,X=new sa(s,$,J);this.displayCustomErrorDialog(X,null,ae)},this.createReservation=(s,f,v,D)=>{let I=s.deliveryType.isScheduled,E=s.deliveryType.isTestCenter,$=s.eligibilityProvider,J=Ce[$]===Ce.AuthorizationCode?new Xn(f):null,ae;if(I){let Y=Mo(this.checkoutForm.controls.scheduleStartDate.value).toISOString().replace("Z",""),j=Q.fromISO(Y,{zone:D.ianaTimeZoneName});ae=new Eo(s.deliveryType.id,D.ianaTimeZoneName,j.toUTC().toJSDate(),j.offset,this.checkoutForm.controls.externalSchedulingSystemSlotId.value)}else ae=new Eo(s.deliveryType.id,zr.default.tz.guess(),null,null,null);let X=[];s.customFields.forEach(Y=>{let j=this.checkoutForm.controls.customFields.controls.find(ft=>ft.controls.customFieldId.value===Y.id),Ae=j&&(j.controls.customFieldValue.value||j.controls.customFieldValue.value===0),Ut=v.find(ft=>ft.customFieldId===Y.id)?.customFieldValue,Qt=j&&!j.controls.customFieldValue.value&&Ut,Kt=j.value.fieldType===Tn.Country?j.value.customFieldAutoComplete:j.controls.customFieldValue.value;(Ae||Qt)&&X.push(new Jn(j.controls.customFieldId.value,Kt.value??Kt,j.controls.isOrganizationCustomField.value))});let c=s.bookingException?.exceptionId,C=this.getTestCenterSessionCommand(),M=this.deliveryLocation?.browserCountryControl.value,F=E?s.testCenterLocationCountryCode:M.countryCode,K=new Yn(s.storeExamId,this.getPayment(s),ae,this.examLanguage.examLanguageControl.value.value,E,C,F,s.displayedCurrency.currencyCode,X.length>0?X:null,J,c,this.checkoutForm.controls.bookingAccommodationId.value);this.store.createReservation(K)},this.rescheduleReservation=(s,f,v,D,I)=>{let E=s.eligibilityProvider,te=Ce[E]===Ce.AuthorizationCode?new Nn(v):null,J=Mo(this.checkoutForm.controls.scheduleStartDate.value).toISOString().replace("Z",""),ae=Q.fromISO(J,{zone:I.ianaTimeZoneName}),X=new $n(s.deliveryType.id,I.ianaTimeZoneName,ae.offset,ae.toUTC().toJSDate(),this.checkoutForm.controls.externalSchedulingSystemSlotId.value),c=[];s.customFields.forEach(M=>{let F=this.checkoutForm.controls.customFields.controls.find(Ae=>Ae.controls.customFieldId.value===M.id),K=F&&(F.controls.customFieldValue.value||F.controls.customFieldValue.value===0),Y=D.find(Ae=>Ae.customFieldId===M.id)?.customFieldValue,j=F&&!F.controls.customFieldValue.value&&Y;(K||j)&&c.push(new qn(F.controls.customFieldId.value,F.controls.customFieldValue.value,F.controls.isOrganizationCustomField.value))});let C=new Zn(f,s.storeExamId,this.examLanguage.examLanguageControl.value.value,te,X,c);this.store.rescheduleReservation(C)},this.patchAccommodationIdFormControl=s=>{let f=s===Ee.CountryWithoutLanguageFixedTime?null:s;this.checkoutForm.controls.bookingAccommodationId.setValue(f)},this.patchTimeZoneFormControl=s=>{this.checkoutForm.controls.timeZone.setValue(s)},this.handleError=s=>{if(s?.error?.pValueHandled&&s.error.isModal){let v=s.error,D=v.title,I=v.messageSubstitutionValues,E=v.messageLocalizationCode,$=!!this.route.snapshot.params.rescheduledReservationId,te=$&&!v.messages?.[0]?this._localizationStore.translate(P.MarketErrorRescheduleMessage007):v.messages?.[0],J=!!E,ae=I??[],X=J?this._localizationStore.translateLocalizationId(E,ae):te;if(X||(X=(v.messages??[]).join(", ")),!X&&s.status===400){let C=s.error?.errors;if(C&&typeof C=="object"){let M=[];for(let F of Object.keys(C)){let K=C[F];Array.isArray(K)&&M.push(...K.filter(Y=>typeof Y=="string"))}M.length>0&&(X=M.join(", "))}}let c=$?P.MarketErrorRescheduleLabel:P.MarketErrorPrerequisiteLabel;!D&&s.status===403&&(D=this._localizationStore.translate(c)),this.openErrorDialog(X,D)}else this._handleError(s)},this.translateText=s=>this._localizationStore.translate(s),this._forceLightMode(),this.checkoutForm=new $e({examLanguage:new R(null),paymentCode:new R(""),isPromoCodeAutoApplied:new R(!1),scheduleStartDate:new R(null),scheduledDateConvertedTimeZone:new R(null),timeZone:new R(null),scheduleEnd
449Date:new R(null),externalSchedulingSystemSlotId:new R(null),paymentMethod:new R(null),testCenterSessionId:new R(null),browserCountry:new R(null,[G.required]),customFields:new Ci([new $e({customFieldId:new R(""),label:new R(""),fieldType:new R(""),fieldDataType:new R(null),isOrganizationCustomField:new R(!1),customFieldValue:new R(null),customFieldPlaceHolder:new R(""),customFieldAutoComplete:new R(null),customFieldAutoCompleteOptions:new R([]),customFieldAutoCompleteFilteredOptions:new R([])})]),bookingAccommodationId:new R(null),invoiceDescription:new R("")});let a=this.setupFormGroup(),u=this.setupScheduleDate();this._subscriptions.push(this.store.reservation$.pipe(Je(s=>!!s)).subscribe(this.onReservationCreated),this.store.error$.pipe(Je(s=>!!s)).subscribe(this.handleError),this.store.validationResult$.pipe(Je(s=>!!s)).subscribe(this.onValidationComplete),this.store.cancelCheckout$.pipe(Je(s=>!!s)).subscribe(this.cancelCheckout),this.store.clearPaymentCode$.subscribe(this.clearPaymentCode),this.store.selectedAccommodationRequest$.pipe(Je(s=>!!s)).subscribe(s=>this.patchAccommodationIdFormControl(s.id)),u,a,this.store.selectedTimeZone$.pipe(Je(s=>!!s)).subscribe(s=>this.patchTimeZoneFormControl(s.ianaTimeZoneName)))}ngOnInit(){this.store.init(),this._subscriptions.push(this.viewModel$.pipe(Je(t=>!t.loadingStoreExam&&t.stepperSelectedIndex===t.schedulingStepIndex),O()).subscribe(t=>lt.pushCheckoutStepEvent(Rt.ViewExamScheduling,t,this._searchTerm))),this._subscriptions.push(this.viewModel$.pipe(Je(t=>!t.loadingStoreExam&&t.stepperSelectedIndex===t.reviewStepIndex),O()).subscribe(t=>lt.pushCheckoutStepEvent(Rt.ViewReviewAndPayment,t,this._searchTerm)))}ngOnDestroy(){return super.ngOnDestroy()}preventEnterSubmit(t){t.preventDefault()}setupFormGroup(){return q([this.store.storeExam$,this.store.isRescheduleReservation$]).subscribe(([t,i])=>{if(t.deliveryType.isScheduled?(this.checkoutForm.controls.scheduleStartDate.setValidators(G.required),this.checkoutForm.controls.externalSchedulingSystemSlotId.setValidators(G.required)):(this.checkoutForm.controls.scheduleStartDate.clearValidators(),this.checkoutForm.controls.externalSchedulingSystemSlotId.clearValidators()),this.checkoutForm.controls.scheduleStartDate.setValue(null),this.checkoutForm.controls.scheduleEndDate.setValue(null),this.checkoutForm.controls.externalSchedulingSystemSlotId.setValue(null),this.checkoutForm.controls.scheduleStartDate.updateValueAndValidity(),this.checkoutForm.controls.scheduleEndDate.updateValueAndValidity(),this.checkoutForm.controls.externalSchedulingSystemSlotId.updateValueAndValidity(),t.languages.length===1&&this.checkoutForm.controls.examLanguage.setValue(t.languages[0]),t.languages.length>1&&(this.checkoutForm.controls.examLanguage.setValidators(G.required),this.checkoutForm.controls.examLanguage.updateValueAndValidity()),t.paymentMethods.length===1){let n=L[t.paymentMethods[0]];this.checkoutForm.controls.paymentMethod.setValue(n)}else jt(t.paymentMethods)&&this.checkoutForm.controls.paymentMethod.setValue(L.CreditCard);this.checkoutForm.controls.testCenterSessionId.clearValidators(),this.checkoutForm.controls.browserCountry.clearValidators(),t.deliveryType.isTestCenter&&this.checkoutForm.controls.testCenterSessionId.setValidators(G.required),!t.deliveryType.isTestCenter&&!i&&this.checkoutForm.controls.browserCountry.setValidators(G.required),this.checkoutForm.controls.testCenterSessionId.setValue(null),this.checkoutForm.controls.testCenterSessionId.updateValueAndValidity(),this.checkoutForm.controls.browserCountry.updateValueAndValidity()})}setupScheduleDate(){return this.store.scheduleDate$.subscribe(t=>{!t.scheduleStartDate&&!t.scheduleEndDate&&(this.checkoutForm.controls.scheduleStartDate.setValue(null),this.checkoutForm.controls.scheduleEndDate.setValue(null),this.checkoutForm.controls.externalSchedulingSystemSlotId.setValue(null)),t&&(t.scheduleStartDate&&this.checkoutForm.controls.scheduleStartDate.setValue(new Date(t.scheduleStartDate)),t.scheduleEndDate&&this.checkoutForm.controls.scheduleEndDate.setValue(new Date(t.scheduleEndDate)),this.checkoutForm.controls.externalSchedulingSystemSlotId.setValue(t.externalSchedulingSystemSlotId)),t.testCenterSessionId&&(this.checkoutForm.controls.testCenterSessionId.setValue(t.testCenterSessionId),this.checkoutForm.controls.scheduleStartDate.setValue(t.scheduleStartDate),this.checkoutForm.controls.scheduledDateConvertedTimeZone.setValue(t.scheduledDateConvertedTimeZone),this.checkoutForm.controls.timeZone.setValue(t.timeZone))})}static{this.\u0275fac=function(i){return new(i||e)(V(ne),V(rn),V(kt))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout"]],viewQuery:function(i,n){if(i&1&&yt(Ps,5)(Rs,5)(Fs,5)(zs,5),i&2){let a;be(a=De())&&(n.examLanguage=a.first),be(a=De())&&(n.deliveryLocation=a.first),be(a=De())&&(n.candidateInfo=a.first),be(a=De())&&(n.scheduling=a.first)}},standalone:!1,features:[Bt([ne]),re],decls:4,vars:3,consts:[["scrollUpAfterStepChange",""],["examLanguage",""],["candidateInfo",""],["deliveryLocation",""],["scheduling",""],["mode","indeterminate","color","accent"],[1,"checkout__main"],[1,"checkout__container"],[3,"formGroup"],[1,"p-t-32"],[3,"label","currentStep","totalSteps"],[1,"checkout__step",3,"ngClass"],[3,"accommodationRequested","showAccommodationButton","hasMultipleLanguages"],[3,"accommodationRequested","examLanguageControl","showAccommodationButton"],[3,"checkoutForm"],[3,"browserCountryControl","timeZoneControl","timeZoneValue"],[3,"externalSchedulingControl"],[1,"checkout__footer"],["matButton","outlined",3,"click","disabled"],["matButton","tonal",3,"click","disabled"],[4,"ngTemplateOutlet"],[1,"checkout__step"],["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"flex-grow","p-0"],[1,"checkout__description","m-b-30","body--large"],[1,"text-center"],[3,"isSecureBrowser","storeExamId","isCardStyleFilled"],[1,"m-t-30","m-b-30"],[3,"change","keydown.enter"],[3,"checkoutCurrentStep","checkoutForm"],["matButton","filled",3,"click","disabled"],["tabindex","-1","autofocus","","aria-hidden","true"]],template:function(i,n){if(i&1&&(x(0,Xs,5,4),h(1,"async"),ot(2,el,1,0,"ng-template",null,0,mi)),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},styles:[".checkout__main[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface);padding:var(--mat-sys-measurement-space600) 0 var(--mat-sys-measurement-space900);min-height:calc(100vh - var(--page-header) - var(--page-footer));display:flex;flex-flow:column}.checkout__container[_ngcontent-%COMP%]{max-width:1200px;width:90%;margin:auto}.checkout__step[_ngcontent-%COMP%]{margin-top:var(--mat-sys-measurement-space300);display:flex;flex-flow:column;gap:var(--mat-sys-measurement-space300)}.checkout__description[_ngcontent-%COMP%]{line-height:2}.checkout__footer[_ngcontent-%COMP%]{display:flex;gap:var(--mat-sys-measurement-space150)}@media screen and (max-width:959px){.checkout__main[_ngcontent-%COMP%]{padding-top:var(--mat-sys-measurement-space200)}.checkout__step[_ngcontent-%COMP%]{margin-top:var(--mat-sys-measurement-space100)}}@media screen and (max-width:599px){.checkout__main[_ngcontent-%COMP%]{padding:var(--mat-sys-measurement-space200) 0 var(--mat-sys-measurement-space500)}}"],changeDetection:0})}}return e})();var mo=class{constructor(o,t,i,n,a,u,s,f,v){this.message=o,this.title=t,this.buttonMessage=i,this.success=n,this.flagType=a,this.flagDescription=u,this.showBanner=s,this.showCertiverseLogo=f,this.isFullPage=v,this.showTitle=!!t}};var tl=e=>({fullPage:e}),il=e=>({description:e});function ol(e,o){e&1&&w(0,"img",1)}function nl(e,o){if(e&1&&(d(0,"mat-card-header")(1,"h2",7),p(2),l(
449)()),e&2){let t=m();r(2),y(t.title)}}function al(e,o){if(e&1){let t=H();d(0,"div",0),x(1,ol,1,0,"img",1),d(2,"div",2),w(3,"lib-flags",3),d(4,"mat-card",4),x(5,nl,3,1,"mat-card-header"),d(6,"mat-card-content"),w(7,"p",5),l(),d(8,"mat-card-actions")(9,"button",6),A("click",function(){z(t);let n=m();return B(n.backToHome())}),p(10),l()()()()()}if(e&2){let t=o,i=m();k("ngClass",Re(9,tl,t.isFullPage)),r(),_(t.showCertiverseLogo?1:-1),r(2),k("context",t.flagType)("content",Re(11,il,t.flagDescription)),r(2),_(t.showTitle?5:-1),r(2),k("innerHTML",t.message,zt),r(2),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Small),r(),T(" ",t.buttonMessage," ")}}var Wt=(()=>{class e extends se{constructor(t){super(),this.activatedRoute=t,this.$viewModel=new pt(null),this.checkoutConfirmationType=this.activatedRoute.snapshot.data.checkoutConfirmationType,this.storeExamPaymentMethodType=this.activatedRoute.snapshot.data.paymentMethod,this.buttonSizes=Le,this.buttonTypes=Ke,this.backToHome=()=>{switch(this.checkoutConfirmationType){case et.VoucherPurchase:this._router.navigate(["/voucher-portal/voucher-purchases"]);break;case et.Reservation:this._router.navigate(["/dashboard"])}},this.buildViewModel=()=>{let i=this._userSession.isUserLoggenIn(),n=this.activatedRoute.snapshot.data.success,a=null,u=null,s=null,f=n?Jt.Success:Jt.Error,v=null;switch(this.checkoutConfirmationType){case et.VoucherPurchase:a=n?"Thank you for your order":"Your order failed.",u=n?this.storeExamPaymentMethodType==L.CreditCard?"You will receive a notification in the Certiverse application and by email when the vouchers you requested are ready.":"Your transaction was successfully submitted and you will receive notification in the Certiverse application and by email once the transaction has been approved and the vouchers have been generated.":"Something went wrong with your order. Please try again later.",s="Go to Voucher Purchases",v=n?"Success":"Transaction Failed";break;case et.Reservation:if(lt.firePurchaseFromStorage(this._userId,n),i&&n){this._router.navigate(["/dashboard"],{queryParams:{payment:In.Success}});return}let D=`${Ii}${this._userId}`,I=JSON.parse(localStorage.getItem(D));!n&&I&&localStorage.removeItem(D),v=n?'<span class="medium">Payment details successfully submitted for processing.</span>':"Transaction Failed",a=n?"":"Your order failed",u=n?'<p class="m-t-0">The payment transaction has been submitted for processing. In most cases the payment is confirmed immediately, and your exam will be available to start on the \u201CMy Exams\u201D page.</p> In some cases the payment confirmation may take some time, and the reservation will not be immediately available to start. Once the payment is confirmed you will receive an email and the reservation will be available to start.':"Something went wrong with your order. Please try again later.",s=n?null:"Go to Homepage";break}this.$viewModel.next(new mo(u,a,s,n,f,v,!0,!1,!1))}}ngOnInit(){this._updateThemeVersion(Ei.CV2),this._forceLightMode(),this.buildViewModel()}static{this.\u0275fac=function(i){return new(i||e)(V(kt))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-confirmation-page"]],standalone:!1,features:[re],decls:2,vars:3,consts:[[1,"main-content",3,"ngClass"],["src","assets/brand/v2.0/Colored/Horizontal/CVLogo-noTag-horizontal-colored.svg","alt","Certiverse Logo",1,"logo"],[1,"main-section"],[3,"context","content"],["appearance","raised",1,"m-t-20","card--status-message"],[1,"body--large",3,"innerHTML"],["matButton","filled",3,"click"],[1,"headline--small"]],template:function(i,n){if(i&1&&(x(0,al,11,13,"div",0),h(1,"async")),i&2){let a;_((a=g(1,1,n.$viewModel))?0:-1,a)}},dependencies:[nt,ue,pe,Si,ve,he,Vi,ee],styles:[".main-content[_ngcontent-%COMP%]{align-items:center;background-color:var(--mat-sys-surface);display:flex;flex-direction:column;flex-grow:1;gap:3%;min-height:calc(100vh - var(--page-header) - var(--page-footer))}.logo[_ngcontent-%COMP%]{min-width:400px;width:30%;margin:4rem 0 1.5rem}.main-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;margin:var(--mat-sys-measurement-space300) var(--mat-sys-measurement-space400);--flag-width: 100%}.fullPage[_ngcontent-%COMP%]{height:100vh;margin-top:0;min-height:100vh;padding-bottom:0}.content[_ngcontent-%COMP%]{margin:1.5em 0}@media screen and (max-width:1279px){.main-section[_ngcontent-%COMP%]{margin:1.5em 10%}}"]})}}return e})();var Br=[{path:":organizationLandingPageCode/store-exam/:storeExamCode/reschedule/:rescheduledReservationId",component:Ht,canActivate:[Ai],data:{functionPoints:[],useOganizationLoginPage:!0,localizationEnabled:!0}},{path:":organizationLandingPageCode/store-exam/:storeExamCode",component:Ht,canActivate:[Ai],data:{functionPoints:[],useOganizationLoginPage:!0,localizationEnabled:!0}},{path:"test-center/:storeExamId/:testCenterGroupId/:testCenterId",component:Ht,canActivate:[Ai],data:{functionPoints:[],useOganizationLoginPage:!0,isTestCenter:!0,localizationEnabled:!0}},{path:"checkout-confirmation/success/ach",component:Wt,data:{success:!0,checkoutConfirmationType:et.VoucherPurchase,paymentMethod:L.UsBankACH}},{path:"checkout-confirmation/success/credit-card",component:Wt,data:{success:!0,checkoutConfirmationType:et.VoucherPurchase,paymentMethod:L.CreditCard}},{path:"checkout-confirmation/error",component:Wt,data:{success:!1,checkoutConfirmationType:et.VoucherPurchase}},{path:"checkout-reservation/success",component:Wt,data:{success:!0,checkoutConfirmationType:et.Reservation}},{path:"checkout-reservation/error",component:Wt,data:{success:!1,checkoutConfirmationType:et.Reservation}}];function rl(e,o){if(e&1&&p(0),e&2){let t=m();T(" (",t.storeExamCode,") ")}}function sl(e,o){if(e&1&&(d(0,"mat-icon",9),p(1,"info"),l()),e&2){let t=m();k("matTooltip","Accommodation Type: "+t.accommodationDetail.description),Z("aria-label","Accommodation Type: "+t.accommodationDetail.description)}}function ll(e,o){if(e&1&&(d(0,"p",7),p(1),h(2,"translate"),l()),e&2){let t=m(),i=m();r(),Pe("",t.totalDuration," ",g(2,2,i.localizationId.MarketBookingSchedulingMinutes))}}function cl(e,o){if(e&1&&(d(0,"p",7),p(1),h(2,"translate"),h(3,"translate"),h(4,"translate"),l()),e&2){let t=m(),i=m();r(),di("",t.totalDuration," ",g(2,6,i.localizationId.MarketBookingSchedulingMin)," (",t.durationInMinutes," ",g(3,8,i.localizationId.MarketBookingSchedulingMin)," + ",t.accommodationDetail.additionalTimeInMinutes," ",g(4,10,i.localizationId.MarketBookingSchedulingMin),")")}}function dl(e,o){if(e&1&&(d(0,"div",13)(1,"h3",3),p(2),h(3,"translate"),l(),d(4,"p",7),p(
4495),h(6,"date"),l(),d(7,"p",7),p(8),l()(),d(9,"div",13)(10,"h3",3),p(11),h(12,"translate"),l(),d(13,"p",7),p(14),l()()),e&2){let t=m(),i=m();r(2),y(g(3,5,i.localizationId.MarketBookingSchedulingOriginalDateTime)),r(3),y(W(6,7,t.rescheduledReservationDate,"MMM dd, yyyy 'at' hh:mm a")),r(3),T("(",t.rescheduleInfoMessage,")"),r(3),y(g(12,10,i.localizationId.MarketBookingSchedulingOriginalTimeZone)),r(3),y(t.rescheduledTimeZone)}}function ml(e,o){if(e&1){let t=H();d(0,"button",14),A("click",function(){z(t);let n=m(2);return B(n.accommodationRequested.emit())}),d(1,"mat-icon",15),p(2,"accessibility_new"),l(),p(3),h(4,"translate"),l()}if(e&2){let t=m(2);Z("type",t.buttonTypes.Round)("size",t.buttonSizes.Small),r(3),T(" ",g(4,3,t.localizationId.MarketCommonRequestAccommodation)," ")}}function ul(e,o){if(e&1&&(d(0,"mat-card",1)(1,"mat-card-header",2)(2,"h2",3),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),d(6,"mat-card-content",4)(7,"div",5)(8,"div",6)(9,"h3",3),p(10),h(11,"translate"),l(),d(12,"p",7),p(13),l()(),d(14,"div",6)(15,"h3",3),p(16),h(17,"translate"),l(),d(18,"p",7),p(19),x(20,rl,1,1),l()(),d(21,"div",6)(22,"h3",3)(23,"span",8),p(24),h(25,"translate"),l(),x(26,sl,2,2,"mat-icon",9),l(),x(27,ll,3,4,"p",7),x(28,cl,5,12,"p",7),l(),d(29,"div",6)(30,"h3",3),p(31),h(32,"translate"),l(),d(33,"p",7),p(34),l()(),x(35,dl,15,12),l(),d(36,"div",10),w(37,"img",11),x(38,ml,5,5,"button",12),l()()()),e&2){let t=o,i=m();Do("p-b-0",!i.hasMultipleLanguages()),r(3),y(g(4,20,i.localizationId.MarketBookingSchedulingSummaryLabel)),r(7),y(g(11,22,i.localizationId.MarketCommonOrganization)),r(3),y(t.organizationName),r(3),y(g(17,24,i.localizationId.MarketCommonExam)),r(3),T("",t.storeExamName," "),r(),_(t.storeExamCode?20:-1),r(4),y(g(25,26,i.localizationId.MarketCommonDuration)),r(2),_(t.showRequestAccommodationDetails&&(t.accommodationDetail!=null&&t.accommodationDetail.additionalTimeInMinutes)?26:-1),r(),_(t.showRequestAccommodationDetails?-1:27),r(),_(t.showRequestAccommodationDetails?28:-1),r(3),y(g(32,28,i.localizationId.MarketCommonProctoringType)),r(3),y(t.deliveryTypeName),r(),_(t.isRescheduleReservation?35:-1),r(),Do("exam-column--multilang",i.hasMultipleLanguages()),r(),k("src",Jo(t.imageUrl),Qo),r(),_(i.showAccommodationButton()&&i.hasMultipleLanguages()?38:-1)}}var Lr=(()=>{class e{constructor(t){this.store=t,this.showAccommodationButton=vt(!1),this.hasMultipleLanguages=vt(!1),this.accommodationRequested=ui(),this.localizationId=P,this.buttonTypes=Ke,this.buttonSizes=Le,this.viewModel$=q([this.store.storeExam$,this.store.isRescheduleReservation$,this.store.rescheduledReservation$,this.store.rescheduleInfoMessage$,this.store.selectedAccommodationRequest$]).pipe(ie(([i,n,a,u,s])=>{let f=!!s;return new Oo(i.imageUrl,i.organizationName,i.storeExamName,u,i.durationInMinutes,i.deliveryType.name,i.storeExamCode,n,n?a.scheduledDateUtc:null,n?a.scheduledTimeZone:null,f,s)}))}static{this.\u0275fac=function(i){return new(i||e)(V(ne))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-exam-summary"]],inputs:{showAccommodationButton:[1,"showAccommodationButton"],hasMultipleLanguages:[1,"hasMultipleLanguages"]},outputs:{accommodationRequested:"accommodationRequested"},standalone:!1,decls:2,vars:3,consts:[["appearance","filled",1,"card--filled",3,"p-b-0"],["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"summary-grid","p-0"],[1,"card--filled__content"],[1,"card--filled__item"],[1,"body--large"],[1,"v-middle"],["aria-hidden","false","matTooltipPosition","right",1,"v-middle","m-l-4","inline-flex","justify-center","icon-sm","align-center","material-symbols-outlined",3,"matTooltip"],[1,"exam-column"],["onError","src='assets/images/favicon.png';",1,"exam-image","hide-lt-md",3,"src"],["matButton","outlined",1,"accommodation-btn"],[1,"card--filled__item","width-80"],["matButton","outlined",1,"accommodation-btn",3,"click"],["aria-hidden","true",1,"accommodation-btn-icon"]],template:function(i,n){if(i&1&&(x(0,ul,39,30,"mat-card",0),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[ue,pe,ve,he,Te,oe,Nt,ee,Ge,U],styles:[".summary-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto}.exam-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:end;justify-content:space-between;padding-left:var(--mat-sys-measurement-space200)}.exam-image[_ngcontent-%COMP%]{max-width:100px;height:auto;object-fit:contain;display:block}.icons[_ngcontent-%COMP%]{font-size:1.5625rem;color:var(--mat-sys-on-surface-variant);vertical-align:middle}.accommodation-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.accommodation-btn-icon[_ngcontent-%COMP%]{font-size:24px;color:var(--mat-sys-on-surface-variant)}@media screen and (max-width:959px){.summary-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.exam-column[_ngcontent-%COMP%]{padding-left:0;align-items:flex-start;justify-content:flex-start}.exam-column--multilang[_ngcontent-%COMP%]{padding-top:var(--mat-sys-measurement-space300)}}@media screen and (max-width:1919px){.width-80[_ngcontent-%COMP%]{width:80%}}"],changeDetection:0})}}return e})(),Oo=class{constructor(o,t,i,n,a,u,s,f,v,D,I,E){this.imageUrl=o,this.organizationName=t,this.storeExamName=i,this.rescheduleInfoMessage=n,this.durationInMinutes=a,this.deliveryTypeName=u,this.storeExamCode=s,this.isRescheduleReservation=f,this.rescheduledReservationDate=v,this.rescheduledTimeZone=D,this.showRequestAccommodationDetail
449s=I,this.accommodationDetail=E,this.totalDuration=a+(this.showRequestAccommodationDetails?this.accommodationDetail.additionalTimeInMinutes:0)}};var uo=class{constructor(o,t,i,n,a,u,s,f){this.id=o,this.numberOfSeats=t,this.numberOfTakenSeats=i,this.startDateUtc=n,this.startDateConvertedTimeZone=a,this.timeZone=u,this.locationWindowsTimeZoneDisplayName=s,this.timeZoneOffsetInMinutes=f,this.hasSeatsAvailable=!0,this.hasSeatsAvailable=t-i>0}};var zp=ri(Ao());var po=(e,o,t,i,n)=>{if(!e||!o||!t||typeof e=="string"&&!isNaN(Date.parse(e)))return!1;let a=e;return!(!pl(a,o,t)||!hl(a,n)||!gl(a,i))},pl=(e,o,t)=>{let i=e.toJSDate();return!(i<o.toJSDate()||t.toJSDate()&&i>t.toJSDate())},hl=(e,o)=>o.length===0?!0:o.some(t=>Cl(e,t.startDate,t.endDate)),Cl=(e,o,t)=>{let i=e.toJSDate(),n=new Date(o);n.setHours(0,0,0,0);let a=new Date(t);return a.setHours(23,59,59,999),i>=n&&i<=a},gl=(e,o)=>{if(!o)return!0;let t=new Date(o);return t.setHours(0,0,0,0),e.toJSDate()>=t};var ho=class{constructor(o,t,i,n,a,u,s,f,v,D,I,E,$,te){this.storeExam=o,this.isSaved=t,this.processing=i,this.calendarWindowStartDate=n,this.schedulingWindowStartDate=a,this.calendarWindowEndDate=u,this.adjustedDeliveryStartDate=s,this.selectedDate=f,this.elegibilityWindows=v,this.storeExamAvailableSlots=D,this.filteredAvailableSlots=I,this.links=E,this.activeLink=$,this.isTimeZoneSelected=te,this.isValidCalendarSlot=J=>this.processing?!1:po(J,this.calendarWindowStartDate,this.calendarWindowEndDate,this.adjustedDeliveryStartDate,this.elegibilityWindows)}};var Co=class{constructor(o,t,i,n,a){this.storeExamId=o,this.externalSchedulingSystemProctorIds=t,this.startDate=i,this.endDate=n,this.timeZone=a}};var Or=(()=>{class e extends fn{constructor(t){super(),this.matDateLocale=t,this._timeZone="local"}setTimeZone(t){this._timeZone=t||"local"}_toDateTime(t){return t?t instanceof Q?t.setZone(this._timeZone):typeof t=="string"?Q.fromISO(t,{zone:this._timeZone,keepLocalTime:!0}):null:null}getYear(t){return t.setZone(this._timeZone,{keepLocalTime:!0}).year}getMonth(t){return t.setZone(this._timeZone,{keepLocalTime:!0}).month-1}getDate(t){return t.setZone(this._timeZone,{keepLocalTime:!0}).day}getDayOfWeek(t){return t.setZone(this._timeZone,{keepLocalTime:!0}).weekday}getYearName(t){return String(t.year)}createDate(t,i,n){return Q.fromObject({year:t,month:i+1,day:n},{zone:this._timeZone,keepLocalTime:!0})}today(){return Q.now().setZone(this._timeZone)}parse(t,i){return this._toDateTime(t)}format(t,i){return t.setZone(this._timeZone).toFormat(i||"yyyy-MM-dd")}addCalendarDays(t,i){return t.plus({days:i}).setZone(this._timeZone)}addCalendarMonths(t,i){return t.plus({months:i}).setZone(this._timeZone)}addCalendarYears(t,i){return t.plus({years:i}).setZone(this._timeZone)}toIso8601(t){return t.setZone(this._timeZone).toISODate()}deserialize(t){return this._toDateTime(t)}isValid(t){return t.isValid}invalid(){return Q.invalid("Invalid Date")}clone(t){return t.setZone(this._timeZone)}getNumDaysInMonth(t){return t.daysInMonth}static{this.\u0275fac=function(i){return new(i||e)(ge(_i,8))}}static{this.\u0275prov=si({token:e,factory:e.\u0275fac})}}return e})();var xl=e=>({"unselected-date":e}),_l=(e,o)=>o.startDate;function yl(e,o){e&1&&(d(0,"section",9),w(1,"lib-page-tabs-skeleton",11)(2,"lib-page-tabs-skeleton",11)(3,"lib-page-tabs-skeleton",11)(4,"lib-page-tabs-skeleton",11),l()),e&2&&(r(),k("height",64),r(),k("height",64),r(),k("height",64),r(),k("height",64))}function vl(e,o){e&1&&w(0,"mat-divider")}function Sl(e,o){if(e&1&&(d(0,"mat-option",21)(1,"mat-icon",22),p(2),l(),p(3),l(),x(4,vl,1,0,"mat-divider")),e&2){let t=m(),i=t.$implicit,n=t.$index,a=m(4);k("value",i.id),r(2),T(" ",i.icon," "),r(),T(" ",i.label," "),r(),_(n!==a.links.length-1?4:-1)}}function kl(e,o){if(e&1&&x(0,Sl,5,4),e&2){let t=o.$implicit,i=m(4);_(t.id!==i.activeLink.id?0:-1)}}function bl(e,o){if(e&1){let t=H();d(0,"div",13)(1,"h3",15),p(2),h(3,"translate"),l(),d(4,"section",16)(5,"mat-icon",17),p(6),l(),d(7,"p",18),p(8),l(),d(9,"mat-form-field",19)(10,"mat-select",20),A("selectionChange",function(n){z(t);let a=m(4);return B(a.switchTimeOfDay(n))}),fe(11,kl,1,1,null,null,xt),l()()()()}if(e&2){let t=m(3),i=m();r(2),y(g(3,4,i.localizationId.MarketBookingSchedulingDateTimeSlots)),r(4),y(t.activeLink.icon),r(2),T(" ",t.activeLink.label," "),r(),k("subscriptSizing","dynamic"),r(2),xe(t.links)}}function Dl(e,o){e&1&&_t(0)}function Tl(e,o){if(e&1&&(d(0,"section",23),ot(1,Dl,1,0,"ng-container",24),l()),e&2){m();let t=Ne(4);r(),k("ngTemplateOutlet",t)}}function wl(e,o){e&1&&_t(0)}function Ml(e,o){if(e&1&&(d(0,"section",23),ot(1,wl,1,0,"ng-container",24),l()),e&2){m();let t=Ne(4);r(),k("ngTemplateOutlet",t)}}function Il(e,o){e&1&&_t(0)}function El(e,o){if(e&1&&(d(0,"section",23),ot(1,Il,1,0,"ng-container",24),l()),e&2){m();let t=Ne(4);r(),k("ngTemplateOutlet",t)}}function Al(e,o){if(e&1&&(d(0,"mat-radio-button",26),h(1,"date"),p(2),h(3,"date"),l()),e&2){let t=m().$implicit;
449Yo("aria-labelledby",To("Time of day: ",W(1,4,t.startDate,"shortTime"))),k("value",t),r(2),T("",W(3,7,t.startDate,"shortTime")," ")}}function Pl(e,o){if(e&1&&x(0,Al,4,10,"mat-radio-button",26),e&2){let t=o.$implicit;_(t.isVisible?0:-1)}}function Rl(e,o){if(e&1&&(d(0,"mat-radio-group",25),fe(1,Pl,1,1,null,null,_l),l()),e&2){let t=m(4);k("name",To("Available ",t.activeLink.label," Hours"))("title","Available "+t.activeLink.label+" Hours"),r(),xe(t.filteredAvailableSlots)}}function Fl(e,o){if(e&1&&(x(0,Tl,2,1,"section",23),x(1,Ml,2,1,"section",23),x(2,El,2,1,"section",23),ot(3,Rl,3,3,"ng-template",null,1,mi)),e&2){let t=m(3);_(t.activeLink.id===0?0:-1),r(),_(t.activeLink.id===1?1:-1),r(),_(t.activeLink.id===2?2:-1)}}function zl(e,o){if(e&1&&(d(0,"section",14),p(1),h(2,"translate"),l()),e&2){let t=m(4);r(),T(" ",g(2,1,t.localizationId.MarketBookingSchedulingNoTimeZoneSelected)," ")}}function Bl(e,o){if(e&1&&(d(0,"section",14),p(1),h(2,"translate"),l()),e&2){let t=m(4);r(),T(" ",g(2,1,t.localizationId.MarketBookingSchedulingDateTimeSlotsNone)," ")}}function Vl(e,o){if(e&1&&(d(0,"section",10)(1,"header",12),x(2,bl,13,6,"div",13),l(),x(3,Fl,5,3)(4,zl,3,3,"section",14)(5,Bl,3,3,"section",14),l()),e&2){let t=m(2);r(2),_(t.filteredAvailableSlots.length>0?2:-1),r(),_(t.filteredAvailableSlots.length>0?3:t.isTimeZoneSelected?5:4)}}function Ll(e,o){if(e&1){let t=H();d(0,"form",4),A("ngSubmit",function(){z(t);let n=m(2);return B(n.saveSchedule())}),d(1,"section",5)(2,"aside")(3,"mat-form-field",6),w(4,"input",7),l(),d(5,"mat-calendar",8,0),A("selectedChange",function(n){z(t);let a=m(2);return B(a.calendarChanged(n))}),l()()(),x(7,yl,5,4,"section",9),x(8,Vl,6,2,"section",10),l()}if(e&2){let t=m(),i=m();k("formGroup",i.scheduleForm),r(5),k("dateFilter",t.isValidCalendarSlot)("ngClass",Re(9,xl,!t.selectedDate))("minDate",t.calendarWindowStartDate)("maxDate",t.calendarWindowEndDate)("startAt",t.selectedDate)("selected",t.selectedDate),r(2),_(t.processing?7:-1),r(),_(t.processing?-1:8)}}function Ol(e,o){if(e&1){let t=H();d(0,"section",3)(1,"p",27),p(2),h(3,"date"),h(4,"date"),l(),d(5,"footer")(6,"button",28),A("click",function(){z(t);let n=m(2);return B(n.releaseSlot())}),p(7),h(8,"translate"),l()()()}if(e&2){let t=m(),i=m();r(2),Pe("",W(3,6,i.scheduleForm.controls.timeSlot.value==null?null:i.scheduleForm.controls.timeSlot.value.startDate,"fullDate"),", ",W(4,9,i.scheduleForm.controls.timeSlot.value==null?null:i.scheduleForm.controls.timeSlot.value.startDate,"shortTime")),r(4),k("disabled",t.processing),Z("type",i.buttonTypes.Round)("size",i.buttonSizes.Small),r(),T(" ",g(8,12,i.localizationId.MarketBookingSchedulingDateButtonChange)," ")}}function Zl(e,o){if(e&1&&(x(0,Ll,9,11,"form",2),x(1,Ol,9,14,"section",3)),e&2){let t=o;_(t.isSaved?-1:0),r(),_(t.isSaved?1:-1)}}var Zr=(()=>{class e extends se{constructor(t,i){super(),this.adapter=t,this.store=i,this.buttonSizes=Le,this.buttonTypes=Ke,this.scheduleForm=new $e({date:new R(null,[G.required]),timeSlot:new R(null,[G.required]),timeZone:new R(null,[G.required])}),this.viewModel$=q([this.store.storeExam$,this.store.schedulingData$,this.store.calendarData$,this.store.processing$,this.store.filteredAvailableTimeSlots$,this.store.selectedTimeZone$]).pipe(ie(([n,a,u,s,f,v])=>new ho(n,a.isScheduleSaved,s,u.windowStartDateInTimeZone,a.schedulingWindowStartDate,u.windowEndDateInTimeZone,a.adjustedDeliveryStartDate,u.selectedDate,a.eligibilityWindows,u.timeSlots,f,u.availableLinks,u.activeLink,!!v))),this.switchTimeOfDay=n=>{this.store.setActiveLink(n.value)},this.openedPicker=n=>{let a=document.querySelectorAll("mat-datepicker-content")[0].parentElement;a.classList.contains("dark")||a.classList.add("dark")},this.calendarChanged=n=>{let a=this.store.schedulingData(),u=this.store.calendarData();if(!po(n,u.windowStartDateInTimeZone,u.windowEndDateInTimeZone,a.adjustedDeliveryStartDate,a.eligibilityWindows)){this._snackBar.open("Please select a valid date","Dismiss",{duration:3e3}),this.scheduleForm.controls.date.setValue(null);return}this.scheduleForm.patchValue({date:n}),this.store.applySelectedDateChange(n)},this.saveSchedule=()=>{q([this.viewModel$,this.store.selectedTimeZone$]).pipe(O()).subscribe(([n,a])=>{let u=new Co(n.storeExam.storeExamId,this.scheduleForm.controls.timeSlot.value.externalSchedulingSystemProctorIds,this.scheduleForm.controls.timeSlot.value.startDate,this.scheduleForm.controls.timeSlot.value.endDate,a.ianaTimeZoneName);this.scheduleForm.controls.date.setValue(new Date(this.scheduleForm.controls.timeSlot.value.startDate)),this.store.holdSlot(u)})},this.releaseSlot=()=>{this.store.storeExam$.pipe(O()).subscribe(a=>{let u=new Et(!1,a.storeExamId,this.externalSchedulingControl.value);this.store.releaseSlot(u)})}
449,this.updateTimeZoneFormControlValue=n=>{!n||!(!this.scheduleForm.controls.timeZone.value||n.ianaTimeZoneName!==this.scheduleForm.controls.timeZone.value)||this.scheduleForm.controls.timeZone.setValue(n.ianaTimeZoneName)},this.setCalendarTimeZone=n=>{n&&(this.adapter.setTimeZone(n.ianaTimeZoneName),this.calendar&&(this.calendar.activeDate=this.store.selectedDate()))},this.onSlotReleased=()=>{this.scheduleForm.controls.date.setValue(null),this.scheduleForm.controls.timeSlot.setValue(null)},this._subscriptions.push(this.scheduleForm.controls.timeSlot.valueChanges.subscribe(this.store.setSelectedSlot),this.store.selectedTimeZone$.subscribe(this.updateTimeZoneFormControlValue),this.store.selectedTimeZone$.subscribe(this.setCalendarTimeZone),this.store.slotReleased$.subscribe(this.onSlotReleased))}ngOnInit(){}ngOnDestroy(){return super.ngOnDestroy()}static{this.\u0275fac=function(i){return new(i||e)(V(yi),V(ne))}}static{this.\u0275cmp=N({type:e,selectors:[["market-scheduling-calendar"]],viewQuery:function(i,n){if(i&1&&yt(ki,5)(Xe,5),i&2){let a;be(a=De())&&(n.calendar=a.first),be(a=De())&&(n.autocomplete=a.first)}},inputs:{externalSchedulingControl:"externalSchedulingControl"},standalone:!1,features:[Bt([{provide:yi,useClass:Or,deps:[_i,wo]},{provide:wo,useValue:{useUtc:!0}},{provide:gn,useValue:xn}]),re],decls:2,vars:3,consts:[["calendar",""],["slots",""],[1,"main-container",3,"formGroup"],[1,"flex-column","gap-16"],[1,"main-container",3,"ngSubmit","formGroup"],[1,"calendar-desktop"],["appearance","outline",1,"d-none"],["hidden","","matInput","","formControlName","date"],["color","accent","startDateAccessibleName","Schedule Window Start Date","endDateAccessibleName","Schedule Window End Date",1,"schedule-calendar",3,"selectedChange","dateFilter","ngClass","minDate","maxDate","startAt","selected"],["aria-label","Loading Available slots",1,"slots-container","loading","m-t-48"],[2,"flex","1"],[3,"height"],[1,"d-flex-center","p-t-16"],[1,"slots-header","card--filled__header"],[1,"no-available"],[1,"label--large","w-100","m-t-8","m-b-24"],[1,"d-flex","align-center"],["aria-hidden","true",1,"v-middle","material-symbols-outlined","m-r-12"],[1,"inline-block","v-middle","font-16","m-0"],["appearance","outline",1,"m-l-24","more-options",3,"subscriptSizing"],["ariaLabel","Select Other Time Slots","placeholder","More Options",3,"selectionChange"],[3,"value"],["aria-hidden","true",1,"material-symbols-outlined","icon-md","m-r-12"],[1,"slots-container"],[4,"ngTemplateOutlet"],["formControlName","timeSlot","vertical","",1,"slots",3,"name","title"],[1,"hour",3,"aria-labelledby","value"],[1,"headline--medium"],["matButton","outlined","aria-label","Return to Change Date",3,"click","disabled"]],template:function(i,n){if(i&1&&(x(0,Zl,2,2),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[nt,pi,ze,ue,ki,me,Te,Qe,oe,Di,Ti,rt,Li,Me,Ue,ye,we,Ie,Be,ee,Ge,U],styles:[".main-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:50px}.calendar-desktop[_ngcontent-%COMP%]{max-width:400px;flex-grow:1}.calendar-desktop[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{visibility:hidden;height:1px}.more-options[_ngcontent-%COMP%]{max-width:196px}.timezone-option[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.2}.timezone-main[_ngcontent-%COMP%]{white-space:normal!important}.timezone-offset[_ngcontent-%COMP%]{font-size:12px;opacity:.7}.section-title[_ngcontent-%COMP%]{font-size:1em;letter-spacing:2px;margin-top:4px;margin-bottom:14px;width:100%}.slots-header[_ngcontent-%COMP%]{width:100%;display:flex;align-items:baseline;flex-wrap:wrap}.slots-header.loading[_ngcontent-%COMP%]{margin-top:3em}.timezone-formfield[_ngcontent-%COMP%]{width:100%;max-width:370px;margin-left:auto}.no-available[_ngcontent-%COMP%]{display:flex;width:100%;border-radius:6px;height:340px;align-items:center;justify-content:center;color:var(--mat-sys-outline-variant);border:1px solid var(--mat-sys-outline-variant);font-size:1.2rem}.slots-container[_ngcontent-%COMP%]{display:flex;max-width:480px;width:100%}.slots-container.loading[_ngcontent-%COMP%]{flex-flow:column}.slots-container[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]{margin:1.5em auto;width:100%;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));display:grid;border-top:1px solid var(--mat-sys-outline-variant);border-left:1px solid var(--mat-sys-outline-variant)}.slots-container[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .hour[_ngcontent-%COMP%]{font-weight:500;font-size:1em;width:100%;padding:.5em;border-right:1px solid var(--mat-sys-outline-variant);border-bottom:1px solid var(--mat-sys-outline-variant)}.mat-mdc-tab-link[_ngcontent-%COMP%]:not(.daytime){min-width:10em;font-size:1rem}  .schedule-calendar .mat-calendar-table-header th{font-size:.95rem}  .schedule-calendar .mat-calendar-body-cell-container{padding:0!important}  .schedule-calendar button.mat-calendar-body-cell{position:relative;display:block;width:min(44px,100%);height:auto;aspect-ratio:1/1;margin-right:auto;margin-left:auto;padding:1px 0 0;border:1px solid transparent;border-radius:50%;font-size:1rem;text-align:center}  .schedule-calendar .mat-calendar-table{min-height:325px}  .schedule-calendar tr:has(>.mat-calendar-body-label)[aria-hidden=true]{display:none}  .schedule-calendar td.mat-calendar-body-label{height:0;line-height:0;padding:0;font-size:0}  .schedule-calendar .mat-calendar-period-button{font-size:1rem}  .schedule-calendar .mat-calendar-body-cell-content{width:100%;height:100%}  .schedule-calendar mat-multi-year-view .mat-calendar-body-cell{width:75px}  .schedule-calendar.unselected-date .mat-calendar-body-today{background:var(--mat-sys-primary);border:none}  .schedule-calendar .mat-calendar-body-active .mat-calendar-body-selected{background:var(--mat-sys-primary);border:none}  .schedule-calendar .mat-calendar-body-active .mat-calendar-body-today{border:none}  .schedule-calendar .mat-calendar-body-cell .mat-calendar-body-selected{background:var(--mat-sys-primary);border:none}@media screen and (max-width:1279px){.main-container[_ngcontent-%COMP%]{gap:1.2em}.slots-header[_ngcontent-%COMP%]{margin-top:0}}@media screen and (max-width:949px){.slots-container[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}.calendar-desktop[_ngcontent-%COMP%]{max-width:none;flex-grow:1}}@media screen and (max-width:625px){.slots-container[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]{grid-template-columns:1fr}.slots-header[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{width:100%}.more-options[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:1;min-width:100px}}"],changeDetection:0})}}return e})();var $l=(e,o)=>o.id;function ql(e,o){if(e&1&&(d(0,"div",5)(1,"p",7),p(2),h(3,"translate"),h(4,"date"),l()()),e&2){let t=m(3),i=m();r(2),Pe("",g(3,2,i.localizationId.MarketBookingSchedulingTakeItBy)," ",W(4,4,t.storeExamDeliveryType.endDate,"MMM d, y, h:mm a"),"*")}}function jl(e,o){if(e&1&&(d(0,"div",6)(1,"p",8),p(2),h(3,"translate"),l()()),e&2){let t=m(4);r(2),T("* ",g(3,1,t.localizationId.MarketBookingSchedulingUpdatedTimeMessage))}}function Hl(e,o){if(e&1&&(d(0,"div"),x(1,ql,5,7,"div",5),x(2,jl,4,3,"div",6),l()),e&2){let t=m(2);r(),_(t.storeExamDeliveryType.endDate?1:-1),r(),_(t.storeExamDeliveryType.endDate?2:-1)}}function Wl(e,o){if(e&1&&(d(0,"div",5)(1,"p",7),p(2),h(3,"translate"),h(4,"date"),l()()),e&2){let t=m(3),i=m();r(2),Pe(" ",g(3,2,i.localizationId.MarketBookingSchedulingTakeItBy)," ",W(4,4,t.storeExamDeliveryType.endDate,"MMM d, y, h:mm a"),"* ")}}function Gl(e,o){if(e&1&&(d(0,"div",6)(1,"p",9),p(2),h(3,"translate"),l()()),e&2){let t=m(4);r(2),T("* ",g(3,1,t.localizationId.MarketBookingSchedulingUpdatedTimeMessage))}}function Ul(e,o){if(e&1&&(d(0,"div"),x(1,Wl,5,7,"div",5),x(2,Gl,4,3,"div",6),l()),e&2){let t=m(2);r(),_(t.storeExamDeliveryType.endDate?1:-1),r(),_(t.storeExamDeliveryType.endDate?2:-1)}}function Ql(e,o){if(e&1&&(d(0,"section",3),x(1,Hl,3,2,"div")(2,Ul,3,2,"div"),l()),e&2){let t,i=m();r(),_((t=i.storeExamDeliveryType.possibleDateOption)==="StartingOn"?1:t==="Today"?2:-1)}}function Kl(e,o){if(e&1&&w(0,"market-scheduling-calendar",4),e&2){let t=m(2);k("externalSchedulingControl",t.externalSchedulingControl)}}function Yl(e,o){if(e&1&&(p(0),h(1,"date")),e&2){let t=m(3),i=m();Pe(" ",W(1,2,i.reservationSessionsForm.controls.selectedSession.value.startDateConvertedTimeZone,"MMM dd, yyyy 'at' hh:mm a")," ",t.selectedSessionTimeZoneDisplayName," ")}}function Jl(e,o){if(e&1&&(d(0,"mat-option",13)(1,"div",14)(2,"p",7),p(3),h(4,"date"),l(),d(5,"p",7),p(6),h(7,"date"),d(8,"span",15),p(9),l()()()()),e&2){let t=o.$implicit;k("value",t),r(3),T(" ",W(4,4,t.startDateConvertedTimeZone,"MMM d, y")),r(3),T("",W(7,7,t.startDateConvertedTimeZone,"h:mm a")," "),r(3),y(t.locationWindowsTimeZoneDisplayName)}}function Xl(e,o){if(e&1&&(d(0,"form")(1,"mat-form-field",11)(2,"mat-label"),p(3),h(4,"translate"),l(),d(5,"mat-select",12)(6,"mat-select-trigger"),x(7,Yl,2,5),l(),fe(8,Jl,10,10,"mat-option",13,$l),h(10,"sortByKey"),l()()()),e&2){let t=m(2),i=m();r(),k("formGroup",i.reservationSessionsForm),r(2),T("",g(4,3,i.localizationId.MarketBookingSchedulingSelectASession),": "),r(4),_(i.reservationSessionsForm.controls.selectedSession.value?7:-1),r(),xe(Vt(10,5,t.testCenterSessions,"asc","startDateUtc"))}}function ec(e,o){if(e&1&&(d(0,"p",10),p(1),h(2,"translate"),l()),e&2){let t=m(3);r(),y(g(2,1,t.localizationId.MarketBookingSchedulingNoSessionsAvailable))}}function tc(e,o){if(e&1&&x(0,Xl,11,9,"form")(1,ec,3,3,"p",10),e&2){let t=m();_(t.testCenterSessions.length>0?0:1)}}function ic(e,o){if(e&1&&(d(0,"mat-card",0)(1,"mat-card-header",1)(2,"h2",2),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),x(6,Ql,3,1,"section",3),x(7,Kl,1,1,"market-scheduling-calendar",4),x(8,tc,2,1),l()),e&2){let t=o,i=m();r(3),y(g(4,4,i.localizationId.MarketBookingSchedulingDateLabel)),r(3),_(!t.storeExamDeliveryType.isScheduled&&!t.storeExamDeliveryType.isTestCenter?6:-1),r(),_(t.storeExamDeliveryType.isScheduled?7:-1),r(),_(t.storeExamDeliveryType.isTestCenter?8:-1)}}var Nr=(()=>{class e extends se{constructor(t,i){super(),this.store=t,this.cd=i,this.reservationSessionsForm=new $e({selectedSession:new R(null,[G.required])}),this.viewModel$=q([this.store.storeExamDeliveryType$,this.store.testCenterSessions$,this.reservationSessionsForm.controls.selectedSession.valueChanges.pipe(_e(null))]).pipe(ie(([n,a,u])=>new Zo(n,a.map(s=>new uo(s.id,s.numberOfSeats,s.numberOfTakenSeats,s.startDateUtc,s.startDateConvertedTimeZone,s.timeZone,s.locationWindowsTimeZoneDisplayName,s.timeZoneOffsetInMinutes)).filter(s=>s.hasSeatsAvailable),u?.locationWindowsTimeZoneDisplayName)))}ngOnInit(){this._subscriptions.push(this.reservationSessionsForm.controls.selectedSession.valueChanges.subscribe(t=>{this.store.setSelectedSession(t)}))}markAsTouched(){this.reservationSessionsForm.controls.selectedSession.markAsTouched(),this.cd.detectChanges()}static{this.\u0275fac=function(i){return new(i||e)(V(ne),V(St))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-scheduling"]],inputs:{externalSchedulingControl:"externalSchedulingControl"},standalone:!1,features:[re],decls:2,vars:3,consts:[["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"m-t-16","p-l-12"],[3,"externalSchedulingControl"],[1,"date-card"],[1,"date-card","m-t-4"],[1,"body--large"],[1,"body--large","m-l-36","font-style-italic"],[1,"body--large","font-style-italic"],[1,"p-l-12","m-t-24","body--large"],["appearance","outline",1,"session-box",3,"formGroup"],["formControlName","selectedSession"],[3,"value"],[1,"session"],[1,"m-l-8"]],template:function(i,n){if(i&1&&(x(0,ic,9,6,"mat-card",0),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[ze,pe,he,me,Ve,oe,rt,vi,Me,ye,we,sn,Ie,Be,Zr,ee,Ge,$t,
449U],styles:[".date-card[_ngcontent-%COMP%]{display:flex;gap:10px;width:max-content}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.session-box[_ngcontent-%COMP%]{margin-top:24px;width:80%;max-width:600px}.session[_ngcontent-%COMP%]{display:flex;gap:2rem;align-items:center;padding-right:8px}@media screen and (max-width:959px){.session-box[_ngcontent-%COMP%]{width:100%}}"],changeDetection:0})}}return e})(),Zo=class{constructor(o,t,i){this.storeExamDeliveryType=o,this.testCenterSessions=t,this.selectedSessionTimeZoneDisplayName=i}};var go=class{constructor(o,t,i,n,a,u){this.storeExam=o,this.paymentMethods=t,this.hasPromoCode=i,this.paymentCode=n,this.showReimbursementField=a,this.showReimbursementSection=u}};var $r=(()=>{class e{constructor(t){this.dialogRef=t,this.localizationId=P,this.onCloseClick=()=>{this.dialogRef.close()}}static{this.\u0275fac=function(i){return new(i||e)(V(bt))}}static{this.\u0275cmp=N({type:e,selectors:[["market-payment-codes-dialog"]],standalone:!1,decls:17,vars:12,consts:[[1,"dialog__sticky-header"],["mat-dialog-title","",1,"headline--small"],["mat-icon-button","","type","button",3,"click"],["aria-hidden","true"],[1,"notes"],[1,"m-l-auto"],["mat-flat-button","","color","accent",3,"click"]],template:function(i,n){i&1&&(d(0,"header",0)(1,"h2",1),p(2),h(3,"translate"),l(),d(4,"button",2),h(5,"translate"),A("click",function(){return n.onCloseClick()}),d(6,"mat-icon",3),p(7,"close"),l()(),w(8,"mat-divider"),l(),d(9,"mat-dialog-content")(10,"p",4),p(11),h(12,"translate"),l()(),d(13,"mat-dialog-actions",5)(14,"button",6),A("click",function(){return n.onCloseClick()}),p(15),h(16,"translate"),l()()),i&2&&(r(2),y(g(3,4,n.localizationId.MarketBookingReviewPaymentVoucherPromoCodeLabel)),r(2),Z("aria-label",g(5,6,n.localizationId.CommonDialogCloseAria)),r(7),T(" ",g(12,8,n.localizationId.MarketBookingReviewPaymentVoucherPromoCodeExplanation)," "),r(4),y(g(16,10,n.localizationId.MarketBookingReviewPaymentExplanationButton)))},dependencies:[ue,Ot,Dt,wt,Tt,Te,oe,U],styles:[".notes[_ngcontent-%COMP%]{font-size:1rem;margin:0;color:var(--mat-sys-color-on-surface)}"]})}}return e})();var qr=(()=>{class e{constructor(t){this.dialogRef=t,this.localizationId=P,this.onCloseClick=()=>{this.dialogRef.close()}}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||e)(V(bt))}}static{this.\u0275cmp=N({type:e,selectors:[["market-reimbursement-info-dialog"]],standalone:!1,decls:17,vars:12,consts:[[1,"dialog__sticky-header"],["mat-dialog-title","",1,"headline--small"],["mat-icon-button","","type","button",1,"m-l-auto",3,"click"],["aria-hidden","true"],[1,"body--large"],[1,"m-l-auto"],["mat-flat-button","","color","accent",3,"click"]],template:function(i,n){i&1&&(d(0,"header",0)(1,"h2",1),p(2),h(3,"translate"),l(),d(4,"button",2),h(5,"translate"),A("click",function(){return n.onCloseClick()}),d(6,"mat-icon",3),p(7,"close"),l()(),w(8,"mat-divider"),l(),d(9,"mat-dialog-content")(10,"p",4),p(11),h(12,"translate"),l()(),d(13,"mat-dialog-actions",5)(14,"button",6),A("click",function(){return n.onCloseClick()}),p(15),h(16,"translate"),l()()),i&2&&(r(2),y(g(3,4,n.localizationId.MarketBookingReviewPaymentReimbursementLabel)),r(2),Z("aria-label",g(5,6,n.localizationId.CommonDialogCloseAria)),r(7),T(" ",g(12,8,n.localizationId.MarketBookingReviewPaymentReimbursementExplanation)," "),r(4),y(g(16,10,n.localizationId.MarketBookingReviewPaymentExplanationButton)))},dependencies:[ue,Ot,Dt,wt,Tt,Te,oe,U],encapsulation:2})}}return e})();var fo=class{constructor(o,t,i,n,a,u,s,f,v,D,I,E,$,te){this.processing=o,this.showSuccessMessage=t,this.enableApplyButton=i,this.showErrorMessage=n,this.showPromoCodeError=a,this.errorMessage=u,this.successLocalizationId=s,this.successSubstitutions=f,this.voucherExpirationDate=v,this.promoCodePlaceHolder=D,this.promoCodeHint=I,this.errorLocalizationCode=E,this.errorValueSubstitutions=$,this.promoCodeAutoApplied=te,this.flagTypes=Jt,this.formControlStatusInvalid="INVALID"}};var Gt=class{constructor(o,t){this.visible=o,this.substitutionData=t}},xo=class{constructor(o){this.expirationDate=o}};var jr=e=>({description:e});function nc(e,o){e&1&&w(0,"mat-progress-bar",0)}function ac(e,o){if(e&1&&(d(0,"mat-error"),p(1),h(2,"translate"),l()),e&2){let t=m(2);r(),y(g(2,1,t.promoCodeHint))}}function rc(e,o){if(e&1&&(d(0,"mat-hint"),p(1),h(2,"translate"),l()),e&2){let t=m(2);r(),y(g(2,1,t.promoCodeHint))}}function sc(e,o){if(e&1){let t=H();d(0,"div",2)(1,"mat-form-field",5),w(2,"input",6),h(3,"translate"),x(4,ac,3,3,"mat-error"),x(5,rc,3,3,"mat-hint"),l(),d(6,"button",7),A("click",function(){z(t);let n=m(2);return B(n.applyVoucherCode())}),p(7),h(8,"translate"),l()()}if(e&2){let t=m(),i=m();r(),k("floatLabel","auto"),r(),k("placeholder",g(3,6,t.promoCodePlaceHolder)),r(2),_(t.showPromoCodeError?4:-1),r(),_(t.showPromoCodeError?-1:5
449),r(),k("disabled",t.enableApplyButton||t.processing),r(),y(g(8,8,i.localizationId.MarketBookingReviewPaymentButtonApply))}}function lc(e,o){if(e&1&&w(0,"lib-flags",4),e&2){let t=m(),i=m();k("context",t.flagTypes.Error)("content",Re(3,jr,t.errorMessage)),Z("option",i.flagOptions.Text)}}function cc(e,o){if(e&1&&(w(0,"lib-flags",4),h(1,"translate")),e&2){let t=m(),i=m();k("context",t.flagTypes.Success)("content",Re(6,jr,W(1,3,t.successLocalizationId,t.successSubstitutions))),Z("option",i.flagOptions.Text)}}function dc(e,o){if(e&1&&(x(0,nc,1,0,"mat-progress-bar",0),d(1,"form",1),x(2,sc,9,10,"div",2),d(3,"div",3),x(4,lc,1,5,"lib-flags",4),l()(),x(5,cc,2,8,"lib-flags",4)),e&2){let t=o,i=m();_(t.processing?0:-1),r(),k("formGroup",i.checkoutForm),r(),_(t.promoCodeAutoApplied?-1:2),r(2),_(t.showErrorMessage?4:-1),r(),_(t.showSuccessMessage?5:-1)}}var Hr=(()=>{class e extends se{constructor(t,i,n){super(),this.storeExamMarketService=t,this.store=i,this.datePipe=n,this.flagOptions=kn,this.viewModel$=new pt(new fo(!1,!1,!1,!1,!1,"",null,null,new Gt(!1),"",null,null,[],!1)),this.applyVoucherCode=()=>{if(this.checkoutForm.controls.paymentCode.invalid){this.checkoutForm.markAllAsTouched(),this._snackBar.open("Required fields in red must be completed","Dismiss",{duration:5e3});return}switch(this.checkoutForm.controls.paymentMethod.value){case L.Voucher:this.validateVoucher();break;case L.CreditCard:this.validatePromoCode();break;default:throw new Error(`Invalid payment method: ${this.checkoutForm.controls.paymentMethod.value}`)}},this.validatePromoCode=()=>{let a=this.checkoutForm.controls.paymentCode.value;this.viewModel$.next(b(S({},this.viewModel$.getValue()),{processing:!0,showErrorMessage:!1})),this.store.storeExam$.pipe(O()).subscribe(u=>{let s=u.storeExamId,f=new Fi(s,u.displayedCurrency.currencyCode,!1,a);this.storeExamMarketService.promoCodeValidate(f).pipe(O()).subscribe({next:this.onValidatePromoCodeComplete,error:v=>this.onError(v)})})},this.onValidatePromoCodeComplete=a=>{this.viewModel$.next(b(S({},this.viewModel$.getValue()),{processing:!1})),this.store.storeExam$.pipe(O()).subscribe(u=>{let s=new He(a.isValid,P.MarketCommonPromoCodeDiscount,u.displayedCurrency.priceAmount-a.discountedPrice,a.discountedPrice,u.displayedCurrency.currencyCode);this.handleCodeApplied(a.isValid,a.error,a.errorLocalizationCode,s,a.errorValueSubstitutions)})},this.validateVoucher=()=>{let a=this.checkoutForm.controls.paymentCode.value;this.viewModel$.next(b(S({},this.viewModel$.getValue()),{processing:!0,showErrorMessage:!1})),this.store.storeExam$.pipe(O()).subscribe(u=>{let s=u.storeExamId,f=new Ln(s,a);this.storeExamMarketService.voucherValidate(f).pipe(O()).subscribe({next:v=>this.onValidateVoucherComplete(v,u),error:v=>this.onError(v)})})},this.onValidateVoucherComplete=(a,u)=>{let s=new He(a.isValid,P.MarketBookingReviewPaymentVoucherAmountLabel,u.displayedCurrency.priceAmount,0,u.displayedCurrency.currencyCode,a.expirationDate?new Date(a.expirationDate):null);this.handleCodeApplied(a.isValid,a.error,a.errorLocalizationCode,s)},this.handleCodeApplied=(a,u,s,f,v)=>{let D=a,I=this.getVoucherExpirationDate(f),E=a?this.getSuccessLocalizationId(!!f.expirationDate):null,$=a?S({},I.substitutionData):null,te=null,J=!a;a||(te=this.getErrorMessage(u,s,v),this.checkoutForm.controls.paymentCode.setValue(null),this.checkoutForm.controls.paymentCode.updateValueAndValidity()),this.viewModel$.next(b(S({},this.viewModel$.getValue()),{processing:!1,showSuccessMessage:D,successLocalizationId:E,successSubstitutions:$,voucherExpirationDate:I,errorMessage:te,showErrorMessage:J,errorLocalizationCode:s,errorValueSubstitutions:v})),this.store.setPaymentCode(f)},this.onError=a=>{this.viewModel$.next(b(S({},this.viewModel$.getValue()),{processing:!1})),this._handleError(a)},this.getSuccessLocalizationId=(a,u)=>{let s=this.checkoutForm.controls.paymentMethod.value;if(!s)return null;switch(s){case L.Voucher:return a?P.MarketBookingReviewPaymentVoucherExpirationLabel:P.MarketBookingReviewPaymentVoucherSuccessLabel;case L.CreditCard:return u?P.MarketBookingReviewPaymentPromoCodeAutoAppliedLabel:P.MarketBookingReviewPaymentPromoCodeSuccessLabel;case L.UsBankACH:return null}},this.getVoucherExpirationDate=a=>a?.expirationDate?new Gt(!0,new xo(this.datePipe.transform(a.expirationDate,"MMM d, yyyy, h:mm a")??"")):new Gt(!1),this.setPromoCodePlaceHolder=a=>{let u="";switch(a){case L.Voucher:u=P.MarketBookingReviewPaymentVoucherLabel;break;case L.CreditCard:u=P.MarketCommonPromoCode;break;case L.UsBankACH:break;default:throw new Error(`Invalid payment method: ${a}`)}this.viewModel$.next(b(S({},this.viewModel$.getValue()),{promoCodePlaceHolder:u}))},this.setPromoCodeHint=(a,u=!1)=>{let s=a===L.Voucher?this.localizationId.CommonButtonRequired:this.localizationId.MarketBookingReviewPaymentOptional;this.viewModel$.next(b(S({},this.viewModel$.getValue()),{promoCodeHint:s}))},this.setShowPromoCodeError=a=>{let u=this.viewModel$.getValue(),s=a===u.formControlStatusInvali
449d;this.viewModel$.next(b(S({},this.viewModel$.getValue()),{showPromoCodeError:s}))},this.getErrorMessage=(a,u,s)=>{let f=this._localizationStore.translate(u)??a;return s?.forEach(v=>{f=f.replace(v.substitutionName,v.substitutionValue)}),f},this.setAutoAppliedPromoCode=a=>{this.checkoutForm.controls.paymentCode.setValue(a),this.checkoutForm.controls.isPromoCodeAutoApplied.setValue(!0),this.checkoutForm.controls.paymentMethod.setValue(L.CreditCard);let u=this.getSuccessLocalizationId(!1,!0);this.viewModel$.next(b(S({},this.viewModel$.getValue()),{showSuccessMessage:!0,promoCodeAutoApplied:!0,successLocalizationId:u,successSubstitutions:{promoCode:a}}))}}ngOnInit(){this._subscriptions.push(this.checkoutForm.controls.paymentCode.statusChanges.subscribe(this.setShowPromoCodeError),this.checkoutForm.controls.paymentCode.valueChanges.pipe(_e(this.checkoutForm.controls.paymentCode.value)).subscribe(t=>{this.viewModel$.next(b(S({},this.viewModel$.getValue()),{enableApplyButton:!t}))}),q([this.checkoutForm.controls.paymentMethod.valueChanges.pipe(_e(this.checkoutForm.controls.paymentMethod.value)),this.store.hasAutoApplyDomain$]).subscribe(([t,i])=>{this.setPromoCodeHint(t,i),this.setPromoCodePlaceHolder(t)}),this._localizationStore.defaultLanguage$.subscribe(()=>{let t=this.viewModel$.getValue();if(!t.showErrorMessage&&!t.showSuccessMessage)return;let i={};t.showErrorMessage&&(i.errorMessage=this.getErrorMessage(t.errorMessage,t.errorLocalizationCode,t.errorValueSubstitutions)),this.viewModel$.next(S(S({},t),i))}),q([this.store.autoApplyPromoCode$,this.checkoutForm.controls.paymentMethod.valueChanges.pipe(_e(this.checkoutForm.controls.paymentMethod.value))]).pipe(Ho(([t,i],[n,a])=>t?.promoCode===n?.promoCode&&i===a),Je(([t,i])=>!!t?.promoCode&&i===L.CreditCard)).subscribe(([t])=>this.setAutoAppliedPromoCode(t.promoCode)))}ngOnDestroy(){return super.ngOnDestroy()}static{this.\u0275fac=function(i){return new(i||e)(V(Bi),V(ne),V(Ge))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-payment-code"]],inputs:{checkoutForm:"checkoutForm"},standalone:!1,features:[Bt([Ge]),re],decls:2,vars:3,consts:[["mode","indeterminate","color","accent"],[1,"payment-box",3,"formGroup"],[1,"form-field"],[1,"w-100"],[3,"context","content"],["appearance","outline",1,"w-100",3,"floatLabel"],["matInput","","formControlName","paymentCode",3,"placeholder"],["mat-stroked-button","",1,"w-max-content",3,"click","disabled"]],template:function(i,n){if(i&1&&(x(0,dc,6,5),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[ue,me,fi,at,Qe,bi,Vi,Me,Ue,ye,we,Ie,Be,ee,U],styles:[".payment-box[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{gap:.75rem;display:flex}.w-max-content[_ngcontent-%COMP%]{width:max-content}@media screen and (max-width:48ch){.payment-box[_ngcontent-%COMP%]{flex-flow:column}}"],changeDetection:0})}}return e})();var uc=e=>({"required-box":e}),pc=(e,o)=>
449o.paymentMethod;function hc(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),d(4,"p",13),p(5),h(6,"currency"),l()()),e&2){let t=m(),i=m();r(2),y(g(3,2,i.localizationId.MarketCommonPrice)),r(3),y(W(6,4,t.storeExam==null?null:t.storeExam.displayedCurrency.priceAmount,t.storeExam==null?null:t.storeExam.displayedCurrency.currencyCode))}}function Cc(e,o){if(e&1&&(d(0,"div",5)(1,"h3",14),p(2),h(3,"translate"),l(),w(4,"market-checkout-payment-code",15),l()),e&2){let t=m(2);r(2),y(g(3,2,t.localizationId.MarketCommonPromoCode)),r(2),k("checkoutForm",t.checkoutForm)}}function gc(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),d(4,"p",13),p(5),h(6,"currency"),l()(),d(7,"section",5)(8,"h3",2),p(9),h(10,"translate"),l(),d(11,"p",13),p(12),h(13,"currency"),l()()),e&2){let t=m(),i=m();r(2),y(g(3,4,t.paymentCode.paymentCodeTitle)),r(3),y(W(6,6,t.paymentCode.discountAmount,t.paymentCode.currency)),r(4),y(g(10,9,i.localizationId.MarketBookingReviewConfirmationAmountDue)),r(3),y(W(13,11,t.paymentCode.amountDue,t.paymentCode.currency))}}function fc(e,o){if(e&1&&(d(0,"mat-error"),p(1),h(2,"translate"),l()),e&2){let t=m(4);r(),y(g(2,1,t.localizationId.CommonButtonRequired))}}function xc(e,o){if(e&1&&(d(0,"mat-form-field",18)(1,"mat-label"),p(2),h(3,"translate"),l(),w(4,"textarea",19),x(5,fc,3,3,"mat-error"),l()),e&2){let t=m(3);r(2),y(g(3,3,t.localizationId.CommonButtonDescription)),r(2),k("formControl",t.checkoutForm.controls.invoiceDescription),r(),_(t.checkoutForm.controls.invoiceDescription.errors!=null&&t.checkoutForm.controls.invoiceDescription.errors.required?5:-1)}}function _c(e,o){if(e&1){let t=H();d(0,"div",5)(1,"div",16)(2,"mat-checkbox",17),A("change",function(n){z(t);let a=m(2);return B(a.onEmployerInformationForReimbursementChecked(n.checked))}),p(3),h(4,"translate"),l(),d(5,"button",8),h(6,"translate"),h(7,"translate"),A("click",function(){z(t);let n=m(2);return B(n.openReimbursementInfoDialog())}),d(8,"mat-icon",9),p(9,"info"),l()()(),x(10,xc,6,5,"mat-form-field",18),l()}if(e&2){let t=m(),i=m();r(3),T(" ",g(4,4,i.localizationId.MarketBookingReviewPaymentReimbursementLabel)," "),r(2),k("matTooltip",g(6,6,i.localizationId.MarketBookingReviewPaymentReimbursementLabel)),Z("aria-label",g(7,8,i.localizationId.MarketBookingReviewPaymentReimbursementLabel)),r(5),_(t.showReimbursementField?10:-1)}}function yc(e,o){if(e&1&&(d(0,"p",24),p(1),h(2,"translate"),l()),e&2){let t=m().$implicit;r(),T(" ",g(2,1,t.paymentMethodDescription)," ")}}function vc(e,o){if(e&1&&(d(0,"mat-error",25),p(1),h(2,"translate"),l()),e&2){let t=m(3);r(),T(" ",g(2,1,t.localizationId.MarketBookingPaymentSelectMethod)," ")}}function Sc(e,o){if(e&1&&(d(0,"div",26),w(1,"market-checkout-payment-code",15),l()),e&2){let t=m(3);r(),k("checkoutForm",t.checkoutForm)}}function kc(e,o){if(e&1&&(d(0,"div",12)(1,"div",20)(2,"mat-radio-button",21)(3,"div",22)(4,"span",23),p(5),h(6,"translate"),l()()(),x(7,yc,3,3,"p",24),l(),x(8,vc,3,3,"mat-error",25),h(9,"async"),x(10,Sc,2,1,"div",26),l()),e&2){let t=o.$implicit,i=m(2);r(2),k("value",t.paymentMethod),r(3),y(g(6,5,t.paymentMethodLabel)),r(2),_(t.showPaymentMethodDescription?7:-1),r(),_(g(9,7,i.checkoutForm.controls.paymentMethod.statusChanges)===i.formControlStatusInvalid?8:-1),r(2),_(t.showPaymentCode?10:-1)}}function bc(e,o){if(e&1){let t=H();d(0,"mat-card",0)(1,"mat-card-header",1)(2,"h2",2),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),d(6,"mat-card-content",3)(7,"div",4),x(8,hc,7,7,"section",5),x(9,Cc,5,4,"div",5),x(10,gc,14,14),x(11,_c,11,10,"div",5),l(),d(12,"div",4)(13,"div",6)(14,"h3",7),p(15),h(16,"translate"),l(),d(17,"button",8),h(18,"translate"),h(19,"translate"),A("click",function(){z(t);let n=m();return B(n.openCodesDialog())}
449),d(20,"mat-icon",9),p(21,"help"),l()()(),d(22,"form",10),h(23,"async"),d(24,"mat-radio-group",11),A("change",function(n){z(t);let a=m();return B(a.paymentMethodSelected(n))}),fe(25,kc,11,9,"div",12,pc),h(27,"sortByKey"),l()()()()()}if(e&2){let t=o,i=m();r(3),y(g(4,10,i.localizationId.MarketBookingReviewPaymentLabel)),r(5),_(t.storeExam.isPriceHidden?-1:8),r(),_(t.hasPromoCode?9:-1),r(),_(t.paymentCode.showPaymentCodeDesc?10:-1),r(),_(t.showReimbursementSection?11:-1),r(4),y(g(16,12,i.localizationId.MarketCommonPaymentMethod)),r(2),k("matTooltip",g(18,14,i.localizationId.MarketBookingReviewPaymentVoucherPromoCodeLabel)),Z("aria-label",g(19,16,i.localizationId.MarketBookingReviewPaymentVoucherPromoCodeLabel)),r(5),k("formGroup",i.checkoutForm)("ngClass",Re(24,uc,g(23,18,i.checkoutForm.controls.paymentMethod.statusChanges)===i.formControlStatusInvalid)),r(3),xe(Vt(27,20,t.paymentMethods,"asc","paymentMethod"))}}var Wr=(()=>{class e extends se{constructor(t){super(),this.store=t,this.localizationId=P,this.viewModel$=q([this.store.paymentMethods$,this.store.hasPromoCode$,this.store.selectedPaymentMethod$,this.store.storeExam$,this.store.paymentCode$,this.store.showReimbursementField$]).pipe(ie(([i,n,a,u,s,f])=>{u.displayedCurrency?.priceAmount>0&&(this.checkoutForm.controls.paymentMethod.setValidators(G.required),this.checkoutForm.controls.paymentMethod.updateValueAndValidity());let v=a===L.CreditCard,D=v;return new go(u,i,n&&v,s,f,D)})),this.formControlStatusInvalid="INVALID",this.paymentMethodSelected=i=>{if(!i.value)return;let n=this.checkoutForm.controls.paymentMethod.value===L.Voucher;if(this.store.setPaymentMethod(this.checkoutForm.controls.paymentMethod.value),this.changeFormValidation(n),n){this.store.setPaymentCode(new He(!1,null,0,0,""));return}let a=this.store.autoApplyPromoCode();a&&this.store.setPaymentCode(a)},this.onEmployerInformationForReimbursementChecked=i=>{this.store.updateOnEmployerInformationForReimbursementVisible(i)},this.openCodesDialog=()=>{this.promoCodesDialogRef=this._dialog.open($r,{maxWidth:"calc(48ch + 48px)",width:"95%"})},this.openReimbursementInfoDialog=()=>{this._dialog.open(qr,{maxWidth:"calc(48ch + 48px)",width:"95%",autoFocus:"dialog"})},this.changeFormValidation=i=>{this.checkoutForm.controls.paymentCode.clearValidators(),this.checkoutForm.controls.paymentCode.setValue(null),i&&(this.checkoutForm.controls.paymentCode.setValidators(G.required),this.checkoutForm.controls.paymentCode.updateValueAndValidity())}}ngOnInit(){}ngOnDestroy(){return super.ngOnDestroy()}static{this.\u0275fac=function(i){return new(i||e)(V(ne))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-payment"]],inputs:{checkoutForm:"checkoutForm"},standalone:!1,features:[re],decls:2,vars:3,consts:[["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"p-0","payment-columns"],[1,"card--filled__content"],[1,"card--filled__item"],[1,"d-flex-center"],[1,"label--large","m-t-2"],["mat-icon-button","","matTooltipPosition","right",1,"codes-button",3,"click","matTooltip"],["aria-hidden","true",1,"icon","material-symbols-outlined"],[3,"formGroup","ngClass"],["formControlName","paymentMethod",3,"change"],[1,"p-b-12"],[1,"body--large"],[1,"label--large","m-0"],[3,"checkoutForm"],[1,"w-100","d-flex-center"],[3,"change"],["appearance","outline","floatLabel","always",1,"w-100","p-t-18"],["matInput","","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","6","maxlength","200",3,"formControl"],[1,"d-flex","gap-10","m-t-0","flex-wrap"],[1,"button-cancel",3,"value"],[1,"payment-choice","body--large","uppercase"],[1,"m-l-4"],[1,"body--large","m-l-36","font-italic"],[1,"d-block","p-t-12"],[1,"m-t-4","m-b-12","m-l-30"]],template:function(i,n){if(i&1&&(x(0,bc,28,26,"mat-card",0),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[nt,Ot,pe,ve,he,Zt,me,Ve,at,Te,Qe,Sn,oe,Di,Ti,Nt,Me,Ue,ye,we,gi,Lt,Ie,Be,Hr,ee,hi,$t,U],styles:[".payment-columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 3fr;gap:var(--mat-sys-measurement-space300)}@media(max-width:768px){.payment-columns[_ngcontent-%COMP%]{grid-template-columns:1fr}}.fullprice[_ngcontent-%COMP%]{text-decoration:line-through}.required-box[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-error);border-radius:4px}.payment-choice[_ngcontent-%COMP%]{display:flex!important;align-items:center;
449width:200px;height:40px}.font-italic[_ngcontent-%COMP%]{font-style:italic}.codes-button.mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mat-icon-button-state-layer-size: 30px;align-items:center;display:inline-flex;justify-content:center}.codes-button[_ngcontent-%COMP%]   mat-icon.material-icons[_ngcontent-%COMP%]{font-size:16px;height:fit-content}"],changeDetection:0})}}return e})();var yo=class{constructor(o,t,i,n,a,u,s,f,v,D,I,E,$,te,J,ae,X,c,C,M,F,K){this.userFullName=o,this.selectedLanguage=t,this.reservation=i,this.currentStep=n,this.storeExamStartDate=a,this.storeExamStartEndDate=u,this.showPaymentSummary=s,this.showVoucherAmount=f,this.storeExam=v,this.showPaymentMethod=D,this.isTestCenter=I,this.showRequestAccommodationDetails=E,this.isRescheduleReservation=$,this.rescheduledReservationDate=te,this.rescheduledTimeZone=J,this.paymentMethod=ae,this.paymentMethodDescription=X,this.paymentMethodIcon=c,this.scheduleDate=C,this.scheduleTimeZone=M,this.accommodationDetail=F,this.selectedSessionTimeZoneDisplayName=K,this.totalDuration=Xi(v,this.accommodationDetail?.additionalTimeInMinutes,this.isRescheduleReservation)}};function Dc(e,o){if(e&1&&(d(0,"mat-icon",8),p(1,"info"),l()),e&2){let t=m(2);k("matTooltip","Accommodation Type: "+t.accommodationDetail.description),Z("aria-label","Accommodation Type: "+t.accommodationDetail.description)}}function Tc(e,o){if(e&1&&(d(0,"p",6),p(1),h(2,"translate"),l()),e&2){let t=m(2),i=m();r(),Pe("",t.totalDuration," ",g(2,2,i.localizationId.MarketBookingSchedulingMinutes))}}function wc(e,o){if(e&1&&(d(0,"p",6),p(1),h(2,"translate"),h(3,"translate"),h(4,"translate"),l()),e&2){let t=m(2),i=m();r(),di("",t.totalDuration," ",g(2,6,i.localizationId.MarketBookingSchedulingMin)," (",t.storeExam==null?null:t.storeExam.durationInMinutes," ",g(3,8,i.localizationId.MarketBookingSchedulingMin)," + ",t.accommodationDetail.additionalTimeInMinutes," ",g(4,10,i.localizationId.MarketBookingSchedulingMin),")")}}function Mc(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2)(2,"span",7),p(3),h(4,"translate"),l(),x(5,Dc,2,2,"mat-icon",8),l(),x(6,Tc,3,4,"p",6),x(7,wc,5,12,"p",6),l()),e&2){let t=m(),i=m();r(3),y(g(4,4,i.localizationId.MarketCommonDuration)),r(2),_(t.accommodationDetail!=null&&t.accommodationDetail.additionalTimeInMinutes?5:-1),r(),_(t.showRequestAccommodationDetails?-1:6),r(),_(t.showRequestAccommodationDetails?7:-1)}}function Ic(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),d(4,"p",6),p(5),l()()),e&2){let t=m(2),i=m();r(2),y(g(3,2,i.localizationId.MarketCommonPaymentMethod)),r(3),y(t.paymentMethod)}}function Ec(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),d(4,"p",6),p(5),h(6,"currency"),l()()),e&2){let t=m(2),i=m();r(2),y(g(3,2,i.localizationId.MarketBookingReviewPaymentVoucherLabel)),r(3),y(W(6,4,t.storeExam==null?null:t.storeExam.displayedCurrency.priceAmount,t.storeExam==null?null:t.storeExam.displayedCurrency.currencyCode))}}function Ac(e,o){if(e&1&&(d(0,"p",6),p(1),h(2,"currency"),l()),e&2){let t=m(3);r(),T(" ",W(2,1,t.storeExam==null?null:t.storeExam.displayedCurrency.priceAmount,t.storeExam==null?null:t.storeExam.displayedCurrency.currencyCode)," ")}}function Pc(e,o){if(e&1&&(d(0,"p",6),p(1),h(2,"currency"),l()),e&2){let t=m(3);r(),y(W(2,1,t.reservation.payment.totalAmountPaid,t.reservation.payment.currency))}}function Rc(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),x(4,Ac,3,4,"p",6),x(5,Pc,3,4,"p",6),l()),e&2){let t=m(2),i=m();r(2),y(g(3,3,i.localizationId.MarketBookingReviewConfirmationAmountDue)),r(2),_(t.reservation?-1:4),r(),_(t.reservation?5:-1)}}function Fc(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),d(4,"p",6),p(5),h(6,"currency"),l()(),x(7,Ic,6,4,"section",5),x(8,Ec,7,7,"section",5),x(9,Rc,6,5,"section",5)),e&2){let t=m(),i=m();r(2),y(g(3,5,i.localizationId.MarketCommonPrice)),r(3),y(W(6,7,t.storeExam==null?null:t.storeExam.displayedCurrency.priceAmount,t.storeExam==null?null:t.storeExam.displayedCurrency.currencyCode)),r(2),_(t.showPaymentMethod?7:-1),r(),_(t.showVoucherAmount?8:-1),r(),_(t.showVoucherAmount?-1:9)}}function zc(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),d(4,"p",6),p(5),h(6,"date"),l(),d(7,"p",6),p(8),l()()),e&2){let t=m(),i=m();r(2),y(g(3,3,i.localizationId.MarketBookingSchedulingOriginalDateTime)),r(3),y(W(6,5,t.rescheduledReservationDate,"MMM dd, yyyy 'at' hh:mm a")),r(3),y(t.rescheduledTimeZone)}}function Bc(e,o){if(e&1&&(d(0,"h3",2),p(1),h(2,"translate"),l()),e&2){let t=m(2);r(),y(g(2,1,t.localizationId.MarketBookingReviewConfirmationReservationDate))}}function Vc(e,o){if(e&1&&(d(0,"h3",2),p(1),h(2,"translate"),l()),e&2){let t=m(2);r(),y(g(2,1,t.localizationId.MarketBookingSchedulingRescheduledDateTime))}}function Lc(e,o){if(e&1&&(p(0),h(1,"date")),e&2){let t=m(),i=m();Pe(" ",W(1,2,i.checkoutForm.controls.scheduledDateConvertedTimeZone.value,"MMM dd, yyyy 'at' hh:mm a")," ",t.selectedSessionTimeZoneDisplayName," ")}}function Oc(e,o){if(e&1&&(d(0,"p",6),p(1),h(2,"translate"),h(3,"date"),l()),e&2){let t=m(3),i=m();r(),Pe("",g(2,2,i.localizationId.MarketBookingSchedulingTakeItBy)," ",W(3,4,t.storeExamStartEndDate,"MMM d, y, h:mm a"))}}function Zc(e,o){if(e&1&&(d(0,"p",6),p(1),h(2,"translate"),h(3,"date"),l(),x(4,Oc,4,7,"p",6)),e&2){let t=m(2),i=m();r(),Pe("",g(2,3,i.localizationId.MarketBookingSchedulingStartDate),": ",W(3,5,t.storeExamStartDate,"longDate")),r(3),_(t.storeExamStartEndDate?4:-1)}}function Nc(e,o){if(e&1&&(d(0,"p",6),p(1),h(2,"translate"),h(3,"date"),l()),e&2){let t=m(3),i=m();r(),Pe("",g(2,2,i.localizationId.MarketBookingSchedulingTakeItBy)," ",W(3,4,t.storeExamStartEndDate,"MMM d, y, h:mm a"))}}function $c(e,o){if(e&1&&x(0,Nc,4,7,"p",6),e&2){let t=m(2);_(t.storeExamStartEndDate?0:-1)}}function qc(e,o){if(e&1&&(d(0,"p",6)(1,"strong"),p(2),h(3,"translate"),l(),p(4),h(5,"date"),l(),d(6,"p",10),p(7),l()),e&2){let t=m(2),i=m();r(2),T("",g(3,3,i.localizationId.MarketBookingSchedulingTakeTheTestOn),":"),r(2),T(" ",W(5,5,t.scheduleDate,"MMM dd, yyyy 'at' hh:mm a")),r(3),y(t.scheduleTimeZone)}}function jc(e,o){if(e&1&&(d(0,"div",9)(1,"p",11),p(2),h(3,"translate"),l()()),e&2){let t=m(3);r(2),T("*",g(3,1,t.localizationId.MarketBookingSchedulingUpdatedTimeMessage))}}function Hc(e,o){if(e&1&&(x(0,Zc,5,8)(1,$c,1,1)(2,qc,8,8),x(3,jc,4,3,"div",9)),e&2){let t,i=m(),n=m();_((t=i.storeExam.deliveryType.possibleDateOption)===n.possibleDateOptionType.StartingOn?0:t===n.possibleDateOptionType.Today?1:t===n.possibleDateOptionType.Scheduled?2:-1),r(3),_(i.storeExamStartEndDate&&i.storeExam.deliveryType.possibleDateOption!==n.possibleDateOptionType.Scheduled?3:-1)}}function Wc(e,o){if(e&1&&(d(0,"section",5)(1,"h3",2),p(2),h(3,"translate"),l(),d(4,"p",6),p(5),l()()),e&2){let t=m(),i=m();r(2),y(g(3,2,i.localizationId.CommonLabelConfirmationCode)),r(3),y(t.reservation.reservationCode)}}function Gc(e,o){if(e&1&&(d(0,"mat-card",0)(1,"mat-card-header",1)(2,"h2",2),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),d(6,"mat-card-content",3)(7,"div",4)(8,"section",5)(9,"h3",2),p(10),h(11,"translate"),l(),d(12,"p",6),p(13),l()(),d(14,"section",5)(15,"h3",2),p(16),h(17,"translate"),l(),d(18,"p",6),p(19),l()(),d(20,"section",5)(21,"h3",2),p(22),h(23,"translate"),l(),d(24,"p",6),p(25),l()(),x(26,Mc,8,6,"section",5),d(27,"section",5)(28,"h3",2),p(29),h(30,"translate"),l(),d(31,"p",6),p(32),l()()(),d(33,"div",4),x(34,Fc,10,10),x(35,zc,9,8,"section",5),d(36,"section",5),x(37,Bc,3,3,"h3",2)(38,Vc,3,3,"h3",2),x(39,Lc,2,5),x(40,Hc,4,2),l(),x(41,Wc,6,4,"section",5),l()()()),e&2){let t=o,i=m();r(3),y(g(4,17,t.currentStep===1?i.localizationId.MarketBookingProgressReview:i.localizationId.MarketBookingReviewConfirmationLabel)),r(7),y(g(11,19,i.localizationId.MarketBookingReviewConfirmationCandidate)),r(3),y(t.userFullName),r(3),y(g(17,21,i.localizationId.MarketCommonOrganization)),r(3),y(t.storeExam==null?null:t.storeExam.organizationName),r(3),y(g(23,23,i.localizationId.MarketCommonExam)),r(3),Pe("",t.storeExam==null?null:t.storeExam.storeExamName," (",t.storeExam==null?null:t.storeExam.storeExamCode,")"),r(),_(t.totalDuration?26:-1),r(3),y(g(30,25,i.localizationId.MarketCommonLanguage)),r(3),y(t.selectedLanguage==null?null:t.selectedLanguage.name),r(2),_(t.showPaymentSummary?34:-1),r(),_(t.isResc
449heduleReservation?35:-1),r(2),_(t.isRescheduleReservation?38:37),r(2),_(t.isTestCenter?39:-1),r(),_(t.isTestCenter?-1:40),r(),_(t.reservation?41:-1)}}var Gr=(()=>{class e extends se{constructor(t,i){super(),this.store=t,this.route=i,this.possibleDateOptionType=ha,this.checkoutCurrentStep$=new pt(null),this.personExamReservation$=new pt(null)}ngOnChanges(t){this.personExamReservation$.next(this.personExamReservation),this.checkoutCurrentStep$.next(this.checkoutCurrentStep)}ngOnInit(){this.viewModel$=q([this.store.isRescheduleReservation$,this.store.rescheduledReservation$,this.store.selectedAccommodationRequest$,this.store.storeExam$,this.store.paymentCode$,this.checkoutCurrentStep$,this.personExamReservation$,this.store.testCenterSessions$,this.checkoutForm.controls.examLanguage.valueChanges.pipe(_e(this.checkoutForm.controls.examLanguage.value)),this.checkoutForm.controls.scheduleStartDate.valueChanges.pipe(_e(this.checkoutForm.controls.scheduleStartDate.value)),this.checkoutForm.controls.paymentMethod.valueChanges.pipe(_e(this.checkoutForm.controls.paymentMethod.value)),this.checkoutForm.controls.testCenterSessionId.valueChanges.pipe(_e(this.checkoutForm.controls.testCenterSessionId.value)),this.store.selectedTimeZone$]).pipe(ie(([t,i,n,a,u,s,f,v,D,I,E,$,te])=>{let J=a.isPriceHidden?!1:u&&E===L.Voucher,ae=dt(je.Review,a.deliveryType.isLiveProctored),X=a.isPriceHidden?!1:s==ae&&a.displayedCurrency?.priceAmount>0&&!t,c=X&&E!==null,C=!!n,M=a.deliveryType.isTestCenter?v.find(K=>K.id===$)?.locationWindowsTimeZoneDisplayName:null,F;return a.deliveryType.isLiveProctored&&(F=te?.displayedName),new yo(this._userSession.getFullName(),D,f,s,a.deliveryType.startDate,a.deliveryType.endDate,X,J,a,c,this.route.snapshot.data.isTestCenter,C,t,t?i.scheduledDateUtc:null,t?i.scheduledTimeZone:null,c?Mi[E]:"",c?Ri(E):"",c?Pi(E):"",I,F,n,M)}))}ngOnDestroy(){return super.ngOnDestroy()}static{this.\u0275fac=function(i){return new(i||e)(V(ne),V(kt))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-summary"]],inputs:{checkoutCurrentStep:"checkoutCurrentStep",personExamReservation:"personExamReservation",checkoutForm:"checkoutForm"},standalone:!1,features:[re,Uo],decls:2,vars:3,consts:[["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"p-0","summary-grid"],[1,"card--filled__content"],[1,"card--filled__item"],[1,"body--large"],[1,"v-middle"],["aria-hidden","false","matTooltipPosition","right",1,"v-middle","m-l-4","inline-flex","justify-center","icon-sm","align-center","material-symbols-outlined",3,"matTooltip"],[1,"date-card","m-t-4"],[1,"body--large","p-t-24"],[1,"body--large","font-style-italic"]],template:function(i,n){if(i&1&&(x(0,Gc,42,27,"mat-card",0),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[pe,ve,he,Te,oe,Nt,ee,hi,Ge,U],styles:[".summary-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:var(--mat-sys-measurement-space300)}@media screen and (max-width:599px){.summary-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}"],changeDetection:0})}}return e})();function Uc(e,o){if(e&1){let t=H();d(0,"a",5),A("click",function(){z(t);let n=m(),a=m();return B(a.openOrganizationTermsAndConditions(n.organizationName,n.organizationTermsAndConditionsLink))}),p(1),h(2,"translate"),l()}if(e&2){let t=m(2);r(),y(g(2,1,t.localizationId.MarketBookingReviewTncTextOrganizationLink))}}function Qc(e,o){if(e&1&&(p(0),h(1,"translate")),e&2){let t=m(2);T(" ",g(1,1,t.localizationId.MarketBookingReviewTncTextWithAnd)," ")}}function Kc(e,o){if(e&1){let t=H();d(0,"a",5),A("click",function(){z(t);let n=m(),a=m();return B(a.openTermsAndConditions(n.certiverseRemoteProctoringTermsAndConditionsLink))}),p(1),h(2,"translate"),l()}if(e&2){let t=m(2);r(),y(g(2,1,t.localizationId.MarketBookingReviewTncTextCertiverseRemoteProctoringLink))}}function Yc(e,o){if(e&1&&(d(0,"mat-card",0)(1,"mat-card-header",1)(2,"h2",2),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),d(6,"mat-card-content",3)(7,"p",4),p(8),h(9,"translate"),x(10,Uc,3,3,"a"),x(11,Qc,2,3),x(12,Kc,3,3,"a"),l()()()),e&2){let t=o,i=m();r(3),y(g(4,5,i.localizationId.MarketBookingReviewTncLabel)),r(5),T("",g(9,7,i.localizationId.MarketBookingReviewTncText)," "),r(2),_(t.organizationTermsAndConditionsLink?10:-1),r(),_(t.organizationTermsAndConditionsLink&&t.isLiveProctored?11:-1),r(),_(t.isLiveProctored?12:-1)}}var Ur=(()=>{class e extends se{constructor(t){super(),this.store=t,this.localizationId=P,this.viewModel$=this.store.storeExam$.pipe(ie(i=>{let n=zn(En.CertiverseRemoteProctoringTermsAndConditions)??"certiverse-remote-proctoring-terms-and-conditions";return new No(i.organizationName,i.deliveryType.isLiveProctored,i.termsAndConditions,`${this._settings.settings.marketPlace.domain}/#/documents/${n}`)})),this.openOrganizationTermsAndConditions=(i,n)=>{let a=getComputedStyle(document.documentElement),u=a.getPropertyValue("--mat-sys-surface").trim(),s=a.getPropertyValue("--mat-sys-on-surface").trim(),f=a.getPropertyValue("--mat-sys-surface-container").trim(),v=`
450      <!DOCTYPE html>
451      <html>
452        <head><title>${i} Terms and Conditions</title>
453        <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,600,700" rel="stylesheet">
454
455        <style>
456          body {
457            background-color: ${u};
458            color: ${s};
459            font-family: 'Roboto', sans-serif;
460            font-size: 16px;
461          }
462            header {
463            height: 64px;
464            display: flex;
465            align-items: center;}
466            .container {
467              background-color: ${f};
468              max-width: min(1200px, 80%);
469              margin: 0 auto;
470              padding: 1.5rem;
471              border-radius: 16px;
472              margin-top: 2.5rem;
473            }
474        </style>
475        </head>
476        <body>
477        <main class="container">
478          <header>
479            <h1>${i} Terms  and Conditions</h1>
480          </header>
481          <article>${n}</article>
482        </main>
483        </body>
484      </html>
485    `,D=new Blob([v],{type:"text/html;charset=utf-8"}),I=URL.createObjectURL(D);this.openTermsAndConditions(I)},this.openTermsAndConditions=i=>{this._openInNewTab(i)},this._updateThemeVersion(Ei.CV2),this._forceLightMode()}static{this.\u0275fac=function(i){return new(i||e)(V(ne))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-terms-and-conditions"]],standalone:!1,features:[re],decls:2,vars:3,consts:[["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"p-0"],[1,"body--large"],[3,"click"]],template:function(i,n){if(i&1&&(x(0,Yc,13,9,"mat-card",0),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[pe,ve,he,oe,ee,U],styles:["a[_ngcontent-%COMP%]{color:var(--mat-sys-primary);text-decoration:underline}@media screen and (max-width:959px){  .terms-and-conditions .rich-text-box>ol{padding-left:20px}  .terms-and-conditions .rich-text-box li::marker{font-size:.875rem}}"],changeDetection:0})}}return e})(),No=class{constructor(o,t,i,n){this.organizationName=o,this.isLiveProctored=t,this.organizationTermsAndConditionsLink=i,this.certiverseRemoteProctoringTermsAndConditionsLink=n}};
485function Jc(e,o){if(e&1&&(d(0,"mat-option",9),p(1),l()),e&2){let t=o.$implicit;k("value",t),r(),y(t.name)}}function Xc(e,o){if(e&1&&(d(0,"mat-error",10),p(1),h(2,"translate"),l()),e&2){let t=m(3);r(),y(g(2,1,t.localizationId.CommonButtonRequired))}}function ed(e,o){if(e&1&&(d(0,"mat-hint",10),p(1),h(2,"translate"),l()),e&2){let t=m(3);r(),y(g(2,1,t.localizationId.CommonButtonRequired))}}function td(e,o){if(e&1&&(d(0,"mat-card",0)(1,"mat-card-header",2)(2,"h2",3),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),d(6,"mat-card-content",4)(7,"p",5),p(8),h(9,"translate"),l(),d(10,"div",6)(11,"mat-form-field",7)(12,"mat-label"),p(13),h(14,"translate"),l(),d(15,"mat-select",8),fe(16,Jc,2,2,"mat-option",9,xt),l(),x(18,Xc,3,3,"mat-error",10),x(19,ed,3,3,"mat-hint",10),l()()()()),e&2){let t=m(),i=m();r(3),y(g(4,6,i.localizationId.MarketCommonLanguage)),r(5),T(" ",g(9,8,i.localizationId.MarketBookingLanguageDescription)," "),r(5),y(g(14,10,i.localizationId.MarketCommonLanguage)),r(2),k("formControl",i.examLanguageControl),r(),xe(t.languages),r(2),_(i.examLanguageControl.errors&&i.examLanguageControl.touched?18:-1),r(),_(!i.examLanguageControl.touched||i.examLanguageControl.valid?19:-1)}}function id(e,o){if(e&1&&p(0),e&2){let t=o.$implicit;T(" ",t.name," ")}}function od(e,o){if(e&1){let t=H();d(0,"button",14),A("click",function(){z(t);let n=m(3);return B(n.accommodationRequested.emit())}),d(1,"mat-icon",15),p(2,"accessibility_new"),l(),p(3),h(4,"translate"),l()}if(e&2){let t=m(3);Z("type",t.buttonTypes.Round)("size",t.buttonSizes.Small),r(3),T(" ",g(4,3,t.localizationId.MarketCommonRequestAccommodation)," ")}}function nd(e,o){if(e&1&&(d(0,"div",1)(1,"div",11)(2,"div")(3,"h3",3),p(4),h(5,"translate"),l(),d(6,"p",12),fe(7,id,1,1,null,null,xt),l()(),x(9,od,5,5,"button",13),l()()),e&2){let t=m(),i=m();r(4),y(g(5,2,i.localizationId.MarketCommonLanguage)),r(3),xe(t.languages),r(2),_(i.showAccommodationButton()?9:-1)}}function ad(e,o){if(e&1&&(x(0,td,20,12,"mat-card",0),x(1,nd,10,4,"div",1)),e&2){let t=o;_(t.hasMultipleLanguages?0:-1),r(),_(t.hasMultipleLanguages?-1:1)}}var Qr=(()=>{class e{constructor(t,i){this.store=t,this.cd=i,this.showAccommodationButton=vt(!1),this.accommodationRequested=ui(),this.localizationId=P,this.buttonTypes=Ke,this.buttonSizes=Le,this.viewModel$=this.store.storeExam$.pipe(ie(n=>{let a=n.languages?.length>1;return new $o(n.languages,a)}))}ngOnInit(){}markAsTouched(){this.examLanguageControl.markAsTouched(),this.cd.detectChanges()}static{this.\u0275fac=function(i){return new(i||e)(V(ne),V(St))}}static{this.\u0275cmp=N({type:e,selectors:[["market-exam-language"]],inputs:{examLanguageControl:"examLanguageControl",showAccommodationButton:[1,"showAccommodationButton"]},outputs:{accommodationRequested:"accommodationRequested"},standalone:!1,decls:2,vars:3,consts:[["appearance","filled",1,"card--filled"],[1,"single-language"],[1,"card--filled__header"],[1,"label--large"],[1,"card--filled__content","card--filled__content--compact"],[1,"body--large"],[1,"card--filled__input-row"],["appearance","outline"],["color","accent","placeholder","Select Language...",3,"formControl"],[3,"value"],[1,"m-t-8"],[1,"language-row"],[1,"d-flex","m-0"],["matButton","outlined",1,"accommodation-btn","m-l-auto"],["matButton","outlined",1,"accommodation-btn","m-l-auto",3,"click"],["aria-hidden","true",1,"accommodation-btn-icon"]],template:function(i,n){if(i&1&&(x(0,ad,2,2),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[ze,ue,pe,ve,he,me,Ve,fi,at,Te,oe,rt,ye,Lt,ee,U],styles:[".single-language[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container);border-radius:0 0 var(--mat-sys-measurement-space150) var(--mat-sys-measurement-space150);color:var(--mat-sys-on-surface);padding:var(--mat-sys-measurement-space300);display:flex;flex-direction:column;margin-top:calc(-1 * var(--mat-sys-measurement-space300))}.label--large[_ngcontent-%COMP%]{text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.language-row[_ngcontent-%COMP%], .accommodation-btn[_ngcontent-%COMP%]{display:flex;align-items:center}.accommodation-btn-icon[_ngcontent-%COMP%]{font-size:24px;color:var(--mat-sys-on-surface-variant)}"],changeDetection:0})}}return e})(),$o=class{constructor(o,t){this.languages=o,this.hasMultipleLanguages=t}};var ai=class{constructor(o,t){this.name=o,this.value=t}};var vo=class{constructor(o,t,i){this.showCandidateInformation=o,this.storeExam=t,this.countries=i,this.customFieldStaticOrder=[qe.CandidateId,qe.Company,qe.Department,qe.AddressLine1,qe.AddressLine2,qe.City,qe.StateProvince,qe.PostalCode,qe.Country,qe.PhoneNumber]}};function qo(e){let o=e.value;
485if(o)return typeof o=="string"?{invalidOption:!0}:null}var So=class{constructor(o,t,i,n,a,u,s,f,v){this.id=o,this.label=t,this.fieldType=i,this.fieldDataType=n,this.isOrganizationCustomField=a,this.isRequired=u,this.isAutoComplete=s,this.autoCompleteOptions=f,this.order=v,this.getPlaceHolder=()=>this.label===qe.AddressLine2?"Apt, suite, etc.":"",this.placeHolder=this.getPlaceHolder()}};var ko=class{static{this._autoCompleteDataTypes=[ht.COUNTRY,ht.SELECTLIST]}static{this.checkIsAutoComplete=o=>this._autoCompleteDataTypes.some(t=>t==o)}};var rd=(e,o)=>o.value;function sd(e,o){if(e&1&&(d(0,"mat-form-field",11)(1,"mat-label"),p(2),l(),w(3,"input",13),l()),e&2){let t=m().$implicit;r(2),y(t.controls.label.value),r(),k("placeholder",t.controls.customFieldPlaceHolder.value)}}function ld(e,o){if(e&1&&(d(0,"mat-option",16),p(1),l()),e&2){let t=o.$implicit;k("value",t),r(),T(" ",t.name," ")}}function cd(e,o){if(e&1&&(d(0,"mat-error",17),p(1),h(2,"translate"),l()),e&2){let t=m(5);r(),y(g(2,1,t.localizationId.CommonSelectAnOption))}}function dd(e,o){if(e&1){let t=H();d(0,"mat-form-field",11)(1,"mat-label"),p(2),l(),w(3,"input",14),d(4,"mat-autocomplete",15,0),A("optionSelected",function(n){z(t);let a=m().$implicit,u=m(3);return B(u.optionSelected(n.option,a.controls.customFieldId.value))}),fe(6,ld,2,2,"mat-option",16,rd),l(),x(8,cd,3,3,"mat-error",17),l()}if(e&2){let t=Ne(5),i=m().$implicit,n=m(3);r(2),y(i.controls.label.value),r(),k("matAutocomplete",t),r(),k("displayWith",n.displayFn),r(2),xe(i.controls.customFieldAutoCompleteFilteredOptions.value),r(2),_(i.controls.customFieldAutoComplete.errors!=null&&i.controls.customFieldAutoComplete.errors.invalidOption?8:-1)}}function md(e,o){if(e&1&&(d(0,"mat-option",20),p(1),l()),e&2){let t=o.$implicit;k("value",t),r(),y(t.name)}}function ud(e,o){if(e&1&&(d(0,"mat-error",17),p(1),h(2,"translate"),l()),e&2){let t=m(5);r(),y(g(2,1,t.localizationId.CommonSelectAnOption))}}function pd(e,o){if(e&1){let t=H();d(0,"mat-form-field",12),w(1,"mat-label",18),h(2,"sanitizeHtml"),d(3,"mat-select",19),h(4,"translate"),A("selectionChange",function(n){z(t);let a=m().$implicit,u=m(3);return B(u.optionListSelected(n,a.controls.customFieldId.value))}),fe(5,md,2,2,"mat-option",20,xt),l(),x(7,ud,3,3,"mat-error",17),l()}if(e&2){let t=m().$implicit,i=m(3);r(),k("innerHtml",g(2,3,t.controls.label.value),zt),r(2),k("placeholder",g(4,5,i.localizationId.CommonSelectOption)),r(2),xe(t.controls.customFieldAutoCompleteOptions.value),r(2),_(t.controls.customFieldAutoComplete.errors!=null&&t.controls.customFieldAutoComplete.errors.invalidOption?7:-1)}}function hd(e,o){if(e&1&&(li(0,9),d(1,"div",10),x(2,sd,4,2,"mat-form-field",11)(3,dd,9,4,"mat-form-field",11)(4,pd,8,7,"mat-form-field",12),l(),ci()),e&2){let t,i=o.$implicit,n=o.$index,a=m(3);k("formGroupName",n),r(2),_((t=i.controls.fieldDataType.value)===a.customFieldDataTypes.COUNTRY?3:t===a.customFieldDataTypes.SELECTLIST?4:2)}}function Cd(e,o){if(e&1&&(d(0,"mat-card",1)(1,"mat-card-header",2)(2,"h2",3),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),d(6,"mat-card-content",4)(7,"p",5),p(8,"("),d(9,"span",6),p(10,"*"),l(),p(11),h(12,"translate"),l(),d(13,"form",7)(14,"div",8),fe(15,hd,5,2,"ng-container",9,xt),l()()()()),e&2){let t=m(2);r(3),y(g(4,3,t.localizationId.MarketBookingSchedulingConfirmationLabel)),r(8),T(" ",g(12,5,t.localizationId.MarketBookingSchedulingConfirmationRequiredField),")"),r(2),k("formGroup",t.checkoutForm),r(2),xe(t.checkoutForm.controls.customFields.controls)}}function gd(e,o){e&1&&x(0,Cd,17,7,"mat-card",1),e&2&&_(o.showCandidateInformation?0:-1)}var Kr=(()=>{class e extends se{constructor(t,i){super(),this.store=t,this.cd=i,this.viewModel$=q([this.store.storeExam$,this.store.countries$]).pipe(ie(([n,a])=>{let u=n.customFields?.length>0;return new vo(u,n,a)})),this.customFieldDataTypes=ht,this.optionSelected=(n,a)=>{let u=n.value;this.checkoutForm.controls.customFields.controls.find(s=>s.controls.customFieldId.value===a).controls.customFieldValue.setValue(u.value)},this.optionListSelected=(n,a)=>{let u=n.value;this.checkoutForm.controls.customFields.controls.find(s=>s.controls.customFieldId.value===a).controls.customFieldValue.setValue(u.value)},this.buildCandidateInformationForm=()=>{q([this.store.personCustomFields$,this.store.storeExam$,this.store.countries$]).pipe(O()).subscribe(([n,a,u])=>{this.checkoutForm.controls.customFields=new Ci([]);let s=this.getCustomFields(a.customFields,u);s.sort((f,v)=>
485f.order-v.order),s.forEach(f=>{let v=n.find(I=>I.customFieldId===f.id)?.customFieldValue;if(v)try{v=JSON.parse(v)}catch(I){}let D=f.isAutoComplete?f.autoCompleteOptions.find(I=>I.value===v):"";this.checkoutForm.controls.customFields.push(new $e({customFieldId:new R(f.id,[G.required]),label:new R(f.label,[G.required]),fieldType:new R(f.fieldType,[G.required]),fieldDataType:new R(f.fieldDataType,[G.required]),customFieldValue:new R(v,f.isRequired?[G.required]:[]),isOrganizationCustomField:new R(f.isOrganizationCustomField),customFieldPlaceHolder:new R(f.placeHolder),customFieldAutoComplete:new R(D,f.isRequired&&f.isAutoComplete?[G.required,qo]:[qo]),customFieldAutoCompleteOptions:new R(f.autoCompleteOptions),customFieldAutoCompleteFilteredOptions:new R(f.autoCompleteOptions)}))}),s.filter(f=>f.isAutoComplete).forEach(f=>{let v=this.checkoutForm.controls.customFields.controls.find(D=>D.controls.customFieldId.value===f.id);this._subscriptions.push(v.controls.customFieldAutoComplete.valueChanges.pipe(_e(""),ie(D=>typeof D=="str
485ing"?D:D.name),ie(D=>this._filterOptions(D,v.controls.customFieldId.value))).subscribe())})})},this.getCustomFields=(n,a)=>n.map(u=>{let s=ko.checkIsAutoComplete(u.fieldDataType);return new So(u.id,u.label,u.fieldType,u.fieldDataType,u.isOrganizationCustomField,u.isRequired,s,s?this.getCustomFieldAutoCompleteOptions(u,a):[],u.order)}),this.getCustomFieldAutoCompleteOptions=(n,a)=>{switch(n.fieldDataType){case ht.COUNTRY:return a.map(u=>new ai(u.countryName,u.countryCode));case ht.SELECTLIST:return n.options.map(u=>new ai(u,u));default:throw new Error(`${n.fieldDataType} not implemented`)}}}ngOnInit(){this.buildCandidateInformationForm()}ngOnDestroy(){return super.ngOnDestroy()}displayFn(t){return t?t.name:null}markAllAsTouched(){this.checkoutForm.controls.customFields.markAllAsTouched(),this.cd.detectChanges()}_filterOptions(t,i){let n=t.toLowerCase(),a=this.checkoutForm.controls.customFields.controls.find(s=>s.controls.customFieldId.value===i);if(!n){a.controls.customFieldAutoCompleteFilteredOptions.setValue(a.controls.customFieldAutoCompleteOptions.value);return}let u=a.controls.customFieldAutoCompleteOptions.value.filter(s=>s.name.toLowerCase().includes(n.toLocaleLowerCase()));a.controls.customFieldAutoCompleteFilteredOptions.setValue(u)}static{this.\u0275fac=function(i){return new(i||e)(V(ne),V(St))}}static{this.\u0275cmp=N({type:e,selectors:[["market-candidate-information"]],inputs:{checkoutForm:"checkoutForm"},standalone:!1,features:[re],decls:2,vars:3,consts:[["auto","matAutocomplete"],["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"card--filled__content","card--filled__content--compact"],[1,"d-block","body--large"],[1,"color-mandatory"],[1,"w-100",3,"formGroup"],["formArrayName","customFields"],[3,"formGroupName"],[1,"card--filled__input-row"],["appearance","outline"],["appearance","outline",1,"language-box"],["matInput","","formControlName","customFieldValue","autocomplete","off","maxlength","100",3,"placeholder"],["type","text","matInput","","formControlName","customFieldAutoComplete",3,"matAutocomplete"],[3,"optionSelected","displayWith"],[1,"option",3,"value"],[1,"m-t-4"],[3,"innerHtml"],["color","accent","formControlName","customFieldAutoComplete",3,"selectionChange","placeholder"],[3,"value"]],template:function(i,n){if(i&1&&(x(0,gd,1,1),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[Xe,ze,xi,pe,ve,he,me,Ve,at,Qe,oe,rt,Me,Ue,ye,we,gi,Ie,Be,ln,cn,ee,la,U],encapsulation:2,changeDetection:0})}}return e})();var fd=["timeZoneInput"],xd=["optionElem"],_d=["timeZoneOptionElement"],yd=(e,o)=>o.countryName,vd=(e,o)=>o.ianaTimeZoneName;function Sd(e,o){if(e&1&&(d(0,"mat-option",15,1),p(2),l()),e&2){let t=o.$implicit;k("value",t),r(2),T(" ",t.countryName," ")}}function kd(e,o){if(e&1&&(d(0,"mat-error",16),p(1),h(2,"translate"),l()),e&2){let t=m(2);r(),T(" ",g(2,1,t.localizationId.MarketCommonSelectValidOption)," ")}}function bd(e,o){if(e&1&&(d(0,"mat-option",19,4)(2,"div",20)(3,"div",21),p(4),l(),d(5,"div",22),p(6),l()()()),e&2){let t=o.$implicit;k("value",t.ianaTimeZoneName),r(4),T(" ",t.mainLabel," "),r(2),T(" ",t.offsetLabel," ")}}function Dd(e,o){if(e&1){let t=H();d(0,"mat-form-field",12)(1,"mat-label"),p(2),h(3,"translate"),l(),d(4,"input",18,2),A("focus",function(){z(t);let n=m(2);return B(n.selectAllText())})("click",function(){z(t);let n=m(2);return B(n.selectAllText())}),l(),d(6,"mat-autocomplete",14,3),A("optionSelected",function(n){z(t);let a=m(2);return B(a.timeZoneOptionSelected(n.option.value))})("opened",function(){z(t);let n=m(2);return B(n.scrollToSelectedTimeZone())}),fe(8,bd,7,3,"mat-option",19,vd),l()()}if(e&2){let t=Ne(7),i=m(2);r(2),y(g(3,4,i.localizationId.MarketBookingSchedulingTimezoneLabel)),r(2),k("formControl",i.timeZoneControl())("matAutocomplete",t),r(2),k("displayWith",i.timeZoneDisplayFn),r(2),xe(i.filteredTimeZones())}}function Td(e,o){if(e&1){let t=H();d(0,"mat-card",5)(1,"mat-card-header",6)(2,"h2",7),p(3),h(4,"translate"),l()(),w(5,"mat-divider"),d(6,"mat-card-content",8)(7,"p",9),p(8),h(9,"translate"),d(10,"span",10),p(11," *"),l()(),d(12,"div",11)(13,"mat-form-field",12)(14,"mat-label"),p(15),h(16,"translate"),l(),w(17,"input",13),d(18,"mat-autocomplete",14,0),A("optionSelected",function(n){z(t);let a=m();return B(a.countryOptionSelected(n.option.value))})("opened",function(){z(t);let n=m();return B(n.scrollToSelectedCountry())}),fe(20,Sd,3,2,"mat-option",15,yd),l(),x(22,kd,3,3,"mat-error",16),d(23,"mat-icon",17),p(24,"arrow_drop_down"),l(
485)(),x(25,Dd,10,6,"mat-form-field",12),l()()()}if(e&2){let t=o,i=Ne(19),n=m();r(3),y(g(4,8,n.localizationId.MarketBookingSchedulingDeliveryLocationLabel)),r(5),T("",g(9,10,n.localizationId.MarketBookingSchedulingDeliveryLocationCountry),". "),r(7),y(g(16,12,n.localizationId.MarketCommonCountry)),r(2),k("formControl",n.browserCountryControl)("matAutocomplete",i),r(),k("displayWith",n.countryDisplayFn),r(2),xe(t.countries),r(2),_(n.browserCountryControl.errors!=null&&n.browserCountryControl.errors.invalidOption?22:-1),r(3),_(t.showTimeZoneDropdown?25:-1)}}var Yr=(()=>{class e extends se{constructor(t,i){super(),this.store=t,this.cd=i,this.timeZoneValue=vt(null),this.timeZoneControl=vt(new R(null)),this.SCROLL_DELAY_MS=100,this.filteredTimeZones=tn(()=>this.getFilteredTimeZones()),this.countryOptionSelected=n=>{this.browserCountryControl.setValue(n),this.timeZoneControl().setValue(null),this.store.updateSelectedCountry(n)},this.timeZoneOptionSelected=n=>{let u=this.store.countryTimeZones().find(s=>s.ianaTimeZoneName===n);this.store.handleTimeZoneChanged(u)},this.timeZoneDisplayFn=n=>n?this.store.countryTimeZones().find(u=>u.ianaTimeZoneName===n)?.shortDisplayedName??null:null,this.patchBrowserCountryControl=()=>{q([this.store.storeExam$,this.store.countries$,this.store.selectedCountryCode$]).pipe(O()).subscribe(([n,a,u])=>{let s=n.browserCountry?.countryName,f=a.find(v=>v.countryCode===u)??a.find(v=>v.countryName.toLowerCase()===s?.toLocaleLowerCase());if(f){this.browserCountryControl.setValue(f);return}})},this.handleTimeZoneControl=()=>{this.store.showSchedulingCalendar$.pipe(O()).subscribe(n=>{n&&(this.timeZoneControl().setValidators([G.required]),this.timeZoneControl().updateValueAndValidity())})},this.getFilteredTimeZones=()=>{let n=this.store.countryTimeZones();if(!n)return[];let a=this.timeZoneValue();return a?n.find(s=>s.ianaTimeZoneName===this.timeZoneControl().value)?n:n.filter(s=>s.shortDisplayedName.toLowerCase().includes(a.toLowerCase())):n}}ngOnInit(){this.patchBrowserCountryControl(),this.handleTimeZoneControl(),this.viewModel$=q([this.store.showSchedulingCalendar$,this.store.countries$,this.store.storeExam$,this.browserCountryControl.valueChanges.pipe(_e(""))]).pipe(ie(([t,i,n,a])=>{n.browserCountry?.isEmbargoed&&(this.browserCountryControl.disable(),this._snackBar.open("The United States Department of the Treasury Office of Foreign Assets Control (OFAC) administers and enforces economic sanctions imposed by the United States against foreign countries, and prohibits certain transactions with embargoed countries, including online exams.","Dismiss",{duration:8e3}));let u=n.browserCountry?.countryName;a&&(typeof a=="string"?u=a:(u=a.countryName,this.store.setSelectedCountry(a)));let s=t,f=this.getFilteredCountries(u,i),v=this.getFilteredTimeZones();if(typeof a=="string"&&f.length===1&&f[0].countryName.toLocaleLowerCase()===a.toLocaleLowerCase()){let I=f[0];this.countryOptionSelected(I)}return new jo(s,f,v)}))}ngOnDestroy(){return this.timeZoneControl().clearValidators(),this.timeZoneControl().updateValueAndValidity(),super.ngOnDestroy()}countryDisplayFn(t){return t?t.countryName:null}markAsTouched(){this.browserCountryControl.markAsTouched(),this.cd.detectChanges()}scrollToSelectedCountry(){setTimeout(()=>{this.countryAutocomplete.options?.find(i=>i.value===this.browserCountryControl.value)?.select(!1);let t=this.optionElems.find(i=>i.nativeElement.textContent.trim()===this.browserCountryControl.value?.countryName?.trim());t&&t.nativeElement.scrollIntoView({block:"center",behavior:"smooth"})},this.SCROLL_DELAY_MS)}scrollToSelectedTimeZone(){setTimeout(()=>{let i=this.store.countryTimeZones().find(a=>a.ianaTimeZoneName===this.timeZoneControl().value);if(!i)return;this.timeZoneAutocomplete.options?.find(a=>a.value===i.ianaTimeZoneName)?.select(!1);let n=this.timeZoneOptionElems.find(a=>a.nativeElement.textContent.trim()===`${i.mainLabel}  ${i.offsetLabel}`);n&&n.nativeElement.scrollIntoView({block:"center",behavior:"smooth"})},this.SCROLL_DELAY_MS)}getFilteredCountries(t,i){if(!t||i.find(s=>s.countryName===t))return i;let a=i.filter(s=>s.countryName.toLowerCase().includes(t.toLocaleLowerCase())),u=a.sort((s,f)=>s.countryName.toLocaleLowerCase().startsWith(t)?-1:1);return a.length<1&&this.browserCountryControl.setErrors({invalidOption:!0}),u}selectAllText(){setTimeout(()=>{let t=this.timeZoneInput?.nativeElement;t?.value&&t.select()},this.SCROLL_DELAY_MS)}static{this.\u0275fac=function(i){return new(i||e)(V(ne),V(St))}}static{this.\u0275cmp=N({type:e,selectors:[["market-checkout-test-delivery-location"]],viewQuery:function(i,n){if(i&1&&yt(Xe,5)(Xe,5)(fd,5)(xd,5,bo)(_d,5,bo),i&2){let a;be(a=De())&&(n.countryAutocomplete=a.first),be(a=De())&&(n.timeZoneAutocomplete=a.first),be(a=De())&&(n.timeZoneInput=a.first),be(a=De())&&(n.optionElems=a),be(a=De())&&(n.timeZoneOptionElems=a)}},inputs:{browserCountryControl:"browserCountryControl",timeZoneValue:[1,"timeZoneValue"],timeZoneControl:[1,"timeZoneControl"]},standalone:!1,features:[re],decls:2,vars:3,consts:[["auto","matAutocomplete"],["optionElem",""],["t
485imeZoneInput",""],["timeZoneAuto","matAutocomplete"],["timeZoneOptionElement",""],["appearance","filled",1,"card--filled"],[1,"card--filled__header"],[1,"label--large"],[1,"card--filled__content","card--filled__content--compact"],[1,"body--large"],[1,"color-mandatory"],[1,"card--filled__input-row"],["appearance","outline"],["type","text","matInput","",3,"formControl","matAutocomplete"],["color","accent",3,"optionSelected","opened","displayWith"],[1,"option",3,"value"],[1,"m-t-4"],["matIconSuffix",""],["type","text","matInput","",3,"focus","click","formControl","matAutocomplete"],[1,"timezone-item",3,"value"],[1,"timezone-option"],[1,"timezone-main"],[1,"timezone-offset"]],template:function(i,n){if(i&1&&(x(0,Td,26,14,"mat-card",5),h(1,"async")),i&2){let a;_((a=g(1,1,n.viewModel$))?0:-1,a)}},dependencies:[Xe,ze,xi,pe,ve,he,me,Ve,at,un,Te,Qe,oe,Ue,ye,Lt,ee,U],styles:[".timezone-item[_ngcontent-%COMP%]{border-bottom:1px solid var(--mat-sys-outline-variant);min-height:56px}.timezone-option[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.2}.timezone-main[_ngcontent-%COMP%]{white-space:normal!important}.timezone-offset[_ngcontent-%COMP%]{font-size:12px;opacity:.7}"],changeDetection:0})}}return e})(),jo=class{constructor(o,t,i){this.showTimeZoneDropdown=o,this.countries=t,this.timeZones=i}};var U0=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ko({type:e})}static{this.\u0275inj=Go({imports:[nn,hn.forChild(Br),ua,dn,mn,ba,Xe,me,ze]})}}return e})();Xo(Ht,function(){return[nt,pi,ue,pe,Si,ve,he,Zt,oe,bi,Li,ca,da,ma,Me,we,Ie,ka,Lr,Nr,Wr,Gr,Ur,Qr,Kr,Yr]},function(){return[ee,U]});export{U0 as CheckoutModule};

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.