PageSourceSearch

https://app.schedule2.it/chunk-NM4XT7AV.js

js schedule2.it collected 2026-10-02 15:53:27 UTC 16,349 bytes, 4 lines download raw bytes

1import{a as X}from"./chunk-5OZU7HM3.js";import"./chunk-HXR4UXTW.js";import{a as re}from"./chunk-PZNQIRNS.js";import"./chunk-H6TUFYTY.js";import{f as Q}from"./chunk-AEZWJTJQ.js";import"./chunk-WHSZREYS.js";import{a as oe}from"./chunk-MY273CGT.js";import"./chunk-LPWJ7SKW.js";import{a as le}from"./chunk-L22T4CA4.js";import"./chunk-C4VOYJJU.js";import{b as ne,e as ie}from"./chunk-DHPTBXMS.js";import"./chunk-4HBGWA6S.js";import"./chunk-APV5Y5LC.js";import"./chunk-VKPIKR3S.js";import"./chunk-K27EOTN7.js";import"./chunk-GVTLSXXG.js";import"./chunk-LLHB3EMJ.js";import"./chunk-PGA43T6R.js";import"./chunk-TDNDFFU5.js";import"./chunk-VG3UR2YM.js";import"./chunk-5MAJBAT6.js";import"./chunk-LTBCK4T4.js";import{a as Y,d as J}from"./chunk-XPBAPVOJ.js";import"./chunk-LGZGQLY4.js";import"./chunk-UN2SOKJ6.js";import"./chunk-7EZFDSJP.js";import{b as K}from"./chunk-I34F5YDR.js";import"./chunk-PF6SKHGS.js";import"./chunk-RD5G6MCW.js";import"./chunk-H2AE2ZCY.js";import"./chunk-NES5JLZT.js";import{f as te}from"./chunk-Y7JMU3S2.js";import"./chunk-D3IBKQEA.js";import"./chunk-JGDZPIPN.js";import"./chunk-7H2UG7BV.js";import"./chunk-QXRQJTI3.js";import{a as ee}from"./chunk-BY77YYCV.js";import{a as Z}from"./chunk-VVMEPK37.js";import"./chunk-254Z27PP.js";import"./chunk-5V42Z6J4.js";import"./chunk-2YO3X6KZ.js";import{h as H}from"./chunk-RI5CZ5MU.js";import"./chunk-RVI4UIAI.js";import"./chunk-NIOADD35.js";import"./chunk-YRPBQWQD.js";import"./chunk-X3TPTHYE.js";import"./chunk-X54J4N7L.js";import"./chunk-4F4PRNLW.js";import{j as R}from"./chunk-U3BBIWHA.js";import"./chunk-Y67HIG7A.js";import{B as q,c as W,e as z,h as A,j as G,l as h,m as j}from"./chunk-ZBQBCTO2.js";import{F as $,I as U,h as D}from"./chunk-GS423JIK.js";import{$b as l,Ac as T,Ba as P,Db as b,Fc as _,Gc as S,Mc as V,Nc as M,Oc as F,Tb as d,Ub as m,Xb as E,Yb as L,Yc as w,Zb as C,_b as a,ac as v,eb as B,gb as s,ja as g,jc as x,jd as y,oc as f,pa as u,qa as p,qc as r,xb as k}from"./chunk-SCQU6JQH.js";import{a as N}from"./chunk-WX35HDV6.js";var I=class{inventorySiteId;inventoryName;lastSealNumber;hasTransfers;canReset;transferSiteIds;useBoxSeals;static get FormData(){return this.getFormData()}static getFormData(n={}){return{inventorySiteId:new h(0,[...n.inventorySiteId??[],z.required]),inventoryName:new h(null,[...n.inventoryName??[]]),lastSealNumber:new h(null,[...n.lastSealNumber??[]]),hasTransfers:new h(!1,[...n.hasTransfers??[]]),canReset:new h(!1,[...n.canReset??[]]),transferSiteIds:new h([],[...n.transferSiteIds??[]]),useBoxSeals:new h(!1,[...n.useBoxSeals??[]])}}static get Form(){return new G(this.FormData)}static get ColumnDefs(){return new Map([["inventorySiteId",{orderId:0,sortColumn:"inventorySiteId",searchColumn:"inventorySiteId",searchColumns:null,includeInExcel:!0,exportColumn:null,displayName:"Edit",isVisible:!0,canSearch:!1,isNdc:!1,isNdc10:!1,cellClass:"text-center th-width-5",canSort:!1,isEditableField:!1,headerTooltip:"",isExcelOnlyColumn:!1,isNotUtc:!1,isPrint:!0}],["inventoryName",{orderId:1,sortColumn:"inventoryName",searchColumn:"inventoryName",searchColumns:null,includeInExcel:!0,exportColumn:null,displayName:"Name",isVisible:!0,canSearch:!0,isNdc:!1,isNdc10:!1,cellClass:null,canSort:!0,isEditableField:!1,headerTooltip:"",isExcelOnlyColumn:!1,isNotUtc:!1,isPrint:!0}],["lastSealNumber",{orderId:2,sortColumn:"lastSealNumber",searchColumn:"lastSealNumber",searchColumns:null,includeInExcel:!0,exportColumn:null,displayName:"Last Seal",isVisible:!0,canSearch:!0,isNdc:!1,isNdc10:!1,cellClass:null,canSort:!1,isEditableField:!1,headerTooltip:"",isExcelOnlyColumn:!1,isNotUtc:!1,isPrint:!0}],["hasTransfers",{orderId:3,sortColumn:"hasTransfers",searchColumn:"hasTransfers",searchColumns:null,includeInExcel:!0,exportColumn:null,displayName:"Has Transfers",isVisible:!0,canSearch:!1,isNdc:!1,isNdc10:!1,cellClass:null,canSort:!0,isEditableField:!1,headerTooltip:"",isExcelOnlyColumn:!1,isNotUtc:!1,isPrint:!0}],["canReset",{orderId:4,sortColumn:"canReset",searchColumn:"canReset",searchColumns:null,includeInExcel:!0,exportColumn:null,displayName:"Reset",isVisible:!0,canSearch:!1,isNdc:!1,isNdc10:!1,cellClass:"text-center th-width-5",canSort:!1,isEditableField:!1,headerTooltip:"",isExcelOnlyColumn:!1,isNotUtc:!1,isPrint:!0}]])}static GetModel(n){return new O(n)}},O=class{fg;constructor(n){this.fg=n}get inventorySiteId(){return this.fg.get("inventorySiteId").value}set inventorySiteId(n){this.fg.get("inventorySiteId").setValue(n)}get inventoryName(){return this.fg.get("inventoryName").value}set inventoryName(n){this.fg.get("inventoryName").setValue(n)}get lastSealNumber(){return this.fg.get("lastSealNumber").value}set lastSealNumber(n){this.fg.get("lastSealNumber").setValue(n)}get hasTransfers(){return this.fg.get("hasTransfers").value}set hasTransfers(n){this.fg.get("hasTransfers").setValue(n)}
1get canReset(){return this.fg.get("canReset").value}set canReset(n){this.fg.get("canReset").setValue(n)}get useBoxSeals(){return this.fg.get("useBoxSeals").value}set useBoxSeals(n){this.fg.get("useBoxSeals").setValue(n)}};var de=()=>[10,25,50,100,200],ae=()=>({standalone:!0}),se=(t,n)=>n.field;function me(t,n){t&1&&v(0,"br")}function _e(t,n){t&1&&(a(0,"div",7),_(1," Your inventory is being reset in the background. Please check your inventory shortly to view or verify that it has been reset. "),l())}function ue(t,n){if(t&1&&(a(0,"div",8),_(1),l()),t&2){let e=r();s(),S(e.errorStr)}}function pe(t,n){if(t&1){let e=x();a(0,"p-button",18),f("click",function(){u(e);let i=r(2);return p(i.resetInventory(null))}),l()}}function fe(t,n){if(t&1){let e=x();a(0,"div",11)(1,"div"),d(2,pe,1,0,"p-button",12),l(),a(3,"div",13)(4,"p-iconfield",14)(5,"p-inputicon"),v(6,"i",15),l(),a(7,"input",16,3),f("input",function(i){u(e),r();let c=T(7);return p(c.filterGlobal(i.target.value,"contains"))}),l()(),a(9,"p-button",17),f("click",function(){u(e);let i=T(8),c=r(),ce=T(7);return p(c.clearFilters(ce,i))}),l()()()}if(t&2){let e=r();s(2),m(e.isViewOnly?-1:2),s(),C("ngClass",e.isMobile()?"":"ml-auto"),s(6),C("outlined",!0)}}function ge(t,n){t&1&&(a(0,"th",19),_(1,"Edit"),l())}function Ce(t,n){if(t&1&&(a(0,"th"),_(1,"Name "),v(2,"p-sortIcon",20),l()),t&2){let e=r().$implicit;s(2),C("field",e==null?null:e.field)}}function xe(t,n){if(t&1&&(a(0,"th"),_(1,"Last Seal "),v(2,"p-sortIcon",20),l()),t&2){let e=r().$implicit;s(2),C("field",e==null?null:e.field)}}function he(t,n){if(t&1&&(a(0,"th"),_(1,"Has Transfers "),v(2,"p-sortIcon",20),l()),t&2){let e=r().$implicit;s(2),C("field",e==null?null:e.field)}}function ve(t,n){t&1&&(a(0,"th",19),_(1,"Reset"),l())}function ye(t,n){if(t&1&&(d(0,ge,2,0,"th",19),d(1,Ce,3,1,"th"),d(2,xe,3,1,"th"),d(3,he,3,1,"th"),d(4,ve,2,0,"th",19)),t&2){let e=n.$implicit,o=r(3);m((e==null?null:e.field)=="inventorySiteId"?0:-1),s(),m((e==null?null:e.field)=="inventoryName"?1:-1),s(),m(o.useBoxSeals&&(e==null?null:e.field)=="lastSealNumber"?2:-1),s(),m((e==null?null:e.field)=="hasTransfers"?3:-1),s(),m((e==null?null:e.field)=="canReset"?4:-1)}}function be(t,n){if(t&1&&(a(0,"tr"),E(1,ye,5,5,null,null,se),l()),t&2){let e=n.$implicit;s(),L(e)}}function Se(t,n){if(t&1){let e=x();a(0,"td",19)(1,"p-button",21),f("click",function(){u(e);let i=r(2).$implicit,c=r(2);return p(c.openInventory(i.inventorySiteId))}),l()()}}function Te(t,n){if(t&1&&(a(0,"td"),_(1),l()),t&2){let e=r(2).$implicit;s(),S(e.inventoryName)}}function we(t,n){if(t&1){let e=x();a(0,"td")(1,"input",22,6),F("ngModelChange",function(i){u(e);let c=r(2).$implicit;return M(c.lastSealNumber,i)||(c.lastSealNumber=i),p(i)}),f("change",function(){u(e);let i=r(2).$implicit,c=r(2);return p(c.updateRow(i))}),l(),_(3," Enter a new seal or use the existing one prior to resetting. "),l()}if(t&2){let e=r(2).$implicit,o=r(2);s(),V("ngModel",e.lastSealNumber),C("ngModelOptions",w(3,ae))("disabled",o.isViewOnly)}}function Ie(t,n){if(t&1&&(a(0,"td"),_(1),l()),t&2){let e=r(2).$implicit;s(),S(e.hasTransfers==!0?"Yes":"")}}function Ne(t,n){if(t&1){let e=x();a(0,"p-button",24),f("click",function(){u(e);let i=r(3).$implicit,c=r(2);return p(c.resetInventory(i))}),l()}}function Ee(t,n){if(t&1&&(a(0,"td",19),d(1,Ne,1,0,"p-button",23),l()),t&2){let e=r(4);s(),m(e.isViewOnly?-1:1)}}function Le(t,n){if(t&1&&d(0,Se,2,0,"td",19)(1,Te,2,1,"td")(2,we,4,4,"td")(3,Ie,2,1,"td")(4,Ee,2,1,"td",19),t&2){let e=n.$implicit,o=r(3);m((e==null?null:e.field)=="inventorySiteId"?0:(e==null?null:e.field)=="inventoryName"?1:o.useBoxSeals&&(e==null?null:e.field)=="lastSealNumber"?2:(e==null?null:e.field)=="hasTransfers"?3:(e==null?null:e.field)=="canReset"?4:-1)}}function Ve(t,n){if(t&1&&(a(0,"tr"),E(1,Le,5,1,null,null,se),l()),t&2){let e=n.columns;s(),L(e)}}function Me(t,n){t&1&&b(0,be,3,0,"ng-template",null,4,y)(2,Ve,3,0,"ng-template",null,5,y)}function Fe(t,n){if(t&1){let e=x();a(0,"p-button",24),f("click",function(){u(e);let i=r().$implicit,c=r(2);return p(c.resetInventory(i))}),l()}}function Re(t,n){if(t&1){let e=x();a(0,"div")(1,"div",32)(2,"div",33)(3,"p"),_(4,"Last Seal: Enter a new seal or use the existing one prior to resetting."),l(),a(5,"input",22,6),F("ngModelChange",function(i){u(e);let c=r().$implicit;return M(c.lastSealNumber,i)||(c.lastSealNumber=i),p(i)}),f("change",function(){u(e);let i=r().$implicit,c=r(2);return p(c.updateRow(i))}),l()()()()}if(t&2){let e=r().$implicit,o=r(2);s(5),V("ngModel",e.lastSealNumber),C("ngModelOptions",w(3,ae))("disabled",o.isViewOnl
1y)}}function Oe(t,n){if(t&1&&(a(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div",28)(4,"div",29)(5,"div",30)(6,"h4"),_(7),l(),a(8,"div",31),d(9,Fe,1,0,"p-button",23),l()()()()(),d(10,Re,7,4,"div"),l()()),t&2){let e=n.$implicit,o=r(2);s(7),S(e.inventoryName),s(2),m(o.isViewOnly?-1:9),s(),m(o.useBoxSeals?10:-1)}}function Pe(t,n){t&1&&b(0,Oe,11,3,"ng-template",null,5,y)}function Be(t,n){t&1&&(a(0,"tr")(1,"td",34),_(2,"No active Training Inventories that you are associated to with a first time setup found."),l()())}var st=(()=>{class t{title=g(U);httpClient=g($);router=g(H);sms=g(ee);ns=g(Z);lts=g(re);ams=g(X);sec=g(Q);columnDefs=I.ColumnDefs;user;filters={};filterMap={};initFilters=N({},this.filters);list=[];listToSend=[];availableColumns;visibleColumns;searchColumns;isLoading=!0;searchValue;tableDts={root:{header:{lgPadding:"0 0 0.5rem 0"}}};isMobile=P(!1);isSuccess=!1;isError=!1;useBoxSeals=!1;isViewOnly=this.sec.isViewOnly();errorStr="";onResize(){this.isMobile.set(R.setIsMobile(window.innerWidth))}ngOnInit(){this.title.setTitle("Training Inventories"),this.isMobile.set(R.setIsMobile(window.innerWidth)),this.user=this.sec.getUser(),this.useBoxSeals=this.user?.isUsingBoxSeal,this.initFilters=N({},this.filters),this.getList()}getList(){this.httpClient.get("api/Inventory/Training/GetList").subscribe(e=>{this.list=e,this.listToSend=e,this.useBoxSeals||this.columnDefs.delete("lastSealNumber"),this.availableColumns=le.getAvailableCols(this.columnDefs),this.visibleColumns=this.availableColumns.filter(o=>o.isVisible),this.searchColumns=this.availableColumns.filter(o=>o.canSearch).map(o=>o.field),this.isLoading=!1})}columnChange(e){this.visibleColumns=e,this.visibleColumns=e.sort((o,i)=>this.availableColumns.findIndex(c=>c.field===o.field)-this.availableColumns.findIndex(c=>c.field===i.field))}clearFilters(e,o){e.clear(),this.searchValue="",o.value="",this.filters=Object.assign(this.filters,this.initFilters),this.getList()}openInventory(e){this.router.navigateByUrl(`inventory/edit/details/${e}`)}updateRow(e){let o=this.listToSend.findIndex(i=>i.inventorySiteId===e.inventorySiteId);o!==-1&&(this.listToSend[o]=e)}resetInventory(e=null){this.isError=!1,this.errorStr="";let o="Are you sure you want to reset all training inventories?";e!=null&&(this.listToSend=[],this.listToSend.push(e),o="Are you sure you want to reset this training inventory?"),this.ams.openAlert(o,()=>{this.httpClient.post("api/Inventory/Training/ResetInventory/",JSON.stringify(this.listToSend)).subscribe(i=>{i.isSuccessful?this.isSuccess=!0:(this.isSuccess=!1,this.isError=!0,this.errorStr=i.message)})})}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=k({type:t,selectors:[["s2-training-inventory-list"]],hostBindings:function(o,i){o&1&&f("resize",function(){return i.onResize()},B)},decls:14,vars:20,consts:[["dt",""],["caption",""],["emptymessage",""],["searchValue",""],["header",""],["body",""],["lastSealNumber",""],[1,"alert","alert-success","text-center"],[1,"alert","alert-danger","text-center"],[1,"alert","alert-info","text-center"],["dataKey","id","sortField","inventoryName","selectionMode","single","scrollHeight","650px",3,"columns","value","rowHover","rows","showCurrentPageReport","rowsPerPageOptions","loading","paginator","currentPageReportTemplate","filterDelay","size","stripedRows","globalFilterFields","dt","scrollable"],[1,"d-flex","flex-wrap","align-items-center","gap"],["icon","pi pi-refresh","label","Reset All",1,"pr-1"],[1,"d-flex",3,"ngClass"],["iconPosition","right",1,"ml-auto"],[1,"pi","pi-search","pl-2"],["pInputText","","type","text","placeholder","Search...",3,"input"],["label","Clear","icon","pi pi-filter-slash",1,"pl-1",3,"click","outlined"],["icon","pi pi-refresh","label","Reset All",1,"pr-1",3,"click"],[1,"text-center","th-width-5"],[3,"field"],["icon","pi pi-file-edit","severity","info",3,"click"],["type","text","id","lastSealNumber","maxlength","20",1,"form-control",2,"width","200px",3,"ngModelChange","change","ngModel","ngModelOptions","disabled"],["icon","pi pi-refresh","severity","success"],["icon","pi pi-refresh","severity","success",3,"click"],[1,"pt-1","pb-1"],[1,"mobile-card-padding",2,"border","none"],[1,"d-flex","flex-column","w-100","p-0","list-card"],[1,"d-flex","flex-row","justify-content-between","align-items-center","w-100","list-header"],[1,"unique-field"],[1,"p-2","d-flex","flex-row","flex-wrap"],[1,"mobile-card-top-right-container"],[1,"list-field"],[1,"card-list-item"],["colspan","999",1,"text-center"]],template:function(o,i){o&1&&(v(0,"br"),d(1,me,1,0,"br"),d(2,_e,2,0,"div",7),d(3,ue,2,1,"div",8),a(4,"div",9),_(5,` Resetting an individual training inventory that has transfers will also reset any training inventory that it has been transferred to or from.
2`),l(),a(6,"p-table",10,0),b(8,fe,10,3,"ng-template",null,1,y),d(10,Me,4,0)(11,Pe,2,0),b(12,Be,3,0,"ng-template",null,2,y),l()),o&2&&(s(),m(i.isMobile()?1:-1),s(),m(i.isSuccess?2:-1),s(),m(i.isError?3:-1),s(3),C("columns",i.visibleColumns)("value",i.list)("rowHover",!0)("rows",50)("showCurrentPageReport",!0)("rowsPerPageOptions",w(19,de))("loading",i.isLoading)("paginator",!0)("currentPageReportTemplate",i.isMobile()?"":"Showing {first} to {last} of {totalRecords} entries")("filterDelay",500)("size","large")("stripedRows",!i.isMobile())("globalFilterFields",i.searchColumns)("dt",i.tableDts)("scrollable",!0),s(4),m(i.isMobile()?11:10))},dependencies:[oe,D,W,A,q,j,ne,ie,K,te,Y,J],styles:[`.gap[_ngcontent-%COMP%]{gap:.5rem}.list-card[_ngcontent-%COMP%]{border-radius:.5rem;background-color:var(--card-content-bg);margin-bottom:.75rem;border:1px solid var(--border-color);display:flex;
2box-shadow:0 .25rem .25rem rgba(var(--box-shadow-color),.25);cursor:pointer;transition:scale .2s}.list-card[_ngcontent-%COMP%]:hover{scale:98%}.list-card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;opacity:.75;font-size:.75rem}.list-card[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{margin:0}.list-header[_ngcontent-%COMP%]{background-color:var(--card-header-bg);border-radius:.5rem .5rem 0 0}.unique-field[_ngcontent-%COMP%]{flex:1.5;min-width:100px;display:flex;flex-direction:column;background-color:var(--card-header-bg);border-radius:.5rem .5rem 0 0}.mobile-card-top-right-container[_ngcontent-%COMP%]{display:flex;justify-content:right;float:right;align-items:center;min-width:50px;max-width:100px;margin-left:auto}.list-field[_ngcontent-%COMP%]{flex:2;width:100%;display:block;overflow:hidden;text-overflow:ellipsis}.card-list-item[_ngcontent-%COMP%]{padding:.5rem;display:flex;flex-direction:column;border-bottom:1px solid rgba(0,0,0,.1)!important}.mobile-card-padding[_ngcontent-%COMP%]{padding:.25rem 0 0!important}  .no-border .p-button{border-radius:0!important}@media screen and (max-width:768px){.col-md-6[_ngcontent-%COMP%]{width:50%}}
3/*# sourceMappingURL=training-inventory-list.component-3OTB67FE.css.map */`]})}return t})();export{st as TrainingInventoryListComponent};
4//# sourceMappingURL=chunk-NM4XT7AV.js.map

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.