PageSourceSearch

https://www.medibank.com.au/etc.clientlibs/retail/clientlibs/clien…ed.join.f5450f21d1f8c0bdb7eff426140aff39.js

js medibank.com.au collected 2026-09-24 09:14:23 UTC 313,380 bytes, 1 lines download raw bytes

1!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("medikit"));else if("function"==typeof define&&define.amd)define(["medikit"],t);else{var a="object"==typeof exports?t(require("medikit")):t(e.medikit);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,(e=>(()=>{var t,a,r,i,n,o,s,l,c,d,m,u,p,h={95951:(e,t,a)=>{"use strict";a.r(t);var r=a(75166),i=a.n(r),n=a(25773),o=a(37424),s=a(7097),l=(a(94301),a(46656)),c=a(30381),d=a.n(c);let m=function(e){return e.HOSPITAL="HOSPITAL",e.EXTRAS="EXTRAS",e.HARDBUNDLED="HARDBUNDLED",e.SOFTBUNDLED="SOFTBUNDLED",e.PACKAGE="PACKAGE",e}({}),u=function(e){return e.SINGLES="S",e.COUPLES="C",e.FAMILIES="F",e.SINGLE_PARENTS="P",e}({}),p=function(e){return e.PAYROLL="Payroll",e.CC="CREDITCARD",e.DD="DIRECTDEBIT",e}({}),h=function(e){return e.HEALTH_INSURANCE="health insurance",e}({}),v=function(e){return e.RETAIL="retail",e.CORPORATE="corporate",e.OVERSEAS="overseas",e.OSHC="oshc",e}({}),b=function(e){return e.STUDENTS="students",e.VISITORS="visitors",e.WORKING="working",e}({}),f=function(e){return e.AMBULANCE="ambulance",e.EXTRAS="extras",e.HOSPITAL_AND_EXTRAS="hospital and extras",e.PACKAGE="package",e.HOSPITAL_MEDICAL_EXTRAS="hospital, medical & extras",e}({}),y=function(e){return e.DROPDOWN="dropdown",e.CARD_TILE="card tile",e.FILTER="filter",e.ACCORDION="accordion",e.TOOLTIP="tooltip",e.TOGGLE="toggle",e.COLLAPSIBLE="collapsible",e.CORPORATE_SEARCH="corporate search",e.LANDING_BANNER="landing banner",e.CONTENT_BANNER="content banner",e.MODAL="modal",e.SEARCH="search",e.PROMO_CODE="promo code",e.PROMO_CARD="promo card",e.PROMO_BANNER="offer banner",e.STICKY_BAR="sticky bar",e}({}),g=function(e){return e.JOIN="join",e.EMAIL_QUOTE="email quote",e.CORPORATE_DISCOUNT_RATE="corporate discount rate",e.REQUEST_A_CALLBACK="request a call back",e}({}),N=function(e){return e.YOUR_DETAILS="your details",e.AGR="australian government rebate",e.PREMIUM_PAYMENT="premium payment",e.SUMMARY="health cover summary",e.CONFIRMATION="confirmation",e.ENTER_DETAILS="enter details",e.UNSUCCESSFUL="unsuccessful",e}({});function C(e){e=e.toFixed(2);return{dollar:parseInt(e.toString().split(".")[0],10).toLocaleString(),cents:e.toString().split(".")[1]}}function D(e){switch(e.toUpperCase()){case"WEEKLY":default:return"week";case"FORTNIGHTLY":return"fortnight";case"MONTHLY":return"month";case"QUARTERLY":return"quarter";case"HALFYEARLY":return"half-year";case"YEARLY":return"year"}}function E(e){return(e||"").toString().replace(/\D/g,"")||"not applicable"}function S(e,t){let a;try{const r=t.toLowerCase();a=e[Object.keys(e).find((e=>e.toLowerCase()===r))]}catch(a){throw new Error(`Error in getParameterCaseInsensitive: generating incometiers: ${e} with key:${t}.`)}return a}function w(e,t){const a=window?.phi?.incometiers,r=[];let i;const n="F"===e?"C":"S";i=S(a,"S"===e?"single":"family");try{t&&r.push(i[`TIER${n}N`][0]);for(let e=0;e<4;e++)r.push(i[`TIER${n}${e}`][e])}catch(e){throw new Error(`Error in getIncomeRanges: generating incomeRange with incometier: ${i}.`,e)}return r}function T(e,t,a,r){const i="F"===e?"C":"S";return window.phi.agrrates[r?"future":"current"]["S"===e?"SINGLE":"FAMILY"][`TIER${i}${t}`][I(a)]}function Z(e){const t=d()(e,"DD/MM/YYYY",!0);return t.isValid()&&d()().diff(t,"years")}function A(e){if(e){return d()().subtract(e,"years").format("DD/MM/YYYY")}return null}function I(e){let t="";return t=e<65?"LESS_THAN_65":e>=65&&e<=69?"BETWEEN_65_AND_69":"MORE_THAN_70",t}function P(e,t=!1){switch(e.toUpperCase()){case"S":default:return(t?"s":"S")+"ingle income";case"F":return(t?"f":"F")+"amily income"}}function M(e,t=!1){switch(e.toUpperCase()){case"S":default:return""+(t?"single":"Singles");case"C":return""+(t?"couple":"Couples");case"F":return(t?"f":"F")+"amily";case"P":return""+(t?"single parent":"Single Parents")}}function _(e){switch(e.toLowerCase()){case"s":return"Singles cover";case"c":return"Couples cover";case"f":return"Families cover";case"p":return"Single Parents cover";default:return"Singles Cover"}}function R(e){return"TRUE"===e.toUpperCase()?"Yes":"No"}function L(e){return e?"on":"off"}function k(e,t=!1){switch(e){case m.SOFTBUNDLED:case m.HARDBUNDLED:case m.PACKAGE:return""+(t?"hospital and extras":"Hospital and Extras");case m.HOSPITAL:return(t?"h":"H")+"ospital";case m.EXTRAS:return(t?"e":"E")+"xtras";default:return""}}const O=new class{constructor(){void 0===window.pubSubEvents&&(window.pubSubEvents=[])}subscribe(e,t,a){void 0===a&&(a=t),window.pubSubEvents.push({name:e,handler:t.bind(a)})}
1publish(e,t){window.pubSubEvents.forEach((a=>{a.name===e&&a.handler(t)}))}},F=new class{constructor(e,t){this.localStorage=e,this.sessionStorage=t}saveObject(e,t,a){const r={timestamp:(new Date).getTime(),content:t};(a?this.sessionStorage:this.localStorage).setItem(e,JSON.stringify(r))}getObject(e,t){const a=(t?this.sessionStorage:this.localStorage).getItem(e);return a?JSON.parse(a).content:null}}(window.localStorage,window.sessionStorage),B=new class{constructor(){this.pricingEndPoint="/bin/medibank/price/",this.enableDualRate=!!(window.phi&&window.phi.dualrate&&window.phi.dualrate.dualRateActive),this.channel=window.phi&&window.phi.channel}};function x(e,t,a){return fetch(e,{body:JSON.stringify(t),headers:{"content-type":"application/json",...a},method:"POST"}).then((e=>{if(e.ok)return e.json();throw new Error(`Call failed Error code ${e.status} returned with msg ${e.statusText}`)}))}function Y(e){const t=e.split("?"),a=new URLSearchParams(t[1]);return fetch(t[0],{headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST",body:a}).then((e=>{if(e.ok)return e.json();throw new Error(`Call failed Error code ${e.status} returned with msg ${e.statusText}`)}))}function U(e){const t=`${e}=`,a=decodeURIComponent(document.cookie).split(";");for(let e=0;e<a.length;e++){let r=a[e];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""}function q(e){return decodeURIComponent((new RegExp(`[?|&]${e}=([^&;]+?)(&|#|;|$)`).exec(location.search)||[null,""])[1].replace(/\+/g,"%20"))||null}function X(e){return{__html:e}}function V(){return"retail"===window.phi.channel.toLowerCase()}function H(e){return V()?e:`/${window.phi.client.name}${e}`}function j(e){return window.phi.client.name.toLowerCase()===e.toLowerCase()?`https://corporate.medibank.com.au/${e.toLowerCase()}/contact-us/`:""}function $(e){return V()?e:`/${window.phi.client.name}${e}`}function J(){return window.phi?.client?.name??""}function Q(){return window.phi?.client?.title??""}function G(){return window.phi?.channel??""}function W(){return{Retail:"retail",INC:"corporate",SUBSIDISED:"corporate"}[G()]}function z(){return window.phi.client.email}function K(){return window.phi.allowpayrollpayment}function ee(){return window.phi.discount.agrLock}function te(){return window.phi.discount.subsidyType}function ae(){return window.phi.dualrate&&window.phi.dualrate.dualRateActive}function re(){return oe("D MMMM YYYY")}function ie(){return oe("D MMMM")}function ne(e="D MMMM YYYY"){return window.phi&&window.phi.dualrate&&window.phi.dualrate.rateChangeDate?d()(window.phi.dualrate.rateChangeDate,"YYYY-MM-DD hh:mm:ss").subtract(1,"days").format(e):""}function oe(e){return window.phi&&window.phi.dualrate&&window.phi.dualrate.rateChangeDate?d()(window.phi.dualrate.rateChangeDate,"YYYY-MM-DD hh:mm:ss").format(e):""}function se(){return window.phi.discount&&!!window.phi.discount.subsidiseREC}function le(){return ce("D MMMM")}function ce(e){return window.overseas&&window.overseas.dualrate&&window.overseas.dualrate.rateChangeDate?d()(window.overseas.dualrate.rateChangeDate,"YYYY-MM-DD hh:mm:ss").format(e):""}function de(e){const t=new URLSearchParams(window.location.search);return t.has(e)?t.get(e).trim():null}function me(e){return e?"f"===e.toLowerCase()?"female":"male":"not applicable"}const ue=e=>{if(!e)return"";const t=e.toLowerCase().trim().split("@"),a=t[0]?.replace(/\./g,"");return`${a}@${t[1]}`},pe=e=>e?`+61${e.startsWith("0")?e.substring(1):e}`:"",he=e=>e?e.toLowerCase().trim():"",ve=e=>e?`61${e.startsWith("0")?e.substring(1):e}`:"",be=["NSW","VIC","QLD","WA","SA","TAS","NT","ACT"],fe="NSW";class ye{constructor(){this._getUserStateCodeFromLocalStorage()||this._fetchAndSaveUserLocation()}static get LOCATION(){return{STATE_CODE:"state_code"}}_getUserStateCodeFromLocalStorage(){return F.getObject(ye.LOCATION.STATE_CODE)}_fetchAndSaveUserLocation(){const e=this;this.fetchUserLocation().then((t=>{e._saveLocation(t)}))}fetchUserLocation(){return fetch("/api/v1/location").then((e=>{if(e.ok)return e.json();
1throw new Error(`Call failed Error code ${e.status} returned with msg ${e.statusText}`)})).catch((e=>{}))}_saveLocation(e){const t=e&&e.state_code?e.state_code:fe;F.saveObject(ye.LOCATION.STATE_CODE,t)}getUserStateCode(){const e=this._getUserStateCodeFromLocalStorage();return e?be.includes(e)?e:fe:null}async getUserStateCodeAsync(){let e=this._getUserStateCodeFromLocalStorage();if(!e){const t=await this.fetchUserLocation();this._saveLocation(t),e=this._getUserStateCodeFromLocalStorage()}return be.includes(e)?e:fe}}const ge=new ye,Ne="incometype",Ce="incometier",De="partnersage",Ee="scale",Se="state";de("age"),de(Ne),de(Ce),de(De),de(Ee),de(Se);class we{constructor(e,t){if(window.QuoteServiceInstance)return window.QuoteServiceInstance;this.eventBus=e,this.dataStorage=t,window.QuoteServiceInstance=this}static get EVENTS(){return{QUOTE_UPDATED:"quote.updated",QUOTE_FREQ_UPDATED:"quote.freq.updated",QUOTE_REQUIRED:"quote.required"}}static get KEY_NAMES(){return{QUOTE:"quote"}}savedCurrentTransientQuote(){this.tempQuote&&this.updateUserQuoteDetails(this.tempQuote)}subscribeForUpdates(e,t){this.eventBus.subscribe(we.EVENTS.QUOTE_UPDATED,e,t)}subscribeForFreqUpdates(e,t){this.eventBus.subscribe(we.EVENTS.QUOTE_FREQ_UPDATED,e,t)}subscribeForRequests(e,t){this.eventBus.subscribe(we.EVENTS.QUOTE_REQUIRED,e,t)}isDefaultQuote(){const e=this.getSavedQuoteDetails();return!e||!!e.isDefault}getSavedQuoteDetails(){const e=F.getObject(we.KEY_NAMES.QUOTE),t=F.getObject(we.KEY_NAMES.QUOTE,!0);if(e){const a=(e=>!(!ae()||!e.showFuturePrices))(e);return{...e,...t,showFuturePrices:a}}return e}getQuoteDetails(){if(this.tempQuote)return delete this.tempQuote.isDefault,this.tempQuote.showFuturePrices=ae()&&this.tempQuote.showFuturePrices,this.tempQuote;const e=this.getSavedQuoteDetails();return e&&delete e.isDefault,e}updateUserQuoteDetails(e,t,a){const{dob:r,partnerdob:i,...n}=e,o=Object.assign(n,{isDefault:!1}),s={dob:r,partnerdob:i};let l=this.getSavedQuoteDetails();l||(l={}),l.age!==o.age&&(s.dob=A(o.age)),l.age===o.age&&l.dob!==s.dob&&(o.age=Z(s.dob)),l.partnerAge!==o.partnerAge&&(s.partnerdob=A(o.partnerAge)),l.partnerAge===o.partnerAge&&l.partnerdob!==s.partnerdob&&(o.partnerAge=Z(s.partnerdob)),!o.source&&l.source&&(o.source=l.source),t||(F.saveObject(we.KEY_NAMES.QUOTE,o),F.saveObject(we.KEY_NAMES.QUOTE,s,!0)),this.tempQuote={...o,...s},this.eventBus.publish(we.EVENTS.QUOTE_UPDATED,{...o,quoteEndpointOverride:a})}updateUserQuoteFreq(e,t){if(["weekly","fortnightly","monthly","quarterly","halfyearly","yearly"].includes(e.toLowerCase())){const a=this.getSavedQuoteDetails();a.priceFreq=e.toLowerCase(),null!=t&&(a.showFuturePrices=!!t),this.tempQuote&&(this.tempQuote.priceFreq=e.toLowerCase(),this.tempQuote.showFuturePrices=a.showFuturePrices);const{dob:r,partnerdob:i,...n}=a,o={dob:r,partnerdob:i};F.saveObject(we.KEY_NAMES.QUOTE,n,!1),F.saveObject(we.KEY_NAMES.QUOTE,o,!0),this.eventBus.publish(we.EVENTS.QUOTE_FREQ_UPDATED,a)}}updateDefaultQuoteDetails(e){const{dob:t,partnerdob:a,...r}=e,i=Object.assign(r,{isDefault:e.isDefault}),n={dob:t,partnerdob:a};F.saveObject(we.KEY_NAMES.QUOTE,i,!1),F.saveObject(we.KEY_NAMES.QUOTE,n,!0),this.eventBus.publish(we.EVENTS.QUOTE_UPDATED,i)}updateQuoteDetails(e){const{dob:t,partnerdob:a,...r}=e,i=r,n={dob:t,partnerdob:a};F.saveObject(we.KEY_NAMES.QUOTE,i,!1),F.saveObject(we.KEY_NAMES.QUOTE,n,!0),this.eventBus.publish(we.EVENTS.QUOTE_UPDATED,i)}requestForQuoteConfirmation(){this.eventBus.publish(we.EVENTS.QUOTE_REQUIRED,{})}}const Te=new we(O,F),Ze={state:ge.getUserStateCode()||fe,scale:"S",incomeType:"S",incomeRange:"1",age:31,partnerAge:31,priceFreq:"weekly",showFuturePrices:!1,claimAGRUpfront:!0,isDefault:!0};var Ae=a(75820),Ie=a.n(Ae);class Pe{constructor(e,t){this.eventBus=e,this.dataStorage=t}static get EVENTS(){return{COVER_UPDATED:"cover.updated"}}static get DATA_KEY_NAMES(){let e="";return window.phi&&window.phi.client&&window.phi.client.name&&(e=`${window.phi.client.name}_`),{COVER_DETAILS:`${e}coverdetails`,PROFILE:"profile"}}subscribeForUpdates(e,t){O.subscribe(Pe.EVENTS.COVER_UPDATED,e,t)}updateCoverDetails(e,t){let a=this.dataStorage.getObject(Pe.DATA_KEY_NAMES.COVER_DETAILS);a||(a={}),a[e]={productType:t.productType,hospitalId:t.hospitalId,includeYD:t.includeYD,pensionerTableID:t.pensionerTableID,extrasIdIndex:t.extrasIdIndex,extrasId:t.extrasId,excess:t.excess,claimback:t.claimback,title:t.title,timestamp:(new Date).getTime(),stateExtrasId:t.stateExtrasId},F.saveObject(Pe.DATA_KEY_NAMES.COVER_DETAILS,a),this.eventBus.publish(Pe.EVENTS.COVER_UPDATED,{})}getCoverDetails(e){const t=F.getObject(Pe.DATA_KEY_NAMES.COVER_DETAILS);return t?t[e]:null}getLatestCover(){const e=F.getObject(Pe.DATA_KEY_NAMES.COVER_DETAILS);if(e){const t=e;if(t){let e=null;return Object.keys(t).forEach((a=>{const r=t[a];r.coverId=a,(null==e||e.timestamp<=r.timestamp)&&(e=r)})),e}}return null}getCoverFromProfile(){const e=F.getObject("profile");return e?.coverFilters?.coverType}}const Me=new Pe(O,F),_e=(e=0,t=0)=>(100*e+100*t)/100,Re=e=>{const t=[],a=[];return e?.forEach((e=>
1{e.extrasId&&t.push({tableId:e.extrasId}),e.hospitalId&&a.push({tableId:e.hospitalId})})),{extrasProducts:t,hospitalProducts:a}},Le=e=>{let t,a;if("EXTRAS"===e.productType.toUpperCase())t=[{tableId:e.extrasId}];else if("HOSPITAL"===e.productType.toUpperCase())a=[{tableId:e.hospitalId}];else{if("SOFTBUNDLED"!==e.productType.toUpperCase()&&"HARDBUNDLED"!==e.productType.toUpperCase())throw new Error(`invalid product type ${e.productType}`);a=[{tableId:e.hospitalId}],t=[{tableId:e.extrasId}]}return{extrasProducts:t,hospitalProducts:a}},ke=(e,t)=>{if(e){if("F"===t.scale)return"FW";if("P"===t.scale)return"PW"}return t.scale},Oe=({subsidyType:e})=>{switch(e){case"FULL":case"PERCENTAGE":return"P";case"DOLLAR":case"BASEPRODUCT":return"D";default:return"T"}},Fe=(e,t)=>"FULL"!==e.subsidyType?e.percentage?e.percentage[t.scale]:"":100,Be=e=>{switch(e.agrLock){case"LOCKED_0":return 3;case"UNLOCKED":return"N";default:return 0}},xe=(e,t)=>{const a={tableId:""},r={tableId:""};if("BASEPRODUCT"===e.subsidyType&&e.baseproducts){const i=t?"nonresident":"resident";a.tableId=e.baseproducts[i].hospital.tableID,r.tableId=e.baseproducts[i].extras.tableID}return{subHospitalProduct:a,subExtrasProduct:r}},Ye=(e,t,a)=>e&&t?t:A(a),Ue=(e,t,a)=>{const r={current:{weekly:_e(e.current.weeklyPrice,t.current.weeklyPrice),fortnightly:_e(e.current.fortnightlyPrice,t.current.fortnightlyPrice),monthly:_e(e.current.monthlyPrice,t.current.monthlyPrice),quarterly:_e(e.current.quarterlyPrice,t.current.quarterlyPrice),halfyearly:_e(e.current.halfYearlyPrice,t.current.halfYearlyPrice),yearly:_e(e.current.yearlyPrice,t.current.yearlyPrice)}};return a&&(r.future={weekly:_e(e.future.weeklyPrice,t.future.weeklyPrice),fortnightly:_e(e.future.fortnightlyPrice,t.future.fortnightlyPrice),monthly:_e(e.future.monthlyPrice,t.future.monthlyPrice),quarterly:_e(e.future.quarterlyPrice,t.future.quarterlyPrice),halfyearly:_e(e.future.halfYearlyPrice,t.future.halfYearlyPrice),yearly:_e(e.future.yearlyPrice,t.future.yearlyPrice)}),r.additional={eligibleYD:e.eligibleYD},r},qe=(e,t,a,r,i)=>{const n={current:{weekly:_e(t("weeklyPrice"),a("weeklyPrice")),fortnightly:_e(t("fortnightlyPrice"),a("fortnightlyPrice")),monthly:_e(t("monthlyPrice"),a("monthlyPrice")),quarterly:_e(t("quarterlyPrice"),a("quarterlyPrice")),halfyearly:_e(t("halfYearlyPrice"),a("halfYearlyPrice")),yearly:_e(t("yearlyPrice"),a("yearlyPrice"))}};return e&&(n.future={weekly:_e(r("weeklyPrice"),i("weeklyPrice")),fortnightly:_e(r("fortnightlyPrice"),i("fortnightlyPrice")),monthly:_e(r("monthlyPrice"),i("monthlyPrice")),quarterly:_e(r("quarterlyPrice"),i("quarterlyPrice")),halfyearly:_e(r("halfYearlyPrice"),i("halfYearlyPrice")),yearly:_e(r("yearlyPrice"),i("yearlyPrice"))}),n};const Xe=new class{constructor(e,t,a){if(window.PricingServiceInstance)return window.PricingServiceInstance;this.quoteService=e,this.coverService=t,this.retailConfig=a,window.PricingServiceInstance=this}getRuleset(){return"Retail"===this.retailConfig.channel||"INC"===this.retailConfig.channel||"CORP"===this.retailConfig.channel?"Retail":this.retailConfig.channel}getBulkPricingResponse(e,t){return x(this.retailConfig.pricingEndPoint,e).then((a=>{if(a.errorCode)throw new Error(`BAS returned error code ${a.errorCode} with msg ${a.description}`);const{hospitalPrices:r,extrasPrices:i}=(e=>{const t={},a={};return e.hospitalProductPrice&&e.hospitalProductPrice.forEach((e=>{t[e.hospitalProduct.tableId]={current:e.price,future:e.futurePrice,eligibleYD:e.hospitalProduct.eligibleYD}})),e.extrasProductPrice&&e.extrasProductPrice.forEach((e=>{a[e.extrasProduct.tableId]={current:e.price,future:e.futurePrice}})),{hospitalPrices:t,extrasPrices:a}})(a),n=[];for(let a=0;a<t.length;a+=1){let o={current:{},future:{}},s={current:{},future:{}};t[a].extrasId&&(o=i[t[a].extrasId]),t[a].hospitalId&&(s=r[t[a].hospitalId]),n.push(Ue(s,o,e.dualRates))}return n.AGR=a.appliedRebate,n.futureAGR=a.appliedRebateFuture,n.lhc=a.appliedLHCLoading,n.appliedYD=a.appliedYD,{hospitalPrices:r,extrasPrices:i,pricingResponse:n}}))}getSubsBulkPricingResponse(e,t){return x(this.retailConfig.pricingEndPoint,e).then((a=>
1{if(a.errorCode)throw new Error(`BAS returned error code ${a.errorCode} with msg ${a.description}`);const{hospitalPrices:r,extPriceList:i}=(e=>{const t={};let a={};const r=[];return e.subsidisedProductPrice.forEach((e=>{if(e.hospitalProductPrice)if(e.extrasProductPrices.length>0){a={};for(let r=0;r<e.extrasProductPrices.length;r+=1)a[e.extrasProductPrices[r].extrasProduct.tableId]={current:e.extrasProductPrices[r].price,future:e.extrasProductPrices[r].futurePrice},t[e.hospitalProductPrice.hospitalProduct.tableId]={current:e.hospitalProductPrice.price,future:e.hospitalProductPrice.futurePrice,extras:a};r.push(a)}else t[e.hospitalProductPrice.hospitalProduct.tableId]={current:e.hospitalProductPrice.price,future:e.hospitalProductPrice.futurePrice,extras:a}})),{hospitalPrices:t,extPriceList:r}})(a),n=[];let o={current:{},future:{}},s={current:{},future:{}};for(let a=0;a<t.length;a+=1){if(t[a].extrasId){const e=t[a].extrasId;o=i[0][e]}t[a].hospitalId&&(s=r[t[a].hospitalId]),n.push(Ue(s,o,e.dualRates)),s={current:{},future:{}}}return n.AGR=a.appliedRebate,n.futureAGR=a.appliedRebateFuture,n.lhc=a.appliedLHCLoading,n.allPrices=r,n}))}getPricingResponse(e){return x(this.retailConfig.pricingEndPoint,e).then((t=>{if(t.errorCode)throw new Error(`BAS returned error code ${t.errorCode} with msg ${t.description}`);const a={...qe(e.dualRates,(function(e){return t.hospitalProductPrice&&t.hospitalProductPrice.length>0?t.hospitalProductPrice[0].price[e]:0}),(function(e){return t.extrasProductPrice&&t.extrasProductPrice.length>0?t.extrasProductPrice[0].price[e]:0}),(function(e){return t.hospitalProductPrice&&t.hospitalProductPrice.length>0&&t.hospitalProductPrice[0].futurePrice?t.hospitalProductPrice[0].futurePrice[e]:0}),(function(e){return t.extrasProductPrice&&t.extrasProductPrice.length>0&&t.extrasProductPrice[0].futurePrice?t.extrasProductPrice[0].futurePrice[e]:0})),AGR:t.appliedRebate,futureAGR:t.appliedRebateFuture,lhc:t.appliedLHCLoading,appliedYD:t.appliedYD};return t.hospitalProductPrice&&t.hospitalProductPrice.length>0&&(a.additional={eligibleYD:t.hospitalProductPrice[0].hospitalProduct.eligibleYD}),a}))}getSubsPricingResponse(e){return x(this.retailConfig.pricingEndPoint,e).then((t=>{if(t.errorCode)throw new Error(`BAS returned error code ${t.errorCode} with msg ${t.description}`);const a=t.subsidisedProductPrice&&t.subsidisedProductPrice.length>0;return{...qe(e.dualRates,(function(e){return a&&t.subsidisedProductPrice[0].hospitalProductPrice?t.subsidisedProductPrice[0].hospitalProductPrice.price[e]:0}),(function(e){return a&&t.subsidisedProductPrice[0].extrasProductPrices&&t.subsidisedProductPrice[0].extrasProductPrices.length>0?t.subsidisedProductPrice[0].extrasProductPrices[0].price[e]:0}),(function(e){return a&&t.subsidisedProductPrice[0].hospitalProductPrice.futurePrice?t.subsidisedProductPrice[0].hospitalProductPrice.futurePrice[e]:0}),(function(e){return a&&t.subsidisedProductPrice[0].extrasProductPrices.length>0&&t.subsidisedProductPrice[0].extrasProductPrices[0].futurePrice?t.subsidisedProductPrice[0].extrasProductPrices[0].futurePrice[e]:0})),AGR:t.appliedRebate,futureAGR:t.appliedRebateFuture,lhc:t.appliedLHCLoading,appliedYD:t.appliedYD}}))}getBulkProductPrice(e,t,a,r,i,n){const o=this.quoteService.getQuoteDetails()||Ze,{extrasProducts:s,hospitalProducts:l}=Re(e),c=this.getRuleset(),d={scale:ke(r,o),state:o.state,isPensioner:!1,dob:Ye(i,o.dob,o.age),partnerDob:Ye(i,o.partnerdob,o.partnerAge),cae:0,partnerCae:0,includeLHCLoading:!!t,includePartnerLHCLoading:!!a,dualRates:this.retailConfig.enableDualRate,ruleset:c,fgrRebateTier:o.incomeRange>0?o.incomeRange-1:0,cdPercent:window.phi&&window.phi.discount?window.phi.discount.percentage:0,extrasProducts:s,hospitalProducts:l};return n&&(d.ydPercent=n.ydPercent,"C"!==o.scale&&"F"!==o.scale||(d.ydPartnerPercent=n.ydPartnerPercent)),this.getBulkPricingResponse(d,e)}getSubsBulkProductPrice(e,t,a,r,i,n){const o=window.phi.discount,s=this.quoteService.getQuoteDetails(),l=!0===t||"true"===t,{extrasProducts:c,hospitalProducts:d}=Re(e),{subHospitalProduct:m,subExtrasProduct:u}=xe(o,l),p={scale:ke(i,s),state:s.state,isPensioner:!1,dob:Ye(n,s.dob,s.age),cae:0,partnerCae:0,partnerDob:Ye
1(n,s.partnerdob,s.partnerAge),includeLHCLoading:!!a,includePartnerLHCLoading:!!r,dualRates:this.retailConfig.enableDualRate,isBaseProductSubsidy:"BASEPRODUCT"===o.subsidyType,subsidyType:Oe(o),isNonResident:l,subsidyPercent:Fe(o,s),subsidyTier:Be(o),subLHCInclusive:!!o.includeLHC&&o.includeLHC,wsa:o.dollar?o.dollar[s.scale].wsa:"",msa:o.dollar?o.dollar[s.scale].msa:"",subHospitalProduct:m,agrRebateTier:s.incomeRange>0?s.incomeRange-1:0,extrasProducts:c,hospitalProducts:d};return"BASEPRODUCT"===o.subsidyType&&(p.subScale=s.scale,p.subState=s.state,p.subExtrasProduct=u),this.getSubsBulkPricingResponse(p,e)}getProductPrice(e){if(window.phi&&"SUBSIDISED"===window.phi.channel)return this.getSubsProductPrice(e);const t=this.coverService.getCoverDetails(e),a=this.quoteService.getQuoteDetails(),{extrasProducts:r,hospitalProducts:i}=Le(t),n={scale:a.scale,state:a.state,isPensioner:!1,dob:A(a.age),partnerDob:A(a.partnerAge),cae:0,partnerCae:0,includeLHCLoading:!1,includePartnerLHCLoading:!1,dualRates:this.retailConfig.enableDualRate,ruleset:this.getRuleset(),fgrRebateTier:a.incomeRange>0?a.incomeRange-1:0,cdPercent:window.phi&&window.phi.discount?window.phi.discount.percentage:0,...r&&{extrasProducts:r},...i&&{hospitalProducts:i}};return this.getPricingResponse(n)}getSubsProductPrice(e,t){const a=this.coverService.getCoverDetails(e),r=this.quoteService.getQuoteDetails(),i=window.phi.discount,{subHospitalProduct:n,subExtrasProduct:o}=xe(i,t),{extrasProducts:s,hospitalProducts:l}=Le(a),c={scale:r.scale,state:r.state,cae:0,partnerCae:0,isPensioner:!1,dob:A(r.age),partnerDob:A(r.partnerAge),includeLHCLoading:!1,includePartnerLHCLoading:!1,dualRates:this.retailConfig.enableDualRate,isBaseProductSubsidy:"BASEPRODUCT"===i.subsidyType,subsidyType:Oe(i),isNonResident:!!t,subsidyPercent:Fe(i,r),subsidyTier:Be(i),subLHCInclusive:!!i.includeLHC&&i.includeLHC,wsa:i.dollar?i.dollar[r.scale].wsa:"",msa:i.dollar?i.dollar[r.scale].msa:"",subHospitalProduct:n,agrRebateTier:r.incomeRange>0?r.incomeRange-1:0,...s&&{extrasProducts:s},...l&&{hospitalProducts:l}};return"BASEPRODUCT"===i.subsidyType&&(c.subScale=r.scale,c.subState=r.state,c.subExtrasProduct=o),this.getSubsPricingResponse(c)}}(Te,Me,B),Ve=async(e,t)=>{if(!e)return"";const a=await(async e=>{if(!e)return"";const t=(new TextEncoder).encode(e),a=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(a)).map((e=>e.toString(16).padStart(2,"0"))).join("")})(e),r=(new TextEncoder).encode(a),i=await crypto.subtle.encrypt({name:"RSA-OAEP"},t,r);return btoa(new Uint8Array(i).reduce(((e,t)=>e+String.fromCharCode(t)),""))},He=async()=>{const e=await(async()=>{try{const e=await x("/bin/medibank/fetchEncryptionKey",{});return e?.publicKey?e.publicKey:""}catch(e){return null}})();if(!e)return null;const t=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").replace(/(\r\n|\n|\r|\s)/gm,""),a=(e=>{const t=new ArrayBuffer(e.length),a=new Uint8Array(t);for(let t=0,r=e.length;t<r;t++)a[t]=e.charCodeAt(t);return t})(atob(t));return await crypto.subtle.importKey("spki",a,{name:"RSA-OAEP",hash:"SHA-256"},!0,["encrypt"])};class je{constructor(e,t,a,r){if(window.LeadServiceInstance)return window.LeadServiceInstance;this.eventBus=e,this.dataStorage=t,this.quoteService=a,this.coverService=r,this.leadsEndPoint="/bin/medibank/leads/",this.quotesEndPoint="/bin/medibank/quotes/",this.submitLeadData(),Te.subscribeForUpdates(this.handleQuoteUpdates.bind(this)),window.LeadServiceInstance=this}static get EVENTS(){return{LEAD_UPDATED:"lead.updated",LEAD_CAPTURED:"lead.captured"}}static get DATA_KEY_NAMES(){return{LEAD_INFO:"leadinfo"}}handleQuoteUpdates(e){const{quoteEndpointOverride:t,...a}=e&&e.quoteEndpointOverride?e:{};return!Te.isDefaultQuote()&&this.getLeadInfo()&&this.getLeadInfo().leadId?this.getLeadInfo().quoteId?this.updateSalesForceQuote(t):this.createSalesForceQuote(t):null}getQuoteDataToSave(e){const t=Te.getQuoteDetails(),a=Me.getLatestCover(),{incomeRange:r,scale:i,state:n,age:o,partnerAge:s,incomeType:l}=t||{},c=0===r?0:r-1;let d="",m="",u="",p="",h="";if(a){const e=`\n        ?claimbackid=${m}\n        &excessid=${u}\n        &scale=${i}\n        &state=${n}\n        &age=${o}\n        &partnersage=${s}\n        &incometype=${l}\n        &incometier=${c}\n      `.replace(/\s+/g,"");d=a.coverId,m=a.extrasId??"",u=a.hospitalId??"",p=a.title,h=function(e){const t=window.location.origin;return""===e?"":V()?`${t}/health-insurance/cover/${e}`:`${t}/${window.phi.client.name}/health-insurance/cover/${e}`}(d+encodeURIComponent(e))}return`\n      ?GAClientID__c=${e.leadDetails.GA_Client_ID__c}
1\n      &Lead__c=${e.leadId}\n      &Source__c=CreateQuote\n      &Quote_Type__c=Initial Quote\n      &QuoteDate__c=${(new Date).getTime()}\n      &ChannelID__c=${e.leadDetails.Channel__c}\n      &Age__c=${o}\n      &IncomeTier__c=${c}\n      &IncomeType__c=${l}\n      &Partner_Age__c=${s}\n      &Scale__c=${i}\n      &ProductName__c=${encodeURIComponent(p)}\n      &ProductId__c=${d}\n      &ClaimbackId__c=${m}\n      &ExcessId__c=${u}\n      &State__c=${t?t.state:""}\n      &ReferralID__c=\n      &SearchCategory__c=\n      &ClientName__c=${window.phi.client.name?window.phi.client.name:" "}\n      &ClientType__c=${e.leadDetails.Lead_Source_Detail__c}\n      &DiscountPercent__c=\n      &ProductURL__c=${h}\n    `.replace(/\s+/g,"")}createSalesForceQuote(e){const t=this.getLeadInfo(),a=`${this.getQuoteDataToSave(t)}&operation=create`;return Y((e||this.quotesEndPoint)+a).then((e=>{t.quoteId=e.id,F.saveObject(je.DATA_KEY_NAMES.LEAD_INFO,t)})).catch((e=>{}))}updateSalesForceQuote(e){const t=this.getLeadInfo(),a=`${this.getQuoteDataToSave(t)}&operation=update&Id=${t.quoteId}`;return Y((e||this.quotesEndPoint)+a)}getLeadInfo(){return F.getObject(je.DATA_KEY_NAMES.LEAD_INFO)||null}shouldHideLeadForm(){const{nameSaved:e,phoneSaved:t,emailSaved:a}=this.isLeadSaved();return t||e&&a}isLeadSaved(){const e=this.getLeadInfo();return{leadObjectSaved:!!e,nameSaved:!!e&&!!e.leadDetails.Name,phoneSaved:!!e&&!!e.leadDetails.Phone,emailSaved:!!e&&!!e.leadDetails.Email}}subscribeForUpdates(e,t){O.subscribe(je.EVENTS.LEAD_UPDATED,e,t)}subscribeForCapture(e,t){O.subscribe(je.EVENTS.LEAD_CAPTURED,e,t)}async updateLeadData(e,t,a,r,i,n){const{leadDetails:o,...s}=this.getLeadInfo()||{},{partnerId:l,landingPage:c}=JSON.parse(sessionStorage.getItem("visitorInfo"))||{},{name:d,id:m}=window.phi.client,u={Name:e.Name||o?.Name||"",Phone:e.Phone||o?.Phone||"",Email:e.Email||o?.Email||"",Membership_Number__c:e.Membership_Number__c||o?.Membership_Number__c||""},p={Phone:e.Phone||"",Email:e.Email||""},h={...e.campaignFieldName&&{Custom_Campaign_FieldName__c:e.campaignFieldName},...e.campaignFieldValue&&{Custom_Campaign_FieldValue__c:e.campaignFieldValue},Lead_Source_Detail__c:e.Channel||G()||"",Client_Name__c:e.Client_Name__c||d||"",Source__c:e.Source__c||"",Previous_Insurer__c:e.Previous_Insurer__c||"",Custom_Campaign__c:e.campaignName||"",Status:e.Status||"Qualified",IsMember__c:e.IsMember__c||o?.IsMember__c||"",GA_Client_ID__c:U("gaClientId"),leadTime_ts__c:(new Date).getTime(),LeadSource:"Website",Channel__c:"Digital",Client_ID__c:m||"",Partner_ID__c:l,Landing_Page__c:c},v={...s,isCaptured:!1,leadDetails:{...o,...h}};return F.saveObject(je.DATA_KEY_NAMES.LEAD_INFO,v),O.publish(je.EVENTS.LEAD_UPDATED,{}),t?this.submitLeadData(r,u,p,i,n):null}getLeadDataToCreate(e,t){const a=e.Custom_Campaign_FieldName__c?`&Custom_Campaign_FieldName__c=${e.Custom_Campaign_FieldName__c}`:"",r=e.Custom_Campaign_FieldValue__c?`&Custom_Campaign_FieldValue__c=${e.Custom_Campaign_FieldValue__c}`:"";return`\n      ?LastName=${t?.Name?encodeURIComponent(t.Name):encodeURIComponent(e.Name||"")||"NO_NAME"}\n      &Phone=${t?.Phone?encodeURIComponent(t.Phone):encodeURIComponent(e.Phone||"")}\n      &Email=${t?.Email||e.Email||""}\n      &Membership_Number__c=${t?.Membership_Number__c||e.Membership_Number__c||""}\n      &GA_Client_ID__c=${e.GA_Client_ID__c}\n      &LeadSource=${e.LeadSource}\n      &Lead_Source_Detail__c=${e.Lead_Source_Detail__c}\n      &Client_Name__c=${e.Client_Name__c}\n      &Source__c=${e.Source__c}\n      &Status=${e.Status}\n      &leadTime_ts__c=${e.leadTime_ts__c}\n      &Channel__c=${e.Channel__c}\n      &IsMember__c=${e.IsMember__c}\n      &Previous_Insurer__c=${e.Previous_Insurer__c}\n      &Client_ID__c=${e.Client_ID__c}\n      &Partner_ID__c=${e.Partner_ID__c}\n      &Landing_Page__c=${e.Landing_Page__c}\n      &Custom_Campaign__c=${e.Custom_Campaign__c}\n      ${a}\n      ${r}\n    `.replace(/\s+/g,"")}async submitLeadData(e,t,a,r,i){if(!(t?.Phone||this.isLeadSaved().phoneSaved||t?.Email||this.isLeadSaved().emailSaved))return null;const n=r||this.leadsEndPoint,o=this.getLeadInfo(),{leadId:s,leadDetails:l}=o,c=Me.getLatestCover(),d=Me.getCoverFromProfile()||document.querySelector('input[name="covertype"]:checked')?.value,m=Te.getQuoteDetails(),u=await He();let p=this.getLeadDataToCreate(l,t);null!==u&&(a?.Email||a?.Phone)&&(o.leadDetails.sha256_email_address_google=await Ve(ue(a?.Email||""),u),o.leadDetails.sha256_phone_number_google=await Ve(pe(a?.Phone||""),u),o.leadDetails.sha256_email_address_non_google=await Ve(he(a?.Email||""),u),o.leadDetails.sha256_phone_number_non_google=await Ve(ve(a?.Phone||""),u)),d&&(p+=`&Cover_Type__c=${d}`),c&&(p+=`&cover=${JSON.stringify(c)}`),(e||m)&&(p+=`&quote=${JSON.stringify(e||m)}`);return p+=`&CoverforChild__c=${!!(e?.havingBaby||m?.havingBaby)}`,s?(p+=`&id=${s}&operation=update`.replace(/\s+/g,""),Y(n+p).then((e=>{o.isCaptured=!0,o.leadDetails.Name=e.LastName||"",o.leadDetails.Phone=e.Phone||"",o.leadDetails.Email=e.Email||"",o.leadDetails.Membership_Number__c=e.Membership_Number__c||"",F.saveObject(je.DATA_KEY_NAMES.LEAD_INFO,o),O.publish(je.EVENTS.LEAD_UPDATED,{})})).catch((e=>{})).then((()=>this.handleQuoteUpdates({quoteEndpointOverride:i})))):(p+="&operation=create".replace(/\s+/g,""),Y(n+p).then((e=>{o.isCaptured=!0,o.leadId=e.id||"",o.leadDetails.Name=e.LastName||"",o.leadDetails.Phone=e.Phone||"",o.leadDetails.Email=e.Email||"",o.leadDetails.Membership_Number__c=e.Membership_Number__c||"",F.saveObject(je.DATA_KEY_NAMES.LEAD_INFO,o),O.publish(je.EVENTS.LEAD_CAPTURED,{})})).catch((e=>{})).then((()=>this.handleQuoteUpdates({quoteEndpointOverride:i}))))}isLeadCaptured(){const e=this.getLeadInfo();return!!e&&e.isCaptured}
1leadJoined(e,t){if(this.isLeadCaptured()){const a=this.getLeadInfo(),r={Email:a.leadDetails.Email,IsMember__c:a.leadDetails.IsMember__c,LeadSource:a.leadDetails.LeadSource,Name:a.leadDetails.Name,Phone:a.leadDetails.Phone,Source__c:a.leadDetails.Source__c,Status:"Joined"};this.updateLeadData(r,!0,void 0,void 0,e,t).finally((()=>{localStorage.removeItem("leadinfo")}))}}}const $e=new je(O,F,Te,Me);var Je=a(11339);const Qe=[{key:"form",required:!0},{key:"form.name",required:!0},{key:"form.stepName",required:!0}],Ge=[{key:"error",required:!0},{key:"error.code",required:!1},{key:"error.type",required:!1},{key:"error.message",required:!0}],We=[{key:"event",required:!0},...Ge,...Qe,{key:"form.fieldLabel",required:!1}],ze=[{key:"event",required:!0},...Qe],Ke=[{key:"interaction",required:!0},{key:"interaction.component",required:!0},{key:"interaction.destinationURL"},{key:"interaction.heading"},{key:"interaction.label",required:!0},{key:"interaction.position",required:!0}],et=[{key:"product"},{key:"product.annualisedPremium"},{key:"product.billingPeriod"},{key:"product.category"},{key:"product.claimback"},{key:"product.coverType"},{key:"product.excess"},{key:"product.extrasId"},{key:"product.hospitalId"},{key:"product.id"},{key:"product.marketType"},{key:"product.name"},{key:"product.premium"},{key:"product.pseu"},{key:"product.scale"}],tt=[{key:"lead",required:!1},{key:"lead.age",required:!1},{key:"lead.coverChildBirth",required:!1},{key:"lead.partnerAge",required:!1},{key:"lead.scale",required:!1},{key:"lead.state",required:!1},{key:"lead.gender",required:!1},{key:"lead.incomeType",required:!1},{key:"lead.incomeRange",required:!1},{key:"lead.isMember",required:!1},{key:"lead.source",required:!1},{key:"lead.currentlyHasInsurance",required:!1},{key:"lead.numberOfDependents",required:!1},{key:"lead.partnerAge",required:!1},{key:"lead.partnerGender",required:!1},{key:"lead.postcode",required:!1},{key:"lead.suburb",required:!1},{key:"lead.existingPHIFund",required:!1},{key:"lead.visaType",required:!1},{key:"lead.visaName",required:!1},{key:"lead.visaCondition",required:!1}],at=[{key:"corporate",required:!1},{key:"corporate.clientDiscount",required:!1},{key:"corporate.clientName",required:!1},{key:"corporate.clientId",required:!1},{key:"corporate.clientSubPortfolio",required:!1}],rt=[{key:"join",required:!1},{key:"join.promoCode",required:!1},{key:"join.transactionId",required:!1}],it=[{key:"user_data",required:!0},{key:"user_data.sha256_email_address_google",required:!0},{key:"user_data.sha256_phone_number_google",required:!0},{key:"user_data.sha256_email_address_non_google",required:!0},{key:"user_data.sha256_phone_number_non_google",required:!0}],nt=[{key:"event",required:!0},{key:"environment",required:!0,persisted:!0},{key:"environment.type",required:!0,persisted:!0},{key:"environment.releaseVersion",required:!0,persisted:!0},{key:"environment.codeVersion",required:!0,persisted:!0},{key:"environment.platform",required:!0,persisted:!0},{key:"page",required:!0},{key:"page.brand",required:!0},{key:"page.pageName",required:!0},{key:"page.pageTitle",required:!0},{key:"page.pageType",required:!0},{key:"page.pageUrl",required:!0},{key:"page.previousPageName",required:!0},{key:"page.queryString",required:!0},{key:"page.site",required:!0},{key:"page.siteSection",required:!0},{key:"page.brand",required:!0},{key:"page.siteSubSection1",required:!0},{key:"page.siteSubSection2",required:!0},{key:"page.siteSubSection3",required:!0},{key:"page.siteSubSection4",required:!0},{key:"page.urlFragment",required:!0},{key:"page.tagLabels",required:!0},{key:"page.ecid",required:!0},{key:"clickSource",required:!1},{key:"clickSource.label",required:!1},{key:"clickSource.location",required:!1}],ot=[...nt,...Ge],st=[{key:"provider.name"},{key:"provider.postcode"},{key:"provider.state"},{key:"provider.suburb"},{key:"provider.type"},{key:"store.postcode"},{key:"store.state"},{key:"store.suburb"}],lt=[{key:"event",required:!0},{key:"search"},{key:"search.term"},{key:"search.method"},{key:"search.numberOfResults"},{key:"search.label"},{key:"search.type"},...st],ct={PAGE_VIEW:"pageView",PAGE_VIEW_ERROR:"pageViewError",ERROR:"error",INTERACTION:"interaction",CLICK_TO_CALL:"clickToCall",IMPRESSION:"impression",FORM_
1START:"formStart",FORM_COMPLETE:"formComplete",FORM_FIELD_INTERACTION:"formFieldInteraction",PRODUCT_COMPARE:"productCompare",PRODUCT_DETAIL:"productDetail",LIVE_CHAT_START:"liveChatStart",LIVE_CHAT_END:"liveChatComplete",QUOTE_COMPLETE:"quoteComplete",QUOTE_UPDATE:"quoteUpdate",QUOTE_START:"quoteStart",QUOTE_EMAIL_START:"quoteEmailStart",QUOTE_EMAIL_COMPLETE:"quoteEmailComplete",JOIN_START:"joinStart",JOIN_REBATE:"joinRebate",JOIN_PAYMENT:"joinPayment",JOIN_SUMMARY:"joinCoverSummary",JOIN_COMPLETE:"joinComplete",PROVIDER_SEARCH_RESULTS:"searchResults"},dt=[{eventName:ct.LIVE_CHAT_START,data:[{key:"event",required:!0}]},{eventName:ct.LIVE_CHAT_END,data:[{key:"event",required:!0},{key:"chat",required:!0},{key:"chat.conversationId",required:!0}]},{eventName:ct.PAGE_VIEW,isViewChange:!0,data:nt},{eventName:ct.PAGE_VIEW_ERROR,isViewChange:!0,data:ot},{eventName:ct.INTERACTION,data:[{key:"event",required:!0},...Ke,...tt,...et,...st]},{eventName:ct.CLICK_TO_CALL,data:[{key:"event",required:!0},...Ke]},{eventName:ct.IMPRESSION,data:[{key:"event",required:!0},...Ke]},{eventName:ct.FORM_START,data:ze},{eventName:ct.FORM_START,data:[...ze,...at]},{eventName:ct.FORM_FIELD_INTERACTION,data:[...ze,{key:"form.fieldLabel",required:!0}]},{eventName:ct.FORM_COMPLETE,data:[...ze,{key:"lead",required:!1},{key:"lead.isMember",required:!1}]},{eventName:ct.ERROR,data:We},{eventName:ct.PRODUCT_COMPARE,data:[{key:"event",required:!0},{key:"quote"},{key:"quote.status"},...et]},{eventName:ct.QUOTE_COMPLETE,data:[{key:"event",required:!0},...Qe,...tt,...at,...et]},{eventName:ct.QUOTE_START,data:[{key:"event",required:!0},{key:"product.category",required:!0},{key:"product.marketType",required:!0},...Qe,...at]},{eventName:ct.QUOTE_UPDATE,data:[{key:"event",required:!0},{key:"product.category",required:!0},{key:"product.coverType",required:!0},{key:"product.marketType",required:!0},...Qe,...tt]},{eventName:ct.QUOTE_EMAIL_START,data:[{key:"event",required:!0},...Qe]},{eventName:ct.QUOTE_EMAIL_COMPLETE,data:[{key:"event",required:!0},...Qe]},{eventName:ct.JOIN_START,data:[...at,...Qe,...tt,...et,...it]},{eventName:ct.JOIN_REBATE,data:[...at,...Qe,...rt,...tt,...et]},{eventName:ct.JOIN_PAYMENT,data:[...at,...Qe,...rt,...tt,...et]},{eventName:ct.JOIN_SUMMARY,data:[...at,...Qe,...rt,...tt,...et]},{eventName:ct.JOIN_COMPLETE,data:[...at,{key:"consent",required:!0},{key:"consent.phoneNumberConsent",required:!0},{key:"consent.hadContinuousCover",required:!0},{key:"consent.samePostalAddress",required:!0},{key:"consent.diffNameOnMedicare",required:!1},...Qe,...rt,...tt,{key:"payment",required:!0},{key:"payment.method",required:!0},...et,...it]},{eventName:ct.PROVIDER_SEARCH_RESULTS,data:lt}];function mt(){const{quoteObj:e}=localStorage,t=function(){let e={scale:"S",isDualPrice:!1,excess:"300",incomeType:"S",incomeRange:0};switch(q("for")){case"families":e={scale:"F",isDualPrice:!1,excess:"300",incomeType:"F",incomeRange:0};break;case"couples":e={scale:"C",isDualPrice:!1,excess:"300",incomeType:"C",incomeRange:0};break;case"singleParent":e={scale:"P",isDualPrice:!1,excess:"300",incomeType:"P",incomeRange:0};break;default:e={scale:"S",isDualPrice:!1,excess:"300",incomeType:"S",incomeRange:0}}return e}();return null!=q("for")?(localStorage.quoteObj=JSON.stringify(t),t):e?JSON.parse(e):(localStorage.quoteObj=JSON.stringify(t),t)}const ut=e=>e===p.DD?"direct debit":e===p.CC?"credit card":e===p.PAYROLL?"payroll":"not applicable",pt=(e,t=[])=>{const a=t?.find((t=>t.tableID===e))?.displayValue;return a??""},ht=(e,t)=>{let a=1,r=1;return e!==u.FAMILIES&&e!==u.COUPLES||(a=2),t!==m.SOFTBUNDLED&&t!==m.HARDBUNDLED||(r=2),a*r},vt=(e,t)=>e&&t?"phone and email":e?"phone":t?"email":"not applicable",bt=()=>{const e=document.querySelectorAll(".js-product-banner .product-banner, .js-product-banner-subs-working-visa .product-banner, .overseas-product-banner .product-banner");let t;if(e&&e.length>0){const a=e[0],r=JSON.parse(a.dataset.config),{productType:i,productTypes:n}=r;let o,s,l=W();if(l===v.RETAIL&&[b.STUDENTS,b.VISITORS,b.WORKING].includes(n))s=window.digitalData.page.pageInfo.pageID.split("|")[0].trim(),o=ft(n),l=n===b.VISITORS?v.OVERSEAS:v.OSHC;else{r.name=a.dataset.productname;const e=Me.getCoverDetails(r.name),t=i===m.EXTRAS&&"none"===e?.claimback;s=e?.title,o=t?f.AMBULANCE:k(i,!0)}const c=Te.getQuoteDetails()||Ze;t={category:"health insurance",coverType:o,marketType:l,name:s?.toLowerCase(),scale:M(c.scale,!0)}}return t},ft=e=>{let t;if(e===b.VISITORS)t=f.HOSPITAL_MEDICAL_EXTRAS;else t=f.PACKAGE;return t},yt=e=>{const{currentTarget:t}=e,a=t.dataset,r=(e=>{const t=e.replace(window.location.origin+window.location.pathname,"");return t&&t.match(/^[^#?].*/i)?e:""})(t.href),i={event:ct.INTERACTION,interaction:{component:a.analyticsComponent||"not applicable",destinationUrl:r||"not applicable",heading:a.analyticsHeading||"not applicable",label:a.analyticsLabel||"not applicable",position:a.analyticsPosition||"not applicable"}};if(a.analyticsProduct){bt()&&(i.product=[bt()])}return i},gt=(e,t)=>{const a=Te.getQuoteDetails()||Ze,{id:r,name:i,excessId:n,type:o,title:s,claimbackId:l,config:{claimbackList:c=[],excessList:d=[],name:u},price:{current:p}}=e,h=l&&pt(l,c),v=o===m.EXTRAS&&"none"===h;let b;b=e.isTypePackage?f.PACKAGE:v?f.AMBULANCE:k(o,!0);let y={category:"health insurance",coverType:b,marketType:W(),name:s.toLowerCase(),scale:M(a.scale,!0)};if(t){const e=v&&!["halfyearly","yearly"].includes(a.priceFreq)?"halfyearly":a.priceFreq,t="halfyearly"===e?"half yearly":e;y={...y,annualisedPremium:p?.yearly,billingPeriod:t,claimback:l?`${h} claimback`:"not applicable",excess:n?E(pt(n,d)):"not applicable",extrasId:l||"not applicable",hospitalId:n||"not applicable",id:i||u||r,premium:p?.[e],pseu:ht(a.scale,o)}}return y},Nt=(e,t)=>
1{const a=mt()||Ze,{excess:r,title:i,claimback:n,productId:o,price:s,premium:l}=e,c=i?i.split("(")[0].trim():"";let d={category:h.HEALTH_INSURANCE,coverType:n?"hospital & extras":"hospital",marketType:v.OVERSEAS,name:c?c.toLowerCase():"not applicable",scale:a?.scale?M(a.scale,!0):"not applicable"};return t&&(d={...d,annualisedPremium:s?.current?.yearly||0,billingPeriod:"fortnightly",claimback:n?`${n} claimback`:"not applicable",excess:r?E(r):"not applicable",extrasId:o||"not applicable",hospitalId:o||"not applicable",id:c?c.toLowerCase().replace(/\s+/g,"-"):"not applicable",premium:l?parseFloat(l):0}),d},Ct=(e,t,a)=>{const r=window.phi?.incometiers;if(!r)return"";const i="S"===e?"single":"family",n=r[i];if(!n)return"";const o=window.phi?.agrrates;if(!o)return"";const s=o.current[i.toUpperCase()];if(!s)return"";const l="F"===e?"C":"S";try{let e,r;if(0===Number(t))r=`TIER${l}N`,e=n[r][0];else{const a=Number(t)-1;r=`TIER${l}${a}`,e=n[r][a]}return`${e} (${s[r][I(a)]}% rebate)`}catch(e){throw new Error(`Error in getIncomeRangeLabel with incometier: ${n}.`)}},Dt=e=>{const t=Te.getQuoteDetails()||{},{age:a,havingBaby:r,partnerAge:i,scale:n,state:o,incomeType:s,incomeRange:l}=t,{IsMember__c:c,Previous_Insurer__c:d,Phone:m,Email:p}=$e.getLeadInfo()?.leadDetails||{},h=((e,t,a=!1)=>"Y"===e?"Yes":"N"===e?"No":"Member"===e||t?"I'm a Medibank member":a?"nil":"No answer provided")(d,!!c,!0).toLowerCase(),v={age:a,coverChildBirth:!!r,partnerAge:n===u.COUPLES||n===u.FAMILIES?i:"not applicable",scale:n?M(n,!0):"not applicable",state:o?.toLowerCase(),incomeType:s?P(s,!0):"not applicable",incomeRange:Ct(s,l,a).toLowerCase(),isMember:!!c,source:vt(m,p),currentlyHasInsurance:h};return e?Object.entries(v).reduce(((t,[a,r])=>({...t,...e.includes(a)&&{[a]:r}})),{}):v},Et=(e,t,a)=>{const{healthHistory:r,personalDetails:i,dependentDetails:n,childcount:o=null,visaDetails:s}=e,l={...a?(()=>{const e=mt()||{},{scale:t,incomeType:a,incomeRange:r}=e,{Phone:i,Email:n}=$e.getLeadInfo()?.leadDetails||{},o=de("subclass")||"not applicable",s=de("age");return{age:s?Number(s):30,scale:t?M(t,!0):"not applicable",visaName:o,incomeType:a?P(a,!0):"not applicable",incomeRange:`tier${r}`,source:vt(i,n)}})():Dt()},{value:c,isCustom:d,customValue:m}=r?.currentfund||{};return t!==ct.JOIN_START&&(l.existingPHIFund=((c||"no")+(d?` - ${m}`:"")).toLowerCase(),l.gender=(i?.gender||"not applicable").toLowerCase(),l.postcode=i?.resaddress?.postcode||"not applicable",l.suburb=(i?.resaddress?.suburb||"not applicable").toLowerCase(),l.partnerGender=(n?.gender||"not applicable").toLowerCase(),l.numberOfDependents=o||"not applicable",l.state=i?.resaddress?.state?.toLowerCase()||l.state||"not applicable",l.currentlyHasInsurance="true"===r?.hascurrentinsurance?"yes":"no",s?.visasubclass&&(l.visaName=s?.visasubclass,l.nationality=s?.nationality.toLowerCase(),l.partnerNationality="not applicable",l.partnerVisaName="not applicable",l.partnerVisaType="not applicable"),a&&(l.coverChildBirth=!!o,l.postcode=i?.postaddress?.postcode?.toLowerCase()||"not applicable",l.suburb=i?.postaddress?.suburb?.toLowerCase()||"not applicable",l.state=i?.postaddress?.state?.toLowerCase()||"not applicable",l.partnerAge=n?.dob?Number(Z(n?.dob)):"not applicable",l.isMember=!1,l.gender=me(i?.gender),l.partnerGender=me(n?.gender),l.partnerNationality=n?.nationality,l.partnerVisaName=n?.visasubclass||"not applicable")),l},St=()=>({clientDiscount:window.phi?.discount?.percentage??0,clientName:J(),clientId:window.phi?.client?.id??"",clientSubPortfolio:G().toLowerCase().replace(/[^a-z0-9]+/g," ")}),wt=async(e,t)=>{let a="",r="",i="",n="";if(!e&&!t){const e=JSON.parse(localStorage.getItem("leadinfo")||"{}");return e?.content?.leadDetails&&(a=e?.content?.leadDetails?.sha256_email_address_google,r=e?.content?.leadDetails?.sha256_email_address_non_google,i=e?.content?.leadDetails?.sha256_phone_number_google,n=e?.content?.leadDetails?.sha256_phone_number_non_google),{sha256_email_address_google:a,sha256_phone_number_google:i,sha256_email_address_non_google:r,sha256_phone_number_non_google:n}}{const a=await He();if(null!==a&&(t||e)){return{sha256_email_address_google:await Ve(ue(t||""),a)||"",sha256_phone_number_google:await Ve(pe(e||""),a)||"",sha256_email_address_non_google:await Ve(he(t||""),a)||"",sha256_phone_number_non_google:await Ve(ve(e||""),a)||""}}}return{sha256_email_address_google:"",sha256_phone_number_google:"",sha256_email_address_non_google:"",sha256_phone_number_non_google:""}},Tt=(e,t,a)=>{const{current:r={}}=t||{},{priceFreq:i=null,scale:n=null}=e||{},{claimback:o={},excess:s={},productId:l=null,productType:c=null,title:d=null}=a||{};return[{annualisedPremium:r.yearly||0,billingPeriod:i||"not applicable",category:"health insurance",claimback:o.val?`${o.val} claimback`:"not applicable",coverType:c?k(c,!0):"not applicable",excess:s.val?`${s.val} excess`:"not applicable",extrasId:o.id||"not applicable",hospitalId:s.id||"not applicable",id:l||"not applicable",marketType:W()||"not applicable",name:d?d.toLowerCase():"not applicable",premium:r.fortnightly||0,pseu:n&&c?ht(n,c):1,scale:n?M(n,!0):"not applicable"}]},Zt="not applicable",At="interaction",It=e=>{const t=["H1","H2","H3","H4","H5","H6"],a=Array.from(e.children);let r;for(let e=0;e<a.length;e++)if(a.push(...a[e].children),t.includes(a[e].tagName)){r=a[e];break}return r?.textContent||"no heading"},Pt=e=>{(e=>{e.registerElementListener("a[href^='tel']",(e=>{const t=e.target,a=new CustomEvent(Je.tm,{detail:{eventName:At,overrides:{event:ct.CLICK_TO_CALL,interaction:{component:t.getAttribute("data-analytics-component")||Zt,destinationUrl:t.href,heading:t.getAttribute("data-analytics-heading")?.toLowerCase()||Zt,label:t.textContent?.toLowerCase(),position:Zt}}}});document.dispatchEvent(a)}),!0)})(e),e.registerElementListener("web-disclaimer-link-interaction",(e=>{const t=e.target,a=e.currentTarget;if("A"===t.tagName){const e={interaction:{component:"disclaimer",destinationUrl:t.href,heading:It(a)?.toLowerCase(),label:t.textContent?.toLowerCase()||"",position:"not applicable"}},r=new CustomEvent("analyticsEvent",{detail:{eventName:At,overrides:e}});document.dispatchEvent(r)}}))},Mt=e=>((e=[])=>{const t=e.map((e=>((e="")=>
1e.toLowerCase().replace("-"," ").trim())(e||""))).filter(Boolean);let a="not applicable";return(t.includes("visitors")||t.includes("working holiday"))&&(a="visitors"),t.includes("working")&&(a="working"),a})((e||[]).flatMap((e=>Array.isArray(e?.productTypes)&&e.productTypes.length>0?e.productTypes:Array.isArray(e?.productIdentifierOverseas?.productConfigOverseas?.productType)?e.productIdentifierOverseas.productConfigOverseas.productType:[e?.productType||e?.type]))),_t=(e,t)=>{const a=new URLSearchParams(window.location.search).get("subclass")||"not applicable",r=Mt(t),i=e&&(e=>{const t=sessionStorage.getItem("overseasComparisonVisaContext");if(!t)return null;try{const a=JSON.parse(t),r=(a?.visaType||"").trim();if(!r)return null;const i=(a?.visaName||"").trim();return i&&e&&i!==e?null:r}catch(e){return null}})(a)||r;return{visaType:i}};class Rt{EventNames=ct;triggerEvent=(e,t)=>{const a=new CustomEvent("analyticsEvent",{detail:{eventName:e,overrides:t}});document.dispatchEvent(a)};static getPageViewEvent=()=>{const e=window.phi?.client,t=St();return e?.corporateName&&(t.clientName=e.corporateName),e&&Object.keys(e).length>0?new CustomEvent("analyticsPageView",{detail:{overrides:{corporate:t}}}):new CustomEvent("analyticsPageView")};static instance(){if(!window.AnalyticsUtil){window.AnalyticsUtil=new this,Je.cp.configure({events:dt,providers:["AdobeAnalytics"]}),Je.cp.initialiseListeners(),Pt(Je.cp);const e=this.getPageViewEvent();document.dispatchEvent(e),Je.cp.registerElementListener("web-simple-interaction",Rt.triggerSimpleInteractionEvent),Je.cp.registerElementListener("global-comp-simple-interaction",Rt.triggerSimpleInteractionEvent)}return window.AnalyticsUtil}static triggerSimpleInteractionEvent=e=>{Rt.instance().triggerEvent(ct.INTERACTION,yt(e))};trackInteraction=(e,t,a=!1,r)=>{const i=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,"string"==typeof t?t.toLowerCase():t]))),n={event:ct.INTERACTION,interaction:{destinationUrl:"not applicable",position:"not applicable",heading:"not applicable",...i}};e&&(n.product=r?[Nt(e,a)]:[gt(e,a)]),this.triggerEvent(ct.INTERACTION,n)};trackGenericInteraction=(e,t,a,r=null)=>{const i={event:ct.INTERACTION,interaction:{destinationUrl:"not applicable",position:"not applicable",heading:"not applicable",...e}};t&&(i.product=t),a&&(i.lead=a),r&&(i.corporate=r),this.triggerEvent(ct.INTERACTION,i)};trackJoinFormLoad=async({eventName:e,step:t,productData:a,transactionId:r,paymentMethod:i,isOversea:n,visaType:o,email:s,phone:l})=>{const c=n?"overseasstate":"state",d=JSON.parse(sessionStorage.getItem(c)||"{}"),m={event:e,form:{name:g.JOIN,stepName:t},product:a};if(m.lead=Et(d,e,n),o&&(m.lead.visaType=o),e!==ct.JOIN_START&&(m.join={promoCode:d.offers?.promoCode?.code||"not applicable",...r&&{transactionId:r}}),e===ct.JOIN_START)m.user_data=await wt();else if(e===ct.JOIN_COMPLETE)m.user_data=await wt(l,s);else{const{phonenumber:e,phonenumberconsent:t,emailaddress:a}=d.personalDetails||{},r=t||n?e:"";m.user_data=await wt(r,a)}if(e===ct.JOIN_COMPLETE){const{phonenumberconsent:e,hadContinuousCover:t,samepostaladdress:a}=d.personalDetails,r=d?.medicareDetails?.diffNameOnMedicare;m.payment={method:ut(i||"")},m.consent={phoneNumberConsent:R(e?.toString()||"").toLowerCase(),hadContinuousCover:R(t?.toString()||"").toLowerCase(),samePostalAddress:R(a?.toString()||"").toLowerCase()},"boolean"==typeof r&&(m.consent.diffNameOnMedicare=R(r?.toString()||"").toLowerCase())}V()||(m.corporate=St()),this.triggerEvent(e,m)};trackPageLoad=async(e,t,a)=>{let r;r=a?e.map((e=>Nt(e,!0))):e.map((e=>gt(e,!0)));const{corporate:i}=(()=>{if(!V()){const{id:e,name:t}=window.phi.client;return{corporate:{clientDiscount:window.phi.discount.percentage??0,clientSubPortfolio:G().toLowerCase().replace(/[^a-z0-9]+/g," "),clientName:t,clientId:e}}}})()||{},n=a&&t===ct.PRODUCT_DETAIL?(()=>{const e=new URLSearchParams(window.location.search);return e.has("age")&&e.has("subclass")&&e.has("requires8501")})():!Te.isDefaultQuote();if(JSON.parse(localStorage.getItem("shouldTrackQuoteComplete")||"false")){const e=await wt(),t={event:ct.QUOTE_COMPLETE,form:{name:Te.getQuoteDetails().source||"",stepName:"confirmation"},lead:Dt(),product:r,user_data:e,...i&&{corporate:i}};this.triggerEvent(ct.QUOTE_COMPLETE,t),localStorage.setItem("shouldTrackQuoteComplete",JSON.stringify(!1))}const o={event:t||ct.PRODUCT_COMPARE,product:r,quote:{status:n?"complete":"incomplete"},...i&&{corporate:i}};if(t===ct.PRODUCT_DETAIL&&(o.lead=_t(a,e)),t===ct.PRODUCT_DETAIL&&n&&
1!a){const{partnerAge:e,coverChildBirth:t,currentlyHasInsurance:a,incomeRange:r,incomeType:i,state:n,isMember:s}=Dt();o.lead={...o.lead,partnerAge:e,coverChildBirth:t,currentlyHasInsurance:a,incomeRange:r,incomeType:i,isMember:s,state:n}}this.triggerEvent(ct.PRODUCT_COMPARE,o)};trackProductClick=(e,t,a,r)=>{const{title:i}=t,n={component:y.CARD_TILE,destinationUrl:e,label:r??i,position:a,heading:i};this.trackInteraction(t,n,!0)};trackEmailQuoteStart=()=>{this.triggerEvent(ct.QUOTE_EMAIL_START,{event:ct.QUOTE_EMAIL_START,form:{name:g.EMAIL_QUOTE,stepName:"email address"}})};trackEmailQuoteComplete=()=>{this.triggerEvent(ct.QUOTE_EMAIL_COMPLETE,{event:ct.QUOTE_EMAIL_COMPLETE,form:{name:g.EMAIL_QUOTE,stepName:"confirmation"}})};trackFilterChange=(e,t)=>{this.trackInteraction(null,{component:y.FILTER,heading:e,label:t})};trackPromoImpression=(e,t)=>{this.triggerEvent(ct.IMPRESSION,{event:ct.IMPRESSION,interaction:{component:y.PROMO_CODE,position:"not applicable",destinationUrl:"not applicable",heading:e,label:`promo code "${t}" has been added`}})};trackLiveChatStart=()=>{this.triggerEvent(ct.LIVE_CHAT_START,{event:ct.LIVE_CHAT_START})};trackLiveChatEnd=e=>{this.triggerEvent(ct.LIVE_CHAT_END,{event:ct.LIVE_CHAT_END,chat:{conversationId:e||"not applicable"}})};trackTargetBannerImpression=()=>{const e=document.querySelector(".returning-member-banner .countdown-banner-actions a");if(e){const{analyticsHeading:t,analyticsLabel:a}=e.dataset;this.triggerEvent(ct.IMPRESSION,{event:ct.IMPRESSION,interaction:{component:y.LANDING_BANNER,position:"not applicable",destinationUrl:e.href||"not applicable",heading:t||"not applicable",label:a||"not applicable"}})}};trackRequestCallbackStart=()=>{this.triggerEvent(ct.FORM_START,{event:ct.FORM_START,form:{name:g.REQUEST_A_CALLBACK,stepName:"not applicable"}})};trackRequestCallbackComplete=(e,t)=>{this.triggerEvent(ct.FORM_COMPLETE,{event:ct.FORM_COMPLETE,form:{name:g.REQUEST_A_CALLBACK,stepName:N.CONFIRMATION},lead:{isMember:e,postCode:t}})}}const Lt=Rt.instance();var kt=a(94184),Ot=a.n(kt),Ft=a(63431),Bt=a(45697),xt=a.n(Bt);const Yt={content:xt().string.isRequired,tooltipId:xt().string};var Ut=a(35944);class qt extends i().Component{constructor(e){super(e);const{tooltipId:t}=this.props;this.htmlId=t?(0,Ft.ZP)(`retail-${t}`):(0,Ft.ZP)("retail")}componentDidMount(){new l.Tooltip(this.refs["tooltip-ref"])}render(){const{content:e,heading:t,label:a,position:r}=this.props;return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("svg",{role:"img",width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-tooltip":!0,"data-tooltip-classes":"tooltip-secondary",className:"icon icon-xs text-neutral-5",ref:"tooltip-ref","data-tooltip-content-id":`#${this.htmlId}`,onMouseEnter:()=>{t&&a&&((e,t,a)=>{Lt.trackInteraction(null,{component:y.TOOLTIP,heading:e,label:t,..."number"==typeof a&&{position:a+1}})})(t,a,r)},children:[(0,Ut.tZ)("title",{children:`tooltip ${a}`}),(0,Ut.tZ)("path",{d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm-.751-4.518h1.53V13H7.25v-1.518zM5 6.283c-.01-.465.057-.898.2-1.3.142-.4.347-.75.614-1.046.266-.296.593-.527.979-.69A3.283 3.283 0 0 1 8.09 3c.432 0 .825.062 1.18.185.353.123.659.3.916.533.258.233.458.518.6.855.143.338.214.725.214 1.163a2.572 2.572 0 0 1-.372 1.368 3.17 3.17 0 0 1-.38.506 13.58 13.58 0 0 1-.434.452c-.147.136-.292.275-.434.417a3.59 3.59 0 0 0-.387.451 2.17 2.17 0 0 0-.275.52 1.83 1.83 0 0 0-.104.636v.534H7.442v-.643c.018-.383.09-.71.214-.978a3.09 3.09 0 0 1 .455-.719c.179-.21.368-.403.565-.581.198-.178.382-.365.552-.56.17-.197.306-.414.407-.65.1-.238.142-.525.124-.862-.037-.502-.2-.894-.49-1.177-.29-.283-.682-.424-1.179-.424-.33 0-.616.06-.855.178a1.76 1.76 0 0 0-.6.479c-.16.2-.278.437-.352.711-.073.274-.11.57-.11.89H5.001z",fill:"#1C1C26",fillRule:"nonzero"})]}),(0,Ut.tZ)("div",{dangerouslySetInnerHTML:X(e),className:"d-none",id:this.htmlId})]})}}const Xt=qt;qt.propTypes=Yt;const Vt=()=>{const[e,t]=i().useState(!1);return{isOpen:e,toggleCollapse:()=>t(!e)}},Ht=({title:e="Icon Chevron",...t})=>(0,Ut.BX)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,Ut.tZ)("title",{children:e}),(0,Ut.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.52 8.144a.67.67 0 00.96 0l2.88-2.941a.67.67 0 01.96 0l.481.49a.705.705 0 010 .98l-3.84 3.921c-.53.541-1.391.541-1.921 0l-3.841-3.92a.705.705 0 010-.981l.48-.49a.67.67 0 01.96 0l2.88 2.94z",fill:"
1currentColor"}),(0,Ut.tZ)("mask",{id:"a",maskUnits:"userSpaceOnUse",x:"3",y:"5",width:"10",height:"6",children:(0,Ut.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.52 8.144a.67.67 0 00.96 0l2.88-2.941a.67.67 0 01.96 0l.481.49a.705.705 0 010 .98l-3.84 3.921c-.53.541-1.391.541-1.921 0l-3.841-3.92a.705.705 0 010-.981l.48-.49a.67.67 0 01.96 0l2.88 2.94z",fill:"#fff"})})]});Ht.propTypes={title:xt().string};const jt=Ht,$t=({labelCollapse:e,labelExpand:t,className:a,description:r,isOpen:i,...n})=>{const o=Ot()({"use-collapse-button":!0,[a]:a}),s=Ot()({"use-collapse-button-svg--flip":i}),l=i?e:t,c=`${l} for ${r}`;return(0,Ut.BX)("button",{type:"button",className:o,"aria-label":c,...n,children:[(0,Ut.tZ)("span",{children:l}),(0,Ut.tZ)(jt,{className:s})]})};$t.propTypes={isOpen:xt().bool,description:xt().string,labelCollapse:xt().string,labelExpand:xt().string,className:xt().string},$t.defaultProps={isOpen:!1,description:"",labelCollapse:"Hide details",labelExpand:"Show details",className:""};const Jt=$t;var Qt=a(95925);const Gt=({timeout:e=500,id:t,isOpen:a,children:r})=>{const n=i().useRef(null),[o,s]=i().useState(a?"auto":0),l=()=>s(`${n.current.clientHeight}px`),c={height:o,transition:`${e}ms`};return(0,Ut.tZ)(Qt.Z,{in:a,timeout:e,onEnter:l,onEntered:()=>s("auto"),onExit:l,onExiting:()=>s("0px"),children:(0,Ut.tZ)("div",{className:"use-collapse-panel",style:c,"aria-expanded":a,id:t,"aria-hidden":!!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(navigator.userAgent)&&!a,children:(0,Ut.tZ)("div",{ref:n,children:r})})})};Gt.propTypes={children:xt().node.isRequired,id:xt().string,isOpen:xt().bool,timeout:xt().number};const Wt={Button:Jt,Panel:Gt},zt=({price:e,freqToDisplay:t,isForJoinConfirmation:a,dualRateEnabled:r,isFuturePrice:i})=>{const n=Ot()({"product-price-wrapper m-b-1":!0,"product-summary-collapse p-t-2 m-t-2":i,"m-b-1-md":a,"m-b-2-md d-none d-md-block":!a}),o=Ot()({"d-md-none":!a,"d-none":a});let s=null;return a&&r&&i?s=(0,Ut.BX)("strong",{children:[" from ",ie()]}):a&&r&&(s=(0,Ut.BX)("strong",{children:[" until ",ne("D MMMM")]})),(0,Ut.BX)(Ut.HY,{children:[e&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("div",{className:o,children:[(0,Ut.tZ)("strong",{children:`$${e.dollar}.${e.cents}`}),(0,Ut.tZ)("span",{children:` / ${D(t)}`})]}),(0,Ut.tZ)("div",{className:n,children:(0,Ut.tZ)("div",{className:"product-price",children:(0,Ut.BX)("div",{className:"product-price-amount",children:[(0,Ut.BX)("span",{className:"sr-only",children:[e.dollar," dollars and ",e.cents," cents per ",D(t)," ",s]}),(0,Ut.tZ)("sup",{"aria-hidden":"true",children:"$"}),(0,Ut.tZ)("span",{"aria-hidden":"true",className:"js-price-dollar",children:e.dollar}),(0,Ut.BX)("sup",{"aria-hidden":"true",children:[".",e.cents,a?"*":""]}),(0,Ut.BX)("span",{"aria-hidden":"true",className:"small font-family-base",style:{fontWeight:a?400:700},children:["/ ",D(t),s]})]})})})]}),!e&&(0,Ut.tZ)("div",{className:"spinner-lg d-inline-block","data-testid":"loading-price-desktop",children:(0,Ut.tZ)("span",{className:"sr-only",children:"Loading"})})]})},Kt=({classNames:e,scale:t,state:a,productType:r,add:i,title:n,isForJoinConfirmation:o,isFutureSummary:s})=>{const{isOpen:l,toggleCollapse:c}=Vt({}),{agr:d,futureAGR:m,lhc:u,appliedYD:p,eligibleYD:h}=i,v=`product${s?"Future":""}SummaryPanel`;return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)(Wt.Panel,{isOpen:l,id:v,children:(0,Ut.tZ)("div",{className:e,children:(0,Ut.tZ)("table",{className:"product-summary-table",children:(0,Ut.BX)("tbody",{children:[(0,Ut.tZ)("tr",{children:(0,Ut.tZ)("td",{colSpan:"2",children:o?(0,Ut.BX)("i",{children:["*Price based on ",M(t)," cover in ",a]}):(0,Ut.BX)(Ut.HY,{children:["Price based on ",M(t)," cover in ",a]})})}),(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{className:"summary-label",children:["Australian Government Rebate"," ",o&&(0,Ut.tZ)(Xt,{content:"If you're eligible for Medicare, the government may pay a percentage of your premium as the Australian Government Rebate (AGR) depending on your age and income.",heading:n,label:"australian government rebate"})]}),(0,Ut.tZ)("td",{className:"text-right summary-value",children:(0,Ut.BX)("strong",{children:[s?m:d,"%"]})})]}),"EXTRAS"!==r&&(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{className:"summary-label",children:["Lifetime Health Cover loading"," ",o&&(0,Ut.tZ)(Xt,{content:"Lifetime Health Cover (LHC) is added to your hospital premium if you didn't have private hospital cover from the year you turn 3
11.",heading:n,label:"lifetime health cover loading"})]}),(0,Ut.tZ)("td",{className:"text-right summary-value",children:(0,Ut.BX)("strong",{children:[u,"%"]})})]}),p>0&&h&&(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{className:"summary-label",children:["Youth Discount"," ",(0,Ut.tZ)(Xt,{content:"Youth Discount will be included on many of our hospital covers. Members who are eligible can get up to 10% discount on hospital cover if they are between the ages of 18-25. ",heading:n,label:"youth discount"})]}),(0,Ut.tZ)("td",{className:"text-right summary-value",children:(0,Ut.BX)("strong",{children:[p,"%"]})})]})]})})})}),(0,Ut.tZ)(Wt.Button,{onClick:()=>{Lt.trackInteraction(null,{component:y.CARD_TILE,label:l?"hide details":"show details",heading:n,position:s?2:1}),c()},isOpen:l,"aria-controls":v,description:`product ${s?"future ":""}summary card`,"aria-expanded":l})]})},ea=({cover:e,startDate:t})=>{const{title:a,excess:r,claimback:i}=e;return(0,Ut.tZ)("div",{className:"product-summary-collapse p-t-1 m-t-1",children:(0,Ut.tZ)("table",{className:"product-summary-table",children:(0,Ut.BX)("tbody",{children:[(0,Ut.tZ)("tr",{children:(0,Ut.tZ)("td",{colSpan:"2",children:(0,Ut.tZ)("strong",{children:"Your cover details"})})}),(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{className:"summary-label",children:["Cover start date"," ",(0,Ut.tZ)(Xt,{content:"You can start making claims from your cover start date (subject to waiting periods and other membership conditions).",heading:a,label:"cover start date"})]}),(0,Ut.tZ)("td",{className:"text-right summary-value",children:(0,Ut.tZ)("strong",{children:t})})]}),!!r&&(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{className:"summary-label",children:["Hospital excess"," ",(0,Ut.tZ)(Xt,{content:"The amount you pay before Medibank contributes to your hospital costs.",heading:a,label:"hospital excess"})]}),(0,Ut.tZ)("td",{className:"text-right summary-value",children:(0,Ut.tZ)("strong",{children:"none"===r.val?"none":`$${r.val}`})})]}),!!i&&"none"!==i.val&&(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{className:"summary-label",children:["Extras claim back"," ",(0,Ut.tZ)(Xt,{content:"The percentage you can claim back at Members' Choice providers, up to annual limits. Fixed amounts apply at non-Members' Choice providers, up to annual limits.",heading:a,label:"extras claim back"})]}),(0,Ut.tZ)("td",{className:"text-right summary-value",children:(0,Ut.tZ)("strong",{children:`${i.val}%`})})]})]})})})},ta=(e,t,a=!1)=>{if(!e)return e;return C(e[a?"future":"current"][t])},aa=(0,o.connect)(((e,t)=>{const a=(0,s.formValueSelector)("paymentForm");return{...t,selectedPaymentType:a(e,"payments.paymentType"),selectedPaymentFreq:a(e,"payments.paymentfreq")}}))((({cover:e,quote:t,add:a,price:r,dualRateTooltip:i,dualRateToggleHandler:n,selectedPaymentFreq:o,selectedPaymentType:s,startDate:l,isForJoinConfirmation:c=!1,paymentFreqInProps:d})=>{const{productId:m,title:u,productType:p}=e,{priceFreq:h,scale:v,state:b,showFuturePrices:f}=t,g=window.phi.dualrate.dualRateActive;let N;N="cc"===s?"monthly":o;const C=N||d||h,E=Ot()({"product-summary-collapse p-t-1":!c,"dual-rates p-t-0-xl":g&&!c}),S=ta(r,C,g&&f),w=`show price from ${ie()}`,T=a=>{Lt.trackGenericInteraction({component:y.CARD_TILE,label:u?.toLowerCase(),heading:u?.toLowerCase(),destinationUrl:a.target.href},Tt(t,r,e))};return c?(0,Ut.BX)("div",{className:"col-12 product-summary confirmation-summary","data-margin-top":"20",children:[(0,Ut.tZ)("h4",{className:"m-t-0 m-b-1",children:(0,Ut.tZ)("a",{href:$(`/health-insurance/cover/${m}`),onClick:T,children:u})}),(0,Ut.tZ)("div",{className:"pricing m-b-1 m-b-1-md",children:(0,Ut.tZ)(zt,{price:ta(r,C,!1),freqToDisplay:C,isForJoinConfirmation:c,dualRateEnabled:g})}),(0,Ut.tZ)(Kt,{classNames:E,scale:v,state:b,productType:p,add:a,title:u,isForJoinConfirmation:c}),g&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)(zt,{price:ta(r,C,!0),freqToDisplay:C,isForJoinConfirmation:c,dualRateEnabled:g,isFuturePrice:!0}),(0,Ut.tZ)(Kt,{scale:v,state:b,productType:p,add:a,title:u,isForJoinConfirmation:c,isFutureSummary:!0})]}),(0,Ut.tZ)(ea,{cover:e,startDate:l})]}):(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("div",{className:"col-12 product-summary","data-margin-top":"20","data-sticky-for":"1200","data-sticky-class":"is-sticky",children:[(0,Ut.tZ)("h4",{className:"m-t-0 m-b-1",children:(0,Ut.tZ)("a",{href:$(`/health-insurance/cover/${m}`),onClick:T,"data-testid":"product-title",children:u})}),(0,Ut.tZ)("div",{className:"pricing m-b-1 m-b-2-md",children:(0,Ut.tZ)(zt,{price:S,freqToDisplay:C,isForJoinConfirmation:c,dualRateEnabled:g})}),g&&(0,Ut.BX)("div",{className:"dual-price-wrapper",children:[(0,Ut.BX)("p",{children:["Show price ",(0,Ut.BX)("strong",{children:["from ",ie()]})]}),(0,Ut.tZ)("div",{className:"input-group",children:(0,Ut.BX)("div",{className:"toggle",children:[(0,Ut.tZ)("input",{type:"checkbox",id:"dualPriceJoin","data-testid":"dualPriceJoin",name:"dualPriceJoin",checked:!!f,onChange:e=>{Lt.trackInteraction(null,{component:y.TOGGLE,label:L(!!e.target.checked),heading:w}),n(e)}}),(0,Ut.tZ)("label",{htmlFor:"dualPriceJoin",className:"text"})]})}),(0,Ut.tZ)(Xt,{content:i,heading:u,label:w})]}),(0,Ut.tZ)(Kt,{classNames:E,scale:v,state:b,productType:p,add:a,title:u,isForJoinConfirmation:c})]}),(0,Ut.BX)("div",{className:"col-12 summary-mobile-sticky js-summary-mobile-sticky","data-sticky-for":"320","data-sticky-class":"is-sticky",children:[(0,Ut.tZ)("h4",{className:"m-t-0",children:u}),S?(0,Ut.tZ)("p",{className:"m-t-1",children:`$${S.dollar}.${S.cents} / ${D(C)}`}):(0,Ut.tZ)("div",{className:"spinner-xs d-inline-block","data-testid":"loading-price-mobile",children:(0,Ut.tZ)("span",{className:"sr-only",children:"Loading"})})]})]})})),ra=(0,o.connect)(((e,t)=>({...t,selectedPaymentFreq:(0,s.formValueSelector)("paymentForm")(e,"payments.paymentfreq")})))((e=>{const{isOpen:t,toggleCollapse:a}=Vt({}),{productId:r,title:i,excess:n,claimback:o,productType:s}=e.cover,{priceFreq:l,scale:c,showFuturePrices:d}=e.quote,m=window.phi.dualrate.dualRateActive,{price:u,dualRateActive:p,dualRateToggleHandler:h,dualRateTooltip:v,hospitalToolTip:b,extrasToolTip:f,selectedPaymentFreq:g}=e,N=(Ot()({"product-summary-collapse p-t-1":!0,"dual-rates p-t-0-xl":m}),g||l),E=u&&C(m&&d?u.future[N]:u.current[N]),S=`show price from ${le()}`;return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("div",{className:"col-12 product-summary js-summary-sticky","data-margin-top":"20","data-sticky-for":"1200","data-sticky-class":"is-sticky",children:[(0,Ut.tZ)("h4",{className:"m-t-0 m-b-1",children:(0,Ut.tZ)("a",{href:$(`/health-insurance/cover/${r}`),onClick:t=>{Lt.trackGenericInteraction({component:y.CARD_TILE,label:i?.toLowerCase(),heading:i?.toLowerCase(),destinationUrl:t.target.href},Tt(e.quote,u,e.cover))},children:i})}),(0,Ut.BX)("div",{className:"pricing",children:[E&&(0,Ut.tZ)("div",{className:"product-price-wrapper",children:(0,Ut.tZ)("div",{className:"product-price",children:(0,Ut.tZ)("div",{className:"product-price-amount",children:(0,Ut.BX)("div",{className:"product-price-amount",children:[(0,Ut.tZ)("sup",{children:"$"}),(0,Ut.BX)("span",{className:"js-price-dollar",children:[E.dollar,(0,Ut.BX)("sup",{children:[".",E.cents]})]}),(0,Ut.BX)("span",{className:"small font-family-base",children:["/ ",D(N)]})]})})})}),!E&&(0,Ut.tZ)("div",{className:"spinner-lg d-inline-block",children:(0,Ut.tZ)("span",{className:"sr-only",children:"Loading"})}),(0,Ut.BX)("p",{children:["Based on ",M(c)," cover"]}),!p&&(0,Ut.tZ)("hr",{className:"m-b-1"})]}),p&&(0,Ut.BX)("div",{className:"dual-price-wrapper",children:[(0,Ut.BX)("p",{children:["Show price ",(0,Ut.BX)("strong",{children:["from ",le(
1)]})]}),(0,Ut.tZ)("div",{className:"input-group",children:(0,Ut.BX)("div",{className:"toggle",children:[(0,Ut.tZ)("input",{type:"checkbox",id:"dualPriceJoin",name:"dualPriceJoin",checked:!!d,onChange:e=>{Lt.trackInteraction(null,{component:y.TOGGLE,label:L(!!e.target.checked),heading:S}),h(e)}}),(0,Ut.tZ)("label",{htmlFor:"dualPriceJoin",className:"text"})]})}),(0,Ut.tZ)(Xt,{content:v,heading:i,label:S})]}),(0,Ut.tZ)(Wt.Panel,{isOpen:t,id:"productSummaryPanel",children:(0,Ut.tZ)("table",{className:"product-summary-table m-t-2",children:(0,Ut.BX)("tbody",{children:[n&&(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{children:["Hospital Excess ",(0,Ut.tZ)(Xt,{content:b,heading:i,label:"hospital excess"})]}),(0,Ut.tZ)("td",{className:"text-right",children:(0,Ut.tZ)("strong",{children:"none"===n.val?"none":`$${n.val}`})})]}),o&&"none"!==o.val&&(0,Ut.BX)("tr",{children:[(0,Ut.BX)("td",{children:["Extras claim back ",(0,Ut.tZ)(Xt,{content:f,heading:i,label:"extras claim back"})]}),(0,Ut.tZ)("td",{className:"text-right",children:(0,Ut.tZ)("strong",{children:"none"===o.val?"none":`${o.val}%`})})]})]})})}),(0,Ut.tZ)(Wt.Button,{onClick:a,isOpen:t,"aria-controls":"productSummaryPanel",description:"product summary card"})]}),(0,Ut.BX)("div",{className:"col-12 summary-mobile-sticky js-summary-mobile-sticky","data-sticky-for":"320","data-sticky-class":"is-sticky",children:[(0,Ut.tZ)("h4",{className:"m-t-0",children:i}),E?(0,Ut.tZ)("p",{className:"m-t-1",children:`$${E.dollar}.${E.cents} / ${D(N)}`}):(0,Ut.tZ)("div",{className:"spinner-xs d-inline-block",children:(0,Ut.tZ)("span",{className:"sr-only",children:"Loading"})})]})]})}));let ia=class extends r.Component{static propTypes={children:xt().func.isRequired,values:xt().any};render(){const{children:e,values:t}=this.props;return e(t)||null}};function na(e,t){const{_reduxForm:a}=t;return(0,Ut.tZ)(ia,{...e,form:e.form||a.form,sectionPrefix:e.sectionPrefix||a.sectionPrefix})}ia=(0,o.connect)(((e,t)=>{const{form:a,sectionPrefix:r,fieldName:i,selector:n}=t,o=(0,s.formValueSelector)(a);if("function"==typeof n){return{values:n(((...t)=>o(e,...t)),a,r,a in e.form?e.form[a].values:{})}}return{values:o(e,r?`${r}.${i}`:i)}}))(ia),na.propTypes={form:xt().string,sectionPrefix:xt().string},na.contextTypes={_reduxForm:xt().shape({form:xt().string.isRequired,sectionPrefix:xt().string}).isRequired};class oa extends i().Component{constructor(e){super(e)}render(){const{customId:e,targetClass:t,title:a,tooltipContent:r,tooltipId:i,children:n}=this.props,o=`${t?`row ${t}`:"row "}${e||""}`;return(0,Ut.tZ)("div",{className:o,children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.BX)("h3",{children:[a," ",!!r&&(0,Ut.tZ)(Xt,{content:r,tooltipId:i})]}),(0,Ut.tZ)("hr",{className:"m-t-0"}),n]})})}}const sa=oa,la=({id:e,label:t,placeholder:a,input:r,disabled:i,autocomplete:n,maxLength:o,meta:{touched:s,error:l},dynamicvalue:c})=>{let d="input-group",m="";return s&&l&&(d+=" input-group-alert",m=" input-group-alert d-inline-block"),(0,Ut.BX)("div",{className:d,children:[(0,Ut.tZ)("label",{htmlFor:r.name,children:t}),(0,Ut.tZ)("input",{...r,type:"text",placeholder:a,"aria-describedby":t,autoComplete:n,id:r.name,disabled:i,className:m,maxLength:o,value:c||r.value}),s&&l&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${r.name}`,dangerouslySetInnerHTML:{__html:l}})]})};var ca=a(1096);(0,ca.createTextMask)({pattern:"99/99",stripMask:!1,guide:!1});const da=(0,ca.createTextMask)({pattern:"9999 999 999",guide:!1}),ma=(0,ca.createTextMask)({pattern:"9999 99999 9",guide:!1}),ua=((0,ca.createTextMask)({pattern:"9999 9999 9999 9999",guide:!1}),(0,ca.createTextMask)({pattern:"999 999",guide:!1})),pa=(0,ca.createTextMask)({pattern:"9999999999",guide:!1}),ha=(0,ca.createTextMask)({pattern:"99/99/9999",stripMask:!1,guide:!1}),va=(0,ca.createTextMask)({pattern:"99/9999",stripMask:!1,guide:!1}),ba=(0,ca.createTextMask)({pattern:"99/99/9999",stripMask:!1,guide:!1}),fa=((0,ca.createTextMask)({pattern:"9999",guide:!1}),(0,ca.createTextMask)({pattern:"9999999999999999",guide:!1}),(0,ca.createTextMask)({pattern:"AAAAAAAAAAAAAAAAAAAA",guide:!1,maskDefinitions:{A:{regExp:/[+0-9]/}}}),(0,ca.createTextMask)({pattern:"999",guide:!1})),ya=e=>e?void 0:"We need this to complete your application.",ga=e=>e.match(/^[a-zA-Z '-]+$/)?void 0:"Please try again. You've entered numbers or invalid characters (# @ ^ \" \\ * = ; % < > ~ +).",Na=e=>e.match(/^[a-zA-Z '-]+$/)?void 0:"Please try again. You've entered invali
1d characters (\" \\ < > ~).",Ca=e=>e.trim().match(/^[a-zA-Z '’-]+$/)?void 0:"Please try again. You've entered numbers or invalid characters (# @ ^ \" \\ * = ; % < > ~ +).",Da=e=>{if(e&&!e.match(/^[a-zA-Z0-9]+$/))return"Please try again. You've entered invalid characters (# @ ^ \" \\ * = ; % < > ~ +)."},Ea=e=>e.match(/^[A-Za-z ]+$/)?void 0:"Please try again. You've entered invalid characters (# @ ^ \" \\ * = ; % < > ~ +).",Sa=e=>e.length<6?"Please enter your 6 digit BSB.":void 0,wa=e=>e.length<6?"Please enter your account number.":void 0,Ta=e=>e&&("string"==typeof e?e.trim():e)?void 0:"This field is required.",Za=e=>e&&(e.length<10||"0"!=e.charAt(0))?"Please try again. Phone number should be 10 digits. Please include area code for landline phone number.":void 0,Aa=e=>e?void 0:"We need your phone number. Please include area code for landlines.",Ia=e=>e?void 0:"You need to agree that you are an employee",Pa=e=>e?void 0:"Please select your current health insurance fund.",Ma=e=>e?void 0:"We need your consent. Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case.",_a=e=>{if(e){const t=d()(e,"DD/MM/YYYY",!0);if(!t.isValid())return"Please enter a correct date in the format DD/MM/YYYY";const a=d()().diff(t,"years");if(a<16)return'You need to be 16 years or older to join online. Please call us on <a href="tel:134190" data-analytics-title="date of birth validation failed" data-analytics-component="validations">134 190 </a>for more information and to join.';if(a>999)return"Please check the date"}},Ra=e=>{if(e){const t=d()(e,"DD/MM/YYYY",!0),a=d()(new Date,"DD/MM/YYYY",!0);return d()(t).isSameOrAfter(a,"day")?"Date should not be in future":void 0}},La=e=>{const t=(new Date).getMonth(),a=(new Date).getFullYear(),r=d()([a,t]),i=e.split("/")[0],n=e.split("/")[1];return d()([n,i-1]).diff(r,"month")>=0?void 0:"Please enter a later date."},ka=e=>{const t=(new Date).getDate(),a=(new Date).getMonth(),r=(new Date).getFullYear(),i=d()([r,a,t]),n=e.split("/")[0],o=e.split("/")[1],s=e.split("/")[2];return d()([s,o-1,n]).diff(i,"day")>=0?void 0:"Please enter a later date."},Oa=e=>e?void 0:"We need your Medicare card number to complete your AGR application.",Fa=e=>e.length<10?"Medicare number should be 10 digits exactly.":void 0,Ba=function(e){const t=`${e.replace(/\s/g,"")}1`;if(11===t.length){const e=t.match(/^(\d{8})(\d)/),a=e[1],r=e[2],i=[1,3,7,9,1,3,7,9];let n=0;for(const e in i)n+=a[e]*i[e];if(n%10===parseInt(r,10))return;return"Invalid Medicare number. Please try again."}return"Invalid Medicare number. Please try again."};class xa extends i().Component{constructor(e){super(e),this.required=e=>e?void 0:"required"}render(){return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row m-t-4",children:(0,Ut.tZ)("div",{className:"col-12 col-md-7",children:(0,Ut.tZ)(s.Field,{label:"Account name",name:"name",autocomplete:"nope",component:la,validate:[Ta,ya,Na]})})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12 col-md-2",children:(0,Ut.tZ)(s.Field,{label:"BSB",name:"bsb",autocomplete:"nope",component:la,validate:[ya,Sa],...ua})}),(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Account number",name:"number",autocomplete:"nope",component:la,validate:[ya,wa],...pa})})]})]})}}const Ya=xa;class Ua extends i().Component{constructor(e){super(e)}render(){const{name:e,bsb:t,number:a}=this.props;return(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-xl-11",children:(0,Ut.BX)(sa,{title:"Extras claim refund account",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{children:"Your extras claims payment will be deposited directly into your account."})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[this.props.readonly&&(0,Ut.BX)("div",{className:"row",children:[(0,Ut.BX)("div",{className:"col-12 col-lg-4",children:[(0,Ut.tZ)("p",{children:"Account Name"}),(0,Ut.tZ)("p",{className:"word-break-all",children:(0,Ut.tZ)("strong",{children:e})})]}),(0,Ut.BX)("div",{className:"col-12 col-lg-4",children:[(0,Ut.tZ)("p",{children:"BSB"}),(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:t})})]}),(0,Ut.BX)("div",{className:"col-12 col-lg-4",children:[(0,Ut.tZ)("p",{children:"Account number"}),(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:a})})]})]}),!this.props.readonly&&(0,Ut.tZ)(Ya,{})]})})]})})})}}const qa=Ua,Xa=({id:e,label:t,opts:a,input:r,meta:{touched:i,error:n},disabled:o})=>{let s="input-group select",l="";return i&&n&&(s+=" input-group-alert",l=" input-group-alert d-inline-block"),(0,Ut.BX)("div",{className:s,children:[(0,Ut.tZ)("label",{htmlFor:e,children:t}),(0,Ut.BX)("div",{className:"relative",children:[(0,Ut.tZ)("select",{id:e,...r,value:r.value?r.value:"",disabled:o,children:a.map(((e,t)=>(0,Ut.tZ)("option",{value:e.val,children:e.name},t)))}),(0,Ut.tZ)("span",{className:"select-chevron"})]}
1),i&&n&&(0,Ut.tZ)("small",{className:"input-helper feedback",id:`err_${e}`,children:n})]})};var Va=a(29415),Ha=a(4926),ja=a(32449),$a=a(55855);const Ja=({price:e,frequency:t,coverStartDate:a,hasSpecialOffer:r=!1,isOverseas:i=!1})=>{const{current:n,future:o}=e||{},s=i?n.toFixed(2):n?.[t].toFixed(2),l=i?o.toFixed(2):o?.[t].toFixed(2),c=i?window.overseas&&window.overseas.dualrate&&window.overseas.dualrate.rateChangeDate?d()(window.overseas.dualrate.rateChangeDate,"YYYY-MM-DD hh:mm:ss").subtract(1,"days").format("D MMMM YYYY"):"":ne(),m=i?ce("D MMMM YYYY"):re(),u=i?window.overseas&&window.overseas.dualrate&&window.overseas.dualrate.dualRateActive:ae(),p=(0,Ha.Z)(a,"P",new Date,{locale:Va.Z}),h=(0,ja.Z)(p,"dd MMMM yyyy"),v=(0,$a.Z)(p)>=29&&"fortnightly"!==t.toLowerCase(),b=function(e){switch(e.toUpperCase()){case"WEEKLY":default:return"weekly";case"FORTNIGHTLY":return"fortnightly";case"MONTHLY":return"monthly";case"QUARTERLY":return"quarterly";case"HALFYEARLY":return"half-yearly";case"YEARLY":return"yearly"}}(t);return(0,Ut.BX)("div",{className:"bg-neutral-1 p-x-2 p-y-4 bordered border-neutral-4",children:[(0,Ut.BX)("p",{className:"m-t-0",children:[u?(0,Ut.BX)(Ut.HY,{children:["Your ",(0,Ut.tZ)("strong",{children:b})," payment will be"," ",(0,Ut.BX)("strong",{children:["$",s," until ",c]}),", and then"," ",(0,Ut.BX)("strong",{children:["$",l," from ",m,"."]})," "]}):(0,Ut.BX)(Ut.HY,{children:["Your ",(0,Ut.tZ)("strong",{children:b})," payment will be ",(0,Ut.BX)("strong",{children:["$",s]}),"."," "]}),"The first payment will typically be charged within 5 business days of your cover start date"," ",(0,Ut.BX)("strong",{children:[h,"."]})]}),v&&(0,Ut.tZ)("p",{children:"To streamline the payment process, we've set your regular payment date to the 1st of the month. Your first payment amount will vary to include the day(s) from your cover start date."}),r&&(0,Ut.tZ)("p",{children:"If you have applied with an offer, your first few payments may vary."})]})};var Qa=a(14890),Ga=a(29208),Wa=a.n(Ga),za=a(31468),Ka=a.n(za),er=a(93096),tr=a.n(er);const ar={STARTED:"started",PAYING:"paying",COMPLETED:"completed"},rr="DD/MM/YYYY",ir="Your details",nr="Find the right health cover for your needs",or="Request a Callback",sr="Change your cover details",lr="Do you have a MyMedibank login?",cr="Quote Start",dr="Callback Start",mr="Quote Complete",ur="health insurance/ohc/join",pr="health insurance/OHC";const hr=new class{constructor(e,t,a){this.quoteService=e,this.coverService=t,this.retailConfig=a,window.dataLayer=window.dataLayer||[],this.dl=window.dataLayer,this.quoteModal={},this.joinTimerCount={},this.joinFormScreenName={step_1:"Your details",step_2:"Rebate",step_3:"Payment",step_4:"Summary"},window.phi?this.formName=`health insurance/${"Retail"===window.phi.channel?"consumer":"corporate"}/join`:this.formName="health insurance/corporate/join"}confirmJoin(e,t,a,r,i,n,o,s,l){try{const c=this.convertCoverToProductDetails(a,t,o,!0),m=Math.floor(d().duration(Date.now()-this.joinTimerCount.startTimeStamp).asSeconds());if(this.dl.push({pageType:"Join Confirmation",event:"JoinComplete",formName:this.formName,sequenceID:this.joinTimerCount.sequenceID,timeElapsed:m,joinSuccess:{id:e,total:o.current[s.toLowerCase()],annualisedTotal:c.annualisedPrice,paymentFrequency:s,pseu:c.pseu,promocode:n},user:{info:this.convertQuoteToUserInfoForJoinTracking(a,!1,r,i,l)},product:[c]}),window.adobe&&window.adobe.target)try{window.adobe.target.trackEvent({mbox:"simpleJoinComplete"}),window.adobe.target.trackEvent({mbox:"joinComplete",params:{orderId:e,orderTotal:o.current.yearly,productPurchasedId:U("gaClientId")},success:()=>{this.dataLayerAudit("JoinSuccessSent","")},fail:()=>{this.dataLayerAudit("JoinSuccessFailed","Failed to send tracking info")}})}catch(e){this.dataLayerAudit("JoinSuccessFailed",`Error when sending tracking info ${e}`)}else this.dataLayerAudit("JoinSuccessFailed","Adobe tracking doesnt exist")}catch(e){}}convertQuoteToUserInfoForJoinTracking(e,t,a,r,i){const{hascurrentinsurance:n,currentfund:o}=i||{},s=d()(e.dob,rr,!0),l=d()(e.partnerdob,rr,!0);return{gender:a,postcode:r,state:e.state,lifePhase:M(e.scale),age:s.isValid?d()().diff(s,"years"):void 0,age2:l.isValid?d()().diff(l,"years"):void 0,incomeScale:e.incomeRange,incomeRange:e.incomeType,isMember:!!t,currentlyHasInsurance:n?"YES":"NO",existingPHIFund:n&&o&&o.value,corporate:window.phi.client?J():"undefined",corpSubsidy:window.phi.discount?te():"undefined",corpAgrType:window.phi.discount?ee():"undefined",havingBaby:e.havingBaby}}startJoin(e,t,a){try{this.joinTimer(),this.joinFormCurrentStepScreen(this.joinFormScreenName.step_1),this.dl.push({pageType:"Checkout",event:"Checkout",formName:this.formName,user:{info:this.convertQuoteToUserInfoForJoinTracking(e)},product:[this.convertCoverToProductDetails(e,t,a,!0)]})}catch(e){}}joinForm(e,t,a){const r=Math.floor(d().duration(Date.now()-this.joinTimerCount.startTimeStamp).asSeconds());this.dl.push({event:"FormElements",formElementName:e,formElementType:t,formSection:a||"n/a",formName:this.formName,sequenceID:this.joinTimerCount.sequenceID,timeElapsed:r})}joinFormError(e,t,a,r){const i=Math.floor(d().duration(Date.now()-this.joinTimerCount.startTimeStamp).asSeconds());this.dl.push({event:"FormError",formElementName:e,formElementType:t,formSection:a||"n/a",errorMessage:r,formName:this.formName,sequenceID:this.joinTimerCount.sequenceID,timeElapsed:i})}joinTimer(){this.joinTimerCount=this.getSequenceIdTimeStamp()}joinFormCurrentStepScreen(e){const t=Math.floor(d().duration(Date.now()-this.joinTimerCount.startTimeStamp).asSeconds());this.dl.push({event:"FormScreen",formName:this.formName,formSection:e,sequenceID:this.joinTimerCount.sequenceID,timeElapsed:t})}joinFormMoveToNextStep(e){const t=Math.floor(d().duration(Date.now()-this.joinTimerCount.startTimeStamp).asSeconds());this.dl.push({event:"FormElements",formName:this.formName,formElementName:`${e}Complete`,formElementType:"Button",formSection:e,sequenceID:this.joinTimerCount.sequenceID,timeElapsed:t})}joinBuyNowButton(){this.dl.push({event:"FormElements",formElementName:"Buy Now",formElementType:"Button",formSection:"Payment"})}joinAGRModal(){this.dl.push({event:"FormElements",formElementName:"Edit",formElementType:"Button",formSection:"AGR"})}joinHasPrefilledUserEmail(e){const t=e?"Yes":"No";this.dl.push({prefilledUserInfo:t})}overseasWorkingHolidayJoinSuccess(){this.dl.push({event:"workingHolidayJoinSuccess"})}overseasVisitorJoinSuccess(){this.dl.push({event:"overseasVisitorJoinSuccess"})}openQuoteModal(){this.quoteModal=this.getSequenceIdTimeStamp(),this.dl.push({event:"modalForm",modalAction:"show",modalName:nr,modalActionType:cr,sequenceID:this.quoteModal.sequenceID})}quoteModalForm(e,t,a){const r=Math.floor(d().duration(Date.now()-this.quoteModal.startTimeStamp).asSeconds());this.dl.push({event:"modalForm",modalAction:"formElement",modalElementName:e,modalElementType:t,modalSection:a||"n/a",modal
1Name:nr,modalActionType:cr,sequenceID:this.quoteModal.sequenceID,timeElapsed:r})}quoteModalFormError(e,t,a,r){const i=Math.floor(d().duration(Date.now()-this.quoteModal.startTimeStamp).asSeconds());this.dl.push({event:"modalForm",modalAction:"formError",modalElementName:e,modalElementType:t,modalErrorMessage:r,modalSection:a||"n/a",modalName:nr,modalActionType:cr,sequenceID:this.quoteModal.sequenceID,timeElapsed:i})}quoteModalSubmit(e,t,a,r,i){const n=Math.floor(d().duration(Date.now()-this.quoteModal.startTimeStamp).asSeconds());this.dl.push({event:"modalForm",modalAction:"formSubmit",modalName:nr,modalActionType:mr,user:{info:this.convertQuoteToUserInfo(e,r,null,null,i)},phoneLead:!!t,emailLead:a,sequenceID:this.quoteModal.sequenceID,timeElapsed:n})}confirmQuoteModal(){this.dl.push({event:"modalForm",modalAction:"show",modalName:"Are your details correct?",modalActionType:cr})}openRequestCallback(e,t){this.requestCallback=this.getSequenceIdTimeStamp(),this.dl.push({event:"modalForm",modalAction:"show",modalName:or,modalActionType:dr,sequenceID:this.requestCallback.sequenceID,callbackDetails:{type:e,source:t||""}})}requestCallbackFormOpened(e,t,a){this.dl.push({event:"callbackRequested",formName:e,callbackDetails:{method:"Embedded Component",productGroup:a,leadId:t}})}requestCallbackEmployerLocated(e,t,a){this.dl.push({event:"EmployerEligibilityCheckComplete",employerEligibility:{name:t,status:a?"Eligible with Microsite":"Eligible without Microsite"},formName:e})}requestCallbackEmployerNotFound(e,t){this.dl.push({event:"EmployerEligibilityCheckFailed",employerEligibility:{searchText:t},formName:e})}requestCallbackForm(e,t){this.dl.push({event:"modalForm",modalAction:"formElement",modalElementName:e,modalElementType:t,modalName:or,modalActionType:dr,sequenceID:this.requestCallback.sequenceID})}requestCallbackFormError(e,t,a){this.dl.push({event:"modalForm",modalAction:"formError",modalElementName:e,modalElementType:t,modalErrorMessage:a,modalName:or,modalActionType:dr,sequenceID:this.requestCallback.sequenceID})}requestCallbackSubmit(e,t,a){this.dl.push({event:"modalForm",modalAction:"formSubmit",modalName:or,modalActionType:dr,callbackDetails:{type:e,source:a||"",isMember:!!t},sequenceID:this.requestCallback.sequenceID})}openEmailQuoteModal(){this.dl.push({event:"modalForm",modalAction:"show",modalName:"Email Quote Form"})}emailQuoteSent(){this.dl.push({event:"emailQuote",eventCategory:"phi-new-quote",eventAction:"email-quote-success",eventLabel:"",eventValue:0,nonInteraction:!1})}changeCoverStart(){this.dl.push({event:"FormElements",formElementName:"personalDetails.coverDate",formElementType:"Text",formSection:"memberStatus"})}customEvent(e){const t=Math.floor(d().duration(Date.now()-this.joinTimerCount.startTimeStamp).asSeconds()),a={...e};a.formName=this.formName,a.sequenceID=this.joinTimerCount.sequenceID,a.timeElapsed=t,this.dl.push(a)}personalDetailsOpen(){this.dl.push({event:"modalForm",modalAction:"show",modalName:sr,modalActionType:cr})}personalDetailsForm(e,t,a){this.dl.push({event:"modalForm",modalAction:"formElement",modalElementName:e,modalElementType:t,modalSection:a||"n/a",modalName:sr,modalActionType:cr})}personalDetailsFormError(e,t,a,r){this.dl.push({event:"modalForm",modalAction:"formError",modalElementName:e,modalElementType:t,modalSection:a,modalErrorMessage:r,modalName:sr,modalActionType:cr})}personalDetailsSubmit(e){this.dl.push({event:"modalForm",modalAction:"formSubmit",modalName:sr,modalActionType:"Updated Details",user:{info:this.convertQuoteToUserInfo(e)}})}viewProductDetails(e,t,a,r,i){const n={user:{info:this.convertQuoteToUserInfo(e)},products:[this.convertCoverToProductDetails(e,t,a,!1,r)]};i?this.dl.push(Object.assign(n,{pageType:"productUpdate",event:"productUpdate"})):this.dl.push(Object.assign(n,{pageType:"Product",event:"Product"}))}getDisplayValue(e,t=[]){let a="";for(let r=0,i=t.length;r<i;r+=1)t[r].tableID===e&&(a=t[r].displayValue);return a}createCover(e){const t={},{config:a}=e;return t.claimback=this.getDisplayValue(e.claimbackId,a.claimbackList),t.excess=this.getDisplayValue(e.excessId,a.excessList),t.productType=a.productType,t}viewProductComparision(e,t,a){const r={user:{info:this.convertQuoteToUserInfo(e)},products:t.map(((a,r)=>{const i=this.convertCoverToProductDetails(e,this.createCover(t[r]),t[r].price,!1,t[r].name);return i.position=r,i}))};a?this.dl.push(Object.assign(r,{pageType:"productUpdate",event:"productUpdate"})):this.dl.push(Object.assign(r,{pageType:"Product - Compare",event:"Product - Compare"}))}confirmFortnightly(){this.dl.push({event:"modalForm",modalAction:"show",modalName:"Update to fortnightly payments"})}ctaClick(e,t){this.dl.push({eventCategory:"Link Click",eventAction:`Product Card - ${e}`,eventLabel:t,nonInteraction:!1,trigger:`On click of a product card ${e} link`})}priceFrequencyChange(e,t){this.dl.push({event:"select",selectAction:"change",selectActionType:"Payment Frequency",productScale:e,paymentFrequency:t})}scaleFilterCoverForClick(e){this.dl.push({event:"productFilterSelected",productFilterType:"Cover for",productFilterCoverForSelection:e})}scaleFilterCoverLevelClick(e,t,a,r,i,n){this.dl.push({event:"productFilterSelected",productFilterType:"Level of cover",productFilterCoverForSelection:t,productFilterHospitalCoverLevelSelection:a,productFilterExtrasCoverLevelSelection:r,productFilterHospitalSpecificCoverSelection:i,productFilterExtrasSpecificCoverSelection:n})}paddleClick(e){this.dl.push({event:"paddleClick",paddleDirection:e})}getProductGroup=e=>"pet"===e?"Pet Insurance":"Travel Insurance";popUpWindowAnalytics=e=>{const t=this.getProductGroup(e);this.dl.push({event:"modalForm",modalName:lr,modalAction:"show",modalActionType:"View",pageType:"Product",productGroup:t})};continueButtonAnalytics=e=>{const t=this.getProductGroup(e);this.dl.push({event:"modalForm",modalName:lr,modalAction:"formElement",modalActionType:"View",modalElementName:"member login",modalElementType:"button",modalElementValue:"Yes",pageType:"Product",productGroup:t})};cancelButtonAnalytics=e=>{const t=this.getProductGroup(e);this.dl.push({event:"modalForm",modalName:lr,modalAction:"formElement",modalActionType:"View",modalElementName:"member login",modalElementType:"button",modalElementValue:"No",pageType:"Product",productGroup:t})};getSequenceIdTimeStamp(){const e=Date.now();return{startTimeStamp:e,sequenceID:`${e} ${Math.floor(1e10*Math.random())}`}}convertQuoteToUserInfo(e,t,a,r,i){return{lifePhase:e.scale?M(e.scale):void 0,yearOfBirth:e.dob?e.dob.split("/")[2]:void 0,yearOfBirth2:e.partnerdob?e.partnerdob.split("/")[2]:void 0,gender:a,postcode:r,state:e.state,incomeScale:e.incomeRange,incomeRange:e.incomeType,corporate:window.phi.client?J():"undefined",corpSubsidy:window.phi.discount?te():"undefined",corpAgrType:window.phi.discount?ee():"undefined",havingBaby:e.havingBaby,isMember:!!t,currentlyHasInsurance:i}}getPSEUCount(e,t){let a=1,r=1;return"F"!==e.scale&&"C"!==e.scale||(a=2),"SOFTBUNDLED"!==t.productType&&"HARDBUNDLED"!==t.productType||(r=2),a*r}convertCoverToProductDetails(e,t,a,r,i){let n="";const{excess:o,claimback:s,productId:l,title:c,productType:d}=t;return r?(o&&(n=`${o.val} excess `),s&&(n=`${n}${s.val} claimback`)):(o&&(n=`${o} excess `),s&&(n=`${n}${s} claimback`)),{category:"Retail"===window.phi.channel?"health insurance/consumer":"health insurance/corporate",id:i||l,name:i||c,paymentFrequency:e.priceFreq,price:a.current[e.priceFreq],annualisedPrice:a.current.yearly,pseu:this.getPSEUCount(e,t),quantity:1,position:1,variant:n,productGroup:"PHI Insurance",type:k(d)}}dataLayerAudit(e,t){this.dataLayerEventBinder("sendEvent","targetAudit",e,t)}dataLayerEventBinder(e,t,a,r){this.dl.push({event:e,eventCategory:t,eventAction:a,eventLabel:r})}
1overseasProductDetailView(e){try{const t=`${e.excess} excess, ${e.scale}`;this.dl.push({event:"Product",memberId:null,user:{info:{age:e.age?e.age:null,visaSubclass:e.visaSubclass?e.visaSubclass:null}},product:[{category:pr,id:e.productId,name:e.name,paymentFrequency:e.paymentFrequency,price:e.primaryPrice,annualisedPrice:e.annualisedPrice,quantity:1,variant:t}]})}catch(e){}}overseasProductJoinFormStep1(e,t,a,r,i){try{const{visaDetails:e}=r||{},{visasubclass:n}=e||{},o=d()(r.personalDetails.dob,rr);let s=i.ageUrlParamValue;o.isValid()&&(s=d()().diff(o,"years")),this.dl.push({event:"FormScreen",formName:ur,formSection:ir}),this.dl.push({pageType:"Checkout",event:"Checkout",formName:ur,user:{info:{age:s,visaSubclass:n,lifePhase:i.lifePhase}},product:[{category:"health insurance/ohc",id:t.id,name:t.id,paymentFrequency:i.frequency.toLowerCase(),price:i.price,annualisedPrice:i.annualisedPrice,pseu:this.getPSEUCount(a,t),quantity:1,variant:i.variant}]})}catch(e){}}overseasProductJoinFormStep2(e){try{this.dl.push({event:"FormElements",formElementName:"Your detailsComplete",formElementType:"Button",formName:ur,formSection:ir,user:{info:{age:e.age,visaSubclass:e.visaSubclass,gender:this.genderValue(e.gender),postcode:e.postcode,nationality:e.nationality,coverStartDate:e.coverStartDate,visaExpiryDate:e.visaExpiryDate,internationalSuburbCity:e.internationalSuburbCity,internationalStateRegion:e.internationalStateRegion,age2:e.partnerAge,visaSubclass2:e.visaSubclass2,nationality2:e.nationality2,numberOfDependents:e.numberOfDependents,hasExistingPHI:R(e.hasExistingPHI),existingPHIFund:e.existingPHIFund,existingPHIMemberId:e.existingPHIMemberId,state:e.state,lifePhase:e.lifePhase}}})}catch(e){}}overseasProductJoinFormStep3(e,t){try{const a=d()().diff(d()(e.timestamp),"seconds");this.dl.push({event:"Checkout Step 3",memberId:null,formName:"health insurance/OHC/join",sequenceID:e.sequenceId,timeElapsed:a,user:{info:{age:e.age,visaSubclass:e.visaSubclass,gender:this.genderValue(e.gender),postcode:e.postcode,state:e.state,lifePhase:e.lifePhase}},product:[{category:pr,id:t.productCode,name:t.id,paymentFrequency:e.frequency,price:e.price,annualisedPrice:e.annualisedPrice,quantity:1,variant:e.variant}]})}catch(e){}}overseasProductJoinFormSuccess(e,t,a){try{const r=d()().diff(d()(e.timestamp),"seconds"),i=JSON.parse(a.responseMessage);this.dl.push({event:"Join Confirmation",memberId:null,formName:"health insurance/OHC/join",sequenceID:e.sequenceId,timeElapsed:r,joinSuccess:{id:i.vcRefNo,total:e.price,annualisedTotal:e.annualisedPrice,paymentFrequency:e.frequency,promocode:null},user:{info:{age:e.age,visaSubclass:e.visaSubclass,gender:this.genderValue(e.gender),postcode:e.postcode,state:e.state,lifePhase:e.lifePhase}},product:[{category:pr,id:t.productCode,name:t.id,paymentFrequency:e.frequency,price:e.price,annualisedPrice:e.annualisedPrice,quantity:1,variant:e.variant}]})}catch(e){}}applyPromotionCode(e,t,a,r){try{const i=d()().diff(d()(e.timestamp),"seconds");this.dl.push({event:"SpecialOffer",formName:this.formName,formAction:"Promotion Code : Apply",formSection:ir,formStatus:a,formStatusMessage:r,promotionCode:t,sequenceID:e.sequenceId,timeElapsed:i})}catch(e){}}applyReferralCode(e,t,a){try{const r=d()().diff(d()(e.timestamp),"seconds");this.dl.push({event:"SpecialOffer",formName:this.formName,formAction:"Refer a Friend Code : Apply",formSection:ir,formStatus:a,formStatusMessage:a,referralCode:t,sequenceID:e.sequenceId,timeElapsed:r})}catch(e){}}redeemReferralCode(e){try{const t=Math.floor(d().duration(Date.now()-this.joinTimerCount.startTimeStamp).asSeconds());this.dl.push({event:"SpecialOffer",formName:this.formName,formAction:"Refer a Friend Code : Redeem",formSection:ir,referralCode:e,sequenceID:this.joinTimerCount.sequenceID,timeElapsed:t})}catch(e){}}applyMemberNumber(e,t,a,r){try{const i=d()().diff(d()(e.timestamp),"seconds");this.dl.push({event:"SpecialOffer",formName:this.formName,formAction:"Major Partner : Apply Membership ID",formSection:ir,formStatus:a,formStatusMessage:r,memberNumber:t,sequenceID:e.sequenceId,timeElapsed:i})}catch(e){}}removeMemberNumber(e,t){try{const a=d()().diff(d()(e.timestamp),"seconds");this.dl.push({event:"SpecialOffer",formName:this.formName,formAction:`Major Partner : Remove ${t}`,formSection:ir,sequenceID:e.sequenceId,timeElapsed:a})}catch(e){}}applyAnalyticsForMPConsent(e,t,a){try{const r=d()().diff(d()(e.timestamp),"seconds");this.dl.push({event:"SpecialOffer",formName:this.formName,formAction:"Major Partner : Accept Terms",formSection:ir,formStatus:t,formStatusMessage:a,sequenceID:e.sequenceId,timeElapsed:r})}catch(e){}}pushCorpEligibilityEvents(e,t){try{this.dl.push({event:"sendEvent",formName:"health-insurance/corporate/eligibility-check",eventCategory:"Corporate Discount Check",eventAction:e,eventLabel:t})}catch(e){}}genderValue(e){let t="";return t="M"===e?"male":"F"===e?"female":e,t}hospitalExcessDropdown(e,t){try{this.dl.push({event:"HospitalExcessDropdownSelect",hospitalExcessDropdownValue:e,productScale:M(t).toUpperCase()})}catch(e){}}overseasPaymentScreen(e){const t=d()().diff(d()(e.timestamp),"seconds");try{this.dl.push({event:"FormScreen",formName:ur,formSection:"Payment",timeElapsed:t})}catch(e){}}overseasProductComparisonScaleDropdownSelect(e){try{this.dl.push({event:"ProductScaleDropdownSelect",productScaleDropdownValue:_(e),productScale:M(e).toUpperCase()})}catch(e){}}overseasProductBannerCoverDropdownSelect(e,t){try{this.dl.push({event:"CoverTypeDropdownSelect",coverTypeDropdownValue:M(e),hospitalExcessDropdownValue:t,productScale:M(e).toUpperCase()})}catch(e){}}}(Te,Me,B);let vr=function(e){return e.INLINE_ERROR="inline validation error",e.SUBMISSION_ERROR="submission validation error",e}({});const br={"personalDetails.currentMember":"current medibank member","personalDetails.coverstartdate":"cover start date","personalDetails.title":"title","personalDetails.gender":"gender","personalDetails.phonenumberconsent":"By providing my telephone number, I consent to Medibank contacting me about health insurance cover.","personalDetails.samepostaladdress":"postal address is same as my residential address.","personalDetails.hadContinuousCover":"had continous cover","personalDetails.isEmployee":"eligible employee","healthHistory.hascurrentinsurance":"currently have health insurance","healthHistory.currentfund":"current private health insurance fund","healthHistory.transferconsent":"transfer consent","youthDiscount.re
1ceiveDiscount":"currently receive a youth discount","youthDiscount.yourDiscount":"discount percentage","visaDetails.nationality":"nationality","dependentDetails.title":"partner title","dependentDetails.gender":"partner gender","dependentDetails.hadContinuousCover":"partner had contious cover","youthDiscount.partnerDiscount":"partner's discount percentage","medicareDetails.hasCard":"have a medicare card","medicareDetails.medicareCard":"medicare card type","medicareDetails.diffNameOnMedicare":"different name on medicare card",childcount:"number of children under 31","eagr.claimAGRUpfront":"agr upfront deduction","eagr.coveredByPolicy":"agr covered by policy","eagr.allEntitledForMedicare":"all entitled for medicare","payments.paymentType":"payment type","payments.paymentfreq":"payment frequency",consent:"consent"},fr={"personalDetails.firstname":"given names","personalDetails.lastname":"last name","personalDetails.dob":"date of birth","personalDetails.emailaddress":"email address","personalDetails.phonenumber":"phone number","personalDetails.employeeId":"employee id","visaDetails.visasubclass":"visa subclass","visaDetails.visaexpirydate":"approximate visa expiry date","healthHistory.currentfundmemberid":"membership number (optional)","dependentDetails.firstname":"partner given names","dependentDetails.lastname":"partner last name","dependentDetails.dob":"partner date of birth","medicareDetails.number":"medicare card number","medicareDetails.firstName":"medicare first name","medicareDetails.lastName":"medicare last name","medicareDetails.validTo":"medicare valid to","payments.bankaccount.name":"account name","payments.bankaccount.bsb":"bsb","payments.bankaccount.number":"account number","payments.creditcard.number":"credit card number","payments.creditcard.nameoncard":"name on card","payments.creditcard.expiredate":"expiry date","claimback.name":"claim back account name","claimback.bsb":"claim back bsb","claimback.number":"claim back account number"};let yr=function(e){return e.CONSENT_CHECKBOX="tosconsent",e}({}),gr=function(e){return e.PERSONAL_DETAILS="your details",e.REBATE="rebate",e.PAYMENT="payment",e.SUMMARY="summary",e}({}),Nr=function(e){return e.SUBS_SUMMARY_TERMS="I have read and accepted the Corporate Subsidy Information , Important Information and Privacy Policy. I confirm that the information provided in this form has been provided with the consent of the individual to whom it relates.",e.PAYMENT_INC_TERMS="I have read and accepted the Important Information, Privacy Policy and Direct Debit Service Agreement. I confirm that the information provided in this form has been provided with the consent of the individual to whom it relates.",e}({});const Cr=({fieldLabel:e,name:t,stepName:a})=>{const r={event:ct.FORM_FIELD_INTERACTION,form:{fieldLabel:e?.toLowerCase(),name:t,stepName:a}};Lt.triggerEvent(ct.FORM_FIELD_INTERACTION,r)},Dr=({code:e,message:t,type:a},{fieldLabel:r,name:i,stepName:n},o=!1)=>{const s={event:ct.ERROR,error:{code:e||"not applicable",message:t?.toLowerCase()||"not applicable",type:a||vr.INLINE_ERROR},form:{...!o&&{fieldLabel:r?.toLowerCase()},name:i,stepName:n}};Lt.triggerEvent(ct.ERROR,s)},Er=(e,t,a,r)=>{r[a]&&Cr({stepName:e,name:t,fieldLabel:r[a]})},Sr=(e,t,a,r,i,n,o)=>{if(r[a]){Dr({...{message:i,type:o,code:n}},{stepName:e,name:t,fieldLabel:r[a]})}},wr={".givenname":{regex:/child\[(\d+)\]\.givenname/,label:"given names"},".familyname":{regex:/child\[(\d+)\]\.familyname/,label:"last name"},".title":{regex:/child\[(\d+)\]\.title/,label:"gender"},".childdob":{regex:/child\[(\d+)\]\.childdob/,label:"date of birth"}};function Tr(e,t,a,r){const i=e.match(r.regex);if(i){const e=parseInt(i[1],10)+1;Cr({stepName:t,name:a,fieldLabel:`child ${e} ${r.label}`})}}class Zr{constructor(){if(window.ProfileServiceInstance)return window.ProfileServiceInstance;this.dataStorage=F,window.ProfileServiceInstance=this}static get DATA_KEY_NAMES(){return{PROFILE:"profile"}}getProfileFromDataStorage(e){return this.dataStorage.getObject(Zr.DATA_KEY_NAMES.PROFILE,e)}getProfile(e){return this.dataStorage.getObject(Zr.DATA_KEY_NAMES.PROFILE,e)||null}updateProfileData(e,t){this.dataStorage.saveObject(Zr.DATA_KEY_NAMES.PROFILE,e,t)}getJoinStatus(){const e=this.dataStorage.getObject(Zr.DATA_KEY_NAMES.PROFILE);return e?e.joinStatus:null}updateJoinStatus(e){let t=this.getProfileFromDataStorage();t?t.joinStatus=e:t={joinStatus:e},this.updateProfileData(t)}saveJoinDetails(e,t){const a=this.getProfileFromDataStorage()||{};a[t]=e,this.updateProfileData(a)}getJoinDetails(e){return(this.getProfileFromDataStorage()||{})[e]}getProfileObjectWithCoverFilters(){let e=this.getProfileFromDataStorage();if(!e||!e.coverFilters){const t={coverType:"AllCover"};e={...e,coverFilters:t},this.updateProfileData(e)}return e}updateLifeQuoteStatus(e,t){let a=this.getProfileFromDataStorage(!0);a?a.diversified.life_fc_ip[e]={quote:{id:t}}:a={diversified:{life_fc_ip:{[e]:{quote:{id:t}}}}},this.updateProfileData(a,!0)}getLastLifeQuoteID(e){const t=this.dataStorage.getObject(Zr.DATA_KEY_NAMES.PROFILE,!0),a=t&&t.diversified&&t.diversified.life_fc_ip,r=a&&a[e];return r&&r.quote&&r.quote.id}}const Ar=new Zr(F),Ir="state",Pr=()=>(e=>{try{const t=sessionStorage.getItem(e);if(null===t)return;return JSON.parse(t)}catch(e){return}})(Ir),Mr=()=>(e=>{try{return sessionStorage.removeItem(e)}catch(e){return}})(Ir),_r=e=>((e,t)=>{try{const a=JSON.stringify(t);return sessionStorage.setItem(e,a)}catch(e){return}})(Ir,e),Rr=(0,Qa.combineReducers)({form:s.reducer.plugin({yourdetailsForm:Lr,eagr:Lr,paymentForm:Lr})});function Lr(e,t){try{if("@@redux-form/BLUR"===t.type){const a=t.meta.field,r=Fr(a),i=a.split("."),n=Br(i[i.length-1]),o=Or(a),s=Or(a,!0);hr.joinForm(r,n,o);const l=kr(e.syncErrors,a);l&&(Sr(s,"join",a,fr,l,void 0,vr.INLINE_ERROR),hr.joinFormError(r,n,o,l)),Er(s,"join",a,fr),((e,t,a)=>
1{for(const[r,i]of Object.entries(wr))if(a.includes(r)){Tr(a,e,t,i);break}})(s,"join",a)}else if("@@redux-form/SET_SUBMIT_FAILED"===t.type){const{fields:a}=t.meta;for(let t=0;t<a.length;t++){const r=a[t],i=Fr(r),n=r.split("."),o=Br(n[n.length-1]),s=Or(r),l=Or(r,!0),c=kr(e.syncErrors,r);c&&(Sr(l,"join",r,{...fr,...br},c,void 0,vr.INLINE_ERROR),hr.joinFormError(i,o,s,c))}}else if("@@redux-form/CHANGE"===t.type){const e=t.meta.field,a=e.split("."),r=Br(a[a.length-1]),i=Or(e),n=Or(e,!0),o=/^child\[.*\].title$/;if(Er(n,"join",e,br),"medicareDetails.medicareCard"===e&&"yellow"===t.payload){const t={message:"This cover may not be appropriate for you if you hold a Reciprocal Medicare card.",type:vr.INLINE_ERROR};Dr({...t},{stepName:n,name:g.JOIN,fieldLabel:br[e]})}if("personalDetails.currentMember"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"true"===e?"currentMember_Yes":"currentMember_No",formElementType:r,formSection:i})}else if(e.match(o)){for(let a=0;a<10;a++)if(e===`child[${a}].title`){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"Mr"===e?`childrenDetail[${a}]genderMale`:`childrenDetail[${a}]genderFemale`,formElementType:r,formSection:i})}}else if("personalDetails.gender"===e||"dependentDetails.gender"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"Male"===e?"genderMale":"genderFemale",formElementType:r,formSection:i})}else if("healthHistory.hascurrentinsurance"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"true"===e?"switchingFundYes":"switchingFundNo",formElementType:r,formSection:i})}else if("medicareDetails.hasCard"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"true"===e?"yesCard":"NoCard",formElementType:r,formSection:i})}else if("eagr.claimAGRUpfront"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"true"===e?"YesApplyForAGR":"NoApplyForAGR",formElementType:r,formSection:i})}else if("eagr.coveredByPolicy"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"true"===e?"yesPolicyCover":"noPolicyCover",formElementType:r,formSection:i})}else if("eagr.allEntitledForMedicare"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"true"===e?"yesAllMedicare":"noAllMedicare",formElementType:r,formSection:i})}else if("personalDetails.coverstartdate"===e)hr.customEvent({event:"FormElements",formElementName:"personalDetails.coverDate",formElementType:r,formSection:i});else if("personalDetails.resaddress"===e)hr.customEvent({event:"FormElements",formElementName:"resAddInputId",formElementType:r,formSection:i});else if("offers.promoCode"===e)hr.customEvent({event:"FormElements",formElementName:"promoText",formElementType:r,formSection:i});else if("medicareDetails.applyNow"===e){const e=t.payload;hr.customEvent({event:"FormElements",formElementName:"true"===e?"rebateApplicationApplyNow":"rebateApplicationDoItLater",formElementType:r,formSection:i})}}}catch(e){}return e}function kr(e,t,a){try{return a=a||".",t.replace("[",a).replace("]","").split(a).reduce(((e,t)=>e[t]),e)}catch(e){return}}function Or(e,t){if(e.startsWith("personalDetails."))return t?"your details":"personalDetails.currentMember"===e||"personalDetails.coverstartdate"===e?"memberStatus":"yourdetails";if(e.startsWith("dependentDetails."))return t?"partner details":"partnerdetails";if(e.startsWith("child"))return t?"child details":"childdetails";if(e.startsWith("medicareDetails."))return"medicare";if(e.startsWith("healthHistory."))return t?"health history":"healthhistory";if(e.startsWith("offers."))return t?"special offers":"specialoffers";if(e.startsWith("claimback."))return t?"extras claimback":"extrasclaimback";if(t){if(e.startsWith("youthDiscount."))return"youth discount";if(e.startsWith("payments."))return"payment";if(e.startsWith("eagr."))return"australian government rebate";if(e.startsWith("visaDetails."))return"visa details"}}function Fr(e){const t={};let a=null;t["personalDetails.currentMember"]="",t["personalDetails.coverstartdate"]="",t["personalDetails.hadContinuousCover"]="personalDetailHadContinousInsuranceSince31",t["personalDetails.title"]="personalDetailTitle",t["personalDetails.firstname"]="personalDetailFirstName",t["personalDetails.lastname"]="personalDetailLastName",t["personalDetails.dob"]="personalDetailDateOfBirth",t["personalDetails.emailaddress"]="emailAddress",t["personalDetails.phonenumber"]="phoneNumber",t["personalDetails.phonenumberconsent"]="leadconsent",t["personalDetails.isEmployee"]="yesIAmAnEmployee",t["personalDetails.resad
1dress.state"]="",t["personalDetails.resaddress.addressLine1"]="residentialAddressAddressLine1",t["personalDetails.resaddress.addressLine2"]="residentialAddressAddressLine2",t["personalDetails.resaddress.suburb"]="residentialAddressSuburb",t["personalDetails.resaddress.postcode"]="residentialAddressPostcode",t["personalDetails.samepostaladdress"]="postalSameAsResidential",t["personalDetails.postaddress.state"]="",t["personalDetails.postaddress.addressLine1"]="postAddressAddressLine1",t["personalDetails.postaddress.addressLine2"]="postAddressAddressLine2",t["personalDetails.postaddress.suburb"]="postAddressSuburb",t["personalDetails.postaddress.postcode"]="postAddressPostcode",t["dependentDetails.title"]="partnerDetailTitle",t["dependentDetails.firstname"]="partnerDetailFirstName",t["dependentDetails.lastname"]="partnerDetailLastName",t["dependentDetails.dob"]="partnerDetailDateOfBirth",t["dependentDetails.hadContinuousCover"]="partnerDetailHadContinousInsuranceSince31",t["child.childcount"]="";for(let e=0;e<10;e++)t[`child[${e}].givenname`]=`childrenDetail[${e}]FirstName`,t[`child[${e}].familyname`]=`childrenDetail[${e}]LastName`,t[`child[${e}].childdob`]=`childrenDetail[${e}]DateOfBirth`,t[`child[${e}].fullTimeStudent`]=`childrenDetail[${e}]FullTimeStudent`;return t["medicareDetails.medicareCard"]="CardType",t["medicareDetails.number"]="MedicareNumber",t["medicareDetails.diffNameOnMedicare"]="FullNameMedicareDifferent",t["medicareDetails.firstName"]="FirstNameMedicare",t["medicareDetails.lastName"]="LastNameMedicare",t["medicareDetails.validTo"]="ValidToMedicare",t.consent="declaration",t["healthHistory.hascurrentinsurance"]="",t["healthHistory.currentfund"]="switchingFundDetailCurrentFundName",t["healthHistory.currentfundmemberid"]="switchingFundDetailCurrentFundNumber",t["healthHistory.transferconsent"]="switchingFundDetailAuthoriseMedibank",t["offers.promoCode"]="promoCode",a=t[e]?t[e]:e,a}function Br(e){let t;switch(e){case"firstname":case"lastname":case"emailaddress":case"phonenumber":case"currentfund":case"state":case"addressLine1":case"addressLine2":case"suburb":case"postcode":case"currentfundmemberid":default:t="Text";break;case"title":case"medicareCard":case"hascurrentinsurance":case"childcount":t="Button";break;case"fullTimeStudent":case"hadContinuousCover":case"samepostaladdress":case"phonenumberconsent":t="Check";break;case"dob":case"coverstartdate":case"childdob":t="Date"}return t}const xr=(0,Qa.createStore)(((e,t)=>{if("@@redux-form/INITIALIZE"===t.type&&"eagr"===t.meta.form){const a=e.form.yourdetailsForm.values.personalDetails.firstname,r=e.form.yourdetailsForm.values.personalDetails.lastname;t.payload.medicareDetails.firstName=a,t.payload.medicareDetails.lastName=r}
1if("@@redux-form/SET_SUBMIT_SUCCEEDED"===t.type&&"yourdetailsForm"===t.meta.form){if(!!e.form.eagr){const t=!Wa()(e,"form.eagr.values.medicareDetails.diffNameOnMedicare"),a=Wa()(e,"form.yourdetailsForm.values");if(t&&a){const t=Wa()(e,"form.yourdetailsForm.values.personalDetails.firstname"),a=Wa()(e,"form.yourdetailsForm.values.personalDetails.lastname");Ka()(e.form.eagr.values,"medicareDetails.firstName",t),Ka()(e.form.eagr.values,"medicareDetails.lastName",a)}}}if("@@redux-form/CHANGE"===t.type&&"eagr"===t.meta.form&&"medicareDetails.diffNameOnMedicare"===t.meta.field){const a=e.form.yourdetailsForm.values.personalDetails.firstname,r=e.form.yourdetailsForm.values.personalDetails.lastname,i=t.meta.form,n="medicareDetails.firstName",o="medicareDetails.lastName",s=Wa()(e.form[i].syncErrors,n),l=Wa()(e.form[i].syncErrors,o);if(t.payload)Ka()(e.form[i].values,n,""),Ka()(e.form[i].values,o,"");else{Wa()(e.form[i].initial,n),Wa()(e.form[i].initial,o);s&&Ka()(e.form[i].syncErrors,n,null),l&&Ka()(e.form[i].syncErrors,o,null),Ka()(e.form[i].values,n,a),Ka()(e.form[i].values,o,r)}}return Rr(e,t)}),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__());xr.subscribe(tr()((()=>{if(Ar.getJoinStatus()!==ar.COMPLETED){if(xr.getState()){const e={...xr.getState().form.yourdetailsForm.values,...xr.getState().form?.eagr?.values};_r(e)}}else Mr()}),1e3));class Yr extends i().Component{constructor(e){super(e),this.paymentFreqOpts=[{name:"Fortnightly",val:"fortnightly"},{name:"Monthly",val:"monthly"},{name:"Quarterly",val:"quarterly"},{name:"Half-yearly",val:"halfyearly"},{name:"Yearly",val:"yearly"}],this.dayOfMonthOpts=[];for(let e=1;e<29;e++)this.dayOfMonthOpts.push({val:`${e}`,name:`${this.ordinal_suffix_of(e)} day of month`})}ordinal_suffix_of(e){const t=e%10,a=e%100;return 1===t&&11!==a?`${e}st`:2===t&&12!==a?`${e}nd`:3===t&&13!==a?`${e}rd`:`${e}th`}render(){const{price:e}=this.props,{personalDetails:{coverstartdate:t},offers:{promoCode:a}={}}=Pr(),r=!!a;return(0,Ut.BX)(sa,{title:"Your premium payments",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.BX)("p",{className:"m-b-4",children:["You can choose the frequency of your direct debit premium payments. If you have any questions, please call our Platinum Sales and Service Team on"," ",(0,Ut.tZ)("a",{href:"tel:1300763422","data-analytics-title":"your premium payments","data-analytics-component":"subs premium payments",children:"1300 763 422"})," ","(or"," ",(0,Ut.tZ)("a",{href:"tel:+61398621048","data-analytics-title":"your premium payments","data-analytics-component":"subs premium payments",children:"+613 9862 1048"})," ","if calling from overseas)."]})})}),(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Payment frequency",name:"paymentfreq",component:Xa,opts:this.paymentFreqOpts,selectedVal:"fortnightly"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(na,{fieldName:"paymentfreq",children:a=>(0,Ut.tZ)(Ja,{price:e,frequency:a,coverStartDate:t,hasSpecialOffer:r})})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(s.FormSection,{name:"bankaccount",children:(0,Ut.tZ)(Ya,{})})})})]})]})}}const Ur=Yr;class qr extends i().Component{componentDidMount(){const{quote:e,price:t,cover:a,isNonresident:r}=this.props;Lt.trackJoinFormLoad({eventName:ct.JOIN_PAYMENT,step:N.PREMIUM_PAYMENT,productData:Tt(e,t,a),visaType:r?"working":void 0})}render(){const{price:e,handleSubmit:t,submitting:a,cover:r,isFullySubsidised:i}=this.props;return(0,Ut.BX)("form",{onSubmit:t,children:[(0,Ut.BX)("div",{className:"row d-none d-xl-flex m-t-2 m-t-0-xl",children:[(0,Ut.tZ)("div",{className:"col-8 col-lg-10",children:(0,Ut.tZ)("h2",{className:"m-t-0",children:"Payment"})}),(0,Ut.BX)("div",{className:"col-4 col-md-2",children:[(0,Ut.BX)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.91 15.94",className:"icon icon-sm",children:[(0,Ut.tZ)("title",{children:"Icon lock"}),(0,Ut.tZ)("path",{d:"M3.59 7.25V5.07a2.87 2.87 0 1 1 5.74 0v2.18zm9.32 1.09a1.08 1.08 0 0 0-1.08-1.09h-.33V5.07A5.07  5.07 0 0 0 6.5 0a5.07 5.07 0 0 0-5 5.07v2.18h-.42A1.08 1.08 0 0 0 0 8.33v6.52a1.08 1.08 0 0 0 1.08 1.09h10.75a1.08 1.08 0 0 0 1.08-1.09z",fill:"
1currentColor"}),(0,Ut.tZ)("path",{d:"M3.59 7.25V5.07a2.87 2.87 0 1 1 5.74 0v2.18zm9.32 1.09a1.08 1.08 0 0 0-1.08-1.09h-.33V5.07A5.07  5.07 0 0 0 6.5 0a5.07 5.07 0 0 0-5 5.07v2.18h-.42A1.08 1.08 0 0 0 0 8.33v6.52a1.08 1.08 0 0 0 1.08 1.09h10.75a1.08 1.08 0 0 0 1.08-1.09z",fill:"currentColor"})]}),(0,Ut.tZ)("p",{className:"d-inline p-l-1 p-t-3",children:(0,Ut.tZ)("b",{children:"Secure"})})]})]}),!i&&(0,Ut.tZ)(s.FormSection,{name:"payments",children:(0,Ut.tZ)(Ur,{price:e})}),"HOSPITAL"!==r.productType&&(0,Ut.tZ)(na,{fieldName:"payments.paymentType",children:()=>(0,Ut.tZ)(na,{fieldName:"payments.bankaccount",children:e=>(0,Ut.tZ)(s.FormSection,{name:"claimback",children:(0,Ut.tZ)("div",{className:"m-b-2",children:(0,Ut.tZ)(qa,{...e,readonly:!i})})})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-8 m-b-4",children:(0,Ut.BX)("button",{className:"btn btn-primary btn-lg",type:"submit",disabled:a,children:[a&&(0,Ut.BX)("span",{children:["Loading ",(0,Ut.tZ)("span",{className:"spinner spinner-md d-inline-flex"})]}),!a&&(0,Ut.tZ)("span",{children:"Next"})]})})})]})}}let Xr=Te.getQuoteDetails();Xr||(Xr={});const Vr=(0,s.reduxForm)({form:"paymentForm",forceUnregisterOnUnmount:!0,onSubmitFail:function(){setTimeout((()=>{const e=document.querySelector(".input-group-alert"),t=document.querySelector(".input-group-alert input");e&&e.scrollIntoView(),t&&t.focus(),window.scrollBy(0,-120)}),100)},initialValues:{payments:{paymentType:"dd",paymentfreq:"weekly"===Xr.priceFreq?"fortnightly":Xr.priceFreq}}})(qr),Hr=e=>(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.BX)("h2",{className:"m-t-0",children:["Thanks ",e.firstname,", we’ll take it from here."]}),(0,Ut.tZ)("p",{children:"You’ve just taken your first steps towards better health with Medibank! We’ll send you an email shortly, confirming the details you gave us. Here's what we'll do next:"}),(0,Ut.BX)("ol",{className:"m-t-2",children:[(0,Ut.BX)("li",{children:[(0,Ut.tZ)("strong",{children:"Process your membership request"}),(0,Ut.tZ)("p",{children:"We'll enter your details into our system and set up your new Medibank membership."})]}),(0,Ut.BX)("li",{children:[(0,Ut.tZ)("strong",{children:"Confirm your membership by email"}),(0,Ut.tZ)("p",{children:"In 2-3 days, you'll receive an email containing important policy details."})]})]})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-8 m-b-4 m-t-4",children:(0,Ut.tZ)("a",{className:"btn btn-primary btn-lg",href:$(e.successRedirect),children:"Done"})})})]}),jr=({id:e,input:t,label:a,children:i,step:n="",meta:{touched:o,error:s}})=>{const{onChange:l}=t;let c="input-group",d="";return o&&s&&(c+=" input-group-alert",d=" input-group-alert d-inline-block"),(0,r.useEffect)((()=>{var e,a,r;""!==d&&(e=t.name,a=n,r=s,e===yr.CONSENT_CHECKBOX&&a===gr.SUMMARY?Dr({message:r},{fieldLabel:Nr.SUBS_SUMMARY_TERMS,name:g.JOIN,stepName:a}):e===yr.CONSENT_CHECKBOX&&a===gr.PAYMENT&&Dr({message:r},{fieldLabel:Nr.PAYMENT_INC_TERMS,name:g.JOIN,stepName:a}))}),[d]),(0,Ut.BX)("div",{className:c,children:[(0,Ut.BX)("label",{className:"input-checkbox",htmlFor:t.name,children:[(0,Ut.tZ)("span",{dangerouslySetInnerHTML:X(a)}),i,(0,Ut.tZ)("input",{...t,id:t.name,type:"checkbox",defaultChecked:!!t.value,onChange:e=>{var a,r;l&&l(e),a=t.name,r=n,a===yr.CONSENT_CHECKBOX&&r===gr.SUMMARY?Cr({fieldLabel:Nr.SUBS_SUMMARY_TERMS,name:g.JOIN,stepName:r}):a===yr.CONSENT_CHECKBOX&&r===gr.PAYMENT&&Cr({fieldLabel:Nr.PAYMENT_INC_TERMS,name:g.JOIN,stepName:r})}}),(0,Ut.tZ)("div",{className:"input-indicator needsclick"})]}),o&&s&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${t.name}`,children:s})]})};class $r extends i().Component{constructor(e){super(e)}componentDidMount(){const{quote:e,price:t,cover:a}=this.props.data,{isNonresident:r}=this.props;Lt.trackJoinFormLoad({eventName:ct.JOIN_SUMMARY,step:N.SUMMARY,productData:Tt(e,t,a),visaType:r?"working":void 0})}getAddress(){const e=this.props.data.personalDetails;if(!e.internationaladdress){if("auto"==e.postaddress.type)return e.postaddress.complete;const t=e.postaddress.addressLine2?e.postaddress.addressLine2:"";return`${e.postaddress.addressLine1} ${t} ${e.postaddress.suburb} ${e.postaddress.state} ${e.postaddress.postcode}`}const t=e.international.addressLine2?e.international.addressLine2:"";return`${e.international.addressLine1} ${t} ${e.international.suburb} ${e.international.state} ${e.international.country} ${e.international.postcode}`}getPriceFrequence(e){return this.props.combinedprices[e][""]}render(){const{handleSubmit:e,pristine:t,submitting:a,invalid:r,onSubmitFail:i}=this.props,{personalDetails:n,cover:o,paymentDetails:l,isFullySubsidised:c,price:d}=this.props.data,m=Te.getQuoteDetails(),u=this.props.combinedprices&&this.props.combinedprices.dual,p=this.props.combinedprices&&this.props.combinedprices.regular;return(0,Ut.BX)("form",{onSubmit:e,autoComplete:"off",children:[(0,Ut.tZ)("div",{className:"row summary-details",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("h2",{className:"m-t-4 m-b-2",children:"Your health cover summary"}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-md-6",children:(0,Ut.BX)("div",{className:"input-group",children:[(0,Ut.tZ)("h6",{className:"m-y-2",children:"Cover details"}),(0,Ut.BX)("div",{className:"m-b-3",children:[(0,Ut.tZ)("label",{className:"m-b-0",children:"Cover name"}),(0,Ut.tZ)("p",{className:"lead",children:o.title})]}),(0,Ut.BX)("div",{className:"m-b-3",children:[(0,Ut.tZ)("label",{className:"m-b-0",children:"Cover type"}),(0,Ut.BX)("p",{className:"lead",children:[M(m.scale)," cover"]})]}),(0,Ut.BX)("div",{className:"m-b-3",children:[(0,Ut.tZ)("label",{className:"m-b-0",children:"Cover start date"}),(0,Ut.tZ)("p",{className:"lead",children:n.coverstartdate})]})]})}),(0,Ut.tZ)("div",{className:"col-md-6",children:(0,Ut.BX)("div",{className:"input-group",children:[(0,Ut.tZ)("h6",{className:"m-y-2",children:"Personal details"}),(0,Ut.BX)("div",{className:"m-b-3",children:[(0,Ut.tZ)("label",{className:"m-b-0",children:"Policy holder"}),(0,Ut.BX)("p",{className:"lead",children:[n.firstname," ",n.lastname]})]}),(0,Ut.BX)("div",{className:"m-b-3",children:[(0,Ut.tZ)("label",{className:"m-b-0",children:"Address"}),(0,Ut.tZ)("p",{className:"lead",children:this.getAddress()})]})]})})]})]})}),!c&&(0,Ut.BX)(Ut.HY,{children:[!ae()&&(0,Ut.tZ)("div",{className:"row m-b-1",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("h6",{className:"m-t-1",children:"Payment details"}),(0,Ut.BX)("p",{children:["Your ",(0,Ut.tZ)("strong",{children:l.ongoingPayment.paymentFrequency})," payments will be"," ",(0,Ut.BX)("strong",{children:["$",d.current[l.ongoingPayment.paymentFrequency.toLowerCase()].toFixed(2)]})]}),(0,Ut.BX)("p",{children:["Your ",(0,Ut.tZ)("strong",{children:"first payment"})," may vary depending on your cover start date."]})]})}),ae()&&(0,Ut.tZ)("div",{className:"bg-neutral-1 p-x-2 p-y-4",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.BX)("p",{className:"m-t-0",children:["Your ",(0,Ut.tZ)("strong",{children:"monthly payments"})," will be",(0,Ut.BX)("strong",{children:[" ","$",p&&this.getPriceFrequence("regular")," ",ne()]})," ","and",(0,Ut.BX)("strong",{children:[" ","$",u&&this.getPriceFrequence("dual")," from ",re()]}),"."]}),(0,Ut.BX)("p",{children:["Your ",(0,Ut.tZ)("strong",{children:"first payment"})," might vary depending on your cover start date."]})]})})})]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 m-t-2",children:(0,Ut.tZ)(s.Field,{id:"tosconsent",name:"tosconsent",step:gr.SUMMARY,placeholder:"",component:jr,validate:[ya],children:(0,Ut.BX)("p",{className:"m-t-0 m-x-1",children:["I have read and accepted the"," ",(0,Ut.BX)("a",{href:H("/corporate-cover-terms-and-conditions/"),target:"_blank",rel:"noreferrer",children:["Corporate Subsidy Information"," "]}),","," ",(0,Ut.tZ)("a",{href:H("/terms-and-conditions"),target:"_blank",rel:"noreferrer",children:"Important Information"})," ","and"," ",(0,Ut.tZ)("a",{href:H("/legal-information/#privacy-policy"),target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),". I confirm that the information provided in this form has been provided with the consent of the individual to whom it relates."]})})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-8",children:(0,Ut.BX)("button",{type:"submit",disabled:a,className:"btn btn-primary m-t-2 btn-lg",children:[a&&(0,Ut.BX)("span",{children:["Loading ",(0,Ut.tZ)("span",{className:"spinner spinner-md d-inline-flex"})]}),!a&&(0,Ut.tZ)("span",{children:"Join now"})]})})}),!t&&r&&(0,Ut.tZ)("p",{children:"errors in the form"})]})}}const Jr=(0,s.reduxForm)({form:"summaryform",forceUnregisterOnUnmount:!0,initialValues:{tosconsent:!1}})($r);class Qr extends i().Component{constructor(e){super(e)}render(){return(0,Ut.BX)(Ut.HY,{children:[!this.props.residential&&(0,Ut.BX)("ol",{className:"progress-wrapper",children:[("INIT"===this.props.active||"TEMPJOINING"===this.props.active)&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("li",{className:"active",children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Your details"})}),!this.props.disableSecondStep&&(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Payment"})}),(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Summary"})})]}),("TEMPJOINED"===this.props.active||"JOINING"===this.props.active)&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("li",{className:"active clickable",onClick:this.props.stepOne,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Your details"})}),!this.props.disableSecondStep&&(0,Ut.tZ)("li",{className:"active",children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Payment"})}),(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Summary"})})]}),"SUMMARY"===this.props.active&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("li",{className:"active",onClick:this.props.stepOne,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Your details"})}),!this.props.disableSecondStep&&(0,Ut.tZ)("li",{className:"active",onClick:this.props.stepTwo,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Payment"})}),(0,Ut.tZ)("li",{className:"active",children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Summary"})})]})]}),this.props.residential&&(0,Ut.BX)("ol",{className:"progress-wrapper",children:["INIT"===this.props.active&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("li",{className:"active",children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Your details"})}),(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Rebate"})}),!this.props.disableSecondStep&&(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Payment"})}),(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Summary"})})]}),"TEMPJOINING"===this.props.active&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("li",{className:"active clickable",onClick:this.props.stepYourDetails,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Your details"})}),(0,Ut.tZ)("li",{className:"active",children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Rebate"})}),!this.props.disableSecondStep&&(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Payment"})}),(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Summary"})})]}),"TEMPJOINED"===this.props.active&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("li",{className:"active clickable",onClick:this.props.stepYourDetails,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Your details"})}),(0,Ut.tZ)("li",{className:"active clickable",onClick:this.props.stepAGR,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Rebate"})}),!this.props.disableSecondStep&&(0,Ut.tZ)("li",{className:"active",children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Payment"})}),(0,Ut.tZ)("li",{children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Summary"})})]}),"SUMMARY"===this.props.active&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("li",{className:"active clickable",onClick:this.props.stepYourDetails,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Your details"})}),(0,Ut.tZ)("li",{className:"active clickable",onClick:this.props.stepAGR,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Rebate"})}),!this.props.disableSecondStep&&(0,Ut.tZ)("li",{className:"active clickable",onClick:this.props.stepPayment,children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Payment"})}),(0,Ut.tZ)("li",{className:"active",children:(0,Ut.tZ)("span",{className:"d-none d-md-inline-flex",children:"Summary"})})]})]})]})}}const Gr=Qr;class Wr extends i().Component{componentDidMount(){const{quote:e,price:t,cover:a,isNonresident:r}=this.props;Lt.trackJoinFormLoad({eventName:ct.JOIN_PAYMENT,step:N.PREMIUM_PAYMENT,productData:Tt(e,t,a),visaType:r?"working":void 0})}render(){const{offers:{promoCode:e}={}}=Pr(),t=!!e,{startDate:a,quote:r,handleSubmit:i,submitting:n}=this.props;return(0,Ut.BX)("form",{onSubmit:i,children:[(0,Ut.BX)("div",{className:"row d-none d-lg-flex",children:[(0,Ut.tZ)("div",{className:"col-8 col-lg-10",children:(0,Ut.tZ)("h2",{className:"m-t-0",children:"Payment"})}),(0,Ut.BX)("div",{className:"col-4 col-md-2",children:[(0,Ut.BX)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.91 15.94",className:"icon icon-sm",children:[(0,Ut.tZ)("title",{children:"Icon lock"}),(0,Ut.tZ)("path",{d:"M3.59 7.25V5.07a2.87 2.87 0 1 1 5.74 0v2.18zm9.32 1.09a1.08 1.08 0 0 0-1.08-1.09h-.33V5.07A5.07 5.07 0 0 0 6.5 0a5.07 5.07 0 0 0-5 5.07v2.18h-.42A1.08 1.08 0 0 0 0 8.33v6.52a1.08 1.08 0 0 0 1.08 1.09h10.75a1.08 1.08 0 0 0 1.08-1.09z",fill:"
1currentColor"}),(0,Ut.tZ)("path",{d:"M3.59 7.25V5.07a2.87 2.87 0 1 1 5.74 0v2.18zm9.32 1.09a1.08 1.08 0 0 0-1.08-1.09h-.33V5.07A5.07 5.07 0 0 0 6.5 0a5.07 5.07 0 0 0-5 5.07v2.18h-.42A1.08 1.08 0 0 0 0 8.33v6.52a1.08 1.08 0 0 0 1.08 1.09h10.75a1.08 1.08 0 0 0 1.08-1.09z",fill:"currentColor"})]}),(0,Ut.tZ)("p",{className:"d-inline p-l-1 p-t-3",children:(0,Ut.tZ)("b",{children:"Secure"})})]})]}),(0,Ut.BX)(sa,{title:"Your premium payments",children:[(0,Ut.BX)(s.FormSection,{name:"payments",children:[(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-1 m-b-2",children:"You can choose to pay your ongoing payments to be half-yearly or yearly by direct debit from your bank account."})}),(0,Ut.tZ)("div",{className:"col-12 col-md-5 m-t-1",children:(0,Ut.tZ)(s.Field,{label:"Payment frequency",name:"paymentfreq",component:Xa,opts:[{name:"Half-yearly",val:"halfyearly"},{name:"Yearly",val:"yearly"}],validate:[Ta],selectedVal:r.priceFreq})})]}),(0,Ut.tZ)(na,{fieldName:"paymentfreq",children:e=>(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(Ja,{price:this.props.price,frequency:e,coverStartDate:a,hasSpecialOffer:t})})})})]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 m-t-2",children:(0,Ut.BX)(s.FormSection,{name:"bankaccount",children:[(0,Ut.tZ)(Ya,{}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(s.Field,{id:"tosconsent",name:"tosconsent",step:gr.PAYMENT,placeholder:"",component:jr,validate:[Ta],children:(0,Ut.BX)("p",{className:"m-t-0 m-x-1",children:["I have read and accepted the"," ",(0,Ut.tZ)("a",{href:"/terms-and-conditions/",target:"_blank",children:"Important Information,"})," ",(0,Ut.tZ)("a",{href:"https://www.medibank.com.au/privacy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ","and"," ",(0,Ut.tZ)("a",{href:"/terms-and-conditions/#directdebit",target:"_blank",children:"Direct Debit Service Agreement"}),". I confirm that the information provided in this form has been provided with the consent of the individual to whom it relates."]})})})})]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-8 m-b-4",children:(0,Ut.BX)("button",{className:"btn btn-primary btn-lg",type:"submit",disabled:n,children:[n&&(0,Ut.BX)("span",{children:["Loading ",(0,Ut.tZ)("span",{className:"spinner spinner-md d-inline-flex"})]}),!n&&(0,Ut.tZ)("span",{children:"Buy now"})]})})})]})]})}}let zr=Te.getQuoteDetails();zr||(zr={});const Kr=(0,s.reduxForm)({form:"paymentForm",forceUnregisterOnUnmount:!0,initialValues:{payments:{paymentType:zr.priceFreq,paymentfreq:zr.priceFreq}}})(Wr),ei=({title:e="Icon Clock",...t})=>(0,Ut.BX)("svg",{viewBox:"0 0 32 32",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,Ut.tZ)("title",{children:e}),(0,Ut.BX)("g",{clipPath:"url(#clip0)",fill:"#000",children:[(0,Ut.tZ)("path",{d:"M16 0a16 16 0 1016 16A16.019 16.019 0 0016 0zm0 29.333A13.334 13.334 0 1129.333 16 13.347 13.347 0 0116 29.333z"}),(0,Ut.tZ)("path",{d:"M22.845 21.08l-6.178-5.665V8.667a1.333 1.333 0 00-2.667 0V16a1.333 1.333 0 00.432.984l6.612 6.06a1.347 1.347 0 001.884-.081 1.334 1.334 0 00-.083-1.883z"})]}),(0,Ut.tZ)("defs",{children:(0,Ut.tZ)("clipPath",{id:"clip0",children:(0,Ut.tZ)("path",{fill:"#fff",d:"M0 0h32v32H0z"})})})]});ei.propTypes={title:xt().string};const ti=ei,ai=({title:e="Icon Credit Cards",...t})=>(0,Ut.BX)("svg",{viewBox:"0 0 32 32",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,Ut.tZ)("title",{children:e}),(0,Ut.BX)("g",{clipPath:"url(#clip0)",fill:"#000",children:[(0,Ut.tZ)("path",{d:"M28 0H8a4 4 0 00-4 4v6a1.333 1.333 0 102.667 0v-.333A.333.333 0 017 9.333h22a.333.333 0 01.333.334V16a1.332 1.332 0 01-.713 1.18 1.252 1.252 0 00-.62 1.123 1.333 1.333 0 001.935 1.2A4 4 0 0032 16V4a4 4 0 00-4-4zM7 5.333A.333.333 0 016.667 5V4A1.333 1.333 0 018 2.667h20A1.333 1.333 0 0129.333 4v1a.333.333 0 01-.333.333H7z"}),(0,Ut.tZ)("path",{d:"M22.667 13.333h-20A2.667 2.667 0 000 16v13.333A2.667 2.667 0 002.667 32h20a2.667 2.667 0 002.666-2.667V16a2.667 2.667 0 00-2.666-2.667zM8 20.667a.667.667 0 01-.66
17.666H4.667A.667.667 0 014 20.667V18a.667.667 0 01.667-.667h2.666A.667.667 0 018 18v2.667zM19.333 28c-.656 0-1.289-.242-1.777-.68a.335.335 0 00-.445 0 2.667 2.667 0 110-3.973.335.335 0 00.445 0A2.666 2.666 0 1119.333 28z"})]}),(0,Ut.tZ)("defs",{children:(0,Ut.tZ)("clipPath",{id:"clip0",children:(0,Ut.tZ)("path",{fill:"#fff",d:"M0 0h32v32H0z"})})})]});ai.propTypes={title:xt().string};const ri=ai,ii=({title:e="Icon Passport",...t})=>(0,Ut.BX)("svg",{viewBox:"0 0 32 32",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,Ut.tZ)("title",{children:e}),(0,Ut.BX)("g",{clipPath:"url(#clip0)",fill:"#000",children:[(0,Ut.tZ)("path",{d:"M11.067 18a.667.667 0 00.666-.624c.07-1.176.24-2.344.51-3.49a.667.667 0 00-1.053-.686 7.343 7.343 0 00-2.615 3.964.667.667 0 00.645.833l1.847.003zM19.6 17.376a.667.667 0 00.667.624h1.852a.666.666 0 00.645-.833 7.342 7.342 0 00-2.62-3.967.666.666 0 00-1.056.683c.271 1.147.442 2.316.512 3.493zM15.187 11.744a12.964 12.964 0 00-1.467 5.539.668.668 0 00.667.717h2.573a.667.667 0 00.667-.717 12.966 12.966 0 00-1.467-5.539.122.122 0 00-.097-.059c-.133-.009-.253-.018-.383-.018s-.256.009-.383.018a.124.124 0 00-.11.059zM11.743 20.62a.667.667 0 00-.667-.62H9.22a.666.666 0 00-.645.833c.41 1.593 1.343 3.001 2.65 4a.667.667 0 001.053-.688 20.954 20.954 0 01-.535-3.525zM16.133 26.277a13.823 13.823 0 001.467-5.554.668.668 0 00-.66
17-.723h-2.541a.668.668 0 00-.667.723 13.823 13.823 0 001.467 5.554.07.07 0 00.057.036c.133.01.267.02.41.02.142 0 .273-.01.409-.02a.07.07 0 00.065-.036z"}),(0,Ut.tZ)("path",{d:"M27.733 6.9a.666.666 0 01-.4-.61V2.666A2.667 2.667 0 0024.667 0H7.332a4.667 4.667 0 00-4.667 4.667V28a4 4 0 004 4h20a2.667 2.667 0 002.667-2.667v-20a2.658 2.658 0 00-1.6-2.433zm-22.4-2.233a2 2 0 012-2H24a.667.667 0 01.666.666V6a.666.666 0 01-.666.667H7.333a2 2 0 01-2-2zm10.333 23.666A9.333 9.333 0 1125 19a9.344 9.344 0 01-9.334 9.333z"}),(0,Ut.tZ)("path",{d:"M20.254 20a.667.667 0 00-.666.62 20.952 20.952 0 01-.534 3.519.668.668 0 001.054.688 7.347 7.347 0 002.65-4 .667.667 0 00-.645-.827h-1.859z"})]}),(0,Ut.tZ)("defs",{children:(0,Ut.tZ)("clipPath",{id:"clip0",children:(0,Ut.tZ)("path",{fill:"#fff",d:"M0 0h32v32H0z"})})})]});ii.propTypes={title:xt().string};const ni=ii,oi=({showCitizenship:e,title:t=["Join now, enjoy the benefits"]})=>(0,Ut.BX)("div",{className:"join-benefits bg-neutral-1 bordered border-neutral-4 p-a-2 p-a-4-lg",children:[(0,Ut.BX)("h2",{className:"m-t-0",children:[(0,Ut.tZ)("span",{children:t[0]}),t[1]&&(0,Ut.tZ)("span",{className:"d-none d-md-inline-block",children:t[1]})]}),(0,Ut.BX)("p",{className:"join-benefits-meta","aria-label":"It will require 4-8 minutes to complete the form",children:[(0,Ut.tZ)(ti,{className:"join-benefits-meta-icon"}),(0,Ut.BX)("span",{className:"join-benefits-meta-copy",children:[(0,Ut.tZ)("strong",{children:"4-8 minutes"})," to complete the form"]})]}),(0,Ut.BX)("p",{className:"join-benefits-meta","aria-label":"It will require a Visa, Mastercard or bank account details",children:[(0,Ut.tZ)(ri,{className:"join-benefits-meta-icon"}),(0,Ut.BX)("span",{className:"join-benefits-meta-copy",children:[(0,Ut.tZ)("strong",{children:"Visa, Mastercard"})," or ",(0,Ut.tZ)("strong",{children:"bank account details"})]})]}),e&&(0,Ut.BX)("p",{className:"join-benefits-meta","aria-label":"It will require australian visa details",children:[(0,Ut.tZ)(ni,{className:"join-benefits-meta-icon"}),(0,Ut.tZ)("span",{className:"join-benefits-meta-copy",children:(0,Ut.tZ)("strong",{children:"Australian visa details"})})]})]});oi.propTypes={showCitizenship:xt().bool,title:xt().arrayOf(xt().string)};const si=oi,li={CORP:["Join now",", enjoy the benefits"],RETAIL:["Join now",", enjoy the benefits"],OVERSEAS:["Membership Application"]};class ci extends i().Component{constructor(e){super(e);const t=e.config.initVals;if(this.jquote={},this.beforeunload=e=>(e.preventDefault(),""),this.resetPromoCodeError=this.resetPromoCodeError.bind(this),this.isPromoCodeNotValid=this.isPromoCodeNotValid.bind(this),t){const{personalDetails:e,dependentDetails:a,child:r,childcount:i}=t;if(this.jquote.applyLHC=!(!e||e.hadContinuousCover),this.jquote.applyPartnerLHC=!(!a||a.hadContinuousCover),r){this.jquote.childFAWC=[];const e=null==i?1:i;for(let t=0;t<e;t++){const e={};e.childdob=r[t].childdob&&d()(r[t].childdob,"DD/MM/YYYY",!0),e.fullTimeStudent=!!r[t].fullTimeStudent,this.jquote.childFAWC.push(e)}}else this.jquote.childFAWC=[{}];this.jquote.applyFAWC=!(!this.jquote.childFAWC||!this.jquote.childFAWC.find((e=>{const t=e.childdob;if(t&&t.isValid()){const a=d()().diff(t,"years");if(a<31&&a>20&&!e.fullTimeStudent)return!0}return!1})))}else this.jquote.childFAWC=[{fullTimeStudent:!0}];this.state={quote:e.config.quote,cover:e.config.cover,hosToolTip:e.config.hosToolTip,exToolTip:e.config.exToolTip,additional:{},join:{status:"INIT",data:null},promoCodeError:null},this.isNonresident=e.config.isNonresident,this.updatePrice().then((t=>{const{config:{quote:a,cover:r}}=e,{price:i}=this.state;Ar.updateJoinStatus(ar.STARTED),hr.startJoin(a,r,i),Lt.trackJoinFormLoad({eventName:ct.JOIN_START,step:N.YOUR_DETAILS,productData:Tt(a,i,r),visaType:this.isNonresident?"working":void 0})})),this.channelbasedCallingNumbers=V()?"134 190":"1300 763 422"}componentDidMount(){window.addEventListener("beforeunload",this.beforeunload),this._initSticky(),Te.subscribeForUpdates((e=>{this.setState({quote:e,price:null},this.updatePrice)})),Te.subscribeForFreqUpdates((e=>{this.setState({quote:e,price:null},this.updatePrice)}))}componentDidUpdate(){this._initSticky()}componentWillUnmount(){window.removeEventListener("beforeunload",this.beforeunload)}getTrackingInfo(){const e=U("target");let t;return e&&(t=`|${JSON.parse(e).join(",")}`),e?U("gaClientId")+t:U("gaClientId")}_initSticky(){"xl"===(0,l.getCurrentBreakpoint)()?new(Ie())(".js-summary-sticky"):new(Ie())(".js-summary-mobile-sticky")}toggleFWAC(e){this.jquote.applyFAWC=e,this.updatePrice()}updateChildCount(e){const{config:{initVals:t}}=this.props;if(this.jquote.childFAWC){if(this.jquote.childFAWC.length>e)this.jquote.childFAWC=this.jquote.childFAWC.splice(0,e);else{const a=e-this.jquote.childFAWC.length,r=this.jquote.childFAWC.length;for(let e=0;e<a;e++){const a=t.child[r+e],i={};i.childdob=a.childdob&&d()(a.childdob,"DD/MM/YYYY",!0),i.fullTimeStudent=!!a.fullTimeStudent,this.jquote.childFAWC.push(i)}}this.updateFWACStatus()}}updateChildFWACDetails(e,t,a){this.jquote.childFAWC&&(this.jquote.childFAWC[e].childdob=t,null!=a&&(this.jquote.childFAWC[e].fullTimeStudent=a),this.updateFWACStatus())}updateFWACStatus(){if(this.jquote.childFAWC){const e=!!this.jquote.childFAWC.find((e=>{if(e.childdob&&e.childdob.isValid()){const t=d()().diff(e.childdob,"years");if(t<31&&t>20&&!1===e.fullTimeStudent)return!0}return!1}));this.jquote.applyFAWC=e,this.setState({price:null},this.updatePrice)}}updateAge(e,t,a){const r=Te.getQuoteDetails();this.jquote.applyLHC=!t,r.dob=a,Te.updateUserQuoteDetails(r)}updatePartnerAge(e,t,a){const r=Te.getQuoteDetails();this.jquote.applyPartnerLHC=!t,r.partnerdob=a,Te.updateUserQuoteDetails(r)}updatePrice(){const{quote:e,cover:{claimback:t,excess:a}}=this.state,r={};return t&&(r.extrasId=t.id),a&&(r.hospitalId=a.id),Xe.getSubsBulkProductPrice([r],this.isNonresident,this.jquote.applyLHC,this.jquote.applyPartnerLHC,this.jquote.applyFAWC,!0).then((t=>{const a=t[0][ae()?"future":"current"][e.priceFreq]<=0;this.setState({price:t[0],additional:{agr:t.AGR,lhc:t.lhc},isFullySubsidised:a})}))}dualRateHandlerJoin(e){const t=Te.getQuoteDetails().priceFreq,a=!!e.target.checked;Te.updateUserQuoteFreq(t,a)}submitYourDetails(e){Cr({fieldLabel:"next",name:g.JOIN,stepName:N.YOUR_DETAILS});const t=document.getElementsByClassName("progress-wrapper")[0],a=JSON.parse(JSON.stringify(e));this.setState({join:{status:"TEMPJOINING"},yourDetails:{data:a},tracking:{gender:a.personalDetails.gender,postcode:a.personalDetails.resad
1dress.postcode,promo:a.offers&&a.offers.promoCode?a.offers.promoCode:void 0},firstname:a.personalDetails.firstname}),t.scrollIntoView(),hr.joinFormMoveToNextStep(hr.joinFormScreenName.step_1),hr.joinFormCurrentStepScreen(hr.joinFormScreenName.step_2)}submitTempJoin(e){Cr({fieldLabel:"next",name:g.JOIN,stepName:this.isNonresident?N.YOUR_DETAILS:N.AGR});const{cover:t,quote:a,yourDetails:r,isFullySubsidised:i}=this.state,{config:{cover:n,urls:o}}=this.props;if(hr.joinFormMoveToNextStep(hr.joinFormScreenName.step_2),hr.joinFormCurrentStepScreen(hr.joinFormScreenName.step_3),Ar.updateJoinStatus(ar.PAYING),r?.data?.offers?.promoCode&&r?.data?.personalDetails?.coverstartdate&&this.isPromoCodeNotValid(r?.data?.offers?.promoCode,r?.data?.personalDetails?.coverstartdate))return this.scrolltoEditRelaventDetails(".promo-container-main"),null;let s;if(this.isNonresident)s=JSON.parse(JSON.stringify(e));else{const t={...r.data,...e};s=JSON.parse(JSON.stringify(t))}const l=document.getElementsByClassName("progress-wrapper")[0],c={};if(s.personalDetails.samepostaladdress&&(s.personalDetails.postaddress={...s.personalDetails.resaddress}),this.isNonresident&&delete s.medicareDetails,"EXTRAS"===n.productType&&(s.personalDetails.hadContinuousCover=!1,"F"!==a.scale&&"C"!==a.scale||(s.dependentDetails.hadContinuousCover=!1)),c.productId=n.productId,c.title=n.title,n.excess&&(c.hospitalId=n.excess.id),n.claimback&&(c.extrasId=n.claimback.id,c.extrasIdIndex=n.extrasIdIndex),"F"===a.scale||"P"===a.scale?s.childcount&&(s.child.length>s.childcount&&(s.child=s.child.splice(0,s.childcount)),delete s.childcount):(delete s.childcount,delete s.child),s.healthHistory&&"false"===s.healthHistory.hascurrentinsurance&&(delete s.healthHistory.currentfund,delete s.healthHistory.currentfundmemberid,delete s.healthHistory.transferconsent),s.healthHistory&&"false"!==s.healthHistory.hascurrentinsurance&&(s.healthHistory.currentfund=s.healthHistory.currentfund.customValue),s.offers&&s.offers.promoCode&&(s.offers.promoCode=s.offers.promoCode.code),s.personalDetails.phonenumberconsent){const e={Source__c:"JOIN",Name:`${s.personalDetails.firstname} ${s.personalDetails.lastname}`,Phone:s.personalDetails.phonenumber,Email:s.personalDetails.emailaddress};$e.updateLeadData(e,!0)}V()||(s.personalDetails.channel=G()),J()&&(s.clientName=J()),!V()&&s.personalDetails.employeeId&&this.setState({employeeId:s.personalDetails.employeeId});const d=!t.claimback&&i?"SUMMARY":"TEMPJOINED";return x(o.tempJoin,{quote:a,joinForm:s,cover:c}).then((e=>{this.setState({join:{status:d,data:{tempJoinData:e.tempJoinData,encData:e.encData,startDate:s.personalDetails.coverstartdate}},tracking:{gender:"Mr"===s.personalDetails.title?"male":"female",postcode:s.personalDetails.resaddress.postcode,promo:s.offers&&s.offers.promoCode?s.offers.promoCode:void 0},firstname:s.personalDetails.firstname,personalDetails:s.personalDetails,paymentDetails:{isDisabled:"SUMMARY"===d,ongoingPayment:{paymentFrequency:"monthly",paymentType:p.PAYROLL}}}),l.scrollIntoView()})).catch((e=>{this.setState({join:{status:this.isNonresident?"INIT":"TEMPJOINING",servererror:"ERROR"}}),l.scrollIntoView()}))}showSummary(e){const{cover:t,join:{data:a},isFullySubsidised:r}=this.state;Cr({fieldLabel:"EXTRAS"===t.productType&&"none"===t.claimback.val?"buy now":"next",name:g.JOIN,stepName:N.PREMIUM_PAYMENT});const i=d()(a.startDate,"DD/MM/YYYY").format("YYYY-MM-DD"),n=document.getElementsByClassName("progress-wrapper")[0],{tempJoinData:o}=a,{encData:s}=a,l=p.DD,c=e.payments.paymentfreq.toUpperCase(),m=function(e,t){const a=d()(e,"DD/MM/YYYY");return a.date()>=29&&"fortnightly"!==t.toLowerCase()?a.add(1,"months").set("date",1):a}(a.startDate,c),u={encdata:s,coverStart:i,isAmbulance:!1,ongoingPayment:{paymentType:l,paymentFrequency:c,paymentDay:"dd"===e.payments.paymentType?`${m.date()}`:""},acceptSpecialOffer:!0,payrollDeductionDetails:{employeeDepartment:""},salesFunnel:this.getTrackingInfo()};t.claimback&&(u.claimPaymentDetails={paymentType:"DIRECTDEPOSIT"}),"HOSPITAL"===t.productType?u.ongoingPayment.paymentType===p.DD&&(u.bankAccountDetails={accountName:e.payments.bankaccount.name,BSBNumber:e.payments.bankaccount.bsb,accountNumber:e.payments.bankaccount.number}):"EXTRAS"===t.productType&&"none"===t.claimback.val?(u.bankAccountDetails={accountName:e.bankaccount.name,BSBNumber:e.bankaccount.bsb,accountNumber:e.bankaccount.number},u.isAmbulance=!0,u.ongoingPayment={paymentType:p.DD,paymentFrequency:e.payments.paymentfreq,firstPaymentStartDate:m.format("YYYY-MM-DD")},e.bankaccount.bankaccount&&delete e.bankaccount.bankaccount):(u.ongoingPayment.paymentType===p.CC&&e.payments.creditcard&&(u.creditCardDetail
1s={cardNumber:e.payments.creditcard.number,expiryDate:e.payments.creditcard.expiredate,nameOnCard:e.payments.creditcard.nameoncard},u.bankAccountDetails={accountName:e.claimback.name,BSBNumber:e.claimback.bsb,accountNumber:e.claimback.number}),u.bankAccountDetails=r?{accountName:e.claimback.name,BSBNumber:e.claimback.bsb,accountNumber:e.claimback.number}:{accountName:e.payments.bankaccount.name,BSBNumber:e.payments.bankaccount.bsb,accountNumber:e.payments.bankaccount.number}),u.ongoingPayment.paymentType=p.PAYROLL,this.setState({paymentDetails:u,join:{status:"SUMMARY",data:{tempJoinData:o,encData:s}}}),n.scrollIntoView(),hr.joinFormMoveToNextStep(hr.joinFormScreenName.step_3),hr.joinFormCurrentStepScreen(hr.joinFormScreenName.step_4)}submitPayment(e){const{yourDetailState:t,price:a,paymentDetails:r,employeeId:i,join:{data:n},tracking:{gender:o,postcode:s,promo:l}}=this.state,{config:c}=this.props;if(t?.offers?.promoCode&&t?.personalDetails?.coverstartdate&&this.isPromoCodeNotValid(t?.offers?.promoCode,t.personalDetails.coverstartdate))return this.scrolltoEditRelaventDetails(".promo-container-main"),null;hr.joinBuyNowButton();const m=document.getElementsByClassName("progress-wrapper")[0];let u=r;if(u.isDisabled){const e=d()(n.startDate,"DD/MM/YYYY").format("YYYY-MM-DD");u={encdata:n.encData,coverStart:e,isAmbulance:!1,ongoingPayment:{paymentType:p.PAYROLL,paymentFrequency:"MONTHLY",paymentDay:""},acceptSpecialOffer:!0,payrollDeductionDetails:{employeeDepartment:"",employeeID:i},salesFunnel:this.getTrackingInfo()}}else u.payrollDeductionDetails.employeeID=i;const{partnerId:h}=JSON.parse(window.sessionStorage.getItem("visitorInfo"))||{};return h&&(u.additionalParamName3="Affliate ID",u.additionalParamValue3=h),x(c.urls.payment,u).then((e=>{const{errorCode:t,confirmationNumber:i}=e;t?(this.setState({join:{status:"SUMMARY",data:n,servererror:"ERROR"}}),m.scrollIntoView()):this.setState({join:{status:"JOINED",data:n,servererror:""}},(()=>{const{yourDetails:e,personalDetails:t}=this.state,d=e&&e.data&&e.data.healthHistory,{phonenumberconsent:p,phonenumber:h,emailaddress:v}=t||{};try{Lt.trackJoinFormLoad({eventName:ct.JOIN_COMPLETE,step:N.CONFIRMATION,productData:Tt(c.quote,a,c.cover),transactionId:i,paymentMethod:u.ongoingPayment.paymentType,visaType:c.isNonresident?"working":void 0,phone:p?h:"",email:v}),hr.confirmJoin(i,c.cover,c.quote,o,s,l,a,u.ongoingPayment.paymentFrequency,d),Ar.updateJoinStatus(ar.COMPLETED),window.removeEventListener("beforeunload",this.beforeunload)}catch(e){}const{tempJoinData:b}=n,{encData:f}=n,{paymentType:y}=r.ongoingPayment,{paymentFrequency:g}=r.ongoingPayment,C={tempJoinData:b,encData:f,payment_type:y,paymentFrequency:g,payment_likeSpecialOffer:!0,recipient_memberNumber:"WelcomeToMedibank",recipient_receiptNumber:"HappyCustomer"};x(c.urls.welcomeEmail,C).finally((()=>{$e.leadJoined()})),m.scrollIntoView()}))})).catch((e=>{this.setState({join:{status:"SUMMARY",data:n,servererror:"ERROR"}}),m.scrollIntoView()}))}goToStepOne(){this.setState({join:{status:"INIT"}})}goToStepTwo(){const{join:{data:e}}=this.state;this.setState({join:{status:"TEMPJOINED",data:e}}),hr.joinFormCurrentStepScreen(hr.joinFormScreenName.step_3)}stepYourDetails(){this.setState({join:{status:"INIT"}}),hr.joinFormCurrentStepScreen(hr.joinFormScreenName.step_1)}stepAGR(){this.setState({join:{status:"TEMPJOINING"}}),this._initSticky(),hr.joinFormCurrentStepScreen(hr.joinFormScreenName.step_2)}scrolltoEditRelaventDetails(e){this.stepYourDetails(),setTimeout((()=>{document.querySelector(e).scrollIntoView()}),500)}isPromoCodeNotValid(e,t){if(!e)return!1;const a=d()(t,"DD/MM/YYYY"),r=d()(e.end,"DD/MM/YYYY"),i=a.diff(r,"days");if(!isNaN(i)&&i>0){const t={promoCodeApplied:e.code,promoCodeStatus:"EXPIRED",promoDetails:{title:null,desc:null,endDate:e.end,promoType:e.promoType}};return this.setState({promoCodeError:t}),!0}return!1}resetPromoCodeError(){this.setState({promoCodeError:null})}render(){const{quote:e,cover:t,additional:a,join:r,price:i,hosToolTip:n,exToolTip:o,isFullySubsidised:s,paymentDetails:l,personalDetails:c,yourDetails:d,firstname:m,promoCodeError:u}=this.state,{yourDetailsForm:p,agrForm:h,config:{urls:v,promoDisplay:b,defaultCampaigns:f,isNonresident:y}}=this.props;return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("div",{className:"container column-container",children:[this.isNonresident&&(0,Ut.tZ)(Gr,{active:r.status,stepOne:this.goToStepOne.bind(this),stepTwo:this.goToStepTwo.bind(this),disableSecondStep:s&&!t.claimback}),!this.isNonresident&&(0,Ut.tZ)(Gr,{active:r.status,stepYourDetails:this.stepYourDetails.bind(this),stepAGR:this.stepAGR.bind(this),stepPayment:this.goToStepTwo.bind(this),disableSecondStep:s&&!t.claimback,residential:!0}),"ERROR"===r.servererror&&(0,Ut.tZ)("div",{className:"alert bg-neutral-2 m-t-4",role:"alert",id:"serverError",children:(0,Ut.BX)("div",{className:"alert-body",children:[(0,Ut.tZ)("h4",{className:"m-t-0",children:"An error has occurred."}),(0,Ut.tZ)("p",{className:"m-t-0",children:"We’re sorry, the server has encountered an error processing your request. Please try again."})]})}),(0,Ut.BX)("div",{"data-sticky-container":"",className:"relative",children:["JOINED"!==r.status&&"SUMMARY"!==r.status&&(0,Ut.BX)("div",{className:"row m-t-3 m-t-6-md flex-column-reverse flex-xl-row",children:["INIT"===r.status&&(0,Ut.tZ)("div",{className:"col-12 col-xl-8",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-xl-11",children:(0,Ut.tZ)(p,{quote:e,cover:t,price:i,additional:a,onSubmit:this.isNonresident?this.submitTempJoin.bind(this):this.submitYourDetails.bind(this),updateChildCount:this.updateChildCount.bind(this),updateChildFWACDetails:this.updateChildFWACDetails.bind(this),updateAge:this.updateAge.bind(this),updatePartnerAge:this.updatePartnerAge.bind(this),config:{serviceUrls:v,defaultCampaigns:f,promoDisplay:b},dualRateStatus:window.phi.dualrate.dualRateActive,promoCodeError:u,resetPromoCodeError:this.resetPromoCodeError})})})}),"TEMPJOINING"===r.status&&!this.isNonresident&&(0,Ut.tZ)("div",{className:"col-12 col-xl-8",children:(0,Ut.tZ)(h,{quote:e,cover:t,price:i,yourDetails:d,onSubmit:this.submitTempJoin.bind(this),channelbasedCallingNumbers:this.channelbasedCallingNumbers,scrolltoEditRelaventDetails:this.scrolltoEditRelaventDetails.bind(this),isSubResidential:"true"})}),"TEMPJOINED"===r.status&&"EXTRAS"===t.productType&&"none"===t.claimback.val&&(0,Ut.tZ)("div",{className:" col-12 col-xl-8",children:(0,Ut.tZ)(Kr,{price:i,quote:e,cover:t,isNonresident:y,startDate:r.data.startDate,onSubmit:this.showSummary.bind(this),dualRateStatus:window.phi.dualrate.dualRateActive})}),"TEMPJOINED"===r.status&&("EXTRAS"!==t.productType||"none"!==t.claimback.val)&&(0,Ut.tZ)("div",{className:" col-12 col-xl-8",children:(0,Ut.tZ)(Vr,{price:i,quote:e,cover:t,isNonresident:y,isFullySubsidised:s,onSubmit:this.showSummary.bind(this),dualRateStatus:window.phi.dualrate.dualRateActive})}),(0,Ut.BX)("div",{className:"col-12 col-xl-4",children:["INIT"===r.status&&(0,Ut.tZ)("div",{className:"d-xl-none m-b-3",children:(0,Ut.tZ)(si,{title:li.CORP})}),"TEMPJOINING"===r.status&&(0,Ut.BX)("div",{className:"d-xl-none",children:[(0,Ut.tZ)("h2",{className:"m-t-0 m-b-2",children:"Australian Government Rebate (AGR)"}),(0,Ut.tZ)("p",{className:"m-b-2",children:"Please have your Medicare details handy."})]}),"TEMPJOINED"===r.status&&(0,Ut.BX)("div",{className:"row d-xl-none m-b-2",children:[(0,Ut.tZ)("div",{className:"col-7 col-lg-10",children:(0,Ut.tZ)("h2",{className:"m-t-0",children:"Payment"})}),(0,Ut.BX)("div",{className:"col-5 col-lg-2 text-right",children:[(0,Ut.BX)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.91 15.94",className:"icon icon-sm",children:[(0,Ut.tZ)("title",{children:"Icon secure"}),(0,Ut.tZ)("path",{d:"M3.59 7.25V5.07a2.87 2.87 0 1 1 5.74 0v2.18zm9.32 1.09a1.08 1.08 0 0 0-1.08-1.09h-.33V5.07A5.07 5.07 0 0 0 6.5 0a5.07 5.07 0 0 0-5 5.07v2.18h-.42A1.08 1.08 0 0 0 0 8.33v6.52a1.08 1.08 0 0 0 1.08 1.09h10.75a1.08 1.08 0 0 0 1.08-1.09z",fill:"
1currentColor"}),(0,Ut.tZ)("path",{d:"M3.59 7.25V5.07a2.87 2.87 0 1 1 5.74 0v2.18zm9.32 1.09a1.08 1.08 0 0 0-1.08-1.09h-.33V5.07A5.07 5.07 0 0 0 6.5 0a5.07 5.07 0 0 0-5 5.07v2.18h-.42A1.08 1.08 0 0 0 0 8.33v6.52a1.08 1.08 0 0 0 1.08 1.09h10.75a1.08 1.08 0 0 0 1.08-1.09z",fill:"currentColor"})]}),(0,Ut.tZ)("p",{className:"d-inline p-l-1 p-t-3",children:(0,Ut.tZ)("b",{children:"Secure"})})]})]}),!this.isNonresident&&(0,Ut.tZ)(aa,{price:i,add:a,cover:t,quote:e,hospitalToolTip:n,extrasToolTip:o,dualRateActive:window.phi.dualrate.dualRateActive,dualRateToggleHandler:this.dualRateHandlerJoin.bind(this),dualRateTooltip:window.phi.dualrate.rateChangeDesc}),this.isNonresident&&(0,Ut.tZ)(ra,{price:i,add:a,cover:t,hospitalToolTip:n,extrasToolTip:o,quote:e,dualRateActive:window.phi.dualrate.dualRateActive,dualRateToggleHandler:this.dualRateHandlerJoin.bind(this),dualRateTooltip:window.phi.dualrate.rateChangeDesc})]})]}),"SUMMARY"===r.status&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(Jr,{data:{personalDetails:c,paymentDetails:l,price:i,cover:t,quote:e,isFullySubsidised:s},isNonresident:y,onSubmit:this.submitPayment.bind(this)})})}),"JOINED"===r.status&&(0,Ut.tZ)(Hr,{firstname:m,successRedirect:v.successRedirect,isNonresident:y})]})]}),"JOINED"!==r.status&&(0,Ut.tZ)("div",{className:"bg-highlight-2",children:(0,Ut.tZ)("div",{className:"container image-text-wrapper",children:(0,Ut.BX)("div",{className:"row",children:[(0,Ut.BX)("div",{className:"col-10 offset-1 col-sm-7 offset-sm-0 col-md-6 align-self-center text-white ",children:[(0,Ut.tZ)("h3",{className:"text-white",children:"30 days cooling off period"}),(0,Ut.BX)("p",{children:["If you're not completely happy with your cover in the first 30 days of joining, let us know and and we'll transfer you to a more suitable cover or refund your premiums (as long as no claims have been made)."," "]})]}),(0,Ut.tZ)("div",{className:"col-10 offset-1 col-sm-5 offset-sm-0 col-md-5 offset-md-1 image text-center",children:(0,Ut.tZ)("img",{src:"/content/dam/retail/health/images/overseas.png",className:"img-fluid",alt:"30 days cooling off period"})})]})})})]})}}const di=ci,mi=({label:e,placeholder:t,input:a,disabled:r,maxLength:i,type:n,onkeypressfun:o,showspinner:s,meta:{touched:l,error:c}})=>{const d=Ot()({"input-group":!0,"d-none":"hidden"===n,"input-group-alert":l&&c}),m=Ot()({"input-group-alert d-inline-block":l&&c});return(0,Ut.BX)("div",{className:d,children:[(0,Ut.tZ)("label",{htmlFor:a.name,children:e}),(0,Ut.tZ)("input",{...a,type:"tel",placeholder:t,"aria-describedby":e,id:a.name,disabled:r,className:m,maxLength:i,onKeyDown:o,autoComplete:"tel"}),s&&(0,Ut.tZ)("div",{className:"spinner d-inline-block"}),l&&c&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${a.name}`,children:c})]})},ui=({id:e,label:t,direction:a,toolTipDesc:r,input:i,opts:n,meta:{touched:o,error:s}})=>{let l="input-group";o&&s&&(l+=" input-group-alert");const c=a?`btn-group btn-group-options ${a}`:"btn-group btn-group-options";return(0,Ut.BX)("div",{className:l,children:[t?(0,Ut.BX)("label",{children:[t," ",r?(0,Ut.tZ)(Xt,{content:r}):""]}):"",(0,Ut.tZ)("div",{className:c,children:n.map((e=>(0,Ut.BX)("label",{className:"btn btn-lg btn-group-radio",htmlFor:`${i.name}_${e.name}`,children:[(0,Ut.tZ)("input",{...i,type:"radio",id:`${i.name}_${e.name}`,value:e.val,defaultChecked:e.val===i.value}),(0,Ut.tZ)("span",{className:"input-label-wrapper",children:e.name})]},`${i.name}_${e.name}`)))}),o&&s&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${i.name}`,children:s})]})},pi=({input:e,label:t,placeholder:a,maxLength:r,meta:{touched:i,error:n}})=>{let o="input-group",s="";return i&&n&&(o+=" input-group-alert",s=" input-group-alert d-inline-block"),(0,Ut.BX)("div",{className:o,children:[(0,Ut.tZ)("label",{htmlFor:e.name,children:t}),(0,Ut.tZ)("input",{...e,type:"text",placeholder:a,"aria-describedby":t,id:e.name,maxLength:r,className:s}),i&&n&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${e.name}`,dangerouslySetInnerHTML:{__html:n}})]})};class hi extends i().Component{constructor(e){super(e);const{partner:t}=this.props;this.DOB_FORMAT="DD/MM/YYYY",this.LHC_CUTOFF_DATE=d()("01/07/1934",this.DOB_FORMAT,!0),this.requiredDOB=e=>e?void 0:"We need your date of birth.",this.requiredPartnerDOB=e=>e?void 0:"We need your partner's date of birth.",this.required=t?this.requiredPartnerDOB:this.requiredDOB,this.getAge=e=>{const t=d()(e,this.DOB_FORMAT,!0);return t.isValid()?d()().diff(t,"years"):null},this.isBeforeLHCCutOff=e=>{const t=d()(e,this.DOB_FORMAT,!0);return!!t.isValid()&&t.isSameOrBefore(this.LHC_CUTOFF_DATE)}}render(){const{additonal:e,partner:t,updateAge:a}=this.props;let r;return t&&(r="My partner's had continuous private hospital insurance since 1 July after their 31st birthday"),!t&&(r="I've had continuous private hospital insurance since 1 July after my 31st birthday"),(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-6 col-md-3",children:(0,Ut.tZ)(na,{fieldName:"hadContinuousCover",children:e=>(0,Ut.tZ)(s.Field,{label:"Date of birth",name:"dob",placeholder:this.DOB_FORMAT,component:pi,maxLength:"10",...ha,onChange:t=>{const r=this.getAge(t.target.value);r&&a(r,e,t.target.value)},validate:[this.required,_a]})})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(na,{fieldName:"dob",children:t=>{const i=this.getAge(t);return i&&i>30&&!this.isBeforeLHCCutOff(t)&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)(s.Field,{name:"hadContinuousCover",onChange:e=>{a(i,e.target.checked,t)},component:jr,label:r}),(0,Ut.tZ)(na,{fieldName:"hadContinuousCover",children:t=>!t&&(0,Ut.BX)("p",{className:"m-t-0",children:["Lifetime Health Cover (LHC) is a Government initiative designed to encourage people to take out hospital insurance. ",(0,Ut.tZ)("br",{}),"If you don't hold private hospital insurance from 1 July after your 31st birthday you may\n                              pay an extra 2% on your premium for each year you go without hospital insurance."," ",(0,Ut.tZ)("br",{}),"A ",e&&e.lhc,"% LHC loading has been added to your premium."]})})]})}})})})]})}}const vi=hi,bi=({id:e,name:t,label:a,type:i,placeholder:n,maxLength:o,error:s,onChange:l,onBlur:c,stepName:d,...m})=>{let u="input-group",p="";return s&&(u=`${u} input-group-alert`,p=" input-group-alert d-inline-block"),(0,r.useEffect)((()=>{""!==p&&d&&"string"==typeof s&&Dr({message:s,type:vr.INLINE_ERROR},{fieldLabel:a,name:g.JOIN,stepName:d})}),[p]),(0,Ut.BX)("div",{className:u,children:[(0,Ut.tZ)("label",{htmlFor:e,children:a}),(0,Ut.tZ)("input",{...m,type:i||"text",placeholder:n,"aria-describedby":a,id:e,name:t,value:m.value,onChange:l,maxLength:o,className:p,onBlur:e=>{c&&c(e),d&&Cr({fieldLabel:a,name:g.JOIN,stepName:d})}}
1),s&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${e}`,children:s})]})};bi.propTypes={id:xt().string.isRequired,name:xt().string.isRequired,label:xt().string.isRequired,type:xt().string,placeholder:xt().string,maxLength:xt().number,error:xt().string,onChange:xt().func.isRequired,input:xt().shape},bi.defaultProps={type:"text",placeholder:"",maxLength:100,error:"",input:[]};const fi=bi,yi=({id:e,label:t,opts:a,input:i,value:n,disabled:o,error:s,onChange:l,tooltip:c,stepName:d})=>{let m="input-group select",u="";s&&(m+=" input-group-alert",u=" input-group-alert d-inline-block"),(0,r.useEffect)((()=>{""!==u&&d&&"string"==typeof s&&Dr({message:s},{fieldLabel:t,name:g.JOIN,stepName:d})}),[u]);return(0,Ut.BX)("div",{className:m,children:[(0,Ut.BX)("div",{className:"relative",children:[(0,Ut.BX)("label",{children:[(0,Ut.tZ)("label",{htmlFor:e}),t," ",c?(0,Ut.tZ)(Xt,{content:c,heading:d,label:t}):""]}),(0,Ut.tZ)("select",{"aria-describedby":t,id:e,...i,value:n||"",disabled:o,onChange:e=>{d&&Cr({fieldLabel:t,name:g.JOIN,stepName:d}),l&&l(e)},children:a.map(((e,t)=>(0,Ut.tZ)("option",{value:e.val,children:e.name},t)))}),(0,Ut.tZ)("span",{className:"select-chevron"})]}),s&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${e}`,children:s})]})};var gi=a(6694),Ni=a(2734),Ci=a(22233),Di=a(72642),Ei=a(71508),Si=a(22715);const wi={BRAND:"MPL",CONSUMER_SYSTEM:"RETAIL",CHANNEL:"Web",URL:"https://api.int.ha-medibank.com",MEDI_TOKEN:"eyJraWQiOiJLajRnWmdQZGQxV2swbFdzcUIxUVZBaDF4SnZXMjFZRTh2SFFWbmNSOGJvIiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULk1iaW1tdVVNVFVMSFFDZzJwTGV0WkxIQ1JDb0FraXNTOEgwN3FQQXJxZGciLCJpc3MiOiJodHRwczovL21lZGliYW5rLm9rdGEuY29tL29hdXRoMi9hdXMyY2JyZXdjQm5Gem5nMTNsNyIsImF1ZCI6ImFwaTovL3NwYXJrLmludGVncmF0aW9uIiwiaWF0IjoxNzAwMTE0MDcyLCJleHAiOjE3MDAxMTc2NzIsImNpZCI6IlNQQVJLQVBJQ09OU1VNRVJSRVRBSUwiLCJzY3AiOlsiYWRkcmVzcy5yZWFkIl0sInN1YiI6IlNQQVJLQVBJQ09OU1VNRVJSRVRBSUwifQ.bjX7PY30n6vzHZDX6jRW6eHSzgE8cbGG-1KLwCGsWPo3iwnRLDF-2My3BWNieKxIlK0B2peM8Mw8gkgZI1_SM-BHbHO4mr-a3lp9e2VyvhV-7YiQL-g9rIMtMaqiKSrE1xx4ZUPBsvAo0e5lZ7-GlHcKVeKAepayygupr27J14uzpmxnk6SENmP3lOUlQ-VelE5IW497jHBp0i0k1P4SvEpiM8ETku4BI6I-o8nTQmySXbvOvxMhJarzEroLMVvrLEGDzFmOlw_wqHpxJI734-5opFSM_fWSCpwM-huCNk8NE8v2BtYPX7DO8oGEdJdvefWoHwsPN3OFBqoT-foE8g",NONPROD_TOKEN:"eyJraWQiOiIxdlRCM0dLRWdRVEIzclg5TVhlM2RtNUZsQ2tjQ0hpTzFXSEVjSUpSSWY4IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULkQ2SUh0by1GZjdxQ3pvRVNRazE2NUlJUmU5OTd1Nnh0QjlKdmI5R0Znb0EiLCJpc3MiOiJodHRwczovL21lZGliYW5rcHJlcHJvZC5va3RhcHJldmlldy5jb20vb2F1dGgyL2F1czFjd2tyNmxlMk9OVFQ4MGg4IiwiYXVkIjoiYXBpOi8vc3BhcmsuaW50ZWdyYXRpb24iLCJpYXQiOjE3MDAxMTU5MzQsImV4cCI6MTcwMDExOTUzNCwiY2lkIjoiU1BBUktBUElDT05TVU1FUlJFVEFJTCIsInNjcCI6WyJhZGRyZXNzLnJlYWQiXSwic3ViIjoiU1BBUktBUElDT05TVU1FUlJFVEFJTCJ9.IQsDV7dxjW9EzsVRd0XwG8-T6rmR_kydPTnCqqCrQEQr5EMNasBSmMMl_JAaPdt79RA_gNP0uaHHpZt5489wKMbEF7BzV4vm150m7VQN17M7X8ErZrezbJAGUJvXV2ktr3o8Gl_Tu7JoeN-NMmOCSc4UxFZm0On__V8WQBSERc-UhSoer_E15oG3BNl1TWnVRJFjowkOuErA2MRE0aqT4o7duN0bowKVhojfNwOH7oQmodvznmTghMQMB5mREiOzODW3qpybbum9FD-ZRPUsgxS3zJkJUrdgV6aNopBtVBhtvCU8C-zNRssTe9wCjPyeKLfVkjGrzN2FPMsQc0W0rg",API_URL_ERROR_MSG:"apiUrl is not configured at AEM"},Ti=e=>({"Content-Type":"application/json",Accept:"application/json","X-channel":wi.CHANNEL,"X-Consumer-System":wi.CONSUMER_SYSTEM,"X-brand":wi.BRAND,"X-Api-Consumer-Systemtoken":e?wi.MEDI_TOKEN:wi.NONPROD_TOKEN});var Zi=a(10185);const Ai=e=>(0,Zi.Z)({palette:{mode:e.palette.mode},components:{MuiAutocomplete:{styleOverrides:{paper:{boxShadow:"none",borderRadius:0,border:"1px solid #d8dbe3",borderTop:0},listbox:{padding:0,maxHeight:"none",".MuiAutocomplete-option":{paddingTop:"12px",paddingBottom:"12px"}},noOptions:{padding:0},root:{input:{borderRadius:0,outline:"none",border:"none",height:"32px"}}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:0,"&:hover .MuiOutlinedInput-notchedOutline":{border:"2px solid #596dd4"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{border:"2px solid #e62e43"}}}},MuiFormHelperText:{styleOverrides:{root:{color:"#e62e43",fontSize:"14px",fontWeight:400,marginLeft:0}}}}}),Ii={color:"#4054b8",padding:0,fontSize:"16px",textTransform:"none",justifyContent:"flex-start","&:hover":{background:"none"},fontWeight:400},Pi="Address Not Listed, Manually enter address",Mi="Type address e.g. 720 Bourke Street, Docklands V
1IC 3008",_i="Could not validate address",Ri=()=>(0,Ut.tZ)(Di.Z,{type:"button",disableRipple:!0,disableFocusRipple:!0,fullWidth:!0,variant:"text",sx:Ii,children:Pi}),Li=({addressUrl:e,defaultValue:t="",defaultOptions:a=[],loadingStyle:i,handleNoAddressClick:n,fixedState:o,quoteHref:s,error:l,handleAddressValidate:c,trackAddressUpdated:d,trackAddressError:m})=>{const u=(0,Ni.Z)(),[p,h]=(0,r.useState)(t),[v,b]=(0,r.useState)(t),[f,y]=(0,r.useState)(a),[g,N]=(0,r.useState)(!1),[C,D]=(0,r.useState)(!1),[E,S]=(0,r.useState)(!1),[w,T]=(0,r.useState)(void 0),Z=async t=>{try{N(!0);const a=await(async(e,t)=>{if(!e)throw new Error(wi.API_URL_ERROR_MSG);try{const r=wi.URL===e,i=(a=t.charAt(0),/^[a-zA-Z0-9]+( [a-zA-Z0-9]*)*$/.test(a)?t:encodeURIComponent(t)),n=await fetch(`${e}/v1/address/search?addressformat=natural&limit=5&address=${i}`,{headers:Ti(r)});if(n.ok)return await n.json()||{};throw new Error(`Call failed Error code ${n.status} returned with msg ${n.statusText}`)}catch(e){throw e}var a})(e,t),r=a.result||[];y(r)}catch(e){y([])}finally{N(!1)}};return(0,r.useEffect)((()=>{if(p){(async()=>{N(!0);try{const t=await(async(e,t)=>{if(!e)throw new Error(wi.API_URL_ERROR_MSG);try{const a=wi.URL===e,r=await fetch(`${e}/v1/address/validate`,{headers:Ti(a),method:"POST",body:JSON.stringify({formattedAddress:t})});if(r.ok){const e=await r.json(),{verdict:{status:t}}=e;if("Valid"!==t)throw new Error("Address not valid");return e}throw new Error(`Call failed Error code ${r.status} returned with msg ${r.statusText}`)}catch(e){throw e}})(e,p),{address:{structuredAddress:a}}=t,{addressLine2:r,postcode:i,suburb:n,state:l}=a;r?.includes(i)&&r?.includes(n)&&r?.includes(l)&&(a.addressLine2=""),o&&a.state!==o?(S(!0),T((0,Ut.BX)("span",{children:["The address you have selected does not match the state you selected in your quote. if you would like to select a different state get a ",(0,Ut.tZ)("a",{href:s,children:"new quote"})]})),c(!1,p,{})):c(!0,p,a)}catch(e){D(!0),T(_i),c(!1,p,{})}finally{N(!1)}})()}else c(!1,"",{})}),[p]),(0,r.useEffect)((()=>{m&&(C?m(_i):E?m("the address you have selected does not match the state you selected in your quote."):l&&m(l))}),[C,E,l]),(0,Ut.tZ)(Ci.Z,{theme:Ai(u),children:(0,Ut.tZ)(gi.Z,{openOnFocus:!0,selectOnFocus:!1,placeholder:Mi,fullWidth:!0,value:p,inputValue:v,disablePortal:!0,clearOnBlur:!1,options:f,onInputChange:(e,t,a)=>{D(!1),S(!1),T(void 0),b(t),t.length>=5&&"input"===a?Z(t):y([])},onChange:(e,t,a)=>{"selectOption"!==a||t!==Pi?"selectOption"!==a&&"blur"!==a||(h(t),d&&d()):n()},onClose:(e,t)=>{"blur"===t&&(h(v),d&&d())},onFocus:()=>{v?.length>=5?Z(v):y([])},filterOptions:e=>v?.length>0?[...e,Pi]:[],noOptionsText:null,renderOption:(e,t,a,r)=>(0,Ut.tZ)(Ei.Z,{sx:{borderRadius:0,margin:"0"},component:"li",...e,children:r.getOptionLabel(t)===Pi?(0,Ut.tZ)(Ri,{}):r.getOptionLabel(t)}),renderInput:e=>(0,Ut.tZ)(Si.Z,{...e,variant:"outlined",InputProps:{...e.InputProps,endAdornment:g?(0,Ut.tZ)("div",{className:"spinner",style:i}):null},placeholder:Mi,error:C||E||!!l,helperText:w||l})})})};class ki extends i().Component{switchToAuto=e=>{e.preventDefault(),this.props.input.onChange({...this.props.input.value,type:"auto"})};handleNoAddressClick=()=>{this.props.input.onChange({...this.props.input.value,type:"manual"})};updateAddressState=(e,t,a)=>{const{input:r,fixedState:i}=this.props;if(e){const{addressLine1:e,addressLine2:i,postcode:n,suburb:o,state:s}=a,l={type:r.value.type,complete:t,postcode:n,suburb:o,state:s,addressLine1:e,addressLine2:i};r.onChange(l)}else r.onChange({state:i||r.value.state,type:r.value.type})};trackAddressUpdated=()=>{const{label:e}=this.props;Cr({fieldLabel:e,name:g.JOIN,stepName:N.YOUR_DETAILS})};trackAddressError=e=>{const{label:t}=this.props;Dr({message:e},{fieldLabel:t,name:g.JOIN,stepName:N.YOUR_DETAILS})};render(){const{label:e,input:t,meta:{touched:a,error:r},fixedState:i,addressUrl:n}=this.props;let o="input-group input-with-icon-right autocomplete-container";return a&&r&&r.complete&&(o+=" input-group-alert"),(0,Ut.BX)(Ut.HY,{children:["manual"===t.value.type&&(0,Ut.tZ)("div",{className:"row m-t-2-lg",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.BX)("a",{href:"#",onClick:this.switchToAuto,children:[(0,Ut.tZ)("span",{className:"d-inline-block v-a-bottom",children:(0,Ut.tZ)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg",className:"icon icon-stroke icon-sm text-black",children:(0,Ut.BX)("g",{transform:"translate(12 12)",stroke:"currentColor",fill:"none",fillRule:"evenodd",children:[(0,Ut.tZ)("ellipse",{cx:"16.13",cy:"16.51",rx:"16.13",ry:"16.51"}),(0,Ut.tZ)("path",{d:"M40 40L28.387 27.937"})]})})}),"Search your address using address lookup"]})})}),"auto"===t.value.type&&(0,Ut.tZ)("div",{className:"row m-t-2",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.BX)("div",{className:o,children:[(0,Ut.tZ)("label",{htmlFor:"MuiAutocomplete-input",children:e}
1),(0,Ut.tZ)(Li,{addressUrl:n,loadingStyle:{top:"1rem"},defaultValue:t.value.complete||"",fixedState:i,quoteHref:$(`/health-insurance/cover/${this.props.cover.productId}`),handleNoAddressClick:this.handleNoAddressClick,error:a&&r?.complete,handleAddressValidate:this.updateAddressState,trackAddressUpdated:this.trackAddressUpdated,trackAddressError:this.trackAddressError})]})})}),"manual"===t.value.type&&(0,Ut.tZ)("div",{className:"row m-t-2",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)(fi,{id:`${t.name}_addressLine1`,name:`${t.name}_addressLine1`,label:"Address Line1",error:r&&r.addressLine1,onChange:e=>t.onChange({...t.value,addressLine1:e.target.value,complete:null}),value:t.value.addressLine1?t.value.addressLine1:"",stepName:N.YOUR_DETAILS}),(0,Ut.tZ)(fi,{id:`${t.name}_addressLine2`,name:`${t.name}_addressLine2`,label:"Address Line2",error:r&&r.addressLine2,onChange:e=>t.onChange({...t.value,addressLine2:e.target.value,complete:null}),value:t.value.addressLine2?t.value.addressLine2:"",stepName:N.YOUR_DETAILS}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(fi,{id:`${t.name}_suburb`,name:`${t.name}_suburb`,label:"Suburb",onChange:e=>t.onChange({...t.value,suburb:e.target.value,complete:null}),error:r&&r.suburb,value:t.value.suburb?t.value.suburb:"",stepName:N.YOUR_DETAILS})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12 col-md-6",children:[i&&(0,Ut.tZ)(fi,{id:`${t.name}_state`,name:`${t.name}._state`,label:"State",error:r&&r.state,value:i,disabled:!0}),!i&&(0,Ut.tZ)(yi,{id:`${t.name}_state`,name:`${t.name}._state`,label:"State",error:r&&r.state,value:t.value.state?t.value.state:"",onChange:e=>t.onChange({...t.value,state:e.target.value,complete:null}),opts:[{val:"NSW",name:"New South Wales"},{val:"ACT",name:"Australian Capital Territory"},{val:"NT",name:"Northern Territory"},{val:"QLD",name:"Queensland"},{val:"SA",name:"South Australia"},{val:"TAS",name:"Tasmania"},{val:"VIC",name:"Victoria"},{val:"WA",name:"Western Australia"}],stepName:N.YOUR_DETAILS})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-6",children:(0,Ut.tZ)(fi,{id:`${t.name}_postcode`,name:`${t.name}_postcode`,label:"Post Code",maxLength:4,error:r&&r.postcode,onChange:e=>t.onChange({...t.value,postcode:e.target.value,complete:null}),value:t.value.postcode?t.value.postcode:"",stepName:N.YOUR_DETAILS})})})]})})]})}}const Oi=ki;class Fi extends i().Component{constructor(e){super(e),this.requiredDOB=e=>e?void 0:"We need your date of birth.",this.DOB_FORMAT="DD/MM/YYYY",this.clientDomains=z(),this.residentialAddress=e=>{const t=/^[a-zA-Z\s]+$/,a=/^[0-9a-zA-Z/\-,\s]+$/,r=/^[0-9]{4}$/;if("manual"==e.type){const i={};let n=!1;return e.addressLine1?a.test(e.addressLine1)||(i.addressLine1="Please try again. You've entered invalid characters.",n=!0):(i.addressLine1="This field is required.",n=!0),e.addressLine2&&!a.test(e.addressLine2)&&(i.addressLine2="Please try again. You've entered invalid characters.",n=!0),e.suburb||(i.suburb="This field is required.",n=!0),t.test(e.suburb)||(i.suburb="Please try again. You've entered invalid characters.",n=!0),e.postcode?r.test(e.postcode)||(i.postcode="Please try again. Your postcode must be four digits.",n=!0):(i.postcode="This field is required.",n=!0),n?i:null}if(!e.complete)return{complete:"This field is required."}},this.confirmEligiblityLbl=`I can confirm I am an eligible employee of ${Q()}`}validEmail=e=>{const t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(this.clientDomains&&this.clientDomains.length>0){if(this.domainValidation(e)&&e.match(t))return;return`Please try again. The email you've entered doesn't look right. Your email should look something like this John.doe@${this.clientDomains[0].toLowerCase()}`}if(!e.match(t))return"Please try again. The email you've entered doesn't look right. Your email should look something like this [email protected]"};domainValidation=e=>
1{const t=this.clientDomains.toLocaleString().toLowerCase().split(","),a=e.split("@");return!!(a.length>1&&t.includes(a[a.length-1].toLowerCase()))};render(){const{quote:e,additional:t,updateAge:a,cover:r,serviceUrls:i}=this.props;return(0,Ut.BX)(sa,{title:"Your Personal Details",targetClass:"personal-details-wpr",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-8",children:(0,Ut.tZ)(s.Field,{label:"Title",name:"title",direction:"flex-row",component:ui,opts:[{name:"Mr",val:"Mr"},{name:"Mrs",val:"Mrs"},{name:"Miss",val:"Miss"},{name:"Ms",val:"Ms"}],selectedVal:"",validate:[Ta]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Given names(as it appears on your Medicare card)",name:"firstname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Last name",name:"lastname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Gender",name:"gender",direction:"flex-row",toolTipDesc:"This information is required by Medicare for your AGR application.",component:ui,opts:[{name:"Female",val:"Female"},{name:"Male",val:"Male"}],selectedVal:"",validate:[Ta]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-sm-6 phone-anchor",children:(0,Ut.tZ)(s.Field,{label:"Phone number (mobile preferred)",name:"phonenumber",placeholder:"e.g. 0412 345 678",component:mi,validate:[Aa,Za],...da})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(s.Field,{name:"phonenumberconsent",label:"By providing my telephone number, I consent to Medibank contacting me about health insurance cover.",component:jr})})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12 col-md-10",children:(0,Ut.tZ)(s.Field,{label:"Email address",name:"emailaddress",placeholder:"",component:la,validate:[Ta,this.validEmail]})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0 m-b-2",children:"By providing your email address, you're agreeing for us to email you important information about your membership and information on other products and services that may be of interest. If you'd rather we not email you, please let us know once your membership has been processed."})})]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12 col-md-10",children:[(0,Ut.tZ)(s.Field,{label:"Residential address",name:"resaddress",placeholder:"",component:Oi,cover:r,fixedState:e.state,addressUrl:i.addressAPI,validate:[this.residentialAddress]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(s.Field,{name:"samepostaladdress",component:jr,label:"My postal address is same as my residential address"})})}),(0,Ut.tZ)(na,{fieldName:"samepostaladdress",children:e=>!e&&(0,Ut.tZ)(s.Field,{label:"Postal address",name:"postaddress",placeholder:"",component:Oi,cover:r,addressUrl:i.addressAPI,validate:[this.residentialAddress]})})]})}),"EXTRAS"!=this.props.productType&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(vi,{quote:e,additonal:t,updateAge:a})})}),"EXTRAS"==this.props.productType&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Date of birth",name:"dob",placeholder:this.DOB_FORMAT,component:pi,maxLength:"10",...ha,onBlur:e=>{const t=Z(e.target.value);t&&a(t,!0,e.target.value)},validate:[this.requiredDOB,_a]})})}),("NSW"==e.state||"ACT"==e.state)&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.BX)("p",{className:"m-t-0",children:["If you are a resident of NSW or ACT and hold a concession card, you may be eligible to receive a discount on your premium. In order to be eligible each person listed on the policy needs to be listed on the concession card. Call us on"," ",(0,Ut.tZ)("a",{href:"tel:1300 763 422",className:"no-underline","data-analytics-title":"concession card holders","data-analytics-component":"subs personal details",children:"1300 763 422"})," ","to find out more."]})})}),(0,Ut.BX)("div",{className:"m-t-4",children:[K()&&(0,Ut.tZ)(s.Field,{name:"deductPayroll",label:"Deduct from payroll",component:jr}),(0,Ut.tZ)(s.Field,{name:"isEmployee",label:this.confirmEligiblityLbl,validate:[Ia],component:jr}),"subsidised"===G().toLowerCase()&&(0,Ut.tZ)(s.Field,{label:"Payroll ID/employee number",name:"employeeId",placeholder:"",component:la,maxLength:"50",validate:[Ta]})]})]})}}const Bi=Fi;class xi extends i().Component{constructor(e){super(e)}render(){let{id:e,label:t,textLabel:a,opts:r,input:i,maxLength:n,customSelectValidate:o}=this.props;const{isCustom:l,value:c,customValue:d}=i.value;return r=r.concat({val:"Other",name:"Other"}),(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)(s.Field,{id:`${i.name}_select`,name:`${i.name}_select`,label:t,value:c,validate:o||Ta,component:Xa,onChange:e=>{"Other"===e.target.value?i.onChange({isCustom:!0,value:"Other",customValue:""}):i.onChange({isCustom:!1,value:e.target.value,customValue:e.target.value})},opts:r}),l&&(0,Ut.tZ)(s.Field,{id:`${i.name}_custom`,name:`${i.name}_custom`,label:a,validate:[Ta,Ea],maxLength:n,onChange:e=>i.onChange({isCustom:!0,value:"Other",customValue:e.target.value}),value:d,placeholder:"",component:la})]})}}const Yi=xi;class Ui extends i().Component{constructor(e){super(e),this.requiredFundName=(e,t)=>
1t.healthHistory.hascurrentinsurance&&!e?"We need to know your current fund so we can organise the transfer for you.":void 0,this.requiredTransferConsent=(e,t)=>t.healthHistory.hascurrentinsurance&&!e?"We need your authorisation.":void 0}render(){return(0,Ut.BX)(sa,{title:"Your health insurance history",children:[(0,Ut.tZ)("label",{htmlFor:"healthhistory.hascurrentinsurance_Yes",className:"m-b-1 d-inline-block",children:"Do you currently have health insurance?"}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{id:"hascurrentinsurance",name:"hascurrentinsurance",component:ui,opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],selectedVal:"false",direction:"flex-row"})})}),(0,Ut.tZ)(na,{fieldName:"hascurrentinsurance",children:e=>"true"===e&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{component:Yi,id:"currentfund",name:"currentfund",label:"Your current private health insurance fund",textLabel:"Other fund n
1ame",maxLength:50,validate:Ta,customSelectValidate:Pa,opts:[{val:"",name:"Please select one"},{val:"BUPA",name:"BUPA"},{val:"NIB",name:"NIB"},{val:"ahm (Australian Health Management)",name:"ahm (Australian Health Management)"},{val:"HCF",name:"HCF"},{val:"Australian Unity",name:"Australian Unity"},{val:"GMHBA",name:"GMHBA"},{val:"Health Insurance Fund Of WA",name:"Health Insurance Fund Of WA"},{val:"CUA",name:"CUA"},{val:"Frank Health Insurance",name:"Frank Health Insurance"}]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{id:"currentfundmemberid",label:"Membership number (optional)",name:"currentfundmemberid",placeholder:"",maxLength:50,component:la,validate:Da})})}),(0,Ut.tZ)(s.Field,{id:"transferconsent",name:"transferconsent",placeholder:"",component:jr,validate:[this.requiredTransferConsent],label:"As the policy holder with my current health insurance fund, I authorise Medibank to cancel the membership with my current health fund, and to request a transfer certificate for me and any other people on my membership."}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"small m-t-0",children:"Please check the box above to allow Medibank to cancel your membership with your current health fund and obtain a transfer certificate. A transfer certificate will allow Medibank to waive waiting periods that you have already served and update any Lifetime Health Cover loading that you may be required to pay. If you do not check the box above, you will need to supply Medibank with a transfer certificate from your health fund before any of these updates can occur. This could lead to a delay in you being able to claim under your new cover."})})})]})})]})}}const qi=Ui,Xi="Please enter a promo code",Vi="Could not verify the promo code",Hi="Promo code not applicable.",ji="please review your policy start date to receive this offer, or remove the promotion or referral code to proceed.";class $i extends i().Component{constructor(e){super(e);const t=Date.now();this.state={promoCodeStatus:null,analytics:{timestamp:t,sequenceId:`${t}${Math.floor(1e10*Math.random())}`},promoDetails:null},this.fieldTrackingData={fieldLabel:e.label,name:g.JOIN,stepName:N.YOUR_DETAILS}}static getDerivedStateFromProps(e,t){const{promoCodeError:a,input:r,resetPromoCodeError:i}=e;if(a&&a.promoCodeStatus!==t.promoCodeStatus){const{promoCodeApplied:e,promoDetails:t,promoCodeStatus:n}=a;return r.onChange({code:e,title:"",highlight:"",desc:"",additionalTerms:"",end:t.endDate,promoType:""}),i&&i(),{promoCodeStatus:n,promoApplied:e,promoDetails:t}}return null}checkRequired(){const{promoApplied:e}=this.state;e||this.setState({promoCodeStatus:"BLANK"}),Dr({message:Xi},this.fieldTrackingData)}applyAnalytics(e){const{analytics:t,promoDetails:a,promoCodeStatus:r}=this.state;hr.applyPromotionCode(t,a?.promoCode,r,e)}AnalyticsForRemoveBtn(e){const{analytics:t}=this.state;hr.removeMemberNumber(t,e)}applyPromoCode(){const{promoApplied:e}=this.state,{productId:t,campaignUrl:a,coverStartDate:r,input:i}=this.props;let n=`${a}?promoApplied=${e}&policyStartDate=${r}`;V()||(n=`${n}&client=${J()}&channel=${G()}`),this.setState({promoCodeStatus:"CHECKING"},(()=>{var e,a;(e=n,fetch(e,{headers:a||{"content-type":"application/json"},method:"GET"}).then((e=>{if(200===e.status||400===e.status||403===e.status)return e.json();throw new Error(`Call failed Error code ${e.status} returned with msg ${e.statusText}`)}))).then((e=>{const a=e.endDate?e.endDate:"",n=e.eligibleRetailProducts?e.eligibleRetailProducts:[],o=e.eligibleIncProducts?e.eligibleIncProducts:[],s=e.validation?e.validation.code:"",l=n.includes(t)||o.includes(t)||"SUBSIDISED"===G(),c=a?function(e,t){const a=d()(e,"DD/MM/YYYY"),r=d()(t,"DD/MM/YYYY");return a.diff(r,"days")}(r,a):void 0;a?c<=0&&l&&""===s?this.setState({promoApplied:e.promoCode,promoCodeStatus:"VALIDATED",promoDetails:{title:e.promoTitle,desc:e.terms,promoCode:e.promoCode,promoType:e.promoCodeConfig,endDate:e.endDate,eligibleRetailProducts:e.eligibleRetailProducts,eligibleIncProducts:e.eligibleIncProducts}},(()=>{i.onChange({code:e.promoCode,title:e.promoTitle,highlight:e.promoHighLight,desc:e.terms,additionalTerms:e.additionalTerms,end:e.endDate,promoType:e.promoCodeConfig}),this.applyAnalytics("VALID promo code"),Lt.trackPromoImpression("special offers",e.promoCode)})):c<=0&&!l||void 0===c||"ERR_INVALID_CHANNEL"===s?(this.setState({promoCodeStatus:"INAPPLICABLE",promoDetails:{title:e.promoTitle,de
1sc:e.terms,promoCode:e.promoCode,endDate:e.endDate}}),this.applyAnalytics("INAPPLICABLE promo code"),Dr({message:Hi,code:s},this.fieldTrackingData)):"ERR_PROMO_EXPIRED"===s?(this.setState({promoCodeStatus:"EXPIRED",promoDetails:{title:e.promoTitle,desc:e.terms,promoCode:e.promoCode,endDate:e.endDate}}),this.applyAnalytics("EXPIRED promo code"),Dr({message:ji,code:s},this.fieldTrackingData)):(this.setState({promoCodeStatus:"INELIGIBLE",promoDetails:{title:e.promoTitle,desc:e.terms,promoCode:e.promoCode,endDate:e.endDate}}),this.applyAnalytics("INELIGIBLE promo code"),Dr({message:ji,code:s},this.fieldTrackingData)):(this.setState({promoCodeStatus:"INVALID",promoDetails:null}),Dr({message:Vi},this.fieldTrackingData))})).catch((()=>{this.setState({promoCodeStatus:"INVALID",promoDetails:null}),Dr({message:Vi},this.fieldTrackingData)}))}))}removePromoCode(){const{promoType:e}=this.state,{input:t,resetProps:a,label:r}=this.props;"isMajorPartner"===e&&this.AnalyticsForRemoveBtn("Promo Code"),this.setState({promoCodeStatus:null,promoDetails:null,promoApplied:null},(()=>{t.onChange(""),a("")})),Lt.trackInteraction(null,{label:"remove",heading:r,component:y.PROMO_CODE})}render(){const{promoCodeStatus:e,promoDetails:t}
1=this.state,{label:a,input:r,defaultCampaigns:i,sectionDescription:n,promoType:o}=this.props;r.value=r.value?r.value:i;const s=r.value&&r.value.code,l=!o||"referAFriend"===o||"default"===o;return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row n-m-t-1",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0",children:n})})}),(0,Ut.BX)("div",{className:"row m-t-2 no-gutters",children:[(0,Ut.BX)("div",{className:"col-12 col-md-5",children:[s&&(0,Ut.tZ)(fi,{id:r.id,label:a,disabled:!0,name:r.name,value:s}),!s&&(0,Ut.tZ)(fi,{id:r.id,label:a,onChange:e=>this.state.promoApplied=e.target.value,disabled:"CHECKING"===this.state.promoCodeStatus?"disabled":"",name:r.name,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),document.querySelector("#apply-promo").click())},stepName:N.YOUR_DETAILS})]}),(0,Ut.tZ)("div",{className:"col-12 col-md-4 m-t-4-md m-l-1-md m-b-2",children:(0,Ut.BX)("button",{type:"button",className:"btn btn-dark-ghost btn-lg",id:"apply-promo",onClick:e=>{e.preventDefault(),s?this.removePromoCode():!s&&this.state.promoApplied?this.applyPromoCode():this.checkRequired()},children:[s&&(0,Ut.tZ)("span",{children:"Remove"}),!s&&"CHECKING"===e&&(0,Ut.BX)("span",{children:["Checking ",(0,Ut.tZ)("span",{className:"d-inline-flex spinner"})]}),!s&&"CHECKING"!==e&&(0,Ut.tZ)("span",{children:"Apply"})]})}),(0,Ut.BX)("div",{className:"col-12",role:"alert",children:["BLANK"===e&&(0,Ut.tZ)("small",{className:"text-alert",children:Xi}),"INVALID"===e&&(0,Ut.tZ)("small",{className:"text-alert",children:Vi}),"INAPPLICABLE"===e&&(0,Ut.tZ)("small",{className:"text-alert",children:Hi}),("INELIGIBLE"===e||"EXPIRED"===e)&&(0,Ut.BX)("small",{className:"text-alert",children:["To be eligible for this offer your policy start date must be on or before",` ${t?.endDate}`," – please review your policy start date to receive this offer, or remove the promotion or referral code to proceed."]})]}),(0,Ut.tZ)("div",{className:"col-12",children:s&&!V()&&l&&(0,Ut.BX)("p",{className:"m-b-2 m-t-0",children:[(0,Ut.tZ)("span",{className:"d-inline-block",children:(0,Ut.BX)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon icon-sm text-success p-r-1",children:[(0,Ut.tZ)("title",{children:"Icon Tick"}),(0,Ut.tZ)("path",{d:"M5.304 14.098L.213 8.403a.87.87 0 0 1 0-1.14l1.027-1.14a.68.68 0 0 1 1.029 0l3.549 3.987 7.911-8.876a.68.68 0 0 1 1.029 0l1.028 1.14a.866.866 0 0 1 0 1.137L6.332 14.098a.68.68 0 0 1-1.028 0",fillRule:"evenodd",fill:"currentColor"})]})}),"Congratulations! You've successfully applied the promotional code"," ",(0,Ut.BX)("strong",{children:['"',s,'"']}),"."]})})]})]})}}$i.propTypes={productId:xt().string,campaignUrl:xt().string,coverStartDate:xt().string,defaultCampaigns:xt().object,sectionDescription:xt().string,promoType:xt().string,label:xt().string,input:xt().object,resetProps:xt().func},$i.defaultProps={productId:"",campaignUrl:"",coverStartDate:"",defaultCampaigns:{},sectionDescription:"Have you received a promotion code through one of our partners or a referral code?",promoType:null,label:"Promo code (optional)"};const Ji=$i,Qi=({title:e})=>(0,Ut.BX)("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",className:"icon",tabIndex:"-1",children:[(0,Ut.tZ)("title",{children:e}),(0,Ut.tZ)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,Ut.tZ)("g",{transform:"translate(-252.000000, -396.000000)",fillRule:"nonzero",fill:"#1C1C26",children:(0,Ut.tZ)("path",{d:"M275,405.525403 C275,405.183431 274.753268,404.970907 274.259435,404.887635 L267.622643,403.87585 L264.647925,397.568286 C264.480566,397.189364 264.264445,397 264.000069,397 C263.735741,397 263.519758,397.189364 263.35226,397.568286 L260.377404,403.87585 L253.740287,404.887635 C253.246824,404.970907 253,405.183431 253,405.525403 C253,405.719574 253.110214,405.941372 253.330596,406.190896 L258.143158,411.098235 L257.006146,418.029389 C256.988503,418.158836 256.979751,418.251527 256.979751,418.306734 C256.979751,418.500808 257.025966,418.664777 257.118491,418.798886 C257.210969,418.933189 257.349709,419 257.534897,419 C257.693642,419 257.869846,418.944793 258.063739,418.833797 L263.999931,415.561881 L269.936538,418.833797 C270.121958,418.944793 270.298208,419 270.465196,419 C270.642048,419 270.776157,418.933189 270.868682,418.798886 C270.960928,418.664972 271.00719,418.500808 271.00719,418.306734 C271.00719,418.186755 271.002745,418.094355 270.9939,418.029389 L269.856795,411.098235 L274.656067,406.190896 C274.885572,405.950598 275,405.728702 275,405.5254
103 Z"})})})]});Qi.propTypes={title:xt().string},Qi.defaultProps={title:"Icon Star"};const Gi=Qi,Wi=({title:e,description:t,additionalTerms:a,highlight:i,promoCode:n})=>{const[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!i),d=Ot()({"message bg-neutral-2 in-page-promo":!0,"retail-promo":V()});return(0,Ut.BX)("div",{className:d,role:"message",children:[(0,Ut.tZ)("div",{className:"corner-ribbon",tabIndex:-1,children:(0,Ut.tZ)(Gi,{})}),(0,Ut.tZ)("div",{className:"message-body",children:V()?(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("h4",{children:["Promo code “",n,"” has been added"]}),!!i&&(0,Ut.tZ)("p",{children:i}),(0,Ut.tZ)(Wt.Panel,{isOpen:l,id:"showTerms",children:(0,Ut.tZ)("p",{className:"m-t-2",children:t})}),(0,Ut.tZ)(Wt.Button,{className:"promo-collapse-button m-t-2",labelExpand:"Show terms and conditions",labelCollapse:"Hide terms and conditions",onClick:()=>c(!l),isOpen:l,"aria-controls":"showTerms",description:"Show terms and conditions"})]}):(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("h4",{children:e}),(0,Ut.tZ)("p",{className:"small",children:t}),a&&""!==a.trim()&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)(Wt.Panel,{isOpen:o,id:"showAdditionalTerms",children:(0,Ut.tZ)("p",{className:"small",children:a})}),(0,Ut.tZ)(Wt.Button,{"data-testid":"collapse-button",labelExpand:"Learn More",labelCollapse:"Show Less",onClick:()=>s(!o),isOpen:o,"aria-controls":"showAdditionalTerms",description:"Learn more"})]})]})})]})},zi=({title:e})=>(0,Ut.BX)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon icon-sm text-success p-r-1",children:[(0,Ut.tZ)("title",{children:e}),(0,Ut.tZ)("path",{d:"M5.304 14.098L.213 8.403a.87.87 0 0 1 0-1.14l1.027-1.14a.68.68 0 0 1 1.029 0l3.549 3.987 7.911-8.876a.68.68 0 0 1 1.029 0l1.028 1.14a.866.866 0 0 1 0 1.137L6.332 14.098a.68.68 0 0 1-1.028 0",fillRule:"evenodd",fill:"currentColor"})]});zi.propTypes={title:xt().string},zi.defaultProps={title:"Icon Tick"};const Ki=zi;class en extends i().Component{constructor(e){super(e);const t=Date.now();this.state={referralCodeStatus:null,analytics:{timestamp:t,sequenceId:`${t}${Math.floor(1e10*Math.random())}`}},this.fieldTrackingData={fieldLabel:e.label,name:g.JOIN,stepName:N.YOUR_DETAILS}}applyAnalytics(){const{analytics:e,codeApplied:t,referralCodeStatus:a}=this.state;hr.applyReferralCode(e,t,a)}validateCode(){const{codeApplied:e}=this.state;e?e&&10===e.length?this.setState({referralCodeStatus:"VALIDATED"},(()=>this.applyCode())):e&&10!==e.length&&(this.setState({referralCodeStatus:"INVALID"},(()=>this.applyAnalytics())),Dr({message:"invalid code"},this.fieldTrackingData)):(this.setState({referralCodeStatus:"BLANK"}),Dr({message:"blank code"},this.fieldTrackingData))}applyCode(){const{codeApplied:e}=this.state;this.props.input.onChange({referralCode:e}),this.applyAnalytics()}removeCode(){this.setState({referralCodeStatus:null,codeApplied:null},(()=>this.props.input.onChange("")))}
1render(){const{id:e,name:t,label:a,input:r}=this.props,{referralCodeStatus:i}=this.state,n=r.value&&r.value.referralCode;return(0,Ut.tZ)("div",{className:"message bg-neutral-2 in-page-promo m-t-2",role:"message",children:(0,Ut.BX)("div",{className:"message-body",children:[(0,Ut.tZ)("h4",{children:"Now it's time to return the love to your friend"}),(0,Ut.tZ)("p",{children:"Enter the referral code below so your friend is eligible for a reward."}),(0,Ut.BX)("div",{className:"row m-t-2 no-gutters",children:[(0,Ut.BX)("div",{className:"col-md-6",children:[n&&(0,Ut.tZ)(fi,{id:e,label:a,name:t,disabled:!0,value:n}),!n&&(0,Ut.tZ)(fi,{id:e,label:a,name:t,placeholder:"Enter 10 digit referral code",maxLength:"10",onChange:e=>this.state.codeApplied=e.target.value,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),this.validateCode())},stepName:N.YOUR_DETAILS})]}),(0,Ut.tZ)("div",{className:"col-6 col-md-4 m-t-4-md m-l-1-md m-b-2",children:(0,Ut.BX)("button",{type:"button",className:"btn btn-dark-ghost btn-lg",id:"apply-referralcode",onClick:e=>{e.preventDefault(),n?this.removeCode():this.validateCode()},children:[!n&&"VALIDATED"!==i&&(0,Ut.tZ)("span",{children:"Apply"}),n&&(0,Ut.tZ)("span",{children:"Remove"})]})})]}),i&&"VALIDATED"!==i&&(0,Ut.tZ)("small",{className:"text-alert",children:"Invalid referral code. Referral code needs to be 10 digits. Please chek your details and try again. Alternatively, you could proceed to the next step without referral code."}),n&&(0,Ut.BX)("p",{className:"m-t-0",children:[(0,Ut.tZ)("span",{className:"d-inline-block",children:(0,Ut.tZ)(Ki,{})}),"Thank you!"]})]})})}}en.propTypes={id:xt().string,name:xt().string,label:xt().string,input:xt().object},en.defaultProps={id:"",name:"",label:"",input:{}};const tn=en;class an extends i().Component{constructor(e){super(e);const t=Date.now();this.state={memberNumberStatus:null,analytics:{timestamp:t,sequenceId:`${t}${Math.floor(1e10*Math.random())}`}},this.fieldTrackingData={fieldLabel:e.label,name:g.JOIN,stepName:N.YOUR_DETAILS}}componentDidMount(){const{input:e}=this.props;e.value||e.onChange(Object.assign({},{...e.value},{membershipNumber:"",isValidated:!1,memberNumberStatus:null}))}checkRequiredForMemberNumber(){const{personalDetails:e}=xr.getState().form.yourdetailsForm.values,{memberNumberApplied:t}=this.state;let a="",r="";e.firstname&&(a=e.firstname.trim()),e.lastname&&(r=e.lastname.trim()),t?t&&t.length<10?(this.setState({memberNumberStatus:"INVALIDLENGTH"}),this.applyAnalytics("Invalid","Invalid member number length"),Dr({message:"Invalid member number length"},this.fieldTrackingData)):!t||10!==t.length||""!==a&&""!==r?this.applyMemberNumber():(this.setState({memberNumberStatus:"BLANKFLNAMES"}),this.applyAnalytics("Invalid","Associated first name/last name of member number should not be empty"),Dr({message:"Associated first name/last name of member number should not be empty"},this.fieldTrackingData)):(this.setState({memberNumberStatus:"BLANK"}),this.applyAnalytics("Invalid","Member Number is empty"),Dr({message:"Member Number is empty"},this.fieldTrackingData))}applyAnalytics(e,t){const{analytics:a,memberNumberApplied:r}=this.state;hr.applyMemberNumber(a,r,e,t)}AnalyticsForRemoveBtn(e){const{analytics:t}=this.state;hr.removeMemberNumber(t,e)}applyMemberNumber(){const{majorPartnerMemberValidateUrl:e}=this.props,{memberNumberApplied:t}=this.state;let a=e;const{personalDetails:r}=xr.getState().form.yourdetailsForm.values,i={membershipId:t,givenName:r.firstname.trim(),surname:r.lastname.trim()};V()||(a=`${a}&client=${J()}&channel=${G()}`);const{input:n}=this.props;this.setState({memberNumberStatus:"CHECKING"},(()=>{var e,t;(e=a,t=i,fetch(e,{body:JSON.stringify(t),headers:{"content-type":"application/json"},method:"POST"}).then((e=>{if(e)return e.json();throw new Error(`Call failed Error code ${e.status} returned with msg ${e.statusText}`)}))).then((e=>{!0===e.validationStatus?(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"VALIDATED"},(()=>{n.onChange(Object.assign({},{...n.value},{membershipNumber:e.partnerMemberId,isValidated:!0,Partnername:"partner",memberNumberStatus:"VALIDATED"}))}
1)),this.applyAnalytics("Valid","Velocity member number is valid")):!1===e.validationStatus?e.matchResults[0].membershipIdStatus?e.matchResults[0].membershipIdStatus&&!e.matchResults[0].firstnameStatus&&e.matchResults[0].lastnameStatus?(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"INVALIDFIRSTNAME"}),this.applyAnalytics("Invalid","mismatch firstname"),Dr({message:"mismatch firstname"},this.fieldTrackingData)):e.matchResults[0].membershipIdStatus&&e.matchResults[0].firstnameStatus&&!e.matchResults[0].lastnameStatus?(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"INVALIDLASTNAME"}),this.applyAnalytics("Invalid","mismatch lastname"),Dr({message:"mismatch lastname"},this.fieldTrackingData)):!e.matchResults[0].membershipIdStatus||e.matchResults[0].firstnameStatus||e.matchResults[0].lastnameStatus?(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"SYSTEM_ERROR"},(()=>{n.onChange("")})),this.applyAnalytics("Invalid","System error"),Dr({message:"System error"},this.fieldTrackingData)):(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"INVALIDFNLN"}),this.applyAnalytics("Invalid","mismatch firstname and lastname"),Dr({message:"mismatch firstname and lastname"},this.fieldTrackingData)):(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"INVALIDMEMBERNUMBER"}),this.applyAnalytics("Invalid","Invalid membership number"),Dr({message:"Invalid membership number"},this.fieldTrackingData)):"200001011"===e.fault.detail.errorcode?(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"INVALIDMEMBERNUMBER"}),this.applyAnalytics("Invalid","Invalid membership number"),Dr({message:"Invalid membership number"},this.fieldTrackingData)):(this.setState({memberNumberApplied:e.partnerMemberId,memberNumberStatus:"SYSTEM_ERROR"},(()=>{n.onChange("")})),this.applyAnalytics("Invalid","System error"),Dr({message:"System error"},this.fieldTrackingData))})).catch((e=>{this.setState({memberNumberStatus:"INVALID",memberNumberApplied:null})}))}))}removeMemberNumber(){const{dispatchAction:e}=this.props;e((0,s.change)("yourdetailsForm","offers.majorPartnerConsent",null)),e((0,s.untouch)("yourdetailsForm","offers.majorPartnerConsent")),this.AnalyticsForRemoveBtn("Membership ID"),this.setState({memberNumberStatus:null,memberNumberApplied:""},(()=>{const{input:e}=this.props;e.onChange(Object.assign({},{...e.value},{membershipNumber:"",isValidated:!1,memberNumberStatus:null}))}))}render(){const{id:e,label:t,name:a,input:r,promoCode:i,meta:n,clearSubmitErrors:o,velocityJoinUrl:l,velocityLoginUrl:c,velocityForgotMembershipUrl:d}=this.props,{memberNumberStatus:m,memberNumberApplied:u}=this.state,p=r.value&&r.value.membershipNumber,h=n.error,v=h||"BLANK"===m||"INVALIDLENGTH"===m,{personalDetails:b}=xr.getState().form.yourdetailsForm.values;return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("div",{className:"row m-t-3 no-gutters",children:[(0,Ut.BX)("div",{className:"col-12 col-md-5",children:[p&&(0,Ut.tZ)(fi,{id:e,label:t,disabled:"true",name:a,value:r.value.membershipNumber}),!p&&(0,Ut.tZ)(fi,{id:e,label:t,name:a,error:v,placeholder:"10 digits membership number",onChange:e=>this.state.memberNumberApplied=e.target.value,disabled:"CHECKING"===m?"disabled":"",maxLength:10,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),o("yourdetailsForm"),this.applyMemberNumber()),(e.which<48||e.which>57)&&e.preventDefault()},stepName:N.YOUR_DETAILS})]}),(0,Ut.tZ)("div",{className:"col-6 col-md-4 m-t-4-md m-l-1-md",children:(0,Ut.BX)("button",{type:"button",className:"btn btn-dark-ghost btn-lg",id:"apply-member-number",onClick:e=>{e.preventDefault(),p?this.removeMemberNumber():(o("yourdetailsForm"),this.checkRequiredForMemberNumber())},children:[p&&(0,Ut.tZ)("span",{children:"Remove"}),!p&&"CHECKING"===m&&(0,Ut.BX)("span",{children:["Checking ",(0,Ut.tZ)("span",{className:"d-inline-flex spinner"})]}),!p&&"CHECKING"!==m&&(0,Ut.tZ)("span",{children:"Apply"})]})}),(0,Ut.BX)("div",{className:"col-12",role:"alert",children:[!h&&"BLANK"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.tZ)("div",{children:"Oops! A valid Velocity membership number is required. Please check and try again."}),(0,Ut.tZ)("div",{children:"You can find your Velocity number on emails you may receive from Velocity and on your My Velocity digital card."}),(0,Ut.tZ)("div",{children:(0,Ut.tZ)("a",{href:d,target:"_blank",rel:"noreferrer",children:"Still can't find your Velocity membership number?"})}),(0,Ut.tZ)("div",{children:"Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."})]})}),!h&&"INVALIDLENGTH"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.tZ)("div",{children:"Oops! A Velocity membership number needs to be 10 digits. Please check and try again."}),(0,Ut.tZ)("div",{children:"You can find your Velocity number on emails you may receive from Velocity and on your My Velocity digital card."}),(0,Ut.tZ)("div",{children:(0,Ut.tZ)("a",{href:d,target:"_blank",rel:"noreferrer",children:"Still can't find your Velocity membership number?"})}),(0,Ut.tZ)("div",{children:"Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."})]})}),!h&&"INVALIDMEMBERNUMBER"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.tZ)("div",{className:"m-b-1",children:"Oops! The Velocity membership number you have entered could not be found. Please double check and try again."}),(0,Ut.BX)("div",{className:"member-support",children:[(0,Ut.tZ)("div",{children:"You can find your Velocity number on emails you may receive from Velocity and on your My Velocity digital card."}),(0,Ut.BX)("div",{children:[(0,Ut.BX)("a",{href:d,target:"_blank",rel:"noreferrer",children:["Still can't find your Velocity membership number?"," "]}),"Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."]})]})]})}),!h&&"BLANKFLNAMES"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.tZ)("div",{className:"m-b-1",children:'Oops! The first or last name of the join form could not be blank. Please enter the name and click on "Apply".'}),(0,Ut.tZ)("div",{children:"Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."})]})}),!h&&"INVALIDFIRSTNAME"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.BX)("div",{className:"m-b-1",children:['Oops! The first name associated with this Velocity membership number does not match the first name "',b.firstname,'" entered in the join form. Please check the name and membership number have been entered correctly.']}),(0,Ut.BX)("div",{className:"member-support",children:["Alternatively,"," ",(0,Ut.tZ)("a",{href:c,target:"_blank",rel:"noreferrer",children:"log in to your Velocity account to check the details."})," ","Or, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."]})]})}),!h&&"INVALIDLASTNAME"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.BX)("div",{className:"m-b-1",children:['Oops! The last name associated with this Velocity membership number does not match the last name "',b.lastname,'" entered in the join form. Please check the name and membership number have been entered correctly.']}),(0,Ut.BX)("div",{className:"member-support",children:["Alternatively,"," ",(0,Ut.tZ)("a",{href:c,target:"_blank",rel:"noreferrer",children:"log in to your Velocity account to check the details."})," ","Or, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."]})]})}),!h&&"INVALIDFNLN"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.BX)("div",{className:"m-b-1",children:['Oops! The first and last name associated with this Velocity membership number do not match the name "',b.firstname," ",b.lastname,'" entered in the join form. Please check the name and membership number have been entered correctly.']}),(0,Ut.BX)("div",{className:"member-support",children:["Alternatively,"," ",(0,Ut.tZ)("a",{href:c,target:"_blank",rel:"noreferrer",children:"log in to your Velocity account to check the details."})," ","Or, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."]})]})}),!h&&"SYSTEM_ERROR"===m&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.tZ)("div",{className:"m-b-1",children:"Oops! Sorry, we could not val
1idate your Velocity membership number at the moment. Please try again later."}),(0,Ut.tZ)("div",{children:"Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case. Or contact our customer support via Message us below."})]})}),h&&u&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.tZ)("div",{children:"Oops! A valid Velocity membership number is required. Please enter the membership number and click on “Apply” button."}),(0,Ut.tZ)("div",{children:"Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."})]})}),h&&(!u||""===u)&&(0,Ut.tZ)("div",{className:"m-t-1",children:(0,Ut.BX)("small",{className:"text-alert membership-error",children:[(0,Ut.tZ)("div",{children:"Oops! A valid Velocity membership number is required. Please check and try again."}),(0,Ut.tZ)("div",{children:"You can find your Velocity number on emails you may receive from Velocity and on your My Velocity digital card."}),(0,Ut.tZ)("div",{children:(0,Ut.tZ)("a",{href:d,target:"_blank",rel:"noreferrer",children:"Still can't find your Velocity membership number?"})}),(0,Ut.tZ)("div",{children:"Alternatively, remove promo code “VELOCITY” to continue - the offer will not be applied in this case."})]})})]}),"VALIDATED"!==r.value.memberNumberStatus&&(0,Ut.tZ)("div",{children:(0,Ut.BX)("p",{children:["Not a Velocity member?"," ",(0,Ut.tZ)("a",{href:l,target:"_blank",rel:"noreferrer",id:"join-here",children:"Join here"})," ","and receive your Velocity number instantly to add to the Velocity membership number field above."]})})]}),"VALIDATED"===r.value.memberNumberStatus&&(0,Ut.BX)("div",{role:"alert",children:[(0,Ut.tZ)("div",{className:"m-t-4",children:(0,Ut.tZ)(Wi,{title:i.title,description:i.desc,additionalTerms:i.appliedCode,highlight:i.highlight,promoCode:i.code})}),(0,Ut.tZ)("div",{className:"message bg-neutral-2 in-page-promo member-number-consent m-t-2",children:(0,Ut.tZ)("div",{className:"message-body",children:(0,Ut.tZ)(s.Field,{name:"majorPartnerConsent",label:"I agree to Velocity Terms and Conditions.",component:jr,validate:[Ma]})})})]})]})}}an.propTypes={id:xt().string,label:xt().string,name:xt().string,input:xt().object,promoCode:xt().object,meta:xt().object,clearSubmitErrors:xt
1().func,majorPartnerMemberValidateUrl:xt().string,velocityJoinUrl:xt().string,velocityLoginUrl:xt().string,velocityForgotMembershipUrl:xt().string,dispatchAction:xt().func},an.defaultProps={id:"",label:"",name:"",input:{},promoCode:{},meta:{},clearSubmitErrors:"",majorPartnerMemberValidateUrl:"",velocityJoinUrl:"",velocityLoginUrl:"",velocityForgotMembershipUrl:"",dispatchAction:""};const rn=an;class nn extends i().Component{resetProps(){const{promoCode:e,referralCode:t,majorPartner:a}=this.props;e.input.onChange(""),t.input.onChange(""),a.input.onChange("")}render(){const{ids:e,names:t,labels:a,productId:r,campaignUrl:i,coverStartDate:n,defaultCampaigns:o,sectionDescription:s,promoCode:l,referralCode:c,majorPartner:d,clearSubmitErrors:m,dispatchAction:u,majorPartnerMemberValidateUrl:p,velocityJoinUrl:h,velocityLoginUrl:v,velocityForgotMembershipUrl:b,promoCodeError:f,resetPromoCodeError:y}=this.props,{promoType:g,title:N,desc:C,additionalTerms:D,highlight:E,code:S}=l.input.value,w=l.input.value&&l.input.value.code&&l.input.value.desc;return(0,Ut.BX)("div",{className:"promo-container-main",children:[(0,Ut.tZ)(Ji,{id:e[0],name:t[0],label:a[0],productId:r,campaignUrl:i,coverStartDate:n,defaultCampaigns:o,sectionDescription:s,promoType:g,input:l.input,resetProps:()=>this.resetProps(),promoCodeError:f,resetPromoCodeError:y}),w&&"referAFriend"===g&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)(Wi,{title:N,description:C,additionalTerms:D,highlight:E,promoCode:S}),(0,Ut.tZ)(tn,{id:e[1],name:t[1],label:a[1],input:c.input})]}),w&&"isMajorPartner"===g&&(0,Ut.tZ)(rn,{id:e[2],name:t[2],label:a[2],input:d.input,meta:d.meta,productId:r,campaignUrl:i,coverStartDate:n,defaultCampaigns:o,promoCode:l.input.value,majorPartnerMemberValidateUrl:p,velocityJoinUrl:h,velocityLoginUrl:v,velocityForgotMembershipUrl:b,clearSubmitErrors:m,dispatchAction:u}),w&&(!g||"default"===g)&&(0,Ut.tZ)(Wi,{title:N,description:C,highlight:E,promoCode:S})]})}}nn.propTypes={ids:xt().array,names:xt().array,labels:xt().array,productId:xt().string,campaignUrl:xt().string,coverStartDate:xt().string,defaultCampaigns:xt().object,sectionDescription:xt().string,promoCode:xt().object,referralCode:xt().object,majorPartner:xt().object,clearSubmitErrors:xt
1().func,dispatchAction:xt().func,majorPartnerMemberValidateUrl:xt().string,velocityJoinUrl:xt().string,velocityLoginUrl:xt().string,velocityForgotMembershipUrl:xt().string},nn.defaultProps={ids:[],names:[],labels:[],productId:"",campaignUrl:"",coverStartDate:"",defaultCampaigns:{},sectionDescription:"",promoCode:"",referralCode:"",majorPartner:"",clearSubmitErrors:"",dispatchAction:"",majorPartnerMemberValidateUrl:"",velocityJoinUrl:"",velocityLoginUrl:"",velocityForgotMembershipUrl:""};const on=nn,sn=({cover:e,campaignUrl:t,coverStartDate:a,defaultCampaigns:r,customId:i,sectionTitle:n,sectionDescription:o,sectionLabel:l,majorPartnerMemberValidateUrl:c,velocityJoinUrl:d,velocityLoginUrl:m,velocityForgotMembershipUrl:u,clearSubmitErrors:p,dispatch:h,promoCodeError:v,resetPromoCodeError:b})=>{const{productId:f}=e;return(0,Ut.tZ)(sa,{title:n,customId:i,children:(0,Ut.tZ)(s.Fields,{ids:["promoCode","referralCode","majorPartner"],names:["promoCode","referralCode","majorPartner"],labels:[l,"Referral Code (Optional)","Velocity membership number"],productId:f,component:on,sectionDescription:o,campaignUrl:t,coverStartDate:a,defaultCampaigns:r,majorPartnerMemberValidateUrl:c,velocityJoinUrl:d,velocityLoginUrl:m,velocityForgotMembershipUrl:u,clearSubmitErrors:p,dispatchAction:h,promoCodeError:v,resetPromoCodeError:b})})};sn.propTypes={cover:xt().object,campaignUrl:xt().string,coverStartDate:xt().string,defaultCampaigns:xt().object,customId:xt().string,sectionTitle:xt().string,sectionDescription:xt().string,sectionLabel:xt().string,majorPartnerMemberValidateUrl:xt().string,velocityJoinUrl:xt().string,velocityLoginUrl:xt().string,velocityForgotMembershipUrl:xt().string,clearSubmitErrors:xt
1().func,dispatch:xt().func},sn.defaultProps={cover:{},campaignUrl:"",coverStartDate:"",defaultCampaigns:{},customId:"",sectionTitle:"",sectionDescription:"",sectionLabel:"",majorPartnerMemberValidateUrl:"",velocityJoinUrl:"",velocityLoginUrl:"",velocityForgotMembershipUrl:"",clearSubmitErrors:null,dispatch:null};const ln=sn;class cn extends i().Component{constructor(e){super(e),this.requiredPartnerFirstName=e=>e?void 0:"We need your partner's first name.",this.requiredPartnerLastName=e=>e?void 0:"We need your partner's last name.",this.requiredPartnerDOB=e=>e?void 0:"We need your partner's date of birth."}render(){const{quote:e,additional:t,updateAge:a}=this.props;return(0,Ut.tZ)(na,{fieldName:"firstname",children:r=>(0,Ut.BX)(sa,{title:`${r||"Partner"}'s details`,targetClass:"dependent-details-wpr",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-8",children:(0,Ut.tZ)(s.Field,{label:"Title",name:"title",direction:"flex-row",component:ui,opts:[{name:"Mr",val:"Mr"},{name:"Mrs",val:"Mrs"},{name:"Miss",val:"Miss"},{name:"Ms",val:"Ms"}],selectedVal:"",validate:[Ta]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Given names(as it appears on your Medicare card)",name:"firstname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Last name",name:"lastname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Gender",name:"gender",direction:"flex-row",toolTipDesc:"This information is required by Medicare for your AGR application.",component:ui,opts:[{name:"Female",val:"Female"},{name:"Male",val:"Male"}],selectedVal:"",validate:[Ta]})})}),"EXTRAS"!=this.props.productType&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(vi,{quote:e,additonal:t,updateAge:a,partner:!0})})}),"EXTRAS"==this.props.productType&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Date of birth",name:"dob",placeholder:this.DOB_FORMAT,component:pi,maxLength:"10",...ha,onBlur:e=>{const t=Z(e.target.value);t&&a(t,!0,e.target.value)},validate:[Ta,_a]})})})]})})}}const dn=cn;class mn extends i().Component{constructor(e){super(e),this.DOB_FORMAT="DD/MM/YYYY",this.required=e=>e?void 0:"required",this.requiredChildGender=e=>e?void 0:"We need your child's gender.",this.requiredChildFirstName=e=>e?void 0:"We need your child's first name.",this.requiredChildLastName=e=>e?void 0:"We need your child's last name.",this.validDOB=e=>{let t="";if(e){const a=d()(e,this.DOB_FORMAT,!0);if(a.isValid()){d()().diff(a,"years")>30&&(t='Now that your child is 31 years or older, they are unable to be included on your cover. <br> Please look at our cover options for <a href="https://www.medibank.com.au/health-insurance/singles/" target="_blank">singles</a> and <a href="https://www.medibank.com.au/health-insurance/couples/" target="_blank">couples</a> or call us on <a href="tel:134 190" data-analytics-title="date of birth validation error" data-analytics-component="child dependent">134 190</a> to find the best cover for your needs.')}else t="Please enter a correct date in the format DD/MM/YYYY"}return t},this.maxCount=[];for(let e=1;e<=10;e++)this.maxCount.push({name:`${e}`,val:`${e}`})}render(){const{quote:e,updateChildFWACDetails:t,updateChildCount:a,price:r}=this.props,{priceFreq:n}=e,o=r&&r.current[n];return(0,Ut.BX)(sa,{title:"Child details",targetClass:"child-details-wpr",children:[(0,Ut.BX)("div",{className:"bg-neutral-1 p-x-3 p-x-4-lg p-t-3 p-b-2 bordered border-neutral-4",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0",children:"How many children under the age of 31 do you want to include on this cover?"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-6 col-sm-3",children:(0,Ut.tZ)(s.Field,{label:"",name:"childcount",component:Xa,opts:this.maxCount,selectedVal:"1",onChange:e=>{a(e.target.value)}})})})]}
1),(0,Ut.tZ)(na,{fieldName:"childcount",children:(a=1)=>{const r=[];for(let l=0;l<=a-1;l++)r.push((0,Ut.BX)(i().Fragment,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("h4",{className:"m-b-2",children:`Child ${l+1}`})})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Given names(as it appears on your Medicare card)",name:`child[${l}].givenname`,component:la,maxLength:"50",validate:[Ta,ga]})})})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Last name",name:`child[${l}].familyname`,component:la,maxLength:"50",validate:[Ta,ga]})})})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Gender",direction:"flex-row",name:`child[${l}].title`,component:ui,toolTipDesc:"This information is required by Medicare for your AGR application.",opts:[{name:"Female",val:"Miss"},{name:"Male",val:"Mr"}],selectedVal:"",validate:[Ta]})})})}),(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-6 col-md-3",children:(0,Ut.tZ)(s.Field,{label:"Date of birth",name:`child[${l}].childdob`,placeholder:this.DOB_FORMAT,component:pi,onBlur:e=>t(l,d()(e.target.value,this.DOB_FORMAT,!0),null),validate:[Ta,this.validDOB,Ra],maxLength:"10",...ha})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(na,{fieldName:`child[${l}].childdob`,children:a=>{if(a&&""===this.validDOB(a)){const r=d()(a,this.DOB_FORMAT,!0),i=d()().diff(r,"years");if(i<31&&i>20)return(0,Ut.tZ)(na,{fieldName:`child[${l}].givenname`,children:a=>{const i=`${a||`Child ${l+1}`} is a full time student`;return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("p",{children:"Full time student?"}),(0,Ut.tZ)(s.Field,{name:`child[${l}].fullTimeStudent`,onChange:e=>t(l,r,e.target.checked),component:jr,defaultValue:"checked",label:i}),(0,Ut.tZ)(na,{fieldName:`child[${l}].fullTimeStudent`,children:t=>!t&&(0,Ut.BX)("p",{className:"m-t-0",children:["Your child is considered an adult dependent. We have upgraded your cover to ","F"===e.scale?"'family":"'single parent"," with adult child' and your new premium is $",o," ",n,". Call us on"," ",(0,Ut.tZ)("a",{href:"tel:134 190","data-analytics-title":"child is adult dependent","data-analytics-component":"child dependent",children:"134 190"})," ","if you have any questions."]})})]})}});if(i>=31)return(0,Ut.BX)("p",{children:["Now that your child is 31 years or older, they are unable to be included on your cover. Please look at our cover options for singles and couples or call us on"," ",(0,Ut.tZ)("a",{href:"tel:134 190","data-analytics-title":"child over 31","data-analytics-component":"child dependent",children:"134 190"})," ","to find the best cover for your needs."]})}}})})})]})]})]},l));return r}})]})}}const un=mn;mn.propTypes={quote:xt().shape({scale:xt().string,priceFreq:xt().string}).isRequired,updateChildFWACDetails:xt().func.isRequired,updateChildCount:xt().func.isRequired,price:xt().shape({current:xt().arrayOf(xt().string)}).isRequired};var pn=a(20168);class hn extends i().Component{constructor(e){super(e),this.wrapper=i().createRef()}componentDidMount(){this.wrapper.current.querySelector(".react-datepicker__input-container input").setAttribute("readOnly",!0)}render(){const{id:e,label:t,placeholder:a,input:r,dateFormat:i,maxLength:n,meta:{touched:o,error:s},...l}=this.props;let c="input-group",m="";return o&&s&&(c+=" input-group-alert",m=" input-group-alert d-inline-block"),(0,Ut.BX)("div",{className:c,ref:this.wrapper,children:[(0,Ut.tZ)("label",{htmlFor:e,children:t}),(0,Ut.tZ)(pn.Z,{...l,onChange:e=>{r.onChange(d()(e).format(i))},dateFormat:i,placeholderText:a,maxLength:n,selected:r.value?d()(r.value,i):null}
1),o&&s&&(0,Ut.tZ)("small",{className:"feedback",id:`err_${e}`,children:s})]})}}const vn=hn;var bn=a(61106),fn=a(87308);const yn="modal-open";class gn extends i().Component{constructor(e){super(e)}componentDidMount(){let e,t;this.modalElement=this.refs.modalcontent,document.body.style.paddingRight=window.innerWidth-document.body.clientWidth+"px",document.body.classList.toggle(yn),e=(0,bn.Z)({context:this.modalElement}),t=(0,fn.Z)({escape:(a,r)=>{e.disengage(),e=null,self._element.focus(),r(),t=null}})}componentWillUnmount(){document.body.style.paddingRight=null,document.body.classList.toggle(yn)}render(){return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{ref:"modal",className:"modal-overlay"}),(0,Ut.tZ)("div",{ref:"modalcontent",className:"modal",tabIndex:"-1",role:"dialog","aria-hidden":"false","data-modal":!0,children:(0,Ut.tZ)("div",{"data-modal-dismiss":!0,children:(0,Ut.tZ)("div",{className:"modal-dialog modal-dialog-lg",role:"document",children:(0,Ut.BX)("div",{className:"modal-content",children:[(0,Ut.tZ)("button",{type:"button",className:"modal-dismiss","aria-label":"Close","data-modal-dismiss":"",onClick:this.props.dismissHandler,children:(0,Ut.tZ)("svg",{className:"icon icon-stroke",xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 60 60",children:(0,Ut.tZ)("path",{className:"currentColor",vectorEffect:"non-scaling-stroke",d:"M47.5 12.9l-35 35M12.5 12.9l35 35"})})}),this.props.children]})})})})]})}}const Nn=gn;class Cn extends i().Component{constructor(e){super(e);$e.getLeadInfo();this.state={email:{value:"",error:""},name:{value:"",error:""},phone:{value:"",error:""},showForm:!0,showSuccess:!1,hideLeadFields:$e.shouldHideLeadForm(),showSpinner:!1},this.jfEmail=document.querySelector("#jfEmailAddress"),this.jfName=document.querySelector("#jfName"),this.jfPhone=document.querySelector("#jfPhone"),this.emailRegEx=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,this.nameRegEx=/^[a-zA-Z '-]+$/}componentDidMount(){Lt.trackEmailQuoteStart()}handleEmail(e){this.setState({email:{value:e.target.value,error:""}})}handleName(e){this.setState({name:{value:e.target.value,error:""}})}handlePhone(e){this.setState({phone:{value:e.target.value,error:""}})}handleSubmit(e){e.preventDefault();const{name:t,phone:a,email:r}=this.state,i=this._validateEmail(r);let n,o;if(""===t.value&&""===a.value||(n=this._validateName(t),o=this._validatePhone(a)),i||n||o)this.setState({email:{value:r.value,error:i},name:{value:t.value,error:n||""},phone:{value:a.value,error:o||""}});else{this.setState({showSpinner:!0});const e={Source__c:"EMAILQUOTEJOIN",Email:r.value,Name:t.value?t.value:"",Phone:a.value?a.value:""};$e.updateLeadData(e,!0).finally((()=>{this.sendEmail()}))}}_validateEmail(e){let t=null;return""===e.value?t="This field is required.":this.emailRegEx.test(e.value)||(t="Please try again. The email you've entered doesn't look right. Your email should look something like this [email protected]"),t}_validateName(e){let t=null;return""===e.value?t="This field is required.":this.nameRegEx.test(e.value)||(t="Please try again. You've entered numbers or invalid characters (# @ ^ \" \\ * = ; % < > ` ~ +)."),t}_validatePhone(e){let t=null;return""===e.value?t="This field is required.":(e.value.length<10||!Number(e.value)||!e.value.startsWith(0))&&(t="Please try again. Your phone number should be 10 digits and begin with a '0'."),t}sendEmail(){const{cover:{productType:e,excess:t,claimback:a,productId:r,title:i,includeYD:n},quote:o,emailQuote:s}=this.props,l={productType:e,hospitalId:t?t.id:"",extrasIdIndex:0,extrasId:a?a.id:"",excess:t?t.val:"",claimback:a?a.val:"",productId:r,title:i,includeYD:n||!1,timestamp:(new Date).getTime()},c=$e.getLeadInfo(),{Name:d,Email:m}=c.leadDetails||{},u={cover:l,quote:o,quoteid:c.quoteId?c.quoteId:" ",recipient_email:m,recipient_name:d};V()||(u.clientname=J()),x(s,u).finally((()=>{this.setState({showForm:!1,showSuccess:!0,showSpinner:!1},(()=>{Lt.trackEmailQuoteComplete()}))}))}render(){const{closeHandler:e}=this.props,{showForm:t,email:a,name:r,phone:i,hideLeadFields:n,showSpinner:o,showSuccess:s}=this.state;return(0,Ut.tZ)(Nn,{dismissHandler:e,children:(0,Ut.BX)(Ut.HY,{children:[t&&(0,Ut.BX)("div",{children:[(0,Ut.tZ)("h3",{className:"m-t-0",children:"Email your quote"}),(0,Ut.tZ)("p",{children:"Leave your details and a Medibank expert will be in touch to take you through your options. In providing your telephone number, you consent to Medibank contacting you about health insurance."}),(0,Ut.tZ)("div",{className:"row m-t-2",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(fi,{label:"My email address",id:"jfEmailAddress",name:"jfEmailAddress",autocomplete:"email",value:a.value,error:a.error,onChange:this.handleEmail.bind(this)})})}),!n&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(fi,{label:"My name (optional)",id:"jfName",name:"jfName",autocomplete:"name",value:r.value,error:r.error,onChange:this.handleName.bind(this)})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(fi,{label:"My phone number (optional)",id:"jfPhone",name:"jfPhone",type:"tel",autocomplete:"tel",value:i.value,error:i.error,onChange:this.handlePhone.b
1ind(this),maxLength:10})})})]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-lg-6",children:(0,Ut.BX)("button",{type:"button",className:"btn btn-lg btn-highlight",id:"jfEmailQuote",onClick:this.handleSubmit.bind(this),children:["Email my quote ",o&&(0,Ut.tZ)("span",{className:"d-inline-flex spinner"})]})})})]}),s&&(0,Ut.BX)("div",{children:[(0,Ut.tZ)("h3",{className:"m-t-0",children:"Email your quote"}),(0,Ut.tZ)("p",{className:"m-b-2",children:"Thank you. We've sent your quote to the email address provided."}),(0,Ut.tZ)("button",{type:"button",className:"btn btn-lg btn-highlight",onClick:e,children:"Ok"})]})]})})}}Cn.propTypes={cover:xt().shape({productType:xt().string,excess:xt().shape({id:xt().string,val:xt().string}),claimback:xt().shape({id:xt().string,val:xt().string}),productId:xt().string,title:xt().string,includeYD:xt().bool}).isRequired,quote:xt().shape().isRequired,emailQuote:xt().string.isRequired,closeHandler:xt().func.isRequired};const Dn=Cn;class En extends i().Component{constructor(e){super(e),this.state={openQuoteModal:!1},this.defaultStartDate=d()(),this.coverStartDatePromoCheck=(e,t)=>{if(t.offers&&t.offers.promoCode&&t.offers.promoCode.end){const a=d()(e,"DD/MM/YYYY",!0);if(a.isValid()){const e=d()(t.offers.promoCode.end,"DD/MM/YYYY",!0);if(a.isAfter(e))return"Cover start date needs to be before the promo ends"}}return""}}componentDidMount(){const{cover:e,quote:t,price:a}=this.props;a&&Lt.trackJoinFormLoad({eventName:ct.JOIN_START,step:N.YOUR_DETAILS,productData:Tt(t,a,e)})}openEmailModal(e){const{openQuoteModal:t}=this.state;e.preventDefault(),this.setState({openQuoteModal:!t})}cancelEmailUpdate(e){const{openQuoteModal:t}=this.state;e.preventDefault(),this.setState({openQuoteModal:!t})}render(){const{quote:e,cover:t,price:a,additional:r,updateChildCount:i,updateChildFWACDetails:n,updateAge:o,updatePartnerAge:l,handleSubmit:c,submitting:m,config:{serviceUrls:u,promoDisplay:p,defaultCampaigns:h},promoCodeError:v,resetPromoCodeError:b}=this.props,{openQuoteModal:f}=this.state,y="top"===p;return(0,Ut.BX)("form",{onSubmit:c,children:[(0,Ut.tZ)("div",{className:"d-none d-xl-block",children:(0,Ut.tZ)(si,{title:li.CORP})}),(0,Ut.BX)("div",{className:"bg-neutral-1 bordered border-neutral-4 p-x-3 p-x-4-lg p-t-4 p-t-4-lg p-b-1 m-t-4",children:[(0,Ut.tZ)("h4",{className:"m-t-0 m-b-2",children:"Are you a current Medibank member?"}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12 col-md-5",children:[(0,Ut.tZ)(s.Field,{label:"",name:"personalDetails.currentMember",component:ui,opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],selectedVal:"false",direction:"flex-row",validate:[Ta]}),(0,Ut.tZ)(na,{fieldName:"personalDetails.currentMember",children:e=>(null===e||"false"===e)&&(0,Ut.tZ)(s.Field,{label:"Cover start date",dateFormat:"DD/MM/YYYY",minDate:d()(),maxDate:d()().add(60,"days"),name:"personalDetails.coverstartdate",component:vn,validate:[Ta,this.coverStartDatePromoCheck],maxLength:"10"})})]})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(na,{fieldName:"personalDetails.currentMember",children:e=>null!=e&&"true"===e&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("h4",{className:"m-t-0 p-b-2",children:["To update your cover call"," ",(0,Ut.tZ)("a",{href:"tel:1300763422","data-analytics-title":"to update your cover","data-analytics-component":"corp subs res your details",children:"1300 763 422"}),"."]}),(0,Ut.tZ)("p",{children:"You don't need to fill in this form. Please have your membership number handy when you call (this can be found on your membership card)."}),(0,Ut.tZ)("button",{className:"btn btn-dark-ghost m-y-4",onClick:this.openEmailModal.bind(this),children:"Email quote"})]})})}),(0,Ut.tZ)(s.FormSection,{name:"emailQuoteModal",children:(0,Ut.tZ)("div",{className:"col-12",children:f&&(0,Ut.tZ)(Dn,{closeHandler:this.cancelEmailUpdate.bind(this),cover:t,quote:e,emailQuote:u.emailQuote})})})]})]}),(0,Ut.tZ)(na,{fieldName:"personalDetails.currentMember",children:c=>(null===c||"false"===c)&&(0,Ut.BX)(Ut.HY,{children:[y&&(0,Ut.tZ)(na,{fieldName:"personalDetails.coverstartdate",children:e=>(0,Ut.tZ)(s.FormSection,{name:"offers",children:(0,Ut.tZ)(ln,{campaignUrl:u.campaign,customId:"promo-top",sectionTitle:"Special Offer",sectionDescription:"Have you received a special offer code through one of our partners, or a referral code?",sectionLabel:"Special offer code (optional)",defaultCampaigns:h,coverStartDate:e,cover:t,promoCodeError:v,resetPromoCodeError:b})})}),(0,Ut.tZ)(s.FormSection,{name:"personalDetails",children:(0,Ut.tZ)(Bi,{quote:e,additional:r,cover:t,updateAge:o,productType:t.productType,serviceUrls:u})}),("C"===e.scale||"F"===e.scale)&&(0,Ut.tZ)(s.FormSection,{name:"dependentDetails",children:(0,Ut.tZ)(dn,{quote:e,additional:r,updateAge:l,productType:t.productType})}),("P"===e.scale||"F"===e.scale)&&(0,Ut.tZ)(un,{quote:e,price:a,updateChildCount:i,updateChildFWACDetails:n}),(0,Ut.tZ)(s.FormSection,{name:"healthHistory",children:(0,Ut.tZ)(qi,{})}),(0,Ut.BX)(Ut.HY,{children:[!y&&(0,Ut.tZ)(na,{fieldName:"personalDetails.coverstartdate",children:e=>(0,Ut.tZ)(s.FormSection,{name:"offers",children:(0,Ut.tZ)(ln,{campaignUrl:u.campaign,customId:"promo-bottom",sectionTitle:"Special Offers",sectionDescription:"Have you received a promotion code through one of our partners or a referral code?",sectionLabel:"Promo code (optional)",defaultCampaigns:h,coverStartDate:e,cover:t,promoCodeError:v,resetPromoCodeError:b})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-4",children:(0,Ut.BX)("button",{type:"submit",disabled:m,className:"btn btn-primary m-t-2 btn-lg",children:[m&&(0,Ut.BX)("span",{children:["Loading ",(0,Ut.tZ)("span",{className:"spinner spinner-md d-inline-flex"})]}),!m&&(0,Ut.tZ)("span",{children:"Next"})]})})})]})]})})]})}}const Sn=En;class wn extends i().Component{constructor(e){super(e),this.requiredDOB=e=>e?void 0:"We need your date of birth.",this.DOB_FORMAT="DD/MM/YYYY",this.clientDomains=z(),this.residentialAddress=e=>{const t=/^[a-zA-Z\s]+$/,a=/^[0-9a-zA-Z/\-,\s]+$/,r=/^[0-9]{4}$/;if("manual"==e.type){const i={};let n=!1;return e.addressLine1?a.test(e.addressLine1)||(i.addressLine1="Please try again. You've entered invali
1d characters.",n=!0):(i.addressLine1="This field is required.",n=!0),e.addressLine2&&!a.test(e.addressLine2)&&(i.addressLine2="Please try again. You've entered invalid characters.",n=!0),e.suburb||(i.suburb="This field is required.",n=!0),t.test(e.suburb)||(i.suburb="Please try again. You've entered invalid characters.",n=!0),e.postcode?r.test(e.postcode)||(i.postcode="Please try again. Your postcode must be four digits.",n=!0):(i.postcode="This field is required.",n=!0),n?i:null}if(!e.complete)return{complete:"This field is required."}},this.confirmEligiblityLbl=`I can confirm I am an eligible employee of ${Q()}`}validEmail=e=>{const t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(this.clientDomains&&this.clientDomains.length>0){if(this.domainValidation(e)&&e.match(t))return;return`Please try again. The email you've entered doesn't look right. Your email should look something like this John.doe@${this.clientDomains[0].toLowerCase()}`}if(!e.match(t))return"Please try again. The email you've entered doesn't look right. Your email should look something like this [email protected]"};domainValidation=e=>{const t=this.clientDomains.toLocaleString().toLowerCase().split(","),a=e.split("@");return!!(a.length>1&&t.includes(a[a.length-1].toLowerCase()))};render(){const{quote:e,additional:t,updateAge:a,cover:r,serviceUrls:i}=this.props;return(0,Ut.BX)(sa,{title:"Your Personal Details",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-8",children:(0,Ut.tZ)(s.Field,{label:"Title",name:"title",component:ui,direction:"flex-row",opts:[{name:"Mr",val:"Mr"},{name:"Mrs",val:"Mrs"},{name:"Miss",val:"Miss"},{name:"Ms",val:"Ms"}],selectedVal:"",validate:[Ta]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Given names",name:"firstname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Last name",name:"lastname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Gender",name:"gender",direction:"flex-row",component:ui,opts:[{name:"Female",val:"Female"},{name:"Male",val:"Male"}],selectedVal:"",validate:[Ta]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-sm-6 phone-anchor",children:(0,Ut.tZ)(s.Field,{label:"Phone number (mobile preferred)",name:"phonenumber",placeholder:"e.g. 0412 345 678",component:mi,validate:[Aa,Za],...da})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(s.Field,{name:"phonenumberconsent",label:"By providing my telephone number, I consent to Medibank contacting me about health insurance cover.",component:jr})})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12 col-md-10",children:(0,Ut.tZ)(s.Field,{label:"Email address",name:"emailaddress",placeholder:"",component:la,validate:[Ta,this.validEmail]})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0 m-b-2",children:"By providing your email address, you're agreeing for us to email you important information about your membership and information on other products and services that may be of interest. If you'd rather we not email you, please let us know once your membership has been processed."})})]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12 col-md-10",children:[(0,Ut.tZ)(s.Field,{label:"Residential address",name:"resaddress",placeholder:"",component:Oi,cover:r,addressUrl:i.addressAPI,validate:[this.residentialAddress]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(s.Field,{name:"samepostaladdress",component:jr,label:"My postal address is same as my residential address"})})}),(0,Ut.tZ)(na,{fieldName:"samepostaladdress",children:e=>!e&&(0,Ut.tZ)(s.Field,{label:"Postal address",name:"postaddress",placeholder:"",component:Oi,cover:r,addressUrl:i.addressAPI,validate:[this.residentialAddress]})})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Date of birth",name:"dob",placeholder:this.DOB_FORMAT,component:pi,maxLength:"10",...ha,validate:[this.requiredDOB,_a]})})}),("NSW"==e.state||"ACT"==e.state)&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.BX)("p",{className:"m-t-0",children:["If you are a resident of NSW or ACT and hold a concession card, you may be eligible to re
1ceive a discount on your premium. In order to be eligible each person listed on the policy needs to be listed on the concession card. Call us on"," ",(0,Ut.tZ)("a",{href:"tel:1300 763 422",className:"no-underline","data-analytics-title":"concession card holders","data-analytics-component":"subs working visa personal details",children:"1300 763 422"})," ","to find out more."]})})}),(0,Ut.BX)("div",{className:"m-t-4",children:[K()&&(0,Ut.tZ)(s.Field,{name:"deductPayroll",label:"Deduct from payroll",component:jr}),(0,Ut.tZ)(s.Field,{name:"isEmployee",label:this.confirmEligiblityLbl,validate:[Ia],component:jr}),(0,Ut.tZ)(s.Field,{label:"Payroll ID/employee number",name:"employeeId",placeholder:"",component:la,maxLength:"50",validate:[Ta]})]})]})}}const Tn=wn;class Zn extends i().Component{constructor(e){super(e),this.requiredFundName=e=>e?void 0:"We need to know your current fund so we can organise the transfer for you.",this.requiredTransferConsent=e=>e?void 0:"We need your authorisation."}render(){return(0,Ut.BX)(sa,{title:"Your health insurance history",children:[(0,Ut.tZ)("label",{htmlFor:"healthhistory.hascurrentinsurance_Yes",className:"m-b-1 d-inline-block",children:"Are you switching from another Australian health fund?"}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{id:"hascurrentinsurance",name:"hascurrentinsurance",component:ui,opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],selectedVal:"",direction:"flex-row"})})}),(0,Ut.tZ)(na,{fieldName:"hascurrentinsurance",children:e=>"true"===e&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{component:Yi,id:"currentfund",name:"currentfund",label:"Your current private health insurance fund",textLabel:"Other fund n
1ame",maxLength:50,validate:Ta,customSelectValidate:Pa,opts:[{val:"",name:"Please select one"},{val:"BUPA",name:"BUPA"},{val:"NIB",name:"NIB"},{val:"Australian Health",name:"Australian Health"},{val:"Management",name:"Management"},{val:"HCF",name:"HCF"},{val:"Australian Unity",name:"Australian Unity"},{val:"GMHBA",name:"GMHBA"},{val:"Health Insurance Fund Of WA",name:"Health Insurance Fund Of WA"},{val:"CUA",name:"CUA"},{val:"Frank Health Insurance",name:"Frank Health Insurance"}]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{id:"currentfundmemberid",label:"Membership number (optional)",name:"currentfundmemberid",placeholder:"",maxLength:50,validate:Da,component:la})})}),(0,Ut.tZ)(s.Field,{id:"transferconsent",name:"transferconsent",placeholder:"",component:jr,validate:[this.requiredTransferConsent],label:"As the policy holder with my current health insurance fund, I authorise Medibank to cancel the membership with my current health fund, and to request a transfer certificate for me and any other people on my membership."}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"small m-t-0",children:"Please check the box above to allow Medibank to cancel your membership with your current health fund and obtain a transfer certificate. A transfer certificate will allow Medibank to recognise any waiting periods that you have already served, and to identify any claims you have made that might impact your entitlement to benefits. If you do not check the box above, you will need to supply Medibank with a transfer certificate from your health fund before any of these updates can occur. This could lead to a delay in you being able to claim under your new cover."})})})]})})]})}}const An=Zn;class In extends i().Component{constructor(e){super(e),this.required=e=>e?void 0:"This field is required.",this.DATE_FORMAT="DD/MM/YYYY",this.validDate=e=>{if(e){const t=d()(e,this.DATE_FORMAT,!0);if(!t.isValid())return"Please enter a correct date in the format DD/MM/YYYY";if(d()().diff(t,"days")>0)return"Visa expiry date needs to be in the future."}},this.validateVisaSubclass=e=>{if(e.length<3)return"Please enter your 3 digit visa subclass."},this.countriesList=window.phi.nationalities,this.countriesList.unshift({val:"",name:"Select a country"}),this.rhcaCountries=window.phi.rhcacountries,this.resiprocalmsg=e=>this.rhcaCountries.includes(e)&&se()?(0,Ut.BX)("p",{className:"m-b-3",children:["Depending on your Medicare eligibility and income, your employer may have also chosen to subsidise Reciprocal Exemption Cover in order for you to be exempt from the Medicare Levy Surcharge. Contact us on"," ",(0,Ut.tZ)("a",{href:"tel:1300 763 422","data-analytics-title":"medicare eligibility","data-analytics-component":"visa details",children:"1300 763 422"})," ","to find out more or contact the ATO to find out if you are subject to the Medicare Levy Surcharge."]}):this.rhcaCountries.includes(e)&&!se()?(0,Ut.BX)("p",{className:"m-b-3",children:["Depending on your Medicare elibility and income, you may be subject to the Medicare Levy Surcharge. Contact us on"," ",(0,Ut.tZ)("a",{href:"tel:1300 763 422","data-analytics-title":"medicare eligibility","data-analytics-component":"visa details",children:"1300 763 422"}),"."," "]}):void 0}render(){return(0,Ut.tZ)(sa,{title:"Your visa information",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{id:"visasubclass",label:"Visa subclass",name:"visaDetails.visasubclass",placeholder:"e.g. 010, 600, 485",validate:[this.required,this.validateVisaSubclass],component:la,...fa})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{label:"Nationality",name:"visaDetails.nationality",component:Xa,opts:this.countriesList,validate:[this.required]})})}),(0,Ut.tZ)(na,{fieldName:"visaDetails.nationality",children:e=>this.resiprocalmsg(e)}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-6",children:(0,Ut.tZ)(s.Field,{id:"visaexpirydate",name:"visaDetails.visaexpirydate",placeholder:"DD/MM/YYYY",component:la,...ha,validate:[this.required,this.validDate],label:"Approximate visa expiry date"})})})]})})})}}const Pn=In;class Mn extends i().Component{constructor(e){super(e),this.required=e=>e?void 0:"This field is required.",this.requiredPartnerFirstName=e=>e?void 0:"We need your partner's first name.",this.requiredPartnerLastName=e=>e?void 0:"We need your partner's last name.",this.requiredPartnerDOB=e=>e?void 0:"We need your partner's date of birth.",this.DOB_FORMAT="DD/MM/YYYY"}render(){return(0,Ut.tZ)(na,{fieldName:"firstname",children:e=>(0,Ut.BX)(sa,{title:`${e||"Partner"}'s details`,children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-8",children:(0,Ut.tZ)(s.Field,{label:"Title",name:"title",component:ui,direction:"flex-row",opts:[{name:"Mr",val:"Mr"},{name:"Mrs",val:"Mrs"},{name:"Miss",val:"Miss"},{name:"Ms",val:"Ms"}],selectedVal:"",validate:[Ta]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Given names",name:"firstname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Last name",name:"lastname",placeholder:"",component:la,validate:[Ta,ga],maxLength:"50"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Gender",name:"gender",direction:"flex-row",component:ui,opts:[{name:"Female",val:"Female"},{name:"Male",val:"Male"}],selectedVal:"",validate:[Ta]})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Date of birth",name:"dob",placeholder:this.DOB_FORMAT,component:pi,maxLength:"10",...ha,validate:[Ta,_a]})})})]})})}}const _n=Mn;class Rn extends i().Component{constructor(e){super(e),this.DOB_FORMAT="DD/MM/YYYY",this.required=e=>e?void 0:"This field is required.",this.requiredChildGender=e=>e?void 0:"We need your child's gender.",this.requiredChildFirstName=e=>e?void 0:"We need your child's first name.",this.requiredChildLastName=e=>e?void 0:"We need your child's last name.",this.validDOB=e=>{if(e){const t=d()(e,this.DOB_FORMAT,!0);if(!t.isValid())return"Please enter a correct date in the format DD/MM/YYYY";if(d()().diff(t,"years")>20)return'Children must be under 21 years of age. Now that your child is 21 years or older, they are unable to be included on your cover. Please look at our cover options for <a href="https://www.medibank.com.au/health-insurance/singles/?pid=home">singles</a> and <a href="https://www.medibank.com.au/health-insurance/couples/?pid=home">couples</a> or call us on <a href="tel:131 680" data-analytics-title="date of birth validation error" data-analytics-component="child dependent subs working visa">131 680</a> to find the best cover for your needs.'}},this.maxCount=[];for(let e=1;e<=10;e++)this.maxCount.push({name:`${e}`,val:`${e}`})}render(){return(0,Ut.BX)(sa,{title:"Child's details",children:[(0,Ut.BX)("div",{className:"bg-neutral-1 p-x-4 p-t-3 p-b-2",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0 m-b-1",children:"How many children under the age of 21 do you want to include on this cover?"})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-2",children:(0,Ut.tZ)(s.Field,{label:"",name:"childcount",component:Xa,opts:this.maxCount,selectedVal:"1"})})})]}
1),(0,Ut.tZ)(na,{fieldName:"childcount",children:(e=1)=>{const t=[];for(let a=0;a<=e-1;a++)t.push((0,Ut.tZ)(i().Fragment,{children:(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12 m-b-2",children:(0,Ut.tZ)(na,{fieldName:`child[${a}].givenname`,children:e=>(0,Ut.tZ)("h4",{children:e&&e.trim()?e.toLocaleUpperCase().endsWith("S")?`${e}' details`:`${e}'s details`:`Child ${a+1}'s details`})})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Given names",name:`child[${a}].givenname`,component:la,maxLength:"50",validate:[Ta,Ca]})})})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Last name",name:`child[${a}].familyname`,component:la,maxLength:"50",validate:[Ta,Ca]})})})}),(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Gender",name:`child[${a}].title`,component:ui,opts:[{name:"Female",val:"Miss"},{name:"Male",val:"Mr"}],selectedVal:"",validate:[Ta],direction:"flex-row"})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{label:"Date of birth",name:`child[${a}].childdob`,placeholder:this.DOB_FORMAT,component:pi,validate:[Ta,this.validDOB],maxLength:"10",...ha})})})})]})},a));return t}})]})}}const Ln=Rn;class kn extends i().Component{constructor(e){super(e),this.state={openQuoteModal:!1},this.defaultStartDate=d()(),this.coverStartDatePromoCheck=(e,t)=>{if(t.offers&&t.offers.promoCode&&t.offers.promoCode.end){const a=d()(e,"DD/MM/YYYY",!0);if(a.isValid()){const e=d()(t.offers.promoCode.end,"DD/MM/YYYY",!0);if(a.isAfter(e))return"Cover start date needs to be before the promo ends"}}return""}}componentDidMount(){const{cover:e,quote:t,price:a}=this.props;a&&Lt.trackJoinFormLoad({eventName:ct.JOIN_START,step:N.YOUR_DETAILS,productData:Tt(t,a,e),visaType:"working"})}openEmailModal(e){const{openQuoteModal:t}=this.state;e.preventDefault(),this.setState({openQuoteModal:!t})}cancelEmailUpdate(e){const{openQuoteModal:t}=this.state;e.preventDefault(),this.setState({openQuoteModal:!t})}render(){const{quote:e,cover:t,price:a,additional:r,updateChildCount:i,updateChildFWACDetails:n,updateAge:o,updatePartnerAge:l,handleSubmit:c,submitting:m,config:{serviceUrls:u,promoDisplay:p,defaultCampaigns:h},promoCodeError:v,resetPromoCodeError:b}=this.props,{openQuoteModal:f}=this.state,y="top"===p;return(0,Ut.BX)("form",{onSubmit:c,children:[(0,Ut.tZ)("div",{className:"d-none d-xl-block",children:(0,Ut.tZ)(si,{title:li.CORP})}),(0,Ut.BX)("div",{children:[(0,Ut.tZ)("h4",{className:"m-b-2",children:"Are you a current Medibank member?"}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12 col-md-5",children:[(0,Ut.tZ)(s.Field,{label:"",name:"personalDetails.currentMember",component:ui,opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],selectedVal:"false",validate:[Ta]}),(0,Ut.tZ)(na,{fieldName:"personalDetails.currentMember",children:e=>(null===e||"false"===e)&&(0,Ut.tZ)(s.Field,{label:"Cover start date",dateFormat:"DD/MM/YYYY",minDate:d()(),maxDate:d()().add(60,"days"),name:"personalDetails.coverstartdate",component:vn,validate:[Ta,this.coverStartDatePromoCheck],maxLength:"10"})})]})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(na,{fieldName:"personalDetails.currentMember",children:e=>null!=e&&"true"===e&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("h4",{className:"m-t-0 p-b-2",children:["To update your cover call"," ",(0,Ut.tZ)("a",{href:"tel:1300763422","data-analytics-title":"to update your cover","data-analytics-component":"corp subs workingvisa your details",children:"1300 763 422"}),"."]}),(0,Ut.tZ)("p",{children:"You don't need to fill in this form. Please have your membership number handy when you call (this can be found on your membership card)."}),(0,Ut.tZ)("button",{className:"btn btn-dark-ghost m-y-4",onClick:this.openEmailModal.bind(this),children:"Email quote"})]})})}),(0,Ut.tZ)(s.FormSection,{name:"emailQuoteModal",children:(0,Ut.tZ)("div",{className:"col-12",children:f&&(0,Ut.tZ)(Dn,{closeHandler:this.cancelEmailUpdate.bind(this),cover:t,quote:e,emailQuote:u.emailQuote})})})]})]}),(0,Ut.tZ)(na,{fieldName:"personalDetails.currentMember",children:c=>(null===c||"false"===c)&&(0,Ut.BX)(Ut.HY,{children:[(t.excess||t.claimback)&&(0,Ut.tZ)(Ut.HY,{children:y&&(0,Ut.tZ)(na,{fieldName:"personalDetails.coverstartdate",children:e=>(0,Ut.tZ)(s.FormSection,{name:"offers",children:(0,Ut.tZ)(ln,{campaignUrl:u.campaign,customId:"promo-top",sectionTitle:"Special Offer",sectionDescription:"Have you received a special offer code through one of our partners, or a referral code?",sectionLabel:"Special offer code (optional)",defaultCampaigns:h,coverStartDate:e,cover:t,promoCodeError:v,resetPromoCodeError:b})})})}),(0,Ut.tZ)(s.FormSection,{name:"personalDetails",children:(0,Ut.tZ)(Tn,{quote:e,additional:r,cover:t,updateAge:o,productType:t.productType,serviceUrls:u})}),("C"===e.scale||"F"===e.scale)&&(0,Ut.tZ)(s.FormSection,{name:"dependentDetails",children:(0,Ut.tZ)(_n,{quote:e,additional:r,updateAge:l,productType:t.productType})}),("P"===e.scale||"F"===e.scale)&&(0,Ut.tZ)(Ln,{quote:e,price:a,updateChildCount:i,updateChildFWACDetails:n}),(0,Ut.tZ)(Pn,{cover:t}),(0,Ut.tZ)(s.FormSection,{name:"healthHistory",children:(0,Ut.tZ)(An,{})}),(t.excess||t.claimback)&&(0,Ut.BX)(Ut.HY,{children:[!y&&(0,Ut.tZ)(na,{fieldName:"personalDetails.coverstartdate",children:e=>(0,Ut.tZ)(s.FormSection,{name:"offers",children:(0,Ut.tZ)(ln,{campaignUrl:u.campaign,customId:"promo-bottom",sectionTitle:"Special Offers",sectionDescription:"Have you received a promotion code through one of our partners or a referral code?",sectionLabel:"Promo code (optional)",defaultCampaigns:h,coverStartDate:e,cover:t,promoCodeError:v,resetPromoCodeError:b})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-8",children:(0,Ut.BX)("button",{type:"submit",disabled:m,className:"btn btn-primary m-t-2 btn-lg",children:[m&&(0,Ut.BX)("span",{children:["Loading ",(0,Ut.tZ)("span",{className:"spinner spinner-md d-inline-flex"})]}),!m&&(0,Ut.tZ)("span",{children:"Next"})]})})})]})]})})]})}}
1const On=kn;class Fn extends i().Component{constructor(e){super(e)}render(){const{channelbasedCallingNumbers:e,isSubResidential:t}=this.props;return(0,Ut.tZ)(s.FormSection,{name:"medicareDetails",children:(0,Ut.BX)(sa,{title:"Your Medicare details",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0",children:"This helps confirm if you're eligible for the Australian Government Rebate."})})}),(0,Ut.BX)("div",{className:"bg-neutral-1 bordered border-neutral-4 m-t-4 p-a-3 p-a-4-lg",children:[(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("h4",{className:"m-t-0 m-b-2",children:"Do you have a Medicare card?"})}),(0,Ut.tZ)("div",{className:"col-12 col-md-4",children:(0,Ut.tZ)(s.Field,{name:"hasCard",component:ui,direction:"flex-row",opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],selectedVal:"true",validate:[Ta]})})]}),(0,Ut.tZ)(na,{fieldName:"hasCard",children:e=>"true"==e&&(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("hr",{className:"m-t-0"})}),(0,Ut.tZ)("div",{className:"col-12 col-md-8",children:(0,Ut.tZ)(s.Field,{component:Xa,id:"medicareCard",name:"medicareCard",label:"Medicare card type",opts:[{val:"green",name:"Australian resident card (green)"},{val:"blue",name:"Interim Medicare card (blue)"},{val:"yellow",name:"Reciprocal Medicare card (yellow)"}]})})]})}),(0,Ut.tZ)(na,{fieldName:"hasCard",children:t=>"true"==t&&(0,Ut.tZ)(na,{fieldName:"medicareCard",children:t=>"green"==t&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0",children:"Standard (green) Medicare cards are issued to Australian citizens and permanent residents."})})}),(0,Ut.BX)("div",{className:"bg-white bordered border-neutral-4 m-t-2 p-a-3 p-a-4-md d-flex flex-column flex-md-row align-items-start",children:[(0,Ut.tZ)("img",{src:"https://www.medibank.com.au/content/dam/retail/health/images/medicare-card-green.png",alt:"Standard Medicare card"}),(0,Ut.BX)("p",{className:"m-t-1 m-t-0-md p-l-2-md small",children:["Incorrectly indicating which Medicare card you hold may affect the benefits you're entitled to receive under Hospital cover. As a result, you could be left with very large out-of-pocket expenses if you receive hospital treatment. If you're still unsure, please call us on"," ",(0,Ut.tZ)("a",{href:`tel:${e}`,className:"no-underline",children:e})," ","to discuss the suitability of this cover."]})]})]})})}),(0,Ut.tZ)(na,{fieldName:"hasCard",children:t=>"true"==t&&(0,Ut.tZ)(na,{fieldName:"medicareCard",children:t=>"blue"==t&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:"Interim (blue) Medicare cards are issued to temporary residents, and for a 12-month period at a time."}),(0,Ut.tZ)("p",{children:"If you're applying for permanent residency, you will need to apply for an interim (blue) Medicare card."})]})}),(0,Ut.BX)("div",{className:"bg-white bordered border-neutral-4 p-a-3 p-a-4-lg m-t-2 d-flex flex-column flex-md-row align-items-start",children:[(0,Ut.tZ)("img",{src:"https://www.medibank.com.au/content/dam/retail/health/images/interim-card.png",alt:"Interim Medicare card"}),(0,Ut.BX)("p",{className:"m-t-1 m-t-0-md p-l-2-md small",children:["Incorrectly indicating which Medicare card you hold may affect the benefits you're entitled to receive under Hospital cover. As a result, you could be left with very large out-of-pocket expenses if you receive hospital treatment. If you're still unsure, please call us on"," ",(0,Ut.tZ)("a",{href:`tel:${e}`,className:"no-underline",children:e})," ","to discuss the suitability of this cover."]})]})]})})}),(0,Ut.tZ)(na,{fieldName:"hasCard",children:a=>"true"==a&&(0,Ut.tZ)(na,{fieldName:"medicareCard",children:a=>"yellow"===a&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:"Reciprocal (yellow) Medicare cards are issued to residents of countries that have a Reciprocal Health Care Agreement (RHCA) with Australia."}),(0,Ut.BX)("p",{children:["Here you'll find a list of countries with"," ",(0,Ut.tZ)("a",{href:"https://www.humanservices.gov.au/individuals/services/medicare/reciprocal-health-care-agreements/visitors-australia/medical-care-visitors-australia",target:"_blank",className:"no-underline",rel:"noreferrer",children:"Reciprocal Health Care Agreements."})]})]})}),(0,Ut.BX)("div",{className:"bg-white bordered border-primary p-a-3 p-a-4-lg m-t-2 d-flex flex-column flex-md-row align-items-start",children:[(0,Ut.tZ)("img",{src:"https://www.medibank.com.au/content/dam/retail/health/images/overseas-medicare-yellow.png",alt:"Reciprocal Medicare card"}),"true"!==t&&(0,Ut.BX)("div",{className:"m-t-1 p-l-2-md",children:[(0,Ut.tZ)("p",{className:"m-t-0 small",children:(0,Ut.tZ)("strong",{children:"This cover may not be appropriate for you if you hold a Reciprocal Medicare card."})}),(0,Ut.BX)("p",{className:"small",children:["If you are looking to purchase cover as an overseas visitor, student or worker, please"," ",(0,Ut.tZ)("a",{href:"https://www.medibank.com.au/overseas-health-insurance/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"choose one of our overseas covers"}),"."]}),(0,Ut.BX)("p",{className:"small",children:["To discuss your cover options, please"," ",(0,Ut.tZ)("a",{href:"https://www.medibank.com.au/overseas-health-insurance/contact-us/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"contact us"}),"."]})]}),"true"===t&&(0,Ut.BX)("div",{className:"m-t-1 p-l-2-md",children:[(0,Ut.tZ)("p",{className:"m-t-0 small",children:(0,Ut.tZ)("strong",{children:"This cover may not be appropriate for you if you hold a Reciprocal Medicare card."})}),(0,Ut.BX)("p",{className:"small",children:["If you are looking to purchase cover as an overseas workers cover, please call us on"," ",(0,Ut.tZ)("a",{href:`tel:${e}`,className:"no-underline",children:e}),"."]}),(0,Ut.BX)("p",{className:"small",children:["To discuss your cover options, please"," ",(0,Ut.tZ)("a",{href:j(J()),target:"_blank",className:"no-underline",rel:"noreferrer",children:"contact us"}),"."]})]})]})]})})}),(0,Ut.tZ)(na,{fieldName:"hasCard",children:e=>"false"==e&&!t&&(0,Ut.BX)("div",{className:"bg-white bordered border-primary p-a-3 p-a-4-lg",children:[(0,Ut.tZ)("p",{className:"small m-t-0",children:(0,Ut.tZ)("strong",{children:"This cover will generally not be appropriate for you if you do not hold a Medicare card."})}),(0,Ut.tZ)("p",{className:"small",children:"Buying health cover without a Medicare card could leave you with very large out-of-pocket expenses if you receive hospital treatment."}),(0,Ut.BX)("p",{className:"small",children:["If you are looking to purchase cover as an overseas visitor, student or worker, please"," ",(0,Ut.tZ)("a",{href:"https://www.medibank.com.au/overseas-health-insurance/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"choose one of our overseas covers"}),"."]}),(0,Ut.BX)("p",{className:"small",children:["To discuss your cover options, please"," ",(0,Ut.tZ)("a",{href:H("https://www.medibank.com.au/contact-us/"),target:"_blank",className:"no-underline",rel:"noreferrer",children:"contact us"}),"."]})]})}),(0,Ut.tZ)(na,{fieldName:"hasCard",children:a=>"false"==a&&"true"===t&&(0,Ut.BX)("div",{className:"bg-white bordered border-primary p-a-3 p-a-4-lg",children:[(0,Ut.tZ)("p",{className:"small m-t-0",children:(0,Ut.tZ)("strong",{children:"This cover will generally not be appropriate for you if you do not hold a Medicare card."})}),(0,Ut.tZ)("p",{className:"small",children:"Buying health cover without a Medicare card could leave you with very large out-of-pocket expenses if you receive hospital treatment."}),(0,Ut.BX)("p",{className:"small",children:["If you are looking to purchase cover as an overseas workers cover, please call us on"," ",(0,Ut.tZ)("a",{href:`tel:${e}`,className:"no-underline",children:e}),"."]}),(0,Ut.BX)("p",{className:"small",children:["To discuss your cover options, please"," ",(0,Ut.tZ)("a",{href:j(J()),target:"_blank",className:"no-underline",rel:"noreferrer",children:"contact us"}),"."]})]})}),"true"===this.props.showApplication&&(0,Ut.tZ)(na,{fieldName:"hasCard",children:e=>"true"===e&&(0,Ut.tZ)(na,{fieldName:"medicareCard",children:e=>"yellow"!==e&&(0,Ut.BX)("div",{className:"bg-neutral-1",children:[(0,Ut.tZ)("hr",{}),(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Application to receive the Australian Government Rebate on Private Health Insurance as a reduced premium."})}),(0,Ut.tZ)("p",{children:"Enter your details below exactly as they appear on your Medicare card, even if that's different from what you’ve entered previously."}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-sm-6 m-t-4",children:(0,Ut.tZ)(s.Field,{label:"Medicare card number",name:"number",placeholder:"10 digit number on your card",component:la,validate:[Oa,Fa,Ba],...ma})})}),(0,Ut.tZ)(na,{fieldName:"diffNameOnMedicare",children:e=>(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[" ",(0,Ut.tZ)("label",{htmlFor:"firstName",children:"Full name on your Medicare card"})]})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{name:"firstName",id:"firstName",component:la,maxLength:"50",disabled:!e,validate:[Ta,ga]})}),(0,Ut.tZ)("div",{className:"col-12 col-md-5",children:(0,Ut.tZ)(s.Field,{name:"lastName",id:"lastName",disabled:!e,maxLength:"50",component:la,validate:[Ta,ga]})})]})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)(s.Field,{name:"diffNameOnMedicare",label:"My full name is different on my Medicare card.",component:jr})})}),(0,Ut.tZ)("div",{className:"row n-m-t-1",children:(0,Ut.BX)("div",{className:"col-12 col-md-4",children:[(0,Ut.tZ)(na,{fieldName:"medicareCard",children:e=>"green"===e&&(0,Ut.tZ)(s.Field,{label:"Valid to",name:"validTo",placeholder:"MM/YYYY",component:pi,value:"",validate:[Ta,La],...va})}),(0,Ut.tZ)(na,{fieldName:"medicareCard",children:e=>"blue"===e&&(0,Ut.tZ)(s.Field,{label:"Valid to",name:"validTo",placeholder:"DD/MM/YYYY",component:pi,value:"",validate:[Ta,ka],...ba})})]})})]})})})]})]})})}}const Bn=Fn,xn=({id:e,name:t,label:a,opts:r,selectedVal:i,onChange:n,stepName:o})=>{const s=e=>{o&&Cr({fieldLabel:a,name:g.JOIN,stepName:o}),n(e)};return(0,Ut.BX)("div",{className:"input-group",children:[a?(0,Ut.tZ)("label",{children:a}):"",(0,Ut.tZ)("div",{className:"btn-group btn-group-options",children:r.map((a=>(0,Ut.BX)("label",{className:"btn btn-lg btn-group-radio",htmlFor:`${e}_${a.name}`,children:[(0,Ut.tZ)("input",{type:"radio",name:t,id:`${e}_${a.name}`,value:a.val,defaultChecked:a.val===i,onChange:s}),(0,Ut.tZ)("div",{className:"input-label-wrapper",children:a.sub?(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("span",{children:a.name}),(0,Ut.tZ)("span",{children:a.sub})]}):a.name})]},`${e}_${a.name}`)))})]})};class Yn extends i().Component{constructor(e){super(e)}handleClaimAGRUpfront(e){const t=Te.getQuoteDetails(),a=parseInt(document.getElementById("incomeTier").value,10);"true"===e.target.value?(t.claimAGRUpfront=!0,t.incomeRange=0===a?0:a+1,null!==this.retainUserSelectedValue&&(t.incomeRange=this.retainUserSelectedValue)):(this.retainUserSelectedValue=0===a?0:a+1,t.claimAGRUpfront=!1,t.incomeRange=4),Te.updateUserQuoteDetails(t)}
1mapAGRFormType(){const e="SUBSIDISED"===G()?ee():"",t="SUBSIDISED"===G()?te():"";let a;return["DOLLAR","PERCENTAGE","FULL","BASEPRODUCT"].includes(t)&&"LOCKED_30_FIXED"===e?a="TYPE1":["DOLLAR","PERCENTAGE","FULL","BASEPRODUCT"].includes(t)&&"LOCKED_0"===e||["DOLLAR","PERCENTAGE","FULL","BASEPRODUCT"].includes(t)&&"UNLOCKED"===e?a="TYPE2":["DOLLAR","PERCENTAGE","FULL","BASEPRODUCT"].includes(t)&&"LOCKED_30"===e&&(a="TYPE3"),a}updateIncomeType(e){const t=Te.getQuoteDetails();"S"===e.target.value?t.incomeType="S":t.incomeType="F",Te.updateUserQuoteDetails(t)}staticIncomeTier(){const e=Te.getQuoteDetails();w(e.incomeType).map(((t,a)=>`<p>${0===a?"Base Tier":`Tier ${a}`} - ${t} (${T(e.incomeType,a,"S"===e.scale||"P"===e.scale?e.age:Math.max(e.age,e.partnerAge))}% rebate)</p>`))}render(){const{quote:e,isSubResidential:t,dualRateActive:a,isAGRChangeEnabled:r,updateIncomeRange:i}=this.props;return(0,Ut.BX)(s.FormSection,{name:"eagr",children:[(0,Ut.tZ)("div",{className:"row d-none d-xl-block",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("h2",{className:"m-t-0",children:"Australian Government Rebate (AGR)"}),(0,Ut.tZ)("p",{className:"m-b-2",children:"Please have your Medicare details handy."})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.BX)("div",{className:"bg-neutral-1 bordered border-neutral-4 m-t-2 p-a-3 p-a-4-lg",children:["false"===t&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("h4",{className:"m-t-0",children:"Do you want to apply and take the rebate as an upfront deduction?"}),(0,Ut.tZ)("p",{children:"By applying for the Australian Government Rebate you may be eligible to lower your private health insurance premium. This is paid by the government as a percentage discount to your cover premium."})]})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-12 col-md-4 m-t-2",children:(0,Ut.tZ)(s.Field,{name:"claimAGRUpfront",id:"claimAGRUpfront",direction:"flex-row",component:ui,opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],onChange:this.handleClaimAGRUpfront.bind(this),defaultChecked:"true"})}),(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("hr",{className:"m-t-0"})})]})]}),(0,Ut.tZ)(na,{fieldName:"claimAGRUpfront",children:n=>(0,Ut.BX)("div",{className:"false"===n?"d-none":"",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-0",children:(0,Ut.tZ)("strong",{children:"The level of rebate you receive is dependent on your age and income."})})})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12 col-md-7 m-t-2",children:[(0,Ut.tZ)(xn,{name:"incomeType",id:"incomeType",label:"Type of income",opts:[{name:"Single income",val:"S"},{name:"Family income",val:"F"}],onChange:this.updateIncomeType.bind(this),selectedVal:e.incomeType,validate:[Ta],stepName:N.AGR}),(0,Ut.tZ)("p",{className:"small n-m-t-2 p-t-1",children:"S"===e.incomeType?"Single income.":"Family income includes de facto & single parents."})]})}),(0,Ut.tZ)(na,{fieldName:"coveredByPolicy",children:t=>(0,Ut.tZ)(na,{fieldName:"allEntitledForMedicare",children:a=>(0,Ut.BX)("div",{className:"row",children:["TYPE1"!==this.mapAGRFormType()&&(0,Ut.tZ)("div",{className:"col-12 col-md-8 m-t-4",children:(0,Ut.tZ)(yi,{label:"S"===e.incomeType?"Your annual income*":"Annual family income*",name:"incomeTier",id:"incomeTier",onChange:i,disabled:"false"===t||"false"===a,opts:w(e.incomeType).map(((t,a)=>({name:`${0===a?"Base Tier":`Tier ${a}`} - ${t} (${T(e.incomeType,a,"S"===e.scale||"P"===e.scale?e.age:Math.max(e.age,e.partnerAge))}% rebate) `,val:a}))),value:0===e.incomeRange?0:e.incomeRange-1,stepName:N.AGR})}),"TYPE1"===this.mapAGRFormType()&&(0,Ut.BX)("div",{className:"col-12 m-t-2",children:[(0,Ut.tZ)("hr",{className:"m-t-1"}),(0,Ut.tZ)("p",{className:"m-t-0",children:"AGR tier is set by your employer*:"}),(0,Ut.BX)("p",{className:"m-t-1",children:[("false"===t||"false"===a)&&(0,Ut.tZ)("strong",{children:"AGR is not applicable as it's been stated that the applicant is not covered by the policy, or because all people on the policy are not entitled to Medicare."}),"false"!==t&&"false"!==a&&(0,Ut.BX)("strong",{children:["Base Tier - ",w(e.incomeType)[0]," (",T(e.incomeType,0,"S"===e.scale||"P"===e.scale?e.age:Math.max(e.age,e.partnerAge)),"% rebate)"]})]}),(0,Ut.BX)("div",{className:"bordered border-neutral-4 bg-white p-a-3 p-a-4-lg m-y-2",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:"All tier options of Australian Government Rebate"}),w(e.incomeType).map(((t,a)=>(0,Ut.BX)("p",{children:[0===a?"Base Tier":`Tier ${a}`," - ",t," (",T(e.incomeType,a,"S"===e.scale||"P"===e.scale?e.age:Math.max(e.age,e.partnerAge)),"% rebate)"]},a)))]})]})]})})}),"false"===t&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[a&&r&&(0,Ut.BX)("p",{className:"m-t-0 m-b-1",children:["From ",oe("MMMM D"),", your AGR will change to"," ",(0,Ut.BX)("strong",{children:[T(e.incomeType,0===e.incomeRange?0:e.incomeRange-1,e.age,!0),"%"]}),"."]}),(0,Ut.BX)("p",{className:"m-t-2",children:["*Please note, it's important to nominate your correct income tier otherwise you may incur a tax liability. This is your income for Medicare Levy Surcharge purposes which is different to your 'taxable income'. For more information please visit"," ",(0,Ut.tZ)("a",{href:"https://www.privatehealth.gov.au/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"privatehealth.gov.au"}),". Please also note the family income threshold is increased by $1,500 for each depen
1dent child after the first."]}),(0,Ut.tZ)("p",{children:"If at any stage you wish to nominate a new income tier or stop receiving the Australian Government Rebate as a reduced premium, please notify us as soon as possible."})]})}),"TYPE1"===this.mapAGRFormType()&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:"*As a condition of your employer’s corporate plan you are required to nominate the Base Tier rebate as your default tier."}),(0,Ut.tZ)("p",{children:"This may result in you having to repay part or all of the Australian Government Rebate as part of your tax return if you are not entitled to this rebate. Your tier is based on your income for Medicare Levy Surcharge purposes which is different to your taxable income."}),(0,Ut.tZ)("p",{children:"Please also note the family income threshold is increased by $1500 for each dependent child after the first."}),(0,Ut.tZ)("p",{children:"If at any stage you wish to nominate a new income tier, you should notify your health fund as soon as possible."}),(0,Ut.BX)("p",{children:["For more information please speak to your employer or visit"," ",(0,Ut.tZ)("a",{href:"https://www.privatehealth.gov.au/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"privatehealth.gov.au"}),"."]})]})}),"TYPE2"===this.mapAGRFormType()&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:"*You are required to register for Australian Government Rebate to take advantage of the subsidised arrangement offered by your employer. It's important to nominate your correct income tier otherwise you may incur a tax liability. Your tier is based on your income for Medicare Levy Surcharge purposes which is different to your taxable income."}),(0,Ut.tZ)("p",{children:"Please also note the family income threshold is increased by $1500 for each dependent child after the first."}),(0,Ut.tZ)("p",{children:"If at any stage you wish to nominate a new income tier, you should notify your health fund as soon as possible."}),(0,Ut.BX)("p",{children:["For more information please visit"," ",(0,Ut.tZ)("a",{href:"https://www.privatehealth.gov.au/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"privatehealth.gov.au"}),"."]})]})}),"TYPE3"===this.mapAGRFormType()&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:"*You are required to register for Australian Government Rebate to take advantage of the subsidised arrangement of your employer."}),(0,Ut.tZ)("p",{children:"Your employer pays a subsidy which is inclusive of the AGR Base Tier amount. You can choose a different AGR tier however, you will need to pay the premium difference to Medibank yourself. Your tier is based on your income for Medicare Levy Surcharge purposes which is different to your taxable income."}),(0,Ut.tZ)("p",{children:"Please also note the family income threshold is increased by $1500 for each dependent child after the first."}),(0,Ut.tZ)("p",{children:"If at any stage you wish to nominate a new income tier, you should notify your health fund as soon as possible."}),(0,Ut.BX)("p",{children:["For more information please speak to your employer or visit"," ",(0,Ut.tZ)("a",{href:"https://www.privatehealth.gov.au/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"privatehealth.gov.au"}),"."]})]})})]})}),(0,Ut.tZ)(na,{fieldName:"claimAGRUpfront",children:e=>"false"===e&&(0,Ut.BX)("div",{className:"bg-white bordered border-neutral-4 m-t-2 p-a-3 p-a-4-lg",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"No rebate will be applied to your premium."})}),(0,Ut.tZ)("p",{children:"If you don't claim the Australian Government Rebate, as an up front reduction to your premium you can claim your entitlement through your tax return instead. On confirmation of your membership, you can also register for the rebate via My Medibank or fax/post the form which will be emailed to you. Please note, it's important to nominate your correct income tier otherwise you may incur a tax liability."})]})})]})})})]})}}
1Yn.propTypes={quote:{incomeType:xt().number,incomeRange:xt().number,scale:xt().string,age:xt().number,partnerAge:xt().number},dualRateActive:xt().bool,isAGRChangeEnabled:xt().bool,updateIncomeRange:xt().func,isSubResidential:xt().func},Yn.defaultProps={quote:{scale:""},dualRateActive:!1,isAGRChangeEnabled:!1,updateIncomeRange:null,isSubResidential:null};const Un=Yn;class qn extends i().Component{constructor(e){super(e)}renderChildren=function(e,t){const a=[];for(let r=0;r<=e-1;r++)a.push((0,Ut.BX)(i().Fragment,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("hr",{}),(0,Ut.BX)("h4",{children:["Child ",r+1]})]})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.BX)("div",{className:"col-12 col-md-3 word-break-all",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"First name"})}),(0,Ut.tZ)("p",{children:t[r].givenname})]}),(0,Ut.BX)("div",{className:"col-12 col-md-3 word-break-all",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Last name"})}),(0,Ut.tZ)("p",{children:t[r].familyname})]}),(0,Ut.BX)("div",{className:"col-12 col-md-3",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Date of birth"})}),(0,Ut.tZ)("p",{children:t[r].childdob})]}),(0,Ut.BX)("div",{className:"col-12 col-md-3",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Gender"})}),(0,Ut.tZ)("p",{children:"Mr"==t[r].title?"Male":"Female"})]})]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Dependent child"})}),(0,Ut.tZ)("p",{children:"Yes"})]})})]},r));return a};render(){const{applicantDetails:e,quote:t,scrollHandler:a}=this.props,{childcount:r}=e,{child:i}=e,n=document.getElementById("js-join-app"),o=n?JSON.parse(n.dataset.optionalAgr):"";return(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)(sa,{title:"Review your personal details",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{className:"m-t-1",children:"Please make sure your details below are correct:"}),o&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-6 col-sm-4 p-b-1 p-t-3",children:(0,Ut.tZ)("strong",{children:"Full name"})}),(0,Ut.BX)("div",{className:"col-6 col-sm-8 p-b-1 p-t-3",children:[" ",e.personalDetails.title," ",e.personalDetails.firstname," ",e.personalDetails.lastname]})]}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-6 col-sm-4 p-y-1",children:(0,Ut.tZ)("strong",{children:"Gender"})}),(0,Ut.tZ)("div",{className:"col-6 col-sm-8 p-y-1",children:e.personalDetails.gender})]}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-6 col-sm-4 p-y-1",children:(0,Ut.tZ)("strong",{children:"Email address"})}),(0,Ut.tZ)("div",{className:"col-6 col-sm-8 p-y-1",children:e.personalDetails.emailaddress})]}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-6 col-sm-4 p-y-1",children:(0,Ut.tZ)("strong",{children:"Phone number"})}),(0,Ut.BX)("div",{className:"col-6 col-sm-8 p-y-1",children:[`${e.personalDetails.phonenumber}`.slice(0,4)," ",e.personalDetails.phonenumber.slice(4,7)," ",e.personalDetails.phonenumber.slice(7,10)]})]}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.BX)("div",{className:"col-6 col-sm-4 p-y-1",children:[" ",(0,Ut.tZ)("strong",{children:"Residential address"})]}),(0,Ut.BX)("div",{className:"col-6 col-sm-8 p-y-1",children:[e.personalDetails.resaddress.addressLine1,e.personalDetails.resaddress.addressLine2?`, ${e.personalDetails.resaddress.addressLine2}`:"",", ",e.personalDetails.resaddress.suburb," ",e.personalDetails.resaddress.state," ",e.personalDetails.resaddress.postcode]})]}),!this.props.applicantDetails.personalDetails.samepostaladdress&&(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-6 col-sm-4 p-y-1",children:(0,Ut.tZ)("strong",{children:"Postal address"})}),(0,Ut.BX)("div",{className:"col-6 col-sm-8 p-y-1",children:[e.personalDetails.postaddress.addressLine1,e.personalDetails.postaddress.addressLine2?`, ${e.personalDetails.postaddress.addressLine2}`:"",", ",e.personalDetails.postaddress.suburb," ",e.personalDetails.postaddress.state," ",e.personalDetails.postaddress.postcode]})]}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.tZ)("div",{className:"col-6 col-sm-4 p-y-1",children:(0,Ut.tZ)("strong",{children:"Date of birth"})}),(0,Ut.tZ)("div",{className:"col-6 col-sm-8 p-y-1",children:e.personalDetails.dob})]})]}),!o&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("p",{className:"m-t-4",children:(0,Ut.tZ)("strong",{children:"Full name"})}),(0,Ut.BX)("p",{className:"m-t-1",children:[e.personalDetails.title," ",e.personalDetails.firstname," ",e.personalDetails.lastname]}),(0,Ut.tZ)("p",{className:"m-t-3",children:(0,Ut.tZ)("strong",{children:"Gender"})}),(0,Ut.tZ)("p",{className:"m-t-1",children:e.personalDetails.gender}),(0,Ut.tZ)("p",{className:"m-t-3",children:(0,Ut.tZ)("strong",{children:"Email address"})}),(0,Ut.tZ)("p",{className:"m-t-1",children:e.personalDetails.emailaddress}),(0,Ut.tZ)("p",{className:"m-t-3",children:(0,Ut.tZ)("strong",{children:"Phone number"})}),(0,Ut.BX)("p",{className:"m-t-1",children:[`${e.personalDetails.phonenumber}`.slice(0,4)," ",e.personalDetails.phonenumber.slice(4,7)," ",e.personalDetails.phonenumber.slice(7,10)]}),(0,Ut.tZ)("p",{className:"m-t-3",children:(0,Ut.tZ)("strong",{children:"Residential address"})}),(0,Ut.BX)("p",{className:"m-t-1",children:[e.personalDetails.resad
1dress.addressLine1,e.personalDetails.resaddress.addressLine2?`, ${e.personalDetails.resaddress.addressLine2}`:"",", ",e.personalDetails.resaddress.suburb," ",e.personalDetails.resaddress.state," ",e.personalDetails.resaddress.postcode]}),!this.props.applicantDetails.personalDetails.samepostaladdress&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("p",{className:"m-t-3",children:(0,Ut.tZ)("strong",{children:"Postal address"})}),(0,Ut.BX)("p",{className:"m-t-1",children:[e.personalDetails.postaddress.addressLine1,e.personalDetails.postaddress.addressLine2?`, ${e.personalDetails.postaddress.addressLine2}`:"",", ",e.personalDetails.postaddress.suburb," ",e.personalDetails.postaddress.state," ",e.personalDetails.postaddress.postcode]})]}),(0,Ut.tZ)("p",{className:"m-t-3",children:(0,Ut.tZ)("strong",{children:"Date of birth"})}),(0,Ut.tZ)("p",{className:"m-t-1",children:e.personalDetails.dob})]})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 m-t-4",children:(0,Ut.tZ)("button",{className:"btn btn-dark-ghost btn-lg",onClick:a.bind(this,".personal-details-wpr"),children:"Edit"})})})]}),"S"!==t.scale&&(0,Ut.BX)(sa,{title:"Provide details of all people covered by the policy (do not include yourself)",children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("p",{className:"m-t-1",children:"Please make sure your details below are correct:"})})}),("C"===t.scale||"F"===t.scale)&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12",children:(0,Ut.tZ)("h4",{children:"Partner's details"})})}),(0,Ut.BX)("div",{className:"row",children:[(0,Ut.BX)("div",{className:"col-12 col-md-3 word-break-all",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"First name"})}),(0,Ut.tZ)("p",{children:e.dependentDetails.firstname})]}),(0,Ut.BX)("div",{className:"col-12 col-md-3 word-break-all",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Last name"})}),(0,Ut.tZ)("p",{children:e.dependentDetails.lastname})]}),(0,Ut.BX)("div",{className:"col-12 col-md-3",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Date of birth"})}),(0,Ut.tZ)("p",{children:e.dependentDetails.dob})]}),(0,Ut.BX)("div",{className:"col-12 col-md-3",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Gender"})}),(0,Ut.tZ)("p",{children:e.dependentDetails.gender})]})]}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Dependent child"})}),(0,Ut.tZ)("p",{children:"No"})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 m-t-4",children:(0,Ut.tZ)("button",{className:"btn btn-dark-ghost btn-lg",onClick:a.bind(this,".dependent-details-wpr"),children:"Edit"})})})]}),e.childcount>0&&("F"==t.scale||"P"==t.scale)&&this.renderChildren(r,i,a),e.childcount>0&&("F"==t.scale||"P"==t.scale)&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 m-t-4",children:(0,Ut.tZ)("button",{className:"btn btn-dark-ghost btn-lg",onClick:a.bind(this,".child-details-wpr"),children:"Edit"})})})]})]})}}const Xn=qn;class Vn extends i().Component{constructor(e){super(e),this.todayDate=d()().format("DD/MM/YYYY")}render(){return(0,Ut.tZ)(sa,{title:"Terms of use & declaration",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.BX)("p",{children:["Questions about Medicare eligibility can be made at any Human Services' Service Centre or by calling"," ",(0,Ut.tZ)("a",{href:"tel:132011",className:"no-underline","data-analytics-title":"terms of use and declaration","data-analytics-component":"terms of use and declaration",children:"132 011"}),"."]}),(0,Ut.BX)("p",{children:["For more information about the Australian Government Rebate on Private Health Insurance, go to"," ",(0,Ut.tZ)("a",{href:"https://www.privatehealth.gov.au/",target:"_blank",rel:"noreferrer",children:"privatehealth.gov.au"})]}),(0,Ut.tZ)("p",{children:"Note: Call charges apply - calls from mobile phones may be charged at a higher rate."}),(0,Ut.tZ)("h4",{children:"Privacy note"}),(0,Ut.BX)("p",{children:["Your information may be provided to the Australian Government Department of Human Services. The Department of Human Services uses this information for administering the Australian Government Rebate on private health insurance as a reduced premium. The collection of this information is permitted by the"," ",(0,Ut.tZ)("i",{children:"Privacy Act 1988"}),". The Department of Human Services may disclose this information to the Department of Health, the Australian Taxation Office, anyone who you have agreed to have your information or other parties where the release is required or authorised by law (including for the purpose of research or conducting investigations)."]}),(0,Ut.BX)("p",{children:["You can get more information about the way in which the Department of Human Services will manage your personal information, including its privacy policy, at"," ",(0,Ut.tZ)("a",{href:"https://www.humanservices.gov.au/individuals/privacy",target:"_blank",className:"no-underline",rel:"noreferrer",children:"humanservices.gov.au/privacy"}),"."]}),(0,Ut.tZ)("hr",{}),(0,Ut.tZ)("h4",{children:"Declaration"}),(0,Ut.tZ)("p",{children:"I declare that the information I have provided in this form is complete and correct. I understand that giving false or misleading information is a serious offence."}),(0,Ut.tZ)("h6",{children:"Declaration date"}),(0,Ut.tZ)("p",{children:`${this.todayDate}`}),(0,Ut.tZ)("div",{className:"m-t-2",children:(0,Ut.tZ)(s.Field,{id:"consent",name:"consent",component:jr,validate:Ta,label:"Please check this box to indicate you have read and understood the declaration."})})]})})})}}const Hn=Vn;class jn extends i().Component{constructor(e){super(e)}render(){const{isSubResidential:e,channelbasedCallingNumbers:t}=this.props;return(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("hr",{}),(0,Ut.BX)("p",{children:["All people listed on the policy must be eligible to claim Medicare for you to receive the rebate as a reduced premium. If you are unsure whether you are eligible for Medicare, go to"," ",(0,Ut.tZ)("a",{href:"https://www.humanservices.gov.au/customer/services/medicare/medicare-card",target:"_blank",className:"no-underline word-break-all",rel:"noreferrer",children:"https://www.humanservices.gov.au/customer/services/medicare/medicare-card"})," ","for more information."]}),(0,Ut.BX)("div",{className:"bg-neutral-1 bordered border-neutral-4 m-t-4 p-a-3 p-x-4-lg p-t-4-lg p-b-1-lg",children:[(0,Ut.tZ)("h4",{className:"m-t-0 m-b-2",children:"Are all people on the policy listed above on a Medicare card or entitled to a Medicare card?"}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-4",children:(0,Ut.tZ)(s.Field,{name:"eagr.allEntitledForMedicare",component:ui,direction:"flex-row",opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],onChange:e=>this.props.syncIncomeTier(e),validate:[Ta]})})}),(0,Ut.tZ)(na,{fieldName:"eAGR.allEntitledForMedicare",children:t=>"false"===t&&!e&&(0,Ut.BX)("div",{className:"bg-white bordered border-neutral-4 m-t-0 p-a-3 p-a-4-lg m-b-3",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:(0,Ut.tZ)("strong",{children:"If you, or any member on the membership, have limited or no access to Medicare, you could be left with very large out-of-pocket expenses if you receive hospital treatment."})}),(0,Ut.tZ)("p",{children:"Answering 'No' means you will not be able to register for the rebate on private health insurance. However, you can still continue with your Medibank membership application without the rebate as premium reduction by completing the remainder of the application form below."}),(0,Ut.BX)("p",{children:["If you are looking to purchase cover as an overseas visitor, student or worker, please"," ",(0,Ut.tZ)("a",{href:"https://www.medibank.com.au/overseas-health-insurance/",target:"_blank",className:"no-underline",rel:"noreferrer",children:"choose one of our overseas covers"}),"."]}),(0,Ut.BX)("p",{children:["To discuss your cover options, please"," ",(0,Ut.tZ)("a",{href:H("/contact-us/"),target:"_blank",className:"no-underline",rel:"noreferrer",children:"contact us"}),"."]})]})}),(0,Ut.tZ)(na,{fieldName:"eAGR.allEntitledForMedicare",children:a=>"false"===a&&"true"===e&&(0,Ut.BX)("div",{className:"bg-white bordered border-neutral-4 m-t-0 p-a-3 p-a-4-lg m-b-3",children:[(0,Ut.tZ)("p",{className:"m-t-0",children:(0,Ut.tZ)("strong",{children:"If you, or any member on the membership, have limited or no access to Medicare, you could be left with very large out-of-pocket expenses if you receive hospital treatment."})}),(0,Ut.tZ)("p",{children:"Answering 'No' means you will not be able to register for the rebate on private health insurance. However, you can still continue with your Medibank membership application without the rebate as premium reduction by completing the remainder of the application form below."}),(0,Ut.BX)("p",{children:["If you are looking to purchase cover as an overseas worker, please call"," ",(0,Ut.tZ)("a",{href:`tel:${t}`,className:"no-underline",children:t}),"."]}),(0,Ut.BX)("p",{children:["To discuss your cover options, please"," ",(0,Ut.tZ)("a",{href:j(J()),target:"_blank",className:"no-underline",rel:"noreferrer",children:"contact us"}),"."]})]})})]})]})})}}const $n=jn;class Jn extends i().Component{constructor(e){super(e)}render(){return(0,Ut.tZ)(sa,{title:"Policy details",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Name of private health fund"})}),(0,Ut.tZ)("p",{children:"Medibank"}),(0,Ut.tZ)("p",{children:(0,Ut.tZ)("strong",{children:"Date of premium reduction to commence"})}),(0,Ut.tZ)("p",{children:this.props.coverStartDate}),(0,Ut.tZ)("div",{className:"bg-neutral-1 bordered border-neutral-4 m-t-4 p-a-3 p-a-4-lg",children:(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12",children:[(0,Ut.tZ)("h4",{className:"m-t-0 m-b-2",children:"Are you covered by this policy?"}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-4",children:(0,Ut.tZ)(s.Field,{name:"eagr.coveredByPolicy",direction:"flex-row",component:ui,opts:[{name:"Yes",val:"true"},{name:"No",val:"false"}],selectedVal:"true",validate:[Ta],onChange:e=>this.props.syncIncomeTier(e)})})}),(0,Ut.tZ)("p",{className:"m-t-0",children:"(If No) Applicants not covered by the policy cannot claim the Australian Government Rebate on Private Health Insurance (excluding child only policies) and the employers and trustees of organisations cannot claim the Australian Government Rebate on Private Health Insurance on policies paid on behalf of employees."})]})})})]})})})}}const Qn=Jn;class Gn extends i().Component{constructor(e){super(e),this.AGRexisitingV
1alue=parseInt(e.quote.incomeRange,10)}componentDidMount(){const{cover:e,quote:t,price:a}=this.props;Lt.trackJoinFormLoad({eventName:ct.JOIN_REBATE,step:N.AGR,productData:Tt(t,a,e)})}updateIncomeRange(e){const t=Te.getQuoteDetails();t.incomeRange=parseInt(e.target.value,10)+1,this.AGRexisitingValue=t.incomeRange,Te.updateUserQuoteDetails(t)}syncIncomeTier(e){const t=Te.getQuoteDetails();document.getElementById("eagr.coveredByPolicy_No").checked||document.getElementById("eagr.allEntitledForMedicare_No").checked?t.incomeRange=4:t.incomeRange=this.AGRexisitingValue,Te.updateUserQuoteDetails(t)}render(){const{quote:e,handleSubmit:t,submitting:a,scrolltoEditRelaventDetails:r,channelbasedCallingNumbers:i,yourDetails:n,isSubResidential:o}=this.props;return(0,Ut.BX)("form",{onSubmit:t,children:[(0,Ut.tZ)("div",{className:"row",children:(0,Ut.BX)("div",{className:"col-12 col-xl-11",children:[(0,Ut.tZ)(Un,{quote:e,dualRateActive:window.phi.dualrate.dualRateActive,isAGRChangeEnabled:window.phi.dualrate.isAGRChangeEnabled,updateIncomeRange:this.updateIncomeRange.bind(this),isSubResidential:o}),(0,Ut.tZ)(na,{fieldName:"eagr.claimAGRUpfront",children:e=>(0,Ut.tZ)(Bn,{applicantDetails:n.data.personalDetails,showApplication:e,channelbasedCallingNumbers:i,isSubResidential:o})}),(0,Ut.tZ)(na,{fieldName:"eagr.claimAGRUpfront",children:t=>"true"===t&&(0,Ut.tZ)(na,{fieldName:"medicareDetails.hasCard",children:t=>"true"===t&&(0,Ut.tZ)(na,{fieldName:"medicareDetails.medicareCard",children:t=>t&&"yellow"!==t&&(0,Ut.BX)(Ut.HY,{children:[(0,Ut.tZ)(Qn,{coverStartDate:n.data.personalDetails.coverstartdate,syncIncomeTier:this.syncIncomeTier.bind(this)}),(0,Ut.tZ)(Xn,{applicantDetails:n.data,quote:e,scrollHandler:r}),(0,Ut.tZ)($n,{syncIncomeTier:this.syncIncomeTier.bind(this),isSubResidential:o,channelbasedCallingNumbers:i}),(0,Ut.tZ)(Hn,{})]})})})})]})}),(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-xl-11",children:(0,Ut.tZ)(na,{fieldName:"medicareDetails.hasCard",children:e=>"true"===e&&(0,Ut.tZ)(na,{fieldName:"medicareDetails.medicareCard",children:e=>e&&("green"===e||"blue"===e)&&(0,Ut.tZ)("div",{className:"row",children:(0,Ut.tZ)("div",{className:"col-12 col-md-4",children:(0,Ut.BX)("button",{type:"submit",disabled:a,className:"btn btn-primary m-t-2 btn-lg",children:[a&&(0,Ut.BX)("span",{children:["Loading ",(0,Ut.tZ)("span",{className:"spinner spinner-md d-inline-flex"})]}),!a&&(0,Ut.tZ)("span",{children:"Next"})]})})})})})})})]})}}Gn.propTypes={yourDetails:{},quote:{},isSubResidential:xt().bool,submitting:xt().bool,channelbasedCallingNumbers:xt().string,handleSubmit:xt().func,scrolltoEditRelaventDetails:xt().func},Gn.defaultProps={yourDetails:{},quote:{},isSubResidential:!1,submitting:!1,channelbasedCallingNumbers:"",handleSubmit:null,scrolltoEditRelaventDetails:null};const Wn=Gn;(async()=>{const e=document.getElementById("js-subs-join-app"),t=Te.getQuoteDetails();if(e&&t){const a=new URLSearchParams(decodeURI(location.search)),r=JSON.parse(a.has("cover")?a.get("cover"):null);let i,l,c;r.excessToolTip&&(l=document.getElementById(r.excessToolTip)?document.getElementById(r.excessToolTip).textContent:""),r.claimBackToolTip&&(c=document.getElementById(r.claimBackToolTip)?document.getElementById(r.claimBackToolTip).textContent:""),r&&(i={title:r.title,productId:r.productId,productType:r.productType},r.hospitalId&&Object.assign(i,{excess:{id:r.hospitalId,val:r.excess}}),r.extrasId&&Object.assign(i,{claimback:{id:r.extrasId,val:r.claimback},extrasIdIndex:r.extrasIdIndex}));const m=function(e){const t=d()(e,"DD/MM/YYYY",!0);return d()().diff(t,"years")},u=function(e,t){const a=Pr()||{},r={personalDetails:{currentMember:"false",coverstartdate:d()().format("DD/MM/YYYY"),hadContinuousCover:!0,phonenumberconsent:!1,resaddress:{state:e.state,type:"auto"},postaddress:{state:e.state,type:"auto"},samepostaladdress:!0}};if(a.personalDetails){const t=a.personalDetails,i=r.personalDetails;if(i.currentMember="false",t.coverstartdate){const e=d()(t.coverstartdate,"DD/MM/YYYY",!0);e.isValid()&&!e.isBefore(d()())?i.coverstartdate=t.coverstartdate:i.coverstartdate=d()().format("DD/MM/YYYY")}else i.coverstartdate=d()().format("DD/MM/YYYY");if(i.title=t.title,i.firstname=t.firstname,i.lastname=t.lastname,i.gender=t.gender,i.emailaddress=t.emailaddress,i.phonenumber=t.phonenumber,t.dob){m(t.dob)===e.age&&(i.dob=t.dob,i.hadContinuousCover=t.hadContinuousCover)}i.samepostaladdress=t.samepostaladdress,t.resaddress&&t.resaddress.state===e.state&&(i.resaddress=t.resaddress),i.resaddress.type||(i.resaddress.type="auto"),t.postaddress&&(i.postaddress=t.postaddress,i.postaddress.type||(i.postaddress.type="auto")),i.isEmployee=t.isEmployee,
1i.employeeId=t.employeeId,i.deductPayroll=t.deductPayroll}if(t){const e=a.visaDetails;e&&(r.visaDetails=e)}if("C"===e.scale||"F"===e.scale)if(a.dependentDetails){const t=a.dependentDetails,i={};if(i.title=t.title,i.firstname=t.firstname,i.lastname=t.lastname,i.gender=t.gender,t.dob){m(t.dob)===e.partnerAge&&(i.dob=t.dob,i.hadContinuousCover=t.hadContinuousCover)}else i.hadContinuousCover=!0;r.dependentDetails=i}else r.dependentDetails={hadContinuousCover:!0};if("F"!==e.scale&&"P"!==e.scale||(a.child?r.child=a.child:r.child=(()=>{const e=[];for(let t=0;t<10;t++)e.push({fullTimeStudent:!0});return e})(),a.childcount?r.childcount=a.childcount:r.childcount=1),i.claimback&&i.claimback.val&&(a.medicareDetails?r.medicareDetails=a.medicareDetails:r.medicareDetails={medicareCard:"green"}),a.healthHistory?r.healthHistory=a.healthHistory:r.healthHistory={hascurrentinsurance:"false"},i.claimback&&"none"===i.claimback.val);else{const e={};if(i.claimback&&i.excess&&a.offers&&a.offers.promoCode&&a.offers.promoCode.end){const t=d()(a.offers.promoCode.end,"DD/MM/YYYY",!0);t.isValid()&&!t.isBefore(d()())&&(e.promoCode=a.offers.promoCode)}r.offers=e}return r},p=function(){return{eagr:{claimAGRUpfront:"true",coveredByPolicy:"true"},medicareDetails:{hasCard:"true",medicareCard:"green"}}},h=function(){setTimeout((()=>{const e=document.querySelector(".input-group-alert"),t=document.querySelector(".input-group-alert input");e&&e.scrollIntoView(),t&&t.focus()}),100)},v=e?JSON.parse(e.dataset.configUrls):"",b=e?JSON.parse(e.dataset?.offers||null):"",f=e.dataset.nonresident?e.dataset.nonresident:"",y=e?e.dataset.promoDisplay:"bottom",g={defaultAddressType:"auto",cover:i,hosToolTip:l,exToolTip:c,quote:t,initVals:u(t,f),urls:{addressAPI:{RETAIL_TEMPJOIN_API_URL:"/bin/medibank/tempjoin/",OVERSEAS_TEMPJOIN_API_URL:"/api/v1/vcjoin/tempJoin",JOIN_PAYMENT_API_URL:"/services/joinservices/join",MAJOR_PARTNER_MEMBER_VALIDATE_API_URL:"https://retail-api-prod.ha-medibank.com/api/v1/member/profile/validate",VELOCITY_JOIN_URL:"https://join.velocityfrequentflyer.com/?channelname=dynamic&promocode=medibank#!/join/account",VELOCITY_LOGIN_URL:"https://experience.velocityfrequentflyer.com/my-velocity/",VELOCITY_FORGOT_MEMBERSHIP_URL:"https://www.velocityfrequentflyer.com/content/ForgotMembership/",WELCOME_EMAIL_API_URL:"/bin/medibank/email-welcome/",CAMPAIGN_API_URL:"/bin/medibank/campaigns",DOCGEN_API_URL:"/bin/medibank/docGen/",ADDRESS_DEV_API_URL:"https://api-dev.intdev.ha-medibank.com",ADDRESS_SIT_API_URL:"https://api-sit.intdev.ha-medibank.com",ADDRESS_PREPROD_API_URL:"https://api-preprod.int.ha-medibank.com",ADDRESS_PRODUCTION_API_URL:"https://api.int.ha-medibank.com",EMAIL_QUOTE_API_URL:"/bin/medibank/email-quote/",PRICING_API_URL:"/bin/medibank/price/",QUOTE_API_URL:"/bin/medibank/quotes/",LEAD_API_URL:"/bin/medibank/leads/",BFF_API_URL:"/api/v1/forms/bff",FRAUD_API_URL:"/api/v1/forms/reportFraud",PAYMENT_FORM_API_URL:"/api/v1/forms/payPremiums",UNSUBSCRIBE_API_URL:"/api/v1/forms/unsubscribeEmail",CORPORATE_SEARCH_API_URL:"/bin/medibank/clientlist.html",API_AUTH_TOKEN_NON_PROD:"eyJraWQiOiIxdlRCM0dLRWdRVEIzclg5TVhlM2RtNUZsQ2tjQ0hpTzFXSEVjSUpSSWY4IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULkQ2SUh0by1GZjdxQ3pvRVNRazE2NUlJUmU5OTd1Nnh0QjlKdmI5R0Znb0EiLCJpc3MiOiJodHRwczovL21lZGliYW5rcHJlcHJvZC5va3RhcHJldmlldy5jb20vb2F1dGgyL2F1czFjd2tyNmxlMk9OVFQ4MGg4IiwiYXVkIjoiYXBpOi8vc3BhcmsuaW50ZWdyYXRpb24iLCJpYXQiOjE3MDAxMTU5MzQsImV4cCI6MTcwMDExOTUzNCwiY2lkIjoiU1BBUktBUElDT05TVU1FUlJFVEFJTCIsInNjcCI6WyJhZGRyZXNzLnJlYWQiXSwic3ViIjoiU1BBUktBUElDT05TVU1FUlJFVEFJTCJ9.IQsDV7dxjW9EzsVRd0XwG8-T6rmR_kydPTnCqqCrQEQr5EMNasBSmMMl_JAaPdt79RA_gNP0uaHHpZt5489wKMbEF7BzV4vm150m7VQN17M7X8ErZrezbJAGUJvXV2ktr3o8Gl_Tu7JoeN-NMmOCSc4UxFZm0On__V8WQBSERc-UhSoer_E15oG3BNl1TWnVRJFjowkOuErA2MRE0aqT4o7duN0bowKVhojfNwOH7oQmodvznmTghMQMB5mREiOzODW3qpybbum9FD-ZRPUsgxS3zJkJUrdgV6aNopBtVBhtvCU8C-zNRssTe9wCjPyeKLfVkjGrzN2FPMsQc0W0rg",API_AUTH_TOKEN_PROD:"eyJraWQiOiJLajRnWmdQZGQxV2swbFdzcUIxUVZBaDF4SnZXMjFZRTh2SFFWbmNSOGJvIiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULk1iaW1tdVVNVFVMSFFDZzJwTGV0WkxIQ1JDb0FraXNTOEgwN3FQQXJxZGciLCJpc3MiOiJodHRwczovL21lZGliYW5rLm9rdGEuY29tL29hdXRoMi9hdXMyY2JyZXdjQm5Gem5nMTNsNyIsImF1ZCI6ImFwaTovL3NwYXJrLmludGVncmF0aW9uIiwiaWF0IjoxNzAwMTE0MDcyLCJleHAiOjE3MDAxMTc2NzIsImNpZCI6IlNQQVJLQVBJQ09OU1VNRVJSRVRBSUwiLCJzY3AiOlsiYWRkcmVzcy5yZWFkIl0sInN1YiI6IlNQQVJLQVBJQ09OU1VNRVJSRVRBSUwifQ.bjX7PY30n6vzHZDX6jRW6eHSzgE8cbGG-1KLwCGsWPo3iwnRLDF-2My3BWNieKxIlK0B2peM8Mw8gkgZI1_SM-BHbHO4mr-
1a3lp9e2VyvhV-7YiQL-g9rIMtMaqiKSrE1xx4ZUPBsvAo0e5lZ7-GlHcKVeKAepayygupr27J14uzpmxnk6SENmP3lOUlQ-VelE5IW497jHBp0i0k1P4SvEpiM8ETku4BI6I-o8nTQmySXbvOvxMhJarzEroLMVvrLEGDzFmOlw_wqHpxJI734-5opFSM_fWSCpwM-huCNk8NE8v2BtYPX7DO8oGEdJdvefWoHwsPN3OFBqoT-foE8g",API_AUTH_TOKEN_CORP_NON_PROD:"eyJraWQiOiIwbGRyTFdCOG5GX3ozYzU1Y0lCbHFpc3RBN3dBS2Fldm9wN2RKWGRPRDA4IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULlNfZmtPc0hyZ25GaHdhQks4Vi11QlhQN0FOZlY2VlpmNzdPQVF6T0h0Y28iLCJpc3MiOiJodHRwczovL21lZGliYW5rcHJlcHJvZC5va3RhcHJldmlldy5jb20vb2F1dGgyL2F1czFjd2tyNmxlMk9OVFQ4MGg4IiwiYXVkIjoiYXBpOi8vc3BhcmsuaW50ZWdyYXRpb24iLCJpYXQiOjE3NTYxNzI4NjUsImV4cCI6MTc1NjE3NjQ2NSwiY2lkIjoiU1BBUktBUElDT05TVU1FUkNPUlBPUkFURSIsInNjcCI6WyJhZGRyZXNzLnJlYWQiXSwic3ViIjoiU1BBUktBUElDT05TVU1FUkNPUlBPUkFURSJ9.OYKdRaYM4qiS5glwJHBrwldBoD4EHhr-M18a2zr1YrP9OwJ5ycsR9PAdr956eylaxnWZ9cnS51eaCD1WQzMlQmXe_Q5DCBzGe-hiVDCKQ2Igv2SPtUS-xzkai8BQcF7W06ywXCIfSIxKxHgPpGT4V1c2OeJtfYKf5zksKe1V7ESh2wZzpTfH7Dp1KO_2RAR0wuveid9MnHHKXVgQksnOqKMx2UbI0fte0j_1VczCLRYwi4eyCKjRv5hGvIHoZvFPlVcC_zsmU699RkkB6HJt9rinq56LU5Gyic0TubIgB-emKXPd_epkVRFVpIB_Aggki4qQuPCT5DqG3ES3WUZFSA",API_AUTH_TOKEN_CORP_PROD:"eyJraWQiOiJSM1lYZGo2MXh5M0RnNmsyRXB2MjRUYnJULVdrQjRrbEs0b1gyb0cwbnY4IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULk90bml1cWJqWDdEVGQ1Yng2eWFGVXJJRk94OFBlTk9yRlRYdjFQWUhkQWMiLCJpc3MiOiJodHRwczovL21lZGliYW5rLm9rdGEuY29tL29hdXRoMi9hdXMyY2JyZXdjQm5Gem5nMTNsNyIsImF1ZCI6ImFwaTovL3NwYXJrLmludGVncmF0aW9uIiwiaWF0IjoxNzU2NzAyNDYzLCJleHAiOjE3NTY3MDYwNjMsImNpZCI6IlNQQVJLQVBJQ09OU1VNRVJDT1JQT1JBVEUiLCJzY3AiOlsiYWRkcmVzcy5yZWFkIl0sInN1YiI6IlNQQVJLQVBJQ09OU1VNRVJDT1JQT1JBVEUifQ.Sg-lwu6Yn5S5DRzb2_lqUo8WF8z
1LIRhEU0MzXCcLGik7r8bFRheEAD5tGZyyJggUi53tkz_Rejl1DZeL1fAe_fpVSmlY3on2YeG58j-AKI0apQJz2YXLkt5zBmpzZGISc0whJ6No4IlYU-uoKAlNmffvt-exFyBFSNHSbED5MvVLMb1fCWiNfrR8T2NerI-pk78EeMx6MpOBi8YFtAIJKeNNPTU6_RiVL99ELk6LnyYq9h4SiOco7eme5MPRoiWXGlmtHqcQ3tqBQwiSoBTwDDEi9HRW58kN5PmVvoZM1dvVMCvpbi6powvDkjp1X-KzGIZKYe7Swv2QiGQRUsW3EA"}[`ADDRESS_${document.querySelector('meta[name="mpl_env"]')?.content||"DEV"}_API_URL`],tempJoin:"/bin/medibank/tempjoin/",emailQuote:"/bin/medibank/email-quote/",campaign:"/bin/medibank/campaigns",payment:"/services/joinservices/join",leads:"/bin/medibank/leads/",quotes:"/bin/medibank/quotes/",welcomeEmail:"/bin/medibank/email-welcome/",successRedirect:v.successRedirect?v.successRedirect:"/health-insurance/"},defaultCampaigns:b||{},promoDisplay:y,isNonresident:f},N=f?On:Sn,C=(0,s.reduxForm)({form:"yourdetailsForm",forceUnregisterOnUnmount:!1,destroyOnUnmount:!1,initialValues:u(t,f),onSubmitFail:h})(N),D=(0,s.reduxForm)({form:"eagr",forceUnregisterOnUnmount:!1,destroyOnUnmount:!1,initialValues:p(t),onSubmitFail:h})(Wn);(()=>{(0,n.render)((0,Ut.tZ)(o.Provider,{store:xr,children:(0,Ut.BX)(Ut.HY,{children:[(!g.quote||!g.cover)&&(location.href="/content/retail/en/health-insurance/"),g.quote&&g.cover&&(0,Ut.tZ)(di,{config:g,yourDetailsForm:C,agrForm:D})]})}),e)})()}})()},49674:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=49674,e.exports=t},46656:t=>{"use strict";t.exports=e}},v={};function b(e){var t=v[e];if(void 0!==t)return t.exports;var a=v[e]={id:e,loaded:!1,exports:{}};return h[e].call(a.exports,a,a.exports,b),a.loaded=!0,a.exports}b.m=h,b.c=v,t=[],b.O=(e,a,r,i)=>{if(!a){var n=1/0;for(c=0;c<t.length;c++){for(var[a,r,i]=t[c],o=!0,s=0;s<a.length;s++)(!1&i||n>=i)&&Object.keys(b.O).every((e=>b.O[e](a[s])))?a.splice(s--,1):(o=!1,i<n&&(n=i));if(o){t.splice(c--,1);var l=r();void 0!==l&&(e=l)}}return e}i=i||0;for(var c=t.length;c>0&&t[c-1][2]>i;c--)t[c]=t[c-1];t[c]=[a,r,i]},b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var a in t)b.o(t,a)&&!b.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),b.j=197,(()=>{b.S={};var e={},t={};b.I=(a,r)=>{r||(r=[]);var i=t[a];if(i||(i=t[a]={}),!(r.indexOf(i)>=0)){if(r.push(i),e[a])return e[a];b.o(b.S,a)||(b.S[a]={});var n=b.S[a],o="web-sales-retail-cms",s=(e,t,a,r)=>{var i=n[e]=n[e]||{},s=i[t];(!s||!s.loaded&&(!r!=!s.eager?r:o>s.from))&&(i[t]={get:a,from:o,eager:!!r})},l=[];if("default"===a)s("@emotion/react","11.11.1",(()=>()=>b(70917)),1),s("react-dom","18.2.0",(()=>()=>b(73935)),1),s("react","18.2.0",(()=>()=>b(67294)),1);return l.length?e[a]=Promise.all(l).then((()=>e[a]=1)):e[a]=1}}})(),a=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),a=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=a[1]?t(a[1]):[];return a[2]&&(r.length++,r.push.apply(r,t(a[2]))),a[3]&&(r.push([]),r.push.apply(r,t(a[3]))),r},r=(e,t)=>{e=a(e),t=a(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var i=e[r],n=(typeof i)[0];if(r>=t.length)return"u"==n;var o=t[r],s=(typeof o)[0];if(n!=s)return"o"==n&&"n"==s||"s"==s||"u"==n;if("o"!=n&&"u"!=n&&i!=o)return i<o;r++}},i=e=>{var t=e[0],a="";if(1===e.length)return"*";if(t+.5){a+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var r=1,n=1;n<e.length;n++)r--,a+="u"==(typeof(s=e[n]))[0]?"-":(r>0?".":"")+(r=2,s);return a}var o=[];for(n=1;n<e.length;n++){var s=e[n];o.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?o.pop()+" "+o.pop():i(s))}return l();function l(){return o.pop().replace(/^\((.+)\)$/,"$1")}},n=(e,t)=>{if(0 in e){t=a(t);var r=e[0],i=r<0;i&&(r=-r-1);for(var o=0,s=1,l=!0;;s++,o++){var c,d,m=s<e.length?(typeof e[s])[0]:"";if(o>
1=t.length||"o"==(d=(typeof(c=t[o]))[0]))return!l||("u"==m?s>r&&!i:""==m!=i);if("u"==d){if(!l||"u"!=m)return!1}else if(l)if(m==d)if(s<=r){if(c!=e[s])return!1}else{if(i?c>e[s]:c<e[s])return!1;c!=e[s]&&(l=!1)}else if("s"!=m&&"n"!=m){if(i||s<=r)return!1;l=!1,s--}else{if(s<=r||d<m!=i)return!1;l=!1}else"s"!=m&&"n"!=m&&(l=!1,s--)}}var u=[],p=u.pop.bind(u);for(o=1;o<e.length;o++){var h=e[o];u.push(1==h?p()|p():2==h?p()&p():h?n(h,t):!p())}return!!p()},o=(e,t)=>{var a=e[t];return Object.keys(a).reduce(((e,t)=>!e||!a[e].loaded&&r(e,t)?t:e),0)},s=(e,t,a,r)=>"Unsatisfied version "+a+" from "+(a&&e[t][a].from)+" of shared singleton module "+t+" (required "+i(r)+")",l=(e,t,a,r)=>{var i=o(e,a);return n(r,i)||c(s(e,a,i,r)),d(e[a][i])},c=e=>{"undefined"!=typeof console&&console.warn},d=e=>(e.loaded=1,e.get()),m=(e=>function(t,a,r,i){var n=b.I(t);return n&&n.then?n.then(e.bind(e,t,b.S[t],a,r,i)):e(t,b.S[t],a,r,i)})(((e,t,a,r,i)=>t&&b.o(t,a)?l(t,0,a,r):i())),u={},p={75166:()=>m("default","react",[1,18,2,0],(()=>()=>b(67294))),25773:()=>m("default","react-dom",[1,18,2,0],(()=>()=>b(73935))),49954:()=>m("default","@emotion/react",[4,11,11,1],(()=>()=>b(70917)))},[75166,25773,49954].forEach((e=>{b.m[e]=t=>{u[e]=0,delete b.c[e];var a=p[e]();if("function"!=typeof a)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=a()}})),(()=>{var e={197:0,773:0,954:0};b.O.j=t=>0===e[t];var t=(t,a)=>{var r,i,[n,o,s]=a,l=0;if(n.some((t=>0!==e[t]))){for(r in o)b.o(o,r)&&(b.m[r]=o[r]);if(s)var c=s(b)}for(t&&t(a);l<n.length;l++)i=n[l],b.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return b.O(c)},a=self.webpackChunkweb_sales_retail_cms=self.webpackChunkweb_sales_retail_cms||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var f=b.O(void 0,[592],(()=>b(95951)));return f=b.O(f)})()));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.