PageSourceSearch

https://static-js.treatme.co.nz/en-AU/5027.bd825e99ec5d5891.js

js treatme.co.nz collected 2026-10-04 20:26:52 UTC 8,373 bytes, 2 lines download raw bytes

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 t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:luxgroup-customer-portal":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1228db02-173b-4b07-8619-0adc86df027f",e._sentryDebugIdIdentifier="sentry-dbid-1228db02-173b-4b07-8619-0adc86df027f")}catch(e){}}();"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5027],{781542(e,t,n){var i=n(474848),a=n(806711),o=n(914490);n.d(t,{},{A:function({defaultChecked:e,checked:t,onChange:n,disabled:r,name:s,...l}){return(0,i.jsx)(a.A,{...l,input:(0,i.jsx)(o.A,{name:s,defaultChecked:e,checked:t,onChange:n,disabled:r})})}})},806711(e,t,n){var i=n(474848),a=n(299759),o=n(38267),r=n(413697),s=n(163880);let l=(0,o.Ay)(s.A).withConfig({componentId:"sc-f20224e0-0"})(["&:has(input:disabled){color:",";}&:not(:has(input:disabled)){","{&:hover{cursor:pointer;background-color:",";}}&:focus-visible{","}}"],e=>e.theme.palette.neutral.surface.lightForegroundAlt,a.R,e=>
1e.theme.palette.neutral.surface.lightBackground,r.A);n.d(t,{},{A:function({input:e,inputPlacement:t,icon:n,...a}){return(0,i.jsx)(l,{...a,forwardedAs:"label",startIcon:"start"===t?e:n,endIcon:"end"===t?e:n})}})},849984(e,t,n){n(218111),n(607588);var i=n(474848),a=n(634164),o=n(296540),r=n(38267),s=n(370641),l=n(452643),c=n(552819),d=n(371145),u=n(731357),p=n(919427),f=n(161648),h=n(153702),g=n(196168),A=n(636301),m=n(897729),y=n(665673);let b=r.Ay.div.withConfig({componentId:"sc-a1acf39f-0"})(["&.border{border-bottom:1px solid ",";}&.compact.border{border-bottom:1px solid ",";}&.is-open{padding-bottom:",";transition:padding-bottom .2s ease;}&.compact{padding-block:",";}&.compact.is-open{padding-bottom:",";}"],e=>e.theme.palette.neutral.surface.lightForeground,e=>e.theme.palette.neutral.default.five,(0,u.D0)(20),(0,u.D0)(12),(0,u.D0)(12)),x=(0,r.Ay)(l.A).withConfig({componentId:"sc-a1acf39f-1"})(["display:flex;width:100%;justify-content:space-between;padding:"," 0 ",";.compact &{padding:0;min-height:",";}"],(0,u.D0)(8),(0,u.D0)(8),(0,u.D0)(24)),v=r.Ay.div.withConfig({componentId:"sc-a1acf39f-2"})([".compact &{margin-top:",";}"],(0,u.D0)(4)),w=(0,r.Ay)(h.A).withConfig({componentId:"sc-a1acf39f-3"})(["pointer-events:none;opacity:0;transition:opacity 0.2s;&.visible{pointer-events:auto;opacity:1;}"]),C=o.memo(function(e){let{children:t,title:n,onReset:r=g.A,canReset:l,resetLabel:u,showBorder:h=!0,showDropdown:C=!0,allowToggle:j=!0,loading:k=!1,opened:I=!0,compact:_=!1,"data-testid":D}=e,M=(0,y.A)(),[E,P]=(0,s.A)(I),B=(0,o.useRef)(null),L=(0,o.useRef)(null),R=(0,o.useCallback)(e=>{e.target===B.current?(L.current?.querySelectorAll("input").forEach(e=>{"checkbox"===e.type?e.checked=!1:"range"===e.type?e.name.includes("start")?e.value=e.min:e.value=e.max:e.value=""}),r(e)):j&&P()},[j,r,P]);return(0,i.jsxs)(b,{ref:L,className:(0,a.A)({"is-open":E,border:h,compact:_}),"data-testid":D,children:[(0,i.jsxs)(x,{onClick:R,children:[(0,i.jsxs)(m.A,{direction:"horizontal",verticalAlign:"center",gap:8,children:["string"==typeof n&&(_?(0,i.jsx)(f.Ay,{variant:"medium",weight:"bold",children:n}):(0,i.jsx)(p.Ay,{variant:"heading6",children:n})),"string"!=typeof n&&n,k&&(0,i.jsx)(A.A,{size:8})]}),(0,i.jsxs)(m.A,{direction:"horizontal",verticalAlign:"center",gap:8,children:[(0,i.jsx)(w,{"aria-hidden":!l,ref:B,className:(0,a.A)({visible:l}),size:"small",children:u??M.formatMessage({id:"1BCuuKA_YbmI7wo_U3rn",defaultMessage:"Reset",description:"Link to reset filter selections in the search or listing filters panel"})}),C&&(0,i.jsx)(d.A,{open:E})]})]}),(0,i.jsx)(c.A,{expanded:E,children:(0,i.jsx)(v,{children:t})})]})});n.d(t,{},{A:C})},138254(e,t,n){n.d(t,{A:()=>N});var i=n(474848),a=n(296540),o=n(665673),r=n(38267),s=n(731357),l=n(781542),c=n(343207),d=n(849984),u=n(717674),p=n(750142),f=n(581384);n(218111),n(720116),n(18237);var h=n(876517),g=n(169075),A=n(359975),m=n(825060),y=n(841258),b=n(33563),x=n(761162),v=n(803556),w=n(511686),C=n(329404),j=n(21665),k=n(460516),I=n(84038),_=n(243786),D=n(638065),M=n(98019),E=n(388213),P=n(267662);let B=function({layout:e,cacheKey:t,skipBatchMaxCap:n=!1,skipBurnExperiment:o=!1,onBurnEnabled:r,disabled:s=!1}={}){let l=(0,a.useContext)(m.A),[c]=(0,h.A)(),{hasSelectedBurnToggle:d,setSearchBurnEnabled:u,pointsToBurn:f,setPointsToBurn:B}=(0,A.A)(),L=(0,p.jL)(),R=(0,p.GV)(e=>e.loyalty.account.data?.points??0),V=(0,p.GV)(D.pu),G=t??(0,M.A)(V),S=(0,p.GV)(e=>e.loyalty.pointsBurnBatchCalculations??{}),O=(0,p.GV)(v.W0),z=(0,p.GV)(w.A),K=(0,p.GV)(C.A),N=(0,p.GV)(j.A),T=(0,p.GV)(k.A),{isAnyVariant:F}=(0,I.A)(),U=(0,a.useMemo)(()=>P.A.regions.find(e=>e.code===T)?.currencyCode,[T]),[H,W]=(0,E.A)(T);(0,a.useEffect)(()=>{L({type:_.RQd})},[G,L]);let Y=(0,a.useMemo)(()=>{if(n)return R;let e=Object.values(S).reduce((e,t)=>Math.max(e,t?.data?.priceInPoints??0),0);return e>0?Math.min(R,e):R},[S,R,n]),q=!n&&d&&0===Object.keys(S).length,[Q,Z]=(0,a.useState)(()=>f??R),J=(0,a.useRef)(Y);(0,a.useEffect)(()=>{if(!d){J.current=Y;return}let e=J.current;J.current=Y,Z(t=>{if(t===e&&t!==Y)return B(Y),Y;let n=Math.min(t,Y);return n!==t&&B(n),n})},[d,Y,B]);let X=(0,a.useCallback)(e=>{B(e)},[B]),$=(0,g.A)(X,100,[X]),ee=(0,a.useCallback)((e,t)=>{Z(t),$(t)},[$]),et=(0,a.useCallback)(async()=>{(O||(await l((0,i.jsx)(y.A,{}))).loggedIn)&&(d?(Z(Y),u(!1),B(void 0)):(r?.(),Z(Y),u(!0),B(Y)))},[O,d,Y,u,B,l,r]),en=(0,a.useCallback)(()=>{Z(1e3),B(1e3)},[B]),ei=(0,a.useCallback)(()=>{l((0,i.jsx)(b.A,{}))},[l]);return(0,a.useMemo)(()=>(!!o||!!F)&&!!z&&(!O||!!K&&(!N||R>=1e3)),[o,F,z,O,K,N,R])?(0,i.jsx)(x.A,{layout:e,isLoggedIn:O,isEnabled:d&&!s,loading:q,onToggle:et,tier:c,hasLoyaltyAccount:K,userPoints:R,maxBurnPoints:Y,minBurnPoints:1e3,localValue:Q,onSliderChange:ee,onReset:en,onInfoCl
1ick:ei,wrongRegion:O&&!N,switchRegionPath:H,onSwitchRegion:W,loyaltyCurrencyLabel:U}):null};var L=n(49864),R=n(729738);let V=r.Ay.div.withConfig({componentId:"sc-a4f524b7-0"})(["> *{margin-top:",";}"],(0,s.D0)(8)),G=r.Ay.div.withConfig({componentId:"sc-a4f524b7-1"})(["display:flex;flex-direction:column;gap:",";"],(0,s.D0)(8)),S=r.Ay.div.withConfig({componentId:"sc-a4f524b7-2"})(["display:flex;flex-direction:column;gap:",";margin-top:",";> *{margin-top:0;}"],(0,s.D0)(8),(0,s.D0)(8)),O=r.Ay.div.withConfig({componentId:"sc-a4f524b7-3"})(["min-width:0;"]),z=(0,r.Ay)(l.A).withConfig({componentId:"sc-a4f524b7-4"})(["&&&{background:transparent;padding:0;}"]),K=(0,r.Ay)(f.A).withConfig({componentId:"sc-a4f524b7-5"})(["display:block;height:",";width:auto;"],(0,s.D0)(8)),N=function({cacheKey:e,skipBatchMaxCap:t,skipBurnExperiment:n,viewPriceInPoints:r,onViewPriceInPointsChange:s,compact:l,loading:f,enableBurnControls:h=!1,onBurnControlsChange:g,children:m}){let y=(0,o.A)(),b=(0,p.GV)(L.A),{setSearchBurnEnabled:x,setPointsToBurn:v}=(0,A.A)(),w=(0,R.A)(),C=(0,a.useCallback)(()=>{s(!1)},[s]),j=(0,a.useCallback)(()=>{r?C():(x(!1),v(void 0),s(!0))},[r,C,s,x,v]),k=y.formatMessage({id:"Pl7ew0Wylbx4ZUv7DdgF",defaultMessage:"View Price in Points",description:"Checkbox label to show experience search prices as Société points only"}),I=(0,a.useMemo)(()=>[{value:"view-price-in-points",checked:r,label:k}],[r,k]),_=(0,a.useMemo)(()=>(0,i.jsxs)(u.A,{kind:"primary",children:[b&&(0,i.jsx)(K,{role:"img","aria-label":w}),!b&&w]}),[b,w]);return(0,i.jsx)(d.A,{compact:l,loading:f,title:_,children:(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsxs)(G,{"data-testid":"loyalty-points-filter-burn-controls",onChange:g,children:[(0,i.jsx)(O,{children:(0,i.jsx)(B,{layout:"filterPanel",cacheKey:e,skipBatchMaxCap:t,skipBurnExperiment:n,onBurnEnabled:C,disabled:r})}),l&&(0,i.jsx)(V,{"data-testid":"view-price-in-points-spacing",children:(0,i.jsx)(c.A,{name:"viewPriceInPoints",items:I,onChange:j})}),!l&&(0,i.jsx)(z,{inputPlacement:"start",checked:r,onChange:j,title:k,size:"medium"})]}),!!m&&(0,i.jsx)(S,{"data-testid":"loyalty-points-filter-children",children:m})]})})}}}]);
2//# sourceMappingURL=5027.bd825e99ec5d5891.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.