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C,EAAMliD,QACZ0yB,EAAMwvB,EAAMliD,QAEhB,OAAIgV,GAAO0d,IAAK7vB,EAAImS,GAAO0d,GACpB7vB,CACT,EAAG,CAAC,EACN,EAUA0oI,cAAqB,SAAS1qD,GAC5B,OAAOA,EAAInzF,MAAM,SAASiW,OAAO,SAASd,EAAKg+E,GAC7C,IAAI3+B,EAAQ2+B,EAAInzF,MAAM,SAClBggE,EAAMxL,EAAM,GAAG1xD,MAAM,GAAG,GAE5BqS,SADUq/C,EAAM,GAAGx0D,MAAM,SAAS,GAAG8C,MAAM,GAAG,IACnCk9D,EACJ7qD,CACT,EAAG,CAAC,EACN,EAUA0oI,eAAsB,SAAS9zG,EAAQ0yJ,GACrC,cAAO1yJ,EAAO,uBACPA,EAAO,yBACPA,EAAO,4BACPA,EAAOvK,KAEVi9J,WACK1yJ,EAAO2yJ,qBACP3yJ,EAAOkiH,QAETliH,CACT,oBCtEA,IAAAjiC,EAAA,CACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,WACA,cACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,qBACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,eACA,kBACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,WACA,cACA,YACA,eACA,UACA,aACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,cACA,iBACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,iBACA,oBACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,aACA,gBACA,YACA,eACA,YACA,eACA,eACA,kBACA,aACA,gBACA,YACA,eACA,aACA,gBACA,aACA,kBACA,qBACA,gBACA,eACA,kBACA,YACA,eACA,YACA,eACA,WACA,iBACA,oBACA,cACA,UACA,aACA,iBACA,oBACA,WACA,cACA,eACA,kBACA,eACA,kBACA,eACA,mBAIA,SAAA60L,EAAAnlD,GACA,IAAAhuI,EAAAozL,EAAAplD,GACA,OAAA3rD,EAAAriF,EACA,CACA,SAAAozL,EAAAplD,GACA,IAAA3rD,EAAA14C,EAAArrC,EAAA0vI,GAAA,CACA,IAAAxwI,EAAA,IAAAqJ,MAAA,uBAAAmnI,EAAA,KACA,MAAAxwI,EAAA+tE,KAAA,mBACA/tE,CACA,CACA,OAAAc,EAAA0vI,EACA,CACAmlD,EAAAv3K,KAAA,WACA,OAAAzjB,OAAAyjB,KAAAtd,EACA,EACA60L,EAAA3nJ,QAAA4nJ,EACA59C,GAAAnB,QAAA8+C,EACAA,EAAAnzL,GAAA,+KCzPA,IAAIkqF,EACH,SAAUA,IAKPA,UAAsBA,GAAsBG,MAAW,GAAK,QAK5DH,GAAsBA,GAAsBK,WAAgB,GAAK,aAKjEL,GAAsBA,GAAsBO,SAAc,GAAK,WAK/DP,GAAsBA,GAAsBS,MAAW,GAAK,QAK5DT,GAAsBA,GAAsBW,QAAa,GAAK,UAK9DX,GAAs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AC,EAAArqU,EAAAC,EAAA3jC,EAAAguW,EAAA,OAAA9vW,EACA,CACA,SAAA8vW,EAAA7uW,GACA2uW,EAAAC,EAAArqU,EAAAC,EAAA3jC,EAAAguW,EAAA,QAAA7uW,EACA,CACAa,OAAA,EACA,EACA,CACA","sources":["en.js","./node_modules/rxjs/_esm2015/internal/observable/interval.js","./node_modules/positioning/dist/positioning.js","./node_modules/calendar-utils/calendar-utils.js","./node_modules/rxjs/_esm2015/internal/scheduler/queue.js","./node_modules/rxjs/_esm2015/internal/scheduler/QueueScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/QueueAction.js","./node_modules/rxjs/_esm2015/internal/Notification.js","./node_modules/rxjs/_esm2015/internal/operators/observeOn.js","./node_modules/rxjs/_esm2015/internal/ReplaySubject.js","./node_modules/rxjs/_esm2015/internal/operators/count.js","./node_modules/rxjs/_esm2015/internal/operators/pairwise.js","./node_modules/@mattlewis92/dom-autoscroller/dist/bundle.es.js","./node_modules/angular-draggable-droppable/fesm2020/angular-draggable-droppable.mjs","./node_modules/angular-resizable-element/fesm2020/angular-resizable-element.mjs","./node_modules/angular-calendar/fesm2020/angular-calendar.mjs","./node_modules/rxjs/_esm2015/internal/operators/switchMapTo.js","./node_modules/date-fns/esm/_lib/toInteger/index.js","./node_modules/@babel/runtime/helpers/esm/typeof.js","./node_modules/date-fns/esm/_lib/requiredArgs/index.js","./node_modules/date-fns/esm/toDate/index.js","./node_modules/date-fns/esm/addHours/index.js","./node_modules/date-fns/esm/addMilliseconds/index.js","./node_modules/date-fns/esm/startOfDay/index.js","./src/app/calendar-utils/colors.ts","./src/app/calendar/providers/base-login-provider.ts","./src/app/calendar/providers/google-login-provider.ts","./src/app/calendar/providers/outlook-login-provider.ts","./src/app/calendar-utils/calendar-header/calendar-header.component.ts","./src/app/calendar-utils/calendar-header/calendar-header.component.html","./src/app/add-to-calendar/add-to-calendar.component.html","./src/app/add-to-calendar/add-to-calendar-routing.module.ts","./src/app/add-to-calendar/add-to-calendar.component.ts","./node_modules/tslib/tslib.es6.mjs","./node_modules/angular-calendar/date-adapters/esm/moment/index.js","./node_modules/calendar-utils/date-adapters/esm/moment/index.js","./src/app/add-to-calendar/add-to-calendar.module.ts","./src/app/calendar-datepicker/calendar-datepicker.module.ts","./src/app/calendar-datepicker/calendar.ts","./src/app/calendar-datepicker/shared.ts","./src/app/calendar-datepicker/calendar.component.html","./src/app/calendar-datepicker/calendar.component.ts","./src/app/calendar-datepicker/domhandler.ts","./src/app/calendar/services/auth.service.ts","./src/app/confirmation-dialog/confirmation-dialog.module.ts","./src/app/confirmation-dialog/confirmation/confirmation.component.html","./src/app/confirmation-dialog/confirmation/confirmation.component.ts","./src/app/core/app-settings.ts","./src/app/core/layout/menu.service.ts","./src/app/footer/footer.component.html","./src/app/footer/footer.component.ts","./src/app/footer/footer.module.ts","./src/app/loader/loader.module.ts","./src/app/loader/loader.service.ts","./src/app/shared/constants/google-analytics-constants.ts","./src/app/shared/constants/map-constants.ts","./src/app/shared/constants/xpo-constants.ts","./src/app/shared/model/weather-alert.ts","./src/app/shared/model/traffic.ts","./src/app/shared/model/survey.ts","./src/app/shared/services/add-to-calendar.service.ts","./src/app/shared/services/image.service.ts","./src/app/shared/model/config.ts","./src/app/shared/pipes/date-pipe.ts","./src/app/shared/pipes/phone.ts","./src/app/shared/services/chat.service.ts","./src/app/shared/services/errorHandler.service.ts","./src/app/shared/services/i18n.service.ts","./src/app/shared/services/order.service.ts","./src/app/shared/services/shared.service.ts","./src/app/shared/services/traffic.service.ts","./src/app/shared/services/unsecure-http.service.ts","./src/app/shared/shared.module.ts","./node_modules/@angular/material/fesm2020/tabs.mjs","./src/app/track-another-order/track-xpo-number/track-xpo-number.component.html","./src/app/track-another-order/track-xpo-number/track-xpo-number.component.ts","./src/app/track-another-order/track-xpo-reference-number/track-xpo-reference-number.component.html","./src/app/track-another-order/track-xpo-reference-number/track-xpo-reference-number.component.ts","./src/app/track-another-order/track-xpo-delivery-number/track-xpo-delivery-number.component.html","./src/app/track-another-order/track-xpo-delivery-number/track-xpo-delivery-number.component.ts","./src/app/track-another-order/track-another-order-tab/track-another-order-tab.component.html","./src/app/track-another-order/track-another-order-tab/track-another-order-tab.component.ts","./src/app/track-another-order/search.component.html","./src/app/track-another-order/search.component.ts","./src/app/shared/services/authenticate.service.ts","./src/app/app-routing.module.ts","./node_modules/@angular/animations/fesm2022/browser.mjs","./node_modules/@angular/platform-browser/fesm2022/animations.mjs","./node_modules/@angular/material/fesm2020/sidenav.mjs","./src/app/track-order/track-order-routing.module.ts","./src/app/google-map/services/google-map-api-loader.ts","./src/app/google-map/model/google-map-config.ts","./src/app/shared/services/google-map.service.ts","./src/app/google-map/services/google-map-api.ts","./src/app/google-map/google-map.module.ts","./src/app/track-another-order/track-another-order.module.ts","./src/app/track-order/track-order.module.ts","./src/app/scroll-to-top/scroll-to-top.service.ts","./src/app/scroll-to-top/scroll-to-top.module.ts","./src/app/shared/services/custom-http.service.ts","./src/app/shared/services/gtm-helper.service.ts","./src/app/core/core.module.ts","./src/app/core/module-import-guard.ts","./src/app/shared/draggable.directive.ts","./src/app/track-another-order/search-container/search-container.component.ts","./src/app/track-another-order/search-container/search-container.component.html","./src/app/shared/common-components/dialog/page-error/page-error.component.html","./src/app/shared/common-components/dialog/page-error/page-error.component.ts","./src/app/shared/common-components/header/header.component.html","./src/app/shared/common-components/header/header.component.ts","./src/app/shared/common-components/language-selector/language-selector.component.html","./src/app/shared/common-components/language-selector/language-selector.component.ts","./src/app/shared/model/order-category.enum.ts","./src/app/track-order/track-order-progress/track-order-progress.component.html","./src/app/track-order/track-order-progress/track-order-progress.component.ts","./src/app/track-order/product-details/product-details.component.html","./src/app/track-order/product-details/product-details.component.ts","./src/app/track-order/track-order/track-order.component.html","./src/app/track-order/track-order/track-order.component.ts","./src/app/track-order/widgets/tracking-events/tracking-events.component.html","./src/app/track-order/widgets/tracking-events/tracking-events.component.ts","./src/app/track-order/widgets/contact-support/contact-support.component.html","./src/app/track-order/widgets/contact-support/contact-support.component.ts","./src/app/track-order/track-order-map/track-order-map.component.html","./src/app/track-order/track-order-map/track-order-map.component.ts","./src/app/scroll-to-top/back-to-top/back-to-top.component.html","./src/app/scroll-to-top/back-to-top/back-to-top.component.ts","./src/app/core/layout/layout.component.html","./src/app/core/layout/layout.component.ts","./src/app/loader/track-spinner/track-spinner.component.html","./src/app/loader/track-spinner/track-spinner.component.ts","./src/app/app.component.ts","./src/app/calendar/calendar-unified.module.ts","./src/app/shared/services/interceptors/setHeaderInterceptor.ts","./node_modules/rxjs/_esm2015/internal/util/TimeoutError.js","./node_modules/rxjs/_esm2015/internal/operators/timeoutWith.js","./src/app/shared/services/interceptors/timeOutInterceptor.ts","./node_modules/rxjs/_esm2015/internal/operators/timeout.js","./node_modules/rxjs/_esm2015/internal/util/isDate.js","./src/app/app.module.ts","./src/environments/environment.prod.ts","./src/main.ts","./node_modules/@microsoft/microsoft-graph-client/lib/src/GraphRequest.js","./node_modules/@microsoft/microsoft-graph-client/lib/src/ResponseHandler.js","./node_modules/@microsoft/microsoft-graph-client/lib/src/common.js","./node_modules/@microsoft/microsoft-graph-client/lib/src/index.js","./node_modules/component-emitter/index.js","./node_modules/es6-promise/dist/es6-promise.js","./node_modules/file-saver/FileSaver.js","./node_modules/hellojs/dist/hello.all.js","./node_modules/moment/locale/af.js","./node_modules/moment/locale/ar-dz.js","./node_modules/moment/locale/ar-kw.js","./node_modules/moment/locale/ar-ly.js","./node_modules/moment/locale/ar-ma.js","./node_modules/moment/locale/ar-sa.js","./node_modules/moment/locale/ar-tn.js","./node_modules/moment/locale/ar.js","./node_modules/moment/locale/az.js","./node_modules/moment/locale/be.js","./node_modules/moment/locale/bg.js","./node_modules/moment/locale/bm.js","./node_modules/moment/locale/bn.js","./node_modules/moment/locale/bo.js","./node_modules/moment/locale/br.js","./node_modules/moment/locale/bs.js","./node_modules/moment/locale/ca.js","./node_modules/moment/locale/cs.js","./node_modules/moment/locale/cv.js","./node_modules/moment/locale/cy.js","./node_modules/moment/locale/da.js","./node_modules/moment/locale/de-at.js","./node_modules/moment/locale/de-ch.js","./node_modules/moment/locale/de.js","./node_modules/moment/locale/dv.js","./node_modules/moment/locale/el.js","./node_modules/moment/locale/en-au.js","./node_modules/moment/locale/en-ca.js","./node_modules/moment/locale/en-gb.js","./node_modules/moment/locale/en-ie.js","./node_modules/moment/locale/en-il.js","./node_modules/moment/locale/en-nz.js","./node_modules/moment/locale/eo.js","./node_modules/moment/locale/es-do.js","./node_modules/moment/locale/es-us.js","./node_modules/moment/locale/es.js","./node_modules/moment/locale/et.js","./node_modules/moment/locale/eu.js","./node_modules/moment/locale/fa.js","./node_modules/moment/locale/fi.js","./node_modules/moment/locale/fo.js","./node_modules/moment/locale/fr-ca.js","./node_modules/moment/locale/fr-ch.js","./node_modules/moment/locale/fr.js","./node_modules/moment/locale/fy.js","./node_modules/moment/locale/gd.js","./node_modules/moment/locale/gl.js","./node_modules/moment/locale/gom-latn.js","./node_modules/moment/locale/gu.js","./node_modules/moment/locale/he.js","./node_modules/moment/locale/hi.js","./node_modules/moment/locale/hr.js","./node_modules/moment/locale/hu.js","./node_modules/moment/locale/hy-am.js","./node_modules/moment/locale/id.js","./node_modules/moment/locale/is.js","./node_modules/moment/locale/it.js","./node_modules/moment/locale/ja.js","./node_modules/moment/locale/jv.js","./node_modules/moment/locale/ka.js","./node_modules/moment/locale/kk.js","./node_modules/moment/locale/km.js","./node_modules/moment/locale/kn.js","./node_modules/moment/locale/ko.js","./node_modules/moment/locale/ky.js","./node_modules/moment/locale/lb.js","./node_modules/moment/locale/lo.js","./node_modules/moment/locale/lt.js","./node_modules/moment/locale/lv.js","./node_modules/moment/locale/me.js","./node_modules/moment/locale/mi.js","./node_modules/moment/locale/mk.js","./node_modules/moment/locale/ml.js","./node_modules/moment/locale/mn.js","./node_modules/moment/locale/mr.js","./node_modules/moment/locale/ms-my.js","./node_modules/moment/locale/ms.js","./node_modules/moment/locale/mt.js","./node_modules/moment/locale/my.js","./node_modules/moment/locale/nb.js","./node_modules/moment/locale/ne.js","./node_modules/moment/locale/nl-be.js","./node_modules/moment/locale/nl.js","./node_modules/moment/locale/nn.js","./node_modules/moment/locale/pa-in.js","./node_modules/moment/locale/pl.js","./node_modules/moment/locale/pt-br.js","./node_modules/moment/locale/pt.js","./node_modules/moment/locale/ro.js","./node_modules/moment/locale/ru.js","./node_modules/moment/locale/sd.js","./node_modules/moment/locale/se.js","./node_modules/moment/locale/si.js","./node_modules/moment/locale/sk.js","./node_modules/moment/locale/sl.js","./node_modules/moment/locale/sq.js","./node_modules/moment/locale/sr-cyrl.js","./node_modules/moment/locale/sr.js","./node_modules/moment/locale/ss.js","./node_modules/moment/locale/sv.js","./node_modules/moment/locale/sw.js","./node_modules/moment/locale/ta.js","./node_modules/moment/locale/te.js","./node_modules/moment/locale/tet.js","./node_modules/moment/locale/tg.js","./node_modules/moment/locale/th.js","./node_modules/moment/locale/tl-ph.js","./node_modules/moment/locale/tlh.js","./node_modules/moment/locale/tr.js","./node_modules/moment/locale/tzl.js","./node_modules/moment/locale/tzm-latn.js","./node_modules/moment/locale/tzm.js","./node_modules/moment/locale/ug-cn.js","./node_modules/moment/locale/uk.js","./node_modules/moment/locale/ur.js","./node_modules/moment/locale/uz-latn.js","./node_modules/moment/locale/uz.js","./node_modules/moment/locale/vi.js","./node_modules/moment/locale/x-pseudo.js","./node_modules/moment/locale/yo.js","./node_modules/moment/locale/zh-cn.js","./node_modules/moment/locale/zh-hk.js","./node_modules/moment/locale/zh-tw.js","./node_modules/moment/moment.js","./node_modules/ngx-cookie-service/fesm2015/ngx-cookie-service.js","./node_modules/rxjs/_esm2015/internal/BehaviorSubject.js","./node_modules/rxjs/_esm2015/internal/Observable.js","./node_modules/rxjs/_esm2015/internal/util/toSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/canReportError.js","./node_modules/rxjs/_esm2015/internal/Observer.js","./node_modules/rxjs/_esm2015/internal/Subject.js","./node_modules/rxjs/_esm2015/internal/SubjectSubscription.js","./node_modules/rxjs/_esm2015/internal/Subscriber.js","./node_modules/rxjs/_esm2015/internal/util/UnsubscriptionError.js","./node_modules/rxjs/_esm2015/internal/Subscription.js","./node_modules/rxjs/_esm2015/internal/config.js","./node_modules/rxjs/_esm2015/internal/innerSubscribe.js","./node_modules/rxjs/_esm2015/internal/observable/ConnectableObservable.js","./node_modules/rxjs/_esm2015/internal/OuterSubscriber.js","./node_modules/rxjs/_esm2015/internal/InnerSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToResult.js","./node_modules/rxjs/_esm2015/internal/observable/combineLatest.js","./node_modules/rxjs/_esm2015/internal/observable/concat.js","./node_modules/rxjs/_esm2015/internal/operators/concatAll.js","./node_modules/rxjs/_esm2015/internal/observable/defer.js","./node_modules/rxjs/_esm2015/internal/observable/empty.js","./node_modules/rxjs/_esm2015/internal/observable/forkJoin.js","./node_modules/rxjs/_esm2015/internal/observable/from.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduled.js","./node_modules/rxjs/_esm2015/internal/util/isInteropObservable.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleObservable.js","./node_modules/rxjs/_esm2015/internal/scheduled/schedulePromise.js","./node_modules/rxjs/_esm2015/internal/util/isIterable.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleIterable.js","./node_modules/rxjs/_esm2015/internal/observable/fromArray.js","./node_modules/rxjs/_esm2015/internal/observable/fromEvent.js","./node_modules/rxjs/_esm2015/internal/observable/merge.js","./node_modules/rxjs/_esm2015/internal/observable/of.js","./node_modules/rxjs/_esm2015/internal/observable/throwError.js","./node_modules/rxjs/_esm2015/internal/observable/timer.js","./node_modules/rxjs/_esm2015/internal/operators/catchError.js","./node_modules/rxjs/_esm2015/internal/operators/concatMap.js","./node_modules/rxjs/_esm2015/internal/operators/debounceTime.js","./node_modules/rxjs/_esm2015/internal/operators/distinctUntilChanged.js","./node_modules/rxjs/_esm2015/internal/operators/filter.js","./node_modules/rxjs/_esm2015/internal/operators/finalize.js","./node_modules/rxjs/_esm2015/internal/operators/map.js","./node_modules/rxjs/_esm2015/internal/operators/mapTo.js","./node_modules/rxjs/_esm2015/internal/operators/mergeAll.js","./node_modules/rxjs/_esm2015/internal/operators/mergeMap.js","./node_modules/rxjs/_esm2015/internal/operators/refCount.js","./node_modules/rxjs/_esm2015/internal/operators/multicast.js","./node_modules/rxjs/_esm2015/internal/operators/share.js","./node_modules/rxjs/_esm2015/internal/operators/skip.js","./node_modules/rxjs/_esm2015/internal/operators/startWith.js","./node_modules/rxjs/_esm2015/internal/operators/switchMap.js","./node_modules/rxjs/_esm2015/internal/operators/take.js","./node_modules/rxjs/_esm2015/internal/operators/takeLast.js","./node_modules/rxjs/_esm2015/internal/operators/takeUntil.js","./node_modules/rxjs/_esm2015/internal/util/noop.js","./node_modules/rxjs/_esm2015/internal/operators/tap.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleArray.js","./node_modules/rxjs/_esm2015/internal/scheduler/Action.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsyncAction.js","./node_modules/rxjs/_esm2015/internal/Scheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsyncScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/async.js","./node_modules/rxjs/_esm2015/internal/symbol/iterator.js","./node_modules/rxjs/_esm2015/internal/symbol/observable.js","./node_modules/rxjs/_esm2015/internal/symbol/rxSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/ArgumentOutOfRangeError.js","./node_modules/rxjs/_esm2015/internal/util/ObjectUnsubscribedError.js","./node_modules/rxjs/_esm2015/internal/util/hostReportError.js","./node_modules/rxjs/_esm2015/internal/util/identity.js","./node_modules/rxjs/_esm2015/internal/util/isArray.js","./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js","./node_modules/rxjs/_esm2015/internal/util/isFunction.js","./node_modules/rxjs/_esm2015/internal/util/isNumeric.js","./node_modules/rxjs/_esm2015/internal/util/isObject.js","./node_modules/rxjs/_esm2015/internal/util/isObservable.js","./node_modules/rxjs/_esm2015/internal/util/isPromise.js","./node_modules/rxjs/_esm2015/internal/util/isScheduler.js","./node_modules/rxjs/_esm2015/internal/util/pipe.js","./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToIterable.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToArray.js","./node_modules/superagent/lib/agent-base.js","./node_modules/superagent/lib/client.js","./node_modules/superagent/lib/is-object.js","./node_modules/superagent/lib/request-base.js","./node_modules/superagent/lib/response-base.js","./node_modules/superagent/lib/utils.js","./node_modules/moment/locale/ sync ^\\.\\/.*$","./node_modules/@angular/animations/fesm2022/animations.mjs","./node_modules/@angular/cdk/fesm2020/layout.mjs","./node_modules/@angular/cdk/fesm2020/a11y.mjs","./node_modules/@angular/cdk/fesm2020/bidi.mjs","./node_modules/@angular/cdk/fesm2020/coercion.mjs","./node_modules/@angular/cdk/fesm2020/collections.mjs","./node_modules/@angular/cdk/fesm2020/keycodes.mjs","./node_modules/@angular/cdk/fesm2020/observers.mjs","./node_modules/rxjs/_esm2015/internal/operators/takeWhile.js","./node_modules/@angular/cdk/fesm2020/overlay.mjs","./node_modules/@angular/cdk/fesm2020/platform.mjs","./node_modules/@angular/cdk/fesm2020/portal.mjs","./node_modules/rxjs/_esm2015/internal/scheduler/animationFrame.js","./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameAction.js","./node_modules/rxjs/_esm2015/internal/util/Immediate.js","./node_modules/rxjs/_esm2015/internal/scheduler/asap.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsapScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsapAction.js","./node_modules/rxjs/_esm2015/internal/operators/audit.js","./node_modules/rxjs/_esm2015/internal/operators/auditTime.js","./node_modules/@angular/cdk/fesm2020/scrolling.mjs","./node_modules/@angular/common/fesm2022/common.mjs","./node_modules/@angular/common/fesm2022/http.mjs","./node_modules/@angular/core/fesm2022/primitives/signals.mjs","./node_modules/@angular/core/fesm2022/core.mjs","./node_modules/@angular/forms/fesm2022/forms.mjs","./node_modules/@angular/material/fesm2020/button.mjs","./node_modules/@angular/material/fesm2020/card.mjs","./node_modules/@angular/material/fesm2020/checkbox.mjs","./node_modules/@angular/material/fesm2020/core.mjs","./node_modules/@angular/cdk/fesm2020/dialog.mjs","./node_modules/@angular/material/fesm2020/dialog.mjs","./node_modules/@angular/cdk/fesm2020/accordion.mjs","./node_modules/@angular/material/fesm2020/expansion.mjs","./node_modules/@angular/material/fesm2020/form-field.mjs","./node_modules/@angular/material/fesm2020/icon.mjs","./node_modules/@angular/cdk/fesm2020/text-field.mjs","./node_modules/@angular/material/fesm2020/input.mjs","./node_modules/@angular/material/fesm2020/menu.mjs","./node_modules/@angular/material/fesm2020/progress-spinner.mjs","./node_modules/@angular/material/fesm2020/radio.mjs","./node_modules/@angular/material/fesm2020/select.mjs","./node_modules/@angular/material/fesm2020/slide-toggle.mjs","./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs","./node_modules/rxjs/_esm2015/internal/util/EmptyError.js","./node_modules/rxjs/_esm2015/internal/operators/defaultIfEmpty.js","./node_modules/rxjs/_esm2015/internal/operators/throwIfEmpty.js","./node_modules/rxjs/_esm2015/internal/operators/first.js","./node_modules/rxjs/_esm2015/internal/operators/scan.js","./node_modules/@angular/router/fesm2022/router.mjs","./node_modules/rxjs/_esm2015/internal/operators/last.js","./node_modules/ngx-mask/fesm2022/ngx-mask.mjs","./node_modules/@angular-devkit/build-angular/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"],"sourcesContent":["\"use strict\";(function(global,_global$ng,_global$ng2,_global$ng2$common,_global$ng$common,_global$ng$common$loc){(_global$ng=global.ng)!==null&&_global$ng!==void 0?_global$ng:global.ng={};(_global$ng2$common=(_global$ng2=global.ng).common)!==null&&_global$ng2$common!==void 0?_global$ng2$common:_global$ng2.common={};(_global$ng$common$loc=(_global$ng$common=global.ng.common).locales)!==null&&_global$ng$common$loc!==void 0?_global$ng$common$loc:_global$ng$common.locales={};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\\.?/,\"\").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales[\"en\"]=[\"en\",[[\"a\",\"p\"],[\"AM\",\"PM\"],u],[[\"AM\",\"PM\"],u,u],[[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"]],u,[[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]],u,[[\"B\",\"A\"],[\"BC\",\"AD\"],[\"Before Christ\",\"Anno Domini\"]],0,[6,0],[\"M/d/yy\",\"MMM d, y\",\"MMMM d, y\",\"EEEE, MMMM d, y\"],[\"h:mm a\",\"h:mm:ss a\",\"h:mm:ss a z\",\"h:mm:ss a zzzz\"],[\"{1}, {0}\",u,\"{1} 'at' {0}\",u],[\".\",\",\",\";\",\"%\",\"+\",\"-\",\"E\",\"\\xD7\",\"\\u2030\",\"\\u221E\",\"NaN\",\":\"],[\"#,##0.###\",\"#,##0%\",\"\\xA4#,##0.00\",\"#E0\"],\"USD\",\"$\",\"US Dollar\",{},\"ltr\",plural,[[[\"mi\",\"n\",\"in the morning\",\"in the afternoon\",\"in the evening\",\"at night\"],[\"midnight\",\"noon\",\"in the morning\",\"in the afternoon\",\"in the evening\",\"at night\"],u],[[\"midnight\",\"noon\",\"morning\",\"afternoon\",\"evening\",\"night\"],u,u],[\"00:00\",\"12:00\",[\"06:00\",\"12:00\"],[\"12:00\",\"18:00\"],[\"18:00\",\"21:00\"],[\"21:00\",\"06:00\"]]]]})(globalThis);","import { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nexport function interval(period = 0, scheduler = async) {\n if (!isNumeric(period) || period < 0) {\n period = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n scheduler = async;\n }\n return new Observable(subscriber => {\n subscriber.add(scheduler.schedule(dispatch, period, { subscriber, counter: 0, period }));\n return subscriber;\n });\n}\nfunction dispatch(state) {\n const { subscriber, counter, period } = state;\n subscriber.next(counter);\n this.schedule({ subscriber, counter: counter + 1, period }, period);\n}\n","// previous version:\n// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js\nvar Positioning = /** @class */ (function () {\n function Positioning() {\n }\n Positioning.prototype.getAllStyles = function (element) { return window.getComputedStyle(element); };\n Positioning.prototype.getStyle = function (element, prop) { return this.getAllStyles(element)[prop]; };\n Positioning.prototype.isStaticPositioned = function (element) {\n return (this.getStyle(element, 'position') || 'static') === 'static';\n };\n Positioning.prototype.offsetParent = function (element) {\n var offsetParentEl = element.offsetParent || document.documentElement;\n while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) {\n offsetParentEl = offsetParentEl.offsetParent;\n }\n return offsetParentEl || document.documentElement;\n };\n Positioning.prototype.position = function (element, round) {\n if (round === void 0) { round = true; }\n var elPosition;\n var parentOffset = { width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0 };\n if (this.getStyle(element, 'position') === 'fixed') {\n elPosition = element.getBoundingClientRect();\n elPosition = {\n top: elPosition.top,\n bottom: elPosition.bottom,\n left: elPosition.left,\n right: elPosition.right,\n height: elPosition.height,\n width: elPosition.width\n };\n }\n else {\n var offsetParentEl = this.offsetParent(element);\n elPosition = this.offset(element, false);\n if (offsetParentEl !== document.documentElement) {\n parentOffset = this.offset(offsetParentEl, false);\n }\n parentOffset.top += offsetParentEl.clientTop;\n parentOffset.left += offsetParentEl.clientLeft;\n }\n elPosition.top -= parentOffset.top;\n elPosition.bottom -= parentOffset.top;\n elPosition.left -= parentOffset.left;\n elPosition.right -= parentOffset.left;\n if (round) {\n elPosition.top = Math.round(elPosition.top);\n elPosition.bottom = Math.round(elPosition.bottom);\n elPosition.left = Math.round(elPosition.left);\n elPosition.right = Math.round(elPosition.right);\n }\n return elPosition;\n };\n Positioning.prototype.offset = function (element, round) {\n if (round === void 0) { round = true; }\n var elBcr = element.getBoundingClientRect();\n var viewportOffset = {\n top: window.pageYOffset - document.documentElement.clientTop,\n left: window.pageXOffset - document.documentElement.clientLeft\n };\n var elOffset = {\n height: elBcr.height || element.offsetHeight,\n width: elBcr.width || element.offsetWidth,\n top: elBcr.top + viewportOffset.top,\n bottom: elBcr.bottom + viewportOffset.top,\n left: elBcr.left + viewportOffset.left,\n right: elBcr.right + viewportOffset.left\n };\n if (round) {\n elOffset.height = Math.round(elOffset.height);\n elOffset.width = Math.round(elOffset.width);\n elOffset.top = Math.round(elOffset.top);\n elOffset.bottom = Math.round(elOffset.bottom);\n elOffset.left = Math.round(elOffset.left);\n elOffset.right = Math.round(elOffset.right);\n }\n return elOffset;\n };\n /*\n Return false if the element to position is outside the viewport\n */\n Positioning.prototype.positionElements = function (hostElement, targetElement, placement, appendToBody) {\n var _a = placement.split('-'), _b = _a[0], placementPrimary = _b === void 0 ? 'top' : _b, _c = _a[1], placementSecondary = _c === void 0 ? 'center' : _c;\n var hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false);\n var targetElStyles = this.getAllStyles(targetElement);\n var marginTop = parseFloat(targetElStyles.marginTop);\n var marginBottom = parseFloat(targetElStyles.marginBottom);\n var marginLeft = parseFloat(targetElStyles.marginLeft);\n var marginRight = parseFloat(targetElStyles.marginRight);\n var topPosition = 0;\n var leftPosition = 0;\n switch (placementPrimary) {\n case 'top':\n topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom));\n break;\n case 'bottom':\n topPosition = (hostElPosition.top + hostElPosition.height);\n break;\n case 'left':\n leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight));\n break;\n case 'right':\n leftPosition = (hostElPosition.left + hostElPosition.width);\n break;\n }\n switch (placementSecondary) {\n case 'top':\n topPosition = hostElPosition.top;\n break;\n case 'bottom':\n topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight;\n break;\n case 'left':\n leftPosition = hostElPosition.left;\n break;\n case 'right':\n leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth;\n break;\n case 'center':\n if (placementPrimary === 'top' || placementPrimary === 'bottom') {\n leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2);\n }\n else {\n topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2);\n }\n break;\n }\n /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix\n // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`;\n targetElement.style.transform = \"translate(\" + Math.round(leftPosition) + \"px, \" + Math.round(topPosition) + \"px)\";\n // Check if the targetElement is inside the viewport\n var targetElBCR = targetElement.getBoundingClientRect();\n var html = document.documentElement;\n var windowHeight = window.innerHeight || html.clientHeight;\n var windowWidth = window.innerWidth || html.clientWidth;\n return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth &&\n targetElBCR.bottom <= windowHeight;\n };\n return Positioning;\n}());\nexport { Positioning };\nvar placementSeparator = /\\s+/;\nvar positionService = new Positioning();\n/*\n * Accept the placement array and applies the appropriate placement dependent on the viewport.\n * Returns the applied placement.\n * In case of auto placement, placements are selected in order\n * 'top', 'bottom', 'left', 'right',\n * 'top-left', 'top-right',\n * 'bottom-left', 'bottom-right',\n * 'left-top', 'left-bottom',\n * 'right-top', 'right-bottom'.\n * */\nexport function positionElements(hostElement, targetElement, placement, appendToBody, baseClass) {\n var placementVals = Array.isArray(placement) ? placement : placement.split(placementSeparator);\n var allowedPlacements = [\n 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom',\n 'right-top', 'right-bottom'\n ];\n var classList = targetElement.classList;\n var addClassesToTarget = function (targetPlacement) {\n var _a = targetPlacement.split('-'), primary = _a[0], secondary = _a[1];\n var classes = [];\n if (baseClass) {\n classes.push(baseClass + \"-\" + primary);\n if (secondary) {\n classes.push(baseClass + \"-\" + primary + \"-\" + secondary);\n }\n classes.forEach(function (classname) { classList.add(classname); });\n }\n return classes;\n };\n // Remove old placement classes to avoid issues\n if (baseClass) {\n allowedPlacements.forEach(function (placementToRemove) { classList.remove(baseClass + \"-\" + placementToRemove); });\n }\n // replace auto placement with other placements\n var hasAuto = placementVals.findIndex(function (val) { return val === 'auto'; });\n if (hasAuto >= 0) {\n allowedPlacements.forEach(function (obj) {\n if (placementVals.find(function (val) { return val.search('^' + obj) !== -1; }) == null) {\n placementVals.splice(hasAuto++, 1, obj);\n }\n });\n }\n // coordinates where to position\n // Required for transform:\n var style = targetElement.style;\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style['will-change'] = 'transform';\n var testPlacement;\n var isInViewport = false;\n for (var _i = 0, placementVals_1 = placementVals; _i < placementVals_1.length; _i++) {\n testPlacement = placementVals_1[_i];\n var addedClasses = addClassesToTarget(testPlacement);\n if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) {\n isInViewport = true;\n break;\n }\n // Remove the baseClasses for further calculation\n if (baseClass) {\n addedClasses.forEach(function (classname) { classList.remove(classname); });\n }\n }\n if (!isInViewport) {\n // If nothing match, the first placement is the default one\n testPlacement = placementVals[0];\n addClassesToTarget(testPlacement);\n positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody);\n }\n return testPlacement;\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nexport var DAYS_OF_WEEK;\n(function (DAYS_OF_WEEK) {\n DAYS_OF_WEEK[DAYS_OF_WEEK[\"SUNDAY\"] = 0] = \"SUNDAY\";\n DAYS_OF_WEEK[DAYS_OF_WEEK[\"MONDAY\"] = 1] = \"MONDAY\";\n DAYS_OF_WEEK[DAYS_OF_WEEK[\"TUESDAY\"] = 2] = \"TUESDAY\";\n DAYS_OF_WEEK[DAYS_OF_WEEK[\"WEDNESDAY\"] = 3] = \"WEDNESDAY\";\n DAYS_OF_WEEK[DAYS_OF_WEEK[\"THURSDAY\"] = 4] = \"THURSDAY\";\n DAYS_OF_WEEK[DAYS_OF_WEEK[\"FRIDAY\"] = 5] = \"FRIDAY\";\n DAYS_OF_WEEK[DAYS_OF_WEEK[\"SATURDAY\"] = 6] = \"SATURDAY\";\n})(DAYS_OF_WEEK || (DAYS_OF_WEEK = {}));\nvar DEFAULT_WEEKEND_DAYS = [\n DAYS_OF_WEEK.SUNDAY,\n DAYS_OF_WEEK.SATURDAY,\n];\nvar DAYS_IN_WEEK = 7;\nvar HOURS_IN_DAY = 24;\nvar MINUTES_IN_HOUR = 60;\nexport var SECONDS_IN_DAY = 60 * 60 * 24;\nfunction getExcludedSeconds(dateAdapter, _a) {\n var startDate = _a.startDate, seconds = _a.seconds, excluded = _a.excluded, precision = _a.precision;\n if (excluded.length < 1) {\n return 0;\n }\n var addSeconds = dateAdapter.addSeconds, getDay = dateAdapter.getDay, addDays = dateAdapter.addDays;\n var endDate = addSeconds(startDate, seconds - 1);\n var dayStart = getDay(startDate);\n var dayEnd = getDay(endDate);\n var result = 0; // Calculated in seconds\n var current = startDate;\n var _loop_1 = function () {\n var day = getDay(current);\n if (excluded.some(function (excludedDay) { return excludedDay === day; })) {\n result += calculateExcludedSeconds(dateAdapter, {\n dayStart: dayStart,\n dayEnd: dayEnd,\n day: day,\n precision: precision,\n startDate: startDate,\n endDate: endDate,\n });\n }\n current = addDays(current, 1);\n };\n while (current < endDate) {\n _loop_1();\n }\n return result;\n}\nfunction calculateExcludedSeconds(dateAdapter, _a) {\n var precision = _a.precision, day = _a.day, dayStart = _a.dayStart, dayEnd = _a.dayEnd, startDate = _a.startDate, endDate = _a.endDate;\n var differenceInSeconds = dateAdapter.differenceInSeconds, endOfDay = dateAdapter.endOfDay, startOfDay = dateAdapter.startOfDay;\n if (precision === 'minutes') {\n if (day === dayStart) {\n return differenceInSeconds(endOfDay(startDate), startDate) + 1;\n }\n else if (day === dayEnd) {\n return differenceInSeconds(endDate, startOfDay(endDate)) + 1;\n }\n }\n return SECONDS_IN_DAY;\n}\nfunction getWeekViewEventSpan(dateAdapter, _a) {\n var event = _a.event, offset = _a.offset, startOfWeekDate = _a.startOfWeekDate, excluded = _a.excluded, precision = _a.precision, totalDaysInView = _a.totalDaysInView;\n var max = dateAdapter.max, differenceInSeconds = dateAdapter.differenceInSeconds, addDays = dateAdapter.addDays, endOfDay = dateAdapter.endOfDay, differenceInDays = dateAdapter.differenceInDays;\n var span = SECONDS_IN_DAY;\n var begin = max([event.start, startOfWeekDate]);\n if (event.end) {\n switch (precision) {\n case 'minutes':\n span = differenceInSeconds(event.end, begin);\n break;\n default:\n span =\n differenceInDays(addDays(endOfDay(event.end), 1), begin) *\n SECONDS_IN_DAY;\n break;\n }\n }\n var offsetSeconds = offset * SECONDS_IN_DAY;\n var totalLength = offsetSeconds + span;\n // the best way to detect if an event is outside the week-view\n // is to check if the total span beginning (from startOfWeekDay or event start) exceeds the total days in the view\n var secondsInView = totalDaysInView * SECONDS_IN_DAY;\n if (totalLength > secondsInView) {\n span = secondsInView - offsetSeconds;\n }\n span -= getExcludedSeconds(dateAdapter, {\n startDate: begin,\n seconds: span,\n excluded: excluded,\n precision: precision,\n });\n return span / SECONDS_IN_DAY;\n}\nfunction getWeekViewEventOffset(dateAdapter, _a) {\n var event = _a.event, startOfWeekDate = _a.startOfWeek, excluded = _a.excluded, precision = _a.precision;\n var differenceInDays = dateAdapter.differenceInDays, startOfDay = dateAdapter.startOfDay, differenceInSeconds = dateAdapter.differenceInSeconds;\n if (event.start < startOfWeekDate) {\n return 0;\n }\n var offset = 0;\n switch (precision) {\n case 'days':\n offset =\n differenceInDays(startOfDay(event.start), startOfWeekDate) *\n SECONDS_IN_DAY;\n break;\n case 'minutes':\n offset = differenceInSeconds(event.start, startOfWeekDate);\n break;\n }\n offset -= getExcludedSeconds(dateAdapter, {\n startDate: startOfWeekDate,\n seconds: offset,\n excluded: excluded,\n precision: precision,\n });\n return Math.abs(offset / SECONDS_IN_DAY);\n}\nfunction isEventIsPeriod(dateAdapter, _a) {\n var event = _a.event, periodStart = _a.periodStart, periodEnd = _a.periodEnd;\n var isSameSecond = dateAdapter.isSameSecond;\n var eventStart = event.start;\n var eventEnd = event.end || event.start;\n if (eventStart > periodStart && eventStart < periodEnd) {\n return true;\n }\n if (eventEnd > periodStart && eventEnd < periodEnd) {\n return true;\n }\n if (eventStart < periodStart && eventEnd > periodEnd) {\n return true;\n }\n if (isSameSecond(eventStart, periodStart) ||\n isSameSecond(eventStart, periodEnd)) {\n return true;\n }\n if (isSameSecond(eventEnd, periodStart) ||\n isSameSecond(eventEnd, periodEnd)) {\n return true;\n }\n return false;\n}\nexport function getEventsInPeriod(dateAdapter, _a) {\n var events = _a.events, periodStart = _a.periodStart, periodEnd = _a.periodEnd;\n return events.filter(function (event) {\n return isEventIsPeriod(dateAdapter, { event: event, periodStart: periodStart, periodEnd: periodEnd });\n });\n}\nfunction getWeekDay(dateAdapter, _a) {\n var date = _a.date, _b = _a.weekendDays, weekendDays = _b === void 0 ? DEFAULT_WEEKEND_DAYS : _b;\n var startOfDay = dateAdapter.startOfDay, isSameDay = dateAdapter.isSameDay, getDay = dateAdapter.getDay;\n var today = startOfDay(new Date());\n var day = getDay(date);\n return {\n date: date,\n day: day,\n isPast: date < today,\n isToday: isSameDay(date, today),\n isFuture: date > today,\n isWeekend: weekendDays.indexOf(day) > -1,\n };\n}\nexport function getWeekViewHeader(dateAdapter, _a) {\n var viewDate = _a.viewDate, weekStartsOn = _a.weekStartsOn, _b = _a.excluded, excluded = _b === void 0 ? [] : _b, weekendDays = _a.weekendDays, _c = _a.viewStart, viewStart = _c === void 0 ? dateAdapter.startOfWeek(viewDate, { weekStartsOn: weekStartsOn }) : _c, _d = _a.viewEnd, viewEnd = _d === void 0 ? dateAdapter.addDays(viewStart, DAYS_IN_WEEK) : _d;\n var addDays = dateAdapter.addDays, getDay = dateAdapter.getDay;\n var days = [];\n var date = viewStart;\n while (date < viewEnd) {\n if (!excluded.some(function (e) { return getDay(date) === e; })) {\n days.push(getWeekDay(dateAdapter, { date: date, weekendDays: weekendDays }));\n }\n date = addDays(date, 1);\n }\n return days;\n}\nexport function getDifferenceInDaysWithExclusions(dateAdapter, _a) {\n var date1 = _a.date1, date2 = _a.date2, excluded = _a.excluded;\n var date = date1;\n var diff = 0;\n while (date < date2) {\n if (excluded.indexOf(dateAdapter.getDay(date)) === -1) {\n diff++;\n }\n date = dateAdapter.addDays(date, 1);\n }\n return diff;\n}\nexport function getAllDayWeekEvents(dateAdapter, _a) {\n var _b = _a.events, events = _b === void 0 ? [] : _b, _c = _a.excluded, excluded = _c === void 0 ? [] : _c, _d = _a.precision, precision = _d === void 0 ? 'days' : _d, _e = _a.absolutePositionedEvents, absolutePositionedEvents = _e === void 0 ? false : _e, viewStart = _a.viewStart, viewEnd = _a.viewEnd;\n viewStart = dateAdapter.startOfDay(viewStart);\n viewEnd = dateAdapter.endOfDay(viewEnd);\n var differenceInSeconds = dateAdapter.differenceInSeconds, differenceInDays = dateAdapter.differenceInDays;\n var maxRange = getDifferenceInDaysWithExclusions(dateAdapter, {\n date1: viewStart,\n date2: viewEnd,\n excluded: excluded,\n });\n var totalDaysInView = differenceInDays(viewEnd, viewStart) + 1;\n var eventsMapped = events\n .filter(function (event) { return event.allDay; })\n .map(function (event) {\n var offset = getWeekViewEventOffset(dateAdapter, {\n event: event,\n startOfWeek: viewStart,\n excluded: excluded,\n precision: precision,\n });\n var span = getWeekViewEventSpan(dateAdapter, {\n event: event,\n offset: offset,\n startOfWeekDate: viewStart,\n excluded: excluded,\n precision: precision,\n totalDaysInView: totalDaysInView,\n });\n return { event: event, offset: offset, span: span };\n })\n .filter(function (e) { return e.offset < maxRange; })\n .filter(function (e) { return e.span > 0; })\n .map(function (entry) { return ({\n event: entry.event,\n offset: entry.offset,\n span: entry.span,\n startsBeforeWeek: entry.event.start < viewStart,\n endsAfterWeek: (entry.event.end || entry.event.start) > viewEnd,\n }); })\n .sort(function (itemA, itemB) {\n var startSecondsDiff = differenceInSeconds(itemA.event.start, itemB.event.start);\n if (startSecondsDiff === 0) {\n return differenceInSeconds(itemB.event.end || itemB.event.start, itemA.event.end || itemA.event.start);\n }\n return startSecondsDiff;\n });\n var allDayEventRows = [];\n var allocatedEvents = [];\n eventsMapped.forEach(function (event, index) {\n if (allocatedEvents.indexOf(event) === -1) {\n allocatedEvents.push(event);\n var rowSpan_1 = event.span + event.offset;\n var otherRowEvents = eventsMapped\n .slice(index + 1)\n .filter(function (nextEvent) {\n if (nextEvent.offset >= rowSpan_1 &&\n rowSpan_1 + nextEvent.span <= totalDaysInView &&\n allocatedEvents.indexOf(nextEvent) === -1) {\n var nextEventOffset = nextEvent.offset - rowSpan_1;\n if (!absolutePositionedEvents) {\n nextEvent.offset = nextEventOffset;\n }\n rowSpan_1 += nextEvent.span + nextEventOffset;\n allocatedEvents.push(nextEvent);\n return true;\n }\n });\n var weekEvents = __spreadArray([event], otherRowEvents, true);\n var id = weekEvents\n .filter(function (weekEvent) { return weekEvent.event.id; })\n .map(function (weekEvent) { return weekEvent.event.id; })\n .join('-');\n allDayEventRows.push(__assign({ row: weekEvents }, (id ? { id: id } : {})));\n }\n });\n return allDayEventRows;\n}\nfunction getWeekViewHourGrid(dateAdapter, _a) {\n var events = _a.events, viewDate = _a.viewDate, hourSegments = _a.hourSegments, hourDuration = _a.hourDuration, dayStart = _a.dayStart, dayEnd = _a.dayEnd, weekStartsOn = _a.weekStartsOn, excluded = _a.excluded, weekendDays = _a.weekendDays, segmentHeight = _a.segmentHeight, viewStart = _a.viewStart, viewEnd = _a.viewEnd, minimumEventHeight = _a.minimumEventHeight;\n var dayViewHourGrid = getDayViewHourGrid(dateAdapter, {\n viewDate: viewDate,\n hourSegments: hourSegments,\n hourDuration: hourDuration,\n dayStart: dayStart,\n dayEnd: dayEnd,\n });\n var weekDays = getWeekViewHeader(dateAdapter, {\n viewDate: viewDate,\n weekStartsOn: weekStartsOn,\n excluded: excluded,\n weekendDays: weekendDays,\n viewStart: viewStart,\n viewEnd: viewEnd,\n });\n var setHours = dateAdapter.setHours, setMinutes = dateAdapter.setMinutes, getHours = dateAdapter.getHours, getMinutes = dateAdapter.getMinutes;\n return weekDays.map(function (day) {\n var dayView = getDayView(dateAdapter, {\n events: events,\n viewDate: day.date,\n hourSegments: hourSegments,\n dayStart: dayStart,\n dayEnd: dayEnd,\n segmentHeight: segmentHeight,\n eventWidth: 1,\n hourDuration: hourDuration,\n minimumEventHeight: minimumEventHeight,\n });\n var hours = dayViewHourGrid.map(function (hour) {\n var segments = hour.segments.map(function (segment) {\n var date = setMinutes(setHours(day.date, getHours(segment.date)), getMinutes(segment.date));\n return __assign(__assign({}, segment), { date: date });\n });\n return __assign(__assign({}, hour), { segments: segments });\n });\n function getColumnCount(allEvents, prevOverlappingEvents) {\n var columnCount = Math.max.apply(Math, prevOverlappingEvents.map(function (iEvent) { return iEvent.left + 1; }));\n var nextOverlappingEvents = allEvents\n .filter(function (iEvent) { return iEvent.left >= columnCount; })\n .filter(function (iEvent) {\n return (getOverLappingWeekViewEvents(prevOverlappingEvents, iEvent.top, iEvent.top + iEvent.height).length > 0);\n });\n if (nextOverlappingEvents.length > 0) {\n return getColumnCount(allEvents, nextOverlappingEvents);\n }\n else {\n return columnCount;\n }\n }\n var mappedEvents = dayView.events.map(function (event) {\n var columnCount = getColumnCount(dayView.events, getOverLappingWeekViewEvents(dayView.events, event.top, event.top + event.height));\n var width = 100 / columnCount;\n return __assign(__assign({}, event), { left: event.left * width, width: width });\n });\n return {\n hours: hours,\n date: day.date,\n events: mappedEvents.map(function (event) {\n var overLappingEvents = getOverLappingWeekViewEvents(mappedEvents.filter(function (otherEvent) { return otherEvent.left > event.left; }), event.top, event.top + event.height);\n if (overLappingEvents.length > 0) {\n return __assign(__assign({}, event), { width: Math.min.apply(Math, overLappingEvents.map(function (otherEvent) { return otherEvent.left; })) - event.left });\n }\n return event;\n }),\n };\n });\n}\nexport function getWeekView(dateAdapter, _a) {\n var _b = _a.events, events = _b === void 0 ? [] : _b, viewDate = _a.viewDate, weekStartsOn = _a.weekStartsOn, _c = _a.excluded, excluded = _c === void 0 ? [] : _c, _d = _a.precision, precision = _d === void 0 ? 'days' : _d, _e = _a.absolutePositionedEvents, absolutePositionedEvents = _e === void 0 ? false : _e, hourSegments = _a.hourSegments, hourDuration = _a.hourDuration, dayStart = _a.dayStart, dayEnd = _a.dayEnd, weekendDays = _a.weekendDays, segmentHeight = _a.segmentHeight, minimumEventHeight = _a.minimumEventHeight, _f = _a.viewStart, viewStart = _f === void 0 ? dateAdapter.startOfWeek(viewDate, { weekStartsOn: weekStartsOn }) : _f, _g = _a.viewEnd, viewEnd = _g === void 0 ? dateAdapter.endOfWeek(viewDate, { weekStartsOn: weekStartsOn }) : _g;\n if (!events) {\n events = [];\n }\n var startOfDay = dateAdapter.startOfDay, endOfDay = dateAdapter.endOfDay;\n viewStart = startOfDay(viewStart);\n viewEnd = endOfDay(viewEnd);\n var eventsInPeriod = getEventsInPeriod(dateAdapter, {\n events: events,\n periodStart: viewStart,\n periodEnd: viewEnd,\n });\n var header = getWeekViewHeader(dateAdapter, {\n viewDate: viewDate,\n weekStartsOn: weekStartsOn,\n excluded: excluded,\n weekendDays: weekendDays,\n viewStart: viewStart,\n viewEnd: viewEnd,\n });\n return {\n allDayEventRows: getAllDayWeekEvents(dateAdapter, {\n events: eventsInPeriod,\n excluded: excluded,\n precision: precision,\n absolutePositionedEvents: absolutePositionedEvents,\n viewStart: viewStart,\n viewEnd: viewEnd,\n }),\n period: {\n events: eventsInPeriod,\n start: header[0].date,\n end: endOfDay(header[header.length - 1].date),\n },\n hourColumns: getWeekViewHourGrid(dateAdapter, {\n events: events,\n viewDate: viewDate,\n hourSegments: hourSegments,\n hourDuration: hourDuration,\n dayStart: dayStart,\n dayEnd: dayEnd,\n weekStartsOn: weekStartsOn,\n excluded: excluded,\n weekendDays: weekendDays,\n segmentHeight: segmentHeight,\n viewStart: viewStart,\n viewEnd: viewEnd,\n minimumEventHeight: minimumEventHeight,\n }),\n };\n}\nexport function getMonthView(dateAdapter, _a) {\n var _b = _a.events, events = _b === void 0 ? [] : _b, viewDate = _a.viewDate, weekStartsOn = _a.weekStartsOn, _c = _a.excluded, excluded = _c === void 0 ? [] : _c, _d = _a.viewStart, viewStart = _d === void 0 ? dateAdapter.startOfMonth(viewDate) : _d, _e = _a.viewEnd, viewEnd = _e === void 0 ? dateAdapter.endOfMonth(viewDate) : _e, weekendDays = _a.weekendDays;\n if (!events) {\n events = [];\n }\n var startOfWeek = dateAdapter.startOfWeek, endOfWeek = dateAdapter.endOfWeek, differenceInDays = dateAdapter.differenceInDays, startOfDay = dateAdapter.startOfDay, addHours = dateAdapter.addHours, endOfDay = dateAdapter.endOfDay, isSameMonth = dateAdapter.isSameMonth, getDay = dateAdapter.getDay;\n var start = startOfWeek(viewStart, { weekStartsOn: weekStartsOn });\n var end = endOfWeek(viewEnd, { weekStartsOn: weekStartsOn });\n var eventsInMonth = getEventsInPeriod(dateAdapter, {\n events: events,\n periodStart: start,\n periodEnd: end,\n });\n var initialViewDays = [];\n var previousDate;\n var _loop_2 = function (i) {\n // hacky fix for https://github.com/mattlewis92/angular-calendar/issues/173\n var date;\n if (previousDate) {\n date = startOfDay(addHours(previousDate, HOURS_IN_DAY));\n if (previousDate.getTime() === date.getTime()) {\n // DST change, so need to add 25 hours\n /* istanbul ignore next */\n date = startOfDay(addHours(previousDate, HOURS_IN_DAY + 1));\n }\n previousDate = date;\n }\n else {\n date = previousDate = start;\n }\n if (!excluded.some(function (e) { return getDay(date) === e; })) {\n var day = getWeekDay(dateAdapter, {\n date: date,\n weekendDays: weekendDays,\n });\n var eventsInPeriod = getEventsInPeriod(dateAdapter, {\n events: eventsInMonth,\n periodStart: startOfDay(date),\n periodEnd: endOfDay(date),\n });\n day.inMonth = isSameMonth(date, viewDate);\n day.events = eventsInPeriod;\n day.badgeTotal = eventsInPeriod.length;\n initialViewDays.push(day);\n }\n };\n for (var i = 0; i < differenceInDays(end, start) + 1; i++) {\n _loop_2(i);\n }\n var days = [];\n var totalDaysVisibleInWeek = DAYS_IN_WEEK - excluded.length;\n if (totalDaysVisibleInWeek < DAYS_IN_WEEK) {\n for (var i = 0; i < initialViewDays.length; i += totalDaysVisibleInWeek) {\n var row = initialViewDays.slice(i, i + totalDaysVisibleInWeek);\n var isRowInMonth = row.some(function (day) { return viewStart <= day.date && day.date < viewEnd; });\n if (isRowInMonth) {\n days = __spreadArray(__spreadArray([], days, true), row, true);\n }\n }\n }\n else {\n days = initialViewDays;\n }\n var rows = Math.floor(days.length / totalDaysVisibleInWeek);\n var rowOffsets = [];\n for (var i = 0; i < rows; i++) {\n rowOffsets.push(i * totalDaysVisibleInWeek);\n }\n return {\n rowOffsets: rowOffsets,\n totalDaysVisibleInWeek: totalDaysVisibleInWeek,\n days: days,\n period: {\n start: days[0].date,\n end: endOfDay(days[days.length - 1].date),\n events: eventsInMonth,\n },\n };\n}\nfunction getOverLappingWeekViewEvents(events, top, bottom) {\n return events.filter(function (previousEvent) {\n var previousEventTop = previousEvent.top;\n var previousEventBottom = previousEvent.top + previousEvent.height;\n if (top < previousEventBottom && previousEventBottom < bottom) {\n return true;\n }\n else if (top < previousEventTop && previousEventTop < bottom) {\n return true;\n }\n else if (previousEventTop <= top && bottom <= previousEventBottom) {\n return true;\n }\n return false;\n });\n}\nfunction getDayView(dateAdapter, _a) {\n var events = _a.events, viewDate = _a.viewDate, hourSegments = _a.hourSegments, dayStart = _a.dayStart, dayEnd = _a.dayEnd, eventWidth = _a.eventWidth, segmentHeight = _a.segmentHeight, hourDuration = _a.hourDuration, minimumEventHeight = _a.minimumEventHeight;\n var setMinutes = dateAdapter.setMinutes, setHours = dateAdapter.setHours, startOfDay = dateAdapter.startOfDay, startOfMinute = dateAdapter.startOfMinute, endOfDay = dateAdapter.endOfDay, differenceInMinutes = dateAdapter.differenceInMinutes;\n var startOfView = setMinutes(setHours(startOfDay(viewDate), sanitiseHours(dayStart.hour)), sanitiseMinutes(dayStart.minute));\n var endOfView = setMinutes(setHours(startOfMinute(endOfDay(viewDate)), sanitiseHours(dayEnd.hour)), sanitiseMinutes(dayEnd.minute));\n endOfView.setSeconds(59, 999);\n var previousDayEvents = [];\n var eventsInPeriod = getEventsInPeriod(dateAdapter, {\n events: events.filter(function (event) { return !event.allDay; }),\n periodStart: startOfView,\n periodEnd: endOfView,\n });\n var dayViewEvents = eventsInPeriod\n .sort(function (eventA, eventB) {\n return eventA.start.valueOf() - eventB.start.valueOf();\n })\n .map(function (event) {\n var eventStart = event.start;\n var eventEnd = event.end || eventStart;\n var startsBeforeDay = eventStart < startOfView;\n var endsAfterDay = eventEnd > endOfView;\n var hourHeightModifier = (hourSegments * segmentHeight) / (hourDuration || MINUTES_IN_HOUR);\n var top = 0;\n if (eventStart > startOfView) {\n // adjust the difference in minutes if the user's offset is different between the start of the day and the event (e.g. when going to or from DST)\n var eventOffset = dateAdapter.getTimezoneOffset(eventStart);\n var startOffset = dateAdapter.getTimezoneOffset(startOfView);\n var diff = startOffset - eventOffset;\n top += differenceInMinutes(eventStart, startOfView) + diff;\n }\n top *= hourHeightModifier;\n top = Math.floor(top);\n var startDate = startsBeforeDay ? startOfView : eventStart;\n var endDate = endsAfterDay ? endOfView : eventEnd;\n var timezoneOffset = dateAdapter.getTimezoneOffset(startDate) -\n dateAdapter.getTimezoneOffset(endDate);\n var height = differenceInMinutes(endDate, startDate) + timezoneOffset;\n if (!event.end) {\n height = segmentHeight;\n }\n else {\n height *= hourHeightModifier;\n }\n if (minimumEventHeight && height < minimumEventHeight) {\n height = minimumEventHeight;\n }\n height = Math.floor(height);\n var bottom = top + height;\n var overlappingPreviousEvents = getOverLappingWeekViewEvents(previousDayEvents, top, bottom);\n var left = 0;\n while (overlappingPreviousEvents.some(function (previousEvent) { return previousEvent.left === left; })) {\n left += eventWidth;\n }\n var dayEvent = {\n event: event,\n height: height,\n width: eventWidth,\n top: top,\n left: left,\n startsBeforeDay: startsBeforeDay,\n endsAfterDay: endsAfterDay,\n };\n previousDayEvents.push(dayEvent);\n return dayEvent;\n });\n var width = Math.max.apply(Math, dayViewEvents.map(function (event) { return event.left + event.width; }));\n var allDayEvents = getEventsInPeriod(dateAdapter, {\n events: events.filter(function (event) { return event.allDay; }),\n periodStart: startOfDay(startOfView),\n periodEnd: endOfDay(endOfView),\n });\n return {\n events: dayViewEvents,\n width: width,\n allDayEvents: allDayEvents,\n period: {\n events: eventsInPeriod,\n start: startOfView,\n end: endOfView,\n },\n };\n}\nfunction sanitiseHours(hours) {\n return Math.max(Math.min(23, hours), 0);\n}\nfunction sanitiseMinutes(minutes) {\n return Math.max(Math.min(59, minutes), 0);\n}\nfunction getDayViewHourGrid(dateAdapter, _a) {\n var viewDate = _a.viewDate, hourSegments = _a.hourSegments, hourDuration = _a.hourDuration, dayStart = _a.dayStart, dayEnd = _a.dayEnd;\n var setMinutes = dateAdapter.setMinutes, setHours = dateAdapter.setHours, startOfDay = dateAdapter.startOfDay, startOfMinute = dateAdapter.startOfMinute, endOfDay = dateAdapter.endOfDay, addMinutes = dateAdapter.addMinutes, addDays = dateAdapter.addDays;\n var hours = [];\n var startOfView = setMinutes(setHours(startOfDay(viewDate), sanitiseHours(dayStart.hour)), sanitiseMinutes(dayStart.minute));\n var endOfView = setMinutes(setHours(startOfMinute(endOfDay(viewDate)), sanitiseHours(dayEnd.hour)), sanitiseMinutes(dayEnd.minute));\n var segmentDuration = (hourDuration || MINUTES_IN_HOUR) / hourSegments;\n var startOfViewDay = startOfDay(viewDate);\n var endOfViewDay = endOfDay(viewDate);\n var dateAdjustment = function (d) { return d; };\n // this means that we change from or to DST on this day and that's going to cause problems so we bump the date\n if (dateAdapter.getTimezoneOffset(startOfViewDay) !==\n dateAdapter.getTimezoneOffset(endOfViewDay)) {\n startOfViewDay = addDays(startOfViewDay, 1);\n startOfView = addDays(startOfView, 1);\n endOfView = addDays(endOfView, 1);\n dateAdjustment = function (d) { return addDays(d, -1); };\n }\n var dayDuration = hourDuration\n ? (HOURS_IN_DAY * 60) / hourDuration\n : MINUTES_IN_HOUR;\n for (var i = 0; i < dayDuration; i++) {\n var segments = [];\n for (var j = 0; j < hourSegments; j++) {\n var date = addMinutes(addMinutes(startOfView, i * (hourDuration || MINUTES_IN_HOUR)), j * segmentDuration);\n if (date >= startOfView && date < endOfView) {\n segments.push({\n date: dateAdjustment(date),\n displayDate: date,\n isStart: j === 0,\n });\n }\n }\n if (segments.length > 0) {\n hours.push({ segments: segments });\n }\n }\n return hours;\n}\nexport var EventValidationErrorMessage;\n(function (EventValidationErrorMessage) {\n EventValidationErrorMessage[\"NotArray\"] = \"Events must be an array\";\n EventValidationErrorMessage[\"StartPropertyMissing\"] = \"Event is missing the `start` property\";\n EventValidationErrorMessage[\"StartPropertyNotDate\"] = \"Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.\";\n EventValidationErrorMessage[\"EndPropertyNotDate\"] = \"Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.\";\n EventValidationErrorMessage[\"EndsBeforeStart\"] = \"Event `start` property occurs after the `end`\";\n})(EventValidationErrorMessage || (EventValidationErrorMessage = {}));\nexport function validateEvents(events, log) {\n var isValid = true;\n function isError(msg, event) {\n log(msg, event);\n isValid = false;\n }\n if (!Array.isArray(events)) {\n log(EventValidationErrorMessage.NotArray, events);\n return false;\n }\n events.forEach(function (event) {\n if (!event.start) {\n isError(EventValidationErrorMessage.StartPropertyMissing, event);\n }\n else if (!(event.start instanceof Date)) {\n isError(EventValidationErrorMessage.StartPropertyNotDate, event);\n }\n if (event.end) {\n if (!(event.end instanceof Date)) {\n isError(EventValidationErrorMessage.EndPropertyNotDate, event);\n }\n if (event.start > event.end) {\n isError(EventValidationErrorMessage.EndsBeforeStart, event);\n }\n }\n });\n return isValid;\n}\n","import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\nexport const queueScheduler = new QueueScheduler(QueueAction);\nexport const queue = queueScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class QueueScheduler extends AsyncScheduler {\n}\n","import { AsyncAction } from './AsyncAction';\nexport class QueueAction extends AsyncAction {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n schedule(state, delay = 0) {\n if (delay > 0) {\n return super.schedule(state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n }\n execute(state, delay) {\n return (delay > 0 || this.closed) ?\n super.execute(state, delay) :\n this._execute(state, delay);\n }\n requestAsyncId(scheduler, id, delay = 0) {\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n return scheduler.flush(this);\n }\n}\n","import { empty } from './observable/empty';\nimport { of } from './observable/of';\nimport { throwError } from './observable/throwError';\nexport var NotificationKind;\n(function (NotificationKind) {\n NotificationKind[\"NEXT\"] = \"N\";\n NotificationKind[\"ERROR\"] = \"E\";\n NotificationKind[\"COMPLETE\"] = \"C\";\n})(NotificationKind || (NotificationKind = {}));\nexport class Notification {\n constructor(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n observe(observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n case 'E':\n return observer.error && observer.error(this.error);\n case 'C':\n return observer.complete && observer.complete();\n }\n }\n do(next, error, complete) {\n const kind = this.kind;\n switch (kind) {\n case 'N':\n return next && next(this.value);\n case 'E':\n return error && error(this.error);\n case 'C':\n return complete && complete();\n }\n }\n accept(nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n }\n else {\n return this.do(nextOrObserver, error, complete);\n }\n }\n toObservable() {\n const kind = this.kind;\n switch (kind) {\n case 'N':\n return of(this.value);\n case 'E':\n return throwError(this.error);\n case 'C':\n return empty();\n }\n throw new Error('unexpected notification kind value');\n }\n static createNext(value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n return Notification.undefinedValueNotification;\n }\n static createError(err) {\n return new Notification('E', undefined, err);\n }\n static createComplete() {\n return Notification.completeNotification;\n }\n}\nNotification.completeNotification = new Notification('C');\nNotification.undefinedValueNotification = new Notification('N', undefined);\n","import { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function observeOn(scheduler, delay = 0) {\n return function observeOnOperatorFunction(source) {\n return source.lift(new ObserveOnOperator(scheduler, delay));\n };\n}\nexport class ObserveOnOperator {\n constructor(scheduler, delay = 0) {\n this.scheduler = scheduler;\n this.delay = delay;\n }\n call(subscriber, source) {\n return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\n }\n}\nexport class ObserveOnSubscriber extends Subscriber {\n constructor(destination, scheduler, delay = 0) {\n super(destination);\n this.scheduler = scheduler;\n this.delay = delay;\n }\n static dispatch(arg) {\n const { notification, destination } = arg;\n notification.observe(destination);\n this.unsubscribe();\n }\n scheduleMessage(notification) {\n const destination = this.destination;\n destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));\n }\n _next(value) {\n this.scheduleMessage(Notification.createNext(value));\n }\n _error(err) {\n this.scheduleMessage(Notification.createError(err));\n this.unsubscribe();\n }\n _complete() {\n this.scheduleMessage(Notification.createComplete());\n this.unsubscribe();\n }\n}\nexport class ObserveOnMessage {\n constructor(notification, destination) {\n this.notification = notification;\n this.destination = destination;\n }\n}\n","import { Subject } from './Subject';\nimport { queue } from './scheduler/queue';\nimport { Subscription } from './Subscription';\nimport { ObserveOnSubscriber } from './operators/observeOn';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nexport class ReplaySubject extends Subject {\n constructor(bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, scheduler) {\n super();\n this.scheduler = scheduler;\n this._events = [];\n this._infiniteTimeWindow = false;\n this._bufferSize = bufferSize < 1 ? 1 : bufferSize;\n this._windowTime = windowTime < 1 ? 1 : windowTime;\n if (windowTime === Number.POSITIVE_INFINITY) {\n this._infiniteTimeWindow = true;\n this.next = this.nextInfiniteTimeWindow;\n }\n else {\n this.next = this.nextTimeWindow;\n }\n }\n nextInfiniteTimeWindow(value) {\n if (!this.isStopped) {\n const _events = this._events;\n _events.push(value);\n if (_events.length > this._bufferSize) {\n _events.shift();\n }\n }\n super.next(value);\n }\n nextTimeWindow(value) {\n if (!this.isStopped) {\n this._events.push(new ReplayEvent(this._getNow(), value));\n this._trimBufferThenGetEvents();\n }\n super.next(value);\n }\n _subscribe(subscriber) {\n const _infiniteTimeWindow = this._infiniteTimeWindow;\n const _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();\n const scheduler = this.scheduler;\n const len = _events.length;\n let subscription;\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.isStopped || this.hasError) {\n subscription = Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n subscription = new SubjectSubscription(this, subscriber);\n }\n if (scheduler) {\n subscriber.add(subscriber = new ObserveOnSubscriber(subscriber, scheduler));\n }\n if (_infiniteTimeWindow) {\n for (let i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i]);\n }\n }\n else {\n for (let i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i].value);\n }\n }\n if (this.hasError) {\n subscriber.error(this.thrownError);\n }\n else if (this.isStopped) {\n subscriber.complete();\n }\n return subscription;\n }\n _getNow() {\n return (this.scheduler || queue).now();\n }\n _trimBufferThenGetEvents() {\n const now = this._getNow();\n const _bufferSize = this._bufferSize;\n const _windowTime = this._windowTime;\n const _events = this._events;\n const eventsCount = _events.length;\n let spliceCount = 0;\n while (spliceCount < eventsCount) {\n if ((now - _events[spliceCount].time) < _windowTime) {\n break;\n }\n spliceCount++;\n }\n if (eventsCount > _bufferSize) {\n spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);\n }\n if (spliceCount > 0) {\n _events.splice(0, spliceCount);\n }\n return _events;\n }\n}\nclass ReplayEvent {\n constructor(time, value) {\n this.time = time;\n this.value = value;\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function count(predicate) {\n return (source) => source.lift(new CountOperator(predicate, source));\n}\nclass CountOperator {\n constructor(predicate, source) {\n this.predicate = predicate;\n this.source = source;\n }\n call(subscriber, source) {\n return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));\n }\n}\nclass CountSubscriber extends Subscriber {\n constructor(destination, predicate, source) {\n super(destination);\n this.predicate = predicate;\n this.source = source;\n this.count = 0;\n this.index = 0;\n }\n _next(value) {\n if (this.predicate) {\n this._tryPredicate(value);\n }\n else {\n this.count++;\n }\n }\n _tryPredicate(value) {\n let result;\n try {\n result = this.predicate(value, this.index++, this.source);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.count++;\n }\n }\n _complete() {\n this.destination.next(this.count);\n this.destination.complete();\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function pairwise() {\n return (source) => source.lift(new PairwiseOperator());\n}\nclass PairwiseOperator {\n call(subscriber, source) {\n return source.subscribe(new PairwiseSubscriber(subscriber));\n }\n}\nclass PairwiseSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n this.hasPrev = false;\n }\n _next(value) {\n let pair;\n if (this.hasPrev) {\n pair = [this.prev, value];\n }\n else {\n this.hasPrev = true;\n }\n this.prev = value;\n if (pair) {\n this.destination.next(pair);\n }\n }\n}\n","function getDef(f, d) {\n if (typeof f === 'undefined') {\n return typeof d === 'undefined' ? f : d;\n }\n\n return f;\n}\nfunction boolean(func, def) {\n\n func = getDef(func, def);\n\n if (typeof func === 'function') {\n return function f() {\n var arguments$1 = arguments;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments$1[_key];\n }\n\n return !!func.apply(this, args);\n };\n }\n\n return !!func ? function () {\n return true;\n } : function () {\n return false;\n };\n}\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\n/**\n * Returns `true` if provided input is Element.\n * @name isElement\n * @param {*} [input]\n * @returns {boolean}\n */\nvar isElement$1 = function (input) {\n return input != null && (typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' && input.nodeType === 1 && _typeof(input.style) === 'object' && _typeof(input.ownerDocument) === 'object';\n};\n\nfunction indexOfElement(elements, element){\n element = resolveElement(element, true);\n if(!isElement$1(element)) { return -1; }\n for(var i=0; i 0 ) { toAdd[ len ] = arguments$1[ len + 1 ]; }\n\n toAdd = toAdd.map(resolveElement);\n return pushElements(elements, toAdd);\n}\n\nfunction removeElements(elements){\n var arguments$1 = arguments;\n\n var toRemove = [], len = arguments.length - 1;\n while ( len-- > 0 ) { toRemove[ len ] = arguments$1[ len + 1 ]; }\n\n return toRemove.map(resolveElement).reduce(function (last, e){\n\n var index = indexOfElement(elements, e);\n\n if(index !== -1)\n { return last.concat(elements.splice(index, 1)); }\n return last;\n }, []);\n}\n\nfunction resolveElement(element, noThrow){\n if(typeof element === 'string'){\n try{\n return document.querySelector(element);\n }catch(e){\n throw e;\n }\n\n }\n\n if(!isElement$1(element) && !noThrow){\n throw new TypeError((element + \" is not a DOM element.\"));\n }\n return element;\n}\n\nfunction createPointCB(object, options) {\n\n // A persistent object (as opposed to returned object) is used to save memory\n // This is good to prevent layout thrashing, or for games, and such\n\n // NOTE\n // This uses IE fixes which should be OK to remove some day. :)\n // Some speed will be gained by removal of these.\n\n // pointCB should be saved in a variable on return\n // This allows the usage of element.removeEventListener\n\n options = options || {};\n\n var allowUpdate = boolean(options.allowUpdate, true);\n\n /*if(typeof options.allowUpdate === 'function'){\n allowUpdate = options.allowUpdate;\n }else{\n allowUpdate = function(){return true;};\n }*/\n\n return function pointCB(event) {\n\n event = event || window.event; // IE-ism\n object.target = event.target || event.srcElement || event.originalTarget;\n object.element = this;\n object.type = event.type;\n\n if (!allowUpdate(event)) {\n return;\n }\n\n // Support touch\n // http://www.creativebloq.com/javascript/make-your-site-work-touch-devices-51411644\n\n if (event.targetTouches) {\n object.x = event.targetTouches[0].clientX;\n object.y = event.targetTouches[0].clientY;\n object.pageX = event.targetTouches[0].pageX;\n object.pageY = event.targetTouches[0].pageY;\n object.screenX = event.targetTouches[0].screenX;\n object.screenY = event.targetTouches[0].screenY;\n } else {\n\n // If pageX/Y aren't available and clientX/Y are,\n // calculate pageX/Y - logic taken from jQuery.\n // (This is to support old IE)\n // NOTE Hopefully this can be removed soon.\n\n if (event.pageX === null && event.clientX !== null) {\n var eventDoc = event.target && event.target.ownerDocument || document;\n var doc = eventDoc.documentElement;\n var body = eventDoc.body;\n\n object.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);\n object.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);\n } else {\n object.pageX = event.pageX;\n object.pageY = event.pageY;\n }\n\n // pageX, and pageY change with page scroll\n // so we're not going to use those for x, and y.\n // NOTE Most browsers also alias clientX/Y with x/y\n // so that's something to consider down the road.\n\n object.x = event.clientX;\n object.y = event.clientY;\n\n object.screenX = event.screenX;\n object.screenY = event.screenY;\n }\n\n object.clientX = object.x;\n object.clientY = object.y;\n };\n\n //NOTE Remember accessibility, Aria roles, and labels.\n}\n\nfunction createWindowRect() {\n var props = {\n top: { value: 0, enumerable: true },\n left: { value: 0, enumerable: true },\n right: { value: window.innerWidth, enumerable: true },\n bottom: { value: window.innerHeight, enumerable: true },\n width: { value: window.innerWidth, enumerable: true },\n height: { value: window.innerHeight, enumerable: true },\n x: { value: 0, enumerable: true },\n y: { value: 0, enumerable: true }\n };\n\n if (Object.create) {\n return Object.create({}, props);\n } else {\n var rect = {};\n Object.defineProperties(rect, props);\n return rect;\n }\n}\n\nfunction getClientRect(el) {\n if (el === window) {\n return createWindowRect();\n } else {\n try {\n var rect = el.getBoundingClientRect();\n if (rect.x === undefined) {\n rect.x = rect.left;\n rect.y = rect.top;\n }\n return rect;\n } catch (e) {\n throw new TypeError(\"Can't call getBoundingClientRect on \" + el);\n }\n }\n}\n\nfunction pointInside(point, el) {\n var rect = getClientRect(el);\n return point.y > rect.top && point.y < rect.bottom && point.x > rect.left && point.x < rect.right;\n}\n\nvar objectCreate = void 0;\nif (typeof Object.create != 'function') {\n objectCreate = function (undefined$1) {\n var Temp = function Temp() {};\n return function (prototype, propertiesObject) {\n if (prototype !== Object(prototype) && prototype !== null) {\n throw TypeError('Argument must be an object, or null');\n }\n Temp.prototype = prototype || {};\n var result = new Temp();\n Temp.prototype = null;\n if (propertiesObject !== undefined$1) {\n Object.defineProperties(result, propertiesObject);\n }\n\n // to imitate the case of Object.create(null)\n if (prototype === null) {\n result.__proto__ = null;\n }\n return result;\n };\n }();\n} else {\n objectCreate = Object.create;\n}\n\nvar objectCreate$1 = objectCreate;\n\nvar mouseEventProps = ['altKey', 'button', 'buttons', 'clientX', 'clientY', 'ctrlKey', 'metaKey', 'movementX', 'movementY', 'offsetX', 'offsetY', 'pageX', 'pageY', 'region', 'relatedTarget', 'screenX', 'screenY', 'shiftKey', 'which', 'x', 'y'];\n\nfunction createDispatcher(element) {\n\n var defaultSettings = {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n shiftKey: false,\n altKey: false,\n metaKey: false,\n button: 0,\n buttons: 1,\n relatedTarget: null,\n region: null\n };\n\n if (element !== undefined) {\n element.addEventListener('mousemove', onMove);\n }\n\n function onMove(e) {\n for (var i = 0; i < mouseEventProps.length; i++) {\n defaultSettings[mouseEventProps[i]] = e[mouseEventProps[i]];\n }\n }\n\n var dispatch = function () {\n if (MouseEvent) {\n return function m1(element, initMove, data) {\n var evt = new MouseEvent('mousemove', createMoveInit(defaultSettings, initMove));\n\n //evt.dispatched = 'mousemove';\n setSpecial(evt, data);\n\n return element.dispatchEvent(evt);\n };\n } else if (typeof document.createEvent === 'function') {\n return function m2(element, initMove, data) {\n var settings = createMoveInit(defaultSettings, initMove);\n var evt = document.createEvent('MouseEvents');\n\n evt.initMouseEvent(\"mousemove\", true, //can bubble\n true, //cancelable\n window, //view\n 0, //detail\n settings.screenX, //0, //screenX\n settings.screenY, //0, //screenY\n settings.clientX, //80, //clientX\n settings.clientY, //20, //clientY\n settings.ctrlKey, //false, //ctrlKey\n settings.altKey, //false, //altKey\n settings.shiftKey, //false, //shiftKey\n settings.metaKey, //false, //metaKey\n settings.button, //0, //button\n settings.relatedTarget //null //relatedTarget\n );\n\n //evt.dispatched = 'mousemove';\n setSpecial(evt, data);\n\n return element.dispatchEvent(evt);\n };\n } else if (typeof document.createEventObject === 'function') {\n return function m3(element, initMove, data) {\n var evt = document.createEventObject();\n var settings = createMoveInit(defaultSettings, initMove);\n for (var name in settings) {\n evt[name] = settings[name];\n }\n\n //evt.dispatched = 'mousemove';\n setSpecial(evt, data);\n\n return element.dispatchEvent(evt);\n };\n }\n }();\n\n function destroy() {\n if (element) { element.removeEventListener('mousemove', onMove, false); }\n defaultSettings = null;\n }\n\n return {\n destroy: destroy,\n dispatch: dispatch\n };\n}\n\nfunction createMoveInit(defaultSettings, initMove) {\n initMove = initMove || {};\n var settings = objectCreate$1(defaultSettings);\n for (var i = 0; i < mouseEventProps.length; i++) {\n if (initMove[mouseEventProps[i]] !== undefined) { settings[mouseEventProps[i]] = initMove[mouseEventProps[i]]; }\n }\n\n return settings;\n}\n\nfunction setSpecial(e, data) {\n console.log('data ', data);\n e.data = data || {};\n e.dispatched = 'mousemove';\n}\n\nvar prefix = [ 'webkit', 'moz', 'ms', 'o' ];\n\nvar requestFrame = (function () {\n\n if (typeof window === \"undefined\") {\n return function () {};\n }\n\n for ( var i = 0, limit = prefix.length ; i < limit && ! window.requestAnimationFrame ; ++i ) {\n window.requestAnimationFrame = window[ prefix[ i ] + 'RequestAnimationFrame' ];\n }\n\n if ( ! window.requestAnimationFrame ) {\n var lastTime = 0;\n\n window.requestAnimationFrame = function (callback) {\n var now = new Date().getTime();\n var ttc = Math.max( 0, 16 - now - lastTime );\n var timer = window.setTimeout( function () { return callback( now + ttc ); }, ttc );\n\n lastTime = now + ttc;\n\n return timer;\n };\n }\n\n return window.requestAnimationFrame.bind( window );\n})();\n\nvar cancelFrame = (function () {\n\n if (typeof window === \"undefined\") {\n return function () {};\n }\n\n for ( var i = 0, limit = prefix.length ; i < limit && ! window.cancelAnimationFrame ; ++i ) {\n window.cancelAnimationFrame = window[ prefix[ i ] + 'CancelAnimationFrame' ] || window[ prefix[ i ] + 'CancelRequestAnimationFrame' ];\n }\n\n if ( ! window.cancelAnimationFrame ) {\n window.cancelAnimationFrame = function (timer) {\n window.clearTimeout( timer );\n };\n }\n\n return window.cancelAnimationFrame.bind( window );\n})();\n\nfunction AutoScroller(elements, options){\n if ( options === void 0 ) options = {};\n\n var self = this;\n var maxSpeed = 4, scrolling = false;\n\n if (typeof options.margin !== 'object') {\n var margin = options.margin || -1;\n\n this.margin = {\n left: margin,\n right: margin,\n top: margin,\n bottom: margin\n };\n } else {\n this.margin = options.margin;\n }\n\n //this.scrolling = false;\n this.scrollWhenOutside = options.scrollWhenOutside || false;\n\n var point = {},\n pointCB = createPointCB(point),\n dispatcher = createDispatcher(),\n down = false;\n\n window.addEventListener('mousemove', pointCB, false);\n window.addEventListener('touchmove', pointCB, false);\n\n if(!isNaN(options.maxSpeed)){\n maxSpeed = options.maxSpeed;\n }\n\n if (typeof maxSpeed !== 'object') {\n maxSpeed = {\n left: maxSpeed,\n right: maxSpeed,\n top: maxSpeed,\n bottom: maxSpeed\n };\n }\n\n this.autoScroll = boolean(options.autoScroll);\n this.syncMove = boolean(options.syncMove, false);\n\n this.destroy = function(forceCleanAnimation) {\n window.removeEventListener('mousemove', pointCB, false);\n window.removeEventListener('touchmove', pointCB, false);\n window.removeEventListener('mousedown', onDown, false);\n window.removeEventListener('touchstart', onDown, false);\n window.removeEventListener('mouseup', onUp, false);\n window.removeEventListener('touchend', onUp, false);\n window.removeEventListener('pointerup', onUp, false);\n window.removeEventListener('mouseleave', onMouseOut, false);\n\n window.removeEventListener('mousemove', onMove, false);\n window.removeEventListener('touchmove', onMove, false);\n\n window.removeEventListener('scroll', setScroll, true);\n elements = [];\n if(forceCleanAnimation){\n cleanAnimation();\n }\n };\n\n this.add = function(){\n var element = [], len = arguments.length;\n while ( len-- ) element[ len ] = arguments[ len ];\n\n addElements.apply(void 0, [ elements ].concat( element ));\n return this;\n };\n\n this.remove = function(){\n var element = [], len = arguments.length;\n while ( len-- ) element[ len ] = arguments[ len ];\n\n return removeElements.apply(void 0, [ elements ].concat( element ));\n };\n\n var hasWindow = null, windowAnimationFrame;\n\n if(Object.prototype.toString.call(elements) !== '[object Array]'){\n elements = [elements];\n }\n\n (function(temp){\n elements = [];\n temp.forEach(function(element){\n if(element === window){\n hasWindow = window;\n }else {\n self.add(element);\n }\n });\n }(elements));\n\n Object.defineProperties(this, {\n down: {\n get: function(){ return down; }\n },\n maxSpeed: {\n get: function(){ return maxSpeed; }\n },\n point: {\n get: function(){ return point; }\n },\n scrolling: {\n get: function(){ return scrolling; }\n }\n });\n\n var current = null, animationFrame;\n\n window.addEventListener('mousedown', onDown, false);\n window.addEventListener('touchstart', onDown, false);\n window.addEventListener('mouseup', onUp, false);\n window.addEventListener('touchend', onUp, false);\n\n /*\n IE does not trigger mouseup event when scrolling.\n It is a known issue that Microsoft won't fix.\n https://connect.microsoft.com/IE/feedback/details/783058/scrollbar-trigger-mousedown-but-not-mouseup\n IE supports pointer events instead\n */\n window.addEventListener('pointerup', onUp, false);\n\n window.addEventListener('mousemove', onMove, false);\n window.addEventListener('touchmove', onMove, false);\n\n window.addEventListener('mouseleave', onMouseOut, false);\n\n window.addEventListener('scroll', setScroll, true);\n\n function setScroll(e){\n\n for(var i=0; i rect.right - self.margin.right){\n scrollx = Math.ceil(\n Math.min(1, (point.x - rect.right) / self.margin.right + 1) * self.maxSpeed.right\n );\n }else {\n scrollx = 0;\n }\n\n if(point.y < rect.top + self.margin.top){\n scrolly = Math.floor(\n Math.max(-1, (point.y - rect.top) / self.margin.top - 1) * self.maxSpeed.top\n );\n }else if(point.y > rect.bottom - self.margin.bottom){\n scrolly = Math.ceil(\n Math.min(1, (point.y - rect.bottom) / self.margin.bottom + 1) * self.maxSpeed.bottom\n );\n }else {\n scrolly = 0;\n }\n\n if(self.syncMove()){\n /*\n Notes about mousemove event dispatch.\n screen(X/Y) should need to be updated.\n Some other properties might need to be set.\n Keep the syncMove option default false until all inconsistencies are taken care of.\n */\n dispatcher.dispatch(el, {\n pageX: point.pageX + scrollx,\n pageY: point.pageY + scrolly,\n clientX: point.x + scrollx,\n clientY: point.y + scrolly\n });\n }\n\n setTimeout(function (){\n\n if(scrolly){\n scrollY(el, scrolly);\n }\n\n if(scrollx){\n scrollX(el, scrollx);\n }\n\n });\n }\n\n function scrollY(el, amount){\n if(el === window){\n window.scrollTo(el.pageXOffset, el.pageYOffset + amount);\n }else {\n el.scrollTop += amount;\n }\n }\n\n function scrollX(el, amount){\n if(el === window){\n window.scrollTo(el.pageXOffset + amount, el.pageYOffset);\n }else {\n el.scrollLeft += amount;\n }\n }\n\n}\n\nfunction AutoScrollerFactory(element, options){\n return new AutoScroller(element, options);\n}\n\nfunction inside(point, el, rect){\n if(!rect){\n return pointInside(point, el);\n }else {\n return (point.y > rect.top && point.y < rect.bottom &&\n point.x > rect.left && point.x < rect.right);\n }\n}\n\n/*\ngit remote add origin https://github.com/hollowdoor/dom_autoscroller.git\ngit push -u origin master\n*/\n\nexport default AutoScrollerFactory;\n","import * as i0 from '@angular/core';\nimport { Injectable, Directive, EventEmitter, Optional, Inject, Input, Output, NgModule } from '@angular/core';\nimport { Subject, Observable, ReplaySubject, merge, combineLatest, fromEvent } from 'rxjs';\nimport { filter, mergeMap, startWith, map, share, takeUntil, take, takeLast, count, pairwise, distinctUntilChanged } from 'rxjs/operators';\nimport { DOCUMENT } from '@angular/common';\nimport autoScroll from '@mattlewis92/dom-autoscroller';\n\nfunction addClass(renderer, element, classToAdd) {\n if (classToAdd) {\n classToAdd\n .split(' ')\n .forEach((className) => renderer.addClass(element.nativeElement, className));\n }\n}\nfunction removeClass(renderer, element, classToRemove) {\n if (classToRemove) {\n classToRemove\n .split(' ')\n .forEach((className) => renderer.removeClass(element.nativeElement, className));\n }\n}\n\nclass DraggableHelper {\n constructor() {\n this.currentDrag = new Subject();\n }\n}\nDraggableHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DraggableHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nDraggableHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DraggableHelper, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DraggableHelper, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n }]\n }] });\n\n/**\n * If the window isn't scrollable, then place this on the scrollable container that draggable elements are inside. e.g.\n * ```html\n
\n
Drag me!
\n
\n ```\n */\nclass DraggableScrollContainerDirective {\n /**\n * @hidden\n */\n constructor(elementRef) {\n this.elementRef = elementRef;\n }\n}\nDraggableScrollContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DraggableScrollContainerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nDraggableScrollContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: DraggableScrollContainerDirective, selector: \"[mwlDraggableScrollContainer]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DraggableScrollContainerDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlDraggableScrollContainer]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\n\nclass DraggableDirective {\n /**\n * @hidden\n */\n constructor(element, renderer, draggableHelper, zone, vcr, scrollContainer, document) {\n this.element = element;\n this.renderer = renderer;\n this.draggableHelper = draggableHelper;\n this.zone = zone;\n this.vcr = vcr;\n this.scrollContainer = scrollContainer;\n this.document = document;\n /**\n * The axis along which the element is draggable\n */\n this.dragAxis = { x: true, y: true };\n /**\n * Snap all drags to an x / y grid\n */\n this.dragSnapGrid = {};\n /**\n * Show a ghost element that shows the drag when dragging\n */\n this.ghostDragEnabled = true;\n /**\n * Show the original element when ghostDragEnabled is true\n */\n this.showOriginalElementWhileDragging = false;\n /**\n * The cursor to use when hovering over a draggable element\n */\n this.dragCursor = '';\n /*\n * Options used to control the behaviour of auto scrolling: https://www.npmjs.com/package/dom-autoscroller\n */\n this.autoScroll = {\n margin: 20,\n };\n /**\n * Called when the element can be dragged along one axis and has the mouse or pointer device pressed on it\n */\n this.dragPointerDown = new EventEmitter();\n /**\n * Called when the element has started to be dragged.\n * Only called after at least one mouse or touch move event.\n * If you call $event.cancelDrag$.emit() it will cancel the current drag\n */\n this.dragStart = new EventEmitter();\n /**\n * Called after the ghost element has been created\n */\n this.ghostElementCreated = new EventEmitter();\n /**\n * Called when the element is being dragged\n */\n this.dragging = new EventEmitter();\n /**\n * Called after the element is dragged\n */\n this.dragEnd = new EventEmitter();\n /**\n * @hidden\n */\n this.pointerDown$ = new Subject();\n /**\n * @hidden\n */\n this.pointerMove$ = new Subject();\n /**\n * @hidden\n */\n this.pointerUp$ = new Subject();\n this.eventListenerSubscriptions = {};\n this.destroy$ = new Subject();\n this.timeLongPress = { timerBegin: 0, timerEnd: 0 };\n }\n ngOnInit() {\n this.checkEventListeners();\n const pointerDragged$ = this.pointerDown$.pipe(filter(() => this.canDrag()), mergeMap((pointerDownEvent) => {\n // fix for https://github.com/mattlewis92/angular-draggable-droppable/issues/61\n // stop mouse events propagating up the chain\n if (pointerDownEvent.event.stopPropagation && !this.scrollContainer) {\n pointerDownEvent.event.stopPropagation();\n }\n // hack to prevent text getting selected in safari while dragging\n const globalDragStyle = this.renderer.createElement('style');\n this.renderer.setAttribute(globalDragStyle, 'type', 'text/css');\n this.renderer.appendChild(globalDragStyle, this.renderer.createText(`\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n `));\n requestAnimationFrame(() => {\n this.document.head.appendChild(globalDragStyle);\n });\n const startScrollPosition = this.getScrollPosition();\n const scrollContainerScroll$ = new Observable((observer) => {\n const scrollContainer = this.scrollContainer\n ? this.scrollContainer.elementRef.nativeElement\n : 'window';\n return this.renderer.listen(scrollContainer, 'scroll', (e) => observer.next(e));\n }).pipe(startWith(startScrollPosition), map(() => this.getScrollPosition()));\n const currentDrag$ = new Subject();\n const cancelDrag$ = new ReplaySubject();\n if (this.dragPointerDown.observers.length > 0) {\n this.zone.run(() => {\n this.dragPointerDown.next({ x: 0, y: 0 });\n });\n }\n const dragComplete$ = merge(this.pointerUp$, this.pointerDown$, cancelDrag$, this.destroy$).pipe(share());\n const pointerMove = combineLatest([\n this.pointerMove$,\n scrollContainerScroll$,\n ]).pipe(map(([pointerMoveEvent, scroll]) => {\n return {\n currentDrag$,\n transformX: pointerMoveEvent.clientX - pointerDownEvent.clientX,\n transformY: pointerMoveEvent.clientY - pointerDownEvent.clientY,\n clientX: pointerMoveEvent.clientX,\n clientY: pointerMoveEvent.clientY,\n scrollLeft: scroll.left,\n scrollTop: scroll.top,\n target: pointerMoveEvent.event.target,\n };\n }), map((moveData) => {\n if (this.dragSnapGrid.x) {\n moveData.transformX =\n Math.round(moveData.transformX / this.dragSnapGrid.x) *\n this.dragSnapGrid.x;\n }\n if (this.dragSnapGrid.y) {\n moveData.transformY =\n Math.round(moveData.transformY / this.dragSnapGrid.y) *\n this.dragSnapGrid.y;\n }\n return moveData;\n }), map((moveData) => {\n if (!this.dragAxis.x) {\n moveData.transformX = 0;\n }\n if (!this.dragAxis.y) {\n moveData.transformY = 0;\n }\n return moveData;\n }), map((moveData) => {\n const scrollX = moveData.scrollLeft - startScrollPosition.left;\n const scrollY = moveData.scrollTop - startScrollPosition.top;\n return {\n ...moveData,\n x: moveData.transformX + scrollX,\n y: moveData.transformY + scrollY,\n };\n }), filter(({ x, y, transformX, transformY }) => !this.validateDrag ||\n this.validateDrag({\n x,\n y,\n transform: { x: transformX, y: transformY },\n })), takeUntil(dragComplete$), share());\n const dragStarted$ = pointerMove.pipe(take(1), share());\n const dragEnded$ = pointerMove.pipe(takeLast(1), share());\n dragStarted$.subscribe(({ clientX, clientY, x, y }) => {\n if (this.dragStart.observers.length > 0) {\n this.zone.run(() => {\n this.dragStart.next({ cancelDrag$ });\n });\n }\n this.scroller = autoScroll([\n this.scrollContainer\n ? this.scrollContainer.elementRef.nativeElement\n : this.document.defaultView,\n ], {\n ...this.autoScroll,\n autoScroll() {\n return true;\n },\n });\n addClass(this.renderer, this.element, this.dragActiveClass);\n if (this.ghostDragEnabled) {\n const rect = this.element.nativeElement.getBoundingClientRect();\n const clone = this.element.nativeElement.cloneNode(true);\n if (!this.showOriginalElementWhileDragging) {\n this.renderer.setStyle(this.element.nativeElement, 'visibility', 'hidden');\n }\n if (this.ghostElementAppendTo) {\n this.ghostElementAppendTo.appendChild(clone);\n }\n else {\n this.element.nativeElement.parentNode.insertBefore(clone, this.element.nativeElement.nextSibling);\n }\n this.ghostElement = clone;\n this.document.body.style.cursor = this.dragCursor;\n this.setElementStyles(clone, {\n position: 'fixed',\n top: `${rect.top}px`,\n left: `${rect.left}px`,\n width: `${rect.width}px`,\n height: `${rect.height}px`,\n cursor: this.dragCursor,\n margin: '0',\n willChange: 'transform',\n pointerEvents: 'none',\n });\n if (this.ghostElementTemplate) {\n const viewRef = this.vcr.createEmbeddedView(this.ghostElementTemplate);\n clone.innerHTML = '';\n viewRef.rootNodes\n .filter((node) => node instanceof Node)\n .forEach((node) => {\n clone.appendChild(node);\n });\n dragEnded$.subscribe(() => {\n this.vcr.remove(this.vcr.indexOf(viewRef));\n });\n }\n if (this.ghostElementCreated.observers.length > 0) {\n this.zone.run(() => {\n this.ghostElementCreated.emit({\n clientX: clientX - x,\n clientY: clientY - y,\n element: clone,\n });\n });\n }\n dragEnded$.subscribe(() => {\n clone.parentElement.removeChild(clone);\n this.ghostElement = null;\n this.renderer.setStyle(this.element.nativeElement, 'visibility', '');\n });\n }\n this.draggableHelper.currentDrag.next(currentDrag$);\n });\n dragEnded$\n .pipe(mergeMap((dragEndData) => {\n const dragEndData$ = cancelDrag$.pipe(count(), take(1), map((calledCount) => ({\n ...dragEndData,\n dragCancelled: calledCount > 0,\n })));\n cancelDrag$.complete();\n return dragEndData$;\n }))\n .subscribe(({ x, y, dragCancelled }) => {\n this.scroller.destroy();\n if (this.dragEnd.observers.length > 0) {\n this.zone.run(() => {\n this.dragEnd.next({ x, y, dragCancelled });\n });\n }\n removeClass(this.renderer, this.element, this.dragActiveClass);\n currentDrag$.complete();\n });\n merge(dragComplete$, dragEnded$)\n .pipe(take(1))\n .subscribe(() => {\n requestAnimationFrame(() => {\n this.document.head.removeChild(globalDragStyle);\n });\n });\n return pointerMove;\n }), share());\n merge(pointerDragged$.pipe(take(1), map((value) => [, value])), pointerDragged$.pipe(pairwise()))\n .pipe(filter(([previous, next]) => {\n if (!previous) {\n return true;\n }\n return previous.x !== next.x || previous.y !== next.y;\n }), map(([previous, next]) => next))\n .subscribe(({ x, y, currentDrag$, clientX, clientY, transformX, transformY, target, }) => {\n if (this.dragging.observers.length > 0) {\n this.zone.run(() => {\n this.dragging.next({ x, y });\n });\n }\n requestAnimationFrame(() => {\n if (this.ghostElement) {\n const transform = `translate3d(${transformX}px, ${transformY}px, 0px)`;\n this.setElementStyles(this.ghostElement, {\n transform,\n '-webkit-transform': transform,\n '-ms-transform': transform,\n '-moz-transform': transform,\n '-o-transform': transform,\n });\n }\n });\n currentDrag$.next({\n clientX,\n clientY,\n dropData: this.dropData,\n target,\n });\n });\n }\n ngOnChanges(changes) {\n if (changes.dragAxis) {\n this.checkEventListeners();\n }\n }\n ngOnDestroy() {\n this.unsubscribeEventListeners();\n this.pointerDown$.complete();\n this.pointerMove$.complete();\n this.pointerUp$.complete();\n this.destroy$.next();\n }\n checkEventListeners() {\n const canDrag = this.canDrag();\n const hasEventListeners = Object.keys(this.eventListenerSubscriptions).length > 0;\n if (canDrag && !hasEventListeners) {\n this.zone.runOutsideAngular(() => {\n this.eventListenerSubscriptions.mousedown = this.renderer.listen(this.element.nativeElement, 'mousedown', (event) => {\n this.onMouseDown(event);\n });\n this.eventListenerSubscriptions.mouseup = this.renderer.listen('document', 'mouseup', (event) => {\n this.onMouseUp(event);\n });\n this.eventListenerSubscriptions.touchstart = this.renderer.listen(this.element.nativeElement, 'touchstart', (event) => {\n this.onTouchStart(event);\n });\n this.eventListenerSubscriptions.touchend = this.renderer.listen('document', 'touchend', (event) => {\n this.onTouchEnd(event);\n });\n this.eventListenerSubscriptions.touchcancel = this.renderer.listen('document', 'touchcancel', (event) => {\n this.onTouchEnd(event);\n });\n this.eventListenerSubscriptions.mouseenter = this.renderer.listen(this.element.nativeElement, 'mouseenter', () => {\n this.onMouseEnter();\n });\n this.eventListenerSubscriptions.mouseleave = this.renderer.listen(this.element.nativeElement, 'mouseleave', () => {\n this.onMouseLeave();\n });\n });\n }\n else if (!canDrag && hasEventListeners) {\n this.unsubscribeEventListeners();\n }\n }\n onMouseDown(event) {\n if (event.button === 0) {\n if (!this.eventListenerSubscriptions.mousemove) {\n this.eventListenerSubscriptions.mousemove = this.renderer.listen('document', 'mousemove', (mouseMoveEvent) => {\n this.pointerMove$.next({\n event: mouseMoveEvent,\n clientX: mouseMoveEvent.clientX,\n clientY: mouseMoveEvent.clientY,\n });\n });\n }\n this.pointerDown$.next({\n event,\n clientX: event.clientX,\n clientY: event.clientY,\n });\n }\n }\n onMouseUp(event) {\n if (event.button === 0) {\n if (this.eventListenerSubscriptions.mousemove) {\n this.eventListenerSubscriptions.mousemove();\n delete this.eventListenerSubscriptions.mousemove;\n }\n this.pointerUp$.next({\n event,\n clientX: event.clientX,\n clientY: event.clientY,\n });\n }\n }\n onTouchStart(event) {\n let startScrollPosition;\n let isDragActivated;\n let hasContainerScrollbar;\n if (this.touchStartLongPress) {\n this.timeLongPress.timerBegin = Date.now();\n isDragActivated = false;\n hasContainerScrollbar = this.hasScrollbar();\n startScrollPosition = this.getScrollPosition();\n }\n if (!this.eventListenerSubscriptions.touchmove) {\n const contextMenuListener = fromEvent(this.document, 'contextmenu').subscribe((e) => {\n e.preventDefault();\n });\n const touchMoveListener = fromEvent(this.document, 'touchmove', {\n passive: false,\n }).subscribe((touchMoveEvent) => {\n if (this.touchStartLongPress &&\n !isDragActivated &&\n hasContainerScrollbar) {\n isDragActivated = this.shouldBeginDrag(event, touchMoveEvent, startScrollPosition);\n }\n if (!this.touchStartLongPress ||\n !hasContainerScrollbar ||\n isDragActivated) {\n touchMoveEvent.preventDefault();\n this.pointerMove$.next({\n event: touchMoveEvent,\n clientX: touchMoveEvent.targetTouches[0].clientX,\n clientY: touchMoveEvent.targetTouches[0].clientY,\n });\n }\n });\n this.eventListenerSubscriptions.touchmove = () => {\n contextMenuListener.unsubscribe();\n touchMoveListener.unsubscribe();\n };\n }\n this.pointerDown$.next({\n event,\n clientX: event.touches[0].clientX,\n clientY: event.touches[0].clientY,\n });\n }\n onTouchEnd(event) {\n if (this.eventListenerSubscriptions.touchmove) {\n this.eventListenerSubscriptions.touchmove();\n delete this.eventListenerSubscriptions.touchmove;\n if (this.touchStartLongPress) {\n this.enableScroll();\n }\n }\n this.pointerUp$.next({\n event,\n clientX: event.changedTouches[0].clientX,\n clientY: event.changedTouches[0].clientY,\n });\n }\n onMouseEnter() {\n this.setCursor(this.dragCursor);\n }\n onMouseLeave() {\n this.setCursor('');\n }\n canDrag() {\n return this.dragAxis.x || this.dragAxis.y;\n }\n setCursor(value) {\n if (!this.eventListenerSubscriptions.mousemove) {\n this.renderer.setStyle(this.element.nativeElement, 'cursor', value);\n }\n }\n unsubscribeEventListeners() {\n Object.keys(this.eventListenerSubscriptions).forEach((type) => {\n this.eventListenerSubscriptions[type]();\n delete this.eventListenerSubscriptions[type];\n });\n }\n setElementStyles(element, styles) {\n Object.keys(styles).forEach((key) => {\n this.renderer.setStyle(element, key, styles[key]);\n });\n }\n getScrollElement() {\n if (this.scrollContainer) {\n return this.scrollContainer.elementRef.nativeElement;\n }\n else {\n return this.document.body;\n }\n }\n getScrollPosition() {\n if (this.scrollContainer) {\n return {\n top: this.scrollContainer.elementRef.nativeElement.scrollTop,\n left: this.scrollContainer.elementRef.nativeElement.scrollLeft,\n };\n }\n else {\n return {\n top: window.pageYOffset || this.document.documentElement.scrollTop,\n left: window.pageXOffset || this.document.documentElement.scrollLeft,\n };\n }\n }\n shouldBeginDrag(event, touchMoveEvent, startScrollPosition) {\n const moveScrollPosition = this.getScrollPosition();\n const deltaScroll = {\n top: Math.abs(moveScrollPosition.top - startScrollPosition.top),\n left: Math.abs(moveScrollPosition.left - startScrollPosition.left),\n };\n const deltaX = Math.abs(touchMoveEvent.targetTouches[0].clientX - event.touches[0].clientX) - deltaScroll.left;\n const deltaY = Math.abs(touchMoveEvent.targetTouches[0].clientY - event.touches[0].clientY) - deltaScroll.top;\n const deltaTotal = deltaX + deltaY;\n const longPressConfig = this.touchStartLongPress;\n if (deltaTotal > longPressConfig.delta ||\n deltaScroll.top > 0 ||\n deltaScroll.left > 0) {\n this.timeLongPress.timerBegin = Date.now();\n }\n this.timeLongPress.timerEnd = Date.now();\n const duration = this.timeLongPress.timerEnd - this.timeLongPress.timerBegin;\n if (duration >= longPressConfig.delay) {\n this.disableScroll();\n return true;\n }\n return false;\n }\n enableScroll() {\n if (this.scrollContainer) {\n this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement, 'overflow', '');\n }\n this.renderer.setStyle(this.document.body, 'overflow', '');\n }\n disableScroll() {\n /* istanbul ignore next */\n if (this.scrollContainer) {\n this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement, 'overflow', 'hidden');\n }\n this.renderer.setStyle(this.document.body, 'overflow', 'hidden');\n }\n hasScrollbar() {\n const scrollContainer = this.getScrollElement();\n const containerHasHorizontalScroll = scrollContainer.scrollWidth > scrollContainer.clientWidth;\n const containerHasVerticalScroll = scrollContainer.scrollHeight > scrollContainer.clientHeight;\n return containerHasHorizontalScroll || containerHasVerticalScroll;\n }\n}\nDraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DraggableHelper }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: DraggableScrollContainerDirective, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nDraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: DraggableDirective, selector: \"[mwlDraggable]\", inputs: { dropData: \"dropData\", dragAxis: \"dragAxis\", dragSnapGrid: \"dragSnapGrid\", ghostDragEnabled: \"ghostDragEnabled\", showOriginalElementWhileDragging: \"showOriginalElementWhileDragging\", validateDrag: \"validateDrag\", dragCursor: \"dragCursor\", dragActiveClass: \"dragActiveClass\", ghostElementAppendTo: \"ghostElementAppendTo\", ghostElementTemplate: \"ghostElementTemplate\", touchStartLongPress: \"touchStartLongPress\", autoScroll: \"autoScroll\" }, outputs: { dragPointerDown: \"dragPointerDown\", dragStart: \"dragStart\", ghostElementCreated: \"ghostElementCreated\", dragging: \"dragging\", dragEnd: \"dragEnd\" }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DraggableDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlDraggable]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DraggableHelper }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: DraggableScrollContainerDirective, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }]; }, propDecorators: { dropData: [{\n type: Input\n }], dragAxis: [{\n type: Input\n }], dragSnapGrid: [{\n type: Input\n }], ghostDragEnabled: [{\n type: Input\n }], showOriginalElementWhileDragging: [{\n type: Input\n }], validateDrag: [{\n type: Input\n }], dragCursor: [{\n type: Input\n }], dragActiveClass: [{\n type: Input\n }], ghostElementAppendTo: [{\n type: Input\n }], ghostElementTemplate: [{\n type: Input\n }], touchStartLongPress: [{\n type: Input\n }], autoScroll: [{\n type: Input\n }], dragPointerDown: [{\n type: Output\n }], dragStart: [{\n type: Output\n }], ghostElementCreated: [{\n type: Output\n }], dragging: [{\n type: Output\n }], dragEnd: [{\n type: Output\n }] } });\n\nfunction isCoordinateWithinRectangle(clientX, clientY, rect) {\n return (clientX >= rect.left &&\n clientX <= rect.right &&\n clientY >= rect.top &&\n clientY <= rect.bottom);\n}\nclass DroppableDirective {\n constructor(element, draggableHelper, zone, renderer, scrollContainer) {\n this.element = element;\n this.draggableHelper = draggableHelper;\n this.zone = zone;\n this.renderer = renderer;\n this.scrollContainer = scrollContainer;\n /**\n * Called when a draggable element starts overlapping the element\n */\n this.dragEnter = new EventEmitter();\n /**\n * Called when a draggable element stops overlapping the element\n */\n this.dragLeave = new EventEmitter();\n /**\n * Called when a draggable element is moved over the element\n */\n this.dragOver = new EventEmitter();\n /**\n * Called when a draggable element is dropped on this element\n */\n this.drop = new EventEmitter(); // eslint-disable-line @angular-eslint/no-output-native\n }\n ngOnInit() {\n this.currentDragSubscription = this.draggableHelper.currentDrag.subscribe((drag$) => {\n addClass(this.renderer, this.element, this.dragActiveClass);\n const droppableElement = {\n updateCache: true,\n };\n const deregisterScrollListener = this.renderer.listen(this.scrollContainer\n ? this.scrollContainer.elementRef.nativeElement\n : 'window', 'scroll', () => {\n droppableElement.updateCache = true;\n });\n let currentDragEvent;\n const overlaps$ = drag$.pipe(map(({ clientX, clientY, dropData, target }) => {\n currentDragEvent = { clientX, clientY, dropData, target };\n if (droppableElement.updateCache) {\n droppableElement.rect =\n this.element.nativeElement.getBoundingClientRect();\n if (this.scrollContainer) {\n droppableElement.scrollContainerRect =\n this.scrollContainer.elementRef.nativeElement.getBoundingClientRect();\n }\n droppableElement.updateCache = false;\n }\n const isWithinElement = isCoordinateWithinRectangle(clientX, clientY, droppableElement.rect);\n const isDropAllowed = !this.validateDrop ||\n this.validateDrop({ clientX, clientY, target, dropData });\n if (droppableElement.scrollContainerRect) {\n return (isWithinElement &&\n isDropAllowed &&\n isCoordinateWithinRectangle(clientX, clientY, droppableElement.scrollContainerRect));\n }\n else {\n return isWithinElement && isDropAllowed;\n }\n }));\n const overlapsChanged$ = overlaps$.pipe(distinctUntilChanged());\n let dragOverActive; // TODO - see if there's a way of doing this via rxjs\n overlapsChanged$\n .pipe(filter((overlapsNow) => overlapsNow))\n .subscribe(() => {\n dragOverActive = true;\n addClass(this.renderer, this.element, this.dragOverClass);\n if (this.dragEnter.observers.length > 0) {\n this.zone.run(() => {\n this.dragEnter.next(currentDragEvent);\n });\n }\n });\n overlaps$.pipe(filter((overlapsNow) => overlapsNow)).subscribe(() => {\n if (this.dragOver.observers.length > 0) {\n this.zone.run(() => {\n this.dragOver.next(currentDragEvent);\n });\n }\n });\n overlapsChanged$\n .pipe(pairwise(), filter(([didOverlap, overlapsNow]) => didOverlap && !overlapsNow))\n .subscribe(() => {\n dragOverActive = false;\n removeClass(this.renderer, this.element, this.dragOverClass);\n if (this.dragLeave.observers.length > 0) {\n this.zone.run(() => {\n this.dragLeave.next(currentDragEvent);\n });\n }\n });\n drag$.subscribe({\n complete: () => {\n deregisterScrollListener();\n removeClass(this.renderer, this.element, this.dragActiveClass);\n if (dragOverActive) {\n removeClass(this.renderer, this.element, this.dragOverClass);\n if (this.drop.observers.length > 0) {\n this.zone.run(() => {\n this.drop.next(currentDragEvent);\n });\n }\n }\n },\n });\n });\n }\n ngOnDestroy() {\n if (this.currentDragSubscription) {\n this.currentDragSubscription.unsubscribe();\n }\n }\n}\nDroppableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DroppableDirective, deps: [{ token: i0.ElementRef }, { token: DraggableHelper }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: DraggableScrollContainerDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nDroppableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: DroppableDirective, selector: \"[mwlDroppable]\", inputs: { dragOverClass: \"dragOverClass\", dragActiveClass: \"dragActiveClass\", validateDrop: \"validateDrop\" }, outputs: { dragEnter: \"dragEnter\", dragLeave: \"dragLeave\", dragOver: \"dragOver\", drop: \"drop\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DroppableDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlDroppable]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DraggableHelper }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: DraggableScrollContainerDirective, decorators: [{\n type: Optional\n }] }]; }, propDecorators: { dragOverClass: [{\n type: Input\n }], dragActiveClass: [{\n type: Input\n }], validateDrop: [{\n type: Input\n }], dragEnter: [{\n type: Output\n }], dragLeave: [{\n type: Output\n }], dragOver: [{\n type: Output\n }], drop: [{\n type: Output\n }] } });\n\nclass DragAndDropModule {\n}\nDragAndDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DragAndDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nDragAndDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: DragAndDropModule, declarations: [DraggableDirective,\n DroppableDirective,\n DraggableScrollContainerDirective], exports: [DraggableDirective,\n DroppableDirective,\n DraggableScrollContainerDirective] });\nDragAndDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DragAndDropModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: DragAndDropModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [\n DraggableDirective,\n DroppableDirective,\n DraggableScrollContainerDirective,\n ],\n exports: [\n DraggableDirective,\n DroppableDirective,\n DraggableScrollContainerDirective,\n ],\n }]\n }] });\n\n/*\n * Public API Surface of angular-draggable-droppable\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DragAndDropModule, DraggableDirective, DraggableScrollContainerDirective, DroppableDirective };\n//# sourceMappingURL=angular-draggable-droppable.mjs.map\n","import * as i0 from '@angular/core';\nimport { EventEmitter, PLATFORM_ID, Directive, Inject, Input, Output, Optional, NgModule } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Subject, merge, Observable, fromEvent } from 'rxjs';\nimport { tap, share, mergeMap, take, map, pairwise, filter, takeUntil } from 'rxjs/operators';\n\n/**\n * @hidden\n */\nconst IS_TOUCH_DEVICE = (() => {\n // In case we're in Node.js environment.\n if (typeof window === 'undefined') {\n return false;\n }\n else {\n return ('ontouchstart' in window ||\n navigator.maxTouchPoints > 0 ||\n navigator.msMaxTouchPoints >\n 0);\n }\n})();\n\n/** Creates a deep clone of an element. */\nfunction deepCloneNode(node) {\n const clone = node.cloneNode(true);\n const descendantsWithId = clone.querySelectorAll('[id]');\n const nodeName = node.nodeName.toLowerCase();\n // Remove the `id` to avoid having multiple elements with the same id on the page.\n clone.removeAttribute('id');\n descendantsWithId.forEach((descendant) => {\n descendant.removeAttribute('id');\n });\n if (nodeName === 'canvas') {\n transferCanvasData(node, clone);\n }\n else if (nodeName === 'input' ||\n nodeName === 'select' ||\n nodeName === 'textarea') {\n transferInputData(node, clone);\n }\n transferData('canvas', node, clone, transferCanvasData);\n transferData('input, textarea, select', node, clone, transferInputData);\n return clone;\n}\n/** Matches elements between an element and its clone and allows for their data to be cloned. */\nfunction transferData(selector, node, clone, callback) {\n const descendantElements = node.querySelectorAll(selector);\n if (descendantElements.length) {\n const cloneElements = clone.querySelectorAll(selector);\n for (let i = 0; i < descendantElements.length; i++) {\n callback(descendantElements[i], cloneElements[i]);\n }\n }\n}\n// Counter for unique cloned radio button names.\nlet cloneUniqueId = 0;\n/** Transfers the data of one input element to another. */\nfunction transferInputData(source, clone) {\n // Browsers throw an error when assigning the value of a file input programmatically.\n if (clone.type !== 'file') {\n clone.value = source.value;\n }\n // Radio button `name` attributes must be unique for radio button groups\n // otherwise original radio buttons can lose their checked state\n // once the clone is inserted in the DOM.\n if (clone.type === 'radio' && clone.name) {\n clone.name = `mat-clone-${clone.name}-${cloneUniqueId++}`;\n }\n}\n/** Transfers the data of one canvas element to another. */\nfunction transferCanvasData(source, clone) {\n const context = clone.getContext('2d');\n if (context) {\n // In some cases `drawImage` can throw (e.g. if the canvas size is 0x0).\n // We can't do much about it so just ignore the error.\n try {\n context.drawImage(source, 0, 0);\n }\n catch { }\n }\n}\n\nfunction getNewBoundingRectangle(startingRect, edges, clientX, clientY) {\n const newBoundingRect = {\n top: startingRect.top,\n bottom: startingRect.bottom,\n left: startingRect.left,\n right: startingRect.right,\n };\n if (edges.top) {\n newBoundingRect.top += clientY;\n }\n if (edges.bottom) {\n newBoundingRect.bottom += clientY;\n }\n if (edges.left) {\n newBoundingRect.left += clientX;\n }\n if (edges.right) {\n newBoundingRect.right += clientX;\n }\n newBoundingRect.height = newBoundingRect.bottom - newBoundingRect.top;\n newBoundingRect.width = newBoundingRect.right - newBoundingRect.left;\n return newBoundingRect;\n}\nfunction getElementRect(element, ghostElementPositioning) {\n let translateX = 0;\n let translateY = 0;\n const style = element.nativeElement.style;\n const transformProperties = [\n 'transform',\n '-ms-transform',\n '-moz-transform',\n '-o-transform',\n ];\n const transform = transformProperties\n .map((property) => style[property])\n .find((value) => !!value);\n if (transform && transform.includes('translate')) {\n translateX = transform.replace(/.*translate3?d?\\((-?[0-9]*)px, (-?[0-9]*)px.*/, '$1');\n translateY = transform.replace(/.*translate3?d?\\((-?[0-9]*)px, (-?[0-9]*)px.*/, '$2');\n }\n if (ghostElementPositioning === 'absolute') {\n return {\n height: element.nativeElement.offsetHeight,\n width: element.nativeElement.offsetWidth,\n top: element.nativeElement.offsetTop - translateY,\n bottom: element.nativeElement.offsetHeight +\n element.nativeElement.offsetTop -\n translateY,\n left: element.nativeElement.offsetLeft - translateX,\n right: element.nativeElement.offsetWidth +\n element.nativeElement.offsetLeft -\n translateX,\n };\n }\n else {\n const boundingRect = element.nativeElement.getBoundingClientRect();\n return {\n height: boundingRect.height,\n width: boundingRect.width,\n top: boundingRect.top - translateY,\n bottom: boundingRect.bottom - translateY,\n left: boundingRect.left - translateX,\n right: boundingRect.right - translateX,\n scrollTop: element.nativeElement.scrollTop,\n scrollLeft: element.nativeElement.scrollLeft,\n };\n }\n}\nconst DEFAULT_RESIZE_CURSORS = Object.freeze({\n topLeft: 'nw-resize',\n topRight: 'ne-resize',\n bottomLeft: 'sw-resize',\n bottomRight: 'se-resize',\n leftOrRight: 'col-resize',\n topOrBottom: 'row-resize',\n});\nfunction getResizeCursor(edges, cursors) {\n if (edges.left && edges.top) {\n return cursors.topLeft;\n }\n else if (edges.right && edges.top) {\n return cursors.topRight;\n }\n else if (edges.left && edges.bottom) {\n return cursors.bottomLeft;\n }\n else if (edges.right && edges.bottom) {\n return cursors.bottomRight;\n }\n else if (edges.left || edges.right) {\n return cursors.leftOrRight;\n }\n else if (edges.top || edges.bottom) {\n return cursors.topOrBottom;\n }\n else {\n return '';\n }\n}\nfunction getEdgesDiff({ edges, initialRectangle, newRectangle, }) {\n const edgesDiff = {};\n Object.keys(edges).forEach((edge) => {\n edgesDiff[edge] = (newRectangle[edge] || 0) - (initialRectangle[edge] || 0);\n });\n return edgesDiff;\n}\nconst RESIZE_ACTIVE_CLASS = 'resize-active';\nconst RESIZE_GHOST_ELEMENT_CLASS = 'resize-ghost-element';\nconst MOUSE_MOVE_THROTTLE_MS = 50;\n/**\n * Place this on an element to make it resizable. For example:\n *\n * ```html\n * \n * \n * ```\n * Or in case they are sibling elements:\n * ```html\n *
\n *
\n * ```\n */\nclass ResizableDirective {\n /**\n * @hidden\n */\n constructor(platformId, renderer, elm, zone) {\n this.platformId = platformId;\n this.renderer = renderer;\n this.elm = elm;\n this.zone = zone;\n /**\n * Set to `true` to enable a temporary resizing effect of the element in between the `resizeStart` and `resizeEnd` events.\n */\n this.enableGhostResize = false;\n /**\n * A snap grid that resize events will be locked to.\n *\n * e.g. to only allow the element to be resized every 10px set it to `{left: 10, right: 10}`\n */\n this.resizeSnapGrid = {};\n /**\n * The mouse cursors that will be set on the resize edges\n */\n this.resizeCursors = DEFAULT_RESIZE_CURSORS;\n /**\n * Define the positioning of the ghost element (can be fixed or absolute)\n */\n this.ghostElementPositioning = 'fixed';\n /**\n * Allow elements to be resized to negative dimensions\n */\n this.allowNegativeResizes = false;\n /**\n * The mouse move throttle in milliseconds, default: 50 ms\n */\n this.mouseMoveThrottleMS = MOUSE_MOVE_THROTTLE_MS;\n /**\n * Called when the mouse is pressed and a resize event is about to begin. `$event` is a `ResizeEvent` object.\n */\n this.resizeStart = new EventEmitter();\n /**\n * Called as the mouse is dragged after a resize event has begun. `$event` is a `ResizeEvent` object.\n */\n this.resizing = new EventEmitter();\n /**\n * Called after the mouse is released after a resize event. `$event` is a `ResizeEvent` object.\n */\n this.resizeEnd = new EventEmitter();\n /**\n * @hidden\n */\n this.mouseup = new Subject();\n /**\n * @hidden\n */\n this.mousedown = new Subject();\n /**\n * @hidden\n */\n this.mousemove = new Subject();\n this.destroy$ = new Subject();\n this.pointerEventListeners = PointerEventListeners.getInstance(renderer, zone);\n }\n /**\n * @hidden\n */\n ngOnInit() {\n const mousedown$ = merge(this.pointerEventListeners.pointerDown, this.mousedown);\n const mousemove$ = merge(this.pointerEventListeners.pointerMove, this.mousemove).pipe(tap(({ event }) => {\n if (currentResize && event.cancelable) {\n event.preventDefault();\n }\n }), share());\n const mouseup$ = merge(this.pointerEventListeners.pointerUp, this.mouseup);\n let currentResize;\n const removeGhostElement = () => {\n if (currentResize && currentResize.clonedNode) {\n this.elm.nativeElement.parentElement.removeChild(currentResize.clonedNode);\n this.renderer.setStyle(this.elm.nativeElement, 'visibility', 'inherit');\n }\n };\n const getResizeCursors = () => {\n return {\n ...DEFAULT_RESIZE_CURSORS,\n ...this.resizeCursors,\n };\n };\n const mousedrag = mousedown$\n .pipe(mergeMap((startCoords) => {\n function getDiff(moveCoords) {\n return {\n clientX: moveCoords.clientX - startCoords.clientX,\n clientY: moveCoords.clientY - startCoords.clientY,\n };\n }\n const getSnapGrid = () => {\n const snapGrid = { x: 1, y: 1 };\n if (currentResize) {\n if (this.resizeSnapGrid.left && currentResize.edges.left) {\n snapGrid.x = +this.resizeSnapGrid.left;\n }\n else if (this.resizeSnapGrid.right &&\n currentResize.edges.right) {\n snapGrid.x = +this.resizeSnapGrid.right;\n }\n if (this.resizeSnapGrid.top && currentResize.edges.top) {\n snapGrid.y = +this.resizeSnapGrid.top;\n }\n else if (this.resizeSnapGrid.bottom &&\n currentResize.edges.bottom) {\n snapGrid.y = +this.resizeSnapGrid.bottom;\n }\n }\n return snapGrid;\n };\n function getGrid(coords, snapGrid) {\n return {\n x: Math.ceil(coords.clientX / snapGrid.x),\n y: Math.ceil(coords.clientY / snapGrid.y),\n };\n }\n return merge(mousemove$.pipe(take(1)).pipe(map((coords) => [, coords])), mousemove$.pipe(pairwise()))\n .pipe(map(([previousCoords, newCoords]) => {\n return [\n previousCoords ? getDiff(previousCoords) : previousCoords,\n getDiff(newCoords),\n ];\n }))\n .pipe(filter(([previousCoords, newCoords]) => {\n if (!previousCoords) {\n return true;\n }\n const snapGrid = getSnapGrid();\n const previousGrid = getGrid(previousCoords, snapGrid);\n const newGrid = getGrid(newCoords, snapGrid);\n return (previousGrid.x !== newGrid.x || previousGrid.y !== newGrid.y);\n }))\n .pipe(map(([, newCoords]) => {\n const snapGrid = getSnapGrid();\n return {\n clientX: Math.round(newCoords.clientX / snapGrid.x) * snapGrid.x,\n clientY: Math.round(newCoords.clientY / snapGrid.y) * snapGrid.y,\n };\n }))\n .pipe(takeUntil(merge(mouseup$, mousedown$)));\n }))\n .pipe(filter(() => !!currentResize));\n mousedrag\n .pipe(map(({ clientX, clientY }) => {\n return getNewBoundingRectangle(currentResize.startingRect, currentResize.edges, clientX, clientY);\n }))\n .pipe(filter((newBoundingRect) => {\n return (this.allowNegativeResizes ||\n !!(newBoundingRect.height &&\n newBoundingRect.width &&\n newBoundingRect.height > 0 &&\n newBoundingRect.width > 0));\n }))\n .pipe(filter((newBoundingRect) => {\n return this.validateResize\n ? this.validateResize({\n rectangle: newBoundingRect,\n edges: getEdgesDiff({\n edges: currentResize.edges,\n initialRectangle: currentResize.startingRect,\n newRectangle: newBoundingRect,\n }),\n })\n : true;\n }), takeUntil(this.destroy$))\n .subscribe((newBoundingRect) => {\n if (currentResize && currentResize.clonedNode) {\n this.renderer.setStyle(currentResize.clonedNode, 'height', `${newBoundingRect.height}px`);\n this.renderer.setStyle(currentResize.clonedNode, 'width', `${newBoundingRect.width}px`);\n this.renderer.setStyle(currentResize.clonedNode, 'top', `${newBoundingRect.top}px`);\n this.renderer.setStyle(currentResize.clonedNode, 'left', `${newBoundingRect.left}px`);\n }\n if (this.resizing.observers.length > 0) {\n this.zone.run(() => {\n this.resizing.emit({\n edges: getEdgesDiff({\n edges: currentResize.edges,\n initialRectangle: currentResize.startingRect,\n newRectangle: newBoundingRect,\n }),\n rectangle: newBoundingRect,\n });\n });\n }\n currentResize.currentRect = newBoundingRect;\n });\n mousedown$\n .pipe(map(({ edges }) => {\n return edges || {};\n }), filter((edges) => {\n return Object.keys(edges).length > 0;\n }), takeUntil(this.destroy$))\n .subscribe((edges) => {\n if (currentResize) {\n removeGhostElement();\n }\n const startingRect = getElementRect(this.elm, this.ghostElementPositioning);\n currentResize = {\n edges,\n startingRect,\n currentRect: startingRect,\n };\n const resizeCursors = getResizeCursors();\n const cursor = getResizeCursor(currentResize.edges, resizeCursors);\n this.renderer.setStyle(document.body, 'cursor', cursor);\n this.setElementClass(this.elm, RESIZE_ACTIVE_CLASS, true);\n if (this.enableGhostResize) {\n currentResize.clonedNode = deepCloneNode(this.elm.nativeElement);\n this.elm.nativeElement.parentElement.appendChild(currentResize.clonedNode);\n this.renderer.setStyle(this.elm.nativeElement, 'visibility', 'hidden');\n this.renderer.setStyle(currentResize.clonedNode, 'position', this.ghostElementPositioning);\n this.renderer.setStyle(currentResize.clonedNode, 'left', `${currentResize.startingRect.left}px`);\n this.renderer.setStyle(currentResize.clonedNode, 'top', `${currentResize.startingRect.top}px`);\n this.renderer.setStyle(currentResize.clonedNode, 'height', `${currentResize.startingRect.height}px`);\n this.renderer.setStyle(currentResize.clonedNode, 'width', `${currentResize.startingRect.width}px`);\n this.renderer.setStyle(currentResize.clonedNode, 'cursor', getResizeCursor(currentResize.edges, resizeCursors));\n this.renderer.addClass(currentResize.clonedNode, RESIZE_GHOST_ELEMENT_CLASS);\n currentResize.clonedNode.scrollTop = currentResize.startingRect\n .scrollTop;\n currentResize.clonedNode.scrollLeft = currentResize.startingRect\n .scrollLeft;\n }\n if (this.resizeStart.observers.length > 0) {\n this.zone.run(() => {\n this.resizeStart.emit({\n edges: getEdgesDiff({\n edges,\n initialRectangle: startingRect,\n newRectangle: startingRect,\n }),\n rectangle: getNewBoundingRectangle(startingRect, {}, 0, 0),\n });\n });\n }\n });\n mouseup$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n if (currentResize) {\n this.renderer.removeClass(this.elm.nativeElement, RESIZE_ACTIVE_CLASS);\n this.renderer.setStyle(document.body, 'cursor', '');\n this.renderer.setStyle(this.elm.nativeElement, 'cursor', '');\n if (this.resizeEnd.observers.length > 0) {\n this.zone.run(() => {\n this.resizeEnd.emit({\n edges: getEdgesDiff({\n edges: currentResize.edges,\n initialRectangle: currentResize.startingRect,\n newRectangle: currentResize.currentRect,\n }),\n rectangle: currentResize.currentRect,\n });\n });\n }\n removeGhostElement();\n currentResize = null;\n }\n });\n }\n /**\n * @hidden\n */\n ngOnDestroy() {\n // browser check for angular universal, because it doesn't know what document is\n if (isPlatformBrowser(this.platformId)) {\n this.renderer.setStyle(document.body, 'cursor', '');\n }\n this.mousedown.complete();\n this.mouseup.complete();\n this.mousemove.complete();\n this.destroy$.next();\n }\n setElementClass(elm, name, add) {\n if (add) {\n this.renderer.addClass(elm.nativeElement, name);\n }\n else {\n this.renderer.removeClass(elm.nativeElement, name);\n }\n }\n}\nResizableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizableDirective, deps: [{ token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });\nResizableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: ResizableDirective, selector: \"[mwlResizable]\", inputs: { validateResize: \"validateResize\", enableGhostResize: \"enableGhostResize\", resizeSnapGrid: \"resizeSnapGrid\", resizeCursors: \"resizeCursors\", ghostElementPositioning: \"ghostElementPositioning\", allowNegativeResizes: \"allowNegativeResizes\", mouseMoveThrottleMS: \"mouseMoveThrottleMS\" }, outputs: { resizeStart: \"resizeStart\", resizing: \"resizing\", resizeEnd: \"resizeEnd\" }, exportAs: [\"mwlResizable\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizableDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlResizable]',\n exportAs: 'mwlResizable',\n }]\n }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { validateResize: [{\n type: Input\n }], enableGhostResize: [{\n type: Input\n }], resizeSnapGrid: [{\n type: Input\n }], resizeCursors: [{\n type: Input\n }], ghostElementPositioning: [{\n type: Input\n }], allowNegativeResizes: [{\n type: Input\n }], mouseMoveThrottleMS: [{\n type: Input\n }], resizeStart: [{\n type: Output\n }], resizing: [{\n type: Output\n }], resizeEnd: [{\n type: Output\n }] } });\nclass PointerEventListeners {\n constructor(renderer, zone) {\n this.pointerDown = new Observable((observer) => {\n let unsubscribeMouseDown;\n let unsubscribeTouchStart;\n zone.runOutsideAngular(() => {\n unsubscribeMouseDown = renderer.listen('document', 'mousedown', (event) => {\n observer.next({\n clientX: event.clientX,\n clientY: event.clientY,\n event,\n });\n });\n if (IS_TOUCH_DEVICE) {\n unsubscribeTouchStart = renderer.listen('document', 'touchstart', (event) => {\n observer.next({\n clientX: event.touches[0].clientX,\n clientY: event.touches[0].clientY,\n event,\n });\n });\n }\n });\n return () => {\n unsubscribeMouseDown();\n if (IS_TOUCH_DEVICE) {\n unsubscribeTouchStart();\n }\n };\n }).pipe(share());\n this.pointerMove = new Observable((observer) => {\n let unsubscribeMouseMove;\n let unsubscribeTouchMove;\n zone.runOutsideAngular(() => {\n unsubscribeMouseMove = renderer.listen('document', 'mousemove', (event) => {\n observer.next({\n clientX: event.clientX,\n clientY: event.clientY,\n event,\n });\n });\n if (IS_TOUCH_DEVICE) {\n unsubscribeTouchMove = renderer.listen('document', 'touchmove', (event) => {\n observer.next({\n clientX: event.targetTouches[0].clientX,\n clientY: event.targetTouches[0].clientY,\n event,\n });\n });\n }\n });\n return () => {\n unsubscribeMouseMove();\n if (IS_TOUCH_DEVICE) {\n unsubscribeTouchMove();\n }\n };\n }).pipe(share());\n this.pointerUp = new Observable((observer) => {\n let unsubscribeMouseUp;\n let unsubscribeTouchEnd;\n let unsubscribeTouchCancel;\n zone.runOutsideAngular(() => {\n unsubscribeMouseUp = renderer.listen('document', 'mouseup', (event) => {\n observer.next({\n clientX: event.clientX,\n clientY: event.clientY,\n event,\n });\n });\n if (IS_TOUCH_DEVICE) {\n unsubscribeTouchEnd = renderer.listen('document', 'touchend', (event) => {\n observer.next({\n clientX: event.changedTouches[0].clientX,\n clientY: event.changedTouches[0].clientY,\n event,\n });\n });\n unsubscribeTouchCancel = renderer.listen('document', 'touchcancel', (event) => {\n observer.next({\n clientX: event.changedTouches[0].clientX,\n clientY: event.changedTouches[0].clientY,\n event,\n });\n });\n }\n });\n return () => {\n unsubscribeMouseUp();\n if (IS_TOUCH_DEVICE) {\n unsubscribeTouchEnd();\n unsubscribeTouchCancel();\n }\n };\n }).pipe(share());\n }\n static getInstance(renderer, zone) {\n if (!PointerEventListeners.instance) {\n PointerEventListeners.instance = new PointerEventListeners(renderer, zone);\n }\n return PointerEventListeners.instance;\n }\n}\n\n/**\n * An element placed inside a `mwlResizable` directive to be used as a drag and resize handle\n *\n * For example\n *\n * ```html\n *
\n *
\n *
\n * ```\n * Or in case they are sibling elements:\n * ```html\n *
\n *
\n * ```\n */\nclass ResizeHandleDirective {\n constructor(renderer, element, zone, resizableDirective) {\n this.renderer = renderer;\n this.element = element;\n this.zone = zone;\n this.resizableDirective = resizableDirective;\n /**\n * The `Edges` object that contains the edges of the parent element that dragging the handle will trigger a resize on\n */\n this.resizeEdges = {};\n this.eventListeners = {};\n this.destroy$ = new Subject();\n }\n ngOnInit() {\n this.zone.runOutsideAngular(() => {\n this.listenOnTheHost('mousedown').subscribe((event) => {\n this.onMousedown(event, event.clientX, event.clientY);\n });\n this.listenOnTheHost('mouseup').subscribe((event) => {\n this.onMouseup(event.clientX, event.clientY);\n });\n if (IS_TOUCH_DEVICE) {\n this.listenOnTheHost('touchstart').subscribe((event) => {\n this.onMousedown(event, event.touches[0].clientX, event.touches[0].clientY);\n });\n merge(this.listenOnTheHost('touchend'), this.listenOnTheHost('touchcancel')).subscribe((event) => {\n this.onMouseup(event.changedTouches[0].clientX, event.changedTouches[0].clientY);\n });\n }\n });\n }\n ngOnDestroy() {\n this.destroy$.next();\n this.unsubscribeEventListeners();\n }\n /**\n * @hidden\n */\n onMousedown(event, clientX, clientY) {\n if (event.cancelable) {\n event.preventDefault();\n }\n if (!this.eventListeners.touchmove) {\n this.eventListeners.touchmove = this.renderer.listen(this.element.nativeElement, 'touchmove', (touchMoveEvent) => {\n this.onMousemove(touchMoveEvent, touchMoveEvent.targetTouches[0].clientX, touchMoveEvent.targetTouches[0].clientY);\n });\n }\n if (!this.eventListeners.mousemove) {\n this.eventListeners.mousemove = this.renderer.listen(this.element.nativeElement, 'mousemove', (mouseMoveEvent) => {\n this.onMousemove(mouseMoveEvent, mouseMoveEvent.clientX, mouseMoveEvent.clientY);\n });\n }\n this.resizable.mousedown.next({\n clientX,\n clientY,\n edges: this.resizeEdges,\n });\n }\n /**\n * @hidden\n */\n onMouseup(clientX, clientY) {\n this.unsubscribeEventListeners();\n this.resizable.mouseup.next({\n clientX,\n clientY,\n edges: this.resizeEdges,\n });\n }\n // directive might be passed from DI or as an input\n get resizable() {\n return this.resizableDirective || this.resizableContainer;\n }\n onMousemove(event, clientX, clientY) {\n this.resizable.mousemove.next({\n clientX,\n clientY,\n edges: this.resizeEdges,\n event,\n });\n }\n unsubscribeEventListeners() {\n Object.keys(this.eventListeners).forEach((type) => {\n this.eventListeners[type]();\n delete this.eventListeners[type];\n });\n }\n listenOnTheHost(eventName) {\n return fromEvent(this.element.nativeElement, eventName).pipe(takeUntil(this.destroy$));\n }\n}\nResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: ResizableDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: ResizeHandleDirective, selector: \"[mwlResizeHandle]\", inputs: { resizeEdges: \"resizeEdges\", resizableContainer: \"resizableContainer\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizeHandleDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlResizeHandle]',\n }]\n }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: ResizableDirective, decorators: [{\n type: Optional\n }] }]; }, propDecorators: { resizeEdges: [{\n type: Input\n }], resizableContainer: [{\n type: Input\n }] } });\n\nclass ResizableModule {\n}\nResizableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nResizableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizableModule, declarations: [ResizableDirective, ResizeHandleDirective], exports: [ResizableDirective, ResizeHandleDirective] });\nResizableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizableModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ResizableModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [ResizableDirective, ResizeHandleDirective],\n exports: [ResizableDirective, ResizeHandleDirective],\n }]\n }] });\n\n/*\n * Public API Surface of angular-resizable-element\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ResizableDirective, ResizableModule, ResizeHandleDirective };\n//# sourceMappingURL=angular-resizable-element.mjs.map\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Directive, Inject, Input, Output, Injectable, LOCALE_ID, Pipe, Component, HostListener, InjectionToken, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { DOCUMENT, formatDate, CommonModule, I18nPluralPipe } from '@angular/common';\nimport { Subject, Observable, of, timer, BehaviorSubject, interval } from 'rxjs';\nimport { takeUntil, switchMap, startWith, switchMapTo, map } from 'rxjs/operators';\nimport { positionElements } from 'positioning';\nimport { validateEvents as validateEvents$1, getMonthView, getWeekViewHeader, getWeekView } from 'calendar-utils';\nexport { DAYS_OF_WEEK } from 'calendar-utils';\nimport * as i2 from 'angular-draggable-droppable';\nimport { DragAndDropModule } from 'angular-draggable-droppable';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i4 from 'angular-resizable-element';\nimport { ResizableModule } from 'angular-resizable-element';\n\nclass ClickDirective {\n constructor(renderer, elm, document) {\n this.renderer = renderer;\n this.elm = elm;\n this.document = document;\n this.clickListenerDisabled = false;\n this.click = new EventEmitter(); // eslint-disable-line\n this.destroy$ = new Subject();\n }\n ngOnInit() {\n if (!this.clickListenerDisabled) {\n this.listen()\n .pipe(takeUntil(this.destroy$))\n .subscribe((event) => {\n event.stopPropagation();\n this.click.emit(event);\n });\n }\n }\n ngOnDestroy() {\n this.destroy$.next();\n }\n listen() {\n return new Observable((observer) => {\n return this.renderer.listen(this.elm.nativeElement, 'click', (event) => {\n observer.next(event);\n });\n });\n }\n}\nClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ClickDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: ClickDirective, selector: \"[mwlClick]\", inputs: { clickListenerDisabled: \"clickListenerDisabled\" }, outputs: { click: \"mwlClick\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: ClickDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlClick]',\n }]\n }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }]; }, propDecorators: { clickListenerDisabled: [{\n type: Input\n }], click: [{\n type: Output,\n args: ['mwlClick']\n }] } });\n\nclass KeydownEnterDirective {\n constructor(host, ngZone, renderer) {\n this.host = host;\n this.ngZone = ngZone;\n this.renderer = renderer;\n this.keydown = new EventEmitter(); // eslint-disable-line\n this.keydownListener = null;\n }\n ngOnInit() {\n this.ngZone.runOutsideAngular(() => {\n this.keydownListener = this.renderer.listen(this.host.nativeElement, 'keydown', (event) => {\n if (event.keyCode === 13 ||\n event.which === 13 ||\n event.key === 'Enter') {\n event.preventDefault();\n event.stopPropagation();\n this.ngZone.run(() => {\n this.keydown.emit(event);\n });\n }\n });\n });\n }\n ngOnDestroy() {\n if (this.keydownListener !== null) {\n this.keydownListener();\n this.keydownListener = null;\n }\n }\n}\nKeydownEnterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: KeydownEnterDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });\nKeydownEnterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: KeydownEnterDirective, selector: \"[mwlKeydownEnter]\", outputs: { keydown: \"mwlKeydownEnter\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: KeydownEnterDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlKeydownEnter]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { keydown: [{\n type: Output,\n args: ['mwlKeydownEnter']\n }] } });\n\n/**\n * This class is responsible for adding accessibility to the calendar.\n * You may override any of its methods via angulars DI to suit your requirements.\n * For example:\n *\n * ```typescript\n * import { A11yParams, CalendarA11y } from 'angular-calendar';\n * import { formatDate, I18nPluralPipe } from '@angular/common';\n * import { Injectable } from '@angular/core';\n *\n * // adding your own a11y params\n * export interface CustomA11yParams extends A11yParams {\n * isDrSuess?: boolean;\n * }\n *\n * @Injectable()\n * export class CustomCalendarA11y extends CalendarA11y {\n * constructor(protected i18nPlural: I18nPluralPipe) {\n * super(i18nPlural);\n * }\n *\n * // overriding a function\n * public openDayEventsLandmark({ date, locale, isDrSuess }: CustomA11yParams): string {\n * if (isDrSuess) {\n * return `\n * ${formatDate(date, 'EEEE MMMM d', locale)}\n * Today you are you! That is truer than true! There is no one alive\n * who is you-er than you!\n * `;\n * }\n * }\n * }\n *\n * // in your component that uses the calendar\n * providers: [{\n * provide: CalendarA11y,\n * useClass: CustomCalendarA11y\n * }]\n * ```\n */\nclass CalendarA11y {\n constructor(i18nPlural) {\n this.i18nPlural = i18nPlural;\n }\n /**\n * Aria label for the badges/date of a cell\n * @example: `Saturday October 19 1 event click to expand`\n */\n monthCell({ day, locale }) {\n if (day.badgeTotal > 0) {\n return `\n ${formatDate(day.date, 'EEEE MMMM d', locale)},\n ${this.i18nPlural.transform(day.badgeTotal, {\n '=0': 'No events',\n '=1': 'One event',\n other: '# events',\n })},\n click to expand\n `;\n }\n else {\n return `${formatDate(day.date, 'EEEE MMMM d', locale)}`;\n }\n }\n /**\n * Aria label for the open day events start landmark\n * @example: `Saturday October 19 expanded view`\n */\n openDayEventsLandmark({ date, locale }) {\n return `\n Beginning of expanded view for ${formatDate(date, 'EEEE MMMM dd', locale)}\n `;\n }\n /**\n * Aria label for alert that a day in the month view was expanded\n * @example: `Saturday October 19 expanded`\n */\n openDayEventsAlert({ date, locale }) {\n return `${formatDate(date, 'EEEE MMMM dd', locale)} expanded`;\n }\n /**\n * Descriptive aria label for an event\n * @example: `Saturday October 19th, Scott's Pizza Party, from 11:00am to 5:00pm`\n */\n eventDescription({ event, locale }) {\n if (event.allDay === true) {\n return this.allDayEventDescription({ event, locale });\n }\n const aria = `\n ${formatDate(event.start, 'EEEE MMMM dd', locale)},\n ${event.title}, from ${formatDate(event.start, 'hh:mm a', locale)}\n `;\n if (event.end) {\n return aria + ` to ${formatDate(event.end, 'hh:mm a', locale)}`;\n }\n return aria;\n }\n /**\n * Descriptive aria label for an all day event\n * @example:\n * `Scott's Party, event spans multiple days: start time October 19 5:00pm, no stop time`\n */\n allDayEventDescription({ event, locale }) {\n const aria = `\n ${event.title}, event spans multiple days:\n start time ${formatDate(event.start, 'MMMM dd hh:mm a', locale)}\n `;\n if (event.end) {\n return (aria + `, stop time ${formatDate(event.end, 'MMMM d hh:mm a', locale)}`);\n }\n return aria + `, no stop time`;\n }\n /**\n * Aria label for the calendar event actions icons\n * @returns 'Edit' for fa-pencil icons, and 'Delete' for fa-times icons\n */\n actionButtonLabel({ action }) {\n return action.a11yLabel;\n }\n /**\n * @returns {number} Tab index to be given to month cells\n */\n monthCellTabIndex() {\n return 0;\n }\n /**\n * @returns true if the events inside the month cell should be aria-hidden\n */\n hideMonthCellEvents() {\n return true;\n }\n /**\n * @returns true if event titles should be aria-hidden (global)\n */\n hideEventTitle() {\n return true;\n }\n /**\n * @returns true if hour segments in the week view should be aria-hidden\n */\n hideWeekHourSegment() {\n return true;\n }\n /**\n * @returns true if hour segments in the day view should be aria-hidden\n */\n hideDayHourSegment() {\n return true;\n }\n}\nCalendarA11y.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarA11y, deps: [{ token: i1.I18nPluralPipe }], target: i0.ɵɵFactoryTarget.Injectable });\nCalendarA11y.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarA11y });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarA11y, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i1.I18nPluralPipe }]; } });\n\n/**\n * This pipe is primarily for rendering aria labels. Example usage:\n * ```typescript\n * // where `myEvent` is a `CalendarEvent` and myLocale is a locale identifier\n * {{ { event: myEvent, locale: myLocale } | calendarA11y: 'eventDescription' }}\n * ```\n */\nclass CalendarA11yPipe {\n constructor(calendarA11y, locale) {\n this.calendarA11y = calendarA11y;\n this.locale = locale;\n }\n transform(a11yParams, method) {\n a11yParams.locale = a11yParams.locale || this.locale;\n if (typeof this.calendarA11y[method] === 'undefined') {\n const allowedMethods = Object.getOwnPropertyNames(Object.getPrototypeOf(CalendarA11y.prototype)).filter((iMethod) => iMethod !== 'constructor');\n throw new Error(`${method} is not a valid a11y method. Can only be one of ${allowedMethods.join(', ')}`);\n }\n return this.calendarA11y[method](a11yParams);\n }\n}\nCalendarA11yPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarA11yPipe, deps: [{ token: CalendarA11y }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\nCalendarA11yPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarA11yPipe, name: \"calendarA11y\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarA11yPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'calendarA11y',\n }]\n }], ctorParameters: function () { return [{ type: CalendarA11y }, { type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }]; } });\n\nclass CalendarEventActionsComponent {\n constructor() {\n this.trackByActionId = (index, action) => action.id ? action.id : action;\n }\n}\nCalendarEventActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarEventActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarEventActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarEventActionsComponent, selector: \"mwl-calendar-event-actions\", inputs: { event: \"event\", customTemplate: \"customTemplate\" }, ngImport: i0, template: `\n \n \n \n \n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: ClickDirective, selector: \"[mwlClick]\", inputs: [\"clickListenerDisabled\"], outputs: [\"mwlClick\"] }, { kind: \"directive\", type: KeydownEnterDirective, selector: \"[mwlKeydownEnter]\", outputs: [\"mwlKeydownEnter\"] }, { kind: \"pipe\", type: CalendarA11yPipe, name: \"calendarA11y\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarEventActionsComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-event-actions',\n template: `\n \n \n \n \n \n \n \n \n `,\n }]\n }], propDecorators: { event: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }] } });\n\n/**\n * This class is responsible for displaying all event titles within the calendar. You may override any of its methods via angulars DI to suit your requirements. For example:\n *\n * ```typescript\n * import { Injectable } from '@angular/core';\n * import { CalendarEventTitleFormatter, CalendarEvent } from 'angular-calendar';\n *\n * @Injectable()\n * class CustomEventTitleFormatter extends CalendarEventTitleFormatter {\n *\n * month(event: CalendarEvent): string {\n * return `Custom prefix: ${event.title}`;\n * }\n *\n * }\n *\n * // in your component\n * providers: [{\n * provide: CalendarEventTitleFormatter,\n * useClass: CustomEventTitleFormatter\n * }]\n * ```\n */\nclass CalendarEventTitleFormatter {\n /**\n * The month view event title.\n */\n month(event, title) {\n return event.title;\n }\n /**\n * The month view event tooltip. Return a falsey value from this to disable the tooltip.\n */\n monthTooltip(event, title) {\n return event.title;\n }\n /**\n * The week view event title.\n */\n week(event, title) {\n return event.title;\n }\n /**\n * The week view event tooltip. Return a falsey value from this to disable the tooltip.\n */\n weekTooltip(event, title) {\n return event.title;\n }\n /**\n * The day view event title.\n */\n day(event, title) {\n return event.title;\n }\n /**\n * The day view event tooltip. Return a falsey value from this to disable the tooltip.\n */\n dayTooltip(event, title) {\n return event.title;\n }\n}\n\nclass CalendarEventTitlePipe {\n constructor(calendarEventTitle) {\n this.calendarEventTitle = calendarEventTitle;\n }\n transform(title, titleType, event) {\n return this.calendarEventTitle[titleType](event, title);\n }\n}\nCalendarEventTitlePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarEventTitlePipe, deps: [{ token: CalendarEventTitleFormatter }], target: i0.ɵɵFactoryTarget.Pipe });\nCalendarEventTitlePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarEventTitlePipe, name: \"calendarEventTitle\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarEventTitlePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'calendarEventTitle',\n }]\n }], ctorParameters: function () { return [{ type: CalendarEventTitleFormatter }]; } });\n\nclass CalendarEventTitleComponent {\n}\nCalendarEventTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarEventTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarEventTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarEventTitleComponent, selector: \"mwl-calendar-event-title\", inputs: { event: \"event\", customTemplate: \"customTemplate\", view: \"view\" }, ngImport: i0, template: `\n \n \n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: CalendarEventTitlePipe, name: \"calendarEventTitle\" }, { kind: \"pipe\", type: CalendarA11yPipe, name: \"calendarA11y\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarEventTitleComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-event-title',\n template: `\n \n \n \n \n \n \n `,\n }]\n }], propDecorators: { event: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }], view: [{\n type: Input\n }] } });\n\nclass CalendarTooltipWindowComponent {\n}\nCalendarTooltipWindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarTooltipWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarTooltipWindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarTooltipWindowComponent, selector: \"mwl-calendar-tooltip-window\", inputs: { contents: \"contents\", placement: \"placement\", event: \"event\", customTemplate: \"customTemplate\" }, ngImport: i0, template: `\n \n
\n
\n
\n
\n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarTooltipWindowComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-tooltip-window',\n template: `\n \n
\n
\n
\n
\n \n \n \n `,\n }]\n }], propDecorators: { contents: [{\n type: Input\n }], placement: [{\n type: Input\n }], event: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }] } });\nclass CalendarTooltipDirective {\n constructor(elementRef, injector, renderer, componentFactoryResolver, viewContainerRef, document // eslint-disable-line\n ) {\n this.elementRef = elementRef;\n this.injector = injector;\n this.renderer = renderer;\n this.viewContainerRef = viewContainerRef;\n this.document = document;\n this.placement = 'auto'; // eslint-disable-line @angular-eslint/no-input-rename\n this.delay = null; // eslint-disable-line @angular-eslint/no-input-rename\n this.cancelTooltipDelay$ = new Subject();\n this.tooltipFactory = componentFactoryResolver.resolveComponentFactory(CalendarTooltipWindowComponent);\n }\n ngOnChanges(changes) {\n if (this.tooltipRef &&\n (changes.contents || changes.customTemplate || changes.event)) {\n this.tooltipRef.instance.contents = this.contents;\n this.tooltipRef.instance.customTemplate = this.customTemplate;\n this.tooltipRef.instance.event = this.event;\n this.tooltipRef.changeDetectorRef.markForCheck();\n if (!this.contents) {\n this.hide();\n }\n }\n }\n ngOnDestroy() {\n this.hide();\n }\n onMouseOver() {\n const delay$ = this.delay === null ? of('now') : timer(this.delay);\n delay$.pipe(takeUntil(this.cancelTooltipDelay$)).subscribe(() => {\n this.show();\n });\n }\n onMouseOut() {\n this.hide();\n }\n show() {\n if (!this.tooltipRef && this.contents) {\n this.tooltipRef = this.viewContainerRef.createComponent(this.tooltipFactory, 0, this.injector, []);\n this.tooltipRef.instance.contents = this.contents;\n this.tooltipRef.instance.customTemplate = this.customTemplate;\n this.tooltipRef.instance.event = this.event;\n if (this.appendToBody) {\n this.document.body.appendChild(this.tooltipRef.location.nativeElement);\n }\n requestAnimationFrame(() => {\n this.positionTooltip();\n });\n }\n }\n hide() {\n if (this.tooltipRef) {\n this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView));\n this.tooltipRef = null;\n }\n this.cancelTooltipDelay$.next();\n }\n positionTooltip(previousPositions = []) {\n if (this.tooltipRef) {\n this.tooltipRef.changeDetectorRef.detectChanges();\n this.tooltipRef.instance.placement = positionElements(this.elementRef.nativeElement, this.tooltipRef.location.nativeElement.children[0], this.placement, this.appendToBody);\n // keep re-positioning the tooltip until the arrow position doesn't make a difference\n if (previousPositions.indexOf(this.tooltipRef.instance.placement) === -1) {\n this.positionTooltip([\n ...previousPositions,\n this.tooltipRef.instance.placement,\n ]);\n }\n }\n }\n}\nCalendarTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nCalendarTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarTooltipDirective, selector: \"[mwlCalendarTooltip]\", inputs: { contents: [\"mwlCalendarTooltip\", \"contents\"], placement: [\"tooltipPlacement\", \"placement\"], customTemplate: [\"tooltipTemplate\", \"customTemplate\"], event: [\"tooltipEvent\", \"event\"], appendToBody: [\"tooltipAppendToBody\", \"appendToBody\"], delay: [\"tooltipDelay\", \"delay\"] }, host: { listeners: { \"mouseenter\": \"onMouseOver()\", \"mouseleave\": \"onMouseOut()\" } }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarTooltipDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlCalendarTooltip]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Injector }, { type: i0.Renderer2 }, { type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }]; }, propDecorators: { contents: [{\n type: Input,\n args: ['mwlCalendarTooltip']\n }], placement: [{\n type: Input,\n args: ['tooltipPlacement']\n }], customTemplate: [{\n type: Input,\n args: ['tooltipTemplate']\n }], event: [{\n type: Input,\n args: ['tooltipEvent']\n }], appendToBody: [{\n type: Input,\n args: ['tooltipAppendToBody']\n }], delay: [{\n type: Input,\n args: ['tooltipDelay']\n }], onMouseOver: [{\n type: HostListener,\n args: ['mouseenter']\n }], onMouseOut: [{\n type: HostListener,\n args: ['mouseleave']\n }] } });\n\nvar CalendarView;\n(function (CalendarView) {\n CalendarView[\"Month\"] = \"month\";\n CalendarView[\"Week\"] = \"week\";\n CalendarView[\"Day\"] = \"day\";\n})(CalendarView || (CalendarView = {}));\n\nconst validateEvents = (events) => {\n const warn = (...args) => console.warn('angular-calendar', ...args);\n return validateEvents$1(events, warn);\n};\nfunction isInsideLeftAndRight(outer, inner) {\n return (Math.floor(outer.left) <= Math.ceil(inner.left) &&\n Math.floor(inner.left) <= Math.ceil(outer.right) &&\n Math.floor(outer.left) <= Math.ceil(inner.right) &&\n Math.floor(inner.right) <= Math.ceil(outer.right));\n}\nfunction isInsideTopAndBottom(outer, inner) {\n return (Math.floor(outer.top) <= Math.ceil(inner.top) &&\n Math.floor(inner.top) <= Math.ceil(outer.bottom) &&\n Math.floor(outer.top) <= Math.ceil(inner.bottom) &&\n Math.floor(inner.bottom) <= Math.ceil(outer.bottom));\n}\nfunction isInside(outer, inner) {\n return (isInsideLeftAndRight(outer, inner) && isInsideTopAndBottom(outer, inner));\n}\nfunction roundToNearest(amount, precision) {\n return Math.round(amount / precision) * precision;\n}\nconst trackByEventId = (index, event) => event.id ? event.id : event;\nconst trackByWeekDayHeaderDate = (index, day) => day.date.toISOString();\nconst trackByHourSegment = (index, segment) => segment.date.toISOString();\nconst trackByHour = (index, hour) => hour.segments[0].date.toISOString();\nconst trackByWeekAllDayEvent = (index, weekEvent) => (weekEvent.event.id ? weekEvent.event.id : weekEvent.event);\nconst trackByWeekTimeEvent = (index, weekEvent) => (weekEvent.event.id ? weekEvent.event.id : weekEvent.event);\nconst MINUTES_IN_HOUR = 60;\nfunction getPixelAmountInMinutes(hourSegments, hourSegmentHeight, hourDuration) {\n return (hourDuration || MINUTES_IN_HOUR) / (hourSegments * hourSegmentHeight);\n}\nfunction getMinutesMoved(movedY, hourSegments, hourSegmentHeight, eventSnapSize, hourDuration) {\n const draggedInPixelsSnapSize = roundToNearest(movedY, eventSnapSize || hourSegmentHeight);\n const pixelAmountInMinutes = getPixelAmountInMinutes(hourSegments, hourSegmentHeight, hourDuration);\n return draggedInPixelsSnapSize * pixelAmountInMinutes;\n}\nfunction getDefaultEventEnd(dateAdapter, event, minimumMinutes) {\n if (event.end) {\n return event.end;\n }\n else {\n return dateAdapter.addMinutes(event.start, minimumMinutes);\n }\n}\nfunction addDaysWithExclusions(dateAdapter, date, days, excluded) {\n let daysCounter = 0;\n let daysToAdd = 0;\n const changeDays = days < 0 ? dateAdapter.subDays : dateAdapter.addDays;\n let result = date;\n while (daysToAdd <= Math.abs(days)) {\n result = changeDays(date, daysCounter);\n const day = dateAdapter.getDay(result);\n if (excluded.indexOf(day) === -1) {\n daysToAdd++;\n }\n daysCounter++;\n }\n return result;\n}\nfunction isDraggedWithinPeriod(newStart, newEnd, period) {\n const end = newEnd || newStart;\n return ((period.start <= newStart && newStart <= period.end) ||\n (period.start <= end && end <= period.end));\n}\nfunction shouldFireDroppedEvent(dropEvent, date, allDay, calendarId) {\n return (dropEvent.dropData &&\n dropEvent.dropData.event &&\n (dropEvent.dropData.calendarId !== calendarId ||\n (dropEvent.dropData.event.allDay && !allDay) ||\n (!dropEvent.dropData.event.allDay && allDay)));\n}\nfunction getWeekViewPeriod(dateAdapter, viewDate, weekStartsOn, excluded = [], daysInWeek) {\n let viewStart = daysInWeek\n ? dateAdapter.startOfDay(viewDate)\n : dateAdapter.startOfWeek(viewDate, { weekStartsOn });\n const endOfWeek = dateAdapter.endOfWeek(viewDate, { weekStartsOn });\n while (excluded.indexOf(dateAdapter.getDay(viewStart)) > -1 &&\n viewStart < endOfWeek) {\n viewStart = dateAdapter.addDays(viewStart, 1);\n }\n if (daysInWeek) {\n const viewEnd = dateAdapter.endOfDay(addDaysWithExclusions(dateAdapter, viewStart, daysInWeek - 1, excluded));\n return { viewStart, viewEnd };\n }\n else {\n let viewEnd = endOfWeek;\n while (excluded.indexOf(dateAdapter.getDay(viewEnd)) > -1 &&\n viewEnd > viewStart) {\n viewEnd = dateAdapter.subDays(viewEnd, 1);\n }\n return { viewStart, viewEnd };\n }\n}\nfunction isWithinThreshold({ x, y }) {\n const DRAG_THRESHOLD = 1;\n return Math.abs(x) > DRAG_THRESHOLD || Math.abs(y) > DRAG_THRESHOLD;\n}\n\nclass DateAdapter {\n}\n\n/**\n * Change the view date to the previous view. For example:\n *\n * ```typescript\n * \n * Previous\n * \n * ```\n */\nclass CalendarPreviousViewDirective {\n constructor(dateAdapter) {\n this.dateAdapter = dateAdapter;\n /**\n * Days to skip when going back by 1 day\n */\n this.excludeDays = [];\n /**\n * Called when the view date is changed\n */\n this.viewDateChange = new EventEmitter();\n }\n /**\n * @hidden\n */\n onClick() {\n const subFn = {\n day: this.dateAdapter.subDays,\n week: this.dateAdapter.subWeeks,\n month: this.dateAdapter.subMonths,\n }[this.view];\n if (this.view === CalendarView.Day) {\n this.viewDateChange.emit(addDaysWithExclusions(this.dateAdapter, this.viewDate, -1, this.excludeDays));\n }\n else if (this.view === CalendarView.Week && this.daysInWeek) {\n this.viewDateChange.emit(addDaysWithExclusions(this.dateAdapter, this.viewDate, -this.daysInWeek, this.excludeDays));\n }\n else {\n this.viewDateChange.emit(subFn(this.viewDate, 1));\n }\n }\n}\nCalendarPreviousViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarPreviousViewDirective, deps: [{ token: DateAdapter }], target: i0.ɵɵFactoryTarget.Directive });\nCalendarPreviousViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarPreviousViewDirective, selector: \"[mwlCalendarPreviousView]\", inputs: { view: \"view\", viewDate: \"viewDate\", excludeDays: \"excludeDays\", daysInWeek: \"daysInWeek\" }, outputs: { viewDateChange: \"viewDateChange\" }, host: { listeners: { \"click\": \"onClick()\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarPreviousViewDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlCalendarPreviousView]',\n }]\n }], ctorParameters: function () { return [{ type: DateAdapter }]; }, propDecorators: { view: [{\n type: Input\n }], viewDate: [{\n type: Input\n }], excludeDays: [{\n type: Input\n }], daysInWeek: [{\n type: Input\n }], viewDateChange: [{\n type: Output\n }], onClick: [{\n type: HostListener,\n args: ['click']\n }] } });\n\n/**\n * Change the view date to the next view. For example:\n *\n * ```typescript\n * \n * Next\n * \n * ```\n */\nclass CalendarNextViewDirective {\n constructor(dateAdapter) {\n this.dateAdapter = dateAdapter;\n /**\n * Days to skip when going forward by 1 day\n */\n this.excludeDays = [];\n /**\n * Called when the view date is changed\n */\n this.viewDateChange = new EventEmitter();\n }\n /**\n * @hidden\n */\n onClick() {\n const addFn = {\n day: this.dateAdapter.addDays,\n week: this.dateAdapter.addWeeks,\n month: this.dateAdapter.addMonths,\n }[this.view];\n if (this.view === CalendarView.Day) {\n this.viewDateChange.emit(addDaysWithExclusions(this.dateAdapter, this.viewDate, 1, this.excludeDays));\n }\n else if (this.view === CalendarView.Week && this.daysInWeek) {\n this.viewDateChange.emit(addDaysWithExclusions(this.dateAdapter, this.viewDate, this.daysInWeek, this.excludeDays));\n }\n else {\n this.viewDateChange.emit(addFn(this.viewDate, 1));\n }\n }\n}\nCalendarNextViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarNextViewDirective, deps: [{ token: DateAdapter }], target: i0.ɵɵFactoryTarget.Directive });\nCalendarNextViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarNextViewDirective, selector: \"[mwlCalendarNextView]\", inputs: { view: \"view\", viewDate: \"viewDate\", excludeDays: \"excludeDays\", daysInWeek: \"daysInWeek\" }, outputs: { viewDateChange: \"viewDateChange\" }, host: { listeners: { \"click\": \"onClick()\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarNextViewDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlCalendarNextView]',\n }]\n }], ctorParameters: function () { return [{ type: DateAdapter }]; }, propDecorators: { view: [{\n type: Input\n }], viewDate: [{\n type: Input\n }], excludeDays: [{\n type: Input\n }], daysInWeek: [{\n type: Input\n }], viewDateChange: [{\n type: Output\n }], onClick: [{\n type: HostListener,\n args: ['click']\n }] } });\n\n/**\n * Change the view date to the current day. For example:\n *\n * ```typescript\n * \n * Today\n * \n * ```\n */\nclass CalendarTodayDirective {\n constructor(dateAdapter) {\n this.dateAdapter = dateAdapter;\n /**\n * Called when the view date is changed\n */\n this.viewDateChange = new EventEmitter();\n }\n /**\n * @hidden\n */\n onClick() {\n this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date()));\n }\n}\nCalendarTodayDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarTodayDirective, deps: [{ token: DateAdapter }], target: i0.ɵɵFactoryTarget.Directive });\nCalendarTodayDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarTodayDirective, selector: \"[mwlCalendarToday]\", inputs: { viewDate: \"viewDate\" }, outputs: { viewDateChange: \"viewDateChange\" }, host: { listeners: { \"click\": \"onClick()\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarTodayDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[mwlCalendarToday]',\n }]\n }], ctorParameters: function () { return [{ type: DateAdapter }]; }, propDecorators: { viewDate: [{\n type: Input\n }], viewDateChange: [{\n type: Output\n }], onClick: [{\n type: HostListener,\n args: ['click']\n }] } });\n\n/**\n * This will use the angular date pipe to do all date formatting. It is the default date formatter used by the calendar.\n */\nclass CalendarAngularDateFormatter {\n constructor(dateAdapter) {\n this.dateAdapter = dateAdapter;\n }\n /**\n * The month view header week day labels\n */\n monthViewColumnHeader({ date, locale }) {\n return formatDate(date, 'EEEE', locale);\n }\n /**\n * The month view cell day number\n */\n monthViewDayNumber({ date, locale }) {\n return formatDate(date, 'd', locale);\n }\n /**\n * The month view title\n */\n monthViewTitle({ date, locale }) {\n return formatDate(date, 'LLLL y', locale);\n }\n /**\n * The week view header week day labels\n */\n weekViewColumnHeader({ date, locale }) {\n return formatDate(date, 'EEEE', locale);\n }\n /**\n * The week view sub header day and month labels\n */\n weekViewColumnSubHeader({ date, locale, }) {\n return formatDate(date, 'MMM d', locale);\n }\n /**\n * The week view title\n */\n weekViewTitle({ date, locale, weekStartsOn, excludeDays, daysInWeek, }) {\n const { viewStart, viewEnd } = getWeekViewPeriod(this.dateAdapter, date, weekStartsOn, excludeDays, daysInWeek);\n const format = (dateToFormat, showYear) => formatDate(dateToFormat, 'MMM d' + (showYear ? ', yyyy' : ''), locale);\n return `${format(viewStart, viewStart.getUTCFullYear() !== viewEnd.getUTCFullYear())} - ${format(viewEnd, true)}`;\n }\n /**\n * The time formatting down the left hand side of the week view\n */\n weekViewHour({ date, locale }) {\n return formatDate(date, 'h a', locale);\n }\n /**\n * The time formatting down the left hand side of the day view\n */\n dayViewHour({ date, locale }) {\n return formatDate(date, 'h a', locale);\n }\n /**\n * The day view title\n */\n dayViewTitle({ date, locale }) {\n return formatDate(date, 'EEEE, MMMM d, y', locale);\n }\n}\nCalendarAngularDateFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarAngularDateFormatter, deps: [{ token: DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\nCalendarAngularDateFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarAngularDateFormatter });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarAngularDateFormatter, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: DateAdapter }]; } });\n\n/**\n * This class is responsible for all formatting of dates. There are 3 implementations available, the `CalendarAngularDateFormatter` (default) which uses the angular date pipe to format dates, the `CalendarNativeDateFormatter` which will use the Intl API to format dates, or there is the `CalendarMomentDateFormatter` which uses moment.\n *\n * If you wish, you may override any of the defaults via angulars DI. For example:\n *\n * ```typescript\n * import { CalendarDateFormatter, DateFormatterParams } from 'angular-calendar';\n * import { formatDate } from '@angular/common';\n * import { Injectable } from '@angular/core';\n *\n * @Injectable()\n * class CustomDateFormatter extends CalendarDateFormatter {\n *\n * public monthViewColumnHeader({date, locale}: DateFormatterParams): string {\n * return formatDate(date, 'EEE', locale); // use short week days\n * }\n *\n * }\n *\n * // in your component that uses the calendar\n * providers: [{\n * provide: CalendarDateFormatter,\n * useClass: CustomDateFormatter\n * }]\n * ```\n */\nclass CalendarDateFormatter extends CalendarAngularDateFormatter {\n}\nCalendarDateFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDateFormatter, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\nCalendarDateFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDateFormatter });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDateFormatter, decorators: [{\n type: Injectable\n }] });\n\n/**\n * This pipe is primarily for rendering the current view title. Example usage:\n * ```typescript\n * // where `viewDate` is a `Date` and view is `'month' | 'week' | 'day'`\n * {{ viewDate | calendarDate:(view + 'ViewTitle'):'en' }}\n * ```\n */\nclass CalendarDatePipe {\n constructor(dateFormatter, locale) {\n this.dateFormatter = dateFormatter;\n this.locale = locale;\n }\n transform(date, method, locale = this.locale, weekStartsOn = 0, excludeDays = [], daysInWeek) {\n if (typeof this.dateFormatter[method] === 'undefined') {\n const allowedMethods = Object.getOwnPropertyNames(Object.getPrototypeOf(CalendarDateFormatter.prototype)).filter((iMethod) => iMethod !== 'constructor');\n throw new Error(`${method} is not a valid date formatter. Can only be one of ${allowedMethods.join(', ')}`);\n }\n return this.dateFormatter[method]({\n date,\n locale,\n weekStartsOn,\n excludeDays,\n daysInWeek,\n });\n }\n}\nCalendarDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDatePipe, deps: [{ token: CalendarDateFormatter }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\nCalendarDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDatePipe, name: \"calendarDate\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDatePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'calendarDate',\n }]\n }], ctorParameters: function () { return [{ type: CalendarDateFormatter }, { type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }]; } });\n\nclass CalendarUtils {\n constructor(dateAdapter) {\n this.dateAdapter = dateAdapter;\n }\n getMonthView(args) {\n return getMonthView(this.dateAdapter, args);\n }\n getWeekViewHeader(args) {\n return getWeekViewHeader(this.dateAdapter, args);\n }\n getWeekView(args) {\n return getWeekView(this.dateAdapter, args);\n }\n}\nCalendarUtils.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarUtils, deps: [{ token: DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\nCalendarUtils.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarUtils });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarUtils, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: DateAdapter }]; } });\n\nconst MOMENT = new InjectionToken('Moment');\n/**\n * This will use moment to do all date formatting. To use this class:\n *\n * ```typescript\n * import { CalendarDateFormatter, CalendarMomentDateFormatter, MOMENT } from 'angular-calendar';\n * import moment from 'moment';\n *\n * // in your component\n * provide: [{\n * provide: MOMENT, useValue: moment\n * }, {\n * provide: CalendarDateFormatter, useClass: CalendarMomentDateFormatter\n * }]\n *\n * ```\n */\nclass CalendarMomentDateFormatter {\n /**\n * @hidden\n */\n constructor(moment, dateAdapter) {\n this.moment = moment;\n this.dateAdapter = dateAdapter;\n }\n /**\n * The month view header week day labels\n */\n monthViewColumnHeader({ date, locale }) {\n return this.moment(date).locale(locale).format('dddd');\n }\n /**\n * The month view cell day number\n */\n monthViewDayNumber({ date, locale }) {\n return this.moment(date).locale(locale).format('D');\n }\n /**\n * The month view title\n */\n monthViewTitle({ date, locale }) {\n return this.moment(date).locale(locale).format('MMMM YYYY');\n }\n /**\n * The week view header week day labels\n */\n weekViewColumnHeader({ date, locale }) {\n return this.moment(date).locale(locale).format('dddd');\n }\n /**\n * The week view sub header day and month labels\n */\n weekViewColumnSubHeader({ date, locale, }) {\n return this.moment(date).locale(locale).format('MMM D');\n }\n /**\n * The week view title\n */\n weekViewTitle({ date, locale, weekStartsOn, excludeDays, daysInWeek, }) {\n const { viewStart, viewEnd } = getWeekViewPeriod(this.dateAdapter, date, weekStartsOn, excludeDays, daysInWeek);\n const format = (dateToFormat, showYear) => this.moment(dateToFormat)\n .locale(locale)\n .format('MMM D' + (showYear ? ', YYYY' : ''));\n return `${format(viewStart, viewStart.getUTCFullYear() !== viewEnd.getUTCFullYear())} - ${format(viewEnd, true)}`;\n }\n /**\n * The time formatting down the left hand side of the week view\n */\n weekViewHour({ date, locale }) {\n return this.moment(date).locale(locale).format('ha');\n }\n /**\n * The time formatting down the left hand side of the day view\n */\n dayViewHour({ date, locale }) {\n return this.moment(date).locale(locale).format('ha');\n }\n /**\n * The day view title\n */\n dayViewTitle({ date, locale }) {\n return this.moment(date).locale(locale).format('dddd, LL'); // dddd = Thursday\n } // LL = locale-dependent Month Day, Year\n}\nCalendarMomentDateFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMomentDateFormatter, deps: [{ token: MOMENT }, { token: DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\nCalendarMomentDateFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMomentDateFormatter });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMomentDateFormatter, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [MOMENT]\n }] }, { type: DateAdapter }]; } });\n\n/**\n * This will use Intl API to do all date formatting.\n *\n * You will need to include a polyfill for older browsers.\n */\nclass CalendarNativeDateFormatter {\n constructor(dateAdapter) {\n this.dateAdapter = dateAdapter;\n }\n /**\n * The month view header week day labels\n */\n monthViewColumnHeader({ date, locale }) {\n return new Intl.DateTimeFormat(locale, { weekday: 'long' }).format(date);\n }\n /**\n * The month view cell day number\n */\n monthViewDayNumber({ date, locale }) {\n return new Intl.DateTimeFormat(locale, { day: 'numeric' }).format(date);\n }\n /**\n * The month view title\n */\n monthViewTitle({ date, locale }) {\n return new Intl.DateTimeFormat(locale, {\n year: 'numeric',\n month: 'long',\n }).format(date);\n }\n /**\n * The week view header week day labels\n */\n weekViewColumnHeader({ date, locale }) {\n return new Intl.DateTimeFormat(locale, { weekday: 'long' }).format(date);\n }\n /**\n * The week view sub header day and month labels\n */\n weekViewColumnSubHeader({ date, locale, }) {\n return new Intl.DateTimeFormat(locale, {\n day: 'numeric',\n month: 'short',\n }).format(date);\n }\n /**\n * The week view title\n */\n weekViewTitle({ date, locale, weekStartsOn, excludeDays, daysInWeek, }) {\n const { viewStart, viewEnd } = getWeekViewPeriod(this.dateAdapter, date, weekStartsOn, excludeDays, daysInWeek);\n const format = (dateToFormat, showYear) => new Intl.DateTimeFormat(locale, {\n day: 'numeric',\n month: 'short',\n year: showYear ? 'numeric' : undefined,\n }).format(dateToFormat);\n return `${format(viewStart, viewStart.getUTCFullYear() !== viewEnd.getUTCFullYear())} - ${format(viewEnd, true)}`;\n }\n /**\n * The time formatting down the left hand side of the week view\n */\n weekViewHour({ date, locale }) {\n return new Intl.DateTimeFormat(locale, { hour: 'numeric' }).format(date);\n }\n /**\n * The time formatting down the left hand side of the day view\n */\n dayViewHour({ date, locale }) {\n return new Intl.DateTimeFormat(locale, { hour: 'numeric' }).format(date);\n }\n /**\n * The day view title\n */\n dayViewTitle({ date, locale }) {\n return new Intl.DateTimeFormat(locale, {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n weekday: 'long',\n }).format(date);\n }\n}\nCalendarNativeDateFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarNativeDateFormatter, deps: [{ token: DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\nCalendarNativeDateFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarNativeDateFormatter });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarNativeDateFormatter, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: DateAdapter }]; } });\n\nvar CalendarEventTimesChangedEventType;\n(function (CalendarEventTimesChangedEventType) {\n CalendarEventTimesChangedEventType[\"Drag\"] = \"drag\";\n CalendarEventTimesChangedEventType[\"Drop\"] = \"drop\";\n CalendarEventTimesChangedEventType[\"Resize\"] = \"resize\";\n})(CalendarEventTimesChangedEventType || (CalendarEventTimesChangedEventType = {}));\n\n/**\n * Import this module to if you're just using a singular view and want to save on bundle size. Example usage:\n *\n * ```typescript\n * import { CalendarCommonModule, CalendarMonthModule } from 'angular-calendar';\n *\n * @NgModule({\n * imports: [\n * CalendarCommonModule.forRoot(),\n * CalendarMonthModule\n * ]\n * })\n * class MyModule {}\n * ```\n *\n */\nclass CalendarCommonModule {\n static forRoot(dateAdapter, config = {}) {\n return {\n ngModule: CalendarCommonModule,\n providers: [\n dateAdapter,\n config.eventTitleFormatter || CalendarEventTitleFormatter,\n config.dateFormatter || CalendarDateFormatter,\n config.utils || CalendarUtils,\n config.a11y || CalendarA11y,\n ],\n };\n }\n}\nCalendarCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCalendarCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarCommonModule, declarations: [CalendarEventActionsComponent,\n CalendarEventTitleComponent,\n CalendarTooltipWindowComponent,\n CalendarTooltipDirective,\n CalendarPreviousViewDirective,\n CalendarNextViewDirective,\n CalendarTodayDirective,\n CalendarDatePipe,\n CalendarEventTitlePipe,\n CalendarA11yPipe,\n ClickDirective,\n KeydownEnterDirective], imports: [CommonModule], exports: [CalendarEventActionsComponent,\n CalendarEventTitleComponent,\n CalendarTooltipWindowComponent,\n CalendarTooltipDirective,\n CalendarPreviousViewDirective,\n CalendarNextViewDirective,\n CalendarTodayDirective,\n CalendarDatePipe,\n CalendarEventTitlePipe,\n CalendarA11yPipe,\n ClickDirective,\n KeydownEnterDirective] });\nCalendarCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarCommonModule, providers: [I18nPluralPipe], imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarCommonModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [\n CalendarEventActionsComponent,\n CalendarEventTitleComponent,\n CalendarTooltipWindowComponent,\n CalendarTooltipDirective,\n CalendarPreviousViewDirective,\n CalendarNextViewDirective,\n CalendarTodayDirective,\n CalendarDatePipe,\n CalendarEventTitlePipe,\n CalendarA11yPipe,\n ClickDirective,\n KeydownEnterDirective,\n ],\n imports: [CommonModule],\n exports: [\n CalendarEventActionsComponent,\n CalendarEventTitleComponent,\n CalendarTooltipWindowComponent,\n CalendarTooltipDirective,\n CalendarPreviousViewDirective,\n CalendarNextViewDirective,\n CalendarTodayDirective,\n CalendarDatePipe,\n CalendarEventTitlePipe,\n CalendarA11yPipe,\n ClickDirective,\n KeydownEnterDirective,\n ],\n providers: [I18nPluralPipe],\n }]\n }] });\n\nclass CalendarMonthCellComponent {\n constructor() {\n this.highlightDay = new EventEmitter();\n this.unhighlightDay = new EventEmitter();\n this.eventClicked = new EventEmitter();\n this.trackByEventId = trackByEventId;\n this.validateDrag = isWithinThreshold;\n }\n}\nCalendarMonthCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarMonthCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarMonthCellComponent, selector: \"mwl-calendar-month-cell\", inputs: { day: \"day\", openDay: \"openDay\", locale: \"locale\", tooltipPlacement: \"tooltipPlacement\", tooltipAppendToBody: \"tooltipAppendToBody\", customTemplate: \"customTemplate\", tooltipTemplate: \"tooltipTemplate\", tooltipDelay: \"tooltipDelay\" }, outputs: { highlightDay: \"highlightDay\", unhighlightDay: \"unhighlightDay\", eventClicked: \"eventClicked\" }, host: { properties: { \"class.cal-past\": \"day.isPast\", \"class.cal-today\": \"day.isToday\", \"class.cal-future\": \"day.isFuture\", \"class.cal-weekend\": \"day.isWeekend\", \"class.cal-in-month\": \"day.inMonth\", \"class.cal-out-month\": \"!day.inMonth\", \"class.cal-has-events\": \"day.events.length > 0\", \"class.cal-open\": \"day === openDay\", \"class.cal-event-highlight\": \"!!day.backgroundColor\" }, classAttribute: \"cal-cell cal-day-cell\" }, ngImport: i0, template: `\n \n \n \n 0\">{{\n day.badgeTotal\n }}\n {{\n day.date | calendarDate : 'monthViewDayNumber' : locale\n }}\n \n \n
0\">\n
\n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: i2.DraggableDirective, selector: \"[mwlDraggable]\", inputs: [\"dropData\", \"dragAxis\", \"dragSnapGrid\", \"ghostDragEnabled\", \"showOriginalElementWhileDragging\", \"validateDrag\", \"dragCursor\", \"dragActiveClass\", \"ghostElementAppendTo\", \"ghostElementTemplate\", \"touchStartLongPress\", \"autoScroll\"], outputs: [\"dragPointerDown\", \"dragStart\", \"ghostElementCreated\", \"dragging\", \"dragEnd\"] }, { kind: \"directive\", type: CalendarTooltipDirective, selector: \"[mwlCalendarTooltip]\", inputs: [\"mwlCalendarTooltip\", \"tooltipPlacement\", \"tooltipTemplate\", \"tooltipEvent\", \"tooltipAppendToBody\", \"tooltipDelay\"] }, { kind: \"directive\", type: ClickDirective, selector: \"[mwlClick]\", inputs: [\"clickListenerDisabled\"], outputs: [\"mwlClick\"] }, { kind: \"pipe\", type: CalendarDatePipe, name: \"calendarDate\" }, { kind: \"pipe\", type: CalendarEventTitlePipe, name: \"calendarEventTitle\" }, { kind: \"pipe\", type: CalendarA11yPipe, name: \"calendarA11y\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthCellComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-month-cell',\n template: `\n \n \n \n 0\">{{\n day.badgeTotal\n }}\n {{\n day.date | calendarDate : 'monthViewDayNumber' : locale\n }}\n \n \n
0\">\n
\n \n \n \n \n `,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n class: 'cal-cell cal-day-cell',\n '[class.cal-past]': 'day.isPast',\n '[class.cal-today]': 'day.isToday',\n '[class.cal-future]': 'day.isFuture',\n '[class.cal-weekend]': 'day.isWeekend',\n '[class.cal-in-month]': 'day.inMonth',\n '[class.cal-out-month]': '!day.inMonth',\n '[class.cal-has-events]': 'day.events.length > 0',\n '[class.cal-open]': 'day === openDay',\n '[class.cal-event-highlight]': '!!day.backgroundColor',\n },\n }]\n }], propDecorators: { day: [{\n type: Input\n }], openDay: [{\n type: Input\n }], locale: [{\n type: Input\n }], tooltipPlacement: [{\n type: Input\n }], tooltipAppendToBody: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }], tooltipTemplate: [{\n type: Input\n }], tooltipDelay: [{\n type: Input\n }], highlightDay: [{\n type: Output\n }], unhighlightDay: [{\n type: Output\n }], eventClicked: [{\n type: Output\n }] } });\n\nconst collapseAnimation = trigger('collapse', [\n state('void', style({\n height: 0,\n overflow: 'hidden',\n 'padding-top': 0,\n 'padding-bottom': 0,\n })),\n state('*', style({\n height: '*',\n overflow: 'hidden',\n 'padding-top': '*',\n 'padding-bottom': '*',\n })),\n transition('* => void', animate('150ms ease-out')),\n transition('void => *', animate('150ms ease-in')),\n]);\nclass CalendarOpenDayEventsComponent {\n constructor() {\n this.isOpen = false;\n this.eventClicked = new EventEmitter();\n this.trackByEventId = trackByEventId;\n this.validateDrag = isWithinThreshold;\n }\n}\nCalendarOpenDayEventsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarOpenDayEventsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarOpenDayEventsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarOpenDayEventsComponent, selector: \"mwl-calendar-open-day-events\", inputs: { locale: \"locale\", isOpen: \"isOpen\", events: \"events\", customTemplate: \"customTemplate\", eventTitleTemplate: \"eventTitleTemplate\", eventActionsTemplate: \"eventActionsTemplate\", date: \"date\" }, outputs: { eventClicked: \"eventClicked\" }, ngImport: i0, template: `\n \n \n \n \n \n \n \n &ngsp;\n \n \n &ngsp;\n \n \n \n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: i2.DraggableDirective, selector: \"[mwlDraggable]\", inputs: [\"dropData\", \"dragAxis\", \"dragSnapGrid\", \"ghostDragEnabled\", \"showOriginalElementWhileDragging\", \"validateDrag\", \"dragCursor\", \"dragActiveClass\", \"ghostElementAppendTo\", \"ghostElementTemplate\", \"touchStartLongPress\", \"autoScroll\"], outputs: [\"dragPointerDown\", \"dragStart\", \"ghostElementCreated\", \"dragging\", \"dragEnd\"] }, { kind: \"component\", type: CalendarEventActionsComponent, selector: \"mwl-calendar-event-actions\", inputs: [\"event\", \"customTemplate\"] }, { kind: \"component\", type: CalendarEventTitleComponent, selector: \"mwl-calendar-event-title\", inputs: [\"event\", \"customTemplate\", \"view\"] }, { kind: \"directive\", type: ClickDirective, selector: \"[mwlClick]\", inputs: [\"clickListenerDisabled\"], outputs: [\"mwlClick\"] }, { kind: \"directive\", type: KeydownEnterDirective, selector: \"[mwlKeydownEnter]\", outputs: [\"mwlKeydownEnter\"] }, { kind: \"pipe\", type: CalendarA11yPipe, name: \"calendarA11y\" }], animations: [collapseAnimation] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarOpenDayEventsComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-open-day-events',\n template: `\n \n \n \n \n \n \n \n &ngsp;\n \n \n &ngsp;\n \n \n \n \n \n \n \n `,\n animations: [collapseAnimation],\n }]\n }], propDecorators: { locale: [{\n type: Input\n }], isOpen: [{\n type: Input\n }], events: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }], eventTitleTemplate: [{\n type: Input\n }], eventActionsTemplate: [{\n type: Input\n }], date: [{\n type: Input\n }], eventClicked: [{\n type: Output\n }] } });\n\nclass CalendarMonthViewHeaderComponent {\n constructor() {\n this.columnHeaderClicked = new EventEmitter();\n this.trackByWeekDayHeaderDate = trackByWeekDayHeaderDate;\n }\n}\nCalendarMonthViewHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthViewHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarMonthViewHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarMonthViewHeaderComponent, selector: \"mwl-calendar-month-view-header\", inputs: { days: \"days\", locale: \"locale\", customTemplate: \"customTemplate\" }, outputs: { columnHeaderClicked: \"columnHeaderClicked\" }, ngImport: i0, template: `\n \n
\n \n {{ day.date | calendarDate : 'monthViewColumnHeader' : locale }}\n
\n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: CalendarDatePipe, name: \"calendarDate\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthViewHeaderComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-month-view-header',\n template: `\n \n
\n \n {{ day.date | calendarDate : 'monthViewColumnHeader' : locale }}\n
\n \n \n \n \n `,\n }]\n }], propDecorators: { days: [{\n type: Input\n }], locale: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }], columnHeaderClicked: [{\n type: Output\n }] } });\n\n/**\n * Shows all events on a given month. Example usage:\n *\n * ```typescript\n * \n * \n * ```\n */\nclass CalendarMonthViewComponent {\n /**\n * @hidden\n */\n constructor(cdr, utils, locale, dateAdapter) {\n this.cdr = cdr;\n this.utils = utils;\n this.dateAdapter = dateAdapter;\n /**\n * An array of events to display on view.\n * The schema is available here: https://github.com/mattlewis92/calendar-utils/blob/c51689985f59a271940e30bc4e2c4e1fee3fcb5c/src/calendarUtils.ts#L49-L63\n */\n this.events = [];\n /**\n * An array of day indexes (0 = sunday, 1 = monday etc) that will be hidden on the view\n */\n this.excludeDays = [];\n /**\n * Whether the events list for the day of the `viewDate` option is visible or not\n */\n this.activeDayIsOpen = false;\n /**\n * The placement of the event tooltip\n */\n this.tooltipPlacement = 'auto';\n /**\n * Whether to append tooltips to the body or next to the trigger element\n */\n this.tooltipAppendToBody = true;\n /**\n * The delay in milliseconds before the tooltip should be displayed. If not provided the tooltip\n * will be displayed immediately.\n */\n this.tooltipDelay = null;\n /**\n * An output that will be called before the view is rendered for the current month.\n * If you add the `cssClass` property to a day in the body it will add that class to the cell element in the template\n */\n this.beforeViewRender = new EventEmitter();\n /**\n * Called when the day cell is clicked\n */\n this.dayClicked = new EventEmitter();\n /**\n * Called when the event title is clicked\n */\n this.eventClicked = new EventEmitter();\n /**\n * Called when a header week day is clicked. Returns ISO day number.\n */\n this.columnHeaderClicked = new EventEmitter();\n /**\n * Called when an event is dragged and dropped\n */\n this.eventTimesChanged = new EventEmitter();\n /**\n * @hidden\n */\n this.trackByRowOffset = (index, offset) => this.view.days\n .slice(offset, this.view.totalDaysVisibleInWeek)\n .map((day) => day.date.toISOString())\n .join('-');\n /**\n * @hidden\n */\n this.trackByDate = (index, day) => day.date.toISOString();\n this.locale = locale;\n }\n /**\n * @hidden\n */\n ngOnInit() {\n if (this.refresh) {\n this.refreshSubscription = this.refresh.subscribe(() => {\n this.refreshAll();\n this.cdr.markForCheck();\n });\n }\n }\n /**\n * @hidden\n */\n ngOnChanges(changes) {\n const refreshHeader = changes.viewDate || changes.excludeDays || changes.weekendDays;\n const refreshBody = changes.viewDate ||\n changes.events ||\n changes.excludeDays ||\n changes.weekendDays;\n if (refreshHeader) {\n this.refreshHeader();\n }\n if (changes.events) {\n validateEvents(this.events);\n }\n if (refreshBody) {\n this.refreshBody();\n }\n if (refreshHeader || refreshBody) {\n this.emitBeforeViewRender();\n }\n if (changes.activeDayIsOpen ||\n changes.viewDate ||\n changes.events ||\n changes.excludeDays ||\n changes.activeDay) {\n this.checkActiveDayIsOpen();\n }\n }\n /**\n * @hidden\n */\n ngOnDestroy() {\n if (this.refreshSubscription) {\n this.refreshSubscription.unsubscribe();\n }\n }\n /**\n * @hidden\n */\n toggleDayHighlight(event, isHighlighted) {\n this.view.days.forEach((day) => {\n if (isHighlighted && day.events.indexOf(event) > -1) {\n day.backgroundColor =\n (event.color && event.color.secondary) || '#D1E8FF';\n }\n else {\n delete day.backgroundColor;\n }\n });\n }\n /**\n * @hidden\n */\n eventDropped(droppedOn, event, draggedFrom) {\n if (droppedOn !== draggedFrom) {\n const year = this.dateAdapter.getYear(droppedOn.date);\n const month = this.dateAdapter.getMonth(droppedOn.date);\n const date = this.dateAdapter.getDate(droppedOn.date);\n const newStart = this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(event.start, year), month), date);\n let newEnd;\n if (event.end) {\n const secondsDiff = this.dateAdapter.differenceInSeconds(newStart, event.start);\n newEnd = this.dateAdapter.addSeconds(event.end, secondsDiff);\n }\n this.eventTimesChanged.emit({\n event,\n newStart,\n newEnd,\n day: droppedOn,\n type: CalendarEventTimesChangedEventType.Drop,\n });\n }\n }\n refreshHeader() {\n this.columnHeaders = this.utils.getWeekViewHeader({\n viewDate: this.viewDate,\n weekStartsOn: this.weekStartsOn,\n excluded: this.excludeDays,\n weekendDays: this.weekendDays,\n });\n }\n refreshBody() {\n this.view = this.utils.getMonthView({\n events: this.events,\n viewDate: this.viewDate,\n weekStartsOn: this.weekStartsOn,\n excluded: this.excludeDays,\n weekendDays: this.weekendDays,\n });\n }\n checkActiveDayIsOpen() {\n if (this.activeDayIsOpen === true) {\n const activeDay = this.activeDay || this.viewDate;\n this.openDay = this.view.days.find((day) => this.dateAdapter.isSameDay(day.date, activeDay));\n const index = this.view.days.indexOf(this.openDay);\n this.openRowIndex =\n Math.floor(index / this.view.totalDaysVisibleInWeek) *\n this.view.totalDaysVisibleInWeek;\n }\n else {\n this.openRowIndex = null;\n this.openDay = null;\n }\n }\n refreshAll() {\n this.refreshHeader();\n this.refreshBody();\n this.emitBeforeViewRender();\n this.checkActiveDayIsOpen();\n }\n emitBeforeViewRender() {\n if (this.columnHeaders && this.view) {\n this.beforeViewRender.emit({\n header: this.columnHeaders,\n body: this.view.days,\n period: this.view.period,\n });\n }\n }\n}\nCalendarMonthViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: CalendarUtils }, { token: LOCALE_ID }, { token: DateAdapter }], target: i0.ɵɵFactoryTarget.Component });\nCalendarMonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarMonthViewComponent, selector: \"mwl-calendar-month-view\", inputs: { viewDate: \"viewDate\", events: \"events\", excludeDays: \"excludeDays\", activeDayIsOpen: \"activeDayIsOpen\", activeDay: \"activeDay\", refresh: \"refresh\", locale: \"locale\", tooltipPlacement: \"tooltipPlacement\", tooltipTemplate: \"tooltipTemplate\", tooltipAppendToBody: \"tooltipAppendToBody\", tooltipDelay: \"tooltipDelay\", weekStartsOn: \"weekStartsOn\", headerTemplate: \"headerTemplate\", cellTemplate: \"cellTemplate\", openDayEventsTemplate: \"openDayEventsTemplate\", eventTitleTemplate: \"eventTitleTemplate\", eventActionsTemplate: \"eventActionsTemplate\", weekendDays: \"weekendDays\" }, outputs: { beforeViewRender: \"beforeViewRender\", dayClicked: \"dayClicked\", eventClicked: \"eventClicked\", columnHeaderClicked: \"columnHeaderClicked\", eventTimesChanged: \"eventTimesChanged\" }, usesOnChanges: true, ngImport: i0, template: `\n
\n \n \n
\n \n
\n \n \n
\n \n \n
\n
\n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: i2.DroppableDirective, selector: \"[mwlDroppable]\", inputs: [\"dragOverClass\", \"dragActiveClass\", \"validateDrop\"], outputs: [\"dragEnter\", \"dragLeave\", \"dragOver\", \"drop\"] }, { kind: \"directive\", type: ClickDirective, selector: \"[mwlClick]\", inputs: [\"clickListenerDisabled\"], outputs: [\"mwlClick\"] }, { kind: \"directive\", type: KeydownEnterDirective, selector: \"[mwlKeydownEnter]\", outputs: [\"mwlKeydownEnter\"] }, { kind: \"component\", type: CalendarMonthCellComponent, selector: \"mwl-calendar-month-cell\", inputs: [\"day\", \"openDay\", \"locale\", \"tooltipPlacement\", \"tooltipAppendToBody\", \"customTemplate\", \"tooltipTemplate\", \"tooltipDelay\"], outputs: [\"highlightDay\", \"unhighlightDay\", \"eventClicked\"] }, { kind: \"component\", type: CalendarOpenDayEventsComponent, selector: \"mwl-calendar-open-day-events\", inputs: [\"locale\", \"isOpen\", \"events\", \"customTemplate\", \"eventTitleTemplate\", \"eventActionsTemplate\", \"date\"], outputs: [\"eventClicked\"] }, { kind: \"component\", type: CalendarMonthViewHeaderComponent, selector: \"mwl-calendar-month-view-header\", inputs: [\"days\", \"locale\", \"customTemplate\"], outputs: [\"columnHeaderClicked\"] }, { kind: \"pipe\", type: i1.SlicePipe, name: \"slice\" }, { kind: \"pipe\", type: CalendarA11yPipe, name: \"calendarA11y\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthViewComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-month-view',\n template: `\n
\n \n \n
\n \n
\n \n \n
\n \n \n
\n
\n \n `,\n }]\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: CalendarUtils }, { type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: DateAdapter }]; }, propDecorators: { viewDate: [{\n type: Input\n }], events: [{\n type: Input\n }], excludeDays: [{\n type: Input\n }], activeDayIsOpen: [{\n type: Input\n }], activeDay: [{\n type: Input\n }], refresh: [{\n type: Input\n }], locale: [{\n type: Input\n }], tooltipPlacement: [{\n type: Input\n }], tooltipTemplate: [{\n type: Input\n }], tooltipAppendToBody: [{\n type: Input\n }], tooltipDelay: [{\n type: Input\n }], weekStartsOn: [{\n type: Input\n }], headerTemplate: [{\n type: Input\n }], cellTemplate: [{\n type: Input\n }], openDayEventsTemplate: [{\n type: Input\n }], eventTitleTemplate: [{\n type: Input\n }], eventActionsTemplate: [{\n type: Input\n }], weekendDays: [{\n type: Input\n }], beforeViewRender: [{\n type: Output\n }], dayClicked: [{\n type: Output\n }], eventClicked: [{\n type: Output\n }], columnHeaderClicked: [{\n type: Output\n }], eventTimesChanged: [{\n type: Output\n }] } });\n\nclass CalendarMonthModule {\n}\nCalendarMonthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCalendarMonthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthModule, declarations: [CalendarMonthViewComponent,\n CalendarMonthCellComponent,\n CalendarOpenDayEventsComponent,\n CalendarMonthViewHeaderComponent], imports: [CommonModule, DragAndDropModule, CalendarCommonModule], exports: [DragAndDropModule,\n CalendarMonthViewComponent,\n CalendarMonthCellComponent,\n CalendarOpenDayEventsComponent,\n CalendarMonthViewHeaderComponent] });\nCalendarMonthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthModule, imports: [CommonModule, DragAndDropModule, CalendarCommonModule, DragAndDropModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarMonthModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, DragAndDropModule, CalendarCommonModule],\n declarations: [\n CalendarMonthViewComponent,\n CalendarMonthCellComponent,\n CalendarOpenDayEventsComponent,\n CalendarMonthViewHeaderComponent,\n ],\n exports: [\n DragAndDropModule,\n CalendarMonthViewComponent,\n CalendarMonthCellComponent,\n CalendarOpenDayEventsComponent,\n CalendarMonthViewHeaderComponent,\n ],\n }]\n }] });\n\nclass CalendarDragHelper {\n constructor(dragContainerElement, draggableElement) {\n this.dragContainerElement = dragContainerElement;\n this.startPosition = draggableElement.getBoundingClientRect();\n }\n validateDrag({ x, y, snapDraggedEvents, dragAlreadyMoved, transform, }) {\n const isDraggedWithinThreshold = isWithinThreshold({ x, y }) || dragAlreadyMoved;\n if (snapDraggedEvents) {\n const inner = Object.assign({}, this.startPosition, {\n left: this.startPosition.left + transform.x,\n right: this.startPosition.right + transform.x,\n top: this.startPosition.top + transform.y,\n bottom: this.startPosition.bottom + transform.y,\n });\n if (isDraggedWithinThreshold) {\n const outer = this.dragContainerElement.getBoundingClientRect();\n const isTopInside = outer.top < inner.top && inner.top < outer.bottom;\n const isBottomInside = outer.top < inner.bottom && inner.bottom < outer.bottom;\n return (isInsideLeftAndRight(outer, inner) && (isTopInside || isBottomInside));\n }\n /* istanbul ignore next */\n return false;\n }\n else {\n return isDraggedWithinThreshold;\n }\n }\n}\n\nclass CalendarResizeHelper {\n constructor(resizeContainerElement, minWidth, rtl) {\n this.resizeContainerElement = resizeContainerElement;\n this.minWidth = minWidth;\n this.rtl = rtl;\n }\n validateResize({ rectangle, edges }) {\n if (this.rtl) {\n // TODO - find a way of testing this, for some reason the tests always fail but it does actually work\n /* istanbul ignore next */\n if (typeof edges.left !== 'undefined') {\n rectangle.left -= edges.left;\n rectangle.right += edges.left;\n }\n else if (typeof edges.right !== 'undefined') {\n rectangle.left += edges.right;\n rectangle.right -= edges.right;\n }\n rectangle.width = rectangle.right - rectangle.left;\n }\n if (this.minWidth &&\n Math.ceil(rectangle.width) < Math.ceil(this.minWidth)) {\n return false;\n }\n return isInside(this.resizeContainerElement.getBoundingClientRect(), rectangle);\n }\n}\n\nclass CalendarWeekViewHeaderComponent {\n constructor() {\n this.dayHeaderClicked = new EventEmitter();\n this.eventDropped = new EventEmitter();\n this.dragEnter = new EventEmitter();\n this.trackByWeekDayHeaderDate = trackByWeekDayHeaderDate;\n }\n}\nCalendarWeekViewHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarWeekViewHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarWeekViewHeaderComponent, selector: \"mwl-calendar-week-view-header\", inputs: { days: \"days\", locale: \"locale\", customTemplate: \"customTemplate\" }, outputs: { dayHeaderClicked: \"dayHeaderClicked\", eventDropped: \"eventDropped\", dragEnter: \"dragEnter\" }, ngImport: i0, template: `\n \n
\n \n {{ day.date | calendarDate : 'weekViewColumnHeader' : locale }}
\n {{\n day.date | calendarDate : 'weekViewColumnSubHeader' : locale\n }}\n
\n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i2.DroppableDirective, selector: \"[mwlDroppable]\", inputs: [\"dragOverClass\", \"dragActiveClass\", \"validateDrop\"], outputs: [\"dragEnter\", \"dragLeave\", \"dragOver\", \"drop\"] }, { kind: \"directive\", type: ClickDirective, selector: \"[mwlClick]\", inputs: [\"clickListenerDisabled\"], outputs: [\"mwlClick\"] }, { kind: \"pipe\", type: CalendarDatePipe, name: \"calendarDate\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewHeaderComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-week-view-header',\n template: `\n \n
\n \n {{ day.date | calendarDate : 'weekViewColumnHeader' : locale }}
\n {{\n day.date | calendarDate : 'weekViewColumnSubHeader' : locale\n }}\n
\n \n \n \n \n `,\n }]\n }], propDecorators: { days: [{\n type: Input\n }], locale: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }], dayHeaderClicked: [{\n type: Output\n }], eventDropped: [{\n type: Output\n }], dragEnter: [{\n type: Output\n }] } });\n\nclass CalendarWeekViewEventComponent {\n constructor() {\n this.eventClicked = new EventEmitter();\n }\n}\nCalendarWeekViewEventComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewEventComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarWeekViewEventComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarWeekViewEventComponent, selector: \"mwl-calendar-week-view-event\", inputs: { locale: \"locale\", weekEvent: \"weekEvent\", tooltipPlacement: \"tooltipPlacement\", tooltipAppendToBody: \"tooltipAppendToBody\", tooltipDisabled: \"tooltipDisabled\", tooltipDelay: \"tooltipDelay\", customTemplate: \"customTemplate\", eventTitleTemplate: \"eventTitleTemplate\", eventActionsTemplate: \"eventActionsTemplate\", tooltipTemplate: \"tooltipTemplate\", column: \"column\", daysInWeek: \"daysInWeek\" }, outputs: { eventClicked: \"eventClicked\" }, ngImport: i0, template: `\n \n \n \n \n &ngsp;\n \n \n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"component\", type: CalendarEventActionsComponent, selector: \"mwl-calendar-event-actions\", inputs: [\"event\", \"customTemplate\"] }, { kind: \"component\", type: CalendarEventTitleComponent, selector: \"mwl-calendar-event-title\", inputs: [\"event\", \"customTemplate\", \"view\"] }, { kind: \"directive\", type: CalendarTooltipDirective, selector: \"[mwlCalendarTooltip]\", inputs: [\"mwlCalendarTooltip\", \"tooltipPlacement\", \"tooltipTemplate\", \"tooltipEvent\", \"tooltipAppendToBody\", \"tooltipDelay\"] }, { kind: \"directive\", type: ClickDirective, selector: \"[mwlClick]\", inputs: [\"clickListenerDisabled\"], outputs: [\"mwlClick\"] }, { kind: \"directive\", type: KeydownEnterDirective, selector: \"[mwlKeydownEnter]\", outputs: [\"mwlKeydownEnter\"] }, { kind: \"pipe\", type: CalendarEventTitlePipe, name: \"calendarEventTitle\" }, { kind: \"pipe\", type: CalendarA11yPipe, name: \"calendarA11y\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewEventComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-week-view-event',\n template: `\n \n \n \n \n &ngsp;\n \n \n \n \n \n \n `,\n }]\n }], propDecorators: { locale: [{\n type: Input\n }], weekEvent: [{\n type: Input\n }], tooltipPlacement: [{\n type: Input\n }], tooltipAppendToBody: [{\n type: Input\n }], tooltipDisabled: [{\n type: Input\n }], tooltipDelay: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }], eventTitleTemplate: [{\n type: Input\n }], eventActionsTemplate: [{\n type: Input\n }], tooltipTemplate: [{\n type: Input\n }], column: [{\n type: Input\n }], daysInWeek: [{\n type: Input\n }], eventClicked: [{\n type: Output\n }] } });\n\nclass CalendarWeekViewHourSegmentComponent {\n}\nCalendarWeekViewHourSegmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewHourSegmentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarWeekViewHourSegmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarWeekViewHourSegmentComponent, selector: \"mwl-calendar-week-view-hour-segment\", inputs: { segment: \"segment\", segmentHeight: \"segmentHeight\", locale: \"locale\", isTimeLabel: \"isTimeLabel\", daysInWeek: \"daysInWeek\", customTemplate: \"customTemplate\" }, ngImport: i0, template: `\n \n \n
\n {{\n segment.displayDate\n | calendarDate\n : (daysInWeek === 1 ? 'dayViewHour' : 'weekViewHour')\n : locale\n }}\n
\n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: CalendarDatePipe, name: \"calendarDate\" }, { kind: \"pipe\", type: CalendarA11yPipe, name: \"calendarA11y\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewHourSegmentComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-week-view-hour-segment',\n template: `\n \n \n
\n {{\n segment.displayDate\n | calendarDate\n : (daysInWeek === 1 ? 'dayViewHour' : 'weekViewHour')\n : locale\n }}\n
\n \n \n \n \n `,\n }]\n }], propDecorators: { segment: [{\n type: Input\n }], segmentHeight: [{\n type: Input\n }], locale: [{\n type: Input\n }], isTimeLabel: [{\n type: Input\n }], daysInWeek: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }] } });\n\nclass CalendarWeekViewCurrentTimeMarkerComponent {\n constructor(dateAdapter, zone) {\n this.dateAdapter = dateAdapter;\n this.zone = zone;\n this.columnDate$ = new BehaviorSubject(undefined);\n this.marker$ = this.zone.onStable.pipe(switchMap(() => interval(60 * 1000)), startWith(0), switchMapTo(this.columnDate$), map((columnDate) => {\n const startOfDay = this.dateAdapter.setMinutes(this.dateAdapter.setHours(columnDate, this.dayStartHour), this.dayStartMinute);\n const endOfDay = this.dateAdapter.setMinutes(this.dateAdapter.setHours(columnDate, this.dayEndHour), this.dayEndMinute);\n const hourHeightModifier = (this.hourSegments * this.hourSegmentHeight) /\n (this.hourDuration || 60);\n const now = new Date();\n return {\n isVisible: this.dateAdapter.isSameDay(columnDate, now) &&\n now >= startOfDay &&\n now <= endOfDay,\n top: this.dateAdapter.differenceInMinutes(now, startOfDay) *\n hourHeightModifier,\n };\n }));\n }\n ngOnChanges(changes) {\n if (changes.columnDate) {\n this.columnDate$.next(changes.columnDate.currentValue);\n }\n }\n}\nCalendarWeekViewCurrentTimeMarkerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewCurrentTimeMarkerComponent, deps: [{ token: DateAdapter }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nCalendarWeekViewCurrentTimeMarkerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarWeekViewCurrentTimeMarkerComponent, selector: \"mwl-calendar-week-view-current-time-marker\", inputs: { columnDate: \"columnDate\", dayStartHour: \"dayStartHour\", dayStartMinute: \"dayStartMinute\", dayEndHour: \"dayEndHour\", dayEndMinute: \"dayEndMinute\", hourSegments: \"hourSegments\", hourDuration: \"hourDuration\", hourSegmentHeight: \"hourSegmentHeight\", customTemplate: \"customTemplate\" }, usesOnChanges: true, ngImport: i0, template: `\n \n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: i1.AsyncPipe, name: \"async\" }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewCurrentTimeMarkerComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-week-view-current-time-marker',\n template: `\n \n \n \n \n \n `,\n }]\n }], ctorParameters: function () { return [{ type: DateAdapter }, { type: i0.NgZone }]; }, propDecorators: { columnDate: [{\n type: Input\n }], dayStartHour: [{\n type: Input\n }], dayStartMinute: [{\n type: Input\n }], dayEndHour: [{\n type: Input\n }], dayEndMinute: [{\n type: Input\n }], hourSegments: [{\n type: Input\n }], hourDuration: [{\n type: Input\n }], hourSegmentHeight: [{\n type: Input\n }], customTemplate: [{\n type: Input\n }] } });\n\n/**\n * Shows all events on a given week. Example usage:\n *\n * ```typescript\n * \n * \n * ```\n */\nclass CalendarWeekViewComponent {\n /**\n * @hidden\n */\n constructor(cdr, utils, locale, dateAdapter, element) {\n this.cdr = cdr;\n this.utils = utils;\n this.dateAdapter = dateAdapter;\n this.element = element;\n /**\n * An array of events to display on view\n * The schema is available here: https://github.com/mattlewis92/calendar-utils/blob/c51689985f59a271940e30bc4e2c4e1fee3fcb5c/src/calendarUtils.ts#L49-L63\n */\n this.events = [];\n /**\n * An array of day indexes (0 = sunday, 1 = monday etc) that will be hidden on the view\n */\n this.excludeDays = [];\n /**\n * The placement of the event tooltip\n */\n this.tooltipPlacement = 'auto';\n /**\n * Whether to append tooltips to the body or next to the trigger element\n */\n this.tooltipAppendToBody = true;\n /**\n * The delay in milliseconds before the tooltip should be displayed. If not provided the tooltip\n * will be displayed immediately.\n */\n this.tooltipDelay = null;\n /**\n * The precision to display events.\n * `days` will round event start and end dates to the nearest day and `minutes` will not do this rounding\n */\n this.precision = 'days';\n /**\n * Whether to snap events to a grid when dragging\n */\n this.snapDraggedEvents = true;\n /**\n * The number of segments in an hour. Must divide equally into 60.\n */\n this.hourSegments = 2;\n /**\n * The height in pixels of each hour segment\n */\n this.hourSegmentHeight = 30;\n /**\n * The minimum height in pixels of each event\n */\n this.minimumEventHeight = 30;\n /**\n * The day start hours in 24 hour time. Must be 0-23\n */\n this.dayStartHour = 0;\n /**\n * The day start minutes. Must be 0-59\n */\n this.dayStartMinute = 0;\n /**\n * The day end hours in 24 hour time. Must be 0-23\n */\n this.dayEndHour = 23;\n /**\n * The day end minutes. Must be 0-59\n */\n this.dayEndMinute = 59;\n /**\n * Called when a header week day is clicked. Adding a `cssClass` property on `$event.day` will add that class to the header element\n */\n this.dayHeaderClicked = new EventEmitter();\n /**\n * Called when an event title is clicked\n */\n this.eventClicked = new EventEmitter();\n /**\n * Called when an event is resized or dragged and dropped\n */\n this.eventTimesChanged = new EventEmitter();\n /**\n * An output that will be called before the view is rendered for the current week.\n * If you add the `cssClass` property to a day in the header it will add that class to the cell element in the template\n */\n this.beforeViewRender = new EventEmitter();\n /**\n * Called when an hour segment is clicked\n */\n this.hourSegmentClicked = new EventEmitter();\n /**\n * @hidden\n */\n this.allDayEventResizes = new Map();\n /**\n * @hidden\n */\n this.timeEventResizes = new Map();\n /**\n * @hidden\n */\n this.eventDragEnterByType = {\n allDay: 0,\n time: 0,\n };\n /**\n * @hidden\n */\n this.dragActive = false;\n /**\n * @hidden\n */\n this.dragAlreadyMoved = false;\n /**\n * @hidden\n */\n this.calendarId = Symbol('angular calendar week view id');\n /**\n * @hidden\n */\n this.rtl = false;\n /**\n * @hidden\n */\n this.trackByWeekDayHeaderDate = trackByWeekDayHeaderDate;\n /**\n * @hidden\n */\n this.trackByHourSegment = trackByHourSegment;\n /**\n * @hidden\n */\n this.trackByHour = trackByHour;\n /**\n * @hidden\n */\n this.trackByWeekAllDayEvent = trackByWeekAllDayEvent;\n /**\n * @hidden\n */\n this.trackByWeekTimeEvent = trackByWeekTimeEvent;\n /**\n * @hidden\n */\n this.trackByHourColumn = (index, column) => column.hours[0] ? column.hours[0].segments[0].date.toISOString() : column;\n /**\n * @hidden\n */\n this.trackById = (index, row) => row.id;\n this.locale = locale;\n }\n /**\n * @hidden\n */\n ngOnInit() {\n if (this.refresh) {\n this.refreshSubscription = this.refresh.subscribe(() => {\n this.refreshAll();\n this.cdr.markForCheck();\n });\n }\n }\n /**\n * @hidden\n */\n ngOnChanges(changes) {\n const refreshHeader = changes.viewDate ||\n changes.excludeDays ||\n changes.weekendDays ||\n changes.daysInWeek ||\n changes.weekStartsOn;\n const refreshBody = changes.viewDate ||\n changes.dayStartHour ||\n changes.dayStartMinute ||\n changes.dayEndHour ||\n changes.dayEndMinute ||\n changes.hourSegments ||\n changes.hourDuration ||\n changes.weekStartsOn ||\n changes.weekendDays ||\n changes.excludeDays ||\n changes.hourSegmentHeight ||\n changes.events ||\n changes.daysInWeek ||\n changes.minimumEventHeight;\n if (refreshHeader) {\n this.refreshHeader();\n }\n if (changes.events) {\n validateEvents(this.events);\n }\n if (refreshBody) {\n this.refreshBody();\n }\n if (refreshHeader || refreshBody) {\n this.emitBeforeViewRender();\n }\n }\n /**\n * @hidden\n */\n ngOnDestroy() {\n if (this.refreshSubscription) {\n this.refreshSubscription.unsubscribe();\n }\n }\n /**\n * @hidden\n */\n ngAfterViewInit() {\n this.rtl =\n typeof window !== 'undefined' &&\n getComputedStyle(this.element.nativeElement).direction === 'rtl';\n this.cdr.detectChanges();\n }\n /**\n * @hidden\n */\n timeEventResizeStarted(eventsContainer, timeEvent, resizeEvent) {\n this.timeEventResizes.set(timeEvent.event, resizeEvent);\n this.resizeStarted(eventsContainer, timeEvent);\n }\n /**\n * @hidden\n */\n timeEventResizing(timeEvent, resizeEvent) {\n this.timeEventResizes.set(timeEvent.event, resizeEvent);\n const adjustedEvents = new Map();\n const tempEvents = [...this.events];\n this.timeEventResizes.forEach((lastResizeEvent, event) => {\n const newEventDates = this.getTimeEventResizedDates(event, lastResizeEvent);\n const adjustedEvent = { ...event, ...newEventDates };\n adjustedEvents.set(adjustedEvent, event);\n const eventIndex = tempEvents.indexOf(event);\n tempEvents[eventIndex] = adjustedEvent;\n });\n this.restoreOriginalEvents(tempEvents, adjustedEvents, true);\n }\n /**\n * @hidden\n */\n timeEventResizeEnded(timeEvent) {\n this.view = this.getWeekView(this.events);\n const lastResizeEvent = this.timeEventResizes.get(timeEvent.event);\n if (lastResizeEvent) {\n this.timeEventResizes.delete(timeEvent.event);\n const newEventDates = this.getTimeEventResizedDates(timeEvent.event, lastResizeEvent);\n this.eventTimesChanged.emit({\n newStart: newEventDates.start,\n newEnd: newEventDates.end,\n event: timeEvent.event,\n type: CalendarEventTimesChangedEventType.Resize,\n });\n }\n }\n /**\n * @hidden\n */\n allDayEventResizeStarted(allDayEventsContainer, allDayEvent, resizeEvent) {\n this.allDayEventResizes.set(allDayEvent, {\n originalOffset: allDayEvent.offset,\n originalSpan: allDayEvent.span,\n edge: typeof resizeEvent.edges.left !== 'undefined' ? 'left' : 'right',\n });\n this.resizeStarted(allDayEventsContainer, allDayEvent, this.getDayColumnWidth(allDayEventsContainer));\n }\n /**\n * @hidden\n */\n allDayEventResizing(allDayEvent, resizeEvent, dayWidth) {\n const currentResize = this.allDayEventResizes.get(allDayEvent);\n const modifier = this.rtl ? -1 : 1;\n if (typeof resizeEvent.edges.left !== 'undefined') {\n const diff = Math.round(+resizeEvent.edges.left / dayWidth) * modifier;\n allDayEvent.offset = currentResize.originalOffset + diff;\n allDayEvent.span = currentResize.originalSpan - diff;\n }\n else if (typeof resizeEvent.edges.right !== 'undefined') {\n const diff = Math.round(+resizeEvent.edges.right / dayWidth) * modifier;\n allDayEvent.span = currentResize.originalSpan + diff;\n }\n }\n /**\n * @hidden\n */\n allDayEventResizeEnded(allDayEvent) {\n const currentResize = this.allDayEventResizes.get(allDayEvent);\n if (currentResize) {\n const allDayEventResizingBeforeStart = currentResize.edge === 'left';\n let daysDiff;\n if (allDayEventResizingBeforeStart) {\n daysDiff = allDayEvent.offset - currentResize.originalOffset;\n }\n else {\n daysDiff = allDayEvent.span - currentResize.originalSpan;\n }\n allDayEvent.offset = currentResize.originalOffset;\n allDayEvent.span = currentResize.originalSpan;\n const newDates = this.getAllDayEventResizedDates(allDayEvent.event, daysDiff, allDayEventResizingBeforeStart);\n this.eventTimesChanged.emit({\n newStart: newDates.start,\n newEnd: newDates.end,\n event: allDayEvent.event,\n type: CalendarEventTimesChangedEventType.Resize,\n });\n this.allDayEventResizes.delete(allDayEvent);\n }\n }\n /**\n * @hidden\n */\n getDayColumnWidth(eventRowContainer) {\n return Math.floor(eventRowContainer.offsetWidth / this.days.length);\n }\n /**\n * @hidden\n */\n dateDragEnter(date) {\n this.lastDragEnterDate = date;\n }\n /**\n * @hidden\n */\n eventDropped(dropEvent, date, allDay) {\n if (shouldFireDroppedEvent(dropEvent, date, allDay, this.calendarId) &&\n this.lastDragEnterDate.getTime() === date.getTime() &&\n (!this.snapDraggedEvents ||\n dropEvent.dropData.event !== this.lastDraggedEvent)) {\n this.eventTimesChanged.emit({\n type: CalendarEventTimesChangedEventType.Drop,\n event: dropEvent.dropData.event,\n newStart: date,\n allDay,\n });\n }\n this.lastDraggedEvent = null;\n }\n /**\n * @hidden\n */\n dragEnter(type) {\n this.eventDragEnterByType[type]++;\n }\n /**\n * @hidden\n */\n dragLeave(type) {\n this.eventDragEnterByType[type]--;\n }\n /**\n * @hidden\n */\n dragStarted(eventsContainerElement, eventElement, event, useY) {\n this.dayColumnWidth = this.getDayColumnWidth(eventsContainerElement);\n const dragHelper = new CalendarDragHelper(eventsContainerElement, eventElement);\n this.validateDrag = ({ x, y, transform }) => {\n const isAllowed = this.allDayEventResizes.size === 0 &&\n this.timeEventResizes.size === 0 &&\n dragHelper.validateDrag({\n x,\n y,\n snapDraggedEvents: this.snapDraggedEvents,\n dragAlreadyMoved: this.dragAlreadyMoved,\n transform,\n });\n if (isAllowed && this.validateEventTimesChanged) {\n const newEventTimes = this.getDragMovedEventTimes(event, { x, y }, this.dayColumnWidth, useY);\n return this.validateEventTimesChanged({\n type: CalendarEventTimesChangedEventType.Drag,\n event: event.event,\n newStart: newEventTimes.start,\n newEnd: newEventTimes.end,\n });\n }\n return isAllowed;\n };\n this.dragActive = true;\n this.dragAlreadyMoved = false;\n this.lastDraggedEvent = null;\n this.eventDragEnterByType = {\n allDay: 0,\n time: 0,\n };\n if (!this.snapDraggedEvents && useY) {\n this.view.hourColumns.forEach((column) => {\n const linkedEvent = column.events.find((columnEvent) => columnEvent.event === event.event && columnEvent !== event);\n // hide any linked events while dragging\n if (linkedEvent) {\n linkedEvent.width = 0;\n linkedEvent.height = 0;\n }\n });\n }\n this.cdr.markForCheck();\n }\n /**\n * @hidden\n */\n dragMove(dayEvent, dragEvent) {\n const newEventTimes = this.getDragMovedEventTimes(dayEvent, dragEvent, this.dayColumnWidth, true);\n const originalEvent = dayEvent.event;\n const adjustedEvent = { ...originalEvent, ...newEventTimes };\n const tempEvents = this.events.map((event) => {\n if (event === originalEvent) {\n return adjustedEvent;\n }\n return event;\n });\n this.restoreOriginalEvents(tempEvents, new Map([[adjustedEvent, originalEvent]]), this.snapDraggedEvents);\n this.dragAlreadyMoved = true;\n }\n /**\n * @hidden\n */\n allDayEventDragMove() {\n this.dragAlreadyMoved = true;\n }\n /**\n * @hidden\n */\n dragEnded(weekEvent, dragEndEvent, dayWidth, useY = false) {\n this.view = this.getWeekView(this.events);\n this.dragActive = false;\n this.validateDrag = null;\n const { start, end } = this.getDragMovedEventTimes(weekEvent, dragEndEvent, dayWidth, useY);\n if ((this.snapDraggedEvents ||\n this.eventDragEnterByType[useY ? 'time' : 'allDay'] > 0) &&\n isDraggedWithinPeriod(start, end, this.view.period)) {\n this.lastDraggedEvent = weekEvent.event;\n this.eventTimesChanged.emit({\n newStart: start,\n newEnd: end,\n event: weekEvent.event,\n type: CalendarEventTimesChangedEventType.Drag,\n allDay: !useY,\n });\n }\n }\n refreshHeader() {\n this.days = this.utils.getWeekViewHeader({\n viewDate: this.viewDate,\n weekStartsOn: this.weekStartsOn,\n excluded: this.excludeDays,\n weekendDays: this.weekendDays,\n ...getWeekViewPeriod(this.dateAdapter, this.viewDate, this.weekStartsOn, this.excludeDays, this.daysInWeek),\n });\n }\n refreshBody() {\n this.view = this.getWeekView(this.events);\n }\n refreshAll() {\n this.refreshHeader();\n this.refreshBody();\n this.emitBeforeViewRender();\n }\n emitBeforeViewRender() {\n if (this.days && this.view) {\n this.beforeViewRender.emit({\n header: this.days,\n ...this.view,\n });\n }\n }\n getWeekView(events) {\n return this.utils.getWeekView({\n events,\n viewDate: this.viewDate,\n weekStartsOn: this.weekStartsOn,\n excluded: this.excludeDays,\n precision: this.precision,\n absolutePositionedEvents: true,\n hourSegments: this.hourSegments,\n hourDuration: this.hourDuration,\n dayStart: {\n hour: this.dayStartHour,\n minute: this.dayStartMinute,\n },\n dayEnd: {\n hour: this.dayEndHour,\n minute: this.dayEndMinute,\n },\n segmentHeight: this.hourSegmentHeight,\n weekendDays: this.weekendDays,\n minimumEventHeight: this.minimumEventHeight,\n ...getWeekViewPeriod(this.dateAdapter, this.viewDate, this.weekStartsOn, this.excludeDays, this.daysInWeek),\n });\n }\n getDragMovedEventTimes(weekEvent, dragEndEvent, dayWidth, useY) {\n const daysDragged = (roundToNearest(dragEndEvent.x, dayWidth) / dayWidth) *\n (this.rtl ? -1 : 1);\n const minutesMoved = useY\n ? getMinutesMoved(dragEndEvent.y, this.hourSegments, this.hourSegmentHeight, this.eventSnapSize, this.hourDuration)\n : 0;\n const start = this.dateAdapter.addMinutes(addDaysWithExclusions(this.dateAdapter, weekEvent.event.start, daysDragged, this.excludeDays), minutesMoved);\n let end;\n if (weekEvent.event.end) {\n end = this.dateAdapter.addMinutes(addDaysWithExclusions(this.dateAdapter, weekEvent.event.end, daysDragged, this.excludeDays), minutesMoved);\n }\n return { start, end };\n }\n restoreOriginalEvents(tempEvents, adjustedEvents, snapDraggedEvents = true) {\n const previousView = this.view;\n if (snapDraggedEvents) {\n this.view = this.getWeekView(tempEvents);\n }\n const adjustedEventsArray = tempEvents.filter((event) => adjustedEvents.has(event));\n this.view.hourColumns.forEach((column, columnIndex) => {\n previousView.hourColumns[columnIndex].hours.forEach((hour, hourIndex) => {\n hour.segments.forEach((segment, segmentIndex) => {\n column.hours[hourIndex].segments[segmentIndex].cssClass =\n segment.cssClass;\n });\n });\n adjustedEventsArray.forEach((adjustedEvent) => {\n const originalEvent = adjustedEvents.get(adjustedEvent);\n const existingColumnEvent = column.events.find((columnEvent) => columnEvent.event ===\n (snapDraggedEvents ? adjustedEvent : originalEvent));\n if (existingColumnEvent) {\n // restore the original event so trackBy kicks in and the dom isn't changed\n existingColumnEvent.event = originalEvent;\n existingColumnEvent['tempEvent'] = adjustedEvent;\n if (!snapDraggedEvents) {\n existingColumnEvent.height = 0;\n existingColumnEvent.width = 0;\n }\n }\n else {\n // add a dummy event to the drop so if the event was removed from the original column the drag doesn't end early\n const event = {\n event: originalEvent,\n left: 0,\n top: 0,\n height: 0,\n width: 0,\n startsBeforeDay: false,\n endsAfterDay: false,\n tempEvent: adjustedEvent,\n };\n column.events.push(event);\n }\n });\n });\n adjustedEvents.clear();\n }\n getTimeEventResizedDates(calendarEvent, resizeEvent) {\n const newEventDates = {\n start: calendarEvent.start,\n end: getDefaultEventEnd(this.dateAdapter, calendarEvent, this.minimumEventHeight),\n };\n const { end, ...eventWithoutEnd } = calendarEvent;\n const smallestResizes = {\n start: this.dateAdapter.addMinutes(newEventDates.end, this.minimumEventHeight * -1),\n end: getDefaultEventEnd(this.dateAdapter, eventWithoutEnd, this.minimumEventHeight),\n };\n const modifier = this.rtl ? -1 : 1;\n if (typeof resizeEvent.edges.left !== 'undefined') {\n const daysDiff = Math.round(+resizeEvent.edges.left / this.dayColumnWidth) * modifier;\n const newStart = addDaysWithExclusions(this.dateAdapter, newEventDates.start, daysDiff, this.excludeDays);\n if (newStart < smallestResizes.start) {\n newEventDates.start = newStart;\n }\n else {\n newEventDates.start = smallestResizes.start;\n }\n }\n else if (typeof resizeEvent.edges.right !== 'undefined') {\n const daysDiff = Math.round(+resizeEvent.edges.right / this.dayColumnWidth) * modifier;\n const newEnd = addDaysWithExclusions(this.dateAdapter, newEventDates.end, daysDiff, this.excludeDays);\n if (newEnd > smallestResizes.end) {\n newEventDates.end = newEnd;\n }\n else {\n newEventDates.end = smallestResizes.end;\n }\n }\n if (typeof resizeEvent.edges.top !== 'undefined') {\n const minutesMoved = getMinutesMoved(resizeEvent.edges.top, this.hourSegments, this.hourSegmentHeight, this.eventSnapSize, this.hourDuration);\n const newStart = this.dateAdapter.addMinutes(newEventDates.start, minutesMoved);\n if (newStart < smallestResizes.start) {\n newEventDates.start = newStart;\n }\n else {\n newEventDates.start = smallestResizes.start;\n }\n }\n else if (typeof resizeEvent.edges.bottom !== 'undefined') {\n const minutesMoved = getMinutesMoved(resizeEvent.edges.bottom, this.hourSegments, this.hourSegmentHeight, this.eventSnapSize, this.hourDuration);\n const newEnd = this.dateAdapter.addMinutes(newEventDates.end, minutesMoved);\n if (newEnd > smallestResizes.end) {\n newEventDates.end = newEnd;\n }\n else {\n newEventDates.end = smallestResizes.end;\n }\n }\n return newEventDates;\n }\n resizeStarted(eventsContainer, event, dayWidth) {\n this.dayColumnWidth = this.getDayColumnWidth(eventsContainer);\n const resizeHelper = new CalendarResizeHelper(eventsContainer, dayWidth, this.rtl);\n this.validateResize = ({ rectangle, edges }) => {\n const isWithinBoundary = resizeHelper.validateResize({\n rectangle: { ...rectangle },\n edges,\n });\n if (isWithinBoundary && this.validateEventTimesChanged) {\n let newEventDates;\n if (!dayWidth) {\n newEventDates = this.getTimeEventResizedDates(event.event, {\n rectangle,\n edges,\n });\n }\n else {\n const modifier = this.rtl ? -1 : 1;\n if (typeof edges.left !== 'undefined') {\n const diff = Math.round(+edges.left / dayWidth) * modifier;\n newEventDates = this.getAllDayEventResizedDates(event.event, diff, !this.rtl);\n }\n else {\n const diff = Math.round(+edges.right / dayWidth) * modifier;\n newEventDates = this.getAllDayEventResizedDates(event.event, diff, this.rtl);\n }\n }\n return this.validateEventTimesChanged({\n type: CalendarEventTimesChangedEventType.Resize,\n event: event.event,\n newStart: newEventDates.start,\n newEnd: newEventDates.end,\n });\n }\n return isWithinBoundary;\n };\n this.cdr.markForCheck();\n }\n /**\n * @hidden\n */\n getAllDayEventResizedDates(event, daysDiff, beforeStart) {\n let start = event.start;\n let end = event.end || event.start;\n if (beforeStart) {\n start = addDaysWithExclusions(this.dateAdapter, start, daysDiff, this.excludeDays);\n }\n else {\n end = addDaysWithExclusions(this.dateAdapter, end, daysDiff, this.excludeDays);\n }\n return { start, end };\n }\n}\nCalendarWeekViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: CalendarUtils }, { token: LOCALE_ID }, { token: DateAdapter }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });\nCalendarWeekViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarWeekViewComponent, selector: \"mwl-calendar-week-view\", inputs: { viewDate: \"viewDate\", events: \"events\", excludeDays: \"excludeDays\", refresh: \"refresh\", locale: \"locale\", tooltipPlacement: \"tooltipPlacement\", tooltipTemplate: \"tooltipTemplate\", tooltipAppendToBody: \"tooltipAppendToBody\", tooltipDelay: \"tooltipDelay\", weekStartsOn: \"weekStartsOn\", headerTemplate: \"headerTemplate\", eventTemplate: \"eventTemplate\", eventTitleTemplate: \"eventTitleTemplate\", eventActionsTemplate: \"eventActionsTemplate\", precision: \"precision\", weekendDays: \"weekendDays\", snapDraggedEvents: \"snapDraggedEvents\", hourSegments: \"hourSegments\", hourDuration: \"hourDuration\", hourSegmentHeight: \"hourSegmentHeight\", minimumEventHeight: \"minimumEventHeight\", dayStartHour: \"dayStartHour\", dayStartMinute: \"dayStartMinute\", dayEndHour: \"dayEndHour\", dayEndMinute: \"dayEndMinute\", hourSegmentTemplate: \"hourSegmentTemplate\", eventSnapSize: \"eventSnapSize\", allDayEventsLabelTemplate: \"allDayEventsLabelTemplate\", daysInWeek: \"daysInWeek\", currentTimeMarkerTemplate: \"currentTimeMarkerTemplate\", validateEventTimesChanged: \"validateEventTimesChanged\", resizeCursors: \"resizeCursors\" }, outputs: { dayHeaderClicked: \"dayHeaderClicked\", eventClicked: \"eventClicked\", eventTimesChanged: \"eventTimesChanged\", beforeViewRender: \"beforeViewRender\", hourSegmentClicked: \"hourSegmentClicked\" }, usesOnChanges: true, ngImport: i0, template: `\n
\n \n \n 0\"\n mwlDroppable\n (dragEnter)=\"dragEnter('allDay')\"\n (dragLeave)=\"dragLeave('allDay')\"\n >\n
\n
\n \n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n 0 && daysInWeek !== 1\"\n >\n \n \n \n \n \n 0\"\n #dayColumns\n >\n \n \n
\n \n
\n \n \n 0\"\n [tooltipDelay]=\"tooltipDelay\"\n [customTemplate]=\"eventTemplate\"\n [eventTitleTemplate]=\"eventTitleTemplate\"\n [eventActionsTemplate]=\"eventActionsTemplate\"\n [column]=\"column\"\n [daysInWeek]=\"daysInWeek\"\n (eventClicked)=\"\n eventClicked.emit({\n event: timeEvent.event,\n sourceEvent: $event.sourceEvent\n })\n \"\n >\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i4.ResizableDirective, selector: \"[mwlResizable]\", inputs: [\"validateResize\", \"enableGhostResize\", \"resizeSnapGrid\", \"resizeCursors\", \"ghostElementPositioning\", \"allowNegativeResizes\", \"mouseMoveThrottleMS\"], outputs: [\"resizeStart\", \"resizing\", \"resizeEnd\"], exportAs: [\"mwlResizable\"] }, { kind: \"directive\", type: i4.ResizeHandleDirective, selector: \"[mwlResizeHandle]\", inputs: [\"resizeEdges\", \"resizableContainer\"] }, { kind: \"directive\", type: i2.DraggableDirective, selector: \"[mwlDraggable]\", inputs: [\"dropData\", \"dragAxis\", \"dragSnapGrid\", \"ghostDragEnabled\", \"showOriginalElementWhileDragging\", \"validateDrag\", \"dragCursor\", \"dragActiveClass\", \"ghostElementAppendTo\", \"ghostElementTemplate\", \"touchStartLongPress\", \"autoScroll\"], outputs: [\"dragPointerDown\", \"dragStart\", \"ghostElementCreated\", \"dragging\", \"dragEnd\"] }, { kind: \"directive\", type: i2.DroppableDirective, selector: \"[mwlDroppable]\", inputs: [\"dragOverClass\", \"dragActiveClass\", \"validateDrop\"], outputs: [\"dragEnter\", \"dragLeave\", \"dragOver\", \"drop\"] }, { kind: \"directive\", type: ClickDirective, selector: \"[mwlClick]\", inputs: [\"clickListenerDisabled\"], outputs: [\"mwlClick\"] }, { kind: \"component\", type: CalendarWeekViewHeaderComponent, selector: \"mwl-calendar-week-view-header\", inputs: [\"days\", \"locale\", \"customTemplate\"], outputs: [\"dayHeaderClicked\", \"eventDropped\", \"dragEnter\"] }, { kind: \"component\", type: CalendarWeekViewEventComponent, selector: \"mwl-calendar-week-view-event\", inputs: [\"locale\", \"weekEvent\", \"tooltipPlacement\", \"tooltipAppendToBody\", \"tooltipDisabled\", \"tooltipDelay\", \"customTemplate\", \"eventTitleTemplate\", \"eventActionsTemplate\", \"tooltipTemplate\", \"column\", \"daysInWeek\"], outputs: [\"eventClicked\"] }, { kind: \"component\", type: CalendarWeekViewHourSegmentComponent, selector: \"mwl-calendar-week-view-hour-segment\", inputs: [\"segment\", \"segmentHeight\", \"locale\", \"isTimeLabel\", \"daysInWeek\", \"customTemplate\"] }, { kind: \"component\", type: CalendarWeekViewCurrentTimeMarkerComponent, selector: \"mwl-calendar-week-view-current-time-marker\", inputs: [\"columnDate\", \"dayStartHour\", \"dayStartMinute\", \"dayEndHour\", \"dayEndMinute\", \"hourSegments\", \"hourDuration\", \"hourSegmentHeight\", \"customTemplate\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekViewComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-week-view',\n template: `\n
\n \n \n 0\"\n mwlDroppable\n (dragEnter)=\"dragEnter('allDay')\"\n (dragLeave)=\"dragLeave('allDay')\"\n >\n
\n
\n \n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n 0 && daysInWeek !== 1\"\n >\n \n \n \n \n \n 0\"\n #dayColumns\n >\n \n \n
\n \n
\n \n \n 0\"\n [tooltipDelay]=\"tooltipDelay\"\n [customTemplate]=\"eventTemplate\"\n [eventTitleTemplate]=\"eventTitleTemplate\"\n [eventActionsTemplate]=\"eventActionsTemplate\"\n [column]=\"column\"\n [daysInWeek]=\"daysInWeek\"\n (eventClicked)=\"\n eventClicked.emit({\n event: timeEvent.event,\n sourceEvent: $event.sourceEvent\n })\n \"\n >\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n `,\n }]\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: CalendarUtils }, { type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: DateAdapter }, { type: i0.ElementRef }]; }, propDecorators: { viewDate: [{\n type: Input\n }], events: [{\n type: Input\n }], excludeDays: [{\n type: Input\n }], refresh: [{\n type: Input\n }], locale: [{\n type: Input\n }], tooltipPlacement: [{\n type: Input\n }], tooltipTemplate: [{\n type: Input\n }], tooltipAppendToBody: [{\n type: Input\n }], tooltipDelay: [{\n type: Input\n }], weekStartsOn: [{\n type: Input\n }], headerTemplate: [{\n type: Input\n }], eventTemplate: [{\n type: Input\n }], eventTitleTemplate: [{\n type: Input\n }], eventActionsTemplate: [{\n type: Input\n }], precision: [{\n type: Input\n }], weekendDays: [{\n type: Input\n }], snapDraggedEvents: [{\n type: Input\n }], hourSegments: [{\n type: Input\n }], hourDuration: [{\n type: Input\n }], hourSegmentHeight: [{\n type: Input\n }], minimumEventHeight: [{\n type: Input\n }], dayStartHour: [{\n type: Input\n }], dayStartMinute: [{\n type: Input\n }], dayEndHour: [{\n type: Input\n }], dayEndMinute: [{\n type: Input\n }], hourSegmentTemplate: [{\n type: Input\n }], eventSnapSize: [{\n type: Input\n }], allDayEventsLabelTemplate: [{\n type: Input\n }], daysInWeek: [{\n type: Input\n }], currentTimeMarkerTemplate: [{\n type: Input\n }], validateEventTimesChanged: [{\n type: Input\n }], resizeCursors: [{\n type: Input\n }], dayHeaderClicked: [{\n type: Output\n }], eventClicked: [{\n type: Output\n }], eventTimesChanged: [{\n type: Output\n }], beforeViewRender: [{\n type: Output\n }], hourSegmentClicked: [{\n type: Output\n }] } });\n\nclass CalendarWeekModule {\n}\nCalendarWeekModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCalendarWeekModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekModule, declarations: [CalendarWeekViewComponent,\n CalendarWeekViewHeaderComponent,\n CalendarWeekViewEventComponent,\n CalendarWeekViewHourSegmentComponent,\n CalendarWeekViewCurrentTimeMarkerComponent], imports: [CommonModule,\n ResizableModule,\n DragAndDropModule,\n CalendarCommonModule], exports: [ResizableModule,\n DragAndDropModule,\n CalendarWeekViewComponent,\n CalendarWeekViewHeaderComponent,\n CalendarWeekViewEventComponent,\n CalendarWeekViewHourSegmentComponent,\n CalendarWeekViewCurrentTimeMarkerComponent] });\nCalendarWeekModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekModule, imports: [CommonModule,\n ResizableModule,\n DragAndDropModule,\n CalendarCommonModule, ResizableModule,\n DragAndDropModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarWeekModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n CommonModule,\n ResizableModule,\n DragAndDropModule,\n CalendarCommonModule,\n ],\n declarations: [\n CalendarWeekViewComponent,\n CalendarWeekViewHeaderComponent,\n CalendarWeekViewEventComponent,\n CalendarWeekViewHourSegmentComponent,\n CalendarWeekViewCurrentTimeMarkerComponent,\n ],\n exports: [\n ResizableModule,\n DragAndDropModule,\n CalendarWeekViewComponent,\n CalendarWeekViewHeaderComponent,\n CalendarWeekViewEventComponent,\n CalendarWeekViewHourSegmentComponent,\n CalendarWeekViewCurrentTimeMarkerComponent,\n ],\n }]\n }] });\n\n/**\n * Shows all events on a given day. Example usage:\n *\n * ```typescript\n * \n * \n * ```\n */\nclass CalendarDayViewComponent {\n constructor() {\n /**\n * An array of events to display on view\n * The schema is available here: https://github.com/mattlewis92/calendar-utils/blob/c51689985f59a271940e30bc4e2c4e1fee3fcb5c/src/calendarUtils.ts#L49-L63\n */\n this.events = [];\n /**\n * The number of segments in an hour. Must divide equally into 60.\n */\n this.hourSegments = 2;\n /**\n * The height in pixels of each hour segment\n */\n this.hourSegmentHeight = 30;\n /**\n * The minimum height in pixels of each event\n */\n this.minimumEventHeight = 30;\n /**\n * The day start hours in 24 hour time. Must be 0-23\n */\n this.dayStartHour = 0;\n /**\n * The day start minutes. Must be 0-59\n */\n this.dayStartMinute = 0;\n /**\n * The day end hours in 24 hour time. Must be 0-23\n */\n this.dayEndHour = 23;\n /**\n * The day end minutes. Must be 0-59\n */\n this.dayEndMinute = 59;\n /**\n * The placement of the event tooltip\n */\n this.tooltipPlacement = 'auto';\n /**\n * Whether to append tooltips to the body or next to the trigger element\n */\n this.tooltipAppendToBody = true;\n /**\n * The delay in milliseconds before the tooltip should be displayed. If not provided the tooltip\n * will be displayed immediately.\n */\n this.tooltipDelay = null;\n /**\n * Whether to snap events to a grid when dragging\n */\n this.snapDraggedEvents = true;\n /**\n * Called when an event title is clicked\n */\n this.eventClicked = new EventEmitter();\n /**\n * Called when an hour segment is clicked\n */\n this.hourSegmentClicked = new EventEmitter();\n /**\n * Called when an event is resized or dragged and dropped\n */\n this.eventTimesChanged = new EventEmitter();\n /**\n * An output that will be called before the view is rendered for the current day.\n * If you add the `cssClass` property to an hour grid segment it will add that class to the hour segment in the template\n */\n this.beforeViewRender = new EventEmitter();\n }\n}\nCalendarDayViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDayViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCalendarDayViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.3\", type: CalendarDayViewComponent, selector: \"mwl-calendar-day-view\", inputs: { viewDate: \"viewDate\", events: \"events\", hourSegments: \"hourSegments\", hourSegmentHeight: \"hourSegmentHeight\", hourDuration: \"hourDuration\", minimumEventHeight: \"minimumEventHeight\", dayStartHour: \"dayStartHour\", dayStartMinute: \"dayStartMinute\", dayEndHour: \"dayEndHour\", dayEndMinute: \"dayEndMinute\", refresh: \"refresh\", locale: \"locale\", eventSnapSize: \"eventSnapSize\", tooltipPlacement: \"tooltipPlacement\", tooltipTemplate: \"tooltipTemplate\", tooltipAppendToBody: \"tooltipAppendToBody\", tooltipDelay: \"tooltipDelay\", hourSegmentTemplate: \"hourSegmentTemplate\", eventTemplate: \"eventTemplate\", eventTitleTemplate: \"eventTitleTemplate\", eventActionsTemplate: \"eventActionsTemplate\", snapDraggedEvents: \"snapDraggedEvents\", allDayEventsLabelTemplate: \"allDayEventsLabelTemplate\", currentTimeMarkerTemplate: \"currentTimeMarkerTemplate\", validateEventTimesChanged: \"validateEventTimesChanged\", resizeCursors: \"resizeCursors\" }, outputs: { eventClicked: \"eventClicked\", hourSegmentClicked: \"hourSegmentClicked\", eventTimesChanged: \"eventTimesChanged\", beforeViewRender: \"beforeViewRender\" }, ngImport: i0, template: `\n \n `, isInline: true, dependencies: [{ kind: \"component\", type: CalendarWeekViewComponent, selector: \"mwl-calendar-week-view\", inputs: [\"viewDate\", \"events\", \"excludeDays\", \"refresh\", \"locale\", \"tooltipPlacement\", \"tooltipTemplate\", \"tooltipAppendToBody\", \"tooltipDelay\", \"weekStartsOn\", \"headerTemplate\", \"eventTemplate\", \"eventTitleTemplate\", \"eventActionsTemplate\", \"precision\", \"weekendDays\", \"snapDraggedEvents\", \"hourSegments\", \"hourDuration\", \"hourSegmentHeight\", \"minimumEventHeight\", \"dayStartHour\", \"dayStartMinute\", \"dayEndHour\", \"dayEndMinute\", \"hourSegmentTemplate\", \"eventSnapSize\", \"allDayEventsLabelTemplate\", \"daysInWeek\", \"currentTimeMarkerTemplate\", \"validateEventTimesChanged\", \"resizeCursors\"], outputs: [\"dayHeaderClicked\", \"eventClicked\", \"eventTimesChanged\", \"beforeViewRender\", \"hourSegmentClicked\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDayViewComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'mwl-calendar-day-view',\n template: `\n \n `,\n }]\n }], propDecorators: { viewDate: [{\n type: Input\n }], events: [{\n type: Input\n }], hourSegments: [{\n type: Input\n }], hourSegmentHeight: [{\n type: Input\n }], hourDuration: [{\n type: Input\n }], minimumEventHeight: [{\n type: Input\n }], dayStartHour: [{\n type: Input\n }], dayStartMinute: [{\n type: Input\n }], dayEndHour: [{\n type: Input\n }], dayEndMinute: [{\n type: Input\n }], refresh: [{\n type: Input\n }], locale: [{\n type: Input\n }], eventSnapSize: [{\n type: Input\n }], tooltipPlacement: [{\n type: Input\n }], tooltipTemplate: [{\n type: Input\n }], tooltipAppendToBody: [{\n type: Input\n }], tooltipDelay: [{\n type: Input\n }], hourSegmentTemplate: [{\n type: Input\n }], eventTemplate: [{\n type: Input\n }], eventTitleTemplate: [{\n type: Input\n }], eventActionsTemplate: [{\n type: Input\n }], snapDraggedEvents: [{\n type: Input\n }], allDayEventsLabelTemplate: [{\n type: Input\n }], currentTimeMarkerTemplate: [{\n type: Input\n }], validateEventTimesChanged: [{\n type: Input\n }], resizeCursors: [{\n type: Input\n }], eventClicked: [{\n type: Output\n }], hourSegmentClicked: [{\n type: Output\n }], eventTimesChanged: [{\n type: Output\n }], beforeViewRender: [{\n type: Output\n }] } });\n\nclass CalendarDayModule {\n}\nCalendarDayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCalendarDayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDayModule, declarations: [CalendarDayViewComponent], imports: [CommonModule, CalendarCommonModule, CalendarWeekModule], exports: [CalendarDayViewComponent] });\nCalendarDayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDayModule, imports: [CommonModule, CalendarCommonModule, CalendarWeekModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarDayModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, CalendarCommonModule, CalendarWeekModule],\n declarations: [CalendarDayViewComponent],\n exports: [CalendarDayViewComponent],\n }]\n }] });\n\n/**\n * The main module of this library. Example usage:\n *\n * ```typescript\n * import { CalenderModule } from 'angular-calendar';\n *\n * @NgModule({\n * imports: [\n * CalenderModule.forRoot()\n * ]\n * })\n * class MyModule {}\n * ```\n *\n */\nclass CalendarModule {\n static forRoot(dateAdapter, config = {}) {\n return {\n ngModule: CalendarModule,\n providers: [\n dateAdapter,\n config.eventTitleFormatter || CalendarEventTitleFormatter,\n config.dateFormatter || CalendarDateFormatter,\n config.utils || CalendarUtils,\n config.a11y || CalendarA11y,\n ],\n };\n }\n}\nCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarModule, imports: [CalendarCommonModule,\n CalendarMonthModule,\n CalendarWeekModule,\n CalendarDayModule], exports: [CalendarCommonModule,\n CalendarMonthModule,\n CalendarWeekModule,\n CalendarDayModule] });\nCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarModule, imports: [CalendarCommonModule,\n CalendarMonthModule,\n CalendarWeekModule,\n CalendarDayModule, CalendarCommonModule,\n CalendarMonthModule,\n CalendarWeekModule,\n CalendarDayModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.3\", ngImport: i0, type: CalendarModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n CalendarCommonModule,\n CalendarMonthModule,\n CalendarWeekModule,\n CalendarDayModule,\n ],\n exports: [\n CalendarCommonModule,\n CalendarMonthModule,\n CalendarWeekModule,\n CalendarDayModule,\n ],\n }]\n }] });\n\n/*\n * Public API Surface of angular-calendar\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CalendarA11y, CalendarAngularDateFormatter, CalendarCommonModule, CalendarDateFormatter, CalendarDayModule, CalendarDayViewComponent, CalendarEventTimesChangedEventType, CalendarEventTitleFormatter, CalendarModule, CalendarMomentDateFormatter, CalendarMonthModule, CalendarMonthViewComponent, CalendarNativeDateFormatter, CalendarUtils, CalendarView, CalendarWeekModule, CalendarWeekViewComponent, DateAdapter, MOMENT, collapseAnimation, getWeekViewPeriod, CalendarA11yPipe as ɵCalendarA11yPipe, CalendarDatePipe as ɵCalendarDatePipe, CalendarEventActionsComponent as ɵCalendarEventActionsComponent, CalendarEventTitleComponent as ɵCalendarEventTitleComponent, CalendarEventTitlePipe as ɵCalendarEventTitlePipe, CalendarMonthCellComponent as ɵCalendarMonthCellComponent, CalendarMonthViewHeaderComponent as ɵCalendarMonthViewHeaderComponent, CalendarNextViewDirective as ɵCalendarNextViewDirective, CalendarOpenDayEventsComponent as ɵCalendarOpenDayEventsComponent, CalendarPreviousViewDirective as ɵCalendarPreviousViewDirective, CalendarTodayDirective as ɵCalendarTodayDirective, CalendarTooltipDirective as ɵCalendarTooltipDirective, CalendarTooltipWindowComponent as ɵCalendarTooltipWindowComponent, CalendarWeekViewCurrentTimeMarkerComponent as ɵCalendarWeekViewCurrentTimeMarkerComponent, CalendarWeekViewEventComponent as ɵCalendarWeekViewEventComponent, CalendarWeekViewHeaderComponent as ɵCalendarWeekViewHeaderComponent, CalendarWeekViewHourSegmentComponent as ɵCalendarWeekViewHourSegmentComponent, ClickDirective as ɵClickDirective, KeydownEnterDirective as ɵKeydownEnterDirective };\n//# sourceMappingURL=angular-calendar.mjs.map\n","import { switchMap } from './switchMap';\nexport function switchMapTo(innerObservable, resultSelector) {\n return resultSelector ? switchMap(() => innerObservable, resultSelector) : switchMap(() => innerObservable);\n}\n","export default function toInteger(dirtyNumber) {\n if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\n return NaN;\n }\n var number = Number(dirtyNumber);\n if (isNaN(number)) {\n return number;\n }\n return number < 0 ? Math.ceil(number) : Math.floor(number);\n}","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport addMilliseconds from \"../addMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_HOUR = 3600000;\n\n/**\n * @name addHours\n * @category Hour Helpers\n * @summary Add the specified number of hours to the given date.\n *\n * @description\n * Add the specified number of hours to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the hours added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 2 hours to 10 July 2014 23:00:00:\n * const result = addHours(new Date(2014, 6, 10, 23, 0), 2)\n * //=> Fri Jul 11 2014 01:00:00\n */\nexport default function addHours(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_HOUR);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nexport default function addMilliseconds(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var timestamp = toDate(dirtyDate).getTime();\n var amount = toInteger(dirtyAmount);\n return new Date(timestamp + amount);\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport default function startOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(0, 0, 0, 0);\n return date;\n}","export const colors: any = {\r\n red: {\r\n primary: '#ad2121',\r\n secondary: '#FAE3E3'\r\n },\r\n blue: {\r\n primary: '#1e90ff',\r\n secondary: '#D1E8FF'\r\n },\r\n yellow: {\r\n primary: '#e3bc08',\r\n secondary: '#FDF1BA'\r\n }\r\n};\r\n","export abstract class BaseLoginProvider {\r\n\r\n constructor() { }\r\n\r\n abstract initialize(): Promise;\r\n abstract openSession(): Promise;\r\n abstract closeSession(): Promise;\r\n abstract getCalendarFreeBusyData(orders): Promise;\r\n abstract addEventToCalendar(calendarAddEventObject): Promise;\r\n\r\n public loadScript(id: string, src: string, onload: any): void {\r\n if (document.getElementById(id)) { return; }\r\n\r\n const signInJS = document.createElement('script');\r\n signInJS.async = true;\r\n signInJS.src = src;\r\n signInJS.onload = onload;\r\n document.head.appendChild(signInJS);\r\n }\r\n}\r\n","import { BaseLoginProvider } from './base-login-provider';\r\n\r\ndeclare const gapi: any;\r\n\r\nexport class GoogleLoginProvider extends BaseLoginProvider {\r\n public static readonly PROVIDER_ID: string = 'GOOGLE';\r\n public static readonly SCOPES = 'https://www.googleapis.com/auth/calendar';\r\n public static readonly DISCOVERY_DOCS = [ 'https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest' ];\r\n private auth2: any;\r\n\r\n constructor(private clientId: string) { super(); }\r\n\r\n public initialize(): Promise {\r\n return new Promise((resolve, reject) => {\r\n this.loadScript(GoogleLoginProvider.PROVIDER_ID,\r\n '//apis.google.com/js/platform.js',\r\n () => {\r\n gapi.load('client:auth2', () => {\r\n this.auth2 = gapi.auth2.init({\r\n clientId: this.clientId,\r\n discoveryDocs: GoogleLoginProvider.DISCOVERY_DOCS,\r\n scope: GoogleLoginProvider.SCOPES\r\n });\r\n\r\n this.auth2.then(() => {\r\n if (this.auth2.isSignedIn.get()) {\r\n resolve(true);\r\n }\r\n });\r\n });\r\n });\r\n });\r\n }\r\n\r\n public openSession(): Promise {\r\n return new Promise((resolve, reject) => {\r\n const promise = this.auth2.signIn();\r\n promise.then(() => {\r\n resolve(true);\r\n }).catch((error) => {\r\n reject(error);\r\n });\r\n });\r\n }\r\n\r\n public closeSession(): Promise {\r\n return new Promise((resolve, reject) => {\r\n this.auth2.signOut().then((err: any) => {\r\n if (err) {\r\n reject(err);\r\n } else {\r\n resolve(true);\r\n }\r\n });\r\n });\r\n }\r\n\r\n public addEventToCalendar(calendarAddEventObject): Promise {\r\n return new Promise((resolve, reject) => {\r\n gapi.client.calendar.events\r\n .insert({\r\n 'calendarId': 'primary',\r\n 'resource': calendarAddEventObject\r\n }).then((response) => {\r\n resolve(response);\r\n }).catch(() => {\r\n reject();\r\n });\r\n });\r\n }\r\n\r\n public getCalendarFreeBusyData(orders): Promise {\r\n return new Promise((resolve, reject) => {\r\n gapi.client.load('calendar', 'v3', () => {\r\n this.readFreeBusyData(orders, resolve, reject);\r\n });\r\n });\r\n }\r\n\r\n private readFreeBusyData(orders, resolve, reject) {\r\n const timeMin = (new Date(orders[ 0 ].orderBookedDate)).toISOString();\r\n const scheduledDate = new Date(this.getOrderScheduledDate(orders));\r\n scheduledDate.setDate(scheduledDate.getDate() + 20);\r\n const timeMax = scheduledDate.toISOString();\r\n gapi.client.calendar.freebusy\r\n .query({\r\n 'items': [\r\n {\r\n 'id': 'primary'\r\n }\r\n ],\r\n 'timeMin': timeMin,\r\n 'timeMax': timeMax\r\n })\r\n .then((response) => {\r\n resolve(response);\r\n })\r\n .catch((error) => {\r\n reject();\r\n });\r\n }\r\n\r\n private getOrderScheduledDate(orders) {\r\n if (orders) {\r\n const orderScheduledDates = [];\r\n for (const order of orders) {\r\n if (order.orderBookedDate) {\r\n orderScheduledDates.push(new Date(order.orderScheduledDate).getTime());\r\n }\r\n }\r\n const maxDate = Math.max.apply(Math, orderScheduledDates);\r\n return new Date(maxDate).toISOString();\r\n }\r\n return '';\r\n }\r\n}\r\n","import { BaseLoginProvider } from './base-login-provider';\r\nimport * as hello from 'hellojs/dist/hello.all.js';\r\nimport * as MicrosoftGraphClient from '@microsoft/microsoft-graph-client';\r\n\r\nexport class OutlookLoginProvider extends BaseLoginProvider {\r\n public static readonly PROVIDER_ID: string = 'OUTLOOK';\r\n public static readonly SCOPES = 'User.Read Calendars.Read Calendars.ReadWrite Calendars.Read.Shared';\r\n\r\n constructor(private clientId: string) { super(); }\r\n\r\n public initialize(): Promise {\r\n return new Promise((resolve, reject) => {\r\n hello.init({\r\n msft: {\r\n id: this.clientId,\r\n oauth: {\r\n version: 2,\r\n auth: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize'\r\n },\r\n scope_delim: ' ',\r\n form: false\r\n },\r\n },\r\n { redirect_uri: '/' }\r\n );\r\n });\r\n }\r\n\r\n public openSession(): Promise {\r\n return new Promise((resolve, reject) => {\r\n hello('msft').login({ scope: OutlookLoginProvider.SCOPES }).then(\r\n (res) => {\r\n resolve(true);\r\n },\r\n e => {\r\n reject(e.error.message);\r\n });\r\n });\r\n }\r\n\r\n public closeSession(): Promise {\r\n return new Promise((resolve, reject) => {\r\n hello('msft').logout().then(\r\n () => {\r\n resolve(true);\r\n },\r\n e => {\r\n reject(e.error.message);\r\n }\r\n );\r\n });\r\n }\r\n\r\n public addEventToCalendar(calendarAddEventObject): Promise {\r\n return new Promise((resolve, reject) => {\r\n const client = this.getClient();\r\n client\r\n .api('/me/events')\r\n .post(calendarAddEventObject, (err, res) => {\r\n if (err) {\r\n reject();\r\n } else {\r\n resolve(true);\r\n }\r\n });\r\n });\r\n }\r\n\r\n public getCalendarFreeBusyData(orders): Promise {\r\n return new Promise((resolve, reject) => {\r\n const client = this.getClient();\r\n client\r\n .api('/me')\r\n .get((err, res) => {\r\n if (err) {\r\n reject();\r\n } else {\r\n this.readOutlookFreeBusyData(client, res, orders, resolve, reject);\r\n }\r\n });\r\n });\r\n }\r\n\r\n private getAccessToken() {\r\n const msft = hello('msft').getAuthResponse();\r\n const accessToken = msft.access_token;\r\n return accessToken;\r\n }\r\n\r\n private getClient(): MicrosoftGraphClient.Client {\r\n return MicrosoftGraphClient.Client.init({\r\n authProvider: (done) => {\r\n done(null, this.getAccessToken());\r\n }\r\n });\r\n }\r\n\r\n private readOutlookFreeBusyData(client, response, orders, resolve, reject) {\r\n const timeMin = (new Date(orders[ 0 ].orderBookedDate)).toISOString();\r\n const scheduledDate = new Date(this.getOrderScheduledDate(orders));\r\n scheduledDate.setDate(scheduledDate.getDate() + 20);\r\n const timeMax = scheduledDate.toISOString();\r\n\r\n const requestBody = {\r\n 'Attendees': [\r\n {\r\n 'Type': 'Required',\r\n 'EmailAddress': {\r\n 'Name': response.givenName,\r\n 'Address': response.mail\r\n }\r\n }\r\n ],\r\n 'TimeConstraint': {\r\n 'ActivityDomain': 'Unrestricted',\r\n 'Timeslots': [\r\n {\r\n 'Start': {\r\n 'DateTime': timeMin,\r\n 'TimeZone': 'Pacific Standard Time'\r\n },\r\n 'End': {\r\n 'DateTime': timeMax,\r\n 'TimeZone': 'Pacific Standard Time'\r\n }\r\n }\r\n ]\r\n },\r\n 'MeetingDuration': 'PT30M',\r\n 'MaxCandidates': 10000\r\n };\r\n\r\n client\r\n .api('/me/findmeetingtimes')\r\n .post(requestBody, (err, res) => {\r\n if (err) {\r\n reject();\r\n } else {\r\n resolve(res);\r\n }\r\n });\r\n }\r\n\r\n private getOrderScheduledDate(orders) {\r\n if (orders) {\r\n const orderScheduledDates = [];\r\n for (const order of orders) {\r\n if (order.orderBookedDate) {\r\n orderScheduledDates.push(new Date(order.orderScheduledDate).getTime());\r\n }\r\n }\r\n const maxDate = Math.max.apply(Math, orderScheduledDates);\r\n return new Date(maxDate).toISOString();\r\n }\r\n return '';\r\n }\r\n}\r\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-calendar-header',\r\n templateUrl: './calendar-header.component.html',\r\n styleUrls: [ './calendar-header.component.scss' ]\r\n})\r\n\r\nexport class CalendarHeaderComponent {\r\n @Input() view: string;\r\n @Input() viewDate: Date;\r\n @Input() locale: string;\r\n @Output() viewChange: EventEmitter = new EventEmitter();\r\n @Output() viewDateChange: EventEmitter = new EventEmitter();\r\n\r\n constructor() { }\r\n\r\n}\r\n","
\r\n
\r\n ‹\r\n
\r\n \r\n
\r\n ›\r\n
\r\n
\r\n

{{ viewDate | calendarDate:(view + 'ViewTitle'):locale }}

\r\n
\r\n
\r\n","
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n Add Calendar\r\n

\r\n \r\n Download\r\n \r\n or Sync with your Calendar\r\n

\r\n {{headerTextAddTocalendar}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n Google Calendar\r\n Outlook Calendar\r\n \r\n \r\n {{addToCalendarConditionText}}\r\n
\r\n \r\n privacy notice\r\n \r\n and \r\n \r\n conditions of use\r\n .\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n My Calendar\r\n \r\n \r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { AddToCalendarComponent } from '../add-to-calendar/add-to-calendar.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', component: AddToCalendarComponent }\r\n];\r\n\r\n@NgModule({\r\n imports: [ RouterModule.forChild(routes) ],\r\n exports: [ RouterModule ]\r\n})\r\nexport class AddToCalendarRoutingModule { }\r\n","import { Component, OnInit, ElementRef, NgZone } from '@angular/core';\r\nimport { ChangeDetectionStrategy, OnDestroy } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { CalendarEvent } from 'angular-calendar';\r\nimport {\r\n setHours, setMinutes, addHours,\r\n startOfDay, endOfDay, subDays,\r\n addDays, endOfMonth, isSameDay, isSameMonth\r\n} from 'date-fns';\r\nimport { colors } from '../calendar-utils/colors';\r\nimport { Subscription } from 'rxjs';\r\nimport {\r\n Order, OrderService, AddToCalendarService,\r\n GoogleCalendarEvent,\r\n DatexPipe, XPOConstants, GoogleAnalyticsConstants\r\n} from '../shared';\r\nimport { MenuService } from '../core/layout/menu.service';\r\nimport { DatePipe } from '@angular/common';\r\nimport { LoaderService } from '../loader/loader';\r\nimport * as moment from 'moment';\r\nimport { GoogleLoginProvider } from '../calendar/providers/google-login-provider';\r\nimport { OutlookLoginProvider } from '../calendar/providers/outlook-login-provider';\r\nimport { AuthService } from '../calendar/services/auth.service';\r\nimport { AppSettings } from '../core/app-settings';\r\nimport { I18nService } from '../shared/services/i18n.service';\r\nimport { SharedService } from '../shared/services/shared.service';\r\n\r\n@Component({\r\n selector: 'app-add-to-calendar',\r\n templateUrl: './add-to-calendar.component.html',\r\n styleUrls: [ './add-to-calendar.component.scss' ],\r\n providers: [ DatePipe, DatexPipe ]\r\n})\r\nexport class AddToCalendarComponent implements OnInit, OnDestroy {\r\n public readonly GOOGLE_PROVIDER_ID = GoogleLoginProvider.PROVIDER_ID;\r\n public readonly OUTLOOK_PROVIDER_ID = OutlookLoginProvider.PROVIDER_ID;\r\n private orderSubscription: Subscription;\r\n public orders: Order[];\r\n public orderItemCollection: Order[] = [];\r\n public isShowUsersCalendar = false;\r\n public selectedCalendarProviderId: string;\r\n public isCalendarSelected = false;\r\n public isTermsAndConditionsAccepted = false;\r\n public isCalendarAdded = false;\r\n public calendarBusyEvents: any[];\r\n public orderScheduledStartTime: number;\r\n public orderScheduledEndTime: number;\r\n public itemDescription: string;\r\n public view = 'day';\r\n public viewDate: Date;\r\n public locale: string;\r\n public calendarEvents: CalendarEvent[];\r\n private calendarAddEvents: CalendarEvent[];\r\n public headerTextAddTocalendar = '';\r\n public startTime: number;\r\n public endTime: number;\r\n public privacyUrl: string;\r\n public conditionUrl: string;\r\n public busyCalendarEvents: any[];\r\n public freeCalendarEvents: any[];\r\n private ordersHolder: any = [];\r\n public confirmationAddToCalendar;\r\n public addToCalendarConditionText: string;\r\n\r\n\r\n constructor(\r\n private addToCalendarService: AddToCalendarService,\r\n private orderService: OrderService,\r\n public menuService: MenuService,\r\n private sharedService: SharedService,\r\n private i18nService: I18nService,\r\n private router: Router,\r\n private element: ElementRef,\r\n private spinner: LoaderService,\r\n private datePipe: DatePipe,\r\n private datexPipe: DatexPipe,\r\n private ngZone: NgZone,\r\n public appSettings: AppSettings,\r\n private authService: AuthService\r\n ) { }\r\n ngOnInit() {\r\n this.privacyUrl = this.appSettings.isNewDomain ? XPOConstants.PRIVACY_URL_RXO : XPOConstants.PRIVACY_URL;\r\n this.conditionUrl = this.appSettings.isNewDomain ? XPOConstants.PRIVACY_URL_RXO : XPOConstants.PRIVACY_URL;\r\n this.addToCalendarConditionText = this.appSettings.domainName === \"XPO\" ? this.appSettings\r\n .getMessage('AGREE_CONDITION_TEXT_XPO').replace('[DOMAIN_NAME]', this.appSettings.domainName) : this.appSettings\r\n .getMessage('AGREE_CONDITION_TEXT_RXO').replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n\r\n this.spinner.hideLoader();\r\n this.headerTextAddTocalendar = this.appSettings.getMessage('PLEASE_SELECT_A_CALENDAR');\r\n this.orderSubscription = this.orderService.orders.subscribe(orders => {\r\n if (orders) {\r\n if (this.menuService.isMultiOrder) {\r\n this.ordersHolder = orders[ this.menuService.pageIndex ];\r\n } else {\r\n this.ordersHolder = orders[ 0 ];\r\n }\r\n this.orders = this.ordersHolder;\r\n }\r\n });\r\n this.calendarEvents = [];\r\n this.calendarAddEvents = [];\r\n this.busyCalendarEvents = [];\r\n this.freeCalendarEvents = [];\r\n this.orders.forEach(order => {\r\n if (order.deliveryServiceWindowStartTime && order.deliveryServiceWindowEndTime && order.canAddToCalendar) {\r\n this.orderItemCollection.push(order);\r\n }\r\n });\r\n }\r\n\r\n public onCalendarOptionSelected(selectedCalendarValue) {\r\n this.selectedCalendarProviderId = selectedCalendarValue;\r\n this.isCalendarSelected = true;\r\n }\r\n public openUrl(urlToShow: string) {\r\n if (urlToShow) { window.open(urlToShow, '_blank'); }\r\n }\r\n public onTermsAndConditionsAccepted(event) {\r\n this.isTermsAndConditionsAccepted = event.checked;\r\n }\r\n\r\n public onSubmitCalendarRequest(event) {\r\n this.spinner.showLoader();\r\n this.authorizeAccount(event, this.selectedCalendarProviderId);\r\n if (event) { event.preventDefault(); }\r\n }\r\n\r\n private authorizeAccount(event, providerId) {\r\n this.authService.openSession(providerId).then((resolve) => {\r\n this.loadCalendarData(event, providerId);\r\n }, (reject) => {\r\n this.hideLoader(event);\r\n }).catch((error) => {\r\n this.hideLoader(event);\r\n });\r\n }\r\n\r\n private loadCalendarData(event, providerId) {\r\n this.authService.getCalendarFreeBusyData(providerId, this.orders).then((resolve) => {\r\n if (this.selectedCalendarProviderId === this.GOOGLE_PROVIDER_ID) {\r\n this.readGoogleFreeBusyData(resolve, event);\r\n } else if (this.selectedCalendarProviderId === this.OUTLOOK_PROVIDER_ID) {\r\n this.readOutlookFreeBusyData(resolve, event);\r\n }\r\n }, (reject) => {\r\n this.hideLoader(event);\r\n }).catch((error) => {\r\n this.hideLoader(event);\r\n });\r\n }\r\n\r\n private readOutlookFreeBusyData(response, event) {\r\n const startTimeArrray = [];\r\n const endTimeArray = [];\r\n response.meetingTimeSuggestions.sort((meetingTimeSuggestion1, meetingTimeSuggestion2) => {\r\n if (meetingTimeSuggestion1.meetingTimeSlot.start.dateTime < meetingTimeSuggestion2.meetingTimeSlot.start.dateTime) {\r\n return -1;\r\n } else if (meetingTimeSuggestion1.meetingTimeSlot.start.dateTime > meetingTimeSuggestion2.meetingTimeSlot.start.dateTime) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n });\r\n\r\n response.meetingTimeSuggestions.forEach((meetingTimeSuggestion) => {\r\n startTimeArrray.push(meetingTimeSuggestion.meetingTimeSlot.start.dateTime);\r\n endTimeArray.push(meetingTimeSuggestion.meetingTimeSlot.end.dateTime);\r\n });\r\n const busyData = [];\r\n for (let i = 0; i < startTimeArrray.length; i++) {\r\n if ((i !== startTimeArrray.length - 1) &&\r\n (endTimeArray[ i ] !== startTimeArrray[ i + 1 ])) {\r\n const momentStart = moment.utc(endTimeArray[ i ]);\r\n const start = moment(momentStart).local();\r\n const momentEnd = moment.utc(startTimeArrray[ i + 1 ]);\r\n const end = moment(momentEnd).local();\r\n busyData.push({\r\n 'start': start.toISOString(),\r\n 'end': end.toISOString()\r\n });\r\n }\r\n }\r\n this.calendarBusyEvents = busyData;\r\n this.setUpUsersCalendar();\r\n this.hideLoader(event);\r\n }\r\n\r\n private readGoogleFreeBusyData(response, event) {\r\n const responseData = response.result.calendars[ 'primary' ];\r\n if (responseData) {\r\n this.calendarBusyEvents = responseData.busy;\r\n this.setUpUsersCalendar();\r\n }\r\n this.hideLoader(event);\r\n }\r\n\r\n private setUpUsersCalendar() {\r\n this.isShowUsersCalendar = true;\r\n this.populateOrderEventsDataForCalendar();\r\n this.populateBusyEventsDataForCalendar();\r\n }\r\n\r\n private hideLoader(event) {\r\n this.ngZone.run(() => {\r\n if (event) {\r\n event.preventDefault();\r\n }\r\n this.spinner.hideLoader();\r\n });\r\n }\r\n\r\n private populateOrderEventsDataForCalendar() {\r\n for (const order of this.orderItemCollection) {\r\n if (order && order.events) {\r\n const viewCalDate = this.sharedService.adjustTimezone(order.deliveryServiceWindowStartTime);\r\n this.viewDate = viewCalDate;\r\n this.locale = this.i18nService.localeID;\r\n const startTime = this.timeToDecimal(this.datexPipe.transform(order.deliveryServiceWindowStartTime, 'H:mm A'));\r\n const endTime = this.timeToDecimal(this.datexPipe.transform(order.deliveryServiceWindowEndTime, 'H:mm A'));\r\n const myEvent: CalendarEvent = {\r\n title: `${order.billTo.name} ${this.appSettings.getMessage('APPOINTMENT_XPO_ORDER_ID').replace('[DOMAIN_NAME]', this.appSettings.domainName)} ${order.trackingNumber}`,\r\n start: addHours(startOfDay(viewCalDate), startTime),\r\n end: addHours(startOfDay(viewCalDate), endTime),\r\n color: colors.blue\r\n };\r\n if (!this.isEventExists(myEvent.start, myEvent.end, this.freeCalendarEvents)) {\r\n this.freeCalendarEvents.push(myEvent);\r\n this.calendarEvents.push(myEvent);\r\n }\r\n this.calendarAddEvents.push(myEvent);\r\n }\r\n }\r\n }\r\n\r\n private populateBusyEventsDataForCalendar() {\r\n if (this.calendarBusyEvents) {\r\n for (let i = 0; i < this.calendarBusyEvents.length; i++) {\r\n const startDate = this.calendarBusyEvents[ i ].start;\r\n const endDate = this.calendarBusyEvents[ i ].end;\r\n const startTime = this.timeToDecimal(this.datexPipe.transform(startDate, 'H:mm A'));\r\n const endTime = this.timeToDecimal(this.datexPipe.transform(endDate, 'H:mm A'));\r\n const googleEvent = this.appSettings.getMessage('BUSY');\r\n const viewCalDate = this.sharedService.adjustTimezone(this.calendarBusyEvents[ i ].start);\r\n const myGoogleEvent: CalendarEvent = {\r\n title: googleEvent,\r\n start: addHours(startOfDay(viewCalDate), startTime),\r\n end: addHours(startOfDay(viewCalDate), endTime),\r\n color: colors.red\r\n };\r\n if (!this.isEventExists(myGoogleEvent.start, myGoogleEvent.end, this.busyCalendarEvents)) {\r\n this.busyCalendarEvents.push(myGoogleEvent);\r\n this.calendarEvents.push(myGoogleEvent);\r\n }\r\n }\r\n }\r\n }\r\n private isEventExists(startDate, endDate, eventsArray): boolean {\r\n if (eventsArray) {\r\n for (const event of eventsArray) {\r\n if (event.start.getTime() === startDate.getTime() && event.end.getTime() === endDate.getTime()) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n public openRescheduleDialog(event) {\r\n this.closeDialog(event);\r\n this.router.navigate([ 'reschedule' ], { queryParams: { orderid: this.orders[ 0 ].orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n public closeDialog(event) {\r\n this.menuService.hideMenu();\r\n if (event) { event.preventDefault(); }\r\n }\r\n private hideProductDetailsIfMobile(status: boolean) {\r\n if (this.menuService.isMobileDevice()) {\r\n this.menuService.isHomeSelected = status;\r\n this.menuService.segmentRefreshNeeded = false;\r\n this.menuService.ismapRefreshNeeded = false;\r\n }\r\n }\r\n\r\n public addToCalendar(event) {\r\n this.spinner.showLoader();\r\n let index = 0;\r\n let calendarAddEventObjects = [];\r\n if (this.selectedCalendarProviderId === this.GOOGLE_PROVIDER_ID) {\r\n calendarAddEventObjects = this.createEventObjectForGoogleCalendarInsertion();\r\n } else if (this.selectedCalendarProviderId === this.OUTLOOK_PROVIDER_ID) {\r\n calendarAddEventObjects = this.createEventObjectForOutlookCalendarInsertion();\r\n }\r\n\r\n calendarAddEventObjects.forEach((calendarAddEventObject) => {\r\n this.authService.addEventToCalendar(this.selectedCalendarProviderId, calendarAddEventObject).then((resolve) => {\r\n index++;\r\n if (index === calendarAddEventObjects.length) {\r\n this.confirmationAddToCalendar = this.appSettings.getMessage('EVENT_ADDED');\r\n this.headerTextAddTocalendar = this.appSettings.getMessage('THANK_YOU');\r\n this.isCalendarAdded = true;\r\n this.hideLoader(event);\r\n }\r\n }, (reject) => {\r\n this.hideLoader(event);\r\n }).catch((error) => {\r\n this.hideLoader(event);\r\n });\r\n });\r\n }\r\n\r\n private createEventObjectForGoogleCalendarInsertion() {\r\n const googleCalendarAddEventObjects = [];\r\n this.calendarAddEvents.forEach(googleCalendarAddEvent => {\r\n const googleCalendarEvent = {\r\n summary: googleCalendarAddEvent.title,\r\n start: {\r\n dateTime: googleCalendarAddEvent.start.toISOString()\r\n },\r\n end: {\r\n dateTime: googleCalendarAddEvent.end.toISOString()\r\n },\r\n reminders: {\r\n useDefault: false,\r\n overrides: [\r\n { method: 'email', 'minutes': 24 * 60 },\r\n { method: 'popup', 'minutes': 10 }\r\n ]\r\n }\r\n };\r\n googleCalendarAddEventObjects.push(googleCalendarEvent);\r\n });\r\n return googleCalendarAddEventObjects;\r\n }\r\n\r\n private createEventObjectForOutlookCalendarInsertion() {\r\n const outlookCalendarAddEventObjects = [];\r\n this.calendarAddEvents.forEach(outlookCalendarAddEvent => {\r\n const outlookCalendarEvent = {\r\n 'Subject': outlookCalendarAddEvent.title,\r\n 'Start': {\r\n 'DateTime': outlookCalendarAddEvent.start.toISOString(),\r\n 'TimeZone': 'Pacific Standard Time'\r\n },\r\n 'End': {\r\n 'DateTime': outlookCalendarAddEvent.end.toISOString(),\r\n 'TimeZone': 'Pacific Standard Time'\r\n }\r\n };\r\n outlookCalendarAddEventObjects.push(outlookCalendarEvent);\r\n });\r\n\r\n return outlookCalendarAddEventObjects;\r\n }\r\n\r\n\r\n public downloadCalendar() {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.DOWNLOAD,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.DOWNLOAD_XPO_EVENT,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.DOWNLOAD_XPO_EVENT\r\n }\r\n });\r\n if (this.orderItemCollection.length > 0) {\r\n\r\n this.addToCalendarService.addToCalendar(this.orderItemCollection, 'add');\r\n }\r\n }\r\n\r\n public isOutlookEnabled() {\r\n if (!AppSettings.config.outlookEnable) {\r\n return false;\r\n }\r\n if (this.menuService.isIEBrowser() && !AppSettings.config.outlookIEOnline) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n private timeToDecimal(scheduledTime) {\r\n scheduledTime = scheduledTime.split(':');\r\n return parseInt(scheduledTime[ 0 ], 10) * 1 + parseInt(scheduledTime[ 1 ], 10) / 60;\r\n }\r\n ngOnDestroy() {\r\n this.orderSubscription.unsubscribe();\r\n }\r\n}\r\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","import { __assign } from \"tslib\";\nimport { adapterFactory as baseAdapterFactory } from 'calendar-utils/date-adapters/moment';\nexport function adapterFactory(moment) {\n return __assign(__assign({}, baseAdapterFactory(moment)), { addWeeks: function (date, amount) {\n return moment(date).add(amount, 'weeks').toDate();\n }, addMonths: function (date, amount) {\n return moment(date).add(amount, 'months').toDate();\n }, subDays: function (date, amount) {\n return moment(date).subtract(amount, 'days').toDate();\n }, subWeeks: function (date, amount) {\n return moment(date).subtract(amount, 'weeks').toDate();\n }, subMonths: function (date, amount) {\n return moment(date).subtract(amount, 'months').toDate();\n }, getISOWeek: function (date) {\n return moment(date).isoWeek();\n }, setDate: function (date, dayOfMonth) {\n return moment(date).date(dayOfMonth).toDate();\n }, setMonth: function (date, month) {\n return moment(date).month(month).toDate();\n }, setYear: function (date, year) {\n return moment(date).year(year).toDate();\n }, getDate: function (date) {\n return moment(date).date();\n }, getYear: function (date) {\n return moment(date).year();\n } });\n}\n","export function adapterFactory(moment) {\n function addDays(date, amount) {\n return moment(date).add(amount, 'days').toDate();\n }\n function addHours(date, amount) {\n return moment(date).add(amount, 'hours').toDate();\n }\n function addMinutes(date, amount) {\n return moment(date).add(amount, 'minutes').toDate();\n }\n function addSeconds(date, amount) {\n return moment(date).add(amount, 'seconds').toDate();\n }\n function differenceInDays(dateLeft, dateRight) {\n return moment(dateLeft).diff(moment(dateRight), 'days');\n }\n function differenceInMinutes(dateLeft, dateRight) {\n return moment(dateLeft).diff(moment(dateRight), 'minutes');\n }\n function differenceInSeconds(dateLeft, dateRight) {\n return moment(dateLeft).diff(moment(dateRight), 'seconds');\n }\n function endOfDay(date) {\n return moment(date).endOf('day').toDate();\n }\n function endOfMonth(date) {\n return moment(date).endOf('month').toDate();\n }\n function endOfWeek(date) {\n return moment(date).endOf('week').toDate();\n }\n function getDay(date) {\n return moment(date).day();\n }\n /* istanbul ignore next */\n function getMonth(date) {\n return moment(date).month();\n }\n function isSameDay(dateLeft, dateRight) {\n return moment(dateLeft).isSame(moment(dateRight), 'day');\n }\n function isSameMonth(dateLeft, dateRight) {\n return moment(dateLeft).isSame(moment(dateRight), 'month');\n }\n function isSameSecond(dateLeft, dateRight) {\n return moment(dateLeft).isSame(moment(dateRight), 'second');\n }\n function max(dates) {\n return moment.max(dates.map(function (date) { return moment(date); })).toDate();\n }\n function setHours(date, hours) {\n return moment(date).set('hours', hours).toDate();\n }\n function setMinutes(date, minutes) {\n return moment(date).set('minutes', minutes).toDate();\n }\n function startOfDay(date) {\n return moment(date).startOf('day').toDate();\n }\n function startOfMinute(date) {\n return moment(date).startOf('minute').toDate();\n }\n function startOfMonth(date) {\n return moment(date).startOf('month').toDate();\n }\n function startOfWeek(date) {\n return moment(date).startOf('week').toDate();\n }\n function getHours(date) {\n return moment(date).get('hours');\n }\n function getMinutes(date) {\n return moment(date).get('minutes');\n }\n function getTimezoneOffset(date) {\n return moment(date).utcOffset() * -1;\n }\n return {\n addDays: addDays,\n addHours: addHours,\n addMinutes: addMinutes,\n addSeconds: addSeconds,\n differenceInDays: differenceInDays,\n differenceInMinutes: differenceInMinutes,\n differenceInSeconds: differenceInSeconds,\n endOfDay: endOfDay,\n endOfMonth: endOfMonth,\n endOfWeek: endOfWeek,\n getDay: getDay,\n getMonth: getMonth,\n isSameDay: isSameDay,\n isSameMonth: isSameMonth,\n isSameSecond: isSameSecond,\n max: max,\n setHours: setHours,\n setMinutes: setMinutes,\n startOfDay: startOfDay,\n startOfMinute: startOfMinute,\n startOfMonth: startOfMonth,\n startOfWeek: startOfWeek,\n getHours: getHours,\n getMinutes: getMinutes,\n getTimezoneOffset: getTimezoneOffset,\n };\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatRadioModule } from '@angular/material/radio';\r\nimport { CalendarModule, DateAdapter } from 'angular-calendar';\r\nimport { AddToCalendarRoutingModule } from '../add-to-calendar/add-to-calendar-routing.module';\r\nimport { AddToCalendarComponent } from '../add-to-calendar/add-to-calendar.component';\r\nimport { CalendarHeaderComponent } from '../calendar-utils/calendar-header/calendar-header.component';\r\nimport { AppSettings } from '../core/app-settings';\r\nimport { AddToCalendarService } from '../shared';\r\nimport { AuthServiceConfig } from '../calendar/services/auth.service';\r\nimport { GoogleLoginProvider } from '../calendar/providers/google-login-provider';\r\nimport { OutlookLoginProvider } from '../calendar/providers/outlook-login-provider';\r\nimport { SharedService } from '../shared/services/shared.service';\r\nimport { ConfirmationDialogModule } from '../confirmation-dialog/confirmation-dialog.module';\r\nimport { FooterModule } from '../footer/footer.module';\r\nimport { adapterFactory } from 'angular-calendar/date-adapters/moment';\r\n\r\nexport function provideConfig() {\r\n const config = new AuthServiceConfig([\r\n {\r\n id: GoogleLoginProvider.PROVIDER_ID,\r\n provider: new GoogleLoginProvider(AppSettings.config.GOOGLE_CALENDAR_API_KEY)\r\n },\r\n {\r\n id: OutlookLoginProvider.PROVIDER_ID,\r\n provider: new OutlookLoginProvider(AppSettings.config.OUTLOOK_CALENDAR_API_KEY)\r\n }\r\n ]);\r\n return config;\r\n}\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n MatCardModule,\r\n MatRadioModule,\r\n MatButtonModule,\r\n MatCheckboxModule,\r\n FooterModule,\r\n ConfirmationDialogModule,\r\n CalendarModule.forRoot({\r\n provide: DateAdapter,\r\n useFactory: adapterFactory\r\n }),\r\n AddToCalendarRoutingModule\r\n ],\r\n declarations: [\r\n AddToCalendarComponent,\r\n CalendarHeaderComponent\r\n ],\r\n providers: [\r\n AddToCalendarService,\r\n SharedService\r\n ],\r\n schemas: [ NO_ERRORS_SCHEMA ]\r\n})\r\nexport class AddToCalendarModule { }\r\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { DomHandler } from '../calendar-datepicker/domhandler';\r\nimport { CalendarComponent } from '../calendar-datepicker/calendar.component';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatInputModule,\r\n ReactiveFormsModule\r\n ],\r\n exports: [\r\n CalendarComponent\r\n ],\r\n declarations: [ CalendarComponent ],\r\n providers: [\r\n DomHandler\r\n ],\r\n schemas: [ NO_ERRORS_SCHEMA ]\r\n})\r\nexport class CalendarDatepickerModule { }\r\n","export class Calendar {\r\n firstWeekDay: number;\r\n\r\n constructor(firstWeekDay = 0) {\r\n this.firstWeekDay = firstWeekDay; // 0 = Sunday\r\n }\r\n\r\n weekStartDate(date: any) {\r\n var startDate = new Date(date.getTime());\r\n while (startDate.getDay() !== this.firstWeekDay) {\r\n startDate.setDate(startDate.getDate() - 1);\r\n }\r\n return startDate;\r\n }\r\n\r\n monthDates(year: any, month: any, dayFormatter:any = null, weekFormatter:any = null) {\r\n if ((typeof year !== \"number\") || (year < 1970)) {\r\n throw ('year must be a number >= 1970');\r\n };\r\n if ((typeof month !== \"number\") || (month < 0) || (month > 11)) {\r\n throw ('month must be a number (Jan is 0)');\r\n };\r\n var weeks: Array = [],\r\n week: Array = [],\r\n i = 0,\r\n date = this.weekStartDate(new Date(year, month, 1));\r\n do {\r\n for (i=0; i<7; i++) {\r\n week.push(dayFormatter ? dayFormatter(date) : date);\r\n date = new Date(date.getTime());\r\n date.setDate(date.getDate() + 1);\r\n }\r\n weeks.push(weekFormatter ? weekFormatter(week) : week);\r\n week = [];\r\n } while ((date.getMonth()<=month) && (date.getFullYear()===year));\r\n return weeks;\r\n }\r\n\r\n monthDays(year: any, month: any) {\r\n var getDayOrZero = function getDayOrZero(date: any) {\r\n return date.getMonth() === month ? date : 0;\r\n };\r\n return this.monthDates(year, month, getDayOrZero);\r\n }\r\n\r\n monthText(year: any, month: any) {\r\n if (typeof year === \"undefined\") {\r\n var now = new Date();\r\n year = now.getFullYear();\r\n month = now.getMonth();\r\n };\r\n var getDayOrBlank = function getDayOrBlank(date: any) {\r\n var s = date.getMonth() === month ? date.getDate().toString() : \" \";\r\n while (s.length < 2) s = \" \"+s;\r\n return s;\r\n };\r\n var weeks = this.monthDates(year, month, getDayOrBlank,\r\n function (week: any) { return week.join(\" \") });\r\n return weeks.join(\"\\n\");\r\n }\r\n}\r\n\r\nconst months = \"JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC\".split(\" \");\r\nfor (var i=0; i\r\n * MIT Licensed\r\n */","import {NgModule,EventEmitter,Directive,ViewContainerRef,Input,Output,ContentChildren,ContentChild,TemplateRef,OnInit,OnChanges,OnDestroy,AfterContentInit,QueryList,SimpleChanges,EmbeddedViewRef} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {Component} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'p-header',\r\n template: ''\r\n})\r\nexport class Header {}\r\n\r\n@Component({\r\n selector: 'p-footer',\r\n template: ''\r\n})\r\nexport class Footer {}\r\n\r\n@Directive({\r\n selector: '[pTemplate]',\r\n host: {\r\n }\r\n})\r\nexport class PrimeTemplate {\r\n \r\n @Input() type: string;\r\n \r\n @Input('pTemplate') name: string;\r\n \r\n constructor(public template: TemplateRef) {}\r\n \r\n getType(): string {\r\n return this.name;\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[pTemplateWrapper]'\r\n})\r\nexport class TemplateWrapper implements OnInit, OnDestroy {\r\n \r\n @Input() item: any;\r\n \r\n @Input() index: number;\r\n \r\n @Input('pTemplateWrapper') templateRef: TemplateRef;\r\n \r\n view: EmbeddedViewRef;\r\n \r\n constructor(public viewContainer: ViewContainerRef) {}\r\n \r\n ngOnInit() {\r\n this.view = this.viewContainer.createEmbeddedView(this.templateRef, {\r\n '\\$implicit': this.item,\r\n 'index': this.index\r\n });\r\n }\r\n\t\r\n ngOnDestroy() {\r\n\t\tthis.view.destroy();\r\n\t}\r\n}\r\n\r\n@Component({\r\n selector: 'p-column',\r\n template: ``\r\n})\r\nexport class Column implements AfterContentInit{\r\n @Input() field: string;\r\n @Input() colId: string;\r\n @Input() sortField: string;\r\n @Input() filterField: string;\r\n @Input() header: string;\r\n @Input() footer: string;\r\n @Input() sortable: any;\r\n @Input() editable: boolean;\r\n @Input() filter: boolean;\r\n @Input() filterMatchMode: string;\r\n @Input() filterType: string = 'text';\r\n @Input() rowspan: number;\r\n @Input() colspan: number;\r\n @Input() style: any;\r\n @Input() styleClass: string;\r\n @Input() hidden: boolean;\r\n @Input() expander: boolean;\r\n @Input() selectionMode: string;\r\n @Input() filterPlaceholder: string;\r\n @Input() filterMaxlength: number;\r\n @Input() frozen: boolean;\r\n @Output() sortFunction: EventEmitter = new EventEmitter();\r\n @ContentChildren(PrimeTemplate) templates: QueryList;\r\n @ContentChild(TemplateRef) template: TemplateRef;\r\n \r\n public headerTemplate: TemplateRef;\r\n public bodyTemplate: TemplateRef; \r\n public footerTemplate: TemplateRef;\r\n public filterTemplate: TemplateRef;\r\n public editorTemplate: TemplateRef;\r\n \r\n ngAfterContentInit():void {\r\n this.templates.forEach((item) => {\r\n switch(item.getType()) {\r\n case 'header':\r\n this.headerTemplate = item.template;\r\n break;\r\n \r\n case 'body':\r\n this.bodyTemplate = item.template;\r\n break;\r\n \r\n case 'footer':\r\n this.footerTemplate = item.template;\r\n break;\r\n \r\n case 'filter':\r\n this.filterTemplate = item.template;\r\n break;\r\n \r\n case 'editor':\r\n this.editorTemplate = item.template;\r\n break;\r\n \r\n default:\r\n this.bodyTemplate = item.template;\r\n break;\r\n }\r\n });\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'p-row',\r\n template: ``\r\n})\r\nexport class Row {\r\n \r\n @ContentChildren(Column) columns: QueryList;\r\n \r\n}\r\n\r\n@Component({\r\n selector: 'p-headerColumnGroup',\r\n template: ``\r\n})\r\nexport class HeaderColumnGroup {\r\n \r\n @Input() frozen: boolean;\r\n \r\n @ContentChildren(Row) rows: QueryList;\r\n}\r\n\r\n@Component({\r\n selector: 'p-footerColumnGroup',\r\n template: ``\r\n})\r\nexport class FooterColumnGroup {\r\n \r\n @Input() frozen: boolean;\r\n \r\n @ContentChildren(Row) rows: QueryList;\r\n}\r\n\r\n@Component({\r\n selector: 'p-columnBodyTemplateLoader',\r\n template: ``\r\n})\r\nexport class ColumnBodyTemplateLoader implements OnInit, OnChanges, OnDestroy {\r\n \r\n @Input() column: any;\r\n \r\n @Input() rowData: any;\r\n \r\n @Input() rowIndex: number;\r\n \r\n view: EmbeddedViewRef;\r\n \r\n constructor(public viewContainer: ViewContainerRef) {}\r\n \r\n ngOnInit() {\r\n this.view = this.viewContainer.createEmbeddedView(this.column.bodyTemplate, {\r\n '\\$implicit': this.column,\r\n 'rowData': this.rowData,\r\n 'rowIndex': this.rowIndex\r\n });\r\n }\r\n \r\n ngOnChanges(changes: SimpleChanges) {\r\n if(!this.view) {\r\n return;\r\n }\r\n \r\n if('rowIndex' in changes) {\r\n this.view.context.rowIndex = changes['rowIndex'].currentValue;\r\n }\r\n }\r\n\t\r\n ngOnDestroy() {\r\n\t\tthis.view.destroy();\r\n\t}\r\n}\r\n\r\n@Component({\r\n selector: 'p-columnHeaderTemplateLoader',\r\n template: ``\r\n})\r\nexport class ColumnHeaderTemplateLoader implements OnInit, OnDestroy {\r\n \r\n @Input() column: any;\r\n \r\n view: EmbeddedViewRef;\r\n \r\n constructor(public viewContainer: ViewContainerRef) {}\r\n \r\n ngOnInit() {\r\n this.view = this.viewContainer.createEmbeddedView(this.column.headerTemplate, {\r\n '\\$implicit': this.column\r\n });\r\n }\r\n\t\r\n ngOnDestroy() {\r\n\t\tthis.view.destroy();\r\n\t}\r\n}\r\n\r\n@Component({\r\n selector: 'p-columnFooterTemplateLoader',\r\n template: ``\r\n})\r\nexport class ColumnFooterTemplateLoader implements OnInit, OnDestroy {\r\n \r\n @Input() column: any;\r\n \r\n view: EmbeddedViewRef;\r\n \r\n constructor(public viewContainer: ViewContainerRef) {}\r\n \r\n ngOnInit() {\r\n this.view = this.viewContainer.createEmbeddedView(this.column.footerTemplate, {\r\n '\\$implicit': this.column\r\n });\r\n }\r\n\t\r\n ngOnDestroy() {\r\n\t\tthis.view.destroy();\r\n\t}\r\n}\r\n\r\n@Component({\r\n selector: 'p-columnFilterTemplateLoader',\r\n template: ``\r\n})\r\nexport class ColumnFilterTemplateLoader implements OnInit, OnDestroy {\r\n \r\n @Input() column: any;\r\n \r\n view: EmbeddedViewRef;\r\n \r\n constructor(public viewContainer: ViewContainerRef) {}\r\n \r\n ngOnInit() {\r\n this.view = this.viewContainer.createEmbeddedView(this.column.filterTemplate, {\r\n '\\$implicit': this.column\r\n });\r\n }\r\n\t\r\n ngOnDestroy() {\r\n\t\tthis.view.destroy();\r\n\t}\r\n}\r\n\r\n@Component({\r\n selector: 'p-columnEditorTemplateLoader',\r\n template: ``\r\n})\r\nexport class ColumnEditorTemplateLoader implements OnInit, OnDestroy {\r\n \r\n @Input() column: any;\r\n \r\n @Input() rowData: any;\r\n \r\n @Input() rowIndex: any;\r\n \r\n view: EmbeddedViewRef;\r\n \r\n constructor(public viewContainer: ViewContainerRef) {}\r\n \r\n ngOnInit() {\r\n this.view = this.viewContainer.createEmbeddedView(this.column.editorTemplate, {\r\n '\\$implicit': this.column,\r\n 'rowData': this.rowData,\r\n 'rowIndex': this.rowIndex\r\n });\r\n }\r\n\t\r\n ngOnDestroy() {\r\n\t\tthis.view.destroy();\r\n\t}\r\n}\r\n\r\n@Component({\r\n selector: 'p-templateLoader',\r\n template: ``\r\n})\r\nexport class TemplateLoader implements OnInit, OnDestroy {\r\n \r\n @Input() template: TemplateRef;\r\n \r\n @Input() data: any;\r\n \r\n view: EmbeddedViewRef;\r\n \r\n constructor(public viewContainer: ViewContainerRef) {}\r\n \r\n ngOnInit() {\r\n if(this.template) {\r\n this.view = this.viewContainer.createEmbeddedView(this.template, {\r\n '\\$implicit': this.data\r\n });\r\n }\r\n }\r\n\t\r\n ngOnDestroy() {\r\n\t\tif (this.view) this.view.destroy();\r\n\t}\r\n}\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n exports: [Header,Footer,Column,TemplateWrapper,ColumnHeaderTemplateLoader,ColumnBodyTemplateLoader,ColumnFooterTemplateLoader,ColumnFilterTemplateLoader,PrimeTemplate,TemplateLoader,Row,HeaderColumnGroup,FooterColumnGroup,ColumnEditorTemplateLoader],\r\n declarations: [Header,Footer,Column,TemplateWrapper,ColumnHeaderTemplateLoader,ColumnBodyTemplateLoader,ColumnFooterTemplateLoader,ColumnFilterTemplateLoader,PrimeTemplate,TemplateLoader,Row,HeaderColumnGroup,FooterColumnGroup,ColumnEditorTemplateLoader]\r\n})\r\nexport class SharedModule { }\r\n","
\r\n \r\n \r\n \r\n \r\n MM/DD/YYYY\r\n \r\n Date is\r\n required\r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n
\r\n {{locale.monthNames[currentMonth]}}\r\n \r\n \r\n {{currentYear}}\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n {{weekDay}}\r\n
\r\n \r\n {{date.day}}\r\n \r\n
\r\n \r\n
\r\n
\r\n","\r\nimport {\r\n Component, ElementRef, EventEmitter, Input, Renderer2,\r\n OnInit, Output, ViewChild, ChangeDetectorRef, TemplateRef, ContentChildren,\r\n QueryList, AfterViewInit, AfterViewChecked, OnDestroy, forwardRef\r\n} from '@angular/core';\r\nimport { animate, keyframes, state, style, transition, trigger, } from '@angular/animations';\r\nimport { FormControl, Validators, ControlValueAccessor } from '@angular/forms';\r\nimport { NG_VALUE_ACCESSOR, } from '@angular/forms';\r\nimport { Calendar } from './calendar';\r\nimport * as moment from 'moment';\r\nimport { DomHandler } from './domhandler';\r\nimport { SharedModule, PrimeTemplate } from './shared';\r\nimport { MatInputModule } from '@angular/material/input';\r\n\r\ntype DateFormatFunction = (date: Date) => string;\r\ninterface ValidationResult { [ key: string ]: boolean; }\r\n\r\nexport const CALENDAR_VALUE_ACCESSOR: any = {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => Calendar),\r\n multi: true\r\n};\r\n\r\nexport interface LocaleSettings {\r\n firstDayOfWeek?: number;\r\n dayNames: string[];\r\n dayNamesShort: string[];\r\n dayNamesMin: string[];\r\n monthNames: string[];\r\n monthNamesShort: string[];\r\n today: string;\r\n clear: string;\r\n}\r\n\r\n@Component({\r\n selector: 'app-calendar',\r\n templateUrl: './calendar.component.html',\r\n animations: [\r\n trigger('overlayState', [\r\n state('hidden', style({\r\n opacity: 0\r\n })),\r\n state('visible', style({\r\n opacity: 1\r\n })),\r\n transition('visible => hidden', animate('400ms ease-in')),\r\n transition('hidden => visible', animate('400ms ease-out'))\r\n ])\r\n ],\r\n styleUrls: [ './calendar.component.css' ]\r\n})\r\nexport class CalendarComponent implements AfterViewInit, AfterViewChecked, OnInit, OnDestroy, ControlValueAccessor {\r\n public dateFormControl;\r\n public value: any;\r\n public dates: any[];\r\n public weekDays: string[];\r\n public currentMonthText: string;\r\n public currentMonth: number;\r\n public currentYear: number;\r\n public currentHour: number;\r\n public currentMinute: number;\r\n public currentSecond: number;\r\n public pm: boolean;\r\n public overlay: HTMLDivElement;\r\n public overlayVisible: boolean;\r\n public overlayShown: boolean;\r\n public datepickerClick: boolean;\r\n\r\n public calendarElement: any;\r\n public documentClickListener: any;\r\n public ticksTo1970: number;\r\n public yearOptions: number[];\r\n public focus: boolean;\r\n public isKeydown: boolean;\r\n public filled: boolean;\r\n public inputFieldValue: string = null;\r\n public _minDate: Date;\r\n public _maxDate: Date;\r\n public _showTime: boolean;\r\n public preventDocumentListener: boolean;\r\n public dateTemplate: TemplateRef;\r\n public _disabledDates: Array;\r\n public _disabledDays: Array;\r\n\r\n @Input() defaultDate: Date;\r\n @Input() style: string;\r\n @Input() styleClass: string;\r\n @Input() inputStyle: string;\r\n @Input() inputId: string;\r\n @Input() name: string;\r\n @Input() inputStyleClass: string;\r\n @Input() placeholder: string;\r\n @Input() disabled: any;\r\n @Input() dateFormat = 'mm/dd/yy';\r\n @Input() inline = false;\r\n @Input() showOtherMonths = true;\r\n @Input() selectOtherMonths: boolean;\r\n @Input() showIcon: boolean;\r\n @Input() icon = 'fa-calendar';\r\n @Input() appendTo: any;\r\n @Input() readonlyInput: boolean;\r\n @Input() shortYearCutoff: any = '+10';\r\n @Input() monthNavigator: boolean;\r\n @Input() yearNavigator: boolean;\r\n @Input() yearRange: string;\r\n @Input() hourFormat = '24';\r\n @Input() timeOnly: boolean;\r\n @Input() stepHour = 1;\r\n @Input() stepMinute = 1;\r\n @Input() stepSecond = 1;\r\n @Input() showSeconds = false;\r\n @Input() required: boolean;\r\n @Input() showOnFocus = true;\r\n @Input() dataType = 'date';\r\n @Input() utc: boolean;\r\n @Input() selectionMode = 'single';\r\n @Input() maxDateCount: number;\r\n @Input() showButtonBar: boolean;\r\n @Input() todayButtonStyleClass = 'ui-button-secondary';\r\n @Input() clearButtonStyleClass = 'ui-button-secondary';\r\n @Input() tabindex: number;\r\n @Input() enableHint:boolean=true;\r\n\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onFocus: EventEmitter = new EventEmitter();\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onBlur: EventEmitter = new EventEmitter();\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onClose: EventEmitter = new EventEmitter();\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onSelect: EventEmitter = new EventEmitter();\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onInput: EventEmitter = new EventEmitter();\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onTodayClick: EventEmitter = new EventEmitter();\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onClearClick: EventEmitter = new EventEmitter();\r\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\r\n @Output() onMonthChange: EventEmitter = new EventEmitter();\r\n\r\n @ContentChildren(PrimeTemplate) templates: QueryList;\r\n\r\n _locale: LocaleSettings = {\r\n firstDayOfWeek: 0,\r\n dayNames: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ],\r\n dayNamesShort: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ],\r\n dayNamesMin: [ 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa' ],\r\n monthNames: [ 'January', 'February', 'March', 'April', 'May', 'June',\r\n 'July', 'August', 'September', 'October', 'November', 'December' ],\r\n monthNamesShort: [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ],\r\n today: 'Today',\r\n clear: 'Clear'\r\n };\r\n\r\n\r\n @ViewChild('datepicker', { static: true }) overlayViewChild: ElementRef;\r\n @ViewChild('inputfield') inputfieldViewChild: ElementRef;\r\n\r\n\r\n public onModelChange: Function = () => { };\r\n public onModelTouched: Function = () => { };\r\n\r\n\r\n @Input() get minDate(): Date {\r\n return this._minDate;\r\n }\r\n\r\n set minDate(date: Date) {\r\n this._minDate = date;\r\n if (this.currentMonth && this.currentYear) {\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n }\r\n }\r\n\r\n @Input() get maxDate(): Date {\r\n return this._maxDate;\r\n }\r\n\r\n set maxDate(date: Date) {\r\n this._maxDate = date;\r\n if (this.currentMonth && this.currentYear) {\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n }\r\n }\r\n\r\n @Input() get disabledDates(): Date[] {\r\n return this._disabledDates;\r\n }\r\n\r\n set disabledDates(disabledDates: Date[]) {\r\n this._disabledDates = disabledDates;\r\n if (this.currentMonth && this.currentYear) {\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n }\r\n }\r\n\r\n @Input() get disabledDays(): number[] {\r\n return this._disabledDays;\r\n }\r\n\r\n set disabledDays(disabledDays: number[]) {\r\n this._disabledDays = disabledDays;\r\n if (this.currentMonth && this.currentYear) {\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n }\r\n }\r\n\r\n @Input() get showTime(): boolean {\r\n return this._showTime;\r\n }\r\n\r\n set showTime(showTime: boolean) {\r\n this._showTime = showTime;\r\n\r\n if (this.currentHour === undefined) {\r\n this.initTime(this.value || new Date());\r\n }\r\n }\r\n\r\n get locale() {\r\n return this._locale;\r\n }\r\n\r\n @Input()\r\n set locale(newLocale: LocaleSettings) {\r\n this._locale = newLocale;\r\n this.createWeekDays();\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n }\r\n\r\n constructor(public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public domHandler: DomHandler) {\r\n this.dateFormControl = new FormControl('', [ Validators.required ]);\r\n }\r\n\r\n ngOnInit() {\r\n const date = this.defaultDate || new Date();\r\n this.createWeekDays();\r\n this.currentMonth = date.getMonth();\r\n this.currentYear = date.getFullYear();\r\n this.initTime(date);\r\n\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n this.ticksTo1970 = (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +\r\n Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);\r\n\r\n if (this.yearNavigator && this.yearRange) {\r\n this.yearOptions = [];\r\n const years = this.yearRange.split(':'),\r\n yearStart = parseInt(years[ 0 ], 10),\r\n yearEnd = parseInt(years[ 1 ], 10);\r\n\r\n for (let i = yearStart; i <= yearEnd; i++) {\r\n this.yearOptions.push(i);\r\n }\r\n }\r\n }\r\n\r\n ngAfterViewInit() {\r\n if (!this.inline && this.appendTo) {\r\n if (this.appendTo === 'body') {\r\n document.body.appendChild(this.overlayViewChild.nativeElement);\r\n } else {\r\n this.domHandler.appendChild(this.overlayViewChild.nativeElement, this.appendTo);\r\n }\r\n }\r\n }\r\n\r\n ngAfterViewChecked() {\r\n if (this.overlayShown) {\r\n this.alignOverlay();\r\n this.overlayShown = false;\r\n }\r\n }\r\n\r\n // eslint-disable-next-line\r\n ngAfterContentInit() {\r\n this.templates.forEach((item) => {\r\n switch (item.getType()) {\r\n case 'date':\r\n this.dateTemplate = item.template;\r\n break;\r\n\r\n default:\r\n this.dateTemplate = item.template;\r\n break;\r\n }\r\n });\r\n }\r\n\r\n createWeekDays() {\r\n this.weekDays = [];\r\n let dayIndex = this.locale.firstDayOfWeek;\r\n for (let i = 0; i < 7; i++) {\r\n this.weekDays.push(this.locale.dayNamesMin[ dayIndex ]);\r\n dayIndex = (dayIndex === 6) ? 0 : ++dayIndex;\r\n }\r\n }\r\n\r\n createMonth(month: number, year: number) {\r\n this.dates = [];\r\n this.currentMonth = month;\r\n this.currentYear = year;\r\n this.currentMonthText = this.locale.monthNames[ month ];\r\n const firstDay = this.getFirstDayOfMonthIndex(month, year);\r\n const daysLength = this.getDaysCountInMonth(month, year);\r\n const prevMonthDaysLength = this.getDaysCountInPrevMonth(month, year);\r\n const sundayIndex = this.getSundayIndex();\r\n let dayNo = 1;\r\n const today = new Date();\r\n\r\n for (let i = 0; i < 6; i++) {\r\n const week = [];\r\n\r\n if (i === 0) {\r\n for (let j = (prevMonthDaysLength - firstDay + 1); j <= prevMonthDaysLength; j++) {\r\n const prev = this.getPreviousMonthAndYear(month, year);\r\n week.push({\r\n day: j, month: prev.month, year: prev.year, otherMonth: true,\r\n today: this.isToday(today, j, prev.month, prev.year), selectable: this.isSelectable(j, prev.month, prev.year)\r\n });\r\n }\r\n\r\n const remainingDaysLength = 7 - week.length;\r\n for (let j = 0; j < remainingDaysLength; j++) {\r\n week.push({\r\n day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),\r\n selectable: this.isSelectable(dayNo, month, year)\r\n });\r\n dayNo++;\r\n }\r\n } else {\r\n for (let j = 0; j < 7; j++) {\r\n if (dayNo > daysLength) {\r\n const next = this.getNextMonthAndYear(month, year);\r\n week.push({\r\n day: dayNo - daysLength, month: next.month, year: next.year, otherMonth: true,\r\n today: this.isToday(today, dayNo - daysLength, next.month, next.year),\r\n selectable: this.isSelectable((dayNo - daysLength), next.month, next.year)\r\n });\r\n } else {\r\n week.push({\r\n day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),\r\n selectable: this.isSelectable(dayNo, month, year)\r\n });\r\n }\r\n dayNo++;\r\n }\r\n }\r\n\r\n this.dates.push(week);\r\n }\r\n }\r\n\r\n public initTime(date: Date) {\r\n this.pm = date.getHours() > 11;\r\n if (this.showTime) {\r\n this.currentMinute = date.getMinutes();\r\n this.currentSecond = date.getSeconds();\r\n\r\n if (this.hourFormat === '12') {\r\n this.currentHour = date.getHours() === 0 ? 12 : date.getHours() % 12;\r\n } else {\r\n this.currentHour = date.getHours();\r\n }\r\n } else if (this.timeOnly) {\r\n this.currentMinute = 0;\r\n this.currentHour = 0;\r\n this.currentSecond = 0;\r\n }\r\n }\r\n\r\n public prevMonth(event) {\r\n if (this.disabled) {\r\n event.preventDefault();\r\n return;\r\n }\r\n\r\n if (this.currentMonth === 0) {\r\n this.currentMonth = 11;\r\n this.currentYear--;\r\n\r\n if (this.yearNavigator && this.currentYear < this.yearOptions[ 0 ]) {\r\n this.currentYear = this.yearOptions[ this.yearOptions.length - 1 ];\r\n }\r\n } else {\r\n this.currentMonth--;\r\n }\r\n\r\n this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n if (!this.value) {\r\n this.dateFormControl.reset();\r\n }\r\n event.preventDefault();\r\n }\r\n\r\n public nextMonth(event) {\r\n if (this.disabled) {\r\n event.preventDefault();\r\n return;\r\n }\r\n\r\n if (this.currentMonth === 11) {\r\n this.currentMonth = 0;\r\n this.currentYear++;\r\n\r\n if (this.yearNavigator && this.currentYear > this.yearOptions[ this.yearOptions.length - 1 ]) {\r\n this.currentYear = this.yearOptions[ 0 ];\r\n }\r\n } else {\r\n this.currentMonth++;\r\n }\r\n this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n if (!this.value) {\r\n this.dateFormControl.reset();\r\n }\r\n event.preventDefault();\r\n }\r\n\r\n public onDateSelect(event, dateMeta) {\r\n if (this.disabled || !dateMeta.selectable) {\r\n event.preventDefault();\r\n return;\r\n }\r\n\r\n if (this.isMultipleSelection() && this.isSelected(dateMeta)) {\r\n this.value = this.value.filter((date, i) => {\r\n return !this.isDateEquals(date, dateMeta);\r\n });\r\n } else {\r\n if (this.shouldSelectDate(dateMeta)) {\r\n if (dateMeta.otherMonth) {\r\n if (this.selectOtherMonths) {\r\n this.currentMonth = dateMeta.month;\r\n this.currentYear = dateMeta.year;\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n this.selectDate(dateMeta);\r\n }\r\n } else {\r\n this.selectDate(dateMeta);\r\n }\r\n }\r\n }\r\n\r\n if (this.isSingleSelection()) {\r\n this.overlayVisible = false;\r\n }\r\n\r\n this.updateInputfield();\r\n event.preventDefault();\r\n }\r\n\r\n public shouldSelectDate(dateMeta) {\r\n if (this.isMultipleSelection()) {\r\n return !this.maxDateCount || !this.value || this.maxDateCount > this.value.length;\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n public updateInputfield() {\r\n let formattedValue = '';\r\n if (this.value) {\r\n if (this.isSingleSelection()) {\r\n formattedValue = this.formatDateTime(this.value);\r\n } else if (this.isMultipleSelection()) {\r\n for (let i = 0; i < this.value.length; i++) {\r\n const dateAsString = this.formatDateTime(this.value[ i ]);\r\n formattedValue += dateAsString;\r\n if (i !== (this.value.length - 1)) {\r\n formattedValue += ', ';\r\n }\r\n }\r\n } else if (this.isRangeSelection()) {\r\n if (this.value && this.value.length) {\r\n const startDate = this.value[ 0 ];\r\n const endDate = this.value[ 1 ];\r\n\r\n formattedValue = this.formatDateTime(startDate);\r\n if (endDate) {\r\n formattedValue += ' - ' + this.formatDateTime(endDate);\r\n }\r\n }\r\n }\r\n this.dateFormControl.reset();\r\n }\r\n\r\n this.inputFieldValue = formattedValue;\r\n this.updateFilledState();\r\n if (this.inputfieldViewChild && this.inputfieldViewChild.nativeElement) {\r\n this.inputfieldViewChild.nativeElement.value = this.inputFieldValue;\r\n }\r\n }\r\n\r\n public formatDateTime(date) {\r\n let formattedValue = null;\r\n if (date) {\r\n if (this.timeOnly) {\r\n formattedValue = this.formatTime(date);\r\n } else {\r\n formattedValue = this.formatDate(date, this.dateFormat);\r\n if (this.showTime) {\r\n formattedValue += ' ' + this.formatTime(date);\r\n }\r\n }\r\n }\r\n\r\n return formattedValue;\r\n }\r\n\r\n public selectDate(dateMeta) {\r\n let date;\r\n if (this.utc) {\r\n date = new Date(Date.UTC(dateMeta.year, dateMeta.month, dateMeta.day));\r\n } else {\r\n date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);\r\n }\r\n\r\n if (this.showTime) {\r\n if (this.hourFormat === '12' && this.pm && this.currentHour !== 12) {\r\n date.setHours(this.currentHour + 12);\r\n } else {\r\n date.setHours(this.currentHour);\r\n date.setMinutes(this.currentMinute);\r\n date.setSeconds(this.currentSecond);\r\n }\r\n\r\n }\r\n\r\n if (this.isSingleSelection()) {\r\n this.updateModel(date);\r\n } else if (this.isMultipleSelection()) {\r\n this.updateModel(this.value ? [ ...this.value, date ] : [ date ]);\r\n } else if (this.isRangeSelection()) {\r\n if (this.value && this.value.length) {\r\n let startDate = this.value[ 0 ];\r\n let endDate = this.value[ 1 ];\r\n\r\n if (!endDate && date.getTime() >= startDate.getTime()) {\r\n endDate = date;\r\n } else {\r\n startDate = date;\r\n endDate = null;\r\n }\r\n\r\n this.updateModel([ startDate, endDate ]);\r\n } else {\r\n this.updateModel([ date, null ]);\r\n }\r\n }\r\n this.onSelect.emit(date);\r\n }\r\n\r\n private updateModel(value) {\r\n this.value = value;\r\n this.dateFormControl.reset();\r\n if (this.dataType === 'date') {\r\n this.onModelChange(this.value);\r\n } else if (this.dataType === 'string') {\r\n this.onModelChange(this.formatDateTime(this.value));\r\n }\r\n }\r\n\r\n private getFirstDayOfMonthIndex(month: number, year: number) {\r\n const day = new Date();\r\n day.setDate(1);\r\n day.setMonth(month);\r\n day.setFullYear(year);\r\n\r\n const dayIndex = day.getDay() + this.getSundayIndex();\r\n return dayIndex >= 7 ? dayIndex - 7 : dayIndex;\r\n }\r\n\r\n private getDaysCountInMonth(month: number, year: number) {\r\n return 32 - this.daylightSavingAdjust(new Date(year, month, 32)).getDate();\r\n }\r\n\r\n private getDaysCountInPrevMonth(month: number, year: number) {\r\n const prev = this.getPreviousMonthAndYear(month, year);\r\n return this.getDaysCountInMonth(prev.month, prev.year);\r\n }\r\n\r\n private getPreviousMonthAndYear(month: number, year: number) {\r\n let m, y;\r\n\r\n if (month === 0) {\r\n m = 11;\r\n y = year - 1;\r\n } else {\r\n m = month - 1;\r\n y = year;\r\n }\r\n\r\n return { 'month': m, 'year': y };\r\n }\r\n\r\n private getNextMonthAndYear(month: number, year: number) {\r\n let m, y;\r\n\r\n if (month === 11) {\r\n m = 0;\r\n y = year + 1;\r\n } else {\r\n m = month + 1;\r\n y = year;\r\n }\r\n\r\n return { 'month': m, 'year': y };\r\n }\r\n\r\n private getSundayIndex() {\r\n return this.locale.firstDayOfWeek > 0 ? 7 - this.locale.firstDayOfWeek : 0;\r\n }\r\n\r\n public isSelected(dateMeta): boolean {\r\n if (this.value) {\r\n if (this.isSingleSelection()) {\r\n return this.isDateEquals(this.value, dateMeta);\r\n } else if (this.isMultipleSelection()) {\r\n let selected = false;\r\n for (const date of this.value) {\r\n selected = this.isDateEquals(date, dateMeta);\r\n if (selected) {\r\n break;\r\n }\r\n }\r\n return selected;\r\n } else if (this.isRangeSelection()) {\r\n if (this.value[ 1 ]) {\r\n return this.isDateEquals(this.value[ 0 ], dateMeta) ||\r\n this.isDateEquals(this.value[ 1 ], dateMeta) || this.isDateBetween(this.value[ 0 ], this.value[ 1 ], dateMeta);\r\n } else {\r\n return this.isDateEquals(this.value[ 0 ], dateMeta);\r\n }\r\n\r\n }\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n public isDateEquals(value, dateMeta) {\r\n if (value) {\r\n return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n public isDateBetween(start, end, dateMeta) {\r\n if (start && end) {\r\n return start.getDate() < dateMeta.day && start.getMonth() <= dateMeta.month && start.getFullYear() <= dateMeta.year &&\r\n end.getDate() > dateMeta.day && end.getMonth() >= dateMeta.month && end.getFullYear() >= dateMeta.year;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n public isSingleSelection(): boolean {\r\n return this.selectionMode === 'single';\r\n }\r\n\r\n public isRangeSelection(): boolean {\r\n return this.selectionMode === 'range';\r\n }\r\n\r\n public isMultipleSelection(): boolean {\r\n return this.selectionMode === 'multiple';\r\n }\r\n\r\n public isToday(today, day, month, year): boolean {\r\n return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;\r\n }\r\n\r\n public isSelectable(day, month, year): boolean {\r\n let validMin = true;\r\n let validMax = true;\r\n let validDate = true;\r\n let validDay = true;\r\n if (this.minDate) {\r\n if (this.minDate.getFullYear() > year) {\r\n validMin = false;\r\n } else if (this.minDate.getFullYear() === year) {\r\n if (this.minDate.getMonth() > month) {\r\n validMin = false;\r\n } else if (this.minDate.getMonth() === month) {\r\n if (this.minDate.getDate() > day) {\r\n validMin = false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (this.maxDate) {\r\n if (this.maxDate.getFullYear() < year) {\r\n validMax = false;\r\n } else if (this.maxDate.getFullYear() === year) {\r\n if (this.maxDate.getMonth() < month) {\r\n validMax = false;\r\n } else if (this.maxDate.getMonth() === month) {\r\n if (this.maxDate.getDate() < day) {\r\n validMax = false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (this.disabledDates) {\r\n validDate = !this.isDateDisabled(day, month, year);\r\n }\r\n\r\n if (this.disabledDays) {\r\n validDay = !this.isDayDisabled(day, month, year);\r\n\r\n }\r\n\r\n return validMin && validMax && validDate && validDay;\r\n }\r\n\r\n public isDateDisabled(day: number, month: number, year: number): boolean {\r\n if (this.disabledDates) {\r\n for (const disabledDate of this.disabledDates) {\r\n if (disabledDate.getFullYear() === year && disabledDate.getMonth() === month && disabledDate.getDate() === day) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public isDayDisabled(day: number, month: number, year: number): boolean {\r\n if (this.disabledDays) {\r\n const weekday = new Date(year, month, day);\r\n const weekdayNumber = weekday.getDay();\r\n return this.disabledDays.indexOf(weekdayNumber) !== -1;\r\n }\r\n return false;\r\n }\r\n\r\n public onInputFocus(event: Event) {\r\n this.focus = true;\r\n if (this.showOnFocus) {\r\n this.showOverlay();\r\n }\r\n this.onFocus.emit(event);\r\n }\r\n\r\n public onInputBlur(event: Event) {\r\n this.focus = false;\r\n this.onBlur.emit(event);\r\n this.updateInputfield();\r\n this.onModelTouched();\r\n }\r\n\r\n public onButtonClick(event, inputfield) {\r\n if (!this.overlayViewChild.nativeElement.offsetParent || this.overlayViewChild.nativeElement.style.display === 'none') {\r\n inputfield.focus();\r\n this.showOverlay();\r\n } else {\r\n this.overlayVisible = false;\r\n }\r\n this.datepickerClick = true;\r\n }\r\n\r\n public onInputKeydown(event) {\r\n this.isKeydown = true;\r\n if (event.keyCode === 9) {\r\n this.overlayVisible = false;\r\n }\r\n\r\n }\r\n\r\n public onMonthDropdownChange(m: string) {\r\n this.currentMonth = parseInt(m, 10);\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n }\r\n\r\n public onYearDropdownChange(y: string) {\r\n this.currentYear = parseInt(y, 10);\r\n this.createMonth(this.currentMonth, this.currentYear);\r\n }\r\n\r\n public onUserInput(event) {\r\n // IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026\r\n if (!this.isKeydown) {\r\n return;\r\n }\r\n this.isKeydown = false;\r\n const val = event.target.value;\r\n try {\r\n const value = this.parseValueFromString(val);\r\n this.updateModel(value);\r\n this.updateUI();\r\n } catch (err) {\r\n // invalid date\r\n this.updateModel(null);\r\n\r\n }\r\n\r\n this.filled = val != null && val.length;\r\n this.onInput.emit(event);\r\n }\r\n\r\n public parseValueFromString(text: string): Date {\r\n if (!text || text.trim().length === 0) {\r\n return null;\r\n }\r\n let value: any;\r\n\r\n if (this.isSingleSelection()) {\r\n value = this.parseDateTime(text);\r\n } else if (this.isMultipleSelection()) {\r\n const tokens = text.split(',');\r\n value = [];\r\n for (const token of tokens) {\r\n value.push(this.parseDateTime(token.trim()));\r\n }\r\n } else if (this.isRangeSelection()) {\r\n const tokens = text.split(' - ');\r\n value = [];\r\n for (let i = 0; i < tokens.length; i++) {\r\n value[ i ] = this.parseDateTime(tokens[ i ].trim());\r\n }\r\n }\r\n return value;\r\n }\r\n\r\n public parseDateTime(text): Date {\r\n let date: Date;\r\n const parts: string[] = text.split(' ');\r\n\r\n if (this.timeOnly) {\r\n date = new Date();\r\n this.populateTime(date, parts[ 0 ], parts[ 1 ]);\r\n } else {\r\n if (this.showTime) {\r\n date = this.parseDate(parts[ 0 ], this.dateFormat);\r\n this.populateTime(date, parts[ 1 ], parts[ 2 ]);\r\n } else {\r\n date = this.parseDate(text, this.dateFormat);\r\n }\r\n }\r\n\r\n return date;\r\n }\r\n\r\n public populateTime(value, timeString, ampm) {\r\n if (this.hourFormat === '12' && !ampm) {\r\n throw new Error('Invalid Time');\r\n }\r\n\r\n this.pm = (ampm === 'PM' || ampm === 'pm');\r\n const time = this.parseTime(timeString);\r\n value.setHours(time.hour);\r\n value.setMinutes(time.minute);\r\n value.setSeconds(time.second);\r\n }\r\n\r\n public updateUI() {\r\n let val = this.value || this.defaultDate || new Date();\r\n\r\n if (Array.isArray(val)) {\r\n val = val[ 0 ];\r\n }\r\n\r\n this.createMonth(val.getMonth(), val.getFullYear());\r\n\r\n if (this.showTime || this.timeOnly) {\r\n const hours = val.getHours();\r\n if (this.hourFormat === '12') {\r\n if (hours >= 12) {\r\n this.currentHour = (hours === 12) ? 12 : hours - 12;\r\n } else {\r\n this.currentHour = (hours === 0) ? 12 : hours;\r\n }\r\n } else {\r\n this.currentHour = val.getHours();\r\n }\r\n\r\n this.currentMinute = val.getMinutes();\r\n this.currentSecond = val.getSeconds();\r\n }\r\n }\r\n\r\n public onDatePickerClick(event) {\r\n this.datepickerClick = true;\r\n }\r\n\r\n public showOverlay() {\r\n this.overlayVisible = true;\r\n this.overlayShown = true;\r\n this.overlayViewChild.nativeElement.style.zIndex = String(++DomHandler.zindex);\r\n\r\n this.bindDocumentClickListener();\r\n }\r\n\r\n public alignOverlay() {\r\n if (this.appendTo) {\r\n this.domHandler.absolutePosition(this.overlayViewChild.nativeElement, this.inputfieldViewChild.nativeElement);\r\n } else {\r\n this.domHandler.relativePosition(this.overlayViewChild.nativeElement, this.inputfieldViewChild.nativeElement);\r\n }\r\n\r\n }\r\n\r\n public writeValue(value: any): void {\r\n this.value = value;\r\n if (this.value && typeof this.value === 'string') {\r\n this.value = this.parseValueFromString(this.value);\r\n }\r\n\r\n this.updateInputfield();\r\n this.updateUI();\r\n }\r\n\r\n public registerOnChange(fn: Function): void {\r\n this.onModelChange = fn;\r\n }\r\n\r\n public registerOnTouched(fn: Function): void {\r\n this.onModelTouched = fn;\r\n }\r\n\r\n public setDisabledState(val: boolean): void {\r\n this.disabled = val;\r\n }\r\n\r\n // Ported from jquery-ui datepicker formatDate\r\n public formatDate(date, format) {\r\n if (!date) {\r\n return '';\r\n }\r\n\r\n let iFormat,\r\n lookAhead = (match) => {\r\n const matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);\r\n if (matches) {\r\n iFormat++;\r\n }\r\n return matches;\r\n },\r\n formatNumber = (match, value, len) => {\r\n let num = '' + value;\r\n if (lookAhead(match)) {\r\n while (num.length < len) {\r\n num = '0' + num;\r\n }\r\n }\r\n return num;\r\n },\r\n formatName = (match, value, shortNames, longNames) => {\r\n return (lookAhead(match) ? longNames[ value ] : shortNames[ value ]);\r\n },\r\n output = '',\r\n literal = false;\r\n\r\n if (date) {\r\n for (iFormat = 0; iFormat < format.length; iFormat++) {\r\n if (literal) {\r\n if (format.charAt(iFormat) === '\\'' && !lookAhead('\\'')) {\r\n literal = false;\r\n } else {\r\n output += format.charAt(iFormat);\r\n }\r\n\r\n } else {\r\n switch (format.charAt(iFormat)) {\r\n case 'd':\r\n output += formatNumber('d', date.getDate(), 2);\r\n break;\r\n case 'D':\r\n output += formatName('D', date.getDay(), this.locale.dayNamesShort, this.locale.dayNames);\r\n break;\r\n case 'o':\r\n output += formatNumber('o',\r\n Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);\r\n break;\r\n case 'm':\r\n output += formatNumber('m', date.getMonth() + 1, 2);\r\n break;\r\n case 'M':\r\n output += formatName('M', date.getMonth(), this.locale.monthNamesShort, this.locale.monthNames);\r\n break;\r\n case 'y':\r\n output += (lookAhead('y') ? date.getFullYear() :\r\n (date.getFullYear() % 100 < 10 ? '0' : '') + date.getFullYear() % 100);\r\n break;\r\n case '@':\r\n output += date.getTime();\r\n break;\r\n case '!':\r\n output += date.getTime() * 10000 + this.ticksTo1970;\r\n break;\r\n case '\\'':\r\n if (lookAhead('\\'')) {\r\n output += '\\'';\r\n } else {\r\n literal = true;\r\n }\r\n break;\r\n default:\r\n output += format.charAt(iFormat);\r\n }\r\n }\r\n }\r\n }\r\n return output;\r\n }\r\n\r\n public formatTime(date) {\r\n if (!date) {\r\n return '';\r\n }\r\n\r\n let output = '';\r\n let hours = date.getHours();\r\n const minutes = date.getMinutes();\r\n const seconds = date.getSeconds();\r\n\r\n if (this.hourFormat === '12' && hours > 11 && hours !== 12) {\r\n hours -= 12;\r\n }\r\n\r\n output += (hours < 10) ? '0' + hours : hours;\r\n output += ':';\r\n output += (minutes < 10) ? '0' + minutes : minutes;\r\n\r\n if (this.showSeconds) {\r\n output += ':';\r\n output += (seconds < 10) ? '0' + seconds : seconds;\r\n }\r\n\r\n if (this.hourFormat === '12') {\r\n output += date.getHours() > 11 ? ' PM' : ' AM';\r\n }\r\n\r\n return output;\r\n }\r\n\r\n public parseTime(value) {\r\n const tokens: string[] = value.split(':');\r\n const validTokenLength = this.showSeconds ? 3 : 2;\r\n\r\n if (tokens.length !== validTokenLength) {\r\n throw new Error('Invalid time');\r\n }\r\n\r\n let h = parseInt(tokens[ 0 ], 10);\r\n const m = parseInt(tokens[ 1 ], 10);\r\n const s = this.showSeconds ? parseInt(tokens[ 2 ], 10) : null;\r\n\r\n if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || (this.hourFormat === '12' && h > 12) || (this.showSeconds && (isNaN(s) || s > 59))) {\r\n throw new Error('Invalid time');\r\n } else {\r\n if (this.hourFormat === '12' && h !== 12 && this.pm) {\r\n h += 12;\r\n }\r\n\r\n return { hour: h, minute: m, second: s };\r\n }\r\n }\r\n\r\n // Ported from jquery-ui datepicker parseDate\r\n public parseDate(value, format) {\r\n if (format == null || value == null) {\r\n throw new Error('Invalid arguments');\r\n }\r\n\r\n value = (typeof value === 'object' ? value.toString() : value + '');\r\n if (value === '') {\r\n return null;\r\n }\r\n\r\n let iFormat, dim, extra,\r\n iValue = 0,\r\n shortYearCutoff = (typeof this.shortYearCutoff !== 'string' ? this.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(this.shortYearCutoff, 10)),\r\n year = -1,\r\n month = -1,\r\n day = -1,\r\n doy = -1,\r\n literal = false,\r\n date;\r\n const lookAhead = (match) => {\r\n const matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);\r\n if (matches) {\r\n iFormat++;\r\n }\r\n return matches;\r\n };\r\n const getNumber = (match) => {\r\n const isDoubled = lookAhead(match),\r\n size = (match === '@' ? 14 : (match === '!' ? 20 :\r\n (match === 'y' && isDoubled ? 4 : (match === 'o' ? 3 : 2)))),\r\n minSize = (match === 'y' ? size : 1),\r\n digits = new RegExp('^\\\\d{' + minSize + ',' + size + '}'),\r\n num = value.substring(iValue).match(digits);\r\n if (!num) {\r\n throw new Error('Missing number at position ' + iValue);\r\n }\r\n iValue += num[ 0 ].length;\r\n return parseInt(num[ 0 ], 10);\r\n };\r\n const getName = (match, shortNames, longNames) => {\r\n let index = -1;\r\n const arr = lookAhead(match) ? longNames : shortNames;\r\n const names = [];\r\n\r\n for (let i = 0; i < arr.length; i++) {\r\n names.push([ i, arr[ i ] ]);\r\n }\r\n names.sort((a, b) => {\r\n return -(a[ 1 ].length - b[ 1 ].length);\r\n });\r\n\r\n for (let i = 0; i < names.length; i++) {\r\n const name = names[ i ][ 1 ];\r\n if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {\r\n index = names[ i ][ 0 ];\r\n iValue += name.length;\r\n break;\r\n }\r\n }\r\n\r\n if (index !== -1) {\r\n return index + 1;\r\n } else {\r\n throw new Error('Unknown name at position ' + iValue);\r\n }\r\n };\r\n const checkLiteral = () => {\r\n if (value.charAt(iValue) !== format.charAt(iFormat)) {\r\n throw new Error('Unexpected literal at position ' + iValue);\r\n }\r\n iValue++;\r\n };\r\n\r\n for (iFormat = 0; iFormat < format.length; iFormat++) {\r\n if (literal) {\r\n if (format.charAt(iFormat) === '\\'' && !lookAhead('\\'')) {\r\n literal = false;\r\n } else {\r\n checkLiteral();\r\n }\r\n } else {\r\n switch (format.charAt(iFormat)) {\r\n case 'd':\r\n day = getNumber('d');\r\n break;\r\n case 'D':\r\n getName('D', this.locale.dayNamesShort, this.locale.dayNames);\r\n break;\r\n case 'o':\r\n doy = getNumber('o');\r\n break;\r\n case 'm':\r\n month = getNumber('m');\r\n break;\r\n case 'M':\r\n month = getName('M', this.locale.monthNamesShort, this.locale.monthNames);\r\n break;\r\n case 'y':\r\n year = getNumber('y');\r\n break;\r\n case '@':\r\n date = new Date(getNumber('@'));\r\n year = date.getFullYear();\r\n month = date.getMonth() + 1;\r\n day = date.getDate();\r\n break;\r\n case '!':\r\n date = new Date((getNumber('!') - this.ticksTo1970) / 10000);\r\n year = date.getFullYear();\r\n month = date.getMonth() + 1;\r\n day = date.getDate();\r\n break;\r\n case '\\'':\r\n if (lookAhead('\\'')) {\r\n checkLiteral();\r\n } else {\r\n literal = true;\r\n }\r\n break;\r\n default:\r\n checkLiteral();\r\n }\r\n }\r\n }\r\n\r\n if (iValue < value.length) {\r\n extra = value.substr(iValue);\r\n if (!/^\\s+/.test(extra)) {\r\n throw new Error('Extra/unparsed characters found in date: ' + extra);\r\n }\r\n }\r\n\r\n if (year === -1) {\r\n year = new Date().getFullYear();\r\n } else if (year < 100) {\r\n year += new Date().getFullYear() - new Date().getFullYear() % 100 +\r\n (year <= shortYearCutoff ? 0 : -100);\r\n }\r\n\r\n if (doy > -1) {\r\n month = 1;\r\n day = doy;\r\n do {\r\n dim = this.getDaysCountInMonth(year, month - 1);\r\n if (day <= dim) {\r\n break;\r\n }\r\n month++;\r\n day -= dim;\r\n } while (true);\r\n }\r\n\r\n if (this.utc) {\r\n date = new Date(Date.UTC(year, month - 1, day));\r\n } else {\r\n date = this.daylightSavingAdjust(new Date(year, month - 1, day));\r\n }\r\n\r\n\r\n if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {\r\n throw new Error('Invalid date'); // E.g. 31/02/00\r\n }\r\n return date;\r\n }\r\n\r\n public daylightSavingAdjust(date) {\r\n if (!date) {\r\n return null;\r\n }\r\n date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);\r\n return date;\r\n }\r\n\r\n public updateFilledState() {\r\n this.filled = this.inputFieldValue && this.inputFieldValue !== '';\r\n }\r\n\r\n public onTodayButtonClick(event) {\r\n const date: Date = new Date();\r\n const dateMeta = { day: date.getDate(), month: date.getMonth(), year: date.getFullYear(), today: true, selectable: true };\r\n this.onDateSelect(event, dateMeta);\r\n this.onTodayClick.emit(event);\r\n }\r\n\r\n public onClearButtonClick(event) {\r\n this.updateModel(null);\r\n this.updateInputfield();\r\n this.overlayVisible = false;\r\n this.onClearClick.emit(event);\r\n }\r\n\r\n public bindDocumentClickListener() {\r\n if (!this.documentClickListener) {\r\n this.documentClickListener = this.renderer.listen('document', 'click', (event) => {\r\n if (!this.datepickerClick && this.overlayVisible) {\r\n this.overlayVisible = false;\r\n this.onClose.emit(event);\r\n }\r\n this.datepickerClick = false;\r\n this.cd.detectChanges();\r\n });\r\n }\r\n }\r\n\r\n public unbindDocumentClickListener() {\r\n if (this.documentClickListener) {\r\n this.documentClickListener();\r\n this.documentClickListener = null;\r\n }\r\n }\r\n\r\n ngOnDestroy() {\r\n this.unbindDocumentClickListener();\r\n if (!this.inline && this.appendTo) {\r\n this.el.nativeElement.appendChild(this.overlayViewChild.nativeElement);\r\n }\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class DomHandler {\r\n\r\n public static zindex: number = 1000;\r\n\r\n private calculatedScrollbarWidth: number = null;\r\n\r\n public addClass(element: any, className: string): void {\r\n if (element.classList)\r\n element.classList.add(className);\r\n else\r\n element.className += ' ' + className;\r\n }\r\n\r\n public addMultipleClasses(element: any, className: string): void {\r\n if (element.classList) {\r\n let styles: string[] = className.split(' ');\r\n for (let i = 0; i < styles.length; i++) {\r\n element.classList.add(styles[i]);\r\n }\r\n\r\n }\r\n else {\r\n let styles: string[] = className.split(' ');\r\n for (let i = 0; i < styles.length; i++) {\r\n element.className += ' ' + styles[i];\r\n }\r\n }\r\n }\r\n\r\n public removeClass(element: any, className: string): void {\r\n if (element.classList)\r\n element.classList.remove(className);\r\n else\r\n element.className = element.className.replace(new RegExp('(^|\\\\b)' + className.split(' ').join('|') + '(\\\\b|$)', 'gi'), ' ');\r\n }\r\n\r\n public hasClass(element: any, className: string): boolean {\r\n if (element.classList)\r\n return element.classList.contains(className);\r\n else\r\n return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);\r\n }\r\n\r\n public siblings(element: any): any {\r\n return Array.prototype.filter.call(element.parentNode.children, function (child) {\r\n return child !== element;\r\n });\r\n }\r\n\r\n public find(element: any, selector: string): any[] {\r\n return element.querySelectorAll(selector);\r\n }\r\n\r\n public findSingle(element: any, selector: string): any {\r\n return element.querySelector(selector);\r\n }\r\n\r\n public index(element: any): number {\r\n let children = element.parentNode.childNodes;\r\n let num = 0;\r\n for (var i = 0; i < children.length; i++) {\r\n if (children[i] == element) return num;\r\n if (children[i].nodeType == 1) num++;\r\n }\r\n return -1;\r\n }\r\n\r\n public relativePosition(element: any, target: any): void {\r\n let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);\r\n let targetHeight = target.offsetHeight;\r\n let targetWidth = target.offsetWidth;\r\n let targetOffset = target.getBoundingClientRect();\r\n let windowScrollTop = this.getWindowScrollTop();\r\n let viewport = this.getViewport();\r\n let top, left;\r\n \r\n if ((targetOffset.top + targetHeight + elementDimensions.height) > viewport.height) {\r\n top = -1 * (elementDimensions.height);\r\n if(targetOffset.top + top < 0) {\r\n top = 0;\r\n }\r\n }\r\n else {\r\n top = targetHeight;\r\n }\r\n \r\n \r\n if ((targetOffset.left + elementDimensions.width) > viewport.width)\r\n left = targetWidth - elementDimensions.width;\r\n else\r\n left = 0;\r\n\r\n element.style.top = top + 'px';\r\n element.style.left = left + 'px';\r\n }\r\n\r\n public absolutePosition(element: any, target: any): void {\r\n let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);\r\n let elementOuterHeight = elementDimensions.height;\r\n let elementOuterWidth = elementDimensions.width;\r\n let targetOuterHeight = target.offsetHeight;\r\n let targetOuterWidth = target.offsetWidth;\r\n let targetOffset = target.getBoundingClientRect();\r\n let windowScrollTop = this.getWindowScrollTop();\r\n let windowScrollLeft = this.getWindowScrollLeft();\r\n let viewport = this.getViewport();\r\n let top, left;\r\n\r\n if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {\r\n top = targetOffset.top + windowScrollTop - elementOuterHeight;\r\n if(top < 0) {\r\n top = 0 + windowScrollTop;\r\n }\r\n } \r\n else {\r\n top = targetOuterHeight + targetOffset.top + windowScrollTop;\r\n }\r\n\r\n if (targetOffset.left + targetOuterWidth + elementOuterWidth > viewport.width)\r\n left = targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth;\r\n else\r\n left = targetOffset.left + windowScrollLeft;\r\n\r\n element.style.top = top + 'px';\r\n element.style.left = left + 'px';\r\n }\r\n\r\n public getHiddenElementOuterHeight(element: any): number {\r\n element.style.visibility = 'hidden';\r\n element.style.display = 'block';\r\n let elementHeight = element.offsetHeight;\r\n element.style.display = 'none';\r\n element.style.visibility = 'visible';\r\n\r\n return elementHeight;\r\n }\r\n\r\n public getHiddenElementOuterWidth(element: any): number {\r\n element.style.visibility = 'hidden';\r\n element.style.display = 'block';\r\n let elementWidth = element.offsetWidth;\r\n element.style.display = 'none';\r\n element.style.visibility = 'visible';\r\n\r\n return elementWidth;\r\n }\r\n\r\n public getHiddenElementDimensions(element: any): any {\r\n let dimensions: any = {};\r\n element.style.visibility = 'hidden';\r\n element.style.display = 'block';\r\n dimensions.width = element.offsetWidth;\r\n dimensions.height = element.offsetHeight;\r\n element.style.display = 'none';\r\n element.style.visibility = 'visible';\r\n\r\n return dimensions;\r\n }\r\n\r\n public scrollInView(container, item) {\r\n let borderTopValue: string = getComputedStyle(container).getPropertyValue('borderTopWidth');\r\n let borderTop: number = borderTopValue ? parseFloat(borderTopValue) : 0;\r\n let paddingTopValue: string = getComputedStyle(container).getPropertyValue('paddingTop');\r\n let paddingTop: number = paddingTopValue ? parseFloat(paddingTopValue) : 0;\r\n let containerRect = container.getBoundingClientRect();\r\n let itemRect = item.getBoundingClientRect();\r\n let offset = (itemRect.top + document.body.scrollTop) - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;\r\n let scroll = container.scrollTop;\r\n let elementHeight = container.clientHeight;\r\n let itemHeight = this.getOuterHeight(item);\r\n\r\n if (offset < 0) {\r\n container.scrollTop = scroll + offset;\r\n }\r\n else if ((offset + itemHeight) > elementHeight) {\r\n container.scrollTop = scroll + offset - elementHeight + itemHeight;\r\n }\r\n }\r\n\r\n public fadeIn(element, duration: number): void {\r\n element.style.opacity = 0;\r\n\r\n let last = +new Date();\r\n let opacity = 0;\r\n let tick = function () {\r\n opacity = +element.style.opacity + (new Date().getTime() - last) / duration;\r\n element.style.opacity = opacity;\r\n last = +new Date();\r\n\r\n if (+opacity < 1) {\r\n (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16);\r\n }\r\n };\r\n\r\n tick();\r\n }\r\n\r\n public fadeOut(element, ms) {\r\n var opacity = 1,\r\n interval = 50,\r\n duration = ms,\r\n gap = interval / duration;\r\n\r\n let fading = setInterval(() => {\r\n opacity = opacity - gap;\r\n\r\n if (opacity <= 0) {\r\n opacity = 0;\r\n clearInterval(fading);\r\n }\r\n \r\n element.style.opacity = opacity;\r\n }, interval);\r\n }\r\n\r\n public getWindowScrollTop(): number {\r\n let doc = document.documentElement;\r\n return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\r\n }\r\n\r\n public getWindowScrollLeft(): number {\r\n let doc = document.documentElement;\r\n return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);\r\n }\r\n\r\n public matches(element, selector: string): boolean {\r\n var p = Element.prototype;\r\n var f = p['matches'] || p.webkitMatchesSelector || p['mozMatchesSelector'] || p['msMatchesSelector'] || function (s) {\r\n return [].indexOf.call(document.querySelectorAll(s), this) !== -1;\r\n };\r\n return f.call(element, selector);\r\n }\r\n\r\n public getOuterWidth(el, margin?) {\r\n let width = el.offsetWidth;\r\n\r\n if (margin) {\r\n let style = getComputedStyle(el);\r\n width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);\r\n }\r\n\r\n return width;\r\n }\r\n\r\n public getHorizontalPadding(el) {\r\n let style = getComputedStyle(el);\r\n return parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\r\n }\r\n\r\n public getHorizontalMargin(el) {\r\n let style = getComputedStyle(el);\r\n return parseFloat(style.marginLeft) + parseFloat(style.marginRight);\r\n }\r\n\r\n public innerWidth(el) {\r\n let width = el.offsetWidth;\r\n let style = getComputedStyle(el);\r\n\r\n width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\r\n return width;\r\n }\r\n\r\n public width(el) {\r\n let width = el.offsetWidth;\r\n let style = getComputedStyle(el);\r\n\r\n width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\r\n return width;\r\n }\r\n \r\n public getInnerHeight(el) {\r\n let height = el.offsetHeight;\r\n let style = getComputedStyle(el);\r\n\r\n height += parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);\r\n return height;\r\n }\r\n\r\n public getOuterHeight(el, margin?) {\r\n let height = el.offsetHeight;\r\n\r\n if (margin) {\r\n let style = getComputedStyle(el);\r\n height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);\r\n }\r\n\r\n return height;\r\n }\r\n\r\n public getHeight(el): number {\r\n let height = el.offsetHeight;\r\n let style = getComputedStyle(el);\r\n\r\n height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\r\n\r\n return height;\r\n }\r\n\r\n public getWidth(el): number {\r\n let width = el.offsetWidth;\r\n let style = getComputedStyle(el);\r\n\r\n width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);\r\n\r\n return width;\r\n }\r\n\r\n public getViewport(): any {\r\n let win = window,\r\n d = document,\r\n e = d.documentElement,\r\n g = d.getElementsByTagName('body')[0],\r\n w = win.innerWidth || e.clientWidth || g.clientWidth,\r\n h = win.innerHeight || e.clientHeight || g.clientHeight;\r\n\r\n return { width: w, height: h };\r\n }\r\n \r\n public getOffset(el) {\r\n let rect = el.getBoundingClientRect();\r\n \r\n return {\r\n top: rect.top + document.body.scrollTop,\r\n left: rect.left + document.body.scrollLeft\r\n };\r\n }\r\n\r\n getUserAgent(): string {\r\n return navigator.userAgent;\r\n }\r\n\r\n isIE() {\r\n var ua = window.navigator.userAgent;\r\n\r\n var msie = ua.indexOf('MSIE ');\r\n if (msie > 0) {\r\n // IE 10 or older => return version number\r\n return true;\r\n }\r\n\r\n var trident = ua.indexOf('Trident/');\r\n if (trident > 0) {\r\n // IE 11 => return version number\r\n var rv = ua.indexOf('rv:');\r\n return true;\r\n }\r\n\r\n var edge = ua.indexOf('Edge/');\r\n if (edge > 0) {\r\n // Edge (IE 12+) => return version number\r\n return true;\r\n }\r\n\r\n // other browser\r\n return false;\r\n }\r\n \r\n appendChild(element: any, target: any) {\r\n if(this.isElement(target))\r\n target.appendChild(element);\r\n else if(target.el && target.el.nativeElement)\r\n target.el.nativeElement.appendChild(element);\r\n else\r\n throw 'Cannot append ' + target + ' to ' + element;\r\n }\r\n \r\n removeChild(element: any, target: any) {\r\n if(this.isElement(target))\r\n target.removeChild(element);\r\n else if(target.el && target.el.nativeElement)\r\n target.el.nativeElement.removeChild(element);\r\n else\r\n throw 'Cannot remove ' + element + ' from ' + target;\r\n }\r\n \r\n isElement(obj: any) {\r\n return (typeof HTMLElement === \"object\" ? obj instanceof HTMLElement :\r\n obj && typeof obj === \"object\" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === \"string\"\r\n );\r\n }\r\n \r\n calculateScrollbarWidth(): number {\r\n if(this.calculatedScrollbarWidth !== null)\r\n return this.calculatedScrollbarWidth;\r\n \r\n let scrollDiv = document.createElement(\"div\");\r\n scrollDiv.className = \"ui-scrollbar-measure\";\r\n document.body.appendChild(scrollDiv);\r\n\r\n let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\r\n document.body.removeChild(scrollDiv);\r\n\r\n this.calculatedScrollbarWidth = scrollbarWidth;\r\n \r\n return scrollbarWidth;\r\n }\r\n \r\n public invokeElementMethod(element: any, methodName: string, args?: any[]): void {\r\n (element as any)[methodName].apply(element, args);\r\n }\r\n \r\n public clearSelection(): void {\r\n if(window.getSelection) {\r\n if(window.getSelection().empty) {\r\n window.getSelection().empty();\r\n } else if(window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {\r\n window.getSelection().removeAllRanges();\r\n }\r\n }\r\n else if(document['selection'] && document['selection'].empty) {\r\n try {\r\n document['selection'].empty();\r\n } catch(error) {\r\n //ignore IE bug\r\n }\r\n }\r\n }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\nimport * as hello from 'hellojs/dist/hello.all.js';\r\nimport * as MicrosoftGraphClient from '@microsoft/microsoft-graph-client';\r\nimport { BaseLoginProvider } from '../providers/base-login-provider';\r\n\r\n\r\nexport interface AuthServiceConfigItem {\r\n id: string,\r\n provider: BaseLoginProvider\r\n}\r\n\r\nexport class AuthServiceConfig {\r\n providers: Map = new Map();\r\n\r\n constructor(providers: AuthServiceConfigItem[]) {\r\n for (let i = 0; i < providers.length; i++) {\r\n const element = providers[ i ];\r\n this.providers.set(element.id, element.provider);\r\n }\r\n }\r\n}\r\n@Injectable()\r\nexport class AuthService {\r\n private static readonly LOGIN_PROVIDER_NOT_FOUND: string = 'Login provider not found';\r\n private providers: Map = new Map();\r\n\r\n constructor(config: AuthServiceConfig, private zone: NgZone) {\r\n this.providers = config.providers;\r\n\r\n this.providers.forEach((provider: BaseLoginProvider, key: string) => {\r\n provider.initialize().then(() => {\r\n }).catch((err) => {\r\n });\r\n });\r\n }\r\n\r\n public openSession(providerId: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n const providerObject = this.providers.get(providerId);\r\n if (providerObject) {\r\n providerObject.openSession().then(() => {\r\n resolve(true);\r\n }).catch(() => {\r\n reject();\r\n });\r\n } else {\r\n reject(AuthService.LOGIN_PROVIDER_NOT_FOUND);\r\n }\r\n });\r\n }\r\n\r\n public closeSession(providerId: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n const providerObject = this.providers.get(providerId);\r\n if (providerObject) {\r\n providerObject.closeSession().then(() => {\r\n resolve(true);\r\n });\r\n } else {\r\n reject(AuthService.LOGIN_PROVIDER_NOT_FOUND);\r\n }\r\n });\r\n }\r\n\r\n public getCalendarFreeBusyData(providerId, orders): Promise {\r\n return new Promise((resolve, reject) => {\r\n const providerObject = this.providers.get(providerId);\r\n if (providerObject) {\r\n providerObject.getCalendarFreeBusyData(orders).then((response) => {\r\n resolve(response);\r\n }).catch(() => {\r\n reject();\r\n });\r\n } else {\r\n reject();\r\n }\r\n });\r\n }\r\n public addEventToCalendar(providerId, calendarAddEventObject): Promise {\r\n return new Promise((resolve, reject) => {\r\n const providerObject = this.providers.get(providerId);\r\n if (providerObject) {\r\n providerObject.addEventToCalendar(calendarAddEventObject).then((response) => {\r\n resolve(response);\r\n }).catch(() => {\r\n reject();\r\n });\r\n } else {\r\n reject();\r\n }\r\n });\r\n }\r\n}\r\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ConfirmationComponent } from '../confirmation-dialog/confirmation/confirmation.component';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatButtonModule,\r\n MatIconModule\r\n ],\r\n exports: [ ConfirmationComponent ],\r\n declarations: [ ConfirmationComponent ]\r\n})\r\nexport class ConfirmationDialogModule { }\r\n","
\r\n
\r\n done\r\n

{{confirmationText}}

\r\n
\r\n
\r\n \r\n
\r\n
\r\n","import { Component, OnInit, Input } from '@angular/core';\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\n\r\n@Component({\r\n selector: 'app-confirmation',\r\n templateUrl: './confirmation.component.html',\r\n styleUrls: [ './confirmation.component.scss' ]\r\n})\r\nexport class ConfirmationComponent implements OnInit {\r\n @Input() confirmationText: string;\r\n\r\n constructor(private menuService: MenuService, public appSettings: AppSettings) { }\r\n\r\n ngOnInit() {\r\n }\r\n public closeDialog(event) {\r\n this.menuService.hideMenu();\r\n if (event) { event.preventDefault(); }\r\n }\r\n}\r\n","\r\nimport {map} from 'rxjs/operators';\r\nimport { Injectable, Inject, LOCALE_ID, Renderer2, RendererFactory2 } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Config } from '../shared';\r\nimport { CookieService } from 'ngx-cookie-service';\r\n\r\n// angular-google-maps\r\nimport { I18nService } from '../shared/services/i18n.service';\r\nimport { XPOConstants } from '../shared/constants/xpo-constants';\r\nimport { UnSecureHttp } from '../shared/services/unsecure-http.service';\r\n\r\n/**\r\n * @name app-settings.ts\r\n * @export\r\n * @class AppSettings\r\n * @description This is the AppSettings.\r\n * @author\r\n */\r\n@Injectable()\r\nexport class AppSettings {\r\n public static config: any;\r\n private _messageConfig: any;\r\n private userPrefLanguage: string;\r\n private locale: string;\r\n\r\n // For Rebranding\r\n private renderer2: Renderer2;\r\n private _domainName: string;\r\n private readonly _currentDomainName: string = 'xpo';\r\n private readonly _newDomainName: string = 'rxo';\r\n private readonly _hostName = window.location.hostname;\r\n public dynamicLiveChat = null;\r\n public dataLayer = (window).dataLayer;\r\n\r\n public googleMapStyle: Array = [\r\n {\r\n 'elementType': 'geometry',\r\n 'stylers':\r\n [\r\n { 'saturation': -45 },\r\n { 'lightness': 40 },\r\n { 'visibility': 'simplified' },\r\n { 'weight': 1.5 }\r\n ]\r\n },\r\n\r\n {\r\n 'elementType': 'labels',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative.land_parcel',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative.neighborhood',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'road.local',\r\n 'elementType': 'geometry.fill',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'road.local',\r\n 'elementType': 'geometry.stroke',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n }\r\n ];\r\n enableLiveChat: boolean;\r\n\r\n\r\n constructor(private http: UnSecureHttp, private i18nService: I18nService, @Inject(LOCALE_ID) locale: string, private rendererFactory: RendererFactory2) {\r\n this.locale = XPOConstants.I18N_FR.includes(locale) ? XPOConstants.I18N_FR : XPOConstants.I18N_EN;\r\n this.renderer2 = this.rendererFactory.createRenderer(null, null);\r\n this.setApplicationBasedOnDomainName();\r\n }\r\n\r\n get domainName(): string {\r\n return this._domainName;\r\n\r\n }\r\n\r\n init() {\r\n this.loadMessage();\r\n const promise = new Promise((resolve, reject) => {\r\n this.http\r\n .get(\"./assets/appSettings.json?v=14\")\r\n .pipe(\r\n map((res: any) => {\r\n this.enableLiveChat = res?.EnableDynamicsLiveChat;\r\n return res;\r\n })\r\n )\r\n .toPromise()\r\n .then(\r\n (config) => {\r\n // Success\r\n AppSettings.config = config;\r\n //setting the API URL from WEB-APP hostname, localhost takes from appsetting.json\r\n if (\r\n window.location.hostname &&\r\n window.location.hostname.includes(\"com\")\r\n ) {\r\n AppSettings.config.apiUrl =\r\n `https://${window.location.hostname}/trackapi/`.replace(\r\n \"track.\",\r\n \"clm.\"\r\n );\r\n }\r\n this.dynamicLiveChat = config?.dynamicLiveChat;\r\n resolve(true);\r\n },\r\n (error) => {\r\n // error\r\n reject(error);\r\n }\r\n );\r\n });\r\n return promise;\r\n }\r\n\r\n private setApplicationBasedOnDomainName(): void {\r\n // Fetching and setting domain Name\r\n if(this._hostName){\r\n this._domainName = this._hostName.endsWith(`${this._currentDomainName}.com`) ? this._currentDomainName.toUpperCase() : this._newDomainName.toUpperCase();\r\n\r\n // Adding CSS class based on domain\r\n this.renderer2.addClass(document.body, `${this.domainName.toLowerCase()}-internal-style`);\r\n }\r\n }\r\n\r\n get isNewDomain(): boolean {\r\n return this.domainName === this._newDomainName.toUpperCase();\r\n }\r\n\r\n public loadMessage() {\r\n return new Promise((resolve, reject) => {\r\n const url = './assets/' + this.i18nService.loadI18nJson(this.locale) + '.json?v=14';\r\n this.http.get(url).pipe(\r\n map(response => response))\r\n .toPromise()\r\n .then(\r\n data => {\r\n if (data) {\r\n this._messageConfig = data;\r\n resolve(true);\r\n }\r\n },\r\n error => { // error\r\n reject(error);\r\n }\r\n );\r\n });\r\n }\r\n\r\n public getMessage(key: any) {\r\n return this._messageConfig[ key ] !== 'undefined' ? this._messageConfig[ key ] : key;\r\n }\r\n //fn to track GTM events\r\n public eventTrack(evntObj) {\r\n if(this.dataLayer)\r\n this.dataLayer.push({\r\n 'event': evntObj.action,\r\n ...evntObj.properties\r\n });\r\n }\r\n\r\n}\r\n\r\nexport function configAppSettings(appSettings: AppSettings) { return () => appSettings.init(); }\r\n","import { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\nimport { Router } from '@angular/router';\r\nimport { Order } from 'app/shared';\r\n\r\n\r\n@Injectable()\r\nexport class MenuService {\r\n public status: Subject = new Subject();\r\n public menuStatus: Subject = new Subject();\r\n private _active = 1;\r\n private _displaySelected = false;\r\n private _menuItem;\r\n public isTimerTriggered = false;\r\n public segmentRefreshNeeded = false;\r\n public ismapRefreshNeeded = false;\r\n public isUserValidating = false;\r\n public isHomeSelected = false;\r\n public pageIndex = 0;\r\n public googleMapStyle = { height: '' };\r\n public productDetailsViewHeight = { height: '87px' };\r\n private orderStatus = '';\r\n public userDefaultlanguage;\r\n public isSearchDialogRequired = false;\r\n public isMultiOrder = false;\r\n public multiOrderCIpageIndex = 0;\r\n public paramTrigger = true;\r\n public isIndexValueNeedUpdate = false;\r\n public needToUpdateCache = false;\r\n public isFromSearch = false;\r\n public isLandingPage = false;\r\n public isUIClick =false;\r\n public soId:string='';\r\n //public soNavigated:boolean = false;\r\n //public isLeftNavigation =false;\r\n constructor(private router: Router) { }\r\n\r\n public get active(): number {\r\n return this._active;\r\n }\r\n public set active(v: number) {\r\n this._active = v;\r\n this.status.next(v);\r\n }\r\n\r\n public get displaySelected(): any {\r\n return this._displaySelected;\r\n }\r\n public set displaySelected(r: any) {\r\n this._displaySelected = r;\r\n this.menuStatus.next(r);\r\n }\r\n\r\n public closeDialog(event) {\r\n this.hideMenu();\r\n if (event) { event.preventDefault(); }\r\n }\r\n\r\n public isMobileDevice(): boolean {\r\n if (window.innerWidth <= 1024) {\r\n this.googleMapStyle.height = '100%';\r\n this.productDetailsViewHeight.height = '';\r\n if (this.router.url.split('?')[ 0 ] === '/') {\r\n this.isHomeSelected = true;\r\n } else {\r\n this.isHomeSelected = false;\r\n }\r\n return true;\r\n }\r\n if (this.orderStatus === 'IS' || this.orderStatus === 'EXP') {\r\n this.productDetailsViewHeight.height = (window.innerHeight - 360) + 'px';\r\n } else {\r\n this.productDetailsViewHeight.height = (window.innerHeight - 440) + 'px';\r\n }\r\n this.googleMapStyle.height = (window.innerHeight - 55) + 'px'; // 55 is header height\r\n return false;\r\n }\r\n\r\n public isFirefoxBrowser(): boolean {\r\n if (/Firefox/.test(navigator.userAgent)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public isAndroidDevice(): boolean {\r\n if (/Android/.test(navigator.userAgent)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public isIosDevice(): boolean {\r\n if (/iPad|iPhone|iPod/.test(navigator.userAgent)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public isIosDeviceSafariBrowser(): boolean {\r\n if (/Safari/.test(navigator.userAgent) && /iPad|iPhone|iPod/.test(navigator.userAgent)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public isSafariBrowser(): boolean {\r\n if (/Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor)) {\r\n return true;\r\n }\r\n if (/Safari/.test(navigator.userAgent) && /iPad|iPhone|iPod/.test(navigator.userAgent)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public isIpadSafariBrowser(): boolean {\r\n if ((navigator.vendor && navigator.vendor.indexOf('Apple') > -1 &&\r\n navigator.userAgent && !navigator.userAgent.match('CriOS'))\r\n && /iPad/.test(navigator.userAgent)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n public isIEBrowser() {\r\n const userAgent = navigator.userAgent;\r\n const msie = userAgent.indexOf('MSIE ');\r\n if (msie > 0) {\r\n // IE 10 or older\r\n return true;\r\n }\r\n\r\n const trident = userAgent.indexOf('Trident/');\r\n if (trident > 0) {\r\n // IE 11\r\n return true;\r\n }\r\n\r\n const edge = userAgent.indexOf('Edge/');\r\n if (edge > 0) {\r\n // Edge (IE 12+)\r\n return true;\r\n }\r\n return false;\r\n }\r\n public hideMenu(): void {\r\n this.isHomeSelected = true;\r\n this.active = 0;\r\n }\r\n\r\n public hideCloakView() {\r\n const cloakView: HTMLCollectionOf = document.getElementsByClassName('cdk-overlay-container');\r\n if (cloakView.length > 0) {\r\n cloakView[ 0 ].setAttribute('style', 'display: none;');\r\n }\r\n }\r\n public showCloakView() {\r\n const cloakView: HTMLCollectionOf = document.getElementsByClassName('cdk-overlay-container');\r\n if (cloakView.length > 0) {\r\n cloakView[ 0 ].setAttribute('style', 'display: block;');\r\n }\r\n }\r\n\r\n public isSMSFooterNeeded(orderStatus: string) {\r\n this.orderStatus = orderStatus;\r\n if (orderStatus === 'IS' || orderStatus === 'EXP') {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n public onNavigateCloseDailog(order) {\r\n if (this.router.url.split('?')[ 0 ] === ('/' || 'fr/')) {\r\n this.router.navigate([ '' ], { queryParams: { orderid: order } });\r\n this.hideMenu();\r\n } else {\r\n if (this.router.url.split('?')[ 0 ].startsWith('fr/')) {\r\n this.router.navigate([ '' ], { queryParams: { orderid: order } });\r\n this.hideMenu();\r\n } else {\r\n this.router.navigate([ '' ], { queryParams: { orderid: order } });\r\n this.hideMenu();\r\n }\r\n\r\n }\r\n }\r\n\r\n public isNumberValid(num, regex) {\r\n const regEx = new RegExp(regex);\r\n return (regEx.test(num));\r\n }\r\n\r\n public updateCache(oldArr, newArr) {\r\n for (let i = 0; i < oldArr.length; i++) {\r\n for (let i2 = 0; i2 < oldArr[ i ].length; i2++) {\r\n for (let j = 0; j < newArr.length; j++) {\r\n for (let j2 = 0; j2 < newArr[ j ].length; j2++) {\r\n if (oldArr[ i ][ i2 ].trackingNumber === newArr[ j ][ j2 ].trackingNumber) {\r\n oldArr[ i ] = newArr[ j ];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return oldArr;\r\n }\r\n\r\n}\r\n\r\n","
\r\n\r\n \r\n\r\n ","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { FormControl, Validators } from '@angular/forms';\r\nimport { MenuService } from '../core/layout/menu.service';\r\nimport { LoaderService } from '../loader/loader';\r\nimport { Order, OrderService, GoogleAnalyticsConstants } from '../shared';\r\nimport { Profile } from '../shared/model/profile';\r\nimport { Subscription } from 'rxjs';\r\nimport { PhonePipe } from '../shared/pipes/phone';\r\nimport { AppSettings } from '../core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-footer',\r\n templateUrl: './footer.component.html',\r\n styleUrls: [ './footer.component.scss' ]\r\n})\r\nexport class FooterComponent implements OnInit, OnDestroy {\r\n public rxoStr: string;\r\n public order: Order;\r\n private orderSubscription: Subscription;\r\n public enableLabel = 1;\r\n public mask = [ '(', /[1-9]/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/ ];\r\n public locationPathURL;\r\n public XPOCustomerCarephoneNumber: any;\r\n \r\n\r\n constructor(\r\n public orderService: OrderService,\r\n public menuService: MenuService,\r\n private router: Router,\r\n private spinner: LoaderService,\r\n private phonePipe: PhonePipe,\r\n private appSettings: AppSettings\r\n ) { \r\n this.rxoStr = this.appSettings.isNewDomain ? '-rxo' : '';\r\n }\r\n\r\n ngOnInit() {\r\n this.orderSubscription = this.orderService.order.subscribe(order => {\r\n if (order) {\r\n this.order = order;\r\n }\r\n });\r\n if (this.order.xpoPhoneNumber) {\r\n \r\n const newLocal = this;\r\n this.XPOCustomerCarephoneNumber=this.phonePipe.transform(this.order.xpoPhoneNumber,0)\r\n \r\n }\r\n }\r\n\r\n \r\n \r\n onClickAlertSubscription(event, subscribe: boolean) {\r\n this.locationPathURL = this.router.url.split('?')[ 0 ].replace(/\\//g, '');\r\n if ((!this.order.validated && this.locationPathURL !== 'verification')\r\n || (this.order.validated && this.locationPathURL !== 'alerts')) {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.ALERT_SUBSCRIPTION,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.ALERT_SUBSCRIPTION\r\n }\r\n });\r\n this.router.navigate([ 'alerts' ], { queryParams: { orderid: this.order.orderId } });\r\n this.hideProductDetailsIfMobile();\r\n event.preventDefault();\r\n }\r\n }\r\n\r\n sendEmail() {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.CONTACTUS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.CONTACTUS\r\n }\r\n });\r\n this.router.navigate([ 'email' ], { queryParams: { orderid: this.order.orderId } });\r\n this.hideProductDetailsIfMobile();\r\n }\r\n hideProductDetailsIfMobile() {\r\n if (this.menuService.isMobileDevice()) {\r\n this.menuService.isHomeSelected = false;\r\n this.menuService.segmentRefreshNeeded = false;\r\n this.menuService.ismapRefreshNeeded = false;\r\n }\r\n }\r\n\r\n ngOnDestroy() {\r\n this.orderSubscription.unsubscribe();\r\n }\r\n}\r\n","import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SharedModule } from '../shared/shared.module';\r\nimport { FooterComponent } from './footer.component';\r\nimport { NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { PhonePipe } from '../shared';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n MatInputModule,\r\n FormsModule,\r\n MatSlideToggleModule,\r\n ReactiveFormsModule\r\n ],\r\n declarations: [\r\n FooterComponent,\r\n ],\r\n providers: [\r\n PhonePipe\r\n ],\r\n exports: [\r\n FooterComponent,\r\n ],\r\n\r\n schemas: [ CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA ]\r\n})\r\n\r\nexport class FooterModule { }\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { LoaderService } from '../loader/loader.service';\r\nimport { TrackSpinnerComponent } from '../loader/track-spinner/track-spinner.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatProgressSpinnerModule\r\n ],\r\n exports: [\r\n TrackSpinnerComponent\r\n ],\r\n declarations: [TrackSpinnerComponent],\r\n providers: [\r\n LoaderService\r\n ]\r\n})\r\nexport class LoaderModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class LoaderService {\r\n public status: Subject = new Subject();\r\n private _active = true;\r\n\r\n public get active(): boolean {\r\n return this._active;\r\n }\r\n\r\n public set active(v: boolean) {\r\n this._active = v;\r\n this.status.next(v);\r\n }\r\n\r\n public showLoader(): void {\r\n this.active = true;\r\n }\r\n\r\n public hideLoader(): void {\r\n this.active = false;\r\n }\r\n}\r\n","export class GoogleAnalyticsConstants {\r\n public static readonly EVENT_CATEGORY = {\r\n HOME: 'home',\r\n SEARCH_ORDER: 'searchOrder',\r\n ORDER_DETAILS: 'orderDetails',\r\n PREPARATION_CHECKLIST: 'preparationCheckList',\r\n PROFILE: 'profile',\r\n MYCALENDAR: 'myCalendar',\r\n RESCHEDULE: 'scheduler',\r\n NOTIFICATIONS: 'notifications',\r\n CALL_XPO: 'callXPO',\r\n CONTACTUS: 'contactUs',\r\n TRAFFIC_LAYER: 'trafficLayer',\r\n TRAFFIC_ALERTS: 'trafficAlerts',\r\n WEATHER_ALERTS: 'weatherAlerts',\r\n DOWNLOAD_XPO_EVENT: 'downloadXPOevent',\r\n ALERT_SUBSCRIPTION: 'alertSubscription',\r\n USER_AUTHENTICATION: 'userAuthentication',\r\n TRACKING_LANDING: 'trackingLanding',\r\n SURVEY: 'survey',\r\n UNSUBSCRIBE_EMAIL: 'unsubscribeEmailNotification',\r\n ESIGN: 'e-sign',\r\n POD: 'proofofdelivery',\r\n IMAGES: 'images',\r\n HOURS_OF_OPERATION: 'hoursOfOperation'\r\n };\r\n\r\n public static readonly EVENT_ACTION = {\r\n OPEN: 'open',\r\n CALL: 'call',\r\n DISABLE: 'disable',\r\n ENABLE: 'enable',\r\n SHOW: 'show',\r\n DOWNLOAD: 'download',\r\n SUBMIT: 'submit',\r\n SAVE: 'save',\r\n ON: 'on',\r\n OFF: 'off',\r\n JOB_SEARCH: 'xpoTrackingNumber',\r\n SEND_CODE: 'sendCode',\r\n SUBMIT_CODE: 'submitCode',\r\n RETAILER_SEARCH: 'retailerSearch',\r\n DELIVERY_DATE_SEARCH: 'deliveryDateSearch'\r\n };\r\n}\r\n","/**\r\n * Model class which contains the google map config/constant properties\r\n */\r\nexport class MapConstants {\r\n static readonly MAP_UPDATE_INTERVAL = 60 * 60000; // 60 Minutes\r\n static readonly MAP_UPDATE_INTERVAL_ISPRECALL = 2.5 * 60000; // 60 Minutes\r\n static readonly TRAFFIC_COVERAGE = 20; // in miles\r\n static readonly COVERAGE_IN_UNIT = 'M'; // M -Miles, K -kilometer, N -nanoMiles\r\n\r\n // Right now centering the map to USA and setting the zoom level to 5\r\n // Once the markers are plotted, the zoom level will be changed to accommodate all the markers\r\n static readonly DEFAULT_LOCATION: any = {\r\n lat: 39,\r\n lng: -95\r\n };\r\n static readonly DEFAULT_ZOOM_LEVEL: number = 5;\r\n static readonly NON_VALIDATED_USER_ZOOM_LEVEL: number = 14;\r\n\r\n static readonly MAP_OPTIONS: any = {\r\n fullscreenControl: false,\r\n streetViewControl: false,\r\n mapTypeControl: false,\r\n gestureHandling: 'greedy',\r\n center: MapConstants.DEFAULT_LOCATION,\r\n zoom: MapConstants.DEFAULT_ZOOM_LEVEL,\r\n minZoom: 3,\r\n maxZoom: 15\r\n };\r\n\r\n static readonly TRUCK_PATH_1: string = `\r\n M11.3,21.7H0.1V8.2h11.2V21.7z M9.6,8.2L7.7,5.3H3.8L1.9,8.2H9.6z\r\n `;\r\n static readonly TRUCK_PATH_2: string = `\r\n M2.3,7.6l0-6.2l0.1-0.3l1.6-0.7l3.3,0l1.7,0.7l0.1,0.3l0,6.2L7.7,5.3l-3.9,0L2.3,7.6z\r\n `;\r\n static readonly TRUCK_PATH_3: string = `\r\n M3.1,5.1L2.6,2.7l1.5-0.2l3.3,0l1.5,0.2L8.5,5.1L7.4,4.9l-3.3,0L3.1,5.1z M1.7,3.5L1.7,3.5L1.6,3.3L1.1,3.4L1,3.5l0,0.2\r\n l0.7-0.1l0.8,0l0-0.1L1.7,3.5L1.7,3.5z M9.8,3.5L9,3.5l0,0.1l0.8,0l0.7,0.1l0-0.2l-0.1-0.1L10,3.3L9.8,3.4L9.8,3.5L9.8,3.5z\r\n M4.1,0.4l3.3,0l1.7,0.7L9,0.8L7.4,0.2L5.8,0.1L4.1,0.2L2.6,0.8L2.5,1.1L4.1,0.4z M3,21.6H1.5v0.1H3V21.6z M9.9,21.6H8.4v0.1h1.5\r\n V21.6z\r\n `;\r\n static readonly CIRCLE_PATH: string = `\r\n M16,32C7.2,32,0,24.8,0,16C0,7.2,7.2,0,16,0c8.8,0,16,7.2,16,16C32,24.8,24.8,32,16,32z M16,0.1\r\n C7.2,0.1,0.1,7.2,0.1,16S7.2,31.9,16,31.9c8.8,0,15.9-7.1,15.9-15.9S24.8,0.1,16,0.1z\r\n M16,0.1C7.2,0.1,0.1,7.2,0.1,16c0,8.8,7.1,15.9,15.9,15.9c8.8,0,15.9-7.1,15.9-15.9C31.9,7.2,24.8,0.1,16,0.1z\r\n `;\r\n\r\n static readonly TRUCK_PATH_1_COLOR: string = '#dbdbdb';\r\n static readonly TRUCK_PATH_2_COLOR: string = '#dbdbdb';\r\n static readonly TRUCK_PATH_3_COLOR: string = '#000000';\r\n\r\n static readonly HOME_PATH_1: string = `\r\n M26,0 C11.6404889,0 0,11.6404889 0,26 C0,40.3595111 11.6404889,52 26,52 C40.3595111,52 52,\r\n 40.3595111 52,26 C52,11.6404889 40.3595111,0 26,0 Z`;\r\n static readonly HOME_PATH_2: string = `\r\n M38.1870667 37.5971556 28.548 37.5971556 28.548 28.5173778 23.4525778 28.5173778 23.4525778\r\n 37.5971556 13.8129333 37.5971556 13.8129333 23.9176889 26 15.2342667 38.1870667 23.9176889 Z`;\r\n static readonly HOME_PATH_3: string = `\r\n M40.0284444 23.9176889 26 14.0088 11.9727111 23.9176889 9.29875556 23.9176889 26 12.0905778\r\n 42.7012444 23.9171111 40.0284444 23.9171111 Z`;\r\n static readonly HOME_PATH_4: string = 'm 34,50 -9,9 -9,-9 z';\r\n\r\n static readonly BLUE_COLOR: string = '#0091EA';\r\n static readonly WHITE_COLOR: string = '#FFFFFF';\r\n static readonly TRANSPARENT_COLOR: string = 'transparent';\r\n\r\n static readonly HOME_DEFAULT_ZOOM = 0.9;\r\n static readonly TRUCK_DEFAULT_ZOOM = 1.5;\r\n}\r\n","export class XPOConstants {\r\n public static readonly NAME_REGEX = '[a-zA-Z]+';\r\n public static readonly EMAIL_REGEX = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}))$/;\r\n public static readonly MESSAGE_REGEX = '^[A-Za-z0-9 _]*[A-Za-z0-9][A-Za-z0-9 _]*$';\r\n public static readonly PHONE_REGEX = '^[0-9]{10}$';\r\n public static readonly PHONE_MASK = '(999) 999-9999';\r\n public static readonly DATE_REGEX = '^([0]?[1-9]|[1][0-2])[./-]([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0-9]{4}|[0-9]{2})$';\r\n public static readonly JOB_NUMBER_REGEX = '^[A-Za-z0-9]*$';\r\n public static readonly RESCHEDULE_DATE_SPLIT_REGEX = /[^0-9]/;\r\n public static readonly CONDITIONS_URL = 'http://www.xpo.com/sms';\r\n public static readonly PRIVACY_URL = 'http://www.xpo.com/privacy-policy';\r\n public static readonly CONDITIONS_URL_RXO = 'http://www.rxo.com/sms';\r\n public static readonly PRIVACY_URL_RXO = 'http://www.rxo.com/privacy-policy';\r\n public static readonly I18N_FILE_NAME = 'messageSettings';\r\n public static readonly ENGLISH = 'English';\r\n public static readonly FRENCH = 'French';\r\n public static readonly I18N_EN = 'en-US';\r\n public static readonly I18N_FR = 'fr-CA';\r\n public static readonly LOCALE_EN = 'en';\r\n public static readonly LOCALE_FR = 'fr';\r\n public static readonly I18N_COOKIES_KEY = 'i18nLanguage';\r\n public static readonly SUPPORT_EMAIL_XPO = 'lastmileorders@xpo.com';\r\n public static readonly SUPPORT_EMAIL_RXO = 'lastmileorders@rxo.com';\r\n public static readonly XPO_SUPPORT_CONTACT = '(800) 883-4593';\r\n public static readonly SUPPORT_EMAIL_SUBJECT_LANDING_PAGE = \"[DOMAIN_NAME] Customer Order Tracking\";\r\n public static readonly SUPPORT_EMAIL_SUBJECT_LANDING_PAGE_FRENCH = \"Suivi des commandes client [DOMAIN_NAME]\";\r\n public static readonly SEARCH_COMPONENT_SIZE = 387;\r\n public static readonly ERROR_COMPONENT_SIZE = 350;\r\n public static readonly CONTACT_COMPONENT_SIZE = 116;\r\n public static readonly MARGIN_LARGE = 30;\r\n public static readonly MARGIN_SMALL = 10;\r\n public static readonly MOBILE_SIZE_LARGE = 700;\r\n public static readonly XPO_URL = 'https://www.xpo.com/';\r\n public static readonly RXO_URL = 'https://www.rxo.com/';\r\n\r\n \r\n\r\n\r\n public static readonly ERROR_MESSAGE = {\r\n PAGE_NOT_FOUND_ICON: 'search',\r\n INTERNAL_SERVER_ERROR_ICON: 'storage',\r\n CONNECTION_ERROR_ICON: 'cloud_off',\r\n FORBIDDEN_ICON: 'block'\r\n };\r\n}\r\n","export class TruckLocation {\r\n constructor(\r\n public lat: number,\r\n public long: number\r\n ) {\r\n }\r\n}\r\n","export class Traffic {\r\n authenticationResultCode: string;\r\n brandLogoUri: string;\r\n copyright: string;\r\n resourceSets: ResourceSet[];\r\n statusCode: number;\r\n statusDescription: string;\r\n traceId: string;\r\n}\r\n\r\nexport class Point {\r\n type: string;\r\n coordinates: number[];\r\n}\r\n\r\nexport class ToPoint {\r\n type: string;\r\n coordinates: number[];\r\n}\r\n\r\nexport class Resource {\r\n __type: string;\r\n point: Point;\r\n description: string;\r\n end: Date;\r\n incidentId: any;\r\n lastModified: Date;\r\n roadClosed: boolean;\r\n severity: number;\r\n source: number;\r\n start: Date;\r\n toPoint: ToPoint;\r\n type: number;\r\n verified: boolean;\r\n}\r\n\r\nexport class ResourceSet {\r\n estimatedTotal: number;\r\n resources: Resource[];\r\n}\r\n\r\nexport class TrafficAlertItem {\r\n constructor(\r\n public description: string,\r\n public roadClosed: boolean,\r\n public lastModified: string,\r\n public index: number) { }\r\n}\r\n","export class Survey {\r\n constructor(\r\n public answerId: number,\r\n public answerDesc: string,\r\n public answerTypeId: number,\r\n public answerTypeName: string,\r\n public options: Option[],\r\n public questionId: number,\r\n public questionDesc: string,\r\n public isSurveyAlreadyTaken: boolean\r\n ) { }\r\n}\r\n\r\nexport class Option {\r\n constructor(\r\n public answerItemId: number,\r\n public answerItemValueId: number,\r\n public answerItemName: string,\r\n ) { }\r\n}\r\n\r\nexport class SurveyAnswer {\r\n constructor(\r\n public questionId: number,\r\n public questionDescription: string,\r\n public answer: string[],\r\n public answerItemId: number[],\r\n public answerTypeName: string,\r\n public other: string,\r\n public answerDescription: string\r\n ) { }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport * as moment from 'moment';\r\nimport { saveAs } from 'file-saver';\r\nimport { Order } from '../../shared';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { AppSettings } from '../../core/app-settings';\r\n\r\n@Injectable()\r\nexport class AddToCalendarService {\r\n private icalendar: string[] = [];\r\n private calendarFileName = '';\r\n\r\n constructor(private menuService: MenuService, private appSettings: AppSettings) { }\r\n\r\n public addToCalendar(orders: Order[], event: string) {\r\n this.icalendar = this.getIcsCalendarForAddition(orders);\r\n this.icalendar.join('\\n');\r\n this.downloadCalendar();\r\n }\r\n\r\n private getIcsCalendarForAddition(orders: Order[]): string[] {\r\n if (orders[0].billTo.name) {\r\n this.calendarFileName = this.getIcsFileName(orders[0].billTo.name + ' Appointment', false);\r\n } else {\r\n this.calendarFileName = this.getIcsFileName('Delivery' + ' Appointment', false);\r\n }\r\n const calendarData: string[] = [];\r\n if (this.menuService.isSafariBrowser()) {\r\n /*\r\n ** Dont change the formatting below. This will affect the ics behaviour\r\n */\r\n calendarData.push(\r\n `BEGIN:VCALENDAR\r\nVERSION:2.0\r\nCLASS:PUBLIC`);\r\n for (const order of orders) {\r\n // API logic pending\r\n const calendarString = `\r\nBEGIN:VEVENT\r\nMETHOD:REQUEST\r\nDESCRIPTION:${order.billTo.name} ${this.appSettings.getMessage('APPOINTMENT_XPO_ORDER_ID').replace('[DOMAIN_NAME]', this.appSettings.domainName)} ${order.trackingNumber}\r\nDTSTART:${this.getTimeWindow(order.deliveryServiceWindowStartTime)}\r\nDTEND:${this.getTimeWindow(order.deliveryServiceWindowEndTime)}\r\nSUMMARY:${order.billTo.name} ${this.appSettings.getMessage('APPOINTMENT_XPO_ORDER_ID').replace('[DOMAIN_NAME]', this.appSettings.domainName)} ${order.trackingNumber}\r\nTRANSP:TRANSPARENT\r\nSEQUENCE:1\r\nEND:VEVENT`;\r\n calendarData.push(calendarString);\r\n }\r\n calendarData.push(`\r\nUID:xpolastmile\r\nDTSTAMP:${this.getTimeCreated()}\r\nPRODID:xpolastmile\r\nEND:VCALENDAR`);\r\n return calendarData;\r\n } else {\r\n /*\r\n ** Dont change the formatting below. This will affect the ics behaviour\r\n */\r\n calendarData.push(\r\n `BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:xpolastmile`);\r\n for (const order of orders) {\r\n // API logic pending\r\n const calendarString = `\r\nBEGIN:VEVENT\r\nMETHOD:REQUEST\r\nDTSTAMP:${this.getTimeCreated()}\r\nSEQUENCE:1\r\nUID:xpolastmile\r\nDTSTART:${this.getTimeWindow(order.deliveryServiceWindowStartTime)}\r\nDTEND:${this.getTimeWindow(order.deliveryServiceWindowEndTime)}\r\nSUMMARY:${order.billTo.name} ${this.appSettings.getMessage('APPOINTMENT_XPO_ORDER_ID').replace('[DOMAIN_NAME]', this.appSettings.domainName)} ${order.trackingNumber}\r\nDESCRIPTION:${order.billTo.name} ${this.appSettings.getMessage('APPOINTMENT_XPO_ORDER_ID').replace('[DOMAIN_NAME]', this.appSettings.domainName)} ${order.trackingNumber}\r\nTRANSP:OPAQUE\r\nEND:VEVENT`;\r\n calendarData.push(calendarString);\r\n }\r\n calendarData.push(`\r\nEND:VCALENDAR`);\r\n return calendarData;\r\n\r\n }\r\n\r\n }\r\n\r\n private getIcsFileName(title, isExtensionNeeded) {\r\n if (isExtensionNeeded) {\r\n return `${title.replace(/[^\\w ]+/g, '')}.ics`;\r\n }\r\n return `${title.replace(/[^\\w ]+/g, '')}`;\r\n }\r\n\r\n private getTimeCreated() {\r\n return moment().format('YYYYMMDDTHHmmss');\r\n }\r\n\r\n private downloadCalendar() {\r\n const fileName = this.getIcsFileName(this.calendarFileName, true),\r\n icsBlob = this.getIcsBlob(this.icalendar); // file saver format (name, dataUrl, data)\r\n saveAs(icsBlob, fileName);\r\n }\r\n\r\n private getIcsBlob(icsData) {\r\n return new Blob(icsData, {\r\n type: 'text/calendar'\r\n });\r\n }\r\n private getTimeWindow(deliveryWindow) {\r\n return moment(deliveryWindow).format('YYYYMMDDTHHmmss');\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\n\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport { Document } from '../../shared';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { tap } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class ImageService {\r\n private documents = new Map();\r\n constructor(private http: HttpClient) {}\r\n\r\n public getDocuments(orderId: string): Observable {\r\n if (!this.documents[orderId]) {\r\n const url = this.getUri(orderId);\r\n return this.http.get(url).pipe(\r\n tap(docs => {\r\n this.documents[orderId] = docs;\r\n })\r\n );\r\n }\r\n return of(this.documents[orderId]);\r\n }\r\n\r\n public getImages(orderId: string, documentKey: string): Observable {\r\n const url = this.getImageUri(orderId, documentKey);\r\n return this.http.get(url, { responseType: 'text' as 'json' });\r\n }\r\n\r\n private getUri(id: string): string {\r\n return AppSettings.config.apiUrl + 'trips/' + id + '/documents';\r\n }\r\n private getImageUri(id: string, key: string): string {\r\n return AppSettings.config.apiUrl + 'trips/' + id + '/documents/' + key;\r\n }\r\n}\r\n","export class Config {\r\n constructor(public apiUrl: string, public dynamicLiveChat: any) {}\r\n}\r\n\r\nexport interface LiveChatSettings {\r\n Source: string;\r\n AppId: string;\r\n Env: string;\r\n OrgId: string;\r\n OrgUrl: string;\r\n Language: string;\r\n}\r\n\r\nexport const languageMapping: { [key: string]: string } = {\r\n 'fr': 'French',\r\n 'es': 'Spanish',\r\n 'en': 'English'\r\n};\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport * as moment from 'moment';\r\nimport { I18nService } from '../../shared/services/i18n.service';\r\n\r\n@Pipe({\r\n name: 'datex'\r\n})\r\n\r\nexport class DatexPipe implements PipeTransform {\r\n \r\n constructor( private i18nService:I18nService) {\r\n }\r\n transform(value: any, format: string = ''): string {\r\n // Try and parse the passed value.\r\n const momentDate = moment(value);\r\n // If moment didn't understand the value, return it unformatted.\r\n if (!momentDate.isValid()) { return value; }\r\n // Otherwise, return the date formatted as requested.\r\n moment.locale(this.i18nService.localeID);\r\n return momentDate.format(format);\r\n }\r\n}\r\n","import { Pipe } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'phone'\r\n})\r\n\r\nexport class PhonePipe {\r\n transform(tel, args) {\r\n if (!tel) return '';\r\n const value = tel.toString().trim().replace(/^\\+/, '');\r\n\r\n if (value.match(/[^0-9]/)) {\r\n return tel;\r\n }\r\n\r\n let country, city, number;\r\n\r\n switch (value.length) {\r\n case 10: // +1PPP####### -> C (PPP) ###-####\r\n country = 1;\r\n city = value.slice(0, 3);\r\n number = value.slice(3);\r\n break;\r\n\r\n case 11: // +CPPP####### -> CCC (PP) ###-####\r\n country = value[ 0 ];\r\n city = value.slice(1, 4);\r\n number = value.slice(4);\r\n break;\r\n\r\n case 12: // +CCCPP####### -> CCC (PP) ###-####\r\n country = value.slice(0, 3);\r\n city = value.slice(3, 5);\r\n number = value.slice(5);\r\n break;\r\n\r\n default:\r\n return tel;\r\n }\r\n\r\n if (country == 1) {\r\n country = '';\r\n }\r\n\r\n number = number.slice(0, 3) + '-' + number.slice(3);\r\n\r\n return (country + ' (' + city + ') ' + number).trim();\r\n }\r\n \r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { AppSettings } from \"../../core/app-settings\";\r\nimport { LiveChatSettings,languageMapping } from \"../model/config\";\r\nimport { I18nService } from \"./i18n.service\";\r\n\r\n@Injectable()\r\nexport class ChatService {\r\n liveChatSettings: LiveChatSettings;\r\n\r\n get icPatronChat(): any {\r\n return (window as any).icPatronChat;\r\n }\r\n\r\n constructor(private appSettings: AppSettings,private i18Service:I18nService) {\r\n const languageCode = i18Service.getLanguage().slice(0, 2);\r\n const language = languageMapping[languageCode];\r\n this.liveChatSettings = appSettings[\"dynamicLiveChat\"].find(item => item.Language === language);\r\n }\r\n\r\n init(salesOrderId?: string, isVerified?: boolean, workOrderId?: string) {\r\n // reset the Chat script if order api is called again\r\n if ((window as any).icPatronChat) {\r\n (window as any).icPatronChat = undefined;\r\n }\r\n\r\n if (this.appSettings?.enableLiveChat) {\r\n if(this.liveChatSettings.Language === languageMapping['en']) {\r\n this.initLiveChat(salesOrderId, isVerified, workOrderId);\r\n return;\r\n }\r\n else if(this.liveChatSettings.Language === languageMapping['fr']){ // return if enableLiveChat is true and language is french\r\n return;\r\n }\r\n }\r\n\r\n let iCchat = document.createElement(\"script\");\r\n iCchat.src =\r\n \"https://home-c9.incontact.com/inContact/ChatClient/js/embed.min.js\";\r\n iCchat.type = \"text/javascript\";\r\n iCchat.id = \"chat\";\r\n iCchat.onload = () => {\r\n this.setChatOptions(salesOrderId);\r\n };\r\n document.body.appendChild(iCchat);\r\n }\r\n\r\n setChatOptions(salesOrderId?: string) {\r\n this.icPatronChat.init(this.getChatOptions({ params: [salesOrderId] }));\r\n }\r\n\r\n private getChatOptions(options?) {\r\n return Object.assign(\r\n {\r\n serverHost: \"https://home-c9.incontact.com\",\r\n bus_no: 4593852,\r\n poc: \"1aee9a17-1e3a-4592-9adc-64b19d2cdae8\",\r\n },\r\n options\r\n );\r\n }\r\n\r\n public initLiveChat(salesOrderId: string, isVerified: boolean, workOrderId?: string): void {\r\n (window as any).salesOrderId = salesOrderId;\r\n (window as any).isVerified = isVerified;\r\n (window as any).workOrderId = workOrderId;\r\n // Load the main chat script and initialize the chat\r\n const chatScript = this.createScriptElement(\r\n \"../../../assets/js/DynamicsLiveChat.js\",\r\n \"chat\"\r\n );\r\n chatScript.onload = () => {\r\n if (typeof (window as any).initChat === \"function\") {\r\n (window as any).initChat();\r\n }\r\n };\r\n if (this.isExistingUrl(\"../../../assets/js/DynamicsLiveChat.js\"))\r\n document.body.appendChild(chatScript);\r\n\r\n const liveChatScript = this.createScriptElement(\r\n this.liveChatSettings.Source,\r\n \"Microsoft_Omnichannel_LCWidget\",\r\n {\r\n \"data-app-id\": this.liveChatSettings.AppId,\r\n \"data-lcw-version\": \"prod\",\r\n \"data-org-id\": this.liveChatSettings.OrgId,\r\n \"data-org-url\": this.liveChatSettings.OrgUrl,\r\n \"data-customization-callback\": \"lcw\",\r\n \"data-color-override\": \"#00f49c\",\r\n }\r\n );\r\n if (this.isExistingUrl(this.liveChatSettings.Source))\r\n document.body.appendChild(liveChatScript);\r\n\r\n if (typeof (window as any).initChat === \"function\") {\r\n (window as any).initChat();\r\n }\r\n }\r\n\r\n private createScriptElement(\r\n src: string,\r\n id: string,\r\n attributes: Record = {}\r\n ): HTMLScriptElement {\r\n const scriptElement = document.createElement(\"script\");\r\n scriptElement.src = src;\r\n scriptElement.type = \"text/javascript\";\r\n scriptElement.id = id;\r\n\r\n // Add additional attributes if provided\r\n Object.keys(attributes).forEach((key) => {\r\n scriptElement.setAttribute(key, attributes[key]);\r\n });\r\n\r\n return scriptElement;\r\n }\r\n\r\n private isExistingUrl(src): boolean {\r\n const existingScript = document.querySelector(`script[src=\"${src}\"]`);\r\n return !existingScript;\r\n }\r\n}\r\n","\r\nimport {throwError as observableThrowError, Observable , Subject } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class ErrorHandlerService {\r\n private httpErrorSubject: Subject = new Subject();\r\n\r\n constructor() { }\r\n\r\n get httpErrorCode(): Observable {\r\n return this.httpErrorSubject.asObservable();\r\n }\r\n // Handles error\r\n public handleError(error: Response | any): Observable {\r\n this.httpErrorSubject.next(error);\r\n return observableThrowError(new Error(error.status));\r\n }\r\n\r\n}\r\n","import { Injectable, LOCALE_ID, Inject } from '@angular/core';\r\nimport { Observable , Subject } from 'rxjs';\r\nimport { CookieService } from 'ngx-cookie-service';\r\nimport { PlatformLocation, Location } from '@angular/common';\r\nimport { XPOConstants } from '../../shared/constants/xpo-constants';\r\nimport { OrderService } from '../../shared';\r\n\r\n@Injectable()\r\nexport class I18nService {\r\n\r\n private XPOLanguage = [ XPOConstants.I18N_EN, XPOConstants.I18N_FR ];\r\n private userPreferedLanguage;\r\n private fileName: string;\r\n public localeID;\r\n public locationPath = '';\r\n public tokenOrder;\r\n public fromSearchDialog = false;\r\n\r\n constructor(public cookieService: CookieService,\r\n locationPath: Location, @Inject(LOCALE_ID) locale: string) {\r\n this.fileName = XPOConstants.I18N_FILE_NAME;\r\n this.userPreferedLanguage = this.cookieService.get(XPOConstants.I18N_COOKIES_KEY);\r\n this.localeID = XPOConstants.I18N_FR.includes(locale) ? XPOConstants.I18N_FR : XPOConstants.I18N_EN;\r\n this.locationPath = locationPath.path();\r\n }\r\n\r\n public getLanguage() {\r\n if (this.userPreferedLanguage) {\r\n this.reloadCheck(this.userPreferedLanguage);\r\n return this.userPreferedLanguage;\r\n } else if (this.localeID === (XPOConstants.I18N_FR || XPOConstants.I18N_EN)) {\r\n return this.localeID;\r\n } else {\r\n if (this.XPOLanguage.indexOf(navigator.language) !== -1) {\r\n this.reloadCheck(navigator.language);\r\n return navigator.language;\r\n } else {\r\n this.reloadCheck(XPOConstants.I18N_EN);\r\n return XPOConstants.I18N_EN;\r\n }\r\n }\r\n }\r\n\r\n private reloadCheck(language) {\r\n if (language !== this.localeID && !language.includes(this.localeID)) {\r\n this.reLoadURL(language);\r\n }\r\n }\r\n\r\n public setLanguage(prefLanguage: string, searchedOrder: string) {\r\n this.tokenOrder = searchedOrder;\r\n this.cookieService.delete(XPOConstants.I18N_COOKIES_KEY, '/fr');\r\n this.cookieService.delete(XPOConstants.I18N_COOKIES_KEY, '/fr/');\r\n this.cookieService.delete(XPOConstants.I18N_COOKIES_KEY, '/');\r\n this.cookieService.set(XPOConstants.I18N_COOKIES_KEY, prefLanguage);\r\n }\r\n\r\n public loadI18nJson(language) {\r\n if (language === XPOConstants.I18N_FR) {\r\n this.fileName += '-fr';\r\n }\r\n return this.fileName;\r\n }\r\n\r\n public reLoadURL(prefLanguage) {\r\n\r\n if (this.tokenOrder) {\r\n if (this.fromSearchDialog) {\r\n switch (this.locationPath) {\r\n case '':\r\n this.locationPath = this.locationPath + '?orderid=' + this.tokenOrder;\r\n break;\r\n case '?orderid=':\r\n this.locationPath = this.locationPath + this.tokenOrder;\r\n break;\r\n case '?orderid':\r\n this.locationPath = this.locationPath + '=' + this.tokenOrder;\r\n break;\r\n case '?':\r\n this.locationPath = this.locationPath + 'orderid=' + this.tokenOrder;\r\n break;\r\n }\r\n this.fromSearchDialog = false;\r\n } else {\r\n this.locationPath = this.locationPath.replace(this.locationPath.split('=', 2)[ 1 ], this.tokenOrder);\r\n }\r\n\r\n if (prefLanguage === XPOConstants.I18N_FR) {\r\n this.locationPath = '?orderid=' + this.tokenOrder;\r\n location.replace(`/${'fr'}/${this.locationPath}`);\r\n } else {\r\n this.locationPath = '?orderid=' + this.tokenOrder;\r\n location.replace(`/${this.locationPath}`);\r\n }\r\n\r\n } else {\r\n if (prefLanguage === XPOConstants.I18N_FR) {\r\n if (this.locationPath.startsWith('/')) {\r\n location.replace(`/${'fr'}${this.locationPath}`);\r\n } else {\r\n location.replace(`/${'fr'}/${this.locationPath}`);\r\n }\r\n } else {\r\n //trimming the fr path to load the en ng version\r\n if (this.locationPath.startsWith('/fr')) {\r\n location.replace(`${this.locationPath.substring(3)}`);\r\n } else {\r\n location.replace(`${this.locationPath.substring(2)}`);\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n public getLocale() {\r\n if (this.localeID === XPOConstants.I18N_FR) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n","import {throwError as observableThrowError, Observable , Subject , BehaviorSubject } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\nimport { catchError , tap } from 'rxjs/operators';\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport { Order, SurveyAnswer, VerificationOption, Survey, Profile, TimeSlotResponse } from '../../shared';\r\nimport { ErrorHandlerService } from '../../shared/services/errorHandler.service';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { HttpClient, HttpErrorResponse, HttpEvent, HttpHeaders } from '@angular/common/http';\r\nimport { ChatService } from './chat.service';\r\n\r\n@Injectable()\r\nexport class OrderService {\r\n\r\n private orderSubject: BehaviorSubject = new BehaviorSubject(null);\r\n private ordersSubject: BehaviorSubject = new BehaviorSubject(new Array());\r\n private mapSubject: BehaviorSubject = new BehaviorSubject(new Array());\r\n private httpErrorSubject: Subject = new Subject();\r\n public orderId = null;\r\n public flagValue = false;\r\n public trafficNotification: any = [];\r\n public verificationOptionSelected = '';\r\n public orderValue: any = [];\r\n public orderRefresh: boolean = false;\r\n constructor(\r\n private http: HttpClient,\r\n private menuService: MenuService,\r\n private errorHandlerService: ErrorHandlerService,\r\n private appSettings: AppSettings,\r\n private chatService: ChatService\r\n ) {\r\n this.ordersSubject.subscribe(orders => {\r\n if (orders) {\r\n if (orders.length > 1) {\r\n this.menuService.isMultiOrder = true;\r\n this.orderSubject.next(orders.length ? orders[this.menuService.pageIndex][this.menuService.multiOrderCIpageIndex] : null);\r\n } else {\r\n this.orderSubject.next(orders.length ? orders[0][this.menuService.pageIndex] : null);\r\n this.menuService.isMultiOrder = false;\r\n }\r\n }\r\n });\r\n }\r\n\r\n get order(): Observable {\r\n return this.orderSubject.asObservable();\r\n }\r\n\r\n get orders(): Observable {\r\n return this.ordersSubject.asObservable();\r\n }\r\n\r\n get mapOrder(): Observable {\r\n return this.mapSubject.asObservable();\r\n }\r\n\r\n get httpErrorCode(): Observable {\r\n return this.httpErrorSubject.asObservable();\r\n }\r\n\r\n public searchOrder(id: string): Observable {\r\n const url = this.getUri(id);\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n tap(orders => {\r\n if (orders && orders.length == 0) {\r\n this.ordersSubject.next(orders);\r\n this.activateChat();\r\n return this.errorHandlerService.handleError('Order Not Found');\r\n }\r\n if (orders) {\r\n if (!this.menuService.needToUpdateCache) {\r\n orders = this.menuService.updateCache(this.orderValue, orders);\r\n this.ordersSubject.next(orders);\r\n } else {\r\n this.orderValue = orders;\r\n this.ordersSubject.next(orders);\r\n this.menuService.needToUpdateCache = false;\r\n }\r\n }\r\n this.activateChat(orders[0][0].salesOrderId, orders[0][0].validated, orders[0][0].workOrderId);\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public searchByReferenceNumber(referenceNumber: string, billTo: string): Observable {\r\n const url = this.getOrderByReferenceNumberUri(referenceNumber, billTo);\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n tap(orders => {\r\n\r\n if (orders && orders.length == 0) {\r\n this.ordersSubject.next(orders);\r\n this.activateChat();\r\n return this.errorHandlerService.handleError('Order Not Found');\r\n }\r\n\r\n if (orders) {\r\n if (this.menuService.needToUpdateCache) {\r\n this.orderValue = orders;\r\n this.menuService.needToUpdateCache = false;\r\n }\r\n this.ordersSubject.next(orders);\r\n }\r\n this.activateChat(orders[0][0].salesOrderId, orders[0][0].validated, orders[0][0].workOrderId);\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public searchByCustomerId(searchCriteria: any): Observable{\r\n const url = this.getTrackByCustomerIdUri(searchCriteria['customerIdentifier'], searchCriteria['phoneNumber'], searchCriteria['customerOrderNumber'], searchCriteria['reference'])\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n tap(orders => {\r\n\r\n if (orders && orders.length == 0) {\r\n this.ordersSubject.next(orders);\r\n this.activateChat();\r\n return this.errorHandlerService.handleError('Order Not Found');\r\n }\r\n\r\n if (orders) {\r\n if (this.menuService.needToUpdateCache) {\r\n this.orderValue = orders;\r\n this.menuService.needToUpdateCache = false;\r\n }\r\n this.ordersSubject.next(orders);\r\n }\r\n this.activateChat(orders[0][0].salesOrderId, orders[0][0].validated, orders[0][0].workOrderId);\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public searchByTrackId(id: string, phone: string): Observable {\r\n const url = this.getPhoneUri(id, phone);\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n tap(orders => {\r\n\r\n if (orders && orders.length == 0) {\r\n this.ordersSubject.next(orders);\r\n this.activateChat();\r\n return this.errorHandlerService.handleError('Order Not Found');\r\n }\r\n\r\n\r\n if (orders) {\r\n if (this.menuService.needToUpdateCache) {\r\n this.orderValue = orders;\r\n this.menuService.needToUpdateCache = false;\r\n }\r\n this.ordersSubject.next(orders);\r\n }\r\n this.activateChat(orders[0][0].salesOrderId, orders[0][0].validated, orders[0][0].workOrderId);\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public searchByDeliveryDate(deliveryDate: string, phone: string): Observable {\r\n const url = this.getDeliveryDateUri(deliveryDate, phone);\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n tap(orders => {\r\n if (orders && orders.length == 0) {\r\n this.ordersSubject.next(orders);\r\n this.activateChat();\r\n return this.errorHandlerService.handleError('Order Not Found');\r\n }\r\n if (orders) {\r\n if (this.menuService.needToUpdateCache) {\r\n this.orderValue = orders;\r\n this.menuService.needToUpdateCache = false;\r\n }\r\n this.ordersSubject.next(orders);\r\n }\r\n this.activateChat(orders[0][0].salesOrderId, orders[0][0].validated, orders[0][0].workOrderId);\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public fetchSurvey(): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n if (!order.orderId.toString().includes(order.workOrderId) && order.workOrderId != null) {\r\n order.orderId = order.orderId.toString() + '-' + order.workOrderId;\r\n }\r\n\r\n const url = this.getUri(order.orderId.toString()) + '/survey';\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n public sendSurvey(answers): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n let orderId = order.orderId.toString();\r\n if (!orderId.includes(order.workOrderId) && order.workOrderId != null) {\r\n orderId = orderId + '-' + order.workOrderId;\r\n }\r\n const url = this.getUri(orderId) + '/survey';\r\n return this.http\r\n .post(url,\r\n {\r\n responses: answers,\r\n orderId: orderId,\r\n })\r\n .pipe(\r\n tap(response => {\r\n if (response) {\r\n if (this.orderValue) {\r\n response = this.menuService.updateCache(this.orderValue, response);\r\n return this.ordersSubject.next(response);\r\n } else {\r\n return this.ordersSubject.next(response);\r\n }\r\n }\r\n\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public updateProfile(email: string, phone: string): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n const url = this.updateprofileUri(order.orderId.toString());\r\n return this.http\r\n .put(url,\r\n {\r\n email: email,\r\n phoneNumber: phone,\r\n orderId: order.orderId,\r\n workOrderId: order.workOrderId\r\n })\r\n .pipe(\r\n tap(response => {\r\n if (response) {\r\n return response;\r\n }\r\n\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public subscribeAlerts(phone: string): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n const url = this.subscribeAlertsUri(order.orderId) + '?number=' + phone;\r\n return this.http\r\n .post(url, {})\r\n .pipe(\r\n tap(response => {\r\n if (response) {\r\n if (this.orderValue) {\r\n response = this.menuService.updateCache(this.orderValue, response);\r\n return this.ordersSubject.next(response);\r\n } else {\r\n return this.ordersSubject.next(response);\r\n }\r\n }\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public unsubscribeAlerts(): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n const url = this.subscribeAlertsUri(order.orderId) + '?phoneNumber=' + order.consignee.phone;\r\n return this.http\r\n .delete(url)\r\n .pipe(\r\n tap(response => {\r\n if (response) {\r\n if (this.orderValue) {\r\n response = this.menuService.updateCache(this.orderValue, response);\r\n return this.ordersSubject.next(response);\r\n } else {\r\n return this.ordersSubject.next(response);\r\n }\r\n }\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public requestValidationOptions(): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n const url = this.getValidationOptionsUri(order.orderId.toString());\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public requestValidationCode(methodSelected: string): Promise {\r\n const order: Order = this.orderSubject.getValue();\r\n const url = this.getValidationRequestUri(order.orderId.toString(), methodSelected);\r\n return this.http\r\n .post(url, {})\r\n .toPromise().then(response => {\r\n this.verificationOptionSelected = methodSelected;\r\n return '';\r\n })\r\n .catch((error) => {\r\n this.errorHandlerService.handleError(error);\r\n });\r\n }\r\n\r\n public applyValidationCode(verificationCode: string): Promise {\r\n const order: Order = this.orderSubject.getValue();\r\n const url = this.getValidationPutRequestUri(order.orderId.toString(), verificationCode);\r\n return this.http\r\n .put(url, {})\r\n .toPromise()\r\n .then(response => {\r\n if (response) {\r\n if (this.orderValue) {\r\n response = this.menuService.updateCache(this.orderValue, response);\r\n this.ordersSubject.next(response);\r\n } else {\r\n this.ordersSubject.next(response);\r\n }\r\n return response;\r\n }\r\n })\r\n .catch(error => { this.errorHandlerService.handleError(error); });\r\n }\r\n\r\n public fetchSchedule(): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n const woOrder = order.isLMx ? order.workOrderId : '';\r\n const url = this.getUri(order.orderId.toString()) + '/schedules' + '?workOrderId=' + woOrder;\r\n return this.http\r\n .get(url)\r\n .pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public sendSchedule(date: string, timeslot: Array): Observable {\r\n const order: Order = this.orderSubject.getValue();\r\n const woOrder = order.isLMx ? order.workOrderId : '';\r\n const url = this.getUri(order.orderId.toString()) + '/schedules' + '?workOrderId=' + woOrder;\r\n return this.http\r\n .post(url,\r\n {\r\n date: date,\r\n timeWindows: timeslot\r\n })\r\n .pipe(\r\n tap(response => {\r\n if (response) {\r\n this.orderValue = [];\r\n this.orderValue = response;\r\n return this.ordersSubject.next(response);\r\n }\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n unSubscribeEmail(email: string, optOutCurrent: number, optOutFuture: number): Promise {\r\n const order: Order = this.orderSubject.getValue();\r\n const url = this.unsubscribeEmailUri(order.orderId.toString());\r\n return this.http\r\n .put(url,\r\n {\r\n email: email,\r\n optOutCurrent: optOutCurrent,\r\n optOutFuture: optOutFuture\r\n })\r\n .toPromise()\r\n .then(response => {\r\n return response;\r\n })\r\n .catch(error => { this.errorHandlerService.handleError(error); });\r\n }\r\n\r\n // Constructrs the uri to use for the endpoint\r\n private getUri(id: string): string {\r\n return AppSettings.config.apiUrl + 'orders/' + id;\r\n }\r\n private getPhoneUri(id: string, phone: string): string {\r\n\treturn AppSettings.config.apiUrl + 'orders/track/' + id + '?phoneNumber=' + phone;\r\n }\r\n private getDeliveryDateUri(deliveryDate: string, phone: string): string {\r\n return AppSettings.config.apiUrl + 'orders/trackByPhoneNumber/' + '?phoneNumber=' + phone + '&' + 'deliveryDate=' + deliveryDate;\r\n }\r\n private updateprofileUri(id: string): string {\r\n return AppSettings.config.apiUrl + 'orders/' + id + '/profile';\r\n }\r\n private subscribeAlertsUri(id: string): string {\r\n return AppSettings.config.apiUrl + 'orders/' + id + '/alertsubscription';\r\n }\r\n private getValidationOptionsUri(id: string): string {\r\n return AppSettings.config.apiUrl + 'orders/' + id + '/validationmethods';\r\n }\r\n private getValidationRequestUri(id: string, method: string): string {\r\n return AppSettings.config.apiUrl + 'orders/' + id + '/validationrequest?method=' + method;\r\n }\r\n private getValidationPutRequestUri(id: string, code: string): string {\r\n return AppSettings.config.apiUrl + 'orders/' + id + '/validationrequest?code=' + code;\r\n }\r\n private unsubscribeEmailUri(id: string): string {\r\n return AppSettings.config.apiUrl + 'orders/unsubscribeEmail?orderId=' + id;\r\n }\r\n private getOrderByReferenceNumberUri(trackingNumber: string, billTo: string): string {\r\n return `${AppSettings.config.apiUrl}orders/trackbillto/${trackingNumber}?billTo=${billTo}`;\r\n }\r\n private getTrackByCustomerIdUri(customerId: string, phoneNumber: string, customerOrderNumber: string, reference: string): string {\r\n let url = `${AppSettings.config.apiUrl}orders/trackByCustomerIdentifier?customerIdentifier=${customerId}` + `&phoneNumber=${phoneNumber}`;\r\n if (customerOrderNumber) {\r\n url += `&customerOrderNumber=${customerOrderNumber}`;\r\n }\r\n if (reference){\r\n url += `&reference=${reference}`;\r\n }\r\n return url;\r\n }\r\n\r\n // Handles error\r\n private handleError(error: Response | any): Observable {\r\n this.httpErrorSubject.next(error);\r\n return observableThrowError(new Error(error.status));\r\n }\r\n\r\n public setOrderId(id: string) {\r\n this.orderId = id;\r\n }\r\n public setOrder(order: Order) {\r\n this.orderSubject.next(order);\r\n (window as any).Microsoft.Omnichannel.LiveChatWidget.SDK.removeContextProvider\r\n const selectedWorkOrderId = order.workOrderId || '';\r\n //resetting the context provider for dynamic chat widget on workorder change\r\n (window as any).workOrderId = selectedWorkOrderId;\r\n (window as any).Microsoft.Omnichannel.LiveChatWidget.SDK.setContextProvider\r\n ((window as any).contextProvider);\r\n }\r\n public setMapOrder(order: Order[]) {\r\n this.mapSubject.next(order);\r\n }\r\n public callfooterenabledisable(flag) {\r\n if (flag === 1) {\r\n return this.flagValue = true;\r\n } else {\r\n return this.flagValue = false;\r\n }\r\n }\r\n\r\n private postESignURI(id: string): string {\r\n return AppSettings.config.apiUrl + 'ContactlessDelivery/' + id;\r\n }\r\n\r\n private downloadPODURI(id: string, workOrderId: string): string {\r\n return AppSettings.config.apiUrl + 'ContactlessDelivery/GetDocuments/' + id + '?workorderID=' + workOrderId;\r\n }\r\n\r\n\r\n public downloadPOD(data: any): Observable {\r\n const url = this.downloadPODURI(data.orderId.toString(), data.workOrderId.toString());\r\n\r\n return this.http.post(url, null, { responseType: 'text' });\r\n }\r\n public postESign(data: any): Observable {\r\n const url = this.postESignURI(data.orderId.toString());\r\n return this.http\r\n .post(url, data)\r\n .pipe(\r\n tap(response => {\r\n if (response) {\r\n return response;\r\n }\r\n\r\n }),\r\n catchError((error: HttpErrorResponse) => {\r\n return this.errorHandlerService.handleError(error);\r\n })\r\n );\r\n }\r\n\r\n public resizeWidth(windowWidth: number): string {\r\n var width = \"\";\r\n switch (windowWidth) {\r\n case 1024:\r\n width = \"390\";\r\n break;\r\n case 768:\r\n width = \"290\";\r\n break;\r\n case 360:\r\n width = \"260\";\r\n break;\r\n case 411:\r\n case 414:\r\n width = \"300\";\r\n break;\r\n case 840:\r\n case 812:\r\n width = \"310\";\r\n break;\r\n case 320:\r\n width = \"230\";\r\n break;\r\n case 1366:\r\n width = \"330\";\r\n break;\r\n case 375:\r\n width = \"270\";\r\n break;\r\n case 736:\r\n case 731:\r\n width = \"530\";\r\n break;\r\n case 568:\r\n width = \"410\";\r\n break;\r\n case 667:\r\n width = \"480\";\r\n break;\r\n case 640:\r\n width = \"450\";\r\n break;\r\n default:\r\n width = \"350\";\r\n break;\r\n }\r\n return width;\r\n }\r\n\r\n private activateChat(salesOrderId?: string, isValidated?:boolean, workOrderId?: string) {\r\n if (this.chatService.icPatronChat) {\r\n let chatDocument = document.querySelector('.ie-div-position-customer-chat');\r\n document.body.removeChild(chatDocument);\r\n }\r\n this.chatService.init(salesOrderId? salesOrderId : null,isValidated, workOrderId? workOrderId : null);\r\n }\r\n\r\n}\r\n","import { Injectable, HostListener } from '@angular/core';\r\nimport { XPOConstants } from '../../shared';\r\n\r\n@Injectable()\r\nexport class SharedService {\r\n private inHours;\r\n private inMinutues;\r\n private time;\r\n constructor() { }\r\n public isMobileDevice(): boolean {\r\n if (window.innerWidth <= 1024) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n public adjustTimezone(dates: string) { \r\n const DateSplitter = dates.split(XPOConstants.RESCHEDULE_DATE_SPLIT_REGEX);\r\n const Year = DateSplitter[ 0 ];\r\n const Month = DateSplitter[ 1 ];\r\n const rescheduleDate = DateSplitter[ 2 ];\r\n var calculatedMonth: any = Number(Month) - Number(1);\r\n const availableDate = new Date(Number(Year),calculatedMonth,Number(rescheduleDate)); \r\n return availableDate;\r\n }\r\n\r\n public convertToTime(timeString) {\r\n if (timeString.length === 3) {\r\n this.inHours = +timeString.substr(0, 1);\r\n this.inMinutues = timeString.substr(1, 3);\r\n } else {\r\n this.inHours = +timeString.substr(0, 2);\r\n this.inMinutues = timeString.substr(2, 3);\r\n }\r\n this.time = this.inHours % 12 || 12;\r\n if (this.time <= 9) {\r\n this.time = '0' + this.time;\r\n }\r\n const meridian = (this.inHours < 12 || this.inHours === 24) ? ' AM ' : ' PM ';\r\n return this.time + ':' + this.inMinutues + meridian;\r\n }\r\n\r\n}\r\n","import { Traffic } from '../model/traffic';\r\nimport { Observable } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { tap } from 'rxjs/operators';\r\nimport { AppSettings } from '../../core/app-settings';\r\n\r\n@Injectable()\r\nexport class TrafficService {\r\n public BING_API_BASE = 'https://dev.virtualearth.net/REST/v1/Traffic/Incidents/';\r\n public BING_API_KEY = 'AghMCP5Z1l_-enB0fZTy_3Rpq4Rh_4AnVSDW2AkYKZ0cNAcPsvfxrH3fVpvIemMm';\r\n\r\n constructor(private http: HttpClient) { }\r\n\r\n public getTrafficAlerts(northLat: number, eastLng: number, southLat: number, westLng: number): Promise {\r\n // South Latitude, West Longitude, North Latitude, East Longitude\r\n // eslint-disable-next-line max-len\r\n const apiUrl = `${this.BING_API_BASE}${southLat},${westLng},${northLat},${eastLng}?s=3,4&key=${AppSettings.config.BING_API_KEY}&jsonp=JSONP_CALLBACK`;\r\n\r\n return new Promise((resolve, reject) => {\r\n this.http.jsonp(apiUrl, '')\r\n .toPromise().then(response => {\r\n const data = response;\r\n resolve( response);\r\n }).catch(error => {\r\n const errorData = error;\r\n reject(error);\r\n });\r\n });\r\n }\r\n}\r\n","import { HttpBackend, HttpClient } from \"@angular/common/http\";\r\nimport { Injectable } from \"@angular/core\";\r\n\r\n@Injectable()\r\nexport class UnSecureHttp extends HttpClient {\r\n\r\n private TIMEOUT = 3000; // to be verified\r\n\r\n constructor(public connectionBackend: HttpBackend) {\r\n super(connectionBackend);\r\n }\r\n\r\n}","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { TrafficService } from '../shared/services/traffic.service';\r\nimport {\r\n DatexPipe, KeyValuePipe, PhonePipe,\r\n} from '../shared';\r\nimport { PageErrorComponent } from '../shared/common-components/dialog/page-error/page-error.component';\r\nimport { HeaderComponent } from './common-components/header/header.component';\r\nimport { LanguageSelectorComponent } from './common-components/language-selector/language-selector.component';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { FreeDraggingDirective } from './draggable.directive';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n MatButtonModule,\r\n MatMenuModule,\r\n MatSelectModule,\r\n MatDialogModule,\r\n MatIconModule\r\n ],\r\n exports: [\r\n MatButtonModule,\r\n MatMenuModule,\r\n MatDialogModule,\r\n MatIconModule,\r\n KeyValuePipe,\r\n PhonePipe,\r\n DatexPipe,\r\n PageErrorComponent,\r\n HeaderComponent,\r\n LanguageSelectorComponent,\r\n FreeDraggingDirective\r\n ],\r\n declarations: [KeyValuePipe, PageErrorComponent,\r\n PhonePipe, DatexPipe, HeaderComponent, LanguageSelectorComponent, FreeDraggingDirective],\r\n providers: [\r\n TrafficService\r\n ],\r\n schemas: [NO_ERRORS_SCHEMA]\r\n})\r\nexport class SharedModule { }\r\n","import * as i7 from '@angular/cdk/a11y';\nimport { FocusKeyManager, A11yModule } from '@angular/cdk/a11y';\nimport * as i5 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport * as i2 from '@angular/cdk/portal';\nimport { CdkPortal, TemplatePortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';\nimport * as i1$2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Optional, TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChild, ViewChild, Input, forwardRef, EventEmitter, Output, ContentChildren, QueryList, Attribute, NgModule } from '@angular/core';\nimport * as i4 from '@angular/material/core';\nimport { mixinDisabled, mixinColor, mixinDisableRipple, mixinTabIndex, MAT_RIPPLE_GLOBAL_OPTIONS, RippleRenderer, MatCommonModule, MatRippleModule } from '@angular/material/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { take, startWith, distinctUntilChanged, takeUntil, switchMap, skip, filter } from 'rxjs/operators';\nimport { Subject, Subscription, fromEvent, of, merge, EMPTY, Observable, timer } from 'rxjs';\nimport * as i1 from '@angular/cdk/bidi';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport * as i1$1 from '@angular/cdk/scrolling';\nimport * as i3 from '@angular/cdk/platform';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token for the MatInkBar's Positioner. */\nconst _MAT_INK_BAR_POSITIONER = new InjectionToken('MatInkBarPositioner', {\n providedIn: 'root',\n factory: _MAT_INK_BAR_POSITIONER_FACTORY,\n});\n/**\n * The default positioner function for the MatInkBar.\n * @docs-private\n */\nfunction _MAT_INK_BAR_POSITIONER_FACTORY() {\n const method = (element) => ({\n left: element ? (element.offsetLeft || 0) + 'px' : '0',\n width: element ? (element.offsetWidth || 0) + 'px' : '0',\n });\n return method;\n}\n/**\n * The ink-bar is used to display and animate the line underneath the current active tab label.\n * @docs-private\n */\nclass MatInkBar {\n constructor(_elementRef, _ngZone, _inkBarPositioner, _animationMode) {\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n this._inkBarPositioner = _inkBarPositioner;\n this._animationMode = _animationMode;\n }\n /**\n * Calculates the styles from the provided element in order to align the ink-bar to that element.\n * Shows the ink bar if previously set as hidden.\n * @param element\n */\n alignToElement(element) {\n this.show();\n // `onStable` might not run for a while if the zone has already stabilized.\n // Wrap the call in `NgZone.run` to ensure that it runs relatively soon.\n this._ngZone.run(() => {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n const positions = this._inkBarPositioner(element);\n const inkBar = this._elementRef.nativeElement;\n inkBar.style.left = positions.left;\n inkBar.style.width = positions.width;\n });\n });\n }\n /** Shows the ink bar. */\n show() {\n this._elementRef.nativeElement.style.visibility = 'visible';\n }\n /** Hides the ink bar. */\n hide() {\n this._elementRef.nativeElement.style.visibility = 'hidden';\n }\n}\nMatInkBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatInkBar, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: _MAT_INK_BAR_POSITIONER }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatInkBar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatInkBar, selector: \"mat-ink-bar\", host: { properties: { \"class._mat-animation-noopable\": \"_animationMode === 'NoopAnimations'\" }, classAttribute: \"mat-ink-bar\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatInkBar, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-ink-bar',\n host: {\n 'class': 'mat-ink-bar',\n '[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,\n },\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [_MAT_INK_BAR_POSITIONER]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatTabContent`. It serves as\n * alternative token to the actual `MatTabContent` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_TAB_CONTENT = new InjectionToken('MatTabContent');\n/** Decorates the `ng-template` tags and reads out the template from it. */\nclass MatTabContent {\n constructor(/** Content for the tab. */ template) {\n this.template = template;\n }\n}\nMatTabContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabContent, selector: \"[matTabContent]\", providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabContent, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTabContent]',\n providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }],\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatTabLabel`. It serves as\n * alternative token to the actual `MatTabLabel` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_TAB_LABEL = new InjectionToken('MatTabLabel');\n/**\n * Used to provide a tab label to a tab without causing a circular dependency.\n * @docs-private\n */\nconst MAT_TAB = new InjectionToken('MAT_TAB');\n/** Used to flag tab labels for use with the portal directive */\nclass MatTabLabel extends CdkPortal {\n constructor(templateRef, viewContainerRef, _closestTab) {\n super(templateRef, viewContainerRef);\n this._closestTab = _closestTab;\n }\n}\nMatTabLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabel, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: MAT_TAB, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabLabel, selector: \"[mat-tab-label], [matTabLabel]\", providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabel, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-tab-label], [matTabLabel]',\n providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }],\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TAB]\n }, {\n type: Optional\n }] }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatTab.\n/** @docs-private */\nconst _MatTabBase = mixinDisabled(class {\n});\n/**\n * Used to provide a tab group to a tab without causing a circular dependency.\n * @docs-private\n */\nconst MAT_TAB_GROUP = new InjectionToken('MAT_TAB_GROUP');\nclass MatTab extends _MatTabBase {\n constructor(_viewContainerRef, _closestTabGroup) {\n super();\n this._viewContainerRef = _viewContainerRef;\n this._closestTabGroup = _closestTabGroup;\n /** Plain text label for the tab, used when there is no template label. */\n this.textLabel = '';\n /** Portal that will be the hosted content of the tab */\n this._contentPortal = null;\n /** Emits whenever the internal state of the tab changes. */\n this._stateChanges = new Subject();\n /**\n * The relatively indexed position where 0 represents the center, negative is left, and positive\n * represents the right.\n */\n this.position = null;\n /**\n * The initial relatively index origin of the tab if it was created and selected after there\n * was already a selected tab. Provides context of what position the tab should originate from.\n */\n this.origin = null;\n /**\n * Whether the tab is currently active.\n */\n this.isActive = false;\n }\n /** Content for the tab label given by ``. */\n get templateLabel() {\n return this._templateLabel;\n }\n set templateLabel(value) {\n this._setTemplateLabelInput(value);\n }\n /** @docs-private */\n get content() {\n return this._contentPortal;\n }\n ngOnChanges(changes) {\n if (changes.hasOwnProperty('textLabel') || changes.hasOwnProperty('disabled')) {\n this._stateChanges.next();\n }\n }\n ngOnDestroy() {\n this._stateChanges.complete();\n }\n ngOnInit() {\n this._contentPortal = new TemplatePortal(this._explicitContent || this._implicitContent, this._viewContainerRef);\n }\n /**\n * This has been extracted to a util because of TS 4 and VE.\n * View Engine doesn't support property rename inheritance.\n * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n * @docs-private\n */\n _setTemplateLabelInput(value) {\n // Only update the label if the query managed to find one. This works around an issue where a\n // user may have manually set `templateLabel` during creation mode, which would then get\n // clobbered by `undefined` when the query resolves. Also note that we check that the closest\n // tab matches the current one so that we don't pick up labels from nested tabs.\n if (value && value._closestTab === this) {\n this._templateLabel = value;\n }\n }\n}\nMatTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTab, deps: [{ token: i0.ViewContainerRef }, { token: MAT_TAB_GROUP, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTab, selector: \"mat-tab\", inputs: { disabled: \"disabled\", textLabel: [\"label\", \"textLabel\"], ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], labelClass: \"labelClass\", bodyClass: \"bodyClass\" }, providers: [{ provide: MAT_TAB, useExisting: MatTab }], queries: [{ propertyName: \"templateLabel\", first: true, predicate: MAT_TAB_LABEL, descendants: true }, { propertyName: \"_explicitContent\", first: true, predicate: MAT_TAB_CONTENT, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: \"_implicitContent\", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: [\"matTab\"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: \"\\n\\n\", changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTab, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab', inputs: ['disabled'], changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, exportAs: 'matTab', providers: [{ provide: MAT_TAB, useExisting: MatTab }], template: \"\\n\\n\" }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TAB_GROUP]\n }, {\n type: Optional\n }] }]; }, propDecorators: { templateLabel: [{\n type: ContentChild,\n args: [MAT_TAB_LABEL]\n }], _explicitContent: [{\n type: ContentChild,\n args: [MAT_TAB_CONTENT, { read: TemplateRef, static: true }]\n }], _implicitContent: [{\n type: ViewChild,\n args: [TemplateRef, { static: true }]\n }], textLabel: [{\n type: Input,\n args: ['label']\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }], labelClass: [{\n type: Input\n }], bodyClass: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the Material tabs.\n * @docs-private\n */\nconst matTabsAnimations = {\n /** Animation translates a tab along the X axis. */\n translateTab: trigger('translateTab', [\n // Transitions to `none` instead of 0, because some browsers might blur the content.\n state('center, void, left-origin-center, right-origin-center', style({ transform: 'none' })),\n // If the tab is either on the left or right, we additionally add a `min-height` of 1px\n // in order to ensure that the element has a height before its state changes. This is\n // necessary because Chrome does seem to skip the transition in RTL mode if the element does\n // not have a static height and is not rendered. See related issue: #9465\n state('left', style({\n transform: 'translate3d(-100%, 0, 0)',\n minHeight: '1px',\n // Normally this is redundant since we detach the content from the DOM, but if the user\n // opted into keeping the content in the DOM, we have to hide it so it isn't focusable.\n visibility: 'hidden',\n })),\n state('right', style({\n transform: 'translate3d(100%, 0, 0)',\n minHeight: '1px',\n visibility: 'hidden',\n })),\n transition('* => left, * => right, left => center, right => center', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')),\n transition('void => left-origin-center', [\n style({ transform: 'translate3d(-100%, 0, 0)', visibility: 'hidden' }),\n animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),\n ]),\n transition('void => right-origin-center', [\n style({ transform: 'translate3d(100%, 0, 0)', visibility: 'hidden' }),\n animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),\n ]),\n ]),\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The portal host directive for the contents of the tab.\n * @docs-private\n */\nclass MatTabBodyPortal extends CdkPortalOutlet {\n constructor(componentFactoryResolver, viewContainerRef, _host, _document) {\n super(componentFactoryResolver, viewContainerRef, _document);\n this._host = _host;\n /** Subscription to events for when the tab body begins centering. */\n this._centeringSub = Subscription.EMPTY;\n /** Subscription to events for when the tab body finishes leaving from center position. */\n this._leavingSub = Subscription.EMPTY;\n }\n /** Set initial visibility or set up subscription for changing visibility. */\n ngOnInit() {\n super.ngOnInit();\n this._centeringSub = this._host._beforeCentering\n .pipe(startWith(this._host._isCenterPosition(this._host._position)))\n .subscribe((isCentering) => {\n if (isCentering && !this.hasAttached()) {\n this.attach(this._host._content);\n }\n });\n this._leavingSub = this._host._afterLeavingCenter.subscribe(() => {\n if (!this._host.preserveContent) {\n this.detach();\n }\n });\n }\n /** Clean up centering subscription. */\n ngOnDestroy() {\n super.ngOnDestroy();\n this._centeringSub.unsubscribe();\n this._leavingSub.unsubscribe();\n }\n}\nMatTabBodyPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBodyPortal, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: forwardRef(() => MatTabBody) }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabBodyPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabBodyPortal, selector: \"[matTabBodyHost]\", usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBodyPortal, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTabBodyHost]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: MatTabBody, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatTabBody)]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }]; } });\n/**\n * Base class with all of the `MatTabBody` functionality.\n * @docs-private\n */\nclass _MatTabBodyBase {\n constructor(_elementRef, _dir, changeDetectorRef) {\n this._elementRef = _elementRef;\n this._dir = _dir;\n /** Subscription to the directionality change observable. */\n this._dirChangeSubscription = Subscription.EMPTY;\n /** Emits when an animation on the tab is complete. */\n this._translateTabComplete = new Subject();\n /** Event emitted when the tab begins to animate towards the center as the active tab. */\n this._onCentering = new EventEmitter();\n /** Event emitted before the centering of the tab begins. */\n this._beforeCentering = new EventEmitter();\n /** Event emitted before the centering of the tab begins. */\n this._afterLeavingCenter = new EventEmitter();\n /** Event emitted when the tab completes its animation towards the center. */\n this._onCentered = new EventEmitter(true);\n // Note that the default value will always be overwritten by `MatTabBody`, but we need one\n // anyway to prevent the animations module from throwing an error if the body is used on its own.\n /** Duration for the tab's animation. */\n this.animationDuration = '500ms';\n /** Whether the tab's content should be kept in the DOM while it's off-screen. */\n this.preserveContent = false;\n if (_dir) {\n this._dirChangeSubscription = _dir.change.subscribe((dir) => {\n this._computePositionAnimationState(dir);\n changeDetectorRef.markForCheck();\n });\n }\n // Ensure that we get unique animation events, because the `.done` callback can get\n // invoked twice in some browsers. See https://github.com/angular/angular/issues/24084.\n this._translateTabComplete\n .pipe(distinctUntilChanged((x, y) => {\n return x.fromState === y.fromState && x.toState === y.toState;\n }))\n .subscribe(event => {\n // If the transition to the center is complete, emit an event.\n if (this._isCenterPosition(event.toState) && this._isCenterPosition(this._position)) {\n this._onCentered.emit();\n }\n if (this._isCenterPosition(event.fromState) && !this._isCenterPosition(this._position)) {\n this._afterLeavingCenter.emit();\n }\n });\n }\n /** The shifted index position of the tab body, where zero represents the active center tab. */\n set position(position) {\n this._positionIndex = position;\n this._computePositionAnimationState();\n }\n /**\n * After initialized, check if the content is centered and has an origin. If so, set the\n * special position states that transition the tab from the left or right before centering.\n */\n ngOnInit() {\n if (this._position == 'center' && this.origin != null) {\n this._position = this._computePositionFromOrigin(this.origin);\n }\n }\n ngOnDestroy() {\n this._dirChangeSubscription.unsubscribe();\n this._translateTabComplete.complete();\n }\n _onTranslateTabStarted(event) {\n const isCentering = this._isCenterPosition(event.toState);\n this._beforeCentering.emit(isCentering);\n if (isCentering) {\n this._onCentering.emit(this._elementRef.nativeElement.clientHeight);\n }\n }\n /** The text direction of the containing app. */\n _getLayoutDirection() {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n }\n /** Whether the provided position state is considered center, regardless of origin. */\n _isCenterPosition(position) {\n return (position == 'center' || position == 'left-origin-center' || position == 'right-origin-center');\n }\n /** Computes the position state that will be used for the tab-body animation trigger. */\n _computePositionAnimationState(dir = this._getLayoutDirection()) {\n if (this._positionIndex < 0) {\n this._position = dir == 'ltr' ? 'left' : 'right';\n }\n else if (this._positionIndex > 0) {\n this._position = dir == 'ltr' ? 'right' : 'left';\n }\n else {\n this._position = 'center';\n }\n }\n /**\n * Computes the position state based on the specified origin position. This is used if the\n * tab is becoming visible immediately after creation.\n */\n _computePositionFromOrigin(origin) {\n const dir = this._getLayoutDirection();\n if ((dir == 'ltr' && origin <= 0) || (dir == 'rtl' && origin > 0)) {\n return 'left-origin-center';\n }\n return 'right-origin-center';\n }\n}\n_MatTabBodyBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabBodyBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabBodyBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabBodyBase, inputs: { _content: [\"content\", \"_content\"], origin: \"origin\", animationDuration: \"animationDuration\", preserveContent: \"preserveContent\", position: \"position\" }, outputs: { _onCentering: \"_onCentering\", _beforeCentering: \"_beforeCentering\", _afterLeavingCenter: \"_afterLeavingCenter\", _onCentered: \"_onCentered\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabBodyBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _onCentering: [{\n type: Output\n }], _beforeCentering: [{\n type: Output\n }], _afterLeavingCenter: [{\n type: Output\n }], _onCentered: [{\n type: Output\n }], _content: [{\n type: Input,\n args: ['content']\n }], origin: [{\n type: Input\n }], animationDuration: [{\n type: Input\n }], preserveContent: [{\n type: Input\n }], position: [{\n type: Input\n }] } });\n/**\n * Wrapper for the contents of a tab.\n * @docs-private\n */\nclass MatTabBody extends _MatTabBodyBase {\n constructor(elementRef, dir, changeDetectorRef) {\n super(elementRef, dir, changeDetectorRef);\n }\n}\nMatTabBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBody, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMatTabBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabBody, selector: \"mat-tab-body\", host: { classAttribute: \"mat-tab-body\" }, viewQueries: [{ propertyName: \"_portalHost\", first: true, predicate: CdkPortalOutlet, descendants: true }], usesInheritance: true, ngImport: i0, template: \"
\\n \\n
\\n\", styles: [\".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*=\\\"visibility: hidden\\\"]{display:none}\"], dependencies: [{ kind: \"directive\", type: MatTabBodyPortal, selector: \"[matTabBodyHost]\" }], animations: [matTabsAnimations.translateTab], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBody, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab-body', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matTabsAnimations.translateTab], host: {\n 'class': 'mat-tab-body',\n }, template: \"
\\n \\n
\\n\", styles: [\".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*=\\\"visibility: hidden\\\"]{display:none}\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _portalHost: [{\n type: ViewChild,\n args: [CdkPortalOutlet]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that can be used to provide the default options the tabs module. */\nconst MAT_TABS_CONFIG = new InjectionToken('MAT_TABS_CONFIG');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatTabLabelWrapper.\n/** @docs-private */\nconst _MatTabLabelWrapperBase = mixinDisabled(class {\n});\n/**\n * Used in the `mat-tab-group` view to display tab labels.\n * @docs-private\n */\nclass MatTabLabelWrapper extends _MatTabLabelWrapperBase {\n constructor(elementRef) {\n super();\n this.elementRef = elementRef;\n }\n /** Sets focus on the wrapper element */\n focus() {\n this.elementRef.nativeElement.focus();\n }\n getOffsetLeft() {\n return this.elementRef.nativeElement.offsetLeft;\n }\n getOffsetWidth() {\n return this.elementRef.nativeElement.offsetWidth;\n }\n}\nMatTabLabelWrapper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabelWrapper, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLabelWrapper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabLabelWrapper, selector: \"[matTabLabelWrapper]\", inputs: { disabled: \"disabled\" }, host: { properties: { \"class.mat-tab-disabled\": \"disabled\", \"attr.aria-disabled\": \"!!disabled\" } }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabelWrapper, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTabLabelWrapper]',\n inputs: ['disabled'],\n host: {\n '[class.mat-tab-disabled]': 'disabled',\n '[attr.aria-disabled]': '!!disabled',\n },\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Config used to bind passive event listeners */\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({\n passive: true,\n});\n/**\n * The distance in pixels that will be overshot when scrolling a tab label into view. This helps\n * provide a small affordance to the label next to it.\n */\nconst EXAGGERATED_OVERSCROLL = 60;\n/**\n * Amount of milliseconds to wait before starting to scroll the header automatically.\n * Set a little conservatively in order to handle fake events dispatched on touch devices.\n */\nconst HEADER_SCROLL_DELAY = 650;\n/**\n * Interval in milliseconds at which to scroll the header\n * while the user is holding their pointer.\n */\nconst HEADER_SCROLL_INTERVAL = 100;\n/**\n * Base class for a tab header that supported pagination.\n * @docs-private\n */\nclass MatPaginatedTabHeader {\n constructor(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone, _platform, _animationMode) {\n this._elementRef = _elementRef;\n this._changeDetectorRef = _changeDetectorRef;\n this._viewportRuler = _viewportRuler;\n this._dir = _dir;\n this._ngZone = _ngZone;\n this._platform = _platform;\n this._animationMode = _animationMode;\n /** The distance in pixels that the tab labels should be translated to the left. */\n this._scrollDistance = 0;\n /** Whether the header should scroll to the selected index after the view has been checked. */\n this._selectedIndexChanged = false;\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /** Whether the controls for pagination should be displayed */\n this._showPaginationControls = false;\n /** Whether the tab list can be scrolled more towards the end of the tab label list. */\n this._disableScrollAfter = true;\n /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */\n this._disableScrollBefore = true;\n /** Stream that will stop the automated scrolling. */\n this._stopScrolling = new Subject();\n this._disablePagination = false;\n this._selectedIndex = 0;\n /** Event emitted when the option is selected. */\n this.selectFocusedIndex = new EventEmitter();\n /** Event emitted when a label is focused. */\n this.indexFocused = new EventEmitter();\n // Bind the `mouseleave` event on the outside since it doesn't change anything in the view.\n _ngZone.runOutsideAngular(() => {\n fromEvent(_elementRef.nativeElement, 'mouseleave')\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n this._stopInterval();\n });\n });\n }\n /**\n * Whether pagination should be disabled. This can be used to avoid unnecessary\n * layout recalculations if it's known that pagination won't be required.\n */\n get disablePagination() {\n return this._disablePagination;\n }\n set disablePagination(value) {\n this._disablePagination = coerceBooleanProperty(value);\n }\n /** The index of the active tab. */\n get selectedIndex() {\n return this._selectedIndex;\n }\n set selectedIndex(value) {\n value = coerceNumberProperty(value);\n if (this._selectedIndex != value) {\n this._selectedIndexChanged = true;\n this._selectedIndex = value;\n if (this._keyManager) {\n this._keyManager.updateActiveItem(value);\n }\n }\n }\n ngAfterViewInit() {\n // We need to handle these events manually, because we want to bind passive event listeners.\n fromEvent(this._previousPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n this._handlePaginatorPress('before');\n });\n fromEvent(this._nextPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n this._handlePaginatorPress('after');\n });\n }\n ngAfterContentInit() {\n const dirChange = this._dir ? this._dir.change : of('ltr');\n const resize = this._viewportRuler.change(150);\n const realign = () => {\n this.updatePagination();\n this._alignInkBarToSelectedTab();\n };\n this._keyManager = new FocusKeyManager(this._items)\n .withHorizontalOrientation(this._getLayoutDirection())\n .withHomeAndEnd()\n .withWrap();\n this._keyManager.updateActiveItem(this._selectedIndex);\n // Defer the first call in order to allow for slower browsers to lay out the elements.\n // This helps in cases where the user lands directly on a page with paginated tabs.\n // Note that we use `onStable` instead of `requestAnimationFrame`, because the latter\n // can hold up tests that are in a background tab.\n this._ngZone.onStable.pipe(take(1)).subscribe(realign);\n // On dir change or window resize, realign the ink bar and update the orientation of\n // the key manager if the direction has changed.\n merge(dirChange, resize, this._items.changes, this._itemsResized())\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n // We need to defer this to give the browser some time to recalculate\n // the element dimensions. The call has to be wrapped in `NgZone.run`,\n // because the viewport change handler runs outside of Angular.\n this._ngZone.run(() => {\n Promise.resolve().then(() => {\n // Clamp the scroll distance, because it can change with the number of tabs.\n this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), this._scrollDistance));\n realign();\n });\n });\n this._keyManager.withHorizontalOrientation(this._getLayoutDirection());\n });\n // If there is a change in the focus key manager we need to emit the `indexFocused`\n // event in order to provide a public event that notifies about focus changes. Also we realign\n // the tabs container by scrolling the new focused tab into the visible section.\n this._keyManager.change.pipe(takeUntil(this._destroyed)).subscribe(newFocusIndex => {\n this.indexFocused.emit(newFocusIndex);\n this._setTabFocus(newFocusIndex);\n });\n }\n /** Sends any changes that could affect the layout of the items. */\n _itemsResized() {\n if (typeof ResizeObserver !== 'function') {\n return EMPTY;\n }\n return this._items.changes.pipe(startWith(this._items), switchMap((tabItems) => new Observable((observer) => this._ngZone.runOutsideAngular(() => {\n const resizeObserver = new ResizeObserver(entries => observer.next(entries));\n tabItems.forEach(item => resizeObserver.observe(item.elementRef.nativeElement));\n return () => {\n resizeObserver.disconnect();\n };\n }))), \n // Skip the first emit since the resize observer emits when an item\n // is observed for new items when the tab is already inserted\n skip(1), \n // Skip emissions where all the elements are invisible since we don't want\n // the header to try and re-render with invalid measurements. See #25574.\n filter(entries => entries.some(e => e.contentRect.width > 0 && e.contentRect.height > 0)));\n }\n ngAfterContentChecked() {\n // If the number of tab labels have changed, check if scrolling should be enabled\n if (this._tabLabelCount != this._items.length) {\n this.updatePagination();\n this._tabLabelCount = this._items.length;\n this._changeDetectorRef.markForCheck();\n }\n // If the selected index has changed, scroll to the label and check if the scrolling controls\n // should be disabled.\n if (this._selectedIndexChanged) {\n this._scrollToLabel(this._selectedIndex);\n this._checkScrollingControls();\n this._alignInkBarToSelectedTab();\n this._selectedIndexChanged = false;\n this._changeDetectorRef.markForCheck();\n }\n // If the scroll distance has been changed (tab selected, focused, scroll controls activated),\n // then translate the header to reflect this.\n if (this._scrollDistanceChanged) {\n this._updateTabScrollPosition();\n this._scrollDistanceChanged = false;\n this._changeDetectorRef.markForCheck();\n }\n }\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this._stopScrolling.complete();\n }\n /** Handles keyboard events on the header. */\n _handleKeydown(event) {\n // We don't handle any key bindings with a modifier key.\n if (hasModifierKey(event)) {\n return;\n }\n switch (event.keyCode) {\n case ENTER:\n case SPACE:\n if (this.focusIndex !== this.selectedIndex) {\n this.selectFocusedIndex.emit(this.focusIndex);\n this._itemSelected(event);\n }\n break;\n default:\n this._keyManager.onKeydown(event);\n }\n }\n /**\n * Callback for when the MutationObserver detects that the content has changed.\n */\n _onContentChanges() {\n const textContent = this._elementRef.nativeElement.textContent;\n // We need to diff the text content of the header, because the MutationObserver callback\n // will fire even if the text content didn't change which is inefficient and is prone\n // to infinite loops if a poorly constructed expression is passed in (see #14249).\n if (textContent !== this._currentTextContent) {\n this._currentTextContent = textContent || '';\n // The content observer runs outside the `NgZone` by default, which\n // means that we need to bring the callback back in ourselves.\n this._ngZone.run(() => {\n this.updatePagination();\n this._alignInkBarToSelectedTab();\n this._changeDetectorRef.markForCheck();\n });\n }\n }\n /**\n * Updates the view whether pagination should be enabled or not.\n *\n * WARNING: Calling this method can be very costly in terms of performance. It should be called\n * as infrequently as possible from outside of the Tabs component as it causes a reflow of the\n * page.\n */\n updatePagination() {\n this._checkPaginationEnabled();\n this._checkScrollingControls();\n this._updateTabScrollPosition();\n }\n /** Tracks which element has focus; used for keyboard navigation */\n get focusIndex() {\n return this._keyManager ? this._keyManager.activeItemIndex : 0;\n }\n /** When the focus index is set, we must manually send focus to the correct label */\n set focusIndex(value) {\n if (!this._isValidIndex(value) || this.focusIndex === value || !this._keyManager) {\n return;\n }\n this._keyManager.setActiveItem(value);\n }\n /**\n * Determines if an index is valid. If the tabs are not ready yet, we assume that the user is\n * providing a valid index and return true.\n */\n _isValidIndex(index) {\n if (!this._items) {\n return true;\n }\n const tab = this._items ? this._items.toArray()[index] : null;\n return !!tab && !tab.disabled;\n }\n /**\n * Sets focus on the HTML element for the label wrapper and scrolls it into the view if\n * scrolling is enabled.\n */\n _setTabFocus(tabIndex) {\n if (this._showPaginationControls) {\n this._scrollToLabel(tabIndex);\n }\n if (this._items && this._items.length) {\n this._items.toArray()[tabIndex].focus();\n // Do not let the browser manage scrolling to focus the element, this will be handled\n // by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width\n // should be the full width minus the offset width.\n const containerEl = this._tabListContainer.nativeElement;\n const dir = this._getLayoutDirection();\n if (dir == 'ltr') {\n containerEl.scrollLeft = 0;\n }\n else {\n containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;\n }\n }\n }\n /** The layout direction of the containing app. */\n _getLayoutDirection() {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n }\n /** Performs the CSS transformation on the tab list that will cause the list to scroll. */\n _updateTabScrollPosition() {\n if (this.disablePagination) {\n return;\n }\n const scrollDistance = this.scrollDistance;\n const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;\n // Don't use `translate3d` here because we don't want to create a new layer. A new layer\n // seems to cause flickering and overflow in Internet Explorer. For example, the ink bar\n // and ripples will exceed the boundaries of the visible tab bar.\n // See: https://github.com/angular/components/issues/10276\n // We round the `transform` here, because transforms with sub-pixel precision cause some\n // browsers to blur the content of the element.\n this._tabList.nativeElement.style.transform = `translateX(${Math.round(translateX)}px)`;\n // Setting the `transform` on IE will change the scroll offset of the parent, causing the\n // position to be thrown off in some cases. We have to reset it ourselves to ensure that\n // it doesn't get thrown off. Note that we scope it only to IE and Edge, because messing\n // with the scroll position throws off Chrome 71+ in RTL mode (see #14689).\n if (this._platform.TRIDENT || this._platform.EDGE) {\n this._tabListContainer.nativeElement.scrollLeft = 0;\n }\n }\n /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */\n get scrollDistance() {\n return this._scrollDistance;\n }\n set scrollDistance(value) {\n this._scrollTo(value);\n }\n /**\n * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or\n * the end of the list, respectively). The distance to scroll is computed to be a third of the\n * length of the tab list view window.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _scrollHeader(direction) {\n const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n // Move the scroll distance one-third the length of the tab list's viewport.\n const scrollAmount = ((direction == 'before' ? -1 : 1) * viewLength) / 3;\n return this._scrollTo(this._scrollDistance + scrollAmount);\n }\n /** Handles click events on the pagination arrows. */\n _handlePaginatorClick(direction) {\n this._stopInterval();\n this._scrollHeader(direction);\n }\n /**\n * Moves the tab list such that the desired tab label (marked by index) is moved into view.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _scrollToLabel(labelIndex) {\n if (this.disablePagination) {\n return;\n }\n const selectedLabel = this._items ? this._items.toArray()[labelIndex] : null;\n if (!selectedLabel) {\n return;\n }\n // The view length is the visible width of the tab labels.\n const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n const { offsetLeft, offsetWidth } = selectedLabel.elementRef.nativeElement;\n let labelBeforePos, labelAfterPos;\n if (this._getLayoutDirection() == 'ltr') {\n labelBeforePos = offsetLeft;\n labelAfterPos = labelBeforePos + offsetWidth;\n }\n else {\n labelAfterPos = this._tabListInner.nativeElement.offsetWidth - offsetLeft;\n labelBeforePos = labelAfterPos - offsetWidth;\n }\n const beforeVisiblePos = this.scrollDistance;\n const afterVisiblePos = this.scrollDistance + viewLength;\n if (labelBeforePos < beforeVisiblePos) {\n // Scroll header to move label to the before direction\n this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;\n }\n else if (labelAfterPos > afterVisiblePos) {\n // Scroll header to move label to the after direction\n this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;\n }\n }\n /**\n * Evaluate whether the pagination controls should be displayed. If the scroll width of the\n * tab list is wider than the size of the header container, then the pagination controls should\n * be shown.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _checkPaginationEnabled() {\n if (this.disablePagination) {\n this._showPaginationControls = false;\n }\n else {\n const isEnabled = this._tabListInner.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;\n if (!isEnabled) {\n this.scrollDistance = 0;\n }\n if (isEnabled !== this._showPaginationControls) {\n this._changeDetectorRef.markForCheck();\n }\n this._showPaginationControls = isEnabled;\n }\n }\n /**\n * Evaluate whether the before and after controls should be enabled or disabled.\n * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the\n * before button. If the header is at the end of the list (scroll distance is equal to the\n * maximum distance we can scroll), then disable the after button.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _checkScrollingControls() {\n if (this.disablePagination) {\n this._disableScrollAfter = this._disableScrollBefore = true;\n }\n else {\n // Check if the pagination arrows should be activated.\n this._disableScrollBefore = this.scrollDistance == 0;\n this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();\n this._changeDetectorRef.markForCheck();\n }\n }\n /**\n * Determines what is the maximum length in pixels that can be set for the scroll distance. This\n * is equal to the difference in width between the tab list container and tab header container.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _getMaxScrollDistance() {\n const lengthOfTabList = this._tabListInner.nativeElement.scrollWidth;\n const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n return lengthOfTabList - viewLength || 0;\n }\n /** Tells the ink-bar to align itself to the current label wrapper */\n _alignInkBarToSelectedTab() {\n const selectedItem = this._items && this._items.length ? this._items.toArray()[this.selectedIndex] : null;\n const selectedLabelWrapper = selectedItem ? selectedItem.elementRef.nativeElement : null;\n if (selectedLabelWrapper) {\n this._inkBar.alignToElement(selectedLabelWrapper);\n }\n else {\n this._inkBar.hide();\n }\n }\n /** Stops the currently-running paginator interval. */\n _stopInterval() {\n this._stopScrolling.next();\n }\n /**\n * Handles the user pressing down on one of the paginators.\n * Starts scrolling the header after a certain amount of time.\n * @param direction In which direction the paginator should be scrolled.\n */\n _handlePaginatorPress(direction, mouseEvent) {\n // Don't start auto scrolling for right mouse button clicks. Note that we shouldn't have to\n // null check the `button`, but we do it so we don't break tests that use fake events.\n if (mouseEvent && mouseEvent.button != null && mouseEvent.button !== 0) {\n return;\n }\n // Avoid overlapping timers.\n this._stopInterval();\n // Start a timer after the delay and keep firing based on the interval.\n timer(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL)\n // Keep the timer going until something tells it to stop or the component is destroyed.\n .pipe(takeUntil(merge(this._stopScrolling, this._destroyed)))\n .subscribe(() => {\n const { maxScrollDistance, distance } = this._scrollHeader(direction);\n // Stop the timer if we've reached the start or the end.\n if (distance === 0 || distance >= maxScrollDistance) {\n this._stopInterval();\n }\n });\n }\n /**\n * Scrolls the header to a given position.\n * @param position Position to which to scroll.\n * @returns Information on the current scroll distance and the maximum.\n */\n _scrollTo(position) {\n if (this.disablePagination) {\n return { maxScrollDistance: 0, distance: 0 };\n }\n const maxScrollDistance = this._getMaxScrollDistance();\n this._scrollDistance = Math.max(0, Math.min(maxScrollDistance, position));\n // Mark that the scroll distance has changed so that after the view is checked, the CSS\n // transformation can move the header.\n this._scrollDistanceChanged = true;\n this._checkScrollingControls();\n return { maxScrollDistance, distance: this._scrollDistance };\n }\n}\nMatPaginatedTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPaginatedTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatPaginatedTabHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatPaginatedTabHeader, inputs: { disablePagination: \"disablePagination\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPaginatedTabHeader, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { disablePagination: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Base class with all of the `MatTabHeader` functionality.\n * @docs-private\n */\nclass _MatTabHeaderBase extends MatPaginatedTabHeader {\n constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {\n super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n this._disableRipple = false;\n }\n /** Whether the ripple effect is disabled or not. */\n get disableRipple() {\n return this._disableRipple;\n }\n set disableRipple(value) {\n this._disableRipple = coerceBooleanProperty(value);\n }\n _itemSelected(event) {\n event.preventDefault();\n }\n}\n_MatTabHeaderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabHeaderBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabHeaderBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabHeaderBase, inputs: { disableRipple: \"disableRipple\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabHeaderBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { disableRipple: [{\n type: Input\n }] } });\n/**\n * The header of the tab group which displays a list of all the tabs in the tab group. Includes\n * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the\n * width of the header container, then arrows will be displayed to allow the user to scroll\n * left and right across the header.\n * @docs-private\n */\nclass MatTabHeader extends _MatTabHeaderBase {\n constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {\n super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n }\n}\nMatTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabHeader, selector: \"mat-tab-header\", inputs: { selectedIndex: \"selectedIndex\" }, outputs: { selectFocusedIndex: \"selectFocusedIndex\", indexFocused: \"indexFocused\" }, host: { properties: { \"class.mat-tab-header-pagination-controls-enabled\": \"_showPaginationControls\", \"class.mat-tab-header-rtl\": \"_getLayoutDirection() == 'rtl'\" }, classAttribute: \"mat-tab-header\" }, queries: [{ propertyName: \"_items\", predicate: MatTabLabelWrapper }], viewQueries: [{ propertyName: \"_inkBar\", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: \"_tabListContainer\", first: true, predicate: [\"tabListContainer\"], descendants: true, static: true }, { propertyName: \"_tabList\", first: true, predicate: [\"tabList\"], descendants: true, static: true }, { propertyName: \"_tabListInner\", first: true, predicate: [\"tabListInner\"], descendants: true, static: true }, { propertyName: \"_nextPaginator\", first: true, predicate: [\"nextPaginator\"], descendants: true }, { propertyName: \"_previousPaginator\", first: true, predicate: [\"previousPaginator\"], descendants: true }], usesInheritance: true, ngImport: i0, template: \"\\n\\n
\\n \\n
\\n \\n
\\n \\n
\\n\\n\\n\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\"], dependencies: [{ kind: \"directive\", type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i5.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }, { kind: \"directive\", type: MatInkBar, selector: \"mat-ink-bar\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabHeader, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab-header', inputs: ['selectedIndex'], outputs: ['selectFocusedIndex', 'indexFocused'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, host: {\n 'class': 'mat-tab-header',\n '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',\n '[class.mat-tab-header-rtl]': \"_getLayoutDirection() == 'rtl'\",\n }, template: \"\\n\\n
\\n \\n
\\n \\n
\\n \\n
\\n\\n\\n\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { _items: [{\n type: ContentChildren,\n args: [MatTabLabelWrapper, { descendants: false }]\n }], _inkBar: [{\n type: ViewChild,\n args: [MatInkBar, { static: true }]\n }], _tabListContainer: [{\n type: ViewChild,\n args: ['tabListContainer', { static: true }]\n }], _tabList: [{\n type: ViewChild,\n args: ['tabList', { static: true }]\n }], _tabListInner: [{\n type: ViewChild,\n args: ['tabListInner', { static: true }]\n }], _nextPaginator: [{\n type: ViewChild,\n args: ['nextPaginator']\n }], _previousPaginator: [{\n type: ViewChild,\n args: ['previousPaginator']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Used to generate unique ID's for each tab component */\nlet nextId = 0;\n/** A simple change event emitted on focus or selection changes. */\nclass MatTabChangeEvent {\n}\n// Boilerplate for applying mixins to MatTabGroup.\n/** @docs-private */\nconst _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}), 'primary');\n/**\n * Base class with all of the `MatTabGroupBase` functionality.\n * @docs-private\n */\nclass _MatTabGroupBase extends _MatTabGroupMixinBase {\n constructor(elementRef, _changeDetectorRef, defaultConfig, _animationMode) {\n super(elementRef);\n this._changeDetectorRef = _changeDetectorRef;\n this._animationMode = _animationMode;\n /** All of the tabs that belong to the group. */\n this._tabs = new QueryList();\n /** The tab index that should be selected after the content has been checked. */\n this._indexToSelect = 0;\n /** Index of the tab that was focused last. */\n this._lastFocusedTabIndex = null;\n /** Snapshot of the height of the tab body wrapper before another tab is activated. */\n this._tabBodyWrapperHeight = 0;\n /** Subscription to tabs being added/removed. */\n this._tabsSubscription = Subscription.EMPTY;\n /** Subscription to changes in the tab labels. */\n this._tabLabelSubscription = Subscription.EMPTY;\n this._dynamicHeight = false;\n this._selectedIndex = null;\n /** Position of the tab header. */\n this.headerPosition = 'above';\n this._disablePagination = false;\n this._preserveContent = false;\n /** Output to enable support for two-way binding on `[(selectedIndex)]` */\n this.selectedIndexChange = new EventEmitter();\n /** Event emitted when focus has changed within a tab group. */\n this.focusChange = new EventEmitter();\n /** Event emitted when the body animation has completed */\n this.animationDone = new EventEmitter();\n /** Event emitted when the tab selection has changed. */\n this.selectedTabChange = new EventEmitter(true);\n this._groupId = nextId++;\n this.animationDuration =\n defaultConfig && defaultConfig.animationDuration ? defaultConfig.animationDuration : '500ms';\n this.disablePagination =\n defaultConfig && defaultConfig.disablePagination != null\n ? defaultConfig.disablePagination\n : false;\n this.dynamicHeight =\n defaultConfig && defaultConfig.dynamicHeight != null ? defaultConfig.dynamicHeight : false;\n this.contentTabIndex = defaultConfig?.contentTabIndex ?? null;\n this.preserveContent = !!defaultConfig?.preserveContent;\n }\n /** Whether the tab group should grow to the size of the active tab. */\n get dynamicHeight() {\n return this._dynamicHeight;\n }\n set dynamicHeight(value) {\n this._dynamicHeight = coerceBooleanProperty(value);\n }\n /** The index of the active tab. */\n get selectedIndex() {\n return this._selectedIndex;\n }\n set selectedIndex(value) {\n this._indexToSelect = coerceNumberProperty(value, null);\n }\n /** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */\n get animationDuration() {\n return this._animationDuration;\n }\n set animationDuration(value) {\n this._animationDuration = /^\\d+$/.test(value + '') ? value + 'ms' : value;\n }\n /**\n * `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved\n * accessibility when the tab does not have focusable elements or if it has scrollable content.\n * The `tabindex` will be removed automatically for inactive tabs.\n * Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html\n */\n get contentTabIndex() {\n return this._contentTabIndex;\n }\n set contentTabIndex(value) {\n this._contentTabIndex = coerceNumberProperty(value, null);\n }\n /**\n * Whether pagination should be disabled. This can be used to avoid unnecessary\n * layout recalculations if it's known that pagination won't be required.\n */\n get disablePagination() {\n return this._disablePagination;\n }\n set disablePagination(value) {\n this._disablePagination = coerceBooleanProperty(value);\n }\n /**\n * By default tabs remove their content from the DOM while it's off-screen.\n * Setting this to `true` will keep it in the DOM which will prevent elements\n * like iframes and videos from reloading next time it comes back into the view.\n */\n get preserveContent() {\n return this._preserveContent;\n }\n set preserveContent(value) {\n this._preserveContent = coerceBooleanProperty(value);\n }\n /** Background color of the tab group. */\n get backgroundColor() {\n return this._backgroundColor;\n }\n set backgroundColor(value) {\n const nativeElement = this._elementRef.nativeElement;\n nativeElement.classList.remove(`mat-background-${this.backgroundColor}`);\n if (value) {\n nativeElement.classList.add(`mat-background-${value}`);\n }\n this._backgroundColor = value;\n }\n /**\n * After the content is checked, this component knows what tabs have been defined\n * and what the selected index should be. This is where we can know exactly what position\n * each tab should be in according to the new selected index, and additionally we know how\n * a new selected tab should transition in (from the left or right).\n */\n ngAfterContentChecked() {\n // Don't clamp the `indexToSelect` immediately in the setter because it can happen that\n // the amount of tabs changes before the actual change detection runs.\n const indexToSelect = (this._indexToSelect = this._clampTabIndex(this._indexToSelect));\n // If there is a change in selected index, emit a change event. Should not trigger if\n // the selected index has not yet been initialized.\n if (this._selectedIndex != indexToSelect) {\n const isFirstRun = this._selectedIndex == null;\n if (!isFirstRun) {\n this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));\n // Preserve the height so page doesn't scroll up during tab change.\n // Fixes https://stackblitz.com/edit/mat-tabs-scroll-page-top-on-tab-change\n const wrapper = this._tabBodyWrapper.nativeElement;\n wrapper.style.minHeight = wrapper.clientHeight + 'px';\n }\n // Changing these values after change detection has run\n // since the checked content may contain references to them.\n Promise.resolve().then(() => {\n this._tabs.forEach((tab, index) => (tab.isActive = index === indexToSelect));\n if (!isFirstRun) {\n this.selectedIndexChange.emit(indexToSelect);\n // Clear the min-height, this was needed during tab change to avoid\n // unnecessary scrolling.\n this._tabBodyWrapper.nativeElement.style.minHeight = '';\n }\n });\n }\n // Setup the position for each tab and optionally setup an origin on the next selected tab.\n this._tabs.forEach((tab, index) => {\n tab.position = index - indexToSelect;\n // If there is already a selected tab, then set up an origin for the next selected tab\n // if it doesn't have one already.\n if (this._selectedIndex != null && tab.position == 0 && !tab.origin) {\n tab.origin = indexToSelect - this._selectedIndex;\n }\n });\n if (this._selectedIndex !== indexToSelect) {\n this._selectedIndex = indexToSelect;\n this._lastFocusedTabIndex = null;\n this._changeDetectorRef.markForCheck();\n }\n }\n ngAfterContentInit() {\n this._subscribeToAllTabChanges();\n this._subscribeToTabLabels();\n // Subscribe to changes in the amount of tabs, in order to be\n // able to re-render the content as new tabs are added or removed.\n this._tabsSubscription = this._tabs.changes.subscribe(() => {\n const indexToSelect = this._clampTabIndex(this._indexToSelect);\n // Maintain the previously-selected tab if a new tab is added or removed and there is no\n // explicit change that selects a different tab.\n if (indexToSelect === this._selectedIndex) {\n const tabs = this._tabs.toArray();\n let selectedTab;\n for (let i = 0; i < tabs.length; i++) {\n if (tabs[i].isActive) {\n // Assign both to the `_indexToSelect` and `_selectedIndex` so we don't fire a changed\n // event, otherwise the consumer may end up in an infinite loop in some edge cases like\n // adding a tab within the `selectedIndexChange` event.\n this._indexToSelect = this._selectedIndex = i;\n this._lastFocusedTabIndex = null;\n selectedTab = tabs[i];\n break;\n }\n }\n // If we haven't found an active tab and a tab exists at the selected index, it means\n // that the active tab was swapped out. Since this won't be picked up by the rendering\n // loop in `ngAfterContentChecked`, we need to sync it up manually.\n if (!selectedTab && tabs[indexToSelect]) {\n Promise.resolve().then(() => {\n tabs[indexToSelect].isActive = true;\n this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));\n });\n }\n }\n this._changeDetectorRef.markForCheck();\n });\n }\n /** Listens to changes in all of the tabs. */\n _subscribeToAllTabChanges() {\n // Since we use a query with `descendants: true` to pick up the tabs, we may end up catching\n // some that are inside of nested tab groups. We filter them out manually by checking that\n // the closest group to the tab is the current one.\n this._allTabs.changes.pipe(startWith(this._allTabs)).subscribe((tabs) => {\n this._tabs.reset(tabs.filter(tab => {\n return tab._closestTabGroup === this || !tab._closestTabGroup;\n }));\n this._tabs.notifyOnChanges();\n });\n }\n ngOnDestroy() {\n this._tabs.destroy();\n this._tabsSubscription.unsubscribe();\n this._tabLabelSubscription.unsubscribe();\n }\n /** Re-aligns the ink bar to the selected tab element. */\n realignInkBar() {\n if (this._tabHeader) {\n this._tabHeader._alignInkBarToSelectedTab();\n }\n }\n /**\n * Recalculates the tab group's pagination dimensions.\n *\n * WARNING: Calling this method can be very costly in terms of performance. It should be called\n * as infrequently as possible from outside of the Tabs component as it causes a reflow of the\n * page.\n */\n updatePagination() {\n if (this._tabHeader) {\n this._tabHeader.updatePagination();\n }\n }\n /**\n * Sets focus to a particular tab.\n * @param index Index of the tab to be focused.\n */\n focusTab(index) {\n const header = this._tabHeader;\n if (header) {\n header.focusIndex = index;\n }\n }\n _focusChanged(index) {\n this._lastFocusedTabIndex = index;\n this.focusChange.emit(this._createChangeEvent(index));\n }\n _createChangeEvent(index) {\n const event = new MatTabChangeEvent();\n event.index = index;\n if (this._tabs && this._tabs.length) {\n event.tab = this._tabs.toArray()[index];\n }\n return event;\n }\n /**\n * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is\n * on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the\n * binding to be updated, we need to subscribe to changes in it and trigger change detection\n * manually.\n */\n _subscribeToTabLabels() {\n if (this._tabLabelSubscription) {\n this._tabLabelSubscription.unsubscribe();\n }\n this._tabLabelSubscription = merge(...this._tabs.map(tab => tab._stateChanges)).subscribe(() => this._changeDetectorRef.markForCheck());\n }\n /** Clamps the given index to the bounds of 0 and the tabs length. */\n _clampTabIndex(index) {\n // Note the `|| 0`, which ensures that values like NaN can't get through\n // and which would otherwise throw the component into an infinite loop\n // (since Math.max(NaN, 0) === NaN).\n return Math.min(this._tabs.length - 1, Math.max(index || 0, 0));\n }\n /** Returns a unique id for each tab label element */\n _getTabLabelId(i) {\n return `mat-tab-label-${this._groupId}-${i}`;\n }\n /** Returns a unique id for each tab content element */\n _getTabContentId(i) {\n return `mat-tab-content-${this._groupId}-${i}`;\n }\n /**\n * Sets the height of the body wrapper to the height of the activating tab if dynamic\n * height property is true.\n */\n _setTabBodyWrapperHeight(tabHeight) {\n if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {\n return;\n }\n const wrapper = this._tabBodyWrapper.nativeElement;\n wrapper.style.height = this._tabBodyWrapperHeight + 'px';\n // This conditional forces the browser to paint the height so that\n // the animation to the new height can have an origin.\n if (this._tabBodyWrapper.nativeElement.offsetHeight) {\n wrapper.style.height = tabHeight + 'px';\n }\n }\n /** Removes the height of the tab body wrapper. */\n _removeTabBodyWrapperHeight() {\n const wrapper = this._tabBodyWrapper.nativeElement;\n this._tabBodyWrapperHeight = wrapper.clientHeight;\n wrapper.style.height = '';\n this.animationDone.emit();\n }\n /** Handle click events, setting new selected index if appropriate. */\n _handleClick(tab, tabHeader, index) {\n if (!tab.disabled) {\n this.selectedIndex = tabHeader.focusIndex = index;\n }\n }\n /** Retrieves the tabindex for the tab. */\n _getTabIndex(tab, index) {\n if (tab.disabled) {\n return null;\n }\n const targetIndex = this._lastFocusedTabIndex ?? this.selectedIndex;\n return index === targetIndex ? 0 : -1;\n }\n /** Callback for when the focused state of a tab has changed. */\n _tabFocusChanged(focusOrigin, index) {\n // Mouse/touch focus happens during the `mousedown`/`touchstart` phase which\n // can cause the tab to be moved out from under the pointer, interrupting the\n // click sequence (see #21898). We don't need to scroll the tab into view for\n // such cases anyway, because it will be done when the tab becomes selected.\n if (focusOrigin && focusOrigin !== 'mouse' && focusOrigin !== 'touch') {\n this._tabHeader.focusIndex = index;\n }\n }\n}\n_MatTabGroupBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabGroupBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabGroupBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabGroupBase, inputs: { dynamicHeight: \"dynamicHeight\", selectedIndex: \"selectedIndex\", headerPosition: \"headerPosition\", animationDuration: \"animationDuration\", contentTabIndex: \"contentTabIndex\", disablePagination: \"disablePagination\", preserveContent: \"preserveContent\", backgroundColor: \"backgroundColor\" }, outputs: { selectedIndexChange: \"selectedIndexChange\", focusChange: \"focusChange\", animationDone: \"animationDone\", selectedTabChange: \"selectedTabChange\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabGroupBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TABS_CONFIG]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { dynamicHeight: [{\n type: Input\n }], selectedIndex: [{\n type: Input\n }], headerPosition: [{\n type: Input\n }], animationDuration: [{\n type: Input\n }], contentTabIndex: [{\n type: Input\n }], disablePagination: [{\n type: Input\n }], preserveContent: [{\n type: Input\n }], backgroundColor: [{\n type: Input\n }], selectedIndexChange: [{\n type: Output\n }], focusChange: [{\n type: Output\n }], animationDone: [{\n type: Output\n }], selectedTabChange: [{\n type: Output\n }] } });\n/**\n * Material design tab-group component. Supports basic tab pairs (label + content) and includes\n * animated ink-bar, keyboard navigation, and screen reader.\n * See: https://material.io/design/components/tabs.html\n */\nclass MatTabGroup extends _MatTabGroupBase {\n constructor(elementRef, changeDetectorRef, defaultConfig, animationMode) {\n super(elementRef, changeDetectorRef, defaultConfig, animationMode);\n }\n}\nMatTabGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabGroup, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabGroup, selector: \"mat-tab-group\", inputs: { color: \"color\", disableRipple: \"disableRipple\" }, host: { properties: { \"class.mat-tab-group-dynamic-height\": \"dynamicHeight\", \"class.mat-tab-group-inverted-header\": \"headerPosition === \\\"below\\\"\" }, classAttribute: \"mat-tab-group\" }, providers: [\n {\n provide: MAT_TAB_GROUP,\n useExisting: MatTabGroup,\n },\n ], queries: [{ propertyName: \"_allTabs\", predicate: MatTab, descendants: true }], viewQueries: [{ propertyName: \"_tabBodyWrapper\", first: true, predicate: [\"tabBodyWrapper\"], descendants: true }, { propertyName: \"_tabHeader\", first: true, predicate: [\"tabHeader\"], descendants: true }], exportAs: [\"matTabGroup\"], usesInheritance: true, ngImport: i0, template: \"\\n
\\n\\n\\n
\\n \\n \\n \\n \\n\\n \\n {{tab.textLabel}}\\n
\\n
\\n
\\n\\n\\n \\n \\n\\n\", styles: [\".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\"], dependencies: [{ kind: \"directive\", type: i1$2.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$2.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }, { kind: \"directive\", type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i7.CdkMonitorFocus, selector: \"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]\", outputs: [\"cdkFocusChange\"], exportAs: [\"cdkMonitorFocus\"] }, { kind: \"directive\", type: MatTabLabelWrapper, selector: \"[matTabLabelWrapper]\", inputs: [\"disabled\"] }, { kind: \"component\", type: MatTabBody, selector: \"mat-tab-body\" }, { kind: \"component\", type: MatTabHeader, selector: \"mat-tab-header\", inputs: [\"selectedIndex\"], outputs: [\"selectFocusedIndex\", \"indexFocused\"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabGroup, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab-group', exportAs: 'matTabGroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, inputs: ['color', 'disableRipple'], providers: [\n {\n provide: MAT_TAB_GROUP,\n useExisting: MatTabGroup,\n },\n ], host: {\n 'class': 'mat-tab-group',\n '[class.mat-tab-group-dynamic-height]': 'dynamicHeight',\n '[class.mat-tab-group-inverted-header]': 'headerPosition === \"below\"',\n }, template: \"\\n
\\n\\n\\n
\\n \\n \\n \\n \\n\\n \\n {{tab.textLabel}}\\n
\\n
\\n
\\n\\n\\n \\n \\n\\n\", styles: [\".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TABS_CONFIG]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { _allTabs: [{\n type: ContentChildren,\n args: [MatTab, { descendants: true }]\n }], _tabBodyWrapper: [{\n type: ViewChild,\n args: ['tabBodyWrapper']\n }], _tabHeader: [{\n type: ViewChild,\n args: ['tabHeader']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Increasing integer for generating unique ids for tab nav components.\nlet nextUniqueId = 0;\n/**\n * Base class with all of the `MatTabNav` functionality.\n * @docs-private\n */\nclass _MatTabNavBase extends MatPaginatedTabHeader {\n constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {\n super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n this._disableRipple = false;\n /** Theme color of the nav bar. */\n this.color = 'primary';\n }\n /** Background color of the tab nav. */\n get backgroundColor() {\n return this._backgroundColor;\n }\n set backgroundColor(value) {\n const classList = this._elementRef.nativeElement.classList;\n classList.remove(`mat-background-${this.backgroundColor}`);\n if (value) {\n classList.add(`mat-background-${value}`);\n }\n this._backgroundColor = value;\n }\n /** Whether the ripple effect is disabled or not. */\n get disableRipple() {\n return this._disableRipple;\n }\n set disableRipple(value) {\n this._disableRipple = coerceBooleanProperty(value);\n }\n _itemSelected() {\n // noop\n }\n ngAfterContentInit() {\n // We need this to run before the `changes` subscription in parent to ensure that the\n // selectedIndex is up-to-date by the time the super class starts looking for it.\n this._items.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {\n this.updateActiveLink();\n });\n super.ngAfterContentInit();\n }\n /** Notifies the component that the active link has been changed. */\n updateActiveLink() {\n if (!this._items) {\n return;\n }\n const items = this._items.toArray();\n for (let i = 0; i < items.length; i++) {\n if (items[i].active) {\n this.selectedIndex = i;\n this._changeDetectorRef.markForCheck();\n if (this.tabPanel) {\n this.tabPanel._activeTabId = items[i].id;\n }\n return;\n }\n }\n // The ink bar should hide itself if no items are active.\n this.selectedIndex = -1;\n this._inkBar.hide();\n }\n _getRole() {\n return this.tabPanel ? 'tablist' : this._elementRef.nativeElement.getAttribute('role');\n }\n}\n_MatTabNavBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabNavBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabNavBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabNavBase, inputs: { backgroundColor: \"backgroundColor\", disableRipple: \"disableRipple\", color: \"color\", tabPanel: \"tabPanel\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabNavBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { backgroundColor: [{\n type: Input\n }], disableRipple: [{\n type: Input\n }], color: [{\n type: Input\n }], tabPanel: [{\n type: Input\n }] } });\n/**\n * Navigation component matching the styles of the tab group header.\n * Provides anchored navigation with animated ink bar.\n */\nclass MatTabNav extends _MatTabNavBase {\n constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {\n super(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode);\n }\n}\nMatTabNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNav, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabNav, selector: \"[mat-tab-nav-bar]\", inputs: { color: \"color\" }, host: { properties: { \"attr.role\": \"_getRole()\", \"class.mat-tab-header-pagination-controls-enabled\": \"_showPaginationControls\", \"class.mat-tab-header-rtl\": \"_getLayoutDirection() == 'rtl'\", \"class.mat-primary\": \"color !== \\\"warn\\\" && color !== \\\"accent\\\"\", \"class.mat-accent\": \"color === \\\"accent\\\"\", \"class.mat-warn\": \"color === \\\"warn\\\"\" }, classAttribute: \"mat-tab-nav-bar mat-tab-header\" }, queries: [{ propertyName: \"_items\", predicate: i0.forwardRef(function () { return MatTabLink; }), descendants: true }], viewQueries: [{ propertyName: \"_inkBar\", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: \"_tabListContainer\", first: true, predicate: [\"tabListContainer\"], descendants: true, static: true }, { propertyName: \"_tabList\", first: true, predicate: [\"tabList\"], descendants: true, static: true }, { propertyName: \"_tabListInner\", first: true, predicate: [\"tabListInner\"], descendants: true, static: true }, { propertyName: \"_nextPaginator\", first: true, predicate: [\"nextPaginator\"], descendants: true }, { propertyName: \"_previousPaginator\", first: true, predicate: [\"previousPaginator\"], descendants: true }], exportAs: [\"matTabNavBar\", \"matTabNav\"], usesInheritance: true, ngImport: i0, template: \"\\n\\n\\n\\n\\n\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\"], dependencies: [{ kind: \"directive\", type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i5.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }, { kind: \"directive\", type: MatInkBar, selector: \"mat-ink-bar\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNav, decorators: [{\n type: Component,\n args: [{ selector: '[mat-tab-nav-bar]', exportAs: 'matTabNavBar, matTabNav', inputs: ['color'], host: {\n '[attr.role]': '_getRole()',\n 'class': 'mat-tab-nav-bar mat-tab-header',\n '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',\n '[class.mat-tab-header-rtl]': \"_getLayoutDirection() == 'rtl'\",\n '[class.mat-primary]': 'color !== \"warn\" && color !== \"accent\"',\n '[class.mat-accent]': 'color === \"accent\"',\n '[class.mat-warn]': 'color === \"warn\"',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, template: \"\\n\\n\\n\\n\\n\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { _items: [{\n type: ContentChildren,\n args: [forwardRef(() => MatTabLink), { descendants: true }]\n }], _inkBar: [{\n type: ViewChild,\n args: [MatInkBar, { static: true }]\n }], _tabListContainer: [{\n type: ViewChild,\n args: ['tabListContainer', { static: true }]\n }], _tabList: [{\n type: ViewChild,\n args: ['tabList', { static: true }]\n }], _tabListInner: [{\n type: ViewChild,\n args: ['tabListInner', { static: true }]\n }], _nextPaginator: [{\n type: ViewChild,\n args: ['nextPaginator']\n }], _previousPaginator: [{\n type: ViewChild,\n args: ['previousPaginator']\n }] } });\n// Boilerplate for applying mixins to MatTabLink.\nconst _MatTabLinkMixinBase = mixinTabIndex(mixinDisableRipple(mixinDisabled(class {\n})));\n/** Base class with all of the `MatTabLink` functionality. */\nclass _MatTabLinkBase extends _MatTabLinkMixinBase {\n constructor(_tabNavBar, \n /** @docs-private */ elementRef, globalRippleOptions, tabIndex, _focusMonitor, animationMode) {\n super();\n this._tabNavBar = _tabNavBar;\n this.elementRef = elementRef;\n this._focusMonitor = _focusMonitor;\n /** Whether the tab link is active or not. */\n this._isActive = false;\n /** Unique id for the tab. */\n this.id = `mat-tab-link-${nextUniqueId++}`;\n this.rippleConfig = globalRippleOptions || {};\n this.tabIndex = parseInt(tabIndex) || 0;\n if (animationMode === 'NoopAnimations') {\n this.rippleConfig.animation = { enterDuration: 0, exitDuration: 0 };\n }\n }\n /** Whether the link is active. */\n get active() {\n return this._isActive;\n }\n set active(value) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this._isActive) {\n this._isActive = newValue;\n this._tabNavBar.updateActiveLink();\n }\n }\n /**\n * Whether ripples are disabled on interaction.\n * @docs-private\n */\n get rippleDisabled() {\n return (this.disabled ||\n this.disableRipple ||\n this._tabNavBar.disableRipple ||\n !!this.rippleConfig.disabled);\n }\n /** Focuses the tab link. */\n focus() {\n this.elementRef.nativeElement.focus();\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this.elementRef);\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this.elementRef);\n }\n _handleFocus() {\n // Since we allow navigation through tabbing in the nav bar, we\n // have to update the focused index whenever the link receives focus.\n this._tabNavBar.focusIndex = this._tabNavBar._items.toArray().indexOf(this);\n }\n _handleKeydown(event) {\n if (this._tabNavBar.tabPanel && event.keyCode === SPACE) {\n this.elementRef.nativeElement.click();\n }\n }\n _getAriaControls() {\n return this._tabNavBar.tabPanel\n ? this._tabNavBar.tabPanel?.id\n : this.elementRef.nativeElement.getAttribute('aria-controls');\n }\n _getAriaSelected() {\n if (this._tabNavBar.tabPanel) {\n return this.active ? 'true' : 'false';\n }\n else {\n return this.elementRef.nativeElement.getAttribute('aria-selected');\n }\n }\n _getAriaCurrent() {\n return this.active && !this._tabNavBar.tabPanel ? 'page' : null;\n }\n _getRole() {\n return this._tabNavBar.tabPanel ? 'tab' : this.elementRef.nativeElement.getAttribute('role');\n }\n _getTabIndex() {\n if (this._tabNavBar.tabPanel) {\n return this._isActive && !this.disabled ? 0 : -1;\n }\n else {\n return this.tabIndex;\n }\n }\n}\n_MatTabLinkBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabLinkBase, deps: [{ token: _MatTabNavBase }, { token: i0.ElementRef }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabLinkBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabLinkBase, inputs: { active: \"active\", id: \"id\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabLinkBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: _MatTabNavBase }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { active: [{\n type: Input\n }], id: [{\n type: Input\n }] } });\n/**\n * Link inside of a `mat-tab-nav-bar`.\n */\nclass MatTabLink extends _MatTabLinkBase {\n constructor(tabNavBar, elementRef, ngZone, platform, globalRippleOptions, tabIndex, focusMonitor, animationMode) {\n super(tabNavBar, elementRef, globalRippleOptions, tabIndex, focusMonitor, animationMode);\n this._tabLinkRipple = new RippleRenderer(this, ngZone, elementRef, platform);\n this._tabLinkRipple.setupTriggerEvents(elementRef.nativeElement);\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n this._tabLinkRipple._removeTriggerEvents();\n }\n}\nMatTabLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLink, deps: [{ token: MatTabNav }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabLink, selector: \"[mat-tab-link], [matTabLink]\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", tabIndex: \"tabIndex\" }, host: { listeners: { \"focus\": \"_handleFocus()\", \"keydown\": \"_handleKeydown($event)\" }, properties: { \"attr.aria-controls\": \"_getAriaControls()\", \"attr.aria-current\": \"_getAriaCurrent()\", \"attr.aria-disabled\": \"disabled\", \"attr.aria-selected\": \"_getAriaSelected()\", \"attr.id\": \"id\", \"attr.tabIndex\": \"_getTabIndex()\", \"attr.role\": \"_getRole()\", \"class.mat-tab-disabled\": \"disabled\", \"class.mat-tab-label-active\": \"active\" }, classAttribute: \"mat-tab-link mat-focus-indicator\" }, exportAs: [\"matTabLink\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLink, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-tab-link], [matTabLink]',\n exportAs: 'matTabLink',\n inputs: ['disabled', 'disableRipple', 'tabIndex'],\n host: {\n 'class': 'mat-tab-link mat-focus-indicator',\n '[attr.aria-controls]': '_getAriaControls()',\n '[attr.aria-current]': '_getAriaCurrent()',\n '[attr.aria-disabled]': 'disabled',\n '[attr.aria-selected]': '_getAriaSelected()',\n '[attr.id]': 'id',\n '[attr.tabIndex]': '_getTabIndex()',\n '[attr.role]': '_getRole()',\n '[class.mat-tab-disabled]': 'disabled',\n '[class.mat-tab-label-active]': 'active',\n '(focus)': '_handleFocus()',\n '(keydown)': '_handleKeydown($event)',\n },\n }]\n }], ctorParameters: function () { return [{ type: MatTabNav }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; } });\n/**\n * Tab panel component associated with MatTabNav.\n */\nclass MatTabNavPanel {\n constructor() {\n /** Unique id for the tab panel. */\n this.id = `mat-tab-nav-panel-${nextUniqueId++}`;\n }\n}\nMatTabNavPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNavPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });\nMatTabNavPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabNavPanel, selector: \"mat-tab-nav-panel\", inputs: { id: \"id\" }, host: { attributes: { \"role\": \"tabpanel\" }, properties: { \"attr.aria-labelledby\": \"_activeTabId\", \"attr.id\": \"id\" }, classAttribute: \"mat-tab-nav-panel\" }, exportAs: [\"matTabNavPanel\"], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNavPanel, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-tab-nav-panel',\n exportAs: 'matTabNavPanel',\n template: '',\n host: {\n '[attr.aria-labelledby]': '_activeTabId',\n '[attr.id]': 'id',\n 'class': 'mat-tab-nav-panel',\n 'role': 'tabpanel',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n }]\n }], propDecorators: { id: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatTabsModule {\n}\nMatTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, declarations: [MatTabGroup,\n MatTabLabel,\n MatTab,\n MatInkBar,\n MatTabLabelWrapper,\n MatTabNav,\n MatTabNavPanel,\n MatTabLink,\n MatTabBody,\n MatTabBodyPortal,\n MatTabHeader,\n MatTabContent], imports: [CommonModule,\n MatCommonModule,\n PortalModule,\n MatRippleModule,\n ObserversModule,\n A11yModule], exports: [MatCommonModule,\n MatTabGroup,\n MatTabLabel,\n MatTab,\n MatTabNav,\n MatTabNavPanel,\n MatTabLink,\n MatTabContent] });\nMatTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, imports: [CommonModule,\n MatCommonModule,\n PortalModule,\n MatRippleModule,\n ObserversModule,\n A11yModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n CommonModule,\n MatCommonModule,\n PortalModule,\n MatRippleModule,\n ObserversModule,\n A11yModule,\n ],\n // Don't export all components because some are only to be used internally.\n exports: [\n MatCommonModule,\n MatTabGroup,\n MatTabLabel,\n MatTab,\n MatTabNav,\n MatTabNavPanel,\n MatTabLink,\n MatTabContent,\n ],\n declarations: [\n MatTabGroup,\n MatTabLabel,\n MatTab,\n MatInkBar,\n MatTabLabelWrapper,\n MatTabNav,\n MatTabNavPanel,\n MatTabLink,\n MatTabBody,\n MatTabBodyPortal,\n MatTabHeader,\n MatTabContent,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_GROUP, MatInkBar, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabNavPanel, MatTabsModule, _MAT_INK_BAR_POSITIONER, _MatTabBodyBase, _MatTabGroupBase, _MatTabHeaderBase, _MatTabLinkBase, _MatTabNavBase, matTabsAnimations };\n","
\r\n \r\n
\r\n \r\n \r\n {{trackingNumberHint}}\r\n \r\n {{trackingNumberInvalidMessage}}\r\n \r\n \r\n {{trackingNumberEmptyMessage}} \r\n required\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { XPOConstants } from '../../shared';\r\nimport { Validators, FormControl } from '@angular/forms';\r\nimport { LoaderService } from '../../loader/loader';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { GoogleAnalyticsConstants } from '../../shared/constants/google-analytics-constants';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { OrderService } from '../../shared/services/order.service';\r\nimport { AppSettings } from '../../core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-track-xpo-number',\r\n templateUrl: './track-xpo-number.component.html',\r\n styleUrls: [ './track-xpo-number.component.scss' ]\r\n})\r\nexport class TrackXpoNumberComponent implements OnInit {\r\n public trackingFormControl;\r\n public xpoTrackNum = '';\r\n public trackingNumberInvalidMessage: string;\r\n public trackingNumberLabel: string;\r\n public trackingNumberEmptyMessage: string;\r\n public trackingNumberHint: string;\r\n\r\n constructor(\r\n private spinner: LoaderService,\r\n public dialog: MatDialog,\r\n private appSettings: AppSettings,\r\n private orderService: OrderService,\r\n public menuService: MenuService\r\n ) {\r\n this.trackingFormControl = new FormControl('', [ Validators.required, Validators.pattern(XPOConstants.JOB_NUMBER_REGEX) ]);\r\n }\r\n\r\n ngOnInit() {\r\n this.trackingNumberInvalidMessage = this.appSettings\r\n .getMessage('TRACKING_NUMBER_INVALID')\r\n .replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n\r\n this.trackingNumberLabel = this.appSettings\r\n .getMessage('TRACKING_NUMBER_LABEL')\r\n .replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n\r\n this.trackingNumberEmptyMessage = this.appSettings\r\n .getMessage('TRACKING_NUMBER_EMPTY')\r\n .replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n\r\n this.trackingNumberHint = this.appSettings\r\n .getMessage('TRACKING_NUMBER_HINT')\r\n .replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n }\r\n\r\n public xpoTrackingSearch(event) {\r\n this.menuService.isUIClick=false;\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.JOB_SEARCH,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER\r\n }\r\n });\r\n this.dialog.closeAll();\r\n this.spinner.showLoader();\r\n if (this.xpoTrackNum && this.menuService.isNumberValid(this.xpoTrackNum, XPOConstants.JOB_NUMBER_REGEX)) {\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.menuService.segmentRefreshNeeded = true;\r\n this.menuService.paramTrigger = false;\r\n this.menuService.pageIndex = 0;\r\n this.menuService.multiOrderCIpageIndex = 0;\r\n this.menuService.needToUpdateCache = true;\r\n this.menuService.isFromSearch = true;\r\n if (this.xpoTrackNum.startsWith('XP')) {\r\n this.orderService.searchByReferenceNumber(this.xpoTrackNum, '0')\r\n .subscribe(() => {\r\n this.spinner.hideLoader();\r\n this.menuService.closeDialog(event);\r\n });\r\n } else {\r\n this.orderService.orderRefresh = false;\r\n this.orderService.searchOrder(this.xpoTrackNum)\r\n .subscribe(() => {\r\n this.spinner.hideLoader();\r\n this.menuService.closeDialog(event);\r\n });\r\n }\r\n }\r\n }\r\n\r\n public isTrackingFormValid() {\r\n return this.trackingFormControl.valid;\r\n }\r\n\r\n}\r\n","
\r\n \r\n
\r\n \r\n \r\n \r\n Retailer's Reference Number is \r\n required\r\n \r\n \r\n \r\n \r\n (XXX) XXX-XXXX\r\n \r\n Please enter a valid Phone Number\r\n \r\n \r\n Delivery Phone Number is \r\n required\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { LoaderService } from 'app/loader/loader';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { OrderService, XPOConstants, GoogleAnalyticsConstants } from 'app/shared';\r\nimport { MenuService } from 'app/core/layout/menu.service';\r\nimport { Validators, FormControl } from '@angular/forms';\r\nimport { AppSettings } from 'app/core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-track-xpo-reference-number',\r\n templateUrl: './track-xpo-reference-number.component.html',\r\n styleUrls: [ './track-xpo-reference-number.component.scss' ]\r\n})\r\nexport class TrackXpoReferenceNumberComponent implements OnInit {\r\n public retailerReferenceNum = '';\r\n public referencePhoneNum = '';\r\n public referenceFormControl;\r\n public referencePhoneFormControl;\r\n public phoneNumberMask = XPOConstants.PHONE_MASK;\r\n\r\n constructor(\r\n private spinner: LoaderService,\r\n public dialog: MatDialog,\r\n private orderService: OrderService,\r\n public menuService: MenuService,\r\n private appSettings: AppSettings\r\n ) {\r\n this.referenceFormControl = new FormControl('', [ Validators.required ]);\r\n this.referencePhoneFormControl = new FormControl('', [ Validators.required, Validators.pattern(XPOConstants.PHONE_REGEX) ]);\r\n }\r\n\r\n ngOnInit() { }\r\n public isReferenceFormValid() {\r\n return (this.retailerReferenceNum && this.referenceFormControl.valid && this.referencePhoneFormControl.valid);\r\n }\r\n\r\n public retailerSearch(event) { \r\n //debugger;\r\n this.menuService.isUIClick=false; \r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.RETAILER_SEARCH,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER\r\n }\r\n });\r\n this.dialog.closeAll();\r\n this.spinner.showLoader();\r\n if (this.retailerReferenceNum && this.referencePhoneNum && this.menuService.isNumberValid(this.referencePhoneNum, XPOConstants.PHONE_REGEX)) {\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.menuService.segmentRefreshNeeded = true;\r\n this.menuService.pageIndex = 0;\r\n this.menuService.multiOrderCIpageIndex = 0;\r\n this.menuService.needToUpdateCache = true;\r\n this.menuService.isFromSearch = true;\r\n \r\n this.orderService.searchByTrackId(encodeURIComponent(this.retailerReferenceNum.trim()), this.referencePhoneNum.replace(/[\\(\\)\\-\\s]+/g, ''))\r\n .subscribe(() => {\r\n this.spinner.hideLoader();\r\n this.menuService.closeDialog(event);\r\n });\r\n }\r\n }\r\n}\r\n","
\r\n \r\n
\r\n \r\n \r\n (XXX) XXX-XXXX\r\n \r\n Please enter a valid Phone Number\r\n \r\n \r\n Delivery Phone Number is \r\n required\r\n \r\n \r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { OrderService, XPOConstants, GoogleAnalyticsConstants } from 'app/shared';\r\nimport { LoaderService } from 'app/loader/loader';\r\nimport { MenuService } from 'app/core/layout/menu.service';\r\nimport { Validators, FormControl } from '@angular/forms';\r\nimport { DatePipe } from '@angular/common';\r\nimport { AppSettings } from 'app/core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-track-xpo-delivery-number',\r\n templateUrl: './track-xpo-delivery-number.component.html',\r\n styleUrls: [ './track-xpo-delivery-number.component.scss' ]\r\n})\r\nexport class TrackXpoDeliveryNumberComponent implements OnInit {\r\n public referencePhoneFormControl;\r\n public deliveryFormControl;\r\n public deliveryPhoneNum = '';\r\n public phoneNumberMask = XPOConstants.PHONE_MASK;\r\n public openCalendarWidget = false;\r\n public isSelectedDate = false;\r\n public iscalendarFocused = false;\r\n public deliveryDate: Date;\r\n\r\n constructor(\r\n public dialog: MatDialog,\r\n private orderService: OrderService,\r\n private spinner: LoaderService,\r\n public menuService: MenuService,\r\n private datePipe: DatePipe,\r\n private appSettings: AppSettings\r\n ) {\r\n this.referencePhoneFormControl = new FormControl('', [ Validators.required, Validators.pattern(XPOConstants.PHONE_REGEX) ]);\r\n this.deliveryFormControl = new FormControl('', [ Validators.required, Validators.pattern(XPOConstants.PHONE_REGEX) ]);\r\n }\r\n ngOnInit() { }\r\n\r\n public onSelect(event) {\r\n this.isSelectedDate = true;\r\n this.deliveryDate = event;\r\n }\r\n public onCalendarClick(event) {\r\n this.openCalendarWidget = !this.openCalendarWidget;\r\n this.iscalendarFocused = false;\r\n let contactComponent = document.getElementById('contact-support');\r\n if(this.menuService.isMobileDevice() && this.menuService.isLandingPage && contactComponent) {\r\n if(this.openCalendarWidget) {\r\n contactComponent.style.zIndex = '-1';\r\n }\r\n else {\r\n contactComponent.style.zIndex = '10000';\r\n }\r\n }\r\n \r\n }\r\n public onMonthChange(event) {\r\n this.openCalendarWidget = false;\r\n }\r\n public isDeliveryDateFormValid() {\r\n return (this.deliveryDate && this.deliveryFormControl.valid);\r\n }\r\n public searchByDeliveryDate(event) {\r\n this.menuService.isUIClick=false;\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.DELIVERY_DATE_SEARCH,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER\r\n }\r\n });\r\n this.dialog.closeAll();\r\n this.spinner.showLoader();\r\n if (this.deliveryDate && this.deliveryPhoneNum && this.menuService.isNumberValid(this.deliveryPhoneNum, XPOConstants.PHONE_REGEX)) {\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.menuService.segmentRefreshNeeded = true;\r\n this.menuService.pageIndex = 0;\r\n this.menuService.multiOrderCIpageIndex = 0;\r\n this.menuService.needToUpdateCache = true;\r\n this.menuService.isFromSearch = true;\r\n const dateToString = this.deliveryDate.toString();\r\n const expectedDateFormat = this.datePipe.transform(this.deliveryDate, 'yyyy-MM-dd');\r\n const deliveryDateToString = expectedDateFormat.toString();\r\n this.orderService.searchByDeliveryDate(deliveryDateToString, this.deliveryPhoneNum.replace(/[\\(\\)\\-\\s]+/g, ''))\r\n .subscribe(() => {\r\n this.spinner.hideLoader();\r\n this.menuService.closeDialog(event);\r\n });\r\n }\r\n if (event) { event.preventDefault(); }\r\n }\r\n\r\n}\r\n","\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { AppSettings } from '../../core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-track-another-order-tab',\r\n templateUrl: './track-another-order-tab.component.html',\r\n styleUrls: [ './track-another-order-tab.component.scss' ]\r\n})\r\nexport class TrackAnotherOrderTabComponent implements OnInit {\r\n\r\n public trackingLabel: string;\r\n\r\n constructor(private appSettings: AppSettings) { }\r\n\r\n ngOnInit() {\r\n this.trackingLabel = this.appSettings\r\n .getMessage('TRACKING')\r\n .replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n }\r\n\r\n}\r\n","
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n Track A Shipment\r\n Select an option below.\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { Order } from '../shared';\r\nimport { OrderService } from '../shared/services/order.service';\r\nimport { LoaderService } from '../loader/loader';\r\nimport { MenuService } from '../core/layout/menu.service';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { Subscription } from 'rxjs';\r\nimport { AppSettings } from 'app/core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-search',\r\n templateUrl: './search.component.html',\r\n styleUrls: [ './search.component.scss' ]\r\n})\r\nexport class SearchComponent implements OnInit, OnDestroy {\r\n static visible = false;\r\n public order;\r\n public searchHandler = false; \r\n public isChecked = true;\r\n\r\n private orderSubscription: Subscription;\r\n\r\n constructor(\r\n public dialog: MatDialog,\r\n private orderService: OrderService,\r\n private spinner: LoaderService,\r\n public menuService: MenuService,\r\n public appSettings: AppSettings\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.spinner.hideLoader();\r\n this.orderSubscription = this.orderService.order.subscribe(order => {\r\n if (order !== null) {\r\n this.order = order;\r\n this.searchHandler = true;\r\n }\r\n if (this.menuService.isTimerTriggered) {\r\n if (this.menuService.isFromSearch) {\r\n this.menuService.segmentRefreshNeeded = true;\r\n this.menuService.isFromSearch = false;\r\n } else {\r\n this.menuService.segmentRefreshNeeded = false;\r\n }\r\n } else {\r\n this.menuService.segmentRefreshNeeded = true;\r\n }\r\n });\r\n }\r\n public closeDialog(event) {\r\n this.menuService.hideMenu();\r\n if (event) { event.preventDefault(); }\r\n }\r\n ngOnDestroy() {\r\n this.orderSubscription.unsubscribe();\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router, RouterStateSnapshot, ActivatedRouteSnapshot } from '@angular/router';\r\nimport { OrderService } from './order.service';\r\n\r\n@Injectable()\r\nexport class AuthenticateService {\r\n public order;\r\n constructor(\r\n private router: Router, private orderService: OrderService\r\n ) { }\r\n\r\n canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {\r\n this.orderService.order.subscribe(order => {\r\n if (order) {\r\n this.order = order;\r\n }\r\n });\r\n if (this.order.validated === false) {\r\n this.router.navigate([ 'verification' ], { queryParams: { orderid: this.order.orderId, state: state.url } });\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { SearchComponent } from './track-another-order/search.component';\r\nimport { AuthenticateService } from './shared/services/authenticate.service';\r\n\r\n\r\nconst appRoutes: Routes = [\r\n { path: 'search', component: SearchComponent },\r\n { path: 'order-details', loadChildren: () => import('app/order-details/order-details.module').then(m => m.OrderDetailsModule) },\r\n { path: 'profile', loadChildren: () => import('app/profile-dialog/profile-dialog.module').then(m => m.ProfileDialogModule), canActivate: [ AuthenticateService ] },\r\n { path: 'alerts', loadChildren: () => import('app/sms-signup/sms-signup.module').then(m => m.SmsSignupModule), canActivate: [ AuthenticateService ] },\r\n { path: 'check-list', loadChildren: () => import('app/check-list/check-list.module').then(m => m.CheckListModule) },\r\n { path: 'e-sign', loadChildren: () => import('app/e-sign/e-sign.module').then(m => m.ESignModule)},\r\n { path: 'confirmation', loadChildren: () => import('app/e-sign/e-sign.module').then(m => m.ESignModule) },\r\n { path: 'contact-us', loadChildren: () => import('app/contact-us/contact-us.module').then(m => m.ContactUsModule) },\r\n { path: 'verification', loadChildren: () => import('app/verification/verification.module').then(m => m.VerificationModule) },\r\n { path: 'add-to-calendar', loadChildren: () => import('app/add-to-calendar/add-to-calendar.module').then(m => m.AddToCalendarModule), canActivate: [ AuthenticateService ] },\r\n { path: 'reschedule', loadChildren: () => import('app/reschedule/reschedule.module').then(m => m.RescheduleModule)},\r\n { path: 'survey', loadChildren: () => import('app/survey/survey.module').then(m => m.SurveyModule)},\r\n { path: 'notification', loadChildren: () => import('app/notification/notification.module').then(m => m.NotificationModule), },\r\n { path: 'unsubscribe', loadChildren: () => import('app/unsubscribe-email/unsubscribe-email.module').then(m => m.UnsubscribeEmailModule) },\r\n { path: 'images', loadChildren: () => import('app/images/images.module').then(m => m.ImagesModule) },\r\n { path: 'hours', loadChildren: () => import('app/hours-of-operation/hours-of-operation.module').then(m => m.HoursOfOperationModule)},\r\n { path: 'fr/search', component: SearchComponent },\r\n { path: 'fr/order-details', loadChildren: () => import('app/order-details/order-details.module').then(m => m.OrderDetailsModule) },\r\n { path: 'fr/profile', loadChildren: () => import('app/profile-dialog/profile-dialog.module').then(m => m.ProfileDialogModule), canActivate: [ AuthenticateService ] },\r\n { path: 'fr/alerts', loadChildren: () => import('app/sms-signup/sms-signup.module').then(m => m.SmsSignupModule), canActivate: [ AuthenticateService ] },\r\n { path: 'fr/check-list', loadChildren: () => import('app/check-list/check-list.module').then(m => m.CheckListModule) },\r\n { path: 'fr/e-sign', loadChildren: () => import('app/e-sign/e-sign.module').then(m => m.ESignModule)},\r\n { path: 'fr/confirmation', loadChildren: () => import('app/e-sign/e-sign.module').then(m => m.ESignModule) },\r\n { path: 'fr/contact-us', loadChildren: () => import('app/contact-us/contact-us.module').then(m => m.ContactUsModule) },\r\n { path: 'fr/verification', loadChildren: () => import('app/verification/verification.module').then(m => m.VerificationModule) },\r\n { path: 'fr/add-to-calendar', loadChildren: () => import('app/add-to-calendar/add-to-calendar.module').then(m => m.AddToCalendarModule), canActivate: [ AuthenticateService ] },\r\n { path: 'fr/reschedule', loadChildren: () => import('app/reschedule/reschedule.module').then(m => m.RescheduleModule)},\r\n { path: 'fr/survey', loadChildren: () => import('app/survey/survey.module').then(m => m.SurveyModule)},\r\n { path: 'fr/notification', loadChildren: () => import('app/notification/notification.module').then(m => m.NotificationModule), },\r\n { path: 'fr/unsubscribe', loadChildren: () => import('app/unsubscribe-email/unsubscribe-email.module').then(m => m.UnsubscribeEmailModule) },\r\n { path: 'fr/images', loadChildren: () => import('app/images/images.module').then(m => m.ImagesModule) },\r\n { path: 'fr/hours', loadChildren: () => import('app/hours-of-operation/hours-of-operation.module').then(m => m.HoursOfOperationModule)},\r\n { path: '**', redirectTo: '' }\r\n\r\n];\r\n\r\n@NgModule({\r\n imports: [ RouterModule.forRoot(appRoutes, { }) ],\r\n exports: [ RouterModule ]\r\n})\r\nexport class AppRoutingModule { }\r\n","/**\n * @license Angular v17.2.1\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ɵAnimationGroupPlayer, NoopAnimationPlayer, AUTO_STYLE, ɵPRE_STYLE, sequence, AnimationMetadataType, style } from '@angular/animations';\nimport * as i0 from '@angular/core';\nimport { ɵRuntimeError, Injectable } from '@angular/core';\n\nconst LINE_START = '\\n - ';\nfunction invalidTimingValue(exp) {\n return new ɵRuntimeError(3000 /* RuntimeErrorCode.INVALID_TIMING_VALUE */, ngDevMode && `The provided timing value \"${exp}\" is invalid.`);\n}\nfunction negativeStepValue() {\n return new ɵRuntimeError(3100 /* RuntimeErrorCode.NEGATIVE_STEP_VALUE */, ngDevMode && 'Duration values below 0 are not allowed for this animation step.');\n}\nfunction negativeDelayValue() {\n return new ɵRuntimeError(3101 /* RuntimeErrorCode.NEGATIVE_DELAY_VALUE */, ngDevMode && 'Delay values below 0 are not allowed for this animation step.');\n}\nfunction invalidStyleParams(varName) {\n return new ɵRuntimeError(3001 /* RuntimeErrorCode.INVALID_STYLE_PARAMS */, ngDevMode &&\n `Unable to resolve the local animation param ${varName} in the given list of values`);\n}\nfunction invalidParamValue(varName) {\n return new ɵRuntimeError(3003 /* RuntimeErrorCode.INVALID_PARAM_VALUE */, ngDevMode && `Please provide a value for the animation param ${varName}`);\n}\nfunction invalidNodeType(nodeType) {\n return new ɵRuntimeError(3004 /* RuntimeErrorCode.INVALID_NODE_TYPE */, ngDevMode && `Unable to resolve animation metadata node #${nodeType}`);\n}\nfunction invalidCssUnitValue(userProvidedProperty, value) {\n return new ɵRuntimeError(3005 /* RuntimeErrorCode.INVALID_CSS_UNIT_VALUE */, ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`);\n}\nfunction invalidTrigger() {\n return new ɵRuntimeError(3006 /* RuntimeErrorCode.INVALID_TRIGGER */, ngDevMode &&\n \"animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))\");\n}\nfunction invalidDefinition() {\n return new ɵRuntimeError(3007 /* RuntimeErrorCode.INVALID_DEFINITION */, ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()');\n}\nfunction invalidState(metadataName, missingSubs) {\n return new ɵRuntimeError(3008 /* RuntimeErrorCode.INVALID_STATE */, ngDevMode &&\n `state(\"${metadataName}\", ...) must define default values for all the following style substitutions: ${missingSubs.join(', ')}`);\n}\nfunction invalidStyleValue(value) {\n return new ɵRuntimeError(3002 /* RuntimeErrorCode.INVALID_STYLE_VALUE */, ngDevMode && `The provided style string value ${value} is not allowed.`);\n}\nfunction invalidProperty(prop) {\n return new ɵRuntimeError(3009 /* RuntimeErrorCode.INVALID_PROPERTY */, ngDevMode &&\n `The provided animation property \"${prop}\" is not a supported CSS property for animations`);\n}\nfunction invalidParallelAnimation(prop, firstStart, firstEnd, secondStart, secondEnd) {\n return new ɵRuntimeError(3010 /* RuntimeErrorCode.INVALID_PARALLEL_ANIMATION */, ngDevMode &&\n `The CSS property \"${prop}\" that exists between the times of \"${firstStart}ms\" and \"${firstEnd}ms\" is also being animated in a parallel animation between the times of \"${secondStart}ms\" and \"${secondEnd}ms\"`);\n}\nfunction invalidKeyframes() {\n return new ɵRuntimeError(3011 /* RuntimeErrorCode.INVALID_KEYFRAMES */, ngDevMode && `keyframes() must be placed inside of a call to animate()`);\n}\nfunction invalidOffset() {\n return new ɵRuntimeError(3012 /* RuntimeErrorCode.INVALID_OFFSET */, ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`);\n}\nfunction keyframeOffsetsOutOfOrder() {\n return new ɵRuntimeError(3200 /* RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER */, ngDevMode && `Please ensure that all keyframe offsets are in order`);\n}\nfunction keyframesMissingOffsets() {\n return new ɵRuntimeError(3202 /* RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS */, ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`);\n}\nfunction invalidStagger() {\n return new ɵRuntimeError(3013 /* RuntimeErrorCode.INVALID_STAGGER */, ngDevMode && `stagger() can only be used inside of query()`);\n}\nfunction invalidQuery(selector) {\n return new ɵRuntimeError(3014 /* RuntimeErrorCode.INVALID_QUERY */, ngDevMode &&\n `\\`query(\"${selector}\")\\` returned zero elements. (Use \\`query(\"${selector}\", { optional: true })\\` if you wish to allow this.)`);\n}\nfunction invalidExpression(expr) {\n return new ɵRuntimeError(3015 /* RuntimeErrorCode.INVALID_EXPRESSION */, ngDevMode && `The provided transition expression \"${expr}\" is not supported`);\n}\nfunction invalidTransitionAlias(alias) {\n return new ɵRuntimeError(3016 /* RuntimeErrorCode.INVALID_TRANSITION_ALIAS */, ngDevMode && `The transition alias value \"${alias}\" is not supported`);\n}\nfunction validationFailed(errors) {\n return new ɵRuntimeError(3500 /* RuntimeErrorCode.VALIDATION_FAILED */, ngDevMode && `animation validation failed:\\n${errors.map((err) => err.message).join('\\n')}`);\n}\nfunction buildingFailed(errors) {\n return new ɵRuntimeError(3501 /* RuntimeErrorCode.BUILDING_FAILED */, ngDevMode && `animation building failed:\\n${errors.map((err) => err.message).join('\\n')}`);\n}\nfunction triggerBuildFailed(name, errors) {\n return new ɵRuntimeError(3404 /* RuntimeErrorCode.TRIGGER_BUILD_FAILED */, ngDevMode &&\n `The animation trigger \"${name}\" has failed to build due to the following errors:\\n - ${errors\n .map((err) => err.message)\n .join('\\n - ')}`);\n}\nfunction animationFailed(errors) {\n return new ɵRuntimeError(3502 /* RuntimeErrorCode.ANIMATION_FAILED */, ngDevMode &&\n `Unable to animate due to the following errors:${LINE_START}${errors\n .map((err) => err.message)\n .join(LINE_START)}`);\n}\nfunction registerFailed(errors) {\n return new ɵRuntimeError(3503 /* RuntimeErrorCode.REGISTRATION_FAILED */, ngDevMode &&\n `Unable to build the animation due to the following errors: ${errors\n .map((err) => err.message)\n .join('\\n')}`);\n}\nfunction missingOrDestroyedAnimation() {\n return new ɵRuntimeError(3300 /* RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION */, ngDevMode && \"The requested animation doesn't exist or has already been destroyed\");\n}\nfunction createAnimationFailed(errors) {\n return new ɵRuntimeError(3504 /* RuntimeErrorCode.CREATE_ANIMATION_FAILED */, ngDevMode &&\n `Unable to create the animation due to the following errors:${errors\n .map((err) => err.message)\n .join('\\n')}`);\n}\nfunction missingPlayer(id) {\n return new ɵRuntimeError(3301 /* RuntimeErrorCode.MISSING_PLAYER */, ngDevMode && `Unable to find the timeline player referenced by ${id}`);\n}\nfunction missingTrigger(phase, name) {\n return new ɵRuntimeError(3302 /* RuntimeErrorCode.MISSING_TRIGGER */, ngDevMode &&\n `Unable to listen on the animation trigger event \"${phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`);\n}\nfunction missingEvent(name) {\n return new ɵRuntimeError(3303 /* RuntimeErrorCode.MISSING_EVENT */, ngDevMode &&\n `Unable to listen on the animation trigger \"${name}\" because the provided event is undefined!`);\n}\nfunction unsupportedTriggerEvent(phase, name) {\n return new ɵRuntimeError(3400 /* RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT */, ngDevMode &&\n `The provided animation trigger event \"${phase}\" for the animation trigger \"${name}\" is not supported!`);\n}\nfunction unregisteredTrigger(name) {\n return new ɵRuntimeError(3401 /* RuntimeErrorCode.UNREGISTERED_TRIGGER */, ngDevMode && `The provided animation trigger \"${name}\" has not been registered!`);\n}\nfunction triggerTransitionsFailed(errors) {\n return new ɵRuntimeError(3402 /* RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED */, ngDevMode &&\n `Unable to process animations due to the following failed trigger transitions\\n ${errors\n .map((err) => err.message)\n .join('\\n')}`);\n}\nfunction triggerParsingFailed(name, errors) {\n return new ɵRuntimeError(3403 /* RuntimeErrorCode.TRIGGER_PARSING_FAILED */, ngDevMode &&\n `Animation parsing for the ${name} trigger have failed:${LINE_START}${errors\n .map((err) => err.message)\n .join(LINE_START)}`);\n}\nfunction transitionFailed(name, errors) {\n return new ɵRuntimeError(3505 /* RuntimeErrorCode.TRANSITION_FAILED */, ngDevMode && `@${name} has failed due to:\\n ${errors.map((err) => err.message).join('\\n- ')}`);\n}\n\n/**\n * Set of all animatable CSS properties\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties\n */\nconst ANIMATABLE_PROP_SET = new Set([\n '-moz-outline-radius',\n '-moz-outline-radius-bottomleft',\n '-moz-outline-radius-bottomright',\n '-moz-outline-radius-topleft',\n '-moz-outline-radius-topright',\n '-ms-grid-columns',\n '-ms-grid-rows',\n '-webkit-line-clamp',\n '-webkit-text-fill-color',\n '-webkit-text-stroke',\n '-webkit-text-stroke-color',\n 'accent-color',\n 'all',\n 'backdrop-filter',\n 'background',\n 'background-color',\n 'background-position',\n 'background-size',\n 'block-size',\n 'border',\n 'border-block-end',\n 'border-block-end-color',\n 'border-block-end-width',\n 'border-block-start',\n 'border-block-start-color',\n 'border-block-start-width',\n 'border-bottom',\n 'border-bottom-color',\n 'border-bottom-left-radius',\n 'border-bottom-right-radius',\n 'border-bottom-width',\n 'border-color',\n 'border-end-end-radius',\n 'border-end-start-radius',\n 'border-image-outset',\n 'border-image-slice',\n 'border-image-width',\n 'border-inline-end',\n 'border-inline-end-color',\n 'border-inline-end-width',\n 'border-inline-start',\n 'border-inline-start-color',\n 'border-inline-start-width',\n 'border-left',\n 'border-left-color',\n 'border-left-width',\n 'border-radius',\n 'border-right',\n 'border-right-color',\n 'border-right-width',\n 'border-start-end-radius',\n 'border-start-start-radius',\n 'border-top',\n 'border-top-color',\n 'border-top-left-radius',\n 'border-top-right-radius',\n 'border-top-width',\n 'border-width',\n 'bottom',\n 'box-shadow',\n 'caret-color',\n 'clip',\n 'clip-path',\n 'color',\n 'column-count',\n 'column-gap',\n 'column-rule',\n 'column-rule-color',\n 'column-rule-width',\n 'column-width',\n 'columns',\n 'filter',\n 'flex',\n 'flex-basis',\n 'flex-grow',\n 'flex-shrink',\n 'font',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-variation-settings',\n 'font-weight',\n 'gap',\n 'grid-column-gap',\n 'grid-gap',\n 'grid-row-gap',\n 'grid-template-columns',\n 'grid-template-rows',\n 'height',\n 'inline-size',\n 'input-security',\n 'inset',\n 'inset-block',\n 'inset-block-end',\n 'inset-block-start',\n 'inset-inline',\n 'inset-inline-end',\n 'inset-inline-start',\n 'left',\n 'letter-spacing',\n 'line-clamp',\n 'line-height',\n 'margin',\n 'margin-block-end',\n 'margin-block-start',\n 'margin-bottom',\n 'margin-inline-end',\n 'margin-inline-start',\n 'margin-left',\n 'margin-right',\n 'margin-top',\n 'mask',\n 'mask-border',\n 'mask-position',\n 'mask-size',\n 'max-block-size',\n 'max-height',\n 'max-inline-size',\n 'max-lines',\n 'max-width',\n 'min-block-size',\n 'min-height',\n 'min-inline-size',\n 'min-width',\n 'object-position',\n 'offset',\n 'offset-anchor',\n 'offset-distance',\n 'offset-path',\n 'offset-position',\n 'offset-rotate',\n 'opacity',\n 'order',\n 'outline',\n 'outline-color',\n 'outline-offset',\n 'outline-width',\n 'padding',\n 'padding-block-end',\n 'padding-block-start',\n 'padding-bottom',\n 'padding-inline-end',\n 'padding-inline-start',\n 'padding-left',\n 'padding-right',\n 'padding-top',\n 'perspective',\n 'perspective-origin',\n 'right',\n 'rotate',\n 'row-gap',\n 'scale',\n 'scroll-margin',\n 'scroll-margin-block',\n 'scroll-margin-block-end',\n 'scroll-margin-block-start',\n 'scroll-margin-bottom',\n 'scroll-margin-inline',\n 'scroll-margin-inline-end',\n 'scroll-margin-inline-start',\n 'scroll-margin-left',\n 'scroll-margin-right',\n 'scroll-margin-top',\n 'scroll-padding',\n 'scroll-padding-block',\n 'scroll-padding-block-end',\n 'scroll-padding-block-start',\n 'scroll-padding-bottom',\n 'scroll-padding-inline',\n 'scroll-padding-inline-end',\n 'scroll-padding-inline-start',\n 'scroll-padding-left',\n 'scroll-padding-right',\n 'scroll-padding-top',\n 'scroll-snap-coordinate',\n 'scroll-snap-destination',\n 'scrollbar-color',\n 'shape-image-threshold',\n 'shape-margin',\n 'shape-outside',\n 'tab-size',\n 'text-decoration',\n 'text-decoration-color',\n 'text-decoration-thickness',\n 'text-emphasis',\n 'text-emphasis-color',\n 'text-indent',\n 'text-shadow',\n 'text-underline-offset',\n 'top',\n 'transform',\n 'transform-origin',\n 'translate',\n 'vertical-align',\n 'visibility',\n 'width',\n 'word-spacing',\n 'z-index',\n 'zoom',\n]);\n\nfunction optimizeGroupPlayer(players) {\n switch (players.length) {\n case 0:\n return new NoopAnimationPlayer();\n case 1:\n return players[0];\n default:\n return new ɵAnimationGroupPlayer(players);\n }\n}\nfunction normalizeKeyframes$1(normalizer, keyframes, preStyles = new Map(), postStyles = new Map()) {\n const errors = [];\n const normalizedKeyframes = [];\n let previousOffset = -1;\n let previousKeyframe = null;\n keyframes.forEach((kf) => {\n const offset = kf.get('offset');\n const isSameOffset = offset == previousOffset;\n const normalizedKeyframe = (isSameOffset && previousKeyframe) || new Map();\n kf.forEach((val, prop) => {\n let normalizedProp = prop;\n let normalizedValue = val;\n if (prop !== 'offset') {\n normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);\n switch (normalizedValue) {\n case ɵPRE_STYLE:\n normalizedValue = preStyles.get(prop);\n break;\n case AUTO_STYLE:\n normalizedValue = postStyles.get(prop);\n break;\n default:\n normalizedValue = normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);\n break;\n }\n }\n normalizedKeyframe.set(normalizedProp, normalizedValue);\n });\n if (!isSameOffset) {\n normalizedKeyframes.push(normalizedKeyframe);\n }\n previousKeyframe = normalizedKeyframe;\n previousOffset = offset;\n });\n if (errors.length) {\n throw animationFailed(errors);\n }\n return normalizedKeyframes;\n}\nfunction listenOnPlayer(player, eventName, event, callback) {\n switch (eventName) {\n case 'start':\n player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));\n break;\n case 'done':\n player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));\n break;\n case 'destroy':\n player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));\n break;\n }\n}\nfunction copyAnimationEvent(e, phaseName, player) {\n const totalTime = player.totalTime;\n const disabled = player.disabled ? true : false;\n const event = makeAnimationEvent(e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName, totalTime == undefined ? e.totalTime : totalTime, disabled);\n const data = e['_data'];\n if (data != null) {\n event['_data'] = data;\n }\n return event;\n}\nfunction makeAnimationEvent(element, triggerName, fromState, toState, phaseName = '', totalTime = 0, disabled) {\n return { element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled };\n}\nfunction getOrSetDefaultValue(map, key, defaultValue) {\n let value = map.get(key);\n if (!value) {\n map.set(key, (value = defaultValue));\n }\n return value;\n}\nfunction parseTimelineCommand(command) {\n const separatorPos = command.indexOf(':');\n const id = command.substring(1, separatorPos);\n const action = command.slice(separatorPos + 1);\n return [id, action];\n}\nconst documentElement = /* @__PURE__ */ (() => typeof document === 'undefined' ? null : document.documentElement)();\nfunction getParentElement(element) {\n const parent = element.parentNode || element.host || null; // consider host to support shadow DOM\n if (parent === documentElement) {\n return null;\n }\n return parent;\n}\nfunction containsVendorPrefix(prop) {\n // Webkit is the only real popular vendor prefix nowadays\n // cc: http://shouldiprefix.com/\n return prop.substring(1, 6) == 'ebkit'; // webkit or Webkit\n}\nlet _CACHED_BODY = null;\nlet _IS_WEBKIT = false;\nfunction validateStyleProperty(prop) {\n if (!_CACHED_BODY) {\n _CACHED_BODY = getBodyNode() || {};\n _IS_WEBKIT = _CACHED_BODY.style ? 'WebkitAppearance' in _CACHED_BODY.style : false;\n }\n let result = true;\n if (_CACHED_BODY.style && !containsVendorPrefix(prop)) {\n result = prop in _CACHED_BODY.style;\n if (!result && _IS_WEBKIT) {\n const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);\n result = camelProp in _CACHED_BODY.style;\n }\n }\n return result;\n}\nfunction validateWebAnimatableStyleProperty(prop) {\n return ANIMATABLE_PROP_SET.has(prop);\n}\nfunction getBodyNode() {\n if (typeof document != 'undefined') {\n return document.body;\n }\n return null;\n}\nfunction containsElement(elm1, elm2) {\n while (elm2) {\n if (elm2 === elm1) {\n return true;\n }\n elm2 = getParentElement(elm2);\n }\n return false;\n}\nfunction invokeQuery(element, selector, multi) {\n if (multi) {\n return Array.from(element.querySelectorAll(selector));\n }\n const elem = element.querySelector(selector);\n return elem ? [elem] : [];\n}\nfunction hypenatePropsKeys(original) {\n const newMap = new Map();\n original.forEach((val, prop) => {\n const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');\n newMap.set(newProp, val);\n });\n return newMap;\n}\n\n/**\n * @publicApi\n *\n * `AnimationDriver` implentation for Noop animations\n */\nclass NoopAnimationDriver {\n /**\n * @returns Whether `prop` is a valid CSS property\n */\n validateStyleProperty(prop) {\n return validateStyleProperty(prop);\n }\n /**\n * @deprecated unused\n */\n matchesElement(_element, _selector) {\n // This method is deprecated and no longer in use so we return false.\n return false;\n }\n /**\n *\n * @returns Whether elm1 contains elm2.\n */\n containsElement(elm1, elm2) {\n return containsElement(elm1, elm2);\n }\n /**\n * @returns Rhe parent of the given element or `null` if the element is the `document`\n */\n getParentElement(element) {\n return getParentElement(element);\n }\n /**\n * @returns The result of the query selector on the element. The array will contain up to 1 item\n * if `multi` is `false`.\n */\n query(element, selector, multi) {\n return invokeQuery(element, selector, multi);\n }\n /**\n * @returns The `defaultValue` or empty string\n */\n computeStyle(element, prop, defaultValue) {\n return defaultValue || '';\n }\n /**\n * @returns An `NoopAnimationPlayer`\n */\n animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {\n return new NoopAnimationPlayer(duration, delay);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: NoopAnimationDriver }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: NoopAnimationDriver, decorators: [{\n type: Injectable\n }] });\n/**\n * @publicApi\n */\nclass AnimationDriver {\n /**\n * @deprecated Use the NoopAnimationDriver class.\n */\n static { this.NOOP = new NoopAnimationDriver(); }\n}\n\nclass AnimationStyleNormalizer {\n}\nclass NoopAnimationStyleNormalizer {\n normalizePropertyName(propertyName, errors) {\n return propertyName;\n }\n normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n return value;\n }\n}\n\nconst ONE_SECOND = 1000;\nconst SUBSTITUTION_EXPR_START = '{{';\nconst SUBSTITUTION_EXPR_END = '}}';\nconst ENTER_CLASSNAME = 'ng-enter';\nconst LEAVE_CLASSNAME = 'ng-leave';\nconst NG_TRIGGER_CLASSNAME = 'ng-trigger';\nconst NG_TRIGGER_SELECTOR = '.ng-trigger';\nconst NG_ANIMATING_CLASSNAME = 'ng-animating';\nconst NG_ANIMATING_SELECTOR = '.ng-animating';\nfunction resolveTimingValue(value) {\n if (typeof value == 'number')\n return value;\n const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);\n if (!matches || matches.length < 2)\n return 0;\n return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n}\nfunction _convertTimeValueToMS(value, unit) {\n switch (unit) {\n case 's':\n return value * ONE_SECOND;\n default: // ms or something else\n return value;\n }\n}\nfunction resolveTiming(timings, errors, allowNegativeValues) {\n return timings.hasOwnProperty('duration')\n ? timings\n : parseTimeExpression(timings, errors, allowNegativeValues);\n}\nfunction parseTimeExpression(exp, errors, allowNegativeValues) {\n const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;\n let duration;\n let delay = 0;\n let easing = '';\n if (typeof exp === 'string') {\n const matches = exp.match(regex);\n if (matches === null) {\n errors.push(invalidTimingValue(exp));\n return { duration: 0, delay: 0, easing: '' };\n }\n duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n const delayMatch = matches[3];\n if (delayMatch != null) {\n delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);\n }\n const easingVal = matches[5];\n if (easingVal) {\n easing = easingVal;\n }\n }\n else {\n duration = exp;\n }\n if (!allowNegativeValues) {\n let containsErrors = false;\n let startIndex = errors.length;\n if (duration < 0) {\n errors.push(negativeStepValue());\n containsErrors = true;\n }\n if (delay < 0) {\n errors.push(negativeDelayValue());\n containsErrors = true;\n }\n if (containsErrors) {\n errors.splice(startIndex, 0, invalidTimingValue(exp));\n }\n }\n return { duration, delay, easing };\n}\nfunction normalizeKeyframes(keyframes) {\n if (!keyframes.length) {\n return [];\n }\n if (keyframes[0] instanceof Map) {\n return keyframes;\n }\n return keyframes.map((kf) => new Map(Object.entries(kf)));\n}\nfunction normalizeStyles(styles) {\n return Array.isArray(styles) ? new Map(...styles) : new Map(styles);\n}\nfunction setStyles(element, styles, formerStyles) {\n styles.forEach((val, prop) => {\n const camelProp = dashCaseToCamelCase(prop);\n if (formerStyles && !formerStyles.has(prop)) {\n formerStyles.set(prop, element.style[camelProp]);\n }\n element.style[camelProp] = val;\n });\n}\nfunction eraseStyles(element, styles) {\n styles.forEach((_, prop) => {\n const camelProp = dashCaseToCamelCase(prop);\n element.style[camelProp] = '';\n });\n}\nfunction normalizeAnimationEntry(steps) {\n if (Array.isArray(steps)) {\n if (steps.length == 1)\n return steps[0];\n return sequence(steps);\n }\n return steps;\n}\nfunction validateStyleParams(value, options, errors) {\n const params = options.params || {};\n const matches = extractStyleParams(value);\n if (matches.length) {\n matches.forEach((varName) => {\n if (!params.hasOwnProperty(varName)) {\n errors.push(invalidStyleParams(varName));\n }\n });\n }\n}\nconst PARAM_REGEX = new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g');\nfunction extractStyleParams(value) {\n let params = [];\n if (typeof value === 'string') {\n let match;\n while ((match = PARAM_REGEX.exec(value))) {\n params.push(match[1]);\n }\n PARAM_REGEX.lastIndex = 0;\n }\n return params;\n}\nfunction interpolateParams(value, params, errors) {\n const original = `${value}`;\n const str = original.replace(PARAM_REGEX, (_, varName) => {\n let localVal = params[varName];\n // this means that the value was never overridden by the data passed in by the user\n if (localVal == null) {\n errors.push(invalidParamValue(varName));\n localVal = '';\n }\n return localVal.toString();\n });\n // we do this to assert that numeric values stay as they are\n return str == original ? value : str;\n}\nconst DASH_CASE_REGEXP = /-+([a-z0-9])/g;\nfunction dashCaseToCamelCase(input) {\n return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());\n}\nfunction camelCaseToDashCase(input) {\n return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n}\nfunction allowPreviousPlayerStylesMerge(duration, delay) {\n return duration === 0 || delay === 0;\n}\nfunction balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles) {\n if (previousStyles.size && keyframes.length) {\n let startingKeyframe = keyframes[0];\n let missingStyleProps = [];\n previousStyles.forEach((val, prop) => {\n if (!startingKeyframe.has(prop)) {\n missingStyleProps.push(prop);\n }\n startingKeyframe.set(prop, val);\n });\n if (missingStyleProps.length) {\n for (let i = 1; i < keyframes.length; i++) {\n let kf = keyframes[i];\n missingStyleProps.forEach((prop) => kf.set(prop, computeStyle(element, prop)));\n }\n }\n }\n return keyframes;\n}\nfunction visitDslNode(visitor, node, context) {\n switch (node.type) {\n case AnimationMetadataType.Trigger:\n return visitor.visitTrigger(node, context);\n case AnimationMetadataType.State:\n return visitor.visitState(node, context);\n case AnimationMetadataType.Transition:\n return visitor.visitTransition(node, context);\n case AnimationMetadataType.Sequence:\n return visitor.visitSequence(node, context);\n case AnimationMetadataType.Group:\n return visitor.visitGroup(node, context);\n case AnimationMetadataType.Animate:\n return visitor.visitAnimate(node, context);\n case AnimationMetadataType.Keyframes:\n return visitor.visitKeyframes(node, context);\n case AnimationMetadataType.Style:\n return visitor.visitStyle(node, context);\n case AnimationMetadataType.Reference:\n return visitor.visitReference(node, context);\n case AnimationMetadataType.AnimateChild:\n return visitor.visitAnimateChild(node, context);\n case AnimationMetadataType.AnimateRef:\n return visitor.visitAnimateRef(node, context);\n case AnimationMetadataType.Query:\n return visitor.visitQuery(node, context);\n case AnimationMetadataType.Stagger:\n return visitor.visitStagger(node, context);\n default:\n throw invalidNodeType(node.type);\n }\n}\nfunction computeStyle(element, prop) {\n return window.getComputedStyle(element)[prop];\n}\n\nconst DIMENSIONAL_PROP_SET = new Set([\n 'width',\n 'height',\n 'minWidth',\n 'minHeight',\n 'maxWidth',\n 'maxHeight',\n 'left',\n 'top',\n 'bottom',\n 'right',\n 'fontSize',\n 'outlineWidth',\n 'outlineOffset',\n 'paddingTop',\n 'paddingLeft',\n 'paddingBottom',\n 'paddingRight',\n 'marginTop',\n 'marginLeft',\n 'marginBottom',\n 'marginRight',\n 'borderRadius',\n 'borderWidth',\n 'borderTopWidth',\n 'borderLeftWidth',\n 'borderRightWidth',\n 'borderBottomWidth',\n 'textIndent',\n 'perspective',\n]);\nclass WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {\n normalizePropertyName(propertyName, errors) {\n return dashCaseToCamelCase(propertyName);\n }\n normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n let unit = '';\n const strVal = value.toString().trim();\n if (DIMENSIONAL_PROP_SET.has(normalizedProperty) && value !== 0 && value !== '0') {\n if (typeof value === 'number') {\n unit = 'px';\n }\n else {\n const valAndSuffixMatch = value.match(/^[+-]?[\\d\\.]+([a-z]*)$/);\n if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {\n errors.push(invalidCssUnitValue(userProvidedProperty, value));\n }\n }\n }\n return strVal + unit;\n }\n}\n\nfunction createListOfWarnings(warnings) {\n const LINE_START = '\\n - ';\n return `${LINE_START}${warnings\n .filter(Boolean)\n .map((warning) => warning)\n .join(LINE_START)}`;\n}\nfunction warnValidation(warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`animation validation warnings:${createListOfWarnings(warnings)}`);\n}\nfunction warnTriggerBuild(name, warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`The animation trigger \"${name}\" has built with the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction warnRegister(warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`Animation built with the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction triggerParsingWarnings(name, warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`Animation parsing for the ${name} trigger presents the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction pushUnrecognizedPropertiesWarning(warnings, props) {\n if (props.length) {\n warnings.push(`The following provided properties are not recognized: ${props.join(', ')}`);\n }\n}\n\nconst ANY_STATE = '*';\nfunction parseTransitionExpr(transitionValue, errors) {\n const expressions = [];\n if (typeof transitionValue == 'string') {\n transitionValue\n .split(/\\s*,\\s*/)\n .forEach((str) => parseInnerTransitionStr(str, expressions, errors));\n }\n else {\n expressions.push(transitionValue);\n }\n return expressions;\n}\nfunction parseInnerTransitionStr(eventStr, expressions, errors) {\n if (eventStr[0] == ':') {\n const result = parseAnimationAlias(eventStr, errors);\n if (typeof result == 'function') {\n expressions.push(result);\n return;\n }\n eventStr = result;\n }\n const match = eventStr.match(/^(\\*|[-\\w]+)\\s*()\\s*(\\*|[-\\w]+)$/);\n if (match == null || match.length < 4) {\n errors.push(invalidExpression(eventStr));\n return expressions;\n }\n const fromState = match[1];\n const separator = match[2];\n const toState = match[3];\n expressions.push(makeLambdaFromStates(fromState, toState));\n const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;\n if (separator[0] == '<' && !isFullAnyStateExpr) {\n expressions.push(makeLambdaFromStates(toState, fromState));\n }\n return;\n}\nfunction parseAnimationAlias(alias, errors) {\n switch (alias) {\n case ':enter':\n return 'void => *';\n case ':leave':\n return '* => void';\n case ':increment':\n return (fromState, toState) => parseFloat(toState) > parseFloat(fromState);\n case ':decrement':\n return (fromState, toState) => parseFloat(toState) < parseFloat(fromState);\n default:\n errors.push(invalidTransitionAlias(alias));\n return '* => *';\n }\n}\n// DO NOT REFACTOR ... keep the follow set instantiations\n// with the values intact (closure compiler for some reason\n// removes follow-up lines that add the values outside of\n// the constructor...\nconst TRUE_BOOLEAN_VALUES = new Set(['true', '1']);\nconst FALSE_BOOLEAN_VALUES = new Set(['false', '0']);\nfunction makeLambdaFromStates(lhs, rhs) {\n const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);\n const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);\n return (fromState, toState) => {\n let lhsMatch = lhs == ANY_STATE || lhs == fromState;\n let rhsMatch = rhs == ANY_STATE || rhs == toState;\n if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {\n lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);\n }\n if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {\n rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);\n }\n return lhsMatch && rhsMatch;\n };\n}\n\nconst SELF_TOKEN = ':self';\nconst SELF_TOKEN_REGEX = new RegExp(`s*${SELF_TOKEN}s*,?`, 'g');\n/*\n * [Validation]\n * The visitor code below will traverse the animation AST generated by the animation verb functions\n * (the output is a tree of objects) and attempt to perform a series of validations on the data. The\n * following corner-cases will be validated:\n *\n * 1. Overlap of animations\n * Given that a CSS property cannot be animated in more than one place at the same time, it's\n * important that this behavior is detected and validated. The way in which this occurs is that\n * each time a style property is examined, a string-map containing the property will be updated with\n * the start and end times for when the property is used within an animation step.\n *\n * If there are two or more parallel animations that are currently running (these are invoked by the\n * group()) on the same element then the validator will throw an error. Since the start/end timing\n * values are collected for each property then if the current animation step is animating the same\n * property and its timing values fall anywhere into the window of time that the property is\n * currently being animated within then this is what causes an error.\n *\n * 2. Timing values\n * The validator will validate to see if a timing value of `duration delay easing` or\n * `durationNumber` is valid or not.\n *\n * (note that upon validation the code below will replace the timing data with an object containing\n * {duration,delay,easing}.\n *\n * 3. Offset Validation\n * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().\n * Offsets within keyframes() are considered valid when:\n *\n * - No offsets are used at all\n * - Each style() entry contains an offset value\n * - Each offset is between 0 and 1\n * - Each offset is greater to or equal than the previous one\n *\n * Otherwise an error will be thrown.\n */\nfunction buildAnimationAst(driver, metadata, errors, warnings) {\n return new AnimationAstBuilderVisitor(driver).build(metadata, errors, warnings);\n}\nconst ROOT_SELECTOR = '';\nclass AnimationAstBuilderVisitor {\n constructor(_driver) {\n this._driver = _driver;\n }\n build(metadata, errors, warnings) {\n const context = new AnimationAstBuilderContext(errors);\n this._resetContextStyleTimingState(context);\n const ast = (visitDslNode(this, normalizeAnimationEntry(metadata), context));\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (context.unsupportedCSSPropertiesFound.size) {\n pushUnrecognizedPropertiesWarning(warnings, [\n ...context.unsupportedCSSPropertiesFound.keys(),\n ]);\n }\n }\n return ast;\n }\n _resetContextStyleTimingState(context) {\n context.currentQuerySelector = ROOT_SELECTOR;\n context.collectedStyles = new Map();\n context.collectedStyles.set(ROOT_SELECTOR, new Map());\n context.currentTime = 0;\n }\n visitTrigger(metadata, context) {\n let queryCount = (context.queryCount = 0);\n let depCount = (context.depCount = 0);\n const states = [];\n const transitions = [];\n if (metadata.name.charAt(0) == '@') {\n context.errors.push(invalidTrigger());\n }\n metadata.definitions.forEach((def) => {\n this._resetContextStyleTimingState(context);\n if (def.type == AnimationMetadataType.State) {\n const stateDef = def;\n const name = stateDef.name;\n name\n .toString()\n .split(/\\s*,\\s*/)\n .forEach((n) => {\n stateDef.name = n;\n states.push(this.visitState(stateDef, context));\n });\n stateDef.name = name;\n }\n else if (def.type == AnimationMetadataType.Transition) {\n const transition = this.visitTransition(def, context);\n queryCount += transition.queryCount;\n depCount += transition.depCount;\n transitions.push(transition);\n }\n else {\n context.errors.push(invalidDefinition());\n }\n });\n return {\n type: AnimationMetadataType.Trigger,\n name: metadata.name,\n states,\n transitions,\n queryCount,\n depCount,\n options: null,\n };\n }\n visitState(metadata, context) {\n const styleAst = this.visitStyle(metadata.styles, context);\n const astParams = (metadata.options && metadata.options.params) || null;\n if (styleAst.containsDynamicStyles) {\n const missingSubs = new Set();\n const params = astParams || {};\n styleAst.styles.forEach((style) => {\n if (style instanceof Map) {\n style.forEach((value) => {\n extractStyleParams(value).forEach((sub) => {\n if (!params.hasOwnProperty(sub)) {\n missingSubs.add(sub);\n }\n });\n });\n }\n });\n if (missingSubs.size) {\n context.errors.push(invalidState(metadata.name, [...missingSubs.values()]));\n }\n }\n return {\n type: AnimationMetadataType.State,\n name: metadata.name,\n style: styleAst,\n options: astParams ? { params: astParams } : null,\n };\n }\n visitTransition(metadata, context) {\n context.queryCount = 0;\n context.depCount = 0;\n const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n const matchers = parseTransitionExpr(metadata.expr, context.errors);\n return {\n type: AnimationMetadataType.Transition,\n matchers,\n animation,\n queryCount: context.queryCount,\n depCount: context.depCount,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitSequence(metadata, context) {\n return {\n type: AnimationMetadataType.Sequence,\n steps: metadata.steps.map((s) => visitDslNode(this, s, context)),\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitGroup(metadata, context) {\n const currentTime = context.currentTime;\n let furthestTime = 0;\n const steps = metadata.steps.map((step) => {\n context.currentTime = currentTime;\n const innerAst = visitDslNode(this, step, context);\n furthestTime = Math.max(furthestTime, context.currentTime);\n return innerAst;\n });\n context.currentTime = furthestTime;\n return {\n type: AnimationMetadataType.Group,\n steps,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitAnimate(metadata, context) {\n const timingAst = constructTimingAst(metadata.timings, context.errors);\n context.currentAnimateTimings = timingAst;\n let styleAst;\n let styleMetadata = metadata.styles\n ? metadata.styles\n : style({});\n if (styleMetadata.type == AnimationMetadataType.Keyframes) {\n styleAst = this.visitKeyframes(styleMetadata, context);\n }\n else {\n let styleMetadata = metadata.styles;\n let isEmpty = false;\n if (!styleMetadata) {\n isEmpty = true;\n const newStyleData = {};\n if (timingAst.easing) {\n newStyleData['easing'] = timingAst.easing;\n }\n styleMetadata = style(newStyleData);\n }\n context.currentTime += timingAst.duration + timingAst.delay;\n const _styleAst = this.visitStyle(styleMetadata, context);\n _styleAst.isEmptyStep = isEmpty;\n styleAst = _styleAst;\n }\n context.currentAnimateTimings = null;\n return {\n type: AnimationMetadataType.Animate,\n timings: timingAst,\n style: styleAst,\n options: null,\n };\n }\n visitStyle(metadata, context) {\n const ast = this._makeStyleAst(metadata, context);\n this._validateStyleAst(ast, context);\n return ast;\n }\n _makeStyleAst(metadata, context) {\n const styles = [];\n const metadataStyles = Array.isArray(metadata.styles) ? metadata.styles : [metadata.styles];\n for (let styleTuple of metadataStyles) {\n if (typeof styleTuple === 'string') {\n if (styleTuple === AUTO_STYLE) {\n styles.push(styleTuple);\n }\n else {\n context.errors.push(invalidStyleValue(styleTuple));\n }\n }\n else {\n styles.push(new Map(Object.entries(styleTuple)));\n }\n }\n let containsDynamicStyles = false;\n let collectedEasing = null;\n styles.forEach((styleData) => {\n if (styleData instanceof Map) {\n if (styleData.has('easing')) {\n collectedEasing = styleData.get('easing');\n styleData.delete('easing');\n }\n if (!containsDynamicStyles) {\n for (let value of styleData.values()) {\n if (value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {\n containsDynamicStyles = true;\n break;\n }\n }\n }\n }\n });\n return {\n type: AnimationMetadataType.Style,\n styles,\n easing: collectedEasing,\n offset: metadata.offset,\n containsDynamicStyles,\n options: null,\n };\n }\n _validateStyleAst(ast, context) {\n const timings = context.currentAnimateTimings;\n let endTime = context.currentTime;\n let startTime = context.currentTime;\n if (timings && startTime > 0) {\n startTime -= timings.duration + timings.delay;\n }\n ast.styles.forEach((tuple) => {\n if (typeof tuple === 'string')\n return;\n tuple.forEach((value, prop) => {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._driver.validateStyleProperty(prop)) {\n tuple.delete(prop);\n context.unsupportedCSSPropertiesFound.add(prop);\n return;\n }\n }\n // This is guaranteed to have a defined Map at this querySelector location making it\n // safe to add the assertion here. It is set as a default empty map in prior methods.\n const collectedStyles = context.collectedStyles.get(context.currentQuerySelector);\n const collectedEntry = collectedStyles.get(prop);\n let updateCollectedStyle = true;\n if (collectedEntry) {\n if (startTime != endTime &&\n startTime >= collectedEntry.startTime &&\n endTime <= collectedEntry.endTime) {\n context.errors.push(invalidParallelAnimation(prop, collectedEntry.startTime, collectedEntry.endTime, startTime, endTime));\n updateCollectedStyle = false;\n }\n // we always choose the smaller start time value since we\n // want to have a record of the entire animation window where\n // the style property is being animated in between\n startTime = collectedEntry.startTime;\n }\n if (updateCollectedStyle) {\n collectedStyles.set(prop, { startTime, endTime });\n }\n if (context.options) {\n validateStyleParams(value, context.options, context.errors);\n }\n });\n });\n }\n visitKeyframes(metadata, context) {\n const ast = { type: AnimationMetadataType.Keyframes, styles: [], options: null };\n if (!context.currentAnimateTimings) {\n context.errors.push(invalidKeyframes());\n return ast;\n }\n const MAX_KEYFRAME_OFFSET = 1;\n let totalKeyframesWithOffsets = 0;\n const offsets = [];\n let offsetsOutOfOrder = false;\n let keyframesOutOfRange = false;\n let previousOffset = 0;\n const keyframes = metadata.steps.map((styles) => {\n const style = this._makeStyleAst(styles, context);\n let offsetVal = style.offset != null ? style.offset : consumeOffset(style.styles);\n let offset = 0;\n if (offsetVal != null) {\n totalKeyframesWithOffsets++;\n offset = style.offset = offsetVal;\n }\n keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;\n offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;\n previousOffset = offset;\n offsets.push(offset);\n return style;\n });\n if (keyframesOutOfRange) {\n context.errors.push(invalidOffset());\n }\n if (offsetsOutOfOrder) {\n context.errors.push(keyframeOffsetsOutOfOrder());\n }\n const length = metadata.steps.length;\n let generatedOffset = 0;\n if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {\n context.errors.push(keyframesMissingOffsets());\n }\n else if (totalKeyframesWithOffsets == 0) {\n generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);\n }\n const limit = length - 1;\n const currentTime = context.currentTime;\n const currentAnimateTimings = context.currentAnimateTimings;\n const animateDuration = currentAnimateTimings.duration;\n keyframes.forEach((kf, i) => {\n const offset = generatedOffset > 0 ? (i == limit ? 1 : generatedOffset * i) : offsets[i];\n const durationUpToThisFrame = offset * animateDuration;\n context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;\n currentAnimateTimings.duration = durationUpToThisFrame;\n this._validateStyleAst(kf, context);\n kf.offset = offset;\n ast.styles.push(kf);\n });\n return ast;\n }\n visitReference(metadata, context) {\n return {\n type: AnimationMetadataType.Reference,\n animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitAnimateChild(metadata, context) {\n context.depCount++;\n return {\n type: AnimationMetadataType.AnimateChild,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitAnimateRef(metadata, context) {\n return {\n type: AnimationMetadataType.AnimateRef,\n animation: this.visitReference(metadata.animation, context),\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitQuery(metadata, context) {\n const parentSelector = context.currentQuerySelector;\n const options = (metadata.options || {});\n context.queryCount++;\n context.currentQuery = metadata;\n const [selector, includeSelf] = normalizeSelector(metadata.selector);\n context.currentQuerySelector = parentSelector.length\n ? parentSelector + ' ' + selector\n : selector;\n getOrSetDefaultValue(context.collectedStyles, context.currentQuerySelector, new Map());\n const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n context.currentQuery = null;\n context.currentQuerySelector = parentSelector;\n return {\n type: AnimationMetadataType.Query,\n selector,\n limit: options.limit || 0,\n optional: !!options.optional,\n includeSelf,\n animation,\n originalSelector: metadata.selector,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitStagger(metadata, context) {\n if (!context.currentQuery) {\n context.errors.push(invalidStagger());\n }\n const timings = metadata.timings === 'full'\n ? { duration: 0, delay: 0, easing: 'full' }\n : resolveTiming(metadata.timings, context.errors, true);\n return {\n type: AnimationMetadataType.Stagger,\n animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n timings,\n options: null,\n };\n }\n}\nfunction normalizeSelector(selector) {\n const hasAmpersand = selector.split(/\\s*,\\s*/).find((token) => token == SELF_TOKEN)\n ? true\n : false;\n if (hasAmpersand) {\n selector = selector.replace(SELF_TOKEN_REGEX, '');\n }\n // Note: the :enter and :leave aren't normalized here since those\n // selectors are filled in at runtime during timeline building\n selector = selector\n .replace(/@\\*/g, NG_TRIGGER_SELECTOR)\n .replace(/@\\w+/g, (match) => NG_TRIGGER_SELECTOR + '-' + match.slice(1))\n .replace(/:animating/g, NG_ANIMATING_SELECTOR);\n return [selector, hasAmpersand];\n}\nfunction normalizeParams(obj) {\n return obj ? { ...obj } : null;\n}\nclass AnimationAstBuilderContext {\n constructor(errors) {\n this.errors = errors;\n this.queryCount = 0;\n this.depCount = 0;\n this.currentTransition = null;\n this.currentQuery = null;\n this.currentQuerySelector = null;\n this.currentAnimateTimings = null;\n this.currentTime = 0;\n this.collectedStyles = new Map();\n this.options = null;\n this.unsupportedCSSPropertiesFound = new Set();\n }\n}\nfunction consumeOffset(styles) {\n if (typeof styles == 'string')\n return null;\n let offset = null;\n if (Array.isArray(styles)) {\n styles.forEach((styleTuple) => {\n if (styleTuple instanceof Map && styleTuple.has('offset')) {\n const obj = styleTuple;\n offset = parseFloat(obj.get('offset'));\n obj.delete('offset');\n }\n });\n }\n else if (styles instanceof Map && styles.has('offset')) {\n const obj = styles;\n offset = parseFloat(obj.get('offset'));\n obj.delete('offset');\n }\n return offset;\n}\nfunction constructTimingAst(value, errors) {\n if (value.hasOwnProperty('duration')) {\n return value;\n }\n if (typeof value == 'number') {\n const duration = resolveTiming(value, errors).duration;\n return makeTimingAst(duration, 0, '');\n }\n const strValue = value;\n const isDynamic = strValue.split(/\\s+/).some((v) => v.charAt(0) == '{' && v.charAt(1) == '{');\n if (isDynamic) {\n const ast = makeTimingAst(0, 0, '');\n ast.dynamic = true;\n ast.strValue = strValue;\n return ast;\n }\n const timings = resolveTiming(strValue, errors);\n return makeTimingAst(timings.duration, timings.delay, timings.easing);\n}\nfunction normalizeAnimationOptions(options) {\n if (options) {\n options = { ...options };\n if (options['params']) {\n options['params'] = normalizeParams(options['params']);\n }\n }\n else {\n options = {};\n }\n return options;\n}\nfunction makeTimingAst(duration, delay, easing) {\n return { duration, delay, easing };\n}\n\nfunction createTimelineInstruction(element, keyframes, preStyleProps, postStyleProps, duration, delay, easing = null, subTimeline = false) {\n return {\n type: 1 /* AnimationTransitionInstructionType.TimelineAnimation */,\n element,\n keyframes,\n preStyleProps,\n postStyleProps,\n duration,\n delay,\n totalTime: duration + delay,\n easing,\n subTimeline,\n };\n}\n\nclass ElementInstructionMap {\n constructor() {\n this._map = new Map();\n }\n get(element) {\n return this._map.get(element) || [];\n }\n append(element, instructions) {\n let existingInstructions = this._map.get(element);\n if (!existingInstructions) {\n this._map.set(element, (existingInstructions = []));\n }\n existingInstructions.push(...instructions);\n }\n has(element) {\n return this._map.has(element);\n }\n clear() {\n this._map.clear();\n }\n}\n\nconst ONE_FRAME_IN_MILLISECONDS = 1;\nconst ENTER_TOKEN = ':enter';\nconst ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g');\nconst LEAVE_TOKEN = ':leave';\nconst LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');\n/*\n * The code within this file aims to generate web-animations-compatible keyframes from Angular's\n * animation DSL code.\n *\n * The code below will be converted from:\n *\n * ```\n * sequence([\n * style({ opacity: 0 }),\n * animate(1000, style({ opacity: 0 }))\n * ])\n * ```\n *\n * To:\n * ```\n * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]\n * duration = 1000\n * delay = 0\n * easing = ''\n * ```\n *\n * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a\n * combination of AST traversal and merge-sort-like algorithms are used.\n *\n * [AST Traversal]\n * Each of the animation verbs, when executed, will return an string-map object representing what\n * type of action it is (style, animate, group, etc...) and the data associated with it. This means\n * that when functional composition mix of these functions is evaluated (like in the example above)\n * then it will end up producing a tree of objects representing the animation itself.\n *\n * When this animation object tree is processed by the visitor code below it will visit each of the\n * verb statements within the visitor. And during each visit it will build the context of the\n * animation keyframes by interacting with the `TimelineBuilder`.\n *\n * [TimelineBuilder]\n * This class is responsible for tracking the styles and building a series of keyframe objects for a\n * timeline between a start and end time. The builder starts off with an initial timeline and each\n * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a\n * `sequence()` then it will generate a sub timeline for each step as well as a new one after\n * they are complete.\n *\n * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub\n * timeline was created (based on one of the cases above) then the parent timeline will attempt to\n * merge the styles used within the sub timelines into itself (only with group() this will happen).\n * This happens with a merge operation (much like how the merge works in mergeSort) and it will only\n * copy the most recently used styles from the sub timelines into the parent timeline. This ensures\n * that if the styles are used later on in another phase of the animation then they will be the most\n * up-to-date values.\n *\n * [How Missing Styles Are Updated]\n * Each timeline has a `backFill` property which is responsible for filling in new styles into\n * already processed keyframes if a new style shows up later within the animation sequence.\n *\n * ```\n * sequence([\n * style({ width: 0 }),\n * animate(1000, style({ width: 100 })),\n * animate(1000, style({ width: 200 })),\n * animate(1000, style({ width: 300 }))\n * animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere\n * else\n * ])\n * ```\n *\n * What is happening here is that the `height` value is added later in the sequence, but is missing\n * from all previous animation steps. Therefore when a keyframe is created it would also be missing\n * from all previous keyframes up until where it is first used. For the timeline keyframe generation\n * to properly fill in the style it will place the previous value (the value from the parent\n * timeline) or a default value of `*` into the backFill map.\n *\n * When a sub-timeline is created it will have its own backFill property. This is done so that\n * styles present within the sub-timeline do not accidentally seep into the previous/future timeline\n * keyframes\n *\n * [Validation]\n * The code in this file is not responsible for validation. That functionality happens with within\n * the `AnimationValidatorVisitor` code.\n */\nfunction buildAnimationTimelines(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles = new Map(), finalStyles = new Map(), options, subInstructions, errors = []) {\n return new AnimationTimelineBuilderVisitor().buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors);\n}\nclass AnimationTimelineBuilderVisitor {\n buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors = []) {\n subInstructions = subInstructions || new ElementInstructionMap();\n const context = new AnimationTimelineContext(driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);\n context.options = options;\n const delay = options.delay ? resolveTimingValue(options.delay) : 0;\n context.currentTimeline.delayNextStep(delay);\n context.currentTimeline.setStyles([startingStyles], null, context.errors, options);\n visitDslNode(this, ast, context);\n // this checks to see if an actual animation happened\n const timelines = context.timelines.filter((timeline) => timeline.containsAnimation());\n // note: we just want to apply the final styles for the rootElement, so we do not\n // just apply the styles to the last timeline but the last timeline which\n // element is the root one (basically `*`-styles are replaced with the actual\n // state style values only for the root element)\n if (timelines.length && finalStyles.size) {\n let lastRootTimeline;\n for (let i = timelines.length - 1; i >= 0; i--) {\n const timeline = timelines[i];\n if (timeline.element === rootElement) {\n lastRootTimeline = timeline;\n break;\n }\n }\n if (lastRootTimeline && !lastRootTimeline.allowOnlyTimelineStyles()) {\n lastRootTimeline.setStyles([finalStyles], null, context.errors, options);\n }\n }\n return timelines.length\n ? timelines.map((timeline) => timeline.buildKeyframes())\n : [createTimelineInstruction(rootElement, [], [], [], 0, delay, '', false)];\n }\n visitTrigger(ast, context) {\n // these values are not visited in this AST\n }\n visitState(ast, context) {\n // these values are not visited in this AST\n }\n visitTransition(ast, context) {\n // these values are not visited in this AST\n }\n visitAnimateChild(ast, context) {\n const elementInstructions = context.subInstructions.get(context.element);\n if (elementInstructions) {\n const innerContext = context.createSubContext(ast.options);\n const startTime = context.currentTimeline.currentTime;\n const endTime = this._visitSubInstructions(elementInstructions, innerContext, innerContext.options);\n if (startTime != endTime) {\n // we do this on the upper context because we created a sub context for\n // the sub child animations\n context.transformIntoNewTimeline(endTime);\n }\n }\n context.previousNode = ast;\n }\n visitAnimateRef(ast, context) {\n const innerContext = context.createSubContext(ast.options);\n innerContext.transformIntoNewTimeline();\n this._applyAnimationRefDelays([ast.options, ast.animation.options], context, innerContext);\n this.visitReference(ast.animation, innerContext);\n context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);\n context.previousNode = ast;\n }\n _applyAnimationRefDelays(animationsRefsOptions, context, innerContext) {\n for (const animationRefOptions of animationsRefsOptions) {\n const animationDelay = animationRefOptions?.delay;\n if (animationDelay) {\n const animationDelayValue = typeof animationDelay === 'number'\n ? animationDelay\n : resolveTimingValue(interpolateParams(animationDelay, animationRefOptions?.params ?? {}, context.errors));\n innerContext.delayNextStep(animationDelayValue);\n }\n }\n }\n _visitSubInstructions(instructions, context, options) {\n const startTime = context.currentTimeline.currentTime;\n let furthestTime = startTime;\n // this is a special-case for when a user wants to skip a sub\n // animation from being fired entirely.\n const duration = options.duration != null ? resolveTimingValue(options.duration) : null;\n const delay = options.delay != null ? resolveTimingValue(options.delay) : null;\n if (duration !== 0) {\n instructions.forEach((instruction) => {\n const instructionTimings = context.appendInstructionToTimeline(instruction, duration, delay);\n furthestTime = Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);\n });\n }\n return furthestTime;\n }\n visitReference(ast, context) {\n context.updateOptions(ast.options, true);\n visitDslNode(this, ast.animation, context);\n context.previousNode = ast;\n }\n visitSequence(ast, context) {\n const subContextCount = context.subContextCount;\n let ctx = context;\n const options = ast.options;\n if (options && (options.params || options.delay)) {\n ctx = context.createSubContext(options);\n ctx.transformIntoNewTimeline();\n if (options.delay != null) {\n if (ctx.previousNode.type == AnimationMetadataType.Style) {\n ctx.currentTimeline.snapshotCurrentStyles();\n ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n }\n const delay = resolveTimingValue(options.delay);\n ctx.delayNextStep(delay);\n }\n }\n if (ast.steps.length) {\n ast.steps.forEach((s) => visitDslNode(this, s, ctx));\n // this is here just in case the inner steps only contain or end with a style() call\n ctx.currentTimeline.applyStylesToKeyframe();\n // this means that some animation function within the sequence\n // ended up creating a sub timeline (which means the current\n // timeline cannot overlap with the contents of the sequence)\n if (ctx.subContextCount > subContextCount) {\n ctx.transformIntoNewTimeline();\n }\n }\n context.previousNode = ast;\n }\n visitGroup(ast, context) {\n const innerTimelines = [];\n let furthestTime = context.currentTimeline.currentTime;\n const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;\n ast.steps.forEach((s) => {\n const innerContext = context.createSubContext(ast.options);\n if (delay) {\n innerContext.delayNextStep(delay);\n }\n visitDslNode(this, s, innerContext);\n furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);\n innerTimelines.push(innerContext.currentTimeline);\n });\n // this operation is run after the AST loop because otherwise\n // if the parent timeline's collected styles were updated then\n // it would pass in invalid data into the new-to-be forked items\n innerTimelines.forEach((timeline) => context.currentTimeline.mergeTimelineCollectedStyles(timeline));\n context.transformIntoNewTimeline(furthestTime);\n context.previousNode = ast;\n }\n _visitTiming(ast, context) {\n if (ast.dynamic) {\n const strValue = ast.strValue;\n const timingValue = context.params\n ? interpolateParams(strValue, context.params, context.errors)\n : strValue;\n return resolveTiming(timingValue, context.errors);\n }\n else {\n return { duration: ast.duration, delay: ast.delay, easing: ast.easing };\n }\n }\n visitAnimate(ast, context) {\n const timings = (context.currentAnimateTimings = this._visitTiming(ast.timings, context));\n const timeline = context.currentTimeline;\n if (timings.delay) {\n context.incrementTime(timings.delay);\n timeline.snapshotCurrentStyles();\n }\n const style = ast.style;\n if (style.type == AnimationMetadataType.Keyframes) {\n this.visitKeyframes(style, context);\n }\n else {\n context.incrementTime(timings.duration);\n this.visitStyle(style, context);\n timeline.applyStylesToKeyframe();\n }\n context.currentAnimateTimings = null;\n context.previousNode = ast;\n }\n visitStyle(ast, context) {\n const timeline = context.currentTimeline;\n const timings = context.currentAnimateTimings;\n // this is a special case for when a style() call\n // directly follows an animate() call (but not inside of an animate() call)\n if (!timings && timeline.hasCurrentStyleProperties()) {\n timeline.forwardFrame();\n }\n const easing = (timings && timings.easing) || ast.easing;\n if (ast.isEmptyStep) {\n timeline.applyEmptyStep(easing);\n }\n else {\n timeline.setStyles(ast.styles, easing, context.errors, context.options);\n }\n context.previousNode = ast;\n }\n visitKeyframes(ast, context) {\n const currentAnimateTimings = context.currentAnimateTimings;\n const startTime = context.currentTimeline.duration;\n const duration = currentAnimateTimings.duration;\n const innerContext = context.createSubContext();\n const innerTimeline = innerContext.currentTimeline;\n innerTimeline.easing = currentAnimateTimings.easing;\n ast.styles.forEach((step) => {\n const offset = step.offset || 0;\n innerTimeline.forwardTime(offset * duration);\n innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);\n innerTimeline.applyStylesToKeyframe();\n });\n // this will ensure that the parent timeline gets all the styles from\n // the child even if the new timeline below is not used\n context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);\n // we do this because the window between this timeline and the sub timeline\n // should ensure that the styles within are exactly the same as they were before\n context.transformIntoNewTimeline(startTime + duration);\n context.previousNode = ast;\n }\n visitQuery(ast, context) {\n // in the event that the first step before this is a style step we need\n // to ensure the styles are applied before the children are animated\n const startTime = context.currentTimeline.currentTime;\n const options = (ast.options || {});\n const delay = options.delay ? resolveTimingValue(options.delay) : 0;\n if (delay &&\n (context.previousNode.type === AnimationMetadataType.Style ||\n (startTime == 0 && context.currentTimeline.hasCurrentStyleProperties()))) {\n context.currentTimeline.snapshotCurrentStyles();\n context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n }\n let furthestTime = startTime;\n const elms = context.invokeQuery(ast.selector, ast.originalSelector, ast.limit, ast.includeSelf, options.optional ? true : false, context.errors);\n context.currentQueryTotal = elms.length;\n let sameElementTimeline = null;\n elms.forEach((element, i) => {\n context.currentQueryIndex = i;\n const innerContext = context.createSubContext(ast.options, element);\n if (delay) {\n innerContext.delayNextStep(delay);\n }\n if (element === context.element) {\n sameElementTimeline = innerContext.currentTimeline;\n }\n visitDslNode(this, ast.animation, innerContext);\n // this is here just incase the inner steps only contain or end\n // with a style() call (which is here to signal that this is a preparatory\n // call to style an element before it is animated again)\n innerContext.currentTimeline.applyStylesToKeyframe();\n const endTime = innerContext.currentTimeline.currentTime;\n furthestTime = Math.max(furthestTime, endTime);\n });\n context.currentQueryIndex = 0;\n context.currentQueryTotal = 0;\n context.transformIntoNewTimeline(furthestTime);\n if (sameElementTimeline) {\n context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);\n context.currentTimeline.snapshotCurrentStyles();\n }\n context.previousNode = ast;\n }\n visitStagger(ast, context) {\n const parentContext = context.parentContext;\n const tl = context.currentTimeline;\n const timings = ast.timings;\n const duration = Math.abs(timings.duration);\n const maxTime = duration * (context.currentQueryTotal - 1);\n let delay = duration * context.currentQueryIndex;\n let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;\n switch (staggerTransformer) {\n case 'reverse':\n delay = maxTime - delay;\n break;\n case 'full':\n delay = parentContext.currentStaggerTime;\n break;\n }\n const timeline = context.currentTimeline;\n if (delay) {\n timeline.delayNextStep(delay);\n }\n const startingTime = timeline.currentTime;\n visitDslNode(this, ast.animation, context);\n context.previousNode = ast;\n // time = duration + delay\n // the reason why this computation is so complex is because\n // the inner timeline may either have a delay value or a stretched\n // keyframe depending on if a subtimeline is not used or is used.\n parentContext.currentStaggerTime =\n tl.currentTime - startingTime + (tl.startTime - parentContext.currentTimeline.startTime);\n }\n}\nconst DEFAULT_NOOP_PREVIOUS_NODE = {};\nclass AnimationTimelineContext {\n constructor(_driver, element, subInstructions, _enterClassName, _leaveClassName, errors, timelines, initialTimeline) {\n this._driver = _driver;\n this.element = element;\n this.subInstructions = subInstructions;\n this._enterClassName = _enterClassName;\n this._leaveClassName = _leaveClassName;\n this.errors = errors;\n this.timelines = timelines;\n this.parentContext = null;\n this.currentAnimateTimings = null;\n this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n this.subContextCount = 0;\n this.options = {};\n this.currentQueryIndex = 0;\n this.currentQueryTotal = 0;\n this.currentStaggerTime = 0;\n this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);\n timelines.push(this.currentTimeline);\n }\n get params() {\n return this.options.params;\n }\n updateOptions(options, skipIfExists) {\n if (!options)\n return;\n const newOptions = options;\n let optionsToUpdate = this.options;\n // NOTE: this will get patched up when other animation methods support duration overrides\n if (newOptions.duration != null) {\n optionsToUpdate.duration = resolveTimingValue(newOptions.duration);\n }\n if (newOptions.delay != null) {\n optionsToUpdate.delay = resolveTimingValue(newOptions.delay);\n }\n const newParams = newOptions.params;\n if (newParams) {\n let paramsToUpdate = optionsToUpdate.params;\n if (!paramsToUpdate) {\n paramsToUpdate = this.options.params = {};\n }\n Object.keys(newParams).forEach((name) => {\n if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {\n paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);\n }\n });\n }\n }\n _copyOptions() {\n const options = {};\n if (this.options) {\n const oldParams = this.options.params;\n if (oldParams) {\n const params = (options['params'] = {});\n Object.keys(oldParams).forEach((name) => {\n params[name] = oldParams[name];\n });\n }\n }\n return options;\n }\n createSubContext(options = null, element, newTime) {\n const target = element || this.element;\n const context = new AnimationTimelineContext(this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName, this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));\n context.previousNode = this.previousNode;\n context.currentAnimateTimings = this.currentAnimateTimings;\n context.options = this._copyOptions();\n context.updateOptions(options);\n context.currentQueryIndex = this.currentQueryIndex;\n context.currentQueryTotal = this.currentQueryTotal;\n context.parentContext = this;\n this.subContextCount++;\n return context;\n }\n transformIntoNewTimeline(newTime) {\n this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n this.currentTimeline = this.currentTimeline.fork(this.element, newTime);\n this.timelines.push(this.currentTimeline);\n return this.currentTimeline;\n }\n appendInstructionToTimeline(instruction, duration, delay) {\n const updatedTimings = {\n duration: duration != null ? duration : instruction.duration,\n delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,\n easing: '',\n };\n const builder = new SubTimelineBuilder(this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps, instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);\n this.timelines.push(builder);\n return updatedTimings;\n }\n incrementTime(time) {\n this.currentTimeline.forwardTime(this.currentTimeline.duration + time);\n }\n delayNextStep(delay) {\n // negative delays are not yet supported\n if (delay > 0) {\n this.currentTimeline.delayNextStep(delay);\n }\n }\n invokeQuery(selector, originalSelector, limit, includeSelf, optional, errors) {\n let results = [];\n if (includeSelf) {\n results.push(this.element);\n }\n if (selector.length > 0) {\n // only if :self is used then the selector can be empty\n selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);\n selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);\n const multi = limit != 1;\n let elements = this._driver.query(this.element, selector, multi);\n if (limit !== 0) {\n elements =\n limit < 0\n ? elements.slice(elements.length + limit, elements.length)\n : elements.slice(0, limit);\n }\n results.push(...elements);\n }\n if (!optional && results.length == 0) {\n errors.push(invalidQuery(originalSelector));\n }\n return results;\n }\n}\nclass TimelineBuilder {\n constructor(_driver, element, startTime, _elementTimelineStylesLookup) {\n this._driver = _driver;\n this.element = element;\n this.startTime = startTime;\n this._elementTimelineStylesLookup = _elementTimelineStylesLookup;\n this.duration = 0;\n this.easing = null;\n this._previousKeyframe = new Map();\n this._currentKeyframe = new Map();\n this._keyframes = new Map();\n this._styleSummary = new Map();\n this._localTimelineStyles = new Map();\n this._pendingStyles = new Map();\n this._backFill = new Map();\n this._currentEmptyStepKeyframe = null;\n if (!this._elementTimelineStylesLookup) {\n this._elementTimelineStylesLookup = new Map();\n }\n this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element);\n if (!this._globalTimelineStyles) {\n this._globalTimelineStyles = this._localTimelineStyles;\n this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);\n }\n this._loadKeyframe();\n }\n containsAnimation() {\n switch (this._keyframes.size) {\n case 0:\n return false;\n case 1:\n return this.hasCurrentStyleProperties();\n default:\n return true;\n }\n }\n hasCurrentStyleProperties() {\n return this._currentKeyframe.size > 0;\n }\n get currentTime() {\n return this.startTime + this.duration;\n }\n delayNextStep(delay) {\n // in the event that a style() step is placed right before a stagger()\n // and that style() step is the very first style() value in the animation\n // then we need to make a copy of the keyframe [0, copy, 1] so that the delay\n // properly applies the style() values to work with the stagger...\n const hasPreStyleStep = this._keyframes.size === 1 && this._pendingStyles.size;\n if (this.duration || hasPreStyleStep) {\n this.forwardTime(this.currentTime + delay);\n if (hasPreStyleStep) {\n this.snapshotCurrentStyles();\n }\n }\n else {\n this.startTime += delay;\n }\n }\n fork(element, currentTime) {\n this.applyStylesToKeyframe();\n return new TimelineBuilder(this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);\n }\n _loadKeyframe() {\n if (this._currentKeyframe) {\n this._previousKeyframe = this._currentKeyframe;\n }\n this._currentKeyframe = this._keyframes.get(this.duration);\n if (!this._currentKeyframe) {\n this._currentKeyframe = new Map();\n this._keyframes.set(this.duration, this._currentKeyframe);\n }\n }\n forwardFrame() {\n this.duration += ONE_FRAME_IN_MILLISECONDS;\n this._loadKeyframe();\n }\n forwardTime(time) {\n this.applyStylesToKeyframe();\n this.duration = time;\n this._loadKeyframe();\n }\n _updateStyle(prop, value) {\n this._localTimelineStyles.set(prop, value);\n this._globalTimelineStyles.set(prop, value);\n this._styleSummary.set(prop, { time: this.currentTime, value });\n }\n allowOnlyTimelineStyles() {\n return this._currentEmptyStepKeyframe !== this._currentKeyframe;\n }\n applyEmptyStep(easing) {\n if (easing) {\n this._previousKeyframe.set('easing', easing);\n }\n // special case for animate(duration):\n // all missing styles are filled with a `*` value then\n // if any destination styles are filled in later on the same\n // keyframe then they will override the overridden styles\n // We use `_globalTimelineStyles` here because there may be\n // styles in previous keyframes that are not present in this timeline\n for (let [prop, value] of this._globalTimelineStyles) {\n this._backFill.set(prop, value || AUTO_STYLE);\n this._currentKeyframe.set(prop, AUTO_STYLE);\n }\n this._currentEmptyStepKeyframe = this._currentKeyframe;\n }\n setStyles(input, easing, errors, options) {\n if (easing) {\n this._previousKeyframe.set('easing', easing);\n }\n const params = (options && options.params) || {};\n const styles = flattenStyles(input, this._globalTimelineStyles);\n for (let [prop, value] of styles) {\n const val = interpolateParams(value, params, errors);\n this._pendingStyles.set(prop, val);\n if (!this._localTimelineStyles.has(prop)) {\n this._backFill.set(prop, this._globalTimelineStyles.get(prop) ?? AUTO_STYLE);\n }\n this._updateStyle(prop, val);\n }\n }\n applyStylesToKeyframe() {\n if (this._pendingStyles.size == 0)\n return;\n this._pendingStyles.forEach((val, prop) => {\n this._currentKeyframe.set(prop, val);\n });\n this._pendingStyles.clear();\n this._localTimelineStyles.forEach((val, prop) => {\n if (!this._currentKeyframe.has(prop)) {\n this._currentKeyframe.set(prop, val);\n }\n });\n }\n snapshotCurrentStyles() {\n for (let [prop, val] of this._localTimelineStyles) {\n this._pendingStyles.set(prop, val);\n this._updateStyle(prop, val);\n }\n }\n getFinalKeyframe() {\n return this._keyframes.get(this.duration);\n }\n get properties() {\n const properties = [];\n for (let prop in this._currentKeyframe) {\n properties.push(prop);\n }\n return properties;\n }\n mergeTimelineCollectedStyles(timeline) {\n timeline._styleSummary.forEach((details1, prop) => {\n const details0 = this._styleSummary.get(prop);\n if (!details0 || details1.time > details0.time) {\n this._updateStyle(prop, details1.value);\n }\n });\n }\n buildKeyframes() {\n this.applyStylesToKeyframe();\n const preStyleProps = new Set();\n const postStyleProps = new Set();\n const isEmpty = this._keyframes.size === 1 && this.duration === 0;\n let finalKeyframes = [];\n this._keyframes.forEach((keyframe, time) => {\n const finalKeyframe = new Map([...this._backFill, ...keyframe]);\n finalKeyframe.forEach((value, prop) => {\n if (value === ɵPRE_STYLE) {\n preStyleProps.add(prop);\n }\n else if (value === AUTO_STYLE) {\n postStyleProps.add(prop);\n }\n });\n if (!isEmpty) {\n finalKeyframe.set('offset', time / this.duration);\n }\n finalKeyframes.push(finalKeyframe);\n });\n const preProps = [...preStyleProps.values()];\n const postProps = [...postStyleProps.values()];\n // special case for a 0-second animation (which is designed just to place styles onscreen)\n if (isEmpty) {\n const kf0 = finalKeyframes[0];\n const kf1 = new Map(kf0);\n kf0.set('offset', 0);\n kf1.set('offset', 1);\n finalKeyframes = [kf0, kf1];\n }\n return createTimelineInstruction(this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime, this.easing, false);\n }\n}\nclass SubTimelineBuilder extends TimelineBuilder {\n constructor(driver, element, keyframes, preStyleProps, postStyleProps, timings, _stretchStartingKeyframe = false) {\n super(driver, element, timings.delay);\n this.keyframes = keyframes;\n this.preStyleProps = preStyleProps;\n this.postStyleProps = postStyleProps;\n this._stretchStartingKeyframe = _stretchStartingKeyframe;\n this.timings = { duration: timings.duration, delay: timings.delay, easing: timings.easing };\n }\n containsAnimation() {\n return this.keyframes.length > 1;\n }\n buildKeyframes() {\n let keyframes = this.keyframes;\n let { delay, duration, easing } = this.timings;\n if (this._stretchStartingKeyframe && delay) {\n const newKeyframes = [];\n const totalTime = duration + delay;\n const startingGap = delay / totalTime;\n // the original starting keyframe now starts once the delay is done\n const newFirstKeyframe = new Map(keyframes[0]);\n newFirstKeyframe.set('offset', 0);\n newKeyframes.push(newFirstKeyframe);\n const oldFirstKeyframe = new Map(keyframes[0]);\n oldFirstKeyframe.set('offset', roundOffset(startingGap));\n newKeyframes.push(oldFirstKeyframe);\n /*\n When the keyframe is stretched then it means that the delay before the animation\n starts is gone. Instead the first keyframe is placed at the start of the animation\n and it is then copied to where it starts when the original delay is over. This basically\n means nothing animates during that delay, but the styles are still rendered. For this\n to work the original offset values that exist in the original keyframes must be \"warped\"\n so that they can take the new keyframe + delay into account.\n \n delay=1000, duration=1000, keyframes = 0 .5 1\n \n turns into\n \n delay=0, duration=2000, keyframes = 0 .33 .66 1\n */\n // offsets between 1 ... n -1 are all warped by the keyframe stretch\n const limit = keyframes.length - 1;\n for (let i = 1; i <= limit; i++) {\n let kf = new Map(keyframes[i]);\n const oldOffset = kf.get('offset');\n const timeAtKeyframe = delay + oldOffset * duration;\n kf.set('offset', roundOffset(timeAtKeyframe / totalTime));\n newKeyframes.push(kf);\n }\n // the new starting keyframe should be added at the start\n duration = totalTime;\n delay = 0;\n easing = '';\n keyframes = newKeyframes;\n }\n return createTimelineInstruction(this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing, true);\n }\n}\nfunction roundOffset(offset, decimalPoints = 3) {\n const mult = Math.pow(10, decimalPoints - 1);\n return Math.round(offset * mult) / mult;\n}\nfunction flattenStyles(input, allStyles) {\n const styles = new Map();\n let allProperties;\n input.forEach((token) => {\n if (token === '*') {\n allProperties ??= allStyles.keys();\n for (let prop of allProperties) {\n styles.set(prop, AUTO_STYLE);\n }\n }\n else {\n for (let [prop, val] of token) {\n styles.set(prop, val);\n }\n }\n });\n return styles;\n}\n\nfunction createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {\n return {\n type: 0 /* AnimationTransitionInstructionType.TransitionAnimation */,\n element,\n triggerName,\n isRemovalTransition,\n fromState,\n fromStyles,\n toState,\n toStyles,\n timelines,\n queriedElements,\n preStyleProps,\n postStyleProps,\n totalTime,\n errors,\n };\n}\n\nconst EMPTY_OBJECT = {};\nclass AnimationTransitionFactory {\n constructor(_triggerName, ast, _stateStyles) {\n this._triggerName = _triggerName;\n this.ast = ast;\n this._stateStyles = _stateStyles;\n }\n match(currentState, nextState, element, params) {\n return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);\n }\n buildStyles(stateName, params, errors) {\n let styler = this._stateStyles.get('*');\n if (stateName !== undefined) {\n styler = this._stateStyles.get(stateName?.toString()) || styler;\n }\n return styler ? styler.buildStyles(params, errors) : new Map();\n }\n build(driver, element, currentState, nextState, enterClassName, leaveClassName, currentOptions, nextOptions, subInstructions, skipAstBuild) {\n const errors = [];\n const transitionAnimationParams = (this.ast.options && this.ast.options.params) || EMPTY_OBJECT;\n const currentAnimationParams = (currentOptions && currentOptions.params) || EMPTY_OBJECT;\n const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);\n const nextAnimationParams = (nextOptions && nextOptions.params) || EMPTY_OBJECT;\n const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);\n const queriedElements = new Set();\n const preStyleMap = new Map();\n const postStyleMap = new Map();\n const isRemoval = nextState === 'void';\n const animationOptions = {\n params: applyParamDefaults(nextAnimationParams, transitionAnimationParams),\n delay: this.ast.options?.delay,\n };\n const timelines = skipAstBuild\n ? []\n : buildAnimationTimelines(driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles, nextStateStyles, animationOptions, subInstructions, errors);\n let totalTime = 0;\n timelines.forEach((tl) => {\n totalTime = Math.max(tl.duration + tl.delay, totalTime);\n });\n if (errors.length) {\n return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);\n }\n timelines.forEach((tl) => {\n const elm = tl.element;\n const preProps = getOrSetDefaultValue(preStyleMap, elm, new Set());\n tl.preStyleProps.forEach((prop) => preProps.add(prop));\n const postProps = getOrSetDefaultValue(postStyleMap, elm, new Set());\n tl.postStyleProps.forEach((prop) => postProps.add(prop));\n if (elm !== element) {\n queriedElements.add(elm);\n }\n });\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n checkNonAnimatableInTimelines(timelines, this._triggerName, driver);\n }\n return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, timelines, [...queriedElements.values()], preStyleMap, postStyleMap, totalTime);\n }\n}\n/**\n * Checks inside a set of timelines if they try to animate a css property which is not considered\n * animatable, in that case it prints a warning on the console.\n * Besides that the function doesn't have any other effect.\n *\n * Note: this check is done here after the timelines are built instead of doing on a lower level so\n * that we can make sure that the warning appears only once per instruction (we can aggregate here\n * all the issues instead of finding them separately).\n *\n * @param timelines The built timelines for the current instruction.\n * @param triggerName The name of the trigger for the current instruction.\n * @param driver Animation driver used to perform the check.\n *\n */\nfunction checkNonAnimatableInTimelines(timelines, triggerName, driver) {\n if (!driver.validateAnimatableStyleProperty) {\n return;\n }\n const allowedNonAnimatableProps = new Set([\n // 'easing' is a utility/synthetic prop we use to represent\n // easing functions, it represents a property of the animation\n // which is not animatable but different values can be used\n // in different steps\n 'easing',\n ]);\n const invalidNonAnimatableProps = new Set();\n timelines.forEach(({ keyframes }) => {\n const nonAnimatablePropsInitialValues = new Map();\n keyframes.forEach((keyframe) => {\n const entriesToCheck = Array.from(keyframe.entries()).filter(([prop]) => !allowedNonAnimatableProps.has(prop));\n for (const [prop, value] of entriesToCheck) {\n if (!driver.validateAnimatableStyleProperty(prop)) {\n if (nonAnimatablePropsInitialValues.has(prop) && !invalidNonAnimatableProps.has(prop)) {\n const propInitialValue = nonAnimatablePropsInitialValues.get(prop);\n if (propInitialValue !== value) {\n invalidNonAnimatableProps.add(prop);\n }\n }\n else {\n nonAnimatablePropsInitialValues.set(prop, value);\n }\n }\n }\n });\n });\n if (invalidNonAnimatableProps.size > 0) {\n console.warn(`Warning: The animation trigger \"${triggerName}\" is attempting to animate the following` +\n ' not animatable properties: ' +\n Array.from(invalidNonAnimatableProps).join(', ') +\n '\\n' +\n '(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)');\n }\n}\nfunction oneOrMoreTransitionsMatch(matchFns, currentState, nextState, element, params) {\n return matchFns.some((fn) => fn(currentState, nextState, element, params));\n}\nfunction applyParamDefaults(userParams, defaults) {\n const result = { ...defaults };\n Object.entries(userParams).forEach(([key, value]) => {\n if (value != null) {\n result[key] = value;\n }\n });\n return result;\n}\nclass AnimationStateStyles {\n constructor(styles, defaultParams, normalizer) {\n this.styles = styles;\n this.defaultParams = defaultParams;\n this.normalizer = normalizer;\n }\n buildStyles(params, errors) {\n const finalStyles = new Map();\n const combinedParams = applyParamDefaults(params, this.defaultParams);\n this.styles.styles.forEach((value) => {\n if (typeof value !== 'string') {\n value.forEach((val, prop) => {\n if (val) {\n val = interpolateParams(val, combinedParams, errors);\n }\n const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);\n val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);\n finalStyles.set(prop, val);\n });\n }\n });\n return finalStyles;\n }\n}\n\nfunction buildTrigger(name, ast, normalizer) {\n return new AnimationTrigger(name, ast, normalizer);\n}\nclass AnimationTrigger {\n constructor(name, ast, _normalizer) {\n this.name = name;\n this.ast = ast;\n this._normalizer = _normalizer;\n this.transitionFactories = [];\n this.states = new Map();\n ast.states.forEach((ast) => {\n const defaultParams = (ast.options && ast.options.params) || {};\n this.states.set(ast.name, new AnimationStateStyles(ast.style, defaultParams, _normalizer));\n });\n balanceProperties(this.states, 'true', '1');\n balanceProperties(this.states, 'false', '0');\n ast.transitions.forEach((ast) => {\n this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));\n });\n this.fallbackTransition = createFallbackTransition(name, this.states, this._normalizer);\n }\n get containsQueries() {\n return this.ast.queryCount > 0;\n }\n matchTransition(currentState, nextState, element, params) {\n const entry = this.transitionFactories.find((f) => f.match(currentState, nextState, element, params));\n return entry || null;\n }\n matchStyles(currentState, params, errors) {\n return this.fallbackTransition.buildStyles(currentState, params, errors);\n }\n}\nfunction createFallbackTransition(triggerName, states, normalizer) {\n const matchers = [(fromState, toState) => true];\n const animation = { type: AnimationMetadataType.Sequence, steps: [], options: null };\n const transition = {\n type: AnimationMetadataType.Transition,\n animation,\n matchers,\n options: null,\n queryCount: 0,\n depCount: 0,\n };\n return new AnimationTransitionFactory(triggerName, transition, states);\n}\nfunction balanceProperties(stateMap, key1, key2) {\n if (stateMap.has(key1)) {\n if (!stateMap.has(key2)) {\n stateMap.set(key2, stateMap.get(key1));\n }\n }\n else if (stateMap.has(key2)) {\n stateMap.set(key1, stateMap.get(key2));\n }\n}\n\nconst EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();\nclass TimelineAnimationEngine {\n constructor(bodyNode, _driver, _normalizer) {\n this.bodyNode = bodyNode;\n this._driver = _driver;\n this._normalizer = _normalizer;\n this._animations = new Map();\n this._playersById = new Map();\n this.players = [];\n }\n register(id, metadata) {\n const errors = [];\n const warnings = [];\n const ast = buildAnimationAst(this._driver, metadata, errors, warnings);\n if (errors.length) {\n throw registerFailed(errors);\n }\n else {\n if (warnings.length) {\n warnRegister(warnings);\n }\n this._animations.set(id, ast);\n }\n }\n _buildPlayer(i, preStyles, postStyles) {\n const element = i.element;\n const keyframes = normalizeKeyframes$1(this._normalizer, i.keyframes, preStyles, postStyles);\n return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);\n }\n create(id, element, options = {}) {\n const errors = [];\n const ast = this._animations.get(id);\n let instructions;\n const autoStylesMap = new Map();\n if (ast) {\n instructions = buildAnimationTimelines(this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, new Map(), new Map(), options, EMPTY_INSTRUCTION_MAP, errors);\n instructions.forEach((inst) => {\n const styles = getOrSetDefaultValue(autoStylesMap, inst.element, new Map());\n inst.postStyleProps.forEach((prop) => styles.set(prop, null));\n });\n }\n else {\n errors.push(missingOrDestroyedAnimation());\n instructions = [];\n }\n if (errors.length) {\n throw createAnimationFailed(errors);\n }\n autoStylesMap.forEach((styles, element) => {\n styles.forEach((_, prop) => {\n styles.set(prop, this._driver.computeStyle(element, prop, AUTO_STYLE));\n });\n });\n const players = instructions.map((i) => {\n const styles = autoStylesMap.get(i.element);\n return this._buildPlayer(i, new Map(), styles);\n });\n const player = optimizeGroupPlayer(players);\n this._playersById.set(id, player);\n player.onDestroy(() => this.destroy(id));\n this.players.push(player);\n return player;\n }\n destroy(id) {\n const player = this._getPlayer(id);\n player.destroy();\n this._playersById.delete(id);\n const index = this.players.indexOf(player);\n if (index >= 0) {\n this.players.splice(index, 1);\n }\n }\n _getPlayer(id) {\n const player = this._playersById.get(id);\n if (!player) {\n throw missingPlayer(id);\n }\n return player;\n }\n listen(id, element, eventName, callback) {\n // triggerName, fromState, toState are all ignored for timeline animations\n const baseEvent = makeAnimationEvent(element, '', '', '');\n listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);\n return () => { };\n }\n command(id, element, command, args) {\n if (command == 'register') {\n this.register(id, args[0]);\n return;\n }\n if (command == 'create') {\n const options = (args[0] || {});\n this.create(id, element, options);\n return;\n }\n const player = this._getPlayer(id);\n switch (command) {\n case 'play':\n player.play();\n break;\n case 'pause':\n player.pause();\n break;\n case 'reset':\n player.reset();\n break;\n case 'restart':\n player.restart();\n break;\n case 'finish':\n player.finish();\n break;\n case 'init':\n player.init();\n break;\n case 'setPosition':\n player.setPosition(parseFloat(args[0]));\n break;\n case 'destroy':\n this.destroy(id);\n break;\n }\n }\n}\n\nconst QUEUED_CLASSNAME = 'ng-animate-queued';\nconst QUEUED_SELECTOR = '.ng-animate-queued';\nconst DISABLED_CLASSNAME = 'ng-animate-disabled';\nconst DISABLED_SELECTOR = '.ng-animate-disabled';\nconst STAR_CLASSNAME = 'ng-star-inserted';\nconst STAR_SELECTOR = '.ng-star-inserted';\nconst EMPTY_PLAYER_ARRAY = [];\nconst NULL_REMOVAL_STATE = {\n namespaceId: '',\n setForRemoval: false,\n setForMove: false,\n hasAnimation: false,\n removedBeforeQueried: false,\n};\nconst NULL_REMOVED_QUERIED_STATE = {\n namespaceId: '',\n setForMove: false,\n setForRemoval: false,\n hasAnimation: false,\n removedBeforeQueried: true,\n};\nconst REMOVAL_FLAG = '__ng_removed';\nclass StateValue {\n get params() {\n return this.options.params;\n }\n constructor(input, namespaceId = '') {\n this.namespaceId = namespaceId;\n const isObj = input && input.hasOwnProperty('value');\n const value = isObj ? input['value'] : input;\n this.value = normalizeTriggerValue(value);\n if (isObj) {\n // we drop the value property from options.\n const { value, ...options } = input;\n this.options = options;\n }\n else {\n this.options = {};\n }\n if (!this.options.params) {\n this.options.params = {};\n }\n }\n absorbOptions(options) {\n const newParams = options.params;\n if (newParams) {\n const oldParams = this.options.params;\n Object.keys(newParams).forEach((prop) => {\n if (oldParams[prop] == null) {\n oldParams[prop] = newParams[prop];\n }\n });\n }\n }\n}\nconst VOID_VALUE = 'void';\nconst DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);\nclass AnimationTransitionNamespace {\n constructor(id, hostElement, _engine) {\n this.id = id;\n this.hostElement = hostElement;\n this._engine = _engine;\n this.players = [];\n this._triggers = new Map();\n this._queue = [];\n this._elementListeners = new Map();\n this._hostClassName = 'ng-tns-' + id;\n addClass(hostElement, this._hostClassName);\n }\n listen(element, name, phase, callback) {\n if (!this._triggers.has(name)) {\n throw missingTrigger(phase, name);\n }\n if (phase == null || phase.length == 0) {\n throw missingEvent(name);\n }\n if (!isTriggerEventValid(phase)) {\n throw unsupportedTriggerEvent(phase, name);\n }\n const listeners = getOrSetDefaultValue(this._elementListeners, element, []);\n const data = { name, phase, callback };\n listeners.push(data);\n const triggersWithStates = getOrSetDefaultValue(this._engine.statesByElement, element, new Map());\n if (!triggersWithStates.has(name)) {\n addClass(element, NG_TRIGGER_CLASSNAME);\n addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);\n triggersWithStates.set(name, DEFAULT_STATE_VALUE);\n }\n return () => {\n // the event listener is removed AFTER the flush has occurred such\n // that leave animations callbacks can fire (otherwise if the node\n // is removed in between then the listeners would be deregistered)\n this._engine.afterFlush(() => {\n const index = listeners.indexOf(data);\n if (index >= 0) {\n listeners.splice(index, 1);\n }\n if (!this._triggers.has(name)) {\n triggersWithStates.delete(name);\n }\n });\n };\n }\n register(name, ast) {\n if (this._triggers.has(name)) {\n // throw\n return false;\n }\n else {\n this._triggers.set(name, ast);\n return true;\n }\n }\n _getTrigger(name) {\n const trigger = this._triggers.get(name);\n if (!trigger) {\n throw unregisteredTrigger(name);\n }\n return trigger;\n }\n trigger(element, triggerName, value, defaultToFallback = true) {\n const trigger = this._getTrigger(triggerName);\n const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n let triggersWithStates = this._engine.statesByElement.get(element);\n if (!triggersWithStates) {\n addClass(element, NG_TRIGGER_CLASSNAME);\n addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);\n this._engine.statesByElement.set(element, (triggersWithStates = new Map()));\n }\n let fromState = triggersWithStates.get(triggerName);\n const toState = new StateValue(value, this.id);\n const isObj = value && value.hasOwnProperty('value');\n if (!isObj && fromState) {\n toState.absorbOptions(fromState.options);\n }\n triggersWithStates.set(triggerName, toState);\n if (!fromState) {\n fromState = DEFAULT_STATE_VALUE;\n }\n const isRemoval = toState.value === VOID_VALUE;\n // normally this isn't reached by here, however, if an object expression\n // is passed in then it may be a new object each time. Comparing the value\n // is important since that will stay the same despite there being a new object.\n // The removal arc here is special cased because the same element is triggered\n // twice in the event that it contains animations on the outer/inner portions\n // of the host container\n if (!isRemoval && fromState.value === toState.value) {\n // this means that despite the value not changing, some inner params\n // have changed which means that the animation final styles need to be applied\n if (!objEquals(fromState.params, toState.params)) {\n const errors = [];\n const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);\n const toStyles = trigger.matchStyles(toState.value, toState.params, errors);\n if (errors.length) {\n this._engine.reportError(errors);\n }\n else {\n this._engine.afterFlush(() => {\n eraseStyles(element, fromStyles);\n setStyles(element, toStyles);\n });\n }\n }\n return;\n }\n const playersOnElement = getOrSetDefaultValue(this._engine.playersByElement, element, []);\n playersOnElement.forEach((player) => {\n // only remove the player if it is queued on the EXACT same trigger/namespace\n // we only also deal with queued players here because if the animation has\n // started then we want to keep the player alive until the flush happens\n // (which is where the previousPlayers are passed into the new player)\n if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {\n player.destroy();\n }\n });\n let transition = trigger.matchTransition(fromState.value, toState.value, element, toState.params);\n let isFallbackTransition = false;\n if (!transition) {\n if (!defaultToFallback)\n return;\n transition = trigger.fallbackTransition;\n isFallbackTransition = true;\n }\n this._engine.totalQueuedPlayers++;\n this._queue.push({\n element,\n triggerName,\n transition,\n fromState,\n toState,\n player,\n isFallbackTransition,\n });\n if (!isFallbackTransition) {\n addClass(element, QUEUED_CLASSNAME);\n player.onStart(() => {\n removeClass(element, QUEUED_CLASSNAME);\n });\n }\n player.onDone(() => {\n let index = this.players.indexOf(player);\n if (index >= 0) {\n this.players.splice(index, 1);\n }\n const players = this._engine.playersByElement.get(element);\n if (players) {\n let index = players.indexOf(player);\n if (index >= 0) {\n players.splice(index, 1);\n }\n }\n });\n this.players.push(player);\n playersOnElement.push(player);\n return player;\n }\n deregister(name) {\n this._triggers.delete(name);\n this._engine.statesByElement.forEach((stateMap) => stateMap.delete(name));\n this._elementListeners.forEach((listeners, element) => {\n this._elementListeners.set(element, listeners.filter((entry) => {\n return entry.name != name;\n }));\n });\n }\n clearElementCache(element) {\n this._engine.statesByElement.delete(element);\n this._elementListeners.delete(element);\n const elementPlayers = this._engine.playersByElement.get(element);\n if (elementPlayers) {\n elementPlayers.forEach((player) => player.destroy());\n this._engine.playersByElement.delete(element);\n }\n }\n _signalRemovalForInnerTriggers(rootElement, context) {\n const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);\n // emulate a leave animation for all inner nodes within this node.\n // If there are no animations found for any of the nodes then clear the cache\n // for the element.\n elements.forEach((elm) => {\n // this means that an inner remove() operation has already kicked off\n // the animation on this element...\n if (elm[REMOVAL_FLAG])\n return;\n const namespaces = this._engine.fetchNamespacesByElement(elm);\n if (namespaces.size) {\n namespaces.forEach((ns) => ns.triggerLeaveAnimation(elm, context, false, true));\n }\n else {\n this.clearElementCache(elm);\n }\n });\n // If the child elements were removed along with the parent, their animations might not\n // have completed. Clear all the elements from the cache so we don't end up with a memory leak.\n this._engine.afterFlushAnimationsDone(() => elements.forEach((elm) => this.clearElementCache(elm)));\n }\n triggerLeaveAnimation(element, context, destroyAfterComplete, defaultToFallback) {\n const triggerStates = this._engine.statesByElement.get(element);\n const previousTriggersValues = new Map();\n if (triggerStates) {\n const players = [];\n triggerStates.forEach((state, triggerName) => {\n previousTriggersValues.set(triggerName, state.value);\n // this check is here in the event that an element is removed\n // twice (both on the host level and the component level)\n if (this._triggers.has(triggerName)) {\n const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);\n if (player) {\n players.push(player);\n }\n }\n });\n if (players.length) {\n this._engine.markElementAsRemoved(this.id, element, true, context, previousTriggersValues);\n if (destroyAfterComplete) {\n optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));\n }\n return true;\n }\n }\n return false;\n }\n prepareLeaveAnimationListeners(element) {\n const listeners = this._elementListeners.get(element);\n const elementStates = this._engine.statesByElement.get(element);\n // if this statement fails then it means that the element was picked up\n // by an earlier flush (or there are no listeners at all to track the leave).\n if (listeners && elementStates) {\n const visitedTriggers = new Set();\n listeners.forEach((listener) => {\n const triggerName = listener.name;\n if (visitedTriggers.has(triggerName))\n return;\n visitedTriggers.add(triggerName);\n const trigger = this._triggers.get(triggerName);\n const transition = trigger.fallbackTransition;\n const fromState = elementStates.get(triggerName) || DEFAULT_STATE_VALUE;\n const toState = new StateValue(VOID_VALUE);\n const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n this._engine.totalQueuedPlayers++;\n this._queue.push({\n element,\n triggerName,\n transition,\n fromState,\n toState,\n player,\n isFallbackTransition: true,\n });\n });\n }\n }\n removeNode(element, context) {\n const engine = this._engine;\n if (element.childElementCount) {\n this._signalRemovalForInnerTriggers(element, context);\n }\n // this means that a * => VOID animation was detected and kicked off\n if (this.triggerLeaveAnimation(element, context, true))\n return;\n // find the player that is animating and make sure that the\n // removal is delayed until that player has completed\n let containsPotentialParentTransition = false;\n if (engine.totalAnimations) {\n const currentPlayers = engine.players.length\n ? engine.playersByQueriedElement.get(element)\n : [];\n // when this `if statement` does not continue forward it means that\n // a previous animation query has selected the current element and\n // is animating it. In this situation want to continue forwards and\n // allow the element to be queued up for animation later.\n if (currentPlayers && currentPlayers.length) {\n containsPotentialParentTransition = true;\n }\n else {\n let parent = element;\n while ((parent = parent.parentNode)) {\n const triggers = engine.statesByElement.get(parent);\n if (triggers) {\n containsPotentialParentTransition = true;\n break;\n }\n }\n }\n }\n // at this stage we know that the element will either get removed\n // during flush or will be picked up by a parent query. Either way\n // we need to fire the listeners for this element when it DOES get\n // removed (once the query parent animation is done or after flush)\n this.prepareLeaveAnimationListeners(element);\n // whether or not a parent has an animation we need to delay the deferral of the leave\n // operation until we have more information (which we do after flush() has been called)\n if (containsPotentialParentTransition) {\n engine.markElementAsRemoved(this.id, element, false, context);\n }\n else {\n const removalFlag = element[REMOVAL_FLAG];\n if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {\n // we do this after the flush has occurred such\n // that the callbacks can be fired\n engine.afterFlush(() => this.clearElementCache(element));\n engine.destroyInnerAnimations(element);\n engine._onRemovalComplete(element, context);\n }\n }\n }\n insertNode(element, parent) {\n addClass(element, this._hostClassName);\n }\n drainQueuedTransitions(microtaskId) {\n const instructions = [];\n this._queue.forEach((entry) => {\n const player = entry.player;\n if (player.destroyed)\n return;\n const element = entry.element;\n const listeners = this._elementListeners.get(element);\n if (listeners) {\n listeners.forEach((listener) => {\n if (listener.name == entry.triggerName) {\n const baseEvent = makeAnimationEvent(element, entry.triggerName, entry.fromState.value, entry.toState.value);\n baseEvent['_data'] = microtaskId;\n listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);\n }\n });\n }\n if (player.markedForDestroy) {\n this._engine.afterFlush(() => {\n // now we can destroy the element properly since the event listeners have\n // been bound to the player\n player.destroy();\n });\n }\n else {\n instructions.push(entry);\n }\n });\n this._queue = [];\n return instructions.sort((a, b) => {\n // if depCount == 0 them move to front\n // otherwise if a contains b then move back\n const d0 = a.transition.ast.depCount;\n const d1 = b.transition.ast.depCount;\n if (d0 == 0 || d1 == 0) {\n return d0 - d1;\n }\n return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;\n });\n }\n destroy(context) {\n this.players.forEach((p) => p.destroy());\n this._signalRemovalForInnerTriggers(this.hostElement, context);\n }\n}\nclass TransitionAnimationEngine {\n /** @internal */\n _onRemovalComplete(element, context) {\n this.onRemovalComplete(element, context);\n }\n constructor(bodyNode, driver, _normalizer, scheduler) {\n this.bodyNode = bodyNode;\n this.driver = driver;\n this._normalizer = _normalizer;\n this.scheduler = scheduler;\n this.players = [];\n this.newHostElements = new Map();\n this.playersByElement = new Map();\n this.playersByQueriedElement = new Map();\n this.statesByElement = new Map();\n this.disabledNodes = new Set();\n this.totalAnimations = 0;\n this.totalQueuedPlayers = 0;\n this._namespaceLookup = {};\n this._namespaceList = [];\n this._flushFns = [];\n this._whenQuietFns = [];\n this.namespacesByHostElement = new Map();\n this.collectedEnterElements = [];\n this.collectedLeaveElements = [];\n // this method is designed to be overridden by the code that uses this engine\n this.onRemovalComplete = (element, context) => { };\n }\n get queuedPlayers() {\n const players = [];\n this._namespaceList.forEach((ns) => {\n ns.players.forEach((player) => {\n if (player.queued) {\n players.push(player);\n }\n });\n });\n return players;\n }\n createNamespace(namespaceId, hostElement) {\n const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);\n if (this.bodyNode && this.driver.containsElement(this.bodyNode, hostElement)) {\n this._balanceNamespaceList(ns, hostElement);\n }\n else {\n // defer this later until flush during when the host element has\n // been inserted so that we know exactly where to place it in\n // the namespace list\n this.newHostElements.set(hostElement, ns);\n // given that this host element is a part of the animation code, it\n // may or may not be inserted by a parent node that is of an\n // animation renderer type. If this happens then we can still have\n // access to this item when we query for :enter nodes. If the parent\n // is a renderer then the set data-structure will normalize the entry\n this.collectEnterElement(hostElement);\n }\n return (this._namespaceLookup[namespaceId] = ns);\n }\n _balanceNamespaceList(ns, hostElement) {\n const namespaceList = this._namespaceList;\n const namespacesByHostElement = this.namespacesByHostElement;\n const limit = namespaceList.length - 1;\n if (limit >= 0) {\n let found = false;\n // Find the closest ancestor with an existing namespace so we can then insert `ns` after it,\n // establishing a top-down ordering of namespaces in `this._namespaceList`.\n let ancestor = this.driver.getParentElement(hostElement);\n while (ancestor) {\n const ancestorNs = namespacesByHostElement.get(ancestor);\n if (ancestorNs) {\n // An animation namespace has been registered for this ancestor, so we insert `ns`\n // right after it to establish top-down ordering of animation namespaces.\n const index = namespaceList.indexOf(ancestorNs);\n namespaceList.splice(index + 1, 0, ns);\n found = true;\n break;\n }\n ancestor = this.driver.getParentElement(ancestor);\n }\n if (!found) {\n // No namespace exists that is an ancestor of `ns`, so `ns` is inserted at the front to\n // ensure that any existing descendants are ordered after `ns`, retaining the desired\n // top-down ordering.\n namespaceList.unshift(ns);\n }\n }\n else {\n namespaceList.push(ns);\n }\n namespacesByHostElement.set(hostElement, ns);\n return ns;\n }\n register(namespaceId, hostElement) {\n let ns = this._namespaceLookup[namespaceId];\n if (!ns) {\n ns = this.createNamespace(namespaceId, hostElement);\n }\n return ns;\n }\n registerTrigger(namespaceId, name, trigger) {\n let ns = this._namespaceLookup[namespaceId];\n if (ns && ns.register(name, trigger)) {\n this.totalAnimations++;\n }\n }\n destroy(namespaceId, context) {\n if (!namespaceId)\n return;\n this.afterFlush(() => { });\n this.afterFlushAnimationsDone(() => {\n const ns = this._fetchNamespace(namespaceId);\n this.namespacesByHostElement.delete(ns.hostElement);\n const index = this._namespaceList.indexOf(ns);\n if (index >= 0) {\n this._namespaceList.splice(index, 1);\n }\n ns.destroy(context);\n delete this._namespaceLookup[namespaceId];\n });\n }\n _fetchNamespace(id) {\n return this._namespaceLookup[id];\n }\n fetchNamespacesByElement(element) {\n // normally there should only be one namespace per element, however\n // if @triggers are placed on both the component element and then\n // its host element (within the component code) then there will be\n // two namespaces returned. We use a set here to simply deduplicate\n // the namespaces in case (for the reason described above) there are multiple triggers\n const namespaces = new Set();\n const elementStates = this.statesByElement.get(element);\n if (elementStates) {\n for (let stateValue of elementStates.values()) {\n if (stateValue.namespaceId) {\n const ns = this._fetchNamespace(stateValue.namespaceId);\n if (ns) {\n namespaces.add(ns);\n }\n }\n }\n }\n return namespaces;\n }\n trigger(namespaceId, element, name, value) {\n if (isElementNode(element)) {\n const ns = this._fetchNamespace(namespaceId);\n if (ns) {\n ns.trigger(element, name, value);\n return true;\n }\n }\n return false;\n }\n insertNode(namespaceId, element, parent, insertBefore) {\n if (!isElementNode(element))\n return;\n // special case for when an element is removed and reinserted (move operation)\n // when this occurs we do not want to use the element for deletion later\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n details.setForRemoval = false;\n details.setForMove = true;\n const index = this.collectedLeaveElements.indexOf(element);\n if (index >= 0) {\n this.collectedLeaveElements.splice(index, 1);\n }\n }\n // in the event that the namespaceId is blank then the caller\n // code does not contain any animation code in it, but it is\n // just being called so that the node is marked as being inserted\n if (namespaceId) {\n const ns = this._fetchNamespace(namespaceId);\n // This if-statement is a workaround for router issue #21947.\n // The router sometimes hits a race condition where while a route\n // is being instantiated a new navigation arrives, triggering leave\n // animation of DOM that has not been fully initialized, until this\n // is resolved, we need to handle the scenario when DOM is not in a\n // consistent state during the animation.\n if (ns) {\n ns.insertNode(element, parent);\n }\n }\n // only *directives and host elements are inserted before\n if (insertBefore) {\n this.collectEnterElement(element);\n }\n }\n collectEnterElement(element) {\n this.collectedEnterElements.push(element);\n }\n markElementAsDisabled(element, value) {\n if (value) {\n if (!this.disabledNodes.has(element)) {\n this.disabledNodes.add(element);\n addClass(element, DISABLED_CLASSNAME);\n }\n }\n else if (this.disabledNodes.has(element)) {\n this.disabledNodes.delete(element);\n removeClass(element, DISABLED_CLASSNAME);\n }\n }\n removeNode(namespaceId, element, context) {\n if (isElementNode(element)) {\n this.scheduler?.notify();\n const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;\n if (ns) {\n ns.removeNode(element, context);\n }\n else {\n this.markElementAsRemoved(namespaceId, element, false, context);\n }\n const hostNS = this.namespacesByHostElement.get(element);\n if (hostNS && hostNS.id !== namespaceId) {\n hostNS.removeNode(element, context);\n }\n }\n else {\n this._onRemovalComplete(element, context);\n }\n }\n markElementAsRemoved(namespaceId, element, hasAnimation, context, previousTriggersValues) {\n this.collectedLeaveElements.push(element);\n element[REMOVAL_FLAG] = {\n namespaceId,\n setForRemoval: context,\n hasAnimation,\n removedBeforeQueried: false,\n previousTriggersValues,\n };\n }\n listen(namespaceId, element, name, phase, callback) {\n if (isElementNode(element)) {\n return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);\n }\n return () => { };\n }\n _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst) {\n return entry.transition.build(this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName, leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);\n }\n destroyInnerAnimations(containerElement) {\n let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);\n elements.forEach((element) => this.destroyActiveAnimationsForElement(element));\n if (this.playersByQueriedElement.size == 0)\n return;\n elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);\n elements.forEach((element) => this.finishActiveQueriedAnimationOnElement(element));\n }\n destroyActiveAnimationsForElement(element) {\n const players = this.playersByElement.get(element);\n if (players) {\n players.forEach((player) => {\n // special case for when an element is set for destruction, but hasn't started.\n // in this situation we want to delay the destruction until the flush occurs\n // so that any event listeners attached to the player are triggered.\n if (player.queued) {\n player.markedForDestroy = true;\n }\n else {\n player.destroy();\n }\n });\n }\n }\n finishActiveQueriedAnimationOnElement(element) {\n const players = this.playersByQueriedElement.get(element);\n if (players) {\n players.forEach((player) => player.finish());\n }\n }\n whenRenderingDone() {\n return new Promise((resolve) => {\n if (this.players.length) {\n return optimizeGroupPlayer(this.players).onDone(() => resolve());\n }\n else {\n resolve();\n }\n });\n }\n processLeaveNode(element) {\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n // this will prevent it from removing it twice\n element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;\n if (details.namespaceId) {\n this.destroyInnerAnimations(element);\n const ns = this._fetchNamespace(details.namespaceId);\n if (ns) {\n ns.clearElementCache(element);\n }\n }\n this._onRemovalComplete(element, details.setForRemoval);\n }\n if (element.classList?.contains(DISABLED_CLASSNAME)) {\n this.markElementAsDisabled(element, false);\n }\n this.driver.query(element, DISABLED_SELECTOR, true).forEach((node) => {\n this.markElementAsDisabled(node, false);\n });\n }\n flush(microtaskId = -1) {\n let players = [];\n if (this.newHostElements.size) {\n this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));\n this.newHostElements.clear();\n }\n if (this.totalAnimations && this.collectedEnterElements.length) {\n for (let i = 0; i < this.collectedEnterElements.length; i++) {\n const elm = this.collectedEnterElements[i];\n addClass(elm, STAR_CLASSNAME);\n }\n }\n if (this._namespaceList.length &&\n (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {\n const cleanupFns = [];\n try {\n players = this._flushAnimations(cleanupFns, microtaskId);\n }\n finally {\n for (let i = 0; i < cleanupFns.length; i++) {\n cleanupFns[i]();\n }\n }\n }\n else {\n for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n const element = this.collectedLeaveElements[i];\n this.processLeaveNode(element);\n }\n }\n this.totalQueuedPlayers = 0;\n this.collectedEnterElements.length = 0;\n this.collectedLeaveElements.length = 0;\n this._flushFns.forEach((fn) => fn());\n this._flushFns = [];\n if (this._whenQuietFns.length) {\n // we move these over to a variable so that\n // if any new callbacks are registered in another\n // flush they do not populate the existing set\n const quietFns = this._whenQuietFns;\n this._whenQuietFns = [];\n if (players.length) {\n optimizeGroupPlayer(players).onDone(() => {\n quietFns.forEach((fn) => fn());\n });\n }\n else {\n quietFns.forEach((fn) => fn());\n }\n }\n }\n reportError(errors) {\n throw triggerTransitionsFailed(errors);\n }\n _flushAnimations(cleanupFns, microtaskId) {\n const subTimelines = new ElementInstructionMap();\n const skippedPlayers = [];\n const skippedPlayersMap = new Map();\n const queuedInstructions = [];\n const queriedElements = new Map();\n const allPreStyleElements = new Map();\n const allPostStyleElements = new Map();\n const disabledElementsSet = new Set();\n this.disabledNodes.forEach((node) => {\n disabledElementsSet.add(node);\n const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);\n for (let i = 0; i < nodesThatAreDisabled.length; i++) {\n disabledElementsSet.add(nodesThatAreDisabled[i]);\n }\n });\n const bodyNode = this.bodyNode;\n const allTriggerElements = Array.from(this.statesByElement.keys());\n const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);\n // this must occur before the instructions are built below such that\n // the :enter queries match the elements (since the timeline queries\n // are fired during instruction building).\n const enterNodeMapIds = new Map();\n let i = 0;\n enterNodeMap.forEach((nodes, root) => {\n const className = ENTER_CLASSNAME + i++;\n enterNodeMapIds.set(root, className);\n nodes.forEach((node) => addClass(node, className));\n });\n const allLeaveNodes = [];\n const mergedLeaveNodes = new Set();\n const leaveNodesWithoutAnimations = new Set();\n for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n const element = this.collectedLeaveElements[i];\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n allLeaveNodes.push(element);\n mergedLeaveNodes.add(element);\n if (details.hasAnimation) {\n this.driver\n .query(element, STAR_SELECTOR, true)\n .forEach((elm) => mergedLeaveNodes.add(elm));\n }\n else {\n leaveNodesWithoutAnimations.add(element);\n }\n }\n }\n const leaveNodeMapIds = new Map();\n const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));\n leaveNodeMap.forEach((nodes, root) => {\n const className = LEAVE_CLASSNAME + i++;\n leaveNodeMapIds.set(root, className);\n nodes.forEach((node) => addClass(node, className));\n });\n cleanupFns.push(() => {\n enterNodeMap.forEach((nodes, root) => {\n const className = enterNodeMapIds.get(root);\n nodes.forEach((node) => removeClass(node, className));\n });\n leaveNodeMap.forEach((nodes, root) => {\n const className = leaveNodeMapIds.get(root);\n nodes.forEach((node) => removeClass(node, className));\n });\n allLeaveNodes.forEach((element) => {\n this.processLeaveNode(element);\n });\n });\n const allPlayers = [];\n const erroneousTransitions = [];\n for (let i = this._namespaceList.length - 1; i >= 0; i--) {\n const ns = this._namespaceList[i];\n ns.drainQueuedTransitions(microtaskId).forEach((entry) => {\n const player = entry.player;\n const element = entry.element;\n allPlayers.push(player);\n if (this.collectedEnterElements.length) {\n const details = element[REMOVAL_FLAG];\n // animations for move operations (elements being removed and reinserted,\n // e.g. when the order of an *ngFor list changes) are currently not supported\n if (details && details.setForMove) {\n if (details.previousTriggersValues &&\n details.previousTriggersValues.has(entry.triggerName)) {\n const previousValue = details.previousTriggersValues.get(entry.triggerName);\n // we need to restore the previous trigger value since the element has\n // only been moved and hasn't actually left the DOM\n const triggersWithStates = this.statesByElement.get(entry.element);\n if (triggersWithStates && triggersWithStates.has(entry.triggerName)) {\n const state = triggersWithStates.get(entry.triggerName);\n state.value = previousValue;\n triggersWithStates.set(entry.triggerName, state);\n }\n }\n player.destroy();\n return;\n }\n }\n const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);\n const leaveClassName = leaveNodeMapIds.get(element);\n const enterClassName = enterNodeMapIds.get(element);\n const instruction = this._buildInstruction(entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned);\n if (instruction.errors && instruction.errors.length) {\n erroneousTransitions.push(instruction);\n return;\n }\n // even though the element may not be in the DOM, it may still\n // be added at a later point (due to the mechanics of content\n // projection and/or dynamic component insertion) therefore it's\n // important to still style the element.\n if (nodeIsOrphaned) {\n player.onStart(() => eraseStyles(element, instruction.fromStyles));\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n skippedPlayers.push(player);\n return;\n }\n // if an unmatched transition is queued and ready to go\n // then it SHOULD NOT render an animation and cancel the\n // previously running animations.\n if (entry.isFallbackTransition) {\n player.onStart(() => eraseStyles(element, instruction.fromStyles));\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n skippedPlayers.push(player);\n return;\n }\n // this means that if a parent animation uses this animation as a sub-trigger\n // then it will instruct the timeline builder not to add a player delay, but\n // instead stretch the first keyframe gap until the animation starts. This is\n // important in order to prevent extra initialization styles from being\n // required by the user for the animation.\n const timelines = [];\n instruction.timelines.forEach((tl) => {\n tl.stretchStartingKeyframe = true;\n if (!this.disabledNodes.has(tl.element)) {\n timelines.push(tl);\n }\n });\n instruction.timelines = timelines;\n subTimelines.append(element, instruction.timelines);\n const tuple = { instruction, player, element };\n queuedInstructions.push(tuple);\n instruction.queriedElements.forEach((element) => getOrSetDefaultValue(queriedElements, element, []).push(player));\n instruction.preStyleProps.forEach((stringMap, element) => {\n if (stringMap.size) {\n let setVal = allPreStyleElements.get(element);\n if (!setVal) {\n allPreStyleElements.set(element, (setVal = new Set()));\n }\n stringMap.forEach((_, prop) => setVal.add(prop));\n }\n });\n instruction.postStyleProps.forEach((stringMap, element) => {\n let setVal = allPostStyleElements.get(element);\n if (!setVal) {\n allPostStyleElements.set(element, (setVal = new Set()));\n }\n stringMap.forEach((_, prop) => setVal.add(prop));\n });\n });\n }\n if (erroneousTransitions.length) {\n const errors = [];\n erroneousTransitions.forEach((instruction) => {\n errors.push(transitionFailed(instruction.triggerName, instruction.errors));\n });\n allPlayers.forEach((player) => player.destroy());\n this.reportError(errors);\n }\n const allPreviousPlayersMap = new Map();\n // this map tells us which element in the DOM tree is contained by\n // which animation. Further down this map will get populated once\n // the players are built and in doing so we can use it to efficiently\n // figure out if a sub player is skipped due to a parent player having priority.\n const animationElementMap = new Map();\n queuedInstructions.forEach((entry) => {\n const element = entry.element;\n if (subTimelines.has(element)) {\n animationElementMap.set(element, element);\n this._beforeAnimationBuild(entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);\n }\n });\n skippedPlayers.forEach((player) => {\n const element = player.element;\n const previousPlayers = this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);\n previousPlayers.forEach((prevPlayer) => {\n getOrSetDefaultValue(allPreviousPlayersMap, element, []).push(prevPlayer);\n prevPlayer.destroy();\n });\n });\n // this is a special case for nodes that will be removed either by\n // having their own leave animations or by being queried in a container\n // that will be removed once a parent animation is complete. The idea\n // here is that * styles must be identical to ! styles because of\n // backwards compatibility (* is also filled in by default in many places).\n // Otherwise * styles will return an empty value or \"auto\" since the element\n // passed to getComputedStyle will not be visible (since * === destination)\n const replaceNodes = allLeaveNodes.filter((node) => {\n return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);\n });\n // POST STAGE: fill the * styles\n const postStylesMap = new Map();\n const allLeaveQueriedNodes = cloakAndComputeStyles(postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, AUTO_STYLE);\n allLeaveQueriedNodes.forEach((node) => {\n if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {\n replaceNodes.push(node);\n }\n });\n // PRE STAGE: fill the ! styles\n const preStylesMap = new Map();\n enterNodeMap.forEach((nodes, root) => {\n cloakAndComputeStyles(preStylesMap, this.driver, new Set(nodes), allPreStyleElements, ɵPRE_STYLE);\n });\n replaceNodes.forEach((node) => {\n const post = postStylesMap.get(node);\n const pre = preStylesMap.get(node);\n postStylesMap.set(node, new Map([...(post?.entries() ?? []), ...(pre?.entries() ?? [])]));\n });\n const rootPlayers = [];\n const subPlayers = [];\n const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};\n queuedInstructions.forEach((entry) => {\n const { element, player, instruction } = entry;\n // this means that it was never consumed by a parent animation which\n // means that it is independent and therefore should be set for animation\n if (subTimelines.has(element)) {\n if (disabledElementsSet.has(element)) {\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n player.disabled = true;\n player.overrideTotalTime(instruction.totalTime);\n skippedPlayers.push(player);\n return;\n }\n // this will flow up the DOM and query the map to figure out\n // if a parent animation has priority over it. In the situation\n // that a parent is detected then it will cancel the loop. If\n // nothing is detected, or it takes a few hops to find a parent,\n // then it will fill in the missing nodes and signal them as having\n // a detected parent (or a NO_PARENT value via a special constant).\n let parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED;\n if (animationElementMap.size > 1) {\n let elm = element;\n const parentsToAdd = [];\n while ((elm = elm.parentNode)) {\n const detectedParent = animationElementMap.get(elm);\n if (detectedParent) {\n parentWithAnimation = detectedParent;\n break;\n }\n parentsToAdd.push(elm);\n }\n parentsToAdd.forEach((parent) => animationElementMap.set(parent, parentWithAnimation));\n }\n const innerPlayer = this._buildAnimation(player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap);\n player.setRealPlayer(innerPlayer);\n if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {\n rootPlayers.push(player);\n }\n else {\n const parentPlayers = this.playersByElement.get(parentWithAnimation);\n if (parentPlayers && parentPlayers.length) {\n player.parentPlayer = optimizeGroupPlayer(parentPlayers);\n }\n skippedPlayers.push(player);\n }\n }\n else {\n eraseStyles(element, instruction.fromStyles);\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n // there still might be a ancestor player animating this\n // element therefore we will still add it as a sub player\n // even if its animation may be disabled\n subPlayers.push(player);\n if (disabledElementsSet.has(element)) {\n skippedPlayers.push(player);\n }\n }\n });\n // find all of the sub players' corresponding inner animation players\n subPlayers.forEach((player) => {\n // even if no players are found for a sub animation it\n // will still complete itself after the next tick since it's Noop\n const playersForElement = skippedPlayersMap.get(player.element);\n if (playersForElement && playersForElement.length) {\n const innerPlayer = optimizeGroupPlayer(playersForElement);\n player.setRealPlayer(innerPlayer);\n }\n });\n // the reason why we don't actually play the animation is\n // because all that a skipped player is designed to do is to\n // fire the start/done transition callback events\n skippedPlayers.forEach((player) => {\n if (player.parentPlayer) {\n player.syncPlayerEvents(player.parentPlayer);\n }\n else {\n player.destroy();\n }\n });\n // run through all of the queued removals and see if they\n // were picked up by a query. If not then perform the removal\n // operation right away unless a parent animation is ongoing.\n for (let i = 0; i < allLeaveNodes.length; i++) {\n const element = allLeaveNodes[i];\n const details = element[REMOVAL_FLAG];\n removeClass(element, LEAVE_CLASSNAME);\n // this means the element has a removal animation that is being\n // taken care of and therefore the inner elements will hang around\n // until that animation is over (or the parent queried animation)\n if (details && details.hasAnimation)\n continue;\n let players = [];\n // if this element is queried or if it contains queried children\n // then we want for the element not to be removed from the page\n // until the queried animations have finished\n if (queriedElements.size) {\n let queriedPlayerResults = queriedElements.get(element);\n if (queriedPlayerResults && queriedPlayerResults.length) {\n players.push(...queriedPlayerResults);\n }\n let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);\n for (let j = 0; j < queriedInnerElements.length; j++) {\n let queriedPlayers = queriedElements.get(queriedInnerElements[j]);\n if (queriedPlayers && queriedPlayers.length) {\n players.push(...queriedPlayers);\n }\n }\n }\n const activePlayers = players.filter((p) => !p.destroyed);\n if (activePlayers.length) {\n removeNodesAfterAnimationDone(this, element, activePlayers);\n }\n else {\n this.processLeaveNode(element);\n }\n }\n // this is required so the cleanup method doesn't remove them\n allLeaveNodes.length = 0;\n rootPlayers.forEach((player) => {\n this.players.push(player);\n player.onDone(() => {\n player.destroy();\n const index = this.players.indexOf(player);\n this.players.splice(index, 1);\n });\n player.play();\n });\n return rootPlayers;\n }\n afterFlush(callback) {\n this._flushFns.push(callback);\n }\n afterFlushAnimationsDone(callback) {\n this._whenQuietFns.push(callback);\n }\n _getPreviousPlayers(element, isQueriedElement, namespaceId, triggerName, toStateValue) {\n let players = [];\n if (isQueriedElement) {\n const queriedElementPlayers = this.playersByQueriedElement.get(element);\n if (queriedElementPlayers) {\n players = queriedElementPlayers;\n }\n }\n else {\n const elementPlayers = this.playersByElement.get(element);\n if (elementPlayers) {\n const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;\n elementPlayers.forEach((player) => {\n if (player.queued)\n return;\n if (!isRemovalAnimation && player.triggerName != triggerName)\n return;\n players.push(player);\n });\n }\n }\n if (namespaceId || triggerName) {\n players = players.filter((player) => {\n if (namespaceId && namespaceId != player.namespaceId)\n return false;\n if (triggerName && triggerName != player.triggerName)\n return false;\n return true;\n });\n }\n return players;\n }\n _beforeAnimationBuild(namespaceId, instruction, allPreviousPlayersMap) {\n const triggerName = instruction.triggerName;\n const rootElement = instruction.element;\n // when a removal animation occurs, ALL previous players are collected\n // and destroyed (even if they are outside of the current namespace)\n const targetNameSpaceId = instruction.isRemovalTransition\n ? undefined\n : namespaceId;\n const targetTriggerName = instruction.isRemovalTransition\n ? undefined\n : triggerName;\n for (const timelineInstruction of instruction.timelines) {\n const element = timelineInstruction.element;\n const isQueriedElement = element !== rootElement;\n const players = getOrSetDefaultValue(allPreviousPlayersMap, element, []);\n const previousPlayers = this._getPreviousPlayers(element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);\n previousPlayers.forEach((player) => {\n const realPlayer = player.getRealPlayer();\n if (realPlayer.beforeDestroy) {\n realPlayer.beforeDestroy();\n }\n player.destroy();\n players.push(player);\n });\n }\n // this needs to be done so that the PRE/POST styles can be\n // computed properly without interfering with the previous animation\n eraseStyles(rootElement, instruction.fromStyles);\n }\n _buildAnimation(namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap) {\n const triggerName = instruction.triggerName;\n const rootElement = instruction.element;\n // we first run this so that the previous animation player\n // data can be passed into the successive animation players\n const allQueriedPlayers = [];\n const allConsumedElements = new Set();\n const allSubElements = new Set();\n const allNewPlayers = instruction.timelines.map((timelineInstruction) => {\n const element = timelineInstruction.element;\n allConsumedElements.add(element);\n // FIXME (matsko): make sure to-be-removed animations are removed properly\n const details = element[REMOVAL_FLAG];\n if (details && details.removedBeforeQueried)\n return new NoopAnimationPlayer(timelineInstruction.duration, timelineInstruction.delay);\n const isQueriedElement = element !== rootElement;\n const previousPlayers = flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY).map((p) => p.getRealPlayer())).filter((p) => {\n // the `element` is not apart of the AnimationPlayer definition, but\n // Mock/WebAnimations\n // use the element within their implementation. This will be added in Angular5 to\n // AnimationPlayer\n const pp = p;\n return pp.element ? pp.element === element : false;\n });\n const preStyles = preStylesMap.get(element);\n const postStyles = postStylesMap.get(element);\n const keyframes = normalizeKeyframes$1(this._normalizer, timelineInstruction.keyframes, preStyles, postStyles);\n const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);\n // this means that this particular player belongs to a sub trigger. It is\n // important that we match this player up with the corresponding (@trigger.listener)\n if (timelineInstruction.subTimeline && skippedPlayersMap) {\n allSubElements.add(element);\n }\n if (isQueriedElement) {\n const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);\n wrappedPlayer.setRealPlayer(player);\n allQueriedPlayers.push(wrappedPlayer);\n }\n return player;\n });\n allQueriedPlayers.forEach((player) => {\n getOrSetDefaultValue(this.playersByQueriedElement, player.element, []).push(player);\n player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));\n });\n allConsumedElements.forEach((element) => addClass(element, NG_ANIMATING_CLASSNAME));\n const player = optimizeGroupPlayer(allNewPlayers);\n player.onDestroy(() => {\n allConsumedElements.forEach((element) => removeClass(element, NG_ANIMATING_CLASSNAME));\n setStyles(rootElement, instruction.toStyles);\n });\n // this basically makes all of the callbacks for sub element animations\n // be dependent on the upper players for when they finish\n allSubElements.forEach((element) => {\n getOrSetDefaultValue(skippedPlayersMap, element, []).push(player);\n });\n return player;\n }\n _buildPlayer(instruction, keyframes, previousPlayers) {\n if (keyframes.length > 0) {\n return this.driver.animate(instruction.element, keyframes, instruction.duration, instruction.delay, instruction.easing, previousPlayers);\n }\n // special case for when an empty transition|definition is provided\n // ... there is no point in rendering an empty animation\n return new NoopAnimationPlayer(instruction.duration, instruction.delay);\n }\n}\nclass TransitionAnimationPlayer {\n constructor(namespaceId, triggerName, element) {\n this.namespaceId = namespaceId;\n this.triggerName = triggerName;\n this.element = element;\n this._player = new NoopAnimationPlayer();\n this._containsRealPlayer = false;\n this._queuedCallbacks = new Map();\n this.destroyed = false;\n this.parentPlayer = null;\n this.markedForDestroy = false;\n this.disabled = false;\n this.queued = true;\n this.totalTime = 0;\n }\n setRealPlayer(player) {\n if (this._containsRealPlayer)\n return;\n this._player = player;\n this._queuedCallbacks.forEach((callbacks, phase) => {\n callbacks.forEach((callback) => listenOnPlayer(player, phase, undefined, callback));\n });\n this._queuedCallbacks.clear();\n this._containsRealPlayer = true;\n this.overrideTotalTime(player.totalTime);\n this.queued = false;\n }\n getRealPlayer() {\n return this._player;\n }\n overrideTotalTime(totalTime) {\n this.totalTime = totalTime;\n }\n syncPlayerEvents(player) {\n const p = this._player;\n if (p.triggerCallback) {\n player.onStart(() => p.triggerCallback('start'));\n }\n player.onDone(() => this.finish());\n player.onDestroy(() => this.destroy());\n }\n _queueEvent(name, callback) {\n getOrSetDefaultValue(this._queuedCallbacks, name, []).push(callback);\n }\n onDone(fn) {\n if (this.queued) {\n this._queueEvent('done', fn);\n }\n this._player.onDone(fn);\n }\n onStart(fn) {\n if (this.queued) {\n this._queueEvent('start', fn);\n }\n this._player.onStart(fn);\n }\n onDestroy(fn) {\n if (this.queued) {\n this._queueEvent('destroy', fn);\n }\n this._player.onDestroy(fn);\n }\n init() {\n this._player.init();\n }\n hasStarted() {\n return this.queued ? false : this._player.hasStarted();\n }\n play() {\n !this.queued && this._player.play();\n }\n pause() {\n !this.queued && this._player.pause();\n }\n restart() {\n !this.queued && this._player.restart();\n }\n finish() {\n this._player.finish();\n }\n destroy() {\n this.destroyed = true;\n this._player.destroy();\n }\n reset() {\n !this.queued && this._player.reset();\n }\n setPosition(p) {\n if (!this.queued) {\n this._player.setPosition(p);\n }\n }\n getPosition() {\n return this.queued ? 0 : this._player.getPosition();\n }\n /** @internal */\n triggerCallback(phaseName) {\n const p = this._player;\n if (p.triggerCallback) {\n p.triggerCallback(phaseName);\n }\n }\n}\nfunction deleteOrUnsetInMap(map, key, value) {\n let currentValues = map.get(key);\n if (currentValues) {\n if (currentValues.length) {\n const index = currentValues.indexOf(value);\n currentValues.splice(index, 1);\n }\n if (currentValues.length == 0) {\n map.delete(key);\n }\n }\n return currentValues;\n}\nfunction normalizeTriggerValue(value) {\n // we use `!= null` here because it's the most simple\n // way to test against a \"falsy\" value without mixing\n // in empty strings or a zero value. DO NOT OPTIMIZE.\n return value != null ? value : null;\n}\nfunction isElementNode(node) {\n return node && node['nodeType'] === 1;\n}\nfunction isTriggerEventValid(eventName) {\n return eventName == 'start' || eventName == 'done';\n}\nfunction cloakElement(element, value) {\n const oldValue = element.style.display;\n element.style.display = value != null ? value : 'none';\n return oldValue;\n}\nfunction cloakAndComputeStyles(valuesMap, driver, elements, elementPropsMap, defaultStyle) {\n const cloakVals = [];\n elements.forEach((element) => cloakVals.push(cloakElement(element)));\n const failedElements = [];\n elementPropsMap.forEach((props, element) => {\n const styles = new Map();\n props.forEach((prop) => {\n const value = driver.computeStyle(element, prop, defaultStyle);\n styles.set(prop, value);\n // there is no easy way to detect this because a sub element could be removed\n // by a parent animation element being detached.\n if (!value || value.length == 0) {\n element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;\n failedElements.push(element);\n }\n });\n valuesMap.set(element, styles);\n });\n // we use a index variable here since Set.forEach(a, i) does not return\n // an index value for the closure (but instead just the value)\n let i = 0;\n elements.forEach((element) => cloakElement(element, cloakVals[i++]));\n return failedElements;\n}\n/*\nSince the Angular renderer code will return a collection of inserted\nnodes in all areas of a DOM tree, it's up to this algorithm to figure\nout which nodes are roots for each animation @trigger.\n\nBy placing each inserted node into a Set and traversing upwards, it\nis possible to find the @trigger elements and well any direct *star\ninsertion nodes, if a @trigger root is found then the enter element\nis placed into the Map[@trigger] spot.\n */\nfunction buildRootMap(roots, nodes) {\n const rootMap = new Map();\n roots.forEach((root) => rootMap.set(root, []));\n if (nodes.length == 0)\n return rootMap;\n const NULL_NODE = 1;\n const nodeSet = new Set(nodes);\n const localRootMap = new Map();\n function getRoot(node) {\n if (!node)\n return NULL_NODE;\n let root = localRootMap.get(node);\n if (root)\n return root;\n const parent = node.parentNode;\n if (rootMap.has(parent)) {\n // ngIf inside @trigger\n root = parent;\n }\n else if (nodeSet.has(parent)) {\n // ngIf inside ngIf\n root = NULL_NODE;\n }\n else {\n // recurse upwards\n root = getRoot(parent);\n }\n localRootMap.set(node, root);\n return root;\n }\n nodes.forEach((node) => {\n const root = getRoot(node);\n if (root !== NULL_NODE) {\n rootMap.get(root).push(node);\n }\n });\n return rootMap;\n}\nfunction addClass(element, className) {\n element.classList?.add(className);\n}\nfunction removeClass(element, className) {\n element.classList?.remove(className);\n}\nfunction removeNodesAfterAnimationDone(engine, element, players) {\n optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element));\n}\nfunction flattenGroupPlayers(players) {\n const finalPlayers = [];\n _flattenGroupPlayersRecur(players, finalPlayers);\n return finalPlayers;\n}\nfunction _flattenGroupPlayersRecur(players, finalPlayers) {\n for (let i = 0; i < players.length; i++) {\n const player = players[i];\n if (player instanceof ɵAnimationGroupPlayer) {\n _flattenGroupPlayersRecur(player.players, finalPlayers);\n }\n else {\n finalPlayers.push(player);\n }\n }\n}\nfunction objEquals(a, b) {\n const k1 = Object.keys(a);\n const k2 = Object.keys(b);\n if (k1.length != k2.length)\n return false;\n for (let i = 0; i < k1.length; i++) {\n const prop = k1[i];\n if (!b.hasOwnProperty(prop) || a[prop] !== b[prop])\n return false;\n }\n return true;\n}\nfunction replacePostStylesAsPre(element, allPreStyleElements, allPostStyleElements) {\n const postEntry = allPostStyleElements.get(element);\n if (!postEntry)\n return false;\n let preEntry = allPreStyleElements.get(element);\n if (preEntry) {\n postEntry.forEach((data) => preEntry.add(data));\n }\n else {\n allPreStyleElements.set(element, postEntry);\n }\n allPostStyleElements.delete(element);\n return true;\n}\n\nclass AnimationEngine {\n constructor(doc, _driver, _normalizer, scheduler) {\n this._driver = _driver;\n this._normalizer = _normalizer;\n this._triggerCache = {};\n // this method is designed to be overridden by the code that uses this engine\n this.onRemovalComplete = (element, context) => { };\n this._transitionEngine = new TransitionAnimationEngine(doc.body, _driver, _normalizer, scheduler);\n this._timelineEngine = new TimelineAnimationEngine(doc.body, _driver, _normalizer);\n this._transitionEngine.onRemovalComplete = (element, context) => this.onRemovalComplete(element, context);\n }\n registerTrigger(componentId, namespaceId, hostElement, name, metadata) {\n const cacheKey = componentId + '-' + name;\n let trigger = this._triggerCache[cacheKey];\n if (!trigger) {\n const errors = [];\n const warnings = [];\n const ast = buildAnimationAst(this._driver, metadata, errors, warnings);\n if (errors.length) {\n throw triggerBuildFailed(name, errors);\n }\n if (warnings.length) {\n warnTriggerBuild(name, warnings);\n }\n trigger = buildTrigger(name, ast, this._normalizer);\n this._triggerCache[cacheKey] = trigger;\n }\n this._transitionEngine.registerTrigger(namespaceId, name, trigger);\n }\n register(namespaceId, hostElement) {\n this._transitionEngine.register(namespaceId, hostElement);\n }\n destroy(namespaceId, context) {\n this._transitionEngine.destroy(namespaceId, context);\n }\n onInsert(namespaceId, element, parent, insertBefore) {\n this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);\n }\n onRemove(namespaceId, element, context) {\n this._transitionEngine.removeNode(namespaceId, element, context);\n }\n disableAnimations(element, disable) {\n this._transitionEngine.markElementAsDisabled(element, disable);\n }\n process(namespaceId, element, property, value) {\n if (property.charAt(0) == '@') {\n const [id, action] = parseTimelineCommand(property);\n const args = value;\n this._timelineEngine.command(id, element, action, args);\n }\n else {\n this._transitionEngine.trigger(namespaceId, element, property, value);\n }\n }\n listen(namespaceId, element, eventName, eventPhase, callback) {\n // @@listen\n if (eventName.charAt(0) == '@') {\n const [id, action] = parseTimelineCommand(eventName);\n return this._timelineEngine.listen(id, element, action, callback);\n }\n return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);\n }\n flush(microtaskId = -1) {\n this._transitionEngine.flush(microtaskId);\n }\n get players() {\n return [...this._transitionEngine.players, ...this._timelineEngine.players];\n }\n whenRenderingDone() {\n return this._transitionEngine.whenRenderingDone();\n }\n afterFlushAnimationsDone(cb) {\n this._transitionEngine.afterFlushAnimationsDone(cb);\n }\n}\n\n/**\n * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are\n * detected.\n *\n * In CSS there exist properties that cannot be animated within a keyframe animation\n * (whether it be via CSS keyframes or web-animations) and the animation implementation\n * will ignore them. This function is designed to detect those special cased styles and\n * return a container that will be executed at the start and end of the animation.\n *\n * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`\n */\nfunction packageNonAnimatableStyles(element, styles) {\n let startStyles = null;\n let endStyles = null;\n if (Array.isArray(styles) && styles.length) {\n startStyles = filterNonAnimatableStyles(styles[0]);\n if (styles.length > 1) {\n endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);\n }\n }\n else if (styles instanceof Map) {\n startStyles = filterNonAnimatableStyles(styles);\n }\n return startStyles || endStyles ? new SpecialCasedStyles(element, startStyles, endStyles) : null;\n}\n/**\n * Designed to be executed during a keyframe-based animation to apply any special-cased styles.\n *\n * When started (when the `start()` method is run) then the provided `startStyles`\n * will be applied. When finished (when the `finish()` method is called) the\n * `endStyles` will be applied as well any any starting styles. Finally when\n * `destroy()` is called then all styles will be removed.\n */\nclass SpecialCasedStyles {\n static { this.initialStylesByElement = new WeakMap(); }\n constructor(_element, _startStyles, _endStyles) {\n this._element = _element;\n this._startStyles = _startStyles;\n this._endStyles = _endStyles;\n this._state = 0 /* SpecialCasedStylesState.Pending */;\n let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);\n if (!initialStyles) {\n SpecialCasedStyles.initialStylesByElement.set(_element, (initialStyles = new Map()));\n }\n this._initialStyles = initialStyles;\n }\n start() {\n if (this._state < 1 /* SpecialCasedStylesState.Started */) {\n if (this._startStyles) {\n setStyles(this._element, this._startStyles, this._initialStyles);\n }\n this._state = 1 /* SpecialCasedStylesState.Started */;\n }\n }\n finish() {\n this.start();\n if (this._state < 2 /* SpecialCasedStylesState.Finished */) {\n setStyles(this._element, this._initialStyles);\n if (this._endStyles) {\n setStyles(this._element, this._endStyles);\n this._endStyles = null;\n }\n this._state = 1 /* SpecialCasedStylesState.Started */;\n }\n }\n destroy() {\n this.finish();\n if (this._state < 3 /* SpecialCasedStylesState.Destroyed */) {\n SpecialCasedStyles.initialStylesByElement.delete(this._element);\n if (this._startStyles) {\n eraseStyles(this._element, this._startStyles);\n this._endStyles = null;\n }\n if (this._endStyles) {\n eraseStyles(this._element, this._endStyles);\n this._endStyles = null;\n }\n setStyles(this._element, this._initialStyles);\n this._state = 3 /* SpecialCasedStylesState.Destroyed */;\n }\n }\n}\nfunction filterNonAnimatableStyles(styles) {\n let result = null;\n styles.forEach((val, prop) => {\n if (isNonAnimatableStyle(prop)) {\n result = result || new Map();\n result.set(prop, val);\n }\n });\n return result;\n}\nfunction isNonAnimatableStyle(prop) {\n return prop === 'display' || prop === 'position';\n}\n\nclass WebAnimationsPlayer {\n constructor(element, keyframes, options, _specialStyles) {\n this.element = element;\n this.keyframes = keyframes;\n this.options = options;\n this._specialStyles = _specialStyles;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._onDestroyFns = [];\n this._initialized = false;\n this._finished = false;\n this._started = false;\n this._destroyed = false;\n // the following original fns are persistent copies of the _onStartFns and _onDoneFns\n // and are used to reset the fns to their original values upon reset()\n // (since the _onStartFns and _onDoneFns get deleted after they are called)\n this._originalOnDoneFns = [];\n this._originalOnStartFns = [];\n this.time = 0;\n this.parentPlayer = null;\n this.currentSnapshot = new Map();\n this._duration = options['duration'];\n this._delay = options['delay'] || 0;\n this.time = this._duration + this._delay;\n }\n _onFinish() {\n if (!this._finished) {\n this._finished = true;\n this._onDoneFns.forEach((fn) => fn());\n this._onDoneFns = [];\n }\n }\n init() {\n this._buildPlayer();\n this._preparePlayerBeforeStart();\n }\n _buildPlayer() {\n if (this._initialized)\n return;\n this._initialized = true;\n const keyframes = this.keyframes;\n // @ts-expect-error overwriting a readonly property\n this.domPlayer = this._triggerWebAnimation(this.element, keyframes, this.options);\n this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : new Map();\n const onFinish = () => this._onFinish();\n this.domPlayer.addEventListener('finish', onFinish);\n this.onDestroy(() => {\n // We must remove the `finish` event listener once an animation has completed all its\n // iterations. This action is necessary to prevent a memory leak since the listener captures\n // `this`, creating a closure that prevents `this` from being garbage collected.\n this.domPlayer.removeEventListener('finish', onFinish);\n });\n }\n _preparePlayerBeforeStart() {\n // this is required so that the player doesn't start to animate right away\n if (this._delay) {\n this._resetDomPlayerState();\n }\n else {\n this.domPlayer.pause();\n }\n }\n _convertKeyframesToObject(keyframes) {\n const kfs = [];\n keyframes.forEach((frame) => {\n kfs.push(Object.fromEntries(frame));\n });\n return kfs;\n }\n /** @internal */\n _triggerWebAnimation(element, keyframes, options) {\n return element.animate(this._convertKeyframesToObject(keyframes), options);\n }\n onStart(fn) {\n this._originalOnStartFns.push(fn);\n this._onStartFns.push(fn);\n }\n onDone(fn) {\n this._originalOnDoneFns.push(fn);\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n play() {\n this._buildPlayer();\n if (!this.hasStarted()) {\n this._onStartFns.forEach((fn) => fn());\n this._onStartFns = [];\n this._started = true;\n if (this._specialStyles) {\n this._specialStyles.start();\n }\n }\n this.domPlayer.play();\n }\n pause() {\n this.init();\n this.domPlayer.pause();\n }\n finish() {\n this.init();\n if (this._specialStyles) {\n this._specialStyles.finish();\n }\n this._onFinish();\n this.domPlayer.finish();\n }\n reset() {\n this._resetDomPlayerState();\n this._destroyed = false;\n this._finished = false;\n this._started = false;\n this._onStartFns = this._originalOnStartFns;\n this._onDoneFns = this._originalOnDoneFns;\n }\n _resetDomPlayerState() {\n if (this.domPlayer) {\n this.domPlayer.cancel();\n }\n }\n restart() {\n this.reset();\n this.play();\n }\n hasStarted() {\n return this._started;\n }\n destroy() {\n if (!this._destroyed) {\n this._destroyed = true;\n this._resetDomPlayerState();\n this._onFinish();\n if (this._specialStyles) {\n this._specialStyles.destroy();\n }\n this._onDestroyFns.forEach((fn) => fn());\n this._onDestroyFns = [];\n }\n }\n setPosition(p) {\n if (this.domPlayer === undefined) {\n this.init();\n }\n this.domPlayer.currentTime = p * this.time;\n }\n getPosition() {\n // tsc is complaining with TS2362 without the conversion to number\n return +(this.domPlayer.currentTime ?? 0) / this.time;\n }\n get totalTime() {\n return this._delay + this._duration;\n }\n beforeDestroy() {\n const styles = new Map();\n if (this.hasStarted()) {\n // note: this code is invoked only when the `play` function was called prior to this\n // (thus `hasStarted` returns true), this implies that the code that initializes\n // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here\n const finalKeyframe = this._finalKeyframe;\n finalKeyframe.forEach((val, prop) => {\n if (prop !== 'offset') {\n styles.set(prop, this._finished ? val : computeStyle(this.element, prop));\n }\n });\n }\n this.currentSnapshot = styles;\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName === 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach((fn) => fn());\n methods.length = 0;\n }\n}\n\nclass WebAnimationsDriver {\n validateStyleProperty(prop) {\n // Perform actual validation in dev mode only, in prod mode this check is a noop.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n return validateStyleProperty(prop);\n }\n return true;\n }\n validateAnimatableStyleProperty(prop) {\n // Perform actual validation in dev mode only, in prod mode this check is a noop.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const cssProp = camelCaseToDashCase(prop);\n return validateWebAnimatableStyleProperty(cssProp);\n }\n return true;\n }\n matchesElement(_element, _selector) {\n // This method is deprecated and no longer in use so we return false.\n return false;\n }\n containsElement(elm1, elm2) {\n return containsElement(elm1, elm2);\n }\n getParentElement(element) {\n return getParentElement(element);\n }\n query(element, selector, multi) {\n return invokeQuery(element, selector, multi);\n }\n computeStyle(element, prop, defaultValue) {\n return computeStyle(element, prop);\n }\n animate(element, keyframes, duration, delay, easing, previousPlayers = []) {\n const fill = delay == 0 ? 'both' : 'forwards';\n const playerOptions = { duration, delay, fill };\n // we check for this to avoid having a null|undefined value be present\n // for the easing (which results in an error for certain browsers #9752)\n if (easing) {\n playerOptions['easing'] = easing;\n }\n const previousStyles = new Map();\n const previousWebAnimationPlayers = (previousPlayers.filter((player) => player instanceof WebAnimationsPlayer));\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousWebAnimationPlayers.forEach((player) => {\n player.currentSnapshot.forEach((val, prop) => previousStyles.set(prop, val));\n });\n }\n let _keyframes = normalizeKeyframes(keyframes).map((styles) => new Map(styles));\n _keyframes = balancePreviousStylesIntoKeyframes(element, _keyframes, previousStyles);\n const specialStyles = packageNonAnimatableStyles(element, _keyframes);\n return new WebAnimationsPlayer(element, _keyframes, playerOptions, specialStyles);\n }\n}\n\nfunction createEngine(type, doc, scheduler) {\n // TODO: find a way to make this tree shakable.\n if (type === 'noop') {\n return new AnimationEngine(doc, new NoopAnimationDriver(), new NoopAnimationStyleNormalizer(), scheduler);\n }\n return new AnimationEngine(doc, new WebAnimationsDriver(), new WebAnimationsStyleNormalizer(), scheduler);\n}\n\nclass Animation {\n constructor(_driver, input) {\n this._driver = _driver;\n const errors = [];\n const warnings = [];\n const ast = buildAnimationAst(_driver, input, errors, warnings);\n if (errors.length) {\n throw validationFailed(errors);\n }\n if (warnings.length) {\n warnValidation(warnings);\n }\n this._animationAst = ast;\n }\n buildTimelines(element, startingStyles, destinationStyles, options, subInstructions) {\n const start = Array.isArray(startingStyles)\n ? normalizeStyles(startingStyles)\n : startingStyles;\n const dest = Array.isArray(destinationStyles)\n ? normalizeStyles(destinationStyles)\n : destinationStyles;\n const errors = [];\n subInstructions = subInstructions || new ElementInstructionMap();\n const result = buildAnimationTimelines(this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest, options, subInstructions, errors);\n if (errors.length) {\n throw buildingFailed(errors);\n }\n return result;\n }\n}\n\nconst ANIMATION_PREFIX = '@';\nconst DISABLE_ANIMATIONS_FLAG = '@.disabled';\nclass BaseAnimationRenderer {\n constructor(namespaceId, delegate, engine, _onDestroy) {\n this.namespaceId = namespaceId;\n this.delegate = delegate;\n this.engine = engine;\n this._onDestroy = _onDestroy;\n // We need to explicitly type this property because of an api-extractor bug\n // See https://github.com/microsoft/rushstack/issues/4390\n this.ɵtype = 0 /* AnimationRendererType.Regular */;\n }\n get data() {\n return this.delegate.data;\n }\n destroyNode(node) {\n this.delegate.destroyNode?.(node);\n }\n destroy() {\n this.engine.destroy(this.namespaceId, this.delegate);\n this.engine.afterFlushAnimationsDone(() => {\n // Call the renderer destroy method after the animations has finished as otherwise\n // styles will be removed too early which will cause an unstyled animation.\n queueMicrotask(() => {\n this.delegate.destroy();\n });\n });\n this._onDestroy?.();\n }\n createElement(name, namespace) {\n return this.delegate.createElement(name, namespace);\n }\n createComment(value) {\n return this.delegate.createComment(value);\n }\n createText(value) {\n return this.delegate.createText(value);\n }\n appendChild(parent, newChild) {\n this.delegate.appendChild(parent, newChild);\n this.engine.onInsert(this.namespaceId, newChild, parent, false);\n }\n insertBefore(parent, newChild, refChild, isMove = true) {\n this.delegate.insertBefore(parent, newChild, refChild);\n // If `isMove` true than we should animate this insert.\n this.engine.onInsert(this.namespaceId, newChild, parent, isMove);\n }\n removeChild(parent, oldChild, isHostElement) {\n this.engine.onRemove(this.namespaceId, oldChild, this.delegate);\n }\n selectRootElement(selectorOrNode, preserveContent) {\n return this.delegate.selectRootElement(selectorOrNode, preserveContent);\n }\n parentNode(node) {\n return this.delegate.parentNode(node);\n }\n nextSibling(node) {\n return this.delegate.nextSibling(node);\n }\n setAttribute(el, name, value, namespace) {\n this.delegate.setAttribute(el, name, value, namespace);\n }\n removeAttribute(el, name, namespace) {\n this.delegate.removeAttribute(el, name, namespace);\n }\n addClass(el, name) {\n this.delegate.addClass(el, name);\n }\n removeClass(el, name) {\n this.delegate.removeClass(el, name);\n }\n setStyle(el, style, value, flags) {\n this.delegate.setStyle(el, style, value, flags);\n }\n removeStyle(el, style, flags) {\n this.delegate.removeStyle(el, style, flags);\n }\n setProperty(el, name, value) {\n if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {\n this.disableAnimations(el, !!value);\n }\n else {\n this.delegate.setProperty(el, name, value);\n }\n }\n setValue(node, value) {\n this.delegate.setValue(node, value);\n }\n listen(target, eventName, callback) {\n return this.delegate.listen(target, eventName, callback);\n }\n disableAnimations(element, value) {\n this.engine.disableAnimations(element, value);\n }\n}\nclass AnimationRenderer extends BaseAnimationRenderer {\n constructor(factory, namespaceId, delegate, engine, onDestroy) {\n super(namespaceId, delegate, engine, onDestroy);\n this.factory = factory;\n this.namespaceId = namespaceId;\n }\n setProperty(el, name, value) {\n if (name.charAt(0) == ANIMATION_PREFIX) {\n if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {\n value = value === undefined ? true : !!value;\n this.disableAnimations(el, value);\n }\n else {\n this.engine.process(this.namespaceId, el, name.slice(1), value);\n }\n }\n else {\n this.delegate.setProperty(el, name, value);\n }\n }\n listen(target, eventName, callback) {\n if (eventName.charAt(0) == ANIMATION_PREFIX) {\n const element = resolveElementFromTarget(target);\n let name = eventName.slice(1);\n let phase = '';\n // @listener.phase is for trigger animation callbacks\n // @@listener is for animation builder callbacks\n if (name.charAt(0) != ANIMATION_PREFIX) {\n [name, phase] = parseTriggerCallbackName(name);\n }\n return this.engine.listen(this.namespaceId, element, name, phase, (event) => {\n const countId = event['_data'] || -1;\n this.factory.scheduleListenerCallback(countId, callback, event);\n });\n }\n return this.delegate.listen(target, eventName, callback);\n }\n}\nfunction resolveElementFromTarget(target) {\n switch (target) {\n case 'body':\n return document.body;\n case 'document':\n return document;\n case 'window':\n return window;\n default:\n return target;\n }\n}\nfunction parseTriggerCallbackName(triggerName) {\n const dotIndex = triggerName.indexOf('.');\n const trigger = triggerName.substring(0, dotIndex);\n const phase = triggerName.slice(dotIndex + 1);\n return [trigger, phase];\n}\n\nclass AnimationRendererFactory {\n constructor(delegate, engine, _zone) {\n this.delegate = delegate;\n this.engine = engine;\n this._zone = _zone;\n this._currentId = 0;\n this._microtaskId = 1;\n this._animationCallbacksBuffer = [];\n this._rendererCache = new Map();\n this._cdRecurDepth = 0;\n engine.onRemovalComplete = (element, delegate) => {\n // Note: if a component element has a leave animation, and a host leave animation,\n // the view engine will call `removeChild` for the parent\n // component renderer as well as for the child component renderer.\n // Therefore, we need to check if we already removed the element.\n const parentNode = delegate?.parentNode(element);\n if (parentNode) {\n delegate.removeChild(parentNode, element);\n }\n };\n }\n createRenderer(hostElement, type) {\n const EMPTY_NAMESPACE_ID = '';\n // cache the delegates to find out which cached delegate can\n // be used by which cached renderer\n const delegate = this.delegate.createRenderer(hostElement, type);\n if (!hostElement || !type?.data?.['animation']) {\n const cache = this._rendererCache;\n let renderer = cache.get(delegate);\n if (!renderer) {\n // Ensure that the renderer is removed from the cache on destroy\n // since it may contain references to detached DOM nodes.\n const onRendererDestroy = () => cache.delete(delegate);\n renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine, onRendererDestroy);\n // only cache this result when the base renderer is used\n cache.set(delegate, renderer);\n }\n return renderer;\n }\n const componentId = type.id;\n const namespaceId = type.id + '-' + this._currentId;\n this._currentId++;\n this.engine.register(namespaceId, hostElement);\n const registerTrigger = (trigger) => {\n if (Array.isArray(trigger)) {\n trigger.forEach(registerTrigger);\n }\n else {\n this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);\n }\n };\n const animationTriggers = type.data['animation'];\n animationTriggers.forEach(registerTrigger);\n return new AnimationRenderer(this, namespaceId, delegate, this.engine);\n }\n begin() {\n this._cdRecurDepth++;\n if (this.delegate.begin) {\n this.delegate.begin();\n }\n }\n _scheduleCountTask() {\n queueMicrotask(() => {\n this._microtaskId++;\n });\n }\n /** @internal */\n scheduleListenerCallback(count, fn, data) {\n if (count >= 0 && count < this._microtaskId) {\n this._zone.run(() => fn(data));\n return;\n }\n const animationCallbacksBuffer = this._animationCallbacksBuffer;\n if (animationCallbacksBuffer.length == 0) {\n queueMicrotask(() => {\n this._zone.run(() => {\n animationCallbacksBuffer.forEach((tuple) => {\n const [fn, data] = tuple;\n fn(data);\n });\n this._animationCallbacksBuffer = [];\n });\n });\n }\n animationCallbacksBuffer.push([fn, data]);\n }\n end() {\n this._cdRecurDepth--;\n // this is to prevent animations from running twice when an inner\n // component does CD when a parent component instead has inserted it\n if (this._cdRecurDepth == 0) {\n this._zone.runOutsideAngular(() => {\n this._scheduleCountTask();\n this.engine.flush(this._microtaskId);\n });\n }\n if (this.delegate.end) {\n this.delegate.end();\n }\n }\n whenRenderingDone() {\n return this.engine.whenRenderingDone();\n }\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AnimationDriver, NoopAnimationDriver, Animation as ɵAnimation, AnimationEngine as ɵAnimationEngine, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, AnimationStyleNormalizer as ɵAnimationStyleNormalizer, BaseAnimationRenderer as ɵBaseAnimationRenderer, NoopAnimationStyleNormalizer as ɵNoopAnimationStyleNormalizer, WebAnimationsDriver as ɵWebAnimationsDriver, WebAnimationsPlayer as ɵWebAnimationsPlayer, WebAnimationsStyleNormalizer as ɵWebAnimationsStyleNormalizer, allowPreviousPlayerStylesMerge as ɵallowPreviousPlayerStylesMerge, camelCaseToDashCase as ɵcamelCaseToDashCase, containsElement as ɵcontainsElement, createEngine as ɵcreateEngine, getParentElement as ɵgetParentElement, invokeQuery as ɵinvokeQuery, normalizeKeyframes as ɵnormalizeKeyframes, validateStyleProperty as ɵvalidateStyleProperty, validateWebAnimatableStyleProperty as ɵvalidateWebAnimatableStyleProperty };\n","/**\n * @license Angular v17.2.1\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { inject, ɵChangeDetectionScheduler, Injectable, Inject, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE, NgModule } from '@angular/core';\nexport { ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵWebAnimationsStyleNormalizer, ɵAnimationRendererFactory, ɵAnimationStyleNormalizer, AnimationDriver, ɵWebAnimationsDriver, NoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\n\nclass InjectableAnimationEngine extends ɵAnimationEngine {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(doc, driver, normalizer) {\n super(doc, driver, normalizer, inject(ɵChangeDetectionScheduler, { optional: true }));\n }\n ngOnDestroy() {\n this.flush();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: InjectableAnimationEngine }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: InjectableAnimationEngine, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1.AnimationDriver }, { type: i1.ɵAnimationStyleNormalizer }] });\nfunction instantiateDefaultStyleNormalizer() {\n return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n return new ɵAnimationRendererFactory(renderer, engine, zone);\n}\nconst SHARED_ANIMATION_PROVIDERS = [\n { provide: ɵAnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },\n { provide: ɵAnimationEngine, useClass: InjectableAnimationEngine }, {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n }\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [\n { provide: AnimationDriver, useFactory: () => new ɵWebAnimationsDriver() },\n { provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }, ...SHARED_ANIMATION_PROVIDERS\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [\n { provide: AnimationDriver, useClass: NoopAnimationDriver },\n { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }, ...SHARED_ANIMATION_PROVIDERS\n];\n\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nclass BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see {@link BrowserAnimationsModuleConfig}\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(config) {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS :\n BROWSER_ANIMATIONS_PROVIDERS\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.2.1\", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: BrowserAnimationsModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [BrowserModule],\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n }]\n }] });\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideAnimations` call results in app code.\n return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nclass NoopAnimationsModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.2.1\", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.1\", ngImport: i0, type: NoopAnimationsModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [BrowserModule],\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n }]\n }] });\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideNoopAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideNoopAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideNoopAnimations` call results in app code.\n return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","import * as i1 from '@angular/cdk/scrolling';\nimport { CdkScrollable, CdkScrollableModule } from '@angular/cdk/scrolling';\nimport * as i5 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, EventEmitter, Optional, Input, Output, ViewChild, QueryList, ContentChildren, ContentChild, NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport * as i2 from '@angular/cdk/a11y';\nimport * as i4 from '@angular/cdk/bidi';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport * as i3 from '@angular/cdk/platform';\nimport { Subject, fromEvent, merge } from 'rxjs';\nimport { filter, map, mapTo, takeUntil, distinctUntilChanged, take, startWith, debounceTime } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the Material drawers.\n * @docs-private\n */\nconst matDrawerAnimations = {\n /** Animation that slides a drawer in and out. */\n transformDrawer: trigger('transform', [\n // We remove the `transform` here completely, rather than setting it to zero, because:\n // 1. Having a transform can cause elements with ripples or an animated\n // transform to shift around in Chrome with an RTL layout (see #10023).\n // 2. 3d transforms causes text to appear blurry on IE and Edge.\n state('open, open-instant', style({\n 'transform': 'none',\n 'visibility': 'visible',\n })),\n state('void', style({\n // Avoids the shadow showing up when closed in SSR.\n 'box-shadow': 'none',\n 'visibility': 'hidden',\n })),\n transition('void => open-instant', animate('0ms')),\n transition('void <=> open, open-instant => void', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),\n ]),\n};\n\n/**\n * Throws an exception when two MatDrawer are matching the same position.\n * @docs-private\n */\nfunction throwMatDuplicatedDrawerError(position) {\n throw Error(`A drawer was already declared for 'position=\"${position}\"'`);\n}\n/** Configures whether drawers should use auto sizing by default. */\nconst MAT_DRAWER_DEFAULT_AUTOSIZE = new InjectionToken('MAT_DRAWER_DEFAULT_AUTOSIZE', {\n providedIn: 'root',\n factory: MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY,\n});\n/**\n * Used to provide a drawer container to a drawer while avoiding circular references.\n * @docs-private\n */\nconst MAT_DRAWER_CONTAINER = new InjectionToken('MAT_DRAWER_CONTAINER');\n/** @docs-private */\nfunction MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY() {\n return false;\n}\nclass MatDrawerContent extends CdkScrollable {\n constructor(_changeDetectorRef, _container, elementRef, scrollDispatcher, ngZone) {\n super(elementRef, scrollDispatcher, ngZone);\n this._changeDetectorRef = _changeDetectorRef;\n this._container = _container;\n }\n ngAfterContentInit() {\n this._container._contentMarginChanges.subscribe(() => {\n this._changeDetectorRef.markForCheck();\n });\n }\n}\nMatDrawerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatDrawerContent, deps: [{ token: i0.ChangeDetectorRef }, { token: forwardRef(() => MatDrawerContainer) }, { token: i0.ElementRef }, { token: i1.ScrollDispatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nMatDrawerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatDrawerContent, selector: \"mat-drawer-content\", host: { properties: { \"style.margin-left.px\": \"_container._contentMargins.left\", \"style.margin-right.px\": \"_container._contentMargins.right\" }, classAttribute: \"mat-drawer-content\" }, providers: [\n {\n provide: CdkScrollable,\n useExisting: MatDrawerContent,\n },\n ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatDrawerContent, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-drawer-content',\n template: '',\n host: {\n 'class': 'mat-drawer-content',\n '[style.margin-left.px]': '_container._contentMargins.left',\n '[style.margin-right.px]': '_container._contentMargins.right',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: CdkScrollable,\n useExisting: MatDrawerContent,\n },\n ],\n }]\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: MatDrawerContainer, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatDrawerContainer)]\n }] }, { type: i0.ElementRef }, { type: i1.ScrollDispatcher }, { type: i0.NgZone }]; } });\n/**\n * This component corresponds to a drawer that can be opened on the drawer container.\n */\nclass MatDrawer {\n constructor(_elementRef, _focusTrapFactory, _focusMonitor, _platform, _ngZone, _interactivityChecker, _doc, _container) {\n this._elementRef = _elementRef;\n this._focusTrapFactory = _focusTrapFactory;\n this._focusMonitor = _focusMonitor;\n this._platform = _platform;\n this._ngZone = _ngZone;\n this._interactivityChecker = _interactivityChecker;\n this._doc = _doc;\n this._container = _container;\n this._elementFocusedBeforeDrawerWasOpened = null;\n /** Whether the drawer is initialized. Used for disabling the initial animation. */\n this._enableAnimations = false;\n this._position = 'start';\n this._mode = 'over';\n this._disableClose = false;\n this._opened = false;\n /** Emits whenever the drawer has started animating. */\n this._animationStarted = new Subject();\n /** Emits whenever the drawer is done animating. */\n this._animationEnd = new Subject();\n /** Current state of the sidenav animation. */\n this._animationState = 'void';\n /** Event emitted when the drawer open state is changed. */\n this.openedChange = \n // Note this has to be async in order to avoid some issues with two-bindings (see #8872).\n new EventEmitter(/* isAsync */ true);\n /** Event emitted when the drawer has been opened. */\n this._openedStream = this.openedChange.pipe(filter(o => o), map(() => { }));\n /** Event emitted when the drawer has started opening. */\n this.openedStart = this._animationStarted.pipe(filter(e => e.fromState !== e.toState && e.toState.indexOf('open') === 0), mapTo(undefined));\n /** Event emitted when the drawer has been closed. */\n this._closedStream = this.openedChange.pipe(filter(o => !o), map(() => { }));\n /** Event emitted when the drawer has started closing. */\n this.closedStart = this._animationStarted.pipe(filter(e => e.fromState !== e.toState && e.toState === 'void'), mapTo(undefined));\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /** Event emitted when the drawer's position changes. */\n // tslint:disable-next-line:no-output-on-prefix\n this.onPositionChanged = new EventEmitter();\n /**\n * An observable that emits when the drawer mode changes. This is used by the drawer container to\n * to know when to when the mode changes so it can adapt the margins on the content.\n */\n this._modeChanged = new Subject();\n this.openedChange.subscribe((opened) => {\n if (opened) {\n if (this._doc) {\n this._elementFocusedBeforeDrawerWasOpened = this._doc.activeElement;\n }\n this._takeFocus();\n }\n else if (this._isFocusWithinDrawer()) {\n this._restoreFocus(this._openedVia || 'program');\n }\n });\n /**\n * Listen to `keydown` events outside the zone so that change detection is not run every\n * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed\n * and we don't have close disabled.\n */\n this._ngZone.runOutsideAngular(() => {\n fromEvent(this._elementRef.nativeElement, 'keydown')\n .pipe(filter(event => {\n return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);\n }), takeUntil(this._destroyed))\n .subscribe(event => this._ngZone.run(() => {\n this.close();\n event.stopPropagation();\n event.preventDefault();\n }));\n });\n // We need a Subject with distinctUntilChanged, because the `done` event\n // fires twice on some browsers. See https://github.com/angular/angular/issues/24084\n this._animationEnd\n .pipe(distinctUntilChanged((x, y) => {\n return x.fromState === y.fromState && x.toState === y.toState;\n }))\n .subscribe((event) => {\n const { fromState, toState } = event;\n if ((toState.indexOf('open') === 0 && fromState === 'void') ||\n (toState === 'void' && fromState.indexOf('open') === 0)) {\n this.openedChange.emit(this._opened);\n }\n });\n }\n /** The side that the drawer is attached to. */\n get position() {\n return this._position;\n }\n set position(value) {\n // Make sure we have a valid value.\n value = value === 'end' ? 'end' : 'start';\n if (value !== this._position) {\n // Static inputs in Ivy are set before the element is in the DOM.\n if (this._isAttached) {\n this._updatePositionInParent(value);\n }\n this._position = value;\n this.onPositionChanged.emit();\n }\n }\n /** Mode of the drawer; one of 'over', 'push' or 'side'. */\n get mode() {\n return this._mode;\n }\n set mode(value) {\n this._mode = value;\n this._updateFocusTrapState();\n this._modeChanged.next();\n }\n /** Whether the drawer can be closed with the escape key or by clicking on the backdrop. */\n get disableClose() {\n return this._disableClose;\n }\n set disableClose(value) {\n this._disableClose = coerceBooleanProperty(value);\n }\n /**\n * Whether the drawer should focus the first focusable element automatically when opened.\n * Defaults to false in when `mode` is set to `side`, otherwise defaults to `true`. If explicitly\n * enabled, focus will be moved into the sidenav in `side` mode as well.\n * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or AutoFocusTarget\n * instead.\n */\n get autoFocus() {\n const value = this._autoFocus;\n // Note that usually we don't allow autoFocus to be set to `first-tabbable` in `side` mode,\n // because we don't know how the sidenav is being used, but in some cases it still makes\n // sense to do it. The consumer can explicitly set `autoFocus`.\n if (value == null) {\n if (this.mode === 'side') {\n return 'dialog';\n }\n else {\n return 'first-tabbable';\n }\n }\n return value;\n }\n set autoFocus(value) {\n if (value === 'true' || value === 'false' || value == null) {\n value = coerceBooleanProperty(value);\n }\n this._autoFocus = value;\n }\n /**\n * Whether the drawer is opened. We overload this because we trigger an event when it\n * starts or end.\n */\n get opened() {\n return this._opened;\n }\n set opened(value) {\n this.toggle(coerceBooleanProperty(value));\n }\n /**\n * Focuses the provided element. If the element is not focusable, it will add a tabIndex\n * attribute to forcefully focus it. The attribute is removed after focus is moved.\n * @param element The element to focus.\n */\n _forceFocus(element, options) {\n if (!this._interactivityChecker.isFocusable(element)) {\n element.tabIndex = -1;\n // The tabindex attribute should be removed to avoid navigating to that element again\n this._ngZone.runOutsideAngular(() => {\n const callback = () => {\n element.removeEventListener('blur', callback);\n element.removeEventListener('mousedown', callback);\n element.removeAttribute('tabindex');\n };\n element.addEventListener('blur', callback);\n element.addEventListener('mousedown', callback);\n });\n }\n element.focus(options);\n }\n /**\n * Focuses the first element that matches the given selector within the focus trap.\n * @param selector The CSS selector for the element to set focus to.\n */\n _focusByCssSelector(selector, options) {\n let elementToFocus = this._elementRef.nativeElement.querySelector(selector);\n if (elementToFocus) {\n this._forceFocus(elementToFocus, options);\n }\n }\n /**\n * Moves focus into the drawer. Note that this works even if\n * the focus trap is disabled in `side` mode.\n */\n _takeFocus() {\n if (!this._focusTrap) {\n return;\n }\n const element = this._elementRef.nativeElement;\n // When autoFocus is not on the sidenav, if the element cannot be focused or does\n // not exist, focus the sidenav itself so the keyboard navigation still works.\n // We need to check that `focus` is a function due to Universal.\n switch (this.autoFocus) {\n case false:\n case 'dialog':\n return;\n case true:\n case 'first-tabbable':\n this._focusTrap.focusInitialElementWhenReady().then(hasMovedFocus => {\n if (!hasMovedFocus && typeof this._elementRef.nativeElement.focus === 'function') {\n element.focus();\n }\n });\n break;\n case 'first-heading':\n this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role=\"heading\"]');\n break;\n default:\n this._focusByCssSelector(this.autoFocus);\n break;\n }\n }\n /**\n * Restores focus to the element that was originally focused when the drawer opened.\n * If no element was focused at that time, the focus will be restored to the drawer.\n */\n _restoreFocus(focusOrigin) {\n if (this.autoFocus === 'dialog') {\n return;\n }\n if (this._elementFocusedBeforeDrawerWasOpened) {\n this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened, focusOrigin);\n }\n else {\n this._elementRef.nativeElement.blur();\n }\n this._elementFocusedBeforeDrawerWasOpened = null;\n }\n /** Whether focus is currently within the drawer. */\n _isFocusWithinDrawer() {\n const activeEl = this._doc.activeElement;\n return !!activeEl && this._elementRef.nativeElement.contains(activeEl);\n }\n ngAfterViewInit() {\n this._isAttached = true;\n this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\n this._updateFocusTrapState();\n // Only update the DOM position when the sidenav is positioned at\n // the end since we project the sidenav before the content by default.\n if (this._position === 'end') {\n this._updatePositionInParent('end');\n }\n }\n ngAfterContentChecked() {\n // Enable the animations after the lifecycle hooks have run, in order to avoid animating\n // drawers that are open by default. When we're on the server, we shouldn't enable the\n // animations, because we don't want the drawer to animate the first time the user sees\n // the page.\n if (this._platform.isBrowser) {\n this._enableAnimations = true;\n }\n }\n ngOnDestroy() {\n if (this._focusTrap) {\n this._focusTrap.destroy();\n }\n this._anchor?.remove();\n this._anchor = null;\n this._animationStarted.complete();\n this._animationEnd.complete();\n this._modeChanged.complete();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /**\n * Open the drawer.\n * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.\n * Used for focus management after the sidenav is closed.\n */\n open(openedVia) {\n return this.toggle(true, openedVia);\n }\n /** Close the drawer. */\n close() {\n return this.toggle(false);\n }\n /** Closes the drawer with context that the backdrop was clicked. */\n _closeViaBackdropClick() {\n // If the drawer is closed upon a backdrop click, we always want to restore focus. We\n // don't need to check whether focus is currently in the drawer, as clicking on the\n // backdrop causes blurs the active element.\n return this._setOpen(/* isOpen */ false, /* restoreFocus */ true, 'mouse');\n }\n /**\n * Toggle this drawer.\n * @param isOpen Whether the drawer should be open.\n * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.\n * Used for focus management after the sidenav is closed.\n */\n toggle(isOpen = !this.opened, openedVia) {\n // If the focus is currently inside the drawer content and we are closing the drawer,\n // restore the focus to the initially focused element (when the drawer opened).\n if (isOpen && openedVia) {\n this._openedVia = openedVia;\n }\n const result = this._setOpen(isOpen, \n /* restoreFocus */ !isOpen && this._isFocusWithinDrawer(), this._openedVia || 'program');\n if (!isOpen) {\n this._openedVia = null;\n }\n return result;\n }\n /**\n * Toggles the opened state of the drawer.\n * @param isOpen Whether the drawer should open or close.\n * @param restoreFocus Whether focus should be restored on close.\n * @param focusOrigin Origin to use when restoring focus.\n */\n _setOpen(isOpen, restoreFocus, focusOrigin) {\n this._opened = isOpen;\n if (isOpen) {\n this._animationState = this._enableAnimations ? 'open' : 'open-instant';\n }\n else {\n this._animationState = 'void';\n if (restoreFocus) {\n this._restoreFocus(focusOrigin);\n }\n }\n this._updateFocusTrapState();\n return new Promise(resolve => {\n this.openedChange.pipe(take(1)).subscribe(open => resolve(open ? 'open' : 'close'));\n });\n }\n _getWidth() {\n return this._elementRef.nativeElement ? this._elementRef.nativeElement.offsetWidth || 0 : 0;\n }\n /** Updates the enabled state of the focus trap. */\n _updateFocusTrapState() {\n if (this._focusTrap) {\n // The focus trap is only enabled when the drawer is open in any mode other than side.\n this._focusTrap.enabled = this.opened && this.mode !== 'side';\n }\n }\n /**\n * Updates the position of the drawer in the DOM. We need to move the element around ourselves\n * when it's in the `end` position so that it comes after the content and the visual order\n * matches the tab order. We also need to be able to move it back to `start` if the sidenav\n * started off as `end` and was changed to `start`.\n */\n _updatePositionInParent(newPosition) {\n const element = this._elementRef.nativeElement;\n const parent = element.parentNode;\n if (newPosition === 'end') {\n if (!this._anchor) {\n this._anchor = this._doc.createComment('mat-drawer-anchor');\n parent.insertBefore(this._anchor, element);\n }\n parent.appendChild(element);\n }\n else if (this._anchor) {\n this._anchor.parentNode.insertBefore(element, this._anchor);\n }\n }\n}\nMatDrawer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatDrawer, deps: [{ token: i0.ElementRef }, { token: i2.FocusTrapFactory }, { token: i2.FocusMonitor }, { token: i3.Platform }, { token: i0.NgZone }, { token: i2.InteractivityChecker }, { token: DOCUMENT, optional: true }, { token: MAT_DRAWER_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatDrawer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatDrawer, selector: \"mat-drawer\", inputs: { position: \"position\", mode: \"mode\", disableClose: \"disableClose\", autoFocus: \"autoFocus\", opened: \"opened\" }, outputs: { openedChange: \"openedChange\", _openedStream: \"opened\", openedStart: \"openedStart\", _closedStream: \"closed\", closedStart: \"closedStart\", onPositionChanged: \"positionChanged\" }, host: { attributes: { \"tabIndex\": \"-1\" }, listeners: { \"@transform.start\": \"_animationStarted.next($event)\", \"@transform.done\": \"_animationEnd.next($event)\" }, properties: { \"attr.align\": \"null\", \"class.mat-drawer-end\": \"position === \\\"end\\\"\", \"class.mat-drawer-over\": \"mode === \\\"over\\\"\", \"class.mat-drawer-push\": \"mode === \\\"push\\\"\", \"class.mat-drawer-side\": \"mode === \\\"side\\\"\", \"class.mat-drawer-opened\": \"opened\", \"@transform\": \"_animationState\" }, classAttribute: \"mat-drawer\" }, viewQueries: [{ propertyName: \"_content\", first: true, predicate: [\"content\"], descendants: true }], exportAs: [\"matDrawer\"], ngImport: i0, template: \"
\\r\\n \\r\\n
\\r\\n\", dependencies: [{ kind: \"directive\", type: i1.CdkScrollable, selector: \"[cdk-scrollable], [cdkScrollable]\" }], animations: [matDrawerAnimations.transformDrawer], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatDrawer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-drawer', exportAs: 'matDrawer', animations: [matDrawerAnimations.transformDrawer], host: {\n 'class': 'mat-drawer',\n // must prevent the browser from aligning text based on value\n '[attr.align]': 'null',\n '[class.mat-drawer-end]': 'position === \"end\"',\n '[class.mat-drawer-over]': 'mode === \"over\"',\n '[class.mat-drawer-push]': 'mode === \"push\"',\n '[class.mat-drawer-side]': 'mode === \"side\"',\n '[class.mat-drawer-opened]': 'opened',\n 'tabIndex': '-1',\n '[@transform]': '_animationState',\n '(@transform.start)': '_animationStarted.next($event)',\n '(@transform.done)': '_animationEnd.next($event)',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"
\\r\\n \\r\\n
\\r\\n\" }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.FocusTrapFactory }, { type: i2.FocusMonitor }, { type: i3.Platform }, { type: i0.NgZone }, { type: i2.InteractivityChecker }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: MatDrawerContainer, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DRAWER_CONTAINER]\n }] }]; }, propDecorators: { position: [{\n type: Input\n }], mode: [{\n type: Input\n }], disableClose: [{\n type: Input\n }], autoFocus: [{\n type: Input\n }], opened: [{\n type: Input\n }], openedChange: [{\n type: Output\n }], _openedStream: [{\n type: Output,\n args: ['opened']\n }], openedStart: [{\n type: Output\n }], _closedStream: [{\n type: Output,\n args: ['closed']\n }], closedStart: [{\n type: Output\n }], onPositionChanged: [{\n type: Output,\n args: ['positionChanged']\n }], _content: [{\n type: ViewChild,\n args: ['content']\n }] } });\n/**\n * `` component.\n *\n * This is the parent component to one or two ``s that validates the state internally\n * and coordinates the backdrop and content styling.\n */\nclass MatDrawerContainer {\n constructor(_dir, _element, _ngZone, _changeDetectorRef, viewportRuler, defaultAutosize = false, _animationMode) {\n this._dir = _dir;\n this._element = _element;\n this._ngZone = _ngZone;\n this._changeDetectorRef = _changeDetectorRef;\n this._animationMode = _animationMode;\n /** Drawers that belong to this container. */\n this._drawers = new QueryList();\n /** Event emitted when the drawer backdrop is clicked. */\n this.backdropClick = new EventEmitter();\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /** Emits on every ngDoCheck. Used for debouncing reflows. */\n this._doCheckSubject = new Subject();\n /**\n * Margins to be applied to the content. These are used to push / shrink the drawer content when a\n * drawer is open. We use margin rather than transform even for push mode because transform breaks\n * fixed position elements inside of the transformed element.\n */\n this._contentMargins = { left: null, right: null };\n this._contentMarginChanges = new Subject();\n // If a `Dir` directive exists up the tree, listen direction changes\n // and update the left/right properties to point to the proper start/end.\n if (_dir) {\n _dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {\n this._validateDrawers();\n this.updateContentMargins();\n });\n }\n // Since the minimum width of the sidenav depends on the viewport width,\n // we need to recompute the margins if the viewport changes.\n viewportRuler\n .change()\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => this.updateContentMargins());\n this._autosize = defaultAutosize;\n }\n /** The drawer child with the `start` position. */\n get start() {\n return this._start;\n }\n /** The drawer child with the `end` position. */\n get end() {\n return this._end;\n }\n /**\n * Whether to automatically resize the container whenever\n * the size of any of its drawers changes.\n *\n * **Use at your own risk!** Enabling this option can cause layout thrashing by measuring\n * the drawers on every change detection cycle. Can be configured globally via the\n * `MAT_DRAWER_DEFAULT_AUTOSIZE` token.\n */\n get autosize() {\n return this._autosize;\n }\n set autosize(value) {\n this._autosize = coerceBooleanProperty(value);\n }\n /**\n * Whether the drawer container should have a backdrop while one of the sidenavs is open.\n * If explicitly set to `true`, the backdrop will be enabled for drawers in the `side`\n * mode as well.\n */\n get hasBackdrop() {\n if (this._backdropOverride == null) {\n return !this._start || this._start.mode !== 'side' || !this._end || this._end.mode !== 'side';\n }\n return this._backdropOverride;\n }\n set hasBackdrop(value) {\n this._backdropOverride = value == null ? null : coerceBooleanProperty(value);\n }\n /** Reference to the CdkScrollable instance that wraps the scrollable content. */\n get scrollable() {\n return this._userContent || this._content;\n }\n ngAfterContentInit() {\n this._allDrawers.changes\n .pipe(startWith(this._allDrawers), takeUntil(this._destroyed))\n .subscribe((drawer) => {\n this._drawers.reset(drawer.filter(item => !item._container || item._container === this));\n this._drawers.notifyOnChanges();\n });\n this._drawers.changes.pipe(startWith(null)).subscribe(() => {\n this._validateDrawers();\n this._drawers.forEach((drawer) => {\n this._watchDrawerToggle(drawer);\n this._watchDrawerPosition(drawer);\n this._watchDrawerMode(drawer);\n });\n if (!this._drawers.length ||\n this._isDrawerOpen(this._start) ||\n this._isDrawerOpen(this._end)) {\n this.updateContentMargins();\n }\n this._changeDetectorRef.markForCheck();\n });\n // Avoid hitting the NgZone through the debounce timeout.\n this._ngZone.runOutsideAngular(() => {\n this._doCheckSubject\n .pipe(debounceTime(10), // Arbitrary debounce time, less than a frame at 60fps\n takeUntil(this._destroyed))\n .subscribe(() => this.updateContentMargins());\n });\n }\n ngOnDestroy() {\n this._contentMarginChanges.complete();\n this._doCheckSubject.complete();\n this._drawers.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Calls `open` of both start and end drawers */\n open() {\n this._drawers.forEach(drawer => drawer.open());\n }\n /** Calls `close` of both start and end drawers */\n close() {\n this._drawers.forEach(drawer => drawer.close());\n }\n /**\n * Recalculates and updates the inline styles for the content. Note that this should be used\n * sparingly, because it causes a reflow.\n */\n updateContentMargins() {\n // 1. For drawers in `over` mode, they don't affect the content.\n // 2. For drawers in `side` mode they should shrink the content. We do this by adding to the\n // left margin (for left drawer) or right margin (for right the drawer).\n // 3. For drawers in `push` mode the should shift the content without resizing it. We do this by\n // adding to the left or right margin and simultaneously subtracting the same amount of\n // margin from the other side.\n let left = 0;\n let right = 0;\n if (this._left && this._left.opened) {\n if (this._left.mode == 'side') {\n left += this._left._getWidth();\n }\n else if (this._left.mode == 'push') {\n const width = this._left._getWidth();\n left += width;\n right -= width;\n }\n }\n if (this._right && this._right.opened) {\n if (this._right.mode == 'side') {\n right += this._right._getWidth();\n }\n else if (this._right.mode == 'push') {\n const width = this._right._getWidth();\n right += width;\n left -= width;\n }\n }\n // If either `right` or `left` is zero, don't set a style to the element. This\n // allows users to specify a custom size via CSS class in SSR scenarios where the\n // measured widths will always be zero. Note that we reset to `null` here, rather\n // than below, in order to ensure that the types in the `if` below are consistent.\n left = left || null;\n right = right || null;\n if (left !== this._contentMargins.left || right !== this._contentMargins.right) {\n this._contentMargins = { left, right };\n // Pull back into the NgZone since in some cases we could be outside. We need to be careful\n // to do it only when something changed, otherwise we can end up hitting the zone too often.\n this._ngZone.run(() => this._contentMarginChanges.next(this._contentMargins));\n }\n }\n ngDoCheck() {\n // If users opted into autosizing, do a check every change detection cycle.\n if (this._autosize && this._isPushed()) {\n // Run outside the NgZone, otherwise the debouncer will throw us into an infinite loop.\n this._ngZone.runOutsideAngular(() => this._doCheckSubject.next());\n }\n }\n /**\n * Subscribes to drawer events in order to set a class on the main container element when the\n * drawer is open and the backdrop is visible. This ensures any overflow on the container element\n * is properly hidden.\n */\n _watchDrawerToggle(drawer) {\n drawer._animationStarted\n .pipe(filter((event) => event.fromState !== event.toState), takeUntil(this._drawers.changes))\n .subscribe((event) => {\n // Set the transition class on the container so that the animations occur. This should not\n // be set initially because animations should only be triggered via a change in state.\n if (event.toState !== 'open-instant' && this._animationMode !== 'NoopAnimations') {\n this._element.nativeElement.classList.add('mat-drawer-transition');\n }\n this.updateContentMargins();\n this._changeDetectorRef.markForCheck();\n });\n if (drawer.mode !== 'side') {\n drawer.openedChange\n .pipe(takeUntil(this._drawers.changes))\n .subscribe(() => this._setContainerClass(drawer.opened));\n }\n }\n /**\n * Subscribes to drawer onPositionChanged event in order to\n * re-validate drawers when the position changes.\n */\n _watchDrawerPosition(drawer) {\n if (!drawer) {\n return;\n }\n // NOTE: We need to wait for the microtask queue to be empty before validating,\n // since both drawers may be swapping positions at the same time.\n drawer.onPositionChanged.pipe(takeUntil(this._drawers.changes)).subscribe(() => {\n this._ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {\n this._validateDrawers();\n });\n });\n }\n /** Subscribes to changes in drawer mode so we can run change detection. */\n _watchDrawerMode(drawer) {\n if (drawer) {\n drawer._modeChanged\n .pipe(takeUntil(merge(this._drawers.changes, this._destroyed)))\n .subscribe(() => {\n this.updateContentMargins();\n this._changeDetectorRef.markForCheck();\n });\n }\n }\n /** Toggles the 'mat-drawer-opened' class on the main 'mat-drawer-container' element. */\n _setContainerClass(isAdd) {\n const classList = this._element.nativeElement.classList;\n const className = 'mat-drawer-container-has-open';\n if (isAdd) {\n classList.add(className);\n }\n else {\n classList.remove(className);\n }\n }\n /** Validate the state of the drawer children components. */\n _validateDrawers() {\n this._start = this._end = null;\n // Ensure that we have at most one start and one end drawer.\n this._drawers.forEach(drawer => {\n if (drawer.position == 'end') {\n if (this._end != null && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatDuplicatedDrawerError('end');\n }\n this._end = drawer;\n }\n else {\n if (this._start != null && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatDuplicatedDrawerError('start');\n }\n this._start = drawer;\n }\n });\n this._right = this._left = null;\n // Detect if we're LTR or RTL.\n if (this._dir && this._dir.value === 'rtl') {\n this._left = this._end;\n this._right = this._start;\n }\n else {\n this._left = this._start;\n this._right = this._end;\n }\n }\n /** Whether the container is being pushed to the side by one of the drawers. */\n _isPushed() {\n return ((this._isDrawerOpen(this._start) && this._start.mode != 'over') ||\n (this._isDrawerOpen(this._end) && this._end.mode != 'over'));\n }\n _onBackdropClicked() {\n this.backdropClick.emit();\n this._closeModalDrawersViaBackdrop();\n }\n _closeModalDrawersViaBackdrop() {\n // Close all open drawers where closing is not disabled and the mode is not `side`.\n [this._start, this._end]\n .filter(drawer => drawer && !drawer.disableClose && this._canHaveBackdrop(drawer))\n .forEach(drawer => drawer._closeViaBackdropClick());\n }\n _isShowingBackdrop() {\n return ((this._isDrawerOpen(this._start) && this._canHaveBackdrop(this._start)) ||\n (this._isDrawerOpen(this._end) && this._canHaveBackdrop(this._end)));\n }\n _canHaveBackdrop(drawer) {\n return drawer.mode !== 'side' || !!this._backdropOverride;\n }\n _isDrawerOpen(drawer) {\n return drawer != null && drawer.opened;\n }\n}\nMatDrawerContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatDrawerContainer, deps: [{ token: i4.Directionality, optional: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.ViewportRuler }, { token: MAT_DRAWER_DEFAULT_AUTOSIZE }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatDrawerContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatDrawerContainer, selector: \"mat-drawer-container\", inputs: { autosize: \"autosize\", hasBackdrop: \"hasBackdrop\" }, outputs: { backdropClick: \"backdropClick\" }, host: { properties: { \"class.mat-drawer-container-explicit-backdrop\": \"_backdropOverride\" }, classAttribute: \"mat-drawer-container\" }, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatDrawerContainer,\n },\n ], queries: [{ propertyName: \"_content\", first: true, predicate: MatDrawerContent, descendants: true }, { propertyName: \"_allDrawers\", predicate: MatDrawer, descendants: true }], viewQueries: [{ propertyName: \"_userContent\", first: true, predicate: MatDrawerContent, descendants: true }], exportAs: [\"matDrawerContainer\"], ngImport: i0, template: \"
\\n\\n\\n\\n\\n\\n\\n \\n\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*=\\\"visibility: hidden\\\"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\"], dependencies: [{ kind: \"directive\", type: i5.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: MatDrawerContent, selector: \"mat-drawer-content\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatDrawerContainer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-drawer-container', exportAs: 'matDrawerContainer', host: {\n 'class': 'mat-drawer-container',\n '[class.mat-drawer-container-explicit-backdrop]': '_backdropOverride',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatDrawerContainer,\n },\n ], template: \"
\\n\\n\\n\\n\\n\\n\\n \\n\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*=\\\"visibility: hidden\\\"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\"] }]\n }], ctorParameters: function () { return [{ type: i4.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.ViewportRuler }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DRAWER_DEFAULT_AUTOSIZE]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }]; }, propDecorators: { _allDrawers: [{\n type: ContentChildren,\n args: [MatDrawer, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true,\n }]\n }], _content: [{\n type: ContentChild,\n args: [MatDrawerContent]\n }], _userContent: [{\n type: ViewChild,\n args: [MatDrawerContent]\n }], autosize: [{\n type: Input\n }], hasBackdrop: [{\n type: Input\n }], backdropClick: [{\n type: Output\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatSidenavContent extends MatDrawerContent {\n constructor(changeDetectorRef, container, elementRef, scrollDispatcher, ngZone) {\n super(changeDetectorRef, container, elementRef, scrollDispatcher, ngZone);\n }\n}\nMatSidenavContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavContent, deps: [{ token: i0.ChangeDetectorRef }, { token: forwardRef(() => MatSidenavContainer) }, { token: i0.ElementRef }, { token: i1.ScrollDispatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nMatSidenavContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSidenavContent, selector: \"mat-sidenav-content\", host: { properties: { \"style.margin-left.px\": \"_container._contentMargins.left\", \"style.margin-right.px\": \"_container._contentMargins.right\" }, classAttribute: \"mat-drawer-content mat-sidenav-content\" }, providers: [\n {\n provide: CdkScrollable,\n useExisting: MatSidenavContent,\n },\n ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavContent, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-sidenav-content',\n template: '',\n host: {\n 'class': 'mat-drawer-content mat-sidenav-content',\n '[style.margin-left.px]': '_container._contentMargins.left',\n '[style.margin-right.px]': '_container._contentMargins.right',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: CdkScrollable,\n useExisting: MatSidenavContent,\n },\n ],\n }]\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: MatSidenavContainer, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatSidenavContainer)]\n }] }, { type: i0.ElementRef }, { type: i1.ScrollDispatcher }, { type: i0.NgZone }]; } });\nclass MatSidenav extends MatDrawer {\n constructor() {\n super(...arguments);\n this._fixedInViewport = false;\n this._fixedTopGap = 0;\n this._fixedBottomGap = 0;\n }\n /** Whether the sidenav is fixed in the viewport. */\n get fixedInViewport() {\n return this._fixedInViewport;\n }\n set fixedInViewport(value) {\n this._fixedInViewport = coerceBooleanProperty(value);\n }\n /**\n * The gap between the top of the sidenav and the top of the viewport when the sidenav is in fixed\n * mode.\n */\n get fixedTopGap() {\n return this._fixedTopGap;\n }\n set fixedTopGap(value) {\n this._fixedTopGap = coerceNumberProperty(value);\n }\n /**\n * The gap between the bottom of the sidenav and the bottom of the viewport when the sidenav is in\n * fixed mode.\n */\n get fixedBottomGap() {\n return this._fixedBottomGap;\n }\n set fixedBottomGap(value) {\n this._fixedBottomGap = coerceNumberProperty(value);\n }\n}\nMatSidenav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenav, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatSidenav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSidenav, selector: \"mat-sidenav\", inputs: { fixedInViewport: \"fixedInViewport\", fixedTopGap: \"fixedTopGap\", fixedBottomGap: \"fixedBottomGap\" }, host: { attributes: { \"tabIndex\": \"-1\" }, properties: { \"attr.align\": \"null\", \"class.mat-drawer-end\": \"position === \\\"end\\\"\", \"class.mat-drawer-over\": \"mode === \\\"over\\\"\", \"class.mat-drawer-push\": \"mode === \\\"push\\\"\", \"class.mat-drawer-side\": \"mode === \\\"side\\\"\", \"class.mat-drawer-opened\": \"opened\", \"class.mat-sidenav-fixed\": \"fixedInViewport\", \"style.top.px\": \"fixedInViewport ? fixedTopGap : null\", \"style.bottom.px\": \"fixedInViewport ? fixedBottomGap : null\" }, classAttribute: \"mat-drawer mat-sidenav\" }, exportAs: [\"matSidenav\"], usesInheritance: true, ngImport: i0, template: \"
\\r\\n \\r\\n
\\r\\n\", dependencies: [{ kind: \"directive\", type: i1.CdkScrollable, selector: \"[cdk-scrollable], [cdkScrollable]\" }], animations: [matDrawerAnimations.transformDrawer], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenav, decorators: [{\n type: Component,\n args: [{ selector: 'mat-sidenav', exportAs: 'matSidenav', animations: [matDrawerAnimations.transformDrawer], host: {\n 'class': 'mat-drawer mat-sidenav',\n 'tabIndex': '-1',\n // must prevent the browser from aligning text based on value\n '[attr.align]': 'null',\n '[class.mat-drawer-end]': 'position === \"end\"',\n '[class.mat-drawer-over]': 'mode === \"over\"',\n '[class.mat-drawer-push]': 'mode === \"push\"',\n '[class.mat-drawer-side]': 'mode === \"side\"',\n '[class.mat-drawer-opened]': 'opened',\n '[class.mat-sidenav-fixed]': 'fixedInViewport',\n '[style.top.px]': 'fixedInViewport ? fixedTopGap : null',\n '[style.bottom.px]': 'fixedInViewport ? fixedBottomGap : null',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"
\\r\\n \\r\\n
\\r\\n\" }]\n }], propDecorators: { fixedInViewport: [{\n type: Input\n }], fixedTopGap: [{\n type: Input\n }], fixedBottomGap: [{\n type: Input\n }] } });\nclass MatSidenavContainer extends MatDrawerContainer {\n}\nMatSidenavContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatSidenavContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSidenavContainer, selector: \"mat-sidenav-container\", host: { properties: { \"class.mat-drawer-container-explicit-backdrop\": \"_backdropOverride\" }, classAttribute: \"mat-drawer-container mat-sidenav-container\" }, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatSidenavContainer,\n },\n ], queries: [{ propertyName: \"_content\", first: true, predicate: MatSidenavContent, descendants: true }, { propertyName: \"_allDrawers\", predicate: MatSidenav, descendants: true }], exportAs: [\"matSidenavContainer\"], usesInheritance: true, ngImport: i0, template: \"
\\n\\n\\n\\n\\n\\n\\n \\n\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*=\\\"visibility: hidden\\\"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\"], dependencies: [{ kind: \"directive\", type: i5.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: MatSidenavContent, selector: \"mat-sidenav-content\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavContainer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-sidenav-container', exportAs: 'matSidenavContainer', host: {\n 'class': 'mat-drawer-container mat-sidenav-container',\n '[class.mat-drawer-container-explicit-backdrop]': '_backdropOverride',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatSidenavContainer,\n },\n ], template: \"
\\n\\n\\n\\n\\n\\n\\n \\n\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*=\\\"visibility: hidden\\\"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\"] }]\n }], propDecorators: { _allDrawers: [{\n type: ContentChildren,\n args: [MatSidenav, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true,\n }]\n }], _content: [{\n type: ContentChild,\n args: [MatSidenavContent]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatSidenavModule {\n}\nMatSidenavModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSidenavModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavModule, declarations: [MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent], imports: [CommonModule, MatCommonModule, CdkScrollableModule], exports: [CdkScrollableModule,\n MatCommonModule,\n MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent] });\nMatSidenavModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavModule, imports: [CommonModule, MatCommonModule, CdkScrollableModule, CdkScrollableModule,\n MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSidenavModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, MatCommonModule, CdkScrollableModule],\n exports: [\n CdkScrollableModule,\n MatCommonModule,\n MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent,\n ],\n declarations: [\n MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_DRAWER_DEFAULT_AUTOSIZE, MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY, MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule, matDrawerAnimations, throwMatDuplicatedDrawerError };\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nconst routes: Routes = [];\r\n\r\n@NgModule({\r\n imports: [ RouterModule.forChild(routes) ],\r\n exports: [ RouterModule ]\r\n})\r\nexport class TrackOrderRoutingModule { }\r\n","import { Injectable } from '@angular/core';\r\n\r\n/**\r\n * Class responsible for loading the google map script file into the html DOM\r\n */\r\n@Injectable()\r\nexport class XpoGoogleMapLoader {\r\n\r\n private static readonly MAP_API_URL = 'https://maps.googleapis.com/maps/api/js';\r\n private static readonly SCRIPT_TAG = 'script';\r\n private static readonly SCRIPT_TYPE = 'text/javascript';\r\n private static readonly CALLBACK = 'initMap';\r\n private loadPromise: Promise;\r\n\r\n // Method responsible for loading the google map js file\r\n public loadGoogleMapScript(apiKey: string, localeID: string): Promise {\r\n if (this.loadPromise) {\r\n return this.loadPromise;\r\n }\r\n const script = document.createElement(XpoGoogleMapLoader.SCRIPT_TAG);\r\n script.type = XpoGoogleMapLoader.SCRIPT_TYPE;\r\n script.async = true;\r\n script.defer = true;\r\n script.src = `${XpoGoogleMapLoader.MAP_API_URL}?key=${apiKey}&language=${localeID}&libraries=geometry&callback=${XpoGoogleMapLoader.CALLBACK}`;\r\n this.loadPromise = new Promise((resolve, reject) => {\r\n window[ XpoGoogleMapLoader.CALLBACK ] = () => {\r\n resolve();\r\n };\r\n script.onerror = error => {\r\n reject(error);\r\n };\r\n });\r\n // Appending the google js file to the body tag\r\n document.body.appendChild(script);\r\n return this.loadPromise;\r\n }\r\n}\r\n","export class XpoGoogleMapConfig {\r\n // Map Custom Style\r\n static readonly MAP_STYLE: any[] = [\r\n {\r\n 'elementType': 'labels',\r\n 'stylers': [\r\n {\r\n 'weight': 1\r\n }\r\n ]\r\n },\r\n {\r\n 'elementType': 'labels.text',\r\n 'stylers': [\r\n {\r\n 'color': '#576152'\r\n }\r\n ]\r\n },\r\n {\r\n 'elementType': 'labels.text.stroke',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative',\r\n 'elementType': 'labels.text.fill',\r\n 'stylers': [\r\n {\r\n 'color': '#444444'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative.country',\r\n 'elementType': 'geometry.stroke',\r\n 'stylers': [\r\n {\r\n 'visibility': 'on'\r\n },\r\n {\r\n 'color': '#858585'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative.country',\r\n 'elementType': 'labels.text.fill',\r\n 'stylers': [\r\n {\r\n 'color': '#5d939f'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative.province',\r\n 'elementType': 'labels.text.fill',\r\n 'stylers': [\r\n {\r\n 'color': '#5d939f'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative.locality',\r\n 'elementType': 'labels.text.fill',\r\n 'stylers': [\r\n {\r\n 'color': '#5d939f'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'administrative.neighborhood',\r\n 'elementType': 'labels.text.fill',\r\n 'stylers': [\r\n {\r\n 'color': '#5d939f'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'landscape.man_made',\r\n 'stylers': [\r\n {\r\n 'color': '#f7f2ef'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'landscape.natural.landcover',\r\n 'stylers': [\r\n {\r\n 'lightness': 25\r\n },\r\n {\r\n 'visibility': 'on'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'poi',\r\n 'elementType': 'all',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'poi.park',\r\n 'elementType': 'geometry',\r\n 'stylers': [\r\n {\r\n 'gamma': '5.54'\r\n },\r\n {\r\n 'lightness': '-67'\r\n },\r\n {\r\n 'saturation': '14'\r\n },\r\n {\r\n 'visibility': 'simplified'\r\n },\r\n {\r\n 'color': '#dcf2cd'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'poi.park',\r\n 'elementType': 'geometry.fill',\r\n 'stylers': [\r\n {\r\n 'color': '#dcf2cd'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'road',\r\n 'elementType': 'all',\r\n 'stylers': [\r\n {\r\n 'saturation': -100\r\n },\r\n {\r\n 'lightness': 45\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'road',\r\n 'elementType': 'geometry.fill',\r\n 'stylers': [\r\n {\r\n 'color': '#ffffff'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'road.highway',\r\n 'elementType': 'geometry.stroke',\r\n 'stylers': [\r\n {\r\n 'color': '#e0ded9'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'road.local',\r\n 'elementType': 'labels',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'road.arterial',\r\n 'elementType': 'labels.icon',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'transit',\r\n 'elementType': 'all',\r\n 'stylers': [\r\n {\r\n 'visibility': 'off'\r\n }\r\n ]\r\n },\r\n {\r\n 'featureType': 'water',\r\n 'elementType': 'all',\r\n 'stylers': [\r\n {\r\n 'color': '#aae1f2'\r\n },\r\n {\r\n 'visibility': 'on'\r\n }\r\n ]\r\n }\r\n ];\r\n static readonly CONTROL_COLOR_DISABLED: string = '#DDDDDD';\r\n static readonly CONTROL_COLOR_ENABLED: string = '#000000';\r\n static readonly CONTROL_BACKGROUND_COLOR: string = '#FFFFFF';\r\n static readonly ROUTE_STROKE_COLOR: string = '#858585';\r\n static readonly ROUTE_STROKE_WEIGHT: number = 4;\r\n}\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\n\r\n@Injectable()\r\nexport class GoogleRoutesAPIService {\r\n constructor(private http: HttpClient){ }\r\n public getPloyLine(data: any,google_key): Observable {\r\n const api_key = atob(google_key);\r\n const headers = new HttpHeaders({\r\n 'X-Goog-Api-Key': api_key,\r\n 'X-Goog-FieldMask': 'routes.polyline.encodedPolyline,routes.legs.startLocation,routes.legs.endLocation',\r\n });\r\n return this.http.post('https://routes.googleapis.com/directions/v2:computeRoutes', data, {headers});\r\n }\r\n \r\n}","/// \r\nimport { Injectable, NgZone } from '@angular/core';\r\nimport { XpoGoogleMapLoader } from './google-map-api-loader';\r\nimport { XpoGoogleMapConfig } from '../model/google-map-config';\r\nimport { OrderService, GoogleAnalyticsConstants } from '../../shared';\r\nimport {\r\n Traffic, TrafficService, TrafficAlertItem,\r\n Location, TruckLocation,\r\n Resource, Respons\r\n} from '../../shared';\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport { MenuService } from 'app/core/layout/menu.service';\r\nimport { GoogleRoutesAPIService } from 'app/shared/services/google-map.service';\r\n\r\n/**\r\n * Class responisble for creating map, marker, infowindow using Google Map API\r\n */\r\n@Injectable()\r\nexport class XpoGoogleMapApi {\r\n private static readonly AERIS_API_URL = 'https://maps.aerisapi.com';\r\n private static readonly AERIS_OVERLAY_FEATURE = 'radar';\r\n public orderService: OrderService;\r\n protected map: any;\r\n protected RIGHT_TOP: any;\r\n private trafficWeatherControl: HTMLElement;\r\n private trafficLayer: any;\r\n\r\n public trafficAlertAPICalled = false;\r\n public trafficData: Traffic;\r\n public trafficAlertItems: TrafficAlertItem[] = [];\r\n\r\n public truckLocations: TruckLocation[] = [];\r\n private MAX_LIMIT = 25;\r\n public startIndex = 0;\r\n public endIndex = 0;\r\n\r\n public isTruckPopUpMobileShowing = false;\r\n\r\n constructor(\r\n private mapLoader: XpoGoogleMapLoader,\r\n private trafficService: TrafficService,\r\n private ngZone: NgZone,\r\n public appSettings: AppSettings,\r\n public menuService: MenuService,\r\n public googleRoutesAPIService: GoogleRoutesAPIService\r\n ) { }\r\n\r\n // TODO Create an interface that has all the map options\r\n createMap(htmlElement: HTMLElement, options: any, googleMapApiKey: string, aerisWeatherApiKey: string, localeID: string): Promise {\r\n return this.mapLoader.loadGoogleMapScript(atob(googleMapApiKey), localeID).then(() => {\r\n if (!options.styles) {\r\n options.styles = XpoGoogleMapConfig.MAP_STYLE;\r\n }\r\n this.map = new google.maps.Map(htmlElement, options);\r\n this.RIGHT_TOP = google.maps.ControlPosition.RIGHT_TOP;\r\n // Adding traffic control only if the options have traffic property as true\r\n if (options.traffic && !this.menuService.isLandingPage) {\r\n if (!this.trafficWeatherControl) {\r\n // Creating the custom control div\r\n this.createCustomControl();\r\n }\r\n // Creating the traffic control\r\n this.createTrafficControl();\r\n this.trafficLayer = this.createTrafficLayer();\r\n } \r\n return;\r\n });\r\n }\r\n\r\n // TODO Create an interface that has all the marker options\r\n createMarker(markerOptions: any, addToMap: boolean): any {\r\n if (addToMap) {\r\n markerOptions.map = this.map;\r\n }\r\n return new google.maps.Marker(markerOptions);\r\n }\r\n\r\n // Method responsible to create a google map point\r\n createPoint(x: number, y: number) {\r\n return new google.maps.Point(x, y);\r\n }\r\n\r\n // Method responsible to create a google map size object\r\n createSize(width: number, height: number) {\r\n return new google.maps.Size(width, height);\r\n }\r\n\r\n // Method responsible to find the orientation of the marker based on the origin and destination\r\n findHeading(position1: any, position2: any) {\r\n return google.maps.geometry.spherical.computeHeading(position1, position2);\r\n }\r\n\r\n // Method responsible to set the map bounds based on the markers\r\n setMapBoundsBasedOnMarkers(markers: any[]) {\r\n const bounds = new google.maps.LatLngBounds();\r\n for (const marker of markers) {\r\n bounds.extend(marker.getPosition());\r\n }\r\n this.map.fitBounds(bounds);\r\n }\r\n\r\n // Method responsible for creating the google maps traffic layer\r\n createTrafficLayer() {\r\n return new google.maps.TrafficLayer();\r\n }\r\n\r\n // Method responsible for creating the custom control div for traffic and weather\r\n private createCustomControl() {\r\n this.trafficWeatherControl = document.createElement('div');\r\n this.trafficWeatherControl.style.marginRight = '55px'; // Custom Alignment to match the wireframe\r\n this.trafficWeatherControl.style.marginBottom = '-65px'; // Custom Alignment to match the wireframe\r\n this.trafficWeatherControl.style.padding = '5px 10px';\r\n this.trafficWeatherControl.style.border = '1px solid #C3C1BE';\r\n this.trafficWeatherControl.style.backgroundColor = XpoGoogleMapConfig.CONTROL_BACKGROUND_COLOR;\r\n\r\n // Positioning the custom control in the map\r\n this.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(this.trafficWeatherControl);\r\n }\r\n\r\n // Method responsible for creating the custom control div for traffic\r\n private createTrafficControl() {\r\n const trafficControl = document.createElement('div');\r\n trafficControl.style.cursor = 'pointer';\r\n trafficControl.style.display = 'inline-block';\r\n this.trafficWeatherControl.appendChild(trafficControl);\r\n if (trafficControl.previousSibling) {\r\n trafficControl.style.marginLeft = '10px';\r\n }\r\n\r\n // Traffic Control Icon\r\n const trafficControlIcon = document.createElement('div');\r\n trafficControlIcon.style.backgroundImage = 'url(assets/icons/traffic-map-disabled.svg)';\r\n trafficControlIcon.style.width = '14px';\r\n trafficControlIcon.style.height = '12px';\r\n trafficControlIcon.style.margin = 'auto';\r\n trafficControl.appendChild(trafficControlIcon);\r\n\r\n // Traffic Control Text\r\n const trafficControlText = document.createElement('div');\r\n trafficControlText.innerHTML = this.appSettings.getMessage('CONTROL_TRAFFIC');\r\n trafficControlText.style.fontSize = '8px';\r\n trafficControlText.style.color = XpoGoogleMapConfig.CONTROL_COLOR_DISABLED;\r\n trafficControlText.style.marginTop = '3px';\r\n trafficControlText.style.userSelect = 'none';\r\n trafficControlText.style.webkitUserSelect = 'none';\r\n trafficControl.appendChild(trafficControlText);\r\n\r\n // Traffic Control click listener\r\n trafficControl.addEventListener('click', () => {\r\n this.enableOrDisableTrafficLayer(trafficControlIcon, trafficControlText);\r\n });\r\n }\r\n\r\n // Method called when the traffic toggle button is turned on/off\r\n private enableOrDisableTrafficLayer(trafficControlIcon: HTMLDivElement, trafficControlText: HTMLDivElement) {\r\n if (this.trafficLayer.getMap()) {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.DISABLE,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.TRAFFIC_LAYER,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.TRAFFIC_LAYER\r\n }\r\n });\r\n trafficControlIcon.style.backgroundImage = 'url(assets/icons/traffic-map-disabled.svg)';\r\n trafficControlText.style.color = XpoGoogleMapConfig.CONTROL_COLOR_DISABLED;\r\n this.trafficLayer.setMap(null);\r\n } else {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.ENABLE,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.TRAFFIC_LAYER,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.TRAFFIC_LAYER\r\n }\r\n });\r\n trafficControlIcon.style.backgroundImage = 'url(assets/icons/traffic-map-enabled.svg)';\r\n trafficControlText.style.color = XpoGoogleMapConfig.CONTROL_COLOR_ENABLED;\r\n this.trafficLayer.setMap(this.map);\r\n }\r\n }\r\n\r\n // Method responsible for drawing the route based on the origin and destination\r\n async drawRoutewithRoutesAPI(origin, destination, waypts: any[], markers, isMiddleMileApplicable?: boolean, google_key?: string) {\r\n const lineSymbol = {\r\n path: isMiddleMileApplicable ? 'M 0,-1 0,1' : '',\r\n strokeOpacity: 1,\r\n scale: 2.5\r\n };\r\n\r\n const { encoding } = await google.maps.importLibrary('geometry') as google.maps.GeometryLibrary;\r\n this.googleRoutesAPIService.getPloyLine({\r\n origin: origin,\r\n destination: destination,\r\n intermediates: waypts,\r\n travelMode: \"DRIVE\",\r\n routingPreference: \"TRAFFIC_UNAWARE\",\r\n computeAlternativeRoutes: false,\r\n routeModifiers: {\r\n \"avoidTolls\": false,\r\n \"avoidHighways\": false,\r\n \"avoidFerries\": false\r\n },\r\n languageCode: \"en-US\",\r\n units: \"IMPERIAL\"\r\n }, google_key).subscribe((response) => {\r\n const decodePath = encoding.decodePath(response.routes[0].polyline.encodedPolyline);\r\n // render the decoded polyline on the map\r\n const setPolyline = new google.maps.Polyline({\r\n path: decodePath,\r\n strokeColor: XpoGoogleMapConfig.ROUTE_STROKE_COLOR,\r\n strokeWeight: XpoGoogleMapConfig.ROUTE_STROKE_WEIGHT,\r\n strokeOpacity: isMiddleMileApplicable ? 0 : 1,\r\n icons: isMiddleMileApplicable ? [{\r\n icon: lineSymbol,\r\n offset: '0',\r\n repeat: '20px'\r\n }] : [],\r\n });\r\n setPolyline.setMap(this.map);\r\n\r\n if (!this.trafficAlertAPICalled) {\r\n this.trafficAlertAPICalled = true;\r\n this.showTrafficAlert(false);\r\n }\r\n let markerOrigin = markers.find(marker => (Object.keys(marker)[0].startsWith('truck')));\r\n console.log(response.routes[0].legs[0].startLocation);\r\n if (markerOrigin) {\r\n markerOrigin['truck1'].setPosition({ lat: response?.routes[0]?.legs[0]?.startLocation?.latLng?.latitude, lng: response?.routes[0]?.legs[0]?.startLocation?.latLng?.longitude });\r\n }\r\n\r\n });\r\n const markerDest = new google.maps.Marker();\r\n markerDest.setMap(this.map);\r\n markerDest.setIcon('assets/icons/location-pin-destination2x.svg');\r\n console.log(destination)\r\n markerDest.setPosition({ lat: destination?.location?.latLng?.latitude, lng: destination?.location?.latLng?.longitude });\r\n }\r\n\r\n drawRoute(origin, destination, waypts: any[], markers, isMiddleMileApplicable?: boolean) {\r\n const directionsService = new google.maps.DirectionsService;\r\n const lineSymbol = {\r\n path: isMiddleMileApplicable ? 'M 0,-1 0,1' : '',\r\n strokeOpacity: 1,\r\n scale: 2.5\r\n };\r\n const directionsDisplay = new google.maps.DirectionsRenderer({\r\n polylineOptions: {\r\n strokeColor: XpoGoogleMapConfig.ROUTE_STROKE_COLOR,\r\n strokeWeight: XpoGoogleMapConfig.ROUTE_STROKE_WEIGHT,\r\n strokeOpacity: isMiddleMileApplicable ? 0 : 1,\r\n icons: isMiddleMileApplicable ? [{\r\n icon: lineSymbol,\r\n offset: '0',\r\n repeat: '20px'\r\n }] : [],\r\n map: this.map\r\n },\r\n suppressMarkers: true\r\n });\r\n directionsDisplay.setMap(this.map);\r\n\r\n\r\n directionsService.route({\r\n origin: origin,\r\n destination: destination,\r\n waypoints: waypts,\r\n optimizeWaypoints: true,\r\n travelMode: google.maps.TravelMode.DRIVING\r\n }, (response, status) => {\r\n if (status === google.maps.DirectionsStatus.OK) {\r\n directionsDisplay.setDirections(response);\r\n if (!this.trafficAlertAPICalled) {\r\n this.trafficAlertAPICalled = true;\r\n this.showTrafficAlert(false);\r\n }\r\n let markerOrigin = markers.find(marker => (Object.keys(marker)[0].startsWith('truck')));\r\n if (markerOrigin) {\r\n markerOrigin['truck1'].setPosition(response.routes[0].legs[0].start_location);\r\n }\r\n } else {\r\n console.log('Directions request failed: ' + status);\r\n }\r\n });\r\n const markerDest = new google.maps.Marker();\r\n markerDest.setMap(this.map);\r\n markerDest.setIcon('assets/icons/location-pin-destination2x.svg');\r\n markerDest.setPosition(destination);\r\n }\r\n\r\n // Method responsible for creating a custom infowindow\r\n createCustomInfoWindow() {\r\n return new (XpoCustomInfoWindow())();\r\n }\r\n\r\n async showTrafficAlert(takeFromMapBounds: boolean) {\r\n let northEastLat = 0;\r\n let northEastLng = 0;\r\n let southWestLat = 0;\r\n let southWestLng = 0;\r\n\r\n const bounds = this.map.getBounds();\r\n if (takeFromMapBounds) {\r\n northEastLat = bounds.getNorthEast().lat();\r\n northEastLng = bounds.getNorthEast().lng();\r\n southWestLat = bounds.getSouthWest().lat();\r\n southWestLng = bounds.getSouthWest().lng();\r\n } else {\r\n const detailsForTrafficAlerts: Location[] = this.getTruckLocationAndNextStop();\r\n if (detailsForTrafficAlerts && detailsForTrafficAlerts.length > 1) {\r\n northEastLat = detailsForTrafficAlerts[1].latitude;\r\n northEastLng = detailsForTrafficAlerts[0].longitude;\r\n southWestLat = detailsForTrafficAlerts[0].latitude;\r\n southWestLng = detailsForTrafficAlerts[1].longitude;\r\n }\r\n }\r\n await this.trafficService.getTrafficAlerts(northEastLat, northEastLng, southWestLat, southWestLng).then(\r\n data => {\r\n this.trafficData = data;\r\n this.trafficAlertAPICalled = false;\r\n this.handleTrafficResponse();\r\n }).catch(error => {\r\n this.trafficAlertAPICalled = false;\r\n });\r\n }\r\n\r\n handleTrafficResponse() {\r\n let trafficAlert: TrafficAlertItem;\r\n if (this.trafficData != null && this.trafficData.resourceSets != null &&\r\n this.trafficData.resourceSets.length > 0 && this.trafficData.resourceSets[0].resources != null &&\r\n this.trafficData.resourceSets[0].resources.length > 0) {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.SHOW,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.TRAFFIC_ALERTS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.TRAFFIC_ALERTS\r\n }\r\n });\r\n this.trafficAlertItems = [];\r\n this.trafficData.resourceSets[0].resources.sort((a: Resource, b: Resource) => {\r\n if (a.lastModified > b.lastModified) {\r\n return -1;\r\n } else if (a.lastModified < b.lastModified) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n });\r\n let index = 0;\r\n this.trafficData.resourceSets[0].resources.forEach((element) => {\r\n if (element.roadClosed && element.type) {\r\n trafficAlert = new TrafficAlertItem(element.description,\r\n element.roadClosed, this.getDisplayTrafficTime(element.lastModified), index);\r\n index = index + 1;\r\n this.ngZone.run(() => {\r\n this.trafficAlertItems.push(trafficAlert);\r\n });\r\n }\r\n });\r\n this.orderService.trafficNotification = [];\r\n this.orderService.trafficNotification = this.trafficAlertItems;\r\n this.pushWeatherTrafficAlertControl();\r\n }\r\n }\r\n\r\n onCloseTrafficAlert(trafficItem: TrafficAlertItem) {\r\n this.trafficAlertItems.splice(trafficItem.index, 1);\r\n this.trafficAlertItems.forEach((item, index) => {\r\n this.trafficAlertItems[index].index = index;\r\n });\r\n }\r\n\r\n getTruckLocationAndNextStop(): Location[] { return []; }\r\n\r\n pushWeatherTrafficAlertControl() {\r\n const trafficAlert = document.getElementById('map-events');\r\n this.map.controls[this.RIGHT_TOP].push(trafficAlert);\r\n }\r\n\r\n getDisplayTrafficTime(lastModified: any): any {\r\n const date = new Date(parseInt(lastModified.substr(6), 10));\r\n return date;\r\n }\r\n /**\r\n * Function responsible for calculating distance between truck and home\r\n */\r\n distance(truckLatitude, truckLongitude, homeLatitude, homeLongitude, unit) {\r\n const radlat1 = Math.PI * truckLatitude / 180;\r\n const radlat2 = Math.PI * homeLatitude / 180;\r\n const theta = truckLongitude - homeLongitude;\r\n const radtheta = Math.PI * theta / 180;\r\n let dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\r\n if (dist) {\r\n dist = Math.acos(dist);\r\n dist = dist * 180 / Math.PI;\r\n dist = dist * 60 * 1.1515;\r\n if (unit === 'K') { dist = dist * 1.609344; }\r\n if (unit === 'N') { dist = dist * 0.8684; }\r\n }\r\n return dist;\r\n }\r\n}\r\n\r\n/**\r\n * Function responsible for creating a custom info window by extending google.maps.OverlayView\r\n * Getting google not defined error when tried to create the below function as a class\r\n */\r\nfunction XpoCustomInfoWindow() {\r\n function CustomInfoWindow() {\r\n this.container = document.createElement('div');\r\n this.container.style.backgroundColor = '#FFFFFF';\r\n this.container.style.borderRadius = '4px';\r\n this.container.style.boxShadow = '0 2px 4px 0 rgba(0,0,0,0.2)';\r\n this.container.style.color = '#232323';\r\n this.container.style.overflow = 'hidden';\r\n this.container.style.position = 'absolute';\r\n this.container.style.padding = '10px 10px';\r\n\r\n this.closeBtn = document.createElement('div');\r\n this.closeBtn.style.backgroundImage = 'url(assets/icons/close.svg)';\r\n this.closeBtn.style.width = '12px';\r\n this.closeBtn.style.height = '12px';\r\n this.closeBtn.style.cssFloat = 'right';\r\n this.closeBtn.style.cursor = 'pointer';\r\n this.closeBtn.setAttribute('id', 'close-btn-popup');\r\n this.container.appendChild(this.closeBtn);\r\n\r\n this.content = document.createElement('div');\r\n this.container.appendChild(this.content);\r\n\r\n this.layer = null;\r\n this.marker = null;\r\n this.position = null;\r\n }\r\n\r\n CustomInfoWindow.prototype = new google.maps.OverlayView();\r\n\r\n CustomInfoWindow.prototype.onAdd = function () {\r\n this.layer = this.getPanes().floatPane;\r\n this.layer.appendChild(this.container);\r\n this.closeBtn.addEventListener('click', function () {\r\n this.close();\r\n }.bind(this), false);\r\n // Ensuring the custom info window is visible fully in the map\r\n setTimeout(this.panToView.bind(this), 200);\r\n };\r\n\r\n CustomInfoWindow.prototype.draw = function () {\r\n this.position = this.getProjection().fromLatLngToDivPixel(this.marker.getPosition());\r\n this.container.style.top = this.position.y - (this.container.offsetHeight / 2) + 'px';\r\n this.container.style.left = this.position.x - this.container.offsetWidth - 30 + 'px';\r\n };\r\n\r\n // CustomInfoWindow.prototype.panToView = function () {\r\n // const map = this.getMap();\r\n // const x = this.position.x - 130;\r\n // const y = this.position.y;\r\n // const point = new google.maps.Point(x, y);\r\n // const latLng = this.getProjection().fromDivPixelToLatLng(point);\r\n // this.map.panTo(latLng);\r\n // };\r\n\r\n // CustomInfoWindow.prototype.onRemove = function () {\r\n // this.layer.removeChild(this.container);\r\n // };\r\n\r\n // CustomInfoWindow.prototype.setContent = function (content) {\r\n // this.content.innerHTML = content;\r\n // };\r\n\r\n // CustomInfoWindow.prototype.open = function (map, marker) {\r\n // this.marker = marker;\r\n // this.setMap(map);\r\n // };\r\n\r\n // CustomInfoWindow.prototype.close = function () {\r\n // this.setMap(null);\r\n // };\r\n\r\n return CustomInfoWindow;\r\n}\r\n","import { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { XpoGoogleMapLoader } from './services/google-map-api-loader';\r\nimport { XpoGoogleMapApi } from './services/google-map-api';\r\n\r\n@NgModule()\r\nexport class XpoGoogleMapModule {\r\n // Responsible for loading singleton services\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: XpoGoogleMapModule,\r\n providers: [XpoGoogleMapLoader, XpoGoogleMapApi]\r\n };\r\n }\r\n}\r\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule, DatePipe } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatRadioModule } from '@angular/material/radio';\r\nimport { MatTabsModule } from '@angular/material/tabs';\r\nimport { NgxMaskDirective, provideNgxMask } from 'ngx-mask';\r\nimport { SharedModule } from '../shared/shared.module';\r\nimport { FooterModule } from '../footer/footer.module';\r\nimport { SearchComponent } from '../track-another-order/search.component';\r\nimport { CalendarDatepickerModule } from '../calendar-datepicker/calendar-datepicker.module';\r\nimport { TrackXpoNumberComponent } from './track-xpo-number/track-xpo-number.component';\r\nimport { TrackXpoReferenceNumberComponent } from './track-xpo-reference-number/track-xpo-reference-number.component';\r\nimport { TrackXpoDeliveryNumberComponent } from './track-xpo-delivery-number/track-xpo-delivery-number.component';\r\nimport { SearchContainerComponent } from './search-container/search-container.component';\r\nimport { TrackAnotherOrderTabComponent } from './track-another-order-tab/track-another-order-tab.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n MatInputModule,\r\n MatCardModule,\r\n MatTabsModule,\r\n MatRadioModule,\r\n CalendarDatepickerModule,\r\n SharedModule,\r\n FooterModule,\r\n NgxMaskDirective\r\n ],\r\n declarations: [\r\n SearchComponent,\r\n TrackXpoNumberComponent,\r\n TrackXpoReferenceNumberComponent,\r\n TrackXpoDeliveryNumberComponent,\r\n SearchContainerComponent,\r\n TrackAnotherOrderTabComponent ],\r\n schemas: [ NO_ERRORS_SCHEMA ],\r\n providers: [ DatePipe, provideNgxMask() ]\r\n})\r\nexport class TrackAnotherOrderModule { }\r\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n// angular2-google-maps\r\n// import { AgmCoreModule } from '@agm/core';\r\nimport { TrackOrderRoutingModule } from './track-order-routing.module';\r\nimport { SharedModule } from '../shared/shared.module';\r\nimport { XpoGoogleMapModule } from '../google-map/google-map.module';\r\n// Components\r\nimport { TrackOrderComponent } from './track-order/track-order.component';\r\nimport { TrackOrderProgressComponent } from './track-order-progress/track-order-progress.component';\r\nimport { ProductDetailsComponent } from './product-details/product-details.component';\r\nimport { TrackingEventsComponent } from './widgets/tracking-events/tracking-events.component';\r\nimport { TrackOrderMapComponent } from './track-order-map/track-order-map.component';\r\nimport { FooterModule } from '../footer/footer.module';\r\nimport { FooterComponent } from '../footer/footer.component';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatExpansionModule } from '@angular/material/expansion';\r\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\r\nimport { TrafficService } from '../shared';\r\nimport { TrackAnotherOrderModule } from '../track-another-order/track-another-order.module';\r\nimport { ContactSupportComponent } from './widgets/contact-support/contact-support.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatCardModule,\r\n MatExpansionModule,\r\n SharedModule,\r\n FooterModule,\r\n MatSlideToggleModule,\r\n TrackAnotherOrderModule,\r\n XpoGoogleMapModule.forRoot(),\r\n TrackOrderRoutingModule // keep at bottom\r\n ],\r\n exports: [\r\n TrackOrderComponent,\r\n TrackOrderProgressComponent,\r\n TrackOrderMapComponent,\r\n ProductDetailsComponent,\r\n TrackingEventsComponent,\r\n ContactSupportComponent\r\n ],\r\n declarations: [ TrackOrderComponent, ProductDetailsComponent,\r\n TrackOrderProgressComponent, TrackingEventsComponent, TrackOrderMapComponent, ContactSupportComponent],\r\n schemas: [ NO_ERRORS_SCHEMA ],\r\n providers: [\r\n TrafficService, FooterComponent\r\n\r\n ],\r\n bootstrap: []\r\n})\r\n\r\nexport class TrackOrderModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n\r\n@Injectable()\r\nexport class ScrollToTopService {\r\n public status: Subject = new Subject();\r\n private _active = true;\r\n private scrollToValue = 0;\r\n\r\n public get active(): boolean {\r\n return this._active;\r\n }\r\n\r\n public set active(v: boolean) {\r\n this._active = v;\r\n this.status.next(v);\r\n }\r\n\r\n public enableBackToTop(): void {\r\n if (this.isSafariBrowser()) {\r\n this.scrollToValue = document.body.scrollTop;\r\n } else {\r\n this.scrollToValue = document.documentElement.scrollTop;\r\n }\r\n if (this.scrollToValue > 20) {\r\n this.active = true;\r\n } else {\r\n this.active = false;\r\n }\r\n }\r\n public isSafariBrowser(): boolean {\r\n if (/Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor) || /iPad|iPhone|iPod/.test(navigator.userAgent)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { BackToTopComponent } from './back-to-top/back-to-top.component';\r\nimport { ScrollToTopService } from './scroll-to-top.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule\r\n ],\r\n exports: [ BackToTopComponent ],\r\n declarations: [ BackToTopComponent ],\r\n providers: [\r\n ScrollToTopService\r\n ],\r\n})\r\nexport class ScrollToTopModule { }\r\n","\r\nimport { UnSecureHttp } from './unsecure-http.service';\r\nexport function UnSecureHttpFactory(backend) {\r\n return new UnSecureHttp(backend);\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { AppSettings } from \"../../core/app-settings\";\r\n\r\n// Model for Google Tag Manager Config\r\nexport class GtmSettings {\r\n auth:string;\r\n id: string;\r\n preview: string;\r\n }\r\ndeclare var document: any;\r\n\r\n/**\r\n * Helper service for google tag manager. \r\n */\r\n\r\n@Injectable()\r\nexport class GTMHelperService {\r\n private gtmSettings :GtmSettings;\r\n\r\n constructor(private appSettings: AppSettings) {\r\n this.gtmSettings = appSettings['gtmSettings'];\r\n }\r\n\r\n /**\r\n * Initializs the Google tag manager script and inserts it into body tag. Using tag manager environment\r\n * feature. ID, gtm_auth, gtm_preview values vary from environment to environment.\r\n */\r\n public initGTMScript() {\r\n if(!document) {\r\n return;\r\n } \r\n try { \r\n if(!this.gtmSettings) {\r\n console.log('setting default config -INT');\r\n this.gtmSettings = AppSettings.config['gtmSettings'];\r\n }\r\n\r\n const script = document.createElement('script');\r\n script.async = true;\r\n script.src = 'https://www.googletagmanager.com/gtm.js?id=' + this.gtmSettings.id;\r\n script.src += \">m_auth=\" + this.gtmSettings.auth; \r\n script.src += \">m_preview=\"+ this.gtmSettings.preview + \">m_cookies_win=x\";\r\n\r\n document.head.prepend(script);\r\n console.log('Script loaded');\r\n \r\n } catch(e) {\r\n console.log('Could not insert GTM script');\r\n }\r\n }\r\n}","import { APP_INITIALIZER, NgModule, Optional, SkipSelf } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NO_ERRORS_SCHEMA } from '@angular/core';\r\n\r\n// Core Lib Components\r\nimport { AppSettings, configAppSettings } from './app-settings';\r\nimport { throwIfAlreadyLoaded } from './module-import-guard';\r\nimport { LayoutComponent } from './layout/layout.component';\r\nimport { SharedModule } from '../shared/shared.module';\r\nimport { MatSidenavModule } from '@angular/material/sidenav';\r\nimport { MenuService } from '../core/layout/menu.service';\r\nimport { TrackOrderModule } from '../track-order/track-order.module';\r\nimport { ScrollToTopModule } from '../scroll-to-top/scroll-to-top';\r\nimport { ErrorHandlerService } from '../shared';\r\nimport { CookieService } from 'ngx-cookie-service';\r\nimport { SearchContainerComponent } from '../track-another-order/search-container/search-container.component';\r\nimport { UnSecureHttp ,} from '../shared/services/unsecure-http.service';\r\nimport { UnSecureHttpFactory} from '../shared/services/custom-http.service';\r\n\r\nimport { HttpBackend } from '@angular/common/http';\r\nimport { GTMHelperService } from '../shared/services/gtm-helper.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n RouterModule,\r\n SharedModule,\r\n MatSidenavModule,\r\n TrackOrderModule,\r\n ScrollToTopModule\r\n ],\r\n exports: [\r\n LayoutComponent\r\n ],\r\n declarations: [\r\n LayoutComponent\r\n ],\r\n schemas: [NO_ERRORS_SCHEMA],\r\n providers: [\r\n AppSettings,\r\n CookieService,\r\n MenuService,\r\n ErrorHandlerService,\r\n { provide: APP_INITIALIZER, useFactory: configAppSettings, deps: [AppSettings], multi: true },\r\n {\r\n provide: UnSecureHttp,\r\n useFactory: UnSecureHttpFactory,\r\n deps: [HttpBackend]\r\n },\r\n GTMHelperService\r\n ]\r\n})\r\n\r\nexport class CoreModule {\r\n constructor( @Optional() @SkipSelf() parentModule: CoreModule) {\r\n throwIfAlreadyLoaded(parentModule, 'CoreModule');\r\n }\r\n}\r\n","export function throwIfAlreadyLoaded(parentModule: any, moduleName: string) {\r\n if (parentModule) {\r\n throw new Error(`${moduleName} has already been loaded. Import Core modules in the AppModule only.`);\r\n }\r\n}\r\n","// src/app/shared/free-dragging.directive.ts\r\n\r\nimport { Directive, ElementRef, Inject, OnDestroy, OnInit } from \"@angular/core\";\r\nimport { DOCUMENT } from \"@angular/common\";\r\nimport { Subscription , fromEvent } from \"rxjs\";\r\nimport { takeUntil } from \"rxjs/operators\";\r\n\r\n@Directive({\r\n selector: \"[appFreeDragging]\",\r\n})\r\nexport class FreeDraggingDirective implements OnInit, OnDestroy {\r\n private element: HTMLElement;\r\n\r\n private subscriptions: Subscription[] = [];\r\n\r\n constructor(\r\n private elementRef: ElementRef,\r\n @Inject(DOCUMENT) private document: any\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.element = this.elementRef.nativeElement as HTMLElement;\r\n this.initDrag();\r\n }\r\n\r\n // src/app/shared/free-dragging.directive.ts\r\n\r\n initDrag(): void {\r\n // 1\r\n const dragStart$ = fromEvent(this.element, \"mousedown\");\r\n const dragEnd$ = fromEvent(this.document, \"mouseup\");\r\n const drag$ = fromEvent(this.document, \"mousemove\").pipe(\r\n takeUntil(dragEnd$)\r\n );\r\n\r\n // 2\r\n let initialX: number,\r\n initialY: number,\r\n currentX = 0,\r\n currentY = 0;\r\n\r\n let dragSub: Subscription;\r\n\r\n // 3\r\n const dragStartSub = dragStart$.subscribe((event: MouseEvent) => {\r\n initialX = event.clientX - currentX;\r\n initialY = event.clientY - currentY;\r\n this.element.classList.add('free-dragging');\r\n\r\n // 4\r\n dragSub = drag$.subscribe((event: MouseEvent) => {\r\n event.preventDefault();\r\n\r\n currentX = event.clientX - initialX;\r\n currentY = event.clientY - initialY;\r\n\r\n this.element.style.transform =\r\n \"translate3d(\" + currentX + \"px, \" + currentY + \"px, 0)\";\r\n });\r\n });\r\n\r\n // 5\r\n const dragEndSub = dragEnd$.subscribe(() => {\r\n initialX = currentX;\r\n initialY = currentY;\r\n this.element.classList.remove('free-dragging');\r\n if (dragSub) {\r\n dragSub.unsubscribe();\r\n }\r\n });\r\n\r\n // 6\r\n this.subscriptions.push.apply(this.subscriptions, [\r\n dragStartSub,\r\n dragSub,\r\n dragEndSub,\r\n ]);\r\n }\r\n\r\n setElement(element: HTMLElement) {\r\n this.element = element;\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.forEach((s) => s.unsubscribe());\r\n }\r\n}\r\n","import { Component, OnInit, AfterViewChecked, ChangeDetectorRef } from '@angular/core';\r\nimport { AppSettings } from 'app/core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-search-container',\r\n templateUrl: './search-container.component.html',\r\n styleUrls: [ './search-container.component.scss' ]\r\n})\r\nexport class SearchContainerComponent implements OnInit, AfterViewChecked {\r\n constructor(private changeDetectorRef: ChangeDetectorRef, public appSettings: AppSettings) {\r\n }\r\n ngOnInit() { }\r\n\r\n ngAfterViewChecked() {\r\n this.changeDetectorRef.detectChanges();\r\n }\r\n}\r\n\r\n","
\r\n \r\n Track A\r\n Shipment\r\n Select an\r\n option below.\r\n \r\n
\r\n \r\n
\r\n
","
\r\n

{{errMessage}}

\r\n \r\n {{errIcon}}\r\n

{{errHeading}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
","import { Component, OnInit, Inject, OnDestroy } from '@angular/core';\r\nimport { MatDialog, MatDialogRef, MatDialogConfig, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { Location } from '@angular/common';\r\nimport { LoaderService } from '../../../../loader/loader';\r\nimport { MenuService } from '../../../../core/layout/menu.service';\r\nimport { XPOConstants } from '../../../../shared/constants/xpo-constants';\r\nimport { OrderService } from '../../../../shared';\r\nimport { AppSettings } from '../../../../core/app-settings';\r\nimport { SearchContainerComponent } from '../../../../track-another-order/search-container/search-container.component';\r\n\r\n@Component({\r\n selector: 'app-page-error',\r\n templateUrl: './page-error.component.html',\r\n styleUrls: [ './page-error.component.scss' ]\r\n})\r\nexport class PageErrorComponent implements OnInit {\r\n public dialogSearchRef;\r\n public order;\r\n public showOkay = false;\r\n public connectionError = false;\r\n public errHeading: string;\r\n public errIcon: string;\r\n public errMessage: string;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef,\r\n public dialog: MatDialog,\r\n private menuService: MenuService,\r\n public spinner: LoaderService,\r\n private orderService: OrderService,\r\n private router: Router,\r\n private location: Location,\r\n private appSettings: AppSettings,\r\n @Inject(MAT_DIALOG_DATA) public data: any\r\n ) {\r\n switch (data.errorCode) {\r\n\r\n case 403: {\r\n this.errHeading = this.appSettings.getMessage('FORBIDDEN_TITLE');\r\n this.errIcon = XPOConstants.ERROR_MESSAGE.FORBIDDEN_ICON;\r\n this.errMessage = this.appSettings.getMessage('FORBIDDEN_MSG');\r\n this.showOkay = true;\r\n break;\r\n }\r\n\r\n case 404: {\r\n this.errHeading = this.appSettings.getMessage('PAGE_NOT_FOUND_TITLE');\r\n this.errIcon = XPOConstants.ERROR_MESSAGE.PAGE_NOT_FOUND_ICON;\r\n this.errMessage = this.appSettings.getMessage('PAGE_NOT_FOUND_MSG');\r\n this.showOkay = false;\r\n break;\r\n }\r\n\r\n case 410: {\r\n this.errIcon = XPOConstants.ERROR_MESSAGE.PAGE_NOT_FOUND_ICON;\r\n this.errMessage = this.appSettings.getMessage('PAGE_NOT_FOUND_MSG_WALMART');\r\n this.showOkay = true;\r\n break;\r\n }\r\n\r\n case 500: {\r\n this.errHeading = this.appSettings.getMessage('INTERNAL_SERVER_ERROR_TITLE');\r\n this.errIcon = XPOConstants.ERROR_MESSAGE.INTERNAL_SERVER_ERROR_ICON;\r\n this.errMessage = this.appSettings.getMessage('INTERNAL_SERVER_ERROR_MSG');\r\n this.showOkay = true;\r\n break;\r\n }\r\n\r\n case 408: {\r\n this.errHeading = this.appSettings.getMessage('CONNECTION_ERROR_TITLE');\r\n this.errIcon = XPOConstants.ERROR_MESSAGE.CONNECTION_ERROR_ICON;\r\n this.errMessage = this.appSettings.getMessage('CONNECTION_ERROR_MSG');\r\n this.showOkay = true;\r\n this.connectionError = true;\r\n break;\r\n }\r\n\r\n case 422: {\r\n this.errHeading = this.appSettings.getMessage('INVALID_CODE_TITLE');\r\n this.errMessage = this.appSettings.getMessage('INVALID_CODE_MSG');\r\n this.showOkay = true;\r\n break;\r\n }\r\n\r\n default: {\r\n this.errHeading = this.appSettings.getMessage('PAGE_NOT_FOUND_TITLE');\r\n this.errIcon = XPOConstants.ERROR_MESSAGE.PAGE_NOT_FOUND_ICON;\r\n this.errMessage = this.appSettings.getMessage('PAGE_NOT_FOUND_MSG');\r\n this.showOkay = true;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n ngOnInit() {\r\n this.orderService.order.subscribe(order => {\r\n this.order = order;\r\n });\r\n }\r\n\r\n search() {\r\n this.menuService.showCloakView();\r\n this.menuService.isSearchDialogRequired = true;\r\n if (this.dialog.openDialogs.length > 0) {\r\n let margin = window.innerHeight >= XPOConstants.MOBILE_SIZE_LARGE ? XPOConstants.MARGIN_LARGE : XPOConstants.MARGIN_SMALL;\r\n let top_position = window.innerHeight - XPOConstants.SEARCH_COMPONENT_SIZE - XPOConstants.CONTACT_COMPONENT_SIZE - margin;\r\n const config: MatDialogConfig = {\r\n disableClose: true,\r\n hasBackdrop: true,\r\n position: {top : this.menuService.isMobileDevice() ? (top_position/2) + 'px' : ''},\r\n maxWidth: '100%'\r\n };\r\n this.dialogSearchRef = this.dialog.open(SearchContainerComponent, config);\r\n this.dialogSearchRef.afterClosed().subscribe(result => {\r\n this.dialogSearchRef = null;\r\n });\r\n }\r\n }\r\n openHome() {\r\n this.router.navigate([ '' ], { queryParams: { orderid: this.order.orderId } });\r\n this.menuService.hideMenu();\r\n this.hideProductDetailsIfMobile();\r\n }\r\n closeDialog() {\r\n this.dialogRef.close();\r\n if (this.menuService.isSearchDialogRequired) {\r\n this.menuService.hideCloakView();\r\n this.menuService.isSearchDialogRequired = false;\r\n }\r\n if (!this.order) {\r\n location.reload();\r\n } else {\r\n this.menuService.hideMenu();\r\n }\r\n }\r\n hideProductDetailsIfMobile() {\r\n if (this.menuService.isMobileDevice()) {\r\n this.menuService.isHomeSelected = true;\r\n }\r\n }\r\n}\r\n","
\r\n \r\n \r\n \r\n
\r\n\r\n\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { AppSettings } from '../../../core/app-settings';\r\nimport { XPOConstants } from '../../constants/xpo-constants';\r\n\r\n@Component({\r\n selector: 'app-header',\r\n templateUrl: './header.component.html',\r\n styleUrls: [ './header.component.scss' ]\r\n})\r\nexport class HeaderComponent implements OnInit {\r\n\r\n @Input() isMapView:boolean;\r\n \r\n public logoHyperlink: string;\r\n public logoSource: string;\r\n constructor(private appSettings: AppSettings) { \r\n }\r\n\r\n ngOnInit() {\r\n this.setLogo();\r\n }\r\n private setLogo(){\r\n this.logoHyperlink = this.appSettings.domainName === \"XPO\" ? XPOConstants.XPO_URL : XPOConstants.RXO_URL;\r\n this.logoSource = this.appSettings.domainName === \"XPO\" ? \"./assets/images/xpo-logo-dark.svg\" : \"./assets/images/RXO_rgb_k.png\";\r\n\r\n }\r\n\r\n}\r\n","
\r\n language\r\n \r\n \r\n {{language.viewValue}}\r\n \r\n \r\n \r\n
\r\n","import { Component, OnInit, Input } from '@angular/core';\r\nimport { XPOConstants } from '../../../shared';\r\nimport { AppSettings } from '../../../core/app-settings';\r\nimport { I18nService } from '../../../shared/services/i18n.service';\r\n\r\n@Component({\r\n selector: 'app-language-selector',\r\n templateUrl: './language-selector.component.html',\r\n styleUrls: [ './language-selector.component.scss' ]\r\n})\r\nexport class LanguageSelectorComponent implements OnInit {\r\n @Input() orderId: string;\r\n public Languages = [];\r\n private prefLanguage;\r\n public selectedValue;\r\n\r\n constructor(private appSettings: AppSettings,\r\n private i18nService: I18nService) {\r\n }\r\n\r\n ngOnInit() {\r\n this.selectedValue = this.i18nService.getLanguage();\r\n this.Languages = [\r\n { value: XPOConstants.I18N_EN, viewValue: this.appSettings.getMessage('ENGLISH') },\r\n { value: XPOConstants.I18N_FR, viewValue: this.appSettings.getMessage('FRENCH') }\r\n ];\r\n }\r\n\r\n onChange(e) {\r\n this.prefLanguage = e.value;\r\n this.i18nService.setLanguage(this.prefLanguage, this.orderId);\r\n this.i18nService.reLoadURL(this.prefLanguage);\r\n }\r\n\r\n}\r\n","export enum OrderCategory {\r\n Delivery = 1,\r\n Return = 2,\r\n ServiceOnly = 4,\r\n WillCall = 8,\r\n Sweep = 16,\r\n RTVRoutable = 32,\r\n RTVUnRoutable = 64\r\n}\r\n","
\r\n
\r\n {{willCallOrderStatusMessage1}}\r\n {{willCallOrderStatusMessage2}}\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n 0 ? bold : lighter\" [attr.fill]=\"black\" [attr.font-size]=\"circularFontSize\"\r\n [attr.letter-spacing]=\"circularTextSpacing\">\r\n {{orderStatus1}}\r\n \r\n 1 ? bold : lighter\" [attr.fill]=\"black\" [attr.font-size]=\"circularFontSize\"\r\n [attr.letter-spacing]=\"circularTextSpacing\">\r\n {{orderStatus2}}\r\n \r\n 1 ? bold : lighter\"\r\n [attr.fill]=\"black\" [attr.font-size]=\"circularFontSize\" [attr.letter-spacing]=\"circularTextSpacing\">\r\n {{orderStatus3}}\r\n \r\n\r\n 2 ? bold : lighter\" [attr.fill]=\"black\" [attr.font-size]=\"circularFontSize\"\r\n [attr.letter-spacing]=\"circularTextSpacing\">\r\n {{orderStatus4}}\r\n \r\n 3 ? bold : lighter\" [attr.fill]=\"showDialLabelinRed ? red : black\"\r\n [attr.font-size]=\"circularFontSize\" [attr.letter-spacing]=\"circularTextSpacing\">\r\n {{orderStatus5}}\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {{OrderCategoryMessages(order.salesOrderCategoryId)}}\r\n {{itemPlacementStatus}}\r\n {{itemStatusOrTimeWindow}}\r\n\r\n {{itemStatusOrTimeWindowPrimary}}\r\n {{itemStatusOrTimeWindowSecondary}}\r\n\r\n \r\n\r\n {{dateWindow}}\r\n {{itemProgressStatus}}\r\n \r\n {{callXPOInfo}}\r\n \r\n \r\n {{callHelpdesk | phone}}\r\n \r\n \r\n {{takeSurvey}}\r\n \r\n \r\n \r\n {{schedule}}\r\n \r\n \r\n \r\n \r\n {{appoinmentsCounter}}\r\n \r\n \r\n \r\n\r\n \r\n \r\n {{expiredStatus1}}\r\n {{expiredStatus2}}\r\n {{invalidStatus1}}\r\n {{invalidStatus2}}\r\n {{invalidStatus2}}\r\n {{pendingStatus1}} \r\n {{estimatedHubLabel}}\r\n {{getFormattedDate(order.expectedHubReceiptDate)}}\r\n {{pendingStatus2}}\r\n {{TimeWindowMessage}}\r\n
","import { Component, OnInit, Input, OnDestroy } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { Order, DatexPipe, GoogleAnalyticsConstants } from '../../shared';\r\nimport { OrderService } from '../../shared/services/order.service';\r\nimport { DatePipe } from '@angular/common';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { I18nService } from '../../shared/services/i18n.service';\r\nimport { XPOConstants } from '../../shared/constants/xpo-constants';\r\nimport { FooterComponent } from '../../footer/footer.component';\r\nimport { LoaderService } from '../../loader/loader';\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport * as moment from 'moment';\r\nimport { Subscription } from 'rxjs';\r\nimport { OrderCategory } from '../../shared/model/order-category.enum';\r\n\r\n/**\r\n * Component responisble for the order circular progress bar\r\n */\r\n@Component({\r\n selector: 'app-track-order-progress',\r\n templateUrl: './track-order-progress.component.html',\r\n styleUrls: ['./track-order-progress.component.scss'],\r\n providers: [DatePipe, DatexPipe]\r\n})\r\n\r\n/* eslint-disable max-len */\r\nexport class TrackOrderProgressComponent implements OnInit, OnDestroy {\r\n private static readonly STATUS_PLACED: string = 'OP';\r\n private static readonly STATUS_PENDING: string = 'OP';\r\n private static readonly STATUS_SHIPPED: string = 'SH';\r\n private static readonly STATUS_TRANSIT: string = 'IT';\r\n public static readonly STATUS_DELIVERED: string = 'DL';\r\n public static readonly STATUS_CANCELLED: string = 'CN';\r\n private static readonly STATUS_EXCEPTION: string = 'EXP';\r\n private static readonly STATUS_RPS: string = 'RPS';\r\n private static readonly STATUS_IS: string = 'IS';\r\n private static readonly STATUS_PS: string = 'PS';\r\n private static readonly STATUS_LABEL_RUL: string = 'RUL';\r\n private static readonly STATUS_LABEL_ONT: string = 'ONT';\r\n private static readonly STATUS_LABEL_ON_BOARD: string = 'ONBOARD';\r\n private static readonly BELL_ICON_WIDTH: string = '14.63px';\r\n private static readonly BELL_ICON_HEIGHT: string = '13.36px';\r\n private static readonly TICK_ICON_SIZE: string = '20.67px';\r\n\r\n public order: Order;\r\n // @Input() order: Order;\r\n @Input() segmentIndex: number;\r\n public orders: any[];\r\n // unit properties\r\n public width = 300;\r\n public height = 300;\r\n public radius = 110;\r\n public centerPoint = 150;\r\n public circleOuterBlurStrokeWidth = 0;\r\n public circleInnerBlurStrokeWidth = 0;\r\n public circleStrokeWidth = 1;\r\n public circleBackgroundStrokeWidth = 20;\r\n public progressArcStrokeWidth = 12;\r\n public circularTextSpacing = -1;\r\n public circularFontSize = 13;\r\n public ringDistance: number = 360 / 16;\r\n public arcTextOrderPlaced = 20;\r\n public arcTextOrderPlacedFOrStatus1AndStatus4 = 30;\r\n public arcTextOrderPlacedFOrStatus2AndStatus3 = -25;\r\n public arcTextAtXPO = 75;\r\n public arcTextAtPICKUP = 75;\r\n public arcTextOutForDelivery = 40;\r\n public arcTextDelivered = 100;\r\n private orderSubscription: Subscription;\r\n // multi\r\n public subCIpageIndex = 0;\r\n public showCISegments = false;\r\n public indexSegment = 0;\r\n public arrowDisableLeft = false;\r\n public arrowDisableRight = true;\r\n private ciPageIndex = 0;\r\n public enableMultiCISegements = false;\r\n public appoinmentsCounter;\r\n public yDL = 65;\r\n public xDL = 0;\r\n //public isUIClick = false;\r\n\r\n // Color Codes\r\n public blue = '#0091ea';\r\n public darkGreen: string;\r\n public black = '#000000';\r\n public lightGrey = '#bdbdbd';\r\n public grey = '#9E9E9E';\r\n public transparentGrey: string;\r\n public red: string;\r\n public darkRed = '#b10000';\r\n public white = '#ffffff';\r\n public darkOrange: string;\r\n public lighter = 'lighter';\r\n public bold = 'bold';\r\n\r\n // Property for drawing the line inside the progress bar circle\r\n public lines: string[] = [];\r\n\r\n // Order ETA properties\r\n public takeSurvey = '';\r\n public schedule = '';\r\n public allowSchedule = false;\r\n public isException = false;\r\n public callHelpdesk = '';\r\n public callXPOInfo = '';\r\n public itemProgressStatus = '';\r\n public dateWindow = '';\r\n public itemStatusOrTimeWindow = '';\r\n public invalidStatus1 = '';\r\n public invalidStatus2 = '';\r\n public expiredStatus1 = '';\r\n public expiredStatus2 = '';\r\n public pendingStatus1 = '';\r\n public pendingStatus2 = '';\r\n public willCallOrderStatusMessage1 = '';\r\n public willCallOrderStatusMessage2 = '';\r\n public itemPlacementStatus = '';\r\n public itemStatusOrTimeWindowColor = '';\r\n public dateWindowColor = '';\r\n public itemProgressStatusColor = '';\r\n public itemStatusOrTimeWindowSize = 20;\r\n public dateWindowSize = 13;\r\n public itemProgressStatusSize = 13;\r\n public gradientOffset1 = '0%';\r\n public gradientOffset2 = '100%';\r\n public gradientOffset3 = '0%';\r\n public gradientOffset4 = '100%';\r\n public gradientColor1 = '';\r\n public gradientColor2 = '';\r\n public gradientColor3 = '';\r\n public gradientColor4 = '';\r\n public solidColor = '';\r\n public statusNumber = 2;\r\n public ringBorderColor = '';\r\n public segmentGradientId = '';\r\n public segmentGradientId1 = '';\r\n public segmentGradientUrl = '';\r\n public segmentGradientUrl1 = '';\r\n public orderStatusIcon = '';\r\n public progressSegmentationIcon = '';\r\n public progressSegmentationIcon1 = '';\r\n public progressSegmentationIcon2 = '';\r\n public progressSegmentationIcon3 = '';\r\n public progressSegmentationIcon4 = '';\r\n public progressSegmentationIcon5 = '';\r\n public exceptionIcon = '';\r\n public flag = 1;\r\n public xAxis: number;\r\n public smsOptStatus = '';\r\n public iconWidth = '';\r\n public iconHeight = '';\r\n public scheduledStatus = '';\r\n private locationPathURL;\r\n public isLmx = false;\r\n public orderStatus1 = '';\r\n public orderStatus2 = '';\r\n public orderStatus3 = '';\r\n public orderStatus4 = '';\r\n public orderStatus5 = '';\r\n public displayTimeWindow = false;\r\n public TimeWindowMessage = '';\r\n public estimatedHubLabel = '';\r\n public showDialLabelinRed = false;\r\n public defaultDisplay = false;\r\n public woHavingException = '';\r\n\r\n public isRXO: boolean;\r\n public itemStatusOrTimeWindowPrimary = '';\r\n public itemStatusOrTimeWindowSecondary = '';\r\n public yItemStatusOrTimeWindow = 0;\r\n public yItemStatusOrTimeWindowSecondary = 0;\r\n\r\n private static degreesToRadians(degrees): number {\r\n return (degrees * Math.PI) / 180;\r\n }\r\n\r\n constructor(\r\n private orderService: OrderService,\r\n private spinner: LoaderService,\r\n public menuService: MenuService,\r\n private i18nService: I18nService,\r\n private datePipe: DatePipe,\r\n private datexPipe: DatexPipe,\r\n private router: Router,\r\n private appSettings: AppSettings,\r\n private footerComponent: FooterComponent\r\n ) {\r\n for (let i = -150; i <= 150; i += this.ringDistance) {\r\n const transform = `rotate(${i}, ${this.centerPoint}, ${this.centerPoint})`;\r\n this.lines.push(transform);\r\n }\r\n }\r\n\r\n public getOrderCategoryById(id: number) {\r\n switch (id) {\r\n case 1:\r\n return 'Delivery';\r\n case 2:\r\n return 'Return';\r\n case 4:\r\n return 'Service Only';\r\n case 8:\r\n return 'Will Call';\r\n case 16:\r\n return 'Sweep';\r\n case 32:\r\n return 'RTV - Routable';\r\n case 64:\r\n return 'RTV - UnRoutable';\r\n default:\r\n break;\r\n }\r\n }\r\n public get scheduleOrderMsgApplicable() {\r\n if (this.order.isException) {\r\n return false;\r\n }\r\n if (this.order.salesOrderCategoryId === OrderCategory.WillCall) {\r\n return false;\r\n }\r\n if (this.order.salesOrderCategoryId === OrderCategory.Return) {\r\n return (\r\n this.order.currentStatus.toUpperCase() === TrackOrderProgressComponent.STATUS_SHIPPED ||\r\n this.order.currentStatus.toUpperCase() === TrackOrderProgressComponent.STATUS_PLACED\r\n );\r\n }\r\n return (\r\n this.order.currentStatus.toUpperCase() === TrackOrderProgressComponent.STATUS_TRANSIT ||\r\n this.order.currentStatus.toUpperCase() === TrackOrderProgressComponent.STATUS_SHIPPED ||\r\n this.order.currentStatus.toUpperCase() === TrackOrderProgressComponent.STATUS_PLACED\r\n );\r\n }\r\n\r\n public OrderCategoryMessages(id) {\r\n let msg = '';\r\n\r\n if (id === OrderCategory.Delivery) {\r\n msg = this.appSettings.getMessage('ORDER_CATEGORY_DELIVERY');\r\n } else if (id === OrderCategory.Return) {\r\n msg = this.appSettings.getMessage('ORDER_CATEGORY_RETURN_WILLCALL');\r\n } else if (id === OrderCategory.ServiceOnly) {\r\n msg = this.appSettings.getMessage('ORDER_CATEGORY_SERVICE');\r\n } else {\r\n msg = '';\r\n }\r\n return msg;\r\n }\r\n ngOnInit() {\r\n this.isRXO = this.appSettings.isNewDomain;\r\n this.yItemStatusOrTimeWindow = this.centerPoint - 20;\r\n this.yItemStatusOrTimeWindowSecondary = this.centerPoint;\r\n\r\n this.darkGreen = this.appSettings.isNewDomain ? '#00F49C' : '#52ae5f';\r\n this.red = this.appSettings.isNewDomain ? '#C62828' : '#c11a00';\r\n this.transparentGrey = this.appSettings.isNewDomain ? '#F2F2F2' : '#EEEEEE';\r\n this.darkOrange = this.appSettings.isNewDomain ? '#FF6D00' : '#e36209';\r\n this.menuService.isUIClick = false;\r\n if (this.i18nService.localeID === XPOConstants.I18N_FR) {\r\n this.arcTextOrderPlaced = -4;\r\n this.arcTextAtXPO = 70;\r\n this.arcTextAtPICKUP = 70;\r\n this.arcTextOutForDelivery = 30;\r\n this.arcTextDelivered = 110;\r\n }\r\n\r\n this.orderSubscription = this.orderService.order.subscribe(order => {\r\n if (order) {\r\n //debugger;\r\n if (this.menuService.soId == '') {\r\n this.menuService.soId = order.orderId;\r\n } else {\r\n if (this.menuService.soId != order.orderId) {\r\n this.menuService.multiOrderCIpageIndex = 0;\r\n this.menuService.isUIClick = false;\r\n this.menuService.soId = order.orderId;\r\n }\r\n }\r\n this.order = order;\r\n this.displayTimeWindow = false;\r\n this.isException = false;\r\n if (this.order.isException || (this.order.items != null && this.order.items.filter(x => x.isException === true).length > 0)) {\r\n this.isException = true;\r\n }\r\n\r\n if (\r\n this.isException === false &&\r\n this.order.deliveryServiceWindowStartTime == null &&\r\n this.order.orderScheduledDate &&\r\n (this.order.currentStatus == 'SH' || this.order.currentStatus == 'OP')\r\n ) {\r\n this.displayTimeWindow = true;\r\n switch (this.order.salesOrderCategoryId) {\r\n case 2:\r\n this.TimeWindowMessage = this.appSettings.getMessage('TIMEWINDOW_MESSAGE') + this.appSettings.getMessage('RETURN');\r\n break;\r\n case 4:\r\n this.TimeWindowMessage = this.appSettings.getMessage('TIMEWINDOW_MESSAGE') + this.appSettings.getMessage('SERVICE');\r\n break;\r\n default:\r\n this.TimeWindowMessage = this.appSettings.getMessage('TIMEWINDOW_MESSAGE') + this.appSettings.getMessage('DELIVERY');\r\n break;\r\n }\r\n }\r\n\r\n if (this.menuService.isMultiOrder) {\r\n this.subCIpageIndex = this.orderService.orderValue[this.menuService.pageIndex].length;\r\n if (this.subCIpageIndex > 1) {\r\n this.arrowDisableRight = false;\r\n this.enableMultiCISegements = true;\r\n //debugger;\r\n if (\r\n !this.menuService.isUIClick &&\r\n this.order.exceptions != null &&\r\n this.order.exceptions.find(ex => ex.exceptionTypeId === 1 && ex.exceptionCode.toUpperCase() === 'CANT-PERFORM-STOP')\r\n ) {\r\n this.woHavingException = this.order.workOrderId;\r\n }\r\n\r\n if (!this.menuService.isUIClick && !this.order.mergedFromWoId.includes(this.woHavingException) && this.woHavingException != '') {\r\n this.arrowDisableLeft = false;\r\n this.onRightClick(false);\r\n }\r\n this.appoinmentsCounter =\r\n this.appSettings.getMessage('APPOINTMENT') +\r\n ' ' +\r\n (this.menuService.multiOrderCIpageIndex + 1) +\r\n ' ' +\r\n this.appSettings.getMessage('OF') +\r\n ' ' +\r\n this.subCIpageIndex;\r\n } else {\r\n this.arrowDisableLeft = false;\r\n this.arrowDisableRight = false;\r\n this.enableMultiCISegements = false;\r\n }\r\n }\r\n if (this.menuService.multiOrderCIpageIndex === this.subCIpageIndex - 1) {\r\n this.arrowDisableRight = true;\r\n }\r\n this.fetchOrder(this.order);\r\n }\r\n });\r\n\r\n this.progressSegmentationIcon1 = './assets/icons/arrow-position-1.svg';\r\n this.progressSegmentationIcon2 = './assets/icons/arrow-position-2.svg';\r\n this.progressSegmentationIcon3 = './assets/icons/arrow-position-3.svg';\r\n this.progressSegmentationIcon4 = './assets/icons/arrow-position-4.svg';\r\n this.progressSegmentationIcon5 = './assets/icons/rounded-edge.svg';\r\n\r\n this.estimatedHubLabel = this.appSettings.getMessage('ORDER_ETA');\r\n\r\n if (this.enableMultiCISegements) {\r\n this.yItemStatusOrTimeWindow = this.centerPoint;\r\n this.yItemStatusOrTimeWindowSecondary = this.centerPoint + 15;\r\n }\r\n }\r\n private resetDial() {\r\n this.xAxis = this.centerPoint - 5;\r\n this.invalidStatus1 = '';\r\n this.invalidStatus2 = '';\r\n this.expiredStatus1 = '';\r\n this.expiredStatus2 = '';\r\n this.pendingStatus1 = '';\r\n this.pendingStatus2 = '';\r\n this.willCallOrderStatusMessage1 = '';\r\n this.willCallOrderStatusMessage2 = '';\r\n this.itemPlacementStatus = '';\r\n this.itemStatusOrTimeWindow = '';\r\n this.dateWindow = '';\r\n this.itemProgressStatus = '';\r\n this.callXPOInfo = '';\r\n this.callHelpdesk = '';\r\n this.takeSurvey = '';\r\n this.schedule = '';\r\n this.allowSchedule = false;\r\n this.orderStatusIcon = '';\r\n this.gradientColor1 = '';\r\n this.gradientColor2 = '';\r\n this.gradientColor3 = '';\r\n this.gradientColor4 = '';\r\n this.solidColor = '';\r\n this.ringBorderColor = '';\r\n this.segmentGradientId = '';\r\n this.segmentGradientId1 = '';\r\n this.segmentGradientUrl = '';\r\n this.segmentGradientUrl1 = '';\r\n this.smsOptStatus = '';\r\n this.iconWidth = '';\r\n this.iconHeight = '';\r\n this.scheduledStatus = '';\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindowSize = 13;\r\n this.itemProgressStatusSize = 13;\r\n this.segmentIndex = 0;\r\n this.showDialLabelinRed = false;\r\n }\r\n\r\n private isEmpty(value) {\r\n if (value) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n /**\r\n * Method responsible for fetching the order\r\n */\r\n private fetchOrder(order: Order) {\r\n this.resetDial();\r\n\r\n // order.salesOrderCategoryId = 8;\r\n // order.currentStatus = TrackOrderProgressComponent.STATUS_DELIVERED;\r\n if (order.salesOrderCategoryId === 4) {\r\n //Service Only orders\r\n this.circularFontSize = 13;\r\n this.arcTextOrderPlacedFOrStatus2AndStatus3 = -15;\r\n this.arcTextOrderPlacedFOrStatus1AndStatus4 = 20;\r\n this.arcTextOutForDelivery = 56;\r\n this.arcTextAtPICKUP = 50;\r\n this.orderStatus1 = this.appSettings.getMessage('ORDER_PLACED');\r\n this.orderStatus2 = '';\r\n this.orderStatus3 = this.appSettings.getMessage('SERVICE_SCHEDULED');\r\n this.orderStatus4 = this.appSettings.getMessage('ENROUTE');\r\n this.orderStatus5 = this.appSettings.getMessage('SERVICE_ONLY_COMPLETED');\r\n } else if (order.salesOrderCategoryId === 2) {\r\n //It is return only\r\n this.circularFontSize = 13;\r\n this.arcTextOrderPlacedFOrStatus2AndStatus3 = -15;\r\n this.arcTextOrderPlacedFOrStatus1AndStatus4 = 20;\r\n this.arcTextDelivered = this.isRXO ? 65 : 80;\r\n this.arcTextOutForDelivery = 30;\r\n this.arcTextOrderPlaced = 8;\r\n this.orderStatus1 = this.appSettings.getMessage('PICKUP_SCHEDULED');\r\n this.orderStatus2 = '';\r\n this.orderStatus3 = this.appSettings.getMessage('ENROUTE');\r\n this.orderStatus4 = this.appSettings.getMessage('PICKED_UP_FROM_CONSUMER');\r\n this.orderStatus5 = this.appSettings.getMessage('RETURNED_TO_FACILITY');\r\n } else if (order.salesOrderCategoryId === 8) {\r\n this.arcTextOrderPlaced = 0;\r\n this.circularFontSize = 13;\r\n this.arcTextOrderPlacedFOrStatus2AndStatus3 = -15;\r\n this.arcTextOrderPlacedFOrStatus1AndStatus4 = 20;\r\n this.arcTextAtPICKUP = 125;\r\n this.arcTextDelivered = 110;\r\n //Will Call order\r\n this.orderStatus1 = this.appSettings.getMessage('ORDER_PLACED');\r\n this.orderStatus2 = '';\r\n this.orderStatus4 = '';\r\n this.orderStatus3 = this.appSettings.getMessage('READY_FOR_PICKUP');\r\n this.orderStatus5 = this.appSettings.getMessage('PICKUP_COMPLETED');\r\n } else {\r\n //Default\r\n this.arcTextOrderPlaced = this.isRXO ? 8 : 20;\r\n this.arcTextAtPICKUP = 75;\r\n this.arcTextDelivered = 100;\r\n this.orderStatus1 = this.appSettings.getMessage('ORDER_PLACED');\r\n this.orderStatus2 = this.appSettings.getMessage('AT_XPO');\r\n this.orderStatus3 = this.appSettings.getMessage('AT_PICKUP');\r\n this.orderStatus4 = this.appSettings.getMessage('OUT_FOR_DELIVERY');\r\n this.orderStatus5 = this.appSettings.getMessage('DELIVERED');\r\n }\r\n\r\n const isStopLevelException =\r\n order.exceptions != null && order.exceptions.find(ex => ex.exceptionTypeId === 1 && ex.exceptionCode.toUpperCase() === 'CANT-PERFORM-STOP');\r\n\r\n const isAllItemRefused =\r\n order?.items?.length > 0 &&\r\n order.items.filter(\r\n it => it.exceptions != null && it.exceptions.find(ex => ex.exceptionTypeId === 2 && ex.exceptionCode.toUpperCase() === 'CANT-PU/DEL-ITEM')\r\n ).length === order.items.length;\r\n\r\n if (\r\n (isAllItemRefused || isStopLevelException) &&\r\n order.currentStatus == 'DL' &&\r\n (order.salesOrderCategoryId === 2 || order.salesOrderCategoryId === 1 || order.salesOrderCategoryId == 4)\r\n ) {\r\n this.orderStatus5 = this.appSettings.getMessage('EXCEPTION_LABEL');\r\n this.showDialLabelinRed = true;\r\n }\r\n\r\n this.itemStatusOrTimeWindowColor = this.black;\r\n this.dateWindowColor = this.darkGreen;\r\n this.gradientColor1 = this.darkGreen;\r\n this.gradientColor2 = this.darkGreen;\r\n this.solidColor = this.darkGreen;\r\n this.ringBorderColor = this.blue;\r\n this.segmentGradientId = 'grad' + this.segmentIndex;\r\n this.segmentGradientId1 = 'grad' + (this.segmentIndex + 1);\r\n this.segmentGradientUrl = 'url(#' + this.segmentGradientId + ')';\r\n this.segmentGradientUrl1 = 'url(#' + this.segmentGradientId1 + ')';\r\n let orderStatus = order.currentStatus;\r\n this.scheduledStatus = order.scheduledStatus;\r\n this.isLmx = order.isLMx;\r\n\r\n const isTimeEmpty = this.isEmpty(order.deliveryServiceWindowStartTime) || this.isEmpty(order.deliveryServiceWindowEndTime);\r\n if (order.smsOptInStatus) {\r\n this.smsOptStatus = './assets/icons/icon-bell-green.svg';\r\n this.orderService.callfooterenabledisable(1);\r\n } else {\r\n this.smsOptStatus = './assets/icons/icon-bell-gray.svg';\r\n this.orderService.callfooterenabledisable(0);\r\n }\r\n if (this.isException) {\r\n this.setExceptionForOrderDial(order, orderStatus);\r\n } else {\r\n if (orderStatus) {\r\n orderStatus = orderStatus.toUpperCase();\r\n // Checking whether the order is on track/running late\r\n if (!(orderStatus === TrackOrderProgressComponent.STATUS_DELIVERED || orderStatus === TrackOrderProgressComponent.STATUS_CANCELLED)) {\r\n if (order.etaStatus === TrackOrderProgressComponent.STATUS_LABEL_RUL) {\r\n this.setOrderStatus(order, this.appSettings.getMessage('STATUS_LABEL_RUNNING_LATE'));\r\n this.itemProgressStatusColor = this.darkRed;\r\n this.itemStatusOrTimeWindowColor = this.darkRed;\r\n this.gradientColor2 = this.red;\r\n this.solidColor = this.darkOrange;\r\n } else if (order.etaStatus === TrackOrderProgressComponent.STATUS_LABEL_ONT) {\r\n this.setOrderStatus(order, this.appSettings.getMessage('STATUS_LABEL_ON_TRACK'));\r\n }\r\n }\r\n // Finding the last stop's date\r\n const lastStop = null;\r\n const lastStopNumber = 0;\r\n\r\n if (\r\n (order.salesOrderCategoryId === 2 || order.salesOrderCategoryId === 4) &&\r\n (orderStatus === TrackOrderProgressComponent.STATUS_DELIVERED ||\r\n orderStatus === TrackOrderProgressComponent.STATUS_TRANSIT ||\r\n orderStatus === TrackOrderProgressComponent.STATUS_SHIPPED ||\r\n orderStatus === TrackOrderProgressComponent.STATUS_PLACED ||\r\n orderStatus === TrackOrderProgressComponent.STATUS_RPS ||\r\n orderStatus === '')\r\n ) {\r\n this.setStatusForServiceAndReturnOnlyOrder(orderStatus, order);\r\n } else if (\r\n order.salesOrderCategoryId === 8 &&\r\n (orderStatus === TrackOrderProgressComponent.STATUS_PLACED ||\r\n orderStatus === TrackOrderProgressComponent.STATUS_SHIPPED ||\r\n orderStatus === TrackOrderProgressComponent.STATUS_DELIVERED)\r\n ) {\r\n this.setStatusForWillCallPickupOrder(orderStatus, order);\r\n } else {\r\n if (orderStatus !== TrackOrderProgressComponent.STATUS_DELIVERED) {\r\n if (orderStatus !== TrackOrderProgressComponent.STATUS_CANCELLED || orderStatus !== TrackOrderProgressComponent.STATUS_EXCEPTION) {\r\n this.itemStatusOrTimeWindowPrimary = null;\r\n this.itemStatusOrTimeWindowSecondary = null;\r\n const today = new Date();\r\n const todayDate = this.getFormattedDate(today);\r\n if (order.deliveryServiceWindowStartTime == null) {\r\n if (todayDate === this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindow = this.appSettings.getMessage('TODAY');\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n this.TimeWindowMessage = '';\r\n } else if (todayDate !== this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.itemStatusOrTimeWindowSize = 18.5;\r\n }\r\n } else if (order.deliveryServiceWindowStartTime != null) {\r\n if (todayDate === this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedTime(order.deliveryServiceWindowStartTime, order.deliveryServiceWindowEndTime);\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindow = this.appSettings.getMessage('TODAY');\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n this.TimeWindowMessage = '';\r\n } else if (todayDate !== this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedTime(order.deliveryServiceWindowStartTime, order.deliveryServiceWindowEndTime);\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n }\r\n }\r\n }\r\n } else {\r\n this.dateWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n }\r\n this.setStatusNumber(orderStatus, order);\r\n }\r\n }\r\n }\r\n }\r\n\r\n private setOrderStatus(order, status) {\r\n const isTimeEmpty = this.isEmpty(order.deliveryServiceWindowStartTime) || this.isEmpty(order.deliveryServiceWindowEndTime);\r\n if (isTimeEmpty) {\r\n this.dateWindow = status;\r\n } else {\r\n this.itemProgressStatus = status;\r\n this.itemProgressStatusColor = this.darkGreen;\r\n if (order.orderScheduledDate) {\r\n this.itemStatusOrTimeWindowPrimary = null;\r\n this.itemStatusOrTimeWindowSecondary = null;\r\n this.itemStatusOrTimeWindow = (order.deliveryServiceWindowStartTime + ' - ' + order.deliveryServiceWindowEndTime).toUpperCase();\r\n this.dateWindowColor = this.black;\r\n this.dateWindowSize = 17;\r\n }\r\n }\r\n }\r\n // multi\r\n public onPageChange(page) {\r\n this.orderService.setOrder(this.orderService.orderValue[this.menuService.pageIndex][page]);\r\n this.menuService.onNavigateCloseDailog(this.order.orderId);\r\n }\r\n\r\n private rightArrowClick() {\r\n if (this.menuService.multiOrderCIpageIndex >= 1) {\r\n this.arrowDisableLeft = true;\r\n }\r\n if (this.menuService.multiOrderCIpageIndex === this.subCIpageIndex - 1) {\r\n this.arrowDisableRight = true;\r\n }\r\n }\r\n\r\n private leftArrowClick() {\r\n if (this.menuService.multiOrderCIpageIndex === 1) {\r\n this.arrowDisableLeft = false;\r\n this.arrowDisableRight = false;\r\n } else {\r\n this.arrowDisableLeft = true;\r\n this.arrowDisableRight = false;\r\n }\r\n }\r\n\r\n public onRightClick(defultClick) {\r\n this.menuService.isUIClick = defultClick;\r\n if (this.menuService.multiOrderCIpageIndex < this.subCIpageIndex - 1) {\r\n this.menuService.multiOrderCIpageIndex++;\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.rightArrowClick();\r\n this.onPageChange(this.menuService.multiOrderCIpageIndex);\r\n }\r\n }\r\n\r\n public onLeftClick(defultClick) {\r\n this.menuService.isUIClick = defultClick;\r\n if (this.menuService.multiOrderCIpageIndex > 0) {\r\n this.leftArrowClick();\r\n this.menuService.multiOrderCIpageIndex--;\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.onPageChange(this.menuService.multiOrderCIpageIndex);\r\n }\r\n }\r\n\r\n public onClickSMSOpt() {\r\n this.locationPathURL = this.router.url.split('?')[0].replace(/\\//g, '');\r\n if ((!this.order.validated && this.locationPathURL !== 'verification') || (this.order.validated && this.locationPathURL !== 'alerts')) {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.ALERT_SUBSCRIPTION,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.ALERT_SUBSCRIPTION\r\n }\r\n });\r\n this.router.navigate(['alerts'], { queryParams: { orderid: this.order.orderId } });\r\n this.hideProductDetailsIfMobile();\r\n }\r\n }\r\n public callCustomerCare() {\r\n window.location.href = 'tel:' + this.order.xpoPhoneNumber;\r\n }\r\n public openSurvey() {\r\n this.locationPathURL = this.router.url.split('?')[0].replace(/\\//g, '');\r\n if ((!this.order.validated && this.locationPathURL !== 'verification') || (this.order.validated && this.locationPathURL !== 'survey')) {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: { category: GoogleAnalyticsConstants.EVENT_CATEGORY.SURVEY, label: GoogleAnalyticsConstants.EVENT_CATEGORY.SURVEY }\r\n });\r\n this.router.navigate(['survey'], { queryParams: { orderid: this.order.orderId } });\r\n this.hideProductDetailsIfMobile();\r\n }\r\n }\r\n private hideProductDetailsIfMobile() {\r\n if (this.menuService.isMobileDevice()) {\r\n this.menuService.isHomeSelected = false;\r\n this.menuService.segmentRefreshNeeded = false;\r\n this.menuService.ismapRefreshNeeded = false;\r\n }\r\n }\r\n\r\n public openOrderDetails() {\r\n const IsOrderDetail = this.router.url.includes('order-details');\r\n if (!IsOrderDetail) {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.ORDER_DETAILS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.ORDER_DETAILS\r\n }\r\n });\r\n this.router.navigate(['order-details'], { queryParams: { orderid: this.order.orderId } });\r\n this.hideProductDetailsIfMobile();\r\n }\r\n }\r\n\r\n public openRescheduler() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.RESCHEDULE,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.RESCHEDULE\r\n }\r\n });\r\n if (this.router.url && this.router.url.includes('reschedule')) {\r\n this.spinner.hideLoader();\r\n }\r\n this.router.navigate(['reschedule'], { queryParams: { orderid: this.order.orderId } });\r\n this.hideProductDetailsIfMobile();\r\n }\r\n public getFormattedDate(date) {\r\n if (date) {\r\n moment.locale(this.i18nService.localeID);\r\n if (this.i18nService.localeID === XPOConstants.I18N_FR) {\r\n return moment(date).format('dddd D MMMM');\r\n } else {\r\n return moment(date).format('ddd, MMM D');\r\n }\r\n }\r\n return date;\r\n }\r\n\r\n private getFormattedTime(startDate: string, endDate: string): string {\r\n const startString = this.datexPipe.transform(startDate, 'hh:mm A');\r\n const endString = this.datexPipe.transform(endDate, 'hh:mm A');\r\n return `${startString}-${endString}`;\r\n }\r\n private setStatusForWillCallPickupOrder(status: string, order) {\r\n if (status !== TrackOrderProgressComponent.STATUS_PLACED) {\r\n const today = new Date();\r\n const todayDate = this.getFormattedDate(today);\r\n\r\n if (todayDate === this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindowPrimary = null;\r\n this.itemStatusOrTimeWindowSecondary = null;\r\n this.itemStatusOrTimeWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindow = this.appSettings.getMessage('TODAY');\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n this.TimeWindowMessage = '';\r\n } else if (todayDate !== this.getFormattedDate(order.orderScheduledDate)) {\r\n this.dateWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.dateWindowSize = 18.5;\r\n this.dateWindowColor = this.black;\r\n }\r\n }\r\n\r\n if (status === TrackOrderProgressComponent.STATUS_SHIPPED) {\r\n this.statusNumber = 2;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n this.itemPlacementStatus = this.scheduledStatus;\r\n this.willCallOrderStatusMessage1 = this.appSettings.getMessage('STATUS_LABEL_WILL_CALL_ORDER_SH');\r\n this.willCallOrderStatusMessage2 = order.shipper.pickupAddress;\r\n this.orderStatusIcon = this.smsOptStatus;\r\n this.dateWindow = '';\r\n this.displayTimeWindow = false;\r\n this.itemStatusOrTimeWindow = '';\r\n } else if (status === TrackOrderProgressComponent.STATUS_DELIVERED) {\r\n this.statusNumber = 4;\r\n // for delivery icon\r\n if (this.enableMultiCISegements) {\r\n this.yDL = 40;\r\n this.xDL = this.centerPoint - 11;\r\n } else {\r\n this.yDL = 60;\r\n this.xDL = this.centerPoint - 11;\r\n }\r\n this.iconWidth = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.iconHeight = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.itemStatusOrTimeWindow = '';\r\n this.itemStatusOrTimeWindowColor = this.black;\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.orderStatusIcon = this.isRXO ? './assets/icons/icon-progress-on-rxo.svg' : './assets/icons/icon-progress-on.svg';\r\n this.itemPlacementStatus = this.scheduledStatus;\r\n if (this.isRXO) {\r\n this.itemStatusOrTimeWindow = null;\r\n this.itemStatusOrTimeWindowPrimary = this.appSettings.getMessage('STATUS_LABEL_WILL_CALL_ORDER_DL_RXO_PRIMARY');\r\n this.itemStatusOrTimeWindowSecondary = this.appSettings.getMessage('STATUS_LABEL_WILL_CALL_ORDER_DL_RXO_SECONDARY');\r\n } else {\r\n this.itemStatusOrTimeWindowPrimary = null;\r\n this.itemStatusOrTimeWindowSecondary = null;\r\n this.itemStatusOrTimeWindow = this.appSettings.getMessage('STATUS_LABEL_WILL_CALL_ORDER_DL');\r\n }\r\n } else {\r\n this.statusNumber = 1;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n this.willCallOrderStatusMessage1 = this.appSettings.getMessage('STATUS_LABEL_WILL_CALL_ORDER_PS_MESSAGE1');\r\n this.willCallOrderStatusMessage2 = this.appSettings.getMessage('STATUS_LABEL_WILL_CALL_ORDER_PS_MESSAGE2');\r\n }\r\n }\r\n\r\n private setStatusForServiceAndReturnOnlyOrder(status: string, order) {\r\n this.itemStatusOrTimeWindowPrimary = null;\r\n this.itemStatusOrTimeWindowSecondary = null;\r\n if (\r\n status !== TrackOrderProgressComponent.STATUS_DELIVERED &&\r\n (status !== TrackOrderProgressComponent.STATUS_TRANSIT || order.salesOrderCategoryId === 4)\r\n ) {\r\n const today = new Date();\r\n const todayDate = this.getFormattedDate(today);\r\n if (order.deliveryServiceWindowStartTime == null) {\r\n if (todayDate === this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindow = this.appSettings.getMessage('TODAY');\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n this.TimeWindowMessage = '';\r\n } else if (todayDate !== this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.itemStatusOrTimeWindowSize = 18.5;\r\n }\r\n } else if (order.deliveryServiceWindowStartTime != null) {\r\n if (todayDate === this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedTime(order.deliveryServiceWindowStartTime, order.deliveryServiceWindowEndTime);\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindow = this.appSettings.getMessage('TODAY');\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n this.TimeWindowMessage = '';\r\n } else if (todayDate !== this.getFormattedDate(order.orderScheduledDate)) {\r\n this.itemStatusOrTimeWindow = this.getFormattedTime(order.deliveryServiceWindowStartTime, order.deliveryServiceWindowEndTime);\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.dateWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n }\r\n }\r\n } else {\r\n this.dateWindow = this.getFormattedDate(order.orderScheduledDate);\r\n this.dateWindowSize = 17;\r\n this.dateWindowColor = this.black;\r\n }\r\n\r\n if (status === TrackOrderProgressComponent.STATUS_SHIPPED || (status === TrackOrderProgressComponent.STATUS_PLACED && order.orderScheduledDate)) {\r\n this.statusNumber = 2;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n } else if (status === TrackOrderProgressComponent.STATUS_TRANSIT && order.salesOrderCategoryId === 2) {\r\n this.statusNumber = 3;\r\n if (this.enableMultiCISegements) {\r\n this.yDL = 40;\r\n this.xDL = this.centerPoint - 11;\r\n } else {\r\n this.yDL = 60;\r\n this.xDL = this.centerPoint - 11;\r\n }\r\n this.iconWidth = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.iconHeight = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.itemStatusOrTimeWindow = this.appSettings.getMessage('STATUS_PICKUP_COMPLETED');\r\n this.itemStatusOrTimeWindowColor = this.black;\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.orderStatusIcon = this.isRXO ? './assets/icons/icon-progress-on-rxo.svg' : './assets/icons/icon-progress-on.svg';\r\n } else if (status === TrackOrderProgressComponent.STATUS_TRANSIT && order.salesOrderCategoryId === 4) {\r\n this.statusNumber = 3;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n } else if (status === TrackOrderProgressComponent.STATUS_DELIVERED) {\r\n this.statusNumber = 4;\r\n // for delivery icon\r\n if (this.enableMultiCISegements) {\r\n this.yDL = 40;\r\n this.xDL = this.centerPoint - 11;\r\n } else {\r\n this.yDL = 60;\r\n this.xDL = this.centerPoint - 11;\r\n }\r\n this.iconWidth = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.iconHeight = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n if (this.isRXO) {\r\n this.itemStatusOrTimeWindow = null;\r\n this.itemStatusOrTimeWindowPrimary =\r\n order.salesOrderCategoryId === 2\r\n ? this.appSettings.getMessage('STATUS_PICKUP_COMPLETED_RXO_PRIMARY')\r\n : this.appSettings.getMessage('STATUS_INSTALL_SERVICE_RXO_PRIMARY');\r\n\r\n this.itemStatusOrTimeWindowSecondary =\r\n order.salesOrderCategoryId === 2\r\n ? this.appSettings.getMessage('STATUS_PICKUP_COMPLETED_RXO_SECONDARY')\r\n : this.appSettings.getMessage('STATUS_INSTALL_SERVICE_RXO_SECONDARY');\r\n } else {\r\n this.itemStatusOrTimeWindowPrimary = null;\r\n this.itemStatusOrTimeWindowSecondary = null;\r\n this.itemStatusOrTimeWindow =\r\n order.salesOrderCategoryId === 2\r\n ? this.appSettings.getMessage('STATUS_PICKUP_COMPLETED')\r\n : this.appSettings.getMessage('STATUS_INSTALL_SERVICE');\r\n }\r\n\r\n this.itemStatusOrTimeWindowColor = this.black;\r\n this.itemStatusOrTimeWindowSize = 20;\r\n this.orderStatusIcon = this.isRXO ? './assets/icons/icon-progress-on-rxo.svg' : './assets/icons/icon-progress-on.svg';\r\n } else {\r\n this.statusNumber = 1;\r\n if (this.order.eligibleForReschedule === true && !order.orderScheduledDate) {\r\n if (order.salesOrderCategoryId === 2) {\r\n this.invalidStatus2 = this.appSettings.getMessage('STATUS_LABEL_RPS_SCHEDULE_PICKUP');\r\n }\r\n if (order.salesOrderCategoryId === 4) {\r\n this.invalidStatus2 = this.appSettings.getMessage('STATUS_LABEL_RPS_SCHEDULE_SERVICE');\r\n }\r\n this.schedule = this.appSettings.getMessage('RESCHEDULE');\r\n this.allowSchedule = true;\r\n order.currentStatus = 'RPS';\r\n\r\n // reschedule icon\r\n this.orderStatusIcon = './assets/icons/icon-reschedule.svg';\r\n this.iconWidth = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.iconHeight = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n if (this.enableMultiCISegements) {\r\n this.yDL = 5;\r\n this.xDL = this.centerPoint - 8;\r\n } else {\r\n this.yDL = -15;\r\n this.xDL = this.centerPoint - 8;\r\n }\r\n }\r\n this.itemPlacementStatus = this.scheduledStatus;\r\n }\r\n }\r\n\r\n private setExceptionForOrderDial(order, status) {\r\n status = status.toUpperCase();\r\n this.yDL = 25;\r\n this.xDL = this.centerPoint - 11;\r\n this.iconWidth = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.iconHeight = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.exceptionIcon = './assets/icons/icon-exception.png';\r\n\r\n if (status === TrackOrderProgressComponent.STATUS_SHIPPED || status === TrackOrderProgressComponent.STATUS_RPS) {\r\n //displaying red bar for exception at statusNumber 2\r\n if (this.order.salesOrderCategoryId == 8) {\r\n this.statusNumber = 2;\r\n this.gradientColor3 = this.red;\r\n this.gradientColor4 = this.white;\r\n this.gradientOffset3 = '100%';\r\n this.gradientOffset4 = '0%';\r\n } else {\r\n this.statusNumber = 2;\r\n this.gradientColor3 = this.red;\r\n this.gradientColor4 = this.white;\r\n this.gradientOffset3 = '50%';\r\n this.gradientOffset4 = '0%';\r\n }\r\n } else if (status === TrackOrderProgressComponent.STATUS_TRANSIT || status === TrackOrderProgressComponent.STATUS_LABEL_ON_BOARD) {\r\n this.statusNumber = 3;\r\n this.gradientColor1 = this.darkGreen;\r\n this.gradientColor2 = this.red;\r\n this.gradientOffset1 = '50%';\r\n this.gradientOffset2 = '50%';\r\n } else if (status === TrackOrderProgressComponent.STATUS_DELIVERED) {\r\n //displaying red bar for exception at statusNumber 4\r\n if (this.order.salesOrderCategoryId == 8) {\r\n this.statusNumber = 3;\r\n this.gradientColor3 = this.red;\r\n this.gradientColor4 = this.red;\r\n this.gradientOffset3 = '0%';\r\n this.gradientOffset4 = '100%';\r\n } else {\r\n this.statusNumber = 4;\r\n this.gradientColor3 = this.red;\r\n this.gradientColor4 = this.red;\r\n this.gradientOffset3 = '0%';\r\n this.gradientOffset4 = '100%';\r\n }\r\n } else {\r\n if (this.order.salesOrderCategoryId == 8) {\r\n this.statusNumber = 1;\r\n this.gradientColor2 = this.red;\r\n this.gradientColor1 = this.red;\r\n } else {\r\n this.statusNumber = 1;\r\n this.gradientColor2 = this.red;\r\n this.gradientColor1 = this.red;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Method responsible for setting the statusNumber which helps drawing the progress bar\r\n * Based on the status parameter, statusNumber is set\r\n * @param status\r\n */\r\n private setStatusNumber(status: string, order) {\r\n this.itemStatusOrTimeWindowPrimary = null;\r\n this.itemStatusOrTimeWindowSecondary = null;\r\n if (status === TrackOrderProgressComponent.STATUS_PENDING && !order.orderScheduledDate) {\r\n this.statusNumber = 1;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n this.itemPlacementStatus = this.appSettings.getMessage('STATUS_LABEL_ACTION_REQUIRED');\r\n this.itemStatusOrTimeWindow = this.appSettings.getMessage('STATUS_LABEL_CONTACT_XPO').replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n this.dateWindow = this.appSettings.getMessage('STATUS_LABEL_NOT_SCHEDULED');\r\n this.itemStatusOrTimeWindowColor = this.darkRed;\r\n this.dateWindowColor = this.darkRed;\r\n this.itemStatusOrTimeWindowSize = 29;\r\n this.callXPOInfo = this.appSettings.getMessage('STATUS_LABEL_CALL_INFO');\r\n this.callHelpdesk = order.xpoPhoneNumber;\r\n this.orderStatusIcon = this.smsOptStatus;\r\n } else if (status === TrackOrderProgressComponent.STATUS_PLACED) {\r\n this.statusNumber = 1;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n this.itemPlacementStatus = this.scheduledStatus;\r\n this.orderStatusIcon = this.smsOptStatus;\r\n } else if (status === TrackOrderProgressComponent.STATUS_SHIPPED) {\r\n this.statusNumber = 2;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n this.itemPlacementStatus = this.scheduledStatus;\r\n this.orderStatusIcon = this.smsOptStatus;\r\n } else if (status === TrackOrderProgressComponent.STATUS_TRANSIT || status === TrackOrderProgressComponent.STATUS_LABEL_ON_BOARD) {\r\n this.statusNumber = 3;\r\n // for bell icon\r\n this.iconWidth = TrackOrderProgressComponent.BELL_ICON_WIDTH;\r\n this.iconHeight = TrackOrderProgressComponent.BELL_ICON_HEIGHT;\r\n this.itemPlacementStatus = this.scheduledStatus;\r\n this.gradientOffset1 = '50%';\r\n this.gradientOffset2 = '50%';\r\n this.orderStatusIcon = this.smsOptStatus;\r\n } else if (status === TrackOrderProgressComponent.STATUS_DELIVERED) {\r\n this.statusNumber = 4;\r\n // for delivery icon\r\n if (this.enableMultiCISegements) {\r\n this.yDL = 45;\r\n this.xDL = this.centerPoint - 8;\r\n } else {\r\n this.yDL = 65;\r\n this.xDL = this.centerPoint - 8;\r\n }\r\n this.iconWidth = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.iconHeight = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n\r\n this.itemStatusOrTimeWindow = this.appSettings.getMessage('STATUS_LABEL_DELIVERED');\r\n this.itemStatusOrTimeWindowColor = this.black;\r\n this.itemStatusOrTimeWindowSize = 29;\r\n this.orderStatusIcon = this.isRXO ? './assets/icons/icon-progress-on-rxo.svg' : './assets/icons/icon-progress-on.svg';\r\n if (this.order.autoSurveyOptInStatus) {\r\n this.takeSurvey = this.appSettings.getMessage('STATUS_LABEL_TAKE_SURVEY');\r\n }\r\n } else if (status === TrackOrderProgressComponent.STATUS_CANCELLED) {\r\n this.statusNumber = 1;\r\n this.itemPlacementStatus = this.appSettings.getMessage('STATUS_LABEL_ORDER');\r\n this.itemStatusOrTimeWindow = this.appSettings.getMessage('STATUS_LABEL_CANCELLED');\r\n this.itemStatusOrTimeWindowColor = this.darkRed;\r\n this.itemStatusOrTimeWindowSize = 29;\r\n this.gradientColor1 = this.red;\r\n this.gradientColor2 = this.red;\r\n this.solidColor = this.red;\r\n this.ringBorderColor = this.lightGrey;\r\n this.dateWindow = '';\r\n this.itemProgressStatus = '';\r\n this.orderStatusIcon = this.smsOptStatus;\r\n } else if (status === TrackOrderProgressComponent.STATUS_EXCEPTION) {\r\n this.statusNumber = 1;\r\n this.expiredStatus1 = this.appSettings.getMessage('STATUS_LABEL_EXCEPTION_MESSAGE1');\r\n this.expiredStatus2 = this.appSettings.getMessage('STATUS_LABEL_EXCEPTION_MESSAGE2');\r\n this.gradientColor1 = this.red;\r\n this.gradientColor2 = this.red;\r\n this.solidColor = this.red;\r\n this.ringBorderColor = this.lightGrey;\r\n this.itemStatusOrTimeWindow = '';\r\n this.dateWindow = '';\r\n this.itemProgressStatus = '';\r\n } else if (status === TrackOrderProgressComponent.STATUS_IS) {\r\n this.statusNumber = 3;\r\n this.invalidStatus1 = this.appSettings.getMessage('STATUS_LABEL_IS_MESSAGE1');\r\n this.invalidStatus2 = this.appSettings.getMessage('STATUS_LABEL_IS_MESSAGE2').replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n this.gradientColor1 = this.red;\r\n this.gradientColor2 = this.red;\r\n this.solidColor = this.red;\r\n this.ringBorderColor = this.lightGrey;\r\n this.itemStatusOrTimeWindow = '';\r\n this.dateWindow = '';\r\n this.itemProgressStatus = '';\r\n } else if (status === TrackOrderProgressComponent.STATUS_PS) {\r\n this.statusNumber = 1;\r\n this.pendingStatus1 = this.appSettings.getMessage('STATUS_LABEL_PS_MESSAGE1');\r\n this.pendingStatus2 = this.appSettings.getMessage('STATUS_LABEL_PS_MESSAGE2');\r\n this.itemStatusOrTimeWindow = '';\r\n this.dateWindow = '';\r\n this.itemProgressStatus = '';\r\n } else if (status === TrackOrderProgressComponent.STATUS_RPS) {\r\n this.statusNumber = 2;\r\n if (this.order.eligibleForReschedule) {\r\n this.invalidStatus2 = this.appSettings.getMessage('STATUS_LABEL_RPS_SCHEDULE');\r\n this.schedule = this.appSettings.getMessage('RESCHEDULE');\r\n this.allowSchedule = true;\r\n // reschedule icon\r\n this.orderStatusIcon = './assets/icons/icon-reschedule.svg';\r\n this.iconWidth = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n this.iconHeight = TrackOrderProgressComponent.TICK_ICON_SIZE;\r\n if (this.enableMultiCISegements) {\r\n this.yDL = 5;\r\n this.xDL = this.centerPoint - 8;\r\n } else {\r\n this.yDL = -15;\r\n this.xDL = this.centerPoint - 8;\r\n }\r\n } else {\r\n this.invalidStatus2 = this.appSettings.getMessage('STATUS_LABEL_RPS');\r\n }\r\n this.itemStatusOrTimeWindow = '';\r\n this.dateWindow = '';\r\n this.itemProgressStatus = '';\r\n } else {\r\n this.statusNumber = 0;\r\n this.orderStatusIcon = this.smsOptStatus;\r\n }\r\n this.segmentGradientUrl += ` ${this.solidColor}`;\r\n }\r\n\r\n get innerCircleRadius(): number {\r\n return this.radius - 9;\r\n }\r\n\r\n get outerCircleRadius(): number {\r\n return this.radius + 9;\r\n }\r\n\r\n get arc1(): string {\r\n const x1 = this.centerPoint - this.radius;\r\n let y1 = this.centerPoint;\r\n const x2 = this.centerPoint;\r\n const y2 = this.centerPoint + this.radius;\r\n if (this.i18nService.localeID === XPOConstants.I18N_FR) {\r\n y1 = y1 - 10;\r\n }\r\n return `M${x1},${y1} A${this.radius},${this.radius} 0,0,0 ${x2},${y2}`;\r\n }\r\n\r\n get arc2(): string {\r\n const x1 = this.centerPoint - this.radius;\r\n const y1 = this.centerPoint;\r\n let x2 = this.centerPoint;\r\n let y2 = this.centerPoint - this.radius;\r\n //Will Call Order\r\n if (this.order && this.order.salesOrderCategoryId == 8) {\r\n x2 = 210;\r\n y2 = 60;\r\n }\r\n return `M${x1},${y1} A${this.radius},${this.radius} 0,0,1 ${x2},${y2}`;\r\n }\r\n\r\n get arc3(): string {\r\n const x1 = this.centerPoint;\r\n const y1 = this.centerPoint - this.radius;\r\n const x2 = this.centerPoint + this.radius;\r\n const y2 = this.centerPoint;\r\n return `M${x1},${y1} A${this.radius},${this.radius} 0,0,1 ${x2},${y2}`;\r\n }\r\n\r\n get arc4(): string {\r\n const x1 = this.centerPoint;\r\n const y1 = this.centerPoint + this.radius;\r\n const x2 = this.centerPoint + this.radius;\r\n const y2 = this.centerPoint;\r\n return `M${x1},${y1} A${this.radius},${this.radius} 0,0,0 ${x2},${y2}`;\r\n }\r\n\r\n get progressArc(): string {\r\n const radian1 = TrackOrderProgressComponent.degreesToRadians(120);\r\n const radian2 = TrackOrderProgressComponent.degreesToRadians(60);\r\n const x1 = this.radius * Math.cos(radian1) + this.centerPoint;\r\n const y1 = this.radius * Math.sin(radian1) + this.centerPoint;\r\n const x2 = this.radius * Math.cos(radian2) + this.centerPoint;\r\n const y2 = this.radius * Math.sin(radian2) + this.centerPoint;\r\n return `M${x1},${y1} A${this.radius},${this.radius} 0 1,1 ${x2},${y2}`;\r\n }\r\n\r\n get progressArcBorder1(): string {\r\n const radian1 = TrackOrderProgressComponent.degreesToRadians(120);\r\n const radian2 = TrackOrderProgressComponent.degreesToRadians(60);\r\n const r = this.radius + this.progressArcStrokeWidth / 2;\r\n const x1 = r * Math.cos(radian1) + this.centerPoint;\r\n const y1 = r * Math.sin(radian1) + this.centerPoint;\r\n const x2 = r * Math.cos(radian2) + this.centerPoint;\r\n const y2 = r * Math.sin(radian2) + this.centerPoint;\r\n return `M${x1},${y1} A${r},${r} 0 1,1 ${x2},${y2}`;\r\n }\r\n\r\n get progressArcBorder2(): string {\r\n const radian1 = TrackOrderProgressComponent.degreesToRadians(120);\r\n const radian2 = TrackOrderProgressComponent.degreesToRadians(60);\r\n const r = this.radius - this.progressArcStrokeWidth / 2;\r\n const x1 = r * Math.cos(radian1) + this.centerPoint;\r\n const y1 = r * Math.sin(radian1) + this.centerPoint;\r\n const x2 = r * Math.cos(radian2) + this.centerPoint;\r\n const y2 = r * Math.sin(radian2) + this.centerPoint;\r\n return `M${x1},${y1} A${r},${r} 0 1,1 ${x2},${y2}`;\r\n }\r\n\r\n get progressArcLength(): number {\r\n let length = (2 * Math.PI * this.radius * 300) / 360;\r\n if (this.order) {\r\n //Will Call Order\r\n if (this.order.salesOrderCategoryId == 8) {\r\n if (this.statusNumber == 1) {\r\n if (this.isException) {\r\n length = 430;\r\n }\r\n }\r\n }\r\n }\r\n return length;\r\n }\r\n\r\n //setting length for path1 to display red bar for exception at statusNumber 2 and 4\r\n get progressArcLength1(): number {\r\n let length = (2 * Math.PI * this.radius * 300) / 360;\r\n if (this.order) {\r\n //Will Call Order\r\n if (this.order.salesOrderCategoryId == 8) {\r\n if (this.statusNumber == 2) {\r\n if (this.isException) {\r\n length = 215;\r\n }\r\n } else if (this.statusNumber == 3) {\r\n if (this.isException) {\r\n length = 525;\r\n }\r\n }\r\n } else {\r\n if (this.statusNumber == 2) {\r\n if (this.isException) {\r\n length = 250;\r\n }\r\n } else if (this.statusNumber == 4) {\r\n if (this.isException) {\r\n length = 433;\r\n }\r\n }\r\n }\r\n }\r\n return length;\r\n }\r\n\r\n get progressArcLengthFill(): number {\r\n let lengthFill = this.progressArcLength - (2 * Math.PI * this.radius * (this.statusNumber * 75)) / 360;\r\n if (this.order) {\r\n //Will Call Order\r\n if (this.order.salesOrderCategoryId == 8) {\r\n if (this.statusNumber == 1) {\r\n if (this.isException) {\r\n lengthFill = 245;\r\n } else {\r\n lengthFill = 390;\r\n }\r\n } else if (this.statusNumber == 2) {\r\n lengthFill = 175;\r\n } else if (this.statusNumber == 3) {\r\n lengthFill = 0;\r\n } else {\r\n lengthFill = 0;\r\n }\r\n }\r\n }\r\n return lengthFill;\r\n }\r\n\r\n //setting length for path1 to display red bar for exception at statusNumber 2 and 4\r\n get progressArcLengthFill1(): number {\r\n let lengthFill = this.progressArcLength - (2 * Math.PI * this.radius * (this.statusNumber * 75)) / 360;\r\n if (this.order) {\r\n //Will Call Order\r\n if (this.order.salesOrderCategoryId == 8) {\r\n if (this.statusNumber == 1) {\r\n lengthFill = 390;\r\n } else if (this.statusNumber == 2) {\r\n if (this.isException) {\r\n lengthFill = 245;\r\n } else {\r\n lengthFill = 175;\r\n }\r\n } else if (this.statusNumber == 3) {\r\n if (this.isException) {\r\n lengthFill = 645;\r\n } else {\r\n lengthFill = 0;\r\n }\r\n } else {\r\n lengthFill = 0;\r\n }\r\n } else {\r\n if (this.statusNumber == 4) {\r\n if (this.isException) {\r\n lengthFill = 434;\r\n }\r\n } else if (this.statusNumber == 2) {\r\n if (this.isException) {\r\n lengthFill = 354;\r\n }\r\n }\r\n }\r\n }\r\n return lengthFill;\r\n }\r\n\r\n get liney1(): number {\r\n return this.centerPoint - this.radius - this.progressArcStrokeWidth / 2;\r\n }\r\n\r\n get liney2(): number {\r\n return this.centerPoint - this.radius + this.progressArcStrokeWidth / 2;\r\n }\r\n\r\n ngOnDestroy() {\r\n this.orderSubscription.unsubscribe();\r\n }\r\n}\r\n","
\r\n \r\n
\r\n
\r\n \r\n {{ welcomeDeliveryText }}\r\n
\r\n {{ numberOfStopsAway }} \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n ITEMS\r\n \r\n \r\n
\r\n
\r\n \r\n {{ item.description }}\r\n \r\n ({{ item.quantity }})\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n SERVICES\r\n \r\n \r\n
\r\n
\r\n
{{ service.name }}
\r\n
\r\n
\r\n
{{ service.description }}
\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { LoaderService } from '../../loader/loader';\r\nimport { Order, DatexPipe, GoogleAnalyticsConstants } from '../../shared';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { AppSettings } from '../../core/app-settings';\r\n\r\n/**\r\n * Component responisble for displaying the Product details\r\n *\r\n */\r\n@Component({\r\n selector: 'app-product-details',\r\n templateUrl: './product-details.component.html',\r\n styleUrls: ['./product-details.component.scss']\r\n})\r\nexport class ProductDetailsComponent {\r\n @Input() order;\r\n @Input() numberOfStopsAway;\r\n @Input() welcomeDeliveryText;\r\n @Input() showExceptionImg;\r\n @Input() canDisplayStops;\r\n constructor(\r\n private spinner: LoaderService,\r\n private router: Router,\r\n public menuService: MenuService,\r\n private appSettings: AppSettings\r\n ) {\r\n\r\n }\r\n\r\n public openItemUrl(itemUrl: string) {\r\n if (itemUrl) {\r\n window.open(itemUrl, '_blank');\r\n }\r\n }\r\n\r\n public openOrderDetails() {\r\n var IsOrderDetail = this.router.url.includes(\"order-details\");\r\n if (!IsOrderDetail) {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.ORDER_DETAILS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.ORDER_DETAILS\r\n }\r\n });\r\n this.router.navigate(['order-details'], { queryParams: { orderid: this.order.orderId } });\r\n this.hideProductDetailsIfMobile();\r\n }\r\n }\r\n\r\n private hideProductDetailsIfMobile() {\r\n if (this.menuService.isMobileDevice()) {\r\n this.menuService.isHomeSelected = false;\r\n this.menuService.segmentRefreshNeeded = false;\r\n this.menuService.ismapRefreshNeeded = false;\r\n }\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
\r\n \r\n \r\n \r\n Contact Us\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n {{supportEmail}}\r\n
\r\n
\r\n
\r\n 0\">\r\n \r\n \r\n Tracking Events\r\n \r\n \r\n
\r\n
\r\n \r\n
{{item.date}}
\r\n
\r\n
{{getStatusName(item.name)}}
\r\n {{item.city}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {{ deliveryGuidelinesUrlText }}\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {{trackingLabel}}\r\n
\r\n
{{order.trackingNumber}}
\r\n
\r\n
\r\n Retailer Tracking # \r\n
\r\n
{{order.referenceId}}
\r\n
\r\n
{{subHeadingOrder}} {{(indexSegment + 1)}} {{ofText}} {{pageCount}}
\r\n
\r\n \r\n
\r\n\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n","import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core';\r\nimport { OrderService, Order, GoogleAnalyticsConstants, PhonePipe, XPOConstants } from '../../shared';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport { I18nService } from '../../shared/services/i18n.service';\r\nimport { Subscription } from 'rxjs';\r\nimport { Router } from '@angular/router';\r\nimport { TrackOrderProgressComponent } from '../track-order-progress/track-order-progress.component';\r\nimport { OrderCategory } from '../../shared/model/order-category.enum';\r\n\r\n/**\r\n * Component responisble for displaying the main components of Tracking landing page.\r\n *\r\n */\r\n@Component({\r\n selector: 'app-track-order',\r\n templateUrl: './track-order.component.html',\r\n styleUrls: ['./track-order.component.scss']\r\n})\r\nexport class TrackOrderComponent implements OnInit, OnDestroy {\r\n destinationCoordinates: Array;\r\n hideStopLocation = false;\r\n private orderSubscription: Subscription;\r\n private ordersOfSubscription: Subscription;\r\n public pageCount = 0;\r\n public indexSegment = 0;\r\n public order: Order;\r\n public orders: Order[];\r\n public clickedIndex = 0;\r\n public arrowDisableLeft = false;\r\n public arrowDisableRight = true;\r\n public localeFR = false;\r\n public subHeadingOrder;\r\n public ordersHolder: any = [];\r\n public ofText;\r\n public enableCISegments = false;\r\n public numberOfStopsAway: string;\r\n public welcomeDeliveryText: string;\r\n public showExceptionImg : boolean;\r\n public canDisplayStops = false;\r\n private stopsCount: number;\r\n public subCIpageIndex = 0;\r\n public displayTimewindowMessage = false;\r\n @ViewChild('trackOrderProgressComponent', { static: true }) trackOrderProgressComponent: TrackOrderProgressComponent;\r\n public XPOCustomerCarephoneNumber = '';\r\n public supportEmail: string;\r\n public supportEmailSubject: string;\r\n public trackingLabel: string;\r\n\r\n constructor(\r\n private orderService: OrderService,\r\n public dialog: MatDialog,\r\n public menuService: MenuService,\r\n public appSettings: AppSettings,\r\n private i18nService: I18nService,\r\n private router: Router,\r\n private phonePipe: PhonePipe\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.trackingLabel = this.appSettings.getMessage('TRACKING').replace('[DOMAIN_NAME]', this.appSettings.domainName);\r\n\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.TRACKING_LANDING, label: GoogleAnalyticsConstants.EVENT_CATEGORY.TRACKING_LANDING\r\n }\r\n });\r\n\r\n this.localeFR = this.i18nService.getLocale();\r\n this.orderSubscription = this.orderService.order.subscribe(order => {\r\n // TODO: Set properly\r\n\r\n if (order) {\r\n this.order = order;\r\n this.order.events.sort(function (a, b) {\r\n return (new Date(b.date) - new Date(a.date));\r\n });\r\n this.ofText = this.appSettings.getMessage('OF');\r\n if (this.menuService.isMultiOrder) {\r\n this.subHeadingOrder = this.appSettings.getMessage('ORDER');\r\n } else {\r\n this.subHeadingOrder = this.appSettings.getMessage('APPOINTMENT');\r\n }\r\n this.menuService.isSMSFooterNeeded(this.order.currentStatus);\r\n this.destinationCoordinates = this.order.consignee ? [{ lat: this.order.consignee.latitude, lng: this.order.consignee.longitude }] : null;\r\n\r\n this.welcomeDeliveryText = this.getWelcomeSubText(\r\n this.order.currentStatus,\r\n this.order.billTo,\r\n this.order.salesOrderCategoryId,\r\n this.order.etaStatus,\r\n this.order.eligibleForReschedule && this.order.orderScheduledDate == null\r\n );\r\n if (this.order.numberOfStops && (this.order.currentStatus === 'IT' || this.order.currentStatus === 'ONBOARD')) {\r\n this.stopsCount = Number(this.order.numberOfStops);\r\n if (this.stopsCount >= 0) {\r\n this.canDisplayStops = true;\r\n this.numberOfStopsAway = this.getStopsAway(this.stopsCount);\r\n } else {\r\n this.canDisplayStops = false;\r\n }\r\n } else {\r\n this.canDisplayStops = false;\r\n }\r\n this.XPOCustomerCarephoneNumber = this.phonePipe.transform(this.order.xpoPhoneNumber, 0);\r\n }\r\n this.supportEmail = this.appSettings.domainName === 'XPO' ? XPOConstants.SUPPORT_EMAIL_XPO : XPOConstants.SUPPORT_EMAIL_RXO;\r\n this.supportEmailSubject =\r\n this.appSettings.getMessage('SUPPORT_EMAIL_SUBJECT').replace('[DOMAIN_NAME]', this.appSettings.domainName) + this.order.salesOrderId;\r\n });\r\n\r\n this.ordersOfSubscription = this.orderService.orders.subscribe(orders => {\r\n if (orders) {\r\n if (this.menuService.segmentRefreshNeeded) {\r\n this.indexSegment = 0;\r\n\r\n //this.menuService.multiOrderCIpageIndex = 0;//XLMHL-60179 Commented for\r\n this.arrowDisableLeft = false;\r\n this.arrowDisableRight = false;\r\n }\r\n if (orders.length > 1) {\r\n this.pageCount = orders.length;\r\n this.ordersHolder = orders[0];\r\n this.orders = orders;\r\n } else {\r\n this.menuService.isMultiOrder = false;\r\n this.ordersHolder = orders[0];\r\n this.pageCount = this.ordersHolder.length;\r\n this.orders = this.ordersHolder;\r\n }\r\n }\r\n if (this.pageCount > 1) {\r\n // debugger;\r\n this.arrowDisableRight = false;\r\n this.enableCISegments = true;\r\n this.DisplayDefaultOrder();\r\n } else {\r\n this.enableCISegments = false;\r\n }\r\n if (this.indexSegment === this.pageCount - 1) {\r\n this.arrowDisableRight = true;\r\n }\r\n });\r\n }\r\n\r\n get isDeliveryGuidelinesEnabled() {\r\n return (\r\n !!this.order?.deliveryGuidelineUrl?.length &&\r\n ![TrackOrderProgressComponent.STATUS_DELIVERED, TrackOrderProgressComponent.STATUS_CANCELLED].includes(this.order?.currentStatus)\r\n );\r\n }\r\n\r\n get deliveryGuidelinesUrlText() {\r\n switch (this.order.salesOrderCategoryId) {\r\n case OrderCategory.Delivery:\r\n return this.appSettings.getMessage('DELIVERY_GUIDELINE_TEXT_DELIVERY');\r\n case OrderCategory.ServiceOnly:\r\n return this.appSettings.getMessage('DELIVERY_GUIDELINE_TEXT_SERVICE');\r\n case OrderCategory.Return:\r\n return this.appSettings.getMessage('DELIVERY_GUIDELINE_TEXT_RETURN');\r\n }\r\n }\r\n\r\n openDeliveryUrl() {\r\n window.open(this.order.deliveryGuidelineUrl, '_blank');\r\n }\r\n\r\n private DisplayDefaultOrder() {\r\n if (!this.menuService.isMultiOrder) {\r\n for (const value of this.orders) {\r\n {\r\n if (\r\n value.exceptions != null &&\r\n value.exceptions.find(ex => ex.exceptionTypeId === 1 && ex.exceptionCode.toUpperCase() === 'CANT-PERFORM-STOP')\r\n ) {\r\n const clicks = this.orders.findIndex(x => x.mergedFromWoId.includes(value.workOrderId));\r\n for (let i = 1; i <= clicks; i++) {\r\n this.onRightClick();\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n public onPageChange(page) {\r\n this.menuService.paramTrigger = false;\r\n if (this.menuService.isMultiOrder) {\r\n this.orderService.setOrder(this.orders[page][0]);\r\n if (this.menuService.multiOrderCIpageIndex != 0) {\r\n this.orderService.setOrder(this.orders[page][this.menuService.multiOrderCIpageIndex]);\r\n }\r\n } else {\r\n this.orderService.setOrder(this.orders[page]);\r\n }\r\n }\r\n\r\n public showOnly(markerType) {\r\n this.hideStopLocation = markerType !== this.appSettings.getMessage('ONTIME');\r\n }\r\n\r\n private getTemplateHtml() {\r\n switch (this.clickedIndex) {\r\n case 0:\r\n return '';\r\n\r\n case 1:\r\n return '';\r\n }\r\n }\r\n public getStatusName(shortCode) {\r\n if (shortCode === 'OP') {\r\n return this.appSettings.getMessage('ORDER_PLACED');\r\n } else if (shortCode === 'IT') {\r\n return this.appSettings.getMessage('IN_TRANSIT');\r\n } else if (shortCode === 'SH') {\r\n return this.appSettings.getMessage('SHIPPED');\r\n } else if (shortCode === 'DL') {\r\n return this.appSettings.getMessage('DELIVERED');\r\n } else if (shortCode === 'CN') {\r\n return this.appSettings.getMessage('CANCELLED');\r\n }\r\n return shortCode;\r\n }\r\n\r\n private rightArrowClick() {\r\n if (this.indexSegment >= 1) {\r\n this.arrowDisableLeft = true;\r\n }\r\n if (this.indexSegment === this.pageCount - 1) {\r\n this.arrowDisableRight = true;\r\n }\r\n }\r\n\r\n private leftArrowClick() {\r\n if (this.indexSegment === 1) {\r\n this.arrowDisableLeft = false;\r\n this.arrowDisableRight = false;\r\n } else {\r\n this.arrowDisableLeft = true;\r\n this.arrowDisableRight = false;\r\n }\r\n }\r\n public onRightClick() {\r\n if (this.indexSegment < this.pageCount - 1) {\r\n this.indexSegment++;\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.menuService.pageIndex = this.indexSegment;\r\n this.onPageChange(this.indexSegment);\r\n if (!this.menuService.isMultiOrder) {\r\n this.menuService.multiOrderCIpageIndex = 0;\r\n }\r\n this.menuService.onNavigateCloseDailog(this.order.orderId);\r\n this.rightArrowClick();\r\n }\r\n }\r\n\r\n public onLeftClick() {\r\n if (this.indexSegment > 0) {\r\n this.leftArrowClick();\r\n this.indexSegment--;\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.menuService.pageIndex = this.indexSegment;\r\n this.onPageChange(this.indexSegment);\r\n if (!this.menuService.isMultiOrder) {\r\n this.menuService.multiOrderCIpageIndex = 0;\r\n }\r\n this.menuService.onNavigateCloseDailog(this.order.orderId);\r\n }\r\n }\r\n\r\n public getStopsAway(stops) {\r\n if (stops > 1) {\r\n return stops + ' ' + this.appSettings.getMessage('STOPS_AWAY');\r\n } else if (stops === 1) {\r\n return stops + ' ' + this.appSettings.getMessage('STOP_AWAY');\r\n } else if (stops === 0) {\r\n return this.appSettings.getMessage('YOUR_ARE_THE_NEXT_STOP');\r\n } else {\r\n return '';\r\n }\r\n }\r\n\r\n public getWelcomeSubText(orderStatus, billTo, orderCategoryId, etaStatus,reScheduleEligible) {\r\n let deliveryText = '';\r\n const isAllItemRefused =\r\n this.order?.items?.length > 0 &&\r\n this.order.items.filter(\r\n it => it.exceptions != null && it.exceptions.find(ex => ex.exceptionTypeId === 2 && ex.exceptionCode.toUpperCase() === 'CANT-PU/DEL-ITEM')\r\n ).length === this.order.items.length;\r\n\r\n if (\r\n (this.order.exceptions != null || isAllItemRefused) &&\r\n (this.order.salesOrderCategoryId === 1 || this.order.salesOrderCategoryId === 2 || this.order.salesOrderCategoryId == 4)\r\n ) {\r\n const stopLevelExceptionIndex = this.order.exceptions\r\n ? this.order.exceptions.find(ex => ex.exceptionTypeId === 1 && ex.exceptionCode.toUpperCase() === 'CANT-PERFORM-STOP')\r\n : 0;\r\n\r\n if (stopLevelExceptionIndex && this.order.currentStatus == 'DL') {\r\n this.showExceptionImg = true;\r\n const stopException = this.order.exceptions.find(ex => ex.exceptionTypeId === 1 && ex.exceptionCode.toUpperCase() === 'CANT-PERFORM-STOP');\r\n return `${stopException?.exceptionDescription} - \r\n ${stopException?.exceptionReasonDescription} : ${stopException?.exceptionWorkFlowDescription}`;\r\n } else if (isAllItemRefused && this.order.currentStatus == 'DL') {\r\n this.showExceptionImg = false;\r\n return deliveryText;\r\n } else {\r\n this.showExceptionImg = false;\r\n }\r\n } else {\r\n this.showExceptionImg = false;\r\n }\r\n if (billTo && billTo.name && orderStatus !== 'IS' && orderStatus !== 'EXP' && orderStatus !== 'PS' && orderStatus !== 'RPS') {\r\n switch (orderCategoryId) {\r\n case 2:\r\n deliveryText = `${this.appSettings.getMessage('YOUR_PICKUP_FROM')} ${billTo.name}`;\r\n break;\r\n case 4:\r\n deliveryText = `${this.appSettings.getMessage('YOUR_SERVICE_FROM')} ${billTo.name}`;\r\n break;\r\n default:\r\n deliveryText = `${this.appSettings.getMessage('YOUR_DELIVERY_FROM')} ${billTo.name}`;\r\n break;\r\n }\r\n\r\n if (orderCategoryId == 8) {\r\n deliveryText = this.appSettings.getMessage('YOUR_ORDER_FROM') + '' + billTo.name;\r\n if (orderStatus == 'OP') {\r\n return deliveryText + ' ' + this.appSettings.getMessage('HAS_BEEN_PLACED');\r\n } else if (orderStatus == 'SH') {\r\n return deliveryText + ' ' + this.appSettings.getMessage('IS_READY_FOR_PICKUP');\r\n } else if (orderStatus == 'DL') {\r\n deliveryText = this.appSettings.getMessage('YOUR_PICKUP_FROM') + ' ' + billTo.name;\r\n return deliveryText + ' ' + this.appSettings.getMessage('YOUR_PICKUP_COMPLETED');\r\n }\r\n }\r\n\r\n if (etaStatus === 'RUL') {\r\n return this.appSettings.getMessage('YOUR_ORDER_FROM') + ' ' + billTo.name + ' ' + this.appSettings.getMessage('YOUR_ORDER_DELAY');\r\n }\r\n\r\n if (orderCategoryId === 2 && (orderStatus === 'IT' || orderStatus === 'DL')) {\r\n return deliveryText + ' ' + this.appSettings.getMessage('YOUR_PICKUP_COMPLETED');\r\n }\r\n if (orderCategoryId === 4 && orderStatus === 'DL') {\r\n return deliveryText + ' ' + this.appSettings.getMessage('YOUR_PICKUP_COMPLETED');\r\n }\r\n if (orderCategoryId === 2 && orderStatus === 'OP'&& !reScheduleEligible) {\r\n return deliveryText + ' ' + this.appSettings.getMessage('IS_SCHEDULED');\r\n } else if (orderCategoryId === 2 && orderStatus === 'OP' && reScheduleEligible) {\r\n return deliveryText + ' ' + this.appSettings.getMessage('IS_SCHEDULABLE');\r\n } else if (orderStatus === 'DL') {\r\n return deliveryText + this.appSettings.getMessage('IS_DELIVERED');\r\n } else if (orderStatus === 'CN') {\r\n return deliveryText + this.appSettings.getMessage('IS_CANCELLED');\r\n } else {\r\n return deliveryText + this.appSettings.getMessage('IS_ON_ITS_WAY');\r\n }\r\n }\r\n return '';\r\n }\r\n\r\n public multiOrderNavigateRight() {\r\n this.trackOrderProgressComponent.onRightClick(false);\r\n }\r\n\r\n public multiOrderNavigateLeft() {\r\n this.trackOrderProgressComponent.onLeftClick(false);\r\n }\r\n\r\n public openCallDialog() {\r\n window.location.href = 'tel:' + this.order.xpoPhoneNumber;\r\n }\r\n\r\n ngOnDestroy() {\r\n this.orderSubscription.unsubscribe();\r\n this.ordersOfSubscription.unsubscribe();\r\n }\r\n\r\n getHeight() {\r\n const currentHeight = this.menuService.productDetailsViewHeight?.height || '0px';\r\n const calculatedHeight = this.isDeliveryGuidelinesEnabled ? Number(currentHeight.replace('px', '')) - 60 + 'px' : currentHeight;\r\n return calculatedHeight;\r\n }\r\n}\r\n","
0\" id=\"track-events\" class=\"dialog-main\" style=\"overflow: hidden;\">\r\n \r\n \r\n Tracking Events \r\n \r\n \r\n
\r\n
\r\n {{order.expectedHubReceiptDate | date:'EEE, MMM d'}}\r\n
\r\n
\r\n \r\n
{{item.date}}
\r\n
{{item.date}}
\r\n
\r\n
\r\n {{item.name}}
\r\n {{item.city}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n","import { Component, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';\r\nimport { ActivatedRoute, Router, Params } from '@angular/router';\r\n\r\nimport { Order } from '../../../shared/model/order';\r\nimport { OrderService } from '../../../shared/services/order.service';\r\nimport { I18nService } from '../../../shared/services/i18n.service';\r\nimport { Subscription } from 'rxjs';\r\nimport { AppSettings } from '../../../core/app-settings';\r\n\r\n@Component({\r\n selector: 'app-tracking-events',\r\n templateUrl: './tracking-events.component.html',\r\n styleUrls: ['./tracking-events.component.scss']\r\n})\r\nexport class TrackingEventsComponent implements OnInit, OnDestroy {\r\n public order: Order;\r\n public localeFR = false;\r\n private orderSubscription: Subscription;\r\n public showTrackingEvent: boolean = false;\r\n public estimatedHubLabel: string;\r\n constructor(\r\n private orderService: OrderService, private i18nService: I18nService, private appSettings: AppSettings,\r\n private cdr: ChangeDetectorRef) {\r\n }\r\n\r\n ngOnInit() {\r\n this.orderSubscription = this.orderService.order.subscribe(order => {\r\n if (order) {\r\n this.order = order;\r\n this.order.events.sort(function (a, b) {\r\n return (new Date(b.date) - new Date(a.date));\r\n });\r\n }\r\n\r\n });\r\n this.appSettings.eventTrack({\r\n action: 'trackingEventsLoad', properties: { category: 'trackingEvents', label: 'trackingEvents' }\r\n });\r\n this.localeFR = this.i18nService.getLocale();\r\n this.estimatedHubLabel = this.appSettings.getMessage('ORDER_ETA');\r\n this.cdr.detectChanges();\r\n }\r\n\r\n public displayTrackingEvents() {\r\n this.showTrackingEvent = !this.showTrackingEvent;\r\n }\r\n\r\n public get checkETAHeaderStatus(): boolean {\r\n return this.order.expectedHubReceiptDate && (this.order.currentStatus !== 'RPS' &&\r\n this.order.currentStatus !== 'SH' && this.order.currentStatus !== 'IT' && this.order.currentStatus !== 'DL');\r\n }\r\n public closeDialog() {\r\n const elem: HTMLElement = document.getElementById('track-events');\r\n elem.setAttribute('style', 'display:none;');\r\n }\r\n\r\n ngOnDestroy() {\r\n this.orderSubscription.unsubscribe();\r\n }\r\n\r\n}\r\n","
\r\n \r\n \r\n Contact Us\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n {{supportEmail}}\r\n
\r\n
\r\n
\r\n
","import { Component, OnInit, OnDestroy, Input } from '@angular/core';\r\n\r\nimport { Order } from '../../../shared/model/order';\r\nimport { OrderService } from '../../../shared/services/order.service';\r\nimport { Subscription } from 'rxjs';\r\nimport { PhonePipe, XPOConstants } from '../../../shared';\r\nimport { AppSettings } from '../../../core/app-settings';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { I18nService } from 'app/shared/services/i18n.service';\r\n\r\n@Component({\r\n selector: 'app-contact-support',\r\n templateUrl: './contact-support.component.html',\r\n styleUrls: ['./contact-support.component.scss']\r\n})\r\n\r\nexport class ContactSupportComponent implements OnInit, OnDestroy {\r\n @Input() isLandingPage: boolean = false;\r\n public order: Order;\r\n private orderSubscription: Subscription;\r\n public showContact: boolean = true;\r\n public XPOCustomerCarephoneNumber: string;\r\n public supportEmail: string;\r\n public supportEmailSubject: string;\r\n constructor(\r\n private orderService: OrderService,\r\n private phonePipe: PhonePipe,\r\n private appSettings: AppSettings,\r\n private sanitization: DomSanitizer,\r\n private i18nService: I18nService\r\n ) {}\r\n\r\n ngOnInit() {\r\n this.orderSubscription = this.orderService.order.subscribe(order => {\r\n if (order) {\r\n this.order = order;\r\n this.XPOCustomerCarephoneNumber = this.isLandingPage ? XPOConstants.XPO_SUPPORT_CONTACT : this.phonePipe.transform(this.order.xpoPhoneNumber, 0);\r\n } else {\r\n this.XPOCustomerCarephoneNumber = XPOConstants.XPO_SUPPORT_CONTACT;\r\n }\r\n this.supportEmail = this.appSettings.domainName === 'XPO' ? XPOConstants.SUPPORT_EMAIL_XPO : XPOConstants.SUPPORT_EMAIL_RXO;\r\n this.supportEmailSubject = this.isLandingPage ? ((this.i18nService.localeID === XPOConstants.I18N_FR) ?\r\n XPOConstants.SUPPORT_EMAIL_SUBJECT_LANDING_PAGE_FRENCH : XPOConstants.SUPPORT_EMAIL_SUBJECT_LANDING_PAGE).replace('[DOMAIN_NAME]', this.appSettings.domainName) :\r\n this.appSettings.getMessage('SUPPORT_EMAIL_SUBJECT').replace('[DOMAIN_NAME]', this.appSettings.domainName) + this.order?.salesOrderId;\r\n });\r\n }\r\n\r\n public displayContacts() {\r\n this.showContact = !this.showContact;\r\n }\r\n\r\n public closeDialog() {\r\n const elem: HTMLElement = document.getElementById('contact-support');\r\n elem.setAttribute('style', 'display:none;');\r\n }\r\n\r\n public openCallDialog() { \r\n window.location.href = 'tel:' + (this.isLandingPage ? XPOConstants.XPO_SUPPORT_CONTACT : this.order.xpoPhoneNumber);\r\n }\r\n\r\n public checkVisibility() {\r\n let val = ''\r\n if (this.isLandingPage) {\r\n val = 'block';\r\n }\r\n else {\r\n val = 'none';\r\n }\r\n return this.sanitization.bypassSecurityTrustStyle(`--display-value : ${val}`);\r\n }\r\n\r\n ngOnDestroy() {\r\n this.orderSubscription.unsubscribe();\r\n }\r\n\r\n}\r\n","
\r\n\r\n
\r\n
\r\n \r\n \r\n
0) && (isToggleChecked)\"\r\n class=\"traffic-events\">\r\n \r\n \r\n Traffic Alert\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n {{trafficItem.lastModified | datex: 'hh:mm A'}}\r\n
\r\n {{trafficItem.description}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n","import { Component, OnInit, ViewChild, ElementRef, NgZone, OnDestroy, Input } from '@angular/core';\r\nimport { XpoGoogleMapLoader } from '../../google-map/services/google-map-api-loader';\r\nimport { XpoGoogleMapApi } from '../../google-map/services/google-map-api';\r\nimport { MapConstants } from '../../shared/constants/map-constants';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { OrderService } from '../../shared/services/order.service';\r\nimport { Order, Address, Location, Traffic, TrafficAlertItem, TruckLocation } from '../../shared';\r\nimport { TrafficService } from '../../shared';\r\nimport { timer } from 'rxjs';\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport { I18nService } from '../../shared/services/i18n.service';\r\nimport { GoogleRoutesAPIService } from '../../shared/services/google-map.service';\r\n\r\n/**\r\n * Component responsible from displaying the google map and plot the shipments\r\n */\r\n@Component({\r\n selector: 'app-track-order-map',\r\n templateUrl: './track-order-map.component.html',\r\n styleUrls: ['./track-order-map.component.scss']\r\n})\r\nexport class TrackOrderMapComponent extends XpoGoogleMapApi implements OnInit, OnDestroy {\r\n @ViewChild('googleMap', { static: true }) mapDiv: ElementRef;\r\n @Input() isMapView: boolean;\r\n private mapOptions: any = {\r\n ...MapConstants.MAP_OPTIONS,\r\n traffic: true, // Enabling traffic control in the map\r\n weather: false // Enabling weather control in the map\r\n };\r\n\r\n public order: Order;\r\n public validated: boolean;\r\n // Truck Icons SVG Path\r\n private truckPath1: string;\r\n private truckPath2: string;\r\n private truckPath3: string;\r\n private circlePath: string;\r\n private circleMarkers: any[] = [];\r\n private destinationPath: string;\r\n private clutteredMarkers: any[] = [];\r\n private mapTimer: any;\r\n private markerRescaleSize = 0;\r\n public showToggle = false;\r\n public isToggleChecked: boolean;\r\n public distanceInMiles;\r\n public isMapUpdateNeedtobeCalled = false;\r\n private omitStatus = ['CN', 'DL'];\r\n private mapRefreshedTriggered = false;\r\n public eligibleToShowTrafficWeatherAlerts = false;\r\n public showWidget = false;\r\n\r\n constructor(\r\n private mapLoader1: XpoGoogleMapLoader,\r\n public orderService: OrderService,\r\n public menuService: MenuService,\r\n private trafficServiceChild: TrafficService,\r\n private ngZoneChild: NgZone,\r\n public appSettings: AppSettings,\r\n public googleRoutesAPIService: GoogleRoutesAPIService,\r\n public i18nService?: I18nService\r\n ) {\r\n super(mapLoader1, trafficServiceChild, ngZoneChild, appSettings, menuService, googleRoutesAPIService);\r\n }\r\n\r\n ngOnInit() {\r\n this.orderService.order.subscribe(order => {\r\n if (order) {\r\n this.order = order;\r\n this.showWidget = true;\r\n } else {\r\n this.showWidget = false;\r\n }\r\n });\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.truckPath1 = MapConstants.TRUCK_PATH_1;\r\n this.truckPath2 = MapConstants.TRUCK_PATH_2;\r\n this.truckPath3 = MapConstants.TRUCK_PATH_3;\r\n this.circlePath = MapConstants.CIRCLE_PATH;\r\n this.showToggle = false;\r\n this.isToggleChecked = true;\r\n if (this.menuService.isMobileDevice()) {\r\n this.mapOptions.fullscreenControl = true;\r\n this.mapOptions.noClear = false;\r\n }\r\n if (this.menuService.isLandingPage) {\r\n this.mapOptions.fullscreenControl = false;\r\n this.mapOptions.zoomControl = false;\r\n this.mapOptions.noClear = false;\r\n } else {\r\n this.mapOptions.zoomControl = true;\r\n this.mapOptions.noClear = false;\r\n }\r\n const aeris_key = AppSettings.config.AERIS_CLIENT_ID + '_' + AppSettings.config.AERIS_CLIENT_SECRET;\r\n\r\n\r\n {\r\n this.orderService.order.subscribe(order => {\r\n this.createMap(this.mapDiv.nativeElement, this.mapOptions, AppSettings.config.GOOGLE_MAP_KEY, aeris_key, this.i18nService.localeID)\r\n .then(() => {\r\n if (order) {\r\n\r\n this.order = order;\r\n // this.order.latitude= 28.041739;\r\n // this.order.longitude= -82.429187;\r\n\r\n if (this.order.currentStatus === 'IS') {\r\n this.order.isPreCallTrigger = false;\r\n }\r\n\r\n if (this.order.isPreCallTrigger) {\r\n this.order.shipper.latitude = this.order.latitude;\r\n this.order.shipper.longitude = this.order.longitude;\r\n\r\n setTimeout(() => {\r\n window.location.reload();\r\n }, MapConstants.MAP_UPDATE_INTERVAL_ISPRECALL);\r\n }\r\n this.orderService.setOrderId(this.order.orderId);\r\n if (this.order && this.menuService.ismapRefreshNeeded) {\r\n this.menuService.ismapRefreshNeeded = false;\r\n const consigneeAddress = this.order.consignee;\r\n this.validated = this.order.validated;\r\n this.removeAllMarkers();\r\n if (this.order.validated) {\r\n if (consigneeAddress) {\r\n if (this.order.middleMileLatitude && this.order.middleMileLongitude && this.order.isLMx) {\r\n this.plotMiddleMileMarker();\r\n }\r\n this.plotHomeMarker(consigneeAddress);\r\n }\r\n if ((!this.order.middleMileLatitude && this.order.isLMx) || (this.order.isPreCallTrigger && !this.order.isLMx)) {\r\n this.plotShipments();\r\n }\r\n\r\n this.eligibleToShowTrafficWeatherAlerts = this.checkForMilesCoverage();\r\n \r\n if (this.order.isLMx || (this.order.isPreCallTrigger && !this.order.isLMx)) this.drawRoutes(AppSettings.config.GOOGLE_MAP_KEY);\r\n if (this.circleMarkers && this.circleMarkers.length === 1) {\r\n this.map.setZoom(MapConstants.DEFAULT_ZOOM_LEVEL);\r\n // Setting the Map bound based on the markers\r\n this.setMapBoundsBasedOnMarkers(this.circleMarkers);\r\n }\r\n if (this.circleMarkers && this.circleMarkers.length === 2) {\r\n this.map.setZoom(MapConstants.DEFAULT_ZOOM_LEVEL);\r\n // Setting the Map bound based on the markers\r\n this.setMapBoundsBasedOnMarkers(this.circleMarkers);\r\n }\r\n // Map Zoom action listener\r\n this.map.addListener('zoom_changed', () => {\r\n this.mapZoomListener();\r\n this.getTrafficBasedOnBounceChange();\r\n });\r\n\r\n } else {\r\n this.setBoundsForNonValidatedUser(this.order.mapCentroidLatitude, this.order.mapCentroidLongitude);\r\n }\r\n }\r\n this.mapRefreshedTriggered = true;\r\n } else {\r\n this.setBoundsForNonValidatedUser(42.279594, -83.732124);\r\n }\r\n }).catch(error => {\r\n\r\n // TODO Handle Error Scenario\r\n });\r\n\r\n\r\n });\r\n\r\n\r\n if (!this.menuService.isLandingPage) {\r\n this.updateMap(MapConstants.MAP_UPDATE_INTERVAL);\r\n }\r\n }\r\n }\r\n private setMapBoundsBasedOnMarkersv1(markerOptions: any[]) {\r\n\r\n const bounds = new google.maps.LatLngBounds();\r\n\r\n for (const clutteredMarker of markerOptions) {\r\n // Iterating the cluttered markers\r\n for (const markerName of Object.keys(clutteredMarker)) {\r\n const marker = clutteredMarker[markerName];\r\n if (marker?.getPosition()?.lat())\r\n bounds.extend(marker.position);\r\n }\r\n this.map.fitBounds(bounds);\r\n }\r\n }\r\n private checkForMilesCoverage() {\r\n return this.distanceInMiles && (this.distanceInMiles <= MapConstants.TRAFFIC_COVERAGE) && (this.order.currentStatus === 'IT');\r\n }\r\n\r\n private getTrafficBasedOnBounceChange() {\r\n this.map.addListener('bounds_changed', () => {\r\n if (this.eligibleToShowTrafficWeatherAlerts && this.isToggleChecked) {\r\n setTimeout(() => {\r\n this.callWeatherTrafficAlert();\r\n }, 800);\r\n }\r\n });\r\n }\r\n\r\n private setBoundsForNonValidatedUser(latitude, longitude) {\r\n const markers = [];\r\n if (!(latitude && longitude)) {\r\n return;\r\n }\r\n const baseIcon = {\r\n scale: MapConstants.HOME_DEFAULT_ZOOM,\r\n strokeWeight: 0,\r\n fillOpacity: 0,\r\n anchor: this.createPoint(26, 58)\r\n };\r\n const transparentCircleIcon = {\r\n ...baseIcon,\r\n path: MapConstants.HOME_PATH_1,\r\n strokeColor: MapConstants.TRANSPARENT_COLOR,\r\n fillColor: MapConstants.TRANSPARENT_COLOR,\r\n };\r\n const baseMarker = {\r\n position: {\r\n lat: parseFloat(latitude),\r\n lng: parseFloat(longitude)\r\n },\r\n clickable: false\r\n };\r\n const nonValidatedUserMarker = this.createMarker({\r\n ...baseMarker,\r\n icon: transparentCircleIcon\r\n }, true);\r\n\r\n markers.push(nonValidatedUserMarker);\r\n this.setMapBoundsBasedOnMarkers(markers);\r\n if (this.menuService.isLandingPage) {\r\n this.map.setZoom(23);\r\n } else {\r\n this.map.setZoom(MapConstants.NON_VALIDATED_USER_ZOOM_LEVEL);\r\n }\r\n\r\n }\r\n\r\n ngOnDestroy() {\r\n if (this.mapTimer) {\r\n this.mapTimer.unsubscribe();\r\n }\r\n }\r\n\r\n private updateMap(intervalInMS: number) {\r\n if (!this.menuService.isUserValidating) {\r\n this.removeAllMarkers();\r\n const timer2 = timer(0, intervalInMS);\r\n this.mapTimer = timer2.subscribe(t => {\r\n if (this.orderService.orderId && this.isMapUpdateNeedtobeCalled && navigator.onLine && this.mapRefreshedTriggered) {\r\n this.menuService.segmentRefreshNeeded = false;\r\n this.menuService.ismapRefreshNeeded = true;\r\n this.menuService.isTimerTriggered = true;\r\n this.menuService.needToUpdateCache = false;\r\n this.orderService.orderRefresh = true;\r\n this.orderService.searchOrder(this.orderService.orderId).subscribe(() => {\r\n });\r\n }\r\n this.isMapUpdateNeedtobeCalled = true;\r\n });\r\n }\r\n }\r\n\r\n private callWeatherTrafficAlert() {\r\n if (this.truckLocations.length > 0) {\r\n if (!this.trafficAlertAPICalled) {\r\n this.trafficAlertAPICalled = true;\r\n this.showTrafficAlert(true);\r\n }\r\n }\r\n }\r\n\r\n // Method which handles the map zoom level changes\r\n private mapZoomListener() {\r\n const zoomLevel: number = this.map.getZoom();\r\n let truckScale = 0;\r\n let homeScale = 0;\r\n if (zoomLevel <= 3) {\r\n truckScale = 0.5;\r\n homeScale = 0.3;\r\n } else if (zoomLevel <= 5) {\r\n truckScale = 1;\r\n homeScale = 0.6;\r\n } else {\r\n truckScale = 1.5;\r\n homeScale = 0.9;\r\n }\r\n if (this.markerRescaleSize !== homeScale) {\r\n this.markerRescaleSize = homeScale;\r\n this.rescaleMarker(truckScale, homeScale);\r\n }\r\n }\r\n\r\n // Method responsible for rescaling the markers\r\n private rescaleMarker(truckScale: number, homeScale: number) {\r\n\r\n for (const clutteredMarker of this.clutteredMarkers) {\r\n // Iterating the cluttered markers\r\n for (const markerName of Object.keys(clutteredMarker)) {\r\n const marker = clutteredMarker[markerName];\r\n let scale = truckScale;\r\n if (markerName.startsWith('home')) {\r\n scale = homeScale;\r\n }\r\n const icon = marker.getIcon();\r\n // Rescaling the marker icon\r\n if (typeof (icon) !== 'string') {\r\n icon.scale = scale;\r\n }\r\n marker.setIcon(icon);\r\n }\r\n }\r\n }\r\n // Method responsible for clearing all the markers\r\n private removeAllMarkers() {\r\n for (const clutteredMarker of this.clutteredMarkers) {\r\n // Iterating the cluttered markers\r\n for (const markerName of Object.keys(clutteredMarker)) {\r\n const marker = clutteredMarker[markerName];\r\n marker.setMap(null);\r\n }\r\n }\r\n this.distanceInMiles = 200;\r\n this.circleMarkers = [];\r\n this.clutteredMarkers = [];\r\n this.trafficAlertItems = [];\r\n }\r\n // Method responsible for plotting the shipments in the map\r\n private plotShipments() {\r\n this.addMarker(this.order);\r\n if (this.order.latitude != null && this.order.longitude != null) {\r\n this.truckLocations = [];\r\n this.truckLocations.push(new TruckLocation(this.order.latitude, this.order.longitude));\r\n if (this.order.consignee.latitude && this.order.consignee.longitude) {\r\n this.distanceInMiles = this.distance(this.order.latitude, this.order.longitude,\r\n this.order.consignee.latitude, this.order.consignee.longitude, MapConstants.COVERAGE_IN_UNIT);\r\n }\r\n }\r\n }\r\n\r\n private plotMiddleMileMarker() {\r\n const latitude = this.order.middleMileLatitude;\r\n const longitude = this.order.middleMileLongitude;\r\n if (!(latitude && longitude)) {\r\n return;\r\n }\r\n const baseIcon = {\r\n scale: MapConstants.HOME_DEFAULT_ZOOM,\r\n strokeWeight: 1,\r\n fillOpacity: 1,\r\n anchor: this.createPoint(26, 58) // Aligning the home marker\r\n };\r\n const circleIcon1 = {\r\n ...baseIcon,\r\n path: MapConstants.CIRCLE_PATH,\r\n strokeColor: MapConstants.BLUE_COLOR,\r\n fillColor: MapConstants.BLUE_COLOR,\r\n };\r\n const baseMarker = {\r\n position: {\r\n lat: latitude,\r\n lng: longitude\r\n },\r\n clickable: false\r\n };\r\n const home0Marker = this.createMarker({\r\n ...baseMarker,\r\n icon: {\r\n url: 'http://maps.google.com/mapfiles/ms/icons/blue-dot.png'\r\n }\r\n\r\n }, true);\r\n const marker = {\r\n home0: home0Marker // is fixing home icon missing issue is ios\r\n\r\n };\r\n this.circleMarkers.push(home0Marker);\r\n this.clutteredMarkers.push(marker);\r\n\r\n }\r\n\r\n private plotHomeMarker(consigneeAddress: Address) {\r\n const latitude = consigneeAddress.latitude;\r\n const longitude = consigneeAddress.longitude;\r\n\r\n if (!(latitude && longitude)) {\r\n return;\r\n }\r\n const baseIcon = {\r\n scale: MapConstants.HOME_DEFAULT_ZOOM,\r\n strokeWeight: 1,\r\n fillOpacity: 1,\r\n anchor: this.createPoint(26, 58) // Aligning the home marker\r\n };\r\n\r\n const homeIcon1 = {\r\n ...baseIcon,\r\n path: MapConstants.HOME_PATH_1,\r\n strokeColor: MapConstants.BLUE_COLOR,\r\n fillColor: MapConstants.BLUE_COLOR,\r\n };\r\n const homeIcon2 = {\r\n ...baseIcon,\r\n path: MapConstants.HOME_PATH_2,\r\n strokeColor: MapConstants.WHITE_COLOR,\r\n fillColor: MapConstants.WHITE_COLOR,\r\n };\r\n const homeIcon3 = {\r\n ...baseIcon,\r\n path: MapConstants.HOME_PATH_3,\r\n strokeColor: MapConstants.WHITE_COLOR,\r\n fillColor: MapConstants.WHITE_COLOR,\r\n };\r\n const homeIcon4 = {\r\n ...baseIcon,\r\n path: MapConstants.HOME_PATH_4,\r\n strokeColor: MapConstants.BLUE_COLOR,\r\n fillColor: MapConstants.BLUE_COLOR,\r\n };\r\n\r\n const baseMarker = {\r\n position: {\r\n lat: latitude,\r\n lng: longitude\r\n },\r\n clickable: false\r\n };\r\n\r\n const home0Marker = this.createMarker({\r\n ...baseMarker,\r\n icon: homeIcon1\r\n }, true);\r\n\r\n const home1Marker = this.createMarker({\r\n ...baseMarker,\r\n icon: homeIcon1\r\n }, true);\r\n\r\n const home2Marker = this.createMarker({\r\n ...baseMarker,\r\n icon: homeIcon2\r\n }, true);\r\n\r\n const home3Marker = this.createMarker({\r\n ...baseMarker,\r\n icon: homeIcon3\r\n }, true);\r\n\r\n const home4Marker = this.createMarker({\r\n ...baseMarker,\r\n icon: homeIcon4\r\n }, true);\r\n\r\n const marker = {\r\n home0: home0Marker, // is fixing home icon missing issue is ios\r\n home1: home1Marker,\r\n home2: home2Marker,\r\n home3: home3Marker,\r\n home4: home4Marker\r\n };\r\n this.circleMarkers.push(home1Marker);\r\n this.clutteredMarkers.push(marker);\r\n }\r\n\r\n private drawRoutes(google_key) {\r\n var stops = [];\r\n var location;\r\n var latLang;\r\n if (this.order.middleMileLatitude) {\r\n location = { 'latLng': { 'latitude': this.order.middleMileLatitude, 'longitude': this.order.middleMileLongitude } };\r\n latLang = { 'lat': this.order.middleMileLatitude, 'lng': this.order.middleMileLongitude };\r\n stops.push({ 'latitude': this.order.shipper.latitude, 'longitude': this.order.shipper.longitude });\r\n } else {\r\n location = { 'latLng': { 'latitude': this.order.shipper.latitude, 'longitude': this.order.shipper.longitude } };\r\n latLang = { 'lat': this.order.shipper.latitude, 'lng': this.order.shipper.longitude };\r\n if (this.order.isPreCallTrigger) {\r\n stops.push({ 'latitude': this.order.shipper.latitude, 'longitude': this.order.shipper.longitude });\r\n }\r\n }\r\n const waypts = [];\r\n stops.forEach(element => {\r\n // waypts.push({\r\n // location: { lat: parseFloat(element.latitude), lng: parseFloat(element.longitude) },\r\n // stopover: true\r\n // });\r\n\r\n waypts.push({\r\n location: {\r\n \"latLng\": {\r\n \"latitude\": parseFloat(element.latitude),\r\n \"longitude\": parseFloat(element.longitude)\r\n }\r\n }\r\n });\r\n if (!this.order.isPreCallTrigger) {\r\n const googleMarkerOrigin = new google.maps.Marker();\r\n googleMarkerOrigin.setMap(this.map);\r\n googleMarkerOrigin.setPosition({ lat: parseFloat(element.latitude), lng: parseFloat(element.longitude) });\r\n googleMarkerOrigin.setIcon({\r\n url: 'http://maps.google.com/mapfiles/ms/icons/purple-dot.png'\r\n }\r\n );\r\n }\r\n });\r\n const geocoder = new google.maps.Geocoder();\r\n geocoder.geocode({ location: latLang },\r\n (\r\n results: google.maps.GeocoderResult[],\r\n status: google.maps.GeocoderStatus\r\n ) => {\r\n\r\n /* eslint-disable max-len */\r\n if (status === google.maps.GeocoderStatus.OK) {\r\n if (results[0]) {\r\n location = { 'latLng': { 'latitude': latLang.lat, 'longitude': latLang.lng } };\r\n let consigneeLocation = { lat: this.order.consignee.latitude, lng: this.order.consignee.longitude };\r\n let consigneeLocationNew = { location: { 'latLng': { 'latitude': this.order.consignee.latitude, 'longitude': this.order.consignee.longitude } } };\r\n let chkStatus = false;\r\n const chkstatusMap = ['OP', 'PS'];\r\n if (chkstatusMap.indexOf(this.order.currentStatus) > -1) {\r\n chkStatus = true;\r\n }\r\n console.log(waypts, { location: location }, latLang, waypts[waypts.length - 1]?.location, { location: consigneeLocationNew }, consigneeLocation);\r\n if (this.order.middleMileLatitude) {\r\n if (!chkStatus) {\r\n console.log(\"1\");\r\n this.drawRoutewithRoutesAPI({ location: { 'latLng': { 'latitude': latLang.lat, 'longitude': latLang.lng } } }, waypts[waypts.length - 1], waypts, this.clutteredMarkers, false, google_key);\r\n // this.drawRoute(latLang, waypts[waypts.length - 1].location, waypts,this.clutteredMarkers, false);\r\n } else {\r\n console.log(\"2\");\r\n this.drawRoutewithRoutesAPI({ location: { 'latLng': { 'latitude': latLang.lat, 'longitude': latLang.lng } } }, waypts[waypts.length - 1], waypts, this.clutteredMarkers, true, google_key);\r\n // this.drawRoute(latLang, waypts[waypts.length - 1].location, waypts, this.clutteredMarkers, true);\r\n }\r\n const isDLOrderStatus = this.order.currentStatus === 'DL';\r\n console.log(\"3\");\r\n // this.drawRoute(waypts[waypts.length - 1].location, consigneeLocation, waypts, this.clutteredMarkers, isDLOrderStatus ? false : true);\r\n this.drawRoutewithRoutesAPI({ location: waypts[waypts.length - 1].location }, consigneeLocationNew, waypts, this.clutteredMarkers, isDLOrderStatus ? false : true, google_key);\r\n } else {\r\n\r\n if (this.order.isPreCallTrigger) {\r\n console.log(\"4\");\r\n // this.drawRoute(waypts[waypts.length - 1].location, consigneeLocation, waypts, this.clutteredMarkers, false);\r\n this.drawRoutewithRoutesAPI({ location: waypts[waypts.length - 1].location }, consigneeLocationNew, waypts, this.clutteredMarkers, false, google_key);\r\n\r\n }\r\n else {\r\n console.log(\"5\");\r\n this.drawRoutewithRoutesAPI({ location: { 'latLng': { 'latitude': latLang.lat, 'longitude': latLang.lng } } }, consigneeLocationNew, waypts, this.clutteredMarkers, false, google_key);\r\n // this.drawRoute(latLang, consigneeLocation, waypts,this.clutteredMarkers, false);\r\n }\r\n\r\n }\r\n this.setMapBoundsBasedOnMarkersv1(this?.clutteredMarkers);\r\n\r\n } else {\r\n window.alert('No results found');\r\n }\r\n } else {\r\n window.alert('Geocoder failed due to: ' + status);\r\n }\r\n }\r\n );\r\n }\r\n\r\n // Method responsible for plotting the markers in the map\r\n private addMarker(order: Order) {\r\n const latitude = order.shipper.latitude;\r\n const longitude = order.shipper.longitude;\r\n\r\n if (!(latitude && longitude)) {\r\n return;\r\n }\r\n\r\n const currentLocation = {\r\n latitude,\r\n longitude\r\n };\r\n let displayimage = './assets/images/truck_icons_green icon 0.png';\r\n var heading = this.findTruckDirection(currentLocation, order.consignee);\r\n\r\n if (heading < 0) {\r\n heading = 360 - (-(heading));\r\n }\r\n if (heading < 15) {\r\n displayimage = './assets/images/truck_0.png'\r\n }\r\n else if (heading >= 15 && heading < 30) {\r\n displayimage = './assets/images/truck_15.png'\r\n }\r\n else if (heading >= 30 && heading < 45) {\r\n displayimage = './assets/images/truck_30.jpg'\r\n }\r\n else if (heading >= 45 && heading < 60) {\r\n displayimage = './assets/images/truck_45.png'\r\n }\r\n else if (heading >= 60 && heading < 75) {\r\n displayimage = './assets/images/truck_60.png'\r\n }\r\n else if (heading >= 75 && heading < 90) {\r\n displayimage = './assets/images/truck_75.png'\r\n }\r\n else if (heading >= 90 && heading < 105) {\r\n displayimage = './assets/images/truck_90.png'\r\n }\r\n else if (heading >= 105 && heading < 120) {\r\n displayimage = './assets/images/truck_105.png'\r\n }\r\n else if (heading >= 120 && heading < 135) {\r\n displayimage = './assets/images/truck_120.jpg'\r\n }\r\n else if (heading >= 135 && heading < 150) {\r\n displayimage = './assets/images/truck_135.png'\r\n }\r\n else if (heading >= 150 && heading < 165) {\r\n displayimage = './assets/images/truck_150.png'\r\n }\r\n\r\n else if (heading >= 165 && heading < 180) {\r\n displayimage = './assets/images/truck_165.png'\r\n }\r\n else if (heading >= 180 && heading < 195) {\r\n displayimage = './assets/images/truck_180.png'\r\n }\r\n\r\n else if (heading >= 195 && heading < 210) {\r\n displayimage = './assets/images/truck_195.png'\r\n }\r\n\r\n else if (heading >= 210 && heading < 225) {\r\n displayimage = './assets/images/truck_210.jpg'\r\n }\r\n else if (heading >= 225 && heading < 240) {\r\n displayimage = './assets/images/truck_225.png'\r\n }\r\n else if (heading >= 240 && heading < 270) {\r\n displayimage = './assets/images/truck_240.png'\r\n }\r\n else if (heading >= 270 && heading < 285) {\r\n displayimage = './assets/images/truck_270.png'\r\n }\r\n else if (heading >= 285 && heading < 315) {\r\n displayimage = './assets/images/truck_285.png'\r\n }\r\n else {\r\n displayimage = './assets/images/truck_315.png'\r\n }\r\n\r\n\r\n\r\n\r\n const baseIcon = {\r\n scale: MapConstants.TRUCK_DEFAULT_ZOOM,\r\n strokeWeight: 1,\r\n fillOpacity: 1,\r\n anchor: this.createPoint(16, 16), // Centering the truck icon in the marker\r\n rotation: heading,\r\n };\r\n\r\n\r\n\r\n const truckIcon1 = {\r\n ...baseIcon,\r\n path: this.truckPath1,\r\n strokeColor: MapConstants.TRUCK_PATH_1_COLOR,\r\n fillColor: MapConstants.TRUCK_PATH_1_COLOR,\r\n anchor: this.createPoint(6, 10)\r\n };\r\n\r\n\r\n const baseMarker = {\r\n position: {\r\n lat: latitude,\r\n lng: longitude\r\n },\r\n clickable: false\r\n };\r\n\r\n // Creating multiple markers to draw the truck and circle in different colors\r\n // This is the only technique where we can rotate multiple markers\r\n const truck1Marker = this.createMarker({\r\n ...baseMarker,\r\n icon: (order.isPreCallTrigger || !order.isLMx) ? displayimage : 'http://maps.google.com/mapfiles/ms/icons/purple-dot.png'\r\n }, true);\r\n\r\n\r\n const marker = {\r\n truck1: truck1Marker\r\n };\r\n // Array of markers for resizing\r\n this.clutteredMarkers.push(marker);\r\n }\r\n\r\n // Method responsible for fetching the heading of the truck from the Google API\r\n private findTruckDirection(origin: Location, destination: Address) {\r\n const originMarker = this.createMarker({\r\n position: {\r\n lat: origin.latitude,\r\n lng: origin.longitude\r\n }\r\n }, false);\r\n\r\n const destinationMarker = this.createMarker({\r\n position: {\r\n lat: destination.latitude,\r\n lng: destination.longitude\r\n }\r\n }, false);\r\n\r\n return this.findHeading(originMarker.getPosition(), destinationMarker.getPosition());\r\n }\r\n\r\n public onChangeToggle(event) {\r\n if (event.checked) {\r\n event.value = 'true';\r\n this.isToggleChecked = true;\r\n } else {\r\n event.value = 'false';\r\n this.isToggleChecked = false;\r\n }\r\n }\r\n public notificationToggleOnOff() {\r\n this.showToggle = !this.showToggle;\r\n }\r\n}\r\n","\r\n arrow_upward\r\n\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ScrollToTopService } from '../scroll-to-top.service';\r\n@Component({\r\n selector: 'app-back-to-top',\r\n templateUrl: './back-to-top.component.html',\r\n styleUrls: [ './back-to-top.component.scss' ]\r\n})\r\n\r\nexport class BackToTopComponent {\r\n public active: boolean;\r\n constructor(private scrollToTopService: ScrollToTopService) {\r\n scrollToTopService.status.subscribe((status: boolean) => {\r\n this.active = status;\r\n });\r\n }\r\n // When the user clicks on the button, scroll to the top of the page\r\n public backToTop() {\r\n if (this.scrollToTopService.isSafariBrowser()) {\r\n this.scrollTo(document.body, 0, 500); // document.documentElement fails in safari\r\n } else {\r\n this.scrollTo(document.documentElement, 0, 500);\r\n }\r\n }\r\n\r\n public scrollTo(element: any, scrollToPosition: number, scrollDuration: number) {\r\n const startPosition = element.scrollTop;\r\n const changeInPosition = scrollToPosition - startPosition;\r\n let currentTime = 0;\r\n const increment = 20;\r\n const animateScroll = () => {\r\n currentTime += increment;\r\n const val = this.easeInOutQuad(currentTime, startPosition, changeInPosition, scrollDuration);\r\n element.scrollTop = val;\r\n if (currentTime < scrollDuration) {\r\n setTimeout(animateScroll, increment);\r\n }\r\n };\r\n void animateScroll();\r\n }\r\n public easeInOutQuad = (currentTime, startPosition, changeInPosition, scrollDuration) => {\r\n currentTime /= scrollDuration / 2;\r\n if (currentTime < 1) {\r\n return changeInPosition / 2 * currentTime * currentTime + startPosition;\r\n } else {\r\n currentTime--;\r\n return -changeInPosition / 2 * (currentTime * (currentTime - 2) - 1) + startPosition;\r\n }\r\n }\r\n}\r\n","
\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n

{{menus.name}}

\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n {{menus.name}}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
","import { Component, OnInit, AfterViewChecked, ChangeDetectorRef, ViewChild } from '@angular/core';\r\nimport { ActivatedRoute, Router, Params, NavigationEnd } from '@angular/router';\r\nimport { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material/dialog';\r\nimport { Order, OrderService, ErrorHandlerService, GoogleAnalyticsConstants, ImageService, Document } from '../../shared';\r\nimport { SearchComponent } from '../../track-another-order/search.component';\r\nimport { LoaderService } from '../../loader/loader';\r\nimport { MenuService } from '../../core/layout/menu.service';\r\nimport { PlatformLocation, Location } from '@angular/common';\r\nimport { ScrollToTopService, BackToTopComponent } from '../../scroll-to-top/scroll-to-top';\r\nimport { PageErrorComponent } from '../../shared/common-components/dialog/page-error/page-error.component';\r\nimport { AppSettings } from '../../core/app-settings';\r\nimport { I18nService } from '../../shared/services/i18n.service';\r\nimport { XPOConstants } from '../../shared/constants/xpo-constants';\r\nimport { SearchContainerComponent } from '../../track-another-order/search-container/search-container.component';\r\nimport { TrackOrderComponent } from '../../track-order/track-order/track-order.component';\r\nimport { ChatService } from '../../shared/services/chat.service';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\n\r\n/**\r\n* Component responisble for displaying the Tracking Order Landing page.\r\n*\r\n*/\r\n@Component({\r\n selector: 'app-layout',\r\n templateUrl: 'layout.component.html',\r\n styleUrls: ['layout.component.scss'],\r\n})\r\nexport class LayoutComponent implements OnInit, AfterViewChecked {\r\n public dataLayer = (window).dataLayer;\r\n public order: Order;\r\n public orders: Order[];\r\n public orderError;\r\n public selectedItem = 0;\r\n public MenuHolder: Array;\r\n public dialogRef;\r\n public expanded;\r\n public locationPath = '';\r\n public dialogPageError: MatDialogRef;\r\n public dialogSearch: MatDialogRef;\r\n public isMobile: boolean;\r\n private isCalendarEligible = false;\r\n public errorResponse: any;\r\n public selectedValue;\r\n public searchedOrder;\r\n private billTo: string;\r\n private locationURL;\r\n private documents: Document[];\r\n public ordersHolder: any = [];\r\n private margin: number;\r\n private top_space: number;\r\n @ViewChild('trackOrderComponent') trackOrderComponent: TrackOrderComponent;\r\n @ViewChild('trackOrderComponentMobile') trackOrderComponentMobile: TrackOrderComponent;\r\n public hideMap: boolean;\r\n public showMultiAppointmentBanner;\r\n public rxoStr: string;\r\n public selectedItemName: '';\r\n isMapView: boolean = false;\r\n\r\n constructor(private orderService: OrderService,\r\n private spinner: LoaderService,\r\n private changeDetectorRef: ChangeDetectorRef,\r\n public menuService: MenuService,\r\n public scrollToTopService: ScrollToTopService,\r\n private errorHandlerService: ErrorHandlerService,\r\n private route: ActivatedRoute,\r\n private router: Router,\r\n private dialog: MatDialog,\r\n private location: PlatformLocation,\r\n public appSettings: AppSettings,\r\n private i18nService: I18nService,\r\n locationPath: Location,\r\n private imageService: ImageService,\r\n public chatService: ChatService,\r\n private sanitization: DomSanitizer\r\n ) {\r\n this.expanded = false;\r\n this.isMobile = this.menuService.isMobileDevice();\r\n this.margin = window.innerHeight >= XPOConstants.MOBILE_SIZE_LARGE ? XPOConstants.MARGIN_LARGE : XPOConstants.MARGIN_SMALL;\r\n this.top_space = window.innerHeight - XPOConstants.SEARCH_COMPONENT_SIZE - XPOConstants.CONTACT_COMPONENT_SIZE - this.margin;\r\n location.onPopState(() => {\r\n this.menuService.hideMenu();\r\n });\r\n this.locationPath = locationPath.path();\r\n this.rxoStr = this.appSettings.isNewDomain ? '-rxo' : '';\r\n }\r\n\r\n ngOnInit() {\r\n this.route.queryParams.subscribe(params => {\r\n this.isMapView = params['map'] === 'true';\r\n });\r\n \r\n this.chatService.init();\r\n if (this.locationPath === '' || this.locationPath === '/fr'){\r\n this.i18nService.getLanguage();\r\n }\r\n this.orderService.order.subscribe(order => {\r\n this.spinner.hideLoader();\r\n if (this.order !== order) {\r\n this.order = order;\r\n }\r\n if (this.order) {\r\n this.menuService.isLandingPage = false;\r\n if(this.displayOrderImage(this.order)) {\r\n this.imageService.getDocuments(this.order.workOrderId).subscribe((docs) => {\r\n if(docs) {\r\n this.setUpMenu(docs);\r\n }\r\n })\r\n }\r\n else {\r\n this.setUpMenu();\r\n }\r\n this.showMultiAppointmentBanner = this.displayMultiAppointmentBanner(this.order);\r\n }\r\n });\r\n this.orderService.orders.subscribe(orders => {\r\n if (orders) {\r\n if (this.menuService.isMultiOrder) {\r\n this.ordersHolder = orders[ this.menuService.pageIndex ];\r\n } else {\r\n this.ordersHolder = orders[ 0 ];\r\n }\r\n this.orders = this.ordersHolder;\r\n }\r\n });\r\n this.errorHandlerService.httpErrorCode.subscribe(err => {\r\n this.errorResponse = err;\r\n if (this.errorResponse.name === 'TimeoutError') {\r\n this.errorResponse.status = 408;\r\n }\r\n if (this.billTo !== '' && this.errorResponse.status === 404) {\r\n this.errorResponse.status = 410;\r\n }\r\n if (this.errorResponse.status !== 422) {\r\n if (this.orderService.orderRefresh) {\r\n return;\r\n }\r\n this.spinner.hideLoader();\r\n this.dialog.open(PageErrorComponent, {\r\n data: {\r\n errorCode: this.errorResponse.status,\r\n errorText: this.errorResponse.statusText,\r\n errorMessage: this.errorResponse.message\r\n },\r\n disableClose: true,\r\n position: {top : this.isMobile ? (this.top_space/2) + 'px' : ''},\r\n maxWidth: '100%'\r\n });\r\n }\r\n });\r\n\r\n this.route.queryParams.subscribe(params => {\r\n this.billTo = '';\r\n this.hideMap = false;\r\n if(this.router.url.indexOf('e-sign') !== -1) {\r\n this.hideMap = true;\r\n }\r\n this.spinner.showLoader();\r\n if (!this.route.component) {\r\n this.spinner.hideLoader();\r\n return;\r\n }\r\n this.orderService.orderRefresh = false;\r\n if (params['orderid']) {\r\n if (this.menuService.paramTrigger) {\r\n this.menuService.segmentRefreshNeeded = true;\r\n this.menuService.needToUpdateCache = true;\r\n this.orderService.setOrderId(params['orderid']);\r\n\r\n this.orderService.searchOrder(params['orderid']).subscribe(() => {\r\n });\r\n } else {\r\n this.spinner.hideLoader(); \r\n }\r\n\r\n } else if (params['customerReference'] && params['billTo']) {\r\n this.billTo = params['billTo'];\r\n this.menuService.needToUpdateCache = true;\r\n this.orderService.searchByReferenceNumber(params['customerReference'], params['billTo']).subscribe((orderResponse) => {\r\n });\r\n } else if (params['customerReference'] && params['companyid']) {\r\n this.billTo = params['companyid'];\r\n this.menuService.needToUpdateCache = true;\r\n this.orderService.searchByReferenceNumber(params['customerReference'], params['companyid']).subscribe((orderResponse) => {\r\n });\r\n } else if (params['trackingnumber']) {\r\n this.menuService.needToUpdateCache = true;\r\n this.orderService.searchByReferenceNumber(params['trackingnumber'], '0').subscribe((orderResponse) => {\r\n this.menuService.isLandingPage = false;\r\n });\r\n } else if (Object.keys(params).find(key=> key.toLowerCase() === 'customerid' && params[key])) {\r\n let searchCriteria = {}\r\n Object.keys(params).forEach(key => {\r\n switch(key.toLowerCase()){\r\n case 'customerid': searchCriteria['customerIdentifier'] = params[key]; break;\r\n case 'phonenumber': searchCriteria['phoneNumber'] = params[key]; break;\r\n case 'customerordernumber': searchCriteria['customerOrderNumber'] = params[key]; break;\r\n case 'reference': searchCriteria['reference'] = params[key]; break;\r\n }\r\n })\r\n this.menuService.needToUpdateCache = true;\r\n this.orderService.searchByCustomerId(searchCriteria).subscribe((orderResponse) => {\r\n this.menuService.isLandingPage = false;\r\n });\r\n } else {\r\n this.spinner.hideLoader();\r\n this.menuService.isLandingPage = true;\r\n this.search();\r\n }\r\n\r\n if (this.router.url.split('?')[0] === '/') {\r\n this.menuService.isHomeSelected = true;\r\n } else {\r\n this.menuService.isHomeSelected = false;\r\n }\r\n });\r\n\r\n this.menuService.status.subscribe((status: number) => {\r\n if (!this.order) return;\r\n this.router.navigate([''], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.selectedItem = status;\r\n this.selectedItemName = this.appSettings.getMessage('HOME');\r\n });\r\n\r\n window.onresize = (e) => {\r\n this.isMobile = this.menuService.isMobileDevice();\r\n };\r\n if (this.locationPath === '' || this.locationPath === '/fr') {\r\n this.menuService.isLandingPage = true;\r\n this.search();\r\n } else {\r\n this.menuService.isLandingPage = false;\r\n }\r\n // When the user scrolls down 20px from the top of the page, show the button\r\n window.onscroll = () => {\r\n if (this.isMobile) {\r\n this.scrollToTopService.enableBackToTop();\r\n }\r\n };\r\n\r\n }\r\n\r\n \r\n public isHome(){\r\n const pathname = window.document.location.pathname;\r\n return pathname === '/' || pathname === '/fr/';\r\n }\r\n\r\n private setUpMenu(documents? : Document[]) {\r\n if (this.order) {\r\n this.MenuHolder = [\r\n { name: this.appSettings.getMessage('HOME'), icons: './assets/icons/icon-home' + this.rxoStr + '.svg' },\r\n { name: this.appSettings.getMessage('TRACK_ANOTHER_ORDER'), icons: './assets/icons/icon-search' + this.rxoStr + '.svg' },\r\n {\r\n name: this.appSettings.getMessage('ORDER_DETAILS'),\r\n icons: this.order.isException ? './assets/icons/icon-box-Exception.png' : './assets/icons/icon-box' + this.rxoStr + '.svg'\r\n },\r\n { name: this.appSettings.getMessage('PREPARATION_CHECKLIST'), icons: './assets/icons/icon-checklist' + this.rxoStr + '.svg' },\r\n ];\r\n if(this.order.isESignAvailable){\r\n this.MenuHolder.push({ name: this.appSettings.getMessage('ESign'), icons: './assets/icons/signature-icon.png' });\r\n }\r\n if(this.order.isPODAvailable && this.order.salesOrderCategoryId == 2){\r\n this.MenuHolder.push({ name: this.appSettings.getMessage('POD_PICKUP'), icons: './assets/icons/proof-delivery.png' });\r\n }\r\n else if(this.order.isPODAvailable){\r\n this.MenuHolder.push({ name: this.appSettings.getMessage('POD_DELIVERY'), icons: './assets/icons/proof-delivery.png' });\r\n }\r\n if (this.order.canAddToCalendar && !this.menuService.isIpadSafariBrowser()) {\r\n this.MenuHolder.push({ name: this.appSettings.getMessage('ADD_TO_CALENDAR'), icons: './assets/icons/icon-calendar' + this.rxoStr + '.svg' });\r\n }\r\n if (this.order.eligibleForReschedule) {\r\n this.MenuHolder.push({ name: this.appSettings.getMessage('RESCHEDULE'), icons: './assets/icons/icon-reschedule' + this.rxoStr + '.svg' });\r\n }\r\n this.MenuHolder.push({ name: this.appSettings.getMessage('CONTACT_US'), icons: './assets/icons/icon-smartphone' + this.rxoStr + '.svg' });\r\n\r\n if (this.menuService.isMobileDevice() && this.order.validated) {\r\n this.MenuHolder.push({\r\n name: this.appSettings.getMessage('NOTIFICATIONS'),\r\n icons: './assets/icons/icon-notification' + this.rxoStr + '.svg'\r\n });\r\n }\r\n this.MenuHolder.push({ name: this.appSettings.getMessage('PROFILE'), icons: './assets/icons/icon-profile' + this.rxoStr + '.svg' });\r\n\r\n if (documents && documents.length) {\r\n this.MenuHolder.splice(3, 0, {\r\n name: this.appSettings.getMessage('IMAGES'),\r\n icons: './assets/icons/icon-image' + this.rxoStr + '.svg'\r\n });\r\n }\r\n if ( this.order.salesOrderCategoryId === 8 && this.order.status === 'SH') {\r\n this.MenuHolder.splice(3, 0, {\r\n name: this.appSettings.getMessage('HOURS_OF_OPERATION'),\r\n icons: './assets/icons/icon-reschedule' + this.rxoStr + '.svg'\r\n });\r\n }\r\n }\r\n }\r\n\r\n public onMenuNavigation(indexNumber, menuName) {\r\n this.expanded = false;\r\n this.selectedItem = indexNumber;\r\n this.selectedItemName = menuName;\r\n this.locationURL = this.router.url.split('?')[0].replace(/\\//g, '');\r\n\r\n\r\n switch (menuName) {\r\n case this.appSettings.getMessage('HOME'): {\r\n this.hideMap = false;\r\n this.openHome();\r\n break;\r\n }\r\n case this.appSettings.getMessage('TRACK_ANOTHER_ORDER'): {\r\n if (this.locationURL !== 'search') {\r\n this.hideMap = false;\r\n this.openSearchDialog();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('ORDER_DETAILS'): {\r\n if (this.locationURL !== 'order-details') {\r\n this.hideMap = false;\r\n this.openOrderDetailsDialog();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('CONTACT_US'): {\r\n if (this.locationURL !== 'contact-us') {\r\n this.hideMap = false;\r\n this.openContactUsPhone();\r\n }\r\n break;\r\n }\r\n\r\n case this.appSettings.getMessage('PROFILE'): {\r\n if ((!this.order.validated && this.locationURL !== 'verification') || (this.order.validated && this.locationURL !== 'profile')) {\r\n this.hideMap = false;\r\n this.openProfileDialog();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('PREPARATION_CHECKLIST'): {\r\n if (this.locationURL !== 'check-list') {\r\n this.hideMap = false;\r\n this.openPreparationCheckList();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('RESCHEDULE'): {\r\n if ((!this.order.validated && this.locationURL !== 'verification') || (this.order.validated && this.locationURL !== 'reschedule')) {\r\n this.hideMap = false;\r\n this.openRescheduler();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('ADD_TO_CALENDAR'): {\r\n if ((!this.order.validated && this.locationURL !== 'verification') || (this.order.validated && this.locationURL !== 'add-to-calendar')) {\r\n this.hideMap = false;\r\n this.openCalendar();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('NOTIFICATIONS'): {\r\n if (this.locationURL !== 'notification') {\r\n this.hideMap = false;\r\n this.openNotification();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('ESign'): {\r\n this.hideMap = true;\r\n this.openESign();\r\n break;\r\n }\r\n case this.appSettings.getMessage('POD_PICKUP'): {\r\n this.hideMap = false;\r\n this.openPOD();\r\n break;\r\n }\r\n case this.appSettings.getMessage('POD_DELIVERY'): {\r\n this.hideMap = false;\r\n this.openPOD();\r\n break;\r\n }\r\n case this.appSettings.getMessage('IMAGES'): {\r\n if ((!this.order.validated && this.locationURL !== 'verification') || (this.order.validated && this.locationURL !== 'images')) {\r\n this.hideMap = false;\r\n this.openImages();\r\n }\r\n break;\r\n }\r\n case this.appSettings.getMessage('HOURS_OF_OPERATION'): {\r\n if (this.locationURL !== 'hours') {\r\n this.hideMap = false;\r\n this.openHoursOfOperationDialog();\r\n }\r\n break;\r\n }\r\n default: {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n\r\n public toggleDraw() {\r\n this.expanded = !this.expanded;\r\n }\r\n\r\n private openHome() {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.HOME,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.HOME\r\n }\r\n });\r\n this.router.navigate([''], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(true);\r\n }\r\n\r\n private openESign() {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.ESIGN,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.ESIGN\r\n }\r\n });\r\n this.router.navigate(['e-sign'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(true);\r\n }\r\n\r\n private openPOD() {\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.POD,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.POD\r\n }\r\n });\r\n this.router.navigate(['confirmation'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(true);\r\n }\r\n\r\n private openSearchDialog() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.SEARCH_ORDER\r\n }\r\n });\r\n this.router.navigate(['search'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openOrderDetailsDialog() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.ORDER_DETAILS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.ORDER_DETAILS\r\n }\r\n });\r\n this.router.navigate(['order-details'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openEmailDialog() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.CONTACTUS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.CONTACTUS\r\n }\r\n });\r\n this.router.navigate(['email'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openPreparationCheckList() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.PREPARATION_CHECKLIST,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.PREPARATION_CHECKLIST\r\n }\r\n });\r\n this.router.navigate(['check-list'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openContactUsPhone() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.CONTACTUS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.CONTACTUS\r\n }\r\n });\r\n this.router.navigate(['contact-us'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openProfileDialog() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.PROFILE,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.PROFILE\r\n }\r\n });\r\n this.router.navigate(['profile'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openCalendar() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.MYCALENDAR,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.MYCALENDAR\r\n }\r\n });\r\n this.router.navigate(['add-to-calendar'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openRescheduler() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.RESCHEDULE,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.RESCHEDULE\r\n }\r\n });\r\n this.router.navigate(['reschedule'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n private openNotification() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.NOTIFICATIONS,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.NOTIFICATIONS\r\n }\r\n });\r\n this.router.navigate(['notification'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private openHoursOfOperationDialog() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.HOURS_OF_OPERATION,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.HOURS_OF_OPERATION\r\n }\r\n });\r\n this.router.navigate(['hours'], { queryParams: { orderid: this.order && this.order.orderId } });\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n private hideProductDetailsIfMobile(status: boolean) {\r\n if (this.menuService.isMobileDevice()) {\r\n this.menuService.isHomeSelected = status;\r\n this.menuService.segmentRefreshNeeded = false;\r\n this.menuService.ismapRefreshNeeded = false;\r\n }\r\n }\r\n\r\n public search() {\r\n setTimeout(() => {\r\n this.menuService.isSearchDialogRequired = true;\r\n this.i18nService.fromSearchDialog = true;\r\n if(this.menuService.isMobileDevice() && !this.errorResponse){\r\n this.top_space = window.innerHeight - XPOConstants.CONTACT_COMPONENT_SIZE - XPOConstants.SEARCH_COMPONENT_SIZE - this.margin;\r\n let top = (this.top_space/2) + 'px';\r\n this.dialog.open(SearchContainerComponent, { disableClose: true, position: { top: top }, maxWidth: 'none' });\r\n let contactComponent = document.getElementById('contact-support');\r\n let contactComponenttop = window.innerHeight - XPOConstants.CONTACT_COMPONENT_SIZE - (this.top_space/2 ) + 'px';\r\n contactComponent.style.top = contactComponenttop;\r\n }\r\n else\r\n this.dialog.open(SearchContainerComponent, { disableClose: true});\r\n });\r\n }\r\n\r\n calculateTopPositionForContactComponent() {\r\n if (this.errorResponse) {\r\n this.top_space = window.innerHeight - XPOConstants.CONTACT_COMPONENT_SIZE - XPOConstants.ERROR_COMPONENT_SIZE - this.margin; \r\n }\r\n let top = window.innerHeight - XPOConstants.CONTACT_COMPONENT_SIZE - (this.top_space/2 ) + 'px';\r\n return this.sanitization.bypassSecurityTrustStyle(`--top-value : ${top}`);\r\n }\r\n\r\n private openImages() {\r\n this.spinner.showLoader();\r\n this.appSettings.eventTrack({\r\n action: GoogleAnalyticsConstants.EVENT_ACTION.OPEN,\r\n properties: {\r\n category: GoogleAnalyticsConstants.EVENT_CATEGORY.IMAGES,\r\n label: GoogleAnalyticsConstants.EVENT_CATEGORY.IMAGES\r\n }\r\n });\r\n this.router.navigate(['images'], { queryParams: { orderid: this.order && this.order.orderId } }).then(() => this.spinner.hideLoader());\r\n this.hideProductDetailsIfMobile(false);\r\n }\r\n\r\n ngAfterViewChecked() {\r\n this.changeDetectorRef.detectChanges();\r\n const chatElement = document.getElementById('icChatButton');\r\n if(chatElement && this.isMapView){\r\n chatElement.style.display = 'none';\r\n }\r\n if(chatElement && this.isMobile && !this.menuService.isLandingPage) {\r\n chatElement.style.marginBottom = '101px';\r\n if(this.errorResponse) {\r\n chatElement.style.marginBottom = '25px';\r\n }\r\n }\r\n }\r\n\r\n private displayOrderImage(order : Order) : boolean {\r\n return (order.validated && order.displayStopImages && order.isLMx\r\n && order.salesOrderCategoryId !==8 && order.status === 'DL');\r\n }\r\n\r\n private displayMultiAppointmentBanner(order: Order) : boolean {\r\n if (order.isMultiAppointment && order.salesOrderCategoryId === 1 && order.status !== 'CN') {\r\n if (order.exceptions && order.exceptions.length > 0 && order.exceptions.find(x => x.exceptionTypeId === 1)) {\r\n return false;\r\n }\r\n if (order.status !== 'DL' || (order.multiStopAssociatedWorkOrder && order.multiStopAssociatedWorkOrder.status !== 100 &&\r\n order.multiStopAssociatedWorkOrder.status !== 255 && order.multiStopAssociatedWorkOrder.operationalWorkFlowId !== 7 &&\r\n order.multiStopAssociatedWorkOrder.operationalWorkFlowId !== 8 && order.multiStopAssociatedWorkOrder.operationalWorkFlowId !== 9 &&\r\n order.multiStopAssociatedWorkOrder.operationalWorkFlowId !== 12)) {\r\n return true;\r\n }\r\n } \r\n return false;\r\n }\r\n\r\n public openAssociatedWorkOrder() { \r\n if (!this.menuService.isMultiOrder) {\r\n this.navigateToWorkOrder(this.order.multiStopAssociatedWorkOrder.workOrderId);\r\n }\r\n this.openOrderDetailsDialog();\r\n }\r\n\r\n public openScheduleAssociatedWorkOrder() {\r\n if (!this.menuService.isMultiOrder) {\r\n this.navigateToWorkOrder(this.order.multiStopAssociatedWorkOrder.workOrderId);\r\n } else {\r\n this.multiOrderNavigateToWorkOrder(this.order.multiStopAssociatedWorkOrder.workOrderId);\r\n }\r\n this.openRescheduler();\r\n }\r\n\r\n private navigateToWorkOrder(workOrderId: string) {\r\n const serviceOnlyIndex = this.orders.findIndex(x => x.workOrderId === workOrderId);\r\n if (serviceOnlyIndex > this.menuService.pageIndex) {\r\n this.navigateRight(serviceOnlyIndex, this.menuService.pageIndex);\r\n } else {\r\n this.navigateLeft(serviceOnlyIndex, this.menuService.pageIndex);\r\n }\r\n }\r\n\r\n private navigateRight(index: number, offset: number) {\r\n var clicks = index - offset;\r\n if (!this.isMobile) {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponent.onRightClick();\r\n }\r\n } else {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponentMobile.onRightClick();\r\n }\r\n }\r\n }\r\n\r\n private navigateLeft(index: number, offset: number) {\r\n var clicks = offset - index;\r\n if (!this.isMobile) {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponent.onLeftClick();\r\n }\r\n } else {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponentMobile.onLeftClick();\r\n }\r\n }\r\n }\r\n\r\n private multiOrderNavigateToWorkOrder(workOrderId: string) {\r\n const serviceOnlyIndex = this.orderService.orderValue[this.menuService.pageIndex].findIndex(workOrderId);\r\n if (serviceOnlyIndex > this.menuService.multiOrderCIpageIndex) {\r\n this.multiOrderNavigateRight(serviceOnlyIndex, this.menuService.multiOrderCIpageIndex);\r\n } else {\r\n this.multiOrderNavigateLeft(serviceOnlyIndex, this.menuService.multiOrderCIpageIndex);\r\n }\r\n }\r\n\r\n private multiOrderNavigateRight(index: number, offset: number) {\r\n var clicks = index - offset;\r\n if (!this.isMobile) {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponent.multiOrderNavigateRight();\r\n }\r\n } else {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponentMobile.multiOrderNavigateRight();\r\n }\r\n }\r\n }\r\n\r\n private multiOrderNavigateLeft(index: number, offset: number) {\r\n var clicks = offset - index;\r\n if (!this.isMobile) {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponent.multiOrderNavigateLeft();\r\n }\r\n } else {\r\n for (let i=1;i<=clicks;i++) {\r\n this.trackOrderComponentMobile.multiOrderNavigateLeft();\r\n }\r\n }\r\n }\r\n}\r\n","
\r\n \r\n \r\n
\r\n","import { Component, ChangeDetectorRef, AfterViewInit, AfterViewChecked } from '@angular/core';\r\nimport { LoaderService } from '../../loader/loader.service';\r\n\r\n@Component({\r\n selector: 'app-track-spinner',\r\n templateUrl: './track-spinner.component.html',\r\n styleUrls: [ './track-spinner.component.scss' ]\r\n})\r\nexport class TrackSpinnerComponent implements AfterViewInit, AfterViewChecked {\r\n public active: boolean;\r\n public constructor(\r\n spinner: LoaderService,\r\n private changeDetectorRef: ChangeDetectorRef\r\n ) {\r\n spinner.status.subscribe((status: boolean) => {\r\n this.active = status;\r\n });\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.changeDetectorRef.detectChanges();\r\n }\r\n ngAfterViewChecked() {\r\n this.changeDetectorRef.detectChanges();\r\n }\r\n\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { AppSettings } from './core/app-settings';\r\nimport { FreeDraggingDirective } from './shared/draggable.directive';\r\nimport { ChatService } from './shared/services/chat.service';\r\nimport { GTMHelperService } from './shared/services/gtm-helper.service';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n template: ``\r\n})\r\nexport class AppComponent {\r\n private draggableDirective: FreeDraggingDirective;\r\n alreadyCalled = false;\r\n\r\n favIcon: HTMLLinkElement = document.querySelector('#appFavicon');\r\n\r\n constructor(gtmHelperService: GTMHelperService,private chatService: ChatService, private appSettings: AppSettings) {\r\n this.favIcon.href = this.appSettings.isNewDomain ? 'RXO_favicon.ico' : 'favicon.ico?v=2';\r\n this.draggableDirective = new FreeDraggingDirective(null, document);\r\n try {\r\n gtmHelperService.initGTMScript();\r\n } catch (e) {\r\n console.log('error occured while initialized GTM script ' + e)\r\n }\r\n }\r\n\r\n ngAfterViewChecked() {\r\n const chatContainer = document.querySelector('#chat-div-wrap') as HTMLIFrameElement;\r\n \r\n if (chatContainer && !this.alreadyCalled) {\r\n chatContainer.insertAdjacentHTML('afterbegin','
')\r\n this.alreadyCalled = true;\r\n this.draggableDirective.setElement(chatContainer);\r\n this.draggableDirective.initDrag();\r\n }\r\n }\r\n}\r\n","import { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AuthServiceConfig, AuthService } from './services/auth.service';\r\n\r\nexport function configFactory(config: AuthServiceConfig) {\r\n return config;\r\n}\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule\r\n ],\r\n providers: [\r\n AuthService\r\n ]\r\n})\r\n\r\nexport class CalendarUnifiedModule {\r\n public static initialize(config: AuthServiceConfig): ModuleWithProviders {\r\n return {\r\n ngModule: CalendarUnifiedModule,\r\n providers: [\r\n AuthService,\r\n {\r\n provide: AuthServiceConfig,\r\n useValue: config\r\n }\r\n ]\r\n };\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {\r\n HttpEvent,\r\n HttpInterceptor,\r\n HttpHandler,\r\n HttpRequest,\r\n HttpHeaders\r\n} from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { XPOConstants } from '../../../shared';\r\nimport { I18nService } from '../../../shared/services/i18n.service';\r\n\r\n@Injectable()\r\nexport class SetHeaderInterceptor implements HttpInterceptor {\r\n private cloneReq;\r\n private i18nLanguage;\r\n constructor(public i18nService: I18nService) { }\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n if (req.url.match('computeRoutes') ) { // To-Do: need to refine this logic\r\n this.cloneReq = req.clone(\r\n {\r\n headers: req.headers\r\n .append('Content-Type', 'application/json')\r\n });\r\n } else {\r\n this.i18nLanguage = this.i18nService.getLanguage();\r\n this.cloneReq = req.clone(\r\n {\r\n headers: req.headers\r\n .append('Content-Type', 'application/json')\r\n .append('Accept-Language', this.i18nLanguage)\r\n .append('Access-Control-Allow-Origin', '*')\r\n .append('X-Requested-With', 'XMLHttpRequest')\r\n .append('Cache-Control', 'no-cache')\r\n .append('Pragma', 'no-cache')\r\n });\r\n }\r\n return next.handle(this.cloneReq);\r\n }\r\n}\r\n","const TimeoutErrorImpl = (() => {\n function TimeoutErrorImpl() {\n Error.call(this);\n this.message = 'Timeout has occurred';\n this.name = 'TimeoutError';\n return this;\n }\n TimeoutErrorImpl.prototype = Object.create(Error.prototype);\n return TimeoutErrorImpl;\n})();\nexport const TimeoutError = TimeoutErrorImpl;\n","import { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function timeoutWith(due, withObservable, scheduler = async) {\n return (source) => {\n let absoluteTimeout = isDate(due);\n let waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));\n };\n}\nclass TimeoutWithOperator {\n constructor(waitFor, absoluteTimeout, withObservable, scheduler) {\n this.waitFor = waitFor;\n this.absoluteTimeout = absoluteTimeout;\n this.withObservable = withObservable;\n this.scheduler = scheduler;\n }\n call(subscriber, source) {\n return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));\n }\n}\nclass TimeoutWithSubscriber extends SimpleOuterSubscriber {\n constructor(destination, absoluteTimeout, waitFor, withObservable, scheduler) {\n super(destination);\n this.absoluteTimeout = absoluteTimeout;\n this.waitFor = waitFor;\n this.withObservable = withObservable;\n this.scheduler = scheduler;\n this.scheduleTimeout();\n }\n static dispatchTimeout(subscriber) {\n const { withObservable } = subscriber;\n subscriber._unsubscribeAndRecycle();\n subscriber.add(innerSubscribe(withObservable, new SimpleInnerSubscriber(subscriber)));\n }\n scheduleTimeout() {\n const { action } = this;\n if (action) {\n this.action = action.schedule(this, this.waitFor);\n }\n else {\n this.add(this.action = this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this));\n }\n }\n _next(value) {\n if (!this.absoluteTimeout) {\n this.scheduleTimeout();\n }\n super._next(value);\n }\n _unsubscribe() {\n this.action = undefined;\n this.scheduler = null;\n this.withObservable = null;\n }\n}\n","\r\nimport {throwError as observableThrowError, Observable } from 'rxjs';\r\nimport {\r\n HttpEvent,\r\n HttpInterceptor,\r\n HttpHandler,\r\n HttpRequest,\r\n HttpHeaders,\r\n HttpErrorResponse\r\n} from '@angular/common/http';\r\nimport { tap, timeout } from 'rxjs/operators';\r\nimport { ErrorHandlerService } from '../../../shared/services/errorHandler.service';\r\nimport { Injectable } from \"@angular/core\";\r\n\r\n@Injectable()\r\nexport class TimeOutInterceptor implements HttpInterceptor {\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n return next.handle(req)\r\n .pipe(\r\n timeout(3000000),\r\n tap(event => { }, err => { // timeout of 30000 ms\r\n if (err instanceof HttpErrorResponse) {\r\n observableThrowError(err);\r\n }\r\n })\r\n );\r\n\r\n }\r\n}\r\n\r\n","import { async } from '../scheduler/async';\nimport { TimeoutError } from '../util/TimeoutError';\nimport { timeoutWith } from './timeoutWith';\nimport { throwError } from '../observable/throwError';\nexport function timeout(due, scheduler = async) {\n return timeoutWith(due, throwError(new TimeoutError()), scheduler);\n}\n","export function isDate(value) {\n return value instanceof Date && !isNaN(+value);\n}\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\r\nimport { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';\r\nimport { APP_BASE_HREF, Location } from '@angular/common';\r\nimport { HttpClientModule, HTTP_INTERCEPTORS, HttpClientJsonpModule } from '@angular/common/http';\r\n\r\n// Application Modules\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { CoreModule } from './core/core.module';\r\nimport { AppComponent } from './app.component';\r\nimport { CalendarUnifiedModule } from './calendar/calendar-unified.module';\r\nimport { LoaderModule } from './loader/loader';\r\nimport { NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { SetHeaderInterceptor } from './shared/services/interceptors/setHeaderInterceptor';\r\nimport { TimeOutInterceptor } from './shared/services/interceptors/timeOutInterceptor';\r\nimport { I18nService } from './shared/services/i18n.service';\r\nimport { environment } from '../environments/environment';\r\nimport { OrderService } from './shared';\r\nimport { AuthServiceConfig } from './calendar/services/auth.service';\r\nimport { provideConfig } from './add-to-calendar/add-to-calendar.module';\r\nimport { AuthenticateService } from './shared/services/authenticate.service';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { ImageService } from './shared';\r\nimport { ChatService } from './shared/services/chat.service';\r\nimport { GoogleRoutesAPIService } from './shared/services/google-map.service';\r\n//import { ContactUsComponent } from './contact-us/contact-us.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent //,\r\n // ContactUsComponent\r\n ],\r\n imports: [\r\n BrowserModule,\r\n CoreModule,\r\n LoaderModule,\r\n FormsModule,\r\n BrowserAnimationsModule,\r\n CalendarUnifiedModule,\r\n HttpClientModule,\r\n HttpClientJsonpModule,\r\n AppRoutingModule\r\n ],\r\n providers: [\r\n I18nService,\r\n OrderService,\r\n ImageService,\r\n AuthenticateService,\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: SetHeaderInterceptor,\r\n multi: true\r\n },\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: TimeOutInterceptor,\r\n multi: true\r\n },\r\n { provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { floatLabel: 'always' } },\r\n {\r\n provide: APP_BASE_HREF,\r\n useValue: environment.base\r\n },\r\n {\r\n provide: AuthServiceConfig,\r\n useFactory: provideConfig\r\n },\r\n ChatService,\r\n GoogleRoutesAPIService\r\n ],\r\n bootstrap: [AppComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]\r\n})\r\nexport class AppModule {\r\n constructor() { }\r\n}\r\n","export const environment = {\r\n production: true,\r\n base: '/'\r\n};\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule);\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar request = require(\"superagent\");\r\nvar es6_promise_1 = require(\"es6-promise\");\r\nvar common_1 = require(\"./common\");\r\nvar ResponseHandler_1 = require(\"./ResponseHandler\");\r\nvar packageInfo = require('../../package.json');\r\nvar GraphRequest = (function () {\r\n function GraphRequest(config, path) {\r\n this.config = config;\r\n this._headers = {};\r\n this.urlComponents = {\r\n host: this.config.baseUrl,\r\n version: this.config.defaultVersion,\r\n oDataQueryParams: {},\r\n otherURLQueryParams: {}\r\n };\r\n this.parsePath(path);\r\n }\r\n GraphRequest.prototype.header = function (headerKey, headerValue) {\r\n this._headers[headerKey] = headerValue;\r\n return this;\r\n };\r\n GraphRequest.prototype.headers = function (headers) {\r\n for (var key in headers) {\r\n this._headers[key] = headers[key];\r\n }\r\n return this;\r\n };\r\n GraphRequest.prototype.parsePath = function (rawPath) {\r\n if (rawPath.indexOf(\"https://\") != -1) {\r\n rawPath = rawPath.replace(\"https://\", \"\");\r\n var endOfHostStrPos = rawPath.indexOf(\"/\");\r\n this.urlComponents.host = \"https://\" + rawPath.substring(0, endOfHostStrPos);\r\n rawPath = rawPath.substring(endOfHostStrPos + 1, rawPath.length);\r\n var endOfVersionStrPos = rawPath.indexOf(\"/\");\r\n this.urlComponents.version = rawPath.substring(0, endOfVersionStrPos);\r\n rawPath = rawPath.substring(endOfVersionStrPos + 1, rawPath.length);\r\n }\r\n if (rawPath.charAt(0) == \"/\") {\r\n rawPath = rawPath.substr(1);\r\n }\r\n var queryStrPos = rawPath.indexOf(\"?\");\r\n if (queryStrPos == -1) {\r\n this.urlComponents.path = rawPath;\r\n }\r\n else {\r\n this.urlComponents.path = rawPath.substr(0, queryStrPos);\r\n var queryParams = rawPath.substring(queryStrPos + 1, rawPath.length).split(\"&\");\r\n for (var _i = 0, queryParams_1 = queryParams; _i < queryParams_1.length; _i++) {\r\n var queryParam = queryParams_1[_i];\r\n var queryParams_2 = queryParam.split(\"=\");\r\n var key = queryParams_2[0];\r\n var value = queryParams_2[1];\r\n if (common_1.oDataQueryNames.indexOf(key)) {\r\n this.urlComponents.oDataQueryParams[key] = value;\r\n }\r\n else {\r\n this.urlComponents.otherURLQueryParams[key] = value;\r\n }\r\n }\r\n }\r\n };\r\n GraphRequest.prototype.urlJoin = function (urlSegments) {\r\n var tr = function (s) { return s.replace(/\\/+$/, ''); };\r\n var tl = function (s) { return s.replace(/^\\/+/, ''); };\r\n var joiner = function (pre, cur) { return [tr(pre), tl(cur)].join('/'); };\r\n var parts = Array.prototype.slice.call(urlSegments);\r\n return parts.reduce(joiner);\r\n };\r\n GraphRequest.prototype.buildFullUrl = function () {\r\n var url = this.urlJoin([this.urlComponents.host,\r\n this.urlComponents.version,\r\n this.urlComponents.path])\r\n + this.createQueryString();\r\n if (this.config.debugLogging) {\r\n console.log(url);\r\n }\r\n return url;\r\n };\r\n GraphRequest.prototype.version = function (v) {\r\n this.urlComponents.version = v;\r\n return this;\r\n };\r\n GraphRequest.prototype.select = function (properties) {\r\n this.addCsvQueryParamater(\"$select\", properties, arguments);\r\n return this;\r\n };\r\n GraphRequest.prototype.expand = function (properties) {\r\n this.addCsvQueryParamater(\"$expand\", properties, arguments);\r\n return this;\r\n };\r\n GraphRequest.prototype.orderby = function (properties) {\r\n this.addCsvQueryParamater(\"$orderby\", properties, arguments);\r\n return this;\r\n };\r\n GraphRequest.prototype.filter = function (filterStr) {\r\n this.urlComponents.oDataQueryParams[\"$filter\"] = filterStr;\r\n return this;\r\n };\r\n GraphRequest.prototype.top = function (n) {\r\n this.urlComponents.oDataQueryParams[\"$top\"] = n;\r\n return this;\r\n };\r\n GraphRequest.prototype.skip = function (n) {\r\n this.urlComponents.oDataQueryParams[\"$skip\"] = n;\r\n return this;\r\n };\r\n GraphRequest.prototype.skipToken = function (token) {\r\n this.urlComponents.oDataQueryParams[\"$skipToken\"] = token;\r\n return this;\r\n };\r\n GraphRequest.prototype.count = function (count) {\r\n this.urlComponents.oDataQueryParams[\"$count\"] = count.toString();\r\n return this;\r\n };\r\n GraphRequest.prototype.responseType = function (responseType) {\r\n this._responseType = responseType;\r\n return this;\r\n };\r\n GraphRequest.prototype.addCsvQueryParamater = function (propertyName, propertyValue, additionalProperties) {\r\n this.urlComponents.oDataQueryParams[propertyName] = this.urlComponents.oDataQueryParams[propertyName] ? this.urlComponents.oDataQueryParams[propertyName] + \",\" : \"\";\r\n var allValues = [];\r\n if (typeof propertyValue === \"string\") {\r\n allValues.push(propertyValue);\r\n }\r\n else {\r\n allValues = allValues.concat(propertyValue);\r\n }\r\n if (additionalProperties.length > 1 && typeof propertyValue === \"string\") {\r\n allValues = Array.prototype.slice.call(additionalProperties);\r\n }\r\n this.urlComponents.oDataQueryParams[propertyName] += allValues.join(\",\");\r\n };\r\n GraphRequest.prototype.delete = function (callback) {\r\n var url = this.buildFullUrl();\r\n return this.sendRequestAndRouteResponse(request.del(url), callback);\r\n };\r\n GraphRequest.prototype.patch = function (content, callback) {\r\n var url = this.buildFullUrl();\r\n return this.sendRequestAndRouteResponse(request\r\n .patch(url)\r\n .send(content), callback);\r\n };\r\n GraphRequest.prototype.post = function (content, callback) {\r\n var url = this.buildFullUrl();\r\n return this.sendRequestAndRouteResponse(request\r\n .post(url)\r\n .send(content), callback);\r\n };\r\n GraphRequest.prototype.put = function (content, callback) {\r\n var url = this.buildFullUrl();\r\n return this.sendRequestAndRouteResponse(request\r\n .put(url)\r\n .type('application/octet-stream')\r\n .send(content), callback);\r\n };\r\n GraphRequest.prototype.create = function (content, callback) {\r\n return this.post(content, callback);\r\n };\r\n GraphRequest.prototype.update = function (content, callback) {\r\n return this.patch(content, callback);\r\n };\r\n GraphRequest.prototype.del = function (callback) {\r\n return this.delete(callback);\r\n };\r\n GraphRequest.prototype.get = function (callback) {\r\n var url = this.buildFullUrl();\r\n return this.sendRequestAndRouteResponse(request\r\n .get(url), callback);\r\n };\r\n GraphRequest.prototype.routeResponseToPromise = function (requestBuilder) {\r\n var _this = this;\r\n return new es6_promise_1.Promise(function (resolve, reject) {\r\n _this.routeResponseToCallback(requestBuilder, function (err, body) {\r\n if (err != null) {\r\n reject(err);\r\n }\r\n else {\r\n resolve(body);\r\n }\r\n });\r\n });\r\n };\r\n GraphRequest.prototype.routeResponseToCallback = function (requestBuilder, callback) {\r\n var _this = this;\r\n this.config.authProvider(function (err, accessToken) {\r\n if (err == null && accessToken != null) {\r\n var request_1 = _this.configureRequest(requestBuilder, accessToken);\r\n request_1.end(function (err, res) {\r\n ResponseHandler_1.ResponseHandler.init(err, res, callback);\r\n });\r\n }\r\n else {\r\n callback(err, null, null);\r\n }\r\n });\r\n };\r\n GraphRequest.prototype.sendRequestAndRouteResponse = function (requestBuilder, callback) {\r\n if (callback == null && typeof es6_promise_1.Promise !== \"undefined\") {\r\n return this.routeResponseToPromise(requestBuilder);\r\n }\r\n else {\r\n this.routeResponseToCallback(requestBuilder, callback || function () { });\r\n }\r\n };\r\n GraphRequest.prototype.getStream = function (callback) {\r\n var _this = this;\r\n this.config.authProvider(function (err, accessToken) {\r\n if (err === null && accessToken !== null) {\r\n var url = _this.buildFullUrl();\r\n callback(null, _this.configureRequest(request.get(url), accessToken));\r\n }\r\n else {\r\n callback(err, null);\r\n }\r\n });\r\n };\r\n GraphRequest.prototype.putStream = function (stream, callback) {\r\n var _this = this;\r\n this.config.authProvider(function (err, accessToken) {\r\n if (err === null && accessToken !== null) {\r\n var url = _this.buildFullUrl();\r\n var req = _this.configureRequest(request.put(url), accessToken);\r\n req.type('application/octet-stream');\r\n stream\r\n .pipe(req)\r\n .on('error', function (err) {\r\n callback(err, null);\r\n })\r\n .on('end', function () {\r\n callback(null);\r\n });\r\n }\r\n });\r\n };\r\n GraphRequest.prototype.configureRequest = function (requestBuilder, accessToken) {\r\n var request = requestBuilder\r\n .set('Authorization', 'Bearer ' + accessToken)\r\n .set(this._headers)\r\n .set('SdkVersion', \"graph-js-\" + packageInfo.version);\r\n if (this._responseType !== undefined) {\r\n request.responseType(this._responseType);\r\n }\r\n return request;\r\n };\r\n GraphRequest.prototype.query = function (queryDictionaryOrString) {\r\n if (typeof queryDictionaryOrString === \"string\") {\r\n var queryStr = queryDictionaryOrString;\r\n var queryKey = queryStr.split(\"=\")[0];\r\n var queryValue = queryStr.split(\"=\")[1];\r\n this.urlComponents.otherURLQueryParams[queryKey] = queryValue;\r\n }\r\n else {\r\n for (var key in queryDictionaryOrString) {\r\n this.urlComponents.otherURLQueryParams[key] = queryDictionaryOrString[key];\r\n }\r\n }\r\n return this;\r\n };\r\n GraphRequest.prototype.createQueryString = function () {\r\n var q = [];\r\n if (Object.keys(this.urlComponents.oDataQueryParams).length != 0) {\r\n for (var property in this.urlComponents.oDataQueryParams) {\r\n q.push(property + \"=\" + this.urlComponents.oDataQueryParams[property]);\r\n }\r\n }\r\n if (Object.keys(this.urlComponents.otherURLQueryParams).length != 0) {\r\n for (var property in this.urlComponents.otherURLQueryParams) {\r\n q.push(property + \"=\" + this.urlComponents.otherURLQueryParams[property]);\r\n }\r\n }\r\n if (q.length > 0) {\r\n return \"?\" + q.join(\"&\");\r\n }\r\n return \"\";\r\n };\r\n return GraphRequest;\r\n}());\r\nexports.GraphRequest = GraphRequest;\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar ResponseHandler = (function () {\r\n function ResponseHandler() {\r\n }\r\n ResponseHandler.init = function (err, res, callback) {\r\n if (res && res.ok) {\r\n callback(null, res.body, res);\r\n }\r\n else {\r\n if (err == null && res.error !== null)\r\n callback(ResponseHandler.ParseError(res), null, res);\r\n else\r\n callback(ResponseHandler.ParseError(err), null, res);\r\n }\r\n };\r\n ResponseHandler.ParseError = function (rawErr) {\r\n var errObj;\r\n if (!('rawResponse' in rawErr)) {\r\n if (rawErr.response !== undefined && rawErr.response.body !== null && 'error' in rawErr.response.body) {\r\n errObj = rawErr.response.body.error;\r\n }\r\n }\r\n else {\r\n errObj = JSON.parse(rawErr.rawResponse.replace(/^\\uFEFF/, '')).error;\r\n }\r\n var statusCode;\r\n if (rawErr.response !== undefined && rawErr.response.status !== undefined) {\r\n statusCode = rawErr.response.status;\r\n }\r\n else {\r\n statusCode = rawErr.statusCode;\r\n }\r\n if (errObj === undefined) {\r\n return {\r\n statusCode: statusCode,\r\n code: null,\r\n message: null,\r\n requestId: null,\r\n date: new Date(),\r\n body: null\r\n };\r\n }\r\n var err = {\r\n statusCode: statusCode,\r\n code: errObj.code,\r\n message: errObj.message,\r\n requestId: errObj.innerError[\"request-id\"],\r\n date: new Date(errObj.innerError.date),\r\n body: errObj\r\n };\r\n return err;\r\n };\r\n return ResponseHandler;\r\n}());\r\nexports.ResponseHandler = ResponseHandler;\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.oDataQueryNames = [\"select\", \"expand\", \"orderby\", \"filter\", \"top\", \"skip\", \"skipToken\", \"count\"];\r\nexports.DEFAULT_VERSION = \"v1.0\";\r\nexports.GRAPH_BASE_URL = \"https://graph.microsoft.com/\";\r\nexports.oDataQueryNames = exports.oDataQueryNames.concat(exports.oDataQueryNames.map(function (s) { return \"$\" + s; }));\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar common_1 = require(\"./common\");\r\nvar GraphRequest_1 = require(\"./GraphRequest\");\r\nvar Client = (function () {\r\n function Client() {\r\n this.config = {\r\n debugLogging: false,\r\n defaultVersion: common_1.DEFAULT_VERSION,\r\n baseUrl: common_1.GRAPH_BASE_URL\r\n };\r\n }\r\n Client.init = function (clientOptions) {\r\n var graphClient = new Client();\r\n for (var key in clientOptions) {\r\n graphClient.config[key] = clientOptions[key];\r\n }\r\n return graphClient;\r\n };\r\n Client.prototype.api = function (path) {\r\n return new GraphRequest_1.GraphRequest(this.config, path);\r\n };\r\n return Client;\r\n}());\r\nexports.Client = Client;\r\n","\n/**\n * Expose `Emitter`.\n */\n\nif (typeof module !== 'undefined') {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n\n var args = new Array(arguments.length - 1)\n , callbacks = this._callbacks['$' + event];\n\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n","/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version v4.2.8+1e68dce6\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.ES6Promise = factory());\n}(this, (function () { 'use strict';\n\nfunction objectOrFunction(x) {\n var type = typeof x;\n return x !== null && (type === 'object' || type === 'function');\n}\n\nfunction isFunction(x) {\n return typeof x === 'function';\n}\n\n\n\nvar _isArray = void 0;\nif (Array.isArray) {\n _isArray = Array.isArray;\n} else {\n _isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n}\n\nvar isArray = _isArray;\n\nvar len = 0;\nvar vertxNext = void 0;\nvar customSchedulerFn = void 0;\n\nvar asap = function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 2, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n};\n\nfunction setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n}\n\nfunction setAsap(asapFn) {\n asap = asapFn;\n}\n\nvar browserWindow = typeof window !== 'undefined' ? window : undefined;\nvar browserGlobal = browserWindow || {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nvar isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function () {\n return process.nextTick(flush);\n };\n}\n\n// vertx\nfunction useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function () {\n vertxNext(flush);\n };\n }\n\n return useSetTimeout();\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function () {\n node.data = iterations = ++iterations % 2;\n };\n}\n\n// web worker\nfunction useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return function () {\n return channel.port2.postMessage(0);\n };\n}\n\nfunction useSetTimeout() {\n // Store setTimeout reference so es6-promise will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var globalSetTimeout = setTimeout;\n return function () {\n return globalSetTimeout(flush, 1);\n };\n}\n\nvar queue = new Array(1000);\nfunction flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue[i];\n var arg = queue[i + 1];\n\n callback(arg);\n\n queue[i] = undefined;\n queue[i + 1] = undefined;\n }\n\n len = 0;\n}\n\nfunction attemptVertx() {\n try {\n var vertx = Function('return this')().require('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n}\n\nvar scheduleFlush = void 0;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n scheduleFlush = attemptVertx();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction then(onFulfillment, onRejection) {\n var parent = this;\n\n var child = new this.constructor(noop);\n\n if (child[PROMISE_ID] === undefined) {\n makePromise(child);\n }\n\n var _state = parent._state;\n\n\n if (_state) {\n var callback = arguments[_state - 1];\n asap(function () {\n return invokeCallback(_state, child, callback, parent._result);\n });\n } else {\n subscribe(parent, child, onFulfillment, onRejection);\n }\n\n return child;\n}\n\n/**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.resolve(1);\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n @method resolve\n @static\n @param {Any} value value that the returned promise will be resolved with\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n*/\nfunction resolve$1(object) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n var promise = new Constructor(noop);\n resolve(promise, object);\n return promise;\n}\n\nvar PROMISE_ID = Math.random().toString(36).substring(2);\n\nfunction noop() {}\n\nvar PENDING = void 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n}\n\nfunction cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n try {\n then$$1.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n}\n\nfunction handleForeignThenable(promise, thenable, then$$1) {\n asap(function (promise) {\n var sealed = false;\n var error = tryThen(then$$1, thenable, function (value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n resolve(promise, value);\n } else {\n fulfill(promise, value);\n }\n }, function (reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n\n reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && error) {\n sealed = true;\n reject(promise, error);\n }\n }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, function (value) {\n return resolve(promise, value);\n }, function (reason) {\n return reject(promise, reason);\n });\n }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$$1) {\n if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$1 === undefined) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$1)) {\n handleForeignThenable(promise, maybeThenable, then$$1);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n var then$$1 = void 0;\n try {\n then$$1 = value.then;\n } catch (error) {\n reject(promise, error);\n return;\n }\n handleMaybeThenable(promise, value, then$$1);\n } else {\n fulfill(promise, value);\n }\n}\n\nfunction publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n\n publish(promise);\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n\n promise._result = value;\n promise._state = FULFILLED;\n\n if (promise._subscribers.length !== 0) {\n asap(publish, promise);\n }\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._state = REJECTED;\n promise._result = reason;\n\n asap(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n\n\n parent._onerror = null;\n\n _subscribers[length] = child;\n _subscribers[length + FULFILLED] = onFulfillment;\n _subscribers[length + REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n asap(publish, parent);\n }\n}\n\nfunction publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (subscribers.length === 0) {\n return;\n }\n\n var child = void 0,\n callback = void 0,\n detail = promise._result;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n\n promise._subscribers.length = 0;\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value = void 0,\n error = void 0,\n succeeded = true;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n } catch (e) {\n succeeded = false;\n error = e;\n }\n\n if (promise === value) {\n reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n }\n\n if (promise._state !== PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (succeeded === false) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n fulfill(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nfunction initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n resolve(promise, value);\n }, function rejectPromise(reason) {\n reject(promise, reason);\n });\n } catch (e) {\n reject(promise, e);\n }\n}\n\nvar id = 0;\nfunction nextId() {\n return id++;\n}\n\nfunction makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = undefined;\n promise._result = undefined;\n promise._subscribers = [];\n}\n\nfunction validationError() {\n return new Error('Array Methods must be provided an Array');\n}\n\nvar Enumerator = function () {\n function Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop);\n\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n\n if (isArray(input)) {\n this.length = input.length;\n this._remaining = input.length;\n\n this._result = new Array(this.length);\n\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate(input);\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n reject(this.promise, validationError());\n }\n }\n\n Enumerator.prototype._enumerate = function _enumerate(input) {\n for (var i = 0; this._state === PENDING && i < input.length; i++) {\n this._eachEntry(input[i], i);\n }\n };\n\n Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {\n var c = this._instanceConstructor;\n var resolve$$1 = c.resolve;\n\n\n if (resolve$$1 === resolve$1) {\n var _then = void 0;\n var error = void 0;\n var didError = false;\n try {\n _then = entry.then;\n } catch (e) {\n didError = true;\n error = e;\n }\n\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === Promise$1) {\n var promise = new c(noop);\n if (didError) {\n reject(promise, error);\n } else {\n handleMaybeThenable(promise, entry, _then);\n }\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function (resolve$$1) {\n return resolve$$1(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$1(entry), i);\n }\n };\n\n Enumerator.prototype._settledAt = function _settledAt(state, i, value) {\n var promise = this.promise;\n\n\n if (promise._state === PENDING) {\n this._remaining--;\n\n if (state === REJECTED) {\n reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n };\n\n Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {\n var enumerator = this;\n\n subscribe(promise, undefined, function (value) {\n return enumerator._settledAt(FULFILLED, i, value);\n }, function (reason) {\n return enumerator._settledAt(REJECTED, i, reason);\n });\n };\n\n return Enumerator;\n}();\n\n/**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @static\n @param {Array} entries array of promises\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n*/\nfunction all(entries) {\n return new Enumerator(this, entries).promise;\n}\n\n/**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n\n Example:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n An example real-world use case is implementing timeouts:\n\n ```javascript\n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n\n @method race\n @static\n @param {Array} promises array of promises to observe\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n*/\nfunction race(entries) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (!isArray(entries)) {\n return new Constructor(function (_, reject) {\n return reject(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function (resolve, reject) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve, reject);\n }\n });\n }\n}\n\n/**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @static\n @param {Any} reason value that the returned promise will be rejected with.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$1(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(noop);\n reject(promise, reason);\n return promise;\n}\n\nfunction needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise's eventual value or the reason\n why the promise cannot be fulfilled.\n\n Terminology\n -----------\n\n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n\n A promise can be in one of three states: pending, fulfilled, or rejected.\n\n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n\n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n\n\n Basic Usage:\n ------------\n\n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n\n // on failure\n reject(reason);\n });\n\n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Advanced Usage:\n ---------------\n\n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n\n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n\n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n\n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n\n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Unlike callbacks, promises are great composable primitives.\n\n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n\n return values;\n });\n ```\n\n @class Promise\n @param {Function} resolver\n Useful for tooling.\n @constructor\n*/\n\nvar Promise$1 = function () {\n function Promise(resolver) {\n this[PROMISE_ID] = nextId();\n this._result = this._state = undefined;\n this._subscribers = [];\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n }\n\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n Chaining\n --------\n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we're unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n Assimilation\n ------------\n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n If the assimliated promise rejects, then the downstream promise will also reject.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n Simple Example\n --------------\n Synchronous Example\n ```javascript\n let result;\n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n Advanced Example\n --------------\n Synchronous Example\n ```javascript\n let author, books;\n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n function foundBooks(books) {\n }\n function failure(reason) {\n }\n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\n\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n\n\n Promise.prototype.catch = function _catch(onRejection) {\n return this.then(null, onRejection);\n };\n\n /**\n `finally` will be invoked regardless of the promise's fate just as native\n try/catch/finally behaves\n \n Synchronous example:\n \n ```js\n findAuthor() {\n if (Math.random() > 0.5) {\n throw new Error();\n }\n return new Author();\n }\n \n try {\n return findAuthor(); // succeed or fail\n } catch(error) {\n return findOtherAuther();\n } finally {\n // always runs\n // doesn't affect the return value\n }\n ```\n \n Asynchronous example:\n \n ```js\n findAuthor().catch(function(reason){\n return findOtherAuther();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n \n @method finally\n @param {Function} callback\n @return {Promise}\n */\n\n\n Promise.prototype.finally = function _finally(callback) {\n var promise = this;\n var constructor = promise.constructor;\n\n if (isFunction(callback)) {\n return promise.then(function (value) {\n return constructor.resolve(callback()).then(function () {\n return value;\n });\n }, function (reason) {\n return constructor.resolve(callback()).then(function () {\n throw reason;\n });\n });\n }\n\n return promise.then(callback, callback);\n };\n\n return Promise;\n}();\n\nPromise$1.prototype.then = then;\nPromise$1.all = all;\nPromise$1.race = race;\nPromise$1.resolve = resolve$1;\nPromise$1.reject = reject$1;\nPromise$1._setScheduler = setScheduler;\nPromise$1._setAsap = setAsap;\nPromise$1._asap = asap;\n\n/*global self*/\nfunction polyfill() {\n var local = void 0;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n\n var P = local.Promise;\n\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {\n // silently ignored\n }\n\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n\n local.Promise = Promise$1;\n}\n\n// Strange compat..\nPromise$1.polyfill = polyfill;\nPromise$1.Promise = Promise$1;\n\nreturn Promise$1;\n\n})));\n\n\n\n","/* FileSaver.js\n * A saveAs() FileSaver implementation.\n * 1.3.2\n * 2016-06-16 18:25:19\n *\n * By Eli Grey, http://eligrey.com\n * License: MIT\n * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n */\n\n/*global self */\n/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */\n\n/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */\n\nvar saveAs = saveAs || (function(view) {\n\t\"use strict\";\n\t// IE <10 is explicitly unsupported\n\tif (typeof view === \"undefined\" || typeof navigator !== \"undefined\" && /MSIE [1-9]\\./.test(navigator.userAgent)) {\n\t\treturn;\n\t}\n\tvar\n\t\t doc = view.document\n\t\t // only get URL when necessary in case Blob.js hasn't overridden it yet\n\t\t, get_URL = function() {\n\t\t\treturn view.URL || view.webkitURL || view;\n\t\t}\n\t\t, save_link = doc.createElementNS(\"http://www.w3.org/1999/xhtml\", \"a\")\n\t\t, can_use_save_link = \"download\" in save_link\n\t\t, click = function(node) {\n\t\t\tvar event = new MouseEvent(\"click\");\n\t\t\tnode.dispatchEvent(event);\n\t\t}\n\t\t, is_safari = /constructor/i.test(view.HTMLElement) || view.safari\n\t\t, is_chrome_ios =/CriOS\\/[\\d]+/.test(navigator.userAgent)\n\t\t, throw_outside = function(ex) {\n\t\t\t(view.setImmediate || view.setTimeout)(function() {\n\t\t\t\tthrow ex;\n\t\t\t}, 0);\n\t\t}\n\t\t, force_saveable_type = \"application/octet-stream\"\n\t\t// the Blob API is fundamentally broken as there is no \"downloadfinished\" event to subscribe to\n\t\t, arbitrary_revoke_timeout = 1000 * 40 // in ms\n\t\t, revoke = function(file) {\n\t\t\tvar revoker = function() {\n\t\t\t\tif (typeof file === \"string\") { // file is an object URL\n\t\t\t\t\tget_URL().revokeObjectURL(file);\n\t\t\t\t} else { // file is a File\n\t\t\t\t\tfile.remove();\n\t\t\t\t}\n\t\t\t};\n\t\t\tsetTimeout(revoker, arbitrary_revoke_timeout);\n\t\t}\n\t\t, dispatch = function(filesaver, event_types, event) {\n\t\t\tevent_types = [].concat(event_types);\n\t\t\tvar i = event_types.length;\n\t\t\twhile (i--) {\n\t\t\t\tvar listener = filesaver[\"on\" + event_types[i]];\n\t\t\t\tif (typeof listener === \"function\") {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlistener.call(filesaver, event || filesaver);\n\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\tthrow_outside(ex);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t, auto_bom = function(blob) {\n\t\t\t// prepend BOM for UTF-8 XML and text/* types (including HTML)\n\t\t\t// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n\t\t\tif (/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n\t\t\t\treturn new Blob([String.fromCharCode(0xFEFF), blob], {type: blob.type});\n\t\t\t}\n\t\t\treturn blob;\n\t\t}\n\t\t, FileSaver = function(blob, name, no_auto_bom) {\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\t// First try a.download, then web filesystem, then object URLs\n\t\t\tvar\n\t\t\t\t filesaver = this\n\t\t\t\t, type = blob.type\n\t\t\t\t, force = type === force_saveable_type\n\t\t\t\t, object_url\n\t\t\t\t, dispatch_all = function() {\n\t\t\t\t\tdispatch(filesaver, \"writestart progress write writeend\".split(\" \"));\n\t\t\t\t}\n\t\t\t\t// on any filesys errors revert to saving with object URLs\n\t\t\t\t, fs_error = function() {\n\t\t\t\t\tif ((is_chrome_ios || (force && is_safari)) && view.FileReader) {\n\t\t\t\t\t\t// Safari doesn't allow downloading of blob urls\n\t\t\t\t\t\tvar reader = new FileReader();\n\t\t\t\t\t\treader.onloadend = function() {\n\t\t\t\t\t\t\tvar url = is_chrome_ios ? reader.result : reader.result.replace(/^data:[^;]*;/, 'data:attachment/file;');\n\t\t\t\t\t\t\tvar popup = view.open(url, '_blank');\n\t\t\t\t\t\t\tif(!popup) view.location.href = url;\n\t\t\t\t\t\t\turl=undefined; // release reference before dispatching\n\t\t\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\t\t\tdispatch_all();\n\t\t\t\t\t\t};\n\t\t\t\t\t\treader.readAsDataURL(blob);\n\t\t\t\t\t\tfilesaver.readyState = filesaver.INIT;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// don't create more object URLs than needed\n\t\t\t\t\tif (!object_url) {\n\t\t\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\t\t}\n\t\t\t\t\tif (force) {\n\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar opened = view.open(object_url, \"_blank\");\n\t\t\t\t\t\tif (!opened) {\n\t\t\t\t\t\t\t// Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html\n\t\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t}\n\t\t\t;\n\t\t\tfilesaver.readyState = filesaver.INIT;\n\n\t\t\tif (can_use_save_link) {\n\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\tsave_link.href = object_url;\n\t\t\t\t\tsave_link.download = name;\n\t\t\t\t\tclick(save_link);\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfs_error();\n\t\t}\n\t\t, FS_proto = FileSaver.prototype\n\t\t, saveAs = function(blob, name, no_auto_bom) {\n\t\t\treturn new FileSaver(blob, name || blob.name || \"download\", no_auto_bom);\n\t\t}\n\t;\n\t// IE 10+ (native saveAs)\n\tif (typeof navigator !== \"undefined\" && navigator.msSaveOrOpenBlob) {\n\t\treturn function(blob, name, no_auto_bom) {\n\t\t\tname = name || blob.name || \"download\";\n\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\treturn navigator.msSaveOrOpenBlob(blob, name);\n\t\t};\n\t}\n\n\tFS_proto.abort = function(){};\n\tFS_proto.readyState = FS_proto.INIT = 0;\n\tFS_proto.WRITING = 1;\n\tFS_proto.DONE = 2;\n\n\tFS_proto.error =\n\tFS_proto.onwritestart =\n\tFS_proto.onprogress =\n\tFS_proto.onwrite =\n\tFS_proto.onabort =\n\tFS_proto.onerror =\n\tFS_proto.onwriteend =\n\t\tnull;\n\n\treturn saveAs;\n}(\n\t typeof self !== \"undefined\" && self\n\t|| typeof window !== \"undefined\" && window\n\t|| this.content\n));\n// `self` is undefined in Firefox for Android content script context\n// while `this` is nsIContentFrameMessageManager\n// with an attribute `content` that corresponds to the window\n\nif (typeof module !== \"undefined\" && module.exports) {\n module.exports.saveAs = saveAs;\n} else if ((typeof define !== \"undefined\" && define !== null) && (define.amd !== null)) {\n define(\"FileSaver.js\", function() {\n return saveAs;\n });\n}\n","/*! hellojs v1.15.1 | (c) 2012-2017 Andrew Dodson | MIT https://adodson.com/hello.js/LICENSE */\n// ES5 Object.create\nif (!Object.create) {\n\n\t// Shim, Object create\n\t// A shim for Object.create(), it adds a prototype to a new object\n\tObject.create = (function() {\n\n\t\tfunction F() {}\n\n\t\treturn function(o) {\n\n\t\t\tif (arguments.length != 1) {\n\t\t\t\tthrow new Error('Object.create implementation only accepts one parameter.');\n\t\t\t}\n\n\t\t\tF.prototype = o;\n\t\t\treturn new F();\n\t\t};\n\n\t})();\n\n}\n\n// ES5 Object.keys\nif (!Object.keys) {\n\tObject.keys = function(o, k, r) {\n\t\tr = [];\n\t\tfor (k in o) {\n\t\t\tif (r.hasOwnProperty.call(o, k))\n\t\t\t\tr.push(k);\n\t\t}\n\n\t\treturn r;\n\t};\n}\n\n// ES5 [].indexOf\nif (!Array.prototype.indexOf) {\n\tArray.prototype.indexOf = function(s) {\n\n\t\tfor (var j = 0; j < this.length; j++) {\n\t\t\tif (this[j] === s) {\n\t\t\t\treturn j;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t};\n}\n\n// ES5 [].forEach\nif (!Array.prototype.forEach) {\n\tArray.prototype.forEach = function(fun/*, thisArg*/) {\n\n\t\tif (this === void 0 || this === null) {\n\t\t\tthrow new TypeError();\n\t\t}\n\n\t\tvar t = Object(this);\n\t\tvar len = t.length >>> 0;\n\t\tif (typeof fun !== 'function') {\n\t\t\tthrow new TypeError();\n\t\t}\n\n\t\tvar thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tif (i in t) {\n\t\t\t\tfun.call(thisArg, t[i], i, t);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t};\n}\n\n// ES5 [].filter\nif (!Array.prototype.filter) {\n\tArray.prototype.filter = function(fun, thisArg) {\n\n\t\tvar a = [];\n\t\tthis.forEach(function(val, i, t) {\n\t\t\tif (fun.call(thisArg || void 0, val, i, t)) {\n\t\t\t\ta.push(val);\n\t\t\t}\n\t\t});\n\n\t\treturn a;\n\t};\n}\n\n// Production steps of ECMA-262, Edition 5, 15.4.4.19\n// Reference: http://es5.github.io/#x15.4.4.19\nif (!Array.prototype.map) {\n\n\tArray.prototype.map = function(fun, thisArg) {\n\n\t\tvar a = [];\n\t\tthis.forEach(function(val, i, t) {\n\t\t\ta.push(fun.call(thisArg || void 0, val, i, t));\n\t\t});\n\n\t\treturn a;\n\t};\n}\n\n// ES5 isArray\nif (!Array.isArray) {\n\n\t// Function Array.isArray\n\tArray.isArray = function(o) {\n\t\treturn Object.prototype.toString.call(o) === '[object Array]';\n\t};\n\n}\n\n// Test for location.assign\nif (typeof window === 'object' && typeof window.location === 'object' && !window.location.assign) {\n\n\twindow.location.assign = function(url) {\n\t\twindow.location = url;\n\t};\n\n}\n\n// Test for Function.bind\nif (!Function.prototype.bind) {\n\n\t// MDN\n\t// Polyfill IE8, does not support native Function.bind\n\tFunction.prototype.bind = function(b) {\n\n\t\tif (typeof this !== 'function') {\n\t\t\tthrow new TypeError('Function.prototype.bind - what is trying to be bound is not callable');\n\t\t}\n\n\t\tfunction C() {}\n\n\t\tvar a = [].slice;\n\t\tvar f = a.call(arguments, 1);\n\t\tvar _this = this;\n\t\tvar D = function() {\n\t\t\treturn _this.apply(this instanceof C ? this : b || window, f.concat(a.call(arguments)));\n\t\t};\n\n\t\tC.prototype = this.prototype;\n\t\tD.prototype = new C();\n\n\t\treturn D;\n\t};\n\n}\n\n/**\n * @hello.js\n *\n * HelloJS is a client side Javascript SDK for making OAuth2 logins and subsequent REST calls.\n *\n * @author Andrew Dodson\n * @website https://adodson.com/hello.js/\n *\n * @copyright Andrew Dodson, 2012 - 2015\n * @license MIT: You are free to use and modify this code for any use, on the condition that this copyright notice remains.\n */\n\nvar hello = function(name) {\n\treturn hello.use(name);\n};\n\nhello.utils = {\n\n\t// Extend the first object with the properties and methods of the second\n\textend: function(r /*, a[, b[, ...]] */) {\n\n\t\t// Get the arguments as an array but ommit the initial item\n\t\tArray.prototype.slice.call(arguments, 1).forEach(function(a) {\n\t\t\tif (Array.isArray(r) && Array.isArray(a)) {\n\t\t\t\tArray.prototype.push.apply(r, a);\n\t\t\t}\n\t\t\telse if (r && (r instanceof Object || typeof r === 'object') && a && (a instanceof Object || typeof a === 'object') && r !== a) {\n\t\t\t\tfor (var x in a) {\n\t\t\t\t\tr[x] = hello.utils.extend(r[x], a[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tif (Array.isArray(a)) {\n\t\t\t\t\t// Clone it\n\t\t\t\t\ta = a.slice(0);\n\t\t\t\t}\n\n\t\t\t\tr = a;\n\t\t\t}\n\t\t});\n\n\t\treturn r;\n\t}\n};\n\n// Core library\nhello.utils.extend(hello, {\n\n\tsettings: {\n\n\t\t// OAuth2 authentication defaults\n\t\tredirect_uri: window.location.href.split('#')[0],\n\t\tresponse_type: 'token',\n\t\tdisplay: 'popup',\n\t\tstate: '',\n\n\t\t// OAuth1 shim\n\t\t// The path to the OAuth1 server for signing user requests\n\t\t// Want to recreate your own? Checkout https://github.com/MrSwitch/node-oauth-shim\n\t\toauth_proxy: 'https://auth-server.herokuapp.com/proxy',\n\n\t\t// API timeout in milliseconds\n\t\ttimeout: 20000,\n\n\t\t// Popup Options\n\t\tpopup: {\n\t\t\tresizable: 1,\n\t\t\tscrollbars: 1,\n\t\t\twidth: 500,\n\t\t\theight: 550\n\t\t},\n\n\t\t// Default scope\n\t\t// Many services require atleast a profile scope,\n\t\t// HelloJS automatially includes the value of provider.scope_map.basic\n\t\t// If that's not required it can be removed via hello.settings.scope.length = 0;\n\t\tscope: ['basic'],\n\n\t\t// Scope Maps\n\t\t// This is the default module scope, these are the defaults which each service is mapped too.\n\t\t// By including them here it prevents the scope from being applied accidentally\n\t\tscope_map: {\n\t\t\tbasic: ''\n\t\t},\n\n\t\t// Default service / network\n\t\tdefault_service: null,\n\n\t\t// Force authentication\n\t\t// When hello.login is fired.\n\t\t// (null): ignore current session expiry and continue with login\n\t\t// (true): ignore current session expiry and continue with login, ask for user to reauthenticate\n\t\t// (false): if the current session looks good for the request scopes return the current session.\n\t\tforce: null,\n\n\t\t// Page URL\n\t\t// When 'display=page' this property defines where the users page should end up after redirect_uri\n\t\t// Ths could be problematic if the redirect_uri is indeed the final place,\n\t\t// Typically this circumvents the problem of the redirect_url being a dumb relay page.\n\t\tpage_uri: window.location.href\n\t},\n\n\t// Service configuration objects\n\tservices: {},\n\n\t// Use\n\t// Define a new instance of the HelloJS library with a default service\n\tuse: function(service) {\n\n\t\t// Create self, which inherits from its parent\n\t\tvar self = Object.create(this);\n\n\t\t// Inherit the prototype from its parent\n\t\tself.settings = Object.create(this.settings);\n\n\t\t// Define the default service\n\t\tif (service) {\n\t\t\tself.settings.default_service = service;\n\t\t}\n\n\t\t// Create an instance of Events\n\t\tself.utils.Event.call(self);\n\n\t\treturn self;\n\t},\n\n\t// Initialize\n\t// Define the client_ids for the endpoint services\n\t// @param object o, contains a key value pair, service => clientId\n\t// @param object opts, contains a key value pair of options used for defining the authentication defaults\n\t// @param number timeout, timeout in seconds\n\tinit: function(services, options) {\n\n\t\tvar utils = this.utils;\n\n\t\tif (!services) {\n\t\t\treturn this.services;\n\t\t}\n\n\t\t// Define provider credentials\n\t\t// Reformat the ID field\n\t\tfor (var x in services) {if (services.hasOwnProperty(x)) {\n\t\t\tif (typeof (services[x]) !== 'object') {\n\t\t\t\tservices[x] = {id: services[x]};\n\t\t\t}\n\t\t}}\n\n\t\t// Merge services if there already exists some\n\t\tutils.extend(this.services, services);\n\n\t\t// Update the default settings with this one.\n\t\tif (options) {\n\t\t\tutils.extend(this.settings, options);\n\n\t\t\t// Do this immediatly incase the browser changes the current path.\n\t\t\tif ('redirect_uri' in options) {\n\t\t\t\tthis.settings.redirect_uri = utils.url(options.redirect_uri).href;\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t// Login\n\t// Using the endpoint\n\t// @param network stringify name to connect to\n\t// @param options object (optional) {display mode, is either none|popup(default)|page, scope: email,birthday,publish, .. }\n\t// @param callback function (optional) fired on signin\n\tlogin: function() {\n\n\t\t// Create an object which inherits its parent as the prototype and constructs a new event chain.\n\t\tvar _this = this;\n\t\tvar utils = _this.utils;\n\t\tvar error = utils.error;\n\t\tvar promise = utils.Promise();\n\n\t\t// Get parameters\n\t\tvar p = utils.args({network: 's', options: 'o', callback: 'f'}, arguments);\n\n\t\t// Local vars\n\t\tvar url;\n\n\t\t// Get all the custom options and store to be appended to the querystring\n\t\tvar qs = utils.diffKey(p.options, _this.settings);\n\n\t\t// Merge/override options with app defaults\n\t\tvar opts = p.options = utils.merge(_this.settings, p.options || {});\n\n\t\t// Merge/override options with app defaults\n\t\topts.popup = utils.merge(_this.settings.popup, p.options.popup || {});\n\n\t\t// Network\n\t\tp.network = p.network || _this.settings.default_service;\n\n\t\t// Bind callback to both reject and fulfill states\n\t\tpromise.proxy.then(p.callback, p.callback);\n\n\t\t// Trigger an event on the global listener\n\t\tfunction emit(s, value) {\n\t\t\thello.emit(s, value);\n\t\t}\n\n\t\tpromise.proxy.then(emit.bind(this, 'auth.login auth'), emit.bind(this, 'auth.failed auth'));\n\n\t\t// Is our service valid?\n\t\tif (typeof (p.network) !== 'string' || !(p.network in _this.services)) {\n\t\t\t// Trigger the default login.\n\t\t\t// Ahh we dont have one.\n\t\t\treturn promise.reject(error('invalid_network', 'The provided network was not recognized'));\n\t\t}\n\n\t\tvar provider = _this.services[p.network];\n\n\t\t// Create a global listener to capture events triggered out of scope\n\t\tvar callbackId = utils.globalEvent(function(str) {\n\n\t\t\t// The responseHandler returns a string, lets save this locally\n\t\t\tvar obj;\n\n\t\t\tif (str) {\n\t\t\t\tobj = JSON.parse(str);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tobj = error('cancelled', 'The authentication was not completed');\n\t\t\t}\n\n\t\t\t// Handle these response using the local\n\t\t\t// Trigger on the parent\n\t\t\tif (!obj.error) {\n\n\t\t\t\t// Save on the parent window the new credentials\n\t\t\t\t// This fixes an IE10 bug i think... atleast it does for me.\n\t\t\t\tutils.store(obj.network, obj);\n\n\t\t\t\t// Fulfill a successful login\n\t\t\t\tpromise.fulfill({\n\t\t\t\t\tnetwork: obj.network,\n\t\t\t\t\tauthResponse: obj\n\t\t\t\t});\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Reject a successful login\n\t\t\t\tpromise.reject(obj);\n\t\t\t}\n\t\t});\n\n\t\tvar redirectUri = utils.url(opts.redirect_uri).href;\n\n\t\t// May be a space-delimited list of multiple, complementary types\n\t\tvar responseType = provider.oauth.response_type || opts.response_type;\n\n\t\t// Fallback to token if the module hasn't defined a grant url\n\t\tif (/\\bcode\\b/.test(responseType) && !provider.oauth.grant) {\n\t\t\tresponseType = responseType.replace(/\\bcode\\b/, 'token');\n\t\t}\n\n\t\t// Query string parameters, we may pass our own arguments to form the querystring\n\t\tp.qs = utils.merge(qs, {\n\t\t\tclient_id: encodeURIComponent(provider.id),\n\t\t\tresponse_type: encodeURIComponent(responseType),\n\t\t\tredirect_uri: encodeURIComponent(redirectUri),\n\t\t\tstate: {\n\t\t\t\tclient_id: provider.id,\n\t\t\t\tnetwork: p.network,\n\t\t\t\tdisplay: opts.display,\n\t\t\t\tcallback: callbackId,\n\t\t\t\tstate: opts.state,\n\t\t\t\tredirect_uri: redirectUri\n\t\t\t}\n\t\t});\n\n\t\t// Get current session for merging scopes, and for quick auth response\n\t\tvar session = utils.store(p.network);\n\n\t\t// Scopes (authentication permisions)\n\t\t// Ensure this is a string - IE has a problem moving Arrays between windows\n\t\t// Append the setup scope\n\t\tvar SCOPE_SPLIT = /[,\\s]+/;\n\n\t\t// Include default scope settings (cloned).\n\t\tvar scope = _this.settings.scope ? [_this.settings.scope.toString()] : [];\n\n\t\t// Extend the providers scope list with the default\n\t\tvar scopeMap = utils.merge(_this.settings.scope_map, provider.scope || {});\n\n\t\t// Add user defined scopes...\n\t\tif (opts.scope) {\n\t\t\tscope.push(opts.scope.toString());\n\t\t}\n\n\t\t// Append scopes from a previous session.\n\t\t// This helps keep app credentials constant,\n\t\t// Avoiding having to keep tabs on what scopes are authorized\n\t\tif (session && 'scope' in session && session.scope instanceof String) {\n\t\t\tscope.push(session.scope);\n\t\t}\n\n\t\t// Join and Split again\n\t\tscope = scope.join(',').split(SCOPE_SPLIT);\n\n\t\t// Format remove duplicates and empty values\n\t\tscope = utils.unique(scope).filter(filterEmpty);\n\n\t\t// Save the the scopes to the state with the names that they were requested with.\n\t\tp.qs.state.scope = scope.join(',');\n\n\t\t// Map scopes to the providers naming convention\n\t\tscope = scope.map(function(item) {\n\t\t\t// Does this have a mapping?\n\t\t\treturn (item in scopeMap) ? scopeMap[item] : item;\n\t\t});\n\n\t\t// Stringify and Arrayify so that double mapped scopes are given the chance to be formatted\n\t\tscope = scope.join(',').split(SCOPE_SPLIT);\n\n\t\t// Again...\n\t\t// Format remove duplicates and empty values\n\t\tscope = utils.unique(scope).filter(filterEmpty);\n\n\t\t// Join with the expected scope delimiter into a string\n\t\tp.qs.scope = scope.join(provider.scope_delim || ',');\n\n\t\t// Is the user already signed in with the appropriate scopes, valid access_token?\n\t\tif (opts.force === false) {\n\n\t\t\tif (session && 'access_token' in session && session.access_token && 'expires' in session && session.expires > ((new Date()).getTime() / 1e3)) {\n\t\t\t\t// What is different about the scopes in the session vs the scopes in the new login?\n\t\t\t\tvar diff = utils.diff((session.scope || '').split(SCOPE_SPLIT), (p.qs.state.scope || '').split(SCOPE_SPLIT));\n\t\t\t\tif (diff.length === 0) {\n\n\t\t\t\t\t// OK trigger the callback\n\t\t\t\t\tpromise.fulfill({\n\t\t\t\t\t\tunchanged: true,\n\t\t\t\t\t\tnetwork: p.network,\n\t\t\t\t\t\tauthResponse: session\n\t\t\t\t\t});\n\n\t\t\t\t\t// Nothing has changed\n\t\t\t\t\treturn promise;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Page URL\n\t\tif (opts.display === 'page' && opts.page_uri) {\n\t\t\t// Add a page location, place to endup after session has authenticated\n\t\t\tp.qs.state.page_uri = utils.url(opts.page_uri).href;\n\t\t}\n\n\t\t// Bespoke\n\t\t// Override login querystrings from auth_options\n\t\tif ('login' in provider && typeof (provider.login) === 'function') {\n\t\t\t// Format the paramaters according to the providers formatting function\n\t\t\tprovider.login(p);\n\t\t}\n\n\t\t// Add OAuth to state\n\t\t// Where the service is going to take advantage of the oauth_proxy\n\t\tif (!/\\btoken\\b/.test(responseType) ||\n\t\tparseInt(provider.oauth.version, 10) < 2 ||\n\t\t(opts.display === 'none' && provider.oauth.grant && session && session.refresh_token)) {\n\n\t\t\t// Add the oauth endpoints\n\t\t\tp.qs.state.oauth = provider.oauth;\n\n\t\t\t// Add the proxy url\n\t\t\tp.qs.state.oauth_proxy = opts.oauth_proxy;\n\n\t\t}\n\n\t\t// Convert state to a string\n\t\tp.qs.state = encodeURIComponent(JSON.stringify(p.qs.state));\n\n\t\t// URL\n\t\tif (parseInt(provider.oauth.version, 10) === 1) {\n\n\t\t\t// Turn the request to the OAuth Proxy for 3-legged auth\n\t\t\turl = utils.qs(opts.oauth_proxy, p.qs, encodeFunction);\n\t\t}\n\n\t\t// Refresh token\n\t\telse if (opts.display === 'none' && provider.oauth.grant && session && session.refresh_token) {\n\n\t\t\t// Add the refresh_token to the request\n\t\t\tp.qs.refresh_token = session.refresh_token;\n\n\t\t\t// Define the request path\n\t\t\turl = utils.qs(opts.oauth_proxy, p.qs, encodeFunction);\n\t\t}\n\t\telse {\n\t\t\turl = utils.qs(provider.oauth.auth, p.qs, encodeFunction);\n\t\t}\n\n\t\t// Broadcast this event as an auth:init\n\t\temit('auth.init', p);\n\n\t\t// Execute\n\t\t// Trigger how we want self displayed\n\t\tif (opts.display === 'none') {\n\t\t\t// Sign-in in the background, iframe\n\t\t\tutils.iframe(url, redirectUri);\n\t\t}\n\n\t\t// Triggering popup?\n\t\telse if (opts.display === 'popup') {\n\n\t\t\tvar popup = utils.popup(url, redirectUri, opts.popup);\n\n\t\t\tvar timer = setInterval(function() {\n\t\t\t\tif (!popup || popup.closed) {\n\t\t\t\t\tclearInterval(timer);\n\t\t\t\t\tif (!promise.state) {\n\n\t\t\t\t\t\tvar response = error('cancelled', 'Login has been cancelled');\n\n\t\t\t\t\t\tif (!popup) {\n\t\t\t\t\t\t\tresponse = error('blocked', 'Popup was blocked');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tresponse.network = p.network;\n\n\t\t\t\t\t\tpromise.reject(response);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, 100);\n\t\t}\n\n\t\telse {\n\t\t\twindow.location = url;\n\t\t}\n\n\t\treturn promise.proxy;\n\n\t\tfunction encodeFunction(s) {return s;}\n\n\t\tfunction filterEmpty(s) {return !!s;}\n\t},\n\n\t// Remove any data associated with a given service\n\t// @param string name of the service\n\t// @param function callback\n\tlogout: function() {\n\n\t\tvar _this = this;\n\t\tvar utils = _this.utils;\n\t\tvar error = utils.error;\n\n\t\t// Create a new promise\n\t\tvar promise = utils.Promise();\n\n\t\tvar p = utils.args({name:'s', options: 'o', callback: 'f'}, arguments);\n\n\t\tp.options = p.options || {};\n\n\t\t// Add callback to events\n\t\tpromise.proxy.then(p.callback, p.callback);\n\n\t\t// Trigger an event on the global listener\n\t\tfunction emit(s, value) {\n\t\t\thello.emit(s, value);\n\t\t}\n\n\t\tpromise.proxy.then(emit.bind(this, 'auth.logout auth'), emit.bind(this, 'error'));\n\n\t\t// Network\n\t\tp.name = p.name || this.settings.default_service;\n\t\tp.authResponse = utils.store(p.name);\n\n\t\tif (p.name && !(p.name in _this.services)) {\n\n\t\t\tpromise.reject(error('invalid_network', 'The network was unrecognized'));\n\n\t\t}\n\t\telse if (p.name && p.authResponse) {\n\n\t\t\t// Define the callback\n\t\t\tvar callback = function(opts) {\n\n\t\t\t\t// Remove from the store\n\t\t\t\tutils.store(p.name, null);\n\n\t\t\t\t// Emit events by default\n\t\t\t\tpromise.fulfill(hello.utils.merge({network:p.name}, opts || {}));\n\t\t\t};\n\n\t\t\t// Run an async operation to remove the users session\n\t\t\tvar _opts = {};\n\t\t\tif (p.options.force) {\n\t\t\t\tvar logout = _this.services[p.name].logout;\n\t\t\t\tif (logout) {\n\t\t\t\t\t// Convert logout to URL string,\n\t\t\t\t\t// If no string is returned, then this function will handle the logout async style\n\t\t\t\t\tif (typeof (logout) === 'function') {\n\t\t\t\t\t\tlogout = logout(callback, p);\n\t\t\t\t\t}\n\n\t\t\t\t\t// If logout is a string then assume URL and open in iframe.\n\t\t\t\t\tif (typeof (logout) === 'string') {\n\t\t\t\t\t\tutils.iframe(logout);\n\t\t\t\t\t\t_opts.force = null;\n\t\t\t\t\t\t_opts.message = 'Logout success on providers site was indeterminate';\n\t\t\t\t\t}\n\t\t\t\t\telse if (logout === undefined) {\n\t\t\t\t\t\t// The callback function will handle the response.\n\t\t\t\t\t\treturn promise.proxy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove local credentials\n\t\t\tcallback(_opts);\n\t\t}\n\t\telse {\n\t\t\tpromise.reject(error('invalid_session', 'There was no session to remove'));\n\t\t}\n\n\t\treturn promise.proxy;\n\t},\n\n\t// Returns all the sessions that are subscribed too\n\t// @param string optional, name of the service to get information about.\n\tgetAuthResponse: function(service) {\n\n\t\t// If the service doesn't exist\n\t\tservice = service || this.settings.default_service;\n\n\t\tif (!service || !(service in this.services)) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn this.utils.store(service) || null;\n\t},\n\n\t// Events: placeholder for the events\n\tevents: {}\n});\n\n// Core utilities\nhello.utils.extend(hello.utils, {\n\n\t// Error\n\terror: function(code, message) {\n\t\treturn {\n\t\t\terror: {\n\t\t\t\tcode: code,\n\t\t\t\tmessage: message\n\t\t\t}\n\t\t};\n\t},\n\n\t// Append the querystring to a url\n\t// @param string url\n\t// @param object parameters\n\tqs: function(url, params, formatFunction) {\n\n\t\tif (params) {\n\n\t\t\t// Set default formatting function\n\t\t\tformatFunction = formatFunction || encodeURIComponent;\n\n\t\t\t// Override the items in the URL which already exist\n\t\t\tfor (var x in params) {\n\t\t\t\tvar str = '([\\\\?\\\\&])' + x + '=[^\\\\&]*';\n\t\t\t\tvar reg = new RegExp(str);\n\t\t\t\tif (url.match(reg)) {\n\t\t\t\t\turl = url.replace(reg, '$1' + x + '=' + formatFunction(params[x]));\n\t\t\t\t\tdelete params[x];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!this.isEmpty(params)) {\n\t\t\treturn url + (url.indexOf('?') > -1 ? '&' : '?') + this.param(params, formatFunction);\n\t\t}\n\n\t\treturn url;\n\t},\n\n\t// Param\n\t// Explode/encode the parameters of an URL string/object\n\t// @param string s, string to decode\n\tparam: function(s, formatFunction) {\n\t\tvar b;\n\t\tvar a = {};\n\t\tvar m;\n\n\t\tif (typeof (s) === 'string') {\n\n\t\t\tformatFunction = formatFunction || decodeURIComponent;\n\n\t\t\tm = s.replace(/^[\\#\\?]/, '').match(/([^=\\/\\&]+)=([^\\&]+)/g);\n\t\t\tif (m) {\n\t\t\t\tfor (var i = 0; i < m.length; i++) {\n\t\t\t\t\tb = m[i].match(/([^=]+)=(.*)/);\n\t\t\t\t\ta[b[1]] = formatFunction(b[2]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\n\t\t\tformatFunction = formatFunction || encodeURIComponent;\n\n\t\t\tvar o = s;\n\n\t\t\ta = [];\n\n\t\t\tfor (var x in o) {if (o.hasOwnProperty(x)) {\n\t\t\t\tif (o.hasOwnProperty(x)) {\n\t\t\t\t\ta.push([x, o[x] === '?' ? '?' : formatFunction(o[x])].join('='));\n\t\t\t\t}\n\t\t\t}}\n\n\t\t\treturn a.join('&');\n\t\t}\n\t},\n\n\t// Local storage facade\n\tstore: (function() {\n\n\t\tvar a = ['localStorage', 'sessionStorage'];\n\t\tvar i = -1;\n\t\tvar prefix = 'test';\n\n\t\t// Set LocalStorage\n\t\tvar localStorage;\n\n\t\twhile (a[++i]) {\n\t\t\ttry {\n\t\t\t\t// In Chrome with cookies blocked, calling localStorage throws an error\n\t\t\t\tlocalStorage = window[a[i]];\n\t\t\t\tlocalStorage.setItem(prefix + i, i);\n\t\t\t\tlocalStorage.removeItem(prefix + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tlocalStorage = null;\n\t\t\t}\n\t\t}\n\n\t\tif (!localStorage) {\n\n\t\t\tvar cache = null;\n\n\t\t\tlocalStorage = {\n\t\t\t\tgetItem: function(prop) {\n\t\t\t\t\tprop = prop + '=';\n\t\t\t\t\tvar m = document.cookie.split(';');\n\t\t\t\t\tfor (var i = 0; i < m.length; i++) {\n\t\t\t\t\t\tvar _m = m[i].replace(/(^\\s+|\\s+$)/, '');\n\t\t\t\t\t\tif (_m && _m.indexOf(prop) === 0) {\n\t\t\t\t\t\t\treturn _m.substr(prop.length);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn cache;\n\t\t\t\t},\n\n\t\t\t\tsetItem: function(prop, value) {\n\t\t\t\t\tcache = value;\n\t\t\t\t\tdocument.cookie = prop + '=' + value;\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Fill the cache up\n\t\t\tcache = localStorage.getItem('hello');\n\t\t}\n\n\t\tfunction get() {\n\t\t\tvar json = {};\n\t\t\ttry {\n\t\t\t\tjson = JSON.parse(localStorage.getItem('hello')) || {};\n\t\t\t}\n\t\t\tcatch (e) {}\n\n\t\t\treturn json;\n\t\t}\n\n\t\tfunction set(json) {\n\t\t\tlocalStorage.setItem('hello', JSON.stringify(json));\n\t\t}\n\n\t\t// Check if the browser support local storage\n\t\treturn function(name, value, days) {\n\n\t\t\t// Local storage\n\t\t\tvar json = get();\n\n\t\t\tif (name && value === undefined) {\n\t\t\t\treturn json[name] || null;\n\t\t\t}\n\t\t\telse if (name && value === null) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete json[name];\n\t\t\t\t}\n\t\t\t\tcatch (e) {\n\t\t\t\t\tjson[name] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (name) {\n\t\t\t\tjson[name] = value;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn json;\n\t\t\t}\n\n\t\t\tset(json);\n\n\t\t\treturn json || null;\n\t\t};\n\n\t})(),\n\n\t// Create and Append new DOM elements\n\t// @param node string\n\t// @param attr object literal\n\t// @param dom/string\n\tappend: function(node, attr, target) {\n\n\t\tvar n = typeof (node) === 'string' ? document.createElement(node) : node;\n\n\t\tif (typeof (attr) === 'object') {\n\t\t\tif ('tagName' in attr) {\n\t\t\t\ttarget = attr;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor (var x in attr) {if (attr.hasOwnProperty(x)) {\n\t\t\t\t\tif (typeof (attr[x]) === 'object') {\n\t\t\t\t\t\tfor (var y in attr[x]) {if (attr[x].hasOwnProperty(y)) {\n\t\t\t\t\t\t\tn[x][y] = attr[x][y];\n\t\t\t\t\t\t}}\n\t\t\t\t\t}\n\t\t\t\t\telse if (x === 'html') {\n\t\t\t\t\t\tn.innerHTML = attr[x];\n\t\t\t\t\t}\n\n\t\t\t\t\t// IE doesn't like us setting methods with setAttribute\n\t\t\t\t\telse if (!/^on/.test(x)) {\n\t\t\t\t\t\tn.setAttribute(x, attr[x]);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tn[x] = attr[x];\n\t\t\t\t\t}\n\t\t\t\t}}\n\t\t\t}\n\t\t}\n\n\t\tif (target === 'body') {\n\t\t\t(function self() {\n\t\t\t\tif (document.body) {\n\t\t\t\t\tdocument.body.appendChild(n);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsetTimeout(self, 16);\n\t\t\t\t}\n\t\t\t})();\n\t\t}\n\t\telse if (typeof (target) === 'object') {\n\t\t\ttarget.appendChild(n);\n\t\t}\n\t\telse if (typeof (target) === 'string') {\n\t\t\tdocument.getElementsByTagName(target)[0].appendChild(n);\n\t\t}\n\n\t\treturn n;\n\t},\n\n\t// An easy way to create a hidden iframe\n\t// @param string src\n\tiframe: function(src) {\n\t\tthis.append('iframe', {src: src, style: {position:'absolute', left: '-1000px', bottom: 0, height: '1px', width: '1px'}}, 'body');\n\t},\n\n\t// Recursive merge two objects into one, second parameter overides the first\n\t// @param a array\n\tmerge: function(/* Args: a, b, c, .. n */) {\n\t\tvar args = Array.prototype.slice.call(arguments);\n\t\targs.unshift({});\n\t\treturn this.extend.apply(null, args);\n\t},\n\n\t// Makes it easier to assign parameters, where some are optional\n\t// @param o object\n\t// @param a arguments\n\targs: function(o, args) {\n\n\t\tvar p = {};\n\t\tvar i = 0;\n\t\tvar t = null;\n\t\tvar x = null;\n\n\t\t// 'x' is the first key in the list of object parameters\n\t\tfor (x in o) {if (o.hasOwnProperty(x)) {\n\t\t\tbreak;\n\t\t}}\n\n\t\t// Passing in hash object of arguments?\n\t\t// Where the first argument can't be an object\n\t\tif ((args.length === 1) && (typeof (args[0]) === 'object') && o[x] != 'o!') {\n\n\t\t\t// Could this object still belong to a property?\n\t\t\t// Check the object keys if they match any of the property keys\n\t\t\tfor (x in args[0]) {if (o.hasOwnProperty(x)) {\n\t\t\t\t// Does this key exist in the property list?\n\t\t\t\tif (x in o) {\n\t\t\t\t\t// Yes this key does exist so its most likely this function has been invoked with an object parameter\n\t\t\t\t\t// Return first argument as the hash of all arguments\n\t\t\t\t\treturn args[0];\n\t\t\t\t}\n\t\t\t}}\n\t\t}\n\n\t\t// Else loop through and account for the missing ones.\n\t\tfor (x in o) {if (o.hasOwnProperty(x)) {\n\n\t\t\tt = typeof (args[i]);\n\n\t\t\tif ((typeof (o[x]) === 'function' && o[x].test(args[i])) || (typeof (o[x]) === 'string' && (\n\t\t\t(o[x].indexOf('s') > -1 && t === 'string') ||\n\t\t\t(o[x].indexOf('o') > -1 && t === 'object') ||\n\t\t\t(o[x].indexOf('i') > -1 && t === 'number') ||\n\t\t\t(o[x].indexOf('a') > -1 && t === 'object') ||\n\t\t\t(o[x].indexOf('f') > -1 && t === 'function')\n\t\t\t))\n\t\t\t) {\n\t\t\t\tp[x] = args[i++];\n\t\t\t}\n\n\t\t\telse if (typeof (o[x]) === 'string' && o[x].indexOf('!') > -1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}}\n\n\t\treturn p;\n\t},\n\n\t// Returns a URL instance\n\turl: function(path) {\n\n\t\t// If the path is empty\n\t\tif (!path) {\n\t\t\treturn window.location;\n\t\t}\n\n\t\t// Chrome and FireFox support new URL() to extract URL objects\n\t\telse if (window.URL && URL instanceof Function && URL.length !== 0) {\n\t\t\treturn new URL(path, window.location);\n\t\t}\n\n\t\t// Ugly shim, it works!\n\t\telse {\n\t\t\tvar a = document.createElement('a');\n\t\t\ta.href = path;\n\t\t\treturn a.cloneNode(false);\n\t\t}\n\t},\n\n\tdiff: function(a, b) {\n\t\treturn b.filter(function(item) {\n\t\t\treturn a.indexOf(item) === -1;\n\t\t});\n\t},\n\n\t// Get the different hash of properties unique to `a`, and not in `b`\n\tdiffKey: function(a, b) {\n\t\tif (a || !b) {\n\t\t\tvar r = {};\n\t\t\tfor (var x in a) {\n\t\t\t\t// Does the property not exist?\n\t\t\t\tif (!(x in b)) {\n\t\t\t\t\tr[x] = a[x];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn r;\n\t\t}\n\n\t\treturn a;\n\t},\n\n\t// Unique\n\t// Remove duplicate and null values from an array\n\t// @param a array\n\tunique: function(a) {\n\t\tif (!Array.isArray(a)) { return []; }\n\n\t\treturn a.filter(function(item, index) {\n\t\t\t// Is this the first location of item\n\t\t\treturn a.indexOf(item) === index;\n\t\t});\n\t},\n\n\tisEmpty: function(obj) {\n\n\t\t// Scalar\n\t\tif (!obj)\n\t\t\treturn true;\n\n\t\t// Array\n\t\tif (Array.isArray(obj)) {\n\t\t\treturn !obj.length;\n\t\t}\n\t\telse if (typeof (obj) === 'object') {\n\t\t\t// Object\n\t\t\tfor (var key in obj) {\n\t\t\t\tif (obj.hasOwnProperty(key)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t},\n\n\t//jscs:disable\n\n\t/*!\n\t ** Thenable -- Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable\n\t ** Copyright (c) 2013-2014 Ralf S. Engelschall \n\t ** Licensed under The MIT License \n\t ** Source-Code distributed on \n\t */\n\tPromise: (function(){\n\t\t/* promise states [Promises/A+ 2.1] */\n\t\tvar STATE_PENDING = 0; /* [Promises/A+ 2.1.1] */\n\t\tvar STATE_FULFILLED = 1; /* [Promises/A+ 2.1.2] */\n\t\tvar STATE_REJECTED = 2; /* [Promises/A+ 2.1.3] */\n\n\t\t/* promise object constructor */\n\t\tvar api = function (executor) {\n\t\t\t/* optionally support non-constructor/plain-function call */\n\t\t\tif (!(this instanceof api))\n\t\t\t\treturn new api(executor);\n\n\t\t\t/* initialize object */\n\t\t\tthis.id = \"Thenable/1.0.6\";\n\t\t\tthis.state = STATE_PENDING; /* initial state */\n\t\t\tthis.fulfillValue = undefined; /* initial value */ /* [Promises/A+ 1.3, 2.1.2.2] */\n\t\t\tthis.rejectReason = undefined; /* initial reason */ /* [Promises/A+ 1.5, 2.1.3.2] */\n\t\t\tthis.onFulfilled = []; /* initial handlers */\n\t\t\tthis.onRejected = []; /* initial handlers */\n\n\t\t\t/* provide optional information-hiding proxy */\n\t\t\tthis.proxy = {\n\t\t\t\tthen: this.then.bind(this)\n\t\t\t};\n\n\t\t\t/* support optional executor function */\n\t\t\tif (typeof executor === \"function\")\n\t\t\t\texecutor.call(this, this.fulfill.bind(this), this.reject.bind(this));\n\t\t};\n\n\t\t/* promise API methods */\n\t\tapi.prototype = {\n\t\t\t/* promise resolving methods */\n\t\t\tfulfill: function (value) { return deliver(this, STATE_FULFILLED, \"fulfillValue\", value); },\n\t\t\treject: function (value) { return deliver(this, STATE_REJECTED, \"rejectReason\", value); },\n\n\t\t\t/* \"The then Method\" [Promises/A+ 1.1, 1.2, 2.2] */\n\t\t\tthen: function (onFulfilled, onRejected) {\n\t\t\t\tvar curr = this;\n\t\t\t\tvar next = new api(); /* [Promises/A+ 2.2.7] */\n\t\t\t\tcurr.onFulfilled.push(\n\t\t\t\t\tresolver(onFulfilled, next, \"fulfill\")); /* [Promises/A+ 2.2.2/2.2.6] */\n\t\t\t\tcurr.onRejected.push(\n\t\t\t\t\tresolver(onRejected, next, \"reject\" )); /* [Promises/A+ 2.2.3/2.2.6] */\n\t\t\t\texecute(curr);\n\t\t\t\treturn next.proxy; /* [Promises/A+ 2.2.7, 3.3] */\n\t\t\t}\n\t\t};\n\n\t\t/* deliver an action */\n\t\tvar deliver = function (curr, state, name, value) {\n\t\t\tif (curr.state === STATE_PENDING) {\n\t\t\t\tcurr.state = state; /* [Promises/A+ 2.1.2.1, 2.1.3.1] */\n\t\t\t\tcurr[name] = value; /* [Promises/A+ 2.1.2.2, 2.1.3.2] */\n\t\t\t\texecute(curr);\n\t\t\t}\n\t\t\treturn curr;\n\t\t};\n\n\t\t/* execute all handlers */\n\t\tvar execute = function (curr) {\n\t\t\tif (curr.state === STATE_FULFILLED)\n\t\t\t\texecute_handlers(curr, \"onFulfilled\", curr.fulfillValue);\n\t\t\telse if (curr.state === STATE_REJECTED)\n\t\t\t\texecute_handlers(curr, \"onRejected\", curr.rejectReason);\n\t\t};\n\n\t\t/* execute particular set of handlers */\n\t\tvar execute_handlers = function (curr, name, value) {\n\t\t\t/* global process: true */\n\t\t\t/* global setImmediate: true */\n\t\t\t/* global setTimeout: true */\n\n\t\t\t/* short-circuit processing */\n\t\t\tif (curr[name].length === 0)\n\t\t\t\treturn;\n\n\t\t\t/* iterate over all handlers, exactly once */\n\t\t\tvar handlers = curr[name];\n\t\t\tcurr[name] = []; /* [Promises/A+ 2.2.2.3, 2.2.3.3] */\n\t\t\tvar func = function () {\n\t\t\t\tfor (var i = 0; i < handlers.length; i++)\n\t\t\t\t\thandlers[i](value); /* [Promises/A+ 2.2.5] */\n\t\t\t};\n\n\t\t\t/* execute procedure asynchronously */ /* [Promises/A+ 2.2.4, 3.1] */\n\t\t\tif (typeof process === \"object\" && typeof process.nextTick === \"function\")\n\t\t\t\tprocess.nextTick(func);\n\t\t\telse if (typeof setImmediate === \"function\")\n\t\t\t\tsetImmediate(func);\n\t\t\telse\n\t\t\t\tsetTimeout(func, 0);\n\t\t};\n\n\t\t/* generate a resolver function */\n\t\tvar resolver = function (cb, next, method) {\n\t\t\treturn function (value) {\n\t\t\t\tif (typeof cb !== \"function\") /* [Promises/A+ 2.2.1, 2.2.7.3, 2.2.7.4] */\n\t\t\t\t\tnext[method].call(next, value); /* [Promises/A+ 2.2.7.3, 2.2.7.4] */\n\t\t\t\telse {\n\t\t\t\t\tvar result;\n\t\t\t\t\ttry { result = cb(value); } /* [Promises/A+ 2.2.2.1, 2.2.3.1, 2.2.5, 3.2] */\n\t\t\t\t\tcatch (e) {\n\t\t\t\t\t\tnext.reject(e); /* [Promises/A+ 2.2.7.2] */\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tresolve(next, result); /* [Promises/A+ 2.2.7.1] */\n\t\t\t\t}\n\t\t\t};\n\t\t};\n\n\t\t/* \"Promise Resolution Procedure\" */ /* [Promises/A+ 2.3] */\n\t\tvar resolve = function (promise, x) {\n\t\t\t/* sanity check arguments */ /* [Promises/A+ 2.3.1] */\n\t\t\tif (promise === x || promise.proxy === x) {\n\t\t\t\tpromise.reject(new TypeError(\"cannot resolve promise with itself\"));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* surgically check for a \"then\" method\n\t\t\t\t(mainly to just call the \"getter\" of \"then\" only once) */\n\t\t\tvar then;\n\t\t\tif ((typeof x === \"object\" && x !== null) || typeof x === \"function\") {\n\t\t\t\ttry { then = x.then; } /* [Promises/A+ 2.3.3.1, 3.5] */\n\t\t\t\tcatch (e) {\n\t\t\t\t\tpromise.reject(e); /* [Promises/A+ 2.3.3.2] */\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* handle own Thenables [Promises/A+ 2.3.2]\n\t\t\t\tand similar \"thenables\" [Promises/A+ 2.3.3] */\n\t\t\tif (typeof then === \"function\") {\n\t\t\t\tvar resolved = false;\n\t\t\t\ttry {\n\t\t\t\t\t/* call retrieved \"then\" method */ /* [Promises/A+ 2.3.3.3] */\n\t\t\t\t\tthen.call(x,\n\t\t\t\t\t\t/* resolvePromise */ /* [Promises/A+ 2.3.3.3.1] */\n\t\t\t\t\t\tfunction (y) {\n\t\t\t\t\t\t\tif (resolved) return; resolved = true; /* [Promises/A+ 2.3.3.3.3] */\n\t\t\t\t\t\t\tif (y === x) /* [Promises/A+ 3.6] */\n\t\t\t\t\t\t\t\tpromise.reject(new TypeError(\"circular thenable chain\"));\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tresolve(promise, y);\n\t\t\t\t\t\t},\n\n\t\t\t\t\t\t/* rejectPromise */ /* [Promises/A+ 2.3.3.3.2] */\n\t\t\t\t\t\tfunction (r) {\n\t\t\t\t\t\t\tif (resolved) return; resolved = true; /* [Promises/A+ 2.3.3.3.3] */\n\t\t\t\t\t\t\tpromise.reject(r);\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tcatch (e) {\n\t\t\t\t\tif (!resolved) /* [Promises/A+ 2.3.3.3.3] */\n\t\t\t\t\t\tpromise.reject(e); /* [Promises/A+ 2.3.3.3.4] */\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* handle other values */\n\t\t\tpromise.fulfill(x); /* [Promises/A+ 2.3.4, 2.3.3.4] */\n\t\t};\n\n\t\t/* export API */\n\t\treturn api;\n\t})(),\n\n\t//jscs:enable\n\n\t// Event\n\t// A contructor superclass for adding event menthods, on, off, emit.\n\tEvent: function() {\n\n\t\tvar separator = /[\\s\\,]+/;\n\n\t\t// If this doesn't support getPrototype then we can't get prototype.events of the parent\n\t\t// So lets get the current instance events, and add those to a parent property\n\t\tthis.parent = {\n\t\t\tevents: this.events,\n\t\t\tfindEvents: this.findEvents,\n\t\t\tparent: this.parent,\n\t\t\tutils: this.utils\n\t\t};\n\n\t\tthis.events = {};\n\n\t\t// On, subscribe to events\n\t\t// @param evt string\n\t\t// @param callback function\n\t\tthis.on = function(evt, callback) {\n\n\t\t\tif (callback && typeof (callback) === 'function') {\n\t\t\t\tvar a = evt.split(separator);\n\t\t\t\tfor (var i = 0; i < a.length; i++) {\n\n\t\t\t\t\t// Has this event already been fired on this instance?\n\t\t\t\t\tthis.events[a[i]] = [callback].concat(this.events[a[i]] || []);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this;\n\t\t};\n\n\t\t// Off, unsubscribe to events\n\t\t// @param evt string\n\t\t// @param callback function\n\t\tthis.off = function(evt, callback) {\n\n\t\t\tthis.findEvents(evt, function(name, index) {\n\t\t\t\tif (!callback || this.events[name][index] === callback) {\n\t\t\t\t\tthis.events[name][index] = null;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn this;\n\t\t};\n\n\t\t// Emit\n\t\t// Triggers any subscribed events\n\t\tthis.emit = function(evt /*, data, ... */) {\n\n\t\t\t// Get arguments as an Array, knock off the first one\n\t\t\tvar args = Array.prototype.slice.call(arguments, 1);\n\t\t\targs.push(evt);\n\n\t\t\t// Handler\n\t\t\tvar handler = function(name, index) {\n\n\t\t\t\t// Replace the last property with the event name\n\t\t\t\targs[args.length - 1] = (name === '*' ? evt : name);\n\n\t\t\t\t// Trigger\n\t\t\t\tthis.events[name][index].apply(this, args);\n\t\t\t};\n\n\t\t\t// Find the callbacks which match the condition and call\n\t\t\tvar _this = this;\n\t\t\twhile (_this && _this.findEvents) {\n\n\t\t\t\t// Find events which match\n\t\t\t\t_this.findEvents(evt + ',*', handler);\n\t\t\t\t_this = _this.parent;\n\t\t\t}\n\n\t\t\treturn this;\n\t\t};\n\n\t\t//\n\t\t// Easy functions\n\t\tthis.emitAfter = function() {\n\t\t\tvar _this = this;\n\t\t\tvar args = arguments;\n\t\t\tsetTimeout(function() {\n\t\t\t\t_this.emit.apply(_this, args);\n\t\t\t}, 0);\n\n\t\t\treturn this;\n\t\t};\n\n\t\tthis.findEvents = function(evt, callback) {\n\n\t\t\tvar a = evt.split(separator);\n\n\t\t\tfor (var name in this.events) {if (this.events.hasOwnProperty(name)) {\n\n\t\t\t\tif (a.indexOf(name) > -1) {\n\n\t\t\t\t\tfor (var i = 0; i < this.events[name].length; i++) {\n\n\t\t\t\t\t\t// Does the event handler exist?\n\t\t\t\t\t\tif (this.events[name][i]) {\n\t\t\t\t\t\t\t// Emit on the local instance of this\n\t\t\t\t\t\t\tcallback.call(this, name, i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}}\n\t\t};\n\n\t\treturn this;\n\t},\n\n\t// Global Events\n\t// Attach the callback to the window object\n\t// Return its unique reference\n\tglobalEvent: function(callback, guid) {\n\t\t// If the guid has not been supplied then create a new one.\n\t\tguid = guid || '_hellojs_' + parseInt(Math.random() * 1e12, 10).toString(36);\n\n\t\t// Define the callback function\n\t\twindow[guid] = function() {\n\t\t\t// Trigger the callback\n\t\t\ttry {\n\t\t\t\tif (callback.apply(this, arguments)) {\n\t\t\t\t\tdelete window[guid];\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tconsole.error(e);\n\t\t\t}\n\t\t};\n\n\t\treturn guid;\n\t},\n\n\t// Trigger a clientside popup\n\t// This has been augmented to support PhoneGap\n\tpopup: function(url, redirectUri, options) {\n\n\t\tvar documentElement = document.documentElement;\n\n\t\t// Multi Screen Popup Positioning (http://stackoverflow.com/a/16861050)\n\t\t// Credit: http://www.xtf.dk/2011/08/center-new-popup-window-even-on.html\n\t\t// Fixes dual-screen position Most browsers Firefox\n\n\t\tif (options.height) {\n\t\t\tvar dualScreenTop = window.screenTop !== undefined ? window.screenTop : screen.top;\n\t\t\tvar height = screen.height || window.innerHeight || documentElement.clientHeight;\n\t\t\toptions.top = parseInt((height - options.height) / 2, 10) + dualScreenTop;\n\t\t}\n\n\t\tif (options.width) {\n\t\t\tvar dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left;\n\t\t\tvar width = screen.width || window.innerWidth || documentElement.clientWidth;\n\t\t\toptions.left = parseInt((width - options.width) / 2, 10) + dualScreenLeft;\n\t\t}\n\n\t\t// Convert options into an array\n\t\tvar optionsArray = [];\n\t\tObject.keys(options).forEach(function(name) {\n\t\t\tvar value = options[name];\n\t\t\toptionsArray.push(name + (value !== null ? '=' + value : ''));\n\t\t});\n\n\t\t// Call the open() function with the initial path\n\t\t//\n\t\t// OAuth redirect, fixes URI fragments from being lost in Safari\n\t\t// (URI Fragments within 302 Location URI are lost over HTTPS)\n\t\t// Loading the redirect.html before triggering the OAuth Flow seems to fix it.\n\t\t//\n\t\t// Firefox decodes URL fragments when calling location.hash.\n\t\t// - This is bad if the value contains break points which are escaped\n\t\t// - Hence the url must be encoded twice as it contains breakpoints.\n\t\tif (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) {\n\t\t\turl = redirectUri + '#oauth_redirect=' + encodeURIComponent(encodeURIComponent(url));\n\t\t}\n\n\t\tvar popup = window.open(\n\t\t\turl,\n\t\t\t'_blank',\n\t\t\toptionsArray.join(',')\n\t\t);\n\n\t\tif (popup && popup.focus) {\n\t\t\tpopup.focus();\n\t\t}\n\n\t\treturn popup;\n\t},\n\n\t// OAuth and API response handler\n\tresponseHandler: function(window, parent) {\n\n\t\tvar _this = this;\n\t\tvar p;\n\t\tvar location = window.location;\n\n\t\t// Is this an auth relay message which needs to call the proxy?\n\t\tp = _this.param(location.search);\n\n\t\t// OAuth2 or OAuth1 server response?\n\t\tif (p && p.state && (p.code || p.oauth_token)) {\n\n\t\t\tvar state = JSON.parse(p.state);\n\n\t\t\t// Add this path as the redirect_uri\n\t\t\tp.redirect_uri = state.redirect_uri || location.href.replace(/[\\?\\#].*$/, '');\n\n\t\t\t// Redirect to the host\n\t\t\tvar path = state.oauth_proxy + '?' + _this.param(p);\n\n\t\t\tlocation.assign(path);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Save session, from redirected authentication\n\t\t// #access_token has come in?\n\t\t//\n\t\t// FACEBOOK is returning auth errors within as a query_string... thats a stickler for consistency.\n\t\t// SoundCloud is the state in the querystring and the token in the hashtag, so we'll mix the two together\n\n\t\tp = _this.merge(_this.param(location.search || ''), _this.param(location.hash || ''));\n\n\t\t// If p.state\n\t\tif (p && 'state' in p) {\n\n\t\t\t// Remove any addition information\n\t\t\t// E.g. p.state = 'facebook.page';\n\t\t\ttry {\n\t\t\t\tvar a = JSON.parse(p.state);\n\t\t\t\t_this.extend(p, a);\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tvar stateDecoded = decodeURIComponent(p.state);\n\t\t\t\ttry {\n\t\t\t\t\tvar b = JSON.parse(stateDecoded);\n\t\t\t\t\t_this.extend(p, b);\n\t\t\t\t}\n\t\t\t\tcatch (e) {\n\t\t\t\t\tconsole.error('Could not decode state parameter');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Access_token?\n\t\t\tif (('access_token' in p && p.access_token) && p.network) {\n\n\t\t\t\tif (!p.expires_in || parseInt(p.expires_in, 10) === 0) {\n\t\t\t\t\t// If p.expires_in is unset, set to 0\n\t\t\t\t\tp.expires_in = 0;\n\t\t\t\t}\n\n\t\t\t\tp.expires_in = parseInt(p.expires_in, 10);\n\t\t\t\tp.expires = ((new Date()).getTime() / 1e3) + (p.expires_in || (60 * 60 * 24 * 365));\n\n\t\t\t\t// Lets use the \"state\" to assign it to one of our networks\n\t\t\t\tauthCallback(p, window, parent);\n\t\t\t}\n\n\t\t\t// Error=?\n\t\t\t// &error_description=?\n\t\t\t// &state=?\n\t\t\telse if (('error' in p && p.error) && p.network) {\n\n\t\t\t\tp.error = {\n\t\t\t\t\tcode: p.error,\n\t\t\t\t\tmessage: p.error_message || p.error_description\n\t\t\t\t};\n\n\t\t\t\t// Let the state handler handle it\n\t\t\t\tauthCallback(p, window, parent);\n\t\t\t}\n\n\t\t\t// API call, or a cancelled login\n\t\t\t// Result is serialized JSON string\n\t\t\telse if (p.callback && p.callback in parent) {\n\n\t\t\t\t// Trigger a function in the parent\n\t\t\t\tvar res = 'result' in p && p.result ? JSON.parse(p.result) : false;\n\n\t\t\t\t// Trigger the callback on the parent\n\t\t\t\tcallback(parent, p.callback)(res);\n\t\t\t\tcloseWindow();\n\t\t\t}\n\n\t\t\t// If this page is still open\n\t\t\tif (p.page_uri) {\n\t\t\t\tlocation.assign(p.page_uri);\n\t\t\t}\n\t\t}\n\n\t\t// OAuth redirect, fixes URI fragments from being lost in Safari\n\t\t// (URI Fragments within 302 Location URI are lost over HTTPS)\n\t\t// Loading the redirect.html before triggering the OAuth Flow seems to fix it.\n\t\telse if ('oauth_redirect' in p) {\n\n\t\t\tlocation.assign(decodeURIComponent(p.oauth_redirect));\n\t\t\treturn;\n\t\t}\n\n\t\t// Trigger a callback to authenticate\n\t\tfunction authCallback(obj, window, parent) {\n\n\t\t\tvar cb = obj.callback;\n\t\t\tvar network = obj.network;\n\n\t\t\t// Trigger the callback on the parent\n\t\t\t_this.store(network, obj);\n\n\t\t\t// If this is a page request it has no parent or opener window to handle callbacks\n\t\t\tif (('display' in obj) && obj.display === 'page') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Remove from session object\n\t\t\tif (parent && cb && cb in parent) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdelete obj.callback;\n\t\t\t\t}\n\t\t\t\tcatch (e) {}\n\n\t\t\t\t// Update store\n\t\t\t\t_this.store(network, obj);\n\n\t\t\t\t// Call the globalEvent function on the parent\n\t\t\t\t// It's safer to pass back a string to the parent,\n\t\t\t\t// Rather than an object/array (better for IE8)\n\t\t\t\tvar str = JSON.stringify(obj);\n\n\t\t\t\ttry {\n\t\t\t\t\tcallback(parent, cb)(str);\n\t\t\t\t}\n\t\t\t\tcatch (e) {\n\t\t\t\t\t// Error thrown whilst executing parent callback\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcloseWindow();\n\t\t}\n\n\t\tfunction callback(parent, callbackID) {\n\t\t\tif (callbackID.indexOf('_hellojs_') !== 0) {\n\t\t\t\treturn function() {\n\t\t\t\t\tthrow 'Could not execute callback ' + callbackID;\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn parent[callbackID];\n\t\t}\n\n\t\tfunction closeWindow() {\n\n\t\t\tif (window.frameElement) {\n\t\t\t\t// Inside an iframe, remove from parent\n\t\t\t\tparent.document.body.removeChild(window.frameElement);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Close this current window\n\t\t\t\ttry {\n\t\t\t\t\twindow.close();\n\t\t\t\t}\n\t\t\t\tcatch (e) {}\n\n\t\t\t\t// IOS bug wont let us close a popup if still loading\n\t\t\t\tif (window.addEventListener) {\n\t\t\t\t\twindow.addEventListener('load', function() {\n\t\t\t\t\t\twindow.close();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n});\n\n// Events\n// Extend the hello object with its own event instance\nhello.utils.Event.call(hello);\n\n///////////////////////////////////\n// Monitoring session state\n// Check for session changes\n///////////////////////////////////\n\n(function(hello) {\n\n\t// Monitor for a change in state and fire\n\tvar oldSessions = {};\n\n\t// Hash of expired tokens\n\tvar expired = {};\n\n\t// Listen to other triggers to Auth events, use these to update this\n\thello.on('auth.login, auth.logout', function(auth) {\n\t\tif (auth && typeof (auth) === 'object' && auth.network) {\n\t\t\toldSessions[auth.network] = hello.utils.store(auth.network) || {};\n\t\t}\n\t});\n\n\t(function self() {\n\n\t\tvar CURRENT_TIME = ((new Date()).getTime() / 1e3);\n\t\tvar emit = function(eventName) {\n\t\t\thello.emit('auth.' + eventName, {\n\t\t\t\tnetwork: name,\n\t\t\t\tauthResponse: session\n\t\t\t});\n\t\t};\n\n\t\t// Loop through the services\n\t\tfor (var name in hello.services) {if (hello.services.hasOwnProperty(name)) {\n\n\t\t\tif (!hello.services[name].id) {\n\t\t\t\t// We haven't attached an ID so dont listen.\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Get session\n\t\t\tvar session = hello.utils.store(name) || {};\n\t\t\tvar provider = hello.services[name];\n\t\t\tvar oldSess = oldSessions[name] || {};\n\n\t\t\t// Listen for globalEvents that did not get triggered from the child\n\t\t\tif (session && 'callback' in session) {\n\n\t\t\t\t// To do remove from session object...\n\t\t\t\tvar cb = session.callback;\n\t\t\t\ttry {\n\t\t\t\t\tdelete session.callback;\n\t\t\t\t}\n\t\t\t\tcatch (e) {}\n\n\t\t\t\t// Update store\n\t\t\t\t// Removing the callback\n\t\t\t\thello.utils.store(name, session);\n\n\t\t\t\t// Emit global events\n\t\t\t\ttry {\n\t\t\t\t\twindow[cb](session);\n\t\t\t\t}\n\t\t\t\tcatch (e) {}\n\t\t\t}\n\n\t\t\t// Refresh token\n\t\t\tif (session && ('expires' in session) && session.expires < CURRENT_TIME) {\n\n\t\t\t\t// If auto refresh is possible\n\t\t\t\t// Either the browser supports\n\t\t\t\tvar refresh = provider.refresh || session.refresh_token;\n\n\t\t\t\t// Has the refresh been run recently?\n\t\t\t\tif (refresh && (!(name in expired) || expired[name] < CURRENT_TIME)) {\n\t\t\t\t\t// Try to resignin\n\t\t\t\t\thello.emit('notice', name + ' has expired trying to resignin');\n\t\t\t\t\thello.login(name, {display: 'none', force: false});\n\n\t\t\t\t\t// Update expired, every 10 minutes\n\t\t\t\t\texpired[name] = CURRENT_TIME + 600;\n\t\t\t\t}\n\n\t\t\t\t// Does this provider not support refresh\n\t\t\t\telse if (!refresh && !(name in expired)) {\n\t\t\t\t\t// Label the event\n\t\t\t\t\temit('expired');\n\t\t\t\t\texpired[name] = true;\n\t\t\t\t}\n\n\t\t\t\t// If session has expired then we dont want to store its value until it can be established that its been updated\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Has session changed?\n\t\t\telse if (oldSess.access_token === session.access_token &&\n\t\t\toldSess.expires === session.expires) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Access_token has been removed\n\t\t\telse if (!session.access_token && oldSess.access_token) {\n\t\t\t\temit('logout');\n\t\t\t}\n\n\t\t\t// Access_token has been created\n\t\t\telse if (session.access_token && !oldSess.access_token) {\n\t\t\t\temit('login');\n\t\t\t}\n\n\t\t\t// Access_token has been updated\n\t\t\telse if (session.expires !== oldSess.expires) {\n\t\t\t\temit('update');\n\t\t\t}\n\n\t\t\t// Updated stored session\n\t\t\toldSessions[name] = session;\n\n\t\t\t// Remove the expired flags\n\t\t\tif (name in expired) {\n\t\t\t\tdelete expired[name];\n\t\t\t}\n\t\t}}\n\n\t\t// Check error events\n\t\tsetTimeout(self, 1000);\n\t})();\n\n})(hello);\n\n// EOF CORE lib\n//////////////////////////////////\n\n/////////////////////////////////////////\n// API\n// @param path string\n// @param query object (optional)\n// @param method string (optional)\n// @param data object (optional)\n// @param timeout integer (optional)\n// @param callback function (optional)\n\nhello.api = function() {\n\n\t// Shorthand\n\tvar _this = this;\n\tvar utils = _this.utils;\n\tvar error = utils.error;\n\n\t// Construct a new Promise object\n\tvar promise = utils.Promise();\n\n\t// Arguments\n\tvar p = utils.args({path: 's!', query: 'o', method: 's', data: 'o', timeout: 'i', callback: 'f'}, arguments);\n\n\t// Method\n\tp.method = (p.method || 'get').toLowerCase();\n\n\t// Headers\n\tp.headers = p.headers || {};\n\n\t// Query\n\tp.query = p.query || {};\n\n\t// If get, put all parameters into query\n\tif (p.method === 'get' || p.method === 'delete') {\n\t\tutils.extend(p.query, p.data);\n\t\tp.data = {};\n\t}\n\n\tvar data = p.data = p.data || {};\n\n\t// Completed event callback\n\tpromise.then(p.callback, p.callback);\n\n\t// Remove the network from path, e.g. facebook:/me/friends\n\t// Results in { network : facebook, path : me/friends }\n\tif (!p.path) {\n\t\treturn promise.reject(error('invalid_path', 'Missing the path parameter from the request'));\n\t}\n\n\tp.path = p.path.replace(/^\\/+/, '');\n\tvar a = (p.path.split(/[\\/\\:]/, 2) || [])[0].toLowerCase();\n\n\tif (a in _this.services) {\n\t\tp.network = a;\n\t\tvar reg = new RegExp('^' + a + ':?\\/?');\n\t\tp.path = p.path.replace(reg, '');\n\t}\n\n\t// Network & Provider\n\t// Define the network that this request is made for\n\tp.network = _this.settings.default_service = p.network || _this.settings.default_service;\n\tvar o = _this.services[p.network];\n\n\t// INVALID\n\t// Is there no service by the given network name?\n\tif (!o) {\n\t\treturn promise.reject(error('invalid_network', 'Could not match the service requested: ' + p.network));\n\t}\n\n\t// PATH\n\t// As long as the path isn't flagged as unavaiable, e.g. path == false\n\n\tif (!(!(p.method in o) || !(p.path in o[p.method]) || o[p.method][p.path] !== false)) {\n\t\treturn promise.reject(error('invalid_path', 'The provided path is not available on the selected network'));\n\t}\n\n\t// PROXY\n\t// OAuth1 calls always need a proxy\n\n\tif (!p.oauth_proxy) {\n\t\tp.oauth_proxy = _this.settings.oauth_proxy;\n\t}\n\n\tif (!('proxy' in p)) {\n\t\tp.proxy = p.oauth_proxy && o.oauth && parseInt(o.oauth.version, 10) === 1;\n\t}\n\n\t// TIMEOUT\n\t// Adopt timeout from global settings by default\n\n\tif (!('timeout' in p)) {\n\t\tp.timeout = _this.settings.timeout;\n\t}\n\n\t// Format response\n\t// Whether to run the raw response through post processing.\n\tif (!('formatResponse' in p)) {\n\t\tp.formatResponse = true;\n\t}\n\n\t// Get the current session\n\t// Append the access_token to the query\n\tp.authResponse = _this.getAuthResponse(p.network);\n\tif (p.authResponse && p.authResponse.access_token) {\n\t\tp.query.access_token = p.authResponse.access_token;\n\t}\n\n\tvar url = p.path;\n\tvar m;\n\n\t// Store the query as options\n\t// This is used to populate the request object before the data is augmented by the prewrap handlers.\n\tp.options = utils.clone(p.query);\n\n\t// Clone the data object\n\t// Prevent this script overwriting the data of the incoming object.\n\t// Ensure that everytime we run an iteration the callbacks haven't removed some data\n\tp.data = utils.clone(data);\n\n\t// URL Mapping\n\t// Is there a map for the given URL?\n\tvar actions = o[{'delete': 'del'}[p.method] || p.method] || {};\n\n\t// Extrapolate the QueryString\n\t// Provide a clean path\n\t// Move the querystring into the data\n\tif (p.method === 'get') {\n\n\t\tvar query = url.split(/[\\?#]/)[1];\n\t\tif (query) {\n\t\t\tutils.extend(p.query, utils.param(query));\n\n\t\t\t// Remove the query part from the URL\n\t\t\turl = url.replace(/\\?.*?(#|$)/, '$1');\n\t\t}\n\t}\n\n\t// Is the hash fragment defined\n\tif ((m = url.match(/#(.+)/, ''))) {\n\t\turl = url.split('#')[0];\n\t\tp.path = m[1];\n\t}\n\telse if (url in actions) {\n\t\tp.path = url;\n\t\turl = actions[url];\n\t}\n\telse if ('default' in actions) {\n\t\turl = actions['default'];\n\t}\n\n\t// Redirect Handler\n\t// This defines for the Form+Iframe+Hash hack where to return the results too.\n\tp.redirect_uri = _this.settings.redirect_uri;\n\n\t// Define FormatHandler\n\t// The request can be procesed in a multitude of ways\n\t// Here's the options - depending on the browser and endpoint\n\tp.xhr = o.xhr;\n\tp.jsonp = o.jsonp;\n\tp.form = o.form;\n\n\t// Make request\n\tif (typeof (url) === 'function') {\n\t\t// Does self have its own callback?\n\t\turl(p, getPath);\n\t}\n\telse {\n\t\t// Else the URL is a string\n\t\tgetPath(url);\n\t}\n\n\treturn promise.proxy;\n\n\t// If url needs a base\n\t// Wrap everything in\n\tfunction getPath(url) {\n\n\t\t// Format the string if it needs it\n\t\turl = url.replace(/\\@\\{([a-z\\_\\-]+)(\\|.*?)?\\}/gi, function(m, key, defaults) {\n\t\t\tvar val = defaults ? defaults.replace(/^\\|/, '') : '';\n\t\t\tif (key in p.query) {\n\t\t\t\tval = p.query[key];\n\t\t\t\tdelete p.query[key];\n\t\t\t}\n\t\t\telse if (p.data && key in p.data) {\n\t\t\t\tval = p.data[key];\n\t\t\t\tdelete p.data[key];\n\t\t\t}\n\t\t\telse if (!defaults) {\n\t\t\t\tpromise.reject(error('missing_attribute', 'The attribute ' + key + ' is missing from the request'));\n\t\t\t}\n\n\t\t\treturn val;\n\t\t});\n\n\t\t// Add base\n\t\tif (!url.match(/^https?:\\/\\//)) {\n\t\t\turl = o.base + url;\n\t\t}\n\n\t\t// Define the request URL\n\t\tp.url = url;\n\n\t\t// Make the HTTP request with the curated request object\n\t\t// CALLBACK HANDLER\n\t\t// @ response object\n\t\t// @ statusCode integer if available\n\t\tutils.request(p, function(r, headers) {\n\n\t\t\t// Is this a raw response?\n\t\t\tif (!p.formatResponse) {\n\t\t\t\t// Bad request? error statusCode or otherwise contains an error response vis JSONP?\n\t\t\t\tif (typeof headers === 'object' ? (headers.statusCode >= 400) : (typeof r === 'object' && 'error' in r)) {\n\t\t\t\t\tpromise.reject(r);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpromise.fulfill(r);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Should this be an object\n\t\t\tif (r === true) {\n\t\t\t\tr = {success:true};\n\t\t\t}\n\t\t\telse if (!r) {\n\t\t\t\tr = {};\n\t\t\t}\n\n\t\t\t// The delete callback needs a better response\n\t\t\tif (p.method === 'delete') {\n\t\t\t\tr = (!r || utils.isEmpty(r)) ? {success:true} : r;\n\t\t\t}\n\n\t\t\t// FORMAT RESPONSE?\n\t\t\t// Does self request have a corresponding formatter\n\t\t\tif (o.wrap && ((p.path in o.wrap) || ('default' in o.wrap))) {\n\t\t\t\tvar wrap = (p.path in o.wrap ? p.path : 'default');\n\t\t\t\tvar time = (new Date()).getTime();\n\n\t\t\t\t// FORMAT RESPONSE\n\t\t\t\tvar b = o.wrap[wrap](r, headers, p);\n\n\t\t\t\t// Has the response been utterly overwritten?\n\t\t\t\t// Typically self augments the existing object.. but for those rare occassions\n\t\t\t\tif (b) {\n\t\t\t\t\tr = b;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Is there a next_page defined in the response?\n\t\t\tif (r && 'paging' in r && r.paging.next) {\n\n\t\t\t\t// Add the relative path if it is missing from the paging/next path\n\t\t\t\tif (r.paging.next[0] === '?') {\n\t\t\t\t\tr.paging.next = p.path + r.paging.next;\n\t\t\t\t}\n\n\t\t\t\t// The relative path has been defined, lets markup the handler in the HashFragment\n\t\t\t\telse {\n\t\t\t\t\tr.paging.next += '#' + p.path;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Dispatch to listeners\n\t\t\t// Emit events which pertain to the formatted response\n\t\t\tif (!r || 'error' in r) {\n\t\t\t\tpromise.reject(r);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpromise.fulfill(r);\n\t\t\t}\n\t\t});\n\t}\n};\n\n// API utilities\nhello.utils.extend(hello.utils, {\n\n\t// Make an HTTP request\n\trequest: function(p, callback) {\n\n\t\tvar _this = this;\n\t\tvar error = _this.error;\n\n\t\t// This has to go through a POST request\n\t\tif (!_this.isEmpty(p.data) && !('FileList' in window) && _this.hasBinary(p.data)) {\n\n\t\t\t// Disable XHR and JSONP\n\t\t\tp.xhr = false;\n\t\t\tp.jsonp = false;\n\t\t}\n\n\t\t// Check if the browser and service support CORS\n\t\tvar cors = this.request_cors(function() {\n\t\t\t// If it does then run this...\n\t\t\treturn ((p.xhr === undefined) || (p.xhr && (typeof (p.xhr) !== 'function' || p.xhr(p, p.query))));\n\t\t});\n\n\t\tif (cors) {\n\n\t\t\tformatUrl(p, function(url) {\n\n\t\t\t\tvar x = _this.xhr(p.method, url, p.headers, p.data, callback);\n\t\t\t\tx.onprogress = p.onprogress || null;\n\n\t\t\t\t// Windows Phone does not support xhr.upload, see #74\n\t\t\t\t// Feature detect\n\t\t\t\tif (x.upload && p.onuploadprogress) {\n\t\t\t\t\tx.upload.onprogress = p.onuploadprogress;\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Clone the query object\n\t\t// Each request modifies the query object and needs to be tared after each one.\n\t\tvar _query = p.query;\n\n\t\tp.query = _this.clone(p.query);\n\n\t\t// Assign a new callbackID\n\t\tp.callbackID = _this.globalEvent();\n\n\t\t// JSONP\n\t\tif (p.jsonp !== false) {\n\n\t\t\t// Clone the query object\n\t\t\tp.query.callback = p.callbackID;\n\n\t\t\t// If the JSONP is a function then run it\n\t\t\tif (typeof (p.jsonp) === 'function') {\n\t\t\t\tp.jsonp(p, p.query);\n\t\t\t}\n\n\t\t\t// Lets use JSONP if the method is 'get'\n\t\t\tif (p.method === 'get') {\n\n\t\t\t\tformatUrl(p, function(url) {\n\t\t\t\t\t_this.jsonp(url, callback, p.callbackID, p.timeout);\n\t\t\t\t});\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// It's not compatible reset query\n\t\t\t\tp.query = _query;\n\t\t\t}\n\n\t\t}\n\n\t\t// Otherwise we're on to the old school, iframe hacks and JSONP\n\t\tif (p.form !== false) {\n\n\t\t\t// Add some additional query parameters to the URL\n\t\t\t// We're pretty stuffed if the endpoint doesn't like these\n\t\t\tp.query.redirect_uri = p.redirect_uri;\n\t\t\tp.query.state = JSON.stringify({callback:p.callbackID});\n\n\t\t\tvar opts;\n\n\t\t\tif (typeof (p.form) === 'function') {\n\n\t\t\t\t// Format the request\n\t\t\t\topts = p.form(p, p.query);\n\t\t\t}\n\n\t\t\tif (p.method === 'post' && opts !== false) {\n\n\t\t\t\tformatUrl(p, function(url) {\n\t\t\t\t\t_this.post(url, p.data, opts, callback, p.callbackID, p.timeout);\n\t\t\t\t});\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// None of the methods were successful throw an error\n\t\tcallback(error('invalid_request', 'There was no mechanism for handling this request'));\n\n\t\treturn;\n\n\t\t// Format URL\n\t\t// Constructs the request URL, optionally wraps the URL through a call to a proxy server\n\t\t// Returns the formatted URL\n\t\tfunction formatUrl(p, callback) {\n\n\t\t\t// Are we signing the request?\n\t\t\tvar sign;\n\n\t\t\t// OAuth1\n\t\t\t// Remove the token from the query before signing\n\t\t\tif (p.authResponse && p.authResponse.oauth && parseInt(p.authResponse.oauth.version, 10) === 1) {\n\n\t\t\t\t// OAUTH SIGNING PROXY\n\t\t\t\tsign = p.query.access_token;\n\n\t\t\t\t// Remove the access_token\n\t\t\t\tdelete p.query.access_token;\n\n\t\t\t\t// Enfore use of Proxy\n\t\t\t\tp.proxy = true;\n\t\t\t}\n\n\t\t\t// POST body to querystring\n\t\t\tif (p.data && (p.method === 'get' || p.method === 'delete')) {\n\t\t\t\t// Attach the p.data to the querystring.\n\t\t\t\t_this.extend(p.query, p.data);\n\t\t\t\tp.data = null;\n\t\t\t}\n\n\t\t\t// Construct the path\n\t\t\tvar path = _this.qs(p.url, p.query);\n\n\t\t\t// Proxy the request through a server\n\t\t\t// Used for signing OAuth1\n\t\t\t// And circumventing services without Access-Control Headers\n\t\t\tif (p.proxy) {\n\t\t\t\t// Use the proxy as a path\n\t\t\t\tpath = _this.qs(p.oauth_proxy, {\n\t\t\t\t\tpath: path,\n\t\t\t\t\taccess_token: sign || '',\n\n\t\t\t\t\t// This will prompt the request to be signed as though it is OAuth1\n\t\t\t\t\tthen: p.proxy_response_type || (p.method.toLowerCase() === 'get' ? 'redirect' : 'proxy'),\n\t\t\t\t\tmethod: p.method.toLowerCase(),\n\t\t\t\t\tsuppress_response_codes: true\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcallback(path);\n\t\t}\n\t},\n\n\t// Test whether the browser supports the CORS response\n\trequest_cors: function(callback) {\n\t\treturn 'withCredentials' in new XMLHttpRequest() && callback();\n\t},\n\n\t// Return the type of DOM object\n\tdomInstance: function(type, data) {\n\t\tvar test = 'HTML' + (type || '').replace(\n\t\t\t/^[a-z]/,\n\t\t\tfunction(m) {\n\t\t\t\treturn m.toUpperCase();\n\t\t\t}\n\n\t\t) + 'Element';\n\n\t\tif (!data) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (window[test]) {\n\t\t\treturn data instanceof window[test];\n\t\t}\n\t\telse if (window.Element) {\n\t\t\treturn data instanceof window.Element && (!type || (data.tagName && data.tagName.toLowerCase() === type));\n\t\t}\n\t\telse {\n\t\t\treturn (!(data instanceof Object || data instanceof Array || data instanceof String || data instanceof Number) && data.tagName && data.tagName.toLowerCase() === type);\n\t\t}\n\t},\n\n\t// Create a clone of an object\n\tclone: function(obj) {\n\t\t// Does not clone DOM elements, nor Binary data, e.g. Blobs, Filelists\n\t\tif (obj === null || typeof (obj) !== 'object' || obj instanceof Date || 'nodeName' in obj || this.isBinary(obj) || (typeof FormData === 'function' && obj instanceof FormData)) {\n\t\t\treturn obj;\n\t\t}\n\n\t\tif (Array.isArray(obj)) {\n\t\t\t// Clone each item in the array\n\t\t\treturn obj.map(this.clone.bind(this));\n\t\t}\n\n\t\t// But does clone everything else.\n\t\tvar clone = {};\n\t\tfor (var x in obj) {\n\t\t\tclone[x] = this.clone(obj[x]);\n\t\t}\n\n\t\treturn clone;\n\t},\n\n\t// XHR: uses CORS to make requests\n\txhr: function(method, url, headers, data, callback) {\n\n\t\tvar r = new XMLHttpRequest();\n\t\tvar error = this.error;\n\n\t\t// Binary?\n\t\tvar binary = false;\n\t\tif (method === 'blob') {\n\t\t\tbinary = method;\n\t\t\tmethod = 'GET';\n\t\t}\n\n\t\tmethod = method.toUpperCase();\n\n\t\t// Xhr.responseType 'json' is not supported in any of the vendors yet.\n\t\tr.onload = function(e) {\n\t\t\tvar json = r.response;\n\t\t\ttry {\n\t\t\t\tjson = JSON.parse(r.responseText);\n\t\t\t}\n\t\t\tcatch (_e) {\n\t\t\t\tif (r.status === 401) {\n\t\t\t\t\tjson = error('access_denied', r.statusText);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar headers = headersToJSON(r.getAllResponseHeaders());\n\t\t\theaders.statusCode = r.status;\n\n\t\t\tcallback(json || (method === 'GET' ? error('empty_response', 'Could not get resource') : {}), headers);\n\t\t};\n\n\t\tr.onerror = function(e) {\n\t\t\tvar json = r.responseText;\n\t\t\ttry {\n\t\t\t\tjson = JSON.parse(r.responseText);\n\t\t\t}\n\t\t\tcatch (_e) {}\n\n\t\t\tcallback(json || error('access_denied', 'Could not get resource'));\n\t\t};\n\n\t\tvar x;\n\n\t\t// Should we add the query to the URL?\n\t\tif (method === 'GET' || method === 'DELETE') {\n\t\t\tdata = null;\n\t\t}\n\t\telse if (data && typeof (data) !== 'string' && !(data instanceof FormData) && !(data instanceof File) && !(data instanceof Blob)) {\n\t\t\t// Loop through and add formData\n\t\t\tvar f = new FormData();\n\t\t\tfor (x in data) if (data.hasOwnProperty(x)) {\n\t\t\t\tif (data[x] instanceof HTMLInputElement) {\n\t\t\t\t\tif ('files' in data[x] && data[x].files.length > 0) {\n\t\t\t\t\t\tf.append(x, data[x].files[0]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (data[x] instanceof Blob) {\n\t\t\t\t\tf.append(x, data[x], data.name);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tf.append(x, data[x]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdata = f;\n\t\t}\n\n\t\t// Open the path, async\n\t\tr.open(method, url, true);\n\n\t\tif (binary) {\n\t\t\tif ('responseType' in r) {\n\t\t\t\tr.responseType = binary;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tr.overrideMimeType('text/plain; charset=x-user-defined');\n\t\t\t}\n\t\t}\n\n\t\t// Set any bespoke headers\n\t\tif (headers) {\n\t\t\tfor (x in headers) {\n\t\t\t\tr.setRequestHeader(x, headers[x]);\n\t\t\t}\n\t\t}\n\n\t\tr.send(data);\n\n\t\treturn r;\n\n\t\t// Headers are returned as a string\n\t\tfunction headersToJSON(s) {\n\t\t\tvar r = {};\n\t\t\tvar reg = /([a-z\\-]+):\\s?(.*);?/gi;\n\t\t\tvar m;\n\t\t\twhile ((m = reg.exec(s))) {\n\t\t\t\tr[m[1]] = m[2];\n\t\t\t}\n\n\t\t\treturn r;\n\t\t}\n\t},\n\n\t// JSONP\n\t// Injects a script tag into the DOM to be executed and appends a callback function to the window object\n\t// @param string/function pathFunc either a string of the URL or a callback function pathFunc(querystringhash, continueFunc);\n\t// @param function callback a function to call on completion;\n\tjsonp: function(url, callback, callbackID, timeout) {\n\n\t\tvar _this = this;\n\t\tvar error = _this.error;\n\n\t\t// Change the name of the callback\n\t\tvar bool = 0;\n\t\tvar head = document.getElementsByTagName('head')[0];\n\t\tvar operaFix;\n\t\tvar result = error('server_error', 'server_error');\n\t\tvar cb = function() {\n\t\t\tif (!(bool++)) {\n\t\t\t\twindow.setTimeout(function() {\n\t\t\t\t\tcallback(result);\n\t\t\t\t\thead.removeChild(script);\n\t\t\t\t}, 0);\n\t\t\t}\n\n\t\t};\n\n\t\t// Add callback to the window object\n\t\tcallbackID = _this.globalEvent(function(json) {\n\t\t\tresult = json;\n\t\t\treturn true;\n\n\t\t\t// Mark callback as done\n\t\t}, callbackID);\n\n\t\t// The URL is a function for some cases and as such\n\t\t// Determine its value with a callback containing the new parameters of this function.\n\t\turl = url.replace(new RegExp('=\\\\?(&|$)'), '=' + callbackID + '$1');\n\n\t\t// Build script tag\n\t\tvar script = _this.append('script', {\n\t\t\tid: callbackID,\n\t\t\tname: callbackID,\n\t\t\tsrc: url,\n\t\t\tasync: true,\n\t\t\tonload: cb,\n\t\t\tonerror: cb,\n\t\t\tonreadystatechange: function() {\n\t\t\t\tif (/loaded|complete/i.test(this.readyState)) {\n\t\t\t\t\tcb();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Opera fix error\n\t\t// Problem: If an error occurs with script loading Opera fails to trigger the script.onerror handler we specified\n\t\t//\n\t\t// Fix:\n\t\t// By setting the request to synchronous we can trigger the error handler when all else fails.\n\t\t// This action will be ignored if we've already called the callback handler \"cb\" with a successful onload event\n\t\tif (window.navigator.userAgent.toLowerCase().indexOf('opera') > -1) {\n\t\t\toperaFix = _this.append('script', {\n\t\t\t\ttext: 'document.getElementById(\\'' + callbackID + '\\').onerror();'\n\t\t\t});\n\t\t\tscript.async = false;\n\t\t}\n\n\t\t// Add timeout\n\t\tif (timeout) {\n\t\t\twindow.setTimeout(function() {\n\t\t\t\tresult = error('timeout', 'timeout');\n\t\t\t\tcb();\n\t\t\t}, timeout);\n\t\t}\n\n\t\t// TODO: add fix for IE,\n\t\t// However: unable recreate the bug of firing off the onreadystatechange before the script content has been executed and the value of \"result\" has been defined.\n\t\t// Inject script tag into the head element\n\t\thead.appendChild(script);\n\n\t\t// Append Opera Fix to run after our script\n\t\tif (operaFix) {\n\t\t\thead.appendChild(operaFix);\n\t\t}\n\t},\n\n\t// Post\n\t// Send information to a remote location using the post mechanism\n\t// @param string uri path\n\t// @param object data, key value data to send\n\t// @param function callback, function to execute in response\n\tpost: function(url, data, options, callback, callbackID, timeout) {\n\n\t\tvar _this = this;\n\t\tvar error = _this.error;\n\t\tvar doc = document;\n\n\t\t// This hack needs a form\n\t\tvar form = null;\n\t\tvar reenableAfterSubmit = [];\n\t\tvar newform;\n\t\tvar i = 0;\n\t\tvar x = null;\n\t\tvar bool = 0;\n\t\tvar cb = function(r) {\n\t\t\tif (!(bool++)) {\n\t\t\t\tcallback(r);\n\t\t\t}\n\t\t};\n\n\t\t// What is the name of the callback to contain\n\t\t// We'll also use this to name the iframe\n\t\t_this.globalEvent(cb, callbackID);\n\n\t\t// Build the iframe window\n\t\tvar win;\n\t\ttry {\n\t\t\t// IE7 hack, only lets us define the name here, not later.\n\t\t\twin = doc.createElement('