{"version":3,"sources":["src/app/core/components/ui-kit/buttons/icon-button/icon-button.component.ts","src/app/core/components/ui-kit/badge/badge.component.ts","src/app/core/components/ui-kit/badge/badge.component.html"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { SharedModule } from 'src/app/core/shared.module';\n\n@Component({\n selector: 'v-icon-button',\n imports: [SharedModule],\n template: `\n \n \n `,\n styleUrl: './icon-button.component.scss',\n})\nexport class VIconButtonComponent {\n /**\n * Which variant to use\n */\n @Input()\n variant: 'primary' | 'secondary' | 'outline' | 'danger' | 'success' =\n 'primary';\n\n @Input()\n iconOnly = false;\n\n @Input()\n size: 'small' | 'medium' | 'large' = 'medium';\n\n @Input()\n type: 'button' | 'submit' = 'button';\n\n /**\n * Optional icon to display\n */\n @Input()\n icon = '';\n\n /**\n * Whether the button is disabled\n */\n @Input()\n disabled = false;\n\n /**\n * Whether the button should display a loading indicator\n */\n @Input()\n loading = false;\n\n /**\n * Optionally sets the test id for the button\n */\n @Input()\n testId?: string;\n\n /**\n * Optional click handler\n */\n @Output()\n press = new EventEmitter();\n\n get class(): string {\n const classes = ['v-icon-button'];\n\n switch (this.variant) {\n case 'primary':\n classes.push('v-icon-button-primary');\n break;\n case 'secondary':\n classes.push('v-icon-button-secondary');\n break;\n case 'outline':\n classes.push('v-icon-button-outline');\n break;\n case 'danger':\n classes.push('v-icon-button-danger');\n break;\n case 'success':\n classes.push('v-icon-button-success');\n break;\n }\n\n if (this.iconOnly) {\n classes.push('v-icon-button-icon-only');\n }\n\n switch (this.size) {\n case 'small':\n classes.push('v-icon-button-small');\n break;\n case 'medium':\n classes.push('v-icon-button-medium');\n break;\n case 'large':\n classes.push('v-icon-button-large');\n break;\n }\n\n return classes.join(' ');\n }\n}\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { SharedModule } from 'src/app/core/shared.module';\n\nexport type BadgeVariant =\n | 'primary'\n | 'success'\n | 'warning'\n | 'danger'\n | 'info'\n | 'neutral';\n\nexport type BadgeSize = 'extra-small' | 'small' | 'medium' | 'large';\n\n@Component({\n selector: 'v-badge',\n\n imports: [SharedModule],\n templateUrl: './badge.component.html',\n styleUrl: './badge.component.scss',\n})\nexport class VBadgeComponent {\n @Input() variant: BadgeVariant = 'success';\n\n @Input() size: BadgeSize = 'medium';\n\n @Input() icon?: string;\n\n @Input() label?: string;\n\n @Input() pressable = false;\n\n @Output() pressed = new EventEmitter();\n}\n","\n @if (icon) {\n \n }\n {{ label }}\n \n\n"],"names":["ɵɵelement","ɵɵclassMap","ctx_r0","icon","VIconButtonComponent","constructor","variant","iconOnly","size","type","disabled","loading","press","EventEmitter","class","classes","push","join","selectors","inputs","testId","outputs","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵlistener","$event","emit","ɵɵtemplate","VIconButtonComponent_i_1_Template","VIconButtonComponent_i_2_Template","ɵɵelementEnd","ɵɵproperty","ɵɵadvance","SharedModule","NgIf","styles","ɵɵelement","ɵɵclassMap","ctx_r0","icon","VBadgeComponent","constructor","variant","size","pressable","pressed","EventEmitter","selectors","inputs","label","outputs","ngContentSelectors","_c0","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵlistener","$event","emit","ɵɵtemplate","VBadgeComponent_Conditional_1_Template","ɵɵtext","ɵɵprojection","ɵɵelementEnd","ɵɵproperty","ɵɵpureFunctionV","_c1","ɵɵadvance","ɵɵconditional","ɵɵtextInterpolate1","SharedModule","NgClass","styles"],"mappings":";;kQAYIA,EAAA,EAAA,GAAA,iBAA4BC,EAAAC,EAAAC,IAAA,wBAC5BH,EAAA,EAAA,IAAA,CAAA,EAIJ,IAAaI,GAAoB,IAAA,CAA3B,MAAOA,CAAoB,CAdjCC,aAAA,CAmBE,KAAAC,QACE,UAGF,KAAAC,SAAW,GAGX,KAAAC,KAAqC,SAGrC,KAAAC,KAA4B,SAM5B,KAAAN,KAAO,GAMP,KAAAO,SAAW,GAMX,KAAAC,QAAU,GAYV,KAAAC,MAAQ,IAAIC,EAEZ,I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