PageSourceSearch

https://www.wahyundaitrucks.com.au/92-5527217a03658937dabe.js

js wahyundaitrucks.com.au collected 2026-10-09 01:55:59 UTC 79,103 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[92],{92:function(e,a,t){t.r(a),t.d(a,{CalculatorEv:function(){return Ln}});var n=t(63696),r=t(94721);const i=["NSW","VIC","QLD","SA","WA","TAS","ACT","NT"],l={NSW:37.8,VIC:32,QLD:30.5,SA:38.5,WA:30,TAS:28.5,ACT:27.5,NT:32.5},c=1.4,o={hybridFuelConsLPer100km:4.8,hybridReg:1800,hybridServ:620},s={hybridFuelConsLPer100km:3.5,hybridReg:1850,hybridServ:680,phevElecSharePercent:42},d={annualKm:12e3,evEffKwhPer100km:16,evReg:1850,evServ:400,fuelPricePerL:1.75,fuelConsLPer100km:8.5,fuelReg:1900,fuelServ:800,hybridType:"hev",...o,phevElecSharePercent:s.phevElecSharePercent},u={EV:"electric",Hybrid:"hybrid",Petrol:"petrol"},g={EV:"Browse electric vehicles",Hybrid:"Browse hybrid vehicles",Petrol:"Browse petrol vehicles"},v={EV:r.F.iconCarElectric,Hybrid:r.F.iconHybrid,Petrol:r.F.iconPetrolStation},p={EV:"Electric",Hybrid:"Hybrid",Petrol:"Petrol/Diesel"},C={EV:"EVs",Hybrid:"Hybrids",Petrol:"Petrol cars"},h=e=>C[e],m=e=>`Estimated savings: ${e}/yr`,E=(e,a,t,n)=>`${h(e)} and ${h(a)} are estimated to have lower running costs than ${h(t)} for ${Number(n).toLocaleString("en-AU")} km/yr.`,S=e=>`EVs, hybrids and petrol cars look similar on running costs for ${Number(e).toLocaleString("en-AU")} km/yr.`,b=/^\/(?!\/)/,y=/%(?![0-9A-Fa-f]{2})/,f=e=>{let a=e.replace(/\/+$/,"");return""===a&&(a="/"),"/"===a?"/":`${a}/`},R=(e,a)=>{const t=new URLSearchParams(e);return t.set("keywords",a),t.toString()};var H=t(81706);const A=({explicitStockBasePath:e,stockTemplatePageUrl:a})=>{const t=(null!=e?e:"").trim();return t?/^https?:\/\//i.test(n=t)||n.startsWith("//")&&"/"!==n[2]?n:/^www\./i.test(n)?`https://${n}`:`/${n.replace(/^\/+/,"")}`:(e=>{const a=(null!=e?e:"").trim();if(a&&"index"!==a.toLowerCase())return`/${a.replace(/^\/+/,"").toLowerCase()}`})(a);var n};var k=t(7543);const x=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","currentcolor","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]);var T=t(17474),w=t(36557),P=t(10443),L=t(75988),F=t(62706);const{brandPrimaryCol:W,brandTextCol:I,brandSecondaryCol:B}=P.b,{labelTextColour:Y}=L.h,M="#faab18",N="#7fceec",V="#4d4d4d",$=w.X.black20,D=w.X.black,z=w.X.black,G=w.X.white,K=w.X.black70,X={electric:"--evThemeBaseColElectric",hybrid:"--evThemeBaseColHybrid",petrol:"--evThemeBaseColPetrol",maintenance:"--evThemeBaseColMaintenance"},O={electric:"--evThemeContrastColElectric",hybrid:"--evThemeContrastColHybrid",petrol:"--evThemeContrastColPetrol",maintenance:"--evThemeContrastColMaintenance"},U="--evThemeHeadingsAccentCol",j="--evCalcCardBorderRadius",q="--evCalcCtaBorderRadius",J=`var(${X.electric}, ${M})`,Q=`var(${X.hybrid}, ${N})`,_=`var(${X.petrol}, ${V})`,Z=`var(${X.maintenance}, ${$})`,ee=`var(${O.electric}, ${D}
1)`,ae=`var(${O.hybrid}, ${z})`,te=`var(${O.petrol}, ${G})`,ne=`var(${U}, ${B})`,re={baseColElectric:M,baseColHybrid:N,baseColPetrol:V,baseColMaintenance:$,contrastColElectric:D,contrastColHybrid:z,contrastColPetrol:G,contrastColMaintenance:K},ie=(0,T.X_)(),le=(0,T.X_)(),ce=(0,T.X_)(),oe=ne,se=ne,de=ne,ue=ne,ge=Y,ve="0.75rem",pe=".875rem",Ce=".95rem",he="1.125rem",me="1.2",Ee="1.4",Se="1.5",be="20px",ye=`var(${j}, var(--themeBorderRadiusPrimary))`,fe="20px",Re=`var(${q}, var(--themeBorderRadiusPrimary))`,He="3px",Ae=`1px solid ${w.X.black10}`,ke=`2px solid ${W}`,xe="\n  0 8px 25px rgba(0, 0, 0, 0.11),\n  0 3px 15px rgba(0, 0, 0, 0.08)\n".trim(),Te={calcEvShadowSubtle:"0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04)",calcEvCardHeadingFontStack:ce,calcEvCardHeadingSize:Ce,calcEvCardHeadingLineHeight:Ee,calcEvCardHeadingLetterSpacing:"normal",calcEvCardHeadingTransform:"none",calcEvCardHeadingAlign:"left",calcEvCardHeadingCol:de,calcEvCardRadius:ye,calcEvIsGapMandatory:!1,calcEvWrapperGap:"24px",calcEvWrapperMargin:"0 auto",calcEvWrapperMaxWidth:F.N.contentWidthPx,calcEvWrapperBgColAlt:w.X.black,calcEvHeadingTextWrapperGap:"12px",calcEvHeadingFontStack:ie,calcEvHeadingSize:"1.5rem",calcEvHeadingLineHeight:me,calcEvHeadingTransform:"",calcEvHeadingLetterSpacing:"",calcEvHeadingAlign:"",calcEvHeadingCol:oe,calcEvHeadingColAlt:w.X.white,calcEvSubHeadingFontStack:(0,T.CK)(),calcEvSubHeadingSize:he,calcEvSubHeadingLineHeight:Ee,calcEvSubHeadingTransform:"",calcEvSubHeadingLetterSpacing:"",calcEvSubHeadingAlign:"",calcEvSubHeadingCol:se,calcEvSubHeadingColAlt:w.X.white,calcEvBodyGap:be,calcEvBodyGridColsSm:"1fr",calcEvBodyGridColsLg:"1fr 310px",calcEvBodyAlignLg:"start",calcEvMainColGap:be,calcEvAsideGap:"16px",calcEvAsidePadding:fe,calcEvAsideBgCol:w.X.white,calcEvAsideBorder:Ae,calcEvAsideStickyTop:"20px",calcEvAsideStickyHeight:"fit-content",calcEvSavingsHeroFontStack:le,calcEvSavingsHeroSizeSm:"1.4rem",calcEvSavingsHeroLineHeight:me,calcEvSavingsHeroLetterSpacing:"normal",calcEvSavingsHeroTransform:"none",calcEvSavingsHeroCol:ue,calcEvSavingsHeroSizeMd:"1.5rem",calcEvSavingsHeroBadgeFontStack:(0,T.CK)(),calcEvSavingsHeroBadgeSize:"0.625rem",calcEvSavingsHeroBadgeLineHeight:Se,calcEvSavingsHeroBadgeLetterSpacing:"0.05em",calcEvSavingsHeroBadgeTransform:"",calcEvSavingsHeroBadgeCol:w.X.white,calcEvSavingsHeroBadgeRadius:"100px",calcEvSavingsHeroBadgeBgCol:ue,calcEvSavingsHeroBadgeMarginBottom:"4px",calcEvSavingsHeroBadgePadding:"3px 10px",calcEvSavingsHeroBadgeDisplay:"inline-block",calcEvSavingsComparisonFontStack:(0,T.CK)(),calcEvSavingsComparisonSize:"0.7rem",calcEvSavingsComparisonLineHeight:Ee,calcEvSavingsComparisonLetterSpacing:"normal",calcEvSavingsComparisonTransform:"none",calcEvSavingsComparisonCol:ge,calcEvSavingsComparisonGapTop:"6px",calcEvSavingsComparisonMaxWidth:"",calcEvAsideCtaWrapperGapTop:"12px",calcEvAsideDividerBorderTop:`2px solid ${w.X.black10}`,calcEvAsideAnnualCostRowItemGap:"4px",calcEvAsideAnnualCostRowItemOpacityNonWinner:"0.5",calcEvAsideAnnualCostRowItemOpacityWinner:"1",calcEvAsideAnnualCostRowHeaderAlign:"center",calcEvAsideAnnualCostRowHeaderGap:"6px",calcEvAsideAnnualCostRowTextFontStack:(0,T.bm)(),calcEvAsideAnnualCostRowTextSize:pe,calcEvAsideAnnualCostRowTextLineHeight:Ee,calcEvAsideAnnualCostRowTextLetterSpacing:"normal",calcEvAsideAnnualCostRowTextTransform:"none",calcEvAsideAnnualCostRowTextCol:ge,calcEvAsideAnnualCostRowValueFontStack:le,calcEvAsideAnnualCostRowValueSize:"1.25rem",calcEvAsideAnnualCostRowValueLineHeight:me,calcEvAsideAnnualCostRowValueLetterSpacing:"normal",calcEvAsideAnnualCostRowValueTransform:"none",calcEvAsideAnnualCostRowValueCol:I,calcEvAsideAnnualCostRowValueTransition:"color 0.3s ease",calcEvAsideAnnualCostRowValueWinnerCol:se,calcEvAsideAnnualCostRowValueWinnerBgCol:"",calcEvAsideAnnualCostRowValueWinnerPadding:"",calcEvAsideAnnualCostRowValueWinnerRadius:"",calcEvAsideAnnualCostRowSubHeadingFontStack:(0,T.CK)(),calcEvAsideAnnualCostRowSubHeadingSize:ve,calcEvAsideAnnualCostRowSubHeadingLineHeight:Se,calcEvAsideAnnualCostRowSubHeadingLetterSpacing:"normal",calcEvAsideAnnualCostRowSubHeadingTransform:"none",calcEvAsideAnnualCostRowSubHeadingCol:ge,calcEvAsideAnnualCostRowTrackBgCol:w.X.black5,calcEvAsideAnnualCostRowTrackHeight:"6px",calcEvAsideAnnualCostRowTrackRadius:He,calcEvAsideAnnualCostRowFillRadius:He,calcEvAsideAnnualCostRowFillTransition:"width 0.35s cubic-bezier(0.4, 0, 0.2, 1)",calcEvVerdictFontStack:(0,T.CK)(),calcEvVerdictSize:ve,calcEvVerdictLineHeight:Ee,calcEvVerdictLetterSpacing:"normal",calcEvVerdictTransform:"none",calcEvVerdictCol:ge,calcEvWinnerStockCtaFontStack:(0,T.bm)(),calcEvWinnerStockCtaSize:pe,calcEvWinnerStockCtaLineHeight:Ee,calcEvWinnerStockCtaLetterSpacing:"normal",calcEvWinnerStockCtaTransform:"none",calcEvWinnerStockCtaCol:w.X.white,calcEvWinnerStockCtaBgCol:W,calcEvWinnerStockCtaBorder:"none",calcEvWinnerStockCtaPadding:"10px 22px",calcEvWinnerCtaRadius:Re,calcEvWinnerStockCtaTextDecoration:"none",calcEvWinnerStockCtaDisplay:"inline-flex",calcEvWinnerStockCtaAlignItems:"center",calcEvWinnerStockCtaJustifyContentSm:"center",calcEvWinnerStockCtaIconGap:"4px",calcEvWinnerStockCtaWidthSm:"auto",calcEvWinnerStockCtaWhiteSpace:"nowrap",calcEvWinnerStockCtaCursor:"pointer",calcEvWinnerStockCtaTransition:"transform 150ms ease-in-out, box-shadow 150ms ease-in-out",calcEvWinnerStockCtaWidthMd:"100%",calcEvWinnerStockCtaJustifyContentMd:"center",calcEvWinnerStockCtaHoverBoxShadow:"0 -1px 5px rgba(0, 0, 0, 0.20)",calcEvWinnerStockCtaHoverTranslateY:"2px",calcEvWinnerStockCtaHoverTextDecoration:"none",calcEvWinnerStockCtaArrowTransform:"scale(1.4) translateX(1px)",calcEvWinnerStockCtaFocusOutline:ke,calcEvWinnerStockCtaFocusOutlineOffset:"2px",calcEvWinnerStockCtaIconWrapperFlexShrink:"0",calcEvWinnerStockCtaIconSize:"1.5rem",calcEvWinnerStockCtaIconFill:"currentColor",calcEvWinnerStockCtaArrowTransformOrigin:"left center",calcEvWinnerStockCtaArrowTransition:"transform 200ms ease-in-out",calcEvInputWinnerRingEvCol:"rgba(250, 171, 24, 0.25)",calcEvInputWinnerRingHybridCol:"rgba(127, 206, 236, 0.25)",calcEvInputWinnerRingPetrolCol:"rgba(0, 46, 70, 0.25)",calcEvInputWinnerShadowBaseLayers:xe,calcEvInputWinnerRingWidth:"2px",calcEvInputSectionGap:be,calcEvInputCardBgCol:w.X.white,calcEvInputCardBorder:Ae,calcEvInputCardPadding:fe,calcEvInputCardTransition:"border-color 0.3s ease, box-shadow 0.3s ease",calcEvInputCardTopAccentWidth:"5px",calcEvInputCardWinnerTopAccentWidth:"10px",calcEvInputCardLiftTranslateY:"6px",calcEvInputCardLiftTransition:"transform 200ms ease",calcEvInputCardHeaderGap:"9px",calcEvInputCardHeaderGapBottom:"16
1px",calcEvInputCardHeadingWrapperGap:"8px",calcEvInputCardHeadingWrapperFlex:"1",calcEvInputTickAlign:"center",calcEvInputTickJustify:"center",calcEvInputTickSize:"1.375rem",calcEvInputTickEvCol:J,calcEvInputTickHybridCol:Q,calcEvInputTickPetrolCol:_,calcEvInputTickEvStrokeCol:ee,calcEvInputTickHybridStrokeCol:ae,calcEvInputTickPetrolStrokeCol:te,calcEvInputTickPathStrokeWidth:"1.75",calcEvInputGridTwoColGap:be,calcEvInputGridThreeColGap:be,calcEvInputGridItemGapBottom:"12px",calcEvInputRangeSliderTextWrapperWidth:"100%",calcEvInputRangeSliderTextWrapperMarginBottom:"4px",calcEvInputRangeSliderTextWrapperGap:"12px",calcEvInputRangeSliderTextFirstFontStack:(0,T.CK)(),calcEvInputRangeSliderTextFirstSize:ve,calcEvInputRangeSliderTextFirstLineHeight:"1",calcEvInputRangeSliderTextFirstLetterSpacing:"0",calcEvInputRangeSliderTextFirstTransform:"none",calcEvInputRangeSliderTextFirstCol:ge,calcEvInputRangeSliderTextLastFontStack:(0,T.X_)(),calcEvInputRangeSliderTextLastSize:ve,calcEvInputRangeSliderTextLastLineHeight:"1",calcEvInputRangeSliderTextLastLetterSpacing:"0",calcEvInputRangeSliderTextLastTransform:"none",calcEvInputRangeSliderTextLastAlign:"right",calcEvInputRangeSliderTextLastCol:de,calcEvInputSliderTrackBgCol:ge,calcEvInputSliderHandleDragBorderCol:ge,calcEvInputSliderHandleDragShadow:`0 0 0 4px ${w.X.black20}`,calcEvChartWrapperDisplay:"grid",calcEvChartWrapperGap:"8px",calcEvChartWrapperPadding:"",calcEvChartHeadingFontStack:ce,calcEvChartHeadingSize:he,calcEvChartHeadingLineHeight:me,calcEvChartHeadingLetterSpacing:"normal",calcEvChartHeadingTransform:"none",calcEvChartHeadingAlign:"left",calcEvChartHeadingCol:de,calcEvChartHeadingColAlt:w.X.white,calcEvChartSummaryFontStack:(0,T.CK)(),calcEvChartSummarySize:ve,calcEvChartSummaryLineHeight:Se,calcEvChartSummaryLetterSpacing:"normal",calcEvChartSummaryTransform:"none",calcEvChartSummaryAlign:"left",calcEvChartSummaryCol:ge,calcEvChartSummaryColAlt:w.X.white,calcEvChartSummaryMargin:"0 0 12px",calcEvChartRunningCostsMainRowGapMd:"0",calcEvChartRunningCostsHeadingSize:Ce,calcEvChartRunningCostsHeadingLineHeight:me,calcEvChartRunningCostsHeadingMargin:"0 0 8px",calcEvChartRunningCostsCanvasWidth:"100%",calcEvChartRunningCostsCanvasMinHeight:"220px",calcEvChartRunningCostsCanvasHeight:"260px",calcEvChartRunningCostsCanvasMinHeightSm:"240px",calcEvChartRunningCostsCanvasHeightSm:"280px",calcEvChartRunningCostsSliderMaxWidth:"580px",calcEvChartRunningCostsSliderMargin:"8px auto 0",calcEvChartRunningCostsSliderPadding:"0 4px",calcEvChartRunningCostsSidebarBorderTopMobile:Ae,calcEvChartRunningCostsSidebarPaddingMobile:"16px 0 0",calcEvChartRunningCostsSidebarWidthDesktop:"200px",calcEvChartRunningCostsSidebarBorderTopDesktop:"none",calcEvChartRunningCostsSidebarBorderLeftDesktop:"none",calcEvChartRunningCostsSidebarPaddingDesktop:"0",calcEvChartRunningCostsPanelHeadingFontStack:(0,T.X_)(),calcEvChartRunningCostsPanelHeadingSize:pe,calcEvChartRunningCostsPanelHeadingLineHeight:Ee,calcEvChartRunningCostsPanelHeadingLetterSpacing:"normal",calcEvChartRunningCostsPanelHeadingTransform:"none",calcEvChartRunningCostsSavingsHeadingCol:se,calcEvChartRunningCostsSavingsHeadingMargin:"0 0 12px",calcEvChartRunningCostsLegendHeadingCol:ge,calcEvChartRunningCostsLegendHeadingMargin:"0 0 10px",calcEvChartRunningCostsSavingsWrapperGap:"10px",calcEvChartRunningCostsSavingsWrapperMarginBottom:"0 0 20px",calcEvChartRunningCostsSavingsWrapperPadding:"0",calcEvChartRunningCostsSavingsRowLineHeight:Se,calcEvChartRunningCostsSavingsRowTextCol:w.X.black,calcEvChartRunningCostsSavingsAmountFontStack:le,calcEvChartRunningCostsSavingsAmountSize:pe,calcEvChartRunningCostsSavingsAmountLineHeight:Ee,calcEvChartRunningCostsSavingsAmountLetterSpacing:"normal",calcEvChartRunningCostsSavingsAmountTransform:"none",calcEvChartRunningCostsSavingsAmountCol:ge,calcEvChartRunningCostsLegendRowFontStack:(0,T.CK)(),calcEvChartRunningCostsLegendRowSize:ve,calcEvChartRunningCostsLegendRowLineHeight:me,calcEvChartRunningCostsLegendRowLetterSpacing:"normal",calcEvChartRunningCostsLegendRowTransform:"none",calcEvChartRunningCostsLegendRowCol:w.X.black,calcEvChartRunningCostsLegendListMargin:"0",calcEvChartRunningCostsLegendListPadding:"0",calcEvChartRunningCostsLegendSwatchSize:ve,calcEvChartRunningCostsLegendSwatchRadius:He,calcEvChartRunningCostsBarTotalLabelFont:`600 ${pe} system-ui, -apple-system, BlinkMacSystemFont, sans-serif`,calcEvChartRunningCostsBarTotalLabelCol:ge,calcEvChartRunningCostsBarGridXCol:"rgba(0, 46, 70, 0.08)",calcEvChartRunningCostsBarTooltipBgCol:ge,calcEvChartRunningCostsBarTooltipBorderCol:"rgba(255, 255, 255, 0.2)",calcEvChartRunningCostsBarTooltipTextCol:w.X.white,calcEvChartRunningCostsBarTooltipPadding:"10",calcEvChartRunningCostsBarTooltipBoxPadding:"4",calcEvChartRunningCostsBarTooltipBorderWidth:"1",calcEvChartRunningCostsBarAxisYTickSize:"11",calcEvChartRunningCostsBarAxisYTickWeight:"500",calcEvDisclaimGap:"8px",calcEvDisclaimBgCol:"transparent",calcEvDisclaimBgColAlt:"transparent",calcEvDisclaimHeadingFontStack:ce,calcEvDisclaimHeadingSize:Ce,calcEvDisclaimHeadingLineHeight:me,calcEvDisclaimHeadingLetterSpacing:"normal",calcEvDisclaimHeadingTransform:"none",calcEvDisclaimHeadingAlign:"left",calcEvDisclaimHeadingCol:de,calcEvDisclaimHeadingColAlt:w.X.white,calcEvDisclaimBodyFontStack:(0,T.CK)(),calcEvDisclaimBodySize:ve,calcEvDisclaimBodyLineHeight:"1.75",calcEvDisclaimBodyLetterSpacing:"normal",calcEvDisclaimBodyTransform:"none",calcEvDisclaimBodyAlign:"left",calcEvDisclaimBodyCol:ge,calcEvDisclaimBodyColAlt:w.X.white,calcEvDisclaimBodyStrongFontStack:le,calcEvDisclaimBodyStrongCol:I,calcEvDisclaimBodyStrongColAlt:w.X.white,calcEvMobileFooterPosition:"fixed",calcEvMobileFooterBottom:"50px",calcEvMobileFooterLeft:"50%",calcEvMobileFooterTransform:"translateX(-50%)",calcEvMobileFooterWidth:"max-content",calcEvMobileFooterZIndex:"1",calcEvMobileFooterDisplay:"flex",calcEvMobileFooterAlignItems:"center",calcEvMobileFooterJustifyContent:"center",calcEvMobileFooterGap:"12px",calcEvMobileFooterPadding:"10px 20px",calcEvMobileFooterBgCol:w.X.white,calcEvMobileFooterBorder:Ae,calcEvMobileFooterBoxShadow:"0 -2px 8px rgba(0, 0, 0, 0.08)",calcEvMobileFooterRadius:ye,calcEvMobileFooterPointerEvents:"auto",calcEvMobileFooterTextWrapperDisplay:"flex",calcEvMobileFooterTextWrapperDirection:"column",calcEvMobileFooterTextWrapperAlignItems:"center",calcEvMobileFooterTextWrapperJustifyContent:"center",calcEvMobileFooterTextWrapperGap:"5px",calcEvMobileFooterAmountFontStack:le,calcEvMobileFooterAmountSize:Ce,calcEvMobileFooterAmountLineHeight:Ee,calcEvMobileFooterAmountLetterSpacing:"0.02em",calcEvMobileFooterAmountTransform:"none",calcEvMobileFooterAmountCol:W,calcEvMobileFooterAmountWhiteSpace:"nowrap",calcEvMobileFooterContextFontStack:(0,T.CK)(),calcEvMobileFooterContextSize:pe,calcEvMobileFooterContextLineHeight:Ee,calcEvMobileFooterContextLetterSpacing:"normal",calcEvMobileFooterContextTransform:"none",calcEvMobileFooterContextCol:ge,calcEvMobileFooterContextWhiteSpace:"nowrap"},we=/^[a-zA-Z]+$/,Pe=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Le=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/,Fe=/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(.+?)\s*\)$/,We=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,Ie=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*(.+?)\s*\)$/,Be=/^\d+$/,Ye=e=>{if(!Be.test(e))return!1;const a=Number.parseInt(e,10);return a>=0&&a<=255},Me=e=>{const a=e.trim();if(a.endsWith("%")){const e=a.slice(0,-1).trim();if(!/^\d+(?:\.\d+)?$/.test(e))return!1;const t=Number.parseFloat(e);return t>=0&&t<=100}if(!/^\d*(?:\.\d+|\d+\.\d*|\d+)$/.test(a))return!1;const t=Number.parseFloat(a);return t>=0&&t<=1},Ne=e=>Pe.test(e)||(e=>{const a=Le.exec(e);return!!a&&Ye(a[1])&&Ye(a[2])&&Ye(a[3])})(e)||(e=>{const a=Fe.exec(e);return!!a&&!!(Ye(a[1])&&Ye(a[2])&&Ye(a[3]))&&Me(a[4])})(e)||(e=>{const a=We.exec(e);if(!a)return!1;const t=Number.parseInt(a[1],10),n=Number.parseInt(a[2],10),r=Number.parseInt(a[3],10);return t>=0&&t<=360&&n>=0&&n<=100&&r>=0&&r<=100})(e)||(e=>{const a=Ie.exec(e);if(!a)return!1;const t=Number.parseInt(a[1],10),n=Number.parseInt(a[2],10),r=Number.parseInt(a[3],10);return!(t<0||t>360||n<0||n>100||r<0||r>100)&&Me(a[4])})(e)||(e=>we.test(e)&&x.has(e.toLowerCase()))(e),Ve=/^(?:0|(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem|em|%))$/,$e=e=>Ve.test(e),De=e=>{if(null==e)return{};const a=e.trim();if(""===a||"Not Set"===a||"Secondary Colour"===a)return{};const t=U;return"Primary Colour"===a?{[t]:"var(--primaryColour)"}:"Tertiary Colour"===a?{[t]:"var(--tertiaryColour)"}:"Text Primary Colour"===a?{[t]:"var(--textPrimaryColour)"}:{}},ze=e=>{var a,t;const n={},r=null==e||null===(a=e.themeCardBorderRadius)||void 0===a?void 0:a.trim();r&&$e(r)&&(n[j]=r);const i=null==e||null===(t=e.themeCtaBorderRadius)||void 0===t?void 0:t.trim();return i&&$e(i)&&(n[q]=i),n},Ge=["EV","Hybrid","Petrol"],Ke=e=>
1`$${Math.round(e).toLocaleString("en-AU")}`,Xe=.5,Oe=e=>`${e.toFixed(1)}c/km`,Ue=e=>Math.min(80,Math.max(5,e)),je=e=>{if(null!=e){if("string"==typeof e){const a=e.trim();if(""===a)return;const t=Number.parseFloat(a.replaceAll(",","").replace(/\s+/g,""));if(!Number.isFinite(t)||t<5||t>80)return;return t}if("number"==typeof e){if(!Number.isFinite(e)||e<5||e>80)return;return e}}},qe=e=>{const a={},t=je(e.stateRateNsw);void 0!==t&&(a.NSW=t);const n=je(e.stateRateVic);void 0!==n&&(a.VIC=n);const r=je(e.stateRateQld);void 0!==r&&(a.QLD=r);const i=je(e.stateRateSa);void 0!==i&&(a.SA=i);const c=je(e.stateRateWa);void 0!==c&&(a.WA=c);const o=je(e.stateRateTas);void 0!==o&&(a.TAS=o);const s=je(e.stateRateAct);void 0!==s&&(a.ACT=s);const d=je(e.stateRateNt);return void 0!==d&&(a.NT=d),(e=>({...l,...e}))(a)},Je=e=>{var a;const t=null!==(a=null==e?void 0:e.trim().toUpperCase())&&void 0!==a?a:"";return(e=>i.includes(e))(t)?t:"NSW"},Qe=(e,a,t)=>{var n;const r=Je(a),i=Ue(e[r]),l=null!==(n=(e=>{if(null!=e){if("string"==typeof e){const a=e.trim();if(""===a)return;const t=Number.parseFloat(a.replaceAll(",","").replace(/\s+/g,""));if(!Number.isFinite(t)||t<c||t>4)return;return t}if("number"==typeof e){if(!Number.isFinite(e)||e<c||e>4)return;return e}}})(t))&&void 0!==n?n:d.fuelPricePerL;return{selectedState:r,km:Math.round(d.annualKm),elecRateCPerKwh:i,evEffKwhPer100km:d.evEffKwhPer100km,evReg:d.evReg,evServ:d.evServ,fuelPricePerL:l,fuelConsLPer100km:d.fuelConsLPer100km,fuelReg:d.fuelReg,fuelServ:d.fuelServ,hybridType:d.hybridType,hybridFuelConsLPer100km:d.hybridFuelConsLPer100km,hybridFuelPricePerL:l,hybridReg:d.hybridReg,hybridServ:d.hybridServ,phevElecRateCPerKwh:i,phevElecSharePercent:d.phevElecSharePercent}};var _e=t(9546);function Ze({defaultState:e,defaultFuelPricePerL:a,stateRateNsw:t,stateRateVic:r,stateRateQld:l,stateRateSa:c,stateRateWa:d,stateRateTas:u,stateRateAct:g,stateRateNt:v,ratesAsAt:p}){const C=(0,n.useMemo)((()=>qe({stateRateNsw:t,stateRateVic:r,stateRateQld:l,stateRateSa:c,stateRateWa:d,stateRateTas:u,stateRateAct:g,stateRateNt:v})),[t,r,l,c,d,u,g,v]),b=(0,n.useMemo)((()=>Qe(C,e,a)),[a,e,C]),y=(0,n.useMemo)((()=>JSON.stringify(b)),[b]),{0:f,1:R}=(0,n.useState)(b),H=(0,n.useRef)(y);(0,n.useEffect)((()=>{H.current!==y&&(H.current=y,R(b))}),[b,y]);const A=(0,n.useCallback)((e=>{const a=Object.keys(e)[0],t=a?e[a]:void 0;if(void 0===a||void 0===t)return;if("selectedState"===a){const e=String(t).trim().toUpperCase();if(!i.includes(e))return;const a=Ue(C[e]);return void R((t=>({...t,selectedState:e,elecRateCPerKwh:a,phevElecRateCPerKwh:a})))}if("hybridType"===a){const e="phev"===t?"phev":"hev";return void R((a=>{return a.hybridType===e?a:{...a,hybridType:e,...(t=e,"phev"===t?s:o)};var t}))}const n="number"==typeof t?t:Number.parseFloat(String(t));if(Number.isFinite(n))if("elecRateCPerKwh"!==a&&"phevElecRateCPerKwh"!==a)R("fuelPricePerL"!==a&&"hybridFuelPricePerL"!==a?e=>({...e,[a]:n}):e=>({...e,fuelPricePerL:n,hybridFuelPricePerL:n}));else{const e=Ue(n);R((a=>({...a,elecRateCPerKwh:e,phevElecRateCPerKwh:e})))}}),[C]),k=(0,n.useCallback)((e=>{"number"!=typeof e&&A(e)}),[A]),x=(0,n.useCallback)((e=>{"string"!=typeof e&&A(e)}),[A]),{isElectricityRateCustomised:T,isPhevElectricityRateCustomised:w}=(0,n.useMemo)((()=>{const e=Ue(C[f.selectedState]);return{isElectricityRateCustomised:Math.abs(f.elecRateCPerKwh-e)>.05,isPhevElectricityRateCustomised:Math.abs(f.phevElecRateCPerKwh-e)>.05}}),[f.elecRateCPerKwh,f.phevElecRateCPerKwh,f.selectedState,C]),P=(0,n.useMemo)((()=>(e=>{const{km:a}=e,t=Math.max(0,a),n=a>0?a:1,r=e.elecRateCPerKwh/100,i=t/100*e.evEffKwhPer100km*r,l=e.evReg+e.evServ,c=i+l,o=i/n*100,s=t/100*e.fuelConsLPer100km*e.fuelPricePerL,d=e.fuelReg+e.fuelServ,u=s+d,g=s/n*100;let v,p=0,C=0;if("phev"===e.hybridType){const a=Math.min(100,Math.max(0,e.phevElecSharePercent))/100,n=e.phevElecRateCPerKwh/100;p=t*(1-a)/100*e.hybridFuelConsLPer100km*e.hybridFuelPricePerL,C=t*a/100*16*n,v=p+C}else p=t/100*e.hybridFuelConsLPer100km*e.hybridFuelPricePerL,C=0,v=p;const h=e.hybridReg+e.hybridServ,m=v+h,E=v/n*100,S=[{name:"EV",val:c},{name:"Hybrid",val:m},{name:"Petrol",val:u}].sort(((e,a)=>
1e.val!==a.val?e.val-a.val:Ge.indexOf(e.name)-Ge.indexOf(a.name))),b=S[0],y=S[1],f=S[2],R=y.val-b.val,H=f.val-b.val,A=b.val===y.val;return{ev:{fuelCost:0,electricityCost:i,energyOrFuelCost:i,regoAndServicing:l,totalRunning:c,cPerKmEnergyOrFuel:o},hybrid:{fuelCost:p,electricityCost:C,energyOrFuelCost:v,regoAndServicing:h,totalRunning:m,cPerKmEnergyOrFuel:E},petrol:{fuelCost:s,electricityCost:0,energyOrFuelCost:s,regoAndServicing:d,totalRunning:u,cPerKmEnergyOrFuel:g},cheapestName:b.name,secondCheapestName:y.name,costliestName:f.name,savingVsNext:R,savingVsThird:H,firstTwoAnnualTotalsEqual:A}})((e=>({km:e.km,elecRateCPerKwh:e.elecRateCPerKwh,evEffKwhPer100km:e.evEffKwhPer100km,evReg:e.evReg,evServ:e.evServ,fuelPricePerL:e.fuelPricePerL,fuelConsLPer100km:e.fuelConsLPer100km,fuelReg:e.fuelReg,fuelServ:e.fuelServ,hybridType:e.hybridType,hybridFuelConsLPer100km:e.hybridFuelConsLPer100km,hybridFuelPricePerL:e.hybridFuelPricePerL,hybridReg:e.hybridReg,hybridServ:e.hybridServ,phevElecRateCPerKwh:e.phevElecRateCPerKwh,phevElecSharePercent:e.phevElecSharePercent}))(f))),[f]),L=(0,n.useMemo)((()=>{return P.savingVsNext>Xe?{headline:m(Ke(P.savingVsNext)),context:(e=P.cheapestName,a=P.secondCheapestName,t=f.km,`${h(e)} are estimated to have lower running costs than ${h(a)} for ${Number(t).toLocaleString("en-AU")} km/yr.`),isTie:!1,heroVariant:"savingsVsRunnerUp"}:P.firstTwoAnnualTotalsEqual&&P.savingVsThird>Xe?{headline:m(Ke(P.savingVsThird)),context:E(P.cheapestName,P.secondCheapestName,P.costliestName,f.km),isTie:!1,heroVariant:"coWinnersVsThird"}:{headline:"Similar running costs",context:S(f.km),isTie:!0,heroVariant:"similarCosts"};var e,a,t}),[f.km,P]),F=(0,n.useMemo)((()=>((e,a)=>{const{ev:t,hybrid:n,petrol:r}=a,i=Math.min(t.totalRunning,n.totalRunning,r.totalRunning);if("similarCosts"===e)return{EV:!1,Hybrid:!1,Petrol:!1};if("coWinnersVsThird"===e){const{cheapestName:e,secondCheapestName:t}=a;return{EV:"EV"===e||"EV"===t,Hybrid:"Hybrid"===e||"Hybrid"===t,Petrol:"Petrol"===e||"Petrol"===t}}return{EV:t.totalRunning===i,Hybrid:n.totalRunning===i,Petrol:r.totalRunning===i}})(L.heroVariant,P)),[L.heroVariant,P]),W=(0,n.useMemo)((()=>{const e=Math.max(P.ev.totalRunning,P.hybrid.totalRunning,P.petrol.totalRunning);return e<=0?{EV:0,Hybrid:0,Petrol:0}:{EV:P.ev.totalRunning/e*100,Hybrid:P.hybrid.totalRunning/e*100,Petrol:P.petrol.totalRunning/e*100}}),[P]),I=(0,n.useMemo)((()=>((e,a,t)=>{const n=null!=t&&t.trim()?` (figures dated ${t.trim()})`:"";return`Electricity rates are based on an indicative residential effective rate of ${a[e].toFixed(1)}¢/kWh for ${e}${n}. The default slider for “electricity costs” reflects this estimate only. Your actual electricity charge may be higher or lower and will vary depending on your retailer, plan, location, time-of-use pricing and where and how charging occurs (including home charging versus public or fast-charging stations). Contact your energy provider for your current rate.`})(f.selectedState,C,p)),[f.selectedState,C,p]),B=(0,_e.x)();return{calc:f,isElectricityRateCustomised:T,isPhevElectricityRateCustomised:w,handleRangeChange:k,handleSelectChange:x,calculationResult:P,annualSavingsHero:L,showAnnualRunningCostWinnerByKind:F,asideAnnualCostRowFillWidthsPercent:W,electricityRatesDisclaimerText:I,hasRendered:B}}var ea=t(25097),aa=t(20045),ta=t(13706),na=t(91785);const ra=(e,a)=>(0,na.AH)("border-color:",e,";border-top-width:",Te.calcEvInputCardWinnerTopAccentWidth,";box-shadow:",Te.calcEvInputWinnerShadowBaseLayers,",0 0 0 ",Te.calcEvInputWinnerRingWidth," ",a,";transform:translateY(\n    -",Te.calcEvInputCardLiftTranslateY,"\n  );",""),ia=()=>(0,na.AH)("background-color:",Te.calcEvInputCardBgCol,";border:",Te.calcEvInputCardBorder,";border-radius:",Te.calcEvCardRadius,";padding:",Te.calcEvInputCardPadding,";box-shadow:",Te.calcEvShadowSubtle,";transition:",Te.calcEvInputCardTransition,";@media (prefers-reduced-motion: reduce){transition:none;}",""),la=({backgroundColor:e,color:a,outlineColor:t})=>(0,na.AH)("background-color:",e,";color:",a,";&:focus-visible{outline-color:",t,";}",""),ca=(0,na.AH)(Te.calcEvCardHeadingFontStack,";font-size:",Te.calcEvCardHeadingSize,";line-height:",Te.calcEvCardHeadingLineHeight,";letter-spacing:",Te.calcEvCardHeadingLetterSpacing,";text-transform:",Te.calcEvCardHeadingTransform,";text-align:",Te.calcEvCardHeadingAlign,";color:",Te.calcEvCardHeadingCol,";margin:0;","");var oa=t(5826),sa=t(650);const da=(0,na.AH)("display:grid;gap:",Te.calcEvAsideGap,";padding:",Te.calcEvAsidePadding,";background-color:",Te.calcEvAsideBgCol,";border-radius:",Te.calcEvCardRadius,";border:",Te.calcEvAsideBorder,";box-shadow:",Te.calcEvShadowSubtle,";",(0,oa.HG)(sa.f.lg),"{position:sticky;top:",Te.calcEvAsideStickyTop,";height:",Te.calcEvAsideStickyHeight,";}",""),ua=(0,na.AH)(Te.calcEvSavingsHeroBadgeFontStack,";font-size:",Te.calcEvSavingsHeroBadgeSize,";line-height:",Te.calcEvSavingsHeroBadgeLineHeight,";letter-spacing:",Te.calcEvSavingsHeroBadgeLetterSpacing,";text-transform:",Te.calcEvSavingsHeroBadgeTransform,";color:",Te.calcEvSavingsHeroBadgeCol,";border-radius:",Te.calcEvSavingsHeroBadgeRadius,";background-color:",Te.calcEvSavingsHeroBadgeBgCol,";margin-bottom:",Te.calcEvSavingsHeroBadgeMarginBottom,";padding:",Te.calcEvSavingsHeroBadgePadding,";display:",Te.calcEvSavingsHeroBadgeDisplay,";",""),ga=(0,na.AH)(Te.calcEvSavingsHeroFontStack,";font-size:",Te.calcEvSavingsHeroSizeSm,";line-height:",Te.calcEvSavingsHeroLineHeight,";letter-spacing:",Te.calcEvSavingsHeroLetterSpacing,";text-transform:",Te.calcEvSavingsHeroTransform,";color:",Te.calcEvSavingsHeroCol,";margin:0;",(0,oa.HG)(sa.f.md),"{font-size:",Te.calcEvSavingsHeroSizeMd,";}",""),va=(0,na.AH)(Te.calcEvSavingsComparisonFontStack,";font-size:",Te.calcEvSavingsComparisonSize,";line-height:",Te.calcEvSavingsComparisonLineHeight,";letter-spacing:",Te.calcEvSavingsComparisonLetterSpacing,";text-transform:",Te.calcEvSavingsComparisonTransform,";color:",Te.calcEvSavingsComparisonCol,";margin:",Te.calcEvSavingsComparisonGapTop," 0 0;max-width:",Te.calcEvSavingsComparisonMaxWidth,";",""),pa=(0,na.AH)("display:none;margin-top:",Te.calcEvAsideCtaWrapperGapTop,";",(0,oa.HG)(sa.f.lg),"{display:block;}",""),Ca=(0,na.AH)(Te.calcEvWinnerStockCtaFontStack,";font-size:",Te.calcEvWinnerStockCtaSize,";line-height:",Te.calcEvWinnerStockCtaLineHeight,";letter-spacing:",Te.calcEvWinnerStockCtaLetterSpacing,";text-transform:",Te.calcEvWinnerStockCtaTransform,";color:",Te.calcEvWinnerStockCtaCol,";background-color:",Te.calcEvWinnerStockCtaBgCol,";border:",Te.calcEvWinnerStockCtaBorder,";padding:",Te.calcEvWinnerStockCtaPadding,";border-radius:",Te.calcEvWinnerCtaRadius,";text-decoration:",Te.calcEvWinnerStockCtaTextDecoration,";display:",Te.calcEvWinnerStockCtaDisplay,";align-items:",Te.calcEvWinnerStockCtaAlignItems,";justify-content:",Te.calcEvWinnerStockCtaJustifyContentSm,";gap:",Te.calcEvWinnerStockCtaIconGap,";width:",Te.calcEvWinnerStockCtaWidthSm,";white-space:",Te.calcEvWinnerStockCtaWhiteSpace,";cursor:",Te.calcEvWinnerStockCtaCursor,";transition:",Te.calcEvWinnerStockCtaTransition,";",(0,oa.HG)(sa.f.lg),"{width:",Te.calcEvWinnerStockCtaWidthMd,";justify-content:",Te.calcEvWinnerStockCtaJustifyContentMd,";}@media (prefers-reduced-motion: reduce){transition:none;}&:hover,&:focus-visible{box-shadow:",Te.calcEvWinnerStockCtaHoverBoxShadow,";transform:translateY(",Te.calcEvWinnerStockCtaHoverTranslateY,");text-decoration:",Te.calcEvWinnerStockCtaHoverTextDecoration,";.classCalcEvWinnerStockCtaArrow{transform:",Te.calcEvWinnerStockCtaArrowTransform,";}}&:focus-visible{outline:",Te.calcEvWinnerStockCtaFocusOutline,";outline-offset:",Te.calcEvWinnerStockCtaFocusOutlineOffset,";}",""),ha=(0,na.AH)("flex-shrink:",Te.calcEvWinnerStockCtaIconWrapperFlexShrink,";display:inline-flex;align-items:center;",""),ma=(0,na.AH)("width:",Te.calcEvWinnerStockCtaIconSize,";height:",Te.calcEvWinnerStockCtaIconSize,";fill:",Te.calcEvWinnerStockCtaIconFill,";",""),Ea=(0,na.AH)("transform-origin:",Te.calcEvWinnerStockCtaArrowTransformOrigin,";transition:",Te.calcEvWinnerStockCtaArrowTransition,";",""),Sa=la({backgroundColor:J,color:ee,outlineColor:J}),ba=la({backgroundColor:Q,color:ae,outlineColor:Q}),ya=la({backgroundColor:_,color:te,outlineColor:_}),fa=(0,na.AH)("border:0;border-top:",Te.calcEvAsideDividerBorderTop,";margin:0;",""),Ra=(0,na.AH)(ca,";",""),Ha=(0,na.AH)("display:grid;gap:",Te.calcEvAsideAnnualCostRowItemGap,";opacity:",Te.calcEvAsideAnnualCostRowItemOpacityNonWinner,";",""),Aa=(0,na.AH)("opacity:",Te.calcEvAsideAnnualCostRowItemOpacityWinner,";",""),ka=(0,na.AH)("display:flex;align-items:",Te.calcEvAsideAnnualCostRowHeaderAlign,";gap:",Te.calcEvAsideAnnualCostRowHeaderGap,";",""),xa={name:"1mjcs3m",styles:"flex-shrink:0;display:inline-flex;align-items:center"},Ta=(0,na.AH)(Te.calcEvAsideAnnualCostRowTextFontStack,";font-size:",Te.calcEvAsideAnnualCostRowTextSize,";line-height:",Te.calcEvAsideAnnualCostRowTextLineHeight,";letter-spacing:",Te.calcEvAsideAnnualCostRowTextLetterSpacing,";text-transform:",Te.calcEvAsideAnnualCostRowTextTransform,";color:",Te.calcEvAsideAnnualCostRowTextCol,";",""),wa=(0,na.AH)(Te.calcEvAsideAnnualCostRowValueFontStack,";font-size:",Te.calcEvAsideAnnualCostRowValueSize,";line-height:",Te.calcEvAsideAnnualCostRowValueLineHeight,";letter-spacing:",Te.calcEvAsideAnnualCostRowValueLetterSpacing,";text-transform:",Te.calcEvAsideAnnualCostRowValueTransform,";color:",Te.calcEvAsideAnnualCostRowValueCol,";transition:",Te.calcEvAsideAnnualCostRowValueTransition,";@media (prefers-reduced-motion: reduce){transition:none;}",""),Pa=(0,na.AH)("color:",Te.calcEvAsideAnnualCostRowValueWinnerCol,";background-color:",Te.calcEvAsideAnnualCostRowValueWinnerBgCol,";padding:",Te.calcEvAsideAnnualCostRowValueWinnerPadding,";border-radius:",Te.calcEvAsideAnnualCostRowValueWinnerRadius,";width:fit-content;",""),La=(0,na.AH)(Te.calcEvAsideAnnualCostRowSubHeadingFontStack,";font-size:",Te.calcEvAsideAnnualCostRowSubHeadingSize,";line-height:",Te.calcEvAsideAnnualCostRowSubHeadingLineHeight,";letter-spacing:",Te.calcEvAsideAnnualCostRowSubHeadingLetterSpacing,";text-transform:",Te.calcEvAsideAnnualCostRowSubHeadingTransform,";color:",Te.calcEvAsideAnnualCostRowSubHeadingCol,";",""),Fa=(0,na.AH)("background-color:",Te.calcEvAsideAnnualCostRowTrackBgCol,";height:",Te.calcEvAsideAnnualCostRowTrackHeight,";border-radius:",Te.calcEvAsideAnnualCostRowTrackRadius,";overflow:hidden;",""),Wa=(0,na.AH)("height:100%;border-radius:",Te.calcEvAsideAnnualCostRowFillRadius,";transition:",Te.calcEvAsideAnnualCostRowFillTransition,";@media (prefers-reduced-motion: reduce){transition:none;}",""),Ia=(0,na.AH)("background-color:",J,";",""),Ba=(0,na.AH)("background-color:",Q,";",""),Ya=(0,na.AH)("background-color:",_,";",""),Ma=(0,na.AH)(Te.calcEvVerdictFontStack,";font-size:",Te.calcEvVerdictSize,";line-height:",Te.calcEvVerdictLineHeight,";letter-spacing:",Te.calcEvVerdictLetterSpacing,";text-transform:",Te.calcEvVerdictTransform,";color:",Te.calcEvVerdictCol,";margin:0;",""),Na=(0,na.AH)("position:",Te.calcEvMobileFooterPosition,";bottom:",Te.calcEvMobileFooterBottom,";left:",Te.calcEvMobileFooterLeft,";transform:",Te.calcEvMobileFooterTransform,";width:",Te.calcEvMobileFooterWidth,";z-index:",Te.calcEvMobileFooterZIndex,";display:",Te.calcEvMobileFooterDisplay,";flex-direction:column;align-items:",Te.calcEvMobileFooterAlignItems,";justify-content:",Te.calcEvMobileFooterJustifyContent,";gap:",Te.calcEvMobileFooterGap,";padding:",Te.calcEvMobileFooterPadding,";background-color:",Te.calcEvMobileFooterBgCol,";border:",Te.calcEvMobileFooterBorder,";box-shadow:",Te.calcEvMobileFooterBoxShadow,";border-radius:",Te.calcEvMobileFooterRadius,";pointer-events:",Te.calcEvMobileFooterPointerEvents,";",(0,oa.HG)(sa.f.lg),"{display:none;}",""),Va=(0,na.AH)("display:",Te.calcEvMobileFooterTextWrapperDisplay,";flex-direction:",Te.calcEvMobileFooterTextWrapperDirection,";align-items:",Te.calcEvMobileFooterTextWrapperAlignItems,";justify-content:",Te.calcEvMobileFooterTextWrapperJustifyContent,";gap:",Te.calcEvMobileFooterTextWrapperGap,";",""),$a=(0,na.AH)(Te.calcEvMobileFooterAmountFontStack,";font-size:",Te.calcEvMobileFooterAmountSize,";line-height:",Te.calcEvMobileFooterAmountLineHeight,";letter-spacing:",Te.calcEvMobileFooterAmountLetterSpacing,";text-transform:",Te.calcEvMobileFooterAmountTransform,";color:",Te.calcEvMobileFooterAmountCol,";white-space:",Te.calcEvMobileFooterAmountWhiteSpace,";",""),Da=(0,na.AH)(Te.calcEvMobileFooterContextFontStack,";font-size:",Te.calcEvMobileFooterContextSize,";line-height:",Te.calcEvMobileFooterContextLineHeight,";letter-spacing:",Te.calcEvMobileFooterContextLetterSpacing,";text-transform:",Te.calcEvMobileFooterContextTransform,";color:",Te.calcEvMobileFooterContextCol,";white-space:",Te.calcEvMobileFooterContextWhiteSpace,";",""),za=(0,na.AH)("width:auto;max-width:100%;flex-shrink:0;",(0,oa.HG)(sa.f.md),"{width:auto;}",""),Ga=(0,na.AH)("display:grid;gap:",Te.calcEvInputSectionGap,";container:calcEvCardGridThreeCol/inline-size;",""),Ka=(0,na.AH)(ia(),";",""),Xa=(0,na.AH)(ia(),";transform:translateY(\n    ",Te.calcEvInputCardLiftTranslateY,"\n  );transition:",Te.calcEvInputCardLiftTransition,";",""),Oa=(0,na.AH)("border-top:",Te.calcEvInputCardTopAccentWidth," solid ",J,";",""),Ua=(0,na.AH)("border-top:",Te.calcEvInputCardTopAccentWidth," solid ",Q,";",""),ja=(0,na.AH)("border-top:",Te.calcEvInputCardTopAccentWidth," solid ",_,";",""),qa=ra(J,Te.calcEvInputWinnerRingEvCol),Ja=ra(Q,Te.calcEvInputWinnerRingHybridCol),Qa=ra(_,Te.calcEvInputWinnerRingPetrolCol),_a=(0,na.AH)("display:flex;align-items:center;gap:",Te.calcEvInputCardHeaderGap,";margin-bottom:",Te.calcEvInputCardHeaderGapBottom,";",""),Za=(0,na.AH)("display:flex;align-items:center;gap:",Te.calcEvInputCardHeadingWrapperGap,";flex:",Te.calcEvInputCardHeadingWrapperFlex,";min-width:0;",""),et=(0,na.AH)(ca,";",""),at=(0,na.AH)("flex-shrink:0;display:inline-flex;align-items:",Te.calcEvInputTickAlign,";justify-content:",Te.calcEvInputTickJustify,";width:",Te.calcEvInputTickSize,";height:",Te.calcEvInputTickSize,";& .classCalcEvCardWinnerTickIconPath{fill:none;stroke-width:",Te.calcEvInputTickPathStrokeWidth,";stroke-linecap:round;stroke-linejoin:round;}",""),tt=(0,na.AH)("color:",Te.calcEvInputTickEvCol,";& .classCalcEvCardWinnerTickIconPath{stroke:",Te.calcEvInputTickEvStrokeCol,";}",""),nt=(0,na.AH)("color:",Te.calcEvInputTickHybridCol,";& .classCalcEvCardWinnerTickIconPath{stroke:",Te.calcEvInputTickHybridStrokeCol,";}",""),rt=(0,na.AH)("color:",Te.calcEvInputTickPetrolCol,";& .classCalcEvCardWinnerTickIconPath{stroke:",Te.calcEvInputTickPetrolStrokeCol,";}",""),it=(0,na.AH)("display:grid;grid-template-columns:1fr;gap:",Te.calcEvInputGridTwoColGap,";",(0,oa.HG)(sa.f.sm),"{grid-template-columns:1fr 1fr;}",""),lt=(0,na.AH)("display:grid;grid-template-columns:1fr;gap:",Te.calcEvInputGridThreeColGap,";@container calcEvCardGridThreeCol (inline-size >= 630px){grid-template-columns:1fr 1fr;.classCalcEvInputsCardPetrolWrapper{grid-column:span 2;}}@container calcEvCardGridThreeCol (inline-size >= 900px){grid-template-columns:1fr 1fr 1fr;.classCalcEvInputsCardPetrolWrapper{grid-column:auto;}}",""),ct=(0,na.AH)("flex-wrap:wrap;margin-bottom:",Te.calcEvInputGridItemGapBottom,";&:last-child{margin-bottom:0;}.classCalcEvInputsTopCardWrapper &{margin-bottom:0;}",""),ot=(0,na.AH)("font-size:",Te.calcEvInputRangeSliderTextFirstSize,";color:",Te.calcEvInputRangeSliderTextFirstCol,";",(0,oa.HG)(sa.f.md),"{font-size:",Te.calcEvInputRangeSliderTextFirstSize,";}",""),st=(0,na.AH)("display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;width:",Te.calcEvInputRangeSliderTextWrapperWidth,";margin-bottom:",Te.calcEvInputRangeSliderTextWrapperMarginBottom,";gap:",Te.calcEvInputRangeSliderTextWrapperGap,";.classRangeSliderTextFirst{",Te.calcEvInputRangeSliderTextFirstFontStack,";font-size:",Te.calcEvInputRangeSliderTextFirstSize,";color:",Te.calcEvInputRangeSliderTextFirstCol,";display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:baseline;flex:1;min-width:0;}.classRangeSliderTextLast{",Te.calcEvInputRangeSliderTextLastFontStack,";font-size:",Te.calcEvInputRangeSliderTextLastSize,";line-height:",Te.calcEvInputRangeSliderTextLastLineHeight,";letter-spacing:",Te.calcEvInputRangeSliderTextLastLetterSpacing,";text-tra
1nsform:",Te.calcEvInputRangeSliderTextLastTransform,";text-align:",Te.calcEvInputRangeSliderTextLastAlign,";color:",Te.calcEvInputRangeSliderTextLastCol,";flex-shrink:0;}",""),dt=(0,na.AH)("width:100%;max-width:100%;.rc-slider-track{background-color:",Te.calcEvInputSliderTrackBgCol,";}.rc-slider-handle{border-color:",Te.calcEvInputSliderHandleDragBorderCol,";}.rc-slider-dot-active{border-color:",Te.calcEvInputSliderTrackBgCol,";background-color:",Te.calcEvInputSliderTrackBgCol,";}.rc-slider-handle-dragging.rc-slider-handle-dragging{border-color:",Te.calcEvInputSliderHandleDragBorderCol,";box-shadow:",Te.calcEvInputSliderHandleDragShadow,";}",""),ut={EV:tt,Hybrid:nt,Petrol:rt},gt=({category:e})=>(0,na.Y)("span",{css:[at,ut[e],""],role:"img","aria-label":"Lowest annual running cost for your inputs"},(0,na.Y)("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},(0,na.Y)("circle",{cx:"9",cy:"9",r:"8",fill:"currentColor"}),(0,na.Y)("path",{className:"classCalcEvCardWinnerTickIconPath",d:"M5.1 9.1 L8.05 12.05 L12.95 5.85"}))),vt={EV:Sa,Hybrid:ba,Petrol:ya},pt=[{kind:"EV",fillCss:Ia},{kind:"Hybrid",fillCss:Ba},{kind:"Petrol",fillCss:Ya}],Ct=({kind:e,fillCss:a,breakdown:t,calc:n,isWinner:r,widthPct:i,runningCostsFootnoteId:l})=>{const c="Hybrid"===e?`${Oe(t.cPerKmEnergyOrFuel)} ${"phev"===n.hybridType?"fuel and electricity":"fuel"}`:`${Oe(t.cPerKmEnergyOrFuel)} ${"EV"===e?"electricity":"fuel"}`;return(0,na.Y)("div",{css:[Ha,r&&Aa,""],className:`classCalcEvAsideAnnualCostRowItemWrapper classCalcEvAsideAnnualCostRowFill${e}`},(0,na.Y)("div",{css:ka},r?(0,na.Y)("span",{css:xa},(0,na.Y)(gt,{category:e})):null,(0,na.Y)("span",{css:Ta},p[e])),(0,na.Y)("div",{css:[wa,r&&Pa,""],"aria-describedby":l},Ke(t.totalRunning),"/yr",(0,na.Y)("sup",{"aria-hidden":"true"},"*")),(0,na.Y)("div",{css:La},c),(0,na.Y)("div",{css:Fa,"aria-hidden":!0},(0,na.Y)("div",{css:[Wa,a,""],style:{width:`${i}%`}})))};const ht=({calc:e,calculationResult:a,annualSavingsHero:t,asideAnnualCostRowFillWidthsPercent:r,showAnnualRunningCostWinnerByKind:i,stockBasePathElectric:l,stockBasePathHybrid:c,stockBasePathPetrol:o,stockPathUsesKeywordsByKind:s,runningCostsFootnoteId:d,winnerCtaClassByName:C,hideMobileCta:h})=>{const m={EV:a.ev,Hybrid:a.hybrid,Petrol:a.petrol},E=(0,n.useMemo)((()=>{if("similarCosts"===t.heroVariant)return"";const e={EV:l,Hybrid:c,Petrol:o}[a.cheapestName],{cheapestName:n}=a,r=s[n]?((e,a)=>{const t=e.trim();if(!t)return"";if(y.test(t))return"";const n=u[a];if(/^https?:\/\//i.test(t))try{const e=new URL(t);e.pathname=f(e.pathname);const a=R(e.search,n);return e.search=a?`?${a}`:"",e.toString()}catch{return""}if(!b.test(t))return"";try{const e=new URL(t,"https://imotor.invalid"),a=f(e.pathname),r=R(e.search,n);return`${a}${r?`?${r}`:""}${e.hash}`}catch{return""}})(null!=e?e:"",n):(e=>{const a=e.trim();if(!a)return"";if(y.test(a))return"";if(/^https?:\/\//i.test(a))try{const e=new URL(a);return e.pathname=f(e.pathname),e.toString()}catch{return""}if(!b.test(a))return"";try{const e=new URL(a,"https://imotor.invalid");return`${f(e.pathname)}${e.search}${e.hash}`}catch{return""}})(null!=e?e:"");return r.trim()}),[t.heroVariant,l,c,o,s,a.cheapestName]);return(0,na.Y)(n.Fragment,null,(0,na.Y)("aside",{className:"classCalcEvAsideWrapper",css:da},(0,na.Y)("div",null,(0,na.Y)("div",{"aria-live":"polite","aria-atomic":"true"},"similarCosts"!==t.heroVariant?(0,na.Y)("span",{className:"classCalcEvSavingsHeroAmountBadge",css:[ua,vt[a.cheapestName],""]},"Lowest annual running cost:"," ","coWinnersVsThird"===t.heroVariant?`${p[a.cheapestName]} and ${p[a.secondCheapestName]}`:p[a.cheapestName]):null,(0,na.Y)("div",{className:"classCalcEvSavingsHeroAmountText",css:ga},t.headline,t.isTie?null:(0,na.Y)("sup",{"aria-hidden":"true"},"*")),(0,na.Y)("p",{css:va},t.context)),E?(0,na.Y)("div",{css:pa},(0,na.Y)(aa.b,{to:E,linkBasicCustom:[Ca,vt[a.cheapestName]],className:`classCalcEvWinnerStockCtaLink ${C[a.cheapestName]}`.trim()},(0,na.Y)("span",{css:ha},(0,na.Y)(ta.R,{className:"classIconSvg",css:ma,name:v[a.cheapestName]})),g[a.cheapestName],(0,na.Y)("span",{className:"classCalcEvWinnerStockCtaArrow",css:Ea,"aria-hidden":"true"}," ","→"))):null),(0,na.Y)("hr",{css:fa}),(0,na.Y)("h3",{css:Ra},"Estimated annual running costs"),pt.map((({kind:a,fillCss:t})=>(0,na.Y)(Ct,{key:a,kind:a,fillCss:t,breakdown:m[a],calc:e,isWinner:i[a],widthPct:r[a],runningCostsFootnoteId:d}))),(0,na.Y)("p",{id:d,className:"classCalcEvVerdictText",css:Ma},(0,na.Y)("sup",null,"*"),"Estimated running costs include fuel or energy, registration, insurance and servicing. Excludes various other costs. See important information in the disclaimer below.")),h?null:(0,na.Y)("div",{className:"classCalcEvMobileFooterCtaWrapper",css:Na},(0,na.Y)("div",{css:Va},(0,na.Y)("div",{css:$a},t.headline,t.isTie?null:(0,na.Y)("sup",{"aria-hidden":"true"},"*")),(0,na.Y)("div",{css:Da},function(e,a){return"similarCosts"===e?"across vehicle types":"coWinnersVsThird"===e?`with ${a.cheapestName.toLowerCase()} and ${a.secondCheapestName.toLowerCase()}`:`with ${a.cheapestName.toLowerCase()}`}(t.heroVariant,a))),E?(0,na.Y)(aa.b,{to:E,linkBasicCustom:[Ca,vt[a.cheapestName],za],className:`classCalcEvWinnerStockCtaLink ${C[a.cheapestName]}`.trim()},(0,na.Y)("span",{css:ha},(0,na.Y)(ta.R,{className:"classIconSvg",css:ma,name:v[a.cheapestName]})),g[a.cheapestName],(0,na.Y)("span",{className:"classCalcEvWinnerStockCtaArrow",css:Ea,"aria-hidden":"true"}," ","→")):null))};var mt=t(36905),Et=t(37700),St=t(63021),bt=t(94300);const yt=80,ft=e=>`Hybrid - ${e.toUpperCase()}`,Rt=e=>["Electric",ft(e),"Petrol or diesel"],Ht="rgba(0, 0, 0, 0)",At=["EV","Hybrid","Petrol"];function kt(e){const a=e.trim();return"EV"===a||"Electric"===a?C.EV:"Hybrid"===a?C.Hybrid:"Petrol"===a||/^petrol or diesel$/i.test(a)?C.Petrol:a}const xt={EV:"electric vehicle",Hybrid:"hybrid vehicle",Petrol:"petrol vehicle"};const Tt=function(e,a){const t={};for(let n=e;n<=a;n+=1)t[n]=String(n);return t}(1,10);function wt(e,a,t,n){const r=function(e,a,t){return[{type:"EV",annualTotal:e.totalRunning},{type:"Hybrid",annualTotal:a.totalRunning},{type:"Petrol",annualTotal:t.totalRunning}].sort(((e,a)=>e.annualTotal!==a.annualTotal?e.annualTotal-a.annualTotal:At.indexOf(e.type)-At.indexOf(a.type)))}(e,a,t),[i,l,c]=r,o=e=>e*n,s={type:i.type,totalPeriod:o(i.annualTotal)},d={type:l.type,totalPeriod:o(l.annualTotal)},u={type:c.type,totalPeriod:o(c.annualTotal)},g=l.annualTotal-i.annualTotal,v=Xe*n,p=d.totalPeriod-s.totalPeriod>v,C=u.totalPeriod-s.totalPeriod>v;return{winner:s,runnerUp:d,thirdPlace:u,savingVsNextAnnual:g,primarySavingMeaningful:p,thirdSavingMeaningful:C,showChartSidebarSavingsText:p||C}}function Pt(e,a,t,n,r,i="hev"){const l=function(e,a,t,n){const r=n,i=[e.fuelCost*r,a.fuelCost*r,t.fuelCost*r],l=[e.electricityCost*r,a.electricityCost*r,t.electricityCost*r],c=[e.regoAndServicing*r,a.regoAndServicing*r,t.regoAndServicing*r],o=t.totalRunning*r,s=a.totalRunning*r,d=e.totalRunning*r;return{fuel:i,electricity:l,maintenance:c,evTotal:d,hybridTotal:s,petrolTotal:o,maxTotal:Math.max(o,s,d)}}(e,a,t,n),c=wt(e,a,t,n),o=function(e,a,t="hev"){const{fuel:n,electricity:r,maintenance:i}
1=e,l=[Ht,a.baseColHybrid,a.baseColPetrol],c=[a.baseColElectric,a.baseColElectric,Ht],o=Rt(t),s=[a.baseColMaintenance,a.baseColMaintenance,a.baseColMaintenance];return{labels:(0,bt.A)(o),datasets:[{label:"Petrol or diesel (fuel)",data:n,stack:"running",backgroundColor:[].concat(l),borderRadius:{topLeft:0,bottomLeft:4,topRight:0,bottomRight:0},borderSkipped:!1,borderWidth:0},{label:"Electricity",data:r,stack:"running",backgroundColor:[].concat(c),borderRadius:0,borderSkipped:!1,borderWidth:0},{label:"Rego, insurance and servicing",data:i,stack:"running",backgroundColor:[].concat(s),borderRadius:{topLeft:0,bottomLeft:0,topRight:4,bottomRight:4},borderSkipped:!1,borderWidth:0}]}}(l,r,i),s=function(e,a,t="hev"){const{fuel:n,electricity:r,maintenance:i}=e,l=Rt(t);return{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",interaction:{mode:"index",intersect:!1,axis:"y"},hover:{mode:"index",intersect:!1,axis:"y"},layout:{padding:{right:yt}},plugins:{legend:{display:!1},tooltip:{mode:"index",intersect:!1,axis:"y",backgroundColor:Te.calcEvChartRunningCostsBarTooltipBgCol,titleColor:Te.calcEvChartRunningCostsBarTooltipTextCol,bodyColor:Te.calcEvChartRunningCostsBarTooltipTextCol,footerColor:Te.calcEvChartRunningCostsBarTooltipTextCol,borderColor:Te.calcEvChartRunningCostsBarTooltipBorderCol,borderWidth:Number(Te.calcEvChartRunningCostsBarTooltipBorderWidth),padding:Number(Te.calcEvChartRunningCostsBarTooltipPadding),displayColors:!0,boxPadding:Number(Te.calcEvChartRunningCostsBarTooltipBoxPadding),filter:e=>{const a=e.parsed.x;return"number"==typeof a&&!Number.isNaN(a)&&0!==a},callbacks:{title:e=>{var a,t;return e.length&&null!==(a=null!==(t=l[e[0].dataIndex])&&void 0!==t?t:e[0].label)&&void 0!==a?a:""},footer:e=>{if(!e.length)return"";const a=e[0].dataIndex,t=n[a]+r[a]+i[a];return`Total: ${Ke(t)}`},label:e=>{const a=Number(e.parsed.x);return` ${e.dataset.label}: ${Ke(a)}`}}}},scales:{x:{stacked:!0,beginAtZero:!0,ticks:{callback:e=>`$${Number(e).toLocaleString("en-AU",{maximumFractionDigits:0})}`,color:Te.calcEvChartRunningCostsBarTooltipBgCol},grid:{color:Te.calcEvChartRunningCostsBarGridXCol}},y:{stacked:!0,reverse:!1,grid:{display:!1},ticks:{font:{size:Number(Te.calcEvChartRunningCostsBarAxisYTickSize),weight:Number(Te.calcEvChartRunningCostsBarAxisYTickWeight)},color:Te.calcEvChartRunningCostsBarTooltipBgCol}}}}}(l,0,i);return{data:o,options:s,savingsSidebar:c}}const Lt={id:"evRunningCostBarTotals",afterDatasetsDraw(e){var a;const{ctx:t}=e,n=e.data.datasets.length-1,r=e.getDatasetMeta(n);if(null!=r&&null!==(a=r.data)&&void 0!==a&&a.length){t.save(),t.font=Te.calcEvChartRunningCostsBarTotalLabelFont,t.fillStyle=Te.calcEvChartRunningCostsBarTotalLabelCol,t.textAlign="left",t.textBaseline="middle";for(let a=0;a<r.data.length;a+=1){const n=r.data[a];if(n&&"number"==typeof n.x&&"number"==typeof n.y){const r=e.data.datasets.reduce(((e,t)=>{var n;return e+Number(null!==(n=t.data[a])&&void 0!==n?n:0)}),0);t.fillText(Ke(r),n.x+8,n.y)}}t.restore()}}};const Ft={name:"1d3w5wq",styles:"width:100%"},Wt=(0,na.AH)("display:flex;flex-direction:column;gap:",Te.calcEvInputSectionGap,";background:",Te.calcEvInputCardBgCol,";border-radius:",Te.calcEvCardRadius,";border:",Te.calcEvInputCardBorder,";box-shadow:",Te.calcEvShadowSubtle,";padding:",Te.calcEvInputCardPadding,";",""),It=(0,na.AH)("display:flex;flex-direction:column;gap:",Te.calcEvInputSectionGap,";",(0,oa.HG)(sa.f.md),"{flex-direction:row;align-items:",Te.calcEvBodyAlignLg,";gap:",Te.calcEvChartRunningCostsMainRowGapMd,";}",""),Bt=(0,na.AH)("flex:",Te.calcEvInputCardHeadingWrapperFlex,";min-width:0;",""),Yt=(0,na.AH)(Te.calcEvChartHeadingFontStack,";font-size:",Te.calcEvChartRunningCostsHeadingSize,";line-height:",Te.calcEvChartRunningCostsHeadingLineHeight,";letter-spacing:",Te.calcEvChartHeadingLetterSpacing,";text-transform:",Te.calcEvChartHeadingTransform,";color:",Te.calcEvChartHeadingCol,";margin:",Te.calcEvChartRunningCostsHeadingMargin,";",""),Mt=(0,na.AH)("position:relative;width:",Te.calcEvChartRunningCostsCanvasWidth,";min-height:",Te.calcEvChartRunningCostsCanvasMinHeight,";height:",Te.calcEvChartRunningCostsCanvasHeight,";",(0,oa.HG)(sa.f.sm),"{min-height:",Te.calcEvChartRunningCostsCanvasMinHeightSm,";height:",Te.calcEvChartRunningCostsCanvasHeightSm,";}",""),Nt=(0,na.AH)(Te.calcEvChartSummaryFontStack,";font-size:",Te.calcEvChartRunningCostsLegendRowSize,";line-height:",Te.calcEvChartRunningCostsLegendRowLineHeight,";color:",Te.calcEvChartSummaryCol,";display:block;margin:0 0 ",Te.calcEvDisclaimGap,";",""),Vt=(0,na.AH)("max-width:",Te.calcEvChartRunningCostsSliderMaxWidth,";margin:",Te.calcEvChartRunningCostsSliderMargin,";padding:",Te.calcEvChartRunningCostsSliderPadding,";",""),$t=(0,na.AH)("flex-shrink:0;width:100%;border-top:",Te.calcEvChartRunningCostsSidebarBorderTopMobile,";padding:",Te.calcEvChartRunningCostsSidebarPaddingMobile,";",(0,oa.HG)(sa.f.md),"{width:",Te.calcEvChartRunningCostsSidebarWidthDesktop,";border-top:",Te.calcEvChartRunningCostsSidebarBorderTopDesktop,";border-left:",Te.calcEvChartRunningCostsSidebarBorderLeftDesktop,";padding:",Te.calcEvChartRunningCostsSidebarPaddingDesktop,";}",""),Dt=(0,na.AH)(Te.calcEvChartRunningCostsPanelHeadingFontStack,";font-size:",Te.calcEvChartRunningCostsPanelHeadingSize,";line-height:",Te.calcEvChartRunningCostsPanelHeadingLineHeight,";letter-spacing:",Te.calcEvChartRunningCostsPanelHeadingLetterSpacing,";text-transform:",Te.calcEvChartRunningCostsPanelHeadingTransform,";color:",Te.calcEvChartRunningCostsSavingsHeadingCol,";margin:",Te.calcEvChartRunningCostsSavingsHeadingMargin,";",""),zt=(0,na.AH)("display:flex;flex-direction:column;gap:",Te.calcEvChartRunningCostsSavingsWrapperGap,";margin:",Te.calcEvChartRunningCostsSavingsWrapperMarginBottom,";padding:",Te.calcEvChartRunningCostsSavingsWrapperPadding,";",""),Gt=(0,na.AH)(Te.calcEvChartRunningCostsSavingsAmountFontStack,";font-size:",Te.calcEvChartRunningCostsSavingsAmountSize,";line-height:",Te.calcEvChartRunningCostsSavingsAmountLineHeight,";letter-spacing:",Te.calcEvChartRunningCostsSavingsAmountLetterSpacing,";text-transform:",Te.calcEvChartRunningCostsSavingsAmountTransform,";color:",Te.calcEvChartRunningCostsSavingsAmountCol,";margin:0;",""),Kt=(0,na.AH)(Te.calcEvChartSummaryFontStack,";font-size:",Te.calcEvChartRunningCostsLegendRowSize,";line-height:",Te.calcEvChartRunningCostsLegendRowLineHeight,";color:",Te.calcEvChartSummaryCol,";display:block;margin:0;",""),Xt=Kt,Ot=Kt,Ut=(0,na.AH)(Te.calcEvChartRunningCostsPanelHeadingFontStack,";font-size:",Te.calcEvChartRunningCostsPanelHeadingSize,";line-height:",Te.calcEvChartRunningCostsPanelHeadingLineHeight,";letter-spacing:",Te.calcEvChartRunningCostsPanelHeadingLetterSpacing,";text-transform:",Te.calcEvChartRunningCostsPanelHeadingTransform,";color:",Te.calcEvChartRunningCostsLegendHeadingCol,";margin:",Te.calcEvChartRunningCostsLegendHeadingMargin,";",""),jt=(0,na.AH)("display:grid;gap:",Te.calcEvDisclaimGap,";margin:",Te.calcEvChartRunningCostsLegendListMargin,";padding:",Te.calcEvChartRunningCostsLegendListPadding,";list-style:none;",""),qt=(0,na.AH)(Te.calcEvChartRunningCostsLegendRowFontStack,";font-size:",Te.calcEvChartRunningCostsLegendRowSize,";line-height:",Te.calcEvChartRunningCostsLegendRowLineHeight,";letter-spacing:",Te.calcEvChartRunningCostsLegendRowLetterSpacing,";text-transform:",Te.calcEvChartRunningCostsLegendRowTransform,";color:",Te.calcEvChartRunningCostsLegendRowCol,";display:flex;align-items:",Te.calcEvAsideAnnualCostRowHeaderAlign,";gap:",Te.calcEvDisclaimGap,";",""),Jt=(0,na.AH)("width:",Te.calcEvChartRunningCostsLegendSwatchSize,";height:",Te.calcEvChartRunningCostsLegendSwatchSize,";border-radius:",Te.calcEvChartRunningCostsLegendSwatchRadius,";flex-shrink:0;",""),Qt=(0,na.AH)("background:",J,";",""),_t=(0,na.AH)("background:",Q,";",""),Zt=(0,na.AH)("background:linear-gradient(to right, ",Q," 0 50%, ",J," 50% 100%);",""),en=(0,na.AH)("background:",_,";",""),an=(0,na.AH)("background:",Z,";","");Et.t1.register(Et.A6,Et.E8,Et.PP,Et.kc,Et.m_);const tn=(0,n.memo)((({ev:e,hybrid:a,petrol:t,annualKm:r,hybridType:i="hev",themeColours:l,chartEvRunningCostsWrapperCustom:c})=>{const{0:o,1:s}
1=(0,n.useState)(7),d="phev"===i?"Fuel & electricity":"Fuel",u="phev"===i?Zt:_t,g=(0,n.useCallback)((e=>{const a=function(e){if("number"==typeof e)return null;const a=e.years,t="number"==typeof a?a:Number.parseInt(String(a),10);return Number.isFinite(t)?t:null}(e);null!==a&&a>=1&&a<=10&&s(a)}),[]),{data:v,options:p,savingsSidebar:C}=(0,n.useMemo)((()=>Pt(e,a,t,o,l,i)),[e,a,t,o,l,i]),{winner:h,runnerUp:E,thirdPlace:b,primarySavingMeaningful:y,thirdSavingMeaningful:f,showChartSidebarSavingsText:R}=C,H=`Horizontal stacked bar chart comparing cumulative running costs over ${o} years for electric, hybrid, and petrol or diesel, including fuel, electricity, rego, insurance and servicing.`,A=1===o?"year":"years",k=(y?E:b).totalPeriod-h.totalPeriod,x=E.totalPeriod-h.totalPeriod,T=b.totalPeriod-h.totalPeriod,w=R?function(e){return 1===e?"Your estimated total savings in 1 year":`Your estimated total savings over ${e} years`}(o):"Similar running costs";return(0,na.Y)("div",{css:[Ft,c,""],className:"classChartEvRunningCostsWrapper"},(0,na.Y)("div",{css:Wt},(0,na.Y)("div",{css:It},(0,na.Y)("div",{css:Bt},(0,na.Y)("h4",{css:Yt},R?function(e,a,t){const n=1===t?"year":"years";return`${r=xt[e],`${/^[aeiou]/i.test(r.trim())?"An":"A"} ${r}`} could save you ${Ke(a)} in running costs over ${t} ${n}`;var r}(h.type,k,o):function(e){return 1===e?"Running costs are similar across vehicle types over 1 year.":`Running costs are similar across vehicle types over ${e} years.`}(o)),(0,na.Y)("div",{css:Mt,role:"img","aria-label":H},(0,na.Y)(mt.yP,{data:v,options:p,plugins:[Lt]})),(0,na.Y)("div",{css:Vt},(0,na.Y)("span",{css:Nt},"Hover or tap bars for a detailed breakdown"),(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderValue:o,sliderValueKey:"years",valueRange:[1,10],step:1,handleChange:g,getSliderText:e=>`${e} ${1===Number(e)?"year":"years"}`,ariaLabelForHandle:"Number of years to compare cumulative running costs",marks:Tt}))),(0,na.Y)("aside",{css:$t,"aria-label":"Running cost savings and legend"},(0,na.Y)("h4",{css:Dt},w),(0,na.Y)("div",{css:zt},R?(0,na.Y)(n.Fragment,null,(0,na.Y)("div",{css:Gt},((e,a)=>1===a?m(e):`Estimated savings: ${e} total`)(Ke(k),o),(0,na.Y)("sup",{"aria-hidden":"true"},"*")),y?(0,na.Y)("div",{css:Xt},"That's an estimated savings of"," ",(0,na.Y)("strong",null,Ke(x))," compared to",` ${kt(E.type)} over ${o} ${A}`):null,f?(0,na.Y)("div",{css:Ot},"That's an estimated savings of"," ",(0,na.Y)("strong",null,Ke(T))," compared to",` ${kt(b.type)} over ${o} ${A}`):null):(0,na.Y)("div",{css:Gt},S(r))),(0,na.Y)("h4",{css:Ut},"What's included:"),(0,na.Y)("ul",{css:jt},(0,na.Y)("li",{css:qt},(0,na.Y)("span",{css:[Jt,Qt,""]}),"Electricity"),(0,na.Y)("li",{css:qt},(0,na.Y)("span",{css:[Jt,u,""]}),d),(0,na.Y)("li",{css:qt},(0,na.Y)("span",{css:[Jt,en,""]}),"Fuel (Petrol/Diesel)"),(0,na.Y)("li",{css:qt},(0,na.Y)("span",{css:[Jt,an,""]}),"Other Costs",(0,na.Y)("br",null),"(Rego, insurance, etc.)"))))))}));tn.displayName="ChartEvRunningCosts";var nn=t(7612);const rn=(0,na.AH)("display:",Te.calcEvChartWrapperDisplay,";gap:",Te.calcEvChartWrapperGap,";padding:",Te.calcEvChartWrapperPadding,";",""),ln=(0,na.AH)(Te.calcEvChartHeadingFontStack,";font-size:",Te.calcEvChartHeadingSize,";line-height:",Te.calcEvChartHeadingLineHeight,";letter-spacing:",Te.calcEvChartHeadingLetterSpacing,";text-transform:",Te.calcEvChartHeadingTransform,";text-align:",Te.calcEvChartHeadingAlign,";color:",Te.calcEvChartHeadingCol,";margin:0;.classIsAlternateDesign &{color:",Te.calcEvChartHeadingColAlt,";}",""),cn=(0,na.AH)(Te.calcEvChartSummaryFontStack,";font-size:",Te.calcEvChartSummarySize,";line-height:",Te.calcEvChartSummaryLineHeight,";letter-spacing:",Te.calcEvChartSummaryLetterSpacing,";text-transform:",Te.calcEvChartSummaryTransform,";text-align:",Te.calcEvChartSummaryAlign,";color:",Te.calcEvChartSummaryCol,";margin:",Te.calcEvChartSummaryMargin,";.classIsAlternateDesign &{color:",Te.calcEvChartSummaryColAlt,";}",""),on={name:"1dja9su",styles:"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0"},sn=({hasRendered:e,annualKm:a,hybridType:t,calculationResult:n,runningCostsFootnoteId:r,themeColours:i})=>(0,na.Y)("div",{className:"classCalcEvChartSectionWrapper",css:rn},(0,na.Y)("h3",{css:ln},"See how the savings could add up over time"),(0,na.Y)("p",{css:cn},"Adjust the sliders based on your estimates for each category to compare typical running costs from 1 up to 10 years."),e?(0,na.Y)(tn,{ev:n.ev,hybrid:n.hybrid,petrol:n.petrol,annualKm:a,hybridType:t,themeColours:i}):(0,na.Y)(nn.r,null),(0,na.Y)("div",{css:on},(0,na.Y)("table",null,(0,na.Y)("caption",null,"Annual running cost breakdown"),(0,na.Y)("thead",null,(0,na.Y)("tr",null,(0,na.Y)("th",{scope:"col"},"Vehicle"),(0,na.Y)("th",{scope:"col"},"Petrol or diesel (fuel)"),(0,na.Y)("th",{scope:"col"}
1,"Electricity"),(0,na.Y)("th",{scope:"col"},"Rego, insurance and servicing"),(0,na.Y)("th",{scope:"col"},"Total per year"))),(0,na.Y)("tbody",null,(0,na.Y)("tr",null,(0,na.Y)("td",null,"EV"),(0,na.Y)("td",null,Ke(n.ev.fuelCost)),(0,na.Y)("td",null,Ke(n.ev.electricityCost)),(0,na.Y)("td",null,Ke(n.ev.regoAndServicing)),(0,na.Y)("td",{"aria-describedby":r},Ke(n.ev.totalRunning),(0,na.Y)("sup",{"aria-hidden":"true"},"*"))),(0,na.Y)("tr",null,(0,na.Y)("td",null,"Hybrid"),(0,na.Y)("td",null,Ke(n.hybrid.fuelCost)),(0,na.Y)("td",null,Ke(n.hybrid.electricityCost)),(0,na.Y)("td",null,Ke(n.hybrid.regoAndServicing)),(0,na.Y)("td",{"aria-describedby":r},Ke(n.hybrid.totalRunning),(0,na.Y)("sup",{"aria-hidden":"true"},"*"))),(0,na.Y)("tr",null,(0,na.Y)("td",null,"Petrol"),(0,na.Y)("td",null,Ke(n.petrol.fuelCost)),(0,na.Y)("td",null,Ke(n.petrol.electricityCost)),(0,na.Y)("td",null,Ke(n.petrol.regoAndServicing)),(0,na.Y)("td",{"aria-describedby":r},Ke(n.petrol.totalRunning),(0,na.Y)("sup",{"aria-hidden":"true"},"*")))))));var dn=t(99423),un=t(3974);const gn=(0,na.AH)("display:grid;gap:",Te.calcEvDisclaimGap,";background-color:",Te.calcEvDisclaimBgCol,";.classIsAlternateDesign &{background-color:",Te.calcEvDisclaimBgColAlt,";}",""),vn=(0,na.AH)(Te.calcEvDisclaimHeadingFontStack,";font-size:",Te.calcEvDisclaimHeadingSize,";line-height:",Te.calcEvDisclaimHeadingLineHeight,";letter-spacing:",Te.calcEvDisclaimHeadingLetterSpacing,";text-transform:",Te.calcEvDisclaimHeadingTransform,";text-align:",Te.calcEvDisclaimHeadingAlign,";color:",Te.calcEvDisclaimHeadingCol,";margin:0;.classIsAlternateDesign &{color:",Te.calcEvDisclaimHeadingColAlt,";}",""),pn=(0,na.AH)(Te.calcEvDisclaimBodyFontStack,";font-size:",Te.calcEvDisclaimBodySize,";line-height:",Te.calcEvDisclaimBodyLineHeight,";letter-spacing:",Te.calcEvDisclaimBodyLetterSpacing,";text-transform:",Te.calcEvDisclaimBodyTransform,";text-align:",Te.calcEvDisclaimBodyAlign,";color:",Te.calcEvDisclaimBodyCol,";margin:0;.classIsAlternateDesign &{color:",Te.calcEvDisclaimBodyColAlt,";}strong{",Te.calcEvDisclaimBodyStrongFontStack,";color:",Te.calcEvDisclaimBodyStrongCol,";.classIsAlternateDesign &{color:",Te.calcEvDisclaimBodyStrongColAlt,";}}",""),Cn=({electricityRatesDisclaimerText:e})=>{const{dealershipName:a,siteBranding:t}=(0,un.j)(),n=(null==t?void 0:t.headerDealerName)||a||"the dealership";return(0,na.Y)("div",{className:"classCalcEvDisclaimerWrapper",css:gn},(0,na.Y)("h3",{css:vn},(0,na.Y)("sup",null,"*"),"Important information and disclaimer"),(0,na.Y)(dn.$,{css:pn},"**Estimates only.** This calculator is provided for general information and comparison purposes only. It doesn’t constitute financial, investment or consumer advice, and doesn't take into account your objectives, personal circumstances, financial situation or needs."),(0,na.Y)(dn.$,{css:pn},"**Indicative results based on assumptions and user inputs.** All results generated are general indicative estimates only, and are based on the inputs you provide and various assumptions, averages and simplifications. You should manually adjust each slider to reflect your own estimated costs for each category. Actual running costs and savings will vary and may differ materially depending on various factors, including (without limitation) vehicle model and condition, usage patterns, driving behaviour, charging or refuelling habits, energy tariffs, geographic location and prevailing market conditions. All prices, fees, charges, taxes and assumptions are also subject to frequent charge over time."),(0,na.Y)(dn.$,{css:pn},`**Electricity and fuel pricing assumptions.** ${e}`),(0,na.Y)(dn.$,{css:pn},"**Other costs and factors not included.** This calculator doesn't include, and doesn't account for, all costs or factors that may affect vehicle ownership or total cost of ownership. Excluded items include (without limitation):  (a) vehicle purchase price, depreciation or residual value; (b) financing costs; (c) taxes and other government charges; (d) insurance premiums beyond any user-entered estimate; (e) repair costs, unexpected maintenance or component replacement costs (such as battery replacement);
1 (f) installation or upgrade of charging infrastructure (such as home EV chargers); (g) public charging fees beyond the effective rate selected; (h) government incentives, rebates or exemptions (which may vary by jurisdiction and over time); and (i) any costs or attributes specific to a particular vehicle, brand or model. There may be other costs, savings or non-financial considerations relevant to your circumstances that are not reflected in this calculator."),(0,na.Y)(dn.$,{css:pn},`**No representations or guarantees.** To the maximum extent permitted by law, each of ${n} (and its website provider, iMotor Pty Ltd): (i) make no representations, warranties or guarantees (express or implied) as to the accuracy, completeness, reliability or currency of the information or results produced on this page, and (ii) disclaim all liability in respect of your use of this calculator.`),(0,na.Y)(dn.$,{css:pn},"**No endorsement or recommendation.** This calculator does not constitute an endorsement of, or recommendation to purchase, any particular vehicle or vehicle type. You should make your own enquiries, conduct your own research and consider obtaining independent advice before making any decision."))};var hn=t(78887),mn=t(94082);const En=({idPrefix:e,calc:a,isElectricityRateCustomised:t,isPhevElectricityRateCustomised:r,showAnnualRunningCostWinnerByKind:i,handleRangeChange:l,handleSelectChange:o,stateSelectOptions:s,hybridTypeOptions:d})=>{const u="phev"===a.hybridType?`Hybrid Vehicle - ${a.selectedState}`:"Hybrid Vehicle";return(0,na.Y)("div",{css:Ga},(0,na.Y)("div",{className:"classCalcEvInputsTopCardWrapper",css:Ka},(0,na.Y)("div",{css:_a},(0,na.Y)("h3",{css:et},"Customise your savings")),(0,na.Y)("div",{css:it},(0,na.Y)("div",{css:ct},(0,na.Y)(mn.D,{imFormInputLabelCustom:ot,idName:`${e}-state`,selectValue:a.selectedState,selectValueKey:"selectedState",options:s,handleChange:o},"Where you live")),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Average distance driven per year",sliderValue:a.km,sliderValueKey:"km",valueRange:[5e3,6e4],step:1e3,handleChange:l,getSliderText:e=>`${Number(e).toLocaleString("en-AU")} km/yr`,ariaLabelForHandle:"Average distance driven per year"})))),(0,na.Y)("div",{css:lt},(0,na.Y)("div",{className:"classCalcEvInputsCardEvWrapper",css:[Xa,Oa,i.EV&&qa,""]},(0,na.Y)("div",{css:_a},(0,na.Y)("div",{css:Za},i.EV?(0,na.Y)(gt,{category:"EV"}):null,(0,na.Y)("h3",{css:et},"Electric Vehicle - ",a.selectedState))),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Electricity Cost"+(t?" (customised)":""),sliderValue:a.elecRateCPerKwh,sliderValueKey:"elecRateCPerKwh",valueRange:[5,80],step:.1,handleChange:l,getSliderText:e=>`${Number(e).toFixed(1)}¢/kWh`,ariaLabelForHandle:"Electricity cost in cents per kilowatt hour"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Driving Efficiency",sliderValue:a.evEffKwhPer100km,sliderValueKey:"evEffKwhPer100km",valueRange:[12,30],step:.5,handleChange:l,getSliderText:e=>`${Number(e).toFixed(1)}kWh/100km`,ariaLabelForHandle:"Driving efficiency in kilowatt hours per hundred kilometres"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Registration & Insurance",sliderValue:a.evReg,sliderValueKey:"evReg",valueRange:[800,6e3],step:100,handleChange:l,getSliderText:e=>`$${Number(e).toLocaleString("en-AU")}/yr`,ariaLabelForHandle:"Electric vehicle registration and insurance per year"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Annual Maintenance",sliderValue:a.evServ,sliderValueKey:"evServ",valueRange:[0,1e4],step:50,handleChange:l,getSliderText:e=>`$${Number(e).toLocaleString("en-AU")}/yr`,ariaLabelForHandle:"Electric vehicle annual maintenance per year"}))),(0,na.Y)("div",{className:"classCalcEvInputsCardHybridWrapper",css:[Xa,Ua,i.Hybrid&&Ja,""]},(0,na.Y)("div",{css:_a},(0,na.Y)("div",{css:Za},i.Hybrid?(0,na.Y)(gt,{category:"Hybrid"}):null,(0,na.Y)("h3",{css:et},u))),(0,na.Y)("div",{css:ct}
1,(0,na.Y)(mn.D,{imFormInputLabelCustom:ot,idName:`${e}-hybridType`,selectValue:a.hybridType,selectValueKey:"hybridType",options:d,handleChange:o},"Hybrid type")),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Fuel Consumption",sliderValue:a.hybridFuelConsLPer100km,sliderValueKey:"hybridFuelConsLPer100km",valueRange:[3,12],step:.1,handleChange:l,getSliderText:e=>`${Number(e).toFixed(1)}L/100km`,ariaLabelForHandle:"Hybrid fuel consumption in litres per hundred kilometres"})),"phev"===a.hybridType?(0,na.Y)(n.Fragment,null,(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Electricity Cost"+(r?" (customised)":""),sliderValue:a.phevElecRateCPerKwh,sliderValueKey:"phevElecRateCPerKwh",valueRange:[5,80],step:.1,handleChange:l,getSliderText:e=>`${Number(e).toFixed(1)}¢/kWh`,ariaLabelForHandle:"Plug-in hybrid electricity cost in cents per kilowatt hour"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Battery driving share",sliderValue:a.phevElecSharePercent,sliderValueKey:"phevElecSharePercent",valueRange:[10,80],step:5,handleChange:l,getSliderText:e=>`${e}%`,ariaLabelForHandle:"Estimated percentage of distance driven on battery"}))):null,(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Fuel Price",sliderValue:a.hybridFuelPricePerL,sliderValueKey:"hybridFuelPricePerL",valueRange:[c,4],step:.01,handleChange:l,getSliderText:e=>`$${Number(e).toFixed(2)}/L`,ariaLabelForHandle:"Hybrid fuel price per litre"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Registration & Insurance",sliderValue:a.hybridReg,sliderValueKey:"hybridReg",valueRange:[800,6e3],step:100,handleChange:l,getSliderText:e=>`$${Number(e).toLocaleString("en-AU")}/yr`,ariaLabelForHandle:"Hybrid registration and insurance per year"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Annual Maintenance",sliderValue:a.hybridServ,sliderValueKey:"hybridServ",valueRange:[250,1e4],step:50,handleChange:l,getSliderText:e=>`$${Number(e).toLocaleString("en-AU")}/yr`,ariaLabelForHandle:"Hybrid annual maintenance per year"}))),(0,na.Y)("div",{className:"classCalcEvInputsCardPetrolWrapper",css:[Xa,ja,i.Petrol&&Qa,""]},(0,na.Y)("div",{css:_a},(0,na.Y)("div",{css:Za},i.Petrol?(0,na.Y)(gt,{category:"Petrol"}):null,(0,na.Y)("h3",{css:et},"Petrol or Diesel Vehicle"))),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Fuel Price",sliderValue:a.fuelPricePerL,sliderValueKey:"fuelPricePerL",valueRange:[c,4],step:.01,handleChange:l,getSliderText:e=>`$${Number(e).toFixed(2)}/L`,ariaLabelForHandle:"Fuel price per litre"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Fuel Consumption",sliderValue:a.fuelConsLPer100km,sliderValueKey:"fuelConsLPer100km",valueRange:[4,18],step:.1,handleChange:l,getSliderText:e=>`${Number(e).toFixed(1)}L/100km`,ariaLabelForHandle:"Petrol or diesel fuel consumption in litres per hundred kilometres"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Registration & Insurance",sliderValue:a.fuelReg,sliderValueKey:"fuelReg",valueRange:[800,6e3],step:100,handleChange:l,getSliderText:e=>`$${Number(e).toLocaleString("en-AU")}/yr`,ariaLabelForHandle:"Petrol vehicle registration and insurance per year"})),(0,na.Y)("div",{className:"classImFormInputRow",css:[hn.lp,ct,""]},(0,na.Y)(St.f,{rangeSliderTextWrapperCustom:st,rangeSliderCustom:dt,sliderLabel:"Annual Maintenance",sliderValue:a.fuelServ,sliderValueKey:"fuelServ",valueRange:[200,1e4],step:50,handleChange:l,getSliderText:e=>
1`$${Number(e).toLocaleString("en-AU")}/yr`,ariaLabelForHandle:"Petrol vehicle annual maintenance per year"})))))};var Sn=t(80945),bn=t(74821);const yn=(0,na.AH)((0,Sn.$)(),";&.classIsAlternateDesign{background-color:",Te.calcEvWrapperBgColAlt,";}",""),fn=(0,na.AH)("display:grid;gap:",Te.calcEvWrapperGap,";margin:",Te.calcEvWrapperMargin,";max-width:",Te.calcEvWrapperMaxWidth,";",(0,bn.s)(),";",""),Rn=(0,na.AH)("display:grid;gap:",Te.calcEvHeadingTextWrapperGap,";",""),Hn=(0,na.AH)(Te.calcEvHeadingFontStack,";font-size:",Te.calcEvHeadingSize,";line-height:",Te.calcEvHeadingLineHeight,";text-transform:",Te.calcEvHeadingTransform,";letter-spacing:",Te.calcEvHeadingLetterSpacing,";text-align:",Te.calcEvHeadingAlign,";color:",Te.calcEvHeadingCol,";margin:0;.classIsAlternateDesign &{color:",Te.calcEvHeadingColAlt,";}",""),An=(0,na.AH)(Te.calcEvSubHeadingFontStack,";font-size:",Te.calcEvSubHeadingSize,";line-height:",Te.calcEvSubHeadingLineHeight,";text-transform:",Te.calcEvSubHeadingTransform,";letter-spacing:",Te.calcEvSubHeadingLetterSpacing,";text-align:",Te.calcEvSubHeadingAlign,";color:",Te.calcEvSubHeadingCol,";margin:0;.classIsAlternateDesign &{color:",Te.calcEvSubHeadingColAlt,";}",""),kn=(0,na.AH)("display:grid;gap:",Te.calcEvBodyGap,";grid-template-columns:",Te.calcEvBodyGridColsSm,";",(0,oa.HG)(sa.f.lg),"{grid-template-columns:",Te.calcEvBodyGridColsLg,";align-items:",Te.calcEvBodyAlignLg,";}",""),xn=(0,na.AH)("display:grid;gap:",Te.calcEvMainColGap,";",""),Tn={EV:"classCalcEvWinnerCtaEv",Hybrid:"classCalcEvWinnerCtaHybrid",Petrol:"classCalcEvWinnerCtaPetrol"},wn=i.map((e=>({text:e,value:e}))),Pn=[{text:"Self-charging (HEV)",value:"hev"},{text:"Plug-in hybrid (PHEV)",value:"phev"}],Ln=({componentTypeClassName:e="",heading:a,stockBasePathElectric:t,stockBasePathHybrid:r,stockBasePathPetrol:i,defaultState:l,defaultFuelPricePerL:c,stateRateNsw:o,stateRateVic:s,stateRateQld:d,stateRateSa:u,stateRateWa:g,stateRateTas:v,stateRateAct:p,stateRateNt:C,ratesAsAt:h="March 2026",themeBaseColElectric:m,themeBaseColHybrid:E,themeBaseColPetrol:S,themeBaseColMaintenance:b,themeContrastColElectric:y,themeContrastColHybrid:f,themeContrastColPetrol:R,themeContrastColMaintenance:x,themeHeadingsAccentCol:T,themeCardBorderRadius:w,themeCtaBorderRadius:P,useAlternateStyles:L,subHeading:F,hideMobileCta:W})=>{const I=(0,n.useId)(),B=`calculatorEvHeading-${I}`,Y=`calculatorEvRunningCostsFootnote-${I}`,M=`calculatorEv-${I}`,N=(0,n.useMemo)((()=>(e=>{const a={...re};return Object.keys(re).forEach((t=>{const n=null==e?void 0:e[t];if("string"==typeof n){const e=n.trim();""!==e&&Ne(e)&&(a[t]=e)}})),a})({baseColElectric:m,baseColHybrid:E,baseColPetrol:S,baseColMaintenance:b,contrastColElectric:y,contrastColHybrid:f,contrastColPetrol:R,contrastColMaintenance:x})),[m,E,S,b,y,f,R,x]),V=(0,n.useMemo)((()=>{return{...(e=N,{[X.electric]:e.baseColElectric,[X.hybrid]:e.baseColHybrid,[X.petrol]:e.baseColPetrol,[X.maintenance]:e.baseColMaintenance,[O.electric]:e.contrastColElectric,[O.hybrid]:e.contrastColHybrid,[O.petrol]:e.contrastColPetrol,[O.maintenance]:e.contrastColMaintenance}),...De(T),...ze({themeCardBorderRadius:w,themeCtaBorderRadius:P})};var e}),[N,T,w,P]),{templatePagePath:$}=(0,ea.u)(H.J.stock)||{},D=(0,n.useMemo)((()=>({EV:!(null!=t?t:"").trim(),Hybrid:!(null!=r?r:"").trim(),Petrol:!(null!=i?i:"").trim()})),[t,r,i]),z=A({explicitStockBasePath:"string"==typeof t?t:void 0,stockTemplatePageUrl:$}),G=A({explicitStockBasePath:"string"==typeof r?r:void 0,stockTemplatePageUrl:$}),K=A({explicitStockBasePath:"string"==typeof i?i:void 0,stockTemplatePageUrl:$}),U=Ze({defaultState:l,defaultFuelPricePerL:c,stateRateNsw:o,stateRateVic:s,stateRateQld:d,stateRateSa:u,stateRateWa:g,stateRateTas:v,stateRateAct:p,stateRateNt:C,ratesAsAt:h}),{calc:j,isElectricityRateCustomised:q,isPhevElectricityRateCustomised:J,handleRangeChange:Q,handleSelectChange:_,calculationResult:Z,annualSavingsHero:ee,showAnnualRunningCostWinnerByKind:ae,asideAnnualCostRowFillWidthsPercent:te,electricityRatesDisclaimerText:ne,hasRendered:ie}=U,le=null==a?void 0:a.trim(),ce=null==F?void 0:F.trim(),oe=Te.calcEvIsGapMandatory;return(0,na.Y)("section",{className:`classCalculatorEvWrapper classStandardComponent classItemRequiresPadding ${e} ${(0,k.a)(L,oe)}`.trim(),css:yn,style:V,"aria-labelledby":le?B:void 0,"aria-label":le?void 0:"Electric vehicle running cost c
1alculator"},(0,na.Y)("div",{css:fn,className:"classCalculatorEvContentWrapper"},le||ce?(0,na.Y)("div",{className:"classCalcEvHeadingTextWrapper",css:Rn},le?(0,na.Y)("h2",{id:B,className:"classCalcEvHeading",css:Hn},le):null,ce?(0,na.Y)("h3",{className:"classCalcEvSubHeading",css:An},ce):null):null,(0,na.Y)("div",{css:kn},(0,na.Y)("div",{className:"classCalcEvMainCol",css:xn},(0,na.Y)(En,{idPrefix:M,calc:j,isElectricityRateCustomised:q,isPhevElectricityRateCustomised:J,showAnnualRunningCostWinnerByKind:ae,handleRangeChange:Q,handleSelectChange:_,hybridTypeOptions:Pn,stateSelectOptions:wn}),(0,na.Y)(sn,{hasRendered:ie,annualKm:j.km,hybridType:j.hybridType,calculationResult:Z,runningCostsFootnoteId:Y,themeColours:N})),(0,na.Y)(ht,{calc:j,calculationResult:Z,annualSavingsHero:ee,asideAnnualCostRowFillWidthsPercent:te,showAnnualRunningCostWinnerByKind:ae,stockBasePathElectric:z,stockBasePathHybrid:G,stockBasePathPetrol:K,stockPathUsesKeywordsByKind:D,runningCostsFootnoteId:Y,winnerCtaClassByName:Tn,hideMobileCta:W})),(0,na.Y)(Cn,{electricityRatesDisclaimerText:ne})))}}}]);

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.