1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DigiYatraInfoModal-CjNVCX1d.js","assets/index-dqSqdwqf.js","assets/index-KE3qkcM7.css","assets/Modal-LFIeP2RU.js","assets/index-AEDesM2K.js","assets/index-BaqZIR9i.js","assets/NoopTransition-Cw7pTn7K.js","assets/Transition-CSjsbdUF.js","assets/index-X4KCfggp.js","assets/TransitionGroupContext-hmoDmHEJ.js","assets/ImperativeTransition-Ya2amIiW.js","assets/DataKey-DLQkwkS3.js","assets/ThemeProvider-BZVkeKTo.js","assets/divWithClassName-H9Tq6PLF.js","assets/DigiYatraConfirmationModal-kMyFRPPh.js","assets/useId-DVak7B4E.js","assets/ButtonBase-CN8aoERr.js","assets/useTimeout-CW9KGXUf.js","assets/TransitionGroup-DC5AnV4L.js","assets/assertThisInitialized-PUtynf78.js","assets/useForkRef-DVLMA9Zx.js","assets/DigiYatraConfirmationModal-DggSkG7l.css","assets/Box-Db8qO-tG.js","assets/useTheme-BllJYOKK.js","assets/extendSxProp-DU_ilO1f.js","assets/IconButton-hlSwgQTC.js","assets/locate-flight-modal-CPer-lkF.js","assets/Modal-A_uTaKjp.js","assets/toConsumableArray-DHMPlY1A.js","assets/unsupportedIterableToArray-AuDun9xq.js","assets/useForkRef-CotU1yLW.js","assets/classCallCheck-7i8NRbhX.js","assets/backArrowLeft-BoM_Ymp5.js","assets/locate-flight-modal-aAETnaVf.css","assets/bootstrap-DBkz-poX.css"])))=>i.map(i=>d[i]); 2import{w as e,d as t,r as i,h as a,f as n,b4 as o,E as r,T as l,F as s,aR as d,y as p,af as g,u as h,N as x,aa as c,a1 as m,P as u,a as f,c as b,U as v,ak as D,C as w,ah as y,bC as C,j,bD as k,bE as E,L as A,_ as $,a9 as M}from"./index-dqSqdwqf.js";import{c as B}from"./cab_info-BQ0yS0cu.js";import{f as L}from"./util-Dmrx2bhN.js";import{R as T}from"./removeFlightConfirmation-C6Pkfd7C.js";const Y=new Set(["VNS","VTZ","PNQ","IXR","MAA","CJB","PAT","GOI","BBI","CCU","IDR","RPR","VGA","IXB","BOM","GAU","AMD","LKO","JAI","DEL","HYD","GOX","COK","BLR"]),N=i=>{if(!e("SHOW_DY_BANNER"))return!1;if(!i)return!1;if(!t("DigiYatraData"))return!1;const a=i.baseAirport,n=i.srcDestAirport;return Y.has(a)||Y.has(n)},I="/assets/Flight_moving_to_aerobridge-DvTT_hmd.gif",R=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("circle",{cx:12,cy:12,r:12,fill:"#04ADAA"}),i.createElement("path",{d:"M4 10.8398L5.96685 13.7686L8.22868 11.06",stroke:"#F3FCFB",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19.9318 13.8741L17.9657 10.9453L15.7031 13.6539",stroke:"#F3FCFB",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.9387 10.9717C18.5272 14.0825 16.3346 17.1319 13.3451 17.8376C11.2604 18.3309 9.17008 17.669 7.74805 16.2681",stroke:"#F3FCFB",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5.97156 13.7512C5.04495 10.3052 7.36183 6.92335 10.5856 6.16258C12.8128 5.63541 15.0429 6.42511 16.46 8.02639",stroke:"#F3FCFB",strokeLinecap:"round",strokeLinejoin:"round"})),S=[""],_=a.div` 3 position: relative; 4`,H=a.div` 5 width: 100%; 6 min-height: ${({customMinHeight:e,$slotBooking:t})=>e||(t?"120px":"400px")}; 7 padding: ${({customPadding:e})=>e||"0.4rem"}; 8 height: auto; 9 border-radius: 12px; 10 display: flex; 11 flex-direction: column; 12 justify-content: space-between; 13 position: relative; 14 z-index: 1; 15 background-image: 16 radial-gradient( 17 circle at -5%, 18 #0000 25px, 19 #fff 0, 20 #fff 50%, 21 #0000 85%, 22 #0000 100% 23 ), 24 radial-gradient( 25 circle at 105%, 26 #0000 25px, 27 #fff 0, 28 #fff 50%, 29 #0000 85%, 30 #0000 100% 31 ); 32 33 @media ${n.mobileM} { 34 min-height: ${({customMinHeight:e,$slotBooking:t})=>e||(t?"120px":"386px")}; 35 padding: ${({customPadding:e})=>e||"0.4rem"}; 36 } 37 38 @media ${n.mobileL} { 39 min-height: ${({customMinHeight:e,$slotBooking:t})=>e||(t?"130px":"386px")}; 40 padding: ${({customPadding:e})=>e||"0.4rem"}; 41 } 42 43 @media ${n.tablet} { 44 min-height: ${({$slotBooking:e})=>e?"140px":"230px"}; 45 padding: ${({$slotBooking:e})=>e?"0.6rem":"1rem"}; 46 background-image: 47 radial-gradient( 48 circle at -3%, 49 #0000 20px, 50 #fff 0, 51 #fff 50%, 52 #0000 75%, 53 #0000 100% 54 ), 55 radial-gradient( 56 circle at 103%, 57 #0000 20px, 58 #fff 0, 59 #fff 50%, 60 #0000 75%, 61 #0000 100% 62 ); 63 } 64 65 @media ${n.laptop} { 66 background-image: 67 radial-gradient( 68 circle at -3%, 69 #0000 18px, 70 #fff 0, 71 #fff 50%, 72 #0000 72%, 73 #0000 100% 74 ), 75 radial-gradient( 76 circle at 103%, 77 #0000 18px, 78 #fff 0, 79 #fff 50%, 80 #0000 72%, 81 #0000 100% 82 ); 83 min-height: ${({$slotBooking:e})=>e?"80px":"unset"}; 84 } 85`,z=a.div` 86 width: 100%; 87 min-height: 75%; 88 height: auto; 89 display: flex; 90 flex-direction: column; 91 position: relative; 92 padding-bottom: 5px; 93 94 @media ${n.tablet} { 95 flex-direction: row; 96 min-height: 60%; 97 } 98`,F=a.div` 99 display: none; 100 101 @media ${n.tablet} { 102 display: ${({$slotBooking:e})=>e?"none":"block"}; 103 opacity: 0.1; 104 border-bottom: 2px dashed #273135; 105 position: absolute; 106 width: 100%; 107 bottom: 0px; 108 } 109`,U=a.div` 110 width: 100%; 111 height: auto; 112 position: relative; 113 padding: 0px 10px; 114 display: flex; 115 flex-direction: column; 116 justify-content: space-around; 117 118 @media ${n.tablet} { 119 width: ${({$slotBooking:e})=>e?"100%":"55%"}; 120 height: 100%; 121 padding: 0px 10px; 122 } 123`,O=a.div` 124 display: flex; 125 gap: 8px; 126 width: 100%; 127 padding: 0 1px; 128 align-items: flex-start; 129 justify-content: space-between; 130 margin-bottom: 12px; 131 132 @media (max-width: 767px) { 133 justify-content: flex-start; // Change from space-between to flex-start 134 gap: 12px; // Increase gap for better spacing
135 align-items: center; // Align items properly 136 } 137 138 @media ${n.tablet} { 139 gap: 12px; 140 padding: 0 8px; 141 } 142 143 @media ${n.laptop} { 144 gap: 16px; 145 padding: 0 12px; 146 } 147 148 @media ${n.mobileM} { 149 gap: 6px; 150 padding: 0 4px; 151 margin-bottom: 8px; 152 } 153 154 @media ${n.mobileL} { 155 gap: 8px; 156 padding: 0 6px; 157 } 158`,G=a.div` 159 display: flex; 160 align-items: center; 161 flex-direction: column; 162 align-items: flex-start; 163 gap: 4px; 164 165 @media (max-width: 767px) { 166 flex-direction: row; // Change to row for inline layout 167 align-items: center; // Center align items 168 gap: 8px; // Adjust gap for row layout 169 } 170 171 @media (max-width: 320px) { 172 gap: 6px; 173 } 174`,P=a.div` 175 cursor: pointer; 176 padding: 8px; 177 display: flex; 178 align-items: center; 179 justify-content: center; 180 position: absolute; 181 top: 8px; 182 right: 8px; 183 z-index: 10; 184 margin-bottom: -30px; 185 186 @media (max-width: 767px) { 187 position: relative; 188 top: auto; 189 right: auto; 190 padding: 2px; 191 align-self: flex-end; 192 } 193 194 @media (max-width: 320px) { 195 padding: 1px; 196 } 197`,V=a.div` 198 display: flex; 199 align-items: center; 200`,q=a.img` 201 width: ${({$slotBooking:e})=>e?"20px !important":"20px"}; 202 height: ${({$slotBooking:e})=>e?"20px !important":"20px"}; 203 margin-right: 6px; 204 205 @media (max-width: 320px) { 206 width: ${({$slotBooking:e})=>e?"18px !important":"18px"}; 207 height: ${({$slotBooking:e})=>e?"18px !important":"18px"}; 208 } 209`,J=a.span` 210 font-style: normal; 211 font-size: 11px; 212 line-height: 14px; 213 color: #273135; 214 font-weight: 500; 215 216 @media (max-width: 320px) { 217 font-size: 10px; 218 } 219`,Z=a.div` 220 font-style: normal; 221 font-size: 11px; 222 line-height: 14px; 223 color: #030303ff; 224 opacity: 0.5; 225 font-weight: 400; 226 margin-right: 16px; 227 228 @media (max-width: 767px) { 229 margin-right: 0; // Remove right margin for inline layout 230 margin-bottom: 0; // Ensure no bottom margin 231 } 232 233 @media (max-width: 320px) { 234 font-size: 10px; 235 margin-left: 8px; 236 } 237`,X=a.div` 238 display: flex; 239 justify-content: space-between; 240 align-items: flex-start; 241 padding: 0 10px; 242 margin-top: ${({$slotBooking:e})=>e?"4px":"15px"}; 243 gap: 10px; 244 @media (max-width: 767px) { 245 height: auto; 246 padding: 0 5px; 247 margin-top: ${({$slotBooking:e})=>e?"8px":"10px"}; 248 gap: 6px; 249 } 250`,K=a.div` 251 display: flex; 252 flex-direction: column; 253 gap: 8px; 254 min-height: ${({$slotBooking:e})=>e?"unset":"80px"}; 255 256 @media (max-width: 767px) { 257 justify-content: flex-start; 258 gap: 6px; 259 } 260`,W=a.div` 261 font-style: normal; 262 font-size: ${({$slotBooking:e})=>e?"28px":"36px"}; 263 line-height: ${({$slotBooking:e})=>e?"32px":"42px"}; 264 color: #273135; 265 font-weight: 700; 266 267 @media (max-width: 767px) { 268 display: flex; 269 height: auto; 270 font-size: 32px; 271 line-height: 38px; 272 } 273 274 @media (max-width: 375px) { 275 font-size: 28px; 276 line-height: 34px; 277 } 278 279 @media (max-width: 320px) { 280 font-size: 26px; 281 line-height: 32px; 282 } 283`,Q=a.div` 284 font-style: normal; 285 font-size: 11px; 286 line-height: 14px; 287 letter-spacing: 0.02em; 288 color: #273135; 289 opacity: 0.6; 290 font-weight: 400; 291 min-height: 14px; 292 293 @media (max-width: 320px) { 294 font-size: 10px; 295 } 296`,ee=a.div` 297 font-style: normal; 298 font-size: 15px; 299 line-height: 20px; 300 letter-spacing: 0.02em; 301 color: #273135; 302 font-weight: 600; 303 304 @media (max-width: 320px) { 305 font-size: 14px; 306 } 307`,te=a.div` 308 display: flex; 309 flex-direction: column; 310 align-items: center; 311 width: max-content; 312 gap: 6px; 313 position: absolute; 314 top: 50%; 315 left: ${({$progress:e})=>`${null!=e?e:50}%`}; 316 transform: translate(-50%, -50%); 317 transition: left 0.6s ease-in-out; 318 z-index: 2; 319 320 .extra-bold { 321 font-size: 9px; 322 font-weight: 600; 323 color: #037b79; 324 text-align: center; 325 line-height: 1.2; 326 327 @media (max-width: 320px) { 328 font-size: 8px; 329 } 330 } 331 332 @media (max-width: 320px) { 333 gap: 4px; 334 } 335`,ie=r` 336 0% { box-shadow: 0 0 0 0 rgba(3, 123, 121, 0.45); } 337 70% { box-shadow: 0 0 0 9px rgba(3, 123, 121, 0); } 338 100% { box-shadow: 0 0 0 0 rgba(3, 123, 121, 0); } 339`,ae=a.div` 340 width: 32px; 341 height: 32px; 342 border-radius: 50%; 343 display: flex; 344 align-items: center; 345 justify-content: center; 346 background: ${({$color:e})=>e||"linear-gradient(135deg, #037b79 0%, #04302e 100%)"}; 347 transition: background 0.3s ease-in-out; 348 ${({$pulse:e})=>e&&o` 349 animation: ${ie} 1s ease-out 2; 350 `} 351 352 img { 353 width: 16px; 354 height: 16px; 355 filter: brightness(0) invert(1); 356 } 357 358 @media (max-width: 320px) { 359 width: 28px; 360 height: 28px; 361 362 img { 363 width: 14px; 364 height: 14px; 365 } 366 } 367`,ne=a.div` 368 text-align: center; 369 display: flex; 370 flex-direction: column; 371 justify-content: center; 372 flex: 1; 373 min-width: 64px; 374`,oe=a.div` 375 position: relative; 376 width: 100%; 377 height: 44px; 378 379 @media (max-width: 320px) { 380 height: 40px; 381 } 382`,re=a.div` 383 display: flex; 384 align-items: center; 385 justify-content: center; 386 width: 100%; 387 height: 56px; 388 margin-top: 4px; 389 overflow: hidden; 390 391 img { 392 width: 100%; 393 height: 100%; 394 object-fit: contain; 395 } 396 397 @media (max-width: 320px) { 398 height: 46px; 399 } 400`,le=a.div` 401 position: absolute; 402 top: 50%; 403 left: 0; 404 right: 0; 405 height: 3px; 406 border-radius: 2px;
407 background: #d7dbdd; 408 transform: translateY(-50%); 409`,se=a.div` 410 position: absolute; 411 top: 50%; 412 left: 0; 413 width: ${({$progress:e})=>`${null!=e?e:50}%`}; 414 height: 3px; 415 border-radius: 2px; 416 background: ${({$color:e})=>e||"linear-gradient(90deg, #04302e 0%, #037b79 60%, #00b5ad 100%)"}; 417 transform: translateY(-50%); 418 transition: width 0.6s ease-in-out, background 0.3s ease-in-out; 419`;a.div` 420 width: 40px; 421 height: 40px; 422`;const de=a.p` 423 font-family: Manrope; 424 font-weight: 500; 425 font-size: 10px; 426 line-height: 100%; 427 letter-spacing: 0%; 428 margin-top: 4px; 429 margin-bottom: 0; 430 431 @media (max-width: 320px) { 432 font-size: 9px; 433 } 434`,pe=a.div` 435 display: flex; 436 flex-direction: column; 437 gap: 8px; 438 439 align-items: flex-end; 440 margin-right: 10px; 441 min-height: ${({$slotBooking:e})=>e?"unset":"80px"}; 442 443 @media (max-width: 767px) { 444 justify-content: flex-start; 445 gap: 6px; 446 } 447`,ge=a.div` 448 opacity: 0.1; 449 border-right: 2px dashed #273135; 450 position: absolute; 451 height: 85%; // Adjust as needed 452 top: 7.5%; // Center vertically 453 left: 55%; // Position at the boundary between containers 454 455 @media (max-width: 767px) { 456 border-bottom: 2px dashed #273135; 457 border-right: none; 458 width: 100%; 459 position: relative; 460 height: 1px; 461 top: 0px; 462 margin-top: 12px; 463 left: auto; 464 } 465`,he=a.div` 466 display: flex; 467 flex-direction: column; 468 width: ${({$slotBooking:e})=>e?"34%":"38%"}; 469 height: 98%; 470 padding: ${({$slotBooking:e})=>e?"4px 10px":"20px 10px 10px 10px"}; 471 margin-left: 15px; 472 margin-top: ${({$slotBooking:e})=>e?"-4px":"-10px"}; 473 474 @media (max-width: 767px) { 475 width: 100%; 476 height: 100%; 477 flex-direction: row; 478 align-items: flex-start; 479 justify-content: space-between; 480 padding: ${({$slotBooking:e})=>e?"12px 5px 0":"20px 5px 0px 5px"}; 481 gap: 6px; 482 margin-left: 0px; 483 } 484 485 @media (max-width: 375px) { 486 padding: 18px 2px 0 2px; 487 gap: 4px; 488 margin-left: 0px; 489 } 490 491 @media (max-width: 320px) { 492 gap: 3px; 493 padding: 16px 1px 0 1px; 494 margin-left: 0px; 495 } 496`,xe=a.div` 497 display: flex; 498 justify-content: space-between; 499 align-items: center; 500 flex-direction: row-reverse; 501 margin-bottom: 6px; 502 503 @media (max-width: 767px) { 504 flex-direction: column; 505 justify-content: flex-start; 506 justify-content: space-between; 507 height: 100%; 508 align-items: center; 509 gap: 4px; 510 min-width: 0; 511 flex: 1; 512 padding: 0; 513 min-height: ${({$slotBooking:e})=>e?"42px":"60px"}; 514 } 515 516 @media (max-width: 375px) { 517 gap: 3px; 518 } 519`,ce=a.div` 520 font-style: normal; 521 font-size: 12px; 522 line-height: 12px; 523 letter-spacing: 0.1em; 524 text-transform: uppercase; 525 color: #273135; 526 opacity: 0.6; 527 white-space: nowrap !important; 528 529 @media (max-width: 767px) { 530 color: #273135; 531 font-size: 9px; 532 font-weight: 500; 533 line-height: 12px; 534 letter-spacing: 0.04em; 535 text-transform: uppercase; 536 opacity: 0.6; 537 white-space: nowrap !important; 538 } 539 540 @media (max-width: 320px) { 541 font-size: 8px; 542 line-height: 10px; 543 } 544`,me=a.div` 545 font-style: normal; 546 font-size: 12px; 547 line-height: 22px; 548 color: #273135; 549 550 @media (max-width: 767px) { 551 color: #273135; 552 text-align: center; 553 font-size: 12px; 554 font-weight: 700; 555 line-height: 16px; 556 } 557 558 @media (max-width: 320px) { 559 font-size: 11px; 560 line-height: 14px; 561 } 562`,ue=a.div` 563 font-size: 12px; 564 565 @media (max-width: 767px) { 566 font-size: 11px; 567 max-width: 70px; 568 text-align: center; 569 word-wrap: break-word; 570 overflow-wrap: break-word; 571 hyphens: auto; 572 line-height: 1.2; 573 font-weight: 700; 574 } 575 576 @media (max-width: 375px) { 577 font-size: 10px; 578 max-width: 60px; 579 } 580 581 @media (max-width: 320px) { 582 font-size: 9px; 583 max-width: 50px; 584 line-height: 1.1; 585 } 586`,fe=a.div` 587 display: none; 588 589 @media (max-width: 767px) { 590 height: 60px; // Increase from 40px to 60px 591 display: block; 592 opacity: 0.2; 593 border-right: 1px solid #273135; 594 align-self: center; 595 margin-top: -10px; // Add negative margin to extend upward 596 margin-bottom: -10px; // Add negative margin to extend downward 597 } 598 599 @media (max-width: 375px) { 600 height: 55px; // Adjust for smaller screens 601 margin-top: -8px; 602 margin-bottom: -8px; 603 } 604 605 @media (max-width: 320px) { 606 height: 50px; 607 margin-top: -6px; 608 margin-bottom: -6px; 609 } 610`,be=a.div` 611 width: 100%; 612 height: auto; 613 padding-top: 10px; 614 615 @media (max-width: 767px) { 616 height: auto; 617 display: flex; 618 flex-direction: column; 619 justify-content: space-between; 620 padding-top: 0px; 621 } 622`,ve=a.div` 623 width: 100%; 624 display: flex; 625 align-items: center; 626 justify-content: space-between; 627 background: rgba(4, 173, 170, 0.1); 628 border-radius: 8px; 629 padding: 12px 16px; 630 margin-bottom: 10px; 631 632 @media (max-width: 767px) { 633 padding: 10px 12px; 634 margin-bottom: 8px; 635 } 636 637 @media (max-width: 320px) { 638 padding: 8px 10px; 639 margin-bottom: 6px; 640 } 641`,De=a.div` 642 display: flex; 643 flex-direction: column; 644 align-items: flex-start; 645 flex: 1; 646`,we=a.div` 647 display: flex; 648 align-items: center; 649 gap: 6px; 650 font-style: normal; 651 font-size: 16px; 652 line-height: 22px; 653 color: #273135; 654 font-weight: 700; 655 margin-bottom: 4px; 656 657 @media (max-width: 767px) { 658 font-size: 14px; 659 line-height: 20px; 660 } 661 662 @media (max-width: 320px) { 663 font-size: 13px; 664 line-height: 18px; 665 } 666`,ye=a.div` 667 position: relative; 668 display: flex; 669 align-items: center; 670 flex-shrink: 0; 671`,Ce=a.img` 672 width: 16px; 673 height: 16px; 674 cursor: pointer; 675`,je=a.div` 676 position: absolute; 677 top: 22px; 678 left: 0; 679 background: #ffffff; 680 border: 1px solid #e0e0e0; 681 padding: 10px; 682 border-radius: 8px; 683 z-index: 1700; 684 font-size: 11px; 685 font-weight: 400; 686 line-height: 15px; 687 color: #273135; 688 width: 220px; 689 box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15); 690 691 &::before { 692 content: ""; 693 position: absolute; 694 top: -6px; 695 left: 8px; 696 border-left: 6px solid transparent; 697 border-right: 6px solid transparent; 698 border-bottom: 6px solid #e0e0e0; 699 } 700 &::after { 701 content: ""; 702 position: absolute; 703 top: -5px; 704 left: 8px; 705 border-left: 5px solid transparent; 706 border-right: 5px solid transparent; 707 border-bottom: 5px solid #ffffff; 708 } 709`,ke=a.div` 710 font-style: normal; 711 font-size: 12px; 712 line-height: 16px; 713 color: #273135; 714 opacity: 0.8; 715 716 @media (max-width: 767px) { 717 font-size: 11px; 718 line-height: 14px; 719 } 720 721 @media (max-width: 320px) { 722 font-size: 10px; 723 line-height: 13px; 724 } 725`,Ee=a.div` 726 cursor: pointer; 727 padding: 8px; 728 background: transparent; 729 border-radius: 50%; 730 display: flex; 731 align-items: center; 732 justify-content: center; 733 transition: background-color 0.2s ease; 734 735 &:hover { 736 background: rgba(39, 49, 53, 0.1); 737 } 738 739 svg {
740 width: 20px; 741 height: 20px; 742 color: #273135; 743 } 744 745 @media (max-width: 767px) { 746 padding: 6px; 747 748 svg { 749 width: 18px; 750 height: 18px; 751 } 752 } 753 754 @media (max-width: 320px) { 755 padding: 5px; 756 757 svg { 758 width: 16px; 759 height: 16px; 760 } 761 } 762`,Ae=a.div` 763 display: flex; 764 align-items: center; 765 justify-content: space-around; 766 padding-top: 10px; 767 gap: 8px; 768 769 @media (max-width: 767px) { 770 padding-top: 8px; 771 gap: 8px; 772 display: flex; 773 flex-direction: row; 774 justify-content: space-around; 775 } 776`,$e=a.div` 777 font-style: normal; 778 font-size: 16px; 779 line-height: 150%; 780 cursor: pointer; 781 display: flex; 782 align-items: center; 783 justify-content: center; 784 height: 40px; 785 padding: 0 16px; 786 border-radius: 68px; 787 flex: 1; 788 min-width: 0; 789 790 ${({$variant:e})=>"primary"===e?"\n background-color: #037b79;\n color: white;\n border: none;\n ":"\n background-color: transparent;\n color: #037b79;\n border: 1px solid #037b79;\n "} 791 792 &.ui-state-disabled { 793 opacity: 0.6; 794 cursor: not-allowed; 795 } 796 797 @media (max-width: 767px) { 798 font-size: 13px; 799 height: 40px; 800 padding: 0 8px; 801 border-radius: 68px; 802 text-align: center; 803 flex: 1; 804 } 805 806 @media (max-width: 375px) { 807 font-size: 12px; 808 padding: 0 6px; 809 } 810 811 @media (max-width: 320px) { 812 font-size: 11px; 813 padding: 0 5px; 814 } 815`;a.div` 816 font-style: normal; 817 font-size: 16px; 818 line-height: 150%; 819 color: red; 820 cursor: pointer; 821 822 @media (max-width: 767px) { 823 font-size: 14px; 824 } 825`;const Me=a.div` 826 display: inline-flex; 827 padding: 4px 10px; 828 justify-content: center; 829 align-items: center; 830 border-radius: 4px; 831 font-size: 11px; 832 font-weight: 700; 833 text-transform: uppercase; 834 letter-spacing: 0.04em; 835 line-height: 14px; 836 837 &.ontime, 838 &.arrived { 839 background-color: #a2d7d6; 840 color: #273135; 841 } 842 843 &.arriving-early { 844 background-color: #00b5ad; 845 } 846 847 &.security, 848 &.immigration { 849 background-color: #003aa7; 850 color: #fff; 851 } 852 853 &.boarding, 854 &.departed { 855 background-color: #0a9132; 856 color: #fff; 857 } 858 859 &.diverted, 860 &.gate-closed, 861 &.cancelled { 862 background-color: #ba2c43; 863 color: #fff; 864 } 865 866 &.final-call, 867 &.rescheduled { 868 background-color: #e58e64; 869 color: #fff; 870 } 871 872 &.delayed { 873 background-color: #ff795c; 874 color: #fff; 875 } 876 877 @media (max-width: 767px) { 878 font-size: 9px; 879 font-weight: 800; 880 text-transform: uppercase; 881 letter-spacing: 0.03em; 882 text-align: center; 883 padding: 3px 8px; 884 border-radius: 3px; 885 line-height: 12px; 886 } 887 888 @media (max-width: 320px) { 889 font-size: 8px; 890 padding: 2px 6px; 891 line-height: 10px; 892 } 893`,Be=a.div` 894 @media (max-width: 767px) { 895 display: flex; 896 flex-direction: column; 897 gap: 4px; 898 } 899`,Le=a.div` 900 position: relative; 901 top: -10px; 902 display: flex; 903 align-items: center; 904 justify-content: space-between; 905 height: auto; 906 min-height: 79px; 907 908 909 background: #131e1e; 910 padding: 16px 16px 6px 16px; 911 912 border-bottom-left-radius: 12px; 913 border-bottom-right-radius: 12px; 914 915 overflow: hidden; 916`,Te=a.div` 917 display: flex; 918 width: 100%; 919 flex-direction: row; 920 gap: 12px; 921 align-items: center; 922`,Ye=a.div` 923 display: flex; 924 flex-direction: column; 925`,Ne=a(l)` 926 font-weight: 700; 927 font-size: 14px; 928 color: #fff; 929 line-height: normal; 930`,Ie=a.div` 931 width: 153px; 932 height: 100px; 933 position: absolute; 934 right: 0px; 935 936 img { 937 position: absolute; 938 right: 0; 939 height: 100px; 940 width: 100px; 941 top: 0px; 942 } 943 944 .blur { 945 filter: blur(16px); 946 width: 153px; 947 } 948 949 .sharp { 950 right: -12px; 951 -webkit-mask-image: linear-gradient( 952 to left, 953 rgba(0, 0, 0, 0.1) 0%, 954 rgba(0, 0, 0, 0.1) 45%, 955 rgba(0, 0, 0, 0.2) 65%, 956 transparent 100% 957 ); 958 959 mask-image: linear-gradient( 960 to left, 961 rgba(0, 0, 0, 0.1) 0%, 962 rgba(0, 0, 0, 0.1) 45%, 963 rgba(0, 0, 0, 0.2) 65%, 964 transparent 100% 965 ); 966 } 967`,Re=a.img` 968width: 24px; 969height: 24px; 970`,Se=i.lazy(()=>$(()=>import("./DigiYatraInfoModal-CjNVCX1d.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]))),_e=i.lazy(()=>$(()=>import("./locate-flight-modal-CPer-lkF.js"),__vite__mapDeps([26,1,2,8,27,28,29,30,31,32,3,4,5,6,7,9,10,11,12,13,33,34]))),He=[{src:I,alt:"Moving to aerobridge"},{src:"/assets/flight_parked_waiting-CkcxLOC_.gif",alt:"Parked, waiting"},{src:"/assets/Flight_boarding-Dcckbw3q.gif",alt:"Boarding"},{src:"/assets/Flight_turning_from_aerobridge-BRj1ZUI-.gif",alt:"Turning from aerobridge"},{src:"/assets/Flight_takeoff-BHxnrMeh.gif",alt:"Taking off"},{src:"/assets/Flight_in_the_air-BLeBUfVQ.gif",alt:"In the air"},{src:"/assets/Flight_landing-XtTb7rl_.gif",alt:"Landing"},{src:I,alt:"Moving to aerobridge"},{src:"/assets/Flight_deboarding-DNXbtzqT.gif",alt:"Deboarding"}],ze={SCHEDULED:0,CHECKIN:0,CHECKINCLOSED:0,DELAYED:0,NEXTINFO:0,GATEOPEN:1,BOARDING:2,FINALCALL:2,GATECLOSED:3,SECURED:3,READY:3,DEPARTED:4,AIRBORNE:5,ENROUTE:5,APPROACH:6,ARRIVED:7,BAGGAGE:8,BAGGAGE_END:8,DIVERTED:null,RETURNED:null,CANCELLED:null};function Fe(e,t,i){const a=e.format("YYYYMMDDHHmm");
970if(a===t.format("YYYYMMDDHHmm"))return 4;if(a===i.format("YYYYMMDDHHmm"))return 6;if(e.isAfter(t)&&e.isBefore(i))return 5;if(e.isAfter(i)){const t=Math.floor(e.diff(i,"minute",!0));return t<=5?7:t<=30?8:null}return null}function Ue(a){var n,o,r,$,Y,I,ie,Ue,Oe;const Ge=i.useContext(s),Pe=i.useContext(d),[Ve]=p(["gwLoginData"]),qe=i.useContext(g),{pushHistory:Je}=h(),[Ze,Xe]=i.useState(null),[Ke,We]=i.useState(!0),[,Qe]=i.useState(!1),[et,tt]=i.useState(!1),[it,at]=i.useState(!1),[nt,ot]=i.useState(!1),[rt,lt]=i.useState(!1),[st,dt]=i.useState(!1),pt=i.useContext(x),gt=1e3*(e("FLIGHT_CARD_REFRESH_INTERVAL_SECONDS")||60),[ht,xt]=i.useState(null),ct=!0===(null==(n=t("DigiYatraData"))?void 0:n.success),[mt,ut]=i.useState(!1===(null==(o=t("DigiYatraData"))?void 0:o.hasShowInfo)),[ft,bt]=i.useState(null),vt=i.useRef(null),Dt=i.useRef(null),wt=i.useCallback(()=>{const{flightId:e,scheduleDate:t,movementType:i}=a.flightData;kt(e,t,i)},[a.flightData]),yt=i.useCallback(()=>{a.setAirportData([]),qe.removeAllFlight(),c("DigiYatraData"),et&&$t()},[et,a,qe]),Ct=i.useCallback((e,t,i)=>{var n;let o=m(),r=m(e,"YYYYMMDDHHmm").add(5,"hour").add(30,"minute");const l="D"===a.flightData.movementType||"Departure"===a.flightData.movementType,s=Number(i);l&&s>0&&(r=r.add(s,"minute")),r=r.add(15,"minute");const d=m(o).isAfter(r),p=S.includes(t.name.toLowerCase());if(d||p){const e=(null==(n=a.flightData)?void 0:n.flightId)?` ${a.flightData.flightId}`:"";u.info(d?`Flight${e} has ${l?"departed":"landed"} and is no longer being tracked.`:`Flight${e} is ${t.name.toLowerCase()} and is no longer being tracked.`,4e3),a.setAirportData([]),qe.removeAllFlight()}},[a,qe]),jt=i.useCallback(async e=>{let t=!1,i=b.api.getFlightTrackData,a=await f.get(i),n=await a.json();200!==n.status&&201!==n.status||n.data.forEach(i=>{e.flightNumber===i.flightId&&e.estimatedDate===i.estimatedTime&&(t=!0)}),"homepage"===localStorage.getItem("module")&&($t(e,t),localStorage.setItem("module",null)),tt(t),We(!1)},[]),kt=i.useCallback(async(e,t,i)=>{let a=m(t,"YYYY-MM-DD").format("YYYYMMDD"),n="Departure";"A"===i&&(n="Arrival");try{let t=b.api.flightSearch.replace("{{date}}",a).replace("{{movementType}}",n).replace("{{flightNo}}",e),i=await f.get(t),o=await i.json();if(!(o.data.length>0))throw Error("Flight details have not been updated");v.sendMessageToReactNative(D),Xe(o.data[0]),xt(m()),o.data[0].airline.checkinUrl.length>0&<(!0),Ve.gwLoginData?jt(o.data[0]):(We(!1),tt(!1)),o.data[0].estimatedDate&&o.data[0].flightStatus&&o.data[0].flightStatus.name&&Ct(o.data[0].estimatedDate,o.data[0].flightStatus,o.data[0].totalJourneyDurationMins)}catch(o){console.log(o),u.info(o.message),yt()}},[Ve.gwLoginData,jt,Ct,yt]);function Et(e){const t=Math.abs(e),i=Math.floor(t%3600/60),a=Math.floor(t%86400/3600),n=Math.floor(t/86400),o=At(i,"min"),r=At(a,"hr"),l=At(n,"day");return[l,r,o].some(Boolean)?`${l}${r}${o}`.replace(/,\s*$/,""):null}function At(e,t){return e>0?e+(1===e?("min"===t?" "+t:" "+t+",")+" ":("min"===t?" "+t+"s":" "+t+"s,")+" "):""}i.useEffect(()=>{Ze&&!ht&&xt(m()),Ze&&a.onInfoUpdate&&a.onInfoUpdate({estimated:Yt(),estimatedTime:Ze.estimatedDate?m(Ze.estimatedDate,"YYYYMMDDHHmm").add(5,"hour").add(30,"minute").format("HH:mm"):"TBD",checkIn:Nt()})},[Ze,ht,a.onInfoUpdate]),i.useEffect(()=>{const{flightId:e,scheduleDate:t,movementType:i,scheduleDateTime:n}=a.flightData,o=()=>{kt(e,t,i)};o();const r=m(n,"YYYYMMDDHHmmss"),l=m();let s;return r.diff(l),s=setInterval(()=>{o()},gt),()=>{s&&clearInterval(s)}},[a.flightData]);const $t=async(e,t)=>{const i=()=>{localStorage.setItem("module","homepage"),Je("/signin")};if(t)if(Qe(!0),Ve.gwLoginData){let t=[];Ve.gwLoginData.mobile&&t.push("SMS"),Ve.gwLoginData.email&&t.push("EMAIL");let i=b.api.stopFlightTrack,a={flightName:e.airline.name,flightId:e.flightNumber,flightStatus:e.flightStatus.name,scheduledTime:e.scheduledDate,estimatedTime:e.estimatedDate,gate:e.gates.length?y(e.gates,"sequenceNumber")[0].gateNumber:"",belt:e.baggageBelts.length?y(e.baggageBelts,"sequenceNumber")[0].beltNumber:"",notificationMethod:t,user:{email:Ve.gwLoginData.email?w(Ve.gwLoginData.email):"",mobile:Ve.gwLoginData.mobile?w(Ve.gwLoginData.mobile):"",userId:Ve.gwLoginData.userId}};v.triggerMoEngageEvent("stop_flight_updates",{flight_name:e.airline.name,flight_id:e.flightNumber,flight_status:e.flightStatus.name,scheduled_time:e.scheduledDate,estimated_time:e.estimatedDate,gate:e.gates.length?y(e.gates,"sequenceNumber")[0].gateNumber:""});try{let e=await f.post(i,a),t=await e.json();200===t.status||201===t.status?(tt(!1),u.info("Your have now stopped tracking your flight!"),Qe(!1)):(u.info("Stop tracking failed, try re-logging in"),Qe(!1))}catch(n){console.log(n),u.info("Stop tracking failed, try re-logging in"),Qe(!1)}}else i();else Ve.gwLoginData?(a=e,Ge.openFlightAlert({flightName:a.airline.name,flightId:a.flightNumber,flightStatus:a.flightStatus.name,scheduledTime:a.scheduledDate,estimatedTime:a.estimatedDate,gate:a.gates.length?y(a.gates,"sequenceNumber")[0].gateNumber:"",belt:a.baggageBelts.length?y(a.baggageBelts,"sequenceNumber")[0].beltNumber:"",varianceMins:a.varianceMins,signedVarianceMins:a.signedVarianceMins,varianceColorCode:a.varianceColorCode,varianceStatusMsg:a.varianceStatusMsg})):i();var a};const Mt=e=>{var t,i,a,n;v.triggerMoEngageEvent("checkin_clicked",{flight_name:e.airline.displayName,flight_id:e.flightNumber,flight_status:e.flightStatus.displayName,scheduled_time:e.scheduledDate,estimated_time:e.estimatedDate,flight_type:e.flightType,origin_airport:null==(t=null==e?void 0:e.originAirport)?void 0:t.code,origin_terminal:null==(i=null==e?void 0:e.originAirport)?void 0:i.terminal,destination_airport:null==(a=null==e?void 0:e.destinationAirport)?void 0:a.code,destination_terminal:null==(n=null==e?void 0:e.destinationAirport)?void 0:n.terminal}),e.airline.checkinUrl.length>
9700&&e.airline.checkinUrl.forEach(e=>{(e=>{if(window.ReactNativeWebView)return void v.sendMessageToReactNative("open_external_url",{url:e});const t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),document.body.removeChild(t)})(e.href)})},Bt=()=>{dt(!1),pt.showAllNavs()},Lt=["GATECLOSED","READY","DEPARTED","DIVERTED","AIRBORNE","CANCELLED","RETURNED"],Tt=["ARRIVED","BAGGAGE","DIVERTED","BAGGAGE_END","CANCELLED","RETURNED"];const Yt=()=>{var e;const{isDeparture:t,isArrival:i}=_t();if(function(e,t,i){const a=null==e?void 0:e.toUpperCase();return!!a&&(t?Lt.includes(a):!!i&&Tt.includes(a))}(null==(e=null==Ze?void 0:Ze.flightStatus)?void 0:e.name,t,i))return null;if(null==Ze?void 0:Ze.estimatedDate){const e=m(null==Ze?void 0:Ze.estimatedDate,"YYYYMMDDHHmm").add(5,"hour").add(30,"minute").format("YYYYMMDDHHmm");let t=m(e,"YYYYMMDDHHmm"),i=m(new Date);const a=function(e){const t=Et(e);return t?`${t} until flight`:null}(C(t.diff(i)).asSeconds()),n=function(e){const t=Number(e);if(!t)return null;const i=Et(60*Math.abs(t));return i?`${i} ${t>0?"delayed":"early"}`:null}(null==Ze?void 0:Ze.signedVarianceMins);return a&&n?`${a} â ${n}`:a||n||null}},Nt=()=>{if(!Ze.checkInCounters||null===Ze.checkInCounters)return"TBA";{let e=null==Ze?void 0:Ze.checkInCounters;if(Array.isArray(e)){e.forEach(e=>{Array.isArray(e.id)&&(e.id=L(e.id))});let t=[];return e.forEach(e=>{var i,a,n,o,r,l,s;let d="";(null==(i=e.group)?void 0:i.toUpperCase().includes("ROW-"))?d=null==(o=null==(n=null==(a=e.group)?void 0:a.toUpperCase())?void 0:n.replace("ROW-",""))?void 0:o.trim():(null==(r=e.group)?void 0:r.toUpperCase().includes("COUNTER"))&&(d=null==(s=null==(l=e.group)?void 0:l.toUpperCase())?void 0:s.replace("COUNTER","").trim()),t.push(`${d} ${e.id}`)}),t=t.slice(0,3),null==t?void 0:t.join(",")}}},It=(null==Ze?void 0:Ze.viaAirports)||[],Rt=["DEPARTED"],St=["ARRIVED"],_t=()=>({isDeparture:"D"===a.flightData.movementType||"Departure"===a.flightData.movementType,isArrival:"A"===a.flightData.movementType||"Arrival"===a.flightData.movementType});i.useEffect(()=>{vt.current=ft},[ft]),i.useEffect(()=>{(()=>{var e,t;const{isDeparture:i,isArrival:a}=_t(),n=function({estimatedDate:e,totalJourneyDurationMins:t,statusName:i,isDeparture:a,isArrival:n}){if(!e)return null;const o=i&&void 0!==ze[i]?ze[i]:void 0;if(null===o)return null;const r=m(e,"YYYYMMDDHHmm").add(5,"hour").add(30,"minute"),l=m(),s=Number(t),d=s>0;if(a)return 4!==o?void 0!==o?o:0:d?Fe(l,r,r.add(s,"minute")):null;if(n){if(void 0!==o&&o>=6)return o;if(!d)return null;const e=r,t=e.subtract(s,"minute");if(l.isBefore(t))return function(e,t){const i=e=>t.subtract(e,"minute");return e.isBefore(i(30))?null:e.isBefore(i(25))?0:e.isBefore(i(20))?1:e.isBefore(i(1))?2:3}(l,t);const i=Fe(l,t,e);return null===i||i>5?5:i}return null}({estimatedDate:null==Ze?void 0:Ze.estimatedDate,totalJourneyDurationMins:null==Ze?void 0:Ze.totalJourneyDurationMins,statusName:null==(t=null==(e=null==Ze?void 0:Ze.flightStatus)?void 0:e.name)?void 0:t.toUpperCase(),isDeparture:i,isArrival:a}),o=vt.current;if(null===n)return void(null!==o&&(Dt.current=null,bt(null)));if(null===o)return Dt.current=m(),void bt(n);if(n<=o)return;(Dt.current?m().diff(Dt.current,"minute",!0):1)>=1&&(Dt.current=m(),bt(o+1))})()},[Ze]);const Ht=()=>(null==Ze?void 0:Ze.varianceColorCode)||void 0,zt=()=>{var e,t;if("CANCELLED"===(null==(t=null==(e=null==Ze?void 0:Ze.flightStatus)?void 0:e.name)?void 0:t.toUpperCase()))return{progress:50,color:void 0,hasSignal:!1};const i=(()=>{const e=Number(null==Ze?void 0:Ze.totalJourneyDurationMins);if(!(null==Ze?void 0:Ze.estimatedDate)||!e||e<=0)return null;const t=m(Ze.estimatedDate,"YYYYMMDDHHmm").add(5,"hour").add(30,"minute"),{isDeparture:i}=_t();return i?{journeyStart:t,journeyEnd:t.add(e,"minute")}:{journeyStart:t.subtract(e,"minute"),journeyEnd:t}})();if(i){const{journeyStart:e,journeyEnd:t}=i,a=t.diff(e,"minute");if(a){const t=m().diff(e,"minute");return{progress:7+86*Math.min(Math.max(t/a,0),1),color:Number(null==Ze?void 0:Ze.varianceMins)>0?Ht():void 0,hasSignal:!0}}}if(!(null==Ze?void 0:Ze.estimatedDate))return{progress:50,color:void 0,hasSignal:!1};const a=m(Ze.estimatedDate,"YYYYMMDDHHmm").add(5,"hour").add(30,"minute"),n=m().diff(a,"minute")>=0,{isDeparture:o,isArrival:r}=_t();return o?n?{progress:50,color:Ht(),hasSignal:!0}:{progress:7,color:Ht(),hasSignal:!0}:r&&n?{progress:93,color:Ht(),hasSignal:!0}:{progress:50,color:void 0,hasSignal:!1}},Ft=()=>zt().progress,Ut=()=>zt().color,Ot=i.useMemo(()=>N(null==a?void 0:a.flightData),[null==a?void 0:a.flightData,null==a?void 0:a.shouldReRenderDYBanner]),Gt=()=>{const e=t("DigiYatraData");M("DigiYatraData",{...e,hasShowInfo:!0}),ut(!1)},Pt=null!==ft?He[ft]:null,Vt=["DIVERTED","CANCELLED","RETURNED"].includes(null==($=null==(r=null==Ze?void 0:Ze.flightStatus)?void 0:r.name)?void 0:$.toUpperCase()),qt=Yt();return j.jsxs(_,{children:[Ke?j.jsx(A,{height:"100%",loaderWidth:"auto",maxHeight:"80px"}):j.jsxs(H,{$slotBooking:a.slotBooking,customMinHeight:null==(Y=null==a?void 0:a.styles)?void 0:Y.minHeight,customPadding:null==(I=null==a?void 0:a.styles)?void 0:I.padding,children:[!a.hideCloseIcon&&j.jsx(P,{onClick:()=>function(){let e=!1,t=Pe.getCart();Object.values(t).forEach(t=>
970{t.items.forEach(t=>{t.flightUid===a.flightData.UID&&(e=!0)})}),v.triggerMoEngageEvent("remove_flight_clicked"),e?at(!0):yt()}(),children:j.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.6919%203.52851C11.936%203.78886%2011.936%204.21097%2011.6919%204.47132L4.19194%2012.4713C3.94786%2012.7317%203.55214%2012.7317%203.30806%2012.4713C3.06398%2012.211%203.06398%2011.7889%203.30806%2011.5285L10.8081%203.52851C11.0521%203.26816%2011.4479%203.26816%2011.6919%203.52851Z'%20fill='%232A2D31'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.30806%203.52851C3.55214%203.26816%203.94786%203.26816%204.19194%203.52851L11.6919%2011.5285C11.936%2011.7889%2011.936%2012.211%2011.6919%2012.4713C11.4479%2012.7317%2011.0521%2012.7317%2010.8081%2012.4713L3.30806%204.47132C3.06398%204.21097%203.06398%203.78886%203.30806%203.52851Z'%20fill='%232A2D31'/%3e%3c/svg%3e",alt:"close-icon"})}),j.jsxs(z,{children:[j.jsx(F,{$slotBooking:a.slotBooking}),j.jsxs(U,{$slotBooking:a.slotBooking,children:[j.jsxs(O,{children:[j.jsx(G,{children:j.jsxs(V,{children:[j.jsx(q,{src:a.flightData.airlineImg,$slotBooking:a.slotBooking}),j.jsx(J,{children:j.jsx(l,{type:"semi-bold",children:`${a.flightData.airlineName} ${a.flightData.flightId}`})})]})}),j.jsx(Z,{children:j.jsx(l,{type:"bold",color:"black",children:m(a.flightData.scheduleDate,"YYYY-MM-DD").format("ddd, D MMM")})})]}),j.jsxs(X,{$slotBooking:a.slotBooking,children:[j.jsxs(K,{$slotBooking:a.slotBooking,children:[j.jsx(W,{$slotBooking:a.slotBooking,children:j.jsx(l,{type:"bold",children:a.flightData.baseAirport})}),j.jsxs(Be,{children:[Ze.terminal&&""!==Ze.terminal&&Ze.originAirport.code===e("AIRPORT_CODE")?j.jsx(Q,{children:j.jsx(l,{type:"regular",children:`Terminal ${Ze.terminal}`})}):null,("D"===a.flightData.movementType||"Departure"===a.flightData.movementType)&&j.jsx(ee,{children:j.jsx(l,{type:"bold",children:m(a.flightData.scheduleTime,"HH:mm:ss").format("HH:mm")})})]})]}),j.jsxs(ne,{children:[!Vt&&j.jsxs(oe,{children:[j.jsx(le,{}),zt().hasSignal&&j.jsx(se,{$progress:Ft(),$color:Ut()}),j.jsxs(te,{$progress:Ft(),children:[j.jsx(ae,{$pulse:(()=>{var e,t;const i=null==(t=null==(e=null==Ze?void 0:Ze.flightStatus)?void 0:e.name)?void 0:t.toUpperCase(),{isDeparture:a,isArrival:n}=_t();return a&&Rt.includes(i)||n&&St.includes(i)})(),$color:Ut(),children:j.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.6'%3e%3cpath%20d='M18.7505%2037.5352L13.7505%2037.5352C13.5656%2037.5352%2013.3829%2037.4942%2013.2157%2037.4151C13.0486%2037.336%2012.901%2037.2207%2012.7838%2037.0777C12.6665%2036.9347%2012.5825%2036.7674%2012.5377%2036.588C12.4929%2036.4085%2012.4885%2036.2214%2012.5248%2036.04L14.7258%2025.0352L10.513%2025.0352L8.37811%2027.1402C8.14419%2027.3708%207.82894%2027.5%207.5005%2027.5L3.7505%2027.5C3.54623%2027.5%203.34507%2027.45%203.16462%2027.3542C2.98417%2027.2585%202.82994%2027.12%202.71541%2026.9508C2.60089%2026.7817%202.52957%2026.587%202.50769%2026.3839C2.48581%2026.1808%202.51404%2025.9755%202.58992%2025.7858L4.90422%2020L2.58992%2014.2142C2.51405%2014.0245%202.48582%2013.8191%202.5077%2013.6161C2.52958%2013.413%202.6009%2013.2183%202.71542%2013.0492C2.82994%2012.88%202.98418%2012.7415%203.16462%2012.6458C3.34507%2012.55%203.54623%2012.5%203.7505%2012.5L7.5005%2012.5C7.83201%2012.5%208.14994%2012.6317%208.38437%2012.8661L10.5183%2015L14.7258%2015L12.5248%203.99521C12.4885%203.81385%2012.4929%203.62671%2012.5377%203.44727C12.5825%203.26783%2012.6665%203.10056%2012.7838%202.95753C12.901%202.81451%2013.0486%202.69928%2013.2157%202.62016C13.3829%202.54104%2013.5656%202.5%2013.7505%202.5L18.7505%202.5C18.9826%202.49999%2019.2102%202.56462%2019.4076%202.68666C19.6051%202.80869%2019.7647%202.9833%2019.8685%203.19092L25.774%2015.0018L32.5034%2015.0175C33.8295%2015.0179%2035.1011%2015.5451%2036.0385%2016.483C36.9759%2017.421%2037.5023%2018.6929%2037.502%2020.019C37.5016%2021.3451%2036.9744%2022.6167%2036.0365%2023.5541C35.0985%2024.4915%2033.8266%2025.0179%2032.5005%2025.
9700175L25.774%2025.0334L19.8685%2036.8443C19.7647%2037.0519%2019.6051%2037.2266%2019.4076%2037.3486C19.2102%2037.4706%2018.9826%2037.5353%2018.7505%2037.5352Z'%20fill='%2304ADAA'/%3e%3c/g%3e%3c/svg%3e",alt:"airplane icon",onClick:()=>e("LOCATE_ME_ENABLE")&&(null==Ze?void 0:Ze.aircraftRegistrationNumber)?(dt(!0),void pt.hideAllNavs()):null})}),e("LOCATE_ME_ENABLE")&&(null==Ze?void 0:Ze.aircraftRegistrationNumber)&&j.jsx(l,{type:"extra-bold",children:"Live Location"})]})]}),!Vt&&Pt&&j.jsx(re,{children:j.jsx("img",{src:Pt.src,alt:Pt.alt})}),It.length>0&&j.jsxs(de,{children:[It.length," ",It.length>1?"Stops":"Stop"," :"," ",It.map((e,t)=>j.jsxs("span",{children:[e.code,t<It.length-1&&" & "]},e.code))]})]}),j.jsxs(pe,{$slotBooking:a.slotBooking,children:[j.jsx(W,{$slotBooking:a.slotBooking,children:j.jsx(l,{type:"bold",children:a.flightData.srcDestAirport})}),j.jsxs(Be,{children:[Ze.terminal&&""!==Ze.terminal&&Ze.destinationAirport.code===e("AIRPORT_CODE")?j.jsx(Q,{children:j.jsx(l,{type:"regular",children:`Terminal ${Ze.terminal}`})}):null,("A"===a.flightData.movementType||"Arrival"===a.flightData.movementType)&&j.jsx(ee,{children:j.jsx(l,{type:"bold",children:m(a.flightData.scheduleTime,"HH:mm:ss").format("HH:mm")})})]})]})]})]}),!a.slotBooking&&j.jsxs(j.Fragment,{children:[j.jsx(ge,{}),j.jsxs(he,{children:[j.jsxs(xe,{children:[j.jsx(me,{children:j.jsx(l,{type:"bold",children:Ze&&Ze.estimatedDate?m(Ze.estimatedDate,"YYYYMMDDHHmm").add(5,"hour").add(30,"minute").format("HH:mm"):"TBD"})}),j.jsx(ce,{children:j.jsx(l,{type:"work-sans-regular",children:"ESTIMATED"})})]}),j.jsx(fe,{}),!a.hideCheckIn&&j.jsxs(xe,{children:[j.jsx(ue,{children:"D"===a.flightData.movementType||"Departure"===a.flightData.movementType?j.jsx(l,{type:"bold",children:Nt()}):j.jsx(l,{type:"bold",children:"NA"})}),j.jsx(ce,{children:j.jsx(l,{type:"work-sans-regular",children:"Check-in"})})]}),!a.hideCheckIn&&j.jsx(fe,{}),j.jsxs(xe,{children:[j.jsx(me,{children:"D"===a.flightData.movementType?j.jsx(l,{type:"bold",children:Ze&&Ze.gates?k(Ze.gates):"TBD"}):j.jsx(l,{type:"bold",children:Ze&&Ze.baggageBelts?E(Ze.baggageBelts):"TBD"})}),j.jsx(ce,{children:j.jsx(l,{type:"work-sans-regular",children:"D"===a.flightData.movementType?"GATE":"BELT"})})]}),j.jsx(fe,{}),j.jsxs(xe,{style:{"@media (min-width: 768px)":{marginTop:"-3px"}},children:[j.jsx(Me,{className:(e=>{let t="";switch(e.toUpperCase()){case"ONTIME":t="ontime";break;case"BOARDING":t="boarding";break;case"GATEOPEN":t="gate-open";break;case"ARRIVED":t="arrived";break;case"DEPARTED":t="departed";break;case"DELAYED":t="delayed";break;case"IMMIGRATION":t="immigration";break;case"DIVERTED":t="diverted";break;case"RESCHEDULED":t="rescheduled";break;case"CANCELLED":t="cancelled";break;case"FINALCALL":t="final-call";break;case"GATECLOSED":t="gate-closed";break;case"SECURITY":t="security";break;case"CHECKIN":t="check-in";break;case"ARRIVING EARLY":t="arriving-early";break;default:return""}return t})(null==(ie=null==Ze?void 0:Ze.flightStatus)?void 0:ie.name),children:j.jsx(l,{type:"bold",children:Ze&&Ze.flightStatus&&Ze.flightStatus.displayName?Ze.flightStatus.displayName:"TBD"})}),j.jsx(ce,{children:j.jsx(l,{type:"work-sans-regular",children:"STATUS"})})]})]})]})]}),!a.slotBooking&&!a.hideActions&&j.jsxs(be,{children:[!a.hideBanner&&j.jsxs(ve,{children:[j.jsxs(De,{children:[j.jsxs(we,{children:[qt&&j.jsxs(ye,{children:[j.jsx(Ce,{src:B,alt:"info",onClick:e=>{e.stopPropagation(),ot(e=>!e)}}),nt&&j.jsx(je,{onClick:e=>e.stopPropagation(),children:"Subscribe to Get Updates to receive timely flight updates and plan your airport journey better."})]}),j.jsx(l,{type:"extra-bold",children:qt})]}),!a.hideCountDownRefresh&&j.jsx(ke,{children:j.jsx(l,{type:"regular",children:(e=>{if(!e)return"Never updated";const t=m().diff(e,"seconds");if(t<60)return`Updated ${t} sec ago`;const i=Math.floor(t/60);if(i<60)return`Updated ${i} min ${t%60} sec ago`;return`Updated ${Math.floor(i/60)} hr ${i%60} min ago`})(ht)})})]}),!a.hideCountDownRefresh&&j.jsx(Ee,{onClick:wt,children:j.jsx(R,{})})]}),!a.hideFlightCTA&&j.jsxs(Ae,{children:[!a.showChangeFlight&&j.jsxs(j.Fragment,{children:[j.jsx($e,{$variant:"secondary",onClick:()=>$t(Ze,et),children:j.jsx(l,{type:"extra-bold",children:et?"Stop Updates":"Get Updates"})}),j.jsx($e,{$variant:"primary",className:rt?null:"ui-state-disabled",onClick:()=>Mt(Ze),children:j.jsx(l,{type:"extra-bold",children:"Check-In"})})]}),a.showChangeFlight&&j.jsx($e,{onClick:()=>{var e;return a.handleChangeFlight((null==(e=null==a?void 0:a.flightData)?void 0:e.UID
970)||"")},children:j.jsx(l,{type:"extra-bold",children:"Change flight"})})]})]}),it&&j.jsx(T,{handleRemoveFlight:()=>{a.setAirportData([]),qe.removeAllFlight();let e=Pe.getCart();Object.values(e).forEach(e=>{e.items=e.items.filter(e=>{var t;return e.storeTerminal!==`Terminal${null==(t=null==a?void 0:a.flightData)?void 0:t.terminal}`})}),et&&$t(),at(!1)},onClose:()=>{at(!1)}}),st&&j.jsx(i.Suspense,{fallback:j.jsx(A,{}),children:j.jsx(_e,{locateFlightShow:st,handleAddFlightClose:Bt,handleAddFlightOnExit:Bt,aircraftRegistrationNumber:null==Ze?void 0:Ze.aircraftRegistrationNumber,flightId:null==(Ue=null==a?void 0:a.flightData)?void 0:Ue.flightId,flightTailImagePath:null==(Oe=null==a?void 0:a.flightData)?void 0:Oe.airlineImg})})]}),!Ke&&Ot&&!(null==a?void 0:a.hideDYBottomBanner)&&j.jsxs(Le,{children:[j.jsxs(Te,{children:[j.jsx(Re,{src:ct?"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2012L11%2014L15%2010M3%2012C3%2013.1819%203.23279%2014.3522%203.68508%2015.4442C4.13738%2016.5361%204.80031%2017.5282%205.63604%2018.364C6.47177%2019.1997%207.46392%2019.8626%208.55585%2020.3149C9.64778%2020.7672%2010.8181%2021%2012%2021C13.1819%2021%2014.3522%2020.7672%2015.4442%2020.3149C16.5361%2019.8626%2017.5282%2019.1997%2018.364%2018.364C19.1997%2017.5282%2019.8626%2016.5361%2020.3149%2015.4442C20.7672%2014.3522%2021%2013.1819%2021%2012C21%2010.8181%2020.7672%209.64778%2020.3149%208.55585C19.8626%207.46392%2019.1997%206.47177%2018.364%205.63604C17.5282%204.80031%2016.5361%204.13738%2015.4442%203.68508C14.3522%203.23279%2013.1819%203%2012%203C10.8181%203%209.64778%203.23279%208.55585%203.68508C7.46392%204.13738%206.47177%204.80031%205.63604%205.63604C4.80031%206.47177%204.13738%207.46392%203.68508%208.55585C3.23279%209.64778%203%2010.8181%203%2012Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%209V13M12%2016V16.01M3%2012C3%2013.1819%203.23279%2014.3522%203.68508%2015.4442C4.13738%2016.5361%204.80031%2017.5282%205.63604%2018.364C6.47177%2019.1997%207.46392%2019.8626%208.55585%2020.3149C9.64778%2020.7672%2010.8181%2021%2012%2021C13.1819%2021%2014.3522%2020.7672%2015.4442%2020.3149C16.5361%2019.8626%2017.5282%2019.1997%2018.364%2018.364C19.1997%2017.5282%2019.8626%2016.5361%2020.3149%2015.4442C20.7672%2014.3522%2021%2013.1819%2021%2012C21%2010.8181%2020.7672%209.64778%2020.3149%208.55585C19.8626%207.46392%2019.1997%206.47177%2018.364%205.63604C17.5282%204.80031%2016.5361%204.13738%2015.4442%203.68508C14.3522%203.23279%2013.1819%203%2012%203C10.8181%203%209.64778%203.23279%208.55585%203.68508C7.46392%204.13738%206.47177%204.80031%205.63604%205.63604C4.80031%206.47177%204.13738%207.46392%203.68508%208.55585C3.23279%209.64778%203%2010.8181%203%2012Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",alt:"check"}),j.jsxs(Ye,{children:[j.jsx(Ne,{children:j.jsx("span",{style:{position:"relative",display:"inline-flex",alignItems:"center"},children:j.jsx("span",{style:{position:"relative",zIndex:2},children:ct?"Your DigiYatra is enabled for this trip":"DigiYatra setup wasn't completed."})})}),j.jsx(l,{type:"medium",style:{color:"#fff",opacity:"50%",fontSize:"12px"},children:ct?"Use facial verification at the airport for entry":"Retry sharing boarding pass with Digiyatra"})]})]}),j.jsx(Ie,{children:j.jsx("img",{src:"/assets/digiyatra_bg-DLVsbAx_.png"})})]}),ct&&mt&&j.jsx(i.Suspense,{fallback:null,children:j.jsx(Se,{onCancel:Gt,onAgree:Gt})})]})}const Oe=Object.freeze(Object.defineProperty({__proto__:null,default:Ue},Symbol.toStringTag,{value:"Module"}));export{Ue as F,Oe as a,N as s};
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.