1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5187],{43905:(e,t,l)=>{"use strict";l.d(t,{E:()=>i});var n=l(41565);let i=async e=>{let t=await (0,n.o)({propertyCodes:[e],schema:{field_synxis_id:{},nid:{}}});return((null==t?void 0:t.length)||0)>0&&t[0].fieldSynxisId||null}},49246:(e,t,l)=>{"use strict";l.d(t,{W:()=>n.A});var n=l(64958);l(16922),l(27351),l(7881),l(65930),l(86508),l(48316),l(75552),l(27653),l(55925),l(17522),l(41605),l(68250),l(51268)},55205:(e,t,l)=>{"use strict";l.d(t,{A:()=>i}),l(14232);var n=l(21645);let i=e=>{let{versions:t}=e,l=(0,n.rd)().query.siteVersion||"default";if(!t)return console.error("SiteVersion invoked but parameter is not valid: ".concat(null)),null;return"default"!==l&&t[l]?t[l]:t.default||t[Object.keys(t)[0]]||null}},58103:(e,t,l)=>{"use strict";l.d(t,{t:()=>o});var n=l(21645),i=l(14232),a=l(94196),r=l(88109);let o=()=>{let e=(0,n.rd)(),t=function(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{{let e=window.navigator.userAgent.toLowerCase();t(-1!==e.indexOf("safari")&&-1===e.indexOf("chrome")&&-1===e.indexOf("android"))}},[]),e}(),{isMobileApp:l}=(0,r.Ay)(),o=Object.fromEntries((0,i.useMemo)(()=>{var t;return new URLSearchParams((null==(t=e.asPath.split("?")[1])?void 0:t.split("#")[0])||"")},[e.asPath]).entries());return o.promo&&(o={...o,promoCode:o.promo},delete o.promo),{updateQueryParams:(0,i.useCallback)(t=>{let l={};Object.entries(t).forEach(e=>{let[t,n]=e;n&&(l[t]=n)});let n=e.asPath.split("?")[0];e.push({pathname:n,query:{...l}},void 0,{shallow:!0})},[null==e?void 0:e.asPath]),handleUrlChange:(l,i)=>{i&&!t?window.open((0,n.ce)(l,o),"_blank"):e.push(l)},handleExternalRouteChange:n=>{t||l?e.push(n):window.open(n,"_blank")},paramsObject:o,pdpMilestonePush:t=>{(null==t?void 0:t.nid)&&(0,a.XT)({event:"events",category:"view hotel",action:"click",label:t.fieldDisplayTitle||"",label2:e.asPath,other:{synxisId:t.fieldSynxisId||"",hotel_id:t.fieldItemCode}})},bookButtonTrackingEvents:t=>{(null==t?void 0:t.nid)&&(0,a.XT)({event:"booking buttons",category:"booking entrances",action:"click",label:(null==t?void 0:t.fieldDisplayTitle)||"",label2:(null==e?void 0:e.asPath)||"",other:{synxisId:(null==t?void 0:t.fieldSynxisId)||"",hotel_id:(null==t?void 0:t.fieldItemCode)||""}})}}}},60072:(e,t,l)=>{"use strict";l.d(t,{A:()=>h});var n=l(37876),i=l(14232),a=l(21645),r=l(14e3),o=l(37220),s=l(90248),d=l(72011),u=l(41565);let c=async e=>{if(!e)return null;let t=await (0,u.o)({propertyCodes:[e],schema:{field_synxis_id:{},nid:{}}});return((null==t?void 0:t.length)||0)>0&&t[0].fieldSynxisId||null},h=function(e){var t;let{event:l,scriptId:u,property:h,dtm_config:p,ready:v=!1}=e,f=(0,a.rd)();(0,r.usePathname)();let{userData:m}=(0,o.vL)(),_=async()=>{var e;if(!p||!("dtmc_hotel_id_list"in p))return void(0,s.GW)({scriptId:u,userData:m,dtm_config:p});let t=(null==(e=p.dtmc_hotel_id_list)?void 0:e.split(","))||[],l=!!p.dtmc_hotel_id,n=t[0],i=parseInt(n)>0;if(l)return void(0,s.GW)({scriptId:u,userData:m,dtm_config:p});if(i){let e={...p,dtmc_hotel_id:n};(0,s.GW)({scriptId:u,userData:m,dtm_config:e});return}if(t.length>0){let e=await c(n);if(e){let t={...p,dtmc_hotel_id:e};(0,s.GW)({scriptId:u,userData:m,dtm_config:t});return}}(0,s.GW)({scriptId:u,userData:m,dtm_config:p})};return(0,i.useEffect)(()=>{let e=document.getElementById(u);if(e){var t;null==(t=e.parentNode)||t.removeChild(e)}if(v&&(null==f?void 0:f.isReady)){switch(l){case d.k8.homepage:(0,s.e5)({scriptId:u,userData:m,dtm_config:p});break;case d.k8.infoPage:case d.k8.hotelResults:break;case d.k8.hotelDetails:(0,s.KV)({property:h,scriptId:u,userData:m,dtm_config:p});break;case d.k8.searchResults:_();break;case d.k8.accountSignupVisit:(0,s.Pk)();break;case d.k8.accountSignupSuccess:(0,s.ln)(m||{})}return()=>{var e;null==(e=document.getElementById(u))||e.remove()}}},[null==f?void 0:f.asPath,v,null==m||null==(t=m.email)?void 0:t.emailAddress]),(0,n.jsx)(n.Fragment,{})}},93516:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>m,default:()=>_});var n=l(37876),i=l(14232),a=l(21645),r=l(9606),o=l(58103),s=l(49246),d=l(60072),u=l(72011),c=l(43905);let h=()=>{let e=(0,a.rd)(),[t,l]=(0,i.useState)([]),[h,p]=(0,i.useState)(!0),[v,f]=(0,i.useState)(null),m=null==e?void 0:e.query.slug,{updateQueryParams:_,handleUrlChange:y,handleExternalRouteChange:g,paramsObject:k,pdpMilestonePush:b,bookButtonTrackingEvents:w}=(0,o.t)();(0,i.useEffect)(()=>{m&&e.isReady&&x(m.replace(/-/g," "))},[e.query.slug,e.isReady]);let x=async e=>{p(!0);let t=new Set,n=null;try{let l=await (0,r.B)(e);if(null==l?void 0:l.data){var i;let e=l.data.properties||[],n=(null==(i=l.data)?void 0:i["travel-partners"])||[];
1e.concat(n).forEach(e=>{let l=null==e?void 0:e.propertyCode;l&&t.add(l)})}n=await (0,c.E)(Array.from(t)[0])}catch(e){console.log(e)}f(n),l([...t]),p(!1)};return(0,n.jsxs)("div",{children:[(0,n.jsx)(d.A,{event:u.k8.searchResults,scriptId:"searchV5EpsTag",ready:!h,dtm_config:{dtmc_hotel_id_list:null==t?void 0:t.join(","),dtmc_hotel_brand:(null==k?void 0:k.collectionFilter)||"",dtmc_hotel_city:(null==k?void 0:k.cityFilter)||"",dtmc_hotel_promo_offer:(null==k?void 0:k.promoCode)||"",dtmc_hotel_id:v||""}}),(0,n.jsx)(s.W,{initConfig:{queryParams:k,setQueryParams:_,properties:[...t],handleRouteChange:y,handleExternalRouteChange:g,collectionsDisplayType:"pill",displayPropertyIcons:!0,isLoading:h,header:'for "'.concat(m.replace(/-/g," "),'"'),onPdpLinkClick:b,onBookButtonClick:w,inquiryUrl:"/inquire/",usesDates:!0,promoCode:(null==k?void 0:k.promoCode)||"",iata:(null==k?void 0:k.iata)||""}})]})};var p=l(55205),v=l(77328),f=l.n(v),m=!0;let _=e=>{let{slug:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f(),{children:(0,n.jsx)("link",{rel:"canonical",href:"".concat("https://preferredhotels.com","/search/term/").concat(t)})}),(0,n.jsx)(p.A,{versions:{default:(0,n.jsx)(h,{})}})]})}},93763:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/term/[slug]",function(){return l(93516)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=93763)),_N_E=e.O()}]);
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.