{"version":3,"sources":["webpack:///./src/features/schedule/schedule/datetime.html","webpack:///./src/features/schedule/schedule/locations.html","webpack:///./src/features/schedule/schedule/schedule.ts","webpack:///./src/features/schedule/schedule/schedule.html"],"names":["module","exports","router","renderer","factory","validationWrapper","scheduleState","clientState","mappingApi","bookingApi","moveAwayWarning","schedulingShared","currentView","JARGON","viewAllBtn","expandedLocations","saveIsSuccessful","dataLoaded","gettingTimeslots","commands","createGroup","name","canExecute","validSchedule","execute","nextStep","this","validationController","createForCurrentScope","addRenderer","setController","activate","params","routeConfig","navigationInstruction","previousInstruction","window","location","href","baseUrl","isLoading","setDateRestrictions","program","maxDaysOut","setRoutes","clientId","settings","isPreAuth","steps","position","client","attached","validProcedures","navigateToRoute","setDirtyableOnRefresh","locationForm","on","selectedDate","zipCode","person","addresses","zip5","timeBlocks","JSON","parse","stringify","TimeSlotDefaults","populateProcedureIds","routeName","clientName","b2cProgramId","PATIENT_DASHBOARD","SELF_SCHEDULE","addObject","updateLocationList","str","Date","toLocaleString","timeZone","minDt","maxDt","toUTCString","replace","setHours","getHours","stripTime","setDate","getDate","minDate","maxDate","dt","getFullYear","getMonth","canDeactivate","setDirtyableOnNavigation","deactivate","range","n","arr","unshift","zipDestinationHandler","resetTimeslots","locationIds","locationList","locationListSmall","selectedRanges","getLocationsList","text","document","getElementById","innerHTML","SCHEDULE","NO_LOCATION_TEXT","selectedMiles","procedureIds","allProcedures","forEach","p","isSelected","push","id","length","gettingClinics","getLocations","packageId","AbortController","locations","map","item","includes","slice","expand","button","innerText","VIEW_ALL","VIEW_LESS","toggleLocation","loc","availableClinicsHandler","checkIfTimeblocksSelected","timeBlockHandler","filter","allowTimeslots","getTimeslots","getOffset","date","utcDate","getTime","applyOffsetToHours","initialHour","offsetInMinutes","totalMinutes","addedDays","startingHour","startingMinutes","Math","floor","getFormatedUTCDateRange","type","applyOffsetOnHours","additionForEndingHour","from_date","UTC","Number","to_date","from","toISOString","to","toggleTimeBlock","block","selectedBlocks","selectDate","timeslotList","activeElement","blur","i","sort","a","b","timeOfDaySeq","timeZoneId","index","lastEle","Default","reduce","prev","curr","selectedTimeslot","getTimeSlotsAsync","locationId","Promise","all","then","results","transformTimeslots","timeslots","locationsDetails","temp","t","locationDetail","timeslotHandler","slot","dateTime","schedulerId","formatTimeslot","isoDate","Intl","DateTimeFormat","hour","minute","format","navigateToNext","getBaseRoute","changeHandler","Schedule"],"mappings":"kHAAAA,EAAOC,QAAU,mvC,0DCAjBD,EAAOC,QAAU,+yG,ksEC0BjB,aAyBI,WACYC,EACAC,EACRC,EACQC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAVZ,WACY,KAAAT,SACA,KAAAC,WAEA,KAAAE,oBACA,KAAAC,gBACA,KAAAC,cACA,KAAAC,aACA,KAAAC,aACA,KAAAC,kBACA,KAAAC,mBAlCJ,KAAAC,YAAsB,WAGtB,KAAAC,OAAS,IAKT,KAAAC,YAAsB,EACtB,KAAAC,mBAA6B,EAE7B,KAAAC,kBAA4B,EAK5B,KAAAC,YAAsB,EACtB,KAAAC,kBAA4B,EAyB5B,KAAAC,SAAW,IAAaC,YAAY,CACxC,CACIC,KAAM,WACNC,WAAY,WAAM,SAAKhB,cAAciB,eACrCC,QAAS,WAAM,SAAKC,eATxBC,KAAKC,qBAAuBvB,EAAQwB,wBACpCF,KAAKC,qBAAqBE,YAAY1B,GACtCE,EAAkByB,cAAcJ,KAAKC,sBA8W7C,OAnWI,YAAAI,SAAA,SAASC,EAAQC,EAAaC,G,MAEuB,MAA7CA,EAAsBC,sBAEtBC,OAAOC,SAASC,KAAUZ,KAAKxB,OAAOqC,QAAO,gBAEjDb,KAAKpB,cAAckC,WAAY,EAC/Bd,KAAKM,OAASA,EACdN,KAAKe,oBAAoBf,KAAKpB,cAAcoC,QAAQC,YAEpD,EAA2CjB,KAAKf,iBAAiBiC,UAC7DZ,EAAOa,SACP,WACAZ,EAAYa,SAASC,WAHxBrB,KAAKsB,MAAK,KAAEtB,KAAKuB,SAAQ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