dealpos 12.1.9 → 12.2.0

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 (40) hide show
  1. package/POS/{2750.3fc6bbae3b59f720.js → 2750.11df050d2f68b9a0.js} +1 -1
  2. package/POS/2791.4aa1288e3467315f.js +1 -0
  3. package/POS/3194.c8c221d41709724d.js +1 -0
  4. package/POS/3515.492839b4d94e9304.js +1 -0
  5. package/POS/3669.fc09b8054b66c8db.js +1 -0
  6. package/POS/3769.8d7432fb8cc840f2.js +1 -0
  7. package/POS/4295.914c28066b1064ec.js +1 -0
  8. package/POS/4750.c185d9276bdcfa42.js +1 -0
  9. package/POS/500.fcc2621e248071a8.js +1 -0
  10. package/POS/5189.ff29c1146f20713d.js +1 -0
  11. package/POS/6303.5c8b782243fcf37f.js +1 -0
  12. package/POS/6756.0a15de07894beb36.js +1 -0
  13. package/POS/7149.60eb4035778fab58.js +1 -0
  14. package/POS/7298.d1a500a7c8b4dddc.js +1 -0
  15. package/POS/7516.481c1df6180e492c.js +1 -0
  16. package/POS/{8126.30f5d9d237e2617c.js → 8126.18e6355f62398a56.js} +1 -1
  17. package/POS/8761.d00f5e9ef6adc05a.js +1 -0
  18. package/POS/9757.067b3672802ca2cb.js +1 -0
  19. package/POS/common.f0bed49901d1e0ca.js +1 -0
  20. package/POS/index.html +2 -2
  21. package/POS/{main.2e8e60f0b10c9cde.js → main.80c4205f93cb339c.js} +1 -1
  22. package/POS/runtime.eab2410730b1efa3.js +1 -0
  23. package/package.json +1 -1
  24. package/POS/2791.8845e2d6bc61a219.js +0 -1
  25. package/POS/3194.cef9dcb05c3f8254.js +0 -1
  26. package/POS/3515.98e1071b14b0a1a0.js +0 -1
  27. package/POS/3669.0747d61951214415.js +0 -1
  28. package/POS/3769.42454fa005576e7f.js +0 -1
  29. package/POS/4750.06edc49cf7e9afba.js +0 -1
  30. package/POS/500.e0f6fee64e4c145c.js +0 -1
  31. package/POS/7298.f1a28ba7ee735d1c.js +0 -1
  32. package/POS/7516.3196d4256639fb66.js +0 -1
  33. package/POS/8565.95ce051dcb29df20.js +0 -1
  34. package/POS/8761.2cf23b9d9e0eff9e.js +0 -1
  35. package/POS/9443.4cf1b52e7242ffb7.js +0 -1
  36. package/POS/9633.dcafa1b5f6a78c5f.js +0 -1
  37. package/POS/9757.d4575d6c6c715b5d.js +0 -1
  38. package/POS/9907.3f2affb24c359e75.js +0 -1
  39. package/POS/common.db13bc8707fc8e7a.js +0 -1
  40. package/POS/runtime.daa9a211abe42db0.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[2750],{72750:(L,M,s)=>{s.r(M),s.d(M,{FulfillmentModule:()=>Ga});var r=s(81180),p=s(36895),c=s(24006),C=s(88796),q=s(58393),T=s(98085),Z=s(30273),x=s(9116),A=s(15861),D=s(4077),d=s(96700),_=s(67327),f=s(39300),b=s(63900),h=s(65412),g=s(42046),t=s(94650),u=s(63165);let y=(()=>{class n{constructor(e,o){(0,r.Z)(this,"dialogRef",void 0),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"config",void 0),(0,r.Z)(this,"state",void 0),this.dialogRef=e,this.data=o,this.config=new g.O,this.state=o.state,this.config.title=o.title,this.config.customWidth="400px"}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-modal-confirm-shipping"]],decls:4,vars:2,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container-fluid",2,"font-size","16px"]],template:function(e,o){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return o.dialogRef.close("confirm")})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t.TgZ(1,"content")(2,"div",1),t._uU(3),t.qZA()()()),2&e&&(t.Q6J("config",o.config),t.xp6(3),t.hij(" Are you sure you want to ",0==o.state||1==o.state?"pack":"ship"," this product(s)? "))},dependencies:[u.M]})),n})(),k=(()=>{class n{constructor(e,o){(0,r.Z)(this,"dialogRef",void 0),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"config",void 0),(0,r.Z)(this,"users",[]),(0,r.Z)(this,"userID",void 0),this.dialogRef=e,this.data=o,this.config=new g.O,this.config.title="Assign Pick to?",this.users=o.users,console.log(this.users)}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-modal-assign-user"]],decls:4,vars:3,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container-fluid",2,"width","300px"],["bindLabel","Value","appendTo","body","bindValue","Key","placeholder","Choose a user",3,"ngModel","items","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return o.dialogRef.close(o.userID)})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t.TgZ(1,"content")(2,"div",1)(3,"ng-select",2),t.NdJ("ngModelChange",function(i){return o.userID=i}),t.qZA()()()()),2&e&&(t.Q6J("config",o.config),t.xp6(3),t.Q6J("ngModel",o.userID)("items",o.users))},dependencies:[c.JJ,c.On,C.w9,u.M]})),n})();var I=s(89156),O=s(97185),B=s(11481),J=s(10266),Q=s(93669);function ot(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.delete(a.data.Data.ID))}),t._UZ(1,"i",9),t._uU(2,"Delete "),t.qZA()}}function it(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openShipDialog())}),t._UZ(1,"i",11),t._uU(2,"Pack "),t.qZA()}}function lt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openAssignUserDialog())}),t._UZ(1,"i",12),t._uU(2,"Assign To "),t.qZA()}}function rt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openShipDialog())}),t._UZ(1,"i",13),t._uU(2,"Ship "),t.qZA()}}const ct=function(){return["/menu/Fulfillment/Delivery/All/Summary"]},Y=function(n){return{ID:n}};function pt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Fulfillment"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td")(6,"a",24),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(6),t.Q6J("routerLink",t.DdM(3,ct))("queryParams",t.VKq(4,Y,e.data.Data.SalesOrderID)),t.xp6(1),t.hij("Send from ",e.data.Data.TotalCreatedPickList," locations")}}function st(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td")(6,"a",26),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(4);t.xp6(6),t.Q6J("queryParams",t.VKq(2,Y,null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.ID)),t.xp6(1),t.hij(" ",null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Name," ")}}function _t(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Mobile)}}function mt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Email"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Email)}}function ut(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.City)}}function dt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Address)}}function gt(n,l){if(1&n&&(t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",25),t._uU(4,"Customer "),t.qZA()(),t.TgZ(5,"div",18)(6,"table",19),t.YNc(7,st,8,4,"tr",20),t.YNc(8,_t,7,1,"tr",20),t.YNc(9,mt,7,1,"tr",20),t.YNc(10,ut,7,1,"tr",20),t.YNc(11,dt,7,1,"tr",20),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(7),t.Q6J("ngIf",e.data.Data.Customer.Name),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.Mobile),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.Email),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.City),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.Address)}}function ft(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.Name)}}function ht(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.Phone)}}function xt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.City)}}function Zt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.Address)}}function Ct(n,l){if(1&n&&(t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",25),t._uU(4,"Recipient "),t.qZA()(),t.TgZ(5,"div",18)(6,"table",19),t.YNc(7,ft,7,1,"tr",20),t.YNc(8,ht,7,1,"tr",20),t.YNc(9,xt,7,1,"tr",20),t.YNc(10,Zt,7,1,"tr",20),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(7),t.Q6J("ngIf",e.data.Data.Recipient.Name),t.xp6(1),t.Q6J("ngIf",e.data.Data.Recipient.Phone),t.xp6(1),t.Q6J("ngIf",e.data.Data.Recipient.City),t.xp6(1),t.Q6J("ngIf",e.data.Data.Recipient.Address)}}function Tt(n,l){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15)(2,"div",16)(3,"h2"),t._UZ(4,"i",17),t._uU(5,"Fulfillment "),t.qZA()(),t.TgZ(6,"div",18)(7,"table",19)(8,"tr")(9,"th"),t._uU(10,"Outlet"),t.qZA(),t.TgZ(11,"td"),t._uU(12,":"),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA()(),t.YNc(15,pt,8,6,"tr",20),t.TgZ(16,"tr")(17,"th"),t._uU(18,"Status"),t.qZA(),t.TgZ(19,"td"),t._uU(20,":"),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA()()()()(),t.TgZ(23,"div",15)(24,"div",16)(25,"h2"),t._UZ(26,"i",21),t._uU(27,"Order "),t.qZA()(),t.TgZ(28,"div",18)(29,"table",19)(30,"tr")(31,"th"),t._uU(32,"Outlet"),t.qZA(),t.TgZ(33,"td"),t._uU(34,":"),t.qZA(),t.TgZ(35,"td"),t._uU(36),t.qZA()(),t.TgZ(37,"tr")(38,"th"),t._uU(39,"Invoice"),t.qZA(),t.TgZ(40,"td"),t._uU(41,":"),t.qZA(),t.TgZ(42,"td")(43,"a",22),t._uU(44),t.qZA()()(),t.TgZ(45,"tr")(46,"th"),t._uU(47,"Date"),t.qZA(),t.TgZ(48,"td"),t._uU(49,":"),t.qZA(),t.TgZ(50,"td"),t._uU(51),t.ALo(52,"date"),t.qZA()()()()(),t.YNc(53,gt,12,5,"div",23),t.YNc(54,Ct,11,4,"div",23),t.qZA()),2&n){const e=t.oxw(2);t.xp6(14),t.hij(" ",e.data.Data.AssignOutlet," "),t.xp6(1),t.Q6J("ngIf",e.data.Data.TotalCreatedPickList>1),t.xp6(7),t.hij(" ",e.data.Data.StateString," "),t.xp6(14),t.hij(" ",e.data.Data.SourceOutlet," "),t.xp6(7),t.Q6J("queryParams",t.VKq(12,Y,e.data.Data.InvoiceID)),t.xp6(1),t.Oqu(e.data.Data.Number),t.xp6(7),t.hij(" ",t.xi3(52,9,e.data.Data.InvoiceDate,"dd MMM yyyy")," "),t.xp6(2),t.Q6J("ngIf",null==e.data.Data?null:e.data.Data.Customer),t.xp6(1),t.Q6J("ngIf",null==e.data.Data?null:e.data.Data.Recipient)}}function Dt(n,l){if(1&n&&(t.TgZ(0,"small",36),t._uU(1),t.ALo(2,"sum"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" (Quantity: ",t.xi3(2,1,null==e.data?null:e.data.Data.Items,"Quantity"),") ")}}function At(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"img",40),t.NdJ("click",function(a){t.CHM(e);const i=t.oxw().$implicit,m=t.oxw(3);return t.KtG(m.openBigPicture(i,a))}),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("src",e.Image,t.LSH)}}function vt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"div",37),t.YNc(3,At,1,1,"img",38),t.TgZ(4,"div")(5,"a",39),t._uU(6),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.qZA()()()(),t.TgZ(9,"td"),t._uU(10),t.qZA()()),2&n){const e=l.$implicit;t.xp6(3),t.Q6J("ngIf",e.Image),t.xp6(2),t.Q6J("queryParams",t.VKq(5,Y,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity)}}function bt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",41),t._uU(4,"Packing Slip "),t.qZA()(),t.TgZ(5,"div",18)(6,"a",42),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.goToDocumentUrl(null==a.data?null:a.data.Data.DocumentURL))}),t._uU(7),t.qZA()()()}if(2&n){const e=t.oxw(3);t.xp6(7),t.hij(" ",null==e.data?null:e.data.Data.DocumentURL," ")}}function It(n,l){if(1&n&&(t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",43),t._uU(4,"Note "),t.qZA()(),t._UZ(5,"div",44),t.qZA()),2&n){const e=t.oxw(3);t.xp6(5),t.Q6J("innerHTML",e.data.Data.Note,t.oJD)}}function Pt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Assigned"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(4),t.Oqu(e.data.Data.AssignTo),t.xp6(2),t.Oqu(t.xi3(7,3,e.data.Data.Assigned,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Oqu(e.data.Data.assignedDuration)}}function yt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Packed"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(4),t.Oqu(e.data.Data.PackedBy),t.xp6(2),t.Oqu(t.xi3(7,3,e.data.Data.Packed,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Oqu(e.data.Data.packedDuration)}}function qt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Shipped"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(4),t.Oqu(e.data.Data.ShippedBy),t.xp6(2),t.Oqu(t.xi3(7,3,e.data.Data.Shipped,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Oqu(e.data.Data.shippedDuration)}}function Ft(n,l){if(1&n&&(t.TgZ(0,"div",27)(1,"div",15)(2,"div",16)(3,"h2"),t._UZ(4,"i",28),t._uU(5,"Products "),t.YNc(6,Dt,3,4,"small",29),t.qZA()(),t.TgZ(7,"div",18)(8,"table",30)(9,"thead",31)(10,"tr")(11,"th"),t._uU(12,"Name"),t.qZA(),t.TgZ(13,"th",32),t._uU(14,"Qty"),t.qZA()()(),t.TgZ(15,"tbody"),t.YNc(16,vt,11,7,"tr",33),t.qZA()()()(),t.YNc(17,bt,8,1,"div",23),t.YNc(18,It,6,1,"div",23),t.TgZ(19,"div",15)(20,"div",16)(21,"h2"),t._UZ(22,"i",34),t._uU(23,"History "),t.qZA()(),t.TgZ(24,"div",18)(25,"table",35)(26,"thead",31)(27,"tr")(28,"th"),t._uU(29,"State"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"User"),t.qZA(),t.TgZ(32,"th"),t._uU(33,"Date"),t.qZA(),t.TgZ(34,"th"),t._uU(35,"Duration"),t.qZA()()(),t.TgZ(36,"tbody")(37,"tr")(38,"td"),t._uU(39,"Created"),t.qZA(),t.TgZ(40,"td"),t._uU(41),t.qZA(),t.TgZ(42,"td"),t._uU(43),t.ALo(44,"date"),t.qZA(),t._UZ(45,"td"),t.qZA(),t.YNc(46,Pt,10,6,"tr",20),t.YNc(47,yt,10,6,"tr",20),t.YNc(48,qt,10,6,"tr",20),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.data.Data.Items.length>1),t.xp6(10),t.Q6J("ngForOf",e.data.Data.Items),t.xp6(1),t.Q6J("ngIf",null==e.data?null:e.data.Data.DocumentURL),t.xp6(1),t.Q6J("ngIf",null==e.data?null:e.data.Data.Note),t.xp6(23),t.Oqu(e.data.Data.Creator),t.xp6(2),t.Oqu(t.xi3(44,9,e.data.Data.Created,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Q6J("ngIf",e.data.Data.AssignTo),t.xp6(1),t.Q6J("ngIf",e.data.Data.PackedBy),t.xp6(1),t.Q6J("ngIf",e.data.Data.ShippedBy)}}function Ut(n,l){if(1&n&&(t.TgZ(0,"mainpanel-cmp",1)(1,"actions"),t.YNc(2,ot,3,0,"button",2),t.YNc(3,it,3,0,"button",3),t.YNc(4,lt,3,0,"button",3),t.YNc(5,rt,3,0,"button",3),t.qZA(),t.TgZ(6,"content")(7,"div",4)(8,"div",5),t.YNc(9,Tt,55,14,"div",6),t.YNc(10,Ft,49,12,"div",7),t.qZA()()()()),2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf",e.data.Data.RoleDelete),t.xp6(1),t.Q6J("ngIf",(0==e.data.Data.State||1==e.data.Data.State)&&e.data.Data.RoleDelivery),t.xp6(1),t.Q6J("ngIf",0==e.data.Data.State&&e.data.Data.RoleDelivery),t.xp6(1),t.Q6J("ngIf",2==e.data.Data.State&&e.data.Data.RoleDelivery),t.xp6(4),t.Q6J("ngIf",e.data.Data),t.xp6(1),t.Q6J("ngIf",e.data.Data)}}const Mt=BiggerPicture({target:document.body});let kt=(()=>{class n extends D.n{constructor(e,o,a,i,m,v,P){super(e,"Fulfillment/GetPickListDetail",null,i,o),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"title",void 0),(0,r.Z)(this,"sanitizer",void 0),(0,r.Z)(this,"location",void 0),(0,r.Z)(this,"users",void 0),(0,r.Z)(this,"urlPdf",void 0),(0,r.Z)(this,"stateID",void 0),this.matDialog=a,this.toastr=i,this.title=m,this.sanitizer=v,this.location=P}preGetList(){this.pageData.Filter=this.route.snapshot.queryParams}postInit(e){this.menuData.H=`${e.Data.PageTitleState} #${e.Data.Number}`;const a=this.title.getTitle().split(" | ")[0];this.title.setTitle(`${a} | ${e.Data.PageTitleState} List Info`),this.cleanURL(e.Data.DocumentURL),this.stateID=e.Data.State,this.getStateDuration(),this._httpService.post("/api/Fulfillment/GetUserListToAssign",JSON.stringify({OutletID:e.Data.OutletID})).subscribe({next:i=>{this.users=i,console.log(this.users)}})}delete(e){let o="Are you sure you want to delete selected record/s?",a="/api/Fulfillment/RemovePickListByID";2==this.stateID&&(o="This will also delete the outbound logistic for this order, your inventory will be returned \n"+o,a="/api/Fulfillment/RemoveShipByID"),0!=confirm(o)&&this._httpService.post(a,JSON.stringify({ID:e})).subscribe({next:i=>{this.toastr.success(i.Message,d.n.Success),this.location.back()}})}openShipDialog(){const e=0==this.data.Data.State||1==this.data.Data.State?"PickToPack":"PackToShip";this.matDialog.open(y,{data:{state:this.data.Data.State,title:`Confirm ${this.data.Data.PageTitleState}`}}).afterClosed().pipe((0,f.h)(o=>_.gT.IsNotEmpty(o))).subscribe(()=>{this.postData(`Fulfillment/${e}`,this.data.Data)})}openAssignUserDialog(){this.matDialog.open(k,{data:{users:this.users}}).afterClosed().pipe((0,f.h)(e=>_.gT.IsNotEmpty(e)),(0,b.w)(e=>this._httpService.post("/api/Fulfillment/PickToAssign",{ID:this.data.Data.ID,AssignTo:e}))).subscribe(e=>{this.toastr.success(e.Message,d.n.Success)})}openBigPicture(e,o){return(0,A.Z)(function*(){o.preventDefault();try{const a=yield(0,_.FI)(e.Image);Mt.open({items:[a],intro:"fadeup"})}catch(a){alert(a)}})()}cleanURL(e){this.urlPdf=this.sanitizer.bypassSecurityTrustUrl(e)}goToDocumentUrl(e){e&&window.open(e,"_blank")}getState(){let e="Picked";return e=1==this.data.Data.State?"Packed":"Shipped",e}getStateDuration(){const e=this.data.Data?.Packed!==_.gT.MinDate?new Date(this.data.Data?.Packed):null,o=this.data.Data?.Shipped!==_.gT.MinDate?new Date(this.data.Data?.Shipped):null,a=this.data.Data?.Assigned!==_.gT.MinDate?new Date(this.data.Data?.Assigned):null,i=new Date(this.data.Data?.Created);if(_.gT.IsNotEmpty(a)){let m=_.gT.differentInDays(i,a),v=_.gT.hoursDiff(i,a),P=_.gT.minutesDiff(i,a);this.data.Data.assignedDuration=this.getDifferentDateFormat(m,v,P)}if(_.gT.IsNotEmpty(e)&&_.gT.IsEmpty(a)){let m=_.gT.differentInDays(i,e),v=_.gT.hoursDiff(i,e),P=_.gT.minutesDiff(i,e);this.data.Data.packedDuration=this.getDifferentDateFormat(m,v,P)}if(_.gT.IsNotEmpty(e)&&_.gT.IsNotEmpty(a)){let m=_.gT.differentInDays(a,e),v=_.gT.hoursDiff(a,e),P=_.gT.minutesDiff(a,e);this.data.Data.packedDuration=this.getDifferentDateFormat(m,v,P)}if(_.gT.IsNotEmpty(o)){let m=_.gT.differentInDays(e,o),v=_.gT.hoursDiff(e,o),P=_.gT.minutesDiff(e,o);this.data.Data.shippedDuration=this.getDifferentDateFormat(m,v,P)}}getDifferentDateFormat(e,o,a){let i;return e>=1?(i=`${e} days`,i):o>=1?(i=`${o} hours`,i):(i=`${a} minutes`,i)}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(x.gz),t.Y36(h.uw),t.Y36(O._W),t.Y36(B.Dx),t.Y36(B.H7),t.Y36(p.Ye))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-all-info"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["class","btn btn-outline-secondary ms-5",3,"click",4,"ngIf"],[1,"container-fluid","card-container","mt-5"],[1,"row"],["class","col-sm-4",4,"ngIf"],["class","col-sm-8",4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","ms-5",3,"click"],[1,"fa-solid","fa-box","me-3"],[1,"fa-solid","fa-user","me-3"],[1,"fa-solid","fa-truck","me-3"],[1,"col-sm-4"],[1,"card"],[1,"card-header"],[1,"fa-solid","fa-truck","me-5"],[1,"card-body"],[1,"table-sm","table-borderless"],[4,"ngIf"],["aria-hidden","true",1,"fa-file-alt","fas","me-5"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info","target","_blank",1,"ps-0",3,"queryParams"],["class","card",4,"ngIf"],["target","_blank",1,"ps-0",3,"routerLink","queryParams"],[1,"fa-solid","fa-address-card","me-5"],["routerLink","/menu/Contacts/Contact/Customers/Info","target","_blank",1,"ps-0",3,"queryParams"],[1,"col-sm-8"],[1,"fa-solid","fa-box","me-5"],["class","text-muted h6",4,"ngIf"],[1,"table"],[1,"thead-light"],[2,"width","60px"],[4,"ngFor","ngForOf"],[1,"fa-solid","fa-clock-rotate-left","me-5"],[1,"table","table-bordered"],[1,"text-muted","h6"],[1,"d-flex","align-items-center"],["class","me-5","style","width:80px; height: 80px;","matTooltipPosition","above","matTooltip","Click to zoom",3,"src","click",4,"ngIf"],["routerLink","/menu/Products/Catalog/Variants/Info","target","_blank",3,"queryParams"],["matTooltipPosition","above","matTooltip","Click to zoom",1,"me-5",2,"width","80px","height","80px",3,"src","click"],[1,"fa-solid","fa-file","me-5"],[1,"documentURL",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-note-sticky","me-5"],[1,"card-body",3,"innerHTML"]],template:function(e,o){1&e&&t.YNc(0,Ut,11,9,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,x.rH,Z.p,J.gM,p.uU,Q.qU]})),n})();var N=s(17554),F=s(24424),U=s(51161),S=s(3077);function Ot(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",28),t._uU(2," Export"),t.qZA()}}function Nt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",30),t._uU(2,"Delete "),t.qZA()}}function wt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"div")(2,"h6"),t._uU(3,"Status"),t.qZA(),t.TgZ(4,"ng-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.pageData.Filter.StateID=a)}),t.qZA()(),t.TgZ(5,"div")(6,"h6"),t._uU(7,"Page Size"),t.qZA(),t.TgZ(8,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("items",e.pageData.Options.States)("ngModel",e.pageData.Filter.StateID),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount)}}function Jt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"th",34)(1,"input",35),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()()}}function St(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"td")(1,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.selected=a)}),t.qZA()()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.selected)}}const Et=function(){return["/menu/Fulfillment/Delivery/All/Info"]},W=function(n){return{ID:n}};function Lt(n,l){if(1&n&&(t.TgZ(0,"a",39),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.DdM(3,Et))("queryParams",t.VKq(4,W,e.ID)),t.xp6(1),t.Oqu(e.Number)}}function Qt(n,l){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.Number)}}const Yt=function(){return["/print/OutDelivery"]},Kt=function(n,l){return{ID:n,Template:l}};function Ht(n,l){if(1&n&&(t.TgZ(0,"td")(1,"a",41),t._UZ(2,"i",42),t.qZA()()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("routerLink",t.DdM(2,Yt))("queryParams",t.WLB(3,Kt,e.ID,e.TemplateID))}}const Gt=function(){return["/menu/Contacts/Contact/Customers/Info"]},Rt=function(n,l,e){return{"text-success":n,"text-warning":l,"text-danger":e}};function Vt(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,St,2,1,"td",36),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",37),t.YNc(9,Lt,2,6,"a",38),t.YNc(10,Qt,2,1,"span",36),t.qZA(),t.TgZ(11,"td")(12,"a",39),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA(),t.TgZ(20,"td"),t._uU(21),t.qZA(),t.YNc(22,Ht,3,6,"td",36),t.qZA()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",o.role.fulfillment.Delete),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("ngIf",o.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",!o.role.fulfillment.Edit),t.xp6(2),t.Q6J("routerLink",t.DdM(21,Gt))("queryParams",t.VKq(22,W,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,15,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,18,e.Created,"HH:mm")),t.xp6(2),t.Tol(t.kEZ(24,Rt,"Ship"==e.DeliveryState,"Pack"==e.DeliveryState,"Pick"==e.DeliveryState)),t.xp6(1),t.hij(" ",e.DeliveryState,""),t.xp6(1),t.Q6J("ngIf","Ship"==e.DeliveryState)}}function jt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Ot,3,0,"button",2),t.YNc(3,Nt,3,0,"a",3),t.qZA(),t.TgZ(4,"filters")(5,"div",4)(6,"div",5)(7,"div")(8,"h6"),t._uU(9,"Outlet"),t.qZA(),t.TgZ(10,"ng-select",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(11,"div")(12,"h6"),t._uU(13,"Order"),t.qZA(),t.TgZ(14,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(15,"div")(16,"h6"),t._uU(17,"Customer"),t.qZA(),t.TgZ(18,"autocompleteV2",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(19,"div")(20,"h6"),t._uU(21,"From"),t.qZA(),t.TgZ(22,"datepicker",9),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(23,"div")(24,"h6"),t._uU(25,"To"),t.qZA(),t.TgZ(26,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()(),t.YNc(27,wt,9,3,"div",11),t.qZA(),t.TgZ(28,"a",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.hideMore=!a.hideMore)}),t._uU(29),t._UZ(30,"i",13),t.qZA()(),t.TgZ(31,"content")(32,"div",14)(33,"div",15)(34,"table",16)(35,"thead",17)(36,"tr",18),t.YNc(37,Jt,2,0,"th",19),t.TgZ(38,"th",20),t._uU(39,"Outlet"),t.qZA(),t.TgZ(40,"th",20),t._uU(41,"Order"),t.qZA(),t.TgZ(42,"th",21),t._uU(43,"Number"),t.qZA(),t.TgZ(44,"th"),t._uU(45,"Customer"),t.qZA(),t.TgZ(46,"th",22),t._uU(47,"Created"),t.qZA(),t.TgZ(48,"th",22),t._uU(49,"Time"),t.qZA(),t.TgZ(50,"th",23),t._uU(51,"Status"),t.qZA(),t._UZ(52,"th",24),t.qZA()(),t.YNc(53,Vt,23,28,"tbody",25),t.qZA()(),t.TgZ(54,"POS-complex-pagination",26),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(7),t.Q6J("items",e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(1),t.Q6J("ngIf",!e.hideMore),t.xp6(2),t.hij("",e.hideMore?"More":"Less"," "),t.xp6(8),t.Q6J("ngIf",e.role.fulfillment.Delete),t.xp6(16),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let Bt=(()=>{class n extends D.n{constructor(e,o,a,i,m){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",o),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"hideMore",!0),this.csvConverter=a,this.role=i,this.matDialog=m}openExportModal(){this.matDialog.open(N.H,{data:{title:"All Fulfillment",exportTypes:[{ID:"FulfillmentExport/AllExport",Value:"Default",FileName:"All Fulfillment"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetPickListCount",pagination:!0}})}ngOnInit(){}getRedirectUrlInfo(e){let o;switch(e){case"Ship":o="/menu/Fulfillment/Delivery/Ship/Info";break;case"Pack":o="/menu/Fulfillment/Delivery/Pack/Info";break;case"Pick":o="/menu/Fulfillment/Delivery/Pick/Info"}return o}getDateCreated(e,o,a){return a!=_.gT.MinDate?a:o!=_.gT.MinDate?o:e}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(O._W),t.Y36(F.O),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-all"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary ms-5",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["id","more-filter","class","ms-6","container","",4,"ngIf"],[1,"more",3,"click"],[1,"fa-solid","fa-caret-down"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[2,"width","70px"],[2,"width","10px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPickListCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["value","Delete",1,"btn","btn-outline-secondary","ms-5",3,"click"],[1,"fa-solid","fa-trash","me-3"],["id","more-filter","container","",1,"ms-6"],["bindLabel","Value","bindValue","Key","placeholder","Choose an Status",3,"items","ngModel","ngModelChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[2,"width","14px"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams",4,"ngIf"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange"],["target","_blank","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-print"]],template:function(e,o){1&e&&t.YNc(0,jt,55,19,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.Fj,c.Wl,c.JJ,c.On,x.rH,Z.p,T.QB,C.w9,q.J,S.v,p.uU]})),n})();function Wt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/ListPackToShip","Are you sure you want to ship selected record/s?"))}),t._UZ(1,"i",25),t._uU(2,"Ship "),t.qZA()}}function $t(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",27),t._uU(2,"Delete "),t.qZA()}}function zt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",29),t._uU(2," Export"),t.qZA()}}function Xt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",32),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function te(n,l){if(1&n&&(t.TgZ(0,"th",30),t.YNc(1,Xt,1,0,"input",31),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.totalAccessWrite>1)}}function ee(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2).$implicit;return t.KtG(i.selected=a)}),t.qZA()}if(2&n){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.selected)}}function ne(n,l){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,ee,1,1,"input",36),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.Access_Write)}}const ae=function(){return["/menu/Fulfillment/Delivery/All/Info"]},$=function(n){return{ID:n}},oe=function(){return["/menu/Contacts/Contact/Customers/Info"]};function ie(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,ne,2,1,"td",33),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",34),t.TgZ(9,"a",35),t._uU(10),t.qZA()(),t.TgZ(11,"td")(12,"a",35),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",(o.role.fulfillment.Delete||o.role.fulfillment.Edit)&&o.showCheckboxAll),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(18,ae))("queryParams",t.VKq(19,$,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(21,oe))("queryParams",t.VKq(22,$,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,12,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,15,e.Packed,"HH:mm"))}}function le(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Wt,3,0,"a",2),t.YNc(3,$t,3,0,"a",3),t.YNc(4,zt,3,0,"button",4),t.qZA(),t.TgZ(5,"filters")(6,"div",5)(7,"div",6)(8,"div")(9,"h6"),t._uU(10,"Outlet"),t.qZA(),t.TgZ(11,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(12,"div")(13,"h6"),t._uU(14,"Order"),t.qZA(),t.TgZ(15,"ng-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(16,"div")(17,"h6"),t._uU(18,"Customer"),t.qZA(),t.TgZ(19,"autocompleteV2",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(20,"div")(21,"h6"),t._uU(22,"From"),t.qZA(),t.TgZ(23,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(24,"div")(25,"h6"),t._uU(26,"To"),t.qZA(),t.TgZ(27,"datepicker",11),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(28,"div")(29,"h6"),t._uU(30,"Page Size"),t.qZA(),t.TgZ(31,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(32,"content")(33,"div",13)(34,"div",14)(35,"table",15)(36,"thead",16)(37,"tr",17),t.YNc(38,te,2,1,"th",18),t.TgZ(39,"th",19),t._uU(40,"Outlet"),t.qZA(),t.TgZ(41,"th",19),t._uU(42,"Order"),t.qZA(),t.TgZ(43,"th",20),t._uU(44,"Number"),t.qZA(),t.TgZ(45,"th"),t._uU(46,"Customer"),t.qZA(),t.TgZ(47,"th",21),t._uU(48,"Created"),t.qZA(),t.TgZ(49,"th",21),t._uU(50,"Time"),t.qZA()()(),t.YNc(51,ie,20,24,"tbody",22),t.qZA()(),t.TgZ(52,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",(e.role.fulfillment.Delete||e.role.fulfillment.Edit)&&e.showCheckboxAll),t.xp6(13),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let re=(()=>{class n extends D.n{constructor(e,o,a,i,m){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"showCheckboxAll",void 0),(0,r.Z)(this,"totalAccessWrite",void 0),this.csvConverter=o,this.role=i,this.matDialog=m}openExportModal(){this.matDialog.open(N.H,{data:{title:"Pack",exportTypes:[{ID:"FulfillmentExport/PackExport",Value:"Default",FileName:"Pack"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetPackFulfillmentCount",pagination:!0}})}preInitList(){this.pageData.Filter.StateID=this.pageData.Options.States.find(e=>"Packed"==e.Value).Key}postInit(e){this.totalAccessWrite=0,e.Data.forEach(o=>{o.Access_Write&&(this.totalAccessWrite+=1)}),this.totalAccessWrite>0&&(this.showCheckboxAll=!0)}onSelectAllData(e){this.data.Data=this.data.Data.map(o=>(o.Access_Write&&(o.selected=e),o))}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(O._W),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-pack"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Ship","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPackFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Ship",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-truck","me-3"],["value","Delete",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,le,53,19,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.Fj,c.Wl,c.JJ,c.On,x.rH,Z.p,T.QB,C.w9,q.J,S.v,p.uU]})),n})();var ce=s(88651),pe=s(77579),H=s(18505),G=s(54004),se=s(71884),_e=s(78372),me=s(68675),z=s(39646),ue=s(97272);class de{constructor(l){(0,r.Z)(this,"ID",void 0),(0,r.Z)(this,"OrderID",void 0),(0,r.Z)(this,"OrderOutletID",void 0),(0,r.Z)(this,"DocumentURL",void 0),(0,r.Z)(this,"Note",void 0),(0,r.Z)(this,"Items",void 0),this.ID=l.ID,this.OrderID=l.OrderID,this.OrderOutletID=l.OutletID,this.DocumentURL=l.DocumentURL,this.Note=l.Note,this.Items=[],l.Items.filter(e=>e.Pick&&!e.Fulfillment).forEach(e=>{this.Items.push({ItemID:e.ItemID,OutletID:e.OutletID})})}}var ge=s(22414),X=s(54825);function fe(n,l){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"a",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.validate())}),t._uU(2,"Save"),t.qZA(),t.BQk()}}function he(n,l){1&n&&(t.TgZ(0,"div",5)(1,"div",17),t._uU(2," Outlet "),t.qZA(),t.TgZ(3,"div",18),t._uU(4," Date "),t.qZA(),t.TgZ(5,"div",19),t._uU(6," Number "),t.qZA()())}function xe(n,l){if(1&n&&(t.TgZ(0,"div",5)(1,"div",20),t._uU(2),t.ALo(3,"limitTo"),t.qZA(),t.TgZ(4,"div",21),t._uU(5),t.ALo(6,"date"),t.qZA(),t.TgZ(7,"div",22),t._uU(8),t.qZA()()),2&n){const e=l.item;t.xp6(2),t.hij(" ",t.xi3(3,3,e.Value.EntityName,25)," "),t.xp6(3),t.hij(" ",t.xi3(6,6,e.Value.Date,"dd MMM yyyy")," "),t.xp6(3),t.hij(" ",e.Value.Number," ")}}const R=function(n){return{ID:n}};function Ze(n,l){if(1&n&&(t.TgZ(0,"div",7)(1,"div",8)(2,"h2"),t._UZ(3,"i",23),t._uU(4,"Order "),t.qZA()(),t.TgZ(5,"div",10)(6,"table",24)(7,"tr")(8,"th"),t._uU(9,"Outlet"),t.qZA(),t.TgZ(10,"td"),t._uU(11,":"),t.qZA(),t.TgZ(12,"td"),t._uU(13),t.qZA()(),t.TgZ(14,"tr")(15,"th"),t._uU(16,"Invoice"),t.qZA(),t.TgZ(17,"td"),t._uU(18,":"),t.qZA(),t.TgZ(19,"td")(20,"a",25),t._uU(21),t.qZA()()(),t.TgZ(22,"tr")(23,"th"),t._uU(24,"Date"),t.qZA(),t.TgZ(25,"td"),t._uU(26,":"),t.qZA(),t.TgZ(27,"td"),t._uU(28),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(13),t.hij(" ",e.pickInfo.OutletName," "),t.xp6(7),t.Q6J("queryParams",t.VKq(4,R,e.pickInfo.InvoiceID)),t.xp6(1),t.Oqu(e.pickInfo.Number),t.xp6(7),t.hij(" ",e.pickInfo.InvoiceDate," ")}}const Ce=function(){return["/menu/Contacts/Contact/Customers/Info"]};function Te(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td")(6,"a",28),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(4);t.xp6(6),t.Q6J("routerLink",t.DdM(3,Ce))("queryParams",t.VKq(4,R,e.pickInfo.Customer.ID)),t.xp6(1),t.Oqu(e.pickInfo.Customer.Name)}}function De(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.Mobile)}}function Ae(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Email"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.Email)}}function ve(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.City)}}function be(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.Address)}}function Ie(n,l){if(1&n&&(t.TgZ(0,"table",24),t.YNc(1,Te,8,6,"tr",3),t.YNc(2,De,7,1,"tr",3),t.YNc(3,Ae,7,1,"tr",3),t.YNc(4,ve,7,1,"tr",3),t.YNc(5,be,7,1,"tr",3),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Name),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Mobile),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Email),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.City),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Address)}}function Pe(n,l){if(1&n&&(t.TgZ(0,"div",7)(1,"div",8)(2,"h2"),t._UZ(3,"i",26),t._uU(4,"Customer "),t.qZA()(),t.TgZ(5,"div",10),t.YNc(6,Ie,6,5,"table",27),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.pickInfo)}}function ye(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.recipientInfo.Name)}}function qe(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.recipientInfo.Phone)}}function Fe(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.recipientInfo.City)}}function Ue(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t._UZ(5,"td",29),t.qZA()),2&n){const e=t.oxw(4);t.xp6(5),t.Q6J("innerHTML",e.recipientInfo.Address,t.oJD)}}function Me(n,l){if(1&n&&(t.TgZ(0,"table",24),t.YNc(1,ye,7,1,"tr",3),t.YNc(2,qe,7,1,"tr",3),t.YNc(3,Fe,7,1,"tr",3),t.YNc(4,Ue,6,1,"tr",3),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.recipientInfo.Name),t.xp6(1),t.Q6J("ngIf",e.recipientInfo.Phone),t.xp6(1),t.Q6J("ngIf",e.recipientInfo.City),t.xp6(1),t.Q6J("ngIf",e.recipientInfo.Address)}}function ke(n,l){if(1&n&&(t.TgZ(0,"div",7)(1,"div",8)(2,"h2"),t._UZ(3,"i",26),t._uU(4,"Recipient "),t.qZA()(),t.TgZ(5,"div",10),t.YNc(6,Me,5,4,"table",27),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.pickInfo)}}function Oe(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"img",54),t.NdJ("click",function(a){t.CHM(e);const i=t.oxw().$implicit,m=t.oxw(3);return t.KtG(m.openBigPicture(i,a))}),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("src",e.Image,t.LSH)}}function Ne(n,l){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" Assigned to ",e.Fulfillment," ")}}function we(n,l){1&n&&(t.TgZ(0,"div",5)(1,"div",17),t._uU(2," Outlet "),t.qZA(),t.TgZ(3,"div",56),t._uU(4," Available "),t.TgZ(5,"span",57),t._uU(6,"The number of Physical Inventory at your Outlet"),t.qZA()(),t.TgZ(7,"div",56),t._uU(8," Allocated "),t.TgZ(9,"span",57),t._uU(10,"Inventory which is already reserved for customer's order"),t.qZA()(),t.TgZ(11,"div",56),t._uU(12," PickPack "),t.TgZ(13,"span",57),t._uU(14,"Inventory assigned from another outlets and needs to be packed"),t.qZA()(),t.TgZ(15,"div",56),t._uU(16," Nett Avail "),t.TgZ(17,"span",58),t._uU(18,"Total Nett Inventory (Available - PickPack + Inventory Delegated)"),t.qZA()()())}function Je(n,l){if(1&n&&(t.TgZ(0,"div",5)(1,"div",20),t._uU(2),t.ALo(3,"limitTo"),t.qZA(),t.TgZ(4,"div",59),t._uU(5),t.qZA(),t.TgZ(6,"div",59),t._uU(7),t.qZA(),t.TgZ(8,"div",59),t._uU(9),t.qZA(),t.TgZ(10,"div",59),t._uU(11),t.qZA()()),2&n){const e=l.item;t.xp6(2),t.hij(" ",t.xi3(3,5,e.Outlet,25)," "),t.xp6(3),t.hij(" ",e.OnHand," "),t.xp6(2),t.hij(" ",e.Allocated," "),t.xp6(2),t.hij(" ",e.PickPack," "),t.xp6(2),t.hij(" ",e.AvailableAdjustPickPack," ")}}function Se(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"ng-select",55),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw().$implicit,m=t.oxw(3);return t.KtG(m.selectOption(a,i))})("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.OutletID=a)})("open",function(){t.CHM(e);const a=t.oxw(),i=a.index,m=a.$implicit,v=t.oxw(3);return t.KtG(v.loadInventory(i,m.ProductID))}),t.ALo(1,"async"),t.YNc(2,we,19,0,"ng-template",12),t.YNc(3,Je,12,8,"ng-template",13),t.qZA()}if(2&n){const e=t.oxw(),o=e.index,a=e.$implicit,i=t.oxw(3);t.Q6J("items",t.lcZ(1,3,i.inventoriesInfo[o]))("ngModel",a.OutletID)("loading",a.isLoading)}}function Ee(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"div",50),t.YNc(3,Oe,1,1,"img",51),t.TgZ(4,"div")(5,"a",52),t._uU(6),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.qZA()()()(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t.YNc(12,Ne,2,1,"ng-container",3),t.YNc(13,Se,4,5,"ng-select",53),t.qZA()()),2&n){const e=l.$implicit;t.xp6(3),t.Q6J("ngIf",e.Image),t.xp6(2),t.Q6J("queryParams",t.VKq(7,R,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity),t.xp6(2),t.Q6J("ngIf",e.Fulfillment),t.xp6(1),t.Q6J("ngIf",!e.Fulfillment)}}function Le(n,l){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"ng-select",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.globalOutlet=a)})("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.chooseGlobalOutlet(a))}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("readonly",e.isAllAssigned)("ngModel",e.globalOutlet)("items",e.data.Options)}}function Qe(n,l){1&n&&(t.TgZ(0,"p",61),t._uU(1," All Product already assigned "),t.qZA())}function Ye(n,l){1&n&&(t.TgZ(0,"div",62),t._UZ(1,"i",63),t._uU(2," Your internet might have some problem, you can not upload any file. "),t.qZA())}function Ke(n,l){if(1&n&&(t.ynx(0),t.TgZ(1,"div",64)(2,"a",65),t._uU(3),t.qZA()(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(2),t.Q6J("href",e.pickInfo.DocumentURL,t.LSH),t.xp6(1),t.Oqu(e.fileName)}}function He(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"div",30)(1,"div",7)(2,"div",8)(3,"h2"),t._UZ(4,"i",31),t._uU(5,"Products "),t.TgZ(6,"small",32),t._uU(7),t.ALo(8,"sum"),t.qZA()()(),t.TgZ(9,"div",10)(10,"table",33)(11,"thead",34)(12,"tr")(13,"th",35),t._uU(14,"Name"),t.qZA(),t.TgZ(15,"th",36),t._uU(16,"Qty"),t.qZA(),t.TgZ(17,"th",37),t._uU(18,"Fulfillment"),t.qZA()()(),t.TgZ(19,"tbody"),t.YNc(20,Ee,14,9,"tr",38),t.qZA(),t.TgZ(21,"tfoot")(22,"tr"),t._UZ(23,"td",39),t.TgZ(24,"td"),t.YNc(25,Le,2,3,"ng-container",40),t.YNc(26,Qe,2,0,"ng-template",null,41,t.W1O),t.qZA()()()()()(),t.TgZ(28,"div",7)(29,"div",8)(30,"div",42),t.YNc(31,Ye,3,0,"div",43),t.qZA(),t.TgZ(32,"h2"),t._UZ(33,"i",44),t._uU(34,"Packing Slip "),t.qZA()(),t.TgZ(35,"div",45)(36,"button",46),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.uploadFileToCloudinary())}),t._UZ(37,"i",47),t.TgZ(38,"span"),t._uU(39,"Upload File"),t.qZA()(),t.YNc(40,Ke,4,2,"ng-container",3),t.qZA()(),t.TgZ(41,"div",7)(42,"div",8)(43,"h2"),t._UZ(44,"i",48),t._uU(45,"Note "),t.qZA()(),t.TgZ(46,"div",10)(47,"POS-tinymce-editor",49),t.NdJ("valueChange",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.pickInfo.Note=a)}),t.qZA()()()()}if(2&n){const e=t.MAs(27),o=t.oxw(2);t.xp6(7),t.hij(" (Quantity: ",t.xi3(8,7,o.pickInfo.Items,"Quantity"),") "),t.xp6(13),t.Q6J("ngForOf",o.pickInfo.Items),t.xp6(5),t.Q6J("ngIf",!o.isAllAssigned)("ngIfElse",e),t.xp6(6),t.Q6J("ngIf",o.isCloudinaryErrored),t.xp6(9),t.Q6J("ngIf",o.pickInfo.DocumentURL),t.xp6(7),t.Q6J("value",o.pickInfo.Note)}}const Ge=function(){return["/menu/Fulfillment/Delivery/Pick"]};function Re(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1)(1,"actions")(2,"a",2),t._uU(3,"Cancel"),t.qZA(),t.YNc(4,fe,3,0,"ng-container",3),t.qZA(),t.TgZ(5,"content")(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"h2"),t._UZ(12,"i",9),t._uU(13,"Choose Order "),t.qZA()(),t.TgZ(14,"div",10)(15,"ng-select",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.selectedSOID=a)})("change",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.getPickItems(a))}),t.ALo(16,"async"),t.YNc(17,he,7,0,"ng-template",12),t.YNc(18,xe,9,9,"ng-template",13),t.qZA()()(),t.YNc(19,Ze,29,6,"div",14),t.YNc(20,Pe,7,1,"div",14),t.YNc(21,ke,7,1,"div",14),t.qZA(),t.YNc(22,He,48,10,"div",15),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("routerLink",t.DdM(15,Ge)),t.xp6(2),t.Q6J("ngIf",e.role.fulfillment.Create&&!e.isAllAssigned),t.xp6(11),t.Q6J("items",t.lcZ(16,13,e.orders$))("typeahead",e.orderInput$)("ngModel",e.selectedSOID)("readonly",e.isEdit),t.xp6(4),t.Q6J("ngIf",e.pickInfo),t.xp6(1),t.Q6J("ngIf",e.customerInfo),t.xp6(1),t.Q6J("ngIf",e.recipientInfo),t.xp6(1),t.Q6J("ngIf",e.pickInfo)}}const Ve=BiggerPicture({target:document.body});let je=(()=>{class n extends ce.U{constructor(e,o,a,i,m,v){super(e,"Fulfillment/GetFullfilmentLoader",o),(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"router",void 0),(0,r.Z)(this,"cloudinaryService",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"pickInfo",void 0),(0,r.Z)(this,"customerInfo",void 0),(0,r.Z)(this,"recipientInfo",void 0),(0,r.Z)(this,"globalOutlet",void 0),(0,r.Z)(this,"isAllAssigned",void 0),(0,r.Z)(this,"items",void 0),(0,r.Z)(this,"fileName",void 0),(0,r.Z)(this,"selectedSOID",void 0),(0,r.Z)(this,"isLoading",!1),(0,r.Z)(this,"inventoriesInfo",void 0),(0,r.Z)(this,"isEdit",!1),(0,r.Z)(this,"orderInput$",new pe.x),(0,r.Z)(this,"orders$",void 0),(0,r.Z)(this,"isCloudinaryErrored",!1),this.toastr=a,this.router=i,this.cloudinaryService=m,this.role=v,this.inventoriesInfo=[];const P=this.route.snapshot.queryParams.ID;_.gT.IsNotEmpty(P)?(this.isEdit=!0,this.orders$=this.httpService.post("/API/Fulfillment/GetPickListDataBySOID",JSON.stringify({SalesOrderID:P})).pipe((0,H.b)(j=>{this.bindPickItems(j),this.selectedSOID=P}),(0,G.U)(j=>[{Key:P,Value:{Display:j.InvNumAndOltName,Date:null,EntityName:null,Number:null}}]))):this.orders$=this.orderInput$.pipe((0,G.U)(w=>w??""),(0,f.h)(w=>""==w||w.length>=3),(0,se.x)(),(0,_e.b)(500),(0,me.O)(""),(0,b.w)(w=>this.httpService.post("/API/AC/SearchUnfulfilledOrderByNumberNullPickList",JSON.stringify({prefix:w,count:20}))))}getPickItems(e){_.gT.IsNotEmpty(e)?this.httpService.post("/API/Fulfillment/GetPickListDataBySOID",JSON.stringify({SalesOrderID:e.Key})).subscribe({next:a=>{this.inventoriesInfo=[],this.bindPickItems(a)}}):this.orderInput$.next("")}bindPickItems(e){this.globalOutlet=null,this.pickInfo=e,this.recipientInfo=e.Recipient,this.customerInfo=e.Customer,this.isAllAssigned=!0,this.pickInfo.Items.filter(o=>!o.Fulfillment).forEach(o=>{o.Pick=!1,this.isAllAssigned=!1}),this.initCloudinary()}postBindForm(){this.setFocusToAutoComplete()}initCloudinary(){try{this.cloudinaryService.initUploadFileWidget(cloudinary,this.pickInfo.CloudinaryFolder).subscribe(e=>{this.pickInfo.DocumentURL=e.FileURL,this.fileName=e.FileName})}catch{this.isCloudinaryErrored=!0}}uploadFileToCloudinary(){this.cloudinaryService.openUploadWidget()}setFocusToAutoComplete(){let e=document.getElementById("orderNumber");e&&e.focus()}validate(){0!=this.pickInfo.Items.filter(e=>e.Pick&&!e.Fulfillment).length?_.gT.IsEmpty(this.pickInfo)?this.toastr.error("Shipping invoice is required.",d.n.Error):this.pickInfo.Note&&this.pickInfo.Note.length>500?this.toastr.warning("Maximum 500 characters allowed","Warning"):this.onSubmit("Fulfillment/SubmitPickList"):this.toastr.error("You must pick a warehouse in at least one product.",d.n.Error)}preSubmitForm(){this.items=this.pickInfo.Items;const e=new de(this.pickInfo);this.data.Form=e}onSubmitSuccess(e){this.toastr.success(e.Message,d.n.Success),this.router.navigate(["/menu/Fulfillment/Delivery/Pick"])}onSubmitError(){this.pickInfo.Items=this.items}openBigPicture(e,o){return(0,A.Z)(function*(){o.preventDefault();try{const a=yield(0,_.FI)(e.Image);Ve.open({items:[a],intro:"fadeup"})}catch(a){alert(a)}})()}chooseGlobalOutlet(e){this.pickInfo.Items.filter(o=>!o.Fulfillment).forEach((o,a)=>{_.gT.IsEmpty(this.globalOutlet)?(o.Pick=!1,o.OutletID=null):(o.OutletID=this.globalOutlet,o.Pick=!0,this.inventoriesInfo[a]=(0,z.of)([{ID:e.ID,Outlet:e.Name}]))})}selectOption(e,o){o.Pick=!_.gT.IsEmpty(e)}onEmptySearchOrder(e){this.toastr.warning(`Invoice with number ${e} is not found`,"Warning")}loadInventory(e,o){this.inventoriesInfo[e]=(0,ue.z)((0,z.of)([]).pipe((0,H.b)(()=>this.pickInfo.Items[e].isLoading=!0)),this.httpService.post("/API/Inventory/ByIDGroupByOutlet",{ID:o}).pipe((0,G.U)(a=>a.Data),(0,H.b)(()=>this.pickInfo.Items[e].isLoading=!1)))}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(x.gz),t.Y36(O._W),t.Y36(x.F0),t.Y36(ge.q),t.Y36(U.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-pick-form"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],[1,"btn","btn-outline-secondary",3,"routerLink"],[4,"ngIf"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-4"],[1,"card"],[1,"card-header"],[1,"fa-file-alt","fas","me-5"],[1,"card-body"],["bindLabel","Value.Display","bindValue","Key",1,"acOrder",3,"items","typeahead","ngModel","readonly","ngModelChange","change"],["ng-header-tmp",""],["ng-option-tmp",""],["class","card",4,"ngIf"],["class","col-8",4,"ngIf"],[1,"btn","btn-success","ms-5",3,"click"],[1,"col-4","fw-bold"],[1,"col-3","fw-bold"],[1,"col-5","fw-bold"],[1,"col-4",2,"word-break","break-all"],[1,"col-3",2,"word-break","break-all"],[1,"col-5","number-dropdown",2,"word-break","break-all"],["aria-hidden","true",1,"fa-file-alt","fas","me-5"],[1,"table-sm","table-borderless"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info","target","_blank",1,"ps-0",3,"queryParams"],[1,"fa-solid","fa-address-card","me-5"],["class","table-sm table-borderless",4,"ngIf"],["target","_blank",3,"routerLink","queryParams"],[3,"innerHTML"],[1,"col-8"],[1,"fa-solid","fa-box","me-5"],[1,"text-muted","h6"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-end",2,"width","350px"],[1,"border-end",2,"width","50px"],[1,"border-end"],[4,"ngFor","ngForOf"],["colspan","2",2,"border","none"],[4,"ngIf","ngIfElse"],["ALL_ASSIGNED",""],[1,"w-100"],["class","alert alert-warning",4,"ngIf"],[1,"fa-solid","fa-file","me-5"],[1,"card-body","form-floating-outline"],[1,"btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-upload","me-2"],[1,"fa-solid","fa-note-sticky","me-5"],["height","220px",3,"value","valueChange"],[1,"d-flex","align-items-center"],["class","me-5","style","width:80px; height: 80px;","matTooltipPosition","above","matTooltip","Click to zoom",3,"src","click",4,"ngIf"],["routerLink","/menu/Products/Catalog/Variants/Info","target","_blank",3,"queryParams"],["class","fulfill","placeholder","Choose a warehouse","bindLabel","Outlet","bindValue","ID",3,"items","ngModel","loading","change","ngModelChange","open",4,"ngIf"],["matTooltipPosition","above","matTooltip","Click to zoom",1,"me-5",2,"width","80px","height","80px",3,"src","click"],["placeholder","Choose a warehouse","bindLabel","Outlet","bindValue","ID",1,"fulfill",3,"items","ngModel","loading","change","ngModelChange","open"],[1,"col-2","fw-bold","text-end","tooltip"],[1,"tooltiptext"],[1,"tooltiptext","nett"],[1,"col-2","text-end",2,"word-break","break-all"],["placeholder","Choose a warehouse","bindLabel","Name","bindValue","ID",3,"readonly","ngModel","items","ngModelChange","change"],[1,"mb-0"],[1,"alert","alert-warning"],[1,"fa-solid","fa-circle-info"],[1,"mt-4"],["target","_blank",3,"href"]],template:function(e,o){1&e&&t.YNc(0,Re,23,16,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.JJ,c.On,x.rH,Z.p,C.w9,C.ir,C.Cm,J.gM,X.V,p.Ov,p.uU,Q.OI,Q.qU],styles:[".invoice[_ngcontent-%COMP%] input{height:36px}.invoice-link[_ngcontent-%COMP%]{padding:4px 8px 3px 5px;border:1px solid #dddddd}.btn-gray[_ngcontent-%COMP%]{background-color:#f4f4f4;border:1px solid #d6d6d6;font-weight:700;color:#545454!important;background:linear-gradient(to bottom,#fff 0%,#eee 100%)}autocompleteV2[_ngcontent-%COMP%] input{font-size:16px}.acOrder[_ngcontent-%COMP%] .ng-option{white-space:normal!important;padding:5px 7px!important}.acOrder[_ngcontent-%COMP%] .scroll-host{overflow-y:overlay!important}.acOrder[_ngcontent-%COMP%] .number-dropdown{padding-right:30px!important}.fulfill[_ngcontent-%COMP%] .ng-dropdown-panel{right:0;left:auto!important;width:40vw}.fulfill[_ngcontent-%COMP%] .tooltip{position:relative;display:inline-block}.fulfill[_ngcontent-%COMP%] .tooltip .tooltiptext{visibility:hidden;width:160px;background-color:#fff;color:#333;text-align:center;border-radius:6px;padding:5px;border:1px solid #333;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-60px}.fulfill[_ngcontent-%COMP%] .tooltip .tooltiptext.nett{margin-left:-90px}.fulfill[_ngcontent-%COMP%] .tooltip:hover .tooltiptext{visibility:visible}"]})),n})();function Be(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openAssignModal())}),t._UZ(1,"i",27),t._uU(2,"Assign "),t.qZA()}}function We(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/ListPickToPack","Are you sure you want to pack selected record/s?"))}),t._UZ(1,"i",29),t._uU(2,"Pack "),t.qZA()}}function $e(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",31),t._uU(2,"Delete "),t.qZA()}}function ze(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",33),t._uU(2," Export"),t.qZA()}}const Xe=function(){return["/menu/Fulfillment/Delivery/Pick/Form"]};function tn(n,l){1&n&&(t.TgZ(0,"a",34),t._uU(1,"New"),t.qZA()),2&n&&t.Q6J("routerLink",t.DdM(1,Xe))}function en(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",37),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function nn(n,l){if(1&n&&(t.TgZ(0,"th",35),t.YNc(1,en,1,0,"input",36),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.totalAccessWrite>1)}}function an(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",42),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2).$implicit;return t.KtG(i.selected=a)}),t.qZA()}if(2&n){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.selected)}}function on(n,l){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,an,1,1,"input",41),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.Access_Write)}}const ln=function(){return["/menu/Fulfillment/Delivery/All/Info"]},tt=function(n){return{ID:n}},rn=function(){return["/menu/Contacts/Contact/Customers/Info"]};function cn(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,on,2,1,"td",38),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",39),t.TgZ(9,"a",40),t._uU(10),t.qZA()(),t.TgZ(11,"td")(12,"a",40),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",(o.role.fulfillment.Delete||o.role.fulfillment.Edit)&&o.showCheckboxAll),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(18,ln))("queryParams",t.VKq(19,tt,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(21,rn))("queryParams",t.VKq(22,tt,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,12,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,15,e.Created,"HH:mm"))}}function pn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Be,3,0,"a",2),t.YNc(3,We,3,0,"a",3),t.YNc(4,$e,3,0,"a",4),t.YNc(5,ze,3,0,"button",5),t.YNc(6,tn,2,2,"a",6),t.qZA(),t.TgZ(7,"filters")(8,"div",7)(9,"div",8)(10,"div")(11,"h6"),t._uU(12,"Outlet"),t.qZA(),t.TgZ(13,"ng-select",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(14,"div")(15,"h6"),t._uU(16,"Order"),t.qZA(),t.TgZ(17,"ng-select",10),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(18,"div")(19,"h6"),t._uU(20,"Customer"),t.qZA(),t.TgZ(21,"autocompleteV2",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(22,"div")(23,"h6"),t._uU(24,"From"),t.qZA(),t.TgZ(25,"datepicker",12),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(26,"div")(27,"h6"),t._uU(28,"To"),t.qZA(),t.TgZ(29,"datepicker",13),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(30,"div")(31,"h6"),t._uU(32,"Page Size"),t.qZA(),t.TgZ(33,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(34,"content")(35,"div",15)(36,"div",16)(37,"table",17)(38,"thead",18)(39,"tr",19),t.YNc(40,nn,2,1,"th",20),t.TgZ(41,"th",21),t._uU(42,"Outlet"),t.qZA(),t.TgZ(43,"th",21),t._uU(44,"Order"),t.qZA(),t.TgZ(45,"th",22),t._uU(46,"Number"),t.qZA(),t.TgZ(47,"th"),t._uU(48,"Customer"),t.qZA(),t.TgZ(49,"th",23),t._uU(50,"Created"),t.qZA(),t.TgZ(51,"th",23),t._uU(52,"Time"),t.qZA()()(),t.YNc(53,cn,20,24,"tbody",24),t.qZA()(),t.TgZ(54,"POS-complex-pagination",25),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit&&e.areSameOutlets()),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(1),t.Q6J("ngIf",e.role.fulfillment.Create),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",(e.role.fulfillment.Delete||e.role.fulfillment.Edit)&&e.showCheckboxAll),t.xp6(13),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let sn=(()=>{class n extends D.n{constructor(e,o,a,i,m){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"showCheckboxAll",void 0),(0,r.Z)(this,"totalAccessWrite",void 0),this.csvConverter=o,this.role=i,this.matDialog=m}openExportModal(){this.matDialog.open(N.H,{data:{title:"Pick",exportTypes:[{ID:"FulfillmentExport/PickExport",Value:"Default",FileName:"Pick"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetPickFulfillmentCount",pagination:!0}})}preInitList(){this.pageData.Filter.StateID=this.pageData.Options.States.find(e=>"Picked"==e.Value).Key}postInit(e){this.totalAccessWrite=0,e.Data.forEach(o=>{o.Access_Write&&(this.totalAccessWrite+=1)}),this.totalAccessWrite>0&&(this.showCheckboxAll=!0)}onSelectAllData(e){this.data.Data=this.data.Data.map(o=>(o.Access_Write&&(o.selected=e),o))}openAssignModal(){this._httpService.post("/api/Fulfillment/GetUserListToAssign",JSON.stringify({OutletID:this.getSelectedData()[0].OutletID})).pipe((0,b.w)(e=>this.matDialog.open(k,{data:{users:e}}).afterClosed()),(0,f.h)(e=>_.gT.IsNotEmpty(e)),(0,b.w)(e=>this._httpService.post("/API/Fulfillment/ListPickToAssign",{ListID:this.getSelectedData().map(o=>o.ID),AssignTo:e}))).subscribe({next:e=>this.toastrService.success(e.Message,d.n.Success),complete:()=>this.getListData()})}areSameOutlets(){const e=this.getSelectedData().map(a=>a.OutletID);return e.every(a=>a==e[0])}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(O._W),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-pick"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Pack","matTooltipPosition","above","matTooltip","Assign multiple pick list","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Pack","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","btn btn-success ms-3",3,"routerLink",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPickFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Pack","matTooltipPosition","above","matTooltip","Assign multiple pick list",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-user","me-3"],["value","Pack",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-box","me-3"],["value","Delete",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"btn","btn-success","ms-3",3,"routerLink"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,pn,55,21,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.Fj,c.Wl,c.JJ,c.On,x.rH,Z.p,T.QB,C.w9,q.J,S.v,J.gM,p.uU]})),n})();var _n=s(23410);function mn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",25),t._uU(2," Export"),t.qZA()}}const un=function(){return["/menu/Orders/Orders/Customer_Invoice/Info"]},V=function(n){return{ID:n}};function dn(n,l){if(1&n&&(t.TgZ(0,"a",29),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.DdM(3,un))("queryParams",t.VKq(4,V,e.InvoiceID)),t.xp6(1),t.Oqu(e.InvoiceNumber)}}const gn=function(){return["/menu/Orders/Order/Sales_Order/Info"]};function fn(n,l){if(1&n&&(t.TgZ(0,"a",29),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.DdM(3,gn))("queryParams",t.VKq(4,V,e.SOID)),t.xp6(1),t.Oqu(e.InvoiceNumber)}}const hn=function(n){return{"bg-gradient-danger":n}},xn=function(){return["/menu/Contacts/Contact/Customers/Info"]};function Zn(n,l){if(1&n&&(t.TgZ(0,"tr",26)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",27),t._uU(6),t.ALo(7,"number"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td"),t.YNc(11,dn,2,6,"a",28),t.YNc(12,fn,2,6,"a",28),t.qZA(),t.TgZ(13,"td")(14,"a",29),t._uU(15),t.qZA()(),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"date"),t.qZA()()),2&n){const e=l.$implicit,o=t.oxw(2);t.Tol(t.VKq(17,hn,e.CustomDate<o.data.Today)),t.xp6(2),t.Oqu(e.VariantName),t.xp6(2),t.Oqu(e.VariantCode),t.xp6(2),t.Oqu(t.lcZ(7,12,e.Quantity)),t.xp6(3),t.Oqu(e.EntityName),t.xp6(2),t.Q6J("ngIf","00000000-0000-0000-0000-000000000000"!=e.InvoiceID),t.xp6(1),t.Q6J("ngIf","00000000-0000-0000-0000-000000000000"==e.InvoiceID),t.xp6(2),t.Q6J("routerLink",t.DdM(19,xn))("queryParams",t.VKq(20,V,e.CustomerID)),t.xp6(1),t.hij(" ",e.Customer," "),t.xp6(2),t.Oqu(t.xi3(18,14,e.InvoiceDate,"dd MMM yyyy"))}}function Cn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"span",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.StoreRowsCountAPIResult("OutboundLogistics/UnfulfilledProductsRowsCount"))}),t.TgZ(1,"i",31),t._uU(2,"?"),t.qZA()()}}function Tn(n,l){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,1,e.listTotal))}}function Dn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",32),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.NextPage(!0))}),t._UZ(1,"i",33),t._uU(2," Next"),t.qZA()}}function An(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",34),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.StoreRowsCountAPIResult("OutboundLogistics/UnfulfilledProductsRowsCount",!0))}),t._UZ(1,"i",35),t._uU(2," Show All"),t.qZA()}}function vn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,mn,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"Category"),t.qZA(),t.TgZ(13,"ng-select",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CategoryID=a)}),t.qZA()(),t.TgZ(14,"div")(15,"h6"),t._uU(16,"Variant"),t.qZA(),t.TgZ(17,"autocompleteV2",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.VariantID=a)}),t.qZA()()()()(),t.TgZ(18,"content")(19,"div",8)(20,"div",9)(21,"table",10)(22,"thead",11)(23,"tr")(24,"th"),t._uU(25,"Product Name"),t.qZA(),t.TgZ(26,"th",12),t._uU(27,"Code"),t.qZA(),t.TgZ(28,"th",13),t._uU(29,"Quantity"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"Outlet"),t.qZA(),t.TgZ(32,"th"),t._uU(33,"Number"),t.qZA(),t.TgZ(34,"th"),t._uU(35,"Customer"),t.qZA(),t.TgZ(36,"th",14),t._uU(37,"Invoice Date"),t.qZA()()(),t.TgZ(38,"tbody"),t.YNc(39,Zn,19,22,"tr",15),t.qZA()()(),t.TgZ(40,"div",16)(41,"div",17)(42,"div",18),t._uU(43),t.ALo(44,"number"),t.YNc(45,Cn,3,0,"span",19),t.YNc(46,Tn,3,3,"span",20),t._uU(47),t.qZA()(),t.TgZ(48,"div",21),t.YNc(49,Dn,3,0,"a",22),t.YNc(50,An,3,0,"a",23),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("multiple",!0)("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.EntityID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Categories)("ngModel",e.pageData.Filter.CategoryID),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.VariantID),t.xp6(22),t.Q6J("ngForOf",e.infiniteList),t.xp6(4),t.hij(" Showing 1 - ",t.lcZ(44,16,e.pageData.Filter.RowCount*(e.pageData.Filter.PageNumber-1)+e.data.TotalCurrentRow)," of "),t.xp6(2),t.Q6J("ngIf",!e.pageData.HideStoreApiCount),t.xp6(1),t.Q6J("ngIf",e.pageData.HideStoreApiCount),t.xp6(1),t.hij(" records ~ ",e.pageData.Filter.PageNumber," Page "),t.xp6(2),t.Q6J("ngIf",e.nextPageDisabled&&!e.goToLast),t.xp6(1),t.Q6J("ngIf",e.nextPageDisabled&&!e.goToLast)}}let bn=(()=>{class n extends _n.X{constructor(e,o,a,i,m){super(e,"OutboundLogistics/UnfulfilledProducts","DeliveryLoader/ProductsToDeliver",null,a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),this.csvConverter=o,this.role=i,this.matDialog=m}openExportModal(){this.matDialog.open(N.H,{data:{title:"Unfulfilled Products",exportTypes:[{ID:"OutboundLogistics/UnfulfilledProductsExport",Value:"Default",FileName:"Unfulfilled Products"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"OutboundLogistics/UnfulfilledProductsRowsCount",pagination:!0}})}preGetList(){let e=this.route.snapshot.queryParams;0!=Object.keys(e).length&&(e.OutletID&&(this.pageData.Filter.EntityID=new Array,this.pageData.Filter.EntityID.push(e.OutletID)),this.pageData.Filter.VariantID=e.VariantID)}preInitList(){this.oldRowCount=this.pageData.Filter.RowCount,this.pageData.Filter.EntityID=null}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(x.gz),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-unfulfilled-products"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"multiple","items","ngModel","ngModelChange"],["bindLabel","Value","bindValue","Key","placeholder","Choose a category",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetVariantSuggestionByCodeNName","placeholder","Variant","inputID","VariantID","notFoundMessageFor","variant",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","75px"],[1,"text-end",2,"width","75px"],[2,"width","140px"],["class","border-bottom",3,"class",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","matTooltipPosition","above","matTooltip","Load next page",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","matTooltipPosition","above","matTooltip","Load all products",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"border-bottom"],[1,"text-end"],[3,"routerLink","queryParams",4,"ngIf"],[3,"routerLink","queryParams"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"],["role","button","matTooltipPosition","above","matTooltip","Load next page",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],["role","button","matTooltipPosition","above","matTooltip","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(e,o){1&e&&t.YNc(0,vn,51,18,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.JJ,c.On,x.rH,Z.p,C.w9,q.J,J.gM,p.JJ,p.uU],styles:["ng-select[_ngcontent-%COMP%] div.ng-placeholder{top:8px!important}"]})),n})();function In(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",16),t._uU(2," Export"),t.qZA()}}function Pn(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr")(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"number"),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"number"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.convertToDayName(e.Date)),t.xp6(2),t.Oqu(o.convertToDayNumber(e.Date)),t.xp6(2),t.Oqu(t.lcZ(8,4,e.PickListCount)),t.xp6(3),t.Oqu(t.lcZ(11,6,e.PickListQuantity))}}function yn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,In,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"From - To"),t.qZA(),t.TgZ(13,"div")(14,"datepicker",6),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(15,"div",7)(16,"datepicker",8),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()()()()(),t.TgZ(17,"content")(18,"div",9)(19,"table",10)(20,"thead",11)(21,"tr",12)(22,"th"),t._uU(23,"Day"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Date"),t.qZA(),t.TgZ(26,"th",13),t._uU(27,"Count"),t.qZA(),t.TgZ(28,"th",13),t._uU(29,"Quantity"),t.qZA()()(),t.YNc(30,Pn,12,8,"tbody",14),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.EntityID),t.xp6(5),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(14),t.Q6J("ngForOf",e.data.Data)}}let qn=(()=>{class n extends D.n{constructor(e,o,a,i,m,v){super(e,"Fulfillment/DailyPerformance","Fulfillment/DailyReportLoader",o),(0,r.Z)(this,"datePipe",void 0),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),this.datePipe=a,this.csvConverter=i,this.role=m,this.matDialog=v}openExportModal(){this.matDialog.open(N.H,{data:{title:"Daily Performance",exportTypes:[{ID:"FulfillmentExport/DailyPerformance",Value:"Default",FileName:"Daily Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preInitList(){this.pageData.Filter.From=this.pageData.Filter.To=new Date}convertToDayName(e){let o=null;return e&&(o=new Date(e),o=this.datePipe.transform(o,"EEEE")),o}convertToDayNumber(e){let o=null;return e&&(o=new Date(e),o=this.datePipe.transform(o,"d")),o}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(O._W),t.Y36(p.uU),t.Y36(F.O),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-daily-report"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],[1,"container-fluid","mt-5"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"]],template:function(e,o){1&e&&t.YNc(0,yn,31,10,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.JJ,c.On,Z.p,T.QB,C.w9,p.JJ]})),n})();var E=s(96308);function Fn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",16),t._uU(2," Export"),t.qZA()}}function Un(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",17),t._uU(6),t.qZA(),t.TgZ(7,"td",17),t._uU(8),t.qZA()()),2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Oqu(o+1),t.xp6(2),t.Oqu(e.LoginID),t.xp6(2),t.Oqu(e.PickListCount),t.xp6(2),t.Oqu(e.PickListQuantity)}}function Mn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Fn,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"From - To"),t.qZA(),t.TgZ(9,"div")(10,"datepicker",5),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(11,"div",6)(12,"datepicker",7),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()()()()(),t.TgZ(13,"content")(14,"div",8)(15,"table",9),t.NdJ("matSortChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.sort(a))}),t.TgZ(16,"thead",10)(17,"tr")(18,"th",11),t._uU(19,"No"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Employee"),t.qZA(),t.TgZ(22,"th",12),t._uU(23,"Count"),t.qZA(),t.TgZ(24,"th",13),t._uU(25,"Quantity"),t.qZA()()(),t.TgZ(26,"tbody"),t.YNc(27,Un,9,4,"tr",14),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(8),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(15),t.Q6J("ngForOf",e.data.Data)}}let kn=(()=>{class n extends D.n{constructor(e,o,a,i){super(e,"Fulfillment/EmployeePerformance","Fulfillment/EmployeePerformanceLoader"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"originalData",void 0),this.csvConverter=o,this.role=a,this.matDialog=i}openExportModal(){this.matDialog.open(N.H,{data:{title:"Employee Performance",exportTypes:[{ID:"FulfillmentExport/EmployeePerformance",Value:"Default",FileName:"Employee Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preInitList(){this.pageData.Filter.From=this.pageData.Filter.To=new Date}postInit(e){this.originalData=e.Data}sort(e){this.data.Data=e.active&&""!==e.direction?this.data.Data.sort((a,i)=>this.compare(a[e.active],i[e.active],"asc"===e.direction)):this.originalData}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-employee-performance"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","7%"],["mat-sort-header","PickListCount","arrowPosition","before",1,"flex-right",2,"width","15%"],["mat-sort-header","PickListQuantity","arrowPosition","before",1,"flex-right",2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,Mn,28,8,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,Z.p,T.QB,E.YE,E.nU],styles:["th[_ngcontent-%COMP%] div.mat-sort-header-container{display:flex;justify-content:flex-end}"]})),n})();function On(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",16),t._uU(2," Export"),t.qZA()}}function Nn(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",17),t._uU(6),t.qZA(),t.TgZ(7,"td",17),t._uU(8),t.qZA()()),2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Oqu(o+1),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.PickListCount),t.xp6(2),t.Oqu(e.PickListQuantity)}}function wn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,On,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"From - To"),t.qZA(),t.TgZ(9,"div")(10,"datepicker",5),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(11,"div",6)(12,"datepicker",7),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()()()()(),t.TgZ(13,"content")(14,"div",8)(15,"table",9),t.NdJ("matSortChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.sort(a))}),t.TgZ(16,"thead",10)(17,"tr")(18,"th",11),t._uU(19,"No"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Outlet"),t.qZA(),t.TgZ(22,"th",12),t._uU(23,"Count"),t.qZA(),t.TgZ(24,"th",13),t._uU(25,"Quantity"),t.qZA()()(),t.TgZ(26,"tbody"),t.YNc(27,Nn,9,4,"tr",14),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(8),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(15),t.Q6J("ngForOf",e.data.Data)}}let Jn=(()=>{class n extends D.n{constructor(e,o,a,i){super(e,"Fulfillment/OutletPerformance","Fulfillment/OutletPerformanceReportLoader"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"originalData",void 0),this.csvConverter=o,this.role=a,this.matDialog=i}openExportModal(){this.matDialog.open(N.H,{data:{title:"Outlet Performance",exportTypes:[{ID:"FulfillmentExport/OutletPerformance",Value:"Default",FileName:"Outlet Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preInitList(){this.pageData.Filter.From=this.pageData.Filter.To=new Date}postInit(e){this.originalData=e.Data}sort(e){this.data.Data=e.active&&""!==e.direction?this.data.Data.sort((a,i)=>this.compare(a[e.active],i[e.active],"asc"===e.direction)):this.originalData}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-outlet-performance"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","7%"],["mat-sort-header","PickListCount","arrowPosition","before",1,"flex-right",2,"width","15%"],["mat-sort-header","PickListQuantity","arrowPosition","before",1,"flex-right",2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,wn,28,8,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,Z.p,T.QB,E.YE,E.nU],styles:["th[_ngcontent-%COMP%] div.mat-sort-header-container{display:flex;justify-content:flex-end}"]})),n})();var Sn=s(83902);let En=(()=>{class n{constructor(e,o,a,i){(0,r.Z)(this,"httpService",void 0),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"dialogRef",void 0),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"config",void 0),(0,r.Z)(this,"pageData",void 0),this.httpService=e,this.csvConverter=o,this.dialogRef=a,this.data=i,this.config=new g.O,this.config.title="Export Shipping",this.config.okText="<i class='fas fa-upload'></i> Export",this.config.customWidth="300px",this.pageData=i.pageData}onOk(){this.pageData.Filter.Export=!0,this.httpService.post("/api/OutboundLogistics/OutboundLogisticsList",JSON.stringify(this.pageData.Filter)).subscribe(o=>{this.csvConverter.convertToCSV(o,"Ship.csv"),this.dialogRef.close()})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(h.so),t.Y36(h.WI))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-modal-export-customer"]],decls:15,vars:3,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"form-floating-outline"],["type","text","autoNum","","placeholder","Page Number",1,"form-control",3,"ngModel","ngModelChange"],["type","text","autoNum","","placeholder","Page Size",1,"form-control",3,"ngModel","ngModelChange"]],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")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"input",5),t.NdJ("ngModelChange",function(i){return o.pageData.Filter.ExportPageNumber=i}),t.qZA(),t.TgZ(7,"label"),t._uU(8,"Page Number"),t.qZA()()()(),t.TgZ(9,"div",2)(10,"div",3)(11,"div",4)(12,"input",6),t.NdJ("ngModelChange",function(i){return o.pageData.Filter.ExportRowCount=i}),t.qZA(),t.TgZ(13,"label"),t._uU(14,"Page Size"),t.qZA()()()()()()()),2&e&&(t.Q6J("config",o.config),t.xp6(6),t.Q6J("ngModel",o.pageData.Filter.ExportPageNumber),t.xp6(6),t.Q6J("ngModel",o.pageData.Filter.ExportRowCount))},dependencies:[c.Fj,c.JJ,c.On,u.M,Sn.b]})),n})();function Ln(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemoveShip","This will also delete the outbound logistic for this order, your inventory will be returned \nAre you sure you want to delete selected record/s? "))}),t._UZ(1,"i",25),t._uU(2,"Delete "),t.qZA()}}function Qn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",27),t._uU(2," Export"),t.qZA()}}function Yn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"th",28)(1,"input",29),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()()}}function Kn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"td")(1,"input",35),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.selected=a)}),t.qZA()()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.selected)}}const Hn=function(){return["/menu/Fulfillment/Delivery/All/Info"]},et=function(n){return{ID:n}},Gn=function(){return["/menu/Contacts/Contact/Customers/Info"]},Rn=function(){return["/print/OutDelivery"]},Vn=function(n,l){return{ID:n,Template:l}};function jn(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,Kn,2,1,"td",30),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",31),t.TgZ(9,"a",32),t._uU(10),t.qZA()(),t.TgZ(11,"td")(12,"a",32),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA(),t.TgZ(20,"td")(21,"a",33),t._UZ(22,"i",34),t.qZA()()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",o.role.fulfillment.Delete),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(20,Hn))("queryParams",t.VKq(21,et,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(23,Gn))("queryParams",t.VKq(24,et,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,14,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,17,e.Shipped,"HH:mm")),t.xp6(3),t.Q6J("routerLink",t.DdM(26,Rn))("queryParams",t.WLB(27,Vn,e.ID,e.TemplateID))}}function Bn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Ln,3,0,"a",2),t.YNc(3,Qn,3,0,"button",3),t.qZA(),t.TgZ(4,"filters")(5,"div",4)(6,"div",5)(7,"div")(8,"h6"),t._uU(9,"Outlet"),t.qZA(),t.TgZ(10,"ng-select",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(11,"div")(12,"h6"),t._uU(13,"Order"),t.qZA(),t.TgZ(14,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(15,"div")(16,"h6"),t._uU(17,"Customer"),t.qZA(),t.TgZ(18,"autocompleteV2",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(19,"div")(20,"h6"),t._uU(21,"From"),t.qZA(),t.TgZ(22,"datepicker",9),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(23,"div")(24,"h6"),t._uU(25,"To"),t.qZA(),t.TgZ(26,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(27,"div")(28,"h6"),t._uU(29,"Page Size"),t.qZA(),t.TgZ(30,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(31,"content")(32,"div",12)(33,"div",13)(34,"table",14)(35,"thead",15)(36,"tr",16),t.YNc(37,Yn,2,0,"th",17),t.TgZ(38,"th",18),t._uU(39,"Outlet"),t.qZA(),t.TgZ(40,"th",18),t._uU(41,"Order"),t.qZA(),t.TgZ(42,"th",19),t._uU(43,"Number"),t.qZA(),t.TgZ(44,"th"),t._uU(45,"Customer"),t.qZA(),t.TgZ(46,"th",20),t._uU(47,"Created"),t.qZA(),t.TgZ(48,"th",20),t._uU(49,"Time"),t.qZA(),t._UZ(50,"th",21),t.qZA()(),t.YNc(51,jn,23,30,"tbody",22),t.qZA()(),t.TgZ(52,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",e.role.fulfillment.Delete),t.xp6(14),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let Wn=(()=>{class n extends D.n{constructor(e,o,a,i,m){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderShipList",o),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"sortByOptions",[{Key:!1,Value:"Date"},{Key:!0,Value:"Created"}]),this.matDialog=a,this.csvConverter=i,this.role=m}openExportModal(){this.matDialog.open(N.H,{data:{title:"Ship",exportTypes:[{ID:"FulfillmentExport/ShipExport",Value:"Default",FileName:"Ship"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetShipFulfillmentCount",pagination:!0}})}openExportDialog(){this.matDialog.open(En,{data:{pageData:this.pageData}})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(O._W),t.Y36(h.uw),t.Y36(F.O),t.Y36(U.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-ship"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Delete","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[2,"width","10px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetShipFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Delete",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[2,"width","14px"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["target","_blank","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-print"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Bn,53,18,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.Fj,c.Wl,c.JJ,c.On,x.rH,Z.p,T.QB,C.w9,q.J,S.v,p.uU]})),n})();function $n(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",18),t._uU(2," Export"),t.qZA()}}const zn=function(n){return{ID:n}};function Xn(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",19),t._uU(5),t.qZA()(),t.TgZ(6,"td",20),t._uU(7),t.qZA(),t.TgZ(8,"td",20),t._uU(9),t.qZA()()),2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Oqu(o+1),t.xp6(2),t.Q6J("queryParams",t.VKq(5,zn,e.VariantID)),t.xp6(1),t.hij(" ",e.VariantName," "),t.xp6(2),t.Oqu(e.PickListCount),t.xp6(2),t.Oqu(e.Quantity)}}function ta(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,$n,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"From - To"),t.qZA(),t.TgZ(13,"div")(14,"datepicker",6),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(15,"div",7)(16,"datepicker",8),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()(),t.TgZ(17,"div")(18,"h6"),t._uU(19,"State"),t.qZA(),t.TgZ(20,"ng-select",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.State=a)}),t.qZA()()()()(),t.TgZ(21,"content")(22,"div",10)(23,"table",11),t.NdJ("matSortChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.sort(a))}),t.TgZ(24,"thead",12)(25,"tr")(26,"th",13),t._uU(27,"No"),t.qZA(),t.TgZ(28,"th"),t._uU(29,"Product"),t.qZA(),t.TgZ(30,"th",14),t._uU(31,"Count"),t.qZA(),t.TgZ(32,"th",15),t._uU(33," Quantity"),t.qZA()()(),t.TgZ(34,"tbody"),t.YNc(35,Xn,10,7,"tr",16),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.EntityID),t.xp6(5),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("multiple",!0)("ngModel",e.pageData.Filter.State)("items",null==e.pageData.Options?null:e.pageData.Options.PickListState),t.xp6(15),t.Q6J("ngForOf",e.data.Data)}}let ea=(()=>{class n extends D.n{constructor(e,o,a,i){super(e,"Fulfillment/ProductFulfillment","Fulfillment/ProductReportLoader"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"originalData",void 0),this.csvConverter=o,this.role=a,this.matDialog=i}openExportModal(){this.matDialog.open(N.H,{data:{title:"Product Performance",exportTypes:[{ID:"FulfillmentExport/ProductFulfillment",Value:"Default",FileName:"Product Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}postInit(e){this.originalData=e.Data}sort(e){this.data.Data=e.active&&""!==e.direction?this.data.Data.sort((a,i)=>this.compare(a[e.active],i[e.active],"asc"===e.direction)):this.originalData}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(U.N),t.Y36(h.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-product"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",1,"outlet-multiple",3,"multiple","ngModel","items","ngModelChange"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","7%"],["mat-sort-header","PickListCount","arrowPosition","before",1,"flex-right",2,"width","15%"],["mat-sort-header","Quantity","arrowPosition","before",1,"flex-right",2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["target","_blank","routerLink","/menu/Products/Catalog/Variants/Info",3,"queryParams"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,ta,36,13,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.JJ,c.On,x.rH,Z.p,T.QB,C.w9,E.YE,E.nU]})),n})();function na(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.createDelivery("Fulfillment/DeliverySendUndelivered"))}),t._UZ(1,"i",25),t._uU(2,"Delivery "),t.qZA()}}const aa=function(n){return{"background-color":n}};function oa(n,l){if(1&n&&(t.TgZ(0,"tr",29)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=l.$implicit;t.Q6J("ngStyle",t.VKq(4,aa,e.Success?"#DEE9C9":"#F4D6D5")),t.xp6(2),t.hij(" ",e.InvoiceNumber," "),t.xp6(2),t.hij(" ",e.Success?"Success":"Failed"," "),t.xp6(2),t.hij(" ",e.Success?e.Message:null==e.Exception?null:e.Exception.Message," ")}}function ia(n,l){if(1&n&&(t.TgZ(0,"div",26)(1,"table",27)(2,"thead",15)(3,"tr")(4,"th"),t._uU(5,"Number"),t.qZA(),t.TgZ(6,"th"),t._uU(7,"Status"),t.qZA(),t.TgZ(8,"th"),t._uU(9,"Message"),t.qZA()()(),t.TgZ(10,"tbody"),t.YNc(11,oa,7,6,"tr",28),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(11),t.Q6J("ngForOf",e.showResultList)}}function la(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",32),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function ra(n,l){if(1&n&&(t.TgZ(0,"th",30),t.YNc(1,la,1,0,"input",31),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.data.Data.length>1)}}function ca(n,l){1&n&&(t.TgZ(0,"th",33),t._uU(1,"Amount"),t.qZA())}function pa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"td")(1,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.selected=a)}),t.qZA()()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.selected)}}function sa(n,l){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.SalesNTax))}}const _a=function(){return["/menu/Orders/Orders/Customer_Invoice/Info"]},nt=function(n){return{ID:n}},ma=function(){return["/menu/Contacts/Contact/Customers/Info"]},ua=function(n,l,e,o){return{"text-success":n,"text-warning":l,"text-danger":e,"bg-gradient-danger":o}};function da(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,pa,2,1,"td",34),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._UZ(6,"img",35),t.TgZ(7,"a",36),t._uU(8),t.qZA()(),t.TgZ(9,"td")(10,"a",36),t._uU(11),t.qZA()(),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"date"),t.qZA(),t.YNc(15,sa,3,3,"td",37),t.TgZ(16,"td"),t._uU(17),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",o.role.fulfillment.Create),t.xp6(2),t.Oqu(e.EntityName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(17,_a))("queryParams",t.VKq(18,nt,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(20,ma))("queryParams",t.VKq(21,nt,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(14,14,e.Date,"dd MMM yyyy")),t.xp6(2),t.Q6J("ngIf",!o.pageData.PriceVisibleRestriction),t.xp6(1),t.Tol(t.l5B(23,ua,3==e.DeliveryStateID,2==e.DeliveryStateID,1==e.DeliveryStateID,1==e.DeliveryStateID)),t.xp6(1),t.Oqu(e.DeliveryStateLabel)}}function ga(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,na,3,0,"a",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"Customer"),t.qZA(),t.TgZ(13,"autocompleteV2",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(14,"div")(15,"h6"),t._uU(16,"From"),t.qZA(),t.TgZ(17,"datepicker",7),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(18,"div")(19,"h6"),t._uU(20,"To"),t.qZA(),t.TgZ(21,"datepicker",8),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(22,"div")(23,"h6"),t._uU(24,"Fulfillment"),t.qZA(),t.TgZ(25,"ng-select",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.FulfillmentStateID=a)}),t.qZA()(),t.TgZ(26,"div")(27,"h6"),t._uU(28,"Page Size"),t.qZA(),t.TgZ(29,"input",10),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(30,"content")(31,"div",11),t.YNc(32,ia,12,1,"div",12),t.TgZ(33,"div",13)(34,"table",14)(35,"thead",15)(36,"tr",16),t.YNc(37,ra,2,1,"th",17),t.TgZ(38,"th",18),t._uU(39,"Outlet"),t.qZA(),t.TgZ(40,"th",19),t._uU(41,"Number"),t.qZA(),t.TgZ(42,"th"),t._uU(43,"Customer"),t.qZA(),t.TgZ(44,"th",20),t._uU(45,"Date"),t.qZA(),t.YNc(46,ca,2,0,"th",21),t.TgZ(47,"th",20),t._uU(48,"Delivery"),t.qZA()()(),t.YNc(49,da,18,28,"tbody",22),t.qZA()(),t.TgZ(50,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0),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("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.FulfillmentStateID)("items",e.pageData.Options.Fulfillments),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(3),t.Q6J("ngIf",e.showResult),t.xp6(5),t.Q6J("ngIf",e.role.fulfillment.Create),t.xp6(9),t.Q6J("ngIf",!e.pageData.PriceVisibleRestriction),t.xp6(3),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.TotalCurrentRow)("pageData",e.pageData)}}let fa=(()=>{class n extends D.n{constructor(e,o,a,i){super(e,"OutboundLogistics/UnfulfilledInvoices","OutboundLogisticsLoader/UnfulfilledInvoices"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"showResult",!1),(0,r.Z)(this,"showResultList",[]),this.csvConverter=o,this.toastr=a,this.role=i}createDelivery(e){const o=this.getSelectedData();this.httpService.post(`/api/${e}`,o.map(a=>a.ID)).subscribe(a=>{this.showResultList=a,this.showResult=!0,setTimeout(()=>this.showResult=!1,5e3);const i=this.showResultList.filter(P=>P.Success).length,m=this.showResultList.filter(P=>!P.Success).length;let v="";i&&(v+=`${i} invoice${1==i?"":"s"} succesfully sent. `),m&&(v+=`${m} invoice${1==m?"":"s"} failed to sent.`),this.toastr.info(v,d.n.Info),this.getListData()})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(O._W),t.Y36(U.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["ng-component"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Delivery","matTooltipPosition","above","matTooltip","Delivery","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID","notFoundMessageFor","customer",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["bindLabel","Value","bindValue","Key","placeholder","Choose an Options",1,"my-5",3,"ngModel","items","ngModelChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],["class","table-responsive mb-5",4,"ngIf"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],["class","text-end","style","width: 90px;",4,"ngIf"],[4,"ngFor","ngForOf"],["api","OutboundLogistics/UnfulfilledInvoicesCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Delivery","matTooltipPosition","above","matTooltip","Delivery",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-truck","me-3"],[1,"table-responsive","mb-5"],[1,"table"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[1,"text-end",2,"width","90px"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["class","text-end",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,ga,51,19,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,p.PC,c.Fj,c.Wl,c.JJ,c.On,x.rH,Z.p,T.QB,C.w9,q.J,S.v,J.gM,p.JJ,p.uU]})),n})();var ha=s(22863),xa=s(24351);const Za=function(){return["/menu/Fulfillment/Delivery/All/Info"]},K=function(n){return{ID:n}};function Ca(n,l){if(1&n&&(t.TgZ(0,"tr",23)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",24),t._uU(5),t.qZA()(),t.TgZ(6,"td")(7,"span",25),t.ALo(8,"date"),t.ALo(9,"date"),t._uU(10),t.ALo(11,"date"),t._UZ(12,"i",26),t.qZA()()()),2&n){const e=l.$implicit;t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Q6J("routerLink",t.DdM(16,Za))("queryParams",t.VKq(17,K,e.ID)),t.xp6(1),t.Oqu(e.State),t.xp6(2),t.hYB("matTooltip","Pack: ",t.xi3(8,7,e.Packed,"dd MMM yyyy")," \r Ship: ",t.xi3(9,10,e.Shipped,"dd MMM yyyy"),""),t.xp6(3),t.hij(" ",t.xi3(11,13,e.Created,"dd MMM yyyy HH:mm")," ")}}function Ta(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td")(2,"a",27),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td",28)(9,"img",29),t.NdJ("click",function(a){const m=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.openBigPicture(m,a))}),t.qZA()(),t.TgZ(10,"td"),t._uU(11),t.qZA()()}if(2&n){const e=l.$implicit;t.xp6(2),t.Q6J("queryParams",t.VKq(6,K,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity),t.xp6(2),t.Q6J("src",e.Image?e.Image:"//res.cloudinary.com/pos/image/upload/POS/Images/Icon/products_thumb.png",t.LSH),t.xp6(2),t.hij(" Assigned to ",e.Fulfillment," ")}}const Da=function(){return["/menu/Fulfillment/Delivery/Pick/Form"]};function Aa(n,l){if(1&n&&(t.TgZ(0,"td")(1,"a",24),t._uU(2,"Not assigned to any warehouse"),t.qZA()()),2&n){const e=t.oxw(3);t.uIk("rowspan",e.unpickedItemsCount),t.xp6(1),t.Q6J("routerLink",t.DdM(3,Da))("queryParams",t.VKq(4,K,e.data.OrderID))}}function va(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td",30)(2,"a",27),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td",28)(9,"img",29),t.NdJ("click",function(a){const m=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.openBigPicture(m,a))}),t.qZA()(),t.YNc(10,Aa,3,6,"td",31),t.qZA()}if(2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Q6J("queryParams",t.VKq(6,K,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity),t.xp6(2),t.Q6J("src",e.Image?e.Image:"//res.cloudinary.com/pos/image/upload/POS/Images/Icon/products_thumb.png",t.LSH),t.xp6(1),t.Q6J("ngIf",0==o)}}function ba(n,l){if(1&n&&(t.TgZ(0,"mainpanel-cmp",1)(1,"content")(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h2"),t._UZ(8,"i",7),t._uU(9,"Pick List "),t.qZA()(),t.TgZ(10,"div",8)(11,"div",9)(12,"table",10)(13,"thead",11)(14,"tr")(15,"th"),t._uU(16,"Outlet"),t.qZA(),t.TgZ(17,"th"),t._uU(18,"State"),t.qZA(),t.TgZ(19,"th"),t._uU(20,"Created"),t.qZA()()(),t.TgZ(21,"tbody"),t.YNc(22,Ca,13,19,"tr",12),t.qZA()()()()()(),t.TgZ(23,"div",13)(24,"div",5)(25,"div",6)(26,"h2"),t._UZ(27,"i",14),t._uU(28,"Products "),t.TgZ(29,"small",15),t._uU(30),t.qZA()()(),t.TgZ(31,"div",8)(32,"table",16)(33,"thead",11)(34,"tr")(35,"th",17),t._uU(36,"Name"),t.qZA(),t.TgZ(37,"th",18),t._uU(38,"Code"),t.qZA(),t.TgZ(39,"th",19),t._uU(40,"Quantity"),t.qZA(),t.TgZ(41,"th",20),t._uU(42,"Image"),t.qZA(),t.TgZ(43,"th",21),t._uU(44,"Fulfillment"),t.qZA()()(),t.TgZ(45,"tbody"),t.YNc(46,Ta,12,8,"tr",22),t.YNc(47,va,11,8,"tr",22),t.qZA()()()()()()()()()),2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),t.xp6(22),t.Q6J("ngForOf",e.data.PickListInfo),t.xp6(8),t.lnq(" (There ",1==e.unpickedItemsCount||0==e.unpickedItemsCount?"is ":"are "," ",e.unpickedItemsCount," product",1==e.unpickedItemsCount||0==e.unpickedItemsCount?"":"s"," unpicked) "),t.xp6(16),t.Q6J("ngForOf",e.pickedItems),t.xp6(1),t.Q6J("ngForOf",e.unpickedItems)}}const Ia=BiggerPicture({target:document.body});let Pa=(()=>{class n extends ha.M{constructor(e,o){super(e),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"unpickedItemsCount",void 0),(0,r.Z)(this,"unpickedItems",void 0),(0,r.Z)(this,"pickedItems",void 0),this.bindData(o.snapshot.queryParams.ID)}bindData(e){const o={SalesOrderID:e};this.menuData$.pipe((0,xa.b)(()=>this.httpService.post("/API/Fulfillment/PickListSummary",JSON.stringify(o)))).subscribe({next:a=>{this.data=a,this.postBindData(a)}})}postBindData(e){this.pickedItems=e.Items.filter(o=>o.Fulfillment),this.unpickedItems=e.Items.filter(o=>!o.Fulfillment),this.unpickedItemsCount=this.unpickedItems.length,this.menuData.H=`Pick List Summary - #${e.InvNumAndOltName}`}openBigPicture(e,o){return(0,A.Z)(function*(){o.preventDefault();try{const a=yield(0,_.FI)(e.Image);Ia.open({items:[a],intro:"fadeup"})}catch(a){alert(a)}})()}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(x.gz))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-summary"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-4"],[1,"card"],[1,"card-header"],[1,"fa-solid","fa-rectangle-list","me-5"],[1,"card-body"],[1,"table-responsive"],[1,"table",2,"width","100%"],[1,"thead-light","sticky-top-thead"],["class","border-bottom",4,"ngFor","ngForOf"],[1,"col-8"],[1,"fa-solid","fa-box","me-5"],[1,"text-muted","h6"],[1,"table","table-bordered"],[1,"border-end",2,"width","250px"],[1,"border-end",2,"width","80px"],[1,"border-end",2,"width","60px"],[1,"border-end",2,"width","97px"],[1,"border-end"],[4,"ngFor","ngForOf"],[1,"border-bottom"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"matTooltip"],[1,"fa-solid","fa-circle-info","ms-2"],["routerLink","/menu/Products/Catalog/Variants/Info","target","_blank",3,"queryParams"],[1,"text-center"],["matTooltipPosition","above","matTooltip","Click to zoom",2,"width","80px","height","80px",3,"src","click"],[1,"bg-gradient-warning"],[4,"ngIf"]],template:function(e,o){1&e&&t.YNc(0,ba,48,9,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,x.rH,Z.p,J.gM,p.uU]})),n})();function ya(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/ListPickToPack","Are you sure you want to pack selected record/s?"))}),t._UZ(1,"i",25),t._uU(2,"Pack "),t.qZA()}}function qa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",27),t._uU(2,"Delete "),t.qZA()}}function Fa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.exportCSV(a.csvConverter,"FulfillmentExport/GetPickFulfillmentPaged","ListDataAssigned.csv"))}),t._UZ(1,"i",29),t._uU(2," Export "),t.qZA()}}function Ua(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.exportXlsx("FulfillmentExport/PackExport","ListDataPack.xlsx"))}),t._UZ(1,"i",29),t._uU(2," Export Xlsx "),t.qZA()}}function Ma(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",32),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function ka(n,l){if(1&n&&(t.TgZ(0,"th",30),t.YNc(1,Ma,1,0,"input",31),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.totalAccessWrite>1)}}function Oa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2).$implicit;return t.KtG(i.selected=a)}),t.qZA()}if(2&n){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.selected)}}function Na(n,l){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Oa,1,1,"input",36),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.Access_Write)}}const wa=function(){return["/menu/Fulfillment/Delivery/All/Info"]},at=function(n){return{ID:n}},Ja=function(){return["/menu/Contacts/Contact/Customers/Info"]};function Sa(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,Na,2,1,"td",33),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._UZ(10,"img",34),t.TgZ(11,"a",35),t._uU(12),t.qZA()(),t.TgZ(13,"td")(14,"a",35),t._uU(15),t.qZA()(),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"date"),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.ALo(21,"date"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",(o.role.fulfillment.Delete||o.role.fulfillment.Edit)&&o.showCheckboxAll),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Oqu(e.AssignedTo),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(19,wa))("queryParams",t.VKq(20,at,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(22,Ja))("queryParams",t.VKq(23,at,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(18,13,e.Assigned,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(21,16,e.Assigned,"HH:mm"))}}function Ea(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,ya,3,0,"a",2),t.YNc(3,qa,3,0,"a",3),t.YNc(4,Fa,3,0,"button",4),t.YNc(5,Ua,3,0,"button",4),t.qZA(),t.TgZ(6,"filters")(7,"div",5)(8,"div",6)(9,"div")(10,"h6"),t._uU(11,"Outlet"),t.qZA(),t.TgZ(12,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(13,"div")(14,"h6"),t._uU(15,"Order"),t.qZA(),t.TgZ(16,"ng-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(17,"div")(18,"h6"),t._uU(19,"Customer"),t.qZA(),t.TgZ(20,"autocompleteV2",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(21,"div")(22,"h6"),t._uU(23,"From"),t.qZA(),t.TgZ(24,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(25,"div")(26,"h6"),t._uU(27,"To"),t.qZA(),t.TgZ(28,"datepicker",11),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(29,"div")(30,"h6"),t._uU(31,"Page Size"),t.qZA(),t.TgZ(32,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(33,"content")(34,"div",13)(35,"div",14)(36,"table",15)(37,"thead",16)(38,"tr",17),t.YNc(39,ka,2,1,"th",18),t.TgZ(40,"th",19),t._uU(41,"Outlet"),t.qZA(),t.TgZ(42,"th",19),t._uU(43,"Order"),t.qZA(),t.TgZ(44,"th",20),t._uU(45,"Assigned To"),t.qZA(),t.TgZ(46,"th",20),t._uU(47,"Number"),t.qZA(),t.TgZ(48,"th"),t._uU(49,"Customer"),t.qZA(),t.TgZ(50,"th",21),t._uU(51,"Assigned"),t.qZA(),t.TgZ(52,"th",21),t._uU(53,"Time"),t.qZA()()(),t.YNc(54,Sa,22,25,"tbody",22),t.qZA()(),t.TgZ(55,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",(e.role.fulfillment.Delete||e.role.fulfillment.Edit)&&e.showCheckboxAll),t.xp6(15),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}const La=[{path:"Delivery/Pick",component:sn},{path:"Delivery/Pick/Form",component:je},{path:"Delivery/Pack",component:re},{path:"Delivery/Ship",component:Wn},{path:"Delivery/Assigned",component:(()=>{class n extends D.n{constructor(e,o,a,i){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"showCheckboxAll",void 0),(0,r.Z)(this,"totalAccessWrite",void 0),this.csvConverter=o,this.role=i}preInitList(){this.pageData.Filter.StateID=this.pageData.Options.States.find(e=>"Assigned"==e.Value).Key}postInit(e){this.totalAccessWrite=0,e.Data.forEach(o=>{o.Access_Write&&(this.totalAccessWrite+=1)}),this.totalAccessWrite>0&&(this.showCheckboxAll=!0)}onSelectAllData(e){this.data.Data=this.data.Data.map(o=>(o.Access_Write&&(o.selected=e),o))}postListID(e,o,a){const i=o.map(m=>a?m[a]:m.ID);this._httpService.post(`/api/${e}`,i).subscribe(m=>{this.toastrService.success(m.Message.replace("pick","assigned"),d.n.Success),this.getListData()})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(I.O),t.Y36(F.O),t.Y36(O._W),t.Y36(U.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-assigned"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Ship","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPackFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Ship",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-truck","me-3"],["value","Delete",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-upload","me-3"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ea,56,20,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[p.sg,p.O5,c.Fj,c.Wl,c.JJ,c.On,x.rH,Z.p,T.QB,C.w9,q.J,S.v,p.uU],encapsulation:2})),n})()},{path:"Delivery/All",component:Bt},{path:"Delivery/All/Info",component:kt},{path:"Delivery/All/Summary",component:Pa},{path:"Allocated/Unfulfilled_Products",component:bn},{path:"Allocated/Unfulfilled_Invoices",component:fa},{path:"Report/Outlet_Performance",component:Jn},{path:"Report/Daily_Fulfillment",component:qn},{path:"Report/Employee_Performance",component:kn},{path:"Report/Product",component:ea},{path:"",redirectTo:"Delivery/Pick",pathMatch:"full"}];let Qa=(()=>{class n{}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)}),(0,r.Z)(n,"\u0275mod",t.oAB({type:n})),(0,r.Z)(n,"\u0275inj",t.cJS({imports:[x.Bz.forChild(La),x.Bz]})),n})();var Ya=s(56709),Ka=s(11594),Ha=s(65131);let Ga=(()=>{class n{}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)}),(0,r.Z)(n,"\u0275mod",t.oAB({type:n})),(0,r.Z)(n,"\u0275inj",t.cJS({imports:[p.ez,c.u5,Qa,Z.R,T.ZU,C.A0,q.Q,Ya.p9,u.d,Q.dr,T.ZU,Ka.K,Ha.X,S.T,J.AV,E.JX,O.Rh,X.O,J.AV]})),n})()},88651:(L,M,s)=>{s.d(M,{U:()=>C});var r=s(81180),p=s(24351),c=s(22863);class C extends c.M{get formData(){return this.data.Form}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}constructor(T,Z,x){super(T),(0,r.Z)(this,"formDataAPI",void 0),(0,r.Z)(this,"route",void 0),(0,r.Z)(this,"data",{}),this.formDataAPI=Z,this.route=x;let A=this.route.snapshot.queryParams;this.menuData$.pipe((0,p.b)(()=>this.httpService.post(`/api/${this.formDataAPI}`,JSON.stringify(A)))).subscribe(D=>{this.data=D,this.postBindForm(D)})}postBindForm(T){}onSubmit(T,Z=!1){this.preSubmitForm(),this.httpService.post(`/api/${T}`,JSON.stringify(this.formData)).subscribe({next:x=>{this.onSubmitSuccess(x)},error:x=>{this.onSubmitError(x)}})}compare(T,Z,x){return(T<Z?-1:1)*(x?1:-1)}preSubmitForm(){}onSubmitSuccess(T){}onSubmitError(T){}}},22414:(L,M,s)=>{s.d(M,{q:()=>T});var r=s(81180),p=s(69751),c=s(95698),C=s(94650),q=s(97185);let T=(()=>{class Z{constructor(A){(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"cloudinaryWidget",void 0),(0,r.Z)(this,"mediaEditorWidget",void 0),(0,r.Z)(this,"unfilteredResult",void 0),(0,r.Z)(this,"config",void 0),this.toastr=A;let D=localStorage.getItem("CloudinaryConfig"),d=atob(D);this.config=JSON.parse(d)}initMediaEditorWidget(A,D){return new p.y(d=>{this.mediaEditorWidget=A.mediaEditor(),this.mediaEditorWidget.update({publicIds:[D],cloudName:this.config.CloudName,image:{steps:["resizeAndCrop","export"],resizeAndCrop:{toggleAspectRatio:!0,aspectRatioLock:!0,flip:!0,rotate:!0,presets:["original"]},export:{quality:["auto"],formats:["png"],download:!0,share:!0}}}),this.mediaEditorWidget.on("export",_=>{d.next(_),d.complete()}),this.mediaEditorWidget.on("close",()=>{d.complete()})}).pipe((0,c.q)(1))}initUploadImageWidget(A,D){return new p.y(d=>{this.cloudinaryWidget=A.createUploadWidget({cloudName:this.config.CloudName,uploadPreset:this.config.UploadPreset,folder:D,googleApiKey:this.config.GoogleApiKey,sources:["local","camera","image_search","instagram"],cropping:this.config.Cropping,croppingCoordinatesMode:"custom",resourceType:"image",croppingDefaultSelectionRatio:1,clientAllowedFormats:["jpg","jpeg","png","gif"]},(_,f)=>{if(!_&&"success"===f.event){this.unfilteredResult=f;const h=f.info.secure_url.split("/").reverse(),g={ImageURL:f.info.secure_url.replace("https:",""),ImageName:h[0]};d.next(g)}_&&this.toastr.error(_.statusText,"Failed to upload image")})})}initUploadMultipleImagesWidget(A,D,d){return new p.y(_=>{this.cloudinaryWidget=A.createUploadWidget({cloudName:this.config.CloudName,uploadPreset:this.config.UploadPreset,folder:D,googleApiKey:this.config.GoogleApiKey,sources:["local","camera","image_search","instagram"],resourceType:"image",croppingDefaultSelectionRatio:1,clientAllowedFormats:["jpg","jpeg","png","gif"],maxFiles:d,text:{en:{notifications:{limit_reached:"You have reached the maximum number of product image (Max 5 Images)"}}}},(f,b)=>{if(f||"success"!==b.event)!f&&"close"===b.event&&_.complete();else{this.unfilteredResult=b;const g=b.info.secure_url.split("/").reverse(),t={ImageURL:b.info.secure_url.replace("https:",""),ImageName:g[0]};_.next(t)}f&&this.toastr.error(f.statusText,"Failed to upload image")})})}initUploadFileWidget(A,D){return new p.y(d=>{this.cloudinaryWidget=A.createUploadWidget({cloudName:this.config.CloudName,uploadPreset:this.config.UploadPreset,folder:D,sources:["local","image_search"],googleApiKey:this.config.GoogleApiKey},(_,f)=>{if(!_&&"success"===f.event){this.unfilteredResult=f;const h=f.info.secure_url.split("/").reverse()[0],g=f.info.secure_url.replace("https:","");d.next({FileName:h,FileURL:g})}})})}openUploadWidget(){this.cloudinaryWidget.open()}openMediaEditorWidget(){this.mediaEditorWidget.show()}destroyImageEditor(){this.mediaEditorWidget.destroy()}updateUploadWidgetMaxFiles(A){this.cloudinaryWidget.update({maxFiles:A})}}return(0,r.Z)(Z,"\u0275fac",function(A){return new(A||Z)(C.LFG(q._W))}),(0,r.Z)(Z,"\u0275prov",C.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"})),Z})()},3077:(L,M,s)=>{s.d(M,{T:()=>h,v:()=>b});var r=s(81180),p=s(36895),c=s(94650),C=s(24006),q=s(65131),T=s(89156),Z=s(83902);function x(g,t){if(1&g&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&g){const u=c.oxw();c.xp6(1),c.AsE(" Showing ",u.pageData.Filter.PageNumber*u.total-u.total+1," - ",u.pageData.Filter.PageNumber*u.total," ")}}function A(g,t){if(1&g&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&g){const u=c.oxw();c.xp6(1),c.AsE(" Showing ",u.pageData.Filter.RowCount*u.pageData.Filter.PageNumber-u.pageData.Filter.RowCount+1," - ",u.pageData.Filter.RowCount*u.pageData.Filter.PageNumber-u.pageData.Filter.RowCount+u.total," ")}}function D(g,t){if(1&g){const u=c.EpF();c.TgZ(0,"span",8),c.NdJ("click",function(){c.CHM(u);const k=c.oxw();return c.KtG(k.StoreRowsCountAPIResult())}),c.TgZ(1,"i",9),c._uU(2,"?"),c.qZA()()}}function d(g,t){if(1&g&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&g){const u=c.oxw();c.xp6(1),c.hij(" of ",c.lcZ(2,1,u.listTotal),"")}}function _(g,t){if(1&g){const u=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(u);const k=c.oxw();return c.KtG(k.onPreviousPage())}),c._UZ(1,"i",11),c._uU(2," Previous"),c.qZA()}}function f(g,t){if(1&g){const u=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(u);const k=c.oxw();return c.KtG(k.onNextPage())}),c._UZ(1,"i",12),c._uU(2," Next"),c.qZA()}}let b=(()=>{class g{constructor(u){(0,r.Z)(this,"httpService",void 0),(0,r.Z)(this,"pageData",void 0),(0,r.Z)(this,"total",void 0),(0,r.Z)(this,"api",void 0),(0,r.Z)(this,"jumpToPage",new c.vpe),(0,r.Z)(this,"previousPage",new c.vpe),(0,r.Z)(this,"nextPage",new c.vpe),(0,r.Z)(this,"pageNumber",1),(0,r.Z)(this,"showingNumber",this.pageNumber),(0,r.Z)(this,"listTotal",-1),this.httpService=u}onJumpToPage(u){"Enter"===u.key&&(this.pageData.Filter.PageNumber=this.pageNumber,this.showingNumber=this.pageNumber,this.jumpToPage.emit())}onPreviousPage(){this.pageData.Filter.PageNumber-=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.previousPage.emit()}onNextPage(){this.pageData.Filter.PageNumber+=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.nextPage.emit()}StoreRowsCountAPIResult(){this.httpService.post("/api/"+this.api,JSON.stringify(this.pageData.Filter)).subscribe(u=>{this.listTotal=u.Count?u.Count:u,this.pageData.HideStoreApiCount=!0})}}return(0,r.Z)(g,"\u0275fac",function(u){return new(u||g)(c.Y36(T.O))}),(0,r.Z)(g,"\u0275cmp",c.Xpm({type:g,selectors:[["POS-complex-pagination"]],inputs:{pageData:"pageData",total:"total",api:"api"},outputs:{jumpToPage:"jumpToPage",previousPage:"previousPage",nextPage:"nextPage"},decls:12,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],[4,"ngIf"],["style","cursor: pointer",3,"click",4,"ngIf"],["type","text","autoNum","",1,"text-end",2,"width","45px",3,"ngModel","keyup","ngModelChange"],[1,"btn-group"],["class","btn btn-outline-secondary btn-sm text-primary",3,"click",4,"ngIf"],[2,"cursor","pointer",3,"click"],[1,"border","p-3"],[1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-left"],[1,"fa-solid","fa-arrow-right"]],template:function(u,y){1&u&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2),c.YNc(3,x,2,2,"span",3),c.YNc(4,A,2,2,"span",3),c.YNc(5,D,3,0,"span",4),c.YNc(6,d,3,3,"span",3),c._uU(7," records ~ Page "),c.TgZ(8,"input",5),c.NdJ("keyup",function(I){return y.onJumpToPage(I)})("ngModelChange",function(I){return y.pageNumber=I}),c.qZA()()(),c.TgZ(9,"div",6),c.YNc(10,_,3,0,"a",7),c.YNc(11,f,3,0,"a",7),c.qZA()()),2&u&&(c.xp6(3),c.Q6J("ngIf",y.pageData.Filter.RowCount==y.total),c.xp6(1),c.Q6J("ngIf",y.pageData.Filter.RowCount!=y.total),c.xp6(1),c.Q6J("ngIf",!y.pageData.HideStoreApiCount),c.xp6(1),c.Q6J("ngIf",y.pageData.HideStoreApiCount),c.xp6(2),c.Q6J("ngModel",y.pageNumber),c.xp6(2),c.Q6J("ngIf",1!=y.pageData.Filter.PageNumber),c.xp6(1),c.Q6J("ngIf",y.total>=y.pageData.Filter.RowCount))},dependencies:[p.O5,C.Fj,C.JJ,C.On,Z.b,p.JJ]})),g})(),h=(()=>{class g{}return(0,r.Z)(g,"\u0275fac",function(u){return new(u||g)}),(0,r.Z)(g,"\u0275mod",c.oAB({type:g})),(0,r.Z)(g,"\u0275inj",c.cJS({imports:[p.ez,C.u5,C.UX,q.X]})),g})()},11594:(L,M,s)=>{s.d(M,{K:()=>D,P:()=>A});var r=s(81180),p=s(94650),c=s(10266),C=s(71948),q=s(36895),T=s(24006);const Z=function(d,_){return{color:d,"font-weight":_}};function x(d,_){if(1&d&&(p.TgZ(0,"mat-radio-button",2),p._uU(1),p.qZA()),2&d){const f=_.$implicit,b=_.index,h=p.oxw();p.Akn(p.WLB(7,Z,h.model==f.Key&&h.activeBold?"#0976b4":"",h.model==f.Key&&h.activeBold?"700":"")),p.Q6J("disabled",h.exception==f.Value)("matTooltip",h.title.length>0?h.title[b]:"")("value",f.Key)("name",h.name),p.xp6(1),p.hij("",f.Value," ")}}let A=(()=>{class d{constructor(){(0,r.Z)(this,"model",void 0),(0,r.Z)(this,"disabled",void 0),(0,r.Z)(this,"modelChange",new p.vpe),(0,r.Z)(this,"options",[{Key:!1,Value:"No"},{Key:!0,Value:"Yes"}]),(0,r.Z)(this,"border",!1),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"title",[]),(0,r.Z)(this,"exception",void 0),(0,r.Z)(this,"activeBold",void 0)}change(f){this.modelChange.emit(f)}}return(0,r.Z)(d,"\u0275fac",function(f){return new(f||d)}),(0,r.Z)(d,"\u0275cmp",p.Xpm({type:d,selectors:[["radio-options"]],inputs:{model:"model",disabled:"disabled",options:"options",border:"border",name:"name",title:"title",exception:"exception",activeBold:"activeBold"},outputs:{modelChange:"modelChange"},decls:2,vars:3,consts:[["color","primary",3,"disabled","ngModel","ngModelChange"],["matTooltipPosition","above","class","me-4 mt-1",3,"style","disabled","matTooltip","value","name",4,"ngFor","ngForOf"],["matTooltipPosition","above",1,"me-4","mt-1",3,"disabled","matTooltip","value","name"]],template:function(f,b){1&f&&(p.TgZ(0,"mat-radio-group",0),p.NdJ("ngModelChange",function(g){return b.change(g)}),p.YNc(1,x,2,10,"mat-radio-button",1),p.qZA()),2&f&&(p.Q6J("disabled",b.disabled)("ngModel",b.model),p.xp6(1),p.Q6J("ngForOf",b.options))},dependencies:[C.VQ,C.U0,q.sg,T.JJ,T.On,c.gM],styles:[".mat-mdc-radio-button .mdc-radio{padding:8px;margin:0}.mat-mdc-radio-button .mdc-radio .mdc-radio__background:before{top:-8px;left:-8px;width:36px;height:36px}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:0;right:0;left:0;width:36px;height:36px}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#0976b4!important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{background-color:#0976b4!important;border-color:#0976b4!important}\n"],encapsulation:2})),d})(),D=(()=>{class d{}return(0,r.Z)(d,"\u0275fac",function(f){return new(f||d)}),(0,r.Z)(d,"\u0275mod",p.oAB({type:d})),(0,r.Z)(d,"\u0275inj",p.cJS({imports:[C.Fk,q.ez,T.u5,c.AV]})),d})()}}]);
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[2750],{72750:(L,F,p)=>{p.r(F),p.d(F,{FulfillmentModule:()=>Ga});var r=p(81180),s=p(36895),c=p(24006),D=p(88796),h=p(58393),C=p(98085),x=p(30273),Z=p(9116),v=p(15861),A=p(4077),d=p(96700),_=p(67327),f=p(39300),I=p(63900),T=p(65412),g=p(42046),t=p(94650),m=p(63165);let q=(()=>{class n{constructor(e,o){(0,r.Z)(this,"dialogRef",void 0),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"config",void 0),(0,r.Z)(this,"state",void 0),this.dialogRef=e,this.data=o,this.config=new g.O,this.state=o.state,this.config.title=o.title,this.config.customWidth="400px"}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(T.so),t.Y36(T.WI))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-modal-confirm-shipping"]],decls:4,vars:2,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container-fluid",2,"font-size","16px"]],template:function(e,o){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return o.dialogRef.close("confirm")})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t.TgZ(1,"content")(2,"div",1),t._uU(3),t.qZA()()()),2&e&&(t.Q6J("config",o.config),t.xp6(3),t.hij(" Are you sure you want to ",0==o.state||1==o.state?"pack":"ship"," this product(s)? "))},dependencies:[m.M]})),n})(),k=(()=>{class n{constructor(e,o){(0,r.Z)(this,"dialogRef",void 0),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"config",void 0),(0,r.Z)(this,"users",[]),(0,r.Z)(this,"userID",void 0),this.dialogRef=e,this.data=o,this.config=new g.O,this.config.title="Assign Pick to?",this.users=o.users,console.log(this.users)}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(T.so),t.Y36(T.WI))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-modal-assign-user"]],decls:4,vars:3,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container-fluid",2,"width","300px"],["bindLabel","Value","appendTo","body","bindValue","Key","placeholder","Choose a user",3,"ngModel","items","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return o.dialogRef.close(o.userID)})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t.TgZ(1,"content")(2,"div",1)(3,"ng-select",2),t.NdJ("ngModelChange",function(i){return o.userID=i}),t.qZA()()()()),2&e&&(t.Q6J("config",o.config),t.xp6(3),t.Q6J("ngModel",o.userID)("items",o.users))},dependencies:[c.JJ,c.On,D.w9,m.M]})),n})();var P=p(89156),O=p(97185),j=p(11481),J=p(10266),Q=p(93669);function ot(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.delete(a.data.Data.ID))}),t._UZ(1,"i",9),t._uU(2,"Delete "),t.qZA()}}function it(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openShipDialog())}),t._UZ(1,"i",11),t._uU(2,"Pack "),t.qZA()}}function lt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openAssignUserDialog())}),t._UZ(1,"i",12),t._uU(2,"Assign To "),t.qZA()}}function rt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openShipDialog())}),t._UZ(1,"i",13),t._uU(2,"Ship "),t.qZA()}}const ct=function(){return["/menu/Fulfillment/Delivery/All/Summary"]},Y=function(n){return{ID:n}};function pt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Fulfillment"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td")(6,"a",24),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(6),t.Q6J("routerLink",t.DdM(3,ct))("queryParams",t.VKq(4,Y,e.data.Data.SalesOrderID)),t.xp6(1),t.hij("Send from ",e.data.Data.TotalCreatedPickList," locations")}}function st(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td")(6,"a",26),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(4);t.xp6(6),t.Q6J("queryParams",t.VKq(2,Y,null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.ID)),t.xp6(1),t.hij(" ",null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Name," ")}}function _t(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Mobile)}}function ut(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Email"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Email)}}function mt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.City)}}function dt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Customer?null:e.data.Data.Customer.Address)}}function gt(n,l){if(1&n&&(t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",25),t._uU(4,"Customer "),t.qZA()(),t.TgZ(5,"div",18)(6,"table",19),t.YNc(7,st,8,4,"tr",20),t.YNc(8,_t,7,1,"tr",20),t.YNc(9,ut,7,1,"tr",20),t.YNc(10,mt,7,1,"tr",20),t.YNc(11,dt,7,1,"tr",20),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(7),t.Q6J("ngIf",e.data.Data.Customer.Name),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.Mobile),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.Email),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.City),t.xp6(1),t.Q6J("ngIf",e.data.Data.Customer.Address)}}function ft(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.Name)}}function ht(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.Phone)}}function xt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.City)}}function Zt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(null==e.data.Data||null==e.data.Data.Recipient?null:e.data.Data.Recipient.Address)}}function Ct(n,l){if(1&n&&(t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",25),t._uU(4,"Recipient "),t.qZA()(),t.TgZ(5,"div",18)(6,"table",19),t.YNc(7,ft,7,1,"tr",20),t.YNc(8,ht,7,1,"tr",20),t.YNc(9,xt,7,1,"tr",20),t.YNc(10,Zt,7,1,"tr",20),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(7),t.Q6J("ngIf",e.data.Data.Recipient.Name),t.xp6(1),t.Q6J("ngIf",e.data.Data.Recipient.Phone),t.xp6(1),t.Q6J("ngIf",e.data.Data.Recipient.City),t.xp6(1),t.Q6J("ngIf",e.data.Data.Recipient.Address)}}function Tt(n,l){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15)(2,"div",16)(3,"h2"),t._UZ(4,"i",17),t._uU(5,"Fulfillment "),t.qZA()(),t.TgZ(6,"div",18)(7,"table",19)(8,"tr")(9,"th"),t._uU(10,"Outlet"),t.qZA(),t.TgZ(11,"td"),t._uU(12,":"),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA()(),t.YNc(15,pt,8,6,"tr",20),t.TgZ(16,"tr")(17,"th"),t._uU(18,"Status"),t.qZA(),t.TgZ(19,"td"),t._uU(20,":"),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA()()()()(),t.TgZ(23,"div",15)(24,"div",16)(25,"h2"),t._UZ(26,"i",21),t._uU(27,"Order "),t.qZA()(),t.TgZ(28,"div",18)(29,"table",19)(30,"tr")(31,"th"),t._uU(32,"Outlet"),t.qZA(),t.TgZ(33,"td"),t._uU(34,":"),t.qZA(),t.TgZ(35,"td"),t._uU(36),t.qZA()(),t.TgZ(37,"tr")(38,"th"),t._uU(39,"Invoice"),t.qZA(),t.TgZ(40,"td"),t._uU(41,":"),t.qZA(),t.TgZ(42,"td")(43,"a",22),t._uU(44),t.qZA()()(),t.TgZ(45,"tr")(46,"th"),t._uU(47,"Date"),t.qZA(),t.TgZ(48,"td"),t._uU(49,":"),t.qZA(),t.TgZ(50,"td"),t._uU(51),t.ALo(52,"date"),t.qZA()()()()(),t.YNc(53,gt,12,5,"div",23),t.YNc(54,Ct,11,4,"div",23),t.qZA()),2&n){const e=t.oxw(2);t.xp6(14),t.hij(" ",e.data.Data.AssignOutlet," "),t.xp6(1),t.Q6J("ngIf",e.data.Data.TotalCreatedPickList>1),t.xp6(7),t.hij(" ",e.data.Data.StateString," "),t.xp6(14),t.hij(" ",e.data.Data.SourceOutlet," "),t.xp6(7),t.Q6J("queryParams",t.VKq(12,Y,e.data.Data.InvoiceID)),t.xp6(1),t.Oqu(e.data.Data.Number),t.xp6(7),t.hij(" ",t.xi3(52,9,e.data.Data.InvoiceDate,"dd MMM yyyy")," "),t.xp6(2),t.Q6J("ngIf",null==e.data.Data?null:e.data.Data.Customer),t.xp6(1),t.Q6J("ngIf",null==e.data.Data?null:e.data.Data.Recipient)}}function Dt(n,l){if(1&n&&(t.TgZ(0,"small",36),t._uU(1),t.ALo(2,"sum"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" (Quantity: ",t.xi3(2,1,null==e.data?null:e.data.Data.Items,"Quantity"),") ")}}function At(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"img",40),t.NdJ("click",function(a){t.CHM(e);const i=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.openBigPicture(i,a))}),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("src",e.Image,t.LSH)}}function vt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"div",37),t.YNc(3,At,1,1,"img",38),t.TgZ(4,"div")(5,"a",39),t._uU(6),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.qZA()()()(),t.TgZ(9,"td"),t._uU(10),t.qZA()()),2&n){const e=l.$implicit;t.xp6(3),t.Q6J("ngIf",e.Image),t.xp6(2),t.Q6J("queryParams",t.VKq(5,Y,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity)}}function bt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",41),t._uU(4,"Packing Slip "),t.qZA()(),t.TgZ(5,"div",18)(6,"a",42),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.goToDocumentUrl(null==a.data?null:a.data.Data.DocumentURL))}),t._uU(7),t.qZA()()()}if(2&n){const e=t.oxw(3);t.xp6(7),t.hij(" ",null==e.data?null:e.data.Data.DocumentURL," ")}}function It(n,l){if(1&n&&(t.TgZ(0,"div",15)(1,"div",16)(2,"h2"),t._UZ(3,"i",43),t._uU(4,"Note "),t.qZA()(),t._UZ(5,"div",44),t.qZA()),2&n){const e=t.oxw(3);t.xp6(5),t.Q6J("innerHTML",e.data.Data.Note,t.oJD)}}function Pt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Assigned"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(4),t.Oqu(e.data.Data.AssignTo),t.xp6(2),t.Oqu(t.xi3(7,3,e.data.Data.Assigned,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Oqu(e.data.Data.assignedDuration)}}function yt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Packed"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(4),t.Oqu(e.data.Data.PackedBy),t.xp6(2),t.Oqu(t.xi3(7,3,e.data.Data.Packed,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Oqu(e.data.Data.packedDuration)}}function qt(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Shipped"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(4),t.Oqu(e.data.Data.ShippedBy),t.xp6(2),t.Oqu(t.xi3(7,3,e.data.Data.Shipped,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Oqu(e.data.Data.shippedDuration)}}function Ft(n,l){if(1&n&&(t.TgZ(0,"div",27)(1,"div",15)(2,"div",16)(3,"h2"),t._UZ(4,"i",28),t._uU(5,"Products "),t.YNc(6,Dt,3,4,"small",29),t.qZA()(),t.TgZ(7,"div",18)(8,"table",30)(9,"thead",31)(10,"tr")(11,"th"),t._uU(12,"Name"),t.qZA(),t.TgZ(13,"th",32),t._uU(14,"Qty"),t.qZA()()(),t.TgZ(15,"tbody"),t.YNc(16,vt,11,7,"tr",33),t.qZA()()()(),t.YNc(17,bt,8,1,"div",23),t.YNc(18,It,6,1,"div",23),t.TgZ(19,"div",15)(20,"div",16)(21,"h2"),t._UZ(22,"i",34),t._uU(23,"History "),t.qZA()(),t.TgZ(24,"div",18)(25,"table",35)(26,"thead",31)(27,"tr")(28,"th"),t._uU(29,"State"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"User"),t.qZA(),t.TgZ(32,"th"),t._uU(33,"Date"),t.qZA(),t.TgZ(34,"th"),t._uU(35,"Duration"),t.qZA()()(),t.TgZ(36,"tbody")(37,"tr")(38,"td"),t._uU(39,"Created"),t.qZA(),t.TgZ(40,"td"),t._uU(41),t.qZA(),t.TgZ(42,"td"),t._uU(43),t.ALo(44,"date"),t.qZA(),t._UZ(45,"td"),t.qZA(),t.YNc(46,Pt,10,6,"tr",20),t.YNc(47,yt,10,6,"tr",20),t.YNc(48,qt,10,6,"tr",20),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.data.Data.Items.length>1),t.xp6(10),t.Q6J("ngForOf",e.data.Data.Items),t.xp6(1),t.Q6J("ngIf",null==e.data?null:e.data.Data.DocumentURL),t.xp6(1),t.Q6J("ngIf",null==e.data?null:e.data.Data.Note),t.xp6(23),t.Oqu(e.data.Data.Creator),t.xp6(2),t.Oqu(t.xi3(44,9,e.data.Data.Created,"EEEE, dd MMM YYYY HH:mm")),t.xp6(3),t.Q6J("ngIf",e.data.Data.AssignTo),t.xp6(1),t.Q6J("ngIf",e.data.Data.PackedBy),t.xp6(1),t.Q6J("ngIf",e.data.Data.ShippedBy)}}function Ut(n,l){if(1&n&&(t.TgZ(0,"mainpanel-cmp",1)(1,"actions"),t.YNc(2,ot,3,0,"button",2),t.YNc(3,it,3,0,"button",3),t.YNc(4,lt,3,0,"button",3),t.YNc(5,rt,3,0,"button",3),t.qZA(),t.TgZ(6,"content")(7,"div",4)(8,"div",5),t.YNc(9,Tt,55,14,"div",6),t.YNc(10,Ft,49,12,"div",7),t.qZA()()()()),2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf",e.data.Data.RoleDelete),t.xp6(1),t.Q6J("ngIf",(0==e.data.Data.State||1==e.data.Data.State)&&e.data.Data.RoleDelivery),t.xp6(1),t.Q6J("ngIf",0==e.data.Data.State&&e.data.Data.RoleDelivery),t.xp6(1),t.Q6J("ngIf",2==e.data.Data.State&&e.data.Data.RoleDelivery),t.xp6(4),t.Q6J("ngIf",e.data.Data),t.xp6(1),t.Q6J("ngIf",e.data.Data)}}const Mt=BiggerPicture({target:document.body});let kt=(()=>{class n extends A.n{constructor(e,o,a,i,u,b,y){super(e,"Fulfillment/GetPickListDetail",null,i,o),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"title",void 0),(0,r.Z)(this,"sanitizer",void 0),(0,r.Z)(this,"location",void 0),(0,r.Z)(this,"users",void 0),(0,r.Z)(this,"urlPdf",void 0),(0,r.Z)(this,"stateID",void 0),this.matDialog=a,this.toastr=i,this.title=u,this.sanitizer=b,this.location=y}preGetList(){this.pageData.Filter=this.route.snapshot.queryParams}postInit(e){this.menuData.H=`${e.Data.PageTitleState} #${e.Data.Number}`;const a=this.title.getTitle().split(" | ")[0];this.title.setTitle(`${a} | ${e.Data.PageTitleState} List Info`),this.cleanURL(e.Data.DocumentURL),this.stateID=e.Data.State,this.getStateDuration(),this._httpService.post("/api/Fulfillment/GetUserListToAssign",JSON.stringify({OutletID:e.Data.OutletID})).subscribe({next:i=>{this.users=i,console.log(this.users)}})}delete(e){let o="Are you sure you want to delete selected record/s?",a="/api/Fulfillment/RemovePickListByID";2==this.stateID&&(o="This will also delete the outbound logistic for this order, your inventory will be returned \n"+o,a="/api/Fulfillment/RemoveShipByID"),0!=confirm(o)&&this._httpService.post(a,JSON.stringify({ID:e})).subscribe({next:i=>{this.toastr.success(i.Message,d.n.Success),this.location.back()}})}openShipDialog(){const e=0==this.data.Data.State||1==this.data.Data.State?"PickToPack":"PackToShip";this.matDialog.open(q,{data:{state:this.data.Data.State,title:`Confirm ${this.data.Data.PageTitleState}`}}).afterClosed().pipe((0,f.h)(o=>_.gT.IsNotEmpty(o))).subscribe(()=>{this.postData(`Fulfillment/${e}`,this.data.Data)})}openAssignUserDialog(){this.matDialog.open(k,{data:{users:this.users}}).afterClosed().pipe((0,f.h)(e=>_.gT.IsNotEmpty(e)),(0,I.w)(e=>this._httpService.post("/api/Fulfillment/PickToAssign",{ID:this.data.Data.ID,AssignTo:e}))).subscribe(e=>{this.toastr.success(e.Message,d.n.Success)})}openBigPicture(e,o){return(0,v.Z)(function*(){o.preventDefault();try{const a=yield(0,_.FI)(e.Image);Mt.open({items:[a],intro:"fadeup"})}catch(a){alert(a)}})()}cleanURL(e){this.urlPdf=this.sanitizer.bypassSecurityTrustUrl(e)}goToDocumentUrl(e){e&&window.open(e,"_blank")}getState(){let e="Picked";return e=1==this.data.Data.State?"Packed":"Shipped",e}getStateDuration(){const e=this.data.Data?.Packed!==_.gT.MinDate?new Date(this.data.Data?.Packed):null,o=this.data.Data?.Shipped!==_.gT.MinDate?new Date(this.data.Data?.Shipped):null,a=this.data.Data?.Assigned!==_.gT.MinDate?new Date(this.data.Data?.Assigned):null,i=new Date(this.data.Data?.Created);if(_.gT.IsNotEmpty(a)){let u=_.gT.differentInDays(i,a),b=_.gT.hoursDiff(i,a),y=_.gT.minutesDiff(i,a);this.data.Data.assignedDuration=this.getDifferentDateFormat(u,b,y)}if(_.gT.IsNotEmpty(e)&&_.gT.IsEmpty(a)){let u=_.gT.differentInDays(i,e),b=_.gT.hoursDiff(i,e),y=_.gT.minutesDiff(i,e);this.data.Data.packedDuration=this.getDifferentDateFormat(u,b,y)}if(_.gT.IsNotEmpty(e)&&_.gT.IsNotEmpty(a)){let u=_.gT.differentInDays(a,e),b=_.gT.hoursDiff(a,e),y=_.gT.minutesDiff(a,e);this.data.Data.packedDuration=this.getDifferentDateFormat(u,b,y)}if(_.gT.IsNotEmpty(o)){let u=_.gT.differentInDays(e,o),b=_.gT.hoursDiff(e,o),y=_.gT.minutesDiff(e,o);this.data.Data.shippedDuration=this.getDifferentDateFormat(u,b,y)}}getDifferentDateFormat(e,o,a){let i;return e>=1?(i=`${e} days`,i):o>=1?(i=`${o} hours`,i):(i=`${a} minutes`,i)}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(Z.gz),t.Y36(T.uw),t.Y36(O._W),t.Y36(j.Dx),t.Y36(j.H7),t.Y36(s.Ye))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-all-info"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["class","btn btn-outline-secondary ms-5",3,"click",4,"ngIf"],[1,"container-fluid","card-container","mt-5"],[1,"row"],["class","col-sm-4",4,"ngIf"],["class","col-sm-8",4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","ms-5",3,"click"],[1,"fa-solid","fa-box","me-3"],[1,"fa-solid","fa-user","me-3"],[1,"fa-solid","fa-truck","me-3"],[1,"col-sm-4"],[1,"card"],[1,"card-header"],[1,"fa-solid","fa-truck","me-5"],[1,"card-body"],[1,"table-sm","table-borderless"],[4,"ngIf"],["aria-hidden","true",1,"fa-file-alt","fas","me-5"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info","target","_blank",1,"ps-0",3,"queryParams"],["class","card",4,"ngIf"],["target","_blank",1,"ps-0",3,"routerLink","queryParams"],[1,"fa-solid","fa-address-card","me-5"],["routerLink","/menu/Contacts/Contact/Customers/Info","target","_blank",1,"ps-0",3,"queryParams"],[1,"col-sm-8"],[1,"fa-solid","fa-box","me-5"],["class","text-muted h6",4,"ngIf"],[1,"table"],[1,"thead-light"],[2,"width","60px"],[4,"ngFor","ngForOf"],[1,"fa-solid","fa-clock-rotate-left","me-5"],[1,"table","table-bordered"],[1,"text-muted","h6"],[1,"d-flex","align-items-center"],["class","me-5","style","width:80px; height: 80px;","matTooltipPosition","above","matTooltip","Click to zoom",3,"src","click",4,"ngIf"],["routerLink","/menu/Products/Catalog/Variants/Info","target","_blank",3,"queryParams"],["matTooltipPosition","above","matTooltip","Click to zoom",1,"me-5",2,"width","80px","height","80px",3,"src","click"],[1,"fa-solid","fa-file","me-5"],[1,"documentURL",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-note-sticky","me-5"],[1,"card-body",3,"innerHTML"]],template:function(e,o){1&e&&t.YNc(0,Ut,11,9,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,Z.rH,x.p,J.gM,s.uU,Q.qU]})),n})();var N=p(17554),U=p(24424),M=p(51161),S=p(3077);function Ot(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",28),t._uU(2," Export"),t.qZA()}}function Nt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",30),t._uU(2,"Delete "),t.qZA()}}function wt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"div")(2,"h6"),t._uU(3,"Status"),t.qZA(),t.TgZ(4,"ng-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.pageData.Filter.StateID=a)}),t.qZA()(),t.TgZ(5,"div")(6,"h6"),t._uU(7,"Page Size"),t.qZA(),t.TgZ(8,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("items",e.pageData.Options.States)("ngModel",e.pageData.Filter.StateID),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount)}}function Jt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"th",34)(1,"input",35),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()()}}function St(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"td")(1,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.selected=a)}),t.qZA()()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.selected)}}const Et=function(){return["/menu/Fulfillment/Delivery/All/Info"]},W=function(n){return{ID:n}};function Lt(n,l){if(1&n&&(t.TgZ(0,"a",39),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.DdM(3,Et))("queryParams",t.VKq(4,W,e.ID)),t.xp6(1),t.Oqu(e.Number)}}function Qt(n,l){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.Number)}}const Yt=function(){return["/print/OutDelivery"]},Kt=function(n,l){return{ID:n,Template:l}};function Ht(n,l){if(1&n&&(t.TgZ(0,"td")(1,"a",41),t._UZ(2,"i",42),t.qZA()()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("routerLink",t.DdM(2,Yt))("queryParams",t.WLB(3,Kt,e.ID,e.TemplateID))}}const Gt=function(){return["/menu/Contacts/Contact/Customers/Info"]},Rt=function(n,l,e){return{"text-success":n,"text-warning":l,"text-danger":e}};function Vt(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,St,2,1,"td",36),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",37),t.YNc(9,Lt,2,6,"a",38),t.YNc(10,Qt,2,1,"span",36),t.qZA(),t.TgZ(11,"td")(12,"a",39),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA(),t.TgZ(20,"td"),t._uU(21),t.qZA(),t.YNc(22,Ht,3,6,"td",36),t.qZA()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",o.role.fulfillment.Delete),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("ngIf",o.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",!o.role.fulfillment.Edit),t.xp6(2),t.Q6J("routerLink",t.DdM(21,Gt))("queryParams",t.VKq(22,W,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,15,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,18,e.Created,"HH:mm")),t.xp6(2),t.Tol(t.kEZ(24,Rt,"Ship"==e.DeliveryState,"Pack"==e.DeliveryState,"Pick"==e.DeliveryState)),t.xp6(1),t.hij(" ",e.DeliveryState,""),t.xp6(1),t.Q6J("ngIf","Ship"==e.DeliveryState)}}function Bt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Ot,3,0,"button",2),t.YNc(3,Nt,3,0,"a",3),t.qZA(),t.TgZ(4,"filters")(5,"div",4)(6,"div",5)(7,"div")(8,"h6"),t._uU(9,"Outlet"),t.qZA(),t.TgZ(10,"ng-select",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(11,"div")(12,"h6"),t._uU(13,"Order"),t.qZA(),t.TgZ(14,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(15,"div")(16,"h6"),t._uU(17,"Customer"),t.qZA(),t.TgZ(18,"autocompleteV2",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(19,"div")(20,"h6"),t._uU(21,"From"),t.qZA(),t.TgZ(22,"datepicker",9),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(23,"div")(24,"h6"),t._uU(25,"To"),t.qZA(),t.TgZ(26,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()(),t.YNc(27,wt,9,3,"div",11),t.qZA(),t.TgZ(28,"a",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.hideMore=!a.hideMore)}),t._uU(29),t._UZ(30,"i",13),t.qZA()(),t.TgZ(31,"content")(32,"div",14)(33,"div",15)(34,"table",16)(35,"thead",17)(36,"tr",18),t.YNc(37,Jt,2,0,"th",19),t.TgZ(38,"th",20),t._uU(39,"Outlet"),t.qZA(),t.TgZ(40,"th",20),t._uU(41,"Order"),t.qZA(),t.TgZ(42,"th",21),t._uU(43,"Number"),t.qZA(),t.TgZ(44,"th"),t._uU(45,"Customer"),t.qZA(),t.TgZ(46,"th",22),t._uU(47,"Created"),t.qZA(),t.TgZ(48,"th",22),t._uU(49,"Time"),t.qZA(),t.TgZ(50,"th",23),t._uU(51,"Status"),t.qZA(),t._UZ(52,"th",24),t.qZA()(),t.YNc(53,Vt,23,28,"tbody",25),t.qZA()(),t.TgZ(54,"POS-complex-pagination",26),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(7),t.Q6J("items",e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(1),t.Q6J("ngIf",!e.hideMore),t.xp6(2),t.hij("",e.hideMore?"More":"Less"," "),t.xp6(8),t.Q6J("ngIf",e.role.fulfillment.Delete),t.xp6(16),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let jt=(()=>{class n extends A.n{constructor(e,o,a,i,u){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",o),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"hideMore",!0),this.csvConverter=a,this.role=i,this.matDialog=u}openExportModal(){this.matDialog.open(N.H,{data:{title:"All Fulfillment",exportTypes:[{ID:"FulfillmentExport/AllExport",Value:"Default",FileName:"All Fulfillment"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetPickListCount",pagination:!0}})}ngOnInit(){}getRedirectUrlInfo(e){let o;switch(e){case"Ship":o="/menu/Fulfillment/Delivery/Ship/Info";break;case"Pack":o="/menu/Fulfillment/Delivery/Pack/Info";break;case"Pick":o="/menu/Fulfillment/Delivery/Pick/Info"}return o}getDateCreated(e,o,a){return a!=_.gT.MinDate?a:o!=_.gT.MinDate?o:e}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(O._W),t.Y36(U.O),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-all"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary ms-5",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["id","more-filter","class","ms-6","container","",4,"ngIf"],[1,"more",3,"click"],[1,"fa-solid","fa-caret-down"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[2,"width","70px"],[2,"width","10px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPickListCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["value","Delete",1,"btn","btn-outline-secondary","ms-5",3,"click"],[1,"fa-solid","fa-trash","me-3"],["id","more-filter","container","",1,"ms-6"],["bindLabel","Value","bindValue","Key","placeholder","Choose an Status",3,"items","ngModel","ngModelChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[2,"width","14px"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams",4,"ngIf"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange"],["target","_blank","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-print"]],template:function(e,o){1&e&&t.YNc(0,Bt,55,19,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.Fj,c.Wl,c.JJ,c.On,Z.rH,x.p,C.QB,D.w9,h.J,S.v,s.uU]})),n})();function Wt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/ListPackToShip","Are you sure you want to ship selected record/s?"))}),t._UZ(1,"i",25),t._uU(2,"Ship "),t.qZA()}}function $t(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",27),t._uU(2,"Delete "),t.qZA()}}function zt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",29),t._uU(2," Export"),t.qZA()}}function Xt(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",32),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function te(n,l){if(1&n&&(t.TgZ(0,"th",30),t.YNc(1,Xt,1,0,"input",31),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.totalAccessWrite>1)}}function ee(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2).$implicit;return t.KtG(i.selected=a)}),t.qZA()}if(2&n){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.selected)}}function ne(n,l){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,ee,1,1,"input",36),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.Access_Write)}}const ae=function(){return["/menu/Fulfillment/Delivery/All/Info"]},$=function(n){return{ID:n}},oe=function(){return["/menu/Contacts/Contact/Customers/Info"]};function ie(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,ne,2,1,"td",33),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",34),t.TgZ(9,"a",35),t._uU(10),t.qZA()(),t.TgZ(11,"td")(12,"a",35),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",(o.role.fulfillment.Delete||o.role.fulfillment.Edit)&&o.showCheckboxAll),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(18,ae))("queryParams",t.VKq(19,$,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(21,oe))("queryParams",t.VKq(22,$,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,12,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,15,e.Packed,"HH:mm"))}}function le(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Wt,3,0,"a",2),t.YNc(3,$t,3,0,"a",3),t.YNc(4,zt,3,0,"button",4),t.qZA(),t.TgZ(5,"filters")(6,"div",5)(7,"div",6)(8,"div")(9,"h6"),t._uU(10,"Outlet"),t.qZA(),t.TgZ(11,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(12,"div")(13,"h6"),t._uU(14,"Order"),t.qZA(),t.TgZ(15,"ng-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(16,"div")(17,"h6"),t._uU(18,"Customer"),t.qZA(),t.TgZ(19,"autocompleteV2",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(20,"div")(21,"h6"),t._uU(22,"From"),t.qZA(),t.TgZ(23,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(24,"div")(25,"h6"),t._uU(26,"To"),t.qZA(),t.TgZ(27,"datepicker",11),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(28,"div")(29,"h6"),t._uU(30,"Page Size"),t.qZA(),t.TgZ(31,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(32,"content")(33,"div",13)(34,"div",14)(35,"table",15)(36,"thead",16)(37,"tr",17),t.YNc(38,te,2,1,"th",18),t.TgZ(39,"th",19),t._uU(40,"Outlet"),t.qZA(),t.TgZ(41,"th",19),t._uU(42,"Order"),t.qZA(),t.TgZ(43,"th",20),t._uU(44,"Number"),t.qZA(),t.TgZ(45,"th"),t._uU(46,"Customer"),t.qZA(),t.TgZ(47,"th",21),t._uU(48,"Created"),t.qZA(),t.TgZ(49,"th",21),t._uU(50,"Time"),t.qZA()()(),t.YNc(51,ie,20,24,"tbody",22),t.qZA()(),t.TgZ(52,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",(e.role.fulfillment.Delete||e.role.fulfillment.Edit)&&e.showCheckboxAll),t.xp6(13),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let re=(()=>{class n extends A.n{constructor(e,o,a,i,u){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"showCheckboxAll",void 0),(0,r.Z)(this,"totalAccessWrite",void 0),this.csvConverter=o,this.role=i,this.matDialog=u}openExportModal(){this.matDialog.open(N.H,{data:{title:"Pack",exportTypes:[{ID:"FulfillmentExport/PackExport",Value:"Default",FileName:"Pack"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetPackFulfillmentCount",pagination:!0}})}preInitList(){this.pageData.Filter.StateID=this.pageData.Options.States.find(e=>"Packed"==e.Value).Key}postInit(e){this.totalAccessWrite=0,e.Data.forEach(o=>{o.Access_Write&&(this.totalAccessWrite+=1)}),this.totalAccessWrite>0&&(this.showCheckboxAll=!0)}onSelectAllData(e){this.data.Data=this.data.Data.map(o=>(o.Access_Write&&(o.selected=e),o))}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(O._W),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-pack"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Ship","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPackFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Ship",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-truck","me-3"],["value","Delete",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,le,53,19,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.Fj,c.Wl,c.JJ,c.On,Z.rH,x.p,C.QB,D.w9,h.J,S.v,s.uU]})),n})();var ce=p(88651),pe=p(77579),H=p(18505),G=p(54004),se=p(71884),_e=p(78372),ue=p(68675),z=p(39646),me=p(97272);class de{constructor(l){(0,r.Z)(this,"ID",void 0),(0,r.Z)(this,"OrderID",void 0),(0,r.Z)(this,"OrderOutletID",void 0),(0,r.Z)(this,"DocumentURL",void 0),(0,r.Z)(this,"Note",void 0),(0,r.Z)(this,"Items",void 0),this.ID=l.ID,this.OrderID=l.OrderID,this.OrderOutletID=l.OutletID,this.DocumentURL=l.DocumentURL,this.Note=l.Note,this.Items=[],l.Items.filter(e=>e.Pick&&!e.Fulfillment).forEach(e=>{this.Items.push({ItemID:e.ItemID,OutletID:e.OutletID})})}}var ge=p(22414),X=p(54825);function fe(n,l){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"a",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.validate())}),t._uU(2,"Save"),t.qZA(),t.BQk()}}function he(n,l){1&n&&(t.TgZ(0,"div",5)(1,"div",17),t._uU(2," Outlet "),t.qZA(),t.TgZ(3,"div",18),t._uU(4," Date "),t.qZA(),t.TgZ(5,"div",19),t._uU(6," Number "),t.qZA()())}function xe(n,l){if(1&n&&(t.TgZ(0,"div",5)(1,"div",20),t._uU(2),t.ALo(3,"limitTo"),t.qZA(),t.TgZ(4,"div",21),t._uU(5),t.ALo(6,"date"),t.qZA(),t.TgZ(7,"div",22),t._uU(8),t.qZA()()),2&n){const e=l.item;t.xp6(2),t.hij(" ",t.xi3(3,3,e.Value.EntityName,25)," "),t.xp6(3),t.hij(" ",t.xi3(6,6,e.Value.Date,"dd MMM yyyy")," "),t.xp6(3),t.hij(" ",e.Value.Number," ")}}const R=function(n){return{ID:n}};function Ze(n,l){if(1&n&&(t.TgZ(0,"div",7)(1,"div",8)(2,"h2"),t._UZ(3,"i",23),t._uU(4,"Order "),t.qZA()(),t.TgZ(5,"div",10)(6,"table",24)(7,"tr")(8,"th"),t._uU(9,"Outlet"),t.qZA(),t.TgZ(10,"td"),t._uU(11,":"),t.qZA(),t.TgZ(12,"td"),t._uU(13),t.qZA()(),t.TgZ(14,"tr")(15,"th"),t._uU(16,"Invoice"),t.qZA(),t.TgZ(17,"td"),t._uU(18,":"),t.qZA(),t.TgZ(19,"td")(20,"a",25),t._uU(21),t.qZA()()(),t.TgZ(22,"tr")(23,"th"),t._uU(24,"Date"),t.qZA(),t.TgZ(25,"td"),t._uU(26,":"),t.qZA(),t.TgZ(27,"td"),t._uU(28),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(13),t.hij(" ",e.pickInfo.OutletName," "),t.xp6(7),t.Q6J("queryParams",t.VKq(4,R,e.pickInfo.InvoiceID)),t.xp6(1),t.Oqu(e.pickInfo.Number),t.xp6(7),t.hij(" ",e.pickInfo.InvoiceDate," ")}}const Ce=function(){return["/menu/Contacts/Contact/Customers/Info"]};function Te(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td")(6,"a",28),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(4);t.xp6(6),t.Q6J("routerLink",t.DdM(3,Ce))("queryParams",t.VKq(4,R,e.pickInfo.Customer.ID)),t.xp6(1),t.Oqu(e.pickInfo.Customer.Name)}}function De(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.Mobile)}}function Ae(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Email"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.Email)}}function ve(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.City)}}function be(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.pickInfo.Customer.Address)}}function Ie(n,l){if(1&n&&(t.TgZ(0,"table",24),t.YNc(1,Te,8,6,"tr",3),t.YNc(2,De,7,1,"tr",3),t.YNc(3,Ae,7,1,"tr",3),t.YNc(4,ve,7,1,"tr",3),t.YNc(5,be,7,1,"tr",3),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Name),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Mobile),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Email),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.City),t.xp6(1),t.Q6J("ngIf",e.pickInfo.Customer.Address)}}function Pe(n,l){if(1&n&&(t.TgZ(0,"div",7)(1,"div",8)(2,"h2"),t._UZ(3,"i",26),t._uU(4,"Customer "),t.qZA()(),t.TgZ(5,"div",10),t.YNc(6,Ie,6,5,"table",27),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.pickInfo)}}function ye(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Name"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.recipientInfo.Name)}}function qe(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Phone"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.recipientInfo.Phone)}}function Fe(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"City"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(6),t.Oqu(e.recipientInfo.City)}}function Ue(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Address"),t.qZA(),t.TgZ(3,"td"),t._uU(4,":"),t.qZA(),t._UZ(5,"td",29),t.qZA()),2&n){const e=t.oxw(4);t.xp6(5),t.Q6J("innerHTML",e.recipientInfo.Address,t.oJD)}}function Me(n,l){if(1&n&&(t.TgZ(0,"table",24),t.YNc(1,ye,7,1,"tr",3),t.YNc(2,qe,7,1,"tr",3),t.YNc(3,Fe,7,1,"tr",3),t.YNc(4,Ue,6,1,"tr",3),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.recipientInfo.Name),t.xp6(1),t.Q6J("ngIf",e.recipientInfo.Phone),t.xp6(1),t.Q6J("ngIf",e.recipientInfo.City),t.xp6(1),t.Q6J("ngIf",e.recipientInfo.Address)}}function ke(n,l){if(1&n&&(t.TgZ(0,"div",7)(1,"div",8)(2,"h2"),t._UZ(3,"i",26),t._uU(4,"Recipient "),t.qZA()(),t.TgZ(5,"div",10),t.YNc(6,Me,5,4,"table",27),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.pickInfo)}}function Oe(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"img",54),t.NdJ("click",function(a){t.CHM(e);const i=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.openBigPicture(i,a))}),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("src",e.Image,t.LSH)}}function Ne(n,l){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" Assigned to ",e.Fulfillment," ")}}function we(n,l){1&n&&(t.TgZ(0,"div",5)(1,"div",17),t._uU(2," Outlet "),t.qZA(),t.TgZ(3,"div",56),t._uU(4," Available "),t.TgZ(5,"span",57),t._uU(6,"The number of Physical Inventory at your Outlet"),t.qZA()(),t.TgZ(7,"div",56),t._uU(8," Allocated "),t.TgZ(9,"span",57),t._uU(10,"Inventory which is already reserved for customer's order"),t.qZA()(),t.TgZ(11,"div",56),t._uU(12," PickPack "),t.TgZ(13,"span",57),t._uU(14,"Inventory assigned from another outlets and needs to be packed"),t.qZA()(),t.TgZ(15,"div",56),t._uU(16," Nett Avail "),t.TgZ(17,"span",58),t._uU(18,"Total Nett Inventory (Available - PickPack + Inventory Delegated)"),t.qZA()()())}function Je(n,l){if(1&n&&(t.TgZ(0,"div",5)(1,"div",20),t._uU(2),t.ALo(3,"limitTo"),t.qZA(),t.TgZ(4,"div",59),t._uU(5),t.qZA(),t.TgZ(6,"div",59),t._uU(7),t.qZA(),t.TgZ(8,"div",59),t._uU(9),t.qZA(),t.TgZ(10,"div",59),t._uU(11),t.qZA()()),2&n){const e=l.item;t.xp6(2),t.hij(" ",t.xi3(3,5,e.Outlet,25)," "),t.xp6(3),t.hij(" ",e.OnHand," "),t.xp6(2),t.hij(" ",e.Allocated," "),t.xp6(2),t.hij(" ",e.PickPack," "),t.xp6(2),t.hij(" ",e.AvailableAdjustPickPack," ")}}function Se(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"ng-select",55),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.selectOption(a,i))})("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.OutletID=a)})("open",function(){t.CHM(e);const a=t.oxw(),i=a.index,u=a.$implicit,b=t.oxw(3);return t.KtG(b.loadInventory(i,u.ProductID))}),t.ALo(1,"async"),t.YNc(2,we,19,0,"ng-template",12),t.YNc(3,Je,12,8,"ng-template",13),t.qZA()}if(2&n){const e=t.oxw(),o=e.index,a=e.$implicit,i=t.oxw(3);t.Q6J("items",t.lcZ(1,3,i.inventoriesInfo[o]))("ngModel",a.OutletID)("loading",a.isLoading)}}function Ee(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"div",50),t.YNc(3,Oe,1,1,"img",51),t.TgZ(4,"div")(5,"a",52),t._uU(6),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.qZA()()()(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t.YNc(12,Ne,2,1,"ng-container",3),t.YNc(13,Se,4,5,"ng-select",53),t.qZA()()),2&n){const e=l.$implicit;t.xp6(3),t.Q6J("ngIf",e.Image),t.xp6(2),t.Q6J("queryParams",t.VKq(7,R,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity),t.xp6(2),t.Q6J("ngIf",e.Fulfillment),t.xp6(1),t.Q6J("ngIf",!e.Fulfillment)}}function Le(n,l){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"ng-select",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.globalOutlet=a)})("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.chooseGlobalOutlet(a))}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("readonly",e.isAllAssigned)("ngModel",e.globalOutlet)("items",e.data.Options)}}function Qe(n,l){1&n&&(t.TgZ(0,"p",61),t._uU(1," All Product already assigned "),t.qZA())}function Ye(n,l){1&n&&(t.TgZ(0,"div",62),t._UZ(1,"i",63),t._uU(2," Your internet might have some problem, you can not upload any file. "),t.qZA())}function Ke(n,l){if(1&n&&(t.ynx(0),t.TgZ(1,"div",64)(2,"a",65),t._uU(3),t.qZA()(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(2),t.Q6J("href",e.pickInfo.DocumentURL,t.LSH),t.xp6(1),t.Oqu(e.fileName)}}function He(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"div",30)(1,"div",7)(2,"div",8)(3,"h2"),t._UZ(4,"i",31),t._uU(5,"Products "),t.TgZ(6,"small",32),t._uU(7),t.ALo(8,"sum"),t.qZA()()(),t.TgZ(9,"div",10)(10,"table",33)(11,"thead",34)(12,"tr")(13,"th",35),t._uU(14,"Name"),t.qZA(),t.TgZ(15,"th",36),t._uU(16,"Qty"),t.qZA(),t.TgZ(17,"th",37),t._uU(18,"Fulfillment"),t.qZA()()(),t.TgZ(19,"tbody"),t.YNc(20,Ee,14,9,"tr",38),t.qZA(),t.TgZ(21,"tfoot")(22,"tr"),t._UZ(23,"td",39),t.TgZ(24,"td"),t.YNc(25,Le,2,3,"ng-container",40),t.YNc(26,Qe,2,0,"ng-template",null,41,t.W1O),t.qZA()()()()()(),t.TgZ(28,"div",7)(29,"div",8)(30,"div",42),t.YNc(31,Ye,3,0,"div",43),t.qZA(),t.TgZ(32,"h2"),t._UZ(33,"i",44),t._uU(34,"Packing Slip "),t.qZA()(),t.TgZ(35,"div",45)(36,"button",46),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.uploadFileToCloudinary())}),t._UZ(37,"i",47),t.TgZ(38,"span"),t._uU(39,"Upload File"),t.qZA()(),t.YNc(40,Ke,4,2,"ng-container",3),t.qZA()(),t.TgZ(41,"div",7)(42,"div",8)(43,"h2"),t._UZ(44,"i",48),t._uU(45,"Note "),t.qZA()(),t.TgZ(46,"div",10)(47,"POS-tinymce-editor",49),t.NdJ("valueChange",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.pickInfo.Note=a)}),t.qZA()()()()}if(2&n){const e=t.MAs(27),o=t.oxw(2);t.xp6(7),t.hij(" (Quantity: ",t.xi3(8,7,o.pickInfo.Items,"Quantity"),") "),t.xp6(13),t.Q6J("ngForOf",o.pickInfo.Items),t.xp6(5),t.Q6J("ngIf",!o.isAllAssigned)("ngIfElse",e),t.xp6(6),t.Q6J("ngIf",o.isCloudinaryErrored),t.xp6(9),t.Q6J("ngIf",o.pickInfo.DocumentURL),t.xp6(7),t.Q6J("value",o.pickInfo.Note)}}const Ge=function(){return["/menu/Fulfillment/Delivery/Pick"]};function Re(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1)(1,"actions")(2,"a",2),t._uU(3,"Cancel"),t.qZA(),t.YNc(4,fe,3,0,"ng-container",3),t.qZA(),t.TgZ(5,"content")(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"h2"),t._UZ(12,"i",9),t._uU(13,"Choose Order "),t.qZA()(),t.TgZ(14,"div",10)(15,"ng-select",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.selectedSOID=a)})("change",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.getPickItems(a))}),t.ALo(16,"async"),t.YNc(17,he,7,0,"ng-template",12),t.YNc(18,xe,9,9,"ng-template",13),t.qZA()()(),t.YNc(19,Ze,29,6,"div",14),t.YNc(20,Pe,7,1,"div",14),t.YNc(21,ke,7,1,"div",14),t.qZA(),t.YNc(22,He,48,10,"div",15),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("routerLink",t.DdM(15,Ge)),t.xp6(2),t.Q6J("ngIf",e.role.fulfillment.Create&&!e.isAllAssigned),t.xp6(11),t.Q6J("items",t.lcZ(16,13,e.orders$))("typeahead",e.orderInput$)("ngModel",e.selectedSOID)("readonly",e.isEdit),t.xp6(4),t.Q6J("ngIf",e.pickInfo),t.xp6(1),t.Q6J("ngIf",e.customerInfo),t.xp6(1),t.Q6J("ngIf",e.recipientInfo),t.xp6(1),t.Q6J("ngIf",e.pickInfo)}}const Ve=BiggerPicture({target:document.body});let Be=(()=>{class n extends ce.U{constructor(e,o,a,i,u,b){super(e,"Fulfillment/GetFullfilmentLoader",o),(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"router",void 0),(0,r.Z)(this,"cloudinaryService",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"pickInfo",void 0),(0,r.Z)(this,"customerInfo",void 0),(0,r.Z)(this,"recipientInfo",void 0),(0,r.Z)(this,"globalOutlet",void 0),(0,r.Z)(this,"isAllAssigned",void 0),(0,r.Z)(this,"items",void 0),(0,r.Z)(this,"fileName",void 0),(0,r.Z)(this,"selectedSOID",void 0),(0,r.Z)(this,"isLoading",!1),(0,r.Z)(this,"inventoriesInfo",void 0),(0,r.Z)(this,"isEdit",!1),(0,r.Z)(this,"orderInput$",new pe.x),(0,r.Z)(this,"orders$",void 0),(0,r.Z)(this,"isCloudinaryErrored",!1),this.toastr=a,this.router=i,this.cloudinaryService=u,this.role=b,this.inventoriesInfo=[];const y=this.route.snapshot.queryParams.ID;_.gT.IsNotEmpty(y)?(this.isEdit=!0,this.orders$=this.httpService.post("/API/Fulfillment/GetPickListDataBySOID",JSON.stringify({SalesOrderID:y})).pipe((0,H.b)(B=>{this.bindPickItems(B),this.selectedSOID=y}),(0,G.U)(B=>[{Key:y,Value:{Display:B.InvNumAndOltName,Date:null,EntityName:null,Number:null}}]))):this.orders$=this.orderInput$.pipe((0,G.U)(w=>w??""),(0,f.h)(w=>""==w||w.length>=3),(0,se.x)(),(0,_e.b)(500),(0,ue.O)(""),(0,I.w)(w=>this.httpService.post("/API/AC/SearchUnfulfilledOrderByNumberNullPickList",JSON.stringify({prefix:w,count:20}))))}getPickItems(e){_.gT.IsNotEmpty(e)?this.httpService.post("/API/Fulfillment/GetPickListDataBySOID",JSON.stringify({SalesOrderID:e.Key})).subscribe({next:a=>{this.inventoriesInfo=[],this.bindPickItems(a)}}):this.orderInput$.next("")}bindPickItems(e){this.globalOutlet=null,this.pickInfo=e,this.recipientInfo=e.Recipient,this.customerInfo=e.Customer,this.isAllAssigned=!0,this.pickInfo.Items.filter(o=>!o.Fulfillment).forEach(o=>{o.Pick=!1,this.isAllAssigned=!1}),this.initCloudinary()}postBindForm(){this.setFocusToAutoComplete()}initCloudinary(){try{this.cloudinaryService.initUploadFileWidget(cloudinary,this.pickInfo.CloudinaryFolder).subscribe(e=>{this.pickInfo.DocumentURL=e.FileURL,this.fileName=e.FileName})}catch{this.isCloudinaryErrored=!0}}uploadFileToCloudinary(){this.cloudinaryService.openUploadWidget()}setFocusToAutoComplete(){let e=document.getElementById("orderNumber");e&&e.focus()}validate(){0!=this.pickInfo.Items.filter(e=>e.Pick&&!e.Fulfillment).length?_.gT.IsEmpty(this.pickInfo)?this.toastr.error("Shipping invoice is required.",d.n.Error):this.pickInfo.Note&&this.pickInfo.Note.length>500?this.toastr.warning("Maximum 500 characters allowed","Warning"):this.onSubmit("Fulfillment/SubmitPickList"):this.toastr.error("You must pick a warehouse in at least one product.",d.n.Error)}preSubmitForm(){this.items=this.pickInfo.Items;const e=new de(this.pickInfo);this.data.Form=e}onSubmitSuccess(e){this.toastr.success(e.Message,d.n.Success),this.router.navigate(["/menu/Fulfillment/Delivery/Pick"])}onSubmitError(){this.pickInfo.Items=this.items}openBigPicture(e,o){return(0,v.Z)(function*(){o.preventDefault();try{const a=yield(0,_.FI)(e.Image);Ve.open({items:[a],intro:"fadeup"})}catch(a){alert(a)}})()}chooseGlobalOutlet(e){this.pickInfo.Items.filter(o=>!o.Fulfillment).forEach((o,a)=>{_.gT.IsEmpty(this.globalOutlet)?(o.Pick=!1,o.OutletID=null):(o.OutletID=this.globalOutlet,o.Pick=!0,this.inventoriesInfo[a]=(0,z.of)([{ID:e.ID,Outlet:e.Name}]))})}selectOption(e,o){o.Pick=!_.gT.IsEmpty(e)}onEmptySearchOrder(e){this.toastr.warning(`Invoice with number ${e} is not found`,"Warning")}loadInventory(e,o){this.inventoriesInfo[e]=(0,me.z)((0,z.of)([]).pipe((0,H.b)(()=>this.pickInfo.Items[e].isLoading=!0)),this.httpService.post("/API/Inventory/ByIDGroupByOutlet",{ID:o}).pipe((0,G.U)(a=>a.Data),(0,H.b)(()=>this.pickInfo.Items[e].isLoading=!1)))}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(Z.gz),t.Y36(O._W),t.Y36(Z.F0),t.Y36(ge.q),t.Y36(M.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-pick-form"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],[1,"btn","btn-outline-secondary",3,"routerLink"],[4,"ngIf"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-4"],[1,"card"],[1,"card-header"],[1,"fa-file-alt","fas","me-5"],[1,"card-body"],["bindLabel","Value.Display","bindValue","Key",1,"acOrder",3,"items","typeahead","ngModel","readonly","ngModelChange","change"],["ng-header-tmp",""],["ng-option-tmp",""],["class","card",4,"ngIf"],["class","col-8",4,"ngIf"],[1,"btn","btn-success","ms-5",3,"click"],[1,"col-4","fw-bold"],[1,"col-3","fw-bold"],[1,"col-5","fw-bold"],[1,"col-4",2,"word-break","break-all"],[1,"col-3",2,"word-break","break-all"],[1,"col-5","number-dropdown",2,"word-break","break-all"],["aria-hidden","true",1,"fa-file-alt","fas","me-5"],[1,"table-sm","table-borderless"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info","target","_blank",1,"ps-0",3,"queryParams"],[1,"fa-solid","fa-address-card","me-5"],["class","table-sm table-borderless",4,"ngIf"],["target","_blank",3,"routerLink","queryParams"],[3,"innerHTML"],[1,"col-8"],[1,"fa-solid","fa-box","me-5"],[1,"text-muted","h6"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-end",2,"width","350px"],[1,"border-end",2,"width","50px"],[1,"border-end"],[4,"ngFor","ngForOf"],["colspan","2",2,"border","none"],[4,"ngIf","ngIfElse"],["ALL_ASSIGNED",""],[1,"w-100"],["class","alert alert-warning",4,"ngIf"],[1,"fa-solid","fa-file","me-5"],[1,"card-body","form-floating-outline"],[1,"btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-upload","me-2"],[1,"fa-solid","fa-note-sticky","me-5"],["height","220px",3,"value","valueChange"],[1,"d-flex","align-items-center"],["class","me-5","style","width:80px; height: 80px;","matTooltipPosition","above","matTooltip","Click to zoom",3,"src","click",4,"ngIf"],["routerLink","/menu/Products/Catalog/Variants/Info","target","_blank",3,"queryParams"],["class","fulfill","placeholder","Choose a warehouse","bindLabel","Outlet","bindValue","ID",3,"items","ngModel","loading","change","ngModelChange","open",4,"ngIf"],["matTooltipPosition","above","matTooltip","Click to zoom",1,"me-5",2,"width","80px","height","80px",3,"src","click"],["placeholder","Choose a warehouse","bindLabel","Outlet","bindValue","ID",1,"fulfill",3,"items","ngModel","loading","change","ngModelChange","open"],[1,"col-2","fw-bold","text-end","tooltip"],[1,"tooltiptext"],[1,"tooltiptext","nett"],[1,"col-2","text-end",2,"word-break","break-all"],["placeholder","Choose a warehouse","bindLabel","Name","bindValue","ID",3,"readonly","ngModel","items","ngModelChange","change"],[1,"mb-0"],[1,"alert","alert-warning"],[1,"fa-solid","fa-circle-info"],[1,"mt-4"],["target","_blank",3,"href"]],template:function(e,o){1&e&&t.YNc(0,Re,23,16,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.JJ,c.On,Z.rH,x.p,D.w9,D.ir,D.Cm,J.gM,X.V,s.Ov,s.uU,Q.OI,Q.qU],styles:[".invoice[_ngcontent-%COMP%] input{height:36px}.invoice-link[_ngcontent-%COMP%]{padding:4px 8px 3px 5px;border:1px solid #dddddd}.btn-gray[_ngcontent-%COMP%]{background-color:#f4f4f4;border:1px solid #d6d6d6;font-weight:700;color:#545454!important;background:linear-gradient(to bottom,#fff 0%,#eee 100%)}autocompleteV2[_ngcontent-%COMP%] input{font-size:16px}.acOrder[_ngcontent-%COMP%] .ng-option{white-space:normal!important;padding:5px 7px!important}.acOrder[_ngcontent-%COMP%] .scroll-host{overflow-y:overlay!important}.acOrder[_ngcontent-%COMP%] .number-dropdown{padding-right:30px!important}.fulfill[_ngcontent-%COMP%] .ng-dropdown-panel{right:0;left:auto!important;width:40vw}.fulfill[_ngcontent-%COMP%] .tooltip{position:relative;display:inline-block}.fulfill[_ngcontent-%COMP%] .tooltip .tooltiptext{visibility:hidden;width:160px;background-color:#fff;color:#333;text-align:center;border-radius:6px;padding:5px;border:1px solid #333;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-60px}.fulfill[_ngcontent-%COMP%] .tooltip .tooltiptext.nett{margin-left:-90px}.fulfill[_ngcontent-%COMP%] .tooltip:hover .tooltiptext{visibility:visible}"]})),n})();function je(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openAssignModal())}),t._UZ(1,"i",27),t._uU(2,"Assign "),t.qZA()}}function We(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/ListPickToPack","Are you sure you want to pack selected record/s?"))}),t._UZ(1,"i",29),t._uU(2,"Pack "),t.qZA()}}function $e(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",31),t._uU(2,"Delete "),t.qZA()}}function ze(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",33),t._uU(2," Export"),t.qZA()}}const Xe=function(){return["/menu/Fulfillment/Delivery/Pick/Form"]};function tn(n,l){1&n&&(t.TgZ(0,"a",34),t._uU(1,"New"),t.qZA()),2&n&&t.Q6J("routerLink",t.DdM(1,Xe))}function en(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",37),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function nn(n,l){if(1&n&&(t.TgZ(0,"th",35),t.YNc(1,en,1,0,"input",36),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.totalAccessWrite>1)}}function an(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",42),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2).$implicit;return t.KtG(i.selected=a)}),t.qZA()}if(2&n){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.selected)}}function on(n,l){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,an,1,1,"input",41),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.Access_Write)}}const ln=function(){return["/menu/Fulfillment/Delivery/All/Info"]},tt=function(n){return{ID:n}},rn=function(){return["/menu/Contacts/Contact/Customers/Info"]};function cn(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,on,2,1,"td",38),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",39),t.TgZ(9,"a",40),t._uU(10),t.qZA()(),t.TgZ(11,"td")(12,"a",40),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",(o.role.fulfillment.Delete||o.role.fulfillment.Edit)&&o.showCheckboxAll),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(18,ln))("queryParams",t.VKq(19,tt,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(21,rn))("queryParams",t.VKq(22,tt,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,12,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,15,e.Created,"HH:mm"))}}function pn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,je,3,0,"a",2),t.YNc(3,We,3,0,"a",3),t.YNc(4,$e,3,0,"a",4),t.YNc(5,ze,3,0,"button",5),t.YNc(6,tn,2,2,"a",6),t.qZA(),t.TgZ(7,"filters")(8,"div",7)(9,"div",8)(10,"div")(11,"h6"),t._uU(12,"Outlet"),t.qZA(),t.TgZ(13,"ng-select",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(14,"div")(15,"h6"),t._uU(16,"Order"),t.qZA(),t.TgZ(17,"ng-select",10),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(18,"div")(19,"h6"),t._uU(20,"Customer"),t.qZA(),t.TgZ(21,"autocompleteV2",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(22,"div")(23,"h6"),t._uU(24,"From"),t.qZA(),t.TgZ(25,"datepicker",12),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(26,"div")(27,"h6"),t._uU(28,"To"),t.qZA(),t.TgZ(29,"datepicker",13),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(30,"div")(31,"h6"),t._uU(32,"Page Size"),t.qZA(),t.TgZ(33,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(34,"content")(35,"div",15)(36,"div",16)(37,"table",17)(38,"thead",18)(39,"tr",19),t.YNc(40,nn,2,1,"th",20),t.TgZ(41,"th",21),t._uU(42,"Outlet"),t.qZA(),t.TgZ(43,"th",21),t._uU(44,"Order"),t.qZA(),t.TgZ(45,"th",22),t._uU(46,"Number"),t.qZA(),t.TgZ(47,"th"),t._uU(48,"Customer"),t.qZA(),t.TgZ(49,"th",23),t._uU(50,"Created"),t.qZA(),t.TgZ(51,"th",23),t._uU(52,"Time"),t.qZA()()(),t.YNc(53,cn,20,24,"tbody",24),t.qZA()(),t.TgZ(54,"POS-complex-pagination",25),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit&&e.areSameOutlets()),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(1),t.Q6J("ngIf",e.role.fulfillment.Create),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",(e.role.fulfillment.Delete||e.role.fulfillment.Edit)&&e.showCheckboxAll),t.xp6(13),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let sn=(()=>{class n extends A.n{constructor(e,o,a,i,u){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"showCheckboxAll",void 0),(0,r.Z)(this,"totalAccessWrite",void 0),this.csvConverter=o,this.role=i,this.matDialog=u}openExportModal(){this.matDialog.open(N.H,{data:{title:"Pick",exportTypes:[{ID:"FulfillmentExport/PickExport",Value:"Default",FileName:"Pick"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetPickFulfillmentCount",pagination:!0}})}preInitList(){this.pageData.Filter.StateID=this.pageData.Options.States.find(e=>"Picked"==e.Value).Key}postInit(e){this.totalAccessWrite=0,e.Data.forEach(o=>{o.Access_Write&&(this.totalAccessWrite+=1)}),this.totalAccessWrite>0&&(this.showCheckboxAll=!0)}onSelectAllData(e){this.data.Data=this.data.Data.map(o=>(o.Access_Write&&(o.selected=e),o))}openAssignModal(){this._httpService.post("/api/Fulfillment/GetUserListToAssign",JSON.stringify({OutletID:this.getSelectedData()[0].OutletID})).pipe((0,I.w)(e=>this.matDialog.open(k,{data:{users:e}}).afterClosed()),(0,f.h)(e=>_.gT.IsNotEmpty(e)),(0,I.w)(e=>this._httpService.post("/API/Fulfillment/ListPickToAssign",{ListID:this.getSelectedData().map(o=>o.ID),AssignTo:e}))).subscribe({next:e=>this.toastrService.success(e.Message,d.n.Success),complete:()=>this.getListData()})}areSameOutlets(){const e=this.getSelectedData().map(a=>a.OutletID);return e.every(a=>a==e[0])}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(O._W),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-pick"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Pack","matTooltipPosition","above","matTooltip","Assign multiple pick list","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Pack","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","btn btn-success ms-3",3,"routerLink",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPickFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Pack","matTooltipPosition","above","matTooltip","Assign multiple pick list",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-user","me-3"],["value","Pack",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-box","me-3"],["value","Delete",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"btn","btn-success","ms-3",3,"routerLink"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,pn,55,21,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.Fj,c.Wl,c.JJ,c.On,Z.rH,x.p,C.QB,D.w9,h.J,S.v,J.gM,s.uU]})),n})();var _n=p(23410);function un(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",25),t._uU(2," Export"),t.qZA()}}const mn=function(){return["/menu/Orders/Orders/Customer_Invoice/Info"]},V=function(n){return{ID:n}};function dn(n,l){if(1&n&&(t.TgZ(0,"a",29),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.DdM(3,mn))("queryParams",t.VKq(4,V,e.InvoiceID)),t.xp6(1),t.Oqu(e.InvoiceNumber)}}const gn=function(){return["/menu/Orders/Order/Sales_Order/Info"]};function fn(n,l){if(1&n&&(t.TgZ(0,"a",29),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.DdM(3,gn))("queryParams",t.VKq(4,V,e.SOID)),t.xp6(1),t.Oqu(e.InvoiceNumber)}}const hn=function(n){return{"bg-gradient-danger":n}},xn=function(){return["/menu/Contacts/Contact/Customers/Info"]};function Zn(n,l){if(1&n&&(t.TgZ(0,"tr",26)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",27),t._uU(6),t.ALo(7,"number"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td"),t.YNc(11,dn,2,6,"a",28),t.YNc(12,fn,2,6,"a",28),t.qZA(),t.TgZ(13,"td")(14,"a",29),t._uU(15),t.qZA()(),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"date"),t.qZA()()),2&n){const e=l.$implicit,o=t.oxw(2);t.Tol(t.VKq(17,hn,e.CustomDate<o.data.Today)),t.xp6(2),t.Oqu(e.VariantName),t.xp6(2),t.Oqu(e.VariantCode),t.xp6(2),t.Oqu(t.lcZ(7,12,e.Quantity)),t.xp6(3),t.Oqu(e.EntityName),t.xp6(2),t.Q6J("ngIf","00000000-0000-0000-0000-000000000000"!=e.InvoiceID),t.xp6(1),t.Q6J("ngIf","00000000-0000-0000-0000-000000000000"==e.InvoiceID),t.xp6(2),t.Q6J("routerLink",t.DdM(19,xn))("queryParams",t.VKq(20,V,e.CustomerID)),t.xp6(1),t.hij(" ",e.Customer," "),t.xp6(2),t.Oqu(t.xi3(18,14,e.InvoiceDate,"dd MMM yyyy"))}}function Cn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"span",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.StoreRowsCountAPIResult("OutboundLogistics/UnfulfilledProductsRowsCount"))}),t.TgZ(1,"i",31),t._uU(2,"?"),t.qZA()()}}function Tn(n,l){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,1,e.listTotal))}}function Dn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",32),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.NextPage(!0))}),t._UZ(1,"i",33),t._uU(2," Next"),t.qZA()}}function An(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",34),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.StoreRowsCountAPIResult("OutboundLogistics/UnfulfilledProductsRowsCount",!0))}),t._UZ(1,"i",35),t._uU(2," Show All"),t.qZA()}}function vn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,un,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"Category"),t.qZA(),t.TgZ(13,"ng-select",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CategoryID=a)}),t.qZA()(),t.TgZ(14,"div")(15,"h6"),t._uU(16,"Variant"),t.qZA(),t.TgZ(17,"autocompleteV2",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.VariantID=a)}),t.qZA()()()()(),t.TgZ(18,"content")(19,"div",8)(20,"div",9)(21,"table",10)(22,"thead",11)(23,"tr")(24,"th"),t._uU(25,"Product Name"),t.qZA(),t.TgZ(26,"th",12),t._uU(27,"Code"),t.qZA(),t.TgZ(28,"th",13),t._uU(29,"Quantity"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"Outlet"),t.qZA(),t.TgZ(32,"th"),t._uU(33,"Number"),t.qZA(),t.TgZ(34,"th"),t._uU(35,"Customer"),t.qZA(),t.TgZ(36,"th",14),t._uU(37,"Invoice Date"),t.qZA()()(),t.TgZ(38,"tbody"),t.YNc(39,Zn,19,22,"tr",15),t.qZA()()(),t.TgZ(40,"div",16)(41,"div",17)(42,"div",18),t._uU(43),t.ALo(44,"number"),t.YNc(45,Cn,3,0,"span",19),t.YNc(46,Tn,3,3,"span",20),t._uU(47),t.qZA()(),t.TgZ(48,"div",21),t.YNc(49,Dn,3,0,"a",22),t.YNc(50,An,3,0,"a",23),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("multiple",!0)("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.EntityID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Categories)("ngModel",e.pageData.Filter.CategoryID),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.VariantID),t.xp6(22),t.Q6J("ngForOf",e.infiniteList),t.xp6(4),t.hij(" Showing 1 - ",t.lcZ(44,16,e.pageData.Filter.RowCount*(e.pageData.Filter.PageNumber-1)+e.data.TotalCurrentRow)," of "),t.xp6(2),t.Q6J("ngIf",!e.pageData.HideStoreApiCount),t.xp6(1),t.Q6J("ngIf",e.pageData.HideStoreApiCount),t.xp6(1),t.hij(" records ~ ",e.pageData.Filter.PageNumber," Page "),t.xp6(2),t.Q6J("ngIf",e.nextPageDisabled&&!e.goToLast),t.xp6(1),t.Q6J("ngIf",e.nextPageDisabled&&!e.goToLast)}}let bn=(()=>{class n extends _n.X{constructor(e,o,a,i,u){super(e,"OutboundLogistics/UnfulfilledProducts","DeliveryLoader/ProductsToDeliver",null,a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),this.csvConverter=o,this.role=i,this.matDialog=u}openExportModal(){this.matDialog.open(N.H,{data:{title:"Unfulfilled Products",exportTypes:[{ID:"OutboundLogistics/UnfulfilledProductsExport",Value:"Default",FileName:"Unfulfilled Products"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"OutboundLogistics/UnfulfilledProductsRowsCount",pagination:!0}})}preGetList(){let e=this.route.snapshot.queryParams;0!=Object.keys(e).length&&(e.OutletID&&(this.pageData.Filter.EntityID=new Array,this.pageData.Filter.EntityID.push(e.OutletID)),this.pageData.Filter.VariantID=e.VariantID)}preInitList(){this.oldRowCount=this.pageData.Filter.RowCount,this.pageData.Filter.EntityID=null}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(Z.gz),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-unfulfilled-products"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"multiple","items","ngModel","ngModelChange"],["bindLabel","Value","bindValue","Key","placeholder","Choose a category",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetVariantSuggestionByCodeNName","placeholder","Variant","inputID","VariantID","notFoundMessageFor","variant",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","75px"],[1,"text-end",2,"width","75px"],[2,"width","140px"],["class","border-bottom",3,"class",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","matTooltipPosition","above","matTooltip","Load next page",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","matTooltipPosition","above","matTooltip","Load all products",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"border-bottom"],[1,"text-end"],[3,"routerLink","queryParams",4,"ngIf"],[3,"routerLink","queryParams"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"],["role","button","matTooltipPosition","above","matTooltip","Load next page",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],["role","button","matTooltipPosition","above","matTooltip","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(e,o){1&e&&t.YNc(0,vn,51,18,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.JJ,c.On,Z.rH,x.p,D.w9,h.J,J.gM,s.JJ,s.uU],styles:["ng-select[_ngcontent-%COMP%] div.ng-placeholder{top:8px!important}"]})),n})();function In(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",16),t._uU(2," Export"),t.qZA()}}function Pn(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr")(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"number"),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"number"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.convertToDayName(e.Date)),t.xp6(2),t.Oqu(o.convertToDayNumber(e.Date)),t.xp6(2),t.Oqu(t.lcZ(8,4,e.PickListCount)),t.xp6(3),t.Oqu(t.lcZ(11,6,e.PickListQuantity))}}function yn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,In,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"From - To"),t.qZA(),t.TgZ(13,"div")(14,"datepicker",6),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(15,"div",7)(16,"datepicker",8),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()()()()(),t.TgZ(17,"content")(18,"div",9)(19,"table",10)(20,"thead",11)(21,"tr",12)(22,"th"),t._uU(23,"Day"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Date"),t.qZA(),t.TgZ(26,"th",13),t._uU(27,"Count"),t.qZA(),t.TgZ(28,"th",13),t._uU(29,"Quantity"),t.qZA()()(),t.YNc(30,Pn,12,8,"tbody",14),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.EntityID),t.xp6(5),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(14),t.Q6J("ngForOf",e.data.Data)}}let qn=(()=>{class n extends A.n{constructor(e,o,a,i,u,b){super(e,"Fulfillment/DailyPerformance","Fulfillment/DailyReportLoader",o),(0,r.Z)(this,"datePipe",void 0),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),this.datePipe=a,this.csvConverter=i,this.role=u,this.matDialog=b}openExportModal(){this.matDialog.open(N.H,{data:{title:"Daily Performance",exportTypes:[{ID:"FulfillmentExport/DailyPerformance",Value:"Default",FileName:"Daily Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preInitList(){this.pageData.Filter.From=this.pageData.Filter.To=new Date}convertToDayName(e){let o=null;return e&&(o=new Date(e),o=this.datePipe.transform(o,"EEEE")),o}convertToDayNumber(e){let o=null;return e&&(o=new Date(e),o=this.datePipe.transform(o,"d")),o}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(O._W),t.Y36(s.uU),t.Y36(U.O),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-daily-report"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],[1,"container-fluid","mt-5"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"]],template:function(e,o){1&e&&t.YNc(0,yn,31,10,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.JJ,c.On,x.p,C.QB,D.w9,s.JJ]})),n})();var E=p(96308);function Fn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",16),t._uU(2," Export"),t.qZA()}}function Un(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",17),t._uU(6),t.qZA(),t.TgZ(7,"td",17),t._uU(8),t.qZA()()),2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Oqu(o+1),t.xp6(2),t.Oqu(e.LoginID),t.xp6(2),t.Oqu(e.PickListCount),t.xp6(2),t.Oqu(e.PickListQuantity)}}function Mn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Fn,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"From - To"),t.qZA(),t.TgZ(9,"div")(10,"datepicker",5),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(11,"div",6)(12,"datepicker",7),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()()()()(),t.TgZ(13,"content")(14,"div",8)(15,"table",9),t.NdJ("matSortChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.sort(a))}),t.TgZ(16,"thead",10)(17,"tr")(18,"th",11),t._uU(19,"No"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Employee"),t.qZA(),t.TgZ(22,"th",12),t._uU(23,"Count"),t.qZA(),t.TgZ(24,"th",13),t._uU(25,"Quantity"),t.qZA()()(),t.TgZ(26,"tbody"),t.YNc(27,Un,9,4,"tr",14),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(8),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(15),t.Q6J("ngForOf",e.data.Data)}}let kn=(()=>{class n extends A.n{constructor(e,o,a,i){super(e,"Fulfillment/EmployeePerformance","Fulfillment/EmployeePerformanceLoader"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"originalData",void 0),this.csvConverter=o,this.role=a,this.matDialog=i}openExportModal(){this.matDialog.open(N.H,{data:{title:"Employee Performance",exportTypes:[{ID:"FulfillmentExport/EmployeePerformance",Value:"Default",FileName:"Employee Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preInitList(){this.pageData.Filter.From=this.pageData.Filter.To=new Date}postInit(e){this.originalData=e.Data}sort(e){this.data.Data=e.active&&""!==e.direction?this.data.Data.sort((a,i)=>this.compare(a[e.active],i[e.active],"asc"===e.direction)):this.originalData}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-employee-performance"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","7%"],["mat-sort-header","PickListCount","arrowPosition","before",1,"flex-right",2,"width","15%"],["mat-sort-header","PickListQuantity","arrowPosition","before",1,"flex-right",2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,Mn,28,8,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,x.p,C.QB,E.YE,E.nU],styles:["th[_ngcontent-%COMP%] div.mat-sort-header-container{display:flex;justify-content:flex-end}"]})),n})();function On(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",16),t._uU(2," Export"),t.qZA()}}function Nn(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",17),t._uU(6),t.qZA(),t.TgZ(7,"td",17),t._uU(8),t.qZA()()),2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Oqu(o+1),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.PickListCount),t.xp6(2),t.Oqu(e.PickListQuantity)}}function wn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,On,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"From - To"),t.qZA(),t.TgZ(9,"div")(10,"datepicker",5),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(11,"div",6)(12,"datepicker",7),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()()()()(),t.TgZ(13,"content")(14,"div",8)(15,"table",9),t.NdJ("matSortChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.sort(a))}),t.TgZ(16,"thead",10)(17,"tr")(18,"th",11),t._uU(19,"No"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Outlet"),t.qZA(),t.TgZ(22,"th",12),t._uU(23,"Count"),t.qZA(),t.TgZ(24,"th",13),t._uU(25,"Quantity"),t.qZA()()(),t.TgZ(26,"tbody"),t.YNc(27,Nn,9,4,"tr",14),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(8),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(15),t.Q6J("ngForOf",e.data.Data)}}let Jn=(()=>{class n extends A.n{constructor(e,o,a,i){super(e,"Fulfillment/OutletPerformance","Fulfillment/OutletPerformanceReportLoader"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"originalData",void 0),this.csvConverter=o,this.role=a,this.matDialog=i}openExportModal(){this.matDialog.open(N.H,{data:{title:"Outlet Performance",exportTypes:[{ID:"FulfillmentExport/OutletPerformance",Value:"Default",FileName:"Outlet Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preInitList(){this.pageData.Filter.From=this.pageData.Filter.To=new Date}postInit(e){this.originalData=e.Data}sort(e){this.data.Data=e.active&&""!==e.direction?this.data.Data.sort((a,i)=>this.compare(a[e.active],i[e.active],"asc"===e.direction)):this.originalData}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-outlet-performance"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","7%"],["mat-sort-header","PickListCount","arrowPosition","before",1,"flex-right",2,"width","15%"],["mat-sort-header","PickListQuantity","arrowPosition","before",1,"flex-right",2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,wn,28,8,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,x.p,C.QB,E.YE,E.nU],styles:["th[_ngcontent-%COMP%] div.mat-sort-header-container{display:flex;justify-content:flex-end}"]})),n})();var Sn=p(83902);let En=(()=>{class n{constructor(e,o,a,i){(0,r.Z)(this,"httpService",void 0),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"dialogRef",void 0),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"config",void 0),(0,r.Z)(this,"pageData",void 0),this.httpService=e,this.csvConverter=o,this.dialogRef=a,this.data=i,this.config=new g.O,this.config.title="Export Shipping",this.config.okText="<i class='fas fa-upload'></i> Export",this.config.customWidth="300px",this.pageData=i.pageData}onOk(){this.pageData.Filter.Export=!0,this.httpService.post("/api/OutboundLogistics/OutboundLogisticsList",JSON.stringify(this.pageData.Filter)).subscribe(o=>{this.csvConverter.convertToCSV(o,"Ship.csv"),this.dialogRef.close()})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(T.so),t.Y36(T.WI))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-modal-export-customer"]],decls:15,vars:3,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"form-floating-outline"],["type","text","autoNum","","placeholder","Page Number",1,"form-control",3,"ngModel","ngModelChange"],["type","text","autoNum","","placeholder","Page Size",1,"form-control",3,"ngModel","ngModelChange"]],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")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"input",5),t.NdJ("ngModelChange",function(i){return o.pageData.Filter.ExportPageNumber=i}),t.qZA(),t.TgZ(7,"label"),t._uU(8,"Page Number"),t.qZA()()()(),t.TgZ(9,"div",2)(10,"div",3)(11,"div",4)(12,"input",6),t.NdJ("ngModelChange",function(i){return o.pageData.Filter.ExportRowCount=i}),t.qZA(),t.TgZ(13,"label"),t._uU(14,"Page Size"),t.qZA()()()()()()()),2&e&&(t.Q6J("config",o.config),t.xp6(6),t.Q6J("ngModel",o.pageData.Filter.ExportPageNumber),t.xp6(6),t.Q6J("ngModel",o.pageData.Filter.ExportRowCount))},dependencies:[c.Fj,c.JJ,c.On,m.M,Sn.b]})),n})();function Ln(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemoveShip","This will also delete the outbound logistic for this order, your inventory will be returned \nAre you sure you want to delete selected record/s? "))}),t._UZ(1,"i",25),t._uU(2,"Delete "),t.qZA()}}function Qn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",27),t._uU(2," Export"),t.qZA()}}function Yn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"th",28)(1,"input",29),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()()}}function Kn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"td")(1,"input",35),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.selected=a)}),t.qZA()()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.selected)}}const Hn=function(){return["/menu/Fulfillment/Delivery/All/Info"]},et=function(n){return{ID:n}},Gn=function(){return["/menu/Contacts/Contact/Customers/Info"]},Rn=function(){return["/print/OutDelivery"]},Vn=function(n,l){return{ID:n,Template:l}};function Bn(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,Kn,2,1,"td",30),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"img",31),t.TgZ(9,"a",32),t._uU(10),t.qZA()(),t.TgZ(11,"td")(12,"a",32),t._uU(13),t.qZA()(),t.TgZ(14,"td"),t._uU(15),t.ALo(16,"date"),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"date"),t.qZA(),t.TgZ(20,"td")(21,"a",33),t._UZ(22,"i",34),t.qZA()()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",o.role.fulfillment.Delete),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(20,Hn))("queryParams",t.VKq(21,et,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(23,Gn))("queryParams",t.VKq(24,et,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(16,14,e.Created,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(19,17,e.Shipped,"HH:mm")),t.xp6(3),t.Q6J("routerLink",t.DdM(26,Rn))("queryParams",t.WLB(27,Vn,e.ID,e.TemplateID))}}function jn(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,Ln,3,0,"a",2),t.YNc(3,Qn,3,0,"button",3),t.qZA(),t.TgZ(4,"filters")(5,"div",4)(6,"div",5)(7,"div")(8,"h6"),t._uU(9,"Outlet"),t.qZA(),t.TgZ(10,"ng-select",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(11,"div")(12,"h6"),t._uU(13,"Order"),t.qZA(),t.TgZ(14,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(15,"div")(16,"h6"),t._uU(17,"Customer"),t.qZA(),t.TgZ(18,"autocompleteV2",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(19,"div")(20,"h6"),t._uU(21,"From"),t.qZA(),t.TgZ(22,"datepicker",9),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(23,"div")(24,"h6"),t._uU(25,"To"),t.qZA(),t.TgZ(26,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(27,"div")(28,"h6"),t._uU(29,"Page Size"),t.qZA(),t.TgZ(30,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(31,"content")(32,"div",12)(33,"div",13)(34,"table",14)(35,"thead",15)(36,"tr",16),t.YNc(37,Yn,2,0,"th",17),t.TgZ(38,"th",18),t._uU(39,"Outlet"),t.qZA(),t.TgZ(40,"th",18),t._uU(41,"Order"),t.qZA(),t.TgZ(42,"th",19),t._uU(43,"Number"),t.qZA(),t.TgZ(44,"th"),t._uU(45,"Customer"),t.qZA(),t.TgZ(46,"th",20),t._uU(47,"Created"),t.qZA(),t.TgZ(48,"th",20),t._uU(49,"Time"),t.qZA(),t._UZ(50,"th",21),t.qZA()(),t.YNc(51,Bn,23,30,"tbody",22),t.qZA()(),t.TgZ(52,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",e.role.fulfillment.Delete),t.xp6(14),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}let Wn=(()=>{class n extends A.n{constructor(e,o,a,i,u){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderShipList",o),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"sortByOptions",[{Key:!1,Value:"Date"},{Key:!0,Value:"Created"}]),this.matDialog=a,this.csvConverter=i,this.role=u}openExportModal(){this.matDialog.open(N.H,{data:{title:"Ship",exportTypes:[{ID:"FulfillmentExport/ShipExport",Value:"Default",FileName:"Ship"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Fulfillment/GetShipFulfillmentCount",pagination:!0}})}openExportDialog(){this.matDialog.open(En,{data:{pageData:this.pageData}})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(O._W),t.Y36(T.uw),t.Y36(U.O),t.Y36(M.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-ship"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Delete","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[2,"width","10px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetShipFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Delete",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[2,"width","14px"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["target","_blank","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-print"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,jn,53,18,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.Fj,c.Wl,c.JJ,c.On,Z.rH,x.p,C.QB,D.w9,h.J,S.v,s.uU]})),n})();function $n(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openExportModal())}),t._UZ(1,"i",18),t._uU(2," Export"),t.qZA()}}const zn=function(n){return{ID:n}};function Xn(n,l){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",19),t._uU(5),t.qZA()(),t.TgZ(6,"td",20),t._uU(7),t.qZA(),t.TgZ(8,"td",20),t._uU(9),t.qZA()()),2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Oqu(o+1),t.xp6(2),t.Q6J("queryParams",t.VKq(5,zn,e.VariantID)),t.xp6(1),t.hij(" ",e.VariantName," "),t.xp6(2),t.Oqu(e.PickListCount),t.xp6(2),t.Oqu(e.Quantity)}}function ta(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,$n,3,0,"button",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"From - To"),t.qZA(),t.TgZ(13,"div")(14,"datepicker",6),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(15,"div",7)(16,"datepicker",8),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()()(),t.TgZ(17,"div")(18,"h6"),t._uU(19,"State"),t.qZA(),t.TgZ(20,"ng-select",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.State=a)}),t.qZA()()()()(),t.TgZ(21,"content")(22,"div",10)(23,"table",11),t.NdJ("matSortChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.sort(a))}),t.TgZ(24,"thead",12)(25,"tr")(26,"th",13),t._uU(27,"No"),t.qZA(),t.TgZ(28,"th"),t._uU(29,"Product"),t.qZA(),t.TgZ(30,"th",14),t._uU(31,"Count"),t.qZA(),t.TgZ(32,"th",15),t._uU(33," Quantity"),t.qZA()()(),t.TgZ(34,"tbody"),t.YNc(35,Xn,10,7,"tr",16),t.qZA()()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchBox",!0),t.xp6(2),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.EntityID),t.xp6(5),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(2),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("multiple",!0)("ngModel",e.pageData.Filter.State)("items",null==e.pageData.Options?null:e.pageData.Options.PickListState),t.xp6(15),t.Q6J("ngForOf",e.data.Data)}}let ea=(()=>{class n extends A.n{constructor(e,o,a,i){super(e,"Fulfillment/ProductFulfillment","Fulfillment/ProductReportLoader"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"matDialog",void 0),(0,r.Z)(this,"originalData",void 0),this.csvConverter=o,this.role=a,this.matDialog=i}openExportModal(){this.matDialog.open(N.H,{data:{title:"Product Performance",exportTypes:[{ID:"FulfillmentExport/ProductFulfillment",Value:"Default",FileName:"Product Performance"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}postInit(e){this.originalData=e.Data}sort(e){this.data.Data=e.active&&""!==e.direction?this.data.Data.sort((a,i)=>this.compare(a[e.active],i[e.active],"asc"===e.direction)):this.originalData}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(M.N),t.Y36(T.uw))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-product"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox","onSubmit",4,"ngIf"],[3,"pageData","hideSearchBox","onSubmit"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",1,"outlet-multiple",3,"multiple","ngModel","items","ngModelChange"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","7%"],["mat-sort-header","PickListCount","arrowPosition","before",1,"flex-right",2,"width","15%"],["mat-sort-header","Quantity","arrowPosition","before",1,"flex-right",2,"width","15%"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["target","_blank","routerLink","/menu/Products/Catalog/Variants/Info",3,"queryParams"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,ta,36,13,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.JJ,c.On,Z.rH,x.p,C.QB,D.w9,E.YE,E.nU]})),n})();function na(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.createDelivery("Fulfillment/DeliverySendUndelivered"))}),t._UZ(1,"i",25),t._uU(2,"Delivery "),t.qZA()}}const aa=function(n){return{"background-color":n}};function oa(n,l){if(1&n&&(t.TgZ(0,"tr",29)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA()()),2&n){const e=l.$implicit;t.Q6J("ngStyle",t.VKq(4,aa,e.Success?"#DEE9C9":"#F4D6D5")),t.xp6(2),t.hij(" ",e.InvoiceNumber," "),t.xp6(2),t.hij(" ",e.Success?"Success":"Failed"," "),t.xp6(2),t.hij(" ",e.Success?e.Message:null==e.Exception?null:e.Exception.Message," ")}}function ia(n,l){if(1&n&&(t.TgZ(0,"div",26)(1,"table",27)(2,"thead",15)(3,"tr")(4,"th"),t._uU(5,"Number"),t.qZA(),t.TgZ(6,"th"),t._uU(7,"Status"),t.qZA(),t.TgZ(8,"th"),t._uU(9,"Message"),t.qZA()()(),t.TgZ(10,"tbody"),t.YNc(11,oa,7,6,"tr",28),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(11),t.Q6J("ngForOf",e.showResultList)}}function la(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",32),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function ra(n,l){if(1&n&&(t.TgZ(0,"th",30),t.YNc(1,la,1,0,"input",31),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.data.Data.length>1)}}function ca(n,l){1&n&&(t.TgZ(0,"th",33),t._uU(1,"Amount"),t.qZA())}function pa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"td")(1,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw().$implicit;return t.KtG(i.selected=a)}),t.qZA()()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.selected)}}function sa(n,l){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.SalesNTax))}}const _a=function(){return["/menu/Orders/Orders/Customer_Invoice/Info"]},nt=function(n){return{ID:n}},ua=function(){return["/menu/Contacts/Contact/Customers/Info"]},ma=function(n,l,e,o){return{"text-success":n,"text-warning":l,"text-danger":e,"bg-gradient-danger":o}};function da(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,pa,2,1,"td",34),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._UZ(6,"img",35),t.TgZ(7,"a",36),t._uU(8),t.qZA()(),t.TgZ(9,"td")(10,"a",36),t._uU(11),t.qZA()(),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"date"),t.qZA(),t.YNc(15,sa,3,3,"td",37),t.TgZ(16,"td"),t._uU(17),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",o.role.fulfillment.Create),t.xp6(2),t.Oqu(e.EntityName),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(17,_a))("queryParams",t.VKq(18,nt,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(20,ua))("queryParams",t.VKq(21,nt,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(14,14,e.Date,"dd MMM yyyy")),t.xp6(2),t.Q6J("ngIf",!o.pageData.PriceVisibleRestriction),t.xp6(1),t.Tol(t.l5B(23,ma,3==e.DeliveryStateID,2==e.DeliveryStateID,1==e.DeliveryStateID,1==e.DeliveryStateID)),t.xp6(1),t.Oqu(e.DeliveryStateLabel)}}function ga(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,na,3,0,"a",2),t.qZA(),t.TgZ(3,"filters")(4,"div",3)(5,"div",4)(6,"div")(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",5),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.EntityID=a)}),t.qZA()(),t.TgZ(10,"div")(11,"h6"),t._uU(12,"Customer"),t.qZA(),t.TgZ(13,"autocompleteV2",6),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(14,"div")(15,"h6"),t._uU(16,"From"),t.qZA(),t.TgZ(17,"datepicker",7),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(18,"div")(19,"h6"),t._uU(20,"To"),t.qZA(),t.TgZ(21,"datepicker",8),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(22,"div")(23,"h6"),t._uU(24,"Fulfillment"),t.qZA(),t.TgZ(25,"ng-select",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.FulfillmentStateID=a)}),t.qZA()(),t.TgZ(26,"div")(27,"h6"),t._uU(28,"Page Size"),t.qZA(),t.TgZ(29,"input",10),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(30,"content")(31,"div",11),t.YNc(32,ia,12,1,"div",12),t.TgZ(33,"div",13)(34,"table",14)(35,"thead",15)(36,"tr",16),t.YNc(37,ra,2,1,"th",17),t.TgZ(38,"th",18),t._uU(39,"Outlet"),t.qZA(),t.TgZ(40,"th",19),t._uU(41,"Number"),t.qZA(),t.TgZ(42,"th"),t._uU(43,"Customer"),t.qZA(),t.TgZ(44,"th",20),t._uU(45,"Date"),t.qZA(),t.YNc(46,ca,2,0,"th",21),t.TgZ(47,"th",20),t._uU(48,"Delivery"),t.qZA()()(),t.YNc(49,da,18,28,"tbody",22),t.qZA()(),t.TgZ(50,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0),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("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.FulfillmentStateID)("items",e.pageData.Options.Fulfillments),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(3),t.Q6J("ngIf",e.showResult),t.xp6(5),t.Q6J("ngIf",e.role.fulfillment.Create),t.xp6(9),t.Q6J("ngIf",!e.pageData.PriceVisibleRestriction),t.xp6(3),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.TotalCurrentRow)("pageData",e.pageData)}}let fa=(()=>{class n extends A.n{constructor(e,o,a,i){super(e,"OutboundLogistics/UnfulfilledInvoices","OutboundLogisticsLoader/UnfulfilledInvoices"),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"showResult",!1),(0,r.Z)(this,"showResultList",[]),this.csvConverter=o,this.toastr=a,this.role=i}createDelivery(e){const o=this.getSelectedData();this.httpService.post(`/api/${e}`,o.map(a=>a.ID)).subscribe(a=>{this.showResultList=a,this.showResult=!0,setTimeout(()=>this.showResult=!1,5e3);const i=this.showResultList.filter(y=>y.Success).length,u=this.showResultList.filter(y=>!y.Success).length;let b="";i&&(b+=`${i} invoice${1==i?"":"s"} succesfully sent. `),u&&(b+=`${u} invoice${1==u?"":"s"} failed to sent.`),this.toastr.info(b,d.n.Info),this.getListData()})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(O._W),t.Y36(M.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["ng-component"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Delivery","matTooltipPosition","above","matTooltip","Delivery","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID","notFoundMessageFor","customer",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["bindLabel","Value","bindValue","Key","placeholder","Choose an Options",1,"my-5",3,"ngModel","items","ngModelChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],["class","table-responsive mb-5",4,"ngIf"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],["class","text-end","style","width: 90px;",4,"ngIf"],[4,"ngFor","ngForOf"],["api","OutboundLogistics/UnfulfilledInvoicesCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Delivery","matTooltipPosition","above","matTooltip","Delivery",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-truck","me-3"],[1,"table-responsive","mb-5"],[1,"table"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[1,"text-end",2,"width","90px"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["class","text-end",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"text-end"]],template:function(e,o){1&e&&t.YNc(0,ga,51,19,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,s.PC,c.Fj,c.Wl,c.JJ,c.On,Z.rH,x.p,C.QB,D.w9,h.J,S.v,J.gM,s.JJ,s.uU]})),n})();var ha=p(22863),xa=p(24351);const Za=function(){return["/menu/Fulfillment/Delivery/All/Info"]},K=function(n){return{ID:n}};function Ca(n,l){if(1&n&&(t.TgZ(0,"tr",23)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",24),t._uU(5),t.qZA()(),t.TgZ(6,"td")(7,"span",25),t.ALo(8,"date"),t.ALo(9,"date"),t._uU(10),t.ALo(11,"date"),t._UZ(12,"i",26),t.qZA()()()),2&n){const e=l.$implicit;t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Q6J("routerLink",t.DdM(16,Za))("queryParams",t.VKq(17,K,e.ID)),t.xp6(1),t.Oqu(e.State),t.xp6(2),t.hYB("matTooltip","Pack: ",t.xi3(8,7,e.Packed,"dd MMM yyyy")," \r Ship: ",t.xi3(9,10,e.Shipped,"dd MMM yyyy"),""),t.xp6(3),t.hij(" ",t.xi3(11,13,e.Created,"dd MMM yyyy HH:mm")," ")}}function Ta(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td")(2,"a",27),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td",28)(9,"img",29),t.NdJ("click",function(a){const u=t.CHM(e).$implicit,b=t.oxw(2);return t.KtG(b.openBigPicture(u,a))}),t.qZA()(),t.TgZ(10,"td"),t._uU(11),t.qZA()()}if(2&n){const e=l.$implicit;t.xp6(2),t.Q6J("queryParams",t.VKq(6,K,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity),t.xp6(2),t.Q6J("src",e.Image?e.Image:"//res.cloudinary.com/pos/image/upload/POS/Images/Icon/products_thumb.png",t.LSH),t.xp6(2),t.hij(" Assigned to ",e.Fulfillment," ")}}const Da=function(){return["/menu/Fulfillment/Delivery/Pick/Form"]};function Aa(n,l){if(1&n&&(t.TgZ(0,"td")(1,"a",24),t._uU(2,"Not assigned to any warehouse"),t.qZA()()),2&n){const e=t.oxw(3);t.uIk("rowspan",e.unpickedItemsCount),t.xp6(1),t.Q6J("routerLink",t.DdM(3,Da))("queryParams",t.VKq(4,K,e.data.OrderID))}}function va(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td",30)(2,"a",27),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td",28)(9,"img",29),t.NdJ("click",function(a){const u=t.CHM(e).$implicit,b=t.oxw(2);return t.KtG(b.openBigPicture(u,a))}),t.qZA()(),t.YNc(10,Aa,3,6,"td",31),t.qZA()}if(2&n){const e=l.$implicit,o=l.index;t.xp6(2),t.Q6J("queryParams",t.VKq(6,K,e.ProductID)),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(e.Code),t.xp6(2),t.Oqu(e.Quantity),t.xp6(2),t.Q6J("src",e.Image?e.Image:"//res.cloudinary.com/pos/image/upload/POS/Images/Icon/products_thumb.png",t.LSH),t.xp6(1),t.Q6J("ngIf",0==o)}}function ba(n,l){if(1&n&&(t.TgZ(0,"mainpanel-cmp",1)(1,"content")(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h2"),t._UZ(8,"i",7),t._uU(9,"Pick List "),t.qZA()(),t.TgZ(10,"div",8)(11,"div",9)(12,"table",10)(13,"thead",11)(14,"tr")(15,"th"),t._uU(16,"Outlet"),t.qZA(),t.TgZ(17,"th"),t._uU(18,"State"),t.qZA(),t.TgZ(19,"th"),t._uU(20,"Created"),t.qZA()()(),t.TgZ(21,"tbody"),t.YNc(22,Ca,13,19,"tr",12),t.qZA()()()()()(),t.TgZ(23,"div",13)(24,"div",5)(25,"div",6)(26,"h2"),t._UZ(27,"i",14),t._uU(28,"Products "),t.TgZ(29,"small",15),t._uU(30),t.qZA()()(),t.TgZ(31,"div",8)(32,"table",16)(33,"thead",11)(34,"tr")(35,"th",17),t._uU(36,"Name"),t.qZA(),t.TgZ(37,"th",18),t._uU(38,"Code"),t.qZA(),t.TgZ(39,"th",19),t._uU(40,"Quantity"),t.qZA(),t.TgZ(41,"th",20),t._uU(42,"Image"),t.qZA(),t.TgZ(43,"th",21),t._uU(44,"Fulfillment"),t.qZA()()(),t.TgZ(45,"tbody"),t.YNc(46,Ta,12,8,"tr",22),t.YNc(47,va,11,8,"tr",22),t.qZA()()()()()()()()()),2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),t.xp6(22),t.Q6J("ngForOf",e.data.PickListInfo),t.xp6(8),t.lnq(" (There ",1==e.unpickedItemsCount||0==e.unpickedItemsCount?"is ":"are "," ",e.unpickedItemsCount," product",1==e.unpickedItemsCount||0==e.unpickedItemsCount?"":"s"," unpicked) "),t.xp6(16),t.Q6J("ngForOf",e.pickedItems),t.xp6(1),t.Q6J("ngForOf",e.unpickedItems)}}const Ia=BiggerPicture({target:document.body});let Pa=(()=>{class n extends ha.M{constructor(e,o){super(e),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"unpickedItemsCount",void 0),(0,r.Z)(this,"unpickedItems",void 0),(0,r.Z)(this,"pickedItems",void 0),this.bindData(o.snapshot.queryParams.ID)}bindData(e){const o={SalesOrderID:e};this.menuData$.pipe((0,xa.b)(()=>this.httpService.post("/API/Fulfillment/PickListSummary",JSON.stringify(o)))).subscribe({next:a=>{this.data=a,this.postBindData(a)}})}postBindData(e){this.pickedItems=e.Items.filter(o=>o.Fulfillment),this.unpickedItems=e.Items.filter(o=>!o.Fulfillment),this.unpickedItemsCount=this.unpickedItems.length,this.menuData.H=`Pick List Summary - #${e.InvNumAndOltName}`}openBigPicture(e,o){return(0,v.Z)(function*(){o.preventDefault();try{const a=yield(0,_.FI)(e.Image);Ia.open({items:[a],intro:"fadeup"})}catch(a){alert(a)}})()}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(Z.gz))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-summary"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-4"],[1,"card"],[1,"card-header"],[1,"fa-solid","fa-rectangle-list","me-5"],[1,"card-body"],[1,"table-responsive"],[1,"table",2,"width","100%"],[1,"thead-light","sticky-top-thead"],["class","border-bottom",4,"ngFor","ngForOf"],[1,"col-8"],[1,"fa-solid","fa-box","me-5"],[1,"text-muted","h6"],[1,"table","table-bordered"],[1,"border-end",2,"width","250px"],[1,"border-end",2,"width","80px"],[1,"border-end",2,"width","60px"],[1,"border-end",2,"width","97px"],[1,"border-end"],[4,"ngFor","ngForOf"],[1,"border-bottom"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"matTooltip"],[1,"fa-solid","fa-circle-info","ms-2"],["routerLink","/menu/Products/Catalog/Variants/Info","target","_blank",3,"queryParams"],[1,"text-center"],["matTooltipPosition","above","matTooltip","Click to zoom",2,"width","80px","height","80px",3,"src","click"],[1,"bg-gradient-warning"],[4,"ngIf"]],template:function(e,o){1&e&&t.YNc(0,ba,48,9,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,Z.rH,x.p,J.gM,s.uU]})),n})();function ya(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/ListPickToPack","Are you sure you want to pack selected record/s?"))}),t._UZ(1,"i",25),t._uU(2,"Pack "),t.qZA()}}function qa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.httpPostListID("Fulfillment/RemovePickList"))}),t._UZ(1,"i",27),t._uU(2,"Delete "),t.qZA()}}function Fa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.exportCSV(a.csvConverter,"FulfillmentExport/GetPickFulfillmentPaged","ListDataAssigned.csv"))}),t._UZ(1,"i",29),t._uU(2," Export "),t.qZA()}}function Ua(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.exportXlsx("FulfillmentExport/PackExport","ListDataPack.xlsx"))}),t._UZ(1,"i",29),t._uU(2," Export Xlsx "),t.qZA()}}function Ma(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",32),t.NdJ("change",function(a){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSelectAllData(a.target.checked))}),t.qZA()}}function ka(n,l){if(1&n&&(t.TgZ(0,"th",30),t.YNc(1,Ma,1,0,"input",31),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.totalAccessWrite>1)}}function Oa(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw(2).$implicit;return t.KtG(i.selected=a)}),t.qZA()}if(2&n){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.selected)}}function Na(n,l){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Oa,1,1,"input",36),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.Access_Write)}}const wa=function(){return["/menu/Fulfillment/Delivery/All/Info"]},at=function(n){return{ID:n}},Ja=function(){return["/menu/Contacts/Contact/Customers/Info"]};function Sa(n,l){if(1&n&&(t.TgZ(0,"tbody")(1,"tr"),t.YNc(2,Na,2,1,"td",33),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._UZ(10,"img",34),t.TgZ(11,"a",35),t._uU(12),t.qZA()(),t.TgZ(13,"td")(14,"a",35),t._uU(15),t.qZA()(),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"date"),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.ALo(21,"date"),t.qZA()()()),2&n){const e=l.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("ngIf",(o.role.fulfillment.Delete||o.role.fulfillment.Edit)&&o.showCheckboxAll),t.xp6(2),t.Oqu(e.OutletName),t.xp6(2),t.Oqu(e.OrderOutletName),t.xp6(2),t.Oqu(e.AssignedTo),t.xp6(2),t.Q6J("src",e.ImageUrl,t.LSH),t.xp6(1),t.Q6J("routerLink",t.DdM(19,wa))("queryParams",t.VKq(20,at,e.ID)),t.xp6(1),t.Oqu(e.Number),t.xp6(2),t.Q6J("routerLink",t.DdM(22,Ja))("queryParams",t.VKq(23,at,e.CustomerID)),t.xp6(1),t.Oqu(e.Name),t.xp6(2),t.Oqu(t.xi3(18,13,e.Assigned,"dd MMM yyyy")),t.xp6(3),t.Oqu(t.xi3(21,16,e.Assigned,"HH:mm"))}}function Ea(n,l){if(1&n){const e=t.EpF();t.TgZ(0,"mainpanel-cmp",1),t.NdJ("textChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Number=a)})("onSubmit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.searchFromPageOne())}),t.TgZ(1,"actions"),t.YNc(2,ya,3,0,"a",2),t.YNc(3,qa,3,0,"a",3),t.YNc(4,Fa,3,0,"button",4),t.YNc(5,Ua,3,0,"button",4),t.qZA(),t.TgZ(6,"filters")(7,"div",5)(8,"div",6)(9,"div")(10,"h6"),t._uU(11,"Outlet"),t.qZA(),t.TgZ(12,"ng-select",7),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.OutletID=a)}),t.qZA()(),t.TgZ(13,"div")(14,"h6"),t._uU(15,"Order"),t.qZA(),t.TgZ(16,"ng-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.Order=a)}),t.qZA()(),t.TgZ(17,"div")(18,"h6"),t._uU(19,"Customer"),t.qZA(),t.TgZ(20,"autocompleteV2",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.CustomerID=a)}),t.qZA()(),t.TgZ(21,"div")(22,"h6"),t._uU(23,"From"),t.qZA(),t.TgZ(24,"datepicker",10),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.From=a)}),t.qZA()(),t.TgZ(25,"div")(26,"h6"),t._uU(27,"To"),t.qZA(),t.TgZ(28,"datepicker",11),t.NdJ("dateChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.To=a)}),t.qZA()(),t.TgZ(29,"div")(30,"h6"),t._uU(31,"Page Size"),t.qZA(),t.TgZ(32,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);const i=t.oxw();return t.KtG(i.pageData.Filter.RowCount=a)}),t.qZA()()()()(),t.TgZ(33,"content")(34,"div",13)(35,"div",14)(36,"table",15)(37,"thead",16)(38,"tr",17),t.YNc(39,ka,2,1,"th",18),t.TgZ(40,"th",19),t._uU(41,"Outlet"),t.qZA(),t.TgZ(42,"th",19),t._uU(43,"Order"),t.qZA(),t.TgZ(44,"th",20),t._uU(45,"Assigned To"),t.qZA(),t.TgZ(46,"th",20),t._uU(47,"Number"),t.qZA(),t.TgZ(48,"th"),t._uU(49,"Customer"),t.qZA(),t.TgZ(50,"th",21),t._uU(51,"Assigned"),t.qZA(),t.TgZ(52,"th",21),t._uU(53,"Time"),t.qZA()()(),t.YNc(54,Sa,22,25,"tbody",22),t.qZA()(),t.TgZ(55,"POS-complex-pagination",23),t.NdJ("jumpToPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("previousPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())})("nextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getListData())}),t.qZA()()()()}if(2&n){const e=t.oxw();t.Q6J("pageData",e.menuData)("text",e.pageData.Filter.Number),t.xp6(2),t.Q6J("ngIf",e.getSelectedData().length>0&&e.role.fulfillment.Edit),t.xp6(1),t.Q6J("ngIf",e.getSelectedData().length>0),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(1),t.Q6J("ngIf",e.role.global.Export),t.xp6(7),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.OutletID),t.xp6(4),t.Q6J("items",null==e.pageData.Options?null:e.pageData.Options.Entities)("ngModel",e.pageData.Filter.Order),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.CustomerID),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.From),t.xp6(4),t.Q6J("isFloatingLabel",!1)("date",e.pageData.Filter.To),t.xp6(4),t.Q6J("ngModel",e.pageData.Filter.RowCount),t.xp6(7),t.Q6J("ngIf",(e.role.fulfillment.Delete||e.role.fulfillment.Edit)&&e.showCheckboxAll),t.xp6(15),t.Q6J("ngForOf",e.data.Data),t.xp6(1),t.Q6J("total",e.data.Data.length)("pageData",e.pageData)}}const La=[{path:"Delivery/Pick",component:sn},{path:"Delivery/Pick/Form",component:Be},{path:"Delivery/Pack",component:re},{path:"Delivery/Ship",component:Wn},{path:"Delivery/Assigned",component:(()=>{class n extends A.n{constructor(e,o,a,i){super(e,"Fulfillment/GetPickFulfillmentPaged","Fulfillment/LoaderPickList",a),(0,r.Z)(this,"csvConverter",void 0),(0,r.Z)(this,"role",void 0),(0,r.Z)(this,"showCheckboxAll",void 0),(0,r.Z)(this,"totalAccessWrite",void 0),this.csvConverter=o,this.role=i}preInitList(){this.pageData.Filter.StateID=this.pageData.Options.States.find(e=>"Assigned"==e.Value).Key}postInit(e){this.totalAccessWrite=0,e.Data.forEach(o=>{o.Access_Write&&(this.totalAccessWrite+=1)}),this.totalAccessWrite>0&&(this.showCheckboxAll=!0)}onSelectAllData(e){this.data.Data=this.data.Data.map(o=>(o.Access_Write&&(o.selected=e),o))}postListID(e,o,a){const i=o.map(u=>a?u[a]:u.ID);this._httpService.post(`/api/${e}`,i).subscribe(u=>{this.toastrService.success(u.Message.replace("pick","assigned"),d.n.Success),this.getListData()})}}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)(t.Y36(P.O),t.Y36(U.O),t.Y36(O._W),t.Y36(M.N))}),(0,r.Z)(n,"\u0275cmp",t.Xpm({type:n,selectors:[["POS-assigned"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"pageData","text","textChange","onSubmit",4,"ngIf"],[3,"pageData","text","textChange","onSubmit"],["value","Ship","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["value","Delete","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID","placeholder","Choose an outlet",3,"items","ngModel","ngModelChange"],["bindLabel","Name","bindValue","ID","placeholder","Choose an Order",3,"items","ngModel","ngModelChange"],["requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Customer","inputID","ContactID",1,"form-control",3,"ngModel","ngModelChange"],["placeholder","From","appearance","outline","name","From",3,"isFloatingLabel","date","dateChange"],["placeholder","To","appearance","outline","name","To",3,"isFloatingLabel","date","dateChange"],["type","text","name","RowCount",1,"form-control",3,"ngModel","ngModelChange"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","150px"],[2,"width","200px"],[2,"width","90px"],[4,"ngFor","ngForOf"],["api","Fulfillment/GetPackFulfillmentCount",3,"total","pageData","jumpToPage","previousPage","nextPage"],["value","Ship",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-truck","me-3"],["value","Delete",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-trash","me-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-upload","me-3"],[2,"width","14px"],["type","checkbox",3,"change",4,"ngIf"],["type","checkbox",3,"change"],[4,"ngIf"],[2,"max-width","32px",3,"src"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ea,56,20,"mainpanel-cmp",0),2&e&&t.Q6J("ngIf",o.data)},dependencies:[s.sg,s.O5,c.Fj,c.Wl,c.JJ,c.On,Z.rH,x.p,C.QB,D.w9,h.J,S.v,s.uU],encapsulation:2})),n})()},{path:"Delivery/All",component:jt},{path:"Delivery/All/Info",component:kt},{path:"Delivery/All/Summary",component:Pa},{path:"Allocated/Unfulfilled_Products",component:bn},{path:"Allocated/Unfulfilled_Invoices",component:fa},{path:"Report/Outlet_Performance",component:Jn},{path:"Report/Daily_Fulfillment",component:qn},{path:"Report/Employee_Performance",component:kn},{path:"Report/Product",component:ea},{path:"",redirectTo:"Delivery/Pick",pathMatch:"full"}];let Qa=(()=>{class n{}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)}),(0,r.Z)(n,"\u0275mod",t.oAB({type:n})),(0,r.Z)(n,"\u0275inj",t.cJS({imports:[Z.Bz.forChild(La),Z.Bz]})),n})();var Ya=p(56709),Ka=p(11594),Ha=p(65131);let Ga=(()=>{class n{}return(0,r.Z)(n,"\u0275fac",function(e){return new(e||n)}),(0,r.Z)(n,"\u0275mod",t.oAB({type:n})),(0,r.Z)(n,"\u0275inj",t.cJS({imports:[s.ez,c.u5,Qa,x.R,C.ZU,D.A0,h.Q,Ya.p9,m.d,Q.dr,C.ZU,Ka.K,Ha.X,S.T,J.AV,E.JX,O.Rh,X.O,J.AV]})),n})()},88651:(L,F,p)=>{p.d(F,{U:()=>D});var r=p(81180),s=p(24351),c=p(22863);class D extends c.M{get formData(){return this.data.Form}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}constructor(C,x,Z){super(C),(0,r.Z)(this,"formDataAPI",void 0),(0,r.Z)(this,"route",void 0),(0,r.Z)(this,"data",{}),this.formDataAPI=x,this.route=Z;let v=this.route.snapshot.queryParams;this.menuData$.pipe((0,s.b)(()=>this.httpService.post(`/api/${this.formDataAPI}`,JSON.stringify(v)))).subscribe(A=>{this.data=A,this.postBindForm(A)})}postBindForm(C){}onSubmit(C,x=!1){this.preSubmitForm(),this.httpService.post(`/api/${C}`,JSON.stringify(this.formData)).subscribe({next:Z=>{this.onSubmitSuccess(Z)},error:Z=>{this.onSubmitError(Z)}})}compare(C,x,Z){return(C<x?-1:1)*(Z?1:-1)}preSubmitForm(){}onSubmitSuccess(C){}onSubmitError(C){}}},23410:(L,F,p)=>{p.d(F,{X:()=>c});var r=p(81180),s=p(4077);class c extends s.n{constructor(h,C,x,Z,v){super(h,C,x,Z,v),(0,r.Z)(this,"httpService",void 0),(0,r.Z)(this,"nextPageDisabled",!1),(0,r.Z)(this,"extendData",!1),(0,r.Z)(this,"goToLast",!1),(0,r.Z)(this,"listTotal",void 0),(0,r.Z)(this,"infiniteList",void 0),(0,r.Z)(this,"oldRowCount",void 0),(0,r.Z)(this,"originalData",void 0),this.httpService=h}StoreRowsCountAPIResult(h,C=!1){this.httpService.post("/api/"+h,JSON.stringify(this.pageData.Filter)).subscribe(x=>{this.listTotal=x.Count,this.pageData.HideStoreApiCount=!0,C&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData())})}NextPage(h){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=h,this.getListData()}postInit(h){this.extendData?(this.infiniteList=this.infiniteList.concat(h.Data),this.postExtendData(h),this.extendData=!1):(console.log(h),this.infiniteList=h.Data,this.assignAggregate(h)),this.nextPageDisabled=!(h.Data.length<this.pageData.Filter.RowCount),this.originalData=h.Data,this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(h)}afterPostInit(h){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(h){}assignAggregate(h){}}},22414:(L,F,p)=>{p.d(F,{q:()=>C});var r=p(81180),s=p(69751),c=p(95698),D=p(94650),h=p(97185);let C=(()=>{class x{constructor(v){(0,r.Z)(this,"toastr",void 0),(0,r.Z)(this,"cloudinaryWidget",void 0),(0,r.Z)(this,"mediaEditorWidget",void 0),(0,r.Z)(this,"unfilteredResult",void 0),(0,r.Z)(this,"config",void 0),this.toastr=v;let A=localStorage.getItem("CloudinaryConfig"),d=atob(A);this.config=JSON.parse(d)}initMediaEditorWidget(v,A){return new s.y(d=>{this.mediaEditorWidget=v.mediaEditor(),this.mediaEditorWidget.update({publicIds:[A],cloudName:this.config.CloudName,image:{steps:["resizeAndCrop","export"],resizeAndCrop:{toggleAspectRatio:!0,aspectRatioLock:!0,flip:!0,rotate:!0,presets:["original"]},export:{quality:["auto"],formats:["png"],download:!0,share:!0}}}),this.mediaEditorWidget.on("export",_=>{d.next(_),d.complete()}),this.mediaEditorWidget.on("close",()=>{d.complete()})}).pipe((0,c.q)(1))}initUploadImageWidget(v,A){return new s.y(d=>{this.cloudinaryWidget=v.createUploadWidget({cloudName:this.config.CloudName,uploadPreset:this.config.UploadPreset,folder:A,googleApiKey:this.config.GoogleApiKey,sources:["local","camera","image_search","instagram"],cropping:this.config.Cropping,croppingCoordinatesMode:"custom",resourceType:"image",croppingDefaultSelectionRatio:1,clientAllowedFormats:["jpg","jpeg","png","gif"]},(_,f)=>{if(!_&&"success"===f.event){this.unfilteredResult=f;const T=f.info.secure_url.split("/").reverse(),g={ImageURL:f.info.secure_url.replace("https:",""),ImageName:T[0]};d.next(g)}_&&this.toastr.error(_.statusText,"Failed to upload image")})})}initUploadMultipleImagesWidget(v,A,d){return new s.y(_=>{this.cloudinaryWidget=v.createUploadWidget({cloudName:this.config.CloudName,uploadPreset:this.config.UploadPreset,folder:A,googleApiKey:this.config.GoogleApiKey,sources:["local","camera","image_search","instagram"],resourceType:"image",croppingDefaultSelectionRatio:1,clientAllowedFormats:["jpg","jpeg","png","gif"],maxFiles:d,text:{en:{notifications:{limit_reached:"You have reached the maximum number of product image (Max 5 Images)"}}}},(f,I)=>{if(f||"success"!==I.event)!f&&"close"===I.event&&_.complete();else{this.unfilteredResult=I;const g=I.info.secure_url.split("/").reverse(),t={ImageURL:I.info.secure_url.replace("https:",""),ImageName:g[0]};_.next(t)}f&&this.toastr.error(f.statusText,"Failed to upload image")})})}initUploadFileWidget(v,A){return new s.y(d=>{this.cloudinaryWidget=v.createUploadWidget({cloudName:this.config.CloudName,uploadPreset:this.config.UploadPreset,folder:A,sources:["local","image_search"],googleApiKey:this.config.GoogleApiKey},(_,f)=>{if(!_&&"success"===f.event){this.unfilteredResult=f;const T=f.info.secure_url.split("/").reverse()[0],g=f.info.secure_url.replace("https:","");d.next({FileName:T,FileURL:g})}})})}openUploadWidget(){this.cloudinaryWidget.open()}openMediaEditorWidget(){this.mediaEditorWidget.show()}destroyImageEditor(){this.mediaEditorWidget.destroy()}updateUploadWidgetMaxFiles(v){this.cloudinaryWidget.update({maxFiles:v})}}return(0,r.Z)(x,"\u0275fac",function(v){return new(v||x)(D.LFG(h._W))}),(0,r.Z)(x,"\u0275prov",D.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})),x})()},3077:(L,F,p)=>{p.d(F,{T:()=>T,v:()=>I});var r=p(81180),s=p(36895),c=p(94650),D=p(24006),h=p(65131),C=p(89156),x=p(83902);function Z(g,t){if(1&g&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&g){const m=c.oxw();c.xp6(1),c.AsE(" Showing ",m.pageData.Filter.PageNumber*m.total-m.total+1," - ",m.pageData.Filter.PageNumber*m.total," ")}}function v(g,t){if(1&g&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&g){const m=c.oxw();c.xp6(1),c.AsE(" Showing ",m.pageData.Filter.RowCount*m.pageData.Filter.PageNumber-m.pageData.Filter.RowCount+1," - ",m.pageData.Filter.RowCount*m.pageData.Filter.PageNumber-m.pageData.Filter.RowCount+m.total," ")}}function A(g,t){if(1&g){const m=c.EpF();c.TgZ(0,"span",8),c.NdJ("click",function(){c.CHM(m);const k=c.oxw();return c.KtG(k.StoreRowsCountAPIResult())}),c.TgZ(1,"i",9),c._uU(2,"?"),c.qZA()()}}function d(g,t){if(1&g&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&g){const m=c.oxw();c.xp6(1),c.hij(" of ",c.lcZ(2,1,m.listTotal),"")}}function _(g,t){if(1&g){const m=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(m);const k=c.oxw();return c.KtG(k.onPreviousPage())}),c._UZ(1,"i",11),c._uU(2," Previous"),c.qZA()}}function f(g,t){if(1&g){const m=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(m);const k=c.oxw();return c.KtG(k.onNextPage())}),c._UZ(1,"i",12),c._uU(2," Next"),c.qZA()}}let I=(()=>{class g{constructor(m){(0,r.Z)(this,"httpService",void 0),(0,r.Z)(this,"pageData",void 0),(0,r.Z)(this,"total",void 0),(0,r.Z)(this,"api",void 0),(0,r.Z)(this,"jumpToPage",new c.vpe),(0,r.Z)(this,"previousPage",new c.vpe),(0,r.Z)(this,"nextPage",new c.vpe),(0,r.Z)(this,"pageNumber",1),(0,r.Z)(this,"showingNumber",this.pageNumber),(0,r.Z)(this,"listTotal",-1),this.httpService=m}onJumpToPage(m){"Enter"===m.key&&(this.pageData.Filter.PageNumber=this.pageNumber,this.showingNumber=this.pageNumber,this.jumpToPage.emit())}onPreviousPage(){this.pageData.Filter.PageNumber-=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.previousPage.emit()}onNextPage(){this.pageData.Filter.PageNumber+=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.nextPage.emit()}StoreRowsCountAPIResult(){this.httpService.post("/api/"+this.api,JSON.stringify(this.pageData.Filter)).subscribe(m=>{this.listTotal=m.Count?m.Count:m,this.pageData.HideStoreApiCount=!0})}}return(0,r.Z)(g,"\u0275fac",function(m){return new(m||g)(c.Y36(C.O))}),(0,r.Z)(g,"\u0275cmp",c.Xpm({type:g,selectors:[["POS-complex-pagination"]],inputs:{pageData:"pageData",total:"total",api:"api"},outputs:{jumpToPage:"jumpToPage",previousPage:"previousPage",nextPage:"nextPage"},decls:12,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],[4,"ngIf"],["style","cursor: pointer",3,"click",4,"ngIf"],["type","text","autoNum","",1,"text-end",2,"width","45px",3,"ngModel","keyup","ngModelChange"],[1,"btn-group"],["class","btn btn-outline-secondary btn-sm text-primary",3,"click",4,"ngIf"],[2,"cursor","pointer",3,"click"],[1,"border","p-3"],[1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-left"],[1,"fa-solid","fa-arrow-right"]],template:function(m,q){1&m&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2),c.YNc(3,Z,2,2,"span",3),c.YNc(4,v,2,2,"span",3),c.YNc(5,A,3,0,"span",4),c.YNc(6,d,3,3,"span",3),c._uU(7," records ~ Page "),c.TgZ(8,"input",5),c.NdJ("keyup",function(P){return q.onJumpToPage(P)})("ngModelChange",function(P){return q.pageNumber=P}),c.qZA()()(),c.TgZ(9,"div",6),c.YNc(10,_,3,0,"a",7),c.YNc(11,f,3,0,"a",7),c.qZA()()),2&m&&(c.xp6(3),c.Q6J("ngIf",q.pageData.Filter.RowCount==q.total),c.xp6(1),c.Q6J("ngIf",q.pageData.Filter.RowCount!=q.total),c.xp6(1),c.Q6J("ngIf",!q.pageData.HideStoreApiCount),c.xp6(1),c.Q6J("ngIf",q.pageData.HideStoreApiCount),c.xp6(2),c.Q6J("ngModel",q.pageNumber),c.xp6(2),c.Q6J("ngIf",1!=q.pageData.Filter.PageNumber),c.xp6(1),c.Q6J("ngIf",q.total>=q.pageData.Filter.RowCount))},dependencies:[s.O5,D.Fj,D.JJ,D.On,x.b,s.JJ]})),g})(),T=(()=>{class g{}return(0,r.Z)(g,"\u0275fac",function(m){return new(m||g)}),(0,r.Z)(g,"\u0275mod",c.oAB({type:g})),(0,r.Z)(g,"\u0275inj",c.cJS({imports:[s.ez,D.u5,D.UX,h.X]})),g})()},11594:(L,F,p)=>{p.d(F,{K:()=>A,P:()=>v});var r=p(81180),s=p(94650),c=p(10266),D=p(71948),h=p(36895),C=p(24006);const x=function(d,_){return{color:d,"font-weight":_}};function Z(d,_){if(1&d&&(s.TgZ(0,"mat-radio-button",2),s._uU(1),s.qZA()),2&d){const f=_.$implicit,I=_.index,T=s.oxw();s.Akn(s.WLB(7,x,T.model==f.Key&&T.activeBold?"#0976b4":"",T.model==f.Key&&T.activeBold?"700":"")),s.Q6J("disabled",T.exception==f.Value)("matTooltip",T.title.length>0?T.title[I]:"")("value",f.Key)("name",T.name),s.xp6(1),s.hij("",f.Value," ")}}let v=(()=>{class d{constructor(){(0,r.Z)(this,"model",void 0),(0,r.Z)(this,"disabled",void 0),(0,r.Z)(this,"modelChange",new s.vpe),(0,r.Z)(this,"options",[{Key:!1,Value:"No"},{Key:!0,Value:"Yes"}]),(0,r.Z)(this,"border",!1),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"title",[]),(0,r.Z)(this,"exception",void 0),(0,r.Z)(this,"activeBold",void 0)}change(f){this.modelChange.emit(f)}}return(0,r.Z)(d,"\u0275fac",function(f){return new(f||d)}),(0,r.Z)(d,"\u0275cmp",s.Xpm({type:d,selectors:[["radio-options"]],inputs:{model:"model",disabled:"disabled",options:"options",border:"border",name:"name",title:"title",exception:"exception",activeBold:"activeBold"},outputs:{modelChange:"modelChange"},decls:2,vars:3,consts:[["color","primary",3,"disabled","ngModel","ngModelChange"],["matTooltipPosition","above","class","me-4 mt-1",3,"style","disabled","matTooltip","value","name",4,"ngFor","ngForOf"],["matTooltipPosition","above",1,"me-4","mt-1",3,"disabled","matTooltip","value","name"]],template:function(f,I){1&f&&(s.TgZ(0,"mat-radio-group",0),s.NdJ("ngModelChange",function(g){return I.change(g)}),s.YNc(1,Z,2,10,"mat-radio-button",1),s.qZA()),2&f&&(s.Q6J("disabled",I.disabled)("ngModel",I.model),s.xp6(1),s.Q6J("ngForOf",I.options))},dependencies:[D.VQ,D.U0,h.sg,C.JJ,C.On,c.gM],styles:[".mat-mdc-radio-button .mdc-radio{padding:8px;margin:0}.mat-mdc-radio-button .mdc-radio .mdc-radio__background:before{top:-8px;left:-8px;width:36px;height:36px}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:0;right:0;left:0;width:36px;height:36px}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#0976b4!important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{background-color:#0976b4!important;border-color:#0976b4!important}\n"],encapsulation:2})),d})(),A=(()=>{class d{}return(0,r.Z)(d,"\u0275fac",function(f){return new(f||d)}),(0,r.Z)(d,"\u0275mod",s.oAB({type:d})),(0,r.Z)(d,"\u0275inj",s.cJS({imports:[D.Fk,h.ez,C.u5,c.AV]})),d})()}}]);