PageSourceSearch

https://prod.mechai.app/chunk-EXJH4MKG.js

js mechai.app collected 2026-10-02 15:21:32 UTC 8,992 bytes, 1 lines download raw bytes

1import{a as w}from"./chunk-R27LTYNA.js";import{b as v}from"./chunk-GGY6QDTV.js";import{i as k}from"./chunk-4KDBBJRG.js";import"./chunk-3SEIXLDK.js";import{c as B,d as N}from"./chunk-UIEAU6S2.js";import{k as y,l as b,x as V}from"./chunk-H3Y6JSWE.js";import{Hb as u,Oc as I,Rb as d,Sb as i,Tb as n,Uc as s,Vc as p,Wc as T,_c as h,bc as M,db as r,gc as f,ic as m,kd as S,mb as O,oa as x,pa as R,sb as P,sc as E,wc as a,xc as _,yb as C,yc as g}from"./chunk-AHLRJ2EW.js";import"./chunk-OXDKANHF.js";import"./chunk-XUHYVR5R.js";var D=t=>({date:t});function F(t,l){t&1&&(i(0,"section",9),a(1),s(2,"translate"),n()),t&2&&(r(),g(" ",p(2,1,"V2.CORRECTION.REPORTS_LOADING")," "))}function A(t,l){if(t&1){let e=M();i(0,"section",10)(1,"p"),a(2),s(3,"translate"),n(),i(4,"button",11),f("click",function(){x(e);let o=m();return R(o.load())}),a(5),s(6,"translate"),n()()}t&2&&(r(2),_(p(3,2,"V2.CORRECTION.REPORTS_ERROR")),r(3),g(" ",p(6,4,"V2.COMMON.RETRY")," "))}function U(t,l){t&1&&(i(0,"section",12)(1,"h2"),a(2),s(3,"translate"),n(),i(4,"p"),a(5),s(6,"translate"),n()()),t&2&&(r(2),_(p(3,2,"V2.CORRECTION.REPORTS_EMPTY_TITLE")),r(3),_(p(6,4,"V2.CORRECTION.REPORTS_EMPTY_BODY")))}function z(t,l){if(t&1&&(i(0,"p",23),a(1),n()),t&2){let e=l.ngIf;r(),g(" ",e," ")}}function L(t,l){if(t&1&&(i(0,"div",24)(1,"span"),a(2),s(3,"translate"),n(),i(4,"p"),a(5),n()()),t&2){let e=m().$implicit;r(2),_(p(3,2,"V2.CORRECTION.REPORTS_TEAM_UPDATE")),r(3),_(e.userMessage)}}function $(t,l){t&1&&(i(0,"p",25),a(1),s(2,"translate"),n()),t&2&&(r(),g(" ",p(2,1,"V2.CORRECTION.REPORTS_OVERDUE")," "))}function j(t,l){if(t&1&&(i(0,"p",27),a(1),s(2,"translate"),n()),t&2){let e=m(2).$implicit,c=m(2);r(),g(" ",T(2,1,"V2.CORRECTION.REPORTS_DUE",I(4,D,c.dateLabel(e.slaDueAt)))," ")}}function K(t,l){if(t&1&&C(0,j,3,6,"p",26),t&2){let e=m().$implicit;d("ngIf",e.status==="Open"||e.status==="InProgress")}}function Y(t,l){t&1&&(i(0,"p",28),a(1),s(2,"translate"),n()),t&2&&(r(),g(" ",p(2,1,"V2.CORRECTION.REPORTS_EMAIL_ON")," "))}function G(t,l){if(t&1&&(i(0,"article",15)(1,"div",16)(2,"div")(3,"strong"),a(4),s(5,"translate"),n(),i(6,"time"),a(7),n()(),i(8,"span",17),a(9),s(10,"translate"),n()(),i(11,"p",18),a(12),s(13,"translate"),n(),C(14,z,2,1,"p",19)(15,L,6,4,"div",20)(16,$,3,3,"p",21)(17,K,1,1,"ng-template",null,0,h)(19,Y,3,3,"p",22),n()),t&2){let e=l.$implicit,c=E(18),o=m(2);r(4),_(p(5,11,o.sourceKey(e))),r(2),u("datetime",o.dateTime(e.submittedAt)),r(),_(o.dateLabel(e.submittedAt)),r(),u("data-status",e.status),r(),g(" ",p(10,13,o.statusKey(e))," "),r(3),_(p(13,15,"V2.CORRECTION.REASONS."+e.reason.toUpperCase())),r(2),d("ngIf",o.detailsText(e)),r(),d("ngIf",e.userMessage),r(),d("ngIf",e.isOverdue)("ngIfElse",c),r(3),d("ngIf",e.emailUpdatesOptIn)}}function q(t,l){if(t&1&&(i(0,"div",13),C(1,G,20,17,"article",14),n()),t&2){let e=m();r(),d("ngForOf",e.reports)}}var ne=(()=>{class t{constructor(e,c,o){this.api=e,this.router=c,this.cdr=o,this.reports=[],this.loading=!0,this.loadFailed=!1}ngOnInit(){this.load()}load(){this.loading=!0,this.loadFailed=!1,this.cdr.markForCheck(),this.api.listMine(50).subscribe({next:e=>{this.reports=e,this.loading=!1,this.cdr.markForCheck()},error:()=>{this.loadFailed=!0,this.loading=!1,this.cdr.markForCheck()}})}goBack(){this.router.navigate(["/v2","settings"])}statusKey(e){return`V2.CORRECTION.REPORT_STATUS_${e.status.toUpperCase()}`}sourceKey(e){return`V2.CORRECTION.REPORT_SOURCE_${e.sourceType.toUpperCase()}`}detailsText(e){let c=e.sourceType==="academy"?e.details?.replace(/^\[academy\][^\n]*\n?/,""):e.details;return c?.trim()?c:null}dateLabel(e){return v(e)?.toLocaleDateString(void 0,{dateStyle:"medium"})??"\u2014"}dateTime(e){return v(e)?.toISOString()??null}static{this.\u0275fac=function(c){return new(c||t)(O(w),O(k),O(S))}}static{this.\u0275cmp=P({type:t,selectors:[["app-v2-settings-reports"]],decls:17,vars:13,consts:[["dueOrDone",""],[1,"reports-page"],[1,"reports-header"],["type","button",1,"reports-back",3,"click"],["aria-hidden","true"],["class","reports-state","role","status",4,"ngIf"],["class","reports-state reports-state--error",4,"ngIf"],["class","reports-state",4,"ngIf"],["class","reports-list",4,"ngIf"],["role","status",1,"reports-state"],[1,"reports-state","reports-state--error"],["type","button",3,"click"],[1,"reports-state"],[1,"reports-list"],["class","report-card",4,"ngFor","ngForOf"],[1,"report-card"],[1,"report-card__top"],[1,"report-status"],[1,"report-card__reason"],["class","report-card__details",4,"ngIf"],["class","report-card__message",4,"ngIf"],["class","report-card__sla report-card__sla--overdue",4,"ngIf","ngIfElse"],["class","report-card__email",4,"ngIf"],[1,"report-card__details"],[1,"report-card__message"],[1,"report-card__sla","report-card__sla--overdue"],["class","report-card__sla",4,"ngIf"],[1,"report-card__sla"],[1,"report-card__email"]],template:function(c,o){c&1&&(i(0,"div",1)(1,"header",2)(2,"button",3),s(3,"translate"),f("click",function(){return o.goBack()}),i(4,"span",4),a(5,"\u2039"),n()(),i(6,"div")(7,"h1"),a(8),s(9,"translate"),n(),i(10,"p"),a(11),s(12,"translate"),n()()(),C(13,F,3,3,"section",5)(14,A,7,6,"section",6)(15,U,7,6,"section",7)(16,q,2,1,"div",8),n()),c&2&&(r(2),u("aria-label",p(3,7,"V2.COMMON.BACK")),r(6),_(p(9,9,"V2.CORRECTION.REPORTS_TITLE")),r(3),_(p(12,11,"V2.CORRECTION.REPORTS_SUBTITLE")),r(2),d("ngIf",o.loading),r(),d("ngIf",!o.loading&&o.loadFailed),r(),d("ngIf",!o.loading&&!o.loadFailed&&o.reports.length===0),r(),d("ngIf",!o.loading&&!o.loadFailed&&o.reports.length>0))},dependencies:[V,y,b,N,B],styles:["[_nghost-%COMP%]{display:block}.reports-page[_ngcontent-%COMP%]{width:100%;padding-bottom:2rem}.reports-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:1.25rem}.reports-header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .reports-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.reports-header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:var(--color-text);font-size:1.25rem;font-weight:800}.reports-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:.25rem;color:var(--color-text-muted);font-size:.75rem;line-height:1.45}.reports-back[_ngcontent-%COMP%]{width:2.75rem;height:2.75rem;
1flex:0 0 2.75rem;border:0;border-radius:.75rem;background:var(--color-surface-2);color:var(--color-text-secondary);font-size:1.25rem;cursor:pointer}.reports-list[_ngcontent-%COMP%]{display:grid;gap:.75rem}.report-card[_ngcontent-%COMP%], .reports-state[_ngcontent-%COMP%]{border:1px solid var(--color-border);border-radius:1rem;background:var(--color-surface);padding:1rem}.reports-state[_ngcontent-%COMP%]{color:var(--color-text-secondary);text-align:center}.reports-state[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .reports-state[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:.25rem 0}.reports-state[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-height:2.75rem;margin-top:.75rem;padding:0 1rem;border:0;border-radius:.75rem;background:var(--color-primary);color:var(--color-on-primary);font-weight:700}.reports-state--error[_ngcontent-%COMP%]{border-color:var(--color-danger)}.report-card__top[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.report-card__top[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%], .report-card__top[_ngcontent-%COMP%]   time[_ngcontent-%COMP%]{display:block}.report-card__top[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--color-text);font-size:.875rem}.report-card__top[_ngcontent-%COMP%]   time[_ngcontent-%COMP%]{margin-top:.25rem;color:var(--color-text-muted);font-size:.625rem}.report-status[_ngcontent-%COMP%]{flex:0 0 auto;border-radius:9999px;background:var(--color-surface-2);padding:.25rem .5rem;color:var(--color-text-secondary);font-size:.625rem;font-weight:750}.report-status[data-status=Resolved][_ngcontent-%COMP%]{color:var(--color-success)}.report-card__reason[_ngcontent-%COMP%], .report-card__details[_ngcontent-%COMP%], .report-card__message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .report-card__sla[_ngcontent-%COMP%], .report-card__email[_ngcontent-%COMP%]{margin:.75rem 0 0;color:var(--color-text-secondary);font-size:.75rem;line-height:1.5}.report-card__details[_ngcontent-%COMP%], .report-card__message[_ngcontent-%COMP%]{border-radius:.75rem;background:var(--color-surface-2);padding:.75rem;white-space:pre-wrap}.report-card__message[_ngcontent-%COMP%]{margin-top:.75rem}.report-card__message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--color-primary);font-size:.625rem;font-weight:800;text-transform:uppercase}.report-card__message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:.25rem}.report-card__sla--overdue[_ngcontent-%COMP%]{color:var(--color-danger);font-weight:700}.report-card__email[_ngcontent-%COMP%]{color:var(--color-text-muted);font-size:.625rem}@media(max-width:380px){.report-card__top[_ngcontent-%COMP%]{display:grid}.report-status[_ngcontent-%COMP%]{justify-self:start}}"],changeDetection:0})}}return t})();export{ne as V2SettingsReportsComponent};

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.