{"ast":null,"code":"import * as i0 from \"@angular/core\";\nfunction IconButtonComponent_Conditional_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 1);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate(ctx_r0.icon);\n  }\n}\nfunction IconButtonComponent_Conditional_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"i\");\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵclassMap(\"bi bi-\" + ctx_r0.icon);\n  }\n}\nexport let IconButtonComponent = /*#__PURE__*/(() => {\n  class IconButtonComponent {\n    icon;\n    get isEmoji() {\n      // Check if the icon is an emoji (starts with a non-ASCII character)\n      return this.icon.length > 0 && this.icon.charCodeAt(0) > 255;\n    }\n    static ɵfac = function IconButtonComponent_Factory(__ngFactoryType__) {\n      return new (__ngFactoryType__ || IconButtonComponent)();\n    };\n    static ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n      type: IconButtonComponent,\n      selectors: [[\"lib-icon-button\"]],\n      inputs: {\n        icon: \"icon\"\n      },\n      decls: 3,\n      vars: 1,\n      consts: [[1, \"icon-button\"], [1, \"emoji\"], [3, \"class\"]],\n      template: function IconButtonComponent_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵelementStart(0, \"div\", 0);\n          i0.ɵɵtemplate(1, IconButtonComponent_Conditional_1_Template, 2, 1, \"span\", 1)(2, IconButtonComponent_Conditional_2_Template, 1, 2, \"i\", 2);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵadvance();\n          i0.ɵɵconditional(ctx.isEmoji ? 1 : 2);\n        }\n      },\n      styles: [\"[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%] {\\n  width: 32px;\\n  height: 32px;\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  border-radius: 100%;\\n  cursor: pointer;\\n  color: var(--foreground);\\n  transition: background-color 0.2s ease, color 0.2s ease;\\n}\\n[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]:hover {\\n  background: var(--muted);\\n  color: var(--primary);\\n}\"]\n    });\n  }\n  return IconButtonComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}