var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function c(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):r(t.value).then(c,s)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(t){return function(e){return u([t,e])}}function u(c){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=c[0]&2?r["return"]:c[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;if(r=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;r=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1];o=c;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(c);break}if(o[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];r=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-6c8594d0.system.js","./p-63ad215f.system.js","./p-45d6fbc2.system.js","./p-9a8c9350.system.js","./p-0045ce79.system.js","./p-19b00569.system.js","./p-6efcc4fd.system.js","./p-0eebae53.system.js","./p-d19c8a5d.system.js"],(function(t){"use strict";var e,n,i;return{setters:[function(t){e=t.r;n=t.h},function(t){i=t.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var r="ap-ben-benefit-card .fl-card-logo.img-fluid{height:1.25rem}";var o=t("ap_ben_benefit_card",function(){function t(t){var n=this;e(this,t);this.onBenefitButtonClick=function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){t.preventDefault();if(this.benefit.url===null)return[2];window.open(this.benefit.url,"_blank");i.trackBenefitLinkClickedAsync(this.benefitWithId);return[2]}))}))}}t.prototype.render=function(){var t=this;return n("div",{class:"row h-100 d-flex justify-content-between no-gutters",onClick:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.onBenefitButtonClick(e)]}))}))}},n("div",{class:"col-9 col-md-12 col-lg-10 text-left"},n("h5",{class:"card-title mb-1"},this.benefit.title),n("h6",{class:"benefit-value-description"},this.benefit.subtitle),n("small",{class:"card-text text-muted text-uppercase"},this.benefit.description)),n("div",{class:"col-2 col-md-12 col-lg-2 d-flex justify-content-end align-items-center"},this.IconElement()))};Object.defineProperty(t.prototype,"benefit",{get:function(){return this.benefitWithId.benefit},enumerable:false,configurable:true});t.prototype.IconElement=function(){var t;if(this.benefit.icon!==null){return n("img",{class:"img-fluid",src:(t=this.benefit.icon)===null||t===void 0?void 0:t.downloadUrl,alt:""})}else{return n("ap-ben-icon",{class:"text-black-50 fa-3x",iconPrefix:"fad",iconId:"award"})}};return t}());o.style=r}}}));