marketplacepos 3.4.2 → 3.5.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 (82) hide show
  1. package/Marketplace/3rdpartylicenses.txt +5 -0
  2. package/Marketplace/{chunk-7O2LUPOW.js → chunk-266DSHGO.js} +1 -1
  3. package/Marketplace/{chunk-DH7A3MMY.js → chunk-2FIOSKRJ.js} +1 -1
  4. package/Marketplace/{chunk-I5WJTOZD.js → chunk-2NSPG6VQ.js} +1 -1
  5. package/Marketplace/{chunk-VJLQRARA.js → chunk-3EZXX4SY.js} +1 -1
  6. package/Marketplace/{chunk-KHQYY4CP.js → chunk-3H6SWWM2.js} +1 -1
  7. package/Marketplace/{chunk-QXKJ6AH2.js → chunk-3KDFTXQM.js} +1 -1
  8. package/Marketplace/{chunk-5LIHLHZ2.js → chunk-3S4B7FJG.js} +1 -1
  9. package/Marketplace/{chunk-IKBHUDBF.js → chunk-3URAANI6.js} +1 -1
  10. package/Marketplace/{chunk-CB54UHPH.js → chunk-3UYUXGVK.js} +1 -1
  11. package/Marketplace/{chunk-QZHSCJJ5.js → chunk-4FXEREAP.js} +1 -1
  12. package/Marketplace/chunk-4PPU4SZR.js +1 -0
  13. package/Marketplace/{chunk-X6OLODND.js → chunk-5A74K34K.js} +2 -2
  14. package/Marketplace/{chunk-CVIYGYJG.js → chunk-5BFBDU4Y.js} +1 -1
  15. package/Marketplace/{chunk-CLLCMDP4.js → chunk-5FWZE3M6.js} +1 -1
  16. package/Marketplace/{chunk-LUN7S6P4.js → chunk-6ORFYERF.js} +1 -1
  17. package/Marketplace/{chunk-BJCKTMTZ.js → chunk-6R23WA5G.js} +1 -1
  18. package/Marketplace/{chunk-TEIBLAW7.js → chunk-75KTCVZF.js} +2 -2
  19. package/Marketplace/{chunk-DANZQU6U.js → chunk-A6HOOHGI.js} +1 -1
  20. package/Marketplace/{chunk-6H6S75XM.js → chunk-BFSIXPYE.js} +1 -1
  21. package/Marketplace/{chunk-HO6I7ZN6.js → chunk-BNL5KXTW.js} +1 -1
  22. package/Marketplace/{chunk-GPNYP6CI.js → chunk-CGWBESJR.js} +1 -1
  23. package/Marketplace/chunk-CIUA5X4L.js +39 -0
  24. package/Marketplace/{chunk-Y4RCGXQK.js → chunk-CMHF5RTN.js} +1 -1
  25. package/Marketplace/{chunk-4ZIFLVEZ.js → chunk-CQY6SBLJ.js} +1 -1
  26. package/Marketplace/{chunk-EGVKBYT5.js → chunk-D7MTVAUX.js} +1 -1
  27. package/Marketplace/{chunk-LHYUY4OW.js → chunk-EV36IP6L.js} +1 -1
  28. package/Marketplace/chunk-F3YY7P47.js +1 -0
  29. package/Marketplace/{chunk-HMATF4RH.js → chunk-F55Q67A4.js} +1 -1
  30. package/Marketplace/{chunk-JD4NX6LL.js → chunk-FHIDET6K.js} +1 -1
  31. package/Marketplace/{chunk-APSB364O.js → chunk-FKBDMXZF.js} +1 -1
  32. package/Marketplace/{chunk-XG47KOUR.js → chunk-FVAPOGDC.js} +1 -1
  33. package/Marketplace/{chunk-OHLIZGJ7.js → chunk-G5PYEJ6I.js} +1 -1
  34. package/Marketplace/{chunk-VLWVI7LT.js → chunk-G6FQOKR3.js} +1 -1
  35. package/Marketplace/{chunk-EBAG6BIX.js → chunk-GJLYUWSL.js} +1 -1
  36. package/Marketplace/{chunk-HIQEVY5J.js → chunk-GUDIOT6F.js} +1 -1
  37. package/Marketplace/{chunk-3FA5VSAY.js → chunk-IHMSIZQP.js} +1 -1
  38. package/Marketplace/{chunk-CNK2ETMZ.js → chunk-IKMQT2F2.js} +1 -1
  39. package/Marketplace/{chunk-LC5NUVMA.js → chunk-KJQHDPO2.js} +1 -1
  40. package/Marketplace/{chunk-TKW6MA5X.js → chunk-KLMICCVJ.js} +1 -1
  41. package/Marketplace/{chunk-OGA3XTQE.js → chunk-KSOIRHFB.js} +1 -1
  42. package/Marketplace/{chunk-EIQQEQMI.js → chunk-KTTSCH5B.js} +1 -1
  43. package/Marketplace/{chunk-ENUKURHL.js → chunk-L73KNYMB.js} +1 -1
  44. package/Marketplace/{chunk-WT7HH4UV.js → chunk-LKBZC32T.js} +1 -1
  45. package/Marketplace/{chunk-TFM4P7KH.js → chunk-NGLKNAAE.js} +1 -1
  46. package/Marketplace/{chunk-KS42UW22.js → chunk-NHFS3EQL.js} +1 -1
  47. package/Marketplace/{chunk-FJAD3LVA.js → chunk-NVLJ23H4.js} +1 -1
  48. package/Marketplace/{chunk-45BCCCD5.js → chunk-NWWR3K33.js} +1 -1
  49. package/Marketplace/{chunk-H5BAFHZZ.js → chunk-OVHULOR3.js} +1 -1
  50. package/Marketplace/{chunk-PASXSTSS.js → chunk-PMCLVNMY.js} +1 -1
  51. package/Marketplace/{chunk-WGNBD2TG.js → chunk-QMFPH7XZ.js} +5 -5
  52. package/Marketplace/{chunk-WAE5XPQ6.js → chunk-QS23P4G5.js} +1 -1
  53. package/Marketplace/{chunk-WL3GCHJ5.js → chunk-QUDJWHMB.js} +1 -1
  54. package/Marketplace/{chunk-XNEL4SD6.js → chunk-R56RSI2V.js} +1 -1
  55. package/Marketplace/{chunk-MPXURNR4.js → chunk-RBJQ6EI6.js} +1 -1
  56. package/Marketplace/{chunk-2PR23CRN.js → chunk-RHYOB3FA.js} +1 -1
  57. package/Marketplace/{chunk-JDAC3DI7.js → chunk-SUBRCXIB.js} +1 -1
  58. package/Marketplace/{chunk-Q27U6EXR.js → chunk-TGSKHOI4.js} +1 -1
  59. package/Marketplace/{chunk-NLUIK3SD.js → chunk-TXVLR2RN.js} +1 -1
  60. package/Marketplace/{chunk-CAF3EESF.js → chunk-VMNROKIK.js} +1 -1
  61. package/Marketplace/{chunk-4FIQ677Y.js → chunk-VPHHTNUD.js} +1 -1
  62. package/Marketplace/chunk-VPZ3M3XI.js +1 -0
  63. package/Marketplace/{chunk-QA6BHZKW.js → chunk-VVGZ7KQX.js} +1 -1
  64. package/Marketplace/{chunk-NQ5YXCPF.js → chunk-W5JLE65X.js} +1 -1
  65. package/Marketplace/{chunk-RUG3NZNS.js → chunk-WX2VXA4V.js} +1 -1
  66. package/Marketplace/index.html +2 -2
  67. package/Marketplace/{main-MTBOIFWC.js → main-FFSPLMLV.js} +1 -1
  68. package/Marketplace/media/color-3LUHUBGQ.png +0 -0
  69. package/Marketplace/media/hue-RMMBQOAC.png +0 -0
  70. package/Marketplace/styles-VIFLB3RD.css +1 -0
  71. package/package.json +1 -1
  72. package/Marketplace/chunk-ANO5F2BV.js +0 -8
  73. package/Marketplace/chunk-FWUAZZDI.js +0 -1
  74. package/Marketplace/chunk-JIRDXTRJ.js +0 -1
  75. package/Marketplace/chunk-TZO7ICWB.js +0 -1
  76. package/Marketplace/styles-JRURH5LL.css +0 -1
  77. /package/Marketplace/{chunk-7G5B67SI.js → chunk-2IH2MGS7.js} +0 -0
  78. /package/Marketplace/{chunk-DILTMQOY.js → chunk-3C4XDMT2.js} +0 -0
  79. /package/Marketplace/{chunk-SZQIM5RM.js → chunk-GWMLSBG4.js} +0 -0
  80. /package/Marketplace/{chunk-4YO3BZ5L.js → chunk-MNDH6U5G.js} +0 -0
  81. /package/Marketplace/{chunk-HPDCVTZM.js → chunk-T6GUYLRX.js} +0 -0
  82. /package/Marketplace/{polyfills-WRDNL3NI.js → polyfills-HTM62PZX.js} +0 -0
@@ -1 +1 @@
1
- import{b as Y}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DH7A3MMY.js";import{b as k,e as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DANZQU6U.js";import{c as X}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LC5NUVMA.js";import{a as A,c as z,d as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LHYUY4OW.js";import{t as q,u as J,v as Q,w as W}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EGVKBYT5.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CNK2ETMZ.js";import{h as $,k as H,u as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-OGA3XTQE.js";import{c as _}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-SZQIM5RM.js";import{$ as d,$a as E,$b as j,Ab as F,Bb as U,Ea as c,Fa as C,Jc as v,Na as m,P as L,Ta as h,W as N,Xb as K,Ya as o,Yb as V,Za as r,_a as T,ab as w,cb as P,da as x,dc as S,ea as g,gb as p,ia as y,ib as f,ja as I,ob as s,pb as u,q as M,qb as D,ya as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HPDCVTZM.js";function ne(n,e){if(n&1&&(o(0,"span",14),T(1,"img",15),r(),s(2)),n&2){let l=e.item;c(1),m("src",l.logo,O),c(1),D(" ",l.Name," ")}}function oe(n,e){if(n&1){let l=P();E(0),o(1,"ng-select",17),p("ngModelChange",function(i){y(l);let a=f().$implicit;return I(a.ProductSKU=i)}),r(),w()}if(n&2){let l=e.ngIf,t=f().$implicit;c(1),m("ngModel",t.ProductSKU)("items",l)}}function re(n,e){if(n&1&&(o(0,"tr")(1,"td"),s(2),r(),o(3,"td"),s(4),r(),o(5,"td"),s(6),r(),o(7,"td"),h(8,oe,2,2,"ng-container",16),F(9,"async"),r()()),n&2){let l=e.$implicit,t=f();c(2),u(l.Name),c(2),u(l.Service),c(2),u(l.TypeString),c(2),m("ngIf",U(9,4,t.logisticOptions$))}}var ee=(()=>{let e=class e{constructor(t,i){this.http=t,this.toastr=i,this.filter={ChannelID:""},this.logisticServiceOptions=[],this.initLoader()}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(t=>{this.channelOptions=_.assignChannelLogo(t.Options.Channel),this.filter=t.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(L(1),N(t=>{this.logisticServiceOptions=t}))}Validate(){for(let t of this.logisticServices)this.datasource.find(a=>a.ProductSKU==t.ProductSKU&&a.Name==t.Name)===void 0&&(t.IsChange=!0);return Promise.resolve(this.logisticServices)}submitLogistics(){this.Validate().then(t=>{this.http.post("/api/Logistic/Submit",this.logisticServices).subscribe(i=>{this.toastr.success("Success","Update Complete!",{timeOut:5e3,enableHtml:!0}),this.getLogisticService()})})}getLogisticService(){this.datasource=[],this.http.post("/api/Logistic/Get",this.filter).pipe(M(t=>t.map(i=>(i.ProductSKU=_.IsEmpty(i.ProductSKU)?null:i.ProductSKU,i)))).subscribe(t=>{this.iniTitle(),this.logisticServices=t,this.datasource=structuredClone(t)})}iniTitle(){let t=this.channelOptions.find(i=>i.ID==this.filter.ChannelID);this.channelName=t?t.Name:null}};e.\u0275fac=function(i){return new(i||e)(C(R),C(k))},e.\u0275cmp=x({type:e,selectors:[["app-logistic"]],decls:29,vars:6,consts:[["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"headerTitle","hideSearchDropdown","onSubmit"],["container",""],[1,"mb-3","fw-normal"],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[4,"ngIf"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModel","items","ngModelChange"]],template:function(i,a){i&1&&(o(0,"mainpanel",0),p("onSubmit",function(){return a.getLogisticService()}),o(1,"filters")(2,"div",1)(3,"div")(4,"h5",2),s(5,"Select a Channel"),r(),o(6,"ng-select",3),p("ngModelChange",function(ie){return a.filter.ChannelID=ie}),h(7,ne,3,2,"ng-template",4),r()()()(),o(8,"actions")(9,"a",5),p("click",function(){return a.submitLogistics()}),s(10,"Submit"),r()(),o(11,"content")(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"table",10)(17,"thead",11)(18,"tr",12)(19,"th"),s(20,"Logistic"),r(),o(21,"th"),s(22,"Service"),r(),o(23,"th"),s(24,"Type"),r(),o(25,"th"),s(26,"Logistic Service"),r()()(),o(27,"tbody"),h(28,re,10,6,"tr",13),r()()()()()()()()),i&2&&(m("headerTitle","Logistic Courier - "+a.channelName)("hideSearchDropdown",!1),c(6),m("clearable",!1)("items",a.channelOptions)("ngModel",a.filter.ChannelID),c(22),m("ngForOf",a.logisticServices))},dependencies:[K,V,$,H,Q,z,A,q,j]});let n=e;return n})();var ae=[{path:"",component:ee}],te=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=d({imports:[S,v.forChild(ae)]});let n=e;return n})();var Pe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=d({imports:[S,v,te,B,W,G,Y,X,J]});let n=e;return n})();export{Pe as LogisticModule};
1
+ import{b as Y}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-2FIOSKRJ.js";import{b as k,e as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-A6HOOHGI.js";import{c as X}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KJQHDPO2.js";import{a as A,c as z,d as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-EV36IP6L.js";import{t as q,u as J,v as Q,w as W}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-D7MTVAUX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js";import{h as $,k as H,u as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KSOIRHFB.js";import{c as _}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.js";import{$ as d,$a as E,Bb as F,Cb as U,Ea as c,Fa as C,Kc as v,Na as m,P as L,Ta as h,W as N,Ya as o,Yb as K,Za as r,Zb as V,_a as T,ab as w,ac as j,cb as P,da as x,ea as g,ec as S,gb as p,ia as y,ib as f,ja as I,ob as s,pb as u,q as M,qb as D,ya as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";function ne(n,e){if(n&1&&(o(0,"span",14),T(1,"img",15),r(),s(2)),n&2){let l=e.item;c(1),m("src",l.logo,O),c(1),D(" ",l.Name," ")}}function oe(n,e){if(n&1){let l=P();E(0),o(1,"ng-select",17),p("ngModelChange",function(i){y(l);let a=f().$implicit;return I(a.ProductSKU=i)}),r(),w()}if(n&2){let l=e.ngIf,t=f().$implicit;c(1),m("ngModel",t.ProductSKU)("items",l)}}function re(n,e){if(n&1&&(o(0,"tr")(1,"td"),s(2),r(),o(3,"td"),s(4),r(),o(5,"td"),s(6),r(),o(7,"td"),h(8,oe,2,2,"ng-container",16),F(9,"async"),r()()),n&2){let l=e.$implicit,t=f();c(2),u(l.Name),c(2),u(l.Service),c(2),u(l.TypeString),c(2),m("ngIf",U(9,4,t.logisticOptions$))}}var ee=(()=>{let e=class e{constructor(t,i){this.http=t,this.toastr=i,this.filter={ChannelID:""},this.logisticServiceOptions=[],this.initLoader()}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(t=>{this.channelOptions=_.assignChannelLogo(t.Options.Channel),this.filter=t.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(L(1),N(t=>{this.logisticServiceOptions=t}))}Validate(){for(let t of this.logisticServices)this.datasource.find(a=>a.ProductSKU==t.ProductSKU&&a.Name==t.Name)===void 0&&(t.IsChange=!0);return Promise.resolve(this.logisticServices)}submitLogistics(){this.Validate().then(t=>{this.http.post("/api/Logistic/Submit",this.logisticServices).subscribe(i=>{this.toastr.success("Success","Update Complete!",{timeOut:5e3,enableHtml:!0}),this.getLogisticService()})})}getLogisticService(){this.datasource=[],this.http.post("/api/Logistic/Get",this.filter).pipe(M(t=>t.map(i=>(i.ProductSKU=_.IsEmpty(i.ProductSKU)?null:i.ProductSKU,i)))).subscribe(t=>{this.iniTitle(),this.logisticServices=t,this.datasource=structuredClone(t)})}iniTitle(){let t=this.channelOptions.find(i=>i.ID==this.filter.ChannelID);this.channelName=t?t.Name:null}};e.\u0275fac=function(i){return new(i||e)(C(R),C(k))},e.\u0275cmp=x({type:e,selectors:[["app-logistic"]],decls:29,vars:6,consts:[["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"headerTitle","hideSearchDropdown","onSubmit"],["container",""],[1,"mb-3","fw-normal"],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[4,"ngIf"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModel","items","ngModelChange"]],template:function(i,a){i&1&&(o(0,"mainpanel",0),p("onSubmit",function(){return a.getLogisticService()}),o(1,"filters")(2,"div",1)(3,"div")(4,"h5",2),s(5,"Select a Channel"),r(),o(6,"ng-select",3),p("ngModelChange",function(ie){return a.filter.ChannelID=ie}),h(7,ne,3,2,"ng-template",4),r()()()(),o(8,"actions")(9,"a",5),p("click",function(){return a.submitLogistics()}),s(10,"Submit"),r()(),o(11,"content")(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"table",10)(17,"thead",11)(18,"tr",12)(19,"th"),s(20,"Logistic"),r(),o(21,"th"),s(22,"Service"),r(),o(23,"th"),s(24,"Type"),r(),o(25,"th"),s(26,"Logistic Service"),r()()(),o(27,"tbody"),h(28,re,10,6,"tr",13),r()()()()()()()()),i&2&&(m("headerTitle","Logistic Courier - "+a.channelName)("hideSearchDropdown",!1),c(6),m("clearable",!1)("items",a.channelOptions)("ngModel",a.filter.ChannelID),c(22),m("ngForOf",a.logisticServices))},dependencies:[K,V,$,H,Q,z,A,q,j]});let n=e;return n})();var ae=[{path:"",component:ee}],te=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=d({imports:[S,v.forChild(ae)]});let n=e;return n})();var Pe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=d({imports:[S,v,te,B,W,G,Y,X,J]});let n=e;return n})();export{Pe as LogisticModule};
@@ -1 +1 @@
1
- import{a as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-MPXURNR4.js";import{a as st}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-4YO3BZ5L.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-JD4NX6LL.js";import{a as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CB54UHPH.js";import{e as it}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DANZQU6U.js";import{a as lt,c as mt,d as ct}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LHYUY4OW.js";import{v as k,w as pt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EGVKBYT5.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CNK2ETMZ.js";import{h as ot,k as at,u as rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-OGA3XTQE.js";import{c as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-SZQIM5RM.js";import{$ as I,$a as g,$b as P,Ab as d,Bb as v,Cb as S,Ea as m,Ec as nt,Fa as C,Hc as R,Jb as Z,Jc as $,Na as c,P as j,S as q,Ta as u,U,Vb as tt,Xb as et,Ya as r,Yb as M,Za as a,_a as D,ab as h,ac as w,c as A,cb as J,cc as L,da as y,dc as F,ea as N,gb as T,ia as b,ib as f,ja as E,lb as K,nb as Q,ob as l,pb as s,q as _,qb as x,ub as W,vb as X,wb as Y,xa as G,ya as H}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HPDCVTZM.js";function xt(t,e){if(t&1&&(r(0,"span",13),D(1,"img",14),a(),l(2)),t&2){let n=e.item;m(1),c("src",n.logo,H),m(1),x(" ",n.Name," ")}}function It(t,e){if(t&1&&(g(0),l(1),d(2,"number"),r(3,"span"),l(4,"s"),a(),h()),t&2){let n=f().$implicit;m(1),x(" ",S(2,1,n.DurationInSecond,"1.1-1")," ")}}function yt(t,e){t&1&&l(0," - ")}var Nt=(t,e)=>({"bg-gradient-danger":t,"bg-gradient-warning":e}),bt=()=>["/menu/notification/detail"],Et=t=>({ID:t});function Dt(t,e){if(t&1&&(g(0),r(1,"tr",15)(2,"td")(3,"a",16),D(4,"img",17),r(5,"span"),l(6),a()()(),r(7,"td")(8,"b"),l(9),a(),D(10,"div",18),a(),r(11,"td"),u(12,It,5,4,"ng-container",19)(13,yt,1,0,"ng-template",null,20,Z),a(),r(15,"td"),l(16),a(),r(17,"td"),l(18),d(19,"date"),a()(),h()),t&2){let n=e.$implicit,o=Q(14);m(1),c("ngClass",Y(14,Nt,n.Status==1,n.Status==0)),m(2),c("routerLink",W(17,bt))("queryParams",X(18,Et,n.ID)),m(1),K("src",n.Img,H),m(2),s(n.Name),m(3),s(n.Label),m(1),c("innerHTML",n.Message,G),m(2),c("ngIf",n.DurationInSecond)("ngIfElse",o),m(4),s(n.StatusLabel),m(2),s(S(19,11,n.Created,"dd MMM yyyy HH:mm"))}}function Tt(t,e){if(t&1){let n=J();g(0),r(1,"div",5)(2,"div",21)(3,"app-custom-paginator",22),T("total",function(){b(n);let i=f(2);return E(i.getRowCount())})("next",function(){b(n);let i=f(2);return E(i.onNextPage())})("previous",function(){b(n);let i=f(2);return E(i.onPreviousPage())}),d(4,"async"),d(5,"async"),a()()(),h()}if(t&2){let n=f().ngIf,o=f();m(3),c("filter",o.filter)("totaldata",n==null?null:n.length)("paginationTotal",v(4,4,o.rowCount$))("hasClicked",v(5,6,o.rowCount$))}}function Mt(t,e){if(t&1&&(g(0),u(1,Tt,6,8,"ng-container",12),h()),t&2){let n=e.ngIf;m(1),c("ngIf",n.length>0)}}var dt=(()=>{let e=class e{constructor(o,i){this.http=o,this.notificationService=i,this.filter=new st,this.destroy$=new A}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(U(this.destroy$)).subscribe(o=>{o.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(o=>{this.filter=o.Filter,this.filter.PageSize=this.filter.RowCount,this.channelOptions=V.assignChannelLogo(o.Options.Channel),this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let o={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",o).pipe(_(i=>i.Data),_(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),j(1))}setTimeToSecond(o){return o=o.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),o}setChannelLogoToNotifications(o){return o=o.map(i=>(i.Img=V.getChannelLogoByTypeId(i.TypeID),i)),o}onNextPage(){this.filter.PageNumber+=1,this.getNotifications()}onPreviousPage(){this.filter.PageNumber-=1,this.getNotifications()}getRowCount(){let o={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",o).pipe(_(i=>i.Count),j(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};e.\u0275fac=function(i){return new(i||e)(C(it),C(B))},e.\u0275cmp=y({type:e,selectors:[["app-notification"]],decls:31,vars:9,consts:[["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],["container",""],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["timeNotAvailable",""],[1,"col-12"],[3,"filter","totaldata","paginationTotal","hasClicked","total","next","previous"]],template:function(i,p){i&1&&(r(0,"mainpanel",0),T("onSubmit",function(){return p.onFilter()}),r(1,"filters")(2,"div",1)(3,"div")(4,"h6"),l(5,"Channel"),a(),r(6,"ng-select",2),T("ngModelChange",function(ht){return p.filter.ChannelID=ht}),u(7,xt,3,2,"ng-template",3),a()()()(),r(8,"content")(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"table",8)(14,"thead",9)(15,"tr",10)(16,"th"),l(17,"Channel"),a(),r(18,"th"),l(19,"Process"),a(),r(20,"th"),l(21,"Duration"),a(),r(22,"th"),l(23,"Status"),a(),r(24,"th"),l(25,"Created"),a()()(),r(26,"tbody"),u(27,Dt,20,20,"ng-container",11),d(28,"async"),a()()()()(),u(29,Mt,2,1,"ng-container",12),d(30,"async"),a()()()),i&2&&(m(6),c("clearable",!0)("items",p.channelOptions)("ngModel",p.filter.ChannelID),m(21),c("ngForOf",v(28,5,p.notifications$)),m(2),c("ngIf",v(30,7,p.notifications$)))},dependencies:[tt,et,M,mt,lt,ot,at,k,R,O,P,L,w]});let t=e;return t})();function Pt(t,e){if(t&1&&(r(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),l(4,"Perflog"),a()(),r(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),l(9),a()()()()()()),t&2){let n=f().ngIf;m(9),s(n.Perflog)}}function wt(t,e){if(t&1&&(g(0),r(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),l(5,"StackTrace"),a()(),r(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),l(10),a()()()()()(),h()),t&2){let n=f().ngIf;m(10),s(n==null?null:n.StackTrace)}}function Lt(t,e){if(t&1&&(g(0),r(1,"mainpanel",1)(2,"actions")(3,"a",2),l(4,"Back"),a()(),r(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),l(12,"General"),a()(),r(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),l(18,"Created Date"),a(),r(19,"div")(20,"span"),l(21),d(22,"date"),a()()()(),r(23,"div",10)(24,"div",11)(25,"label"),l(26,"Status"),a(),r(27,"div")(28,"span"),l(29),a()()()()(),r(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),l(34,"Duration"),a(),r(35,"div")(36,"span"),l(37),d(38,"number"),a()()()(),r(39,"div",10)(40,"div",11)(41,"label"),l(42,"Label"),a(),r(43,"div")(44,"span"),l(45),a()()()()()()()()(),r(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),l(51,"Message"),a()(),r(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),l(56),a()()()()()(),u(57,Pt,10,1,"div",16)(58,wt,11,1,"ng-container",0),a()()()(),h()),t&2){let n=e.ngIf;m(1),c("headerTitle","Notification "+n.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),m(20),s(S(22,10,n.Created,"dd MMM yyyy HH:mm:ss")),m(8),s(n.StatusLabel),m(8),x("",S(38,13,n.DurationInSecond,"1.1-1")," s"),m(8),s(n.Label),m(11),s(n.Message),m(1),c("ngIf",n==null?null:n.Perflog),m(1),c("ngIf",n==null?null:n.StackTrace)}}var ft=(()=>{let e=class e{constructor(o,i){this.activatedRoute=o,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(q(o=>{let i=o.ID;return this.notificationService.getNotificationDetail(i).pipe(_(p=>(p.DurationInSecond=parseInt(p.Duration)/1e3,p)))}))}};e.\u0275fac=function(i){return new(i||e)(C(nt),C(B))},e.\u0275cmp=y({type:e,selectors:[["app-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(i,p){i&1&&(u(0,Lt,59,16,"ng-container",0),d(1,"async")),i&2&&c("ngIf",v(1,1,p.notification$))},dependencies:[M,k,R,P,L,w]});let t=e;return t})();var Ft=[{path:"",component:dt},{path:"detail",component:ft}],ut=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[F,$.forChild(Ft)]});let t=e;return t})();var re=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[F,ut,ct,rt,pt,$,O]});let t=e;return t})();export{re as NotificationModule};
1
+ import{a as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-RBJQ6EI6.js";import{a as st}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-MNDH6U5G.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FHIDET6K.js";import{a as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-3UYUXGVK.js";import{e as it}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-A6HOOHGI.js";import{a as lt,c as mt,d as ct}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-EV36IP6L.js";import{v as k,w as pt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-D7MTVAUX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js";import{h as ot,k as at,u as rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KSOIRHFB.js";import{c as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.js";import{$ as I,$a as g,Bb as d,Cb as v,Db as S,Ea as m,Fa as C,Fc as nt,Ic as R,Kb as Z,Kc as $,Na as c,P as j,S as q,Ta as u,U,Wb as tt,Ya as r,Yb as et,Za as a,Zb as M,_a as D,ab as h,ac as P,bc as w,c as A,cb as J,da as y,dc as L,ea as N,ec as F,gb as T,ia as b,ib as f,ja as E,lb as K,nb as Q,ob as l,pb as s,q as _,qb as x,ub as W,vb as X,wb as Y,xa as G,ya as H}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";function xt(t,e){if(t&1&&(r(0,"span",13),D(1,"img",14),a(),l(2)),t&2){let n=e.item;m(1),c("src",n.logo,H),m(1),x(" ",n.Name," ")}}function It(t,e){if(t&1&&(g(0),l(1),d(2,"number"),r(3,"span"),l(4,"s"),a(),h()),t&2){let n=f().$implicit;m(1),x(" ",S(2,1,n.DurationInSecond,"1.1-1")," ")}}function yt(t,e){t&1&&l(0," - ")}var Nt=(t,e)=>({"bg-gradient-danger":t,"bg-gradient-warning":e}),bt=()=>["/menu/notification/detail"],Et=t=>({ID:t});function Dt(t,e){if(t&1&&(g(0),r(1,"tr",15)(2,"td")(3,"a",16),D(4,"img",17),r(5,"span"),l(6),a()()(),r(7,"td")(8,"b"),l(9),a(),D(10,"div",18),a(),r(11,"td"),u(12,It,5,4,"ng-container",19)(13,yt,1,0,"ng-template",null,20,Z),a(),r(15,"td"),l(16),a(),r(17,"td"),l(18),d(19,"date"),a()(),h()),t&2){let n=e.$implicit,o=Q(14);m(1),c("ngClass",Y(14,Nt,n.Status==1,n.Status==0)),m(2),c("routerLink",W(17,bt))("queryParams",X(18,Et,n.ID)),m(1),K("src",n.Img,H),m(2),s(n.Name),m(3),s(n.Label),m(1),c("innerHTML",n.Message,G),m(2),c("ngIf",n.DurationInSecond)("ngIfElse",o),m(4),s(n.StatusLabel),m(2),s(S(19,11,n.Created,"dd MMM yyyy HH:mm"))}}function Tt(t,e){if(t&1){let n=J();g(0),r(1,"div",5)(2,"div",21)(3,"app-custom-paginator",22),T("total",function(){b(n);let i=f(2);return E(i.getRowCount())})("next",function(){b(n);let i=f(2);return E(i.onNextPage())})("previous",function(){b(n);let i=f(2);return E(i.onPreviousPage())}),d(4,"async"),d(5,"async"),a()()(),h()}if(t&2){let n=f().ngIf,o=f();m(3),c("filter",o.filter)("totaldata",n==null?null:n.length)("paginationTotal",v(4,4,o.rowCount$))("hasClicked",v(5,6,o.rowCount$))}}function Mt(t,e){if(t&1&&(g(0),u(1,Tt,6,8,"ng-container",12),h()),t&2){let n=e.ngIf;m(1),c("ngIf",n.length>0)}}var dt=(()=>{let e=class e{constructor(o,i){this.http=o,this.notificationService=i,this.filter=new st,this.destroy$=new A}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(U(this.destroy$)).subscribe(o=>{o.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(o=>{this.filter=o.Filter,this.filter.PageSize=this.filter.RowCount,this.channelOptions=V.assignChannelLogo(o.Options.Channel),this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let o={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",o).pipe(_(i=>i.Data),_(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),j(1))}setTimeToSecond(o){return o=o.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),o}setChannelLogoToNotifications(o){return o=o.map(i=>(i.Img=V.getChannelLogoByTypeId(i.TypeID),i)),o}onNextPage(){this.filter.PageNumber+=1,this.getNotifications()}onPreviousPage(){this.filter.PageNumber-=1,this.getNotifications()}getRowCount(){let o={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",o).pipe(_(i=>i.Count),j(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};e.\u0275fac=function(i){return new(i||e)(C(it),C(B))},e.\u0275cmp=y({type:e,selectors:[["app-notification"]],decls:31,vars:9,consts:[["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],["container",""],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["timeNotAvailable",""],[1,"col-12"],[3,"filter","totaldata","paginationTotal","hasClicked","total","next","previous"]],template:function(i,p){i&1&&(r(0,"mainpanel",0),T("onSubmit",function(){return p.onFilter()}),r(1,"filters")(2,"div",1)(3,"div")(4,"h6"),l(5,"Channel"),a(),r(6,"ng-select",2),T("ngModelChange",function(ht){return p.filter.ChannelID=ht}),u(7,xt,3,2,"ng-template",3),a()()()(),r(8,"content")(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"table",8)(14,"thead",9)(15,"tr",10)(16,"th"),l(17,"Channel"),a(),r(18,"th"),l(19,"Process"),a(),r(20,"th"),l(21,"Duration"),a(),r(22,"th"),l(23,"Status"),a(),r(24,"th"),l(25,"Created"),a()()(),r(26,"tbody"),u(27,Dt,20,20,"ng-container",11),d(28,"async"),a()()()()(),u(29,Mt,2,1,"ng-container",12),d(30,"async"),a()()()),i&2&&(m(6),c("clearable",!0)("items",p.channelOptions)("ngModel",p.filter.ChannelID),m(21),c("ngForOf",v(28,5,p.notifications$)),m(2),c("ngIf",v(30,7,p.notifications$)))},dependencies:[tt,et,M,mt,lt,ot,at,k,R,O,P,L,w]});let t=e;return t})();function Pt(t,e){if(t&1&&(r(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),l(4,"Perflog"),a()(),r(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),l(9),a()()()()()()),t&2){let n=f().ngIf;m(9),s(n.Perflog)}}function wt(t,e){if(t&1&&(g(0),r(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),l(5,"StackTrace"),a()(),r(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),l(10),a()()()()()(),h()),t&2){let n=f().ngIf;m(10),s(n==null?null:n.StackTrace)}}function Lt(t,e){if(t&1&&(g(0),r(1,"mainpanel",1)(2,"actions")(3,"a",2),l(4,"Back"),a()(),r(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),l(12,"General"),a()(),r(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),l(18,"Created Date"),a(),r(19,"div")(20,"span"),l(21),d(22,"date"),a()()()(),r(23,"div",10)(24,"div",11)(25,"label"),l(26,"Status"),a(),r(27,"div")(28,"span"),l(29),a()()()()(),r(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),l(34,"Duration"),a(),r(35,"div")(36,"span"),l(37),d(38,"number"),a()()()(),r(39,"div",10)(40,"div",11)(41,"label"),l(42,"Label"),a(),r(43,"div")(44,"span"),l(45),a()()()()()()()()(),r(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),l(51,"Message"),a()(),r(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),l(56),a()()()()()(),u(57,Pt,10,1,"div",16)(58,wt,11,1,"ng-container",0),a()()()(),h()),t&2){let n=e.ngIf;m(1),c("headerTitle","Notification "+n.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),m(20),s(S(22,10,n.Created,"dd MMM yyyy HH:mm:ss")),m(8),s(n.StatusLabel),m(8),x("",S(38,13,n.DurationInSecond,"1.1-1")," s"),m(8),s(n.Label),m(11),s(n.Message),m(1),c("ngIf",n==null?null:n.Perflog),m(1),c("ngIf",n==null?null:n.StackTrace)}}var ft=(()=>{let e=class e{constructor(o,i){this.activatedRoute=o,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(q(o=>{let i=o.ID;return this.notificationService.getNotificationDetail(i).pipe(_(p=>(p.DurationInSecond=parseInt(p.Duration)/1e3,p)))}))}};e.\u0275fac=function(i){return new(i||e)(C(nt),C(B))},e.\u0275cmp=y({type:e,selectors:[["app-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(i,p){i&1&&(u(0,Lt,59,16,"ng-container",0),d(1,"async")),i&2&&c("ngIf",v(1,1,p.notification$))},dependencies:[M,k,R,P,L,w]});let t=e;return t})();var Ft=[{path:"",component:dt},{path:"detail",component:ft}],ut=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[F,$.forChild(Ft)]});let t=e;return t})();var re=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[F,ut,ct,rt,pt,$,O]});let t=e;return t})();export{re as NotificationModule};