import { Component, EventEmitter, Input, Output } from '@angular/core';
import { FormControl } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "@angular/common";
function AddToMyProfileComponent_p_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "p", 10);
    i0.ɵɵtext(1, " Adding interests to your profile will help us improve your Inspire experience! ");
    i0.ɵɵelementEnd();
} }
function AddToMyProfileComponent_ng_container_9_div_1_Template(rf, ctx) { if (rf & 1) {
    const _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 12);
    i0.ɵɵlistener("click", function AddToMyProfileComponent_ng_container_9_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r6); const interest_r4 = ctx.$implicit; const ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.onToggleInterest(interest_r4); });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const interest_r4 = ctx.$implicit;
    i0.ɵɵclassMapInterpolate1("pill-block ", interest_r4.class, "");
    i0.ɵɵproperty("innerText", interest_r4 == null ? null : interest_r4.name);
} }
function AddToMyProfileComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, AddToMyProfileComponent_ng_container_9_div_1_Template, 1, 4, "div", 11);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r1.selectedInterests);
} }
function AddToMyProfileComponent_ng_container_10_div_1_Template(rf, ctx) { if (rf & 1) {
    const _r10 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 12);
    i0.ɵɵlistener("click", function AddToMyProfileComponent_ng_container_10_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r10); const interest_r8 = ctx.$implicit; const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.onToggleInterest(interest_r8); });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const interest_r8 = ctx.$implicit;
    i0.ɵɵclassMapInterpolate1("pill-block ", interest_r8.class, "");
    i0.ɵɵproperty("innerText", interest_r8 == null ? null : interest_r8.name);
} }
function AddToMyProfileComponent_ng_container_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, AddToMyProfileComponent_ng_container_10_div_1_Template, 1, 4, "div", 11);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r2.searchedInterests);
} }
export class AddToMyProfileComponent {
    constructor() {
        this.toggleInterest = new EventEmitter();
        this.selectedInterests = [];
        this.searchedInterests = [];
    }
    ngOnInit() { }
    ngOnChanges() { }
    onToggleInterest(interest) {
        this.toggleInterest.emit(interest);
    }
    ngOnDestroy() { }
}
AddToMyProfileComponent.ɵfac = function AddToMyProfileComponent_Factory(t) { return new (t || AddToMyProfileComponent)(); };
AddToMyProfileComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddToMyProfileComponent, selectors: [["ins-add-to-my-profile"]], inputs: { selectedInterests: "selectedInterests", searchedInterests: "searchedInterests", inputControl: "inputControl" }, outputs: { toggleInterest: "toggleInterest" }, features: [i0.ɵɵNgOnChangesFeature], decls: 12, vars: 4, consts: [[1, "widget-pack"], [1, "wp-head"], [1, "wp-title"], [1, "profile-search"], ["type", "text", "placeholder", "Search Conditions / Treatments", 1, "profile-input", 3, "formControl"], [1, "wp-body"], ["class", "neutral-info", 4, "ngIf"], [1, "profile-conditions"], [4, "ngIf"], [1, "wp-foot"], [1, "neutral-info"], [3, "class", "innerText", "click", 4, "ngFor", "ngForOf"], [3, "innerText", "click"]], template: function AddToMyProfileComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "section", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵelementStart(2, "h1", 2);
        i0.ɵɵtext(3, "Add to My Profile");
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(4, "div", 3);
        i0.ɵɵelement(5, "input", 4);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(6, "div", 5);
        i0.ɵɵtemplate(7, AddToMyProfileComponent_p_7_Template, 2, 0, "p", 6);
        i0.ɵɵelementStart(8, "div", 7);
        i0.ɵɵtemplate(9, AddToMyProfileComponent_ng_container_9_Template, 2, 1, "ng-container", 8);
        i0.ɵɵtemplate(10, AddToMyProfileComponent_ng_container_10_Template, 2, 1, "ng-container", 8);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelement(11, "div", 9);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(5);
        i0.ɵɵproperty("formControl", ctx.inputControl);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", !(ctx.selectedInterests == null ? null : ctx.selectedInterests.length));
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.selectedInterests == null ? null : ctx.selectedInterests.length);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.searchedInterests == null ? null : ctx.searchedInterests.length);
    } }, directives: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.FormControlDirective, i2.NgIf, i2.NgForOf], 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%], .profile-search[_ngcontent-%COMP%]:before, [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, .profile-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\"}.profile-btn[_ngcontent-%COMP%]{border:none;border-radius:.5rem;font-size:1rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0 1rem;height:2.25rem;transition:.3s ease-in-out;background:#009dfc;color:#fff}.profile-btn[_ngcontent-%COMP%]:hover{background:#f8f9fb}.profile-btn[disabled][_ngcontent-%COMP%]{background:#c6cbc9;color:#6e6f70;cursor:default}.profile-btn[_ngcontent-%COMP%]:not([disabled]):hover{background:#008de3}.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}.profile-search[_ngcontent-%COMP%]{margin:0 -.9375rem;border-bottom:1px solid #e2e5e4;padding:.9375rem 1.25rem;display:flex;align-items:center}.profile-search[_ngcontent-%COMP%]:before{font-size:.8125rem;margin-right:.75rem}.profile-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;background:0 0;width:100%;display:block;font-size:.875rem}.profile-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#c6cbc9}.profile-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-moz-placeholder{color:#c6cbc9}.profile-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-moz-placeholder{color:#c6cbc9}.profile-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#c6cbc9}.profile-conditions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.profile-conditions[_ngcontent-%COMP%]   .pill-block[_ngcontent-%COMP%]{display:block;margin:.5rem .8125rem .5rem 0;cursor:pointer}.profile-conditions[_ngcontent-%COMP%]   .pill-block[_ngcontent-%COMP%]:hover{background:#eff1f1}.profile-conditions[_ngcontent-%COMP%]   .pill-block.red[_ngcontent-%COMP%]{background:#dd002e;color:#fff}.profile-conditions[_ngcontent-%COMP%]   .pill-block.dark-blue[_ngcontent-%COMP%]{background:#005cc9;color:#fff}.profile-conditions[_ngcontent-%COMP%]   .pill-block.bright-blue[_ngcontent-%COMP%]{background:#009dfc;color:#fff}.profile-conditions[_ngcontent-%COMP%]   .pill-block.eggplant[_ngcontent-%COMP%]{background:#943585;color:#fff}.profile-conditions[_ngcontent-%COMP%]   .pill-block.teal[_ngcontent-%COMP%]{background:#09b0d3;color:#fff}.profile-conditions[_ngcontent-%COMP%]   .pill-block.navy[_ngcontent-%COMP%]{background:#061a73;color:#fff}.neutral-info[_ngcontent-%COMP%]{color:#6e6f70;font-size:.8125rem;text-align:center}"] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AddToMyProfileComponent, [{
        type: Component,
        args: [{
                selector: 'ins-add-to-my-profile',
                templateUrl: './add-to-my-profile.component.html',
                styleUrls: ['./add-to-my-profile.component.scss'],
            }]
    }], function () { return []; }, { toggleInterest: [{
            type: Output
        }], selectedInterests: [{
            type: Input
        }], searchedInterests: [{
            type: Input
        }], inputControl: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 