{"ast":null,"code":"import * as i0 from '@angular/core';\nimport { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\n\nfunction ProgressBar_div_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 4);\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵstyleProp(\"width\", ctx_r0.value + \"%\");\n }\n}\n\nfunction ProgressBar_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 5);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵstyleProp(\"display\", ctx_r1.value != null ? \"block\" : \"none\");\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate2(\"\", ctx_r1.value, \"\", ctx_r1.unit, \"\");\n }\n}\n\nfunction ProgressBar_div_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 6);\n i0.ɵɵelement(1, \"div\", 7);\n i0.ɵɵelementEnd();\n }\n}\n\nconst _c0 = function (a1, a2) {\n return {\n \"p-progressbar p-component\": true,\n \"p-progressbar-determinate\": a1,\n \"p-progressbar-indeterminate\": a2\n };\n};\n\nclass ProgressBar {\n constructor() {\n this.showValue = true;\n this.unit = '%';\n this.mode = 'determinate';\n }\n\n}\n\nProgressBar.ɵfac = function ProgressBar_Factory(t) {\n return new (t || ProgressBar)();\n};\n\nProgressBar.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ProgressBar,\n selectors: [[\"p-progressBar\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n value: \"value\",\n showValue: \"showValue\",\n style: \"style\",\n styleClass: \"styleClass\",\n unit: \"unit\",\n mode: \"mode\"\n },\n decls: 4,\n vars: 11,\n consts: [[\"role\", \"progressbar\", \"aria-valuemin\", \"0\", \"aria-valuemax\", \"100\", 3, \"ngStyle\", \"ngClass\"], [\"class\", \"p-progressbar-value p-progressbar-value-animate\", \"style\", \"display:block\", 3, \"width\", 4, \"ngIf\"], [\"class\", \"p-progressbar-label\", 3, \"display\", 4, \"ngIf\"], [\"class\", \"p-progressbar-indeterminate-container\", 4, \"ngIf\"], [1, \"p-progressbar-value\", \"p-progressbar-value-animate\", 2, \"display\", \"block\"], [1, \"p-progressbar-label\"], [1, \"p-progressbar-indeterminate-container\"], [1, \"p-progressbar-value\", \"p-progressbar-value-animate\"]],\n template: function ProgressBar_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵtemplate(1, ProgressBar_div_1_Template, 1, 2, \"div\", 1);\n i0.ɵɵtemplate(2, ProgressBar_div_2_Template, 2, 4, \"div\", 2);\n i0.ɵɵtemplate(3, ProgressBar_div_3_Template, 2, 0, \"div\", 3);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngStyle\", ctx.style)(\"ngClass\", i0.ɵɵpureFunction2(8, _c0, ctx.mode === \"determinate\", ctx.mode === \"indeterminate\"));\n i0.ɵɵattribute(\"aria-valuenow\", ctx.value);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.mode === \"determinate\");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.mode === \"determinate\" && ctx.showValue);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.mode === \"indeterminate\");\n }\n },\n directives: [i1.NgStyle, i1.NgClass, i1.NgIf],\n styles: [\".p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-determinate .p-progressbar-label{text-align:center;height:100%;width:100%;position:absolute;font-weight:bold}.p-progressbar-indeterminate .p-progressbar-value:before{content:\\\"\\\";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:\\\"\\\";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(ProgressBar, [{\n type: Component,\n args: [{\n selector: 'p-progressBar',\n template: `\n