var __extends,__assign,__decorate,MeePortal;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){function r(n,t,r){var f,u;i&&(i.result=2,i.customData.errorMessage=r.message,i.customData.stackTrace=r.stack,i.__finish());f=n.getActiveComponentOperations();f.forEach(function(n){n.result=2;n.customData.errorMessage=r.message;n.customData.stackTrace=r.stack;n.__finish()});u=n.getCurrentPage();u&&(u.customData.stackTrace=r.stack,n.finishCurrentPage({success:!1}))}function f(){return i}var i,u=angular.module("clientReliabilityModule",[]).config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate","$injector",function(n,t){return function(i,u){var f=t.get("pageReliabilityService"),e=t.get("componentReliabilityService");r(f,e,i);n(i,u)}}])}]);u.run(["$rootScope","pageReliabilityService","componentReliabilityService","performanceService",function(t,r,u,f){var e;i=u.trackComponentOperation(n.Telemetry.portalAreaName+".app",2e4);e=t.$on("$stateChangeStart",function(){var t,n;i.customData.startTime=i.getStartTime();i.customData.endTime=f.nowOrNaN();t=i.customData.endTime;i.durationMs=t;i.result=1;i.__finish();n=r.getCurrentPage();n&&(n.customData.alt=t,n.kind="application",i=null);e()})}]);t.getApplicationLoadOperation=f})(i=t.ClientReliability||(t.ClientReliability={}))})(i=t.Angular||(t.Angular={}))})(t=n.Shared||(n.Shared={}))})(MeePortal||(MeePortal={})),function(n){var t;(function(t){var i;(function(t){var i;(function(t){var r="Ms.Osgs.ClientReliability",u=function(){function n(n,t,i,r,u,f,e){var o=this;this.name=n;this.timeoutMs=t;this.$timeout=i;this.logger=r;this.eventLogger=u;this.performanceService=f;this.pageOperation=e;this.result=0;this.kind="component";this.customData={};this.loggerId="ComponentOperation";this.__finish=function(){o.isFinished()||(o.$timeout.cancel(o.timeoutPromise),o.timeoutPromise=null,o.durationMs||(o.durationMs=o.performanceService.nowOrNaN()-o.startTime),o.eventLogger.reportEvent(o),o.logger.trace(o.loggerId,"Component finishes",o.name))};this.getStartTime=function(){return o.startTime};this.isFinished=function(){return!o.timeoutPromise};this.startTime=this.performanceService.nowOrNaN();this.timeoutPromise=this.$timeout(function(){r.trace(o.loggerId,"Component timeout",n);o.result=4;o.__finish()},t);r.trace(this.loggerId,"Component starts",n)}return n.prototype.getPageOperation=function(){return this.pageOperation},n}(),i=function(){function t(t,i,f,e){var o=this;this.$timeout=t;this.telemetryService=i;this.logger=f;this.performanceService=e;this.loggerId="ComponentOperation";this.trackComponentOperation=function(n,t,i){return new u(n,t,o.$timeout,o.logger,o,o.performanceService,i)};this.reportEvent=function(t){var u,f,e;if(t&&t.isFinished()){var s={name:r,content:{}},h=n.Telemetry.portalAreaName||"default",i=t.name;t.kind==="component"&&(u=t.getPageOperation(),i=u&&u.name||"unknown");s.content[r]={uri:o.telemetryService.portalBi.getCurrentLocation(),referrerUri:o.telemetryService.portalBi.getCurrentReferrer(),pageName:i,area:h,name:t.name,result:t.result,durationMs:t.durationMs,kind:t.kind,data:JSON.stringify(t.customData,o.$errorSerializer)};o.telemetryService.portalQos.reportRawEvent(s);t.result===3&&t.kind==="component"&&o.logger.trace(o.loggerId,"Component "+t.name+" was cancelled. If it was specified as a requiredComponent on the "+i+" page, then its QoS will be impacted.");switch(t.kind){case"application":case"page":f={loadTimeMsec:t.durationMs||0};"application"===t.kind&&(f.application={loadTimeMsec:t.customData.alt||0});e=[{name:"area",value:h},{name:"pageName",value:i},{name:"result",value:t.result}];t.result!==1&&t.kind==="page"&&e.push({name:"failedRequiredComponent",value:t.customData.componentsNotLoaded});o.telemetryService.portalClientPerf.reportViewPerformanceMetrics(f,e)}}}}return t.prototype.$errorSerializer=function(n,t){if(t instanceof Error){var i={};return Object.getOwnPropertyNames(t).forEach(function(n){i[n]=t[n]}),i}return t},t}();t.ComponentReliabilityService=i;i.$inject=["$timeout","telemetryService","loggingService","performanceService"];angular.module("clientReliabilityModule").service("componentReliabilityService",i)})(i=t.ClientReliability||(t.ClientReliability={}))})(i=t.Angular||(t.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(t){var i;(function(t){var i;(function(){var t=function(){function t(n,t,i,r,u,f){var e=this;this.componentReliabilityService=n;this.telemetryService=t;this.$rootScope=i;this.$timeout=r;this.$state=u;this.$q=f;this.activeComponentOperations=[];this.loadedComponents=[];this.requiredComponents=[];this.optionalComponents=[];this.expectedTransitions=[];this.ignoreCancelledComponents=!1;i.$on("$stateChangeStart",function(n,t,i,r,u){e.onUiStateChangeStart(t,i,r,u)});i.$on("$stateChangeSuccess",function(n,t,i,r,u){e.onUiStateChangeSuccess(t,i,r,u)})}return t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.finishCurrentPage=function(n){this.currentPage&&!this.currentPage.isFinished()&&(this.currentPage.result=n.success?1:2,this.currentPage.__finish())},t.prototype.trackComponentOperation=function(n,i){if(i===void 0&&(i=t.DefaultComponentTimeoutMsec),!n)return null;if(this.requiredComponents.indexOf(n)===-1&&this.optionalComponents.indexOf(n)===-1)throw new Error(this.currentPage.name+" - Please add Component: "+n+" to either requiredComponents or optionalComponents in route registration.");var r=this.componentReliabilityService.trackComponentOperation(n,i,this.currentPage);return this.activeComponentOperations.push(r),r},t.prototype.addRequiredComponentName=function(n){this.requiredComponents.push(n)},t.prototype.finishComponent=function(n,t){if(n&&!n.isFinished()){n.result=t||2;n.__finish();this.removeItemIfExist(this.activeComponentOperations,n);n.result===1&&this.loadedComponents.push(n.name);var i=this.requiredComponents.indexOf(n.name);if(i!==-1){if(n.result!==1&&!(n.result===3&&this.ignoreCancelledComponents)){this.setFailedComponentInformationForTracking();this.finishCurrentPage({success:!1});return}this.requiredComponents.splice(i,1)}this.finishCurrentPageWhenAllRequiredComponentsLoaded()}},t.prototype.destroyComponent=function(n){var t=this;n&&this.$timeout().then(function(){n.isFinished()||(t.$state.current._isFatalErrorPage?t.finishComponent(n,2):(n.result=3,n.__finish()));t.removeItemIfExist(t.getLoadedComponents(),n.name)})},t.prototype.getActiveComponentOperations=function(){return this.activeComponentOperations},t.prototype.getLoadedComponents=function(){return this.loadedComponents},t.prototype.getComponentNameFromDomElement=function(n){return n.attr("data-rid")||n.attr("id")||""},t.prototype.overrideDefaultTimeout=function(n){t.DefaultComponentTimeoutMsec=n;t.DefaultPageTimeoutMsec=n},t.prototype.getDefaultComponentTimeout=function(){return t.DefaultComponentTimeoutMsec},t.prototype.completeOrCancelCurrentPageIfNotFinished=function(n){this.currentPage&&!this.currentPage.isFinished()&&(this.expectedTransitions.indexOf(n.name)===-1?(this.currentPage.result=3,this.setFailedComponentInformationForTracking()):this.currentPage.result=1,this.currentPage.__finish())},t.prototype.removeItemIfExist=function(n,t){var i=n.indexOf(t);i!==-1&&n.splice(i,1)},t.prototype.isAllRequiredComponentLoaded=function(){return this.requiredComponents.length===0},t.prototype.finishCurrentPageWhenAllRequiredComponentsLoaded=function(){this.isAllRequiredComponentLoaded()&&this.finishCurrentPage({success:!0})},t.prototype.ignoreStateChange=function(n,t){return n.data&&n.data.alwaysLogPageView?!1:!n.url&&n.name.indexOf(t.name)>-1?!0:this.lastKnownUrl===n.url&&angular.equals(n.params,this.lastKnownStateParams)?!0:!1},t.prototype.prepareComponentLists=function(n){var t,i,r;n&&(n.data&&(n.data.hasOwnProperty("requiredComponents")&&n.data.requiredComponents&&(t=this.requiredComponents).push.apply(t,n.data.requiredComponents),n.data.hasOwnProperty("optionalComponents")&&n.data.optionalComponents&&(i=this.optionalComponents).push.apply(i,n.data.optionalComponents),n.data.hasOwnProperty("expectedTransitions")&&n.data.expectedTransitions&&(r=this.expectedTransitions).push.apply(r,n.data.expectedTransitions)),this.prepareComponentLists(n.parent))},t.prototype.defaultBiPageView=function(t){return{path:"/"+n.Telemetry.portalAreaName+"/"+t.name.replace(".","/"),viewId:n.Telemetry.portalAreaName+"."+t.name}},t.prototype.onUiStateChangeStart=function(i,r,u,f){var o=this,s,h,e,c,l;this.ignoreStateChange(i,u)||(s=this.findStateWithUrl(i),this.completeOrCancelCurrentPageIfNotFinished(i),this.expectedTransitions=[],this.requiredComponents=[],this.optionalComponents=[],h=(n.Telemetry.portalAreaName||"default")+"."+s.name,this.currentPage=this.componentReliabilityService.trackComponentOperation(h,t.DefaultPageTimeoutMsec,null),this.currentPage.kind="page",e=this.$q.defer(),i.data&&i.data.pageReadyEvent?(c=this.$timeout(function(){return e.reject()},t.DefaultPageTimeoutMsec),l=this.$rootScope.$on(i.data.pageReadyEvent,function(){o.$timeout.cancel(c);e.resolve()}),e.promise.finally(function(){return l()})):e.resolve(),e.promise.finally(function(){var n;n=i.data&&i.data.biPageView?i.data.biPageView(i,r,u,f):o.defaultBiPageView(i,r,u,f);o.telemetryService.portalBi.reportSpaPageView(n)}))},t.prototype.onUiStateChangeSuccess=function(n,t,i){var r=this,u;this.ignoreStateChange(n,i)||(u=this.findStateWithUrl(n),this.lastKnownUrl=u.url&&u.url.toString(),this.lastKnownStateParams=angular.copy(n.params),this.prepareComponentLists(this.$state.$current),this.ignoreCancelledComponents=n.data&&n.data.ignoreCancelledComponents,this.requiredComponents.length>0?this.$timeout(function(){for(var n=r.requiredComponents.length-1;n>=0;n--)r.getLoadedComponents().indexOf(r.requiredComponents[n])!==-1&&r.requiredComponents.splice(n,1);r.finishCurrentPageWhenAllRequiredComponentsLoaded()}):this.finishCurrentPageWhenAllRequiredComponentsLoaded())},t.prototype.findStateWithUrl=function(n){if(n._isFatalErrorPage)return n;for(var t=n.name||"undefined";n.url!=="^";){if(n.url)return n;n=this.$state.get("^",n)}throw new Error('state "'+t+'" does not roll up to a state with a URL.');},t.prototype.setFailedComponentInformationForTracking=function(){this.currentPage.customData||(this.currentPage.customData={});this.currentPage.customData.componentsNotLoaded=this.requiredComponents},t.$inject=["componentReliabilityService","telemetryService","$rootScope","$timeout","$state","$q"],t.DefaultPageTimeoutMsec=15e3,t.DefaultComponentTimeoutMsec=15e3,t}();angular.module("clientReliabilityModule").service("pageReliabilityService",t)})(i=t.ClientReliability||(t.ClientReliability={}))})(i=t.Angular||(t.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){var t=function(){function n(n){this.$window=n}return n.prototype.nowOrNaN=function(){return this.$window.performance&&this.$window.performance.now?this.$window.performance.now():NaN},n.$inject=["$window"],n}();n.PerformanceService=t;angular.module("clientReliabilityModule").service("performanceService",t)})(t=n.ClientReliability||(n.ClientReliability={}))})(t=n.Angular||(n.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={}));__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(t,i,r){return function(u){var f=function(t){function i(n){for(var r,u=[],i=1;i<arguments.length;i++)u[i-1]=arguments[i];return r=t.apply(this,u)||this,r.pageReliabilityService=n,r}return __extends(i,t),i.prototype.$onInit=function(){var i=this,r,u;if(t.prototype.$onInit)throw new Error("$onInit is not supported, please use componentOnInit instead.");if(!this.componentOnInit)throw new Error("componentOnInit is not defined, please implement IComponentReliability interface.");if(!this.getInstrumentationComponentName)throw new Error("getInstrumentationComponentName is not defined, please implement IComponentReliability interface.");this.componentOperation=this.pageReliabilityService.trackComponentOperation(this.getInstrumentationComponentName());r=this.getCustomOperationData&&this.getCustomOperationData()||{};n.InstrumentedComponentHelper.setCustomOperationData(r,this.componentOperation);u=this.componentOnInit();n.InstrumentedComponentHelper.isAngularPromise(u)?u.then(function(){r=i.getCustomOperationData&&i.getCustomOperationData()||{};n.InstrumentedComponentHelper.setCustomOperationData(r,i.componentOperation);i.pageReliabilityService.finishComponent(i.componentOperation,1)},function(t){r=i.getCustomOperationData&&i.getCustomOperationData()||{};r.error=t;n.InstrumentedComponentHelper.setCustomOperationData(r,i.componentOperation);i.pageReliabilityService.finishComponent(i.componentOperation,2)}):(r=this.getCustomOperationData&&this.getCustomOperationData()||{},n.InstrumentedComponentHelper.setCustomOperationData(r,this.componentOperation),this.pageReliabilityService.finishComponent(this.componentOperation,1),console.warn("instrumentedComponent: Instrumented components should return a promise in componentOnInit(). If your component does not retrieve any data or your component does not need to be instrumented, consider using the Component decorator instead."))},i.prototype.$onDestroy=function(){t.prototype.$onDestroy&&t.prototype.$onDestroy.call(this);this.pageReliabilityService.destroyComponent(this.componentOperation)},i.dependencies=["pageReliabilityService"],i.$inject=u.$inject?i.dependencies.concat(u.$inject):i.dependencies,i}(u);return angular.module(t).component(i,angular.extend(r,{controller:f})),f}}n.InstrumentedComponent=t})(t=n.ClientReliability||(n.ClientReliability={}))})(t=n.Angular||(n.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return!!n&&!!n.then&&!!n.catch&&!!n.finally}function i(n,t){if(t){t.customData={};for(var i in n)t.customData[i]=n[i]}}n.isAngularPromise=t;n.setCustomOperationData=i})(t=n.InstrumentedComponentHelper||(n.InstrumentedComponentHelper={}))})(t=n.ClientReliability||(n.ClientReliability={}))})(t=n.Angular||(n.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function i(t,i,r,u,f,e,o,s){var l,c=o||{},v=s?s:r.getDefaultComponentTimeout(),h=i.trackComponentOperation(f+":"+e,v);n.InstrumentedComponentHelper.setCustomOperationData(c,h);try{l=t()}catch(a){h.result=2;c.error=a;n.InstrumentedComponentHelper.setCustomOperationData(c,h);h.__finish();throw a;}return n.InstrumentedComponentHelper.isAngularPromise(l)?l.then(function(n){return h.result=1,u.resolve(n)}).catch(function(n){return h.result=2,c.error=n,u.reject(n)}).finally(function(){n.InstrumentedComponentHelper.setCustomOperationData(c,h);h.__finish()}):(h.result=1,n.InstrumentedComponentHelper.setCustomOperationData(c,h),h.__finish(),l)}function r(n){t=n}function u(n,r){return function(u,f){var e=u[f];return u[f]=function(){for(var u,s,h,c=this,o=[],f=0;f<arguments.length;f++)o[f]=arguments[f];if(u=t,u||(u=angular.element(document.querySelector(".ng-scope")).injector()),!u||!u.invoke)throw new Error("Could not obtain AngularJS injector instance. For unit tests call __overrideInstrumentedComponentOperationInjectorForTests() before the component is initialized.");if(!this.getInstrumentationComponentName)throw new Error("Instrumented Component Operation: Make sure the class has implemented the IComponentReliabilityOperations interface.");return s=e.bind.apply(e,[this].concat(o)),h=this.getCustomOperationData&&this.getCustomOperationData(),u.invoke(["pageReliabilityService","componentReliabilityService","$q",function(t,u,f){return i(s,u,t,f,c.getInstrumentationComponentName(),n,h,r)}])}}}var t;n.__overrideInstrumentedComponentOperationInjectorForTests=r;n.InstrumentedComponentOperation=u})(t=n.ClientReliability||(n.ClientReliability={}))})(t=n.Angular||(n.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(t){var i;(function(t){var i;(function(t){function f(t){return function(r){var c=t.get("$state"),e=t.get("$log"),l=t.get("$timeout"),o=t.get("$window"),a=t.get("pageReliabilityService");r.stack?e.error(r.stack):e.error("Unhandled exception occurred, but no stack information was provided.");o.portalUnhandledException&&i.unhandledErrors||(o.portalUnhandledException=r.stack||r.message);try{var f=/\/([^/]+\.js):(\d+):\d+/.exec(r.stack||""),s="",h=0;f&&(s=f[1],h=parseInt(f[2]));n.Telemetry.globalErrorLoggingHandler(s,r.message,h,r.stack)}finally{i.unhandledErrors++;i.pendingSwitchToFatalErrorState||(i.pendingSwitchToFatalErrorState=l(1e3).then(function(){var n=i.unhandledErrors!==0;i={unhandledErrors:0,pendingSwitchToFatalErrorState:null};n&&(a.finishCurrentPage({success:!1}),c.go(u))}))}}}var i;t.moduleName="unhandledExceptionHandlerModule";var u="fatalError",r=angular.module(t.moduleName,["ui.router","ngRoute"]).config(["$stateProvider",function(n){n.state(u,{template:"<fatal-error><\/fatal-error>",_isFatalErrorPage:!0,params:{_modalDismissQuietly:!0},allowAnonymous:!0})}]).config(["$qProvider",function(n){n.errorOnUnhandledRejections(!1)}]),e={data:{title:"",summary:""}};r.constant("fatalErrorCmsContent",e);r.run(["portalAjaxServiceAngular",function(n){n.get({serviceName:"MeePortal",operationName:"GetFatalErrorPageContent",url:"/CmsContent/fatalError",contentType:"application/json"}).then(function(n){e.data=n.data})}]);i={unhandledErrors:0};r.run(["$rootScope","$meeWatchOperationProgress",function(n,t){t(n,function(n,t){t==="failed"&&i.unhandledErrors--})}]);r.run(["$rootScope","$window",function(n,t){n.$on("$stateChangeStart",function(n,i){i.name!==u&&(t.portalUnhandledException=undefined)})}]);t.portalExceptionHandlerFactory=f;f.$inject=["$injector"];r.factory("$exceptionHandler",f)})(i=t.UnhandledExceptionHandler||(t.UnhandledExceptionHandler={}))})(i=t.Angular||(t.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){var t=function(){function n(n,t){var i=this;this.fatalErrorCmsContent=n;this.telemetryService=t;this.$onInit=function(){angular.element("#site-footer").show()};this.getCurrentCvValue=function(){return i.telemetryService.portalCv.getCurrentCvValue()}}return n.$inject=["fatalErrorCmsContent","telemetryService"],n}();angular.module(n.moduleName).component("fatalError",{template:'<div class="full-height">\n                      <header class="page-title-header text-center">\n                        <h1 mee-heading="heading2" id="error-title" class="text-center-align">{{$ctrl.fatalErrorCmsContent.data.title}}<\/h1>\n                        <p mee-heading="subheading2" id="error-summary" class="text-center-align">{{$ctrl.fatalErrorCmsContent.data.summary}}<\/p>\n                      <\/header>\n                      <div>\n                        <p mee-paragraph="para3" class="text-center-align">TraceId: {{$ctrl.getCurrentCvValue()}}<\/p>\n                     <\/div>\n                  <\/div>\n                ',controller:t})})(t=n.UnhandledExceptionHandler||(n.UnhandledExceptionHandler={}))})(t=n.Angular||(n.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={}));__assign=this&&this.__assign||Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n};!function(n){var t,i;t=n.OneUI||(n.OneUI={});(i=t.Angular||(t.Angular={})).baseModuleName="oneui.base";angular.module(i.baseModuleName,["ngSanitize","ui.router"])}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.restrict="A";this.classString=n instanceof Array?n.join(" "):n}return n.prototype.link=function(n,t){t.addClass(this.classString)},n}();i.AddClassDirective=r}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.attributesToAdd=n;this.restrict="A"}return n.prototype.link=function(n,t,i){var r=this;Object.keys(this.attributesToAdd).forEach(function(n){i.$set(n,r.attributesToAdd[n])})},n}();i.AddAttributeDirective=r}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u){this.$timeout=n;this.announcer=t;this.focuser=i;this.utils=r;this.watchOperationProgress=u}return n.prototype.monitorOperationProgress=function(n,t){var i=this;(Array.isArray(t)?t:[t]).forEach(function(t){i.watchOperationProgress(n,t.operationName,function(n,r){"started"===r?t.onWorkingAnnounce&&i.announcer.announce(t.onWorkingAnnounce):"finished"===r?(t.onSuccessAnnounce&&i.announcer.announce(t.onSuccessAnnounce),t.onSuccessSelector&&i.focuser.focus(t.onSuccessSelector,{})):"failed"===r&&(t.onFailureAnnounce&&i.announcer.announce(t.onFailureAnnounce),t.onFailureSelector&&i.focuser.focus(t.onFailureSelector,{}))})})},n.$inject=["$timeout","$meeA11yAnnouncer","$meeA11yFocuser","$meeA11yUtil","$meeWatchOperationProgress"],n}();angular.module(i.baseModuleName).service("$meeA11y",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$window=n;this.$meeHtmlUtil=t;this.focusableSelectors="a[href], button, input, map[name] area[href], object, textarea, .c-select-menu button, h1[tabindex], h2[tabindex], h3[tabindex], h4[tabindex], h5[tabindex], h6[tabindex]";this.errorName="MeeA11yUtil"}return n.prototype.getFocusableSelectors=function(){return this.focusableSelectors},n.prototype.isAutoFocusable=function(n){return(n.matches(this.focusableSelectors)||n.matches("[tabindex][aria-label]")||n.matches("[tabindex]")&&n.matches("h1, h2, h3, h4, h5, h6")||n.hasAttribute("mee-force-focusable"))&&!n.matches["[disabled='true']"]&&!this.$meeHtmlUtil.isHidden(n)},n.prototype.findFirstFocusableElement=function(n){var i,t,r;if(null===n||!n)throw new Error(this.errorName+".getFirstFocusableElement: passed targetElement was null or falsy");if(this.isAutoFocusable(n))return n;for(i=n.querySelectorAll(this.getFocusableSelectors()),t=0;t<i.length;t++)if(r=i[t],this.isAutoFocusable(r))return r;return null},n.$inject=["$window","$meeHtmlUtil"],n}();angular.module(i.baseModuleName).service("$meeA11yUtil",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$timeout=n;this.timeoutDelayMsec=100;this.liveElementId="mee_announcer_live_element";document.getElementById(this.liveElementId)?this.liveElement||(this.liveElement=document.getElementById(this.liveElementId)):this.liveElement=this.createLiveElement()}return n.prototype.announce=function(n,t){var i=this;void 0===t&&(t="polite");this.liveElement.textContent="";this.liveElement.setAttribute("aria-live",t);this.$timeout(function(){i.liveElement.textContent=n},this.timeoutDelayMsec,!1)},n.prototype.createLiveElement=function(){var n=document.createElement("div");return n.classList.add("x-screen-reader"),n.setAttribute("id",this.liveElementId),n.setAttribute("role","status"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),document.body.appendChild(n),n},n.$inject=["$timeout"],n}();angular.module(i.baseModuleName).service("$meeA11yAnnouncer",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$q=n;this.$timeout=t;this.$meeA11yUtil=i;this.errorName="$meeA11y.focuser";this.robustFocuserTimeout=1}return n.prototype.focus=function(n,t){if(void 0===t&&(t={}),!n)throw new Error(this.errorName+".focus: passed selector was falsy");"string"==typeof n?this.focusBySelector(n,t,"focus"):this.focusByElement(n,t)},n.prototype.focusBySelector=function(n,t,i){var r=this;this.robustFindElement(n).then(function(n){r.focusByElement(n,t)}).catch(function(){console.debug(r.errorName+"."+i+": was not able to find target element via "+n+", did not set focus")})},n.prototype.focusByElement=function(n,t){var i;i=t&&t.simpleSearch?n:this.$meeA11yUtil.findFirstFocusableElement(n);this.setFocusOn(i)},n.prototype.robustFindElement=function(n){var t=this,i=this.findElement(n);return i?this.$q.resolve(i):this.$timeout(this.robustFocuserTimeout).then(function(){var i=t.findElement(n);return i?t.$q.resolve(i):t.$q.reject()})},n.prototype.findElement=function(n){var t=document.querySelectorAll(n);return angular.element(t)[0]},n.prototype.setFocusOn=function(n){this.$timeout().then(function(){n.focus()})},n.$inject=["$q","$timeout","$meeA11yUtil"],n}();angular.module(i.baseModuleName).service("$meeA11yFocuser",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.$document=n;this.$timeout=t;this.$meeA11yUtil=i;this.$meeStringUtil=r;this.restrict="A"}return n.factory=function(){var t=function(t,i,r,u){return new n(t,i,r,u)};return t.$inject=["$document","$timeout","$meeA11yUtil","$meeStringUtil"],t},n.prototype.link=function(n,t,i){var u=this,r=angular.element(t)[0],f=this.$meeStringUtil.extractTokens(i.meeAutoFocus);if(1<f.length)throw new Error("meeAutoFocus: Given more than one parameter");this.$meeA11yUtil.isAutoFocusable(r)&&r.setAttribute("autofocus","true");this.$timeout(function(){var t,i,n,e;if(1===f.length&&(t=f[0],!(r=u.$document[0].getElementById(t))))throw new Error("meeAutoFocus: Element with ID of '"+t+"' does not exist");if(!u.$meeA11yUtil.isAutoFocusable(r))for(i=r.querySelectorAll(u.$meeA11yUtil.getFocusableSelectors()),n=0;n<i.length;n++)if(e=i[n],u.$meeA11yUtil.isAutoFocusable(e)){r=e;break}u.$meeA11yUtil.isAutoFocusable(r)&&r.focus()},200)},n}();angular.module(i.baseModuleName).directive("meeAutoFocus",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(t,i,r){var u=this;this.$rootScope=t;this.$meeStringUtil=i;this.$meeUtil=r;this.errors={};this.changedErrors={};this.updateErrorViewsImpl=r.debounce(function(){u.$rootScope.$broadcast(n.ErrorsChangedEventName,Object.keys(u.changedErrors));u.changedErrors={}},100)}return n.prototype.getError=function(n){if(!n)throw new Error("Error id must be provided.");return this.errors[n]},n.prototype.setError=function(n,t){this.setErrorImpl(n,t);this.updateErrorViews()},n.prototype.setErrors=function(n){var i,t,r,u;if(!n)throw new Error("Errors must be provided.");if(i=Object.keys(n),!i.length)throw new Error("Errors property bag does not have any errors defined.");for(t=0,r=i;t<r.length;t++)u=r[t],this.setErrorImpl(u,n[u]);this.updateErrorViews()},n.prototype.reset=function(n){if(!n)throw new Error("Error id must be provided.");var t=n;this.errors[t]&&(delete this.errors[t],this.changedErrors[t]=!0,this.updateErrorViews())},n.prototype.getErrorsInCategory=function(n){var i=this,t={};return this.getCategoryIds(n).forEach(function(n){t[n]=i.errors[n]}),t},n.prototype.hasErrorsInCategory=function(n){return!!this.getCategoryIds(n).length},n.prototype.resetCategory=function(n){for(var r,t=0,i=this.getCategoryIds(n);t<i.length;t++)r=i[t],delete this.errors[r],this.changedErrors[r]=!0;this.updateErrorViews()},n.prototype.subscribeForErrorsChangedNotification=function(t,i){return t.$on(n.ErrorsChangedEventName,function(n,t){return i(t)})},n.prototype.updateErrorViews=function(){this.updateErrorViewsImpl()},n.prototype.setErrorImpl=function(n,t){if(!n)throw new Error("Error id must be provided.");if(!t)throw new Error("Error must be provided for "+n+".");var i=n;this.errors[i]=t;this.changedErrors[i]=!0},n.prototype.getCategoryIds=function(n){if(!n)throw new Error("Error category must be provided.");for(var u=Object.keys(this.errors),t=[],f=function(n){var i=n+".",r=u.filter(function(n){return n.substr(0,i.length)===i});t.push.apply(t,r)},i=0,r=this.$meeStringUtil.extractTokens(n);i<r.length;i++)f(r[i]);return t},n.$inject=["$rootScope","$meeStringUtil","$meeUtil"],n.ErrorsChangedEventName="$meeErrors_errorsChanged",n}();angular.module(i.baseModuleName).service("$meeErrors",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u,f){this.$meeErrors=n;this.$scope=t;this.$element=i;this.$meeUtil=r;this.$meeHtmlUtil=u;this.options=f}return n.prototype.$onInit=function(){var n=this;if(!this.options.errorId)throw new Error("errorId must be provided.");if(this.options.kind){if("screenreader"!==this.options.kind)throw new Error("Kind '"+this.options.kind+"' is not supported.");this.errorClass="x-screen-reader"}this.errorElementId="error-"+this.$meeUtil.nextUid();this.refreshView([this.options.errorId]);this.errorsUnsubscribeFunc=this.$meeErrors.subscribeForErrorsChangedNotification(this.$scope,function(t){return n.refreshView(t)})},n.prototype.$onDestroy=function(){this.errorsUnsubscribeFunc&&this.errorsUnsubscribeFunc()},n.prototype.getErrorElementId=function(){return this.errorElementId},n.prototype.getErrorText=function(){return this.errorText},n.prototype.getErrorClass=function(){return this.errorClass},n.prototype.refreshView=function(n){var t=this,i,r;-1!==n.indexOf(this.options.errorId)&&(i=this.$meeErrors.getError(this.options.errorId),r=!1,r=!0===i?(delete this.errorText,!0):(this.errorText=i,!!this.errorText),this.$meeUtil.afterContentComplete(function(){var h="[data-error-id~='"+t.options.errorId+"']",c=t.$element.parent()[0],l=t.options.inputSelectorFormat.replace(/\{0\}/g,h),e=c.querySelectorAll(l),o=c.querySelectorAll(h),s="aria-labelledby",u="data-element-errors",n,f,i;if(r){for(n=0;n<o.length;n++)(f=o[n]).classList.add("error-input-container"),t.$meeHtmlUtil.addTokenToAttributeValueOnce(f,u,t.options.errorId);for(n=0;n<e.length;n++)(i=e[n]).classList.add("error-input"),i.setAttribute("aria-invalid","true"),t.$meeHtmlUtil.addTokenToAttributeValueOnce(i,u,t.options.errorId),t.errorText?t.$meeHtmlUtil.addTokenToAttributeValueOnce(i,s,t.errorElementId):t.$meeHtmlUtil.removeTokenFromAttributeValue(i,s,t.errorElementId)}else{for(n=0;n<o.length;n++)f=o[n],t.$meeHtmlUtil.removeTokenFromAttributeValue(f,u,t.options.errorId),f.getAttribute(u)||f.classList.remove("error-input-container");for(n=0;n<e.length;n++)i=e[n],t.$meeHtmlUtil.removeTokenFromAttributeValue(i,u,t.options.errorId),t.$meeHtmlUtil.removeTokenFromAttributeValue(i,s,t.errorElementId),i.getAttribute(u)||(i.classList.remove("error-input"),i.removeAttribute("aria-invalid"))}}))},n}();angular.module(i.baseModuleName).factory("errorViewFactory",[function(){return function(n,t,i,u,f,e){return new r(n,t,i,u,f,e)}}])}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.element=n}return n.prototype.$onInit=function(){var n=["xs","sm","md","lg","xl","xxl"];if(-1===n.indexOf(this.size))throw new Error("mee-media component - Error '"+this.size+"' is not a supported size. Supported sizes are "+n.join(", "));},n.$inject=["$element"],n}();u=function(){function n(){this.restrict="A"}return n.prototype.link=function(n,t){t.addClass("c-heading-6")},n}();angular.module(i.baseModuleName).component("meeMedia",{transclude:{image:"?mediaImage",body:"?mediaBody"},template:'<div ng-transclude="image"><\/div>\n                       <div mee-metatext class="media-body-wrapper" ng-transclude="body"><\/div>',bindings:{size:"@"},controller:r}).directive("mediaHeading",function(){return new u})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.beginMultiStepScenario=function(){},n.prototype.endStep=function(){},n.prototype.cancelStep=function(){},n.prototype.endMultiStepScenario=function(){},n.prototype.cancelMultiStepScenario=function(){},n}();angular.module(i.baseModuleName).service("$meeModalStateServiceTelemetry",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u,f){var e=this;this.$state=n;this.$meeModalDialogService=t;this.$meeModalStateServiceTelemetry=i;this.$rootScope=r;this.$window=u;this.$stateProvider=f;this.trackBi=!1;r.$on("$stateChangeStart",function(n,t,i){e.handleStateChange(n,t,i)});this.previouslyFocusedElement=null}return n.prototype.show=function(n,t,i){var r=this,u;if(this.activeModalDialogElementSelector)throw new Error('$meeModal: "'+this.activeModalDialogElementSelector+'" is currently open. Please close it before opening "'+n+'".');if(i&&i.trackBi&&!i.bi)throw new Error("$meeModal: BI information must be provided.");return this.initialStateId=this.$state.current.name,this.previouslyFocusedElement=this.$window.document.activeElement,this.previouslyFocusedElement&&this.previouslyFocusedElement.focus||(this.previouslyFocusedElement=null),u={onDismissed:function(){r.dismissInternal(i)},modalHostOptions:i&&i.modalHostOptions},this.$meeModalDialogService.show(n,u).then(function(){r.onBackButtonDismissed=function(){return r.$meeModalDialogService.hide().then(function(){return r.dismissInternal(i)})};var u,f=r.initialStateId;if(r.backStack=[],r.activeModalDialogElementSelector=n,i&&(r.activeModalData=i.data,i.stateIdOnLastGoBack))if("string"==typeof i.stateIdOnLastGoBack)f=i.stateIdOnLastGoBack;else{if(!i.stateIdOnLastGoBack.stateId)throw new Error("$meeModal: stateIdOnLastGoBack.stateId must be set.");f=i.stateIdOnLastGoBack.stateId;u=i.stateIdOnLastGoBack}return r.backStack.push({hide:!0,stateId:f,stateParams:u&&u.stateParams,stateOptions:u&&u.stateOptions}),r.trackBi=i&&!!i.trackBi,r.bi=r.trackBi&&{scenario:{area:i.bi.area,scenario:i.bi.scenario,currentStep:i.bi.firstStep,attribution:i.bi.attribution},doNotEndScenario:i.bi.doNotEndScenario},r.trackBi&&!i.bi.doNotStartScenario&&r.$meeModalStateServiceTelemetry.beginMultiStepScenario(angular.copy(r.bi.scenario)),r.switchToInternal({stateId:t,stateOptions:i&&i.stateOptions,stateParams:i&&i.stateParams,modalHostOptions:i&&i.modalHostOptions})})},n.prototype.showSimple=function(n,t,i){var r=this.$state.current.name+"."+t;return null===this.$state.get(r)&&this.$stateProvider.state(r,{views:{"modalContent@":{template:"<"+t+"><\/"+t+">"}}}),this.show(n,r,i)},n.prototype.hide=function(n,t){return n||(n=this.initialStateId),"string"==typeof n?this.hideInternal({stateId:n,bi:t}):this.hideInternal(n)},n.prototype.switchTo=function(n,t){var i;if(i="string"==typeof n?{stateId:n,bi:t}:n,this.trackBi&&!i.bi)throw new Error("$meeModal: BI information must be provided.");return this.backStack.push(__assign({},this.activeState,{biStep:this.trackBi&&this.bi.scenario.currentStep})),this.switchToInternal(i)},n.prototype.goBack=function(n){var t,i,r;if(!this.backStack||!this.backStack.length)throw new Error("$meeModal: Back stack is empty.");return(t=this.backStack.pop(),t.hide)?this.hide({stateId:t.stateId,bi:n,stateParams:t.stateParams,stateOptions:t.stateOptions}):(i=void 0,this.trackBi&&(r=n||{success:!0},i=__assign({step:t.biStep},r)),this.switchToInternal({stateId:t.stateId,bi:i,stateParams:t.stateParams,stateOptions:t.stateOptions,modalHostOptions:t.modalHostOptions}))},n.prototype.stayInCurrentState=function(n){if(!this.activeModalDialogElementSelector)throw new Error("$meeModal: There is no active modal dialog flow.");if(this.trackBi&&!n)throw new Error("$meeModal: BI information must be provided.");this.trackBi&&this.$meeModalStateServiceTelemetry.endStep(this.bi.scenario,{step:this.bi.scenario.currentStep,success:n.success,error:n.error})},n.prototype.getData=function(){return this.activeModalData},n.prototype.setData=function(n){this.activeModalData=n},n.prototype.isArgumentOfType=function(n,t){return n&&void 0!==n[t]},n.prototype.switchToInternal=function(n){var r=this,t,i;if(!this.activeModalDialogElementSelector)throw new Error("$meeModal: There is no active modal dialog flow.");return this.trackBi&&n.bi&&(t=n.bi,(t.cancel?this.$meeModalStateServiceTelemetry.cancelStep:this.$meeModalStateServiceTelemetry.endStep)(angular.copy(this.bi.scenario),t),this.bi.scenario.currentStep=t.step),i=this.$state.get(n.stateId),i&&(i._isModal=!0),this.$state.go(n.stateId,n.stateParams,n.stateOptions).then(function(){r.$meeModalDialogService.stateSwitched({modalHostOptions:n.modalHostOptions});r.activeState={stateId:n.stateId,stateParams:n.stateParams,stateOptions:n.stateOptions,modalHostOptions:n.modalHostOptions}})},n.prototype.hideInternal=function(n){var t=this;if(!this.activeModalDialogElementSelector)throw new Error("$meeModalThere is no active modal dialog flow.");return this.$meeModalDialogService.hide().then(function(){return t.onHidden(n)})},n.prototype.dismissInternal=function(n){var r=n&&n.onDismissed&&n.onDismissed(),i,t;if(!r){if(i=this.initialStateId,t=void 0,n&&n.stateIdOnDismiss)if("string"==typeof n.stateIdOnDismiss)i=n.stateIdOnDismiss;else{if(!n.stateIdOnDismiss.stateId)throw new Error("$meeModal: stateIdOnDismiss.stateId must be set.");i=n.stateIdOnDismiss.stateId;t=n.stateIdOnDismiss}r={stateId:i,stateParams:t&&t.stateParams,stateOptions:t&&t.stateOptions,bi:{cancel:!0,success:!0}}}this.onHidden(r)},n.prototype.onHidden=function(n){var t,i;if(this.trackBi&&!this.bi.doNotEndScenario&&(t=n&&n.bi?n.bi:{success:!0},(t.cancel?this.$meeModalStateServiceTelemetry.cancelMultiStepScenario:this.$meeModalStateServiceTelemetry.endMultiStepScenario)(angular.copy(this.bi.scenario),t)),i=this.previouslyFocusedElement,this.resetServiceState(),!n.stateId)throw new Error("$meeModal: Cannot find state to switch to after hiding modal dialog.");this.$state.go(n.stateId,n.stateParams,n.stateOptions).then(function(){i&&i.focus()})},n.prototype.resetServiceState=function(){delete this.activeModalDialogElementSelector;delete this.activeState;delete this.activeModalData;delete this.backStack;delete this.onBackButtonDismissed;this.previouslyFocusedElement=null;this.trackBi=!1;delete this.bi},n.prototype.handleStateChange=function(n,t,i){var r=this;this.onBackButtonDismissed&&!t._isModal&&(i&&i._modalDismissQuietly?this.$meeModalDialogService.hide().then(function(){return r.resetServiceState()}):(n.preventDefault(),this.onBackButtonDismissed()))},n.$inject=["$state","$meeModalDialogService","$meeModalStateServiceTelemetry","$rootScope","$window","$stateProvider"],n}();angular.module(i.baseModuleName).config(["$stateProvider","$provide",function(n,t){t.value("$stateProvider",n)}]).service("$meeModal",r)}(MeePortal||(MeePortal={})),function(n){var t;(function(n){function f(n,u,f){function s(u){t[n]=u;f.$broadcast(i,n,u);r&&r()}var e,h=function(n){return s("finished"),n},c=function(n){throw s("failed"),n;},o;s("started");try{return o=u(),(e=o)&&e.then&&e.catch&&e.finally?o.then(h,c):h(o)}catch(u){c(u)}}var i="OperationProgress",e={EventName:i,OperationInert:"inert",OperationStarted:"started",OperationFinished:"finished",OperationFailed:"failed"},r,u,t;angular.module(n.baseModuleName).constant("$meeOperationProgress",e);t={};angular.module(n.baseModuleName).run(["$meeUtil",function(n){r=n.debounce(function(){return t={}},500)}]);angular.module(n.baseModuleName).factory("$meeMonitoredOperation",["$rootScope",function(n){return function(t,i){return f(t,i,n)}}]);angular.module(n.baseModuleName).factory("$meeWatchOperationProgress",["$meeStringUtil",function(n){return function(r,u,f){function y(n,t){a.apply(v,[n,t])}var h,a,c,e,v,o,l,s;if(!(a="string"!=typeof u?u||f:(h=u,f)))throw new Error("Callback for watched operation progress must be provided.");for(c=!!h,e=[],c&&(e=n.extractTokens(h)),v=this,o=0,l=e;o<l.length;o++)s=l[o],t[s]&&y(s,t[s]);r.$on(i,function(n,t,i){c&&-1===e.indexOf(t)||y(t,i)})}}]);n.__overrideMonitorOperationProgressInjectorForTests=function(n){u=n};n.MonitorOperationProgress=function(n){if(!n)throw new Error("operationName must be provided.");return function(t,i){var r=t[i];return t[i]=function(){for(var t,o,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(t=u||this.__getAngularInjector&&this.__getAngularInjector(),t||(t=angular.element(document.querySelector(".ng-scope")).injector()),!t||!t.invoke)throw new Error("MonitorOperationProgress decorator could not obtain AngularJS injector instance. Make sure your class exposes __getAngularInjector() method that returns AngularJS injector service. In unit tests call __overrideMonitorOperationProgressForTests() in setup code.");return o=this,t.invoke(["$rootScope",function(t){return f(n,function(){return r.apply(o,e)},t)}])}}}})((t=n.OneUI||(n.OneUI={})).Angular||(t.Angular={}))}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f,e,o,s,h,c,l;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.watchOperationProgress=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeWatchOperationProgress"],t},n.prototype.link=function(n,t,i){if(!i.meeProgressShow)throw new Error("Operation name must be specified.");t.css("display","none");this.watchOperationProgress(n,i.meeProgressShow,function(n,i){"started"===i?t.css("display",""):t.css("display","none")})},n}();u=function(){function n(n){this.watchOperationProgress=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeWatchOperationProgress"],t},n.prototype.link=function(n,t,i){if(!i.meeProgressApplyClass)throw new Error("Operation name must be specified.");if(!i.className)throw new Error("className must be specified.");this.watchOperationProgress(n,i.meeProgressApplyClass,function(n,r){"started"===r?t.addClass(i.className):t.removeClass(i.className)})},n}();f=function(){function n(n,t){this.watchOperationProgress=n;this.meeProgressFocusService=t;this.restrict="A"}return n.factory=function(){var t=function(t,i){return new n(t,i)};return t.$inject=["$meeWatchOperationProgress","meeProgressFocusService"],t},n.prototype.link=function(n,t,i){var r=this;if(!i.meeProgressHide)throw new Error("Operation name must be specified.");this.watchOperationProgress(n,i.meeProgressHide,function(n,i){"started"===i?(r.meeProgressFocusService.saveFocus(t),t.css("display","none")):(t.css("display",""),r.meeProgressFocusService.restoreFocus(t))})},n}();e=function(){function n(n,t,i,r){this.$scope=n;this.watchOperationProgress=t;this.meeProgressFocusService=i;this.$element=r;this.isDisabled=!1}return n.prototype.$postLink=function(){var n=this;if(!this.meeProgressDisabled)throw new Error("Operation name must be specified.");this.watchOperationProgress(this.$scope,this.meeProgressDisabled,function(t,i){var r="started"===i;r?n.meeProgressFocusService.saveFocus(n.$element):n.meeProgressFocusService.restoreFocus(n.$element);n.isDisabled=r})},n.$inject=["$scope","$meeWatchOperationProgress","meeProgressFocusService","$element"],n}();o=function(){function n(n){this.$compile=n;this.priority=1001;this.terminal=!0;this.restrict="A";this.scope=!0;this.controllerAs="$meeProgressDisabled";this.controller=e;this.bindToController={meeProgressDisabled:"@"}}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$compile"],t},n.prototype.compile=function(n){var i=this,t=n.attr("ng-disabled");return t=t?"$meeProgressDisabled.isDisabled || ("+t+")":"$meeProgressDisabled.isDisabled",n.attr("ng-disabled",t),function(n,t){i.$compile(t,null,i.priority)(n)}},n}();s=function(){function n(n){this.watchOperationProgress=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeWatchOperationProgress"],t},n.prototype.link=function(n,t,i){if(!i.meeProgressVisible)throw new Error("Operation name must be specified.");t.css("visibility","hidden");this.watchOperationProgress(n,i.meeProgressVisible,function(n,i){"started"===i?t.css("visibility",""):t.css("visibility","hidden")})},n}();h=function(){function n(n,t){this.watchOperationProgress=n;this.meeProgressFocusService=t;this.restrict="A"}return n.factory=function(){var t=function(t,i){return new n(t,i)};return t.$inject=["$meeWatchOperationProgress","meeProgressFocusService"],t},n.prototype.link=function(n,t,i){var r=this;if(!i.meeProgressHidden)throw new Error("Operation name must be specified.");this.watchOperationProgress(n,i.meeProgressHidden,function(n,i){"started"===i?(r.meeProgressFocusService.saveFocus(t),t.css("visibility","hidden")):(t.css("visibility",""),r.meeProgressFocusService.restoreFocus(t))})},n}();c=function(){function n(n,t){this.watchOperationProgress=n;this.meeProgressFocusService=t;this.restrict="A"}return n.factory=function(){var t=function(t,i){return new n(t,i)};return t.$inject=["$meeWatchOperationProgress","meeProgressFocusService"],t},n.prototype.link=function(n,t,i){var r=this;if(!i.meeProgressCollapse)throw new Error("Operation name must be specified.");this.watchOperationProgress(n,i.meeProgressCollapse,function(n,i){"started"===i?(r.meeProgressFocusService.saveFocus(t),t.css("visibility","collapse")):(t.css("visibility",""),r.meeProgressFocusService.restoreFocus(t))})},n}();l=function(){function n(n,t){this.$document=n;this.$timeout=t}return n.prototype.saveFocus=function(n){var t=this.$document[0].activeElement;n[0].contains(t)&&(this.savedFocusElement=t)},n.prototype.restoreFocus=function(n){var t=this;this.savedFocusElement&&this.$document[0].activeElement===this.$document[0].body&&n[0].contains(this.savedFocusElement)&&this.$timeout(function(){t.savedFocusElement.focus();t.savedFocusElement=null})},n.$inject=["$document","$timeout"],n}();angular.module(i.baseModuleName).service("meeProgressFocusService",l).directive("meeProgressShow",r.factory()).directive("meeProgressHide",f.factory()).directive("meeProgressDisabled",o.factory()).directive("meeProgressVisible",s.factory()).directive("meeProgressHidden",h.factory()).directive("meeProgressCollapse",c.factory()).directive("meeProgressApplyClass",u.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.$scope=n;this.watchOperationProgress=t;this.$element=i;this.$meeUtil=r;this.states={inert:"inert",inProgress:"started",failed:"failed",finished:"finished"};this.ariaLabelAttributeName="data-aria-label"}return n.prototype.$onInit=function(){var n=this;this.currentState="inert";this.watchOperationProgress(this.$scope,this.watchOperation,function(t,i){n.currentState=n.inertWhenFinished&&"finished"===i?"inert":i;n.updateScreenReaderMessage()})},n.prototype.$postLink=function(){this.updateScreenReaderMessage()},n.prototype.updateScreenReaderMessage=function(){var n=this;this.$meeUtil.afterContentComplete(function(){switch(n.currentState){case"started":n.screenReaderMessage=n.$element.find("inprogress-view").attr(n.ariaLabelAttributeName);break;case"failed":n.screenReaderMessage=n.$element.find("failed-view").attr(n.ariaLabelAttributeName);break;case"finished":n.screenReaderMessage=n.$element.find("finished-view").attr(n.ariaLabelAttributeName);break;default:n.screenReaderMessage=n.$element.find("inert-view").attr(n.ariaLabelAttributeName)}})},n.$inject=["$scope","$meeWatchOperationProgress","$element","$meeUtil"],n}();angular.module(i.baseModuleName).component("meeProgressView",{controller:r,template:'\n<p aria-live="polite" class="x-screen-reader">{{$ctrl.screenReaderMessage}}<\/p>\n<div ng-transclude="inert" ng-show="$ctrl.currentState == $ctrl.states.inert"><\/div>\n<div ng-transclude="inprogress" ng-show="$ctrl.currentState == $ctrl.states.inProgress"><\/div>\n<div ng-transclude="failed" ng-show="$ctrl.currentState == $ctrl.states.failed"><\/div>\n<div ng-transclude="finished" ng-show="$ctrl.currentState == $ctrl.states.finished"><\/div>',transclude:{inert:"inertView",inprogress:"inprogressView",failed:"failedView",finished:"finishedView"},bindings:{watchOperation:"@",inertWhenFinished:"<"}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){var i=this;this.$scope=n;this.$q=t;this.showImage=!1;this.render=!1;this.httpsREGEX=/^https:\/\//;this.validateUrlUsesHttps=function(n){return i.httpsREGEX.test(n)}}return n.prototype.$onInit=function(){var n=this;this.$scope.$watch(function(){return n.src},function(){n.render=!1;n.showImage=!0;n.validateUrl(n.src).then(function(t){n.render=t}).catch(function(){n.render=!1}).finally(function(){n.showImage=n.render})})},n.prototype.validateUrl=function(n){var t=this.validator({url:n});return void 0!==t?this.$q.resolve(t):this.$q.resolve(this.validateUrlUsesHttps(n))},n.prototype.onLoad=function(){this.showImage=!0},n.prototype.onError=function(){this.showImage=!1},n.$inject=["$scope","$q"],n}();angular.module(i.baseModuleName).component("meeSafeImage",{template:'\n                    <img \n                        alt="{{$ctrl.alt}}"\n                        data-load-callback="$ctrl.onLoad()" \n                        data-error-callback="$ctrl.onError()" \n                        ng-if="$ctrl.render"\n                        ng-show="$ctrl.showImage"\n                        ng-src="{{$ctrl.src}}" \n                        mee-image="{{$ctrl.imgClass}}"\n                        mee-safe-image-on-load-and-error />\n                    <ng-transclude ng-hide="$ctrl.showImage"> \n                        <span \n                            aria-hidden="true"\n                            ng-hide="$ctrl.showImage" \n                            ng-class="$ctrl.icon"><\/span>\n                    <\/ng-transclude>\n                ',bindings:{alt:"@",validator:"&",icon:"@",imgClass:"@",src:"<"},transclude:!0,controller:r}).directive("meeSafeImageOnLoadAndError",function(){return{restrict:"A",scope:{loadCallback:"&",errorCallback:"&"},link:function(n,t){t.on("load",function(){return n.$evalAsync(function(){return n.loadCallback()})});t.on("error",function(){return n.$evalAsync(function(){return n.errorCallback()})})}}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeUtil=n;this.errorPrefix="$meeComponentRegistry: ";this.idStorage={};this.classStorage={}}return n.prototype.getInstanceById=function(n){if(!n)throw new Error(this.errorPrefix+" getInstanceById(): Passed id was falsy");if(!this.idStorage[n])throw new Error(this.errorPrefix+" getInstanceById(): Id not found in id storage");return this.idStorage[n].componentInstance},n.prototype.getInstancesByClass=function(n){var u;if(!n)throw new Error(this.errorPrefix+" getInstancesByClass(): Passed className was falsy");if(!this.classStorage[n])return[];for(var i=[],r=this.classStorage[n],t=0;t<r.length;t++)u=r[t],i.push(this.idStorage[u].componentInstance);return i},n.prototype.register=function(n,t,i){if(!n||!t||!i)throw new Error(this.errorPrefix+" register(): className, id, or componentInstance was falsy");this.idStorage[t]={className:n,componentInstance:i};this.addToClassStorage(n,t)},n.prototype.registerWithoutId=function(n,t){var i=this.$meeUtil.nextUid();return this.register(n,i,t),i},n.prototype.deregister=function(n){if(!n)throw new Error(this.errorPrefix+" deregister(): Passed id was falsy");if(!this.idStorage[n])throw new Error(this.errorPrefix+" deregister(): Id not found in id storage");var t=this.idStorage[n].className;this.classStorage[t]&&-1<this.classStorage[t].indexOf(n)&&this.classStorage[t].splice(this.classStorage[t].indexOf(n),1);delete this.idStorage[n]},n.prototype.addToClassStorage=function(n,t){this.classStorage[n]||(this.classStorage[n]=[]);this.classStorage[n].push(t)},n.$inject=["$meeUtil"],n}();angular.module(i.baseModuleName).service("$meeComponentRegistry",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$meeStringUtil=n;this.$window=t;this.polyfillElementMatches()}return n.prototype.prependClass=function(n,t){if(t){var i=n[0],r=this.$meeStringUtil.extractTokens(i.className);n.hasClass(t)?r[0]!==t&&(n.removeClass(t),i.className=t+" "+i.className):i.className=t+" "+i.className}},n.prototype.isHidden=function(n){var t=this.$window.getComputedStyle(n);return"none"===t.display||"hidden"===t.visibility||"0"===n.style.height.substring(0,1)&&"0."!=n.style.height.substring(0,2)||"0"===n.style.width.substring(0,1)&&"0."!=n.style.width.substring(0,2)||this.closestPolyfill(n)},n.prototype.closestPolyfill=function(n){return Element.prototype.closest||(Element.prototype.closest=function(n){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),!!n.closest(".ng-hide")},n.prototype.addTokenToAttributeValueOnce=function(n,t,i){if(!i)throw new Error("addTokenToAttributeValueOnce(): token must be specified.");var u=n.getAttribute(t)||"",r=this.$meeStringUtil.extractTokens(u);-1===r.indexOf(i)&&(r.push(i),n.setAttribute(t,r.join(" ")))},n.prototype.removeTokenFromAttributeValue=function(n,t,i){var r,u;if(!i)throw new Error("removeTokenFromAttributeValue(): token must be specified.");r=n.getAttribute(t)||"";r&&(u=this.$meeStringUtil.extractTokens(r).filter(function(n){return i!==n}),n.setAttribute(t,u.join(" ")))},n.prototype.polyfillElementMatches=function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(n){for(var i=(this.document||this.ownerDocument).querySelectorAll(n),t=i.length;0<=--t&&i.item(t)!==this;);return-1<t})},n.$inject=["$meeStringUtil","$window"],n}();angular.module(i.baseModuleName).service("$meeHtmlUtil",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.fireIrisBeacon=function(n){if(!n)return null;var t=document.createElement("img");return t.onerror=t.onload=t.onabort=function(){t.onerror=t.onload=t.onabort=null;t.src=""},t.src=n,t},n}();angular.module(i.baseModuleName).service("$meeIrisUtilityService",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.extractTokens=function(n){return n&&n.match(/[^\x20\t\r\n\f]+/g)||[]},n}();angular.module(i.baseModuleName).service("$meeStringUtil",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.extractBIID=function(n){var i=n.getAttribute("data-bi-id"),t,r;return i?i:(t=n.getAttribute("id"),t)?t:(r=n.getAttribute("name"),r||null)},n.prototype.extractTargetUrlForBI=function(n){var t=n.getAttribute("href"),i;return t?t:(i=n.getAttribute("ui-sref"),i||void 0)},n}();angular.module(i.baseModuleName).service("$meeTelemetryUtilityService",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.reportClick=function(){},n}();angular.module(i.baseModuleName).service("$meeTelemetryService",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$timeout=n;this.$rootScope=t}return n.prototype.nextUid=function(){return"auto-"+n.nextUniqueId++},n.prototype.getNewRandomNumber=function(n,t){for(var i;(i=Math.floor(Math.random()*n))===t&&1<n;);return i},n.prototype.debounce=function(n,t,i){var r,u=this;return function(){var f=this,e=arguments,o=i&&!r;r&&(u.$timeout.cancel(r),r=null);r=u.$timeout(function(){r=null;i||n.apply(f,e)},t);o&&n.apply(f,e)}},n.prototype.afterContentComplete=function(n){var t,i=this;this.$rootScope.$evalAsync(angular.noop);this.afterContentCompleteScope&&this.$rootScope.$$childTail===this.afterContentCompleteScope||(t=this.afterContentCompleteScope,this.afterContentCompleteScope=this.$rootScope.$new());this.afterContentCompleteScope.$watch("true",function(){t&&t.$destroy();i.$rootScope.$evalAsync(n)})},n.$inject=["$timeout","$rootScope"],n.nextUniqueId=0,n}();angular.module(i.baseModuleName).service("$meeUtil",r)}(MeePortal||(MeePortal={})),function(n){var t,i;i=n.OneUI||(n.OneUI={});(t=i.Angular||(i.Angular={})).moduleName="oneui";angular.module(t.moduleName,["ngSanitize","ui.router","oneui.base"]);angular.module(t.moduleName).constant("$oneUiDefaults",{paragraphStyle:"para3Lean"})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.element=n;this.attrs=t;this.controllers=[]}return n.prototype.$postLink=function(){if(this.attrs.kind){var n=this.attrs.kind.split(" ").filter(function(n){return"close-others"===n});this.closeOthers=!!n[0]}},n.prototype.registerController=function(n){var i=this,t=n.expandedChangedCallback;n.expandedChangedCallback=function(r){i.expandedChanged(n);t&&t(r)};this.controllers.push(n)},n.prototype.expandedChanged=function(n){this.closeOthers&&n.isExpanded()&&this.controllers.forEach(function(t){n!==t&&t.collapseDrawer()})},n.$inject=["$element","$attrs"],n}();angular.module(i.moduleName).component("meeAccordion",{transclude:!0,template:"<div ng-transclude><\/div>",controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.$element=n;this.$attrs=t;this.$meeStringUtil=i;this.$scope=r}return Object.defineProperty(n.prototype,"meeDisabled",{set:function(n){this.$element&&this.$element[0].setAttribute("aria-disabled",""+n)},enumerable:!0,configurable:!0}),n.prototype.$postLink=function(){var t=this.$meeStringUtil.extractTokens(this.$attrs.kind),n=this.$element[0],u=n.children[0],r,i;if(-1!==t.indexOf("checkbox")?n.setAttribute("role","menuitemcheckbox"):-1!==t.indexOf("radio")?n.setAttribute("role","menuitemradio"):n.setAttribute("role","menuitem"),-1!==t.indexOf("text-only")?n.classList.add("f-context-text-only"):n.classList.add("f-context-action-trigger"),-1!==t.indexOf("divider")&&n.classList.add("f-divider"),n.classList.remove("ng-isolate-scope"),n.classList.add("ng-isolate-scope"),n.classList.remove("ng-scope"),n.classList.add("ng-scope"),this.$attrs.glyph)for(u.classList.add("c-glyph"),r=this.$meeStringUtil.extractTokens(this.$attrs.glyph),i=0;i<r.length;i++)u.classList.add(r[i]);else if(-1===t.indexOf("text-only"))throw new Error("mee-action-menu-item: Specify a glyph or use the 'text-only' option.");},n.$inject=["$element","$attrs","$meeStringUtil","$scope"],n}();u=function(){function n(){this.restrict="A";this.controllerAs="actionMenuItem";this.controller=r;this.bindToController={meeDisabled:"<?"};this.template="<span ng-transclude><\/span>";this.transclude=!0;this.scope={}}return n.factory=function(){return function(){return new n}},n}();angular.module(i.moduleName).directive("meeActionMenuItem",u.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f,e,o;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r="##menuItems##";u="##buttonText##";f="##titleText##";e=function(){function n(n,t,i,r){this.$element=n;this.$mwfUtil=t;this.$meeStringUtil=i;this.$timeout=r}return n.prototype.$postLink=function(){var n=this;this.$mwfUtil.create(mwf.ActionMenu,this.$element).then(function(t){return n.actionMenuCallback(t)})},n.prototype.actionMenuCallback=function(n){n.subscribe(this)},n.prototype.onSelection=function(n){var t=this;this.onSelect&&this.$timeout().then(function(){return t.onSelect({id:n.id})})},n.prototype.handleKeyDown=function(n){if(13===n.keyCode||32===n.keyCode){var t=n.target||n.srcElement;this.$timeout(function(){return angular.element(t).triggerHandler("click")})}},n.$inject=["$element","$meeMwfUtil","$meeStringUtil","$timeout"],n}();o=function(){function n(){this.restrict="E";this.controllerAs="actionMenu";this.controller=e;this.bindToController={meeDisabled:"<?",onSelect:"&?onSelect",biId:"@?"};this.scope=!0}return n.factory=function(){return function(){return new n}},n.prototype.compile=function(n){var e=n.find("li"),h="",t,c,o,s,i;if(!e||0===e.length)throw new Error("mee-action-menu: At least one <mee-action-menu-item> element must be provided.");if(t=n.find("mee-action-menu-trigger"),c=t.attr("title")?t.attr("title"):"",!t||1!==t.length)throw new Error("mee-action-menu: Exactly one <mee-action-menu-trigger> element must be provided.");for(o=0;o<e.length;o++)s=e[o],s.getAttribute("ng-click")&&s.setAttribute("ng-keydown",this.controllerAs+".handleKeyDown($event)"),h=h+"\n                                "+s.outerHTML;return i='<div class="c-action-menu">\n                        <button class="c-action-trigger" aria-haspopup="true" aria-expanded="false" ng-disabled="actionMenu.meeDisabled" ng-attr-data-bi-id="{{actionMenu.biId}}" title="##titleText##">##buttonText##<\/button>\n                        <ul class="c-context-menu" role="menu">\n                          ##menuItems##\n                        <\/ul>\n                      <\/div>',i=(i=(i=i.replace(r,h)).replace(u,t.html())).replace(f,c),n.html(i),function(){}},n}();angular.module(i.moduleName).directive("meeActionMenu",o.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeStringUtil=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeStringUtil"],t},n.prototype.compile=function(n,t){var r=this,i;if(-1!==this.$meeStringUtil.extractTokens(t.meeActionTrigger).indexOf("glyph-only")){if(!t.glyph)throw new Error('meeActionTrigger: The "glyph-only" options requires a glyph to be specified.');i=n[0].innerText;n.empty();n.attr("aria-label",i);n.append('<span class="x-screen-reader">'+i+"<\/span>")}return function(n,t,i){t.addClass("c-action-trigger");i.glyph&&t.addClass("c-glyph glyph-"+i.glyph);var u=r.$meeStringUtil.extractTokens(i.meeActionTrigger);-1!==u.indexOf("heavyweight")&&i.$addClass("f-heavyweight");-1!==u.indexOf("align-margin")&&i.$addClass("f-align-margin")}},n}();angular.module(i.moduleName).directive("meeActionTrigger",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.element=n;this.attrs=t;this.$meeUtil=i;this.mwfUtil=r}return n.prototype.$postLink=function(){var t,i=this,r,u;if(this.attrs&&this.attrs.kind&&(r=this.attrs.kind.split(" "),t=r.filter(function(n){return"use-glyph"!==n&&"enable-cancel"!==n})[0],this.showGlyph=-1!==r.indexOf("use-glyph"),this.showCancelButton=-1!==r.indexOf("enable-cancel"),this.alertBugRepro=-1!==r.indexOf("bugRepro")),t){if("error"!==t&&"warning"!==t&&"info"!==t&&"bugRepro"!==t)throw new Error("mee-alert: '"+t+"' is not a valid option for 'kind'.");}else t="error";this.glyphClass=n.iconClassMap[t];u=this.element[0].getElementsByClassName("m-alert")[0];u.classList.add(n.alertClassMap[t]);this.alertBugRepro&&u.setAttribute("role","alert");this.showCancelButton&&!this.attrs.cancelLabel&&console.warn("Alert component: please provide aria-label text by using the cancel-label attribute.");this.$meeUtil.afterContentComplete(function(){var r,n,t;if(i.removeIfEmpty("alert-header"),i.removeIfEmpty("alert-actions"),r=i.element[0].getElementsByClassName("alert-actions")[0],r){if(n=r.getElementsByTagName("a"),2<n.length)throw new Error("Invalid markup. You may specify a maximum of two alert actions.");for(t=0;t<n.length;t++)n[t].classList.add("c-action-trigger")}i.alertBugRepro||u.setAttribute("role","alert");i.mwfUtil.create(mwf.Alert,i.element).then(function(n){return i.alertCallback(n)})})},n.prototype.alertCallback=function(n){n.subscribe(this)},n.prototype.onAlertClosed=function(){this.onClosed&&this.onClosed()},n.prototype.removeIfEmpty=function(n){var t=this.element[0].getElementsByClassName(n)[0];t.textContent||t.parentNode.removeChild(t)},n.$inject=["$element","$attrs","$meeUtil","$meeMwfUtil"],n.iconClassMap={error:"glyph-incident-triangle",warning:"glyph-warning",info:"glyph-info",bugRepro:"bug"},n.alertClassMap={error:"f-error",warning:"f-warning",info:"f-information",bugRepro:"bug"},n}();angular.module(i.moduleName).component("meeAlert",{template:'<div class="m-alert">\n                            <button ng-if="$ctrl.showCancelButton" class="c-action-trigger c-glyph glyph-cancel alert-cancel-button" ng-attr-aria-label="{{$ctrl.attrs.cancelLabel}}"><\/button>\n                            <div>\n                                <div ng-if="$ctrl.showGlyph" aria-hidden="true" ng-class="[\'c-glyph alert-icon-div\', $ctrl.glyphClass]"><\/div>\n                                <div class="c-heading alert-header" ng-transclude="alert-header"><\/div>\n\n                                <p class="c-paragraph">\n                                    <span class="alert-content" ng-transclude="alert-content"><\/span>\n                                    <span class="alert-actions c-group" ng-transclude="alert-actions"><\/span>\n                                <\/p>\n                            <\/div>\n                        <\/div>',bindings:{onClosed:"&?onClosed"},transclude:{"alert-header":"?alertHeader","alert-content":"alertContent","alert-actions":"?alertActions"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeStringUtil=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeStringUtil"],t},n.prototype.link=function(t,i,r){var u,e,f;if(i.addClass("c-badge"),r.meeBadge)for(u=0,e=this.$meeStringUtil.extractTokens(r.meeBadge);u<e.length;u++){if(f=e[u],!(f in n.classMap))throw new Error("'"+f+"' is not a valid option for 'mee-badge'");i.addClass(n.classMap[f])}},n.classMap={small:"f-small",large:"f-large",responsive:"f-responsive",highlight:"f-highlight",lowlight:"f-lowlight"},n}();angular.module(i.moduleName).directive("meeBadge",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A";this.template="<span><ng-transclude><\/ng-transclude><\/span>";this.transclude=!0}return n.prototype.link=function(n,t){if("A"!==t[0].tagName&&"BUTTON"!==t[0].tagName)throw new Error("'"+t[0].tagName+"' is an invalid tag type for call-to action; requires <a> or <button> tag");t.addClass("c-call-to-action c-glyph f-lightweight")},n}();angular.module(i.moduleName).directive("meeBannerLink",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=["space-3-col","space-col-image"];u=function(){function n(n){this.$transclude=n}return n.prototype.$onInit=function(){if(-1===r.indexOf(this.layout))throw new Error("mee-banner component - Error '"+this.layout+"' is not a supported layout.");},n.prototype.hasSlot=function(n,t){return!t&&this.$transclude.isSlotFilled(n)},n.$inject=["$transclude"],n}();angular.module(i.moduleName).component("meeBanner",{transclude:{meeBannerSlot1:"?meeBannerSlot1",meeBannerSlot2:"?meeBannerSlot2",meeBannerSlot3:"?meeBannerSlot3",meeBannerSlot4:"?meeBannerSlot4"},template:'\n                <div data-grid="col-12" class="amc-banner theme-dark">\n                    <div data-grid="container pad-12x">\n                        <div ng-if="$ctrl.layout == \'space-3-col\'"\n                                class="space-3-col banner-padded-content"\n                                data-grid="col-12 stack-3">\n                                <div ng-if="$ctrl.hasSlot(\'meeBannerSlot1\', $ctrl.hideSlot1)"\n                                    ng-transclude="meeBannerSlot1"\n                                    class="main-column"\n                                    data-grid="col-5" ><\/div>\n\n                                <div class="info-columns" data-grid="col-7 stack-1">\n                                    <div ng-if="$ctrl.hasSlot(\'meeBannerSlot2\', $ctrl.hideSlot2)"\n                                        ng-transclude="meeBannerSlot2"\n                                        class="info-column"\n                                        data-grid="col-4"><\/div>\n\n                                    <div ng-if="$ctrl.hasSlot(\'meeBannerSlot3\', $ctrl.hideSlot3)"\n                                        ng-transclude="meeBannerSlot3"\n                                        class="info-column"\n                                        data-grid="col-4"><\/div>\n\n                                    <div ng-if="$ctrl.hasSlot(\'meeBannerSlot4\', $ctrl.hideSlot4)"\n                                        ng-transclude="meeBannerSlot4"\n                                        class="info-column"\n                                        data-grid="col-4"><\/div>\n                                <\/div>\n                        <\/div>\n\n                        <div ng-if="$ctrl.layout == \'space-col-image\'"\n                            class="space-col-image"\n                            data-grid="col-12">\n                            <div class="title-statement-section banner-padded-content"\n                                 data-grid="col-9 stack-3">\n                                <div ng-if="$ctrl.hasSlot(\'meeBannerSlot1\', $ctrl.hideSlot1)"\n                                     ng-transclude="meeBannerSlot1"\n                                     class="title-column"\n                                     data-grid="col-9"><\/div>\n                                <div ng-if="$ctrl.hasSlot(\'meeBannerSlot2\', $ctrl.hideSlot2)"\n                                     ng-transclude="meeBannerSlot2"\n                                     class="statement-column"\n                                     data-grid="col-3"><\/div>\n                            <\/div>\n                            <div ng-if="$ctrl.hasSlot(\'meeBannerSlot3\', $ctrl.hideSlot3)"\n                                 ng-transclude="meeBannerSlot3"\n                                 class="image-column"\n                                 data-grid="col-3">\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            ',bindings:{layout:"@",hideSlot1:"<",hideSlot2:"<",hideSlot3:"<",hideSlot4:"<"},controller:u})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A";this.scope={cmsLink:"<"}}return n.prototype.link=function(n,t,i){var r=n.cmsLink,u;if(r&&("meeNoHref"in i||(t.attr("href",r.url),r.target&&t.attr("target",r.target)),t.text(r.text),r.id&&t.attr("id",r.id),r.ariaLabel&&t.attr("aria-label",r.ariaLabel),r.customAttrs))for(u in r.customAttrs)t.attr(u,r.customAttrs[u])},n}();angular.module(i.moduleName).directive("cmsLink",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.element=n;this.$timeout=t;this.$meeTelemetryService=i;this.$meeTelemetryUtilityService=r}return n.prototype.$onInit=function(){this.clickable=void 0===this.clickable||this.clickable},n.prototype.onClick=function(n){this.triggerCTA(n)},n.prototype.triggerCTA=function(n){var i=this,t;n.target.closest&&n.target.closest("a[mee-banner-link]")||n.target.tagName&&"a"===n.target.tagName.toLowerCase()||(t=this.element[0].querySelectorAll("a[mee-banner-link]")[0],t&&this.clickable&&this.$timeout(function(){i.$meeTelemetryService.reportClick({clickId:i.$meeTelemetryUtilityService.extractBIID(t),targetUri:i.$meeTelemetryUtilityService.extractTargetUrlForBI(t)});t.click()}))},n.$inject=["$element","$timeout","$meeTelemetryService","$meeTelemetryUtilityService"],n}();u={template:'<div ng-class="{\'clickable\': $ctrl.clickable}" ng-click="$ctrl.onClick($event);">\n                       <div ng-transclude="media-image"><\/div>\n                       <div ng-transclude="media-body"><\/div>\n                   <\/div>',transclude:{"media-image":"?mediaImage","media-body":"?mediaBody"},bindings:{clickable:"<?"},controller:i.MeeBannerMediaComponent=r};angular.module(i.moduleName).component("meeBannerMedia",u)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeStringUtil=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeStringUtil"],t},n.prototype.link=function(n,t,i){var r,u,f;if(t.addClass("c-button"),i.meeButton)for(r=0,u=this.$meeStringUtil.extractTokens(i.meeButton);r<u.length;r++){f=u[r];switch(f){case"primary":t.addClass("f-primary");break;case"lightweight":t.addClass("f-lightweight");break;case"flex":t.addClass("f-flex");break;default:throw new Error("Unsupported mee-button type: "+f);}}},n}();angular.module(i.moduleName).directive("meeButton",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A";this.template="<span><ng-transclude><\/ng-transclude><\/span>";this.transclude=!0}return n.prototype.link=function(t,i,r){if(r.meeCallToAction&&!(r.meeCallToAction in n.classMap))throw new Error("'"+r.meeCallToAction+"' is not a valid option for 'mee-call-to-action'");if("A"!==i[0].tagName)throw new Error("'"+i[0].tagName+"' is an invalid tag type for call-to action; requires <a> tag");i.addClass("c-call-to-action c-glyph");i.addClass(n.classMap[r.meeCallToAction])},n.classMap={primary:"",secondary:"f-secondary",lightweight:"f-lightweight",featurePrimary:"f-primary"},n}();angular.module(i.moduleName).directive("meeCallToAction",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A"}return n.prototype.link=function(t,i,r){if(!(r.meeCaption in n.classMap))throw new Error("'"+r.meeCaption+"' is not a valid option for 'mee-caption'");i.addClass(n.classMap[r.meeCaption]||n.classMap.caption1)},n.classMap={caption1:"c-caption-1",caption2:"c-caption-2"},n}();angular.module(i.moduleName).directive("meeCaption",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t;(function(n){n.CardGroupLayout={feed:"f-feed",channel:"f-channel"};var t=function(){function t(n,t){this.$scope=n;this.$element=t}return t.prototype.$postLink=function(){if(this.groupLayout&&!(this.groupLayout in n.CardGroupLayout))throw new Error("Invalid Markup: The Card Component 'groupLayout' attribute is invalid. See CardGroupLayoutType for valid values. Value: "+this.groupLayout);},t.prototype.getGroupLayout=function(t){return t?n.CardGroupLayout[t]:""},t.$inject=["$scope","$element"],t}();angular.module(n.moduleName).component("meeCardGroup",{transclude:!0,bindings:{groupLayout:"@"},controller:t,template:"<div ng-class=\"['m-card-group', $ctrl.getGroupLayout($ctrl.groupLayout)]\" ng-transclude />"})})((t=n.OneUI||(n.OneUI={})).Angular||(t.Angular={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){n.CardDisplay={single:"f-single",double:"f-double"};var t=function(){function t(n,t,i){this.$scope=n;this.$element=t;this.$transclude=i;this.clickableHeader=!1}return t.prototype.$postLink=function(){if(this.$element.addClass("c-card"),this.displayType||(this.displayType="single"),!(this.displayType in n.CardDisplay))throw new Error("Invalid Markup: The Card Component 'displayType' attribute is invalid. See CardDisplayType for valid values. Value: "+this.displayType);this.$element.addClass(n.CardDisplay[this.displayType])},t.prototype.hasHeader=function(){return this.$transclude.isSlotFilled("header")},t.prototype.onHeaderClick=function(n){n.currentTarget&&n.currentTarget.classList.contains("clickable")&&n.target&&n.target.hasAttribute("mee-heading")&&this.$scope.$broadcast("$meeCardHeaderClicked")},t.$inject=["$scope","$element","$transclude"],t}();n.CardComponent=t;angular.module(n.moduleName).component("meeCard",{transclude:{header:"?cardHeader",content:"cardContent"},controller:t,bindings:{displayType:"@",clickableHeader:"<?"},template:'<div class="card-heading" ng-class="{clickable: $ctrl.clickableHeader}" ng-if="$ctrl.hasHeader()" ng-click="$ctrl.onHeaderClick($event)" ng-transclude="header"><\/div><div class="c-card-content" ng-transclude="content"><\/div>'})})((t=n.OneUI||(n.OneUI={})).Angular||(t.Angular={}))}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u,f,e,o,s){var h=this;if(this.$scope=n,this.$timeout=t,this.element=i,this.onCallToActionClick=r,this.clickable=u,this.rewardsPoints=f,this.$meeTelemetryService=e,this.$meeTelemetryUtilityService=o,this.$meeHtmlUtil=s,this.clickable=void 0===this.clickable||this.clickable,this.clickable&&(this.element.addClass("clickable"),this.element[0].addEventListener("click",this.onClick.bind(this)),this.unsubscribeHeaderClickListener=this.$scope.$on("$meeCardHeaderClicked",function(){h.$timeout(function(){h.cardHeaderClick()})})),this.showRewardsPoints=void 0!==this.rewardsPoints,this.rewardsPoints<0)throw new Error("Base card content component - Error: '"+this.rewardsPoints+"' must be a positive number.");}return n.prototype.onDestroy=function(){this.clickable&&(this.element[0].removeEventListener("click",this.onClick.bind(this)),this.unsubscribeHeaderClickListener&&this.unsubscribeHeaderClickListener())},n.prototype.onCTAClick=function(n){this.onCallToActionClick?(n.preventDefault(),this.clickable||this.onCallToActionClick()):this.clickable&&n.stopPropagation()},n.prototype.onClick=function(n){this.triggerCallToAction(n)},n.prototype.cardHeaderClick=function(){var n=this.element[0];n&&!this.$meeHtmlUtil.isHidden(n)&&this.element[0].click()},n.prototype.triggerCallToAction=function(n){var i=n.srcElement.classList.contains("c-call-to-action"),t;("A"===n.srcElement.tagName||"BUTTON"===n.srcElement.tagName||n.srcElement.classList.contains("c-context-menu")||n.srcElement.parentElement&&("BUTTON"===n.srcElement.parentElement.tagName||n.srcElement.parentElement.classList.contains("c-context-menu")))&&!i||(this.onCallToActionClick?this.onCallToActionClick():i||(t=this.element[0].querySelectorAll("a[mee-call-to-action]")[0],t&&(this.$meeTelemetryService.reportClick({clickId:this.$meeTelemetryUtilityService.extractBIID(t),targetUri:this.$meeTelemetryUtilityService.extractTargetUrlForBI(t)}),t.click())))},n}();i.CardContentPrimitives=r;angular.module(i.moduleName).factory("cardContentPrimitivesFactory",[function(){return function(n,t,i,u,f,e,o,s,h){return new r(n,t,i,u,f,e,o,s,h)}}])}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$window=n;this.$meeTelemetryService=t;this.$meeIrisUtilityService=i}return n.prototype.$onInit=function(){this.model.impressionBeaconUrl&&this.$meeIrisUtilityService.fireIrisBeacon(this.model.impressionBeaconUrl)},n.prototype.onCallToActionClick=function(){this.$meeTelemetryService.reportClick({clickId:this.model.biId,targetUri:this.model.link.url});var n=this.model.clickBeaconUrl;n&&(n=n.replace(/{ACTION}/g,"click"),this.$meeIrisUtilityService.fireIrisBeacon(n));this.$window.open(this.model.link.url,"_blank")},n.$inject=["$window","$meeTelemetryService","$meeIrisUtilityService"],n}();i.IrisCardContentComponent=r;angular.module(i.moduleName).component("irisCardContent",{template:'\n                <simple-card-content\n                     ng-if="$ctrl.model"\n                     title="{{$ctrl.model.title}}"\n                     description="{{$ctrl.model.description}}"\n                     align="center"\n                     call-to-action="$ctrl.model.link"\n                     on-call-to-action-click="$ctrl.onCallToActionClick()"\n                     clickable="$ctrl.model.clickable" >\n                    <card-image aria-hidden="true">\n                        <img mee-image alt="{{$ctrl.model.image.alt}}" ng-src="{{$ctrl.model.image.src}}" class="card-image">\n                    <\/card-image>\n                <\/simple-card-content>\n            ',bindings:{model:"<"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,r,i;t=n.OneUI||(n.OneUI={});r=t.Angular||(t.Angular={});i={template:'<div class="list-container">\n                        <div ng-class="[\'list-items\', $ctrl.itemSize]">\n                            <mee-media ng-repeat="item in $ctrl.items" size="{{$ctrl.itemSize}}">\n                                <media-image>\n                                    <div class="item-image" ng-transclude="item-image"><\/div>\n                                <\/media-image>\n                                <media-body>\n                                    <p ng-if="item.title" class="ellipsis" mee-heading="heading6" media-heading>{{item.title}}<\/p>\n                                    <p ng-if="item.description" class="ellipsis" mee-metatext>{{item.description}}<\/p>\n                                    <a ng-if="item.link" class="ellipsis" mee-hyperlink cms-link="item.link"><\/a>\n                                <\/media-body>\n                            <\/mee-media>\n                        <\/div>\n                    <\/div>\n                    <div class="call-to-action-container" ng-if="$ctrl.callToAction"><a mee-call-to-action="lightweight" class="ellipsis" cms-link="$ctrl.callToAction" ng-click="$ctrl.cardContentPrimitives.onCTAClick($event)"><\/a><\/div>\n                    <div ng-if="$ctrl.cardContentPrimitives.showRewardsPoints" class="rewards-points-container">\n                        <span class="c-glyph glyph-add"><\/span>\n                        <span mee-heading="subheading3" class="f-lean">{{$ctrl.rewardsPoints}}<\/span>\n                    <\/div>',bindings:{items:"<",callToAction:"<?",onCallToActionClick:"&?onCallToActionClick",clickable:"<?",rewardsPoints:"<?"},transclude:{"item-image":"itemImage"},require:{card:"^meeCard"},controller:function(){function n(n,t,i,r,u,f,e){this.$scope=n;this.$timeout=t;this.element=i;this.cardContentPrimitivesFactory=r;this.$meeTelemetryService=u;this.$meeTelemetryUtilityService=f;this.$meeHtmlUtil=e}return n.prototype.$onInit=function(){if(this.cardContentPrimitives=this.cardContentPrimitivesFactory(this.$scope,this.$timeout,this.element,this.onCallToActionClick,this.clickable,this.rewardsPoints,this.$meeTelemetryService,this.$meeTelemetryUtilityService,this.$meeHtmlUtil),"double"===this.card.displayType){if(this.items.length<4)throw new Error('List card content component in Double card - Error: array must contain at least 4 elements - use a single card (<mee-card display-type="single">) when the list contains between 2 and 3 elements');this.items=this.items.slice(0,6);this.itemSize=4===this.items.length?"xxl":"xl"}else{if(this.items.length<2)throw new Error("List card content component in Single card - Error: array must contain at least 2 elements - use a simple-card-component to render a single item");this.items=this.items.slice(0,3);this.itemSize=2===this.items.length?"xxl":"xl"}},n.prototype.$onDestroy=function(){this.cardContentPrimitives.onDestroy()},n.$inject=["$scope","$timeout","$element","cardContentPrimitivesFactory","$meeTelemetryService","$meeTelemetryUtilityService","$meeHtmlUtil"],n}()};angular.module(r.moduleName).component("listCardContent",i).component("listPaneContent",i)}(MeePortal||(MeePortal={})),function(n){var t,r,i;t=n.OneUI||(n.OneUI={});r=t.Angular||(t.Angular={});i={template:'<div class="image-container" ng-transclude="card-image"><\/div>\n                    <div ng-if="!$ctrl.rewardsPoints" class="action-menu-container" ng-transclude="action-menu"><\/div>\n                    <div class="text-container">\n                        <p ng-if="$ctrl.title" mee-heading="{{ $ctrl.headerKind === \'large\' ? \'subheading3\' : \'subheading5\'}}" class="card-title">{{$ctrl.title}}<\/p>\n                        <div class="description-container">\n                            <span ng-if="$ctrl.description" class="card-description">{{$ctrl.description}}<\/span>\n                            <div ng-transclude="description"><\/div>\n                        <\/div>\n                    <\/div>\n                    <div class="call-to-action-container" ng-if="$ctrl.callToAction"><a mee-call-to-action="lightweight" class="ellipsis" cms-link="$ctrl.callToAction" ng-click="$ctrl.cardContentPrimitives.onCTAClick($event)"><\/a><\/div>\n                    <div ng-if="$ctrl.rewardsPoints" class="rewards-points-container">\n                        <span class="c-glyph glyph-add"><\/span>\n                        <span mee-heading="subheading3" class="f-lean">{{$ctrl.rewardsPoints}}<\/span>\n                    <\/div>',bindings:{title:"@",description:"@?",callToAction:"<?",onCallToActionClick:"&?onCallToActionClick",align:"@?",headerKind:"@?",clickable:"<?",rewardsPoints:"<?",flip:"<?"},transclude:{"card-image":"cardImage","action-menu":"?actionMenu",description:"?description"},controller:function(){function n(n,t,i,r,u,f,e){this.$scope=n;this.$timeout=t;this.element=i;this.cardContentPrimitivesFactory=r;this.$meeTelemetryService=u;this.$meeTelemetryUtilityService=f;this.$meeHtmlUtil=e}return n.prototype.$onInit=function(){if(this.cardContentPrimitives=this.cardContentPrimitivesFactory(this.$scope,this.$timeout,this.element,this.onCallToActionClick,this.clickable,this.rewardsPoints,this.$meeTelemetryService,this.$meeTelemetryUtilityService,this.$meeHtmlUtil),this.align){if(-1===["left","center","right"].indexOf(this.align))throw new Error("simple card content component - Error: '"+this.align+"' is not a supported alignment.");}else this.align="left";if(this.headerKind){if(-1===["normal","large"].indexOf(this.headerKind))throw new Error("simple card content component - Error: '"+this.headerKind+"' is not a supported header kind.");}else this.headerKind="normal";this.flip&&this.element.addClass("flip")},n.prototype.$onDestroy=function(){this.cardContentPrimitives.onDestroy()},n.$inject=["$scope","$timeout","$element","cardContentPrimitivesFactory","$meeTelemetryService","$meeTelemetryUtilityService","$meeHtmlUtil"],n}()};angular.module(r.moduleName).component("simpleCardContent",i).component("simplePaneContent",i)}(MeePortal||(MeePortal={})),function(n){var t,r,i;t=n.OneUI||(n.OneUI={});r=t.Angular||(t.Angular={});i={template:'<simple-card-content title="{{$ctrl.title}}" description="{{$ctrl.description}}" call-to-action="$ctrl.callToAction" on-call-to-action-click="$ctrl.onCallToActionClick()" align="{{$ctrl.align}}" header-kind="{{$ctrl.headerKind}}" clickable="$ctrl.clickable" rewards-points="$ctrl.rewardsPoints">\n                        <card-image ng-transclude="card-image"><\/card-image>\n                        <action-menu ng-transclude="action-menu"><\/action-menu>\n                        <description>\n                            <div class="image-slots">\n                                <span ng-transclude="image-slot-1"><\/span>\n                                <span ng-transclude="image-slot-2"><\/span>\n                                <span ng-transclude="image-slot-3"><\/span>\n                                <span ng-transclude="image-slot-4"><\/span>\n                            <\/div>\n                            <div ng-transclude="extra-description"><\/div>\n                        <\/description>\n                    <\/simple-card-content>',bindings:{title:"@",description:"@",callToAction:"<?",onCallToActionClick:"&?onCallToActionClick",align:"@?",headerKind:"@?",clickable:"<?",rewardsPoints:"<?"},transclude:{"card-image":"cardImage","action-menu":"?actionMenu","image-slot-1":"imageSlot1","image-slot-2":"?imageSlot2","image-slot-3":"?imageSlot3","image-slot-4":"?imageSlot4","extra-description":"?extraDescription"},controller:function(){function n(n){this.$window=n}return n.prototype.$onInit=function(){var n=this;if(!this.description)throw new Error("Mosaic card content: description is required.");this.onCallToActionClick||(this.onCallToActionClick=function(){return n.$window.location.href=n.callToAction.url})},n.$inject=["$window"],n}()};angular.module(r.moduleName).component("mosaicCardContent",i).component("mosaicPaneContent",i)}(MeePortal||(MeePortal={})),function(n){var t,r,i;t=n.OneUI||(n.OneUI={});r=t.Angular||(t.Angular={});i={template:'<div class="overview-header">\n                           <p mee-heading="subheading6" class="card-title">{{$ctrl.title}}<\/p>\n                           <div class="call-to-action-container" ng-if="$ctrl.callToAction" ng-show="$ctrl.showCallToActionLink"><a mee-call-to-action="lightweight" class="ellipsis" cms-link="$ctrl.callToAction" ng-click="$ctrl.cardContentPrimitives.onCTAClick($event)"><\/a><\/div>\n                        <\/div>\n                        <div class="overview-content-container">\n                            <div class="overview-left-panel">\n                                <div ng-transclude="overviewLeftPanel"><\/div>\n                            <\/div>\n                            <div class="overview-right-panel">\n                                <div ng-transclude="overviewRightPanel"><\/div>\n                            <\/div>\n                            <div class="overview-bottom-panel">\n                                <div ng-transclude="overviewBottomPanel"><\/div>\n                            <\/div>\n                        <\/div>\n                    <\/div>',bindings:{title:"@",showCallToActionLink:"<?",callToAction:"<?",onCallToActionClick:"&?onCallToActionClick",clickable:"<?"},transclude:{overviewLeftPanel:"overviewLeftPanel",overviewRightPanel:"overviewRightPanel",overviewBottomPanel:"overviewBottomPanel"},require:{card:"^meeCard"},controller:function(){function n(n,t,i,r,u,f,e){this.$scope=n;this.$timeout=t;this.element=i;this.cardContentPrimitivesFactory=r;this.$meeTelemetryService=u;this.$meeTelemetryUtilityService=f;this.$meeHtmlUtil=e;this.showCallToActionLink=!1}return n.prototype.$onInit=function(){if(this.cardContentPrimitives=this.cardContentPrimitivesFactory(this.$scope,this.$timeout,this.element,this.onCallToActionClick,this.clickable,null,this.$meeTelemetryService,this.$meeTelemetryUtilityService,this.$meeHtmlUtil),"double"!==this.card.displayType)throw new Error('Overview card content component not in Double card - Error: overview must be in a double card (<mee-card display-type="double">), please correct');if(!this.title)throw new Error("Overview card content: title is required.");},n.prototype.$onDestroy=function(){this.cardContentPrimitives.onDestroy()},n.$inject=["$scope","$timeout","$element","cardContentPrimitivesFactory","$meeTelemetryService","$meeTelemetryUtilityService","$meeHtmlUtil"],n}()};angular.module(r.moduleName).component("overviewCardContent",i).component("overviewPaneContent",i)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$element=n;this.$meeUtil=t;this.$meeMwfUtil=i;this.transcludedItems=[]}return n.prototype.$postLink=function(){var n=this,t=angular.element(this.$element[0].querySelector("div.c-carousel"));this.isSingleSlide=this.singleSlide&&"true"===this.singleSlide;this.$meeUtil.afterContentComplete(function(){var r=n.$element[0].querySelector("ul[ng-transclude]"),i;if(n.transcludedItems=Array.prototype.slice.call(r.children),!(1<n.transcludedItems.length))throw new Error("mee-carousel: Your code must include at least two elements inside carousel.");if(n.autoplay&&"true"===n.autoplay){if(i=angular.element(n.$element[0].querySelector("div.btn-group")),t.addClass("f-auto-play"),i.append('<button class="c-action-toggle c-glyph glyph-play f-toggle" data-toggled-label="'+n.toggledLabel+'" data-toggled-glyph="glyph-pause" aria-label="'+n.ariaLabel+'"><\/button>'),n.interval&&5e3<=n.interval)t.attr("data-js-interval",n.interval);else if(n.interval)throw new Error("mee-carousel: Invalid markup. interval value can only be number greater than or equal to 5000, Ok with empty input.");}else if(n.autoplay&&"false"!==n.autoplay)throw new Error("mee-carousel: Invalid markup. autoplay value can only be true/false, Ok with empty input.");n.$meeMwfUtil.create(n.isSingleSlide?mwf.SingleSlideCarousel:mwf.MultiSlideCarousel,t)})},n.$inject=["$element","$meeUtil","$meeMwfUtil"],n}();angular.module(i.moduleName).component("meeCarousel",{template:'<div class="c-carousel" ng-class="{\'f-single-slide\': $ctrl.isSingleSlide, \'f-multi-slide\': !$ctrl.isSingleSlide}" role="region">\n                           <div class="c-group btn-group" ng-if="!$ctrl.isSingleSlide">\n                               <div class="c-sequence-indicator" role="tablist">\n                                   <button role="tab" ng-repeat="item in $ctrl.transcludedItems"><\/button>\n                               <\/div>\n                           <\/div>\n                           <button class="c-flipper f-previous" aria-hidden="true" tabindex="-1"><\/button>\n                           <button class="c-flipper f-next" aria-hidden="true" tabindex="-1"><\/button>\n                           <div itemscope>\n                               <ul ng-class="{\'c-group\': $ctrl.isSingleSlide}" ng-transclude><\/ul>\n                           <\/div>\n                        <\/div>',bindings:{autoplay:"@",interval:"@",toggledLabel:"@",ariaLabel:"@",singleSlide:"@"},transclude:!0,controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$element=n;this.mwfUtil=t;this.$scope=i}return n.prototype.onCheckBoxComponentChange=function(){this.ngModelCtrl.$setViewValue(this.ngModel);this.isIndeterminate=!1},n.prototype.$postLink=function(){var n=this;this.$element.addClass("c-checkbox");this.isIndeterminate&&this.$element.find("input").attr("data-js-checkbox","indeterminate");this.$scope.$watch(function(){return n.isIndeterminate},function(){n.$element.find("input").prop("indeterminate",n.isIndeterminate)});this.mwfUtil.create(mwf.Checkbox,this.$element)},n.$inject=["$element","$meeMwfUtil","$scope"],n}();angular.module(i.moduleName).component("meeCheckbox",{transclude:!0,template:'\n                <label class="c-label" >\n                    <input ng-model="$ctrl.ngModel"\n                            type="checkbox"\n                            ng-attr-aria-label="{{ $ctrl.meeAriaLabel }}"\n                            ng-disabled="$ctrl.ngDisabled"\n                            ng-change="$ctrl.onCheckBoxComponentChange()">\n                    <span ng-transclude><\/span>\n                <\/label>',bindings:{ngModel:"<",ngDisabled:"<",isIndeterminate:"=?",meeAriaLabel:"@"},require:{ngModelCtrl:"^ngModel"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A";this.controller=function(){}}return n.prototype.link=function(n,t){t[0].classList.add("c-group");t[0].classList.add("f-wrap-items")},n}();u=function(){function n(n,t){this.element=n;this.attrs=t}return n.prototype.$postLink=function(){if(this.attrs.glyph||(this.attrs.glyph="cancel"),!(this.attrs.glyph in n.classMap))throw new Error("'"+this.attrs.glyph+"' is not a valid option for 'glyph'");this.element[0].classList.add("c-choice-summary");this.glyphStyle=n.classMap[this.attrs.glyph]},n.prototype.itemSelected=function(n){this.onItemClicked({$event:{target:n.currentTarget}})},n.$inject=["$element","$attrs"],n.classMap={edit:"glyph-edit",cancel:"glyph-cancel",add:"glyph-add",up:"glyph-chevron-up",down:"glyph-chevron-down"},n}();angular.module(i.moduleName).directive("meeChoiceSummary",function(){return new r});angular.module(i.moduleName).directive("choiceSummaryItem",function(){return{controller:u,restrict:"A",transclude:!0,scope:!0,controllerAs:"choiceSummaryItemCtrl",bindToController:{meeBiId:"@",meeAriaLabel:"@",onItemClicked:"&"},template:'<a ng-click="choiceSummaryItemCtrl.itemSelected($event)"\n                          aria-label="{{choiceSummaryItemCtrl.meeAriaLabel}}"\n                          ng-class="[\'c-action-trigger\', \'c-glyph\', choiceSummaryItemCtrl.glyphStyle]"\n                          mee-no-href\n                          role="button"\n                          data-bi-id="{{choiceSummaryItemCtrl.meeBiId}}">\n                       <\/a>\n                       <span ng-transclude><\/span>',require:{choiceSummaryCtrl:"^meeChoiceSummary"}}})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f,e,o,s,h;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$meeUtil=n;this.$element=t}return n.prototype.$postLink=function(){var i=this.$element.find("label")[0],n=this.$element.find("input")[0],r=this.$element.find("button")[0],t=n.getAttribute("id")||"combo-"+this.$meeUtil.nextUid();i.setAttribute("for",t);n.setAttribute("id",t);r.setAttribute("name","button-"+this.$meeUtil.nextUid())},n.$inject=["$meeUtil","$element"],n}();u=function(){function n(){this.restrict="E";this.controller=r}return n.factory=function(){return function(){return new n}},n.prototype.compile=function(n){var t=n[0],e=t.querySelector("label"),u,i,f,o,r,s,h;if(!e)throw new Error("mee-combo: label required.");if(u=t.querySelector("input"),!u)throw new Error("mee-combo: input required.");if(u.setAttribute("combo-input",""),i=t.querySelector("combo-items"),!i)throw new Error("mee-combo: combo-items required.");if(f=t.getAttribute("dropdown-trigger-label"),!f)throw new Error("mee-combo: Attr dropdown-trigger-label required.");return o=this.createButtonTrigger(f),e.classList.add("c-label"),r=this.createComboWrapperDiv(),r.appendChild(u),r.appendChild(o),r.appendChild(i),t.appendChild(r),n.html(t.innerHTML.replace(/combo-items/g,"ul").replace(/combo-item/g,"li")),(i=t.querySelector("ul")).setAttribute("combo-items",""),h=t.querySelectorAll("li"),(s=h,Array.prototype.slice.call(s)).forEach(function(n){return n.setAttribute("combo-item","")}),angular.element(i).wrap(this.createUlWrapperDiv()),function(){}},n.prototype.createComboWrapperDiv=function(){var n=document.createElement("div");return n.setAttribute("combo-div",""),n},n.prototype.createButtonTrigger=function(n){var t=document.createElement("button");return t.setAttribute("combo-button",""),t.innerText=n,t},n.prototype.createUlWrapperDiv=function(){var n=document.createElement("div");return n.setAttribute("role","group"),n},n}();f=function(){function n(n,t){var i=this;this.$element=n;this.$mwfUtil=t;this.comboCallback=function(n){n.subscribe(i)};this.onSelectionChanged=function(n){i.ngModelCtrl&&i.ngModelCtrl.$setViewValue(n.value)}}return n.prototype.$postLink=function(){this.$element.addClass("c-combo");this.$mwfUtil.create(mwf.Combo,this.$element).then(this.comboCallback)},n.$inject=["$element","$meeMwfUtil"],n}();e=function(){function n(n){this.$element=n;this.defaultName="comboField"}return n.prototype.$onInit=function(){this.comboCtrl.ngModelCtrl=this.ngModelCtrl},n.prototype.$postLink=function(){this.$element.attr("name",this.$element.attr("name")||this.defaultName);this.$element.attr("role","combobox");this.$element.attr("type","text");this.$element.attr("autocomplete","off")},n.$inject=["$element"],n}();o=function(){function n(n){this.$element=n}return n.prototype.$postLink=function(){this.$element.addClass("c-glyph")},n.$inject=["$element"],n}();s=function(){function n(n){this.$element=n}return n.prototype.$postLink=function(){this.$element.attr("aria-expanded","false");this.$element.attr("tabindex",0);this.$element.attr("role","listbox")},n.$inject=["$element"],n}();h=function(){function n(n){this.$element=n}return n.prototype.$postLink=function(){this.$element.attr("role","option")},n.$inject=["$element"],n}();angular.module(i.moduleName).directive("meeCombo",u.factory()).directive("comboDiv",function(){return{restrict:"A",controller:f}}).directive("comboInput",function(){return{restrict:"A",controller:e,bindToController:{},require:{comboCtrl:"^comboDiv",ngModelCtrl:"?ngModel"}}}).directive("comboButton",function(){return{restrict:"A",controller:o,template:'<span class="x-screen-reader" ng-transclude><\/span>',transclude:!0,scope:{}}}).directive("comboItems",function(){return{restrict:"A",controller:s}}).directive("comboItem",function(){return{restrict:"A",controller:h,template:'<span tabindex="0" ng-transclude><\/span>',transclude:!0,scope:{}}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeStringUtil=n;this.restrict="A";this.subDividerStr="subdivider";this.classMap={bottom3x:"f-pad-bottom-3x",top3x:"f-pad-top-3x",vertical3x:"f-pad-vertical-3x",bottom6x:"f-pad-bottom-6x",top6x:"f-pad-top-6x",vertical6x:"f-pad-vertical-6x"}}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeStringUtil"],t},n.prototype.link=function(n,t,i){var o="c-divider",r,f,e,u;if(i.meeDivider){if(r=this.$meeStringUtil.extractTokens(i.meeDivider),2<r.length||2==r.length&&-1===r.indexOf(this.subDividerStr))throw new Error("meeDivider: Only one style option and the optional subdivider flag are allowed: ["+r+"]");for(f=0,e=r;f<e.length;f++){if(u=e[f],u!=this.subDividerStr&&!this.classMap[u])throw new Error("meeDivider: Style is not supported "+u+" is not one of "+this.classMap);switch(u){case"subdivider":o="c-subdivider";break;default:t.addClass(this.classMap[u])}}}t.addClass(o);t.attr("role","presentation")},n}();angular.module(i.moduleName).directive("meeDivider",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u){var f=this;this.element=n;this.attrs=t;this.$meeUtil=i;this.mwfUtil=r;this.$scope=u;this.onExpandedChanged=function(n){n.isExpanded!==f.expanded&&f.$scope.$evalAsync(function(){f.expanded=n.isExpanded;f.expandedChangedCallback&&f.expandedChangedCallback({$event:{expanded:n.isExpanded}})})}}return n.prototype.$postLink=function(){var n=this,t;this.divider=this.attrs.kind&&-1!==this.attrs.kind.indexOf("divider");this.expanded=!(!this.attrs.state||-1===this.attrs.state.indexOf("expanded"));this.contentId=this.attrs.id?this.attrs.id:"mee-drawer-"+this.$meeUtil.nextUid();this.contentId=this.contentId+"-drawer-content";t=this.element;t.addClass("c-drawer");this.divider&&t.addClass("f-divider");this.triggerElem=this.element.children()[0];this.triggerElem.className=this.triggerElem.className+" c-glyph drawer-glyph";this.triggerElem.setAttribute("aria-controls",this.contentId);this.triggerElem.setAttribute("aria-expanded",this.expanded?"true":"false");this.contentElem=this.element.children()[1];this.contentElem.setAttribute("id",this.contentId);this.mwfUtil.create(mwf.Drawer,this.element).then(function(t){(n.mwfComponent=t).subscribe(n);n.accordionCtrl&&n.accordionCtrl.registerController(n)})},n.prototype.isExpanded=function(){return this.expanded},n.prototype.collapseDrawer=function(){this.mwfComponent.collapseDrawer()},n.prototype.expandDrawer=function(){this.mwfComponent.expandDrawer()},n.$inject=["$element","$attrs","$meeUtil","$meeMwfUtil","$scope"],n}();u=function(){function n(){this.restrict="E";this.scope=!0;this.controllerAs="drawer";this.bindToController={expandedChangedCallback:"&?onExpandedChanged"};this.controller=r;this.require={accordionCtrl:"?^^meeAccordion"}}return n.factory=function(){return function(){return new n}},n.prototype.compile=function(n){var t=n.html(),i;if(-1===t.indexOf("drawer-trigger"))throw new Error("Invalid markup. Your code must include a <drawer-trigger> element.");if(-1===t.indexOf("drawer-content"))throw new Error("Invalid markup. Your code must include a <drawer-content> element.");return i=t.replace(/drawer-trigger/g,"button").replace(/drawer-content/g,"div"),n.html(i),function(){}},n}();angular.module(i.moduleName).directive("meeDrawer",u.factory())}(MeePortal||(MeePortal={})),function(n){var t,i;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});angular.module(i.moduleName).component("meeEntityDescriptor",{template:'<div class="entity-descriptor">\n                        <mee-media size="lg">\n                            <media-image ng-transclude="image"><\/media-image>\n                            <media-body>\n                                <div ng-transclude="heading"><\/div>\n                                <div mee-heading="subheading6" ng-transclude="description"><\/div>\n                            <\/media-body>\n                        <\/mee-media>\n                      <\/div>',transclude:{image:"descriptorImage",heading:"descriptorHeading",description:"descriptorDescription"}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.$scope=n;this.$window=t;this.$element=i;this.$meeUtil=r;this.isWithDropdown=!1;this.hasLinks=!1;this.countVisibleLinks=1/0}return n.prototype.$onInit=function(){var n=this;this.links&&0<this.links.length&&(this.hasLinks=!0,this.navMenuTriggerText&&(this.isWithDropdown=!0,this.maxLinksToDisplay=this.maxLinksToDisplay||1/0,this.countVisibleLinks=this.maxLinksToDisplay,this.$scope.$watchCollection(function(){return n.links.slice(0,n.countVisibleLinks)},function(t){return n.visibleLinks=t})))},n.prototype.$postLink=function(){var n=this;this.isWithDropdown&&this.$meeUtil.afterContentComplete(function(){n.linksMeasurements=n.$element[0].getElementsByClassName("nav-menu-links-measurements")[0];n.linksMeasurements&&(n.updateNavLinks(),n.resizeCallback=function(){return n.updateNavLinks()},n.$window.addEventListener("resize",n.resizeCallback))})},n.prototype.$doCheck=function(){this.linksMeasurements&&this.updateNavLinks()},n.prototype.$onDestroy=function(){this.resizeCallback&&this.$window.removeEventListener("resize",this.resizeCallback)},n.prototype.isStateLink=function(n){return n&&n.state},n.prototype.createUISref=function(n){return n.state+"("+JSON.stringify(n.stateParams)+")"},n.prototype.updateNavLinks=function(){for(var i=this,t=this.linksMeasurements.getElementsByClassName("nav-menu-link"),n=Math.min(t.length,this.maxLinksToDisplay);1<n&&0!=t[n-1].offsetTop;--n);n!==this.countVisibleLinks&&this.$scope.$evalAsync(function(){i.countVisibleLinks=n})},n.$inject=["$scope","$window","$element","$meeUtil"],n}();angular.module(i.moduleName).component("meeEntity",{template:'<div ng-transclude="meeEntityDescriptor"><\/div>\n                       <div class="x-clearfix">\n                            <mee-link-navigation ng-if="!$ctrl.isWithDropdown && $ctrl.hasLinks" links="$ctrl.links" align="left" accessibility-label="{{$ctrl.accessibilityLabel}}"><\/mee-link-navigation>\n\n                            <div ng-if="$ctrl.isWithDropdown" class="nav-menu-links-measurements" aria-hidden="true" role="presentation">\n                                <ul>\n                                    <li class="nav-menu-button">{{$ctrl.navMenuTriggerText}}<\/li>\n                                    <li class="nav-menu-link" ng-repeat="link in $ctrl.links | limitTo : $ctrl.maxLinksToDisplay">{{link.text || "&nbsp;"}}<\/li>\n                                <\/ul>\n                            <\/div>\n\n                            <div ng-if="$ctrl.isWithDropdown" class="nav-menu-links">\n                                <mee-link-navigation links="$ctrl.visibleLinks" align="left" accessibility-label="{{$ctrl.accessibilityLabel}}"><\/mee-link-navigation>\n                                <mee-nav-menu menu-style="accent" ng-show="$ctrl.countVisibleLinks < $ctrl.links.length">\n                                    <menu-trigger>{{$ctrl.navMenuTriggerText}}<\/menu-trigger>\n                                    <ul>\n                                        <li ng-repeat="link in $ctrl.links | limitTo : \'Infinity\' : $ctrl.countVisibleLinks">\n                                            <a ng-if="!$ctrl.isStateLink(link)" mee-hyperlink cms-link="link"><\/a>\n                                            <a ng-if="$ctrl.isStateLink(link)" id="{{link.id}}" mee-hyperlink ui-sref="{{$ctrl.createUISref(link)}}" ui-sref-opts="{{link.stateOptions}}">{{link.text}}<\/a>\n                                        <\/li>\n                                    <\/ul>\n                                <\/mee-nav-menu>\n                            <\/div>\n\n                        <\/div>\n                        <div>\n                            <hr mee-divider="top3x">\n                            <div ng-transclude="entityBody"><\/div>\n                        <\/div>',transclude:{meeEntityDescriptor:"meeEntityDescriptor",entityBody:"entityBody"},bindings:{links:"<",maxLinksToDisplay:"<?",navMenuTriggerText:"@",accessibilityLabel:"@"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u,f){this.$meeErrors=n;this.$scope=t;this.$element=i;this.$meeUtil=r;this.$meeHtmlUtil=u;this.errorViewFactory=f}return n.prototype.$onInit=function(){var n={errorId:this.errorId,kind:this.kind,inputSelectorFormat:"{0} input, {0} .c-select-menu button, {0} textarea"};this.errorView=this.errorViewFactory(this.$meeErrors,this.$scope,this.$element,this.$meeUtil,this.$meeHtmlUtil,n);this.errorView.$onInit()},n.prototype.$onDestroy=function(){this.errorView.$onDestroy()},n.prototype.getErrorText=function(){return this.errorView.getErrorText()},n.prototype.getErrorElementId=function(){return this.errorView.getErrorElementId()},n.prototype.getErrorClass=function(){return this.errorView.getErrorClass()},n.$inject=["$meeErrors","$scope","$element","$meeUtil","$meeHtmlUtil","errorViewFactory"],n}();angular.module(i.moduleName).component("meeInlineError",{template:'<div ng-if="$ctrl.getErrorText()" id="{{$ctrl.getErrorElementId()}}" ng-class="[\'c-label\', $ctrl.getErrorClass()]" role="alert" aria-live="polite" aria-atomic="true" aria-relevant="text">{{$ctrl.getErrorText()}}<\/div>',bindings:{errorId:"@",kind:"@"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.hasMessage=function(){return!!this.message},n}();angular.module(i.moduleName).component("meeErrorMessageMwf",{template:'<div class="mee-error-text" ng-if="$ctrl.hasMessage()" role="alert" aria-live="assertive">{{$ctrl.message}}<\/div>',bindings:{message:"@errorText"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeStringUtil=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeStringUtil"],t},n.prototype.link=function(t,i,r){var u,e,f;for(i.addClass("m-feature"),u=0,e=this.$meeStringUtil.extractTokens(r.meeFeature);u<e.length;u++){if(f=e[u],!(f in n.classMap))throw new Error("Unsupported mee-feature option: "+f);i.addClass(n.classMap[f])}},n.classMap={"background-neutral-10":"f-background-neutral-10","background-neutral-20":"f-background-neutral-20","background-neutral-30":"f-background-neutral-30","background-neutral-45":"f-background-neutral-45","background-neutral-55":"f-background-neutral-55","background-neutral-65":"f-background-neutral-65","background-neutral-75":"f-background-neutral-75","background-neutral-80":"f-background-neutral-80","background-neutral-90":"f-background-neutral-90","background-neutral-100":"f-background-neutral-100","background-accent":"f-background-accent","align-left":"f-align-left","align-center":"f-align-center","align-right":"f-align-right","set-16x9-Ratio":"f-set-ratio","image-priority":"f-image-priority"},n}();angular.module(i.moduleName).directive("meeFeature",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.$element=n;this.$attrs=t;this.$meeUtil=i;this.$meeStringUtil=r;this.size="sm";this.hideActions=!1}return n.prototype.$postLink=function(){var r=this.$meeStringUtil.extractTokens(this.$attrs.kind),u=this.$element[0],n,t,i;(-1!==r.indexOf("error")&&u.classList.add("f-error"),-1!==r.indexOf("flex"))?u.classList.add("f-flex"):(n=this.$element.find("media-body"),t=n[0],t.classList.add("x-visible-inline"),t.setAttribute("data-grid","col-12 stack-2"),i=n.children()[0],this.hideActions?i.setAttribute("data-grid","col-12"):this.$meeUtil.afterContentComplete(function(){i.setAttribute("data-grid","col-8");n.children()[1].setAttribute("data-grid","col-4")}))},n.$inject=["$element","$attrs","$meeUtil","$meeStringUtil"],n}();angular.module(i.moduleName).component("meeFeedItem",{template:'<mee-media size="{{$ctrl.size}}">\n                            <media-image ng-transclude="image"><\/media-image>\n                            <media-body>\n                                <div ng-transclude="message"><\/div>\n                                <div ng-if="!$ctrl.hideActions" ng-transclude="actions"><\/div>\n                            <\/media-body>\n                       <\/mee-media>',transclude:{image:"feedImage",message:"feedMessage",actions:"?feedActions"},bindings:{size:"@?",hideActions:"<?"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.element=n;this.$meeUtil=t;this.$meeMwfUtil=i;this.$meeA11y=r;this.hasBeak=!1;this.replaceNewLinesRegex=/(\r\n|\n|\r)/gm;this.replaceExtraSpacesRegex=/\s+/g}return n.prototype.$postLink=function(){var t=this,r=this.element.parent(),u=r.prop("tagName"),i;if(!n.validParentTags.some(function(n){return n===u}))throw new Error("mee-flyout: Is not supported when transcluded under '"+u+"' tag. It's only supported with tags: "+n.validParentTags.join(", "));if(this.placement!==n.placementMap.top&&this.placement!==n.placementMap.bottom&&this.placement!==n.placementMap.right&&this.placement!==n.placementMap.left)throw new Error("mee-flyout: '"+this.placement+"' is not a valid value for argument placement.");this.id||(this.id="mee-flyout-"+this.$meeUtil.nextUid(),this.element.attr("id",this.id));i=this.element.parent();i.attr("aria-haspopup","true");i.attr("data-js-flyout",this.id);i.after(this.element);this.element.addClass("c-flyout");this.element.attr("role","tooltip");this.element.attr("data-js-flyout-placement",this.placement);this.element.attr("data-js-flyout-dismissible",this.dismissible);this.element.attr("aria-hidden","true");this.hasBeak&&this.element.addClass("f-beak");r.on("click",function(){if(!t.flyout.shown){var n=t.element[0].innerText;n&&(n=(n=(n=n.trim()).replace(t.replaceNewLinesRegex," ")).replace(t.replaceExtraSpacesRegex," "),t.$meeA11y.announcer.announce(n))}});this.$meeMwfUtil.create(mwf.Flyout,this.element).then(function(n){t.flyout=n})},n.$inject=["$element","$meeUtil","$meeMwfUtil","$meeA11y"],n.placementMap={right:"right",left:"left",top:"top",bottom:"bottom"},n.validParentTags=["A","BUTTON"],n}();angular.module(i.moduleName).component("meeFlyout",{transclude:!0,template:"<ng-transclude><\/ng-transclude>",bindings:{id:"@",placement:"@",hasBeak:"<?",dismissible:"@",ngClass:"<"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeHtmlUtil=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeHtmlUtil"],t},n.prototype.link=function(t,i,r){if(!(r.meeHeading in n.classMap))throw new Error("'"+r.meeHeading+"' is not a valid option for 'mee-heading'");var u=n.classMap[r.meeHeading]||n.classMap.heading1;this.$meeHtmlUtil.prependClass(i,u)},n.classMap={heading:"c-heading",heading1:"c-heading-1",heading2:"c-heading-2",heading3:"c-heading-3",heading4:"c-heading-4",heading5:"c-heading-5",heading6:"c-heading-6",amcheading1:"amc-heading-1",subheading:"c-subheading",subheading1:"c-subheading-1",subheading2:"c-subheading-2",subheading3:"c-subheading-3",subheading4:"c-subheading-4",subheading5:"c-subheading-5",subheading6:"c-subheading-6"},n}();angular.module(i.moduleName).directive("meeHeading",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f,e,o,s;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=["left","right","center"];u=["top","center","bottom"];f=["accessory","app","article","device","game","movie","music-album","music-artist","software","tv-show"];e=["dark","light"];o=["20","40","60","80","100"];s=function(){function n(n){this.$element=n}return n.prototype.$postLink=function(){if(this.horz&&r.indexOf(this.horz)<0)throw new Error("Invalid markup. The Hero item 'horz' attribute is invalid");if(this.vert&&u.indexOf(this.vert)<0)throw new Error("Invalid markup. The Hero item 'vert' "+this.vert+" attribute is invalid");if(this.context&&f.indexOf(this.context)<0)throw new Error("Invalid markup. The Hero item 'context' attribute is invalid");if(this.theme&&e.indexOf(this.theme)<0)throw new Error("Invalid markup. The Hero item 'theme' attribute is invalid");if(this.mask&&o.indexOf(this.mask)<0)throw new Error("Invalid markup. The Hero item 'mask' attribute is invalid");this.typeClass=this.getClass()},n.prototype.getClass=function(){return"m-hero-item "+(this.horz?"f-x-"+this.horz+" ":"")+" "+(this.vert?"f-y-"+this.vert+" ":"")+" "+(this.context?"context-"+this.context+" ":"")+" "+(this.theme?"theme-"+this.theme+" ":"")+" "+(this.mask?"f-mask-"+this.mask+" ":"")},n.$inject=["$element","$meeMwfUtil"],n}();angular.module(i.moduleName).directive("meeHeroItem",function(){return{restrict:"E",compile:function(n){var t,i=n[0],f=i.querySelector("background-picture"),r,u;if(!f)throw new Error("Invalid markup. Your code must include a <background-picture> element.");if(t='<section ng-class="$heroItemCtrl.typeClass">\n                            ###bgwrap###\n                            <div>\n                                <div>###aawrap###<\/div>\n                            <\/div>\n                            ###oawrap###\n                       <\/section>'.replace(/###bgwrap###/gi,angular.element(f).html()),r=i.querySelector("action-area"),!r)throw new Error("Invalid markup. Your code must include a <action-area> element.");return t=t.replace(/###aawrap###/gi,angular.element(r).html()),u=i.querySelector("optional-area"),t=u?t.replace(/###oawrap###/gi,angular.element(u).html()):t.replace(/###oawrap###/gi,""),n.html(t),function(){}},scope:!0,bindToController:{horz:"@",vert:"@",context:"@",theme:"@",mask:"@"},controllerAs:"$heroItemCtrl",controller:s}})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A"}return n.prototype.link=function(n,t){t.addClass("c-hyperlink")},n}();u=function(){function n(){this.restrict="A"}return n.prototype.compile=function(n,t){if("A"!==n[0].nodeName)throw new Error("'"+n[0].tagName+"' is an invalid element type for mee-no-href; requires <a> tag");if(t.href||t.ngHref||t.uiSref)throw new Error("href attribute should not be set along with mee-no-href directive");return n.attr("href","javascript:;"),function(n,t){t.attr("role")||t.attr("role","button")}},n}();angular.module(i.moduleName).directive("meeHyperlink",function(){return new r}).directive("meeNoHref",function(){return new u})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$meeStringUtil=n;this.restrict="A"}return n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["$meeStringUtil"],t},n.prototype.link=function(t,i,r){var u,e,f;if(i.addClass("c-image"),r.meeImage)for(u=0,e=this.$meeStringUtil.extractTokens(r.meeImage);u<e.length;u++){if(f=e[u],!(f in n.classMap))throw new Error("'"+f+"' is not a valid option for 'mee-image'");i.addClass(n.classMap[f])}},n.classMap={round:"f-round","pad-bottom-3x":"f-pad-bottom-3x","pad-top-3x":"f-pad-top-3x","pad-left-3x":"f-pad-left-3x","pad-right-3x":"f-pad-right-3x","pad-vertical-3x":"f-pad-vertical-3x","pad-horizontal-3x":"f-pad-horizontal-3x","pad-bottom-6x":"f-pad-bottom-6x","pad-top-6x":"f-pad-top-6x","pad-left-6x":"f-pad-left-6x","pad-right-6x":"f-pad-right-6x","pad-vertical-6x":"f-pad-vertical-6x","pad-horizontal-6x":"f-pad-horizontal-6x"},n}();angular.module(i.moduleName).directive("meeImage",r.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$transclude=n}return n.prototype.$onInit=function(){this.hasOptionalContent=this.$transclude.isSlotFilled("optionalHeading")||this.$transclude.isSlotFilled("optionalDescription")},n.$inject=["$transclude"],n}();angular.module(i.moduleName).component("meeInformationContent",{template:'<div class="information-content-component">\n                        <mee-media size="xxl">\n                            <media-image ng-transclude="image"><\/media-image>\n                            <media-body>\n                                <h4 ng-transclude="heading"><\/h4>\n                                <div ng-transclude="description"><\/div>\n                                <div ng-transclude="status"><\/div>\n                            <\/media-body>\n                            <media-body ng-if="$ctrl.hasOptionalContent">\n                                <h4 ng-transclude="optionalHeading"><\/h4>\n                                <div ng-transclude="optionalDescription"><\/div>\n                            <\/media-body>\n                        <\/mee-media>\n                      <\/div>',transclude:{image:"informationContentImage",heading:"informationContentHeading",description:"informationContentDescription",status:"?informationContentStatus",optionalHeading:"?informationContentOptionalHeading",optionalDescription:"?informationContentOptionalDescription"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$transclude=n}return n.$inject=["$transclude"],n}();angular.module(i.moduleName).component("meeInformationData",{template:'<div class="information-data-component">\n                            <div ng-transclude="gridContent"><\/div>\n                      <\/div>',transclude:{gridContent:"gridContent"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.attrs=n;this.$element=t;this.$transclude=i}return n.prototype.$postLink=function(){if(this.attrs.kind){var n=this.attrs.kind.split(" ");this.isWarning=!n.indexOf("warning")}this.isWarning?this.$element.addClass("warning"):this.$element.addClass("default");this.$element.find("information-datum-image").addClass("media-icon c-glyph glyph-"+this.attrs.glyph)},n.$inject=["$attrs","$element","$transclude"],n}();angular.module(i.moduleName).component("meeInformationDatum",{template:'<div class="information-datum-component">\n                        <mee-media size="sm">\n                            <media-image ng-transclude="image"><\/media-image>\n                            <media-body>\n                                <h5 ng-transclude="heading"><\/h5>\n                                <div ng-transclude="content"><\/div>\n                            <\/media-body>\n                        <\/mee-media>\n                      <\/div>',transclude:{image:"informationDatumImage",heading:"informationDatumHeading",content:"informationDatumContent"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A"}return n.prototype.link=function(n,t){t.addClass("c-label")},n}();angular.module(i.moduleName).directive("meeLabel",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.element=n}return n.prototype.$postLink=function(){switch(this.element.addClass("m-link-navigation"),this.element.attr("data-grid","col-12"),this.navClasses=["c-link-navigation"],this.accessibilityLabel&&this.element.find("nav").attr("aria-label",this.accessibilityLabel),this.align=this.align||"middle",this.align){case"left":this.navClasses.push("f-align-left");break;case"right":this.navClasses.push("f-align-right");break;case"middle":break;default:throw new Error("mee-link-navigation component - Error '"+this.align+"' is not a supported alignment. Supported alignment are left, right, middle(default)");}},n.prototype.isStateLink=function(n){return n&&n.state},n.prototype.createUISref=function(n){return n.state+"("+JSON.stringify(n.stateParams)+")"},n.$inject=["$element"],n}();angular.module(i.moduleName).component("meeLinkNavigation",{template:'<nav role="navigation" ng-class="$ctrl.navClasses">\n                         <ul>\n                            <li ng-repeat="link in $ctrl.links">\n                                <a ng-if="!$ctrl.isStateLink(link)" mee-hyperlink cms-link="link"><\/a>\n                                <a ng-if="$ctrl.isStateLink(link)" id="{{link.id}}" mee-hyperlink ui-sref="{{$ctrl.createUISref(link)}}" ui-sref-opts="{{link.stateOptions}}">{{link.text}}<\/a>\n                            <\/li>\n                         <\/ul>\n                       <\/nav>\n                      ',bindings:{links:"<",align:"@",accessibilityLabel:"@"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t,i,r,u;(i=t||(t={}))[i.lean=0]="lean";i[i.bare=1]="bare";r=function(){function n(n){this.$meeStringUtil=n}return n.$inject=["$meeStringUtil"],n}();u=function(){function n(){this.restrict="A";this.controller=r;this.styleOptions={}}return n.prototype.link=function(t,i,r,u){i.addClass("c-list");r.meeList&&u.$meeStringUtil.extractTokens(r.meeList).forEach(function(t){i.addClass(n.GetClassFromStyleName(t))})},n.GetClassFromStyleName=function(n){switch(t[n]){case t.bare:return"f-bare";case t.lean:return"f-lean";default:throw new Error("mee-list: "+n+" is not a valid option");}},n}();angular.module(n.moduleName).directive("meeList",function(){return new u})})((t=n.OneUI||(n.OneUI={})).Angular||(t.Angular={}))}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.$inject=[],n}();u=function(){function n(){}return n.prototype.link=function(n,t){t.attr("aria-hidden","true");t.addClass("mee-loading-container mee-loading-animation")},n}();angular.module(i.moduleName).component("meeLoadingPlaceholder",{transclude:!0,template:'<span mee-loading-container>\n                            <span class="mee-loading-placeholder-content" ng-transclude><\/span>\n                       <\/span>\n            ',controller:r}).directive("meeLoadingContainer",function(){return new u})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A"}return n.prototype.link=function(n,t){t.addClass("c-meta-text")},n}();angular.module(i.moduleName).directive("meeMetatext",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u){this.$meeMwfUtil=n;this.$meeHtmlUtil=t;this.$timeout=i;this.$window=r;this.$meeA11y=u}return n.prototype.create=function(n){return new u(n,this.$meeMwfUtil,this.$meeHtmlUtil,this.$timeout,this.$window,this.$meeA11y)},n.$inject=["$meeMwfUtil","$meeHtmlUtil","$timeout","$window","$meeA11y"],n}();u=function(){function n(n,t,i,r,u,f){var e=this;if(this.modalDialogElementSelector=n,this.$meeMwfUtil=t,this.$meeHtmlUtil=i,this.$timeout=r,this.$window=u,this.$meeA11y=f,this.dialogInputSelectors="select, input, textarea, button, a, .glyph-cancel",this.nonInteractiveDataAttributeSelector="[data-oneui-dialog-hide], [disabled]",this.topBoundSelector="[data-top-bound]",this.bottomBoundSelector="[data-bottom-bound]",this.closeButtonSelector="[data-modal-close-button]",this.modalDialogElement=this.$window.document.querySelector(n),!this.modalDialogElement)throw new Error("MwfModalDialogWrapper: modal dialog element "+n+" not found.");mwf.Dialog.dialogInputSelectors="#id-that-does-not-exist";this.whenInitialized=this.$meeMwfUtil.create(mwf.Dialog,this.modalDialogElement).then(function(n){return e.initializeDialog(n)})}return n.prototype.initialize=function(){return this.whenInitialized},n.prototype.show=function(){this.dialog.show()},n.prototype.hide=function(){this.dialog.hide()},n.prototype.update=function(){this.dialog.update()},n.prototype.subscribe=function(n){return this.dialog.subscribe(n)},n.prototype.unsubscribe=function(n){return this.dialog.unsubscribe(n)},n.prototype.initializeDialog=function(n){var t=this;this.dialog=n;this.dialogControls={topBound:this.modalDialogElement.querySelector(this.topBoundSelector),bottomBound:this.modalDialogElement.querySelector(this.bottomBoundSelector),closeButton:this.modalDialogElement.querySelector(this.closeButtonSelector)};this.dialogControls.topBound.addEventListener("focusin",function(n){t.onBoundFocused(n)});this.dialogControls.bottomBound.addEventListener("focusin",function(n){t.onBoundFocused(n)});this.dialogControls.closeButton.addEventListener("click",function(n){t.onCloseButtonClick(n)});this.dialogControls.closeButton.addEventListener("keydown",function(n){t.onCloseButtonKeydown(n)});this.modalDialogElement.addEventListener("keydown",function(n){t.onKeydown(n)})},n.prototype.onBoundFocused=function(n){var t=this.getInteractiveElements(),i;t.length&&(i=(n.target||n.srcElement)==this.dialogControls.topBound?t.length-1:0,this.$meeA11y.focuser.focus(t[i],{}))},n.prototype.onKeydown=function(n){switch(n.which||n.keyCode||n.charCode){case 27:n.preventDefault();this.$meeA11y.utils.isAutoFocusable(this.dialogControls.closeButton)&&this.hide()}},n.prototype.onCloseButtonKeydown=function(n){switch(n.which||n.keyCode||n.charCode){case 13:case 32:n.preventDefault();this.hide()}},n.prototype.onCloseButtonClick=function(){this.hide()},n.prototype.getInteractiveElements=function(){for(var n,i=[],r=this.modalDialogElement.querySelectorAll(this.dialogInputSelectors),t=0;t<r.length;t++)n=r[t],n.matches(this.nonInteractiveDataAttributeSelector)||this.$meeHtmlUtil.isHidden(n)||i.push(n);return i},n}();angular.module(i.moduleName).service("$meeMwfDialogWrapperFactory",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u){this.element=n;this.$scope=t;this.$meeModalDialogService=i;this.$meeStringUtil=r;this.$timeout=u}return n.prototype.$onInit=function(){this.originalOptions={kind:this.kind,ariaDialogLabel:this.meeAriaDialogLabel,ariaCloseButtonLabel:this.meeAriaCloseButtonLabel}},n.prototype.$postLink=function(){var n=this;this.dialogElement=this.element[0].querySelector(".c-dialog");this.$meeModalDialogService.setUpdateHostOptionsCallback(function(t){return n.updateHostOptionsCallback(t)});this.$timeout().then(function(){return n.refreshModalHostOptions()})},n.prototype.updateHostOptionsCallback=function(n){n&&("closed"===n?(this.kind=this.originalOptions.kind,this.meeAriaDialogLabel=this.originalOptions.ariaDialogLabel,this.meeAriaCloseButtonLabel=this.originalOptions.ariaCloseButtonLabel):(n.kind&&(this.kind=n.kind),n.ariaDialogLabel&&(this.meeAriaDialogLabel=n.ariaDialogLabel),n.ariaCloseButtonLabel&&(this.meeAriaCloseButtonLabel=n.ariaCloseButtonLabel)),this.refreshModalHostOptions())},n.prototype.refreshModalHostOptions=function(){var n,t,f,u;for(this.hasCloseButton=!1,n=0,t=["f-flow","f-lightbox"];n<t.length;n++)f=t[n],this.dialogElement.classList.remove(f);if(this.kind){for(var i=!1,r=0,e=this.$meeStringUtil.extractTokens(this.kind);r<e.length;r++){u=e[r];switch(u){case"flow":this.dialogElement.classList.add("f-flow");this.dialogElement.classList.remove("f-lightbox");i=!0;break;case"lightbox":this.dialogElement.classList.add("f-lightbox");this.dialogElement.classList.remove("f-flow");i=!0;break;case"scroll":this.dialogElement.classList.add("f-scroll");break;case"close-button":this.hasCloseButton=!0;break;default:throw new Error("Unsupported kind specified: "+u+".");}}i||(console.warn("ModalDialogHostComponent: when kind 'close-button' requested, 'flow' or 'lightbox' kind must be requested as well."),this.hasCloseButton=!1)}},n.$inject=["$element","$scope","$meeModalDialogService","$meeStringUtil","$timeout"],n}();angular.module(i.moduleName).component("meeModalDialogHost",{template:'\n<div data-grid="container">\n    <div class="c-dialog" id="{{$ctrl.modalId}}" aria-hidden="true" data-modal-dialog-host>\n        <div role="presentation" tabindex="-1"><\/div>\n        <div role="dialog" tabindex="-1" ng-attr-aria-label="{{$ctrl.meeAriaDialogLabel}}">\n            <div data-top-bound tabindex="0"><\/div>\n            <mee-progress-ants-mwf mee-progress-visible="modalOperation"><\/mee-progress-ants-mwf>\n            <button ng-show="$ctrl.hasCloseButton" data-modal-close-button role="button" class="c-glyph glyph-cancel" tabindex="0" ng-attr-aria-label="{{$ctrl.meeAriaCloseButtonLabel}}" mee-progress-hidden="modalOperation"><\/button>\n            <div ui-view="modalContent" role="document"><\/div>\n            <div data-bottom-bound tabindex="0"><\/div>\n        <\/div>\n    <\/div>\n<\/div>',bindings:{modalId:"@",kind:"@",meeAriaDialogLabel:"@",meeAriaCloseButtonLabel:"@"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$q=n;this.$meeMwfDialogWrapperFactory=t;this.isDialogShown=!1}return n.prototype.show=function(n,t){var i=this;if(this.isDialogShown)throw new Error("ModalDialogServiceMwfImpl: Another modal dialog is already shown.");return this.whenModalDialogShown=this.$q.defer(),this.dialog||(this.dialog=this.$meeMwfDialogWrapperFactory.create(n)),this.dialog.initialize().then(function(){return i.setupAndShowDialog(t)}),this.whenModalDialogShown.promise},n.prototype.hide=function(){var n=this,t,i;if(!this.isDialogShown)throw new Error("ModalDialogServiceMwfImpl: There is no active modal dialog to hide.");return this.dialog.unsubscribe(this.onDismissCallbackSubscriber),t=this.$q.defer(),i={onHidden:function(){n.dialog.unsubscribe(i);n.notifyHostDialogClosed();n.isDialogShown=!1;t.resolve()},onShown:function(){},onButtonClicked:function(){}},this.dialog.subscribe(i),this.dialog.hide(),t.promise},n.prototype.stateSwitched=function(n){if(!this.isDialogShown)throw new Error("ModalDialogServiceMwfImpl: There is no active modal dialog to notify about state switch.");n&&n.modalHostOptions&&this.onUpdateHostOptionsCallback&&this.onUpdateHostOptionsCallback(n.modalHostOptions);this.dialog.update()},n.prototype.setUpdateHostOptionsCallback=function(n){this.onUpdateHostOptionsCallback=n},n.prototype.notifyHostDialogClosed=function(){this.onUpdateHostOptionsCallback&&this.onUpdateHostOptionsCallback("closed")},n.prototype.setupAndShowDialog=function(n){var t=this,i={onShown:function(){t.dialog.unsubscribe(i);n&&n.modalHostOptions&&t.onUpdateHostOptionsCallback&&t.onUpdateHostOptionsCallback(n.modalHostOptions);t.isDialogShown=!0;t.whenModalDialogShown.resolve()},onHidden:function(){},onButtonClicked:function(){}};this.onDismissCallbackSubscriber={onHidden:function(){t.dialog.unsubscribe(t.onDismissCallbackSubscriber);t.notifyHostDialogClosed();t.isDialogShown=!1;n.onDismissed()},onShown:function(){},onButtonClicked:function(){}};this.dialog.subscribe(i);this.dialog.subscribe(this.onDismissCallbackSubscriber);this.dialog.show()},n.$inject=["$q","$meeMwfDialogWrapperFactory"],n}();angular.module(i.moduleName).service("$meeModalDialogService",r)}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.link=function(t,i,r){if(i.addClass("m-multi-column"),!r.meeMultiColumn)throw new Error("mee-multi-column component - Error. Please pass number of columns attribute to this component.");var u=parseInt(r.meeMultiColumn);if(isNaN(u))throw new Error("mee-multi-column component - Error. Please pass integer value as attribute to this component.");i.addClass(n.GetNumberOfColumnsClassName(r.meeMultiColumn))},n.GetNumberOfColumnsClassName=function(n){return"f-columns-"+n},n}();angular.module(i.moduleName).directive("meeMultiColumn",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$meeStringUtil=n;this.mwfUtil=t;this.$meeUtil=i;this.restrict="E";this.scope={};this.onKeydown.bind(this)}return n.prototype.compile=function(n){var t=this;return n=this.createNavMenuMarkup(n),function(n,i,r){r.menuStyle&&t.$meeStringUtil.extractTokens(r.menuStyle).forEach(function(n){i.addClass(t.getClassFromStyleName(n))});i[0].querySelector(".c-menu").addEventListener("keydown",t.onKeydown.bind(t));var u=t.$meeUtil.nextUid();i.children().eq(0).attr("aria-controls",u);i.children().eq(1).attr("id",u);t.mwfUtil.create(mwf.NavigationMenu,i)}},n.prototype.getClassFromStyleName=function(n){switch(n){case"accent":return"f-accent";default:throw new Error("mee-nav-menu: '"+n+"' is not a valid style for argument menu-style.");}},n.prototype.createNavMenuMarkup=function(n){var i=n.html(),s=i.length,r,t,u,f,e,o;if((i=i.replace(/menu-trigger/g,"button").replace(/menu-items/g,"ul").replace(/menu-item/g,"li")).length===s)throw new Error("Invalid markup. Check out our demo pages.");if(n.html(i),n.addClass("c-navigation-menu"),r=n.children().eq(0),"BUTTON"!==r.prop("tagName"))throw new Error("mee-nav-menu: menu-trigger is not the first element.");if(r.attr("aria-expanded","false"),r.attr("aria-haspopup","true"),t=n.children().eq(1),"UL"!==t.prop("tagName"))throw new Error("mee-nav-menu: menu-items is not the second element.");for(t.addClass("c-menu"),t.attr("aria-hidden","true"),u=0;u<t.children().length;u++){if(f=t.children().eq(u),e=f.prop("tagName"),"LI"!==e)throw new Error("mee-nav-menu: '"+e+"' is not a valid tag under menu-items.");if(o=f.children().prop("tagName"),"A"!==o)throw new Error("mee-nav-menu: '"+o+"' is not a valid tag under menu-item.");}return n},n.prototype.onKeydown=function(n){switch(n.which||n.keyCode||n.charCode){case 13:case 32:n.preventDefault();n.target.click()}},n}();angular.module(i.moduleName).directive("meeNavMenu",["$meeStringUtil","$meeMwfUtil","$meeUtil",function(n,t,i){return new r(n,t,i)}])}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});u='<div class="c-pivot">\n                               <button class="c-flipper f-previous" aria-hidden="true" tabindex="-1" role="presentation"><\/button>\n                               <ul role="tablist">\n                                 '+(r="##links##")+'\n                               <\/ul>\n                               <button class="c-flipper f-next" aria-hidden="true" tabindex="-1" role="presentation"><\/button>\n                               <section aria-hidden="true"><\/section>\n                             <\/div>';f=function(){function n(n,t,i,r,u,f,e){this.element=n;this.$meeUtil=t;this.$mwfUtil=i;this.$timeout=r;this.$compile=u;this.$scope=f;this.$state=e;this.stateMapping={};this.useExactState=!1}return n.prototype.$postLink=function(){var n=this;if(this.kind){if("use-exact-state"!==this.kind)throw new Error("Error: nav-pivot does not support kind "+this.kind);this.useExactState=!0}this.handleStateChange(this.$state.current.name);this.$scope.$on("$stateChangeSuccess",function(t,i){n.handleStateChange(i.name)});this.$meeUtil.afterContentComplete(function(){for(var h,f,l,s,e="",o=n.element[0].getElementsByTagName("mee-nav-pivot-item"),i=0;i<o.length;i++){if(h=o[i].getAttribute("tab-title").trim(),f=o[i].getAttribute("ui-sref"),!f)throw new Error("nav-pivot: ui-sref value must be specified for each pivot item.");var t=f.split("(")[0],a="{{$ctrl.isStateCurrent('"+t+"')}}",c='ui-sref="'+f+"\" ng-class=\"{ 'f-active' : $ctrl.isStateCurrent('"+t+"') }\"";n.isStateCurrent(t)&&(c+=' class="f-active"');e=e+'\n                                 <li role="tab"\n                                    '+c+'\n                                    aria-selected="'+a+'"\n                                    data-bi-id="'+t+'"\n                                    ng-keydown="$ctrl.handleKeyDown($event)">\n                                   '+(n.stateMapping[t]=h)+"\n                                 <\/li>"}l=u.replace(r,e);s=n.$compile(l)(n.$scope);n.element.empty().append(s);n.$mwfUtil.create(mwf.Pivot,s).then(function(t){n.pivotControl=t})})},n.prototype.isStateCurrent=function(n){return this.useExactState?this.currentStateId===n:0===this.currentStateId.indexOf(n)},n.prototype.handleStateChange=function(n){var t=this;this.currentStateId=n;this.pivotControl&&this.$timeout(function(){if(!t.element[0].querySelector('li[role="tab"][tabindex="0"].f-active'))for(var i=t.element[0].querySelectorAll('li[role="tab"]'),n=0;n<i.length;n++)if(i[n].classList.contains("f-active")){t.pivotControl.setControllerIndex(n);break}})},n.prototype.handleKeyDown=function(n){var t=this;this.$timeout(function(){if("ArrowLeft"===n.key||"ArrowRight"===n.key){var i=t.element[0].querySelector('li[role="tab"].f-active');i&&i.click()}})},n.$inject=["$element","$meeUtil","$meeMwfUtil","$timeout","$compile","$scope","$state"],n}();angular.module(i.moduleName).component("meeNavPivot",{bindings:{kind:"@"},controller:f})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){};angular.module(i.moduleName).component("meePaneGroup",{transclude:!0,controller:r,template:'<div class="m-panes" ng-transclude />'})}(MeePortal||(MeePortal={})),function(n){var t,r,i,u,f;t=n.OneUI||(n.OneUI={});r=t.Angular||(t.Angular={});i={"align-middle":"f-align-middle",stacked:"f-stacked",normal:""};u=function(){function n(n){this.$meeStringUtil=n}return n.$inject=["$meeStringUtil"],n}();f=function(){function n(){this.restrict="A";this.controller=u}return n.prototype.link=function(n,t,r,u){var f=u.$meeStringUtil.extractTokens(r.meePane);if(1<f.length)throw new Error("Invalid Markup: The Pane directive option is invalid. See PaneDisplayType for valid values.");f.forEach(function(n){if(!(n in i))throw new Error("Invalid Markup: The Pane directive option is invalid. See PaneDisplayType for valid values.");t.addClass(i[n])})},n}();angular.module(r.moduleName).directive("meePane",function(){return new f})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$oneUiDefaults=n;this.restrict="A"}return n.prototype.link=function(t,i,r){var u=r.meeParagraph||this.$oneUiDefaults.paragraphStyle;if(!(u in n.classMap))throw new Error("'"+u+"' is not a valid option for 'mee-paragraph'");i.addClass(n.classMap[u])},n.classMap={para1:"c-paragraph-1",para2:"c-paragraph-2",para3:"c-paragraph-3",para4:"c-paragraph-4",para1Lean:"c-paragraph-1 f-lean",para2Lean:"c-paragraph-2 f-lean",para3Lean:"c-paragraph-3 f-lean",para4Lean:"c-paragraph-4 f-lean"},n}();angular.module(i.moduleName).directive("meeParagraph",["$oneUiDefaults",function(n){return new r(n)}])}(MeePortal||(MeePortal={})),function(n){var i,t,r;i=n.OneUI||(n.OneUI={});t=i.Angular||(i.Angular={});r=function(){function n(n,t){this.element=n;this.$meeHtmlUtil=t;this._picture=null;this._image=null}return n.prototype.$postLink=function(){this.validateSize();this.validateImage();this.addAccessibilityAttributes();this.addClasses()},n.prototype.validateSize=function(){if(!this.size||!this.isValidSizeString(this.size))throw new Error("Invalid markup: The Persona component must have a valid 'size' attribute. "+this.getPossibleSizeValuesString());this.sizeValue=n.classMap[this.size]},n.prototype.isValidSizeString=function(t){return t in n.classMap},n.prototype.getPossibleSizeValuesString=function(){return'Possible values are: [ "'+Object.keys(n.classMap).join('" , "')+'" ];'},n.prototype.validateImage=function(){if(1<this.image.length)throw new Error("Invalid markup: The Persona component cannot contain more than one image.");},n.prototype.addClasses=function(){this.image.addClass("c-image f-round");this.$meeHtmlUtil.prependClass(this.element,""+this.sizeValue)},n.prototype.addAccessibilityAttributes=function(){this.hasText()?(this.image.attr("alt")&&console.warn("The persona component 'img' element was given an alt text, when it should not have one! The given value will be ignored. Consider using the 'picture-aria-label' attribute instead."),this.image.removeAttr("alt")):this.hasCustomImage()?(this.image.attr("alt",this.pictureAriaLabel),this.image.attr("title",this.pictureAriaLabel)):(this.picture.attr("role","img"),this.picture.attr("aria-label",this.pictureAriaLabel),this.picture.attr("title",this.pictureAriaLabel))},n.prototype.hasText=function(){var t=this.element.find("persona-body").children(),i,n;if(0===t.length)return!1;for(i=!0,n=0;n<t.length;n++)if(t[n].innerText){i=!1;break}return!i},n.prototype.hasCustomImage=function(){return 0!==this.image.length},Object.defineProperty(n.prototype,"picture",{get:function(){return this._picture||(this._picture=this.element.find("picture")),this._picture},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"image",{get:function(){return this._image||(this._image=this.picture.find("img")),this._image},enumerable:!0,configurable:!0}),n.$inject=["$element","$meeHtmlUtil"],n.classMap={persona1:"m-persona-1",persona2:"m-persona-2",persona3:"m-persona-3",persona4:"m-persona-4",persona5:"m-persona-5"},n}();angular.module(t.moduleName).component("meePersona",{template:'\n                <div>\n                    <picture ng-transclude="image"><\/picture>\n                <\/div>\n                <div ng-transclude="body">\n                <\/div>\n            ',transclude:{image:"?personaImage",body:"?personaBody"},bindings:{size:"@",pictureAriaLabel:"@"},controller:r}).directive("personaName",function(){return new t.AddClassDirective("c-heading")}).directive("personaInfo",function(){return new t.AddClassDirective("c-subheading")})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.$element=n;this.$meeStringUtil=t;this.$meeUtil=i;this.$scope=r}return n.prototype.$onInit=function(){var n=this.meePersonaMenu.triggerPersonaId+"-"+this.itemId;this.$element.attr("id",n)},n.prototype.$postLink=function(){var n=this;this.$meeUtil.afterContentComplete(function(){var t=n.$element[0],r=n.meePersonaMenu.ngModel,u=n.meePersonaMenu.triggerPersonaId+"-"+r;if(n.$element[0].getAttribute("id")===u){n.$element.addClass("active-persona-menu-item");var f=n.$element.find("persona-image").children(),e=n.$element.find("persona-body").children(),i=document.getElementById(n.meePersonaMenu.triggerPersonaId),o=i.children[0].children[0].children[0],s=i.children[1].children[0];o.appendChild(f.clone(!0)[0]);s.appendChild(e.clone(!0)[0])}t.classList.add("f-context-text-only");t.classList.remove("ng-isolate-scope");t.classList.add("ng-isolate-scope");t.classList.remove("ng-scope");t.classList.add("ng-scope")})},n.$inject=["$element","$meeStringUtil","$meeUtil","$scope"],n}();u=function(){function n(){this.restrict="A";this.controllerAs="personaMenuItem";this.controller=r;this.bindToController={itemId:"@"};this.require={meePersonaMenu:"^meePersonaMenu"};this.template="<span ng-transclude><\/span>";this.transclude=!0;this.scope={}}return n.factory=function(){return function(){return new n}},n}();angular.module(i.moduleName).directive("meePersonaMenuItem",u.factory())}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r="##menuItems##";u=function(){function n(n,t,i,r){var u=this;this.$element=n;this.$meeUtil=t;this.$mwfUtil=i;this.$meeStringUtil=r;this.actionMenuCallback=function(n){n.subscribe(u)}}return Object.defineProperty(n.prototype,"ngModel",{get:function(){return this._ngModel},set:function(n){this.updatePersonaMenu(this._ngModel,n);this._ngModel=n},enumerable:!0,configurable:!0}),n.prototype.onSelection=function(n){var t=n.id.replace(this.triggerPersonaId+"-","");this.updatePersonaMenu(this._ngModel,t)},n.prototype.updatePersonaMenu=function(n,t){var f=this,i,r,s,u;if(this.triggerPersonaId&&(i=this.triggerPersonaId+"-"+n,r=this.triggerPersonaId+"-"+t,r&&i&&i!==r)){this.ngModelCtrl=this.$element.controller("ngModel");s=document.getElementById(i);u=document.getElementById(r);s.classList.remove("active-persona-menu-item");u.classList.add("active-persona-menu-item");var h=document.getElementById(this.triggerPersonaId),e=h.children[0].children[0].children[0],c=e.children[0],o=h.children[1].children[0],l=o.children[0],a=u.getElementsByTagName("persona-image")[0].children[0],v=u.getElementsByTagName("persona-body")[0].children[0];e.removeChild(c);e.appendChild(a.cloneNode(!0));o.removeChild(l);o.appendChild(v.cloneNode(!0));this.$meeUtil.afterContentComplete(function(){f.ngModel=t;f.ngModelCtrl.$setViewValue(f.ngModel)})}},n.prototype.$onInit=function(){var n=this.$meeUtil.nextUid();this.triggerPersonaId="trigger-persona-"+n},n.prototype.$postLink=function(){this.$mwfUtil.create(mwf.ActionMenu,this.$element).then(this.actionMenuCallback)},n.$inject=["$element","$meeUtil","$meeMwfUtil","$meeStringUtil"],n}();f=function(){function n(){this.restrict="E";this.controllerAs="personaMenu";this.controller=u;this.bindToController={ngDisabled:"<?",ngModel:"<",triggerPersonaSize:"@",triggerPictureAriaLabel:"@"}}return n.factory=function(){return function(){return new n}},n.prototype.compile=function(n){var t=n.find("li"),f="",i,e,u;if(!t||0===t.length)throw new Error("mee-persona-menu: At least one <mee-persona-menu-item> element must be provided.");for(i=0;i<t.length;i++)e=t[i],e.setAttribute("role","menuitemradio"),f=f+"\n                                "+e.outerHTML;return u='<div class="c-action-menu">\n                        <button class="c-action-trigger" aria-haspopup="true" aria-expanded="false" ng-disabled="personaMenu.ngDisabled">\n                          <mee-persona id="{{personaMenu.triggerPersonaId}}" class="x-float-left" size="{{personaMenu.triggerPersonaSize}}" picture-aria-label="{{personaMenu.triggerPictureAriaLabel}}">\n                            <persona-image>\n                            <\/persona-image>\n                            <persona-body>\n                            <\/persona-body>\n                          <\/mee-persona>\n                        <\/button>\n                        <ul class="c-context-menu" role="menu">\n                          ##menuItems##\n                        <\/ul>\n                      <\/div>',u=u.replace(r,f),n.html(u),function(){}},n}();angular.module(i.moduleName).directive("meePersonaMenu",f.factory())}(MeePortal||(MeePortal={})),function(n){var i,r,t,u,f,e,o;i=n.OneUI||(n.OneUI={});r=i.Angular||(i.Angular={});t=function(n){return Array.prototype.slice.call(n)};u=function(){function n(){this.restrict="E";this.controller=f;this.bindToController={ngDisabled:"<?"}}return n.factory=function(){return function(){return new n}},n.prototype.compile=function(n){var i=n[0],l=i.getElementsByTagName("mee-tab-title"),a=i.getElementsByTagName("mee-tab-content"),r=i.getElementsByTagName("mee-tab"),f=r[0].getAttribute("ng-repeat"),e,o,u,h,c;f&&(r[0].removeAttribute("ng-repeat"),e=r[0].getElementsByTagName("mee-tab-title"),o=r[0].getElementsByTagName("mee-tab-content"),t(e).forEach(function(n){return n.setAttribute("ng-repeat",f)}),t(o).forEach(function(n){return n.setAttribute("ng-repeat",f)}));t(r).forEach(function(n){var i=n.getAttribute("active"),t;i&&(n.removeAttribute("active"),t=n.getElementsByTagName("mee-tab-title"),t&&t[0].setAttribute("active",i))});var v=this.createFlipperButtonWithClass("f-previous"),y=this.createFlipperButtonWithClass("f-next"),s=this.createUlWrapperDiv();return t(l).forEach(function(n){return s.appendChild(n)}),u=this.createPivotWrapperDiv(),u.appendChild(v),u.appendChild(s),u.appendChild(y),t(a).forEach(function(n){return u.appendChild(n)}),i.appendChild(u),t(r).forEach(function(n){return i.removeChild(n)}),h=i.querySelectorAll("mee-tab-title"),t(h).forEach(function(n){n.setAttribute("mee-tab-title","");n.setAttribute("role","tab")}),c=i.querySelectorAll("mee-tab-content"),t(c).forEach(function(n){n.setAttribute("mee-tab-content","");n.setAttribute("role","tabpanel");n.setAttribute("aria-hidden","true")}),n.html(i.innerHTML.replace(/<mee-tab-title/g,"<li").replace(/<\/mee-tab-title/g,"<\/li").replace(/<mee-tab-content/g,"<section").replace(/<\/mee-tab-content/g,"<\/section")),function(){}},n.prototype.createFlipperButtonWithClass=function(n){var t=document.createElement("button");return t.setAttribute("class",n+" c-flipper"),t.setAttribute("tabIndex","-1"),t},n.prototype.createUlWrapperDiv=function(){var n=document.createElement("ul");return n.setAttribute("role","tablist"),n},n.prototype.createPivotWrapperDiv=function(){var n=document.createElement("div");return n.setAttribute("pivot-div",""),n},n}();f=function(){function n(n,t){this.$element=n;this.$meeUtil=t}return n.prototype.$onChanges=function(n){n.ngDisabled&&this.updateDisabledState()},n.prototype.$postLink=function(){var n=this;this.$meeUtil.afterContentComplete(function(){var f=n.$element[0],r=f.querySelectorAll("li[role='tab']"),i=f.querySelectorAll("section[role='tabpanel']"),u=!1;if(!r||0===i.length)throw new Error("At least one tab title needs to be provided.");if(!i||0===i.length)throw new Error("At least one tab content needs to be provided.");if(r.length!==i.length)throw new Error("Number of tab titles and tab contents mismatch");t(r).forEach(function(n){if("true"===n.getAttribute("active")){if(u)throw new Error("Cannot set more than one tabs active");u=!0}});u=!0;n.updateDisabledState()})},n.prototype.updateDisabledState=function(){var n=this.$element[0].getElementsByClassName("c-pivot")[0];n&&(this.ngDisabled?(n.setAttribute("data-f-state","disabled"),n.classList.add("f-disabled")):(n.removeAttribute("data-f-state"),n.classList.remove("f-disabled")))},n.$inject=["$element","$meeUtil"],n}();e=function(){function n(n,t,i){this.$meeUtil=n;this.$element=t;this.$mwfUtil=i}return n.prototype.$postLink=function(){var n=this;this.$element[0].classList.add("c-pivot");this.$meeUtil.afterContentComplete(function(){n.linkContentAndSetActive();n.$mwfUtil.create(mwf.Pivot,n.$element)})},n.prototype.linkContentAndSetActive=function(){var u=this,i=this.$element[0],f=i.querySelectorAll("li[role='tab']"),e=i.querySelectorAll("section[role='tabpanel']"),r=0,n=[];t(f).forEach(function(t){if(!t.getAttribute("aria-controls")){var i=u.$meeUtil.nextUid();t.setAttribute("aria-controls",i);n.push(t);e[r].setAttribute("id",i)}r++});1===n.length&&n[0]&&n[0].click()},n.$inject=["$meeUtil","$element","$meeMwfUtil"],n}();o=function(){function n(n,t){this.$meeUtil=n;this.$element=t}return n.prototype.$postLink=function(){var n=this;this.$meeUtil.afterContentComplete(function(){n.pivotDivCtrl.linkContentAndSetActive()});this.active&&this.$element[0].classList.add("f-active")},n.$inject=["$meeUtil","$element"],n}();angular.module(r.moduleName).directive("meePivot",u.factory()).directive("pivotDiv",function(){return{restrict:"A",controller:e}}).directive("meeTabTitle",function(){return{restrict:"A",controller:o,bindToController:{active:"<"},require:{pivotDivCtrl:"^pivotDiv"},template:"<div ng-transclude><\/div>",transclude:!0,scope:{}}}).directive("meeTabContent",function(){return{restrict:"A",template:"<div ng-transclude><\/div>",transclude:!0,scope:{}}})}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t,i,r;(i=t||(t={}))[i.regional=0]="regional";i[i.local=1]="local";i[i.small=2]="small";i[i.large=3]="large";i[i.top=4]="top";r=function(){function n(n,t){this.element=n;this.$meeStringUtil=t}return n.prototype.$onInit=function(){var n=this;this.element.addClass("c-progress");this.element.attr("role","progressbar");this.kind?(this.$meeStringUtil.extractTokens(this.kind).forEach(function(t){n.element.addClass(n.GetClassFromKind(t))}),t[this.kind]===t.local&&this.element.addClass(this.GetClassFromKind(t[t.small]))):this.element.addClass(this.GetClassFromKind(t[t.regional]))},n.prototype.GetClassFromKind=function(n){switch(t[n]){case t.regional:return"f-indeterminate-regional";case t.local:return"f-indeterminate-local";case t.large:return"f-progress-large";case t.small:return"f-progress-small";case t.top:return"mee-progress-top";default:throw new Error("mee-progress-ants-mwf component - Error '"+n+"' is not a supported style. Check out our demo pages.");}},n.$inject=["$element","$meeStringUtil"],n}();angular.module(n.moduleName).component("meeProgressAntsMwf",{template:"<span><\/span>\n             <span><\/span>\n             <span><\/span>\n             <span><\/span>\n             <span><\/span>",bindings:{kind:"@"},controller:r})})((t=n.OneUI||(n.OneUI={})).Angular||(t.Angular={}))}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){}return n.prototype.$onInit=function(){},n.$inject=[],n}();angular.module(i.moduleName).component("meeProgressDeterminate",{template:'<progress \n                            class="c-progress" \n                            role="progressbar"\n                            aria-valuemax="100"  \n                            max="100" \n                            ng-attr-value="{{ $ctrl.progressValue }}"\n                            aria-valuenow="{{ $ctrl.progressValue }}"\n                            aria-valuemin="0" \n                            tabindex="-1"\n                            aria-label="{{ $ctrl.meeAriaLabel }}">\n                       <\/progress>',bindings:{meeAriaLabel:"@",progressValue:"<"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$scope=n;this.$element=t;this.$meeUtil=i}return n.prototype.$onInit=function(){var n=this;if(this.groupStyle){if("inline"!==this.groupStyle)throw new Error('OneUI.Angular - mee-radio-group: "'+this.groupStyle+'" is not a valid value for argument group-style.');this.inlineClassName="f-inline"}this.radioName||(this.radioName="radio-group-"+this.$meeUtil.nextUid());this.$scope.$watch(function(){return n.$element.find("mee-radio").length},function(t){var r,i,u;if(0<t)for(r=n.$element.find("mee-radio"),i=0;i<r.length;i++)u=r[i].querySelector("input"),u.setAttribute("aria-posinset",(i+1).toString()),u.setAttribute("aria-setsize",t.toString())})},n.prototype.onRadioComponentChange=function(){this.ngModelCtrl.$setViewValue(this.ngModel)},n.$inject=["$scope","$element","$meeUtil"],n}();angular.module(i.moduleName).component("meeRadioGroup",{transclude:!0,require:{ngModelCtrl:"^ngModel"},template:"<fieldset ng-class=\"['c-radio', $ctrl.inlineClassName]\" ng-disabled=\"$ctrl.ngDisabled\">\n                            <legend ng-class=\"['c-label', $ctrl.isLegendVisible ? '': 'x-screen-reader']\">{{$ctrl.legend}}<\/legend>\n                            <div>\n                               <div ng-transclude><\/div>\n                           <\/div>\n                        <\/fieldset>",bindings:{legend:"@",isLegendVisible:"<",groupStyle:"@",ngDisabled:"<",ngModel:"=",ngChange:"&",radioName:"@"},controller:r}).component("meeRadio",{transclude:!0,template:'<label class="c-label">\n                            <input\n                                ng-attr-id="{{ $ctrl.radioId }}"\n                                ng-model="$ctrl.meeRadioGroup.ngModel"\n                                type="radio"\n                                value="{{$ctrl.value}}"\n                                name="{{$ctrl.meeRadioGroup.radioName}}"\n                                ng-attr-aria-label="{{$ctrl.meeAriaLabel}}"\n                                ng-disabled="$ctrl.ngDisabled"\n                                ng-change="$ctrl.meeRadioGroup.onRadioComponentChange()">\n                            <span ng-transclude><\/span>\n                        <\/label>',bindings:{radioId:"@",meeAriaLabel:"@",ngDisabled:"<",value:"@"},require:{meeRadioGroup:"^meeRadioGroup"}})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.element=n;this.attrs=t;this.$meeUtil=i;this.$mwfUtil=r}return n.prototype.$postLink=function(){var n=this;this.$meeUtil.afterContentComplete(function(){var t,r,i;if(n.selectionType=n.attrs.kind||"single",n.selectionType&&"multiple"!==n.selectionType&&"single"!==n.selectionType)throw new Error("mee-refine-menu: Invalid option for 'kind' attribute.");n.expanded=n.attrs.state&&-1!==n.attrs.state.indexOf("expanded");t=n.element.find("button")[0];t.setAttribute("aria-expanded",n.expanded?"true":"false");t.innerText=n.attrs.triggerText;r=n.$meeUtil.nextUid();t.setAttribute("aria-controls",r);i=n.element.find("ul")[0];i.setAttribute("id",r);i.setAttribute("data-js-select-type","multiple"===n.selectionType?"multi-select":"single-select");i.setAttribute("aria-label",n.attrs.meeAriaLabel);n.$mwfUtil.create(mwf.Drawer,n.element)})},n.prototype.itemClicked=function(n,t){"single"!==this.selectionType||"true"!==n.target.getAttribute("aria-selected")?this.onSelected({$event:{id:t,target:n.currentTarget}}):n.stopImmediatePropagation()},n.$inject=["$element","$attrs","$meeUtil","$meeMwfUtil"],n}();u=function(){function n(n,t){this.element=n;this.$meeUtil=t}return n.prototype.$postLink=function(){var n=this;this.$meeUtil.afterContentComplete(function(){null!==n.element[0].getAttribute("selected")&&n.element.find("a")[0].setAttribute("aria-selected","true");n.ariaLabel=n.element[0].getAttribute("mee-aria-label");n.id||(n.id=n.$meeUtil.nextUid());n.element.attr("role","presentation")})},n.prototype.itemClicked=function(n){this.refineMenuCtrl.itemClicked(n,this.id)},n.$inject=["$element","$meeUtil"],n}();angular.module(i.moduleName).component("meeRefineMenu",{controller:r,bindings:{onSelected:"&"},transclude:!0,template:'<div class="c-drawer" ng-class="{\'hide-x\': $ctrl.selectionType === \'single\'}">\n                         <button class="c-glyph"><\/button>\n                         <ul role="tablist" ng-transclude><\/ul>\n                       <\/div>'});angular.module(i.moduleName).directive("refineMenuItem",function(){return{controller:u,restrict:"A",transclude:!0,scope:!0,controllerAs:"refineMenuItemCtrl",bindToController:{id:"@?",icon:"@?"},template:'<a class="c-refine-item"\n                          aria-label="{{refineMenuItemCtrl.ariaLabel}}"\n                          ng-click="refineMenuItemCtrl.itemClicked($event)"\n                          role="tab"\n                          mee-no-href>\n                         <span aria-hidden="true" ng-if="refineMenuItemCtrl.icon" class="mee-refine-icon {{refineMenuItemCtrl.icon}}"><\/span>\n                         <span aria-hidden="true" ng-transclude><\/span>\n                       <\/a>',require:{refineMenuCtrl:"^meeRefineMenu"}}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r){this.element=n;this.attrs=t;this.$mwfUtil=i;this.$meeUtil=r;this.initialLoadComplete=!1}return n.prototype.$postLink=function(){var n=this,t=this.$meeUtil.nextUid(),i;this.element.find("div")[0].setAttribute("id",t);i=this.element[0].getElementsByClassName("refine-menu-collection-button");i[0].setAttribute("aria-controls",t);i[1].setAttribute("aria-controls",t);this.$meeUtil.afterContentComplete(function(){for(var u,i,f,r=n.element.find("mee-refine-menu"),t=0;t<r.length;t++)u=document.createElement("hr"),u.className="c-divider",r[t].parentElement.insertBefore(u,r[t]);if(i=n.element[0].getElementsByClassName("refine-menu-header-container")[0],f=n.element.find("refine-menu-header")[0],1<f.children.length)throw new Error("mee-refine-menu-collection: refine-menu-header must contain a single top-level element.");i.insertBefore(f.childNodes[1],i.children[1]);i.removeChild(i.children[0]);n.$mwfUtil.create(mwf.RefineMenu,n.element).then(function(){n.initialLoadComplete=!0})})},n.$inject=["$element","$attrs","$meeMwfUtil","$meeUtil"],n}();angular.module(i.moduleName).component("meeRefineMenuCollection",{transclude:{header:"refineMenuHeader",content:"refineMenuContent"},template:'<nav class="c-refine-menu">\n                               <div data-mobile-target>\n                                 <div class="refine-menu-header-container">\n                                   <ng-transclude class="refine-menu-header" ng-transclude-slot="header"><\/ng-transclude>\n                                   <button class="c-action-trigger c-glyph glyph-cancel refine-menu-collection-button" \n                                           aria-label="{{$ctrl.meeCollapseAriaLabel}}" \n                                           aria-expanded="true">\n                                   <\/button>\n                                 <\/div>\n                                 <ng-transclude ng-transclude-slot="content"><\/ng-transclude>\n                               <\/div>\n                               <button class="c-action-trigger refine-menu-collection-button" \n                                       aria-label="{{$ctrl.meeExpandAriaLabel}}" \n                                       aria-expanded="true"\n                                       ng-show="$ctrl.initialLoadComplete">\n                                 {{$ctrl.expandText}}\n                               <\/button>\n                             <\/nav>',controller:r,bindings:{meeCollapseAriaLabel:"@",collapseText:"@",meeExpandAriaLabel:"@",expandText:"@"}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$sce=n}return n.$inject=["$sce"],n}();angular.module(i.moduleName).component("meeRichParagraph",{template:"<p \n                mee-paragraph=\"{{$ctrl.meeParagraphStyle}}\"\n                ng-bind-html='$ctrl.$sce.trustAsHtml($ctrl.text)'><\/p>",bindings:{text:"<",meeParagraphStyle:"@"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.$sce=n}return n.$inject=["$sce"],n}();angular.module(i.moduleName).component("meeRichSpan",{template:"<span ng-class=\"$ctrl.meeClass\" ng-bind-html='$ctrl.$sce.trustAsHtml($ctrl.text)'><\/span>",bindings:{text:"<",meeClass:"@"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i,r,u){this.element=n;this.$meeUtil=t;this.$meeStringUtil=i;this.mwfUtil=r;this.$timeout=u}return n.prototype.$onInit=function(){var i=this,t,n,r;if(this.selectElement=this.element.find("select"),!this.selectElement.length)throw new Error("mee-select: select tag is missing");this.element.addClass("c-select");t=this.id?this.id+"-select":"select-"+this.$meeUtil.nextUid();this.selectElement.attr("id",t);this.selectElement.prop("disabled",this.ngDisabled);n=this.element.find("label");n.length&&(r=t+".label",n.attr("id",r),n.attr("for",t),n.addClass("c-label"));this.menuStyle&&this.$meeStringUtil.extractTokens(this.menuStyle).forEach(function(n){i.element.addClass(i.getClassFromStyleName(n))})},n.prototype.$postLink=function(){var n=this;this.$meeUtil.afterContentComplete(function(){var r=!1,i,t;if(n.ngModelCtrl)for(i=n.element.find("option"),t=0;t<i.length;t++)i[t].value===n.ngModelCtrl.$modelValue&&(r=!0,i.eq(t).attr("selected","selected"));!r&&n.unselectedText&&n.selectElement.attr("aria-label",n.unselectedText);n.mwfUtil.create(mwf.Select,n.element).then(function(t){n.selectControl=t;n.ngModelCtrl&&(n.selectControl.subscribe({onSelectionChanged:function(t){n.$timeout(function(){n.ngModelCtrl.$setViewValue(t.id)})}}),n.ngModelCtrl.$render=function(){n.selectControl.setSelectedItem(n.ngModelCtrl.$modelValue)})})})},n.prototype.$onChanges=function(n){var i=n.ngDisabled,t;i&&(t=!!i.currentValue,this.selectElement&&this.selectElement.prop("disabled",t),this.selectControl&&(this.selectControl.selectMenuDiv.setAttribute("aria-disabled",t),this.selectControl.selectMenuTrigger.disabled=t))},n.prototype.getClassFromStyleName=function(n){switch(n){case"accent":this.menuStyleClassName="f-accent";break;case"border":this.menuStyleClassName="f-border";break;case"flex":this.menuStyleClassName="f-flex";break;case"scroll":this.menuStyleClassName="f-scroll";break;default:throw new Error("mee-select: '"+this.menuStyle+"' is not a valid value for argument menu-style.");}return this.menuStyleClassName},n.$inject=["$element","$meeUtil","$meeStringUtil","$meeMwfUtil","$timeout"],n}();angular.module(i.moduleName).component("meeSelect",{require:{ngModelCtrl:"?ngModel"},bindings:{menuStyle:"@",unselectedText:"@",ngDisabled:"<?",id:"@"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$meeMwfUtil=n;this.$meeUtil=t}return n.$inject=["$meeMwfUtil","$meeUtil"],n}();u=function(){function n(n,t){this.element=n;this.$meeUtil=t;this.restrict="A";this.labelledbyId=this.$meeUtil.nextUid()}return n.prototype.$postLink=function(){var n=this;this.element.append('<span id="'+this.labelledbyId+'" class="x-screen-reader" role="status" aria-live="assertive"><\/span>');this.$meeUtil.afterContentComplete(function(){var t=n.$meeUtil.nextUid();n.element.find("button").attr("name",t)})},n.$inject=["$element","$meeUtil"],n}();f=function(){function n(){this.restrict="A";this.controller=r}return n.factory=function(){return function(){return new n}},n.prototype.link=function(n,t,i,r){t.addClass("c-select-button");t.attr("role","checkbox");t.attr("aria-checked","false");r.$meeMwfUtil.create(mwf.SelectButton,t)},n}();angular.module(i.moduleName).directive("meeSelectButtonGroup",function(){return{controller:u,restrict:"A",transclude:!0,controllerAs:"selectButtonGroupCtrl",template:'<div class="c-group f-wrap-items" role="group" aria-labelledby="{{selectButtonGroupCtrl.labelledbyId}}" ng-transclude>\n                       <\/div>'}});angular.module(i.moduleName).directive("selectButtonItem",f.factory())}(MeePortal||(MeePortal={})),function(n){var t,r,i,u,f;t=n.OneUI||(n.OneUI={});r=t.Angular||(t.Angular={});i={hidden:"f-hidden",normal:""};u=function(){function n(n,t){this.$meeStringUtil=n;this.$meeMwfUtil=t}return n.$inject=["$meeStringUtil","$meeMwfUtil"],n}();f=function(){function n(){this.restrict="A";this.controller=u}return n.prototype.link=function(n,t,r,u){t.addClass("m-sticky");var f=u.$meeStringUtil.extractTokens(r.meeSticky);if(1<f.length)throw new Error("Invalid Markup: The Sticky directive option is invalid. See StickyDisplayType for valid values.");f.forEach(function(n){if(!(n in i))throw new Error("Invalid Markup: The Sticky directive option is invalid. See StickyDisplayType for valid values.");t.addClass(i[n])});u.$meeMwfUtil.create(mwf.Sticky,t)},n}();angular.module(r.moduleName).directive("meeSticky",function(){return new f})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="E"}return n.prototype.link=function(n,t){t.addClass("c-table")},n}();angular.module(i.moduleName).directive("meeTable",function(){return new r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="A"}return n.prototype.link=function(n,t){t.addClass("c-tag")},n}();u=function(){function n(){this.restrict="A";this.scope={meeTagShowMore:"<?"}}return n.prototype.link=function(n,t){var i=this;t.addClass("c-tag f-show-all");n.$onChanges=function(){i.updateText(n,t)};this.updateText(n,t)},n.prototype.updateText=function(n,t){if(void 0!==n.meeTagShowMore){var i=+n.meeTagShowMore;if(isNaN(i))throw new Error("mee-tag-show-more expects a number");if(99<i||i<1)throw new Error("mee-tag-show-more expects a number between 1 and 99");t.text("+"+i)}},n}();angular.module(i.moduleName).directive("meeTag",function(){return new r}).directive("meeTagShowMore",function(){return new u})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u,f,e,o,s,h,c,l;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(){this.restrict="E";this.controller=u;this.controllerAs="$ctrlMeeTextActionDirective";this.bindToController={glyph:"@meeTextActionKind",displayType:"@meeDisplayType",autoSuggest:"<meeAutoSuggest",autoSuggestPosition:"@meeAutoSuggestPosition",autoSuggestScrollable:"<meeAutoSuggestScrollable",autoSuggestActOnSelect:"<meeAutoSuggestActOnSelect",autoSuggestGetSuggestionsAsync:"&meeGetSuggestions",autoSuggestPerformAction:"&meePerformAction",autoSuggestNoSuggestionLabel:"@meeNoSuggestionLabel",autoSuggestDebounceTimeout:"<meeDebounceTimeout"}}return n.factory=function(){return function(){return new n}},n.prototype.compile=function(n){var t=n[0],e=t.getAttribute("mee-text-action-kind"),o=!!t.getAttribute("mee-auto-suggest"),r=t.getElementsByTagName("label"),u=t.getElementsByTagName("input"),f=t.getElementsByTagName("button"),i;return this.validate(e,o,u,f,t),u[0].setAttribute("mee-text-action-input",""),f[0].setAttribute("mee-text-action-button",""),i=this.createTextActionWrapperDiv(),i.appendChild(u[0]),i.appendChild(f[0]),i.appendChild(this.createSuggestionBoxDiv()),r&&r.length&&(r[0].setAttribute("mee-text-action-label",""),t.appendChild(r[0])),t.appendChild(i),n.html(t.innerHTML),function(){}},n.prototype.validate=function(n,t,i,r,u){if(!n)throw new Error("A kind attribute must be provided.");if(!i||1!==i.length)throw new Error("A single input element must be provided.");if(!r||1!==r.length)throw new Error("A single button element must be provided.");if(!i[0].getAttribute("aria-label")&&!i[0].getAttribute("placeholder"))throw new Error("aria-label or placeholder should be provided for input element.");if(!r[0].getAttribute("aria-label"))throw new Error("aria-label should be provided for button element.");if(t){if(!u.getAttribute("mee-get-suggestions"))throw new Error("mee-get-suggestions attribute must be specified if auto-suggest is enabled.");if(!u.getAttribute("mee-no-suggestion-label"))throw new Error("mee-no-suggestion-label attribute must be specified if auto-suggest is enabled.");if(u.getAttribute("mee-auto-suggest-act-on-select")&&!u.getAttribute("mee-perform-action"))throw new Error("No 'mee-perform-action' attr specified.");}},n.prototype.createTextActionWrapperDiv=function(){var n=document.createElement("div");return n.setAttribute("mee-text-action-div",""),n},n.prototype.createSuggestionBoxDiv=function(){var n=document.createElement("div"),t,i;return n.setAttribute("mee-text-action-suggestion-box",""),t=document.createElement("ul"),t.setAttribute("mee-text-action-suggestion-results",""),i=document.createElement("ul"),i.setAttribute("mee-text-action-suggestion-no-results",""),n.appendChild(t),n.appendChild(i),n},n}();u=function(){function n(n,t,i){this.$scope=n;this.$meeUtil=t;this.$element=i}return n.prototype.$onInit=function(){this.$scope.glyph=this.glyph.trim();this.$scope.inputControlId=this.$meeUtil.nextUid();this.$scope.autoSuggest={isEnabled:this.autoSuggest,listControlId:this.$meeUtil.nextUid(),position:this.autoSuggestPosition||"default",scrollable:this.autoSuggestScrollable,actOnSelect:this.autoSuggestActOnSelect,noSuggestionLabel:this.autoSuggestNoSuggestionLabel,debounceTimeout:this.autoSuggestDebounceTimeout||0,getSuggestionsAsyncCallback:this.autoSuggestGetSuggestionsAsync,performActionMethod:this.autoSuggestPerformAction}},n.prototype.$postLink=function(){if(this.displayType)switch(this.displayType){case"small":this.$element[0].classList.add("f-small");break;case"flex":this.$element[0].classList.add("f-flex");break;default:throw new Error("Unknown display type specified: "+this.displayType);}},n.prototype.registerInputCtrl=function(n){this.inputCtrl=n},n.prototype.registerButtonCtrl=function(n){this.buttonCtrl=n},n.prototype.registerSuggestionResultsCtrl=function(n){this.suggestionResultsCtrl=n},n.prototype.registerNoSuggestionResultsCtrl=function(n){this.noSuggestionResultsCtrl=n},n.prototype.setViewState=function(n){this.inputCtrl.setViewState(n);this.suggestionResultsCtrl.hideResults();this.autoSuggestActOnSelect?(this.buttonCtrl.performAction(n),this.inputCtrl.setViewState(""),this.inputCtrl.focus()):this.buttonCtrl.focus()},n.prototype.hideSuggestionsWithNoResults=function(){this.noSuggestionResultsCtrl.hideResults()},n.$inject=["$scope","$meeUtil","$element"],n}();f=function(){function n(n){this.$element=n}return n.prototype.$postLink=function(){this.$element[0].classList.add("c-text-action");this.$element[0].setAttribute("autocomplete","off");this.$element[0].setAttribute("role","combobox");this.$element[0].setAttribute("aria-expanded","false");this.$element[0].classList.add("c-search")},n.$inject=["$element"],n}();e=function(){function n(n,t){this.$scope=n;this.$element=t}return n.prototype.$onInit=function(){this.textActionCtrl.registerInputCtrl(this)},n.prototype.setViewState=function(n){this.ngModelCtrl.$setViewValue(n);this.$element.val(n)},n.prototype.focus=function(){this.$element[0].focus()},n.prototype.$postLink=function(){var n=this.$element[0],u=n.getAttribute("mee-text-action-kind"),i=n.getAttribute("aria-label"),r=n.getAttribute("placeholder"),t=this.$scope.autoSuggest;n.setAttribute("id",this.$scope.inputControlId);n.classList.add("x-hidden-focus");t&&t.isEnabled?(n.setAttribute("type","search"),n.setAttribute("name","search-field"),n.setAttribute("role","searchbox"),n.setAttribute("aria-controls",t.listControlId),n.setAttribute("aria-autocomplete","list"),n.setAttribute("aria-expanded","false")):u||n.setAttribute("type","text");i||n.setAttribute("aria-label",r);r||n.setAttribute("placeholder",i)},n.$inject=["$scope","$element"],n}();o=function(){function n(n,t){this.$scope=n;this.$element=t}return n.prototype.$postLink=function(){this.$element.addClass("c-label");this.$element[0].setAttribute("for",this.$scope.inputControlId)},n.$inject=["$scope","$element"],n}();s=function(){function n(n,t){this.$scope=n;this.$element=t}return n.prototype.$onInit=function(){this.textActionCtrl.registerButtonCtrl(this)},n.prototype.$postLink=function(){var n=this.$element[0];switch(n.querySelector("span").textContent=n.getAttribute("aria-label"),n.classList.add("c-glyph"),this.$scope.glyph){case"add":case"search":case"forward":case"check-mark":case"download":n.setAttribute("name","search-button");n.setAttribute("name",this.$scope.glyph+"-button");n.classList.add("glyph-"+this.$scope.glyph);break;default:throw new Error("Unknown text-action kind attribute: "+this.$scope.glyph+".");}},n.prototype.focus=function(){this.$element[0].focus()},n.prototype.performAction=function(){this.$scope.autoSuggest.performActionMethod()},n.$inject=["$scope","$element"],n}();h=function(){function n(n,t,i,r){var u=this;this.$scope=n;this.$element=t;this.$mwfUtil=i;this.$meeUtil=r;this.autoSuggestComponentCreated=function(n){if(!n)throw new Error("Could not find any created mwf.AutoSuggest element.");var t=u.$meeUtil.debounce(function(t){u.$scope.autoSuggest.getSuggestionsAsyncCallback({text:t}).then(function(t){n.updateSuggestions(t);u.clickJackFormSubmission()}).catch(function(){console.error("Something went wrong while getting suggestions")})},u.$scope.autoSuggest.debounceTimeout);n.subscribe({onMatchPatternChanged:function(n){t(n.pattern)}})}}return n.prototype.$postLink=function(){var n=this.$element[0];n.classList.add("m-auto-suggest");n.setAttribute("id",this.$scope.autoSuggest.listControlId);n.setAttribute("role","group");this.$mwfUtil.create(mwf.AutoSuggest,this.$element).then(this.autoSuggestComponentCreated)},n.prototype.clickJackFormSubmission=function(){var n=this;this.$element.children().find("span").on("click",function(t){n.preventDefaultAndUpdateState(t)});this.$element.children().find("span").on("keydown",function(t){13===t.keyCode&&n.preventDefaultAndUpdateState(t)})},n.prototype.preventDefaultAndUpdateState=function(n){n.preventDefault();n.stopPropagation();n.currentTarget.textContent===this.$scope.autoSuggest.noSuggestionLabel?this.textActionCtrl.hideSuggestionsWithNoResults():this.textActionCtrl.setViewState(n.currentTarget.textContent)},n.$inject=["$scope","$element","$meeMwfUtil","$meeUtil"],n}();c=function(){function n(n,t){this.$scope=n;this.$element=t}return n.prototype.$onInit=function(){this.textActionCtrl.registerSuggestionResultsCtrl(this)},n.prototype.$postLink=function(){var n=this.$element[0],t=this.$scope.autoSuggest.scrollable;n.classList.add("c-menu");t&&n.classList.add("f-auto-suggest-scroll");n.setAttribute("aria-hidden","true");n.setAttribute("data-js-auto-suggest-position",this.$scope.autoSuggest.position);n.setAttribute("tabindex","0");n.setAttribute("role","listbox")},n.prototype.hideResults=function(){this.$element[0].setAttribute("aria-hidden","true")},n.$inject=["$scope","$element"],n}();l=function(){function n(n,t){this.$scope=n;this.$element=t}return n.prototype.$onInit=function(){this.textActionCtrl.registerNoSuggestionResultsCtrl(this)},n.prototype.$postLink=function(){var n=this.$element[0];this.$element.find("span")[0].textContent=this.$scope.autoSuggest.noSuggestionLabel;n.classList.add("c-menu");n.classList.add("f-auto-suggest-no-results");n.setAttribute("aria-hidden","true");n.setAttribute("data-js-auto-suggest-position",this.$scope.autoSuggest.position);n.setAttribute("tabindex","0")},n.prototype.hideResults=function(){this.$element[0].setAttribute("aria-hidden","true")},n.$inject=["$scope","$element"],n}();angular.module(i.moduleName).directive("meeTextAction",r.factory()).directive("meeTextActionDiv",function(){return{restrict:"A",controllerAs:"$ctrlMeeTextActionDiv",controller:f,scope:{}}}).directive("meeTextActionInput",function(){return{restrict:"A",controller:e,controllerAs:"$ctrlMeeTextActionInput",bindToController:{},require:{textActionCtrl:"^meeTextAction",ngModelCtrl:"?ngModel"},scope:!0}}).directive("meeTextActionLabel",function(){return{restrict:"A",controller:o,controllerAs:"$ctrlMeeTextActionLabel",scope:!0}}).directive("meeTextActionButton",function(){return{restrict:"A",controller:s,controllerAs:"$ctrlMeeTextActionButton",bindToController:{},require:{textActionCtrl:"^meeTextAction"},template:'<span class="x-screen-reader" ng-transclude><\/span>',transclude:!0,scope:!0}}).directive("meeTextActionSuggestionBox",function(){return{restrict:"A",controller:h,controllerAs:"$ctrlMeeTextActionSuggestionBox",bindToController:{},require:{textActionCtrl:"^meeTextAction"},scope:!0}}).directive("meeTextActionSuggestionResults",function(){return{restrict:"A",controller:c,controllerAs:"$ctrlMeeTextActionSuggestionResults",bindToController:{},require:{textActionCtrl:"^meeTextAction",ngModelCtrl:"?ngModel"},scope:!0}}).directive("meeTextActionSuggestionNoResults",function(){return{restrict:"A",controller:l,controllerAs:"$ctrlMeeTextActionSuggestionNoResults",bindToController:{},require:{textActionCtrl:"^meeTextAction",ngModelCtrl:"?ngModel"},template:'<li class="c-menu-item" ng-transclude><span tabindex="-1"><\/span><\/li>',transclude:!0,scope:!0}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$element=n;this.$meeStringUtil=t;this.$meeUtil=i}return n.prototype.$postLink=function(){var t,i,u,r,f,e,o,s;if(this.$element.addClass("c-textarea"),t=this.$element.find("label"),1!==t.length)throw new Error("A single LABEL element must be provided. Refer to demo for supported ways of hiding the label.");if(i=this.$element.find("textarea"),1!==i.length)throw new Error("A single TEXTAREA element must be provided.");if(u=this.$element.attr("kind"),u)for(r=0,f=this.$meeStringUtil.extractTokens(u);r<f.length;r++){if(e=f[r],o=n.KnownKinds[e],!o)throw new Error("Unknown text area attribute specified: "+e+".");i.addClass(o)}s=this.textAreaId||"text-"+this.$meeUtil.nextUid();t.attr("for",s);i.attr("id",s);t.addClass("c-label")},n.$inject=["$element","$meeStringUtil","$meeUtil"],n.KnownKinds={"not-resizable":"f-no-resize",scrollable:"f-scroll",flex:"f-flex"},n}();angular.module(i.moduleName).component("meeTextArea",{controller:r,bindings:{textAreaId:"@"}})}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$element=n;this.$meeUtil=t}return n.prototype.$postLink=function(){var i=this.$element.find("label"),n,t,r;if(1!==i.length)throw new Error("A single LABEL element must be provided. Refer to demo for supported ways of hiding the label.");if(n=this.$element.find("input"),1!==n.length)throw new Error("A single INPUT element must be provided.");if(n.addClass("c-text-field"),n.attr("type")||n.attr("type","text"),t=this.$element.attr("kind"),t)switch(t){case"small":n.addClass("f-small");break;case"flex":n.addClass("f-flex");break;default:throw new Error("Unknown text field kind specified: "+t+".");}r=this.inputId||"text-"+this.$meeUtil.nextUid();i.attr("for",r);n.attr("id",r);i.addClass("c-label")},n.$inject=["$element","$meeUtil"],n}();angular.module(i.moduleName).component("meeTextField",{controller:r,bindings:{inputId:"@"}})}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t,i,r;(i=t||(t={}))[i.small=0]="small";i[i.flex=1]="flex";r=function(){function n(){this.restrict="A"}return n.prototype.link=function(t,i,r){i.attr("type","text");i.addClass("c-text-field");r.meeTextInput&&i.addClass(n.GetClassFromStyleName(r.meeTextInput))},n.GetClassFromStyleName=function(n){switch(t[n]){case t.small:return"f-small";case t.flex:return"f-flex";default:throw new Error("mee-text-input: "+n+" is not a valid option");}},n}();angular.module(n.moduleName).directive("meeTextInput",function(){return new r})})((t=n.OneUI||(n.OneUI={})).Angular||(t.Angular={}))}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t,i){this.$element=n;this.$meeMwfUtil=t;this.$meeUtil=i}return Object.defineProperty(n.prototype,"labelId",{get:function(){return this.toggleButtonId+"-label"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"stateLabelId",{get:function(){return this.toggleButtonId+"-state-label"},enumerable:!0,configurable:!0}),n.prototype.$onInit=function(){this.id||(this.id="mee-toggle-"+this.$meeUtil.nextUid());this.toggleButtonId=this.id+"-button"},n.prototype.$postLink=function(){var n=this;this.$element.addClass("c-toggle");this.$meeMwfUtil.create(mwf.Toggle,this.$element).then(function(t){return n.initializeMwfToggle(t)})},n.prototype.$onChanges=function(){var n=!!this.ngModel,t;if(this.mwfToggle)if(t=this.$element.find("button")[0],t.disabled)try{t.disabled=!1;this.mwfToggle.setToggleCheckedState(n)}finally{t.disabled=!0}else this.mwfToggle.setToggleCheckedState(n);else this.initialNgModel=n,this.initialLabel=n?this.onLabel:this.offLabel},n.prototype.initializeMwfToggle=function(n){var t=this;return n.subscribe({onToggled:function(n){return t.ngModelCtrl.$setViewValue(n.checked)}}),this.mwfToggle=n},n.$inject=["$element","$meeMwfUtil","$meeUtil"],n}();angular.module(i.moduleName).component("meeToggle",{template:'\n                <div class="c-toggle">\n                    <label\n                        ng-class="{ \'x-screen-reader\': $ctrl.isAriaOnlyLabel, \'c-label\': true }"\n                        for="{{$ctrl.toggleButtonId}}"\n                        id="{{$ctrl.labelId}}">{{$ctrl.label}}<\/label>\n                    <button\n                        id={{$ctrl.toggleButtonId}}\n                        name="{{$ctrl.toggleButtonId}}"\n                        role="checkbox"\n                        aria-checked="{{$ctrl.initialNgModel}}"\n                        aria-labelledby="{{$ctrl.labelId}} {{$ctrl.stateLabelId}}"\n                        ng-disabled="$ctrl.ngDisabled"\n                        data-bi-ctrlstate="{{$ctrl.ngModel}}"><\/button>\n                    <span\n                        id="{{$ctrl.stateLabelId}}"\n                        data-on-string="{{$ctrl.onLabel}}"\n                        data-off-string="{{$ctrl.offLabel}}">{{$ctrl.initialLabel}}<\/span>\n                <\/div>',bindings:{id:"@",ngModel:"<",ngDisabled:"<",label:"@",onLabel:"@",offLabel:"@",isAriaOnlyLabel:"<?"},require:{ngModelCtrl:"^ngModel"},controller:r})}(MeePortal||(MeePortal={})),function(n){var t,i,r,u;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n){this.element=n}return n.prototype.$postLink=function(){this.element.attr({"aria-describedby":this.meeTooltipTrigger,"data-toggle":"toggle"})},n.$inject=["$element"],n}();u=function(){function n(n,t){this.element=n;this.$meeMwfUtil=t}return n.prototype.$postLink=function(){this.$meeMwfUtil.create(mwf.Tooltip,angular.element(this.element[0].querySelector("span")))},n.$inject=["$element","$meeMwfUtil"],n}();angular.module(i.moduleName).directive("meeTooltipTrigger",function(){return{controller:r,bindToController:{meeTooltipTrigger:"@"}}}).component("meeTooltip",{transclude:!0,template:'<span id="{{ $ctrl.tooltipId }}" class="c-tooltip" role="tooltip" aria-hidden="true" ng-transclude><\/span>',bindings:{tooltipId:"@"},controller:u})}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t,i;(i=t||(t={}))[i.horizontal=0]="horizontal";i[i.vertical=1]="vertical";var r=function(){function n(){}return n.prototype.$postLink=function(){this.validateKindAttribute()},n.prototype.itemClicked=function(n,t){this.itemSelectedId=n;this.ngModel=t;this.ngModelCtrl.$setViewValue(t)},n.prototype.validateKindAttribute=function(){if(this.orientation||(this.orientation=n.DefaultOrientation),!(this.orientation in t))throw new Error("Invalid Markup: The UserPicker Component 'orientation' attribute is invalid. See Enum UserPickerOrientation for valid values.");},n.prototype.getClasses=function(){return{vertical:this.orientation===t[t.vertical],horizontal:this.orientation===t[t.horizontal]}},n.DefaultOrientation=t[t.vertical],n}(),u=function(){function n(n){this.$meeUtil=n}return n.prototype.itemClicked=function(n){n.preventDefault();this.pickerComponent.itemClicked(this.id,this.value)},n.prototype.$postLink=function(){if(!this.value)throw new Error("Invalid Markup: the Picker Item should have a 'value' attribute!");this.id=this.$meeUtil.nextUid();this.isItemSelected()&&(this.pickerComponent.itemSelectedId=this.id)},n.prototype.isItemSelected=function(){return this.value===this.pickerComponent.ngModel},n.$inject=["$meeUtil"],n}(),f=function(){this.transclude=!0;this.restrict="E";this.replace=!0;this.require={pickerComponent:"^^meeUserPicker"};this.bindToController={kind:"@?",value:"<",onPicked:"&"};this.controller=u;this.controllerAs="itemController";this.template='\n            <li ng-class="{ \'selected\': itemController.isItemSelected() }" role="option" id="{{itemController.id}}">\n                <button ng-if="!itemController.kind" ng-click="itemController.itemClicked($event)" ng-transclude><\/button>\n                <div ng-if="itemController.kind == \'custom\'" ng-click="itemController.itemClicked($event)" ng-transclude><\/div>\n            <\/li>\n        '};angular.module(n.moduleName).component("meeUserPicker",{template:'\n            <ul ng-transclude="item" ng-class="$ctrl.getClasses()" tabindex="0" role="listbox" aria-activedescendant="{{$ctrl.itemSelectedId}}">\n            <\/ul>\n            ',require:{ngModelCtrl:"ngModel"},transclude:{item:"userPickerItem"},bindings:{ngModel:"<",orientation:"@?"},controller:r}).directive("userPickerItem",function(){return new f})})((t=n.OneUI||(n.OneUI={})).Angular||(t.Angular={}))}(MeePortal||(MeePortal={})),function(n){var t,i,r;t=n.OneUI||(n.OneUI={});i=t.Angular||(t.Angular={});r=function(){function n(n,t){this.$q=n;this.$meeUtil=t}return n.prototype.create=function(n,t){var i=t&&(t instanceof HTMLElement?t:t[0]);return this.createInternal(n,i)},n.prototype.createInternal=function(n,t){var i=this;return new this.$q(function(r,u){i.$meeUtil.afterContentComplete(function(){t||u(new Error("$meeMwfUtil: Provided HTML element instance is falsy and cannot be used for creating MWF component."));try{mwf.ComponentFactory.create([{component:n,elements:[t],callback:function(n){1===n.length?r(n[0]):u(new Error('"MeeMwfUtil.create - MWF returned an unexpected number of instances in its callback to create:" '+n.length))}}])}catch(n){u(n)}})})},n.$inject=["$q","$meeUtil"],n}();angular.module(i.moduleName).service("$meeMwfUtil",r)}(MeePortal||(MeePortal={}));angular.module("oneui.base").config(["$provide",function(n){n.decorator("$meeModalStateServiceTelemetry",["$delegate","telemetryService",function(n,t){function i(n){return n&&{flow:n.flow,origin:n.origin,owner:n.owner}}var r=n.beginMultiStepScenario,u=n.endStep,f=n.cancelStep,e=n.endMultiStepScenario,o=n.cancelMultiStepScenario;return n.beginMultiStepScenario=function(n){t.portalScenarios.beginMultiStepScenario(n.area,n.scenario,n.currentStep,{attribution:i(n.attribution)});r(n)},n.endStep=function(n,r){t.portalScenarios.endStep({area:n.area,name:n.scenario,step:n.currentStep,next:r.step,attribution:i(n.attribution),isSuccess:r.success,error:r.error});u(n,r)},n.cancelStep=function(n,r){t.portalScenarios.cancelStep({area:n.area,name:n.scenario,step:n.currentStep,next:r.step,attribution:i(n.attribution),isSuccess:r.success,error:r.error});f(n,r)},n.endMultiStepScenario=function(n,r){t.portalScenarios.endMultiStepScenario({area:n.area,name:n.scenario,step:n.currentStep,attribution:i(n.attribution),isSuccess:r.success,error:r.error});e(n,r)},n.cancelMultiStepScenario=function(n,r){t.portalScenarios.cancelMultiStepScenario({area:n.area,name:n.scenario,step:n.currentStep,attribution:i(n.attribution),isSuccess:r.success,error:r.error});o(n,r)},n}])}]);angular.module("oneui.base").config(["$provide",function(n){n.decorator("$meeTelemetryService",["commonConfig","$delegate","telemetryService",function(n,t,i){return t.reportClick=function(t){i.portalBi.reportClick({pageArea:n.area,clickId:t.clickId,targetUri:t.targetUri})},t}])}]);__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i;(function(t){var i=function(){function t(n,t,i,r,u,f,e){var o=this;this.$window=n;this.$promise=t;this.$templateRequest=i;this.$compile=r;this.telemetryService=u;this.$element=f;this.$scope=e;this.pins=[];this.pinPopup=null;this.refreshMap=function(n){o.hidePinPopup();o.map.layers.clear();o.locations=[];o.loadLocationsAsync().then(function(){if(o.locations.length){var t=n&&n.latitude||o.locations[0].latitude,i=n&&n.longitude||o.locations[0].longitude;o.map.setView({center:new Microsoft.Maps.Location(t,i)})}})};this.resized=function(){var t=o.hostElement.width(),n=t/1.78;o.onGetMapHeight&&(n=o.onGetMapHeight({width:t})||n);o.hostElement.height(n);o.hidePinPopup()};this.hidePinPopup=function(){o.pinPopup&&o.pinPopup.setMap(null)};this.pinClicked=function(n,t){var r,i;(o.hidePinPopup(),r=t instanceof Array?_.map(t,function(n){return n.data||n}):t.data||t,i=o.onGetPopupHtmlContent&&o.onGetPopupHtmlContent({location:r}),i)&&o.showPinPopup(n,i)};this.showPinPopup=function(n,t){var f=t.adjustLocation,e=t.model,r=t.template,u=function(t){o.showPinPopupHtmlTemplate(t);o.positionPinPopup(n,f);o.setPinPopupContent(t,e)},i;r?(i=o.$promise.defer(),i.resolve(r),i.promise.then(u)):o.$templateRequest(t.templateUrl).then(u)};this.positionPinPopup=function(n,t){var f={x:o.hostElement.width(),y:o.hostElement.height()},e=o.getPinPopupElement().outerWidth(),r=o.map.tryLocationToPixel(n,Microsoft.Maps.PixelReference.control),i=t&&t(f,e,r),u;i&&i.anchorPoint?(u=o.map.tryPixelToLocation(new Microsoft.Maps.Point(i.anchorPoint.x,i.anchorPoint.y),Microsoft.Maps.PixelReference.control),o.pinPopup.setLocation(u)):o.pinPopup.setLocation(n);o.pinPopup.setOptions({offset:i&&i.pinOffset&&new Microsoft.Maps.Point(i.pinOffset.x,i.pinOffset.y)});i&&i.centerMap&&(i&&i.mapCenterOffset&&(r.x+=i.mapCenterOffset.x,r.y+=i.mapCenterOffset.y),o.map.setView({center:o.map.tryPixelToLocation(r,Microsoft.Maps.PixelReference.control)}))};this.setPinPopupContent=function(n,t){var i,r,u;o.showPinPopupHtmlTemplate(n);i=o.$scope.$new(!0,o.$scope);i.model=t;r=o.getPinPopupElement();u=o.$compile(r.contents())(i)};this.showPinPopupHtmlTemplate=function(n){o.pinPopup.setOptions({htmlContent:n});o.pinPopup.setMap(o.map)};this.getPinPopupElement=function(){return angular.element(".pin-popup",o.hostElement)};this.loadLocationsAsync=function(){var n=o.$promise.defer();return o.onLoadLocations?o.onLoadLocations().then(function(t){o.locations=t||[];o.convertLocationsToPins();o.displayPins(!1);n.resolve()}):n.reject(),n.promise};this.addLocationsToMap=function(n){var t;n&&n.length&&(o.hidePinPopup(),(t=o.locations).push.apply(t,n),o.convertLocationsToPins(),o.displayPins(!0))};this.convertLocationsToPins=function(){o.pins=[];_.each(o.locations,function(n){var i=new Microsoft.Maps.Location(n.latitude,n.longitude),t=new Microsoft.Maps.Pushpin(i,{icon:n.icon&&n.icon.url,title:n.data&&n.data.title,subTitle:n.data&&n.data.subtitle});t.metadata=n;o.pins.push(t);Microsoft.Maps.Events.addHandler(t,"click",function(){o.onPinClicked&&o.onPinClicked({location:n.data||n})||o.pinClicked(i,n)})})};this.displayPins=function(n){var t,r,i;n&&o.map.layers.clear();1===o.options.viewType?(t=angular.copy(o.options.clusterLayerOptions||{}),r=t.clusteredPinCallback,t.clusteredPinCallback=function(n){return o.setupClusteredPin(n,r)},o.map.layers.insert(new Microsoft.Maps.ClusterLayer(o.pins,t))):(i=new Microsoft.Maps.Layer,i.setPrimitives(o.pins),o.map.layers.insert(i))};this.setupClusteredPin=function(n,t){Microsoft.Maps.Events.addHandler(n,"click",function(t){var u=_.map(n.containedPushpins,function(n){var t=n.metadata;return t.data||t}),r,i,f,e,s;if(n.containedPushpins){for(r=[],i=0,f=n.containedPushpins.length;i<f;i++)e={latitude:n.containedPushpins[i].metadata.latitude,longitude:n.containedPushpins[i].metadata.longitude},r.push(e);s=Microsoft.Maps.LocationRect.fromLocations(r);o.map.setView({bounds:s,padding:100})}o.onPinClicked&&o.onPinClicked({location:u})||o.pinClicked(t.location,u)});t&&t(n)};this.reportBingMapsInitialization=function(n,t){var i=n?200:503;o.telemetryService.portalQos.reportOutgoingApi({isSuccess:n,latencyMs:(new Date).getTime()-t,requestUri:o.telemetryService.portalBi.getCurrentLocation(),serviceName:"BingMaps",operationName:"Initialization",currentOperationName:"ControlInitialization",httpMethod:"GET",serviceErrorCode:i,httpStatusCode:i.toString()})}}i=t;t.prototype.getInstrumentationComponentName=function(){return"shared.mee-bing-maps"};t.prototype.componentOnInit=function(){var t=this,o=(new Date).getTime(),f=this.$promise.defer(),r,u,e;return this.locations=[],this.hostElement=this.$element.find(".maps-host"),r=[],1===this.options.viewType&&r.push("Microsoft.Maps.Clustering"),u=this.$promise.when(n.BingMapWaiter.onInit()),r.length&&(e=this.$promise.defer(),u=u.then(function(){return Microsoft.Maps.loadModule(r,function(){e.resolve()}),e.promise})),u.then(function(){t.map=new Microsoft.Maps.Map(t.hostElement.get(0),{credentials:t.options.apiKey,mapTypeId:t.options.mapType||Microsoft.Maps.MapTypeId.road,showDashboard:!!t.options.showDashboard,showScalebar:!!t.options.showScalebar,showZoomButtons:!!t.options.showZoomButtons,showMapTypeSelector:!!t.options.showMapTypeSelector,showLocateMeButton:!!t.options.showLocateMeButton,zoom:t.options.zoom,minZoom:t.options.minZoom,maxZoom:t.options.maxZoom});t.pinPopup=new Microsoft.Maps.Infobox(t.map.getCenter());Microsoft.Maps.Events.addHandler(t.map,"viewchangestart",t.hidePinPopup);t.$window.addEventListener("resize",function(){return t.resized()});t.resized();t.$scope.$on(i.RefreshMapEvent,function(){return t.refreshMap()});t.$scope.$on(i.AddLocationsMapEvent,function(n,i){return t.addLocationsToMap(i)});t.$scope.$on(i.ClosePinPopupEvent,function(){return t.hidePinPopup()});t.$scope.$on(i.RefreshMapSetViewEvent,function(n,i){return t.refreshMap(i)});t.reportBingMapsInitialization(!0,o);t.refreshMap();f.resolve()}).catch(function(n){t.reportBingMapsInitialization(!1,o);t.onMapInitializerError();f.reject(n)}),f.promise};var i;return t.$inject=["$window","$q","$templateRequest","$compile","telemetryService","$element","$scope"],t.RefreshMapEvent="refreshMap",t.AddLocationsMapEvent="addLocationsToMap",t.ClosePinPopupEvent="closePinPopup",t.RefreshMapSetViewEvent="refreshMapSetView",i=__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent("commonModule","meeBingMaps",{bindings:{options:"=",onMapInitializerError:"&",onLoadLocations:"&",onPinClicked:"&",onGetPopupHtmlContent:"&",onGetMapHeight:"&"},template:'<div class="maps-host"><\/div>'})],t)}();t.BingMapsComponent=i})(i=t.Components||(t.Components={}))})(i=t.Angular||(t.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(i){var r;(function(){var i=function(){function i(n,t,i,r,u,f,e){this.$window=n;this.catpchaConfig=t;this.commonConfig=i;this.scriptLoader=r;this.formatString=u;this.$element=f;this.componentRegistryService=e;this.errorPrefix="captchaComponent: ";this.captchaScriptsId="captcha-challenge-scripts";this.componentClassName="Captcha";this.isHipClientLoaded=!1;this.isReloaded=!1}return i.prototype.getInstrumentationComponentName=function(){return"captcha.component"},i.prototype.componentOnInit=function(){var r=this,t,i;return this.setupGlobals(),t=Math.random(),this.flowId=n.Utilities.generateGuid().replace(new RegExp("-","g"),""),this.componentRegistryService.register(this.componentClassName,this.componentId,this),i=this.formatString(this.catpchaConfig.javascriptUrlFormat,[this.catpchaConfig.javascriptUrlDomain,this.commonConfig.userCulture,this.flowId,this.catpchaConfig.scenarioId,t]),this.$window.addEventListener("resize",function(){return r.resizeCaptcha()}),this.resizeCaptcha(),this.scriptLoader.loadScript(i,"#"+this.captchaScriptsId)},i.prototype.$onDestroy=function(){this.$window.removeEventListener("resize",this.resizeCaptcha)},i.prototype.resizeCaptcha=function(){var n=this.$element.find("#captcha-challenge"),t=this.$element.find(".hip-input");t&&n&&n.width()&&t.css("width",n.width())},i.prototype.verify=function(){var t=this,n;if(!this.isHipClientLoaded)throw new Error("The captcha element is not initialized.");return n=null,WebHip.verify(function(i,r){WebHip.clientValidation();var u=!0;WebHip.error!==0&&(t.reload(),u=!1);n={isSuccess:u,solution:i,hid:r,flowId:t.flowId}}),n},i.prototype.reload=function(){WebHip.reloadHIP(1);this.isReloaded=!0},i.prototype.postLoad=function(){if(this.isHipClientLoaded=!0,this.isReloaded&&this.invalidInputMessage){var n=WebHip.setFocus();this.$element.find("#"+n).attr("aria-label",this.invalidInputMessage)}},i.prototype.instructionOutsideCallback=function(n){var t=this.$element.find("#captcha-input-label");t.html(n)},i.prototype.setupGlobals=function(){var n=this.$element.find("#captcha-challenge"),t=500;n&&n.width()&&(t=n.width());this.$window.WebHip={showMenu:!0,showError:!0,errorMessage:"",instructionsInside:!1,showInstruction:!1,holder:"captcha-challenge-holder",scriptHolder:""+this.captchaScriptsId,inputWidth:t,type:"visual",cssSet:{cssCdHIPMenu:"hip-menu",cssCdHIPInput:"hip-input",cssCdHIPLink:"hip-link",cssCdHIPError:"hip-error",cssCdHIPErrorImg:"hip-error-image"},postLoad:this.postLoad.bind(this),instructionOutsideCallback:this.instructionOutsideCallback.bind(this)}},i.$inject=["$window","captchaConfig","commonConfig","scriptLoaderService","stringFormatFilter","$element","componentRegistryService"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("verify")],i.prototype,"verify",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("reload")],i.prototype,"reload",null),__decorate([t.Angular.ClientReliability.InstrumentedComponent("captchaModule","captcha",{template:'<div class="captcha-section">\n                           <div id="captcha-challenge">\n                               <div id="captcha-challenge-holder">\n                               <\/div>\n                               <label id="captcha-input-label" aria-hidden="true">\n                               <\/label>\n                               <div id="captcha-challenge-scripts">\n                               <\/div>\n                           <\/div>\n                       <\/div>',bindings:{componentId:"<",invalidInputMessage:"<?"}})],i)}()})(r=i.Components||(i.Components={}))})(i=t.Angular||(t.Angular={}))})(t=n.Shared||(n.Shared={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){function i(n){var t=angular.element("mee-nav-pivot li[ui-sref='"+n+"']");t.length>0&&t[0]!==document.activeElement&&t[0].focus()}function r(n,t,i,r){t.$on("$stateChangeStart",function(t,u){if(!u.allowAnonymous&&!r.isAuthenticated){n.location.href=i.href("landing");t.preventDefault();return}})}function u(n,t,r,u){r.$on("$stateChangeSuccess",function(n,r,f,e){u().then(function(){r.data&&r.data._autoFocus&&!e._isModal&&!r._isModal&&i(r.name);e._isModal||r._isModal||t.scrollTo(0,0)})})}n.areaModuleName="privacyModule";n.eventTimelineLandingFirstLoadComplete="Privacy.TimelineLanding.FirstLoad";n.eventExportLandingFirstLoadComplete="Privacy.ExportLanding.FirstLoad";n.eventRelevantOffersLandingFirstLoadComplete="Privacy.RelevantOffersLanding.FirstLoad";n.eventOverviewFirstLoadComplete="Privacy.Overview.FirstLoad";var t=angular.module(n.areaModuleName,["privacyDataModule","commonModule","ui.router","ngRoute","ngSanitize","clientReliabilityModule","oneui","unhandledExceptionHandlerModule","captchaModule"]);t.run(["areaConfig","impersonationService","$window","$rootScope","$state","$timeout","commonConfig","pageReliabilityService",function(n,t,i,f,e,o,s,h){h.overrideDefaultTimeout(45e3);var c=["activity-cortana","relevant-offers"];t.getEffectiveUserRights().canManage||(n.pivots.pivots=n.pivots.pivots.filter(function(n){return c.indexOf(n.stateId)===-1}));f.closeDialogAriaLabel=n.strings.closeDialogAriaLabel;r(i,f,e,s);u(t,i,f,o)}])})(t=n.OneUi||(n.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){var t,i;n.areaModuleName="privacyModule";t=angular.module(n.areaModuleName);t.constant("cardTypes",{Usage:"cardType_usage",Voice:"cardType_voice",Search:"cardType_search",Browse:"cardType_browse",Video:"cardType_video",Music:"cardType_music",Episode:"cardType_episode",Location:"cardType_location"});t.constant("cardTypeFilters",{AllTypes:"cardTypeFilter_allTypes",Usage:"cardTypeFilter_usage",Voice:"cardTypeFilter_voice",Media:"cardTypeFilter_media",Search:"cardTypeFilter_search",Browse:"cardTypeFilter_browse",Performance:"cardTypeFilter_performance",Location:"cardTypeFilter_location"});t.constant("dataTypeIcons",{browse:"mee-icon-Globe",voice:"mee-icon-Microphone",search:"mee-icon-Search",location:"mee-icon-MapPin",usage:"mee-icon-BulletedList",media:"mee-icon-Media",other:"mee-icon-More"});i={dataType:"awa-mee_custom1",timeToExpire:"awa-mee_custom2",msaCountryCode:"awa-mee_custom3",privacyUserContext:"awa-mee_custom4",loadedComponentName:"awa-mee_custom5",adSettingsUserContext:"awa-mee_custom6",msaToggleState:"awa-mee_custom7",browserToggleState:"awa-mee_custom8"};t.constant("privacyBiDimensions",i)})(t=n.OneUi||(n.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(t){var i;(function(t){function i(i,r,u,f,e){var o={},s,h;f.html5Mode(!0);t.getCustomBiPageView=function(n){var t=n.data&&n.data.biId||n.name;return{path:"/"+i.areaPrefix+"/"+t.replace(".","/"),viewId:i.areaPrefix+"."+t}};o.landing={url:"^/",template:"<landing><\/landing>",data:{biId:"overview",biPageView:t.getCustomBiPageView,pageReadyEvent:t.eventOverviewFirstLoadComplete}};i.selfRights&&i.selfRights.canManage&&(o["activity-cortana"]={url:"^/cortana",template:"<cortana-notebook><\/cortana-notebook>",data:{requiredComponents:["privacy.cortana-notebook"],_autoFocus:!0}},o["activity-cortana.clear"]={views:{"modalContent@":{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/ClearAllPopup/clear-all-popup-routing-template.html"}}},n.Utilities.isInFlight("PrivOffers")&&(o["relevant-offers"]={url:"^/relevant-offers",template:"<relevant-offers><\/relevant-offers>",data:{requiredComponents:["privacy.relevant-offers"],pageReadyEvent:t.eventRelevantOffersLandingFirstLoadComplete,biPageView:t.getCustomBiPageView}}),o["timeline.clear"]={abstract:!0,views:{"modalContent@":{template:"<mee-timeline-clear-all-popup><\/mee-timeline-clear-all-popup>"}}},o["timeline.clear.confirm"]={views:{clearAll:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/ClearAllPopup/clear-all-popup-initial.html"}}},o["timeline.clear.in-progress"]={views:{clearAll:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/ClearAllPopup/clear-all-popup-in-progress.html"}}},o["timeline.clear.error"]={views:{clearAll:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/ClearAllPopup/clear-all-popup-error.html"}}},o["landing.clear"]={abstract:!0,views:{"modalContent@":{template:"<mee-timeline-clear-all-popup><\/mee-timeline-clear-all-popup>"}}},o["landing.clear.confirm"]={views:{clearAll:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/ClearAllPopup/clear-all-popup-initial.html"}}},o["landing.clear.in-progress"]={views:{clearAll:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/ClearAllPopup/clear-all-popup-in-progress.html"}}},o["landing.clear.error"]={views:{clearAll:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/ClearAllPopup/clear-all-popup-error.html"}}});o.timeline={url:"^/activity-history?view",template:"<timeline><\/timeline>",data:{requiredComponents:["privacy.timeline-endless-list"],optionalComponents:["privacy.timeline-location-map","privacy.timeline-location"],pageReadyEvent:t.eventTimelineLandingFirstLoadComplete,biPageView:t.getCustomBiPageView,_autoFocus:!0},params:{view:null},reloadOnSearch:!1};i.selfRights&&i.selfRights.canManageAdSettings&&(o["ad-settings"]={url:"^/ad-settings",template:"<ad-settings-v2><\/ad-settings-v2>",data:{requiredComponents:["privacy.ad-settings-v2.browser-ads","privacy.ad-settings-v2.msa-ads"],optionalComponents:["privacy.ad-settings-v2.all-interests","privacy.ad-settings-v2.group","privacy.ad-settings-v2.interest-removal-confirmation"],biPageView:t.getCustomBiPageView,_autoFocus:!0}},o["ad-settings.removal-confirmation"]={views:{"modalContent@":{template:"<mee-ad-settings-interest-removal-confirmation><\/mee-ad-settings-interest-removal-confirmation>"}}});i.selfRights&&!i.selfRights.canManageAdSettings&&(o["ad-settings"]={url:"^/ad-settings",template:"<ad-settings-v2><\/ad-settings-v2>",data:{biPageView:t.getCustomBiPageView,_autoFocus:!0}});o["ad-settings-signedout"]={url:"^/ad-settings/signedout",template:"<ad-settings-v2><\/ad-settings-v2>",data:{requiredComponents:["privacy.ad-settings-v2.browser-ads","privacy.ad-settings-v2.msa-ads"]},allowAnonymous:!0};o["location-opt-out"]={url:"^/location-services-opt-out",template:"<location-opt-out><\/location-opt-out>",data:{requiredComponents:["privacy.location-opt-out","captcha.component"]},allowAnonymous:!0};o["export"]={url:"^/export",template:"<export><\/export>",data:{requiredComponents:["privacy.export"],pageReadyEvent:t.eventExportLandingFirstLoadComplete,biPageView:t.getCustomBiPageView,_autoFocus:!0}};o["export.create"]={abstract:!0,views:{"modalContent@":{template:"<mee-create-archive-popup><\/mee-create-archive-popup>"}}};o["export.create.confirm"]={views:{createArchive:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/DownloadYourData/create-archive-popup-initial.html"}}};o["export.create.error"]={views:{createArchive:{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/DownloadYourData/create-archive-popup-error.html"}}};n.Utilities.isInFlight("PrivOfficeCtrl")&&(o["data-settings"]={url:"^/data-settings",template:"<privacy-data-settings><\/privacy-data-settings>",data:{requiredComponents:["privacy.data-settings"]}});for(s in o)r.state(s,o[s]);h=e.compile("/{dataType:browse|search|location|media|voice|usage}");u.when(h,["$location","$match",function(n,t){n.url("/activity-history?view="+t.dataType)}]);u.otherwise("/")}angular.module(t.areaModuleName).config(["areaConfig","$stateProvider","$urlRouterProvider","$locationProvider","$urlMatcherFactoryProvider",i]);t.configureAreaRouting=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r){var u=this;this.areaConfig=n;this.$rootScope=t;this.$meeModal=i;this.$state=r;this.triggerModal=function(){var n={model:u.activityCmsData.clearAllConfirmPopup,onShow:u.onPromptClearAll,onConfirm:u.onClearAll,onCancel:u.onCancelClearAll,returnState:"landing"};u.$meeModal.show("#privacy-modal-host",u.modalState,{data:n,modalHostOptions:{kind:"flow close-button",ariaDialogLabel:u.activityCmsData.clearAllConfirmPopup.question}})}}return i.prototype.$onInit=function(){this.strings=this.areaConfig.strings},i.$inject=["areaConfig","$rootScope","$meeModal","$state"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeActivityView",{bindings:{activityCmsData:"=",isOboExperience:"=",isCortanaExperience:"=",canClearAll:"=",onPromptClearAll:"&",onClearAll:"&",onCancelClearAll:"&",canView:"=",modalState:"="},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/ActivityView/activity-view.html",transclude:!0})],i)}();t.ActivityComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r){this.adSettingsStrings=n;this.impersonationService=t;this.commonConfig=i;this.privacyDataService=r;this.displayCannotDeleteViewComponent=!1}return i.prototype.$onInit=function(){this.privacyDataService.setUserContextForBI();this.displayCannotDeleteViewComponent=this.shouldDisplayCannotDeleteViewComponent()},i.prototype.shouldDisplayCannotDeleteViewComponent=function(){var n=this.commonConfig.isAuthenticated,t=this.impersonationService.getEffectiveUserRights().canManageAdSettings;return n&&!t},i.$inject=["adSettingsCmsDataV2","impersonationService","commonConfig","privacyDataService"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"adSettingsV2",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/ad-settings-v2.html"})],i)}();t.AdSettingsV2Component=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u,f,e,o,s,h){this.adSettingsStrings=n;this.$timeout=t;this.areaConfig=i;this.$window=r;this.telemetryService=u;this.$promise=f;this.$sce=e;this.metatagService=o;this.$scope=s;this.biDimensions=h;this.componentState=0;this.model=!1;this.settingCmsData=this.adSettingsStrings.settingStrings.browserAds;this.operations={load:"checkThirdPartyCookieEnabled checkBrowserAdsEnabled",update:"setBrowserAdsTo"}}r=i;i.prototype.getInstrumentationComponentName=function(){return"privacy.ad-settings-v2.browser-ads"};i.prototype.componentOnInit=function(){var n=this;return angular.element("#page-wrapper").css("background-color","#f2f2f2"),angular.element("body").css("background-color","#f2f2f2"),this.muidOptoutIframe=angular.element("#muid-optout-iframe"),this.checkThirdPartyCookieEnabled().then(function(){if(n.componentState&256)return n.checkBrowserAdsEnabled().then(function(t){return n.metatagService.add(n.biDimensions.browserToggleState,""+t),n.$promise.resolve()})})};i.prototype.$onDestroy=function(){this.metatagService.clear();angular.element("#page-wrapper").css("background-color","#ffffff");angular.element("body").css("background-color","#ffffff")};i.prototype.onToggleChanged=function(){var n=this;this.transitionWithPrecondition("toggle-change");this.setBrowserAdsTo(this.model).then(function(t){n.$timeout(function(){n.browserAdsUpdatedTo(t)})}).catch(function(t){return n.$timeout(function(){n.browserAdsUpdateFailure()}),n.$promise.reject(t)}).finally(function(){n.$timeout(function(){var n=angular.element("#BrowserAds-toggle button");n.length==1&&n[0].focus()})})};i.prototype.checkThirdPartyCookieEnabled=function(){var n=this,t=this.createUrlForOperation("thirdparty",this.areaConfig.choiceApiConfig.cookieEndpoint);return this.checkCookieExpectedValue(t,"ThirdPartyCookiesEnabled").then(function(t){return n.transitionWithPrecondition(t),t}).catch(function(t){return n.transitionWithPrecondition("error"),n.$promise.reject(t)})};i.prototype.checkBrowserAdsEnabled=function(){var n=this,t=this.createUrlForOperation("status",this.areaConfig.choiceApiConfig.choiceEndpoint);return this.retrieveBrowserSetting(t).then(function(t){return n.transitionWithPrecondition(t),t}).catch(function(t){return n.transitionWithPrecondition("error"),n.$promise.reject(t)})};i.prototype.setBrowserAdsTo=function(n){var t=n?"muidoptin":"muidoptout",i=this.createUrlForOperation(t,this.areaConfig.choiceApiConfig.choiceEndpoint);return this.retrieveBrowserSetting(i)};i.prototype.shouldShowAlert=function(){return(this.componentState&148)>0};i.prototype.getAlertMessage=function(){return this.componentState&128?this.settingCmsData.cardStrings.thirdPartyCookieWarning:this.settingCmsData.cardStrings.error};i.prototype.toggleDisabled=function(){return(this.componentState&140)>0};i.prototype.retrieveBrowserSetting=function(n){var t=this;return this.checkCookieExpectedValue(n,"CookieOptedIn").then(function(n){return t.model=n})};i.prototype.checkCookieExpectedValue=function(n,t){return this.determineCookieStatus(n,this.muidOptoutIframe).then(function(n){return n===t})};i.prototype.determineCookieStatus=function(n,t){var i=this;return new this.$promise(function(r,u){i.$window.ProcessMuidOptOutAnswer=function(n){if(n==="Error"){u("The Choice service threw an unhandled exception.");return}r(n)};t.attr("src",i.$sce.trustAsResourceUrl(n))})};i.prototype.createUrlForOperation=function(n,t){this.telemetryService.portalCv.incrementCv();var i=this.$window.location,r=this.telemetryService.portalCv.getCurrentCvValue();return t+"?operation="+n+"&domain="+i.host+"&protocol="+i.protocol+"&MS-CV="+encodeURIComponent(r)};i.prototype.browserAdsUpdateFailure=function(){this.transitionWithPrecondition("error");this.model=!this.model};i.prototype.browserAdsUpdatedTo=function(n){this.transitionWithPrecondition(n);this.model=n};i.prototype.transitionWithPrecondition=function(n){var i=this,t=r.stateTransitionMap.filter(function(t){return t.currentState===i.componentState&&t.nextStatePrecondition===n});if(t.length!=1)throw new Error("The transition is not possible from state: "+this.componentState+" and precondition: "+n+".");this.componentState=t[0].nextState};var r;return i.$inject=["adSettingsCmsDataV2","$timeout","areaConfig","$window","telemetryService","$q","$sce","metatagService","$scope","privacyBiDimensions"],i.stateTransitionMap=[{currentState:0,nextState:128,nextStatePrecondition:!1},{currentState:0,nextState:256,nextStatePrecondition:!0},{currentState:0,nextState:4,nextStatePrecondition:"error"},{currentState:256,nextState:1,nextStatePrecondition:!0},{currentState:256,nextState:2,nextStatePrecondition:!1},{currentState:256,nextState:4,nextStatePrecondition:"error"},{currentState:1,nextState:8,nextStatePrecondition:"toggle-change"},{currentState:2,nextState:8,nextStatePrecondition:"toggle-change"},{currentState:32,nextState:8,nextStatePrecondition:"toggle-change"},{currentState:64,nextState:8,nextStatePrecondition:"toggle-change"},{currentState:16,nextState:8,nextStatePrecondition:"toggle-change"},{currentState:8,nextState:32,nextStatePrecondition:!0},{currentState:8,nextState:64,nextStatePrecondition:!1},{currentState:8,nextState:16,nextStatePrecondition:"error"},],__decorate([n.OneUI.Angular.MonitorOperationProgress("checkThirdPartyCookieEnabled")],i.prototype,"checkThirdPartyCookieEnabled",null),__decorate([n.OneUI.Angular.MonitorOperationProgress("checkBrowserAdsEnabled")],i.prototype,"checkBrowserAdsEnabled",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("setBrowserAdsTo"),n.OneUI.Angular.MonitorOperationProgress("setBrowserAdsTo")],i.prototype,"setBrowserAdsTo",null),r=__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"meeAdSettingsBrowserAds",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/BrowserAds/browser-ads.html"})],i)}();t.AdSettingsBrowserAds=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(){}return i.prototype.$onInit=function(){this.setUpSrcForAnimations()},i.prototype.setUpSrcForAnimations=function(){this.cannotDeleteViewCmsData.cannotDeleteViewCards[0].cardAnimatedPicture.src="/Areas/Privacy/Resources/Animations/AMCPrivacy_CannotDeleteView_Card1.json";this.cannotDeleteViewCmsData.cannotDeleteViewCards[1].cardAnimatedPicture.src="/Areas/Privacy/Resources/Animations/AMCPrivacy_CannotDeleteView_Card2.json";this.cannotDeleteViewCmsData.cannotDeleteViewCards[2].cardAnimatedPicture.src="/Areas/Privacy/Resources/Animations/AMCPrivacy_CannotDeleteView_Card3.json"},__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeAdSettingsCannotDeleteView",{bindings:{cannotDeleteViewCmsData:"<"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/CannotDeleteView/cannot-delete-view.html"})],i)}();t.AdSettingsCannotDeleteViewComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t){this.impersonationService=n;this.commonConfig=t;this.displayCannotDeleteViewFaqAndHelpHeader=!1}return i.prototype.$onInit=function(){this.displayCannotDeleteViewFaqAndHelpHeader=this.shouldDisplayCannotDeleteViewFaqAndHelpHeader()},i.prototype.shouldDisplayCannotDeleteViewFaqAndHelpHeader=function(){var n=this.commonConfig.isAuthenticated,t=!this.impersonationService.getEffectiveUserRights().canManage;return n&&t},i.$inject=["impersonationService","commonConfig"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeAdSettingsHelpContent",{bindings:{helpCmsData:"<"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/HelpContent/help-content.html"})],i)}();t.AdSettingsHelpContentComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u,f){this.adSettingsStrings=n;this.privacyDataService=t;this.telemetryService=i;this.$meeComponentRegistry=r;this.metatagService=u;this.biDimensions=f;this.interestsCmsData=this.adSettingsStrings.interestStrings;this.hasBeenInformedOnInterestRemoval=!1}return i.prototype.getInstrumentationComponentName=function(){return"privacy.ad-settings-v2.all-interests"},i.prototype.componentOnInit=function(){var t=this;return this.$meeComponentRegistry.register("AdSettingsInterests","InterestManager",this),this.privacyDataService.getUserInterestsAsync().then(function(i){t.allInterests=i.data.interests;t.optedInInterests=_.filter(t.allInterests,function(n){return!n.isTurnedOff&&n.interestType!=="domain"});t.optedOutInterests=_.filter(t.allInterests,function(n){return n.isTurnedOff});n.Utilities.isInFlight("PrivDomainOptOut")||(t.optedOutInterests=_.filter(t.optedOutInterests,function(n){return n.interestType!=="domain"}));t.reportUnknownGroupIds(t.allInterests);t.hasAnyInterests()&&t.metatagService.add(t.biDimensions.loadedComponentName,"MeePortal.Privacy.AdSettings.UserInterests")})},i.prototype.$onDestroy=function(){this.metatagService.clear()},i.prototype.interestModeUpdated=function(n){this.optedInInterests=_.without(this.optedInInterests,n);this.optedOutInterests=_.without(this.optedOutInterests,n);n.isTurnedOff=!n.isTurnedOff;n.interestType!=="domain"&&(n.isTurnedOff?this.optedOutInterests.push(n):this.optedInInterests.push(n))},i.prototype.hasAnyInterests=function(){return this.allInterests&&this.allInterests.length>0},i.prototype.reportUnknownGroupIds=function(t){var r=_.reject(t,function(t){return!!n.Privacy.OneUi.UserInterestGroupGlyphs[t.groupId]}),i=_.uniq(_.map(r,function(n){return n.groupId}));i.length>0&&this.telemetryService.portalQos.reportClientError({category:"MeePortal.Privacy.AdSettings.UserInterests",code:"invalidPrivacyUserInterestGroupId",message:"Unknown group IDs used to associate with glyphs were returned. A fallback glyph will be used instead.",data:i})},i.$inject=["adSettingsCmsDataV2","privacyDataService","telemetryService","$meeComponentRegistry","metatagService","privacyBiDimensions"],__decorate([n.OneUI.Angular.MonitorOperationProgress("load-all-interests")],i.prototype,"componentOnInit",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"meeAdSettingsAllInterests",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/Interests/all-interests.html"})],i)}();t.AdSettingsAllInterestsComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){t.UserInterestGroupGlyphs={ApparelAccessories:"mee-icon-Shirt",ArtsEntertainment:"mee-icon-MyMoviesTV",AutosVehicles:"mee-icon-Car",BabyChildrensProducts:"mee-icon-Family",BeautyProductsServices:"mee-icon-FavoriteStar",BusinessIndustrial:"mee-icon-CityNext2",BusinessServices:"mee-icon-Financial",ComputersPeripherals:"mee-icon-System",ConsumerElectronics:"mee-icon-Devices3",DatingServices:"mee-icon-Heart",Education:"mee-icon-Education",Employment:"mee-icon-Work",FinancialServices:"mee-icon-Money",GiftsOccasions:"mee-icon-Giftbox",HobbiesLeisure:"mee-icon-Leisure",HomeGarden:"mee-icon-Street",PersonalServices:"mee-icon-FavoriteStar",RealEstate:"mee-icon-Home",Social:"mee-icon-Group",Software:"mee-icon-AllApps",SportsFitness:"mee-icon-Jogging",Telecom:"mee-icon-Wifi",Travel:"mee-icon-Airplane",Websitedomains:"mee-icon-Website"};var i=function(){function i(n,t){this.adSettingsStrings=n;this.formatString=t;this.defaultGlyphClass="mee-icon-FavoriteStar";this.interestsCmsData=this.adSettingsStrings.interestStrings}return i.prototype.getGroupHeadingGlyphClass=function(){return t.UserInterestGroupGlyphs[this.id]||this.defaultGlyphClass},i.prototype.getItemOrThrow=function(n){var t=this.interestsCmsData[n];if(t)return t;throw new Error("Ad-settings: CMS Content not found for group heading: "+n);},i.$inject=["adSettingsCmsDataV2","stringFormatFilter"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeAdSettingsGroupHeading",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/Interests/Group/group-heading.html",bindings:{id:"@meeId",name:"@meeName",interestCount:"@meeInterestCount"}})],i)}();t.AdSettingsGroupHeadingComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u,f,e){this.adSettingsStrings=n;this.formatString=t;this.privacyDataService=i;this.$meeA11y=r;this.$meeComponentRegistry=u;this.$meeModal=f;this.$q=e;this.showAlert=!1}return i.prototype.getInstrumentationComponentName=function(){return"privacy.ad-settings-v2.group"},i.prototype.$onInit=function(){this.interestManager=this.$meeComponentRegistry.getInstanceById("InterestManager");this.referenceInterest=angular.copy(this.groupInterests[0])},i.prototype.getChoiceSummaryGlyph=function(){return this.referenceInterest.isTurnedOff?"add":"cancel"},i.prototype.onInterestAction=function(n){if(!this.referenceInterest.isTurnedOff&&!this.interestManager.hasBeenInformedOnInterestRemoval){this.showRemovalConfirmation(n);return}this.updateUserInterest(n)},i.prototype.showRemovalConfirmation=function(n){var t=this,i={onConfirm:function(){return t.onConfirmRemoval(n)}};this.$meeModal.show("#privacy-modal-host","ad-settings.removal-confirmation",{data:i,stateIdOnDismiss:"ad-settings",modalHostOptions:{kind:"flow close-button",ariaDialogLabel:this.getItemOrThrow("modal_remove_header")}})},i.prototype.getInterestCount=function(){return this.groupInterests&&this.groupInterests.length},i.prototype.getAriaLabel=function(n){var t=this.referenceInterest.isTurnedOff?"aria_removed_interest_tag":"aria_active_interest_tag",i=this.getItemOrThrow(t);return this.formatString(i,[n.name])},i.prototype.getHeadingAriaLabel=function(){var n=this.referenceInterest.groupName+". "+this.getItemOrThrow("aria_active_interest_category");return this.formatString(n,[this.referenceInterest.groupName,this.getInterestCount()])},i.prototype.getItemOrThrow=function(n){var t=this.adSettingsStrings.interestStrings[n];if(t)return t;throw new Error("Ad-settings: CMS Content not found for group interest: "+n);},i.prototype.onConfirmRemoval=function(n){var t=this;return this.updateUserInterest(n).then(function(){return t.interestManager.hasBeenInformedOnInterestRemoval=!0})},i.prototype.updateUserInterest=function(n){var t=this;return this.showAlert=!1,this.privacyDataService.updateUserInterestsAsync(n.id,n.isTurnedOff,n.interestType).then(function(){t.interestManager.interestModeUpdated(n);var i=n.isTurnedOff?t.getItemOrThrow("aria_interest_removed"):t.getItemOrThrow("aria_interest_restored");t.$meeA11y.announcer.announce(i,"polite")}).catch(function(n){return t.showAlert=!0,t.$q.reject(n)})},i.$inject=["adSettingsCmsDataV2","stringFormatFilter","privacyDataService","$meeA11y","$meeComponentRegistry","$meeModal","$q"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("updateUserInterest")],i.prototype,"updateUserInterest",null),__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeAdSettingsGroup",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/Interests/Group/group.html",bindings:{groupInterests:"<meeGroupInterests"}})],i)}();t.AdSettingsGroupComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.adSettingsStrings=n;this.interestsCmsData=this.adSettingsStrings.interestStrings;this.showInterests=!1}return i.prototype.$onChanges=function(){this.groupedInterests=_.groupBy(_.sortBy(this.interests,"groupName"),function(n){return n.groupId})},i.prototype.shouldShowInterestSection=function(){return this.isInterested||this.hasInterests()},i.prototype.getHeading=function(){return this.isInterested?this.hasInterests()?this.getItemOrThrow("ad_interested_subheader"):this.getItemOrThrow("all_removed_header"):this.hasInterests()?this.getItemOrThrow("ad_not_interested_subheader"):""},i.prototype.getButtonCaption=function(){return this.showInterests?this.getItemOrThrow("mobile_see_less"):this.getItemOrThrow("mobile_see_all")},i.prototype.getSectionClassName=function(){return this.isInterested?"section-interested":"section-removed"},i.prototype.getLede=function(){if(this.isInterested&&!this.hasInterests())return this.getItemOrThrow("all_removed_description")},i.prototype.hasInterests=function(){return this.interests&&this.interests.length>0},i.prototype.getItemOrThrow=function(n){var t=this.interestsCmsData[n];if(t)return t;throw new Error("Ad-settings: CMS Content not found for user interest: "+n);},i.$inject=["adSettingsCmsDataV2"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeAdSettingsInterestSection",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/Interests/InterestSection/interest-section.html",bindings:{isInterested:"<meeIsInterested",interests:"<meeInterests"}})],i)}();t.AdSettingsInterestSectionComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i){this.adSettingsStrings=n;this.$meeModal=t;this.$promise=i;this.interestsCmsData=this.adSettingsStrings.interestStrings;this.removalConfirmationCmsData=this.adSettingsStrings.interestRemovalConfirmation;this.showAlert=!1}return i.prototype.getInstrumentationComponentName=function(){return"privacy.ad-settings-v2.interest-removal-confirmation"},i.prototype.$onInit=function(){this.removalConfirmationData=this.$meeModal.getData()},i.prototype.confirm=function(){var n=this;return this.removalConfirmationData.onConfirm().then(function(){n.$meeModal.goBack()}).catch(function(t){return n.showAlert=!0,n.$promise.reject(t)})},i.prototype.cancel=function(){this.$meeModal.goBack()},i.prototype.getItemOrThrow=function(n){var t=this.interestsCmsData[n];if(t)return t;throw new Error("Ad-settings: CMS Content not found for modal dialog when adding/removing interest: "+n);},i.$inject=["adSettingsCmsDataV2","$meeModal","$q"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("confirm"),n.OneUI.Angular.MonitorOperationProgress("modalOperation")],i.prototype,"confirm",null),__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeAdSettingsInterestRemovalConfirmation",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/Interests/RemovalConfirmation/removal-confirmation.html"})],i)}();t.AdSettingsInterestRemovalConfirmationComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u,f,e,o){this.adSettingsStrings=n;this.$q=t;this.$timeout=i;this.authenticationService=r;this.commonConfig=u;this.privacyDataService=f;this.metatagService=e;this.biDimensions=o;this.settingCmsData=this.adSettingsStrings.settingStrings.interestBasedAds;this.card1=this.getCardOrThrow("card1");this.card2=this.getCardOrThrow("card2");this.isMsaAdSettingEnabled=!1;this.hasMsaError=!1;this.operations={load:"load-msa-setting",update:"update-msa-setting"}}return i.prototype.getInstrumentationComponentName=function(){return"privacy.ad-settings-v2.msa-ads"},i.prototype.componentOnInit=function(){return this.isSignInLinkVisible()?this.$q.resolve():this.getMsaAds()},i.prototype.$onDestroy=function(){this.metatagService.clear()},i.prototype.isSignInLinkVisible=function(){return!this.commonConfig.isAuthenticated},i.prototype.getSigninUrl=function(){return this.authenticationService.getSigninUrl("mbi")},i.prototype.getSigninText=function(){return this.adSettingsStrings.settingStrings.interestBasedAds.cardStrings.signIn},i.prototype.getMsaAds=function(){var n=this;return this.privacyDataService.getUserSettingsAdvertisingAsync().then(function(t){n.isMsaAdSettingEnabled=t.data.isEnabled;n.eTag=t.data.eTag;n.metatagService.add(n.biDimensions.msaToggleState,""+t.data.isEnabled)}).catch(function(t){return n.hasMsaError=!0,n.$q.reject(t)})},i.prototype.setMsaAdsTo=function(n){var t=this;return this.privacyDataService.updateUserSettingsAdvertisingAsync(this.eTag,n).then(function(n){return t.eTag=n.data.eTag,n.data.isEnabled})},i.prototype.onToggleChanged=function(){var n=this;this.setMsaAdsTo(this.isMsaAdSettingEnabled).then(function(){n.hasMsaError=!1}).catch(function(){n.hasMsaError=!0;n.$timeout(function(){n.isMsaAdSettingEnabled=!n.isMsaAdSettingEnabled})}).finally(function(){n.$timeout(function(){var n=angular.element("#MsaAds-toggle button");n.length==1&&n[0].focus()})})},i.prototype.shouldShowAlert=function(){return this.hasMsaError},i.prototype.getAlertMessage=function(){return this.settingCmsData.cardStrings.error},i.prototype.getCardOrThrow=function(n){var t=this.adSettingsStrings.cards[n];if(t)return t;throw new Error("Ad-settings: CMS Content not found for spotlight card: "+n);},i.$inject=["adSettingsCmsDataV2","$q","$timeout","authenticationService","commonConfig","privacyDataService","metatagService","privacyBiDimensions"],__decorate([n.OneUI.Angular.MonitorOperationProgress("load-msa-setting")],i.prototype,"getMsaAds",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("updateSettingsFromAMC"),n.OneUI.Angular.MonitorOperationProgress("update-msa-setting")],i.prototype,"setMsaAdsTo",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"meeAdSettingsMsaAds",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/AdSettings/MsaAds/msa-ads.html"})],i)}();t.AdSettingsMsaAdsComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u,f,e,o){this.areaConfig=n;this.$scope=t;this.$meeModal=i;this.$meeA11y=r;this.$element=u;this.$timeout=f;this.$promise=e;this.$window=o}return i.prototype.$onInit=function(){this.clearAllPopupData=this.$meeModal.getData();this.modalShow()},i.prototype.modalShow=function(){this.clearAllPopupData.onShow&&this.clearAllPopupData.onShow()},i.prototype.cancel=function(n){n&&n.preventDefault();this.clearAllPopupData.onCancel&&this.clearAllPopupData.onCancel();this.isInProgress=!1;this.isClearAllError=!1;this.$meeModal.goBack()},i.prototype.confirm=function(n){var t=this;n&&n.preventDefault();this.clearAllPopupData.onConfirm&&(this.isInProgress=!0,this.isClearAllError=!1,this.clearAllPopupData.onConfirm().then(function(){t.$meeA11y.announcer.announce(t.clearAllPopupData.model.progressString,"assertive");t.$window.scrollTo(0,0);t.isInProgress=!1;t.$meeModal.goBack()}).catch(function(n){return t.isClearAllError=!0,t.$timeout().then(function(){t.$meeA11y.announcer.announce(t.clearAllPopupData.model.genericErrorMessage,"assertive");var n=angular.element(".inner",t.$element);n.focus()}),t.$promise.reject(n)}))},i.$inject=["areaConfig","$scope","$meeModal","$meeA11y","$element","$timeout","$q","$window"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeClearAllPopup",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/ClearAllPopup/clear-all-popup.html",transclude:!0})],i)}();t.ClearAllPopupComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function n(){}return n.Area="Privacy",n.Scenario="CortanaNotebook",n.StepLanding="Landing",n.StepClearAllConfirm="ClearAllConfirm",n.ClearAllRetryAfterFail="ClearAllRetryAfterFail",n}(),r=function(){function r(n,t,r,u,f,e,o,s,h,c){this.$scope=n;this.areaConfig=t;this.privacyDataService=r;this.impersonationService=u;this.activityCmsData=f;this.telemetry=e;this.$state=o;this.$promise=s;this.$timeout=h;this.metatagService=c;this.bi=new i}u=r;r.prototype.getInstrumentationComponentName=function(){return"privacy.cortana-notebook"};r.prototype.componentOnInit=function(){var n=this;return angular.element("#page-wrapper").css("background-color","#ffffff"),angular.element("body").css("background-color","#ffffff"),this.errorCode={generic:"cortanaNotebook_generic"},this.pageHeader=this.activityCmsData.pageHeader,this.howToList=this.activityCmsData.howToList,this.clearAllConfirmPopup=this.activityCmsData.clearAllConfirmPopup,this.canView=!0,this.endlessActivityListStrings=this.areaConfig.endlessActivityListStrings,this.privacyDataService.setUserContextForBI(),this.telemetry.portalScenarios.beginMultiStepScenario(i.Area,i.Scenario,i.StepLanding),this.bi.currentStep=i.StepLanding,this.$scope.$on(u.RefreshCortanaNotebookEvent,function(){return n.loadServices()}),this.loadServices(!0)};r.prototype.onConfirmClearAll=function(){this.telemetry.portalScenarios.endStep({area:i.Area,name:i.Scenario,step:this.bi.currentStep,next:i.StepClearAllConfirm,isSuccess:!0});this.bi.currentStep=i.StepClearAllConfirm};r.prototype.clearAll=function(){var n=this;return this.privacyDataService.deleteAllUserFeaturesAsync().then(function(){n.telemetry.portalScenarios.endMultiStepScenario({area:i.Area,name:i.Scenario,step:n.bi.currentStep,isSuccess:!0});n.loadServices()}).catch(function(t){var r=t.jqXHR.responseJSON||{},u=n.errorCode[r.error]||n.errorCode.generic;return n.telemetry.portalScenarios.endStep({area:i.Area,name:i.Scenario,step:n.bi.currentStep,next:i.ClearAllRetryAfterFail,isSuccess:!1,error:u}),n.bi.currentStep=i.ClearAllRetryAfterFail,n.$promise.reject(t)})};r.prototype.onCancelClearAll=function(){this.telemetry.portalScenarios.cancelStep({area:i.Area,name:i.Scenario,step:this.bi.currentStep,next:i.StepLanding,isSuccess:i.ClearAllRetryAfterFail!==this.bi.currentStep});this.bi.currentStep=i.StepLanding};r.prototype.loadServices=function(n){var t=this,i;return this.isLoading=!0,this.isLoadError=!1,this.isUnsupportedMarket=!1,this.services=[],i=this.impersonationService.getEffectiveUserRights(),this.canView=i.canManage,this.canView?this.privacyDataService.getCortanaNotebookServicesAsync().then(function(i){var r=i.data;t.services=r;t.isEmpty=!t.services||!t.services.length;t.isEmpty||t.selectService(t.services[0],!n);t.canClearAll=!0;t.isLoading=!1}).catch(function(n){var i=n.jqXHR;t.isLoading=!1;i.responseJSON&&i.responseJSON.error==="UnsupportedMarket"?(t.isEmpty=!0,t.isUnsupportedMarket=!0,t.isLoadError=!1):(t.isLoadError=!0,t.$promise.reject(n))}):this.$promise.resolve({})};r.prototype.onServiceSelected=function(n,t){n.preventDefault();this.selectService(t,!0)};r.prototype.selectService=function(n,t){var i=this;return this.selectedService=n,n.userFeatures?(this.setPanelFocus(t,n),this.$promise.resolve({})):(n.isLoadingUserFeatures=!0,n.isLoadUserFeaturesError=!1,this.privacyDataService.getCortanaNotebookUserFeaturesAsync(n.id).then(function(r){var u=r.data;n.userFeatures=u;i.setPanelFocus(t,n)}).catch(function(t){return n.isLoadUserFeaturesError=!0,i.$promise.reject(t)}).finally(function(){return n.isLoadingUserFeatures=!1}))};r.prototype.isSelected=function(n){return this.selectedService&&n.id===this.selectedService.id};r.prototype.deleteUserFeature=function(n,t,i){var r=this;return n.userFeatures.forEach(function(n){return n.errorMessage=""}),i.__isDeleted=!0,this.privacyDataService.deleteCortanaNotebookUserFeatureAsync(t,i.id).then(function(){r.$timeout(300).then(function(){r.deleteUserFeatureOrEntityData(n,t,i)})}).catch(function(n){t.errorMessage=r.activityCmsData.activityStrings.deleteUserFeatureError;i.__isDeleted=!1;r.$promise.reject(n)})};r.prototype.deleteUserFeatureOrEntityData=function(n,t,i){t.entities.length===1?n.userFeatures.splice(_.findIndex(n.userFeatures,function(n){return n.id==t.id}),1):t.entities.splice(_.findIndex(t.entities,function(n){return n.id==i.id}),1)};r.prototype.setPanelFocus=function(n,t){n&&t.userFeatures.length&&angular.element(".notebook-user-features-panel").focus()};r.prototype.$onDestroy=function(){this.metatagService.clear();angular.element("#page-wrapper").css("background-color","#f2f2f2");angular.element("body").css("background-color","#f2f2f2")};var u;return r.$inject=["$scope","areaConfig","privacyDataService","impersonationService","cortanaNotebookCmsData","telemetryService","$state","$q","$timeout","metatagService"],r.RefreshCortanaNotebookEvent="refreshCortanaNotebook",__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("clearAll")],r.prototype,"clearAll",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("loadServices")],r.prototype,"loadServices",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("selectService")],r.prototype,"selectService",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("deleteUserFeature")],r.prototype,"deleteUserFeature",null),u=__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"cortanaNotebook",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/CortanaNotebook/cortana-notebook.html"})],r)}();t.CortanaNotebookComponent=r})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t){this.telemetry=n;this.$window=t}return i.prototype.getInstrumentationComponentName=function(){return"privacy.user-features"},i.prototype.$onInit=function(){this.onInitialized()},i.prototype.deleteUserFeature=function(n,t){var i=n.isInference?"inference":"interest";this.telemetry.portalBi.reportClick({pageArea:"body",clickId:"cortana-delete-"+i});this.onDeleteUserFeature({userFeature:n,entity:t})},i.$inject=["telemetryService","$window"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"userFeatures",{bindings:{service:"=",activityCmsData:"=",endlessActivityListStrings:"=",onInitialized:"&",onDeleteUserFeature:"&"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/CortanaNotebook/user-features.html"})],i)}();t.UserFeaturesComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(){}return __decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"officeSettingCardPlaceholder",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/DataSettings/office-setting-card-placeholder.html"})],i)}();t.OfficeSettingCardPlaceholderComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.monitoredOperation=n}return i.prototype.$onInit=function(){},i.prototype.getAriaLabel=function(){return this.settingData.toggleModel?this.settingData.onAriaLabel:this.settingData.offAriaLabel},i.prototype.toggleSetting=function(n){var t=this;return this.monitoredOperation(this.settingData.progressName,function(){return t.settingData.toggleChange(n)})},i.prototype.filterImages=function(){for(var t,i=[],n=0,r=Object.keys(this.images);n<r.length;n++)t=r[n],t!=="illustrationImage"&&i.push(this.images[t]);return i},i.$inject=["$meeMonitoredOperation"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"officeSettingCard",{bindings:{settingData:"<",images:"="},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/DataSettings/office-setting-card.html"})],i)}();t.OfficeSettingCardComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i){this.dataSettingsCmsData=n;this.privacyDataService=t;this.$q=i;this.showError=!1}return i.prototype.getInstrumentationComponentName=function(){return"privacy.data-settings"},i.prototype.componentOnInit=function(){var n=this;return this.pageStringsCmsData=this.dataSettingsCmsData.pageStrings,this.officeSectionCmsData=this.dataSettingsCmsData.officeSection,this.analyzeContentCmsData=this.officeSectionCmsData.analyzeContentSetting,this.downloadContentCmsData=this.officeSectionCmsData.downloadContentSetting,this.images=this.officeSectionCmsData.images,this.initializeSettingData(),this.privacyDataService.getOfficeRoamingSettingsAsync().then(function(t){var i=t.data;n.settingData.analyzeContentSetting.toggleModel=i.analyzeContent;n.settingData.downloadContentSetting.toggleModel=i.downloadContent}).catch(function(t){return n.showAlert(),n.$q.reject(t)})},i.prototype.diagnosticToggle=function(n){var t=this;return this.hideAlert(),this.privacyDataService.setOfficeDiagnosticLevelAsync(n).catch(function(n){return t.showAlert(),t.$q.reject(n)})},i.prototype.analyzeContentToggle=function(n){var t=this;return this.hideAlert(),this.privacyDataService.setOfficeAnalyzeContentAsync(n).catch(function(n){return t.showAlert(),t.$q.reject(n)})},i.prototype.downloadContentToggle=function(n){var t=this;return this.hideAlert(),this.privacyDataService.setOfficeDownloadContentAsync(n).catch(function(n){return t.showAlert(),t.$q.reject(n)})},i.prototype.initializeSettingData=function(){var n=this;this.settingData={analyzeContentSetting:{title:this.analyzeContentCmsData.title,onLabel:this.analyzeContentCmsData.onLabel,offLabel:this.analyzeContentCmsData.offLabel,onAriaLabel:this.analyzeContentCmsData.onAriaLabel,offAriaLabel:this.analyzeContentCmsData.offAriaLabel,settingDescription:this.analyzeContentCmsData.settingDescription,onInfoNote:this.analyzeContentCmsData.onInfoNote,offInfoNote:this.analyzeContentCmsData.offInfoNote,toggleChange:function(t){return n.analyzeContentToggle(t)},toggleId:"analyze-content-toggle",toggleModel:!0,link:this.analyzeContentCmsData.settingLink,linkId:"analyze-content-link",progressName:"set-analyze-content"},downloadContentSetting:{title:this.downloadContentCmsData.title,onLabel:this.downloadContentCmsData.onLabel,offLabel:this.downloadContentCmsData.offLabel,onAriaLabel:this.downloadContentCmsData.onAriaLabel,offAriaLabel:this.downloadContentCmsData.offAriaLabel,settingDescription:this.downloadContentCmsData.settingDescription,onInfoNote:this.downloadContentCmsData.onInfoNote,offInfoNote:this.downloadContentCmsData.offInfoNote,toggleChange:function(t){return n.downloadContentToggle(t)},toggleId:"download-content-toggle",toggleModel:!0,link:this.downloadContentCmsData.settingLink,linkId:"download-content-link",progressName:"set-download-content"}}},i.prototype.getSettings=function(){return this.settingData},i.prototype.shouldShowAlert=function(){return this.showError},i.prototype.hideAlert=function(){this.showError=!1},i.prototype.showAlert=function(){this.showError=!0},i.$inject=["dataSettingsCmsData","privacyDataService","$q"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("getRoamingSettings"),n.OneUI.Angular.MonitorOperationProgress("load")],i.prototype,"componentOnInit",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("setRoamingDiagnosticLevelSetting")],i.prototype,"diagnosticToggle",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("setRoamingAnalyzeContentSetting")],i.prototype,"analyzeContentToggle",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("setRoamingDownloadContentSetting")],i.prototype,"downloadContentToggle",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"privacyDataSettings",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/DataSettings/privacy-data-settings.html"})],i)}();t.DataSettingsComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u){this.$meeModal=n;this.privacyDataService=t;this.exportCMSData=i;this.dataTypeIcons=r;this.$q=u;this.isInProgress=!1}return i.prototype.$onInit=function(){this.createArchivePopupData=this.$meeModal.getData();this.strings=this.exportCMSData.strings;this.dataTypesSelectionModel=this.getDataTypeSelectionModel()},i.prototype.getInstrumentationComponentName=function(){return"privacy.create-archive"},i.prototype.createArchive=function(){var n=this,t;return this.isInProgress=!0,t=this.dataTypesSelectionModel.filter(function(n){return n.checked}).map(function(n){return n.id}),this.createArchivePopupData.onCreateArchive(t).then(function(){n.close()}).catch(function(t){var i=t.jqXHR;switch(i.responseJSON.error){case"CreateArchiveInProgress":n.errorMessage=n.strings.label_failedArchiveErrorInProgress;break;case"TooManyArchives":n.errorMessage=n.strings.label_failedArchiveErrorLimitHit;break;default:n.errorMessage=n.strings.label_createArchiveFailedErrorMessage}n.createArchivePopupData.errorOccurred=!0;n.$meeModal.switchTo({stateId:"^.error"})}).finally(function(){n.isInProgress=!1})},i.prototype.retry=function(n){n.preventDefault();this.$meeModal.switchTo({stateId:"^.confirm"})},i.prototype.cancel=function(){this.createArchivePopupData.onCancel();this.close()},i.prototype.close=function(){return this.$meeModal.hide("export")},i.prototype.getDataTypeSelectionModel=function(){var n=this;return Object.keys(this.exportCMSData.dataTypes).map(function(t){return{id:t,label:n.exportCMSData.dataTypes[t].label,format:n.exportCMSData.dataTypes[t].format,icon:n.dataTypeIcons[t],checked:!1}})},i.prototype.anyDataTypeSelected=function(){return this.dataTypesSelectionModel.some(function(n){return n.checked})},i.$inject=["$meeModal","privacyDataService","exportCmsData","dataTypeIcons","$q"],__decorate([n.OneUI.Angular.MonitorOperationProgress("modalOperation")],i.prototype,"createArchive",null),__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeCreateArchivePopup",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/DownloadYourData/create-archive-popup.html",transclude:!0})],i)}();t.CreateArchivePopupComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var u=3e4,i=function(){function n(){}return n.Area="Privacy",n.ScenarioCreateArchive="CreateExportArchive",n.ScenarioDownloadArchive="DownloadArchive",n.StepConfirm="CreateConfirm",n.StepRetry="CreateRetryAfterFailure",n}(),r;t.ExportBi=i;r=function(){function r(n,t,r,u,f,e,o,s,h,c,l,a,v,y){this.$q=n;this.$scope=t;this.areaConfig=r;this.privacyDataService=u;this.dateTimeFormatter=f;this.$meeModal=e;this.exportCMSData=o;this.dataTypeIcons=s;this.$timeout=h;this.telemetry=c;this.metatagService=l;this.$element=a;this.$window=v;this.biDimensions=y;this.hasPending=!0;this.otherDataType="other";this.bi=new i;this.strings=this.exportCMSData.strings;this.paragraphs=this.exportCMSData.paragraphs;this.introSection=this.exportCMSData.introSection;this.fileSizeUnitStrings=this.exportCMSData.fileSizeUnitStrings;this.otherDataTypeLabel=this.exportCMSData.dataTypes[this.otherDataType]&&this.exportCMSData.dataTypes[this.otherDataType].label}return r.prototype.componentOnInit=function(){return this.internalTestEnabled=n.Utilities.isInFlight("PrivTmlnInternalTest"),this.handleFirstDataLoad(this.loadArchives())},r.prototype.getInstrumentationComponentName=function(){return"privacy.export"},r.prototype.loadArchives=function(){return this.loadArchivesInternal()},r.prototype.loadArchivesInternal=function(){var n=this;return this.clearRefreshTimeout(),this.loadArchivesImpl().then(function(){n.hasPending&&(n.refreshTimeoutPromise=n.$timeout(function(){return n.loadArchivesInternal()},u))})},r.prototype.loadArchivesImpl=function(){var n=this;return this.privacyDataService.getExportHistoryAsync().then(function(t){n.archives=t.data.archives;n.hasPending=n.archives.some(function(n){return!n.isComplete});n.archives.forEach(function(t){return n.calculateTimeToExpire(t)})})},r.prototype.reloadArchives=function(){return this.loadArchivesInternal()},r.prototype.scrollToArchivesList=function(){var n=this.$element.find(".export-table")[0],t=n.getBoundingClientRect();(t.top>(this.$window.innerHeight||this.$window.document.documentElement.clientHeight)||t.top<0)&&n.scrollIntoView()},r.prototype.createArchive=function(n){var t=this,r,u;n.preventDefault();this.telemetry.portalScenarios.beginMultiStepScenario(i.Area,i.ScenarioCreateArchive,i.StepConfirm);this.bi.currentStep=i.StepConfirm;r={onCreateArchive:function(n){return t.onCreateArchive(n)},onCancel:function(){return t.onPopupDismissed()}};u=function(){return t.onPopupDismissed(),{stateId:"export"}};this.$meeModal.show("#privacy-modal-host","export.create.confirm",{data:r,onDismissed:u,modalHostOptions:{kind:"flow close-button",ariaDialogLabel:this.strings.ariaLabel_createArchiveDialog}})},r.prototype.onCreateArchive=function(n){var t=this,r={};return r[this.biDimensions.dataType]=n.join(";"),this.privacyDataService.createArchiveAsync({dataTypes:n}).then(function(){return t.telemetry.portalScenarios.endMultiStepScenario({area:i.Area,name:i.ScenarioCreateArchive,step:t.bi.currentStep,isSuccess:!0,data:r}),t.bi.currentStep=null,t.reloadArchives().then(function(){t.scrollToArchivesList()}),t.$q.resolve()}).catch(function(n){return t.telemetry.portalScenarios.endStep({area:i.Area,name:i.ScenarioCreateArchive,step:t.bi.currentStep,next:i.StepRetry,isSuccess:!1,data:r}),t.bi.currentStep=i.StepRetry,t.$q.reject(n)})},r.prototype.onPopupDismissed=function(){this.telemetry.portalScenarios.cancelMultiStepScenario({area:i.Area,name:i.ScenarioCreateArchive,step:this.bi.currentStep,isSuccess:!this.$meeModal.getData().errorOccurred})},r.prototype.clearRefreshTimeout=function(){this.refreshTimeoutPromise&&(this.$timeout.cancel(this.refreshTimeoutPromise),this.refreshTimeoutPromise=null)},r.prototype.calculateTimeToExpire=function(n){var i=new Date(n.expiryDateFormatted),r=new Date,u=i.getTime()-r.getTime(),t=u/36e5;n.timeToExpireBi=isNaN(t)||t<0?"Unknown":t<24?"Less than 1D":t<48?"Less than 2D":t<72?"Less than 3D":t<96?"Less than 4D":t<120?"Less than 5D":t<144?"Less than 6D":"Greater than 6D"},r.prototype.$onDestroy=function(){this.clearRefreshTimeout();this.metatagService.clear()},r.prototype.handleFirstDataLoad=function(n){function u(n){i.metatagService.add("awa-ver","export-"+n);i.privacyDataService.setUserContextForBI();i.$scope.$emit(t.eventExportLandingFirstLoadComplete)}var r=this,i=this;return n.then(function(){u(r.archives.length?"has-data":"no-data")}).catch(function(){return u("error"),r.$q.reject()})},r.prototype.showOtherDataType=function(n){return n.dataTypes.indexOf(this.otherDataType)>-1},r.$inject=["$q","$scope","areaConfig","privacyDataService","dateTimeFormatter","$meeModal","exportCmsData","dataTypeIcons","$timeout","telemetryService","metatagService","$element","$window","privacyBiDimensions"],__decorate([n.OneUI.Angular.MonitorOperationProgress("loadArchives")],r.prototype,"loadArchives",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("reloadArchives")],r.prototype,"reloadArchives",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("createArchive")],r.prototype,"onCreateArchive",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"export",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/DownloadYourData/export.html"})],r)}();t.ExportComponent=r})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(){}return i.prototype.getInstrumentationComponentName=function(){return"privacy.intro"},i.prototype.$onInit=function(){},__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"intro",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Intro/intro.html",transclude:!0})],i)}();t.IntroComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i){this.$sce=n;this.$attrs=t;this.$timeout=i}return i.prototype.getInstrumentationComponentName=function(){return"privacy.lede"},i.prototype.$onInit=function(){var n=this;this.$attrs["class"]&&this.$timeout(function(){n.ledeClass=n.$attrs["class"]})},i.$inject=["$sce","$attrs","$timeout"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeLede",{bindings:{lines:"="},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Lede/lede.html"})],i)}();t.LedeComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u){this.locationOptOutCmsData=n;this.privacyDataService=t;this.$q=i;this.componentRegistryService=r;this.$meeErrors=u;this.macAddress="";this.macAddressRegex=new RegExp("^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$");this.captchaId="MACAddress";this.showCaptchaError=!1;this.errorId="location.mac-address";this.cmsData=n.pageStrings}return i.prototype.getInstrumentationComponentName=function(){return"privacy.location-opt-out"},i.prototype.componentOnInit=function(){return},i.prototype.submitOptOutClicked=function(){this.showCaptchaError=!1;var t=this.componentRegistryService.getInstanceById(this.captchaId),n=t.verify();n.isSuccess?this.submitOptOut(n):this.showCaptchaError=!0},i.prototype.submitOptOut=function(n){var t=this,i={hipSolution:n.solution,hipId:n.hid,hipFlowId:n.flowId};return this.privacyDataService.submitLocationOptOut(this.macAddress,i).catch(function(n){return n.jqXHR&&n.jqXHR.responseJSON&&n.jqXHR.responseJSON.error==="invalidCaptcha"?(t.showCaptchaError=!0,t.$q.resolve()):t.$q.reject(n)}).finally(function(){var n=t.componentRegistryService.getInstanceById(t.captchaId);n.reload()})},i.prototype.isValidMacAddress=function(){var n=this.macAddressRegex.test(this.macAddress);return n?this.$meeErrors.reset(this.errorId):this.$meeErrors.setError(this.errorId,this.cmsData.errorMessageMacAddress),n},i.$inject=["locationOptOutCmsData","privacyDataService","$q","componentRegistryService","$meeErrors"],__decorate([n.OneUI.Angular.MonitorOperationProgress("submitOptOut"),n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("submitOptOut")],i.prototype,"submitOptOut",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"locationOptOut",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/LocationOptOut/location-opt-out.html"})],i)}();t.LocationOptOutComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.commonCmsData=n}return i.$inject=["commonCmsData"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"privacyFooter",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Main/footer.html"})],i)}();t.FooterComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.areaConfig=n}return i.prototype.$onInit=function(){this.pivots=this.areaConfig.pivots},i.$inject=["areaConfig"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"privacyHeader",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Main/header.html"})],i)}();t.HeaderComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t){this.cmsData=n;this.impersonationService=t}return i.prototype.shouldHideTile=function(n){return!this.impersonationService.getEffectiveUserRights().canManage&&n.showCanManageOnly==="true"?!0:!1},i.$inject=["landingCmsData","impersonationService"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"otherSettings",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/OtherSettings/other-settings.html"})],i)}();t.OtherSettingsComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function n(){}return n.Area="Privacy",n.ScenarioDeletePsp="DeletePSP",n.StepConfirm="DeleteConfirm",n.StepRetry="DeleteRetryAfterFailure",n}(),r;t.LandingActivityBi=i;r=function(){function r(n,t,r,u,f,e,o,s,h,c,l,a,v){this.areaConfig=n;this.cmsData=t;this.$timeout=r;this.$meeModal=u;this.telemetry=f;this.$promise=e;this.privacyDataService=o;this.cardTypeFilters=s;this.metatagService=h;this.$scope=c;this.impersonationService=l;this.biDimensions=a;this.$element=v;this.bi=new i;this.modelsForAnimations=[]}return r.prototype.$onInit=function(){this.setUpModelsForAnimations();this.privacyDataService.setUserContextForBI();this.$scope.$emit(t.eventOverviewFirstLoadComplete)},r.prototype.getInstrumentationComponentName=function(){return"privacy.landing"},r.prototype.$postLink=function(){var n=this;this.$timeout(500).then(function(){var i=angular.element("#privacy-approach"),t;if(i.removeClass("c-hyperlink"),i.addClass("c-call-to-action c-glyph"),t=angular.element("#privacy-activity-psp-delete"),t)t.on("click",function(t){return n.startDeletePspFlow(t)})})},r.prototype.startDeletePspFlow=function(n){var t=this,r,u;n.preventDefault();this.telemetry.portalScenarios.beginMultiStepScenario(i.Area,i.ScenarioDeletePsp,i.StepConfirm);this.bi.currentStep=i.StepConfirm;r={model:this.cmsData.clearAllConfirmationPopups["clearallconfirmpopup-psp"],onShow:null,onConfirm:function(){return t.deletePspData()},onCancel:function(){t.onCancelBulkDelete()},returnState:"landing"};u=function(){return t.onCancelBulkDelete(),{stateId:"landing"}};this.$meeModal.show("#privacy-modal-host","landing.clear.confirm",{data:r,onDismissed:u,modalHostOptions:{kind:"flow close-button",ariaDialogLabel:this.cmsData.ariaLabel_clearAllDialog}})},r.prototype.onCancelBulkDelete=function(){this.telemetry.portalScenarios.cancelMultiStepScenario({area:i.Area,name:i.ScenarioDeletePsp,isSuccess:this.bi.currentStep!==i.StepRetry,step:this.bi.currentStep})},r.prototype.deletePspData=function(){var n=this,t={};return this.privacyDataService.deleteTimelineHistoryByTypesAsync([this.cardTypeFilters.Performance]).then(function(){n.telemetry.portalScenarios.endMultiStepScenario({area:i.Area,name:i.ScenarioDeletePsp,step:n.bi.currentStep,isSuccess:!0,data:t});n.bi.currentStep=null}).catch(function(r){return n.telemetry.portalScenarios.endStep({area:i.Area,name:i.ScenarioDeletePsp,step:n.bi.currentStep,next:i.StepRetry,isSuccess:!1,data:t}),n.bi.currentStep=i.StepRetry,n.$promise.reject(r)})},r.prototype.shouldHideCard=function(n){return!this.impersonationService.getEffectiveUserRights().canManage&&n.callToAction.id==="privacy-activity-cortana-manage"?!0:!1},r.prototype.shouldHideButton=function(n){return!this.impersonationService.getEffectiveUserRights().canManage&&n.callToAction.id==="privacy-activity-psp-delete"?!0:!1},r.prototype.getModelForAnimation=function(n){return this.modelsForAnimations[n.callToAction.id]},r.prototype.getElementForAnimation=function(n){var t=this.$element.find(".privacy-item-area:has(#"+n.callToAction.id+")");return t&&t[0]},r.prototype.setUpModelsForAnimations=function(){for(var t,n=0,i=this.cmsData.activities;n<i.length;n++)t=i[n],this.modelsForAnimations[t.callToAction.id]={alt:t.picture.alt,src:t.movieUrl}},r.prototype.$onDestroy=function(){this.metatagService.clear()},r.$inject=["areaConfig","landingCmsData","$timeout","$meeModal","telemetryService","$q","privacyDataService","cardTypeFilters","metatagService","$scope","impersonationService","privacyBiDimensions","$element"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("deletePsp")],r.prototype,"deletePspData",null),__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"landing",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Overview/landing.html"})],r)}();t.LandingComponent=r})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(){}return i.$inject=[],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"privacyBanner",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/PrivacyBanner/privacy-banner.html"})],i)}();t.PrivacyBannerComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.bannerCmsData=n}return i.prototype.$onInit=function(){this.content=this.bannerCmsData.imageColumn},i.$inject=["bannerCmsData"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"bannerImage",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/PrivacyBanner/BannerImage/banner-image.html"})],i)}();t.BannerImageComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.bannerCmsData=n}return i.prototype.$onInit=function(){this.content=this.bannerCmsData.statementColumn;this.statementId="privacy-banner-statement"},i.$inject=["bannerCmsData"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"bannerStatement",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/PrivacyBanner/BannerStatement/banner-statement.html"})],i)}();t.BannerStatementComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.bannerCmsData=n}return i.prototype.$onInit=function(){this.content=this.bannerCmsData.titleColumn},i.$inject=["bannerCmsData"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"bannerTitle",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/PrivacyBanner/BannerTitle/banner-title.html"})],i)}();t.BannerTitleComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u){this.relevantOffersStrings=n;this.$scope=t;this.privacyDataService=i;this.$promise=r;this.metatagService=u;this.isRelevantOffersEnabled=!1;this.isLoadError=!1;this.operations={load:"loadRelevantOffers",update:"updateRelevantOffers"}}return i.prototype.getInstrumentationComponentName=function(){return"privacy.relevant-offers"},i.prototype.componentOnInit=function(){return this.handleFirstDataLoad(this.loadRelevantOffers())},i.prototype.$onDestroy=function(){this.metatagService.clear()},i.prototype.loadRelevantOffers=function(){var n=this;return this.privacyDataService.getRelevantOffersSettingAsync().then(function(t){return n.isRelevantOffersEnabled=t.data&&t.data.isEnabled,n.eTag=t.data&&t.data.eTag,t}).catch(function(t){return n.isLoadError=!0,n.$promise.reject(t)})},i.prototype.updateRelevantOffers=function(n){var t=this;return this.privacyDataService.updateRelevantOffersSettingAsync(this.eTag,n).then(function(n){return t.eTag=n.data&&n.data.eTag,n.data&&n.data.isEnabled})},i.prototype.handleFirstDataLoad=function(n){function r(n){i.metatagService.add("awa-ver","offers-"+n);i.privacyDataService.setUserContextForBI();i.$scope.$emit(t.eventRelevantOffersLandingFirstLoadComplete)}var u=this,i=this;return n.then(function(n){return r("has-data"),n}).catch(function(){return r("error"),u.$promise.reject()})},i.$inject=["relevantOffersCmsData","$scope","privacyDataService","$q","metatagService"],__decorate([n.OneUI.Angular.MonitorOperationProgress("loadRelevantOffers")],i.prototype,"loadRelevantOffers",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("updateRelevantOffers"),n.OneUI.Angular.MonitorOperationProgress("updateRelevantOffers")],i.prototype,"updateRelevantOffers",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"relevantOffers",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/RelevantOffers/relevant-offers.html"})],i)}();t.RelevantOffersComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(t){var i;(function(t){var i="Address,Neighborhood,PopulatedPlace,AdminDivision1",r="LocationApi.FindLocationByPoint",u=function(){function t(t,i,r,u,f,e){this.areaConfig=t;this.impersonationService=i;this.ajax=r;this.telemetry=u;this.dateTimeFormatter=f;this.$promise=e;this.addressCache={};this.bingMapsJsSettings=n.BingMapJsSettings}return t.prototype.getAreaName=function(n){var t=this,i=n.lat+","+n.long,r=this.addressCache[i];return r?r:(this.addressCache[i]=this.loadAreaName(n).then(function(i){return i.data.errorDetails&&i.data.errorDetails.length>0?t.$promise.reject(i.data):t.getLocationAddressFromBingResponse(n,i.data)}).catch(function(n){return delete t.addressCache[i],t.$promise.reject(n)}),this.addressCache[i])},t.prototype.loadAreaName=function(n){return this.ajax.get({serviceName:"BingMaps",operationName:r,url:""+this.bingMapsJsSettings.restAPIUrl+this.bingMapsJsSettings.restLocationAPI+n.lat+","+n.long,dataType:"jsonp",data:{key:this.bingMapsJsSettings.key,o:"json",c:this.bingMapsJsSettings.locale,includeEntityTypes:i},jsonp:"jsonp"})},t.prototype.getLocationAddressFromBingResponse=function(n,t){return t&&t.resourceSets&&t.resourceSets.length>0&&t.resourceSets[0].resources&&t.resourceSets[0].resources.length>0&&t.resourceSets[0].resources[0].address?t.resourceSets[0].resources[0].address.formattedAddress:null},t.prototype.formatUnresolvedLocationName=function(n){return n.lat.toFixed(4)+", "+n.long.toFixed(4)},t.$inject=["areaConfig","impersonationService","portalAjaxServiceAngular","telemetryService","dateTimeFormatter","$q"],t}();angular.module(t.areaModuleName).service("areaNameLookupService",u)})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){var t=function(){function n(n,t){var r=this;this.areaConfig=n;this.pageReliabilityService=t;this.format=function(n){return new i(r.areaConfig.userCulture||navigator.language,n,r.pageReliabilityService,r.areaConfig.userCulture)}}return n.$inject=["areaConfig","pageReliabilityService"],n}(),i=function(){function n(n,t,i,r){var u=this;this.culture=n;this.timestamp=t;this.pageReliabilityService=i;this.areaConfigCulture=r;this.toShortDate=function(){if(!u.timestamp)return"";try{return u.formatSupported?u.timestamp.toLocaleDateString(u.culture,{year:"numeric",month:"short",day:"numeric"}):u.timestamp.toDateString()}catch(n){return u.addCustomDataToFailedComponentEvent(),u.timestamp.toDateString()}};this.toMonthYear=function(){return u.timestamp?u.formatSupported?u.timestamp.toLocaleDateString(u.culture,{year:"numeric",month:"short"}):u.timestamp.toDateString():""};this.toShortTime=function(){if(!u.timestamp)return"";try{return u.formatSupported?u.timestamp.toLocaleTimeString(u.culture,{hour:"2-digit",minute:"2-digit"}):u.timestamp.toTimeString()}catch(n){return u.addCustomDataToFailedComponentEvent(),u.timestamp.toTimeString()}};this.formatSupported=t&&!!t.toLocaleDateString&&!!t.toLocaleTimeString}return n.prototype.addCustomDataToFailedComponentEvent=function(){var t=this.pageReliabilityService.getActiveComponentOperations(),n;if(t)for(n=0;n<t.length;n++)t[n].customData["amcqos-date-time-formatter-timestamp"]=this.timestamp,t[n].customData["amcqos-date-time-formatter-culture"]=this.culture,t[n].customData["amcqos-date-time-formatter-area-config-user-culture"]=this.areaConfigCulture,t[n].customData["amcqos-date-time-formatter-navigator-language"]=navigator.language},n}();angular.module(n.areaModuleName).service("dateTimeFormatter",t)})(t=n.OneUi||(n.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(n){var t;(function(n){var t=function(){function n(n){this.areaConfig=n;this.defaultRights={canView:!0,canManage:!1,canManageAdSettings:!1}}return n.prototype.getPersona=function(){return this.childContext},n.prototype.setPersona=function(n){if(!n)throw new Error("ImpersonationService.setPersona cannot be given null as an argument.");this.childContext=n},n.prototype.isImpersonating=function(){return!!this.childContext},n.prototype.getAuthToken=function(){return this.isImpersonating()&&this.childContext.authToken},n.prototype.getEffectiveUserRights=function(){return this.childContext&&this.childContext.oboRights||this.areaConfig.selfRights||this.defaultRights},n.prototype.shouldChildWarningBeVisible=function(){var n=this.getEffectiveUserRights();return!n.canManage||!n.canView},n.prototype.clearPersona=function(){this.childContext=null},n.$inject=["areaConfig"],n}();angular.module(n.areaModuleName).service("impersonationService",t)})(t=n.OneUi||(n.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={})),function(n){var t;(function(t){var i;(function(t){var i="Unknown",r=function(){function t(t,i,r,u,f,e,o,s,h){this.areaConfig=t;this.impersonationService=i;this.ajax=r;this.telemetry=u;this.dateTimeFormatter=f;this.$promise=e;this.$window=o;this.metatagService=s;this.biDimensions=h;this.RequestTimeoutMsec=3e4;this.mocks=n.MockHelper;this.authError="privacy.err.auth-expiration.get"}return t.prototype.getCortanaNotebookServicesAsync=function(){return this.customGet({serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.GETCORTANANOTEBOOKSERVICES",parentOperationName:"GetCortanaNotebookServices",url:this.areaConfig.serviceEndpointRoot+"cortana/services",timeout:this.RequestTimeoutMsec,overrideRequestQosData:this.overrideRequestQosData})},t.prototype.getCortanaNotebookUserFeaturesAsync=function(n){if(this.isAuthErrorMockActive())return this.generateAuthErrorResponse();var i=n?"?serviceId="+encodeURIComponent(n):"";return this.customGet({serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.GETCORTANANOTEBOOKUSERFEATURES",parentOperationName:"GetCortanaNotebookUserFeatures",url:this.areaConfig.serviceEndpointRoot+"cortana/user-features"+i,timeout:this.RequestTimeoutMsec})},t.prototype.getOfficeRoamingSettingsAsync=function(){return this.customGet({serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.GETROAMINGSETTINGS",parentOperationName:"GetRoamingSettings",url:this.areaConfig.serviceEndpointRoot+"office/roaming-settings",timeout:this.RequestTimeoutMsec})},t.prototype.setOfficeDiagnosticLevelAsync=function(n){return this.customPut({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.SETDIAGNOSTICLEVEL",parentOperationName:"SetDiagnosticLevel",url:this.areaConfig.serviceEndpointRoot+"office/roaming-settings/diagnostic",timeout:this.RequestTimeoutMsec,data:{isEnabled:n}})},t.prototype.setOfficeAnalyzeContentAsync=function(n){return this.customPut({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.SETANALYZECONTENT",parentOperationName:"SetAnalyzeContent",url:this.areaConfig.serviceEndpointRoot+"office/roaming-settings/analyze",timeout:this.RequestTimeoutMsec,data:{isEnabled:n}})},t.prototype.setOfficeDownloadContentAsync=function(n){return this.customPut({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.SETDOWNLOADCONTENT",parentOperationName:"SetDownloadContent",url:this.areaConfig.serviceEndpointRoot+"office/roaming-settings/download",timeout:this.RequestTimeoutMsec,data:{isEnabled:n}})},t.prototype.deleteCortanaNotebookUserFeatureAsync=function(n,i){var r=n.isInference?"cortana/inference":"cortana/user-feature",u=n.isInference?"DENYCORTANANOTEBOOKINFERENCE":"DELETECORTANANOTEBOOKUSERFEATURE",f=n.isInference?"DenyCortanaNotebookInference":"DeleteCortanaNotebookUserFeature",e="?userFeatureId="+encodeURIComponent(n.id)+"&entityId="+encodeURIComponent(i);return this.customDel({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY."+u,parentOperationName:f,url:this.areaConfig.serviceEndpointRoot+r+e,timeout:this.RequestTimeoutMsec})},t.prototype.deleteAllUserFeaturesAsync=function(){return this.customDel({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.DELETECORTANAALLUSERFEATURES",parentOperationName:"DeleteAllUserFeatures",url:this.areaConfig.serviceEndpointRoot+"cortana/all",timeout:this.RequestTimeoutMsec})},t.prototype.getTimelineHistoryAsync=function(n,i){if(this.isAuthErrorMockActive())return this.generateAuthErrorResponse();var r=i&&i.types,u=i&&i.searchTerm,f=i&&i.startTime,e=n?"state="+encodeURIComponent(n):"",o=r?"types="+encodeURIComponent(r.join(",")):"",s=f?"startTime="+i.startTime.split("_")[1]:"",h=u?"searchTerm="+encodeURIComponent(u):"",c="?"+o+"&"+e+"&"+s+"&"+h;return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:this.isFirstLoad(n)?"PRIVACY.GETTIMELINEHISTORY":"PRIVACY.GETTIMELINEHISTORY.LOADMORE",parentOperationName:"GetTimelineHistory",url:this.areaConfig.serviceEndpointRoot+"history/timeline"+c,timeout:this.RequestTimeoutMsec}))},t.prototype.getVoiceCardAudioAsync=function(n){var i=n?"?assetId="+encodeURIComponent(n):"";return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.GETVOICECARDAUDIO",parentOperationName:"GetVoiceCardAudio",url:this.areaConfig.serviceEndpointRoot+"history/timeline/voice/audio"+i,timeout:this.RequestTimeoutMsec}))},t.prototype.deleteTimelineHistoryByTypesAsync=function(n){var i=this.getParsedType(n&&n[0]);return this.customDel(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"PRIVACY.DELETETIMELINEHISTORYBYTYPES",parentOperationName:"DeleteTimelineHistoryByTypes",url:this.areaConfig.serviceEndpointRoot+("history/timeline/types?reportedType="+i),timeout:this.RequestTimeoutMsec,data:{types:n}}))},t.prototype.deleteTimelineHistoryByIdsAsync=function(n,i){var r=this.getParsedType(i);return this.customDel(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"PRIVACY.DELETETIMELINEHISTORYBYIDS",parentOperationName:"DeleteTimelineHistoryByIds",url:this.areaConfig.serviceEndpointRoot+("history/timeline/ids?reportedType="+r),timeout:this.RequestTimeoutMsec,data:{ids:n}}))},t.prototype.getUserSettingsAdvertisingAsync=function(){return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.GETUSERSETTINGSADVERTISING",parentOperationName:"GetUserSettingsAdvertising",url:this.areaConfig.serviceEndpointRoot+"user/settings/a",timeout:this.RequestTimeoutMsec}))},t.prototype.updateUserSettingsAdvertisingAsync=function(n,i){return this.customPut(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.UPDATEUSERSETTINGSADVERTISING",parentOperationName:"UpdateUserSettingsAdvertising",url:this.areaConfig.serviceEndpointRoot+"user/settings/a",timeout:this.RequestTimeoutMsec,data:{etag:n,enabled:i}}))},t.prototype.getUserInterestsAsync=function(){return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"PRIVACY.GETUSERINTERESTS",parentOperationName:"GetUserInterests",url:this.areaConfig.serviceEndpointRoot+"user/interests",timeout:this.RequestTimeoutMsec}))},t.prototype.updateUserInterestsAsync=function(n,i,r){return this.customPut(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"PRIVACY.UPDATEUSERINTERESTS",parentOperationName:"UpdateUserInterests",url:this.areaConfig.serviceEndpointRoot+"user/interests",timeout:this.RequestTimeoutMsec,data:{etag:"-",interestIds:n,isInterested:i,interestType:r}}))},t.prototype.getExportHistoryAsync=function(){var n=this;return this.isAuthErrorMockActive()?this.generateAuthErrorResponse():this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"PRIVACY.GETEXPORTHISTORY",parentOperationName:"GetExportHistory",url:this.areaConfig.serviceEndpointRoot+"export/archives",timeout:this.RequestTimeoutMsec})).then(function(t){return t.data=n.parseExportHistoryArchive(t.data),t})},t.prototype.parseExportHistoryArchive=function(n){var t=this,i=function(n){return{exportId:n.exportId,submitDate:new Date(n.submitDate),isComplete:n.isComplete,submitDateFormatted:t.dateTimeFormatter.format(new Date(n.submitDate)).toShortDate(),dataTypes:n.dataTypes,fileSize:n.fileSize,fileSizeUnitCmsId:n.fileSizeUnitCmsId,downloadUri:n.downloadUri,expiryDateFormatted:t.dateTimeFormatter.format(new Date(n.expiryDate)).toShortDate(),timeToExpireBi:null,isFailed:n.isFailed,internalErrorMessage:n.internalErrorMessage}};return{archives:n.archives.map(function(n){return i(n)})}},t.prototype.createArchiveAsync=function(n){return this.isAuthErrorMockActive()?this.generateAuthErrorResponse():this.customPost(this.applyUserContext({serviceName:t.serviceName,operationName:"PRIVACY.CREATEARCHIVE",parentOperationName:"CreateArchive",dataType:"auto",data:n,url:this.areaConfig.serviceEndpointRoot+"export/archives",timeout:this.RequestTimeoutMsec}))},t.prototype.getRelevantOffersSettingAsync=function(){return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.GETRELEVANTOFFERSSETTING",parentOperationName:"GetRelevantOffersSetting",url:this.areaConfig.serviceEndpointRoot+"user/settings/offers",timeout:this.RequestTimeoutMsec}))},t.prototype.updateRelevantOffersSettingAsync=function(n,i){return this.customPut(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.UPDATERELEVANTOFFERSSETTING",parentOperationName:"UpdateRelevantOffersSetting",url:this.areaConfig.serviceEndpointRoot+"user/settings/offers",timeout:this.RequestTimeoutMsec,data:{etag:n,enabled:i}}))},t.prototype.submitLocationOptOut=function(n,i){return this.customPost(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"GLOBAL.PRIVACY.PRIVACY.SUBMITLOCATIONOPTOUT",parentOperationName:"SubmitLocationOptOut",url:this.areaConfig.serviceEndpointRoot+"/submit-location-opt-out",timeout:this.RequestTimeoutMsec,data:{macAddress:n,hipSolution:i.hipSolution,hipId:i.hipId,hipFlowId:i.hipFlowId}}))},t.prototype.testDeleteAsync=function(n){return this.customPost(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"PRIVACY.TESTDELETE",parentOperationName:"TestDelete",url:this.areaConfig.serviceEndpointRoot+"test/delete",timeout:this.RequestTimeoutMsec,data:{types:n}}))},t.prototype.testExportAsync=function(n){return this.customPost(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"PRIVACY.TESTEXPORT",parentOperationName:"TestExport",url:this.areaConfig.serviceEndpointRoot+"test/export",timeout:this.RequestTimeoutMsec,data:{types:n}}))},t.prototype.testAccountCloseAsync=function(){return this.customPost(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"PRIVACY.TESTACCOUNTCLOSE",parentOperationName:"TestAccountClose",url:this.areaConfig.serviceEndpointRoot+"test/account-close",timeout:this.RequestTimeoutMsec,data:{}}))},t.prototype.testTraceRequestAsync=function(n){return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"PRIVACY.TESTTRACEREQUEST",parentOperationName:"TestTraceRequest",url:this.areaConfig.serviceEndpointRoot+"test/trace-request",timeout:this.RequestTimeoutMsec,data:{requestId:n}}))},t.prototype.testAgentStatusAsync=function(n){return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"PRIVACY.TESTAGENTSTATUS",parentOperationName:"TestAgentStatus",url:this.areaConfig.serviceEndpointRoot+"test/agent-status",timeout:this.RequestTimeoutMsec,data:{agentId:n}}))},t.prototype.testUserRequestsAsync=function(){return this.customGet(this.applyUserContext({serviceName:t.serviceName,operationName:"PRIVACY.TESTUSERREQUESTS",parentOperationName:"TestUserRequests",url:this.areaConfig.serviceEndpointRoot+"test/user-requests",timeout:this.RequestTimeoutMsec,data:{}}))},t.prototype.testCompleteExportAsync=function(n){return this.customPost(this.applyUserContext({dataType:"auto",serviceName:t.serviceName,operationName:"PRIVACY.TESTCOMPLETEEXPORT",parentOperationName:"TestCompleteExport",url:this.areaConfig.serviceEndpointRoot+"test/complete-export",timeout:this.RequestTimeoutMsec,data:{requestId:n}}))},t.prototype.testGetMsaProxyTicketAsync=function(){return this.customPost(this.applyUserContext({serviceName:t.serviceName,operationName:"PRIVACY.TESTRETRIEVEMSAPROXYTICKET",parentOperationName:"TestRetrieveMsaProxyTicket",url:this.areaConfig.serviceEndpointRoot+"test/retrieve-msa-proxy-ticket",timeout:this.RequestTimeoutMsec}))},t.prototype.customAjaxOperation=function(n){var t=this;return n().then(function(n){return t.$promise.resolve(n)}).catch(function(n){return n.jqXHR.status===401?t.$promise.resolve({data:{},jqXHR:{}}).then(function(){t.$window.location.reload()}):t.$promise.reject(n)})},t.prototype.customGet=function(n){var t=this;return this.customAjaxOperation(function(){return t.ajax.get(n)})},t.prototype.customPost=function(n){var t=this;return this.customAjaxOperation(function(){return t.ajax.post(n)})},t.prototype.customPut=function(n){var t=this;return this.customAjaxOperation(function(){return t.ajax.put(n)})},t.prototype.customDel=function(n){var t=this;return this.customAjaxOperation(function(){return t.ajax.del(n)})},t.prototype.prepareItemsForListOfActivities=function(n,t,i){var e=[],l=this.dateOnly(new Date),a=this.dateOnly(new Date),o,h,r,u,c,f,s;for(a.setDate(l.getDate()-1),o=0,h=t;o<h.length;o++)r=h[o],u=new Date(r.timestamp),r.aggregationMethod&&r.aggregationMethod==="Monthly"?(c=new Date(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),n.lastMonth&&n.lastMonth.getMonth()===this.dateOnly(c).getMonth()||(n.lastMonth=this.dateOnly(c),f=this.dateTimeFormatter.format(n.lastMonth).toMonthYear(),s={template:"/Areas/Privacy/ScriptsOneUi/Components/ActivityView/item-date.html",title:f,kind:"date"},e.push(s))):n.lastDay&&n.lastDay.getTime()===this.dateOnly(u).getTime()||(n.lastDay=this.dateOnly(u),f=this.dateTimeFormatter.format(n.lastDay).toShortDate(),l.getTime()===n.lastDay.getTime()?f=this.areaConfig.strings.activityToday:a.getTime()===n.lastDay.getTime()&&(f=this.areaConfig.strings.activityYesterday),s={template:"/Areas/Privacy/ScriptsOneUi/Components/ActivityView/item-date.html",title:f,kind:"date",userName:this.getUserName()},e.push(s)),r.localTime=this.dateTimeFormatter.format(u).toShortTime(),i&&i(r),e.push(r);return{state:n.requestState?n:null,items:e}},t.prototype.dateOnly=function(n){var t=new Date(n.getTime());return t.setHours(0,0,0,0),t},t.prototype.applyUserContext=function(n){return n.additionalHeaders=n.additionalHeaders||[],n.additionalHeaders["X-TzOffset"]=-(new Date).getTimezoneOffset(),this.impersonationService.isImpersonating()&&(n.additionalHeaders["X-Obo"]=this.impersonationService.getAuthToken()),n},t.prototype.setUserContextForBI=function(){var f=this.impersonationService.isImpersonating(),e=this.impersonationService.getEffectiveUserRights().canManage,t="",n,i,r,u;t=f?"obo":e?"self":"self-cannot-delete";this.metatagService.add(this.biDimensions.privacyUserContext,""+t);n=this.impersonationService.getEffectiveUserRights().canManageAdSettings;n===!0?(i="can-manage-ad-settings",this.metatagService.add(this.biDimensions.adSettingsUserContext,""+i)):n===!1&&(r="cannot-manage-ad-settings",this.metatagService.add(this.biDimensions.adSettingsUserContext,""+r));u=this.areaConfig.msaCountryCode;this.metatagService.add(this.biDimensions.msaCountryCode,""+u)},t.prototype.overrideRequestQosData=function(n,t,i){if(t&&t.responseJSON&&t.responseJSON.error&&t.responseJSON.error==="UnsupportedMarket")return i.isSuccess=!0,1},t.prototype.getUserName=function(){if(this.areaConfig.selfAndKids){var n;return n=this.impersonationService.isImpersonating()?this.impersonationService.getPersona():this.areaConfig.selfAndKids.self,n.firstName||n.displayName}},t.prototype.isFirstLoad=function(n){return n?!1:!0},t.prototype.isAuthErrorMockActive=function(){return this.mocks.isScenarioActive(this.authError)},t.prototype.generateAuthErrorResponse=function(){return this.$promise.reject({jqXHR:{status:401}})},t.prototype.getParsedType=function(n){var t=i;return n&&n.split("_").length>1&&(t=n.split("_")[1]),t},t.$inject=["areaConfig","impersonationService","portalAjaxServiceAngular","telemetryService","dateTimeFormatter","$q","$window","metatagService","privacyBiDimensions"],t.serviceName="MeePortal",t}();angular.module(t.areaModuleName).service("privacyDataService",r)})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(){}return i.$inject=["$element"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"privacyInfoCard",{bindings:{cardCmsData:"<"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Shared/PrivacyInfoCard/privacy-info-card.html"})],i)}();t.PrivacyInfoCardComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function n(){}return n.Area="Privacy",n.ScenarioBulkDelete="BulkDelete",n.StepConfirm="DeleteConfirm",n.StepRetry="DeleteRetryAfterFailure",n}();t.TimelineActivityBi=i;var r=500,u=256,f=function(){function f(n,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d){var g=this;this.timelineCmsData=n;this.areaConfig=u;this.privacyDataService=f;this.impersonationService=e;this.$promise=o;this.$scope=s;this.$meeUtil=h;this.$meeModal=c;this.cardTypes=l;this.cardTypeFilters=a;this.telemetry=v;this.$location=y;this.$timeout=p;this.$window=w;this.$state=b;this.metatagService=k;this.biDimensions=d;this.bi=new i;this.cardTypeSelected=this.$meeUtil.debounce(function(n){g.selectedCardTypeDetail=g.cardTypeFilterDetails[n.id];g.$window.scrollTo(0,0);g.$scope.$broadcast(t.TimelineEndlessListComponent.RefreshListEvent);g.updateQueryStringAndReportBiPageView()},r);this.startTimeSelected=this.$meeUtil.debounce(function(n){g.selectedStartTime=n.id;g.$scope.$broadcast(t.TimelineEndlessListComponent.RefreshListEvent)},r);this.searchTermChanged=this.$meeUtil.debounce(function(){g.$scope.$broadcast(t.TimelineEndlessListComponent.RefreshListEvent)},r)}e=f;Object.defineProperty(f.prototype,"selectedCardType",{get:function(){return this.selectedCardTypeDetail.cmsKey},enumerable:!0,configurable:!0});f.prototype.$onInit=function(){var r=this,u,t,f,e,o,i;if(this.mappedTimelineData={},this.selectedLede=this.getLede(),u=this.getAllCardTypeMappings(),t=this.getCardTypeFilters().filter(function(n){return n.enabled}),this.cardTypeFilterDetails=_.object(t.map(function(n){return[n.cmsKey,n]})),f=Object.keys(u).filter(function(n){return!r.timelineCmsData.cardTypes||!r.timelineCmsData.cardTypes[n]}),f.length>0)throw new Error("Timeline: CMS Content not found for card types: "+f.join(","));if(this.mappedTimelineData=u,this.endlessActivityListStrings=this.areaConfig.endlessActivityListStrings,this.cardTypePickerModel={ariaLabel:this.timelineCmsData.activityStrings.label_selectedCardType,label:this.timelineCmsData.activityStrings.label_cardType,items:t.map(function(n){return{label:n.label,ariaLabel:n.ariaLabel,data:n.cmsKey,iconClass:n.iconClass?"mee-icon "+n.iconClass:""}})},e=this.getCurrentQueryString().view,e?(o=_.find(t,function(n){return n&&n.cmsKey==="cardTypeFilter_"+e}),this.applyInitialCardTypeFilter(o||t[0])):this.applyInitialCardTypeFilter(t[0]),i=this.getCmsStrings("startTime_"),i.length===0)throw new Error("Timeline: No start times found in activity strings.");this.startTimePickerModel={ariaLabel:this.timelineCmsData.activityStrings.label_selectedStartTime,label:this.timelineCmsData.activityStrings.label_startTime,items:_.map(i,function(n){return{label:r.timelineCmsData.activityStrings[n],data:n}})};this.selectedStartTime=i[0];this.searchTerm="";this.internalTestEnabled=n.Utilities.isInFlight("PrivTmlnInternalTest");this.displayFamilyPickerComponent=this.shouldDisplayFamilyPickerComponent();this.setCurrentPageBiId();this.setOboBi();this.userLocale=n.Utilities.getDisplayCulture()};f.prototype.getInstrumentationComponentName=function(){return"privacy.timeline"};f.prototype.applyInitialCardTypeFilter=function(n){this.selectedCardTypeDetail=n;this.cardTypeFilters.AllTypes===this.selectedCardType&&this.setQueryStringParam("view",null)};f.prototype.getCardTypeFilters=function(){var t=this,n=[],i,r;if(n.push({cmsKey:this.cardTypeFilters.AllTypes,label:null,ariaLabel:this.timelineCmsData.activityStrings.ariaLabel_cardTypeFilter_allTypes,clearAllConfirmPopup:null,clearAllConfirmPopupObo:null,iconClass:"",enabled:!0,clearAllAriaLabel:this.timelineCmsData.activityStrings.ariaLabel_bulkAllTypesDelete}),n.push({cmsKey:this.cardTypeFilters.Usage,label:null,ariaLabel:this.timelineCmsData.activityStrings.ariaLabel_cardTypeFilter_usage,clearAllConfirmPopup:null,clearAllConfirmPopupObo:null,iconClass:"mee-icon-BulletedList",enabled:!0,clearAllAriaLabel:this.timelineCmsData.activityStrings.ariaLabel_bulkUsageDelete}),n.push({cmsKey:this.cardTypeFilters.Voice,label:null,ariaLabel:this.timelineCmsData.activityStrings.ariaLabel_cardTypeFilter_voice,clearAllConfirmPopup:null,clearAllConfirmPopupObo:null,iconClass:"mee-icon-Microphone",enabled:!0,clearAllAriaLabel:this.timelineCmsData.activityStrings.ariaLabel_bulkVoiceDelete}),n.push({cmsKey:this.cardTypeFilters.Search,label:null,ariaLabel:this.timelineCmsData.activityStrings.ariaLabel_cardTypeFilter_search,clearAllConfirmPopup:null,clearAllConfirmPopupObo:null,iconClass:"mee-icon-Search",enabled:!0,clearAllAriaLabel:this.timelineCmsData.activityStrings.ariaLabel_bulkSearchDelete}),n.push({cmsKey:this.cardTypeFilters.Browse,label:null,ariaLabel:this.timelineCmsData.activityStrings.ariaLabel_cardTypeFilter_browse,clearAllConfirmPopup:null,clearAllConfirmPopupObo:null,iconClass:"mee-icon-Globe",enabled:!0,clearAllAriaLabel:this.timelineCmsData.activityStrings.ariaLabel_bulkBrowseDelete}),n.push({cmsKey:this.cardTypeFilters.Media,label:null,ariaLabel:this.timelineCmsData.activityStrings.ariaLabel_cardTypeFilter_media,clearAllConfirmPopup:null,clearAllConfirmPopupObo:null,iconClass:"mee-icon-Media",enabled:!0,clearAllAriaLabel:this.timelineCmsData.activityStrings.ariaLabel_bulkMediaDelete}),n.push({cmsKey:this.cardTypeFilters.Location,label:null,ariaLabel:this.timelineCmsData.activityStrings.ariaLabel_cardTypeFilter_location,clearAllConfirmPopup:null,clearAllConfirmPopupObo:null,iconClass:"mee-icon-MapPin",enabled:!0,clearAllAriaLabel:this.timelineCmsData.activityStrings.ariaLabel_bulkLocationDelete}),this.timelineCmsData.cardTypeFilterStrings&&n.forEach(function(n){n.label=t.timelineCmsData.cardTypeFilterStrings&&t.timelineCmsData.cardTypeFilterStrings[n.cmsKey];n.clearAllConfirmPopup=t.timelineCmsData.clearAllConfirmationPopups&&t.timelineCmsData.clearAllConfirmationPopups[n.cmsKey];n.clearAllConfirmPopupObo=t.timelineCmsData.clearAllConfirmationPopupsObo&&t.timelineCmsData.clearAllConfirmationPopupsObo[n.cmsKey]}),i=n.filter(function(n){return!n.label}).map(function(n){return n.cmsKey}),i.length>0)throw new Error("Card type filter strings not found in timelineCmsData.CardTypeFilterStrings for "+i.join(","));if(r=n.filter(function(n){return!n.clearAllConfirmPopup&&!(n.cmsKey===t.cardTypeFilters.AllTypes)}).map(function(n){return n.cmsKey}),r.length>0)throw new Error("clearAllConfirmationPopups CMS content not found in timelineCmsData.clearAllConfirmationPopups for "+r.join(","));return n};f.prototype.getAllCardTypeMappings=function(){var n={};return n[this.cardTypes.Usage]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/app-usage.html",iconClass:"mee-icon-BulletedList"},n[this.cardTypes.Voice]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/voice.html",iconClass:"mee-icon-Microphone"},n[this.cardTypes.Video]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/video.html",iconClass:"mee-icon-Media"},n[this.cardTypes.Music]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/music.html",iconClass:"mee-icon-Media"},n[this.cardTypes.Episode]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/episode.html",iconClass:"mee-icon-Media"},n[this.cardTypes.Search]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/search.html",iconClass:"mee-icon-Search"},n[this.cardTypes.Browse]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/browse.html",iconClass:"mee-icon-Globe"},n[this.cardTypes.Location]={template:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/location.html",iconClass:"mee-icon-MapPin"},n};f.prototype.$onDestroy=function(){this.metatagService.clear()};f.prototype.loadMore=function(n){var t=this,i;return this.setCustomOperationData(),i=[this.selectedCardType],this.privacyDataService.getTimelineHistoryAsync(n&&n.requestState,{types:i,searchTerm:this.searchTerm,startTime:this.selectedStartTime}).then(function(i){var r=i.data,u=n||{};return u.requestState=r.state,t.$promise.resolve(t.privacyDataService.prepareItemsForListOfActivities(u,r.items,function(n){return t.beforeAddTimelineItemToList(n)}))})};f.prototype.getCustomOperationData=function(){return e.customOperationData};f.prototype.setCustomOperationData=function(){e.customOperationData={};e.customOperationData["amcqos-timeline-filter-selectedCardType"]=this.selectedCardType;e.customOperationData["amcqos-timeline-filter-selectedStartTime"]=this.selectedStartTime;this.searchTerm&&(e.customOperationData["amcqos-timeline-search"]=this.searchTerm)};f.prototype.updateQueryStringAndReportBiPageView=function(){var n=this.selectedCardType.split("_"),i;if(n.length!==2)throw new Error("TimelineComponent.updateQueryStringAndReportBiPageView: selectedCardType has invalid format ('"+this.selectedCardType+"').");i=n[1]==="allTypes"?null:n[1];this.setQueryStringParam("view",i);this.setCurrentPageBiId();this.telemetry.portalBi.reportSpaPageView(t.getCustomBiPageView(this.$state.$current))};f.prototype.userSelected=function(){var n=this;this.setOboBi();this.$timeout().then(function(){n.$scope.$broadcast(t.TimelineEndlessListComponent.RefreshListEvent)})};f.prototype.deleteType=function(n){var r=this,u={};return u[this.biDimensions.dataType]=n||this.selectedCardType,this.privacyDataService.deleteTimelineHistoryByTypesAsync([n||this.selectedCardType]).then(function(){r.telemetry.portalScenarios.endMultiStepScenario({area:i.Area,name:i.ScenarioBulkDelete,step:r.bi.currentStep,isSuccess:!0,data:u});r.bi.currentStep=null;r.$scope.$broadcast(t.TimelineEndlessListComponent.RefreshListEvent)}).catch(function(n){return r.telemetry.portalScenarios.endStep({area:i.Area,name:i.ScenarioBulkDelete,step:r.bi.currentStep,next:i.StepRetry,isSuccess:!1,data:u}),r.bi.currentStep=i.StepRetry,r.$promise.reject(n)})};f.prototype.startBulkDeleteFlow=function(){var n=this,t,r;this.telemetry.portalScenarios.beginMultiStepScenario(i.Area,i.ScenarioBulkDelete,i.StepConfirm);this.bi.currentStep=i.StepConfirm;t={model:this.impersonationService.isImpersonating()?this.cardTypeFilterDetails[this.selectedCardType].clearAllConfirmPopupObo:this.cardTypeFilterDetails[this.selectedCardType].clearAllConfirmPopup,onShow:null,onConfirm:function(){return n.deleteType()},onCancel:function(){n.onCancelBulkDelete()},returnState:"timeline",userName:this.impersonationService.isImpersonating()?this.privacyDataService.getUserName():""};r=function(){return n.onCancelBulkDelete(),{stateId:"timeline"}};this.$meeModal.show("#privacy-modal-host","timeline.clear.confirm",{data:t,onDismissed:r,modalHostOptions:{kind:"flow close-button",ariaDialogLabel:this.timelineCmsData.activityStrings.ariaLabel_clearAllDialog}})};f.prototype.getCmsStrings=function(n){return Object.keys(this.timelineCmsData.activityStrings).filter(function(t){return t.indexOf(n)>-1})};f.prototype.beforeAddTimelineItemToList=function(t){var f,i,r,e;if(t.kind="card",f=this.mappedTimelineData[t.cardType],f){for(t.template=f.template,t.iconClass=f.iconClass,t.timelineStrings=this.timelineCmsData.activityStrings,t.cardCmsData=this.timelineCmsData.cardTypes[t.cardType],i=[],t.cardType===this.cardTypes.Browse?i=t.browsedUrls:t.cardType===this.cardTypes.Search&&(i=t.sites),r=0;r<i.length;r++)n.Utilities.isUrlValid(i[r].uri)||(i[r].isBad=!0);(t.cardType===this.cardTypes.Episode||t.cardType===this.cardTypes.Video)&&(e=t.mediaId,t.generatedIconUrl="https://musicimage.xboxlive.com/catalog/video."+e+"/image?locale="+this.userLocale+"&height="+u+"&purposes=boxart")}};f.prototype.onCancelBulkDelete=function(){this.telemetry.portalScenarios.cancelMultiStepScenario({area:i.Area,name:i.ScenarioBulkDelete,isSuccess:this.bi.currentStep!==i.StepRetry,step:this.bi.currentStep})};f.prototype.shouldDisplayFamilyPickerComponent=function(){return!!this.areaConfig.selfAndKids};f.prototype.getCurrentQueryString=function(){return this.$location.search()};f.prototype.setQueryStringParam=function(n,t){this.$location.search(n,t)};f.prototype.setCurrentPageBiId=function(){var n=this.$state.$current,t=this.getCurrentQueryString(),i=t.view?n.name+"."+t.view:n.name;n.data=n.data||{};n.data.biId=i};f.prototype.setOboBi=function(){this.privacyDataService.setUserContextForBI()};f.prototype.getLede=function(){var n=!!this.areaConfig.selfAndKids;return this.areaConfig.selfRights.canManage?n&&this.areaConfig.selfAndKids.kids.some(function(n){return!n.selfRights.canManage})?this.getLedeOrThrow("ledeParentWithChildCannotDelete"):this.getLedeOrThrow("ledeStandard"):this.getLedeOrThrow("ledeChildCannotDelete")};f.prototype.getLedeOrThrow=function(n){var t=this.timelineCmsData.ledes[n];if(t)return t;throw new Error("Timeline: CMS Content not found for lede: "+n);};var e;return f.$inject=["timelineCmsData","areaConfig","privacyDataService","impersonationService","$q","$scope","$meeUtil","$meeModal","cardTypes","cardTypeFilters","telemetryService","$location","$timeout","$window","$state","metatagService","privacyBiDimensions"],f.customOperationData={},__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("loadMore")],f.prototype,"loadMore",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("deleteType")],f.prototype,"deleteType",null),e=__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"timeline",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/timeline.html"})],f)}();t.TimelineComponent=f})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function n(){}return n.Area="Privacy",n.ScenarioSingleRowDelete="SingleRowDelete",n.StepRetry="DeleteRetryAfterFailure",n.StepWait="Wait",n}(),r=function(){function r(n,t,r,u,f,e,o,s,h,c,l,a,v,y,p){this.privacyDataService=n;this.$scope=t;this.areaConfig=r;this.cardTypes=u;this.$meeUtil=f;this.monitoredOperation=e;this.$promise=o;this.$meeErrors=s;this.$transclude=h;this.$interval=c;this.$timeout=l;this.$element=a;this.telemetry=v;this.biDimensions=y;this.impersonationService=p;this.deleteCancelWindowMs=3e3;this.bi=new i;this.additionalBiData={};this.longRunningDeleteTimeoutMsec=7e3;this.showLongRunningMessage=!1}return r.prototype.getInstrumentationComponentName=function(){return"privacy.base-card"},r.prototype.$onInit=function(){var t=this.$meeUtil.nextUid();this.deleteValidationId="delete."+t;this.hasIcon=this.$transclude.isSlotFilled("icon");this.expanded=!1;this.internalTestEnabled=n.Utilities.isInFlight("PrivTmlnInternalTest");this.additionalBiData[this.biDimensions.dataType]=this.item.cardType;this.canManage=this.impersonationService.getEffectiveUserRights().canManage},r.prototype.$onDestroy=function(){this.$interval.cancel(this.deleteTimeoutPromise);this.longRunningDeletePromise&&this.$timeout.cancel(this.longRunningDeletePromise)},r.prototype.changeItemExpansion=function(){this.expanded=!this.expanded},r.prototype.getDetailsString=function(){return this.expanded?this.item.timelineStrings.label_hideDetails:this.item.timelineStrings.label_showDetails},r.prototype.getDetailsAriaLabelString=function(){return this.expanded?this.item.timelineStrings.ariaLabel_hideDetails:this.item.timelineStrings.ariaLabel_showDetails},r.prototype.deleteCardClicked=function(){var n=this;this.showLongRunningMessage=!1;this.longRunningDeletePromise=this.$timeout(this.longRunningDeleteTimeoutMsec).then(function(){n.showLongRunningMessage=!0});this.focus(".cancel-delete");this.deleteCard().then(function(){n.focusNextCard()}).catch(function(){n.focus(".delete-button")}).finally(function(){n.$timeout.cancel(n.longRunningDeletePromise)})},r.prototype.deleteCard=function(){var n=this;return this.$meeErrors.reset(this.deleteValidationId),this.cancelButtonDisabled=!1,this.deletingString=this.item.timelineStrings.ariaLabel_deleting,this.telemetry.portalScenarios.beginMultiStepScenario(i.Area,i.ScenarioSingleRowDelete,i.StepWait,this.additionalBiData),this.bi.currentStep=i.StepWait,this.item.__isDeleting=!0,this.$scope.$emit(t.TimelineEndlessListComponent.ItemDeleteBeginEvent),this.deleteTimeoutPromise=this.$timeout(this.deleteCancelWindowMs),this.deleteTimeoutPromise.then(function(){n.cancelButtonDisabled=!0;var r=n.item.id;return n.privacyDataService.deleteTimelineHistoryByIdsAsync([r],n.item.cardType).then(function(){n.item.__isDeleted=!0;n.$scope.$emit(t.TimelineEndlessListComponent.ItemDeletedEvent);n.telemetry.portalScenarios.endMultiStepScenario({area:i.Area,name:i.ScenarioSingleRowDelete,step:n.bi.currentStep,isSuccess:!0,data:n.additionalBiData});n.bi.currentStep=null}).catch(function(t){return n.$meeErrors.setError(n.deleteValidationId,n.item.timelineStrings.label_deleteError),n.telemetry.portalScenarios.endStep({area:i.Area,name:i.ScenarioSingleRowDelete,step:n.bi.currentStep,next:i.StepRetry,isSuccess:!1,data:n.additionalBiData}),n.bi.currentStep=i.StepRetry,n.$promise.reject(t)}).finally(function(){n.deletingString=""})}).finally(function(){n.$scope.$emit(t.TimelineEndlessListComponent.ItemDeleteEndEvent);n.item.__isDeleting=!1})},r.prototype.focus=function(n){var t=this;this.$timeout(function(){var i=angular.element(n,t.$element);i.focus()})},r.prototype.focusNextCard=function(){var n=this;this.$timeout(function(){var t=n.$element.parent().next(".timeline-activity-item:not(.deleted)");t.focus()})},r.prototype.cancelDeletePromise=function(){this.$timeout.cancel(this.deleteTimeoutPromise);this.telemetry.portalScenarios.cancelMultiStepScenario({area:i.Area,name:i.ScenarioSingleRowDelete,isSuccess:this.bi.currentStep!==i.StepRetry,step:this.bi.currentStep,data:this.additionalBiData})},r.prototype.isDeleteDisabledForDataType=function(){return this.internalTestEnabled?!1:this.canManage?!1:!0},r.prototype.shouldShowSources=function(){return this.item.sources&&this.item.sources.length&&this.internalTestEnabled},r.prototype.shouldShowAppId=function(){return this.item.appId&&this.internalTestEnabled},r.$inject=["privacyDataService","$scope","areaConfig","cardTypes","$meeUtil","$meeMonitoredOperation","$q","$meeErrors","$transclude","$interval","$timeout","$element","telemetryService","privacyBiDimensions","impersonationService"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("deleteCard")],r.prototype,"deleteCard",null),__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"baseCard",{bindings:{meeTimelineCardTitle:"@",meeTimelineCardSubtitle:"@",item:"="},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/BaseCard/base-card.html",transclude:{icon:"?icon",content:"?content",custom:"?custom",cardHeader:"?cardHeader"}})],r)}();t.BaseCardComponent=r})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i){this.$meeModal=n;this.$element=t;this.$window=i}return i.prototype.$onInit=function(){this.clearAllPopupData=this.$meeModal.getData();this.modalShow()},i.prototype.modalShow=function(){this.clearAllPopupData.onShow&&this.clearAllPopupData.onShow()},i.prototype.cancel=function(n){n&&n.preventDefault();this.clearAllPopupData.onCancel&&this.clearAllPopupData.onCancel();this.$meeModal.hide(this.clearAllPopupData.returnState)},i.prototype.confirm=function(n){n&&n.preventDefault();this.$meeModal.switchTo({stateId:"^.in-progress"});var t=this.$element[0].getElementsByClassName("clear-all-content")[0];t&&(t.style.minHeight=t.clientHeight+"px");this.clearAllPopupData.onConfirm&&this.executeOnConfirm()},i.prototype.executeOnConfirm=function(){var n=this;return this.clearAllPopupData.onConfirm().then(function(){n.$window.scrollTo(0,0);n.$meeModal.hide(n.clearAllPopupData.returnState)}).catch(function(){n.$meeModal.switchTo({stateId:"^.error"})})},i.$inject=["$meeModal","$element","$window"],__decorate([n.OneUI.Angular.MonitorOperationProgress("modalOperation")],i.prototype,"executeOnConfirm",null),__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeTimelineClearAllPopup",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/ClearAllPopup/clear-all-popup.html",transclude:!0})],i)}();t.TimelineClearAllPopupComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n){this.$element=n}return i.prototype.$onInit=function(){this.cardTitle.length!==0&&(this.firstLetter=this.cardTitle.charAt(0).toUpperCase());var t=Math.floor(Math.random()*5),n=this.$element.children("div");n&&n.addClass("random-tile-background-"+t)},i.$inject=["$element"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeTimelinePlaceholderTile",{templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/PlaceholderTile/placeholder-tile.html",bindings:{cardTitle:"@"}})],i)}();t.TimelinePlaceholderTile=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function n(){}return n.Area="Privacy",n.StepConfirm="DeleteConfirm",n.StepRetry="DeleteRetryAfterFailure",n}(),r="privacy.timeline-endless-list",u=function(){function u(n,t,r,u,f,e,o,s,h,c,l,a,v,y,p,w){var b=this;this.areaConfig=n;this.$timeout=t;this.$element=r;this.$scope=u;this.$promise=f;this.componentReliabilityService=e;this.$meeUtil=o;this.$window=s;this.timelineCmsData=h;this.privacyDataService=c;this.cardTypes=l;this.cardTypeFilters=a;this.telemetry=v;this.$meeModal=y;this.metatagService=p;this.impersonationService=w;this.minimumDisplayedItems=5;this.loadMoreTimeoutMsec=250;this.loadMoreAfterDeleteTimeoutMsec=500;this.offsetTopAdjustment=1500;this.loadMoreCount=0;this.maxLoadMoreCount=3;this.bi=new i;this.isLoading=!1;this.isError=!1;this.longRunningLoadTimeoutMsec=7e3;this.showLongRunningMessage=!1;this.loadMoreOnScroll=this.$meeUtil.debounce(function(){var t,n;b.isListEmpty||b.isLoading||b.isError||(t=b.$element.find("finished-view")[0],b.lastListElement||(n=t.getElementsByClassName("timeline-activity-item"),b.lastListElement=n.length&&n[n.length-1]),b.lastListElement)&&b.canLoadMore&&b.loadMoreCount<b.maxLoadMoreCount&&b.lastListElement.offsetTop-b.offsetTopAdjustment<b.$window.pageYOffset&&b.loadMoreItems()},this.loadMoreTimeoutMsec,!1)}f=u;u.prototype.getInstrumentationComponentName=function(){return r};u.prototype.componentOnInit=function(){var t=this;return this.loadMoreState=null,this.loadingPlaceholderTemplateUrl="/Areas/Privacy/ScriptsOneUi/Components/Timeline/TimelineEndlessList/loading-placeholder.html",this.$scope.$on(f.RefreshListEvent,function(){t.refreshList()}),this.$scope.$on(f.ItemDeletedEvent,this.$meeUtil.debounce(function(){t.removeDatesFromList();t.canLoadMore&&t.loadMoreAfterDelete()},this.loadMoreAfterDeleteTimeoutMsec,!1)),this.onScrollHandler=this.loadMoreOnScroll.bind(this),this.$window.addEventListener("scroll",this.onScrollHandler),this.internalTestEnabled=n.Utilities.isInFlight("PrivTmlnInternalTest"),this.handleFirstDataLoad(this.refreshList())};u.prototype.$onDestroy=function(){this.$window.removeEventListener("scroll",this.onScrollHandler);this.metatagService.clear();this.$timeout.cancel(this.longRunningLoadPromise)};u.prototype.loadMore=function(n){return n.preventDefault(),this.loadMoreItemsAsync()};u.prototype.loadMoreItems=function(){var n=this;return this.loadMoreString=this.timelineCmsData.activityStrings.ariaLabel_loading,this.loadMoreItemsAsync().then(function(t){return n.loadMoreCount+=1,n.$promise.resolve(t)}).finally(function(){n.loadMoreString=""})};u.prototype.loadMoreItemsAsync=function(){var n=this,t;return this.isLoading=!0,this.lastListElement=null,this.isError=!1,t=angular.element(".timeline-endless-list-item",this.$element).length,this.onLoadMoreAsync({state:this.loadMoreState}).then(function(i){return n.loadedMore(i),n.$timeout(function(){var i=angular.element(".timeline-activity-item",n.$element)[t-1];i&&i.focus()}),n.$promise.resolve(i)}).catch(function(t){var i,r;return(n.isError=!0,i=t.jqXHR,i&&i.responseJSON&&i.responseJSON.error==="TooManyRequests")?(n.isError=!1,r={items:[]},n.$promise.resolve(r)):(n.$timeout(function(){var t=angular.element("mee-alert",n.$element);t?t.focus():null}),n.$promise.reject(t))}).finally(function(){n.isLoading=!1})};u.prototype.loadedMore=function(n){n&&n.items.filter(function(n){return n.kind==="date"}).forEach(function(n){n.template="/Areas/Privacy/ScriptsOneUi/Components/Timeline/Templates/date.html"});this.loadMoreState=n&&n.state;this.items=this.items.concat(n&&n.items||[]);this.canLoadMore=!!this.loadMoreState;this.isListEmpty=!this.items.filter(function(n){return!n.__isDeleted}).length&&!this.canLoadMore};u.prototype.refreshList=function(){var n=this;return this.canLoadMore=!0,this.isListEmpty=!0,this.loadMoreCount=0,this.loadingString=this.timelineCmsData.activityStrings.ariaLabel_loading,this.showLongRunningMessage=!1,this.items=[],this.loadMoreState=null,this.longRunningLoadPromise=this.$timeout(this.longRunningLoadTimeoutMsec).then(function(){n.showLongRunningMessage=!0}),this.loadMoreItemsAsync().finally(function(){n.loadingString="";n.$timeout.cancel(n.longRunningLoadPromise)})};u.prototype.loadMoreAfterDelete=function(){this.items.filter(function(n){return!n.__isDeleted}).length<this.minimumDisplayedItems&&this.loadMoreItems()};u.prototype.isBulkDeleteEnabled=function(){return this.selectedCardTypeDetail.cmsKey!==this.cardTypeFilters.AllTypes&&this.impersonationService.getEffectiveUserRights().canManage};u.prototype.getErrorMessage=function(){return this.selectedCardTypeDetail.cmsKey===this.cardTypeFilters.AllTypes?this.timelineCmsData.activityStrings.loadError:this.strings.errorGenericMessage};u.prototype.shouldShowLoadMoreButton=function(){return this.canLoadMore&&this.loadMoreCount>=this.maxLoadMoreCount};u.prototype.removeCardsFromList=function(n){n.forEach(function(n){n.__isDeleted=!0})};u.prototype.removeDatesFromList=function(){var n=this;this.items.forEach(function(t,i){var r,u;if(!t.__isDeleted&&t.kind==="date")for(r=i+1;r<n.items.length;r++){if(u=n.items[r],u.__isDeleted&&r===n.items.length-1){t.__isDeleted=!0;break}else if(u.__isDeleted)continue;if(u.kind==="date"){t.__isDeleted=!0;break}break}});this.isListEmpty=!this.items.filter(function(n){return!n.__isDeleted}).length&&!this.canLoadMore};u.prototype.getItemCssClasses=function(n){var t=this.itemClass;return n.__isDeleting&&(t=t+" deleting"),n.__isDeleted&&(t=t+" deleted"),t=n.kind==="date"?t+" date":t+" timeline-activity-item",t+" "+(n.cardType&&n.cardType.toLowerCase())};u.prototype.getClearAllAriaLabel=function(){return this.selectedCardTypeDetail.clearAllAriaLabel||this.timelineCmsData.activityStrings.ariaLabel_bulkDelete};u.prototype.handleFirstDataLoad=function(n){function r(n){i.metatagService.add("awa-ver","timeline-"+n);i.privacyDataService.setUserContextForBI();i.$scope.$emit(t.eventTimelineLandingFirstLoadComplete)}var u=this,i=this;return n.then(function(n){return r(n.items.length?"has-data":"no-data"),n}).catch(function(){return r("error"),u.$promise.reject()})};u.prototype.getLoadMoreContentName=function(){return this.selectedCardTypeDetail.cmsKey+"-"+this.loadMoreCount};var f;return u.$inject=["areaConfig","$timeout","$element","$scope","$q","componentReliabilityService","$meeUtil","$window","timelineCmsData","privacyDataService","cardTypes","cardTypeFilters","telemetryService","$meeModal","metatagService","impersonationService"],u.RefreshListEvent="refreshEndlessList",u.ItemDeletedEvent="listItemDeleted",u.ItemDeleteBeginEvent="listItemDeleteBegin",u.ItemDeleteEndEvent="listItemDeleteEnd",__decorate([n.OneUI.Angular.MonitorOperationProgress("loadMore")],u.prototype,"loadMoreItems",null),__decorate([n.OneUI.Angular.MonitorOperationProgress("refreshList")],u.prototype,"refreshList",null),f=__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"meeTimelineEndlessList",{bindings:{defaultTemplate:"=",itemClass:"=",strings:"=",onLoadMoreAsync:"&onLoadMore",startBulkDeleteFlow:"&startBulkDeleteFlow",selectedCardTypeDetail:"<"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/TimelineEndlessList/timeline-endless-list.html"})],u)}();t.TimelineEndlessListComponent=u})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r){this.areaConfig=n;this.impersonationService=t;this.$meeUtil=i;this.timelineCmsData=r}return i.prototype.$onInit=function(){var n=this;this.familyPickerMembers=this.getFamilyMembers();this.familyPickerMembers.forEach(function(t){return t.id=n.$meeUtil.nextUid()});this.selectedFamilyMember=this.familyPickerMembers[0]},i.prototype.$onDestroy=function(){this.impersonationService.clearPersona()},i.prototype.newFamilyMemberSelected=function(n){this.selectedFamilyMember=this.familyPickerMembers.filter(function(t){return t.id===n.id})[0];this.selectedFamilyMember===this.getSelf()?this.impersonationService.clearPersona():this.impersonationService.setPersona(this.selectedFamilyMember);this.onSelected()},i.prototype.getFamilyMembers=function(){var n=this.getSelf(),t=this.getKids();return[n].concat(t)},i.prototype.getSelf=function(){if(!this.areaConfig.selfAndKids||!this.areaConfig.selfAndKids.self)throw new Error("The OBO 'self' model is not present.");return this.areaConfig.selfAndKids.self},i.prototype.getKids=function(){if(!this.areaConfig.selfAndKids||!this.areaConfig.selfAndKids.kids)throw new Error("The OBO 'kids' model is not present.");return this.areaConfig.selfAndKids.kids},i.$inject=["areaConfig","impersonationService","$meeUtil","timelineCmsData"],__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeTimelineFamilyPicker",{bindings:{onSelected:"&"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/TimelineFamilyPicker/timeline-family-picker.component.html"})],i)}();t.TimelineFamilyPickerComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=15,r="jpeg",u=56,f=0,e="Road",o=250,s=function(){function s(n,t,i,r,u,f,e){var s=this;this.componentReliabilityService=n;this.$scope=t;this.$timeout=i;this.$element=r;this.$window=u;this.$q=f;this.$meeUtil=e;this.isImageLoadInProgress=!1;this.mapUrlRegex=new RegExp("-?\\d+\\.\\d+,-?\\d+\\.\\d+","g");this.onResizeHandler=this.$meeUtil.debounce(function(){s.resizeMapImage()},o)}return s.prototype.componentOnInit=function(){var t=this,i;return this.bingMapsJsSettings=n.BingMapJsSettings,this.$window.addEventListener("resize",this.onResizeHandler),this.mapLoadErrorHandler=function(){return t.mapLoadError()},this.mapLoadSuccessHandler=function(){return t.mapLoadSuccess()},this.imageElement=this.$element.find("img")[0],this.locationMapElement=this.$element.find(".timeline-location-map")[0],this.imageElement.addEventListener("load",this.mapLoadSuccessHandler),this.imageElement.addEventListener("error",this.mapLoadErrorHandler),i=this.initiateImageLoadPromise(),this.locationMapElement.offsetHeight>0?this.updateMapImage():this.$timeout(function(){t.updateMapImage()}),i},s.prototype.getInstrumentationComponentName=function(){return"privacy.timeline-location-map"},s.prototype.getCustomOperationData=function(){return this.mapImageUrl?{"amcqos-timeline-location-map-url":this.mapImageUrl.replace(this.mapUrlRegex,"REDACTED")}:{}},s.prototype.initiateImageLoadPromise=function(){return this.resolveActivePromiseWhenNewImageLoaded(),this.isImageLoadInProgress=!0,this.deferredImageLoad=this.$q.defer(),this.deferredImageLoad.promise},s.prototype.mapLoadError=function(){this.deferredImageLoad.reject();this.isImageLoadInProgress=!1},s.prototype.mapLoadSuccess=function(){this.deferredImageLoad.resolve();this.isImageLoadInProgress=!1},s.prototype.resolveActivePromiseWhenNewImageLoaded=function(){this.deferredImageLoad&&this.isImageLoadInProgress&&this.deferredImageLoad.resolve()},s.prototype.updateMapImage=function(){var n=this.$element.find(this.locationMapElement),t=n.width(),i=n.height();this.mapImageUrl=this.getMapImageUrl(this.model.location,t,i);this.imageElement.src=this.mapImageUrl},s.prototype.getMapImageUrl=function(n,t,o){var s=n.lat+","+n.long,h=t+","+o;return""+this.bingMapsJsSettings.restAPIUrl+this.bingMapsJsSettings.restStaticMapAPI+e+"/"+s+"/"+i+("?mapSize="+h+"&pushpin="+s+";"+u+"&format="+r+"&mapMetadata="+f+"&key="+this.bingMapsJsSettings.key+"&c="+this.bingMapsJsSettings.locale)},s.prototype.resizeMapImage=function(){var n=this.initiateImageLoadPromise();return this.updateMapImage(),n},s.prototype.$onDestroy=function(){this.resolveActivePromiseWhenNewImageLoaded();this.imageElement.removeEventListener("load",this.mapLoadSuccessHandler);this.imageElement.removeEventListener("error",this.mapLoadErrorHandler);this.$window.removeEventListener("resize",this.onResizeHandler)},s.$inject=["componentReliabilityService","$scope","$timeout","$element","$window","$q","$meeUtil"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("timelineLocationMapResize")],s.prototype,"resizeMapImage",null),__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponent(t.areaModuleName,"meeTimelineLocationMap",{bindings:{model:"<"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/TimelineLocation/timeline-location-map.html"})],s)}();t.TimelineLocationMapComponent=s})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i){this.$scope=n;this.$q=t;this.areaNameLookupService=i;this.areaNameFound=!1}return i.prototype.$onInit=function(){this.determineLocationName()},i.prototype.getInstrumentationComponentName=function(){return"privacy.timeline-location"},i.prototype.getCustomOperationData=function(){return this.areaNameFound?{}:{"amcqos-timeline-lat":this.model.location.lat.toFixed(3),"amcqos-timeline-long":this.model.location.long.toFixed(3),"amcqos-timeline-area-name-not-found":!0}},i.prototype.determineLocationName=function(){var n=this;return this.areaNameLookupService.getAreaName(this.model.location).then(function(t){n.areaName=t||n.areaNameLookupService.formatUnresolvedLocationName(n.model.location);n.areaNameFound=t!=null}).catch(function(t){return n.areaName=n.areaNameLookupService.formatUnresolvedLocationName(n.model.location),n.$q.reject(t)})},i.$inject=["$scope","$q","areaNameLookupService"],__decorate([n.Shared.Angular.ClientReliability.InstrumentedComponentOperation("determineLocationName")],i.prototype,"determineLocationName",null),__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeTimelineLocation",{bindings:{model:"<"},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/TimelineLocation/timeline-location.html"})],i)}();t.TimelineLocationComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}));__decorate=this&&this.__decorate||function(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u},function(n){var t;(function(t){var i;(function(t){var i=function(){function i(n,t,i,r,u,f,e){this.componentReliabilityService=n;this.privacyDataService=t;this.telemetry=i;this.activityCmsData=r;this.$scope=u;this.$timeout=f;this.$promise=e}r=i;i.prototype.$onInit=function(){var n=this;this.playbackState=2;this.isWaitingForAudioToDownload=!1;this.isActiveControl=!1;this.audioElement=this.createAudioWithHandlers();this.$scope.$on(r.StopPlaybackEvent,function(t,i){if(i===n.model.id){n.isActiveControl=!0;return}(n.isActiveControl=!1,n.isBuffering())||n.pauseAudio()})};i.prototype.createAudioWithHandlers=function(){var n=this,t=new Audio;return t.onpause=function(){n.audioElement.error||n.setPlaybackState(2)},t.onended=function(){n.pauseAudio()},t.onplaying=function(){n.playbackOperation&&!n.playbackOperation.isFinished()&&(n.playbackOperation.result=1,n.playbackOperation.__finish());n.setPlaybackState(1)},t.onerror=function(){n.failOperation({err:n.audioElement.error,assetId:n.model.id,msg:"Failed audio"})},t};i.prototype.isBuffering=function(){return this.playbackState===3};i.prototype.isError=function(){return this.playbackState===0};i.prototype.getPlaybackStateAriaLabel=function(){switch(this.playbackState){case 1:return this.activityCmsData.audioPause;case 2:return this.activityCmsData.audioPlay;case 0:return this.activityCmsData.audioError;case 3:return this.activityCmsData.audioBuffer;default:return""}};i.prototype.getPlaybackStateClass=function(){switch(this.playbackState){case 1:return"mee-icon-Pause";case 2:return"mee-icon-Play";case 0:return"mee-icon-Refresh";case 3:return"mee-icon-Play";default:return""}};i.prototype.getDeviceDisplayText=function(n){var t=n.charAt(0).toLowerCase()+n.slice(1);return this.activityCmsData.deviceTranslations[t]||n};i.prototype.togglePlay=function(n){n.preventDefault();this.telemetry.portalBi.reportClick({pageArea:"body",clickId:"privacy-voice-playback"});this.audioControlElement=angular.element(n.target)[0];this.togglePlayImpl()};i.prototype.byteArrayToBlobUrl=function(n,t){t===void 0&&(t="");var i=new Uint8Array(n),r=new Blob([i],{type:t});return URL.createObjectURL(r)};i.prototype.togglePlayImpl=function(){this.$scope.$root.$broadcast(r.StopPlaybackEvent,this.model.id);this.audioElement.src&&!this.audioElement.error?this.audioElement.paused?this.playAudio():this.pauseAudio():(this.audioElement.src||this.audioElement.play(),this.requestAudioToPlayAsync())};i.prototype.requestAudioToPlayAsync=function(){var n=this;this.playbackOperation||(this.playbackOperation=this.componentReliabilityService.trackComponentOperation(r.PlaybackComponentOperation,r.PlaybackComponentOperationTimeout));this.isWaitingForAudioToDownload||(this.isWaitingForAudioToDownload=!0,this.isActiveControl||this.$scope.$root.$broadcast(r.StopPlaybackEvent,this.model.id),this.setPlaybackState(3),this.privacyDataService.getVoiceCardAudioAsync(this.model.id).then(function(t){try{var i=n.byteArrayToBlobUrl(t.data.audio,r.AudioBlobContentType);n.audioElement.src=i;n.playAudio();n.audioElement.paused&&(n.failOperation("Failed to successfully play valid audio."),n.setPlaybackState(2))}catch(u){n.failOperation({err:u,assetId:n.model.id,msg:"Failed to parse / play"})}}).catch(function(){n.failOperation("Failed to retrieve audio.")}).finally(function(){n.isWaitingForAudioToDownload=!1}))};i.prototype.failOperation=function(n){this.playbackOperation&&!this.playbackOperation.isFinished()&&(this.playbackOperation.customData=n,this.playbackOperation.result=2,this.playbackOperation.__finish());this.setPlaybackState(0)};i.prototype.setPlaybackState=function(n){var t=this;if(n===0&&!this.isActiveControl){this.setPlaybackState(2);return}this.$timeout().then(function(){t.playbackState=n;t.audioControlElement&&t.isActiveControl&&t.audioControlElement.focus()})};i.prototype.playAudio=function(){this.isActiveControl?this.audioElement.play():this.pauseAudio(!0)};i.prototype.pauseAudio=function(n){if(this.audioElement.pause(),n)this.audioElement.onpause(null)};var r;return i.$inject=["componentReliabilityService","privacyDataService","telemetryService","voiceActivityCmsData","$scope","$timeout","$q"],i.StopPlaybackEvent="StopAudioPlayback",i.PlaybackComponentOperation="privacy.audio-playback",i.PlaybackComponentOperationTimeout=1e4,i.AudioBlobContentType="audio/x-m4a",r=__decorate([n.Shared.Angular.Decorators.Component(t.areaModuleName,"meeTimelineAudioPlaybackControls",{bindings:{model:"=",strings:"="},templateUrl:"/Areas/Privacy/ScriptsOneUi/Components/Timeline/TimelineVoice/timeline-audio-playback-controls.html"})],i)}();t.TimelineAudioPlaybackControlsComponent=i})(i=t.OneUi||(t.OneUi={}))})(t=n.Privacy||(n.Privacy={}))}(MeePortal||(MeePortal={}))