1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1689],{2808:(e,o,r)=>{"use strict";r.d(o,{W:()=>l.SZ,XF:()=>t.LX,mp:()=>l.O0,qc:()=>l.gW,sf:()=>l.mz});var l=r(20793);r(71445);var t=r(34474);r(32114),r(73450),r(86508),r(48316),r(11896),r(13993),r(75552),r(27653),r(44772),r(18857),r(298),r(55925),r(17522),r(41605),r(68250),r(78204),r(86455),r(51268)},18115:(e,o,r)=>{"use strict";r.d(o,{A:()=>u});var l=r(37876),t=r(14232),i=r(21645),n=r(57848),s=r(29454),a=r(38351),d=r(3273);let u=e=>{let{children:o}=e,{choicePointsData:r,setChoicePointsData:u}=(0,n.Ki)(),c=(0,i.rd)(),[h,m]=(0,t.useState)(),p=s.A.get("choiceToken"),[v,g]=(0,t.useState)(!0);(0,t.useEffect)(()=>{if(!r||0!==Object.keys(r).length)if(null==r?void 0:r.token)C(null==r?void 0:r.token);else{let e=y(c.query);c.replace(e,void 0,{shallow:!1})}},[r]),(0,t.useEffect)(()=>{var e;if(null==c?void 0:c.isReady){if(!(null==c||null==(e=c.query)?void 0:e.token)&&!s.A.get("choiceToken"))return void g(!1);(async()=>{if(p&&"string"==typeof p){let e=await (0,d.A)(p);(null==e?void 0:e.success)?(m(!0),s.A.set("choiceToken",p,{secure:!0,sameSite:"Strict"}),u({...e,token:p,notEnoughChoicePointsToBook:(null==e?void 0:e.acctBalance)===0})):u({invalidToken:!0}),g(!1)}})()}},[p,null==c?void 0:c.isReady]);let C=e=>{e&&s.A.set("choiceToken",e,{secure:!0,sameSite:"Strict"});let o=y(c.query);c.replace(o,void 0,{shallow:!1})},y=e=>(delete e.token,{pathname:c.pathname,query:e});return v&&r&&0===Object.keys(r).length?(0,l.jsx)(a.A,{}):h||(null==r?void 0:r.token)?(0,l.jsx)("div",{children:o}):(0,l.jsxs)("p",{className:"cp-login-wall",children:[(0,l.jsxs)("div",{className:"cp-login-wall__logos",children:[(0,l.jsx)("img",{className:"cp-login-wall__logo",src:"/assets/images/logo/logo-preferredhotels-main.png",alt:"logo-text"}),(0,l.jsx)("img",{className:"cp-login-wall__logo",src:"/assets/images/logo/choice-points.svg",alt:"logo-text"})]}),(0,l.jsx)("h1",{className:"display_sm",children:"Weâre sorry, you donât have access to this page."}),(0,l.jsxs)("p",{className:"text_md",children:["Either you reached this page in error or your Choice Privileges session has expired. Please return to"," ",(0,l.jsx)("a",{href:"https://www.choicehotels.com/choice-privileges/redeem-points/hotel-partners",children:"choicehotels.com"})," ","to begin your session."]}),(0,l.jsxs)("p",{className:"text_md",children:["Need to buy more Choice Privileges Rewards Points? Click"," ",(0,l.jsx)("a",{href:"https://storefront.points.com/choice-privileges/en-US/buy",children:"here"}),"."]})]})}},21545:(e,o,r)=>{"use strict";r.d(o,{IB:()=>c,IL:()=>A,LX:()=>y,My:()=>g,WI:()=>d,_o:()=>u,b5:()=>P,cM:()=>p,gV:()=>s,i$:()=>a,iY:()=>b,ie:()=>C,n3:()=>j,nb:()=>f,sA:()=>k,uQ:()=>v,u_:()=>h,yn:()=>m});var l=r(94196),t=r(90248),i=r(73441),n=r(5736);let s=(e,o,r,l,i)=>{(0,t.sb)(e,o,r,l,i)},a=(e,o,r,l,i)=>{(0,t.Ol)(e,o,r,l,i)},d=(e,o,r)=>{let l={};if(o){var t,i;let e=["departureDate","arrivalDate"];l=null==(i=Object)||null==(t=i.keys(o))?void 0:t.reduce((r,l)=>(e.includes(l)||(r[l]=o[l]),r),{})}(null==e?void 0:e.arrivalDate)&&(l.arrivalDate=(0,n.B7)(e.arrivalDate)),(null==e?void 0:e.departureDate)&&(l.departureDate=(0,n.B7)(e.departureDate)),null==r||r(l)},u=(e,o,r)=>{let l={};if(o){var t,i;let e=["numberOfAdults","numberOfChildren"];l=null==(i=Object)||null==(t=i.keys(o))?void 0:t.reduce((r,l)=>(e.includes(l)||(r[l]=o[l]),r),{})}if((null==e?void 0:e.length)>0){let o=[];e.forEach(e=>{o.push(e.numberOfAdults)}),l.numberOfAdults=o.join(",");let r=[];e.forEach(e=>{r.push(e.numberOfChildren)}),l.numberOfChildren=r.join(",")}null==r||r(l)},c=(e,o)=>{var r,l;let t={},i=["promoCode"];t=null==(l=Object)||null==(r=l.keys(o.query))?void 0:r.reduce((e,r)=>(i.includes(r)||(e[r]=o.query[r]),e),{}),e&&(t.promoCode=e),o.replace({pathname:o.pathname,query:t},void 0,{shallow:!0})},h=(e,o,r,l)=>{var t,i;let s={},a=["promoCode","departureDate","arrivalDate","numberOfAdults","numberOfChildren"];if(s=null==(i=Object)||null==(t=i.keys(l.query))?void 0:t.reduce((e,o)=>(a.includes(o)||(e[o]=l.query[o]),e),{}
1),(null==e?void 0:e.arrivalDate)&&(s.arrivalDate=(0,n.B7)(e.arrivalDate)),(null==e?void 0:e.departureDate)&&(s.departureDate=(0,n.B7)(e.departureDate)),(null==o?void 0:o.length)>0){let e=[];o.forEach(o=>{e.push(o.numberOfAdults)}),s.numberOfAdults=e.join(",");let r=[];o.forEach(e=>{r.push(e.numberOfChildren)}),s.numberOfChildren=r.join(",")}r&&(s.promoCode=r),l.replace({pathname:l.pathname,query:s},void 0,{shallow:!0})},m=e=>{(0,i.HR)(e)},p=e=>{(0,i.sI)(e),(0,l.RU)(e)},v=e=>{(0,i.WS)(e),(0,l.xe)(e)},g=e=>{let{roomIndex:o,bookingData:r,hotelDetails:t}=e;(0,l.jL)(o,r,t)},C=e=>{var o,r,t,i,n,s,a,d,u;let{roomIndex:c,bookingData:h,hotelDetails:m,router:p}=e,v={},g=["roomCode","rateCode"];if(v=null==(r=Object)||null==(o=r.keys(p.query))?void 0:o.reduce((e,o)=>(g.includes(o)||(e[o]=p.query[o]),e),{}),null==h||null==(t=h.rooms)?void 0:t[c]){let e="string"==typeof(null==p||null==(i=p.query)?void 0:i.roomCode)?[p.query.roomCode]:Array.isArray(p.query.roomCode)?[...p.query.roomCode]:[];e[c]=(null==h||null==(s=h.rooms)||null==(n=s[c])?void 0:n.roomCode)||"",v.roomCode=e.join(",");let o="string"==typeof(null==p||null==(a=p.query)?void 0:a.rateCode)?[p.query.rateCode]:Array.isArray(p.query.rateCode)?[...p.query.rateCode]:[];o[c]=(null==h||null==(u=h.rooms)||null==(d=u[c])?void 0:d.rateCode)||"",v.rateCode=o.join(",")}p.replace({pathname:p.pathname,query:v},void 0,{shallow:!0}),(0,l.TF)(c,h,m)},y=e=>{(0,l.i3)(e)},f=e=>{(0,l.AF)(e)},b=(e,o,r)=>{let l={};if(o){var t,i;let e=["iata"];l=null==(i=Object)||null==(t=i.keys(o))?void 0:t.reduce((r,l)=>(e.includes(l)||(r[l]=o[l]),r),{})}e&&(l.iata=e),null==r||r(l)},k=()=>{(0,t.Pk)()},A=e=>{(0,t.ln)(e)},P=e=>{let{BookingData:o,dynamicPackages:r,hotelDetails:n,propertyData:s,selectedCurrency:a,hotelAvailability:d,scriptId:u,convertCurrency:c,program:h}=e;"PHBE"==h&&(0,t.h6)(o,u),(0,i.PF)({BookingData:o,hotelDetails:n,propertyData:s,selectedCurrency:a,convertCurrency:c,hotelAvailability:d,dynamicPackages:r,program:h}),(0,l.mX)({BookingData:o,hotelDetails:n,propertyData:s,selectedCurrency:a,convertCurrency:c,hotelAvailability:d,dynamicPackages:r})},j=e=>{let{BookingData:o,hotelDetails:r,propertyData:n,selectedCurrency:s,hotelAvailability:a,scriptId:d,convertCurrency:u,program:c}=e;"PHBE"==c&&(0,t.FA)(o,d),(0,i.hg)({BookingData:o,hotelDetails:r,propertyData:n,selectedCurrency:s,convertCurrency:u,hotelAvailability:a,program:c}),(0,l.Ez)({BookingData:o,hotelDetails:r,propertyData:n,selectedCurrency:s,convertCurrency:u,hotelAvailability:a})}},24666:(e,o,r)=>{"use strict";r.r(o),r.d(o,{__N_SSG:()=>C,default:()=>y});var l=r(37876),t=r(14232),i=r(21645),n=r(77328),s=r.n(n),a=r(2808),d=r(13476),u=r(57848),c=r(7507),h=r(21545);let m=e=>{let{propertyData:o,termsConditions:r,partnersAdvertisements:n}=e,s=(0,i.rd)(),m=s.query,{choicePointsData:p}=(0,u.Ki)(),{targetGroup:v}=(0,c.qY)(),{setUseUBEv2SimplifiedHeader:g,setUseUBEv2SimplifiedFooter:C}=(0,d.n8)(),y=e=>{let o={...m,...e};s.replace({pathname:s.pathname,query:o},void 0,{shallow:!0})};return(0,t.useEffect)(()=>("B"==v&&C(!0),()=>{C(!1),g(!1)}),[v]),(0,l.jsx)(l.Fragment,{children:v?"B"==v?(0,l.jsx)(d.yb,{config:{programCode:"CH",subSourceCode:"PTGCHOICE",maxRooms:1,maxAdults:8,maxChildren:8,feesPaidAtHotel:!0,showTaxesAndFeesForProgram:!1,allowsChangeNumberOfRooms:!0,useCreditCard:!1,disableAddOns:!0,disablePromoCode:!0,useChoicePoints:!0,hideRateDetails:!0,rateTitleOverride:"Special Offer",rateDescriptionOverride:"Redeem Choice Privileges\xae points to book this hotel room and enjoy the benefits of your rewards.",showTravelAgentForm:!1,programTermsConditions:r||void 0,hideRoomPolicies:!0,partnersAdvertisements:n||void 0,useAutoEnrollInIPreferSection:!0,enrollInPreferCode:"CHOICE",fallBackIcon:(0,l.jsx)("img",{src:"/assets/images/logo/logo_pineapple_lg.jpg",alt:"Room"}),style:{colorPalette:{brandPriority:"#866D4B",brandPriorityDark:"#725D40",brandPriorityLight:"#CBBCA3",brandPriorityLighter:"#FCF9F2",brandPrimary:"#000000",brandPrimaryLight:"#292929",brandLinkUnderline:"#C6963C",brandBackgroundAccentSecondary:"#866D4B",brandBackgroundAccentSecondaryDark:"#725D40",brandTextAccentSecondary:"#9D2235"}},callbacks:{displaySimplifiedHeader:e=>{g(e)},onDatesSelected:e=>{let{dates:o}=e;return(0,h.WI)(o,m,y)},onNumRoomsGuestsSelected:e=>{let{rooms:o}=e;(0,h._o)(o,m,y)},onPromoCodeAdded:e=>{let{promoCode:o}=e;(0,h.IB)(o,s)},onUpdateHotelAvailability:e=>{let{BookingData:o,hotelDetails:r,propertyData:l}=e;return(0,h.yn)({BookingData:o,hotelDetails:r,propertyData:l,program:"CHOICE"})},onBeginRoomSelect:e=>{let{BookingData:o,hotelDetails:r,propertyData:l,selectedCurrency:t,convertCurrency:i,availableRooms:n}=e;return(0,h.uQ)({BookingData:o,hotelDetails:r,propertyData:l,selectedCurrency:t,convertCurrency:i,availableRooms:n,program:"CHOICE"})},onRoomSelected:(e,o,r)=>(0,h.ie)({roomIndex:e,bookingData:o,hotelDetails:r,router:s}),onBeginCheckout:h.nb,onExit:()=>s.push("/choicepoints/search"),onSuccessfulBooking:e=>{let{BookingData:o,selectedCurrency:r,hotelAvailability:l,hotelDetails:t,propertyData:i,convertCurrency:n}=e;return(0,h.n3)({BookingData:o,selectedCurrency:r,hotelAvailability:l,hotelDetails:t,propertyData:i,scriptId:void 0,convertCurrency:n,program:"CHOICE"})},onNavigateToPDP:()=>{var e;return s.push("/choicepoints".concat(null==o||null==(e=o.entityUrl)?void 0:e.path))}}},sessionData:{isLoading:!(null==s?void 0:s.isReady),propertyCode:null==o?void 0:o.fieldItemCode,choicePointsAccessToken:(null==p?void 0:p.token)||"",choiceUserPoints:(null==p?void 0:p.acctBalance)||0}}):(0,l.jsx)("div",{className:"ph__booking-engine",children:(0,l.jsx)(a.mp,{config:{propertyNid:(null==o?void 0:o.nid)||0,programCode:"CH",subSourceCode:"PTGCHOICE",maxRooms:1,maxAdults:8,maxChildren:8,feesPaidAtHotel:!0,allowsRoomRemoval:!0,useCredit
1Card:!1,disableAddOns:!0,disablePromoCode:!0,useChoicePoints:!0,hideRateDetails:!0,choicePointsAccessToken:(null==p?void 0:p.token)||"",choiceUserPoints:(null==p?void 0:p.acctBalance)||0,hideTravelAgentInput:!0,termsConditions:r||"",hideRoomPolicies:!0,showConfirmationFooter:!0,useAutoEnrollInIPreferSection:!0,enrollInPreferCode:"CHOICE",FallBackIcon:(0,l.jsx)("img",{src:"/assets/images/logo/logo_pineapple_lg.jpg",alt:"Room"})},onBeginRoomSelect:e=>{let{BookingData:o,hotelDetails:r,propertyData:l,selectedCurrency:t,convertCurrency:i,availableRooms:n}=e;return(0,h.cM)({BookingData:o,hotelDetails:r,propertyData:l,selectedCurrency:t,convertCurrency:i,availableRooms:n,program:"CHOICE"})},onRoomSelected:(e,o,r)=>(0,h.My)({roomIndex:e,bookingData:o,hotelDetails:r}),onBeginCheckout:h.LX,onExit:()=>s.push("/choicepoints/search"),onSuccessfulBooking:e=>{let{BookingData:o,dynamicPackages:r,selectedCurrency:l,hotelAvailability:t,hotelDetails:i,propertyData:n,convertCurrency:s}=e;return(0,h.b5)({BookingData:o,dynamicPackages:r,selectedCurrency:l,hotelAvailability:t,hotelDetails:i,propertyData:n,scriptId:void 0,convertCurrency:s,program:"CHOICE"})}})}):null})};var p=r(18115),v=r(92955),g=r(35687),C=!0;let y=e=>{let{termsConditions:o,hotelDetails:r,property:n,points:a,errorPhoneNum:d,partnersAdvertisements:u}=e,c=(0,i.rd)(),{page:h,setPage:C}=(0,g.A)(),[y,f]=(0,t.useState)(!0);return((0,t.useEffect)(()=>{c.isReady&&setTimeout(()=>{C(0)},10)},[c.isReady]),(0,t.useEffect)(()=>{c.isReady&&0==h&&y&&f(!1)},[c.isReady,h,y]),y)?(0,l.jsx)(v.A,{}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(p.A,{children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{children:(0,l.jsx)("title",{children:"Choice Privileges\xae points - Booking"})}),n&&(0,l.jsx)(m,{termsConditions:o,hotelDetails:r,propertyData:n,errorPhoneNum:d,points:a,partnersAdvertisements:u})]})})})}},35687:(e,o,r)=>{"use strict";r.d(o,{A:()=>t}),r(14232);var l=r(21645);let t=()=>{let e=(0,l.rd)();return{page:parseInt(e.query.page||"0"),setPage:o=>{let r={pathname:e.pathname,query:{...e.query,page:o}};e.push(r,void 0,{shallow:!0})}}}},95982:(e,o,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/choicepoints/book/hotel/[synxisId]",function(){return r(24666)}])}},e=>{e.O(0,[5822,636,6593,8792],()=>e(e.s=95982)),_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.