System.register(["./p-6c8594d0.system.js","./p-9a8c9350.system.js","./p-835322bf.system.js","./p-348f3d3c.system.js"],(function(e){"use strict";var t,n,r,i,a,u,s;return{setters:[function(e){t=e.h},function(e){n=e.b;r=e.n;i=e.m;a=e.i},function(e){u=e._},function(e){s=e.i}],execute:function(){var o=e("M","manage");var c=e("A","manage/add");var f=e("E","manage/edit");var l="admin";var h=e("r",(function(e,r){var i=[t("stencil-route",{url:r+"/"+c,routeRender:function(e){return t("ap-ben-edit-benefit-page",null)},exact:true}),t("stencil-route",{url:r+"/"+f+"/:benefitId",routeRender:function(e){return t("ap-ben-edit-benefit-page",{benefitId:n(e.match.params["benefitId"])})},exact:true}),t("stencil-route",{url:r+"/"+o+"/:match?",routeRender:function(e){return t("ap-ben-manage-page",Object.assign({},e))}})];var a=[t("stencil-route",{url:r+"/"+l,routeRender:function(e){return t("ap-ben-role-management-page",null)},exact:true})];switch(e){case"accountAdmin":return i.concat(a);case"accountEditor":return i;default:return[]}}));var p=function(){function e(){this._baseUrl=r;this._history=r}e.prototype.navigateInternally=function(e){var t=""+this.baseUrl+this.toRouteWithLeadingSlash(e);s.navigation(t);this.history.value.push(t)};e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};Object.defineProperty(e.prototype,"baseUrl",{get:function(){if(a(this._baseUrl)){throw Error("Base URL is missing.")}return this._baseUrl.value},set:function(e){this._baseUrl=u.pipe(n(e),i((function(e){return e.replace(/\/$/,"")})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"history",{get:function(){if(a(this._history)){throw Error("Router history is missing.")}return this._history},set:function(e){this._history=e},enumerable:false,configurable:true});return e}();var b=e("n",new p)}}}));