import{a as b,b as Q,c as D,e as W}from"./chunk-MHXW6RFZ.js";import{a as T,c as B}from"./chunk-2WURN2UO.js";import{ad as _,bd as w}from"./chunk-CBXQYRPM.js";import{Bc as M,Ka as i,Kb as s,Lb as r,Ob as h,Pb as y,Qb as g,Sc as C,Tc as P,Zb as l,_b as d,ab as L,cb as m,da as c,gb as I,ka as u,la as E,mb as n,nb as p,ob as x,tc as v,xb as S}from"./chunk-LVXYIJUI.js";function H(e,R){if(e&1&&(n(0,"div",7),x(1,"abs-progress-doughnut",8)(2,"abs-progress-doughnut",8),n(3,"div",9)(4,"div",10)(5,"div",11),s(6),p(),n(7,"div",12)(8,"span"),s(9),l(10,"translate"),p()()(),n(11,"div",10)(12,"div",11),s(13),p(),n(14,"div",12)(15,"span"),s(16),l(17,"translate"),p()()()()()),e&2){let t=S();i(),m("totalQuantity",t.itemLifespan.productMaxWashes)("doneQuantity",t.itemLifespan.washesTotal)("displayDoneQty",!0)("innerText","LBL_WASHES"),i(),m("totalQuantity",t.itemLifespan.weeksInCircPrevIssue)("doneQuantity",t.itemLifespan.weeksSinceLastIssueDate)("displayDoneQty",!0)("innerText","LBL_WEEKS_IN_USE"),i(4),r(t.itemLifespan.repairsTotal),i(3),r(d(10,12,"LBL_REPAIRS")),i(4),r(t.itemLifespan.rewashTotal),i(3),r(d(17,14,"LBL_REWASHES"))}}var N=(()=>{class e{constructor(){this.class="abs-item-lifespan-expansion-panel"}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=u({type:e,selectors:[["abs-item-lifespan-expansion-panel"]],hostVars:2,hostBindings:function(a,o){a&2&&I(o.class)},inputs:{itemLifespan:"itemLifespan",panelExpandedState:"panelExpandedState"},decls:9,vars:6,consts:[[1,"abs-expansion-panel",3,"expandedChange","expanded","disabled"],[1,"abs-expansion-panel-header"],[1,"abs-panel-title"],["svgIcon","washing-machine",1,"panel-title-icon"],[1,"panel-title-text"],[1,"item-lifespan-expanded-row-wrapper"],["class","item-lifespan-expanded-row",4,"ngIf"],[1,"item-lifespan-expanded-row"],[3,"totalQuantity","doneQuantity","displayDoneQty","innerText"],[1,"indicator-wrapper"],[1,"indicator-info"],[1,"indicator-number"],[1,"indicator-label"]],template:function(a,o){a&1&&(n(0,"mat-expansion-panel",0),g("expandedChange",function(f){return y(o.panelExpandedState,f)||(o.panelExpandedState=f),f}),n(1,"mat-expansion-panel-header",1)(2,"mat-panel-title",2),x(3,"mat-icon",3),n(4,"span",4),s(5),l(6,"translate"),p()()(),n(7,"div",5),L(8,H,18,16,"div",6),p()()),a&2&&(h("expanded",o.panelExpandedState),m("disabled",!o.itemLifespan),i(5),r(d(6,4,"LBL_ITEM_LIFESPAN")),i(3),m("ngIf",o.itemLifespan))},dependencies:[v,b,Q,D,_,T,C],encapsulation:2})}}return e})();var A=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275mod=E({type:e})}static{this.\u0275inj=c({imports:[M,W,w,P,B]})}}return e})();export{N as a,A as b};
