@flarehr/cars-calculator 2.12.327 → 2.12.328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/cars-calculator/cars-calculator.esm.js +1 -1
- package/dist/lib/cars-calculator/{p-bb1a63d9.entry.js → p-19553611.entry.js} +1 -1
- package/dist/lib/cars-calculator/p-1f02b90d.system.js +1 -1
- package/dist/lib/cars-calculator/p-3d51b0e4.entry.js +1 -0
- package/dist/lib/cars-calculator/{p-7043f370.entry.js → p-42c2908b.entry.js} +1 -1
- package/dist/lib/cars-calculator/p-603fb7eb.system.entry.js +1 -0
- package/dist/lib/cars-calculator/{p-1e1d2d06.system.entry.js → p-6cf67c2a.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-9c04625b.system.entry.js → p-93169a67.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-5e93d832.entry.js → p-ac876b4a.entry.js} +1 -1
- package/dist/lib/cars-calculator/p-bdb992a9.system.entry.js +1 -0
- package/dist/lib/cars-calculator/{p-345ea211.system.entry.js → p-d40f43c4.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/p-d54987a3.js +1 -0
- package/dist/lib/cars-calculator/{p-63ad215f.system.js → p-d99bf636.system.js} +1 -1
- package/dist/lib/cars-calculator/p-e62ddd59.entry.js +1 -0
- package/dist/lib/cjs/ap-ben-benefit-card.cjs.entry.js +1 -1
- package/dist/lib/cjs/ap-ben-benefit-list-item.cjs.entry.js +1 -1
- package/dist/lib/cjs/ap-ben-benefits-list_3.cjs.entry.js +2 -2
- package/dist/lib/cjs/ap-ben-benefits-page.cjs.entry.js +2 -2
- package/dist/lib/cjs/ap-ben-loading-page_2.cjs.entry.js +1 -1
- package/dist/lib/cjs/{event-tracking.service-fcc820f1.js → event-tracking.service-5aa0bdae.js} +3 -0
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-page.js +1 -1
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.js +1 -1
- package/dist/lib/collection/components/benefits-app/services/event-tracking.service.js +3 -0
- package/dist/lib/esm/ap-ben-benefit-card.entry.js +1 -1
- package/dist/lib/esm/ap-ben-benefit-list-item.entry.js +1 -1
- package/dist/lib/esm/ap-ben-benefits-list_3.entry.js +2 -2
- package/dist/lib/esm/ap-ben-benefits-page.entry.js +2 -2
- package/dist/lib/esm/ap-ben-loading-page_2.entry.js +1 -1
- package/dist/lib/esm/{event-tracking.service-8d44e7ac.js → event-tracking.service-4d5f3c3f.js} +3 -0
- package/dist/lib/esm-es5/ap-ben-benefit-card.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefit-list-item.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefits-list_3.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefits-page.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-loading-page_2.entry.js +1 -1
- package/dist/lib/esm-es5/{event-tracking.service-8d44e7ac.js → event-tracking.service-4d5f3c3f.js} +1 -1
- package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.d.ts +1 -1
- package/dist/lib/types/components/benefits-app/services/event-tracking.service.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/cars-calculator/p-1339616c.entry.js +0 -1
- package/dist/lib/cars-calculator/p-331e2504.entry.js +0 -1
- package/dist/lib/cars-calculator/p-526d50cb.system.entry.js +0 -1
- package/dist/lib/cars-calculator/p-d14b00d9.js +0 -1
- package/dist/lib/cars-calculator/p-e680c289.system.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-5a1dd786.js";import{g as t}from"./p-c3b6466e.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-3d1bbc52",[[0,"benefits-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32]}]]],["p-
|
|
1
|
+
import{p as e,b as i}from"./p-5a1dd786.js";import{g as t}from"./p-c3b6466e.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-3d1bbc52",[[0,"benefits-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32]}]]],["p-3d51b0e4",[[0,"ap-ben-benefits-page",{state:[32],shopifyUrl:[32]}]]],["p-db5e986e",[[1,"fl-style-guide",{themeCssUrl:[1,"theme-css-url"]}]]],["p-e4dfa486",[[0,"ap-ben-notifications-section"]]],["p-3fbd93d4",[[0,"ap-ben-oidc-callback-page",{history:[16],callbackMode:[1,"callback-mode"]}]]],["p-b3dba968",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-db2f0d84",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-0e61df11",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-25fef619",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-703464e6",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-432ab22b",[[0,"fl-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]]]],["p-09dc6da3",[[0,"ap-ben-icon",{iconPrefix:[1,"icon-prefix"],iconId:[1,"icon-id"],spin:[4]}]]],["p-ac876b4a",[[0,"ap-ben-benefit-card",{benefitWithId:[16]}]]],["p-42c2908b",[[0,"ap-ben-benefit-list-item",{benefitWithId:[16]}]]],["p-e62ddd59",[[0,"ap-ben-benefits-list",{benefits:[16]}],[0,"ap-ben-promoted-benefits",{benefits:[16]}],[0,"ap-ben-hero-banner",{shopifyUrl:[16]}]]],["p-61011f19",[[1,"cars-calculator-app",{isPaidCampaign:[4,"is-paid-campaign"],apiBaseUrl:[1,"api-base-url"],profileId:[1,"profile-id"],areStylesLoaded:[32],isModelSelected:[32],isVariantSelected:[32],isQuoteCalculated:[32]}],[0,"ap-ben-quote-result-section",{quote:[32],showPersonalDetailsModal:[32],showBreakdownModal:[32],showCompletePage:[32],showResultQuoteModal:[32]}],[0,"ap-ben-model-variants-section",{variantsList:[32],selectedVariant:[32]}],[0,"ap-ben-choose-vehicle-section",{makeList:[32],modelList:[32],yearList:[32],bodyTypeList:[32],vehicleInfo:[32]}],[0,"ap-ben-personal-info-section",{userInfo:[32]}],[0,"ap-ben-quote-card-section",{isResultQuoteModal:[4,"is-result-quote-modal"],isPaidCampaign:[4,"is-paid-campaign"],quote:[16]}],[0,"ap-ben-submit-quote-section",{userDetails:[32],formState:[32]}],[0,"ap-ben-complete-section"],[0,"ap-ben-cost-breakdown-section",{quote:[16]}],[0,"ap-ben-asset",{image:[1]}],[0,"ap-ben-disclaimer"],[4,"ap-ben-tooltip",{target:[16],placement:[1],isVisible:[32]}],[0,"fl-dropdown",{placeholder:[1],options:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[4,"ap-ben-modal-section",{show:[8],modalTitle:[8,"modal-title"],showFooter:[4,"show-footer"],showHeader:[4,"show-header"]}],[4,"fl-promise-button",{isBlockElement:[4,"is-block-element"],isRounded:[4,"is-rounded"],disabled:[4],variant:[1],promiseFn:[16],state:[32]}],[0,"fl-loading-indicator",{theme:[1]}],[4,"fl-button",{isBlockElement:[4,"is-block-element"],disabled:[4],variant:[1],outline:[4]}]]],["p-49b3e7c7",[[0,"ap-ben-role-editors-section",{editorProfiles:[32],isEmailValid:[32],displayInvalidEmailError:[32],emailNotExist:[32],isLoading:[32]}],[0,"ap-ben-role-owner-section",{owner:[16]}],[4,"ap-ben-confirm-dialog",{titleText:[1,"title-text"],acceptText:[1,"accept-text"],declineText:[1,"decline-text"],dialogStyle:[1,"dialog-style"]}],[4,"ap-ben-ui-container",{isAppInitialised:[32]}]]],["p-e01b16ca",[[0,"ap-ben-role-management-page",{showRemoveConfirmDialog:[32],user:[32]}],[0,"ap-ben-edit-benefit-form",{isValidationDisplayed:[4,"is-validation-displayed"],disabled:[4],draftBenefit:[32]}],[0,"ap-ben-managed-benefit-item",{benefit:[16]}],[0,"ap-ben-empty-benefits"],[0,"ap-ben-upload-file",{uploadedFile:[32],uploadFileState:[32],isUploadError:[32]}],[0,"ap-ben-benefit-url",{benefitUrl:[32],uiState:[32],inputState:[32]}],[0,"ap-ben-upload-benefit-icon",{customIcon:[32],uploadIconState:[32]}],[0,"ap-ben-manage-benefits-header-row"],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}],[0,"ap-ben-file-icon",{fileType:[1,"file-type"],isEmpty:[4,"is-empty"]}]]],["p-660badab",[[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"ap-ben-edit-benefit-page",{benefitId:[16],editMode:[32],selectedBenefit:[32],draftBenefit:[32],showDeleteConfirmDialog:[32],showCancelConfirmDialog:[32],isLoading:[32],isValidationDisplayed:[32]}],[0,"ap-ben-manage-page",{showDisabledBenefits:[32],pageState:[32],isLoading:[32]}]]],["p-19553611",[[1,"benefits-app",{jwt:[1],apiBaseUrl:[1,"api-base-url"],appBaseUrl:[1,"app-base-url"],location:[16],history:[16],areStylesLoaded:[32],user:[32],signedInUserRole:[32]}],[0,"ap-ben-loading-page"]]]],e))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,h as a,H as l}from"./p-5a1dd786.js";import{A as h}from"./p-65763100.js";import{O as f}from"./p-556fdb43.js";import{a as i}from"./p-7ad92407.js";import{l as e}from"./p-81310448.js";import{B as z,b as v,a as m}from"./p-7062880e.js";import{n as o,r as n}from"./p-1bf0512a.js";import{b as r}from"./p-
|
|
1
|
+
import{r as c,h as a,H as l}from"./p-5a1dd786.js";import{A as h}from"./p-65763100.js";import{O as f}from"./p-556fdb43.js";import{a as i}from"./p-7ad92407.js";import{l as e}from"./p-81310448.js";import{B as z,b as v,a as m}from"./p-7062880e.js";import{n as o,r as n}from"./p-1bf0512a.js";import{b as r}from"./p-d54987a3.js";import{b as M}from"./p-ab3a7737.js";import{a as H}from"./p-ea120e31.js";import"./p-2c9dd7c4.js";import"./p-f3effa5d.js";import"./p-054d1471.js";import"./p-f63d9d89.js";import"./p-fdc8ec5f.js";const s=class{constructor(a){c(this,a)}render(){return a(l,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1 mt-5"},a("h5",null,"Loading Benefits"),a("fl-loading-indicator",null))}};function V(c){this.message=c}(V.prototype=new Error).name="InvalidCharacterError";var L="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(c){var a=String(c).replace(/=+$/,"");if(a.length%4==1)throw new V("'atob' failed: The string to be decoded is not correctly encoded.");for(var l,h,f=0,i=0,e="";h=a.charAt(i++);~h&&(l=f%4?64*l+h:h,f++%4)?e+=String.fromCharCode(255&l>>(-2*f&6)):0)h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(h);return e};function C(c){var a=c.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return function(c){return decodeURIComponent(L(c).replace(/(.)/g,(function(c,a){var l=a.charCodeAt(0).toString(16).toUpperCase();return l.length<2&&(l="0"+l),"%"+l})))}(a)}catch(c){return L(a)}}function p(c){this.message=c}(p.prototype=new Error).name="InvalidTokenError";
|
|
2
2
|
/*!
|
|
3
3
|
* Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
|
|
4
4
|
* License - https://fontawesome.com/license (Commercial License)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-8a3fa951.system.js","./p-bdb3fb61.system.js","./p-19b00569.system.js","./p-6efcc4fd.system.js","./p-0eebae53.system.js","./p-d19c8a5d.system.js"],(function(e,t){"use strict";var i,a,s;return{setters:[function(e){i=e.p;a=e.b},function(e){s=e.g},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){var e=t.meta.url;var a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return i(a)};e().then((function(e){s();return a([["p-9f2b435c.system",[[0,"benefits-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32]}]]],["p-
|
|
1
|
+
System.register(["./p-8a3fa951.system.js","./p-bdb3fb61.system.js","./p-19b00569.system.js","./p-6efcc4fd.system.js","./p-0eebae53.system.js","./p-d19c8a5d.system.js"],(function(e,t){"use strict";var i,a,s;return{setters:[function(e){i=e.p;a=e.b},function(e){s=e.g},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){var e=t.meta.url;var a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return i(a)};e().then((function(e){s();return a([["p-9f2b435c.system",[[0,"benefits-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32]}]]],["p-bdb992a9.system",[[0,"ap-ben-benefits-page",{state:[32],shopifyUrl:[32]}]]],["p-1949e248.system",[[1,"fl-style-guide",{themeCssUrl:[1,"theme-css-url"]}]]],["p-44217678.system",[[0,"ap-ben-notifications-section"]]],["p-752cda07.system",[[0,"ap-ben-oidc-callback-page",{history:[16],callbackMode:[1,"callback-mode"]}]]],["p-bac02f69.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-089f799f.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-b5b9fbb9.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-427cd00b.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-af99b02b.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-63d2e0d2.system",[[0,"fl-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]]]],["p-6fa886b4.system",[[0,"ap-ben-icon",{iconPrefix:[1,"icon-prefix"],iconId:[1,"icon-id"],spin:[4]}]]],["p-d40f43c4.system",[[0,"ap-ben-benefit-card",{benefitWithId:[16]}]]],["p-6cf67c2a.system",[[0,"ap-ben-benefit-list-item",{benefitWithId:[16]}]]],["p-603fb7eb.system",[[0,"ap-ben-benefits-list",{benefits:[16]}],[0,"ap-ben-promoted-benefits",{benefits:[16]}],[0,"ap-ben-hero-banner",{shopifyUrl:[16]}]]],["p-c6eb9031.system",[[1,"cars-calculator-app",{isPaidCampaign:[4,"is-paid-campaign"],apiBaseUrl:[1,"api-base-url"],profileId:[1,"profile-id"],areStylesLoaded:[32],isModelSelected:[32],isVariantSelected:[32],isQuoteCalculated:[32]}],[0,"ap-ben-quote-result-section",{quote:[32],showPersonalDetailsModal:[32],showBreakdownModal:[32],showCompletePage:[32],showResultQuoteModal:[32]}],[0,"ap-ben-model-variants-section",{variantsList:[32],selectedVariant:[32]}],[0,"ap-ben-choose-vehicle-section",{makeList:[32],modelList:[32],yearList:[32],bodyTypeList:[32],vehicleInfo:[32]}],[0,"ap-ben-personal-info-section",{userInfo:[32]}],[0,"ap-ben-quote-card-section",{isResultQuoteModal:[4,"is-result-quote-modal"],isPaidCampaign:[4,"is-paid-campaign"],quote:[16]}],[0,"ap-ben-submit-quote-section",{userDetails:[32],formState:[32]}],[0,"ap-ben-complete-section"],[0,"ap-ben-cost-breakdown-section",{quote:[16]}],[0,"ap-ben-asset",{image:[1]}],[0,"ap-ben-disclaimer"],[4,"ap-ben-tooltip",{target:[16],placement:[1],isVisible:[32]}],[0,"fl-dropdown",{placeholder:[1],options:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[4,"ap-ben-modal-section",{show:[8],modalTitle:[8,"modal-title"],showFooter:[4,"show-footer"],showHeader:[4,"show-header"]}],[4,"fl-promise-button",{isBlockElement:[4,"is-block-element"],isRounded:[4,"is-rounded"],disabled:[4],variant:[1],promiseFn:[16],state:[32]}],[0,"fl-loading-indicator",{theme:[1]}],[4,"fl-button",{isBlockElement:[4,"is-block-element"],disabled:[4],variant:[1],outline:[4]}]]],["p-80805870.system",[[0,"ap-ben-role-editors-section",{editorProfiles:[32],isEmailValid:[32],displayInvalidEmailError:[32],emailNotExist:[32],isLoading:[32]}],[0,"ap-ben-role-owner-section",{owner:[16]}],[4,"ap-ben-confirm-dialog",{titleText:[1,"title-text"],acceptText:[1,"accept-text"],declineText:[1,"decline-text"],dialogStyle:[1,"dialog-style"]}],[4,"ap-ben-ui-container",{isAppInitialised:[32]}]]],["p-ae02f29f.system",[[0,"ap-ben-role-management-page",{showRemoveConfirmDialog:[32],user:[32]}],[0,"ap-ben-edit-benefit-form",{isValidationDisplayed:[4,"is-validation-displayed"],disabled:[4],draftBenefit:[32]}],[0,"ap-ben-managed-benefit-item",{benefit:[16]}],[0,"ap-ben-empty-benefits"],[0,"ap-ben-upload-file",{uploadedFile:[32],uploadFileState:[32],isUploadError:[32]}],[0,"ap-ben-benefit-url",{benefitUrl:[32],uiState:[32],inputState:[32]}],[0,"ap-ben-upload-benefit-icon",{customIcon:[32],uploadIconState:[32]}],[0,"ap-ben-manage-benefits-header-row"],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}],[0,"ap-ben-file-icon",{fileType:[1,"file-type"],isEmpty:[4,"is-empty"]}]]],["p-fe672d96.system",[[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"ap-ben-edit-benefit-page",{benefitId:[16],editMode:[32],selectedBenefit:[32],draftBenefit:[32],showDeleteConfirmDialog:[32],showCancelConfirmDialog:[32],isLoading:[32],isValidationDisplayed:[32]}],[0,"ap-ben-manage-page",{showDisabledBenefits:[32],pageState:[32],isLoading:[32]}]]],["p-93169a67.system",[[1,"benefits-app",{jwt:[1],apiBaseUrl:[1,"api-base-url"],appBaseUrl:[1,"app-base-url"],location:[16],history:[16],areStylesLoaded:[32],user:[32],signedInUserRole:[32]}],[0,"ap-ben-loading-page"]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as a,H as i}from"./p-5a1dd786.js";import{b as t,n as e,c as o,s as n}from"./p-2c9dd7c4.js";import{b as r}from"./p-bf086b51.js";import{b as p}from"./p-d54987a3.js";import"./p-7062880e.js";import"./p-7ad92407.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";const c=new class{async getViewPageState(){return r.getBenefitsAsync()}async getShopifyUrl(){return t((await r.getShopifyUrl()).redirectUrl)}},d=class{constructor(a){s(this,a),this.urlRefreshHandle=e,this.state=void 0,this.shopifyUrl=e}async componentWillLoad(){this.state=await c.getViewPageState()}async componentDidLoad(){this.shopifyUrl=await c.getShopifyUrl(),this.setupShopifyUrlRefresh(),await p.trackBenefitsOpenedAsync()}disconnectedCallback(){o(this.urlRefreshHandle)&&window.clearInterval(this.urlRefreshHandle.value)}render(){return a(i,{class:"w-100 mb-4"},a("ap-ben-ui-container",{class:"mt-4 d-none"},a("div",{class:"row"},a("div",{class:"col-12"},a("ap-ben-hero-banner",{shopifyUrl:this.shopifyUrl}))),a("div",{class:"row"},a("div",{class:"col-12"},a("ap-ben-promoted-benefits",{benefits:this.state.promotedBenefits}))),a("div",{class:"row"},a("div",{class:"col-12"},a("ap-ben-benefits-list",{benefits:this.state.availableBenefits})))))}setupShopifyUrlRefresh(){this.urlRefreshHandle=n(window.setInterval((async()=>{this.shopifyUrl=await c.getShopifyUrl()}),12e4))}};export{d as ap_ben_benefits_page}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-5a1dd786.js";import{b as e}from"./p-
|
|
1
|
+
import{r as t,h as i}from"./p-5a1dd786.js";import{b as e}from"./p-d54987a3.js";import"./p-7062880e.js";import"./p-2c9dd7c4.js";import"./p-7ad92407.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";const s=class{constructor(i){t(this,i),this.onBenefitButtonClick=async()=>{null!==this.benefit.url&&(window.open(this.benefit.url,"_blank"),await e.trackBenefitLinkClickedAsync(this.benefitWithId))},this.benefitWithId=void 0}render(){return i("div",{class:"uiid-view-benefit-item-exist row align-items-top py-3 mx-0"},i("div",{class:"col-4 col-md-2 col-lg-1 px-0"},i("div",{class:"ml-0 my-lg-3 my-sm-2 my-xs-2 mr-3"},this.IconElement())),i("div",{class:"col-12 col-lg-8 text-left px-lg-2 px-0 pt-lg-0 pt-3"},i("h4",{class:"card-title mb-1 text-break"},this.benefit.title),i("span",{class:"benefit-value-description text-break"},this.benefit.subtitle),this.benefit.subtitle&&" - ",i("span",{class:"text-muted"},this.benefit.category),i("p",{class:"mb-0 pt-lg-3 pt-4 text-break"},this.benefit.description)),i("div",{class:"col-12 col-lg-3 px-0 d-flex justify-content-end align-items-start"},this.openAttachmentButton(),this.learnMoreButton()))}get benefit(){return this.benefitWithId.benefit}learnMoreButton(){if(null!==this.benefit.url&&""!==this.benefit.url)return i("button",{type:"button",class:"uiid-validate-benefit-url-exist d-block d-lg-inline-block btn btn-light px-4 py-2 ml-2",onClick:async()=>this.onBenefitButtonClick()},"Learn more")}openAttachmentButton(){var t;if(null!==this.benefit.attachments&&0!==(null===(t=this.benefit.attachments)||void 0===t?void 0:t.length))return i("a",{class:"uiid-validate-benefit-doc-exist d-block d-lg-inline-block btn btn-light px-4 py-2",target:"_blank",href:this.benefit.attachments[0].downloadUrl,onClick:()=>e.trackBenefitAttachmentClickedAsync(this.benefitWithId)},i("span",null,"View"))}IconElement(){return null!==this.benefit.icon?i("img",{src:this.benefit.icon.downloadUrl,class:"img-responsive benefit-image",alt:"benefit-icon"}):i("ap-ben-icon",{class:"text-black-50 fa-3x",iconPrefix:"fad",iconId:"award"})}};s.style="ap-ben-benefit-list-item .btn.btn-success{background-color:#27a88a;border-color:#27a88a}ap-ben-benefit-list-item .btn.btn-success:hover{background-color:#23967b;border-color:#23967b}ap-ben-benefit-list-item .btn.btn-success:not(:disabled):not(.disabled):active{background-color:#23967b;border-color:#23967b}@media (max-width: 575.98px){ap-ben-benefit-list-item .btn.btn-success{display:block;width:100%}}ap-ben-benefit-list-item .benefit-image{-o-object-fit:cover;object-fit:cover;width:100%;max-width:4rem}";export{s as ap_ben_benefit_list_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-8a3fa951.system.js","./p-835322bf.system.js","./p-d99bf636.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(e){"use strict";var n,t,s,i,r;return{setters:[function(e){n=e.r;t=e.h;s=e.g},function(e){i=e.O},function(e){r=e.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var o=e("ap_ben_benefits_list",function(){function e(e){n(this,e);this.benefits=undefined}e.prototype.render=function(){if(!this.benefits){return undefined}return t("div",{class:"list-group"},this.benefits.map((function(e){return t("ap-ben-benefit-list-item",{class:"list-group-item px-4 py-2",benefitWithId:e})})))};return e}());var c="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}";var a=e("ap_ben_hero_banner",function(){function e(e){n(this,e);this.shopifyUrl=i.none}e.prototype.render=function(){return t("div",{class:"card fl-card-background border-0 mb-4 py-0"},t("a",{target:"_blank",rel:"noopener noreferrer",href:i.toUndefined(this.shopifyUrl),class:"text-reset text-decoration-none",onClick:function(e){return r.trackBenefitsOpenedAsync()}},t("div",{class:"card-body p-0"},t("div",{class:"row m-0"},t("div",{class:"col-12 col-lg-6 col-xl-7 px-3"},t("div",{class:"pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0"},t("h1",{class:"font-weight-bold my-4"},"Access exclusive discounts and vouchers."),t("p",{class:"mb-4"},"Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."),t("a",{target:"_blank",rel:"noopener noreferrer",class:"btn btn-light bg-white mb-4 px-3 py-2"},t("h6",{class:"m-0"},"Browse discounts")))),t("div",{class:"col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded"},t("img",{src:s("./assets/Hero_Background.png"),class:"fl-logo-container h-100"}))))))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());a.style=c;var f=e("ap_ben_promoted_benefits",function(){function e(e){n(this,e);this.benefits=undefined}e.prototype.render=function(){if(!this.benefits){return undefined}return t("div",{class:"list-group list-group-horizontal-md mb-4"},this.benefits.map((function(e){return t("a",{href:"#",class:"list-group-item list-group-item-action p-4"},t("ap-ben-benefit-card",{key:e.benefitId,benefitWithId:e}))})))};return e}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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 s(t){try{a(i.next(t))}catch(t){o(t)}}function c(t){try{a(i["throw"](t))}catch(t){o(t)}}function a(t){t.done?n(t.value):r(t.value).then(s,c)}a((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,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(t){return function(e){return a([t,e])}}function a(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];r=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-8a3fa951.system.js","./p-
|
|
1
|
+
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 s(t){try{a(i.next(t))}catch(t){o(t)}}function c(t){try{a(i["throw"](t))}catch(t){o(t)}}function a(t){t.done?n(t.value):r(t.value).then(s,c)}a((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,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(t){return function(e){return a([t,e])}}function a(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];r=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-8a3fa951.system.js","./p-d99bf636.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-list-item .btn.btn-success{background-color:#27a88a;border-color:#27a88a}ap-ben-benefit-list-item .btn.btn-success:hover{background-color:#23967b;border-color:#23967b}ap-ben-benefit-list-item .btn.btn-success:not(:disabled):not(.disabled):active{background-color:#23967b;border-color:#23967b}@media (max-width: 575.98px){ap-ben-benefit-list-item .btn.btn-success{display:block;width:100%}}ap-ben-benefit-list-item .benefit-image{-o-object-fit:cover;object-fit:cover;width:100%;max-width:4rem}";var o=t("ap_ben_benefit_list_item",function(){function t(t){var n=this;e(this,t);this.onBenefitButtonClick=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(this.benefit.url===null)return[2];window.open(this.benefit.url,"_blank");return[4,i.trackBenefitLinkClickedAsync(this.benefitWithId)];case 1:t.sent();return[2]}}))}))};this.benefitWithId=undefined}t.prototype.render=function(){return n("div",{class:"uiid-view-benefit-item-exist row align-items-top py-3 mx-0"},n("div",{class:"col-4 col-md-2 col-lg-1 px-0"},n("div",{class:"ml-0 my-lg-3 my-sm-2 my-xs-2 mr-3"},this.IconElement())),n("div",{class:"col-12 col-lg-8 text-left px-lg-2 px-0 pt-lg-0 pt-3"},n("h4",{class:"card-title mb-1 text-break"},this.benefit.title),n("span",{class:"benefit-value-description text-break"},this.benefit.subtitle),this.benefit.subtitle&&" - ",n("span",{class:"text-muted"},this.benefit.category),n("p",{class:"mb-0 pt-lg-3 pt-4 text-break"},this.benefit.description)),n("div",{class:"col-12 col-lg-3 px-0 d-flex justify-content-end align-items-start"},this.openAttachmentButton(),this.learnMoreButton()))};Object.defineProperty(t.prototype,"benefit",{get:function(){return this.benefitWithId.benefit},enumerable:false,configurable:true});t.prototype.learnMoreButton=function(){var t=this;if(this.benefit.url===null||this.benefit.url===""){return undefined}return n("button",{type:"button",class:"uiid-validate-benefit-url-exist d-block d-lg-inline-block btn btn-light px-4 py-2 ml-2",onClick:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.onBenefitButtonClick()]}))}))}},"Learn more")};t.prototype.openAttachmentButton=function(){var t=this;var e;if(this.benefit.attachments===null||((e=this.benefit.attachments)===null||e===void 0?void 0:e.length)===0){return undefined}return n("a",{class:"uiid-validate-benefit-doc-exist d-block d-lg-inline-block btn btn-light px-4 py-2",target:"_blank",href:this.benefit.attachments[0].downloadUrl,onClick:function(e){return i.trackBenefitAttachmentClickedAsync(t.benefitWithId)}},n("span",null,"View"))};t.prototype.IconElement=function(){if(this.benefit.icon!==null){return n("img",{src:this.benefit.icon.downloadUrl,class:"img-responsive benefit-image",alt:"benefit-icon"})}else{return n("ap-ben-icon",{class:"text-black-50 fa-3x",iconPrefix:"fad",iconId:"award"})}};return t}());o.style=r}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(a,c,l,v){function h(a){return a instanceof l?a:new l((function(c){c(a)}))}return new(l||(l=Promise))((function(l,f){function e(a){try{z(v.next(a))}catch(a){f(a)}}function i(a){try{z(v["throw"](a))}catch(a){f(a)}}function z(a){a.done?l(a.value):h(a.value).then(e,i)}z((v=v.apply(a,c||[])).next())}))};var __generator=this&&this.__generator||function(a,c){var l={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},v,h,f,e;return e={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(e[Symbol.iterator]=function(){return this}),e;function i(a){return function(c){return z([a,c])}}function z(e){if(v)throw new TypeError("Generator is already executing.");while(l)try{if(v=1,h&&(f=e[0]&2?h["return"]:e[0]?h["throw"]||((f=h["return"])&&f.call(h),0):h.next)&&!(f=f.call(h,e[1])).done)return f;if(h=0,f)e=[e[0]&2,f.value];switch(e[0]){case 0:case 1:f=e;break;case 4:l.label++;return{value:e[1],done:false};case 5:l.label++;h=e[1];e=[0];continue;case 7:e=l.ops.pop();l.trys.pop();continue;default:if(!(f=l.trys,f=f.length>0&&f[f.length-1])&&(e[0]===6||e[0]===2)){l=0;continue}if(e[0]===3&&(!f||e[1]>f[0]&&e[1]<f[3])){l.label=e[1];break}if(e[0]===6&&l.label<f[1]){l.label=f[1];f=e;break}if(f&&l.label<f[2]){l.label=f[2];l.ops.push(e);break}if(f[2])l.ops.pop();l.trys.pop();continue}e=c.call(a,l)}catch(a){e=[6,a];h=0}finally{v=f=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:true}}};System.register(["./p-8a3fa951.system.js","./p-9db2c958.system.js","./p-835322bf.system.js","./p-0045ce79.system.js","./p-4422e7a6.system.js","./p-45d6fbc2.system.js","./p-b2fe119e.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(a,c,l,v){function h(a){return a instanceof l?a:new l((function(c){c(a)}))}return new(l||(l=Promise))((function(l,f){function e(a){try{z(v.next(a))}catch(a){f(a)}}function i(a){try{z(v["throw"](a))}catch(a){f(a)}}function z(a){a.done?l(a.value):h(a.value).then(e,i)}z((v=v.apply(a,c||[])).next())}))};var __generator=this&&this.__generator||function(a,c){var l={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},v,h,f,e;return e={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(e[Symbol.iterator]=function(){return this}),e;function i(a){return function(c){return z([a,c])}}function z(e){if(v)throw new TypeError("Generator is already executing.");while(l)try{if(v=1,h&&(f=e[0]&2?h["return"]:e[0]?h["throw"]||((f=h["return"])&&f.call(h),0):h.next)&&!(f=f.call(h,e[1])).done)return f;if(h=0,f)e=[e[0]&2,f.value];switch(e[0]){case 0:case 1:f=e;break;case 4:l.label++;return{value:e[1],done:false};case 5:l.label++;h=e[1];e=[0];continue;case 7:e=l.ops.pop();l.trys.pop();continue;default:if(!(f=l.trys,f=f.length>0&&f[f.length-1])&&(e[0]===6||e[0]===2)){l=0;continue}if(e[0]===3&&(!f||e[1]>f[0]&&e[1]<f[3])){l.label=e[1];break}if(e[0]===6&&l.label<f[1]){l.label=f[1];f=e;break}if(f&&l.label<f[2]){l.label=f[2];l.ops.push(e);break}if(f[2])l.ops.pop();l.trys.pop();continue}e=c.call(a,l)}catch(a){e=[6,a];h=0}finally{v=f=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:true}}};System.register(["./p-8a3fa951.system.js","./p-9db2c958.system.js","./p-835322bf.system.js","./p-0045ce79.system.js","./p-4422e7a6.system.js","./p-45d6fbc2.system.js","./p-b2fe119e.system.js","./p-d99bf636.system.js","./p-b51215ae.system.js","./p-6efcc4fd.system.js","./p-9a8c9350.system.js","./p-19b00569.system.js","./p-0eebae53.system.js","./p-d19c8a5d.system.js","./p-348f3d3c.system.js"],(function(a){"use strict";var c,l,v,h,f,e,i,z,r,m,o,n,M,H,s;return{setters:[function(a){c=a.r;l=a.h;v=a.H},function(a){h=a.A},function(a){f=a.O},function(a){e=a.a},function(a){i=a.l},function(a){z=a.B;r=a.b;m=a.a},function(a){o=a.n;n=a.r},function(a){M=a.b},function(a){H=a.b},function(a){s=a.a},function(){},function(){},function(){},function(){},function(){}],execute:function(){function V(a){h.injectProps(a,["history","location"])}var L=a("ap_ben_loading_page",function(){function a(a){c(this,a)}a.prototype.render=function(){return l(v,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1 mt-5"},l("h5",null,"Loading Benefits"),l("fl-loading-indicator",null))};return a}());function C(a){this.message=a}C.prototype=new Error,C.prototype.name="InvalidCharacterError";var p="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(a){var c=String(a).replace(/=+$/,"");if(c.length%4==1)throw new C("'atob' failed: The string to be decoded is not correctly encoded.");for(var l,v,h=0,f=0,e="";v=c.charAt(f++);~v&&(l=h%4?64*l+v:v,h++%4)?e+=String.fromCharCode(255&l>>(-2*h&6)):0)v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(v);return e};function t(a){var c=a.replace(/-/g,"+").replace(/_/g,"/");switch(c.length%4){case 0:break;case 2:c+="==";break;case 3:c+="=";break;default:throw"Illegal base64url string!"}try{return function(a){return decodeURIComponent(p(a).replace(/(.)/g,(function(a,c){var l=c.charCodeAt(0).toString(16).toUpperCase();return l.length<2&&(l="0"+l),"%"+l})))}(c)}catch(a){return p(c)}}function A(a){this.message=a}function x(a,c){if("string"!=typeof a)throw new A("Invalid token specified");var l=!0===(c=c||{}).header?0:1;try{return JSON.parse(t(a.split(".")[l]))}catch(a){throw new A("Invalid token specified: "+a.message)}}A.prototype=new Error,A.prototype.name="InvalidTokenError";
|
|
2
2
|
/*!
|
|
3
3
|
* Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
|
|
4
4
|
* License - https://fontawesome.com/license (Commercial License)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-5a1dd786.js";import{b as i}from"./p-
|
|
1
|
+
import{r as t,h as s}from"./p-5a1dd786.js";import{b as i}from"./p-d54987a3.js";import"./p-7062880e.js";import"./p-2c9dd7c4.js";import"./p-7ad92407.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";const e=class{constructor(s){t(this,s),this.onBenefitButtonClick=async t=>{t.preventDefault(),null!==this.benefit.url&&(window.open(this.benefit.url,"_blank"),i.trackBenefitLinkClickedAsync(this.benefitWithId))},this.benefitWithId=void 0}render(){return s("div",{class:"row h-100 d-flex justify-content-between no-gutters",onClick:async t=>this.onBenefitButtonClick(t)},s("div",{class:"col-9 col-md-12 col-lg-10 text-left"},s("h5",{class:"card-title mb-1"},this.benefit.title),s("h6",{class:"benefit-value-description"},this.benefit.subtitle),s("small",{class:"card-text text-muted text-uppercase"},this.benefit.description)),s("div",{class:"col-2 col-md-12 col-lg-2 d-flex justify-content-end align-items-center"},this.IconElement()))}get benefit(){return this.benefitWithId.benefit}IconElement(){var t;return null!==this.benefit.icon?s("img",{class:"img-fluid",src:null===(t=this.benefit.icon)||void 0===t?void 0:t.downloadUrl,alt:""}):s("ap-ben-icon",{class:"text-black-50 fa-3x",iconPrefix:"fad",iconId:"award"})}};e.style="ap-ben-benefit-card .fl-card-logo.img-fluid{height:1.25rem}";export{e as ap_ben_benefit_card}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,s){function o(t){try{c(r.next(t))}catch(t){s(t)}}function a(t){try{c(r["throw"](t))}catch(t){s(t)}}function c(t){t.done?n(t.value):i(t.value).then(o,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return c([t,e])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-8a3fa951.system.js","./p-9a8c9350.system.js","./p-b41f72c8.system.js","./p-d99bf636.system.js","./p-45d6fbc2.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,r,i,s,o,a,c,u;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){i=t.b;s=t.n;o=t.c;a=t.s},function(t){c=t.b},function(t){u=t.b},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var f=function(){function t(){}t.prototype.getViewPageState=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,c.getBenefitsAsync()]}))}))};t.prototype.getShopifyUrl=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=i;return[4,c.getShopifyUrl()];case 1:return[2,t.apply(void 0,[e.sent().redirectUrl])]}}))}))};return t}();var l=new f;var h=t("ap_ben_benefits_page",function(){function t(t){e(this,t);this.urlRefreshHandle=s;this.state=undefined;this.shopifyUrl=s}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,l.getViewPageState()];case 1:t.state=e.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,l.getShopifyUrl()];case 1:t.shopifyUrl=e.sent();this.setupShopifyUrlRefresh();return[4,u.trackBenefitsOpenedAsync()];case 2:e.sent();return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(o(this.urlRefreshHandle)){window.clearInterval(this.urlRefreshHandle.value)}};t.prototype.render=function(){return n(r,{class:"w-100 mb-4"},n("ap-ben-ui-container",{class:"mt-4 d-none"},n("div",{class:"row"},n("div",{class:"col-12"},n("ap-ben-hero-banner",{shopifyUrl:this.shopifyUrl}))),n("div",{class:"row"},n("div",{class:"col-12"},n("ap-ben-promoted-benefits",{benefits:this.state.promotedBenefits}))),n("div",{class:"row"},n("div",{class:"col-12"},n("ap-ben-benefits-list",{benefits:this.state.availableBenefits})))))};t.prototype.setupShopifyUrlRefresh=function(){var t=this;var e=2*60*1e3;this.urlRefreshHandle=a(window.setInterval((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,l.getShopifyUrl()];case 1:t.shopifyUrl=e.sent();return[2]}}))}))}),e))};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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-8a3fa951.system.js","./p-
|
|
1
|
+
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-8a3fa951.system.js","./p-d99bf636.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]}))}))};this.benefitWithId=undefined}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}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e}from"./p-7062880e.js";const t=new class{async postTrackEventAsync(t){return e.instance.url("benefits/track-event").post(t).res()}},n=new class{async trackAppLoadedAsync(){return this.trackEventAsync("appLoaded")}async trackBenefitsOpenedAsync(){return this.trackEventAsync("benefitsOpened")}async trackPageViewedAsync(e){return this.trackEventAsync({pageViewed:e})}async trackBenefitLinkClickedAsync({benefitId:e,benefit:t}){return this.trackEventAsync({benefitSelected:{benefitId:e,attachment:"link",category:t.category,subtitle:t.subtitle,title:t.title}})}async trackBenefitAttachmentClickedAsync({benefitId:e,benefit:t}){return this.trackEventAsync({benefitSelected:{benefitId:e,attachment:"document",category:t.category,subtitle:t.subtitle,title:t.title}})}async trackEventAsync(e){try{await t.postTrackEventAsync({event:e})}catch(e){return}}};export{n as b}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function c(t){try{u(r["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):i(t.value).then(a,c)}u((r=r.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:[]},r,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return u([t,e])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-45d6fbc2.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.B}],execute:function(){var n=function(){function t(){}t.prototype.postTrackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,e.instance.url("benefits/track-event").post(t).res()]}))}))};return t}();var r=new n;var i=function(){function t(){}t.prototype.trackAppLoadedAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync("appLoaded")]}))}))};t.prototype.trackPageViewedAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.trackEventAsync({pageViewed:t})]}))}))};t.prototype.trackBenefitLinkClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"link",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackBenefitAttachmentClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"document",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,r.postTrackEventAsync({event:t})];case 1:n.sent();return[3,3];case 2:e=n.sent();return[2];case 3:return[2]}}))}))};return t}();var o=t("b",new i)}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function c(t){try{u(r["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):i(t.value).then(a,c)}u((r=r.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:[]},r,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return u([t,e])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-45d6fbc2.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.B}],execute:function(){var n=function(){function t(){}t.prototype.postTrackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,e.instance.url("benefits/track-event").post(t).res()]}))}))};return t}();var r=new n;var i=function(){function t(){}t.prototype.trackAppLoadedAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync("appLoaded")]}))}))};t.prototype.trackBenefitsOpenedAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync("benefitsOpened")]}))}))};t.prototype.trackPageViewedAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.trackEventAsync({pageViewed:t})]}))}))};t.prototype.trackBenefitLinkClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"link",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackBenefitAttachmentClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"document",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,r.postTrackEventAsync({event:t})];case 1:n.sent();return[3,3];case 2:e=n.sent();return[2];case 3:return[2]}}))}))};return t}();var o=t("b",new i)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,g as e}from"./p-5a1dd786.js";import{O as o}from"./p-556fdb43.js";import{b as r}from"./p-d54987a3.js";import"./p-7062880e.js";import"./p-2c9dd7c4.js";import"./p-7ad92407.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";const i=class{constructor(t){s(this,t),this.benefits=void 0}render(){if(this.benefits)return t("div",{class:"list-group"},this.benefits.map((s=>t("ap-ben-benefit-list-item",{class:"list-group-item px-4 py-2",benefitWithId:s}))))}},a=class{constructor(t){s(this,t),this.shopifyUrl=o.none}render(){return t("div",{class:"card fl-card-background border-0 mb-4 py-0"},t("a",{target:"_blank",rel:"noopener noreferrer",href:o.toUndefined(this.shopifyUrl),class:"text-reset text-decoration-none",onClick:()=>r.trackBenefitsOpenedAsync()},t("div",{class:"card-body p-0"},t("div",{class:"row m-0"},t("div",{class:"col-12 col-lg-6 col-xl-7 px-3"},t("div",{class:"pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0"},t("h1",{class:"font-weight-bold my-4"},"Access exclusive discounts and vouchers."),t("p",{class:"mb-4"},"Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."),t("a",{target:"_blank",rel:"noopener noreferrer",class:"btn btn-light bg-white mb-4 px-3 py-2"},t("h6",{class:"m-0"},"Browse discounts")))),t("div",{class:"col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded"},t("img",{src:e("./assets/Hero_Background.png"),class:"fl-logo-container h-100"}))))))}static get assetsDirs(){return["assets"]}};a.style="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 n=class{constructor(t){s(this,t),this.benefits=void 0}render(){if(this.benefits)return t("div",{class:"list-group list-group-horizontal-md mb-4"},this.benefits.map((s=>t("a",{href:"#",class:"list-group-item list-group-item-action p-4"},t("ap-ben-benefit-card",{key:s.benefitId,benefitWithId:s})))))}};export{i as ap_ben_benefits_list,a as ap_ben_hero_banner,n as ap_ben_promoted_benefits}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dc099b4.js');
|
|
6
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
6
|
+
const eventTracking_service = require('./event-tracking.service-5aa0bdae.js');
|
|
7
7
|
require('./api-client-00edc9b6.js');
|
|
8
8
|
require('./index-4f00f593.js');
|
|
9
9
|
require('./index-889ce6c6.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dc099b4.js');
|
|
6
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
6
|
+
const eventTracking_service = require('./event-tracking.service-5aa0bdae.js');
|
|
7
7
|
require('./api-client-00edc9b6.js');
|
|
8
8
|
require('./index-4f00f593.js');
|
|
9
9
|
require('./index-889ce6c6.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dc099b4.js');
|
|
6
6
|
const Option = require('./Option-98dab0b8.js');
|
|
7
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
7
|
+
const eventTracking_service = require('./event-tracking.service-5aa0bdae.js');
|
|
8
8
|
require('./api-client-00edc9b6.js');
|
|
9
9
|
require('./index-4f00f593.js');
|
|
10
10
|
require('./index-889ce6c6.js');
|
|
@@ -34,7 +34,7 @@ const HeroBanner = class {
|
|
|
34
34
|
this.shopifyUrl = Option.Option.none;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
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.
|
|
37
|
+
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.trackBenefitsOpenedAsync() }, 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" })))))));
|
|
38
38
|
}
|
|
39
39
|
static get assetsDirs() { return ["assets"]; }
|
|
40
40
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-0dc099b4.js');
|
|
6
6
|
const index = require('./index-4f00f593.js');
|
|
7
7
|
const benefits_api = require('./benefits.api-a4bd9804.js');
|
|
8
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
8
|
+
const eventTracking_service = require('./event-tracking.service-5aa0bdae.js');
|
|
9
9
|
require('./api-client-00edc9b6.js');
|
|
10
10
|
require('./index-889ce6c6.js');
|
|
11
11
|
require('./datorama-akita-bb801820.js');
|
|
@@ -36,7 +36,7 @@ const BenefitsPage = class {
|
|
|
36
36
|
async componentDidLoad() {
|
|
37
37
|
this.shopifyUrl = await benefitsService.getShopifyUrl();
|
|
38
38
|
this.setupShopifyUrlRefresh();
|
|
39
|
-
await eventTracking_service.benefitsEventTrackingService.
|
|
39
|
+
await eventTracking_service.benefitsEventTrackingService.trackBenefitsOpenedAsync();
|
|
40
40
|
}
|
|
41
41
|
disconnectedCallback() {
|
|
42
42
|
if (index.isSome(this.urlRefreshHandle)) {
|
|
@@ -9,7 +9,7 @@ const index$1 = require('./index-889ce6c6.js');
|
|
|
9
9
|
const index_es = require('./index.es-1e4fc9cc.js');
|
|
10
10
|
const apiClient = require('./api-client-00edc9b6.js');
|
|
11
11
|
const navigation_service = require('./navigation.service-6027947e.js');
|
|
12
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
12
|
+
const eventTracking_service = require('./event-tracking.service-5aa0bdae.js');
|
|
13
13
|
const benefitsApp_query = require('./benefits-app.query-98898e4c.js');
|
|
14
14
|
const scheduleArray = require('./scheduleArray-0ba3d6f8.js');
|
|
15
15
|
require('./index-4f00f593.js');
|
package/dist/lib/cjs/{event-tracking.service-fcc820f1.js → event-tracking.service-5aa0bdae.js}
RENAMED
|
@@ -13,6 +13,9 @@ class BenefitsEventTrackingService {
|
|
|
13
13
|
async trackAppLoadedAsync() {
|
|
14
14
|
return this.trackEventAsync('appLoaded');
|
|
15
15
|
}
|
|
16
|
+
async trackBenefitsOpenedAsync() {
|
|
17
|
+
return this.trackEventAsync('benefitsOpened');
|
|
18
|
+
}
|
|
16
19
|
async trackPageViewedAsync(event) {
|
|
17
20
|
return this.trackEventAsync({ pageViewed: event });
|
|
18
21
|
}
|
|
@@ -14,7 +14,7 @@ export class BenefitsPage {
|
|
|
14
14
|
async componentDidLoad() {
|
|
15
15
|
this.shopifyUrl = await benefitsService.getShopifyUrl();
|
|
16
16
|
this.setupShopifyUrlRefresh();
|
|
17
|
-
await benefitsEventTrackingService.
|
|
17
|
+
await benefitsEventTrackingService.trackBenefitsOpenedAsync();
|
|
18
18
|
}
|
|
19
19
|
disconnectedCallback() {
|
|
20
20
|
if (O.isSome(this.urlRefreshHandle)) {
|
package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.js
CHANGED
|
@@ -6,7 +6,7 @@ export class HeroBanner {
|
|
|
6
6
|
this.shopifyUrl = none;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h("div", { class: "card fl-card-background border-0 mb-4 py-0" }, h("a", { target: "_blank", rel: "noopener noreferrer", href: toUndefined(this.shopifyUrl), class: "text-reset text-decoration-none", onClick: (_) => benefitsEventTrackingService.
|
|
9
|
+
return (h("div", { class: "card fl-card-background border-0 mb-4 py-0" }, h("a", { target: "_blank", rel: "noopener noreferrer", href: toUndefined(this.shopifyUrl), class: "text-reset text-decoration-none", onClick: (_) => benefitsEventTrackingService.trackBenefitsOpenedAsync() }, h("div", { class: "card-body p-0" }, h("div", { class: "row m-0" }, h("div", { class: "col-12 col-lg-6 col-xl-7 px-3" }, h("div", { class: "pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0" }, h("h1", { class: "font-weight-bold my-4" }, "Access exclusive discounts and vouchers."), h("p", { class: "mb-4" }, "Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."), h("a", { target: "_blank", rel: "noopener noreferrer", class: "btn btn-light bg-white mb-4 px-3 py-2" }, h("h6", { class: "m-0" }, "Browse discounts")))), h("div", { class: "col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded" }, h("img", { src: getAssetPath('./assets/Hero_Background.png'), class: "fl-logo-container h-100" })))))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "ap-ben-hero-banner"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -3,6 +3,9 @@ export class BenefitsEventTrackingService {
|
|
|
3
3
|
async trackAppLoadedAsync() {
|
|
4
4
|
return this.trackEventAsync('appLoaded');
|
|
5
5
|
}
|
|
6
|
+
async trackBenefitsOpenedAsync() {
|
|
7
|
+
return this.trackEventAsync('benefitsOpened');
|
|
8
|
+
}
|
|
6
9
|
async trackPageViewedAsync(event) {
|
|
7
10
|
return this.trackEventAsync({ pageViewed: event });
|
|
8
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-67b83cf8.js';
|
|
2
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
2
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-4d5f3c3f.js';
|
|
3
3
|
import './api-client-a68152b8.js';
|
|
4
4
|
import './index-6869168f.js';
|
|
5
5
|
import './index-8f0ba0c8.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-67b83cf8.js';
|
|
2
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
2
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-4d5f3c3f.js';
|
|
3
3
|
import './api-client-a68152b8.js';
|
|
4
4
|
import './index-6869168f.js';
|
|
5
5
|
import './index-8f0ba0c8.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getAssetPath } from './index-67b83cf8.js';
|
|
2
2
|
import { O as Option } from './Option-53ef163a.js';
|
|
3
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
3
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-4d5f3c3f.js';
|
|
4
4
|
import './api-client-a68152b8.js';
|
|
5
5
|
import './index-6869168f.js';
|
|
6
6
|
import './index-8f0ba0c8.js';
|
|
@@ -30,7 +30,7 @@ const HeroBanner = class {
|
|
|
30
30
|
this.shopifyUrl = Option.none;
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("div", { class: "card fl-card-background border-0 mb-4 py-0" }, h("a", { target: "_blank", rel: "noopener noreferrer", href: Option.toUndefined(this.shopifyUrl), class: "text-reset text-decoration-none", onClick: (_) => benefitsEventTrackingService.
|
|
33
|
+
return (h("div", { class: "card fl-card-background border-0 mb-4 py-0" }, h("a", { target: "_blank", rel: "noopener noreferrer", href: Option.toUndefined(this.shopifyUrl), class: "text-reset text-decoration-none", onClick: (_) => benefitsEventTrackingService.trackBenefitsOpenedAsync() }, h("div", { class: "card-body p-0" }, h("div", { class: "row m-0" }, h("div", { class: "col-12 col-lg-6 col-xl-7 px-3" }, h("div", { class: "pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0" }, h("h1", { class: "font-weight-bold my-4" }, "Access exclusive discounts and vouchers."), h("p", { class: "mb-4" }, "Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."), h("a", { target: "_blank", rel: "noopener noreferrer", class: "btn btn-light bg-white mb-4 px-3 py-2" }, h("h6", { class: "m-0" }, "Browse discounts")))), h("div", { class: "col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded" }, h("img", { src: getAssetPath('./assets/Hero_Background.png'), class: "fl-logo-container h-100" })))))));
|
|
34
34
|
}
|
|
35
35
|
static get assetsDirs() { return ["assets"]; }
|
|
36
36
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-67b83cf8.js';
|
|
2
2
|
import { b as fromNullable, n as none, c as isSome, s as some } from './index-6869168f.js';
|
|
3
3
|
import { b as benefitsApi } from './benefits.api-806ca0bc.js';
|
|
4
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
4
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-4d5f3c3f.js';
|
|
5
5
|
import './api-client-a68152b8.js';
|
|
6
6
|
import './index-8f0ba0c8.js';
|
|
7
7
|
import './datorama-akita-d2413fd0.js';
|
|
@@ -32,7 +32,7 @@ const BenefitsPage = class {
|
|
|
32
32
|
async componentDidLoad() {
|
|
33
33
|
this.shopifyUrl = await benefitsService.getShopifyUrl();
|
|
34
34
|
this.setupShopifyUrlRefresh();
|
|
35
|
-
await benefitsEventTrackingService.
|
|
35
|
+
await benefitsEventTrackingService.trackBenefitsOpenedAsync();
|
|
36
36
|
}
|
|
37
37
|
disconnectedCallback() {
|
|
38
38
|
if (isSome(this.urlRefreshHandle)) {
|
|
@@ -5,7 +5,7 @@ import { a as getOrError } from './index-8f0ba0c8.js';
|
|
|
5
5
|
import { l as library } from './index.es-f2237e9d.js';
|
|
6
6
|
import { B as BackendApiClient, b as benefitsAppService, a as BenefitsAppService } from './api-client-a68152b8.js';
|
|
7
7
|
import { n as navigationService, r as renderManagePageRoutes } from './navigation.service-cc2e8e37.js';
|
|
8
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
8
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-4d5f3c3f.js';
|
|
9
9
|
import { b as benefitsAppQuery } from './benefits-app.query-bfee691f.js';
|
|
10
10
|
import { a as Subscription } from './scheduleArray-b9669898.js';
|
|
11
11
|
import './index-6869168f.js';
|
package/dist/lib/esm/{event-tracking.service-8d44e7ac.js → event-tracking.service-4d5f3c3f.js}
RENAMED
|
@@ -11,6 +11,9 @@ class BenefitsEventTrackingService {
|
|
|
11
11
|
async trackAppLoadedAsync() {
|
|
12
12
|
return this.trackEventAsync('appLoaded');
|
|
13
13
|
}
|
|
14
|
+
async trackBenefitsOpenedAsync() {
|
|
15
|
+
return this.trackEventAsync('benefitsOpened');
|
|
16
|
+
}
|
|
14
17
|
async trackPageViewedAsync(event) {
|
|
15
18
|
return this.trackEventAsync({ pageViewed: event });
|
|
16
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function c(e){try{l(i["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):r(e.value).then(a,c)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return l([e,t])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h}from"./index-67b83cf8.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function c(e){try{l(i["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):r(e.value).then(a,c)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return l([e,t])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h}from"./index-67b83cf8.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-4d5f3c3f.js";import"./api-client-a68152b8.js";import"./index-6869168f.js";import"./index-8f0ba0c8.js";import"./datorama-akita-d2413fd0.js";import"./scheduleArray-b9669898.js";import"./delay-d08c267f.js";import"./filter-aeb65cac.js";var benefitCardCss="ap-ben-benefit-card .fl-card-logo.img-fluid{height:1.25rem}";var BenefitCard=function(){function e(e){var t=this;registerInstance(this,e);this.onBenefitButtonClick=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){e.preventDefault();if(this.benefit.url===null)return[2];window.open(this.benefit.url,"_blank");benefitsEventTrackingService.trackBenefitLinkClickedAsync(this.benefitWithId);return[2]}))}))};this.benefitWithId=undefined}e.prototype.render=function(){var e=this;return h("div",{class:"row h-100 d-flex justify-content-between no-gutters",onClick:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.onBenefitButtonClick(t)]}))}))}},h("div",{class:"col-9 col-md-12 col-lg-10 text-left"},h("h5",{class:"card-title mb-1"},this.benefit.title),h("h6",{class:"benefit-value-description"},this.benefit.subtitle),h("small",{class:"card-text text-muted text-uppercase"},this.benefit.description)),h("div",{class:"col-2 col-md-12 col-lg-2 d-flex justify-content-end align-items-center"},this.IconElement()))};Object.defineProperty(e.prototype,"benefit",{get:function(){return this.benefitWithId.benefit},enumerable:false,configurable:true});e.prototype.IconElement=function(){var e;if(this.benefit.icon!==null){return h("img",{class:"img-fluid",src:(e=this.benefit.icon)===null||e===void 0?void 0:e.downloadUrl,alt:""})}else{return h("ap-ben-icon",{class:"text-black-50 fa-3x",iconPrefix:"fad",iconId:"award"})}};return e}();BenefitCard.style=benefitCardCss;export{BenefitCard as ap_ben_benefit_card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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 a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):r(t.value).then(a,s)}c((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,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h}from"./index-67b83cf8.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-
|
|
1
|
+
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 a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):r(t.value).then(a,s)}c((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,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h}from"./index-67b83cf8.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-4d5f3c3f.js";import"./api-client-a68152b8.js";import"./index-6869168f.js";import"./index-8f0ba0c8.js";import"./datorama-akita-d2413fd0.js";import"./scheduleArray-b9669898.js";import"./delay-d08c267f.js";import"./filter-aeb65cac.js";var benefitListItemCss="ap-ben-benefit-list-item .btn.btn-success{background-color:#27a88a;border-color:#27a88a}ap-ben-benefit-list-item .btn.btn-success:hover{background-color:#23967b;border-color:#23967b}ap-ben-benefit-list-item .btn.btn-success:not(:disabled):not(.disabled):active{background-color:#23967b;border-color:#23967b}@media (max-width: 575.98px){ap-ben-benefit-list-item .btn.btn-success{display:block;width:100%}}ap-ben-benefit-list-item .benefit-image{-o-object-fit:cover;object-fit:cover;width:100%;max-width:4rem}";var BenefitListItem=function(){function t(t){var e=this;registerInstance(this,t);this.onBenefitButtonClick=function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(this.benefit.url===null)return[2];window.open(this.benefit.url,"_blank");return[4,benefitsEventTrackingService.trackBenefitLinkClickedAsync(this.benefitWithId)];case 1:t.sent();return[2]}}))}))};this.benefitWithId=undefined}t.prototype.render=function(){return h("div",{class:"uiid-view-benefit-item-exist row align-items-top py-3 mx-0"},h("div",{class:"col-4 col-md-2 col-lg-1 px-0"},h("div",{class:"ml-0 my-lg-3 my-sm-2 my-xs-2 mr-3"},this.IconElement())),h("div",{class:"col-12 col-lg-8 text-left px-lg-2 px-0 pt-lg-0 pt-3"},h("h4",{class:"card-title mb-1 text-break"},this.benefit.title),h("span",{class:"benefit-value-description text-break"},this.benefit.subtitle),this.benefit.subtitle&&" - ",h("span",{class:"text-muted"},this.benefit.category),h("p",{class:"mb-0 pt-lg-3 pt-4 text-break"},this.benefit.description)),h("div",{class:"col-12 col-lg-3 px-0 d-flex justify-content-end align-items-start"},this.openAttachmentButton(),this.learnMoreButton()))};Object.defineProperty(t.prototype,"benefit",{get:function(){return this.benefitWithId.benefit},enumerable:false,configurable:true});t.prototype.learnMoreButton=function(){var t=this;if(this.benefit.url===null||this.benefit.url===""){return undefined}return h("button",{type:"button",class:"uiid-validate-benefit-url-exist d-block d-lg-inline-block btn btn-light px-4 py-2 ml-2",onClick:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.onBenefitButtonClick()]}))}))}},"Learn more")};t.prototype.openAttachmentButton=function(){var t=this;var e;if(this.benefit.attachments===null||((e=this.benefit.attachments)===null||e===void 0?void 0:e.length)===0){return undefined}return h("a",{class:"uiid-validate-benefit-doc-exist d-block d-lg-inline-block btn btn-light px-4 py-2",target:"_blank",href:this.benefit.attachments[0].downloadUrl,onClick:function(e){return benefitsEventTrackingService.trackBenefitAttachmentClickedAsync(t.benefitWithId)}},h("span",null,"View"))};t.prototype.IconElement=function(){if(this.benefit.icon!==null){return h("img",{src:this.benefit.icon.downloadUrl,class:"img-responsive benefit-image",alt:"benefit-icon"})}else{return h("ap-ben-icon",{class:"text-black-50 fa-3x",iconPrefix:"fad",iconId:"award"})}};return t}();BenefitListItem.style=benefitListItemCss;export{BenefitListItem as ap_ben_benefit_list_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,g as getAssetPath}from"./index-67b83cf8.js";import{O as Option}from"./Option-53ef163a.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-
|
|
1
|
+
import{r as registerInstance,h,g as getAssetPath}from"./index-67b83cf8.js";import{O as Option}from"./Option-53ef163a.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-4d5f3c3f.js";import"./api-client-a68152b8.js";import"./index-6869168f.js";import"./index-8f0ba0c8.js";import"./datorama-akita-d2413fd0.js";import"./scheduleArray-b9669898.js";import"./delay-d08c267f.js";import"./filter-aeb65cac.js";var ManagedBenefitList=function(){function e(e){registerInstance(this,e);this.benefits=undefined}e.prototype.render=function(){if(!this.benefits){return undefined}return h("div",{class:"list-group"},this.benefits.map((function(e){return h("ap-ben-benefit-list-item",{class:"list-group-item px-4 py-2",benefitWithId:e})})))};return e}();var 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}";var HeroBanner=function(){function e(e){registerInstance(this,e);this.shopifyUrl=Option.none}e.prototype.render=function(){return h("div",{class:"card fl-card-background border-0 mb-4 py-0"},h("a",{target:"_blank",rel:"noopener noreferrer",href:Option.toUndefined(this.shopifyUrl),class:"text-reset text-decoration-none",onClick:function(e){return benefitsEventTrackingService.trackBenefitsOpenedAsync()}},h("div",{class:"card-body p-0"},h("div",{class:"row m-0"},h("div",{class:"col-12 col-lg-6 col-xl-7 px-3"},h("div",{class:"pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0"},h("h1",{class:"font-weight-bold my-4"},"Access exclusive discounts and vouchers."),h("p",{class:"mb-4"},"Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."),h("a",{target:"_blank",rel:"noopener noreferrer",class:"btn btn-light bg-white mb-4 px-3 py-2"},h("h6",{class:"m-0"},"Browse discounts")))),h("div",{class:"col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded"},h("img",{src:getAssetPath("./assets/Hero_Background.png"),class:"fl-logo-container h-100"}))))))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}();HeroBanner.style=heroBannerCss;var PromotedBenefits=function(){function e(e){registerInstance(this,e);this.benefits=undefined}e.prototype.render=function(){if(!this.benefits){return undefined}return h("div",{class:"list-group list-group-horizontal-md mb-4"},this.benefits.map((function(e){return h("a",{href:"#",class:"list-group-item list-group-item-action p-4"},h("ap-ben-benefit-card",{key:e.benefitId,benefitWithId:e}))})))};return e}();export{ManagedBenefitList as ap_ben_benefits_list,HeroBanner as ap_ben_hero_banner,PromotedBenefits as ap_ben_promoted_benefits};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r["throw"](e))}catch(e){s(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-67b83cf8.js";import{b as fromNullable,n as none,c as isSome,s as some}from"./index-6869168f.js";import{b as benefitsApi}from"./benefits.api-806ca0bc.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-4d5f3c3f.js";import"./api-client-a68152b8.js";import"./index-8f0ba0c8.js";import"./datorama-akita-d2413fd0.js";import"./scheduleArray-b9669898.js";import"./delay-d08c267f.js";import"./filter-aeb65cac.js";var BenefitsService=function(){function e(){}e.prototype.getViewPageState=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,benefitsApi.getBenefitsAsync()]}))}))};e.prototype.getShopifyUrl=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=fromNullable;return[4,benefitsApi.getShopifyUrl()];case 1:return[2,e.apply(void 0,[t.sent().redirectUrl])]}}))}))};return e}();var benefitsService=new BenefitsService;var BenefitsPage=function(){function e(e){registerInstance(this,e);this.urlRefreshHandle=none;this.state=undefined;this.shopifyUrl=none}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,benefitsService.getViewPageState()];case 1:e.state=t.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,benefitsService.getShopifyUrl()];case 1:e.shopifyUrl=t.sent();this.setupShopifyUrlRefresh();return[4,benefitsEventTrackingService.trackBenefitsOpenedAsync()];case 2:t.sent();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(isSome(this.urlRefreshHandle)){window.clearInterval(this.urlRefreshHandle.value)}};e.prototype.render=function(){return h(Host,{class:"w-100 mb-4"},h("ap-ben-ui-container",{class:"mt-4 d-none"},h("div",{class:"row"},h("div",{class:"col-12"},h("ap-ben-hero-banner",{shopifyUrl:this.shopifyUrl}))),h("div",{class:"row"},h("div",{class:"col-12"},h("ap-ben-promoted-benefits",{benefits:this.state.promotedBenefits}))),h("div",{class:"row"},h("div",{class:"col-12"},h("ap-ben-benefits-list",{benefits:this.state.availableBenefits})))))};e.prototype.setupShopifyUrlRefresh=function(){var e=this;var t=2*60*1e3;this.urlRefreshHandle=some(window.setInterval((function(){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,benefitsService.getShopifyUrl()];case 1:e.shopifyUrl=t.sent();return[2]}}))}))}),t))};return e}();export{BenefitsPage as ap_ben_benefits_page};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(a,c,l,f){function e(a){return a instanceof l?a:new l((function(c){c(a)}))}return new(l||(l=Promise))((function(l,i){function r(a){try{v(f.next(a))}catch(a){i(a)}}function h(a){try{v(f["throw"](a))}catch(a){i(a)}}function v(a){a.done?l(a.value):e(a.value).then(r,h)}v((f=f.apply(a,c||[])).next())}))};var __generator=this&&this.__generator||function(a,c){var l={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},f,e,i,r;return r={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function h(a){return function(c){return v([a,c])}}function v(r){if(f)throw new TypeError("Generator is already executing.");while(l)try{if(f=1,e&&(i=r[0]&2?e["return"]:r[0]?e["throw"]||((i=e["return"])&&i.call(e),0):e.next)&&!(i=i.call(e,r[1])).done)return i;if(e=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:l.label++;return{value:r[1],done:false};case 5:l.label++;e=r[1];r=[0];continue;case 7:r=l.ops.pop();l.trys.pop();continue;default:if(!(i=l.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){l=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){l.label=r[1];break}if(r[0]===6&&l.label<i[1]){l.label=i[1];i=r;break}if(i&&l.label<i[2]){l.label=i[2];l.ops.push(r);break}if(i[2])l.ops.pop();l.trys.pop();continue}r=c.call(a,l)}catch(a){r=[6,a];e=0}finally{f=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-67b83cf8.js";import{A as ActiveRouter}from"./active-router-f7cfac78.js";import{O as Option}from"./Option-53ef163a.js";import{a as getOrError}from"./index-8f0ba0c8.js";import{l as library}from"./index.es-f2237e9d.js";import{B as BackendApiClient,b as benefitsAppService,a as BenefitsAppService}from"./api-client-a68152b8.js";import{n as navigationService,r as renderManagePageRoutes}from"./navigation.service-cc2e8e37.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(a,c,l,f){function e(a){return a instanceof l?a:new l((function(c){c(a)}))}return new(l||(l=Promise))((function(l,i){function r(a){try{v(f.next(a))}catch(a){i(a)}}function h(a){try{v(f["throw"](a))}catch(a){i(a)}}function v(a){a.done?l(a.value):e(a.value).then(r,h)}v((f=f.apply(a,c||[])).next())}))};var __generator=this&&this.__generator||function(a,c){var l={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},f,e,i,r;return r={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function h(a){return function(c){return v([a,c])}}function v(r){if(f)throw new TypeError("Generator is already executing.");while(l)try{if(f=1,e&&(i=r[0]&2?e["return"]:r[0]?e["throw"]||((i=e["return"])&&i.call(e),0):e.next)&&!(i=i.call(e,r[1])).done)return i;if(e=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:l.label++;return{value:r[1],done:false};case 5:l.label++;e=r[1];r=[0];continue;case 7:r=l.ops.pop();l.trys.pop();continue;default:if(!(i=l.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){l=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){l.label=r[1];break}if(r[0]===6&&l.label<i[1]){l.label=i[1];i=r;break}if(i&&l.label<i[2]){l.label=i[2];l.ops.push(r);break}if(i[2])l.ops.pop();l.trys.pop();continue}r=c.call(a,l)}catch(a){r=[6,a];e=0}finally{f=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-67b83cf8.js";import{A as ActiveRouter}from"./active-router-f7cfac78.js";import{O as Option}from"./Option-53ef163a.js";import{a as getOrError}from"./index-8f0ba0c8.js";import{l as library}from"./index.es-f2237e9d.js";import{B as BackendApiClient,b as benefitsAppService,a as BenefitsAppService}from"./api-client-a68152b8.js";import{n as navigationService,r as renderManagePageRoutes}from"./navigation.service-cc2e8e37.js";import{b as benefitsEventTrackingService}from"./event-tracking.service-4d5f3c3f.js";import{b as benefitsAppQuery}from"./benefits-app.query-bfee691f.js";import{a as Subscription}from"./scheduleArray-b9669898.js";import"./index-6869168f.js";import"./datorama-akita-d2413fd0.js";import"./delay-d08c267f.js";import"./filter-aeb65cac.js";import"./iframe-d1a2bbb3.js";function injectHistory(a){ActiveRouter.injectProps(a,["history","location"])}var LoadingPage=function(){function a(a){registerInstance(this,a)}a.prototype.render=function(){return h(Host,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1 mt-5"},h("h5",null,"Loading Benefits"),h("fl-loading-indicator",null))};return a}();function e(a){this.message=a}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(a){var c=String(a).replace(/=+$/,"");if(c.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var l,f,i=0,r=0,h="";f=c.charAt(r++);~f&&(l=i%4?64*l+f:f,i++%4)?h+=String.fromCharCode(255&l>>(-2*i&6)):0)f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f);return h};function t(a){var c=a.replace(/-/g,"+").replace(/_/g,"/");switch(c.length%4){case 0:break;case 2:c+="==";break;case 3:c+="=";break;default:throw"Illegal base64url string!"}try{return function(a){return decodeURIComponent(r(a).replace(/(.)/g,(function(a,c){var l=c.charCodeAt(0).toString(16).toUpperCase();return l.length<2&&(l="0"+l),"%"+l})))}(c)}catch(a){return r(c)}}function n(a){this.message=a}function o(a,c){if("string"!=typeof a)throw new n("Invalid token specified");var l=!0===(c=c||{}).header?0:1;try{return JSON.parse(t(a.split(".")[l]))}catch(a){throw new n("Invalid token specified: "+a.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
|
|
2
2
|
/*!
|
|
3
3
|
* Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
|
|
4
4
|
* License - https://fontawesome.com/license (Commercial License)
|
package/dist/lib/esm-es5/{event-tracking.service-8d44e7ac.js → event-tracking.service-4d5f3c3f.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function c(t){try{u(r.next(t))}catch(t){a(t)}}function o(t){try{u(r["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):i(t.value).then(c,o)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function o(t){return function(e){return u([t,e])}}function u(c){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=c[0]&2?i["return"]:c[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;if(i=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;i=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1];a=c;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(c);break}if(a[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{B as BackendApiClient}from"./api-client-a68152b8.js";var BenefitsEventTrackingApi=function(){function t(){}t.prototype.postTrackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,BackendApiClient.instance.url("benefits/track-event").post(t).res()]}))}))};return t}();var benefitsEventTrackingApi=new BenefitsEventTrackingApi;var BenefitsEventTrackingService=function(){function t(){}t.prototype.trackAppLoadedAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync("appLoaded")]}))}))};t.prototype.trackPageViewedAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.trackEventAsync({pageViewed:t})]}))}))};t.prototype.trackBenefitLinkClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"link",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackBenefitAttachmentClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"document",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,benefitsEventTrackingApi.postTrackEventAsync({event:t})];case 1:n.sent();return[3,3];case 2:e=n.sent();return[2];case 3:return[2]}}))}))};return t}();var benefitsEventTrackingService=new BenefitsEventTrackingService;export{benefitsEventTrackingService as b};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function c(t){try{u(r.next(t))}catch(t){a(t)}}function o(t){try{u(r["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):i(t.value).then(c,o)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function o(t){return function(e){return u([t,e])}}function u(c){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=c[0]&2?i["return"]:c[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;if(i=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;i=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1];a=c;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(c);break}if(a[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{B as BackendApiClient}from"./api-client-a68152b8.js";var BenefitsEventTrackingApi=function(){function t(){}t.prototype.postTrackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,BackendApiClient.instance.url("benefits/track-event").post(t).res()]}))}))};return t}();var benefitsEventTrackingApi=new BenefitsEventTrackingApi;var BenefitsEventTrackingService=function(){function t(){}t.prototype.trackAppLoadedAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync("appLoaded")]}))}))};t.prototype.trackBenefitsOpenedAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync("benefitsOpened")]}))}))};t.prototype.trackPageViewedAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.trackEventAsync({pageViewed:t})]}))}))};t.prototype.trackBenefitLinkClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"link",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackBenefitAttachmentClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"document",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,benefitsEventTrackingApi.postTrackEventAsync({event:t})];case 1:n.sent();return[3,3];case 2:e=n.sent();return[2];case 3:return[2]}}))}))};return t}();var benefitsEventTrackingService=new BenefitsEventTrackingService;export{benefitsEventTrackingService as b};
|
package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare type BenefitSelectedEvent = {
|
|
|
8
8
|
export declare type PageViewedEvent = {
|
|
9
9
|
pageId: 'viewBenefits' | 'discounts';
|
|
10
10
|
};
|
|
11
|
-
export declare type BenefitsAnalyticsEvent = 'appLoaded' | {
|
|
11
|
+
export declare type BenefitsAnalyticsEvent = 'appLoaded' | 'benefitsOpened' | {
|
|
12
12
|
pageViewed: PageViewedEvent;
|
|
13
13
|
} | {
|
|
14
14
|
benefitSelected: BenefitSelectedEvent;
|
|
@@ -2,6 +2,7 @@ import { BenefitWithIdDto } from '../apis/benefits-api/benefits-api.dto';
|
|
|
2
2
|
import { PageViewedEvent } from '../apis/event-tracking-api/event-tracking-api.dto';
|
|
3
3
|
export declare class BenefitsEventTrackingService {
|
|
4
4
|
trackAppLoadedAsync(): Promise<void>;
|
|
5
|
+
trackBenefitsOpenedAsync(): Promise<void>;
|
|
5
6
|
trackPageViewedAsync(event: PageViewedEvent): Promise<void>;
|
|
6
7
|
trackBenefitLinkClickedAsync({ benefitId, benefit }: BenefitWithIdDto): Promise<void>;
|
|
7
8
|
trackBenefitAttachmentClickedAsync({ benefitId, benefit }: BenefitWithIdDto): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,g as e}from"./p-5a1dd786.js";import{O as o}from"./p-556fdb43.js";import{b as r}from"./p-d14b00d9.js";import"./p-7062880e.js";import"./p-2c9dd7c4.js";import"./p-7ad92407.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";const i=class{constructor(t){s(this,t),this.benefits=void 0}render(){if(this.benefits)return t("div",{class:"list-group"},this.benefits.map((s=>t("ap-ben-benefit-list-item",{class:"list-group-item px-4 py-2",benefitWithId:s}))))}},a=class{constructor(t){s(this,t),this.shopifyUrl=o.none}render(){return t("div",{class:"card fl-card-background border-0 mb-4 py-0"},t("a",{target:"_blank",rel:"noopener noreferrer",href:o.toUndefined(this.shopifyUrl),class:"text-reset text-decoration-none",onClick:()=>r.trackPageViewedAsync({pageId:"discounts"})},t("div",{class:"card-body p-0"},t("div",{class:"row m-0"},t("div",{class:"col-12 col-lg-6 col-xl-7 px-3"},t("div",{class:"pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0"},t("h1",{class:"font-weight-bold my-4"},"Access exclusive discounts and vouchers."),t("p",{class:"mb-4"},"Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."),t("a",{target:"_blank",rel:"noopener noreferrer",class:"btn btn-light bg-white mb-4 px-3 py-2"},t("h6",{class:"m-0"},"Browse discounts")))),t("div",{class:"col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded"},t("img",{src:e("./assets/Hero_Background.png"),class:"fl-logo-container h-100"}))))))}static get assetsDirs(){return["assets"]}};a.style="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 n=class{constructor(t){s(this,t),this.benefits=void 0}render(){if(this.benefits)return t("div",{class:"list-group list-group-horizontal-md mb-4"},this.benefits.map((s=>t("a",{href:"#",class:"list-group-item list-group-item-action p-4"},t("ap-ben-benefit-card",{key:s.benefitId,benefitWithId:s})))))}};export{i as ap_ben_benefits_list,a as ap_ben_hero_banner,n as ap_ben_promoted_benefits}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as i,H as t}from"./p-5a1dd786.js";import{b as a,n as e,c as o,s as n}from"./p-2c9dd7c4.js";import{b as r}from"./p-bf086b51.js";import{b as p}from"./p-d14b00d9.js";import"./p-7062880e.js";import"./p-7ad92407.js";import"./p-f3effa5d.js";import"./p-ea120e31.js";import"./p-054d1471.js";import"./p-f63d9d89.js";const c=new class{async getViewPageState(){return r.getBenefitsAsync()}async getShopifyUrl(){return a((await r.getShopifyUrl()).redirectUrl)}},d=class{constructor(i){s(this,i),this.urlRefreshHandle=e,this.state=void 0,this.shopifyUrl=e}async componentWillLoad(){this.state=await c.getViewPageState()}async componentDidLoad(){this.shopifyUrl=await c.getShopifyUrl(),this.setupShopifyUrlRefresh(),await p.trackPageViewedAsync({pageId:"viewBenefits"})}disconnectedCallback(){o(this.urlRefreshHandle)&&window.clearInterval(this.urlRefreshHandle.value)}render(){return i(t,{class:"w-100 mb-4"},i("ap-ben-ui-container",{class:"mt-4 d-none"},i("div",{class:"row"},i("div",{class:"col-12"},i("ap-ben-hero-banner",{shopifyUrl:this.shopifyUrl}))),i("div",{class:"row"},i("div",{class:"col-12"},i("ap-ben-promoted-benefits",{benefits:this.state.promotedBenefits}))),i("div",{class:"row"},i("div",{class:"col-12"},i("ap-ben-benefits-list",{benefits:this.state.availableBenefits})))))}setupShopifyUrlRefresh(){this.urlRefreshHandle=n(window.setInterval((async()=>{this.shopifyUrl=await c.getShopifyUrl()}),12e4))}};export{d as ap_ben_benefits_page}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-8a3fa951.system.js","./p-835322bf.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(e){"use strict";var t,n,s,i,r;return{setters:[function(e){t=e.r;n=e.h;s=e.g},function(e){i=e.O},function(e){r=e.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var o=e("ap_ben_benefits_list",function(){function e(e){t(this,e);this.benefits=undefined}e.prototype.render=function(){if(!this.benefits){return undefined}return n("div",{class:"list-group"},this.benefits.map((function(e){return n("ap-ben-benefit-list-item",{class:"list-group-item px-4 py-2",benefitWithId:e})})))};return e}());var c="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}";var a=e("ap_ben_hero_banner",function(){function e(e){t(this,e);this.shopifyUrl=i.none}e.prototype.render=function(){return n("div",{class:"card fl-card-background border-0 mb-4 py-0"},n("a",{target:"_blank",rel:"noopener noreferrer",href:i.toUndefined(this.shopifyUrl),class:"text-reset text-decoration-none",onClick:function(e){return r.trackPageViewedAsync({pageId:"discounts"})}},n("div",{class:"card-body p-0"},n("div",{class:"row m-0"},n("div",{class:"col-12 col-lg-6 col-xl-7 px-3"},n("div",{class:"pl-lg-5 pl-2 pt-lg-4 pt-sm-0 pt-xs-0"},n("h1",{class:"font-weight-bold my-4"},"Access exclusive discounts and vouchers."),n("p",{class:"mb-4"},"Choose from leading retailers including Woolworths, JB Hi-Fi, Caltex and Hoyts Cinemas."),n("a",{target:"_blank",rel:"noopener noreferrer",class:"btn btn-light bg-white mb-4 px-3 py-2"},n("h6",{class:"m-0"},"Browse discounts")))),n("div",{class:"col-6 d-none d-lg-block col-xl-4 ml-auto overflow-hidden text-right p-0 rounded"},n("img",{src:s("./assets/Hero_Background.png"),class:"fl-logo-container h-100"}))))))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());a.style=c;var f=e("ap_ben_promoted_benefits",function(){function e(e){t(this,e);this.benefits=undefined}e.prototype.render=function(){if(!this.benefits){return undefined}return n("div",{class:"list-group list-group-horizontal-md mb-4"},this.benefits.map((function(e){return n("a",{href:"#",class:"list-group-item list-group-item-action p-4"},n("ap-ben-benefit-card",{key:e.benefitId,benefitWithId:e}))})))};return e}())}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as e}from"./p-7062880e.js";const t=new class{async postTrackEventAsync(t){return e.instance.url("benefits/track-event").post(t).res()}},n=new class{async trackAppLoadedAsync(){return this.trackEventAsync("appLoaded")}async trackPageViewedAsync(e){return this.trackEventAsync({pageViewed:e})}async trackBenefitLinkClickedAsync({benefitId:e,benefit:t}){return this.trackEventAsync({benefitSelected:{benefitId:e,attachment:"link",category:t.category,subtitle:t.subtitle,title:t.title}})}async trackBenefitAttachmentClickedAsync({benefitId:e,benefit:t}){return this.trackEventAsync({benefitSelected:{benefitId:e,attachment:"document",category:t.category,subtitle:t.subtitle,title:t.title}})}async trackEventAsync(e){try{await t.postTrackEventAsync({event:e})}catch(e){return}}};export{n as b}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r["throw"](e))}catch(e){s(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-8a3fa951.system.js","./p-9a8c9350.system.js","./p-b41f72c8.system.js","./p-63ad215f.system.js","./p-45d6fbc2.system.js","./p-0045ce79.system.js","./p-19b00569.system.js","./p-6efcc4fd.system.js","./p-0eebae53.system.js","./p-d19c8a5d.system.js"],(function(e){"use strict";var t,n,r,i,s,o,a,c,u;return{setters:[function(e){t=e.r;n=e.h;r=e.H},function(e){i=e.b;s=e.n;o=e.c;a=e.s},function(e){c=e.b},function(e){u=e.b},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var f=function(){function e(){}e.prototype.getViewPageState=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,c.getBenefitsAsync()]}))}))};e.prototype.getShopifyUrl=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=i;return[4,c.getShopifyUrl()];case 1:return[2,e.apply(void 0,[t.sent().redirectUrl])]}}))}))};return e}();var l=new f;var h=e("ap_ben_benefits_page",function(){function e(e){t(this,e);this.urlRefreshHandle=s;this.state=undefined;this.shopifyUrl=s}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,l.getViewPageState()];case 1:e.state=t.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,l.getShopifyUrl()];case 1:e.shopifyUrl=t.sent();this.setupShopifyUrlRefresh();return[4,u.trackPageViewedAsync({pageId:"viewBenefits"})];case 2:t.sent();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(o(this.urlRefreshHandle)){window.clearInterval(this.urlRefreshHandle.value)}};e.prototype.render=function(){return n(r,{class:"w-100 mb-4"},n("ap-ben-ui-container",{class:"mt-4 d-none"},n("div",{class:"row"},n("div",{class:"col-12"},n("ap-ben-hero-banner",{shopifyUrl:this.shopifyUrl}))),n("div",{class:"row"},n("div",{class:"col-12"},n("ap-ben-promoted-benefits",{benefits:this.state.promotedBenefits}))),n("div",{class:"row"},n("div",{class:"col-12"},n("ap-ben-benefits-list",{benefits:this.state.availableBenefits})))))};e.prototype.setupShopifyUrlRefresh=function(){var e=this;var t=2*60*1e3;this.urlRefreshHandle=a(window.setInterval((function(){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,l.getShopifyUrl()];case 1:e.shopifyUrl=t.sent();return[2]}}))}))}),t))};return e}())}}}));
|