dealpos 10.9.2 → 10.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/POS/1322.3fd6a59a44b14d8f.js +1 -0
  2. package/POS/144.351a4c7cc2fbc67f.js +1 -0
  3. package/POS/1471.4886fbd23111eca0.js +1 -0
  4. package/POS/1578.f7d53549bc4be5f4.js +1 -0
  5. package/POS/158.4ca103d64cf70d76.js +1 -0
  6. package/POS/1879.f43138c57b4a53a6.js +1 -0
  7. package/POS/2153.9ff3719617479b90.js +1 -0
  8. package/POS/2258.938ac4b002eac8e9.js +1 -0
  9. package/POS/2262.c93720b4b9adbd01.js +1 -0
  10. package/POS/2384.400083d7f1d8d6c1.js +1 -0
  11. package/POS/2397.bb067581f1d02396.js +1 -0
  12. package/POS/2406.cada592da72e5a8b.js +1 -0
  13. package/POS/2418.99422783c8f573cd.js +1 -0
  14. package/POS/2605.9d3120f2d682ab66.js +1 -0
  15. package/POS/2944.ad8361b210788ad9.js +1 -0
  16. package/POS/2997.2fcb8ff2a3006c4b.js +1 -0
  17. package/POS/3079.be523126e7949e2d.js +1 -0
  18. package/POS/3116.b33ab0454f948f24.js +1 -0
  19. package/POS/3400.163cf8b656ea67ff.js +1 -0
  20. package/POS/3502.15dd217ec9d7db44.js +1 -0
  21. package/POS/3975.443f3f03629f0e93.js +1 -0
  22. package/POS/3rdpartylicenses.txt +6 -5
  23. package/POS/4167.3541465fae7dfbea.js +1 -0
  24. package/POS/4290.914171aa2d108fbd.js +1 -0
  25. package/POS/4466.a92c0f00a0c17840.js +1 -0
  26. package/POS/4854.435dd1c7c3276302.js +1 -0
  27. package/POS/500.bf0a7844fb259aaa.js +1 -0
  28. package/POS/5189.08dca51afe72dcc4.js +1 -0
  29. package/POS/5381.fc711f80c0d2f929.js +1 -0
  30. package/POS/5671.01939135dae58e9d.js +1 -0
  31. package/POS/6160.d7848e61782bc4b6.js +1 -0
  32. package/POS/6346.f8d5ff1b1623f904.js +1 -0
  33. package/POS/6683.61881cca82d8ca08.js +1 -0
  34. package/POS/6825.165310267386b510.js +1 -0
  35. package/POS/684.c20e133246d31306.js +1 -0
  36. package/POS/6963.662196d367f46eca.js +1 -0
  37. package/POS/7348.e95196b7a7cb5c20.js +1 -0
  38. package/POS/7355.d51bda5ad9c598dd.js +1 -0
  39. package/POS/7533.28f1f9b2aec54455.js +1 -0
  40. package/POS/768.c713a18d6d5b82ef.js +1 -0
  41. package/POS/773.a5e11e68532e58b4.js +1 -0
  42. package/POS/7901.b7d1d901d204b004.js +1 -0
  43. package/POS/8190.4507fdea48c313f1.js +1 -0
  44. package/POS/8410.5b42ba0dbf0ed1c5.js +1 -0
  45. package/POS/8543.134a9455f2d06917.js +1 -0
  46. package/POS/8932.a4c44835da2224c4.js +1 -0
  47. package/POS/8985.7c1f5c0905fe0b59.js +1 -0
  48. package/POS/9112.69c0719023b01361.js +1 -0
  49. package/POS/9175.afcba7f721ae5dc8.js +1 -0
  50. package/POS/9471.6b0f834f43792609.js +1 -0
  51. package/POS/9780.81365b8438d9eea0.js +1 -0
  52. package/POS/9916.aaa5e1eba8c311c2.js +1 -0
  53. package/POS/{color.6441e63a57ccc5105bad.png → color.dae87a04d07ca92b.png} +0 -0
  54. package/POS/common.c44a5ad4b034d999.js +1 -0
  55. package/POS/{hue.f8505bd4d6f3e3aa435b.png → hue.8b1818380241e6ac.png} +0 -0
  56. package/POS/lg.955a4bcf92186ac4.woff2 +0 -0
  57. package/POS/lg.a5ca0178ad5f95f7.svg +54 -0
  58. package/POS/lg.c950f0b5c587534c.woff +0 -0
  59. package/POS/lg.dc565ab5551f1c21.ttf +0 -0
  60. package/POS/loading.49ca460c0836bedc.gif +0 -0
  61. package/POS/main.e44370cc1b14e4bc.js +1 -0
  62. package/POS/polyfills.ac065001f76d89fc.js +1 -0
  63. package/POS/pos-index.html +2 -5
  64. package/POS/{primeicons.3a0d4a58da62cf7c55bb.ttf → primeicons.49bf9d9bedd3bf69.ttf} +0 -0
  65. package/POS/{primeicons.c55d94a248721abbd220.svg → primeicons.4ade98464de5b0cf.svg} +0 -0
  66. package/POS/{primeicons.dfbfef2de4bfb34e9722.eot → primeicons.bc7479046d23c211.eot} +0 -0
  67. package/POS/{primeicons.e61f3495a7ecd3d571a4.woff → primeicons.d2433813f8ffa55d.woff} +0 -0
  68. package/POS/runtime.81e7b4faf010af3c.js +1 -0
  69. package/POS/scripts.82f66f8bb4be4ca5.js +1 -0
  70. package/POS/{styles.8c2440da5b7abd6d8cf2.css → styles.5999016d98f5ac9c.css} +2470 -439
  71. package/Scripts/Angular/Controller/Cashier.js +0 -2
  72. package/Scripts/Angular/Controller/Sell.js +8 -8
  73. package/package.json +1 -1
  74. package/POS/1126.56b2edd9e20fa17f3fd0.js +0 -1
  75. package/POS/1394.75775e0e7998c05c6646.js +0 -1
  76. package/POS/147.ef3ca341099d1077471d.js +0 -1
  77. package/POS/1494.19e397a7ef2c9da7d825.js +0 -1
  78. package/POS/1732.0b5e58abab068bdb63f3.js +0 -1
  79. package/POS/1829.9ef6c10b44d0ac6559df.js +0 -1
  80. package/POS/24.8bf4f3615861f8552a28.js +0 -1
  81. package/POS/2416.b9ef5fea6f1d91b42f20.js +0 -1
  82. package/POS/2542.df9f55732b4f6b62356a.js +0 -1
  83. package/POS/2614.71003950a9843c9bae5f.js +0 -1
  84. package/POS/2700.9909f945a4fd5c76f5a0.js +0 -1
  85. package/POS/2802.825b6cc1b72adc6583bf.js +0 -1
  86. package/POS/2837.d12dbeb90844f569e504.js +0 -1
  87. package/POS/2942.78a0516968a90dc5e524.js +0 -1
  88. package/POS/3013.d1000fdcd2c8e86cfc38.js +0 -1
  89. package/POS/3098.897bcfb7347651eb071d.js +0 -1
  90. package/POS/3183.610b65fb3f0aa0d84799.js +0 -1
  91. package/POS/3403.81a01ea5a2785c01e0d2.js +0 -1
  92. package/POS/3461.b902416584e28e645611.js +0 -1
  93. package/POS/3583.b8866410ffbcca71d5da.js +0 -1
  94. package/POS/3588.b0e9df73acab0639ddd4.js +0 -1
  95. package/POS/3974.ea32ddf9865f117430cf.js +0 -1
  96. package/POS/4140.483830c8de2849339ebc.js +0 -1
  97. package/POS/4333.4ac437f80a3ed82832a9.js +0 -1
  98. package/POS/4387.70a3fca76519066210c0.js +0 -1
  99. package/POS/4579.98bea5de714053cd18b7.js +0 -1
  100. package/POS/549.cfb098dc3c1941033b97.js +0 -1
  101. package/POS/5937.048d476c29be917c5742.js +0 -1
  102. package/POS/5939.aadb569bb1c4d25f8456.js +0 -1
  103. package/POS/5968.d697c335d2a6db9a5718.js +0 -1
  104. package/POS/6333.84948f6efb562c5507fa.js +0 -1
  105. package/POS/647.48d79cf8c42b5b72cd0d.js +0 -1
  106. package/POS/6736.31bf0ada57dfe7ae149e.js +0 -1
  107. package/POS/6756.1ef505a052d683792a11.js +0 -1
  108. package/POS/6832.29ed00358f9791d7e973.js +0 -1
  109. package/POS/7376.3dad662c99b2734fa0d6.js +0 -1
  110. package/POS/7434.8359dff874f2871ea6e7.js +0 -1
  111. package/POS/783.9b5fa16feee0fe754b40.js +0 -1
  112. package/POS/8146.781f625377ffdc0b5537.js +0 -1
  113. package/POS/8255.e70f2f98c42c300f1704.js +0 -1
  114. package/POS/8598.682705194f79edfab710.js +0 -1
  115. package/POS/8741.c27847bccbb16f7b5804.js +0 -1
  116. package/POS/8834.16cee7d8a6327ff85c17.js +0 -1
  117. package/POS/8936.1d0c5bf58ae2c2276a69.js +0 -1
  118. package/POS/9272.f885f46fdd7344a51d15.js +0 -1
  119. package/POS/9309.c93205c130ffed859a94.js +0 -1
  120. package/POS/9365.aa6e68e6916a8ab0b362.js +0 -1
  121. package/POS/970.f231ba57e44851991f47.js +0 -1
  122. package/POS/common.d795f8cf4b7a67cb7589.js +0 -1
  123. package/POS/main.2cf3dad81e61006b6884.js +0 -1
  124. package/POS/polyfills.f937ed59cfc2cc889dd0.js +0 -1
  125. package/POS/runtime.6a5f0351f535ce5bb724.js +0 -1
  126. package/POS/scripts.b3903806c7128dd33941.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1322],{713:(Q,b,d)=>{d.d(b,{U:()=>s});var l=d(2313);class s extends l.M{constructor(g,m,t){super(g),this._httpService=g,this.formDataAPI=m,this.route=t,this.data={},this._httpService.post(`/api/${this.formDataAPI}`,JSON.stringify(this.route.snapshot.queryParams)).subscribe(T=>{this.data=T,this.postBindForm(T)})}get formData(){return this.data.Form}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(g){}onSubmit(g){this.preSubmitForm(),this._httpService.post(`/api/${g}`,JSON.stringify(this.formData)).subscribe(m=>{this.onSubmitSuccess(m)},m=>{this.onSubmitError(m)})}preSubmitForm(){}onSubmitSuccess(g){}onSubmitError(g){}}},1322:(Q,b,d)=>{d.r(b),d.d(b,{ShiftModule:()=>Ii});var l=d(9133),s=d(6019),u=d(4382),g=d(2254),m=d(5304),t=d(3668),x=d(7481),T=d(859);let O=(()=>{class n{constructor(e,o){this.dialogRef=e,this.data=o,this.Form={},this.VistorMandatory=!1,this.Form={}}ngOnInit(){this.data.modalConfig.validated=!this.data.VisitorMandatory,this.Form.Note=""}onFillVisitor(e){this.data.modalConfig.validated=!0,0==e&&(this.data.modalConfig.validated=!1)}onOk(){this.dialogRef.close({Data:this.Form})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.so),t.Y36(m.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["modal-close"]],decls:14,vars:5,consts:[[3,"title","config","onOk","onCancel","onClose"],[1,"row"],[1,"col-sm-12"],[1,"form-label-group"],["id","desc","placeholder","Note",1,"form-control","w-100",3,"rows","ngModel","ngModelChange"],["for","desc"],["type","text","name","Visitors","autoNum","","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["for","amount"]],template:function(e,o){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t.TgZ(1,"content"),t.TgZ(2,"div",1),t.TgZ(3,"div",2),t.TgZ(4,"div",3),t.TgZ(5,"textarea",4),t.NdJ("ngModelChange",function(r){return o.Form.Note=r}),t.qZA(),t.TgZ(6,"label",5),t._uU(7,"Note"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",1),t.TgZ(9,"div",2),t.TgZ(10,"div",3),t.TgZ(11,"input",6),t.NdJ("ngModelChange",function(r){return o.Form.Visitors=r})("ngModelChange",function(r){return o.onFillVisitor(r)}),t.qZA(),t.TgZ(12,"label",7),t._uU(13,"Visitors"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("title","Closing Note")("config",o.data.modalConfig),t.xp6(5),t.Q6J("rows",o.data.textareaRow)("ngModel",o.Form.Note),t.xp6(6),t.Q6J("ngModel",o.Form.Visitors))},directives:[x.M,l.Fj,l.JJ,l.On,T.b],styles:[""]}),n})();var y=d(5761),v=d(2387),C=d(5496);const p=function(n){return{selected:n}};let h=(()=>{class n{constructor(e,o,a){this.dialogRef=e,this.data=o,this.toastr=a,this.LabelExpense=[],this.PaymentList=[],this.expense={},this.config=new y.O,this.Form=new c,this.LabelExpense=o.LabelExpense,this.PaymentList=o.PaymentList,this.expenseList=this.data.expenseList,console.log(this.expenseList)}ngOnInit(){this.config.title="Expense Detail"}onOk(){null==this.Form.ID&&(this.Form=null),-1!=this.expenseList.findIndex(o=>o.ID==this.Form.ID)&&(this.toastr.error("Can't input same expense label in 1 shift",g.n.Error),this.Form=null),this.dialogRef.close({Data:this.Form})}IsNotEmpty(e){return null!=e&&null!=e&&""!=e}updateExpense(e){this.expense=e}chaneExpense(){let e=this.LabelExpense.filter(o=>o.ID==this.Form.ID);Object.assign(this.Form,e[0])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.so),t.Y36(m.WI),t.Y36(v._W))},n.\u0275cmp=t.Xpm({type:n,selectors:[["modal-expense"]],decls:26,vars:14,consts:[[3,"config","onOk","onClose","onCancel"],[2,"width","350px"],[1,"row",3,"hidden"],[1,"col-sm-6"],[1,"form-label-group",3,"ngClass"],["id","label","bindLabel","Name","bindValue","ID",1,"productform",2,"width","100%",3,"ngModel","items","change","ngModelChange"],["for","label"],["id","payment","bindLabel","Name","bindValue","ID",1,"productform",2,"width","100%",3,"ngModel","items","ngModelChange"],["for","payment"],[1,"row"],[1,"col-sm-12"],[1,"form-label-group"],["type","text","name","Amount","autoNum","","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["for","amount"],["rows","5","id","desc","placeholder","Note",1,"form-control","w-100",3,"ngModel","ngModelChange"],["for","desc"]],template:function(e,o){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return o.onOk()})("onClose",function(){return o.dialogRef.close()})("onCancel",function(){return o.dialogRef.close()}),t.TgZ(1,"content"),t.TgZ(2,"div",1),t.TgZ(3,"div",2),t.TgZ(4,"div",3),t.TgZ(5,"div",4),t.TgZ(6,"ng-select",5),t.NdJ("change",function(){return o.chaneExpense()})("ngModelChange",function(r){return o.Form.ID=r}),t.qZA(),t.TgZ(7,"label",6),t._uU(8,"Select Label"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",3),t.TgZ(10,"div",4),t.TgZ(11,"ng-select",7),t.NdJ("ngModelChange",function(r){return o.Form.PaymentID=r}),t.qZA(),t.TgZ(12,"label",8),t._uU(13,"Payment Method"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",9),t.TgZ(15,"div",10),t.TgZ(16,"div",11),t.TgZ(17,"input",12),t.NdJ("ngModelChange",function(r){return o.Form.Amount=r}),t.qZA(),t.TgZ(18,"label",13),t._uU(19,"Amount"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(20,"div",9),t.TgZ(21,"div",10),t.TgZ(22,"div",11),t.TgZ(23,"textarea",14),t.NdJ("ngModelChange",function(r){return o.Form.Note=r}),t.qZA(),t.TgZ(24,"label",15),t._uU(25,"Note"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("config",o.config),t.xp6(3),t.Q6J("hidden",o.LabelExpense.length<0),t.xp6(2),t.Q6J("ngClass",t.VKq(10,p,o.IsNotEmpty(o.Form.AccountID))),t.xp6(1),t.Q6J("ngModel",o.Form.ID)("items",o.LabelExpense),t.xp6(4),t.Q6J("ngClass",t.VKq(12,p,o.IsNotEmpty(o.Form.PaymentID))),t.xp6(1),t.Q6J("ngModel",o.Form.PaymentID)("items",o.PaymentList),t.xp6(6),t.Q6J("ngModel",o.Form.Amount),t.xp6(6),t.Q6J("ngModel",o.Form.Note))},directives:[x.M,s.mk,C.w9,l.JJ,l.On,l.Fj,T.b],encapsulation:2}),n})();class c{constructor(){}}var q=d(1139),M=d(7695),G=d(8735),S=d(8596),F=d(2418),I=d(9265),f=d(1464);function z(n,i){if(1&n&&(t.TgZ(0,"a",7),t._uU(1," Print "),t.qZA()),2&n){const e=t.oxw(2);t.s9C("href",e.PrintUrl,t.LSH)}}function X(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",8),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).showCloseModal()}),t._uU(1," Close Register "),t.qZA()}}function tt(n,i){if(1&n&&(t.TgZ(0,"div",12),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.MessageInfo," ")}}function et(n,i){if(1&n&&(t.TgZ(0,"div",21),t.TgZ(1,"div",15),t.TgZ(2,"div",16),t.TgZ(3,"h2",17),t._UZ(4,"i",25),t._uU(5,"Invoice / Void"),t.qZA(),t.qZA(),t.TgZ(6,"div",19),t.TgZ(7,"div",23),t._uU(8),t.ALo(9,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(8),t.AsE("",t.lcZ(9,2,e.data.Session.Invoice_Count)," / ",e.data.VoidInvoice.length,"")}}function nt(n,i){if(1&n&&(t.TgZ(0,"div",21),t.TgZ(1,"div",15),t.TgZ(2,"div",26),t.TgZ(3,"h2",17),t._UZ(4,"i",27),t._uU(5,"Sales + Tax"),t.qZA(),t.qZA(),t.TgZ(6,"div",19),t.TgZ(7,"div",23),t._uU(8),t.ALo(9,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(8),t.Oqu(t.lcZ(9,1,e.data.Session.SalesNSurcharge))}}function it(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t.TgZ(2,"div",15),t.TgZ(3,"div",16),t.TgZ(4,"h2",17),t._UZ(5,"i",18),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",19),t.TgZ(8,"div",20),t._uU(9),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"div",21),t.TgZ(11,"div",15),t.TgZ(12,"div",16),t.TgZ(13,"h2",17),t._UZ(14,"i",22),t._uU(15,"Opening"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"div",23),t._uU(18),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"div",21),t.TgZ(20,"div",15),t.TgZ(21,"div",16),t.TgZ(22,"h2",17),t._UZ(23,"i",22),t._uU(24,"Closing"),t.qZA(),t.qZA(),t.TgZ(25,"div",19),t.TgZ(26,"div",23),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(28,et,10,4,"div",24),t.YNc(29,nt,10,3,"div",24),t.qZA()),2&n){const e=t.oxw(3);t.xp6(6),t.hij(" ",e.data.OutletName," / Cashier"),t.xp6(3),t.hij(" ",e.data.LoginID," "),t.xp6(9),t.Oqu(e.data.RegisterStartWithTimezone),t.xp6(9),t.Oqu(e.data.RegisterEndWithTimezone),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible)}}function ot(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Received"),t.qZA())}function at(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Expected"),t.qZA())}function rt(n,i){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Differences"),t.qZA())}function _t(n,i){if(1&n&&(t.TgZ(0,"td",45),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.Received)," ")}}function dt(n,i){if(1&n&&(t.TgZ(0,"td",45),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.Expected)," ")}}const P=function(n,i){return{"text-success":n,"text-danger":i}};function st(n,i){if(1&n&&(t.TgZ(0,"td",46),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.Tol(t.WLB(5,P,e.ShortOver>0,e.ShortOver<0)),t.xp6(1),t.hij(" ",t.lcZ(2,3,e.ShortOver)," ")}}function lt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.TgZ(4,"input",40),t.NdJ("ngModelChange",function(a){return t.CHM(e).$implicit.Start=a})("keyup",function(){const r=t.CHM(e).$implicit;return t.oxw(5).myFunct(r)}),t.qZA(),t.qZA(),t.YNc(5,_t,3,3,"td",41),t.YNc(6,dt,3,3,"td",41),t.TgZ(7,"td"),t.TgZ(8,"input",42),t.NdJ("keyup",function(){const r=t.CHM(e).$implicit;return t.oxw(5).ChangeDifferences(r,!0)})("ngModelChange",function(a){return t.CHM(e).$implicit.Amount=a}),t.qZA(),t.qZA(),t.YNc(9,st,3,8,"td",43),t.TgZ(10,"td"),t.TgZ(11,"input",44),t.NdJ("ngModelChange",function(a){return t.CHM(e).$implicit.Note=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(5);t.xp6(2),t.Oqu(e.Name),t.xp6(2),t.Q6J("ngModel",e.Start)("readonly",!o.data.ExpectedPaymentVisible),t.xp6(1),t.Q6J("ngIf",o.data.PaymentReceiveVisible),t.xp6(1),t.Q6J("ngIf",o.data.ExpectedPaymentVisible),t.xp6(2),t.Q6J("ngModel",e.Amount),t.xp6(1),t.Q6J("ngIf",o.data.ExpectedPaymentVisible),t.xp6(2),t.Q6J("ngModel",e.Note)}}function ct(n,i){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.ALo(2,"number"),t.ALo(3,"sum"),t.qZA()),2&n){const e=t.oxw(6);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.xi3(3,3,e.data.Payments,"Received"))," ")}}function pt(n,i){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.ALo(2,"number"),t.ALo(3,"sum"),t.qZA()),2&n){const e=t.oxw(6);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.xi3(3,3,e.data.Payments,"Expected"))," ")}}function gt(n,i){if(1&n&&(t.TgZ(0,"td",49),t.ALo(1,"sum"),t.ALo(2,"sum"),t._uU(3),t.ALo(4,"number"),t.ALo(5,"sum"),t.qZA()),2&n){const e=t.oxw(6);t.Tol(t.WLB(14,P,t.xi3(1,3,e.data.Payments,"ShortOver")>0,t.xi3(2,6,e.data.Payments,"ShortOver")<0)),t.xp6(3),t.hij(" ",t.lcZ(4,9,t.xi3(5,11,e.data.Payments,"ShortOver"))," ")}}function mt(n,i){if(1&n&&(t.TgZ(0,"tfoot"),t.TgZ(1,"tr"),t.TgZ(2,"th"),t._uU(3,"Total:"),t.qZA(),t.TgZ(4,"td",47),t._uU(5),t.ALo(6,"number"),t.ALo(7,"sum"),t.qZA(),t.YNc(8,ct,4,6,"td",48),t.YNc(9,pt,4,6,"td",48),t.TgZ(10,"td",49),t._uU(11),t.ALo(12,"number"),t.ALo(13,"sum"),t.qZA(),t.YNc(14,gt,6,17,"td",50),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(5),t.hij(" ",t.lcZ(6,5,t.xi3(7,7,e.data.Payments,"Start"))," "),t.xp6(3),t.Q6J("ngIf",e.data.PaymentReceiveVisible),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible),t.xp6(2),t.hij(" ",t.lcZ(12,10,t.xi3(13,12,e.data.Payments,"Amount"))," "),t.xp6(3),t.Q6J("ngIf",e.data.ExpectedPaymentVisible)}}function Zt(n,i){if(1&n&&(t.TgZ(0,"table",31),t.TgZ(1,"thead",32),t.TgZ(2,"tr"),t.TgZ(3,"th",33),t._uU(4,"Payment"),t.qZA(),t.TgZ(5,"th",34),t._uU(6,"Start"),t.qZA(),t.YNc(7,ot,2,0,"th",35),t.YNc(8,at,2,0,"th",35),t.TgZ(9,"th",34),t._uU(10,"Counted"),t.qZA(),t.YNc(11,rt,2,0,"th",36),t.TgZ(12,"th",37),t._uU(13,"Note"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"tbody"),t.YNc(15,lt,12,8,"tr",38),t.qZA(),t.YNc(16,mt,15,15,"tfoot",6),t.qZA()),2&n){const e=t.oxw(4);t.xp6(7),t.Q6J("ngIf",e.data.PaymentReceiveVisible),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible),t.xp6(3),t.Q6J("ngIf",e.data.ExpectedPaymentVisible),t.xp6(4),t.Q6J("ngForOf",e.data.Payments),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible)}}function ut(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",28),t.TgZ(2,"div",16),t.TgZ(3,"h2"),t._uU(4,"Total Payments"),t.qZA(),t.qZA(),t.TgZ(5,"div",19),t.TgZ(6,"div",29),t.YNc(7,Zt,17,5,"table",30),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(7),t.Q6J("ngIf",e.data.Payments.length>0)}}const U=function(n){return{active:n}};function ht(n,i){if(1&n&&(t.TgZ(0,"li",85),t.TgZ(1,"a",86),t._uU(2,"Invoice"),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Tol(t.VKq(2,U,e.data.InvoiceVisible))}}function ft(n,i){if(1&n&&(t.TgZ(0,"li",85),t.TgZ(1,"a",87),t._uU(2,"Voided Invoice"),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Tol(t.VKq(2,U,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible))}}function xt(n,i){if(1&n&&(t.TgZ(0,"li",85),t.TgZ(1,"a",88),t._uU(2,"Payment"),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Tol(t.VKq(2,U,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible))}}function Tt(n,i){1&n&&(t.TgZ(0,"li",85),t.TgZ(1,"a",89),t._uU(2,"Expense"),t.qZA(),t.qZA())}function At(n,i){if(1&n&&(t.TgZ(0,"li",85),t.TgZ(1,"a",90),t._uU(2,"Bank Note"),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Tol(t.VKq(2,U,!e.data.InvoiceVisible&&!e.data.PaymentReceiveVisible))}}function vt(n,i){1&n&&(t.TgZ(0,"li",85),t.TgZ(1,"a",91),t._uU(2,"Sales Return"),t.qZA(),t.qZA())}function qt(n,i){1&n&&(t.TgZ(0,"th",101),t._uU(1,"Date"),t.qZA())}function bt(n,i){1&n&&(t.TgZ(0,"th",101),t._uU(1,"Date"),t.qZA())}function Ct(n,i){if(1&n&&(t._UZ(0,"td",100),t.ALo(1,"date")),2&n){const e=t.oxw().$implicit;t.Q6J("innerHTML",t.xi3(1,1,e.Created,"dd MMM yyyy"),t.oJD)}}function St(n,i){if(1&n&&(t._UZ(0,"td",100),t.ALo(1,"date")),2&n){const e=t.oxw().$implicit;t.Q6J("innerHTML",t.xi3(1,1,e.Date,"dd MMM yyyy"),t.oJD)}}const It=function(n,i,e){return{"text-success":n,"text-warning":i,"text-danger":e}};function yt(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",82),t.TgZ(2,"td"),t._UZ(3,"a",102),t.qZA(),t.YNc(4,Ct,2,4,"td",103),t.YNc(5,St,2,4,"td",103),t._UZ(6,"td",100),t.ALo(7,"date"),t._UZ(8,"td",82),t.ALo(9,"number"),t._UZ(10,"td",82),t.ALo(11,"number"),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(5);t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.ID,"",t.LSH),t.Q6J("innerHTML",e.Number,t.oJD),t.xp6(1),t.Q6J("ngIf",0==a.data.Session.Type),t.xp6(1),t.Q6J("ngIf",0!=a.data.Session.Type),t.xp6(1),t.Q6J("innerHTML",t.xi3(7,10,e.Created,"HH:mm"),t.oJD),t.xp6(2),t.Q6J("innerHTML",t.lcZ(9,13,e.Quantity),t.oJD),t.xp6(2),t.Tol(t.kEZ(17,It,3==e.PaymentStateID,2==e.PaymentStateID,1==e.PaymentStateID)),t.Q6J("innerHTML",t.lcZ(11,15,e.SalesNTax),t.oJD)}}function Mt(n,i){if(1&n&&(t.TgZ(0,"div",21),t.TgZ(1,"div",92),t.TgZ(2,"div",19),t.TgZ(3,"table",78),t.TgZ(4,"thead",66),t.TgZ(5,"tr"),t.TgZ(6,"th",93),t._uU(7,"No"),t.qZA(),t.TgZ(8,"th",94),t._uU(9,"Number"),t.qZA(),t.YNc(10,qt,2,0,"th",95),t.YNc(11,bt,2,0,"th",95),t.TgZ(12,"th",96),t._uU(13,"Time"),t.qZA(),t.TgZ(14,"th",97),t._uU(15,"Qty"),t.qZA(),t.TgZ(16,"th",98),t._uU(17,"Nett"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"tbody"),t.YNc(19,yt,12,21,"tr",38),t.qZA(),t.TgZ(20,"tfoot"),t.TgZ(21,"tr"),t._UZ(22,"td",99),t.TgZ(23,"td",45),t._UZ(24,"b",100),t.ALo(25,"number"),t.ALo(26,"sum"),t.qZA(),t.TgZ(27,"td",45),t._UZ(28,"b",100),t.ALo(29,"number"),t.ALo(30,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(10),t.Q6J("ngIf",0==e.data.Session.Type),t.xp6(1),t.Q6J("ngIf",0!=e.data.Session.Type),t.xp6(8),t.Q6J("ngForOf",e.data.Invoices),t.xp6(5),t.Q6J("innerHTML",t.lcZ(25,5,t.xi3(26,7,e.data.Invoices,"Quantity")),t.oJD),t.xp6(4),t.Q6J("innerHTML",t.lcZ(29,10,t.xi3(30,12,e.data.Invoices,"SalesNTax")),t.oJD)}}function Ut(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",100),t.TgZ(2,"td"),t.TgZ(3,"a",105),t._uU(4),t.qZA(),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"td"),t._uU(11),t.ALo(12,"IsMinDate"),t.qZA(),t.TgZ(13,"td",45),t._uU(14),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.ID,"",t.LSH),t.xp6(1),t.hij(" ",e.Number," "),t.xp6(2),t.Oqu(e.CustomerName),t.xp6(2),t.Oqu(t.xi3(9,7,e.Date,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(12,10,e.Due,"dd MMM yyyy")),t.xp6(3),t.Oqu(e.Payment)}}function Dt(n,i){if(1&n&&(t.TgZ(0,"div",104),t.TgZ(1,"div",63),t.TgZ(2,"div",19),t.TgZ(3,"table",78),t.TgZ(4,"thead",66),t.TgZ(5,"tr"),t.TgZ(6,"th",79),t._uU(7,"No"),t.qZA(),t.TgZ(8,"th",69),t._uU(9,"Number"),t.qZA(),t.TgZ(10,"th",69),t._uU(11,"Customer"),t.qZA(),t.TgZ(12,"th",69),t._uU(13,"Date"),t.qZA(),t.TgZ(14,"th",69),t._uU(15,"Due"),t.qZA(),t.TgZ(16,"th",69),t._uU(17,"Payment"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"tbody"),t.YNc(19,Ut,15,13,"tr",38),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.Q6J("hidden",!(e.data.VoidInvoice.length>0)),t.xp6(19),t.Q6J("ngForOf",e.data.VoidInvoice)}}function Jt(n,i){1&n&&t._UZ(0,"th",111),2&n&&t.Q6J("innerHTML",i.$implicit.Name,t.oJD)}function Nt(n,i){if(1&n&&(t.TgZ(0,"td",45),t._uU(1),t.ALo(2,"number"),t.ALo(3,"FilterGetAmount"),t.qZA()),2&n){const e=i.$implicit,o=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,t.gM2(3,3,o.Amounts,"Key",e.ID,"Value"))," ")}}function Ot(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",82),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t.TgZ(9,"a",112),t._uU(10),t.qZA(),t.qZA(),t._UZ(11,"td",100),t.YNc(12,Nt,4,8,"td",110),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(5);t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.Oqu(t.xi3(4,7,e.Date,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(7,10,e.PostedDate,"dd MMM yyyy")),t.xp6(3),t.Q6J("href",1==e.TypeID?"/A/Orders/Orders/Customer_Invoice/Info?ID="+e.InvoiceID:"/A/Debt/Advance/AR_Collection/Info?ID="+e.InvoiceID,t.LSH),t.xp6(1),t.Oqu(e.Number),t.xp6(1),t.Q6J("innerHTML",e.CustomerName,t.oJD),t.xp6(1),t.Q6J("ngForOf",a.data.PaymentMethods)}}function Ft(n,i){if(1&n&&(t.TgZ(0,"td",45),t._uU(1),t.ALo(2,"number"),t.ALo(3,"sum"),t.ALo(4,"GetChildrenArray"),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(5);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.xi3(3,3,o.filterAmount(t.xi3(4,6,o.data.PaymentReceived,"Amounts"),"Key",e.ID),"Value"))," ")}}const w=function(n,i){return{show:n,active:i}};function wt(n,i){if(1&n&&(t.TgZ(0,"div",106),t.TgZ(1,"div",58),t.TgZ(2,"div",51),t.TgZ(3,"div",92),t.TgZ(4,"div",19),t.TgZ(5,"div",107),t.TgZ(6,"table",78),t.TgZ(7,"thead",66),t.TgZ(8,"tr"),t.TgZ(9,"th",93),t._uU(10,"No"),t.qZA(),t.TgZ(11,"th",69),t._uU(12,"Payment Date"),t.qZA(),t.TgZ(13,"th",69),t._uU(14,"Posted Date"),t.qZA(),t.TgZ(15,"th",69),t._uU(16,"Number"),t.qZA(),t.TgZ(17,"th",69),t._uU(18,"Customer"),t.qZA(),t.YNc(19,Jt,1,1,"th",108),t.qZA(),t.qZA(),t.TgZ(20,"tbody"),t.YNc(21,Ot,13,13,"tr",38),t.qZA(),t.TgZ(22,"tfoot"),t.TgZ(23,"tr"),t.TgZ(24,"td",109),t.TgZ(25,"b"),t._uU(26,"Total :"),t.qZA(),t.qZA(),t.YNc(27,Ft,5,9,"td",110),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.Tol(t.WLB(5,w,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible)),t.xp6(19),t.Q6J("ngForOf",e.data.PaymentMethods),t.xp6(2),t.Q6J("ngForOf",e.data.PaymentReceived),t.xp6(6),t.Q6J("ngForOf",e.data.PaymentMethods)}}function Lt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",115),t.NdJ("click",function(){return t.CHM(e),t.oxw(5).showExpenseModal()}),t._UZ(1,"i",116),t.qZA()}}function Qt(n,i){if(1&n&&(t.TgZ(0,"th",113),t.YNc(1,Lt,2,0,"button",114),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.Session&&e.data.InputMode)}}function Pt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td"),t.TgZ(1,"i",117),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().index;return t.oxw(4).DeleteExpenses(a)}),t.qZA(),t.qZA()}}function Rt(n,i){if(1&n&&(t.TgZ(0,"tr"),t.YNc(1,Pt,2,0,"td",6),t.TgZ(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td",45),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngIf",o.data.InputMode),t.xp6(2),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.lcZ(6,4,e.Amount)),t.xp6(3),t.Oqu(e.Note)}}function Et(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td"),t.TgZ(1,"input",121),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().$implicit.Quantity=a})("keyup",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw(4).DenominationTotal(a)}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.Quantity)}}function kt(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",118),t._uU(2),t.qZA(),t.TgZ(3,"td",119),t._uU(4),t.ALo(5,"number"),t.qZA(),t.YNc(6,Et,2,1,"td",6),t.TgZ(7,"td",120),t._uU(8),t.ALo(9,"number"),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(2),t.Oqu(e.PriceDisplay),t.xp6(1),t.Q6J("hidden",o.data.Session&&o.data.InputMode),t.xp6(1),t.hij(" ",t.lcZ(5,5,e.Quantity)," "),t.xp6(2),t.Q6J("ngIf",o.data.Session&&o.data.InputMode),t.xp6(2),t.Oqu(t.lcZ(9,7,e.Total))}}function Yt(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",100),t.TgZ(2,"td"),t.TgZ(3,"a",112),t._UZ(4,"b",100),t.qZA(),t.qZA(),t._UZ(5,"td",100),t._UZ(6,"td",82),t.ALo(7,"number"),t._UZ(8,"td",82),t.ALo(9,"number"),t._UZ(10,"td",100),t.ALo(11,"date"),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.InvoiceID,"",t.LSH),t.xp6(1),t.Q6J("innerHTML",e.Number,t.oJD),t.xp6(1),t.Q6J("innerHTML",e.CustomerName,t.oJD),t.xp6(1),t.Q6J("innerHTML",t.lcZ(7,7,e.Quantity),t.oJD),t.xp6(2),t.Q6J("innerHTML",t.lcZ(9,9,e.UnitPrice),t.oJD),t.xp6(2),t.Q6J("innerHTML",t.xi3(11,11,e.Created,"dd MMM yyyy"),t.oJD)}}function Ht(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",100),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"td"),t.TgZ(6,"a",105),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"td",45),t._uU(9),t.ALo(10,"number"),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.Oqu(t.xi3(4,5,e.Created,"dd MMM yyyy")),t.xp6(3),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.InvoiceID,"",t.LSH),t.xp6(1),t.hij(" ",e.InvoiceNumber," "),t.xp6(2),t.Oqu(t.lcZ(10,8,-1*e.Points))}}function Vt(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",51),t.TgZ(2,"ul",52),t.YNc(3,ht,3,4,"li",53),t.YNc(4,ft,3,4,"li",53),t.YNc(5,xt,3,4,"li",53),t.YNc(6,Tt,3,0,"li",53),t.YNc(7,At,3,4,"li",53),t.YNc(8,vt,3,0,"li",53),t.TgZ(9,"li",54),t.TgZ(10,"a",55),t._uU(11,"Loyalty Point"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(12,"div",56),t.TgZ(13,"div",57),t.TgZ(14,"div",58),t.YNc(15,Mt,31,15,"div",24),t.qZA(),t.qZA(),t.TgZ(16,"div",59),t.TgZ(17,"div",58),t.YNc(18,Dt,20,2,"div",60),t.qZA(),t.qZA(),t.YNc(19,wt,28,8,"div",61),t.TgZ(20,"div",62),t.TgZ(21,"div",58),t.TgZ(22,"div",51),t.TgZ(23,"div",63),t.TgZ(24,"div",64),t.TgZ(25,"table",65),t.TgZ(26,"thead",66),t.TgZ(27,"tr"),t.YNc(28,Qt,2,1,"th",67),t.TgZ(29,"th",33),t._uU(30,"Label"),t.qZA(),t.TgZ(31,"th",68),t._uU(32,"Amount"),t.qZA(),t.TgZ(33,"th",69),t._uU(34,"Note"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(35,"tbody"),t.YNc(36,Rt,9,6,"tr",38),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(37,"div",70),t.TgZ(38,"div",58),t.TgZ(39,"div",51),t.TgZ(40,"div",71),t.TgZ(41,"div",19),t.TgZ(42,"table",72),t.TgZ(43,"thead",66),t.TgZ(44,"tr"),t.TgZ(45,"th",69),t._uU(46,"Cash Denomination"),t.qZA(),t.TgZ(47,"th",73),t._uU(48,"Qty"),t.qZA(),t.TgZ(49,"th",74),t._uU(50,"Total"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"tbody"),t.YNc(52,kt,10,9,"tr",38),t.qZA(),t.TgZ(53,"tfoot"),t.TgZ(54,"tr"),t.TgZ(55,"th",75),t._uU(56,"Total:"),t.qZA(),t.TgZ(57,"td",76),t._uU(58),t.ALo(59,"number"),t.ALo(60,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(61,"div",77),t.TgZ(62,"div",58),t.TgZ(63,"div",51),t.TgZ(64,"div",71),t.TgZ(65,"div",19),t.TgZ(66,"table",78),t.TgZ(67,"thead",66),t.TgZ(68,"tr"),t.TgZ(69,"th",79),t._uU(70,"No"),t.qZA(),t.TgZ(71,"th",69),t._uU(72,"Number"),t.qZA(),t.TgZ(73,"th",69),t._uU(74,"Customer"),t.qZA(),t.TgZ(75,"th",45),t._uU(76,"Quantity"),t.qZA(),t.TgZ(77,"th",80),t._uU(78,"Price"),t.qZA(),t.TgZ(79,"th"),t._uU(80,"Date"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(81,"tbody"),t.YNc(82,Yt,12,14,"tr",38),t.qZA(),t.TgZ(83,"tfoot"),t.TgZ(84,"tr"),t.TgZ(85,"td",81),t._uU(86,"Total"),t.qZA(),t._UZ(87,"td",82),t.ALo(88,"number"),t.ALo(89,"sum"),t._UZ(90,"td",82),t.ALo(91,"number"),t.ALo(92,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(93,"div",83),t.TgZ(94,"div",58),t.TgZ(95,"div",51),t.TgZ(96,"div",71),t.TgZ(97,"div",19),t.TgZ(98,"table",78),t.TgZ(99,"thead",66),t.TgZ(100,"tr"),t.TgZ(101,"th",79),t._uU(102,"No"),t.qZA(),t.TgZ(103,"th",69),t._uU(104,"Date"),t.qZA(),t.TgZ(105,"th",69),t._uU(106,"Number"),t.qZA(),t.TgZ(107,"th",84),t._uU(108,"Point"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(109,"tbody"),t.YNc(110,Ht,11,10,"tr",38),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Q6J("ngIf",null!=e.data.Session&&e.data.InvoiceVisible),t.xp6(1),t.Q6J("ngIf",e.data.VoidInvoice.length>0),t.xp6(1),t.Q6J("ngIf",null!=e.data.Session&&e.data.PaymentReceiveVisible),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.SalesReturn.length>0),t.xp6(1),t.Q6J("hidden",!(e.data.LoyaltyPointhistory.length>0)),t.xp6(4),t.Tol(t.WLB(37,w,e.data.InvoiceVisible,e.data.InvoiceVisible)),t.xp6(2),t.Q6J("ngIf",null!=e.data.Session),t.xp6(3),t.Q6J("ngIf",e.data.InvoiceVisible),t.xp6(1),t.Q6J("ngIf",e.data.PaymentReceiveVisible),t.xp6(9),t.Q6J("ngIf",e.data.InputMode),t.xp6(8),t.Q6J("ngForOf",e.data.Expenses),t.xp6(1),t.Tol(t.WLB(40,w,!e.data.InvoiceVisible&&!e.data.PaymentReceiveVisible,!e.data.InvoiceVisible&&!e.data.PaymentReceiveVisible)),t.xp6(15),t.Q6J("ngForOf",e.data.Denominations),t.xp6(6),t.hij(" ",t.lcZ(59,22,t.xi3(60,24,e.data.Denominations,"Total"))," "),t.xp6(24),t.Q6J("ngForOf",e.data.SalesReturn),t.xp6(5),t.Q6J("innerHTML",t.lcZ(88,27,t.xi3(89,29,e.data.SalesReturn,"Quantity")),t.oJD),t.xp6(3),t.Q6J("innerHTML",t.lcZ(91,32,t.xi3(92,34,e.data.SalesReturn,"UnitPrice")),t.oJD),t.xp6(20),t.Q6J("ngForOf",e.data.LoyaltyPointhistory)}}function jt(n,i){if(1&n&&(t.TgZ(0,"div",122),t.TgZ(1,"h4",123),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.hij(" ",e.data.Message," ")}}function $t(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,tt,2,1,"div",9),t.YNc(2,it,30,6,"div",10),t.YNc(3,ut,8,1,"div",10),t.YNc(4,Vt,111,43,"div",10),t.YNc(5,jt,3,1,"div",11),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!=e.MessageInfo||null!=e.MessageInfo),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Message&&!e.data.Session)}}const Bt=function(){return["/menu/Sell"]};function Wt(n,i){if(1&n&&(t.TgZ(0,"mainpanel-cmp",1),t.TgZ(1,"actions"),t.TgZ(2,"a",2),t._uU(3," Back to POS "),t.qZA(),t.YNc(4,z,2,1,"a",3),t.YNc(5,X,2,0,"a",4),t.qZA(),t.TgZ(6,"content"),t.TgZ(7,"div",5),t.YNc(8,$t,6,5,"div",6),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("routerLink",t.DdM(7,Bt)),t.xp6(2),t.Q6J("ngIf",!e.InputMode&&e.PrintUrl),t.xp6(1),t.Q6J("ngIf",e.data.Session&&e.InputMode),t.xp6(3),t.Q6J("ngIf",e.data.ClosureEnabled)}}let Kt=(()=>{class n extends q.n{constructor(e,o,a,r){super(e,"Shift/Closure",null,r),this.httpService=e,this.matDialog=o,this.localData=a,this.toastr=r,this.totalOfflineOrders=0,this.Filter={},this.InputMode=!1,this.Expense=new c,this.modalConfig=new y.O,this.myFunct=function(_){_.Expected=_.Received+_.Start,this.ChangeDifferences(_)},this.DeleteExpenses=function(_){const Z=this.data.Session.RegisterID,A=JSON.parse(localStorage.getItem(Z));A.splice(_,1),localStorage.setItem(Z,JSON.stringify(A)),this.data.Expenses.splice(_,1)},this.DenominationTotal=function(_){_.Total=_.Amount*_.Quantity},this.ChangeDifferences=function(_,Z){this.data.ExpectedPaymentVisible?(Z||(_.Amount=_.Received+1*_.Start),_.ShortOver=_.Amount-(_.Received+1*_.Start)):(_.Received=0,_.ShortOver=0)},this.localData.getOfflineOrders().then(_=>{this.totalOfflineOrders=_.length}),this.modalConfig.title="Closing Note",this.modalConfig.customWidth="350px"}postInit(e){this.InputMode=e.InputMode,null!=this.data.Session&&null!=localStorage.getItem(this.data.Session.RegisterID)&&(this.data.Expenses=JSON.parse(localStorage.getItem(this.data.Session.RegisterID)))}showCloseModal(){this.matDialog.open(O,{data:{VistorMandatory:this.data.VisitorMandatory,modalConfig:this.modalConfig,textareaRow:"6"}}).afterClosed().subscribe(o=>{o&&(this.Visitors=o.Data.Visitors,this.Notes=o.Data.Note,void 0===this.Visitors&&(this.Visitors=0),this.CloseRegister())})}CloseRegister(){this.httpService.post("/API/Shift/EndShift",JSON.stringify({RegisterID:this.data.Register.ID,Note:this.Notes,Expenses:this.data.Expenses,Payments:this.data.Payments,Denominations:this.data.Denominations,Session:this.data.Session,Visitors:this.Visitors})).subscribe(o=>{this.InputMode=!1,this.PrintUrl=o.PrintUrl,this.MessageInfo=o.Message,localStorage.removeItem(this.data.Session.RegisterID)},o=>this.toastr.error(o,g.n.Error))}showExpenseModal(){this.matDialog.open(h,{data:{Form:this.Expense,expenseList:this.data.Expenses,LabelExpense:this.data.LabelExpense,PaymentList:this.data.PaymentList,ID:this.data.Session.RegisterID}}).afterClosed().pipe((0,G.h)(o=>M.gT.IsNotEmpty(o))).subscribe(o=>{if(o.Data.RegisterSessionID=this.data.Session.RegisterID,null==localStorage.getItem(this.data.Session.RegisterID))localStorage.setItem(this.data.Session.RegisterID,JSON.stringify([o.Data]));else{const a=JSON.parse(localStorage.getItem(this.data.Session.RegisterID));a.push(o.Data),localStorage.setItem(this.data.Session.RegisterID,JSON.stringify(a))}this.data.Expenses.push(o.Data)})}filterAmount(e,o,a){return e.filter(function(r){return r[o]==a})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.O),t.Y36(m.uw),t.Y36(F.T),t.Y36(v._W))},n.\u0275cmp=t.Xpm({type:n,selectors:[["POS-shift"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],["role","button","title","Back to POS",1,"btn","btn-outline-secondary","mr-3",3,"routerLink"],["role","button","class","btn btn-outline-secondary mr-3","target","_blank",3,"href",4,"ngIf"],["role","button","class","btn btn-primary text-white mr-3","title","Close Register",3,"click",4,"ngIf"],[1,"container-fluid","bg-light-gray","pt-4"],[4,"ngIf"],["role","button","target","_blank",1,"btn","btn-outline-secondary","mr-3",3,"href"],["role","button","title","Close Register",1,"btn","btn-primary","text-white","mr-3",3,"click"],["class","alert alert-success","role","alert",4,"ngIf"],["class","row",4,"ngIf"],["class","clearfix pb-6",4,"ngIf"],["role","alert",1,"alert","alert-success"],[1,"row"],[1,"col-3"],[1,"card"],[1,"card-header"],[1,"text-center"],["aria-hidden","true",1,"fas","fa-map-marker-alt"],[1,"card-body"],[1,"text-center","font-weight-normal","h5"],[1,"col"],[1,"far","fa-calendar-alt","mr-4"],[1,"h5","text-center","font-weight-normal"],["class","col",4,"ngIf"],[1,"fas","fa-file-invoice","mr-4"],[1,"card-header","px-0"],[1,"fas","fa-cart-arrow-down","mr-4"],[1,"card","w-100","mx-7"],[1,"col-12",2,"padding-left","0px","padding-right","0px"],["class","table table-bordered border-light-gray",4,"ngIf"],[1,"table","table-bordered","border-light-gray"],[1,"table-light"],[1,"border-right",2,"width","150px"],[1,"border-right","text-right","pr-10",2,"width","150px"],["class","border-right text-right pr-10","style","width: 150px;",4,"ngIf"],["style","width: 125px;","class","text-right pr-10",4,"ngIf"],[1,"border-left","text-right","pr-10"],[4,"ngFor","ngForOf"],[1,"text-right","pr-10",2,"width","125px"],["type","text","autoNum","",1,"form-control","text-right",3,"ngModel","readonly","ngModelChange","keyup"],["class","text-right",4,"ngIf"],["type","text","autoNum","",1,"form-control","text-right",3,"ngModel","keyup","ngModelChange"],["class","text-right pr-10",3,"class",4,"ngIf"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"text-right"],[1,"text-right","pr-10"],[1,"text-right","font-weight-bold"],["class","text-right font-weight-bold",4,"ngIf"],[1,"text-right","pr-10","font-weight-bold"],["class","text-right pr-10 font-weight-bold",3,"class",4,"ngIf"],[1,"col-sm-12"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["class","nav-item",4,"ngIf"],[1,"nav-item",3,"hidden"],["id","loyalty-tab","data-toggle","tab","href","#loyalty","role","tab","aria-controls","loyalty","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content"],["id","invoice","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"row","no-gutters"],["id","void","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],["class","col-12",3,"hidden",4,"ngIf"],["class","tab-pane fade mt-0 pt-0","id","payment","role","tabpanel",3,"class",4,"ngIf"],["id","expense","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"card","mr-5"],[1,"card-body","py-5"],[1,"table","table-bordered","mb-6"],[1,"thead-light"],["class","border-right","width","15px",4,"ngIf"],[1,"border-right","text-right",2,"width","150px"],[1,"border-right"],["id","bank","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"card","border-top-0"],[1,"table","table-bordered","custom-table"],[1,"border-right","text-right",2,"width","100px"],[1,"text-right","pr-8",2,"width","240px"],["colspan","2",1,"text-right"],[1,"text-right","pr-8","font-weight-bold"],["id","return","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"table","table-bordered"],[1,"border-right",2,"width","20px"],[1,"text-right","border-right"],["colspan","3"],[1,"text-right",3,"innerHTML"],["id","loyalty","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"border-right","text-right"],[1,"nav-item"],["id","invoice-tab","data-toggle","tab","href","#invoice","role","tab","aria-controls","invoice","aria-selected","false",1,"nav-link"],["expe","","id","void-tab","data-toggle","tab","href","#void","role","tab","aria-controls","void","aria-selected","false",1,"nav-link"],["id","payment-tab","data-toggle","tab","href","#payment","role","tab","aria-controls","payment","aria-selected","true",1,"nav-link"],["id","expense-tab","data-toggle","tab","href","#expense","role","tab","aria-controls","expense","aria-selected","false",1,"nav-link"],["id","bank-tab","data-toggle","tab","href","#bank","role","tab","aria-controls","bank","aria-selected","false",1,"nav-link"],["id","return-tab","data-toggle","tab","href","#return","role","tab","aria-controls","return","aria-selected","false",1,"nav-link"],[1,"card","mr-5","border-top-0"],[1,"text-right","border-right",2,"width","20px"],[1,"border-right",2,"width","200px"],["class","border-right","style","width: 85px;",4,"ngIf"],[1,"border-right",2,"width","30px"],[1,"text-right","border-right",2,"width","30px"],[1,"text-right","border-right",2,"width","60px"],["colspan","4"],[3,"innerHTML"],[1,"border-right",2,"width","85px"],[2,"color","blue",3,"href","innerHTML"],[3,"innerHTML",4,"ngIf"],[1,"col-12",3,"hidden"],["target","_blank",2,"color","blue",3,"href"],["id","payment","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"table-responsive",2,"overflow-x","auto"],["class","text-right border-right",3,"innerHTML",4,"ngFor","ngForOf"],["colspan","5",1,"text-right"],["class","text-right",4,"ngFor","ngForOf"],[1,"text-right","border-right",3,"innerHTML"],["target","_blank",3,"href"],["width","15px",1,"border-right"],["type","button","class","btn btn-outline-dark btn-sm bg-white text-black","title","Add Expense",3,"click",4,"ngIf"],["type","button","title","Add Expense",1,"btn","btn-outline-dark","btn-sm","bg-white","text-black",3,"click"],["aria-hidden","true",1,"fas","fa-plus"],[1,"fas","fa-times","fa-lg","text-danger",2,"cursor","pointer",3,"click"],[1,"font-weight-bold"],[1,"text-right",3,"hidden"],[1,"text-right","pr-8"],["type","text","autoNum","",1,"form-control","text-right",3,"ngModel","ngModelChange","keyup"],[1,"clearfix","pb-6"],[1,"font-weight-bold","bg-secondary","py-8","pl-5"]],template:function(e,o){1&e&&t.YNc(0,Wt,9,8,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data&&o.pageData)},directives:[s.O5,I.p,u.yS,s.sg,l.Fj,T.b,l.JJ,l.On],pipes:[s.JJ,f.qU,s.uU,f.$k,f.f4,f.J1],encapsulation:2}),n})();var Gt=d(8053),zt=d(6700);function Xt(n,i){if(1&n&&(t.TgZ(0,"a",8),t.TgZ(1,"b"),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.hij("You have ",e.totalOfflineOrders," Offline Orders")}}function te(n,i){1&n&&(t.TgZ(0,"h4",9),t._uU(1," Register session config is inactive, click "),t.TgZ(2,"a",10),t._uU(3,"here"),t.qZA(),t._uU(4," to activate (Go to Shift Tab, look for active session) "),t.qZA())}function ee(n,i){if(1&n&&(t.TgZ(0,"div",11),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.data.Warning," ")}}function ne(n,i){1&n&&(t.TgZ(0,"td"),t._uU(1,"VACANT"),t.qZA())}function ie(n,i){1&n&&(t.TgZ(0,"td",19),t._uU(1,"Active"),t.qZA())}function oe(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"button",21),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw(3).CloseShift(a)}),t._uU(2,"End Shift"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("hidden",!e.data.TakeOutClosure)}}function ae(n,i){1&n&&t._UZ(0,"td")}function re(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.YNc(3,ne,2,0,"td",7),t.YNc(4,ie,2,0,"td",17),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA(),t.YNc(10,oe,3,1,"td",18),t.YNc(11,ae,1,0,"td",7),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(e.Name),t.xp6(1),t.Q6J("ngIf","Close"==e.State),t.xp6(1),t.Q6J("ngIf","Close"!=e.State),t.xp6(2),t.Oqu("Close"!=e.State?e.LoginID:"-"),t.xp6(2),t.Oqu("Close"!=e.State?t.xi3(9,7,e.Start,"HH:mm")+" - Now":"-"),t.xp6(2),t.Q6J("ngIf","Close"!=e.State),t.xp6(1),t.Q6J("ngIf","Close"==e.State)}}function _e(n,i){if(1&n&&(t.TgZ(0,"div"),t.TgZ(1,"div",12),t.TgZ(2,"table",13),t.TgZ(3,"thead",14),t.TgZ(4,"tr"),t.TgZ(5,"th"),t._uU(6,"Outlet"),t.qZA(),t.TgZ(7,"th"),t._uU(8,"Status"),t.qZA(),t.TgZ(9,"th"),t._uU(10,"Cashier"),t.qZA(),t.TgZ(11,"th"),t._uU(12,"Time"),t.qZA(),t.TgZ(13,"th",15),t._uU(14,"Action"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"tbody"),t.YNc(16,re,12,10,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(16),t.Q6J("ngForOf",e.data.AccessibleRegisters)}}const de=function(n){return{"bg-light-gray":n}};function se(n,i){if(1&n&&(t.TgZ(0,"mainpanel-cmp",1),t.TgZ(1,"content"),t.TgZ(2,"div",2),t.TgZ(3,"h3",3),t.YNc(4,Xt,3,1,"a",4),t.qZA(),t.YNc(5,te,5,0,"h4",5),t.YNc(6,ee,2,1,"div",6),t.YNc(7,_e,17,1,"div",7),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngClass",t.VKq(8,de,!e.data.AccessibleRegisters||e.data.Session)),t.xp6(2),t.Q6J("ngIf",e.totalOfflineOrders>0),t.xp6(1),t.Q6J("ngIf",!e.data.ClosureEnabled),t.xp6(1),t.Q6J("ngIf",null!=e.data.Warning||null!=e.data.Warning),t.xp6(1),t.Q6J("ngIf",e.data.ClosureEnabled)}}let le=(()=>{class n extends q.n{constructor(e,o,a){super(e,"Shift/ShiftList",null,a),this.httpService=e,this.localData=o,this._toastr=a,this.totalOfflineOrders=0,this.localData.getOfflineOrders().then(r=>{this.totalOfflineOrders=r.length})}CloseShift(e){confirm("Are you sure you want to End Shift?")&&this.httpService.post("/API/Shift/Closure",{RegisterID:e.ID,CashierID:e.CashierID}).pipe((0,Gt.U)(a=>({RegisterID:a.Register.ID,Note:"",Expenses:a.Expenses,Payments:a.Payments,Denominations:a.Denominations,Session:a.Session,Visitors:0})),(0,zt.b)(a=>this.EndShift(a))).subscribe(a=>{this._toastr.success(a.Message,g.n.Success),localStorage.removeItem(a.Model.RegisterID),this.getListData()},a=>this._toastr.error(a,g.n.Error))}EndShift(e){return this.httpService.post("/API/Shift/EndShift",e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.O),t.Y36(F.T),t.Y36(v._W))},n.\u0275cmp=t.Xpm({type:n,selectors:[["POS-active-shift"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],["id","ActiveShift",1,"container-fluid","mt-3",3,"ngClass"],[1,"font-weight-bold"],["href","/A/Sell/Offline_Cache/Orders","target","_blank",4,"ngIf"],["class","font-weight-bold pb-10",4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngIf"],["href","/A/Sell/Offline_Cache/Orders","target","_blank"],[1,"font-weight-bold","pb-10"],["href","/A/Setup/Configuration/Module_Configuration","target","_blank"],["role","alert",1,"alert","alert-warning"],[1,"clearfix"],[1,"table"],[1,"thead-light"],[1,"text-center",2,"width","110px"],[4,"ngFor","ngForOf"],["class","text-success",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-success"],[1,"text-center"],[1,"btn","btn-outline-danger",3,"hidden","click"]],template:function(e,o){1&e&&t.YNc(0,se,8,10,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data&&o.pageData)},directives:[s.O5,I.p,s.mk,s.sg],pipes:[s.uU],encapsulation:2}),n})();var R=d(4765),D=d(4290),E=d(8525);function ce(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",20),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).httpPostListID("Shift/DeleteClosureHistory")}),t._UZ(1,"i",21),t._uU(2,"Delete "),t.qZA()}}const pe=function(){return["Register_Shift_Form"]};function ge(n,i){1&n&&(t.TgZ(0,"a",22),t._uU(1,"Add"),t.qZA()),2&n&&t.Q6J("routerLink",t.DdM(1,pe))}function me(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",17),t.TgZ(1,"input",23),t.NdJ("change",function(a){return t.CHM(e),t.oxw(2).onSelectAllData(a.target.checked)}),t.qZA(),t.qZA()}}function Ze(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"input",29),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().$implicit.selected=a}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.selected)}}const k=function(n){return{ID:n}},Y=function(n){return["Register_Shift_Detail",n]};function ue(n,i){if(1&n&&(t.TgZ(0,"td"),t.TgZ(1,"a",26),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("routerLink",t.VKq(4,Y,t.VKq(2,k,e.ID))),t.xp6(1),t.hij(" ",e.LoginID," ")}}function he(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.LoginID," ")}}function fe(n,i){if(1&n&&(t.TgZ(0,"tr",24),t.YNc(1,Ze,2,1,"td",14),t.YNc(2,ue,3,6,"td",25),t.YNc(3,he,2,1,"td",25),t.TgZ(4,"td"),t.TgZ(5,"a",26),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"td"),t._uU(11),t.ALo(12,"date"),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"number"),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"number"),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA(),t.TgZ(23,"td"),t._uU(24),t.qZA(),t.TgZ(25,"td"),t.TgZ(26,"a",27),t._UZ(27,"i",28),t.qZA(),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.pageData.Roles.HasShiftDelete),t.xp6(1),t.Q6J("ngIf",null==e.Number),t.xp6(1),t.Q6J("ngIf",null!=e.Number),t.xp6(2),t.Q6J("routerLink",t.VKq(25,Y,t.VKq(23,k,e.ID))),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Oqu(t.xi3(9,13,e.Start,"dd MMM yyyy HH:mm")),t.xp6(3),t.Oqu(t.xi3(12,16,e.End,"dd MMM yyyy HH:mm")),t.xp6(3),t.Oqu(t.lcZ(15,19,e.Sales+e.Tax)),t.xp6(3),t.Oqu(t.lcZ(18,21,e.Invoice_Count)),t.xp6(3),t.Oqu(e.EntityName),t.xp6(2),t.Oqu(e.Register),t.xp6(2),t.Oqu(e.Visitors),t.xp6(2),t.MGl("href","/A/Print/RegisterClosure?id=",e.ID,"",t.LSH)}}function xe(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",30),t.TgZ(1,"mat-paginator",31),t.NdJ("page",function(a){return t.CHM(e),t.oxw(2).onPaginationChange(a)}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("length",e.pagination.ListTotal)("pageSize",e.pagination.PageSize)("pageIndex",0==e.pageData.Filter.PageNumber?0:e.pageData.Filter.PageNumber-1)}}function Te(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){return t.CHM(e),t.oxw().getListData()}),t.TgZ(1,"actions"),t.TgZ(2,"a",2),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.exportCSV(a.csvConverter,"ShiftExport/EndOFShiftList","Register_Closure.csv")}),t._UZ(3,"i",3),t._uU(4," Export "),t.qZA(),t.YNc(5,ce,3,0,"a",4),t.YNc(6,ge,2,2,"a",5),t.qZA(),t.TgZ(7,"filters"),t.TgZ(8,"div",6),t.TgZ(9,"div",7),t.TgZ(10,"div"),t.TgZ(11,"h6"),t._uU(12,"Outlet"),t.qZA(),t.TgZ(13,"ng-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().pageData.Filter.EntityID=a}),t.qZA(),t.qZA(),t.TgZ(14,"div"),t.TgZ(15,"h6"),t._uU(16,"From/To"),t.qZA(),t.TgZ(17,"datepicker",9),t.NdJ("dateChange",function(a){return t.CHM(e),t.oxw().pageData.Filter.From=a}),t.qZA(),t.TgZ(18,"datepicker",10),t.NdJ("dateChange",function(a){return t.CHM(e),t.oxw().pageData.Filter.To=a}),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"content"),t.TgZ(20,"div",11),t.TgZ(21,"table",12),t.TgZ(22,"thead",13),t.TgZ(23,"tr"),t.YNc(24,me,2,0,"th",14),t.TgZ(25,"th",15),t._uU(26,"Cashier"),t.qZA(),t.TgZ(27,"th"),t._uU(28,"Number"),t.qZA(),t.TgZ(29,"th",16),t._uU(30,"Open"),t.qZA(),t.TgZ(31,"th",16),t._uU(32,"Close"),t.qZA(),t.TgZ(33,"th"),t._uU(34,"Sales + Tax"),t.qZA(),t.TgZ(35,"th"),t._uU(36,"Invoices"),t.qZA(),t.TgZ(37,"th"),t._uU(38,"Outlet"),t.qZA(),t.TgZ(39,"th"),t._uU(40,"Register"),t.qZA(),t.TgZ(41,"th"),t._uU(42,"Visitors"),t.qZA(),t._UZ(43,"th",17),t.qZA(),t.qZA(),t.TgZ(44,"tbody"),t.YNc(45,fe,28,27,"tr",18),t.qZA(),t.qZA(),t.YNc(46,xe,2,3,"div",19),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(5),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.pageData.Roles.HasShiftCreate),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.EntityID),t.xp6(4),t.Q6J("date",e.pageData.Filter.From),t.xp6(1),t.Q6J("date",e.pageData.Filter.To),t.xp6(6),t.Q6J("ngIf",e.pageData.Roles.HasShiftDelete),t.xp6(21),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("ngIf",e.pagination.Show)}}let Ae=(()=>{class n extends q.n{constructor(e,o,a){super(e,"Shift/ClosureHistoryList","ShiftLoader/EndOFShift",a),this.httpService=e,this.csvConverter=o}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.O),t.Y36(R.O),t.Y36(v._W))},n.\u0275cmp=t.Xpm({type:n,selectors:[["POS-previous-shift"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["role","button",1,"btn","btn-outline-secondary","mr-3",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["value","Delete","title","Delete","class","btn btn-outline-secondary mr-3",3,"click",4,"ngIf"],["class","btn btn-success","role","button","title","Add Product",3,"routerLink",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose...",3,"items","ngModel","ngModelChange"],["name","From",2,"width","50%",3,"date","dateChange"],["name","To",2,"width","50%",3,"date","dateChange"],[1,"container-fluid","mt-3"],[1,"table"],[1,"thead-light"],["style","width: 14px",4,"ngIf"],[2,"width","120px"],[2,"width","140px"],[2,"width","14px"],["class","border-bottom",4,"ngFor","ngForOf"],["class","mt-2",4,"ngIf"],["value","Delete","title","Delete",1,"btn","btn-outline-secondary","mr-3",3,"click"],[1,"fas","fa-trash","mr-3"],["role","button","title","Add Product",1,"btn","btn-success",3,"routerLink"],["type","checkbox",3,"change"],[1,"border-bottom"],[4,"ngIf"],[3,"routerLink"],["target","_blank",3,"href"],[1,"fas","fa-print"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"mt-2"],[3,"length","pageSize","pageIndex","page"]],template:function(e,o){1&e&&t.YNc(0,Te,47,11,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data&&o.pageData)},directives:[s.O5,I.p,C.w9,l.JJ,l.On,D.QB,s.sg,u.yS,l.Wl,E.NW],pipes:[s.uU,s.JJ],encapsulation:2}),n})();const ve=function(n){return{"p-left":n}};function qe(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.qZA(),t.TgZ(3,"td",7),t._uU(4),t.ALo(5,"number"),t.qZA(),t.TgZ(6,"td",7),t._uU(7),t.ALo(8,"number"),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngClass",t.VKq(8,ve,!e.IsDebit)),t.xp6(1),t.Oqu(e.AccountName),t.xp6(2),t.Oqu(e.IsDebit?t.lcZ(5,4,e.Amount):""),t.xp6(3),t.Oqu(e.IsDebit?"":t.lcZ(8,6,e.Amount))}}let be=(()=>{class n{constructor(e,o){this.dialogRef=e,this.data=o,this.Model=o,this.PostDate=new Date(this.Model.PostDate)}ngOnInit(){}onOk(){this.dialogRef.close({PostDate:this.PostDate})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.so),t.Y36(m.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["modal-journal"]],decls:22,vars:3,consts:[[3,"title","onOk","onClose","onCancel"],[1,"sep"],["name","From",3,"date","dateChange"],[1,"table","table-bordered",2,"margin-top","10px"],[1,"text-right",2,"width","150px"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-right"]],template:function(e,o){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return o.onOk()})("onClose",function(){return o.dialogRef.close()})("onCancel",function(){return o.dialogRef.close()}),t.TgZ(1,"content"),t.TgZ(2,"div"),t.TgZ(3,"table"),t.TgZ(4,"tr"),t.TgZ(5,"th"),t._uU(6,"Post Date"),t.qZA(),t.TgZ(7,"td",1),t._uU(8,":"),t.qZA(),t.TgZ(9,"td"),t.TgZ(10,"datepicker",2),t.NdJ("dateChange",function(r){return o.PostDate=r}),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"table",3),t.TgZ(12,"thead"),t.TgZ(13,"tr"),t.TgZ(14,"th"),t._uU(15,"Account"),t.qZA(),t.TgZ(16,"th",4),t._uU(17,"Debit"),t.qZA(),t.TgZ(18,"th",4),t._uU(19,"Credit"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(20,"tbody"),t.YNc(21,qe,9,10,"tr",5),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("title","Expense Detail"),t.xp6(10),t.Q6J("date",o.PostDate),t.xp6(11),t.Q6J("ngForOf",o.Model.JournalEntryList))},directives:[x.M,D.QB,s.sg,s.mk],pipes:[s.JJ],styles:["td[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] mat-form-field {\n padding-right: 0 !important;\n background: white;\n}\ntd[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] .mat-form-field-flex {\n width: 117px;\n height: 36px;\n border: 1px solid #dddddd;\n}\ntd[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] .mat-form-field-infix {\n border: none !important;\n top: 5px;\n}\ntd[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] .mat-form-field-infix input {\n font-size: 14px;\n color: black;\n padding-left: 5px;\n}\ntd[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] .mat-form-field-suffix {\n left: -128px;\n top: 2px;\n}\ntd[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] .mat-form-field-suffix .mat-button-wrapper {\n color: black;\n}\ntd[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] .mat-form-field-suffix > mat-datepicker-toggle > button {\n display: none;\n}\ntd[_ngcontent-%COMP%] datepicker[_ngcontent-%COMP%] .mat-form-field-underline {\n display: none;\n}\ntd[_ngcontent-%COMP%] datepicker.date-warnings[_ngcontent-%COMP%] .mat-form-field-flex {\n background: repeating-linear-gradient(-60deg, #FCF3CF, #FCF3CF 15px, #F9E79F 15px, #F9E79F 30px) !important;\n}"]}),n})();var H=d(1768);function Ce(n,i){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.data.Warning," ")}}function Se(n,i){if(1&n&&(t.TgZ(0,"div",12),t.TgZ(1,"div",18),t.TgZ(2,"div",13),t.TgZ(3,"h2",8),t._UZ(4,"i",19),t._uU(5,"Invoice / Void"),t.qZA(),t.qZA(),t.TgZ(6,"div",15),t.TgZ(7,"div",16),t._uU(8),t.ALo(9,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(8),t.AsE("",t.lcZ(9,2,e.data.Session.Invoice_Count)," / ",e.data.VoidInvoice.length,"")}}function Ie(n,i){if(1&n&&(t.TgZ(0,"div",12),t.TgZ(1,"div",6),t.TgZ(2,"div",20),t.TgZ(3,"h2",8),t._UZ(4,"i",21),t._uU(5,"Sales + Tax + Surcharge"),t.qZA(),t.qZA(),t.TgZ(6,"div",15),t.TgZ(7,"div",16),t._uU(8),t.ALo(9,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(8),t.Oqu(t.lcZ(9,1,e.data.Session.Sales+e.data.Session.Tax))}}const ye=function(n){return{"pb-9":n}};function Me(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t.TgZ(1,"div",5),t.TgZ(2,"div",6),t.TgZ(3,"div",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.register=!a.register}),t.TgZ(4,"h2",8),t._UZ(5,"i",9),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",10),t.TgZ(8,"div",11),t._uU(9),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"div",12),t.TgZ(11,"div",6),t.TgZ(12,"div",13),t.TgZ(13,"h2",8),t._UZ(14,"i",14),t._uU(15,"Opening"),t.qZA(),t.qZA(),t.TgZ(16,"div",15),t.TgZ(17,"div",16),t._uU(18),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"div",12),t.TgZ(20,"div",6),t.TgZ(21,"div",13),t.TgZ(22,"h2",8),t._UZ(23,"i",14),t._uU(24,"Closing"),t.qZA(),t.qZA(),t.TgZ(25,"div",15),t.TgZ(26,"div",16),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(28,Se,10,4,"div",17),t.YNc(29,Ie,10,3,"div",17),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(3),t.Q6J("ngClass",t.VKq(8,ye,e.register)),t.xp6(3),t.hij(" Cashier / ",e.data.Register.Name,""),t.xp6(3),t.AsE(" ",e.data.Cashier," / ",e.data.EntityName," "),t.xp6(9),t.Oqu(e.data.RegisterStartWithTimezone),t.xp6(9),t.Oqu(e.data.RegisterEndWithTimezone),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible)}}function Ue(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1,"Expected"),t.qZA())}function De(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1,"Differences"),t.qZA())}function Je(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td",34),t._uU(4),t.ALo(5,"number"),t.qZA(),t.TgZ(6,"td",34),t._uU(7),t.ALo(8,"number"),t.qZA(),t.TgZ(9,"td",34),t._uU(10),t.ALo(11,"number"),t.qZA(),t.TgZ(12,"td",34),t._uU(13),t.ALo(14,"number"),t.qZA(),t.TgZ(15,"td",34),t._uU(16),t.ALo(17,"number"),t.qZA(),t.TgZ(18,"td",34),t._uU(19),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.lcZ(5,7,e.Start)),t.xp6(3),t.Oqu(t.lcZ(8,9,e.Received)),t.xp6(3),t.Oqu(t.lcZ(11,11,e.Expected)),t.xp6(3),t.Oqu(t.lcZ(14,13,e.Amount)),t.xp6(3),t.Oqu(t.lcZ(17,15,e.ShortOver)),t.xp6(3),t.Oqu(e.Note)}}const Ne=function(n,i){return{"text-success":n,"text-danger":i}};function Oe(n,i){if(1&n&&(t.TgZ(0,"tfoot"),t.TgZ(1,"tr"),t.TgZ(2,"th",34),t._uU(3,"Total:"),t.qZA(),t.TgZ(4,"td",35),t._uU(5),t.ALo(6,"number"),t.ALo(7,"sum"),t.qZA(),t.TgZ(8,"td",35),t._uU(9),t.ALo(10,"number"),t.ALo(11,"sum"),t.qZA(),t.TgZ(12,"td",35),t._uU(13),t.ALo(14,"number"),t.ALo(15,"sum"),t.qZA(),t.TgZ(16,"td",35),t._uU(17),t.ALo(18,"number"),t.ALo(19,"sum"),t.qZA(),t.TgZ(20,"td",36),t.ALo(21,"sum"),t.ALo(22,"sum"),t._uU(23),t.ALo(24,"number"),t.ALo(25,"sum"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(5),t.hij(" ",t.lcZ(6,6,t.xi3(7,8,e.data.Payment,"Start"))," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,t.xi3(11,13,e.data.Payment,"Received"))," "),t.xp6(4),t.hij(" ",t.lcZ(14,16,t.xi3(15,18,e.data.Payment,"Expected"))," "),t.xp6(4),t.hij(" ",t.lcZ(18,21,t.xi3(19,23,e.data.Payment,"Amount"))," "),t.xp6(3),t.Q6J("ngClass",t.WLB(37,Ne,t.xi3(21,26,e.data.Payment,"ShortOver")>0,t.xi3(22,29,e.data.Payment,"ShortOver")<0)),t.xp6(3),t.hij(" ",t.lcZ(24,32,t.xi3(25,34,e.data.Payment,"ShortOver"))," ")}}function Fe(n,i){if(1&n&&(t.TgZ(0,"table",25),t.TgZ(1,"thead",26),t.TgZ(2,"tr"),t.TgZ(3,"th",27),t._uU(4,"Payment"),t.qZA(),t.TgZ(5,"th",28),t._uU(6,"Start"),t.qZA(),t.TgZ(7,"th",28),t._uU(8,"Received"),t.qZA(),t.YNc(9,Ue,2,0,"th",29),t.TgZ(10,"th",28),t._uU(11,"Counted"),t.qZA(),t.YNc(12,De,2,0,"th",30),t.TgZ(13,"th",31),t._uU(14,"Note"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"tbody"),t.YNc(16,Je,20,17,"tr",32),t.qZA(),t.YNc(17,Oe,26,40,"tfoot",0),t.qZA()),2&n){const e=t.oxw(3);t.xp6(9),t.Q6J("ngIf",e.data.ExpectedPaymentVisible),t.xp6(3),t.Q6J("ngIf",e.data.ExpectedPaymentVisible),t.xp6(4),t.Q6J("ngForOf",e.data.Payment),t.xp6(1),t.Q6J("ngIf",e.data.ExpectedPaymentVisible)}}function we(n,i){if(1&n&&(t.TgZ(0,"div",4),t.TgZ(1,"div",22),t.TgZ(2,"div",13),t.TgZ(3,"h2"),t._uU(4,"Payments"),t.qZA(),t.qZA(),t.TgZ(5,"div",15),t.TgZ(6,"div",23),t.YNc(7,Fe,18,4,"table",24),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(7),t.Q6J("ngIf",e.data.Payment.length>0)}}const J=function(n){return{active:n}};function Le(n,i){if(1&n&&(t.TgZ(0,"li",66),t.TgZ(1,"a",67),t._uU(2,"Invoice"),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Tol(t.VKq(2,J,e.data.InvoiceVisible))}}function Qe(n,i){if(1&n&&(t.TgZ(0,"li",66),t.TgZ(1,"a",68),t._uU(2,"Voided Invoice"),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Tol(t.VKq(2,J,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible))}}function Pe(n,i){if(1&n&&(t.TgZ(0,"li",66),t.TgZ(1,"a",69),t._uU(2,"Payment"),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Tol(t.VKq(2,J,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible))}}function Re(n,i){1&n&&(t.TgZ(0,"li",66),t.TgZ(1,"a",70),t._uU(2,"Expense"),t.qZA(),t.qZA())}function Ee(n,i){if(1&n&&(t.TgZ(0,"li",66),t.TgZ(1,"a",71),t._uU(2,"Bank Note"),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Tol(t.VKq(2,J,!e.data.InvoiceVisible&&!e.data.PaymentReceiveVisible))}}function ke(n,i){1&n&&(t.TgZ(0,"li",66),t.TgZ(1,"a",72),t._uU(2,"Sales Return"),t.qZA(),t.qZA())}function Ye(n,i){1&n&&(t.TgZ(0,"th",82),t._uU(1,"Date"),t.qZA())}function He(n,i){1&n&&(t.TgZ(0,"th",82),t._uU(1,"Date"),t.qZA())}function Ve(n,i){if(1&n&&(t._UZ(0,"td",81),t.ALo(1,"date")),2&n){const e=t.oxw().$implicit;t.Q6J("innerHTML",t.xi3(1,1,e.Created,"dd MMM yyyy"),t.oJD)}}function je(n,i){if(1&n&&(t._UZ(0,"td",81),t.ALo(1,"date")),2&n){const e=t.oxw().$implicit;t.Q6J("innerHTML",t.xi3(1,1,e.Date,"dd MMM yyyy"),t.oJD)}}const $e=function(n,i,e){return{"text-success":n,"text-warning":i,"text-danger":e}};function Be(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",63),t.TgZ(2,"td"),t._UZ(3,"a",83),t.qZA(),t.YNc(4,Ve,2,4,"td",84),t.YNc(5,je,2,4,"td",84),t._UZ(6,"td",81),t.ALo(7,"date"),t._UZ(8,"td",63),t.ALo(9,"number"),t._UZ(10,"td",63),t.ALo(11,"number"),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(4);t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.ID,"",t.LSH),t.Q6J("innerHTML",e.Number,t.oJD),t.xp6(1),t.Q6J("ngIf",0==a.data.Session.Type),t.xp6(1),t.Q6J("ngIf",0!=a.data.Session.Type),t.xp6(1),t.Q6J("innerHTML",t.xi3(7,10,e.Created,"HH:mm"),t.oJD),t.xp6(2),t.Q6J("innerHTML",t.lcZ(9,13,e.Quantity),t.oJD),t.xp6(2),t.Tol(t.kEZ(17,$e,3==e.PaymentStateID,2==e.PaymentStateID,1==e.PaymentStateID)),t.Q6J("innerHTML",t.lcZ(11,15,e.SalesNTax),t.oJD)}}function We(n,i){if(1&n&&(t.TgZ(0,"div",12),t.TgZ(1,"div",73),t.TgZ(2,"div",15),t.TgZ(3,"table",59),t.TgZ(4,"thead",52),t.TgZ(5,"tr"),t.TgZ(6,"th",74),t._uU(7,"No"),t.qZA(),t.TgZ(8,"th",75),t._uU(9,"Number"),t.qZA(),t.YNc(10,Ye,2,0,"th",76),t.YNc(11,He,2,0,"th",76),t.TgZ(12,"th",77),t._uU(13,"Time"),t.qZA(),t.TgZ(14,"th",78),t._uU(15,"Qty"),t.qZA(),t.TgZ(16,"th",79),t._uU(17,"Nett"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"tbody"),t.YNc(19,Be,12,21,"tr",32),t.ALo(20,"sortBy"),t.qZA(),t.TgZ(21,"tfoot"),t.TgZ(22,"tr"),t._UZ(23,"td",80),t.TgZ(24,"td",34),t._UZ(25,"b",81),t.ALo(26,"number"),t.ALo(27,"sum"),t.qZA(),t.TgZ(28,"td",34),t._UZ(29,"b",81),t.ALo(30,"number"),t.ALo(31,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(10),t.Q6J("ngIf",0==e.data.Session.Type),t.xp6(1),t.Q6J("ngIf",0!=e.data.Session.Type),t.xp6(8),t.Q6J("ngForOf",t.Dn7(20,5,e.data.Invoices,"asc","Number")),t.xp6(6),t.Q6J("innerHTML",t.lcZ(26,9,t.xi3(27,11,e.data.Invoices,"Quantity")),t.oJD),t.xp6(4),t.Q6J("innerHTML",t.lcZ(30,14,t.xi3(31,16,e.data.Invoices,"SalesNTax")),t.oJD)}}function Ke(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",81),t.TgZ(2,"td"),t.TgZ(3,"a",87),t._uU(4),t.qZA(),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"td"),t._uU(11),t.ALo(12,"IsMinDate"),t.qZA(),t.TgZ(13,"td",34),t._uU(14),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.ID,"",t.LSH),t.xp6(1),t.hij(" ",e.Number," "),t.xp6(2),t.Oqu(e.CustomerName),t.xp6(2),t.Oqu(t.xi3(9,7,e.Date,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(12,10,e.Due,"dd MMM yyyy")),t.xp6(3),t.Oqu(e.Payment)}}function Ge(n,i){if(1&n&&(t.TgZ(0,"div",85),t.TgZ(1,"div",86),t.TgZ(2,"div",15),t.TgZ(3,"table",59),t.TgZ(4,"thead",52),t.TgZ(5,"tr"),t.TgZ(6,"th",60),t._uU(7,"No"),t.qZA(),t.TgZ(8,"th",53),t._uU(9,"Number"),t.qZA(),t.TgZ(10,"th",53),t._uU(11,"Customer"),t.qZA(),t.TgZ(12,"th",53),t._uU(13,"Date"),t.qZA(),t.TgZ(14,"th",53),t._uU(15,"Due"),t.qZA(),t.TgZ(16,"th",53),t._uU(17,"Payment"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"tbody"),t.YNc(19,Ke,15,13,"tr",32),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.Q6J("hidden",!(e.data.VoidInvoice.length>0)),t.xp6(19),t.Q6J("ngForOf",e.data.VoidInvoice)}}function ze(n,i){1&n&&t._UZ(0,"th",93),2&n&&t.Q6J("innerHTML",i.$implicit.Name,t.oJD)}function Xe(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.index,o=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,o.Amounts[e])," ")}}function tn(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",63),t.TgZ(2,"td"),t.TgZ(3,"a",94),t._uU(4),t.qZA(),t.qZA(),t._UZ(5,"td",81),t.YNc(6,Xe,3,3,"td",92),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(4);t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.Q6J("href",1==e.TypeID?"/A/Orders/Orders/Customer_Invoice/Info?ID="+e.InvoiceID:"/A/Debt/Advance/AR_Collection/Info?ID="+e.InvoiceID,t.LSH),t.xp6(1),t.Oqu(e.Number),t.xp6(1),t.Q6J("innerHTML",e.CustomerName,t.oJD),t.xp6(1),t.Q6J("ngForOf",a.data.paymentMethods)}}function en(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.ALo(2,"number"),t.ALo(3,"sumArray"),t.qZA()),2&n){const e=i.index,o=t.oxw(4);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.Dn7(3,3,o.data.PaymentRecived,"Amounts",e))," ")}}const L=function(n,i){return{show:n,active:i}};function nn(n,i){if(1&n&&(t.TgZ(0,"div",88),t.TgZ(1,"div",44),t.TgZ(2,"div",37),t.TgZ(3,"div",73),t.TgZ(4,"div",15),t.TgZ(5,"div",89),t.TgZ(6,"table",59),t.TgZ(7,"thead",52),t.TgZ(8,"tr"),t.TgZ(9,"th",74),t._uU(10,"No"),t.qZA(),t.TgZ(11,"th",53),t._uU(12,"Number"),t.qZA(),t.TgZ(13,"th",53),t._uU(14,"Customer"),t.qZA(),t.YNc(15,ze,1,1,"th",90),t.qZA(),t.qZA(),t.TgZ(16,"tbody"),t.YNc(17,tn,7,5,"tr",32),t.ALo(18,"sortBy"),t.qZA(),t.TgZ(19,"tfoot"),t.TgZ(20,"tr"),t.TgZ(21,"td",91),t.TgZ(22,"b"),t._uU(23,"Total :"),t.qZA(),t.qZA(),t.YNc(24,en,4,7,"td",92),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.Tol(t.WLB(9,L,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible,!e.data.InvoiceVisible&&e.data.PaymentReceiveVisible)),t.xp6(15),t.Q6J("ngForOf",e.data.paymentMethods),t.xp6(2),t.Q6J("ngForOf",t.Dn7(18,5,e.data.PaymentRecived,"asc","Number")),t.xp6(7),t.Q6J("ngForOf",e.data.paymentMethods)}}function on(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",102),t.NdJ("click",function(){return t.CHM(e),t.oxw(5).showExpenseModal()}),t._UZ(1,"i",103),t.qZA()}}function an(n,i){if(1&n&&(t.TgZ(0,"th",100),t.YNc(1,on,2,0,"button",101),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.Session&&e.data.InputMode)}}function rn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td"),t.TgZ(1,"i",104),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().index;return t.oxw(4).DeleteExpenses(a)}),t.qZA(),t.qZA()}}function _n(n,i){if(1&n&&(t.TgZ(0,"tr"),t.YNc(1,rn,2,0,"td",0),t.TgZ(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td",34),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngIf",o.data.InputMode),t.xp6(2),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.lcZ(6,4,e.Amount)),t.xp6(3),t.Oqu(e.Note)}}function dn(n,i){if(1&n&&(t.TgZ(0,"div",95),t.TgZ(1,"div",44),t.TgZ(2,"div",37),t.TgZ(3,"div",86),t.TgZ(4,"div",96),t.TgZ(5,"table",97),t.TgZ(6,"thead",52),t.TgZ(7,"tr"),t.YNc(8,an,2,1,"th",98),t.TgZ(9,"th",27),t._uU(10,"Label"),t.qZA(),t.TgZ(11,"th",99),t._uU(12,"Amount"),t.qZA(),t.TgZ(13,"th",53),t._uU(14,"Note"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"tbody"),t.YNc(16,_n,9,6,"tr",32),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(8),t.Q6J("ngIf",e.data.InputMode),t.xp6(8),t.Q6J("ngForOf",e.data.Expenses)}}function sn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td"),t.TgZ(1,"input",108),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().$implicit.Quantity=a})("keyup",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw(3).DenominationTotal(a)}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.Quantity)}}function ln(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",105),t._uU(2),t.qZA(),t.TgZ(3,"td",106),t._uU(4),t.ALo(5,"number"),t.qZA(),t.YNc(6,sn,2,1,"td",0),t.TgZ(7,"td",107),t._uU(8),t.ALo(9,"number"),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(2),t.Oqu(e.PriceDisplay),t.xp6(1),t.Q6J("hidden",o.data.Session&&o.data.InputMode),t.xp6(1),t.hij(" ",t.lcZ(5,5,e.Quantity)," "),t.xp6(2),t.Q6J("ngIf",o.data.Session&&o.data.InputMode),t.xp6(2),t.Oqu(t.lcZ(9,7,e.Total))}}function cn(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",81),t.TgZ(2,"td"),t.TgZ(3,"a",94),t._UZ(4,"b",81),t.qZA(),t.qZA(),t._UZ(5,"td",81),t._UZ(6,"td",63),t.ALo(7,"number"),t._UZ(8,"td",63),t.ALo(9,"number"),t._UZ(10,"td",81),t.ALo(11,"date"),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.InvoiceID,"",t.LSH),t.xp6(1),t.Q6J("innerHTML",e.Number,t.oJD),t.xp6(1),t.Q6J("innerHTML",e.CustomerName,t.oJD),t.xp6(1),t.Q6J("innerHTML",t.lcZ(7,7,e.Quantity),t.oJD),t.xp6(2),t.Q6J("innerHTML",t.lcZ(9,9,e.UnitPrice),t.oJD),t.xp6(2),t.Q6J("innerHTML",t.xi3(11,11,e.Created,"dd MMM yyyy"),t.oJD)}}function pn(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",81),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"td"),t.TgZ(6,"a",87),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"td",34),t._uU(9),t.ALo(10,"number"),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.Oqu(t.xi3(4,5,e.Created,"dd MMM yyyy")),t.xp6(3),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.InvoiceID,"",t.LSH),t.xp6(1),t.hij(" ",e.InvoiceNumber," "),t.xp6(2),t.Oqu(t.lcZ(10,8,-1*e.Points))}}function gn(n,i){if(1&n&&(t.TgZ(0,"div",4),t.TgZ(1,"div",37),t.TgZ(2,"ul",38),t.YNc(3,Le,3,4,"li",39),t.YNc(4,Qe,3,4,"li",39),t.YNc(5,Pe,3,4,"li",39),t.YNc(6,Re,3,0,"li",39),t.YNc(7,Ee,3,4,"li",39),t.YNc(8,ke,3,0,"li",39),t.TgZ(9,"li",40),t.TgZ(10,"a",41),t._uU(11,"Loyalty Point"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(12,"div",42),t.TgZ(13,"div",43),t.TgZ(14,"div",44),t.YNc(15,We,32,19,"div",17),t.qZA(),t.qZA(),t.TgZ(16,"div",45),t.TgZ(17,"div",44),t.YNc(18,Ge,20,2,"div",46),t.qZA(),t.qZA(),t.YNc(19,nn,25,12,"div",47),t.YNc(20,dn,17,2,"div",48),t.TgZ(21,"div",49),t.TgZ(22,"div",44),t.TgZ(23,"div",37),t.TgZ(24,"div",50),t.TgZ(25,"div",15),t.TgZ(26,"table",51),t.TgZ(27,"thead",52),t.TgZ(28,"tr"),t.TgZ(29,"th",53),t._uU(30,"Cash Denomination"),t.qZA(),t.TgZ(31,"th",54),t._uU(32,"Qty"),t.qZA(),t.TgZ(33,"th",55),t._uU(34,"Total"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(35,"tbody"),t.YNc(36,ln,10,9,"tr",32),t.qZA(),t.TgZ(37,"tfoot"),t.TgZ(38,"tr"),t.TgZ(39,"th",56),t._uU(40,"Total:"),t.qZA(),t.TgZ(41,"td",57),t._uU(42),t.ALo(43,"number"),t.ALo(44,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(45,"div",58),t.TgZ(46,"div",44),t.TgZ(47,"div",37),t.TgZ(48,"div",50),t.TgZ(49,"div",15),t.TgZ(50,"table",59),t.TgZ(51,"thead",52),t.TgZ(52,"tr"),t.TgZ(53,"th",60),t._uU(54,"No"),t.qZA(),t.TgZ(55,"th",53),t._uU(56,"Number"),t.qZA(),t.TgZ(57,"th",53),t._uU(58,"Customer"),t.qZA(),t.TgZ(59,"th",34),t._uU(60,"Quantity"),t.qZA(),t.TgZ(61,"th",61),t._uU(62,"Price"),t.qZA(),t.TgZ(63,"th"),t._uU(64,"Date"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(65,"tbody"),t.YNc(66,cn,12,14,"tr",32),t.qZA(),t.TgZ(67,"tfoot"),t.TgZ(68,"tr"),t.TgZ(69,"td",62),t._uU(70,"Total"),t.qZA(),t._UZ(71,"td",63),t.ALo(72,"number"),t.ALo(73,"sum"),t._UZ(74,"td",63),t.ALo(75,"number"),t.ALo(76,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(77,"div",64),t.TgZ(78,"div",44),t.TgZ(79,"div",37),t.TgZ(80,"div",50),t.TgZ(81,"div",15),t.TgZ(82,"table",59),t.TgZ(83,"thead",52),t.TgZ(84,"tr"),t.TgZ(85,"th",60),t._uU(86,"No"),t.qZA(),t.TgZ(87,"th",53),t._uU(88,"Date"),t.qZA(),t.TgZ(89,"th",53),t._uU(90,"Number"),t.qZA(),t.TgZ(91,"th",65),t._uU(92,"Point"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(93,"tbody"),t.YNc(94,pn,11,10,"tr",32),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Q6J("ngIf",null!=e.data.Session&&e.data.InvoiceVisible),t.xp6(1),t.Q6J("ngIf",e.data.VoidInvoice.length>0),t.xp6(1),t.Q6J("ngIf",null!=e.data.Session&&e.data.PaymentReceiveVisible),t.xp6(1),t.Q6J("ngIf",e.data.Expenses.length>0),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.SalesReturn.length>0),t.xp6(1),t.Q6J("hidden",!(e.data.LoyaltyPointhistory.length>0)),t.xp6(4),t.Tol(t.WLB(36,L,e.data.InvoiceVisible,e.data.InvoiceVisible)),t.xp6(2),t.Q6J("ngIf",null!=e.data.Session),t.xp6(3),t.Q6J("ngIf",e.data.InvoiceVisible),t.xp6(1),t.Q6J("ngIf",e.data.PaymentReceiveVisible),t.xp6(1),t.Q6J("ngIf",e.data.Expenses.length>0),t.xp6(1),t.Tol(t.WLB(39,L,!e.data.InvoiceVisible&&!e.data.PaymentReceiveVisible,!e.data.InvoiceVisible&&!e.data.PaymentReceiveVisible)),t.xp6(15),t.Q6J("ngForOf",e.data.Denominations),t.xp6(6),t.hij(" ",t.lcZ(43,21,t.xi3(44,23,e.data.Denominations,"Total"))," "),t.xp6(24),t.Q6J("ngForOf",e.data.SalesReturn),t.xp6(5),t.Q6J("innerHTML",t.lcZ(72,26,t.xi3(73,28,e.data.SalesReturn,"Quantity")),t.oJD),t.xp6(3),t.Q6J("innerHTML",t.lcZ(75,31,t.xi3(76,33,e.data.SalesReturn,"UnitPrice")),t.oJD),t.xp6(20),t.Q6J("ngForOf",e.data.LoyaltyPointhistory)}}function mn(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Ce,2,1,"div",1),t.YNc(2,Me,30,10,"div",2),t.YNc(3,we,8,1,"div",2),t.YNc(4,gn,95,42,"div",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!=e.data.Warning||null!=e.data.Warning),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Session)}}let Zn=(()=>{class n{constructor(e,o,a,r){this.datePipe=e,this.Service=o,this.localData=a,this.matDialog=r,this.isEdit=!1,this.InputMode=!1,this.Expense=new c,this.loyalty=!0,this.salesreturn=!0,this.void=!0,this.denomination=!0,this.paymentReceived=!0,this.invoice=!0,this.expense=!0,this.register=!0,this.myFunct=function(_){this.data.ExpectedPaymentVisible?(_.Amount=_.AmountSUM+1*_.Start,_.ShortOver=_.AmountSUM+1*_.Start-_.Amount):(_.AmountSUM=0,_.Amount=_.Start,_.ShortOver=0)},this.DeleteExpenses=function(_){const Z=this.data.Session.RegisterID,A=JSON.parse(localStorage.getItem(Z));A.splice(_,1),localStorage.setItem(Z,JSON.stringify(A)),this.data.Expenses.splice(_,1)},this.DenominationTotal=function(_){_.Total=_.Amount*_.Quantity},this.ChangeDifferences=function(_){this.Data.ExpectedPaymentVisible?_.ShortOver=_.Amount-(_.AmountSUM+1*_.Start):(_.AmountSUM=0,_.ShortOver=0)}}ngOnInit(){}showExpenseModal(){this.matDialog.open(h,{data:{Form:this.Expense,LabelExpense:this.data.LabelExpense,PaymentList:this.data.PaymentList,ID:this.data.Session.RegisterID}}).afterClosed().subscribe(o=>{if(null==localStorage.getItem(o.Data.ID))localStorage.setItem(o.Data.ID,JSON.stringify([o.Data]));else{const a=JSON.parse(localStorage.getItem(o.Data.ID));a.push(o.Data),localStorage.setItem(o.Data.ID,JSON.stringify(a))}this.data.Expenses.push(o.Data)})}filterAmount(e,o,a){return e.filter(function(r){return r[o]==a})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.uU),t.Y36(S.O),t.Y36(F.T),t.Y36(m.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["shift-info"]],inputs:{isEdit:"isEdit",data:"data",InputMode:"InputMode"},decls:1,vars:1,consts:[[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","row",4,"ngIf"],["role","alert",1,"alert","alert-warning"],[1,"row"],[1,"col-3"],[1,"card"],[1,"card-header",3,"ngClass","click"],[1,"text-center"],["aria-hidden","true",1,"fas","fa-map-marker-alt"],[1,"card-body","pt-0"],[1,"text-center","font-weight-normal","h5"],[1,"col"],[1,"card-header"],[1,"far","fa-calendar-alt","mr-4"],[1,"card-body"],[1,"h5","text-center","font-weight-normal"],["class","col",4,"ngIf"],[1,"card",2,"width","224px !important"],[1,"fas","fa-file-invoice","mr-4"],[1,"card-header","px-0"],[1,"fas","fa-cart-arrow-down","mr-4"],[1,"card","w-100","mx-7"],[1,"col-12",2,"padding-left","0","padding-right","0"],["class","table table-bordered border-light-gray",4,"ngIf"],[1,"table","table-bordered","border-light-gray"],[1,"table-light"],[1,"border-right",2,"width","150px"],[1,"border-right","text-right","pr-10"],["class","border-right text-right pr-10",4,"ngIf"],["style","width: 200px;","class","text-right pr-10",4,"ngIf"],[1,"border-left","text-right","pr-10"],[4,"ngFor","ngForOf"],[1,"text-right","pr-10",2,"width","200px"],[1,"text-right"],[1,"text-right","font-weight-bold"],[1,"text-right","font-weight-bold",3,"ngClass"],[1,"col-sm-12"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["class","nav-item",4,"ngIf"],[1,"nav-item",3,"hidden"],["id","loyalty-tab","data-toggle","tab","href","#loyalty","role","tab","aria-controls","loyalty","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content"],["id","invoice","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"row","no-gutters"],["id","void","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],["class","col-12",3,"hidden",4,"ngIf"],["class","tab-pane fade mt-0 pt-0","id","payment","role","tabpanel",3,"class",4,"ngIf"],["class","tab-pane fade mt-0 pt-0","id","expense","role","tabpanel",4,"ngIf"],["id","bank","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"card","border-top-0"],[1,"table","table-bordered","custom-table"],[1,"thead-light"],[1,"border-right"],[1,"border-right","text-right",2,"width","100px"],[1,"text-right","pr-8",2,"width","240px"],["colspan","2",1,"text-right"],[1,"text-right","pr-8","font-weight-bold"],["id","return","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"table","table-bordered"],[1,"border-right",2,"width","20px"],[1,"text-right","border-right"],["colspan","3"],[1,"text-right",3,"innerHTML"],["id","loyalty","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"border-right","text-right"],[1,"nav-item"],["id","invoice-tab","data-toggle","tab","href","#invoice","role","tab","aria-controls","invoice","aria-selected","false",1,"nav-link"],["expe","","id","void-tab","data-toggle","tab","href","#void","role","tab","aria-controls","void","aria-selected","false",1,"nav-link"],["id","payment-tab","data-toggle","tab","href","#payment","role","tab","aria-controls","payment","aria-selected","true",1,"nav-link"],["id","expense-tab","data-toggle","tab","href","#expense","role","tab","aria-controls","expense","aria-selected","false",1,"nav-link"],["id","bank-tab","data-toggle","tab","href","#bank","role","tab","aria-controls","bank","aria-selected","false",1,"nav-link"],["id","return-tab","data-toggle","tab","href","#return","role","tab","aria-controls","return","aria-selected","false",1,"nav-link"],[1,"card","mr-5","border-top-0"],[1,"text-right","border-right",2,"width","20px"],[1,"border-right",2,"width","200px"],["class","border-right","style","width: 85px;",4,"ngIf"],[1,"border-right",2,"width","30px"],[1,"text-right","border-right",2,"width","30px"],[1,"text-right","border-right",2,"width","60px"],["colspan","4"],[3,"innerHTML"],[1,"border-right",2,"width","85px"],[2,"color","blue",3,"href","innerHTML"],[3,"innerHTML",4,"ngIf"],[1,"col-12",3,"hidden"],[1,"card","mr-5"],["target","_blank",2,"color","blue",3,"href"],["id","payment","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"table-responsive",2,"overflow-x","auto"],["class","text-right border-right",3,"innerHTML",4,"ngFor","ngForOf"],["colspan","3",1,"text-right"],["class","text-right",4,"ngFor","ngForOf"],[1,"text-right","border-right",3,"innerHTML"],["target","_blank",3,"href"],["id","expense","role","tabpanel",1,"tab-pane","fade","mt-0","pt-0"],[1,"card-body","py-5"],[1,"table","table-bordered","mb-6"],["class","border-right","width","15px",4,"ngIf"],[1,"border-right","text-right",2,"width","150px"],["width","15px",1,"border-right"],["type","button","class","btn btn-outline-dark btn-sm bg-white text-black","title","Add Expense",3,"click",4,"ngIf"],["type","button","title","Add Expense",1,"btn","btn-outline-dark","btn-sm","bg-white","text-black",3,"click"],["aria-hidden","true",1,"fas","fa-plus"],[1,"fas","fa-times","fa-lg","text-danger",2,"cursor","pointer",3,"click"],[1,"font-weight-bold"],[1,"text-right",3,"hidden"],[1,"text-right","pr-8"],["type","text","autoNum","",1,"form-control","text-right",3,"ngModel","ngModelChange","keyup"]],template:function(e,o){1&e&&t.YNc(0,mn,5,4,"div",0),2&e&&t.Q6J("ngIf",o.data)},directives:[s.O5,s.mk,s.sg,l.Fj,T.b,l.JJ,l.On],pipes:[s.JJ,f.qU,f.W7,s.uU,f.$k,f.d5],encapsulation:2}),n})(),un=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[s.ez,f.dr,x.d,l.u5,l.UX,H.X]]}),n})();function hn(n,i){1&n&&(t.TgZ(0,"button",14),t._UZ(1,"b",15),t.qZA())}function fn(n,i){if(1&n&&(t.TgZ(0,"ul",16),t.TgZ(1,"li",17),t.TgZ(2,"a",18),t._uU(3,"View Journal"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.MGl("href","https://accounting.dealpos.app/pages/journal-entry;TransID=",e.data.JournalID,"",t.LSH)}}function xn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",10),t.TgZ(1,"a",11),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).showJournalModal()}),t._uU(2," Regenerate Shift Journal "),t.qZA(),t.YNc(3,hn,2,0,"button",12),t.YNc(4,fn,4,1,"ul",13),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(3),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Session)}}function Tn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.exportCSV(a.csvConverter,"ShiftExport/EndOfShiftDetailExport","End_of_day_detail_report.csv")}),t._UZ(1,"i",23),t._uU(2," Export "),t.qZA()}}function An(n,i){if(1&n&&(t.TgZ(0,"div",19),t.TgZ(1,"a",20),t._UZ(2,"i",21),t._uU(3," Print "),t.qZA(),t.YNc(4,Tn,3,0,"a",22),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","/A/Print/RegisterClosure?id=",e.data.Session.ID,"",t.LSH),t.xp6(3),t.Q6J("ngIf",e.data.IsExport)}}const qn=function(){return["/menu/Shift/Main/Previous_Shift/Register_Shift_Form"]},bn=function(n){return{ID:n}};function Cn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",19),t.TgZ(1,"a",24),t._UZ(2,"i",25),t._uU(3," Edit "),t.qZA(),t.TgZ(4,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.delete(a.data.Session.ID)}),t._UZ(5,"i",27),t._uU(6," Delete"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.DdM(2,qn))("queryParams",t.VKq(3,bn,e.data.Session.ID))}}const Sn=function(){return["/menu/Shift/Main/Previous_Shift"]};function In(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.TgZ(1,"actions"),t.YNc(2,xn,5,2,"div",2),t.TgZ(3,"a",3),t.NdJ("click",function(){return t.CHM(e),t.oxw().RefreshSalesTax()}),t._UZ(4,"i",4),t._uU(5," \xa0Refresh "),t.qZA(),t.YNc(6,An,5,2,"div",5),t.YNc(7,Cn,7,5,"div",5),t.TgZ(8,"div",6),t.TgZ(9,"a",7),t._uU(10,"Return"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"content"),t.TgZ(12,"div",8),t._UZ(13,"shift-info",9),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf",e.data.EODJournalType),t.xp6(4),t.Q6J("ngIf",e.data.Session),t.xp6(1),t.Q6J("ngIf",e.data.Session),t.xp6(2),t.Q6J("routerLink",t.DdM(9,Sn)),t.xp6(4),t.Q6J("data",e.data)("InputMode",e.InputMode)}}let yn=(()=>{class n extends q.n{constructor(e,o,a,r,_,Z){super(o,"Shift/EndOfShiftDetail",null,_,a),this.csvConverter=e,this.httpService=o,this.activatedRoute=a,this.matDialog=r,this.toaster=_,this.router=Z,this.InputMode=!1,this.Detail=!0}preGetList(){this.route&&(this.pageData.Filter={ID:this.route.snapshot.params.ID})}RefreshSalesTax(){this.httpService.post("/API/Report/RefreshValueSalesTax",JSON.stringify({Invoices:this.data.Invoices,Session:this.data.Session,VoidInvoice:this.data.VoidInvoice})).subscribe(o=>{this.data.Session=o},o=>this.toaster.error(o,g.n.Error))}delete(e){confirm("Are you sure you want to delete this record?")&&null!=e&&this.httpService.post("/API/Shift/DeleteEndOFShiftDetail",JSON.stringify({ID:e})).subscribe(a=>{this.router.navigate(["/menu/Shift/Main/Previous_Shift"]),this.toaster.success("Success Delete Shift",g.n.Success)},a=>this.toaster.error(a,g.n.Error))}showJournalModal(){this.matDialog.open(be,{data:this.data}).afterClosed().subscribe(o=>{o&&this.httpService.post("/API/Report/RegenerateEODJournal",JSON.stringify({ID:this.data.Session.ID,PostDate:o.PostDate})).subscribe(r=>{this.getListData()},r=>this.toaster.error(r,g.n.Error))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.O),t.Y36(S.O),t.Y36(u.gz),t.Y36(m.uw),t.Y36(v._W),t.Y36(u.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["POS-register-detail"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],["class","btn-group mr-3",4,"ngIf"],["role","button","title","Refresh Sales Tax",1,"btn","btn-outline-secondary","mx-3",3,"click"],[1,"fas","fa-sync"],["class","btn-group mx-3",4,"ngIf"],[1,"btn-group"],[1,"button","btn","btn-success",3,"routerLink"],[1,"container-fluid","bg-light-gray","pt-4"],[3,"data","InputMode"],[1,"btn-group","mr-3"],[1,"btn","btn-outline-secondary",3,"click"],["class","btn btn-outline-secondary btn-sm dropdown-toggle","data-toggle","dropdown",4,"ngIf"],["class","dropdown-menu dropdown-menu-right",4,"ngIf"],["data-toggle","dropdown",1,"btn","btn-outline-secondary","btn-sm","dropdown-toggle"],[1,"caret"],[1,"dropdown-menu","dropdown-menu-right"],[1,"dropdown-item"],["target","_blank",3,"href"],[1,"btn-group","mx-3"],["title","Print Original","target","_blank",1,"btn","btn-outline-secondary",3,"href"],[1,"fas","fa-print"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["aria-hidden","true",1,"fas","fa-upload"],["title","edit",1,"btn","btn-outline-secondary",3,"routerLink","queryParams"],[1,"fas","fa-edit"],["role","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-trash"]],template:function(e,o){1&e&&t.YNc(0,In,14,10,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},directives:[s.O5,I.p,u.yS,Zn],encapsulation:2}),n})();var Mn=d(713),V=d(6825);function Un(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",26),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).showCloseModal()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ","00000000-0000-0000-0000-000000000000"==e.data.ID?"Save":"Update"," ")}}function Dn(n,i){if(1&n&&(t.TgZ(0,"div",9),t.TgZ(1,"div",34),t.TgZ(2,"div",7),t.TgZ(3,"div",35),t.TgZ(4,"h2",36),t._UZ(5,"i",37),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",38),t.TgZ(8,"div",39),t._uU(9),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"div",40),t.TgZ(11,"div",7),t.TgZ(12,"div",35),t.TgZ(13,"h2",36),t._UZ(14,"i",41),t._uU(15,"Opening"),t.qZA(),t.qZA(),t.TgZ(16,"div",38),t.TgZ(17,"div",42),t._uU(18),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"div",40),t.TgZ(20,"div",7),t.TgZ(21,"div",35),t.TgZ(22,"h2",36),t._UZ(23,"i",41),t._uU(24,"Closing"),t.qZA(),t.qZA(),t.TgZ(25,"div",38),t.TgZ(26,"div",42),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",34),t.TgZ(29,"div",7),t.TgZ(30,"div",35),t.TgZ(31,"h2",36),t._UZ(32,"i",43),t._uU(33,"Invoice / Void"),t.qZA(),t.qZA(),t.TgZ(34,"div",38),t.TgZ(35,"div",42),t._uU(36),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(37,"div",40),t.TgZ(38,"div",7),t.TgZ(39,"div",44),t.TgZ(40,"h2",36),t._UZ(41,"i",45),t._uU(42,"Sales + Tax"),t.qZA(),t.qZA(),t.TgZ(43,"div",38),t.TgZ(44,"div",42),t._uU(45),t.ALo(46,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(6),t.hij(" Cashier / ",e.data.Register.Name,""),t.xp6(3),t.AsE("",e.data.Register.CashierName," / ",e.data.Register.OutletName,""),t.xp6(9),t.Oqu(e.data.Register.Start),t.xp6(9),t.Oqu(e.data.Register.End),t.xp6(9),t.AsE("",e.data.Invoices.length," / ",e.data.VoidInvoice.length,""),t.xp6(9),t.Oqu(t.lcZ(46,8,e.data.Session.Sales+e.data.Session.Tax))}}const j=function(n,i){return{"text-success":n,"text-danger":i}};function Jn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.TgZ(4,"input",59),t.NdJ("ngModelChange",function(a){return t.CHM(e).$implicit.Start=a})("keyup",function(){const r=t.CHM(e).$implicit;return t.oxw(5).onChangeDifferences(r)}),t.qZA(),t.qZA(),t.TgZ(5,"td",56),t._uU(6),t.ALo(7,"number"),t.qZA(),t.TgZ(8,"td",56),t._uU(9),t.ALo(10,"number"),t.qZA(),t.TgZ(11,"td"),t.TgZ(12,"input",60),t.NdJ("keyup",function(){const r=t.CHM(e).$implicit;return t.oxw(5).changeDifferences(r,!0)})("ngModelChange",function(a){return t.CHM(e).$implicit.Amount=a}),t.qZA(),t.qZA(),t.TgZ(13,"td",56),t._uU(14),t.ALo(15,"number"),t.qZA(),t.TgZ(16,"td"),t.TgZ(17,"input",61),t.NdJ("ngModelChange",function(a){return t.CHM(e).$implicit.Note=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(5);t.xp6(2),t.Oqu(e.Name),t.xp6(2),t.Q6J("ngModel",e.Start)("disabled",!o.data.ExpectedPaymentVisible),t.xp6(2),t.hij(" ",t.lcZ(7,10,e.Received)," "),t.xp6(3),t.hij(" ",t.lcZ(10,12,e.Expected)," "),t.xp6(3),t.Q6J("ngModel",e.Amount),t.xp6(1),t.Tol(t.WLB(16,j,e.ShortOver>0,e.ShortOver<0)),t.xp6(1),t.hij(" ",t.lcZ(15,14,e.ShortOver)," "),t.xp6(3),t.Q6J("ngModel",e.Note)}}function Nn(n,i){if(1&n&&(t.TgZ(0,"table",49),t.TgZ(1,"thead",50),t.TgZ(2,"tr"),t.TgZ(3,"th",51),t._uU(4,"Payment"),t.qZA(),t.TgZ(5,"th",52),t._uU(6,"Start"),t.qZA(),t.TgZ(7,"th",52),t._uU(8,"Received"),t.qZA(),t.TgZ(9,"th",52),t._uU(10,"Expected"),t.qZA(),t.TgZ(11,"th",52),t._uU(12,"Counted"),t.qZA(),t.TgZ(13,"th",53),t._uU(14,"Differences"),t.qZA(),t.TgZ(15,"th",54),t._uU(16,"Note"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"tbody"),t.YNc(18,Jn,18,19,"tr",55),t.qZA(),t.TgZ(19,"tfoot"),t.TgZ(20,"tr"),t.TgZ(21,"th"),t._uU(22,"Total:"),t.qZA(),t.TgZ(23,"td",56),t._UZ(24,"b",57),t.ALo(25,"number"),t.ALo(26,"sum"),t.qZA(),t.TgZ(27,"td",56),t._UZ(28,"b",57),t.ALo(29,"number"),t.ALo(30,"sum"),t.qZA(),t.TgZ(31,"td",56),t._UZ(32,"b",57),t.ALo(33,"number"),t.ALo(34,"sum"),t.qZA(),t.TgZ(35,"td",56),t._UZ(36,"b",57),t.ALo(37,"number"),t.ALo(38,"sum"),t.qZA(),t.TgZ(39,"td",58),t.ALo(40,"sum"),t.ALo(41,"sum"),t._uU(42),t.ALo(43,"number"),t.ALo(44,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(18),t.Q6J("ngForOf",e.data.Payments),t.xp6(6),t.Q6J("innerHTML",t.lcZ(25,8,t.xi3(26,10,e.data.Payments,"Start")),t.oJD),t.xp6(4),t.Q6J("innerHTML",t.lcZ(29,13,t.xi3(30,15,e.data.Payments,"Received")),t.oJD),t.xp6(4),t.Q6J("innerHTML",t.lcZ(33,18,t.xi3(34,20,e.data.Payments,"Expected")),t.oJD),t.xp6(4),t.Q6J("innerHTML",t.lcZ(37,23,t.xi3(38,25,e.data.Payments,"Amount")),t.oJD),t.xp6(3),t.Tol(t.WLB(39,j,t.xi3(40,28,e.data.Payments,"ShortOver")>0,t.xi3(41,31,e.data.Payments,"ShortOver")<0)),t.xp6(3),t.hij(" ",t.lcZ(43,34,t.xi3(44,36,e.data.Payments,"ShortOver"))," ")}}function On(n,i){if(1&n&&(t.TgZ(0,"div",9),t.TgZ(1,"div",46),t.TgZ(2,"div",35),t.TgZ(3,"h2"),t._uU(4,"Payments"),t.qZA(),t.qZA(),t.TgZ(5,"div",38),t.TgZ(6,"div",47),t.YNc(7,Nn,45,42,"table",48),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(7),t.Q6J("ngIf",e.data.Payments.length>0)}}function Fn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td"),t.TgZ(1,"i",75),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().index;return t.oxw(6).DeleteExpenses(a)}),t.qZA(),t.qZA()}}function wn(n,i){if(1&n&&(t.TgZ(0,"tr"),t.YNc(1,Fn,2,0,"td",73),t.TgZ(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td",74),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(6);t.xp6(1),t.Q6J("ngIf",o.InputMode),t.xp6(2),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.lcZ(6,4,e.Amount)),t.xp6(3),t.Oqu(e.Note)}}function Ln(n,i){if(1&n&&(t.TgZ(0,"table",68),t.TgZ(1,"thead",69),t.TgZ(2,"tr"),t._UZ(3,"th",70),t.TgZ(4,"th",71),t._uU(5,"Label"),t.qZA(),t.TgZ(6,"th",72),t._uU(7,"Amount"),t.qZA(),t.TgZ(8,"th",71),t._uU(9,"Note"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"tbody"),t.YNc(11,wn,9,6,"tr",55),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(11),t.Q6J("ngForOf",e.data.Expenses)}}function Qn(n,i){if(1&n&&(t.TgZ(0,"div",38),t.YNc(1,Ln,12,1,"table",67),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.Expenses.length>0)}}function Pn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",9),t.TgZ(1,"div",62),t.TgZ(2,"div",7),t.TgZ(3,"div",63),t.TgZ(4,"h2",64),t._uU(5,"Expense"),t.qZA(),t.TgZ(6,"button",65),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).showExpenseModal()}),t._uU(7,"Add"),t.qZA(),t.qZA(),t.YNc(8,Qn,2,1,"div",66),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(8),t.Q6J("ngIf",e.expense)}}function Rn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr"),t.TgZ(1,"td",83),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.TgZ(4,"input",84),t.NdJ("ngModelChange",function(a){return t.CHM(e).$implicit.Quantity=a})("keyup",function(){const r=t.CHM(e).$implicit;return t.oxw(6).DenominationTotal(r)}),t.qZA(),t.qZA(),t.TgZ(5,"td",85),t._uU(6),t.ALo(7,"number"),t.qZA(),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(2),t.Oqu(e.PriceDisplay),t.xp6(2),t.Q6J("ngModel",e.Quantity),t.xp6(2),t.Oqu(t.lcZ(7,3,e.Total))}}function En(n,i){if(1&n&&(t.TgZ(0,"table",68),t.TgZ(1,"thead",69),t.TgZ(2,"tr"),t.TgZ(3,"th",71),t._uU(4,"Cash Denomination"),t.qZA(),t.TgZ(5,"th",79),t._uU(6,"Qty"),t.qZA(),t.TgZ(7,"th",80),t._uU(8,"Total"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"tbody"),t.YNc(10,Rn,8,5,"tr",55),t.qZA(),t.TgZ(11,"tfoot"),t.TgZ(12,"tr"),t.TgZ(13,"th",81),t._uU(14,"Total:"),t.qZA(),t.TgZ(15,"td",82),t._uU(16),t.ALo(17,"number"),t.ALo(18,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(10),t.Q6J("ngForOf",e.data.Denominations),t.xp6(6),t.hij(" ",t.lcZ(17,2,t.xi3(18,4,e.data.Denominations,"Total"))," ")}}function kn(n,i){if(1&n&&(t.TgZ(0,"div",38),t.YNc(1,En,19,7,"table",67),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.Denominations.length>0)}}function Yn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",30),t.TgZ(1,"div",76),t.TgZ(2,"div",77),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.denomination=!a.denomination}),t.TgZ(3,"h2",78),t._uU(4," Denomination "),t.qZA(),t.qZA(),t.YNc(5,kn,2,1,"div",66),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(5),t.Q6J("ngIf",e.denomination)}}function Hn(n,i){1&n&&(t.TgZ(0,"th",100),t._uU(1,"Date"),t.qZA())}function Vn(n,i){1&n&&(t.TgZ(0,"th",100),t._uU(1,"Date"),t.qZA())}function jn(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.Created,"dd MMM yyyy"),"")}}function $n(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.Date,"dd MMM yyyy"),"")}}const Bn=function(n,i,e){return{"text-success":n,"text-warning":i,"text-danger":e}};function Wn(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",74),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.TgZ(4,"a",101),t._uU(5),t.qZA(),t.qZA(),t.YNc(6,jn,3,4,"td",73),t.YNc(7,$n,3,4,"td",73),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"date"),t.qZA(),t.TgZ(11,"td",74),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"td",102),t._uU(15),t.ALo(16,"number"),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(6);t.xp6(2),t.Oqu(o+1),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.ID,"",t.LSH),t.xp6(1),t.hij(" ",e.Number,""),t.xp6(1),t.Q6J("ngIf",0==a.data.Session.Type),t.xp6(1),t.Q6J("ngIf",0!=a.data.Session.Type),t.xp6(2),t.Oqu(t.xi3(10,9,e.Created,"HH:mm")),t.xp6(3),t.Oqu(t.lcZ(13,12,e.Quantity)),t.xp6(2),t.Q6J("ngClass",t.kEZ(16,Bn,3==e.PaymentStateID,2==e.PaymentStateID,1==e.PaymentStateID)),t.xp6(1),t.Oqu(t.lcZ(16,14,e.SalesNTax))}}function Kn(n,i){if(1&n&&(t.TgZ(0,"table",68),t.TgZ(1,"thead",69),t.TgZ(2,"tr"),t.TgZ(3,"th",92),t._uU(4,"No"),t.qZA(),t.TgZ(5,"th",93),t._uU(6,"Number"),t.qZA(),t.YNc(7,Hn,2,0,"th",94),t.YNc(8,Vn,2,0,"th",94),t.TgZ(9,"th",95),t._uU(10,"Time"),t.qZA(),t.TgZ(11,"th",96),t._uU(12,"Qty"),t.qZA(),t.TgZ(13,"th",97),t._uU(14,"Nett"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"tbody"),t.YNc(16,Wn,17,20,"tr",55),t.qZA(),t.TgZ(17,"tfoot"),t.TgZ(18,"tr"),t._UZ(19,"td",98),t.TgZ(20,"td",99),t._uU(21),t.ALo(22,"number"),t.ALo(23,"sum"),t.qZA(),t.TgZ(24,"td",99),t._uU(25),t.ALo(26,"number"),t.ALo(27,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(7),t.Q6J("ngIf",0==e.data.Session.Type),t.xp6(1),t.Q6J("ngIf",0!=e.data.Session.Type),t.xp6(8),t.Q6J("ngForOf",e.data.Invoices),t.xp6(5),t.hij(" ",t.lcZ(22,5,t.xi3(23,7,e.data.Invoices,"Quantity"))," "),t.xp6(4),t.hij(" ",t.lcZ(26,10,t.xi3(27,12,e.data.Invoices,"SalesNTax"))," ")}}function Gn(n,i){if(1&n&&(t.TgZ(0,"div",38),t.YNc(1,Kn,28,15,"table",67),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.Invoices.length>0)}}function zn(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",57),t.TgZ(2,"td"),t.TgZ(3,"a",104),t._uU(4),t.qZA(),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"td"),t._uU(11),t.ALo(12,"IsMinDate"),t.qZA(),t.TgZ(13,"td",74),t._uU(14),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.ID,"",t.LSH),t.xp6(1),t.hij(" ",e.Number," "),t.xp6(2),t.Oqu(e.CustomerName),t.xp6(2),t.Oqu(t.xi3(9,7,e.Date,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(12,10,e.Due,"dd MMM yyyy")),t.xp6(3),t.Oqu(e.Payment)}}function Xn(n,i){if(1&n&&(t.TgZ(0,"table",68),t.TgZ(1,"thead",69),t.TgZ(2,"tr"),t.TgZ(3,"th",103),t._uU(4,"No"),t.qZA(),t.TgZ(5,"th",71),t._uU(6,"Number"),t.qZA(),t.TgZ(7,"th",71),t._uU(8,"Customer"),t.qZA(),t.TgZ(9,"th",71),t._uU(10,"Date"),t.qZA(),t.TgZ(11,"th",71),t._uU(12,"Due"),t.qZA(),t.TgZ(13,"th",71),t._uU(14,"Payment"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"tbody"),t.YNc(16,zn,15,13,"tr",55),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(16),t.Q6J("ngForOf",e.data.VoidInvoice)}}function ti(n,i){if(1&n&&(t.TgZ(0,"div",38),t.YNc(1,Xn,17,1,"table",67),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.VoidInvoice.length>0)}}const N=function(n){return{"pb-8":n}};function ei(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",30),t.TgZ(1,"div",86),t.TgZ(2,"div",87),t.TgZ(3,"div",88),t.TgZ(4,"h2",89),t._uU(5," Invoices "),t.qZA(),t.TgZ(6,"div",90),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.invoice=!a.invoice}),t._uU(7),t.qZA(),t.qZA(),t.YNc(8,Gn,2,1,"div",66),t.qZA(),t.qZA(),t.TgZ(9,"div",86),t.TgZ(10,"div",91),t.TgZ(11,"div",88),t.TgZ(12,"h2",89),t._uU(13," Void Invoice "),t.qZA(),t.TgZ(14,"div",90),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.void=!a.void}),t._uU(15),t.qZA(),t.qZA(),t.YNc(16,ti,2,1,"div",66),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(3),t.Q6J("ngClass",t.VKq(6,N,!e.invoice)),t.xp6(4),t.hij(" ",e.invoice?"Load":"Hide"," "),t.xp6(1),t.Q6J("ngIf",!e.invoice),t.xp6(3),t.Q6J("ngClass",t.VKq(8,N,!e.void)),t.xp6(4),t.hij(" ",e.void?"Load":"Hide"," "),t.xp6(1),t.Q6J("ngIf",!e.void)}}function ni(n,i){if(1&n&&(t.TgZ(0,"th",108),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.Name)}}function ii(n,i){if(1&n&&(t.TgZ(0,"td",74),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.index,o=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,o.Amounts[e]))}}function oi(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",74),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.TgZ(4,"a",109),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.YNc(8,ii,3,3,"td",107),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(6);t.xp6(2),t.Oqu(o+1),t.xp6(2),t.s9C("href",1==e.TypeID?"/A/Orders/Orders/Customer_Invoice/Info?ID="+e.InvoiceID:"/A/Debt/Advance/AR_Collection/Info?ID="+e.InvoiceID,t.LSH),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Oqu(e.CustomerName),t.xp6(1),t.Q6J("ngForOf",a.data.PaymentMethods)}}function ai(n,i){if(1&n&&(t.TgZ(0,"td",74),t._uU(1),t.ALo(2,"number"),t.ALo(3,"SumWithIndex"),t.qZA()),2&n){const e=i.index,o=t.oxw(6);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.Dn7(3,3,o.data.PaymentReceived,"Amounts",e))," ")}}function ri(n,i){if(1&n&&(t.TgZ(0,"table",68),t.TgZ(1,"thead",69),t.TgZ(2,"tr"),t.TgZ(3,"th",92),t._uU(4,"No"),t.qZA(),t.TgZ(5,"th",71),t._uU(6,"Number"),t.qZA(),t.TgZ(7,"th",71),t._uU(8,"Customer"),t.qZA(),t.YNc(9,ni,2,1,"th",105),t.qZA(),t.qZA(),t.TgZ(10,"tbody"),t.YNc(11,oi,9,5,"tr",55),t.qZA(),t.TgZ(12,"tfoot"),t.TgZ(13,"tr"),t.TgZ(14,"td",106),t.TgZ(15,"b"),t._uU(16,"sum:"),t.qZA(),t.qZA(),t.YNc(17,ai,4,7,"td",107),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(9),t.Q6J("ngForOf",e.data.PaymentMethods),t.xp6(2),t.Q6J("ngForOf",e.data.PaymentReceived),t.xp6(6),t.Q6J("ngForOf",e.data.PaymentMethods)}}function _i(n,i){if(1&n&&(t.TgZ(0,"div",38),t.YNc(1,ri,18,3,"table",67),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.PaymentReceived.length>0)}}function di(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",30),t.TgZ(1,"div",76),t.TgZ(2,"div",88),t.TgZ(3,"h2",89),t._uU(4," Payment Received "),t.qZA(),t.TgZ(5,"div",90),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.paymentReceived=!a.paymentReceived}),t._uU(6),t.qZA(),t.qZA(),t.YNc(7,_i,2,1,"div",66),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(2),t.Q6J("ngClass",t.VKq(3,N,!e.paymentReceived)),t.xp6(4),t.hij(" ",e.paymentReceived?"Load":"Hide"," "),t.xp6(1),t.Q6J("ngIf",!e.paymentReceived)}}function si(n,i){if(1&n&&(t.TgZ(0,"tr"),t._UZ(1,"td",57),t.TgZ(2,"td",83),t.TgZ(3,"a",109),t._uU(4),t.qZA(),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td",74),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"td",74),t._uU(11),t.ALo(12,"number"),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"date"),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("innerHTML",o+1,t.oJD),t.xp6(2),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.InvoiceID,"",t.LSH),t.xp6(1),t.hij(" ",e.Number," "),t.xp6(2),t.Oqu(e.CustomerName),t.xp6(2),t.hij(" ",t.lcZ(9,7,e.Quantity),""),t.xp6(3),t.hij(" ",t.lcZ(12,9,e.UnitPrice),""),t.xp6(3),t.Oqu(t.xi3(15,11,e.Created,"dd MMM yyyy"))}}function li(n,i){if(1&n&&(t.TgZ(0,"table",68),t.TgZ(1,"thead",69),t.TgZ(2,"tr"),t.TgZ(3,"th",103),t._uU(4,"No"),t.qZA(),t.TgZ(5,"th",71),t._uU(6,"Number"),t.qZA(),t.TgZ(7,"th",71),t._uU(8,"Customer"),t.qZA(),t.TgZ(9,"th",74),t._uU(10,"Quantity"),t.qZA(),t.TgZ(11,"th",108),t._uU(12,"Price"),t.qZA(),t.TgZ(13,"th"),t._uU(14,"Date"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"tbody"),t.YNc(16,si,16,14,"tr",55),t.qZA(),t.TgZ(17,"tfoot"),t.TgZ(18,"tr"),t.TgZ(19,"td",110),t._uU(20,"Total"),t.qZA(),t.TgZ(21,"td",74),t._uU(22),t.ALo(23,"number"),t.ALo(24,"sum"),t.qZA(),t.TgZ(25,"td",74),t._uU(26),t.ALo(27,"number"),t.ALo(28,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(16),t.Q6J("ngForOf",e.data.SalesReturn),t.xp6(6),t.Oqu(t.lcZ(23,3,t.xi3(24,5,e.data.SalesReturn,"Quantity"))),t.xp6(4),t.Oqu(t.lcZ(27,8,t.xi3(28,10,e.data.SalesReturn,"UnitPrice")))}}function ci(n,i){if(1&n&&(t.TgZ(0,"div",38),t.YNc(1,li,29,13,"table",67),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.data.SalesReturn.length>0)}}function pi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",86),t.TgZ(1,"div",87),t.TgZ(2,"div",88),t.TgZ(3,"h2",89),t._uU(4," Sales Return "),t.qZA(),t.TgZ(5,"div",90),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.salesreturn=!a.salesreturn}),t._uU(6),t.qZA(),t.qZA(),t.YNc(7,ci,2,1,"div",66),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(2),t.Q6J("ngClass",t.VKq(3,N,!e.salesreturn)),t.xp6(4),t.hij(" ",e.salesreturn?"Load":"Hide"," "),t.xp6(1),t.Q6J("ngIf",!e.salesreturn)}}function gi(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"th"),t._uU(2),t.qZA(),t.TgZ(3,"td",113),t._uU(4,":"),t.qZA(),t.TgZ(5,"td",74),t._uU(6),t.ALo(7,"number"),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(2),t.Oqu(e.data.Label.Taxable),t.xp6(4),t.Oqu(t.lcZ(7,2,e.data.Session.Taxable))}}function mi(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"th"),t._uU(2),t.qZA(),t.TgZ(3,"td",113),t._uU(4,":"),t.qZA(),t.TgZ(5,"td",74),t._uU(6),t.qZA(),t.qZA()),2&n){const e=t.oxw(5);t.xp6(2),t.Oqu(e.data.Label.TaxEmapt),t.xp6(4),t.Oqu(e.data.Session.TaxExempt)}}function Zi(n,i){if(1&n&&(t.TgZ(0,"div",38),t.TgZ(1,"table",112),t.TgZ(2,"tr"),t.TgZ(3,"th"),t._uU(4,"Sales"),t.qZA(),t.TgZ(5,"td",113),t._uU(6,":"),t.qZA(),t.TgZ(7,"td",74),t._uU(8),t.ALo(9,"number"),t.qZA(),t.qZA(),t.TgZ(10,"tr"),t.TgZ(11,"th"),t._uU(12),t.qZA(),t.TgZ(13,"td",113),t._uU(14,":"),t.qZA(),t.TgZ(15,"td",74),t._uU(16),t.ALo(17,"number"),t.qZA(),t.qZA(),t.TgZ(18,"tr"),t.TgZ(19,"th"),t._uU(20,"Invoice Count"),t.qZA(),t.TgZ(21,"td",113),t._uU(22,":"),t.qZA(),t.TgZ(23,"td",74),t._uU(24),t.ALo(25,"number"),t.qZA(),t.qZA(),t.YNc(26,gi,8,4,"tr",73),t.YNc(27,mi,7,2,"tr",73),t.TgZ(28,"tr"),t.TgZ(29,"th"),t._uU(30,"Last Invoice"),t.qZA(),t.TgZ(31,"td",113),t._uU(32,":"),t.qZA(),t.TgZ(33,"td",74),t._uU(34),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(8),t.hij("",t.lcZ(9,7,e.data.Session.Sales)," "),t.xp6(4),t.Oqu(e.data.Label.Tax?e.data.Label.Tax:"Tax"),t.xp6(4),t.Oqu(t.lcZ(17,9,e.data.Session.Tax)),t.xp6(8),t.Oqu(t.lcZ(25,11,e.data.Session.Invoice_Count)),t.xp6(2),t.Q6J("ngIf",e.data.Label.TaxDetailVisible),t.xp6(1),t.Q6J("ngIf",e.data.Label.TaxDetailVisible),t.xp6(7),t.hij("",e.data.Session.LastNumber," ")}}function ui(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",34),t.TgZ(1,"div",111),t.TgZ(2,"div",77),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.register=!a.register}),t.TgZ(3,"h2",78),t._uU(4,"Z - Index "),t.qZA(),t.qZA(),t.YNc(5,Zi,35,13,"div",66),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(5),t.Q6J("ngIf",!e.register)}}function hi(n,i){if(1&n&&(t.TgZ(0,"div",34),t.TgZ(1,"div",91),t.TgZ(2,"div",35),t.TgZ(3,"h2",78),t._uU(4,"Gross Sales History "),t.qZA(),t.qZA(),t.TgZ(5,"div",38),t.TgZ(6,"table",112),t.TgZ(7,"tr"),t.TgZ(8,"th"),t._uU(9,"Z-Count"),t.qZA(),t.TgZ(10,"td",113),t._uU(11,":"),t.qZA(),t.TgZ(12,"td",74),t._uU(13),t.ALo(14,"number"),t.qZA(),t.qZA(),t.TgZ(15,"tr"),t.TgZ(16,"th"),t._uU(17,"Current"),t.qZA(),t.TgZ(18,"td",113),t._uU(19,":"),t.qZA(),t.TgZ(20,"td",74),t._uU(21),t.ALo(22,"number"),t.ALo(23,"sum"),t.qZA(),t.qZA(),t.TgZ(24,"tr"),t.TgZ(25,"th"),t._uU(26,"Previous"),t.qZA(),t.TgZ(27,"td",113),t._uU(28,":"),t.qZA(),t.TgZ(29,"td",74),t._uU(30),t.ALo(31,"number"),t.qZA(),t.qZA(),t.TgZ(32,"tr"),t.TgZ(33,"th"),t._uU(34,"Accumulated"),t.qZA(),t.TgZ(35,"td",113),t._uU(36,":"),t.qZA(),t.TgZ(37,"td",74),t._uU(38),t.ALo(39,"number"),t.ALo(40,"sum"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(13),t.Oqu(t.lcZ(14,4,e.data.Grosshistory)),t.xp6(8),t.Oqu(t.lcZ(22,6,t.xi3(23,8,e.data.Invoices,"Final"))),t.xp6(9),t.Oqu(t.lcZ(31,11,e.data.AccumulatedHistory)),t.xp6(8),t.Oqu(t.lcZ(39,13,t.xi3(40,15,e.data.Invoices,"Final")+e.data.AccumulatedHistory))}}function fi(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.ALo(5,"date"),t.qZA(),t.TgZ(6,"td"),t.TgZ(7,"a",104),t._uU(8),t.qZA(),t.qZA(),t.TgZ(9,"td",74),t._uU(10),t.ALo(11,"number"),t.qZA(),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(2),t.Oqu(o+1),t.xp6(2),t.Oqu(t.xi3(5,5,e.Created,"dd MMM yyyy")),t.xp6(3),t.MGl("href","/A/Orders/Orders/Customer_Invoice/Info?ID=",e.InvoiceID,"",t.LSH),t.xp6(1),t.hij(" ",e.InvoiceNumber," "),t.xp6(2),t.Oqu(t.lcZ(11,8,-1*e.Points))}}function xi(n,i){if(1&n&&(t.TgZ(0,"div",38),t.TgZ(1,"table",68),t.TgZ(2,"thead",69),t.TgZ(3,"tr"),t.TgZ(4,"th",103),t._uU(5,"No"),t.qZA(),t.TgZ(6,"th",71),t._uU(7,"Date"),t.qZA(),t.TgZ(8,"th",71),t._uU(9,"Number"),t.qZA(),t.TgZ(10,"th",114),t._uU(11,"Point"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(12,"tbody"),t.YNc(13,fi,12,10,"tr",55),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.xp6(13),t.Q6J("ngForOf",e.data.LoyaltyPointhistory)}}function Ti(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",77),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.loyalty=!a.loyalty}),t.TgZ(2,"h2",78),t._uU(3,"Point Used "),t.qZA(),t.qZA(),t.YNc(4,xi,14,1,"div",66),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(4),t.Q6J("ngIf",!e.loyalty)}}function Ai(n,i){if(1&n&&(t.TgZ(0,"div",27),t.YNc(1,Dn,47,10,"div",28),t.YNc(2,On,8,1,"div",28),t.YNc(3,Pn,9,1,"div",28),t.YNc(4,Yn,6,1,"div",29),t.YNc(5,ei,17,10,"div",29),t.YNc(6,di,8,5,"div",29),t.TgZ(7,"div",30),t.YNc(8,pi,8,5,"div",31),t.YNc(9,ui,6,1,"div",32),t.YNc(10,hi,41,18,"div",32),t.YNc(11,Ti,5,1,"div",33),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.data),t.xp6(1),t.Q6J("ngIf",e.data.Payments.length>0),t.xp6(1),t.Q6J("ngIf",e.data.Register.Name),t.xp6(1),t.Q6J("ngIf",e.data.Denominations.length>0),t.xp6(1),t.Q6J("ngIf",e.data.Invoices.length>0),t.xp6(1),t.Q6J("ngIf",e.data.PaymentReceived.length>0),t.xp6(2),t.Q6J("ngIf",e.data.Register.Name),t.xp6(1),t.Q6J("ngIf",e.data.Register.Name),t.xp6(1),t.Q6J("ngIf",e.data.Register.Name),t.xp6(1),t.Q6J("ngIf",e.data.LoyaltyPointhistory.length>0)}}const B=function(n){return{selected:n}},W=function(){return{standalone:!0}};function vi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.TgZ(1,"actions"),t.TgZ(2,"a",2),t.NdJ("click",function(){return t.CHM(e),t.oxw().preview()}),t._uU(3," Preview "),t.qZA(),t.YNc(4,Un,2,1,"a",3),t.qZA(),t.TgZ(5,"content"),t.TgZ(6,"form",4,5),t.NdJ("submit",function(){return t.CHM(e),t.oxw().onSubmit("Shift/SaveRegister")}),t.TgZ(8,"div",6),t.TgZ(9,"div",7),t.TgZ(10,"div",8),t.TgZ(11,"div",9),t.TgZ(12,"div",10),t.TgZ(13,"h5"),t._uU(14,"Register"),t.qZA(),t.qZA(),t.TgZ(15,"div",11),t.TgZ(16,"div",9),t.TgZ(17,"div",12),t.TgZ(18,"div",13),t.TgZ(19,"ng-select",14,15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().FormData.RegisterID=a}),t.qZA(),t.TgZ(21,"label",16),t._uU(22,"Outlet"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(23,"div",12),t.TgZ(24,"div",13),t.TgZ(25,"ng-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().FormData.UserID=a}),t.qZA(),t.TgZ(26,"label",18),t._uU(27,"Cashier Name"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",7),t.TgZ(29,"div",8),t.TgZ(30,"div",9),t.TgZ(31,"div",10),t.TgZ(32,"h5"),t._uU(33,"Invoice Date"),t.qZA(),t.qZA(),t.TgZ(34,"div",11),t.TgZ(35,"div",9),t.TgZ(36,"div",19),t.TgZ(37,"div",9),t.TgZ(38,"div",19),t.TgZ(39,"div",20),t.TgZ(40,"p",21),t._uU(41,"OPEN DATE"),t.qZA(),t.TgZ(42,"datepicker",22),t.NdJ("dateChange",function(a){return t.CHM(e),t.oxw().FormData.Start=a}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(43,"div",19),t.TgZ(44,"div",20),t.TgZ(45,"p",21),t._uU(46,"START TIME"),t.qZA(),t.TgZ(47,"p-calendar",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().FormData.StartTime=a}),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(48,"div",9),t.TgZ(49,"div",19),t.TgZ(50,"div",20),t.TgZ(51,"p",21),t._uU(52,"CLOSE DATE"),t.qZA(),t.TgZ(53,"datepicker",24),t.NdJ("dateChange",function(a){return t.CHM(e),t.oxw().FormData.End=a}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(54,"div",19),t.TgZ(55,"div",20),t.TgZ(56,"p",21),t._uU(57,"END TIME"),t.qZA(),t.TgZ(58,"p-calendar",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().FormData.EndTime=a}),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(59,Ai,12,10,"div",25),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(4),t.Q6J("ngIf",e.InputMode),t.xp6(14),t.Q6J("ngClass",t.VKq(19,B,e.IsNotEmpty(e.FormData.RegisterID))),t.xp6(1),t.Q6J("items",e.Options.Entities)("ngModel",e.FormData.RegisterID),t.xp6(5),t.Q6J("ngClass",t.VKq(21,B,e.IsNotEmpty(e.FormData.UserID))),t.xp6(1),t.Q6J("items",e.Options.Cashier)("ngModel",e.FormData.UserID),t.xp6(17),t.Q6J("date",e.FormData.Start),t.xp6(5),t.Q6J("ngModel",e.FormData.StartTime)("timeOnly",!0)("ngModelOptions",t.DdM(23,W)),t.xp6(6),t.Q6J("date",e.FormData.End),t.xp6(5),t.Q6J("ngModel",e.FormData.EndTime)("timeOnly",!0)("ngModelOptions",t.DdM(24,W)),t.xp6(1),t.Q6J("ngIf",e.InputMode)}}const qi=[{path:"Main/My_Shift",component:Kt},{path:"Main/Active_Shift",component:le},{path:"Main/Previous_Shift",component:Ae},{path:"Main/Previous_Shift/Register_Shift_Detail",component:yn},{path:"Main/Previous_Shift/Register_Shift_Form",component:(()=>{class n extends Mn.U{constructor(e,o,a,r,_){super(e,"ShiftLoader/EndOfShiftForm",o),this.httpService=e,this.router=a,this.matDialog=r,this.toaster=_,this.IsNotEmpty=M.gT.IsNotEmpty,this.modalConfig=new y.O,this.Expense=new c,this.InputMode=!1,this.expense=!0,this.denomination=!0,this.invoice=!0,this.void=!0,this.paymentReceived=!0,this.salesreturn=!0,this.register=!0,this.loyalty=!0,this.obj={},this.DenominationTotal=function(Z){Z.Total=Z.Amount*Z.Quantity},this.DeleteExpenses=function(Z){const A=this.data.Session.RegisterID,K=JSON.parse(localStorage.getItem(A));K.splice(Z,1),localStorage.setItem(A,JSON.stringify(K)),this.data.Expenses.splice(Z,1)},this.modalConfig.title="Register Note",this.modalConfig.customWidth="260px"}onChangeDifferences(e){e.Expected=e.Received+e.Start,this.changeDifferences(e,!1)}changeDifferences(e,o){this.data.ExpectedPaymentVisible?(o||(e.Amount=e.Received+1*e.Start),e.ShortOver=e.Amount-(e.Received+1*e.Start)):(e.Received=0,e.ShortOver=0)}postBindForm(){this.FormData=this.formData,this.Options=this.options}preview(){this.FormData.StartTime instanceof Date&&(this.FormData.StartTime=this.FormData.StartTime.toTimeString().split(" ")[0].slice(0,5)),this.FormData.EndTime instanceof Date&&(this.FormData.EndTime=this.FormData.EndTime.toTimeString().split(" ")[0].slice(0,5)),this.httpService.post("/API/Shift/PreviewEndOfShiftForm",JSON.stringify(this.FormData)).subscribe(e=>{this.data=e,this.data.ClosureEnabled=!0,this.InputMode=e.InputMode,this.Detail=!1},e=>this.toaster.error(e,g.n.Error))}showExpenseModal(){this.matDialog.open(h,{data:{Form:this.Expense,LabelExpense:this.data.LabelExpense,PaymentList:this.data.PaymentList,ID:this.data.Session.RegisterID}}).afterClosed().subscribe(o=>{if(null==localStorage.getItem(o.Data.ID))localStorage.setItem(o.Data.ID,JSON.stringify([o.Data]));else{const a=JSON.parse(localStorage.getItem(o.Data.ID));a.push(o.Data),localStorage.setItem(o.Data.ID,JSON.stringify(a))}this.data.Expenses.push(o.Data)})}showCloseModal(){this.matDialog.open(O,{data:{VisitorMandatory:this.data.VisitorMandatory,modalConfig:this.modalConfig,textareaRow:"4"}}).afterClosed().subscribe(o=>{o&&(this.Visitors=o.Data.Visitors,this.Notes=o.Data.Note,void 0===this.Visitors&&(this.Visitors=0),this.CloseRegister())})}CloseRegister(){this.obj.ID=this.data.Session.ID,this.obj.RegisterID=this.data.Register.RegisterID,this.obj.UserID=this.data.Register.UserId,this.obj.Start=this.data.Register.Start,this.obj.End=this.data.Register.End,this.obj.StartTime=this.FormData.StartTime,this.obj.EndTime=this.FormData.EndTime,this.obj.InvoiceDateTypeID=this.FormData.InvoiceDateTypeID,this.obj.Note=this.Notes,this.obj.Visitors=this.Visitors,this.obj.Offset=this.FormData.Offset,this.obj.Sales=this.data.Register.Sales,this.obj.Tax=this.data.Register.Tax,this.obj.Invoice_Count=this.data.Register.Invoice_Count,this.obj.Taxable=this.data.Register.Taxable,this.obj.TaxExempt=this.data.Register.TaxExempt,this.obj.LastNumber=this.data.Register.LastNumber,this.httpService.post("/API/Shift/SaveRegister",JSON.stringify({Session:this.obj,Note:this.Notes,Expenses:this.data.Expenses,Payments:this.data.Payments,Denominations:this.data.Denominations,Visitors:this.Visitors,Number:this.data.Number})).subscribe(o=>{this.router.navigate(["/menu/Shift/Main/Previous_Shift/Register_Shift_Detail",{ID:o.ID}])},o=>this.toaster.error(o,g.n.Error))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.O),t.Y36(u.gz),t.Y36(u.F0),t.Y36(m.uw),t.Y36(v._W))},n.\u0275cmp=t.Xpm({type:n,selectors:[["POS-register-shift-FormData"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],[1,"btn","btn-outline-secondary",3,"click"],["class","btn btn-success ml-4","title","Register Note",3,"click",4,"ngIf"],[1,"bg-white",3,"submit"],["myForm","ngForm"],[1,"container-fluid","bg-light-gray","py-4"],[1,"card"],[1,"card-body","table-sm","table-borderless"],[1,"row"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"col-md"],[1,"form-label-group",3,"ngClass"],["id","outletOrder","bindLabel","Name","bindValue","ID","placeholder","Outlet","name","Outlet","required","",1,"center-text","tall",3,"items","ngModel","ngModelChange"],["outlet","ngModel"],["for","outletOrder",2,"z-index","1049"],["id","Cashier","bindLabel","LoginID","bindValue","ID","placeholder","Cashier Name","name","Cashier",1,"center-text","tall",3,"items","ngModel","ngModelChange"],["for","Cashier",2,"z-index","1049"],[1,"col-sm-6"],[1,"form-group"],["for","Start",1,"font-weight-bold","mb-3"],["name","From",3,"date","dateChange"],[3,"ngModel","timeOnly","ngModelOptions","ngModelChange"],["name","End",3,"date","dateChange"],["class","container-fluid bg-light-gray",4,"ngIf"],["title","Register Note",1,"btn","btn-success","ml-4",3,"click"],[1,"container-fluid","bg-light-gray"],["class","row",4,"ngIf"],["class","row no-gutters",4,"ngIf"],[1,"row","no-gutters"],["class","col-6",4,"ngIf"],["class","col-3",4,"ngIf"],["class","card",4,"ngIf"],[1,"col-3"],[1,"card-header"],[1,"text-center"],["aria-hidden","true",1,"fas","fa-map-marker-alt"],[1,"card-body"],[1,"text-center","font-weight-normal","h5"],[1,"col-2"],[1,"far","fa-calendar-alt","mr-4"],[1,"h5","text-center","font-weight-normal"],[1,"fas","fa-file-invoice","mr-4"],[1,"card-header","px-0"],[1,"fas","fa-cart-arrow-down","mr-4"],[1,"card","w-100","mx-7"],[1,"col-12"],["class","table table-bordered border-light-gray",4,"ngIf"],[1,"table","table-bordered","border-light-gray"],[1,"table-light"],[1,"border-right",2,"width","150px"],[1,"border-right","text-right","pr-10",2,"width","150px"],[1,"text-right","pr-10",2,"width","125px"],[1,"border-left","text-right","pr-10"],[4,"ngFor","ngForOf"],[1,"text-right","pr-10"],[3,"innerHTML"],[1,"text-right","pr-10","font-weight-bold"],["type","text","autoNum","",1,"form-control","text-right",3,"ngModel","disabled","ngModelChange","keyup"],["type","text","autoNum","",1,"form-control","text-right",3,"ngModel","keyup","ngModelChange"],["type","text",1,"form-control","text-right",3,"ngModel","ngModelChange"],[1,"col-sm"],[1,"card-header","d-flex","justify-content-between"],[1,"title","col"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["class","card-body",4,"ngIf"],["class","table table-bordered",4,"ngIf"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-right",2,"width","15px"],[1,"border-right"],[1,"text-right","border-right",2,"width","120px"],[4,"ngIf"],[1,"text-right"],[1,"fa","fa-times","fa-lg","text-danger",2,"cursor","pointer",3,"click"],[1,"card","w-100"],[1,"card-header",3,"click"],[1,"title"],[1,"border-right","text-right",2,"width","70px"],[1,"border-right","text-right",2,"width","140px"],["colspan","2",1,"text-right"],[1,"text-right","pr-8","font-weight-bold"],[1,"font-weight-bold"],["type","text","autoNum","",1,"form-control","text-right",3,"ngModel","ngModelChange","keyup"],[1,"text-right","pr-8"],[1,"col-6"],[1,"card","mr-5"],[1,"card-header",3,"ngClass"],[1,"title","d-inline-block"],[1,"px-5","py-2","border","border-info","rounded","float-right","d-inline-block","pointer",3,"click"],[1,"card","ml-5"],[1,"text-right","border-right",2,"width","20px"],[1,"border-right",2,"width","200px"],["class","border-right","style","width: 85px;",4,"ngIf"],[1,"border-right",2,"width","30px"],[1,"text-right","border-right",2,"width","30px"],[1,"text-right","border-right",2,"width","60px"],["colspan","4"],[1,"text-right","font-weight-bold"],[1,"border-right",2,"width","85px"],[2,"color","blue",3,"href"],[1,"text-right",3,"ngClass"],[1,"border-right",2,"width","20px"],["target","_blank",2,"color","blue",3,"href"],["class","text-right border-right",4,"ngFor","ngForOf"],["colspan","3",1,"text-right"],["class","text-right",4,"ngFor","ngForOf"],[1,"text-right","border-right"],["target","_blank",3,"href"],["colspan","3"],[1,"card","mx-5"],[1,"table-sm","table-borderless"],[1,"sep"],[1,"border-right","text-right"]],template:function(e,o){1&e&&t.YNc(0,vi,60,25,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data&&o.FormData)},directives:[s.O5,I.p,l._Y,l.JL,l.F,s.mk,C.w9,l.Q7,l.JJ,l.On,D.QB,V.f,s.sg,l.Fj,T.b],pipes:[s.JJ,f.qU,s.uU,f.$k,f.cU],styles:["datepicker[_ngcontent-%COMP%] mat-form-field {\n padding-right: 0 !important;\n background: white;\n width: 100% !important;\n}\ndatepicker[_ngcontent-%COMP%] .mat-form-field-flex {\n padding-top: 2px;\n height: 39px;\n border: 1px solid #dddddd;\n}\ndatepicker[_ngcontent-%COMP%] .mat-form-field-infix {\n border: none !important;\n top: 5px;\n}\ndatepicker[_ngcontent-%COMP%] .mat-form-field-infix input {\n font-size: 14px;\n color: black;\n padding-left: 5px;\n}\ndatepicker[_ngcontent-%COMP%] .mat-form-field-suffix {\n left: -128px;\n top: 2px;\n}\ndatepicker[_ngcontent-%COMP%] .mat-form-field-suffix .mat-button-wrapper {\n color: black;\n}\ndatepicker[_ngcontent-%COMP%] .mat-form-field-suffix > mat-datepicker-toggle > button {\n display: none;\n}\ndatepicker[_ngcontent-%COMP%] .mat-form-field-underline {\n display: none;\n}\ndatepicker.date-warnings[_ngcontent-%COMP%] .mat-form-field-flex {\n background: repeating-linear-gradient(-60deg, #FCF3CF, #FCF3CF 15px, #F9E79F 15px, #F9E79F 30px) !important;\n}"]}),n})()},{path:"",redirectTo:"Main/My_Shift",pathMatch:"full"}];let bi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.Bz.forChild(qi)],u.Bz]}),n})();var Ci=d(3721),Si=d(2605);let Ii=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[I.R,s.ez,f.dr,bi,l.u5,m.Is,E.TU,l.UX,Ci.y,x.d,C.A0,H.X,D.ZU,un,V._8,Si.Nh]]}),n})()},3721:(Q,b,d)=>{d.d(b,{y:()=>C});var l=d(5427),s=d(6019),u=d(3668);let C=(()=>{class p{}return p.\u0275fac=function(c){return new(c||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({providers:[l.b2],imports:[[s.ez]]}),p})()}}]);