{"version":3,"file":"bloomreach-brie-card.mjs","sources":["../../../../projects/brie/card/models/card.ts","../../../../projects/brie/card/directives/card-header.directive.ts","../../../../projects/brie/card/components/card.component.ts","../../../../projects/brie/card/components/card.component.html","../../../../projects/brie/card/card.module.ts","../../../../projects/brie/card/public-api.ts","../../../../projects/brie/card/bloomreach-brie-card.ts"],"sourcesContent":["/*\n * Copyright 2025-2026 Bloomreach. All rights reserved. (https://www.bloomreach.com/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *  https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum BrieCardType {\n  DEFAULT = 'default',\n  INFO = 'info',\n  WARNING = 'warning',\n  ERROR = 'error',\n}\n","/*\n * Copyright 2025-2026 Bloomreach. All rights reserved. (https://www.bloomreach.com/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *  https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Directive } from '@angular/core';\n\n@Directive({\n  selector: '[brieCardHeader]',\n})\nexport class BrieCardHeaderDirective { }\n","/*\n * Copyright 2025-2026 Bloomreach. All rights reserved. (https://www.bloomreach.com/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *  https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Component, input, output, contentChild, ChangeDetectionStrategy } from '@angular/core';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatButtonModule } from '@angular/material/button';\n\nimport { BrieButtonGroupModule, BrieButtonGroupActions } from '@bloomreach/brie/button-group';\nimport { BrieCardType } from '../models/card';\nimport { BrieCardHeaderDirective } from '../directives/card-header.directive';\n\n@Component({\n  selector: 'brie-card',\n  templateUrl: './card.component.html',\n  styleUrls: ['./card.component.scss'],\n  changeDetection: ChangeDetectionStrategy.Eager,\n  imports: [\n    MatCardModule,\n    MatButtonModule,\n    BrieButtonGroupModule,\n  ],\n})\nexport class BrieCardComponent {\n  // Signal-based inputs with default values\n  title = input<string>();\n  subtitle = input<string>();\n  content = input<string>();\n  actions = input<BrieButtonGroupActions>();\n  image = input<string>();\n  imageAlt = input<string>();\n  disabled = input<boolean>(false);\n  clickable = input<boolean>(false);\n  type = input<BrieCardType>(BrieCardType.DEFAULT);\n\n  // Signal-based output\n  cardClick = output<void>();\n\n  // Content projection for custom header\n  customHeader = contentChild(BrieCardHeaderDirective);\n\n  // Computed property to check if custom header exists\n  get hasCustomHeader(): boolean {\n    return !!this.customHeader();\n  }\n\n  // Computed signals for enum access\n  readonly BrieCardType = BrieCardType;\n\n  onCardClick(): void {\n    if (!this.disabled() && this.clickable()) {\n      this.cardClick.emit();\n    }\n  }\n}\n","<!--\n  Copyright 2022-2023 Bloomreach. All rights reserved. (https://www.bloomreach.com/)\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at\n\n   https://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n  -->\n\n<mat-card [class]=\"'brie-card__type-' + type()\" (click)=\"onCardClick()\">\n\n  @if (hasCustomHeader || title() || subtitle()) {\n  <mat-card-header>\n    @if (hasCustomHeader) {\n    <ng-content select=\"[brieCardHeader]\"></ng-content>\n    } @else {\n    @if (title()) {\n    <mat-card-title>{{ title() }}</mat-card-title>\n    }\n    @if (subtitle()) {\n    <mat-card-subtitle>{{ subtitle() }}</mat-card-subtitle>\n    }\n    }\n  </mat-card-header>\n  }\n\n  @if (image()) {\n  <img mat-card-image [src]=\"image()\" [alt]=\"imageAlt() || ''\">\n  }\n\n  <mat-card-content>\n    @if (content()) {\n    <p>{{ content() }}</p>\n    }\n    <ng-content></ng-content>\n  </mat-card-content>\n\n  @if (actions()) {\n  <mat-card-actions>\n    <brie-button-group [actions]=\"actions()!\"></brie-button-group>\n  </mat-card-actions>\n  }\n\n</mat-card>","/*\n * Copyright 2025-2026 Bloomreach. All rights reserved. (https://www.bloomreach.com/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *  https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatButtonModule } from '@angular/material/button';\n\nimport { BrieCardComponent } from './components/card.component';\nimport { BrieCardHeaderDirective } from './directives/card-header.directive';\n\n@NgModule({\n  imports: [\n    BrieCardComponent,\n    BrieCardHeaderDirective,\n    CommonModule,\n    MatCardModule,\n    MatButtonModule,\n  ],\n  exports: [\n    BrieCardComponent,\n    BrieCardHeaderDirective,\n  ],\n})\nexport class BrieCardModule {\n}\n","/*\n * Copyright 2025-2026 Bloomreach. All rights reserved. (https://www.bloomreach.com/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *  https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './card.module';\nexport * from './components/card.component';\nexport * from './models/card';\nexport * from './directives/card-header.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;IAES;AAAZ,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,YAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EALW,YAAY,KAAZ,YAAY,GAAA,EAAA,CAAA,CAAA;;AChBxB;;;;;;;;;;;;;;AAcG;MAOU,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC7B,iBAAA;;;ACpBD;;;;;;;;;;;;;;AAcG;MAqBU,iBAAiB,CAAA;AAX9B,IAAA,WAAA,GAAA;;A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