1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"production-4623957"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var a=1;a<arguments.length;a++){var n=arguments[a];if(null!=n)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:luxgroup-customer-portal":!0});var a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="70da5b53-5ba4-4ace-8a31-3f4e03f38bf0",e._sentryDebugIdIdentifier="sentry-dbid-70da5b53-5ba4-4ace-8a31-3f4e03f38bf0")}catch(e){}}();"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3237],{389002(e,a,n){var t=n(474848),o=n(247174);n.d(a,{},{A:function(e){return(0,t.jsx)(o.Ay,{...e,fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",d:"M3 8h18a1 1 0 1 0 0-2H3a1 1 0 0 0 0 2Zm18 8H3a1.0002 1.0002 0 0 0-.7071 1.7071C2.4804 17.8946 2.7348 18 3 18h18a1.0001 1.0001 0 0 0 0-2Zm0-5H3a1.0002 1.0002 0 0 0-.7071 1.7071C2.4804 12.8946 2.7348 13 3 13h18a1.0001 1.0001 0 0 0 0-2Z"})})}})},342563(e,a,n){var t=n(474848),o=n(247174);n.d(a,{},{A:function(e){return(0,t.jsx)(o.Ay,{...e,fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",d:"M12 19a1 1 0 1 0 .0002-2A1 1 0 0 0 12 19Zm5 0a1 1 0 1 0 .0002-2A1 1 0 0 0 17 19Zm0-4a1 1 0 1 0 .0002-2A1 1 0 0 0 17 15Zm-5 0a1 1 0 1 0 .0002-2A1 1 0 0 0 12 15Zm7-12h-1V2a1.0002 1.0002 0 0 0-1.7071-.7071A1.0002 1.0002 0 0 0 16 2v1H8V2a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v14a2.9998 2.9998 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3Zm1 17a1.0001 1.0001 0 0 1-1 1H5a1.0002 1.0002 0 0 1-1-1v-9h16v9Zm0-11H4V6a1 1 0 0 1 1-1h1v1a1 1 0 0 0 2 0V5h8v1a1.0002 1.0002 0 0 0 1.7071.7071A1.0002 1.0002 0 0 0 18 6V5h1a1 1 0 0 1 1 1v3ZM7 15a.9998.9998 0 0 0 .7071-1.7071A.9998.9998 0 0 0 6 14a1 1 0 0 0 1 1Zm0 4a.9998.9998 0 0 0 .7071-1.7071A.9998.9998 0 0 0 6 18a1 1 0 0 0 1 1Z"})})}})},638025(e,a,n){n.d(a,{A:()=>ey});var t=n(474848),o=n(194617),l=n(843702),i=n(617527),r=n(932671),c=n(731357),s=n(296540),d=n(665673),u=n(722834),g=n(38267),h=n(107813);n(517642),n(658004),n(733853),n(845876),n(432475),n(515024),n(731698),n(125509),n(665223),n(660321),n(241927),n(511632),n(864377),n(966771),n(712516),n(368931),n(652514),n(235694),n(652774),n(849536),n(321926),n(994483),n(916215),n(218111),n(161701),n(22489),n(57145),n(720116);var f=n(987967),m=n(524825),p=n(337997),y=n(998904),A=n(314953),x=n(161648),b=n(707397),v=n(137353),C=n(562050),j=n(415921),w=n(803556),M=n(172612),k=n(269685),S=n(750142),I=n(825060),D=n(154549),E=n(831842),N=n(852066),R=n(524843),_=n(576867);let z=(0,E.createIntlCache)();function L({locale:e,children:a}){let[n,o]=(0,s.useState)({});(0,s.useEffect)(()=>{let a=!0;return(0,_.d5)(e,"off").then(e=>{a&&o(e)}),()=>{a=!1}},[e]);let l=(0,s.useMemo)(()=>(0,N.E)({locale:(0,D.pP)(e),defaultLocale:"en-AU",messages:n,onError:()=>void 0},z),[e,n]);return(0,t.jsx)(R.Kq,{value:l,children:(0,t.jsx)("div",{dir:(0,D.il)(e),lang:(0,D.Ym)(e),children:a})})}let T=(0,g.Ay)(l.A).attrs(e=>({dir:(0,D.il)(e.$locale),lang:(0,D.Ym)(e.$locale)})).withConfig({componentId:"sc-40afe022-0"})([""]);function H({language:e,onChangeOnlyForSpoof:a}){return(0,t.jsx)(L,{locale:e.locale,children:(0,t.jsx)(O,{language:e,onChangeOnlyForSpoof:a})})}function O({language:e,onChangeOnlyForSpoof:a}){let n=(0,d.A)(),o=(0,S.jL)(),{resolve:l}=(0,h.A)(),[i,r]=(0,s.useState)(!1),[c,u]=(0,s.useState)(!1),g=(0,s.useRef)(!1),f=(0,S.GV)(e=>e.auth.account.isSpoofed),m=(0,s.useCallback)(()=>{g.current||(a(e),l())},[e,a,l]),p=(0,s.useCallback)(()=>{g.current||l()},[l]),y=(0,s.useCallback)(async()=>{if(f&&!g.current){g.current=!0,r(!0),u(!1);try{await (0,k.P1)(e.locale),o((0,M.$R)({language:e.locale})),a(e),l()}catch(e){(0,j.s)(e),u(!0)}finally{g.current=!1,r(!1)}}},[o,f,e,a,l]);return(0,t.jsxs)(T,{$locale:e.locale,title:n.formatMessage({id:"SNCWRtptlW7th5xf4kcV",defaultMessage:"Change customerâs language?",description:"Confirmation title before an agent updates a spoofed customer language preference"}),primaryActionText:n.formatMessage({id:"SR7je7gD5OBVN3747SwG",defaultMessage:"Yes, change for customer",description:"Confirmation action to save the selected language for the spoofed customer"}),secondaryActionText:n.formatMessage({id:"XD9poMuAHYt7tRDwuegl",defaultMessage:"No, only change for me",description:"Confirmation action to change the language only in the spoofed agent session"}),onPrimaryActionClick:y,onSecondaryActionClick:m,onClose:p,dism
1issible:!i,isPrimaryActionDisabled:i||!f,isSecondaryActionDisabled:i,children:[(0,t.jsx)(x.Ay,{variant:"large",colour:"critical",children:n.formatMessage({id:"0Pph1dj6XZzsV_Yqpf0L",defaultMessage:"Warning: confirming changes the language for both you and the customer to {language}.",description:"Warning explaining that confirming changes the language for both the spoofed agent and customer"},{language:e.nativeName})}),c&&(0,t.jsx)(x.Ay,{variant:"medium",colour:"critical",role:"alert",children:n.formatMessage({id:"RjmCeUjm-RLEN0O4xb-u",defaultMessage:"The customerâs language could not be saved. Please try again.",description:"Error shown when saving the spoofed customer language preference fails"})})]})}function V({language:e,onChangeOnlyForSpoof:a}){let n=(0,d.A)(),o=(0,s.useContext)(I.A),[l,i]=(0,s.useState)(!1),r=(0,s.useCallback)(async()=>{i(!0);try{await o((0,t.jsx)(H,{language:e,onChangeOnlyForSpoof:a}))}finally{i(!1)}},[e,a,o]);return(0,t.jsx)(A.A,{kind:"tertiary",size:"small",onClick:r,disabled:l,children:(0,t.jsx)(x.Ay,{variant:"small",colour:"critical",children:n.formatMessage({id:"NHIG7ASJv18cauuPFR0z",defaultMessage:"Change for customer",description:"Explicit action to save the selected language for the spoofed customer"})})})}var Z=n(763882);let P=g.Ay.div.withConfig({componentId:"sc-cbd3e3b3-0"})(["display:flex;align-items:center;gap:8px;> :first-child{flex:1;min-inline-size:0;}"]),F=(0,g.Ay)(m.A).withConfig({componentId:"sc-cbd3e3b3-1"})(["background-color:",";"],e=>
1e.$selected?e.theme.palette.highlight.primary.lightBackground:void 0),$=g.Ay.div.withConfig({componentId:"sc-cbd3e3b3-2"})(["display:flex;flex-shrink:0;gap:8px;"]),U=g.Ay.div.withConfig({componentId:"sc-cbd3e3b3-3"})(["display:flex;align-items:center;gap:8px;margin-block:18px 8px;&::after{content:'';flex:1;height:1px;background:",";}"],e=>e.theme.palette.neutral.surface.lightForeground),B=g.Ay.div.withConfig({componentId:"sc-cbd3e3b3-4"})(["display:flex;align-items:center;gap:4px;"]);function K(e,a){return e.nativeName.localeCompare(a.nativeName,void 0,{sensitivity:"base"})}function X(){let e=(0,d.A)();return(0,t.jsx)(U,{role:"separator",children:(0,t.jsxs)(B,{children:[(0,t.jsx)(x.Ay,{variant:"small",colour:"light-foreground-alt",children:e.formatMessage({id:"mTWgcPP3tNwNRu-dXo2i",defaultMessage:"Staff only",description:"English-only label on the divider above pre-release languages in the language picker. Keep the English words in every locale."})}),(0,t.jsx)(p.A,{size:"XS",colour:"light-foreground-alt","aria-hidden":!0})]})})}function W({language:e,onChangeOnlyForSpoof:a}){return(0,t.jsx)(L,{locale:e.locale,children:(0,t.jsx)(G,{language:e,onChangeOnlyForSpoof:a})})}function G({language:e,onChangeOnlyForSpoof:a}){let n=(0,d.A)();return(0,t.jsxs)($,{children:[(0,t.jsx)(A.A,{kind:"secondary",size:"small",onClick:()=>a(e),children:n.formatMessage({id:"hgQdrn1A0o8K-bCHHSU_",defaultMessage:"Change only for me",description:"Action that changes the language only for the spoofing agent"})}),(0,t.jsx)(V,{language:e,onChangeOnlyForSpoof:a})]})}let q=s.memo(function(e){let{onLanguageSelect:a}=e,n=(0,S.jL)(),{locale:o,languageOptions:l,preReleaseLanguageOptions:i}=(0,C.l)(),r=(0,S.GV)(w.W0),c=(0,S.GV)(e=>e.auth.account.isSpoofed),d=new Set(i.map(e=>e.locale)),u=l.filter(e=>!d.has(e.locale)),g=i.toSorted(K),h=u.length>0&&g.length>0,m=l.find(e=>e.locale===o)??l[0],p=(0,s.useCallback)(e=>{let t=e.locale!==m?.locale;if(t){(0,b.A)(e.locale),r&&!c&&((0,k.P1)(e.locale).catch(j.s),n((0,M.$R)({language:e.locale})));let a=v.A.fromLocation(window.location),t=a.getRedirectToLocale({targetLocale:e.locale,languageOptions:l}),o=a.withRedirect(t);o.equals(a)||(window.location.href=o.toString())}a?.(t)},[n,m?.locale,l,a,r,c]),A=(0,s.useCallback)(e=>{let a=l.find(a=>a.locale===e.currentTarget.dataset.locale);a&&p(a)},[l,p]),x=(0,s.useCallback)(e=>c&&r?(0,t.jsxs)(P,{children:[(0,t.jsx)(F,{size:"medium",title:e.nativeName,endIcon:m?.locale===e.locale?(0,t.jsx)(y.A,{}):void 0,$selected:m?.locale===e.locale}),(0,t.jsx)(W,{language:e,onChangeOnlyForSpoof:p})]},e.locale):(0,t.jsx)(P,{children:(0,t.jsx)(f.A,{size:"medium",endIcon:m?.locale===e.locale?(0,t.jsx)(y.A,{}):void 0,title:e.nativeName,"data-locale":e.locale,onClick:A,selected:m?.locale===e.locale})},e.locale),[m?.locale,A,p,c,r]),I=[...u.map(x),h?(0,t.jsx)(X,{},"pre-release-language-separator"):null,...g.map(x)];return c&&r?(0,t.jsx)(Z.Ay,{children:I}):I});var Y=n(97745),J=n(703302),Q=n(267662),ee=n(769008),ea=n(175160),en=n(139559),et=n(302885),eo=n(38886),el=n(677529),ei=n(431014),er=n(247767);let ec=new Set(ee.Rv),es=g.Ay.div.withConfig({componentId:"sc-da5cc2ba-0"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(",",1fr));gap:",";"],(0,c.D0)(220),(0,c.D0)(8)),ed=g.Ay.div.withConfig({componentId:"sc-da5cc2ba-1"})(["& + &{margin-top:",";}"],(0,c.D0)(20)),eu=(0,g.Ay)(f.A).withConfig({componentId:"sc-da5cc2ba-2"})(["height:100%;"]),eg=(0,g.Ay)(x.Ay).withConfig({componentId:"sc-da5cc2ba-3"})(["margin-bottom:",";"],(0,c.D0)(12)),eh=s.memo(function(e){let{onRegionSelect:a}=e,n=(0,d.A)(),{pathname:o,search:l}=(0,er.zy)(),{currentRegionCode:i}=(0,s.useContext)(ea.A),[r,c]=(0,s.useMemo)(()=>(0,et.oF)(Q.A.regions,e=>ec.has(e.code)),[]),g=(0,s.useMemo)(()=>(0,et.Ul)(r,e=>ee.Rv.indexOf(e.code),"asc"),[r]),h=(0,s.useMemo)(()=>`${(0,eo.Gs)(o,i)}${(0,el.$o)(l??"")}`,[i,o,l]),f=(0,s.useMemo)(()=>new Intl.DisplayNames(n.locale,{type:"region"}),[n.locale]),m=(0,s.useCallback)(e=>f.of(e.code)??e.name,[f]),p=(0,s.useCallback)(e=>{let n=e.currentTarget.dataset.code,t=e.currentTarget.dataset.url,o=!!n&&n!==i;n&&o&&t?((0,en.A)(n),(0,ei.gP)("REDIRECTED"),window.location.assign(t)):e.preventDefault(),a?.(e,o)},[i,a]);return(0,t.jsxs)(t.Fragment,{children:[g.length>0&&(0,t.jsxs)(ed,{children:[(0,t.jsx)(eg,{variant:"medium",weight:"bold",colour:"normal-contrast",children:(0,t.jsx)(u.A,{id:"GNl43FRFT7zDOJ6wnMW9",defaultMessage:"Popular regions and currencies",description:"Section title above the suggested regi
1ons and currencies in the region selector"})}),(0,t.jsx)(es,{children:g.map(e=>(0,t.jsx)(eu,{size:"medium",startIcon:(0,t.jsx)(Y.A,{countryCode:e.code}),endIcon:i===e.code?(0,t.jsx)(y.A,{}):void 0,title:(0,t.jsx)(u.A,{id:"nIOR1XQB-FNL0jcqglur",defaultMessage:"{regionName}, {currencyCode}",description:"Region name with currency code in the region selector",values:{regionName:m(e),currencyCode:(0,t.jsx)(J.A,{value:"light-foreground-alt",children:e.currencyCode.toUpperCase()})}}),"data-code":e.code,"data-url":`/${e.code.toLowerCase()}${h}`,onClick:p,selected:i===e.code},e.code))})]}),c.length>0&&(0,t.jsxs)(ed,{children:[(0,t.jsx)(eg,{variant:"medium",weight:"bold",colour:"normal-contrast",children:(0,t.jsx)(u.A,{id:"mK8XmN3ckUe9rK8v9rHh",defaultMessage:"All regions and currencies",description:"Section title above the full alphabetical region and currency list in the region selector"})}),(0,t.jsx)(es,{children:c.map(e=>(0,t.jsx)(eu,{size:"medium",startIcon:(0,t.jsx)(Y.A,{countryCode:e.code}),endIcon:i===e.code?(0,t.jsx)(y.A,{}):void 0,title:(0,t.jsx)(u.A,{id:"nIOR1XQB-FNL0jcqglur",defaultMessage:"{regionName}, {currencyCode}",description:"Region name with currency code in the region selector",values:{regionName:m(e),currencyCode:(0,t.jsx)(J.A,{value:"light-foreground-alt",children:e.currencyCode.toUpperCase()})}}),"data-code":e.code,"data-url":`/${e.code.toLowerCase()}${h}`,selected:i===e.code,onClick:p},e.code))})]})]})}),ef=g.Ay.div.withConfig({componentId:"sc-e64dd312-0"})(["display:flex;justify-content:center;> *{inline-size:min(100%,",");}> .distribution-filled > fieldset{min-inline-size:0;}> .distribution-filled > fieldset > .distribution-filled{grid-auto-columns:minmax(0,1fr);}"],(0,c.D0)(360)),em=g.Ay.div.withConfig({componentId:"sc-e64dd312-1"})(["padding-top:",";"],(0,c.D0)(16)),ep=(0,g.Ay)(l.A).withConfig({componentId:"sc-e64dd312-2"})(["","{&&&{--nav-bar-currency-language-dialog-size:min( calc(100vw - ","),calc(100dvh - ","),"," );width:var(--nav-bar-currency-language-dialog-size) !important;max-width:var(--nav-bar-currency-language-dialog-size) !important;height:var(--nav-bar-currency-language-dialog-size) !important;max-height:var(--nav-bar-currency-language-dialog-size) !important;}}"],o.em.tablet,(0,c.D0)(40),(0,c.D0)(40),(0,c.D0)(560)),ey=s.memo(function(e){let{showLanguageTab:a,tabletHeight:n}=e,o=(0,d.A)(),{resolve:l}=(0,h.A)(),[c,g]=(0,s.useState)("currency"),[f,m]=(0,s.useState)(!1),p=(0,s.useCallback)(e=>{g(e)},[]),y=(0,s.useCallback)(e=>{e?m(!0):l()},[l]),A=(0,s.useCallback)((e,a)=>{y(a)},[y]),x=a?o.formatMessage({id:"niQoVEqXi3LmIJ_1E7Cc",defaultMessage:"Region, currency & language",description:"Modal title for region, currency and language selection in the navigation bar"}):o.formatMessage({id:"jZ_em4vQCeUJW4EVMsbw",defaultMessage:"Select your region & currency",description:"Modal title for region and currency selection in the navigation bar"});return(0,t.jsxs)(ep,{height:"full",size:"S",tabletHeight:n,title:x,loading:f,children:[a&&(0,t.jsx)(ef,{children:(0,t.jsxs)(i.A,{inputsName:"nav-bar-currency-language-tab",onValueChange:p,distribution:"filled",children:[(0,t.jsx)(r.A,{value:"currency",checked:"currency"===c,title:(0,t.jsx)(u.A,{id:"5IzESyiJhZD7FXx2DaTM",defaultMessage:"Region & Currency",description:"Tab label for region and currency selection in the language and currency modal"})}),(0,t.jsx)(r.A,{value:"language",checked:"language"===c,title:(0,t.jsx)(u.A,{id:"_eRiayfEzUbUZ4Bbpv7r",defaultMessage:"Language",description:"Tab label for language selection in the language and currency modal"})})]})}),(0,t.jsxs)(em,{children:["currency"===c&&(0,t.jsx)(eh,{onRegionSelect:A}),"language"===c&&a&&(0,t.jsx)(q,{onLanguageSelect:y})]})]})})},635808(e,a,n){var t=n(474848),o=n(296540),l=n(853399),i=n(175160),r=n(529052),c=n(97745),s=n(825060),d=n(267662),u=n(638025),g=n(382805);let h=(0,o.memo)(function(e){let a=(0,o.useContext)(r.A),{currentRegionCode:n}=(0,o.useContext)(i.A),h=(0,o.useContext)(s.A),{showLanguageSelector:f}=(0,g.M)(),m=(0,o.useCallback)(()=>{h((0,t.jsx)(u.A,{showLanguageTab:f,tabletHeight:"auto"}))},[h,f]);
1return d.A.regions.length<2?null:(0,t.jsx)(l.A,{className:e.className,icon:(0,t.jsx)(c.A,{countryCode:n,size:"S"}),onClick:m,contentBreakpointMin:"desktop",children:a.toUpperCase()})});n.d(a,{},{A:h})},382805(e,a,n){var t=n(548904),o=n(616183),l=n(562050);function i(){let e=(0,o.V)(t.pK.enableLanguageSelector),{languageOptions:a}=(0,l.l)(),n=!!e?.enabled&&a.length>1;return{languageOptions:a,showLanguageSelector:n}}n.d(a,{M:()=>i})},851576(e,a,n){var t=n(474848),o=n(296540),l=n(440961),i=n(38267),r=n(634164),c=n(829403);let s=i.Ay.div.withConfig({componentId:"sc-b5d52c38-0"})(["position:fixed;inset:0;pointer-events:none;background-color:rgba(0,0,0,0);transition:background-color .2s;z-index:",";&.visible{pointer-events:auto;background-color:rgba(0,0,0,.5);}"],c.A.backdrop),d=o.memo(function(e){let{portalless:a,visible:n,className:i,...c}=e,[d,u]=(0,o.useState)();return((0,o.useEffect)(()=>{let e=document.createElement("div");return u(e),document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]),a)?(0,t.jsx)(s,{...c,className:(0,r.A)(i,{visible:n})}):d?l.createPortal((0,t.jsx)(s,{...c,className:(0,r.A)(i,{visible:n})}),d):null});n.d(a,{},{A:d})}}]); 2//# sourceMappingURL=3237.f996a0b717977936.js.map
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.