1import{U as T,V as H,da as j,i as x,j as L,q as S,u as k}from"./chunk-KMXQE4KL.js";import{a as $}from"./chunk-NFYWOYC5.js";import"./chunk-ITMFNP22.js";import{c as z,d as N}from"./chunk-LFRTPRFK.js";import"./chunk-GUZO7ZNK.js";import{Aa as s,Db as y,J as M,Nb as f,Sb as v,Ua as C,Va as p,Vc as w,Z as P,aa as a,da as _,fa as O,ia as h,jb as u,ka as b,lb as g,mb as d,vb as m,xa as r,ya as c,za as l}from"./chunk-3RYB6SVN.js";import"./chunk-QYJGY2IR.js";import"./chunk-YGHZJLBQ.js";import"./chunk-G35TH3HO.js";import"./chunk-QUJFQN2Y.js";import"./chunk-TQCPDUT3.js";import"./chunk-USX6FYMP.js";import"./chunk-LPZTKJWE.js";import"./chunk-PW6GA5NL.js";import"./chunk-S5XOBH6Y.js";import"./chunk-MKFP4TZ3.js";import"./chunk-JQVI6FS2.js";import"./chunk-BCFU56ZB.js";import"./chunk-PT3YUHTI.js";import"./chunk-MTEZNQW4.js";import"./chunk-PTASOGFN.js";import"./chunk-4K53T7NJ.js";import"./chunk-MTHZ7MWU.js";import"./chunk-WI5MSH4N.js";import"./chunk-N2ITJEWR.js";import"./chunk-CKP3SGE2.js";import"./chunk-RFGOEN6H.js";import"./chunk-Y7EQJLOB.js";import"./chunk-4EXU7QX3.js";import"./chunk-YG5PFMJ7.js";import"./chunk-NER57BGA.js";import"./chunk-DSHYVPZD.js";import"./chunk-PD2PSGYJ.js";import"./chunk-YGDXWWXH.js";import"./chunk-JNMFIV4M.js";import"./chunk-DXRS3GW7.js";import"./chunk-ZDL7X67C.js";import"./chunk-CLVRMGG4.js";import"./chunk-NMDLJX5Q.js";var B=(()=>{let e=class e{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}};e.\u0275fac=function(n){return new(n||e)(_(f,16))},e.\u0275pipe=h({name:"safeHtml",type:e,pure:!0});let i=e;return i})();var F=()=>["/search-by-us"];function U(i,e){i&1&&(c(0,"div",8),s(1,"ion-icon",9),c(2,"h3"),C(3),g(4,"translate"),l(),c(5,"p"),C(6),g(7,"translate"),l()()),i&2&&(a(3),p(d(4,2,"No Data Available")),a(3),p(d(7,4,"No student log entries found for the selected criteria")))}var nt=(()=>{let e=class e{constructor(){this.global=M($),this.mainCategoryList=[],this.subCategoryList=[],this.tableHtml=""}ngOnInit(){}ionViewWillEnter(){this.loadTableData()}loadTableData(){if(this.mainCategoryList=this.global.allMaincategoryList||[],this.subCategoryList=this.global.allSubcategoryList||[],!this.global.tutorStudentLog||this.global.tutorStudentLog.length===0){this.tableHtml='<div class="no-data">No student log data available</div>';return}let t=` 2 <table class="student-log-table"> 3 <thead> 4 <tr> 5 <th class="photo-col">Photo 1</th> 6 <th class="photo-col">Photo 2</th> 7 <th class="photo-col">Photo 3</th> 8 <th class="category-col">Category/Activity</th> 9 <th class="notes-col">Notes</th> 10 <th class="project-col">Address/Projects</th> 11 <th class="hours-col">Hours</th> 12 <th class="date-col">Date</th> 13 </tr> 14 </thead> 15 <tbody> 16 `;this.global.tutorStudentLog.forEach(n=>{let o=this.getMainCategoryName(n.main_category),D=this.getSubCategoryName(n.sub_category);t+='<tr class="log-row">',t+=this.getPhotoCell(n.inventory_image),t+=this.getPhotoCell(n.inventory_image2),t+=this.getPhotoCell(n.inventory_image3),t+=`<td class="category-cell"> 17 <div class="category-info"> 18 <div class="main-category">${o}</div> 19 <div class="sub-category">${D}</div> 20 <div class="activity-list"> 21 ${this.getActivityList(n)} 22 </div> 23 </div> 24 </td>`;let E=n.notes?n.notes.replace(/(\r\n|\n|\r)/gm," ").trim():"";t+=`<td class="notes-cell">${E}</td>`,t+=`<td class="project-cell">${n.address||""}</td>`,t+=`<td class="hours-cell">${n.inventory_value||"0"}</td>`,t+=`<td class="date-cell">${n.inventory_purchased||""}</td>`,t+="</tr>"}),t+="</tbody></table>",this.tableHtml=t}getMainCategoryName(t){return this.mainCategoryList.find(o=>o.cat==t)?.name||""}getSubCategoryName(t){return this.subCategoryList.find(o=>o.list_id==t||o.cat==t)?.name||""}getPhotoCell(t){return t&&t.trim().length>0?` 25 <td class="photo-cell"> 26 <div class="photo-container"> 27 <img 28 src="${this.global.buildMediaUrl(t)}" 29 alt="Student log photo" 30 class="log-photo" 31 loading="lazy" 32 onerror="this.style.display='none'"> 33 </div> 34 </td> 35 `:'<td class="photo-cell"></td>'}getActivityList(t){let n=[t.inventory_item,t.inventory_item2,t.inventory_item3].filter(o=>o&&o.trim().length>0);return n.length===0?'<div class="no-activity">No activities</div>':n.map(o=>`<div class="activity-item">${o}</div>`).join("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=O({type:e,selectors:[["app-search-by-us-table"]],decls:13,vars:11,consts:[[3,"translucent"],["slot","start"],[3,"routerLink"],["slot","icon-only","name","arrow-back","aria-label","Back"],[1,"ion-padding",3,"fullscreen"],[1,"table-container"],[1,"table-wrapper",3,"innerHTML"],["class","no-data-message",4,"ngIf"],[1,"no-data-message"],["name","document-text-outline","size","large"]],template:function(n,o){n&1&&(c(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1)(3,"ion-button",2),s(4,"ion-icon",3),l()(),c(5,"ion-title"),C(6),g(7,"translate"),l()()(),c(8,"ion-content",4)(9,"div",5),s(10,"div",6),g(11,"safeHtml"),b(12,U,8,6,"div",7),l()()),n&2&&(r("translucent",!0),a(3),r("routerLink",u(10,F)),a(3),p(d(7,6,"Student Log Table")),a(2),r("fullscreen",!0),a(2),r("innerHTML",d(11,8,o.tableHtml),P),a(2),r("ngIf",!o.global.tutorStudentLog||o.global.tutorStudentLog.length===0))},dependencies:[y,m,w,v,N,k,H,L,x,j,T,S,z,B],styles:[".table-container[_ngcontent-%COMP%]{width:100%;overflow-x:auto;min-height:100%}.table-wrapper[_ngcontent-%COMP%]{min-width:100%}.student-log-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;background:var(--ion-background-color);box-shadow:0 2px 8px #0000001a;border-radius:8px;overflow:hidden}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background:var(--ion-color-primary)}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#fff;font-weight:600;text-align:left;padding:16px 12px;white-space:nowrap;font-size:14px}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.photo-col[_ngcontent-%COMP%]{min-width:100px;text-align:center}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.category-col[_ngcontent-%COMP%]{min-width:200
35px}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.notes-col[_ngcontent-%COMP%]{min-width:250px}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.project-col[_ngcontent-%COMP%]{min-width:150px}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.hours-col[_ngcontent-%COMP%]{min-width:80px}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.date-col[_ngcontent-%COMP%]{min-width:120px}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--ion-color-light-shade)}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%]:hover{background:var(--ion-color-light-tint)}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px;vertical-align:top;font-size:14px;line-height:1.4}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.photo-cell[_ngcontent-%COMP%]{text-align:center;vertical-align:middle}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.photo-cell[_ngcontent-%COMP%] .photo-container[_ngcontent-%COMP%]{width:80px;height:80px;margin:0 auto;border-radius:4px;overflow:hidden;background:var(--ion-color-light)}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.photo-cell[_ngcontent-%COMP%] .photo-container[_ngcontent-%COMP%] .log-photo[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.category-cell[_ngcontent-%COMP%] .category-info[_ngcontent-%COMP%] .main-category[_ngcontent-%COMP%]{font-weight:600;color:var(--ion-color-primary);margin-bottom:4px}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.category-cell[_ngcontent-%COMP%] .category-info[_ngcontent-%COMP%] .sub-category[_ngcontent-%COMP%]{font-weight:500;color:var(--ion-color-secondary);margin-bottom:8px}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.category-cell[_ngcontent-%COMP%] .category-info[_ngcontent-%COMP%] .activity-list[_ngcontent-%COMP%] .activity-item[_ngcontent-%COMP%]{padding:4px 0;border-bottom:1px dashed var(--ion-color-light-shade)}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.category-cell[_ngcontent-%COMP%] .category-info[_ngcontent-%COMP%] .activity-list[_ngcontent-%COMP%] .activity-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.category-cell[_ngcontent-%COMP%] .category-info[_ngcontent-%COMP%] .activity-list[_ngcontent-%COMP%] .no-activity[_ngcontent-%COMP%]{color:var(--ion-color-medium);font-style:italic}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.notes-cell[_ngcontent-%COMP%]{max-width:250px;word-wrap:break-word;white-space:normal}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.project-cell[_ngcontent-%COMP%]{max-width:150px;word-wrap:break-word}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.hours-cell[_ngcontent-%COMP%]{text-align:center;font-weight:600;color:var(--ion-color-success)}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.date-cell[_ngcontent-%COMP%]{color:var(--ion-color-medium);white-space:nowrap}.no-data-message[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px;color:var(--ion-color-medium)}.no-data-message[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:48px;margin-bottom:16px;opacity:.5}.no-data-message[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:18px;font-weight:600}.no-data-message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px;max-width:300px}@media(max-width:768px){.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{display:none}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%]{display:block;margin-bottom:20px;border:1px solid var(--ion-color-light-shade);border-radius:8px;padding:16px}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border:none;position:relative;padding:8px 0 8px 120px}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{content:attr(data-label);position:absolute;
35left:0;width:110px;padding-right:10px;font-weight:600;color:var(--ion-color-primary)}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.photo-cell[_ngcontent-%COMP%]{flex-direction:column;padding-left:0;text-align:center}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.photo-cell[_ngcontent-%COMP%]:before{position:static;margin-bottom:8px;width:100%}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.photo-cell[_ngcontent-%COMP%] .photo-container[_ngcontent-%COMP%]{margin:0 auto}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.hours-cell[_ngcontent-%COMP%]:before, .student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%] td.date-cell[_ngcontent-%COMP%]:before{color:var(--ion-color-secondary)}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.log-row[_ngcontent-%COMP%]:hover{background:transparent}}@media print{.table-container[_ngcontent-%COMP%]{overflow:visible}.student-log-table[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #ddd}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background:#f5f5f5!important}.student-log-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000!important;border-bottom:2px solid #000}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{page-break-inside:avoid}.student-log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:1px solid #ddd}}"]});let i=e;return i})();export{nt as SearchByUsTablePage};
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.