@almatar/smart-booking-dashboard 0.0.1 → 0.0.2-alpha.2
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.
- package/esm2022/lib/components/action-card/action-card.component.mjs +3 -3
- package/esm2022/lib/components/add-note-dialog/add-note-dialog.component.mjs +3 -3
- package/esm2022/lib/components/almatar-aside/aside-back-button.service.mjs +24 -0
- package/esm2022/lib/components/almatar-aside/aside.component.mjs +123 -0
- package/esm2022/lib/components/booking-input/booking-input.component.mjs +4 -3
- package/esm2022/lib/components/cancel-dialog/cancel-dialog.component.mjs +53 -4
- package/esm2022/lib/components/data-search/data-search.component.mjs +3 -3
- package/esm2022/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.mjs +544 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-method/almatar-hotel-auto-cancellation-refund-method.component.mjs +43 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.mjs +296 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/almatar-hotel-auto-cancellation-select-rooms.component.mjs +88 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-non-refundable-room/almatar-hotel-auto-cancellation-non-refundable-room.component.mjs +242 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-refundable-room/almatar-hotel-auto-cancellation-refundable-room.component.mjs +48 -0
- package/esm2022/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.mjs +129 -0
- package/esm2022/lib/components/hotel-cancel/components/hotel-refund-method-selector/hotel-refund-method-selector.component.mjs +321 -0
- package/esm2022/lib/components/hotel-cancel/components/result-overlay/result-overlay.component.mjs +52 -0
- package/esm2022/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-endpoints.enum.mjs +9 -0
- package/esm2022/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-step.enum.mjs +7 -0
- package/esm2022/lib/components/hotel-cancel/interfaces/i-almatar-hotel-auto-cancellation.interface.mjs +2 -0
- package/esm2022/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation-endpoints.service.mjs +448 -0
- package/esm2022/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation.service.mjs +55 -0
- package/esm2022/lib/components/hotel-itinerary-card/hotel-itinerary-card.component.mjs +48 -0
- package/esm2022/lib/components/result-panel/result-panel.component.mjs +3 -3
- package/esm2022/lib/components/shared/components/confirm-modal/confirm-modal.component.mjs +75 -0
- package/esm2022/lib/components/shared/components/manage-booking-failed-modal/manage-booking-failed-modal.component.mjs +46 -0
- package/esm2022/lib/components/shared/enums/hotel-manage-booking-aside-tab.enum.mjs +9 -0
- package/esm2022/lib/components/shared/interfaces/i-flight-refund-details.mjs +86 -0
- package/esm2022/lib/components/shared/models/cancel-hotel-booking.model.mjs +7 -0
- package/esm2022/lib/components/shared/services/hotel-manage-booking/hotel-manage-booking.service.mjs +27 -0
- package/esm2022/lib/components/shared/services/hotel-manage-booking-endpoints/hotel-manage-booking-endpoints.service.mjs +17 -0
- package/esm2022/lib/config/hotel-actions.config.mjs +21 -1
- package/esm2022/lib/models/booking.types.mjs +73 -2
- package/esm2022/lib/pages/smart-booking-dashboard/smart-booking-dashboard.component.mjs +25 -7
- package/esm2022/lib/services/booking.service.mjs +6 -2
- package/esm2022/lib/shared/components/currency-code-icon/currency-code-icon.component.mjs +35 -0
- package/esm2022/lib/shared/enums/brand-enums.enum.mjs +7 -0
- package/esm2022/lib/shared/environments/environment.mjs +10 -0
- package/esm2022/lib/shared/models/index.mjs +6 -0
- package/esm2022/lib/shared/modules/almatar-icon/almatar-icon.module.mjs +36 -0
- package/esm2022/lib/shared/modules/loader/loader.module.mjs +43 -0
- package/esm2022/lib/shared/pipes/exchange.pipe.mjs +49 -0
- package/esm2022/lib/shared/services/api.service.mjs +42 -0
- package/esm2022/lib/shared/services/shared.service.mjs +34 -0
- package/esm2022/lib/shared/services/translation.service.mjs +61 -0
- package/esm2022/lib/shared/services/webengage-tracking.service.mjs +28 -0
- package/esm2022/lib/shared/store/selectors/currency.selectors.mjs +9 -0
- package/fesm2022/almatar-smart-booking-dashboard.mjs +3278 -180
- package/fesm2022/almatar-smart-booking-dashboard.mjs.map +1 -1
- package/lib/components/almatar-aside/aside-back-button.service.d.ts +11 -0
- package/lib/components/almatar-aside/aside.component.d.ts +47 -0
- package/lib/components/cancel-dialog/cancel-dialog.component.d.ts +7 -0
- package/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.d.ts +97 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-method/almatar-hotel-auto-cancellation-refund-method.component.d.ts +25 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.d.ts +91 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/almatar-hotel-auto-cancellation-select-rooms.component.d.ts +39 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-non-refundable-room/almatar-hotel-auto-cancellation-non-refundable-room.component.d.ts +44 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-refundable-room/almatar-hotel-auto-cancellation-refundable-room.component.d.ts +19 -0
- package/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.d.ts +38 -0
- package/lib/components/hotel-cancel/components/hotel-refund-method-selector/hotel-refund-method-selector.component.d.ts +142 -0
- package/lib/components/hotel-cancel/components/result-overlay/result-overlay.component.d.ts +23 -0
- package/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-endpoints.enum.d.ts +7 -0
- package/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-step.enum.d.ts +5 -0
- package/lib/components/hotel-cancel/interfaces/i-almatar-hotel-auto-cancellation.interface.d.ts +252 -0
- package/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation-endpoints.service.d.ts +82 -0
- package/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation.service.d.ts +21 -0
- package/lib/components/hotel-itinerary-card/hotel-itinerary-card.component.d.ts +16 -0
- package/lib/components/shared/components/confirm-modal/confirm-modal.component.d.ts +17 -0
- package/lib/components/shared/components/manage-booking-failed-modal/manage-booking-failed-modal.component.d.ts +10 -0
- package/lib/components/shared/enums/hotel-manage-booking-aside-tab.enum.d.ts +7 -0
- package/lib/components/shared/interfaces/i-flight-refund-details.d.ts +73 -0
- package/lib/components/shared/models/cancel-hotel-booking.model.d.ts +6 -0
- package/lib/components/shared/services/hotel-manage-booking/hotel-manage-booking.service.d.ts +11 -0
- package/lib/components/shared/services/hotel-manage-booking-endpoints/hotel-manage-booking-endpoints.service.d.ts +7 -0
- package/lib/models/booking.types.d.ts +28 -0
- package/lib/pages/smart-booking-dashboard/smart-booking-dashboard.component.d.ts +1 -0
- package/lib/shared/components/currency-code-icon/currency-code-icon.component.d.ts +13 -0
- package/lib/shared/enums/brand-enums.enum.d.ts +5 -0
- package/lib/shared/environments/environment.d.ts +7 -0
- package/lib/shared/models/index.d.ts +11 -0
- package/lib/shared/modules/almatar-icon/almatar-icon.module.d.ts +13 -0
- package/lib/shared/modules/loader/loader.module.d.ts +13 -0
- package/lib/shared/pipes/exchange.pipe.d.ts +17 -0
- package/lib/shared/services/api.service.d.ts +43 -0
- package/lib/shared/services/shared.service.d.ts +12 -0
- package/lib/shared/services/translation.service.d.ts +17 -0
- package/lib/shared/services/webengage-tracking.service.d.ts +8 -0
- package/lib/shared/store/selectors/currency.selectors.d.ts +2 -0
- package/package.json +2 -19
- package/LICENSE +0 -21
- package/README.md +0 -132
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, input, output, computed, } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { HotelRefundMethodSelectorComponent } from '../hotel-refund-method-selector/hotel-refund-method-selector.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class AlmatarHotelAutoCancellationRefundMethodComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.refundDetailsData = input.required();
|
|
8
|
+
this.currencyObj = input.required();
|
|
9
|
+
this.refundMethod = input.required();
|
|
10
|
+
this.bookingId = input.required();
|
|
11
|
+
this.isCancelling = input(false);
|
|
12
|
+
/** Show the selector's back arrow (off for hotel - train's cancel flow turns it on). */
|
|
13
|
+
this.showBack = input(false);
|
|
14
|
+
this.methodSelected = output();
|
|
15
|
+
this.backRequested = output();
|
|
16
|
+
this.confirmRequested = output();
|
|
17
|
+
this.closeModal = output();
|
|
18
|
+
this.lottieLoaded = false;
|
|
19
|
+
this.isNilRefund = computed(() => {
|
|
20
|
+
const data = this.refundDetailsData();
|
|
21
|
+
return Number(data?.totalRefundAmount ?? 0) === 0;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
onMethodSelected(method) {
|
|
25
|
+
this.methodSelected.emit(method);
|
|
26
|
+
}
|
|
27
|
+
onBack() {
|
|
28
|
+
this.backRequested.emit();
|
|
29
|
+
}
|
|
30
|
+
onConfirm() {
|
|
31
|
+
this.confirmRequested.emit();
|
|
32
|
+
}
|
|
33
|
+
onClose() {
|
|
34
|
+
this.closeModal.emit();
|
|
35
|
+
}
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AlmatarHotelAutoCancellationRefundMethodComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AlmatarHotelAutoCancellationRefundMethodComponent, isStandalone: true, selector: "almatar-hotel-auto-cancellation-refund-method", inputs: { refundDetailsData: { classPropertyName: "refundDetailsData", publicName: "refundDetailsData", isSignal: true, isRequired: true, transformFunction: null }, currencyObj: { classPropertyName: "currencyObj", publicName: "currencyObj", isSignal: true, isRequired: true, transformFunction: null }, refundMethod: { classPropertyName: "refundMethod", publicName: "refundMethod", isSignal: true, isRequired: true, transformFunction: null }, bookingId: { classPropertyName: "bookingId", publicName: "bookingId", isSignal: true, isRequired: true, transformFunction: null }, isCancelling: { classPropertyName: "isCancelling", publicName: "isCancelling", isSignal: true, isRequired: false, transformFunction: null }, showBack: { classPropertyName: "showBack", publicName: "showBack", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { methodSelected: "methodSelected", backRequested: "backRequested", confirmRequested: "confirmRequested", closeModal: "closeModal" }, ngImport: i0, template: "<div class=\"refund-method\">\n <!-- Loading State -->\n @if (isCancelling()) {\n <div class=\"refund-method__loading\">\n <!-- <div class=\"refund-method__lottie-wrapper\">\n <div #lottieContainer class=\"refund-method__lottie\"></div>\n </div> -->\n <h2 class=\"refund-method__loading-title\">\n Processing your cancellation...\n </h2>\n <p class=\"refund-method__loading-subtitle\">\n This may take a moment. Please wait...\n </p>\n </div>\n }\n\n <!-- Main Content -->\n @if (!isCancelling()) {\n <div class=\"refund-method__content\">\n <almatar-hotel-refund-method-selector\n [data]=\"refundDetailsData()\"\n [currencyObj]=\"currencyObj()\"\n [refundMethod]=\"refundMethod()\"\n (methodSelected)=\"onMethodSelected($event)\"\n (backRequested)=\"onBack()\"\n (closed)=\"onClose()\"\n [bookingId]=\"bookingId()\"\n [showCloseButton]=\"true\"\n [showBack]=\"showBack()\"\n [showLoyaltyPointsNote]=\"true\"\n />\n </div>\n\n <div class=\"refund-method__footer\">\n <button class=\"btn btn--danger\" type=\"button\" (click)=\"onConfirm()\">\n {{ isNilRefund() ? 'Cancel Booking' : 'Confirm Cancellation' }}\n </button>\n </div>\n }\n</div>\n", styles: [".refund-method{display:flex;flex-direction:column;height:100%}.refund-method__content{flex:1;overflow-y:auto;background-color:#fff;padding:40px 16px 16px}.refund-method__footer{display:flex;gap:12px;padding:16px 20px;background:#fff;border-top:1px solid rgb(229,231,235)}.refund-method__loading{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:16px;padding:48px 24px;text-align:center;height:100%;background:#fff}.refund-method__lottie-wrapper{width:300px;height:300px;display:flex;align-items:center;justify-content:center}.refund-method__lottie{width:100%;height:100%}.refund-method__loading-title{font-size:calc(24 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-medium);color:#1b1a1f;margin:0 0 8px}.refund-method__loading-subtitle{font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-regular);color:#1b1a1f;margin:0;line-height:26px;max-width:320px}.btn{flex:1;padding:14px 20px;border-radius:12px;font-size:calc(14 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-medium);cursor:pointer}.btn--primary{background:#7c3aed;color:#fff}.btn--primary:hover{background:#6d28d9;transform:translateY(-1px);box-shadow:0 4px 12px #7c3aed4d;color:#fff}.btn--primary:active{transform:translateY(0)}.btn--secondary{background:#fff;color:#1b1a1f;border:1.5px solid rgb(229,231,235)}.btn--secondary:hover{background:#f9fafb;color:#1b1a1f;border-color:#d1d5db}.btn--secondary:active{background:#f3f4f6;color:#1b1a1f}.btn--danger{background:#fae3de;color:#dc2626}.btn--danger:hover{color:#dc2626}.result-overlay{display:none;position:fixed;inset:0;z-index:99999999;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}.result-overlay--visible{display:flex}.result-overlay :is(strong,span):has(>app-currency-code-icon){direction:ltr;display:inline-flex;align-items:center;gap:4px}.result-overlay__backdrop{position:absolute;inset:0;background:#0000008c}.result-overlay__modal{position:relative;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding:24px 20px;border-radius:20px;background-color:var(--almatar-neutral-surface-card, #fff);box-shadow:0 24px 60px #00000059}.result-overlay__hero{display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px 0 8px}.result-overlay__icon{width:100px;height:100px;border-radius:50%;display:flex;align-items:center;justify-content:center}.result-overlay__title{font-size:calc(18 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-regular);color:var(--almatar-neutral-text-primary-static);margin:0;text-align:center}.result-overlay__row{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px 16px;border-radius:16px;background:var(--almatar-neutral-surface-screen-bg, #f5f5f7)}.result-overlay__method-icon{flex-shrink:0;width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;border:1px solid var(--almatar-primary-border-disabled);background:#fff;color:var(--almatar-neutral-text-primary-static)}.result-overlay__body{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.result-overlay__method-name{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold);color:var(--almatar-neutral-text-primary-static)}.result-overlay__amount{display:inline-flex;align-items:center;gap:4px;font-size:calc(18 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold);color:var(--almatar-neutral-text-primary-static);font-variant-numeric:tabular-nums;white-space:nowrap}.result-overlay__badge{font-size:calc(11 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold);text-transform:uppercase;letter-spacing:.03em;padding:4px 10px;border-radius:20px}.result-overlay__badge--instant{background:var(--almatar-positive-surface-pill, #dcfce7);color:var(--almatar-positive-text, #166534)}.result-overlay__badge--days{background:var(--almatar-primary-surface-pill, #eff6ff);color:var(--almatar-primary-text, #1e40af)}.result-overlay__done{min-height:56px;width:100%;border-radius:999px;font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold)}@keyframes refund-method-spin{to{transform:rotate(360deg)}}@keyframes refund-method-pulse{0%,to{opacity:.3;transform:scale(1)}50%{opacity:1;transform:scale(1.4)}}.mada-logo{margin-inline-start:16px}.result-overlay__method-block{display:inline-flex;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: HotelRefundMethodSelectorComponent, selector: "almatar-hotel-refund-method-selector", inputs: ["data", "bookingId", "currencyObj", "refundMethod", "showBack", "showCloseButton", "showLoyaltyPointsNote"], outputs: ["closed", "backRequested", "methodSelected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
38
|
+
}
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AlmatarHotelAutoCancellationRefundMethodComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ selector: 'almatar-hotel-auto-cancellation-refund-method', standalone: true, imports: [CommonModule, HotelRefundMethodSelectorComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"refund-method\">\n <!-- Loading State -->\n @if (isCancelling()) {\n <div class=\"refund-method__loading\">\n <!-- <div class=\"refund-method__lottie-wrapper\">\n <div #lottieContainer class=\"refund-method__lottie\"></div>\n </div> -->\n <h2 class=\"refund-method__loading-title\">\n Processing your cancellation...\n </h2>\n <p class=\"refund-method__loading-subtitle\">\n This may take a moment. Please wait...\n </p>\n </div>\n }\n\n <!-- Main Content -->\n @if (!isCancelling()) {\n <div class=\"refund-method__content\">\n <almatar-hotel-refund-method-selector\n [data]=\"refundDetailsData()\"\n [currencyObj]=\"currencyObj()\"\n [refundMethod]=\"refundMethod()\"\n (methodSelected)=\"onMethodSelected($event)\"\n (backRequested)=\"onBack()\"\n (closed)=\"onClose()\"\n [bookingId]=\"bookingId()\"\n [showCloseButton]=\"true\"\n [showBack]=\"showBack()\"\n [showLoyaltyPointsNote]=\"true\"\n />\n </div>\n\n <div class=\"refund-method__footer\">\n <button class=\"btn btn--danger\" type=\"button\" (click)=\"onConfirm()\">\n {{ isNilRefund() ? 'Cancel Booking' : 'Confirm Cancellation' }}\n </button>\n </div>\n }\n</div>\n", styles: [".refund-method{display:flex;flex-direction:column;height:100%}.refund-method__content{flex:1;overflow-y:auto;background-color:#fff;padding:40px 16px 16px}.refund-method__footer{display:flex;gap:12px;padding:16px 20px;background:#fff;border-top:1px solid rgb(229,231,235)}.refund-method__loading{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:16px;padding:48px 24px;text-align:center;height:100%;background:#fff}.refund-method__lottie-wrapper{width:300px;height:300px;display:flex;align-items:center;justify-content:center}.refund-method__lottie{width:100%;height:100%}.refund-method__loading-title{font-size:calc(24 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-medium);color:#1b1a1f;margin:0 0 8px}.refund-method__loading-subtitle{font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-regular);color:#1b1a1f;margin:0;line-height:26px;max-width:320px}.btn{flex:1;padding:14px 20px;border-radius:12px;font-size:calc(14 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-medium);cursor:pointer}.btn--primary{background:#7c3aed;color:#fff}.btn--primary:hover{background:#6d28d9;transform:translateY(-1px);box-shadow:0 4px 12px #7c3aed4d;color:#fff}.btn--primary:active{transform:translateY(0)}.btn--secondary{background:#fff;color:#1b1a1f;border:1.5px solid rgb(229,231,235)}.btn--secondary:hover{background:#f9fafb;color:#1b1a1f;border-color:#d1d5db}.btn--secondary:active{background:#f3f4f6;color:#1b1a1f}.btn--danger{background:#fae3de;color:#dc2626}.btn--danger:hover{color:#dc2626}.result-overlay{display:none;position:fixed;inset:0;z-index:99999999;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}.result-overlay--visible{display:flex}.result-overlay :is(strong,span):has(>app-currency-code-icon){direction:ltr;display:inline-flex;align-items:center;gap:4px}.result-overlay__backdrop{position:absolute;inset:0;background:#0000008c}.result-overlay__modal{position:relative;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding:24px 20px;border-radius:20px;background-color:var(--almatar-neutral-surface-card, #fff);box-shadow:0 24px 60px #00000059}.result-overlay__hero{display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px 0 8px}.result-overlay__icon{width:100px;height:100px;border-radius:50%;display:flex;align-items:center;justify-content:center}.result-overlay__title{font-size:calc(18 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-regular);color:var(--almatar-neutral-text-primary-static);margin:0;text-align:center}.result-overlay__row{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px 16px;border-radius:16px;background:var(--almatar-neutral-surface-screen-bg, #f5f5f7)}.result-overlay__method-icon{flex-shrink:0;width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;border:1px solid var(--almatar-primary-border-disabled);background:#fff;color:var(--almatar-neutral-text-primary-static)}.result-overlay__body{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.result-overlay__method-name{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold);color:var(--almatar-neutral-text-primary-static)}.result-overlay__amount{display:inline-flex;align-items:center;gap:4px;font-size:calc(18 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold);color:var(--almatar-neutral-text-primary-static);font-variant-numeric:tabular-nums;white-space:nowrap}.result-overlay__badge{font-size:calc(11 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold);text-transform:uppercase;letter-spacing:.03em;padding:4px 10px;border-radius:20px}.result-overlay__badge--instant{background:var(--almatar-positive-surface-pill, #dcfce7);color:var(--almatar-positive-text, #166534)}.result-overlay__badge--days{background:var(--almatar-primary-surface-pill, #eff6ff);color:var(--almatar-primary-text, #1e40af)}.result-overlay__done{min-height:56px;width:100%;border-radius:999px;font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold)}@keyframes refund-method-spin{to{transform:rotate(360deg)}}@keyframes refund-method-pulse{0%,to{opacity:.3;transform:scale(1)}50%{opacity:1;transform:scale(1.4)}}.mada-logo{margin-inline-start:16px}.result-overlay__method-block{display:inline-flex;align-items:center}\n"] }]
|
|
42
|
+
}], ctorParameters: () => [] });
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxtYXRhci1ob3RlbC1hdXRvLWNhbmNlbGxhdGlvbi1yZWZ1bmQtbWV0aG9kLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NtYXJ0LWJvb2tpbmctZGFzaGJvYXJkL3NyYy9saWIvY29tcG9uZW50cy9ob3RlbC1jYW5jZWwvY29tcG9uZW50cy9hbG1hdGFyLWhvdGVsLWF1dG8tY2FuY2VsbGF0aW9uLXJlZnVuZC1tZXRob2QvYWxtYXRhci1ob3RlbC1hdXRvLWNhbmNlbGxhdGlvbi1yZWZ1bmQtbWV0aG9kLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NtYXJ0LWJvb2tpbmctZGFzaGJvYXJkL3NyYy9saWIvY29tcG9uZW50cy9ob3RlbC1jYW5jZWwvY29tcG9uZW50cy9hbG1hdGFyLWhvdGVsLWF1dG8tY2FuY2VsbGF0aW9uLXJlZnVuZC1tZXRob2QvYWxtYXRhci1ob3RlbC1hdXRvLWNhbmNlbGxhdGlvbi1yZWZ1bmQtbWV0aG9kLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBQ3ZCLEtBQUssRUFDTCxNQUFNLEVBQ04sUUFBUSxHQUtULE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxZQUFZLEVBQUU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