@odynn/awayz-core 0.4.8 → 0.4.10

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.
@@ -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";@media (prefers-color-scheme: dark){body[data-theme=auto]{--background: #14181f;--opaque-background: #20242880;--foreground: #22272d;--text: #c3c9d2;--text-light: #c3c9d260;--border: #3b4048}}@media (prefers-color-scheme: light){body[data-theme=auto]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}}body[data-theme=light]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}*{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}.currency-conversion svg{fill:#1495f2;transform:scaleX(.75)}.tooltip-content{border-radius:.5rem;border:1px solid var(--border, #e7eef3);padding:1rem;line-height:1;background-color:var(--foreground, #fff);animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-fill-mode:both;will-change:transform,opacity;z-index:500;position:absolute}.currency-conversion-container{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:1rem}.currency-conversion-container>p{font-weight:600}.currency-conversion-container .currency-conversion-amounts{position:relative;display:flex;align-items:center;width:100vw;max-width:300px;border:1px solid var(--border, #e7eef3);border-radius:.5rem}.currency-conversion-container .currency-conversion-amounts div{flex:1;width:50%;padding:1rem;font-weight:600}.currency-conversion-container .currency-conversion-amounts div:first-of-type{border-right:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--foreground, #fff);color:#1495f2;height:2rem;width:2rem;display:flex;align-items:center;justify-content:center;border:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon svg{fill:#1495f2;width:1rem;height:1rem;transform:scaleX(.75)}.currency-conversion-container .currency-conversion-rate{padding:.5rem 1rem;border-radius:.5rem;background-color:var(--border, #e7eef3);font-size:.8rem}.tooltip-arrow{fill:var(--foreground, #fff)}.tooltip-content[data-state=delayed-open][data-side=top]{animation-name:tooltip-down}.tooltip-content[data-state=delayed-open][data-side=right]{animation-name:tooltip-right}.tooltip-content[data-state=delayed-open][data-side=bottom]{animation-name:tooltip-up}.tooltip-content[data-state=delayed-open][data-side=left]{animation-name:tooltip-left}@keyframes tooltip-up{0%{opacity:0;transform:translateY(4px) translate(-50%)}to{opacity:1;transform:translateY(0) translate(-50%)}}@keyframes tooltip-down{0%{opacity:0;transform:translateY(calc(-100% - 4px)) translate(-50%)}to{opacity:1;transform:translateY(-100%) translate(-50%)}}@keyframes tooltip-left{0%{opacity:0;transform:translate(calc(-100% - 4px)) translateY(-50%)}to{opacity:1;transform:translate(-100%) translateY(-50%)}}@keyframes tooltip-right{0%{opacity:0;transform:translate(-4px) translateY(-50%)}to{opacity:1;transform:translate(0) translateY(-50%)}}
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}.currency-conversion svg{fill:var(--primary, #1495f2);transform:scaleX(.75)}.tooltip-content{border-radius:.5rem;border:1px solid var(--border, #e7eef3);padding:1rem;line-height:1;background-color:var(--foreground, #fff);animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-fill-mode:both;will-change:transform,opacity;z-index:500;position:absolute}.currency-conversion-container{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:1rem}.currency-conversion-container>p{font-weight:600}.currency-conversion-container .currency-conversion-amounts{position:relative;display:flex;align-items:center;width:100vw;max-width:300px;border:1px solid var(--border, #e7eef3);border-radius:.5rem}.currency-conversion-container .currency-conversion-amounts div{flex:1;width:50%;padding:1rem;font-weight:600}.currency-conversion-container .currency-conversion-amounts div:first-of-type{border-right:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--foreground, #fff);color:var(--primary, #1495f2);height:2rem;width:2rem;display:flex;align-items:center;justify-content:center;border:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon svg{fill:var(--primary, #1495f2);width:1rem;height:1rem;transform:scaleX(.75)}.currency-conversion-container .currency-conversion-rate{padding:.5rem 1rem;border-radius:.5rem;background-color:var(--border, #e7eef3);font-size:.8rem}.tooltip-arrow{fill:var(--foreground, #fff)}.tooltip-content[data-state=delayed-open][data-side=top]{animation-name:tooltip-down}.tooltip-content[data-state=delayed-open][data-side=right]{animation-name:tooltip-right}.tooltip-content[data-state=delayed-open][data-side=bottom]{animation-name:tooltip-up}.tooltip-content[data-state=delayed-open][data-side=left]{animation-name:tooltip-left}@keyframes tooltip-up{0%{opacity:0;transform:translateY(4px) translate(-50%)}to{opacity:1;transform:translateY(0) translate(-50%)}}@keyframes tooltip-down{0%{opacity:0;transform:translateY(calc(-100% - 4px)) translate(-50%)}to{opacity:1;transform:translateY(-100%) translate(-50%)}}@keyframes tooltip-left{0%{opacity:0;transform:translate(calc(-100% - 4px)) translateY(-50%)}to{opacity:1;transform:translate(-100%) translateY(-50%)}}@keyframes tooltip-right{0%{opacity:0;transform:translate(-4px) translateY(-50%)}to{opacity:1;transform:translate(0) translateY(-50%)}}
@@ -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";@media (prefers-color-scheme: dark){body[data-theme=auto]{--background: #14181f;--opaque-background: #20242880;--foreground: #22272d;--text: #c3c9d2;--text-light: #c3c9d260;--border: #3b4048}}@media (prefers-color-scheme: light){body[data-theme=auto]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}}body[data-theme=light]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}*{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}.card{background-color:#14181f;padding:1rem;border-radius:1rem;display:flex;justify-content:space-between;height:150px;aspect-ratio:1.8;position:relative;overflow:hidden}.card p{color:#f9fdff;font-weight:600;z-index:1}.card p.light{color:#14181f}.card .remove-button{cursor:pointer;z-index:5;display:none;border-radius:.5rem;position:absolute;top:0;right:0;transform:translate(-50%) translateY(50%);height:1.75rem;width:1.75rem;padding:0;background-color:#f9fdff;justify-content:center;align-items:center}.card .remove-button span{position:fixed;color:#14181f;display:flex;justify-content:center;align-items:center}.card:hover .remove-button{display:flex}.card .logo{height:50px;max-width:100px}.card>.logo-watermark-container{position:absolute;left:0;top:0;bottom:0;right:0;overflow:hidden}.card>.logo-watermark-container>.logo-watermark{position:absolute;right:-5%;height:100%;max-width:200px;transform:scale(2);opacity:.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}.card{background-color:var(--dark, #14181f);padding:1rem;border-radius:1rem;display:flex;justify-content:space-between;height:150px;aspect-ratio:1.8;position:relative;overflow:hidden}.card p{color:var(--light, #f9fdff);font-weight:600;z-index:1}.card p.light{color:var(--dark, #14181f)}.card .remove-button{cursor:pointer;z-index:5;display:none;border-radius:.5rem;position:absolute;top:0;right:0;transform:translate(-50%) translateY(50%);height:1.75rem;width:1.75rem;padding:0;background-color:var(--light, #f9fdff);justify-content:center;align-items:center}.card .remove-button span{position:fixed;color:var(--dark, #14181f);display:flex;justify-content:center;align-items:center}.card:hover .remove-button{display:flex}.card .logo{height:50px;max-width:100px}.card>.logo-watermark-container{position:absolute;left:0;top:0;bottom:0;right:0;overflow:hidden}.card>.logo-watermark-container>.logo-watermark{position:absolute;right:-5%;height:100%;max-width:200px;transform:scale(2);opacity:.1}
@@ -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";@media (prefers-color-scheme: dark){body[data-theme=auto]{--background: #14181f;--opaque-background: #20242880;--foreground: #22272d;--text: #c3c9d2;--text-light: #c3c9d260;--border: #3b4048}}@media (prefers-color-scheme: light){body[data-theme=auto]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}}body[data-theme=light]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}*{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}.selected-flight-card{width:380px;padding:1px;border-radius:.5rem;position:relative;overflow:hidden;background:linear-gradient(90deg,transparent 0%,transparent 10%,var(--border, #e7eef3) 10%,var(--border, #e7eef3) 90%,transparent 90%,transparent 100%);animation:fade-in .3s ease-in-out both;transition:all .2s ease-in-out;cursor:pointer}.selected-flight-card:nth-child(1){animation-delay:.1s}.selected-flight-card:nth-child(2){animation-delay:.2s}.selected-flight-card:nth-child(3){animation-delay:.3s}.selected-flight-card:nth-child(4){animation-delay:.4s}.selected-flight-card:nth-child(5){animation-delay:.5s}.selected-flight-card:nth-child(6){animation-delay:.6s}.selected-flight-card:nth-child(7){animation-delay:.7s}.selected-flight-card:nth-child(8){animation-delay:.8s}.selected-flight-card:nth-child(9){animation-delay:.9s}.selected-flight-card:nth-child(10){animation-delay:1s}.selected-flight-card:hover{filter:drop-shadow(0px 0px 20px rgba(2,66,109,.1))}.selected-flight-card:before{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:30px;width:30px;border-radius:100%;border:14rem solid var(--border, #e7eef3);top:180px;left:0;transform:translate(-50%,-50%)}.selected-flight-card:after{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:30px;width:30px;border-radius:100%;border:14rem solid var(--border, #e7eef3);top:180px;right:0;transform:translate(50%,-50%)}.selected-flight-card .cancelled-notice{background-color:#ff7f2f1a;font-weight:600;padding:.25rem;border-radius:.5rem;border:2px solid #ff7f2f;color:#ff7f2f;font-size:.8rem;text-align:center;width:fit-content}.selected-flight-card .content{overflow:hidden;padding:1rem;padding-bottom:0;border-radius:.4rem;width:100%;margin:0 auto;position:relative;height:100%;z-index:1;display:flex;flex-direction:column;gap:1rem;background:linear-gradient(90deg,transparent 0%,transparent 10%,var(--foreground, #fff) 10%,var(--foreground, #fff) 90%,transparent 90%,transparent 100%)}.selected-flight-card .content *{z-index:2}.selected-flight-card .content:before{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:31px;width:31px;border-radius:100%;border:14rem solid var(--foreground, #fff);top:179px;left:-1.5px;transform:translate(-50%,-50%)}.selected-flight-card .content:after{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:31px;width:31px;border-radius:100%;border:14rem solid var(--foreground, #fff);top:179px;right:-1px;transform:translate(49.99%,-50%)}.selected-flight-card .top-section{flex:1;min-height:calc(160px - 1rem)}.selected-flight-card .top-section .header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.selected-flight-card .top-section .header>div{display:flex;align-items:center;gap:.5rem}.selected-flight-card .top-section .header .airline-logo,.selected-flight-card .top-section .header .airline-logo img{max-height:20px}.selected-flight-card .top-section .header .id-and-icon{display:flex;align-items:center;gap:1rem}.selected-flight-card .top-section .header .id-and-icon>span{font-weight:700}.selected-flight-card .top-section .header .id-and-icon .context-button{display:flex;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem;color:var(--text-light, rgba(37, 46, 52, .2509803922));cursor:pointer}.selected-flight-card .top-section .header .id-and-icon .context-button:hover{background-color:var(--border, #e7eef3)}.selected-flight-card .top-section .flight{display:flex;align-items:center;font-size:1.8rem;position:relative;justify-content:space-between}.selected-flight-card .top-section .flight *{z-index:2}.selected-flight-card .top-section .flight .flight-trail{margin:5px 0;height:2px;background:repeating-linear-gradient(90deg,var(--border, #e7eef3) 0 20px,rgba(0,0,0,0) 0 30px);width:80%;position:absolute;left:50%;transform:translate(-50%);z-index:1}.selected-flight-card .top-section .flight svg{fill:#d8e3ea}.selected-flight-card .top-section .flight>p{font-weight:600;background-color:var(--foreground, #fff)}.selected-flight-card .top-section .flight .departure-title{padding-right:.5rem}.selected-flight-card .top-section .flight .arrival-title{padding-left:.5rem}.selected-flight-card .top-section .flight-details .destination span{font-size:1rem;font-weight:400}.selected-flight-card .top-section .flight-details .destination span:last-child{text-align:right}.selected-flight-card .top-section .flight-details .time p{color:var(--text-light, rgba(37, 46, 52, .2509803922))}.selected-flight-card .top-section .flight-details .destination,.selected-flight-card .top-section .flight-details .time{display:flex;justify-content:space-between}.selected-flight-card .mid-section{height:10px}.selected-flight-card .mid-section .dashes{position:absolute;top:179px;left:20px;right:20px;border:dashed 2px var(--border, #e7eef3)}.selected-flight-card .bottom-section{display:flex;flex-direction:column;gap:1rem;font-size:.8rem}.selected-flight-card .bottom-section .bottom-header{display:flex;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem}.selected-flight-card .bottom-section .bottom-header .id-and-icon{display:flex;gap:1rem}.selected-flight-card .bottom-section .bottom-header .id-and-icon>span{font-weight:700}.selected-flight-card .bottom-section .bottom-header .id-and-icon .copy-icon{font-size:larger}.selected-flight-card .bottom-section .bottom-section-details{display:flex;gap:1rem}.selected-flight-card .bottom-section .bottom-section-details>div{display:flex;width:50%;justify-content:space-between;margin-bottom:1rem;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem}.selected-flight-card .bottom-section .bottom-section-details>div>span{font-weight:700}
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}.selected-flight-card{width:380px;padding:1px;border-radius:.5rem;position:relative;overflow:hidden;background:linear-gradient(90deg,transparent 0%,transparent 10%,var(--border, #e7eef3) 10%,var(--border, #e7eef3) 90%,transparent 90%,transparent 100%);animation:fade-in .3s ease-in-out both;transition:all .2s ease-in-out;cursor:pointer}.selected-flight-card:nth-child(1){animation-delay:.1s}.selected-flight-card:nth-child(2){animation-delay:.2s}.selected-flight-card:nth-child(3){animation-delay:.3s}.selected-flight-card:nth-child(4){animation-delay:.4s}.selected-flight-card:nth-child(5){animation-delay:.5s}.selected-flight-card:nth-child(6){animation-delay:.6s}.selected-flight-card:nth-child(7){animation-delay:.7s}.selected-flight-card:nth-child(8){animation-delay:.8s}.selected-flight-card:nth-child(9){animation-delay:.9s}.selected-flight-card:nth-child(10){animation-delay:1s}.selected-flight-card:hover{filter:drop-shadow(0px 0px 20px rgba(2,66,109,.1))}.selected-flight-card:before{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:30px;width:30px;border-radius:100%;border:14rem solid var(--border, #e7eef3);top:180px;left:0;transform:translate(-50%,-50%)}.selected-flight-card:after{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:30px;width:30px;border-radius:100%;border:14rem solid var(--border, #e7eef3);top:180px;right:0;transform:translate(50%,-50%)}.selected-flight-card .cancelled-notice{background-color:rgba(var(--warning, #ff7f2f),.1);font-weight:600;padding:.25rem;border-radius:.5rem;border:2px solid var(--warning, #ff7f2f);color:var(--warning, #ff7f2f);font-size:.8rem;text-align:center;width:fit-content}.selected-flight-card .content{overflow:hidden;padding:1rem;padding-bottom:0;border-radius:.4rem;width:100%;margin:0 auto;position:relative;height:100%;z-index:1;display:flex;flex-direction:column;gap:1rem;background:linear-gradient(90deg,transparent 0%,transparent 10%,var(--foreground, #fff) 10%,var(--foreground, #fff) 90%,transparent 90%,transparent 100%)}.selected-flight-card .content *{z-index:2}.selected-flight-card .content:before{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:31px;width:31px;border-radius:100%;border:14rem solid var(--foreground, #fff);top:179px;left:-1.5px;transform:translate(-50%,-50%)}.selected-flight-card .content:after{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:31px;width:31px;border-radius:100%;border:14rem solid var(--foreground, #fff);top:179px;right:-1px;transform:translate(49.99%,-50%)}.selected-flight-card .top-section{flex:1;min-height:calc(160px - 1rem)}.selected-flight-card .top-section .header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.selected-flight-card .top-section .header>div{display:flex;align-items:center;gap:.5rem}.selected-flight-card .top-section .header .airline-logo,.selected-flight-card .top-section .header .airline-logo img{max-height:20px}.selected-flight-card .top-section .header .id-and-icon{display:flex;align-items:center;gap:1rem}.selected-flight-card .top-section .header .id-and-icon>span{font-weight:700}.selected-flight-card .top-section .header .id-and-icon .context-button{display:flex;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem;color:var(--text-light, rgba(37, 46, 52, .2509803922));cursor:pointer}.selected-flight-card .top-section .header .id-and-icon .context-button:hover{background-color:var(--border, #e7eef3)}.selected-flight-card .top-section .flight{display:flex;align-items:center;font-size:1.8rem;position:relative;justify-content:space-between}.selected-flight-card .top-section .flight *{z-index:2}.selected-flight-card .top-section .flight .flight-trail{margin:5px 0;height:2px;background:repeating-linear-gradient(90deg,var(--border, #e7eef3) 0 20px,rgba(0,0,0,0) 0 30px);width:80%;position:absolute;left:50%;transform:translate(-50%);z-index:1}.selected-flight-card .top-section .flight svg{fill:#d8e3ea}.selected-flight-card .top-section .flight>p{font-weight:600;background-color:var(--foreground, #fff)}.selected-flight-card .top-section .flight .departure-title{padding-right:.5rem}.selected-flight-card .top-section .flight .arrival-title{padding-left:.5rem}.selected-flight-card .top-section .flight-details .destination span{font-size:1rem;font-weight:400}.selected-flight-card .top-section .flight-details .destination span:last-child{text-align:right}.selected-flight-card .top-section .flight-details .time p{color:var(--text-light, rgba(37, 46, 52, .2509803922))}.selected-flight-card .top-section .flight-details .destination,.selected-flight-card .top-section .flight-details .time{display:flex;justify-content:space-between}.selected-flight-card .mid-section{height:10px}.selected-flight-card .mid-section .dashes{position:absolute;top:179px;left:20px;right:20px;border:dashed 2px var(--border, #e7eef3)}.selected-flight-card .bottom-section{display:flex;flex-direction:column;gap:1rem;font-size:.8rem}.selected-flight-card .bottom-section .bottom-header{display:flex;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem}.selected-flight-card .bottom-section .bottom-header .id-and-icon{display:flex;gap:1rem}.selected-flight-card .bottom-section .bottom-header .id-and-icon>span{font-weight:700}.selected-flight-card .bottom-section .bottom-header .id-and-icon .copy-icon{font-size:larger}.selected-flight-card .bottom-section .bottom-section-details{display:flex;gap:1rem}.selected-flight-card .bottom-section .bottom-section-details>div{display:flex;width:50%;justify-content:space-between;margin-bottom:1rem;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem}.selected-flight-card .bottom-section .bottom-section-details>div>span{font-weight:700}
@@ -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";@media (prefers-color-scheme: dark){body[data-theme=auto]{--background: #14181f;--opaque-background: #20242880;--foreground: #22272d;--text: #c3c9d2;--text-light: #c3c9d260;--border: #3b4048}}@media (prefers-color-scheme: light){body[data-theme=auto]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}}body[data-theme=light]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}*{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}button{all:unset}.menubar-root{display:flex;background-color:var(--foreground, #fff);border-radius:.25rem}.menubar-trigger{border:1px solid var(--border, #e7eef3);padding:.5rem;outline:none;-webkit-user-select:none;user-select:none;font-weight:500;line-height:1;border-radius:4px;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:2px}.menubar-trigger[data-highlighted],.menubar-trigger[data-state=open]{background-color:var(--background, #f9fdff)}.menubar-content,.menubar-sub-content{min-width:220px;background-color:var(--foreground, #fff);border-radius:.25rem;padding:.5rem;animation-duration:.2s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity;border:1px solid var(--border, #e7eef3)}.menubar-sub-content{position:inherit;right:0;transform:translate(8px,35px)}.menubar-item,.menubar-sub-trigger,.menubar-checkbox-item,.menubar-radio-item{all:unset;font-size:13px;line-height:1;border-radius:4px;display:flex;align-items:center;height:25px;padding:0 10px;position:relative;-webkit-user-select:none;user-select:none}.menubar-item.inset,.menubar-sub-trigger.inset,.menubar-checkbox-item.inset,.menubar-radio-item.inset{padding-left:20px}.menubar-item[data-state=open],.menubar-sub-trigger[data-state=open]{background-color:var(--background, #f9fdff)}.menubar-item[data-highlighted],.menubar-sub-trigger[data-highlighted],.menubar-checkbox-item[data-highlighted],.menubar-radio-item[data-highlighted]{background-color:var(--background, #f9fdff);cursor:pointer}.menubar-item[data-disabled],.menubar-sub-trigger[data-disabled],.menubar-checkbox-item[data-disabled],.menubar-radio-item[data-disabled]{pointer-events:none;opacity:.3}.menubar-item-indicator{position:absolute;left:0;width:20px;display:inline-flex;align-items:center;justify-content:center}.menubar-separator{height:1px;margin:5px}.right-slot{margin-left:auto;padding-left:20px}
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}button{all:unset}.menubar-root{display:flex;background-color:var(--foreground, #fff);border-radius:.25rem}.menubar-trigger{border:1px solid var(--border, #e7eef3);padding:.5rem;outline:none;-webkit-user-select:none;user-select:none;font-weight:500;line-height:1;border-radius:4px;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:2px}.menubar-trigger[data-highlighted],.menubar-trigger[data-state=open]{background-color:var(--background, #f9fdff)}.menubar-content,.menubar-sub-content{min-width:220px;background-color:var(--foreground, #fff);border-radius:.25rem;padding:.5rem;animation-duration:.2s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity;border:1px solid var(--border, #e7eef3)}.menubar-sub-content{position:inherit;right:0;transform:translate(8px,35px)}.menubar-item,.menubar-sub-trigger,.menubar-checkbox-item,.menubar-radio-item{all:unset;font-size:13px;line-height:1;border-radius:4px;display:flex;align-items:center;height:25px;padding:0 10px;position:relative;-webkit-user-select:none;user-select:none}.menubar-item.inset,.menubar-sub-trigger.inset,.menubar-checkbox-item.inset,.menubar-radio-item.inset{padding-left:20px}.menubar-item[data-state=open],.menubar-sub-trigger[data-state=open]{background-color:var(--background, #f9fdff)}.menubar-item[data-highlighted],.menubar-sub-trigger[data-highlighted],.menubar-checkbox-item[data-highlighted],.menubar-radio-item[data-highlighted]{background-color:var(--background, #f9fdff);cursor:pointer}.menubar-item[data-disabled],.menubar-sub-trigger[data-disabled],.menubar-checkbox-item[data-disabled],.menubar-radio-item[data-disabled]{pointer-events:none;opacity:.3}.menubar-item-indicator{position:absolute;left:0;width:20px;display:inline-flex;align-items:center;justify-content:center}.menubar-separator{height:1px;margin:5px}.right-slot{margin-left:auto;padding-left:20px}
@@ -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";@media (prefers-color-scheme: dark){body[data-theme=auto]{--background: #14181f;--opaque-background: #20242880;--foreground: #22272d;--text: #c3c9d2;--text-light: #c3c9d260;--border: #3b4048}}@media (prefers-color-scheme: light){body[data-theme=auto]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}}body[data-theme=light]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}*{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}.selected-hotel-card{width:380px;height:auto;border:1px solid var(--border, #e7eef3);border-radius:.5rem;display:flex;flex-direction:column;background-color:var(--foreground, #fff);overflow:hidden;transition:all .2s ease-in-out;animation:fade-in .3s ease-in-out both}.selected-hotel-card:nth-child(1){animation-delay:.1s}.selected-hotel-card:nth-child(2){animation-delay:.2s}.selected-hotel-card:nth-child(3){animation-delay:.3s}.selected-hotel-card:nth-child(4){animation-delay:.4s}.selected-hotel-card:nth-child(5){animation-delay:.5s}.selected-hotel-card:nth-child(6){animation-delay:.6s}.selected-hotel-card:nth-child(7){animation-delay:.7s}.selected-hotel-card:nth-child(8){animation-delay:.8s}.selected-hotel-card:nth-child(9){animation-delay:.9s}.selected-hotel-card:nth-child(10){animation-delay:1s}.selected-hotel-card .cancelled-notice{background-color:#ff7f2f1a;font-weight:600;padding:.25rem;border-radius:.5rem;border:2px solid #ff7f2f;color:#ff7f2f;font-size:.8rem;text-align:center;width:fit-content}.selected-hotel-card:hover{box-shadow:0 0 20px #02426d1a;cursor:pointer}.selected-hotel-card:hover .hotel-image{background-size:105%}.selected-hotel-card .hotel-image{width:100%;height:200px;padding:.5rem;background-repeat:no-repeat;background-position:center;background-size:100%;display:flex;justify-content:space-between;align-items:flex-start;transition:all .2s ease-in-out}.selected-hotel-card .hotel-image .hotel-chain{display:flex;justify-content:center;gap:.5rem;border:2px solid #fff;padding:.25rem;border-radius:.25rem;background-color:#fffc;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.selected-hotel-card .hotel-image .context-button{display:flex;right:0;color:var(--text-light, rgba(37, 46, 52, .2509803922));background-color:var(--foreground, #fff);padding:.5rem;border-radius:.25rem;transition:all .3s ease-in-out;cursor:pointer}.selected-hotel-card .hotel-image .context-button:hover{background-color:var(--border, #e7eef3)}.selected-hotel-card .bottom-content{display:flex;flex-direction:column;padding:1rem;flex:1;gap:.5rem}.selected-hotel-card .bottom-content .hotel-title{display:flex;flex-direction:column;gap:.25rem;flex:1}.selected-hotel-card .bottom-content .hotel-title>p{font-size:1rem;font-weight:600}.selected-hotel-card .bottom-content .hotel-title>div{display:flex;align-items:center;gap:.5rem;font-size:.8rem;opacity:.6}.selected-hotel-card .bottom-content span{border-left:1px solid var(--border, #e7eef3);height:100%}.selected-hotel-card .bottom-content .hotel-details{display:flex;justify-content:space-between;font-size:.8rem}.selected-hotel-card .bottom-content .hotel-details>div{display:flex;gap:1rem;align-items:center}.selected-hotel-card .bottom-content .hotel-details>div>hr{height:1rem;border:1px solid var(--border, #e7eef3)}.selected-hotel-card .bottom-content .hotel-details .id-and-icon{font-weight:700}.selected-hotel-card .bottom-content .hotel-details .id-and-icon .copy-icon{font-size:larger}
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}.selected-hotel-card{width:380px;height:auto;border:1px solid var(--border, #e7eef3);border-radius:.5rem;display:flex;flex-direction:column;background-color:var(--foreground, #fff);overflow:hidden;transition:all .2s ease-in-out;animation:fade-in .3s ease-in-out both}.selected-hotel-card:nth-child(1){animation-delay:.1s}.selected-hotel-card:nth-child(2){animation-delay:.2s}.selected-hotel-card:nth-child(3){animation-delay:.3s}.selected-hotel-card:nth-child(4){animation-delay:.4s}.selected-hotel-card:nth-child(5){animation-delay:.5s}.selected-hotel-card:nth-child(6){animation-delay:.6s}.selected-hotel-card:nth-child(7){animation-delay:.7s}.selected-hotel-card:nth-child(8){animation-delay:.8s}.selected-hotel-card:nth-child(9){animation-delay:.9s}.selected-hotel-card:nth-child(10){animation-delay:1s}.selected-hotel-card .cancelled-notice{background-color:rgba(var(--warning, #ff7f2f),.1);font-weight:600;padding:.25rem;border-radius:.5rem;border:2px solid var(--warning, #ff7f2f);color:var(--warning, #ff7f2f);font-size:.8rem;text-align:center;width:fit-content}.selected-hotel-card:hover{box-shadow:0 0 20px #02426d1a;cursor:pointer}.selected-hotel-card:hover .hotel-image{background-size:105%}.selected-hotel-card .hotel-image{width:100%;height:200px;padding:.5rem;background-repeat:no-repeat;background-position:center;background-size:100%;display:flex;justify-content:space-between;align-items:flex-start;transition:all .2s ease-in-out}.selected-hotel-card .hotel-image .hotel-chain{display:flex;justify-content:center;gap:.5rem;border:2px solid #fff;padding:.25rem;border-radius:.25rem;background-color:#fffc;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.selected-hotel-card .hotel-image .context-button{display:flex;right:0;color:var(--text-light, rgba(37, 46, 52, .2509803922));background-color:var(--foreground, #fff);padding:.5rem;border-radius:.25rem;transition:all .3s ease-in-out;cursor:pointer}.selected-hotel-card .hotel-image .context-button:hover{background-color:var(--border, #e7eef3)}.selected-hotel-card .bottom-content{display:flex;flex-direction:column;padding:1rem;flex:1;gap:.5rem}.selected-hotel-card .bottom-content .hotel-title{display:flex;flex-direction:column;gap:.25rem;flex:1}.selected-hotel-card .bottom-content .hotel-title>p{font-size:1rem;font-weight:600}.selected-hotel-card .bottom-content .hotel-title>div{display:flex;align-items:center;gap:.5rem;font-size:.8rem;opacity:.6}.selected-hotel-card .bottom-content span{border-left:1px solid var(--border, #e7eef3);height:100%}.selected-hotel-card .bottom-content .hotel-details{display:flex;justify-content:space-between;font-size:.8rem}.selected-hotel-card .bottom-content .hotel-details>div{display:flex;gap:1rem;align-items:center}.selected-hotel-card .bottom-content .hotel-details>div>hr{height:1rem;border:1px solid var(--border, #e7eef3)}.selected-hotel-card .bottom-content .hotel-details .id-and-icon{font-weight:700}.selected-hotel-card .bottom-content .hotel-details .id-and-icon .copy-icon{font-size:larger}
@@ -1,25 +1,25 @@
1
1
  import { useQuery as a, useMutation as s } from "@tanstack/react-query";
2
- import { EBookingType as e } from "../../services/trips/TripService.types.js";
3
2
  import "../../arrayExtensions-DlcBOj5a.js";
4
3
  import { E as t } from "../../AccountService-DdcBI9BS.js";
5
4
  import "react";
6
- import { BookingService as o } from "../../services/bookings/BookingService.js";
7
5
  import "react/jsx-runtime";
8
6
  import "../../context/AwayzContext.js";
9
7
  import { awayzClient as n } from "../../configs/awayzClient.js";
8
+ import { EBookingType as e } from "../../services/trips/TripService.types.js";
10
9
  import "../../services/noRetryInstance.js";
11
10
  import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
12
11
  /* empty css */
13
12
  /* empty css */
14
13
  /* empty css */
15
14
  /* empty css */
16
- const A = (r, i) => {
15
+ import { BookingService as o } from "../../services/bookings/BookingService.js";
16
+ const z = (r, i) => {
17
17
  const {
18
18
  data: l,
19
19
  isError: c,
20
20
  error: u
21
21
  } = a({
22
- queryKey: [t.BOOKING, r, i],
22
+ queryKey: [t.BOOKING, r, e.HOTEL],
23
23
  queryFn: () => o.getHotelBooking(r),
24
24
  enabled: i === e.HOTEL && !!r
25
25
  }), {
@@ -27,15 +27,15 @@ const A = (r, i) => {
27
27
  isError: B,
28
28
  error: E
29
29
  } = a({
30
- queryKey: [t.BOOKING, r, i],
30
+ queryKey: [t.BOOKING, r, e.FLIGHT],
31
31
  queryFn: () => o.getFlightBooking(r),
32
32
  enabled: i === e.FLIGHT && !!r
33
33
  }), {
34
34
  mutate: g,
35
35
  isPending: O,
36
- isError: f,
37
- error: y,
38
- isSuccess: C
36
+ isError: y,
37
+ error: f,
38
+ isSuccess: p
39
39
  } = s({
40
40
  mutationFn: async () => {
41
41
  if (i === e.FLIGHT)
@@ -48,11 +48,11 @@ const A = (r, i) => {
48
48
  });
49
49
  }
50
50
  }), {
51
- mutate: K,
51
+ mutate: C,
52
52
  isPending: F,
53
- isError: h,
54
- error: p,
55
- isSuccess: S
53
+ isError: K,
54
+ error: H,
55
+ isSuccess: h
56
56
  } = s({
57
57
  mutationFn: async () => {
58
58
  if (i === e.FLIGHT)
@@ -69,23 +69,23 @@ const A = (r, i) => {
69
69
  queryKey: [t.UNCATEGORISED_BOOKINGS]
70
70
  });
71
71
  }
72
- }), G = c || B, H = u || E;
72
+ }), G = c || B, S = u || E;
73
73
  return {
74
74
  details: i === e.HOTEL ? l : m,
75
75
  isError: G,
76
- error: H,
76
+ error: S,
77
77
  initiateCancellation: g,
78
78
  isInitiatingCancellation: O,
79
- isInitiateCancellationError: f,
80
- initiateCancellationError: y,
81
- isInitiateCancellationSuccess: C,
82
- cancelBooking: K,
79
+ isInitiateCancellationError: y,
80
+ initiateCancellationError: f,
81
+ isInitiateCancellationSuccess: p,
82
+ cancelBooking: C,
83
83
  isCancelingBooking: F,
84
- isCancelBookingError: h,
85
- cancelBookingError: p,
86
- isCancelBookingSuccess: S
84
+ isCancelBookingError: K,
85
+ cancelBookingError: H,
86
+ isCancelBookingSuccess: h
87
87
  };
88
88
  };
89
89
  export {
90
- A as useBookingManagement
90
+ z as useBookingManagement
91
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"