1(self.webpackChunkcelebrity=self.webpackChunkcelebrity||[]).push([[8792],{47592:(J,U,n)=>{"use strict";n.d(U,{P:()=>e,W:()=>t});const t="royal-one-rewards",e=[t]},15018:(J,U,n)=>{"use strict";n.d(U,{bL:()=>o,Sk:()=>Ft,uJ:()=>kt,GC:()=>Tt,SM:()=>St,Li:()=>yt});var t=n(11816),e=n(54438),o=function(_){return _.Female="FEMALE",_.Male="MALE",_}(o||{});const Lt=t.J1` 2 mutation WebAddGuest($accountId: AccountIdScalar!, $guestInfo: GuestInfoInput!) { 3 addGuest(accountId: $accountId, guestInfo: $guestInfo) { 4 ... on GuestsSuccess { 5 guests { 6 id 7 relation 8 contactInformation { 9 email 10 phoneNumber 11 address { 12 addressLine1 13 addressLine2 14 countryOfResidence 15 postalCode 16 state 17 town 18 } 19 } 20 emergencyContactInformation { 21 callingCode 22 countryCode 23 name 24 phoneNumber 25 } 26 loyaltyInformation { 27 cruiseLoyaltyId 28 loyaltyTier 29 tierCode 30 } 31 personalInformation { 32 birthdate 33 firstName 34 gender 35 lastName 36 nickname 37 } 38 travelDocumentInformation { 39 citizenshipCountryCode 40 } 41 } 42 } 43 ... on AddGuestExceptions { 44 exceptions { 45 code 46 exceptionType 47 message 48 title 49 ... on AccountNotFound { 50 code 51 exceptionType 52 message 53 title 54 } 55 ... on GuestLimitReached { 56 code 57 exceptionType 58 message 59 title 60 } 61 } 62 } 63 } 64} 65 `;let Ft=(()=>{class _ extends t.sM{constructor(Mt){super(Mt),this.document=Lt}static{this.\u0275fac=function(vt){return new(vt||_)(e.KVO(t.Ic))}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const Et=t.J1` 66 query WebRetrieveGuests($accountId: AccountIdScalar!) { 67 savedGuests(accountId: $accountId) { 68 ... on GuestsSuccess { 69 __typename 70 guests { 71 id 72 relation 73 contactInformation { 74 email 75 phoneNumber 76 address { 77 addressLine1 78 addressLine2 79 countryOfResidence 80 postalCode 81 state 82 town 83 } 84 } 85 personalInformation { 86 firstName 87 lastName 88 nickname 89 birthdate 90 gender 91 } 92 emergencyContactInformation { 93 name 94 phoneNumber 95 callingCode 96 countryCode 97 } 98 travelDocumentInformation { 99 citizenshipCountryCode 100 } 101 loyaltyInformation { 102 cruiseLoyaltyId 103 loyaltyTier 104 tierCode 105 } 106 } 107 } 108 ... on RetrieveGuestsExceptions { 109 __typename 110 exceptions { 111 code 112 exceptionType 113 message 114 title 115 ... on AccountNotFound { 116 __typename 117 code 118 exceptionType 119 message 120 title 121 } 122 } 123 } 124 } 125} 126 `;let Tt=(()=>{class _ extends t.XK{constructor(Mt){super(Mt),this.document=Et}static{this.\u0275fac=function(vt){return new(vt||_)(e.KVO(t.Ic))}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const Bt=t.J1` 127 mutation WebAppDeleteSavedGuest($accountId: AccountIdScalar!, $guestId: String!) { 128 deleteGuest(accountId: $accountId, guestId: $guestId) { 129 ... on GuestsSuccess { 130 __typename 131 guests { 132 contactInformation { 133 email 134 phoneNumber 135 address { 136 addressLine1 137 addressLine2 138 countryOfResidence 139 postalCode 140 state 141 town 142 } 143 } 144 emergencyContactInformation { 145 callingCode 146 countryCode 147 name 148 phoneNumber 149 } 150 id 151 loyaltyInformation { 152 cruiseLoyaltyId 153 loyaltyTier 154 } 155 personalInformation { 156 birthdate 157 firstName 158 gender 159 lastName 160 nickname 161 } 162 relation 163 travelDocumentInformation { 164 citizenshipCountryCode 165 } 166 } 167 } 168 ... on DeleteGuestExceptions { 169 __typename 170 exceptions { 171 code 172 exceptionType 173 message 174 title 175 ... on AccountNotFound { 176 __typename 177 code 178 exceptionType 179 message 180 title 181 } 182 ... on GuestNotFound { 183 __typename 184 code 185 exceptionType 186 message 187 title 188 } 189 ... on InvalidInputFound { 190 __typename 191 code 192 exceptionType 193 message 194 title 195 } 196 ... on UnprocessableEntity { 197 __typename 198 exceptionType 199 code 200 message 201 title 202 } 203 } 204 } 205 } 206} 207 `;let kt=(()=>{class _ extends t.sM{constructor(Mt){super(Mt),this.document=Bt}static{this.\u0275fac=function(vt){return new(vt||_)(e.KVO(t.Ic))}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const xt=t.J1` 208 mutation WebUpdateGuest($accountId: AccountIdScalar!, $savedGuestId: String!, $guestInfo: GuestInfoInput!) { 209 updateGuest( 210 accountId: $accountId 211 savedGuestId: $savedGuestId 212 guestInfo: $guestInfo 213 ) { 214 ... on GuestsSuccess { 215 guests { 216 id 217 relation 218 contactInformation { 219 email 220 phoneNumber 221 address { 222 addressLine1 223 addressLine2 224 countryOfResidence 225 postalCode 226 state 227 town 228 } 229 } 230 emergencyContactInformation { 231 callingCode 232 countryCode 233 name 234 phoneNumber 235 } 236 loyaltyInformation { 237 cruiseLoyaltyId 238 loyaltyTier 239 tierCode 240 } 241 personalInformation { 242 birthdate 243 firstName 244 gender 245 lastName 246 nickname 247 } 248 travelDocumentInformation { 249 citizenshipCountryCode 250 } 251 } 252 } 253 ... on UpdateGuestExceptions { 254 exceptions { 255 code 256 exceptionType 257 message 258 title 259 ... on AccountNotFound { 260 code 261 exceptionType 262 message 263 title 264 } 265 ... on BrandAndLoyaltyTierDoesNotMatch { 266 code 267 exceptionType 268 message 269 title 270 } 271 ... on GuestNotFound { 272 code 273 exceptionType 274 message 275 title 276 } 277 } 278 } 279 } 280} 281 `;let St=(()=>{class _ extends t.sM{constructor(Mt){super(Mt),this.document=xt}static{this.\u0275fac=function(vt){return new(vt||_)(e.KVO(t.Ic))}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();t.J1` 282 query WebRetrieveGuestById($accountId: AccountIdScalar!, $guestId: String!) { 283 retrieveGuestById(accountId: $accountId, guestId: $guestId) { 284 ... on RetrieveGuestExceptions { 285 __typename 286 exceptions { 287 code 288 exceptionType 289 message 290 title 291 ... on AccountNotFound { 292 __typename 293 code 294 exceptionType 295 message 296 title 297 } 298 ... on GuestNotFound { 299 code 300 exceptionType 301 message 302 title 303 } 304 } 305 } 306 ... on GuestResultSuccess { 307 guest {
308 id 309 contactInformation { 310 email 311 phoneNumber 312 address { 313 addressLine1 314 addressLine2 315 countryOfResidence 316 postalCode 317 state 318 town 319 } 320 } 321 emergencyContactInformation { 322 callingCode 323 countryCode 324 name 325 phoneNumber 326 } 327 loyaltyInformation { 328 cruiseLoyaltyId 329 loyaltyTier 330 } 331 personalInformation { 332 birthdate 333 firstName 334 gender 335 lastName 336 nickname 337 } 338 relation 339 travelDocumentInformation { 340 citizenshipCountryCode 341 } 342 } 343 } 344 } 345} 346 `,t.J1` 347 mutation WebAddGuest ( 348 $accountId: AccountIdScalar! 349 $guestInfo: GuestInfoInput! 350 ) { 351 addGuest( 352 accountId: $accountId 353 guestInfo: $guestInfo 354 ) { 355 ... on GuestsSuccess { 356 guests { 357 id 358 relation 359 contactInformation { 360 email 361 phoneNumber 362 address { 363 addressLine1 364 addressLine2 365 countryOfResidence 366 postalCode 367 state 368 town 369 } 370 } 371 emergencyContactInformation { 372 callingCode 373 countryCode 374 name 375 phoneNumber 376 } 377 loyaltyInformation { 378 cruiseLoyaltyId 379 loyaltyTier 380 tierCode 381 } 382 personalInformation { 383 birthdate 384 firstName 385 gender 386 lastName 387 nickname 388 } 389 travelDocumentInformation { 390 citizenshipCountryCode 391 } 392 } 393 } 394 ... on AddGuestExceptions { 395 exceptions { 396 code 397 exceptionType 398 message 399 title 400 ... on AccountNotFound { 401 code 402 exceptionType 403 message 404 title 405 } 406 ... on GuestLimitReached { 407 code 408 exceptionType 409 message 410 title 411 } 412 } 413 } 414 } 415 } 416`,t.J1` 417query WebRetrieveGuests( 418 $accountId: AccountIdScalar! 419) { 420 savedGuests( 421 accountId: $accountId 422 ) { 423 ... on GuestsSuccess { 424 __typename 425 guests { 426 id 427 relation 428 contactInformation { 429 email 430 phoneNumber 431 address { 432 addressLine1 433 addressLine2 434 countryOfResidence 435 postalCode 436 state 437 town 438 } 439 } 440 personalInformation { 441 firstName 442 lastName 443 nickname 444 birthdate 445 gender 446 } 447 emergencyContactInformation { 448 name 449 phoneNumber 450 callingCode 451 countryCode 452 } 453 travelDocumentInformation { 454 citizenshipCountryCode 455 } 456 loyaltyInformation { 457 cruiseLoyaltyId 458 loyaltyTier 459 tierCode 460 } 461 } 462 } 463 ... on RetrieveGuestsExceptions { 464 __typename 465 exceptions { 466 code 467 exceptionType 468 message 469 title 470 ... on AccountNotFound { 471 __typename 472 code 473 exceptionType 474 message 475 title 476 } 477 } 478 } 479 } 480} 481`,t.J1` 482mutation WebAppDeleteSavedGuest ( 483 $accountId: AccountIdScalar! 484 $guestId: String! 485) { 486 deleteGuest( 487 accountId: $accountId 488 guestId: $guestId 489 ) { 490 ... on GuestsSuccess { 491 __typename 492 guests { 493 contactInformation { 494 email 495 phoneNumber 496 address { 497 addressLine1 498 addressLine2 499 countryOfResidence 500 postalCode 501 state 502 town 503 } 504 } 505 emergencyContactInformation { 506 callingCode 507 countryCode 508 name 509 phoneNumber 510 } 511 id 512 loyaltyInformation { 513 cruiseLoyaltyId 514 loyaltyTier 515 } 516 personalInformation { 517 birthdate 518 firstName 519 gender 520 lastName 521 nickname 522 } 523 relation 524 travelDocumentInformation { 525 citizenshipCountryCode 526 } 527 } 528 } 529 ... on DeleteGuestExceptions { 530 __typename 531 exceptions { 532 code 533 exceptionType 534 message 535 title 536 ... on AccountNotFound { 537 __typename 538 code 539 exceptionType 540 message 541 title 542 } 543 ... on GuestNotFound { 544 __typename 545 code 546 exceptionType 547 message 548 title 549 } 550 ... on InvalidInputFound { 551 __typename 552 code 553 exceptionType 554 message 555 title 556 } 557 ... on UnprocessableEntity { 558 __typename 559 exceptionType 560 code 561 message 562 title 563 } 564 } 565 } 566 } 567} 568`,t.J1` 569 mutation WebUpdateGuest( 570 $accountId: AccountIdScalar! 571 $savedGuestId: String! 572 $guestInfo: GuestInfoInput! 573 ) { 574 updateGuest( 575 accountId: $accountId 576 savedGuestId: $savedGuestId 577 guestInfo: $guestInfo 578 ) { 579 ... on GuestsSuccess { 580 guests { 581 id 582 relation 583 contactInformation { 584 email 585 phoneNumber 586 address { 587 addressLine1 588 addressLine2 589 countryOfResidence 590 postalCode 591 state 592 town 593 } 594 } 595 emergencyContactInformation { 596 callingCode 597 countryCode 598 name 599 phoneNumber 600 } 601 loyaltyInformation { 602 cruiseLoyaltyId 603 loyaltyTier 604 tierCode 605 } 606 personalInformation { 607 birthdate 608 firstName 609 gender 610 lastName 611 nickname 612 } 613 travelDocumentInformation { 614 citizenshipCountryCode 615 } 616 } 617 } 618 ... on UpdateGuestExceptions { 619 exceptions { 620 code 621 exceptionType 622 message 623 title 624 ... on AccountNotFound { 625 code 626 exceptionType 627 message 628 title 629 } 630 ... on BrandAndLoyaltyTierDoesNotMatch { 631 code 632 exceptionType 633 message 634 title 635 } 636 ... on GuestNotFound { 637 code 638 exceptionType 639 message 640 title 641 } 642 } 643 } 644 } 645 } 646`,t.J1` 647 query WebRetrieveGuestById( 648 $accountId: AccountIdScalar! 649 $guestId: String! 650 ) { 651 retrieveGuestById( 652 accountId: $accountId 653 guestId: $guestId 654 ) { 655 ... on RetrieveGuestExceptions { 656 __typename 657 exceptions { 658 code 659 exceptionType 660 message 661 title 662 ... on AccountNotFound { 663 __typename 664 code 665 exceptionType 666 message 667 title 668 } 669 ... on GuestNotFound { 670 code 671 exceptionType 672 message 673 title 674 } 675 } 676 } 677 ... on GuestResultSuccess { 678 guest {
679 id 680 contactInformation { 681 email 682 phoneNumber 683 address { 684 addressLine1 685 addressLine2 686 countryOfResidence 687 postalCode 688 state 689 town 690 } 691 } 692 emergencyContactInformation { 693 callingCode 694 countryCode 695 name 696 phoneNumber 697 } 698 loyaltyInformation { 699 cruiseLoyaltyId 700 loyaltyTier 701 } 702 personalInformation { 703 birthdate 704 firstName 705 gender 706 lastName 707 nickname 708 } 709 relation 710 travelDocumentInformation { 711 citizenshipCountryCode 712 } 713 } 714 } 715 } 716 } 717`;var ut=n(28008),ft=n(61703),Pt=n(20089),Ct=n(83458),Nt=n(17848),Jt=n(49287),zt=n(45312),ee=n(14229);const lt={guests:["WebAddGuest","WebRetrieveGuests","WebAppDeleteSavedGuest","WebUpdateGuest"]};function pt(_,bt=lt){for(const[Mt,vt]of Object.entries(bt))if(vt.includes(_?.operationName))return{gqlRouter:Mt};return{}}const yt=[t.Ic,{provide:t.$Y,useFactory:function _t(_,bt){const Mt=`${zt.f0}/en/${zt.qt}/web/graphql`,vt=new Nt.PR(bt).create({uri:Mt}),$t=(0,Pt.o)((Vt,{headers:Qt})=>({headers:{...Qt,...pt(Vt),appkey:zt.to,"Operating-System":_.getCurrentBrowser().name+" "+_.getCurrentBrowser().version,"Operating-System-Version":_.getCurrentBrowser().version,"X-APOLLO-OPERATION-NAME":Vt?.operationName,"X-APOLLO-OPERATION-TYPE":(0,ee.Vu)(Vt.query).operation}}));return{link:ut.C.from([$t,vt]),cache:new ft.D,connectToDevTools:!zt.cA.production,defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network"}}}},deps:[Jt.QY,Ct.lU]}]},2358:(J,U,n)=>{"use strict";n.d(U,{Jy:()=>l,h7:()=>mt,W_:()=>s,$$:()=>ot,TT:()=>Ct,R7:()=>$,ZR:()=>Jt,ns:()=>ee,Wf:()=>q,vZ:()=>E,PN:()=>kt,Oy:()=>Xt,k1:()=>ft,VU:()=>Et});var t=n(54438),e=n(88141),a=n(5964),C=n(61594),y=n(7673),v=n(49287);const l=()=>{const lt=(0,t.WQX)(v.PP),pt=(0,t.WQX)(v.xp),_t=(0,t.WQX)(v.x3);return pt.addToLoadingQueue(),lt.state$.pipe((0,e.M)(yt=>{const _=_t.getVdsIdFromAccessToken();!yt.loaded&&!yt.loading&&_&<.fetchEnriched({vdsId:_})}),(0,a.p)(yt=>yt.loaded||yt.error),(0,C.$)()).subscribe(()=>{pt.removeLoadingFromQueue()}),(0,y.of)(!0)};var h=n(30803),u=n(69179),c=n(61431),d=n(77969),r=n(85014),O=n(45312),p=n(47592);const s=(lt,pt)=>{const _t=(0,t.WQX)(u.Q),yt=(0,t.WQX)(h.Ix),_=(0,t.WQX)(c.x),bt=(0,t.WQX)(d.R),Mt=_t.isSessionActive();if(O.qt===r.Tn.SILVERSEA)return((lt,pt,_t,yt)=>{const _=_t.url;if(!lt){const vt=O.Fh.SILVERSEA_LOGIN;if(!vt)return!1;const $t=globalThis.top??globalThis;return vt.startsWith("http://")||vt.startsWith("https://")?$t.location.assign(vt):$t.location.assign("/"+vt.replace(/^\//,"")),!1}return yt.addToLoadingQueue(),[O.Fh.SILVERSEA_ROUTES.LOYALTY_PROGRAMS,O.Fh.SILVERSEA_ROUTES.VISA_SIGNATURE,O.Fh.SILVERSEA_ROUTES.ROYAL_ONE_REWARDS].some(vt=>_===vt||_.startsWith(`${vt}/`))?(setTimeout(()=>yt.removeLoadingFromQueue(),500),!0):(pt.navigate([O.Fh.SILVERSEA_ROUTES.LOYALTY_PROGRAMS]).then(()=>{setTimeout(()=>yt.removeLoadingFromQueue(),350)}).catch(()=>{yt.removeLoadingFromQueue()}),!1)})(Mt,yt,pt,_);if(!Mt){bt.set("last-page-visited",pt.url);const vt=lt.queryParams,$t=p.P.find(Qt=>pt.url.startsWith(`/${Qt}`)),Vt=$t?{queryParams:{...vt,redirectTo:$t}}:Object.keys(vt).length>0?{queryParams:vt}:void 0;return Vt?yt.navigate(["/signin"],Vt):yt.navigate(["/signin"]),!1}return!0};var o=n(59640),f=n(25558),M=n(62087),x=n(99437),b=n(96697),F=n(96354),G=n(39638),w=n(62161),S=n(91975),V=n(31369);const E=()=>
717{if(O.qt===V.rI.silversea)return(0,y.of)(!0);const lt=(0,t.WQX)(S.x),pt=(0,t.WQX)(o.il);return(0,t.WQX)(u.Q).getAccessToken()?L(pt,lt).pipe((0,f.n)(()=>(0,y.of)(!0)),(0,M.w)(1e4),(0,x.W)(()=>(0,y.of)(!0))):(0,y.of)(!0)},L=(lt,pt)=>(lt.dispatch(w.HY()),lt.pipe((0,o.Lt)(G.kB),(0,a.p)(_t=>!!_t.termsAndConditions?.version&&!!_t.privacyPolicy?.version),(0,b.s)(1),(0,f.n)(()=>D(lt,pt)))),D=(lt,pt)=>pt.legalsPendingAcceptance$.pipe((0,e.M)(_t=>k(lt,_t)),(0,F.T)(()=>!0)),k=(lt,pt)=>{const _t=X(pt);_t.length>0&<.dispatch(w.ix({payload:_t}))},X=lt=>{const pt=[];return lt.termsAndConditions?.needsAcceptance&&pt.push({id:"terms-confirm",accepted:!1}),lt.privacyPolicy?.needsAcceptance&&pt.push({id:"privacy-confirm",accepted:!1}),pt};var W=n(84572),K=n(58510),T=n(64412),Y=n(21148);function et(lt,pt){return lt.select(K.QO).pipe((0,b.s)(1),(0,f.n)(_t=>_t&&Object.keys(_t).length>0?(0,y.of)(_t):(pt.fetchLaunchDarklyFlags(),(0,W.z)([lt.select(K.mf),lt.select(K.YB),lt.select(K.QO)]).pipe((0,a.p)(([yt,_,bt])=>yt||!!_||!!(bt&&Object.keys(bt).length>0)),(0,a.p)(([yt])=>!yt),(0,b.s)(1),(0,M.w)(1500),(0,F.T)(([,yt,_])=>yt||!_||0===Object.keys(_).length?Y.tr:_),(0,x.W)(()=>(0,y.of)(Y.tr))))))}const q=()=>et((0,t.WQX)(o.il),(0,t.WQX)(T.M)).pipe((0,F.T)(()=>!0));var j=n(67039);const $=()=>{const lt=(0,t.WQX)(o.il),pt=(0,t.WQX)(T.M),_t=(0,t.WQX)(h.Ix);return lt.select(j.Fk).pipe((0,a.p)(yt=>yt.loaded||!!yt.error),(0,b.s)(1),(0,f.n)(yt=>et(lt,pt).pipe((0,F.T)(_=>_?.[Y.mA.ENABLE_COBRAND_TRANSFORMATION_PROGRAM]??Y.tr[Y.mA.ENABLE_COBRAND_TRANSFORMATION_PROGRAM]?null:_t.createUrlTree(["/"])),(0,f.n)(_=>{if(null!==_)return(0,y.of)(_);if(O.qt===r.Tn.SILVERSEA)return(0,y.of)(!0);const bt=sessionStorage.getItem("koddiAdClickData")??localStorage.getItem("koddiAdClickData");let Mt={};if(bt)try{const Qt=JSON.parse(bt);"object"==typeof Qt&&null!==Qt&&(Mt=Qt)}catch{Mt={}}return void 0!==_t.getCurrentNavigation()?.extras?.state?.showNonCardholderHub||!0===Mt.showNonCardholderHub?(0,y.of)(!0):(0,y.of)(!(!0!==yt.data?.cobrandCardInfo?.activeCardHolder)||_t.createUrlTree(["/"]))}))))};var z=n(89079);const ot=()=>{const lt=(0,t.WQX)(v.ZO),pt=(0,t.WQX)(v.PP),_t=(0,t.WQX)(v.LD),yt=(0,t.WQX)(v.J5),_=(0,t.WQX)(v.xp),bt=(0,t.WQX)(t.abz),Mt=(0,z.br)(lt.bookingError);return(0,W.z)([pt.getAccountData$,lt.autoLinked$,lt.state$]).pipe((0,a.p)(([vt])=>!!vt.vdsId),(0,a.p)(([,,vt])=>!vt?.loaded&&!vt?.loading),(0,C.$)(),(0,z.pQ)(bt)).subscribe(([vt,$t])=>{const Vt=vt?.loyaltyInformation?vt.loyaltyInformation[yt.getProgramNumberPropertyName(O.qt)]:null;_.addToLoadingQueue(),$t?it(lt,vt,Vt):nt(lt,vt,Vt),Ot(Mt,_t,_)}),(0,y.of)(!0)},nt=(lt,pt,_t)=>{lt.autoLink({vdsId:pt.vdsId,firstName:pt.personalInformation.firstName,lastName:pt.personalInformation.lastName,email:pt.contactInformation?.email,birthdate:pt.personalInformation.birthdate,brand:O.vN,loyaltyNumber:_t})},it=(lt,pt,_t)=>{lt.fetchProfileBookings({vdsId:pt.vdsId,loyaltyNumber:_t})},Ot=(lt,pt,_t)=>{(0,W.z)([lt,pt.state$]).pipe((0,a.p)(([yt,_])=>_.loaded||!!_.error||!!yt),(0,C.$)()).subscribe(()=>{_t.removeLoadingFromQueue()})};var Lt=n(68018),Ft=n(70980);const Et=()=>{const lt=(0,t.WQX)(Lt.c$),pt=(0,t.WQX)(v.xp);return pt.addToLoadingQueue(),lt.get("COMMON.GREETING").pipe((0,F.T)(_t=>!!_t),(0,Ft.j)(()=>pt.removeLoadingFromQueue()))};var Tt=n(87623),Bt=n(86046);const kt=(lt,pt)=>{const _t=(0,t.WQX)(o.il),yt=(0,t.WQX)(c.x);yt.addToLoadingQueue();const _=xt(pt);return _t.select(Tt.Du).pipe((0,e.M)(bt=>{("Loyalty"===_&&(!bt?.loading&&!bt?.loaded||!bt?.loading&&bt?.loaded&&St(pt,lt)!==bt?.brand)||"Cobrand"===_&&!bt?.loading&&!bt?.isVisaSignatureDataLoaded)&&_t.dispatch(Bt.SV({payload:{programTier:_,brand:St(pt,lt)}}))}),(0,a.p)(bt=>"Loyalty"===_?!(!bt.loaded&&!bt.error):!(!bt.isVisaSignatureDataLoaded&&!bt.error)),(0,Ft.j)(()=>yt.removeLoadingFromQueue()),(0,C.$)(),(0,F.T)(()=>!0))},xt=lt=>lt.url.includes("loyalty-programs")||lt.url.includes("benefits")?"Loyalty":"Cobrand",St=(lt,pt)=>lt.url.includes("benefits")&&pt.params?.brand||O.qt;var jt=n(79694),Wt=n(35031),at=n(85259);const Xt=()=>{const lt=(0,t.WQX)(o.il),pt=(0,t.WQX)(at.J),_t=lt.pipe((0,o.Lt)(_=>_.account)),yt=lt.pipe((0,o.Lt)(Wt.y));return yt.pipe((0,b.s)(1)).subscribe(_=>{(0,Wt.SW)(_)||Z(_t,pt,lt)}),yt.pipe((0,a.p)(_=>(0,Wt.SW)(_)||!!_.error),(0,b.s)(1),(0,f.n)(()=>(0,y.of)(!0)),(0,x.W)(()=>(0,y.of)(!0)))},Z=(lt,pt,_t)=>{lt.pipe((0,b.s)(1)).subscribe(yt=>{const _=yt?.data?.loyaltyInformation[pt.getProgramNumberPropertyName(O.qt)];_t.dispatch(jt.z.fetchPastBookings({payload:{accountId:yt.data?.vdsId,loyaltyNumber:_}}))})};var tt=n(888);const mt=()=>{const lt=(0,t.WQX)(o.il);return lt.pipe((0,o.Lt)(_t=>_t.account)).pipe((0,a.p)(_t=>null!==_t?.data?.vdsId),(0,e.M)(_t=>ut(lt,_t?.data?.personalInformation.avatar)),(0,b.s)(1),(0,f.n)(()=>(0,y.of)(!0)),(0,x.W)(()=>(0,y.of)(!1)))},ut=(lt,pt)=>{lt.dispatch(tt.X.getAvatar({payload:{profileAvatar:pt}}))},ft=()=>{const lt=(0,t.WQX)(u.Q),pt=(0,t.WQX)(h.Ix);return!lt.isSessionActive()||(pt.navigate(["/"]),!1)};var Pt=n(84887);const Ct=()=>{const lt=(0,t.WQX)(Pt.y),pt=(0,t.WQX)(v.xp);return lt.areCasinoCountriesLoaded()?(0,y.of)(!0):(pt.addToLoadingQueue(),lt.loadCasinoApprovedCountries().pipe((0,F.T)(()=>!0),(0,x.W)(_t=>(console.error("Failed to load casino approved countries. Allowing navigation without casino offers.",_t),(0,y.of)(!0))),(0,Ft.j)(()=>pt.removeLoadingFromQueue())))};var Nt=n(87343);const Jt=()=>{const lt=(0,t.WQX)(h.Ix),pt=(0,t.WQX)(Nt.f),_t=lt.getCurrentNavigation(),_=O.Fh.BRAND===V.rI.celebrity,bt=pt.isLDFlagEnabled(Y.mA.ENABLE_COMMUNITY);return!(!_||!bt||!0!==_t?.extras?.state?.fromInternal)||lt.createUrlTree([""])};var zt=n(65813);const ee=()=>{const lt=(0,t.WQX)(zt.s),pt=(0,t.WQX)(h.Ix);return!!lt.webConfig?.ga?.favoritesDashboard||pt.createUrlTree([""])}},85624:(J,U,n)=>{"use strict";n.d(U,{F9:()=>l,Yf:()=>d});var t=n(10467);const e=["/v1/guestAccounts/loyalty/info","/v1/guestAccounts/loyalty/history/summary","/v1/loyalty/cobrand/info"],C=5e3,y=new WeakSet;let v=null;function l(O){if(v)for(const p of Array.from(v.keys()))p.includes(O)&&v.delete(p)}const h=O=>e.some(p=>O.includes(p)),c=O=>{let p=O.replace(/^(https?:)?\/\/[^/]+/,"");return p.startsWith("/api/")&&(p=p.slice(4)),p.replace(/([?&])t=\d+(&|$)/,(m,s,o)=>o?s:"")};
717function d(O=globalThis){if(y.has(O))return;y.add(O);const p=new Map;v=p;const m=O.fetch.bind(O);O.fetch=function(o,f){const M="string"==typeof o?o:"href"in o?o.toString():o.url;if("GET"!==(f?.method||o?.method||"GET").toUpperCase()||!h(M)||!function u(O,p){if(p?.headers){if(p.headers instanceof Headers)return p.headers.get("access-token");if(Array.isArray(p.headers)){const s=p.headers.find(([o])=>"access-token"===o.toLowerCase());return s?s[1]:null}const m=p.headers;return m["access-token"]??m["Access-Token"]??null}return typeof Request<"u"&&O instanceof Request?O.headers.get("access-token"):null}(o,f))return m(o,f);const F=`GET:${c(M)}`,G=p.get(F);if(G){if(!(void 0!==G.expiresAt&&Date.now()>=G.expiresAt))return G.snapshot.then(S=>r(S));p.delete(F)}const w=m(o,f).then(function(){var S=(0,t.A)(function*(V){return{buffer:yield V.arrayBuffer(),init:{status:V.status,statusText:V.statusText,headers:V.headers}}});return function(V){return S.apply(this,arguments)}}(),S=>{throw p.delete(F),S});return p.set(F,{snapshot:w}),w.then(S=>{const V=S.init.status??0;if(V>=200&&V<300){const E=p.get(F);E?.snapshot===w&&(E.expiresAt=Date.now()+C)}else p.delete(F)},()=>{}),w.then(S=>r(S))}}function r(O){return new Response(O.buffer.slice(0),O.init)}},28567:(J,U,n)=>{"use strict";n.d(U,{PH:()=>y,b7:()=>t,nd:()=>a});var t=function(v){return v.Marketing="marketing",v.Operationanl="operational",v}(t||{}),a=function(v){return v.EMAIL="EMAIL",v.MOBILE_NUMBER="MOBILE_NUMBER",v}(a||{});const y={data:{cobrandCardInfo:{activeCardHolder:!1,coBrandPrimaryAccountNumber:""},personalInformation:{avatar:null,nickname:null,firstName:null,lastName:null,middleName:null,suffix:null,birthdate:null,gender:null,isFirstResponder:!1,isMilitary:!1},signInInformation:{securityQuestions:[]},birthdate:null,consumerId:null,contactInformation:{email:null,mobileNumber:null,mobileNumberCallingCode:null,mobileNumberCountryCode:null,address:{addressOne:null,addressTwo:null,city:null,state:null,zipCode:null,residencyCountryCode:null}},travelDocumentInformation:{passportNumber:null,passportExpirationDate:null,citizenshipCountryCode:null,birthCountryCode:null},loyaltyInformation:{crownAndAnchorId:null,crownAndAnchorSocietyLoyaltyTier:null,crownAndAnchorSocietyLoyaltyIndividualPoints:null,crownAndAnchorSocietyLoyaltyRelationshipPoints:null,crownAndAnchorEnrollmentDate:null,captainsClubId:null,captainsClubLoyaltyTier:null,captainsClubLoyaltyIndividualPoints:null,captainsClubLoyaltyRelationshipPoints:null,clubRoyaleId:null,clubRoyaleLoyaltyTier:null,clubRoyaleLoyaltyIndividualPoints:null,clubRoyaleLoyaltyRelationshipPoints:null,celebrityBlueChipId:null,celebrityBlueChipLoyaltyTier:null,celebrityBlueChipLoyaltyIndividualPoints:null,celebrityBlueChipLoyaltyRelationshipPoints:null,captainsClubNextTier:null,captainsClubTrackerPercentage:null,crownAndAnchorSocietyNextTier:null,crownAndAnchorSocietyRemainingPoints:null,crownAndAnchorTrackerPercentage:null,venetianSocietyId:null},emergencyContact:{firstName:null,lastName:null,phoneNumber:null,phoneNumberCallingCode:null,phoneNumberCountryCode:null,relationship:null},termsAndConditionsAgreement:null,privacyPolicyAgreement:null,emailOptIns:[],postalOptIns:[],notificationOptIns:[],marketingCountry:null,vdsId:null,accountId:null,uidType:null,uid:null,email:null,cruisingHistory:{firstCelebrityCruise:!1,firstCruiseEver:!1,firstRoyalCruise:!1,previousCruiser:!1},cobrandProgram:{raw:null,lastUpdated:null,loaded:!1}},error:null,loaded:!1,loading:!1}},17695:(J,U,n)=>{"use strict";n.d(U,{rE:()=>a});var t=n(45312);class a{constructor(c){c&&Object.assign(this,c)}static fromSiteSection(c){let d;return"string"==typeof c?d={siteSection:c,pageName:t.mx.pageName.replace("%path%",c)}:c.length&&(d={siteSection:c[0],pageName:t.mx.pageName.replace("%path%",c.join(":"))}),new a(d)}}},38556:(J,U,n)=>{"use strict";n.d(U,{$e:()=>e,Bi:()=>d,Hw:()=>h,Lc:()=>C,Qb:()=>v,Qn:()=>c,wJ:()=>l});var e=function(r){return r.Active="AC",r.Booked="BK",r.Offered="OF",r.Waitlist="WL",r.Cancelled="CX",r}(e||{}),C=function(r){return r.HasNotOpened="CHECK_IN_HAS_NOT_OPENED",r.Opened="CHECK_IN_IS_OPENED",r.CloseInApp="CHECK_IN_CLOSE_IN_APP",r.CruiseSailed="CHECK_IN_CLOSE_CRUISE_SAILED",r}(C||{}),v=function(r){return r[r.NOT_STARTED=0]="NOT_STARTED",r[r.IN_PROGRESS=1]="IN_PROGRESS",r[r.COMPLETED=2]="COMPLETED",r[r.REPRINT=3]="REPRINT",r}(v||{});const l={E2K:"RZ",VacationPlanner:"VP",AmadeusCruiseApi:"AC",Espresso:"ES",SabreCruiseApi:"CD",TravelBox:"TB",WorldSpan:"GC",GalileoCendant:"AP",CmoApi:"CM",CruiseApi:"PI"},h={WebOrSales:[l.E2K,l.VacationPlanner],TravelAgentsOrGroup:[l.AmadeusCruiseApi,l.Espresso,l.SabreCruiseApi,l.TravelBox,l.WorldSpan,l.GalileoCendant,l.CmoApi,l.CruiseApi]},u=new Map([["USD","$"],["EUR","\u20ac"],["GBP","\xa3"],["CAD","CA$"],["AUD","A$"],["NZD","NZ$"],["JPY","\xa5"],["CNY","\xa5"],["CHF","CHF"],["SEK","kr"],["NOK","kr"],["DKK","kr"],["MXN","MX$"],["BRL","R$"],["ARS","AR$"],["CLP","CL$"],["COP","CO$"],["PEN","S/"],["INR","\u20b9"],["KRW","\u20a9"],["SGD","S$"],["HKD","HK$"],["ZAR","R"],["AED","\u062f.\u0625"],["SAR","\u0631.\u0633"],["RUB","\u20bd"],["PLN","z\u0142"],["CZK","K\u010d"],["HUF","Ft"],["RON","lei"],["TRY","\u20ba"],["ILS","\u20aa"],["THB","\u0e3f"],["MYR","RM"],["IDR","Rp"]]);function c(r){return u.get(r?.toUpperCase())??r??""}var d=function(r){return r.Upcoming="upcoming",r.Past="past",r}(d||{})},97191:(J,U,n)=>{"use strict";n.d(U,{MU:()=>y,Mw:()=>e,XB:()=>C,q8:()=>a,zc:()=>t});const t="2301",e="2300",a="2302",C="dashboard",y="loyaltyprograms"},66693:(J,U,n)=>{"use strict";n.d(U,{sg:()=>l,kk:()=>a.kk,AT:()=>a.AT,$e:()=>C.$e,Fw:()=>a.Fw,b7:()=>t.b7,Lc:()=>C.Lc,Jy:()=>u,Sj:()=>y,MA:()=>c,tG:()=>d,hJ:()=>r.hJ,eR:()=>v,Z_:()=>a.Z_,bv:()=>a.bv,Pl:()=>a.Pl,Qb:()=>C.Qb,hw:()=>a.hw,HW:()=>m,gu:()=>a.gu,Bi:()=>C.Bi,nd:()=>t.nd,tp:()=>a.tp,yj:()=>h,PH:()=>t.PH,AG:()=>a.AG,Qn:()=>C.Qn,lT:()=>a.lT,V:()=>a.V});var t=n(28567),a=(n(17695),n(78822)),C=n(38556),y=function(s){return s.USD="USD",s.HKD="HKD",s.CHF="
717CHF",s.EUR="EUR",s.DKK="DKK",s.CAD="CAD",s.NOK="NOK",s.CNY="CNY",s.SGD="SGD",s.AUD="AUD",s.GBP="GBP",s.NZD="NZD",s.SEK="SEK",s.BRL="BRL",s.MXN="MXN",s}(y||{}),v=function(s){return s.LOGGED_IN="Logged In",s.ANONYMOUS="anonymous",s}(v||{}),l=function(s){return s.SETTINGS="settings",s.DASHBOARD="dashboard",s.MY_TRIPS="mytrips",s.GUEST_ACCOUNT="guestaccount",s.LOYALTY_COBRAND="loyaltycobrand",s}(l||{}),h=function(s){return s.Yes="Y",s.No="N",s}(h||{}),u=function(s){return s.warning="#F68F2D",s.warningDark="#AF6620",s.error="#ED1D24",s.success="#05A56B",s.information="#00A0CC",s}(u||{});const c="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.INVALID";var d=function(s){return s.PAYMENT_METHOD_ALREADY_EXIST="PY-0402",s}(d||{}),r=n(94488);const m=new Map([["royal",new Map([["D","STATEROOM_CATEGORY_ROYAL.SUITE"],["B","STATEROOM_CATEGORY_ROYAL.BALCONY"],["O","STATEROOM_CATEGORY_ROYAL.OCEANVIEW"],["I","STATEROOM_CATEGORY_ROYAL.INTERIOR"]])],["celebrity",new Map([["D","STATEROOM_CATEGORY_CELEBRITY.SUITE"],["B","STATEROOM_CATEGORY_CELEBRITY.BALCONY"],["O","STATEROOM_CATEGORY_CELEBRITY.OCEANVIEW"],["I","STATEROOM_CATEGORY_CELEBRITY.INSIDE"]])]])},20023:(J,U,n)=>{"use strict";n.d(U,{Ec:()=>y,I1:()=>v,eh:()=>e,j0:()=>t,jx:()=>a});var t=function(l){return l.EVENT_TYPE_INTERACTION="interaction",l.GUEST_ACCOUNT_BASE="guestaccount",l.LOYALTY_PROGRAM_SITE_SECTION="loyaltyprogram",l.COBRAND_SITE_SECTION="loyaltycobrand",l.LOYALTY_PROGRAM_BENEFITS_RCI="loyaltyprogramBenefitsrci",l.LOYALTY_PROGRAM_BENEFITS_SSC="loyaltyprogramBenefitsssc",l.LOYALTY_PROGRAM_BENEFITS_CEL="loyaltyprogramBenefitscel",l.LINK_ACCOUNT_NUMBER_RCI_PAGE="loyaltymatchaccountlinkrci",l.LINK_ACCOUNT_NUMBER_CEL_PAGE="loyaltymatchaccountlinkcel",l.LOYALTY_PROGRAM_PAGE_RC="loyaltyprogramrci",l.LOYALTY_PROGRAM_PAGE_CEL="loyaltyprogramcel",l.LOYALTY_PROGRAM_PAGE_SSC="loyaltyprogramssc",l.COBRAND_LINK_CARD_POPUP="linkcardpopup",l}(t||{}),e=function(l){return l.LOYALTY_PROGRAM="loy",l.COBRAND="loycobrand",l}(e||{}),a=function(l){return l.LINK_ACCOUNT_NUMBER_SUCCESS_INTERACTION="loyaltymatchaccountlink:success",l.GUEST_ACCOUNT_ROYAL="guestaccount:loyaltyprogramrci",l.GUESR_ACCOUNT_USER_ENROLL_RC="loyaltyprogram:enrollrci",l.GUESR_ACCOUNT_USER_ENROLL_CEL="loyaltyprogram:enrollcel",l.GUEST_ACCOUNT_CO_BRAND_BANNER="footer:ccbanner",l.GUEST_ACCOUNT_TERMS_AND_CONDITION="loyaltyprogram:t&c",l.COBRAND_INLINE_ERROR="errorMessage:inlinerror",l.COBRAND_LINK_SUCCESS="loyaltycard:linksuccess",l.GUEST_ACCOUNT_VIEW_ALL_RECENT_CRUISES_ROYAL="loyaltyprogram:recentcruisesrci",l.GUEST_ACCOUNT_VIEW_ALL_RECENT_CRUISES_CEL="loyaltyprogram:recentcruisescel",l.GUEST_ACCOUNT_ENROLL_BANNER="loyaltyprogram:enrollbanner",l.GUEST_ACCOUNT_ADD_YOUR_NUMBER_BANNER="loyaltyprogram:addyournumberbanner",l.GUEST_ACCOUNT_VISIT_RC="loyaltyprogram:visitrci",l.GUEST_ACCOUNT_CO_BRAND_ERROR="guestaccount:loyaltycobranderror",l.GUEST_ACCOUNT_CO_BRAND_REFRESH="loyaltycobrand:refresh",l.GUEST_ACCOUNT_VISIT_CEL="loyaltyprogram:visitcel",l.GUEST_ACCOUNT_VISIT_SSC="loyaltyprogram:visitssc",l.GUEST_ACCOUNT_CO_BRAND_LINK_CARD="loyaltycobrand:linkcard",l.GUEST_ACCOUNT_CO_BRAND_VIEW_ALL="loyaltycobrand:Viewall",l.GUEST_ACCOUNT_CO_BRAND_REWARDS_POINTS_TERMS="loyaltycobrand:t&c",l.COBRAND_VISIT_BANK_INTERACTION="loyaltycobrand:visitbank",l.TARGETTED_OFFERS_FIND_CRUISE="loyaltyprogram:applyoffer",l.TARGETTED_OFFERS_TERMS_APPLY="loyaltyprogram:offert&c",l.TARGETTED_OFFERS_FAILURE="guestaccount:errorMessage:nomessage",l.GUEST_ACCOUNT_PREFERRED_POINT="loyaltyprogram:preferredpoints",l}(a||{}),y=function(l){return l.LOYALTY_ANCHORS="loyaltyanchors",l.LOYALTY_PROGRAM_PAGE="loyalty-programs",l.FLUID_VARIABLE_UNENROLLED="loyaltyt&c:LoyaltyUnenrolled",l.FLUID_VARIABLE_LOYALTY_MATCH="loyaltyt&c:LoyaltyMatch",l.FLUID_VARIABLE_LOYALTY_PROGRAM_BENIFITS="loyaltyt&c:ProgramBenefits",l.FLUID_VARIABLE_LOYALTY_BENIFITS="loyaltyt&c:LoyaltyBenefits",l.FLUID_VARIABLE_LOYALTY_NOT_ENROLL="loyaltyhero:notenroll",l.FLUID_VARIABLE_LOYALTY_ENROLL="loyaltyhero:enroll",l.FLUID_VARIABLE_COBRAND_LINK_CARD_POPUP="linkcardpopup",l.FLUID_VARIABLE_COBRAND_SCREEN_LOADS_ACTIVE_CARD_MEMBER="hero:activecardmember",l.FLUID_VARIABLE_COBRAND_SCREEN_LOADS_ACTIVE_NOT_CARD_MEMBER="hero:applynow",l.FLUID_VARIABLE_COBRAND_VIEW_ALL_POSITION_UP="position:up",l.FLUID_VARIABLE_COBRAND_VIEW_ALL_POSITION_MIDDLE="position:middle",l.FLUID_VARIABLE_COBRAND_VIEW_ALL_POSITION_DOWN="position:down",l.FLUID_VARIABLE_COBRAND_VISIT_BANK_AMERICA="visitbank",l}(y||{}),v=function(l){return l.TARGETED_OFFER="targetedoffer",l.APPLIED="applied",l}(v||{})},78822:(J,U,n)=>{"use strict";n.d(U,{AG:()=>f,AT:()=>x,Eu:()=>a,Fw:()=>c,Pl:()=>v,V:()=>o,Z_:()=>s,bv:()=>
717r,dh:()=>h,ev:()=>u,gu:()=>C,hw:()=>e,kk:()=>O,lT:()=>m,m:()=>l,tp:()=>y}),n(31369);const e={BONUS_REWARDS:"BONUS_REWARDS",STATEMENT_CREDIT:"STATEMENT_CREDIT"};var a=function(b){return b.LOYALTY_MATCH="loyalty match",b.EARN_POINTS="earn points",b.BENEFITS="benefits",b}(a||{}),C=function(b){return b.ON_CHANGE="onchange",b.ON_BLUR="onblur",b}(C||{}),y=function(b){return b.REDEEM="redeem",b.EARN_POINTS="points",b.BENEFITS="benefits",b.REWARD_CATEGORIES="rewardCategories",b}(y||{}),v=function(b){return b.COBRAND="Cobrand",b.LOYALTY="Loyalty",b}(v||{}),l=function(b){return b.PRE_GOLD="pre-gold",b.GOLD="gold",b.DIAMOND_PLUS="diamond-plus",b.DIAMOND="diamond",b.EMERALD="emerald",b.PINNACLE_CLUB="pinnacle-club",b.PLATINUM="platinum",b}(l||{}),h=function(b){return b["1_VS_DAY"]="1-VS-Day",b["100_VS_DAYS"]="100-VS-Days",b["250_VS_DAYS"]="250-VS-Days",b["350_VS_DAYS"]="350-VS-Days",b["500_VS_DAYS"]="500-VS-Days",b}(h||{}),u=function(b){return b.CLASSIC="classic",b.ELITE_PLUS="elite-plus",b.ELITE="elite",b.SELECT="select",b.ZENITH="zenith",b.PREVIEW="preview",b}(u||{});const c=19,r=/\b\d{3}-\d{3}-\d{4}\b/g,O="assets/images/base/bankOfAmericaLogo_original.svg";var m=function(b){return b.RequestReceived="REQUEST_RECEIVED",b.Added="ENROLLED_LOYALTY_ADDED",b.Error="ENROLLED_LOYALTY_ADD_FAILED",b}(m||{}),s=function(b){return b[b.NotSet=0]="NotSet",b[b.Idle=1]="Idle",b[b.Error=2]="Error",b[b.Success=3]="Success",b[b.NetworkFailure=4]="NetworkFailure",b}(s||{});const o={filterTab:[],termsAndConditions:null,enroll:null,enrollLoyaltyMatch:null,linkAccount:null,header:null},f={banners:[],filterTab:[],header:null,link:null,termsAndConditions:null},x={STATEMENT_CREDIT:"StatementCredit",IN_PROGRESS:"InProgress",BONUS_PLUS_CREDIT_POINTS:"BonusPlusCreditPoints",BONUS_POINTS_PENDING:"BonusPointsPending"}},94488:(J,U,n)=>{"use strict";n.d(U,{hJ:()=>e,zu:()=>a});var e=function(C){return C.THUMB="?w=319",C.SMALL="?w=400",C.MEDIUM="?w=588",C.MEDIUM_PLUS="?w=770",C.LARGE="?w=805",C.FULL="?w=1280",C.HERO="?w=2000",C.XLARGE="?w=3000",C.CRUISE_CARD="?w=1024",C}(e||{}),a=function(C){return C.IMAGE="IMAGE",C.VIDEO="VIDEO",C.LOCAL_IMG_FILE="LOCAL_IMG_FILE",C.IMAGE_V2="image",C}(a||{})},33002:(J,U,n)=>{"use strict";n.d(U,{y:()=>t});var t=function(e){return e.INVALID_EMAIL="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.INVALID_EMAIL",e.EMPTY_MOBILE_NUMBER="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.EMPTY_MOBILE_NUMBER",e.INVALID_MOBILE_NUMBER="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.INVALID_MOBILE_NUMBER",e.MAX_DIGITS_MOBILE_NUMBER="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.DIGIT_LIMIT_EXCEEDED_MOBILE_NUMBER",e.INVALID_PASSWORD="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.INVALID_PASSWORD",e.REQUIRED_SECURITY_ANSWER="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.REQUIRED_SECURITY_ANSWER",e.INVALID_SECURITY_ANSWER="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.INVALID_SECURITY_ANSWER",e.FIRST_NAME="SETTINGS.SAVED_GUESTS.SAVED_GUEST_MANAGEMENT.FORM.VALIDATIONS.FIRSTNAME",e.LAST_NAME="SETTINGS.SAVED_GUESTS.SAVED_GUEST_MANAGEMENT.FORM.VALIDATIONS.LASTNAME",e.RESERVATION_NUMBER="CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.VALID_NUMBER",e.ENTER_MONTH="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.ENTER_MONTH",e.ENTER_DAY="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.ENTER_DAY",e.ENTER_YEAR="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.ENTER_YEAR",e.ENTER_YEAR_VALIDATION="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.ENTER_YEAR_VALIDATION",e.MAKE_SELECTION="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.MAKE_SELECTION",e.INVALID_ZIP_CODE="CUSTOMER_JOURNEY.FORM_VALIDATION_ERRORS.INVALID_ZIP_CODE",e.INVALID_LOYALTY_NUMBER="SETTINGS.SAVED_GUESTS.SAVED_GUEST_MANAGEMENT.FORM.VALIDATIONS.CROWN_ANCHOR_NUMBER_BRANDED",e.VALID_NAME="SETTINGS.PAYMENT_METHODS.CREDIT_CARD_MANAGEMENT.FORM.ERRORS.NAME",e.CARD_NUMBER="SETTINGS.PAYMENT_METHODS.CREDIT_CARD_MANAGEMENT.FORM.ERRORS.CARD_NUMBER",e}(t||{})},22252:(J,U,n)=>{"use strict";n.d(U,{Z:()=>d});var t=n(44128),e=n(7673),a=n(18810),C=n(12498),y=n(35335);const v=(r,O={})=>{const p=`Tried to load Resource over XHR for ${r} times without success. Giving up.`;return"object"==typeof O?O.message=`${O.message}; ${p}`:O={message:`${O}; ${p}`},O},l=(r,O,p)=>new t.ph({group:r,tag:O,metricName:"RetryCounter",counterValue:p}),h=2,u=1e3,c=1e3;function d(r){const{count:O=h,delayMs:p=u,backoffMs:m=c,group:s="",tag:o="",retryCallback:f=()=>{},exceptions:M=null}=r&&"number"!=typeof r?r:{count:r||h};let x=O,b=1;return F=>F.pipe((0,C.L)({count:O,delay:G=>{if(x>0&&(!M||M?.status!==G?.status)){x-=1,b+=1;const S=p+(O-x)*m;return f(l(s,o,b)),(0,e.of)(G).pipe((0,y.c)(S))}return(0,a.$)(()=>v(O,G))}}))}},72927:(J,U,n)=>{"use strict";n.d(U,{T:()=>a,l:()=>C});var t=n(21413),e=n(54438);const a="/";let C=(()=>{class y{constructor(){this.handles=new Map,this.reattach$=new t.B,this.routeReattached$=this.reattach$.asObservable()}shouldDetach(l){return!!l.data?.reuse&&null!==l.routeConfig}store(l,h){const u=this.keyFor(l);u&&this.handles.set(u,h)}shouldAttach(l){if(!l.data?.reuse)return!1;const h=this.keyFor(l);return!!h&&this.handles.has(h)}retrieve(l){if(!l.data?.reuse)return null;const h=this.keyFor(l),u=this.handles.get(h);return u?(queueMicrotask(()=>this.reattach$.next(h)),u):null}
717shouldReuseRoute(l,h){return l.routeConfig===h.routeConfig}keyFor(l){return l.pathFromRoot.map(u=>u.url.map(c=>c.path).join("/")).filter(Boolean).join("/")||a}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275prov=e.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},69029:(J,U,n)=>{"use strict";n.d(U,{P:()=>o});var t=n(54438),e=n(59640),a=n(66693),C=n(85014),y=n(84887),v=n(31369),l=n(45312),h=n(97191),u=n(97127),c=n(21148),d=n(93259),r=n(84572),O=n(5964),p=n(96697),m=n(58510),s=n(87343);let o=(()=>{class f{constructor(){this.store=(0,t.WQX)(e.il),this.countriesFacade=(0,t.WQX)(y.y),this.datesService=(0,t.WQX)(d.f),this.featureFlagsService=(0,t.WQX)(s.f),this.localizationService=(0,t.WQX)(u.P),this.launchDarklyFlags=this.store.selectSignal(m.QO),this.state$=this.store.select(C.Fk),this.getAccountData=this.store.selectSignal(C.Qx),this.getAccountData$=this.store.select(C.Qx),this.getAccountLoading=this.store.selectSignal(C.us),this.isUidTypeEmail=(0,t.EWP)(()=>this.getAccountData().uidType===a.nd.EMAIL),this.isLoyaltyEnrolled=(0,t.EWP)(()=>{const x=this.getAccountData()?.loyaltyInformation;if(!x)return!1;const b=l.qt;return!!(b===v.rI.royal&&x.crownAndAnchorId||b===v.rI.celebrity&&x.captainsClubId||b===v.rI.silversea&&x.venetianSocietyId)}),this.isKoddiEligible=(0,t.EWP)(()=>{const b=this.getAccountData()?.cobrandProgram?.raw?.profile;return!!this.launchDarklyFlags()?.[c.mA.ENABLE_COBRAND_KODDI_ADS]&&this.localizationService.isEnglishLanguage(this.localizationService.detect().language)&&!1===b?.activeCardHolder&&!1===b?.activeBlackoutPeriod})}updateSignInData(x,b){const F=this.buildSignInPayload(x);this.store.dispatch(C.Xw.updateEnriched({payload:F,analyticsPayload:b}))}updateContactData(x,b){const F=this.buildContantInfoPayload(x);this.store.dispatch(C.Xw.updateEnriched({payload:F,analyticsPayload:b}))}updateCommunicationData(x,b){const F=this.buildCommunicationPayload(x);this.store.dispatch(C.Xw.updateEnriched({payload:F,analyticsPayload:b}))}fetchEnriched(x){this.store.dispatch(C.Xw.getEnriched({payload:x}))}setLoyaltyInformationcookie(x){this.store.dispatch(C.Xw.setLoyaltyInformationCookie({url:x}))}deleteAccount(){const{accountId:x}=this.getAccountData();this.store.dispatch(C.Xw.deleteAccount({accountId:x}))}fetchCobrandInfo(x,b=!1){x?(0,r.z)([this.getAccountData$,this.store.select(m.QO),this.store.select(m.mf)]).pipe((0,O.p)(([F,G,w])=>!w&&!!F?.accountId&&!!G&&Object.keys(G).length>0),(0,p.s)(1)).subscribe(([F,G])=>{const w=G?.[x];(void 0===w?c.tr[x]:w)&&(!b&&F?.cobrandProgram?.raw||this.store.dispatch(C.Xw.getCobrandInfo({accountId:F?.accountId,force:b})))}):this.getAccountData$.pipe((0,O.p)(F=>!!F?.accountId),(0,p.s)(1)).subscribe(F=>{!b&&F?.cobrandProgram?.raw||this.store.dispatch(C.Xw.getCobrandInfo({accountId:F?.accountId,force:b}))})}forceFetchCobrandInfo(x){this.fetchCobrandInfo(x,!0)}fetchLoyaltyTiersContent(){this.getAccountData$.pipe((0,O.p)(x=>!!x?.accountId),(0,p.s)(1)).subscribe(x=>
717{x?.loyaltyInformation?.aemData||this.store.dispatch(C.Xw.getLoyaltyTiersContent())})}fetchKoddiAds(x){this.getAccountData$.pipe((0,O.p)(b=>!!b?.accountId),(0,p.s)(1)).subscribe(b=>{void 0===b?.loyaltyInformation?.koddiAdsData?.[x]&&this.store.dispatch(C.Xw.getKoddiAds({params:{pageId:x,sessionCookie:b.accountId}}))})}fetchKoddiNonChAds(){this.getAccountData$.pipe((0,O.p)(x=>!!x?.accountId),(0,p.s)(1)).subscribe(x=>{void 0===x?.loyaltyInformation?.koddiNonChAdsData&&this.store.dispatch(C.Xw.getKoddiNonChAds({params:{pageId:h.Mw,sessionCookie:x.accountId}}))})}buildSignInPayload(x){const{uid:b,password:F,answer:G,question:w}=x;let S={};if(b){let V,E;if(this.isUidTypeEmail())V=b,S={...S,uid:V,email:V,contactInformation:{email:V}};else{const{mobileNumberCallingCode:L,mobileNumberCountryCode:D,mobileNumber:k}=this.buildMobileInfoPayload(b,!1);E=k,S={...S,uid:E,mobileNumber:E,contactInformation:{mobileNumber:E,mobileNumberCallingCode:L,mobileNumberCountryCode:D}}}}if(F&&(S={...S,signInInformation:{...S?.signInInformation,password:F}}),G){const V=w||this.getAccountData().signInInformation.securityQuestions[0].questionKey;S={...S,signInInformation:{...S?.signInInformation,securityQuestions:[{questionKey:V,question:V,answer:G}]}}}return S}buildContantInfoPayload(x){let b={};const{birthdate:F,uid:G,country:w,state:S,citizenship:V}=x;if(["firstName","middleName","lastName","gender","suffix","isFirstResponder","isMilitary"].forEach(L=>{void 0!==x[L]&&(b.personalInformation={...b.personalInformation,[L]:x[L]})}),F){const L=`${F.year}${F.month}${F.day}`;b={...b,personalInformation:{...b.personalInformation,birthdate:L}}}if(void 0!==G)if(this.isUidTypeEmail()){const L=G?this.buildMobileInfoPayload(G,!0):{mobileNumber:"",mobileNumberCallingCode:void 0,mobileNumberCountryCode:void 0};b={...b,mobileNumber:L.mobileNumber,contactInformation:{mobileNumber:L.mobileNumber,mobileNumberCallingCode:L.mobileNumberCallingCode,mobileNumberCountryCode:L.mobileNumberCountryCode}}}else{const L=G;b={...b,email:L,contactInformation:{email:L}}}return w&&(b={...b,contactInformation:{...b?.contactInformation,address:{residencyCountryCode:w}},marketingCountry:w}),S&&(b={...b,contactInformation:{...b?.contactInformation,address:{...b?.contactInformation?.address,state:S}}}),V&&(b={...b,travelDocumentInformation:{citizenshipCountryCode:V}}),b}buildMobileInfoPayload(x,b){const F=x.countryCode,G=x.phoneNumber,w=this.countriesFacade.phoneCallingCodes().find(L=>L.countryCode===F),S=w?.callingCode,V=!(!G||!S);if(b&&!V)return{mobileNumber:"",mobileNumberCallingCode:void 0,mobileNumberCountryCode:void 0};const E=G?.replace(/\D/g,"")||"";return{mobileNumber:V?`+${S}${E}`:"",mobileNumberCallingCode:S,mobileNumberCountryCode:w?.countryCode??void 0}}buildCommunicationPayload(x){let b={};const{app:F,email:G}=x;return F&&(b={notificationOptIns:[Object.keys(F).reduce((w,S)=>({...w,[S]:F[S]?a.yj.Yes:a.yj.No}),{})]}),G&&(b={...b,emailOptIns:Object.keys(G).map(w=>({acceptDateTime:this.datesService.formatDateISOWithoutDashesColons((new Date).toISOString()),brand:w===v.rI.royal?"R":"C",category:a.b7.Marketing,flag:G[w]?a.yj.Yes:a.yj.No}))}),b}fetchProgramTiersContent(x){(0,r.z)([this.getAccountData$,this.store.select(m.QO),this.store.select(m.mf)]).pipe((0,O.p)(([b,F,G])=>!G&&!!b?.accountId&&!!F&&Object.keys(F).length>0),(0,p.s)(1)).subscribe(([b])=>{b?.loyaltyInformation?.aemLoyaltyHubData||this.store.dispatch(C.Xw.getProgramTiersContent({payload:{programTier:x?.programTier,brand:x?.brand},force:!1}))})}validateDataAndDispatch(x,b,F,G){(0,r.z)([this.getAccountData$,this.store.select(m.QO),this.store.select(m.mf)]).pipe((0,O.p)(([w,S,V])=>!V&&!!w?.accountId&&!!S&&Object.keys(S).length>0),(0,p.s)(1)).subscribe(([w,S,V])=>{if(V||!w?.accountId||!S||!x(w))return;const E=this.featureFlagsService.isLDFlagEnabled(G);F===E&&b(w,S)})}static{this.\u0275fac=function(b){return new(b||f)}}static{this.\u0275prov=t.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},25759:(J,U,n)=>{"use strict";n.d(U,{D:()=>d});var t=n(83458),e=n(18810),a=n(99437),C=n(7673),y=n(45312),v=n(15231),l=n(70222),h=n(65151),u=n(97127),c=n(54438);let d=(()=>
717{class r{constructor(p,m,s,o){this.http=p,this.utilityService=m,this.splunkService=s,this.localization=o,this.BASE_PATH_V2="/:locale/:brand/:platform/v2",this.BASE_PATH_V3="/:locale/:brand/:platform/v3",this.language="en",this.BASE_PATH_V2=this.utilityService.getBasePath("v2"),this.BASE_PATH_V3=this.utilityService.getBasePath("v3"),this.language=this.localization.detect()?.language}handleHttpError(p,m,s,o){const M=this.splunkService.extractTelemetyAnalyticsError(p,p?.error?.message||p?.message||p?.statusText||s,m,o),x=p?.error?.errors?.[0]?.errorCode;return(0,e.$)(()=>({...M,...x&&{backendErrorCode:x}}))}updateEnriched(p,m){const s=`${this.BASE_PATH_V3}/guestAccounts`,o={...p,header:{brand:y.vN,channel:y.$E,locale:this.localization.getLocaleCode()},accountId:m};return this.http.put(`${y.f0+s}`,o,v.zy).pipe((0,a.W)(f=>this.handleHttpError(f,"CP-0043_CORE_SERVICES-UPDATE_ENRICHED_FAILED","Update enriched failed","unexpected error account service - update enriched")))}getEnriched(p){return this.http.get(""+(y.f0+`${this.BASE_PATH_V3}/guestAccounts/${p}`),v.zy).pipe((0,a.W)(s=>this.handleHttpError(s,"CP-0040_CORE_SERVICES-GET_ENRICHED_FAILED","Get enriched failed","unexpected error account service - get enriched")))}deleteAccount(p){const m=`${this.BASE_PATH_V3}/guestAccounts`,s={...v.zy,headers:v.zy.headers.set("Account-Id",p)};return this.http.delete(y.f0+m,s).pipe((0,a.W)(o=>this.handleHttpError(o,"CP-1810-SAVED_GUESTS_DELETE_GUEST_INVALID_INPUT_FOUND","Delete account failed","unexpected error account service - delete account")))}validate(p,m="email"){return this.http.post(""+(y.f0+`${this.BASE_PATH_V3}/guestAccounts/validation`),{[m]:p},v.zy).pipe((0,a.W)(f=>this.handleHttpError(f,"CP-0041_CORE_SERVICES-CREATE_ACCOUNT_FAILED","Validation failed","unexpected error account service - validation")))}getCobrandInfo(p){const s=`${this.utilityService.getBasePath("v1")}/loyalty/cobrand/info`,o={...v.zy,headers:v.zy.headers.set("Account-Id",p)};return this.http.get(`${y.f0+s}`,o).pipe((0,a.W)(f=>this.handleHttpError(f,"CP-0332-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_PAST_BOOKINGS_BASE_LOYALTY","Get cobrand info failed","unexpected error account service - get cobrand info")))}getLoyaltyTiersContent(p){return this.http.get(""+(y.qH.API_PATH+`/${this.language}/${p}/internal/v1/content-services/content/loyalty-tiers`),{headers:{AppKey:y.qH.AppKey}}).pipe((0,a.W)(s=>{const o=this.splunkService.initializeContext("error",s);return this.splunkService.errorByLookUp("CP-0021_CORE_SERVICES-AGREEMENT_CONTENT_VALIDATION_FAILED",{context:o}),(0,e.$)(()=>s)}))}getProgramTiersContent(p){return this.http.get(""+(y.qH.API_PATH+`/${this.language}/${p.brand}/web/v2/content-services/loyalty-hub`),{params:{programTier:p.programTier},headers:{AppKey:y.qH.AppKey}}).pipe((0,a.W)(s=>{const o=this.splunkService.initializeContext("error",s);return this.splunkService.errorByLookUp("CP-0021_CORE_SERVICES-AGREEMENT_CONTENT_VALIDATION_FAILED",{context:o}),(0,C.of)(s)}))}getKoddiAds(p){const{sessionCookie:m,pageId:s}=p,f=`${this.utilityService.getBasePath("v1")}/content-services/retail-media/advertisements`,M={...v.zy,params:v.zy.params.set("sessionCookie",m).set("pageId",s)};return this.http.get(`${y.f0+f}`,M).pipe((0,a.W)(x=>this.handleHttpError(x,"CP-2000-RETAIL_MEDIA_GET_KODDI_ADS_FAILED","Get Koddi ads failed","unexpected error account service - get koddi ads")))}getAvatar(){return this.http.get(""+(y.f0+`${this.BASE_PATH_V2}/guestAccounts/profiles/avatar`),v.zy).pipe((0,a.W)(m=>{const s=this.utilityService.extractServiceError(m);return this.splunkService.initializeManyContext(["error","message"],[s,"unexpected error account service - get avatar"]),(0,C.of)(m)}))}validateForgotPasswordToken(p){return this.http.post(""+(y.f0+`${this.BASE_PATH_V3}/guestAccounts/password/token/validate`),p,v.zy).pipe((0,a.W)(s=>this.handleHttpError(s,"CP-0092_CORE_SERVICES-UPDATE_PASSWORD_BY_TOKEN_FAILED","Token validation failed","unexpected error account service - validate forgot password token")))}static{this.\u0275fac=function(m){return new(m||r)(c.KVO(t.lU),c.KVO(l.Q),c.KVO(h.P),c.KVO(u.P))}}static{this.\u0275prov=c.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},15633:(J,U,n)=>{"use strict";n.d(U,{U:()=>C});var t=n(54438),e=n(59640),a=n(65177);let C=(()=>{class y{constructor(){this.store=(0,t.WQX)(e.il)}trackInteraction(l){this.store.dispatch(a.A.trackInteraction({payload:l}))}trackPageView(l){this.store.dispatch(a.A.trackPageView({payload:l}))}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275prov=t.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},89241:(J,U,n)=>{"use strict";n.d(U,{G:()=>e,o:()=>t});const t={PANEL_TYPE:"web:MCnotifications",LOCAL_STORAGE_KEY_CRUISE_PLANNER:"ga/cruisePlannerOrigin"},e="no value"},86699:(J,U,n)=>{"use strict";n.d(U,{c:()=>w});var t=n(10467),e=n(54438),a=n(21626),C=n(59640),y=n(5964),v=n(84572),l=n(96697),h=n(99437),u=n(983),c=n(7673),d=n(66693),r=n(45312),O=n(97127),p=n(85259),m=n(70222),s=n(70135),o=n(69029),f=n(10867),M=n(41799),x=n(10319),b=n(89241),F=n(82032),G=n(65151);let w=(()=>{class S{constructor(){this.localization=(0,e.WQX)(O.P),this.loyaltyService=(0,e.WQX)(p.J),this.utilityService=(0,e.WQX)(m.Q),this.tripRepositoryService=(0,e.WQX)(s.I),this.userAnalyticsService=(0,e.WQX)(f.z),this.tealiumService=(0,e.WQX)(M.M),this.httpClient=(0,e.WQX)(a.Qq),this.splunkService=(0,e.WQX)(G.P),this.accountFacade=(0,e.WQX)(o.P),this.tripsRepository=(0,e.WQX)(s.I),this.store=(0,e.WQX)(C.il),this.voyagesLoaded$=(0,x.wE)(this.store),this.accountDataWithCobrand$=this.accountFacade.getAccountData$.pipe((0,y.p)(E=>!E?.cobrandCardInfo?.activeCardHolder||!0===E?.cobrandProgram?.loaded)),this.platform="web",this.currency=d.Sj.USD,this.loginStatus=d.eR.LOGGED_IN,this.defaultAppName="ga",this.appPrefix="guestaccount:",this.eventType="interaction",this.brand=r.qt,this.initGlobalAnalyticsData()}initGlobalAnalyticsData(){(0,v.z)([this.accountDataWithCobrand$.pipe((0,y.p)(E=>!(!E?.accountId&&!E?.vdsId))),this.voyagesLoaded$]).pipe((0,l.s)(1),(0,h.W)(E=>(this.splunkService.trackServiceError("CP-0094_SERVICE-ERROR",{context:E,source:"initGlobalAnalyticsData"}),u.w))).subscribe(([E])=>{const L=this.tripsRepository.getFirstUpcomingTrip();this.accountData=E,this.firstTripData=L,this.accountGlobalData=this.getAccountGlobalData(E),this.tripsGlobalData=this.getTripsGlobalData(L),this.userAnalyticsService.accountState={data:E,loading:!1,loaded:!0,error:null},this.userAnalyticsService.loggedInState=!0})}buildCardholderid(E,L,D){const k=E?.profile,X=E?.cards;if(!k?.primaryPan||!X?.length)return"null:nonmember:null";const W=X.find(H=>H.pan===k.primaryPan);let K;switch(W?.programCode){case F._l.ROYALONE:K="royalone";break;case F._l.ROYALONEPLUS:K="royaloneplus";break;default:return"null:nonmember:null"}return`${!0===(L??k?.activeCardHolder)?"activeCardholder":"null"}:${K}:${D||"null"}`}getCardholderstatus(E,L){if(!E)return"null:null";switch(`${E.activeCardHolder??!1}:${E.coBrandPrimaryAccountNumber?"has":"no"}`){case"true:has":return`activeCardholder:${L}`;case"true:no":return`previousCardholder:${L}`;case"false:has":case"false:no":return`closeCardpending:${L}`;default:return"closeCardpending:null"}}getCountryAlpha3(){return this.localization.getCountryAlpha3()}getAccountGlobalData(E){const{language:L}=this.localization.detect(),D=this.getCountryAlpha3(),k=this.loyaltyService.getUserProfile(E),X=this.loyaltyService.resolveLinkingStatus(E.loyaltyInformation),W=this.loyaltyService.linkingIsSuceeded(X),K=`ga-app-version:${this.utilityService.getLaneColor()}`,T=E?.cobrandCardInfo,Y=this.getCardholderstatus(T,E.accountId);return{appName:this.defaultAppName,brand:r.mx.brand,consumerID:E.consumerId,cobrandcardMember:E?.cobrandCardInfo?.activeCardHolder?"iscardmember":"notcardmember",cardholderid:this.buildCardholderid(E?.cobrandProgram?.raw,E?.cobrandCardInfo?.activeCardHolder,E.accountId||E.vdsId),cardholderstatus:Y,country:D,currency:this.currency,language:L,loginStatus:this.loginStatus,loyaltyLinked:W?"Yes":"No",loyaltyNum:k.loyalty.number,loyaltyPoints:k.loyalty.points,loyaltyTier:k.loyalty.tier?.name,platform:this.platform,scVersion:K,VDSID:E.vdsId}}getTripsGlobalData(E){if(!E)return{checkedIn:"",cruiseBookingID:"",cruiseLength:void 0,daysToCruise:void 0,departureDate:"",departurePort:"",destination:"",itinerary:"",passengerID:"",shipCode:"",shipName:"",voyageID:""};const L=E.voyage,D=E.bookings[0],k=L.sailDate,X=L.itinerary?.portInfo?.length>0?L.itinerary.portInfo:null;return{checkedIn:D.isCheckedIn?"Yes":"No",cruiseBookingID:D.bookingId,cruiseLength:L.duration,daysToCruise:this.tripRepositoryService.getDaysUntilDeparture(k),departureDate:k,departurePort:X[0].title,de
717stination:X?.[1]?.title,itinerary:L.voyageCode,passengerID:D.passengerId,shipCode:L.shipCode,shipName:L.shipName,voyageID:this.tripRepositoryService.getVoyageKey(L)}}updateChannelPage(E){this.channelPage=E?.channelPage?E.channelPage:null}applyPagePrefix(E,L){let D=this.appPrefix;return L[E]?D+=`${L[E]}`:this.channelPage&&(D+=`${this.channelPage}`),{...L,content:{...L.content,[E]:D}}}applyChannel(E){return this.updateChannelPage(E),this.applyPagePrefix("channel",E)}applyPageName(E){return this.applyPagePrefix("pageName",E)}applyCurrentPage(E){return this.applyPagePrefix("currentPage",E)}applyInteraction(E){return{...E,content:{...E.content,eventType:this.eventType,interaction:`${this.appPrefix}${E.interaction}`}}}applyBaseUDO(E,L,D){return{...E,content:{...E.content,...this.getAccountGlobalData(L),...this.getTripsGlobalData(D)}}}getMessageCenterAnalyticsData(){const{language:E}=this.localization.detect();return{brand:r.mx.brand,country:this.getCountryAlpha3(),language:E,loginStatus:this.loginStatus,appName:this.defaultAppName,scVersion:this.utilityService.getScVersionForAnalytics()?.scVersion}}trackClickEvent(E){var L=this;return(0,t.A)(function*(){try{const D=L.userAnalyticsService.userData,k={brand:r.mx.brand,country:L.getCountryAlpha3(),language:(L.localization.readLanguageFromCookie()||"en").toLowerCase(),loginStatus:L.loginStatus,loyaltyNum:D?.loyaltyNum,platform:r.mx.platform,consumerID:D?.consumerID||L.accountGlobalData?.consumerID,vdsID:D?.VDSID||L.accountGlobalData?.VDSID},X={...E,...k};return yield L.tealiumService.link({...L.utilityService.removeInvalidAttributesFromObj(X),...L.utilityService.getScVersionForAnalytics(),...L.getGlobalAnalyticsData()})}catch(D){throw new Error(`Failed to log click event: ${JSON.stringify(E)} ${D}`)}})()}trackPageview(E){var L=this;return(0,t.A)(function*(){try{const D=L.currentPageName=E.pageName?.toLowerCase().replace(/\s+/g,"")??"",k=L.currentSiteSection=E.siteSection?.toLowerCase()??"",X={country:L.getCountryAlpha3(),language:(L.localization.readLanguageFromCookie()||"en").toLowerCase()},W=E.currentBrandName?r.wJ[E.currentBrandName]:r.mx.brand,K=L.userAnalyticsService.userData,T=Object.assign({},r.mx,K,{loginStatus:L.loginStatus,VDSID:K?.VDSID||L.accountGlobalData?.VDSID},X,E,{pageName:D,siteSection:k},{brand:W});return yield L.tealiumService.view({...L.utilityService.removeInvalidAttributesFromObj(T),...L.utilityService.getScVersionForAnalytics(),...L.getGlobalAnalyticsData()})}catch(D){throw new Error(`Failed to log pageview: ${E} ${D}`)}})()}buildKoddiAnalyticsPayload(E,L,D,k){const X=Ot=>Ot?.trim()||b.G,{assets:W,advertiserId:K,campaignId:T,productCode:Y,pageId:H,adGroupName:et,route:q}=E,j=et?.toLowerCase().includes("banner")?F.pL.BANNER:F.pL.WIDGET,$=Y?.trim()||"Non-CoBrand",z=X(W?.adSize),ot=X(q?.trim()||W?.actionUrl),nt=j===F.pL.WIDGET?`retailmedia: ${X(W?.bonusPointsTitle)}`:"retailmedia: CoBrand Banner",it=j===F.pL.WIDGET?`Loyalty ads ${$}: ${X(W?.offerTitle)} - ${z}`:`Loyalty ads ${$}: Limited Time Offer Banner - Banner:${z}`;return{appName:"ga",interaction:`dashboard:${L}`,currentPage:D,siteSection:this.currentSiteSection,channel:k,content:{eventType:"interaction",action:nt,activityType:"retail media: loyalty card non member",interactionType:"interaction:buttontap:launch",pageLink:X(W?.buttonText),actionId:`${X(this.brand)}:${$}:${X(K)}:${ot}:${X(H)}`,internalCampaign:it,productCategory:["retailmedia"],productId:[X(T)]}}}updateKoddiAnalytics(E,L){this.httpClient.get(E,{responseType:"text"}).pipe((0,h.W)(D=>(this.splunkService.trackServiceError("CP-2001-RETAIL_MEDIA_KODDI_BEACON_FAILED",{trackingUrl:E,interactionType:L,error:D,errorMessage:D?.message||`Koddi beacon request failed for interaction type: ${L}`,statusCode:D?.status}),(0,c.of)(null)))).subscribe()}loadAccountAndTripData(){(0,v.z)([this.accountDataWithCobrand$,this.voyagesLoaded$]).pipe((0,l.s)(1)).subscribe(([E])=>{const L=this.tripsRepository.getFirstUpcomingTrip();this.accountData=E,this.firstTripData=L,this.accountGlobalData=this.getAccountGlobalData(E),this.tripsGlobalData=this.getTripsGlobalData(L)})}getGlobalAnalyticsData(){return{...this.accountGlobalData,...this.tripsGlobalData}}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},10867:(J,U,n)=>{"use strict";n.d(U,{z:()=>y});var t=n(85259),e=n(54438);const a="Anonymous";let y=(()=>{class v{constructor(h){this.loyaltyRepo=h,this.analyticsData={consumerID:"",shopperID:"",loyaltyNum:"",loyaltyTier:"",loyaltyPoints:"",VDSID:"",loginStatus:a,countryOfResidence:""}}get userData(){return this.analyticsData}
717set accountState(h){if(h?.data?.loyaltyInformation){const u=this.loyaltyRepo.getUserNumber(h.data.loyaltyInformation)||"",c=this.loyaltyRepo.getLoyaltyTier(h.data.loyaltyInformation),d=this.loyaltyRepo.getLoyaltyRelationshipPoints(h.data.loyaltyInformation)||0;this.analyticsData.loyaltyNum=u,this.analyticsData.loyaltyTier=c?c.name:"",this.analyticsData.loyaltyPoints=u?d:""}this.analyticsData.consumerID=h?.data?.consumerId?h?.data?.consumerId.toString():"",this.analyticsData.shopperID=h.shopperId||"",this.analyticsData.countryOfResidence=h?.data?.marketingCountry||"",this.analyticsData.VDSID=h?.data?.vdsId||""}set loggedInState(h){this.analyticsData.loginStatus=h?"Logged In":a}static{this.\u0275fac=function(u){return new(u||v)(e.KVO(t.J))}}static{this.\u0275prov=e.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},54441:(J,U,n)=>{"use strict";n.d(U,{u:()=>G});var t=n(54438),e=n(69179),a=n(77969),C=n(95726),y=n(69029),v=n(83458),l=n(45312),h=n(21626),u=n(70222),c=n(65151),d=n(27865),r=n(99437),O=n(7673),p=n(22806),m=n(27468),s=n(70980),o=n(983),f=n(59640),M=n(888),x=n(47592),b=n(30803),F=n(35839);let G=(()=>{class w{constructor(V,E,L,D,k,X,W,K,T){this.sessionService=V,this.sessionStorageService=E,this.localStorageService=L,this.accountFacadeService=D,this.utilService=k,this.splunkService=X,this.urls=W,this.router=K,this.cookies=T,this.http=(0,t.WQX)(v.lU),this.store=(0,t.WQX)(f.il)}login(V){const E=V?.accessToken,L=V?.vdsId,D=this.sessionStorageService.get("last-page-visited"),k=this.getRedirectToQueryParam(),W=null!==k&&x.P.includes(k)?`/${k}`:null,T=(null!==W&&null!==D&&(D===W||D.startsWith(W+"?")||D.startsWith(W+"#")||D.startsWith(W+"/"))?D:W)??D??this.buildFallbackRedirect();this.sessionStorageService.remove("last-page-visited"),this.sessionService.setAuthenticationCookies(E),this.accountFacadeService.fetchEnriched({vdsId:L,logoutIfFail:!0,force:!0}),this.accountFacadeService.setLoyaltyInformationcookie(T)}getRedirectToQueryParam(){try{return this.router.parseUrl(this.router.url).queryParams.redirectTo??null}catch{return null}}logout(V){const D=V||this.urls.list.LOGOUT_DESTINATION,k=this.sessionService.getAccessToken(),X=this.cookies.getCookie(l.ym.feSso),W=(H,et)=>{const q=this.utilService.telemetryErrorObj(H),j=this.splunkService.initializeManyContext(["error","message"],[q,et]);this.splunkService.errorByLookUp("CP-0063_CORE_SERVICES-LOGOUT_FAILED",{context:j})},K=this.http.post("/auth/oauth2/token/revoke",null,{headers:this.generatePostHeaders({Authorization:`Basic ${this.generateAuthorization(l.ML.urlConfig.clientId,l.ML.urlConfig.authId)}`}),params:(new h.Nl).append("token",k).append("client_id",l.ML.urlConfig.clientId)}).pipe((0,r.W)(H=>(W(H,"unexpected error auth service - logout"),(0,O.of)(null)))),T=X?(0,p.H)(fetch("/auth/json/sessions?_action=logout",{method:"POST",credentials:"omit",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest","Accept-API-Version":"resource=4.0",rcclssocookie:X}}).then(H=>{if(!H.ok)throw new Error(`Session logout failed with status ${H.status}`);return H.json()})).pipe((0,r.W)(H=>(W(H,"Session invalidation failed during logout"),(0,O.of)(null)))):(0,O.of)(null);/^https?:\/\//.test(D)?(0,m.p)([K,T]).pipe((0,s.j)(()=>{this.clearAllStorageAndCookies(),this.store.dispatch(M.X.resetAccountData()),this.splunkService.flush(),this.redirectToUrl(D)})).subscribe():(this.clearAllStorageAndCookies(),this.store.dispatch(M.X.resetAccountData()),this.splunkService.flush(),this.redirectToUrl(D),(0,m.p)([K,T]).pipe((0,r.W)(()=>o.w),(0,s.j)(()=>this.splunkService.flush())).subscribe())}clearAllStorageAndCookies(){this.sessionService.clearAllCookies(),this.localStorageService.clear(),this.sessionStorageService.clear()}buildFallbackRedirect(){const V=window.location.search;return V?`/${V}`:"/"}redirectToUrl(V){if(V.startsWith("http"))window.location.replace(V);else{const E=this.parseQueryParameters(V),D=/^([^?]*)/g.exec(V)[1],k=Object.keys(E).length>0?"?"+new URLSearchParams(E).toString():"";this.router.navigateByUrl(D+k,{replaceUrl:!0})}}parseQueryParameters(V){const E={},L=V.split("?")[1];return L&&L.split("&").forEach(D=>{const[k,X]=D.split("=");E[decodeURIComponent(k)]=decodeURIComponent(X||"")}),E}generateAuthorization(V,E){const D=(new TextEncoder).encode(`${V}:${E}`);return window.btoa(String.fromCharCode(...Array.from(new Uint8Array(D))))}authorize(V){const L=`/auth/oauth2/authorize?${this.generateAuthorizeUrl({state:V,redirect_uri:l.ML.urlConfig.redirectUri})}`;window.location.href=L}generatePostHeaders(V){return Object.assign({},V,{"X-Requested-With":"XMLHttpRequest"})}generateAuthorizeUrl(V={}){const E=this.sessionService.createSessionNonce(16),L=this.sessionService.createStateNonce(16),D={response_type:l.ML.urlConfig.responseType,scope:l.ML.urlConfig.scope,nonce:E,client_id:l.ML.urlConfig.clientId,redirect_uri:l.ML.urlConfig.redirectUri,state:"",...V};return Object.hasOwn(V,"redirect_uri")&&(D.redirect_uri=V.redirect_uri),D.redirect_uri.startsWith("http")||(D.redirect_uri=location.origin+D.redirect_uri),Object.hasOwn(V,"state")&&(D.state=`${L}-${V.state}`),Object.keys(D).map(k=>`${k}=${encodeURIComponent(D[k])}`).join("&")}static{this.\u0275fac=function(E){return new(E||w)(t.KVO(e.Q),t.KVO(a.R),t.KVO(C.s),t.KVO(y.P),t.KVO
717(u.Q),t.KVO(c.P),t.KVO(d.a),t.KVO(b.Ix),t.KVO(F.r))}}static{this.\u0275prov=t.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},37941:(J,U,n)=>{"use strict";n.d(U,{Z:()=>C});var t=n(54438),e=n(59640),a=n(85014);let C=(()=>{class y{constructor(){this.store=(0,t.WQX)(e.il),this.state$=this.store.select(a.nV),this.autoLinked$=this.store.select(a.JR),this.linkBookingManual$=this.store.select(a.gK),this.linkBooking$=this.store.select(a.Os),this.autoLinked=this.store.selectSignal(a.JR),this.bookings=this.store.selectSignal(a.Zq),this.bookingLoaded=this.store.selectSignal(a.$x),this.bookingLoading=this.store.selectSignal(a.mO),this.bookingError=this.store.selectSignal(a.QW),this.hasBookings=this.store.selectSignal(a.rO),this.bookingLinkstatus=this.store.selectSignal(a.G1),this.bookingState=this.store.selectSignal(a.nV)}autoLink(l){this.store.dispatch(a.zK.autoLink({payload:l}))}fetchProfileBookings(l,h=!1){this.store.dispatch(a.zK.fetchProfileBookings({payload:l,force:h}))}getBookingById(l){const h=(0,a.Qr)(l);return this.store.selectSignal(h)}linkBookingManual(l){this.store.dispatch(a.zK.linkBookingManual({payload:l}))}manualLinkSearch(l){this.store.dispatch(a.zK.linkBooking({payload:l}))}fetchCheckInInfo(l){this.store.dispatch(a.zK.fetchCheckInInfo(l))}getFolioInfoByBookingId(l){const{dataExists:h,shipSupported:u}=this.bookingState()?.past?.bookings?.find(c=>c?.bookingId===l)?.lookup||{};return!(!h||!u)}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275prov=t.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},61829:(J,U,n)=>{"use strict";n.d(U,{I:()=>H});var t=n(59640),e=n(7673),a=n(84572),C=n(18810),y=n(5964),v=n(96354),l=n(25558),h=n(28492),u=n(96697),c=n(70980),d=n(99437),r=n(70222),O=n(97586);const f="YYYYMMDD";var b=n(38556),F=n(85057),G=n(65813),w=n(97127),S=n(27865),V=n(93259),E=n(21626),L=n(83458),D=n(35031),k=n(12341),X=n(65151),W=n(45312),K=n(31369),T=n(54438),Y=n(68018);let H=(()=>{class et{constructor(j,$,z,ot,nt,it,Ot,Lt,Ft,Et){this.store=j,this.translate=$,this.utility=z,this.urls=ot,this.datesService=nt,this.localizeService=it,this.myAccountService=Ot,this.runtime=Lt,this.http=Ft,this.splunkService=Et,this.statusCodesMap={BK:{route:"",label:this.translate.instant("RESERVATIONS.UPCOMING"),id:"upcoming",code:"BK"},OF:{route:"/on-hold",label:this.translate.instant("RESERVATIONS.ON_HOLD"),id:"on-hold",code:"OF"},WL:{route:"/on-hold",label:this.translate.instant("RESERVATIONS.ON_HOLD"),id:"on-hold",code:"WL"}},this.bookings$=this.store.pipe((0,t.Lt)(D.y),(0,y.p)(Tt=>(0,D.uG)(Tt)||(0,D.SW)(Tt)))}mergeSailings(j,$){let z=[];return j&&$?z=[...j,...$.filter(ot=>-1===j.findIndex(it=>it.bookingId===ot.bookingId))]:j?z=j:$&&(z=$),z}getPastBookingFilter(j){return!(!(j.shipName||j.sailingDate||j.itineraryDescription)||"Conversion"===j.transactionSubType)}verifyAndSetBookingShipName(j,$){if(!("shipName"in j)||!j.shipName){const z=this.utility.getShipName(j,$);return{...j,shipName:z.length>0?z[0]:""}}return j}pastBookingStructure(j,$){return[j.bookingId,{bookingId:j.bookingId,passengerId:j.passengerId,bookingStatus:j.status,sailDate:j.sailingDate,endDate:j.endDate,shipCode:j.shipCode,shipName:j.shipName,brand:$,description:j.itineraryDescription,points:j.points,numberOfNights:parseInt(j&&j.itineraryNightsQuantity,10),voyageImage:j.voyageImage,linkFlow:j.linkFlow,deckNumber:j.deckNumber,amendToken:j.amendToken}]}pastBookingSortedByDate(j,$){const z=["sailDate","numberOfNights"];let ot,nt;return $=$[1],ot=(j=j[1])&&j.sailDate&&O(j.sailDate,f),nt=$&&$.sailDate&&O($.sailDate,f),j&&$&&z.every(it=>j[it])&&z.every(it=>$[it])&&(ot=O(j.sailDate,f).add(j.numberOfNights,"days"),nt=O($.sailDate,f).add($.numberOfNights,"days")),nt&&nt.isValid()?nt.diff(ot):2}pastBookingDTO(j){return{bookingId:j?.bookingId||"",bookingStatus:j?.bookingStatus||null,brand:j?.brand||"",description:j?.description||"",endDate:j?.endDate||"",numberOfNights:j?.numberOfNights||null,passengerId:j?.passengerId||"",points:j?.points||null,sailDate:j?.sailDate||"",shipCode:j?.shipCode||"",shipName:j?.shipName||"",lookup:j?.lookup||null,voyageImage:j.voyageImage||""}}get bookingStatuses(){return Object.values(this.statusCodesMap).filter((j,$,z)=>$===z.findIndex(nt=>nt.id===j.id))}getVoyageForBooking(j){return this.bookings$.pipe((0,v.T)($=>(0,D.yW)($,j)),(0,y.p)($=>!!$),(0,v.T)($=>this.getVoyageKey($)),(0,l.n)($=>this.voyages$.pipe((0,v.T)(z=>(0,F.KU)(z,$)),(0,y.p)(z=>!!z))))}getVoyageKey(j){if(!j||!j.sailDate||!j.shipCode)return null;const $=j.sailDate.replace(/[-_]/g,"");return`${j.shipCode}-${$}`}getVoyageForPastBooking(j){return this.bookings$.pipe((0,v.T)($=>(0,D.Ul)($,j)),(0,y.p)($=>!!$),(0,v.T)($=>this.getVoyageKey($)),(0,l.n)($=>this.voyages$.pipe((0,v.T)(z=>(0,F.KU)(z,$)),(0,y.p)(z=>!!z))))}getBookingsForVoyage(j){return this.bookings$.pipe((0,h.j)($=>!(0,D.fM)($)),(0,v.T)($=>(0,D.e8)($).filter(z=>j===this.getVoyageKey(z))))}isActiveOrBooked(j){return j&&[b.$e.Active,b.$e.Booked].includes(j.bookingStatus)}manageReservationUrl(j){return`${this.urls.get("MANAGE_RESERVATION")}?bookingid=${j}`}isBookingEnabled(j){return this.bookings$.pipe((0,v.T)($=>(0,D.yW)($,j)),(0,y.p)($=>!!$),(0,l.n)($=>this.voyages$.pipe((0,v.T)(z=>this.hasVoyageData($,z)))))}hasVoyageData(j,$){const z=this.getVoyageKey(j),ot=(0,F.KU)($,z);return ot&&!!ot.voyageCode}isGroupBooking(j){return"G"===j.bookingType}getPastBookings(){return this.bookings$.pipe((0,v.T)(j=>(0,D.Ng)(j).map($=>({...$,linkFlow:$.linkFlow??"",deckNumber:$.deckNumber??"",amendToken:$.amendToken??""}))))}getBookingStatus(j){return Object.values(this.statusCodesMap).filter($=>$.id===j)}isBrandBooking(j,$){return"C"!==$||this.isCelebrityBooking(j.shipName)}isCelebrityBooking(j){return!!j&&j.toLocaleLowerCase().includes("celebrity")}isRoyalBooking(j){return!this.isCelebrityBooking(j)}getBookingsForStatus(j){return this.bookings$.pipe((0,v.T)($=>(0,D.e8)($).filter(z=>j.find(ot=>z.bookingStatus===ot))))}upcomingBookingWithStatus(j){return this.getBookingsForStatus([j]).pipe((0,l.n)($=>{if(0===$?.length)return(0,e.of)(null);const ot=$.sort((nt,it)=>O(nt.sailDate,this.serverFormatDate).diff(O(it.sailDate,this.serverFormatDate))).pop();return(0,a.z)([(0,e.of)(ot),this.getVoyageForBooking(ot.bookingId)]).pipe((0,v.T)(([nt,it])=>({booking:nt,voyage:it})))}))}getBookingsLinkState(){return this.bookings$.pipe((0,v.T)(j=>
717(0,D.y3)(j)))}getPreferredBookingData(){let j;return this.bookings$.pipe((0,v.T)($=>(0,D.$J)($)),(0,u.s)(1)).subscribe($=>j=$),j}setServerFormatDate(){this.serverFormatDate=this.datesService.getServerFormatDate()}setOLCIFormatDate(){this.OLCIFormatDate=this.datesService.getOLCIFormatDate()}isPaymentAllowed(j,$){return!this.isBrazilAndRoyal($)&&(!(!this.isTravelBoxBooking(j,$)&&!this.isCelebrityAndHasDaysUntilDeparture(j))||!this.isGroupBooking(j)&&this.isWebOrSalesChannel(j)&&this.daysUntilDeparture(j.sailDate)>=1)}isBrazilAndRoyal(j){return"BR"===j&&"royal"===W.qt}isTravelBoxBooking(j,$){return j.bookingChannel===b.wJ.TravelBox&&["GB","UK","US","AU"].includes($)&&["royal"].includes(W.qt)}isCelebrityAndHasDaysUntilDeparture(j){return"celebrity"===W.qt&&this.daysUntilDeparture(j.sailDate)>=1}isGroupOrTravelAgentChannel(j){return!!j.bookingChannel&&-1!==b.Hw.TravelAgentsOrGroup.indexOf(j.bookingChannel.trim())}isWebOrSalesChannel(j){return!!j.bookingChannel&&-1!==b.Hw.WebOrSales.indexOf(j.bookingChannel.trim())}hasChannels(j,$){const z=j.bookingChannel;if(!z)return!1;const ot=Object.keys(b.wJ).map(it=>b.wJ[it]);return $.filter(it=>-1!==ot.indexOf(it)).map(it=>it===z).reduce((it,Ot)=>it||Ot,!1)}daysUntilDeparture(j){const $=O(),z=O(j,this.serverFormatDate),ot=Math.round(z.diff($.startOf("day"),"days",!0));return Math.min(Math.max(ot,-1))}bookingsPaymentUrl(j){this.setServerFormatDate(),this.setOLCIFormatDate();const{bookingId:$,lastName:z,sailDate:ot,shipCode:nt}=j,it=this.datesService.parseDate({date:ot,format:this.OLCIFormatDate,entryFormat:this.serverFormatDate});return W.qt?.toLowerCase()===K.rI.celebrity?this.urls.get("PAYMENT",{queryParams:{bid:$,sdt:it,scd:nt,lnm:z,gic:!0}}):`${this.urls.list?.PAYMENT}?token=${j.amendToken}`}getEdocsForBooking(j,$){return this.bookings$.pipe((0,v.T)(z=>(0,D.ec)(z,j)),(0,y.p)(z=>null!=z),(0,v.T)(z=>z?.filter(ot=>ot?.Type===$)))}isFetchingEdocs(j){return this.bookings$.pipe((0,v.T)($=>(0,D.sj)($,j)))}isEdocLoaded(j){return this.bookings$.pipe((0,v.T)($=>(0,D.x8)($,j)))}getBookingsForVoyageList(j){return this.bookings$.pipe((0,h.j)($=>!(0,D.fM)($)),(0,v.T)($=>(0,D.e8)($).filter(z=>j.find(ot=>ot===this.getVoyageKey(z)))))}shouldShowManageReservationCTA(j){const $=W.qt.toLowerCase(),z=this.localizeService.isPMC(),ot=this.myAccountService.isOnUpcomingCruisesPage(),nt=["I","G"].includes(j.bookingType);return"royal"===$?this.manageReservationEncrypt&&nt&&(z||ot):"celebrity"===$&&nt&&(z||ot)}get manageReservationEncrypt(){return this.runtime?.webConfig?.ga?.manageReservationEncrypt||!1}redirectToManageReservation(j,$,z,ot){if(this.manageReservationEncrypt)z(!0),this.manageReservationUrlEncrypt(j).pipe((0,u.s)(1),(0,c.j)(()=>z(!1))).subscribe({next:nt=>{ot&&ot(!1),window.location.href=nt},error:()=>{ot&&ot(!0)}});else{const nt="royal"===$.toLocaleLowerCase()?this.manageReservationUrl(j.bookingId):this.bookingsPaymentUrl(j);if(nt)window.location.href=nt;else{const Ot=this.splunkService.initializeContext("bookingId",j.bookingId?j.bookingId:"no bookingID available");this.splunkService.errorByLookUp("CP-0321-BOOKING_COMMON-NO_PAYMENT_URL_AVAILABLE_FOR_BOOKING_ID",{context:Ot})}}}manageReservationUrlEncrypt(j){return this.getEncryptCipher(j).pipe((0,v.T)($=>{if($)return`${this.urls.get("MANAGE_RESERVATION_REDIRECT")}?cipher=${$}`;throw new Error("Token is empty or not available")}),(0,d.W)($=>{const ot=this.splunkService.initializeContext("error",{bookingId:j.bookingId?j.bookingId:"no bookingID available",message:$.message,endpointUrl:$.url,statusText:$.statusText,status:$.status});return this.splunkService.errorByLookUp("CP-0096_CORE_SERVICES_MANAGE_BOOKINGS_ENCRYPT_FAILED",{context:ot}),(0,C.$)("Error occurred while generating the redirect URL")}))}getEncryptCipher(j){const $=this.localizeService.resolveCountry(),z=this.localizeService.getLocaleCode(),ot=3===$.length?$:this.localizeService.countryToISOAlpha3($),nt=this.urls.get("MANAGE_RESERVATION_ENCRYPT"),Ot={params:(new E.Nl).set("lastName",j.lastName).set("bookingId",j.bookingId).set("shipCode",j.shipCode).set("sailDate",this.datesService.formatDate(j.sailDate)).set("countryCode",ot).set("locale",z).set("lock","false"),responseType:"text"};return this.http.get(`${nt}`,Ot)}getPassengersCheckinStatus(j){return j&&j.passengers?j.passengers.map($=>$.onlineCheckinStatus):[]}static{this.\u0275fac=function($){return new($||et)(T.KVO(t.il),T.KVO(Y.c$),T.KVO(r.Q),T.KVO(S.a),T.KVO(V.f),T.KVO(w.P),T.KVO(k.j),T.KVO(G.s),T.KVO(L.lU),T.KVO(X.P))}}static{this.\u0275prov=T.jDH({token:et,factory:et.\u0275fac,providedIn:"root"})}}return et})()},35839:(J,U,n)=>{"use strict";n.d(U,{r:()=>l});var t=n(21413),e=n(40605),a=n(96354),C=n(5964),y=n(56977),v=n(54438);let l=(()=>{class h{constructor(){this.WWW_PREFIX="www"}setCookie(c,d,r){const O=this.getCookieDomain();let p=new Date,m=`${c}=${d};`;r?"number"==typeof r?(p=new Date,p.setTime(p.getTime()+1e3*r*60)):p=r:p=null,m+=`domain=${O};path=/;`,p&&(m+=`expires=${p.toUTCString()};`),"https:"===window.location.protocol&&(m+="secure;"),m+="SameSite=Strict;",document.cookie=m}getCookie(c,d=document.cookie){const r=c+"=",p=decodeURIComponent(d).split(";").filter(m=>m.trim().startsWith(r)).pop();return p?p.trim().substring(r.length):null}cookieExpireDate(){return new Date("1970-01-01T00:00:00Z").toUTCString()}
717removeCookie(c){const d=this.cookieExpireDate();this.getAllCookieDomains().forEach(O=>{document.cookie=`${c}=;expires=${d};max-age=0;path=/;domain=${O};`})}removeCookieRegardlessDomain(c){const d=this.cookieExpireDate();this.getCookie(c)&&(document.cookie=`${c}=;expires=${d};max-age=0;path=/;`)}getCookieDomain(){const c=window.location.hostname;return c.startsWith(this.WWW_PREFIX)?c.slice(3):c}onCookieChanged(c,d=1e3){return"cookieStore"in window?this.nativeCookieChangeEvent(c):this.customCookieChangeEvent(c,d)}nativeCookieChangeEvent(c){const d=new t.B;return cookieStore?.addEventListener("change",r=>{if(c){const O=r?.deleted?.some(m=>m?.name===c),p=r?.changed?.some(m=>m?.name===c);d.next({name:c,deleted:O,changed:p,data:r})}else d.next({name:c,deleted:null,changed:null,data:r})}),d}customCookieChangeEvent(c,d=1e3){const r=(0,e.Y)(d),O=new t.B,p=new t.B;let m=document.cookie;return r.pipe((0,a.T)(()=>m!==document.cookie),(0,C.p)(s=>s),(0,y.Q)(p)).subscribe(()=>{if(c){const s=this.getCookie(c),o=this.getCookie(c,m);s?o!==s&&O.next({name:c,deleted:!1,changed:!0,data:null}):O.next({name:c,deleted:!0,changed:!1,data:null})}else O.next({name:c,deleted:null,data:null});m=document.cookie}),O.subscribe({complete:()=>{p.next(),p.complete()}}),O}getAllCookieDomains(){const c=window.location.hostname,d=c.split(".").reduce((r,O,p,m)=>{if(p>0&&p<m.length-1){const s=this.isWwwCookieExists(r)?m.slice(p).join("."):"."+m.slice(p).join(".");r.push(s)}return r},[c]);return this.addMissingWwwCookieDomain(d,c)}addMissingWwwCookieDomain(c,d){return this.isWwwCookieExists(c)&&c.push(`${this.WWW_PREFIX}${d}`),c}isWwwCookieExists(c){return 0!==c.length&&0===c.filter(d=>d.includes(this.WWW_PREFIX,0)).length}static{this.\u0275fac=function(d){return new(d||h)}}static{this.\u0275prov=v.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()},84887:(J,U,n)=>{"use strict";n.d(U,{y:()=>r});var t=n(54438),e=n(83458),a=n(61594),C=n(88141),y=n(96354),v=n(99437),l=n(18810),h=n(45312),u=n(70222);let c=(()=>{class O{constructor(){this.http=(0,t.WQX)(e.lU),this.utilityService=(0,t.WQX)(u.Q),this.BASE_PATH_V2="/:locale/:brand/:platform/v2",this.COUNTRIES_CACHE_KEY="HTTP_CACHE_GENERICS_COUNTRIES",this.CASINO_CACHE_KEY="HTTP_CACHE_GENERICS_CASINO_APPROVED_COUNTRIES",this._countries=(0,t.vPA)([]),this._casinoApprovedCountries=(0,t.vPA)([]),this._countriesLoaded=(0,t.EWP)(()=>this._countries().length>0),this._casinoCountriesLoaded=(0,t.EWP)(()=>this._casinoApprovedCountries().length>0),this.BASE_PATH_V2=this.utilityService.getBasePath("v2")}loadCountries(){return this.http.get(""+(h.f0+`${this.BASE_PATH_V2}/generics/countries`),(0,e.nT)({key:this.COUNTRIES_CACHE_KEY})).pipe((0,a.$)(),(0,C.M)(({payload:s})=>this._countries.set(s.countries)),(0,y.T)(()=>this.countriesLoaded()),(0,v.W)(s=>(0,l.$)(()=>this.utilityService.extractServiceError(s))))}get countries(){return this._countries.asReadonly()}get countriesLoaded(){return this._countriesLoaded}get casinoApprovedCountries(){return this._casinoApprovedCountries.asReadonly()}get casinoCountriesLoaded(){return this._casinoCountriesLoaded}loadCasinoApprovedCountries(){return this.http.get(`${h.QY}/core/casino-approved-countries.json`,(0,e.nT)({key:this.CASINO_CACHE_KEY})).pipe((0,a.$)(),(0,C.M)(({payload:s})=>this._casinoApprovedCountries.set(s?.countries||[])),(0,y.T)(()=>this.casinoCountriesLoaded()),(0,v.W)(s=>(0,l.$)(()=>this.utilityService.extractServiceError(s))))}static{this.\u0275fac=function(s){return new(s||O)}}static{this.\u0275prov=t.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})();var d=n(74013);let r=(()=>{class O{constructor(){this.countriesService=(0,t.WQX)(c),this.windowRef=(0,t.WQX)(d.W),this.countries=this.countriesService.countries,this.casinoApprovedCountries=this.countriesService.casinoApprovedCountries,this.areCountriesLoaded=this.countriesService.countriesLoaded,this.areCasinoCountriesLoaded=this.countriesService.casinoCountriesLoaded,this.phoneCallingCodes=(0,t.EWP)(()=>this.countries().map(({callingCode:m,countryName:s,countryCode:o})=>({countryCode:o,countryName:s,callingCode:m,flagPath:`assets/images/flags/${o}.jpg`})).filter(m=>m.countryName))}loadCountries(){return this.countriesService.loadCountries()}loadCasinoApprovedCountries(){return this.countriesService.loadCasinoApprovedCountries()}static{this.\u0275fac=function(s){return new(s||O)}}static{this.\u0275prov=t.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},47378:(J,U,n)=>{"use strict";n.d(U,{t:()=>C});var t=n(66693),e=n(33002),a=n(54438);let C=(()=>{class y{constructor(){this.NAME_REGEX=/^([A-Za-z\s-.]+)$/,this.EXPIRATION_DATE_MONTH_REGEX=/^(0[1-9]|1[0-2])$/,this.EXPIRATION_DATE_MONTH_REGEX_WITHOUT_ZERO=/^([1-9]|1[012])$/,this.EXPIRATION_DATE_YEAR_REGEX=/[0-9]{4}$/,this.supportedCreditCardList=[{brand:"ax",brandCode:"AMERICAN_EXPRESS",cardFormatRegex:/^3[47][0-9]{5,}$/,cvvLength:4,description:"American Express",iinRange:/^3[47]/,cardLength:[15],spacingPatternRegex:/(\d{4})(\d{6}|)(\d{5}|)/,mask:`${"\u2022".repeat(4)} ${"\u2022".repeat(6)} ${"\u2022".repeat(1)}`},{brand:"dc",brandCode:"DINERS_CLUB",cardFormatRegex:/^3(?:0[0-5]|[68][0-9])[0-9]{11,13}
717$/,cvvLength:3,description:"Diners Club",iinRange:/^3(0[0-5]|[68])/,cardLength:[14,16],spacingPatternRegex:/(\d{4})(\d{6}|)(\d{4}|)/,mask:`${"\u2022".repeat(4)} ${"\u2022".repeat(6)} `},{brand:"ds",brandCode:"DISCOVER",cardFormatRegex:/^6(011|5|4[4-9]|2212[6-9]|221[3-9]|22[2-8]|229[01]|2292[0-5])[0-9]+$/,cvvLength:3,description:"Discover",iinRange:/^6(011|5|4[4-9]|2212[6-9]|221[3-9]|22[2-8]|229[01]|2292[0-5])/,cardLength:[16],spacingPatternRegex:/(\d{4})/,mask:`${"\u2022".repeat(4)} ${"\u2022".repeat(4)} ${"\u2022".repeat(4)} `},{brand:"jc",brandCode:"JAPAN_CREDIT",cardFormatRegex:/^(3088|3096|3112|3158|3337|2131|1800|35[0-9]{3})[0-9]{3,}$/,cvvLength:3,description:"Japan Credit Bureau",iinRange:/^(3088|3096|3112|3158|3337|2131|1800|35[0-9]{2,})/,cardLength:[16],spacingPatternRegex:/(\d{4})/,mask:`${"\u2022".repeat(4)} ${"\u2022".repeat(4)} ${"\u2022".repeat(4)} `},{brand:"mc",brandCode:"MASTERCARD",cardFormatRegex:/^5[1-5][0-9]{5,}$|^222[1-9][0-9]{3,}$|^22[3-9][0-9]{4,}$|^2[3-6][0-9]{5,}$|^27[01][0-9]{4,}$|^2720[0-9]{3,}$/,cvvLength:3,description:"Mastercard",iinRange:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[01]|2720)/,cardLength:[16],spacingPatternRegex:/(\d{4})/,mask:`${"\u2022".repeat(4)} ${"\u2022".repeat(4)} ${"\u2022".repeat(4)} `},{brand:"va",brandCode:"VISA",cardFormatRegex:/^4[0-9]{6,}$/,cvvLength:3,description:"Visa",iinRange:/^4/,cardLength:[13,16,19],spacingPatternRegex:/(\d{4})/,mask:`${"\u2022".repeat(4)} ${"\u2022".repeat(4)} ${"\u2022".repeat(4)} `}],this.isEmpty=l=>null===l||""===l,this.isBlank=l=>this.isEmpty(l)||""===l?.trim(),this.Luhn={validate:l=>{const h=l.replace(/\D/g,"");let u=0,c=!1;for(let d=h.length-1;d>=0;d--){let r=parseInt(h[d],10);c&&(r*=2,r>9&&(r=Math.floor(r/10)+r%10)),u+=r,c=!c}return u%10==0}},this.required=(l=t.MA)=>h=>{const{value:u}=h;return this.isBlank(u)||0===u.replace(/ /g,"").length?{errorMessage:l}:null},this.expirationDateRequired=(l=e.y.ENTER_MONTH,h=e.y.ENTER_YEAR)=>u=>{const c=u.value,d={};return this.isBlank(c.month)&&(d.month=l),this.isBlank(c.year)&&(d.year=h),Object.keys(d).length?d:null},this.validNameFormat=(l=t.MA)=>h=>{const{value:u}=h;return!u||this.isBlank(u)||u.toString().match(this.NAME_REGEX)?null:{errorMessage:l}},this.maxLength=(l,h=t.MA)=>u=>{const{value:c}=u;return c&&c.length>l?{errorMessage:h}:null},this.validCardFormat=(l=t.MA)=>h=>{const{value:u}=h;if(!h.dirty||this.isBlank(u))return null;const c=u.toString().replace(/\s/g,"");if(!this.Luhn.validate(c))return{errorMessage:l};if(void 0!==this.supportedCreditCardList)for(const d of this.supportedCreditCardList)if(null!==c.match(d.cardFormatRegex))return-1===d.cardLength.indexOf(c.length)?{errorMessage:l}:null;return{errorMessage:l}},this.validExpirationDate=(l=e.y.ENTER_MONTH,h=e.y.ENTER_YEAR)=>u=>{const{month:c,year:d}=u.value;if(this.isBlank(c)||this.isBlank(d))return null;const r={month:"",year:""};return null===d.match(this.EXPIRATION_DATE_YEAR_REGEX)&&(r.year=h),null===c.match(this.EXPIRATION_DATE_MONTH_REGEX)&&null===c.match(this.EXPIRATION_DATE_MONTH_REGEX_WITHOUT_ZERO)&&(r.month=l),r.year||r.month?r:this.isCardExpired(d,c)?{month:l,year:h}:null},this.determineCardType=l=>void 0===l||""===l||l&&l.length<6?null:this.getCardInfoFromBin(l,this.supportedCreditCardList)}getCardInfoFromBin(l,h){const u=(h||this.supportedCreditCardList).filter(c=>null!==l.match(c.iinRange));return u&&u.length>0?u[0]:null}isCardExpired(l,h){const u=new Date,c=Number(l),d=Number(h);return!Number.isFinite(c)||!Number.isFinite(d)||u>new Date(c,d)}getCardMask(l){return this.supportedCreditCardList.find(h=>h.brandCode===l)?.mask}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275prov=a.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},93259:(J,U,n)=>{"use strict";n.d(U,{f:()=>y});var t=n(45312),e=n(97586),C=n(54438);let y=(()=>{class v{constructor(){this.timeZoneForFormat="UTC",this.countrycode="US",this.language="en",this.formatterCache=new Map,this.MIN_MONTHS=6,this.MIN_DOB_YEARS=13,this.MAX_DOB_YEARS=120}initialize(h,u){this.countrycode=h,this.language=u,this.formatterCache.clear()}getFormatter(h){const u=`${this.language}-${JSON.stringify(h)}`;return this.formatterCache.has(u)||this.formatterCache.set(u,new Intl.DateTimeFormat(this.language,{...h})),this.formatterCache.get(u)}getDateFormat(h){return Object.hasOwn(t.tk,this.countrycode)?h?t.tk[this.countrycode].DATES[h]:t.tk[this.countrycode].DATES:h?t.tk.BASE_COUNTRY_FLAGS.DATES[h]:t.tk.BASE_COUNTRY_FLAGS.DATES}getDaysInMonth(h,u){const c=new Date,d=u||c.getFullYear(),r="string"==typeof h?parseInt(h,10):h??
717c.getMonth(),O=new Date(d,r+1,0).getDate();return Array.from({length:O},(p,m)=>m+1)}getMonthNames(h="long"){const u=this.getFormatter({month:h,timeZone:this.timeZoneForFormat});return Array.from({length:12},(c,d)=>{const r=new Date(Date.UTC(2023,d,1));return u.format(r)})}getMonthName(h,u="long"){const c=this.getFormatter({month:u,timeZone:this.timeZoneForFormat}),d=new Date(Date.UTC(2023,h,1));return c.format(d)}getMonthNumber(h){const u=this.getFormatter({month:"long",timeZone:this.timeZoneForFormat});for(let c=0;c<12;c++){const d=new Date(Date.UTC(2023,c,1));if(u.format(d)===h)return c}return-1}validateMinMonths(h,u=this.MIN_MONTHS){const c=new Date(h),d=new Date,r=this.getMonthsDiff(c,d);return r===u?c.getDate()<=d.getDate():r>=u}getMonthsDiff(h,u){const c=new Date(h),d=new Date(u);return Math.abs(12*(d.getFullYear()-c.getFullYear())+(d.getMonth()-c.getMonth()))}getYearsDiff(h){const u=new Date(h),c=new Date;let d=c.getFullYear()-u.getFullYear();const r=c.getMonth()-u.getMonth();return(r<0||0===r&&c.getDate()<u.getDate())&&d--,d}formatDate(h,u){return this.getFormatter(u??{year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date(h))}parseDate({date:h,format:u="YYYYMMDDTHHmmssZ",entryFormat:c="MM/DD/YYYY"}){const r={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},O={"MM/DD/YYYY":/^(\d{2})\/(\d{2})\/(\d{4})$/,"MM / DD / YYYY":/^(\d{2}) \/ (\d{2}) \/ (\d{4})$/,YYYYMMDD:/^(\d{4})(\d{2})(\d{2})$/,"YYYY-MM-DD":/^(\d{4})-(\d{2})-(\d{2})$/,"MMM D, YYYY":/^([A-Za-z]{3}) (\d{1,2}), (\d{4})$/,"MMM D":/^([A-Za-z]{3}) (\d{1,2})$/}[c];if(!O)throw new Error(`Unsupported entry format: ${c}`);const p=h.match(O);if(!p)throw new Error(`Date doesn't match format ${c}`);let m,s,o;switch(c){case"MM/DD/YYYY":case"MM / DD / YYYY":[,s,o,m]=p.map(Number),s--;break;case"YYYYMMDD":case"YYYY-MM-DD":[,m,s,o]=p.map(Number),s--;break;case"MMM D, YYYY":m=parseInt(p[3],10),s=r[p[1]],o=parseInt(p[2],10);break;case"MMM D":m=(new Date).getFullYear(),s=r[p[1]],o=parseInt(p[2],10);break;default:throw new Error("Unhandled format")}const f=new Date(Date.UTC(m,s,o));if(isNaN(f.getTime()))throw new Error("Invalid date");const M=b=>b.toString().padStart(2,"0"),x={YYYY:f.getUTCFullYear().toString(),MM:M(f.getUTCMonth()+1),DD:M(f.getUTCDate()),MMM:f.toLocaleString("en-US",{month:"short",timeZone:this.timeZoneForFormat}),D:f.getUTCDate().toString(),HH:M(f.getUTCHours()),mm:M(f.getUTCMinutes()),ss:M(f.getUTCSeconds())};return u.replace(/YYYY/g,x.YYYY).replace(/MMM/g,x.MMM).replace(/MM/g,x.MM).replace(/DD/g,x.DD).replace(/\bD\b/g,x.D).replace(/HH/g,x.HH).replace(/mm/g,x.mm).replace(/ss/g,x.ss).replace(/Z/g,"Z")}addDaysToDate(h,u){const c=new Date(h);return c.setDate(c.getDate()+u),c}getFormattedDateRange(h,u){const c=new Date(h),d=new Date(u),r={month:"short",day:"numeric",year:c.getFullYear()!==d.getFullYear()?"numeric":void 0},O=this.getFormatter(r);return`${O.format(c)} \u2014 ${O.format(d)}`}convertToColonTime(h){return/^\d{4}$/.test(h)?`${h.slice(0,2)}:${h.slice(2)}`:h}formatTime(h,u={hour:"numeric",minute:"2-digit"}){const[c,d]=this.convertToColonTime(h).split(":"),r=Date.UTC(2023,0,1,parseInt(c,10),parseInt(d,10));return this.getFormatter({...u,timeZone:this.timeZoneForFormat}).format(r)}minutesToHoursMinutes(h,u="h",c="m"){const d=Math.floor(h/60),r=h%60;return[d&&`${d}${u}`,r&&`${r}${c}`].filter(Boolean).join(" ")}getDayDiff(h,u){const c=new Date(h).setHours(0,0,0,0),d=new Date(u).setHours(0,0,0,0);return Math.round((d-c)/864e5)}getDaysFromNow(h){const u=(new Date).setUTCHours(0,0,0,0),c=new Date(h).setUTCHours(0,0,0,0);return Math.round((c-u)/864e5)}isDateGreaterThan(h,u){return new Date(h)>new Date(u)}getFormattedStartEndDate(h,u){let c;if("string"==typeof h){const r=new Date(h);c=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()))}else c=new Date(Date.UTC(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()));const d=this.addDaysToDate(c,u);return this.getFormattedDateRange(c,d)}formatDateISOWithoutDashesColons(h){return h.split("-").join("").split(":").join("").slice(0,15).concat("UTC")}getTimeDifference(h){const u=new Date,c=Math.abs(h.getTime()-u.getTime());return{days:Math.floor(c/864e5),hours:Math.floor(c/36e5%24),minutes:Math.floor(c/6e4%60)}}getFormattedStartEndDateBooking(h,u,c){e.locale(this.language||"en");
717const d=h?e(h,this.getServerFormatDate()):null,r=d?d.clone().add(u,"days"):null,O=d?.isValid()?d:null,p=r?.isValid()?r:null,s=O&&p&&O.year()===p.year()?this.getBookingCardFormatDates().start:this.getBookingCardFormatDates().end;let o=O?O.format(s):"",f=p?p.format(this.getBookingCardFormatDates().end):"";if("es"===this.language&&(o=o.replace(/\./g,""),f=f.replace(/\./g,"")),c){const M=`${this.language}-${this.countrycode}`,x={month:"short",day:"numeric",year:"numeric"};return[O?O.toDate().toLocaleDateString(M,x):"",p?p.toDate().toLocaleDateString(M,x):""]}return`${o||""} \u2014 ${f||""}`}getFormatDate(){return this.getDateFormat("formatWithOutSpaces")}getFormatDateWithSpaces(){return this.getDateFormat("formatWithSpaces")}getServerFormatDate(){return this.getDateFormat("serverFormat")}getUsDateFormat(){return this.getDateFormat("usFormat")}getOLCIFormatDate(){return this.getDateFormat("formatOLCI")}getBookingCardFormatDates(){return this.getDateFormat("bookingCard")}static{this.\u0275fac=function(u){return new(u||v)}}static{this.\u0275prov=C.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},87343:(J,U,n)=>{"use strict";n.d(U,{f:()=>y});var t=n(54438),e=n(59640),a=n(58510),C=n(21148);let y=(()=>{class v{constructor(){this.store=(0,t.WQX)(e.il),this.getLaunchDarklyFlags=this.store.selectSignal(a.QO)}isLDFlagEnabled(h){const c=this.getLaunchDarklyFlags()?.[h];return void 0===c?!!C.tr[h]:!!c}getAllLaunchDarklyFlags(){const h=this.getLaunchDarklyFlags();return h?{...h}:{}}brandNameFromInitial(h){switch(h){case"R":return"royal";case"C":return"celebrity";default:return null}}static{this.\u0275fac=function(u){return new(u||v)}}static{this.\u0275prov=t.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},49287:(J,U,n)=>{"use strict";n.d(U,{PP:()=>d.P,Di:()=>e.D,Ue:()=>D.U,cu:()=>G.c,uR:()=>t.u,ZO:()=>j.Z,LM:()=>et,dR:()=>S,ro:()=>a.r,tg:()=>Ft.t,fx:()=>V.f,ux:()=>Lt,Bs:()=>L,xp:()=>T.x,sj:()=>l.s,Pi:()=>m.P,J5:()=>C.J,zy:()=>y.zy,A_:()=>Bt.A,x3:()=>c.Q,R7:()=>v.R,uo:()=>M,PB:()=>f.P,ML:()=>F.M,v6:()=>Ot,Oi:()=>jt,s_:()=>o,IE:()=>ot.I,YG:()=>Wt.Y,aT:()=>w.a,QY:()=>x.Q,LD:()=>z.L,tH:()=>$,sq:()=>b.s,WT:()=>u.W,dF:()=>h.d});var t=n(54441),e=n(25759),a=n(35839),C=n(85259),y=n(15231),v=n(77969),l=n(95726),h=n(37301),u=n(74013),c=n(69179),d=n(69029),r=n(54438),O=n(83458),p=n(45312),m=n(97127);new r.nKC("TRANSLATE_HTTP_LOADER");let o=(()=>{class at{constructor(Z,tt){this.http=Z,this.localization=tt,this.suffix=".json",this.prefix="./i18n/"}getTranslation(Z){const tt=this.getLanguage(Z);return this.http.get(this.getPath(tt),(0,O.nT)({key:`HTTP_CACHE_${p.qt.toString().toUpperCase()}_I18N_${tt.toUpperCase()}_${(0,h.d)()}`,ttl:432e5,cache:!0}))}getLanguage(Z){if("en-GB"===Z)return Z;const tt=this.localization.getSupportedLanguages();if(tt.includes(Z))return Z;const mt=Z.split("-")[0];return tt.includes(mt)?mt:"en"}getPath(Z){return`${p.QY}/i18n/${Z}${this.suffix}?t=${Date.now()}`}static{this.\u0275fac=function(tt){return new(tt||at)(r.KVO(O.lU),r.KVO(m.P))}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();var f=n(65151);let M=(()=>{class at{constructor(Z){this.injector=Z}handleError(Z){const tt=this.injector.get(f.P),mt=tt.createErrorHandlerContext("error",Z?.message??Z);throw tt.errorByLookUp("CP-0000-UNKNOWN",{context:mt}),Z}static{this.\u0275fac=function(tt){return new(tt||at)(r.KVO(r.zZn))}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}}return at})();var x=n(70222),b=n(65813),F=n(41799),G=n(86699),w=n(27865);let S=(()=>{class at{initialize(Z){this.countrycode=Z,this.countryNumbers=Object.hasOwn(p.tk,this.countrycode)?p.tk[this.countrycode].NUMBERS:p.tk.BASE_COUNTRY_FLAGS.NUMBERS}getCallNumber(Z="default"){return this.countryNumbers[Z]}static{this.\u0275fac=function(tt){return new(tt||at)}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();var V=n(93259),E=n(68018);let L=(()=>{class at{constructor(Z,tt,mt,ut,ft,Pt,Ct){this.translate=Z,this.sessionStorage=tt,this.windowRef=mt,this.localization=ut,this.urlsService=ft,this.callNumberService=Pt,this.datesService=Ct,this.BRITISH_COUNTRIES=["CA","AU","NZ","IE"]}initializeIntl(){const{country:Z,language:tt,locale:mt}=this.localization.detect(),ut=this.resolveUserLocale(Z,mt,tt);this.backupParamsInSessionStorage(tt,Z),this.configureDependentServices(ut,tt,Z)}resolveUserLocale(Z,tt,mt){return this.isBritishEnglish(Z,mt)?"en-GB":tt}isBritishEnglish(Z,tt){return"en"===tt&&this.BRITISH_COUNTRIES.includes(Z)}backupParamsInSessionStorage(Z,tt){this.windowRef.nativeWindow.location.search&&[["wuc",tt],["wul",Z]].filter(([ut])=>
717this.queryParamExists(ut)).forEach(([ut,ft])=>this.sessionStorage.set(ut,ft))}queryParamExists(Z){return!!this.windowRef.nativeWindow.location.search&&this.windowRef.nativeWindow.location.search.includes(Z)}configureDependentServices(Z,tt,mt){this.urlsService.initialize(mt,tt),this.datesService.initialize(mt,tt),this.callNumberService.initialize(mt),this.translate.addLangs(this.localization.getSupportedLanguages()),this.translate.setDefaultLang(this.localization.getDefaultLanguage()),this.translate.use(Z)}static{this.\u0275fac=function(tt){return new(tt||at)(r.KVO(E.c$),r.KVO(v.R),r.KVO(u.W),r.KVO(m.P),r.KVO(w.a),r.KVO(S),r.KVO(V.f))}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();var D=n(15633),k=n(99437),X=n(18810),W=n(21626),K=n(97586),T=n(61431),Y=n(92707);let H=(()=>{class at{constructor(Z){this.windowRef=Z}submit(Z,tt,mt){const ut=this.windowRef.nativeWindow.document.createElement("form");ut.action=tt,ut.method=Z;for(const ft in mt)if(Object.prototype.hasOwnProperty.call(mt,ft)){const Pt=mt[ft];if(!ft||!Pt)continue;const Ct=this.windowRef.nativeWindow.document.createElement("input");Ct.type="hidden",Ct.name=ft,Ct.value=Pt,ut.appendChild(Ct)}this.windowRef.nativeWindow.document.body.appendChild(ut),ut.submit()}post(Z,tt){this.submit("POST",Z,tt)}get(Z,tt){this.submit("GET",Z,tt)}static{this.\u0275fac=function(tt){return new(tt||at)(r.KVO(u.W))}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})(),et=(()=>{class at{constructor(Z,tt,mt,ut,ft,Pt,Ct,Nt){this.http=Z,this.utilityService=tt,this.localization=mt,this.splunkService=ut,this.sessionService=ft,this.formRedirection=Pt,this.urls=Ct,this.datesService=Nt,this.BASE_PATH_V2="/:locale/:brand/:platform/v2",this.BASE_PATH_V1_Loyalty_Programs="/:locale/:brand/:channel",this.showReservationError=!1,this.showSurnameError=!1,this.showErrorOnBanner=(0,r.vPA)("NONE"),this.showErrorMessageOnReservationNumber=(0,r.vPA)(!1),this.loadingFacade=(0,r.WQX)(T.x),this.trackingParams=(0,r.WQX)(Y.P),this.BASE_PATH_V2=this.utilityService.getBasePath("v2"),this.BASE_PATH_V1_Loyalty_Programs=this.utilityService.getBasePath("v1"),this.serverFormatDate=this.datesService.getServerFormatDate(),this.OLCIFormatDate=this.datesService.getOLCIFormatDate()}autolink(Z){const mt={...Z,header:{brand:p.vN,channel:p.$E,locale:this.localization.getLocaleCode()}};return this.http.post(p.f0+"/v1/profileBookings/searchAddGetProfileBookings",mt,y.zy).pipe((0,k.W)(ut=>{const{message:ft,error:Pt}=this.utilityService.extractServiceError(ut),Ct={brand:p.vN,channel:p.$E,locale:this.localization.getLocaleCode(),status:ut.status,message:ft,error:Pt};return this.splunkService.trackServiceError("CP-0330-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_AUTOLINK",Ct),(0,X.$)(()=>ut)}))}findBookingBy(Z){const tt=`${this.BASE_PATH_V2}/cruiseBookings/summaries/${Z.vdsId}`,mt=(new W.Nl).set("lastName",Z.lastName).set("bookingIds",Z.bookingId),ut={...y.zy,params:mt};return this.http.get(`${p.f0+tt}`,ut).pipe((0,k.W)(ft=>{const Pt=this.utilityService.extractServiceError(ft);return(0,X.$)(()=>Pt)}))}manualLinkProfileBooking(Z){const tt=`/v1/profileBookings/${Z?.vdsId}/manualLink`,mt={...Z,header:{brand:p.vN,channel:"web"}};return this.http.post(`${p.f0}${tt}`,mt,y.zy).pipe((0,k.W)(ut=>{const{message:ft,error:Pt}=this.utilityService.extractServiceError(ut),Ct={brand:p.vN,channel:p.$E,locale:this.localization.getLocaleCode(),status:ut.status,message:ft,error:Pt};return this.splunkService.trackServiceError("CP-0333-PROFILE_BOOKING_FAILED-MANUAL_LINK",Ct),(0,X.$)(()=>ut)}))}manualLinkSearch(Z){const tt=`/v1/profileBookings/${Z.vdsId}/links/search`,mt={...Z,brand:p.vN};return this.http.post(`${p.f0}${tt}`,mt,y.zy).pipe((0,k.W)(ut=>{const ft=this.utilityService.extractServiceError(ut);return this.splunkService.trackServiceError("CP-0334-PROFILE_BOOKING_FAILED-MANUAL_LINK_SEARCH",ft),(0,X.$)(()=>ft)}))}openCheckIn(Z,tt,mt){const ut=this.getCheckinPayload(Z,tt,mt);this.logNullValues(ut,"booking-action.service"),this.sessionService.setOlciDataCookie(ut),this.loadingFacade.addToLoadingQueue(),this.formRedirection.get(this.urls.list.CHECKIN,this.trackingParams.getStoredParams())}
717getCheckinPayload(Z,tt,mt){const ft=K(tt.sailDate,this.serverFormatDate).format(this.OLCIFormatDate),Pt=mt?.toLowerCase(),Ct=Z.data?.personalInformation,Nt=Z.data?.contactInformation,Jt=Z.data?.contactInformation?.address?.residencyCountryCode;return{brand:p.vN,bookingId:tt.bookingId,lastName:tt.lastName,shipCode:tt.shipCode,guestId:tt&&tt.passengerId?tt.passengerId.toString():"",sailDate:ft,locale:Pt,vdsId:Z.data?.vdsId??"",charterSailing:tt.charter,accountOwnerName:Ct?`${Ct.firstName} ${Ct.lastName}`:"",dob:Ct?.birthdate?K(Ct.birthdate,this.datesService.getServerFormatDate()).format(this.datesService.getUsDateFormat()):"",email:Nt?.email??"",...null!==Jt?{countryOfResidency:Jt}:{}}}logNullValues(Z,tt){const mt=Object.keys(Z).filter(ut=>!Z[ut]||"null"===Z[ut]);if(mt.length){const ut=this.splunkService.initializeManyContext(["error","message"],[{errors:mt,source:tt},`olci version call has null values: ${JSON.stringify(mt)}`]);this.splunkService.errorByLookUp("CP-0017-PAYLOAD-HAS-NULL-VALUES",{context:ut})}}getPastBookingsBaseLoyalty(Z,tt){const mt=`${this.BASE_PATH_V1_Loyalty_Programs}/guestAccounts/loyalty/history/${tt}`,ut=Z&&"0"!==Z?(new W.Nl).set("loyaltyNumber",Z):new W.Nl,ft=y.zy.headers?y.zy.headers.get("appkey"):"",Pt={...y.zy};if(Pt.params=ut,!this.utilityService.isAValidAppkey(ft)){const Ct=this.utilityService.getValidHeaders();Pt.headers=Ct}return this.http.get(`${p.f0+mt}`,Pt).pipe((0,k.W)(Ct=>{const Nt=this.utilityService.extractServiceError(Ct);return this.splunkService.trackServiceError("CP-0332-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_PAST_BOOKINGS_BASE_LOYALTY",Nt),Ct.status>=400||0===Ct.status?(0,X.$)(Ct.json?Ct.json():Ct):(0,y.O9)(Ct)}))}bookingsForProfile(Z){let tt;tt=p.Gv.MANUAL_LINK_SEARCH?`/v1/profileBookings/enriched/${Z}?brand=${p.vN}&includeCheckin=true`:`/v1/profileBookings/${Z}/enriched?brand=${p.vN}&includeCheckin=true`;const mt=y.zy.headers?y.zy.headers.get("appkey"):"",ut={...y.zy};if(!this.utilityService.isAValidAppkey(mt)){const ft=this.utilityService.getValidHeaders();ut.headers=ft}return this.http.get(`${p.f0+tt}`,ut).pipe((0,k.W)(ft=>{const Pt=this.utilityService.extractServiceError(ft);return this.splunkService.trackServiceError("CP-0332-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_PAST_BOOKINGS_BASE_LOYALTY",Pt),(0,X.$)(()=>Pt)}))}getBookingEdocs(Z){const mt=(new W.Nl).set("bookingIds",Z||""),ut={...y.zy,params:mt};return this.http.get(p.f0+"/v1/guestAccounts/edocs/campaignMetadata",ut).pipe((0,k.W)(ft=>(0,y.O9)(ft)))}getRoyalUpStatuses(){return this.http.get(`${p.f0}/en/${p.vN}/web/v1/guestAccounts/upgrades`)}static{this.\u0275fac=function(tt){return new(tt||at)(r.KVO(O.lU),r.KVO(x.Q),r.KVO(m.P),r.KVO(f.P),r.KVO(c.Q),r.KVO(H),r.KVO(w.a),r.KVO(V.f))}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();n(61829);var j=n(37941);let $=(()=>{class at{constructor(Z,tt,mt,ut,ft){this.http=Z,this.splunkService=tt,this.utilityService=mt,this.accountFacadeService=ut,this.loyaltyRepo=ft,this.account=this.accountFacadeService.getAccountData}getEnrichedVoyagesInfo(Z){const tt=Z.map(ft=>`${ft.shipCode}${ft.sailDate}`).join(","),ut=`/en/royal/web/v3/ships/voyages/${encodeURIComponent(tt)}/enriched`;return this.http.get(`${p.f0+ut}`,y.zy).pipe((0,k.W)(ft=>{const Pt=this.utilityService.extractServiceError(ft);return this.splunkService.trackServiceError("CP-0051_CORE_SERVICES-ENRICHED_VOYAGE_FAILED",{...Pt,message:"unexpected error getting enriched voyages"}),(0,X.$)(()=>ft)}))}getSailingHistory(){const Z=this.account()?.loyaltyInformation?this.account().loyaltyInformation[this.loyaltyRepo.getProgramNumberPropertyName(p.qt)]:null,{accountId:tt}=this.accountFacadeService.getAccountData();return this.http.get(""+(p.f0+`/en/${p.qt}/web/v1/guestAccounts/loyalty/history/${tt}${Z?"?loyaltyNumber="+Z:""}`),y.zy).pipe((0,k.W)(ut=>{const ft=this.utilityService.extractServiceError(ut);return this.splunkService.trackServiceError("CP-0332-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_PAST_BOOKINGS_BASE_LOYALTY",{...ft,message:"unexpected error getting sailing history"}),(0,X.$)(()=>ut)}))}static{this.\u0275fac=function(tt){return new(tt||at)(r.KVO(O.lU),r.KVO(f.P),r.KVO(x.Q),r.KVO(d.P),r.KVO(C.J))}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();var z=n(66855),ot=n(70135),nt=n(59640),it=n(67853);let Ot=(()=>{class at{constructor(){this.store=(0,r.WQX)(nt.il),this.state=this.store.selectSignal(it.BQ)}
717showToast(Z,tt,mt){this.store.dispatch(it.lo.showToast({message:Z,toastType:tt,duration:mt}))}closeToast(){this.store.dispatch(it.lo.closeToast())}static{this.\u0275fac=function(tt){return new(tt||at)}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})(),Lt=(()=>{class at{getChangedProperties(Z){const tt={};return Object.keys(Z.controls).forEach(mt=>{const ut=Z.get(mt);ut?.dirty&&(tt[mt]=ut.value)}),tt}getProperties(Z){const tt={};return Object.keys(Z.controls).forEach(mt=>{const ut=Z.get(mt);tt[mt]=ut.value}),tt}static{this.\u0275fac=function(tt){return new(tt||at)}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();var Ft=n(47378),Bt=(n(65075),n(2203),n(3199)),St=(n(8123),n(15829),n(70980));let jt=(()=>{class at{constructor(){this.http=(0,r.WQX)(O.lU),this.cookies=(0,r.WQX)(a.r),this.sessionService=(0,r.WQX)(c.Q),this.token=(0,r.vPA)(""),this.tokenExpirationTime=(0,r.vPA)(0),this.isRefreshInFlight=(0,r.vPA)(!1),this.attemptedForToken=(0,r.vPA)(""),this.refreshTimeoutId=null,this.retryTimeoutId=null,this.refreshSubscription=null,this.isStarted=!1,this.userInfoEndpoint=this.getSilverseaUserInfoEndpoint(),(0,r.QZP)(()=>{this.token()!==this.attemptedForToken()&&this.attemptedForToken.set("")},{allowSignalWrites:!0})}start(){this.isStarted||!p.Fh.SILVERSEA_TOKEN_REFRESH||(this.isStarted=!0,this.initTimeSessionMonitorFromAccessToken())}stop(){this.clearScheduledRefresh(),this.clearRetryTimeout(),this.refreshSubscription?.unsubscribe(),this.refreshSubscription=null,this.isRefreshInFlight.set(!1),this.attemptedForToken.set(""),this.isStarted=!1}initTimeSessionMonitorFromAccessToken(){this.isStarted&&(this.syncTokenState(),this.initializeRefreshSchedule())}syncTokenState(){const Z=this.cookies.getCookie(p.ym.accessToken)??"";this.token.set(Z);const tt=this.getTokenExpirationTime(Z);this.tokenExpirationTime.set(tt||0)}initializeRefreshSchedule(){const Z=this.tokenExpirationTime();if(!Z)return void this.clearScheduledRefresh();const tt=this.calculateSessionTiming(Z);tt.remainingTimeInMs<=0?this.clearScheduledRefresh():tt.shouldRefreshImmediately?this.refreshUserInfo():this.scheduleRefresh(tt.remainingTimeInMs-p.Fh.SILVERSEA_TOKEN_REFRESH.autoRefreshTokenInMs)}calculateSessionTiming(Z){const tt=Z-Date.now();return{remainingTimeInMs:tt,shouldRefreshImmediately:tt<=p.Fh.SILVERSEA_TOKEN_REFRESH.autoRefreshTokenInMs}}scheduleRefresh(Z){this.clearScheduledRefresh(),this.refreshTimeoutId=setTimeout(()=>{this.refreshUserInfo()},Math.max(0,Z))}clearScheduledRefresh(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null)}clearRetryTimeout(){this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=null)}scheduleRetry(){this.clearRetryTimeout(),this.retryTimeoutId=setTimeout(()=>{this.isStarted&&this.initTimeSessionMonitorFromAccessToken()},Math.max(0,p.Fh.SILVERSEA_TOKEN_REFRESH?.retryFailureDelayInMs??3e4))}refreshUserInfo(){if(!this.isStarted)return;this.syncTokenState();const Z=this.token();!Z||this.isRefreshInFlight()||this.attemptedForToken()===Z||(this.isRefreshInFlight.set(!0),this.refreshSubscription=this.userInfoRefresh$().pipe((0,St.j)(()=>{this.isRefreshInFlight.set(!1),this.refreshSubscription=null})).subscribe({next:()=>{this.isStarted&&(this.attemptedForToken.set(Z),this.initTimeSessionMonitorFromAccessToken())},error:()=>{this.isStarted&&this.scheduleRetry()}}))}userInfoRefresh$(){return this.http.get(this.userInfoEndpoint,{withCredentials:!0})}getTokenExpirationTime(Z){if(!Z)return null;const tt=this.sessionService.decodeToken(Z);return tt?"number"==typeof tt.expires_in&&"number"==typeof tt.iat?1e3*(tt.iat+tt.expires_in):"number"==typeof tt.exp?1e3*tt.exp:null:null}getSilverseaUserInfoEndpoint(){return`${new URL(p.Fh.URLS?.BASE_URLS?.HOME||p.W6,p.W6).origin}/profile/userinfo`}static{this.\u0275fac=function(tt){return new(tt||at)}}static{this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();var Wt=n(41631)},54593:(J,U,n)=>{"use strict";function t(e,a){if(!e)return 1;const y=Array.from(document.querySelectorAll(`.${a}`)).indexOf(e)+1;return y>0?y:1}n.d(U,{Y:()=>t})},83959:(J,U,n)=>{"use strict";n.d(U,{z:()=>a});var t=n(54438),e=n(86699);let a=(()=>{class C{constructor(){this.analyticsService=(0,t.WQX)(e.c)}fireKoddiBeacon(v,l,h){if(!l||h<1)return;let u="impression"===v?l.impression_tracking_url:l.click_tracking_url;if(!u)return;const c=(new Date).toISOString();u=u.replace("{trackingData}",l.tracking_data||"").replace("{rank}",h.toString()).replace("{beaconIssued}",c).replace("{ts}",Date.now().toString()),this.analyticsService.updateKoddiAnalytics(u,v)}static{this.\u0275fac=function(l){return new(l||C)}}
717static{this.\u0275prov=t.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},8123:(J,U,n)=>{"use strict";n.d(U,{G:()=>u});var t=n(54438),e=n(7673),a=n(62087),C=n(99437),y=n(45312),v=n(83458),l=n(97127),h=n(15231);let u=(()=>{class c{constructor(){this.http=(0,t.WQX)(v.lU),this.localization=(0,t.WQX)(l.P)}fetchAgreement(){const r=this.localization.detect()?.language||"en",O=`${y.f0}/${r}/${y.qt}/web/v3/agreement`,m=`assets/${r}/legal/terms-of-use/${y.qt}/terms.json`;return h.Qo.set("Accept-Language",r),this.fetchFromEndpoint(O,(0,v.nT)({key:`HTTP_CACHE_${r}_${y.qt.toString().toUpperCase()}_AGREEMENT`}),m)}fetchFromEndpoint(r,O,p){return this.http.get(r,O).pipe((0,a.w)(y.Fh.PMC_TIMEOUT_DEFAULT),(0,C.W)(m=>this.LOCAL_ERROR_HANDLER(m,p)))}LOCAL_ERROR_HANDLER(r,O){return O?this.http.get(O):(0,e.of)(r)}static{this.\u0275fac=function(O){return new(O||c)}}static{this.\u0275prov=t.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},91975:(J,U,n)=>{"use strict";n.d(U,{x:()=>c});var t=n(54438),e=n(59640),a=n(84572),C=n(5964),y=n(96354),v=n(23294),l=n(99172),h=n(67039),u=n(39638);let c=(()=>{class d{constructor(){this.store=(0,t.WQX)(e.il),this.userLegals$=this.store.pipe((0,e.Lt)(h.Fk),(0,C.p)(O=>!!O.data?.termsAndConditionsAgreement&&"version"in O.data.termsAndConditionsAgreement&&!!O.data?.privacyPolicyAgreement&&"version"in O.data.privacyPolicyAgreement),(0,y.T)(O=>({termsVersion:O.data.termsAndConditionsAgreement.version,privacyVersion:O.data.privacyPolicyAgreement.version}))),this.currentLegals$=this.store.pipe((0,e.Lt)(u.kB),(0,C.p)(O=>!!O.termsAndConditions?.version&&!!O.privacyPolicy?.version),(0,y.T)(O=>({termsVersion:O.termsAndConditions.version,privacyVersion:O.privacyPolicy.version}))),this.getLegalsContent$=this.store.pipe((0,e.Lt)(u.kB)),this.legalsPendingAcceptance$=(0,a.z)([this.userLegals$,this.currentLegals$]).pipe((0,v.F)(this.legalsVersionsChanged),(0,y.T)(([O,p])=>this.buildAcceptancePayload(O,p))),this.isAcceptancePending$=this.legalsPendingAcceptance$.pipe((0,y.T)(O=>this.filterPending(O)),(0,y.T)(O=>Object.getOwnPropertyNames(O).length>0),(0,l.Z)(!1))}legalsVersionsChanged([O,p],[m,s]){return O.termsVersion===m.termsVersion&&O.privacyVersion===m.privacyVersion&&p.termsVersion===s.termsVersion&&p.privacyVersion===s.privacyVersion}buildAcceptancePayload(O,p){const m={},o=O.privacyVersion,M=p.privacyVersion;return m.termsAndConditions={needsAcceptance:this.versionComparison(p.termsVersion,O.termsVersion)},m.privacyPolicy={needsAcceptance:this.versionComparison(M,o)},m}versionComparison(O,p){return 1===O?.localeCompare(p,void 0,{numeric:!0,sensitivity:"base"})}filterPending(O){const p={};return Object.getOwnPropertyNames(O).filter(m=>!0===O[m].needsAcceptance).forEach(m=>p[m]=O[m]),p}static{this.\u0275fac=function(p){return new(p||d)}}static{this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()},61431:(J,U,n)=>{"use strict";n.d(U,{x:()=>C});var t=n(54438),e=n(59640),a=n(28806);let C=(()=>{class y{constructor(){this.store=(0,t.WQX)(e.il),this.showLoading=this.store.selectSignal(a.Yn),this.showLoading$=this.store.select(a.Yn)}addToLoadingQueue(){this.store.dispatch(a.zH.addToLoadingQueue())}removeLoadingFromQueue(){this.store.dispatch(a.zH.removeFromLoadingQueue())}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275prov=t.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},97127:(J,U,n)=>{"use strict";n.d(U,{P:()=>w});var t=n(45312),e=n(77969),a=n(54438),C=n(30803),y=n(84412),v=n(5964),l=n(99172),h=n(96697),u=n(59640),c=n(87343),d=n(21148),r=function(S){return S.PLP="PLP",S.PDP="PDP",S.OTHER="OTHER",S}(r||{});let O=(()=>{class S{constructor(){this.router=(0,a.WQX)(C.Ix)}get currentPageSection(){const L=(this.router.parseUrl(this.router.url).root.children.primary?.segments??[]).map(D=>D.path.toLowerCase());return L.includes("plp")||L.includes("category")?r.PLP:L.includes("pdp")||L.includes("product")?r.PDP:r.OTHER}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})();var p=n(96354);const s=(0,u.UX)("TO.productDetail");let o=(()=>{class S{constructor(){this.store=(0,a.WQX)(u.il)}getProductDetail(){return this.store.select(s).pipe((0,p.T)(E=>E?.product??null))}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})();const M=(0,u.UX)("TO.category"),x=["ecid","emsc","empc","lnkid","rid","cid","source","mid"];let b=(()=>{class S{constructor(){this.router=(0,a.WQX)(C.Ix),this.store=(0,a.WQX)(u.il),this.routeUtilitiesService=(0,a.WQX)(O),this.productDetailsFacadeService=(0,a.WQX)(o),this.featureFlagsService=(0,a.WQX)(c.f),this.upcomingUrlSubject=ne
717w y.t(""),this.upcomingUrl$=this.upcomingUrlSubject.asObservable(),this.urlParams=(0,a.vPA)(""),this.routerSub=this.router.events.pipe((0,v.p)(E=>E instanceof C.wF),(0,l.Z)(null)).subscribe(()=>this.setUrlParams())}ngOnDestroy(){this.routerSub.unsubscribe()}setUpcomingUrl(E){this.upcomingUrlSubject.next(E)}getUpcomingUrl(){return this.upcomingUrlSubject.getValue()}setUrlParams(){const E=this.router.parseUrl(this.router.url).queryParams;switch(this.routeUtilitiesService.currentPageSection){case r.PLP:this.setURLParamsFromPlp(E);break;case r.PDP:this.setUrlParamsFromPdp(E);break;default:this.setUrlParamsFromOther(E)}}setURLParamsFromPlp(E){const L=[...x,"bookingId"];this.store.select(M).pipe((0,h.s)(1)).subscribe(D=>{const k=E.categoryId??"",X=D?.categories?.find(W=>W.id===k);this.urlParams.set(this.buildQueryStringFromParams(L,E,{sailingId:E.sailingId??"",categoryId:k,categoryTitle:X?.title??""}))})}setUrlParamsFromPdp(E){const L=[...x,"bookingId"];this.featureFlagsService.isLDFlagEnabled(d.mA.IS_PDG_GQL_ENABLE)?this.productDetailsFacadeService.getProductDetail().pipe((0,h.s)(1)).subscribe(k=>{this.urlParams.set(this.buildQueryStringFromParams(L,E,{sailingId:E.sailingId??"",productId:k?.id??"",productName:k?.title??""}))}):this.store.select(s).pipe((0,h.s)(1)).subscribe(k=>{this.urlParams.set(this.buildQueryStringFromParams(L,E,{sailingId:E.sailingId??"",productId:k?.product?.id??"",productName:k?.product?.title??""}))})}setUrlParamsFromOther(E){this.urlParams.set(this.buildQueryStringFromParams(x,E,{}))}buildQueryStringFromParams(E,L,D){const k={};for(const W of E){const K=L[W];K&&(k[W]=K)}for(const[W,K]of Object.entries(D))K&&(k[W]=K);const X=Object.entries(k).map(([W,K])=>`${encodeURIComponent(W)}=${encodeURIComponent(K)}`);return X.length?`?${X.join("&")}`:""}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})();var F=n(35839),G=n(74013);let w=(()=>{class S{constructor(E,L,D,k){this.cookies=E,this.windowsService=L,this.sessionStorage=D,this.navigationService=k}detect(){let E=this.getLocaleCode();const{language:L,country:D=""}=this.getLocaleData(),k=this.isLocaleSupported(E),X=this.isLanguageSupported(L),W=this.isCountrySupported(D);return k||(E=X?L:this.getDefaultLocale()),{locale:E,language:X?L:this.getDefaultLanguage(),country:W?D:this.getDefaultCountry()}}getLocaleData(){const E=this.resolveLanguage();let L=this.resolveCountry();return L=3===L?.length?this.countryToISOAlpha2(L)||"":L,{language:E,country:L}}getLocaleCode(){const E=this.encodeLocale(this.getLocaleData());return this.isLocaleSupported(E)?E:this.getDefaultLocale()}resolveLanguage(){const E=this.readLanguageFromUrl(),L=this.readLanguageFromStorage(),D=this.normalizeCookieLang(this.readLanguageFromCookie()),k=this.readLanguageFromBrowser();return E||L||D||k}normalizeCookieLang(E){if(!E)return"";const L=E.split("-"),D=L[0].toLowerCase();return L.length>=2&&4===L[1].length?`${D}-${L[1].charAt(0).toUpperCase()+L[1].slice(1).toLowerCase()}`:D}resolveCountry(){const E=(this.readCountryFromUrl()||"").toUpperCase(),L=this.readCountryFromStorage(),D=this.readCountryFromCookie()||"",k=this.readCountryFromBrowser();return E||L||D||k}readLanguageFromUrl(){return new URLSearchParams(window.location.search.toLowerCase()).get("wul")}readCountryFromUrl(){return new URLSearchParams(window.location.search.toLowerCase()).get("wuc")}readLanguageFromStorage(){return this.sessionStorage.get("wul")}readCountryFromStorage(){return this.sessionStorage.get("wuc")}readLanguageFromCookie(){return t.II.map(E=>this.cookies.getCookie(E)).filter(Boolean).pop()}readCountryFromCookie(){return t.Ob.map(E=>this.cookies.getCookie(E)).filter(Boolean).pop()}getLanguageCountryFromBrowser(){return this.windowsService.nativeWindow?.navigator?.language}readLanguageFromBrowser(){return this.getLanguageCountryFromBrowser()?.split("-")[0]}readCountryFromBrowser(){return this.getLanguageCountryFromBrowser()?.split("-")[1]}decodeLocale(E){if(!E)return{};const L=E.match(/^([a-zA-Z]{2})[-_]?([a-zA-Z0-9]{2,})?$/im);if(!L)throw new Error(`Locale code must match BCP47 spec. Got ${E}`);const[,D,k]=L;return!k||k?.match(/^\d{2,}$/im)?{language:D,country:"ZZ"}:{language:D,country:k}}encodeLocale(E){const{language:L,country:D}=E;return D?`${L}-${D}`:L}getDefaultLanguage(){return t.CJ.DEFAULT_LANGUAGE}getDefaultCountry(){return t.CJ.DEFAULT_COUNTRY}getDefaultLocale(){const{DEFAULT_LANGUAGE:E,DEFAULT_COUNTRY:L}=t.CJ;return`${E}-${L}`}
717getSupportedLocales(){return this.getSupportedLanguages()}getSupportedLanguages(){return t.CJ.SUPPORTED_LANGUAGES.map(E=>E.split("-")[0]).filter((E,L,D)=>D.indexOf(E)===L)}getSupportedCountries(){return Object.keys(t.CJ.SUPPORTED_COUNTRIES).map(E=>t.CJ.SUPPORTED_COUNTRIES[E])}isLocaleSupported(E){return-1!==this.getSupportedLocales().indexOf(E)}isLanguageSupported(E){return-1!==this.getSupportedLanguages().indexOf(E)}isCountrySupported(E){return-1!==this.getSupportedCountries().indexOf(E)}isEnglishLanguage(E){return E?.startsWith("en")}countryToISOAlpha3(E){const L=t.CJ.SUPPORTED_COUNTRIES;return Object.keys(L).filter(k=>L[k]===E).pop()||""}countryToISOAlpha2(E){return t.CJ.SUPPORTED_COUNTRIES[E.toUpperCase()]||""}getCountryAlpha3(E="USA"){const L=this.readCountryFromCookie()?.trim();return 3===L?.length?L.toUpperCase():(this.countryToISOAlpha3(L||this.detect().country)||E).toUpperCase()}isUSA(){return!!(this.resolveCountry()||this.getDefaultCountry()).trim().toLocaleUpperCase().match(/^USA?$/gm)}isChina(E){return!!E.trim().toLocaleUpperCase().match(/(CHN|TWN|HKG)/gi)}isPMC(){return this.navigationService.getUpcomingUrl().includes("cruise-planner")}matchCountry(E){const L=this.readCountryFromBrowser()||this.getDefaultCountry(),D=this.escapeRegExp(E),k=new RegExp(`^${D}?$`,"gm");return!!L.trim().toLocaleUpperCase().match(k)}escapeRegExp(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static{this.\u0275fac=function(L){return new(L||S)(a.KVO(F.r),a.KVO(G.W),a.KVO(e.R),a.KVO(b))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},85259:(J,U,n)=>{"use strict";n.d(U,{J:()=>h});var t=n(66693),e=n(45312);const a=u=>{const c=new Map([["pre-gold",{range:[0,0],id:"pre-gold",name:u.instant("LOYALTY.ROYAL.TIERS.PRE_GOLD")}],["gold",{range:[1,29],id:"gold",name:u.instant("LOYALTY.ROYAL.TIERS.GOLD")}],["platinum",{range:[30,54],id:"platinum",name:u.instant("LOYALTY.ROYAL.TIERS.PLATINUM")}],["emerald",{range:[55,79],id:"emerald",name:u.instant("LOYALTY.ROYAL.TIERS.EMERALD")}],["diamond",{range:[80,174],id:"diamond",name:u.instant("LOYALTY.ROYAL.TIERS.DIAMOND")}],["diamond-plus",{range:[175,699],id:"diamond-plus",name:u.instant("LOYALTY.ROYAL.TIERS.DIAMOND_PLUS")}],["pinnacle-club",{range:[700,1e5],id:"pinnacle-club",name:u.instant("LOYALTY.ROYAL.TIERS.PINNACLE_CLUB")}]]),d=new Map([["preview",{range:[0,1],id:"preview",name:u.instant("LOYALTY.CELEBRITY.TIERS.PREVIEW")}],["classic",{range:[2,149],id:"classic",name:u.instant("LOYALTY.CELEBRITY.TIERS.CLASSIC")}],["select",{range:[150,299],id:"select",name:u.instant("LOYALTY.CELEBRITY.TIERS.SELECT")}],["elite",{range:[300,749],id:"elite",name:u.instant("LOYALTY.CELEBRITY.TIERS.ELITE")}],["elite-plus",{range:[750,2999],id:"elite-plus",name:u.instant("LOYALTY.CELEBRITY.TIERS.ELITE_PLUS")}],["zenith",{range:[3e3,9999],id:"zenith",name:u.instant("LOYALTY.CELEBRITY.TIERS.ZENITH")}]]),r=new Map([["DEBUT",{id:"DEBUT",name:u.instant("LOYALTY.SILVERSEA.TIERS.DEBUT")}],["1-VS-Day",{id:"1-VS-Day",name:u.instant("LOYALTY.SILVERSEA.TIERS.1_VS_DAY")}],["15-VS-Days",{id:"15-VS-Days",name:u.instant("LOYALTY.SILVERSEA.TIERS.15_VS_DAYS")}],["50-VS-Days",{id:"50-VS-Days",name:u.instant("LOYALTY.SILVERSEA.TIERS.50_VS_DAYS")}],["100-VS-Days",{id:"100-VS-Days",name:u.instant("LOYALTY.SILVERSEA.TIERS.100_VS_DAYS")}],["250-VS-Days",{id:"250-VS-Days",name:u.instant("LOYALTY.SILVERSEA.TIERS.250_VS_DAYS")}],["350-VS-Days",{id:"350-VS-Days",name:u.instant("LOYALTY.SILVERSEA.TIERS.350_VS_DAYS")}],["500-VS-Days",{id:"500-VS-Days",name:u.instant("LOYALTY.SILVERSEA.TIERS.500_VS_DAYS")}]]),O={id:"crownAndAnchor",brand:"royal",code:"CAS",name:u.instant("LOYALTY.ROYAL.PROGRAM_NAME"),properties:new Map([["userId","crownAndAnchorId"],["tier","crownAndAnchorSocietyLoyaltyTier"],["individualPoints","crownAndAnchorSocietyLoyaltyIndividualPoints"],["relationshipPoints","crownAndAnchorSocietyLoyaltyRelationshipPoints"],["enrollmentDate","crownAndAnchorEnrollmentDate"]]),tiers:c,source:"WEB"},p={id:"captainsClub",brand:"celebrity",code:"CC",name:u.instant("LOYALTY.CELEBRITY.PROGRAM_NAME"),properties:new Map([["userId","captainsClubId"],["tier","captainsClubLoyaltyTier"],["individualPoints","captainsClubLoyaltyIndividualPoints"],["relationshipPoints","captainsClubLoyaltyRelationshipPoints"]]),tiers:d,source:"WEB"},m={id:"venetianSociety",brand:"silversea",code:"VS",name:u.instant("LOYALTY.SILVERSEA.PROGRAM_NAME"),properties:new Map([["userId","venetianSocietyId"],["tier","venetianSocietyLoyaltyTier"],["individualPoints","venetianSocietyLoyaltyIndividualPoints"],["relationshipPoints","venetianSocietyLoyaltyRelationshipPoints"]]),tiers:r,source:"WEB"};return new Map([["royal",O],["celebrity",p],["silversea",m]])};
717var C=n(97127),y=n(31369),v=n(54438),l=n(68018);let h=(()=>{class u{static{this.LOYALTY_NUMBER_MAX_LENGTH=9}static{this.LOYALTY_NUMBER_MIN_LENGTH=4}constructor(d,r){this.translate=d,this.localization=r,this.brand=e.qt}get programsList(){return Array.from(a(this.translate).values())}get currentProgram(){return this.getProgramForBrand(this.brand)}getProgramForBrand(d){return a(this.translate).get(d)}getUserNumber(d,r){const O=this.getProgramNumberPropertyName(r||this.brand);return d&&O in d?d[O]:null}getProgramNumberPropertyName(d){return this.getProgramForBrand(d)?.properties.get("userId")}isLoyaltyNumberValid(d){return!!d&&"0"!==d}getLoyaltyRelationshipPoints(d,r){const p=this.getProgramForBrand(r||this.brand)?.properties.get("relationshipPoints");return p in d?d[p]:null}getLoyaltyTier(d){const O=this.currentProgram.properties.get("tier"),p=d&&d[O];return p?Array.from(this.currentProgram.tiers.values()).filter(m=>m?.id?.toLowerCase()===p.replace(/[_]/gi,"-")?.toLowerCase()).pop():null}calculateLoyaltyTier(d=0){return Array.from(this.currentProgram.tiers.values()).filter(r=>d>=r.range[0]&&d<=r.range[1]).pop()}resolveLinkingStatus(d,r){const O=this.getUserNumber(d,r);return 0!==Object.keys(d).length&&O&&"0"!==O?t.Z_.Success:t.Z_.NotSet}resolveStatusForEachBrand(d){return this.programsList.filter(r=>r.properties.get("userId")in d).reduce((r,O)=>Object.assign(r,{[O.brand]:this.resolveLinkingStatus(d,O.brand)}),{})}buildLoyaltyUpdatePayload(d,r){const O={};switch(d){case"celebrity":O.captainsClubId=r;break;case"royal":O.crownAndAnchorId=r}return O}linkingFailed(d){return d===t.Z_.Error}linkingIsPending(d){return d===t.Z_.Idle}linkingIsSuceeded(d){return d===t.Z_.Success}getUserProfile(d){const r=this.getUserNumber(d.loyaltyInformation),O=this.isLoyaltyNumberValid(r);return{vdsId:d.vdsId,email:d.uid,personal:d.personalInformation,loyalty:{number:O?r:"",points:this.getLoyaltyRelationshipPoints(d.loyaltyInformation),tier:this.getLoyaltyTier(d.loyaltyInformation)}}}getTermsAndConditionsLink(d,r){const O=d??this.brand,{language:p}=this.localization.detect();let m=r?.[O]?.[p];return m??=r?.[O]?.en,m??""}getLoyaltyDetails(d,r){const O=this.getProgramNumberPropertyName(d);return{loyaltyNumber:r.data.loyaltyInformation[O]??null,vsEnrollmentSubmitted:d===y.rI.silversea&&!!r.data.loyaltyInformation.venetianSocietyId}}getUserProfileDetails(d){const r=this.getUserNumber(d?.data?.loyaltyInformation),O=this.isLoyaltyNumberValid(r);return{vdsId:d?.data?.vdsId,email:d?.data?.email,personal:d?.data?.personalInformation,loyalty:{number:O?r:"",points:this.getLoyaltyRelationshipPoints(d?.data?.loyaltyInformation),tier:this.getLoyaltyTier(d?.data?.loyaltyInformation)}}}static{this.\u0275fac=function(r){return new(r||u)(v.KVO(l.c$),v.KVO(C.P))}}static{this.\u0275prov=v.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},96721:(J,U,n)=>{"use strict";n.d(U,{t:()=>O});var t=n(18810),e=n(7673),a=n(45312),C=n(99437),y=n(97127),v=n(65151),l=n(15231),h=n(31369),u=n(21148),c=n(87343),d=n(54438),r=n(21626);let O=(()=>{class p{constructor(s,o,f,M){this.http=s,this.localizationService=o,this.splunkService=f,this.featureFlagsService=M,this.language=this.localizationService.detect()?.language}link(s){return this.http.put(a.f0+"/v1/guestAccounts/loyalty",s,l.zy).pipe((0,C.W)(f=>this.onLinkingError(f)))}linkCard(s){return this.http.post(a.f0+"/v1/guestAccounts/loyalty/coBrandReward",s,l.zy).pipe((0,C.W)(f=>this.onLinkingError(f)))}enroll(s){return this.http.post(""+(a.f0+`/${this.language}/${a.qt}/web/v1/guestAccounts/loyalty/enrollment`),s,l.zy).pipe((0,C.W)(f=>this.onEnrollError(f)))}onEnrollError(s){return(0,t.$)(422===(s.status??null)&&"birthdate"===(s.error?s.error.errors[0].validationErrors[0].element:null)?()=>"ERROR_BIRTHDATE":()=>s)}onLinkingError(s){const o=s?.error?.errors?.[0].errorCode,f={status:s.status,errorCode:o&&""!==o.trim()?o:"no value",endPoint:s.url};return(0,t.$)(()=>({error:f}))}getLoyaltyPageContentFromAem(s){const o=`/${this.language}/${s.brand}/web/v2/content-services/loyalty-hub`,f={programTier:s.programTier};
717return s.programTier===h.jS.LOYALTY&&(a.qt===h.rI.silversea&&(f.mysilversea=!0),s.brand===h.rI.royal&&this.featureFlagsService.isLDFlagEnabled(u.mA.ENABLE_CA_CATEGORY_CHANGES)&&(f.newBenefitCategory=!0)),this.http.get(`${a.qH.API_PATH+o}`,{params:f,headers:{AppKey:a.qH.AppKey}}).pipe((0,C.W)(M=>{const x=this.splunkService.initializeContext("error",M);return this.splunkService.errorByLookUp("CP-0332-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_PAST_BOOKINGS_BASE_LOYALTY",{context:x}),(0,e.of)(M)}))}getCommunityContentFromAem(s=a.qt){return this.http.get(""+(a.qH.API_PATH+`/${this.language}/${s}/web/v2/content-services/loyalty-hub`),{params:{programTier:h.jS.LOYALTY,isCommunity:!0},headers:{AppKey:a.qH.AppKey}}).pipe((0,C.W)(M=>{const x=this.splunkService.initializeContext("error",M);return this.splunkService.errorByLookUp("CP-0332-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_PAST_BOOKINGS_BASE_LOYALTY",{context:x}),(0,e.of)({payload:null,status:M?.status??500})}))}getLoyaltyProgramsInfo(s){return this.http.get(""+(a.f0+`/${this.language}/${s}/web/v1/guestAccounts/loyalty/info`),l.zy).pipe((0,C.W)(f=>{const M=this.splunkService.initializeContext("error",f);return this.splunkService.errorByLookUp("CP-0332-PROFILE_BOOKING_FAILED-UNEXPECTED_ERROR_PAST_BOOKINGS_BASE_LOYALTY",{context:M}),(0,e.of)(f)}))}static{this.\u0275fac=function(o){return new(o||p)(d.KVO(r.Qq),d.KVO(y.P),d.KVO(v.P),d.KVO(c.f))}}static{this.\u0275prov=d.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})()},63003:(J,U,n)=>{"use strict";n.d(U,{B:()=>e});var t=n(54438);let e=(()=>{class a{constructor(){this.modals=new Map}add(y,v){this.modals.set(y,v)}remove(y){this.modals.has(y)&&this.modals.delete(y)}open(y){this.modals.has(y)&&this.modals.get(y).show()}dismiss(y){this.modals.has(y)&&this.modals.get(y).hide()}confirm(y){return this.modals.get(y).activate()}show(y){this.modals.get(y).activate()}isVisible(y){const v=this.modals.get(y);return v&&v.visible}static{this.\u0275fac=function(v){return new(v||a)}}static{this.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},84759:(J,U,n)=>{"use strict";n.d(U,{B:()=>C});var t=n(40605),e=n(77218),a=n(54438);let C=(()=>{class y{constructor(l){this.ngZone=l,this.sessionId=null}initialize(){this.pollForSessionId()}pollForSessionId(){this.ngZone.runOutsideAngular(()=>{const h=(0,t.Y)(500).subscribe(()=>{const u=window.QuantumMetricAPI;if(u&&"function"==typeof u.getSessionID){const c=u.getSessionID(),d=e.Ay.getSessionId();c&&this.ngZone.run(()=>{this.sessionId=c,e.Ay.setGlobalAttributes({"qm.session.id":c}),u.sendEvent(355,0,d),h.unsubscribe()})}})})}getSessionId(){return this.sessionId}static{this.\u0275fac=function(h){return new(h||y)(a.KVO(a.SKi))}}static{this.\u0275prov=a.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},3199:(J,U,n)=>{"use strict";n.d(U,{A:()=>y});var t=n(54438),e=n(11988),a=n(91696),C=n(59640);let y=(()=>{class v{constructor(h){this.store=h,this.confirmCheck$=this.store.select(e.xr),this.findCheck$=this.store.select(e.yn),this.cruiseCheck$=this.store.select(e.Ao),this.numberCheck$=this.store.select(e.iu),this.reservationData=this.store.selectSignal(e.aj),this.passengersData=(0,t.EWP)(()=>this.reservationData().findSuccess?.bookings?.flatMap(u=>u.passengers)||[]),this.step=(0,t.EWP)(()=>(this.passengersData()?.length??0)>0?"verify":"form")}confirmCheck(h){this.store.dispatch(a.y.confirmCheck({payload:h}))}confirmSuccess(h){this.store.dispatch(a.y.confirmSuccess({payload:h}))}confirmFail(h){this.store.dispatch(a.y.confirmFail({payload:h}))}skipConfirmPassengers(h){this.store.dispatch(a.y.skipConfirmPassengers({payload:h}))}findCheck(h){this.store.dispatch(a.y.findCheck({payload:h}))}numberCheck(h){this.store.dispatch(a.y.numberCheck({payload:h}))}static{this.\u0275fac=function(u){return new(u||v)(t.KVO(C.il))}}static{this.\u0275prov=t.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},2203:(J,U,n)=>{"use strict";n.d(U,{E:()=>O});var t=n(21626),e=n(96354),a=n(99437),C=n(18810),y=n(45312),v=n(70222),l=n(15231),h=n(97127),u=n(27865),c=n(93259),d=n(54438),r=n(83458);let O=(()=>{class p{constructor(s,o,f,M,x,b){this.httpTelemetry=s,this.http=o,this.utilityService=f,this.localization=M,this.urls=x,this.datesService=b,this.baseUrl="/v1/cruiseBookingSummaries"}getByNumber(s){const f=(new t.Nl).set("lastName",s.lastName).set("bookingIds",s.bookingId).set("brand",s.brand??y.vN),M={...l.zy,params:f};return this.http.get(`${y.f0}/v1/cruiseBookingSummaries`,M)}putBookingProfile(s){return this.http.put(y.f0+"/v1/profileBookings/primaryProfileBooking",s.confirmedBooking,l.zy)}bookingsForProfile(s){return this.http.get(""+(y.f0+`/v1/profileBookings/${s}?brand=${y.vN}`),l.zy)}getShips(){const o=l.zy.headers?l.zy.headers.get("appkey"):"",f={...l.zy};if(!this.utilityService.isAValidAppkey(o)){const M=this.utilityService.getValidHeaders();f.headers=M}return this.httpTelemetry.get(`${y.f0}/en/royal/web/v2/ships`,f).pipe((0,e.T)(M=>M?.payload.ships.sort((x,b)=>x.name.localeCompare(b.name)).map(x=>({value:x.shipCode,name:x.name}))))}manageReservationUrlEncrypt(s){return this.getEncryptCipher(s).pipe((0,e.T)(o=>
717{if(o)return`${this.urls.get("MANAGE_RESERVATION_REDIRECT")}?cipher=${o}`;throw new Error("Token is empty or not available")}),(0,a.W)(o=>(0,C.$)(()=>o)))}getEncryptCipher(s){const o=this.localization.resolveCountry(),f=this.localization.getLocaleCode(),M=3===o.length?o:this.localization.countryToISOAlpha3(o),x=this.urls.get("MANAGE_RESERVATION_ENCRYPT"),b=this.datesService.parseDate({date:s.sailDate,entryFormat:this.datesService.getServerFormatDate(),format:"YYYY-MM-DD"}),G={params:(new t.Nl).set("lastName",s.lastName).set("bookingId",s.bookingId).set("shipCode",s.shipCode).set("sailDate",b).set("countryCode",M).set("locale",f).set("lock","false"),responseType:"text"};return this.http.get(`${x}`,G)}static{this.\u0275fac=function(o){return new(o||p)(d.KVO(r.ld),d.KVO(t.Qq),d.KVO(v.Q),d.KVO(h.P),d.KVO(u.a),d.KVO(c.f))}}static{this.\u0275prov=d.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})()},15231:(J,U,n)=>{"use strict";n.d(U,{O9:()=>d,Qo:()=>y,zy:()=>v});var t=n(21626),e=n(45312),a=n(62087),C=n(18810);const y=(new t.Lr).set("X-Requested-With","XMLHttpRequest").set("AppKey",e.CV),v={headers:y,params:new t.Nl},d=((new t.Lr).set("X-Requested-With","XMLHttpRequest").set("AppKey",e.ah),new t.Nl,(new t.Lr).set("AppKey",e.qH.AppKey),y.append("Content-Type","application/json"),new t.Nl,(O,p)=>{let m;return m=O.status?p?r(O.status,p,O.error&&O.error.errors?O.error.errors[0].errorCode:O):r(O.status):null,O instanceof a.M&&(m="ERRORS.SERVER_500"),m||(m="ERRORS.NO_CONNECTION"),(0,C.$)(m)});function r(O,p,m){let s="";p&&(s=p);const f=`ERRORS.${s}.SERVER_404`;switch(O){case 0:return"ERRORS.NO_CONNECTION";case 404:return m&&"string"==typeof m?`${f}_${m}`:f;case 403:case 422:return"ERRORS.SERVER_422";default:return"ERRORS.SERVER_500"}}},15829:(J,U,n)=>{"use strict";n.d(U,{q:()=>a});var t=n(54438),e=n(54441);let a=(()=>{class C{constructor(){this.authService=(0,t.WQX)(e.u)}sessionExpirationModalOption(){return JSON.stringify({showWarningModal:!0,minutesToExpiration:20,showExpiredSessionModal:!0})}onSessionNotExtended(){this.authService.logout("/signin")}onSessionTimeoutModalRequestSignIn(){this.authService.logout("/signin")}static{this.\u0275fac=function(l){return new(l||C)}}static{this.\u0275prov=t.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},69179:(J,U,n)=>{"use strict";n.d(U,{Q:()=>h});var t=n(45312),e=n(85259),a=n(54438),C=n(95726);let y=(()=>{class u{constructor(){this.localStorage=(0,a.WQX)(C.s),this.charset="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz._~"}create(d){let r="";for(;d>0;){const O=new Uint8Array(16),m=(window.crypto||window.msCrypto).getRandomValues(O);for(let s=0;s<m.length&&d>0;s++)m[s]<this.charset.length&&(r+=this.charset[m[s]],d--)}return r}persist(d,r){return this.localStorage.set(d,r)}static{this.\u0275fac=function(r){return new(r||u)}}static{this.\u0275prov=a.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();var v=n(35839),l=n(74013);let h=(()=>{class u{static{this.CLOCK_SKEW_MS=6e4}constructor(d,r,O,p){this.cookies=d,this.windowRef=r,this.loyaltyRepo=O,this.nonce=p,this.sessionNonceKey=t.ML.security.sessionNonce,this.stateNonceKey=t.ML.security.stateNonce}isSessionActive(){const d=this.getAccessToken();return!!d&&this.isTokenValid(d)}isPresentLoyaltyCookie(){return!!this.cookies.getCookie(t.ym.loyaltyData)}getAccessToken(){return this.cookies.getCookie(t.ym.accessToken)}notifyAccessTokenCookieChanges(){return this.cookies.onCookieChanged(t.ym.accessToken)}getVdsIdFromAccessToken(){const d=this.getAccessToken();if(d){const r=this.decodeToken(d);if(!r)return null;const O=m=>r&&r[m],p=O("sub")||O("vdsid")||O("VDS_ID")||O("VDSID")||O("accountId")||O("uid")||null;if(p){try{if(!this.cookies.getCookie("VDS_ID")){const s=this.getRemainingTokenTTL(d);s>0&&this.cookies.setCookie("VDS_ID",p,s/6e4)}}catch{}return p}}return null}validateSessionToken(){const d=this.getAccessToken();return!!d&&this.isTokenValid(d)}decodeToken(d,r=1){try{const p=d.split(".")[r].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(this.windowRef.nativeWindow.atob(p))}catch{return null}}getTokenExpirationDate(d){const O=this.decodeToken(d).exp;if(!O)throw new Error("Invalid date");return new Date(1e3*O)}isTokenValid(d){if(!d)return!1;try{return this.getTokenExpirationDate(d).getTime()>=Date.now()-u.CLOCK_SKEW_MS}catch{return!1}}getRemainingTokenTTL(d){if(!d)return 0;try{return this.getTokenExpirationDate(d).getTime()-Date.now()}catch{return 0}}shouldRefreshToken(){return this.getRemainingTokenTTL(this.getAccessToken())<=t.uP}setAuthenticationCookies(d){if(!d)throw new Error;let r=this.cookies.getCookie(t.oc.hasLoginOnce);
717r="true"===r,r||this.cookies.setCookie(t.oc.hasLoginOnce,"true");const O=this.getTokenExpirationDate(d);this.cookies.setCookie(t.ym.accessToken,d,O)}clearAutoLoginCookie(){this.cookies.removeCookie(t.ym.autoLoginCookie)}clearAuthCookies(){this.cookies.removeCookie(t.ym.accessToken),this.cookies.removeCookieRegardlessDomain(t.ym.accessToken),this.cookies.removeCookie(t.ym.rcclssocookie),this.cookies.removeCookie(t.ym.autoLoginCookie),this.cookies.removeCookie(t.ym.idToken)}clearAllCookies(){Object.keys(t.ym).forEach(d=>{this.cookies.removeCookie(t.ym[d])}),this.cookies.removeCookie(t.ML.cookies.rememberMe.name),this.clearAllCookiesRegardlessDomain()}clearAllCookiesRegardlessDomain(){Object.keys(t.ym).forEach(d=>{d===t.ym.olciData&&this.cookies.removeCookieRegardlessDomain(t.ym[d])})}setMigrationFlag(d){this.cookies.setCookie("isLegacyUser",d.toString())}setRememberMe(d){const r=t.ML.cookies.rememberMe.name;d?this.cookies.setCookie(r,!0===d?"true":"false",t.ML.cookies.rememberMe.duration):this.cookies.removeCookie(r)}getMigrationFlag(){return"true"===this.cookies.getCookie("isLegacyUser")}setLoyaltyInformationCookie(d){const r=this.loyaltyRepo.getLoyaltyTier(d.loyaltyInformation),O=r?r.id:null,s={firstName:encodeURIComponent(d.personalInformation.firstName),lastName:encodeURIComponent(d.personalInformation.lastName),email:d?.contactInformation?.email,loyaltyId:d.loyaltyInformation[this.loyaltyRepo.getProgramNumberPropertyName(t.qt)],loyaltyLevel:O},o=Object.keys(s).map(M=>`${M}=${s[M]||null}`).join("|"),f=this.getRemainingTokenTTL(this.getAccessToken());f>0&&this.cookies.setCookie(t.ym.loyaltyData,o,f/6e4)}setOlciDataCookie(d){if(!d||!d.bookingId)return;const r=`eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.${window.btoa(JSON.stringify(d))}`;this.cookies.setCookie(t.ym.olciData,r)}clearOlciDataCookie(){this.cookies.removeCookie(t.ym.olciData),this.cookies.removeCookieRegardlessDomain(t.ym.olciData)}createSessionNonce(d){const r=this.nonce.create(d);return this.nonce.persist(this.sessionNonceKey,r),r}createStateNonce(d){const r=this.nonce.create(d);return this.nonce.persist(this.stateNonceKey,r),r}static{this.\u0275fac=function(r){return new(r||u)(a.KVO(v.r),a.KVO(l.W),a.KVO(e.J),a.KVO(y))}}static{this.\u0275prov=a.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},65151:(J,U,n)=>{"use strict";n.d(U,{P:()=>l});var t=n(44128),e=n(55372),a=n(45312),C=n(70222),y=n(54438),v=n(83458);let l=(()=>{class h{constructor(c,d,r){this.cookieService=c,this.telemetryContext=d,this.utilsService=r,this.automationBotCookieName="automation-bot",this.syntheticMonitoring="synthetic-monitoring",this.telemetryContext?.telemetryConfig?.config?.appVers&&(this.telemetryContext.telemetryConfig.config.appVers=document?.documentElement?.dataset?.branch??"1.0.0"),this.errorAPI=new e.u2}dispatchEvent(c,d){try{if(!this.telemetryContext?.dispatch?.emit)return void console.warn("Telemetry context not properly initialized");const r=new t.rc({data:c,subType:d,actionType:t.X2.TriggerEvent});this.telemetryContext.dispatch.emit(r)}catch(r){console.error("Error dispatching telemetry event:",r)}}logEvent(c,d){this.dispatchEvent(c,d)}errorByLookUp(c,d){const O=this.getTelemetryError(c,d);return this.dispatchEvent(O,t.Vw.Error),O}getTelemetryError(c,d){const r=this.errorAPI.findRuntimeError(c);return new t.$D({tag:r.tag,errId:r.code,group:r.group,errMsg:r.label,stack:d&&d.stack,context:d&&d.context})}isAutomationBot(){return""!==this.cookieService.get(this.automationBotCookieName)}isSyntheticTest(){return""!==this.cookieService.get(this.syntheticMonitoring)}initializeContext(c,d){const r=this._initialContext();return r[c]=d,r}initializeManyContext(c,d){const r=this._initialContext();for(let O=0;O<c.length;O++)r[c[O]]=d[O];return r}flush(){this.telemetryContext.flush()}debugEnabled(){return!0===this.telemetryContext?.config?.debug?.isEnabled}normalizeValue(c){return null!=c?c.replace('"',""):c}getGlobalContextVariables(c,d){const r=this.initializeManyContext(["fullPath","brand"],[this.normalizeValue(window.location.href),this.normalizeValue(a.qt)]);if(null!==c)for(let O=0;O<c.length;O++)r[c[O]]=d[O];return r}createErrorHandlerContext(c,d){return this.initializeManyContext(["path","brand","device","session",c],[this.normalizeValue(window.location.href),this.normalizeValue(a.qt),this.telemetryContext.deviceInfo,this.normalizeValue(this.telemetryContext.sessionId),d])}trackServiceError(c,d){const r=this.initializeContext("error",d);this.errorByLookUp(c,r)}extractTelemetyAnalyticsError(c,d,r,O=""){const p=this.initializeManyContext(["error","message"],[c,O]),m=this.errorByLookUp(r,{context:p});return{errorCode:m.errId,backendError:`statusCode:${c.status}|endPoint:${c.url}`,errorIdentifier:m.eventId,errorMsg:`Failure:${d}`}}
717_initialContext(){const c={};return c.laneColor=this.utilsService.getLaneColor(),c.cookiesSize=this.cookieService.getCookiesSize(),c[this.automationBotCookieName]=String(this.isAutomationBot()),c[this.syntheticMonitoring]=String(this.isSyntheticTest()),c}static{this.\u0275fac=function(d){return new(d||h)(y.KVO(v.D3),y.KVO(v.ow),y.KVO(C.Q))}}static{this.\u0275prov=y.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()},65075:(J,U,n)=>{"use strict";n.d(U,{u:()=>C});var t=n(66693),e=n(45312),a=n(54438);let C=(()=>{class y{constructor(){this.stateroomDescriptions=t.HW,this.brand=e.qt}descriptionForCode(l){return this.stateroomDescriptions.get(this.brand).get(l)||""}getStateroomType(l){return{code:l,description:this.descriptionForCode(l)}}isStateroomNumberMasked(l){return"GTY"===l}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275prov=a.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},92707:(J,U,n)=>{"use strict";n.d(U,{P:()=>h});var t=n(54438),e=n(60177),a=n(30803),C=n(5964),y=n(77969);const v=["ecid","emsc","empc","source","lnkid","rid","cid","mid"],l="tracking-params";let h=(()=>{class u{constructor(){this.sessionStorage=(0,t.WQX)(y.R),this.router=(0,t.WQX)(a.Ix),this.location=(0,t.WQX)(e.aZ),this.persisting=!1}captureFromCurrentUrl(){const d=new URLSearchParams(window.location.search),r={};if(v.forEach(m=>{const s=d.get(m);null!==s&&(r[m]=s)}),0===Object.keys(r).length)return;const O=this.getStoredParams(),p={...r,...O};this.sessionStorage.set(l,JSON.stringify(p))}startPersisting(){this.persisting||(this.persisting=!0,this.router.events.pipe((0,C.p)(d=>d instanceof a.wF)).subscribe(d=>{const r=this.mergeInto(d.urlAfterRedirects);r!==d.urlAfterRedirects&&this.location.replaceState(r)}))}getStoredParams(){const d=this.sessionStorage.get(l);try{return d?JSON.parse(d):{}}catch{return{}}}mergeInto(d){const r=this.getStoredParams(),O=Object.entries(r);if(0===O.length)return d;const[p,m]=d.split("?"),s=new URLSearchParams(m??"");let o=!1;return O.forEach(([f,M])=>{s.has(f)||(s.set(f,M),o=!0)}),o?`${p}?${s.toString()}`:d}static{this.\u0275fac=function(r){return new(r||u)}}static{this.\u0275prov=t.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},70135:(J,U,n)=>{"use strict";n.d(U,{I:()=>f});var t=n(54438),e=n(59640),a=n(66855),C=n(37941),y=n(66693),v=n(93259),l=n(65075),h=n(27865),u=n(97127),c=n(61431),d=n(85014),r=n(61829),O=n(27468),p=n(96697),m=n(45312),s=n(31369),o=n(65813);let f=(()=>{class M{constructor(){this.voyageFacade=(0,t.WQX)(a.L),this.bookingFacade=(0,t.WQX)(C.Z),this.dateService=(0,t.WQX)(v.f),this.stateroomService=(0,t.WQX)(l.u),this.ZERO_DURATION="P0Y0M0DT0H0M0S",this.urls=(0,t.WQX)(h.a),this.localization=(0,t.WQX)(u.P),this.loadingFacade=(0,t.WQX)(c.x),this.store=(0,t.WQX)(e.il),this.bookingsRepository=(0,t.WQX)(r.I),this.webConfigService=(0,t.WQX)(o.s),this.brand=m.qt,this.isSupportedBrand=(0,t.EWP)(()=>this.brand===s.rI.royal||this.brand===s.rI.celebrity),this.upcomingBookingIds=(0,t.EWP)(()=>{const b=this.getUpcomingTrips();return b?.length?b.flatMap(F=>F.bookings??[]).map(F=>F.bookingId).filter(F=>!!F).sort((F,G)=>F.localeCompare(G)):[]},{equal:(b,F)=>{if(b.length!==F.length)return!1;for(let G=0;G<b.length;G++)if(b[G]!==F[G])return!1;return!0}}),this.getUpcomingTrips=(0,t.EWP)(()=>{const b=this.voyageFacade.voyages();return Object.keys(b).map(F=>{const G=b[F],w=this.dateService.parseDate({date:G.sailDate,entryFormat:"YYYYMMDD",format:"MMM D, YYYY"}),S=this.dateService.parseDate({date:G.sailingEndDate,entryFormat:"YYYYMMDD",format:"MMM D, YYYY"});return{...G,formatedStarDate:w,formatedEndDate:S}}).sort(this.sortVoyages.bind(this)).map(F=>({voyage:F,bookings:this.getBookingsForVoyage(F)(),bookingStage:this.getBookingStageOLCI(F)})).filter(F=>F.bookings.length>0)}),this.getPastTrips=(0,t.EWP)(()=>{const b=this.voyageFacade.pastSailings();return Object.keys(b).map(G=>{const w=b[G],V=(W=String(w.sailingDate),/^\d{8}$/.test(W)?new Date(Date.UTC(Number(W.slice(0,4)),Number(W.slice(4,6))-1,Number(W.slice(6,8)))):new Date(W)),E=this.dateService.parseDate({date:w.sailingDate,entryFormat:"YYYYMMDD",format:"MMM D, YYYY"}),L=this.dateService.addDaysToDate(V,Number(w.itineraryNightsQuantity)),D=`${L.getFullYear()}${String(L.getMonth()+1).padStart(2,"0")}${String(L.getDate()).padStart(2,"0")}`,k=this.dateService.parseDate({date:D,entryFormat:"YYYYMMDD",format:"MMM D, YYYY"}),X=w.sailingDate;var W;return{...w,formatedStarDate:E,formatedEndDate:k,sailDate:X}}).sort((G,w)=>this.sortVoyages(w,G)).map(G=>({voyage:G,bookings:this.getPastBookingsForVoyage(G),bookingStage:this.getBookingStageOLCI(G)}))}),this.getFirstUpcomingTrip=(0,t.EWP)(()=>{const b=this.getUpcomingTrips();return b.length>0?b[0]:null}),(0,t.QZP)(()=>
717{if(!this.isSupportedBrand())return;const b=this.upcomingBookingIds();b.length&&(0,O.p)(b.map(F=>this.bookingsRepository.isEdocLoaded(F).pipe((0,p.s)(1)))).subscribe(F=>{F.some(G=>!G)&&this.store.dispatch(d.zK.fetchBookingEdocs({payload:b}))})},{allowSignalWrites:!0})}getVoyageForBooking(b){const F=this.getVoyagKeyFromBooking(b);return this.voyageFacade.getVoyageById(F)}getBookingsForVoyage(b){return(0,t.EWP)(()=>{const F=this.bookingFacade.bookings(),G=this.getVoyageKey(b);return Object.keys(F).map(w=>{const S=F[w];return{...S,stateroomTypeName:this.stateroomService.descriptionForCode(S.stateroomType)}}).filter(w=>this.getVoyagKeyFromBooking(w)===G)})}getPastBookingsForVoyage(b){return[{bookingId:b.bookingId,stateroomNumber:b.cabinNumber||"",deckNumber:(4===b?.cabinNumber?.length?b.cabinNumber.slice(0,1):5===b.cabinNumber?.length?b.cabinNumber?.slice(0,2):"")||"",points:b.points||"0"}]}getDaysUntilDeparture(b){const F=this.dateService.parseDate({date:b,entryFormat:this.dateService.getServerFormatDate(),format:this.dateService.getUsDateFormat()});return this.dateService.getDaysFromNow(F)}getBookingStageOLCI(b){const{checkinStart:F=this.ZERO_DURATION,isCheckinAvailable:G=!1,isOlciEnabled:w=!1,checkinWindowRemainingTime:S=this.ZERO_DURATION,sailDate:V=null}=b||{},E=this.getDaysUntilDeparture(V),L=S===this.ZERO_DURATION;return this.isCheckinNotAvailableButScheduled(G,F!==this.ZERO_DURATION,L)||this.isCheckinAvailableButDisabled(G,w)?y.Lc.HasNotOpened:this.isCheckinWindowOpen(G,L)?y.Lc.Opened:this.shouldUseInAppCheckin(L,E)?y.Lc.CloseInApp:(this.hasCruiseSailed(E),y.Lc.CruiseSailed)}getVoyagKeyFromBooking(b){if(!b?.sailDate||!b?.shipCode)return null;const F=b.sailDate.replace(/[-_]/g,"");return`${b.shipCode}-${F}`}getVoyageKey(b){return`${b.shipCode}-${b.sailDate}`}isBookingActiveOrBooked(b){return b&&[y.$e.Active,y.$e.Booked].includes(b.bookingStatus)}isCheckinNotAvailableButScheduled(b,F,G){return!b&&F&&G}isCheckinAvailableButDisabled(b,F){return b&&!F}isCheckinWindowOpen(b,F){return b&&!F}shouldUseInAppCheckin(b,F){return b&&F>=0}hasCruiseSailed(b){return b<0}sortVoyages(b,F){const G=this.dateService.parseDate({date:b.sailDate,entryFormat:"YYYYMMDD",format:"YYYY-MM-DD"}),w=this.dateService.parseDate({date:F.sailDate,entryFormat:"YYYYMMDD",format:"YYYY-MM-DD"});return new Date(G).valueOf()-new Date(w).valueOf()}redirectToCruisePlanner(b){this.loadingFacade.addToLoadingQueue(),window.location.href=`${this.urls.list?.PLAN_MY_CRUISE}?bookingId=${b.bookingId}&shipCode=${b.shipCode}&sailDate=${b.sailDate}`}redirectToManageReservation(b){this.loadingFacade.addToLoadingQueue(),window.location.href=`${this.urls.list?.MANAGE_RESERVATION}?token=${b.amendToken}`}redirectToPayment(b){this.loadingFacade.addToLoadingQueue();const w=this.resolveGlobalMarketLocale((this.webConfigService.webConfig?.globalMarkets??{})[b.bookingOfficeCountryCode]);window.location.href=w?`${this.urls.list?.PAYMENT_REDIRECT}?country=${b.bookingOfficeCountryCode}&language=${w}&token=${b.amendToken}&selectedCurrencyCode=${b.bookingCurrency}`:this.bookingsRepository.bookingsPaymentUrl(b)}resolveGlobalMarketLocale(b){if(!b?.length)return;const F=this.localization.resolveLanguage();return b.includes(F)?F:void 0}static{this.\u0275fac=function(F){return new(F||M)}}static{this.\u0275prov=t.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},41631:(J,U,n)=>{"use strict";n.d(U,{Y:()=>d});var t=n(54438),e=n(83458),a=n(61594),C=n(88141),y=n(96354),v=n(99437),l=n(18810),h=n(45312),u=n(70222);const c=["/guestAccounts/password/token/validate","/guestAccounts/password/forgot","/guestAccounts/password/reset","/web/v3/agreement"];let d=(()=>{class r{constructor(){this.http=(0,t.WQX)(e.lU),this.utilityService=(0,t.WQX)(u.Q),this._unauthenticatedPaths=(0,t.vPA)([]),this._pathsLoaded=(0,t.vPA)(!1)}static{this.UNAUTHENTICATED_PATHS_CACHE_KEY="HTTP_CACHE_UNAUTHENTICATED_PATHS"}get unauthenticatedPaths(){return this._unauthenticatedPaths.asReadonly()}get pathsLoaded(){return this._pathsLoaded.asReadonly()}loadUnauthenticatedPaths(){return this.http.get(`${h.QY}/core/unauthenticated-paths.json`,(0,e.nT)({key:r.UNAUTHENTICATED_PATHS_CACHE_KEY})).pipe((0,a.$)(),(0,C.M)(({payload:m})=>{const s=m?.unauthenticatedPaths||[...c];this._unauthenticatedPaths.set(s),this._pathsLoaded.set(!0)}),(0,y.T)(()=>this.pathsLoaded()),(0,v.W)(m=>(0,l.$)(()=>this.utilityService.extractServiceError(m))))}static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275prov=t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},27865:(J,U,n)=>{"use strict";n.d(U,{a:()=>y});var t=n(21626),e=n(45312),a=n(65151),C=n(54438);let y=(()=>{class v{constructor(h){this.splunkService=h}initialize(h,u){const c=`${h}_${u}`.toUpperCase();this.urlList=e.tl[c]||e.tl.BASE_URLS}get list(){return this.urlList}get(h,u){h in this.urlList||this.splunkService.errorByLookUp("CP-0910-URL-NOT_FOUND",{context:this.splunkService.initializeContext("message",`Url with id "${h}" was not found`)});let c=this.urlList[h];return u&&"queryParams"in u&&(c=this.appendQueryParams(c,u)),c}appendQueryParams(h,{queryParams:u}){const c=Object.keys(u).reduce((d,r)=>d.append(r,u[r]),new t.Nl);return h.concat(`?${c.toString()}`)}static{this.\u0275fac=function(u){return new(u||v)(C.KVO(a.P))}}static{this.\u0275prov=C.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},41799:(J,U,n)=>{"use strict";n.d(U,{M:()=>a});var t=n(10467),e=n(54438);let a=(()=>{class C{constructor(){this.utagScriptSrc="",this.utagAlreadyFetched=!1,window.utag_cfg_ovrd={noview:!0},window.utag_data={},document.cookie="utagdb=false;"}getScript(v,l){const h=document,u={callback:l};if(typeof v>"u")return;const c=h.createElement("script");c.language="javascript",c.type="text/javascript",c.async=!0,c.src=v,"function"==typeof u.callback&&h.addEventListener&&c.addEventListener("load",()=>u.callback(),!1);const d=h.getElementsByTagName("script")[0];d?d.parentNode.insertBefore(c,d):document.getElementsByTagName("head")[0].appendChild(c)}setConfig(v){void 0!==v.account&&void 0!==v.profile&&void 0!==v.environment&&(this.utagScriptSrc=`${v.host}/${v.path}/${v.account}/${v.profile}/${v.environment}/${v.utagFile}`),this.utagAlreadyFetched||(this.utagAlreadyFetched=!0,this.get
717Script(this.utagScriptSrc))}track(v,l){""!==this.utagScriptSrc?void 0!==window.utag||this.utagAlreadyFetched?window.utag&&window.utag.track(v,l):(this.utagAlreadyFetched=!0,this.getScript(this.utagScriptSrc,()=>{window.utag&&window.utag.track(v,l)})):console.error("Tealium config not set.")}getScriptAsync(){return new Promise(v=>{this.getScript(this.utagScriptSrc,v)})}ensureScript(){var v=this;return(0,t.A)(function*(){void 0===window.utag&&!v.utagAlreadyFetched&&(yield v.getScriptAsync())})()}link(v){var l=this;return(0,t.A)(function*(){yield l.ensureScript(),yield l.invokeLink(v)})()}invokeLink(v){return new Promise((l,h)=>{try{window.utag&&window.utag.link(v,l)}catch(u){h(u)}})}view(v){var l=this;return(0,t.A)(function*(){yield l.ensureScript(),yield l.invokeView(v)})()}invokeView(v){return new Promise((l,h)=>{try{window.utag&&window.utag.view(v,l)}catch(u){h(u)}})}trackEventAction(v,l,h,u="interaction"){const c={eventType:u,interaction:h};v&&(c[v]=l),this.track("link",c)}trackPageInteraction(v){this.track("link",{eventType:"interaction",interaction:"guestaccount:"+v})}trackEventType(v){this.track("link",{eventType:v})}trackPageError(v){this.track("link",{eventType:"pageError",pageErrorDescription:"guestaccount:"+v})}trackFieldSuccess(v){this.track("link",{eventType:"fieldComplete",fieldList:"guestaccount:"+v})}static{this.\u0275fac=function(l){return new(l||C)}}static{this.\u0275prov=e.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},10324:(J,U,n)=>{"use strict";n.d(U,{rY:()=>u});var t=n(45312);const e="id-silversea-to-parent",a="1.0.0",C=150,y=[200,600,1e3],v=10;function u(){if(window.self===window.top)return()=>{};let c=null;const d=[],r=document.querySelector(".layout__content"),O=r??document.body;let p=null;const m=()=>{const M=r??document.documentElement??document.body;!function h(c,d=function l(){return new URL(t.Fh.URLS?.BASE_URLS?.HOME||t.W6,t.W6).origin}()){window.parent.postMessage({source:e,version:a,action:c.action,detail:c.detail,timestamp:Date.now()},d)}({action:"resize",detail:{height:Math.max(M.scrollHeight,M.offsetHeight,M.clientHeight)+v,scrolling:"no"}})},s=()=>{null!==c&&clearTimeout(c),c=setTimeout(m,C)};p=requestAnimationFrame(m);for(const M of y)d.push(setTimeout(m,M));let o=null,f=null;return typeof ResizeObserver<"u"?(o=new ResizeObserver(s),o.observe(O)):(f=s,window.addEventListener("resize",f)),()=>{null!==o&&o.disconnect(),null!==f&&window.removeEventListener("resize",f),null!==p&&(cancelAnimationFrame(p),p=null);for(const M of d)clearTimeout(M);null!==c&&(clearTimeout(c),c=null)}}},70222:(J,U,n)=>{"use strict";n.d(U,{Q:()=>p});var t=n(21626),e=n(54438),a=n(45312),C=n(97127),y=n(74013),v=n(93259),l=n(68018),h=n(97586),c=n(59030),d=n(33726),r=n(70152),O=n(96354);let p=(()=>{class m{constructor(){this.windowRef=(0,e.WQX)(y.W),this.isMobileResize$=(0,c.v)(()=>(0,d.R)(this.windowRef.nativeWindow,"resize").pipe((0,r.B)(100),(0,O.T)(()=>this.isMobileViewport()))),this.localization=(0,e.WQX)(C.P),this.dateService=(0,e.WQX)(v.f),this.translate=(0,e.WQX)(l.c$),this.EMAIL_LOCAL_CHARS="[^<>()\\[\\]\\\\.,;:\\s@\"!\xa1\xac\xb0#$%&'*+/\xbf?`{|}~\xe1\xe0\xe2\xe4\xc1\xc0\xc2\xc4\xe9\xe8\xea\xeb\xc9\xc8\xca\xcb\xed\xec\xee\xef\xcd\xcc\xce\xcf\xf3\xf2\xf4\xf6\xd3\xd2\xd4\xd6\xfa\xf9\xfc\xfb\xda\xd9\xdc\xdb\xf1\xd1'\xb4\u02c6\xa8^`\xe3\u0113\u0117\u0119\xff\u016b\u012b\u0153\xf8\u014d\xf5\u015b\u0161\u017e\u017a\u017c\xe7\u0107\u010d\u0144\xc3\u0112\u0116\u0118\u0178\u016a\u012a\u0152\xd8\u014c\xd5\u015a\u0160\u017d\u0179\u017b\xc7\u0106\u010c\u0143]",this.EMAIL_DOMAIN_CHARS="[a-zA-Z\\-0-9]+",this.EMAIL_REGEX=new RegExp(`^(((${this.EMAIL_LOCAL_CHARS}+)([a-zA-Z0-9$^\\-_.+]+)))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(((${this.EMAIL_DOMAIN_CHARS})\\.)+[a-zA-Z]{2,}))$`),this.phoneNumberRegex=new RegExp(/(\+?1[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{3}[-.\s]?\d{4}/g)}cleanPhoneNumber(o){return o?o.replace(/[-+()]/g,""):""}getLaneColor(){if(this.windowRef?.nativeWindow?.location?.host.includes("localhost"))return"green";const o=document.querySelector("html");return""!==o?.dataset?.laneColor?o.dataset.laneColor:"blue"}removeInvalidAttributesFromObj(o){if("object"==typeof o){const f=["","nan-nan-nan","nan",NaN,null,void 0,"null","undefined","nullnull"];return Object.keys(o).filter(M=>!f.includes(o[M])).reduce((M,x)=>({...M,[x]:o[x]}),{})}return o}getBasePath(o){const{language:f}=this.localization.detect();return`/${f}/${a.qt}/web/${o}`}extractServiceError(o){const f="No value",M=o.error?.errors?.[0];return{status:o.status,error:M,errorCode:M?.errorCode||f,message:M?.message||f,url:o.url}}isMobile(){return/Android|iPhone/i.test(this.windowRef.nativeWindow.navigator.userAgent)}isMobileViewport(){const o=this.windowRef.nativeWindow;return Math.max(o.document.documentElement.clientWidth,o.innerWidth)<=600}isAndroid(){return/Android/i.test(this.windowRef.nativeWindow.navigator.userAgent)}isIOs(){return/iPad|iPhone/i.test(this.windowRef.nativeWindow.navigator.userAgent)}
717removeCountryCodeFromNumber(o,f){return f?f.replace(`+${o}`,""):""}formatSingleDigitNumber(o){const f="string"==typeof o?parseInt(o):o;return f<10?`0${f}`:f.toString()}getCurrentBrowser(){const o=navigator.userAgent,f=[{name:"Edge",test:/Edg\/(\d+\.\d+)/},{name:"Opera",test:/OPR\/(\d+\.\d+)/},{name:"Chrome",test:/Chrome\/(\d+\.\d+)/,exclude:["OPR","Edg"]},{name:"Firefox",test:/Firefox\/(\d+\.\d+)/},{name:"Safari",test:/Version\/(\d+\.\d+)/,include:["Safari"],exclude:["Chrome"]},{name:"Internet Explorer",test:/(MSIE (\d+\.\d+))|(rv:(\d+\.\d+))/,extractVersion:M=>M[2]||M[4]||"Unknown"}];for(const M of f){const{name:x,test:b,exclude:F,include:G}=M,w=F?.some(E=>o.includes(E)),S=G?.every(E=>o.includes(E));if(F&&w||G&&!S)continue;const V=o.match(b);if(V)return{name:x,version:V[1]||V[0]?.split(" ")[1]||"Unknown"}}return{name:"Unknown",version:"Unknown"}}getEmailRegex(){return this.EMAIL_REGEX}parsePhoneNumber(o){return/^(\+[1-9][0-9]{0,3}?)-([0-9-()+]*)$/m.exec(o)}formatNumber(o){return o?`+${this.cleanPhoneNumber(o)}`:""}phoneNumberControlFormat(o){const[f,M]=o.split(/-(.+)/);return`${f}-${M?this.cleanPhoneNumber(M):""}`}isAValidAppkey(o){return o===a.CV}getValidHeaders(){return(new t.Lr).set("X-Requested-With","XMLHttpRequest").set("AppKey",a.CV)}getDateCheckInStart(o){if(o){const f=h(o).subtract(45,"days");return`${this.dateService.getMonthName(f.month())} ${f.date()}`}return this.translate.instant("COMMON.INVALID_DATE")}getMessageTapableOnMobile(o){const f=o?.match(this.phoneNumberRegex);if(this.isMobile&&f){const M=f[0];o=o.replace(this.phoneNumberRegex,`<a href="tel:${M}">${M}</a>`)}return o}formatNumberWithSuffix(o){if(!o)return"";const[M,...x]=o.split(" "),b=parseInt(M,10),F=x.join("_").toUpperCase(),G={1:"ONE",15:"FIFTEEN",50:"FIFTY",100:"ONE_HUNDRED",250:"TWO_FIFTY",350:"THREE_FIFTY",500:"FIVE_HUNDRED"}[b]||M;return F?`${G}_${F}`:G}getWindowWidth(){return this.windowRef.nativeWindow.innerWidth}getScVersionForAnalytics(){return{scVersion:`myga-app-version:${this.getLaneColor()}`}}getUnreadMessageBadgeIconSrc(){return"assets/images/base/red-indicator.svg"}toTitleCase(o){if("string"!=typeof o)return o;const x=new RegExp("[^^]\\b("+["a","an","and","as","at","but","by","en","for","from","how","if","in","neither","nor","of","on","only","onto","out","or","per","so","than","that","the","to","until","up","upon","v","v.","versus","vs","vs.","via","when","with","without","yet"].join("|")+")\\b","ig");return o.replace(/([^\W_]+[^\s-]*) */g,b=>b.charAt(0).toUpperCase()+b.substr(1).toLowerCase()).replace(x,b=>b.toLowerCase()).replace(/:\s*(\w)/g,b=>b.toUpperCase())}getShipName(o,f){return f?.shipsList.map(M=>M).filter(M=>M.value===o.shipCode).map(M=>M.name)}telemetryErrorObj(o){const{developerMessage:f,...M}=o?.error?.errors?.[0]||{},x=o?.error?.status||500;return{...M,status:o?.status||x,message:o?.message||"",devError:f||""}}basePathForCommerce(){const{language:o}=this.localization.detect();return`/${o}/${a.qt}/web`}getPathAndSectionFromUrl(o,f=""){let M=this.normalizeUrlPath(o);M=this.stripAfterDelimiter(M,"#"),M=this.stripAfterDelimiter(M,"?"),f=this.extractSiteSection(M,f);const{path:x,siteSection:b}=this.applyDefaultPaths(M,f);return{path:x,siteSection:b}}normalizeUrlPath(o){return(0===o.indexOf("/")?o.substring(1):o).replace("/",":")}stripAfterDelimiter(o,f){const M=o.indexOf(f);return M>=0?o.substring(0,M):o}extractSiteSection(o,f){return f||o.includes(":")?o.split(":")[0]:o}applyDefaultPaths(o,f){return o?{path:o,siteSection:f}:{path:"dashboard",siteSection:f||"dashboard"}}capitalizeWithPunctuation(o){return o.toLowerCase().replace(/([\s\u2019.'-]|^)([\w\xc0-\u017e])/g,f=>f.toUpperCase())}static{this.\u0275fac=function(f){return new(f||m)}}static{this.\u0275prov=e.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},66855:(J,U,n)=>{"use strict";n.d(U,{L:()=>C});var t=n(54438),e=n(59640),a=n(85014);let C=(()=>{class y{constructor(){this.store=(0,t.WQX)(e.il),this.state$=this.store.select(a.$d),this.voyages=this.store.selectSignal(a.Rm),this.voyagesLoaded=this.store.selectSignal(a.dc),this.voyagesLoading=this.store.selectSignal(a.wz),this.pastSailings=this.store.selectSignal(a.RE),this.voyagesError=this.store.selectSignal(a.c8)}getVoyageEnriched(l,h=!1){this.store.dispatch(a.Lc.getEnrichedVoyages({payload:l,force:h}))}getVoyageById(l){return this.store.selectSignal((0,a.KJ)(l))}getPastSailingHistory(){this.store.dispatch(a.Lc.getSailingHistory())}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275prov=t.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()}
717,65813:(J,U,n)=>{"use strict";n.d(U,{s:()=>m});var t=n(84412),e=n(54438),a=n(83458),C=n(45312),y=n(44128),v=n(62087),l=n(99437),h=n(65151),u=n(37301);class c{constructor(o){Object.assign(this,o)}}class d{constructor(o){Object.assign(this,o)}}class r{constructor(o){Object.assign(this,o)}}var O=n(70222),p=n(41631);let m=(()=>{class s{constructor(f,M,x,b){this.http=f,this.splunkService=M,this.utilsService=x,this.unauthenticatedPathsService=b,this.webConfigReady=new t.t(!1),this.maintenanceConfigReady=new t.t(!1),this.dispatch=new e.bkB}load(){this.initialize()}initialize(){this.initializeEnvironment(),this.subscribeToConfig(),this.loadUnauthenticatedPaths()}subscribeToConfig(){this.getConfig().subscribe(f=>{this.processRuntimeConfigs(f),this.webConfigReady.next(!0)})}processRuntimeConfigs(f){f?.environment?.runtime.forEach(M=>{this.isMatchingEnvironment(M)&&this.handleMatchingRuntime(M)})}isMatchingEnvironment(f){return f.env===this.env&&!!f.configuration}handleMatchingRuntime(f){const M=this.createGAConfig(f.configuration.ga),x=this.getSupportedLanguages(f.configuration),b=this.createFooterConfig(f.configuration?.footer),F=this.getGlobalMarkets(f.configuration),G=this.getDashboardConfig(f.configuration);this.setWebConfig(f.env,M,x,b,F,G),this.dispatch.emit(!0)}createGAConfig(f){return new c({gaFTC:this.getConfigValue(f,"ftc"),gaRoyalUp:this.getConfigValue(f,"royal-up"),riverCruiseHotelsBanner:this.getConfigValue(f,"river-cruise-hotels-banner"),chinaPorts:{enabled:this.getConfigValue(f,"china-ports"),list:f?.["china-ports"]?.list??[]},offersAndCommunications:this.getConfigValue(f,"offers-communications"),offersAndCommunicationsDashboard:this.getConfigValue(f,"offers-communications-dashboard"),offersAndCommunicationsTrips:this.getConfigValue(f,"offers-communications-trips"),moreForYouDashboard:this.getConfigValue(f,"more-for-you-dashboard"),favoritesDashboard:this.getConfigValue(f,"favorites-dashboard"),managePaymentMethods:this.getConfigValue(f,"manage-payment-methods"),manageSavedGuests:this.getConfigValue(f,"manage-saved-guests"),enrollment:this.getConfigValue(f,"enrollment"),loyaltyExperience:this.getConfigValue(f,"loyalty-experience"),loyaltyMatchTermsLink:this.getLoyaltyLinks(f,"loyalty-match-terms-link"),loyaltyEnrollTermsLink:this.getLoyaltyLinks(f,"loyalty-enroll-terms-link"),loyaltyFeaturedBenefitsLinks:this.getLoyaltyFeaturedBenefitsLinks(f,"loyalty-featured-benefits-links"),cobrand:this.getConfigValue(f,"cobrand"),avatar:this.getConfigValue(f,"avatar"),newEnroll:this.getConfigValue(f,"new-enroll"),loyaltySilverSeaExperience:this.getConfigValue(f,"loyalty-silversea-experience"),enrollmentDate:this.getConfigValue(f,"enrollment-date"),manageReservation:this.getConfigValue(f,"manage-reservation"),cobrandRewardsPointsTermsLink:this.getCobrandLinks(f,"cobrand-rewards-points-terms-link"),preferredPointSelection:this.getConfigValue(f,"preferred-point-selection"),targetedOffers:this.getConfigValue(f,"targeted-offers"),manageReservationEncrypt:this.getConfigValue(f,"manage-reservation-encrypt"),feedback:this.getConfigValue(f,"feedback")})}getConfigValue(f,M){return f?.[M]?.enabled?.[this.gate]??!1}getLoyaltyLinks(f,M){return{celebrity:f?.["loyalty-experience"]?.[M]?.celebrity??"",royal:f?.["loyalty-experience"]?.[M]?.royal??"",silversea:f?.["loyalty-experience"]?.[M]?.silversea??""}}getLoyaltyFeaturedBenefitsLinks(f,M){return{VENETIAN_SOCIETY_SAILINGS:f?.["loyalty-experience"]?.[M]?.["venetian-society-sailings"]??"",REFERRAL_OFFER:f?.["loyalty-experience"]?.[M]?.["referral-offer"]??"",REUNION_VOYAGES:f?.["loyalty-experience"]?.[M]?.["reunion-voyage"]??""}}getCobrandLinks(f,M){return{celebrity:f?.cobrand?.[M]?.celebrity??"",royal:f?.cobrand?.[M]?.royal??"",silversea:f?.cobrand?.[M]?.silversea??""}}getSupportedLanguages(f){return f?.["supported-languages"]?.[this.gate]??[]}getDashboardConfig(f){return{hidePmcCtaForCanceledVoyages:f?.["pmc-cta-canceled"]?.enabled?.[this.gate]??!1}}getGlobalMarkets(f){return f?.["global-markets"]?.[this.gate]??{}}setWebConfig(f,M,x,b,F,G){this.webConfig=new r({env:f,ga:M,supportedLanguages:x,footer:b,globalMarkets:F,dashboard:G})}initializeEnvironment(){this.env=s.getEnv(),this.gate=this.utilsService.getLaneColor()}static getEnv(){return C.Fh.TELEMETRY.APP_ENV===y.OX.CLOUD_TEST?"qa":C.Fh.TELEMETRY.APP_ENV===y.OX.CLOUD_STAGE?"stage":"prod"}getConfig(){const f=`${C.QY}/config/${C.qt}/config.json?t=${Date.now()}`,M=`HTTP_CACHE_${C.qt.toString().toUpperCase()}_CONFIG_${(0,u.d)()}`;return this.http.get(`${f}`,(0,a.nT)({key:M,cache:!0})).pipe((0,v.w)(C.Fh.PMC_TIMEOUT_DEFAULT/5),(0,l.W)(x=>this.LOCAL_ERROR_HANDLER(x,`assets/config/${C.qt}/config.json`,M)))}LOCAL_ERROR_HANDLER(f,M,x){const b=this.splunkService.getGlobalContextVariables(["error","localPath"],[f,M]);return this.splunkService.errorByLookUp("CP-0023-HTTP-TIMEOUT-ERROR",{context:b}),x?this.http.get(M,(0,a.nT)({key:x})):this.http.get(M)}createFooterConfig(f){return new d({creditCardBanner:{enabled:f?.["credit-card-banner"]?.enabled?.[this.gate]??!1,cruisePlannerUrl:f?.["credit-card-banner"]?.cruisePlannerUrl??null,guestAccountUrl:f?.["credit-card-banner"]?.guestAccountUrl??null},cobrandCruisePlannerKoddiOnWeb:f?.["cobrand-cruise-planner-koddi-on-web"]??!1})}loadUnauthenticatedPaths(){this.unauthenticatedPathsService.loadUnauthenticatedPaths().subscribe({error:f=>{const x=this.splunkService.initializeContext("error",{message:"Failed to load unauthenticated paths from S3",error:f});this.splunkService.errorByLookUp("CP-0095_CORE_SERVICES_UNAUTHORIZE_ERROR",{context:x})}})}static{this.\u0275fac=function(M){return new(M||s)(e.KVO(a.lU),e.KVO(h.P),e.KVO(O.Q),e.KVO(p.Y))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},95726:(J,U,n)=>{"use strict";n.d(U,{s:()=>y});var t=n(27264),e=n(33212),a=n(54438),C=n(74013);let y=(()=>{class v extends t.g{constructor(h,u){super(h.nativeWindow.localStorage,u?u.namespace:"")}static{this.\u0275fac=function(u){return new(u||v)(a.KVO(C.W),a.KVO(e.I,8))}}static{this.\u0275prov=a.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},77969:(J,U,n)=>{"use strict";n.d(U,{R:()=>y});var t=n(27264),e=n(33212),a=n(54438),C=n(74013);let y=(()=>{class v extends t.g{constructor(h,u){super(h.nativeWindow.sessionStorage,u?u.namespace:"")}static{this.\u0275fac=function(u){return new(u||v)(a.KVO(C.W),a.KVO(e.I,8))}}static{this.\u0275prov=a.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},27264:(J,U,n)=>{"use strict";n.d(U,{g:()=>e});class t{constructor(C,y){this.storageDriver=C,this.namespace=y}hasNamespace(){return!!this.namespace}addNamespace(C){return this.hasNamespace()&&!this.keyIsNamespaced(C)?`${this.namespace}/${C}`:C}keyIsNamespaced(C){return C.includes(`${this.namespace}/`)}clearNamespacedItems(){this.getAllStorageKeys().filter(this.keyIsNamespaced,this).forEac
717h(this.remove,this)}clearItemsWithPrefix(C){for(const y in localStorage)y.startsWith(C)&&localStorage.removeItem(y)}getAllStorageKeys(){return Array.from({length:this.storageDriver.length}).map((C,y)=>this.storageDriver.key(y))}remove(C){if(!this.isAvailable())return;const y=this.addNamespace(C);this.storageDriver.removeItem(y)}isAvailable(){if(!this.storageDriver)return!1;try{return this.storageDriver.setItem("TEST","foo"),this.storageDriver.removeItem("TEST"),!0}catch{return!1}}clear(){this.isAvailable()&&(this.hasNamespace()?this.clearNamespacedItems():this.storageDriver.clear())}getExpired(C,y){if(C<=0)return 0;const v=+new Date;switch(y){case"s":return v+1e3*C;case"m":return v+6e4*C;case"h":return v+36e5*C;case"d":return v+864e5*C;case"w":return v+6048e5*C;case"y":return v+31536e6*C;case"t":return v+C;default:return 0}}stringify(C){return JSON.stringify(C)}parse(C){try{return JSON.parse(C)||null}catch{return C}}}class e extends t{constructor(C,y){super(C,y)}get(C){if(!this.isAvailable())return null;const y=this.addNamespace(C);return this.storageDriver.getItem(y)}getWithExpiry(C){const y=this.addNamespace(C);if(!this.isAvailable())return null;const v=this.parse(this.storageDriver.getItem(y)||"null")||null;return v?"object"==typeof v&&typeof v.expiry<"u"&&0!==v.expiry&&+new Date>v.expiry?(this.remove(C),null):v.value:null}set(C,y){if(!this.isAvailable())return null;const v=this.addNamespace(C),u=Array.isArray(y)||"object"==typeof y?JSON.stringify(y):y;return this.storageDriver.setItem(v,u),u}setWithExpiry(C,y,v=3,l="d"){if(!this.isAvailable())return null;const h={value:y,expiry:this.getExpired(v,l)};return this.storageDriver.setItem(this.addNamespace(C),this.stringify(h)),y}}},33212:(J,U,n)=>{"use strict";n.d(U,{I:()=>e});const e=new(n(54438).nKC)("WebStorageConfig")},37301:(J,U,n)=>{"use strict";function t(){let e="";try{const a=document.getElementsByTagName("HTML")[0].getAttribute("data-branch");a&&(e=a)}catch{e="default"}return e}n.d(U,{d:()=>t})},74013:(J,U,n)=>{"use strict";n.d(U,{W:()=>e});var t=n(54438);let e=(()=>{class a{get nativeWindow(){return window}static{this.\u0275fac=function(v){return new(v||a)}}static{this.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},888:(J,U,n)=>{"use strict";n.d(U,{X:()=>e});var t=n(59640);const e=(0,t.EQ)({source:"Account",events:{"Update Enriched":(0,t.xk)(),"Update Enriched Success":(0,t.xk)(),"Update Enriched Fail":(0,t.xk)(),"Get Enriched":(0,t.xk)(),"Get Enriched Start":(0,t.w5)(),"Get Enriched Success":(0,t.xk)(),"Get Enriched Fail":(0,t.xk)(),"Set Loyalty Information Cookie":(0,t.xk)(),"Delete Account":(0,t.xk)(),"Delete Account Fail":(0,t.xk)(),"Reset Account Data":(0,t.w5)(),"Get Cobrand Info":(0,t.xk)(),"Get Cobrand Info Start":(0,t.w5)(),"Get Cobrand Info Success":(0,t.xk)(),"Get Cobrand Info Fail":(0,t.xk)(),"Get Loyalty Tiers Content":(0,t.w5)(),"Get Loyalty Tiers Content Success":(0,t.xk)(),"Get Loyalty Tiers Content Fail":(0,t.xk)(),"Get Program Tiers Content":(0,t.xk)(),"Get Program Tiers Content Success":(0,t.xk)(),"Get Program Tiers Content Fail":(0,t.xk)(),"Update Cobrand Card Info":(0,t.xk)(),"Get Avatar":(0,t.xk)(),"Get Avatar Success":(0,t.xk)(),"Get Avatar Fail":(0,t.xk)(),"Get Koddi Ads":(0,t.xk)(),"Get Koddi Ads Success":(0,t.xk)(),"Get Koddi Ads Fail":(0,t.xk)(),"Get Koddi Non Ch Ads":(0,t.xk)(),"Get Koddi Non Ch Ads Success":(0,t.xk)(),"Get Koddi Non Ch Ads Fail":(0,t.xk)()}})},2362:(J,U,n)=>{"use strict";n.d(U,{Xw:()=>t.X,y9:()=>D,q9:()=>e.q9,Qx:()=>e.Qx,us:()=>e.us,Fk:()=>e.Fk});var t=n(888),e=n(67039),a=n(54438),C=n(77339),y=n(53993),v=n(96354),l=n(25558),h=n(99437),u=n(7673),c=n(5964),d=n(99172),r=n(44437),O=n(88141),p=n(97647),m=n(57786),s=n(30786),o=n(25759),f=n(49287),M=n(45312),x=n(30803),b=n(83458),F=n(44128),G=n(68018),w=n(66693),S=n(59640),V=n(22252),E=n(47592),L=n(85624);let D=(()=>{class X{constructor(){this.actions$=(0,a.WQX)(C.En),this.accountFacade=(0,a.WQX)(f.PP),this.accountService=(0,a.WQX)(o.D),this.sessionService=(0,a.WQX)(f.x3),this.cookiesService=(0,a.WQX)(f.ro),this.appContext=(0,a.WQX)(b.ow),this.splunkService=(0,a.WQX)(f.PB),this.toastFacade=(0,a.WQX)(f.v6),this.translateService=(0,a.WQX)(G.c$),this.analyticInteraction=(0,a.WQX)(f.Ue),this.router=(0,a.WQX)(x.Ix),this.store=(0,a.WQX)(S.il),this.updateAccountEnriched$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.updateEnriched),(0,y.E)(this.accountFacade.getAccountData$),(0,v.T)(([K,T])=>({payload:K.payload,accountData:T,analyticsPayload:K?.analyticsPayload})),(0,l.n)(({payload:K,accountData:T,analyticsPayload:Y})=>{const{uid:H,...et}=K;return this.accountService.updateEnriched(et,T.accountId).pipe((0,v.T)(()=>{Y&&this.analyticInteraction.trackInteraction(Y);const q=H?{uid:H,...et}:K;return this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.EDIT_SAVING_INFO"),"success",5e3),t.X.updateEnrichedSuccess({payload:this.getFormattedPayload(q,T)})}),(0,h.W)(q=>(this.toastFacade.showToast(this.translateService.instant("GA-0110"===q?.backendErrorCode?"CUSTOMER_JOURNEY.TOAST_MESSAGE.PASSWORD_REUSED_ERROR":"CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),"error",5e3),this.analyticInteraction.trackInteraction({appName:"ga",channel:w.sg.SETTINGS,currentPage:Y?.currentPage,interaction:"errorMessage:inlineerror",content:{errorCode:q?.errorCode||500,backendError:q?.backendError||"unknown",errorIdentifier:q?.errorIdentifier,errorMsg:`Failure: ${this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR")}`}}),(0,u.of)(t.X.updateEnrichedFail({payload:q})))))}
717))),this.getAccountEnriched$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.getEnriched),(0,v.T)(K=>K.payload),(0,y.E)(this.accountFacade.getAccountData$,this.store.select(e.us)),(0,c.p)(([K,T,Y])=>K.force||!T?.accountId&&!Y),(0,v.T)(([K])=>K),(0,l.n)(K=>this.accountService.getEnriched(K.vdsId).pipe((0,v.T)(T=>{const Y=T?.payload;return Y&&Y.coBrandCardInfo&&(Y.cobrandCardInfo=Y.coBrandCardInfo),t.X.getEnrichedSuccess({payload:{response:Y,loadBookings:K.loadBookings}})}),(0,h.W)(T=>(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),"error",5e3),this.analyticInteraction.trackInteraction({appName:"ga",channel:w.sg.SETTINGS,currentPage:"notificationsettings",interaction:"errorMessage:inlineerror",content:{errorCode:T?.errorCode||500,backendError:T?.backendError||"unknown",errorIdentifier:T?.errorIdentifier,errorMsg:`Failure: ${this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR")}`}}),(0,u.of)(t.X.getEnrichedFail({payload:T})))),(0,d.Z)(t.X.getEnrichedStart()))))),this.setLoyaltyInformationCookie$=this.actions$.pipe((0,C.gp)(t.X.setLoyaltyInformationCookie)),this.getEnrichedSuccess$=this.actions$.pipe((0,C.gp)(t.X.getEnrichedSuccess)),this.combineLoyaltyAndEnrichedSuccess$=(0,C.EH)(()=>(0,r.y)(this.setLoyaltyInformationCookie$,this.getEnrichedSuccess$).pipe((0,O.M)(([K,T])=>{if(this.cookiesService.removeCookie(M.ym.loyaltyData),this.sessionService.setLoyaltyInformationCookie(T.payload.response),T.payload.response?.vdsId&&(this.appContext.updateUserId(T.payload.response.vdsId),this.createTelemetryCounter(T.payload.response.vdsId)),K?.url){let Y=K.url;Y.split("?")[0].split("#")[0].replace(/\/$/,"")===`/${E.W}`&&(!0===T.payload.response?.cobrandCardInfo?.activeCardHolder||(Y="/")),this.router.navigateByUrl(Y)}})),{dispatch:!1}),this.deleteAccount$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.deleteAccount),(0,l.n)(({accountId:K})=>this.accountService.deleteAccount(K).pipe((0,O.M)(()=>{this.sessionService.clearAllCookies(),this.router.navigate(["/signin"]),this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.DELETING_ACCOUNT"),"success",5e3),this.analyticInteraction.trackInteraction({channel:w.sg.SETTINGS,currentPage:"signinandsecurity",interaction:"accountdeleted",content:""})}),(0,v.T)(()=>t.X.resetAccountData()),(0,h.W)(T=>(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),"error",5e3),this.analyticInteraction.trackInteraction({channel:w.sg.SETTINGS,currentPage:"signinandsecurity",interaction:"errorMessage:inlineerror",content:{...T}}),(0,u.of)(t.X.deleteAccountFail({payload:T})))))))),this.loadCobrandProgram$=(0,C.EH)(()=>{const K=this.actions$.pipe((0,C.gp)(t.X.getCobrandInfo),(0,y.E)(this.store.select(e.Qx)),(0,c.p)(([T,Y])=>!!T.force||!Y?.cobrandProgram?.loading&&!Y?.cobrandProgram?.raw),(0,p.u)());return(0,m.h)(K.pipe((0,c.p)(([T])=>!T.force),(0,s.p)(([T])=>this.fetchCobrandProgram(T))),K.pipe((0,c.p)(([T])=>!!T.force),(0,l.n)(([T])=>((0,L.F9)("/v1/loyalty/cobrand/info"),this.fetchCobrandProgram(T)))))}),this.getLoyaltyTiersContent$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.getLoyaltyTiersContent),(0,y.E)(this.store.select(e.Qx)),(0,c.p)(([,K])=>!K?.loyaltyInformation?.aemData),(0,l.n)(()=>this.accountService.getLoyaltyTiersContent(M.qt).pipe((0,v.T)(K=>t.X.getLoyaltyTiersContentSuccess({payload:K})),(0,h.W)(K=>(0,u.of)(t.X.getLoyaltyTiersContentFail({payload:K}))))))),this.getKoddiAds$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.getKoddiAds),(0,y.E)(this.store.select(e.Qx)),(0,c.p)(([{params:K},T])=>void 0===T?.loyaltyInformation?.koddiAdsData?.[K.pageId]),(0,l.n)(([{params:K}])=>this.accountService.getKoddiAds(K).pipe((0,v.T)(T=>t.X.getKoddiAdsSuccess({pageId:K.pageId,payload:T?.payload?.advertisements??null})),(0,h.W)(T=>(0,u.of)(404===T?.status||404===T?.errorCode?t.X.getKoddiAdsSuccess({pageId:K.pageId,payload:null}):t.X.getKoddiAdsFail({pageId:K.pageId,payload:T}))))))),this.getKoddiNonChAds$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.getKoddiNonChAds),(0,y.E)(this.store.select(e.Qx)),(0,c.p)(([,K])=>void 0===K?.loyaltyInformation?.koddiNonChAdsData),(0,l.n)(([{params:K}])=>this.accountService.getKoddiAds(K).pipe((0,v.T)(T=>t.X.getKoddiNonChAdsSuccess({payload:T?.payload?.advertisements??null}
717)),(0,h.W)(T=>(0,u.of)(404===T?.status||404===T?.errorCode?t.X.getKoddiNonChAdsSuccess({payload:null}):t.X.getKoddiNonChAdsFail({payload:T}))))))),this.getProgramTiersContent$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.getProgramTiersContent),(0,y.E)(this.store.select(e.Qx)),(0,c.p)(([K,T])=>!!K.force||!T?.loyaltyInformation?.aemLoyaltyHubData),(0,v.T)(([K])=>K.payload),(0,l.n)(K=>this.accountService.getProgramTiersContent({programTier:K?.programTier,brand:K?.brand}).pipe((0,v.T)(T=>t.X.getProgramTiersContentSuccess({payload:T})),(0,h.W)(T=>(0,u.of)(t.X.getProgramTiersContentFail({payload:T}))))))),this.getAvatar$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.X.getAvatar),(0,v.T)(K=>K.payload.profileAvatar),(0,y.E)(this.store.select(K=>K.account.personalInformation.avatar)),(0,l.n)(()=>this.accountService.getAvatar().pipe((0,V.Z)(),(0,v.T)(K=>t.X["Get Avatar Success"]({profileAvatar:K?.payload?.avatar})),(0,h.W)(K=>(0,u.of)(t.X["Get Avatar Fail"]({profileAvatar:{error:K}})))))))}fetchCobrandProgram(K){return this.accountService.getCobrandInfo(K.accountId).pipe((0,v.T)(T=>t.X.getCobrandInfoSuccess({payload:{raw:T?.payload,lastUpdated:(new Date).toISOString(),status:200}})),(0,h.W)(T=>(this.analyticInteraction.trackInteraction({appName:"ga",channel:w.sg.DASHBOARD,currentPage:"dashboard",interaction:"dashboard:cobranderror",content:{errorCode:T?.errorCode||500,backendError:T?.backendError||"unknown",errorIdentifier:T?.errorIdentifier,errorMsg:"Failure: Unavailable. Try again later."}}),(0,u.of)(t.X.getCobrandInfoFail({payload:{...T,status:T?.errorCode||500}})))),(0,d.Z)(t.X.getCobrandInfoStart()))}createTelemetryCounter(K){const T=new F.ph({userId:K,group:"Authenticate",counterValue:1,metricName:"Login"});this.splunkService.logEvent(T,F.Vw.Counter)}getFormattedPayload(K,T){if(K?.signInInformation?.password){const Y=K?.signInInformation?.securityQuestions?K.signInInformation.securityQuestions:T.signInInformation.securityQuestions;return{...K,signInInformation:{securityQuestions:Y}}}return K}static{this.\u0275fac=function(T){return new(T||X)}}static{this.\u0275prov=a.jDH({token:X,factory:X.\u0275fac})}}return X})();n(28567)},67039:(J,U,n)=>{"use strict";n.d(U,{q9:()=>l,Qx:()=>h,us:()=>u,Fk:()=>r});var t=n(59640),e=n(888),a=n(66693);function C(p){return p&&"object"==typeof p&&!Array.isArray(p)&&null!==p}function y(p,...m){const s={...p};for(const o of m)if(o)for(const f in o){const M=o[f];s[f]=C(M)?C(s[f])?y(s[f],M):{...M}:M}return s}function v(p,m){if(0===m.length)return p.slice();const s=[...p,...m],o=[...p,...m].map(f=>f.brand).filter((f,M,x)=>x.indexOf(f)===M).reduce((f,M)=>(f.set(M,null),f),new Map);return s.forEach(f=>o.set(f.brand,f)),Array.from(o.values())}const l=(0,t.VG)({name:"account",reducer:(0,t.vy)(a.PH,(0,t.on)(e.X.updateEnriched,p=>({...p,loading:!0})),(0,t.on)(e.X.updateEnrichedSuccess,(p,{payload:m})=>{const s=y(p.data,m),{emailOptIns:o}=p.data,{emailOptIns:f}=m;return{...p,data:{...s,emailOptIns:v(o,f??[])},loaded:!0,loading:!1}}),(0,t.on)(e.X.updateEnrichedFail,(p,{payload:m})=>({...p,loaded:!1,loading:!1,error:m})),(0,t.on)(e.X.getEnrichedStart,p=>({...p,loading:!0})),(0,t.on)(e.X.getEnrichedSuccess,(p,{payload:m})=>({...p,loaded:!0,loading:!1,data:{...m.response,vdsId:m.response.accountId}})),(0,t.on)(e.X.getEnrichedFail,(p,{payload:m})=>({...p,loaded:!1,loading:!1,error:m})),(0,t.on)(e.X.resetAccountData,()=>a.PH),(0,t.on)(e.X.getCobrandInfo,p=>({...p,data:{...p.data,cobrandProgram:{...p.data?.cobrandProgram,loaded:!1}}})),(0,t.on)(e.X.getCobrandInfoStart,p=>({...p,data:{...p.data,cobrandProgram:{...p.data?.cobrandProgram,loading:!0,loaded:!1}}})),(0,t.on)(e.X.getCobrandInfoSuccess,(p,{payload:m})=>({...p,data:{...p.data,cobrandProgram:{...m,status:m?.status,loaded:!0,loading:!1}}})),(0,t.on)(e.X.getCobrandInfoFail,(p,{payload:m})=>({...p,data:{...p.data,cobrandProgram:{...m,status:m?.status||m?.errorCode||500,loaded:!0,loading:!1}},error:m})),(0,t.on)(e.X.getLoyaltyTiersContent,p=>({...p,loading:!0})),(0,t.on)(e.X.getLoyaltyTiersContentSuccess,(p,{payload:m})=>({...p,loading:!1,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,aemData:m,aemDataError:void 0}}})),(0,t.on)(e.X.getLoyaltyTiersContentFail,(p,{payload:m})=>({...p,loading:!1,error:m,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,aemDataError:m}}})),(0,t.on)(e.X.getProgramTiersContent,p=>({...p,loading:!0})),(0,t.on)(e.X.getProgramTiersContentSuccess,(p,{payload:m})=>({...p,loading:!1,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,aemLoyaltyHubData:m}}})),(0,t.on)(e.X.getProgramTiersContentFail,(p,{payload:m})=>({...p,loading:!1,error:m})),(0,t.on)(e.X.updateCobrandCardInfo,(p,{payload:m})=>({...p,data:{...p.data,cobrandCardInfo:m}})),(0,t.on)(e.X.getKoddiAds,p=>({...p,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,koddiAdsLoading:!0,k
717oddiAdsError:null}}})),(0,t.on)(e.X.getKoddiAdsSuccess,(p,{pageId:m,payload:s})=>({...p,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,koddiAdsData:{...p.data.loyaltyInformation?.koddiAdsData,[m]:s},koddiAdsLoading:!1,koddiAdsError:null}}})),(0,t.on)(e.X.getKoddiAdsFail,(p,{payload:m})=>({...p,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,koddiAdsLoading:!1,koddiAdsError:m}}})),(0,t.on)(e.X.getKoddiNonChAds,p=>({...p,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,koddiNonChAdsLoading:!0,koddiNonChAdsError:null}}})),(0,t.on)(e.X.getKoddiNonChAdsSuccess,(p,{payload:m})=>({...p,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,koddiNonChAdsData:m,koddiNonChAdsLoading:!1,koddiNonChAdsError:null}}})),(0,t.on)(e.X.getKoddiNonChAdsFail,(p,{payload:m})=>({...p,data:{...p.data,loyaltyInformation:{...p.data.loyaltyInformation,koddiNonChAdsLoading:!1,koddiNonChAdsError:m}}}))),extraSelectors:({selectAccountState:p})=>({selectAccountAvatar:(0,t.Mz)(p,m=>m.data.personalInformation.avatar)})}),{selectData:h,selectLoading:u,selectAccountState:r}=l},56172:(J,U,n)=>{"use strict";n.d(U,{A:()=>e});var t=n(59640);const e=(0,t.EQ)({source:"analytics",events:{"track Page View":(0,t.xk)(),"track Interaction":(0,t.xk)()}})},65177:(J,U,n)=>{"use strict";n.d(U,{A:()=>t.A,T:()=>O});var t=n(56172),e=n(54438),a=n(77339),C=n(59640),y=n(5964),v=n(70274),l=n(84572),h=n(96697),u=n(96354),c=n(88141),d=n(49287),r=n(10319);let O=(()=>{class p{constructor(){this.actions$=(0,e.WQX)(a.En),this.analyticsService=(0,e.WQX)(d.cu),this.accountFacade=(0,e.WQX)(d.PP),this.tealiumService=(0,e.WQX)(d.ML),this.utilityService=(0,e.WQX)(d.QY),this.tripsRepository=(0,e.WQX)(d.IE),this.store=(0,e.WQX)(C.il),this.voyagesLoaded$=(0,r.wE)(this.store),this.accountDataWithCobrand$=this.accountFacade.getAccountData$.pipe((0,y.p)(s=>!s?.cobrandCardInfo?.activeCardHolder||!0===s?.cobrandProgram?.loaded)),this.trackPageView=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(t.A.trackPageView),(0,v.H)(s=>(0,l.z)([this.accountDataWithCobrand$,this.voyagesLoaded$]).pipe((0,h.s)(1),(0,u.T)(([o])=>({action:s,accountData:o,firstTripData:this.tripsRepository.getFirstUpcomingTrip()})))),(0,u.T)(({action:s,accountData:o,firstTripData:f})=>this.analyticsService.applyBaseUDO(s.payload,o,f)),(0,u.T)(s=>this.analyticsService.applyChannel(s)),(0,u.T)(s=>this.analyticsService.applyPageName(s)),(0,c.M)(s=>{this.tealiumService.view(this.utilityService.removeInvalidAttributesFromObj({...s.content}))})),{dispatch:!1}),this.trackInteraction=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(t.A.trackInteraction),(0,v.H)(s=>(0,l.z)([this.accountDataWithCobrand$,this.voyagesLoaded$]).pipe((0,h.s)(1),(0,u.T)(([o])=>({action:s,accountData:o,firstTripData:this.tripsRepository.getFirstUpcomingTrip()})))),(0,u.T)(({action:s,accountData:o,firstTripData:f})=>this.analyticsService.applyBaseUDO(s.payload,o,f)),(0,u.T)(s=>this.analyticsService.applyChannel(s)),(0,u.T)(s=>this.analyticsService.applyCurrentPage(s)),(0,u.T)(s=>this.analyticsService.applyInteraction(s)),(0,c.M)(s=>{this.tealiumService.link(this.utilityService.removeInvalidAttributesFromObj({...s.content}))})),{dispatch:!1})}static{this.\u0275fac=function(o){return new(o||p)}}static{this.\u0275prov=e.jDH({token:p,factory:p.\u0275fac})}}return p})()},79694:(J,U,n)=>{"use strict";n.d(U,{z:()=>e});var t=n(59640);const e=(0,t.EQ)({source:"Booking",events:{"auto link":(0,t.xk)(),"auto Link Succes":(0,t.xk)(),"auto Link Fail":(0,t.xk)(),"fetch Profile Bookings":(0,t.xk)(),"fetch Profile Bookings Start":(0,t.w5)(),"fetch Profile Bookings Success":(0,t.xk)(),"fetch Profile Bookings Fail":(0,t.xk)(),"link Booking Manual":(0,t.xk)(),"link Booking Clean":(0,t.w5)(),"link Booking":(0,t.xk)(),"link Booking Success":(0,t.xk)(),"link Booking Fail":(0,t.xk)(),"link Booking Fail Search":(0,t.xk)(),"get Cruise Bookings":(0,t.xk)(),"fetch Check In Info":(0,t.xk)(),"check In Booking Success":(0,t.xk)(),"check In Booking Fail":(0,t.xk)(),"fetch Past Bookings":(0,t.xk)(),"fetch Past Bookings Success":(0,t.xk)(),"fetch Past Bookings Fail":(0,t.xk)(),"fetch Booking Edocs":(0,t.xk)(),"fetch Booking Edocs Success":(0,t.xk)(),"fetch Booking Edocs Fail":(0,t.xk)(),"fetch Royal Up Statuses":(0,t.w5)(),"fetch Royal Up Statuses Success":(0,t.xk)(),"fetch Royal Up Statuses Fail":(0,t.w5)(),updateBookingsFolioLookup:(0,t.xk)()}})},35031:(J,U,n)=>{"use strict";n.d(U,{$J:()=>L,K_:()=>O,Mn:()=>S,Ng:()=>G,SW:()=>w,Ul:()=>V,e8:()=>b,ec:()=>T,fM:()=>m,s_:()=>c,sj:()=>W,uG:()=>p,x8:()=>K,y:()=>l,y3:()=>Y,yW:()=>F});var t=n(59640),e=n(45806),a=n(66693),C=n(97586),y=n.n(C);const v="YYYYMMDD",l=(0,t.UX)(e.i3),c=((0,t.Mz)(l,H=>H.bookings),(0,t.Mz)(l,H=>H.loaded),(0,t.Mz)(l,H=>H?.past?.bookings.slice(0,2)||[])),O=((0,t.Mz)(l,H=>new Date(H.lastLoadedTime)),(0,t.Mz)(l,H=>s(H)),(0,t.Mz)(l,H=>H?.pastBookingsFailed??!1)),p=H=>H&&!!H.loaded,m=H=>p(H)&&H.bookings&&Object.values(H.bookings).length>0||!1,s=H=>H?.error,M=H=>(H||[]).slice().sort((et,q)=>((H,et)=>{if(H){const q=y()||C,j=q(H,v),$=q(et,v);return j.diff($,"days")}return-1})(et.sailDate,q.sailDate)),b=H=>M(Object.values(H.bookings||{})),F=(H,et)=>H.bookings?.[et],G=H=>(H=>(H||[]).slice().sort((et,q)=>((H,et)=>{if(et){const q=y()||C,j=q(H,v);return q(et,v).diff(j,"days")}return 1})(et.sailDate,q.sailDate)))(Object.values(H.past?.bookings||{})),w=H=>!!H?.past?.loaded,S=(0,t.Mz)(l,w),V=(H,et)=>G(H).find(q=>q.bookingId===et),E=H=>H.bookingStatus===a.$e.Active||H.bookingStatus===a.$e.Booked,L=H=>M(Object.values(H.bookings||{})).filter(E).shift(),W=(H,et)=>!!H.fetchingEDocs?.[et],K=(H,et)=>!!H.bookingsEdocs?.[et],T=(H,et)=>H.bookingsEdocs?.[et],Y=H=>H.loaded&&{autoLinked:!!H.bookingLinkStatus?.autoLinked,manualLinked:!!H.bookingLinkStatus?.manualLinked}},92869:(J,U,n)=>{"use strict";n.d(U,{zK:()=>t.z,Ae:()=>X,s0:()=>e.s0,Os:()=>e.Os,gK:()=>e.gK,JR:()=>e.JR,Qr:()=>e.Qr,QW:()=>e.QW,G1:()=>e.G1,$x:()=>e.$x,mO:()=>e.mO,nV:()=>e.nV,Zq:()=>e.Zq,rO:()=>e.rO});var t=n(79694),e=n(45806),a=n(54438),C=n(30803),y=n(77339),v=n(59640),l=n(96354),h=n(25558),u=n(7673),c=n(99437),d=n(99172),r=n(53993),O=n(61594),p=n(5964),m=n(88141),s=n(44437),o=n(31397),f=n(87083),M=n(49287),x=n(96721),b=n(22252),F=n(11988),G=n(56172),w=n(68018),S=n(45312),V=n(61829),E=n(31369),L=n(3415),D=n(64489),k=n(451);let X=(()=>{class W{constructor(){this.actions$=(0,a.WQX)(y.En),this.bookingService=(0,a.WQX)(M.LM),this.loyaltyProgramsService=(0,a.WQX)(x.t),this.splunkService=(0,a.WQX)(M.PB),this.bookingFacade=(0,a.WQX)(M.ZO),this.toastFacade=(0,a.WQX)(M.v6),this.translateService=(0,a.WQX)(w.c$),this.store$=(0,a.WQX)(v.il),this.localizationService=(0,a.WQX)(M.Pi),this.analyticInteraction=(0,a.WQX)(M.Ue),this.bookingsRepo=(0,a.WQX)(V.I),this.router=(0,a.WQX)(C.Ix),this.autolink$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.autoLink),(0,l.T)(T=>T.payload),(0,h.n)(T=>this.bookingService.autolink(T).pipe((0,h.n)(Y=>{const H=Y.payload;return(0,u.of)(t.z.autoLinkSucces({payload:{loyaltyNumber:T.loyaltyNumber,vdsId:T.vdsId,autoLinked:this.isLinkFlowAuto(H?.profileBookings)}}))}),(0,c.W)(Y=>(0,u.of)(t.z.autoLinkFail({error:Y,loyaltyNumber:T.loyaltyNumber,vdsId:T.vdsId}))))))),this.autolinkSuccess$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.autoLinkSucces),(0,l.T)(T=>T.payload),(0,l.T)(T=>t.z.fetchProfileBookings({payload:{loyaltyNumber:T.loyaltyNumber,vdsId:T.vdsId},force:!1})))),this.autolinkFails$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.autoLinkFail),(0,l.T)(T=>t.z.fetchProfileBookings({payload:{loyaltyNumber:T.loyaltyNumber,vdsId:T.vdsId},force:!1})))),this.getProfileBookings$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.fetchProfileBookings),(0,l.T)(T=>T.payload),(0,h.n)(T=>this.bookingService.bookingsForProfile(T.vdsId).pipe((0,b.Z)({exceptions:{status:404}}),(0,h.n)(Y=>{const H=Y?.payload?.profileBookings||[];return[t.z.fetchProfileBookingsSuccess({payload:H}),L.L.getEnrichedVoyages({payload:H,force:!1}),t.z.fetchRoyalUpStatuses()]}),(0,c.W)(Y=>(404!==Y.status&&this.splunkService.trackServiceError("CP-0051_CORE_SERVICES-ENRICHED_VOYAGE_FAILED",{...Y,message:"unexpected error fetching profile bookings - enriched voyages"}),(0,u.of)(t.z.fetchProfileBookingsFail({error:Y})))),(0,d.Z)(t.z.fetchProfileBookingsStart()))))),this.linkBookingManual=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.linkBookingManual),(0,r.E)(this.bookingFacade.linkBookingManual$),(0,l.T)(([T])=>T.payload),(0,h.n)(T=>this.bookingService.manualLinkProfileBooking({vdsId:T.vdsId,bookingId:T.bookingId,passengerId:T.passengerId,passengers:T.passengers,linkType:T.linkType,preferred:T.preferred,loyaltyNumber:T.loyaltyNumber}).pipe((0,h.n)(()=>(this.analyticInteraction.trackInteraction({appName:"ga",interaction:"linkcruise:success",content:"",currentPage:"linkacruisemanually",channel:"mytrips"}),this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.EDIT_SAVING_INFO"),"success",5e3),[t.z.linkBookingSuccess({payload:{payload:T,manualLinked:!0}}),t.z.fetchProfileBookings({payload:{loyaltyNumber:T.loyaltyNumber,vdsId:T.vdsId},force:!0})])),(0,c.W)(Y=>(0,u.of)(t.z.linkBookingFail({payload:{type:Y,brand:"BRAND",manualLinked:!1}}))))))),this.refreshLaunchDarklyAfterManualLink$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.linkBookingManual),(0,h.n)(()=>this.actions$.pipe((0,y.gp)(L.L.getEnrichedVoyagesSuccess,L.L.getEnrichedVoyagesFail),(0,O.$)(),(0,p.p)(T=>T.type===L.L.getEnrichedVoyagesSuccess.type),(0,l.T)(T=>k.CB({voyageData:T.payload})))))),this.linkBookingSuccess$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.linkBookingSuccess),(0,m.M)(()=>{const T=this.router.url.includes("my-trips")?"mytrips":"dashboard";
717this.store$.dispatch(G.A.trackInteraction({payload:{appName:"",interaction:"linkcruise:success",content:"",currentPage:T,channel:"mytrips"}}))}),(0,l.T)(T=>T.payload),(0,h.n)(T=>(0,u.of)(t.z.getCruiseBookings({payload:{lastName:T.lastName,bookingId:T.bookingId,vdsId:T.vdsId}}))))),this.linkBookingFailSearch$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.linkBookingFailSearch),(0,l.T)(T=>T.payload),(0,p.p)(T=>!T.fromOlci),(0,h.n)(T=>(0,u.of)(F.yW.findCheck({payload:{bookingId:T.bookingId,vdsId:T.vdsId,lastName:T.lastName}})).pipe((0,c.W)(Y=>(0,u.of)(t.z.linkBookingFail({payload:{type:Y,brand:"BRAND",manualLinked:!1}}))))))),this.linkBooking$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.linkBooking),(0,r.E)(this.bookingFacade.linkBooking$),(0,l.T)(([T])=>T),(0,h.n)(T=>this.bookingService.manualLinkSearch(T.payload).pipe((0,h.n)(Y=>this.manualLinkSearchResponse(T.payload,Y?.payload)),(0,c.W)(Y=>{if(0===Y.status&&this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.SOMETHING_WENT_WRONG"),"error",5e3),404===Y.status||400===Y.status){const H=Y?.errorCode;"GA-0706"===H&&this.bookingService.showErrorOnBanner.set("SURNAME_MISMATCH"),"GA-0702"===H&&(this.bookingService.showErrorOnBanner.set("RESERVATION_NOT_FOUND"),this.bookingService.showErrorMessageOnReservationNumber.set(!0)),"GA-0707"===H&&(this.bookingService.showErrorOnBanner.set("PAST_RESERVATION"),this.bookingService.showErrorMessageOnReservationNumber.set(!0)),"GA-0711"===H&&this.bookingService.showErrorOnBanner.set("MAX_LINKED_BOOKINGS_REACHED")}return 403===Y.status&&"GA-0712"===Y?.errorCode&&this.bookingService.showErrorOnBanner.set("ALREADY_LINKED"),(0,u.of)(t.z.linkBookingFail({payload:{type:Y,brand:"BRAND",manualLinked:!1}}))}))))),this.getOlciVersion$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.fetchCheckInInfo),(0,l.T)(T=>T.payload),(0,h.n)(T=>(0,s.y)((0,u.of)(T),this.store$.pipe((0,v.Lt)(Y=>Y.account)))),(0,o.Z)(([T,Y])=>{try{const H=T.booking,et=Y.data.vdsId;if(S.Gv.MANUAL_LINK_SEARCH&&("ON_BEHALF_OF"===H.linkType||"NOT_SPECIFIED"===H.linkType)){return[t.z.linkBookingFailSearch({payload:{bookingId:H.bookingId,vdsId:et,passengers:H.passengers,lastName:Y?.data?.personalInformation?.lastName||Y?.personalInformation?.lastName||"",fromOlci:!0}}),F.yW.findSuccess({payload:{bookings:[H],bookingId:H.bookingId,vdsId:et,fromOlci:!0}})]}return[t.z.checkInBookingSuccess({payload:{booking:T.booking,vdsId:et}})]}catch{return[]}}),(0,c.W)(()=>(0,u.of)()))),this.handleCheckInSuccess$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.checkInBookingSuccess),(0,l.T)(T=>T.payload),(0,h.n)(T=>(0,s.y)((0,u.of)(T),this.store$.pipe((0,v.Lt)(Y=>Y.account)))),(0,m.M)(([T,Y])=>{const H=this.localizationService.detect()?.language;this.bookingService.openCheckIn(Y,T?.booking,H)})),{dispatch:!1}),this.fetchShipsCompleted$=this.actions$.pipe((0,y.gp)(D.X3,D.Cf),(0,O.$)()),this.fetchShipsWhenFetchingPastBookings$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.fetchPastBookings),(0,f.K)((0,u.of)(D.Yu())))),this.getPastBookingsBaseLoyalty$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.fetchPastBookings),(0,l.T)(T=>T.payload),(0,h.n)(T=>(0,s.y)((0,u.of)(T),this.fetchShipsCompleted$)),(0,l.T)(([T,Y])=>[T,Y.type===D.X3.type?Y.payload:[]]),(0,h.n)(([T,Y])=>{const{loyaltyNumber:H,accountId:et}=T;return S.qt===E.rI.silversea?this.loyaltyProgramsService.getLoyaltyProgramsInfo(E.rI.silversea).pipe((0,h.n)(q=>this.fetchAndProcessPastBookings(q?.payload?.loyaltyInformation?.venetianSocietyId||"",et,Y)),(0,c.W)(()=>this.fetchAndProcessPastBookings(H,et,Y))):this.fetchAndProcessPastBookings(H,et,Y)}))),this.fetchBookingEdocs$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.fetchBookingEdocs),(0,l.T)(T=>T.payload),(0,o.Z)(T=>this.bookingService.getBookingEdocs(T.join(",")).pipe((0,l.T)(Y=>t.z.fetchBookingEdocsSuccess({payload:Y})),(0,c.W)(Y=>(0,u.of)(t.z.fetchBookingEdocsFail({payload:{bookingIds:T,error:Y}}))))))),this.getRoyalUpStatuses$=(0,y.EH)(()=>this.actions$.pipe((0,y.gp)(t.z.fetchRoyalUpStatuses),(0,h.n)(()=>this.bookingService.getRoyalUpStatuses().pipe((0,h.n)(({payload:T})=>[t.z.fetchRoyalUpStatusesSuccess({payload:T})]),(0,c.W)(()=>(0,u.of)(t.z.fetchRoyalUpStatusesFail()))))))}isLinkFlowAuto(T){return!!T?.find(Y=>"auto"===Y.linkFlow)}manualLinkSearchResponse(T,Y){const H=Y.profileBookings[0];if(H.linked)return[t.z.linkBookingSuccess({payload:{...T,manualLinked:!0}}),F.yW.findCheck({payload:{bookingId:T?.bookingId,lastName:T?.lastName,vdsId:T?.vdsId}})];{const et=H.passengers;return[t.z.linkBookingFailSearch({payload:{bookingId:T.bookingId,vdsId:T.vdsId,passengers:et,lastName:et[0].lastName,manualLinked:!0}}),G.A.trackInteraction({payload:{appName:"linkResComplete",interaction:"linkResComplete",content:""}})]}}getMergedSailngs(T,Y,H){const et=this.bookingsRepo.mergeSailings(T,Y);return et.length>0?et.filter(this.bookingsRepo.getPastBookingFilter).map(q=>this.bookingsRepo.verifyAndSetBookingShipName(q,H)).map(q=>this.bookingsRepo.pastBookingStructure(q,S.vN)).sort(this.bookingsRepo.pastBookingSortedByDate).map(q=>this.bookingsRepo.pastBookingDTO(q.length>1?q[1]:void 0)):[]}fetchAndProcessPastBookings(T,Y,H){return this.bookingService.getPastBookingsBaseLoyalty(T,Y).pipe((0,l.T)(et=>{const{sailings:q,recentSailings:j}=et?.payload||{},$=this.getMergedSailngs(q,j,H);return t.z.fetchPastBookingsSuccess({payload:{bookings:$,brand:S.vN}})}),(0,c.W)(et=>(0,u.of)(t.z.fetchPastBookingsFail({payload:et}))))}static{this.\u0275fac=function(Y){return new(Y||W)}}static{this.\u0275prov=a.jDH({token:W,factory:W.\u0275fac})}}return W})()},45806:(J,U,n)=>{"use strict";n.d(U,{i3:()=>p,s0:()=>o,Os:()=>G,gK:()=>F,JR:()=>M,Qr:()=>L,QW:()=>V,G1:()=>D,$x:()=>w,mO:()=>S,nV:()=>x,Zq:()=>b,rO:()=>E});var t=n(59640),e=n(79694),a=n(97586),C=n(66693);function v(k){const X=[C.Qb[C.Qb.COMPLETED],C.Qb[C.Qb.REPRINT]];return(k?.passengers?.filter(K=>K&&k&&-1!==X.indexOf(K.onlineCheckinStatus))??[]).length>0}function l(k){if(!k.sailDate||null===k.numberOfNights||8!==k.sailDate.length)return!1;const X=r(k.sailDate);if(!X)return!1;const W=new Date(X);return W.setDate(W.getDate()+k.numberOfNights+1),W.setMinutes(W.getMinutes()-1),W>=new Date}function u(k){if(!k.sailDate||8!==k.sailDate.length)return"";const X=r(k.sailDate);if(!X||null===k.numberOfNights)return"";const W=new Date(X);return W.setDate(W.getDate()+k.numberOfNights),function d(k){return`${k.getFullYear()}${String(k.getMonth()+1).padStart(2,"0")}${String(k.getDate()).padStart(2,"0")}`}(W)}
717function r(k){const X=parseInt(k.substring(0,4),10),W=parseInt(k.substring(4,6),10)-1,K=parseInt(k.substring(6,8),10),T=new Date(X,W,K);return function O(k){return!isNaN(k.getTime())}(T)?T:null}const p="booking",m=(k,X)=>k.find(W=>W.bookingId===X),o=(0,t.VG)({name:"booking",reducer:(0,t.vy)({autoLinked:!1,bookingLinkStatus:null,bookings:{},bookingsEdocs:{},fetchingEDocs:{},error:null,loaded:!1,loading:!1,pastBookingsFailed:!1,royalUpItems:[]},(0,t.on)(e.z.autoLinkSucces,(k,{payload:X})=>{const W={...k.bookingLinkStatus,autoLinked:X.autoLinked};return{...k,autoLinked:X.autoLinked,bookingLinkStatus:W}}),(0,t.on)(e.z.autoLinkFail,(k,{error:X})=>{const W={...k.bookingLinkStatus,autoLinked:!1};return{...k,error:X,autoLinked:!1,bookingLinkStatus:W}}),(0,t.on)(e.z.fetchProfileBookingsStart,k=>({...k,loading:!0,loaded:!1})),(0,t.on)(e.z.fetchProfileBookingsSuccess,(k,{payload:X})=>{const W=(X||[]).filter(l).sort((K,T)=>function c(k,X){const W=r(k),K=r(X);return W&&K?W.getTime()-K.getTime():-1}(K.sailDate,T.sailDate)).reduce((K,T)=>{const Y=T.bookingId;if(Y){const H=m(k.royalUpItems,Y);K[Y]={...T,isCheckedIn:v(T),endDate:u(T),royalUpStatus:H}}return K},{});return{...k,bookings:W,loading:!1,loaded:!0}}),(0,t.on)(e.z.fetchProfileBookingsFail,(k,{error:X})=>({...k,error:X,bookings:{},loading:!1,loaded:!1,lastLoadedTime:(new Date).toISOString()})),(0,t.on)(e.z.linkBookingManual,(k,{payload:X})=>({...k,linkedBooking:X,error:null})),(0,t.on)(e.z.linkBookingSuccess,(k,{payload:X})=>({...k,linkedBooking:X,error:null})),(0,t.on)(e.z.linkBookingFail,(k,{payload:X})=>({...k,error:X})),(0,t.on)(e.z.linkBookingClean,k=>({...k,linkedBooking:null,error:null})),(0,t.on)(e.z.linkBookingFailSearch,(k,{payload:X})=>({...k,error:X})),(0,t.on)(e.z.linkBooking,(k,{payload:X})=>({...k,linkedBooking:X,error:null})),(0,t.on)(e.z.getCruiseBookings,(k,{payload:X})=>({...k,cruiseBookings:X})),(0,t.on)(e.z.fetchPastBookings,k=>({...k,past:{loaded:!1,bookings:[]}})),(0,t.on)(e.z.fetchPastBookingsSuccess,(k,{payload:X})=>({...k,past:{loaded:!0,bookings:X?.bookings},error:null,pastBookingsFailed:!1})),(0,t.on)(e.z.fetchPastBookingsFail,(k,{payload:X})=>({...k,past:{loaded:!0,bookings:[]},error:X,pastBookingsFailed:!0})),(0,t.on)(e.z.updateBookingsFolioLookup,(k,X)=>{const K=(k.past?.bookings??[]).map(T=>function h(k,X){let W=null;const K=(k.payload||[]).find(T=>T?.shipCode===X?.shipCode&&T?.sailDate===X?.sailDate&&T?.requestorPaxId===X?.passengerId&&T?.requestorCruiseBookingId===X?.bookingId);return W=Object.assign({},X,K?{lookup:{shipSupported:K.postCruiseFolioEnabledForSailing,dataExists:K.doesFolioExist,elapsedYears:a().diff(K.sailDate,"years"),elapsedDays:a().diff(K.sailDate,"days")}}:{lookup:null}),W}(X,T));return{...k,past:{loaded:!0,bookings:K}}}),(0,t.on)(e.z.fetchBookingEdocs,(k,{payload:X})=>{const W=X.reduce((K,T)=>({...K,[T]:!0}),{...k.fetchingEDocs});return{...k,fetchingEDocs:W}}),(0,t.on)(e.z.fetchBookingEdocsSuccess,(k,{payload:X})=>{let T={...k.bookingsEdocs},Y={...k.fetchingEDocs};return(X?.getCampaignMetadataResponse?.getCampaignMetadataResult?.campaignTransactions?.campaignTransaction||[]).forEach(H=>{const et=H.reservationReference?.bookingID,q=H.documentURLs?.documentURL??[];T={...T,[String(et)]:q?.flat()},Y={...Y,[String(et)]:!1}}),{...k,bookingsEdocs:T,fetchingEDocs:Y}}),(0,t.on)(e.z.fetchBookingEdocsFail,(k,{payload:X})=>{let K={...k.bookingsEdocs},T={...k.fetchingEDocs};return(X.bookingIds??[]).forEach(Y=>{K={...K,[Y]:[]},T={...T,[Y]:!1}}),{...k,bookingsEdocs:K,fetchingEDocs:T}}),(0,t.on)(e.z.fetchRoyalUpStatusesSuccess,(k,{payload:X})=>{const W=Object.keys(k.bookings).reduce((K,T)=>{const Y=k.bookings[T],H=m(X,T);return K[T]={...Y,royalUpStatus:H},K},{});return{...k,royalUpItems:X,bookings:W}}),(0,t.on)(e.z.fetchRoyalUpStatusesFail,k=>({...k,royalUpItems:[]}))),extraSelectors:({selectBookings:k,selectBookingState:X})=>({selectHasBookings:(0,t.Mz)(X,W=>W.loaded&&Object.keys(W.bookings).length>0),selectBookingById:W=>(0,t.Mz)(k,K=>K[W]??{}),linkBookingManual:(0,t.Mz)(X,W=>W),linkBooking:(0,t.Mz)(X,W=>W)})}),{selectAutoLinked:M,selectBookingState:x,selectBookings:b,linkBookingManual:F,linkBooking:G,selectLoaded:w,selectLoading:S,selectError:V,selectHasBookings:E,selectBookingById:L,selectBookingLinkStatus:D}=o},10804:(J,U,n)=>{"use strict";n.d(U,{cg:()=>e,Tg:()=>V,H0:()=>o,Pk:()=>x,qA:()=>F});var t=n(59640);
717const e=(0,t.EQ)({source:"Cobrand Hub",events:{"get Cobrand Hub Info":(0,t.xk)(),"get Cobrand Hub Info Start":(0,t.w5)(),"get Cobrand Hub Info Success":(0,t.xk)(),"get Cobrand Hub Info Fail":(0,t.xk)(),"get Cobrand Hub Info Clear":(0,t.w5)(),"set Cobrand Hub Info":(0,t.xk)()}});var a=n(54438),C=n(77339),y=n(53993),v=n(5964),l=n(97647),h=n(57786),u=n(30786),c=n(25558),d=n(96354),r=n(99437),O=n(7673),p=n(99172);const s={cobrandHubInfo:null,loading:!1,loaded:!1,error:null},o=(0,t.VG)({name:"GA.cobrandHubInfo",reducer:(0,t.vy)(s,(0,t.on)(e.getCobrandHubInfo,E=>({...E,error:null})),(0,t.on)(e.getCobrandHubInfoStart,E=>({...E,loading:!0})),(0,t.on)(e.getCobrandHubInfoSuccess,(E,{payload:L})=>({...E,cobrandHubInfo:L,loaded:!0,error:null,loading:!1})),(0,t.on)(e.getCobrandHubInfoFail,(E,{payload:L})=>({...E,error:L,loading:!1,loaded:!1})),(0,t.on)(e.getCobrandHubInfoClear,()=>s),(0,t.on)(e.setCobrandHubInfo,(E,{payload:L})=>({...E,cobrandHubInfo:{...E.cobrandHubInfo,coBrandCardInfo:{...E.cobrandHubInfo?.coBrandCardInfo,...L?.response}}})))}),{selectError:x}=o,F=o["selectGA.cobrandHubInfoState"];var G=n(888),w=n(96721),S=n(22252);let V=(()=>{class E{constructor(){this.actions$=(0,a.WQX)(C.En),this.store=(0,a.WQX)(t.il),this.loyaltyProgramsService=(0,a.WQX)(w.t),this.getCobrandHubInfo$=(0,C.EH)(()=>{const D=this.actions$.pipe((0,C.gp)(e.getCobrandHubInfo),(0,y.E)(this.store.select(F)),(0,v.p)(([k,X])=>k.force||!X.loading&&!X.loaded),(0,l.u)());return(0,h.h)(D.pipe((0,v.p)(([k])=>!k.force),(0,u.p)(([k])=>this.doFetch(k))),D.pipe((0,v.p)(([k])=>!!k.force),(0,c.n)(([k])=>this.doFetch(k))))}),this.syncCobrandCardInfoToAccount$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(e.getCobrandHubInfoSuccess),(0,d.T)(D=>D.payload),(0,d.T)(D=>G.X.updateCobrandCardInfo(D?.coBrandCardInfo?{payload:D.coBrandCardInfo}:{payload:{}}))))}doFetch(D){return this.loyaltyProgramsService.getLoyaltyProgramsInfo(D.payload.brand).pipe((0,S.Z)(),(0,d.T)(k=>{const X=k?.status;return"number"==typeof X&&(0===X||X>=400)?e.getCobrandHubInfoFail({payload:{error:k,status:X}}):e.getCobrandHubInfoSuccess({payload:k.payload})}),(0,r.W)(k=>(0,O.of)(e.getCobrandHubInfoFail({payload:{error:k,status:k?.status}}))),(0,p.Z)(e.getCobrandHubInfoStart()))}static{this.\u0275fac=function(k){return new(k||E)}}static{this.\u0275prov=a.jDH({token:E,factory:E.\u0275fac})}}return E})()},85014:(J,U,n)=>{"use strict";n.d(U,{$d:()=>C.$d,$x:()=>a.$x,AG:()=>e.A,Ae:()=>a.Ae,Cf:()=>l.Cf,Fk:()=>t.Fk,G1:()=>a.G1,J9:()=>y.J9,JR:()=>a.JR,KJ:()=>C.us,Lc:()=>C.Lc,Os:()=>a.Os,Pk:()=>h.Pk,QW:()=>a.QW,Qr:()=>a.Qr,Qx:()=>t.Qx,RE:()=>C.RE,Rm:()=>C.Rm,TS:()=>e.T,Tn:()=>d.Tn,Xw:()=>t.Xw,Zq:()=>a.Zq,al:()=>C.al,c8:()=>C.c8,dc:()=>C.dc,ej:()=>C.ej,gK:()=>a.gK,mO:()=>a.mO,nV:()=>a.nV,q9:()=>t.q9,rO:()=>a.rO,s0:()=>a.s0,us:()=>t.us,wI:()=>l.wI,wp:()=>v.wp,wz:()=>C.wz,y9:()=>t.y9,zK:()=>a.zK});var t=n(2362),e=n(65177),a=n(92869),C=n(10319),y=n(28806),v=n(67853),l=n(42683),h=n(10804),d=(n(9548),n(55245),n(18008))},62161:(J,U,n)=>{"use strict";n.d(U,{HY:()=>e,ix:()=>y,ul:()=>a,ze:()=>C});var t=n(59640);const e=(0,t.VP)("[LEGALS] Fetch Legal Text"),a=(0,t.VP)("[LEGALS] Fetch Legal Text Success",(0,t.xk)()),C=(0,t.VP)("[LEGALS] Fetch Legal Text Fail",(0,t.xk)()),y=(0,t.VP)("[LEGALS] Load Acceptance",(0,t.xk)())},39638:(J,U,n)=>{"use strict";n.d(U,{rU:()=>G,th:()=>C,FF:()=>h,kB:()=>w,Nz:()=>d,LL:()=>v,XF:()=>u,BN:()=>l});var t=n(59640),e=n(62161);const C=(0,t.VG)({name:"legals",reducer:(0,t.vy)({privacyPolicy:null,termsAndConditions:null,guestConductPolicy:null,securityGuide:null,loading:!1,error:null},(0,t.on)(e.HY,S=>({...S,loading:!0})),(0,t.on)(e.ul,(S,{payload:V})=>({...S,...V,loading:!1})),(0,t.on)(e.ze,(S,{payload:V})=>({...S,loading:!1,error:V})))}),{selectLegalsState:y,selectPrivacyPolicy:v,selectTermsAndConditions:l,selectGuestConductPolicy:h,selectSecurityGuide:u,selectLoading:d}=C;var r=n(54438),O=n(77339),p=n(44128),m=n(7673),s=n(53993),o=n(25558),f=n(96354),M=n(99437),x=n(8123),b=n(49287),F=n(22252);let G=(()=>{class S{constructor(){this.store$=(0,r.WQX)(t.il),this.actions$=(0,r.WQX)(O.En),this.legalsService=(0,r.WQX)(x.G),this.splunkService=(0,r.WQX)(b.PB),this.getLegalText$=(0,O.EH)(()=>this.actions$.pipe((0,O.gp)(e.HY),(0,s.E)(this.store$.pipe((0,t.Lt)(y))),(0,o.n)(([E,L])=>this.areLegals(L)?(0,m.of)(e.ul({payload:L})):this.legalsService.fetchAgreement().pipe((0,F.Z)({group:"LegalsEffects",tag:"getLegalText$",retryCallback:D=>{this.splunkService.logEvent(D,p.Vw.Counter)}}),(0,f.T)(D=>{const k=D?.payload?.agreementInfo??D?.agreementInfo??D,X={termsAndConditions:k?.termsAndConditions?.[0]??null,privacyPolicy:k?.privacyPolicy?.[0]??null,guestConductPolicy:k?.guestConductPolicy?.[0]??null,securityGuide:k?.securityGuide?.[0]??null,loading:!1};if(!k||"object"==typeof k&&0===Object.keys(k).length)this.fetchAgreementError(D,"Empty Agreement Info response");else{const W=Object.keys(X).filter(K=>null===X[K]);W.length&&this.fetchAgreementError({status:D.status?D.status:200,errors:D.errors},`Agreement missing: ${JSON.stringify(W)}`)}return e.ul({payload:X})}),(0,M.W)(D=>(this.fetchAgreementError(D),(0,m.of)(e.ze({payload:D}))))))))}areLegals(E){return!(!E?.privacyPolicy||!E?.termsAndConditions)}fetchAgreementError(E,L=""){const D=this.splunkService.initializeManyContext(["error","message"],[E,L]);this.splunkService.errorByLookUp(L?"CP-0021_CORE_SERVICES-AGREEMENT_CONTENT_VALIDATION_FAILED":"CP-0020_CORE_SERVICES-AGREEMENT_FAILED",{context:D})}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275prov=r.jDH({token:S,factory:S.\u0275fac})}}return S})();const w=y},28806:(J,U,n)=>{"use strict";n.d(U,{zH:()=>e,J9:()=>C,Yn:()=>y});var t=n(59640);const e=(0,t.EQ)({source:"loading Queue",events:{"Add To Loading Queue":(0,t.w5)(),"Remove from Loading Queue":(0,t.w5)()}}),C=(0,t.VG)({name:"loading",reducer:(0,t.vy)({showLoading:!1,queue:[]},(0,t.on)(e.addToLoadingQueue,v=>{const l=[...v.queue,!0];return{...v,queue:l,showLoading:l.length>0}}
717),(0,t.on)(e.removeFromLoadingQueue,v=>{const l=v.queue.length>0?v.queue.slice(0,-1):[];return{...v,queue:l,showLoading:l.length>0}}))}),{selectShowLoading:y}=C},86046:(J,U,n)=>{"use strict";n.d(U,{A6:()=>f,SV:()=>s,dV:()=>x,hm:()=>o,r4:()=>M});var t=n(59640);(0,t.VP)("[LOYALTY] Sync Linking Status",(0,t.xk)()),(0,t.VP)("[LOYALTY] Update Linking Status",(0,t.xk)()),(0,t.VP)("[LOYALTY] Link Number",(0,t.xk)()),(0,t.VP)("[LOYALTY] Link Number Idle",(0,t.xk)()),(0,t.VP)("[LOYALTY] Link Number Success",(0,t.xk)()),(0,t.VP)("[LOYALTY] Link Number Fail",(0,t.xk)()),(0,t.VP)("[LOYALTY] Link Number Clear Error",(0,t.xk)()),(0,t.VP)("[LOYALTY] Enroll",(0,t.xk)()),(0,t.VP)("[LOYALTY] Enroll Success",(0,t.xk)()),(0,t.VP)("[LOYALTY] Enroll Fail",(0,t.xk)()),(0,t.VP)("[LOYALTY] Enroll Clear",(0,t.xk)()),(0,t.VP)("[LOYALTY] Enroll Clear Error",(0,t.xk)()),(0,t.VP)("[LOYALTY] EnrollLoyaltyEnrollmentComponent"),(0,t.VP)("[LOYALTY] EnrollLoyaltyEnrollmentComponentFail",(0,t.xk)());const s=(0,t.VP)("[LOYALTY] Get Loyalty Programs",(0,t.xk)()),o=(0,t.VP)("[LOYALTY] Get Loyalty Programs Success",(0,t.xk)()),f=(0,t.VP)("[LOYALTY] Get Loyalty Programs Fail",(0,t.xk)()),M=(0,t.VP)("[LOYALTY] Get Loyalty Programs Clear"),x=(0,t.VP)("[LOYALTY] Set selected brand",(0,t.xk)());(0,t.VP)("[LOYALTY] Link your card",(0,t.xk)()),(0,t.VP)("[LOYALTY] Link Card Success",(0,t.xk)()),(0,t.VP)("[LOYALTY] Link Card Fail",(0,t.xk)())},18008:(J,U,n)=>{"use strict";n.d(U,{Tn:()=>a.Tn,l1:()=>f,sc:()=>v});var t=n(86046),e=n(59640),a=n(61232);const y=(0,e.vy)(a.CM,(0,e.on)(t.SV,(x,{payload:b})=>({...x,...b,error:null,loading:!0})),(0,e.on)(t.hm,(x,{payload:b,programTier:F,brand:G})=>function C(x){return void 0!==x?.enroll}(b)?{...x,loyaltyProgramsData:{...x.loyaltyProgramsData,[G]:b},loaded:!0,brand:G,programTier:F,error:null,loading:!1}:{...x,visaSignatureData:b,isVisaSignatureDataLoaded:!0,brand:G,programTier:F,error:null,loading:!1}),(0,e.on)(t.dV,(x,{brand:b})=>({...x,brand:b})),(0,e.on)(t.A6,(x,{payload:b})=>({...x,error:b,loading:!1,loaded:!1})),(0,e.on)(t.r4,()=>a.CM)),v=(0,e.VG)({name:"GA.loyaltyPrograms",reducer:y});var h=n(77339),u=n(22252),c=n(7673),d=n(96354),r=n(25558),O=n(99437),p=n(96721),m=n(65813),s=n(31369),o=n(54438);let f=(()=>{class x{constructor(F,G,w){this.actions$=F,this.loyaltyService=G,this.webConfigService=w,this.getLoyaltyPrograms$=(0,h.EH)(()=>this.actions$.pipe((0,h.gp)(t.SV),(0,d.T)(S=>S.payload),(0,r.n)(S=>this.loyaltyService.getLoyaltyPageContentFromAem({programTier:S.programTier,brand:S.brand}).pipe((0,u.Z)(),(0,d.T)(V=>{const L=this.webConfigService?.webConfig?.ga?.loyaltySilverSeaExperience&&V?.payload?.[s.NX]?{...V.payload[s.NX],loyaltyProgramV1Match:V.payload.filterTab}:V.payload;return t.hm({payload:L,programTier:S.programTier,brand:S.brand})}),(0,O.W)(V=>(0,c.of)(t.A6({payload:{error:V}})))))))}static{this.\u0275fac=function(G){return new(G||x)(o.KVO(h.En),o.KVO(p.t),o.KVO(m.s))}}static{this.\u0275prov=o.jDH({token:x,factory:x.\u0275fac})}}return x})();n(87623)},87623:(J,U,n)=>{"use strict";n.d(U,{D$:()=>y,Du:()=>a});var t=n(59640),e=n(28176);const a=(0,t.UX)(e.$l),y=((0,t.Mz)(a,v=>v.brand),v=>(0,t.Mz)(a,l=>l.loyaltyProgramsData[v].header))},61232:(J,U,n)=>{"use strict";n.d(U,{Tn:()=>v,CM:()=>c});var y=n(78822),v=function(d){return d.ROYAL="royal",d.CELEBRITY="celebrity",d.SILVERSEA="silversea",d}(v||{});const u={filterTab:[],termsAndConditions:null,enroll:null,enrollLoyaltyMatch:null,linkAccount:null,header:null},c={programTier:null,loyaltyProgramsData:{[v.ROYAL]:u,[v.CELEBRITY]:u,[v.SILVERSEA]:u},isCobrandHubDataLoaded:!1,cobrandHubData:y.AG,visaSignatureData:{banners:[],filterTab:[],header:null,link:null,termsAndConditions:null},isVisaSignatureDataLoaded:!1,loading:!1,loaded:!1,error:null,brand:null}},9548:(J,U,n)=>{"use strict";n.d(U,{A:()=>e});var t=n(59640);const e=(0,t.EQ)({source:"Loyalty",events:{"sync Linking Status":(0,t.xk)(),"update Linking Status":(0,t.xk)(),"link Number":(0,t.xk)(),"link Number Idle":(0,t.xk)(),"link Number Success":(0,t.xk)(),"link Number Fail":(0,t.xk)(),"link Number Clear Error":(0,t.xk)(),enroll:(0,t.xk)(),"enroll Success":(0,t.xk)(),"enroll Fail":(0,t.xk)(),"enroll Clear":(0,t.xk)(),"enroll Clear Error":(0,t.xk)(),"enroll Loyalty Enrollment Component":(0,t.xk)(),"enroll Loyalty Enrollment Component Fail":(0,t.xk)(),"get Loyalty Programs":(0,t.xk)(),"get Loyalty Programs Success":(0,t.xk)(),"get Loyalty Programs Fail":(0,t.xk)(),"get Loyalty Programs Clear":(0,t.xk)(),"set Selected Brand":(0,t.xk)(),"link Card":(0,t.xk)(),"link Card Success":(0,t.xk)(),"link Card Fail":(0,t.xk)()}})},55245:(J,U,n)=>{"use strict";n.d(U,{x:()=>x});var t=n(54438),e=n(77339),a=n(59640),C=n(7673),y=n(44437),v=n(96354),l=n(25558),h=n(99437),u=n(53993),c=n(31397),d=n(5964),r=n(45312),O=n(66693),p=n(49287),m=n(87343),s=n(2362),o=n(9548),f=n(96721),M=n(10804);let x=(()=>{class b{constructor(){this.actions$=(0,t.WQX)(e.En),this.store=(0,t.WQX)(a.il),this.loyaltyRepositoryService=(0,t.WQX)(p.J5),this.loyaltyService=(0,t.WQX)(f.t),this.featureFlags=(0,t.WQX)(m.f),this.enroll$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(o.A.enroll),(0,v.T)(G=>G.payload),(0,l.n)(G=>this.loyaltyService.enroll(G).pipe((0,v.T)(w=>{const S=w?.payload;return o.A.enrollSuccess({payload:S})}),(0,h.W)(w=>(0,C.of)(o.A.enrollFail({payload:w}))))))),this.linkCard$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(o.A.linkCard),(0,v.T)(G=>G.payload),(0,l.n)(G=>this.loyaltyService.linkCard(G).pipe((0,l.n)(w=>{const S=w?.payload;return[M.cg.getCobrandHubInfo({payload:{brand:r.qt},force:!0}),o.A.linkCardSuccess({payload:{response:S,status:O.Z_.Success}})]}),(0,h.W)(w=>(0,C.of)(o.A.linkCardFail({payload:{response:w,status:O.Z_.Error}}))))))),this.enrollSuccess$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(o.A.enrollSuccess),(0,v.T)(G=>G.payload),(0,u.E)(this.store.pipe((0,a.Lt)(G=>G.account))),(0,v.T)(([G,w])=>{const{selectedBrand:S,loyaltyInformation:V}=G;let E;E=S?this.loyaltyRepositoryService.getProgramNumberPropertyName(S):this.loyaltyRepositoryService.currentProgram.properties.get("userId");const L=w&&w.data?w.data:w,D=V[E]??"",k={...L.loyaltyInformation,...V},X={...L,loyaltyInformation:{...k,[E]:D}};return s.Xw.getEnrichedSuccess({payload:{response:X,loadBookings:!1}})}))),this.link$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(o.A.linkNumber),(0,v.T)(G=>G.payload),(0,l.n)(G=>(0,y.y)((0,C.of)(G),this.store.pipe((0,a.Lt)("account")))),(0,l.n)(([G,w])=>(0,C.of)(this.buildLinkingPayload(G.brand,G.loyaltyNumber,w.data.vdsId,w.data.personalInformation.lastName,w.data.personalInformation.birthdate))),(0,c.Z)(G=>(this.store.dispatch(o.A.linkNumberIdle({payload:{brand:this.featureFlags.brandNameFromInitial(G.header.brand),status:O.Z_.Idle,loyaltyNumber:G.loyaltyId}})),this.processLinkingRequest(G))))),this.linkSuccess$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(o.A.linkNumberSuccess),(0,v.T)(G=>G.payload),(0,c.Z)(G=>this.updateAccountWithLinkedNumber(G)))),this.syncStatusWithAccountData$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(o.A.syncLinkingStatus),(0,v.T)(G=>G.payload),(0,d.p)(G=>G.loyaltyInformation),(0,v.T)(({loyaltyInformation:G,vdsId:w})=>({vdsId:w,statuses:this.loyaltyRepositoryService.resolveStatusForEachBrand(G)})),(0,v.T)(({statuses:G})=>
717o.A.updateLinkingStatus({payload:G}))))}buildLinkingPayload(G,w,S,V,E){return{header:{brand:G,channel:"web"},loyaltyId:w,vdsId:S,lastName:V,birthdate:E}}processLinkingRequest(G){const w=G.loyaltyId,S=G.vdsId,E={brand:this.featureFlags.brandNameFromInitial(G.header.brand),loyaltyNumber:w,vdsId:S};return this.loyaltyService.link(G).pipe((0,v.T)(L=>{const D=L?.payload;return o.A.linkNumberSuccess({payload:{...E,response:D,status:O.Z_.Success}})}),(0,h.W)(L=>(0,C.of)(o.A.linkNumberFail({payload:{...E,response:L,status:O.Z_.Error}}))))}updateAccountWithLinkedNumber(G){const w=[];return w.push(s.Xw.updateEnrichedSuccess({payload:{loyaltyInformation:{...G.response.loyaltyInformation}}})),w}static{this.\u0275fac=function(w){return new(w||b)}}static{this.\u0275prov=t.jDH({token:b,factory:b.\u0275fac})}}return b})()},74003:(J,U,n)=>{"use strict";n.d(U,{Aj:()=>t.A,VI:()=>e.VI,xs:()=>a.x,zJ:()=>e.zJ,zR:()=>e.zR});var t=n(9548),e=n(28176),a=n(55245)},28176:(J,U,n)=>{"use strict";n.d(U,{$l:()=>l,VI:()=>M,zJ:()=>c,zR:()=>f});var t=n(59640),e=n(9548),a=n(66693),C=n(31369),y=n(2362),v=n(45312);const l="GA.loyaltyPrograms",h={enrollmentStatus:null,linkingStatus:{royal:a.Z_.NotSet,celebrity:a.Z_.NotSet},loyaltyLinkingStatus:null,linkingCardStatus:{response:null,trackingStatus:a.Z_.NotSet,error:null},loading:!1},u={programTier:null,loyaltyProgramsData:{[C.rI.royal]:a.V,[C.rI.celebrity]:a.V},cobrandHubData:a.AG,isCobrandHubDataLoaded:!1,isVisaSignatureDataLoaded:!1,loading:!1,loaded:!1,error:null,brand:null},c=(0,t.VG)({name:"loyalty",reducer:(0,t.vy)(h,(0,t.on)(e.A.updateLinkingStatus,(x,{payload:b})=>({...x,linkingStatus:{...x.linkingStatus,...b}})),(0,t.on)(e.A.linkNumberSuccess,e.A.linkNumberFail,(x,{payload:b})=>({...x,linkingStatus:{...x.linkingStatus,[b.brand]:b.status},loyaltyLinkingStatus:{...x.loyaltyLinkingStatus,response:{...b.response},trackingStatus:b.status}})),(0,t.on)(e.A.linkNumberIdle,(x,{payload:b})=>({...x,linkingStatus:{...x.linkingStatus,[b.brand]:b.status}})),(0,t.on)(e.A.linkNumberClearError,x=>{const b={...x.linkingStatus};return Object.keys(b).forEach(F=>{b[F]===a.Z_.Error&&(b[F]=a.Z_.NotSet)}),{...x,linkingStatus:b}}),(0,t.on)(e.A.enroll,e.A.enrollLoyaltyEnrollmentComponent,x=>({...x,enrollmentStatus:{trackingStatus:a.lT.RequestReceived}})),(0,t.on)(e.A.enrollSuccess,(x,{payload:b})=>({...x,enrollmentStatus:{requestId:b.loyaltyAccountId,trackingStatus:a.lT.Added}})),(0,t.on)(e.A.enrollFail,e.A.enrollLoyaltyEnrollmentComponentFail,(x,{payload:b})=>({...x,enrollmentStatus:{error:b,trackingStatus:a.lT.Error}})),(0,t.on)(e.A.enrollClear,x=>({...x,enrollmentStatus:null})),(0,t.on)(e.A.enrollClearError,x=>x.enrollmentStatus&&x.enrollmentStatus.trackingStatus===a.lT.Error?{...h,linkingStatus:x.linkingStatus}:x),(0,t.on)(e.A.linkCard,x=>({...x,loading:!0,linkingCardStatus:{error:null,trackingStatus:a.Z_.NotSet}})),(0,t.on)(e.A.linkCardSuccess,(x,{payload:b})=>({...x,...b,loading:!1,linkingCardStatus:{requestId:null,error:null,trackingStatus:a.Z_.Success}})),(0,t.on)(e.A.linkCardFail,(x,{payload:b})=>({...x,loading:!1,linkingCardStatus:{error:b,trackingStatus:a.Z_.Error}})))}),{selectLoyaltyState:r}=c,f=(0,t.Mz)(r,x=>x),M=(0,t.Mz)(y.Qx,x=>{const b=x?.loyaltyInformation?.aemLoyaltyHubData;return b?{...u,programTier:null,loyaltyProgramsData:{[C.rI.royal]:a.V,[C.rI.celebrity]:a.V},cobrandHubData:b.payload,isCobrandHubDataLoaded:!!b,loading:!1,loaded:!0,error:null,brand:v.qt}:u})},91696:(J,U,n)=>{"use strict";n.d(U,{y:()=>e});var t=n(59640);const e=(0,t.EQ)({source:"RESERVATION",events:{"confirm Check":(0,t.xk)(),"confirm Success":(0,t.xk)(),confirmFail:(0,t.xk)(),skipConfirmPassengers:(0,t.xk)(),goToConfirmPassengers:(0,t.w5)(),"find Check":(0,t.xk)(),"find Success":(0,t.xk)(),"find Fail":(0,t.xk)(),"number Check":(0,t.xk)(),"number Success":(0,t.xk)(),"number Fail":(0,t.xk)()}})},11988:(J,U,n)=>{"use strict";n.d(U,{yW:()=>t.y,nn:()=>x,Vo:()=>F,xr:()=>w,Ao:()=>E,yn:()=>S,aj:()=>G,iu:()=>L});var t=n(91696),e=n(54438),a=n(30803),C=n(77339),y=n(59640),v=n(53993),l=n(7673),h=n(44437),u=n(73557),c=n(96354),d=n(25558),r=n(31397),O=n(99437),p=n(88141),m=n(66693),s=n(49287),o=n(2203),f=n(79694),M=n(3199);let x=(()=>{class k{constructor(){this.actions$=(0,e.WQX)(C.En),this.reservationService=(0,e.WQX)(o.E),this.bookingService=(0,e.WQX)(s.LM),this.reservationFacade=(0,e.WQX)(M.A),this.router=(0,e.WQX)(a.Ix),this.store=(0,e.WQX)(y.il),this.numberCheck$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.y.numberCheck),(0,v.E)(this.reservationFacade.numberCheck$),(0,c.T)(([,W])=>W),(0,d.n)(W=>this.reservationService.getByNumber(W).pipe((0,r.Z)(K=>(0,l.of)(t.y.numberSuccess({payload:K}))),(0,O.W)(K=>
717(0,l.of)(t.y.numberFail({payload:{type:K}}))))))),this.numberConfirm$=(0,C.EH)((W=(0,e.WQX)(C.En),K=(0,e.WQX)(y.il))=>W.pipe((0,C.gp)(t.y.numberSuccess),(0,c.T)(T=>T.payload),(0,d.n)(T=>(0,h.y)((0,l.of)(T),K.pipe((0,y.Lt)("account")))),(0,c.T)(([T])=>T.bookings[0].bookingStatus===m.$e.Offered?t.y.skipConfirmPassengers(T):t.y.goToConfirmPassengers))),this.findCheck$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.y.findCheck),(0,c.T)(W=>W.payload),(0,d.n)(W=>this.bookingService.findBookingBy(W).pipe((0,c.T)(K=>t.y.findSuccess({payload:{bookings:K.payload??[],bookingId:W.bookingId,vdsId:W.vdsId}})),(0,O.W)(K=>(0,l.of)(t.y.findFail({payload:{type:K}}))))))),this.findSuccess$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.y.findSuccess),(0,c.T)(W=>W.payload),(0,p.M)(W=>{const{bookingId:K,vdsId:T,fromOlci:Y}=W;Y&&this.router.navigate(["/find-reservation/review"],{queryParams:{bookingId:K,vdsId:T,fromOlci:Y},skipLocationChange:!0})}),(0,u.w)()),{dispatch:!1}),this.confirmCheck$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.y.confirmCheck),(0,c.T)(W=>W.payload),(0,d.n)(W=>this.bookingService.manualLinkProfileBooking(W.userData).pipe((0,p.M)(()=>{if(W.isFromOlci){const K={...W.parseBookingInfo,linkType:"ON_BEHALF_OF_ENHANCED"};this.store.dispatch(f.z.fetchCheckInInfo({payload:{booking:K}}))}}),(0,c.T)(()=>t.y.confirmSuccess({payload:W.userData})),(0,O.W)(K=>(0,l.of)(t.y.confirmFail({payload:{type:K,errorMessage:K}}))))))),this.confirmCheckSuccess=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.y.confirmSuccess),(0,c.T)(W=>W.payload),(0,r.Z)(W=>[f.z.fetchProfileBookings({payload:{vdsId:W.vdsId,loyaltyNumber:W.loyaltyNumber},force:!0}),f.z.linkBookingClean()])))}static{this.\u0275fac=function(K){return new(K||k)}}static{this.\u0275prov=e.jDH({token:k,factory:k.\u0275fac})}}return k})();const F=(0,y.VG)({name:"reservation",reducer:(0,y.vy)({reservation:null,confirmation:null,skipPassengers:null,error:null,findCheck:null,findSuccess:null,findFail:null,cruises:null,cruiseFail:null,numberCheck:null,numberFail:null,goToConfirmPassengers:null,booking:null,loaded:!1,loading:!1},(0,y.on)(t.y.confirmCheck,(k,{payload:X})=>({...k,reservation:X})),(0,y.on)(t.y.confirmSuccess,(k,{payload:X})=>({...k,confirmation:X,error:null})),(0,y.on)(t.y.confirmFail,(k,{payload:X})=>({...k,error:X})),(0,y.on)(t.y.skipConfirmPassengers,(k,{payload:X})=>({...k,skipPassengers:X})),(0,y.on)(t.y.findCheck,(k,{payload:X})=>({...k,findCheck:X,findSuccess:null,loaded:!1,loading:!0,error:null})),(0,y.on)(t.y.findSuccess,(k,{payload:X})=>({...k,findSuccess:X,loaded:!0,loading:!1,error:null})),(0,y.on)(t.y.findFail,(k,{payload:X})=>({...k,findFail:X,loading:!1,loaded:!1,error:X??k.error})),(0,y.on)(t.y.numberCheck,(k,{payload:X})=>({...k,numberCheck:X,error:null})),(0,y.on)(t.y.numberSuccess,(k,{payload:X})=>({...k,booking:X,error:null})),(0,y.on)(t.y.numberFail,(k,{payload:X})=>({...k,numberFail:X,error:X??k.error})))}),{selectReservationState:G,selectReservation:w,selectFindCheck:S,selectCruises:E,selectNumberCheck:L}=F},97840:(J,U,n)=>{"use strict";n.d(U,{W0:()=>e,lO:()=>f,v9:()=>C});var t=n(59640);const e=(0,t.EQ)({source:"Reset Password",events:{"Check Token Validity":(0,t.xk)(),"Check Token Validity Success":(0,t.xk)(),"Check Token Validity Fail":(0,t.xk)()}}),C=(0,t.VG)({name:"resetPassword",reducer:(0,t.vy)({tokenValid:null,loading:!1,error:null},(0,t.on)(e.checkTokenValidity,M=>({...M,loading:!0,error:null})),(0,t.on)(e.checkTokenValiditySuccess,(M,{payload:x})=>({...M,tokenValid:x?.valid??!0,loading:!1,error:null})),(0,t.on)(e.checkTokenValidityFail,(M,{payload:x})=>({...M,tokenValid:!1,loading:!1,error:x})))});var d=n(77339),r=n(25558),O=n(96354),p=n(99437),m=n(7673),s=n(49287),o=n(54438);let f=(()=>{class M{constructor(){this.actions$=(0,o.WQX)(d.En),this.accountService=(0,o.WQX)(s.Di),this.checkTokenValidity$=(0,d.EH)(()=>this.actions$.pipe((0,d.gp)(e.checkTokenValidity),(0,r.n)(({payload:b})=>this.accountService.validateForgotPasswordToken(b).pipe((0,O.T)(F=>F?.payload?.valid?e.checkTokenValiditySuccess({payload:F.payload}):e.checkTokenValidityFail({payload:F.payload})),(0,p.W)(F=>(0,m.of)(e.checkTokenValidityFail({payload:F})))))))}static{this.\u0275fac=function(F){return new(F||M)}}static{this.\u0275prov=o.jDH({token:M,factory:M.\u0275fac})}}return M})()},88585:(J,U,n)=>{"use strict";n.d(U,{b:()=>e});var t=n(59640);const e=(0,t.EQ)({source:"Settings",events:{"lookup Loyalty":(0,t.xk)(),"lookup Loyalty Success":(0,t.xk)(),"lookup Loyalty Fail":(0,t.xk)(),"reset Loyalty Lookup Flags":(0,t.w5)()}})},42683:(J,U,n)=>{"use strict";n.d(U,{Cf:()=>m,RU:()=>b,wI:()=>f});var t=n(88585),e=n(54438),a=n(77339),C=n(96354),y=n(25558),v=n(99437),l=n(7673),h=n(21626),u=n(45312),c=n(97127),d=n(83458);let r=(()=>{class F{constructor(w){this.httpTelemetry=w,this.localization=(0,e.WQX)(c.P)}lookupLoyalty(w){const{language:S}=this.localization.detect(),L=`${u.f0}/${S}/${u.vN}/web/v1/esl/loyalty/searchByIds`,k={headers:(new h.Lr).set("X-Requested-With","XMLHttpRequest").set("AppKey",u.CV).set("Platform",u.mx.platform).set("env",u.Fh.LOYALTY_ENV_HEADER)};return this.httpTelemetry.post(L,{guestLoyaltyIdLookup:[{loyaltyId:w}],domain:u.Fh.LOYALTY_DOMAIN_VALUE},k).pipe((0,C.T)(W=>W))}static{this.\u0275fac=function(S){return new(S||F)(e.KVO(d.ld))}}static{this.\u0275prov=e.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}}return F})();var O=n(78822),p=n(31369);let m=(()=>{class F{constructor(){this.actions$=(0,e.WQX)(a.En),this.savedGuestsService=(0,e.WQX)(r),this.lookupLoyalty=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(t.b.lookupLoyalty),(0,C.T)(w=>w.payload),(0,y.n)(w=>this.savedGuestsService.lookupLoyalty(w).pipe((0,C.T)(S=>{const V=S.payload.guestLoyaltyDetails[0].loyaltyMemberTierType.tierCode,L=S.payload.guestLoyaltyDetails[0].loyaltyId;return this.isValidTierForBrand(S.payload.guestLoyaltyDetails[0].loyaltyMemberTierType.tierName)?t.b.lookupLoyaltySuccess({payload:{cruiseLoyaltyId:L,loyaltyTier:V}}):t.b.lookupLoyaltyFail({payload:{message:"Invalid tier code for brand",tierCode:V,brand:u.vN}})}),(0,v.W)(S=>(0,l.of)(t.b.lookupLoyaltyFail({payload:S})))))))}isValidTierForBrand(w){const S=w.toLowerCase();switch(u.qt){case p.rI.royal:return Object.values(O.m).includes(S);case p.rI.celebrity:return Object.values(O.ev).includes(S);
717case p.rI.silversea:return Object.values(O.dh).includes(S);default:return!1}}static{this.\u0275fac=function(S){return new(S||F)}}static{this.\u0275prov=e.jDH({token:F,factory:F.\u0275fac})}}return F})();var s=n(59640);const o={savedGuests:{loyalty:null,lookupLoyaltyLoading:!1,lookupLoyaltySuccess:!1,lookupLoyaltyFail:!1}},f=(0,s.VG)({name:"settings",reducer:(0,s.vy)(o,(0,s.on)(t.b.lookupLoyalty,F=>({...F,savedGuests:{...o.savedGuests,loyalty:null,lookupLoyaltyLoading:!0,lookupLoyaltySuccess:!1,lookupLoyaltyFail:!1}})),(0,s.on)(t.b.lookupLoyaltySuccess,(F,{payload:G})=>({...F,savedGuests:{...o.savedGuests,loyalty:G,lookupLoyaltyLoading:!1,lookupLoyaltySuccess:!0,lookupLoyaltyFail:!1}})),(0,s.on)(t.b.lookupLoyaltyFail,(F,{payload:G})=>({...F,savedGuests:{...o.savedGuests,loyalty:null,lookupLoyaltyLoading:!1,lookupLoyaltySuccess:!1,lookupLoyaltyFail:G}})),(0,s.on)(t.b.resetLoyaltyLookupFlags,F=>({...F,savedGuests:{...F.savedGuests,lookupLoyaltySuccess:!1,lookupLoyaltyFail:!1}})))}),{selectSavedGuests:b}=f},64489:(J,U,n)=>{"use strict";n.d(U,{Cf:()=>C,X3:()=>a,Yu:()=>e});var t=n(59640);const e=(0,t.VP)("[SHIPS] Fetch Ships"),a=(0,t.VP)("[SHIPS] Fetch Ships Success",(0,t.xk)()),C=(0,t.VP)("[SHIPS] Fetch Ships Fail",(0,t.xk)())},67853:(J,U,n)=>{"use strict";n.d(U,{lo:()=>e,BQ:()=>y,wp:()=>C});var t=n(59640);const e=(0,t.EQ)({source:"Toast",events:{"Show Toast":(0,t.xk)(),"Close Toast":(0,t.w5)()}}),C=(0,t.VG)({name:"toast",reducer:(0,t.vy)({visible:!1,toastType:"",message:"",duration:5e3},(0,t.on)(e.showToast,(v,{toastType:l,message:h,duration:u})=>({...v,visible:!0,toastType:l,message:h,duration:u})),(0,t.on)(e.closeToast,v=>({...v,visible:!1,toastType:"",message:"",duration:0})))}),{selectToastState:y}=C},3415:(J,U,n)=>{"use strict";n.d(U,{L:()=>e});var t=n(59640);const e=(0,t.EQ)({source:"Voyage",events:{"get Enriched Voyages":(0,t.xk)(),"get Enriched Voyages Success":(0,t.xk)(),"get Enriched Voyages Fail":(0,t.xk)(),"get Sailing History":(0,t.w5)(),"get Sailing History Success":(0,t.xk)(),"get Sailing History Fail":(0,t.xk)()}})},10319:(J,U,n)=>{"use strict";n.d(U,{Lc:()=>t.L,al:()=>m,RE:()=>e.RE,us:()=>e.us,c8:()=>e.c8,dc:()=>e.dc,wz:()=>e.wz,$d:()=>e.$d,Rm:()=>e.Rm,wE:()=>M,ej:()=>e.ej});var t=n(3415),e=n(47573),a=n(54438),C=n(77339),y=n(59640),v=n(53993),l=n(25558),h=n(7673),u=n(96354),c=n(99437),d=n(49287),r=n(85057);function p(x,b){return`${x}-${b}`}let m=(()=>{class x{constructor(){this.actions$=(0,a.WQX)(C.En),this.voyagesService=(0,a.WQX)(d.tH),this.store=(0,a.WQX)(y.il),this.getEnrichedVoyages=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.L.getEnrichedVoyages),(0,v.E)(this.store.select(r.Rm)),(0,l.n)(([F,G])=>{if(!F.payload||0===F.payload.length)return(0,h.of)(t.L.getEnrichedVoyagesSuccess({payload:[]}));if(!F.force&&!function O(x,b){return!(!x||0===x.length)&&x.some(F=>!b?.[p(F.shipCode,F.sailDate)])}(F.payload,G)){const w=F.payload.map(S=>G[p(S.shipCode,S.sailDate)]).filter(S=>null!=S);return(0,h.of)(t.L.getEnrichedVoyagesSuccess({payload:w}))}return this.voyagesService.getEnrichedVoyagesInfo(F.payload).pipe((0,u.T)(w=>w?.payload?.sailingInfo),(0,u.T)(w=>t.L.getEnrichedVoyagesSuccess({payload:w})),(0,c.W)(w=>(0,h.of)(t.L.getEnrichedVoyagesFail({error:w}))))}))),this.getSailingHistory$=(0,C.EH)(()=>this.actions$.pipe((0,C.gp)(t.L.getSailingHistory),(0,l.n)(()=>this.voyagesService.getSailingHistory().pipe((0,u.T)(F=>{const{sailings:G}=F?.payload||{};return t.L.getSailingHistorySuccess({payload:G})}),(0,c.W)(F=>(0,h.of)(t.L.getSailingHistoryFail({error:F})))))))}static{this.\u0275fac=function(G){return new(G||x)}}static{this.\u0275prov=a.jDH({token:x,factory:x.\u0275fac})}}return x})();var s=n(84572),o=n(28492),f=n(5964);function M(x){return(0,s.z)([x.select(e.dc),x.select(e.wz)]).pipe((0,o.j)(([b,F])=>!b&&!F),(0,f.p)(([b,F])=>b||!F),(0,u.T)(([b])=>b))}},47573:(J,U,n)=>{"use strict";n.d(U,{$d:()=>h,RE:()=>u,Rm:()=>l,c8:()=>c,cW:()=>C,dc:()=>d,ej:()=>y,us:()=>O,wz:()=>r});var t=n(59640),e=n(3415);const C="GA.voyages",y=(0,t.VG)({name:"voyage",reducer:(0,t.vy)({loaded:!1,loading:!1,error:null,voyages:{},pastSailings:{}},(0,t.on)(e.L.getEnrichedVoyages,p=>({...p,loaded:!1,loading:!0})),(0,t.on)(e.L.getEnrichedVoyagesSuccess,(p,{payload:m})=>({...p,voyages:(m||[]).reduce((o,f)=>{if(f?.shipCode&&f?.sailDate){let M=f;
717if(f?.voyageImage?.web){const b=M.voyageImage.web.map(F=>({fileReference:F.fileReference.replace(/\.transform\/.*/gi,""),height:F.height,title:F.title,width:F.width}));M={...f,voyageImage:{web:b}}}else M={...f,voyageImage:{web:[]}};const x=`${M.shipCode}-${M.sailDate}`;o[x]={...M,voyageCode:x}}return o},{}),loading:!1,loaded:!0})),(0,t.on)(e.L.getEnrichedVoyagesFail,(p,{error:m})=>({...p,error:m,loaded:!1,loading:!1})),(0,t.on)(e.L.getSailingHistory,p=>({...p,loaded:!1,loading:!0})),(0,t.on)(e.L.getSailingHistorySuccess,(p,{payload:m})=>({...p,pastSailings:(m||[]).reduce((o,f)=>{if(f?.shipCode&&f?.sailingDate){let M=f;f?.voyageImage&&"string"==typeof f?.voyageImage&&(M={...f,voyageImage:f.voyageImage.replace(/\.transform\/.*/gi,"")});const x=`${M.shipCode}-${M.sailingDate}`;o[x]={...M,voyageCode:x}}return o},{}),loading:!1,loaded:!0})),(0,t.on)(e.L.getSailingHistoryFail,(p,{error:m})=>({...p,error:m,loaded:!1,loading:!1}))),extraSelectors:({selectVoyages:p})=>({selectVoyageById:m=>(0,t.Mz)(p,s=>s[m]??{})})}),{selectVoyages:l,selectVoyageState:h,selectPastSailings:u,selectError:c,selectLoaded:d,selectLoading:r,selectVoyageById:O}=y},85057:(J,U,n)=>{"use strict";n.d(U,{Bq:()=>y,KU:()=>r,Rm:()=>C});var t=n(59640),e=n(47573);const a=(0,t.UX)(e.cW),C=(0,t.Mz)(a,O=>O?O.voyages:{}),y=(0,t.Mz)(C,O=>O?Object.values(O):[]),r=((0,t.Mz)(a,O=>!!O?.loaded),(0,t.Mz)(a,O=>O&&O.lastLoadedTime?new Date(O.lastLoadedTime):void 0),(O,p)=>O.voyages[p])},39928:(J,U,n)=>{"use strict";n.d(U,{a:()=>e,u:()=>a});const t=5e3;function e(y){return!("INACTIVE"!==y.status||!y.closeDate)&&C(y)<t}function a(y){const v=y.filter(l=>"ACTIVE"===l.status);return v.length?v.reduce((l,h)=>C(h)>C(l)?h:l,v[0]):null}function C(y){return(Number.isFinite(y.availablePointsBalance)?y.availablePointsBalance:0)+(Number.isFinite(y.pendingPointsBalance)?y.pendingPointsBalance:0)}},16129:(J,U,n)=>{"use strict";n.d(U,{I:()=>p});var t=n(54438),e=n(30803),a=n(97513),C=n(31369),y=n(45312),v=n(49287),l=n(68018),h=n(83959),u=n(54593),c=n(39928);function d(m,s){if(1&m){const o=t.RV6();t.j41(0,"button",2),t.bIt("click",function(M){t.eBV(o);const x=t.XpG();return t.Njj(x.onTryAgain(M))}),t.j41(1,"div",3)(2,"div",4)(3,"span"),t.EFF(4),t.k0s()(),t.j41(5,"div",5)(6,"div",6)(7,"div",7),t.EFF(8),t.k0s()(),t.j41(9,"div",8)(10,"span",9),t.EFF(11),t.k0s()()()()()}if(2&m){let o,f,M,x;const b=t.XpG();t.HbH("new-cobrand-card "+(!0!==(null==(o=b.account())||null==o.cobrandProgram?null:o.cobrandProgram.loaded)||b.isKoddiNonChAdsLoading()?"skeleton":"royal-one-background")),t.xc7("background-image",b.royalOneBackground),t.Y8G("disabled",!b.isContentLoaded()),t.R7$(),t.AVh("hidden",!0!==(null==(f=b.account())||null==f.cobrandProgram?null:f.cobrandProgram.loaded)||b.isKoddiNonChAdsLoading()),t.R7$(3),t.SpI(" ",(null==(M=b.cardHolderContent())?null:M.royalOneRewardsCardHolders)||b.royalOneRewards,""),t.R7$(4),t.JRh(b.allApisFailed()?b.unavailableText:(null==(x=b.getBrandBanners())||null==x.COBRAND_DETAILS?null:x.COBRAND_DETAILS.unavailable)||b.unavailableText),t.R7$(3),t.JRh(b.tryAgainLaterText)}}function r(m,s){if(1&m){const o=t.RV6();t.j41(0,"button",10),t.bIt("click",function(){t.eBV(o);const M=t.XpG();return t.Njj(M.onLearnMoreClick())}),t.j41(1,"div",11)(2,"div",12)(3,"div",13)(4,"img",14),t.bIt("load",function(M){t.eBV(o);const x=t.XpG();return t.Njj(x.onCardImageLoad(M))}),t.k0s()(),t.j41(5,"div",15)(6,"span"),t.EFF(7),t.k0s()(),t.j41(8,"div",16)(9,"span"),t.EFF(10),t.k0s()(),t.j41(11,"div",17)(12,"span"),t.EFF(13),t.k0s()()(),t.j41(14,"div",18)(15,"span"),t.EFF(16),t.k0s(),t.j41(17,"span",19),t.nrm(18,"img",20),t.k0s()()()()}if(2&m){let o,f,M,x,b;const F=t.XpG();t.HbH("new-cobrand-card "+(F.isContentLoaded()?F.getBackgroundClass():"skeleton")),t.xc7("background-image",F.cobrandBackground),t.R7$(),t.AVh("hidden",!F.isContentLoaded()),t.R7$(3),t.Y8G("src",null==(o=F.nonCardHolderContent())?null:o.cardImage,t.B4B),t.R7$(3),t.JRh(null==(f=F.nonCardHolderContent())?null:f.headerUpto),t.R7$(3),t.JRh(null==(M=F.nonCardHolderContent())?null:M.headerPoints),t.R7$(3),t.JRh(null==(x=F.nonCardHolderContent())?null:x.copy),t.R7$(3),t.JRh(null==(b=F.nonCardHolderContent())?null:b.ctaText),t.R7$(2),t.Y8G("src","assets/images/"+F.brand+"/icons/right.svg",t.B4B)}}function O(m,s){if(1&m){const o=t.RV6();t.j41(0,"button",10),t.bIt("click",function(M){t.eBV(o);const x=t.XpG();return t.Njj(x.onRedeemClick(M))}),t.j41(1,"div",3)(2,"div",4)(3,"span"),t.EFF(4),t.k0s(),t.j41(5,"div",21)(6,"span"),t.nrm(7,"img",22),t.k0s(),t.j41(8,"span"),t.EFF(9),t.k0s()()(),t.j41(10,"div",23)(11,"div",6)(12,"div",24),t.EFF(13),t.k0s(),t.j41(14,"div",25),t.EFF(15),t.k0s()(),t.j41(16,"div",26)(17,"span",27),t.EFF(18),t.k0s(),t.j41(19,"span",28),t.nrm(20,"img",20),t.k0s()()()()()}if(2&m){let o,f,M,x;
717const b=t.XpG();t.HbH("new-cobrand-card "+(b.isContentLoaded()?b.getBackgroundClass():"skeleton")),t.xc7("background-image",b.royalOneBackground),t.R7$(),t.AVh("hidden",!b.isContentLoaded()),t.R7$(3),t.SpI(" ",null==(o=b.cardHolderContent())?null:o.royalOneRewardsCardHolders,""),t.R7$(3),t.Y8G("src",null==(f=b.cardHolderContent())?null:f.visaIconCardHolders,t.B4B),t.R7$(2),t.Lme("",(null==(M=b.primaryCobrandCard())?null:M.programCode)===b.programCode.ROYALONE?null==(M=b.cardHolderContent())?null:M.royalOneCardHolders:null==(M=b.cardHolderContent())?null:M.royalOnePlusCardHolders,"",null==(M=b.primaryCobrandCard())?null:M.lastFourDigits,""),t.R7$(4),t.JRh(b.formattedAmount),t.R7$(2),t.SpI("",b.rewardAmount," Points"),t.R7$(3),t.JRh((null==(x=b.cardHolderContent())?null:x.redeemCardHolders)||"Redeem"),t.R7$(2),t.Y8G("src","assets/images/"+b.brand+"/icons/right.svg",t.B4B)}}let p=(()=>{class m{constructor(){this.account=(0,t.hFB)(),this.aemData=(0,t.hFB)(),this.koddiNonChAdsData=(0,t.hFB)(null),this.isKoddiNonChAdsLoading=(0,t.hFB)(!1),this.royalOneActionUrl=(0,t.hFB)(void 0),this.royalOnePlusActionUrl=(0,t.hFB)(void 0),this.retryFetch=(0,t.CGW)(),this.brand=y.qt,this.language=(0,t.hFB)(),this.damUrl=a.A.AEM_PATH,this.cardType=C.bU,this.programCode=C._l,this.router=(0,t.WQX)(e.Ix),this.localizationService=(0,t.WQX)(v.Pi),this.translateService=(0,t.WQX)(l.c$),this.koddiBannerFacade=(0,t.WQX)(h.z),this.cobrandBackgroundImageLoaded=(0,t.vPA)(!1),this.royalOneBackgroundImageLoaded=(0,t.vPA)(!1),this.koddiAdRank=(0,t.vPA)(1),this.isContentLoaded=(0,t.EWP)(()=>{const o=!!this.nonCardHolderContent()||!!this.cardHolderContent(),f=!0===this.account()?.cobrandProgram?.loaded;return o&&f}),this.allApisFailed=(0,t.EWP)(()=>{const f=this.account()?.cobrandProgram,M=f?.loaded&&!f?.raw,b=void 0===this.getAuthoritativeActiveCardHolder(),F=!!this.aemData()||!!this.koddiNonChAdsData();return M&&b&&!F}),this.nonCardHolderContent=(0,t.EWP)(()=>this.getNonCardHolderContent()),this.cardHolderContent=(0,t.EWP)(()=>this.getCardHolderContent()),this.primaryCobrandCard=(0,t.EWP)(()=>{const o=this.account()?.cobrandProgram?.raw;let f=o?.cards,M=o?.profile;const x=this.account()?.cobrandCardInfo;if((!f||0===f.length)&&x&&(f=x?.cards,M=x?.profile),!f||!M?.primaryPan)return null;const b=f.find(F=>F.pan===M.primaryPan);return b&&(0,c.a)(b)?(0,c.u)(f):b||null}),this.hasInvalidPrimaryPan=(0,t.EWP)(()=>{const{raw:o,loaded:f}=this.account()?.cobrandProgram||{};if(!f)return!1;if(!o)return!0;if(!o.cards?.length)return!1;const M=o.profile?.primaryPan?.trim();return!M||!o.cards.some(x=>x.pan===M)}),this.areBalancesNull=(0,t.EWP)(()=>{const o=this.primaryCobrandCard();return!o||[o.availablePointsBalance,o.pointConversionFormula,o.programCode].some(M=>null==M||""===M)}),this.royalOneRewards=this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS_RESILIENCY.ROYAL_ONE_REWARDS"),this.unavailableText=this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS_RESILIENCY.UNAVAILABLE"),this.tryAgainLaterText=this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS_RESILIENCY.TRY_AGAIN_LATER")}getAuthoritativeActiveCardHolder(){return this.account()?.cobrandCardInfo?.activeCardHolder}isProfileEligible(o){return!!o&&!1===o?.activeBlackoutPeriod&&!o?.activeCardHolder}getBackgroundClass(){return this.shouldShowMigratedCardHolder()?this.primaryCobrandCard()?.programCode===C._l.ROYALONE?"royal-one-background":"royal-one-plus-background":"non-card-holder-background"}shouldDisplayCobrandTransformationCard(){const o=this.account(),{cobrandProgram:f}=o||{},M=f?.raw,x=M?.cards,b=f?.loaded,F=M?.profile,G=o?.cobrandCardInfo?.activeCardHolder??M?.profile?.activeCardHolder,w=x?.filter(V=>!(0,c.a)(V))?.length??0;if(!this.localizationService.isEnglishLanguage(this.language()))return!1;if(!G&&0===w&&b&&M&&!1===M?.profile?.activeBlackoutPeriod)return!!this.getNonCardHolderContent()||!this.koddiNonChAdsData()&&!this.aemData()&&!1===o?.cobrandCardInfo?.activeCardHolder;if(!this.koddiNonChAdsData()&&!this.aemData())return!1;const S=o?.cobrandCardInfo?.activeCardHolder??F?.activeCardHolder;return!(!b||null===x||0!==x?.length||!F||!1!==S)&&this.isProfileEligible(F)}getBrandBanners(){const o=this.aemData()?.payload;if(o)return o[`${this.brand}Banners`]||o.royalBanners}getNonCardHolderContent(){if(this.isKoddiNonChAdsLoading())return null;const o=this.koddiNonChAdsData();if(o?.assets){const{assets:M}=o;if(M.backgroundImage&&M.cardImage&&M.actionUrl)return{backgroundImage:`${this.damUrl}${M.backgroundImage}`,cobrandGradientBg:`${this.damUrl}${M.backgroundImage}`,cardImage:`${this.damUrl}${M.cardImage}`,headerUpto:M.offerTitle??M.title??"",headerPoints:M.pointsAmount??M.bonusPointsTitle??"",copy:M.pointsDescription??M.bonusPointsDescription??"",ctaText:M.buttonText??M.linkLabel??"",actionUrl:M.actionUrl}}const f=this.getBrandBanners()?.COBRAND_DETAILS;return f&&f.backgroundNonCardHolders&&f.cobrandGradientBg&&f.cardImageNonCardHolders?this.mapDataToContent(f):null}
717get cobrandBackground(){if(!0!==this.account()?.cobrandProgram?.loaded)return"";const o=this.nonCardHolderContent();return this.getBackgroundImageUrl(o?.cobrandGradientBg,this.cobrandBackgroundImageLoaded)}getBackgroundImageUrl(o,f){if(!o)return"";if(!f()){const M=new Image;return M.onload=()=>f.set(!0),M.onerror=()=>{},M.src=o,""}return`url(${o})`}mapDataToContent(o){return{backgroundImage:`${this.damUrl}${o?.backgroundNonCardHolders}`,cobrandGradientBg:`${this.damUrl}${o?.cobrandGradientBg}`,cardImage:`${this.damUrl}${o?.cardImageNonCardHolders}`,headerUpto:o?.headerUptoNonCardHolders,headerPoints:o?.headerPointsNonCardHolders,copy:o?.copyNonCardHolders,ctaText:o?.ctaNonCardHolders?.split(">")[0]?.trim()}}onLearnMoreClick(){this.fireClickBeacon();const o=this.royalOneActionUrl(),f=this.royalOnePlusActionUrl();!o&&!f||this.router.navigate(["/royal-one-rewards"],{state:{showNonCardholderHub:!0,royalOneActionUrl:o,royalOnePlusActionUrl:f}})}fireImpressionBeacon(o){const f=this.koddiNonChAdsData();if(!f)return;const x=(0,u.Y)(o.target,"koddi-ad-img");this.koddiAdRank.set(x),this.koddiBannerFacade.fireKoddiBeacon("impression",f,x)}fireClickBeacon(){const o=this.koddiNonChAdsData();if(!o)return;const f=this.koddiAdRank();this.koddiBannerFacade.fireKoddiBeacon("click",o,f)}onCardImageLoad(o){this.fireImpressionBeacon(o)}shouldShowMigratedCardHolder(){const{cobrandProgram:o}=this.account()||{},M=o?.raw?.cards,x=o?.loaded;return!!this.localizationService.isEnglishLanguage(this.language())&&null!==M&&M?.length>0&&!0===x&&!this.hasInvalidPrimaryPan()&&!this.areBalancesNull()}shouldShowUnavailableState(){const o=this.account(),{cobrandProgram:f}=o||{},{loaded:M,raw:x}=f||{},b=x?.cards,F=o?.cobrandCardInfo?.activeCardHolder??x?.profile?.activeCardHolder,w=void 0===this.getAuthoritativeActiveCardHolder(),S=b?.filter(V=>!(0,c.a)(V))?.length??0;return!(M&&x&&!b?.length&&F&&w)&&(!(!(M&&!x||o&&!f)&&(this.aemData()||this.koddiNonChAdsData()||this.isKoddiNonChAdsLoading()))||(M&&null!==b&&0===S?!1!==(o?.cobrandCardInfo?.activeCardHolder??x?.profile?.activeCardHolder):!!(M&&S>0)&&(this.hasInvalidPrimaryPan()||this.areBalancesNull())))}get royalOneBackground(){if(!0!==this.account()?.cobrandProgram?.loaded)return"";const o=this.cardHolderContent();if(this.hasInvalidPrimaryPan())return this.getBackgroundImageUrl(o?.backgroundBlueCardHolders,this.royalOneBackgroundImageLoaded);const f=this.primaryCobrandCard();return this.getBackgroundImageUrl(f&&f.programCode!==C._l.ROYALONE?o?.backgroundBlackCardHolders:o?.backgroundBlueCardHolders,this.royalOneBackgroundImageLoaded)}getCardHolderContent(){if(!this.aemData())return null;const o=this.getBrandBanners()?.COBRAND_DETAILS;return o&&o.backgroundBlueCardHolders&&o.backgroundBlackCardHolders&&o.redeemCardHolders&&o.royalOneRewardsCardHolders?this.mapCardHolderDataToContent(o):null}isValidNumber(o){return null!=o&&!Number.isNaN(o)}get rewardAmount(){const o=this.primaryCobrandCard()?.availablePointsBalance;return this.isValidNumber(o)?o.toLocaleString("en-US"):"0"}get formattedAmount(){const o=this.primaryCobrandCard()?.availablePointsBalance,f=this.primaryCobrandCard()?.pointConversionFormula;return!this.isValidNumber(o)||!this.isValidNumber(f)||o<0?"$0":Math.floor(o*f).toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0})}mapCardHolderDataToContent(o){return{redeemCardHolders:o.redeemCardHolders||"",royalOneRewardsCardHolders:o.royalOneRewardsCardHolders||"",backgroundBlueCardHolders:`${this.damUrl}${o.backgroundBlueCardHolders}`||"",royalOneCardHolders:o.royalOneCardHolders||"",visaIconCardHolders:`${this.damUrl}${o.visaIconCardHolders}`||"",pointsCardHolders:o.pointsCardHolders||"",backgroundBlackCardHolders:`${this.damUrl}${o.backgroundBlackCardHolders}`||"",royalOnePlusCardHolders:o.royalOnePlusCardHolders||""}}onRedeemClick(o){o&&(o.stopPropagation(),o.preventDefault()),this.router.navigate(["/royal-one-rewards"],{state:{showNonCardholderHub:!1}})}onTryAgain(o){o.stopPropagation(),o.preventDefault(),this.retryFetch.emit()}static{this.\u0275fac=function(f){return new(f||m)}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["app-cobrand-transformation-program-card"]],inputs:{account:[1,"account"],aemData:[1,"aemData"],koddiNonChAdsData:[1,"koddiNonChAdsData"],isKoddiNonChAdsLoading:[1,"isKoddiNonChAdsLoading"],royalOneActionUrl:[1,"royalOneActionUrl"],royalOnePlusActionUrl:[1,"royalOnePlusActionUrl"],language:[1,"language"]},outputs:{retryFetch:"retryFetch"},standalone:!0,features:[t.aNF],decls:3,vars:1,consts:[["type","button",3,"class","backgroundImage","disabled"],["type","button",3,"class","backgroundImage"],["type","button",3,"click","disabled"],[1,"royal-content"],[1,"royal-one-title"],[1,"unavailable-content"],[1,"points-title"],[1,"unavailable-text"],[1,"try-again"],[1,"try-again-text"],["type","button",3,"click"],[1,"card-content"],[1,"card-detail
717s"],[1,"card-image"],["alt","",1,"koddi-ad-img",3,"load","src"],[1,"header-upto"],[1,"points-amount"],[1,"bonus-points-offer"],[1,"learn-more-cta"],[1,"cta-icon"],["alt","Arrow","width","17","height","17",3,"src"],[1,"royal-one-sub-title"],["alt","Credit Card",3,"src"],[1,"card-block"],[1,"formatted-amount"],[1,"reward-amount"],[1,"redeem"],[1,"redeem-text"],[1,"redeem-icon"]],template:function(f,M){1&f&&t.DNE(0,d,12,10,"button",0)(1,r,19,12,"button",1)(2,O,21,14,"button",1),2&f&&t.vxM(M.shouldShowUnavailableState()||!M.isContentLoaded()?0:M.shouldDisplayCobrandTransformationCard()?1:M.shouldShowMigratedCardHolder()?2:-1)},styles:['[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.new-cobrand-card[_ngcontent-%COMP%] .learn-more-cta[_ngcontent-%COMP%], .new-cobrand-card[_ngcontent-%COMP%] .bonus-points-offer[_ngcontent-%COMP%], .new-cobrand-card[_ngcontent-%COMP%] .points-amount[_ngcontent-%COMP%], .new-cobrand-card[_ngcontent-%COMP%] .header-upto[_ngcontent-%COMP%]{color:#fff;text-align:center;font-feature-settings:"liga" off,"clig" off;font-family:Proxima Nova,sans-serif;font-style:normal}.new-cobrand-card[_ngcontent-%COMP%]{height:234px;border-radius:12px;display:flex;align-items:center;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden;cursor:pointer}.new-cobrand-card[_ngcontent-%COMP%]:is(button){appearance:none;background:transparent;border:none;padding:0}.new-cobrand-card.royal-one-background[_ngcontent-%COMP%], .new-cobrand-card.royal-one-plus-background[_ngcontent-%COMP%], .new-cobrand-card.non-card-holder-background[_ngcontent-%COMP%]{animation:none;background-size:cover}.new-cobrand-card.royal-one-background[_ngcontent-%COMP%]{background-image:linear-gradient(0deg,#15123c,#05176c 50.48%,#2a5fa6)}.new-cobrand-card.royal-one-plus-background[_ngcontent-%COMP%]{background-image:linear-gradient(0deg,#000,#353535 51.63%,#59595c 102.28%)}.new-cobrand-card.non-card-holder-background[_ngcontent-%COMP%]{background-image:linear-gradient(0deg,#15123c,#05176c 50.48%,#2a5fa6)}.new-cobrand-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:16px}.new-cobrand-card[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;gap:9.36px}.new-cobrand-card[_ngcontent-%COMP%] .card-image[_ngcontent-%COMP%]{width:60%;margin-bottom:8px;padding-left:22%}.new-cobrand-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.new-cobrand-card[_ngcontent-%COMP%] .header-upto[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:-12px;margin-bottom:-8px;line-height:18px}.new-cobrand-card[_ngcontent-%COMP%] .points-amount[_ngcontent-%COMP%]{font-size:30px;font-weight:800;letter-spacing:-1px;line-height:34px;margin-bottom:-9.36px}.new-cobrand-card[_ngcontent-%COMP%] .bonus-points-offer[_ngcontent-%COMP%]{font-weight:700;line-height:18px;font-size:14px;margin-bottom:8px}.new-cobrand-card[_ngcontent-%COMP%] .learn-more-cta[_ngcontent-%COMP%]{font-weight:700;cursor:pointer;display:flex;transition:opacity .2s ease;padding-left:15px;font-size:16px;position:relative;top:12px}.new-cobrand-card[_ngcontent-%COMP%] .learn-more-cta[_ngcontent-%COMP%] .cta-icon[_ngcontent-%COMP%]{margin-top:2.4px;width:19.604px}.new-cobrand-card[_ngcontent-%COMP%] .learn-more-cta[_ngcontent-%COMP%]:hover{opacity:.8}.new-cobrand-card[_ngcontent-%COMP%] .royal-content[_ngcontent-%COMP%]{display:flex;width:198.9px;height:194px;flex-direction:column;justify-content:space-between;align-items:center;flex-shrink:0}.new-cobrand-card[_ngcontent-%COMP%] .card-block[_ngcontent-%COMP%]{display:flex;width:129px;flex-direction:column;justify-content:space-between;align-items:center;flex-shrink:0}.new-cobrand-card[_ngcontent-%COMP%] .royal-one-title[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--global-white, #ffffff);text-align:center;font-feature-settings:"liga" off,"clig" off;font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-weight:700;line-height:18px;letter-spacing:.15px}.new-cobrand-card[_ngcontent-%COMP%] .royal-one-sub-title[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:3px;color:var(--global-white, #ffffff);text-align:center;font-feature-settings:"liga" off,"clig" off;font-family:Proxima Nova,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.15px}.new-cobrand-card[_ngcontent-%COMP%] .royal-one-sub-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18px;height:12px;aspect-ratio:3/2;display:flex;align-items:center;gap:6px}.new-cobrand-card[_ngcontent-%COMP%] .points-title[_ngcontent-%COMP%]{display:flex;width:129px;flex-direction:column;justify-content:space-between;align-items:center;flex-shrink:0;padding:35px 35.8px 35px 34.1px;
717gap:4px}.new-cobrand-card[_ngcontent-%COMP%] .formatted-amount[_ngcontent-%COMP%]{color:var(--global-white, #ffffff);text-align:center;font-feature-settings:"liga" off,"clig" off;font-family:Proxima Nova,Arial,sans-serif;font-size:32px;font-style:normal;font-weight:800;line-height:34px;letter-spacing:-1px}.new-cobrand-card[_ngcontent-%COMP%] .reward-amount[_ngcontent-%COMP%]{color:var(--global-white, #D2D5D9);text-align:center;font-feature-settings:"liga" off,"clig" off;font-family:Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.15px}.new-cobrand-card[_ngcontent-%COMP%] .redeem[_ngcontent-%COMP%]{display:flex;height:26.378px;padding:4.189px 0;justify-content:center;align-items:center;gap:2px;flex-shrink:0;align-self:stretch;cursor:pointer;background:none;border:none}.new-cobrand-card[_ngcontent-%COMP%] .redeem-text[_ngcontent-%COMP%]{color:var(--global-white, #ffffff);text-align:center;font-feature-settings:"liga" off,"clig" off;font-size:16px;font-style:normal;font-weight:700;line-height:18px}.new-cobrand-card[_ngcontent-%COMP%] .redeem-icon[_ngcontent-%COMP%]{width:16px;height:14px}.new-cobrand-card[_ngcontent-%COMP%] .unavailable-text[_ngcontent-%COMP%]{color:#fff;font-weight:700;letter-spacing:.15px}.new-cobrand-card[_ngcontent-%COMP%] .unavailable-content[_ngcontent-%COMP%]{display:flex;width:129px;flex-direction:column;justify-content:space-between;align-items:center;gap:1.8rem}.new-cobrand-card[_ngcontent-%COMP%] .try-again[_ngcontent-%COMP%]{display:flex;height:26.378px;padding:4.189px 0;justify-content:center;align-items:center;gap:2px;flex-shrink:0;align-self:stretch;cursor:pointer;background:none;border:none;transition:opacity .2s ease}.new-cobrand-card[_ngcontent-%COMP%] .try-again[_ngcontent-%COMP%]:hover{opacity:.8}.new-cobrand-card[_ngcontent-%COMP%] .try-again-text[_ngcontent-%COMP%]{color:#fff;font-weight:600}.new-cobrand-card.skeleton[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_shimmer 1.5s infinite}.hidden[_ngcontent-%COMP%]{visibility:hidden}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}']})}}return m})()},99526:(J,U,n)=>{"use strict";n.d(U,{jz:()=>w,XH:()=>u,xC:()=>m});var t=n(60177),e=n(54438),a=n(85014);const C=S=>({"hero-header--benefits":S}),y=S=>({"hero-header__silversea-title":S});function v(S,V){if(1&S&&(e.j41(0,"div",3)(1,"h3",4),e.EFF(2),e.k0s()()),2&S){const E=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.eq3(2,y,E.currentLoyaltyProgramBrand()===(null==E.brandNames?null:E.brandNames.SILVERSEA)&&!E.loyaltySilverseaExperience())),e.R7$(),e.SpI(" ",E.headerText(),"")}}function l(S,V){if(1&S&&(e.j41(0,"header",0),e.DNE(1,v,3,4,"div",2),e.k0s()),2&S){const E=e.XpG();e.Y8G("ngClass",e.eq3(3,C,E.isLoyaltyProgramBenefitsPath()))("ngStyle",E.getBackgroundImageStyle()),e.R7$(),e.Y8G("ngIf",E.isLoyaltyProgramBenefitsPath())}}function h(S,V){1&S&&e.nrm(0,"div",1)}let u=(()=>{class S{constructor(){this.headerBackGroundImage=(0,e.hFB)(),this.headerText=(0,e.hFB)(),this.isLoyaltyProgramBenefitsPath=(0,e.hFB)(),this.currentLoyaltyProgramBrand=(0,e.hFB)(),this.loyaltySilverseaExperience=(0,e.hFB)(),this.brandNames=a.Tn}getBackgroundImageStyle(){const E=this.headerBackGroundImage();return E?{"background-image":`url(${E})`}:null}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275cmp=e.VBU({type:S,selectors:[["app-hero-image"]],inputs:{headerBackGroundImage:[1,"headerBackGroundImage"],headerText:[1,"headerText"],isLoyaltyProgramBenefitsPath:[1,"isLoyaltyProgramBenefitsPath"],currentLoyaltyProgramBrand:[1,"currentLoyaltyProgramBrand"],loyaltySilverseaExperience:[1,"loyaltySilverseaExperience"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[["aria-labelledby","hero-header-title",1,"hero-header",3,"ngClass","ngStyle"],["aria-hidden","true",1,"hero-image"],["class","hero-header__user-info hero-header__loyalty-info-full",4,"ngIf"],[1,"hero-header__user-info","hero-header__loyalty-info-full"],["id","hero-header-title",1,"hero-header__loyalty-brand",3,"ngClass"]],template:function(L,D){1&L&&e.DNE(0,l,2,5,"header",0)(1,h,1,0,"div",1),2&L&&e.vxM(D.headerBackGroundImage()&&D.headerText()?0:1)},dependencies:[t.MD,t.YU,t.bT,t.B3],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.hero-image[_ngcontent-%COMP%]{display:flex;height:272px;background-image:url(/myaccount/assets/images/celebrity/ga-dashboard-celebrity-web.jpg);background-repeat:no-repeat;background-position:center center;background-size:cover;margin-top:70px}.hero-header[_ngcontent-%COMP%]{background-image:url(/myaccount/assets/images/celebrity/ga-dashboard-celebrity-mobile.jpg);background-repeat:no-repeat;background-position:center center;background-blend-mode:multiply;background-color:#b3b3b3;background-size:cover;height:320px;display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 768px){.hero-header[_ngcontent-%COMP%]{background-image:url(/myaccount/assets/images/celebrity/ga-dashboard-celebrity-web.jpg);height:300px}}@media (max-width: 480px){.hero-header[_ngcontent-%COMP%]{height:368px}}.hero-header__user-info[_ngcontent-%COMP%]{margin:0 auto;width:89.3333333333%;display:flex;justify-content:space-between}@media screen and (min-width: 768px){.hero-header__user-info[_ngcontent-%COMP%]{width:75%;max-width:984px}}@media (min-width: 768px){.hero-header__user-info[_ngcontent-%COMP%]{flex-direction:row;align-items:center}}.hero-header__loyalty-brand[_ngcontent-%COMP%]{font-size:48px;text-align:left;margin:0 0 50px;padding:0 20px 0 0;max-width:499px;box-sizing:border-box;font-weight:800;line-height:52px;letter-spacing:-1px}.hero-header__silversea-title[_ngcontent-%COMP%]{color:#000}.hero-header__loyalty-info[_ngcontent-%COMP%]{padding-bottom:0;height:160px}.hero-header__loyalty-info-centered[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:8px;padding:8px 8px 4px;margin-bottom:20px;height:auto;background:#181d23cc}.hero-header__loyalty-info-royal[_ngcontent-%COMP%]{height:auto;background:linear-gradient(0deg,#ffffff14 0% 100%),#0c175199}.hero-header__loyalty-info-full[_ngcontent-%COMP%]{flex:auto}.hero-header--benefits[_ngcontent-%COMP%]{height:400px}@media (width <= 768px){.hero-header__loyalty-brand[_ngcontent-%COMP%]{display:flex;align-items:center;margin:50px 0 0;padding:0;font-size:32px;font-weight:800;line-height:34px;letter-spacing:-1px;text-align:left}.hero-header__loyalty-info[_ngcontent-%COMP%]{padding-bottom:0;height:100px}.hero-header__loyalty-info-centered[_ngcontent-%COMP%]{display:flex;align-items:center}.hero-header--benefits[_ngcontent-%COMP%]{height:400px}.hero-header__enrollment-template[_ngcontent-%COMP%] .hero-header__loyalty-info-centered[_ngcontent-%COMP%]{align-self:center;margin-bottom:0}}"],changeDetection:0})}}return S})();var c=n(30803);const d=(S,V)=>V.title;function r(S,V){if(1&S){const E=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){e.eBV(E);const D=e.XpG().$implicit,k=e.XpG();return e.Njj(k.onCardClick(D))}),e.EFF(1),e.k0s()}if(2&S){const E=e.XpG().$implicit;e.Y8G("href",E.link,e.B4B),e.R7$(),e.JRh(E.ctaText)}}function O(S,V){if(1&S){const E=e.RV6();e.j41(0,"a",10),e.bIt("click",function(){e.eBV(E);const D=e.XpG().$implicit,k=e.XpG();return e.Njj(k.onCardClick(D))}),e.EFF(1),e.k0s()}if(2&S){const E=e.XpG().$implicit;e.Y8G("routerLink",E.link),e.R7$(),e.JRh(E.ctaText)}}function p(S,V){if(1&S&&(e.j41(0,"div",1)(1,"div",2),e.nrm(2,"img",3),e.k0s(),e.j41(3,"div",4)(4,"h3",5),e.EFF(5),e.k0s(),e.j41(6,"p",6),e.EFF(7),e.k0s(),e.DNE(8,r,2,2,"a",7)(9,O,2,2,"a",8),e.k0s()()),2&S){const E=V.$implicit;e.R7$(),e.xc7("background-image",E.backgroundImage?"url("+E.backgroundImage+")":E.background||null),e.AVh("more-for-you__image--overlay",E.backgroundImage||E.background),e.R7$(),e.Y8G("src",E.image,e.B4B)("alt",E.title),e.R7$(3),e.JRh(E.title),e.R7$(2),e.JRh(E.description),e.R7$(),e.vxM(E.isExternalLink?8:9)}}let m=(()=>{class S{constructor(){this.cards=e.hFB.required(),this.cardClick=(0,e.CGW)()}onCardClick(E){this.cardClick.emit(E)}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275cmp=e.VBU({type:S,selectors:[["app-more-for-you"]],inputs:{cards:[1,"cards"]},outputs:{cardClick:"cardClick"},standalone:!0,features:[e.aNF],decls:3,vars:0,consts:[[1,"more-for-you"],[1,"more-for-you__card"],[1,"more-for-you__image"],["loading","lazy","decoding","async",3,"src","alt"],[1,"more-for-you__content"],[1,"more-for-you__title"],[1,"more-for-you__description"],["target","_blank","rel","noopener noreferrer",1,"more-for-you__cta",3,"href"],[1,"more-for-you__cta",3,"routerLink"],["target","_blank","rel","noopener noreferrer",1,"more-for-you__cta",3,"click","href"],[1,"more-for-you__cta",3,"click","routerLink"]],template:function(L,D){1&L&&(e.j41(0,"div",0),e.Z7z(1,p,10,9,"div",1,d),e.k0s()),2&L&&(e.R7$(),e.Dyx(D.cards()))},dependencies:[c.Wk],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.more-for-you[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:16px}.more-for-you__card[_ngcontent-%COMP%]{display:flex;align-items:stretch;overflow:hidden;border-radius:4px;background-color:#fff;box-shadow:0 2px 4px #35363726;
717transition:box-shadow .3s ease}.more-for-you__card[_ngcontent-%COMP%]:hover{box-shadow:0 6px 12px #00000026}.more-for-you__image[_ngcontent-%COMP%]{width:227.8px;height:268px;flex-shrink:0}.more-for-you__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;display:block}.more-for-you__image--overlay[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:16px;background-size:cover;background-position:center;background-repeat:no-repeat}.more-for-you__image--overlay[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;max-width:200px;object-fit:contain}.more-for-you__content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:24px;gap:8px}.more-for-you__title[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:600;font-style:normal;color:#002859;line-height:32px;letter-spacing:0}.more-for-you__description[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:400;font-style:normal;color:#535455;line-height:26px;letter-spacing:0}.more-for-you__cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;margin-top:8px;padding:12px 40px;border-radius:4px;background:#004275;color:#fff;font-size:18px;font-weight:600;line-height:24px;text-decoration:none;cursor:pointer;transition:opacity .3s ease}.more-for-you__cta[_ngcontent-%COMP%]:hover{opacity:.9}@media screen and (max-width: 768px){.more-for-you[_ngcontent-%COMP%]{grid-template-columns:1fr}.more-for-you__title[_ngcontent-%COMP%]{font-size:20px}.more-for-you__description[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.more-for-you__cta[_ngcontent-%COMP%]{font-size:16px}}@media screen and (max-width: 480px){.more-for-you__card[_ngcontent-%COMP%]{flex-direction:column}.more-for-you__image[_ngcontent-%COMP%]{width:100%;height:161.095px}.more-for-you__image--overlay[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto;height:100%;max-width:100%}.more-for-you__content[_ngcontent-%COMP%]{padding:20px}}"],changeDetection:0})}}return S})();n(16129);var o=n(89437),f=n(23781);const M=(S,V)=>V.itineraryId;function x(S,V){1&S&&(e.j41(0,"div",0),e.nrm(1,"rcg-skeleton-loader"),e.k0s())}function b(S,V){if(1&S){const E=e.RV6();e.j41(0,"div",1)(1,"app-favorites-empty-state",3),e.bIt("onClick",function(){e.eBV(E);const D=e.XpG();return e.Njj(D.onBrowseCruises())}),e.k0s()()}if(2&S){const E=e.XpG();e.R7$(),e.Y8G("brand",E.brand())}}function F(S,V){if(1&S){const E=e.RV6();e.j41(0,"app-favorite-card",5),e.bIt("remove",function(D){e.eBV(E);const k=e.XpG(2);return e.Njj(k.onRemoveFavorite(D))})("navigate",function(D){e.eBV(E);const k=e.XpG(2);return e.Njj(k.onCardClick(D))}),e.k0s()}2&S&&e.Y8G("item",V.$implicit)}function G(S,V){if(1&S&&(e.j41(0,"div",2),e.Z7z(1,F,1,1,"app-favorite-card",4,M),e.k0s()),2&S){const E=e.XpG();e.R7$(),e.Dyx(E.items())}}let w=(()=>{class S{constructor(){this.items=e.hFB.required(),this.loading=(0,e.hFB)(!1),this.brand=(0,e.hFB)(),this.cardClick=(0,e.CGW)(),this.removeFavorite=(0,e.CGW)(),this.browseCruises=(0,e.CGW)()}onCardClick(E){this.cardClick.emit(E)}onRemoveFavorite(E){this.removeFavorite.emit(E)}onBrowseCruises(){this.browseCruises.emit()}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275cmp=e.VBU({type:S,selectors:[["app-favorites-preview"]],inputs:{items:[1,"items"],loading:[1,"loading"],brand:[1,"brand"]},outputs:{cardClick:"cardClick",removeFavorite:"removeFavorite",browseCruises:"browseCruises"},standalone:!0,features:[e.aNF],decls:3,vars:1,consts:[[1,"favorites-preview__loading"],[1,"favorites-preview__empty-card"],[1,"favorites-preview__grid"],[3,"onClick","brand"],[3,"item"],[3,"remove","navigate","item"]],template:function(L,D){1&L&&e.DNE(0,x,2,0,"div",0)(1,b,2,1,"div",1)(2,G,3,0,"div",2),2&L&&e.vxM(D.loading()?0:0===D.items().length?1:2)},dependencies:[o.U,f.d],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.favorites-preview__empty-card[_ngcontent-%COMP%]{margin-top:12px;background-color:#e6effc;border-radius:4px;box-shadow:0 2px 4px #35363726}.favorites-preview__empty-card[_ngcontent-%COMP%] .favorites-empty-state{padding:32px 24px}.favorites-preview__loading[_ngcontent-%COMP%]{padding:16px 0}.favorites-preview__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:12px}@media only screen and (max-width: 768px){.favorites-preview__grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media only screen and (max-width: 480px){.favorites-preview__grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:12px}}"],changeDetection:0})}}return S})()},64412:(J,U,n)=>{"use strict";n.d(U,{M:()=>w});var t=n(54438),e=n(59640),a=n(2245),C=n(451),y=n(67039),v=n(84572),l=n(5964),h=n(96697),u=n(25558),c=n(88141),d=n(99437),r=n(983),O=n(96354),p=n(7673),m=n(1033),s=n(62087),o=n(45312),f=n(21148),M=n(35031),x=n(85057),b=n(10319),F=n(93259);let w=(()=>{class S{constructor(){this.store=(0,t.WQX)(e.il),this.datesService=(0,t.WQX)(F.f),this.accountData$=this.store.select(y.Qx),this.bookingsState$=this.store.select(M.y),this.getLaunchDarklyFlags=this.store.selectSignal(a.QO),this.loading=this.store.selectSignal(a.mf),this.error=this.store.selectSignal(a.YB)}fetchLaunchDarklyFlags(){this.shouldFetchLaunchDarklyFlags()&&(0,v.z)([this.accountData$,this.bookingsState$]).pipe((0,l.p)(([E])=>this.hasValidAccount(E)),(0,l.p)(([,E])=>!0===E?.loaded||null!=E?.error),(0,h.s)(1),(0,u.n)(([E,L])=>this.getVoyageInfo(E,L)),(0,c.M)(E=>this.store.dispatch(C.SV({payload:E}))),(0,d.W)(()=>r.w)).subscribe()}refreshLaunchDarklyFlagsWithVoyageData(E){(0,v.z)([this.accountData$,this.bookingsState$]).pipe((0,l.p)(([L])=>this.hasValidAccount(L)),(0,l.p)(([,L])=>!0===L?.loaded||null!=L?.error),(0,h.s)(1),(0,O.T)(([L,D])=>this.buildPayload(L,D,{payload:{sailingInfo:E}})),(0,c.M)(L=>this.store.dispatch(C.SV({payload:L}))),(0,d.W)(()=>r.w)).subscribe()}
717shouldFetchLaunchDarklyFlags(){const E=this.getLaunchDarklyFlags(),L=this.loading();return!(E&&Object.keys(E).length>0||L)}hasValidAccount(E){return null!=E?.uid}getVoyageInfo(E,L){const D=Object.values(L?.bookings||{});if(!D||0===D.length)return(0,p.of)(this.buildPayload(E,L,null));const k=this.store.select(x.Bq).pipe((0,l.p)(W=>W?.length>0),(0,h.s)(1)),X=this.store.select(b.$d).pipe((0,l.p)(W=>!0===W?.loaded||null!=W?.error),(0,h.s)(1),(0,u.n)(()=>this.store.select(x.Bq).pipe((0,h.s)(1))));return(0,m.O)(k,X).pipe((0,h.s)(1),(0,s.w)(8e3),(0,O.T)(W=>this.buildPayload(E,L,{payload:{sailingInfo:W}})),(0,d.W)(()=>(0,p.of)(this.buildPayload(E,L,null))))}buildPayload(E,L,D){try{const k=Object.values(L?.bookings||{});return this.buildLDPayload(E,k,D)}catch{return this.buildLDPayload(E,[],null)}}getPreferredBooking(E){try{const L=(0,M.$J)(E);if(L)return L;const D=Object.values(E?.bookings||{});return D.length>0?D[0]:void 0}catch{return}}normalizeSailDate(E){try{const L=String(E||"").trim();return L?this.normalizeWithFormats(L,[{regex:/^\d{8}$/,entryFormat:"YYYYMMDD",normalize:k=>k},{regex:/^\d{4}-\d{2}-\d{2}/,entryFormat:"YYYY-MM-DD",normalize:k=>k.slice(0,10)},{regex:/^\d{4}\/\d{2}\/\d{2}/,entryFormat:"YYYY-MM-DD",normalize:k=>k.slice(0,10).replace(/\//g,"-")}]):""}catch{return""}}normalizeWithFormats(E,L){try{if(!E||!L||0===L.length)return E||"";const D=L.find(k=>k?.regex?.test(E));return D?this.datesService.parseDate({date:D.normalize(E),entryFormat:D.entryFormat,format:this.datesService.getOLCIFormatDate()}):E}catch{return E||""}}findDeparturePort(E,L,D){try{if(!(E?.payload?.sailingInfo&&Array.isArray(E.payload.sailingInfo)&&D&&L))return"";const k=String(D).replace(/\D/g,"");return E.payload.sailingInfo.find(W=>W?.shipCode===L&&String(W?.sailDate||"").replace(/\D/g,"")===k)?.departurePort||""}catch{return""}}buildFlagPayloadFromBooking(E,L,D,k,X){const K=this.normalizeSailDate(L?.sailDate||""),T=L?.shipCode||"";if(X&&(!K||!T))return null;const Y=this.findDeparturePort(D,T,K);return{flag:E,params:{key:E,brand:k.brand,platform:k.platform,email:k.email,...K?.trim()&&{sailDate:K},...T?.trim()&&{shipCode:T},...Y?.trim()&&{departurePort:Y}}}}buildLDPayload(E,L,D){try{const k=o.Fh?.baseUDO?.platform??"Web",K={brand:o.Fh?.baseUDO?.brand||o.qt?.toUpperCase?.()||String(o.qt).toUpperCase(),platform:k,email:E?.contactInformation?.email?.toLowerCase()||E?.uid||""},T=Object.values(f.mA||{});if(!T||0===T.length)return[];const Y=[];return T.forEach(H=>{if(H===f.mA.OLCI_APP_ONLY)if(L&&L.length>0)L.forEach(et=>{const q=this.buildFlagPayloadFromBooking(H,et,D,K,!0);q&&Y.push(q)});else{const et=this.buildFlagPayloadFromBooking(H,null,D,K,!1);et&&Y.push(et)}else{const q=this.buildFlagPayloadFromBooking(H,L&&L.length>0?L[0]:null,D,K,!1);q&&Y.push(q)}}),Y}catch{return[]}}static{this.\u0275fac=function(L){return new(L||S)}}static{this.\u0275prov=t.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},2245:(J,U,n)=>{"use strict";n.d(U,{QO:()=>C.QO,YB:()=>C.YB,mf:()=>C.mf}),n(451),n(41488),n(75736);var C=n(58510)},21148:(J,U,n)=>{"use strict";n.d(U,{mA:()=>t,tr:()=>e});const t={ENABLE_COBRAND_TRANSFORMATION_PROGRAM:"enableCobrandTransformationProgram",ENABLE_COBRAND_NEW_PROGRAM_PROMPTS:"enableCobrandNewProgramPrompts",ENABLE_COBRAND_KODDI_ADS:"enableCobrandKoddiAds",ENABLE_COBRAND_BLOCK_FLAG:"enableCobrandBlockFlag",OLCI_APP_ONLY:"olci-app-only",IS_MESSAGING_CENTER_WEB_ENABLE:"isMessagingCenterEnabled",ENABLE_SILVERSEA_PRODUCTION:"enableSilverseaProduction",ENABLE_CA_CATEGORY_CHANGES:"enableCACategoryChanges",IS_PDG_GQL_ENABLE:"isPdgGqlEnable",IS_FOLIO_POST_CRUISE_PDF_ENABLED:"isFolioPostCruisePdfEnabled",ENABLE_COMMUNITY:"enableCommunity",ENABLE_COBRAND_SPECIALTY_DINING:"enableCobrandSpecialtyDining"},e={[t.ENABLE_COBRAND_TRANSFORMATION_PROGRAM]:!1,[t.ENABLE_COBRAND_NEW_PROGRAM_PROMPTS]:!1,[t.ENABLE_COBRAND_KODDI_ADS]:!1,[t.ENABLE_COBRAND_BLOCK_FLAG]:!1,[t.OLCI_APP_ONLY]:!1,[t.IS_MESSAGING_CENTER_WEB_ENABLE]:!1,[t.ENABLE_SILVERSEA_PRODUCTION]:!1,[t.ENABLE_CA_CATEGORY_CHANGES]:!1,[t.IS_PDG_GQL_ENABLE]:!1,[t.IS_FOLIO_POST_CRUISE_PDF_ENABLED]:!1,[t.ENABLE_COMMUNITY]:!1,[t.ENABLE_COBRAND_SPECIALTY_DINING]:!1};Object.values(t)},451:(J,U,n)=>{"use strict";n.d(U,{$Y:()=>a,CB:()=>y,S0:()=>C,SV:()=>e});var t=n(59640);const e=(0,t.VP)("[LAUNCH_DARKLY_FLAGS] Get flags from Launch Darkly",(0,t.xk)()),a=(0,t.VP)("[LAUNCH_DARKLY_FLAGS] Get flags from Launch Darkly Success",(0,t.xk)()),C=(0,t.VP)("[LAUNCH_DARKLY_FLAGS] Get flags from Launch Darkly Fail",(0,t.xk)()),y=(0,t.VP)("[LAUNCH_DARKLY_FLAGS] Refresh flags with voyage data",(0,t.xk)())},41488:(J,U,n)=>{"use strict";n.d(U,{b:()=>m});var t=n(54438),e=n(77339),a=n(7673),C=n(25558),y=n(96354),v=n(99437),l=n(88141),h=n(83458),u=n(18810),c=n(45312),d=n(97127);let r=(()=>{class s{constructor(f,M){this.http=f,this.localization=M}searchLaunchDarklyFlags(f){const{language:x}=this.localization.detect();return this.http.post(`${c.f0}/${x}/all/internal/v1/core/launch-darkly/search`,f).pipe((0,v.W)(b=>(0,u.$)(()=>b)))}static{this.\u0275fac=function(M){return new(M||s)(t.KVO(h.lU),t.KVO(d.P))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var O=n(64412),p=n(451);let m=(()=>{class s{constructor(){this.actions$=(0,t.WQX)(e.En),this.launchDarklyService=(0,t.WQX)(r),this.launchDarklyFacade=(0,t.WQX)(O.M),this.getLaunchDarklyFlags$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(p.SV),(0,C.n)(({payload:f})=>f&&0!==f.length?this.launchDarklyService.searchLaunchDarklyFlags(f).pipe((0,y.T)(M=>{const x={},b={};
717return(M?.payload||[]).forEach((F,G)=>{Object.keys(F).forEach(w=>{if("olci-app-only"===w&&f[G]?.params){const{sailDate:S,shipCode:V}=f[G].params;S&&V&&(b[`${S}-${V}`]=!!F[w])}else"olci-app-only"!==w&&(x[w]=F[w])})}),Object.keys(b).length>0&&(x["olci-app-only"]=b),p.$Y({payload:x})}),(0,v.W)(M=>(0,a.of)(p.S0({payload:M})))):(0,a.of)(p.$Y({payload:{}}))))),this.refreshLaunchDarklyFlagsWithVoyageData$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(p.CB),(0,l.M)(({voyageData:f})=>{this.launchDarklyFacade.refreshLaunchDarklyFlagsWithVoyageData(f)})),{dispatch:!1})}static{this.\u0275fac=function(M){return new(M||s)}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}}return s})()},75736:(J,U,n)=>{"use strict";n.d(U,{cI:()=>a,ik:()=>y});var t=n(59640),e=n(451);const a="GA.launchDarklyFlags",y=(0,t.vy)({flags:{},loading:!1,error:null},(0,t.on)(e.SV,l=>({...l,loading:!0,error:null})),(0,t.on)(e.$Y,(l,{payload:h})=>({...l,flags:h,loading:!1})),(0,t.on)(e.S0,(l,{payload:h})=>({...l,loading:!1,error:h})))},58510:(J,U,n)=>{"use strict";n.d(U,{QO:()=>C,YB:()=>v,mf:()=>y});var t=n(59640),e=n(75736);const a=(0,t.UX)(e.cI),C=(0,t.Mz)(a,l=>l?.flags),y=(0,t.Mz)(a,l=>l?.loading),v=(0,t.Mz)(a,l=>l?.error)},89437:(J,U,n)=>{"use strict";n.d(U,{U:()=>p});var t=n(54438),e=n(60177),a=n(68018),C=n(45312);function y(m,s){if(1&m&&t.EFF(0),2&m){const o=t.XpG(2);t.SpI(", ",o.item().departurePortRegion,"")}}function v(m,s){if(1&m&&(t.j41(0,"p",1)(1,"span",5),t.EFF(2,"\u2693"),t.k0s(),t.EFF(3),t.DNE(4,y,1,1),t.k0s()),2&m){const o=t.XpG();t.R7$(3),t.SpI(" ",o.item().departurePortName,""),t.R7$(),t.vxM(o.item().departurePortRegion?4:-1)}}function l(m,s){if(1&m&&(t.j41(0,"p",2)(1,"span",5),t.EFF(2,"\u26f4"),t.k0s(),t.EFF(3),t.k0s()),2&m){const o=t.XpG();t.R7$(3),t.SpI(" ",o.item().shipName,"")}}function h(m,s){if(1&m&&(t.j41(0,"p",3),t.EFF(1),t.k0s()),2&m){const o=t.XpG();t.R7$(),t.JRh(o.item().roomType)}}function u(m,s){1&m&&(t.j41(0,"p",7),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"CUSTOMER_JOURNEY.FAVORITE.TAXES_INCLUDED")))}function c(m,s){if(1&m&&(t.j41(0,"p",6),t.EFF(1),t.nI1(2,"currency"),t.nI1(3,"translate"),t.k0s(),t.DNE(4,u,3,3,"p",7)),2&m){const o=t.XpG();t.R7$(),t.Lme(" ",t.ii3(2,3,o.item().pricing.pricePerPerson,o.item().pricing.currencyCode,"symbol","1.0-0"),"/",t.bMT(3,8,"CUSTOMER_JOURNEY.FAVORITE.PERSON")," "),t.R7$(3),t.vxM(o.item().pricing.taxesAndFeesIncluded?4:-1)}}function d(m,s){1&m&&(t.j41(0,"span",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"CUSTOMER_JOURNEY.FAVORITE.SELLING_FAST")))}function r(m,s){1&m&&(t.j41(0,"span",9),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"CUSTOMER_JOURNEY.FAVORITE.PRICE_DROP")))}function O(m,s){if(1&m&&(t.j41(0,"div",4),t.DNE(1,d,3,3,"span",8)(2,r,3,3,"span",9),t.k0s()),2&m){const o=t.XpG();t.R7$(),t.vxM(o.item().itineraryInfo.hasLowAvailability?1:-1),t.R7$(),t.vxM(o.item().itineraryInfo.hasPriceDrop?2:-1)}}let p=(()=>{class m{constructor(){this.item=t.hFB.required(),this.remove=(0,t.CGW)(),this.navigate=(0,t.CGW)(),this.brand=C.qt}onFavoriteToggle(){this.remove.emit(this.item().itineraryId)}onCtaClick(){this.navigate.emit(this.item())}static{this.\u0275fac=function(f){return new(f||m)}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["app-favorite-card"]],inputs:{item:[1,"item"]},outputs:{remove:"remove",navigate:"navigate"},standalone:!0,features:[t.aNF],decls:8,vars:16,consts:[["drop-shadow","true",3,"favoriteToggle","ctaClick","mode","cardTitle","imageUrl","imageAlt","ctaText","ctaStyle","isFavorite"],[1,"favorite-card__info"],[1,"favorite-card__info","favorite-card__info--last"],[1,"favorite-card__room-type"],[1,"favorite-card__badges"],["aria-hidden","true"],[1,"favorite-card__price"],[1,"favorite-card__taxes"],[1,"favorite-card__badge","favorite-card__badge--selling-fast"],[1,"favorite-card__badge","favorite-card__badge--price-drop"]],template:function(f,M){if(1&f&&(t.j41(0,"rcg-favorites-card",0),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("favoriteToggle",function(){return M.onFavoriteToggle()})("ctaClick",function(){return M.onCtaClick()}),t.DNE(3,v,5,2,"p",1)(4,l,4,1,"p",2)(5,h,2,1,"p",3)(6,c,5,10)(7,O,3,2,"div",4),t.k0s()),2&f){let x;t.Y8G("mode",M.brand)("cardTitle",M.item().totalNights+" "+t.bMT(1,12,"CUSTOMER_JOURNEY.FAVORITE.NIGHTS")+" "+M.item().name)("imageUrl",M.item().imagePath)("imageAlt",M.item().name)("ctaText",t.bMT(2,14,"CUSTOMER_JOURNEY.FAVORITE.VIEW_ITINERARY"))("ctaStyle","link")("isFavorite",!0),t.R7$(3),t.vxM(M.item().departurePortName?3:-1),t.R7$(),t.vxM(M.item().shipName?4:-1),t.R7$(),t.vxM(M.item().roomType?5:-1),t.R7$(),t.vxM(null!=(null==(x=M.item().pricing)?null:x.pricePerPerson)?6:-1),t.R7$(),t.vxM(M.item().itineraryInfo?7:-1)}},dependencies:[e.oe,a.h,a.D9],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}[_nghost-%COMP%]{display:block;min-width:0}.favorite-card__info[_ngcontent-%COMP%]{margin:0 0 4px;font-size:14px;color:#535455}.favorite-card__info--last[_ngcontent-%COMP%]{margin-bottom:16px}.favorite-card__room-type[_ngcontent-%COMP%]{margin:0;font-size:13px;color:#535455}.favorite-card__price[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:600;line-height:32px;color:#061556}.favorite-card__taxes[_ngcontent-%COMP%]{margin:0;font-size:12px;color:#535455}.favorite-card__badges[_ngcontent-%COMP%]{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.favorite-card__badge[_ngcontent-%COMP%]{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:600;line-height:18px}.favorite-card__badge--selling-fast[_ngcontent-%COMP%]{background-color:#fff3e0;color:#e65100}.favorite-card__badge--price-drop[_ngcontent-%COMP%]{background-color:#e8f5e9;color:#2e7d32}"],changeDetection:0})}}return m})()},23781:(J,U,n)=>{"use strict";n.d(U,{d:()=>y});var t=n(54438),e=n(68018),a=n(89221),C=n(46765);let y=(()=>{class v{constructor(){this.brand=(0,t.hFB)(),this.onClick=(0,t.CGW)()}handleClick(){this.onClick.emit()}static{this.\u0275fac=function(u){return new(u||v)}}static{this.\u0275cmp=t.VBU({type:v,selectors:[["app-favorites-empty-state"]],inputs:{brand:[1,"brand"]},outputs:{onClick:"onClick"},standalone:!0,features:[t.aNF],decls:11,vars:12,consts:[[1,"favorites-empty-state"],["name","heart",3,"width","height"],[1,"favorites-empty-state__content"],["tabindex","0",1,"favorites-empty-state__title"],["tabindex","0",1,"favorites-empty-state__description"],[3,"onClick","brand","text"]],template:function(u,c){1&u&&(t.j41(0,"div",0),t.nrm(1,"app-icon",1),t.j41(2,"div",2)(3,"h3",3),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"p",4),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"app-primary-button",5),t.nI1(10,"translate"),t.bIt("onClick",function(){return c.handleClick()}),t.k0s()()),2&u&&(t.R7$(),t.Y8G("width",84)("height",84),t.R7$(3),t.SpI(" ",t.bMT(5,6,"CUSTOMER_JOURNEY.FAVORITE.EMPTY_STATE_TITLE")," "),t.R7$(3),t.SpI(" ",t.bMT(8,8,"CUSTOMER_JOURNEY.FAVORITE.EMPTY_STATE_DESCRIPTION")," "),t.R7$(2),t.Y8G("brand",c.brand())("text",t.bMT(10,10,"CUSTOMER_JOURNEY.FAVORITE.EMPTY_STATE_CTA")))},dependencies:[e.h,e.D9,a.A,C.R],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.favorites-empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;text-align:center}@media only screen and (max-width: 480px){.favorites-empty-state[_ngcontent-%COMP%]{padding:40px 16px}}.favorites-empty-state__content[_ngcontent-%COMP%]{margin:24px 0 32px}.favorites-empty-state__title[_ngcontent-%COMP%]{font-family:Proxima Nova,sans-serif;font-size:22px;font-weight:600;line-height:28px;color:#002859;margin:0 0 8px}.favorites-empty-state__description[_ngcontent-%COMP%]{font-size:16px;line-height:24px;color:#666;margin:0;max-width:400px}"],changeDetection:0})}}return v})()},85775:(J,U,n)=>{"use strict";n.d(U,{$D:()=>e,gn:()=>j,k3:()=>C,Cp:()=>v,XN:()=>$,GI:()=>u,S5:()=>h,he:()=>l});var t=n(59640);const e=(0,t.EQ)({source:"Favorites",events:{"load Favorites":(0,t.w5)(),"load Favorites Success":(0,t.xk)(),"load Favorites Failure":(0,t.xk)(),"remove Favorite":(0,t.xk)(),"remove Favorite Success":(0,t.xk)(),"remove Favorite Failure":(0,t.xk)()}}),C=(0,t.VG)({name:"favorites",reducer:(0,t.vy)({favorites:[],staticContent:null,loading:!1,error:null},(0,t.on)(e.loadFavorites,z=>({...z,loading:!0,error:null})),(0,t.on)(e.loadFavoritesSuccess,(z,{favorites:ot,staticContent:nt})=>({...z,favorites:ot,staticContent:nt,loading:!1})),(0,t.on)(e.loadFavoritesFailure,(z,{error:ot})=>({...z,loading:!1,error:ot})),(0,t.on)(e.removeFavorite,(z,{itineraryId:ot})=>({...z,favorites:z.favorites.filter(nt=>nt.itineraryId!==ot)})),(0,t.on)(e.removeFavoriteSuccess,z=>z),(0,t.on)(e.removeFavoriteFailure,(z,{error:ot,removedItem:nt,removedIndex:it})=>{const Ot=[...z.favorites];return Ot.splice(it,0,nt),{...z,favorites:Ot,error:ot}}))}),{selectFavorites:v,selectStaticContent:l,selectLoading:h,selectError:u}=C;var c=n(54438),d=n(77339),r=n(27468),O=n(7673),p=n(22806),m=n(25558),s=n(96697),o=n(99437),f=n(31397),M=n(96354),x=n(64058),b=n(21626),F=n(83458),G=n(11816),w=n(49287),S=n(45312);const E=G.J1` 718 query GetMarketingCruiseFavorites($market: String!, $office: String!) { 719 getMarketingCruiseFavorites(market: $market, office: $office) { 720 ... on MarketingCruiseFavoritesResultSuccess { 721 marketingCruiseFavoritesStaticContent { 722 title 723 viewAllLink 724 favoritesIcon 725 nightsLabel 726 locationLabel 727 adultsLabel 728 singleAdultLabel 729 childrenLabel 730 singleChildLabel 731 priceDropAlertLabel 732 sellingFastAlertLabel 733 } 734 marketingCruiseFavoritesResult { 735 id 736 marketingCruiseFavoritesItineraryInfo { 737 adults 738 children 739 hasLowAvailability 740 hasPriceDrop 741 } 742 marketingMasterSailing { 743 marketingItinerary { 744 name 745 code 746 type 747 marketingCruiseTotalNights 748 marketingMedia { 749 marketingImages { 750 path 751 } 752 } 753 marketingCruiseDeparturePort { 754 code 755 name 756 region 757 } 758 marketingShip { 759 code 760 name 761 } 762 } 763 } 764 } 765 } 766 ... on MarketingCruiseFavoritesExceptions { 767 exceptions { 768 exceptionType 769 code 770 title 771 message 772 } 773 } 774 } 775 } 776`,L={royal:"R",celebrity:"X",silversea:"S"};let k=(()=>{class z{constructor(){this.baseEndpoint="/favorites/api/v1/itinerary",this.http=(0,c.WQX)(F.lU),this.apollo=(0,c.WQX)(G.Ic),this.localization=(0,c.WQX)(w.Pi),this.session=(0,c.WQX)(w.x3),this.priceCache=new Map}getFavoriteItineraries(){return this.http.get(`${S.W6}${this.baseEndpoint}`,{headers:this.buildHeaders()})}getMarketingCruiseFavorites(){const{country:nt}=this.localization.detect(),it=this.getMarketCountry(nt);return this.apollo.query({query:E,variables:{market:it,office:it},context:{headers:{country:it,currency:this.getCurrencyForCountry(nt)}},fetchPolicy:"network-only"}).pipe((0,M.T)(Ot=>Ot.data.getMarketingCruiseFavorites))}removeFavorite(nt){return this.http.delete(`${S.W6}${this.baseEndpoint}/${nt}`,{headers:this.buildHeaders()})}getCruiseLowestPrice(nt){const it=this.priceCache.get(nt);if(it&&Date.now()-it.timestamp<3e5)return(0,O.of)(it.data);const{language:Ot,country:Lt}=this.localization.detect(),Ft=this.getMarketCountry(Lt),Et=L[S.qt];return Et||console.warn(`[FavoritesService] Unrecognized BRAND "${S.qt}", defaulting to "R"`),this.http.post(`${S.W6}/graph`,{variables:{id:nt},query:"\n query GetFavoriteLowestPrice($id: String!) {\n cruise(id: $id) {\n id\n lowestPriceSailing {\n lowestStateroomClassPrice {\n stateroomClass {\n id\n name\n }\n price {\n value\n currency {\n code\n }\n }\n }
776\n taxesAndFeesIncluded\n taxesAndFees {\n value\n }\n }\n }\n }\n"},{headers:new b.Lr({"Content-Type":"application/json",country:Ft,currency:this.getCurrencyForCountry(Lt),language:Ot,office:Ft,brand:Et||"R"})}).pipe((0,M.T)(Tt=>(this.priceCache.set(nt,{data:Tt,timestamp:Date.now()}),Tt)))}buildHeaders(){const{language:nt,country:it,locale:Ot}=this.localization.detect(),Lt=this.session.getVdsIdFromAccessToken()||"";return new b.Lr({"x-rwd-id":Lt,"x-country":it,"x-currency":this.getCurrencyForCountry(it),"x-language":nt,"x-market":it,"x-office":it,"x-locale":Ot})}getMarketCountry(nt){return{US:"USA",AU:"AUS",GB:"GBR",BR:"BRA",CA:"CAN",SG:"SGP",NZ:"NZL",HK:"HKG",MX:"MEX",DE:"DEU",NL:"NLD",ES:"ESP",IT:"ITA",FR:"FRA"}[nt?.toUpperCase()]||nt?.toUpperCase()||"USA"}getCurrencyForCountry(nt){return{US:"USD",AU:"AUD",GB:"GBP",BR:"BRL",CA:"CAD",SG:"SGD",NZ:"NZD",HK:"HKD",MX:"MXN"}[nt?.toUpperCase()]||"USD"}static{this.\u0275fac=function(it){return new(it||z)}}static{this.\u0275prov=c.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})();var X=n(97513),W=n(66693);function K(z){if(!z)return"";const ot=new URL(X.A.AEM_PATH).origin;return encodeURI(`${ot}${z}${W.hJ.MEDIUM}`)}function H(z,ot){const nt=function Y(z){const ot=z?.data?.cruise?.lowestPriceSailing;if(!ot?.lowestStateroomClassPrice)return null;const{stateroomClass:nt,price:it}=ot.lowestStateroomClassPrice;return{roomType:nt.name||nt.id||"",pricing:{pricePerPerson:it.value,currencyCode:it.currency.code,taxesAndFeesIncluded:ot.taxesAndFeesIncluded??!1}}}(ot);return nt?{...z,roomType:nt.roomType,pricing:nt.pricing}:z}let j=(()=>{class z{constructor(){this.actions$=(0,c.WQX)(d.En),this.favoritesApi=(0,c.WQX)(k),this.loadFavorites$=(0,d.EH)(()=>this.actions$.pipe((0,d.gp)(e.loadFavorites),(0,m.n)(()=>(0,r.p)({userFavorites:this.favoritesApi.getFavoriteItineraries().pipe((0,s.s)(1)),marketing:this.favoritesApi.getMarketingCruiseFavorites().pipe((0,s.s)(1),(0,o.W)(()=>(0,O.of)(null)))}).pipe((0,m.n)(({userFavorites:nt,marketing:it})=>{if(!nt.itineraries?.length)return(0,O.of)(e.loadFavoritesSuccess({favorites:[],staticContent:null}));let Ot=null,Lt=new Map;if(it&&"MarketingCruiseFavoritesExceptions"!==it.__typename){const Et=it;Ot=function T(z){return z?{title:z.title||"",viewAllLink:z.viewAllLink||"",favoritesIcon:z.favoritesIcon||"",nightsLabel:z.nightsLabel||"",locationLabel:z.locationLabel||"",adultsLabel:z.adultsLabel||"",singleAdultLabel:z.singleAdultLabel||"",childrenLabel:z.childrenLabel||"",singleChildLabel:z.singleChildLabel||"",priceDropAlertLabel:z.priceDropAlertLabel||"",sellingFastAlertLabel:z.sellingFastAlertLabel||""}:null}(Et.marketingCruiseFavoritesStaticContent),Lt=new Map((Et.marketingCruiseFavoritesResult||[]).map(Bt=>[Bt.id||"",Bt]))}const Ft=nt.itineraries.map(Et=>{const Tt=Lt.get(Et.itineraryId);return Tt?function q(z){const ot=z.marketingMasterSailing?.marketingItinerary,nt=ot?.marketingMedia?.marketingImages?.[0];return{itineraryId:z.id||"",name:ot?.name||"",code:ot?.code||"",totalNights:ot?.marketingCruiseTotalNights||0,shipName:ot?.marketingShip?.name||"",shipCode:ot?.marketingShip?.code||"",departurePortCode:ot?.marketingCruiseDeparturePort?.code||"",departurePortName:ot?.marketingCruiseDeparturePort?.name||"",departurePortRegion:ot?.marketingCruiseDeparturePort?.region||"",imagePath:K(nt?.path||null),roomType:"",pricing:null,itineraryInfo:z.marketingCruiseFavoritesItineraryInfo?{adults:z.marketingCruiseFavoritesItineraryInfo.adults,children:z.marketingCruiseFavoritesItineraryInfo.children,hasLowAvailability:z.marketingCruiseFavoritesItineraryInfo.hasLowAvailability??!1,hasPriceDrop:z.marketingCruiseFavoritesItineraryInfo.hasPriceDrop??!1}:null}}(Tt):function et(z){return{itineraryId:z,name:"",code:z.split("-")[0]||"",totalNights:0,shipName:"",shipCode:"",departurePortCode:"",departurePortName:"",departurePortRegion:"",imagePath:"",roomType:"",pricing:null,itineraryInfo:null}}(Et.itineraryId)});return(0,p.H)(Ft.map((Et,Tt)=>({favorite:Et,index:Tt}))).pipe((0,f.Z)(({favorite:Et,index:Tt})=>this.favoritesApi.getCruiseLowestPrice(Et.itineraryId).pipe((0,M.T)(Bt=>({index:Tt,favorite:H(Et,Bt)})),(0,o.W)(()=>(0,O.of)({index:Tt,favorite:Et}))),4),(0,x.$)(),(0,M.T)(Et=>e.loadFavoritesSuccess({favorites:Et.sort((Tt,Bt)=>Tt.index-Bt.index).map(({favorite:Tt})=>Tt),staticContent:Ot})))}),(0,o.W)(nt=>(0,O.of)(e.loadFavoritesFailure({error:nt?.message||"Failed to load favorites"}))))))),this.removeFavorite$=(0,d.EH)(()=>this.actions$.pipe((0,d.gp)(e.removeFavorite),(0,f.Z)(({itineraryId:nt,removedItem:it,removedIndex:Ot})=>this.favoritesApi.removeFavorite(nt).pipe((0,M.T)(()=>e.removeFavoriteSuccess({itineraryId:nt})),(0,o.W)(Lt=>(0,O.of)(e.removeFavoriteFailure({error:Lt?.message||"Failed to remove favorite",itineraryId:nt,removedItem:it,removedIndex:Ot})))))))}static{this.\u0275fac=function(it){return new(it||z)}}static{this.\u0275prov=c.jDH({token:z,factory:z.\u0275fac})}}return z})();const $=(0,t.Mz)(v,z=>z.length)},86759:(J,U,n)=>{"use strict";n.d(U,{u:()=>d});var t=n(60177),e=n(54438),a=n(30803),C=n(68018),y=n(49287),v=n(45312);const l=()=>["/profile/terms-of-service"],h=()=>["/profile/privacy-policy"],u=()=>["/profile/security-guide"],c=()=>["/profile/guest-conduct-policy"];let d=(()=>
776{class r{constructor(){this.urls=(0,e.WQX)(y.aT),this.translate=(0,e.WQX)(C.c$),this.brand=v.qt,this.urlsDic={RCGurl:"https://www.royalcaribbeangroup.com/",Royalurl:"https://www.royalcaribbean.com/",Celebrityurl:"https://www.celebritycruises.com/",Silverseaurl:"https://www.silversea.com/"}}ngOnInit(){let p="";p=this.translate.instant("celebrity"===v.qt?"BRANDS.CELEBRITY_LEGAL_NAME":"BRANDS.ROYAL_LEGAL_NAME"),this.aboutUs=this.urls.get("ABOUT_US"),this.cruiseAndPurchaseTerms=this.urls.get("CRUISE_AND_PURCHASE_TERMS"),this.sitemapUrl=this.urls.get("SITEMAP"),this.year=(new Date).getFullYear(),this.copyrightCompany=p}footerLinkClicked(p,m){m&&window.open(this.urlsDic[m],"_blank")}static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["shared-internal-footer"]],standalone:!0,features:[e.aNF],decls:70,vars:40,consts:[[1,"footer"],[1,"footer__body"],[1,"footer__text"],[1,"footer__bottom"],[1,"footer__bottom-links"],[1,"footer__bottom-link"],["target","_blank",3,"href"],[1,"footer__pipe"],["tabindex","0",3,"routerLink"],["target","_blank","tabindex","0",3,"href"],["href","javascript:OneTrust.ToggleInfoDisplay()","tabindex","0",3,"click"],[1,"footer__logo-container"],[1,"footer__logo-title"],[1,"footerlogo-container"],[1,"main-centered-logo"],[1,"line"],[3,"click"],["src","assets/images/base/royal-caribbean-group-logo.png","alt","Royal Caribbean Group",1,"footer__bottom-link"],[1,"three-logos"],["src","assets/images/base/royal-caribbean-brand-logo.png","alt","Royal Caribbean",1,"footer__bottom-link"],["src","assets/images/base/celebrity-cruises-logo.png","alt","Celebrity",1,"footer__bottom-link"],["src","assets/images/base/silverseas-logo.png","alt","Silversea",1,"footer__bottom-link"]],template:function(m,s){1&m&&(e.j41(0,"footer",0)(1,"div",1)(2,"div",2)(3,"p"),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",3)(7,"span",4)(8,"div",5)(9,"a",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span",7),e.EFF(13,"|"),e.k0s()(),e.j41(14,"div",5)(15,"a",8),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"span",7),e.EFF(19,"|"),e.k0s()(),e.j41(20,"div",5)(21,"a",6),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"span",7),e.EFF(25,"|"),e.k0s()(),e.j41(26,"div",5)(27,"a",8),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"span",7),e.EFF(31,"|"),e.k0s()(),e.j41(32,"div",5)(33,"a",8),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"span",7),e.EFF(37,"|"),e.k0s()(),e.j41(38,"div",5)(39,"a",8),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"span",7),e.EFF(43,"|"),e.k0s()(),e.j41(44,"div",5)(45,"a",9),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"span",7),e.EFF(49,"|"),e.k0s()(),e.j41(50,"div",5)(51,"a",10),e.bIt("click",function(){return s.footerLinkClicked("cookie settings")}),e.EFF(52),e.nI1(53,"translate"),e.k0s()()(),e.j41(54,"div",11)(55,"span",12),e.EFF(56),e.k0s()()(),e.j41(57,"div",13)(58,"div",14),e.nrm(59,"div",15),e.j41(60,"a",16),e.bIt("click",function(){return s.footerLinkClicked("rcg","RCGurl")}),e.nrm(61,"img",17),e.k0s(),e.nrm(62,"div",15),e.k0s(),e.j41(63,"div",18)(64,"a",16),e.bIt("click",function(){return s.footerLinkClicked("royal","Royalurl")}),e.nrm(65,"img",19),e.k0s(),e.j41(66,"a",16),e.bIt("click",function(){return s.footerLinkClicked("celebrity","Celebrityurl")}),e.nrm(67,"img",20),e.k0s(),e.j41(68,"a",16),e.bIt("click",function(){return s.footerLinkClicked("silversea","Silverseaurl")}),e.nrm(69,"img",21),e.k0s()()()()()),2&m&&(e.R7$(4),e.JRh(e.bMT(5,18,"FOOTER.HEALTHY_TEXT")),e.R7$(5),e.Y8G("href",s.aboutUs,e.B4B),e.R7$(),e.JRh(e.bMT(11,20,"FOOTER.ABOUT_US_LINK")),e.R7$(5),e.Y8G("routerLink",e.lJ4(36,l)),e.R7$(),e.JRh(e.bMT(17,22,"FOOTER.TERMS_OF_USE_LINK")),e.R7$(5),e.Y8G("href",s.cruiseAndPurchaseTerms,e.B4B),e.R7$(),e.JRh(e.bMT(23,24,"FOOTER.CRUISE_AND_PURCHASE_TERMS_LINK")),e.R7$(5),e.Y8G("routerLink",e.lJ4(37,h)),e.R7$(),e.JRh(e.bMT(29,26,"FOOTER.PRIVACY_POLICY_LINK")),e.R7$(5),e.Y8G("routerLink",e.lJ4(38,u)),e.R7$(),e.JRh(e.bMT(35,28,"FOOTER.SECURITY_GUIDE_LINK")),e.R7$(5),e.Y8G("routerLink",e.lJ4(39,c)),e.R7$(),e.JRh(e.bMT(41,30,"FOOTER.GUEST_CODUCT_POLICY_LINK")),e.R7$(5),e.Y8G("href",s.sitemapUrl,e.B4B),e.R7$(),e.SpI(" ",e.bMT(47,32,"SETTINGS.SITE_MAP.SITE_MAP"),""),e.R7$(6),e.JRh(e.bMT(53,34,"FOOTER.G
776UEST_COOKIE_SETTINGS")),e.R7$(4),e.Lme("\xa9 ",s.year," ",s.copyrightCompany,""))},dependencies:[t.MD,C.h,C.D9,a.Wk],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.footer[_ngcontent-%COMP%]{background-color:#151617;min-height:485px}.footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{text-decoration:none}.footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus{text-decoration:underline;outline-color:#f4c509}.footer__body[_ngcontent-%COMP%]{padding-top:80px;padding-bottom:85px;margin:0 auto;max-width:1200px}.footer__text[_ngcontent-%COMP%]{color:#fff;font-size:16px;line-height:24px;letter-spacing:-.15pt;margin-bottom:30px}.footer__text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:16px;margin-top:0}.footer__text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.footer__bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;max-width:1200px;flex-flow:column-reverse wrap}.footer__bottom-link[_ngcontent-%COMP%]{cursor:pointer}.footer__bottom-links[_ngcontent-%COMP%]{color:#fff;font-size:16px;font-weight:700;letter-spacing:-.15pt;order:2;display:flex;flex-flow:row wrap;width:100%}.footer__bottom-links[_ngcontent-%COMP%] .footer__pipe[_ngcontent-%COMP%]{font-weight:400;padding:0 6px 0 4px}.footer__bottom-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .footer__bottom-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .footer__bottom-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{color:#fff;white-space:nowrap}.footer__bottom-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .footer__bottom-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus{color:#fff}.footer__logo-container[_ngcontent-%COMP%]{display:flex;margin-top:30px}.footer__logo-img[_ngcontent-%COMP%]{height:35px}.footer__logo-title[_ngcontent-%COMP%]{color:#fff;font-size:16px}.footerlogo-container[_ngcontent-%COMP%]{margin-top:48px;padding-top:48px;display:flex;align-items:center;border-top:1px solid rgba(255,255,255,.2)}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%]{display:flex;align-items:center;height:55px;border-right:1px solid #B4BAC0;padding-right:40px;margin-right:40px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:55px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:90%}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{display:none}.footerlogo-container[_ngcontent-%COMP%] .three-logos[_ngcontent-%COMP%]{width:100%;display:flex;gap:40px;align-items:center}.footerlogo-container[_ngcontent-%COMP%] .three-logos[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:65px}.footerlogo-container[_ngcontent-%COMP%] .three-logos[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:85%}@media screen and (max-width: 1260px){.footer__body[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.footerlogo-container[_ngcontent-%COMP%]{flex-direction:column;border-top:none}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%]{width:100%;border-right:0;padding-right:0;margin-bottom:30px;margin-right:0;justify-content:center;gap:10px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{display:flex;flex-grow:1;height:1px;background-color:#b4bac0;top:85%;width:100%}.footerlogo-container[_ngcontent-%COMP%] .three-logos[_ngcontent-%COMP%]{gap:0;justify-content:space-between}}@media screen and (max-width: 885px){.footer[_ngcontent-%COMP%]{min-height:372px}.footer_title[_ngcontent-%COMP%]{padding-bottom:16px}
776.footer__contact-link[_ngcontent-%COMP%]{padding-bottom:36px}.footer__text[_ngcontent-%COMP%]{line-height:24px}.footer__body[_ngcontent-%COMP%]{padding:40px 16px}.footer__bottom-links[_ngcontent-%COMP%]{line-height:20px;width:100%;justify-content:left}.footerlogo-container[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:130px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:40px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:176px}.footerlogo-container[_ngcontent-%COMP%] .three-logos[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:120px}}@media screen and (max-width: 480px){.footer__logo-celebrity[_ngcontent-%COMP%]{flex-direction:column}.footerlogo-container[_ngcontent-%COMP%]{width:initial;margin-bottom:200px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%]{margin-bottom:16px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:35px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:156px}.footerlogo-container[_ngcontent-%COMP%] .main-centered-logo[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{margin-top:0}.footerlogo-container[_ngcontent-%COMP%] .three-logos[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:35px}.footerlogo-container[_ngcontent-%COMP%] .three-logos[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:85px}}"]})}}return r})()},86360:(J,U,n)=>{"use strict";n.d(U,{M:()=>p});var t=n(54438),e=n(60177);const a=m=>({add_space:m});function C(m,s){if(1&m&&(t.j41(0,"p",2),t.EFF(1),t.k0s()),2&m){const o=t.XpG();t.R7$(),t.JRh(o.preTitle())}}function y(m,s){if(1&m&&(t.j41(0,"p",3),t.EFF(1),t.k0s()),2&m){const o=t.XpG();t.R7$(),t.JRh(o.title())}}function v(m,s){if(1&m&&(t.j41(0,"p",4),t.EFF(1),t.k0s()),2&m){const o=t.XpG();t.R7$(),t.JRh(o.powerUp())}}function l(m,s){if(1&m&&(t.j41(0,"p",5),t.EFF(1),t.k0s()),2&m){let o;const f=t.XpG();t.Y8G("ngClass",t.eq3(2,a,!(null!=(o=f.bullets())&&o.length)&&f.termsAndConditionsLink())),t.R7$(),t.JRh(f.description())}}function h(m,s){if(1&m&&t.nrm(0,"p",8),2&m){let o;const f=s.$implicit,M=t.XpG(2);t.Y8G("ngClass",t.eq3(2,a,null==(o=M.multipleDescriptions())?null:o.length))("innerHTML",null==f?null:f.description,t.npT)}}function u(m,s){if(1&m&&t.Z7z(0,h,1,4,"p",8,t.fX1),2&m){const o=t.XpG();t.Dyx(o.multipleDescriptions())}}function c(m,s){if(1&m&&(t.j41(0,"p",5),t.EFF(1),t.k0s()),2&m){let o;const f=t.XpG();t.Y8G("ngClass",t.eq3(2,a,!(null!=(o=f.bullets())&&o.length)&&f.termsAndConditionsLink())),t.R7$(),t.JRh(f.extraNote())}}function d(m,s){if(1&m&&(t.j41(0,"li",9),t.EFF(1),t.k0s()),2&m){const o=s.$implicit;t.R7$(),t.SpI(" ",o.description," ")}}function r(m,s){if(1&m&&(t.j41(0,"ul",6),t.Z7z(1,d,2,1,"li",9,t.fX1),t.k0s()),2&m){const o=t.XpG();t.R7$(),t.Dyx(o.bullets())}}function O(m,s){if(1&m){const o=t.RV6();t.j41(0,"a",10),t.bIt("click",function(){t.eBV(o);const M=t.XpG();return t.Njj(M.handleTermsAndConditionClick())}),t.EFF(1),t.k0s()}if(2&m){const o=t.XpG();t.Y8G("href",o.termsAndConditionsLink(),t.B4B),t.R7$(),t.JRh(o.termsAndConditionsText())}}let p=(()=>{class m{constructor(){this.preTitle=(0,t.hFB)(),this.title=(0,t.hFB)(),this.powerUp=(0,t.hFB)(),this.description=(0,t.hFB)(),this.termsAndConditionsLink=(0,t.hFB)(),this.termsAndConditionsText=(0,t.hFB)(),this.multipleDescriptions=(0,t.hFB)(),this.bullets=(0,t.hFB)(),this.termsAndConditionsClickEvent=(0,t.CGW)(),this.extraNote=(0,t.hFB)()}handleTermsAndConditionClick(){this.termsAndConditionsClickEvent.emit()}static{this.\u0275fac=function(f){return new(f||m)}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["app-loyalty-tab-section-note"]],inputs:{preTitle:[1,"preTitle"],title:[1,"title"],powerUp:[1,"powerUp"],description:[1,"description"],termsAndConditionsLink:[1,"termsAndConditionsLink"],termsAndConditionsText:[1,"termsAndConditionsText"],multipleDescriptions:[1,"multipleDescriptions"],bullets:[1,"bullets"],extraNote:[1,"extraNote"]},outputs:{termsAndConditionsClickEvent:"termsAndConditionsClickEvent"},standalone:!0,features:[t.aNF],decls:10,vars:8,consts:[["container",""],[1,"loyalty-tab-section-note"],[1,"loyalty-tab-section-note_description"],[1,"loyalty-tab-section-note_title"],[1,"loyalty-tab-section-note_power-up"],[1,"loyalty-tab-section-note_description",3,"ngClass"],[1,"loyalty-tab-section-note_bullets"],["target","_blank",1,"loyalty-tab-section-note_link",3,"href"],[1,"loyalty-tab-section-note_description",3,"ngClass","innerHTML"],[1,"loyalty-tab-section-note_bullets_item"],["target","_blank",1,"loyalty-tab-section-note_link",3,"click","href"]],template:function(f,M){if(1&f&&(t.j41(0,"div",1,0),t.DNE(2,C,2,1,"p",2)(3,y,2,1,"p",3)(4,v,2,1,"p",4)(5,l,2,4,"p",5)(6,u,2,0)(7,c,2,4,"p",5)(8,r,3,0,"ul",6)(9,O,2,2,"a",7),t.k0s()),2&f){let x;t.R7$(2),t.vxM(M.preTitle()?2:-1),t.R7$(),t.vxM(M.title()?3:-1),t.R7$(),t.vxM(M.powerUp()?4:-1),t.R7$(),t.vxM(M.description()?5:-1),t.R7$(),t.vxM(null!=(x=M.multipleDescriptions())&&x.length?6:-1),t.R7$(),t.vxM(M.extraNote()?7:-1),t.R7$(),t.vxM(M.bullets()?8:-1),t.R7$(),t.vxM(M.termsAndConditionsLink()?9:-1)}},dependencies:[e.MD,e.YU],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]{display:grid}.loyalty-tab-section-note[_ngcontent-%COMP%]{background-color:#f6f8fb;padding:20px;gap:16px;border-radius:8px}.loyalty-tab-section-note_power-up[_ngcontent-%COMP%]{font-size:16px;font-weight:600;line-height:20px;text-align:left;letter-spacing:-.15px;margin:16px 0 0;color:#000}.loyalty-tab-section-note_title[_ngcontent-%COMP%]{font-weight:600;text-align:left;margin:0 0 16px;font-size:16px;letter-spacing:-.15px;line-height:20px;color:#000}.loyalty-tab-section-note_description[_ngcontent-%COMP%]{font-weight:400;line-height:18px;text-align:left;margin:0;color:#555f61;font-family:Proxima Nova,sans-serif;font-size:14px;letter-spacing:.15px}.loyalty-tab-section-note_description.add_space[_ngcontent-%COMP%]{margin-bottom:16px}.loyalty-tab-section-note_description[_ngcontent-%COMP%] a{text-underline-offset:2px;color:inherit}.loyalty-tab-section-note_bullets[_ngcontent-%COMP%]{text-align:left;font-family:Proxima Nova,sans-serif;font-weight:400;line-height:18px;font-size:14px;letter-spacing:.15px;color:#555f61;margin:16px 0;padding:0 20px 0 23px}.loyalty-tab-section-note_link[_ngcontent-%COMP%]{color:#004275;border:0;background-color:transparent;cursor:pointer;font-weight:700;font-family:Proxima Nova,sans-serif;text-decoration:none;text-underline-offset:5px}"]})}}return m})()},12341:(J,U,n)=>{"use strict";n.d(U,{j:()=>l});var t=n(45312),e=n(65813),a=n(82032),C=n(97127),y=n(54438),v=n(30803);let l=(()=>{class h{constructor(c,d,r){this.router=c,this.runtime=d,this.localization=r,this.items=[{nameKey:"NAV.PROFILE",id:"settings",brand:["R","C","Z"],countries:["ALL"]},{nameKey:`NAV.UPCOMING_CRUISES.${t.qt.toUpperCase()}`,id:"upcoming-cruises",brand:["R","C","Z"],countries:["ALL"]},{nameKey:`NAV.PAST_CRUISES.${t.qt.toUpperCase()}`,id:"past-cruises",brand:["R","C","Z"],countries:["ALL"]},{nameKey:"NAV.ON_HOLD_CRUISES",id:"courtesy-holds",brand:["R","C"],countries:["ALL"],exclude:["GB","US"]},{nameKey:"NAV.GIFTS",id:"gifts",brand:["R"],countries:["ALL"]},{nameKey:"NAV.LOYALTY_PROGRAMS",id:"loyalty-programs",brand:["R","C"],countries:["ALL"]},{nameKey:"NAV.FAQ",id:"faqs",brand:["R","C","Z"],countries:["ALL"]},{nameKey:"NAV.SIGN_OUT",id:"logout",brand:["R","C","Z"],countries:["ALL"]}],this.tabs=[{nameKey:`NAV.UPCOMING_CRUISES.${t.qt.toUpperCase()}`,id:"upcoming-cruises",brand:["R","C","Z"],countries:["ALL"]},{nameKey:`NAV.PAST_CRUISES.${t.qt.toUpperCase()}`,id:"past-cruises",brand:["R","C","Z"],countries:["ALL"]},{nameKey:"NAV.ON_HOLD_CRUISES",id:"courtesy-holds",brand:["R","C"],countries:["ALL"],exclude:["GB","US"]},{nameKey:"NAV.LOYALTY",id:"loyalty-programs",brand:["R","C"],countries:["ALL"]}],this.country=this.localization.detect().country}getNavItems(){return this.items.filter(c=>c.brand.includes(t.vN)).filter(this.isVisibleInCountry.bind(this))}getTabs(){return this.tabs.filter(c=>c.brand.includes(t.vN)).filter(this.isVisibleInCountry.bind(this))}isVisibleInCountry(c){return c.countries.includes("ALL")&&(!c.exclude||!c.exclude.includes(this.country))||c.countries.includes(this.country)}isCourtesyHoldTab(){return this.getNavItems()?.find(d=>"NAV.ON_HOLD_CRUISES"===d.nameKey)}isOnUpcomingCruisesPage(){return"upcoming-cruises"===this.router.url.split("?")[0].split("/").pop()}isDisplayTabItem(c){let d=!0;return"loyalty-programs"===c.id&&(d=this.runtime?.webConfig?.ga?.loyaltyExperience),d}
776isLoyaltyEnrolled(c,{crownAndAnchorId:d="",captainsClubId:r="",venetianSocietyId:O=""}){return!!(c===a.rI.royal&&d||c===a.rI.celebrity&&r||c===a.rI.silversea&&O)}static{this.\u0275fac=function(d){return new(d||h)(y.KVO(v.Ix),y.KVO(e.s),y.KVO(C.P))}}static{this.\u0275prov=y.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()},75901:(J,U,n)=>{"use strict";n.d(U,{KH:()=>d,pM:()=>S,Yu:()=>p,Hj:()=>h,bM:()=>y,nH:()=>X});var t=n(83458),e=n(49287),a=n(45312),C=n(54438);let y=(()=>{class W{constructor(T,Y){this.http=T,this.utilityService=Y,this.BASE_PATH_V2="/:locale/:brand/:platform/v2",this.BASE_PATH_V2=this.utilityService.getBasePath("v2")}fetchSecurityQuestions(){return this.http.get(""+(a.f0+`${this.BASE_PATH_V2}/guestAccounts/securityQuestions`),e.zy)}static{this.\u0275fac=function(Y){return new(Y||W)(C.KVO(t.lU),C.KVO(e.QY))}}static{this.\u0275prov=C.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}}return W})();var v=n(59640),l=n(20954);let h=(()=>{class W{constructor(){this.store=(0,C.WQX)(v.il),this.state=this.store.selectSignal(l.Vv),this.questions=this.store.selectSignal(l.yX),this.loaded=this.store.selectSignal(l.J4),this.loading=this.store.selectSignal(l.wt)}fetchSecurityQuestions(){this.store.dispatch(l.YM.loadSecurityQuestions())}static{this.\u0275fac=function(Y){return new(Y||W)}}static{this.\u0275prov=C.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}}return W})();var u=n(23498),c=n(22806);let d=(()=>{class W{constructor(){this.walletCore=null,this.walletCore=new u.N(a.Fh.ENV_NAME,a.qt,a.Fh.PAYMENT_CHANNEL_FOR_MANAGE_PAYMENTS)}fetchCreditCards(T,Y){return(0,c.H)(this.walletCore.getPaymentMethods({accountId:T,accessToken:Y,defaultPaymentMethod:null,includeExpired:!0}))}addCreditCard(T,Y,H){return(0,c.H)(this.walletCore.addPaymentMethod({accountId:T,accessToken:Y,paymentMethod:H}))}updateCreditCard(T,Y,H){return(0,c.H)(this.walletCore.updatePaymentMethod({accountId:T,accessToken:Y,type:H.type,token:H.id,cardholder:H.cardholder,expirationMonth:H.expirationMonth,expirationYear:H.expirationYear,nickname:H.nickname,defaultPaymentMethod:H.defaultPaymentMethod}))}replacePaymentMethod(T,Y,H,et){return(0,c.H)(this.walletCore.replacePaymentMethod({accountId:T,accessToken:Y,idToBeReplaced:et,paymentMethod:{type:H.type,cardNumber:H.id,cardholder:H.cardholder,expirationMonth:H.expirationMonth,expirationYear:H.expirationYear,nickname:H.nickname,defaultPaymentMethod:H.defaultPaymentMethod}}))}deleteCreditCard(T,Y,H){return(0,c.H)(this.walletCore.deletePaymentMethod({accountId:T,accessToken:Y,token:H.id,expirationMonth:H.expirationMonth,expirationYear:H.expirationYear}))}static{this.\u0275fac=function(Y){return new(Y||W)}}static{this.\u0275prov=C.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}}return W})();var r=n(15633),O=n(68018);let p=(()=>{class W{constructor(){this.store=(0,C.WQX)(v.il),this.state=this.store.selectSignal(l.oY),this.creditCards=this.store.selectSignal(l.LU),this.loaded=this.store.selectSignal(l.cM),this.loading=this.store.selectSignal(l.nJ),this.savedSuccesfully=this.store.selectSignal(l.A2),this.analyticInteraction=(0,C.WQX)(r.U),this.translateService=(0,C.WQX)(O.c$)}fetchPaymentMethods(){this.store.dispatch(l.ET.fetchPaymentMethods())}addPaymentMethod(T,Y){this.store.dispatch(l.ET.addPaymentMethod({card:T,analyticsPayload:Y}))}updatePaymentMethod(T,Y=!1,H){this.store.dispatch(l.ET.updatePaymentMethod({card:T,isUpdateAndRemoveFlow:Y,analyticsPayload:H}))}replacePaymentMethod(T,Y,H){this.store.dispatch(l.ET.replacePaymentMethod({card:T,idToBeReplaced:Y,analyticsPayload:H}))}deletePaymentMethod(T,Y,H){this.store.dispatch(l.ET.deletePaymentMethod({card:T,promoteCard:H,analyticsPayload:Y}))}promoteNextDefault(T){const Y=this.creditCards().filter(H=>H.id!==T.id);Y.length&&this.store.dispatch(l.ET.updatePaymentMethod({card:{...Y[0],defaultPaymentMethod:!0},isUpdateAndRemoveFlow:!0,analyticsPayload:{appName:"ga",interaction:"paymentmethodedited",currentPage:"editpaymentmethod",channel:"settings",content:{}}}))}trackPaymentAnalyticsResiliency(T,Y,H="CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"){this.analyticInteraction.trackInteraction({appName:"ga",interaction:"errorMessage:inlineerror",currentPage:"paymentmethods",channel:"settings",content:{errorCode:T?.errorCode||500,backendError:`statusCode:${T.errorCode}|endPoint:${Y}`,errorIdentifier:T?.id,errorMsg:`Failure: ${this.translateService.instant(H)}`}})}static{this.\u0275fac=function(Y){return new(Y||W)}}static{this.\u0275prov=C.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}}return W})();var m=n(96354),s=n(99437),o=n(7673),f=n(65882),b=n(15018),F=n(66693),G=n(84887),w=n(88585);let S=(()=>{class W{constructor(){this.addGuestGQL=(0,C.WQX)(b.Sk),this.getGuestsGQL=(0,C.WQX)(b.GC),this.updateGuestGQL=(0,C.WQX)(b.SM),this.deleteGuestGQL=(0,C.WQX)(b.uJ),this.accountFacadeService=(0,C.WQX)(e.PP),this.toastFacade=(0,C.WQX)(e.v6),this.translateService=(0,C.WQX)(O.c$),this.utilityService=(0,C.WQX)(e.QY),this.analyticInteraction=(0,C.WQX)(e.Ue),this.store=(0,C.WQX)(v.il),this.splunkService=(0,C.WQX)(e.PB),this.countriesFacade=(0,C.WQX)(G.y)}getSavedGuests$(){const{accountId:T}=this.accountFacadeService.getAccountData();return this.getGuestsGQL.watch({accountId:T}).valueChanges.pipe((0,m.T)(Y=>function M(W){const K=W.data.savedGuests,T=function x(W){return"GuestsSuccess"===W.__typename}(K);return{loading:W.loading,data:T?K:null,loaded:W.networkStatus===f.pT.ready,errors:T?null:K.exceptions||W.errors}}(Y)),(0,s.W)(Y=>(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),"error",5e3),this.trackAnalyticsResiliency(Y,"WebRetrieveGuests","query WebRetrieveGuests:savedGuests","CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),(0,o.of)({loading:!1,data:null,loaded:!1,errors:Y}))))}addGuest(T){const{accountId:Y}=this.accountFacadeService.getAccountData();return this.addGuestGQL.mutate({accountId:Y,guestInfo:T},{update:(H,{data:et})=>{!et?.addGuest||"GuestsSuccess"!==et.addGuest?.__typename||H.writeQuery({query:this.getGuestsGQL.document,variables:{accountId:Y},data:{savedGuests:et.addGuest},overwrite:!0})}}).pipe((0,m.T)(({data:H})=>{if("GuestsSuccess"===H?.addGuest?.__typename)return this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.EDIT_SAVING_INFO"),"success",5e3),this.trackAnalyticsInteraction("newguestadded"),!0;if(H?.addGuest?.exceptions?.length){const et=H?.addGuest?.exceptions[0];return this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.ADD_SAVED_GUEST_RESILIENCY"),"error",5e3),this.trackAnalyticsResiliency(et,H?.addGuest?.__typename,"query WebAddGuest:savedGuests","CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),!1}return!1}),(0,s.W)(H=>(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.ADD_SAVED_GUEST_RESILIENCY"),"error",5e3),this.trackAnalyticsResiliency(H,"WebAddGuest","query WebAddGuest:savedGuests","CUSTOMER_JOURNEY.TOAST_MESSAGE.ADD_SAVED_GUEST_RESILIENCY"),(0,o.of)(!1))))}updateGuest(T,Y){const{accountId:H}=this.accountFacadeService.getAccountData();return this.updateGuestGQL.mutate({accountId:H,savedGuestId:T,guestInfo:Y}).pipe((0,m.T)(({data:et})=>
776{if("GuestsSuccess"===et?.updateGuest?.__typename)return this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.EDIT_SAVING_INFO"),"success",5e3),this.trackAnalyticsInteraction("guestupdated"),!0;if(et?.updateGuest?.exceptions?.length){const q=et?.updateGuest?.exceptions[0];return this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.UPDATE_SAVED_GUEST_RESILIENCY"),"error",5e3),this.trackAnalyticsResiliency(q,et?.updateGuest?.__typename,"query WebUpdateGuest:updateGuest","CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),!1}return!1}),(0,s.W)(et=>(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.UPDATE_SAVED_GUEST_RESILIENCY"),"error",5e3),this.trackAnalyticsResiliency(et,"WebUpdateGuest","query WebUpdateGuest:updateGuest","CUSTOMER_JOURNEY.TOAST_MESSAGE.UPDATE_SAVED_GUEST_RESILIENCY"),(0,o.of)(!1))))}deleteGuest(T){const{accountId:Y}=this.accountFacadeService.getAccountData();this.deleteGuestGQL.mutate({accountId:Y,guestId:T},{update:(H,{data:et})=>{(!et?.deleteGuest||"DeleteGuestExceptions"===et.deleteGuest?.__typename&&"NoSavedGuests"===et.deleteGuest?.exceptions[0].__typename)&&H.writeQuery({query:this.getGuestsGQL.document,variables:{accountId:Y},data:{savedGuests:{...et.deleteGuest,__typename:"RetrieveGuestsExceptions"}},overwrite:!0})}}).subscribe({next:({data:H})=>{"GuestsSuccess"===H?.deleteGuest.__typename&&this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.SAVED_GUESTS.TOAST_MESSAGE.SUCCESSFULLY_REMOVED_GUEST"),"success",5e3),"DeleteGuestExceptions"===H?.deleteGuest.__typename&&"NoSavedGuests"===H.deleteGuest?.exceptions[0].__typename&&this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.SAVED_GUESTS.TOAST_MESSAGE.SUCCESSFULLY_REMOVED_GUEST"),"success",5e3),this.trackAnalyticsInteraction("guestremoved")},error:H=>{this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.DELETE_SAVED_GUEST_RESILIENCY"),"error",5e3),this.trackAnalyticsResiliency(H,"WebAppDeleteSavedGuest","query WebAppDeleteSavedGuest:deleteGuest","CUSTOMER_JOURNEY.TOAST_MESSAGE.DELETE_SAVED_GUEST_RESILIENCY")}})}buildGuestInfoPayload(T){const Y={};return this.assignAddressFields(Y,T),this.assignContactInformation(Y,T),this.assignEmergencyContact(Y,T),this.assignLoyaltyInformation(Y,T),this.assignPersonalInformation(Y,T),this.assignRelationship(Y,T),this.assignTravelDocument(Y,T),Y}assignAddressFields(T,Y){const H={addressLine1:Y.address,addressLine2:Y.address2,countryOfResidence:Y.country,postalCode:Y.zipCode,state:Y.state,town:Y.city};for(const[et,q]of Object.entries(H))q&&(T.contactInformation={...T.contactInformation,address:{...T.contactInformation?.address,[et]:q}})}assignContactInformation(T,Y){void 0!==Y.email&&(T.contactInformation={...T.contactInformation,email:Y.email||null});const H=this.buildGuestPhoneNumber(Y.phone);void 0!==Y.phone&&(T.contactInformation={...T.contactInformation,phoneNumber:H||null})}buildGuestPhoneNumber(T){if(!T?.phoneNumber)return;if(T.mobileNumberCallingCode)return T.mobileNumberCallingCode;const Y=this.countriesFacade.phoneCallingCodes().find(H=>H.countryCode===T.countryCode)?.callingCode;return Y?`+${Y}${T.phoneNumber}`:void 0}assignEmergencyContact(T,Y){(Y.emergencyContactName||Y.emergencyMobileNbr)&&(T.emergencyContactInformation={...T.emergencyContactInformation,...Y.emergencyContactName&&{name:Y.emergencyContactName},...Y.emergencyMobileNbr&&{phoneNumber:Y.emergencyMobileNbr.mobileNumberCallingCode}})}assignLoyaltyInformation(T,Y){Y.crownAnchorNbr&&(T.loyaltyInformation={...T.loyaltyInformation,cruiseLoyaltyId:Y.crownAnchorNbr,tierCode:Y.tierCode||""})}assignPersonalInformation(T,Y){const H={firstName:Y.firstName,lastName:Y.lastName,gender:Y.gender,nickname:Y.nickname};for(const[et,q]of Object.entries(H))q&&(T.personalInformation={...T.personalInformation,[et]:q});if(Y.birthdate){const et=`${this.utilityService.formatSingleDigitNumber(Y.birthdate.year)}${this.utilityService.formatSingleDigitNumber(Y.birthdate.month)}${this.utilityService.formatSingleDigitNumber(Y.birthdate.day)}`;T.personalInformation={...T.personalInformation,birthdate:et}}}assignRelationship(T,Y){Y.relationship&&(T.relation=Y.relationship
776)}assignTravelDocument(T,Y){Y.citizenship&&(T.travelDocumentInformation={...T.travelDocumentInformation,citizenshipCountryCode:Y.citizenship})}trackAnalyticsResiliency(T,Y,H,et="CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"){const j=T?.code||T?.status||T?.statusCode,$=this.splunkService.extractTelemetyAnalyticsError(T,T?.message,"CP-0000-UNKNOWN","unexpected Add guest error"),z=$?.errorCode||j||500;this.analyticInteraction.trackInteraction({channel:F.sg.SETTINGS,currentPage:"savedguests",interaction:"errorMessage:inlineerror",content:{errorCode:z,backendError:`statusCode:${z}|endPoint:${H}`,errorIdentifier:$?.errorIdentifier,errorMsg:`Failure: ${this.translateService.instant(et)}`}})}trackAnalyticsInteraction(T){this.analyticInteraction.trackInteraction({channel:F.sg.SETTINGS,currentPage:"savedguests",interaction:T,content:{}})}resetLoyaltyLookupState(){this.store.dispatch(w.b.resetLoyaltyLookupFlags())}lookupLoyalty(T){this.store.dispatch(w.b.lookupLoyalty({payload:T}))}static{this.\u0275fac=function(Y){return new(Y||W)}}static{this.\u0275prov=C.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}}return W})();var V=n(89079),E=n(21413),L=n(70152),D=n(5964),k=n(56977);let X=(()=>{class W{constructor(){this.unSaveStore=(0,C.WQX)(l.xH),this.confirmed=this.unSaveStore.confirmedModal,this.confirmed$=(0,V.br)(this.confirmed),this.hasUnSavedChanges=this.unSaveStore.hasUnSavedChanges,this.showModal=this.unSaveStore.showModal}setHasUnSavedChanges(T){this.unSaveStore.setHasUnSavedChanges(T)}setHasUnSavedChangesSubscription(T){this.statusChangesdestroyed=new E.B,T.statusChanges.pipe((0,L.B)(250),(0,D.p)(()=>T.dirty),(0,k.Q)(this.statusChangesdestroyed)).subscribe(()=>this.setHasUnSavedChanges(!0))}destroyUnSavedChangesSubscription(){this.statusChangesdestroyed.next(!0),this.statusChangesdestroyed.complete()}toggleModal(){this.unSaveStore.toggleModal()}setConfirm(){this.unSaveStore.setConfirm()}clearSate(){this.unSaveStore.clearSate()}static{this.\u0275fac=function(Y){return new(Y||W)}}static{this.\u0275prov=C.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}}return W})()},20954:(J,U,n)=>{"use strict";n.d(U,{i5:()=>w,ET:()=>o,YM:()=>e,n_:()=>s,xH:()=>et,tw:()=>L,oD:()=>C,LU:()=>D,cM:()=>k,nJ:()=>W,oY:()=>K,yX:()=>l,Vv:()=>h,A2:()=>T,J4:()=>y,wt:()=>v});var t=n(59640);const e=(0,t.EQ)({source:"questions",events:{"load Security Questions":(0,t.w5)(),"load Security Questions Success":(0,t.xk)(),"load Security Questions Fail":(0,t.xk)()}}),C=(0,t.VG)({name:"questions",reducer:(0,t.vy)({error:null,loaded:!1,loading:!1,questions:[]},(0,t.on)(e.loadSecurityQuestions,q=>({...q,loading:!0})),(0,t.on)(e.loadSecurityQuestionsSuccess,(q,{payload:j})=>({...q,loaded:!0,loading:!1,questions:j})),(0,t.on)(e.loadSecurityQuestionsFail,(q,{error:j})=>({...q,loading:!1,loaded:!1,error:j})))}),{selectLoaded:y,selectLoading:v,selectQuestions:l,selectQuestionsState:h}=C;var u=n(54438),c=n(77339),d=n(75901),r=n(25558),O=n(96354),p=n(99437),m=n(7673);let s=(()=>{class q{constructor(){this.actions$=(0,u.WQX)(c.En),this.questionsServices=(0,u.WQX)(d.bM),this.getQuestions$=(0,c.EH)(()=>this.actions$.pipe((0,c.gp)(e.loadSecurityQuestions),(0,r.n)(()=>this.questionsServices.fetchSecurityQuestions().pipe((0,O.T)($=>e.loadSecurityQuestionsSuccess({payload:$.payload})),(0,p.W)($=>(0,m.of)(e.loadSecurityQuestionsFail({error:$})))))))}static{this.\u0275fac=function(z){return new(z||q)}}static{this.\u0275prov=u.jDH({token:q,factory:q.\u0275fac})}}return q})();const o=(0,t.EQ)({source:"Payment Methods",events:{"Fetch Payment Methods":(0,t.w5)(),"Fetch Payment Methods Success":(0,t.xk)(),"Fetch Payment Methods Failure":(0,t.xk)(),"Add Payment Method":(0,t.xk)(),"Add Payment Method Success":(0,t.xk)(),"Add Payment Method Failure":(0,t.xk)(),"Update Payment Method":(0,t.xk)(),"Update Payment Method Success":(0,t.xk)(),"Update Payment Method Failure":(0,t.xk)(),"Replace Payment Method":(0,t.xk)(),"Replace Payment Method Success":(0,t.xk)(),"Replace Payment Method Failure":(0,t.xk)(),"Delete Payment Method":(0,t.xk)(),"Delete Payment Method Success":(0,t.xk)(),"Delete Payment Method Failure":(0,t.xk)()}});var f=n(53993),M=n(70274),x=n(5964),b=n(49287),F=n(68018),G=n(66693);let w=(()=>{class q{constructor(){this.actions$=(0,u.WQX)(c.En),this.creditCardsService=(0,u.WQX)(d.KH),this.sessionService=(0,u.WQX)(b.x3),this.accountFacade=(0,u.WQX)(b.PP),this.toastFacade=(0,u.WQX)(b.v6),this.translateService=(0,u.WQX)(F.c$),this.analyticInteraction=(0,u.WQX)(b.Ue),this.paymentMethodsFacade=(0,u.WQX)(d.Yu),this.fetchCreditCards$=(0,c.EH)(()=>this.actions$.pipe((0,c.gp)(o.fetchPaymentMethods),(0,f.E)(this.accountFacade.getAccountData$),(0,r.n)(([,{accountId:$}])=>this.creditCardsService.fetchCreditCards($,this.accessToken).pipe((0,O.T)(z=>o.fetchPaymentMethodsSuccess({response:z})),(0,p.W)(z=>(this.paymentMethodsFacade.trackPaymentAnalyticsResiliency(z,"query WebFetchCreditCard:fetchCreditCard","CUSTOMER_JOURNEY.TOAST_MESSAGE.COMMON_RESILIENCY_ERROR"),(0,m.of)(o.fetchPaymentMethodsFailure({error:z})))))))),this.addCreditCard$=(0,c.EH)(()=>this.actions$.pipe((0,c.gp)(o.addPaymentMethod),(0,f.E)(this.accountFacade.getAccountData$),(0,r.n)(([{card:$,analyticsPayload:z},{accountId:ot}])=>
776this.creditCardsService.addCreditCard(ot,this.accessToken,$).pipe((0,O.T)(nt=>{this.showSuccesfullMessage();const it=JSON.parse(JSON.stringify(z));return it.content.paymentMethod=it.content.paymentMethod.join(":"),this.analyticInteraction.trackInteraction(it),o.addPaymentMethodSuccess({response:nt})}),(0,p.W)(nt=>{if(nt.errorCode===G.tG.PAYMENT_METHOD_ALREADY_EXIST){const it=JSON.parse(JSON.stringify(z));it.content.paymentMethod[0]="Y",it.content.paymentMethod=it.content.paymentMethod.join(":"),this.analyticInteraction.trackInteraction(it),this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.PAYMENT.CARD_ALREADY_SAVED"),"error",5e3),this.paymentMethodsFacade.trackPaymentAnalyticsResiliency(nt,"query WebAddCreditCard:addCreditCard","CUSTOMER_JOURNEY.PAYMENT.CARD_ALREADY_SAVED")}else this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.ADD_PAYMENT_RESILIENCY"),"error",5e3),this.paymentMethodsFacade.trackPaymentAnalyticsResiliency(nt,"query WebAddCreditCard:addCreditCard","CUSTOMER_JOURNEY.TOAST_MESSAGE.ADD_PAYMENT_RESILIENCY");return(0,m.of)(o.addPaymentMethodFailure({error:nt}))}))))),this.updateCreditCard$=(0,c.EH)(()=>this.actions$.pipe((0,c.gp)(o.updatePaymentMethod),(0,f.E)(this.accountFacade.getAccountData$),(0,M.H)(([{card:$,isUpdateAndRemoveFlow:z,analyticsPayload:ot},{accountId:nt}])=>this.creditCardsService.updateCreditCard(nt,this.accessToken,$).pipe((0,O.T)(it=>(z||this.showSuccesfullMessage(),this.analyticInteraction.trackInteraction(ot),o.updatePaymentMethodSuccess({response:it}))),(0,p.W)(it=>(it.errorCode===G.tG.PAYMENT_METHOD_ALREADY_EXIST?(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.PAYMENT.CARD_ALREADY_SAVED"),"error",5e3),this.paymentMethodsFacade.trackPaymentAnalyticsResiliency(it,"query WebUpdateCreditCard:updateCreditCard","CUSTOMER_JOURNEY.PAYMENT.CARD_ALREADY_SAVED")):(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.UPDATE_PAYMENT_RESILIENCY"),"error",5e3),this.paymentMethodsFacade.trackPaymentAnalyticsResiliency(it,"query WebUpdateCreditCard:updateCreditCard","CUSTOMER_JOURNEY.TOAST_MESSAGE.UPDATE_PAYMENT_RESILIENCY")),(0,m.of)(o.updatePaymentMethodFailure({error:it})))))))),this.replaceCreditCard$=(0,c.EH)(()=>this.actions$.pipe((0,c.gp)(o.replacePaymentMethod),(0,f.E)(this.accountFacade.getAccountData$),(0,r.n)(([{card:$,idToBeReplaced:z,analyticsPayload:ot},{accountId:nt}])=>this.creditCardsService.replacePaymentMethod(nt,this.accessToken,$,z).pipe((0,O.T)(it=>(this.analyticInteraction.trackInteraction(ot),o.replacePaymentMethodSuccess({response:it,idToBeReplaced:z}))),(0,p.W)(it=>(this.paymentMethodsFacade.trackPaymentAnalyticsResiliency(it,"query WebReplaceCreditCard:replaceCreditCard","CUSTOMER_JOURNEY.TOAST_MESSAGE.REPLACE_PAYMENT_RESILIENCY"),(0,m.of)(o.replacePaymentMethodFailure({error:it})))))))),this.deleteCreditCard$=(0,c.EH)(()=>this.actions$.pipe((0,c.gp)(o.deletePaymentMethod),(0,f.E)(this.accountFacade.getAccountData$),(0,r.n)(([{card:$,promoteCard:z,analyticsPayload:ot},{accountId:nt}])=>this.creditCardsService.deleteCreditCard(nt,this.accessToken,$).pipe((0,O.T)(()=>(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.REMOVING_PAYMENT"),"success",5e3),this.analyticInteraction.trackInteraction(ot),o.deletePaymentMethodSuccess({cardId:$.id,promoteCard:z}))),(0,p.W)(it=>(this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.DELETE_PAYMENT_RESILIENCY"),"error",5e3),this.paymentMethodsFacade.trackPaymentAnalyticsResiliency(it,"query WebDeleteCreditCard:deleteCreditCard","CUSTOMER_JOURNEY.TOAST_MESSAGE.DELETE_PAYMENT_RESILIENCY"),(0,m.of)(o.deletePaymentMethodFailure({error:it})))))))),this.promoteDefaultAfterDelete$=(0,c.EH)(()=>this.actions$.pipe((0,c.gp)(o.deletePaymentMethodSuccess),(0,x.p)(({promoteCard:$})=>!!$),(0,O.T)(({promoteCard:$})=>o.updatePaymentMethod({card:{...$,defaultPaymentMethod:!0},isUpdateAndRemoveFlow:!0,analyticsPayload:{appName:"ga",interaction:"paymentmethodedited",currentPage:"editpaymentmethod",channel:"settings",content:{}}}))))}get accessToken(){return this.sessionService.getAccessToken()}showSuccesfullMessage(){this.toastFacade.showToast(this.translateService.instant("CUSTOMER_JOURNEY.TOAST_MESSAGE.EDIT_SAVING_INFO"),"success",5e3)}static{this.\u0275fac=function(z){return new(z||q)}}static{this.\u0275prov=u.jDH({token:q,factory:q.\u0275fac})}}return q})();const S=(q,j)=>j.defaultPaymentMethod?q.map($=>({...$,defaultPaymentMethod:$.id===j.id})):q,V=q=>0===q.length||q.some($=>$.defaultPaymentMethod)?q:q.map(($,z)=>0===z?{...$,defaultPaymentMethod:!0}:$),L=(0,t.VG)({name:"paymentMethods",reducer:(0,t.vy)({creditCards:[],error:null,loaded:!1,loading:!1,savedSuccesfully:!1},(0,t.on)(o.fetchPaymentMethods,q=>({...q,loading:!0,loaded:!1,error:null})),(0,t.on)(o.fetchPaymentMethodsSuccess,(q,{response:j})=>
776({...q,creditCards:j.paymentMethods,loading:!1,loaded:!0})),(0,t.on)(o.fetchPaymentMethodsFailure,(q,{error:j})=>({...q,loading:!1,loaded:!1,error:j})),(0,t.on)(o.addPaymentMethod,o.updatePaymentMethod,o.replacePaymentMethod,o.deletePaymentMethod,q=>({...q,loading:!0,savedSuccesfully:!1})),(0,t.on)(o.addPaymentMethodSuccess,(q,{response:j})=>{const $=j.paymentMethod;return{...q,creditCards:S([...q.creditCards,$],$),savedSuccesfully:!0,loading:!1}}),(0,t.on)(o.addPaymentMethodFailure,o.updatePaymentMethodFailure,o.replacePaymentMethodFailure,o.deletePaymentMethodFailure,(q,{error:j})=>({...q,loading:!1,savedSuccesfully:!1,error:j})),(0,t.on)(o.updatePaymentMethodSuccess,(q,{response:j})=>{const $=j.paymentMethod,z=q.creditCards.map(ot=>ot.id===$.id?$:ot);return{...q,creditCards:S(z,$),savedSuccesfully:!0,loading:!1}}),(0,t.on)(o.replacePaymentMethodSuccess,(q,{response:j,idToBeReplaced:$})=>{const z=j.paymentMethod,ot=q.creditCards.filter(nt=>nt.id!==z.id||nt.id===$).map(nt=>nt.id===$?z:nt);return{...q,creditCards:S(ot,z),savedSuccesfully:!0,loading:!1}}),(0,t.on)(o.deletePaymentMethodSuccess,(q,{cardId:j})=>({...q,creditCards:V(q.creditCards.filter($=>$.id!==j)),loading:!1})))}),{selectCreditCards:D,selectLoaded:k,selectLoading:W,selectPaymentMethodsState:K,selectSavedSuccesfully:T}=L;var Y=n(96138);const H={confirmedModal:!1,hasUnSavedChanges:!1,showModal:!1},et=(0,Y.Eu)({providedIn:"root"},(0,Y.Q2)(H),(0,Y.RI)(q=>({setHasUnSavedChanges(j){(0,Y.M8)(q,$=>({...$,hasUnSavedChanges:j,confirmedModal:!1}))},toggleModal(){(0,Y.M8)(q,j=>({...j,showModal:!j.showModal}))},setConfirm(){(0,Y.M8)(q,j=>({...j,confirmedModal:!0,showModal:!1,hasUnSavedChanges:!1}))},clearSate(){(0,Y.M8)(q,()=>H)}})))},16769:(J,U,n)=>{"use strict";n.d(U,{Sb:()=>C,_G:()=>y,sD:()=>v,uL:()=>l});var t=n(86910),e=n(33002),a=n(64291);function C(){return h=>{const{value:u}=h,c=(0,a.BP)(u,8),d=(0,a.ED)(t.gf,u),r=(0,a.ED)(t.hE,u);return!(0,a.gx)(u)&&c&&d&&r?null:{errorMessage:e.y.INVALID_PASSWORD}}}function y(h={isOptional:!1}){return u=>{const{value:c}=u,d=c?.phoneNumber??"";if(h.isOptional&&""===d)return null;const r=d.replace(/\D/g,""),O=(0,a.BP)(r,8),p=(0,a.zb)(r,15),m=(0,a.ED)(/^[\d\-()+]*$/,d);return O?p?m?null:{errorMessage:e.y.INVALID_MOBILE_NUMBER}:{errorMessage:e.y.MAX_DIGITS_MOBILE_NUMBER}:{errorMessage:e.y.EMPTY_MOBILE_NUMBER}}}function v(){return h=>{const{day:u,month:c,year:d}=h.value||{},r={},O=p=>(0,a.gx)(p)||Number(p)<1;if(O(u)&&(r.day=e.y.ENTER_DAY),O(c)&&(r.month=e.y.ENTER_MONTH),O(d))r.year=e.y.ENTER_YEAR;else{const p=Number(c)-1,m=Number(u),s=new Date(Number(d),p,m),f=4===String(d).replace(/\D/g,"").length;((0,a.h4)(s)||(0,a.LV)(s)||!f)&&(r.year=e.y.ENTER_YEAR_VALIDATION)}return Object.keys(r).length>0?r:null}}function l(h,u,c){return d=>d.value&&u()&&!h()?{errorMessage:c}:null}},65349:(J,U,n)=>{"use strict";n.d(U,{_:()=>F});var t=n(54438),e=n(89417),a=n(45312),C=n(89469),y=n(31369),v=n(68018),l=n(33002),h=n(23228),u=n(16769),c=n(49287),d=n(60177),r=n(5537),O=n(66693),p=n(96697),m=n(96354),s=n(89079);function o(G,w){if(1&G){const S=t.RV6();t.j41(0,"app-banner-message",17),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("onClick",function(){t.eBV(S);const E=t.XpG(2);return t.Njj(E.banner().onClick?E.banner().onClick():null)})("onClose",function(){t.eBV(S);const E=t.XpG(2);return t.Njj(E.banner().onClose?E.banner().onClose():null)}),t.k0s()}if(2&G){const S=t.XpG(2);t.Y8G("icon",S.banner().icon)("iconColor",S.banner().iconColor)("message",S.banner().useTranslate?t.bMT(1,9,S.banner().message):S.banner().message)("subMessage",S.banner().subMessage)("borderColor",S.banner().borderColor)("ctaLabel",S.banner().ctaLabel?t.bMT(2,11,S.banner().ctaLabel):"")("showClose",S.banner().showClose)("hasBorder",S.banner().hasBorder)("boxShadow",S.banner().boxShadow)}}function f(G,w){if(1&G){const S=t.RV6();t.j41(0,"form",9),t.bIt("ngSubmit",function(){t.eBV(S);const E=t.XpG();return t.Njj(E.handleContinueSubmit())}),t.j41(1,"div",10),t.DNE(2,o,3,13,"app-banner-message",11),t.nrm(3,"app-input",12),t.nI1(4,"translate"),t.nI1(5,"translate"),t.nrm(6,"app-input-date",13)(7,"app-input",14),t.nI1(8,"translate"),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"p",15),t.EFF(11),t.nI1(12,"translate"),t.j41(13,"a",16),t.bIt("click",function(){t.eBV(S);const E=t.XpG();return t.Njj(E.onLearnMoreClicked())}),t.EFF(14),t.nI1(15,"translate"),t.k0s()()}if(2&G){const S=t.XpG();t.Y8G("formGroup",S.reservationForm),t.R7$(2),t.vxM(S.banner().show?2:-1),t.R7$(),t.Y8G("brand",S.brand)("label",t.bMT(4,14,"COMMON.LAST_NAME"))("placeholder",t.bMT(5,16,"CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.PLACEHOLDER.LAST_NAME")),t.R7$(3),t.Y8G("brand",S.brand)("labels",S.dateLabels),t.R7$(),t.Y8G("brand",S.brand)("label",t.bMT(8,18,"FIND_RESERVATION.RESERVATION_NUMBER"))("placeholder",t.bMT(9,20,"CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.PLACEHOLDER.SIX_DIGIT_NUMBER"))("allowOnlyNumbers",!0)("maxLength",7),t.R7$(4),t.SpI("",t.bMT(12,22,"CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.INSTRUCTIONAL_COPY")," "),t.R7$(3),t.JRh(t.bMT(15,24,"COMMON.LEARN_MORE"))}}function M(G,w){if(1&G){const S=t.RV6();t.j41(0,"app-passenger-verify-information",18),t.bIt("onOptionSelected",function(E){t.eBV(S);const L=t.XpG();return t.Njj(L.handlePassengerSelected(E))}),t.k0s()}if(2&G){const S=t.XpG();t.Y8G("passengers",S.passengers)}}function x(G,w){if(1&G){const S=t.RV6();t.j41(0,"app-primary-button",19),t.nI1(1,"translate"),t.bIt("onClick",function(){t.eBV(S);const E=t.XpG();return t.Njj(E.handleContinueSubmit())}),t.k0s()}if(2&G){const S=t.XpG();t.Y8G("brand",S.brand)("text",t.bMT(1,3,"FIND_RESERVATION.CONTINUE"))("disabled",!S.reservationForm.dirty||S.reservationForm.invali
776d)}}function b(G,w){if(1&G){const S=t.RV6();t.j41(0,"app-primary-button",20),t.nI1(1,"translate"),t.bIt("onClick",function(){t.eBV(S);const E=t.XpG();return t.Njj(E.handleConfirmVerification())}),t.k0s()}if(2&G){const S=t.XpG();t.Y8G("brand",S.brand)("text",t.bMT(1,2,"RESERVATION_CONFIRMATION.DONE"))}}let F=(()=>{class G{invalidReservationNumberValidator(S){return()=>this.showErrorMessageOnReservationNumber$.pipe((0,p.s)(1),(0,m.T)(V=>V?(this.reservationNumberChanges=this.reservationForm.get("reservationNumber").valueChanges.subscribe(()=>{this.bookingService.showErrorMessageOnReservationNumber.set(!1)}),{errorMessage:S}):(this.reservationNumberChanges?.unsubscribe(),null)))}constructor(){this.translateService=(0,t.WQX)(v.c$),this.formBuilder=(0,t.WQX)(e.ok),this.urls=(0,t.WQX)(c.aT),this.reservationFacadeService=(0,t.WQX)(c.A_),this.injector=(0,t.WQX)(t.zZn),this.bookingFacade=(0,t.WQX)(c.ZO),this.utilityService=(0,t.WQX)(c.QY),this.loyaltyRepo=(0,t.WQX)(c.J5),this.bookingService=(0,t.WQX)(c.LM),this.analyticInteraction=(0,t.WQX)(c.Ue),this.colors=O.Jy,this.brand=a.qt,this.banner=(0,t.EWP)(()=>this.setBannerInfo()),this.account=t.hFB.required(),this.confirmText=(0,t.hFB)(),this.cancelText=(0,t.hFB)(),this.isOpen=t.hFB.required(),this.onCancel=(0,t.CGW)(),this.onClosed=(0,t.CGW)(),this.onConfirm=(0,t.CGW)(),this.showErrorOnReservation=!1,this.dateLabels={day:this.translateService.instant("COMMON.DAY"),month:this.translateService.instant("COMMON.MONTH"),year:this.translateService.instant("COMMON.YEAR"),value:this.translateService.instant("COMMON.DATE_OF_BIRTH")},this.reservationForm=this.formBuilder.group({lastName:["",(0,h.Dc)("VALIDATORS.ENTER_YOUR_LAST_NAME","VALIDATORS.LASTNAME_MINIMUM_CHARACTERS","VALIDATORS.LASTNAME_MAXIMUM_CHARACTERS")],birthdate:[{month:"",day:"",year:""},(0,u.sD)()],reservationNumber:["",(0,h.N0)([(0,h.yt)(l.y.RESERVATION_NUMBER),(0,h.lE)(y.wy,l.y.RESERVATION_NUMBER),(0,h.Pj)(7,l.y.RESERVATION_NUMBER),(0,h.lE)(/^(?!0+$)\d+$/,l.y.RESERVATION_NUMBER)]),[this.invalidReservationNumberValidator(l.y.RESERVATION_NUMBER)]]}),this.noReservationMessage=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.NO_RESERVATIONS"),this.invalidReservationHeader=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.INVALID_RESERVATION_HEADER"),this.pastReservationHeader=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.PAST_RESERVATION_HEADER"),this.pastReservationMessage=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.PAST_RESERVATION"),this.invalidReservationMessage=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.INVALID_RESERVATION"),this.invalidSurnameMessage=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.INVALID_SURNAME"),this.showErrorMessageOnReservationNumber$=(0,s.br)(this.bookingService.showErrorMessageOnReservationNumber),this.alreadyLinkedMessageHeader=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.ALREADY_LINKED_HEADER"),this.alreadyLinkedMessageSubHeader=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.ALREADY_LINKED_SUB_HEADER"),this.maxLinkedBookingsMessageHeader=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.MAX_LIMIT_REACHED_HEADER"),this.maxLinkedBookingsMessageSubHeader=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.ERROR.MAX_LIMIT_REACHED_SUB_HEADER")}ngOnInit(){(0,t.QZP)(()=>{this.passengers=this.reservationFacadeService.passengersData(),this.currentStep=this.reservationFacadeService.step(),"verify"===this.currentStep&&(this.header=this.translateService.instant("RESERVATION_CONFIRMATION.IS_THIS_YOUR_PARTY"),this.subHeader=this.translateService.instant("RESERVATION_CONFIRMATION.INSTRUCTIONAL_COPY"),this.passengers.push({passengerId:"none",firstName:this.translateService.instant("RESERVATION_CONFIRMATION.IM_NOT_ON_THIS_RESERVATION")}))},{injector:this.injector,allowSignalWrites:!0}),this.showErrorMessageOnReservationNumber$.subscribe(S=>{if(S){this.showErrorOnReservation=!0;const V=this.reservationForm.get("reservationNumber");
776V.markAsTouched(),V.markAsDirty(),V.updateValueAndValidity()}})}ngOnChanges(S){S?.isOpen?.currentValue&&(this.currentStep="form",this.header=this.translateService.instant("FIND_RESERVATION.LINK_A_CRUISE.ROYAL"),this.subHeader=this.translateService.instant("FIND_RESERVATION.ENABLE_CHECKIN.ROYAL"),this.trackPageView())}onLearnMoreClicked(){window.open(this.urls.list?.PRIVACY_POLICY,"_blank")}resetForm(){this.reservationForm.reset({lastName:"",birthdate:{month:"",day:"",year:""},reservationNumber:""})}handleCancel(){this.onCancel.emit(),this.resetForm()}handleClose(){this.onClosed.emit(),this.resetForm()}handleContinueSubmit(){const{year:S,month:V,day:E}=this.reservationForm.value.birthdate,L=`${this.utilityService.formatSingleDigitNumber(S)}${this.utilityService.formatSingleDigitNumber(V)}${this.utilityService.formatSingleDigitNumber(E)}`;this.bookingFacade.manualLinkSearch({bookingId:this.reservationForm.value.reservationNumber,birthdate:L,lastName:this.reservationForm.value.lastName,vdsId:this.account().vdsId,preferred:!1})}setBannerInfo(){return"RESERVATION_NOT_FOUND"===this.bookingService.showErrorOnBanner()?{show:!0,icon:"error",iconColor:this.colors.error,message:this.invalidReservationHeader,subMessage:this.invalidReservationMessage,borderColor:this.colors.error,ctaLabel:void 0,onClick:void 0,useTranslate:!1,showClose:!0,hasBorder:!1,boxShadow:"0px 2px 4px 0px rgba(53, 54, 55, 0.15)",onClose:()=>this.bookingService.showErrorOnBanner.set("NONE")}:"PAST_RESERVATION"===this.bookingService.showErrorOnBanner()?{show:!0,icon:"error",iconColor:this.colors.error,message:this.pastReservationHeader,subMessage:this.pastReservationMessage,borderColor:this.colors.error,ctaLabel:void 0,onClick:void 0,useTranslate:!1,showClose:!0,hasBorder:!1,boxShadow:"0px 2px 4px 0px rgba(53, 54, 55, 0.15)",onClose:()=>this.bookingService.showErrorOnBanner.set("NONE")}:"SURNAME_MISMATCH"===this.bookingService.showErrorOnBanner()?{show:!0,icon:"error",iconColor:this.colors.error,message:this.noReservationMessage,subMessage:this.invalidSurnameMessage,borderColor:this.colors.error,ctaLabel:void 0,onClick:void 0,useTranslate:!1,showClose:!0,hasBorder:!1,boxShadow:"0px 2px 4px 0px rgba(53, 54, 55, 0.15)",onClose:()=>this.bookingService.showErrorOnBanner.set("NONE")}:"ALREADY_LINKED"===this.bookingService.showErrorOnBanner()?{show:!0,icon:"success",iconColor:this.colors.success,message:this.alreadyLinkedMessageHeader,subMessage:this.alreadyLinkedMessageSubHeader,borderColor:this.colors.success,ctaLabel:void 0,onClick:void 0,useTranslate:!1,showClose:!0,hasBorder:!1,boxShadow:"0px 2px 4px 0px rgba(53, 54, 55, 0.15)",onClose:()=>this.bookingService.showErrorOnBanner.set("NONE")}:"MAX_LINKED_BOOKINGS_REACHED"===this.bookingService.showErrorOnBanner()?{show:!0,icon:"warning",iconColor:this.colors.warning,message:this.maxLinkedBookingsMessageHeader,subMessage:this.maxLinkedBookingsMessageSubHeader,borderColor:this.colors.warning,ctaLabel:void 0,onClick:void 0,useTranslate:!1,showClose:!0,hasBorder:!1,boxShadow:"0px 2px 4px 0px rgba(53, 54, 55, 0.15)",onClose:()=>this.bookingService.showErrorOnBanner.set("NONE")}:{show:!1,icon:"",iconColor:"",message:"",subMessage:"",borderColor:"",ctaLabel:void 0,onClick:void 0,useTranslate:!1,showClose:!1,hasBorder:!1,boxShadow:"",onClose:void 0}}handlePassengerSelected(S){"none"===S?(this.selectedPassengerId=null,this.passengerSelectType="NOT_ON_RESERVATION"):(this.selectedPassengerId=S,this.passengerSelectType="PASSENGER")}handleConfirmVerification(){const S=this.account()?.loyaltyInformation?this.account().loyaltyInformation[this.loyaltyRepo.getProgramNumberPropertyName(a.qt)]:null;this.bookingFacade.linkBookingManual({vdsId:this.account().vdsId,bookingId:this.reservationForm.value.reservationNumber,passengerId:this.selectedPassengerId,linkType:this.getLinkType(),preferred:!1,passengers:this.passengers.filter(V=>"none"!==V.passengerId),loyaltyNumber:S}),this.onClosed.emit(),this.resetForm(),this.analyticInteraction.trackInteraction({appName:"ga",interaction:"dashboard:addareservation",currentPage:"dashboard",channel:"dashboard",content:{eventType:"interaction"}})}getLinkType(){return"PASSENGER"===this.passengerSelectType?"SELF_ENHANCED":"ON_BEHALF_OF_ENHANCED"}trackPageView(){this.analyticInteraction.trackPageView({channel:"mytrips",pageName:"linkacruisemanually",appName:"ga"})}static{this.\u0275fac=function(V){return new(V||G)}}static{this.\u0275cmp=t.VBU({type:G,selectors:[["app-add-reservation-modal"]],inputs:{account:[1,"account"],confirmText:[1,"confirmText"],cancelText:[1,"cancelText"],isOpen:[1,"isOpen"]},outputs:{onCancel:"onCancel",onClosed:"onClosed",onConfirm:"onConfirm"},standalone:!0,features:[t.OA$,t.aNF],decls:13,vars:11,consts:[[3,"modalClosed","brand","isOpen"],["header","",1,"reservation-modal--header"],["subHeader","",1,"reservation-modal--subheader"],["content","",1,"reservation-modal--content"],[3,"passengers"],["actions","",1,"reservation-modal--actions"],["type","button",3,"brand","text","disabled"],["type","button",3,"brand","text"],["type","button",3,"onClick","brand","text","theme"],[1,"form",3,"ngSubmit","formGroup"],[1,"form__fields"],[3,"icon","iconColor","message","subMessage","borderColor","ctaLabel","showClose","hasBorder","boxShadow"],["id","lastName","name","lastName","formControlName","lastName",1,"form__field",3,"brand","label","placeholder"],["id","birthdate","name","birthdate","formControlName","birthdate",1,"form__field",3,"brand","labels"],["id","reservationNumber","name","reservationNumber","formControlName","reservationNumber",1,"form__field",3,"brand","label","placeholder","allowOnlyNumbers","maxLength"],[1,"reservation-modal-copy"],["tabindex","0",1,"reservation-modal-link",3,"click"],[3,"onClick","onClose","icon","iconColor","message","subMessage","borderColor","ctaLabel","showClose","hasBorder","boxShadow"],[3,"onOptionSelected","passengers"],["type","button",3,"onClick","brand","text","disabled"],["type","button",3,"onClick","brand","text"]],template:function(V,E){1&V&&(t.j41(0,"shared-modal",0),t.bIt("modalClosed",function(){return E.handleClose()}),t.j41(1,"div",1),t.EFF(2),t.k0s(),t.j41(3,"div",2),t.EFF(4),t.k0s(),t.j41(5,"div",3),t.DNE(6,f,16,26)(7,M,1,1,"app-passenger-verify-information",4),t.k0s(),t.j41(8,"div",5),t.DNE(9,x,2,5,"app-primary-button",6)(10,b,2,4,"app-primary-button",7),t.j41(11,"app-primary-button",8),t.nI1(12,"translate"),t.bIt("onClick",function(){return E.handleCancel()}),t.k0s()()()),2&V&&(t.Y8G("brand",E.brand)("isOpen",E.isOpen()),t.R7$(2),t.SpI(" ",E.header," "),t.R7$(2),t.SpI(" ",E.subHeader," "),t.R7$(2),t.vxM("form"===E.currentStep?6:"verify"===E.currentStep?7:-1),t.R7$(3),t.vxM("form"===E.currentStep?9:"verify"===E.currentStep?10:-1),t.R7$(2),t.Y8G("brand",E.brand)("text",t.bMT(12,9,"COMMON.CANCEL"))("theme","basic"))},dependencies:[C.zf,C.A1,C.Sj,C.MC,v.h,v.D9,e.X1,e.qT,e.BC,e.cb,e.j4,e.JD,d.MD,r.d,C.p8],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.reservation-modal--content[_ngcontent-%COMP%]{margin:30px auto}.form__fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.reservation-modal-copy[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.reservation-modal-copy[_ngcontent-%COMP%] .reservation-modal-link[_ngcontent-%COMP%]{font-weight:600;cursor:pointer;color:#2588cd;text-decoration:underline;text-decoration-style:solid;text-decoration-thickness:0;text-underline-position:from-font}@media screen and (max-width: 480px){.reservation-modal--content[_ngcontent-%COMP%], .reservation-modal--header[_ngcontent-%COMP%], .reservation-modal--subheader[_ngcontent-%COMP%]{text-align:left}.reservation-modal-copy[_ngcontent-%COMP%]{padding:16px 0}.form__fields[_ngcontent-%COMP%]{gap:16px}.reservation-modal--actions[_ngcontent-%COMP%]{margin:40px 0}}"]})}}return G})()},23013:(J,U,n)=>{"use strict";n.d(U,{t:()=>l});var t=n(54438),e=n(89417),a=n(5964),C=n(96354),y=n(66693),v=n(31369);let l=(()=>{class h{constructor(c){this.ngControl=c,this.brand=(0,t.hFB)(v.rI.royal),this.disabled=(0,t.geq)(!1),this.id=(0,t.hFB)("dropdown"),this.label=(0,t.hFB)(""),this.name=(0,t.hFB)(""),this.value=(0,t.geq)(),this.placeholder=(0,t.geq)(""),this.errorMessage=(0,t.vPA)(""),this.onFocus=(0,t.CGW)(),this.onFocusOut=(0,t.CGW)(),this.onChanges=(0,t.CGW)(),this.onError=(0,t.CGW)(),this.shouldShowError=(0,t.vPA)(!1),this.ngControl&&(this.ngControl.valueAccessor=this)}ngOnInit(){this.ngControl?.control&&(this.subscription=this.ngControl.control.events.pipe((0,a.p)(c=>c instanceof e.rS),(0,C.T)(c=>c.touched)).subscribe(c=>
776{this.shouldShowError.set(c),this.errorMessage.set(this.getFirstError())}))}change(c){}onTouch(){}writeValue(c){this.value.set(c)}registerOnChange(c){this.change=c}registerOnTouched(c){this.onTouch=c}setDisabledState(c){this.disabled.set(c)}handleClearValue(){this.writeValue(""),this.change(""),this.onChanges.emit("")}handleError(c){const d=c.detail?.value;this.onError.emit(d)}handleFocus(c){this.shouldShowError.set(!1),this.onFocus.emit(c)}handleFocusOut(c){this.onTouch(),this.onFocusOut.emit(c),this.errorMessage.set(this.getFirstError()),this.shouldShowError.set(!0)}handleValueChange(c){const d=this.getValueFromEvent(c);this.change(d),this.writeValue(d),this.onChanges.emit(d)}getValueFromEvent(c){return c.target?.value}getFirstError(){const c=this.ngControl?.control?.errors;return c?"errorMessage"in c?c.errorMessage:y.MA:""}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(d){return new(d||h)(t.rXU(e.vO,10))}}static{this.\u0275cmp=t.VBU({type:h,selectors:[["app-based-input"]],inputs:{brand:[1,"brand"],disabled:[1,"disabled"],id:[1,"id"],label:[1,"label"],name:[1,"name"],value:[1,"value"],placeholder:[1,"placeholder"]},outputs:{disabled:"disabledChange",value:"valueChange",placeholder:"placeholderChange",onFocus:"onFocus",onFocusOut:"onFocusOut",onChanges:"onChanges",onError:"onError"},standalone:!0,features:[t.Jv_([{provide:e.kq,useExisting:(0,t.Rfq)(()=>h),multi:!0}]),t.aNF],decls:2,vars:0,consts:[[1,"based-input"]],template:function(d,r){1&d&&(t.j41(0,"p",0),t.EFF(1,"based-input works!"),t.k0s())},dependencies:[e.YN],styles:[".based-input[_ngcontent-%COMP%]{display:block}"],changeDetection:0})}}return h})()},67249:(J,U,n)=>{"use strict";n.d(U,{z:()=>l});var t=n(54438),e=n(68018),a=n(49287),C=n(45312);function y(h,u){if(1&h&&(t.j41(0,"h3",2),t.EFF(1),t.k0s()),2&h){const c=t.XpG();t.R7$(),t.JRh(c.title)}}function v(h,u){if(1&h&&(t.j41(0,"div",5)(1,"span",3),t.EFF(2),t.k0s(),t.j41(3,"span",4),t.EFF(4),t.k0s()()),2&h){const c=t.XpG();t.R7$(2),t.JRh(c.extraBrand),t.R7$(2),t.JRh(c.extraPhone)}}let l=(()=>{class h{constructor(){this.translate=(0,t.WQX)(e.c$),this.callNumber=(0,t.WQX)(a.dR),this.showTitle=(0,t.hFB)(!0)}ngOnInit(){this.title=this.translate.instant("RESET_PASSWORD.ACCOUNT_LOCKED.OR_CALL_FOR_ASSISTANCE");const c=this.callNumber.getCallNumber(),{extra:d,country:r,display:O}=c,p=C.qt;switch(this.phone=O,p){case"royal":this.brandTransKey="BRANDS.ROYAL_CARIBBEAN_CRUISES";break;case"celebrity":this.brandTransKey="BRANDS.CELEBRITY_CRUISES";break;case"silversea":this.brandTransKey="BRANDS.SILVERSEA_CRUISES"}const m=this.translate.instant(this.brandTransKey);this.fullBrand="COUNTRY.MX"===r?`${m} - ${this.translate.instant(r)}`:m,this.hasExtraPhone=!!d,this.hasExtraPhone&&(this.extraPhone=d.city.display,this.extraBrand=d.city.label)}static{this.\u0275fac=function(d){return new(d||h)}}static{this.\u0275cmp=t.VBU({type:h,selectors:[["shared-call-for-assistance"]],inputs:{showTitle:[1,"showTitle"]},standalone:!0,features:[t.aNF],decls:8,vars:4,consts:[[1,"call-for-assistance"],[1,"main-phone"],[1,"title"],[1,"label"],[1,"phone"],[1,"extra-phone"]],template:function(d,r){1&d&&(t.j41(0,"section",0)(1,"div",1),t.DNE(2,y,2,1,"h3",2),t.j41(3,"span",3),t.EFF(4),t.k0s(),t.j41(5,"span",4),t.EFF(6),t.k0s()(),t.DNE(7,v,5,2,"div",5),t.k0s()),2&d&&(t.R7$(2),t.vxM(r.showTitle()?2:-1),t.R7$(2),t.JRh(r.fullBrand),t.R7$(2),t.JRh(r.phone),t.R7$(),t.vxM(r.hasExtraPhone?7:-1))},dependencies:[e.h],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.phone[_ngcontent-%COMP%]{font-size:14px;position:absolute;right:0}.label[_ngcontent-%COMP%]{font-size:13px;position:absolute;left:0}.title[_ngcontent-%COMP%]{text-align:center;font-size:22px;font-weight:700;margin-top:10px;line-height:22px}.extra-phone[_ngcontent-%COMP%]{margin-top:20px;position:relative;top:30px}.call-for-assistance[_ngcontent-%COMP%]{position:relative;color:#000}@media screen and (width <= 768px){.title[_ngcontent-%COMP%]{font-size:18px}}"]})}}return h})()},95498:(J,U,n)=>{"use strict";n.d(U,{V:()=>p});var t=n(54438),e=n(30803),a=n(96721),C=n(97513);let y=(()=>{class m{constructor(){this.loyaltyService=(0,t.WQX)(a.t),this.communityContent=(0,t.vPA)(null),this.isLoading=(0,t.vPA)(!0),this.bannerData=(0,t.EWP)(()=>{const o=this.communityContent();if(!o)return null;const{newText:f,title:M,description:x,celCommunityDiscoverEntryPointButtonText:b,webChatBackgroun
776dImage:F,coupleProfileBackgroundImage:G}=o;return{newText:f||null,title:M||null,description:x||null,ctaLabel:b||null,webChatBackgroundImage:F?`${C.A.AEM_PATH}/${F}`:null,coupleProfileBackgroundImage:G?`${C.A.AEM_PATH}/${G}`:null}})}loadCommunityContent(){this.isLoading.set(!0),this.loyaltyService.getCommunityContentFromAem().subscribe({next:o=>{this.communityContent.set(o?.payload??null),this.isLoading.set(!1)},error:()=>{this.communityContent.set(null),this.isLoading.set(!1)}})}static{this.\u0275fac=function(f){return new(f||m)}}static{this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();const v=()=>({fromInternal:!0});function l(m,s){1&m&&t.nrm(0,"rcg-skeleton-loader",1)}function h(m,s){if(1&m&&(t.j41(0,"span",3),t.EFF(1),t.k0s()),2&m){t.XpG(3);const o=t.r8f(0);t.R7$(),t.JRh(o.newText)}}function u(m,s){if(1&m&&(t.j41(0,"h3",6),t.EFF(1),t.k0s()),2&m){t.XpG(3);const o=t.r8f(0);t.R7$(),t.JRh(o.title)}}function c(m,s){if(1&m&&(t.j41(0,"p",7),t.EFF(1),t.k0s()),2&m){t.XpG(3);const o=t.r8f(0);t.R7$(),t.JRh(o.description)}}function d(m,s){if(1&m&&(t.j41(0,"a",8),t.EFF(1),t.k0s()),2&m){t.XpG(3);const o=t.r8f(0);t.Y8G("state",t.lJ4(2,v)),t.R7$(),t.SpI(" ",o.ctaLabel," ")}}function r(m,s){if(1&m&&(t.j41(0,"div",2),t.DNE(1,h,2,1,"span",3),t.j41(2,"div",4)(3,"div",5),t.DNE(4,u,2,1,"h3",6)(5,c,2,1,"p",7),t.k0s(),t.DNE(6,d,2,3,"a",8),t.k0s()(),t.nrm(7,"div",9)),2&m){t.XpG(2);const o=t.r8f(0);t.xc7("--web-chat-background-image",o.webChatBackgroundImage?"url("+o.webChatBackgroundImage+")":null),t.R7$(),t.vxM(o.newText?1:-1),t.R7$(3),t.vxM(o.title?4:-1),t.R7$(),t.vxM(o.description?5:-1),t.R7$(),t.vxM(o.ctaLabel?6:-1),t.R7$(),t.xc7("background-image",o.coupleProfileBackgroundImage?"url("+o.coupleProfileBackgroundImage+")":null)}}function O(m,s){if(1&m&&(t.j41(0,"section",0),t.DNE(1,l,1,0,"rcg-skeleton-loader",1)(2,r,8,8),t.k0s()),2&m){const o=t.XpG(),f=t.r8f(0);t.R7$(),t.vxM(o.isLoading()?1:-1),t.R7$(),t.vxM(!o.isLoading()&&f?2:-1)}}let p=(()=>{class m{constructor(){this.communityBannerFacade=(0,t.WQX)(y),this.isLoading=this.communityBannerFacade.isLoading,this.bannerData=this.communityBannerFacade.bannerData}ngOnInit(){this.communityBannerFacade.loadCommunityContent()}static{this.\u0275fac=function(f){return new(f||m)}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["app-community-banner"]],hostVars:2,hostBindings:function(f,M){2&f&&t.xc7("display",M.isLoading()||M.bannerData()?null:"none")},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[1,"community-banner"],[1,"community-banner__skeleton"],[1,"community-banner__left"],[1,"community-banner__badge"],[1,"community-banner__copy"],[1,"community-banner__text"],[1,"community-banner__title"],[1,"community-banner__description"],["routerLink","/community",1,"community-banner__cta",3,"state"],["aria-hidden","true",1,"community-banner__image"]],template:function(f,M){if(1&f&&(t.SS7(0),t.DNE(1,O,3,2,"section",0)),2&f){const x=t.bH3(M.bannerData());t.R7$(),t.vxM(M.isLoading()||x?1:-1)}},dependencies:[e.Wk],styles:['[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] *[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}.community-banner[_ngcontent-%COMP%]{display:flex;width:100%;height:255px;overflow:visible;margin:0 auto;font-family:Proxima Nova,sans-serif;font-feature-settings:"liga" off,"clig" off}.community-banner__skeleton[_ngcontent-%COMP%]{width:100%;height:100%}.community-banner[_ngcontent-%COMP%] .skeleton-loader{border-radius:.75rem}.community-banner__left[_ngcontent-%COMP%]{--logo-size: 360px;flex:1 1 55%;height:100%;background:linear-gradient(90deg,#1f78b3,#0f6aa8 40%,#004275);position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:24px;z-index:2;color:#fff}.community-banner__left[_ngcontent-%COMP%]:after{content:"";position:absolute;
776left:80%;top:50%;transform:translate(-50%,-50%);width:var(--logo-size);height:var(--logo-size);background-image:var(--web-chat-background-image);background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3;pointer-events:none}.community-banner__copy[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:30px;flex:1 0 0;max-width:300px;margin-top:20px;z-index:2}.community-banner__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.community-banner__badge[_ngcontent-%COMP%]{position:absolute;left:60px;top:0;transform:translate(-70%,-50%);display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(248.92deg,#d44d3b 21.24%,#6b35b5);color:inherit;text-align:center;padding:14px 14px 14px 13px;height:25px;border-radius:0 0 4px;font-size:12px;font-style:normal;font-weight:700;line-height:16px;letter-spacing:.15px;margin:0;z-index:4}.community-banner__title[_ngcontent-%COMP%]{font-size:32px;font-style:normal;font-weight:800;line-height:34px;letter-spacing:-1px;margin:0}.community-banner__description[_ngcontent-%COMP%]{font-size:20px;font-weight:400;font-style:normal;line-height:24px;letter-spacing:.15px;max-width:370px;margin:0}.community-banner__cta[_ngcontent-%COMP%]{display:flex;background:transparent;color:inherit;text-align:center;border:1px solid #ffffff;border-radius:4px;padding:16px 24px;height:56px;flex-direction:column;justify-content:center;align-items:center;font-size:18px;font-style:normal;font-weight:700;line-height:22px;letter-spacing:.15px;transition:background-color .2s ease;text-decoration:none}.community-banner__cta[_ngcontent-%COMP%]:hover{background:#ffffff1a}.community-banner__image[_ngcontent-%COMP%]{flex:1 1 45%;position:relative;min-width:0;background-repeat:no-repeat;background-size:cover;background-position:right center;z-index:1}.community-banner__image[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#004275,#004275b8 18%,#00427500 48%);z-index:2;pointer-events:none}@media (max-width: 900px){.community-banner[_ngcontent-%COMP%]{height:153px}.community-banner__skeleton[_ngcontent-%COMP%]{width:100%;height:100%}.community-banner__left[_ngcontent-%COMP%]{padding:16px 16px 16px 12px;height:100%;background:linear-gradient(90deg,#1673af 50%,#004275)}.community-banner__image[_ngcontent-%COMP%]{flex:1 1 50%;height:100%}.community-banner__copy[_ngcontent-%COMP%]{width:100%;max-width:200px;height:auto;margin-top:0;padding-top:12px;gap:0}.community-banner__text[_ngcontent-%COMP%]{gap:0}.community-banner__badge[_ngcontent-%COMP%]{padding:8px 10px;left:46px}.community-banner__title[_ngcontent-%COMP%]{font-size:20px;font-weight:800;line-height:20px;letter-spacing:-.6px;margin-bottom:6px}.community-banner__description[_ngcontent-%COMP%]{font-size:14px;line-height:18px;max-width:100%;margin-bottom:10px}.community-banner__cta[_ngcontent-%COMP%]{height:40px;padding:8px 20px;flex-shrink:0;font-size:16px;font-weight:700;line-height:20px}.community-banner__left[_ngcontent-%COMP%]:after{z-index:1;width:210px}.community-banner__image[_ngcontent-%COMP%]:before{background:linear-gradient(90deg,#004275,#0042758c 24%,#00427500 50%);z-index:2}}@media (max-width: 700px){.community-banner[_ngcontent-%COMP%]{max-width:640px;height:153px}.community-banner__skeleton[_ngcontent-%COMP%]{width:100%;height:100%}.community-banner__left[_ngcontent-%COMP%]{--logo-size: 152px;flex:1 1 56%;height:100%;padding:16px 96px 16px 12px}.community-banner__image[_ngcontent-%COMP%]{display:block;flex:1 1 44%;height:100%}.community-banner__copy[_ngcontent-%COMP%]{width:100%;max-width:200px}}@media (max-width: 600px){.community-banner[_ngcontent-%COMP%]{height:auto;min-height:148px}.community-banner__skeleton[_ngcontent-%COMP%]{width:100%;height:148px}.community-banner__left[_ngcontent-%COMP%]{--logo-size: 155px;flex:1 1 100%;height:auto;min-height:148px;padding-right:14px;border-radius:16px}.community-banner__left[_ngcontent-%COMP%]:after{z-index:1;left:77%}.community-banner__image[_ngcontent-%COMP%]{display:none}.community-banner__copy[_ngcontent-%COMP%]{gap:0;
776max-width:200px}.community-banner__text[_ngcontent-%COMP%]{gap:6px}.community-banner__title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;line-height:24px;letter-spacing:-.15px}.community-banner__description[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.community-banner__cta[_ngcontent-%COMP%]{height:40px;padding:8px 16px;font-size:16px;font-weight:700;line-height:20px}}@media (max-width: 360px){.community-banner[_ngcontent-%COMP%]{height:auto;min-height:148px}.community-banner__skeleton[_ngcontent-%COMP%]{width:100%;height:148px}.community-banner__left[_ngcontent-%COMP%]{--logo-size: 138px;padding-right:0;height:auto;min-height:148px}.community-banner__copy[_ngcontent-%COMP%]{max-width:220px;margin-top:0;padding-top:12px}}'],changeDetection:0})}}return m})()},65972:(J,U,n)=>{"use strict";n.d(U,{A:()=>F});var t=n(54438),e=n(21413),a=n(23294),C=n(35335),y=n(56977),v=n(63003),l=n(49969);const h=[(0,l.wk)("close",(0,l.iF)({opacity:"0"})),(0,l.wk)("open",(0,l.iF)({opacity:"1"}))],u="250ms ease-out",d=(0,l.kY)("close => open",[(0,l.i0)(u),(0,l.P)("@modalContentFadeIn",(0,l.MA)())]),r=(0,l.kY)("close => open",[(0,l.P)(".animate",(0,l.iF)({opacity:0,transform:"translateY(10px)"})),(0,l.P)(".animate",(0,l.yc)("250ms",[(0,l.i0)(u,(0,l.iF)({opacity:1,transform:"translateY(0)"}))]))]),O=(0,l.hZ)("modalFadeIn",[...h,d]),p=(0,l.hZ)("modalContentFadeIn",[r]);var m=n(46765);const s=["modalContainer"],o=[[["","modal-header",""]],[["","modal-content",""]]],f=["[modal-header]","[modal-content]"];function M(G,w){if(1&G){const S=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(S);const E=t.XpG();return t.Njj(E.onClose())}),t.nrm(1,"app-icon",8),t.k0s()}if(2&G){const S=t.XpG();t.Y8G("disabled",S.disableTopCloseButton()),t.BMQ("data-sel","close-dialog-cta"),t.R7$(),t.Y8G("name","close")("width",16)("height",16)}}function x(G,w){if(1&G){const S=t.RV6();t.j41(0,"div")(1,"button",9),t.bIt("click",function(){t.eBV(S);const E=t.XpG();return t.Njj(E.onClose())}),t.EFF(2),t.k0s()()}if(2&G){const S=t.XpG();t.AVh("modal__actions",!S.stickyActions())("confirmation-modal__actions",!S.stickyActions())("modal__actions--sticky",S.stickyActions()),t.R7$(),t.AVh("modal-action-button--no-line",!S.showLineActions()),t.R7$(),t.SpI(" ",S.closeButtonLabel()," ")}}function b(G,w){if(1&G){const S=t.RV6();t.j41(0,"div",10),t.bIt("click",function(){t.eBV(S);const E=t.XpG();return t.Njj(E.backdropDismiss())})("keydown",function(E){t.eBV(S);const L=t.XpG();return t.Njj(L.onBackdropKeyDown(E))}),t.k0s()}}let F=(()=>{class G{constructor(){this.modalService=(0,t.WQX)(v.B),this.el=(0,t.WQX)(t.aKT),this.hasBackdrop=(0,t.hFB)(void 0),this.backdropDismisses=(0,t.hFB)(!0),this.closeButtonLabel=(0,t.hFB)(void 0),this.showTopCloseButton=(0,t.hFB)(!1),this.showActionSection=(0,t.hFB)(!0),this.animateModal=(0,t.hFB)(!1),this.mobileFullscreen=(0,t.hFB)(!1),this.stickyActions=(0,t.hFB)(!1),this.showLineActions=(0,t.hFB)(!0),this.mobileScrollable=(0,t.hFB)(!1),this.disableTopCloseButton=(0,t.hFB)(!1),this.initModal=(0,t.CGW)(),this.closeModal=(0,t.CGW)(),this.role="dialog",this.visible=!1,this.modalContainer=(0,t.ebz)("modalContainer"),this.fadeAnimationValue="",this.visibilityChanges=new t.bkB,this.ngUnsubscribe$=new e.B}ngOnInit(){this.modalService.add(this.el.nativeElement.id,this),this.visibilityChanges.pipe((0,a.F)(),(0,C.c)(50),(0,y.Q)(this.ngUnsubscribe$)).subscribe(S=>this.handleFocus(S)),this.animateModal()&&(this.fadeAnimationValue="close")}ngOnDestroy(){this.modalService&&this.modalService.remove(this.el.nativeElement.id),this.ngUnsubscribe$.complete(),this.ngUnsubscribe$.unsubscribe()}onClose(){this.hide()}backdropDismiss(){this.backdropDismisses()&&this.hide()}onBackdropKeyDown(S){("Enter"===S.key||" "===S.key)&&(S.preventDefault(),this.backdropDismiss())}show(){this.visible=!0,this.visibilityChanges.emit(this.visible),this.initModal.emit(),this.animateModal()&&(this.fadeAnimationValue="open"),setTimeout(()=>{this.handleFocus(!0)})}hide(){this.visible=!1,this.visibilityChanges.emit(this.visible),this.closeModal.emit(!0),this.animateModal()&&(this.fadeAnimationValue="close")}toggle(){this.visible=!this.visible,this.visibilityChanges.emit(this.visible)}handleFocus(S){const V=this.modalContainer();!V||!V.nativeElement||(S?V.nativeElement.focus():V.nativeElement.blur())}static{this.\u0275fac=function(V){return new(V||G)}}static{this.\u0275cmp=t.VBU({type:G,selectors:[["shared-feedback-modal"]],viewQuery:function(V,E){1&V&&t.wEZ(E.modalContainer,s,5),2&V&&t.NyB()},hostVars:3,hostBindings:function(V,E){2&V&&(t.BMQ("role",E.role),t.AVh("opened",E.visible))},inputs:{hasBackdrop:[1,"hasBackdrop"],backdropDismisses:[1,"backdropDismisses"],closeButtonLabel:[1,"closeButtonLabel"],showTopCloseButton:[1,"showTopCloseButton"],showActionSection:[1,"showActionSection"],animateModal:[1,"animateModal"],mobileFullscreen:[1,"mobileFullscreen"],stickyActions:[1,"stickyActions"],showLineA
776ctions:[1,"showLineActions"],mobileScrollable:[1,"mobileScrollable"],disableTopCloseButton:[1,"disableTopCloseButton"]},outputs:{initModal:"initModal",closeModal:"closeModal"},standalone:!0,features:[t.aNF],ngContentSelectors:f,decls:9,vars:11,consts:[["modalContainer",""],["tabindex","-1",1,"modal",3,"keydown.esc"],[1,"modal__close-button",3,"disabled"],[1,"modal__header"],[1,"modal__content"],[3,"modal__actions","confirmation-modal__actions","modal__actions--sticky"],["tabindex","0",1,"modal__backdrop"],[1,"modal__close-button",3,"click","disabled"],[3,"name","width","height"],["tabindex","0",1,"modal-action-button",3,"click"],["tabindex","0",1,"modal__backdrop",3,"click","keydown"]],template:function(V,E){if(1&V){const L=t.RV6();t.NAR(o),t.j41(0,"div",1,0),t.bIt("keydown.esc",function(){return t.eBV(L),t.Njj(E.onClose())}),t.DNE(2,M,2,5,"button",2),t.j41(3,"div",3),t.SdG(4),t.k0s(),t.j41(5,"section",4),t.SdG(6,1),t.k0s(),t.DNE(7,x,3,9,"div",5),t.k0s(),t.DNE(8,b,1,0,"div",6)}2&V&&(t.AVh("mobile-fullscreen",E.mobileFullscreen())("mobile-scrollable",E.mobileScrollable()),t.Y8G("@modalFadeIn",E.fadeAnimationValue),t.R7$(2),t.vxM(E.showTopCloseButton()?2:-1),t.R7$(3),t.AVh("modal__content--sticky",E.stickyActions()),t.Y8G("@modalContentFadeIn",E.fadeAnimationValue),t.R7$(2),t.vxM(E.showActionSection()?7:-1),t.R7$(),t.vxM(E.hasBackdrop()?8:-1))},dependencies:[m.R],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]{display:none;position:fixed;inset:0;z-index:1000;justify-content:center;align-items:center}.opened[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] .modal .modal__title{margin-top:0}[_nghost-%COMP%] .modal p{margin:0}.modal[_ngcontent-%COMP%]{z-index:2000;background-color:#fff;border-radius:4px;width:89.3333333333%;max-height:70vh;overflow-y:auto;position:relative}.modal__actions[_ngcontent-%COMP%]{border:0}.modal__actions--sticky[_ngcontent-%COMP%]{position:fixed;height:66px;width:89.3333333333%;text-align:center;z-index:1;background:#fff;cursor:pointer;border-bottom-left-radius:4px;border-bottom-right-radius:4px;bottom:calc(15vh - 60px);overflow:hidden}@media only screen and (width >= 320px) and (height = 568px){.modal[_ngcontent-%COMP%]{max-height:65vh}}.modal__close-button[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px;border:0;cursor:pointer;background-color:#fff}.modal__header[_ngcontent-%COMP%]{border-bottom:2px solid #d3d4d5;padding:0 20px;margin-bottom:0}.modal__content[_ngcontent-%COMP%]{margin:25px 20px;font-size:1.25rem}.modal__content--sticky[_ngcontent-%COMP%]{max-height:calc(100% - 130px)}.modal__title[_ngcontent-%COMP%]{font-size:1.375rem;margin:0}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.modal__backdrop[_ngcontent-%COMP%]{position:absolute!important}}.modal__backdrop[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.4;background-color:#000}.modal__backdrop--inverted[_ngcontent-%COMP%]{background-color:#f6f8fb;filter:blur(20px)}.modal-action-button[_ngcontent-%COMP%]{background-color:#fff;border:0;display:block;font-size:1.125rem;font-weight:600;color:#006af4;cursor:pointer;padding:22px;text-align:center;width:100%;border-top:2px solid #d3d4d5}.modal-action-button--no-line[_ngcontent-%COMP%]{border-top:0}.modal-action-button[_ngcontent-%COMP%]:hover{background-color:#f6f8fb}.modal-action-button--gray[_ngcontent-%COMP%]{color:#9da4ac}.modal--inverted[_ngcontent-%COMP%]{background-color:transparent}.modal--inverted[_ngcontent-%COMP%] .modal__close-button[_ngcontent-%COMP%]{color:#fff}.modal--inverted[_ngcontent-%COMP%] .modal__content[_ngcontent-%COMP%]{box-shadow:0 0 80px 122px #f6f8fb;background-color:#f6f8fb;border-radius:100%;text-align:center;max-width:50rem}.modal--size-small[_nghost-%COMP%] .modal[_ngcontent-%COMP%], .modal
776--size-small [_nghost-%COMP%] .modal[_ngcontent-%COMP%]{max-width:29.1875rem}@media all and (min-width: 840px){.modal[_ngcontent-%COMP%]{width:auto}}@media all and (max-width: 600px){.modal.mobile-fullscreen[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;max-height:100vh;overflow:hidden}.modal.mobile-fullscreen.mobile-scrollable[_ngcontent-%COMP%]{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}}"],data:{animation:[O,p]}})}}return G})()},46765:(J,U,n)=>{"use strict";n.d(U,{R:()=>G});var t=n(54438);function e(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",14)(2,"path",15),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function a(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",16),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function C(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",17)(2,"path",18)(3,"path",19)(4,"path",20)(5,"path",21),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function y(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",22),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function v(w,S){1&w&&(t.qSk(),t.j41(0,"svg",2),t.nrm(1,"path",23)(2,"path",24),t.k0s())}function l(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",25)(2,"path",26)(3,"path",27),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function h(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",3),t.nrm(1,"path",28),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function u(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",29),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function c(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",30)(2,"path",31),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function d(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",4),t.nrm(1,"path",32),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function r(w,S){1&w&&(t.qSk(),t.j41(0,"svg",5),t.nrm(1,"path",33)(2,"path",34)(3,"path",35),t.k0s())}function O(w,S){1&w&&(t.qSk(),t.j41(0,"svg",6),t.nrm(1,"path",36),t.k0s())}function p(w,S){1&w&&(t.qSk(),t.j41(0,"svg",7),t.nrm(1,"path",37),t.k0s())}function m(w,S){1&w&&(t.qSk(),t.j41(0,"svg",7),t.nrm(1,"path",38),t.k0s())}function s(w,S){1&w&&(t.qSk(),t.j41(0,"svg",8),t.nrm(1,"path",39),t.k0s())}function o(w,S){1&w&&(t.qSk(),t.j41(0,"svg",9),t.nrm(1,"path",40)(2,"path",41),t.k0s())}function f(w,S){1&w&&(t.qSk(),t.j41(0,"svg",5),t.nrm(1,"path",42)(2,"path",43)(3,"path",44),t.k0s())}function M(w,S){1&w&&(t.qSk(),t.j41(0,"svg",10),t.nrm(1,"path",45),t.k0s())}function x(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",11),t.nrm(1,"path",46),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function b(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",12),t.nrm(1,"path",47)(2,"path",48),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}function F(w,S){if(1&w&&(t.qSk(),t.j41(0,"svg",13),t.nrm(1,"path",49),t.k0s()),2&w){const V=t.XpG();t.BMQ("width",V.width())("height",V.height())}}let G=(()=>{class w{constructor(){this.name=t.hFB.required(),this.width=(0,t.hFB)(32),this.height=(0,t.hFB)(32),this.color=(0,t.hFB)(),this.isActive=(0,t.hFB)(),this.activeColor=(0,t.hFB)()}static{this.\u0275fac=function(E){return new(E||w)}}static{this.\u0275cmp=t.VBU({type:w,selectors:[["app-icon"]],inputs:{name:[1,"name"],width:[1,"width"],height:[1,"height"],color:[1,"color"],isActive:[1,"isActive"],activeColor:[1,"activeColor"]},standalone:!0,features:[t.aNF],decls:22,vars:5,consts:[[1,"icon"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32","fill","none"],["width","32","height","32","viewBox","0 0 32 32","fill","none","xmlns","http://www.w3.org/2000/svg"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 22 22","fill","none"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 71 70","fill","none"],["xmlns","http://www.w3.org/2000/svg","width","32","height","32","viewBox","0 0 32 32","fill","none"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["xmlns","http://www.w3.org/2000/svg","width","7","height","12","viewBox","0 0 7 12","fill","none"],["xmlns","http://www.w3.org/2000/svg","width","22","height","22","viewBox","0 0 22 22","fill","none"],["xmns","http://www.w3.org/2000/svg","width","32","height","32","viewBox","0 0 32 32","fill","none"],["xmlns","http://www.w3.org/2000/svg","width","9","height","16","viewBox","0 0 9 16","fill","none"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","none"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 16 16","fill","none"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 84 84","fill","none"],["d","M19.1113 16.9112C19.9364 16.086 20.4 14.9669 20.4 13.7999C20.4 12.633 19.9364 11.5139 19.1113 10.6887C18.2861 9.86356 17.167 9.39999 16.0001 9.39999C14.8331 9.39999 13.714 9.86356 12.8888 10.6887C12.0637 11.5139 11.6001 12.633 11.6001 13.7999C11.6001 14.9669 12.0637 16.086 12.8888 16.9112C13.714 17.7363 14.8331 18.1999 16.0001 18.1999C17.167 18.1999 18.2861 17.7363 19.1113 16.9112Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M5 15.9999C5 21.9244 9.6843 26.7556 15.5511 26.9909C15.6501 26.9964 15.7496 26.9997 15.8492 26.9997C15.8994 27.0001 15.9496 27.0001 15.9999 26.9997C22.0751 26.9997 26.9998 22.0751 26.9998 15.9999C26.9998 9.92464 22.0751 5 15.9999 5C9.92464 5 5 9.92464 5 15.9999ZM8.85935 22.2045C8.83102 22.4529 8.85901 22.7046 8.94126 22.9408C7.18403 21.1544 6.09999 18.7036 6.09999 15.9999C6.09999 10.5324 10.5324 6.09999 15.9999 6.09999C21.4674 6.09999 25.8998 10.5324 25.8998 15.9999C25.903 18.6013 24.8789 21.0988 23.0502 22.949C23.1363 22.7141 23.1676 22.4626 23.1417 22.2137C23.1159 21.9648 23.0336 21.7251 22.9011 21.5128C22.7686 21.3006 22.5894 21.1214 22.3771 20.9888C22.1649 20.8563 21.9252 20.7739 21.6764 20.748C17.4095 20.3063 14.6166 20.2634 10.3289 20.7381C10.0803 20.7659 9.84126 20.8493 9.62936 20.9821C9.41747 21.115 9.23822 21.2939 9.10492 21.5055C8.97162 21.7171 8.88768 21.956 8.85935 22.2045Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.7752 6.83137C11.5359 6.62595 11.2296 6.5142 10.9135 6.5173L10.906 6.51734H7.81679C7.63605 6.51756 7.45737 6.55531 7.29214 6.62815C7.1268 6.70104 6.97859 6.80743 6.8569 6.94048C6.73521 7.07352 6.6427 7.23031 6.58516 7.40081C6.52818 7.56962 6.50672 7.74829 6.52204 7.92566C6.84824 10.9816 7.89063 13.9181 9.56499 16.4976L9.56859 16.5032C11.0899 18.8926 13.1198 20.9185 15.5142 22.437L15.5201 22.4407C18.093 24.106 21.0212 25.1462 24.0699 25.478C24.2485 25.4933 24.4285 25.4716 24.5983 25.4143C24.7701 25.3563 24.9277 25.2632 25.0612 25.141C25.1946 25.0188 25.3009 24.8702 25.3734 24.7048C25.4458 24.5395 25.4829 24.3609 25.4821 24.1805L25.4821 24.1774V21.0939C25.4821 21.0876 25.4822 21.0813 25.4824 21.075C25.4903 20.7574 25.3809 20.4478 25.1748 20.205C24.9693 19.963 24.6818 19.8042 24.3666 19.759C23.3225 19.6213 22.2974 19.3663 21.3107 18.9989L21.309 18.9982C21.0759 18.9108 20.8226 18.8918 20.579 18.9437C20.336 18.9954 20.1132 19.1154 19.9366 19.2892C19.9361 19.2896 19.9357 19.29 19.9353 19.2904L18.6304 20.5928C18.389 20.8336 18.0166 20.8839 17.7201 20.7156C15.0231 19.1851 12.7899 16.9564 11.2561 14.2644C11.0868 13.9672 11.1373 13.5935 11.3794 13.3519L12.6857 12.0482C12.8597 11.872 12.9796 11.65 13.0312 11.4083C13.083 11.1661 13.0641 10.9141 12.9767 10.6822L12.9761 10.6805C12.6078 9.69551 12.3522 8.67217 12.2142 7.62993C12.1695 7.31986 12.0138 7.03609
77611.7752 6.83137ZM10.9026 5.0001C11.5846 4.99437 12.2458 5.23582 12.7634 5.68005C13.282 6.12518 13.6211 6.7436 13.7169 7.42021L13.7178 7.42719C13.8407 8.35689 14.0685 9.26975 14.397 10.1484C14.5864 10.6519 14.6274 11.1992 14.5149 11.7254C14.4024 12.2519 14.1411 12.7349 13.7621 13.1174L13.7591 13.1205L12.869 14.0088C14.1516 16.0792 15.8997 17.8236 17.9747 19.1035L18.8665 18.2135L18.8695 18.2105C19.2528 17.8323 19.7364 17.5718 20.2632 17.4597C20.7894 17.3477 21.3368 17.3884 21.8406 17.5772C22.7213 17.9051 23.6364 18.1326 24.5684 18.2553L24.5751 18.2562C25.2593 18.3525 25.8844 18.6965 26.3315 19.2231C26.7764 19.7471 27.014 20.4156 26.9994 21.1026V24.1758C27.0007 24.5674 26.9203 24.955 26.7631 25.3137C26.6058 25.6728 26.375 25.9952 26.0858 26.26C25.7965 26.5248 25.4551 26.7264 25.0835 26.8518C24.7119 26.9772 24.3181 27.0238 23.9275 26.9886C23.9229 26.9882 23.9184 26.9877 23.9138 26.9872C20.6282 26.6309 17.4719 25.5107 14.6985 23.7163C12.1185 22.0795 9.93075 19.8961 8.29053 17.3209C6.48616 14.5401 5.36318 11.3743 5.01262 8.07965C5.0122 8.0757 5.01181 8.07175 5.01145 8.06779C4.9762 7.67846 5.02256 7.28608 5.14757 6.91566C5.27257 6.54525 5.47346 6.20497 5.73734 5.91647C6.00122 5.62797 6.32231 5.39756 6.68012 5.23982C7.03792 5.08209 7.42465 5.00047 7.8157 5.0001L10.9026 5.0001Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.20183 8C8.24293 8 7.3801 8.58234 7.02139 9.47162C6.69865 10.2717 6.84219 11.1761 7.37717 11.834C6.37308 12.1642 5.6367 13.0472 5.50508 14.1128L5.00135 18.0553C4.99568 18.0997 5.00797 18.1446 5.03549 18.1799C5.06301 18.2152 5.10349 18.238 5.14793 18.2433L5.81969 18.324C5.91148 18.335 5.99492 18.2697 6.00635 18.178L6.49674 14.2415L6.49699 14.2392C6.59303 13.3738 7.32085 12.7167 8.19155 12.7093H10.2049C11.0738 12.7224 11.7988 13.377 11.9001 14.2403L11.9002 14.2415L12.3906 18.178C12.402 18.2697 12.4855 18.335 12.5773 18.324L13.2367 18.2448L13.0624 19.6087C13.0567 19.6531 13.069 19.6979 13.0966 19.7332C13.1241 19.7685 13.1646 19.7914 13.209 19.7967L13.7128 19.8572C13.8046 19.8682 13.888 19.8029 13.8995 19.7112L14.2673 16.7588L14.2675 16.7566C14.3372 16.1287 14.8652 15.6519 15.4969 15.6465H17.0064C17.6369 15.6561 18.1629 16.1312 18.2364 16.7576L18.2366 16.7588L18.6043 19.7112C18.6158 19.8029 18.6992 19.8682 18.791 19.8572L19.2948 19.7967C19.3392 19.7914 19.3797 19.7686 19.4072 19.7333C19.4347 19.6981 19.447 19.6533 19.4414 19.609L19.0686 16.6518C18.9704 15.8564 18.4319 15.1941 17.6924 14.9275C18.0727 14.4268 18.1689 13.7561 17.9287 13.1605C17.6533 12.4777 16.9907 12.0305 16.2544 12.0305C15.5181 12.0305 14.8556 12.4777 14.5802 13.1605C14.3399 13.7561 14.4361 14.4268 14.8164 14.9275C14.077 15.1941 13.5385 15.8566 13.4402 16.652L13.3287 17.5247L12.8986 14.1127C12.767 13.0469 12.0306 12.1642 11.0265 11.834C11.5615 11.1761 11.705 10.2717 11.3823 9.47162C11.0236 8.58234 10.1607 8 9.20183 8ZM7.85496 10.3581C7.85496 9.61613 8.45647 9.01462 9.19847 9.01462C9.94047 9.01462 10.542 9.61613 10.542 10.3581C10.542 11.1001 9.94047 11.7016 9.19847 11.7016C8.45647 11.7016 7.85496 11.1001 7.85496 10.3581ZM16.2519 12.8755C15.7186 12.8755 15.2863 13.3078 15.2863 13.8411C15.2863 14.3744 15.7186 14.8068 16.2519 14.8068C16.7852 14.8068 17.2176 14.3744 17.2176 13.8411C17.2176 13.3078 16.7852 12.8755 16.2519 12.8755Z","fill","currentColor"],["d","M10.7099 14.9798C10.6197 14.9798 10.5456 15.0511 10.5421 15.1413L10.26 22.4281C10.2465 22.65 10.0584 22.8206 9.83606 22.8125L8.56702 22.8124L8.56096 22.8126C8.33494 22.8208 8.14381 22.6471 8.1302 22.4215L7.85484 15.1682C7.85142 15.078 7.77729 15.0067 7.68702 15.0067H7.01527C6.96962 15.0067 6.92594 15.0253 6.89429 15.0581C6.86263 15.091 6.84572 15.1354 6.84745 15.181L7.12287 22.436L7.1229 22.4368C7.15587 23.207 7.79833 23.8095 8.56884 23.7932H9.82863C10.6074 23.8052 11.2499 23.1865 11.2674 22.4078L11.5495 15.1543C11.5513 15.1086 11.5344 15.0642 11.5027 15.0313C11.4711 14.9984 11.4274 14.9798 11.3817 14.9798H10.7099Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M23.3083 10.0153C22.4607 10.0153 21.698 10.53 21.3809 11.3161C21.0995 12.0138 21.2192 12.8012 21.6765 13.3807C20.8049 13.6793 20.1677 14.452 20.0528 15.3824L19.612 18.832C19.6064 18.8764 19.6187 18.9212 19.6462 18.9565C19.6737 18.9918 19.7142 19.0147 19.7586 19.02L20.3464 19.0906C20.4382 19.1016 20.5216 19.0363 20.5331 18.9446L20.9622 15.5002L20.9624 15.4979C21.0453 14.7512 21.6732 14.1843 22.4244 14.1779H24.1858C24.9355 14.1892 25.561 14.7541 25.6484 15.499L25.6485 15.5002L26.0776 18.9446C26.0891 19.0363 26.1725 19.1016 26.2643 19.0906L26.8521 19.02C26.8965 19.0147 26.9369 18.9919 26.9644 18.9566C26.9919 18.9214 27.0043 18.8766 26.9987 18.8323L26.5638 15.3823C26.4489 14.4518 25.811
7767 13.6793 24.94 13.3807C25.3974 12.8012 25.5171 12.0138 25.2356 11.3161C24.9186 10.53 24.1559 10.0153 23.3083 10.0153ZM22.1508 12.0996C22.1508 11.462 22.6677 10.945 23.3053 10.945C23.943 10.945 24.4599 11.462 24.4599 12.0996C24.4599 12.7373 23.943 13.2542 23.3053 13.2542C22.6677 13.2542 22.1508 12.7373 22.1508 12.0996Z","fill","currentColor"],["d","M24.6279 16.1226C24.5376 16.1226 24.4635 16.1939 24.46 16.284L24.2132 22.6598C24.202 22.8425 24.0471 22.9829 23.864 22.9762L22.7528 22.9761L22.7468 22.9763C22.5605 22.983 22.4029 22.8399 22.3916 22.654L22.1506 16.3077C22.1472 16.2175 22.0731 16.1461 21.9828 16.1461H21.395C21.3494 16.1461 21.3057 16.1647 21.2741 16.1976C21.2424 16.2305 21.2255 16.2748 21.2272 16.3204L21.4682 22.6685L21.4682 22.6693C21.4976 23.3546 22.0691 23.8907 22.7546 23.8763H23.8566C24.5494 23.8869 25.121 23.3365 25.1366 22.6437L25.3835 16.2971C25.3852 16.2514 25.3683 16.207 25.3367 16.1741C25.305 16.1412 25.2613 16.1226 25.2156 16.1226H24.6279Z","fill","currentColor"],["d","M17.2177 17.4268C17.2212 17.3367 17.2953 17.2654 17.3855 17.2654H17.8893C17.935 17.2654 17.9787 17.284 18.0103 17.3169C18.042 17.3498 18.0589 17.3942 18.0571 17.4399L17.8456 22.8797C17.8318 23.4865 17.3311 23.9686 16.7242 23.9594H15.7801C15.1796 23.9719 14.679 23.5022 14.6533 22.9019L14.6533 22.9011L14.4467 17.4599C14.445 17.4142 14.4619 17.3699 14.4935 17.337C14.5252 17.3041 14.5689 17.2855 14.6145 17.2855H15.1183C15.2086 17.2855 15.2827 17.3569 15.2861 17.4471L15.4926 22.8866C15.5017 23.0328 15.6257 23.1453 15.7723 23.14L15.7783 23.1398L16.7316 23.1399C16.8755 23.1452 16.9971 23.0349 17.0061 22.8915L17.2177 17.4268Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M24.381 9H7.61905C6.17259 9 5 10.1726 5 11.619V21.0476C5 22.4941 6.17259 23.6667 7.61905 23.6667H24.381C25.0756 23.6667 25.7417 23.3907 26.2329 22.8996C26.7241 22.4084 27 21.7422 27 21.0476V11.619C27 10.9244 26.7241 10.2583 26.2329 9.7671C25.7417 9.27593 25.0756 9 24.381 9ZM25.9524 21.0476C25.9524 21.9155 25.2488 22.619 24.381 22.619H7.61905C6.75117 22.619 6.04762 21.9155 6.04762 21.0476V15.2857H25.9524V21.0476ZM6.04762 14.2381H25.9524V11.619C25.9524 10.7512 25.2488 10.0476 24.381 10.0476H7.61905C6.75117 10.0476 6.04762 10.7512 6.04762 11.619V14.2381ZM16 19.4762H8.66667V18.4286H16V19.4762ZM19.1429 19.4762H23.3333V18.4286H19.1429V19.4762Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.25 21.75H24.75V9.25L7.25 9.25V21.75ZM7.25 23H24.75C25.4404 23 26 22.4404 26 21.75V9.25C26 8.55964 25.4404 8 24.75 8H7.25C6.55964 8 6 8.55964 6 9.25V21.75C6 22.4404 6.55964 23 7.25 23Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.03433 8.15269L15.5907 15.5682C15.8256 15.7718 16.1744 15.7718 16.4093 15.5682L24.9657 8.15269L25.7843 9.09731L17.228 16.5128C16.5233 17.1236 15.4767 17.1236 14.772 16.5128L6.21567 9.09731L7.03433 8.15269Z","fill","currentColor"],["d","M13.6462 14.4309C14.0801 14.4309 14.4319 14.7826 14.4319 15.2166V21.5047C14.4319 21.9387 14.0801 22.2904 13.6462 22.2904C13.2123 22.2904 12.8605 21.9387 12.8605 21.5047V15.2166C12.8605 14.7826 13.2123 14.4309 13.6462 14.4309Z","fill","#555F61"],["d","M19.1462 15.2166C19.1462 14.7826 18.7944 14.4309 18.3605 14.4309C17.9266 14.4309 17.5748 14.7826 17.5748 15.2166V21.5047C17.5748 21.9387 17.9266 22.2904 18.3605 22.2904C18.7944 22.2904 19.1462 21.9387 19.1462 21.5047V15.2166Z","fill","#555F61"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.2891 9.71429C11.2891 8.46398 11.7857 7.26488 12.6698 6.38078C13.5539 5.49668 14.753 5 16.0033 5C17.2536 5 18.4528 5.49668 19.3369 6.38078C20.221 7.26488 20.7176 8.46398 20.7176 9.71429H25.4319C25.8659 9.71429 26.2176 10.0661 26.2176 10.5C26.2176 10.9339 25.8659 11.2857 25.4319 11.2857H23.8605V24.6429C23.8605 25.268 23.6121 25.8676 23.1701 26.3096C22.7281 26.7516 22.1285 27 21.5033 27H10.5033C9.87811 27 9.27862 26.7515 8.83665 26.3097C8.39454 25.8676 8.14621 25.2679 8.14621 24.6429V11.2857H6.57478C6.14084 11.2857 5.78906 10.9339 5.78906 10.5C5.78906 10.0661 6.14084 9.71429 6.57478 9.71429H11.2891ZM13.781 7.49195C14.3704 6.90255 15.1698 6.57143 16.0033 6.57143C16.8369 6.57143 17.6363 6.90255 18.2257 7.49195C18.8151 8.08134 19.1462 8.88075 19.1462 9.71429H12.8605C12.8605 8.88075 13.1916 8.08134 13.781 7.49195ZM9.71763 11.2857V24.6429C9.71763 24.8512 9.80044 25.0511 9.9477 25.1984C10.0951 25.3458 10.295 25.4286 10.5033 25.4286H21.5033C21.7117 25.4286 21.9116 25.3457 22.0589 25.1984C22.2062 25.0511 22.2891 24.8512 22.2891 24.6429V11.2857H9.71763Z","fill","#555F61"],["d","M22 11.0313C21.9994 11.4 21.8631 11.7533 21.6209 12.0135L13.2091 21.0522C12.7048 21.5941 11.8885 21.5926 11.3859 21.0489C10.8833 20.5052 10.8846 19.6252 11.3889 19.0833L17.595 12.4147L1.28733 12.3892C0.575328 12.3881 -0.00103046 11.7649 3.3576e-06 10.9973C0.00103336 10.2297 0.579063 9.60829 1.29107 9.6094L17.6018 9.63486L11.3859 2.91113C10.8833 2.36743 10.8846 1.48739 11.3889 0.945501C11.8932 0.403611 12.7095 0.405074 13.2121 0.948769L21.6239 10.0478C21.8653 10.3089 22.0006 10.6627 22 11.0313Z","fill","currentColor"],["d","M12.8571 24.1741L5 16.3169L7.21571 14.1012L12.8571 19.7269L24.7843 7.7998L27 10.0312L12.8571 24.1741Z","fill","#059661"],["d","M11.7219 10.5001L10.5001 11.7219L20.2774 21.4999L21.4999 20.2774L11.7219 10.5001Z","fill","#D81A21"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.78 5.81929C13.1186 5.26967 14.553 4.99124 16 5.00021C17.4471 4.99124 18.8814 5.26967 20.2201 5.81929C21.5586 6.36885 22.7748 7.17877 23.7981 8.20199C24.8213 9.22521 25.6311 10.4414 26.1808 11.78C26.7304 13.1186 27.0088 14.553 26.9998 16C27.0088 17.447 26.7304 18.8814 26.1808 20.22C25.6311 21.5587 24.8213 22.7748 23.7981 23.7981C22.7748 24.8213 21.5586 25.6312 20.2201 26.1808C18.8814 26.7304 17.4471 27.0088 16 26.9998C14.553 27.0088 13.1186 26.7304 11.78 26.1808C10.4414 25.6312 9.22521 24.8213 8.20199 23.7981C7.17877 22.7748 6.36885 21.5587 5.81929 20.22C5.26967 18.8814 4.99124 17.447 5.00021 16C4.99124 14.553 5.26967 13.1186 5.81929 11.78C6.36885 10.4414 7.17877 9.22521 8.20199 8.20199C9.22521 7.17877 10.4414 6.36885 11.78 5.81929ZM10.7619 23.8394C12.3124 24.8754 14.1353 25.4284 16 25.4284C18.4984 25.4211 20.8923 24.4255 22.6589 22.6589C24.4255 20.8923 25.4212 18.4983 25.4284 16C25.4284 14.1353 24.8755 12.3124 23.8394 10.7619C22.8034 9.2114 21.3309 8.00293 19.6081 7.28931C17.8853 6.57568 15.9895 6.38899 14.1606 6.75278C12.3317 7.11657 10.6517 8.01453 9.33316 9.33316C8.01453 10.6517 7.11657 12.3317 6.75278 14.1606C6.38899 15.9896 6.57568 17.8853 7.28931 19.6081C8.00293 21.3309 9.2114 22.8034
77610.7619 23.8394Z","fill","#D81A21"],["d","M58.976 54.282C58.2146 53.5332 57.0056 53.5549 56.2727 54.3377C55.325 55.3526 53.6474 55.3511 52.6998 54.3393C52.4114 54.0298 52.0975 53.7591 51.7656 53.5178C51.8602 46.8653 53.1518 44.2136 55.8702 38.6813C56.3553 37.6927 56.881 36.6252 57.4441 35.4401L58.0869 34.0895C58.3332 33.5713 58.3468 32.9695 58.1245 32.4404C57.9022 31.9113 57.4652 31.509 56.9305 31.3404L49.6255 29.0352L49.627 19.8378C49.627 19.3165 49.4257 18.8152 49.0683 18.4455C48.7093 18.0773 48.2227 17.8684 47.7166 17.8684L37.4109 17.8669V12.9054C37.4109 11.8178 36.5563 10.9375 35.5005 10.9375C34.4447 10.9375 33.5901 11.8193 33.5901 12.9054V17.8669L23.2859 17.8653C22.7797 17.8653 22.2931 18.0726 21.9342 18.4424C21.5768 18.8121 21.374 19.3134 21.374 19.8348V29.0321L14.069 31.3357C13.5343 31.5044 13.0973 31.9066 12.875 32.4342C12.6527 32.9633 12.6662 33.5651 12.9125 34.0834L13.5538 35.434C14.117 36.619 14.6412 37.685 15.1248 38.672C17.8416 44.2074 19.1347 46.8607 19.2279 53.5193C18.8974 53.7591 18.5851 54.0283 18.2982 54.3362C17.352 55.3541 15.6714 55.3541 14.7268 54.3362C13.9939 53.5518 12.7849 53.5301 12.0249 54.2805C11.2635 55.0339 11.2395 56.2808 11.9694 57.0652C13.1709 58.3524 14.7839 59.0625 16.5125 59.0625C18.2411 59.0625 19.8541 58.3524 21.0556 57.0637C22.0018 56.0488 23.6809 56.0472 24.627 57.0652C25.8285 58.3524 27.4415 59.0625 29.1702 59.0625C30.8988 59.0625 32.5133 58.3524 33.7133 57.0652C34.661 56.0503 36.3385 56.0519 37.2862 57.0637C38.4877 58.3524 40.1007 59.0625 41.8293 59.0625C43.5565 59.0625 45.171 58.3524 46.3709 57.0637C47.3201 56.0472 48.9962 56.0472 49.9424 57.0652C51.1454 58.3524 52.7583 59.0625 54.4855 59.0625C56.2126 59.0625 57.8271 58.3524 59.0286 57.0652C59.76 56.2824 59.7375 55.0355 58.976 54.282ZM25.1947 21.8042L35.4975 21.8057L45.8047 21.8073L45.8032 27.8301L36.0577 24.7545C36.0337 24.7467 36.0111 24.7545 35.9871 24.7467C35.7738 24.6879 35.5546 24.6601 35.3338 24.6802C35.2947 24.6833 35.2587 24.6957 35.2196 24.7019C35.125 24.7158 35.0319 24.7251 34.9388 24.7545L25.1932 27.827L25.1947 21.8042ZM27.3829 54.3393C26.225 53.097 24.6796 52.407 23.02 52.359C22.7767 45.558 21.2073 42.3417 18.534 36.8975C18.157 36.1286 17.7545 35.3117 17.3295 34.4253L33.5871 29.2982L33.5841 52.6777C32.6019 53.001 31.6948 53.5441 30.9544 54.3377C30.0097 55.3557 28.3291 55.3541 27.3829 54.3393ZM43.6135 54.3393C42.6644 55.3541 40.9883 55.3526 40.0421 54.3377C39.3002 53.5441 38.3916 52.9995 37.4064 52.6762L37.4094 29.2982L53.667 34.4284C53.2404 35.3148 52.8379 36.1332 52.4595 36.9021C49.7862 42.3448 48.2167 45.5596 47.9719 52.359C46.3154 52.4085 44.7715 53.097 43.6135 54.3393Z","fill","#005EDC"],["d","M15.9999 11.7968C16.539 11.7968 16.9763 12.2339 16.9763 12.7733L16.7267 18.5968C16.7018 19.1235 16.2924 19.3237 15.9999 19.3237C15.6722 19.3237 15.3017 19.1509 15.273 18.5968L15.0234 12.7733C15.0234 12.2339 15.4607 11.7968 15.9999 11.7968Z","fill","currentColor"],["d","M15.9999 22.6405C16.3291 22.6405 16.6511 22.5082 16.881 22.276C17.1156 22.0439 17.2479 21.7219 17.2479 21.3924C17.2479 21.0655 17.1156 20.7435 16.881 20.5113C16.6511 20.2792 16.3291 20.1444 15.9999 20.1444C15.6704 20.1444 15.3484 20.2792 15.1163 20.5113C14.8842 20.7435 14.7519 21.063 14.7519 21.3924C14.7519 21.7219 14.8842 22.0439 15.1163 22.276C15.3484 22.5082 15.6704 22.6405 15.9999 22.6405Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9156 7.20174C14.3452 6.45806 15.1387 6 15.9974 6C16.8562 6 17.6497 6.45806 18.0792 7.20174L26.6005 21.9614C26.8532 22.3422 26.9997 22.7994 27 23.2882C27 24.6157 25.9239 25.6923 24.5963 25.6923H7.40372C6.54497 25.6923 5.75146 25.2343 5.32194 24.4906C4.89276 23.7469 4.89265 22.8306 5.32183 22.087L13.9156 7.20174ZM15.0525 7.85833L6.45889 22.7431C6.26412 23.0807 6.26408 23.4966 6.45889 23.8342C6.65391 24.1717 7.01402 24.3795 7.40372 24.3795H24.5953C25.1976 24.3795 25.6869 23.8914 25.6872 23.2891C25.687 23.0608 25.6179 22.8511 25.5001 22.6775L25.4866 22.6577L16.9424 7.85833C16.7474 7.52071 16.3872 7.31282 15.9974 7.31282C15.6077 7.31282 15.2475 7.52077 15.0525 7.85833Z","fill","currentColor"],["d","M3.46323 2.25105C3.1285 1.91632 2.58579 1.91632 2.25105 2.25105C1.91632 2.58579 1.91632 3.1285 2.25105 3.46323L6.78782 8L2.25105 12.5368C1.91632 12.8715 1.91632 13.4142 2.25105 13.7489C2.58579 14.0837 3.1285 14.0837 3.46323 13.7489L8 9.21218L12.5368 13.7489C12.8715 14.0837 13.4142 14.0837 13.7489 13.7489C14.0837 13.4142 14.0837 12.8715 13.7489 12.5368L9.21218 8L13.7489 3.46323C14.0837 3.1285 14.0837 2.58579 13.7489 2.25105C13.4142 1.91632 12.8715 1.91632 12.5368 2.25105L8 6.78782L3.46323 2.25105Z","fill","#005EDC"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.00003 0.25165C6.43238 0.625127 6.48011 1.27838 6.10663 1.71074L2.40148 6L6.10663 10.2893C6.48011 10.7216 6.43238 11.3749 6.00003 11.7483C5.56767 12.1218 4.91442 12.0741 4.54094 11.6417L0.251633 6.67624C-0.083878 6.28784 -0.083878 5.71216 0.251633 5.32376L4.54094 0.358258C4.91442 -0.0740967 5.56767 -0.121826 6.00003 0.25165Z","fill","#005EDC"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.999969 11.7483C0.567613 11.3749 0.51988 10.7216 0.893358 10.2893L4.59851 6L0.893358 1.71074C0.51988 1.27838 0.567613 0.625127 0.999969 0.25165C1.43232 -0.121826 2.08557 -0.0740967 2.45905 0.358258L6.74836 5.32376C7.08387 5.71216 7.08387 6.28784 6.74836 6.67624L2.45905 11.6417C2.08557 12.0741 1.43232 12.1218 0.999969 11.7483Z","fill","currentColor"],["d","M14.5971 2.48769C16.2737 4.16563 17.1116 6.18817 17.1111 8.55556L14.6667 8.55501C14.667 6.83748 14.0876 5.43644 12.8686 4.21618C11.6717 3.02056 10.2816 2.44425 8.55583 2.44444C6.83436 2.44444 5.43245 3.01859 4.21621 4.21621C3.01859 5.43245 2.44444 6.83409 2.44444 8.55556C2.44425 10.2813 3.02056 11.6717 4.21618 12.8686C5.43644 14.0876 6.83748 14.667 8.55501 14.6667H8.55637C10.2741 14.6672 11.6612 14.0884 12.8598 12.8775L12.8686 12.8686L12.8775 12.8598C14.0884 11.6612 14.6672 10.2741 14.6667 8.55637L17.1111 8.55556C17.1118 10.5079 16.5423 12.2196 15.4024 13.6905C15.4472 13.7243 15.4901 13.7616 15.5309 13.8024L21.642 19.9135C22.1193 20.3908 22.1193 21.1647 21.642 21.642C21.1647 22.1193 20.3908 22.1193 19.9135 21.642L13.8024 15.5309C13.7616 15.4901 13.7243 15.4472 13.6905 15.4024C12.2196 16.5423 10.5079 17.1118 8.55556 17.1111C6.18817 17.1116 4.16563 16.2737 2.48769 14.5971C0.828967 12.9371 -0.000263042 10.9232 6.259e-08 8.55556C6.259e-08 6.18843 0.829231 4.16563 2.48769 2.48769C4.16563 0.829231 6.18843 6.259e-08 8.55556 6.259e-08C10.9232 -0.000263042 12.9371 0.828967 14.5971 2.48769Z","fill","#061556"],["d","M16.9322 10.0339C16.9322 9.51905 16.5148 9.10169 16 9.10169C15.4852 9.10169 15.0678 9.51905 15.0678 10.0339V16.9943C15.0678 17.3461 15.2658 17.6678 15.5797 17.8264C15.8936 17.985 16.2701 17.9534 16.5532 17.7447L20.5306 14.8123C20.945 14.5068 21.0332 13.9232 20.7277 13.5088C20.4222 13.0944 19.8386 13.0062 19.4242 13.3117L16.9322 15.1489V10.0339Z","fill","#059661"],["fill-rule","evenodd","clip-rule","evenodd","d","M16 5C9.89234 5 5 9.89234 5 16C5 22.1077 9.89234 27 16 27C22.1077 27 27 22.1077 27 16C27 9.89234 22.1077 5 16 5ZM7.11299 16C7.11299 11.0593 11.0593 7.11299 16 7.11299C20.9407 7.11299 24.887 11.0593 24.887 16C24.887 20.9407 20.9407 24.887 16 24.887C11.0593 24.887 7.11299 20.9407 7.11299 16Z","fill","#059661"],["d","M17.1002 21.5001H14.9002V14.9001H17.1002V21.5001Z","fill","#0092BA"],["d","M14.9002 12.7H17.1002V10.5H14.9002V12.7Z","fill","#0092BA"],["fill-rule","evenodd","clip-rule","evenodd","d","M5 16C5 9.928 9.928 5 16 5C22.072 5 27 9.928 27 16C27 22.072 22.072 27 16 27C9.928 27 5 22.072 5 16ZM16 6.375C10.6874 6.375 6.375 10.6874 6.375 16C6.375 21.3126 10.6874 25.625 16 25.625C21.3126 25.625 25.625 21.3126 25.625 16C25.625 10.6874 21.3126 6.375 16 6.375Z","fill","#0092BA"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.00004 0.335534C8.57651 0.833503 8.64015 1.70451 8.14218 2.28098L3.20197 8L8.14218 13.719C8.64015 14.2955 8.57651 15.166
7765 8.00003 15.6645C7.42356 16.1624 6.55256 16.0988 6.05459 15.5223L0.335511 8.90165C-0.111837 8.38378 -0.111837 7.61622 0.335511 7.09835L6.05459 0.477677C6.55256 -0.0987955 7.42356 -0.162435 8.00004 0.335534Z","fill","currentColor"],["d","M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z","fill","#E53935"],["d","M8 4.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM8.5 5.5h-1A.5.5 0 0 0 7 6v1H5.5a.5.5 0 0 0 0 1H7v5.5a.5.5 0 0 0 1 0V8h1.5a.5.5 0 0 0 0-1H8.5V6a.5.5 0 0 0-.5-.5z","fill","currentColor"],["d","M14 10a.5.5 0 0 0-.5.5c0 1.93-2.46 3.5-5.5 3.5s-5.5-1.57-5.5-3.5a.5.5 0 0 0-1 0c0 2.49 2.91 4.5 6.5 4.5s6.5-2.01 6.5-4.5a.5.5 0 0 0-.5-.5z","fill","currentColor"],["d","M48.707 21.5518C54.3111 15.5046 63.7311 15.4392 69.6963 21.6201C75.4651 27.9214 75.3951 38.0403 69.7207 43.9453L42.1152 72.6699C41.5342 72.0653 40.8532 71.3557 40.0928 70.5645C37.5603 67.9291 34.1491 64.3796 30.6348 60.7227C23.606 53.4086 16.1639 45.6645 14.5117 43.9453L14.4893 43.9219L14.4648 43.8984L14.1914 43.6182C8.53654 37.6836 8.56486 27.8328 14.5117 21.6445L14.5352 21.6211L14.5576 21.5957C20.152 15.5099 29.5891 15.4249 35.5693 21.6006C35.5835 21.6152 35.598 21.6296 35.6123 21.6445L39.9531 26.1621L42.1162 28.4131L44.2793 26.1621L48.6201 21.6445L48.6436 21.6201L48.666 21.5957C48.6794 21.5812 48.6932 21.5667 48.707 21.5518Z","stroke","#B0CDF4","stroke-width","6","stroke-miterlimit","10","stroke-linecap","round"]],template:function(E,L){if(1&E&&(t.j41(0,"div",0),t.DNE(1,e,3,2,":svg:svg",1)(2,a,2,2,":svg:svg",1)(3,C,6,2,":svg:svg",1)(4,y,2,2,":svg:svg",1)(5,v,3,0,":svg:svg",2)(6,l,4,2,":svg:svg",1)(7,h,2,2,":svg:svg",3)(8,u,2,2,":svg:svg",1)(9,c,3,2,":svg:svg",1)(10,d,2,2,":svg:svg",4)(11,r,4,0,":svg:svg",5)(12,O,2,0,":svg:svg",6)(13,p,2,0,":svg:svg",7)(14,m,2,0,":svg:svg",7)(15,s,2,0,":svg:svg",8)(16,o,3,0,":svg:svg",9)(17,f,4,0,":svg:svg",5)(18,M,2,0,":svg:svg",10)(19,x,2,2,":svg:svg",11)(20,b,3,2,":svg:svg",12)(21,F,2,2,":svg:svg",13),t.k0s()),2&E){let D;t.xc7("color",L.isActive()?L.activeColor():L.color()),t.AVh("selected",L.isActive()),t.R7$(),t.vxM("signin"===(D=L.name())?1:"account"===D?2:"guest"===D?3:"payment"===D?4:"notification"===D?5:"trash"===D?6:"arrow"===D?7:"success"===D?8:"error"===D?9:"ship"===D?10:"warning"===D?11:"close"===D?12:"arrow-left"===D?13:"arrow-right"===D?14:"search"===D?15:"schedule"===D?16:"information"===D?17:"chevron-left"===D?18:"heart-filled"===D?19:"anchor"===D?20:"heart"===D?21:-1)}},styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.icon[_ngcontent-%COMP%]{display:flex;justify-content:center;color:#666768}.icon.selected[_ngcontent-%COMP%]{color:#002859}"],changeDetection:0})}}return w})()},89469:(J,U,n)=>{"use strict";n.d(U,{UD:()=>c,_f:()=>Ee._,fw:()=>C,p8:()=>bt,PY:()=>K,vc:()=>vn,Ps:()=>et,os:()=>Tt,Rl:()=>f.R,Sj:()=>V.S,MC:()=>H,tu:()=>X,Mr:()=>W,pr:()=>pn,VU:()=>$,zf:()=>T.z,in:()=>L,A1:()=>D.A,Y2:()=>Lt,K_:()=>Et,kc:()=>it,vJ:()=>S,Tq:()=>Kt,Ml:()=>Bt});var t=n(60177),e=n(54438),a=n(68018);let C=(()=>{class R{constructor(){this.title=(0,e.hFB)()}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-avatar"]],inputs:{title:[1,"title"]},standalone:!0,features:[e.aNF],decls:7,vars:6,consts:[[1,"app-heading-text"],["tabindex","0",1,"app-heading-text__text"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"span"),e.EFF(5),e.nI1(6,"titlecase"),e.k0s()()()),2&A&&(e.R7$(2),e.SpI("",e.bMT(3,2,"COMMON.GREETING")," "),e.R7$(3),e.JRh(e.bMT(6,4,P.title())))},dependencies:[a.h,a.D9,t.MD,t.PV],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.app-heading-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.app-heading-text__image[_ngcontent-%COMP%]{border-radius:50%;height:131px;width:132px;box-shadow:0 0 #000;display:block}.app-heading-text__text[_ngcontent-%COMP%]{margin:0;color:#002859;font-size:36px;font-style:normal;font-weight:600;line-height:48px}@media screen and (max-width: 768px){.app-heading-text__text[_ngcontent-%COMP%]{font-size:30px;line-height:40px}}@media screen and (max-width: 480px){.app-heading-text__text[_ngcontent-%COMP%]{text-align:center}}"],changeDetection:0})}}return R})();var y=n(30803);function v(R,gt){if(1&R){const i=e.RV6();e.j41(0,"a",3),e.bIt("click",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.onCardClick())}),e.eu8(1,4),e.k0s()}if(2&R){const i=e.XpG(),A=e.sdS(3);e.Y8G("href",i.card().link,e.B4B),e.R7$(),e.Y8G("ngTemplateOutlet",A)}}function l(R,gt){if(1&R){const i=e.RV6();e.j41(0,"a",5),e.bIt("click",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.onCardClick())}),e.eu8(1,4),e.k0s()}if(2&R){const i=e.XpG(),A=e.sdS(3);
776e.Y8G("routerLink",i.card().link),e.R7$(),e.Y8G("ngTemplateOutlet",A)}}function h(R,gt){if(1&R&&(e.j41(0,"div",11),e.EFF(1),e.k0s()),2&R){const i=e.XpG(2);e.R7$(),e.SpI(" ",i.card().badge," ")}}function u(R,gt){if(1&R&&(e.j41(0,"div",6),e.nrm(1,"img",7),e.k0s(),e.j41(2,"div",8)(3,"div",9)(4,"h3",10),e.EFF(5),e.k0s(),e.DNE(6,h,2,1,"div",11),e.k0s(),e.j41(7,"p",12),e.EFF(8),e.k0s()(),e.nrm(9,"div",13)),2&R){const i=e.XpG();e.R7$(),e.Y8G("src",i.card().image,e.B4B)("alt",i.card().title),e.R7$(4),e.JRh(i.card().title),e.R7$(),e.vxM(void 0!==i.card().badge?6:-1),e.R7$(2),e.JRh(i.card().description)}}let c=(()=>{class R{constructor(){this.card=e.hFB.required(),this.cardClick=(0,e.CGW)()}onCardClick(){this.cardClick.emit(this.card())}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-action-card"]],inputs:{card:[1,"card"]},outputs:{cardClick:"cardClick"},standalone:!0,features:[e.aNF],decls:4,vars:1,consts:[["MyCard",""],[1,"feature-card",3,"href"],[1,"feature-card",3,"routerLink"],[1,"feature-card",3,"click","href"],[3,"ngTemplateOutlet"],[1,"feature-card",3,"click","routerLink"],[1,"feature-card__icon"],[3,"src","alt"],[1,"feature-card__content"],[1,"feature-card__header"],[1,"feature-card__title"],[1,"feature-card__badge"],[1,"feature-card__description"],[1,"feature-card__arrow"]],template:function(A,P){1&A&&e.DNE(0,v,2,2,"a",1)(1,l,2,2,"a",2)(2,u,10,5,"ng-template",null,0,e.C5r),2&A&&e.vxM(P.card().isExternalLink?0:1)},dependencies:[y.Wk,t.T3],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.feature-card[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;padding:0 24px;border-radius:4px;height:122px;box-shadow:0 2px 4px #35363726;transition:.3s ease;cursor:pointer}.feature-card[_ngcontent-%COMP%]:hover{box-shadow:0 6px 12px #00000026}.feature-card__icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:48px;height:48px;background-size:cover}.feature-card__content[_ngcontent-%COMP%]{flex:1;margin-left:16px}.feature-card__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:13px}.feature-card__title[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:600;font-style:normal;color:#002859;line-height:32px;letter-spacing:0}.feature-card__description[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:400;font-style:normal;color:#535455;line-height:32px;letter-spacing:0}.feature-card__badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:30px;height:25px;border-radius:45%;background-color:#f8e7fc;border:1px solid #ebb5f5;color:#68097b;font-size:14px;font-weight:500}.feature-card__arrow[_ngcontent-%COMP%]{width:32px;height:32px;background-image:url(/myaccount/assets/images/celebrity/icons/arrow.svg);background-size:cover}@media screen and (max-width: 768px){.feature-card__title[_ngcontent-%COMP%]{font-size:20px}.feature-card__description[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.feature-card__arrow[_ngcontent-%COMP%]{width:16px;height:16px}}@media screen and (max-width: 480px){.feature-card[_ngcontent-%COMP%]{padding:0 16px;height:80px}.feature-card__icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.feature-card__content[_ngcontent-%COMP%]{margin-left:12px}}@media screen and (max-width: 430px){.feature-card[_ngcontent-%COMP%]{height:100px}}"],changeDetection:0})}}return R})();var d=n(54307),r=n(49969);const O=(0,r.hZ)("slideIn",[(0,r.kY)(":enter",[(0,r.Os)([(0,r.iF)({opacity:0,transform:"translateY(-10px)"}),(0,r.i0)("200ms ease-out",(0,r.iF)({opacity:1,transform:"translateY(0)"})),(0,r.P)("@progressAnimation",(0,r.MA)())])])]),p=(0,r.hZ)("fadeOut",[(0,r.kY)(":leave",[(0,r.i0)("100ms ease-in",(0,r.iF)({opacity:0,transform:"translateY(-10px)"}))])]),m=(0,r.hZ)("progressAnimation",[(0,r.kY)("void => *",[(0,r.iF)({width:"0%"}),(0,r.i0)("{{ duration }}ms linear",(0,r.iF)({width:"100%"}))])]),s=(0,r.hZ)("slideInRight",[(0,r.kY)(":enter",[(0,r.iF)({transform:"translateX(100%)"}),(0,r.i0)("200ms ease-out",(0,r.iF)({transform:"translateX(0)"}))]),(0,r.kY)(":leave",[(0,r.i0)("200ms ease-in",(0,r.iF)({transform:"translateX(100%)"}))])]),o=(0,r.hZ)("fadeIn",[(0,r.kY)(":enter",[(0,r.iF)({opacity:0}
776),(0,r.i0)("200ms ease-out",(0,r.iF)({opacity:1}))]),(0,r.kY)(":leave",[(0,r.i0)("200ms ease-in",(0,r.iF)({opacity:0}))])]);var f=n(46765);const M=R=>({"toast-progress--error":R}),x=R=>({duration:R}),b=R=>({value:"",params:R});function F(R,gt){1&R&&e.nrm(0,"app-icon",3),2&R&&e.Y8G("name","success")}function G(R,gt){1&R&&e.nrm(0,"app-icon",3),2&R&&e.Y8G("name","error")}function w(R,gt){if(1&R){const i=e.RV6();e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.qex(3),e.DNE(4,F,1,1,"app-icon",3)(5,G,1,1,"app-icon",3),e.bVm(),e.k0s(),e.nrm(6,"div",4),e.j41(7,"button",5),e.bIt("click",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.onClose())}),e.nrm(8,"app-icon",3),e.k0s()(),e.j41(9,"div",6)(10,"div",7),e.bIt("@progressAnimation.done",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.onClose())}),e.k0s()()()}if(2&R){let i;const A=e.XpG();e.Y8G("@slideIn",void 0)("@fadeOut",void 0)("appAutoFocus",A.toastAlertState().visible)("focusDelay",A.autoFocusDelay),e.R7$(4),e.vxM("success"===(i=A.toastAlertState().toastType)?4:"error"===i?5:-1),e.R7$(2),e.Y8G("innerHTML",A.toastAlertState().message,e.npT),e.R7$(2),e.Y8G("name","close"),e.R7$(),e.Y8G("ngClass",e.eq3(9,M,"error"===A.toastAlertState().toastType)),e.R7$(),e.Y8G("@progressAnimation",e.eq3(13,b,e.eq3(11,x,A.duration())))}}let S=(()=>{class R{constructor(){this.autoFocusDelay=100,this.toastAlertState=e.hFB.required(),this.closed=(0,e.CGW)(),this.duration=(0,e.EWP)(()=>this.toastAlertState().duration)}onClose(){this.toastAlertState().visible&&this.closed.emit()}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["shared-toast-alert"]],inputs:{toastAlertState:[1,"toastAlertState"]},outputs:{closed:"closed"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["role","alert","tabindex","0",1,"container-toast-alert",3,"appAutoFocus","focusDelay"],[1,"toast-alert"],[1,"toast-alert__icon"],[3,"name"],["tabindex","0",1,"toast-alert__text",3,"innerHTML"],["aria-label","Close notification",1,"toast-alert__close",3,"click"],[1,"toast-progress",3,"ngClass"],[1,"toast-progress__bar"]],template:function(A,P){1&A&&e.DNE(0,w,11,15,"div",0),2&A&&e.vxM(P.toastAlertState().visible?0:-1)},dependencies:[t.MD,t.YU,f.R,d.N5],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.container-toast-alert[_ngcontent-%COMP%]{height:76px;display:flex;justify-content:flex-end;position:fixed;top:70px;right:50px;z-index:9999}@media screen and (max-width: 500px){.container-toast-alert[_ngcontent-%COMP%]{top:50px;left:18px;right:18px}}.toast-alert[_ngcontent-%COMP%]{display:flex;position:relative;width:100%;height:64px;outline:none;box-shadow:0 2px 4px #06155626;border-radius:4px 4px 0 0;align-items:center;gap:12px;background-color:#fff}.toast-alert__icon[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;margin-left:16px}.toast-alert__text[_ngcontent-%COMP%]{font-size:16px;font-weight:600;font-style:normal;line-height:24px;color:#151617;min-width:288px;min-height:32px;display:flex;align-items:center;padding-right:25px}.toast-alert__close[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;padding:2px;background:none;border:none;cursor:pointer}.toast-progress[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;height:12px;background-color:#05a56b;border-radius:0 0 4px 4px}.toast-progress__bar[_ngcontent-%COMP%]{height:100%;background-color:#035b3b;border-radius:0 0 0 4px}.toast-progress--error[_ngcontent-%COMP%]{background-color:#ed1d24}.toast-progress--error[_ngcontent-%COMP%] .toast-progress__bar[_ngcontent-%COMP%]{background-color:#821014}"],data:{animation:[O,p,m]},changeDetection:0})}}return R})();var V=n(1573);function E(R,gt){1&R&&e.nrm(0,"div",1)}let L=(()=>{class R{constructor(){this.itemSelected=(0,e.CGW)(),this.item=e.hFB.required(),this.first=e.hFB.required(),this.last=e.hFB.required()}selectItem(i){this.itemSelected.emit(i)}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-nagivation-menu-item"]],inputs:{item:[1,"item"],first:[1,"first"],last:[1,"last"]},outputs:{itemSelected:"itemSelected"},standalone:!0,features:[e.aNF],decls:8,vars:12,consts:[[1,"menu-item",3,"click","routerLink"],[1,"menu-item__bar"],[3,"name","isActive"],[1,"menu-item__info"],[1,"menu-item__title"],[1,"menu-item__subtitle"]],template:function(A,P){1&A&&(e.j41(0,"a",0),e.bIt("click",function(){return P.selectItem(P.item().link)}),e.DNE(1,E,1,0,"div",1),e.nrm(2,"app-icon",2),e.j41(3,"div",3)(4,"span",4),e.EFF(5),e.k0s(),e.j41(6,"span",5),e.EFF(7),e.k0s()()()),2&A&&(e.AVh("menu-item--first",P.first())("menu-item--last",P.last())("menu-item--selected",P.item().actived),e.Y8G("routerLink",P.item().link),e.R7$(),e.vxM(P.item().actived?1:-1),e.R7$(),e.Y8G("name",P.item().icon)("isActive",P.item().actived),e.R7$(3),e.JRh(P.item().title),e.R7$(2),e.JRh(P.item().subtitle))},dependencies:[f.R,y.Wk],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.menu-item[_ngcontent-%COMP%]{position:relative;display:flex;padding:16px;align-items:center;gap:16px;align-self:stretch;text-decoration:none;color:inherit;border-bottom:1px solid #D3D4D5;background:#fff;transition:.3s ease;cursor:pointer}.menu-item[_ngcontent-%COMP%]:hover{box-shadow:0 6px 12px #00000026}.menu-item__bar[_ngcontent-%COMP%]{position:absolute;
776left:0;top:0;width:6px;height:100%;background-color:#002859}.menu-item__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;height:51px}.menu-item__title[_ngcontent-%COMP%]{color:#151617;font-family:Proxima Nova,sans-serif;font-size:18px;font-style:normal;font-weight:700;line-height:32px}.menu-item__subtitle[_ngcontent-%COMP%]{color:#535455;font-family:Proxima Nova,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:var(--font-line-height-subtxt, 24px)}.menu-item--selected[_ngcontent-%COMP%] .menu-item__title[_ngcontent-%COMP%]{color:#002859}.menu-item--first[_ngcontent-%COMP%]{border-top-left-radius:4px;border-top-right-radius:4px}.menu-item--first[_ngcontent-%COMP%] .menu-item__bar[_ngcontent-%COMP%]{border-top-left-radius:4px}.menu-item--last[_ngcontent-%COMP%]{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.menu-item--last[_ngcontent-%COMP%] .menu-item__bar[_ngcontent-%COMP%]{border-bottom-left-radius:4px}app-icon[_ngcontent-%COMP%]{width:32px}"],changeDetection:0})}}return R})();var D=n(89221),k=n(23013);let X=(()=>{class R extends k.t{constructor(){super(...arguments),this.autofocus=(0,e.hFB
776)(!1),this.inputId=(0,e.hFB)("password"),this.max=(0,e.hFB)(),this.maxLength=(0,e.hFB)(),this.min=(0,e.hFB)(),this.minLength=(0,e.hFB)(),this.required=(0,e.hFB)(!1),this.strengthLevelEnabled=(0,e.hFB)(!1),this.passwordStrengthLabels=(0,e.hFB)(""),this.resetValidations=(0,e.hFB)(!1)}static{this.\u0275fac=(()=>{let i;return function(P){return(i||(i=e.xGo(R)))(P||R)}})()}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-input-password"]],inputs:{autofocus:[1,"autofocus"],inputId:[1,"inputId"],max:[1,"max"],maxLength:[1,"maxLength"],min:[1,"min"],minLength:[1,"minLength"],required:[1,"required"],strengthLevelEnabled:[1,"strengthLevelEnabled"],passwordStrengthLabels:[1,"passwordStrengthLabels"],resetValidations:[1,"resetValidations"]},standalone:!0,features:[e.Vt3,e.aNF],decls:3,vars:19,consts:[[1,"password"],[3,"inputClear","inputError","inputFocus","inputFocusOut","valueChanged","mode","autofocus","errorMessage","brand","disabled","inputId","label","max","maxLength","min","minLength","name","placeholder","value","strengthLevelEnabled","passwordStrengthLabels","resetValidations"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"rcg-input-password-v2",1),e.nI1(2,"translate"),e.bIt("inputClear",function(){return P.handleClearValue()})("inputError",function(rt){return P.handleError(rt)})("inputFocus",function(rt){return P.handleFocus(rt)})("inputFocusOut",function(rt){return P.handleFocusOut(rt)})("valueChanged",function(rt){return P.handleValueChange(rt)}),e.k0s()()),2&A&&(e.R7$(),e.Y8G("mode",P.brand())("autofocus",P.autofocus())("errorMessage",P.shouldShowError()?e.bMT(2,17,P.errorMessage()):"")("brand",P.brand())("disabled",P.disabled())("inputId",P.id())("label",P.label())("max",P.max())("maxLength",P.maxLength())("min",P.min())("minLength",P.minLength())("name",P.name())("placeholder",P.placeholder())("value",P.value())("strengthLevelEnabled",P.strengthLevelEnabled())("passwordStrengthLabels",P.passwordStrengthLabels())("resetValidations",P.resetValidations()))},dependencies:[a.h,a.D9],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.password[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#061556}"],changeDetection:0})}}return R})(),W=(()=>{class R extends k.t{constructor(){super(...arguments),this.autofocus=(0,e.hFB
776)(!1),this.maxLength=(0,e.hFB)(),this.minLength=(0,e.hFB)(),this.phoneCallingCodes=(0,e.hFB)(),this.value=(0,e.geq)(),this.required=(0,e.hFB)(!1)}change(i){}handleValueChange(i){const A=this.getInputValueFromEvent(i);this.change(A),this.writeValue(A),this.onChanges.emit(A)}getInputValueFromEvent(i){const{phoneNumber:A,countryCode:P,value:Q}=i.detail;return{phoneNumber:A,countryCode:P,mobileNumberCallingCode:Q}}static{this.\u0275fac=(()=>{let i;return function(P){return(i||(i=e.xGo(R)))(P||R)}})()}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-input-phone"]],inputs:{autofocus:[1,"autofocus"],maxLength:[1,"maxLength"],minLength:[1,"minLength"],phoneCallingCodes:[1,"phoneCallingCodes"],value:[1,"value"],required:[1,"required"]},outputs:{value:"valueChange"},standalone:!0,features:[e.Vt3,e.aNF],decls:3,vars:13,consts:[[1,"phone"],[3,"inputClear","inputError","inputFocus","inputFocusOut","valueChanged","autofocus","errorMessage","brand","disabled","label","maxLength","minLength","name","placeholder","value","phoneCallingCodes"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"rcg-input-phone-v2",1),e.nI1(2,"translate"),e.bIt("inputClear",function(){return P.handleClearValue()})("inputError",function(rt){return P.handleError(rt)})("inputFocus",function(rt){return P.handleFocus(rt)})("inputFocusOut",function(rt){return P.handleFocusOut(rt)})("valueChanged",function(rt){return P.handleValueChange(rt)}),e.k0s()()),2&A&&(e.R7$(),e.Y8G("autofocus",P.autofocus())("errorMessage",P.shouldShowError()?e.bMT(2,11,P.errorMessage()):"")("brand",P.brand())("disabled",P.disabled())("label",P.label())("maxLength",P.maxLength())("minLength",P.minLength())("name",P.name())("placeholder",P.placeholder())("value",P.value())("phoneCallingCodes",P.phoneCallingCodes()))},dependencies:[a.h,a.D9],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.phone[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#061556}"],changeDetection:0})}}return R})(),K=(()=>{class R extends k.t{constructor(){super(...arguments),this.hasError=(0,e.hFB)(!1)}change(i){}handleValueChange(i){const A=this.getInputValueFromEvent(i);this.change(A),this.writeValue(A),this.onTouch(),this.onChanges.emit(A)}getInputValueFromEvent(i){const{isChecked:A}=i.detail;if(void 0===A)throw Error("isChecked is a required field");return A}static{this.\u0275fac=(()=>{let i;return function(P){return(i||(i=e.xGo(R)))(P||R)}})()}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-checkbox"]],inputs:{hasError:[1,"hasError"]},standalone:!0,features:[e.Vt3,e.aNF],decls:3,vars:8,consts:[[1,"checkbox"],[3,"isChecked","mode","disabled","hasError","inputId","name","checked","label"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"rcg-input-checkbox-v2",1),e.bIt("isChecked",function(rt){return P.handleValueChange(rt)}),e.EFF(2),e.k0s()()),2&A&&(e.R7$(),e.Y8G("mode",P.brand())("disabled",P.disabled())("hasError",P.hasError())("inputId",P.id())("name",P.name())("checked",P.value())("label",P.label()),e.R7$(),e.SpI(" ",P.label()," "))},styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.checkbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#061556}"],changeDetection:0})}}return R})();var T=n(69081);const Y=()=>({});let H=(()=>{class R extends k.t{constructor(){super(...arguments),this.translate=(0,e.WQX)(a.c$),this.autofocus=(0,e.hFB
776)(!1),this.labels=(0,e.hFB)(),this.visibility=(0,e.hFB)({day:!0,month:!0,year:!0}),this.value=(0,e.geq)(),this.errorMessage=(0,e.vPA)({}),this.required=(0,e.hFB)(!1)}handleValueChange(i){const A=this.getValueFromEventDate(i);this.change(A),this.writeValue(A),this.onTouch(),this.onChanges.emit(A)}getValueFromEventDate(i){return i?.detail}getFirstError(){const i=this.ngControl?.control?.errors,{day:A,month:P,year:Q}=i??{},rt={};return A&&(rt.day=this.translate.instant(A)),P&&(rt.month=this.translate.instant(P)),Q&&(rt.year=this.translate.instant(Q)),rt}static{this.\u0275fac=(()=>{let i;return function(P){return(i||(i=e.xGo(R)))(P||R)}})()}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-input-date"]],inputs:{autofocus:[1,"autofocus"],labels:[1,"labels"],visibility:[1,"visibility"],value:[1,"value"],required:[1,"required"]},outputs:{value:"valueChange"},standalone:!0,features:[e.Vt3,e.aNF],decls:2,vars:9,consts:[[1,"date"],[3,"inputFocus","inputFocusOut","valueChanged","errorMessage","brand","disabled","labels","name","placeholder","value","visibility"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"rcg-date-picker-v2",1),e.bIt("inputFocus",function(rt){return P.handleFocus(rt)})("inputFocusOut",function(rt){return P.handleFocusOut(rt)})("valueChanged",function(rt){return P.handleValueChange(rt)}),e.k0s()()),2&A&&(e.R7$(),e.Y8G("errorMessage",P.shouldShowError()?P.errorMessage():e.lJ4(8,Y))("brand",P.brand())("disabled",P.disabled())("labels",P.labels())("name",P.name())("placeholder",P.placeholder())("value",P.value())("visibility",P.visibility()))},styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.phone[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#061556}"],changeDetection:0})}}return R})(),et=(()=>{class R extends k.t{constructor(){super(...arguments),this.ariaLabel=(0,e.hFB)(""),this.options=(0,e.hFB)([]),this.readonly=(0,e.hFB)(!1)}static{this.\u0275fac=(()=>{let i;return function(P){return(i||(i=e.xGo(R)))(P||R)}})()}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-dropdown"]],inputs:{ariaLabel:[1,"ariaLabel"],options:[1,"options"],readonly:[1,"readonly"]},standalone:!0,features:[e.Vt3,e.aNF],decls:3,vars:11,consts:[[1,"dropdown"],[3,"inputFocus","inputFocusOut","valueChanged","ariaLabel","brand","disabled","options","label","name","readonly","value","errorMessage"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"rcg-dropdown-v2",1),e.nI1(2,"translate"),e.bIt("inputFocus",function(rt){return P.handleFocus(rt)})("inputFocusOut",function(rt){return P.handleFocusOut(rt)})("valueChanged",function(rt){return P.handleValueChange(rt)}),e.k0s()()),2&A&&(e.R7$(),e.Y8G("ariaLabel",P.ariaLabel())("brand",P.brand())("disabled",P.disabled())("options",P.options())("label",P.label())("name",P.name())("readonly",P.readonly())("value",P.value())("errorMessage",P.shouldShowError()?e.bMT(2,9,P.errorMessage()):""))},dependencies:[a.h,a.D9],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.dropdown[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#061556}"],changeDetection:0})}}return R})();var q=n(62386),j=n(45312);let $=(()=>
776{class R{constructor(){this.theme=(0,e.hFB)("dark"),this.options=(0,e.EWP)(()=>({path:"dark"===this.theme()?j.Ij:j.Le,loop:!0,autoplay:!0,renderer:"svg"}))}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-loader"]],inputs:{theme:[1,"theme"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"loader"],["height","360px","width","360px",3,"options"]],template:function(A,P){1&A&&(e.j41(0,"div",0),e.nrm(1,"ng-lottie",1),e.k0s()),2&A&&(e.R7$(),e.Y8G("options",P.options()))},dependencies:[q.xm],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.loader[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;inset:0;margin:auto;max-width:100%;max-height:100%;overflow:hidden;background:#fff}"],changeDetection:0})}}return R})();const z=[[["","breadcrumb",""]],[["","header",""]],[["","content",""]]],ot=["[breadcrumb]","[header]","[content]"];function nt(R,gt){if(1&R){const i=e.RV6();e.j41(0,"div",1),e.bIt("click",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.handleclose())}),e.k0s(),e.j41(1,"div",2,0)(3,"div",3)(4,"div",4),e.SdG(5),e.k0s(),e.j41(6,"button",5),e.bIt("click",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.handleclose())}),e.nrm(7,"div",6),e.k0s()(),e.j41(8,"div",7)(9,"h2",8),e.SdG(10,1),e.k0s(),e.j41(11,"div",9),e.SdG(12,2),e.k0s()()()}if(2&R){const i=e.XpG();e.Y8G("@fadeIn",void 0),e.R7$(),e.Y8G("@slideInRight",void 0)("appAutoFocus",!0)("focusDelay",i.autoFocusDelay)}}let it=(()=>{class R{constructor(){this.autoFocusDelay=200,this.isOpen=e.hFB.required(),this.onClose=(0,e.CGW)(),(0,e.QZP)(()=>{this.isOpen()?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):(document.body.style.overflow="",document.body.style.position="",document.body.style.width="")})}handleclose(){this.onClose.emit()}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["shared-sidebar"]],inputs:{isOpen:[1,"isOpen"]},outputs:{onClose:"onClose"},standalone:!0,features:[e.aNF],ngContentSelectors:ot,decls:1,vars:1,consts:[["sidebar",""],[1,"sidebar-overlay",3,"click"],["tabindex","-1",1,"sidebar",3,"appAutoFocus","focusDelay"],[1,"sidebar__header"],[1,"sidebar__breadcrumb"],["aria-label","Close notification",1,"sidebar__close",3,"click"],[1,"sidebar__close-img"],[1,"sidebar__container"],["tabindex","0",1,"sidebar__container-header"],[1,"sidebar__container-content"]],template:function(A,P){1&A&&(e.NAR(z),e.DNE(0,nt,13,4)),2&A&&e.vxM(P.isOpen()?0:-1)},dependencies:[d.N5],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.sidebar-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:100}.sidebar[_ngcontent-%COMP%]{position:fixed;top:0;right:0;height:100vh;background-color:#fff;box-shadow:0 0 10px #0000001a;z-index:101;display:flex;flex-direction:column;overflow-y:auto;max-width:800px;width:100%}@media screen and (max-width: 480px){.sidebar[_ngcontent-%COMP%]{max-width:100%;width:100%}}.sidebar__close[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;padding:0;background:none;border:none;cursor:pointer}.sidebar__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:20px}.sidebar__close-img[_ngcontent-%COMP%]{width:23.333px;height:23.333px;background-image:url(/myaccount/assets/images/celebrity/icons/close-toast.svg);background-size:cover}.sidebar__container[_ngcontent-%COMP%]{padding:90px 40px 40px}@media screen and (max-width: 480px){.sidebar__container[_ngcontent-%COMP%]{padding:20px 16px 40px}}.sidebar__container-header[_ngcontent-%COMP%]{color:#061556;font-size:36px;font-weight:600;font-style:normal;line-height:48px;padding-bottom:48px;margin:0;border-bottom:1px solid #d3d4d5}.sidebar__container-content[_ngcontent-%COMP%]{padding-top:24px;flex-grow:1}"],data:{animation:[s,o]},changeDetection:0})}}return R})();const Ot=["*"];let Lt=(()=>{class R extends k.t{constructor(){super(...arguments),this.options=(0,e.hFB
776)(),this.layout=(0,e.hFB)("column"),this.position=(0,e.hFB)("left")}static{this.\u0275fac=(()=>{let i;return function(P){return(i||(i=e.xGo(R)))(P||R)}})()}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-radio-group"]],inputs:{options:[1,"options"],layout:[1,"layout"],position:[1,"position"]},standalone:!0,features:[e.Vt3,e.aNF],ngContentSelectors:Ot,decls:3,vars:6,consts:[[1,"radio-group"],[3,"valueChanged","disabled","name","value","layout","position","options"]],template:function(A,P){1&A&&(e.NAR(),e.j41(0,"div",0)(1,"rcg-radio-group-v2",1),e.bIt("valueChanged",function(rt){return P.handleValueChange(rt)}),e.SdG(2),e.k0s()()),2&A&&(e.R7$(),e.Y8G("disabled",P.disabled())("name",P.name())("value",P.value())("layout",P.layout())("position",P.position())("options",P.options()))},styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#061556}"],changeDetection:0})}}return R})();const Ft=["*"];let Et=(()=>{class R{constructor(){this.option=e.hFB.required(),this.disabled=(0,e.hFB)(!1),this.name=(0,e.hFB)(""),this.position=(0,e.hFB)("left")}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-radio-option"]],inputs:{option:[1,"option"],disabled:[1,"disabled"],name:[1,"name"],position:[1,"position"]},standalone:!0,features:[e.aNF],ngContentSelectors:Ft,decls:3,vars:4,consts:[[1,"radio-option"],[3,"option","disabled","name","position"]],template:function(A,P){1&A&&(e.NAR(),e.j41(0,"div",0)(1,"rcg-radio-option-v2",1),e.SdG(2),e.k0s()()),2&A&&(e.R7$(),e.Y8G("option",P.option())("disabled",P.disabled())("name",P.name())("position",P.position()))},styles:[".radio-option[_ngcontent-%COMP%]{display:block}"],changeDetection:0})}}return R})(),Tt=(()=>{class R{constructor(){this.title=(0,e.hFB)(),this.brand=(0,e.hFB)(),this.contents=(0,e.hFB)(),this.buttonText=(0,e.hFB)(),this.onClick=(0,e.CGW)()}handleClick(){this.onClick.emit()}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-empty-state"]],inputs:{title:[1,"title"],brand:[1,"brand"],contents:[1,"contents"],buttonText:[1,"buttonText"]},outputs:{onClick:"onClick"},standalone:!0,features:[e.aNF],decls:6,vars:4,consts:[[1,"empty-state"],[1,"empty-state__title"],[1,"empty-state__content"],["tabindex","0",1,"empty-state__button",3,"onClick","brand","text"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.k0s(),e.j41(3,"p",2),e.EFF(4),e.k0s(),e.j41(5,"app-primary-button",3),e.bIt("onClick",function(){return P.handleClick()}),e.k0s()()),2&A&&(e.R7$(2),e.SpI(" ",P.title()," "),e.R7$(2),e.SpI(" ",P.contents()," "),e.R7$(),e.Y8G("brand",P.brand())("text",P.buttonText()))},dependencies:[D.A],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:100px}@media screen and (max-width: 480px){.empty-state[_ngcontent-%COMP%]{background-color:#f7f8f9}}.empty-state__title[_ngcontent-%COMP%]{margin:0;font-weight:600;font-size:30px;line-height:40px;letter-spacing:0%;text-align:center;color:#061556}@media screen and (max-width: 480px){.empty-state__title[_ngcontent-%COMP%]{font-size:24px}}.empty-state__content[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;top:39.56px;font-weight:400;font-size:18px;line-height:32px;letter-spacing:0;text-align:center;color:#4a4a4a}@media screen and (max-width: 480px){.empty-state__content[_ngcontent-%COMP%]{width:89.3333333333%;margin:0 auto;line-height:24px}}@media screen and (max-width: 480px) and (min-width: 768px){.empty-state__content[_ngcontent-%COMP%]{width:77.734375%;max-width:1300px}}.empty-state__button[_ngcontent-%COMP%]{display:flex;align-self:center;min-width:282px;margin-top:40px}@media screen and (max-width: 480px){.empty-state__button[_ngcontent-%COMP%]{width:90%;align-self:center}}"],changeDetection:0})}}return R})(),Bt=(()=>
776{class R{constructor(){this.brand=(0,e.hFB)(),this.title=e.hFB.required(),this.description=e.hFB.required(),this.ctaText=e.hFB.required(),this.onClick=(0,e.CGW)()}handleClick(){this.onClick.emit()}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-trips-empty-state"]],inputs:{brand:[1,"brand"],title:[1,"title"],description:[1,"description"],ctaText:[1,"ctaText"]},outputs:{onClick:"onClick"},standalone:!0,features:[e.aNF],decls:8,vars:6,consts:[[1,"trips-empty-state"],["name","ship",3,"width","height"],[1,"trips-empty-state__content"],["tabindex","0",1,"trips-empty-state__title"],["tabindex","0",1,"trips-empty-state__description"],[3,"onClick","brand","text"]],template:function(A,P){1&A&&(e.j41(0,"div",0),e.nrm(1,"app-icon",1),e.j41(2,"div",2)(3,"h3",3),e.EFF(4),e.k0s(),e.j41(5,"h4",4),e.EFF(6),e.k0s()(),e.j41(7,"app-primary-button",5),e.bIt("onClick",function(){return P.handleClick()}),e.k0s()()),2&A&&(e.R7$(),e.Y8G("width",71)("height",70),e.R7$(3),e.SpI(" ",P.title()," "),e.R7$(2),e.SpI(" ",P.description()," "),e.R7$(),e.Y8G("brand",P.brand())("text",P.ctaText()))},dependencies:[D.A,f.R,a.h],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.trips-empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:24px;gap:24px;background-color:#e6effc;border-radius:4px;box-shadow:0 2px 4px #35363726}.trips-empty-state__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}.trips-empty-state__title[_ngcontent-%COMP%]{color:#002859;font-size:30px;font-style:normal;font-weight:600;line-height:40px;margin:0}.trips-empty-state__description[_ngcontent-%COMP%]{color:#535455;font-size:24px;font-style:normal;font-weight:400;line-height:32px;margin:0}"],changeDetection:0})}}return R})();var kt=n(89079),xt=n(66693),St=n(31369);function jt(R,gt){if(1&R&&(e.j41(0,"div",1),e.EFF(1),e.k0s()),2&R){const i=gt.$implicit;e.R7$(),e.SpI(" ",i.initial," ")}}let Wt=(()=>{class R{constructor(){this.guests=e.hFB.required(),this.guestsIntials=(0,e.EWP)(()=>this.guests().map(i=>{const A=`${i?.firstName} ${i?.lastName}`;return{fullName:A,initial:this.getUserInitials(A)}}))}getUserInitials(i){const A=i.charAt(0),P=i.lastIndexOf(" ");return`${A}${i.charAt(P+1)}`}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-trip-guests"]],inputs:{guests:[1,"guests"]},standalone:!0,features:[e.aNF],decls:3,vars:0,consts:[[1,"trip-guests"],[1,"trip-guests__item"]],template:function(A,P){1&A&&(e.j41(0,"div",0),e.Z7z(1,jt,2,1,"div",1,e.Vm6),e.k0s()),2&A&&(e.R7$(),e.Dyx(P.guestsIntials()))},styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.trip-guests[_ngcontent-%COMP%]{display:flex}.trip-guests__item[_ngcontent-%COMP%]{width:32px;height:32px;flex-shrink:0;border-radius:50%;border:1px solid #adbdd6;background-color:#f1f6ff;color:#002859;text-align:center;font-size:14px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-.1px;display:flex;justify-content:center;align-items:center;cursor:pointer}.trip-guests__item[_ngcontent-%COMP%]:nth-child(n+1){margin-left:-6px}"],changeDetection:0})}}return R})();var at=n(49287);let Xt=(()=>{class R{constructor(i){this.utils=i}transform(i,A=35,P=25){const Q=this.utils.isMobile()?P:A;return i?i.length>Q?`${i.substring(0,Q).trim()}...`:i:""}static{this.\u0275fac=function(A){return new(A||R)(e.rXU(at.QY,16))}}static{this.\u0275pipe=e.EJ8({name:"truncate",type:R,pure:!0,standalone:!0})}}return R})();var Z=n(59640),tt=n(5964),mt=n(96697),ut=function(R){return R.ROYAL_UP="royalup",R.ELIGIBLE="eligible",R.INELIGIBLE="ineligible",R.SUBMITTED="submitted",R}(ut||{}),ft=n(35031);let Pt=(()=>{class R{constructor(){this.store$=(0,e.WQX)(Z.il),this.getCurrentBookings()}getCurrentBookings(){this.store$.pipe((0,Z.Lt)(ft.y),(0,tt.p)(i=>(0,ft.uG)(i)||(0,ft.SW)(i)),(0,mt.s)(1)).subscribe(i=>{this.bookingsState=i})}retrieveAnalyticsProductFields(i,A){const{productID:P,productCategory:Q}=this.retrieveEventResponses(i);return{...this.retrieveAnalyticsContents(A,P,Q)}}retrieveAnalyticsContents(i,A,P){return i?{interaction:"",productID:A,productCategory:P}:{productID:A,productCategory:P}}retrieveEventResponses(i){const A={productID:[],productCategory:[]};
776return i.forEach(({bookingId:P,upgradeEligible:Q,...rt})=>{A.productID.push(this.retrieveProductId(this.bookingsState,P)),A.productCategory.push(this.retrieveProductCategory(Q,rt?.offerUrl,rt?.modifyUrl))}),A}retrieveProductId({bookings:i},A){const{sailDate:P,shipCode:Q}=i[A];return`${A}-${P}-${Q}`}retrieveProductCategory(i,A,P){let Q;return Q=P?ut.SUBMITTED:i?ut.ELIGIBLE:ut.INELIGIBLE,`${ut.ROYAL_UP}-${Q}`}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275prov=e.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})();var Ct=n(85014);function Nt(R,gt){if(1&R){const i=e.RV6();e.j41(0,"a",8),e.bIt("click",function(){e.eBV(i);const P=e.XpG(2);return e.Njj(P.ctaClicked())}),e.EFF(1),e.k0s()}if(2&R){let i,A,P;const Q=e.XpG(2);e.Y8G("href",null!==(i=null==(i=Q.royalUpItem())?null:i.offerUrl)&&void 0!==i?i:null==(i=Q.royalUpItem())?null:i.modifyUrl,e.B4B)("ngClass","celebrity"===Q.brand()?"brand-cel":""),e.BMQ("data-test-id","royal-up-cta-"+(null!=(A=Q.royalUpItem())&&A.offerUrl?"offer-":"modify-")+(null==(A=Q.royalUpItem())?null:A.bookingId)),e.R7$(),e.SpI(" ",null!=(P=Q.royalUpItem())&&P.offerUrl?null==Q.royalUpContent?null:Q.royalUpContent.bidNow:null==Q.royalUpContent?null:Q.royalUpContent.bidDetails," ")}}function Jt(R,gt){if(1&R&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),e.
776EFF(4),e.k0s(),e.j41(5,"span",4),e.EFF(6),e.k0s(),e.DNE(7,Nt,2,4,"a",5),e.k0s(),e.j41(8,"div",6),e.nrm(9,"img",7),e.k0s()()()),2&R){let i,A;const P=e.XpG();e.R7$(4),e.JRh(null==P.royalUpContent?null:P.royalUpContent.headline),e.R7$(2),e.SpI(" ",null!=(i=P.royalUpItem())&&i.modifyUrl?null==P.royalUpContent?null:P.royalUpContent.editDescription:null==P.royalUpContent?null:P.royalUpContent.description," "),e.R7$(),e.vxM(null!=(A=P.royalUpItem())&&A.modifyUrl||null!=(A=P.royalUpItem())&&A.offerUrl?7:-1),e.R7$(2),e.Y8G("src",P.royalUpImage,e.B4B)}}let zt=(()=>{class R{constructor(){this.store$=(0,e.WQX)(Z.il),this.royalUpAnalyticsService=(0,e.WQX)(Pt),this.translate=(0,e.WQX)(a.c$),this.royalUpItem=(0,e.hFB)(),this.brand=(0,e.hFB)(void 0)}ngOnInit(){this.setRoyalUpContent(),this.setRoyalUpImage()}ctaClicked(){const i=this.royalUpAnalyticsService.retrieveAnalyticsProductFields([this.royalUpItem()],!0),A=this.royalUpItem().offerUrl?"ga:bookingCard:bidnow":"ga:bookingCard:bidstatus";this.store$.dispatch(Ct.AG.trackInteraction({payload:{content:{...i},interaction:A}}))}setRoyalUpContent(){const i=this.brand()===St.rI.royal?"ROYAL_UP":"MOVE_UP";this.royalUpContent={headline:this.translate.instant(`BOOKING_CARDS.${i}.HEADER`),description:this.translate.instant(`BOOKING_CARDS.${i}.DESCRIPTION`),editDescription:this.translate.instant(`BOOKING_CARDS.${i}.EDIT_DESCRIPTION`),bidNow:this.translate.instant(`BOOKING_CARDS.${i}.BIDNOWBUTTON`),bidDetails:this.translate.instant(`BOOKING_CARDS.${i}.BIDDETAILSBUTTON`)}}setRoyalUpImage(){this.royalUpImage=this.brand()===St.rI.royal?"assets/images/base/royal-up.jpg":"assets/images/base/move-up.jpg"}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-royal-up-banner"]],inputs:{royalUpItem:[1,"royalUpItem"],brand:[1,"brand"]},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[[1,"royal-up"],[1,"royal-up_banner"],[1,"royal-up_description"],[1,"headline-medium"],[1,"text-small"],["target","_blank","rel","noopener noreferrer",1,"text-link",3,"href","ngClass"],[1,"royal-up_image-container"],["alt","Royal Up Stateroom Upgrade",1,"royal-up_img",3,"src"],["target","_blank","rel","noopener noreferrer",1,"text-link",3,"click","href","ngClass"]],template:function(A,P){if(1&A&&e.DNE(0,Jt,10,4,"div",0),2&A){let Q;e.vxM(null!=(Q=P.royalUpItem())&&Q.upgradeEligible?0:-1)}},dependencies:[t.YU],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.royal-up[_ngcontent-%COMP%]{width:100%;background-color:#f7f8f9;border-radius:4px}.royal-up_banner[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:24px;justify-content:space-between}.royal-up_image-container[_ngcontent-%COMP%]{width:62px;height:62px;overflow:hidden;flex-shrink:0;border-radius:50%}.royal-up_img[_ngcontent-%COMP%]{width:100%;height:100%;image-rendering:-webkit-optimize-contrast;object-fit:cover;object-position:center;border-radius:4px 0 0 4px}.royal-up_description[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:8px;padding:20px 24px}@media screen and (max-width: 768px){.royal-up_description[_ngcontent-%COMP%]{padding:16px}}.royal-up_description[_ngcontent-%COMP%] .headline-medium[_ngcontent-%COMP%]{color:#061556;font-size:18px;font-style:normal;font-weight:600;line-height:22px}.royal-up_description[_ngcontent-%COMP%] .text-small[_ngcontent-%COMP%]{color:#535455;font-size:18px;font-style:normal;font-weight:400;line-height:12px}.royal-up_description[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;color:#2588cd;font-size:16px;font-weight:600;line-height:1.5;padding-top:5px}@media screen and (max-width: 768px){.royal-up_description[_ngcontent-%COMP%] .headline-medium[_ng
776content-%COMP%]{font-size:16px;line-height:12px}.royal-up_description[_ngcontent-%COMP%] .text-small[_ngcontent-%COMP%]{font-size:16px;line-height:18px}.royal-up_description[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{font-size:16px;line-height:24px}}"]})}}return R})(),ee=(()=>{class R{constructor(){this.bookHotelImage="assets/images/base/book-hotel.png",this.booking=e.hFB.required(),this.onManageReservation=(0,e.CGW)()}ctaClicked(){this.onManageReservation.emit(this.booking())}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-book-hotel-banner"]],inputs:{booking:[1,"booking"]},outputs:{onManageReservation:"onManageReservation"},standalone:!0,features:[e.aNF],decls:14,vars:10,consts:[[1,"book-hotel-banner"],[1,"book-hotel-banner__content"],[1,"book-hotel-banner__description"],[1,"heading"],[1,"subheading"],["type","button",1,"text-link",3,"click"],[1,"book-hotel-banner__image-container"],["alt","Book Hotel Banner Image",1,"book-hotel-banner__img",3,"src"]],template:function(A,P){1&A&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),e.
776EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"span",4),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"button",5),e.bIt("click",function(){return P.ctaClicked()}),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",6),e.nrm(13,"img",7),e.k0s()()()),2&A&&(e.R7$(4),e.JRh(e.bMT(5,4,"CUSTOMER_JOURNEY.BOOK_HOTELS.HEADING")),e.R7$(3),e.SpI(" ",e.bMT(8,6,"CUSTOMER_JOURNEY.BOOK_HOTELS.SUB_HEADING")," "),e.R7$(3),e.SpI(" ",e.bMT(11,8,"CUSTOMER_JOURNEY.BOOK_HOTELS.BUTTON")," "),e.R7$(3),e.Y8G("src",P.bookHotelImage,e.B4B))},dependencies:[a.h,a.D9],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.book-hotel-banner[_ngcontent-%COMP%]{width:100%;background-color:#f7f8f9}.book-hotel-banner__content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:24px;justify-content:space-between}@media screen and (max-width: 768px){.book-hotel-banner__content[_ngcontent-%COMP%]{padding-right:16px}}.book-hotel-banner__image-container[_ngcontent-%COMP%]{width:62px;height:62px;overflow:hidden;flex-shrink:0;border-radius:50%}.book-hotel-banner__img[_ngcontent-%COMP%]{width:100%;height:100%;image-rendering:-webkit-optimize-contrast;object-fit:cover;object-position:center}.book-hotel-banner__description[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:9px;padding:16px 24px}@media screen and (max-width: 768px){.book-hotel-banner__description[_ngcontent-%COMP%]{padding:16px}}.book-hotel-banner__description[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{color:#083870;font-size:18px;font-style:normal;font-weight:600;line-height:22px}.book-hotel-banner__description[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{color:#535455;font-size:18px;font-style:normal;font-weight:400;line-height:12px}.book-hotel-banner__description[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{line-height:32px;color:#2588cd;font-size:18px;font-style:normal;font-weight:600;padding-top:5px;text-decoration-line:underline;text-decoration-style:solid;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;background:none;border:none;text-align:left;padding-left:0;cursor:pointer}@media screen and (max-width: 768px){.book-hotel-banner__description[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:14px;line-height:12px}.book-hotel-banner__description[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.book-hotel-banner__description[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{font-size:16px;line-height:24px}}"]})}}return R})();function lt(R,gt){if(1&R){const i=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.close())}),e.nrm(1,"app-icon",12),e.k0s()}2&R&&(e.R7$(),e.Y8G("name","close"))}function pt(R,gt){if(1&R&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&R){const i=e.XpG();e.R7$(),e.JRh(i.subMessage())}}function _t(R,gt){if(1&R){const i=e.RV6();e.j41(0,"a",13),e.bIt("click",function(){e.eBV(i);const P=e.XpG(2);return e.Njj(P.onCTAClick())}),e.EFF(1),e.k0s()}if(2&R){const i=gt.$implicit;e.R7$(),e.JRh(i)}}function yt(R,gt){if(1&R&&(e.j41(0,"div",9),e.Z7z(1,_t,2,1,"a",10,e.Vm6),e.k0s()),2&R){const i=e.XpG();e.R7$(),e.Dyx(i.getCTALabels())}}function _(R,gt){if(1&R){const i=e.RV6();e.j41(0,"a",13),e.bIt("click",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.onCTAClick())}),e.EFF(1),e.k0s()}if(2&R){const i=e.XpG();e.R7$(),e.JRh(i.ctaLabel())}}let bt=(()=>
776{class R{constructor(){this.message=(0,e.hFB)(),this.icon=(0,e.hFB)(),this.iconColor=(0,e.hFB)(),this.borderColor=(0,e.hFB)(),this.subMessage=(0,e.hFB)(),this.ctaLabel=(0,e.hFB)(),this.onClick=(0,e.CGW)(),this.onClose=(0,e.CGW)(),this.showClose=(0,e.hFB)(!1),this.hasBorder=(0,e.hFB)(!0),this.boxShadow=(0,e.hFB)()}onCTAClick(){this.onClick.emit()}close(){this.onClose.emit()}getCTALabels(){return this.ctaLabel()?this.ctaLabel().split("|"):[]}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-banner-message"]],inputs:{message:[1,"message"],icon:[1,"icon"],iconColor:[1,"iconColor"],borderColor:[1,"borderColor"],subMessage:[1,"subMessage"],ctaLabel:[1,"ctaLabel"],showClose:[1,"showClose"],hasBorder:[1,"hasBorder"],boxShadow:[1,"boxShadow"],appOnlyCheckInActive:"appOnlyCheckInActive"},outputs:{onClick:"onClick",onClose:"onClose"},standalone:!0,features:[e.aNF],decls:12,vars:12,consts:[[1,"banner-message"],[1,"banner-message__bar"],["aria-label","Close banner",1,"banner-message__close"],[1,"banner-message__icon"],[3,"name","color"],[1,"banner-message__content"],[1,"banner-message__text-content"],[1,"banner-message__text"],[1,"banner-message__subheading"],[1,"banner-message__actions"],["tabindex","0",1,"banner-message__actions__link"],["aria-label","Close banner",1,"banner-message__close",3,"click"],[3,"name"],["tabindex","0",1,"banner-message__actions__link",3,"click"]],template:function(A,P){if(1&A&&(e.j41(0,"div",0),e.nrm(1,"div",1),e.DNE(2,lt,2,1,"button",2),e.j41(3,"div",3),e.nrm(4,"app-icon",4),e.k0s(),e.j41(5,"div",5)(6,"div",6)(7,"span",7),e.EFF(8),e.k0s(),e.DNE(9,pt,2,1,"span",8),e.k0s(),e.DNE(10,yt,3,0,"div",9)(11,_,2,1,"a",10),e.k0s()()),2&A){let Q;e.xc7("border-color",P.hasBorder()?P.borderColor():"transparent")("box-shadow",P.boxShadow()),e.R7$(),e.xc7("background-color",P.borderColor()),e.R7$(),e.vxM(P.showClose()?2:-1),e.R7$(2),e.Y8G("name",P.icon())("color",P.iconColor()),e.R7$(4),e.JRh(P.message()),e.R7$(),e.vxM(P.subMessage()?9:-1),e.R7$(),e.vxM((null==(Q=P.getCTALabels())?null:Q.length)>1?10:11)}},dependencies:[t.MD,f.R],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.banner-message[_ngcontent-%COMP%]{position:relative;display:flex;padding:8px 0;align-items:center;gap:8px;width:100%;border:1px solid;border-radius:4px}.banner-message__bar[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:12px;height:100%}.banner-message__icon[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding-left:28px}.banner-message__content[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;width:100%;padding-right:16px;row-gap:8px}.banner-message__text-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.banner-message__text[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:600;line-height:24px}.banner-message__subheading[_ngcontent-%COMP%]{color:#535455;font-size:14px;font-style:normal;font-weight:400;line-height:16px}.banner-message__actions__link[_ngcontent-%COMP%]{cursor:pointer;color:#2588cd;font-family:Proxima Nova,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-decoration-line:underline;text-decoration-style:solid;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto}.banner-message__actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:16px}@media screen and (max-width: 480px){.banner-message[_ngcontent-%COMP%]{align-items:flex-start}.banner-message__text-content[_ngcontent-%COMP%]{text-align:start}.banner-message__text[_ngcontent-%COMP%]{font-size:14px;line-height:16px}}.banner-message__close[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px;background:transparent;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center}.banner-message__close[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{width:16px;height:16px}"],changeDetection:0})}}return R})();function Mt(R,gt){if(1&R){const i=e.RV6();e.j41(0,"div",1)(1,"app-banner-message",13),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("onClick",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.banner().onClick?P.banner().onClick():null)}),e.k0s()()}if(2&R){const i=e.XpG();e.R7$(),e.Y8G("icon",i.banner().icon)("iconColor",i.banner().iconColor)("message",i.banner().useTranslate?e.bMT(2,6,i.banner().message):i.banner().message)("subMessage",i.banner().subMessage)("borderColor",i.banner().borderColor)("ctaLabel",i.banner().ctaLabel?e.bMT(3,8,i.banner().ctaLabel):"")}}function vt(R,gt){1&R&&(e.j41(0,"span",6),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&R&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"COMMON.ROOM")," "))}function $t(R,gt){if(1&R&&e.EFF(0),2&R){const i=e.XpG();e.SpI(" ",i.booking().stateroomNumber," ")}}function Vt(R,gt){if(1&R&&(e.EFF(0),e.nI1(1,"translate")),2&R){const i=e.XpG();e.SpI(" | ",e.bMT(1,1,i.booking().stateroomTypeName)," ")}}function Qt(R,gt){if(1&R&&(e.EFF(0),e.nI1(1,"translate")),2&R){const i=e.XpG();e.Lme(" | ",e.bMT(1,2,"COMMON.DECK")," ",i.booking().deckNumber," ")}}function Ie(R,gt){if(1&R&&(e.j41(0,"div",7),e.nI1(1,"titlecase"),e.j41(2,"span",6),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"app-trip-guests",14),e.k0s()),2&R){const i=e.XpG();e.Y8G("hoverPopover",e.bMT(1,3,i.guests())),e.R7$(3),e.SpI(" ",e.bMT(4,5,"COMMON.GUESTS")," "),e.R7$(2),e.Y8G("guests",i.booking().passengers)}}function Se(R,gt){if(1&R){const i=e.RV6();e.j41(0,"app-primary-button",17),e.nI1(1,"translate"),e.bIt("onClick",function(){e.eBV(i);const P=e.XpG(2);return e.Njj(P.handlePlanCruise())}),e.k0s()}if(2&R){const i=e.XpG(2);e.Y8G("brand",i.brand())("theme","dark")("text",e.bMT(1,4,i.cruisePlannerButtonKey()))("size","thin")}}function Zt(R,gt){if(1&R&&(e.j41(0,"li"),e.nrm(1,"a",21),e.k0s()),2&R){const i=gt.$implicit,A=e.XpG(4);e.R7$(),e.Y8G("href",i.URL,e.B4B)("translate",A.edocItemTextKey)}}function Re(R,gt){if(1&R&&(e.j41(0,"ul",20),e.Z7z(1,Zt,2,2,"li",null,e.Vm6),e.k0s()),2&R){const i=e.XpG(3);e.R7$(),e.Dyx(i.eDocs())}}function xe(R,gt){if(1&R&&(e.j41(0,"li"),e.nrm(1,"a",22),e.k0s()),2&R){const i=gt.$implicit,A=e.XpG(4);e.R7$(),e.Y8G("href",i.URL,e.B4B)("translate",A.luggageTagsItemTextKey)}}function fe(R,gt){if(1&R&&(e.j41(0,"ul",20),e.Z7z(1,xe,2,2,"li",null,e.Vm6),e.k0s()),2&R){const i=e.XpG(3);e.R7$(),e.Dyx(i.luggageTags())}}function _e(R,gt){if(1&R&&(e.j41(0,"div",16)(1,"h4",18),e.EFF(2),e.k0s(),e.j41(3,"div",19),e.DNE(4,Re,3,0,"ul",20)(5,fe,3,0,"ul",20),e.k0s()()),2&R){const i=e.XpG(2);e.R7$(2),e.SpI(" ",i.edocInitialStateText," "),e.R7$(2),e.vxM(i.edocsPopulatedState()?4:-1),e.R7$(),e.vxM(i.luggageTagsPopulatedState()?5:-1)}}function De(R,gt){if(1&R){const i=e.RV6();e.DNE(0,Se,2,6,"app-primary-button",9),e.j41(1,"app-primary-button",15),e.nI1(2,"translate"),e.bIt("onClick",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.handleMangeReservation())}),e.k0s(),e.DNE(3,_e,6,3,"div",16)}if(2&R){const i=e.XpG();e.vxM(i.showCruisePlannerBlock()?0:-1),e.R7$(),e.Y8G("brand",i.brand())("theme","light")("size","thin")("text",e.bMT(2,6,"BOOKING_CARDS.ACTIONS.MANAGE_RESERVATION.TITLE")),e.R7$(2),e.vxM(i.shouldShowEdocs()&&!i.edocsEmptyState()?3:-1)}}function Ce(R,gt){if(1&R){const i=e.RV6();e.qex(0),e.j41(1,"app-primary-button",17),e.nI1(2,"translate"),e.bIt("onClick",function(){e.eBV(i);const P=e.XpG(2);
776return e.Njj(P.handleViewStatement())}),e.k0s(),e.bVm()}if(2&R){const i=e.XpG(2);e.R7$(),e.Y8G("brand",i.brand())("theme","light")("text",e.bMT(2,4,"CUSTOMER_JOURNEY.MY_TRIPS.VIEW_FINAL_STATEMENT"))("size","thin")}}function Le(R,gt){if(1&R){const i=e.RV6();e.DNE(0,Ce,3,6,"ng-container"),e.j41(1,"app-primary-button",17),e.nI1(2,"translate"),e.bIt("onClick",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.handleRebook())}),e.k0s()}if(2&R){const i=e.XpG();e.vxM(i.enableFolioPostCruisePdf()&&i.getFolioInfoByBookingId(i.booking().bookingId)?0:-1),e.R7$(),e.Y8G("brand",i.brand())("theme","light")("text",e.bMT(2,5,"CUSTOMER_JOURNEY.MY_TRIPS.VIEW_SHIP_SAILINGS"))("size","thin")}}function Ne(R,gt){if(1&R&&e.nrm(0,"app-royal-up-banner",11),2&R){const i=e.XpG();e.Y8G("royalUpItem",i.booking().royalUpStatus)("brand",i.brand()),e.BMQ("data-test-id","royal-up-banner-"+i.booking().bookingId)}}function ke(R,gt){if(1&R){const i=e.RV6();e.j41(0,"app-book-hotel-banner",23),e.bIt("onManageReservation",function(P){e.eBV(i);const Q=e.XpG();return e.Njj(Q.handleFindHotels(P))}),e.k0s()}if(2&R){const i=e.XpG();e.Y8G("booking",i.booking())}}let Fe=(()=>{class R{constructor(){this.truncate=(0,e.WQX)(Xt),this.urls=(0,e.WQX)(at.aT),this.localization=(0,e.WQX)(at.Pi),this.translate=(0,e.WQX)(a.c$),this.bookingFacadeService=(0,e.WQX)(at.ZO),this.runtime=(0,e.WQX)(at.sq),this.analyticInteraction=(0,e.WQX)(at.Ue),this.router=(0,e.WQX)(y.Ix),this.utilityService=(0,e.WQX)(at.QY),this.brand=e.hFB.required(),this.booking=e.hFB.required(),this.voyage=e.hFB.required(),this.tripType=e.hFB.required(),this.royalUpActive=(0,e.hFB)(!1),this.eDocs=(0,e.hFB)(void 0),this.luggageTags=(0,e.hFB)(void 0),this.shouldShowRiverCruiseHotelsBanner=(0,e.hFB)(!1),this.banner=(0,e.hFB)(),this.enableFolioPostCruisePdf=(0,e.hFB)(!1),this.onManageReservation=(0,e.CGW)(),this.onPlanCruise=(0,e.CGW)(),this.onRebook=(0,e.CGW)(),this.onViewStatement=(0,e.CGW)(),this.onFindHotels=(0,e.CGW)(),this.showEdocs=!1,this.BRANDS=St.rI,this.guests=(0,e.EWP)(()=>this.booking().passengers.map(i=>`${this.getName(i.firstName,i.lastName)} (${this.getAgeCategory(i.birthdate)})`).join("\n")),this.cruisePlannerButtonKey=(0,e.EWP)(()=>`BOOKING_CARDS.ACTIONS.CRUISE_PLANNING.ALTERNATE.${this.brand().toUpperCase()}`),this.showCruisePlannerBlock=(0,e.EWP)(()=>!(j.pz.includes(this.booking().shipCode)||this.voyage()?.canceled&&this.runtime.webConfig?.dashboard?.hidePmcCtaForCanceledVoyages))}handleMangeReservation(i=this.booking()){this.onManageReservation.emit(i)}handleFindHotels(i){const{path:A}=this.utilityService.getPathAndSectionFromUrl(this.router.url)||{};this.analyticInteraction.trackInteraction({appName:"ga",interaction:"findhotels",currentPage:A||"",channel:this.resolveChannel(A),content:{eventType:"interaction"}}),this.onFindHotels.emit(i)}resolveChannel(i){return i?.includes("my-trips")?xt.sg.MY_TRIPS:xt.sg.DASHBOARD}handlePlanCruise(){this.onPlanCruise.emit(this.booking())}getName(i,A){return this.truncate.transform(`${i} ${A}`)}getAgeCategory(i){if(!i||i.length<4)return"Adult";const A=parseInt(i.substring(0,4),10);return(new Date).getFullYear()-A>=18?"Adult":"Child"}handleRebook(){const i=this.localization.resolveCountry(),A=this.voyage().shipCode,Q=`${this.urls.get("REEBOK")}?search=ship:${A}&country=${i}`;this.onRebook.emit(this.booking()),window.location.href=Q}
776handleViewStatement(){}edocsEmptyState(){const i=this.eDocs(),A=this.luggageTags();return!(i&&0!==i.length||A&&0!==A.length)}edocsPopulatedState(){const i=this.eDocs();return i&&i.length>0}luggageTagsPopulatedState(){const i=this.luggageTags();return i&&i.length>0}get edocItemTextKey(){return`BOOKING_CARDS.EDOCS.${this.brand().toUpperCase()}.ITEM`}get edocInitialStateText(){return this.translate.instant(`BOOKING_CARDS.EDOCS.${this.brand().toUpperCase()}.INITIAL_STATE`)}get luggageTagsItemTextKey(){return`BOOKING_CARDS.LUGGAGE_DOCS.${this.brand().toUpperCase()}.ITEM`}shouldShowEdocs(){return(this.brand()===St.rI.celebrity||this.brand()===St.rI.royal)&&"upcoming"===this.tripType()}getFolioInfoByBookingId(i){return this.bookingFacadeService.getFolioInfoByBookingId(i)}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-trip-reservation-card"]],inputs:{brand:[1,"brand"],booking:[1,"booking"],voyage:[1,"voyage"],tripType:[1,"tripType"],royalUpActive:[1,"royalUpActive"],eDocs:[1,"eDocs"],luggageTags:[1,"luggageTags"],shouldShowRiverCruiseHotelsBanner:[1,"shouldShowRiverCruiseHotelsBanner"],banner:[1,"banner"],enableFolioPostCruisePdf:[1,"enableFolioPostCruisePdf"]},outputs:{onManageReservation:"onManageReservation",onPlanCruise:"onPlanCruise",onRebook:"onRebook",onViewStatement:"onViewStatement",onFindHotels:"onFindHotels"},standalone:!0,features:[e.Jv_([Xt]),e.aNF],decls:21,vars:13,consts:[[1,"reservation-card"],[1,"reservation-card__banner"],[1,"reservation-card__content"],[1,"reservation-card__text"],["tabindex","0",1,"reservation-card__text--bold"],["tabindex","0",1,"reservation-card__text"],[1,"reservation-card__text--bold"],["tabindex","0",1,"reservation-card__text",3,"hoverPopover"],[1,"reservation-card__actions"],[3,"brand","theme","text","size"],[1,"book-hotel"],[3,"royalUpItem","brand"],[3,"booking"],[3,"onClick","icon","iconColor","message","subMessage","borderColor","ctaLabel"],[3,"guests"],[3,"onClick","brand","theme","size","text"],[1,"reservation-card__edocs-section"],[3,"onClick","brand","theme","text","size"],["tabindex","0",1,"reservation-card__edocs-title"],[1,"reservation-card__edocs-buttons"],[1,"reservation-card__edocs-list"],["target","_blank","tabindex","0",1,"edocs-img",3,"href","translate"],["target","_blank","tabindex","0",1,"luggage-tag-img",3,"href","translate"],[3,"onManageReservation","booking"]],template:function(A,P){if(1&A&&(e.j41(0,"div",0),e.DNE(1,Mt,4,10,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"span",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"div",5),e.DNE(9,vt,3,3,"span",6),e.j41(10,"span"),e.DNE(11,$t,1,1)(12,Vt,2,3)(13,Qt,2,4),e.k0s()(),e.DNE(14,Ie,6,7,"div",7),e.k0s(),e.j41(15,"div",8),e.DNE(16,De,4,8)(17,Le,3,7,"app-primary-button",9),e.k0s()(),e.j41(18,"div",10),e.DNE(19,Ne,1,3,"app-royal-up-banner",11)(20,ke,1,1,"app-book-hotel-banner",12),e.k0s()),2&A){let Q,rt;e.R7$(),e.vxM(null!=(Q=P.banner())&&Q.show?1:-1),e.R7$(4),e.SpI(" ",e.bMT(6,11,"BOOKING_CARDS.RESERVATION_TITLE")," "),e.R7$(2),e.SpI(" ",P.booking().bookingId," "),e.R7$(2),e.vxM(P.booking().stateroomNumber?9:-1),e.R7$(2),e.vxM(P.booking().stateroomNumber?11:-1),e.R7$(),e.vxM("upcoming"===P.tripType()&&P.booking().stateroomTypeName?12:-1),e.R7$(),e.vxM(P.booking().deckNumber?13:-1),e.R7$(),e.vxM((null==(rt=P.booking())||null==rt.passengers?null:rt.passengers.length)>0?14:-1),e.R7$(2),e.vxM("upcoming"===P.tripType()?16:"past"===P.tripType()?17:-1),e.R7$(3),e.vxM(P.booking().royalUpStatus&&P.royalUpActive()?19:-1),e.R7$(),e.vxM(P.shouldShowRiverCruiseHotelsBanner()?20:-1)}},dependencies:[a.h,a.D9,a.Mm,D.A,Wt,d.pb,t.MD,t.PV,zt,ee,bt],styles:['[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.reservation-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;border:1px solid #d3d4d5;padding:16px;border-radius:4px 4px 0 0;border-bottom:none;gap:16px}.reservation-card__banner[_ngcontent-%COMP%]{padding:16px 0;width:100%}.reservation-card__content[_ngcontent-%COMP%], .reservation-card__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px}.reservation-card__actions[_ngcontent-%COMP%] app-royal-up-banner[_ngcontent-%COMP%]{width:100%}.reservation-card__info[_ngcontent-%COMP%]{display:flex;gap:8px}.reservation-card__text[_ngcontent-%COMP%]{display:flex;gap:8px;font-size:18px;font-style:normal;font-weight:400;line-height:32px;color:#535455;min-width:80px;text-transform:capitalize;align-items:center}.reservation-card__text--bold[_ngcontent-%COMP%]{color:#002859;font-weight:600;text-transform:capitalize;margin-right:4px}@media screen and (max-width: 1024px){.reservation-card[_ngcontent-%COMP%]{gap:24px}.reservation-card__content[_ngcontent-%COMP%]{flex-direction:column;gap:8px}.reservation-card__text[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.reservation-card__actions[_ngcontent-%COMP%] app-primary-button[_ngcontent-%COMP%]{width:100%}}.reservation-card__edocs-section[_ngcontent-%COMP%]{width:100%;margin-top:16px}.reservation-card__edocs-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin-bottom:16px;margin-top:0;color:#002859}.reservation-card__edocs-buttons[_ngcontent-%COMP%]{display:flex;gap:16px}.reservation-card__edocs-list[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}.reservation-card__edocs-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;line-height:20px}.reservation-card__edocs-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005edc;cursor:pointer;font-weight:600;display:flex;align-items:center;position:relative;font-size:16px;text-decoration:underline}.reservation-card__edocs-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:none;content:"";position:absolute;
776left:0;width:20px;height:20px;background-color:#004275;mask-size:contain}.reservation-card__edocs-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.edocs-img[_ngcontent-%COMP%]:before{mask:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"/></svg>\') no-repeat}.reservation-card__edocs-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.luggage-tag-img[_ngcontent-%COMP%]:before{mask:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 6h-2V3c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v3H7c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2 0 .55.45 1 1 1s1-.45 1-1h6c0 .55.45 1 1 1s1-.45 1-1c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM9.5 18H8V9h1.5v9zm3.25 0h-1.5V9h1.5v9zm.75-12h-3V3.5h3V6zM16 18h-1.5V9H16v9z"/></svg>\') no-repeat}.book-hotel[_ngcontent-%COMP%]{border:1px solid #d3d4d5;border-top:none;border-radius:0 0 4px 4px}'],changeDetection:0})}}return R})();var Be=n(61829),Ue=n(96354),ye=n(77339);let ue=(()=>{class R{constructor(){this.continueCheckIn=new e.bkB,this.goBack=new e.bkB,this.brand=j.qt,this.content="",this.isModalOpen=!1,this.translate=(0,e.WQX)(a.c$),this.ref=(0,e.WQX)(e.gRc)}ngOnInit(){this.content=this.translate.instant("MODAL.SPECIAL_PORT_CONFIRMATION.CONTENT_A")}open(){this.isModalOpen=!0,this.ref.markForCheck()}goBackAndClose(){this.isModalOpen=!1,this.goBack.emit(!0)}continue(){this.isModalOpen=!1,this.ref.markForCheck(),this.continueCheckIn.emit(!0)}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["cruise-planner-special-port-confirmation"]],outputs:{continueCheckIn:"continueCheckIn",goBack:"goBack"},standalone:!0,features:[e.aNF],decls:21,vars:18,consts:[[3,"modalClosed","brand","isOpen"],["header",""],[1,"special-port-confirmation__header"],[1,"special-port-confirmation__icon-div"],["alt","special-port-confirmation",1,"special-port-confirmation__icon",3,"src"],[1,"special-port-confirmation__title"],["content",""],["data-sel","special-port-confirmation",1,"special-port-confirmation"],[1,"special-port-confirmation__content",3,"innerHTML"],["type","button",3,"onClick","brand","text"],[1,"special-port-confirmation__content","mt-content"],["actions",""],[1,"special-port-confirmation__link",3,"click"]],template:function(A,P){1&A&&(e.j41(0,"shared-modal",0),e.bIt("modalClosed",function(){return P.goBackAndClose()}),e.j41(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"img",4),e.k0s(),e.j41(5,"h2",5),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.j41(8,"div",6)(9,"div",7),e.nrm(10,"p",8),e.j41(11,"div")(12,"app-primary-button",9),e.nI1(13,"translate"),e.bIt("onClick",function(){return P.goBackAndClose()}),e.k0s()(),e.j41(14,"p",10),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"div",11)(18,"a",12),e.bIt("click",function(){return P.continue()}),e.EFF(19),e.nI1(20,"translate"),e.k0s()()()),2&A&&(e.Y8G("brand",P.brand)("isOpen",P.isModalOpen),e.R7$(4),e.Mz_("src","assets/images/",P.brand,"/icons/special-port-confirmation-icon.svg",e.B4B),e.R7$(2),e.JRh(e.bMT(7,10,"MODAL.SPECIAL_PORT_CONFIRMATION.TITLE")),e.R7$(4),e.Y8G("innerHTML",P.content,e.npT),e.R7$(2),e.Y8G("brand",P.brand)("text",e.bMT(13,12,"MODAL.SPECIAL_PORT_CONFIRMATION.GO_BACK")),e.R7$(3),e.SpI(" ",e.bMT(16,14,"MODAL.SPECIAL_PORT_CONFIRMATION.CONTENT_B")," "),e.R7$(4),e.JRh(e.bMT(20,16,"MODAL.SPECIAL_PORT_CONFIRMATION.CONTINUE_CHECKIN")))},dependencies:[t.MD,a.h,a.D9,T.z,D.A],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center} shared-modal#special-port-confirmation .modal{width:auto!important} shared-modal#special-port-confirmation .modal__close-button{left:16px;justify-content:start;width:fit-content} shared-modal#special-port-confirmation strong{color:#000;font-weight:600}.special-port-confirmation[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:350px;padding:24px;gap:20px}.special-port-confirmation[_ngcontent-%COMP%] .mt-content[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:5px}.special-port-confirmation__header[_ngcontent-%COMP%]{display:block;margin-top:12px}.special-port-confirmation__icon-div[_ngcontent-%COMP%]{display:flex;justify-content:center}.special-port-confirmation__icon[_ngcontent-%COMP%]{width:48px;height:48px}.special-port-confirmation__title[_ngcontent-%COMP%]{font-size:24px;font-weight:800;font-style:normal;line-height:12px;letter-spacing:-.15px;text-align:center}.special-port-confirmation__content[_ngcontent-%COMP%]{font-size:16px;font-weight:400;font-style:normal;line-height:20px;letter-spacing:.15px;text-align:center;color:#555f61}.special-port-confirmation__content__highlight[_ngcontent-%COMP%]{color:#000;font-weight:600}.special-port-confirmation__link[_ngcontent-%COMP%]{color:#2588cd;text-decoration:underline;text-decoration-style:solid;text-decoration-thickness:0;text-underline-position:from-font;font-size:18px;font-weight:600;font-style:normal;line-height:24px;text-align:center;display:flex;justify-content:center;cursor:pointer}@media screen and (max-width: 535px){.special-port-confirmation[_ngcontent-%COMP%]{width:fit-content}}"],changeDetection:0})}}return R})();var we=n(2245),ne=n(21148);let Ge=(()=>{class R{constructor(){this.translate=(0,e.WQX)(a.c$),this.localeMap=new Map([["en-GB","en-GB"],["zh","zh-CN"],["pt","pt-BR"],["es","es-MX"],["fr","fr-FR"]])}transform(i){if(!i||8!==i.length)return"";const A=parseInt(i.substring(0,4),10),P=parseInt(i.substring(4,6),10),Q=parseInt(i.substring(6,8),10),rt=new Date(A,P-1,Q);if(isNaN(rt.getTime())||rt.getFullYear()!==A||rt.getMonth()!==P-1||rt.getDate()!==Q)return"";const It=this.translate.currentLang||this.translate.defaultLang||"en",wt=this.localeMap.get(It)??"en-US";return new Intl.DateTimeFormat(wt,{year:"numeric",month:"en"===It||"en-GB"===It?"short":"long",day:"numeric"}).format(rt)}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275pipe=e.EJ8({name:"localizedDate",type:R,pure:!0,standalone:!0})}}return R})();function Ye(R,gt){if(1&R&&(e.j41(0,"span",1),e.EFF(1),e.k0s(),e.j41(2,"span",2),e.EFF(3),e.k0s()),2&R){const i=e.XpG(),A=e.r8f(1);e.R7$(),e.JRh(A),e.R7$(2),e.JRh(i.daysToGoText)}}let je=(()=>{class R{constructor(){this.translate=(0,e.WQX)(a.c$),this.windowRef=(0,e.WQX)(at.WT),this.daysLeftToSail=(0,e.hFB
776)(void 0),this.maxWidthMobile=768}ngOnInit(){this.daysToGoText=this.translate.instant("COMMON.DAYS_TO_GO")}isMobile(){return this.windowRef.nativeWindow.innerWidth<this.maxWidthMobile}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["cruise-planner-check-in-counter"]],hostBindings:function(A,P){1&A&&e.bIt("resize",function(){return P.isMobile()},!1,e.tSv)},inputs:{daysLeftToSail:[1,"daysLeftToSail"]},standalone:!0,features:[e.aNF],decls:3,vars:2,consts:[[1,"check-in-counter"],[1,"check-in-counter__days"],[1,"check-in-counter__label"]],template:function(A,P){if(1&A&&(e.j41(0,"div",0),e.SS7(1),e.DNE(2,Ye,4,2),e.k0s()),2&A){e.R7$();const Q=e.bH3(P.daysLeftToSail());e.R7$(),e.vxM(void 0!==Q?2:-1)}},styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.check-in-counter[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;padding:12px 24px;position:relative;box-sizing:border-box;text-transform:uppercase;border-radius:2px;background:linear-gradient(231deg,#1673af 8.46%,#004275);font-family:Poppins,sans-serif}.check-in-counter__days[_ngcontent-%COMP%]{color:#fff;text-align:center;font-style:normal;font-size:20px;font-weight:600;line-height:24px;letter-spacing:0}.check-in-counter__label[_ngcontent-%COMP%]{color:#fff;text-align:center;font-size:20px;font-style:normal;font-weight:600;line-height:14px;letter-spacing:1px;text-transform:uppercase;white-space:nowrap}@media screen and (max-width: 1024px){.check-in-counter[_ngcontent-%COMP%]{padding:4px 8px;border-radius:4px}.check-in-counter__days[_ngcontent-%COMP%], .check-in-counter__label[_ngcontent-%COMP%]{font-size:12px;font-style:normal;line-height:16px;letter-spacing:.15px}.check-in-counter__days[_ngcontent-%COMP%]{font-weight:600}.check-in-counter__label[_ngcontent-%COMP%]{font-weight:400}}"]})}}return R})();const pe=["RC","RS","RB","RP","RR","RW"],We=R=>({"background-image":R});function $e(R,gt){if(1&R&&(e.j41(0,"div",3),e.eu8(1,8),e.k0s()),2&R){e.XpG();const i=e.sdS(31);e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function He(R,gt){if(1&R&&(e.j41(0,"span",4)(1,"span",23),e.EFF(2),e.k0s()()),2&R){const i=e.XpG();e.R7$(2),e.JRh(i.pointsEarned())}}function Ke(R,gt){if(1&R&&e.nrm(0,"cruise-planner-check-in-counter",5),2&R){const i=e.XpG();e.Y8G("daysLeftToSail",i.daysUntilSailing())}}function Xe(R,gt){if(1&R&&(e.j41(0,"div",10),e.eu8(1,8),e.k0s()),2&R){e.XpG();const i=e.sdS(31);e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function ze(R,gt){if(1&R&&e.nrm(0,"cruise-planner-check-in-counter",11),2&R){const i=e.XpG();e.Y8G("daysLeftToSail",i.daysUntilSailing())}}function Qe(R,gt){if(1&R&&(e.nrm(0,"app-icon",24),e.EFF(1),e.nI1(2,"localizedDate")),2&R){const i=e.XpG();e.Y8G("width",16)("height",16),e.R7$(),e.SpI(" ",e.bMT(2,3,i.voyage().sailingEndDate)," ")}}function Je(R,gt){if(1&R){const i=e.RV6();e.j41(0,"app-trip-reservation-card",27),e.nI1(1,"async"),e.nI1(2,"async"),e.bIt("onManageReservation",function(P){e.eBV(i);const Q=e.XpG(2);return e.Njj(Q.handleMangeReservation(P))})("onFindHotels",function(P){e.eBV(i);const Q=e.XpG(2);return e.Njj(Q.handleFindHotels(P))})("onPlanCruise",function(P){e.eBV(i);const Q=e.XpG(2);return e.Njj(Q.handlePlanCruise(P))}),e.k0s()}if(2&R){const i=e.XpG().$implicit,A=e.XpG();e.Y8G("booking",i)("brand",A.brand())("voyage",A.voyage())("tripType",A.tripType())("royalUpActive",A.royalUpActive())("shouldShowRiverCruiseHotelsBanner",A.shouldShowRiverCruiseHotelsBanner())("banner",A.hasBookingLevelBanner()?A.bookingBanners().get(i.bookingId):void 0)("eDocs",e.bMT(1,9,A.getEdocsForBooking(i.bookingId)))("luggageTags",e.bMT(2,11,A.getLuggageTagsForBooking(i.bookingId)))}}function Ze(R,gt){if(1&R){const i=e.RV6();e.j41(0,"app-trip-reservation-card",28),e.bIt("onRebook",function(P){e.eBV(i);const Q=e.XpG(2);return e.Njj(Q.handleRebook(P))}),e.k0s()}if(2&R){const i=e.XpG().$implicit,A=e.XpG();e.Y8G("booking",i)("brand",A.brand())("voyage",A.voyage())("tripType",A.tripType())("enableFolioPostCruisePdf",!!A.enableFolioPostCruisePdf())}}function qe(R,gt){if(1&R&&e.DNE(0,Je,3,13,"app-trip-reservation-card",25)(1,Ze,1,5,"app-trip-reservation-card",26),2&R){const i=e.XpG();e.vxM("upcoming"===i.tripType()?0:"past"===i.tripType()?1:-1)}}function tn(R,gt){if(1&R&&(e.j41(0,"div",29),e.EFF(1),e.k0s()),2&R){const i=e.XpG();e.R7$(),e.SpI(" ",i.itineraryDescription()," ")}}function Gt(R,gt){if(1&R){const i=e.RV6();e.j41(0,"app-banner-message",30),e.nI1(1,"translate"),e.nI1(2,"translate"),e.bIt("onClick",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.banner().onClick?P.banner().onClick():null)}),e.k0s()}if(2&R){const i=e.XpG();e.Y8G("icon",i.banner().icon)("iconColor",i.banner().iconColor)("message",i.banner().useTranslate?e.bMT(1,7,i.banner().message):i.banner().message)("subMessage",i.banner().subMessage)("borderColor",i.banner().borderColor)("ctaLabel",i.banner().ctaLabel?e.bMT(2,9,i.banner().ctaLabel):"")("appOnlyCheckInActive",i.showOlciAppOnly())}}let Kt=(()=>{class R{constructor(){this.translateService=(0,e.WQX)(a.c$),this.dateService=(0,e.WQX)(at.fx),this.bookingFacade=(0,e.WQX)(at.ZO),this.injector=(0,e.WQX)(e.zZn),this.urls=(0,e.WQX)(at.aT),this.utilityService=(0,e.WQX)(at.QY),this.sessionService=(0,e.WQX)(at.x3),this.runtime=(0,e.WQX)(at.sq),this.tripsRepository=(0,e.WQX)(at.IE),this.store=(0,e.WQX)(Z.il),this.bookingsRepository=(0,e.WQX)(Be.I),this.windowRef=(0,e.WQX)(at.WT),this.checkInPayload={payload:{booking:null}},this.TRANSLATION_BASE="CUSTOMER_JOURNEY.DASHBOARD.NOTIFICATIONS.PAYMENT_DUE_WARNING",this.actions$=(0,e.WQX)(ye.En),this.checkInFailState=(0,kt.ot)(this.actions$.pipe((0,ye.gp)(Ct.zK.checkInBookingFail),(0,Ue.T)(i=>i.payload))),this.colors=xt.Jy,this.CheckInStages=xt.Lc,this.BRANDS=St.rI,this.brand=(0,e.hFB
776)(),this.voyage=(0,e.hFB)(),this.bookings=(0,e.hFB)(),this.bookingStage=(0,e.hFB)(),this.tripType=(0,e.hFB)(),this.isLoyaltyEnrolled=(0,e.hFB)(!1),this.onManageReservation=(0,e.CGW)(),this.onPlanCruise=(0,e.CGW)(),this.onRebook=(0,e.CGW)(),this.onFindHotels=(0,e.CGW)(),this.voyageImg=(0,e.EWP)(()=>this.getVoyageImage(this.voyage())),this.itineraryDescription=(0,e.EWP)(()=>this.getItineraryDescription(this.voyage())),this.shipName=(0,e.EWP)(()=>this.voyage()?.shipName?.toLowerCase()||""),this.hasCourtesyHold=(0,e.EWP)(()=>this.validateCourtesyHoldInfo()),this.hasPaymentDue=(0,e.EWP)(()=>this.bookings()?.some(i=>!!i.balanceDue&&!!i.isDirect)??!1),this.hasBookingLevelBanner=(0,e.EWP)(()=>this.hasPaymentDue()||this.hasCourtesyHold()),this.isCheckedIn=(0,e.EWP)(()=>this.bookings().some(i=>i.isCheckedIn)),this.daysUntilSailing=(0,e.EWP)(()=>{const i=this.voyage()?.sailDate;if(!i)return 0;const A=this.dateService.parseDate({date:i,entryFormat:"YYYYMMDD",format:"YYYY-MM-DD"}),P=this.dateService.getDaysFromNow(A);return Math.max(P,0)}),this.totalPoints=(0,e.EWP)(()=>(this.bookings()??[]).reduce((A,P)=>A+(parseInt(P.points,10)||0),0)),this.showOlciAppOnly=(0,e.EWP)(()=>{const i=this.voyage();if(!i?.sailDate||!i?.shipCode)return!1;
776const P=this.launchDarklyFlags()?.[ne.mA.OLCI_APP_ONLY];return!(!P||"object"!=typeof P)&&!!P[`${this.dateService.parseDate({date:i.sailDate,entryFormat:"YYYYMMDD",format:"YYYY-MM-DD"})}-${i.shipCode}`]}),this.showCheckInButton=(0,e.EWP)(()=>this.utilityService.isMobile()&&this.showOlciAppOnly()),this.banner=(0,e.EWP)(()=>this.setBannerInfo()),this.royalUpActive=(0,e.EWP)(()=>this.runtime?.webConfig?.ga?.gaRoyalUp??!1),this.isOpen=(0,e.vPA)(!1),this.launchDarklyFlags=this.store.selectSignal(we.QO),this.enableFolioPostCruisePdf=(0,e.EWP)(()=>this.launchDarklyFlags()[ne.mA.IS_FOLIO_POST_CRUISE_PDF_ENABLED]??!1),this.pointsEarned=(0,e.EWP)(()=>this.translateService.instant("CUSTOMER_JOURNEY.MY_TRIPS.POINTS_EARNED",{points:this.totalPoints()})),this.riverCruiseHotelsBannerEnabled=(0,e.EWP)(()=>this.runtime?.webConfig?.ga?.riverCruiseHotelsBanner??!1),this.shouldShowRiverCruiseHotelsBanner=(0,e.EWP)(()=>{const i=this.voyage()?.shipCode;return function Ve(R,gt,i){return!!(R&>&&i&&pe.includes(R.toUpperCase()))&>===St.rI.celebrity}(i,this.brand(),this.riverCruiseHotelsBannerEnabled())}),this.specialPortConfirmationComponent=(0,e.ebz)(ue),this.courtesyHoldBanners=(0,e.EWP)(()=>{const i=new Map;for(const A of this.bookings()??[])i.set(A.bookingId,this.bannerForBooking(A));return i}),this.paymentDueBanners=(0,e.EWP)(()=>{const i=new Map;for(const A of this.bookings()??[]){if(!A.balanceDue||!A.isDirect){i.set(A.bookingId,null);continue}const P=!!A.balanceDueDate&&/^\d{8}$/.test(A.balanceDueDate),rt=this.buildPaymentDueSubMessage(A,!!A.balanceDueAmount,P);i.set(A.bookingId,{show:!0,icon:"warning",iconColor:this.colors.warningDark,message:this.translateService.instant(`${this.TRANSLATION_BASE}.HEADING`),subMessage:rt,borderColor:this.colors.warning,ctaLabel:St.Mj.PAYMENT_DUE,onClick:()=>this.handlePayment(A),useTranslate:!0})}return i}),this.bookingBanners=(0,e.EWP)(()=>{const i=this.paymentDueBanners(),A=this.courtesyHoldBanners(),P=new Map;for(const Q of this.bookings()??[]){const rt=A.get(Q.bookingId);if(rt?.show)P.set(Q.bookingId,rt);else{const It=i.get(Q.bookingId);It?.show&&P.set(Q.bookingId,It)}}return P}),this.setupCheckInBookingFailEffects()}getEdocsForBooking(i,A="pdf"){return this.bookingsRepository.getEdocsForBooking(i,A)}getLuggageTagsForBooking(i,A="bagtag"){return this.bookingsRepository.getEdocsForBooking(i,A)}handleMangeReservation(i){this.onManageReservation.emit(i)}handleFindHotels(i){this.onFindHotels.emit(i)}handlePlanCruise(i){this.onPlanCruise.emit(i)}handleRebook(i){this.onRebook.emit(i)}handlePayment(i){this.tripsRepository.redirectToPayment(i)}bannerForBooking(i){return this.isCourtesyHoldEligible(i)?{show:!0,icon:"warning",iconColor:this.colors.warningDark,message:this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.NOTIFICATIONS.COURTESY_HOLD"),subMessage:this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.NOTIFICATIONS.COURTESY_HOLD_SUBMESSAGE"),borderColor:this.colors.warning,ctaLabel:St.Mj.PAYMENT_DUE,onClick:()=>this.handlePayment(i),useTranslate:!0}:{show:!1,icon:"",iconColor:"",message:"",borderColor:""}}setBannerInfo(){const i=this.showOlciAppOnly(),A=this.utilityService.isMobile(),P=!i||A;switch(this.bookingStage()){case xt.Lc.HasNotOpened:return{show:!0,icon:"information",iconColor:this.colors.information,message:this.getCheckInStagesMessage(),subMessage:"",borderColor:this.colors.information,ctaLabel:this.getCTALabel(),onClick:void 0,useTranslate:!0};case xt.Lc.Opened:return this.isCheckedIn()?{show:!0,icon:"schedule",iconColor:this.colors.success,message:this.getCheckInStagesMessage(),subMessage:this.getCheckInStagesSubMessage(),borderColor:this.colors.success,ctaLabel:P?this.getCTALabel():void 0,onClick:P?()=>this.onStartOrEditCheckInClicked():void 0,useTranslate:!0}:{show:!0,icon:"information",iconColor:this.colors.information,message:this.getCheckInStagesMessage(),subMessage:this.getCheckInStagesSubMessage(),borderColor:this.colors.information,ctaLabel:P?this.getCTALabel():void 0,onClick:P?()=>this.onStartOrEditCheckInClicked():void 0,useTranslate:!0};case xt.Lc.CloseInApp:return{show:!0,icon:"information",iconColor:this.colors.information,message:this.getCheckInStagesMessage(),subMessage:this.getCheckInStagesSubMessage(),borderColor:this.colors.information,ctaLabel:P?this.getCTALabel():void 0,onClick:P?()=>this.onStartOrEditCheckInClicked():void 0,useTranslate:!0};default:return{show:!1,icon:"",iconColor:"",message:"",subMessage:"",borderColor:"",ctaLabel:void 0,onClick:void 0,useTranslate:!1}}}
776getVoyageImage(i){const A=i?.voyageImage?i.voyageImage?.web?.length>0?i.voyageImage?.web[0]?.fileReference:i.voyageImage:"",P=A?`${j.ai}${A}${xt.hJ.CRUISE_CARD}`:"";return P?`url(${P})`:""}getItineraryDescription(i){const A=j.Az;return i?.itinerary?.description?i.itinerary.description.toLowerCase():i?.itineraryDescription?i.itineraryDescription.toLowerCase():A}isCourtesyHoldEligible(i){if(!i.offerExpirationDate||!i.isDirect)return!1;const A=this.dateService.parseDate({date:i.offerExpirationDate,entryFormat:"YYYYMMDD",format:"YYYY-MM-DD"});return this.dateService.getDaysFromNow(A)>=0}validateCourtesyHoldInfo(){return this.bookings()?.some(i=>this.isCourtesyHoldEligible(i))??!1}buildPaymentDueSubMessage(i,A,P){const Q=this.getTranslationKey(A,P);if(!Q)return"";const rt={...A?this.getAmountParams(i):{},...P?this.getDateParams(i):{}};return this.translateService.instant(`${this.TRANSLATION_BASE}.${Q}`,rt)}getTranslationKey(i,A){return i&&A?"SUB_HEADING":i?"SUB_HEADING_AMOUNT_ONLY":A?"SUB_HEADING_DATE_ONLY":null}getAmountParams(i){const{bookingCurrency:A,balanceDueAmount:P}=i;return{currency:A,currencySymbol:(0,xt.Qn)(A),paymentAmount:P.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}}getDateParams(i){const A=i.balanceDueDate,P=this.dateService.getMonthNames("short");return{day:A.slice(6,8),month:P[Number(A.slice(4,6))-1]??"",year:A.slice(0,4)}}startCheckin(){if(this.utilityService.isMobile()){const A=this.urls.list?.START_CHECK_IN;A&&this.windowRef.nativeWindow.open(A,"_blank","noopener,noreferrer"),setTimeout(()=>{let P="";this.utilityService.isIOs()?P=this.urls.list?.IOS_STORE||"":this.utilityService.isAndroid()&&(P=this.urls.list?.ANDROID_STORE||""),P&&(this.windowRef.nativeWindow.location.href=P)},2e3)}}onStartOrEditCheckInClicked(){const i=this.showOlciAppOnly();if(this.utilityService.isMobile()&&i)this.startCheckin();else{const A=this.voyage().departurePort;this.checkInBooking({booking:this.bookings()[0],portCode:A})}}getCheckInStagesMessage(){switch(this.bookingStage()){case xt.Lc.HasNotOpened:return this.translateService.instant("CUSTOMER_JOURNEY.CHECK_IN.CHECK_IN_UNAVAILABLE_OPENS",{date:this.utilityService.getDateCheckInStart(this.voyage()?.formatedStarDate)});case xt.Lc.Opened:return this.isCheckedIn()?this.translateService.instant("BOOKING_CARDS.ACTIONS.CHECK_IN.SECONDARY.BEFORE_CHECK_IN_CLOSES.IS_CHECKED_IN"):this.showOlciAppOnly()?this.translateService.instant("CUSTOMER_JOURNEY.CHECK_IN.APP_CHECK_IN_AVAILABLE"):this.translateService.instant("CUSTOMER_JOURNEY.CHECK_IN.ONLINE_CHECK_IN_AVAILABLE");case xt.Lc.CloseInApp:return this.isCheckedIn()?this.translateService.instant("CUSTOMER_JOURNEY.CHECK_IN.ONLINE_CHECK_IN_COMPLETE"):this.translateService.instant("CUSTOMER_JOURNEY.CHECK_IN.ONLINE_CHECK_IN_CLOSED");default:return""}}getCheckInStagesSubMessage(){return this.bookingStage()===xt.Lc.CloseInApp?this.isCheckedIn()?this.translateService.instant("CUSTOMER_JOURNEY.CHECK_IN.SUB_MESSAGE.BOARDING_PASS_READY"):this.translateService.instant("CUSTOMER_JOURNEY.CHECK_IN.SUB_MESSAGE.CHECK_IN_PORT"):""}getCTALabel(){return this.isCheckedIn()&&this.bookingStage()===xt.Lc.Opened?this.translateService.instant(St.Mj.MODIFY_CHECK_IN):this.isCheckedIn()||this.bookingStage()!==xt.Lc.Opened?this.isCheckedIn()&&this.bookingStage()===xt.Lc.CloseInApp?this.translateService.instant(St.Mj.VIEW_BOARDING_PASS):"":this.translateService.instant(St.Mj.START_CHECK_IN)}checkInBooking({booking:i,portCode:A}){this.sessionService.isSessionActive()?(this.checkInPayload={payload:{booking:i}},"royal"===this.brand()&&this.runtime?.webConfig?.ga?.chinaPorts?.enabled&&this.runtime?.webConfig?.ga?.chinaPorts?.list.includes(A)?this.showSpecialPortConfirmation():this.bookingFacade.fetchCheckInInfo(this.checkInPayload)):this.setCopysAndOpenModal("EXPIRED_SESSION_ERROR_MODAL","server",null)}setCopysAndOpenModal(i,A,P){this.errorHeaderModal=this.translateService.instant("server"===A?`ERRORS.${i}.HEADER`:`UPCOMING_CRUISES.HEADER.${i}`),this.errorToDisplayModal="server"===A?this.translateService.instant(`ERRORS.${i}.BODY`):this.translateService.instant(`UPCOMING_CRUISES.${i}`,{bookingId:P}),this.errorInteractionModal="server"===A?`ERRORS.${i}.HEADER`:`UPCOMING_CRUISES.HEADER.${i}`,this.isOpen.set(!0)}showSpecialPortConfirmation(){this.specialPortConfirmationComponent()?.open()}toggleModal(){this.isOpen.set(!this.isOpen())}handleConfirm(){this.isOpen.set(!1)}continueCheckIn(){this.bookingFacade.fetchCheckInInfo(this.checkInPayload)}setupCheckInBookingFailEffects(){(0,e.QZP)(()=>{this.checkInFailState()&&this.setCopysAndOpenModal("SERVER_ERROR_OLCI_MODAL","server",null)},{injector:this.injector,allowSignalWrites:!0})}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-trip-card"]],viewQuery:function(A,P){1&A&&e.wEZ(P.specialPortConfirmationComponent,ue,5),2&A&&e.NyB()},inputs:{brand:[1,"brand"],voyage:[1,"voyage"],bookings:[1,"bookings"],bookingStage:[1,"bookingStage"],tripType:[1,"tripType"],isLoyaltyEnrolled:[1,"isLoyaltyEnrolled"]},outputs:{onManageReservation:"onManageReservation",onPlanCruise:"onPlanCruise",onRebook:"onRebook",onFindHotels:"onFindHotels"},standalone:!0,features:[e.aNF],decls:41,vars:31,consts:[["title",""],["bannerTemplate",""],[1,"trip-card"],[1,"trip-card__banner--mobile"],[1,"trip-card__points-pill"],[1,"trip-card__countdown","trip-card__countdown--mobile",3,"daysLeftToSail"],[1,"trip-card__image-content"],[1,"trip-card__image",3,"ngStyle"],[3,"ngTemplateOutlet"],[1,"trip-card__content"],[1,"trip-card__banner--desktop"],[1,"trip-card__countdown",3,"daysLeftToSail"],[1,"trip-card__voyage-row"],[1,"trip-card__voyage-info"],["tabindex","0",1,"trip-card__text"],[1,"trip-card__text--bold"],[1,"trip-card__reservations"],[3,"modalClosed","brand","isOpen","widthInPx"],["header",""],["content",""],["actions",""],["type","button",3,"onClick","brand","text"],[3,"continueCheckIn"],[1,"trip-card__pill-text"],["name","arrow",3,"width","height"],[3,"booking","brand","voyage","tripType","royalUpActive","shouldShowRiverCruiseHotelsBanner","banner","eDocs","luggageTags"],[3,"booking","brand","voyage","tripType","enableFolioPostCruisePdf"],[3,"onManageReservation","onFindHotels","onPlanCruise","booking","brand","voyage","tripType","royalUpActive","shouldShowRiverCruiseHotelsBanner","banner","eDocs","luggageTags"],[3,"onRebook","booking","brand","voyage","tripType","enableFolioPostCruisePdf"],["tabindex","0",1,"trip-card__title"],[3,"onClick","icon","iconColor","message","subMessage","borderColor","ctaLabel","appOnlyCheckInActive"]],template:function(A,P){if(1&A){const Q=e.RV6();e.j41(0,"div",2),e.DNE(1,$e,2,1,"div",3)(2,He,3,1,"span",4)(3,Ke,1,1,"cruise-planner-check-in-counter",5),e.j41(4,"div",6),e.nrm(5,"div",7),e.eu8(6,8),e.k0s(),e.j41(7,"div",9),e.DNE(8,Xe,2,1,"div",10)(9,ze,1,1,"cruise-planner-check-in-counter",11),e.j41(10,"div",12)(11,"div",13),e.eu8(12,8),e.j41(13,"div",14)(14,"span",15),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.EFF(17),e.k0s(),e.j41(18,"div",14)(19,"span",15),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.EFF(22),e.nI1(23,"localizedDate"),e.DNE(24,Qe,3,5),e.k0s()()(),e.j41(25,"div",16),e.Z7z(26,qe,2,1,null,null,e.Vm6),e.k0s()()(),e.DNE(28,tn,2,1,"ng-template",null,0,e.C5r)(30,Gt,3,11,"ng-template",null,1,e.C5r),e.j41(32,"shared-modal",17),e.bIt("modalClosed",function(){return e.eBV(Q),e.Njj(P.toggleModal())}),e.j41(33,"div",18),e.EFF(34),e.k0s(),e.j41(35,"div",19),e.EFF(36),e.k0s(),e.j41(37,"div",20)(38,"app-primary-button",21),e.nI1(39,"translate"),e.bIt("onClick",function(){return e.eBV(Q),e.Njj(P.handleConfirm())}),e.k0s()()(),e.j41(40,"cruise-planner-special-port-confirmation",22),e.bIt("continueCheckIn",function(){return e.eBV(Q),e.Njj(P.continueCheckIn())}),e.k0s()}if(2&A){const Q=e.sdS(29);e.AVh("trip-card--celebrity",P.brand()===P.BRANDS.celebrity),e.R7$(),e.vxM(P.banner().show&&!P.hasBookingLevelBanner()?1:-1),e.R7$(),e.vxM("past"===P.tripType()&&P.isLoyaltyEnrolled()&&P.totalPoints()>=0?2:-1),e.R7$(),e.vxM("upcoming"===P.tripType()&&P.voyage()&&!P.voyage().canceled?3:-1),e.R7$(2),e.Y8G("ngStyle",e.eq3(29,We,P.voyageImg())),e.R7$(),e.Y8G("ngTemplateOutlet",Q),e.R7$(2),e.vxM(P.banner().show&&!P.hasBookingLevelBanner()?8:-1),e.R7$(),e.vxM("upcoming"===P.tripType()&&P.voyage()&&!P.voyage().canceled?9:-1),e.R7$(3),e.Y8G("ngTemplateOutlet",Q),e.R7$(3),e.SpI(" ",e.bMT(16,21,"COMMON.ONBOARD")," "),e.R7$(2),e.SpI(" ",P.shipName()," "),e.R7$(3),e.SpI(" ",e.bMT(21,23,"COMMON.DATES")," "),e.R7$(2),e.SpI(" ",e.bMT(23,25,P.voyage().sailDate)," "),e.R7$(2),e.vxM(P.voyage().sailingEndDate?24:-1),e.R7$(2),e.Dyx(P.bookings()),e.R7$(6),e.Y8G("brand",P.brand())("isOpen",P.isOpen()),e.R7$(2),e.SpI(" ",P.errorHeaderModal," "),e.R7$(2),e.SpI(" ",P.errorToDisplayModal," "),e.R7$(2),e.Y8G("brand",P.brand())("text",e.bMT(39,27,"COMMON.OKAY"))}},dependencies:[Fe,t.MD,t.T3,t.B3,t.Jj,a.h,a.D9,f.R,bt,T.z,D.A,ue,Ge,je],styles:['[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.trip-card[_ngcontent-%COMP%]{display:flex;position:relative;gap:24px;padding:24px;border-radius:4px;box-shadow:0 2px 4px #35363726}.trip-card__image[_ngcontent-%COMP%]{width:278px;height:278px;background-size:cover;border-radius:4px;background-image:url(/myaccount/assets/images/celebrity/icons/resiliency-image.png);background-color:#d3d3d3}.trip-card__points-pill[_ngcontent-%COMP%]{position:absolute;top:34px;left:34px;padding:8px 16px;border-radius:20px;border:1px solid #ABF8DC;background-color:#e6f3f4;color:#055c64;font-size:16px;font-weight:600;line-height:24px;white-space:nowrap;z-index:1}.trip-card__content[_ngcontent-%COMP%], .trip-card__reservations[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;
776gap:16px;flex:1}.trip-card__voyage-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.trip-card__voyage-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.trip-card__countdown[_ngcontent-%COMP%]{align-self:flex-start;flex-shrink:0}.trip-card__countdown--mobile[_ngcontent-%COMP%]{display:none}.trip-card__title[_ngcontent-%COMP%]{color:#002859;font-size:24px;font-style:normal;font-weight:600;line-height:32px;text-transform:capitalize}.trip-card__image-content[_ngcontent-%COMP%]{display:block}.trip-card__image-content[_ngcontent-%COMP%] .trip-card__title[_ngcontent-%COMP%]{display:none}.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__points-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;border-radius:0;border:none;padding:0;margin-left:15px;margin-top:5px;background-color:transparent;position:absolute}.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]{background-color:#e6f3f4;color:#055c64;padding:4px 16px;font-size:15px;font-weight:600;line-height:24px;display:inline-flex;align-items:center;white-space:nowrap;position:relative}.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:before, .trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;bottom:0;width:16px;background-color:#e6f3f4}.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:before{left:-8px;transform:skew(-20deg)}.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:after{right:-8px;transform:skew(-20deg)}.trip-card__text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:18px;font-style:normal;font-weight:400;line-height:32px;color:#535455;text-transform:capitalize}.trip-card__text--bold[_ngcontent-%COMP%]{color:#002859;font-weight:600;text-transform:capitalize;min-width:80px}.trip-card[_ngcontent-%COMP%] app-banner-message[_ngcontent-%COMP%]{margin-bottom:8px}.trip-card__banner--mobile[_ngcontent-%COMP%]{display:none}.trip-card__banner--desktop[_ngcontent-%COMP%]{display:block;margin-bottom:8px}@media screen and (max-width: 1024px){.trip-card[_ngcontent-%COMP%]{flex-direction:column;gap:16px}.trip-card__banner--mobile[_ngcontent-%COMP%]{display:block}.trip-card__banner--desktop[_ngcontent-%COMP%]{display:none}.trip-card__image[_ngcontent-%COMP%]{width:72px;height:72px;border-radius:2px;flex-shrink:0}.trip-card__points-pill[_ngcontent-%COMP%]{position:static;display:inline-block;padding:2px 8px;border-radius:20px;border:1px solid #ABF8DC;background-color:#e6f3f4;color:#055c64;font-size:12px;font-weight:700;line-height:16px;white-space:nowrap;align-self:flex-start}.trip-card__title[_ngcontent-%COMP%]{font-size:20px;line-height:24px}.trip-card__text[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.trip-card__voyage-info[_ngcontent-%COMP%] .trip-card__title[_ngcontent-%COMP%]{display:none}.trip-card__voyage-row[_ngcontent-%COMP%]{flex-direction:column;gap:0}.trip-card__countdown[_ngcontent-%COMP%]{display:none}.trip-card__countdown--mobile[_ngcontent-%COMP%]{display:block;align-self:flex-start}.trip-card__image-content[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center}.trip-card__image-content[_ngcontent-%COMP%] .trip-card__title[_ngcontent-%COMP%]{display:block}.trip-card.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__points-pill[_ngcontent-%COMP%]{position:static;display:inline-flex;align-items:center;align-self:flex-start;border-radius:0;border:none;padding:0;background-color:transparent}.trip-card.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]{background-color:#e6f3f4;color:#055c64;font-size:12px;padding:4px 12px;font-weight:700;line-height:16px;display:inline-flex;align-items:center;white-space:nowrap;position:relative}.trip-card.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:before, .trip-card.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;bottom:0;width:12px;background-color:#e6f3f4}.trip-card.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:before{left:-6px;transform:skew(-20deg)}.trip-card.trip-card--celebrity[_ngcontent-%COMP%] .trip-card__pill-text[_ngcontent-%COMP%]:after{right:-6px;transform:skew(-20deg)}}'],changeDetection:0})}}return R})();n(95498);var Ee=n(65349),ve=(n(5537),n(67249),n(16129)),be=n(64412);const Ut=[[["","header",""]],[["","content",""]],[["","actions",""]]],fn=["[header]","[content]","[actions]"];let an=(()=>
776{class R{constructor(){this.backgroundImage=(0,e.hFB)(),this.handleClick=(0,e.CGW)()}onCtaClick(){this.handleClick.emit()}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-custom-template"]],inputs:{backgroundImage:[1,"backgroundImage"]},outputs:{handleClick:"handleClick"},standalone:!0,features:[e.aNF],ngContentSelectors:fn,decls:8,vars:2,consts:[["type","button",1,"custom-cobrand-card",3,"click"],[1,"card-content"],[1,"content__header"],[1,"content__body"],[1,"content__actions"]],template:function(A,P){1&A&&(e.NAR(Ut),e.j41(0,"button",0),e.bIt("click",function(){return P.onCtaClick()}),e.j41(1,"div",1)(2,"div",2),e.SdG(3),e.k0s(),e.j41(4,"div",3),e.SdG(5,1),e.k0s(),e.j41(6,"div",4),e.SdG(7,2),e.k0s()()()),2&A&&e.xc7("background-image",P.backgroundImage())},dependencies:[t.MD],styles:['[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.custom-cobrand-card[_ngcontent-%COMP%] .content__actions[_ngcontent-%COMP%], .custom-cobrand-card[_ngcontent-%COMP%] .content__header[_ngcontent-%COMP%] .title{color:#fff;text-align:center;font-feature-settings:"liga" off,"clig" off;font-family:Proxima Nova,sans-serif;font-style:normal}.custom-cobrand-card[_ngcontent-%COMP%] .content__header[_ngcontent-%COMP%], .custom-cobrand-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.custom-cobrand-card[_ngcontent-%COMP%]{width:198.9px;height:234px;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden}.custom-cobrand-card[_ngcontent-%COMP%]{background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#f5f5f5;cursor:pointer}.custom-cobrand-card[_ngcontent-%COMP%]:is(button){appearance:none;border:none;padding:0;font-size:inherit}.custom-cobrand-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:16px;justify-content:space-between;box-sizing:border-box;height:100%}.custom-cobrand-card[_ngcontent-%COMP%] .content__header[_ngcontent-%COMP%]{gap:9.36px}.custom-cobrand-card[_ngcontent-%COMP%] .content__header[_ngcontent-%COMP%] .title{font-size:18px;font-weight:600;margin:10px 0 -8px;line-height:18px}.custom-cobrand-card[_ngcontent-%COMP%] .content__actions[_ngcontent-%COMP%]{font-weight:600;cursor:pointer;display:flex;transition:opacity .2s ease;gap:5px}.custom-cobrand-card[_ngcontent-%COMP%] .content__actions[_ngcontent-%COMP%]:hover{opacity:.8}.custom-cobrand-card[_ngcontent-%COMP%] .content__actions[_ngcontent-%COMP%] .actions{display:flex}.custom-cobrand-card[_ngcontent-%COMP%] .content__actions[_ngcontent-%COMP%] .cta-icon{position:relative;top:2px}'],changeDetection:0})}}return R})();var re=n(97513),_n=n(87343),se=n(39928);function Cn(R,gt){if(1&R){const i=e.RV6();e.j41(0,"app-custom-template",4),e.bIt("handleClick",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.handleCustomTemplateCtaClicked())}),e.j41(1,"div",5)(2,"span",6),e.EFF(3),e.k0s()(),e.j41(4,"div",7)(5,"span"),e.EFF(6),e.k0s(),e.j41(7,"span",8),e.nrm(8,"img",9),e.k0s()()()}if(2&R){const i=e.XpG();e.Y8G("backgroundImage",null==i.templateContent?null:i.templateContent.backgroundImage),e.R7$(3),e.JRh(null==i.templateContent?null:i.templateContent.title),e.R7$(3),e.JRh(null==i.templateContent?null:i.templateContent.ctaText),e.R7$(2),e.Y8G("src","assets/images/"+i.brand+"/icons/right.svg",e.B4B)}}function yn(R,gt){if(1&R){const i=e.RV6();e.j41(0,"app-cobrand-transformation-program-card",10),e.bIt("retryFetch",function(){e.eBV(i);const P=e.XpG();return e.Njj(P.handleRetryFetchCobrandInfo())}),e.k0s()}if(2&R){let i;const A=e.XpG();e.Y8G("account",A.account())("aemData",null==(i=A.account())||null==i.loyaltyInformation?null:i.loyaltyInformation.aemData)("language",A.language)("koddiNonChAdsData",A.koddiNonChAdsData())("isKoddiNonChAdsLoading",A.isKoddiNonChAdsLoading())("royalOneActionUrl",A.koddiRoyalOneActionUrl())("royalOnePlusActionUrl",A.koddiRoyalOnePlusActionUrl())}}function En(R,gt){if(1&R){const i=e.RV6();e.j41(0,"div",3)(1,"div",11)(2,"rcg-cobrand-component",12),e.bIt("clickedCta",function(P){e.eBV(i);const Q=e.XpG();return e.Njj(Q.handleCtaClicked(P))})("errorStatus",function(P){e.eBV(i);const Q=e.XpG();return e.Njj(Q.handleError(P))})("click",function(){e.eBV(i);const P=e.XpG();
776return e.Njj(P.handleOldCobrandCardClick())})("keydown",function(P){e.eBV(i);const Q=e.XpG();return e.Njj(Q.handleOldCobrandCardKeyDown(P))}),e.k0s()()()}if(2&R){let i,A;const P=e.XpG();e.R7$(2),e.Y8G("apiConfig",P.setCobrandComponentPayload())("content",null==(i=P.enhancedAemLoyaltyHubData())||null==i.payload?null:i.payload.header)("cardLinkStatusContent",null==(A=P.enhancedAemLoyaltyHubData())||null==A.payload?null:A.payload.link)("cobrandCardInfo",P.cobrandCardInfo)("analyticsData",P.analyticsPayload)("showExtendedInfo",!1)}}let vn=(()=>{class R{get launchDarklyFlags(){return this.launchDarklyFacade.getLaunchDarklyFlags}constructor(){this.ctaClicked=new e.bkB,this.errorStatus=new e.bkB,this.brand=j.qt,this.damUrl=re.A.AEM_PATH,this.ldFlagEnabled=(0,e.EWP)(()=>this.featureFlagsService.isLDFlagEnabled(ne.mA.ENABLE_COBRAND_TRANSFORMATION_PROGRAM)),this.store=(0,e.WQX)(Z.il),this.getAccountData=this.store.selectSignal(Ct.Qx),this.cobrandHubError=this.store.selectSignal(Ct.Pk),this.launchDarklyFacade=(0,e.WQX)(be.M),this.localizationService=(0,e.WQX)(at.Pi),this.sessionService=(0,e.WQX)(at.x3),this.accountFacade=(0,e.WQX)(at.PP),this.featureFlagsService=(0,e.WQX)(_n.f),this.translateService=(0,e.WQX)(a.c$),this.account=this.accountFacade.getAccountData,this.aemLoyaltyHubData=(0,e.EWP)(()=>this.getAccountData()?.loyaltyInformation?.aemLoyaltyHubData||null),this.enhancedAemLoyaltyHubData=(0,e.EWP)(()=>{const i=this.aemLoyaltyHubData();if(!i)return null;const A=`${this.brand}Banners`,P=i.payload,Q=P?.[A]||P?.royalBanners;return{...i,payload:{...i.payload,header:{...i.payload?.header||Q||{},viewDetailsText:this.viewDetailsText,bonusPointOfferText:this.bonusPointOfferText,applyNowText:this.applyNowText,mycruiseRewardLabel:this.mycruiseRewardLabel}}}}),this.customTemplateContent=(0,e.EWP)(()=>{const i=this.account();if(!i)return null;const A=`${this.brand}Banners`,P=i?.loyaltyInformation?.aemData?.payload;return P?.[A]||P?.royalBanners||null}),this.nonCardHolderCustomTemplateContent=(0,e.EWP)(()=>{const i=this.customTemplateContent();return i?{backgroundImage:i.CREDIT_CARD_NON_CH_IMAGE_URL?`url(${this.damUrl}${i.CREDIT_CARD_NON_CH_IMAGE_URL})`:"",title:i.CREDIT_CARD_NON_CH_HEADER,ctaText:i.EXPLORE_CRUISES}:{backgroundImage:`url(assets/images/${this.brand}/credit-no-ch-bg-${this.brand}.png)`,title:this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS.BOOK_YOUR_NEXT_CRUISE_TITLE"),ctaText:this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS.BOOK_YOUR_NEXT_CRUISE_CTA")}}),this.isKoddiNonChAdsEnabled=(0,e.EWP)(()=>this.featureFlagsService.isLDFlagEnabled(ne.mA.ENABLE_COBRAND_KODDI_ADS)),this.isCobrandBlockFlagEnabled=(0,e.EWP)(()=>this.featureFlagsService.isLDFlagEnabled(ne.mA.ENABLE_COBRAND_BLOCK_FLAG)),this.isKoddiEligible=this.accountFacade.isKoddiEligible,this.loyaltyInfoResponseCode=(0,e.EWP)(()=>{const i=this.cobrandHubError();return i?i?.status??i?.error?.status??i?.error?.error?.status??null:null}),this.loyaltyInfoHasError=(0,e.EWP)(()=>{const i=this.loyaltyInfoResponseCode();return null!==i&&i>=400}),this.isKoddiNonChAdsLoading=(0,e.EWP)(()=>!!this.isKoddiNonChAdsEnabled()&&!!this.account()?.loyaltyInformation?.koddiNonChAdsLoading),this.koddiNonChAdsData=(0,e.EWP)(()=>{const i=this.account()?.loyaltyInformation?.koddiNonChAdsData??null;return i?i.find(A=>"COBRAND"===A.adType&&"RO"===A.productCode)??null:null}),this.koddiRoyalOneActionUrl=(0,e.EWP)(()=>this.koddiNonChAdsData()?.assets?.actionUrl),this.koddiRoyalOnePlusActionUrl=(0,e.EWP)(()=>(this.account()?.loyaltyInformation?.koddiNonChAdsData??null)?.find(A=>"COBRAND"===A.adType&&"RP"===A.productCode)?.assets?.actionUrl),this.isKoddiNonChAdsFailed=(0,e.EWP)(()=>{if(!this.isKoddiEligible())return!1;const i=this.account()?.loyaltyInformation;return!i?.koddiNonChAdsLoading&&!!i?.koddiNonChAdsError}),this.isKoddiNonChAdsWithoutActionUrl=(0,e.EWP)(()=>{if(!this.isKoddiNonChAdsEnabled()||!this.isKoddiEligible()||this.isKoddiNonChAdsLoading())return!1;const i=this.koddiNonChAdsData();return!!i&&!i.assets?.actionUrl}),this.isKoddiNonChAdsHasNoCobrandRo=(0,e.EWP)(()=>
776{if(!this.isKoddiEligible())return!1;const i=this.account()?.loyaltyInformation;if(i?.koddiNonChAdsLoading||void 0===i?.koddiNonChAdsData)return!1;const A=i?.koddiNonChAdsData;return!A||0===A.length||!A.some(P=>"COBRAND"===P.adType&&"RO"===P.productCode)}),this.getAuthoritativeActiveCardHolder=(0,e.EWP)(()=>{const i=this.account(),A=i?.cobrandProgram;if(this.ldFlagEnabled()&&A?.loaded&&A?.raw?.profile){const{profile:P}=A.raw;if(this.hasCobrandValidCardData(A.raw))return P.activeCardHolder;if(!1===P.activeCardHolder&&!0!==i?.cobrandCardInfo?.activeCardHolder)return!1}return i?.cobrandCardInfo?.activeCardHolder}),this.showCobrandTransformationProgramWidget=(0,e.EWP)(()=>{if(this.isCobrandBlockFlagEnabled()||!this.isLanguageEnglish())return!1;const i=this.launchDarklyFacade.getLaunchDarklyFlags();if(!(i&&Object.keys(i).length>0))return!0;if(!this.ldFlagEnabled())return!1;const Q=this.account()?.cobrandProgram;if(!Q?.loaded)return!0;const rt=this.getAuthoritativeActiveCardHolder(),It=this.hasCobrandInfoError(Q);if(this.isCardholderUnknownStatus(Q,It,void 0===rt)&&Q?.raw?.cards?.length||It&&!this.isCobrandAPIStatus(Q))return!0;if(!0===rt||!1===rt&&this.hasRedemptionEligibleInactiveCard(Q?.raw))return Q?.raw?.cards?.length>0;const Dt=Q?.raw?.cards?.filter(qt=>!(0,se.a)(qt))?.length??0;return!1===rt&&null!=Q?.raw?.cards&&0===Dt&&Q?.loaded&&Q?.raw&&!1===Q?.raw?.profile?.activeBlackoutPeriod?!this.isKoddiNonChAdsHasNoCobrandRo():!1===rt&&this.shouldShowNonCardholderWidget(Q)}),this.showCustomTemplateWidget=(0,e.EWP)(()=>{if(this.isCobrandBlockFlagEnabled()||!this.isLanguageEnglish())return!0;const i=this.launchDarklyFacade.getLaunchDarklyFlags();if(!(i&&Object.keys(i).length>0))return!1;const P=this.account();if(P?.loyaltyInformation?.aemDataError)return!0;const Q=this.getAuthoritativeActiveCardHolder(),rt=void 0===Q,It=this.loyaltyInfoHasError(),{loaded:wt,raw:Dt}=P?.cobrandProgram||{},qt=this.hasCobrandInfoError(P?.cobrandProgram),ie=Dt?.profile,ae=this.hasCobrandValidCardData(Dt)?ie?.activeCardHolder:P?.cobrandCardInfo?.activeCardHolder??ie?.activeCardHolder;if(this.ldFlagEnabled()){if(qt&&wt&&!Dt||!this.isKoddiNonChAdsEnabled()&&!ae&&wt&&!this.hasRedemptionEligibleInactiveCard(Dt))return!0;if(this.isKoddiNonChAdsEnabled()&&(ie?.activeCardHolder||P?.cobrandCardInfo?.activeCardHolder)&&wt)return!1;if(!ae&&!Dt?.cards?.length&&wt&&Dt&&Dt?.profile?.activeBlackoutPeriod||It&&qt)return!0;const Ht=P?.cobrandProgram;if(!Ht?.loaded)return!1;if(200===Ht?.status&&!Ht?.raw?.cards?.length){if(It&&(!0===Q||!0===Dt?.profile?.activeCardHolder)&&!Dt?.profile?.activeBlackoutPeriod)return!0;if(!P?.cobrandCardInfo)return!1}const me=this.hasCobrandInfoError(Ht);if(rt&&!P?.cobrandProgram?.raw?.cards?.length)return!1;if(this.isCardholderUnknownStatus(Ht,me,rt)||me&&!this.isCobrandAPIStatus(Ht)&&!rt)return!(!me||this.isCobrandAPIStatus(Ht)||rt||!this.customTemplateContent())}return!0!==Q&&(!1===Q?!this.hasRedemptionEligibleInactiveCard(P?.cobrandProgram?.raw)&&(this.ldFlagEnabled()?!(!(this.isKoddiNonChAdsFailed()||this.isKoddiNonChAdsWithoutActionUrl()||this.isKoddiNonChAdsHasNoCobrandRo())||!this.customTemplateContent())||this.shouldShowCustomTemplateForNonCardholder(P):"USA"!==P?.contactInformation?.address?.residencyCountryCode):!(void 0!==Q||!this.customTemplateContent()))}),this.ctaHandled=!1,this.viewDetailsText=this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS.VIEW_DETAILS_TEXT"),this.bonusPointOfferText=this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS.BONUS_POINT_OFFER_TEXT"),this.applyNowText=this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS.APPLY_NOW_TEXT"),this.mycruiseRewardLabel=this.translateService.instant("CUSTOMER_JOURNEY.COBRAND_WIDGETS.MYCRUISE_REWARD_LABEL"),(0,e.QZP)(()=>{this.templateContent=this.nonCardHolderCustomTemplateContent()},{allowSignalWrites:!0}),(0,e.QZP)(()=>{this.isKoddiEligible()&&this.accountFacade.fetchKoddiNonChAds()},{allowSignalWrites:!0})}ngOnInit(){this.setCobrandVariables()}setCobrandVariables(){this.environment=j.G1;const{language:i}=this.localizationService.detect();this.language=i,this.accountId=this.sessionService.getVdsIdFromAccessToken(),this.accessToken=this.sessionService.getAccessToken()}isCardholderUnknownStatus(i,A,P){return!!i?.loaded&&!A&&P}hasCobrandInfoError(i){return!!i&&!!(i.error||i.status&&i.status>=400||i.loaded&&!i.raw)}isCobrandAPIStatus(i){const A=i?.backendError?+(/statusCode:(\d+)/.exec(String(i.backendError))?.[1]??-1):i?.status??-1;return[0,404,408].includes(A)}isLanguageEnglish(){return!this.language||this.localizationService.isEnglishLanguage(this.language)}hasCobrandValidCardData(i){if(!i)return!1;const A=i.profile;if(!A)return!1;const P=A.primaryPan?.toString()?.trim();return!(!P||!i.cards?.length)&&i.cards.some(Q=>{if(Q.pan!==P)return!1;const rt=String(Q.pointConversionFormula||"").trim(),It=Q.availablePointsBalance;return!!rt&&"number"==typeof It&&Number.isFinite(It)})}hasRedemptionEligibleInactiveCard(i){if(!i?.cards?.length||!i?.profile?.primaryPan)return!1;const A=i.profile.primaryPan.toString().trim();return i.cards.some(P=>P.pan===A&&"INACTIVE"===P.status&&("T"===P.rewardRedemptionEligibleFlag||"Y"===P.rewardRedemptionEligibleFlag)&&!(0,se.a)(P))}shouldShowNonCardholderWidget(i){if(this.isKoddiEligible()&&(this.isKoddiNonChAdsFailed()||this.isKoddiNonChAdsHasNoCobrandRo()||this.isKoddiNonChAdsWithoutActionUrl()))return!1;const A=i?.raw?.profile;if(!A||void 0===A.activeBlackoutPeriod||!0===A.activeBlackoutPeriod)return!1;const P=i?.raw?.cards,Q=A.primaryPan?.toString()?.trim(),rt=P?.some(It=>It.pan===Q&&!(0,se.a)(It));return!(P?.length>0&&P.every(It=>(0,se.a)(It)))&&!A.activeCardHolder&&(0===P?.length||P?.length>0&&!rt)}getProfileData(){return this.account()?.cobrandProgram?.raw?.profile}shouldShowCustomTemplateForNonCardholder(i){const A=i?.cobrandProgram?.raw?.profile;if(!A)return!0;const P=i?.cobrandProgram?.raw?.cards;return P?.length>0&&P.every(Q=>(0,se.a)(Q))?!0===A?.activeBlackoutPeriod||void 0===A?.activeBlackoutPeriod||!this.isKoddiEligible():!0===A?.activeBlackoutPeriod||void 0===A?.activeBlackoutPeriod}setCobrandComponentPayload(){return{accessToken:this.accessToken,accountId:this.accountId,language:this.language,environment:this.environment,brand:this.brand}}
776handleCtaClicked(i){this.ctaHandled=!0,this.ctaClicked.emit(i),setTimeout(()=>{this.ctaHandled=!1})}handleOldCobrandCardClick(){this.ctaHandled||this.handleCtaClicked({detail:{cta:"viewDetails"}})}handleOldCobrandCardKeyDown(i){i.target===i.currentTarget&&("Enter"===i.key||" "===i.key)&&(i.preventDefault(),i.stopPropagation(),this.handleOldCobrandCardClick())}handleError(i){this.errorStatus.emit(i)}handleCustomTemplateCtaClicked(){window.open(this.brand===St.rI.royal?St.dl.royal:St.dl.celebrity,"_blank","noopener")}handleRetryFetchCobrandInfo(){this.accountFacade.fetchCobrandInfo()}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-cobrand-widget"]],inputs:{analyticsPayload:"analyticsPayload",cobrandCardInfo:"cobrandCardInfo"},outputs:{ctaClicked:"ctaClicked",errorStatus:"errorStatus"},standalone:!0,features:[e.aNF],decls:4,vars:1,consts:[[1,"cobrand-widget"],[3,"backgroundImage"],[3,"account","aemData","language","koddiNonChAdsData","isKoddiNonChAdsLoading","royalOneActionUrl","royalOnePlusActionUrl"],[1,"cobrand-widget__old"],[3,"handleClick","backgroundImage"],["header","",1,"title"],["header",""],["actions","",1,"actions"],[1,"cta-icon"],["alt","Arrow","width","17","height","17",3,"src"],[3,"retryFetch","account","aemData","language","koddiNonChAdsData","isKoddiNonChAdsLoading","royalOneActionUrl","royalOnePlusActionUrl"],[1,"cobrand-widget__wrapper"],["tabindex","0","role","button",1,"cobrand-widget__card",3,"clickedCta","errorStatus","click","keydown","apiConfig","content","cardLinkStatusContent","cobrandCardInfo","analyticsData","showExtendedInfo"]],template:function(A,P){1&A&&(e.j41(0,"div",0),e.DNE(1,Cn,9,4,"app-custom-template",1)(2,yn,1,7,"app-cobrand-transformation-program-card",2)(3,En,3,6,"div",3),e.k0s()),2&A&&(e.R7$(),e.vxM(P.showCustomTemplateWidget()&&P.templateContent?1:P.showCobrandTransformationProgramWidget()?2:3))},dependencies:[t.MD,a.h,ve.I,an],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.cobrand-widget__new[_ngcontent-%COMP%], .cobrand-widget__old[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.cobrand-widget__wrapper[_ngcontent-%COMP%]{width:198.9px;height:234px;overflow:hidden;border-radius:14.04px;box-shadow:#00000026 0 4px 10px;min-width:180px;position:relative}.cobrand-widget__card[_ngcontent-%COMP%]{transform-origin:center center;justify-content:center;position:absolute;cursor:pointer;width:100%;height:100%}.cobrand-widget__card[_ngcontent-%COMP%] rcg-cobrand-component[_ngcontent-%COMP%]{width:100%!important;height:100%!important;display:block!important}"]})}}return R})();var ge=n(83959),Oe=n(54593);function Pe(R,gt){1&R&&e.nrm(0,"div",2)}function Ae(R,gt){if(1&R&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&R){const i=e.XpG();e.HbH("large"===i.adSize?"koddi-ad-label-full":"koddi-ad-label"),e.R7$(),e.JRh(e.bMT(2,3,"CUSTOMER_JOURNEY.KODDI.AD_BADGE"))}}function rn(R,gt){if(1&R&&(e.j41(0,"p",12),e.EFF(1),e.k0s()),2&R){const i=e.XpG();e.R7$(),e.JRh(i.title)}}function sn(R,gt){if(1&R&&(e.j41(0,"p",13),e.EFF(1),e.k0s()),2&R){const i=e.XpG();e.R7$(),e.JRh(i.subtitle)}}function oe(R,gt){if(1&R&&(e.j41(0,"div",10),e.DNE(1,Ae,3,5,"span",11)(2,rn,2,1,"p",12)(3,sn,2,1,"p",13),e.k0s()),2&R){const i=gt;e.AVh("koddi-non-cobrand-small","large"!==i.adSize)("koddi-non-cobrand-large","large"===i.adSize),e.R7$(),e.vxM(i.adLabel?1:-1),e.R7$(),e.vxM(i.title?2:-1),e.R7$(),e.vxM(i.subtitle?3:-1)}}function cn(R,gt){if(1&R){const i=e.RV6();e.DNE(0,oe,4,7,"div",5),e.j41(1,"picture",6),e.nrm(2,"source",7)(3,"source",8),e.j41(4,"img",9),e.bIt("load",function(P){e.eBV(i);const Q=e.XpG(2);return e.Njj(Q.onBannerLoad(P))}),e.k0s()()}if(2&R){let i;const A=e.XpG(2);e.vxM((i=A.nonCobrandContent())?0:-1,i),e.R7$(2),e.Y8G("srcset",A.banner().mobile),e.R7$(),e.Y8G("srcset",A.banner().web),e.R7$(),e.Y8G("src",A.banner().mobile,e.B4B)}}function ln(R,gt){1&R&&e.eu8(0)}function Rt(R,gt){if(1&R){const i=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(i);const P=e.XpG(2);return e.Njj(P.onAdClick())}),e.DNE(1,ln,1,0,"ng-container",15),e.k0s()}if(2&R){e.XpG();const i=e.sdS(3),A=e.XpG();e.AVh("hidden",!A.isBannerLoaded())("koddi-banner-non-cobrand",!A.banner().isCobrand),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function dn(R,gt){1&R&&e.eu8(0)}function ce(R,gt){if(1&R&&(e.j41(0,"div",16),e.DNE(1,dn,1,0,"ng-container",15),e.k0s()),2&R){e.XpG();const i=e.sdS(3),A=e.XpG();e.AVh("hidden",!A.isBannerLoaded())("koddi-banner-non-cobrand",!A.banner().isCobrand),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function un(R,gt){if(1&R&&(e.j41(0,"div",1),e.DNE(1,Pe,1,0,"div",2)(2,cn,5,4,"ng-template",null,0,e.C5r)(4,Rt,2,5,"button",3)(5,ce,2,5,"div",4),e.k0s()),2&R){const i=e.XpG();e.R7$(),e.vxM(i.isBannerLoaded()?-1:1),e.R7$(3),e.vxM(i.banner().isClickable?4:5)}}let pn=(()=>{class R{constructor(){this.pageId=e.hFB.required(),this.currentPageName=e.hFB.required(),this.accountFacade=(0,e.WQX)(at.PP),this.koddiBannerFacade=(0,e.WQX)(ge.z),this.analyticInteraction=(0,e.WQX)(at.Ue),this.analyticsService=(0,e.WQX)(at.cu),this.router=(0,e.WQX)(y.Ix),this.account=this.accountFacade.getAccountData,this.isKoddiEligible=this.accountFacade.isKoddiEligible,this.koddiAdsData=(0,e.EWP)(()=>{const i=this.account()?.loyaltyInformation?.koddiAdsData;return i?i[this.pageId()]??null:null}),this.parsedAds=(0,e.EWP)(()=>{const i=this.koddiAdsData();return this.isKoddiEligible()&&i?.length?{...this.parseKoddiAds(i),ads:i}:null}),this.banner=(0,e.EWP)(()=>{const i=this.parsedAds();if(!i)return null;const{isCobrand:A,roAd:P,royalOneActionUrl:Q,royalOnePlusActionUrl:rt,ads:It}=i;if(A){if(!P||!Q&&!rt)return null;const{bannerImage:he,secondaryImage:ae}=P.assets??{};return he&&ae?{mobile:`${re.A.AEM_PATH}${he}`,web:`${re.A.AEM_PATH}${ae}`,isCobrand:!0,isClickable:!0}:null}const wt=It[0],{bannerImage:Dt,secondaryImage:qt,actionUrl:ie}=wt?.assets??{};return Dt&&qt?{mobile:Dt,web:qt,isCobrand:!1,isClickable:!!ie}:null}),this.nonCobrandContent=(0,e.EWP)(()=>{const i=this.parsedAds();if(!i)return null;const{isCobrand:A,ads:P}=i;if(A)return null;const Q=P[0]?.assets;return{title:Q?.title??null,subtitle:Q?.subtitle??null,adLabel:!!Q?.adLabel,adSize:Q?.adSize??"large"}}),this.isBannerLoaded=(0,e.vPA)(!1),this.hasRecordedImpression=(0,e.vPA)(!1),this.bannerElement=(0,e.vPA)(null),(0,kt.br)(this.isKoddiEligible).pipe((0,tt.p)(i=>i),(0,mt.s)(1)).subscribe(()=>{this.accountFacade.fetchKoddiAds(this.pageId())})}onBannerLoad(i){if(this.hasRecordedImpression())return;this.hasRecordedImpression.set(!0),this.isBannerLoaded.set(!0);const A=this.parsedAds();if(!A)return;const{isCobrand:P,roAd:Q,ads:rt}=A,It=P?Q:rt[0];if(!It)return;const wt=i.target;this.bannerElement.set(wt);const Dt=(0,Oe.Y)(wt,"koddi-ad-img");this.koddiBannerFacade.fireKoddiBeacon("impression",It,Dt)}onAdClick(){this.trackAdInteraction();const i=this.parsedAds();if(!i)return;const{isCobrand:A,roAd:P,royalOneActionUrl:Q,royalOnePlusActionUrl:rt,ads:It}=i,wt=A?P:It[0];if(wt){const Dt=(0,Oe.Y)(this.bannerElement(),"koddi-ad-img");this.koddiBannerFacade.fireKoddiBeacon("click",wt,Dt)}if(A){if(!P||!Q&&!rt)return;this.router.navigate(["/royal-one-rewards"],{state:{showNonCardholderHub:!0,royalOneActionUrl:Q,royalOnePlusActionUrl:rt}})}else{const Dt=It[0].assets?.actionUrl;Dt&&window.open(Dt,"_blank","noopener,noreferrer")}}parseKoddiAds(i){const A=i.find(rt=>
776"COBRAND"===rt.adType&&"RO"===rt.productCode),P=i.find(rt=>"COBRAND"===rt.adType&&"RP"===rt.productCode);return{isCobrand:i.some(rt=>"COBRAND"===rt.adType),roAd:A,royalOneActionUrl:A?.assets?.actionUrl,royalOnePlusActionUrl:P?.assets?.actionUrl}}trackAdInteraction(){const i=this.parsedAds();if(!i)return;const{roAd:A,ads:P}=i,Q=A??P[0];Q&&this.analyticInteraction.trackInteraction(this.analyticsService.buildKoddiAnalyticsPayload(Q,"koddiadclick",this.currentPageName(),xt.sg.GUEST_ACCOUNT))}static{this.\u0275fac=function(A){return new(A||R)}}static{this.\u0275cmp=e.VBU({type:R,selectors:[["app-koddi-banner"]],hostVars:2,hostBindings:function(A,P){2&A&&e.xc7("display",P.banner()?"block":"none")},inputs:{pageId:[1,"pageId"],currentPageName:[1,"currentPageName"]},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["bannerContent",""],[1,"koddi-banner"],[1,"koddi-banner-skeleton"],["type","button",1,"koddi-banner-link",3,"hidden","koddi-banner-non-cobrand"],[1,"koddi-banner-link",3,"hidden","koddi-banner-non-cobrand"],[1,"koddi-non-cobrand-container",3,"koddi-non-cobrand-small","koddi-non-cobrand-large"],[1,"koddi-banner-img"],["media","(max-width: 767px)",3,"srcset"],["media","(min-width: 768px)",3,"srcset"],["alt","Sponsored advertisement",1,"koddi-banner-img","koddi-ad-img",3,"load","src"],[1,"koddi-non-cobrand-container"],[3,"class"],[1,"koddi-non-cobrand-title"],[1,"koddi-non-cobrand-subtitle"],["type","button",1,"koddi-banner-link",3,"click"],[4,"ngTemplateOutlet"],[1,"koddi-banner-link"]],template:function(A,P){1&A&&e.DNE(0,un,6,2,"div",1),2&A&&e.vxM(P.banner()?0:-1)},dependencies:[t.MD,t.T3,a.h,a.D9],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}[_nghost-%COMP%]{display:block}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-skeleton[_ngcontent-%COMP%]{width:100%;height:150px;border-radius:12px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_shimmer 1.5s infinite}.koddi-banner[_ngcontent-%COMP%] .hidden[_ngcontent-%COMP%]{visibility:hidden;height:0;overflow:hidden}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link[_ngcontent-%COMP%]{display:block;cursor:default;width:100%;padding:0;border:none;background:none}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link[_ngcontent-%COMP%]:is(button){cursor:pointer}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link[_ngcontent-%COMP%] img.koddi-banner-img.koddi-ad-img[_ngcontent-%COMP%]{width:100%;height:auto}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%]{display:inline-flex;height:210px;align-items:flex-start;border-radius:12px;box-shadow:0 2px 12px #00000014;position:relative}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%]{width:100%;height:210px;text-align:left;border-radius:12px 0 0 12px;background:#fff;display:flex;flex-direction:column;padding:24px;box-sizing:border-box;order:1}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%] .koddi-non-cobrand-title[_ngcontent-%COMP%], .koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%] .koddi-non-cobrand-subtitle[_ngcontent-%COMP%]{color:#2c2c2c;font-family:Proxima Nova,sans-serif;font-style:normal;margin:0}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%] .koddi-non-cobrand-title[_ngcontent-%COMP%]{font-size:36px;font-weight:800;line-height:38px;letter-spacing:-.5px}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ng
776content-%COMP%] .koddi-non-cobrand-subtitle[_ngcontent-%COMP%]{font-size:20px;font-weight:400;line-height:24px;letter-spacing:.15px;margin-top:10px}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%] .koddi-ad-label-full[_ngcontent-%COMP%]{display:inline-block;font-family:Proxima Nova,sans-serif;font-size:12px;font-style:normal;font-weight:700;line-height:16px;color:#2c2c2c;background:#fff;padding:4px 8px;border-radius:4px;align-self:flex-start;position:absolute;right:20px;top:20px}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-small[_ngcontent-%COMP%]{position:absolute;top:12px;left:12px;z-index:1}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-small[_ngcontent-%COMP%] .koddi-ad-label[_ngcontent-%COMP%]{display:inline-block;font-family:Proxima Nova,sans-serif;font-size:14px;font-weight:700;background:#fff;padding:4px 8px;border-radius:4px}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-banner-img[_ngcontent-%COMP%]{order:2;width:auto;height:210px;border-radius:0 12px 12px 0;display:block;object-fit:cover}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] img.koddi-banner-img[_ngcontent-%COMP%]{height:210px;width:auto;border-radius:0 12px 12px 0}@media screen and (width <= 960px){.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:auto;border-radius:12px;position:relative}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%]{order:2;height:auto;border-radius:0 0 12px 12px;padding:16px;gap:8px;position:static}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%] .koddi-non-cobrand-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:22px}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%] .koddi-non-cobrand-subtitle[_ngcontent-%COMP%]{font-size:14px;line-height:18px;margin-top:0}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-non-cobrand-container.koddi-non-cobrand-large[_ngcontent-%COMP%] .koddi-ad-label-full[_ngcontent-%COMP%]{display:block;position:absolute;top:15px;left:15px;font-weight:700;background:#fff;padding:5px;border-radius:5px;right:unset}.koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] .koddi-banner-img[_ngcontent-%COMP%], .koddi-banner[_ngcontent-%COMP%] .koddi-banner-link.koddi-banner-non-cobrand[_ngcontent-%COMP%] img.koddi-banner-img[_ngcontent-%COMP%]{order:1;border-radius:12px 12px 0 0;height:auto;width:100%;aspect-ratio:235/105}}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}"],changeDetection:0})}}return R})()},1573:(J,U,n)=>{"use strict";n.d(U,{S:()=>C});var t=n(54438),e=n(23013),a=n(68018);let C=(()=>{class y extends e.t{constructor(){super(...arguments),this.allowDecimalNumbers=(0,t.hFB)(!1),this.allowOnlyNumbers=(0,t.hFB)(!1),this.autofocus=(0,t.hFB)(!1),this.inputMode=(0,t.hFB)("text"),this.max=(0,t.hFB)(),this.maxLength=(0,t.hFB)(),this.min=(0,t.hFB)(),this.minLength=(0,t.hFB)(),this.pattern=(0,t.hFB)(),this.showSuccessIcon=(0,t.hFB)(!1),this.type=(0,t.hFB)("text"),this.onClear=(0,t.CGW)()}static{this.\u0275fac=(()=>{let l;return function(u){return(l||(l=t.xGo(y)))(u||y)}})()}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-input"]],inputs:{allowDecimalNumbers:[1,"allowDecimalNumbers"],allowOnlyNumbers:[1,"allowOnlyNumbers"],autofocus:[1,"autofocus"],inputMode:[
7761,"inputMode"],max:[1,"max"],maxLength:[1,"maxLength"],min:[1,"min"],minLength:[1,"minLength"],pattern:[1,"pattern"],showSuccessIcon:[1,"showSuccessIcon"],type:[1,"type"]},outputs:{onClear:"onClear"},standalone:!0,features:[t.Vt3,t.aNF],decls:3,vars:21,consts:[[1,"input"],[3,"inputClear","inputError","inputFocus","inputFocusOut","valueChanged","allowDecimalNumbers","allowOnlyNumbers","autofocus","errorMessage","brand","disabled","inputId","inputMode","label","max","maxLength","min","minLength","name","pattern","placeholder","showSuccessIcon","type","value"]],template:function(h,u){1&h&&(t.j41(0,"div",0)(1,"rcg-input-text-v2",1),t.nI1(2,"translate"),t.bIt("inputClear",function(){return u.handleClearValue()})("inputError",function(d){return u.handleError(d)})("inputFocus",function(d){return u.handleFocus(d)})("inputFocusOut",function(d){return u.handleFocusOut(d)})("valueChanged",function(d){return u.handleValueChange(d)}),t.k0s()()),2&h&&(t.R7$(),t.Y8G("allowDecimalNumbers",u.allowDecimalNumbers())("allowOnlyNumbers",u.allowOnlyNumbers())("autofocus",u.autofocus())("errorMessage",u.shouldShowError()?t.bMT(2,19,u.errorMessage()):"")("brand",u.brand())("disabled",u.disabled())("inputId",u.id())("inputMode",u.inputMode())("label",u.label())("max",u.max())("maxLength",u.maxLength())("min",u.min())("minLength",u.minLength())("name",u.name())("pattern",u.pattern())("placeholder",u.placeholder())("showSuccessIcon",u.showSuccessIcon())("type",u.type())("value",u.value()))},dependencies:[a.h,a.D9],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.input[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#061556}"],changeDetection:0})}}return y})()},69081:(J,U,n)=>{"use strict";n.d(U,{z:()=>v});var t=n(54438),e=n(54307),a=n(31369);const C=[[["","header",""]],[["","subHeader",""]],[["","content",""]],[["","actions",""]]],y=["[header]","[subHeader]","[content]","[actions]"];let v=(()=>{class l{constructor(){this.autoFocusDelay=100,this.brand=(0,t.hFB)(a.rI.royal),this.isOpen=(0,t.hFB)(!1),this.autoWidth=(0,t.hFB)(!1),this.closeOnbackdrop=(0,t.hFB)(!0),this.widthInPx=(0,t.hFB)(),this.onModalClose=(0,t.CGW)()}handleclose(){this.onModalClose.emit()}static{this.\u0275fac=function(c){return new(c||l)}}static{this.\u0275cmp=t.VBU({type:l,selectors:[["shared-modal"]],inputs:{brand:[1,"brand"],isOpen:[1,"isOpen"],autoWidth:[1,"autoWidth"],closeOnbackdrop:[1,"closeOnbackdrop"],widthInPx:[1,"widthInPx"]},outputs:{onModalClose:"onModalClose"},standalone:!0,features:[t.aNF],ngContentSelectors:y,decls:10,vars:8,consts:[[3,"modalClosed","brand","closeOnbackdrop","isOpen","widthInPx"],["tabindex","-1",1,"modal",3,"appAutoFocus","focusDelay"],["tabindex","0",1,"modal__header"],["tabindex","0",1,"modal__sub-header"],[1,"modal__content"],[1,"modal__actions"]],template:function(c,d){1&c&&(t.NAR(C),t.j41(0,"rcg-modal-v2",0),t.bIt("modalClosed",function(){return d.handleclose()}),t.j41(1,"div",1)(2,"h2",2),t.SdG(3),t.k0s(),t.j41(4,"p",3),t.SdG(5,1),t.k0s(),t.j41(6,"div",4),t.SdG(7,2),t.k0s(),t.j41(8,"div",5),t.SdG(9,3),t.k0s()()()),2&c&&(t.Y8G("brand",d.brand())("closeOnbackdrop",d.closeOnbackdrop())("isOpen",d.isOpen())("widthInPx",d.widthInPx()),t.R7$(),t.AVh("modal--auto-width",d.autoWidth()),t.Y8G("appAutoFocus",d.isOpen())("focusDelay",d.autoFocusDelay))},dependencies:[e.N5],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.modal[_ngcontent-%COMP%]{width:600px}.modal--auto-width[_ngcontent-%COMP%]{width:auto}.modal__header[_ngcontent-%COMP%]{color:#061556;font-size:30px;font-style:normal;font-weight:600;line-height:40px;margin-top:27px;margin-bottom:8px;padding:0 40px}@media only screen and (max-width: 480px){.modal__header[_ngcontent-%COMP%]{padding:0 20px;font-size:24px;margin-top:20px;margin-bottom:12px;line-height:32px}}.modal__sub-header[_ngcontent-%COMP%]{color:#535455;font-size:18px;font-weight:400;line-height:32px;font-style:normal;margin-top:0;margin-bottom:8px;padding:0 40px}@media only screen and (max-width: 480px){.modal__sub-header[_ngcontent-%COMP%]{padding:0 20px;font-size:16px;margin-bottom:12px}}.modal__content[_ngcontent-%COMP%]{color:#535455;font-size:18px;font-weight:400;font-style:normal;line-height:32px;margin:0;padding:0 40px}@media only screen and (max-width: 480px){.modal__content[_ngcontent-%COMP%]{padding:0 20px;font-size:16px;line-height:24px}}.modal__actions[_ngcontent-%COMP%]{margin-top:24px;padding:0 30px 40px}@media only screen and (max-width: 480px){.modal__actions[_ngcontent-%COMP%]{padding:0 20px;margin-bottom:40px;margin-top:32px}}@media screen and (max-width: 768px){.modal[_ngcontent-%COMP%]{width:auto}}@media only screen and (max-width: 480px){.modal[_ngcontent-%COMP%]{text-align:center;align-self:stretch}}"],changeDetection:0})}}return l})()},5537:(J,U,n)=>{"use strict";n.d(U,{d:()=>d});var t=n(60177),e=n(54438),a=n(68018),C=n(15633),y=n(45312),v=n(89469);const l=r=>({label:"",value:r}),h=r=>({"passenger-verify-information__icon__empty":r});function u(r,O){if(1&r){const p=e.RV6();e.j41(0,"app-radio-option",5),e.bIt("optionSelected",function(s){e.eBV(p);const o=e.XpG(2);return e.Njj(o.handleOptionSelected(s))}),e.j41(1,"div")(2,"span",6),e.EFF(3),e.k0s(),e.j41(4,"span",7),e.EFF(5),e.k0s()()()}if(2&r){const p=O.$implicit,m=e.XpG(2);e.Y8G("option",e.eq3(6,l,p.passengerId))("position","right"),e.R7$(2),e.Y8G("ngClass",e.eq3(8,h,"none"===p.passengerId)),e.R7$(),e.Lme(" ",null==p.firstName?null:p.firstName.charAt(0).toUpperCase(),"",null==p.lastName?null:p.lastName.charAt(0).toUpperCase()," "),e.R7$(2),e.JRh(m.getName(p.firstName,p.lastName))}}function c(r,O){if(1&r&&(e.j41(0,"app-radio-group",0)(1,"div",1),e.Z7z(2,u,6,10,"app-radio-option",2,e.Vm6),e.k0s()(),e.j41(4,"div",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"span",4)),2&r){const p=e.XpG();e.Y8G("value",p.value)("position","right"),e.R7$(2),e.Dyx(p.passengers()),e.R7$(3),e.SpI(" ",e.bMT(6,4,"RESERVATION_CONFIRMATION.ANYTHING_MISSING")," "),e.R7$(2),e.Y8G("innerHtml",p.emailForAssistanceText,e.npT)}}let d=(()=>
776{class r{constructor(){this.translateService=(0,e.WQX)(a.c$),this.analyticInteraction=(0,e.WQX)(C.U),this.passengers=e.hFB.required(),this.onOptionSelected=(0,e.CGW)(),this.value="",this.optionSelected="",this.emailForAssistanceText=this.translateService.instant("CUSTOMER_JOURNEY.DASHBOARD.RESERVATION_MODAL.EMAIL_FOR_ASSISTANCE",{email:y.B0})}ngOnChanges(p){const m=p?.passengers?.currentValue;m&&(this.value=m[0].passengerId,this.optionSelected=this.value,this.onOptionSelected.emit(this.optionSelected),this.trackPageView())}getName(p,m){return`${this.capitalize(p)} ${this.capitalize(m)}`}handleOptionSelected(p){this.optionSelected=p.detail,this.onOptionSelected.emit(this.optionSelected)}capitalize(p){return p?p.charAt(0).toUpperCase()+p.slice(1).toLowerCase():""}trackPageView(){this.analyticInteraction.trackPageView({channel:"mytrips",pageName:"verifyyourinfo",appName:"ga"})}static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["app-passenger-verify-information"]],inputs:{passengers:[1,"passengers"]},outputs:{onOptionSelected:"onOptionSelected"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:1,consts:[[3,"value","position"],[1,"passenger-verify-information__radio-group"],["name","passenger",3,"option","position"],[1,"passenger-verify-information__anything-missing"],[1,"passenger-verify-information__instructional-copy",3,"innerHtml"],["name","passenger",3,"optionSelected","option","position"],["data-cs-mask","","aria-hidden","true",1,"passenger-verify-information__icon",3,"ngClass"],[1,"passenger-verify-information__label"]],template:function(m,s){if(1&m&&(e.j41(0,"div"),e.DNE(1,c,8,6),e.k0s()),2&m){let o;e.R7$(),e.vxM(null!=(o=s.passengers())&&o.length?1:-1)}},dependencies:[t.MD,t.YU,a.h,a.D9,v.Y2,v.K_],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.passenger-verify-information__title[_ngcontent-%COMP%], .passenger-verify-information__description[_ngcontent-%COMP%]{margin:0;padding:0}.passenger-verify-information__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:85px}.passenger-verify-information__radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.passenger-verify-information__not-on-reservation[_ngcontent-%COMP%]{padding-top:28px}.passenger-verify-information__anything-missing[_ngcontent-%COMP%]{color:#131516;padding-top:32px;font-size:18px;font-style:normal;font-weight:700;line-height:32px}.passenger-verify-information__label[_ngcontent-%COMP%]{color:#131516;font-size:18px;font-style:normal;font-weight:700;line-height:32px}.passenger-verify-information__icon[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;padding:14px 0;border-radius:100%;color:#c5cacc;font-weight:600;width:48px;height:48px;background-color:#f5f8fb;text-align:center;margin-right:12px;margin-left:1px;box-sizing:border-box}.passenger-verify-information__icon__empty[_ngcontent-%COMP%]{color:transparent;background-color:transparent}"],changeDetection:0})}}return r})()},89221:(J,U,n)=>{"use strict";n.d(U,{A:()=>a});var t=n(54438);const e=["btn"];let a=(()=>{class C{constructor(){this.brand=(0,t.hFB)(),this.text=(0,t.hFB)(),this.type=(0,t.hFB)(),this.theme=(0,t.hFB)("dark"),this.size=(0,t.hFB)("normal"),this.disabled=(0,t.hFB)(),this.onClick=(0,t.CGW)(),this.customStyles=(0,t.EWP)(()=>"thin"===this.size()?{padding:"12px 28px",fontSize:"14px",lineHeight:"16px",fontWeight:"600",fontStyle:"normal"}:{fontSize:"18px",lineHeight:"32px",fontWeight:"600",fontStyle:"normal"})}handlerClick(){"submit"===this.type()&&this.element.nativeElement&&this.element.nativeElement.closest("form").dispatchEvent(new Event("submit")),this.onClick.emit()}static{this.\u0275fac=function(l){return new(l||C)}}static{this.\u0275cmp=t.VBU({type:C,selectors:[["app-primary-button"]],viewQuery:function(l,h){if(1&l&&t.GBs(e,5),2&l){let u;t.mGM(u=t.lsd())&&(h.element=u.first)}},inputs:{brand:[1,"brand"],text:[1,"text"],type:[1,"type"],theme:[1,"theme"],size:[1,"size"],disabled:[1,"disabled"]},outputs:{onClick:"onClick"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[["btn",""],[3,"onClickPrimaryButton","text","type","theme","disabled","customStyles"]],template:function(l,h){if(1&l){const u=t.RV6();t.j41(0,"rcg-primary-button-v2",1,0),t.bIt("onClickPrimaryButton",function(){return t.eBV(u),t.Njj(h.handlerClick())}),t.k0s()}2&l&&t.Y8G("text",h.text())("type",h.type())("theme",h.theme())("disabled",h.disabled())("customStyles",h.customStyles())},encapsulation:2,changeDetection:0})}}return C})()},64079:(J,U,n)=>{"use strict";n.d(U,{W:()=>C});var t=n(54438),e=n(89417),a=n(49287);let C=(()=>{class y{constructor(){this.ngModelChange=new t.bkB,this.notNumbers=RegExp(/\D/gi),this.ctrl=(0,t.WQX)(e.vO),this.el=(0,t.WQX)(t.aKT),this.creditCardUtilities=(0,t.WQX)(a.tg)}checkNumbers(l){if(this.appCreditCardNumber){const u=l.target.value.replace(this.notNumbers,""),c=this.formatCreditCardNumber(u);this.el.nativeElement.value=c,this.ctrl.control.setValue(c,{emitEvent:!1}),this.ngModelChange.emit(c)}}checkNumbersKeyDown(l){if(this.appCreditCardNumber&&this.ctrl.control){const h=l.key,u=this.ctrl.control.value?String(this.ctrl.control.value).replace(/\D/g,""):"",c="Backspace"===h||"Tab"===h||"ArrowLeft"===h||"ArrowRight"===h||"Delete"===h,d=!/^\d$/.test(h);(u.length>=16&&!c||d&&!c)&&l.preventDefault()}}formatCreditCardNumber(l){const h=this.creditCardUtilities.getCardInfoFromBin(l);
776if(null!=h){const u=l.split(h.spacingPatternRegex).filter(Boolean).join(" ");return u.length>23?u.substring(0,23):u}return""}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275dir=t.FsC({type:y,selectors:[["","formControlName","","appCreditCardNumber",""]],hostBindings:function(h,u){1&h&&t.bIt("input",function(d){return u.checkNumbers(d)})("keypress",function(d){return u.checkNumbersKeyDown(d)})},inputs:{appCreditCardNumber:"appCreditCardNumber"},outputs:{ngModelChange:"ngModelChange"},standalone:!0})}}return y})()},54307:(J,U,n)=>{"use strict";n.d(U,{gu:()=>a,N5:()=>y,Wc:()=>C.W,pb:()=>u});var t=n(54438),e=n(89417);let a=(()=>{class c{constructor(){this.ctrl=(0,t.WQX)(e.vO)}static{this.INVALID_CHARACTERS_REGEX=/[^\p{L} '-]/gu}static{this.ALLOWED_SINGLE_CHARACTER_REGEX=/^[\p{L} '-]$/u}static{this.ALLOWED_CONTROL_KEYS=["Backspace","Tab","ArrowLeft","ArrowRight","Delete","Home","End","Enter","Escape"]}ngOnInit(){this.ctrl.control&&(this.subscription=this.ctrl.control.valueChanges.subscribe(r=>{const O=(r||"").replace(c.INVALID_CHARACTERS_REGEX,"");r!==O&&setTimeout(()=>{this.ctrl.control?.setValue(O,{emitEvent:!1})},0)}))}ngOnDestroy(){this.subscription?.unsubscribe()}onKeyDown(r){if(r.ctrlKey||r.metaKey||r.altKey)return;const O=c.ALLOWED_CONTROL_KEYS.includes(r.key),p=c.ALLOWED_SINGLE_CHARACTER_REGEX.test(r.key);!O&&!p&&1===r.key.length&&r.preventDefault()}static{this.\u0275fac=function(O){return new(O||c)}}static{this.\u0275dir=t.FsC({type:c,selectors:[["","formControlName","","appAlphabetsOnly",""]],hostBindings:function(O,p){1&O&&t.bIt("keydown",function(s){return p.onKeyDown(s)})},standalone:!0})}}return c})();var C=n(64079);let y=(()=>{class c{constructor(r){this.el=r,this.autoFocus=!0,this.focusDelay=0}ngOnChanges(r){r?.autoFocus?.currentValue&&this.applyAutoFocus()}ngAfterViewInit(){this.autoFocus&&this.applyAutoFocus()}applyAutoFocus(){this.autoFocus&&setTimeout(()=>{this.el.nativeElement.focus()},this.focusDelay)}static{this.\u0275fac=function(O){return new(O||c)(t.rXU(t.aKT))}}static{this.\u0275dir=t.FsC({type:c,selectors:[["","appAutoFocus",""]],inputs:{autoFocus:[0,"appAutoFocus","autoFocus"],focusDelay:"focusDelay"},standalone:!0,features:[t.OA$]})}}return c})();var v=n(60177);function l(c,d){if(1&c&&(t.qex(0),t.j41(1,"div"),t.EFF(2),t.k0s(),t.bVm()),2&c){const r=d.$implicit;t.R7$(2),t.JRh(r)}}let h=(()=>{class c{constructor(){this.content=""}static{this.\u0275fac=function(O){return new(O||c)}}static{this.\u0275cmp=t.VBU({type:c,selectors:[["app-popover"]],inputs:{content:"content"},standalone:!0,features:[t.aNF],decls:6,vars:1,consts:[[1,"popover-container"],[1,"popover-arrow"],["xmlns","http://www.w3.org/2000/svg","width","56","height","15","viewBox","0 0 56 15","fill","none"],["d","M45.2671 2.61585C44.0708 1.23557 41.9292 1.23557 40.7329 2.61585L30 15L56 15L45.2671 2.61585Z","fill","white"],[1,"popover-content"],[4,"ngFor","ngForOf"]],template:function(O,p){1&O&&(t.j41(0,"div",0)(1,"div",1),t.qSk(),t.j41(2,"svg",2),t.nrm(3,"path",3),t.k0s()(),t.joV(),t.j41(4,"div",4),t.DNE(5,l,3,1,"ng-container",5),t.k0s()()),2&O&&(t.R7$(5),t.Y8G("ngForOf",(p.content||"").split("\n")))},dependencies:[v.MD,v.Sq],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.popover-container[_ngcontent-%COMP%]{border-radius:5px;background:#fff;box-shadow:0 6px 12px #00000026;white-space:nowrap;display:flex;padding:16px;flex-direction:column;align-items:flex-start;align-self:stretch;width:350px;gap:10px;z-index:1000}@media screen and (max-width: 480px){.popover-container[_ngcontent-%COMP%]{width:253px}}.popover-arrow[_ngcontent-%COMP%]{position:absolute;top:-12px;width:56px;height:15px;z-index:1001}.popover-content[_ngcontent-%COMP%]{white-space:normal;overflow-wrap:break-word;color:#061556;font-size:16px;font-style:normal;font-weight:400;line-height:24px}"]})}}return c})(),u=(()=>{class c{constructor(){this.content="",this.el=(0,t.WQX)(t.aKT),this.vcr=(0,t.WQX)(t.c1b),this.resolver=(0,t.WQX)(t.OM3)}
776onMouseEnter(r){const O=this.resolver.resolveComponentFactory(h);this.popoverRef=this.vcr.createComponent(O),this.popoverRef.location.nativeElement.style.position="fixed",this.popoverRef.location.nativeElement.style.left=`${r.clientX+-56}px`,this.popoverRef.location.nativeElement.style.top=`${r.clientY+28}px`,this.popoverRef.instance.content=this.content}onMouseLeave(){this.popoverRef?.destroy()}static{this.\u0275fac=function(O){return new(O||c)}}static{this.\u0275dir=t.FsC({type:c,selectors:[["","hoverPopover",""]],hostBindings:function(O,p){1&O&&t.bIt("mouseenter",function(s){return p.onMouseEnter(s)})("mouseleave",function(){return p.onMouseLeave()})},inputs:{content:[0,"hoverPopover","content"]},standalone:!0})}}return c})()},82032:(J,U,n)=>{"use strict";n.d(U,{NX:()=>h,YC:()=>l,_l:()=>C,bU:()=>a,dl:()=>y,jS:()=>e,pL:()=>v,rI:()=>t});var t=function(u){return u.royal="royal",u.celebrity="celebrity",u.silversea="silversea",u}(t||{}),e=function(u){return u.COBRAND="Cobrand",u.LOYALTY="Loyalty",u}(e||{}),a=function(u){return u.ROYALONE="Royal ONE\u2122",u.ROYALONEPLUS="Royal ONE Plus\u2122",u}(a||{}),C=function(u){return u.ROYALONE="RM",u.ROYALONEPLUS="RP",u}(C||{}),y=function(u){return u.royal="https://www.royalcaribbean.com/cruises",u.celebrity="https://www.celebritycruises.com/cruises",u}(y||{}),v=function(u){return u.WIDGET="WIDGET",u.BANNER="BANNER",u}(v||{});const l={BENEFITS_V2:"Benefits V2"},h="v2"},31369:(J,U,n)=>{"use strict";n.d(U,{YC:()=>t.YC,NX:()=>t.NX,Mj:()=>a,rI:()=>t.rI,bU:()=>t.bU,dl:()=>t.dl,Xw:()=>e.Xw,wy:()=>e.wy,_l:()=>t._l,jS:()=>t.jS});var t=n(82032),e=n(86910);const a={PAYMENT_DUE:"CUSTOMER_JOURNEY.DASHBOARD.NOTIFICATIONS.PAYMENT_DUE_WARNING.CTA",MODIFY_CHECK_IN:"BOOKING_CARDS.ACTIONS.CHECK_IN.PRIMARY.MODIFY_CHECK_IN",START_CHECK_IN:"BOOKING_CARDS.ACTIONS.CHECK_IN.PRIMARY.START_CHECK_IN",VIEW_BOARDING_PASS:"BOOKING_CARDS.ACTIONS.CHECK_IN.PRIMARY.VIEW_BOARDING_PASS"}},86910:(J,U,n)=>{"use strict";n.d(U,{Xw:()=>t,gf:()=>a,hE:()=>e,wy:()=>y});const t=/^(([^<>()\[\]\\.,;:\s@"!\xa1\xac\xb0#$%&'*+/\xbf?`{|}~\xe1\xe0\xe2\xe4\xc1\xc0\xc2\xc4\xe9\xe8\xea\xeb\xc9\xc8\xca\xcb\xed\xec\xee\xef\xcd\xcc\xce\xcf\xf3\xf2\xf4\xf6\xd3\xd2\xd4\xd6\xfa\xf9\xfc\xfb\xda\xd9\xdc\xdb\xf1\xd1'\xb4\u02c6\xa8^`\xe3\u0113\u0117\u0119\xff\u016b\u012b\u0153\xf8\u014d\xf5\u015b\u0161\u017e\u017a\u017c\xe7\u0107\u010d\u0144\xc3\u0112\u0116\u0118\u0178\u016a\u012a\u0152\xd8\u014c\xd5\u015a\u0160\u017d\u0179\u017b\xc7\u0106\u010c\u0143])+([a-zA-Z0-9$^\-_.+]+))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,e=/\d/,a=/[a-zA-Z]/,y=/^[0-9]+$/},64291:(J,U,n)=>{"use strict";n.d(U,{BP:()=>v,Dc:()=>m,ED:()=>h,LV:()=>y,N0:()=>u,Pj:()=>r,XK:()=>p,gx:()=>a,h4:()=>C,lE:()=>O,xh:()=>d,yt:()=>c,zb:()=>l});var t=n(31369);const e=/^(?=.*[-A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff0-9.])[-A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff0-9. ]+$/;function a(s){return typeof s>"u"||null===s||"string"==typeof s&&!s}function C(s){const o=new Date,f=new Date(o.getFullYear()-100,o.getMonth(),o.getDate());return new Date(s.getFullYear(),s.getMonth(),s.getDate())<f}function y(s){const o=new Date;return o.setHours(0,0,0,0),s>o}function v(s,o){return s?.length>=o}function l(s,o){return s?.length<=o}function h(s,o){return s.test(o)}function u(s){return o=>{for(const f of s){const M=f(o);if(M)return M}return null}}function c(s){return o=>{const{value:f}=o;return a(f)?{errorMessage:s}:null}}function d(s,o){return f=>{const{value:M}=f;return M&&!v(M,s)?{errorMessage:o}:null}}function r(s,o){return f=>{const{value:M}=f;return M&&!l(M,s)?{errorMessage:o}:null}}function O(s,o){return f=>{const{value:M}=f;return h(s,M)?null:{errorMessage:o}}}function p(s){return o=>{const{value:f}=o;return!f||h(t.wy,f)?null:{errorMessage:s}}}function m(s,o,f){return u([c(s),d(2,o),r(50,f),O(e,"VALIDATORS.INVALID_CHARACTERS")])}},23228:(J,U,n)=>{"use strict";n.d(U,{Dc:()=>t.Dc,N0:()=>t.N0,Pj:()=>t.Pj,XK:()=>t.XK,lE:()=>t.lE,xh:()=>t.xh,yt:()=>t.yt});var t=n(64291)},97513:(J,U,n)=>{"use strict";n.d(U,{A:()=>ut});const a={NUMBERS:{default:{country:"COUNTRY.US",display:"001 305 341 0205",number:"0013053410205",loyalty:!0,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.US",display:"001 305 341 0205",number:"0013053410205",loyalty:!0,label:"Carrier roaming charges may apply."},folio:{country:"COUNTRY.US",display:"800-256-6649",number:"8002566649",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.US",display:"+1 305 341 0205",number:"13053410205"},linkingLoyaltyNumber:{country:"COUNTRY.US",display:"(888) 751-7804",number:"8887517804"},enrollmentFailure:{country:"COUNTRY.US",display:"(888) 751-7804",number:"8887517804"}},DATES:{formatWithSpaces:"DD / MM / YYYY",formatWithOutSpaces:"DD/MM/YYYY",serverFormat:"YYYYMMDD",usFormat:"MM/DD/YYYY",shortMonthDay:"MMM D",shortMonthDayYear:"MMM D, YYYY",bookingCard:{start:"MMM D",end:"MMM D, YYYY"},formatOLCI:"YYYY-MM-DD"}},C=Object.assign({},a);C.STATES=[{name:"Alabama",abbr:"AL"},{name:"Alaska",abbr:"AK"},{name:"Arizona ",abbr:"AZ"},{name:"Arkansas",abbr:"AR"},{name:"California ",abbr:"CA"},{name:"Colorado ",abbr:"CO"},{name:"Connecticut",abbr:"CT"},{name:"Delaware",abbr:"DE"},{name:"District of Columbia",abbr:"DC"},{name:"Florida",abbr:"FL"},{name:"Georgia",abbr:"GA"},{name:"Hawaii",abbr:"HI"},{name:"Idaho",abbr:"ID"},{name:"Illinois",abbr:"IL"},{name:"Indiana",abbr:"IN"},{name:"Iowa",abbr:"IA"},{name:"Kansas",abbr:"KS"},{name:"Kentucky",abbr:"KY"},{name:"Louisiana",abbr:"LA"},{name:"Maine",abbr:"ME"},{name:"Maryland",abbr:"MD"},{name:"Massachusetts",abbr:"MA"},{name:"Michigan",abbr:"MI"},{name:"Minnesota",abbr:"MN"},{name:"Mississippi",abbr:"MS"},{name:"Missouri",abbr:"MO"},{name:"Montana",abbr:"MT"},{name:"Nebraska",abbr:"NE"},{name:"Nevada",abbr:"NV"},{name:"New Hampshire",abbr:"NH"},{name:"New Jersey",abbr:"NJ"},{name:"New Mexico",abbr:"NM"},{name:"New York",abbr:"NY"},{name:"North Carolina",abbr:"NC"},{name:"North Dakota",abbr:"ND"},{name:"Ohio",abbr:"OH"},{name:"Oklahoma",abbr:"OK"},{name:"Oregon",abbr:"OR"},{name:"Pennsylvania",abbr:"PA"},{name:"Rhode Island",abbr:"RI"},{name:"South Carolina",abbr:"SC"},{name:"South Dakota",abbr:"SD"},{name:"Tennessee",abbr:"TN"},{name:"Texas",abbr:"TX"},{name:"Utah",abbr:"UT"},{name:"Vermont",abbr:"VT"},{name:"Virginia ",abbr:"VA"},{name:"Washington",abbr:"WA"},{name:"West Virginia",abbr:"WV"},{name:"Wisconsin",abbr:"WI"},{name:"Wyoming",abbr:"WY"}],C.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.US",display:"(866) 755-2171",number:"18667552171",loyalty:!0,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.US",display:"(305) 341-0205",number:"0013053410205",loyalty:!0,label:"Carrier roaming charges may apply."},folio:{country:"COUNTRY.US",display:"1-844-418-6824",number:"18444186824",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.US",display:"866-755-2171",number:"8667552171"}}
776),C.DATES=Object.assign({},a.DATES,{formatWithSpaces:"MM / DD / YYYY",formatWithOutSpaces:"MM/DD/YYYY"});const y=Object.assign({},a);y.STATES=[{name:"Alberta",abbr:"AB"},{name:"British Columbia",abbr:"BC"},{name:"Manitoba",abbr:"MB"},{name:"New Brunswick",abbr:"NB"},{name:"Newfoundland and Labrador",abbr:"NL"},{name:"Northwest Territories",abbr:"NT"},{name:"Nova Scotia",abbr:"NS"},{name:"Nunavut",abbr:"NU"},{name:"Ontario",abbr:"ON"},{name:"Prince Edward Island",abbr:"PE"},{name:"Quebec",abbr:"QC"},{name:"Saskatchewan",abbr:"SK"},{name:"Yukon Territory",abbr:"YT"}],y.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.CA",display:"(800) 722-5941",number:"18007225941",loyalty:!0,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.CA",display:"(305) 341-0205",number:"0013053410205",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.CA",display:"+1 305 341 0205",number:"13053410205"}});const v=Object.assign({},a);v.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.GB",display:"0844 493 2092",number:"08444932092",loyalty:!0,label:"Calls cost 7p per minute plus your phone company access charge."},gdpr:{country:"COUNTRY.GB",display:"0844 493 2092",number:"08444932092",loyalty:!0,label:"Calls cost 7p per minute plus your phone company access charge."},folio:{country:"COUNTRY.GB",display:"+44 344 493 2065",number:"443444932065",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.GB",display:"0844 481 7505",number:"08444817505"}});const l=Object.assign({},a);l.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.IE",display:"1800 932 622",number:"1800932622",loyalty:!1,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.IE",display:"1800-555-604",number:"1800555604",loyalty:!1,label:"Carrier roaming charges may apply."},folio:{country:"COUNTRY.IE",display:"01932 834 127",number:"01932834127",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.IE",display:"0844 481 7505",number:"08444817505"}});const h=Object.assign({},a);h.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.UK",display:"0844 493 2092",number:"08444932092",loyalty:!0,label:"Calls cost 7p per minute plus your phone company access charge."},gdpr:{country:"COUNTRY.UK",display:"0844 493 2092",number:"08444932092",loyalty:!0,label:"Calls cost 7p per minute plus your phone company access charge."},loyaltyEnrollment:{country:"COUNTRY.UK",display:"0844 481 7505",number:"08444817505"}});const u=Object.assign({},a);u.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.AU",display:"1800 754 500",number:"1800754500",loyalty:!1,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.AU",display:"+61-2-99375400",number:"61299375400",loyalty:!1,label:"Carrier roaming charges may apply."},folio:{country:"COUNTRY.AU",display:"1-800-754-500",number:"1800754500",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.AU",display:"1800 754 500",number:"1800754500"}});const c=Object.assign({},a);c.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.NZ",display:"0800 102 123",number:"0800102123",loyalty:!1,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.NZ",display:"+61-2-99375400",number:"61299375400",loyalty:!1,label:"Carrier roaming charges may apply."},folio:{country:"COUNTRY.NZ",display:"0800 102 123",number:"0800102123",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.NZ",display:"1800 754 500",number:"1800754500"}});const d=Object.assign({},a);d.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.MX",display:"(800) 700-2129",number:"0800102123",loyalty:!1,label:"Carrier roaming charges may apply.",extra:{city:{display:"+52 55 9178-0401",number:"525591780401",loyalty:!1,label:"Mexico City"}}}
776,gdpr:{country:"COUNTRY.MX",display:"9178-0400",number:"91780400",loyalty:!1,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.MX",display:"001855-877-3492",number:"0018558773492"}});const r=Object.assign({},a);r.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.BR",display:"001 954 628-9701",number:"0019546289701",loyalty:!0,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.BR",display:"0800 892 0206",number:"08008920206",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.BR",display:"055 11 30907200",number:"0551130907200"}});const O=Object.assign({},a);O.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.IT",display:"010 4218202",number:"0104218202",loyalty:!1,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.IT",display:"+39 010 9868411",number:"390109868411",loyalty:!1,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.IT",display:"0039 010 4218202",number:"00390104218202"}});const p=Object.assign({},a);p.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.SG",display:"65-6305-0033",number:"6563050033",loyalty:!1,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.SG",display:"+1 305 341 0205",number:"13053410205"}});const m=Object.assign({},a);m.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.HK",display:"+852 3189-3200",number:"85231893200",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.HK",display:"+1 305 341 0205",number:"13053410205"}});const s=Object.assign({},a);s.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.DE",display:"0800/724 0346",number:"08007240346",loyalty:!1,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.DE",display:"0800/7240346",number:"08007240346",loyalty:!1,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.DE",display:"0800 7240346",number:"08007240346"}});const o=Object.assign({},a);o.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.ES",display:"+34 902 209 207",number:"34902209207",loyalty:!0,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.ES",display:"+34 93 489 89 00",number:"34934898900",loyalty:!0,label:"Carrier roaming charges may apply."},folio:{country:"COUNTRY.ES",display:"+34 902 209 207",number:"34902209207",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.ES",display:"+ 34 902 209 207",number:"34902209207"}});const f=Object.assign({},a);f.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.CN",display:"(800) 722-5941",number:"18007225941",loyalty:!0,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.CN",display:"+86 4008850277",number:"864008850277",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.CN",display:"+1 305 341 0205",number:"13053410205"}});const M=Object.assign({},a);M.NUMBERS=Object.assign({},a.NUMBERS,{default:{country:"COUNTRY.FR",display:"+ 33 (0) 805 11 8000",number:"+330805118000",loyalty:!0,label:"Carrier roaming charges may apply."},gdpr:{country:"COUNTRY.FR",display:"+33 1 55 27 89 00",number:"33155278900",loyalty:!0,label:"Carrier roaming charges may apply."},folio:{country:"COUNTRY.FR",display:"+ 33 (0) 805 11 8000",number:"330805118000",email:"[email protected]",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.FR",display:"+33 (0) 805 11 8000",number:"330805118000"}});const x=Object.assign({},a);x.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.AT",display:"01/5954120",number:"015954120",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.AT",display:"01 / 59 54 12 - 0",number:"015954120"}});const b=Object.assign({},a);b.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.CH",display:"0800/200904",number:"0800200904",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.CH",display:"0800 200 904",number:"0800200904"}});const F=Object.assign({},a);F.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.NO",display:"0047 22 51 37 80",number:"004722513780",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.NO",display:"815 00 185",number:"81500185"}});const G=Object.assign({},a);G.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.SE",display:"0047 22 51 37 80",number:"004722513780",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.SE",display:"0200 88 01 55",number:"0200880155"}});const w=Object.assign({},a);w.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.DK",display:"0047 22 51 37 80",number:"004722513780",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.DK",display:"33 12 76 00",number:"33127600"}});const S=Object.assign({},a);S.NUMBERS=Object.assign({},a.NUMBERS,{gdpr:{country:"COUNTRY.FI",display:"0047 22 51 37 80",number:"004722513780",loyalty:!0,label:"Carrier roaming charges may apply."},loyaltyEnrollment:{country:"COUNTRY.FI",display:"020 386 386",number:"020386386"}});const V={BASE_COUNTRY_FLAGS:a,US:C,CA:y,GB:v,IE:l,UK:h,AU:u,NZ:c,MX:d,BR:r,IT:O,SG:p,HK:m,DE:s,ES:o,CN:f,FR:M,AT:x,CH:b,NO:F,SE:G,DK:w,FI:S};var E=n(44128);function D(ft){return ft&&"object"==typeof ft&&!Array.isArray(ft)}const k={AEM:{API_PATH:"",AppKey:""},API_PATH:"",APIGEE_APP_KEY:"",APIGEE_APP_KEY_GQL:"",APIGEE_APP_KEY_CRUISING_POWER:"",APIGEE_APP_KEY_MESSAGE_CENT
776ER:"",BRAND:null,BRAND_LOGO:null,BRAND_LOGO_MOBILE:null,FOOTER_LOGO:null,BRAND_INNER_LOGO:null,FALLBACK_LOGO:null,BRAND_NAME:null,BRAND_LOADER:null,BRAND_LOADER_LIGHT:null,ENROLLMENT_LOADER:{royal:null,celebrity:null},ACCOUNT_IMAGE:null,LOYALTY_PROGRAMS:{royal:"royal",celebrity:"celebrity"},BRAND_NAMES_SHORT_FORMS:{royal:"RCI",celebrity:"CEL",silversea:"Silversea"},UTAG_CONFIG:{host:"https://tags.tiqcdn.com",profile:null,path:"utag",utagFile:"utag.js",account:"rccl",environment:"qa"},baseUDO:{pageName:"guestaccount:%path%",pageType:"",platform:"Web",siteSection:"dashboard",siteType:"desktop",country:"usa",language:"en",brand:null,event_name:"",cruisebookingid:"",passengerid:""},LANGUAGE_CONFIG:{DEFAULT_LANGUAGE:"en",DEFAULT_COUNTRY:"US",SUPPORTED_LANGUAGES:["en","en-GB","es","pt","zh","fr","ja"],SUPPORTED_LOCALES:["sq-AL","ar-DZ","ar-BH","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-TN","ar-AE","ar-YE","be-BY","bg-BG","ca-ES","zh-CN","zh-SG","zh-HK","zh-TW","hr-HR","cs-CZ","da-DK","nl-BE","nl-NL","en-AU","en-CA","en-IN","en-IE","en-MT","en-NZ","en-PH","en-SG","en-ZA","en-GB","en-US","et-EE","fi-FI","fr-BE","fr-CA","fr-FR","fr-LU","fr-CH","de-AT","de-DE","de-LU","de-CH","el-CY","el-GR","iw-IL","hi-IN","hu-HU","is-IS","in-ID","ga-IE","it-IT","it-CH","ja-JP","ko-KR","lv-LV","lt-LT","mk-MK","ms-MY","mt-MT","no-NO","nb-NO","nn-NO","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sr-BA","sr-ME","sr-RS","sk-SK","sl-SI","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-SV","es-GT","es-HN","es-MX","es-NI","es-PA","es-PY","es-PE","es-PR","es-ES","es-US","es-UY","es-VE","sv-SE","th-TH","tr-TR","uk-UA","vi-VN"],SUPPORTED_COUNTRIES:{AFG:"AF",ALA:"AX",ALB:"AL",DZA:"DZ",ASM:"AS",AND:"AD",AGO:"AO",AIA:"AI",ATA:"AQ",ATG:"AG",ARG:"AR",ARM:"AM",ABW:"AW",AUS:"AU",AUT:"AT",AZE:"AZ",BHS:"BS",BHR:"BH",BGD:"BD",BRB:"BB",BLR:"BY",BEL:"BE",BLZ:"BZ",BEN:"BJ",BMU:"BM",BTN:"BT",BOL:"BO",BIH:"BA",BWA:"BW",BVT:"BV",BRA:"BR",VGB:"VG",IOT:"IO",BRN:"BN",BGR:"BG",BFA:"BF",BDI:"BI",KHM:"KH",CMR:"CM",CAN:"CA",CPV:"CV",CYM:"KY",CAF:"CF",TCD:"TD",CHL:"CL",CHN:"CN",HKG:"HK",MAC:"MO",CXR:"CX",CCK:"CC",COL:"CO",COM:"KM",COG:"CG",COD:"CD",COK:"CK",CRI:"CR",CIV:"CI",HRV:"HR",CUB:"CU",CYP:"CY",CZE:"CZ",DNK:"DK",DJI:"DJ",DMA:"DM",DOM:"DO",ECU:"EC",EGY:"EG",SLV:"SV",GNQ:"GQ",ERI:"ER",EST:"EE",ETH:"ET",FLK:"FK",FRO:"FO",FJI:"FJ",FIN:"FI",FRA:"FR",GUF:"GF",PYF:"PF",ATF:"TF",GAB:"GA",GMB:"GM",GEO:"GE",DEU:"DE",GHA:"GH",GIB:"GI",GRC:"GR",GRL:"GL",GRD:"GD",GLP:"GP",GUM:"GU",GTM:"GT",GGY:"GG",GIN:"GN",GNB:"GW",GUY:"GY",HTI:"HT",HMD:"HM",VAT:"VA",HND:"HN",HUN:"HU",ISL:"IS",IND:"IN",IDN:"ID",IRN:"IR",IRQ:"IQ",IRL:"IE",IMN:"IM",ISR:"IL",ITA:"IT",JAM:"JM",JPN:"JP",JEY:"JE",JOR:"JO",KAZ:"KZ",KEN:"KE",KIR:"KI",PRK:"KP",KOR:"KR",KWT:"KW",KGZ:"KG",LAO:"LA",LVA:"LV",LBN:"LB",LSO:"LS",LBR:"LR",LBY:"LY",LIE:"LI",LTU:"LT",LUX:"LU",MKD:"MK",MDG:"MG",MWI:"MW",MYS:"MY",MDV:"MV",MLI:"ML",MLT:"MT",MHL:"MH",MTQ:"MQ",MRT:"MR",MUS:"MU",MYT:"YT",MEX:"MX",FSM:"FM",MDA:"MD",MCO:"MC",MNG:"MN",MNE:"ME",MSR:"MS",MAR:"MA",MOZ:"MZ",MMR:"MM",NAM:"NA",NRU:"NR",NPL:"NP",NLD:"NL",ANT:"AN",NCL:"NC",NZL:"NZ",NIC:"NI",NER:"NE",NGA:"NG",NIU:"NU",NFK:"NF",MNP:"MP",NOR:"NO",OMN:"OM",PAK:"PK",PLW:"PW",PSE:"PS",PAN:"PA",PNG:"PG",PRY:"PY",PER:"PE",PHL:"PH",PCN:"PN",POL:"PL",PRT:"PT",PRI:"PR",QAT:"QA",REU:"RE",ROU:"RO",RUS:"RU",RWA:"RW",BLM:"BL",SHN:"SH",KNA:"KN",LCA:"LC",MAF:"MF",SPM:"PM",VCT:"VC",WSM:"WS",SMR:"SM",STP:"ST",SAU:"SA",SEN:"SN",SRB:"RS",SYC:"SC",SLE:"SL",SGP:"SG",SVK:"SK",SVN:"SI",SLB:"SB",SOM:"SO",ZAF:"ZA",SGS:"GS",SSD:"SS",ESP:"ES",LKA:"LK",SDN:"SD",SUR:"SR",SJM:"SJ",SWZ:"SZ",SWE:"SE",CHE:"CH",SYR:"SY",TWN:"TW",TJK:"TJ",TZA:"TZ",THA:"TH",TLS:"TL",TGO:"TG",TKL:"TK",TON:"TO",TTO:"TT",TUN:"TN",TUR:"TR",TKM:"TM",TCA:"TC",TUV:"TV",UGA:"UG",UKR:"UA",ARE:"AE",GBR:"GB",USA:"US",UMI:"UM",URY:"UY",UZB:"UZ",VUT:"VU",VEN:"VE",VNM:"VN",VIR:"VI",WLF:"WF",ESH:"EH",YEM:"YE",ZMB:"ZM",ZWE:"ZW"}},LANG_WUC_MAP:{USA:"en",IRL:"en-GB",BGR:"en-GB",CAN:"en-GB",AUS:"en-GB",NZL:"en-GB",MEX:"es",ESP:"es",BRA:"pt",FRA:"fr"},FORGEROCK_CONFIG:{brand:null,urlConfig:{clientId:null,redirectUri:"/account/auth/process-token/",responseType:"id_token token",scope:"openid profile vdsid",authId:null},cookies:{rememberMe:{name:"fr_remember_me",duration:null}},security:{sessionNonce:"sessionNonce",stateNonce:"stateNonce"}},COOKIES:{PERMANENT:{hasLoginOnce:"hasLoginOnce"},NAMES:{accessToken:"accessToken",loyaltyData:"loyaltyData",rcclssocookie:"rcclssocookie",gaAppVersion:"ga-app-version",pmcEnableHealthInfo:"pmc-enable-health-info",autoLoginCookie:"RCCLAutoLoginPCookie",checkinData:"checkinData",olciData:"olciData",irToken:"irToken",useNavigation:"useNavigation",idToken:"idToken",feSso:"fe_sso",frRememberMe:"fr_remember_me"},ENV_COUNTRY:["wuc_nonprod","wuc"],ENV_LANGUAGE:["wul_nonprod","wul"],EXTEND_SESSION_MILLIS:3e5},COUNTRY_FLAGS:null,LOYALTY_DATA:{id:null,tier:null,points:null},MIDDLEWARE:{BRAND:null,CHANNEL:"web"},URLS:null,IMAGE_CONTAINER:"/images",ENABLE_ANALYTICS:!0,SITE_URL:`${location.protocol}//${location.host}`,FEATURES:{J2:!0,MANUAL_LINK_SEARCH:!0,RESERVATION_LOOKUP:!1},SUPPORT_EMAIL:null,ACCOUNT_HELP_EMAIL:null,CROWN_AND_ANCHOR_EMAIL:null,URLS_THAT_SHOULDNT_HAVE_VDS_ID_IN_HEADER:[/.*\/mobile\/v2\/ships\/.*\/sailDate\/.*\/categories/,/.*\/mobile\/v3\/products\/codes.*/],WHITE_LIST_DOMAINS:[],WHITE_LIST_FOR_401:[/.*\/auth\/json\/.*/,/.*\/guestAccounts\/securityQuestions\/vali
776dation.*/,/.*\/web\/v1\/core\/promotions\/ALL_R_EG_SX_110320_10/,/.*\/en\/royal\/mobile\/cruisingpower-reservations\/v1\/validateCPAgent.*/,/.*\/mobile\/cruisingpower-reservations\/v1\/cp-profile.*/],ITINERARY_UPDATES:null,TELEMETRY:{APP_ID:{GUEST_ACCOUNT:"Web.CustomerJourney",PLAN_MY_CRUISE:"Web.PlanMyCruise"},APP_ENV:E.OX.CLOUD_PROD,BATCH:{SIZE:10,ENABLED:!0},DEBUG:{ENABLED:!1,VERBOSE:!1,CONSOLE_COLLAPSED:!1},TRACKING_URL:"https://stg1.api.rccl.com/en/royal/web/v1/ee/telemetry/events",DISABLED:!1},APP_DYNAMICS:{APP_KEY:{GUEST_ACCOUNT:"",PLAN_MY_CRUISE:""}},SPINNERS:{circle:null,logo:null},CATEGORY_WHITELIST:null,CATEGORY_BLACKLIST:null,CATEGORY_PORT_FILTER:{portCode:"",categoryIds:[]},TAX_AND_GRATUITY_CURRENCIES:["USD","HKD","CAD","CNY","SGD","BRL","MXN"],ENV_NAME:"production",PAYMENT_CHANNEL:"",PAYMENT_CHANNEL_FOR_MANAGE_PAYMENTS:"",PDP_LOAD_NUMBER_OF_ITEMS:24,PMC_TIMEOUT_DEFAULT:2e4,PMC_ORDERS_TIMEOUT:6e4,OWNERSHIP_TRANSFER_WINDOW_HOURS:48,SESSION_CHECK_MS:3e5,GATED_URL_LIST:["/cruise-planner/order-history","/cruise-planner/checkout","/cruise-planner/cart"],AW
776S_S3_BUCKET_PATH:"/account-web",PMC_FILTER_WHITELIST:["spa","shorex"],LOYALTY_ENV_HEADER:"prd",LOYALTY_DOMAIN_VALUE:"",environment:{envName:"",production:!1},AEM_PATH:"",COMMUNITY_URL:"/community/",SPLUNK_RUM_CONFIG:void 0,HTTP_LOGGING_ENABLED:!1,CRUISE_PLANNER_SHIPS_NOT_AVAILABLE:[]};function X(ft,...Pt){if(!Pt.length)return ft;const Ct=Pt.shift();if(D(ft)&&D(Ct))for(const Nt in Ct)D(Ct[Nt])?(ft[Nt]||Object.assign(ft,{[Nt]:{}}),X(ft[Nt],Ct[Nt])):Object.assign(ft,{[Nt]:Ct[Nt]});return X(ft,...Pt)}const K={HOME:"https://www.celebritycruises.com/",VOYAGE_ASSETS:"https://stg-rcldigital.aem.rccl.com",ABOUT_US:"https://www.celebritycruises.com/about-us/company-profile",LEGAL:"https://www.stage1.celebritycruises.com/legal-information",CRUISE_AND_PURCHASE_TERMS:"https://www.celebritycruises.com/guest-terms",SITEMAP:"https://www.celebritycruises.com/company/customer-support/sitemap",START_BROWSING:"https://www.stage1.celebritycruises.com/itinerary-search",CHECK_IN:"/check-in/olci/version",CHECKIN:"/checkin/selectforcheckin",PAYMENT:"https://www.stage1.celebritycruises.com/post-booking/manage-vacation",COOKIE_POLICY:"https://www.stage1.celebritycruises.com/privacy-policy",FAQS:"https://www.stage1.celebritycruises.com/company/customer-support/help-and-faqs/pre-cruise/guest-account",CONTACT_US:"https://www.celebritycruises.com/company/customer-support/contact-us",LOGOUT_DESTINATION:"https://www.stage1.celebritycruises.com",EXCLUSIVE_OFFERS:"https://www.stage1.celebritycruises.com/captains-club",FLIGHTS_BY_CELEBRITY:"https://www.stage1.celebritycruises.com/flights-by-celebrity",CELEBRITY_OFFERS:"https://www.stage1.celebritycruises.com/captains-club/exclusive-offers",LOYALTY_TIER:{DEFAULT:"https://www.stage1.celebritycruises.com/my-captains-club/benefits"},CRUISE_PLANNER:"https://www.stage1.celebritycruises.com/cruiseplanner/login",PLAN_CRUISE:"https://www.stage1.celebritycruises.com/itinerary-search",PLAN_MY_CRUISE:"https://www.stage1.celebritycruises.com/account/cruise-planner",IOS_STORE:"https://cel.app.link/AppStore",ANDROID_STORE:"https://cel.app.link/GooglePlayStore",PRIVACY_POLICY:"https://www.celebritycruises.com/privacy-policy",PASSENGER_BILL_OF_RIGHTS:"https://www.celebritycruises.com/company/customer-support/bill-of-rights",PRIVATE_JOURNEY:"https://www.stage1.celebritycruises.com/shore-excursions/private-journeys",PRICELINE_BOOKING:"https://hotels.celebritycruises.com/wl/r/hotel?mk=celeb-XwizMY739SYUZ3hnW0ka&wl_source=guestaccount",MANAGE_RESERVATION:"https://www.stage1.celebritycruises.com/booked/overview",NOT_ENROLLED_DETAILS_LINK:"https://www.royalcaribbean.com/crown-anchor-society",CASINO_OFFERS:"https://www.celebritycruises.com/things-to-do-onboard/casino/blue-chip-club",CRUISES_OFFERS:"https://www.celebritycruises.com/cruises?country=USA",MANAGE_RESERVATION_ENCRYPT:"https://www.stage1.celebritycruises.com/manage/api/v1/bookings/encrypt",MANAGE_RESERVATION_REDIRECT:"https://www.stage1.celebritycruises.com/manage/api/v1/bookings/redirect",PAYMENT_REDIRECT:"https://www.stage1.celebritycruises.com/checkout/amend",START_CHECK_IN:"https://cel.app.link/olci",SILVERSEA_BRAND_HOME:"https://www.silversea.com",ROYAL_BRAND_HOME:"https://www.stage2.royalcaribbean.com/",CELEBRITY_BRAND_HOME:"https://www.stage1.celebritycruises.com/",GIFTS:"https://www.stage1.celebritycruises.com/gift-cards",MOBILE_APP:"https://www.stage1.celebritycruises.com/celebrity-app",REEBOK:"https://www.stage1.celebritycruises.com/cruises",SECONDARY_BRAND_HOME:"https://www.stage2.royalcaribbean.com"},T=Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.com.mx/acerca-de-nosotros/",LEGAL:"https://stg3.celebritycruises.com.mx/legales",SITEMAP:"https://stg3.celebritycruises.com.mx/sitemap",COOKIE_POLICY:"https://stg3.celebritycruises.com.mx/politica-de-privacidad",FAQS:"https://stg3.celebritycruises.com.mx/preguntas-frecuentes"}),Y=Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.com.br/sobre-a-celebrity-cruises/",LEGAL:"https://stg3.celebritycruises.com.br/condicoes_gerais_celebrity_082010.pdf",SITEMAP:"https://stg3.celebritycruises.com.br/sitemap",COOKIE_POLICY:"https://stg3.celebritycruises.com.br/politica-de-privacidad",FAQS:"https://stg3.celebritycruises.com/int/company/customer-support/help-and-faqs/pre-cruise/guest-account"}),H=Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.es/sobre-celebrity-cruises.asp",LEGAL:"https://stg3.celebritycruises.es/info-legal.asp",SITEMAP:"https://stg3.celebritycruises.es/sitemap.asp",LOGOUT_DESTINATION:"https://www.stage1.celebritycruises.com/es/",COOKIE_POLICY:"https://stg3.celebritycruises.es/politica-cookies.asp"}),et=Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.co.uk/why-celebrity-cruises/",LEGAL:"https://stg3.celebritycruises.co.uk/terms-and-conditions/booking-conditions/",SITEMAP:"https://stg3.celebritycruises.co.uk/company/customer-support/sitemap",START_BROWSING:"https://stg3.celebritycruises.co.uk/packages-and-cruises/search/",COOKIE_POLICY:"https://stg3.celebritycruises.co.uk/terms-and-conditions/booking-conditions/",FAQS:"https://stg3.celebritycruises.co.uk/faqs/",LOGOUT_DESTINATION:"https://www.stage1.celebritycruises.com/gb/",PLAN_CRUISE:"https://www.celebritycruises.co.uk/packages-and-cruises/search/",CELEBRITY_OFFERS:"https://www.celebritycruises.co.uk/captains-club/"}),q=Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.com.au/about-celebrity/about-celebrity-overview",LEGAL:"https://stg3.celebritycruises.com.au/footer/australia-terms-conditions/",COOKIE_POLICY:"https://stg3.celebritycruises.com.au/footer/privacy-policy/"}),j=Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.com.au/about-celebrity/about-celebrity-overview",LEGAL:"https://stg3.celebritycruises.com.au/footer/new-zealand-terms-conditions/",COOKIE_POLICY:"https://stg3.celebritycruises.com.au/footer/privacy-policy/"}),$=Object.assign({},K,{ABOUT_US:"https://stg3.celebrity-hkg.com/celebritycruises/about/",LEGAL:"https://stg3.celebrity-hkg.com/celebritycruises/TermsConditions/",SITEMAP:"https://stg3.celebrity-hkg.com/celebritycruises/SiteMap/",FAQS:"https://stg3.celebrity-hkg.com/celebritycruises/FAQ/"}),z=Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.fr/a-propos-celebrity-croisiere.asp",LEGAL:"https://stg3.celebritycruises.fr/information-legale-croisiere.asp",SITEMAP:"https://stg3.celebritycruises.fr/plan-site-croisiere.asp",COOKIE_POLICY:"https://stg3.celebritycruises.fr/politique-cookies.asp",FAQS:"https://stg3.celebritycruises.fr/questions-frequentes-croisiere.asp",LOGOUT_DESTINATION:"https://stg3.celebritycruises.fr/"}),it={BASE_URLS:K,MX_EN:T,BR_EN:Y,ES_EN:H,IE_EN:Object.assign({},K,{ABOUT_US:"https://stg3.celebritycruises.ie/why-celebrity-cruises/",LEGAL:"https://stg3.celebritycruises.ie/terms-and-conditions/booking-conditions/",START_BROWSING:"https://stg3.celebritycruises.ie/packages-and-cruises/search/",COOKIE_POLICY:"https://stg3.celebritycruises.ie/terms-and-conditions/cookies/",FAQS:"https://stg3.celebritycruises.ie/faqs/",LOGOUT_DESTINATION:"https://stg3.celebritycruises.ie/",EXCLUSIVE_OFFERS:"https://stg3.celebritycruises.ie/captains-club/"}),GB_EN:et,AU_EN:q,NZ_EN:j,HK_EN:$,FR_EN:z,CA_EN:Object.assign({},K,{FAQS:"https://www.stage1.celebritycruises.com/ca/company/customer-support/help-and-faqs/pre-cruise/guest-account"})},Ot={BRAND:"celebrity",BRAND_LOGO:"assets/images/celebrity/logo.svg",BRAND_LOGO_MOBILE:"assets/images/celebrity/stacked_logo_white.png",FOOTER_LOGO:"assets/images/celebrity/logo-blue.svg",BRAND_INNER_LOGO:"assets/images/celebrity/logo.svg",FALLBACK_LOGO:"assets/images/celebrity/logo.png",BRAND_LOADER:"assets/loader/celebrity/loader.json",BRAND_LOADER_LIGHT:"assets/loader/celebrity/loader_light.json",ENROLLMENT_LOADER:{royal:"assets/images/royal/enrollment-loader.json",celebrity:"assets/images/celebrity/enrollment-loader.json"},BRAND_NAME:"Celebrity Cruise",ACCOUNT_IMAGE:"assets/images/celebrity/account.svg",COUNTRY_FLAGS:V,LOYALTY_DATA:{id:"captainsClubId",tier:"captainsClubLoyaltyTier",points:"captainsClubLoyaltyIndividualPoints"},MIDDLEWARE:{BRAND:"C"},UTAG_CONFIG:{profile:"pmc-celebrity"},baseUDO:{pageName:k.baseUDO.pageName.replace("%brand%","cel"),brand:"CEL"},FORGEROCK_CONFIG:{brand:"C"},TELEMETRY:{APP_ID:{GUEST_ACCOUNT:"Celebrity."+k.TELEMETRY.APP_ID.GUEST_ACCOUNT,PLAN_MY_CRUISE:"Celebrity."+k.TELEMETRY.APP_ID.PLAN_MY_CRUISE}},APP_DYNAMICS:{APP_KEY:{GUEST_ACCOUNT:"AD-AAB-ABC-KYB",PLAN_MY_CRUISE:"AD-AAB-AAX-FXA"}},PAYMENT_CHANNEL:"HYBRIS_CELEBRITY_WEB",PAYMENT_CHANNEL_FOR_MANAGE_PAYMENTS:"Digital_Wallet_Celebrity_Web",URLS:it,SUPPORT_EMAIL:"[email protected]",ACCOUNT_HELP_EMAIL:"[email protected]",CROWN_AND_ANCHOR_EMAIL:"[email protected]",SPINNERS:{circle:"assets/images/celebrity/circular-spinner.gif",logo:"assets/images/celebrity/cel-logo-animation-black.json"},ITINERARY_UPDATES:"https://www.celebritycruises.com/travel-alert/voluntary-suspension-of-cruising",CRUISE_PLANNER_SHIPS_NOT_AVAILABLE:["FL","XP","WC"]},Lt=X(k,Ot),Et={HOME:"https://www.celebritycruises.com",ABOUT_US:"https://www.celebritycruises.com/about-us/company-profile",LEGAL:"https://www.celebritycruises.com/legal-information",CRUISE_AND_PURCHASE_TERMS:"https://www.celebritycruises.com/guest-terms",SITEMAP:"https://www.celebritycruises.com/company/customer-support/sitemap",START_BROWSING:"https://www.celebritycruises.com/itinerary-search",CHECK_IN:"/check-in/olci/version",CHECKIN:"/checkin/selectforcheckin",PAYMENT:"https://www.celebritycruises.com/post-booking/manage-vacation",COOKIE_POLICY:"https://www.celebritycruises.com/privacy-policy",FAQS:"https://www.celebritycruises.com/company/customer-support/help-and-faqs/pre-cruise/guest-account",CONTACT_US:"https://www.celebritycruises.com/company/customer-support/contact-us",LOGOUT_DESTINATION:"https://www.celebritycruises.com",EXCLUSIVE_OFFERS:"https://www.celebritycruises.com/captains-club",FLIGHTS_BY_CELEBRITY:"https://www.celebritycruises.com/flights-by-celebrity",CELEBRITY_OFFERS:"https://www.celebritycruises.com/captains-club/exclusive-offers",VOYAGE_ASSETS:"https://rcldigital.aem.rccl.com",LOYALTY_TIER:{DEFAULT:"https://www.celebritycruises.com/my-captains-club/benefits"},CRUISE_PLANNER:"https://www.celebritycruises.com/cruiseplanner/login",PLAN_CRUISE:"https://www.celebritycruises.com/itinerary-search",PLAN_MY_CRUISE:"https://www.celebritycruises.com/account/cruise-planner",IOS_STORE:"https://cel.app.link/AppStore",AND
776ROID_STORE:"https://cel.app.link/GooglePlayStore",PRIVACY_POLICY:"https://www.celebritycruises.com/privacy-policy",PASSENGER_BILL_OF_RIGHTS:"https://www.celebritycruises.com/company/customer-support/bill-of-rights",PRIVATE_JOURNEY:"https://www.celebritycruises.com/shore-excursions/private-journeys",PRICELINE_BOOKING:"https://hotels.celebritycruises.com/wl/r/hotel?mk=celeb-XwizMY739SYUZ3hnW0ka&wl_source=guestaccount",MANAGE_RESERVATION:"https://www.celebritycruises.com/booked/overview",NOT_ENROLLED_DETAILS_LINK:"https://www.royalcaribbean.com/crown-anchor-society",CASINO_OFFERS:"https://www.celebritycruises.com/things-to-do-onboard/casino/blue-chip-club",CRUISES_OFFERS:"https://www.celebritycruises.com/cruises?country=USA",MANAGE_RESERVATION_ENCRYPT:"https://www.celebritycruises.com/manage/api/v1/bookings/encrypt",MANAGE_RESERVATION_REDIRECT:"https://www.celebritycruises.com/manage/api/v1/bookings/redirect",PAYMENT_REDIRECT:"https://www.celebritycruises.com/checkout/amend",START_CHECK_IN:"https://cel.app.link/olci",SILVERSEA_BRAND_HOME:"https://www.silversea.com",ROYAL_BRAND_HOME:"https://www.royalcaribbean.com",CELEBRITY_BRAND_HOME:"https://www.celebritycruises.com",GIFTS:"https://www.celebritycruises.com/gift-cards",MOBILE_APP:"https://www.celebritycruises.com/celebrity-app",REEBOK:"https://www.celebritycruises.com/cruises",SECONDARY_BRAND_HOME:"https://www.royalcaribbean.com"},Tt=Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.com.mx/acerca-de-nosotros/",LEGAL:"https://www.celebritycruises.com.mx/legales",SITEMAP:"https://www.celebritycruises.com.mx/sitemap",COOKIE_POLICY:"https://www.celebritycruises.com.mx/politica-de-privacidad",FAQS:"https://www.celebritycruises.com.mx/preguntas-frecuentes"}),Bt=Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.com.br/sobre-a-celebrity-cruises/",LEGAL:"https://www.celebritycruises.com.br/condicoes_gerais_celebrity_082010.pdf",SITEMAP:"https://www.celebritycruises.com.br/sitemap",COOKIE_POLICY:"https://www.celebritycruises.com.br/politica-de-privacidad",FAQS:"https://www.celebritycruises.com/int/company/customer-support/help-and-faqs/pre-cruise/guest-account"}),kt=Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.es/sobre-celebrity-cruises.asp",LEGAL:"https://www.celebritycruises.es/info-legal.asp",SITEMAP:"https://www.celebritycruises.es/sitemap.asp",COOKIE_POLICY:"https://www.celebritycruises.es/politica-cookies.asp"}),xt=Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.co.uk/why-celebrity-cruises/",LEGAL:"https://www.celebritycruises.co.uk/terms-and-conditions/booking-conditions/",SITEMAP:"https://www.celebritycruises.com/company/customer-support/sitemap",START_BROWSING:"https://www.celebritycruises.co.uk/packages-and-cruises/search/",COOKIE_POLICY:"https://www.celebritycruises.co.uk/terms-and-conditions/cookies/",FAQS:"https://www.celebritycruises.co.uk/faqs/",LOGOUT_DESTINATION:"https://www.celebritycruises.co.uk/",PLAN_CRUISE:"https://www.celebritycruises.co.uk/packages-and-cruises/search/",CELEBRITY_OFFERS:"https://www.celebritycruises.co.uk/captains-club/"}),St=Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.com/about-celebrity/about-celebrity-overview",LEGAL:"https://www.celebritycruises.com.au/footer/australia-terms-conditions/",COOKIE_POLICY:"https://www.celebritycruises.com.au/footer/privacy-policy/"}),jt=Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.com/about-celebrity/about-celebrity-overview",LEGAL:"https://www.celebritycruises.com.au/footer/new-zealand-terms-conditions/",COOKIE_POLICY:"https://www.celebritycruises.com.au/footer/privacy-policy/"}),Wt=Object.assign({},Et,{ABOUT_US:"https://www.celebrity-hkg.com/celebritycruises/about/",LEGAL:"https://www.celebrity-hkg.com/celebritycruises/TermsConditions/",SITEMAP:"https://www.celebrity-hkg.com/celebritycruises/SiteMap/",FAQS:"https://www.celebrity-hkg.com/celebritycruises/FAQ/"}),at=Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.fr/a-propos-celebrity-croisiere.asp",LEGAL:"https://www.celebritycruises.fr/information-legale-croisiere.asp",SITEMAP:"https://www.celebritycruises.fr/plan-site-croisiere.asp",COOKIE_POLICY:"https://www.celebritycruises.fr/politique-cookies.asp",FAQS:"https://www.celebritycruises.fr/questions-frequentes-croisiere.asp",LOGOUT_DESTINATION:"https://www.celebritycruises.fr/"}),ut=X(Lt,{environment:{production:!0,envName:"prod.celebrity"},APIGEE_APP_KEY:"qpRMO6lj4smwkT1sWlSdIj7b8QF5rG8Q",APIGEE_APP_KEY_GQL:"trL6t38bpvA5
776p65XlCrhFKzug8NNkqCD",APIGEE_APP_KEY_CRUISING_POWER:"6TZZvVLArsD5GE6JzZke0KkUwrxAYQx5",APIGEE_APP_KEY_MESSAGE_CENTER:"IxXPQQ9zMH1sqEouOnoaCCPwDRPATiKo",API_PATH:"https://aws-prd.api.rccl.com",AEM:{AppKey:"qpRMO6lj4smwkT1sWlSdIj7b8QF5rG8Q",API_PATH:"https://aws-prd.api.rccl.com"},COOKIE_LANGUAGE:["wul"],COOKIE_COUNTRY:["wuc"],UTAG_CONFIG:{environment:"prod"},FORGEROCK_CONFIG:{urlConfig:{clientId:"g9S023t74473ZUk909FN68F0b4N67PSOh92o04vL0BR6537pI2y2h94M6BbU7D6J",authId:"W66846kPQv1750975oodH5M8zC6Ta7m30kH2Q78l2WmU50FCgqpP13w77377k7IB"}},URLS:{BASE_URLS:Et,MX_EN:Tt,BR_EN:Bt,ES_EN:kt,IE_EN:Object.assign({},Et,{ABOUT_US:"https://www.celebritycruises.ie/why-celebrity-cruises/",LEGAL:"https://www.celebritycruises.ie/terms-and-conditions/booking-conditions/",START_BROWSING:"https://www.celebritycruises.ie/packages-and-cruises/search/",COOKIE_POLICY:"https://www.celebritycruises.ie/terms-and-conditions/cookies/",FAQS:"https://www.celebritycruises.ie/faqs/",LOGOUT_DESTINATION:"https://www.celebritycruises.ie/",EXCLUSIVE_OFFERS:"https://www.celebritycruises.ie/captains-club/"}),GB_EN:xt,AU_EN:St,NZ_EN:jt,HK_EN:Wt,FR_EN:at,CA_EN:Object.assign({},Et,{FAQS:"https://www.celebritycruises.com/ca/company/customer-support/help-and-faqs/pre-cruise/guest-account"})},CRUISE_PLANNER_PARAMS:{sourceenv:"www_celebritycruises_com",errorPage:"https://www.celebritycruises.com/pcp-reservation/find-your-reservation?error={0}"},WHITE_LIST_DOMAINS:["https://prd.ssoweb.rccl.com","https://www.celebritycruises.com","https://www.celebritycruises.co.uk","https://www.new.celebritycruises.com","https://preprod.celebritycruises.com"],TELEMETRY:{APP_ENV:E.OX.CLOUD_PROD,BATCH:{SIZE:10,ENABLED:!0},DEBUG:{ENABLED:!1,VERBOSE:!1,CONSOLE_COLLAPSED:!1},TRACKING_URL:"https://aws-prd.api.rccl.com/en/celebrity/web/v1/ee/telemetry/events",ENDPOINTS:[],DISABLED:!1},APP_DYNAMICS:{APP_KEY:{GUEST_ACCOUNT:"AD-AAB-AAY-CFS",PLAN_MY_CRUISE:"AD-AAB-AAY-CFS"}},ENV_NAME:"production",AEM_PATH:"https://www.celebritycruises.com/media-assets/pmc",LOYALTY_ENV_HEADER:"prd",LOYALTY_DOMAIN_VALUE:"celebritycruises.com",MICROFRONTENDS:{COBRAND_PROGRAM:{remoteEntryUrl:"https://www.celebritycruises.com/loyalty-cobrand/remoteEntry.js",containerName:"cobrand_program",exposedModule:"./bootstrap"}},SPLUNK_RUM_CONFIG:{realm:"us1",debug:!1,version:"2.0.0",rumAccessToken:"MzyH-G3F6pMISt2uVa2LeQ",applicationName:"Celebrity-Customer-Journey-Web",deploymentEnvironment:"digital-prd-dkp2"}})},45312:(J,U,n)=>{"use strict";n.d(U,{$E:()=>it,$K:()=>o,Az:()=>u,B0:()=>W,CJ:()=>M,CV:()=>Y,Fh:()=>e,G1:()=>l,Gv:()=>k,II:()=>Ot,Ij:()=>d,Le:()=>r,ML:()=>b,Ob:()=>Lt,QY:()=>j,W6:()=>L,XB:()=>E,ah:()=>H,ai:()=>q,bZ:()=>O,cA:()=>T,f0:()=>et,l0:()=>v,mK:()=>C,mx:()=>f,oc:()=>z,pz:()=>Z,qH:()=>St,qt:()=>a,tk:()=>D,tl:()=>S,to:()=>at,uP:()=>ot,vN:()=>nt,vQ:()=>G,wE:()=>Xt,wJ:()=>s,ym:()=>$});var t=n(97513);const e=t.A,a=t.A.BRAND,C=t.A.BRAND_LOGO,v=t.A.BRAND_INNER_LOGO,l=t.A.ENV_NAME,u=t.A.BRAND_NAME,d=t.A.BRAND_LOADER,r=t.A.BRAND_LOADER_LIGHT,O=t.A.ENROLLMENT_LOADER,s=t.A.BRAND_NAMES_SHORT_FORMS,o=t.A.UTAG_CONFIG,f=t.A.baseUDO,M=t.A.LANGUAGE_CONFIG,b=t.A.FORGEROCK_CONFIG,G=t.A.LOYALTY_DATA,S=t.A.URLS,E=t.A.ENABLE_ANALYTICS,L=t.A.SITE_URL,D=t.A.COUNTRY_FLAGS,k=t.A.FEATURES,W=t.A.ACCOUNT_HELP_EMAIL,T=t.A.environment,Y=t.A.APIGEE_APP_KEY,H="bjnm9J1yJjsQQLqQ8H1ffKtDAv3kQohG",et=t.A.API_PATH,q=t.A.AEM_PATH,j=t.A.AWS_S3_BUCKET_PATH,$=t.A.COOKIES.NAMES,z=t.A.COOKIES.PERMANENT,ot=t.A.COOKIES.EXTEND_SESSION_MILLIS,nt=t.A.MIDDLEWARE.BRAND,it=t.A.MIDDLEWARE.CHANNEL,Ot=t.A.COOKIES.ENV_LANGUAGE,Lt=t.A.COOKIES.ENV_COUNTRY,St=t.A.AEM,at=t.A.APIGEE_APP_KEY_GQL,Xt=t.A.APIGEE_APP_KEY_MESSAGE_CENTER,Z=t.A.CRUISE_PLANNER_SHIPS_NOT_AVAILABLE},29105:(J,U,n)=>{"use strict";var t=n(54438),e=n(345),a=n(49585),C=n(32815),y=n(2249),v=n(75672),l=n(82048),h=n(89079),u=n(30803),c=n(25558),d=n(1807),r=n(96354),O=n(7673),p=n(5964),m=n(49287),s=n(45312),o=n(10467),f=n(63003),M=n(89417),x=n(10867),b=n(83458),F=n(15231),G=n(62087),w=n(99437),S=n(97127);let V=(()=>{class I{constructor(){this.http=(0,t.WQX)(b.lU),this.localizationService=(0,t.WQX)(S.P),this.language=this.localizationService.detect()?.language}sendEmail(g){return this.http.post(`${s.f0}/${this.language}/${s.qt}
776/web/feedback/submit-feedback`,g,F.zy).pipe((0,G.w)(1e4),(0,w.W)(B=>(0,F.O9)(B)))}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})();var E=n(96697),L=n(65813),D=n(59640),k=n(65972);let W=(()=>{class I{getReplayLink(){const g=window;return g._uxa?new Promise(N=>{let B=!1;const st=setTimeout(()=>{B||(B=!0,N(""))},350);g._uxa.push(["replay:link:generate",{withTimestamp:!0},ct=>{B||(B=!0,clearTimeout(st),N(ct.isRecording&&ct.replayLink?ct.replayLink:""))}])}):Promise.resolve("")}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})();var K=n(65151);function T(I,dt){if(1&I){const g=t.RV6();t.j41(0,"ul",8)(1,"li",14),t.bIt("click",function(){const B=t.eBV(g).$implicit,st=t.XpG(3);return t.Njj(st.countStar(B))})("keydown",function(B){const st=t.eBV(g).$implicit,ct=t.XpG(3);return t.Njj(ct.onStarKeyDown(B,st))}),t.nrm(2,"img",15)(3,"img",16),t.k0s()()}if(2&I){const g=dt.$implicit,N=t.XpG(3);t.R7$(),t.AVh("selected",g<=N.selectedValue),t.R7$(),t.Y8G("hidden",g<=N.selectedValue)("src","assets/images/base/blank-star.svg",t.B4B),t.R7$(),t.Y8G("hidden",g>N.selectedValue)("src","assets/images/base/yellow-star.svg",t.B4B)}}function Y(I,dt){if(1&I){const g=t.RV6();t.j41(0,"div",2)(1,"h3"),t.EFF(2),t.k0s(),t.j41(3,"p"),t.EFF(4),t.k0s(),t.j41(5,"div"),t.Z7z(6,T,4,6,"ul",8,t.fX1),t.k0s(),t.j41(8,"h4"),t.EFF(9),t.k0s(),t.j41(10,"form",9),t.bIt("ngSubmit",function(){t.eBV(g);const B=t.XpG(2);return t.Njj(B.submitFeedback())}),t.j41(11,"label",10),t.EFF(12),t.k0s(),t.nrm(13,"textarea",11),t.j41(14,"p",12),t.EFF(15),t.k0s(),t.j41(16,"div",6)(17,"button",13),t.EFF(18),t.k0s()()()()}if(2&I){const g=t.XpG(2);t.R7$(2),t.JRh(g.feedbackFormContent.title),t.R7$(2),t.JRh(g.feedbackFormContent.ratingTitle),t.R7$(2),t.Dyx(g.stars),t.R7$(3),t.JRh(g.feedbackFormContent.feedbackBoxTitle),t.R7$(),t.Y8G("formGroup",g.feedbackForm),t.R7$(2),t.JRh(g.feedbackFormContent.feedbackBoxLabel),t.R7$(),t.FS9("placeholder",g.feedbackFormContent.feedbackBoxPlaceholder),t.R7$(2),t.JRh(g.feedbackFormContent.disclaimer),t.R7$(2),t.AVh("feedback-submit-button__royal","royal"===g.brand)("feedback-submit-button__celebrity","celebrity"===g.brand),t.Y8G("disabled",g.submitDisabled),t.R7$(),t.JRh(g.feedbackFormContent.submitButtonText)}}function H(I,dt){if(1&I){const g=t.RV6();t.j41(0,"button",0),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.openFeedBackModal())}),t.EFF(1),t.k0s(),t.j41(2,"shared-feedback-modal",1),t.DNE(3,Y,19,13,"div",2),t.j41(4,"div",3),t.nrm(5,"img",4),t.j41(6,"h3"),t.EFF(7),t.k0s(),t.j41(8,"p"),t.EFF(9),t.j41(10,"span")(11,"a",5),t.EFF(12),t.k0s()(),t.EFF(13),t.k0s(),t.j41(14,"div",6)(15,"button",7),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.handleModalClose())}),t.EFF(16),t.k0s()()()()}if(2&I){const g=t.XpG();t.R7$(),t.JRh(g.feedbackFormContent.feedbackButtonText),t.R7$(),t.Y8G("hasBackdrop",!0)("backdropDismisses",!0)("showActionSection",!1)("showTopCloseButton",!0),t.BMQ("aria-label","Rating and feedback dialog"),t.R7$(),t.vxM(g.formSent?-1:3),t.R7$(),t.Y8G("hidden",!g.formSent),t.R7$(),t.Y8G("src","assets/images/base/check.svg",t.B4B),t.R7$(2),t.JRh(g.feedbackFormContent.formSentTitle),t.R7$(2),t.SpI("",g.feedbackFormContent.formSentSubtitleStart," "),t.R7$(2),t.Y8G("href",g.contactPage,t.B4B),t.R7$(),t.JRh(g.feedbackFormContent.formSentSubtitleLinkText),t.R7$(),t.SpI(" ",g.feedbackFormContent.formSentSubtitleEnd,""),t.R7$(2),t.AVh("feedback-submit-button__royal","royal"===g.brand)("feedback-submit-button__celebrity","celebrity"===g.brand),t.R7$(),t.SpI(" ",g.feedbackFormContent.formSentButton,"")}}let et=(()=>{class I{constructor(){this.modalService=(0,t.WQX)(f.B),this.userAnalyticsService=(0,t.WQX)(x.z),this.emailService=(0,t.WQX)(V),this.runtime=(0,t.WQX)(L.s),this.activatedRoute=(0,t.WQX)(u.nX),this.store$=(0,t.WQX)(D.il),this.contentSquareService=(0,t.WQX)(W),this.splunkService=(0,t.WQX)(K.P),this.stars=[1,2,3,4,5],this.selectedValue=null,this.brand=s.qt,this.submitDisabled=!0,this.feedbackFlag=!1,this.feedbackFormContent=null,this.formSent=!1}ngOnInit(){this.feedbackForm=new M.gE({feedbackMessage:new M.MJ("")}),this.feedbackFlag=this.runtime?.webConfig?.ga?.feedback??!0,this.feedbackFormContent={title:"How was your experience?",ratingTitle:"Your feedback matters!",feedbackBoxTitle:"Anything else we should know?",feedbackBoxPlaceholder:"Type your message here",feedbackBoxLabel:"Feedback message textarea",submitButtonText:"Submit",feedbackButtonText:"Feedback",disclaimer:"While your feedback helps us improve, we cannot respond to every submission.",formSentTitle:"Thank y
776ou for sharing your experience!",formSentSubtitleStart:"While your feedback helps us improve, we cannot respond to every submission. Please visit our",formSentSubtitleEnd:" for personalized support.",formSentSubtitleLinkText:"Contact page",formSentButton:"Close"},this.contactPage="royal"===this.brand.toLowerCase()?"https://www.royalcaribbean.com/resources/contact-us":"https://www.celebritycruises.com/company/customer-support/contact-us"}openFeedBackModal(){this.resetFeedbackForm(),this.modalService.open("feedback-bot__modal")}handleModalClose(){this.modalService.dismiss("feedback-bot__modal")}countStar(g){this.selectedValue=g,this.selectedValue&&(this.submitDisabled=!1)}onStarKeyDown(g,N){("Enter"===g.key||" "===g.key)&&(g.preventDefault(),this.countStar(N))}submitFeedback(){var g=this;return(0,o.A)(function*(){try{const N=yield g.buildEmailContent();g.formSent=!0,g.sendEmail(N)}catch(N){const B=g.splunkService.initializeManyContext(["error","message"],[N,"feedback-bot-build-email-content-error"]);g.splunkService.errorByLookUp("CP-0010-JS_ERROR",{context:B})}})()}getBrowserInfo(){return{userAgent:navigator.userAgent,language:navigator.language,online:navigator.onLine}}getVdsId(){const g=this.activatedRoute.snapshot.queryParamMap,N=this.activatedRoute.snapshot.queryParams,B=g?.get?.("shipCode")??N?.shipCode??null,st=g?.get?.("sailDate")??N?.sailDate??null;if(B&&st)return`${B}${st}`;let ct="[]";return this.store$.pipe((0,E.s)(1)).subscribe(ht=>{Array.isArray(ht)&&(ct=JSON.stringify(ht.filter(At=>"object"==typeof At&&null!==At).map(At=>`${At.shipCode??""}${At.sailDate??""}`).filter(At=>At.length>0)))}),ct}buildEmailContent(){var g=this;return(0,o.A)(function*(){const N=g.userAnalyticsService.userData,B=g.getBrowserInfo(),st=window.QuantumMetricAPI?.getReplay?.()||"",ct=yield g.contentSquareService.getReplayLink();return{rating:g.selectedValue,comment:g.feedbackForm.value.feedbackMessage,url:window.location.href,userDetails:{vdsID:N?.VDSID,consumerID:N?.consumerID,voyageID:g.getVdsId(),country:N?.countryOfResidence},technicalDetails:{userAgent:B.userAgent,language:B.language,online:B.online,replayLink:st,replayLinkCommerce:ct}}})()}sendEmail(g){this.emailService.sendEmail(g).pipe((0,E.s)(1)).subscribe()}resetFeedbackForm(){this.selectedValue=null,this.submitDisabled=!0,this.feedbackForm.reset({feedbackMessage:""}),this.formSent=!1}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["feedback-bot"]],standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[1,"feedback-bot",3,"click"],["id","feedback-bot__modal",3,"hasBackdrop","backdropDismisses","showActionSection","showTopCloseButton"],["modal-content","",1,"feedback-bot-modal__content"],["modal-content","",1,"feedback-bot-modal__content-form-sent",3,"hidden"],["alt","Success icon",3,"src"],["target","_blank",3,"href"],[1,"feedback-submit-button"],["type","button",3,"click"],[1,"list-inline","rating-list"],[3,"ngSubmit","formGroup"],["for","feedbackMessage"],["id","feedbackMessage","name","feedbackMessage","formControlName","feedbackMessage",3,"placeholder"],[1,"disclaimer"],["type","submit",3,"disabled"],["tabindex","0","role","button",3,"click","keydown"],["alt","selected rating star",3,"hidden","src"],["alt","unselected rating star",3,"hidden","src"]],template:function(N,B){1&N&&t.DNE(0,H,17,19),2&N&&t.vxM(B.feedbackFlag?0:-1)},dependencies:[k.A,M.YN,M.qT,M.me,M.BC,M.cb,M.X1,M.j4,M.JD],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.feedback-bot[_ngcontent-%COMP%]{position:fixed;cursor:pointer;line-height:1px;padding:0;right:0;border:2px solid #203559;width:30px;height:85px;transform:translateY(-50%);writing-mode:sideways-lr;top:80%;z-index:1000;color:#0c214d;background-color:#fff;border-radius:6px 0 0 6px;border-right:none;font-size:14px;font-weight:600}.feedback-bot-modal__content[_ngcontent-%COMP%]{max-width:100%;width:588px;min-height:436px}.feedback-bot-modal__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#131516;font-size:24px;margin-bottom:10px}@media screen and (max-width: 480px){.feedback-bot-modal__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:19px}}.feedback-bot-modal__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#131516;font-size:20px}@media screen and (max-width: 480px){.feedback-bot-modal__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:20px}}
776.feedback-bot-modal__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#131516;margin-bottom:0;margin-top:15px;font-size:20px;font-weight:700}@media screen and (max-width: 480px){.feedback-bot-modal__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:20px}}.feedback-bot-modal__content[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-inline-start:10px;display:inline-block;margin-bottom:0}.feedback-bot-modal__content[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:first-child{padding-left:0}.feedback-bot-modal__content[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:transparent}.feedback-bot-modal__content[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:130px;width:97%;resize:none;border-radius:5px;padding:15px 0 0 15px;font-size:14px;font-weight:400;color:#555f61;font-family:Proxima Nova,sans-serif}@media screen and (max-width: 480px){.feedback-bot-modal__content[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:93%}}.feedback-bot-modal__content[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{color:#131516}.feedback-bot-modal__content[_ngcontent-%COMP%] .disclaimer[_ngcontent-%COMP%]{color:#131516;font-weight:400;line-height:16px;letter-spacing:.15px;font-size:12px;margin:8px 0}.feedback-bot-modal__content[_ngcontent-%COMP%] .feedback-submit-button[_ngcontent-%COMP%]{text-align:center}.feedback-bot-modal__content[_ngcontent-%COMP%] .feedback-submit-button__royal[_ngcontent-%COMP%], .feedback-bot-modal__content[_ngcontent-%COMP%] .feedback-submit-button__celebrity[_ngcontent-%COMP%]{padding:10px 20px;border:none;cursor:pointer;height:48px;border-radius:4px;font-size:20px;font-weight:700;width:190px;margin:20px}.feedback-bot-modal__content[_ngcontent-%COMP%] .feedback-submit-button__royal[_ngcontent-%COMP%]:disabled, .feedback-bot-modal__content[_ngcontent-%COMP%] .feedback-submit-button__celebrity[_ngcontent-%COMP%]:disabled{color:#fff;background:#d2d5d9;cursor:not-allowed}.feedback-bot-modal__content[_ngcontent-%COMP%] .feedback-submit-button__royal[_ngcontent-%COMP%], .feedback-bot-modal__content[_ngcontent-%COMP%] .feedback-submit-button__celebrity[_ngcontent-%COMP%]{color:#fff;background:#004275}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%]{max-width:100%;width:530px;min-height:400px;text-align:center}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{padding:10px 24px 0;width:66px;height:66px}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#131516;font-size:32px;margin-bottom:10px;margin-top:24px;letter-spacing:-1px;line-height:32px;font-weight:800}@media screen and (max-width: 480px){.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:24px;line-height:28px}}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#555f61;font-size:20px;font-weight:400;padding:10px 13px 20px}@media screen and (max-width: 480px){.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#555f61}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#004275}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] .feedback-submit-button[_ngcontent-%COMP%]{text-align:center}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] .feedback-submit-button__royal[_ngcontent-%COMP%], .feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] .feedback-submit-button__celebrity[_ngcontent-%COMP%]{padding:10px 20px;border:none;cursor:pointer;height:48px;border-radius:4px;font-size:20px;font-weight:700;width:190px;margin:20px}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] .feedback-submit-button__royal[_ngcontent-%COMP%]:disabled, .feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] .feedback-submit-button__celebrity[_ngcontent-%COMP%]:disabled{color:#fff;background:#d2d5d9;cursor:not-allowed}.feedback-bot-modal__content-form-sent[_ngcontent-%COMP%] .feedback-submit-button__royal[_ngcontent-%COMP%], .feedback-bot-modal__content-form-sent[_ng
776content-%COMP%] .feedback-submit-button__celebrity[_ngcontent-%COMP%]{color:#fff;background:#004275} [id=feedback-bot__modal] .modal{max-height:100%;max-width:580px} [id=feedback-bot__modal] .modal__content{margin:24px 24px 0}.rating-list[_ngcontent-%COMP%]{display:inline-block;list-style:none}"]})}}return I})();var q=n(86759),j=n(89469),$=n(60177),z=n(68018),ot=n(54441);const nt=(0,D.VP)("[MENU] Open",(0,D.xk)()),it=(0,D.VP)("[MENU] Toggle",(0,D.xk)()),Ot=(0,D.VP)("[MENU] Close");(0,D.VP)("[NAVIGATION] Update Referring Link",(0,D.xk)()),(0,D.VP)("[NAVIGATION] Clean Referring Link");let Et=(()=>{class I{constructor(g){this.store=g}openMenu(g){this.store.dispatch(nt({payload:g}))}toggleMenu(g){this.store.dispatch(it({payload:g}))}closeMenu(){this.store.dispatch(Ot())}static{this.\u0275fac=function(N){return new(N||I)(t.KVO(D.il))}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})();var Tt=function(I){return I[I.user=0]="user",I[I.calendar=1]="calendar",I[I.cruise=2]="cruise",I}(Tt||{}),kt=n(21626),xt=n(84412);let St=(()=>{class I{constructor(){this.http=(0,t.WQX)(kt.Qq),this.utilitiesService=(0,t.WQX)(m.QY),this.menuOpenSource=new xt.t(!1),this.currentMenuOpen=this.menuOpenSource.asObservable()}getUnseenNotificationCount(g){const N=this.utilitiesService.basePathForCommerce();return this.http.get(`${s.f0}${N}/v1/notifications/messaging-center/messages/subscriber/${g}/stats`,{headers:{AppKey:s.wE}}).pipe((0,w.W)(()=>(0,O.of)({payload:{unSeenCount:0}})))}updateMenuOpen(g){this.menuOpenSource.next(g)}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})();var jt=n(21413),Wt=n(70152),at=n(56977);function Xt(I,dt){if(1&I&&(t.j41(0,"div",4),t.nrm(1,"img",5),t.k0s()),2&I){const g=t.XpG(2);t.R7$(),t.Y8G("src",g.getUnreadMessageBadgeIconSrc(),t.B4B)}}function Z(I,dt){if(1&I){const g=t.RV6();t.j41(0,"div",0)(1,"button",2),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.toggleMenu())}),t.nrm(2,"img",3),t.DNE(3,Xt,2,1,"div",4),t.k0s()()}if(2&I){const g=t.XpG();t.R7$(2),t.Y8G("src",g.getMessageCenterIcon(),t.B4B),t.R7$(),t.vxM(g.areNewMessages?3:-1)}}function tt(I,dt){if(1&I&&(t.j41(0,"span",8),t.EFF(1),t.k0s()),2&I){const g=t.XpG(2);t.R7$(),t.JRh(g.unreadMessagesCount)}}function mt(I,dt){if(1&I){const g=t.RV6();t.j41(0,"a",6),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.toggleMenu())}),t.j41(1,"span",7),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,tt,2,1,"span",8),t.k0s()}if(2&I){const g=t.XpG();t.BMQ("tabindex",g.tabIndex())("data-sel","option-profile-messaging-center"),t.R7$(2),t.JRh(t.bMT(3,4,"NAV.MY_MESSAGES")),t.R7$(2),t.vxM(g.areNewMessages?4:-1)}}let ut=(()=>{class I{constructor(){this.tabIndex=(0,t.hFB)(0),this.displayMessageCenterIcon=(0,t.hFB)(!1),this.isProfileNav=(0,t.hFB)(!1),this.isMobile=(0,t.hFB)(!1),this.displayBadge=!1,this.unreadMessagesCount="0",this.closeProfile=new t.bkB,this.displayBadgeOnProfile=new t.bkB,this.messageCenterStatus=new t.bkB,this.menuOpen=!1,this.areNewMessages=!1,this.destroy$=new jt.B,this.resize$=new jt.B,this.TRIANGLE_ARROW_OFFSET=8,this.sessionService=(0,t.WQX)(m.x3),this.messageCenterService=(0,t.WQX)(St),this.utilityService=(0,t.WQX)(m.QY),this.cdr=(0,t.WQX)(t.gRc),this.bodyOverflowBeforeMenuOpen=null,this.handleBadgeUpdate=g=>{const N=g,{hasNewMessages:B,displayCount:st}=N.detail;this.areNewMessages=B,this.unreadMessagesCount=st,this.cdr.markForCheck(),this.displayBadgeOnProfile.emit(this.areNewMessages)},this.resize$.pipe((0,Wt.B)(150),(0,at.Q)(this.destroy$)).subscribe(()=>{this.handleScrollBehavior(),this.positionMessageCenter(),this.cdr.markForCheck()})}ngOnDestroy(){this.restoreBodyOverflow(),this.destroy$.next(),this.destroy$.complete(),window.removeEventListener("badgeStatusUpdate",this.handleBadgeUpdate)}ngOnInit(){this.getUnseenNotificationCount(),window.addEventListener("badgeStatusUpdate",this.handleBadgeUpdate)}toggleMenu(){this.menuOpen=!this.menuOpen,this.handleScrollBehavior(),this.menuOpen&&this.positionMessageCenter(),this.messageCenterService.updateMenuOpen(this.menuOpen),this.messageCenterStatus.emit({newMessages:this.areNewMessages})}positionMessageCenter(){const g=document.getElementById("message-center-holder"),N=document.getElementById("nav-main"),B=document.getElementById("message-center-container-box");if(!N||!g||!B)return;const st=this.isMobile()?0:20,ct=this.isMobile();ct&&this.scrollToAppBanner();const At=N.getBoundingClientRect().bottom;B.style.top=`${At}px`,g.style.height=window.innerHeight-At-st+"px",ct||this.positionDesktopDropdown(B)}scrollToAppBanner(){const g=document.getElementById("appRoutingBanner");g&&window.scrollTo({top:g.offsetTop+g.offsetHeight})}positionDesktopDropdown(g){const N=document.getElementById("message-center-entry"),B=document.getElementById("message-center-container-box__triangle"),st=document.getElementById("nav-inner");if(!N||!B||!st)return;const ct=N.getBoundingClientRect(),ht=st.getBoundingClientRect(),At=window.innerWidth-ht.right-this.getScrollbarWidth();g.style.right=`${At}px`;const Yt=window.getComputedStyle(N),mn=parseFloat(Yt.marginLeft)||0,Te=parseFloat(Yt.marginRight)||0,fo=ct.width+mn+Te,_o=window.innerWidth-(ct.right+Te)-this.getScrollbarWidth()-At+fo/2-this.TRIANGLE_ARROW_OFFSET;B.style.right=`${_o}px`}getScrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}handleScrollBehavior(){if(this.menuOpen)return null===this.bodyOverflowBeforeMenuOpen&&
776(this.bodyOverflowBeforeMenuOpen=document.body.style.overflow),void(document.body.style.overflow="hidden");this.restoreBodyOverflow()}restoreBodyOverflow(){null!==this.bodyOverflowBeforeMenuOpen&&(document.body.style.overflow=this.bodyOverflowBeforeMenuOpen,this.bodyOverflowBeforeMenuOpen=null)}onClickOutside(g){const N=g.target;!N.closest(".message-center-container__icon")&&!N.closest(".message-center-container__mobile")&&!N.closest(".message-center-container-box")&&!N.closest(".message-center-container__icon-new")&&!N.closest(".message-center-container-box__dropdown")&&(this.menuOpen=!1,this.messageCenterService.updateMenuOpen(this.menuOpen),this.handleScrollBehavior())}getUnseenNotificationCount(){const g=this.sessionService.getVdsIdFromAccessToken();this.messageCenterService.getUnseenNotificationCount(g).subscribe(N=>{const B=N.payload.unSeenCount;this.areNewMessages=B>0,this.displayBadgeOnProfile.emit(this.areNewMessages),this.unreadMessagesCount=B>=100?"99+":B.toString(),this.cdr.markForCheck()})}onCloseProfile(g){this.closeProfile.emit(g)}getMessageCenterIcon(){return"assets/images/base/message-center.svg"}getUnreadMessageBadgeIconSrc(){return this.utilityService.getUnreadMessageBadgeIconSrc()}onResize(){this.resize$.next()}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["main-nav-message-center"]],hostBindings:function(N,B){1&N&&t.bIt("click",function(ct){return B.onClickOutside(ct)},!1,t.EBC)("resize",function(){return B.onResize()},!1,t.tSv)},inputs:{tabIndex:[1,"tabIndex"],displayMessageCenterIcon:[1,"displayMessageCenterIcon"],isProfileNav:[1,"isProfileNav"],isMobile:[1,"isMobile"]},outputs:{closeProfile:"closeProfile",displayBadgeOnProfile:"displayBadgeOnProfile",messageCenterStatus:"messageCenterStatus"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["id","message-center-entry",1,"message-center-container"],[1,"nav-user-item","highlight","nav-message-outer","message-center-container__mobile"],["type","button","aria-label","Message Center",1,"message-center-container__icon",3,"click"],["alt","Message Center Icon","loading","lazy",1,"message-center-icon",3,"src"],[1,"message-center-container__icon-new"],["alt","Unread Badge","loading","lazy",3,"src"],[1,"nav-user-item","highlight","nav-message-outer","message-center-container__mobile",3,"click"],["tabindex","-1",1,"highlight__content"],["tabindex","-1",1,"nav-unread-count"]],template:function(N,B){1&N&&t.DNE(0,Z,4,2,"div",0)(1,mt,5,6,"a",1),2&N&&(t.vxM(B.displayMessageCenterIcon()?0:-1),t.R7$(),t.vxM(B.isProfileNav()?1:-1))},dependencies:[$.MD,z.h,z.D9,u.iI],styles:[".margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.message-center-container[_ngcontent-%COMP%]{display:inline-block;height:32px;margin-right:16px}.message-center-container__icon[_ngcontent-%COMP%]{width:100%;height:100%;border:0;padding:0;background:transparent;cursor:pointer;background-size:cover;display:flex;align-items:center;position:relative}.message-center-container__icon-new[_ngcontent-%COMP%]{position:absolute;top:0;right:-3px}.nav-user[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:0 2px 30px #00000026;height:0;left:-125px;min-width:143px;opacity:0;overflow:hidden;position:absolute;top:44px}.nav-user-item[_ngcontent-%COMP%]{box-sizing:border-box;color:#021d49;cursor:pointer;display:inline-block;font-size:16px;font-weight:600;padding:16px 0;text-align:left;text-decoration:none;white-space:nowrap;width:fit-content;font-style:normal;line-height:20px;letter-spacing:.15px}.nav-user-item--outer[_ngcontent-%COMP%]{border-bottom:1px solid #f3f3f3;padding-right:28px}.nav-user-item[_ngcontent-%COMP%]:hover{color:#004275}.nav-user-item[_ngcontent-%COMP%]:focus{outline:5px auto #e3bc5c}.nav-unread-count[_ngcontent-%COMP%]{color:#fff;text-align:center;font-family:Proxima Nova,sans-serif;font-size:10px;font-style:normal;font-weight:700;line-height:14px;letter-spacing:.15px;border-radius:52px;background:#e40f2f;padding:2px 4px}.nav-message-outer[_ngcontent-%COMP%]{align-items:center;gap:4px;display:flex}"],changeDetection:0})}}return I})();
776const ft=["userMenu"],Pt=["userMenuButton"],Ct=["navTop"],Nt=I=>({"nav-initials--cruising-power":I}),Jt=I=>({"profile-img--with-avatar":I}),zt=(I,dt,g,N)=>({"nav-user--open":I,"nav-user--cruising-power":dt,"nav-user--lg":g,"nav-user--sm":N}),ee=()=>({tab:"upcoming"}),lt=()=>({tab:"past"}),pt=I=>({"background-image":I});function _t(I,dt){if(1&I&&(t.j41(0,"div",9),t.nrm(1,"img",23),t.k0s()),2&I){const g=t.XpG();t.R7$(),t.Y8G("src",g.getUnreadMessageBadgeIconSrc(),t.B4B)}}function yt(I,dt){1&I&&t.eu8(0)}function _(I,dt){if(1&I&&(t.j41(0,"div",24),t.DNE(1,yt,1,0,"ng-container",25),t.k0s()),2&I){t.XpG();const g=t.sdS(29);t.R7$(),t.Y8G("ngTemplateOutlet",g)}}function bt(I,dt){if(1&I){const g=t.RV6();t.j41(0,"li",20)(1,"a",26),t.bIt("keydown.enter",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:profile"))})("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:profile"))}),t.j41(2,"span",22),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()}if(2&I){const g=t.XpG();t.R7$(),t.Y8G("routerLink","/settings/sign-in-information")("queryParamsHandling","merge"),t.BMQ("tabindex",g.tabIndex())("data-sel","option-profile"),t.R7$(2),t.SpI(" ",t.bMT(4,5,"NAV.PROFILE")," ")}}function Mt(I,dt){if(1&I){const g=t.RV6();t.j41(0,"li",20)(1,"main-nav-message-center",29),t.bIt("displayBadgeOnProfile",function(B){t.eBV(g);const st=t.XpG(2);return t.Njj(st.displayBadgeOnProfile(B))})("keydown.enter",function(){t.eBV(g);const B=t.XpG(2);return t.Njj(B.closeProfile("navprofile:message-center"))})("click",function(){t.eBV(g);const B=t.XpG(2);return t.Njj(B.closeProfile("navprofile:message-center"))}),t.k0s()()}2&I&&(t.R7$(),t.Y8G("isProfileNav",!0)("isMobile",!0))}function vt(I,dt){if(1&I){const g=t.RV6();t.j41(0,"li",20)(1,"a",21),t.bIt("click",function(){t.eBV(g);const B=t.XpG(2);return t.Njj(B.closeProfile("navprofile:royalgifts"))}),t.j41(2,"span",22),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()}if(2&I){const g=t.XpG(2);t.R7$(),t.BMQ("href",g.giftsUrl,t.B4B)("tabindex",g.tabIndex())("data-sel","option-royal-gifts"),t.R7$(2),t.SpI(" ",t.bMT(4,4,"NAV.GIFTS")," ")}}function $t(I,dt){if(1&I){const g=t.RV6();t.qex(0),t.j41(1,"li",20)(2,"a",27),t.bIt("keydown.enter",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:upcomingcruises"))})("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:upcomingcruises"))}),t.j41(3,"span",22),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.j41(6,"li",20)(7,"a",27),t.bIt("keydown.enter",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:pastcruises"))})("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:pastcruises"))}),t.j41(8,"span",22),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"li",20)(12,"a",27),t.bIt("keydown.enter",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:courtesyholds"))})("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:courtesyholds"))}),t.j41(13,"span",22),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.DNE(16,Mt,2,2,"li",20)(17,vt,5,6,"li",18),t.j41(18,"li",20)(19,"a",21),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:casino-loyalty-programs"))}),t.j41(20,"span",22),t.EFF(21),t.nI1(22,"translate"),t.k0s()()(),t.j41(23,"li",20)(24,"a",28),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:loyalty-programs"))}),t.j41(25,"span",22),t.EFF(26),t.nI1(27,"translate"),t.k0s()()(),t.j41(28,"li",20)(29,"a",21),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.closeProfile("navprofile:faq"))}),t.j41(30,"span",22),t.EFF(31),t.nI1(32,"translate"),t.k0s()()(),t.bVm()}if(2&I){const g=t.XpG();t.R7$(2),t.Y8G("routerLink","/my-trips")("queryParams",t.lJ4(43,ee)),t.BMQ("data-sel","nav-user-item-upcoming-cruises")("tabindex",g.tabIndex())("data-sel","option-upcoming-cruises"),t.R7$(2),t.SpI(" ",t.bMT(5,31,g.upcomingCruisesKey)," "),t.R7$(3),t.Y8G("routerLink","/my-trips")("queryParams",t.lJ4(44,lt)),t.BMQ("tabindex",g.tabIndex())("data-sel","option-past-cruises"),t.R7$(2),t.SpI(" ",t.bMT(10,33,g.pastCruisesKey)," "),t.R7$(3),t.Y8G("routerLink","/my-trips")("queryParams",t.lJ4(45,ee)),t.BMQ("tabindex",g.tabIndex())("data-sel","option-courtesy-holds"),t.R7$(2),t.SpI(" ",t.bMT(15,35,"NAV.ON_HOLD_CRUISES")," "),t.R7$(2),t.vxM(g.shouldDisplayMessageCenter()&&g.isMobile()?16:-1),t.R7$(),t.Y8G("ngIf",g.isRoyal),t.R7$(2),t.BMQ("tabindex",g.tabIndex())("href",g.casinoloyaltyUrl(),t.B4B)("data-sel","option-profile-casino-loyalty-experience"),t.R7$(2),t.JRh(t.bMT(22,37,g.casinoLoyaltyLabel)),t.R7$(3),t.Y8G("routerLink","/loyalty-programs")("queryParamsHandling","merge"),t.BMQ("tabindex",g.tabIndex())("data-sel","option-profile-loyalty-experience"),t.R7$(2),t.JRh(t.bMT(27,39,"NAV.LOYALTY_PROGRAMS")),t.R7$(3),t.BMQ("href",g.urlFaq,t.B4B)("tabindex",g.tabIndex())("data-sel","option-profile-faq"),t.R7$(2),t.JRh(t.bMT(32,41,"NAV.FAQ"))}}function Vt(I,dt){1&I&&t.nrm(0,"img",30)}
776function Qt(I,dt){if(1&I&&t.nrm(0,"div",31),2&I){const g=t.XpG();t.Y8G("ngStyle",t.eq3(1,pt,"url("+(g.userAvatarUrl()||g.avatarUrl())+")"))}}let Ie=(()=>{class I{constructor(){this.accountFacade=(0,t.WQX)(m.PP),this.translate=(0,t.WQX)(z.c$),this.cdr=(0,t.WQX)(t.gRc),this.menuService=(0,t.WQX)(Et),this.urlsService=(0,t.WQX)(m.aT),this.sessionService=(0,t.WQX)(m.x3),this.localStorage=(0,t.WQX)(m.sj),this.sessionStorage=(0,t.WQX)(m.R7),this.authService=(0,t.WQX)(ot.u),this.utilityService=(0,t.WQX)(m.QY),this.analyticsInteraction=(0,t.CGW)(),this.initials=(0,t.hFB)(),this.avatarUrl=(0,t.hFB)(),this.tabIndex=(0,t.hFB)(0),this.shouldDisplayMessageCenter=(0,t.hFB)(!1),this.isMobile=(0,t.hFB)(!1),this.isRoyal=!1,this.isCelebrity=!1,this.brand=s.qt,this.menuIsOpened=!1,this.isCourtesyHoldTab=!1,this.userAccount=this.accountFacade.getAccountData,this.displayBadge=!1,this.userInitials=(0,t.EWP)(()=>{const g=this.userAccount()?.personalInformation?.firstName||"";return g?g.charAt(0).toUpperCase()+g.slice(1):""}),this.userAvatarUrl=(0,t.EWP)(()=>this.userAccount()?.personalInformation?.avatar||""),this.casinoloyaltyUrl=(0,t.EWP)(()=>"royal"===s.qt?"/club-royale":"/blue-chip-club")}ngOnInit(){const g=s.qt.toUpperCase();this.upcomingCruisesKey=`NAV.UPCOMING_CRUISES.${g}`,this.pastCruisesKey=`NAV.PAST_CRUISES.${g}`,this.casinoLoyaltyLabel=`NAV.CASINO_LOYALTY.${g}`,this.giftsUrl=this.urlsService.get("GIFTS"),this.urlFaq=this.urlsService.get("FAQS"),this.isRoyal="ROYAL"===g,this.isCelebrity="CELEBRITY"===g,this.accountMenu=this.translate.instant("NAV.ACCOUNT_MENU")}profileLogout(){this.analyticsInteraction.emit("navprofile:signout"),this.closeProfile(),this.authService.logout()}toggle(){this.menuIsOpened=!this.menuIsOpened,this.menuService.toggleMenu(Tt.user),this.isCruisingPowerFlow||this.analyticsInteraction.emit("navprofile"),!this.menuIsOpened&&this.userMenuButton&&this.userMenuButton.nativeElement.focus()}toggleMenu(g){g.target.className.toLowerCase().includes("nav-user-item")||this.toggle()}closeProfile(g){g&&this.analyticsInteraction.emit(g),this.menuIsOpened=!1,this.menuService.closeMenu(),this.cdr.detectChanges()}togglePress(g){("Enter"===g.key||" "===g.key)&&(g.preventDefault(),this.toggle())}getUnreadMessageBadgeIconSrc(){return this.utilityService.getUnreadMessageBadgeIconSrc()}displayBadgeOnProfile(g){this.displayBadge=g}onClickOutside(g){this.menuIsOpened&&this.navTop&&(this.navTop.nativeElement.contains(g.target)||this.closeProfile())}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["shared-internal-header-profile"]],viewQuery:function(N,B){if(1&N&&(t.GBs(ft,7),t.GBs(Pt,5),t.GBs(Ct,5)),2&N){let st;t.mGM(st=t.lsd())&&(B.userMenu=st.first),t.mGM(st=t.lsd())&&(B.userMenuButton=st.first),t.mGM(st=t.lsd())&&(B.navTop=st.first)}},hostBindings:function(N,B){1&N&&t.bIt("click",function(ct){return B.onClickOutside(ct)},!1,t.EBC)},inputs:{initials:[1,"initials"],avatarUrl:[1,"avatarUrl"],tabIndex:[1,"tabIndex"],shouldDisplayMessageCenter:[1,"shouldDisplayMessageCenter"],isMobile:[1,"isMobile"]},outputs:{analyticsInteraction:"analyticsInteraction"},standalone:!0,features:[t.aNF],decls:30,vars:29,consts:[["navTop",""],["userMenuButton",""],["userMenu",""],["profileImg",""],["avatarSection",""],["tabindex","0",1,"nav-top","highlight",3,"keydown.enter"],["id","nav-profile-button","role","button","aria-haspopup","true","aria-label","accountMenu","aria-controls","nav-profile-modal","tabindex","-1",1,"nav-initials","highlight__content",3,"click","keydown","ngClass"],[1,"nav-profile-image"],[1,"profile-img",3,"ngClass"],[1,"nav-unread-message"],["data-cs-mask","",1,"nav-initials-text","initials-menu"],[1,"nav-expand"],["alt","",3,"src"],["class","nav-profile-icon menu-button-profile-icon",4,"ngIf"],["id","nav-profile-modal","aria-label","nav-profile-modal","role","navigation",1,"nav-user",3,"keydown.esc","ngClass"],[1,"nav-caret"],["src","assets/images/base/account-drawer-triangle.svg","alt",""],["role","menu",1,"nav-user-2nd"],["class","nav-user-item--outer","role","menuitem",4,"ngIf"],[4,"ngIf"],["role","menuitem",1,"nav-user-item--outer"],[1,"nav-user-item","highlight",3,"click"],["tabindex","-1",1,"highlight__content"],["alt","","aria-hidden","true",3,"src"],[1,"nav-profile-icon","menu-button-profile-icon"],[4,"ngTemplateOutlet"],["id","nav-profile-user-profile-link",1,"nav-user-item","highlight",3,"keydown.enter","click","routerLink","queryParamsHandling"],[1,"nav-user-item","highlight",3,"keydown.enter","click","routerLink","queryParams"],[1,"nav-user-item","highlight",3,"click","routerLink","queryParamsHandling"],[3,"displayBadgeOnProfile","keydown.enter","click","isProfileNav","isMobile"],["src","/account/assets/images/base/profile-image.svg","alt","profileImage"],[1,"avatar",3,"ngStyle"]],template:function(N,B){if(1&N
776){const st=t.RV6();t.j41(0,"div",5,0),t.bIt("keydown.enter",function(ht){return t.eBV(st),t.Njj(B.toggleMenu(ht))}),t.j41(2,"div",6,1),t.bIt("click",function(){return t.eBV(st),t.Njj(B.toggle())})("keydown",function(ht){return t.eBV(st),t.Njj(B.togglePress(ht))}),t.qex(4),t.j41(5,"div",7),t.nrm(6,"div",8),t.DNE(7,_t,2,1,"div",9),t.k0s(),t.j41(8,"div",10),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"div",11),t.nrm(12,"img",12),t.k0s(),t.DNE(13,_,2,1,"div",13),t.bVm(),t.k0s(),t.j41(14,"div",14,2),t.bIt("keydown.esc",function(){return t.eBV(st),t.Njj(B.toggle())}),t.j41(16,"div",15),t.nrm(17,"img",16),t.k0s(),t.j41(18,"ul",17),t.DNE(19,bt,5,7,"li",18)(20,$t,33,46,"ng-container",19),t.j41(21,"li",20)(22,"a",21),t.bIt("click",function(){return t.eBV(st),t.Njj(B.profileLogout())}),t.j41(23,"span",22),t.EFF(24),t.nI1(25,"translate"),t.k0s()()()()()(),t.DNE(26,Vt,1,0,"ng-template",null,3,t.C5r)(28,Qt,1,3,"ng-template",null,4,t.C5r)}2&N&&(t.R7$(2),t.Y8G("ngClass",t.eq3(20,Nt,B.isCruisingPowerFlow)),t.BMQ("aria-expanded",B.menuIsOpened),t.R7$(4),t.xc7("background-image","url("+(B.userAvatarUrl()||"assets/images/base/profile.svg")+")"),t.Y8G("ngClass",t.eq3(22,Jt,B.userAvatarUrl())),t.R7$(),t.vxM(B.displayBadge&&B.isMobile()?7:-1),t.R7$(2),t.Lme("",t.bMT(10,16,"COMMON.GREETING")," ",B.userInitials()||B.initials(),""),t.R7$(3),t.Y8G("src",B.menuIsOpened?"assets/images/base/collapse.svg":"assets/images/base/expand.svg",t.B4B),t.R7$(),t.Y8G("ngIf",!B.userInitials()&&!B.initials()),t.R7$(),t.Y8G("ngClass",t.ziG(24,zt,B.menuIsOpened,B.isCruisingPowerFlow,B.largeNavLayout,B.smallNavLayout)),t.R7$(5),t.Y8G("ngIf",!B.isCruisingPowerFlow),t.R7$(),t.Y8G("ngIf",!B.isCruisingPowerFlow),t.R7$(2),t.BMQ("tabindex",B.tabIndex())("data-sel","option-logout"),t.R7$(2),t.SpI(" ",t.bMT(25,18,"NAV.SIGN_OUT")," "))},dependencies:[$.MD,$.YU,$.bT,$.T3,$.B3,z.h,z.D9,u.iI,u.Wk,ut],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.highlight[_ngcontent-%COMP%]:focus > .highlight__content[_ngcontent-%COMP%]{box-shadow:0 0 0 2.5px #e3bc5c;border-radius:50%}.highlight[_ngcontent-%COMP%]:focus, .highlight__content[_ngcontent-%COMP%]:focus{outline:none}.nav-top[_ngcontent-%COMP%]{border:none;position:relative}.nav-caret[_ngcontent-%COMP%]{background:transparent;position:relative}.nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{bottom:0;position:absolute;left:105px}.nav-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.nav-user-info--label[_ngcontent-%COMP%]{color:#131516;font-size:12px;font-style:normal;font-weight:700;line-height:16px;letter-spacing:.15px}.nav-user-info--name[_ngcontent-%COMP%]{color:#000;font-size:16px;font-style:normal;font-weight:800;line-height:22px;letter-spacing:-.15px;max-width:144px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-user-info--change-details[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:5px;color:#021d49;font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.15px}.nav-initials[_ngcontent-%COMP%]{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;height:33px;justify-content:center;text-indent:-1px;background:#fff;color:#010c1d;font-size:12px;font-weight:400;letter-spacing:-.09px}.nav-initials[_ngcontent-%COMP%]:focus{outline:none}.nav-initials-text[_ngcontent-%COMP%]{align-self:center;margin-left:10px}.nav-initials--cruising-power[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px}.nav-expand[_ngcontent-%COMP%]{margin-top:5px;margin-left:10px}.nav-profile-image[_ngcontent-%COMP%]{width:29px;
776height:29px;position:relative}.nav-profile-image[_ngcontent-%COMP%] .profile-img[_ngcontent-%COMP%]{width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat;border-radius:21.667px}.nav-profile-image[_ngcontent-%COMP%] .profile-img--with-avatar[_ngcontent-%COMP%]{border:.5px solid #010C1D}.nav-unread-message[_ngcontent-%COMP%]{position:absolute;top:-2px;right:2px}.nav-profile-icon[_ngcontent-%COMP%]{width:33px;height:33px;border-radius:50%;overflow:hidden;position:relative}.nav-profile-icon[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}.nav-user[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:0 2px 30px #00000026;height:0;min-width:0;display:inline-block;width:auto;box-sizing:border-box;max-width:calc(100vw - 40px);right:0;left:auto;opacity:0;overflow:hidden;position:absolute;top:44px;transition:opacity .2s ease-in-out,height .2s ease-in-out}.nav-user--open[_ngcontent-%COMP%]{height:auto;opacity:1;overflow:visible;right:0;left:auto;width:max-content;max-width:calc(100vw - 40px);white-space:nowrap}.nav-user-2nd[_ngcontent-%COMP%]{background:#fff;border-radius:0;padding-left:24px;margin:0}.nav-user-2nd[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:focus > .highlight__content[_ngcontent-%COMP%]{box-shadow:0 0 0 2.5px #e3bc5c;border-radius:2px}.nav-user-2nd[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:focus, .nav-user-2nd[_ngcontent-%COMP%] .highlight__content[_ngcontent-%COMP%]:focus{outline:none}.nav-user-item[_ngcontent-%COMP%]{box-sizing:border-box;color:#021d49;cursor:pointer;display:inline-block;font-size:16px;font-weight:600;padding:16px 0;text-align:left;text-decoration:none;white-space:nowrap;width:fit-content;font-style:normal;line-height:20px;letter-spacing:.15px}.nav-user-item[_ngcontent-%COMP%]:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}.nav-user-item--outer[_ngcontent-%COMP%]{border-bottom:1px solid #f3f3f3;padding-right:28px}.nav-user-item--outer[_ngcontent-%COMP%]:last-child{border-bottom:none}.nav-user-item[_ngcontent-%COMP%]:hover{color:#004275}.nav-user-item[_ngcontent-%COMP%]:focus{outline:5px auto #e3bc5c}.nav-user--cruising-power[_ngcontent-%COMP%]{left:-136px;width:212px}.nav-user--cruising-power[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:145px}.nav-badge[_ngcontent-%COMP%]{right:0;width:8px;position:absolute;top:0;height:8px;background-color:#e40f2f;border-radius:50%;z-index:10}@media screen and (max-width: 1024px){.nav-user--cruising-power[_ngcontent-%COMP%]{width:200px}}@media screen and (max-width: 840px){.nav-user--cruising-power[_ngcontent-%COMP%]{width:192px}.nav-user--lg[_ngcontent-%COMP%]{left:-152px}.nav-user--lg[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:160px}.nav-user--sm[_ngcontent-%COMP%]{left:-100px}.nav-user--sm[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:104px}}@media screen and (max-width: 600px){.nav-profile-icon[_ngcontent-%COMP%]{width:26px;height:26px}.nav-initials[_ngcontent-%COMP%]{font-size:11px;height:26px;padding-left:0;padding-right:0;text-indent:0}.nav-user[_ngcontent-%COMP%]{top:35px}.nav-user--cruising-power[_ngcontent-%COMP%]{width:176px}.nav-user--cruising-power[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:140px}.nav-user--lg[_ngcontent-%COMP%]{left:-168px}.nav-user--lg[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:172px}.nav-user--sm[_ngcontent-%COMP%]{left:-100px}.nav-user--sm[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:104px}.nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:139px}}@media screen and (max-width: 360px){.nav-user[_ngcontent-%COMP%]{left:-159px}.nav-user--cruising-power[_ngcontent-%COMP%]{left:-135px}.nav-user--lg[_ngcontent-%COMP%]{left:-168px}.nav-user--lg[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:172px}.nav-user--sm[_ngcontent-%COMP%]{left:-100px}.nav-user--sm[_ngcontent-%COMP%] .nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:104px}.nav-caret[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:163px}}"],changeDetection:0})}}return I})();var Se=n(46765),Zt=n(31369),Re=n(69081),xe=n(15829),fe=n(58510),_e=n(21148),De=n(61829),Ce=n(89241);const Le=I=>[I];function Ne(I,dt){if(1&I){const g=t.RV6();t.j41(0,"rcg-message-hub",5),t.bIt("customErrorEvent",function(B){t.eBV(g);const st=t.XpG(2);
776return t.Njj(st.customErrorEvent(B))})("notificationClickEmitter",function(B){t.eBV(g);const st=t.XpG(2);return t.Njj(st.notificationClickEmitter(B))}),t.k0s()}if(2&I){const g=t.XpG(2);t.Y8G("brand",g.brand)("language",g.language)("apiConfig",g.apiConfig)("analyticsClientData",g.analyticsClientData)("version",g.MESSAGE_HUB_VERSION)}}function ke(I,dt){if(1&I&&t.Z7z(0,Ne,1,5,"rcg-message-hub",4,t.fX1),2&I){const g=t.XpG();t.Dyx(t.eq3(0,Le,g.messageHubKey))}}let Fe=(()=>{class I{constructor(){this.brand=s.qt,this.menuOpen=!1,this.PMC_CONSTANT="pmc",this.messageHubKey=0,this.messageCenterService=(0,t.WQX)(St),this.sessionService=(0,t.WQX)(m.x3),this.localization=(0,t.WQX)(m.Pi),this.bookingsRepositoryService=(0,t.WQX)(De.I),this.analyticsService=(0,t.WQX)(m.cu),this.localStorage=(0,t.WQX)(m.sj),this.utilityService=(0,t.WQX)(m.QY),this.router=(0,t.WQX)(u.Ix),this.splunkService=(0,t.WQX)(m.PB),this.destroy$=new jt.B,this.resize$=new jt.B,this.lastHeight=window.innerHeight,this.MESSAGE_HUB_VERSION="v2",this.analyticsClientData={},this.resize$.pipe((0,Wt.B)(150),(0,at.Q)(this.destroy$)).subscribe(()=>{const g=window.innerHeight;this.menuOpen&&g!==this.lastHeight&&(this.lastHeight=g,this.messageHubKey++)})}ngOnInit(){this.setupLanguage(),this.apiConfig=this.setMSCenterComponentPayload(),this.menuOpenSubscription=this.messageCenterService.currentMenuOpen.subscribe(g=>{g?this.getAnalyticsDetails(g):this.menuOpen=g})}getAnalyticsDetails(g){this.buildAnalyticsClientData(),this.menuOpen=g}buildAnalyticsClientData(){const g=this.analyticsService.getMessageCenterAnalyticsData(),N=this.bookingsRepositoryService.getPreferredBookingData()||{},{shipCode:B="",sailDate:st="",bookingId:ct="",passengerId:ht=""}=N,{path:At="",siteSection:Yt=""}=this.utilityService.getPathAndSectionFromUrl(this.router.url)||{};this.analyticsClientData={currentPage:At,siteSection:Yt,brand:g?.brand,country:g?.country,language:this.language,loginStatus:g?.loginStatus,appName:g?.appName,scVersion:g?.scVersion,vdsID:this.accountId,shipCode:B,departureDate:st,cruiseBookingID:ct,passengerId:ht}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.menuOpenSubscription&&this.menuOpenSubscription.unsubscribe()}setMSCenterComponentPayload(){return{accessToken:this.accessToken,accountId:this.accountId,language:this.language,environment:this.environment,brand:this.brand}}setupLanguage(){const g=this.localization.getLocaleData();this.language=g?.language,this.environment=s.Fh.ENV_NAME,this.accessToken=this.sessionService.getAccessToken(),this.accountId=this.sessionService.getVdsIdFromAccessToken()}customErrorEvent(g){if(g?.detail){const N=this.splunkService.initializeManyContext(["error","message","url"],[g.detail,"messaging-center-component",window.location.href]);this.splunkService.errorByLookUp("CP-1900-MESSAGE_CENTER_ERROR",{context:N})}}notificationClickEmitter(g){g?.detail?.notificationUrl?.includes("cruise-planner")&&this.localStorage.set(Ce.o.LOCAL_STORAGE_KEY_CRUISE_PLANNER,Ce.o.PANEL_TYPE)}onWindowSizeChange(){this.resize$.next()}getAnchorTriangleIconSrc(){return"assets/images/base/anchor-triangle.svg"}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["main-nav-message-box"]],hostBindings:function(N,B){1&N&&t.bIt("resize",function(){return B.onWindowSizeChange()},!1,t.tSv)},standalone:!0,features:[t.aNF],decls:5,vars:4,consts:[["id","message-center-container-box",1,"message-center-container-box"],["id","message-center-container-box__triangle",1,"message-center-container-box__triangle"],["alt","","aria-hidden","true","loading","lazy","decoding","async",3,"src"],["id","message-center-holder",1,"message-center-container-box__menu"],[1,"message-center-comp",3,"brand","language","apiConfig","analyticsClientData","version"],[1,"message-center-comp",3,"customErrorEvent","notificationClickEmitter","brand","language","apiConfig","analyticsClientData","version"]],template:function(N,B){1&N&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"img",2),t.k0s(),t.j41(3,"div",3),t.DNE(4,ke,2,2),t.k0s()()),2&N&&(t.AVh("message-center-container-box--open",B.menuOpen),t.R7$(2),t.Y8G("src",B.getAnchorTriangleIconSrc(),t.B4B),t.R7$(2),t.vxM(B.menuOpen?4:-1))},styles:[".margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.message-center-container-box[_ngcontent-%COMP%]{display:none;position:fixed;right:0;top:0;z-index:21;margin:0;pointer-events:auto}.message-center-container-box--open[_ngcontent-%COMP%]{display:inline-block;opacity:1;transform:translateY(0)}.message-center-container-box__triangle[_ngcontent-%COMP%]{position:absolute;top:-17px;right:45px}.message-center-container-box__menu[_ngcontent-%COMP%]{background:#fff;border-radius:8px;box-shadow:0 1px 4px #021d4933;width:25vw;min-width:300px;overflow:hidden;height:100vh;border:1px solid #D7DEE9}.message-center-comp[_ngcontent-%COMP%]{display:flex;background-color:#fff}@media screen and (max-width: 600px){.message-center-container-box[_ngcontent-%COMP%]{top:47px;left:0}.message-center-container-box__triangle[_ngcontent-%COMP%]{display:none}.message-center-container-box__menu[_ngcontent-%COMP%]{width:100vw;height:100vh;border-radius:0;box-shadow:none}}"]})}}return I})();const Be=(I,dt,g)=>({is_checkout:I,is_ga:dt,is_rn_screen:g});function Ue(I,dt){if(1&I){const g=t.RV6();t.j41(0,"button",14),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.navigateToDashboard())}),t.nrm(1,"app-icon",15),t.k0s()}
7762&I&&(t.R7$(),t.Y8G("width",9)("height",16))}function ye(I,dt){1&I&&t.eu8(0)}function ue(I,dt){if(1&I&&t.DNE(0,ye,1,0,"ng-container",16),2&I){t.XpG();const g=t.sdS(12);t.Y8G("ngTemplateOutlet",g)}}function we(I,dt){1&I&&t.eu8(0)}function ne(I,dt){if(1&I&&(t.j41(0,"div",17),t.DNE(1,we,1,0,"ng-container",16),t.k0s()),2&I){t.XpG();const g=t.sdS(12);t.R7$(),t.Y8G("ngTemplateOutlet",g)}}function Ge(I,dt){1&I&&t.nrm(0,"main-nav-message-center",9),2&I&&t.Y8G("displayMessageCenterIcon",!0)}function Ye(I,dt){if(1&I){const g=t.RV6();t.j41(0,"div",18),t.bIt("keydown.enter",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.navigateToHome())}),t.j41(1,"a",19),t.bIt("click",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.navigateToHome())})("keydown.enter",function(){t.eBV(g);const B=t.XpG();return t.Njj(B.navigateToHome())}),t.nrm(2,"img"),t.k0s()()}if(2&I){const g=t.XpG();t.R7$(2),t.BMQ("src",g.brand_logo,t.B4B)("alt",g.homeAlt)}}function je(I,dt){1&I&&t.nrm(0,"main-nav-message-box")}var pe=function(I){return I.CruisePlanner="CruisePlanner",I.Checkout="Checkout",I.GuestAccount="GuestAccount",I}(pe||{});let Ve=(()=>{class I{constructor(){this.router=(0,t.WQX)(u.Ix),this.translate=(0,t.WQX)(z.c$),this.urls=(0,t.WQX)(m.aT),this.authService=(0,t.WQX)(m.uR),this.localizationService=(0,t.WQX)(m.Pi),this.splunkService=(0,t.WQX)(K.P),this.webConfigService=(0,t.WQX)(m.sq),this.store=(0,t.WQX)(D.il),this.launchDarklyFlags=this.store.selectSignal(fe.QO),this.sessionExpirationModalService=(0,t.WQX)(xe.q),this.sessionService=(0,t.WQX)(m.x3),this.utilityService=(0,t.WQX)(m.QY),this.isMobileSignal=(0,h.ot)(this.utilityService.isMobileResize$,{initialValue:this.utilityService.isMobileViewport()}),this.activeNavType=(0,t.hFB)(pe.GuestAccount),this.userAccount=(0,t.hFB)(),this.isCheckoutScreen=(0,t.hFB)(),this.isUnderMaintenance=(0,t.hFB)(!1),this.brand=s.qt,this.brand_logo=s.mK,this.navType=pe,this.brandsEnum=Zt.rI,this.envName=s.G1,this.routerUrlSignal=(0,h.ot)(this.router.events.pipe((0,p.p)(g=>g instanceof u.wF),(0,r.T)(()=>this.router.url)),{initialValue:this.router.url}),this.regexForFirstSegment=/^\/[^/?]+/,this.isSettingsRoute=(0,t.EWP)(()=>this.routerUrlSignal()?.startsWith("/settings")??!1),this.firstURLSegment=(0,t.EWP)(()=>{const g=this.routerUrlSignal()?.match(this.regexForFirstSegment);return g?g[0]:null}),this.enableMessageCenter=(0,t.EWP)(()=>!!this.launchDarklyFlags()?.[_e.mA.IS_MESSAGING_CENTER_WEB_ENABLE])}ngOnInit(){this.homeSite=s.tl.BASE_URLS.HOME,this.homeAlt=this.brand+" "+this.translate.instant("COMMON.HOME"),this.enrollment=this.webConfigService?.webConfig?.ga?.enrollment;const{country:g,language:N}=this.localizationService.detect();this.language=N,this.country=g,this.checkUserInfo()}get profileTabIndex(){return-1}get isSessionActive(){return this.sessionService.isSessionActive()}checkUserInfo(){if(!this.isSessionActive||!this.userAccount()?.personalInformation)return;const{firstName:g="",lastName:N="",avatar:B=""}=this.userAccount().personalInformation;B?this.avatarUrl=B:(g||N)&&(this.initials=`${g?.charAt(0)||""}${N?.charAt(0)||""}`.toUpperCase())}get isMobile(){return this.isMobileSignal()}toggleMenu(){this.isUnderMaintenance()&&(window.location.href=this.homeSite)}showLogo(){return this.activeNavType()!==this.navType.Checkout&&!this.isMobile||this.activeNavType()===this.navType.GuestAccount&&this.isMobile||this.isMobile&&!0===this.isUnderMaintenance()}navigateToDashboard(){this.router.navigate(["/"])}navigateToHome(){window.location.href=this.urls.get("HOME")}modalLoginClick(g){const N=g?.detail;N&&this.authService.login(N)}errorEventLogin(g){const N=g?.detail;if(N){const B=this.splunkService.initializeManyContext(["error","message","request"],[N,"login-component-error",{error:N,message:"login-component-error"}]);this.splunkService.errorByLookUp("CP-0060_CORE_SERVICES-LOGIN_AUTHENTICATE_FAILED",{context:B})}}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["shared-internal-header"]],inputs:{activeNavType:[1,"activeNavType"],userAccount:[1,"userAccount"],isCheckoutScreen:[1,"isCheckoutScreen"],isUnderMaintenance:[1,"isUnderMaintenance"]},standalone:!0,features:[t.aNF],decls:17,vars:24,consts:[["mainNav",""],["brandLogo",""],["id","nav-main","aria-label","nav main container",3,"ngClass"],[1,"nav-background"],["id","nav-inner",1,"nav-inner"],[1,"nav-left-box"],["type","button","aria-label","Back to dashboard",1,"nav-back-btn"],["class","nav-ce
776nter-box",4,"ngIf"],[1,"nav-right-box"],[3,"displayMessageCenterIcon"],[3,"initials","avatarUrl","tabIndex","shouldDisplayMessageCenter","isMobile"],[1,"ga-global-login-modal",3,"brand","isOpen"],["content","",1,"ga-global-login-modal__content"],[3,"successSession","customErrorEvent","sessionNotExtended","sessionTimeoutModalRequestSignIn","language","country","brand","env","enrollment","sessionExpirationModalOption"],["type","button","aria-label","Back to dashboard",1,"nav-back-btn",3,"click"],["name","chevron-left",3,"width","height"],[4,"ngTemplateOutlet"],[1,"nav-center-box"],["tabindex","0",1,"highlight",3,"keydown.enter"],["tabindex","-1",1,"nav-logo","highlight__content",3,"click","keydown.enter"]],template:function(N,B){if(1&N){const st=t.RV6();t.j41(0,"nav",2,0),t.nrm(2,"div",3),t.j41(3,"div",4)(4,"div",5),t.DNE(5,Ue,2,2,"button",6)(6,ue,1,1,"ng-container"),t.k0s(),t.DNE(7,ne,2,1,"div",7),t.j41(8,"div",8),t.DNE(9,Ge,1,1,"main-nav-message-center",9),t.nrm(10,"shared-internal-header-profile",10),t.k0s()()(),t.DNE(11,Ye,3,2,"ng-template",null,1,t.C5r),t.j41(13,"shared-modal",11)(14,"div",12)(15,"global-login",13),t.bIt("successSession",function(ht){return t.eBV(st),t.Njj(B.modalLoginClick(ht))})("customErrorEvent",function(ht){return t.eBV(st),t.Njj(B.errorEventLogin(ht))})("sessionNotExtended",function(){return t.eBV(st),t.Njj(B.sessionExpirationModalService.onSessionNotExtended())})("sessionTimeoutModalRequestSignIn",function(){return t.eBV(st),t.Njj(B.sessionExpirationModalService.onSessionTimeoutModalRequestSignIn())}),t.k0s()()(),t.DNE(16,je,1,0,"main-nav-message-box")}2&N&&(t.Y8G("ngClass",t.sMw(20,Be,B.activeNavType()===B.navType.Checkout,B.activeNavType()===B.navType.GuestAccount,"/royal-one-rewards"===B.firstURLSegment())),t.R7$(2),t.AVh("is_ga",!B.isCheckoutScreen()&&B.brand===B.brandsEnum.celebrity),t.R7$(3),t.vxM(B.isSettingsRoute()&&B.isMobile?5:B.showLogo()?6:-1),t.R7$(2),t.Y8G("ngIf",B.activeNavType()===B.navType.CruisePlanner),t.R7$(2),t.vxM(B.enableMessageCenter()&&!B.isMobile?9:-1),t.R7$(),t.Y8G("initials",B.initials)("avatarUrl",B.avatarUrl)("tabIndex",B.profileTabIndex)("shouldDisplayMessageCenter",B.enableMessageCenter())("isMobile",B.isMobile),t.R7$(3),t.Y8G("brand",B.brand)("isOpen",!1),t.R7$(2),t.Y8G("language",B.language)("country",B.country)("brand",B.brand)("env",B.envName)("enrollment",B.enrollment)("sessionExpirationModalOption",B.sessionExpirationModalService.sessionExpirationModalOption()),t.R7$(),t.vxM(B.enableMessageCenter()?16:-1))},dependencies:[$.MD,$.YU,$.bT,$.T3,z.h,Ie,Re.z,ut,Fe,Se.R],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.highlight[_ngcontent-%COMP%]:focus > .highlight__content[_ngcontent-%COMP%]{box-shadow:0 0 0 2.5px #e3bc5c;border-radius:2px}.highlight[_ngcontent-%COMP%]:focus, .highlight__content[_ngcontent-%COMP%]:focus{outline:none}h4[_ngcontent-%COMP%]{margin:0;padding:0}shared-app-routing-banner[_ngcontent-%COMP%]{box-sizing:border-box;color:#fff;font-size:20px;margin:0;padding:0;top:0;width:100vw;z-index:99999}nav[_ngcontent-%COMP%]{box-sizing:border-box;color:#fff;font-size:20px;height:80px;margin:0;padding:0;position:fixed;top:0;text-align:center;width:100vw;z-index:20}nav.app-routing-banner[_ngcontent-%COMP%]{top:52px;position:absolute}nav.is_ga[_ngcontent-%COMP%]{width:100%}nav.nav-offset[_ngcontent-%COMP%]{top:0;position:fixed}.mobile-padding[_ngcontent-%COMP%]{padding:0}.nav[_ngcontent-%COMP%]{line-height:1;position:relative;padding:0}.nav-background[_ngcontent-%COMP%]{background:#181d23;box-shadow:0 2px 20px #00000029;height:100%;width:100%;position:absolute}.nav-background.is_ga[_ngcontent-%COMP%]{background:#fff}.nav-mobile-logo[_ngcontent-%COMP%]{display:none}.nav-spacer[_ngcontent-%COMP%]{margin:0 16px}.nav-inner[_ngcontent-%COMP%]{opacity:1;display:flex;align-items:center;justify-content:space-between;margin:0 auto;max-width:1300px;padding:14px 0 0;position:relative;text-align:left}.nav-left-box[_ngcontent-%COMP%]{display:flex;min-height:47px;z-index:2;align-items:center}.nav-left-box[_ngcontent-%COMP%] .nav-logo[_ngcontent-%COMP%] .highlight__content[_ngcontent-%COMP%]{box-shadow:none}.nav-center-box[_ngcontent-%COMP%]{display:none}.nav-right-box[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;z-index:3;gap:10px;align-items:center}.nav-cruise-modal[_ngcontent-%COMP%]{background:#fff;box-shadow:0 2px 30px #00000026;position:fixed;height:0;left:0;line-height:normal;opacity:0;overflow:hidden;text-align:left;top:80px;width:100%}.nav-logo[_ngcontent-%COMP%]{cursor:pointer;display:flex;margin-right:40px}.nav-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:40px}.nav-top[_ngcontent-%COMP%]{border:none;position:relative}.nav-cruisename[_ngcontent-%COMP%]{color:#fff;display:inline-block;font-size:14px;line-height:1.5;opacity:1;position:relative;text-transform:capitalize;margin-right:24px;padding-right:24px;border-right:1px solid rgba(255,255,255,.51)}.nav-cruisename__content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.nav-obc[_ngcontent-%COMP%]{color:#fff;display:inline-block;font-size:14px;line-height:1.5;margin-right:24px}.nav-obc-label[_ngcontent-%COMP%]{font-weight:400}
776.nav-obc-amount[_ngcontent-%COMP%]{font-weight:600}.nav-cruise-dropshadow[_ngcontent-%COMP%]{box-shadow:0 2px 30px #00000026;display:none;height:80px;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:10000}.nav-cruise-dropshadow.cruise-on[_ngcontent-%COMP%]{display:block}.nav-cruise-top-info[_ngcontent-%COMP%]{position:relative}.nav-cruise-inner-wrapper[_ngcontent-%COMP%]{min-height:100%}.nav-cruise-inner[_ngcontent-%COMP%]{display:flex;margin:0 auto;max-width:1300px}.nav-cruise-inner--background[_ngcontent-%COMP%]{position:absolute;background-color:#fff;background-position:top right;background-repeat:no-repeat;background-size:auto 100%;width:50%;min-height:100%;right:0}.nav-cruise-info[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:-.14px;margin-top:-6px}.nav-cruise-left[_ngcontent-%COMP%]{background:#fff;color:#000;padding:44px 105px 56px 0;width:60%;position:relative;height:100%}.nav-cruise-left[_ngcontent-%COMP%] .nav-cruise-date-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.nav-cruise-right[_ngcontent-%COMP%]{position:absolute;min-height:100%;right:0}.nav-itinerary-name[_ngcontent-%COMP%]{font-size:24px;font-weight:400;line-height:1;display:inline-block;padding:0 0 10px;position:relative}.nav-switch-sailing[_ngcontent-%COMP%]{color:#1673af;font-size:14px;font-weight:600;line-height:16px;outline-color:#e3bc5c;cursor:pointer;margin-top:0;margin-right:66px;text-decoration:none}.nav-switch-sailing[_ngcontent-%COMP%]:hover{text-decoration:underline}.nav-pmv[_ngcontent-%COMP%]{background:transparent;cursor:pointer;display:inline-block;border:none;margin:0;padding:0;position:relative;text-align:left}.nav-pmv[_ngcontent-%COMP%]:focus{outline:none}.nav-pmv-text[_ngcontent-%COMP%]{color:#fff;display:flex;font-size:18px;opacity:1;font-weight:600;line-height:1.25;align-items:center}.nav-pmv-text[_ngcontent-%COMP%] .nav-arrow[_ngcontent-%COMP%]{padding:2px 0 0 10px;display:flex;align-items:center;justify-content:center}.nav-pmv-text[_ngcontent-%COMP%] .nav-arrow[_ngcontent-%COMP%] rccl-action-icon{display:flex}.nav-pmv-text[_ngcontent-%COMP%] .nav-arrow[_ngcontent-%COMP%] rccl-action-icon svg{transition:transform .25s;width:24px;height:24px}.nav-pmv-text[_ngcontent-%COMP%] .nav-arrow--on[_ngcontent-%COMP%] svg{transform:rotate(180deg)}.nav-calendar[_ngcontent-%COMP%]{background:none;cursor:pointer;padding:0;border:none;margin-right:20px;width:32px;height:32px}.nav-cart[_ngcontent-%COMP%]{margin:0 24px 0 4px;position:relative;top:-1px;cursor:pointer}.nav-cart[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:32px;height:32px}.nav-signin[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:1px #ffffff solid;font-weight:600;font-size:15px;cursor:pointer;height:42px;width:155px;box-sizing:border-box;margin-top:7px}@media screen and (min-width: 1024px){nav.is_rn_screen[_ngcontent-%COMP%] .nav-inner[_ngcontent-%COMP%]{max-width:none;padding:14px 80px 0}}.mobile[_ngcontent-%COMP%]{display:none}.not-mobile[_ngcontent-%COMP%]{display:block}.subnav-calendar[_ngcontent-%COMP%]{background:#fff;position:fixed;left:0;text-align:center;top:80px;width:100%}.subnav-calendar--open[_ngcontent-%COMP%]{height:100%}.subnav-calendar-inner[_ngcontent-%COMP%]{background:#fff;height:0;transform:translate(0);margin:0 auto;max-height:100%;opacity:0;text-align:left}.highlighted-products[_ngcontent-%COMP%]{height:750px;width:707px}.back-to-cart[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;margin-top:2px}.back-to-cart[_ngcontent-%COMP%] .highlight__content[_ngcontent-%COMP%]{align-items:flex-end;display:flex}.back-to-cart--link[_ngcontent-%COMP%], .back-to-cart--link[_ngcontent-%COMP%]:hover, .back-to-cart--link[_ngcontent-%COMP%]:active, .back-to-cart--link[_ngcontent-%COMP%]:visited, .back-to-cart--link[_ngcontent-%COMP%]:focus{color:#fff;display:inline-block;font-size:20px;font-weight:700;height:24px;letter-spacing:-.15px;text-decoration:none}.back-to-cart--icon[_ngcontent-%COMP%]{display:inline-block;height:24px;margin:0 8px 1px 0;width:26px}@media screen and (max-width: 1440px){.nav-inner[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}}@media screen and (max-width: 1280px){.nav-inner[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.nav-cruise-inner[_ngcontent-%COMP%]{max-width:calc(100% - 80px)}.nav-cruise-left[_ngcontent-%COMP%]{width:724px}
776.nav-itinerary-name[_ngcontent-%COMP%]{font-size:20px;font-weight:500}}@media screen and (max-width: 1024px){.nav-cruisename[_ngcontent-%COMP%]{margin-right:18px;padding-right:18px}.nav-obc[_ngcontent-%COMP%]{margin-right:18px}.nav-calendar[_ngcontent-%COMP%]{margin-right:14px}.nav-cart[_ngcontent-%COMP%]{margin:0 18px 0 4px}}@media screen and (max-width: 840px){.nav-inner[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.nav-cruise-dates[_ngcontent-%COMP%], .nav-obc[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 600px){nav[_ngcontent-%COMP%]{height:48px}nav.is_ga[_ngcontent-%COMP%]{height:68px}nav.is_ga[_ngcontent-%COMP%] .nav-inner[_ngcontent-%COMP%]{padding-top:10px}.nav-cruise-modal[_ngcontent-%COMP%]{height:calc(100vh - 48px);width:0;overflow-y:auto}.nav-inner[_ngcontent-%COMP%]{padding-top:0;padding-left:16px;padding-right:16px;margin:0 auto}.nav-inner--404-screen[_ngcontent-%COMP%] .nav-center-box[_ngcontent-%COMP%]{order:0}.nav-inner--404-screen[_ngcontent-%COMP%] .nav-left-box[_ngcontent-%COMP%]{order:1}.nav-inner--404-screen[_ngcontent-%COMP%] .nav-right-box[_ngcontent-%COMP%]{order:2}.nav-right-box[_ngcontent-%COMP%]{margin-top:0;flex:.4}.nav-right-box[_ngcontent-%COMP%] .calendar-highlight[_ngcontent-%COMP%]{display:none}.nav-right-box[_ngcontent-%COMP%] .nav-signin[_ngcontent-%COMP%]{margin-top:0;width:84px;height:32px}.nav-right-box[_ngcontent-%COMP%] .nav-signin--lg[_ngcontent-%COMP%]{width:114px}.nav-right-box[_ngcontent-%COMP%] .nav-signin--sm[_ngcontent-%COMP%]{width:64px}.nav-left-box[_ngcontent-%COMP%]{align-items:center;justify-content:normal;gap:30px;flex:.4}.nav-left-box[_ngcontent-%COMP%] .nav-pmv[_ngcontent-%COMP%]{padding-left:0}.nav-back-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:0}.nav-back-btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid #e3bc5c}.nav-back-btn[_ngcontent-%COMP%] .icon{color:#2588cd}.nav-center-box[_ngcontent-%COMP%]{display:flex;justify-content:center;flex:.2}.nav-center-box[_ngcontent-%COMP%] .nav-logo[_ngcontent-%COMP%]{margin-right:0}.nav-icon[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.nav-mobile-logo[_ngcontent-%COMP%]{display:block;height:auto;left:0;position:absolute;width:32px;top:8px}.nav-cruisename[_ngcontent-%COMP%]{font-size:14px;font-weight:400;border-right:none;margin-right:auto;padding-right:initial}.nav-pmv[_ngcontent-%COMP%]{padding-left:50px}.nav-pmv-text[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.nav-pmv-text[_ngcontent-%COMP%] .nav-arrow[_ngcontent-%COMP%]{padding-left:6px}.nav-pmv-text[_ngcontent-%COMP%] .nav-arrow[_ngcontent-%COMP%] rccl-action-icon svg{width:16px;height:16px;transform:rotate(-90deg)}.nav-pmv-text[_ngcontent-%COMP%] .nav-arrow--on[_ngcontent-%COMP%] rccl-action-icon svg{transform:rotate(90deg)}.nav-switch-sailing[_ngcontent-%COMP%]{display:block;font-weight:400;letter-spacing:.11px;left:auto;margin-top:8px;position:static;top:auto}.nav-signin[_ngcontent-%COMP%]{height:35px;width:100px}.nav-cruise-dates[_ngcontent-%COMP%]{display:none}.nav-cruise-dropshadow[_ngcontent-%COMP%]{height:48px}.nav-cruise-inner[_ngcontent-%COMP%]{margin:0;max-width:none;width:300px}.nav-cruise-left[_ngcontent-%COMP%]{padding-right:0;padding-top:0;display:flex;flex-direction:column-reverse}.nav-cruise-left[_ngcontent-%COMP%] .nav-cruise-date-info[_ngcontent-%COMP%]{flex-direction:column}.nav-cruise-top-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0;gap:8px}.nav-cruise-top-info[_ngcontent-%COMP%] .nav-itinerary-name[_ngcontent-%COMP%]{padding:0}.nav-cruise-top-info[_ngcontent-%COMP%] .nav-itinerary-name[_ngcontent-%COMP%], .nav-cruise-top-info[_ngcontent-%COMP%] .nav-cruise-info[_ngcontent-%COMP%]{padding-bottom:0}.nav-cruise-top-info[_ngcontent-%COMP%] .nav-switch-sailing[_ngcontent-%COMP%]{display:none}.nav-cruise-top-info.navigation-logged-out[_ngcontent-%COMP%]{background:#f6f8fb;padding:16px}.nav-cruise-info[_ngcontent-%COMP%]{font-size:14px;letter-spacing:0;margin-top:0}.nav-calendar[_ngcontent-%COMP%]{margin-right:14px;width:20px;height:20px;position:relative;top:3px}.nav-calendar[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:24px;height:24px}.nav-cart[_ngcontent-%COMP%]{margin-right:18px;margin-top:2px}.nav-cart[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:24px;height:24px}.nav-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto}.is_checkout[_ngcontent-%COMP%] .nav-left-box[_ngcontent-%COMP%]{flex:auto}.subnav-calendar[_ngcontent-%COMP%]{top:48px}.mobile[_ngcontent-%COMP%]{display:block}.not-mobile[_ngcontent-%COMP%]{display:none}}.ga-global-login-modal__content[_ngcontent-%COMP%]{margin-top:40px;height:100%}.ga-global-login-modal[_ngcontent-%COMP%] .modal{max-height:90vh;min-height:590px;min-width:700px}.ga-global-login-modal[_ngcontent-%COMP%] .modal__content{margin:0}@media screen and (min-width: 320px) and (max-width: 768px){.ga-global-login-modal[_ngcontent-%COMP%] .modal{min-width:0}}.cruising-power-change-owner-modal[_ngcontent-%COMP%]{align-items:start;padding-top:160px}.cruising-power-change-owner-modal[_ngcontent-%COMP%] .modal{min-width:628px;min-height:280px}.cruising-power-change-owner-modal__content[_ngcontent-%COMP%]{margin-top:96px;display:flex;flex-direction:column;align-items:center;gap:40px}.cruising-power-change-owner-modal[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:24px;font-style:normal;font-weight:800;line-height:28px;letter-spacing:-.15px;color:#131516}.cruising-power-change-owner-modal[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.cruising-power-change-owner-modal[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] shared-thin-button[_ngcontent-%COMP%] button{width:230px}.cruising-power-guest-list-modal[_ngcontent-%COMP%]{align-items:start;padding-top:160px}.cruising-power-guest-list-modal[_ngcontent-%COMP%] .modal{min-width:708px}@media screen and (max-width: 1024px){.cruising-power-change-owner-modal[_ngcontent-%COMP%], .cruising-power-guest-list-modal[_ngcontent-%COMP%]{align-items:center;padding-top:inherit}.cruising-power-change-owner-modal[_ngcontent-%COMP%] .modal, .cruising-power-guest-list-modal[_ngcontent-%COMP%] .modal{min-width:auto}}@media screen and (max-width: 600px){.cruising-power-change-owner-modal__content[_ngcontent-%COMP%]{margin-top:40px}.cruising-power-change-owner-modal__content[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{justify-content:center}}@media screen and (min-width: 320px) and (max-width: 768px){.cruising-power-change-owner-modal[_ngcontent-%COMP%], .cruising-power-guest-list-modal[_ngcontent-%COMP%]{min-width:0}}.menu-top-with-routing-banner[_ngcontent-%COMP%]{top:100px}.menu-top-without-routing-banner[_ngcontent-%COMP%]{top:80px}"],changeDetection:0})}}return I})();var We=n(84759),$e=n(92707),He=n(77218),Xe=n(47592);function ze(I,dt){1&I&&t.nrm(0,"app-loader")}function Qe(I,dt){1&I&&t.nrm(0,"shared-internal-header")}function Je(I,dt){1&I&&t.nrm(0,"shared-internal-footer")}function Ze(I,dt){1&I&&(t.j41(0,"div"),t.nrm(1,"feedback-bot"),t.k0s())}let qe=(()=>{class I{normalizePath(g){return g?g.split("?")[0].split("#")[0].replace(/^\//,"").replace(/\/$/,""):""}constructor(g,N,B,st,ct){this.configService=g,this.tealium=N,this.intlService=B,this.localizationService=st,this.tokenRefreshService=ct,this.toastAlertFacade=(0,t.WQX)(m.v6),this.loadingFacade=(0,t.WQX)(m.xp),this.router=(0,t.WQX)(u.Ix),this.quantumMetricService=(0,t.WQX)(We.B),this.sessionService=(0,t.WQX)(m.x3),this.trackingParamsService=(0,t.WQX)($e.P),this.brand=s.qt,this.brands=Zt.rI,this.cobrandHubPath=Xe.W,this.toastAlertState=this.toastAlertFacade.state,this.showLoading=this.loadingFacade.showLoading,this.cleanRoutePath=(0,t.EWP)(()=>{const ht=this.currentUrl();return this.normalizePath(ht)}),this.normalizedCobrandPath=this.normalizePath(this.cobrandHubPath),this.show
776FeedbackBot=(0,t.EWP)(()=>{const ht=this.brand===this.brands.silversea&&this.cleanRoutePath()===this.normalizedCobrandPath;return this.isEnglish&&!ht}),this.showLoadingWithDelay=(0,h.ot)(this.loadingFacade.showLoading$.pipe((0,c.n)(ht=>ht?(0,O.of)(ht):(0,d.O)(400).pipe((0,r.T)(()=>ht)))),{initialValue:!1}),this.isNavigatingWithDelay=(0,h.ot)(this.router.events.pipe((0,p.p)(ht=>ht instanceof u.Z||ht instanceof u.wF||ht instanceof u.j5||ht instanceof u.L6),(0,r.T)(ht=>ht instanceof u.Z),(0,c.n)(ht=>ht?(0,O.of)(ht):(0,d.O)(400).pipe((0,r.T)(()=>ht)))),{initialValue:!0}),this.showPageLoading=(0,t.EWP)(()=>this.showLoadingWithDelay()||this.isNavigatingWithDelay()),this.currentUrl=(0,h.ot)(this.router.events.pipe((0,p.p)(ht=>ht instanceof u.wF),(0,r.T)(ht=>ht.urlAfterRedirects)),{initialValue:""}),this.isSettingsRoute=(0,t.EWP)(()=>this.currentUrl()?.includes("/settings")),this.showHeaderFooter=(0,t.EWP)(()=>{const ht=this.currentUrl(),At=ht?.includes("/signin")||window.location.pathname?.includes("/signin"),Yt=ht?.includes("/forgot-password")||window.location.pathname?.includes("/forgot-password"),mn=ht?.includes("/find-reservation/review")||window.location.pathname?.includes("/find-reservation/review"),Te=this.brand===Zt.rI?.silversea;return!(this.showLoadingWithDelay()||At||Yt||mn||Te)}),this.isEnglish=!1,function Ke(){const I=s.Fh.SPLUNK_RUM_CONFIG;if(!I)return;const g=document.documentElement.getAttribute("data-web-version")||s.Fh.SPLUNK_RUM_CONFIG.version||"local";He.Ay.init({realm:I.realm,debug:I.debug,version:g,deploymentEnvironment:I.deploymentEnvironment,rumAccessToken:I.rumAccessToken,applicationName:I.applicationName,globalAttributes:{"enduser.role":"guest"}})}(),this.configService.load(),this.intlService.initializeIntl(),this.quantumMetricService.initialize(),this.brand===Zt.rI.silversea&&this.tokenRefreshService.start()}ngOnInit(){this.isEnglish="en"===this.localizationService.resolveLanguage(),this.trackingParamsService.captureFromCurrentUrl(),this.trackingParamsService.startPersisting()}ngAfterViewInit(){s.XB&&this.tealium.setConfig(s.$K)}onPageShow(g){if(g.persisted)return void window.location.reload();const N=this.sessionService.isSessionActive(),B=window.location.pathname.includes("/signin");!N&&!B&&window.location.replace("/signin"+window.location.search)}closeToastAlert(){this.toastAlertFacade.closeToast()}static{this.\u0275fac=function(N){return new(N||I)(t.rXU(m.sq),t.rXU(m.ML),t.rXU(m.Bs),t.rXU(m.Pi),t.rXU(m.Oi))}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["app-root"]],hostBindings:function(N,B){1&N&&t.bIt("pageshow",function(ct){return B.onPageShow(ct)},!1,t.tSv)},standalone:!0,features:[t.aNF],decls:8,vars:8,consts:[[2,"position","relative","min-height","100vh"],[3,"closed","toastAlertState"]],template:function(N,B){1&N&&(t.j41(0,"div",0),t.DNE(1,ze,1,0,"app-loader"),t.j41(2,"div"),t.DNE(3,Qe,1,0,"shared-internal-header"),t.nrm(4,"router-outlet"),t.DNE(5,Je,1,0,"shared-internal-footer")(6,Ze,2,0,"div"),t.k0s(),t.j41(7,"shared-toast-alert",1),t.bIt("closed",function(){return B.closeToastAlert()}),t.k0s()()),2&N&&(t.BMQ("mode",B.brand),t.R7$(),t.vxM(B.showPageLoading()&&!B.isSettingsRoute()?1:-1),t.R7$(),t.xc7("display",B.showPageLoading()&&!B.isSettingsRoute()?"none":"block"),t.R7$(),t.vxM(B.showHeaderFooter()?3:-1),t.R7$(2),t.vxM(B.showHeaderFooter()?5:-1),t.R7$(),t.vxM(B.showFeedbackBot()?6:-1),t.R7$(),t.Y8G("toastAlertState",B.toastAlertState()))},dependencies:[u.iI,u.n3,j.vJ,q.u,Ve,et,j.VU],encapsulation:2})}}return I})();var tn=n(72927),Gt=n(77339),Kt=n(85014),en=n(11988),Ee=n(10804),nn=n(74003),on=n(39638),ve=n(18008),be=n(97840);const Ut=(0,D.EQ)({source:"Folio",events:{"Get Folio":(0,D.xk)(),"Get Folio Success":(0,D.xk)(),"Get Folio Fail":(0,D.xk)(),"Get Folio PDF":(0,D.xk)(),"Get Folio PDF Success":(0,D.xk)(),"Get Folio PDF Fail":(0,D.xk)(),"Folio Lookup":(0,D.xk)(),"Folio Lookup Success":(0,D.xk)(),"Folio Lookup Fail":(0,D.xk)()}}),re=(0,D.VG)({name:"folio",reducer:(0,D.vy)({disclaimerTemplate:null,shipCode:null,sailDate:null,shipName:null,requestorCruiseBookingId:null,requestorPaxId:null,requestorFolioNumber:null,payerFolioNumber:null,requestorStateRoomNumber:null,requestorEmbarkDate:null,requestorDebarkDate:null,folioDetails:null,buyerPaxID:null,checkNumber:null,originalCheckNumber:null,transactionAmount:null,transactionCurrency:null,description:null,departmentID:null,departmentDescription:null,transactionDateTime:null,transactionType:null,amountBeforeTaxGrats:null,gratuityAmount:null,taxAmount:null,folioPayments:[],folioTotals:null,paxDetails:[],cruiseBookingID:null,paxId:null,
776stateroomNumber:null,folioNumber:null,firstName:null,lastName:null,folioRequestParams:null,requestDateTime:null,loading:!1,loaded:!1,error:null,data:null,pdfData:null,lookupData:null},(0,D.on)(Ut.getFolio,I=>({...I,loading:!0})),(0,D.on)(Ut.getFolioSuccess,(I,{payload:dt})=>({...I,loaded:!0,loading:!1,data:dt})),(0,D.on)(Ut.getFolioFail,(I,{payload:dt})=>({...I,loaded:!1,loading:!1,error:dt})),(0,D.on)(Ut.getFolioPDF,I=>({...I,loading:!0})),(0,D.on)(Ut.getFolioPDFSuccess,(I,{payload:dt})=>({...I,loaded:!0,loading:!1,pdfData:dt})),(0,D.on)(Ut.getFolioPDFFail,(I,{payload:dt})=>({...I,loaded:!1,loading:!1,error:dt})),(0,D.on)(Ut.folioLookup,I=>({...I,loading:!0})),(0,D.on)(Ut.folioLookupSuccess,(I,{payload:dt})=>({...I,loaded:!0,loading:!1,lookupData:dt})),(0,D.on)(Ut.folioLookupFail,(I,{payload:dt})=>({...I,loaded:!1,loading:!1,error:dt})))});var ge=n(70222);let Oe=(()=>{class I{constructor(){this.http=(0,t.WQX)(b.lU),this.splunkService=(0,t.WQX)(K.P),this.utilService=(0,t.WQX)(ge.Q),this.BASE_PATH="",this.BASE_PATH=this.utilService.getBasePath("v1")}getFolio(g){const{shipCode:N,sailDate:B,requestorCruiseBookingId:st,requestorPaxId:ct}=g;return this.http.post(`${s.f0}${this.BASE_PATH}/folios`,{shipCode:N,sailDate:B,requestorCruiseBookingId:st,requestorPaxId:ct},F.zy).pipe((0,w.W)(Yt=>(0,F.O9)(Yt)))}getFolioDisclaimer(g){return this.http.get(`${s.f0}/${g}/royal/web/v3/agreement`,(0,b.nT)({key:`HTTP_CACHE_${s.qt.toString().toUpperCase()}_AGREEMENT`})).pipe((0,w.W)(B=>{const st=this.utilService.telemetryErrorObj(B),ht=this.splunkService.initializeManyContext(["error","message"],[st,"unexpected error folio service"]);return this.splunkService.errorByLookUp("CP-0020_CORE_SERVICES-AGREEMENT_FAILED",{context:ht}),(0,F.O9)(B)}))}lookup(g){return this.http.post(""+(s.f0+`${this.BASE_PATH}/folios/lookup`),g,F.zy).pipe((0,w.W)(B=>(0,F.O9)(B)))}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})();var Pe=n(79694),Ae=n(53993);let rn=(()=>{class I{constructor(){this.actions$=(0,t.WQX)(Gt.En),this.folioService=(0,t.WQX)(Oe),this.utilsService=(0,t.WQX)(ge.Q),this.store=(0,t.WQX)(D.il),this.triggerLookup$=(0,Gt.EH)(()=>this.actions$.pipe((0,Gt.gp)(Pe.z.fetchPastBookingsSuccess),(0,Ae.E)(this.store.select(fe.QO)),(0,p.p)(([,g])=>!!g?.[_e.mA.IS_FOLIO_POST_CRUISE_PDF_ENABLED]),(0,r.T)(([g])=>this.filterValidBookings(g.payload.bookings)),(0,r.T)(g=>this.buildLookupPayload(g)),(0,p.p)(g=>!!g?.length),(0,c.n)(g=>(0,O.of)(Ut.folioLookup({payload:g}))))),this.lookup$=(0,Gt.EH)(()=>this.actions$.pipe((0,Gt.gp)(Ut.folioLookup),(0,r.T)(g=>g.payload),(0,c.n)(g=>this.folioService.lookup(g).pipe((0,c.n)(N=>(0,O.of)(Pe.z.updateBookingsFolioLookup({payload:N?.payload}),Ut.folioLookupSuccess({payload:N?.payload}))),(0,w.W)(N=>(0,O.of)(Ut.folioLookupFail({payload:N}))))))),this.getFolio$=(0,Gt.EH)(()=>this.actions$.pipe((0,Gt.gp)(Ut.getFolio),(0,r.T)(g=>g.payload),(0,c.n)(g=>this.folioService.getFolio(g).pipe((0,r.T)(N=>{const B=N?.payload,st=B?.shipName,ct=st&&this.utilsService.capitalizeWithPunctuation(st),ht=st&&"royal"===s.qt?`${ct} of the Seas`:ct,At=B&&{...B,shipName:ht};return Ut.getFolioSuccess({payload:At})}),(0,w.W)(N=>(0,O.of)(Ut.getFolioFail({payload:N})))))))}filterValidBookings(g){return(g||[]).filter(B=>this.safeGetProperty(B,"shipCode")&&this.safeGetProperty(B,"sailDate")&&this.safeGetProperty(B,"bookingId")&&this.safeGetProperty(B,"passengerId"))}buildLookupPayload(g){return g.map(B=>Object.assign({},{shipCode:2===B.shipCode?.length?B.shipCode:"",sailDate:B.sailDate,requestorCruiseBookingId:this.validateBookingIdValue(B.bookingId),requestorPaxId:this.validatePassengerIdValue(B.passengerId)})).filter(B=>B.requestorCruiseBookingId&&B.requestorPaxId&&B.shipCode&&B.sailDate)}safeGetProperty(g,N){return Object.prototype.hasOwnProperty.call(g,N)&&g[N]}validateBookingIdValue(g){const N=g&&Number.parseInt(g,10);return N&&N>1&&N<999999999?N.toString():""}validatePassengerIdValue(g){const N=g&&Number.parseInt(g,10);return N&&N>1&&N<999999999?N.toString():""}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac})}}return I})();var sn=n(2203),oe=n(64489);let cn=(()=>{class I{constructor(g,N,B,st){this.actions$=g,this.store$=N,this.reservationService=B,this.localStorageService=st,this.fetchShips$=(0,Gt.EH)(()=>this.actions$.pipe((0,Gt.gp)(oe.Yu),(0,Ae.E)(this.store$.pipe((0,D.Lt)("ships"))),(0,c.n)(([,ct])=>{if(ct&&ct.shipsList)return(0,O.of)(oe.X3({payload:ct.shipsList}));const ht=this.localStorageService.getWithExpiry("ships");return ht?(0,O.of)(oe.X3({payload:"string"==typeof ht?JSON.parse(ht):ht})):this.reservationService.getShips().pipe((0,r.T)(At=>(this.localStorageService.setWithExpiry("ships",At),oe.X3({payload:At}))),(0,w.W)(At=>(0,O.of)(oe.Cf({payload:At}))))})))}static{this.\u0275fac=function(N){return new(N||I)(t.KVO(Gt.En),t.KVO(D.il),t.KVO
776(sn.E),t.KVO(m.sj))}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac})}}return I})();const ln=[(0,D.NT)(),(0,D.vQ)(Kt.q9),(0,D.vQ)(Kt.s0),(0,D.vQ)(Kt.ej),(0,D.vQ)(Kt.J9),(0,D.vQ)(Kt.wp),(0,D.vQ)(en.Vo),(0,D.vQ)(Kt.wI),(0,D.vQ)(Ee.H0),(0,D.vQ)(nn.zJ),(0,D.vQ)(on.th),(0,D.vQ)(ve.sc),(0,D.vQ)(be.v9),(0,D.vQ)(re),(0,Gt.SI)([Kt.y9,Kt.TS,Kt.Ae,Kt.al,en.nn,Kt.Cf,Ee.Tg,nn.xs,on.rU,ve.l1,cn,be.lO,rn])];var Rt=n(2358),dn=n(86360),ce=n(20023);const un=["container"];function pn(I,dt){1&I&&(t.j41(0,"div",6)(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&I&&(t.R7$(2),t.JRh(t.bMT(3,1,"LOYALTY.MEMBER_CRUISES.YOUR_TIER")))}function R(I,dt){if(1&I&&t.nrm(0,"img",8),2&I){const g=t.XpG().$implicit;t.Y8G("src",null==g.details?null:g.details.vsTierIcon,t.B4B)("alt",null==g?null:g.iconName)}}function gt(I,dt){if(1&I&&t.nrm(0,"img",8),2&I){const g=t.XpG().$implicit;t.Y8G("src",null==g.details?null:g.details.tierIcon,t.B4B)("alt",null==g?null:g.iconName)}}function i(I,dt){if(1&I&&t.nrm(0,"img",8),2&I){const g=t.XpG().$implicit;t.Y8G("src",null==g?null:g.icon,t.B4B)("alt",null==g?null:g.iconName)}}function A(I,dt){if(1&I&&(t.j41(0,"span"),t.EFF(1),t.k0s(),t.nrm(2,"br"),t.j41(3,"span"),t.EFF(4),t.k0s()),2&I){const g=t.XpG().$implicit,N=t.XpG(2);t.R7$(),t.JRh(N.getSplitTitle(null==g?null:g.title)[0].trim()),t.R7$(3),t.JRh(N.getSplitTitle(null==g?null:g.title)[1].trim())}}function P(I,dt){if(1&I&&t.EFF(0),2&I){const g=t.XpG().$implicit;t.SpI(" ",null==g?null:g.title," ")}}function Q(I,dt){if(1&I&&(t.j41(0,"div",10),t.EFF(1),t.k0s()),2&I){const g=t.XpG().$implicit,N=t.XpG(2);t.R7$(),t.Lme(" ",null==g?null:g.points," ",N.pointsName()," ")}}function rt(I,dt){if(1&I&&(t.j41(0,"div",15),t.nrm(1,"img",8),t.k0s()),2&I){const g=t.XpG().$implicit;t.R7$(),t.Y8G("src",g.icon,t.B4B)("alt",g.iconName)}}function It(I,dt){1&I&&t.nrm(0,"li",18),2&I&&t.Y8G("innerHTML",dt.$implicit.description,t.npT)}function wt(I,dt){if(1&I&&(t.j41(0,"div",12)(1,"div",14),t.DNE(2,rt,2,2,"div",15),t.nrm(3,"div",16),t.k0s(),t.j41(4,"ul",17),t.Z7z(5,It,1,1,"li",18,t.Vm6),t.k0s()()),2&I){const g=dt.$implicit,N=t.XpG(3);t.R7$(2),t.vxM(g.icon&&!N.isSilverseaExperience?2:-1),t.R7$(),t.AVh("pl_25",N.isSilverseaExperience),t.Y8G("innerHTML",g.title,t.npT),t.R7$(2),t.Dyx(g.bullets)}}function Dt(I,dt){if(1&I&&(t.j41(0,"div",13),t.EFF(1),t.k0s()),2&I){const g=t.XpG(3);t.R7$(),t.SpI(" ",g.extraFootNote()," ")}}function qt(I,dt){if(1&I&&(t.j41(0,"div",3)(1,"div",5),t.DNE(2,pn,4,3,"div",6),t.j41(3,"div",7),t.DNE(4,R,1,2,"img",8)(5,gt,1,2,"img",8)(6,i,1,2,"img",8),t.k0s(),t.j41(7,"div",9),t.DNE(8,A,5,2)(9,P,1,1),t.k0s(),t.DNE(10,Q,2,2,"div",10),t.k0s(),t.j41(11,"div",11),t.Z7z(12,wt,7,4,"div",12,t.Vm6),t.j41(14,"div",13),t.EFF(15),t.k0s(),t.DNE(16,Dt,2,1,"div",13),t.k0s()()),2&I){const g=dt.$implicit,N=t.XpG(2);t.Y8G("id",g.id),t.R7$(),t.Y8G("ngClass","loyalty-benefits-details-item__tier--"+N.primaryBrand()+"-"+N.selectedBrand()),t.R7$(),t.vxM(N.tierId()===g.id?2:-1),t.R7$(2),t.vxM(N.isSilverseaBrand&&"silversea"===N.primaryBrand()?4:N.isSilverseaBrand||"silversea"!==N.primaryBrand()?6:5),t.R7$(4),t.vxM(N.isSilverseaBrand&&"silversea"!==N.primaryBrand()?8:9),t.R7$(2),t.vxM(N.isSilverseaBrand?-1:10),t.R7$(2),t.Dyx(null==g||null==g.details?null:g.details.sections),t.R7$(3),t.SpI(" ",null==g||null==g.details?null:g.details.footnote," "),t.R7$(),t.vxM(N.extraFootNote()?16:-1)}}function ie(I,dt){if(1&I&&t.nrm(0,"app-loyalty-tab-section-note",4),2&I){const g=t.XpG(2);t.Y8G("multipleDescriptions",g.multiDescriptionNotes())("termsAndConditionsLink",g.termsAndConditionsLink)("termsAndConditionsText",g.termsAndConditionsLabel())}}function he(I,dt){if(1&I&&(t.j41(0,"div",1)(1,"div",2,0),t.Z7z(3,qt,17,8,"div",3,t.Vm6),t.DNE(5,ie,1,3,"app-loyalty-tab-section-note",4),t.k0s()()),2&I){const g=t.XpG();t.R7$(3),t.Dyx(g.tiers),t.R7$(2),t.vxM(g.isSilverseaBrand?5:-1)}}let ae=(()=>{class I{constructor(){this.data=(0,t.hFB)(),this.tierId=(0,t.hFB)(),this.fluidVar=(0,t.hFB)(),this.pointsName=(0,t.hFB)(),this.extraFootNote=(0,t.hFB)(),this.selectedBrand=(0,t.hFB)(),this.termsAndConditionsLabel=t.hFB.required(),this.multiDescriptionNotes=(0,t.hFB)(),this.loyaltyEnrollTermsLink=(0,t.hFB)(),this.loyaltySilverseaExperience
776=t.hFB.required(),this.loyaltySSCFeaturedBenefitsLinks=t.hFB.required(),this.primaryBrand=(0,t.hFB)(""),this.brandNames=Zt.rI,this.brand=s.qt,this.analyticInteraction=(0,t.WQX)(m.Ue),this.runtime=(0,t.WQX)(m.sq),this.host=(0,t.WQX)(t.aKT)}ngOnChanges(g){g.data?.currentValue!==g.data?.previousValue&&(this.trackAnalyticsPageView(),this.getTierSorted(),this.setTermsAndConditionsLink(),setTimeout(()=>{this.scrollToTier()},1e3)),this.isSilverseaBrand=this.selectedBrand()===this.brandNames.silversea}ngAfterViewInit(){this.isSilverseaExperience&&this.updateHrefByClass()}getSplitTitle(g){if(!g)return["",""];const N=g.split(" ");return[N.slice(0,2).join(" "),N.slice(2).join(" ")]}getTierSorted(){const g=this.data()?.content?.tiers;this.tiers=this.isSilverseaExperience?g:g?.slice().reverse()}get isSilverseaExperience(){return this.selectedBrand()===this.brandNames.silversea&&this.loyaltySilverseaExperience()}scrollToTier(){const g=window.location.hash.substring(1);g&&this.containerRef.nativeElement.querySelector(`#${g}`).scrollIntoView({behavior:"smooth",block:"start"})}updateHrefByClass(){const g=this.host.nativeElement;Object.keys(this.loyaltySSCFeaturedBenefitsLinks()).forEach(N=>{const B=g.getElementsByClassName(N);Array.from(B).forEach(st=>{st.setAttribute("href",this.loyaltySSCFeaturedBenefitsLinks()[N]),st.setAttribute("target","_blank"),st.style.color="inherit"})})}setTermsAndConditionsLink(){this.termsAndConditionsLink=this.runtime?.webConfig?.ga?.loyaltyEnrollTermsLink[this.selectedBrand()]??""}trackAnalyticsPageView(){this.data()&&this.analyticInteraction.trackPageView({channel:ce.j0.LOYALTY_PROGRAM_SITE_SECTION,appName:ce.eh.LOYALTY_PROGRAM,content:{fluidVariable:`${ce.Ec.LOYALTY_ANCHORS}:${this.fluidVar()}`}})}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["app-loyalty-benefits-details"]],viewQuery:function(N,B){if(1&N&&t.GBs(un,5),2&N){let st;t.mGM(st=t.lsd())&&(B.containerRef=st.first)}},inputs:{data:[1,"data"],tierId:[1,"tierId"],fluidVar:[1,"fluidVar"],pointsName:[1,"pointsName"],extraFootNote:[1,"extraFootNote"],selectedBrand:[1,"selectedBrand"],termsAndConditionsLabel:[1,"termsAndConditionsLabel"],multiDescriptionNotes:[1,"multiDescriptionNotes"],loyaltyEnrollTermsLink:[1,"loyaltyEnrollTermsLink"],loyaltySilverseaExperience:[1,"loyaltySilverseaExperience"],loyaltySSCFeaturedBenefitsLinks:[1,"loyaltySSCFeaturedBenefitsLinks"],primaryBrand:[1,"primaryBrand"]},standalone:!0,features:[t.OA$,t.aNF],decls:1,vars:1,consts:[["container",""],[1,"loyalty-benefits-details"],[1,"loyalty-benefits-details-list"],[1,"loyalty-benefits-details-item",3,"id"],[3,"multipleDescriptions","termsAndConditionsLink","termsAndConditionsText"],[1,"loyalty-benefits-details-item__tier",3,"ngClass"],[1,"loyalty-benefits-details-item__tier__current"],[1,"loyalty-benefits-details-item__tier__logo"],[3,"src","alt"],[1,"loyalty-benefits-details-item__tier__title"],[1,"loyalty-benefits-details-item__tier__points"],[1,"loyalty-benefits-details-item__benefits"],[1,"loyalty-benefits-details-item__benefits-tier"],[1,"loyalty-benefits-details-item__benefits-footnote"],[1,"loyalty-benefits-details-item__benefits-tier__header"],[1,"loyalty-benefits-details-item__benefits-tier__header__icon"],[1,"loyalty-benefits-details-item__benefits-tier__header__title",3,"innerHTML"],[1,"loyalty-benefits-details-item__benefits-tier__detail"],[1,"loyalty-benefits-details-item__benefits-tier__detail-item",3,"innerHTML"]],template:function(N,B){1&N&&t.DNE(0,he,6,1,"div",1),2&N&&t.vxM(B.data()?0:-1)},dependencies:[$.MD,$.YU,z.h,z.D9,dn.M],styles:["[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}.margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.loyalty-benefits-details[_ngcontent-%COMP%]{margin:0 auto;width:89.3333333333%;display:flex;flex-direction:column;gap:80px;color:#2c2c2c;padding-bottom:40px}@media screen and (min-width: 768px){.loyalty-benefits-details[_ngcontent-%COMP%]{width:77.734375%;max-width:984px}}.loyalty-benefits-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:32px;line-height:34px;letter-spacing:-1px;font-weight:800;margin:0;color:#000}.loyalty-benefits-details-list[_ngcontent-%COMP%]{position:relative;top:-3.125rem;margin:0;padding:0;display:grid;grid-template-columns:repeat(1,1fr);grid-auto-rows:auto;gap:40px}.loyalty-benefits-details-item[_ngcontent-%COMP%]{background:#fff;padding:64px 64px 30px;border-radius:8px;box-shadow:0 4px 24px color-mix(in srgb,#000000 12%,#ffffff);display:flex;flex-direction:row;gap:20px;scroll-margin-top:100px}.loyalty-benefits-details-item__tier[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:0 auto;min-width:250px}.loyalty-benefits-details-item__tier__current[_ngcontent-%COMP%]{text-align:center;margin-bottom:25px}.loyalty-benefits-details-item__tier__current[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:4px 8px;border-radius:4px;background-color:#0c1751;color:#fff;font-size:12px;font-weight:700;line-height:16px;letter-spacing:.15px}.loyalty-benefits-details-item__tier__logo[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:20px}.loyalty-benefits-details-item__tier__logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:140px;height:140px}.loyalty-benefits-details-item__tier__title[_ngcontent-%COMP%]{font-size:36px;font-weight:800;line-height:38px;letter-spacing:-.5px;text-align:center;margin-bottom:10px}.loyalty-benefits-details-item__tier__points[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:22px;letter-spacing:-.15px;text-align:center}.loyalty-benefits-details-item__tier--silversea-royal[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__logo[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-celebrity[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__logo[_ngcontent-%COMP%]{justify-content:flex-start}.loyalty-benefits-details-item__tier--silversea-royal[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__title[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-royal[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__points[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-celebrity[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__title[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-celebrity[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__points[_ngcontent-%COMP%]{text-align:left;margin-bottom:5px}.loyalty-benefits-details-item__tier--silversea-royal[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__points[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-celebrity[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__points[_ngcontent-%COMP%]{font-weight:400;font-size:16px;letter-spacing:1px}.loyalty-benefits-details-item__benefits[_ngcontent-%COMP%]{flex:auto;display:flex;flex-direction:column;gap:15px}.loyalty-benefits-details-item__benefits-tier__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:10px;margin-bottom:15px}.loyalty-benefits-details-item__benefits-tier__header__icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:24px;height:24px}.loyalty-benefits-details-item__benefits-tier__header__icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.loyalty-benefits-details-item__benefits-tier__header__title[_ngcontent-%COMP%]{flex:auto;font-size:20px;font-weight:700;line-height:24px;letter-spacing:-.15px;text-align:left;font-family:Proxima Nova,sans-serif}.loyalty-benefits-details-item__benefits-tier__detail[_ngcontent-%COMP%]{margin:0;padding:0 0 0 50px}.loyalty-benefits-details-item__benefits-tier__detail-item[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:20px;letter-spacing:.15px;text-align:left;color:#555f61;font-family:Proxima Nova,sans-serif}.loyalty-benefits-details-item__benefits-footnote[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:16px;letter-spacing:.15px;text-align:left;color:#555f61}.pl_25[_ngcontent-%COMP%]{padding-left:25px}@media screen and (max-width: 768px){.loyalty-benefits-details-list[_ngcontent-%COMP%]{gap:32px}.loyalty-benefits-details-item[_ngcontent-%COMP%]{padding:20px;flex-direction:column}.loyalty-benefits-details-item__tier[_ngcontent-%COMP%]{width:unset}.loyalty-benefits-details-item__tier__logo[_ngcontent-%COMP%]{justify-content:center}.loyalty-benefits-details-item__tier__title[_ngcontent-%COMP%]{text-align:center}.loyalty-benefits-details-item__tier__current[_ngcontent-%COMP%]{text-align:center;margin-left:0}.loyalty-benefits-details-item__tier--silversea-royal[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__logo[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-celebrity[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__logo[_ngcontent-%COMP%]{justify-content:center}.loyalty-benefits-details-item__tier--silversea-royal[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__title[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-royal[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__points[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-celebrity[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__title[_ngcontent-%COMP%], .loyalty-benefits-details-item__tier--silversea-celebrity[_ngcontent-%COMP%] .loyalty-benefits-details-item__tier__points[_ngcontent-%COMP%]{text-align:center}}"]})}}return I})();var Ht=n(61232),me=n(87623),gn=n(78822),kn=n(85259);let bn=(()=>{class I{constructor(g){this.translateService=g}keyToEnglish(g){try{const N=this.translateService.currentLang;let B;if("en"===N?B=this.translateService.instant(g):(this.translateService.use("en"),B=this.translateService.instant(g),this.translateService.use(N)),"string"==typeof B&&B.startsWith("<")&&B.endsWith(">")){const st=document.createElement("div");return st.innerHTML=B,st.textContent||""}return B}catch{return}}static{this.\u0275fac=function(N){return new(N||I)(t.KVO(z.c$))}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac})}}return I})();var Fn=n(99526),Bn=n(10324);function Un(I,dt){if(1&I&&(t.j41(0,"div",0),t.nrm(1,"app-hero-image",1)(2,"app-loyalty-benefits-details",2),t.k0s()),2&I){const g=t.XpG
776();t.R7$(),t.Y8G("headerBackGroundImage",g.benefitBackgroundImage)("headerText",g.loyaltyProgramsTitleHeader)("isLoyaltyProgramBenefitsPath",g.isLoyaltyProgramBenefitsPath)("currentLoyaltyProgramBrand",null==g.loyaltyPrograms?null:g.loyaltyPrograms.brand)("loyaltySilverseaExperience",g.loyaltySilverseaExperience),t.R7$(),t.Y8G("data",g.loyaltyBenefitsData)("pointsName",g.pointsLabel)("tierId",g.tierId)("fluidVar",g.fluidVar)("extraFootNote",g.extraFootNote)("selectedBrand",g.selectedBrand)("multiDescriptionNotes",g.multiDescriptionNotes)("termsAndConditionsLabel",null==g.loyaltyPrograms||null==g.loyaltyPrograms.loyaltyProgramsData||null==g.loyaltyPrograms.loyaltyProgramsData[g.selectedBrand]||null==g.loyaltyPrograms.loyaltyProgramsData[g.selectedBrand].termsAndConditions?null:g.loyaltyPrograms.loyaltyProgramsData[g.selectedBrand].termsAndConditions.title)("loyaltySilverseaExperience",g.loyaltySilverseaExperience)("loyaltySSCFeaturedBenefitsLinks",g.loyaltyFeaturedBenefitsLinks)("primaryBrand",g.brand)}}const Gn=[{path:"",loadComponent:()=>Promise.all([n.e(2076),n.e(9153)]).then(n.bind(n,9153)).then(I=>I.MainLayoutComponent),canActivate:[Rt.W_,Rt.Jy,Rt.vZ,Rt.$$,Rt.Wf],canActivateChild:[Rt.W_,Rt.VU],children:[{path:"",loadChildren:()=>Promise.all([n.e(2076),n.e(4103)]).then(n.bind(n,4103)).then(I=>I.routes),canActivate:[Rt.W_]},{path:"settings",loadChildren:()=>n.e(2464).then(n.bind(n,22464)).then(I=>I.routes),canActivate:[Rt.W_]},{path:"my-trips",loadChildren:()=>n.e(9635).then(n.bind(n,9635)).then(I=>I.routes),canActivate:[Rt.W_]},{path:"favorites",loadChildren:()=>n.e(7883).then(n.bind(n,27883)).then(I=>I.routes),canActivate:[Rt.W_,Rt.ns]},{path:"visa-signature",canActivate:[Rt.W_,Rt.PN],loadChildren:()=>Promise.all([n.e(6601),n.e(6624),n.e(2076),n.e(8050)]).then(n.bind(n,98050)).then(I=>I.CobrandHubModule)},{path:"royal-one-rewards",canActivate:[Rt.W_,Rt.R7,Rt.PN],loadComponent:()=>n.e(9256).then(n.bind(n,39256)).then(I=>I.ReactWrapperComponent)},{path:"profile",canActivate:[Rt.W_],loadChildren:()=>n.e(9991).then(n.bind(n,89991)).then(I=>I.routes)},{path:"loyalty-programs",canActivate:[Rt.W_,Rt.h7],loadChildren:()=>n.e(7617).then(n.bind(n,87617)).then(I=>I.routes)},{path:"loyalty-programs/:brand/benefits",component:(()=>{class I{constructor(g,N,B,st,ct,ht,At){this.store=g,this.loyaltyRepoService=N,this.routeService=B,this.analyticsTranslationService=st,this.utilsService=ct,this.runtime=ht,this.router=At,this.ngUnsubscribe=new jt.B,this.brand=s.qt,this.analyticsFluidVariable=ce.Ec,this.isLoyaltyProgramBenefitsPath=!1,this.cleanupIframeResize=()=>{},this.loyaltyProgramsState$=this.store.select(me.Du),this.userAccount$=this.store.pipe((0,D.Lt)(Yt=>Yt.account))}ngOnInit(){this.selectedBrand=this.routeService.snapshot.paramMap.get("brand"),this.loyaltySilverseaExperience=this.runtime?.webConfig?.ga?.loyaltySilverSeaExperience,this.loyaltyFeaturedBenefitsLinks=this.runtime?.webConfig?.ga?.loyaltyFeaturedBenefitsLinks,this.brand===Ht.Tn.SILVERSEA&&(this.cleanupIframeResize=(0,Bn.rY)()),this.getUserLoyaltyInformation(),this.setLoyaltyProgramsState()}setBenefitBackgroundImage(){if(!this.loyaltyPrograms)return;const g=this.setIsLoyaltyProgramBenefitsPath();if(g){const N=Object.values(Ht.Tn),B=g[1],st=B&&N.includes(B)?B:s.qt,ct=this.loyaltyPrograms?.brand===Ht.Tn.SILVERSEA?"":s.ai,ht=this.loyaltyPrograms?.loyaltyProgramsData?.[st]?.filterTab?.find(Yt=>Yt.id===gn.Eu.BENEFITS),At=ht?.content?.sections?.find(Yt=>"webBenefitsHeader"===Yt.title);if(!ht?.content||!At)return this.benefitBackgroundImage="",void(this.loyaltyProgramsTitleHeader="");this.benefitBackgroundImage=ct+(At.headerImage??""),this.loyaltyProgramsTitleHeader=ht.content.title??""}}setIsLoyaltyProgramBenefitsPath(){const g=Object.values(Ht.Tn).join("|"),N=new RegExp(`^/loyalty-programs/(${g})/benefits(#.*)?$`),B=this.router.url.match(N);return this.isLoyaltyProgramBenefitsPath=!!B,B}setLoyaltyProgramsState(){this.loyaltyProgramsState$.pipe((0,at.Q)(this.ngUnsubscribe)).subscribe(g=>{if(!g.loading){if(this.loyaltyPrograms=g,this.pointsLabel=this.loyaltyPrograms?.loyaltyProgramsData[this.selectedBrand]?.header?.member?.pointsName||"",this.loyaltyBenefitsData=this.loyaltyPrograms?.loyaltyProgramsData[this.selectedBrand].filterTab?.find(N=>N.id===gn.Eu.BENEFITS),this.multiDescriptionNotes=this.loyaltyBenefitsData?.content?.footnote?.bullets||[],this.selectedBrand===Ht.Tn.ROYAL.toString()&&this.loyaltyPrograms?.loyaltyProgramsData[this.selectedBrand].header){const N=this.loyaltyPrograms?.loyaltyProgramsData[this.selectedBrand].filterTab?.find(B=>B.id===gn.Eu.LOYALTY_MATCH);this.extraFootNote=N.content?.footnote?.description}
776this.setBenefitBackgroundImage()}})}getUserLoyaltyInformation(){this.userAccount$.pipe((0,at.Q)(this.ngUnsubscribe)).subscribe(g=>{this.userAccountState=g,this.setLoyaltyNumberAndBenefitsState()})}setLoyaltyNumberAndBenefitsState(){const{loyaltyNumber:g,vsEnrollmentSubmitted:N}=this.loyaltyRepoService.getLoyaltyDetails(this.selectedBrand,this.userAccountState);(g||N)&&this.getTierTitle(),this.setFluidVar()}getTierTitle(){switch(this.selectedBrand){case Zt.rI.royal:this.tierId=this.userAccountState?.data?.loyaltyInformation?.crownAndAnchorSocietyLoyaltyTier;break;case Zt.rI.celebrity:this.tierId=this.userAccountState?.data?.loyaltyInformation?.captainsClubLoyaltyTier;break;case Zt.rI.silversea:this.tierId=this.utilsService.formatNumberWithSuffix(this.userAccountState?.data?.loyaltyInformation?.venetianSocietyLoyaltyTier||this.userAccountState?.data?.loyaltyInformation?.venetianSocietyLoyaltyMatchTier)}}setFluidVar(){const g=window.location.hash.substring(1);this.fluidVar=this.tierId||g||this.analyticsTranslationService.keyToEnglish("COMMON.VIEW_ALL")}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete(),this.cleanupIframeResize()}static{this.\u0275fac=function(N){return new(N||I)(t.rXU(D.il),t.rXU(kn.J),t.rXU(u.nX),t.rXU(bn),t.rXU(ge.Q),t.rXU(L.s),t.rXU(u.Ix))}}static{this.\u0275cmp=t.VBU({type:I,selectors:[["app-loyalty-programs-benefits"]],standalone:!0,features:[t.Jv_([bn]),t.aNF],decls:1,vars:1,consts:[[1,"benefits-details"],[3,"headerBackGroundImage","headerText","isLoyaltyProgramBenefitsPath","currentLoyaltyProgramBrand","loyaltySilverseaExperience"],[3,"data","pointsName","tierId","fluidVar","extraFootNote","selectedBrand","multiDescriptionNotes","termsAndConditionsLabel","loyaltySilverseaExperience","loyaltySSCFeaturedBenefitsLinks","primaryBrand"]],template:function(N,B){1&N&&t.DNE(0,Un,3,16,"div",0),2&N&&t.vxM(B.loyaltyBenefitsData?0:-1)},dependencies:[$.MD,ae,Fn.XH],styles:[".margin-top-38-33[_ngcontent-%COMP%]{margin-top:38px}@media screen and (max-width: 768px){.margin-top-38-33[_ngcontent-%COMP%]{margin-top:33px}}.flex-direction-responsive[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media screen and (max-width: 768px){.flex-direction-responsive[_ngcontent-%COMP%]{flex-direction:column}}.cover[_ngcontent-%COMP%]{object-fit:cover}.center-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_ngcontent-%COMP%]:root{--celebrity-primary-blue: #2588CD;--celebrity-error-color: #a8151a;--celebrity-input-disabled-background-color: #EFF0F1;--celebrity-input-disabled-border-color: #8E8F90}"]})}}return I})(),canActivate:[Rt.W_,Rt.PN]},{path:"find-reservation",loadChildren:()=>n.e(1113).then(n.bind(n,31113)).then(I=>I.routes),canActivate:[Rt.W_]},{path:"community",loadChildren:()=>n.e(6819).then(n.bind(n,86819)).then(I=>I.routes),canActivate:[Rt.W_,Rt.ZR]}]},{path:"signin",canActivate:[Rt.k1],loadChildren:()=>n.e(1115).then(n.bind(n,71115)).then(I=>I.routes)},{path:"forgot-password",loadChildren:()=>n.e(8978).then(n.bind(n,58978)).then(I=>I.forgotPasswordRoutes)},{path:"**",redirectTo:"",pathMatch:"full"}],le=(0,D.EQ)({source:"Dashboard",events:{"load Data":(0,D.w5)(),"load Data Success":(0,D.xk)(),"load Data Error":(0,D.xk)()}}),On=(0,D.VG)({name:"dashboard",reducer:(0,D.vy)({data:null,loading:!1,error:null},(0,D.on)(le.loadData,I=>({...I,loading:!0})),(0,D.on)(le.loadDataSuccess,(I,{data:dt})=>({...I,data:dt,loading:!1})),(0,D.on)(le.loadDataError,(I,{error:dt})=>({...I,error:dt,loading:!1})))});var jn=n(35335);let Vn=(()=>{class I{getDashboardData(){return(0,O.of)("Welcome to your dashboard!").pipe((0,jn.c)(1e3))}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})(),Wn=(()=>{class I{constructor(g,N){this.actions$=g,this.dashboardService=N,this.loadDashboard$=(0,Gt.EH)(()=>this.actions$.pipe((0,Gt.gp)(le.loadData),(0,c.n)(()=>this.dashboardService.getDashboardData().pipe((0,r.T)(B=>le.loadDataSuccess({data:B})),(0,w.W)(B=>(0,O.of)(le.loadDataError({error:B})))))))}static{this.\u0275fac=function(N){return new(N||I)(t.KVO(Gt.En),t.KVO(Vn))}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac})}}return I})();var Me=n(20954),$n=n(41488),Pn=n(75736),An=n(85775);const Hn=[(0,D.vQ)(On),(0,D.vQ)(Me.oD),(0,D.vQ)(Me.tw),(0,D.vQ)({name:Pn.cI,reducer:Pn.ik}),(0,D.vQ)(An.k3),(0,Gt.SI)([Wn,Me.n_,Me.i5,$n.b,An.gn])],te="(royal|celebrity)",de=".{2,100}",hn=[{method:"GET",path:"/web/v2/ships",server:s.qH.API_PATH,service:"GA",operation:"getShipsV2",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"GET",path:"/mobile/v3/ships",pathRegex:`${te}/mobile/v3/ships`,server:s.qH.API_PATH,service:"GA",operation:"getShipsV3",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"GET",path:"/web/v3/ships",pathRegex:`/${te}/web/v3/ships/[a-zA-Z]{2}/sailDate/`,server:s.qH.API_PATH,service:"GA",operation:"getVoyagePreAuth",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"GET",path:"/web/v3/ships/voyages",pathRegex:`/${te}/web/v3/ships/voyages/.{2,200}/enriched`,server:s.qH.API_PATH,service:"CORE",operation:"getEnrichedVoyagesInfo",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/web/v3/agreement",pathRegex:"/web/v3/agreement",server:s.qH.API_PATH,service:"GA",operation:"getFolioDisclaimer",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"GET",path:"web/v3/guestAccounts",pathRegex:`/${te}/web/v3/guestAccounts/${de}`,server:s.qH.API_PATH,service:"GA",operation:"getEnrichedAccount",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"GET",path:"web/v2/guestAccounts/profiles/avatar",pathRegex:`/${te}/web/v2/guestAccounts/profiles/avatar`,server:s.qH.API_PATH,service:"GA",operation:"getAvatar",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"POST",path:"/v1/profileBookings/searchAddGetProfileBookings",server:s.qH.API_PATH,service:"GA",operation:"getProfileBookings",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/v1/profileBookings/enriched/",server:s.qH.API_PATH,service:"GA",operation:"bookingsForProfile",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/v2/generics/countries",server:s.qH.API_PATH,service:"GA",operation:"countryList",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"GET",path:"/core/casino-approved-countries.json",server:s.QY,service:"GA",operation:"casinoApprovedCountries",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"GET",path:"/v1/guestAccounts/loyalty/history/",server:s.qH.API_PATH,service:"GA",operation:"getPastBookingsBaseLoyalty",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"PUT",path:"/v1/profileBookings/primaryProfileBooking",server:s.qH.API_PATH,service:"GA",operation:"putPrimaryBookingProfile",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/v1/guestAccounts/edocs/campaignMetadata",server:s.qH.API_PATH,service:"GA",operation:"getBookingEd
776ocs",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/v1/guestAccounts/upgrades",server:s.qH.API_PATH,service:"GA",operation:"getRoyalUpStatuses",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/v2/cruiseBookings/summaries/",server:s.qH.API_PATH,service:"GA",operation:"findBookingBy",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"POST",path:"/v1/profileBookings/",pathRegex:`/v1/profileBookings/${de}/manualLink`,server:s.qH.API_PATH,service:"GA",operation:"manualLinkProfileBooking",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v1/profileBookings/",pathRegex:`/v1/profileBookings/${de}/links/search`,server:s.qH.API_PATH,service:"GA",operation:"manualLinkSearch",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v3/guestAccounts",server:s.qH.API_PATH,service:"GA",operation:"createAccount",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"PUT",path:"/v3/guestAccounts",server:s.qH.API_PATH,service:"GA",operation:"updateEnriched",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"POST",path:"/check-in/olci/version",server:s.W6,service:"OLCI",operation:"getOlciVersion",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v1/guestAccounts/luggageTags",server:s.qH.API_PATH,service:"GA",operation:"createLuggageTag",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"POST",path:"/web/v3/guestAccounts/validation",pathRegex:`${te}/web/v3/guestAccounts/validation`,server:s.qH.API_PATH,service:"GA",operation:"validateEmail",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"POST",path:"/v1/guestAccounts/forgotPassword",server:s.qH.API_PATH,service:"GA",operation:"sendForgotPasswordEmail",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v3/guestAccounts/password/token/validate",server:s.qH.API_PATH,service:"GA",operation:"validateForgotPasswordToken",env:s.Fh.TELEMETRY.APP_ENV,version:3},{method:"GET",path:"/v2/shopperProfile",pathRegex:`/v2/shopperProfile?${de}=`,server:s.qH.API_PATH,service:"GA",operation:"getShopperProfile",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"POST",path:"/v3/guestAccounts/password/forgot",server:s.qH.API_PATH,service:"GA",operation:"sendEmail",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"GET",path:"/v2/guestAccounts/securityQuestions",pathRegex:`/v2/guestAccounts/securityQuestions/${de}`,server:s.qH.API_PATH,service:"GA",operation:"fetchUserSecurityQuestions",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"GET",path:"/v2/guestAccounts/securityQuestions",server:s.qH.API_PATH,service:"GA",operation:"fetchSecurityQuestions",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"PUT",path:"/v1/guestAccounts/password",server:s.qH.API_PATH,service:"GA",operation:"updatePassword",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v2/guestAccounts/securityQuestions/validation",server:s.qH.API_PATH,service:"GA",operation:"checkAnswerForQuestion",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"POST",path:"/auth/json/realms",pathRegex:`/auth/json/realms/${de}/authenticate`,service:"AUTH",operation:"authenticate",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/auth/json/sessions?_action=logout",service:"AUTH",operation:"logout",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/web/v1/contentServices/templates/sailingAdvisoryBanner",server:s.qH.API_PATH,service:"AEM",operation:"getBannerInformationTemplate",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/web/v1/contentServices/templates/canceledCruisesDashboard",pathRegex:"[RCZ]{1}/web/v1/contentServices/templates/canceledCruisesDashboard",server:s.qH.API_PATH,service:"AEM",operation:"getCanceledVoyageTemplate",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v1/guestAccounts/bookingLockStatus",server:s.qH.API_PATH,service:"GA",operation:"bookingLockStatus",env:s.Fh.TELEMETRY.APP_ENV,version:2},{method:"POST",path:"/v1/folios",pathRegex:"/v1/folios$",server:s.qH.API_PATH,service:"GA",operation:"getFolio",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v1/folios/lookup",pathRegex:"/v1/folios/lookup$",server:s.qH.API_PATH,service:"GA",operation:"folioLookup",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/config.json",pathRegex:`/config/${te}/config.json`,server:s.QY,service:"S3_BUCKET",operation:"getConfig",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/shore-excursions-health-acknowledgement.html",pathRegex:`/health-acknowledgement/${te}/shore-excursions-health-acknowledgement.html`,server:s.QY,service:"S3_BUCKET",operation:"getPmcShorexAcknowledgement",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"GET",path:"/purchase-terms-and-conditions.html",pathRegex:`/purchase-terms-and-conditions/${te}/purchase-terms-and-conditions.html`,server:s.QY,service:"S3_BUCKET",operation:"getPmcTermsAndConditions",env:s.Fh.TELEMETRY.APP_ENV,version:1},{method:"POST",path:"/v1/core/launch-darkly/search",server:s.qH.API_PATH,service:"GA",operation:"getLaunchDarklyFlags",env:s.Fh.TELEMETRY.APP_ENV,version:1}],Mn={appKey:s.Fh.APIGEE_APP_KEY,appId:s.Fh.TELEMETRY.APP_ID.GUEST_ACCOUNT,appEnv:s.Fh.TELEMETRY.APP_ENV,appVers:"2021.01.28.1",batch:{batchSize:s.F
776h.TELEMETRY.BATCH.SIZE,isEnabled:s.Fh.TELEMETRY.BATCH.ENABLED},debug:{isEnabled:s.Fh.TELEMETRY.DEBUG.ENABLED,isVerbose:s.Fh.TELEMETRY.DEBUG.VERBOSE,isConsoleCollapsed:s.Fh.TELEMETRY.DEBUG.CONSOLE_COLLAPSED},trackingUrl:s.Fh.TELEMETRY.TRACKING_URL,endpoints:Array.isArray(hn)?hn:[],disableTelemetry:s.Fh.TELEMETRY.DISABLED,vdsId:"",MAX_CACHE_AGE:2e5,qmSessionId:"",splunkSessionId:""};var zn=n(1033),Tn=n(35060),Qn=n(18810),Jn=n(99172),In=n(88141);const Zn=["/guestAccounts","/graphql","/v1/","/v2/","/v3/"],Rn="access-token-reload-attempted",xn="/myaccount/signin";let qn=(()=>{class I{constructor(){this.session=(0,t.WQX)(m.x3),this.splunkService=(0,t.WQX)(m.PB),this.document=(0,t.WQX)($.qQ),this.injector=(0,t.WQX)(t.zZn)}static{this.timeoutActionTriggered=!1}static{this.reloadAttemptedFallback=!1}get unauthenticatedPathsService(){return this._unauthenticatedPathsService||(this._unauthenticatedPathsService=this.injector.get(m.YG)),this._unauthenticatedPathsService}getSessionStorage(){try{return this.document.defaultView?.sessionStorage??null}catch{return null}}get reloadAttempted(){const g=this.getSessionStorage();return g?"1"===g.getItem(Rn):I.reloadAttemptedFallback}set reloadAttempted(g){I.reloadAttemptedFallback=g;const N=this.getSessionStorage();N&&N.setItem(Rn,g?"1":"0")}intercept(g,N){const B=this.isAuthenticatedPath(g),st=this.session.getAccessToken(),ct=!!st&&this.session.isTokenValid(st);if(ct&&this.clearRecoveryState(),B&&!ct)return this.waitForToken(g).pipe((0,c.n)(()=>{const At=this.injectAccessToken(g);return N.handle(At)}));const ht=this.injectAccessToken(g);return N.handle(ht)}clearRecoveryState(){I.timeoutActionTriggered=!1,this.reloadAttempted=!1}waitForToken(g){const B=this.session.notifyAccessTokenCookieChanges().pipe((0,p.p)(ct=>!ct.deleted),(0,r.T)(()=>this.session.getAccessToken())).pipe((0,Jn.Z)(this.session.getAccessToken()),(0,p.p)(ct=>!!ct),(0,p.p)(ct=>this.session.isTokenValid(ct)),(0,E.s)(1),(0,In.M)(()=>{I.timeoutActionTriggered||this.clearRecoveryState()}),(0,r.T)(()=>{})),st=(0,d.O)(5e3).pipe((0,c.n)(()=>this.handleTokenWaitTimeout(g)));return(0,zn.O)(B,st)}handleTokenWaitTimeout(g){const N=this.session.getAccessToken();if(N&&this.session.isTokenValid(N))return this.clearRecoveryState(),(0,O.of)(void 0);if(I.timeoutActionTriggered)return Tn.t;if(I.timeoutActionTriggered=!0,!this.reloadAttempted){this.reloadAttempted=!0;const ht=this.splunkService.initializeContext("error",{endpointUrl:g.url,message:"Access token not available after 5000ms, reloading page",action:"reload",currentUrl:this.document.location.href});return this.splunkService.errorByLookUp("CP-0095_CORE_SERVICES_UNAUTHORIZE_ERROR",{context:ht}),this.document.location.reload(),Tn.t}const st=this.splunkService.initializeContext("error",{endpointUrl:g.url,message:"Access token still unavailable after reload, redirecting to sign-in",action:"redirect-to-signin",currentUrl:this.document.location.href,redirectUrl:xn});return this.splunkService.errorByLookUp("CP-0095_CORE_SERVICES_UNAUTHORIZE_ERROR",{context:st}),this.document.location.href=xn,(0,Qn.$)(()=>new Error("Access token unavailable after reload"))}isAuthenticatedPath(g){const N=this.unauthenticatedPathsService.unauthenticatedPaths(),B=new URL(g.url,"http://dummy").pathname;return!N.some(ct=>B.endsWith(ct))&&Zn.some(ct=>g.url.includes(ct))}injectAccessToken(g){try{const N=this.session.getAccessToken(),B=this.session.getVdsIdFromAccessToken(),st=this.session.isTokenValid(N);let ct=g.clone();if(st){const ht=g.url.match(/graphql/);ct=g.clone({headers:g.headers.set(ht?"Authorization":"Access-Token",ht?`Bearer ${N}`:N)})}return B&&this.addVdsId(g)&&(ct=ct.clone({headers:ct.headers.set("vds-id",B)}),ct=ct.clone({headers:ct.headers.set("Account-Id",B)})),ct}catch{return g.clone()}}addVdsId(g){let B=!0;return[/somePattern/].forEach(st=>{st.test(g.url)&&(B=!1)}),B}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac})}}return I})();const to=/node_modules|zone\.js|rxjs|@angular|TelemetryHttpClient|HttpLoggingInterceptor/;let eo=(()=>{class I{constructor(){this.enabled=!0===s.Fh.HTTP_LOGGING_ENABLED}intercept(g,N){if(!this.enabled)return N.handle(g);const B=performance.now(),st=function no(){const I=(new Error).stack;if(!I)return"unknown";const dt=I.split("\n").slice(1).map(N=>N.trim());return dt.find(N=>!to.test(N))??dt[0]??"unknown"}();return N.handle(g).pipe((0,In.M)({next:ct=>{ct instanceof kt.cS&&Dn(g,ct.status,performance.now()-B,st)},error:ct=>{Dn(g,"number"==typeof ct?.status?ct.status:0,performance.now()-B,st)}}))}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac})}}return I})();function Dn(I,dt,g,N){const B=I.url.split("?")[0];console.info(`[HTTP] ${I.method} ${B} ${dt} ${Math.round(g)}ms`,`\n \u21b3 ${N}`)}var oo=n(69179);let io=(()=>{class I{constructor(g){this.session=g}updateVdsId(){const g=this.session.getVdsIdFromAccessToken();if(!g)return Promise.resolve();try{Mn.vdsId=g;const N=window;if(N?.rcclTelemetry&&"function"==typeof N.rcclTelemetry.setUserId)try{N.rcclTelemetry.setUserId(g)}catch(B){console.warn("TelemetryUpdaterService: rcclTelemetry.setUserId failed",B)}if(N?.Telemetry&&"function"==typeof N.Telemetry.setUserId)try{N.Telemetry.setUserId(g)}catch(B){console.warn("TelemetryUpdaterService: Telemetry.setUserId failed",B)}}catch(N){console.warn("TelemetryUpdaterService.updateVdsId failed",N)}return Promise.resolve()}static{this.\u0275fac=function(N){return new(N||I)(t.KVO(oo.Q))}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})();var ao=n(728),Ln=n(62386),ro=n(15018),Nn=n(93207);let so=(()=>{class I{constructor(){this.CACHE_KEY_VERSION="HTTP_CACHE_VERSION",this.CACHE_URL=`${s.QY}/config/cache.json`,this.ENDPOINT_URL=`${s.QY}/config/min/endpoints.min.json`,this.httpClient=(0,t.WQX)(kt.Qq),this.context=(0,t.WQX)(b.ow),this.localStorageService=(0,t.WQX)(m.sj)}setVersion(g){b.iT.set(localStorage,this.CACHE_KEY_VERSION,g)}getCacheVersion(){var g=this;return(0,o.A)(function*(){try{const N=b.iT.get(localStorage,g.CACHE_KEY_VERSION),B=yield(0,Nn.s)(g.httpClient.get(`${g.CACHE_URL}?t=${Date.now()}`));(!N||N!==B?.version)&&(g.localStorageService.clear(),g.localStorageService.clearItemsWithPrefix("HTTP_CACHE"),g.setVersion(B?.version))}
776catch(N){console.group("cache Configuration Failed ",N),console.groupEnd()}})()}loadRemoteConfig(){var g=this;return(0,o.A)(function*(){try{yield g.getCacheVersion();const N=yield(0,Nn.s)(g.httpClient.get(g.ENDPOINT_URL,(0,b.nT)({key:`HTTP_CACHE_ENDPOINTS_${(0,m.dF)()}`,cache:!0})));N?.endpoints.forEach(B=>{B.env=g.context.config.appEnv}),g.context.updateEndpoints(N)}catch(N){console.group("Remote Configuration Failed ",N),console.groupEnd()}})()}static{this.\u0275fac=function(N){return new(N||I)}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})();const po=[(0,u.lh)(Gn,(0,u.qQ)(),(0,u.oH)({scrollPositionRestoration:"top",anchorScrolling:"enabled"})),...ln,...Hn,(0,ao.vF)(),{provide:t.zcH,useClass:m.uo},{provide:u.b,useExisting:tn.l},(0,t.oKB)(b.uE.forRoot(Mn),z.h.forRoot({loader:{provide:z.Wr,useFactory:function co(I,dt){return new m.s_(I,dt)},deps:[kt.Qq,S.P]}})),(0,kt.$R)((0,kt.ZZ)(),(0,kt.Sx)()),{provide:kt.a7,useClass:qn,multi:!0},{provide:kt.a7,useClass:eo,multi:!0},{provide:t.hnV,useFactory:I=>(0,o.A)(function*(){return yield I.loadRemoteConfig()}),deps:[so],multi:!0},{provide:t.hnV,useFactory:I=>()=>I.updateVdsId(),deps:[io],multi:!0},(0,Ln.B)({player:()=>n.e(6601).then(n.t.bind(n,98982,23))}),(0,Ln.ak)(),(0,a.d0)({maxAge:25,logOnly:!(0,t.naY)(),trace:!1,traceLimit:75}),ro.Li];var go=n(89014),ho=n(28664);(0,n(85624).Yf)(),document.documentElement.setAttribute("mode",s.qt),(0,e.B8)(qe,{providers:[...po,(0,a.d0)({maxAge:25,logOnly:!(0,t.naY)()})]}).catch(I=>console.error(I)),(0,y.u)(window),(0,C.u)(window),(0,v.u)(window),(0,go.u)(window),(0,l.u)(window),(0,ho.u)(window)},49194:(J,U,n)=>{var t={"./arrow-icon_24.entry.js":[71913,6552,982,2076,1913],"./check-icon.entry.js":[84983,4983],"./clear-button_3.entry.js":[19759,6552,9759],"./rcg-action-area.entry.js":[65116,5116],"./rcg-carousel.entry.js":[77944,7944],"./rcg-date-picker.entry.js":[57553,2076,7553],"./rcg-dropdown.entry.js":[42999,2076,2999],"./rcg-error-notification.entry.js":[60048,6552,2076,48],"./rcg-icon-button.entry.js":[52208,2208],"./rcg-info-container.entry.js":[25724,2076,5724],"./rcg-input-checkbox.entry.js":[74812,4812],"./rcg-input-credit-card.entry.js":[85935,6552,2076,5935],"./rcg-input-phone.entry.js":[8981,2076,8981],"./rcg-input-text-v2.entry.js":[7959,7959],"./rcg-input-text.entry.js":[60578,578],"./rcg-large-button_2.entry.js":[90857,2076,857],"./rcg-loader.entry.js":[8101,982,8101],"./rcg-pill-button.entry.js":[38566,2076,8566],"./rcg-product-card-content.entry.js":[49102,9102],"./rcg-product-card.entry.js":[8814,2076,8814],"./rcg-promo-tag.entry.js":[46294,2076,6294],"./rcg-radio-group.entry.js":[73605,3605],"./rcg-read-more.entry.js":[75081,6552,7462],"./rcg-selector.entry.js":[42799,6552,2076,2799],"./rcg-slide_2.entry.js":[39600,6552,9600],"./rcg-slider.entry.js":[86703,6703],"./rcg-social-media.entry.js":[55420,5420],"./rcg-toggle-switch.entry.js":[96115,6115]};function e(a){if(!n.o(t,a))return Promise.resolve().then(()=>{var v=new Error("Cannot find module '"+a+"'");throw v.code="MODULE_NOT_FOUND",v});
776var C=t[a],y=C[0];return Promise.all(C.slice(1).map(n.e)).then(()=>n(y))}e.keys=()=>Object.keys(t),e.id=49194,J.exports=e},73252:(J,U,n)=>{var t={"./check-icon.entry.js":[91867,1867],"./clear-button_23.entry.js":[26171,2015,1858,2155,6171],"./input-error-v2.entry.js":[76775,6775],"./rcg-action-area.entry.js":[70192,192],"./rcg-carousel.entry.js":[62828,2828],"./rcg-date-picker-v2.entry.js":[23122,2155,2076,3122],"./rcg-date-picker.entry.js":[17013,2155,2076,7013],"./rcg-dropdown-v2.entry.js":[45148,2015,2076,5148],"./rcg-dropdown.entry.js":[68283,2076,8283],"./rcg-error-notification.entry.js":[7572,2015,2076,7572],"./rcg-icon-button.entry.js":[6204,6204],"./rcg-info-container.entry.js":[73864,2076,3864],"./rcg-input-checkbox-v2.entry.js":[33233,3233],"./rcg-input-checkbox.entry.js":[6768,6768],"./rcg-input-credit-card.entry.js":[82467,2015,2076,2467],"./rcg-input-password-v2.entry.js":[62881,2015,2076,2881],"./rcg-input-phone-v2.entry.js":[46,2015,2076,46],"./rcg-input-phone.entry.js":[95513,2076,5513],"./rcg-input-text-v2.entry.js":[97275,7275],"./rcg-input-text-v3.entry.js":[35248,2076,5248],"./rcg-input-text.entry.js":[57502,2076,7502],"./rcg-item-selector.entry.js":[66371,2076,6371],"./rcg-large-button_2.entry.js":[99757,2076,9757],"./rcg-loader.entry.js":[95657,1858,5657],"./rcg-modal-v2.entry.js":[97618,2015,2076,7618],"./rcg-modal.entry.js":[6101,2015,2076,6101],"./rcg-notification-message.entry.js":[49571,2015,2076,9571],"./rcg-notification-shimmer.entry.js":[43079,3079],"./rcg-password-strength.entry.js":[50625,2015,625],"./rcg-pill-button.entry.js":[19442,2076,9442],"./rcg-primary-button-v2.entry.js":[53132,3132],"./rcg-primary-button.entry.js":[80939,2076,939],"./rcg-product-card-content.entry.js":[65626,5626],"./rcg-product-card.entry.js":[94066,2076,4066],"./rcg-promo-tag.entry.js":[25858,2076,5858],"./rcg-radio-group-v2.entry.js":[90326,2076,326],"./rcg-radio-group.entry.js":[90081,81],"./rcg-radio-option-v2.entry.js":[14142,2076,4142],"./rcg-read-more.entry.js":[5490,2015,5490],"./rcg-selector.entry.js":[27243,2015,2076,7243],"./rcg-skeleton-loader.entry.js":[56553,6553],"./rcg-slide_2.entry.js":[84796,2015,4796],"./rcg-slider.entry.js":[91787,1787],"./rcg-social-media.entry.js":[64096,4096],"./rcg-spinner-loader.entry.js":[24757,1858,4757],"./rcg-tab-nav.entry.js":[90219,219],"./rcg-toggle-switch.entry.js":[19719,9719]};function e(a){if(!n.o(t,a))return Promise.resolve().then(()=>{var v=new Error("Cannot find module '"+a+"'");throw v.code="MODULE_NOT_FOUND",v});
776var C=t[a],y=C[0];return Promise.all(C.slice(1).map(n.e)).then(()=>n(y))}e.keys=()=>Object.keys(t),e.id=73252,J.exports=e},3055:(J,U,n)=>{var t={"./check-icon.entry.js":[44824,4824],"./clear-button_2.entry.js":[51223,2759,1223],"./input-error-v2.entry.js":[42040,2040],"./input-error.entry.js":[27471,7471],"./rcg-action-area.entry.js":[82857,2857],"./rcg-carousel.entry.js":[2807,2807],"./rcg-date-picker-v2.entry.js":[86161,6661,6161],"./rcg-date-picker.entry.js":[19344,6661,9344],"./rcg-disclaimer-banner.entry.js":[68081,8081],"./rcg-dropdown-v2.entry.js":[76277,2759,6277],"./rcg-dropdown.entry.js":[26204,175],"./rcg-error-notification.entry.js":[36727,2759,2076,6727],"./rcg-icon-button.entry.js":[30389,389],"./rcg-info-container.entry.js":[17339,7339],"./rcg-input-checkbox-v2.entry.js":[53408,3408],"./rcg-input-checkbox.entry.js":[44247,4247],"./rcg-input-credit-card.entry.js":[76334,2759,2076,6334],"./rcg-input-password-v2.entry.js":[73896,2759,2076,3896],"./rcg-input-phone-v2.entry.js":[51953,2759,1953],"./rcg-input-phone.entry.js":[8176,8176],"./rcg-input-text-v2.entry.js":[86846,6846],"./rcg-input-text-v3.entry.js":[75817,5817],"./rcg-input-text.entry.js":[82089,2089],"./rcg-item-selector.entry.js":[19522,9522],"./rcg-large-button_2.entry.js":[1722,2076,1722],"./rcg-loader.entry.js":[778,1071,778],"./rcg-message-center-header_8.entry.js":[99569,2579,9569],"./rcg-message-center-state-container.entry.js":[11564,1564],"./rcg-message-hub.entry.js":[61836,2579,1836],"./rcg-modal-v2.entry.js":[41849,2759,2076,1849],"./rcg-modal.entry.js":[73688,2759,2076,3688],"./rcg-notification-message.entry.js":[116,2759,2076,116],"./rcg-password-strength.entry.js":[27044,2759,7044],"./rcg-pill-button.entry.js":[37775,2076,7775],"./rcg-primary-button-v2.entry.js":[96717,6717],"./rcg-primary-button.entry.js":[52628,2628],"./rcg-product-card-content.entry.js":[80473,473],"./rcg-product-card.entry.js":[49465,9465],"./rcg-promo-tag.entry.js":[11947,1947],"./rcg-radio-group-v2.entry.js":[88749,8749],"./rcg-radio-group.entry.js":[61812,1812],"./rcg-radio-option-v2.entry.js":[31835,1835],"./rcg-read-more.entry.js":[29707,2759,9707],"./rcg-selector.entry.js":[156,2759,156],"./rcg-skeleton-loader.entry.js":[91328,1328],"./rcg-slide_2.entry.js":[61153,2759,1153],"./rcg-slider.entry.js":[36476,6476],"./rcg-social-media.entry.js":[41703,1703],"./rcg-spinner-loader.entry.js":[41250,1071,1250],"./rcg-toggle-switch.entry.js":[63970,3970]};function e(a){if(!n.o(t,a))return Promise.resolve().then(()=>{var v=new Error("Cannot find module '"+a+"'");throw v.code="MODULE_NOT_FOUND",v});
776var C=t[a],y=C[0];return Promise.all(C.slice(1).map(n.e)).then(()=>n(y))}e.keys=()=>Object.keys(t),e.id=3055,J.exports=e},90636:(J,U,n)=>{var t={"./check-icon.entry.js":[50737,737],"./clear-button_22.entry.js":[90818,919,4447,2076,818],"./rcg-action-area.entry.js":[28382,8382],"./rcg-carousel.entry.js":[39758,9758],"./rcg-date-picker.entry.js":[49431,4447,9431],"./rcg-dropdown.entry.js":[31345,1345],"./rcg-error-notification.entry.js":[43206,919,2076,3206],"./rcg-favorites-card.entry.js":[89842,9842],"./rcg-icon-button.entry.js":[18954,8954],"./rcg-info-container.entry.js":[15714,5714],"./rcg-input-phone.entry.js":[53499,3499],"./rcg-input-text-v3.entry.js":[18090,8090],"./rcg-item-selector.entry.js":[985,985],"./rcg-large-button_2.entry.js":[20075,2076,75],"./rcg-loader.entry.js":[9419,646,9419],"./rcg-modal.entry.js":[57983,919,2076,7983],"./rcg-notification-shimmer.entry.js":[97305,7305],"./rcg-pill-button.entry.js":[84460,2076,4460],"./rcg-primary-button.entry.js":[54945,4945],"./rcg-product-card-content.entry.js":[70648,648],"./rcg-product-card.entry.js":[65328,5328],"./rcg-promo-tag.entry.js":[1608,1608],"./rcg-read-more.entry.js":[44284,919,4284],"./rcg-selector.entry.js":[79149,919,9149],"./rcg-skeleton-loader.entry.js":[23031,3031],"./rcg-slide_2.entry.js":[28982,919,8982],"./rcg-slider.entry.js":[89581,9581],"./rcg-social-media.entry.js":[80966,966],"./rcg-spinner-loader.entry.js":[4351,646,4351],"./rcg-tab-nav.entry.js":[35501,5501],"./rcg-toggle-switch.entry.js":[30949,949]};function e(a){if(!n.o(t,a))return Promise.resolve().then(()=>{var v=new Error("Cannot find module '"+a+"'");throw v.code="MODULE_NOT_FOUND",v});
776var C=t[a],y=C[0];return Promise.all(C.slice(1).map(n.e)).then(()=>n(y))}e.keys=()=>Object.keys(t),e.id=90636,J.exports=e},3450:(J,U,n)=>{var t={"./rcg-dial_4.entry.js":[59789,9789]};function e(a){if(!n.o(t,a))return Promise.resolve().then(()=>{var v=new Error("Cannot find module '"+a+"'");throw v.code="MODULE_NOT_FOUND",v});var C=t[a],y=C[0];return n.e(C[1]).then(()=>n(y))}e.keys=()=>Object.keys(t),e.id=3450,J.exports=e},69444:(J,U,n)=>{var t={"./check-icon_6.entry.js":[18432,7152,8432],"./clear-button_3.entry.js":[61393,9511,1393],"./failure-modal_2.entry.js":[74388,2076,4388],"./rccl-loyalty-enrollment.entry.js":[22989,2076,2989],"./rcg-action-area.entry.js":[53346,3346],"./rcg-carousel.entry.js":[67442,7442],"./rcg-date-picker.entry.js":[70123,2076,123],"./rcg-dropdown.entry.js":[94437,2076,4437],"./rcg-error-notification.entry.js":[13178,9511,2076,3178],"./rcg-icon-button.entry.js":[93334,3334],"./rcg-info-container.entry.js":[87886,2076,7886],"./rcg-input-checkbox.entry.js":[54198,4198],"./rcg-input-credit-card.entry.js":[97065,9511,2076,7065],"./rcg-input-phone.entry.js":[6063,2076,6063],"./rcg-input-text.entry.js":[71080,1080],"./rcg-large-button_2.entry.js":[28431,2076,8431],"./rcg-loader.entry.js":[19535,7152,9535],"./rcg-modal.entry.js":[20891,9511,2076,891],"./rcg-pill-button.entry.js":[32760,2076,2760],"./rcg-product-card-content.entry.js":[40244,244],"./rcg-product-card.entry.js":[50628,2076,628],"./rcg-promo-tag.entry.js":[53124,2076,3124],"./rcg-radio-group.entry.js":[65143,5143],"./rcg-read-more.entry.js":[58632,9511,8632],"./rcg-selector.entry.js":[25865,9511,2076,5865],"./rcg-slide_2.entry.js":[46338,9511,6338],"./rcg-slider.entry.js":[94953,4953],"./rcg-social-media.entry.js":[79514,9514],"./rcg-toggle-switch.entry.js":[98601,8601]};function e(a){if(!n.o(t,a))return Promise.resolve().then(()=>{var v=new Error("Cannot find module '"+a+"'");throw v.code="MODULE_NOT_FOUND",v});
776var C=t[a],y=C[0];return Promise.all(C.slice(1).map(n.e)).then(()=>n(y))}e.keys=()=>Object.keys(t),e.id=69444,J.exports=e},35358:(J,U,n)=>{var t={"./af":11544,"./af.js":11544,"./ar":33108,"./ar-dz":52155,"./ar-dz.js":52155,"./ar-kw":53583,"./ar-kw.js":53583,"./ar-ly":41638,"./ar-ly.js":41638,"./ar-ma":87823,"./ar-ma.js":87823,"./ar-ps":7712,"./ar-ps.js":7712,"./ar-sa":78261,"./ar-sa.js":78261,"./ar-tn":56703,"./ar-tn.js":56703,"./ar.js":33108,"./az":46508,"./az.js":46508,"./be":16766,"./be.js":16766,"./bg":28564,"./bg.js":28564,"./bm":97462,"./bm.js":97462,"./bn":17107,"./bn-bd":43438,"./bn-bd.js":43438,"./bn.js":17107,"./bo":9004,"./bo.js":9004,"./br":50927,"./br.js":50927,"./bs":87768,"./bs.js":87768,"./ca":56291,"./ca.js":56291,"./cs":85301,"./cs.js":85301,"./cv":66666,"./cv.js":66666,"./cy":55163,"./cy.js":55163,"./da":87360,"./da.js":87360,"./de":45932,"./de-at":43248,"./de-at.js":43248,"./de-ch":83222,"./de-ch.js":83222,"./de.js":45932,"./dv":6405,"./dv.js":6405,"./el":60718,"./el.js":60718,"./en-au":36319,"./en-au.js":36319,"./en-ca":80597,"./en-ca.js":80597,"./en-gb":51800,"./en-gb.js":51800,"./en-ie":807,"./en-ie.js":807,"./en-il":95960,"./en-il.js":95960,"./en-in":84418,"./en-in.js":84418,"./en-nz":46865,"./en-nz.js":46865,"./en-sg":32647,"./en-sg.js":32647,"./eo":61931,"./eo.js":61931,"./es":46679,"./es-do":41805,"./es-do.js":41805,"./es-mx":83445,"./es-mx.js":83445,"./es-us":81516,"./es-us.js":81516,"./es.js":46679,"./et":88150,"./et.js":88150,"./eu":80757,"./eu.js":80757,"./fa":65742,"./fa.js":65742,"./fi":33958,"./fi.js":33958,"./fil":46720,"./fil.js":46720,"./fo":98352,"./fo.js":98352,"./fr":4059,"./fr-ca":42096,"./fr-ca.js":42096,"./fr-ch":95759,"./fr-ch.js":95759,"./fr.js":4059,"./fy":15958,"./fy.js":15958,"./ga":94143,"./ga.js":94143,"./gd":67028,"./gd.js":67028,"./gl":80428,"./gl.js":80428,"./gom-deva":76861,"./gom-deva.js":76861,"./gom-latn":57718,"./gom-latn.js":57718,"./gu":26827,"./gu.js":26827,"./he":21936,"./he.js":21936,"./hi":31332,"./hi.js":31332,"./hr":91957,"./hr.js":91957,"./hu":48928,"./hu.js":48928,"./hy-am":56215,"./hy-am.js":56215,"./id":586,"./id.js":586,"./is":90211,"./is.js":90211,"./it":70170,"./it-ch":22340,"./it-ch.js":22340,"./it.js":70170,"./ja":39770,"./ja.js":39770,"./jv":73875,"./jv.js":73875,"./ka":79499,"./ka.js":79499,"./kk":93573,"./kk.js":93573,"./km":68807,"./km.js":68807,"./kn":65082,"./kn.js":65082,"./ko":20137,"./ko.js":20137,"./ku":70111,"./ku-kmr":63744,"./ku-kmr.js":63744,"./ku.js":70111,"./ky":99187,"./ky.js":99187,"./lb":35969,"./lb.js":35969,"./lo":33526,"./lo.js":33526,"./lt":90411,"./lt.js":90411,"./lv":32621,"./lv.js":32621,"./me":85869,"./me.js":85869,"./mi":35881,"./mi.js":35881,"./mk":92391,"./mk.js":92391,"./ml":21126,"./ml.js":21126,"./mn":44892,"./mn.js":44892,"./mr":59080,"./mr.js":59080,"./ms":70399,"./ms-my":25950,"./ms-my.js":25950,"./ms.js":70399,"./mt":79902,"./mt.js":79902,"./my":72985,"./my.js":72985,"./nb":67859,"./nb.js":67859,"./ne":13642,"./ne.js":13642,"./nl":65441,"./nl-be":99875,"./nl-be.js":99875,"./nl.js":65441,"./nn":81311,"./nn.js":81311,"./oc-lnc":72567,"./oc-lnc.js":72567,"./pa-in":56962,"./pa-in.js":56962,"./pl":61063,"./pl.js":61063,"./pt":78719,"./pt-br":97476,"./pt-br.js":97476,"./pt.js":78719,"./ro":51004,"./ro.js":51004,"./ru":51326,"./ru.js":51326,"./sd":72608,"./sd.js":72608,"./se":13911,"./se.js":13911,"./si":25147,"./si.js":25147,"./sk":23741,"./sk.js":23741,"./sl":93e3,"./sl.js":93e3,"./sq":60451,"./sq.js":60451,"./sr":55046,"./sr-cyrl":40905,"./sr-cyrl.js":40905,"./sr.js":55046,"./ss":85765,"./ss.js":85765,"./sv":99290,"./sv.js":99290,"./sw":53449,"./sw.js":53449,"./ta":72688,"./ta.js":72688,"./te":32060,"./te.js":32060,"./tet":93290,"./tet.js":93290,"./tg":8294,"./tg.js":8294,"./th":1231,"./th.js":1231,"./tk":3746,"./tk.js":3746,"./tl-ph":49040,"./tl-ph.js":49040,"./tlh":17187,"./tlh.js":17187,"./tr":60153,"./tr.js":60153,"./tzl":88521,"./tzl.js":88521,"./tzm":18010,"./tzm-latn":22234,"./tzm-latn.js":22234,"./tzm.js":18010,"./ug-cn":63349,"./ug-cn.js":63349,"./uk":68479,"./uk.js":68479,"./ur":43024,"./ur.js":43024,"./uz":19800,"./uz-latn":72376,"./uz-latn.js":72376,"./uz.js":19800,"./vi":89366,"./vi.js":89366,"./x-pseudo":69702,"./x-pseudo.js":69702,"./yo":72655,"./yo.js":72655,"./zh-cn":575,"./zh-cn.js":575,"./zh-hk":18351,"./zh-hk.js":18351,"./zh-mo":51626,"./zh-mo.js":51626,"./zh-tw":8887,"./zh-tw.js":8887};function e(C){var y=a(C);return n(y)}function a(C){if(!n.o(t,C)){var y=new Error("Cannot find module '"+C+"'");throw y.code="MODULE_NOT_FOUND",y}return t[C]}e.keys=function(){return Object.keys(t)},e.resolve=a,J.exports=e,e.id=35358}},J=>{J.O(0,[4121],()=>J(J.s=29105)),J.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.