@flarehr/cars-calculator 2.12.250 → 2.12.252
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-1f02b90d.system.js +1 -1
- package/dist/lib/cars-calculator/p-61011f19.entry.js +1 -0
- package/dist/lib/cars-calculator/p-c6eb9031.system.entry.js +1 -0
- package/dist/lib/cjs/ap-ben-asset_17.cjs.entry.js +18 -2
- package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.js +6 -0
- package/dist/lib/collection/components/cars-calculator-app/services/app-configuration.service.js +6 -0
- package/dist/lib/collection/components/cars-calculator-app/services/cars-calculator.service.js +6 -2
- package/dist/lib/esm/ap-ben-asset_17.entry.js +18 -2
- package/dist/lib/esm-es5/ap-ben-asset_17.entry.js +1 -1
- package/dist/lib/types/components/cars-calculator-app/api/cars-calculator.api.d.ts +1 -0
- package/dist/lib/types/components/cars-calculator-app/cars-calculator-app.d.ts +1 -0
- package/dist/lib/types/components/cars-calculator-app/services/app-configuration.service.d.ts +3 -0
- package/package.json +1 -1
- package/dist/lib/cars-calculator/p-14907102.entry.js +0 -1
- package/dist/lib/cars-calculator/p-5063a6d2.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-331e2504",[[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-5e93d832",[[0,"ap-ben-benefit-card",{benefitWithId:[16]}]]],["p-7043f370",[[0,"ap-ben-benefit-list-item",{benefitWithId:[16]}]]],["p-1339616c",[[0,"ap-ben-benefits-list",{benefits:[16]}],[0,"ap-ben-promoted-benefits",{benefits:[16]}],[0,"ap-ben-hero-banner",{shopifyUrl:[16]}]]],["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-331e2504",[[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-5e93d832",[[0,"ap-ben-benefit-card",{benefitWithId:[16]}]]],["p-7043f370",[[0,"ap-ben-benefit-list-item",{benefitWithId:[16]}]]],["p-1339616c",[[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-bb1a63d9",[[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 +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-e680c289.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-345ea211.system",[[0,"ap-ben-benefit-card",{benefitWithId:[16]}]]],["p-1e1d2d06.system",[[0,"ap-ben-benefit-list-item",{benefitWithId:[16]}]]],["p-526d50cb.system",[[0,"ap-ben-benefits-list",{benefits:[16]}],[0,"ap-ben-promoted-benefits",{benefits:[16]}],[0,"ap-ben-hero-banner",{shopifyUrl:[16]}]]],["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-e680c289.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-345ea211.system",[[0,"ap-ben-benefit-card",{benefitWithId:[16]}]]],["p-1e1d2d06.system",[[0,"ap-ben-benefit-list-item",{benefitWithId:[16]}]]],["p-526d50cb.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-9c04625b.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 t,h as e,g as i,H as n,c as a}from"./p-5a1dd786.js";import{f as r,n as s,s as o,a as u,i as c,b as l,p as d,g as h,c as M,d as f}from"./p-2c9dd7c4.js";import{g as L,a as m,t as y}from"./p-7ad92407.js";import{O as p,_ as b}from"./p-556fdb43.js";import{S as w,a as j,Q as v}from"./p-f3effa5d.js";import{d as g}from"./p-054d1471.js";import"./p-ea120e31.js";import"./p-f63d9d89.js";const x=class{constructor(e){t(this,e),this.image=void 0}render(){return e("img",{src:i(`./common-assets/${this.image}`)})}static get assetsDirs(){return["common-assets"]}};class N{set apiBaseUrl(t){N._apiBaseUrl=p.fromNullable(t)}set isPaidCampaign(t){N._isPaidCampaign=null!=t&&t}set partnerId(t){N._partnerId=t}get apiBaseUrl(){if(p.isNone(N._apiBaseUrl))throw Error("API base URL is not set");return N._apiBaseUrl.value}get isPaidCampaign(){return N._isPaidCampaign}get partnerId(){return N._partnerId}}const I=new N;function S(){return r(I.apiBaseUrl)}const T=new class{async getCarsMakes(){return(await S().url("/makes").get().json()).qt_makes}async getCarsModels(t){return(await S().url(`/makes/${t}/models`).get().json()).qt_models}async getCarsModelYears(t){return S().url(`/models/${t}/years`).get().json()}async getCarsModelBodyTypes(t,e){return(await S().url(`/models/${t}/years/${e}/body-types`).get().json()).qt_body_types}async getCarsModelVariant(t,e,i){return(await S().url(`/models/${t}/years/${e}/body-types/${i}/variants`).get().json()).qt_variants}async getCarsVariantPhotos(t){return(await S().url(`/variants/${t}/photos`).get().json()).qt_variant_photos}async postCarsQuoteResult(t){return await S().url("/quote").post(t).json()}async postQuoteInfoAsync(t){return S().url("/enquiry").post(t).text()}},D=new class{async postAnalyticsEventAsync(t){return S().url("/analytics-events").post(t).res()}};var C,k=new Uint8Array(16);function z(){if(!C&&!(C="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return C(k)}const O=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function E(t){return"string"==typeof t&&O.test(t)}for(var Y=[],A=0;A<256;++A)Y.push((A+256).toString(16).substr(1));function P(t,e,i){var n=(t=t||{}).random||(t.rng||z)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(var a=0;a<16;++a)e[i+a]=n[a];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Y[t[e+0]]+Y[t[e+1]]+Y[t[e+2]]+Y[t[e+3]]+"-"+Y[t[e+4]]+Y[t[e+5]]+"-"+Y[t[e+6]]+Y[t[e+7]]+"-"+Y[t[e+8]]+Y[t[e+9]]+"-"+Y[t[e+10]]+Y[t[e+11]]+Y[t[e+12]]+Y[t[e+13]]+Y[t[e+14]]+Y[t[e+15]]).toLowerCase();if(!E(i))throw TypeError("Stringified UUID is invalid");return i}(n)}let W=class extends j{constructor(){super({vehicle:{make:s,makeId:s,model:s,modelId:s,year:s,bodyType:s,bodyTypeId:s,selectedVariant:s,isUsedCarRequested:o(!1),approximatePrice:s},user:{annualSalary:s,annualKms:s,paymentPeriod:s,state:s,term:s,employmentType:s},quote:{afterTaxEffectPerPayCycle:s,taxSaving:s,residualValue:s,financedAmount:s,fuel:s,serviceAndMaintenance:s,registrationAndCtp:s,comprehensiveInsurance:s,managementFee:s,quoteState:"Not calculated"},userDetails:{employerName:s,userFirstName:s,userLastName:s,contactNumber:s,emailAddress:s},refLists:{makeList:s,modelList:s,yearList:s,bodyTypeList:s,modelVariantsList:s},distinctUserId:P()})}updateQuote(t){this.update({quote:t})}setVehicleState(t,e){this.update((i=>Object.assign(Object.assign({},i),{vehicle:Object.assign(Object.assign({},i.vehicle),{[t]:null===e?s:o(e)})})))}updateList(t,e){this.update((i=>Object.assign(Object.assign({},i),{refLists:Object.assign(Object.assign({},i.refLists),{[t]:o(e)})})))}setDistinctUserId(t){b.pipe(t,u((()=>({})),(t=>this.update((e=>Object.assign(Object.assign({},e),{distinctUserId:t}))))))}};W=function(t,e,i,n){var a,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(r<3?a(s):r>3?a(e,i,s):a(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}([w({name:"cars-calc-session",resettable:!0})],W);const Z=new W,Q=new class extends v{constructor(t){super(t),this.store=t,this.vehicle$=this.select((t=>t.vehicle)),this.user$=this.select((t=>t.user)),this.result$=this.select((t=>t.quote)),this.userDetails$=this.select((t=>t.userDetails)),this.makeList$=this.select((t=>t.refLists.makeList)),this.modelList$=this.select((t=>t.refLists.modelList)),this.yearList$=this.select((t=>t.refLists.yearList)),this.bodyTypeList$=this.select((t=>t.refLists.bodyTypeList)),this.modelVariantsList$=this.select((t=>t.refLists.modelVariantsList)),this.selectedVariant$=this.select((t=>t.vehicle.selectedVariant)),this.quote$=this.select((t=>t.quote))}get distinctUserId(){return this.getValue().distinctUserId}get selectedVariant(){return this.getValue().vehicle.selectedVariant}get vehicle(){return this.getValue().vehicle}get user(){return this.getValue().user}get result(){return this.getValue().quote}get userDetails(){return this.getValue().userDetails}}(Z),G=new class{async trackAppLoadedAsync(){return this.trackEventAsync("appLoaded")}async trackInputChangedAsync(t){return this.trackEventAsync({inputChanged:t})}async trackStepProgressedAsync(t){return this.trackEventAsync({stepProgressed:t})}async trackModalViewedAsync(t){return this.trackEventAsync({modalViewed:t})}async trackModalClosedAsync(t){return this.trackEventAsync({modalClosed:t})}async trackFormSubmittedAsync(t){return this.trackEventAsync({formSubmitted:t})}async trackPrivacyPolicyViewedAsync(){return this.trackEventAsync("privacyPolicyViewed")}async trackEventAsync(t){try{await D.postAnalyticsEventAsync({event:t,distinctId:Q.distinctUserId})}catch(t){return}}};const U=class{constructor(e){t(this,e),this.toCapitalCase=t=>null==t?void 0:t.split(" ").map((t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase())).join(" "),this.makeList=void 0,this.modelList=void 0,this.yearList=void 0,this.bodyTypeList=void 0,this.vehicleInfo=void 0,Q.vehicle$.subscribe((t=>this.vehicleInfo=t)),Q.makeList$.subscribe((t=>this.makeList=L(t,[]))),Q.modelList$.subscribe((t=>this.modelList=L(t,[]))),Q.yearList$.subscribe((t=>this.yearList=L(t,[]))),Q.bodyTypeList$.subscribe((t=>this.bodyTypeList=L(t,[])))}render(){return e(n,null,e("div",{class:"d-flex flex-column flex-wrap flex-md-row align-items-center justify-content-center h4"},e("div",{class:"d-flex align-items-center"},"Calculate my savings on a"),e("div",{class:"d-flex mx-2 my-2 my-md-0"},e("div",{class:"btn-group",role:"group","aria-label":"New or used vehicle"},e("button",{type:"button",class:{"btn btn-outline-dark px-5":!0,active:!this.isUsedCarSelected()},onClick:()=>{Z.setVehicleState("isUsedCarRequested",!1),G.trackInputChangedAsync({key:"isUsedCar",value:"false"})}},"New"),e("button",{type:"button",class:{"btn btn-outline-dark px-5":!0,active:this.isUsedCarSelected()},onClick:()=>{Z.setVehicleState("isUsedCarRequested",!0),G.trackInputChangedAsync({key:"isUsedCar",value:"true"})}},"Used"))),this.isUsedCarSelected()?e("div",{class:"d-flex flex-column flex-md-row align-items-center justify-content-center my-0 my-md-2 my-xl-0"},e("span",{class:"pr-0 pr-sm-2 d-flex text-center"},"vehicle, with a purchase price of"),e("input",{placeholder:"25000",type:"text",class:"form-control d-flex w-auto mt-2 mt-md-0",value:"$"+this.getVehicleInfo("approximatePrice"),onInput:t=>{const e=t.target;e.value=e.value.replace(/\D/g,"")},onFocus:t=>{const e=t.target;e.value=e.value.replace("$","")},onBlur:t=>{const e=t.target;e.value="$"+e.value},onChange:t=>{const e=t.target.value,i=(null==e?void 0:e.length)>0?parseFloat(e):null;Z.setVehicleState("approximatePrice",i),G.trackInputChangedAsync({key:"approximatePrice",value:String(i)})}})):e("div",{class:"d-flex align-items-center"},"vehicle")),e("div",{class:"d-flex flex-wrap flex-column flex-md-row align-items-center justify-content-center mt-5 h4"},e("div",{class:"d-flex align-items-center"},"I'm interested in a"),e("div",{class:"d-flex mx-2 my-2 my-md-0"},e("fl-dropdown",{options:this.makeList,requiredValidationMessage:"Select an option",placeholder:"select make",value:this.getVehicleInfo("makeId"),onValueChanged:t=>this.chooseMake(t.detail.label,t.detail.value)})),e("div",{class:"d-flex mx-2 my-2 my-md-0"},e("fl-dropdown",{options:this.modelList,requiredValidationMessage:"Select an option",placeholder:"select model",value:this.getVehicleInfo("modelId"),disabled:c(this.vehicleInfo.makeId),onValueChanged:t=>this.chooseModel(t.detail.label,t.detail.value)})),e("div",{class:"d-flex mx-2 my-2 my-xl-0"},e("fl-dropdown",{options:this.yearList,requiredValidationMessage:"Select an option",placeholder:"select year",value:this.getVehicleInfo("year"),disabled:c(this.vehicleInfo.modelId),onValueChanged:t=>this.chooseYear(t.detail.value)}))),e("div",{class:"d-flex align-items-center justify-content-center justify-content-md-start mt-5"},e("div",{class:"btn-group flex-wrap",role:"group","aria-label":"Body types"},this.bodyTypeList.map((t=>e("button",{type:"button",class:{"btn btn-sm btn-outline-dark px-5":!0,active:this.isBodyTypeSelected(t.value)},onClick:()=>this.chooseBodyType(t.label,t.value)},t.label))))))}async componentDidLoad(){var t;if((null===(t=this.makeList)||void 0===t?void 0:t.length)>0)return;const e=await T.getCarsMakes();Z.updateList("makeList",e.map((t=>({label:this.toCapitalCase(t.name),value:t.make_id})))),G.trackStepProgressedAsync({stepName:"carSelection"})}async chooseMake(t,e){var i;this.clearModelStates(),this.clearYearStates(),this.clearBodyTypeStates(),this.clearVariantsList(),0===(null===(i=this.modelList)||void 0===i?void 0:i.length)&&Z.updateList("modelList",(await T.getCarsModels(e)).map((t=>({label:this.toCapitalCase(t.model_code),value:t.model_id})))),Z.setVehicleState("make",t),Z.setVehicleState("makeId",e),G.trackInputChangedAsync({key:"make",value:t})}async chooseModel(t,e){var i;this.clearYearStates(),this.clearBodyTypeStates(),this.clearVariantsList(),0===(null===(i=this.yearList)||void 0===i?void 0:i.length)&&Z.updateList("yearList",(await T.getCarsModelYears(e)).sort().reverse().map((t=>({label:t.toString(),value:t})))),Z.setVehicleState("model",t),Z.setVehicleState("modelId",e),G.trackInputChangedAsync({key:"model",value:t})}async chooseYear(t){var e;this.clearBodyTypeStates(),this.clearVariantsList();const i=m(this.vehicleInfo.modelId);0===(null===(e=this.bodyTypeList)||void 0===e?void 0:e.length)&&Z.updateList("bodyTypeList",(await T.getCarsModelBodyTypes(i,t)).map((t=>({label:t.body_type,value:t.body_type_id})))),Z.setVehicleState("year",t),this.chooseBodyType(this.bodyTypeList[0].label,this.bodyTypeList[0].value),G.trackInputChangedAsync({key:"year",value:t.toString()})}async chooseBodyType(t,e){var i,n;this.clearVariantsList(),Z.setVehicleState("bodyType",t),Z.setVehicleState("bodyTypeId",e);const a=m(this.vehicleInfo.modelId),r=m(this.vehicleInfo.year),s=(await T.getCarsModelVariant(a,r,e)).map((async t=>{var e;const i=await T.getCarsVariantPhotos(t.variant_id);return{variantId:t.variant_id,description:t.short_description,buildYear:t.build_year,modelMonth:t.model_month,listPriceGross:t.list_price_gross,engineLitres:t.engine_litres,transmission:t.transmission,fuelTypeId:t.fuel_type_translation_id,photoUri:l(null===(e=null==i?void 0:i[0])||void 0===e?void 0:e.photo_uri)}})),o=[];try{for(var u,c=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise((function(n,a){!function(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)}(n,a,(e=t[i](e)).done,e.value)}))}}}(s);!(u=await c.next()).done;)o.push(u.value)}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=c.return)&&await n.call(c)}finally{if(i)throw i.error}}Z.updateList("modelVariantsList",o),G.trackStepProgressedAsync({stepName:"variantSelection"}),G.trackInputChangedAsync({key:"bodyType",value:t})}clearModelStates(){this.modelList=[],this.clearVehicleState("model"),this.clearVehicleState("modelId")}clearYearStates(){this.yearList=[],this.clearVehicleState("year")}clearBodyTypeStates(){this.bodyTypeList=[],this.clearVehicleState("bodyType"),this.clearVehicleState("bodyTypeId")}clearVariantsList(){Z.updateList("modelVariantsList",[])}clearVehicleState(t){Z.setVehicleState(t,null)}getVehicleInfo(t){return d(this.vehicleInfo[t],h((()=>"")))}isBodyTypeSelected(t){return d(this.vehicleInfo.bodyTypeId,u((()=>!1),(e=>e===t)))}isUsedCarSelected(){return d(this.vehicleInfo.isUsedCarRequested,h((()=>!1)))}},B=class{constructor(e){t(this,e),this.closed=a(this,"closed",7)}render(){return e(n,null,e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"col"},e("h3",null,"What happens next?"))),e("div",{class:"row"},e("div",{class:"col"},e("div",{class:"d-flex justify-content-center p-4"},e("img",{class:"img-fluid",src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNTM0IDMwMCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOnVybCgjbGluZWFyLWdyYWRpZW50KTt9LmNscy0ye2ZpbGw6IzAwOTVmMjt9LmNscy0ze2ZpbGw6IzhiNGZmZjt9LmNscy00e2ZpbGw6I2FiYmJlMjt9LmNscy01e2ZpbGw6I2E2NTBmZjt9LmNscy02e2ZpbGw6I2MwYWQ5Njt9LmNscy03e2ZpbGw6I2NiZDlmZDt9LmNscy04e2ZpbGw6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MzYuNDkgMTI3LjU3IDQ0Mi44NyAxMjMuNTMgNDUyLjA5IDEzOC4wOSA0NzAuMiAxMzIuNDQgNDcyLjQ1IDEzOS42NSA0NDguODEgMTQ3LjAyIi8+PC9nPjwvc3ZnPg==",alt:""})))),e("div",{class:"row"},e("div",{class:"col text-center"},e("p",null,"Thanks! We’ll contact you within the next business day to discuss your quote in more detail."))),e("div",{class:"row"},e("div",{class:"col text-center"},e("fl-button",{class:"font-weight-bold",onClick:()=>{var t;return null===(t=this.closed)||void 0===t?void 0:t.emit()}},"Close")))))}},V=class{constructor(e){t(this,e),this.quote=void 0}render(){return e(n,{class:"d-flex flex-column justify-content-between text-left mb-3"},e("span",{class:"pb-2"},"Here’s an estimate based on your kms:"),e("span",{class:"text-muted text-right"},"(per pay)"),this.generateLine("Finance",this.quote.financedAmount),this.generateLine("Fuel",this.quote.fuel),this.generateLine("Servicing and maintenance",this.quote.serviceAndMaintenance),this.generateLine("Registration and CTP",this.quote.registrationAndCtp),this.generateLine("Comprehensive insurance",this.quote.comprehensiveInsurance),this.generateLine("Management fee",this.quote.managementFee))}generateLine(t,i){return e("div",{class:"d-flex flex-row"},e("span",{class:"d-flex-inline flex-grow-1 text-left"},t),e("span",{class:"d-flex-inline text-right"},"$",L(i,null)))}},R=class{constructor(e){t(this,e)}render(){return e("div",{class:"bg-light p-4"},"Figures shown are estimates only and are based on an estimated driveaway price of the vehicle which includes dealer delivery, CTP, Rego and Stamp duty.")}},H=class{constructor(e){t(this,e),this.modalClosed=a(this,"modalClosed",7),this.isHidden=!0,this.show=void 0,this.modalTitle=void 0,this.showFooter=void 0,this.showHeader=void 0}componentDidRender(){this.show?this.showModal():this.hideModal()}componentDidLoad(){this.modal.addEventListener("mouseup",(t=>{t.target===this.modal&&this.hideModal()}))}render(){return e(n,null,e("div",{class:"modal fade overflow-auto",ref:t=>this.modal=t},e("div",{class:"modal-dialog modal-dialog-centered"},e("div",{class:"modal-content p-4"},this.showHeader?e("div",{class:"modal-header border-bottom-0 p-0"},e("h3",{class:"modal-title"},this.modalTitle),e("button",{type:"button",onClick:()=>this.hideModal(),class:"close"},e("span",{"aria-hidden":"true"},"×"))):e("div",null),e("div",{class:"modal-body p-0"},e("slot",null)),this.showFooter?e("div",{class:"modal-footer p-0 border-top-0 justify-content-center"},e("fl-button",{onClick:()=>this.hideModal(),variant:"secondary"},e("span",{class:"px-4"},"Close"))):e("div",null)))),e("div",{class:"modal-backdrop fade d-none",ref:t=>this.backdrop=t}))}showModal(){this.isHidden&&(this.modal.classList.add("show"),this.modal.style.display="block",this.backdrop.classList.remove("d-none"),this.backdrop.classList.add("show"),this.isHidden=!1)}hideModal(){var t;this.isHidden||(this.modal.classList.remove("show"),this.modal.style.display="none",this.backdrop.classList.add("d-none"),this.backdrop.classList.remove("show"),null===(t=this.modalClosed)||void 0===t||t.emit(),this.isHidden=!0)}};function F(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function X(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function q(t){X(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function J(t,e){X(2,arguments);var i=q(t).getTime(),n=F(e);return new Date(i+n)}function _(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function K(t){X(1,arguments);var e=q(t);return!isNaN(e)}var $={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function tt(t){return function(e){var i=e||{},n=i.width?String(i.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var et={date:tt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:tt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:tt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},it={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function nt(t){return function(e,i){var n,a=i||{};if("formatting"===(a.context?String(a.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,s=a.width?String(a.width):r;n=t.formattingValues[s]||t.formattingValues[r]}else{var o=t.defaultWidth,u=a.width?String(a.width):t.defaultWidth;n=t.values[u]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function at(t){return function(e,i){var n=String(e),a=i||{},r=a.width,s=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!s)return null;var o,u=s[0],c=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth];return o="[object Array]"===Object.prototype.toString.call(c)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(u))return e}(c):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(u))return e}(c),o=t.valueCallback?t.valueCallback(o):o,{value:o=a.valueCallback?a.valueCallback(o):o,rest:n.slice(u.length)}}}var rt,st={code:"en-US",formatDistance:function(t,e,i){var n;return i=i||{},n="string"==typeof $[t]?$[t]:1===e?$[t].one:$[t].other.replace("{{count}}",e),i.addSuffix?i.comparison>0?"in "+n:n+" ago":n},formatLong:et,formatRelative:function(t){return it[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:nt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:nt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:nt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:nt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:nt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(rt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var i=String(t),n=e||{},a=i.match(rt.matchPattern);if(!a)return null;var r=a[0],s=i.match(rt.parsePattern);if(!s)return null;var o=rt.valueCallback?rt.valueCallback(s[0]):s[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:i.slice(r.length)}}),era:at({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:at({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:at({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:at({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function ot(t,e){X(2,arguments);var i=F(e);return J(t,-i)}function ut(t,e){for(var i=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return i+n}function ct(t){X(1,arguments);var e=1,i=q(t),n=i.getUTCDay(),a=(n<e?7:0)+n-e;return i.setUTCDate(i.getUTCDate()-a),i.setUTCHours(0,0,0,0),i}function lt(t){X(1,arguments);var e=q(t),i=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(i+1,0,4),n.setUTCHours(0,0,0,0);var a=ct(n),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var s=ct(r);return e.getTime()>=a.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function dt(t){X(1,arguments);var e=lt(t),i=new Date(0);i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0);var n=ct(i);return n}function ht(t,e){X(1,arguments);var i=e||{},n=i.locale,a=n&&n.options&&n.options.weekStartsOn,r=null==a?0:F(a),s=null==i.weekStartsOn?r:F(i.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var o=q(t),u=o.getUTCDay(),c=(u<s?7:0)+u-s;return o.setUTCDate(o.getUTCDate()-c),o.setUTCHours(0,0,0,0),o}function Mt(t,e){X(1,arguments);var i=q(t,e),n=i.getUTCFullYear(),a=e||{},r=a.locale,s=r&&r.options&&r.options.firstWeekContainsDate,o=null==s?1:F(s),u=null==a.firstWeekContainsDate?o:F(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(n+1,0,u),c.setUTCHours(0,0,0,0);var l=ht(c,e),d=new Date(0);d.setUTCFullYear(n,0,u),d.setUTCHours(0,0,0,0);var h=ht(d,e);return i.getTime()>=l.getTime()?n+1:i.getTime()>=h.getTime()?n:n-1}function ft(t,e){X(1,arguments);var i=e||{},n=i.locale,a=n&&n.options&&n.options.firstWeekContainsDate,r=null==a?1:F(a),s=null==i.firstWeekContainsDate?r:F(i.firstWeekContainsDate),o=Mt(t,e),u=new Date(0);u.setUTCFullYear(o,0,s),u.setUTCHours(0,0,0,0);var c=ht(u,e);return c}var Lt={G:function(t,e,i){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var n=t.getUTCFullYear();return i.ordinalNumber(n>0?n:1-n,{unit:"year"})}return function(t,e){var i=t.getUTCFullYear(),n=i>0?i:1-i;return ut("yy"===e?n%100:n,e.length)}(t,e)},Y:function(t,e,i,n){var a=Mt(t,n),r=a>0?a:1-a;return"YY"===e?ut(r%100,2):"Yo"===e?i.ordinalNumber(r,{unit:"year"}):ut(r,e.length)},R:function(t,e){return ut(lt(t),e.length)},u:function(t,e){return ut(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return ut(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,i){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return ut(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,i){var n=t.getUTCMonth();switch(e){case"M":case"MM":return function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):ut(i+1,2)}(t,e);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,i){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return ut(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){var a=function(t,e){X(1,arguments);var i=q(t),n=ht(i,e).getTime()-ft(i,e).getTime();return Math.round(n/6048e5)+1}(t,n);return"wo"===e?i.ordinalNumber(a,{unit:"week"}):ut(a,e.length)},I:function(t,e,i){var n=function(t){X(1,arguments);var e=q(t),i=ct(e).getTime()-dt(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(n,{unit:"week"}):ut(n,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):function(t,e){return ut(t.getUTCDate(),e.length)}(t,e)},D:function(t,e,i){var n=function(t){X(1,arguments);var e=q(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime();return Math.floor((i-n)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(n,{unit:"dayOfYear"}):ut(n,e.length)},E:function(t,e,i){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,i,n){var a=t.getUTCDay(),r=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return ut(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(a,{width:"short",context:"formatting"});case"eeee":default:return i.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){var a=t.getUTCDay(),r=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return ut(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(a,{width:"narrow",context:"standalone"});case"cccccc":return i.day(a,{width:"short",context:"standalone"});case"cccc":default:return i.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,i){var n=t.getUTCDay(),a=0===n?7:n;switch(e){case"i":return String(a);case"ii":return ut(a,e.length);case"io":return i.ordinalNumber(a,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});case"iiii":default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,i){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,i){var n,a=t.getUTCHours();switch(n=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,i){var n,a=t.getUTCHours();switch(n=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return function(t,e){return ut(t.getUTCHours()%12||12,e.length)}(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):function(t,e){return ut(t.getUTCHours(),e.length)}(t,e)},K:function(t,e,i){var n=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(n,{unit:"hour"}):ut(n,e.length)},k:function(t,e,i){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?i.ordinalNumber(n,{unit:"hour"}):ut(n,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):function(t,e){return ut(t.getUTCMinutes(),e.length)}(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):function(t,e){return ut(t.getUTCSeconds(),e.length)}(t,e)},S:function(t,e){return function(t,e){var i=e.length,n=t.getUTCMilliseconds();return ut(Math.floor(n*Math.pow(10,i-3)),e.length)}(t,e)},X:function(t,e,i,n){var a=(n._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return yt(a);case"XXXX":case"XX":return pt(a);case"XXXXX":case"XXX":default:return pt(a,":")}},x:function(t,e,i,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return yt(a);case"xxxx":case"xx":return pt(a);case"xxxxx":case"xxx":default:return pt(a,":")}},O:function(t,e,i,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+mt(a,":");case"OOOO":default:return"GMT"+pt(a,":")}},z:function(t,e,i,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+mt(a,":");case"zzzz":default:return"GMT"+pt(a,":")}},t:function(t,e,i,n){return ut(Math.floor((n._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,n){return ut((n._originalDate||t).getTime(),e.length)}};function mt(t,e){var i=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),r=n%60;if(0===r)return i+String(a);var s=e||"";return i+String(a)+s+ut(r,2)}function yt(t,e){return t%60==0?(t>0?"-":"+")+ut(Math.abs(t)/60,2):pt(t,e)}function pt(t,e){var i=e||"",n=t>0?"-":"+",a=Math.abs(t);return n+ut(Math.floor(a/60),2)+i+ut(a%60,2)}function bt(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function wt(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var jt={p:wt,P:function(t,e){var i,n=t.match(/(P+)(p+)?/),a=n[1],r=n[2];if(!r)return bt(t,e);switch(a){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",bt(a,e)).replace("{{time}}",wt(r,e))}},vt=["D","DD"],gt=["YY","YYYY"];function xt(t){return-1!==vt.indexOf(t)}function Nt(t){return-1!==gt.indexOf(t)}function It(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"))}var St=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dt=/^'([^]*?)'?$/,Ct=/''/g,kt=/[a-zA-Z]/;function zt(t){return t.match(Dt)[1].replace(Ct,"'")}const Ot=new class{constructor(){Q.select(["user","vehicle"]).pipe(g(0)).subscribe((t=>this.attemptQuoteCalculationAsync(t.user,t.vehicle)))}selectVariant(t){Z.update((e=>({vehicle:Object.assign(Object.assign({},e.vehicle),{selectedVariant:t})})))}generateCarsEnquiryRequest(){const t=Q.vehicle,e=m(t.selectedVariant),i=Q.result,n=Q.userDetails,a=Q.user,r=I.isPaidCampaign,s=I.partnerId;return{chosenVariant:{variant_id:e.variantId,short_description:e.description,build_year:e.buildYear,model_month:e.modelMonth,list_price_gross:e.listPriceGross,engine_litres:e.engineLitres,fuel_type_translation_id:e.fuelTypeId,transmission:e.transmission},quoteRequest:{variantId:e.variantId,isUsedCarRequested:m(t.isUsedCarRequested),approximatePrice:L(t.approximatePrice,e.listPriceGross),annualSalaryGross:m(a.annualSalary),payPeriod:m(a.paymentPeriod),annualKm:m(a.annualKms),state:m(a.state),leaseTermInYears:m(a.term),employmentType:m(a.employmentType),isPaidCampaign:r,partnerId:s},websiteQuote:{afterTaxEffectPerPayCycle:m(i.afterTaxEffectPerPayCycle),totalTaxSavings:m(i.taxSaving),residualValueGross:m(i.residualValue),financedAmount:m(i.financedAmount),fuel:m(i.fuel),serviceAndMaintenance:m(i.serviceAndMaintenance),registrationAndCtp:m(i.registrationAndCtp),comprehensiveInsurance:m(i.comprehensiveInsurance),managementFee:m(i.managementFee)},contactDetails:{firstName:m(n.userFirstName),lastName:m(n.userLastName),email:m(n.emailAddress),mobileNumber:m(n.contactNumber),employerName:m(n.employerName)}}}async attemptQuoteCalculationAsync(t,e){if(!(M(t.annualKms)&&M(t.annualSalary)&&M(t.paymentPeriod)&&M(t.state)&&M(t.term)&&M(t.employmentType)&&M(e.selectedVariant)))return;const i=I.isPaidCampaign,n=I.partnerId;Z.updateQuote({afterTaxEffectPerPayCycle:s,taxSaving:s,residualValue:s,financedAmount:s,fuel:s,serviceAndMaintenance:s,registrationAndCtp:s,comprehensiveInsurance:s,managementFee:s,quoteState:"Calculation pending"});const a=m(e.selectedVariant),r=m(e.isUsedCarRequested)?L(e.approximatePrice,a.listPriceGross):a.listPriceGross,u={variantId:a.variantId,isUsedCarRequested:m(e.isUsedCarRequested),approximatePrice:r,annualSalaryGross:m(t.annualSalary),payPeriod:m(t.paymentPeriod),annualKm:m(t.annualKms),state:m(t.state),leaseTermInYears:m(t.term),employmentType:m(t.employmentType),isPaidCampaign:i,partnerId:n},c=await T.postCarsQuoteResult(u),l={afterTaxEffectPerPayCycle:o(c.afterTaxEffectPerPayCycle),taxSaving:o(c.totalTaxSavings),residualValue:o(c.residualValueGross),financedAmount:o(c.financedAmount),fuel:o(c.fuel),serviceAndMaintenance:o(c.serviceAndMaintenance),registrationAndCtp:o(c.registrationAndCtp),comprehensiveInsurance:o(c.comprehensiveInsurance),managementFee:o(c.managementFee),quoteState:"Calculated"};Z.updateQuote(l)}},Et=new class{set topElement(t){this._topElement=p.fromNullable(t)}get topElement(){if(p.isNone(this._topElement))throw Error("Top element is not set");return this._topElement.value}scrollToTop(){window.scrollBy({top:this.topElement.getBoundingClientRect().y,behavior:"smooth"})}},Yt=class{constructor(e){t(this,e),this.placeholderImage=i("./assets/car-placeholder.svg"),this.variantsList=[],this.selectedVariant=s}componentWillLoad(){Q.selectedVariant$.subscribe((t=>{this.selectedVariant=t})),Q.modelVariantsList$.subscribe((t=>{this.variantsList=L(t,[])}))}render(){return e(n,{class:"d-flex flex-column justify-content-start align-items-center abe-fade-in-bottom"},c(this.selectedVariant)?this.variantsList.length>0?this.variantsList.map((t=>this.variantCard(t,!1))):e("fl-loading-indicator",{class:"mt-5"}):this.variantCard(this.selectedVariant.value,!0))}variantCard(t,i){const n=L(t.photoUri,this.placeholderImage);return e("div",{class:"card d-flex w-100 flex-row justify-content-between align-items-center mt-3"},e("img",{class:"abe-car-icon mx-4 d-none d-md-flex",src:n,alt:"",onError:t=>this.handleImgError(t)}),e("div",{class:"d-flex flex-column align-items-start flex-grow-1 px-3 py-2 p-md-0"},e("h5",{class:"card-title text-capitalize mb-0"},(t=>`${t.description.toLowerCase().trimEnd()}, ${(t=>`${t.engineLitres}L ${(t=>{switch(parseInt(t.toString())){case 100029:case 100032:return"Diesel";case 100035:return"Electric";case 100030:case 100031:return"LPG";case 100033:case 100034:return"Petrol";default:return""}})(t.fuelTypeId)}`.trimEnd())(t)}, ${t.transmission.toLowerCase()}`)(t)),e("p",{class:"card-text text-muted"},"Built from ",this.toMonthName(t.modelMonth)," ",t.buildYear)),i?e("fl-button",{class:"ml-3 mr-4",variant:"secondary",onClick:()=>this.resetVariant()},e("span",{class:"px-3"},"Change")):e("fl-button",{class:"ml-3 mr-4",onClick:()=>this.chooseVariant(t)},e("span",{class:"px-3"},"Select")))}toMonthName(t){return function(t,e,i){X(2,arguments);var n=String(e),a=i||{},r=a.locale||st,s=r.options&&r.options.firstWeekContainsDate,o=null==s?1:F(s),u=null==a.firstWeekContainsDate?o:F(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=r.options&&r.options.weekStartsOn,l=null==c?0:F(c),d=null==a.weekStartsOn?l:F(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!r.localize)throw new RangeError("locale must contain localize property");if(!r.formatLong)throw new RangeError("locale must contain formatLong property");var h=q(t);if(!K(h))throw new RangeError("Invalid time value");var M=_(h),f=ot(h,M),L={firstWeekContainsDate:u,weekStartsOn:d,locale:r,_originalDate:h};return n.match(Tt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,jt[e])(t,r.formatLong,L):t})).join("").match(St).map((function(i){if("''"===i)return"'";var n=i[0];if("'"===n)return zt(i);var s=Lt[n];if(s)return!a.useAdditionalWeekYearTokens&&Nt(i)&&It(i,e,t),!a.useAdditionalDayOfYearTokens&&xt(i)&&It(i,e,t),s(f,i,r.localize,L);if(n.match(kt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return i})).join("")}((new Date).setMonth(t),"MMMM")}resetVariant(){Ot.selectVariant(s),G.trackStepProgressedAsync({stepName:"variantSelection"})}chooseVariant(t){Et.scrollToTop(),Ot.selectVariant(o(t)),G.trackStepProgressedAsync({stepName:"leaseInformation"}),G.trackInputChangedAsync({key:"variant",value:t.description})}handleImgError(t){t.target.src=this.placeholderImage}static get assetsDirs(){return["assets"]}};Yt.style=".abe-car-icon{max-width:120px;height:80px;-o-object-fit:contain;object-fit:contain}.abe-fade-in-bottom{-webkit-animation:fade-in-bottom 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:fade-in-bottom 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both}@-webkit-keyframes fade-in-bottom{0%{-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes fade-in-bottom{0%{-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}";const At=class{constructor(e){t(this,e),this.terms=[...Array(5).keys()].map((t=>t+1)).map((t=>({label:`${t} Year${t>1?"s":""}`,value:t}))),this.states=["ACT","NSW","NT","QLD","SA","TAS","VIC","WA"],this.paymentPeriods=["Monthly","Fortnightly","Weekly"],this.employmentTypes=["Full-time","Part-time","Casual","Contractor","Other"],this.userInfo=void 0,Q.user$.subscribe((t=>this.userInfo=t))}render(){return e(n,{class:"d-flex flex-column align-items-start justify-content-between"},e("div",{class:"d-flex flex-column flex-lg-row align-items-start align-items-lg-center justify-content-center mt-2 h4"},e("span",{class:"pr-0 pr-sm-2 d-flex text-center"},"My annual salary before tax is"),e("input",{placeholder:"50000",type:"text",class:"form-control d-flex w-auto mt-2 mt-lg-0",value:"$"+this.getUserInfo("annualSalary"),onInput:t=>{const e=t.target;e.value=e.value.replace(/\D/g,"")},onFocus:t=>{const e=t.target;e.value=e.value.replace("$","")},onBlur:t=>{const e=t.target;e.value="$"+e.value},onChange:t=>this.updateUserInfo("annualSalary",parseFloat(t.target.value.trim()))})),e("div",{class:"d-flex flex-column flex-lg-row align-items-start align-items-lg-center justify-content-center mt-4 h4"},e("span",{class:"pr-0 pr-sm-2 d-flex text-center"},"I get paid"),e("fl-dropdown",{class:"d-flex my-2 my-lg-0",options:y(this.paymentPeriods),requiredValidationMessage:"Select an option",placeholder:"Select...",value:this.getUserInfo("paymentPeriod"),onValueChanged:t=>this.updateUserInfo("paymentPeriod",t.detail.value)})),e("div",{class:"d-flex flex-column flex-lg-row align-items-start align-items-lg-center justify-content-center mt-4 h4"},e("span",{class:"pr-0 pr-sm-2 d-flex text-center"},"Every year I expect to drive"),e("input",{placeholder:"10000",type:"text",class:"form-control d-flex w-auto mt-2 mt-lg-0",value:this.getUserInfo("annualKms")+" km",onInput:t=>{const e=t.target;e.value=e.value.replace(/\D/g,"")},onFocus:t=>{const e=t.target;e.value=e.value.replace(" km","")},onBlur:t=>{t.target.value+=" km"},onChange:t=>this.updateUserInfo("annualKms",parseInt(t.target.value.trim()))})),e("div",{class:"d-flex flex-column flex-lg-row align-items-start align-items-lg-center justify-content-center mt-4 h4"},e("span",{class:"pr-0 pr-sm-2 d-flex text-center"},"I live in"),e("fl-dropdown",{class:"d-flex my-2 my-lg-0",options:y(this.states),requiredValidationMessage:"Select an option",placeholder:"select state",value:this.getUserInfo("state"),onValueChanged:t=>this.updateUserInfo("state",t.detail.value)})),e("div",{class:"d-flex flex-column flex-lg-row align-items-start align-items-lg-center justify-content-center mt-4 h4"},e("span",{class:"pr-0 pr-sm-2 d-flex text-center"},"I want my lease term to be"),e("fl-dropdown",{class:"d-flex my-2 my-lg-0",options:this.terms,requiredValidationMessage:"Select an option",placeholder:"Select...",value:this.getUserInfo("term"),onValueChanged:t=>this.updateUserInfo("term",t.detail.value)})),e("div",{class:"d-flex flex-column flex-lg-row align-items-start align-items-lg-center justify-content-center mt-4 h4"},e("span",{class:"pr-0 pr-sm-2 d-flex text-center"},"Employment Type"),e("fl-dropdown",{class:"d-flex my-2 my-lg-0",options:y(this.employmentTypes),requiredValidationMessage:"Select an option",placeholder:"Select...",value:this.getUserInfo("employmentType"),onValueChanged:t=>this.updateUserInfo("employmentType",t.detail.value)})))}updateUserInfo(t,e){Z.update({user:Object.assign(Object.assign({},this.userInfo),{[t]:o(e)})}),G.trackInputChangedAsync({key:t,value:e.toString()})}getUserInfo(t){return d(this.userInfo[t],f((()=>"")))}},Pt=class{constructor(n){t(this,n),this.enquire=a(this,"enquire",7),this.continue=a(this,"continue",7),this.breakdownModal=a(this,"breakdownModal",7),this.renderQuoteField=t=>{var i;return e("span",null,"$","Calculation pending"===this.quote.quoteState?e("fl-loading-indicator",{class:"ml-2"}):null===(i=L(t,null))||void 0===i?void 0:i.toFixed(0))},this.getRenderedPaymentPeriod=()=>{let t="month";switch(h((()=>"Monthly"))(Q.user.paymentPeriod)){case"Monthly":t="month";break;case"Fortnightly":t="fortnight";break;case"Weekly":t="week"}return`Cost per ${t}`},this.leaseInclusion=t=>e("p",{class:"font-weight-light d-inline-flex align-items-center"},e("img",{class:"pr-1",src:i("./assets/check.svg")}),t.inclusionName),this.isResultQuoteModal=void 0,this.isPaidCampaign=void 0,this.quote=void 0}render(){const t=!this.isPaidCampaign||this.isPaidCampaign&&this.isResultQuoteModal;return e(n,null,this.isResultQuoteModal&&e("div",{class:"mb-2 font-weight-bold"},e("h2",{class:"font-weight-bold"},"Your savings estimate"),e("span",null,"Here's an estimate based on your input")),e("div",{class:"card d-flex flex-column justify-content-between w-100 h-100"},e("div",{class:"d-flex flex-column flex-grow-1 justify-content-between p-4"},e("span",{class:"mb-3 text-left"},!t&&e("p",{class:"blur h1 text-muted font-weight-bold mb-0"},"$0000"),t&&e("p",{class:"h1 text-muted font-weight-bold mb-0"},this.renderQuoteField(this.quote.afterTaxEffectPerPayCycle)),e("p",{class:"mb-0 pt-1 h5"},e("span",{ref:t=>this.costTitleElement=t},this.getRenderedPaymentPeriod(),e("ap-ben-asset",{class:"pl-2",image:"icon-info.svg"})),e("ap-ben-tooltip",{target:this.costTitleElement,style:{"max-width":"15rem"}},e("p",{class:"px-3 h6 py-2 mb-0 text-left text-break text-wrap"},"The cost to you each pay cycle including all running costs.")))),e("span",{class:"mb-3 text-left"},!t&&e("p",{class:"blur h1 text-info font-weight-bold mb-0"},"$0000"),t&&e("p",{class:"h1 text-info font-weight-bold mb-0"},this.renderQuoteField(this.quote.taxSaving)),e("p",{class:"mb-0 pt-1 h5"},e("span",{ref:t=>this.totalSavingsTitleElement=t},"Total tax savings",e("ap-ben-asset",{class:"pl-2",image:"icon-info.svg"})),e("ap-ben-tooltip",{target:this.totalSavingsTitleElement,style:{"max-width":"15rem"}},e("p",{class:"px-3 h6 py-2 mb-0 text-left text-break text-wrap"},"The total amount you will save over the life of your lease term by salary packaging this vehicle.")))),e("span",{class:"mb-3 text-left"},!t&&e("p",{class:"blur h1 text-muted font-weight-bold mb-0"},"$0000"),t&&e("p",{class:"h1 text-muted font-weight-bold mb-0"},this.renderQuoteField(this.quote.residualValue)),e("p",{class:"mb-0 pt-1 h5"},e("span",{ref:t=>this.residualValueTitleElement=t},"Residual value",e("ap-ben-asset",{class:"pl-2",image:"icon-info.svg"})),e("ap-ben-tooltip",{target:this.residualValueTitleElement,style:{"max-width":"15rem"}},e("p",{class:"px-3 h6 py-2 mb-0 text-left text-break text-wrap"},"The outstanding amount at the end of the lease term.")))),!this.isResultQuoteModal&&e("fl-button",{class:"mt-2",isBlockElement:!0,onClick:()=>{var t;null===(t=this.enquire)||void 0===t||t.emit(),G.trackStepProgressedAsync({stepName:"quote"}),G.trackModalViewedAsync({modal:"quoteRequest"})}},this.isPaidCampaign&&e("span",null,"See savings estimate"),!this.isPaidCampaign&&e("span",null,"Enquire now"))),e("div",{class:"bg-light px-4 py-3"},e("p",{class:"font-weight-bold text-center"},"Your lease includes"),e("div",{class:"d-flex flex-row align-items-center justify-content-between"},e("span",{class:"d-flex flex-column"},e(this.leaseInclusion,{inclusionName:"Finance"}),e(this.leaseInclusion,{inclusionName:"Servicing"})),e("span",{class:"d-flex flex-column"},e(this.leaseInclusion,{inclusionName:"Insurance"}),e(this.leaseInclusion,{inclusionName:"Registration"})),e("span",{class:"d-flex flex-column"},e(this.leaseInclusion,{inclusionName:"Fuel"}),e(this.leaseInclusion,{inclusionName:"Tyres"}))),e("div",{class:this.isPaidCampaign?"invisible":"visible"},e("fl-button",{isBlockElement:!0,outline:!1,variant:"secondary",onClick:()=>{var t;null===(t=this.breakdownModal)||void 0===t||t.emit(),G.trackModalViewedAsync({modal:"runningCostBreakdown"})}},"View running cost breakdown")))),this.isResultQuoteModal&&e("button",{class:"mt-4 hydrated btn position-relative px-3 py-2 is-primary btn-block",onClick:()=>{var t;null===(t=this.continue)||void 0===t||t.emit()}},e("span",{class:"h3"},"Continue")),this.isResultQuoteModal&&e("div",{class:"row my-4"},e("div",{class:"col-12"},e("ap-ben-disclaimer",null))))}static get assetsDirs(){return["assets"]}};Pt.style=".blur{-webkit-filter:blur(0.375rem);filter:blur(0.375rem)}";const Wt=class{constructor(i){t(this,i),this.renderPersonalDetailsModal=()=>this.showCompletePage?e("ap-ben-complete-section",{onClosed:()=>{this.showPersonalDetailsModal=!1,this.showCompletePage=!1}}):e("ap-ben-submit-quote-section",{onEnquirySubmitted:()=>{I.isPaidCampaign?(this.showResultQuoteModal=!0,this.showPersonalDetailsModal=!1):this.showCompletePage=!0}}),this.quote=void 0,this.showPersonalDetailsModal=!1,this.showBreakdownModal=!1,this.showCompletePage=!1,this.showResultQuoteModal=!1}componentWillLoad(){this.subscription=Q.result$.subscribe((()=>{this.quote=Q.result}))}disconnectedCallback(){this.subscription.unsubscribe()}render(){return e(n,null,e("ap-ben-quote-card-section",{isResultQuoteModal:!1,isPaidCampaign:I.isPaidCampaign,quote:this.quote,onEnquire:()=>{this.showPersonalDetailsModal=!0},onBreakdownModal:()=>{this.showBreakdownModal=!0}}),e("ap-ben-modal-section",{show:this.showPersonalDetailsModal,showHeader:!0,onModalClosed:()=>{this.showPersonalDetailsModal=!1,this.showCompletePage=!1,G.trackStepProgressedAsync({stepName:"leaseInformation"}),G.trackModalClosedAsync({modal:"quoteRequest"})}},e(this.renderPersonalDetailsModal,null)),e("ap-ben-modal-section",{show:this.showResultQuoteModal,showHeader:!0,onModalClosed:()=>{this.showResultQuoteModal=!1}},e("ap-ben-quote-card-section",{isResultQuoteModal:!0,isPaidCampaign:I.isPaidCampaign,quote:this.quote,onContinue:()=>{this.showResultQuoteModal=!1,this.showPersonalDetailsModal=!0,this.showCompletePage=!0}})),e("ap-ben-modal-section",{show:this.showBreakdownModal,modalTitle:"Running cost breakdown",onModalClosed:()=>{this.showBreakdownModal=!1,G.trackModalClosedAsync({modal:"runningCostBreakdown"})},showHeader:!0,showFooter:!0},e("ap-ben-cost-breakdown-section",{quote:this.quote})))}static get assetsDirs(){return["assets"]}},Zt=class{constructor(e){t(this,e),this.enquirySubmitted=a(this,"enquirySubmitted",7),this.userDetails=void 0,this.formState=void 0,Q.userDetails$.subscribe((t=>this.userDetails=t))}render(){return e("div",{class:"container p-0 text-left"},e("form",{noValidate:!0,class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("div",{class:"row"},e("div",{class:"col"},e("h3",null,"Enquire now"))),e("div",{class:"row"},e("div",{class:"col"},e("p",null,"Enter your details below and we will get in touch."))),e("div",{class:"row mt-3"},this.inputField("userFirstName","First Name","text"),this.inputField("userLastName","Last Name","text")),e("div",{class:"row mt-3"},this.inputField("emailAddress","Email","email")),e("div",{class:"row mt-3"},this.inputField("contactNumber","Mobile Number","tel",/\+?[\d\s]{5,}/),this.inputField("employerName","Employer Name","text"))),e("div",{class:"row mt-4"},e("div",{class:"col"},e("fl-promise-button",{class:"font-weight-bold float-right",promiseFn:()=>this.handleSubmitAsync()},e("span",{class:"px-4"},"Submit")))),e("div",{class:"row mt-4"},e("div",{class:"col"},e("div",{class:"bg-light py-2 px-3"},e("p",{class:"small mb-0"},"By providing your contact details, you consent to Flare collecting and using your personal details as outlined in the"," ",e("a",{target:"_blank",href:"https://www.flarehr.com/privacy-policy/",onClick:()=>G.trackPrivacyPolicyViewedAsync()},"privacy policy"),".")))))}inputField(t,i,n,a){return e("div",{class:"col"},e("input",{placeholder:i,type:n,class:"form-control",minlength:"2",pattern:null==a?void 0:a.source,required:!0,onChange:e=>{this.updateUserDetail(t,e.target.value.trim())}}),e("div",{class:"invalid-feedback"},"A valid value is required"))}updateUserDetail(t,e){Z.update({userDetails:Object.assign(Object.assign({},this.userDetails),{[t]:o(e)})})}async handleSubmitAsync(){var t;if(this.formState="validated",this.formElement.checkValidity()){const e=Ot.generateCarsEnquiryRequest();await T.postQuoteInfoAsync(e),null===(t=this.enquirySubmitted)||void 0===t||t.emit(),G.trackFormSubmittedAsync(e.websiteQuote)}}};var Qt="top",Gt="bottom",Ut="right",Bt="left",Vt=[Qt,Gt,Ut,Bt],Rt=Vt.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),Ht=[].concat(Vt,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),Ft=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xt(t){return t?(t.nodeName||"").toLowerCase():null}function qt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Jt(t){return t instanceof qt(t).Element||t instanceof Element}function _t(t){return t instanceof qt(t).HTMLElement||t instanceof HTMLElement}function Kt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof qt(t).ShadowRoot||t instanceof ShadowRoot)}function $t(t){return t.split("-")[0]}var te=Math.max,ee=Math.min,ie=Math.round;function ne(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function ae(){return!/^((?!chrome|android).)*safari/i.test(ne())}function re(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),a=1,r=1;e&&_t(t)&&(a=t.offsetWidth>0&&ie(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&ie(n.height)/t.offsetHeight||1);var s=(Jt(t)?qt(t):window).visualViewport,o=!ae()&&i,u=(n.left+(o&&s?s.offsetLeft:0))/a,c=(n.top+(o&&s?s.offsetTop:0))/r,l=n.width/a,d=n.height/r;return{width:l,height:d,top:c,right:u+l,bottom:c+d,left:u,x:u,y:c}}function se(t){var e=re(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function oe(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Kt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ue(t){return qt(t).getComputedStyle(t)}function ce(t){return["table","td","th"].indexOf(Xt(t))>=0}function le(t){return((Jt(t)?t.ownerDocument:t.document)||window.document).documentElement}function de(t){return"html"===Xt(t)?t:t.assignedSlot||t.parentNode||(Kt(t)?t.host:null)||le(t)}function he(t){return _t(t)&&"fixed"!==ue(t).position?t.offsetParent:null}function Me(t){for(var e=qt(t),i=he(t);i&&ce(i)&&"static"===ue(i).position;)i=he(i);return i&&("html"===Xt(i)||"body"===Xt(i)&&"static"===ue(i).position)?e:i||function(t){var e=/firefox/i.test(ne());if(/Trident/i.test(ne())&&_t(t)&&"fixed"===ue(t).position)return null;var i=de(t);for(Kt(i)&&(i=i.host);_t(i)&&["html","body"].indexOf(Xt(i))<0;){var n=ue(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function fe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Le(t,e,i){return te(t,ee(e,i))}function me(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ye(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function pe(t){return t.split("-")[1]}var be={top:"auto",right:"auto",bottom:"auto",left:"auto"};function we(t){var e,i=t.popper,n=t.popperRect,a=t.placement,r=t.variation,s=t.offsets,o=t.position,u=t.gpuAcceleration,c=t.adaptive,l=t.roundOffsets,d=t.isFixed,h=s.x,M=void 0===h?0:h,f=s.y,L=void 0===f?0:f,m="function"==typeof l?l({x:M,y:L}):{x:M,y:L};M=m.x,L=m.y;var y=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),b=Bt,w=Qt,j=window;if(c){var v=Me(i),g="clientHeight",x="clientWidth";v===qt(i)&&"static"!==ue(v=le(i)).position&&"absolute"===o&&(g="scrollHeight",x="scrollWidth"),v=v,(a===Qt||(a===Bt||a===Ut)&&"end"===r)&&(w=Gt,L-=(d&&v===j&&j.visualViewport?j.visualViewport.height:v[g])-n.height,L*=u?1:-1),a!==Bt&&(a!==Qt&&a!==Gt||"end"!==r)||(b=Ut,M-=(d&&v===j&&j.visualViewport?j.visualViewport.width:v[x])-n.width,M*=u?1:-1)}var N,I=Object.assign({position:o},c&&be),S=!0===l?function(t){var e=t.y,i=window.devicePixelRatio||1;return{x:ie(t.x*i)/i||0,y:ie(e*i)/i||0}}({x:M,y:L}):{x:M,y:L};return M=S.x,L=S.y,Object.assign({},I,u?((N={})[w]=p?"0":"",N[b]=y?"0":"",N.transform=(j.devicePixelRatio||1)<=1?"translate("+M+"px, "+L+"px)":"translate3d("+M+"px, "+L+"px, 0)",N):((e={})[w]=p?L+"px":"",e[b]=y?M+"px":"",e.transform="",e))}var je={passive:!0},ve={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(t){return t.replace(/left|right|bottom|top/g,(function(t){return ve[t]}))}var xe={start:"end",end:"start"};function Ne(t){return t.replace(/start|end/g,(function(t){return xe[t]}))}function Ie(t){var e=qt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Se(t){return re(le(t)).left+Ie(t).scrollLeft}function Te(t){var e=ue(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function De(t){return["html","body","#document"].indexOf(Xt(t))>=0?t.ownerDocument.body:_t(t)&&Te(t)?t:De(de(t))}function Ce(t,e){var i;void 0===e&&(e=[]);var n=De(t),a=n===(null==(i=t.ownerDocument)?void 0:i.body),r=qt(n),s=a?[r].concat(r.visualViewport||[],Te(n)?n:[]):n,o=e.concat(s);return a?o:o.concat(Ce(de(s)))}function ke(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ze(t,e,i){return"viewport"===e?ke(function(t,e){var i=qt(t),n=le(t),a=i.visualViewport,r=n.clientWidth,s=n.clientHeight,o=0,u=0;if(a){r=a.width,s=a.height;var c=ae();(c||!c&&"fixed"===e)&&(o=a.offsetLeft,u=a.offsetTop)}return{width:r,height:s,x:o+Se(t),y:u}}(t,i)):Jt(e)?function(t,e){var i=re(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ke(function(t){var e,i=le(t),n=Ie(t),a=null==(e=t.ownerDocument)?void 0:e.body,r=te(i.scrollWidth,i.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=te(i.scrollHeight,i.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+Se(t),u=-n.scrollTop;return"rtl"===ue(a||i).direction&&(o+=te(i.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:o,y:u}}(le(t)))}function Oe(t){var e,i=t.reference,n=t.element,a=t.placement,r=a?$t(a):null,s=a?pe(a):null,o=i.x+i.width/2-n.width/2,u=i.y+i.height/2-n.height/2;switch(r){case Qt:e={x:o,y:i.y-n.height};break;case Gt:e={x:o,y:i.y+i.height};break;case Ut:e={x:i.x+i.width,y:u};break;case Bt:e={x:i.x-n.width,y:u};break;default:e={x:i.x,y:i.y}}var c=r?fe(r):null;if(null!=c){var l="y"===c?"height":"width";switch(s){case"start":e[c]=e[c]-(i[l]/2-n[l]/2);break;case"end":e[c]=e[c]+(i[l]/2-n[l]/2)}}return e}function Ee(t,e){void 0===e&&(e={});var i=e.placement,n=void 0===i?t.placement:i,a=e.strategy,r=void 0===a?t.strategy:a,s=e.boundary,o=void 0===s?"clippingParents":s,u=e.rootBoundary,c=void 0===u?"viewport":u,l=e.elementContext,d=void 0===l?"popper":l,h=e.altBoundary,M=void 0!==h&&h,f=e.padding,L=void 0===f?0:f,m=me("number"!=typeof L?L:ye(L,Vt)),y=t.rects.popper,p=t.elements[M?"popper"===d?"reference":"popper":d],b=function(t,e,i,n){var a="clippingParents"===e?function(t){var e=Ce(de(t)),i=["absolute","fixed"].indexOf(ue(t).position)>=0&&_t(t)?Me(t):t;return Jt(i)?e.filter((function(t){return Jt(t)&&oe(t,i)&&"body"!==Xt(t)})):[]}(t):[].concat(e),r=[].concat(a,[i]),s=r.reduce((function(e,i){var a=ze(t,i,n);return e.top=te(a.top,e.top),e.right=ee(a.right,e.right),e.bottom=ee(a.bottom,e.bottom),e.left=te(a.left,e.left),e}),ze(t,r[0],n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Jt(p)?p:p.contextElement||le(t.elements.popper),o,c,r),w=re(t.elements.reference),j=Oe({reference:w,element:y,strategy:"absolute",placement:n}),v=ke(Object.assign({},y,j)),g="popper"===d?v:w,x={top:b.top-g.top+m.top,bottom:g.bottom-b.bottom+m.bottom,left:b.left-g.left+m.left,right:g.right-b.right+m.right},N=t.modifiersData.offset;if("popper"===d&&N){var I=N[n];Object.keys(x).forEach((function(t){var e=[Ut,Gt].indexOf(t)>=0?1:-1,i=[Qt,Gt].indexOf(t)>=0?"y":"x";x[t]+=I[i]*e}))}return x}function Ye(t,e){void 0===e&&(e={});var i=e.boundary,n=e.rootBoundary,a=e.padding,r=e.flipVariations,s=e.allowedAutoPlacements,o=void 0===s?Ht:s,u=pe(e.placement),c=u?r?Rt:Rt.filter((function(t){return pe(t)===u})):Vt,l=c.filter((function(t){return o.indexOf(t)>=0}));0===l.length&&(l=c);var d=l.reduce((function(e,r){return e[r]=Ee(t,{placement:r,boundary:i,rootBoundary:n,padding:a})[$t(r)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}function Ae(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Pe(t){return[Qt,Ut,Gt,Bt].some((function(e){return t[e]>=0}))}function We(t,e,i){void 0===i&&(i=!1);var n,a,r=_t(e),s=_t(e)&&function(t){var e=t.getBoundingClientRect(),i=ie(e.width)/t.offsetWidth||1,n=ie(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),o=le(e),u=re(t,s,i),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!i)&&(("body"!==Xt(e)||Te(o))&&(c=(n=e)!==qt(n)&&_t(n)?{scrollLeft:(a=n).scrollLeft,scrollTop:a.scrollTop}:Ie(n)),_t(e)?((l=re(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Se(o))),{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}function Ze(t){var e=new Map,i=new Set,n=[];function a(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&a(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||a(t)})),n}var Qe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ge(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ue(t){void 0===t&&(t={});var e=t.defaultModifiers,i=void 0===e?[]:e,n=t.defaultOptions,a=void 0===n?Qe:n;return function(t,e,n){void 0===n&&(n=a);var r,s,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qe,a),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},u=[],c=!1,l={state:o,setOptions:function(n){var r="function"==typeof n?n(o.options):n;d(),o.options=Object.assign({},a,o.options,r),o.scrollParents={reference:Jt(t)?Ce(t):t.contextElement?Ce(t.contextElement):[],popper:Ce(e)};var s,c,h=function(t){var e=Ze(t);return Ft.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((s=[].concat(i,o.options.modifiers),c=s.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return o.orderedModifiers=h.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.options,i=t.effect;if("function"==typeof i){var n=i({state:o,name:t.name,instance:l,options:void 0===e?{}:e});u.push(n||function(){})}})),l.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(Ge(e,i)){o.rects={reference:We(e,Me(i),"fixed"===o.options.strategy),popper:se(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var a=o.orderedModifiers[n],r=a.fn,s=a.options;"function"==typeof r&&(o=r({state:o,options:void 0===s?{}:s,name:a.name,instance:l})||o)}else o.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(t){l.forceUpdate(),t(o)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(r())}))}))),s}),destroy:function(){d(),c=!0}};if(!Ge(t,e))return l;function d(){u.forEach((function(t){return t()})),u=[]}return l.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),l}}var Be=Ue({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,a=n.scroll,r=void 0===a||a,s=n.resize,o=void 0===s||s,u=qt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,je)})),o&&u.addEventListener("resize",i.update,je),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,je)})),o&&u.removeEventListener("resize",i.update,je)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=Oe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,a=void 0===n||n,r=i.adaptive,s=void 0===r||r,o=i.roundOffsets,u=void 0===o||o,c={placement:$t(e.placement),variation:pe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,we(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,we(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},a=e.elements[t];_t(a)&&Xt(a)&&(Object.assign(a.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?a.removeAttribute(t):a.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],a=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});_t(n)&&Xt(n)&&(Object.assign(n.style,r),Object.keys(a).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.name,n=t.options.offset,a=void 0===n?[0,0]:n,r=Ht.reduce((function(t,i){return t[i]=function(t,e,i){var n=$t(t),a=[Bt,Qt].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},e,{placement:t})):i,s=r[0],o=r[1];return s=s||0,o=(o||0)*a,[Bt,Ut].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}(i,e.rects,a),t}),{}),s=r[e.placement],o=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s.x,e.modifiersData.popperOffsets.y+=o),e.modifiersData[i]=r}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=i.mainAxis,r=void 0===a||a,s=i.altAxis,o=void 0===s||s,u=i.fallbackPlacements,c=i.padding,l=i.boundary,d=i.rootBoundary,h=i.altBoundary,M=i.flipVariations,f=void 0===M||M,L=i.allowedAutoPlacements,m=e.options.placement,y=$t(m),p=u||(y!==m&&f?function(t){if("auto"===$t(t))return[];var e=ge(t);return[Ne(t),e,Ne(e)]}(m):[ge(m)]),b=[m].concat(p).reduce((function(t,i){return t.concat("auto"===$t(i)?Ye(e,{placement:i,boundary:l,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:L}):i)}),[]),w=e.rects.reference,j=e.rects.popper,v=new Map,g=!0,x=b[0],N=0;N<b.length;N++){var I=b[N],S=$t(I),T="start"===pe(I),D=[Qt,Gt].indexOf(S)>=0,C=D?"width":"height",k=Ee(e,{placement:I,boundary:l,rootBoundary:d,altBoundary:h,padding:c}),z=D?T?Ut:Bt:T?Gt:Qt;w[C]>j[C]&&(z=ge(z));var O=ge(z),E=[];if(r&&E.push(k[S]<=0),o&&E.push(k[z]<=0,k[O]<=0),E.every((function(t){return t}))){x=I,g=!1;break}v.set(I,E)}if(g)for(var Y=function(t){var e=b.find((function(e){var i=v.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return x=e,"break"},A=f?3:1;A>0&&"break"!==Y(A);A--);e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,a=i.mainAxis,r=void 0===a||a,s=i.altAxis,o=void 0!==s&&s,u=i.tether,c=void 0===u||u,l=i.tetherOffset,d=void 0===l?0:l,h=Ee(e,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),M=$t(e.placement),f=pe(e.placement),L=!f,m=fe(M),y="x"===m?"y":"x",p=e.modifiersData.popperOffsets,b=e.rects.reference,w=e.rects.popper,j="function"==typeof d?d(Object.assign({},e.rects,{placement:e.placement})):d,v="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),g=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(p){if(r){var N,I="y"===m?Qt:Bt,S="y"===m?Gt:Ut,T="y"===m?"height":"width",D=p[m],C=D+h[I],k=D-h[S],z=c?-w[T]/2:0,O="start"===f?b[T]:w[T],E="start"===f?-w[T]:-b[T],Y=e.elements.arrow,A=c&&Y?se(Y):{width:0,height:0},P=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=P[I],Z=P[S],Q=Le(0,b[T],A[T]),G=L?b[T]/2-z-Q-W-v.mainAxis:O-Q-W-v.mainAxis,U=L?-b[T]/2+z+Q+Z+v.mainAxis:E+Q+Z+v.mainAxis,B=e.elements.arrow&&Me(e.elements.arrow),V=null!=(N=null==g?void 0:g[m])?N:0,R=D+U-V,H=Le(c?ee(C,D+G-V-(B?"y"===m?B.clientTop||0:B.clientLeft||0:0)):C,D,c?te(k,R):k);p[m]=H,x[m]=H-D}if(o){var F,X=p[y],q="y"===y?"height":"width",J=X+h["x"===m?Qt:Bt],_=X-h["x"===m?Gt:Ut],K=-1!==[Qt,Bt].indexOf(M),$=null!=(F=null==g?void 0:g[y])?F:0,tt=K?J:X-b[q]-w[q]-$+v.altAxis,et=K?X+b[q]+w[q]-$-v.altAxis:_,it=c&&K?function(t,e,i){var n=Le(t,e,i);return n>i?i:n}(tt,X,et):Le(c?tt:J,X,c?et:_);p[y]=it,x[y]=it-X}e.modifiersData[n]=x}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,a=t.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,o=$t(i.placement),u=fe(o),c=[Bt,Ut].indexOf(o)>=0?"height":"width";if(r&&s){var l=function(t,e){return me("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ye(t,Vt))}(a.padding,i),d=se(r),h="y"===u?Qt:Bt,M="y"===u?Gt:Ut,f=i.rects.reference[c]+i.rects.reference[u]-s[u]-i.rects.popper[c],L=s[u]-i.rects.reference[u],m=Me(r),y=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,p=y/2-d[c]/2+(f/2-L/2),b=Le(l[h],p,y-d[c]-l[M]);i.modifiersData[n]=((e={})[u]=b,e.centerOffset=b-p,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&oe(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,a=e.rects.popper,r=e.modifiersData.preventOverflow,s=Ee(e,{elementContext:"reference"}),o=Ee(e,{altBoundary:!0}),u=Ae(s,n),c=Ae(o,a,r),l=Pe(u),d=Pe(c);e.modifiersData[i]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]});const Ve=class{constructor(e){t(this,e),this.target=void 0,this.placement="right",this.isVisible=!1}componentWillLoad(){this.initPopper()}componentDidRender(){var t;null===(t=this.popperInstance)||void 0===t||t.update()}watchHandler(t,e){this.initPopper()}render(){return e(n,{class:{"border border-light rounded bg-white":!0,"d-none":!this.isVisible,"d-block":this.isVisible},ref:t=>this.tooltip=t},e("slot",null))}initPopper(){void 0!==this.target&&(this.popperInstance=Be(this.target,this.tooltip,{placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["top","left","bottom"]}}]}),["mouseenter","focus"].forEach((t=>{var e;null===(e=this.target)||void 0===e||e.addEventListener(t,(()=>this.isVisible=!0))})),["mouseleave","blur"].forEach((t=>{var e;null===(e=this.target)||void 0===e||e.addEventListener(t,(()=>this.isVisible=!1))})))}static get watchers(){return{target:["watchHandler"]}}};Ve.style="ap-ben-tooltip{-webkit-box-shadow:0px 4px 8px rgba(0, 0, 0, 0.1);box-shadow:0px 4px 8px rgba(0, 0, 0, 0.1)}";const Re=class{constructor(i){t(this,i),this.renderVariantsList=()=>e("div",{class:"row"},e("div",{class:"col"},e("ap-ben-model-variants-section",null))),this.renderModelSelection=()=>e("div",{class:"row mt-4"},e("div",{class:"col"},e("ap-ben-choose-vehicle-section",null))),this.renderQuoteCalculation=()=>[e("div",{class:"row mt-4"},e("div",{class:"col-12 col-md-6 col-lg-7 d-flex flex-column justify-content-between"},e("ap-ben-personal-info-section",null),e("div",{class:"mt-4 d-none d-lg-block"},e("ap-ben-disclaimer",null))),e("div",{class:"col-12 col-md-6 col-lg-5 mt-4 mt-md-0"},this.isQuoteCalculated&&e("ap-ben-quote-result-section",null))),e("div",{class:"row my-4 d-lg-none"},e("div",{class:"col-12"},e("ap-ben-disclaimer",null)))],this.isPaidCampaign=void 0,this.apiBaseUrl=void 0,this.profileId=void 0,this.areStylesLoaded=!1,this.isModelSelected=!1,this.isVariantSelected=!1,this.isQuoteCalculated=!1}getPartnerIdFromUrl(){var t;return null!==(t=new URLSearchParams(window.location.search).get("partnerId"))&&void 0!==t?t:void 0}componentDidLoad(){return I.apiBaseUrl=this.apiBaseUrl,I.isPaidCampaign=this.isPaidCampaign,I.partnerId=this.getPartnerIdFromUrl(),Z.setDistinctUserId(l(this.profileId)),Et.topElement=this.hostElement,G.trackAppLoadedAsync()}componentWillLoad(){Q.vehicle$.subscribe((t=>{this.isVariantSelected=M(t.selectedVariant),this.isModelSelected=M(t.bodyType)})),Q.quote$.subscribe((t=>{this.isQuoteCalculated="Not calculated"!==t.quoteState}))}render(){return e(n,{class:"d-flex flex-column flex-fill justify-content-between",ref:t=>this.hostElement=t},this.fetchStyles(),this.areStylesLoaded&&this.renderAppContent())}fetchStyles(){return[e("link",{rel:"stylesheet",href:"https://npm-cdn.flarehr.com/@flarehr/beacon@dev/dist/beacon/beacon.css",media:"all",onLoad:()=>this.areStylesLoaded=!0})]}renderAppContent(){return e("div",{class:"abe-app-container d-flex flex-grow-1 justify-content-center"},e("div",{class:"container my-0 my-lg-4"},!this.isVariantSelected&&this.renderModelSelection(),this.isModelSelected&&this.renderVariantsList(),this.isVariantSelected&&this.renderQuoteCalculation()))}};Re.style=".abe-app-container{--fl-color-primary:#3a6cc8;--fl-color-primary-light:#517ccc;--fl-color-primary-dark:#3a6cc8;--fl-color-primary-disabled:#517ccc;--fl-color-primary-hover:#3a6cc8;--fl-color-primary-focus:#3a6cc8;--fl-color-primary-text:white;--fl-color-secondary:#e5e5e5;--fl-color-secondary-hover:#b3b3b3;--fl-color-secondary-focus:#b3b3b3;font-size:0.9rem;line-height:1.7}@media screen and (-webkit-min-device-pixel-ratio: 0){select,textarea,input{font-size:16px}}";const He=class{constructor(e){t(this,e),this.isBlockElement=!1,this.disabled=!1,this.variant="primary",this.outline=!1}render(){return e("button",{class:{"btn position-relative px-3 py-2":!0,"is-primary":!this.outline&&"primary"===this.variant,"is-outline-primary":this.outline&&"primary"===this.variant,"is-secondary":!this.outline&&"secondary"===this.variant,"is-outline-secondary":this.outline&&"secondary"===this.variant,"btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},e("span",{class:"label"},e("slot",null)))}};He.style=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active,.beacon-app button,.beacon-app button:focus,.beacon-app button:active,.beacon-app button.focus,.beacon-app button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled,.beacon-app button.disabled,.beacon-app button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label,.beacon-app button .label{font-weight:600 !important}:host button.is-primary,.beacon-app button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled,.beacon-app button.is-primary.disabled,.beacon-app button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled),.beacon-app button.is-primary:hover:not(.disabled),.beacon-app button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled),.beacon-app button.is-primary:active:not(.disabled),.beacon-app button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-outline-primary,.beacon-app button.is-outline-primary{color:var(--fl-color-primary);border-color:var(--fl-color-primary);background-color:transparent}:host button.is-outline-primary.disabled,:host button.is-outline-primary:disabled,.beacon-app button.is-outline-primary.disabled,.beacon-app button.is-outline-primary:disabled{color:var(--fl-color-primary-disabled);border-color:var(--fl-color-primary-disabled)}:host button.is-outline-primary:hover:not(.disabled),:host button.is-outline-primary:hover:not(:disabled),.beacon-app button.is-outline-primary:hover:not(.disabled),.beacon-app button.is-outline-primary:hover:not(:disabled){color:var(--fl-color-primary-hover);border-color:var(--fl-color-primary-hover)}:host button.is-outline-primary:active:not(.disabled),:host button.is-outline-primary:active:not(:disabled),.beacon-app button.is-outline-primary:active:not(.disabled),.beacon-app button.is-outline-primary:active:not(:disabled){color:var(--fl-color-primary-focus);border-color:var(--fl-color-primary-focus)}:host button.is-secondary,.beacon-app button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled,.beacon-app button.is-secondary.disabled,.beacon-app button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled),.beacon-app button.is-secondary:hover:not(.disabled),.beacon-app button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled),.beacon-app button.is-secondary:active:not(.disabled),.beacon-app button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-outline-secondary,.beacon-app button.is-outline-secondary{color:var(--fl-color-secondary);border-color:var(--fl-color-secondary);background-color:transparent}:host button.is-outline-secondary.disabled,:host button.is-outline-secondary:disabled,.beacon-app button.is-outline-secondary.disabled,.beacon-app button.is-outline-secondary:disabled{color:var(--fl-color-secondary-disabled);border-color:var(--fl-color-secondary-disabled)}:host button.is-outline-secondary:hover:not(.disabled),:host button.is-outline-secondary:hover:not(:disabled),.beacon-app button.is-outline-secondary:hover:not(.disabled),.beacon-app button.is-outline-secondary:hover:not(:disabled){color:var(--fl-color-secondary-hover);border-color:var(--fl-color-secondary-hover)}:host button.is-outline-secondary:active:not(.disabled),:host button.is-outline-secondary:active:not(:disabled),.beacon-app button.is-outline-secondary:active:not(.disabled),.beacon-app button.is-outline-secondary:active:not(:disabled){color:var(--fl-color-secondary-focus);border-color:var(--fl-color-secondary-focus)}:host button.is-block,.beacon-app button.is-block{display:block}:host button:disabled,:host button.disabled,.beacon-app button:disabled,.beacon-app button.disabled{pointer-events:none}";var Fe={compareTwoStrings:Xe,findBestMatch:function(t,e){if(!function(t,e){return"string"==typeof t&&!!Array.isArray(e)&&!!e.length&&!e.find((t=>"string"!=typeof t))}(t,e))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const i=[];let n=0;for(let a=0;a<e.length;a++){const r=e[a],s=Xe(t,r);i.push({target:r,rating:s}),s>i[n].rating&&(n=a)}return{ratings:i,bestMatch:i[n],bestMatchIndex:n}}};function Xe(t,e){if(t=t.replace(/\s+/g,""),e=e.replace(/\s+/g,""),!t.length&&!e.length)return 1;if(!t.length||!e.length)return 0;if(t===e)return 1;if(1===t.length&&1===e.length)return 0;if(t.length<2||e.length<2)return 0;let i=new Map;for(let e=0;e<t.length-1;e++){const n=t.substring(e,e+2),a=i.has(n)?i.get(n)+1:1;i.set(n,a)}let n=0;for(let t=0;t<e.length-1;t++){const a=e.substring(t,t+2),r=i.has(a)?i.get(a):0;r>0&&(i.set(a,r-1),n++)}return 2*n/(t.length+e.length-2)}const qe=class{constructor(i){t(this,i),this.valueChanged=a(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.isMouseOver=!1,this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.renderFilteredResults=()=>0===this.filteredOptions.length?e("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,i)=>e("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===i},onClick:()=>{this.toggleDropdown(!1),this.selectOption(t)}},e("span",null,t.label)))),this.filterResults=t=>{this.filteredOptions=this.sortOptionsByRelevancy(this._options.filter((e=>e.label.toLowerCase().includes(t.toLowerCase()))),t),this.highlightedOptionIndex=void 0},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var e;return(null===(e=this.selectedOption)||void 0===e?void 0:e.label)===t.label},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.resetInput=()=>{var t,e;this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:"",this.filteredOptions=this._options},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))}}get _options(){if(void 0===this.options)throw new Error("Can't render <fl-dropdown /> component with no options");return this.options}componentWillLoad(){var t,e;this.filteredOptions=this._options,this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}onOptionsChanged(){this.filteredOptions=this._options}onValueChanged(){var t,e;this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""}render(){var t;return[e("div",{class:"dropdown"},e("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:t=>{const e=t.target.value;this.inputValue=e,this.filterResults(e),this.toggleDropdown(!0)},ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show:this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults()))]}sortOptionsByRelevancy(t,e){return t.map((t=>Object.assign(Object.assign({},t),{relevancyScore:Fe.compareTwoStrings(t.label.toLowerCase(),e.toLowerCase())}))).sort(((t,e)=>e.relevancyScore-t.relevancyScore)).map((t=>({label:t.label,value:t.value})))}static get watchers(){return{options:["onOptionsChanged"],value:["onValueChanged"]}}};qe.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const Je=class{constructor(e){t(this,e),this.theme="default"}render(){return e("span",{class:{"dots-container d-inline-flex justify-content-center":!0}},e("span",{class:{"dot-flashing":!0,"theme-default":"default"===this.theme,"theme-dark":"dark"===this.theme}}))}};var _e;Je.style='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}',function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(_e||(_e={}));const Ke=class{constructor(e){t(this,e),this.isBlockElement=!1,this.isRounded=!1,this.disabled=!1,this.variant="primary",this.promiseFn=()=>Promise.resolve(),this.state=_e.Available}render(){return this.state===_e.Pending?this.renderLoadingButton():this.renderActiveButton()}renderActiveButton(){return e("fl-button",{disabled:this.disabled,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,variant:this.variant},e("div",null,e("slot",null)))}renderLoadingButton(){return e("fl-button",{disabled:!0,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},e("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),e("div",{class:"invisible"},e("slot",null)))}async clicked(){this.state=_e.Pending;try{await this.promiseFn(),this.state=_e.Available}catch(t){throw this.state=_e.Error,t}}};Ke.style="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";export{x as ap_ben_asset,U as ap_ben_choose_vehicle_section,B as ap_ben_complete_section,V as ap_ben_cost_breakdown_section,R as ap_ben_disclaimer,H as ap_ben_modal_section,Yt as ap_ben_model_variants_section,At as ap_ben_personal_info_section,Pt as ap_ben_quote_card_section,Wt as ap_ben_quote_result_section,Zt as ap_ben_submit_quote_section,Ve as ap_ben_tooltip,Re as cars_calculator_app,He as fl_button,qe as fl_dropdown,Je as fl_loading_indicator,Ke as fl_promise_button}
|