import { CommonModule } from '@angular/common';
import { Component, Inject, Optional } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/dialog";
import * as i2 from "@angular/material/snack-bar";
export class TrasportAvailabilityComponent {
    constructor(dialogRef, data, snackBar) {
        this.dialogRef = dialogRef;
        this.data = data;
        this.snackBar = snackBar;
    }
    ngOnInit() {
    }
    close() {
        this.dialogRef.close({ data: null });
    }
    sendRequest() {
        this.data.data.transportRequest = true;
        this.snackBar.open('Our support team will get back to you...!', 'Ok');
        this.close();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TrasportAvailabilityComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA, optional: true }, { token: i2.MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TrasportAvailabilityComponent, isStandalone: true, selector: "simpo-trasport-availability", ngImport: i0, template: "<section class=\"total_popup_sec h-100 w-100 d-flex justify-content-around flex-column\">\r\n    <div class=\"top_layer\">\r\n        <div class=\"layer_title text-center\">\r\n            Transport Full for Selected Option\r\n        </div>\r\n        <div class=\"layer_description mt-2 text-center\">\r\n            Would you like to request the school to check seat availability or arrange transport for this stop and\u00A0vehicle\u00A0type?\r\n        </div>\r\n    </div>\r\n    <div class=\"footer_layer d-flex gap-2 align-items-center justify-content-end mt-2\">\r\n        <button class=\"send_request\" (click)=\"sendRequest()\">Send Request</button>\r\n        <button class=\"cancel\" (click)=\"close()\">Cancel</button>\r\n    </div>\r\n</section>", styles: [".total_popup_sec{padding:15px}.send_request{font-size:14px;font-family:var(--primary-font-family);font-weight:500;background-color:var(--primary-button-color);border:none;outline:none;width:max-content;border-radius:8px;padding:8px 20px}.cancel{font-size:14px;font-family:var(--primary-font-family);font-weight:500;background-color:transparent;border:1px solid var(--primary-button-color);outline:none;width:max-content;border-radius:8px;padding:8px 20px}.layer_title{font-size:15px;font-family:var(--primary-font-family);color:#000;font-weight:100500}.layer_description{font-size:13px;font-family:var(--primary-font-family);color:#625f5f;font-weight:500}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TrasportAvailabilityComponent, decorators: [{
            type: Component,
            args: [{ selector: 'simpo-trasport-availability', standalone: true, imports: [CommonModule, FormsModule], template: "<section class=\"total_popup_sec h-100 w-100 d-flex justify-content-around flex-column\">\r\n    <div class=\"top_layer\">\r\n        <div class=\"layer_title text-center\">\r\n            Transport Full for Selected Option\r\n        </div>\r\n        <div class=\"layer_description mt-2 text-center\">\r\n            Would you like to request the school to check seat availability or arrange transport for this stop and\u00A0vehicle\u00A0type?\r\n        </div>\r\n    </div>\r\n    <div class=\"footer_layer d-flex gap-2 align-items-center justify-content-end mt-2\">\r\n        <button class=\"send_request\" (click)=\"sendRequest()\">Send Request</button>\r\n        <button class=\"cancel\" (click)=\"close()\">Cancel</button>\r\n    </div>\r\n</section>", styles: [".total_popup_sec{padding:15px}.send_request{font-size:14px;font-family:var(--primary-font-family);font-weight:500;background-color:var(--primary-button-color);border:none;outline:none;width:max-content;border-radius:8px;padding:8px 20px}.cancel{font-size:14px;font-family:var(--primary-font-family);font-weight:500;background-color:transparent;border:1px solid var(--primary-button-color);outline:none;width:max-content;border-radius:8px;padding:8px 20px}.layer_title{font-size:15px;font-family:var(--primary-font-family);color:#000;font-weight:100500}.layer_description{font-size:13px;font-family:var(--primary-font-family);color:#625f5f;font-weight:500}\n"] }]
        }], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
                    type: Optional
                }, {
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }, { type: i2.MatSnackBar }] });
//# sourceMappingURL=data:application/json;base64, 