import{a as J}from"./chunk-GFSXKSK5.js";import"./chunk-QOGIXMWY.js";import"./chunk-6N2DU4HB.js";import{a as G}from"./chunk-G5QQX4VN.js";import"./chunk-2NWUCARP.js";import"./chunk-XKQYXDV6.js";import"./chunk-BAAM3DCZ.js";import"./chunk-XULGDGRO.js";import"./chunk-43NB6BM4.js";import"./chunk-OVEGWW7W.js";import"./chunk-LL4377Z2.js";import"./chunk-GAOYV53E.js";import"./chunk-W6JPMHYE.js";import"./chunk-BXA2JYKG.js";import{f as q,g as z}from"./chunk-CV35HHXX.js";import"./chunk-WBPIWZ7Q.js";import"./chunk-HNHLGX7F.js";import{a as A}from"./chunk-VDODMHDR.js";import"./chunk-FVUFPTGH.js";import"./chunk-LXFJ7QGK.js";import"./chunk-DQPTWMB2.js";import"./chunk-MQVHFWCE.js";import"./chunk-G7E24J2R.js";import"./chunk-VYA2NFJ5.js";import"./chunk-SH55PTEY.js";import"./chunk-VPS35GPI.js";import"./chunk-UGBMCXS6.js";import{a as j,b as k}from"./chunk-5TTXT2K2.js";import"./chunk-YNQPX5G6.js";import"./chunk-3NJAM5KX.js";import"./chunk-JFJPOKIM.js";import"./chunk-QYSFCWV7.js";import"./chunk-XKYNH2RX.js";import"./chunk-BQPO535K.js";import"./chunk-HLLBCLO6.js";import"./chunk-4P6SOZDY.js";import"./chunk-XN7T54IM.js";import"./chunk-RULWGB4E.js";import"./chunk-2HIDUY57.js";import"./chunk-U5Y75IZ5.js";import"./chunk-HY3IUHOC.js";import"./chunk-4AEX2WLA.js";import"./chunk-2MELUOYA.js";import"./chunk-WOPE6PPO.js";import{E as W,h as H,o as V}from"./chunk-MDIMQ3H3.js";import"./chunk-HJJJ4ZT2.js";import"./chunk-GH5XWMYK.js";import"./chunk-MWDJTJ3O.js";import"./chunk-7CQSSHSC.js";import"./chunk-3DEA4WWC.js";import"./chunk-CAGDTHS6.js";import{n as B,q as R}from"./chunk-TKVDP62Z.js";import{Ad as O,Eb as x,Gb as M,Hb as N,Ib as s,Jb as i,Kb as n,Kc as C,Lc as F,Mc as T,Qc as E,Ub as v,Xb as w,Za as l,Zb as S,eb as p,ib as D,mc as o,nb as y,nc as c,ob as I,rc as _,sc as b,tc as h,va as g,vd as P,wa as f,xd as L}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function U(r,d){if(r&1){let e=v();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),h("ngModelChange",function(t){g(e);let m=S();return b(m.pageData.Filter.ListIDs,t)||(m.pageData.Filter.ListIDs=t),f(t)}),n()()()}if(r&2){let e=S();l(4),s("accessType",2),_("ngModel",e.pageData.Filter.ListIDs),s("multiple",!0)}}function X(r,d){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),C(5,"number"),n(),i(6,"td"),o(7),C(8,"date"),n()()),r&2){let e=d.$implicit;l(2),c(e==null?null:e.EntityName),l(2),c(F(5,3,e==null?null:e.Number)),l(3),c(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}preGetList(){let e=this.pageData.Filter?.ListIDs?this.pageData.Filter?.ListIDs:[];this.pageData.Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(p(A),p(R),p(B))};static \u0275cmp=D({type:r,selectors:[["app-invoice-numbering"]],features:[y],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let m=v();i(0,"mainpanel-cmp",1),w("onSubmit",function(){return t.searchFromPageOne()}),h("filterChange",function(u){return g(m),b(t.pageData.Filter,u)||(t.pageData.Filter=u),f(u)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}a&2&&(s("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),_("filter",t.pageData.Filter),l(17),N(t.data==null?null:t.data.Data))},dependencies:[O,z,q,J,W,H,V,k,j,L,P],encapsulation:2})};export{K as InvoiceNumberingComponent};
