import { Component, EventEmitter, Input, Output } from '@angular/core';
import { prependMissingProtocol } from '../inspire-library.helper';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function ContactComponent_i_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i");
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵclassMap("icn-" + (ctx_r0.expandedContent ? "minus" : "plus") + "-o caw-icon");
} }
function ContactComponent_div_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtext(1);
    i0.ɵɵelement(2, "br");
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r2.name, "");
} }
function ContactComponent_div_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtext(1);
    i0.ɵɵelement(2, "br");
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r3.streetAddress, "");
} }
function ContactComponent_div_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtext(1);
    i0.ɵɵelement(2, "br");
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r4.suiteNo, "");
} }
function ContactComponent_div_3_ng_container_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtext(1);
    i0.ɵɵelement(2, "br");
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", (ctx_r5.city ? ctx_r5.city + ", " : "") + (ctx_r5.state ? ctx_r5.state + " " : "") + ctx_r5.zipCode, "");
} }
function ContactComponent_div_3_ng_container_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtext(1);
    i0.ɵɵelement(2, "br");
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" Phone: ", ctx_r6.phoneNo, "");
} }
function ContactComponent_div_3_ng_container_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtext(1);
    i0.ɵɵelement(2, "br");
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" Fax: ", ctx_r7.faxNo, "");
} }
function ContactComponent_div_3_ng_container_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "a", 5);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(3, "br");
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r8 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate1("href", "mailto:", ctx_r8.email, "", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r8.email);
} }
function ContactComponent_div_3_ng_container_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "a", 6);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r9 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("href", ctx_r9.validWebsiteUrl, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r9.website);
} }
function ContactComponent_div_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 3);
    i0.ɵɵtemplate(1, ContactComponent_div_3_ng_container_1_Template, 3, 1, "ng-container", 4);
    i0.ɵɵtemplate(2, ContactComponent_div_3_ng_container_2_Template, 3, 1, "ng-container", 4);
    i0.ɵɵtemplate(3, ContactComponent_div_3_ng_container_3_Template, 3, 1, "ng-container", 4);
    i0.ɵɵtemplate(4, ContactComponent_div_3_ng_container_4_Template, 3, 1, "ng-container", 4);
    i0.ɵɵtemplate(5, ContactComponent_div_3_ng_container_5_Template, 3, 1, "ng-container", 4);
    i0.ɵɵtemplate(6, ContactComponent_div_3_ng_container_6_Template, 3, 1, "ng-container", 4);
    i0.ɵɵtemplate(7, ContactComponent_div_3_ng_container_7_Template, 4, 2, "ng-container", 4);
    i0.ɵɵtemplate(8, ContactComponent_div_3_ng_container_8_Template, 3, 2, "ng-container", 4);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.name);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.streetAddress);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.suiteNo);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.city || ctx_r1.state || ctx_r1.zipCode);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.phoneNo);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.faxNo);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.email);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.website);
} }
var ContactComponent = /** @class */ (function () {
    function ContactComponent() {
        this.enableAccordion = false;
        this.expandedContent = false;
        this.name = '';
        this.streetAddress = '';
        this.suiteNo = '';
        this.city = '';
        this.state = '';
        this.zipCode = '';
        this.phoneNo = '';
        this.faxNo = '';
        this.email = '';
        this.website = '';
        this.toggleExpandedContent = new EventEmitter();
        this.validWebsiteUrl = '';
    }
    ContactComponent.prototype.ngOnInit = function () {
        this.fixWebsiteUrl();
    };
    ContactComponent.prototype.fixWebsiteUrl = function () {
        this.validWebsiteUrl = prependMissingProtocol(this.website);
    };
    ContactComponent.prototype.onToggleExpandContent = function () {
        if (this.enableAccordion) {
            this.toggleExpandedContent.emit();
        }
    };
    ContactComponent.ɵfac = function ContactComponent_Factory(t) { return new (t || ContactComponent)(); };
    ContactComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ContactComponent, selectors: [["ins-contact"]], inputs: { enableAccordion: "enableAccordion", expandedContent: "expandedContent", name: "name", streetAddress: "streetAddress", suiteNo: "suiteNo", city: "city", state: "state", zipCode: "zipCode", phoneNo: "phoneNo", faxNo: "faxNo", email: "email", website: "website" }, outputs: { toggleExpandedContent: "toggleExpandedContent" }, decls: 4, vars: 2, consts: [[1, "caw-title", 3, "click"], [3, "class", 4, "ngIf"], ["class", "caw-content", 4, "ngIf"], [1, "caw-content"], [4, "ngIf"], [3, "href"], ["target", "blank", 3, "href"]], template: function ContactComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "h2", 0);
            i0.ɵɵlistener("click", function ContactComponent_Template_h2_click_0_listener() { return ctx.onToggleExpandContent(); });
            i0.ɵɵtemplate(1, ContactComponent_i_1_Template, 1, 2, "i", 1);
            i0.ɵɵtext(2, " Contact\n");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(3, ContactComponent_div_3_Template, 9, 8, "div", 2);
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.enableAccordion);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.expandedContent);
        } }, directives: [i1.NgIf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none}*[_ngcontent-%COMP%]{font-family:Lato,sans-serif;outline:0}@font-face{font-family:ins-icons;src:url(/assets/fonts/icons/ins-icons.ttf?nf14g1) format(\"truetype\"),url(/assets/fonts/icons/ins-icons.woff?nf14g1) format(\"woff\"),url(/assets/fonts/icons/ins-icons.svg?nf14g1#ins-icons) format(\"svg\");font-weight:400;font-style:normal;font-display:block}.ins-icon[_ngcontent-%COMP%], [class*=\" icn-\"][_ngcontent-%COMP%], [class^=icn-][_ngcontent-%COMP%]{font-family:ins-icons!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icn-minus-o[_ngcontent-%COMP%]:before{content:\"\\e93a\"}.icn-disclaimer[_ngcontent-%COMP%]:before{content:\"\\e934\"}.icn-leave-community[_ngcontent-%COMP%]:before{content:\"\\e935\"}.icn-stethoscope[_ngcontent-%COMP%]:before{content:\"\\e936\"}.icn-join-community[_ngcontent-%COMP%]:before{content:\"\\e937\"}.icn-resources[_ngcontent-%COMP%]:before{content:\"\\e938\"}.icn-help[_ngcontent-%COMP%]:before{content:\"\\e939\"}.icn-checked[_ngcontent-%COMP%]:before{content:\"\\e933\"}.icn-plus[_ngcontent-%COMP%]:before{content:\"\\e932\"}.icn-expand[_ngcontent-%COMP%]:before{content:\"\\e931\"}.icn-Invite[_ngcontent-%COMP%]:before{content:\"\\e930\"}.icn-report[_ngcontent-%COMP%]:before{content:\"\\e92f\"}.icn-unfollow[_ngcontent-%COMP%]:before{content:\"\\e92e\"}.icn-block[_ngcontent-%COMP%]:before{content:\"\\e92d\"}.icn-trash[_ngcontent-%COMP%]:before{content:\"\\e92b\"}.icn-follow[_ngcontent-%COMP%]:before{content:\"\\e92c\"}.icn-lock[_ngcontent-%COMP%]:before{content:\"\\e92a\"}.icn-bolt-left[_ngcontent-%COMP%]:before{content:\"\\e925\"}.icn-bolt-right[_ngcontent-%COMP%]:before{content:\"\\e926\"}.icn-bolt-down[_ngcontent-%COMP%]:before{content:\"\\e927\"}.icn-bolt-up[_ngcontent-%COMP%]:before{content:\"\\e928\"}.icn-img-o[_ngcontent-%COMP%]:before{content:\"\\e929\"}.icn-tick[_ngcontent-%COMP%]:before{content:\"\\e924\"}.icn-tick-o[_ngcontent-%COMP%]:before{content:\"\\e923\"}.icn-cross-o[_ngcontent-%COMP%]:before{content:\"\\e922\"}.icn-plus-o[_ngcontent-%COMP%]:before{content:\"\\e921\"}.icn-hide[_ngcontent-%COMP%]:before{content:\"\\e920\"}.icn-menu[_ngcontent-%COMP%]:before{content:\"\\e900\"}.icn-more[_ngcontent-%COMP%]:before{content:\"\\e901\"}.icn-msgs[_ngcontent-%COMP%]:before{content:\"\\e902\"}.icn-pin[_ngcontent-%COMP%]:before{content:\"\\e903\"}.icn-reply[_ngcontent-%COMP%]:before{content:\"\\e904\"}.icn-search[_ngcontent-%COMP%]:before{content:\"\\e905\"}.icn-settings[_ngcontent-%COMP%]:before{content:\"\\e906\"}.icn-treatment[_ngcontent-%COMP%]:before{content:\"\\e907\"}.icn-aid[_ngcontent-%COMP%]:before{content:\"\\e908\"}.icn-apple[_ngcontent-%COMP%]:before{content:\"\\e909\"}.icn-arrow-down[_ngcontent-%COMP%]:before{content:\"\\e90a\"}.icn-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e91d\"}.icn-arrow-left[_ngcontent-%COMP%]:before{content:\"\\e91e\"}.icn-arrow-right[_ngcontent-%COMP%]:before{content:\"\\e91f\"}.icn-bell[_ngcontent-%COMP%]:before{content:\"\\e90b\"}.icn-bookmark-o[_ngcontent-%COMP%]:before{content:\"\\e90c\"}.icn-calendar[_ngcontent-%COMP%]:before{content:\"\\e90d\"}.icn-check[_ngcontent-%COMP%]:before{content:\"\\e90e\"}.icn-community[_ngcontent-%COMP%]:before{content:\"\\e90f\"}.icn-d-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e910\"}.icn-discussion[_ngcontent-%COMP%]:before{content:\"\\e911\"}.icn-edit[_ngcontent-%COMP%]:before{content:\"\\e912\"}.icn-facebook[_ngcontent-%COMP%]:before{content:\"\\e913\"}.icn-filters[_ngcontent-%COMP%]:before{content:\"\\e914\"}.icn-friends[_ngcontent-%COMP%]:before{content:\"\\e915\"}.icn-google[_ngcontent-%COMP%]:before{content:\"\\e916\"}.icn-heart[_ngcontent-%COMP%]:before{content:\"\\e917\"}.icn-home[_ngcontent-%COMP%]:before{content:\"\\e918\"}.icn-img[_ngcontent-%COMP%]:before{content:\"\\e919\"}.icn-inspire[_ngcontent-%COMP%]:before{content:\"\\e91a\"}.icn-journal[_ngcontent-%COMP%]:before{content:\"\\e91b\"}.icn-like[_ngcontent-%COMP%]:before{content:\"\\e91c\"}.widget-pack[_ngcontent-%COMP%]{background:#fff;border-radius:.5rem;padding:.9375rem}.wp-body[_ngcontent-%COMP%], .wp-foot[_ngcontent-%COMP%]{margin-top:.9375rem}.wp-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:#061a73;margin:0;font-family:Lato,sans-serif}.wp-link[_ngcontent-%COMP%]{color:#6e6f70;font-size:.875rem;cursor:pointer}.wp-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.pill-block[_ngcontent-%COMP%]{font-size:.875rem;color:#000;padding:.5rem 1.25rem;border-radius:3.125rem;background:#f8f9fb;display:inline-block}.caw-title[_ngcontent-%COMP%]{color:#061a73;font-family:Lato,sans-serif;font-weight:600;font-size:16px;margin:0 0 12px;display:flex;align-items:center}@media (max-width:1299px){.caw-content[_ngcontent-%COMP%]{margin-left:34px}}.caw-icon[_ngcontent-%COMP%]{font-size:16px;margin-right:18px}@media (min-width:1300px){.caw-icon[_ngcontent-%COMP%]{display:none}}"] });
    return ContactComponent;
}());
export { ContactComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ContactComponent, [{
        type: Component,
        args: [{
                selector: 'ins-contact',
                templateUrl: './contact.component.html',
                styleUrls: ['./contact.component.scss']
            }]
    }], function () { return []; }, { enableAccordion: [{
            type: Input
        }], expandedContent: [{
            type: Input
        }], name: [{
            type: Input
        }], streetAddress: [{
            type: Input
        }], suiteNo: [{
            type: Input
        }], city: [{
            type: Input
        }], state: [{
            type: Input
        }], zipCode: [{
            type: Input
        }], phoneNo: [{
            type: Input
        }], faxNo: [{
            type: Input
        }], email: [{
            type: Input
        }], website: [{
            type: Input
        }], toggleExpandedContent: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 