@odynn/awayz-flights 0.10.7 → 0.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,7 +96,6 @@ const y = ({ itinerary: r }) => {
96
96
  }) });
97
97
  };
98
98
  export {
99
- l as E,
100
99
  y as F,
101
100
  W as g
102
101
  };
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tip{position:relative}.tip>span{background-color:var(--dark, #14181f);color:#fff;padding:.5rem;border-radius:.5rem;position:absolute;bottom:110%;left:50%;transform:translate(-50%);display:none;transition:all .2s ease-in-out;z-index:100;width:max-content;font-size:.6rem;font-weight:600;text-transform:uppercase;line-height:.8rem;text-align:center;box-sizing:border-box;pointer-events:none}@media screen and (max-width: 480px){.tip>span{width:fit-content}}.tip>span.left{right:100%;top:50%;bottom:auto;left:auto;transform:translateY(-50%)}.tip>span.left:before{left:auto;right:-7.5px;top:50%;transform:translateY(-50%) rotate(-90deg)}.tip>span.right{left:100%;top:50%;bottom:auto;right:auto;transform:translateY(-50%)}.tip>span.right:before{left:-7.5px;right:auto;top:50%;transform:translateY(-50%) rotate(90deg)}.tip>span.bottom{top:100%;left:50%;right:auto;bottom:auto;transform:translate(-50%)}.tip>span.bottom:before{left:50%;right:auto;top:-5px;transform:translate(-50%) rotate(180deg)}.tip>span:before{content:"";position:absolute;bottom:-5px;left:50%;transform:translate(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--dark, #14181f)}.tip:hover>span,.tip:focus>span{display:flex;animation:tip-fade-up .2s ease-in-out}.tip:hover>span.right,.tip:focus>span.right{animation:tip-fade-right .2s ease-in-out}.tip:hover>span.left,.tip:focus>span.left{animation:tip-fade-left .2s ease-in-out}.tip:hover>span.bottom,.tip:focus>span.bottom{animation:tip-fade-down .2s ease-in-out}@keyframes slide-in-right{0%{opacity:0;transform:translate(0)}50%{transform:translate(-100vw);opacity:0}50.001%{opacity:0;transform:translate(105vw)}50.002%{opacity:1;transform:translate(100vw)}to{transform:translate(0)}}@keyframes slide-in-left{0%{opacity:0;transform:translate(0)}50%{transform:translate(100vw);opacity:0}50.001%{opacity:0;transform:translate(-100vw)}50.002%{opacity:1;transform:translate(-100vw)}to{transform:translate(0)}}@keyframes slide-out-right{0%{transform:translate(0)}to{transform:translate(100vw);opacity:1}}@keyframes slide-out-left{0%{transform:translate(0)}to{transform:translate(-100vw);opacity:1}}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translate(0);opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes scale-out{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes scale-in{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes no-no{0%{transform:translate(0)}20%{transform:translate(-20px)}40%{transform:translate(15px)}60%{transform:translate(-10px)}80%{transform:translate(5px)}to{transform:translate(0)}}@keyframes loading-track{0%{transform:translate(-100%);opacity:0}25%{opacity:1}75%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes loading-in{0%{height:0}to{height:5px}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shine{0%{background-position:right}}@keyframes text-pulse{0%{opacity:.75}35%{opacity:1}65%{opacity:1}to{opacity:.75}}@keyframes pulse{0%{opacity:.85}35%{opacity:1}65%{opacity:1}to{opacity:.85}}@keyframes shimmer{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes fade-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-down{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-right{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes spring-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes ripple{0%{transform:scale(1)}to{transform:scale(1.1,1.4)}}@keyframes tip-fade-right{0%{opacity:0;transform:translate(-20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-left{0%{opacity:0;transform:translate(20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-down{0%{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%)}}@keyframes tip-fade-up{0%{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%)}}@keyframes slide-in{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slide-out{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}@keyframes scale-fade-in{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes scroll-horizontally{0%{transform:translate(0)}to{transform:translate(-50%)}}.awayz-flight-result{background-color:var(--foreground, #fff);border-radius:1rem;border:1px solid var(--border, #e7eef3);overflow:hidden;width:100%;margin:0 auto;position:relative;height:fit-content;padding:1px;transition:all .2s ease-in-out;z-index:10;animation:fade-up .2s ease-in-out both;backface-visibility:hidden}.awayz-flight-result .content{overflow:hidden;border-radius:.8rem;width:100%;margin:0 auto;position:relative;height:fit-content;z-index:1;display:flex;flex-direction:column}.awayz-flight-result .content .flight-times{display:flex;font-size:.8rem}.awayz-flight-result .content .flight-times .flight-duration{display:flex;align-items:center;gap:.5rem;color:var(--text-light, rgba(37, 46, 52, .2509803922))}.awayz-flight-result .content .flight-times p{color:var(--text-light, rgba(37, 46, 52, .2509803922))}.awayz-flight-result .content .flight-info{padding:1rem;display:flex;flex-direction:column}@media screen and (min-width: 1024px){.awayz-flight-result .content .flight-info{flex-direction:row;gap:1rem}}.awayz-flight-result .content .flight-info .flight-info-header{display:flex;justify-content:space-between;align-items:center}.awayz-flight-result .content .flight-info .flight-info-header .airline-logo{display:flex;align-items:center;justify-content:center;gap:.5rem}.awayz-flight-result .content .flight-info .flight-info-header .airline-logo img{height:30px;width:30px;padding:.25rem;object-fit:contain;border-radius:50%;border:1px solid var(--border, #e7eef3);background-color:var(--light, #f9fdff)}.awayz-flight-result .content .flight-info .flight-info-header .airline-logo p{font-size:.8rem;font-weight:600}@media screen and (min-width: 1024px){.awayz-flight-result .content .flight-info .flight-info-header .airline-logo p{display:none}}.awayz-flight-result .content .flight-info .flight-info-header .airline-logo p:last-child{color:var(--text-light, rgba(37, 46, 52, .2509803922));font-weight:400;font-size:.7rem}.awayz-flight-result .content .flight-info .flight-info-header .flight-times{flex-direction:column;align-items:flex-end}@media screen and (min-width: 1024px){.awayz-flight-result .content .flight-info .flight-info-header .flight-times{display:none}}.awayz-flight-result .content .flight-info .flight-info-content{display:flex;justify-content:space-between;align-items:flex-end;flex:1;gap:1rem}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-info .flight-info-content{gap:.25rem}}.awayz-flight-result .content .flight-info .flight-info-content .flight-icon{font-size:1.6rem;color:var(--text, #252e34);display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:.25rem}.awayz-flight-result .content .flight-info .flight-info-content .flight-icon>span{height:25px;width:100%;display:flex;align-items:center;justify-content:center;position:relative;opacity:.2}.awayz-flight-result .content .flight-info .flight-info-content .flight-icon>span:after{content:"";position:absolute;top:50%;left:0;right:0;height:2px;transform:translateY(-50%);background:linear-gradient(to right,transparent 25%,var(--text, #252e34) 25%,var(--text, #252e34) 75%,transparent 75%);background-repeat:repeat-x;background-size:20px 2px}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-info .flight-info-content .flight-icon>span:after{display:none}}.awayz-flight-result .content .flight-info .flight-info-content .flight-icon .flight-times{justify-content:center;align-items:center;gap:.5rem}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-info .flight-info-content .flight-icon .flight-times{display:none}}.awayz-flight-result .content .flight-info .flight-info-content .flight-icon .view-flight-details{display:none;font-size:.8rem;font-weight:600;color:var(--text-light, rgba(37, 46, 52, .2509803922));cursor:pointer;-webkit-user-select:none;user-select:none;padding:.25rem 1rem;border-radius:50rem;transition:all .2s ease-in-out;border:1px solid var(--border, #e7eef3);text-align:center}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-info .flight-info-content .flight-icon .view-flight-details{display:block}}.awayz-flight-result .content .flight-info .flight-info-content .flight-icon .view-flight-details:hover{background-color:var(--border, #e7eef3)}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times{display:flex;flex-direction:column;gap:0}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times .flight-info-date{font-weight:600;font-size:.8rem}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times .flight-info-time{font-size:1.6rem;font-weight:600}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times .flight-info-time{font-size:1.2rem}}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times .flight-location{display:flex;align-items:center;gap:.5rem}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times .flight-location .flight-location-icon{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;border-radius:4rem;background-color:var(--primary, #1495f2);font-size:.7rem;color:var(--foreground, #fff)}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times:last-child{align-items:flex-end}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times:last-child .flight-info-date{text-align:right}.awayz-flight-result .content .flight-info .flight-info-content .flight-info-times:last-child .flight-location{justify-content:flex-end}.awayz-flight-result .content>div.flight-footer{flex:2;display:flex;justify-content:space-between;align-items:center;padding:1rem;gap:1rem;background-color:var(--background, #f9fdff);border-top:1px solid var(--border, #e7eef3)}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer{flex-direction:column}}.awayz-flight-result .content>div.flight-footer .view-details{display:flex;align-items:center;gap:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}.awayz-flight-result .content>div.flight-footer .booking-options{display:flex;justify-content:flex-end;gap:1rem;font-size:.8rem;flex:3}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer .booking-options{width:100%;flex-direction:column}}.awayz-flight-result .content>div.flight-footer .booking-options .offer-expiry{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:50rem;padding:1rem;gap:1rem;transition:all .2s ease-in-out;background-color:var(--foreground, #fff);font-weight:600}.awayz-flight-result .content>div.flight-footer .booking-options .offer-expiry span{display:flex;align-items:center;justify-content:center;font-size:1rem;color:var(--warning, #ff7f2f)}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:4rem;padding:.5rem 1rem;gap:2rem;cursor:pointer;transition:all .2s ease-in-out;background-color:var(--foreground, #fff);position:relative}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value .currency-conversion{display:flex}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value .best-value-flag{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:.25rem;position:absolute;right:-1px;padding:.25rem .5rem;top:-1rem;color:var(--foreground, #fff);border-radius:50rem;font-weight:600;background-color:var(--primary, #1495f2);border-bottom-right-radius:0;font-size:.7rem}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value .best-value-flag p{color:var(--foreground, #fff)}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.show-best-value-flag{border-color:var(--primary, #1495f2);border-top-right-radius:0}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value p{display:flex;gap:.25rem}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value .amount-airline-logo{display:flex;align-items:center;background-color:var(--light, #f9fdff);border-radius:4rem;padding:.25rem .5rem;margin-left:-.5rem}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.lg{font-size:.8rem;padding:1rem}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.lg .flight-cash-amount-value{font-weight:600}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value img{height:30px;max-width:100px}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value>div{display:flex;flex-direction:column}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value label{font-size:.7rem;font-weight:600}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value .flight-cash-amount-value{display:flex;gap:.25rem}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value:first-of-type{grid-area:price}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value:last-of-type{grid-area:points}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value:hover{background-color:var(--background, #f9fdff)}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer .booking-options .amount-value{flex-direction:row;justify-content:space-between}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value img{height:30px;max-width:80px}}.awayz-flight-result .content>div.flight-footer .view-flight-details{display:none;font-size:.8rem;font-weight:600;color:var(--text-light, rgba(37, 46, 52, .2509803922));cursor:pointer;-webkit-user-select:none;user-select:none;padding:.25rem 1rem;border-radius:50rem;transition:all .2s ease-in-out}@media screen and (min-width: 1024px){.awayz-flight-result .content>div.flight-footer .view-flight-details{display:block}}.awayz-flight-result .content>div.flight-footer .view-flight-details:hover{background-color:var(--border, #e7eef3)}.awayz-flight-result .content .flight-detail-container{display:flex;gap:1rem;justify-content:space-between}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-detail-container{width:100%}}.awayz-flight-result .content .flight-detail:not(:first-of-type){border-left:1px solid var(--border, #e7eef3);padding:0 2rem}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-detail:not(:first-of-type){padding:0 .5rem}}.awayz-flight-result .content .flight-detail p{font-size:.8rem}.awayz-flight-result .content .flight-detail p:first-of-type{font-size:.7rem;color:var(--text-light, rgba(37, 46, 52, .2509803922))}.awayz-flight-result .content .flight-detail p:last-of-type{font-weight:600}.awayz-flight-result .content .flight-detail p.chevron-text{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.awayz-flight-result .flight-details{display:grid;grid-template-rows:0fr;transition:all .2s ease-in-out;background-color:var(--foreground, #fff);border-top:1px solid var(--border, #e7eef3);border-width:0}.awayz-flight-result .flight-details.is-open{grid-template-rows:1fr;padding:1rem;padding-top:0;border-top:1px solid var(--border, #e7eef3)}.awayz-flight-result .flight-details.is-open .inner{scale:1;opacity:1;padding-top:1rem}.awayz-flight-result .flight-details .inner{overflow:hidden;transition:all .2s ease-in-out;scale:.9;opacity:0;transform-origin:top center;scroll-margin-top:40vh}.awayz-flight-result .flight-details .inner .flight-booking-options{display:flex;flex-direction:column;gap:1rem}.awayz-flight-result .flight-details .inner .flight-booking-options .booking-options-section{display:flex;flex-direction:column;gap:.5rem}.awayz-flight-result .flight-details .inner .flight-booking-options .booking-options-title{font-size:.7rem;font-weight:600;color:var(--text-light, rgba(37, 46, 52, .2509803922));text-transform:uppercase;letter-spacing:.04em}.awayz-flight-result .flight-details .inner .flight-booking-options .booking-options-scroll{display:flex;gap:1rem;overflow-x:auto;padding-bottom:.25rem;-webkit-overflow-scrolling:touch}.awayz-flight-result .flight-details .inner .flight-booking-options .booking-options-scroll>*{flex:0 0 auto}.awayz-flight-result:hover{cursor:pointer}
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tip{position:relative}.tip>span{background-color:var(--dark, #14181f);color:#fff;padding:.5rem;border-radius:.5rem;position:absolute;bottom:110%;left:50%;transform:translate(-50%);display:none;transition:all .2s ease-in-out;z-index:100;width:max-content;font-size:.6rem;font-weight:600;text-transform:uppercase;line-height:.8rem;text-align:center;box-sizing:border-box;pointer-events:none}@media screen and (max-width: 480px){.tip>span{width:fit-content}}.tip>span.left{right:100%;top:50%;bottom:auto;left:auto;transform:translateY(-50%)}.tip>span.left:before{left:auto;right:-7.5px;top:50%;transform:translateY(-50%) rotate(-90deg)}.tip>span.right{left:100%;top:50%;bottom:auto;right:auto;transform:translateY(-50%)}.tip>span.right:before{left:-7.5px;right:auto;top:50%;transform:translateY(-50%) rotate(90deg)}.tip>span.bottom{top:100%;left:50%;right:auto;bottom:auto;transform:translate(-50%)}.tip>span.bottom:before{left:50%;right:auto;top:-5px;transform:translate(-50%) rotate(180deg)}.tip>span:before{content:"";position:absolute;bottom:-5px;left:50%;transform:translate(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--dark, #14181f)}.tip:hover>span,.tip:focus>span{display:flex;animation:tip-fade-up .2s ease-in-out}.tip:hover>span.right,.tip:focus>span.right{animation:tip-fade-right .2s ease-in-out}.tip:hover>span.left,.tip:focus>span.left{animation:tip-fade-left .2s ease-in-out}.tip:hover>span.bottom,.tip:focus>span.bottom{animation:tip-fade-down .2s ease-in-out}@keyframes slide-in-right{0%{opacity:0;transform:translate(0)}50%{transform:translate(-100vw);opacity:0}50.001%{opacity:0;transform:translate(105vw)}50.002%{opacity:1;transform:translate(100vw)}to{transform:translate(0)}}@keyframes slide-in-left{0%{opacity:0;transform:translate(0)}50%{transform:translate(100vw);opacity:0}50.001%{opacity:0;transform:translate(-100vw)}50.002%{opacity:1;transform:translate(-100vw)}to{transform:translate(0)}}@keyframes slide-out-right{0%{transform:translate(0)}to{transform:translate(100vw);opacity:1}}@keyframes slide-out-left{0%{transform:translate(0)}to{transform:translate(-100vw);opacity:1}}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translate(0);opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes scale-out{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes scale-in{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes no-no{0%{transform:translate(0)}20%{transform:translate(-20px)}40%{transform:translate(15px)}60%{transform:translate(-10px)}80%{transform:translate(5px)}to{transform:translate(0)}}@keyframes loading-track{0%{transform:translate(-100%);opacity:0}25%{opacity:1}75%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes loading-in{0%{height:0}to{height:5px}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shine{0%{background-position:right}}@keyframes text-pulse{0%{opacity:.75}35%{opacity:1}65%{opacity:1}to{opacity:.75}}@keyframes pulse{0%{opacity:.85}35%{opacity:1}65%{opacity:1}to{opacity:.85}}@keyframes shimmer{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes fade-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-down{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-right{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes spring-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes ripple{0%{transform:scale(1)}to{transform:scale(1.1,1.4)}}@keyframes tip-fade-right{0%{opacity:0;transform:translate(-20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-left{0%{opacity:0;transform:translate(20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-down{0%{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%)}}@keyframes tip-fade-up{0%{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%)}}@keyframes slide-in{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slide-out{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}@keyframes scale-fade-in{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes scroll-horizontally{0%{transform:translate(0)}to{transform:translate(-50%)}}.horizontal-scroller-container{position:relative}.horizontal-scroller-container.show-left-fade:before{opacity:1}.horizontal-scroller-container.show-right-fade:after{opacity:1}.horizontal-scroller-container .horizontal-scroller{display:flex;overflow-x:auto;scroll-behavior:smooth;gap:1rem}.horizontal-scroller-container .scroll-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background-color:var(--foreground, #fff);border:1px solid var(--border, #e7eef3);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;z-index:2}.horizontal-scroller-container .scroll-arrow:hover{background-color:var(--background, #f9fdff)}.horizontal-scroller-container .scroll-arrow:active{transform:translateY(-50%) scale(.95)}.horizontal-scroller-container .scroll-arrow-left{left:0}.horizontal-scroller-container .scroll-arrow-right{right:0}
@@ -1,15 +1,197 @@
1
- import "react/jsx-runtime";
2
- import "@odynn/awayz-core";
3
- import "@tanstack/react-query";
4
- import { B as x } from "../../BookingOption-D566Ie2y.js";
1
+ import { jsxs as n, jsx as o, Fragment as d } from "react/jsx-runtime";
2
+ import { useAwayzContext as z, useFeatureFlags as M, useWallet as $, EBookingPaymentMethod as x, convertCashToClientPoints as q, CashValue as u, EToolTipPosition as y, EInvalidAmountDisplayOption as f, EAmountsDisplayFeature as W, ClientPointsValue as j } from "@odynn/awayz-core";
3
+ import { useQuery as Z } from "@tanstack/react-query";
5
4
  import "../../moment-BGjjqtLQ.js";
6
5
  import "../../arrayExtensions-Ce8YopTP.js";
7
- import "react";
8
- import "../../index-9LVJi5JO.js";
9
- import "../../enums/EPaymentType.js";
10
- import "../../hooks/useFlightSearch/useFlightSearch.types.js";
11
- import "../../utils/flightUtils.js";
12
- import '../../assets/_styles4.css';/* empty css */
6
+ import { c as G } from "../../numberUtils-DxNMfbMM.js";
7
+ import K, { useState as k, useEffect as Q } from "react";
8
+ import { G as J } from "../../iconBase-DSKTHwal.js";
9
+ import { d as X, e as O, f as V, g as oo } from "../../index-B9NLqDyM.js";
10
+ import { EPaymentType as P } from "../../enums/EPaymentType.js";
11
+ import { EBaggage as I } from "../../hooks/useFlightSearch/useFlightSearch.types.js";
12
+ import { getAirlineProgram as ro, formatCabinClass as no } from "../../utils/flightUtils.js";
13
+ import '../../assets/BookingOption.css';const U = (i, l, e = l + "s") => i === 1 ? l : e, eo = (i) => i ? i.toLowerCase().replace(/-/g, " ").split(" ").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join(" ") : "", to = "USD";
14
+ function w(i) {
15
+ return J({ attr: { viewBox: "0 0 352 512" }, child: [{ tag: "path", attr: { d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }, child: [] }] })(i);
16
+ }
17
+ const No = ({
18
+ type: i,
19
+ title: l,
20
+ cashValue: e,
21
+ milesValue: F,
22
+ cashFee: p,
23
+ setSelected: b,
24
+ conditions: c,
25
+ slices: s,
26
+ baggages: h,
27
+ program: N
28
+ }) => {
29
+ var S, T, v;
30
+ const { config: A } = z(), { featureFlags: E } = M(), [m, B] = k(!1), [g, H] = k(), { pointsAsCash: L } = $(), t = c == null ? void 0 : c.refundBeforeDeparture, a = c == null ? void 0 : c.changeBeforeDeparture, _ = (t != null && t.allowed ? 1 : 0) + (a != null && a.allowed ? 1 : 0) + (((T = (S = s == null ? void 0 : s[0]) == null ? void 0 : S.segments) == null ? void 0 : T.length) || 0), { data: D } = Z({
31
+ queryKey: ["airlineProgram", N],
32
+ queryFn: () => ro(N),
33
+ enabled: !!N
34
+ });
35
+ return Q(() => {
36
+ E.bookingPaymentMethodFeature === x.FULL_VCC_PARTIAL_DISABLED && q({
37
+ cashAmount: (e == null ? void 0 : e.amount) ?? 0,
38
+ currency: (e == null ? void 0 : e.currency) ?? "",
39
+ pointsAsCash: L
40
+ }).then((r) => {
41
+ L.availablePoints < r && H("Insufficient points balance.");
42
+ });
43
+ }, [e, E]), /* @__PURE__ */ n(
44
+ "div",
45
+ {
46
+ className: "flight-booking-option",
47
+ onClick: (r) => r.stopPropagation(),
48
+ children: [
49
+ /* @__PURE__ */ n("div", { className: "rate-details", children: [
50
+ i === P.POINTS && /* @__PURE__ */ o("img", { src: D == null ? void 0 : D.programLogo }),
51
+ /* @__PURE__ */ o("p", { className: "fare-brand-name", children: eo(l) })
52
+ ] }),
53
+ i === P.CASH && /* @__PURE__ */ n("div", { className: "fare-comparison-content", children: [
54
+ h == null ? void 0 : h.map((r, C) => /* @__PURE__ */ n(K.Fragment, { children: [
55
+ r.type === I.CHECKED && /* @__PURE__ */ n("div", { className: "fare-option checked", children: [
56
+ /* @__PURE__ */ o("p", { children: "Checked bags:" }),
57
+ /* @__PURE__ */ o("p", { children: r.quantity })
58
+ ] }),
59
+ r.type === I.CARRY_ON && /* @__PURE__ */ n("div", { className: "fare-option", children: [
60
+ /* @__PURE__ */ o("p", { children: "Carry-on bags:" }),
61
+ /* @__PURE__ */ o("p", { children: r.quantity })
62
+ ] }),
63
+ r.type === null && /* @__PURE__ */ n("div", { className: "fare-option", children: [
64
+ /* @__PURE__ */ o(X, {}),
65
+ /* @__PURE__ */ o("p", { children: "N/A" })
66
+ ] })
67
+ ] }, C)),
68
+ /* @__PURE__ */ n("div", { className: "fare-option refundable", children: [
69
+ "Refundable:",
70
+ " ",
71
+ t != null && t.allowed ? /* @__PURE__ */ o(O, { className: "yes" }) : /* @__PURE__ */ o(w, { className: "no" })
72
+ ] }),
73
+ /* @__PURE__ */ n("div", { className: "fare-option changeable", children: [
74
+ "Changeable:",
75
+ " ",
76
+ a != null && a.allowed ? /* @__PURE__ */ o(O, { className: "yes" }) : /* @__PURE__ */ o(w, { className: "no" })
77
+ ] }),
78
+ /* @__PURE__ */ n(
79
+ "div",
80
+ {
81
+ className: "fare-option show-more-toggle",
82
+ onClick: (r) => {
83
+ r.stopPropagation(), B(!m);
84
+ },
85
+ children: [
86
+ /* @__PURE__ */ o("p", { children: m ? `Hide ${U(_, "option")}` : `+${_} ${U(_, "option")}` }),
87
+ /* @__PURE__ */ o("p", { children: m ? /* @__PURE__ */ o(V, {}) : /* @__PURE__ */ o(oo, {}) })
88
+ ]
89
+ }
90
+ ),
91
+ m && /* @__PURE__ */ n(d, { children: [
92
+ (t == null ? void 0 : t.allowed) && /* @__PURE__ */ n("div", { className: "fare-option", children: [
93
+ "Refundable Penalty:",
94
+ " ",
95
+ /* @__PURE__ */ o(
96
+ u,
97
+ {
98
+ amount: t.penaltyAmount || 0,
99
+ currency: t.penaltyCurrency || "",
100
+ zeroDisplayOption: f.DISPLAY_AS_ZERO_WITH_CURRENCY,
101
+ position: y.LEFT
102
+ }
103
+ )
104
+ ] }),
105
+ (a == null ? void 0 : a.allowed) && /* @__PURE__ */ n("div", { className: "fare-option", children: [
106
+ "Changeable Penalty:",
107
+ " ",
108
+ /* @__PURE__ */ o(
109
+ u,
110
+ {
111
+ amount: a.penaltyAmount || 0,
112
+ currency: a.penaltyCurrency || "",
113
+ zeroDisplayOption: f.DISPLAY_AS_ZERO_WITH_CURRENCY,
114
+ position: y.LEFT
115
+ }
116
+ )
117
+ ] }),
118
+ (v = s == null ? void 0 : s[0].segments) == null ? void 0 : v.map((r) => {
119
+ var C, R;
120
+ return /* @__PURE__ */ n(
121
+ "div",
122
+ {
123
+ className: "fare-option checked",
124
+ children: [
125
+ /* @__PURE__ */ n("p", { children: [
126
+ r.origin.iataCode,
127
+ " - ",
128
+ r.destination.iataCode,
129
+ ":"
130
+ ] }),
131
+ /* @__PURE__ */ n("div", { children: [
132
+ /* @__PURE__ */ o(
133
+ "img",
134
+ {
135
+ src: r.operatingCarrier.logo ?? r.operatingCarrier.logoSymbolUrl ?? ((C = r.marketingCarrier) == null ? void 0 : C.logo) ?? ((R = r.marketingCarrier) == null ? void 0 : R.logoSymbolUrl),
136
+ onError: (Y) => Y.currentTarget.src = (A == null ? void 0 : A.logoFallbackImageUrl) ?? ""
137
+ }
138
+ ),
139
+ /* @__PURE__ */ o("p", { children: no(r.passengers[0].cabinClass) })
140
+ ] })
141
+ ]
142
+ },
143
+ `${r.origin.iataCode}-${r.destination.iataCode}`
144
+ );
145
+ })
146
+ ] })
147
+ ] }),
148
+ /* @__PURE__ */ o(
149
+ "button",
150
+ {
151
+ onClick: (r) => {
152
+ r.stopPropagation(), b();
153
+ },
154
+ disabled: !!g,
155
+ children: i === P.CASH && e ? /* @__PURE__ */ o(d, { children: g ? /* @__PURE__ */ o("p", { children: g }) : /* @__PURE__ */ n(d, { children: [
156
+ /* @__PURE__ */ o(
157
+ u,
158
+ {
159
+ amount: e.amount,
160
+ currency: e.currency,
161
+ position: y.LEFT,
162
+ zeroDisplayOption: f.DISPLAY_AS_ZERO_WITH_CURRENCY,
163
+ decimalPlaces: 2
164
+ }
165
+ ),
166
+ E.amountsDisplayFeature === W.CASH_AND_CLIENT_POINTS && /* @__PURE__ */ n(d, { children: [
167
+ " / ",
168
+ /* @__PURE__ */ o(
169
+ j,
170
+ {
171
+ currency: e.currency,
172
+ cashAmount: e.amount
173
+ }
174
+ )
175
+ ] })
176
+ ] }) }) : /* @__PURE__ */ n(d, { children: [
177
+ `${G(F)} miles + `,
178
+ /* @__PURE__ */ o(
179
+ u,
180
+ {
181
+ amount: (p == null ? void 0 : p.amount) || 0,
182
+ currency: (p == null ? void 0 : p.currency) || to,
183
+ position: y.LEFT,
184
+ customDisplay: "No fee",
185
+ zeroDisplayOption: f.CUSTOM
186
+ }
187
+ )
188
+ ] })
189
+ }
190
+ )
191
+ ]
192
+ }
193
+ );
194
+ };
13
195
  export {
14
- x as default
196
+ No as default
15
197
  };
@@ -2,9 +2,8 @@ import { jsx as Ye, jsxs as Fp, Fragment as DR } from "react/jsx-runtime";
2
2
  import * as F from "react";
3
3
  import QR, { useState as p_ } from "react";
4
4
  import { a as v_ } from "../../_commonjsHelpers-MdHo5S7N.js";
5
- import { l as h_ } from "../../index-9LVJi5JO.js";
6
- import '../../assets/_styles3.css';/* empty css */
7
- function Bu(v, S, { checkForDefaultPrevented: y = !0 } = {}) {
5
+ import { h as h_ } from "../../index-B9NLqDyM.js";
6
+ import '../../assets/Dialog.css';function Bu(v, S, { checkForDefaultPrevented: y = !0 } = {}) {
8
7
  return function(w) {
9
8
  if (v == null || v(w), y === !1 || !w.defaultPrevented)
10
9
  return S == null ? void 0 : S(w);
@@ -20292,7 +20291,7 @@ var GO = function(v) {
20292
20291
  return w ? (T.push.apply(T, Array.from(w.querySelectorAll("[aria-live], script"))), KO(T, w, y, "aria-hidden")) : function() {
20293
20292
  return null;
20294
20293
  };
20295
- }, ty = "Dialog", [f1, TN] = y_(ty), [ZO, oi] = f1(ty), d1 = (v) => {
20294
+ }, ty = "Dialog", [f1, CN] = y_(ty), [ZO, oi] = f1(ty), d1 = (v) => {
20296
20295
  const {
20297
20296
  __scopeDialog: S,
20298
20297
  children: y,
@@ -20497,7 +20496,7 @@ R1.displayName = T1;
20497
20496
  function YE(v) {
20498
20497
  return v ? "open" : "closed";
20499
20498
  }
20500
- var w1 = "DialogTitleWarning", [RN, x1] = m_(w1, {
20499
+ var w1 = "DialogTitleWarning", [TN, x1] = m_(w1, {
20501
20500
  contentName: ds,
20502
20501
  titleName: $E,
20503
20502
  docsSlug: "dialog"
@@ -20518,7 +20517,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${S.do
20518
20517
  S && w && (document.getElementById(S) || console.warn(T));
20519
20518
  }, [T, v, S]), null;
20520
20519
  }, oN = d1, sN = v1, cN = m1, fN = y1, dN = g1, pN = E1, D1 = R1;
20521
- const wN = ({ trigger: v, children: S, title: y }) => /* @__PURE__ */ Fp(oN, { children: [
20520
+ const RN = ({ trigger: v, children: S, title: y }) => /* @__PURE__ */ Fp(oN, { children: [
20522
20521
  /* @__PURE__ */ Ye(sN, { asChild: !0, onClick: (T) => T.stopPropagation(), children: v }),
20523
20522
  /* @__PURE__ */ Fp(cN, { children: [
20524
20523
  /* @__PURE__ */ Ye(fN, { className: "dialog-backdrop" }),
@@ -20535,8 +20534,8 @@ const wN = ({ trigger: v, children: S, title: y }) => /* @__PURE__ */ Fp(oN, { c
20535
20534
  }
20536
20535
  )
20537
20536
  ] })
20538
- ] }), xN = D1;
20537
+ ] }), wN = D1;
20539
20538
  export {
20540
- xN as DialogClose,
20541
- wN as default
20539
+ wN as DialogClose,
20540
+ RN as default
20542
20541
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@odynn/awayz-core";
3
3
  import "../../dateUtils-Cb9VQiIL.js";
4
- import { F as g } from "../../FlightItinerary-BvAVMr_3.js";
4
+ import { F as g } from "../../FlightItinerary-Bn345w_C.js";
5
5
  import "../../arrayExtensions-Ce8YopTP.js";
6
6
  import "react";
7
7
  import "../../moment-BGjjqtLQ.js";
@@ -6,15 +6,11 @@ import "@tanstack/react-query";
6
6
  import "@odynn/awayz-core";
7
7
  import "../../moment-BGjjqtLQ.js";
8
8
  import "../../arrayExtensions-Ce8YopTP.js";
9
- import { F as c } from "../../FlightItinerary-BvAVMr_3.js";
10
- import "react-i18next";
11
- import "../../utils/flightUtils.js";
12
- import '../../assets/_styles.css';import '../../assets/_styles2.css';import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/FlightItineraryDropdown.css';/* empty css */
13
- /* empty css */
14
- /* empty css */
15
- /* empty css */
9
+ import { F as c } from "../../FlightItinerary-Bn345w_C.js";
10
+ import '../../assets/_styles.css';import '../../assets/FlightItineraryDropdown.css';/* empty css */
16
11
  import { MiniFlightItinerary as l } from "../MiniFlightItinerary/MiniFlightItinerary.js";
17
- const P = ({
12
+ import "../../utils/flightUtils.js";
13
+ const L = ({
18
14
  flightDetails: o,
19
15
  onOpenChange: i
20
16
  }) => {
@@ -24,10 +20,10 @@ const P = ({
24
20
  "div",
25
21
  {
26
22
  className: "itinerary-dropdown-header",
27
- onClick: (m) => {
28
- m.stopPropagation();
29
- const p = !t;
30
- i == null || i(p), e((n) => !n);
23
+ onClick: (n) => {
24
+ n.stopPropagation();
25
+ const m = !t;
26
+ i == null || i(m), e((p) => !p);
31
27
  },
32
28
  children: [
33
29
  /* @__PURE__ */ r(l, { flightDetails: o }),
@@ -44,5 +40,5 @@ const P = ({
44
40
  ] });
45
41
  };
46
42
  export {
47
- P as FlightItineraryDropdown
43
+ L as FlightItineraryDropdown
48
44
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as L, jsx as o } from "react/jsx-runtime";
2
2
  import { useRef as C, useState as n, useEffect as A } from "react";
3
- import { F as E, a as R } from "../../index-9LVJi5JO.js";
4
- import '../../assets/_styles2.css';/* empty css */
3
+ import { F as E, a as R } from "../../index-B9NLqDyM.js";
4
+ import '../../assets/_styles.css';/* empty css */
5
5
  const F = ({
6
6
  children: i,
7
7
  className: d = ""
@@ -1,8 +1,8 @@
1
- import { jsxs as o, Fragment as b, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as o, Fragment as Z, jsx as e } from "react/jsx-runtime";
2
2
  import { c as v, b as f } from "../../dateUtils-Cb9VQiIL.js";
3
3
  import "../../arrayExtensions-Ce8YopTP.js";
4
4
  import { useMemo as y } from "react";
5
- import { g as C, d as N } from "../../index-9LVJi5JO.js";
5
+ import { b as C, c as N } from "../../index-B9NLqDyM.js";
6
6
  import { a as D, b as F, c as k } from "../../index-Kopwbl-x.js";
7
7
  import '../../assets/MiniFlightItinerary.css';const I = ({
8
8
  flightDetails: A
@@ -11,7 +11,7 @@ import '../../assets/MiniFlightItinerary.css';const I = ({
11
11
  var t, l, d, n, m, h, g, u;
12
12
  const i = [];
13
13
  for (let c = 0; c < a.length; c++) {
14
- const r = a[c], s = a[c + 1], L = v({
14
+ const r = a[c], s = a[c + 1], b = v({
15
15
  departureAt: r.departingAt,
16
16
  departureTimeZone: r.origin.timeZone,
17
17
  arrivalAt: r.arrivingAt,
@@ -26,10 +26,10 @@ import '../../assets/MiniFlightItinerary.css';const I = ({
26
26
  code: (d = r.destination) == null ? void 0 : d.iataCode,
27
27
  airport: (n = r.destination) == null ? void 0 : n.name
28
28
  },
29
- time: L
29
+ time: b
30
30
  }), !s)
31
31
  break;
32
- const Z = v({
32
+ const L = v({
33
33
  departureAt: r.arrivingAt,
34
34
  departureTimeZone: r.destination.timeZone,
35
35
  arrivalAt: s.departingAt,
@@ -44,7 +44,7 @@ import '../../assets/MiniFlightItinerary.css';const I = ({
44
44
  code: (g = s.origin) == null ? void 0 : g.iataCode,
45
45
  airport: (u = s.origin) == null ? void 0 : u.name
46
46
  },
47
- time: Z,
47
+ time: L,
48
48
  isLayover: !0
49
49
  });
50
50
  }
@@ -58,7 +58,7 @@ import '../../assets/MiniFlightItinerary.css';const I = ({
58
58
  }
59
59
  return i.push(((d = (l = a.getLast()) == null ? void 0 : l.destination) == null ? void 0 : d.iataCode) ?? ""), i;
60
60
  }, [a]);
61
- return /* @__PURE__ */ o(b, { children: [
61
+ return /* @__PURE__ */ o(Z, { children: [
62
62
  /* @__PURE__ */ e("div", { className: "mobile-mini-flight-itinerary", children: p.map((i, t) => /* @__PURE__ */ o("div", { children: [
63
63
  /* @__PURE__ */ e("p", { children: i }),
64
64
  t < p.length - 1 && /* @__PURE__ */ e(D, {})
@@ -1,13 +1,11 @@
1
- import { F as p } from "../FlightItinerary-BvAVMr_3.js";
2
- import { FlightItineraryDropdown as l } from "./FlightItineraryDropdown/FlightItineraryDropdown.js";
3
- import { FlightResult as F } from "./FlightResult/FlightResult.js";
1
+ import { F as e } from "../FlightItinerary-Bn345w_C.js";
2
+ import { FlightItineraryDropdown as n } from "./FlightItineraryDropdown/FlightItineraryDropdown.js";
4
3
  import "react/jsx-runtime";
5
4
  import "react";
6
- import '../assets/_styles2.css';/* empty css */
7
- import { MiniFlightItinerary as f } from "./MiniFlightItinerary/MiniFlightItinerary.js";
5
+ import '../assets/_styles.css';/* empty css */
6
+ import { MiniFlightItinerary as F } from "./MiniFlightItinerary/MiniFlightItinerary.js";
8
7
  export {
9
- p as FlightItinerary,
10
- l as FlightItineraryDropdown,
11
- F as FlightResult,
12
- f as MiniFlightItinerary
8
+ e as FlightItinerary,
9
+ n as FlightItineraryDropdown,
10
+ F as MiniFlightItinerary
13
11
  };