'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-d685a739.js');
const Option = require('./Option-98dab0b8.js');
const eventTracking_service = require('./event-tracking.service-fcc820f1.js');
require('./api-client-00edc9b6.js');
require('./index-4f00f593.js');
require('./index-889ce6c6.js');
require('./datorama-akita-bb801820.js');
require('./scheduleArray-0ba3d6f8.js');
require('./delay-e91dba76.js');
require('./filter-c38164e6.js');

const ManagedBenefitList = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    if (!this.benefits) {
      return undefined;
    }
    return (index.h("div", { class: "list-group" }, this.benefits.map((b) => (index.h("ap-ben-benefit-list-item", { class: "list-group-item px-4 py-2", benefitWithId: b })))));
  }
};

const heroBannerCss = "ap-ben-hero-banner .card.fl-card-background{background-color:#febd55}ap-ben-hero-banner .fl-logo-container{-o-object-fit:contain;object-fit:contain;position:absolute;left:0}";

const HeroBanner = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.shopifyUrl = Option.Option.none;
  }
  render() {
    return (index.h("div", { class: "card fl-card-background border-0 mb-4 py-0" }, index.h("a", { target: "_blank", rel: "noopener noreferrer", href: Option.Option.toUndefined(this.shopifyUrl), class: "text-reset text-decoration-none", onClick: (_) => eventTracking_service.benefitsEventTrackingService.trackPageViewedAsync({ pageId: 'discounts' }) }, index.h("div", { class: "card-body p-0" }, index.h("div", { class: "row m-0" }, index.h("div", { class: "col-12 col-lg-6 col-xl-7 px-3" }, index.h("div", { class: "pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0" }, index.h("h1", { class: "font-weight-bold my-4" }, "Access exclusive discounts and vouchers."), index.h("p", { class: "mb-4" }, "Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."), index.h("a", { target: "_blank", rel: "noopener noreferrer", class: "btn btn-light bg-white mb-4 px-3 py-2" }, index.h("h6", { class: "m-0" }, "Browse discounts")))), index.h("div", { class: "col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded" }, index.h("img", { src: index.getAssetPath('./assets/Hero_Background.png'), class: "fl-logo-container h-100" })))))));
  }
  static get assetsDirs() { return ["assets"]; }
};
HeroBanner.style = heroBannerCss;

const PromotedBenefits = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    if (!this.benefits) {
      return undefined;
    }
    return (index.h("div", { class: "list-group list-group-horizontal-md mb-4" }, this.benefits.map((benefit) => (index.h("a", { href: "#", class: "list-group-item list-group-item-action p-4" }, index.h("ap-ben-benefit-card", { key: benefit.benefitId, benefitWithId: benefit }))))));
  }
};

exports.ap_ben_benefits_list = ManagedBenefitList;
exports.ap_ben_hero_banner = HeroBanner;
exports.ap_ben_promoted_benefits = PromotedBenefits;
