1import{Bb as o,Db as f,Qb as u,Rb as a,Sb as g,ac as r,gb as s,oc as p,od as _,qc as k,rb as d,rc as m,xb as c}from"./chunk-POIHHM7P.js";function x(i,n){if(i&1&&(u(0,"span",5),p(1),a()),i&2){let l=r(2);s(),m("",l.redeemed,"/",l.total,"")}}function C(i,n){if(i&1&&(u(0,"div",1)(1,"span",2),g(2,"span",3),p(3),a(),c(4,x,2,2,"span",4),a()),i&2){let l=r();s(),f("ticket-status-pill--fulfilled",l.statusKind==="fulfilled")("ticket-status-pill--partial",l.statusKind==="partial")("ticket-status-pill--unfulfilled",l.statusKind==="unfulfilled"),s(2),k(" ",l.statusLabel," "),s(),o("ngIf",l.hasTickets)}}var M=(()=>{let n=class n{get statusValue(){var e,t;return(t=this.row)==null?void 0:t[(e=this.col)==null?void 0:e.name]}get statusKind(){switch(this.statusValue){case"Fulfilled":return"fulfilled";case"Partial Fulfilled":return"partial";case"Unfulfilled":return"unfulfilled";default:return null}}get statusLabel(){return this.statusKind==="partial"?"Partial":this.statusValue||""}get hasTickets(){var e,t;return((e=this.row)==null?void 0:e.ticketsCount)!=null&&((t=this.row)==null?void 0:t.ticketsCount)>0}get redeemed(){var e,t;return(t=(e=this.row)==null?void 0:e.redeemedTicketsCount)!=null?t:0}get total(){var e,t;return(t=(e=this.row)==null?void 0:e.ticketsCount)!=null?t:0}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=d({type:n,selectors:[["app-ticket-fulfillment-status"]],inputs:{col:"col",row:"row"},standalone:!1,decls:1,vars:1,consts:[["class","ticket-status-cell",4,"ngIf"],[1,"ticket-status-cell"],[1,"ticket-status-pill",2,"font-weight","500 !important"],[1,"ticket-status-pill__dot"],["class","ticket-status-count",4,"ngIf"],[1,"ticket-status-count"]],template:function(t,h){t&1&&c(0,C,5,8,"div",0),t&2&&o("ngIf",h.statusKind)},dependencies:[_],styles:[".ticket-status-cell[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px}.ticket-status-pill[_ngcontent-%COMP%]{display:flex!important;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:12px;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;width:fit-content}.ticket-status-pill__dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:currentColor}.ticket-status-pill--fulfilled[_ngcontent-%COMP%]{background:#cce8e5;color:#008a7b!important}.ticket-status-pill--fulfilled[_ngcontent-%COMP%] .ticket-status-pill__dot[_ngcontent-%COMP%]{background:#008a7b}.ticket-status-pill--partial[_ngcontent-%COMP%]{background:#fff9dc;color:#ff8700!important}.ticket-status-pill--partial[_ngcontent-%COMP%] .ticket-status-pill__dot[_ngcontent-%COMP%]{background:#ff8700}.ticket-status-pill--unfulfilled[_ngcontent-%COMP%]{background:#f5f5f5;color:#494949!important}.ticket-status-pill--unfulfilled[_ngcontent-%COMP%] .ticket-status-pill__dot[_ngcontent-%COMP%]{background:#757575}.ticket-status-count[_ngcontent-%COMP%]{font-size:13px;color:#616161;white-space:nowrap}"]});let i=n;return i})();export{M as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.