marketplacepos 3.12.1 → 3.13.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 (27) hide show
  1. package/Marketplace/{chunk-B6MUIJKS.js → chunk-27IRFADU.js} +1 -1
  2. package/Marketplace/{chunk-ADY4N3OO.js → chunk-2KLUGZKI.js} +1 -1
  3. package/Marketplace/{chunk-HMPT5KZP.js → chunk-52ZJ2S2T.js} +1 -1
  4. package/Marketplace/{chunk-6YNIQNOH.js → chunk-5US3733H.js} +1 -1
  5. package/Marketplace/{chunk-TV6HSZVQ.js → chunk-7OJNNBCN.js} +1 -1
  6. package/Marketplace/{chunk-JHFUHCJ5.js → chunk-AKIUNZCW.js} +1 -1
  7. package/Marketplace/{chunk-F27ETJV7.js → chunk-AZMGWQHI.js} +1 -1
  8. package/Marketplace/{chunk-XCICEYUJ.js → chunk-B6W4BWFY.js} +1 -1
  9. package/Marketplace/{chunk-OPCNZJU6.js → chunk-CW5KDBLU.js} +1 -1
  10. package/Marketplace/{chunk-VR4XGLLG.js → chunk-ENYT723T.js} +1 -1
  11. package/Marketplace/{chunk-55FMAZZX.js → chunk-GY7H2DNW.js} +1 -1
  12. package/Marketplace/{chunk-JFZBHYGA.js → chunk-H6JEFAAC.js} +1 -1
  13. package/Marketplace/{chunk-KL3JQ3CH.js → chunk-HMAXDG3A.js} +1 -1
  14. package/Marketplace/{chunk-LIKUREIJ.js → chunk-HW7H3ISH.js} +1 -1
  15. package/Marketplace/{chunk-D6DGXCGX.js → chunk-II3E425T.js} +1 -1
  16. package/Marketplace/{chunk-HZK5WTN4.js → chunk-M3P5OJ7T.js} +1 -1
  17. package/Marketplace/{chunk-LAPVAK6T.js → chunk-PVQ2T5XH.js} +1 -1
  18. package/Marketplace/{chunk-6UIQWVXV.js → chunk-RSTDY3BK.js} +1 -1
  19. package/Marketplace/{chunk-U5V35L36.js → chunk-RUBFBYVI.js} +1 -1
  20. package/Marketplace/{chunk-H5R2QBFE.js → chunk-VW2YGC3V.js} +1 -1
  21. package/Marketplace/{chunk-ACQFVAYY.js → chunk-WLSW7EOC.js} +1 -1
  22. package/Marketplace/{chunk-7CFCIVVL.js → chunk-XT632VDA.js} +1 -1
  23. package/Marketplace/{chunk-Q62ADDQD.js → chunk-ZIAISN44.js} +1 -1
  24. package/Marketplace/{chunk-2TP5VOFK.js → chunk-ZIWIIY7R.js} +1 -1
  25. package/Marketplace/index.html +2 -2
  26. package/Marketplace/{main-L7OPGQ22.js → main-NPVQUDS5.js} +1 -1
  27. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{a as R}from"./chunk-FX43R2N5.js";import{a as he,b as Ce,d as fe,e as xe}from"./chunk-2Y4N4NSS.js";import{a as $}from"./chunk-BSBYMQ7J.js";import{a as Ve,b as j,c as De}from"./chunk-BRTVFFDI.js";import"./chunk-662E5VTA.js";import{a as Te,c as Ee}from"./chunk-NNPT3RN6.js";import{a as Fe,b as Me}from"./chunk-G6CZHXQI.js";import"./chunk-M4VGME5L.js";import{a as Pe}from"./chunk-5WVUQE43.js";import"./chunk-AAIK6JQ3.js";import{g as ge}from"./chunk-LAPVAK6T.js";import{b as le,e as re}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{d as ye,k as Ie,l as we,m as be}from"./chunk-PIDUM6XT.js";import{t as Se,u as ve}from"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{b as se,c as pe,h as ce,k as me,m as _e,u as de}from"./chunk-F5YRASNU.js";import{c as D,f as ue}from"./chunk-2UXFUEON.js";import{B as z,Eb as O,Fb as c,Gb as V,Ha as F,Hb as P,Ia as s,Ib as Z,Ja as T,Jb as I,Kb as w,Lb as b,Mb as X,Nb as q,Pb as k,Q as G,Wb as h,X as B,Xb as f,Ya as u,Yb as N,Zb as U,_a as m,da as H,fb as v,ga as Y,gb as L,ib as A,jb as W,kb as o,lb as l,mb as x,nb as M,oa as _,ob as E,pa as d,pc as J,qb as y,rc as ee,sc as te,tb as S,vb as r,vc as ne,wc as ie,yb as K,yc as ae,zc as oe}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var Re=n=>({"text-decoration-line-through":n}),Be=n=>({"ms-10":n}),Le=n=>({"bg-gradient-warning":n});function Ae(n,p){if(n&1){let e=y();o(0,"button",37),S("click",function(){_(e);let t=r().ngIf,a=r(2);return d(a.updateStock(t))}),x(1,"i",38),c(2," Update "),l()}}function We(n,p){if(n&1&&(o(0,"div"),u(1,Ae,3,0,"button",36),l()),n&2){let e=p.ngIf,i=r(2);s(),m("ngIf",i.productService.hasSelectionVariant(e))}}function Oe(n,p){if(n&1&&(o(0,"span",39),x(1,"img",40),l(),c(2)),n&2){let e=p.item;s(),m("src",e==null?null:e.Img,F),s(),P(" ",e.Name," ")}}function Ue(n,p){n&1&&(o(0,"div",41)(1,"span"),c(2," showing only different stock, please press next to populate more data "),l()())}function $e(n,p){if(n&1){let e=y();o(0,"th")(1,"input",42),b("ngModelChange",function(t){_(e);let a=r(2);return w(a.checkboxState,t)||(a.checkboxState=t),d(t)}),S("ngModelChange",function(){let t=_(e).ngIf,a=r(2);return d(a.onCheckboxStateChange(t))}),l()()}if(n&2){let e=r(2);s(),I("ngModel",e.checkboxState)}}function je(n,p){n&1&&(o(0,"th",33),c(1," Reserved "),l())}function Qe(n,p){}function ze(n,p){if(n&1){let e=y();o(0,"input",61),b("ngModelChange",function(t){_(e);let a=r(3).$implicit;return w(a.selected,t)||(a.selected=t),d(t)}),S("ngModelChange",function(){_(e);let t=r(3).$implicit,a=r(2);return d(a.onCheckboxStateProduct(t))}),l()}if(n&2){let e=r(3).$implicit;I("ngModel",e.selected)}}function Ge(n,p){if(n&1){let e=y();o(0,"img",62),S("click",function(t){_(e);let a=r(3).$implicit,C=r(2);return d(C.onZoomImage(t,a==null?null:a.ImageUrl))}),l()}if(n&2){let e=r(3).$implicit;K("src",e==null?null:e.ThumbnailUrl,F)}}function He(n,p){n&1&&x(0,"img",58)}function Ye(n,p){if(n&1&&(x(0,"br"),o(1,"div",63),x(2,"i",64),o(3,"small"),c(4),l()()),n&2){let e=r(3).$implicit;s(4),P("(",e==null?null:e.Category,")")}}function Ke(n,p){if(n&1&&(o(0,"td",54)(1,"div",15),u(2,ze,1,1,"input",55),o(3,"div",56),u(4,Ge,1,1,"img",57)(5,He,1,0,"img",58),l()()(),o(6,"td",59)(7,"span",60),c(8),l(),u(9,Ye,5,1),l()),n&2){let e=r(2).$implicit,i=r(2);m("rowSpan",e==null?null:e.Variants.length),s(2),v(e.Variants.length>1?2:-1),s(),m("ngClass",k(7,Be,e.Variants.length<=1)),s(),v(e!=null&&e.ThumbnailUrl?4:5),s(2),m("rowSpan",e==null?null:e.Variants.length),s(2),V(e==null?null:e.Name),s(),v(e.CategoryID!==null&&e.CategoryID!=i.guidEmpty?9:-1)}}function Ze(n,p){if(n&1){let e=y();o(0,"input",42),b("ngModelChange",function(t){_(e);let a=r(2).$implicit;return w(a.selected,t)||(a.selected=t),d(t)}),l()}if(n&2){let e=r(2).$implicit;I("ngModel",e.selected)}}function Xe(n,p){if(n&1&&u(0,Ze,1,1,"input",48),n&2){let e=r().$implicit;v((e==null?null:e.Inventory)<=1e5?0:-1)}}function qe(n,p){if(n&1){let e=y();o(0,"input",42),b("ngModelChange",function(t){_(e);let a=r().$implicit;return w(a.selected,t)||(a.selected=t),d(t)}),l()}if(n&2){let e=r().$implicit;I("ngModel",e.selected)}}function Je(n,p){n&1&&(o(0,"div",65),c(1," Not Found "),l())}function et(n,p){if(n&1&&(o(0,"div")(1,"span",66),c(2),h(3,"number"),l(),c(4," => "),o(5,"span",67),c(6),h(7,"number"),l()()),n&2){let e=r().$implicit;s(2),P(" ",f(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),V(f(7,4,e==null?null:e.Inventory))}}function tt(n,p){if(n&1&&(c(0),h(1,"number")),n&2){let e=r().$implicit;P(" ",f(1,1,e==null?null:e.Inventory)," ")}}function nt(n,p){if(n&1&&(M(0),o(1,"div",68)(2,"a",69),x(3,"i",70),l()(),E()),n&2){let e=r().$implicit,i=r(3);s(2),m("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),F)}}function it(n,p){if(n&1){let e=y();o(0,"span",75),S("click",function(){let t=_(e).ngIf,a=r(2).$implicit,C=r().$implicit,g=r(2);return d(g.openTableDialog(C,a,t))}),c(1),h(2,"number"),l()}if(n&2){let e=r(2).$implicit;s(),P(" ",f(2,1,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function at(n,p){if(n&1){let e=y();o(0,"td",71)(1,"div",49)(2,"div"),u(3,it,3,3,"span",72),h(4,"async"),l(),o(5,"div",68)(6,"a",69),x(7,"i",70),l()(),o(8,"div",68)(9,"span",73),S("click",function(){_(e);let t=r().$implicit,a=r(3);return d(a.refreshInventory(t==null||t.Channel[0]==null?null:t.Channel[0].ChannelItemID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelVariationID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelID,t==null?null:t.ID))}),x(10,"i",74),l()()()()}if(n&2){let e=r().$implicit,i=r(3);m("ngClass",k(5,Le,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),m("ngIf",f(4,3,i.products$)),s(3),m("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,F)}}function ot(n,p){if(n&1&&(M(0),o(1,"span",76),c(2),h(3,"number"),l(),E()),n&2){let e=r(2).$implicit;s(2),P(" (",f(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function lt(n,p){n&1&&c(0," - ")}function rt(n,p){if(n&1&&(M(0),o(1,"td",45),u(2,ot,4,3,"ng-container",53)(3,lt,1,0,"ng-template",null,1,U),l(),E()),n&2){let e=O(4),i=r().$implicit;s(2),m("ngIf",i==null||i.Channel[0]==null?null:i.Channel[0].InventoryReserved)("ngIfElse",e)}}function st(n,p){n&1&&(M(0),c(1," - "),E())}function pt(n,p){if(n&1&&(o(0,"span",77),h(1,"date"),c(2),h(3,"date"),l()),n&2){let e=r().$implicit;m("matTooltip",N(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),P(" ",N(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function ct(n,p){if(n&1&&(o(0,"tr"),u(1,Ke,10,9),o(2,"td",44),c(3),l(),o(4,"td",45)(5,"span",46),c(6),l()(),o(7,"td",47),u(8,Xe,1,1)(9,qe,1,1,"input",48),l(),o(10,"td")(11,"div",49),u(12,Je,2,0,"div",50)(13,et,8,6,"div")(14,tt,2,3)(15,nt,4,1,"ng-container",5),l()(),u(16,at,11,7,"td",51)(17,rt,5,2,"ng-container",5),o(18,"td",52),u(19,st,2,0,"ng-container",53)(20,pt,4,8,"ng-template",null,0,U),l()()),n&2){let e=p.$implicit,i=p.index,t=O(21),a=r(3);s(),v(i==0?1:-1),s(2),V(e==null?null:e.Model),s(2),m("matTooltip",e.Discontinued?a.discontinuedVariantMsg:"")("ngClass",k(14,Re,e.Discontinued)),s(),V(e==null?null:e.Code),s(2),v((e==null?null:e.Channel[0].TypeID)==1?8:(e==null?null:e.Inventory)>=0?9:-1),s(4),m("ngIf",(e==null?null:e.I)==null),s(),v((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?13:-1),s(),v((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?14:-1),s(),m("ngIf",(e==null?null:e.I)!=null),s(),m("ngIf",e==null?null:e.Channel),s(),m("ngIf",a.isShowReservedColumn),s(2),m("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==a.minDate)("ngIfElse",t)}}function mt(n,p){if(n&1&&(o(0,"tbody"),A(1,Qe,0,0,null,null,L),u(3,ct,22,16,"tr",43),l()),n&2){let e=p.$implicit;s(),W(e.Variants),s(2),m("ngForOf",e.Variants)}}function _t(n,p){if(n&1){let e=y();o(0,"mainpanel",3),S("onSubmit",function(t){_(e);let a=r();return d(a.onSearch(t))}),o(1,"actions")(2,"div",4),u(3,We,2,1,"div",5),h(4,"async"),l()(),o(5,"filters")(6,"div")(7,"label",6),c(8,"Channel"),l(),o(9,"ng-select",7),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.ChannelID,t)||(a.searchFilter.ChannelID=t),d(t)}),u(10,Oe,3,2,"ng-template",8),l()(),o(11,"div",9)(12,"label",10),c(13,"PageNumber"),l(),o(14,"input",11),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.PageNumber,t)||(a.searchFilter.PageNumber=t),d(t)}),l()(),o(15,"div",9)(16,"label",12),c(17,"Page Size"),l(),o(18,"input",13),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.RowCount,t)||(a.searchFilter.RowCount=t),d(t)}),l()(),o(19,"div",9)(20,"label",14),c(21,"Quantity From - To"),l(),o(22,"div",15)(23,"input",16),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.QuantityFrom,t)||(a.searchFilter.QuantityFrom=t),d(t)}),l(),c(24," - "),o(25,"input",17),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.QuantityTo,t)||(a.searchFilter.QuantityTo=t),d(t)}),l()()()(),o(26,"content")(27,"div",18)(28,"div",19)(29,"div",20),u(30,Ue,3,0,"div",21),o(31,"table",22)(32,"thead",23)(33,"tr")(34,"th",24),c(35," Product "),x(36,"br"),o(37,"mat-slide-toggle",25),S("toggleChange",function(){_(e);let t=r();return t.showDifferenceStock=!t.showDifferenceStock,d(t.onShowDifferenceStock())}),o(38,"small",14),c(39,"FILTER DIFFERENT INVENTORY"),l()()(),o(40,"th",26),c(41,"Variant"),l(),o(42,"th",27),c(43,"SKU"),l(),u(44,$e,2,1,"th",5),h(45,"async"),o(46,"th",28),c(47,"POS"),l(),o(48,"th",29)(49,"div",30),S("click",function(){_(e);let t=r();return d(t.openModalFilter())}),x(50,"img",31),o(51,"span",32),c(52),h(53,"stringLimit"),l()()(),u(54,je,2,0,"th",33),o(55,"th",34),c(56,"Last Sync"),l()()(),A(57,mt,4,1,"tbody",null,L),h(59,"async"),l(),o(60,"infinite-paginator",35),h(61,"async"),S("onNextPage",function(){_(e);let t=r();return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=r();return d(t.onLastPage())})("onGetRowCount",function(){_(e);let t=r();return d(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()()()()}if(n&2){let e=r();m("headerTitle","Inventory Comparison")("pageData",e.pageData)("hideSearchBox",!1),s(3),m("ngIf",f(4,24,e.products$)),s(6),m("clearable",!1)("items",e.channelOptions),I("ngModel",e.searchFilter.ChannelID),s(5),I("ngModel",e.searchFilter.PageNumber),s(4),I("ngModel",e.searchFilter.RowCount),s(5),I("ngModel",e.searchFilter.QuantityFrom),s(2),I("ngModel",e.searchFilter.QuantityTo),s(5),m("ngIf",(e.searchFilter==null?null:e.searchFilter.filterModel)==3),s(14),m("ngIf",f(45,26,e.products$)),s(5),m("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>13?e.selectedChannel==null?null:e.selectedChannel.Name:""),s(),m("src",e.selectedChannel==null?null:e.selectedChannel.Img,F),s(2),Z(" ",N(53,28,e.selectedChannel==null?null:e.selectedChannel.Name,13),"",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>13?"...":""," "),s(2),v(e.isShowReservedColumn?54:-1),s(3),W(f(59,31,e.products$)),s(3),m("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",f(61,33,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.goToLastPage())}}var Gt=(()=>{let p=class p{constructor(i,t,a,C,g,Q,ke,Ne){this.http=i,this.toastr=t,this.dialog=a,this.productService=C,this.authService=g,this.biggerPictureService=Q,this.inventoryService=ke,this.mainPanelService=Ne,this.infinitePagination=H(j),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=D.MinDate,this.isShowReservedColumn=!0,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.guidEmpty=D.GuidEMpty,this.Options=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.channelOptions=this.authService.getChannels(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.products$=this.infinitePagination.data$.pipe(B(i=>{this.checkShowReservedColumn(i)}),G())}checkShowReservedColumn(i){let t=0,a;i.forEach(C=>{a=C.Variants.find(g=>D.IsNotEmpty(g?.Channel[0]?.InventoryReserved)),a&&(t+=1)}),this.isShowReservedColumn=t>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe(B(i=>{this.searchFilter={RowCount:i.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:i.Filter.ChannelID},this.initSelectedChannel(),this.infinitePagination.reloadPagination(this.searchFilter),this.showToastrMarketplaceInactive(!i.Filter.IsMarketplaceAppActive)}))}showToastrMarketplaceInactive(i){i&&this.toastr.warning(`Automatic inventory sync disabled.
1
+ import{a as R}from"./chunk-FX43R2N5.js";import{a as he,b as Ce,d as fe,e as xe}from"./chunk-2Y4N4NSS.js";import{a as $}from"./chunk-BSBYMQ7J.js";import{a as Ve,b as j,c as De}from"./chunk-BRTVFFDI.js";import"./chunk-662E5VTA.js";import{a as Te,c as Ee}from"./chunk-NNPT3RN6.js";import{a as Fe,b as Me}from"./chunk-G6CZHXQI.js";import"./chunk-M4VGME5L.js";import{a as Pe}from"./chunk-5WVUQE43.js";import"./chunk-AAIK6JQ3.js";import{g as ge}from"./chunk-PVQ2T5XH.js";import{b as le,e as re}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{d as ye,k as Ie,l as we,m as be}from"./chunk-PIDUM6XT.js";import{t as Se,u as ve}from"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{b as se,c as pe,h as ce,k as me,m as _e,u as de}from"./chunk-F5YRASNU.js";import{c as D,f as ue}from"./chunk-2UXFUEON.js";import{B as z,Eb as O,Fb as c,Gb as V,Ha as F,Hb as P,Ia as s,Ib as Z,Ja as T,Jb as I,Kb as w,Lb as b,Mb as X,Nb as q,Pb as k,Q as G,Wb as h,X as B,Xb as f,Ya as u,Yb as N,Zb as U,_a as m,da as H,fb as v,ga as Y,gb as L,ib as A,jb as W,kb as o,lb as l,mb as x,nb as M,oa as _,ob as E,pa as d,pc as J,qb as y,rc as ee,sc as te,tb as S,vb as r,vc as ne,wc as ie,yb as K,yc as ae,zc as oe}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var Re=n=>({"text-decoration-line-through":n}),Be=n=>({"ms-10":n}),Le=n=>({"bg-gradient-warning":n});function Ae(n,p){if(n&1){let e=y();o(0,"button",37),S("click",function(){_(e);let t=r().ngIf,a=r(2);return d(a.updateStock(t))}),x(1,"i",38),c(2," Update "),l()}}function We(n,p){if(n&1&&(o(0,"div"),u(1,Ae,3,0,"button",36),l()),n&2){let e=p.ngIf,i=r(2);s(),m("ngIf",i.productService.hasSelectionVariant(e))}}function Oe(n,p){if(n&1&&(o(0,"span",39),x(1,"img",40),l(),c(2)),n&2){let e=p.item;s(),m("src",e==null?null:e.Img,F),s(),P(" ",e.Name," ")}}function Ue(n,p){n&1&&(o(0,"div",41)(1,"span"),c(2," showing only different stock, please press next to populate more data "),l()())}function $e(n,p){if(n&1){let e=y();o(0,"th")(1,"input",42),b("ngModelChange",function(t){_(e);let a=r(2);return w(a.checkboxState,t)||(a.checkboxState=t),d(t)}),S("ngModelChange",function(){let t=_(e).ngIf,a=r(2);return d(a.onCheckboxStateChange(t))}),l()()}if(n&2){let e=r(2);s(),I("ngModel",e.checkboxState)}}function je(n,p){n&1&&(o(0,"th",33),c(1," Reserved "),l())}function Qe(n,p){}function ze(n,p){if(n&1){let e=y();o(0,"input",61),b("ngModelChange",function(t){_(e);let a=r(3).$implicit;return w(a.selected,t)||(a.selected=t),d(t)}),S("ngModelChange",function(){_(e);let t=r(3).$implicit,a=r(2);return d(a.onCheckboxStateProduct(t))}),l()}if(n&2){let e=r(3).$implicit;I("ngModel",e.selected)}}function Ge(n,p){if(n&1){let e=y();o(0,"img",62),S("click",function(t){_(e);let a=r(3).$implicit,C=r(2);return d(C.onZoomImage(t,a==null?null:a.ImageUrl))}),l()}if(n&2){let e=r(3).$implicit;K("src",e==null?null:e.ThumbnailUrl,F)}}function He(n,p){n&1&&x(0,"img",58)}function Ye(n,p){if(n&1&&(x(0,"br"),o(1,"div",63),x(2,"i",64),o(3,"small"),c(4),l()()),n&2){let e=r(3).$implicit;s(4),P("(",e==null?null:e.Category,")")}}function Ke(n,p){if(n&1&&(o(0,"td",54)(1,"div",15),u(2,ze,1,1,"input",55),o(3,"div",56),u(4,Ge,1,1,"img",57)(5,He,1,0,"img",58),l()()(),o(6,"td",59)(7,"span",60),c(8),l(),u(9,Ye,5,1),l()),n&2){let e=r(2).$implicit,i=r(2);m("rowSpan",e==null?null:e.Variants.length),s(2),v(e.Variants.length>1?2:-1),s(),m("ngClass",k(7,Be,e.Variants.length<=1)),s(),v(e!=null&&e.ThumbnailUrl?4:5),s(2),m("rowSpan",e==null?null:e.Variants.length),s(2),V(e==null?null:e.Name),s(),v(e.CategoryID!==null&&e.CategoryID!=i.guidEmpty?9:-1)}}function Ze(n,p){if(n&1){let e=y();o(0,"input",42),b("ngModelChange",function(t){_(e);let a=r(2).$implicit;return w(a.selected,t)||(a.selected=t),d(t)}),l()}if(n&2){let e=r(2).$implicit;I("ngModel",e.selected)}}function Xe(n,p){if(n&1&&u(0,Ze,1,1,"input",48),n&2){let e=r().$implicit;v((e==null?null:e.Inventory)<=1e5?0:-1)}}function qe(n,p){if(n&1){let e=y();o(0,"input",42),b("ngModelChange",function(t){_(e);let a=r().$implicit;return w(a.selected,t)||(a.selected=t),d(t)}),l()}if(n&2){let e=r().$implicit;I("ngModel",e.selected)}}function Je(n,p){n&1&&(o(0,"div",65),c(1," Not Found "),l())}function et(n,p){if(n&1&&(o(0,"div")(1,"span",66),c(2),h(3,"number"),l(),c(4," => "),o(5,"span",67),c(6),h(7,"number"),l()()),n&2){let e=r().$implicit;s(2),P(" ",f(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),V(f(7,4,e==null?null:e.Inventory))}}function tt(n,p){if(n&1&&(c(0),h(1,"number")),n&2){let e=r().$implicit;P(" ",f(1,1,e==null?null:e.Inventory)," ")}}function nt(n,p){if(n&1&&(M(0),o(1,"div",68)(2,"a",69),x(3,"i",70),l()(),E()),n&2){let e=r().$implicit,i=r(3);s(2),m("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),F)}}function it(n,p){if(n&1){let e=y();o(0,"span",75),S("click",function(){let t=_(e).ngIf,a=r(2).$implicit,C=r().$implicit,g=r(2);return d(g.openTableDialog(C,a,t))}),c(1),h(2,"number"),l()}if(n&2){let e=r(2).$implicit;s(),P(" ",f(2,1,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function at(n,p){if(n&1){let e=y();o(0,"td",71)(1,"div",49)(2,"div"),u(3,it,3,3,"span",72),h(4,"async"),l(),o(5,"div",68)(6,"a",69),x(7,"i",70),l()(),o(8,"div",68)(9,"span",73),S("click",function(){_(e);let t=r().$implicit,a=r(3);return d(a.refreshInventory(t==null||t.Channel[0]==null?null:t.Channel[0].ChannelItemID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelVariationID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelID,t==null?null:t.ID))}),x(10,"i",74),l()()()()}if(n&2){let e=r().$implicit,i=r(3);m("ngClass",k(5,Le,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),m("ngIf",f(4,3,i.products$)),s(3),m("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,F)}}function ot(n,p){if(n&1&&(M(0),o(1,"span",76),c(2),h(3,"number"),l(),E()),n&2){let e=r(2).$implicit;s(2),P(" (",f(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function lt(n,p){n&1&&c(0," - ")}function rt(n,p){if(n&1&&(M(0),o(1,"td",45),u(2,ot,4,3,"ng-container",53)(3,lt,1,0,"ng-template",null,1,U),l(),E()),n&2){let e=O(4),i=r().$implicit;s(2),m("ngIf",i==null||i.Channel[0]==null?null:i.Channel[0].InventoryReserved)("ngIfElse",e)}}function st(n,p){n&1&&(M(0),c(1," - "),E())}function pt(n,p){if(n&1&&(o(0,"span",77),h(1,"date"),c(2),h(3,"date"),l()),n&2){let e=r().$implicit;m("matTooltip",N(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),P(" ",N(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function ct(n,p){if(n&1&&(o(0,"tr"),u(1,Ke,10,9),o(2,"td",44),c(3),l(),o(4,"td",45)(5,"span",46),c(6),l()(),o(7,"td",47),u(8,Xe,1,1)(9,qe,1,1,"input",48),l(),o(10,"td")(11,"div",49),u(12,Je,2,0,"div",50)(13,et,8,6,"div")(14,tt,2,3)(15,nt,4,1,"ng-container",5),l()(),u(16,at,11,7,"td",51)(17,rt,5,2,"ng-container",5),o(18,"td",52),u(19,st,2,0,"ng-container",53)(20,pt,4,8,"ng-template",null,0,U),l()()),n&2){let e=p.$implicit,i=p.index,t=O(21),a=r(3);s(),v(i==0?1:-1),s(2),V(e==null?null:e.Model),s(2),m("matTooltip",e.Discontinued?a.discontinuedVariantMsg:"")("ngClass",k(14,Re,e.Discontinued)),s(),V(e==null?null:e.Code),s(2),v((e==null?null:e.Channel[0].TypeID)==1?8:(e==null?null:e.Inventory)>=0?9:-1),s(4),m("ngIf",(e==null?null:e.I)==null),s(),v((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?13:-1),s(),v((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?14:-1),s(),m("ngIf",(e==null?null:e.I)!=null),s(),m("ngIf",e==null?null:e.Channel),s(),m("ngIf",a.isShowReservedColumn),s(2),m("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==a.minDate)("ngIfElse",t)}}function mt(n,p){if(n&1&&(o(0,"tbody"),A(1,Qe,0,0,null,null,L),u(3,ct,22,16,"tr",43),l()),n&2){let e=p.$implicit;s(),W(e.Variants),s(2),m("ngForOf",e.Variants)}}function _t(n,p){if(n&1){let e=y();o(0,"mainpanel",3),S("onSubmit",function(t){_(e);let a=r();return d(a.onSearch(t))}),o(1,"actions")(2,"div",4),u(3,We,2,1,"div",5),h(4,"async"),l()(),o(5,"filters")(6,"div")(7,"label",6),c(8,"Channel"),l(),o(9,"ng-select",7),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.ChannelID,t)||(a.searchFilter.ChannelID=t),d(t)}),u(10,Oe,3,2,"ng-template",8),l()(),o(11,"div",9)(12,"label",10),c(13,"PageNumber"),l(),o(14,"input",11),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.PageNumber,t)||(a.searchFilter.PageNumber=t),d(t)}),l()(),o(15,"div",9)(16,"label",12),c(17,"Page Size"),l(),o(18,"input",13),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.RowCount,t)||(a.searchFilter.RowCount=t),d(t)}),l()(),o(19,"div",9)(20,"label",14),c(21,"Quantity From - To"),l(),o(22,"div",15)(23,"input",16),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.QuantityFrom,t)||(a.searchFilter.QuantityFrom=t),d(t)}),l(),c(24," - "),o(25,"input",17),b("ngModelChange",function(t){_(e);let a=r();return w(a.searchFilter.QuantityTo,t)||(a.searchFilter.QuantityTo=t),d(t)}),l()()()(),o(26,"content")(27,"div",18)(28,"div",19)(29,"div",20),u(30,Ue,3,0,"div",21),o(31,"table",22)(32,"thead",23)(33,"tr")(34,"th",24),c(35," Product "),x(36,"br"),o(37,"mat-slide-toggle",25),S("toggleChange",function(){_(e);let t=r();return t.showDifferenceStock=!t.showDifferenceStock,d(t.onShowDifferenceStock())}),o(38,"small",14),c(39,"FILTER DIFFERENT INVENTORY"),l()()(),o(40,"th",26),c(41,"Variant"),l(),o(42,"th",27),c(43,"SKU"),l(),u(44,$e,2,1,"th",5),h(45,"async"),o(46,"th",28),c(47,"POS"),l(),o(48,"th",29)(49,"div",30),S("click",function(){_(e);let t=r();return d(t.openModalFilter())}),x(50,"img",31),o(51,"span",32),c(52),h(53,"stringLimit"),l()()(),u(54,je,2,0,"th",33),o(55,"th",34),c(56,"Last Sync"),l()()(),A(57,mt,4,1,"tbody",null,L),h(59,"async"),l(),o(60,"infinite-paginator",35),h(61,"async"),S("onNextPage",function(){_(e);let t=r();return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=r();return d(t.onLastPage())})("onGetRowCount",function(){_(e);let t=r();return d(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()()()()}if(n&2){let e=r();m("headerTitle","Inventory Comparison")("pageData",e.pageData)("hideSearchBox",!1),s(3),m("ngIf",f(4,24,e.products$)),s(6),m("clearable",!1)("items",e.channelOptions),I("ngModel",e.searchFilter.ChannelID),s(5),I("ngModel",e.searchFilter.PageNumber),s(4),I("ngModel",e.searchFilter.RowCount),s(5),I("ngModel",e.searchFilter.QuantityFrom),s(2),I("ngModel",e.searchFilter.QuantityTo),s(5),m("ngIf",(e.searchFilter==null?null:e.searchFilter.filterModel)==3),s(14),m("ngIf",f(45,26,e.products$)),s(5),m("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>13?e.selectedChannel==null?null:e.selectedChannel.Name:""),s(),m("src",e.selectedChannel==null?null:e.selectedChannel.Img,F),s(2),Z(" ",N(53,28,e.selectedChannel==null?null:e.selectedChannel.Name,13),"",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>13?"...":""," "),s(2),v(e.isShowReservedColumn?54:-1),s(3),W(f(59,31,e.products$)),s(3),m("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",f(61,33,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.goToLastPage())}}var Gt=(()=>{let p=class p{constructor(i,t,a,C,g,Q,ke,Ne){this.http=i,this.toastr=t,this.dialog=a,this.productService=C,this.authService=g,this.biggerPictureService=Q,this.inventoryService=ke,this.mainPanelService=Ne,this.infinitePagination=H(j),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=D.MinDate,this.isShowReservedColumn=!0,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.guidEmpty=D.GuidEMpty,this.Options=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.channelOptions=this.authService.getChannels(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.products$=this.infinitePagination.data$.pipe(B(i=>{this.checkShowReservedColumn(i)}),G())}checkShowReservedColumn(i){let t=0,a;i.forEach(C=>{a=C.Variants.find(g=>D.IsNotEmpty(g?.Channel[0]?.InventoryReserved)),a&&(t+=1)}),this.isShowReservedColumn=t>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe(B(i=>{this.searchFilter={RowCount:i.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:i.Filter.ChannelID},this.initSelectedChannel(),this.infinitePagination.reloadPagination(this.searchFilter),this.showToastrMarketplaceInactive(!i.Filter.IsMarketplaceAppActive)}))}showToastrMarketplaceInactive(i){i&&this.toastr.warning(`Automatic inventory sync disabled.
2
2
  Please enable Dealpos X Marketplace Apps integration in POS Configuration`,"Warning")}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(i=>i.ID==this.searchFilter.ChannelID)}onSearch(i){this.searchFilter.text=i,this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(i){let t=this.productService.selectedVariantProduct(i);if(t.length>0){let a=t.map(g=>({ID:g.ID,Code:g.Code,Inventory:g.Inventory})),C={ListChannelID:[this.searchFilter.ChannelID],List:a};this.http.post("/api/Inventory/UpdateChannel",C).subscribe(g=>{this.searchFilter.PageNumber=1,this.infinitePagination.reloadPagination(this.searchFilter),this.checkboxState=!1,this.handlingUpdateStock(g)})}}handlingUpdateStock(i){if(i[0]?.StatusProduct){let t=i[0].StatusProduct.Fail_list,a=i[0].StatusProduct.Success_list;this.inventoryService.showToastrUpdateInventory("Stock",a,t)}else this.toastr.error(i[0]?.Exception,"Error")}refreshInventory(i,t,a,C){let g={ChannelItemID:i,ChannelVariationID:t,ChannelID:a,VariantID:C};this.http.post("/api/Inventory/RefreshInventoryChannel",g).subscribe(Q=>{this.toastr.success("Successfully updated","Success"),this.infinitePagination.reloadPagination(this.searchFilter)})}onCheckboxStateProduct(i){i.Variants=i.Variants.map(t=>(t.Inventory>=0&&(t.selected=i.selected),t))}onCheckboxStateChange(i){i=i.map(t=>(t.Variants=t.Variants.map(a=>(a.selected=this.checkboxState,a)),t))}openTableDialog(i,t,a){this.dialog.open(Ve,{data:{Name:i.Name,Variant:t,ChannelID:t?.Channel[0].ChannelID,Table:"inventory",ChannelItemID:i.ChannelItemID}}).afterClosed().pipe(z(g=>D.IsNotEmpty(g))).subscribe(g=>{this.updateItemAfterDialog(g,a)})}updateItemAfterDialog(i,t){let a={ID:i.ChannelID,ChannelItemID:i.ChannelItemID,ChannelVariantID:i.ChannelVariationID,NewQuantity:parseFloat(i.Inventory),VariantID:i.ID,SKU:i.Sku};this.http.post("/api/Inventory/UpdateQuantityByItem",a).subscribe(C=>{this.searchFilter.PageNumber=1,this.infinitePagination.reloadPagination(this.searchFilter),this.handlingUpdateStock([C])})}onShowDifferenceStock(){this.showDifferenceStock?this.searchFilter.filterModel=$.DIFFERENCE:this.searchFilter.filterModel=$.ALL,this.infinitePagination.reloadPagination(this.searchFilter)}onLastPage(){let i={ChannelID:this.searchFilter.ChannelID,PageNumber:1};this.http.post(`${this.rowCountApi}`,i).subscribe({next:t=>{this.searchFilter.PageNumber=1,this.infinitePagination.onLastPage(this.searchFilter,t.Total)}})}onZoomImage(i,t){this.biggerPictureService.openBiggerPicture(i,t)}};p.\u0275fac=function(t){return new(t||p)(T(re),T(le),T(ye),T(Te),T(ge),T(Pe),T(R),T(Ie))},p.\u0275cmp=Y({type:p,selectors:[["app-single-channel-comparison"]],standalone:!0,features:[X([j,R]),q],decls:2,vars:3,consts:[["SYNCDATE",""],["EMPTY_RESERVED",""],["textButton","Search",3,"headerTitle","pageData","hideSearchBox","onSubmit",4,"ngIf"],["textButton","Search",3,"onSubmit","headerTitle","pageData","hideSearchBox"],[1,"d-flex"],[4,"ngIf"],["for","ng-select",1,"fw-bold"],["id","ng-select","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text","mt-3",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],[1,"fw-bold"],[1,"d-flex","align-items-center","justify-content-start"],["type","number","name","QuantityFrom",1,"w-25","me-2","mt-3","form-control",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"w-25","ms-2","form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","ps-12",2,"width","25%"],[3,"toggleChange"],["scope","col",1,"text-start"],["scope","col",1,"text-end",2,"width","10%"],["scope","col",1,"text-end","w-10",2,"width","8%"],[1,"text-end",2,"width","150px"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],["matTooltip","Reserved Stock","matTooltipPosition","above",1,"text-end",2,"width","80px"],[1,"text-center",2,"width","145px"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["class","btn btn-success",3,"click",4,"ngIf"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"me-2"],[2,"width","18px",3,"src"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["type","checkbox",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"align-middle"],["type","checkbox",3,"ngModel"],[1,"d-flex","align-items-center","justify-content-end"],["class","text-danger","matTooltip","This product is no longer available in POS","matTooltipPosition","above",4,"ngIf"],["class","text-end",3,"ngClass",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"width","0%",3,"rowSpan"],["type","checkbox",1,"me-3",3,"ngModel"],[3,"ngClass"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"click","src"],[1,"d-flex","align-items-center"],["title","Category",1,"fa-solid","fa-tags","me-2",2,"opacity","60%"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],["title","Stock Available"],["title","Inventory below minimum inventory"],[1,"ms-3"],["target","_blank",3,"href"],[1,"fas","fa-lg","fa-external-link-alt","external-link-custom"],[1,"text-end",3,"ngClass"],["class","cursor",3,"click",4,"ngIf"],["matTooltip","Refresh stock according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","fa-sync","fa-lg","external-link-custom"],[1,"cursor",3,"click"],[1,"text-danger"],["matTooltipShowDelay","500",3,"matTooltip"]],template:function(t,a){t&1&&(u(0,_t,62,35,"mainpanel",2),h(1,"async")),t&2&&m("ngIf",f(1,1,a.loader$))},dependencies:[oe,J,ee,te,ne,ae,ie,be,we,xe,fe,he,Ce,de,pe,_e,se,ce,me,Ee,De,ue,Me,Fe,ve,Se],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}"]});let n=p;return n})();export{Gt as SingleChannelComparisonComponent};
@@ -1 +1 @@
1
- import{a as B}from"./chunk-JHFUHCJ5.js";import{a as vt}from"./chunk-IWVYX6KY.js";import{a as $}from"./chunk-N23ZYP7G.js";import{a as dt,b as ft,d as ut,e as gt}from"./chunk-2Y4N4NSS.js";import{g as st}from"./chunk-LAPVAK6T.js";import{e as at}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{l as k,m as ht}from"./chunk-PIDUM6XT.js";import"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{h as lt,k as mt,u as ct}from"./chunk-F5YRASNU.js";import{c as pt}from"./chunk-2UXFUEON.js";import{Eb as K,Fb as l,Ga as W,Gb as s,Ha as H,Hb as x,Ia as m,Ja as v,Jb as Q,Kb as X,Lb as Y,Ob as Z,Pb as tt,Q as j,Qb as et,T as q,V as U,Wb as d,Xb as _,Ya as u,Yb as S,Zb as it,_a as p,aa as I,bd as rt,c as z,ed as F,ga as y,gd as R,ha as N,kb as r,lb as o,mb as D,nb as g,oa as b,ob as h,pa as E,pc as nt,q as C,qb as G,rc as ot,sc as T,tb as V,vb as f,vc as w,wc as M,yb as J,yc as P,zc as L}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var Et=(t,e)=>({"bg-gradient-danger":t,"bg-gradient-warning":e}),Dt=()=>["/menu/notification/detail"],Tt=t=>({ID:t});function wt(t,e){if(t&1&&(r(0,"span",14),D(1,"img",15),o(),l(2)),t&2){let n=e.item;m(),p("src",n.Img,H)("alt",n.Name),m(),x(" ",n.Name," ")}}function Mt(t,e){if(t&1&&(g(0),l(1),d(2,"number"),r(3,"span"),l(4,"s"),o(),h()),t&2){let n=f().$implicit;m(),x(" ",S(2,1,n.DurationInSecond,"1.1-1")," ")}}function Pt(t,e){t&1&&l(0," - ")}function Lt(t,e){if(t&1&&(g(0),r(1,"tr",16)(2,"td")(3,"a",17),D(4,"img",18),r(5,"span"),l(6),o()()(),r(7,"td")(8,"b"),l(9),o(),D(10,"div",19),o(),r(11,"td"),u(12,Mt,5,4,"ng-container",20)(13,Pt,1,0,"ng-template",null,0,it),o(),r(15,"td"),l(16),o(),r(17,"td"),l(18),d(19,"date"),o()(),h()),t&2){let n=e.$implicit,a=K(14);m(),p("ngClass",et(14,Et,n.Status==1,n.Status==0)),m(2),p("routerLink",Z(17,Dt))("queryParams",tt(18,Tt,n.ID)),m(),J("src",n.Img,H),m(2),s(n.Name),m(3),s(n.Label),m(),p("innerHTML",n.Message,W),m(2),p("ngIf",n.DurationInSecond)("ngIfElse",a),m(4),s(n.StatusLabel),m(2),s(S(19,11,n.Created,"dd MMM yyyy HH:mm"))}}function Ft(t,e){if(t&1){let n=G();g(0),r(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),d(4,"async"),d(5,"async"),V("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())}),o()()(),h()}if(t&2){let n=f().ngIf,a=f();m(3),p("filter",a.filter)("totaldata",n==null?null:n.length)("paginationTotal",_(4,4,a.rowCount$))("hasClicked",_(5,6,a.rowCount$))}}function Rt(t,e){if(t&1&&(g(0),u(1,Ft,6,8,"ng-container",13),h()),t&2){let n=e.ngIf;m(),p("ngIf",n.length>0)}}var _t=(()=>{let e=class e{constructor(a,i,c){this.http=a,this.notificationService=i,this.authService=c,this.filter=new vt,this.destroy$=new z,this.channelOptions=c.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(U(this.destroy$)).subscribe(a=>{a.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(a=>{this.filter=a.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let a={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",a).pipe(C(i=>i.Data),C(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),j(1))}setTimeToSecond(a){return a=a.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),a}setChannelLogoToNotifications(a){return a=a.map(i=>(i.Img=pt.getChannelLogoByTypeId(i.TypeID),i)),a}onNextPage(){this.filter.PageNumber+=1,this.getNotifications()}onPreviousPage(){this.filter.PageNumber-=1,this.getNotifications()}getRowCount(){let a={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",a).pipe(C(i=>i.Count),j(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};e.\u0275fac=function(i){return new(i||e)(v(at),v(B),v(st))},e.\u0275cmp=y({type:e,selectors:[["app-notification"]],decls:30,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],[1,"mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-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"],[2,"width","18px",3,"src","alt"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(i,c){i&1&&(r(0,"mainpanel",1),V("onSubmit",function(){return c.onFilter()}),r(1,"filters")(2,"div")(3,"h6",2),l(4,"Channel"),o(),r(5,"ng-select",3),Y("ngModelChange",function(O){return X(c.filter.ChannelID,O)||(c.filter.ChannelID=O),O}),u(6,wt,3,3,"ng-template",4),o()()(),r(7,"content")(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"table",9)(13,"thead",10)(14,"tr",11)(15,"th"),l(16,"Channel"),o(),r(17,"th"),l(18,"Process"),o(),r(19,"th"),l(20,"Duration"),o(),r(21,"th"),l(22,"Status"),o(),r(23,"th"),l(24,"Created"),o()()(),r(25,"tbody"),u(26,Lt,20,20,"ng-container",12),d(27,"async"),o()()()()(),u(28,Rt,2,1,"ng-container",13),d(29,"async"),o()()()),i&2&&(m(5),p("clearable",!0)("items",c.channelOptions),Q("ngModel",c.filter.ChannelID),m(21),p("ngForOf",_(27,5,c.notifications$)),m(2),p("ngIf",_(29,7,c.notifications$)))},dependencies:[nt,ot,T,ut,dt,ft,lt,mt,k,F,$,w,P,M]});let t=e;return t})();function Bt(t,e){if(t&1&&(r(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),l(4,"Perflog"),o()(),r(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),l(9),o()()()()()()),t&2){let n=f().ngIf;m(9),s(n.Perflog)}}function kt(t,e){if(t&1&&(g(0),r(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),l(5,"StackTrace"),o()(),r(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),l(10),o()()()()()(),h()),t&2){let n=f().ngIf;m(10),s(n==null?null:n.StackTrace)}}function $t(t,e){if(t&1&&(g(0),r(1,"mainpanel",1)(2,"actions")(3,"a",2),l(4,"Back"),o()(),r(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),l(12,"General"),o()(),r(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),l(18,"Created Date"),o(),r(19,"div")(20,"span"),l(21),d(22,"date"),o()()()(),r(23,"div",10)(24,"div",11)(25,"label"),l(26,"Status"),o(),r(27,"div")(28,"span"),l(29),o()()()()(),r(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),l(34,"Duration"),o(),r(35,"div")(36,"span"),l(37),d(38,"number"),o()()()(),r(39,"div",10)(40,"div",11)(41,"label"),l(42,"Label"),o(),r(43,"div")(44,"span"),l(45),o()()()()()()()()(),r(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),l(51,"Message"),o()(),r(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),l(56),o()()()()()(),u(57,Bt,10,1,"div",16)(58,kt,11,1,"ng-container",0),o()()()(),h()),t&2){let n=e.ngIf;m(),p("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(),p("ngIf",n==null?null:n.Perflog),m(),p("ngIf",n==null?null:n.StackTrace)}}var Ct=(()=>{let e=class e{constructor(a,i){this.activatedRoute=a,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(q(a=>{let i=a.ID;return this.notificationService.getNotificationDetail(i).pipe(C(c=>(c.DurationInSecond=parseInt(c.Duration)/1e3,c)))}))}};e.\u0275fac=function(i){return new(i||e)(v(rt),v(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,c){i&1&&(u(0,$t,59,16,"ng-container",0),d(1,"async")),i&2&&p("ngIf",_(1,1,c.notification$))},dependencies:[T,k,F,w,P,M]});let t=e;return t})();var Ot=[{path:"",component:_t},{path:"detail",component:Ct}],St=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[L,R.forChild(Ot)]});let t=e;return t})();var de=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[L,St,gt,ct,ht,R,$]});let t=e;return t})();export{de as NotificationModule};
1
+ import{a as B}from"./chunk-AKIUNZCW.js";import{a as vt}from"./chunk-IWVYX6KY.js";import{a as $}from"./chunk-N23ZYP7G.js";import{a as dt,b as ft,d as ut,e as gt}from"./chunk-2Y4N4NSS.js";import{g as st}from"./chunk-PVQ2T5XH.js";import{e as at}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{l as k,m as ht}from"./chunk-PIDUM6XT.js";import"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{h as lt,k as mt,u as ct}from"./chunk-F5YRASNU.js";import{c as pt}from"./chunk-2UXFUEON.js";import{Eb as K,Fb as l,Ga as W,Gb as s,Ha as H,Hb as x,Ia as m,Ja as v,Jb as Q,Kb as X,Lb as Y,Ob as Z,Pb as tt,Q as j,Qb as et,T as q,V as U,Wb as d,Xb as _,Ya as u,Yb as S,Zb as it,_a as p,aa as I,bd as rt,c as z,ed as F,ga as y,gd as R,ha as N,kb as r,lb as o,mb as D,nb as g,oa as b,ob as h,pa as E,pc as nt,q as C,qb as G,rc as ot,sc as T,tb as V,vb as f,vc as w,wc as M,yb as J,yc as P,zc as L}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var Et=(t,e)=>({"bg-gradient-danger":t,"bg-gradient-warning":e}),Dt=()=>["/menu/notification/detail"],Tt=t=>({ID:t});function wt(t,e){if(t&1&&(r(0,"span",14),D(1,"img",15),o(),l(2)),t&2){let n=e.item;m(),p("src",n.Img,H)("alt",n.Name),m(),x(" ",n.Name," ")}}function Mt(t,e){if(t&1&&(g(0),l(1),d(2,"number"),r(3,"span"),l(4,"s"),o(),h()),t&2){let n=f().$implicit;m(),x(" ",S(2,1,n.DurationInSecond,"1.1-1")," ")}}function Pt(t,e){t&1&&l(0," - ")}function Lt(t,e){if(t&1&&(g(0),r(1,"tr",16)(2,"td")(3,"a",17),D(4,"img",18),r(5,"span"),l(6),o()()(),r(7,"td")(8,"b"),l(9),o(),D(10,"div",19),o(),r(11,"td"),u(12,Mt,5,4,"ng-container",20)(13,Pt,1,0,"ng-template",null,0,it),o(),r(15,"td"),l(16),o(),r(17,"td"),l(18),d(19,"date"),o()(),h()),t&2){let n=e.$implicit,a=K(14);m(),p("ngClass",et(14,Et,n.Status==1,n.Status==0)),m(2),p("routerLink",Z(17,Dt))("queryParams",tt(18,Tt,n.ID)),m(),J("src",n.Img,H),m(2),s(n.Name),m(3),s(n.Label),m(),p("innerHTML",n.Message,W),m(2),p("ngIf",n.DurationInSecond)("ngIfElse",a),m(4),s(n.StatusLabel),m(2),s(S(19,11,n.Created,"dd MMM yyyy HH:mm"))}}function Ft(t,e){if(t&1){let n=G();g(0),r(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),d(4,"async"),d(5,"async"),V("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())}),o()()(),h()}if(t&2){let n=f().ngIf,a=f();m(3),p("filter",a.filter)("totaldata",n==null?null:n.length)("paginationTotal",_(4,4,a.rowCount$))("hasClicked",_(5,6,a.rowCount$))}}function Rt(t,e){if(t&1&&(g(0),u(1,Ft,6,8,"ng-container",13),h()),t&2){let n=e.ngIf;m(),p("ngIf",n.length>0)}}var _t=(()=>{let e=class e{constructor(a,i,c){this.http=a,this.notificationService=i,this.authService=c,this.filter=new vt,this.destroy$=new z,this.channelOptions=c.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(U(this.destroy$)).subscribe(a=>{a.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(a=>{this.filter=a.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let a={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",a).pipe(C(i=>i.Data),C(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),j(1))}setTimeToSecond(a){return a=a.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),a}setChannelLogoToNotifications(a){return a=a.map(i=>(i.Img=pt.getChannelLogoByTypeId(i.TypeID),i)),a}onNextPage(){this.filter.PageNumber+=1,this.getNotifications()}onPreviousPage(){this.filter.PageNumber-=1,this.getNotifications()}getRowCount(){let a={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",a).pipe(C(i=>i.Count),j(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};e.\u0275fac=function(i){return new(i||e)(v(at),v(B),v(st))},e.\u0275cmp=y({type:e,selectors:[["app-notification"]],decls:30,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],[1,"mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-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"],[2,"width","18px",3,"src","alt"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(i,c){i&1&&(r(0,"mainpanel",1),V("onSubmit",function(){return c.onFilter()}),r(1,"filters")(2,"div")(3,"h6",2),l(4,"Channel"),o(),r(5,"ng-select",3),Y("ngModelChange",function(O){return X(c.filter.ChannelID,O)||(c.filter.ChannelID=O),O}),u(6,wt,3,3,"ng-template",4),o()()(),r(7,"content")(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"table",9)(13,"thead",10)(14,"tr",11)(15,"th"),l(16,"Channel"),o(),r(17,"th"),l(18,"Process"),o(),r(19,"th"),l(20,"Duration"),o(),r(21,"th"),l(22,"Status"),o(),r(23,"th"),l(24,"Created"),o()()(),r(25,"tbody"),u(26,Lt,20,20,"ng-container",12),d(27,"async"),o()()()()(),u(28,Rt,2,1,"ng-container",13),d(29,"async"),o()()()),i&2&&(m(5),p("clearable",!0)("items",c.channelOptions),Q("ngModel",c.filter.ChannelID),m(21),p("ngForOf",_(27,5,c.notifications$)),m(2),p("ngIf",_(29,7,c.notifications$)))},dependencies:[nt,ot,T,ut,dt,ft,lt,mt,k,F,$,w,P,M]});let t=e;return t})();function Bt(t,e){if(t&1&&(r(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),l(4,"Perflog"),o()(),r(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),l(9),o()()()()()()),t&2){let n=f().ngIf;m(9),s(n.Perflog)}}function kt(t,e){if(t&1&&(g(0),r(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),l(5,"StackTrace"),o()(),r(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),l(10),o()()()()()(),h()),t&2){let n=f().ngIf;m(10),s(n==null?null:n.StackTrace)}}function $t(t,e){if(t&1&&(g(0),r(1,"mainpanel",1)(2,"actions")(3,"a",2),l(4,"Back"),o()(),r(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),l(12,"General"),o()(),r(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),l(18,"Created Date"),o(),r(19,"div")(20,"span"),l(21),d(22,"date"),o()()()(),r(23,"div",10)(24,"div",11)(25,"label"),l(26,"Status"),o(),r(27,"div")(28,"span"),l(29),o()()()()(),r(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),l(34,"Duration"),o(),r(35,"div")(36,"span"),l(37),d(38,"number"),o()()()(),r(39,"div",10)(40,"div",11)(41,"label"),l(42,"Label"),o(),r(43,"div")(44,"span"),l(45),o()()()()()()()()(),r(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),l(51,"Message"),o()(),r(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),l(56),o()()()()()(),u(57,Bt,10,1,"div",16)(58,kt,11,1,"ng-container",0),o()()()(),h()),t&2){let n=e.ngIf;m(),p("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(),p("ngIf",n==null?null:n.Perflog),m(),p("ngIf",n==null?null:n.StackTrace)}}var Ct=(()=>{let e=class e{constructor(a,i){this.activatedRoute=a,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(q(a=>{let i=a.ID;return this.notificationService.getNotificationDetail(i).pipe(C(c=>(c.DurationInSecond=parseInt(c.Duration)/1e3,c)))}))}};e.\u0275fac=function(i){return new(i||e)(v(rt),v(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,c){i&1&&(u(0,$t,59,16,"ng-container",0),d(1,"async")),i&2&&p("ngIf",_(1,1,c.notification$))},dependencies:[T,k,F,w,P,M]});let t=e;return t})();var Ot=[{path:"",component:_t},{path:"detail",component:Ct}],St=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[L,R.forChild(Ot)]});let t=e;return t})();var de=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[L,St,gt,ct,ht,R,$]});let t=e;return t})();export{de as NotificationModule};