PageSourceSearch

https://static-js.treatme.co.nz/en-AU/9868.f7623b38ced3e7f9.js

js treatme.co.nz collected 2026-10-04 20:26:55 UTC 14,004 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 i=arguments[t];if(null!=i)for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a])}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]="87291316-7a22-4b68-a624-bff7a44482c1",e._sentryDebugIdIdentifier="sentry-dbid-87291316-7a22-4b68-a624-bff7a44482c1")}catch(e){}}();"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9868],{812935(e,t,i){i.d(t,{A:()=>Y});var a=i(474848),r=i(665673),l=i(309695),s=i(314953),o=i(182515),n=i(958911),d=i(616198),c=i(982513);i(517642),i(658004),i(733853),i(845876),i(432475),i(515024),i(731698),i(125509),i(665223),i(660321),i(241927),i(511632),i(864377),i(966771),i(712516),i(368931),i(652514),i(235694),i(652774),i(849536),i(321926),i(994483),i(916215);var h=i(343207),f=i(849984),u=i(427654),p=i(337997),g=i(167030),m=i(161648),x=i(729593),A=i(623991),b=i(750142),v=i(370641),y=i(677529),w=i(296540),C=i(846416),j=i(843702),M=i(814888),k=i(145943),F=i(636301),S=i(897729);let _=function(e){let{availableFilters:t,filterOrder:i,selectedFilters:s,label:o,search:n,searchQueryKey:d,onFilterChange:c,filterChipSize:_="medium",mapOverlay:R=!1}=e,O=(0,r.A)(),z=(0,M.xF)("mobile"),[D,I,,L]=(0,v.A)(),T=(0,b.jL)(),N=(0,w.useRef)(null),E=!t,[B,H]=(0,w.useState)([]),[P,G]=(0,w.useState)(new Set),K=(0,w.useMemo)(()=>(0,x.ZC)(B,P,{hideCounts:R}),[B,P,R]);(0,w.useEffect)(()=>{G(new Set(s))},[s]),(0,w.useEffect)(()=>{t&&i&&t.length>0&&H((0,x.kC)(t,i))},[t,i,T,n,d,P]);let Q=(0,w.useCallback)(e=>{var t;let i;G((t=e.target.value,(i=new Set(P)).has(t)?i.delete(t):i.add(t),i)),c({search:(0,y.T8)(n,d,e.target.value)})},[c,n,d,P]),X=(0,w.useCallback)(()=>{L()},[L]),Z=(0,w.useCallback)(()=>{G(new Set),T((0,A.HC)({search:(0,y._6)(n,d)}))},[T,n,d]),q=!!B.length,Y=O.formatMessage({id:"iHQWrOPSDCyUDX97STWw",defaultMessage:"Reset",description:"Button text to reset filter selection in the search or listing filters panel"}),U=O.formatMessage({id:"E3gq0DDBC8eIZiZ-hSRq",defaultMessage:"View Offers",description:"Button text to view filtered offers in the search or listing filters panel"}),W=O.formatMessage({id:"dtgTspToD4irYL2_gpwH",defaultMessage:"No available filters",description:"Message shown when no filters are available in the filters panel"}),J=O.formatMessage({id:"-9lzAJJnRIrInHwDay4s",defaultMessage:"Reset all",description:"Button text to reset all selected filters in the filters panel"})+(P.size?` (${P.size})`:""),V=o+(P.size?` (${P.size})`:""),$=(0,w.useMemo)(()=>(0,a.jsxs)(S.A,{direction:"horizontal",verticalAlign:"center",gap:8,children:[o,E?(0,a.jsx)(F.A,{size:8}):null]}),[o,E]),ee=(0,a.jsxs)(a.Fragment,{children:[!q&&(0,a.jsx)(m.Ay,{variant:"medium",children:W}),q&&(0,a.jsx)(h.A,{name:o,items:K,onChange:Q,maxItems:5,allowShowMore:!1})]});return(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{"aria-label":R?V:void 0,"data-map-filter-trigger":R||void 0,ref:N,selected:!!P.size,size:_,onClick:I,endIcon:D?(0,a.jsx)(g.A,{}):(0,a.jsx)(p.A,{}),children:V}),(0,a.jsx)(C.A,{min:"tablet",children:(0,a.jsx)(u.A,{"data-testid":R?"hotel-map-filter-dropdown":void 0,"data-map-filter-dropdown":R||void 0,autoHeight:R||void 0,title:R?o:void 0,size:"M",triggerRef:N,anchorRef:N,open:D,placement:"bottom-start",onClose:X,secondaryActionProps:{kind:"tertiary",children:Y,onClick:Z},primaryActionProps:{children:U,onClick:X},children:(0,a.jsx)(k.A,{children:R?ee:(0,a.jsx)(f.A,{allowToggle:!1,showDropdown:!1,title:o,loading:E,showBorder:!1,children:ee})})})}),(0,a.jsx)(C.A,{max:"mobile",children:(0,a.jsx)(j.A,{title:$,isOpen:D&&z,onClose:X,primaryActionText:U,onPrimaryActionClick:X,secondaryActionText:J,onSecondaryActionClick:Z,children:ee})})]})};var R=i(671468),O=i(98019),z=i(262762),D=i(399729);i(218111),i(161701);var I=i(38267),L=i(731357),T=i(424620),N=i(934731);let E=(0,I.Ay)(S.A).withConfig({componentId:"sc-bc16020b-0"})(["padding-inline:",";"],(0,L.D0)(16)),B=function(e){let{filters:t,search:i,label:s,onFilterChange:o,filterChipSize:n="medium",mapOverlay:d=!1}=e,c=(0,r.A)(),{CUSTOMER_RATING_GTE:h}=(0,N.A)(),f=(0,w.useMemo)(()=>[h.EXCEPTIONAL,h.VERY_GOOD,h.GOOD,h.ANY_RATING],[h]),m=c.formatMessage({id:"ttBmnxKIk-1-fLGtMGjh",defaultMessage:"Apply",description:"Button text to apply customer rating filter in the filters panel"}),x=(0,M.xF)("mobile"),[A,b,,k]=(0,v.A)(),F=w.useRef(null),_=t?.customerRatingGte??h.ANY_RATING.value,R=(0,w.useCallback)(e=>{o({search:Number(e.target.value)===h.ANY_RATING.value?(0,y._6)(i,"customerRatingGte"):(0,y.LX)(i,"customerRatingGte",e.target.value)}),k()},[k,o,i,h]),O=_!==h.ANY_RATING.value&&!!_,z=s+(O?` (${_}.0+)`:"");return(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{"aria-label":d?z:void 0,"data-map-filter-trigger":d||void 0,selected:O,ref:F,size:n,onClick:b,endIcon:A?(0,a.jsx)(g.A,{}):(0,a.jsx)(p.A,{}),children:z}),(0,a.jsx)(C.A,{min:"tablet",children:(0,a.jsx)(u.A,{"data-map-filter-dropdown":d||void 0,autoHeight:d||void 0,title:d?s:void 0,size:"S",triggerRef:F,anchorRef:F,open:A,placement:"bottom-start",onClose:k,children:(0,a.jsx)(E,{direction:"vertical",ga
1p:16,children:f.map(e=>(0,a.jsx)(T.A,{checked:e.value==_,onChange:R,name:e.label,value:e.value,children:e.label},e.label))})})}),(0,a.jsx)(C.A,{max:"mobile",children:(0,a.jsx)(j.A,{title:s,isOpen:A&&x,onClose:k,primaryActionText:m,onPrimaryActionClick:k,children:(0,a.jsx)(S.A,{direction:"vertical",gap:16,children:f.map(e=>(0,a.jsx)(T.A,{checked:e.value==_,onChange:R,name:e.label,value:e.value,children:e.label},e.label))})})})]})},H=function(e){let{availableFilters:t,selectedFilters:i,label:s,search:o,searchQueryKey:n,onFilterChange:d,filterChipSize:c="medium",mapOverlay:A=!1}=e,b=(0,r.A)(),F=(0,M.xF)("mobile"),[S,_,,R]=(0,v.A)(),[O,z]=(0,w.useState)(new Set(i)),D=(0,w.useRef)(null),I=(0,w.useMemo)(()=>(0,x.ZC)((0,x.kC)(t??[]),new Set(O),{hideCounts:A}),[t,O,A]),L=(0,w.useCallback)(e=>{z(t=>{let i=new Set(t);return e.target.checked?i.add(e.target.value):i.delete(e.target.value),i})},[]),T=(0,w.useCallback)(()=>{d({search:(0,y.LX)(o,n,Array.from(O).join(","))}),R()},[R,O,d,o,n]),N=(0,w.useCallback)(()=>{T(),R()},[R,T]),E=(0,w.useCallback)(()=>{z(new Set)},[]);(0,w.useEffect)(()=>{z(new Set(i))},[i]);let B=(t?.length??0)>0,H=b.formatMessage({id:"RAHy2iev_xzNi9PbHiRO",defaultMessage:"Reset",description:"Button text to reset inclusions filter in the search or listing filters panel"}),P=b.formatMessage({id:"rooDZXgr7NIYL_4PKy8C",defaultMessage:"Apply",description:"Button text to apply inclusions filter in the search or listing filters panel"}),G=b.formatMessage({id:"35rJ0F53OKmeRrPwsl7g",defaultMessage:"No available filters",description:"Message shown when no inclusion filters are available"}),K=b.formatMessage({id:"w2g9RLcGZU97OgZAHw8U",defaultMessage:"Reset all",description:"Button text to reset all selected inclusions in the inclusions list"}),Q=(0,w.useCallback)(e=>O.size?b.formatMessage({id:"5HtI1Lmi-09QyeiNtM70",defaultMessage:"{label} ({count})",description:"Filter label showing the base text followed by the selected inclusion count in hotel search"},{label:e,count:O.size}):e,[b,O.size]),X=Q(K),Z=Q(s),q=(0,a.jsxs)(a.Fragment,{children:[!B&&(0,a.jsx)(m.Ay,{variant:"medium",children:G}),B&&(0,a.jsx)(h.A,{name:"inclusions",items:I,onChange:L,maxItems:5,allowShowMore:!1})]});return(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{"aria-label":A?Z:void 0,"data-map-filter-trigger":A||void 0,selected:!!O.size,ref:D,size:c,onClick:_,endIcon:S?(0,a.jsx)(g.A,{}):(0,a.jsx)(p.A,{}),children:Z}),(0,a.jsx)(C.A,{min:"tablet",children:(0,a.jsx)(u.A,{"data-testid":A?"hotel-map-filter-dropdown":void 0,"data-map-filter-dropdown":A||void 0,autoHeight:A||void 0,title:A?s:void 0,size:"M",triggerRef:D,anchorRef:D,open:S,placement:"bottom-start",onClose:N,secondaryActionProps:{kind:"tertiary",children:H,onClick:E},primaryActionProps:{children:P,onClick:T},children:(0,a.jsx)(k.A,{children:A?q:(0,a.jsx)(f.A,{allowToggle:!1,showDropdown:!1,title:s,showBorder:!1,children:q})})})}),(0,a.jsx)(C.A,{max:"mobile",children:(0,a.jsx)(j.A,{title:s,isOpen:S&&F,onClose:R,primaryActionText:P,onPrimaryActionClick:N,secondaryActionText:X,onSecondaryActionClick:E,children:q})})]})};var P=i(396420),G=i(194617),K=i(829403),Q=i(185692),X=i(134754);let Z=I.Ay.div.withConfig({componentId:"sc-9e7495e4-0"})(["position:sticky;z-index:",";background:",";width:100%;top:0;&.map-overlay{background:transparent;position:relative;width:auto;box-shadow:none;&& [data-map-filter-trigger]{background:",";border-color:",";--chip-stroke-color:",";box-shadow:inset 0 0 0 var(--chip-stroke-width,1px) var(--chip-stroke-color),",";&.selected{--chip-stroke-color:",";}}[data-map-filter-dropdown] > div{border-radius:",";box-shadow:",";}[data-map-filter-dropdown] label{min-height:",";padding-block:",";cursor:pointer;}}&.lifted{box-shadow:0 4px 4px 0 rgba(0,0,0,0.05);}"],K.A.searchSubMenu,e=>e.theme.palette.neutral.surface.normalBackground,e=>e.theme.palette.neutral.surface.normalBackground,e=>e.theme.palette.neutral.surface.lightForeground,e=>e.theme.palette.neutral.surface.lightForeground,e=>e.theme.shadow.bottom.small,e=>e.theme.palette.neutral.surface.normalContrast,(0,L.D0)(12),e=>e.theme.shadow.bottom.small,(0,L.D0)(32),(0,L.D0)(4)),q=I.Ay.div.withConfig({componentId:"sc-9e7495e4-1"})(["display:flex;gap:",";> *{flex:1;justify-content:center;}","{> *{flex:0 0 auto;}}"],(0,L.D0)(8),G.em.tablet),Y=(0,R.Ng)((e,t)=>{let i=(0,O.A)(t.filters);return{availableFilters:e.offer.offerListFilterOptions[i],search:e.router.location.search,pathname:e.router.location.pathname}})(function(e){let{mapOverlay:t=!1,availableFilters:i,overrideAvailableFilters:h,filters:f,search:u,pathname:p,showSort:g=!1,sortOptions:m,onFilterChange:x,onSortChange:A,excludeOfferTypesFromCount:b=!1,largeFilterChipSize:v=!1,filterChipSize:y,mapViewUrl:w}=e,C=(0,r.A)(),j=y??(v?"large":"medium"),k=h??i,{toggleFilterPanel:F}=(0,c.A)(),S=(0,M.xF)("mobile"),R=(0,X.t)(),O=(0,M.Qt)("largeDesktop"),I=!(0,D.U)(p),[L,T]=(0,Q.Wx)(),N=b?0:+(f.offerTypes?.length===1),E=!!(f.bedroomsGte||f.bedroomsEq),G=I?f.amenities?.length??0:0,K=(f.holidayTypes?.length??0)+G+(f.inclusions?.length??0)+(f.propertyFacilities?.length??0)+(f.roomAmenities?.length??0)+(f.bedTypes?.length??0)+ +!!E+ +!!f?.priceLte+(f.locations?.length??0)+ +!!f.customerRatingGte+N,Y=C.formatMessage({id:"1CpQrQpseRhWVRxZvWhW",defaultMessage:"All filters",description:"Form field label for button that opens all filters panel"}),U=C.formatMessage({id:"Fmg8oNNFsuvKEX3qm8R6",defaultMessage:"Customer rating",description:"Label for customer rating filter dropdown in the filters panel"}),W=C.formatMessage({id:"xqxLhsHQEb9XU42gCgr9",defaultMessage:"Inclusions",de
1scription:"Label for inclusions filter dropdown in the search or listing filters panel"}),J=C.formatMessage({id:"6zL0mfztDFpmoqBdhxpA",defaultMessage:"Type of escape",description:"Label for holiday types filter dropdown in the search or listing filters panel"}),V=C.formatMessage({id:"SDrddjVHD4KqX763IouH",defaultMessage:"Amenities",description:"Label for amenities filter dropdown in the search or listing filters panel"}),$=K?C.formatMessage({id:"kP4ohcXYgX3_NhsaOJVg",defaultMessage:"({filterCount, number})",description:"Active filter count in parentheses in the search or listing filters panel"},{filterCount:K}):"",ee=C.formatMessage({id:"Kwa_NLK1C0MSWf1ZnCg5",defaultMessage:"Filter & Sort",description:"Button label on mobile search results that opens the combined filters and sort panel"}),et=C.formatMessage({id:"dgZ0q4-mlU-8LQv1Cntf",defaultMessage:"Map",description:"Button label to switch to the map view display in the search results interface"});return(t?!O:R)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:L}),(0,a.jsx)(Z,{className:t?"map-overlay":T?"":"lifted",children:(0,a.jsxs)(q,{children:[(0,a.jsxs)(s.A,{"data-map-filter-trigger":t||void 0,kind:"secondary",variant:"default",size:"small",shape:"round",startIcon:(0,a.jsx)(n.A,{}),onClick:F,children:[t?Y:ee," ",$]}),w&&(0,a.jsx)(s.A,{kind:"secondary",variant:"default",size:"small",shape:"round",startIcon:(0,a.jsx)(d.A,{}),to:w,children:et})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:L}),(0,a.jsx)(Z,{className:t?"map-overlay":T?"":"lifted",children:(0,a.jsxs)(P.A,{gap:8,gutterStyle:"overflow",children:[(0,a.jsxs)(l.A,{"data-map-filter-trigger":t||void 0,size:j,"aria-label":t?`${Y} ${$}`.trim():void 0,startIcon:(0,a.jsx)(n.A,{}),onClick:F,selected:K>0,children:[Y," ",$]}),g&&!!m?.length&&(0,a.jsx)(o.A,{sortOptions:m,roundedButton:!0,showSelectedHighlight:!0,showDropdown:!S,filterChipSize:j,onSortChange:A}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(B,{mapOverlay:t,filterChipSize:j,filters:f,search:u,label:U,onFilterChange:x}),(0,a.jsx)(H,{mapOverlay:t,filterChipSize:j,searchQueryKey:z.J6,label:W,availableFilters:k?.filters?.inclusions,selectedFilters:f?.inclusions??[],search:u,onFilterChange:x}),(0,a.jsx)(_,{mapOverlay:t,filterChipSize:j,searchQueryKey:z.J7,label:J,availableFilters:k?.filters?.holidayTypes,filterOrder:k?.filterOrder?.holidayTypes,selectedFilters:f?.holidayTypes??[],search:u,onFilterChange:x}),t&&(0,a.jsx)(_,{mapOverlay:!0,filterChipSize:j,searchQueryKey:z.qH,label:V,availableFilters:k?.filters?.propertyFacilities,filterOrder:k?.filterOrder?.propertyFacilities,selectedFilters:f.propertyFacilities??[],search:u,onFilterChange:x}),I&&(0,a.jsx)(_,{mapOverlay:t,filterChipSize:j,searchQueryKey:z.dk,label:V,availableFilters:k?.filters?.amenities,filterOrder:k?.filterOrder?.amenities,selectedFilters:f?.amenities??[],search:u,onFilterChange:x})]})]})})]})})}}]);
2//# sourceMappingURL=9868.f7623b38ced3e7f9.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.