marketplacepos 2.4.3 → 2.4.4
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.
- package/Marketplace/162.4ce4550bb805d5d4.js +1 -0
- package/Marketplace/171.9cd91ffa365b9491.js +1 -0
- package/Marketplace/174.e214431f31fd131d.js +1 -0
- package/Marketplace/25.ad4f583264f99556.js +1 -0
- package/Marketplace/334.fca544ca6d7e11d3.js +1 -0
- package/Marketplace/360.479b6dc19c3aedfd.js +1 -0
- package/Marketplace/387.ef404fc903278a1c.js +1 -0
- package/Marketplace/402.f385d64daee6049e.js +1 -0
- package/Marketplace/{458.556f206f7d19bc29.js → 458.393a149a626f18ad.js} +1 -1
- package/Marketplace/466.2e9f76621dd59e88.js +1 -0
- package/Marketplace/516.71620076f01c2cd7.js +1 -0
- package/Marketplace/61.481724edf2d23475.js +1 -0
- package/Marketplace/874.d45d1026769d75d1.js +1 -0
- package/Marketplace/assets/version-adjustment-v5.scss +2 -2
- package/Marketplace/common.1acc3df88ef73d5d.js +1 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/main.2fa426747cc66a26.js +1 -0
- package/Marketplace/runtime.016444f60baacdd3.js +1 -0
- package/Marketplace/{styles.f8366e17917068bd.css → styles.ab4c60b3cc2298c3.css} +2 -2
- package/package.json +1 -1
- package/Marketplace/102.00a16fb36f5a57f2.js +0 -1
- package/Marketplace/162.9784f9e579112c86.js +0 -1
- package/Marketplace/285.7583f3169c88c210.js +0 -1
- package/Marketplace/387.10f091023152d154.js +0 -1
- package/Marketplace/402.60951eab064c9706.js +0 -1
- package/Marketplace/455.fc7663306b753727.js +0 -1
- package/Marketplace/667.b7320f874219caa9.js +0 -1
- package/Marketplace/785.a0973529f8e8819e.js +0 -1
- package/Marketplace/874.9879a8b9489c9845.js +0 -1
- package/Marketplace/882.5d3edc53a8e4c38e.js +0 -1
- package/Marketplace/common.f2cd628914f2fae7.js +0 -1
- package/Marketplace/main.f30bf3b0f501021c.js +0 -1
- package/Marketplace/runtime.9cbc4802b0456746.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[874],{1874:(Je,I,r)=>{r.r(I),r.d(I,{PriceModule:()=>Ue});var s=r(6895),v=r(7398),u=r(7481),m=r(8252),p=r(4006),C=r(8796),e=r(4650);let J=(()=>{class t{constructor(){this.priceTabs=[{Title:"Price Single Channel",Url:"/menu/price/SingleChannel"},{Title:"POS vs Channel Price",Url:"/menu/price/pos"},{Title:"Custom Channel Price",Url:"/menu/price/OutletPrice"}]}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,o){1&n&&(e.TgZ(0,"nav",0)(1,"div",1)(2,"div"),e._UZ(3,"nav-tab",2),e.qZA()()(),e._UZ(4,"router-outlet")),2&n&&(e.xp6(3),e.Q6J("Tabs",o.priceTabs))},dependencies:[v.e,m.lC]}),t})();var Z=r(8231),y=r(6304),w=r(8505),d=r(9300),g=r(3154),f=r(1318),x=r(7185),P=r(5412),A=r(7287),b=r(6082),S=r(1948);function N(t,a){if(1&t&&(e.TgZ(0,"mat-radio-button",3),e._uU(1),e.qZA()),2&t){const n=a.$implicit,o=a.index,i=e.oxw();e.Q6J("value",n.Key)("name",i.name)("title",i.tooltipsText[o]?i.tooltipsText[o]:""),e.xp6(1),e.hij(" ",n.Value,"")}}const O=function(t){return{"border-0":t}};let F=(()=>{class t{constructor(){this.modelChange=new e.vpe,this.border=!1,this.tooltipsText=[]}change(n){this.modelChange.emit(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["radio-options"]],inputs:{model:"model",options:"options",border:"border",name:"name",tooltipsText:"tooltipsText"},outputs:{modelChange:"modelChange"},decls:3,vars:5,consts:[[1,"form-control","h-100",3,"ngClass"],[3,"ngModel","ngModelChange"],["class","me-5","data-toggle","tooltip","data-placement","right",3,"value","name","title",4,"ngFor","ngForOf"],["data-toggle","tooltip","data-placement","right",1,"me-5",3,"value","name","title"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"mat-radio-group",1),e.NdJ("ngModelChange",function(l){return o.change(l)}),e.YNc(2,N,2,4,"mat-radio-button",2),e.qZA()()),2&n&&(e.Q6J("ngClass",e.VKq(3,O,0==o.border)),e.xp6(1),e.Q6J("ngModel",o.model),e.xp6(1),e.Q6J("ngForOf",o.options))},dependencies:[s.mk,s.sg,S.VQ,S.U0,p.JJ,p.On],styles:[".mat-radio-label{margin-top:auto;margin-bottom:auto}"]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[s.ez,S.Fk,p.u5]}),t})();var M=r(488);function Q(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.openScanDialog())}),e._UZ(1,"i",19),e._uU(2," Scan Channel "),e.qZA()}}function q(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().ngIf,l=e.oxw(2);return e.KtG(l.onUpdateItems(i))}),e._UZ(1,"i",21),e._uU(2," Update "),e.qZA()}}function k(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,Q,3,0,"button",16),e.YNc(2,q,3,0,"button",17),e.qZA()),2&t){const n=a.ngIf,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!o.productService.hasSelectionVariant(n)),e.xp6(1),e.Q6J("ngIf",o.productService.hasSelectionVariant(n))}}function V(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"div",22)(1,"app-table",23),e.NdJ("onSubmit",function(i){e.CHM(n);const l=e.oxw(2);return e.KtG(l.updatePriceByVariant(i))}),e.ALo(2,"async"),e.qZA()()}if(2&t){const n=e.oxw().ngIf,o=e.oxw();e.xp6(1),e.Q6J("data",e.lcZ(2,3,o.paginationService.data$))("channel",n.Options.Channel)("filter",n.Filter)}}function Y(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"span",24),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.getRowCount())}),e.TgZ(1,"i",25),e._uU(2,"?"),e.qZA()()}}function $(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&t){const n=a.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function E(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.onNextPage())}),e._UZ(1,"i",27),e._uU(2," Next"),e.qZA()}}function K(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"a",28),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.onLastPage())}),e._UZ(1,"i",29),e._uU(2," Last"),e.qZA()}}function R(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("onSubmit",function(i){e.CHM(n);const l=e.oxw();return e.KtG(l.onSearch(i))}),e.TgZ(1,"filters")(2,"div",2)(3,"div")(4,"h6"),e._uU(5,"Filter by"),e.qZA(),e.TgZ(6,"radio-options",3),e.NdJ("modelChange",function(i){e.CHM(n);const l=e.oxw();return e.KtG(l.searchFilter.filterModel=i)}),e.qZA()()()(),e.TgZ(7,"actions")(8,"div",4),e.YNc(9,k,3,2,"div",5),e.ALo(10,"async"),e.qZA()(),e.TgZ(11,"content")(12,"div",6)(13,"div",7),e.YNc(14,V,3,5,"div",8),e.ALo(15,"async"),e.qZA(),e.TgZ(16,"div",9)(17,"div",10)(18,"div",11),e._uU(19),e.ALo(20,"number"),e.ALo(21,"async"),e.YNc(22,Y,3,0,"span",12),e.YNc(23,$,3,3,"span",5),e.ALo(24,"async"),e._uU(25),e.qZA()(),e.TgZ(26,"div",13),e.YNc(27,E,3,0,"a",14),e.YNc(28,K,3,0,"a",15),e.qZA()()()()()}if(2&t){const n=e.oxw();let o;e.Q6J("pageData",n.pageData)("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),e.xp6(6),e.Q6J("model",n.searchFilter.filterModel)("options",n.filterOptions)("border",!1),e.xp6(3),e.Q6J("ngIf",e.lcZ(10,15,n.paginationService.data$)),e.xp6(5),e.Q6J("ngIf",e.lcZ(15,17,n.paginationService.data$)),e.xp6(5),e.hij(" Showing 1 - ",e.lcZ(20,19,null==(o=e.lcZ(21,21,n.paginationService.data$))?null:o.length)," of "),e.xp6(3),e.Q6J("ngIf",n.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",!n.paginationService.hideCount&&e.lcZ(24,23,n.allDataCount$)),e.xp6(2),e.hij(" records ~ ",n.paginationService.footerPageNumber," Page "),e.xp6(2),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage)}}let G=(()=>{class t{constructor(n,o,i,l,c){this.http=n,this.toastr=o,this.dialog=i,this.paginationService=l,this.productService=c,this.loaderAPI="PriceLoader/LoadMultiple",this.getDataAPI="Price/GetMultipleChannelComparison",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.filterOptions=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Price",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!0},{Title:"Price Realtime",Url:"/menu/price/realtime",Active:!1}]}}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.getDataAPI,this.loader$=this.http.post(`/api/${this.loaderAPI}`).pipe((0,w.b)(n=>{this.channelOptions=n.Options.Channel,n.Filter={PageNumber:n.Filter.PageNumber,RowCount:n.Filter.RowCount,filterModel:1},this.searchFilter=n.Filter,this.paginationService.resetToFirstPage(this.searchFilter)}))}onSearch(n){this.searchFilter.text=n,this.paginationService.resetToFirstPage(this.searchFilter)}openScanDialog(){this.searchFilter.ChannelID=g.g.GuidEMpty;let n=JSON.parse(JSON.stringify(this.searchFilter));this.dialog.open(Z.j,{data:{filter:n,Channel:this.channelOptions},width:"40%"}).afterClosed().pipe((0,d.h)(i=>g.g.IsNotEmpty(i))).subscribe(i=>{this.searchFilter.ChannelID=i.ChannelID,this.searchFilter.ScanFull=i.ScanFull,this.searchFilter.UpdatedProduct=i.UpdatedProduct,this.scanAll()})}scanAll(){this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct).subscribe(n=>{let o=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.initPageLoader(),this.productService.successToastrScanAllProduct(n,o,!this.searchFilter.UpdatedProduct)})}updatePrice(n){let o=this.productService.selectedVariantProduct(n);if(o.length>0){let l=o.map(_=>({ID:_.ID,Code:_.Code,Price:_.UnitPrice})),c={ListChannelID:this.channelOptions.filter(_=>_.selected).map(_=>_.ID),ListPrice:l};this.http.post("/api/Price/UpdateChannel",c).subscribe(_=>{this.paginationService.resetToFirstPage(this.searchFilter),this.toastr.success("Successfully updated "+c.ListPrice.length+" items in "+c.ListChannelID.length+" channels","Success")})}}updatePriceByVariant(n){let o={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:n.Price-0,VariantID:n.ID};this.http.post("/api/Price/UpdatePriceByID",o).subscribe(i=>{let l=this.productService.findChannelById(o.ID,this.channelOptions);this.toastr.success("Successfully updated "+n.ItemName+"("+n.VarName+") price in "+l.Name+" to "+o.Price,"Success"),this.paginationService.resetToFirstPage(this.searchFilter)})}onUpdateItems(n){const o=this.productService.selectedVariantProduct(n);this.dialog.open(y.j,{data:{selectedItems:o,channels:this.channelOptions},width:"40%"}).afterClosed().pipe((0,d.h)(i=>void 0!==i)).subscribe(i=>{this.channelOptions=i,this.updatePrice(n)})}getRowCount(){this.paginationService.hideCount=!1,this.allDataCount$=this.http.post(`/api/${this.rowCountAPI}`,{})}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){this.http.post(`/api/${this.rowCountAPI}`,{}).subscribe({next:n=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,n)}})}ngOnDestroy(){this.paginationService.destroy()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.O),e.Y36(x._W),e.Y36(P.uw),e.Y36(A.b),e.Y36(b.M))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-price-pos-channel"]],decls:2,vars:3,consts:[["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit",4,"ngIf"],["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit"],["container",""],["name","filterModel",3,"model","options","border","modelChange"],[1,"d-flex"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],["class","col-md-12",4,"ngIf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load more for 20 products",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load all products",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-3",3,"click",4,"ngIf"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"col-md-12"],["table","price",3,"data","channel","filter","onSubmit"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(n,o){1&n&&(e.YNc(0,R,29,25,"mainpanel",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,o.loader$))},dependencies:[s.O5,u.p,F,M.a,s.Ov,s.JJ],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]}),t})();var h=r(8705);function H(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.onUpdateItems())}),e._UZ(1,"i",20),e._uU(2," Update "),e.qZA()}}function B(t,a){if(1&t&&(e.TgZ(0,"th",21),e._uU(1),e.qZA()),2&t){const n=a.$implicit;e.xp6(1),e.Oqu(n.Name)}}function j(t,a){1&t&&(e.ynx(0),e.TgZ(1,"th",22),e._uU(2," Expected (POS) "),e.qZA(),e.TgZ(3,"th",22),e._uU(4," Channel "),e.qZA(),e.BQk())}function z(t,a){if(1&t&&e._UZ(0,"img",31),2&t){const n=e.oxw(3).$implicit;e.s9C("src",null==n?null:n.ImageUrl,e.LSH)}}function W(t,a){1&t&&e._UZ(0,"img",32)}const X=function(t){return{"border-bottom":t}};function ee(t,a){if(1&t&&(e.ynx(0),e.TgZ(1,"td",26),e.YNc(2,z,1,1,"img",27),e.YNc(3,W,1,0,"ng-template",null,28,e.W1O),e.qZA(),e.TgZ(5,"td",29)(6,"h5",30),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"small"),e._uU(10),e.qZA()(),e.BQk()),2&t){const n=e.MAs(4),o=e.oxw().index,i=e.oxw().$implicit,l=e.oxw();e.xp6(1),e.Q6J("rowSpan",null==i?null:i.Variants.length)("ngClass",e.VKq(7,X,o+1==l.products.length)),e.xp6(1),e.Q6J("ngIf",null==i?null:i.ImageUrl)("ngIfElse",n),e.xp6(3),e.Q6J("rowSpan",null==i?null:i.Variants.length),e.xp6(2),e.Oqu(null==i?null:i.Name),e.xp6(3),e.hij("(",null==i?null:i.Category,")")}}const ne=function(t){return{"bg-err":t}};function te(t,a){if(1&t&&(e.ynx(0),e.TgZ(1,"td",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"td",36)(5,"div",37)(6,"div",38),e._uU(7),e.ALo(8,"number"),e._UZ(9,"br"),e.qZA(),e.TgZ(10,"div",39)(11,"a",40),e._UZ(12,"i",41),e.qZA()()()(),e.BQk()),2&t){const n=a.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,4,n.PriceExpected)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(8,ne,n.Price!=n.PriceExpected)),e.xp6(3),e.hij(" ",e.lcZ(8,6,n.Price)," "),e.xp6(4),e.Q6J("href",n.Url,e.LSH)}}function ie(t,a){1&t&&(e.TgZ(0,"td",42),e._uU(1,"X"),e.qZA(),e.TgZ(2,"td",42),e._uU(3,"X"),e.qZA())}function oe(t,a){if(1&t&&(e.ynx(0),e.YNc(1,te,13,10,"ng-container",33),e.YNc(2,ie,4,0,"ng-template",null,34,e.W1O),e.BQk()),2&t){const n=a.$implicit,o=e.MAs(3),i=e.oxw().$implicit,l=e.oxw(2);e.xp6(1),e.Q6J("ngIf",l.getItemFromChannel(i,n.ID))("ngIfElse",o)}}function ae(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"tr"),e.YNc(1,ee,11,9,"ng-container",23),e.TgZ(2,"td",24),e._uU(3),e.qZA(),e.TgZ(4,"td",24),e._uU(5),e.qZA(),e.TgZ(6,"td",25)(7,"input",17),e.NdJ("ngModelChange",function(i){const c=e.CHM(n).$implicit;return e.KtG(c.selected=i)}),e.qZA()(),e.YNc(8,oe,4,2,"ng-container",18),e.qZA()}if(2&t){const n=a.$implicit,o=a.index,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==o),e.xp6(2),e.Oqu(null==n?null:n.Model),e.xp6(2),e.Oqu(null==n?null:n.Code),e.xp6(1),e.Q6J("hidden",null==i.searchFilter?null:i.searchFilter.HiddenIPOSInventory),e.xp6(1),e.Q6J("ngModel",n.selected),e.xp6(1),e.Q6J("ngForOf",i.channelOptions)}}function le(t,a){if(1&t&&(e.TgZ(0,"tbody"),e.YNc(1,ae,9,6,"tr",18),e.qZA()),2&t){const n=a.$implicit;e.xp6(1),e.Q6J("ngForOf",n.Variants)}}let ce=(()=>{class t{constructor(n,o,i,l){this.http=n,this.toastr=o,this.dialog=i,this.productService=l,this.searchFilter={ChannelID:""},this.products=[],this.checkboxState=!1,this.initPageLoader(),this.filterTypeOptions=[{Key:h.v.ALL,Value:"All"},{Key:h.v.DIFFERENCE,Value:"Difference"}],this.filterType=h.v.ALL,this.pageData={Title:"Price Realtime",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!1}]}}initPageLoader(){this.http.post("/api/PriceLoader/LoadMultiple",{}).subscribe(n=>{this.channelOptions=n.Options.Channel,this.searchFilter=n.Filter,this.searchFilter.HiddenIPOSInventory=!1,this.onFilter()})}onSelectAllData(){this.products=this.products.map(n=>(n.Variants&&(n.Variants=n.Variants.map(o=>(o.selected=this.checkboxState,o))),n))}onFilter(n){this.http.post("/api/Price/GetOutletPrice",{text:n,filterModel:this.filterType,PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount}).subscribe(i=>{this.products=i.Data})}updatePrice(){let n=this.productService.selectedVariantProduct(this.products);if(n.length>0){let o=n.map(c=>c.ID),l={ListChannelID:this.channelOptions.filter(c=>c.selected).map(c=>c.ID),ListID:o};this.http.post("/api/Price/UpdateChannelOutletPrice",l).subscribe({next:c=>{this.resetSelectedChannel(),this.onFilter(),this.toastr.success("Successfully updated "+l.ListID.length+" items in "+l.ListChannelID.length+" channels","Success")},error:c=>{this.resetSelectedChannel()}})}}resetSelectedChannel(){this.channelOptions=this.channelOptions.map(n=>(n.selected=!1,n))}getItemFromChannel(n,o){return n.Channel.find(i=>i.ChannelID==o)}onUpdateItems(){const n=this.productService.selectedVariantProduct(this.products);this.dialog.open(y.j,{data:{selectedItems:n,channels:this.channelOptions},width:"40%"}).afterClosed().pipe((0,d.h)(o=>g.g.IsNotEmpty(o))).subscribe(o=>{this.channelOptions=o,this.updatePrice()})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.O),e.Y36(x._W),e.Y36(P.uw),e.Y36(b.M))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-custom-channel-price"]],decls:31,vars:13,consts:[["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit"],["container",""],["name","filterModel",3,"model","options","border","modelChange"],[1,"d-flex"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","5"],["scope","col","colspan","2","class","text-center border-bottom-0 border w-10 text-uppercase",4,"ngFor","ngForOf"],["scope","col","colspan","2",1,"text-center","w-20"],["scope","col",1,"text-start"],["scope","col",1,"text-start","w-10"],[3,"hidden"],["type","checkbox",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"],["scope","col","colspan","2",1,"text-center","border-bottom-0","border","w-10","text-uppercase"],[1,"text-end","border-top-0","border","w-10"],[4,"ngIf"],[1,"text-start","border-bottom"],[1,"align-middle",3,"hidden"],[1,"text-center",3,"rowSpan","ngClass"],["class","border rounded w-img",3,"src",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-center","border-bottom",3,"rowSpan"],[1,"mb-0","item-name"],[1,"border","rounded","w-img",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[4,"ngIf","ngIfElse"],["elseCol",""],[1,"text-end","border","pointer","cell-hover"],[1,"text-end","border","pointer","cell-hover",3,"ngClass"],[1,"row","justify-content-end","me-0"],[1,"col-8","px-0","text-center"],[1,"col-2","ps-0","text-start","align-self-center"],["target","_blank",3,"href"],[1,"fas","fa-lg","fa-external-link-alt"],[1,"table-white","border","text-end",2,"color","red"]],template:function(n,o){1&n&&(e.TgZ(0,"mainpanel",0),e.NdJ("onSubmit",function(l){return o.onFilter(l)}),e.TgZ(1,"filters")(2,"div",1)(3,"div")(4,"h6"),e._uU(5,"Filter by"),e.qZA(),e.TgZ(6,"radio-options",2),e.NdJ("modelChange",function(l){return o.filterType=l}),e.qZA()()()(),e.TgZ(7,"actions")(8,"div",3),e.YNc(9,H,3,0,"button",4),e.qZA()(),e.TgZ(10,"content")(11,"div",5)(12,"div",6)(13,"div",7)(14,"div",8)(15,"table",9)(16,"thead",10)(17,"tr"),e._UZ(18,"th",11),e.YNc(19,B,2,1,"th",12),e.qZA(),e.TgZ(20,"tr")(21,"th",13),e._uU(22,"Product"),e.qZA(),e.TgZ(23,"th",14),e._uU(24,"Variant"),e.qZA(),e.TgZ(25,"th",15),e._uU(26,"SKU"),e.qZA(),e.TgZ(27,"th",16)(28,"input",17),e.NdJ("ngModelChange",function(l){return o.checkboxState=l})("ngModelChange",function(){return o.onSelectAllData()}),e.qZA()(),e.YNc(29,j,5,0,"ng-container",18),e.qZA()(),e.YNc(30,le,2,1,"tbody",18),e.qZA()()()()()()()),2&n&&(e.Q6J("pageData",o.pageData)("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),e.xp6(6),e.Q6J("model",o.filterType)("options",o.filterTypeOptions)("border",!1),e.xp6(3),e.Q6J("ngIf",o.productService.hasSelectionVariant(o.products)),e.xp6(10),e.Q6J("ngForOf",o.channelOptions),e.xp6(8),e.Q6J("hidden",null==o.searchFilter?null:o.searchFilter.HiddenIPOSInventory),e.xp6(1),e.Q6J("ngModel",o.checkboxState),e.xp6(1),e.Q6J("ngForOf",o.channelOptions),e.xp6(1),e.Q6J("ngForOf",o.products))},dependencies:[s.mk,s.sg,s.O5,p.Wl,p.JJ,p.On,u.p,F,s.JJ],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{font-weight:400;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}"]}),t})();var re=r(7945),D=r(455),U=r(266);function se(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2).ngIf,l=e.oxw();return e.KtG(l.openScanDialog(i))}),e._UZ(1,"i",9),e._uU(2," Scan Channel "),e.qZA()}}function pe(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().ngIf,l=e.oxw(2);return e.KtG(l.updateStock(i))}),e._UZ(1,"i",11),e._uU(2," Update "),e.qZA()}}function _e(t,a){if(1&t&&(e.TgZ(0,"actions")(1,"div",5)(2,"div"),e.YNc(3,se,3,0,"button",6),e.YNc(4,pe,3,0,"button",7),e.qZA()()()),2&t){const n=a.ngIf,o=e.oxw(2);e.xp6(3),e.Q6J("ngIf",!o.productService.hasSelectionVariant(n)),e.xp6(1),e.Q6J("ngIf",o.productService.hasSelectionVariant(n))}}function he(t,a){if(1&t&&(e.TgZ(0,"ng-option",32),e._UZ(1,"img",33),e._uU(2),e.qZA()),2&t){const n=a.$implicit;e.Q6J("value",n.ID),e.xp6(1),e.s9C("src",n.Img,e.LSH),e.xp6(1),e.hij("",n.Name," ")}}function de(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"input",51),e.NdJ("ngModelChange",function(i){e.CHM(n);const l=e.oxw(3).$implicit;return e.KtG(l.selected=i)})("ngModelChange",function(){e.CHM(n);const i=e.oxw(3).$implicit,l=e.oxw(3);return e.KtG(l.onCheckboxStateProduct(i))}),e.qZA()}if(2&t){const n=e.oxw(3).$implicit;e.Q6J("ngModel",n.selected)}}function ge(t,a){if(1&t&&e._UZ(0,"img",52),2&t){const n=e.oxw(3).$implicit;e.s9C("src",n.ThumbnailUrl,e.LSH)}}function ue(t,a){1&t&&e._UZ(0,"img",53)}function me(t,a){if(1&t&&(e.ynx(0),e.TgZ(1,"td",44)(2,"div",45),e.YNc(3,de,1,1,"input",46),e.YNc(4,ge,1,1,"img",47),e.YNc(5,ue,1,0,"ng-template",null,48,e.W1O),e.qZA()(),e.TgZ(7,"td",49)(8,"span",50),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"small"),e._uU(12),e.qZA()(),e.BQk()),2&t){const n=e.MAs(6),o=e.oxw().$implicit,i=e.oxw().$implicit;e.xp6(1),e.Q6J("rowSpan",i.Variants.length),e.xp6(2),e.Q6J("ngIf",o.Inventory>=0||i.Variants.length>1),e.xp6(1),e.Q6J("ngIf",i.ThumbnailUrl)("ngIfElse",n),e.xp6(3),e.Q6J("rowSpan",i.Variants.length),e.xp6(2),e.Oqu(i.Name),e.xp6(3),e.hij("(",i.Category,")")}}function Ce(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"input",54),e.NdJ("ngModelChange",function(i){e.CHM(n);const l=e.oxw().$implicit;return e.KtG(l.selected=i)}),e.qZA()}if(2&t){const n=e.oxw().$implicit;e.Q6J("ngModel",n.selected)}}function fe(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"div",55)(1,"div",56),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().$implicit,l=e.oxw().$implicit,c=e.oxw(2).ngIf,_=e.oxw();return e.KtG(_.openTableDialog(i,l,c))}),e._uU(2),e.ALo(3,"number"),e.qZA()()}if(2&t){const n=e.oxw().$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==n.Channel[0]?null:n.Channel[0].Price)," ")}}const xe=function(t){return{"bg-err":t}};function Pe(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"tr"),e.YNc(1,me,13,7,"ng-container",4),e.TgZ(2,"td",19),e._uU(3),e.qZA(),e.TgZ(4,"td",22),e._uU(5),e.qZA(),e.TgZ(6,"td",34),e.YNc(7,Ce,1,1,"input",35),e.qZA(),e.TgZ(8,"td",22),e._uU(9),e.ALo(10,"number"),e.qZA(),e.TgZ(11,"td",36),e.YNc(12,fe,4,3,"div",37),e.qZA(),e.TgZ(13,"td")(14,"div",38)(15,"div",39)(16,"a",40),e._UZ(17,"i",41),e.qZA(),e._uU(18," \xa0\xa0 "),e.TgZ(19,"span",42),e.NdJ("click",function(){const l=e.CHM(n).$implicit,c=e.oxw(4);return e.KtG(c.refreshPrice(l))}),e._UZ(20,"i",43),e.qZA()()()()()}if(2&t){const n=a.$implicit,o=a.index;e.xp6(1),e.Q6J("ngIf",0==o),e.xp6(2),e.Oqu(n.Model),e.xp6(2),e.hij(" ",n.Code," "),e.xp6(2),e.Q6J("ngIf",n.Inventory>=0),e.xp6(2),e.hij(" ",e.lcZ(10,8,n.UnitPrice)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(10,xe,n.UnitPrice!=(null==n.Channel[0]?null:n.Channel[0].Price))),e.xp6(1),e.Q6J("ngIf",n.Channel.length>0),e.xp6(4),e.Q6J("href",null==n.Channel[0]?null:n.Channel[0].Url,e.LSH)}}function be(t,a){if(1&t&&(e.ynx(0),e.YNc(1,Pe,21,12,"tr",26),e.BQk()),2&t){const n=a.$implicit;e.xp6(1),e.Q6J("ngForOf",n.Variants)}}function Se(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"span",57),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.getRowCount())}),e.TgZ(1,"i",58),e._uU(2,"?"),e.qZA()()}}function Te(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&t){const n=a.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,n.Total))}}function Ie(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"a",62),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(4);return e.KtG(i.onNextPage())}),e._UZ(1,"i",63),e._uU(2," Next"),e.qZA()}}function ve(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"a",64),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(4);return e.KtG(i.onLastPage())}),e._UZ(1,"i",65),e._uU(2," Last"),e.qZA()}}function Ze(t,a){if(1&t&&(e.TgZ(0,"div",59),e.YNc(1,Ie,3,0,"a",60),e.YNc(2,ve,3,0,"a",61),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage)}}function ye(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"content")(1,"div",12)(2,"div",13)(3,"table",14)(4,"thead",15)(5,"tr")(6,"th",16),e._uU(7," Product "),e.TgZ(8,"div")(9,"mat-slide-toggle",17),e.NdJ("ngModelChange",function(i){e.CHM(n);const l=e.oxw(2);return e.KtG(l.toggleDifferentInventory=i)})("toggleChange",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.onToggleDifferentInventory())}),e.TgZ(10,"small",18),e._uU(11,"Filter Different Price"),e.qZA()()()(),e.TgZ(12,"th",19),e._uU(13,"Variant"),e.qZA(),e.TgZ(14,"th",20),e._uU(15,"SKU"),e.qZA(),e.TgZ(16,"th")(17,"input",21),e.NdJ("change",function(i){const c=e.CHM(n).ngIf,_=e.oxw(2);return e.KtG(_.onSelectAllSKU(i.target.checked,c))}),e.qZA()(),e.TgZ(18,"th",22),e._uU(19,"POS"),e.qZA(),e.TgZ(20,"th")(21,"ng-select",23),e.NdJ("ngModelChange",function(i){e.CHM(n);const l=e.oxw(2);return e.KtG(l.searchFilter.ChannelID=i)})("change",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.search())}),e.YNc(22,he,3,3,"ng-option",24),e.qZA()(),e._UZ(23,"th",25),e.qZA()(),e.TgZ(24,"tbody"),e.YNc(25,be,2,1,"ng-container",26),e.qZA()(),e.TgZ(26,"div",27)(27,"div",28)(28,"div",29),e._uU(29),e.ALo(30,"number"),e.YNc(31,Se,3,0,"span",30),e.YNc(32,Te,3,3,"span",4),e.ALo(33,"async"),e._uU(34),e.qZA()(),e.YNc(35,Ze,3,2,"div",31),e.qZA()()()()}if(2&t){const n=a.ngIf,o=e.oxw().ngIf,i=e.oxw();e.xp6(9),e.Q6J("ngModel",i.toggleDifferentInventory),e.xp6(12),e.Q6J("clearable",!1)("ngModel",i.searchFilter.ChannelID),e.xp6(1),e.Q6J("ngForOf",o.Options.Channel),e.xp6(3),e.Q6J("ngForOf",n),e.xp6(4),e.hij(" Showing 1 - ",e.lcZ(30,10,null==n?null:n.length)," of "),e.xp6(2),e.Q6J("ngIf",i.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(33,12,!i.paginationService.hideCount&&i.allDataCount$)),e.xp6(2),e.hij(" records ~ ",i.paginationService.footerPageNumber," Page "),e.xp6(1),e.Q6J("ngIf",n.length>0)}}function we(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("textChange",function(i){e.CHM(n);const l=e.oxw();return e.KtG(l.searchFilter.text=i)})("onSubmit",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.search())}),e.TgZ(1,"filters")(2,"div",2)(3,"div")(4,"label"),e._uU(5,"Page Size"),e.qZA(),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(i){e.CHM(n);const l=e.oxw();return e.KtG(l.searchFilter.RowCount=i)}),e.qZA()()()(),e.YNc(7,_e,5,2,"actions",4),e.ALo(8,"async"),e.YNc(9,ye,36,14,"content",4),e.ALo(10,"async"),e.qZA()}if(2&t){const n=e.oxw();e.Q6J("headerTitle",n.pageTitle)("text",n.searchFilter.text),e.xp6(6),e.Q6J("ngModel",n.searchFilter.RowCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(8,5,n.paginationService.data$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,7,n.paginationService.data$))}}let Ae=(()=>{class t{constructor(n,o,i,l,c){this.http=n,this.paginationService=o,this.toastr=i,this.dialog=l,this.productService=c,this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.allDataCountEndpoint="Inventory/GetInventoryByChannelRowCount"}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe((0,w.b)(n=>{this.searchFilter=n.Filter,this.searchFilter.filterModel=h.v.ALL,this.paginationService.resetToFirstPage(this.searchFilter)}))}onToggleDifferentInventory(){this.searchFilter.filterModel=this.toggleDifferentInventory?h.v.ALL:h.v.DIFFERENCE,this.search()}onCheckboxStateProduct(n){n.Variants=n.Variants.map(o=>(o.selected=n.selected,o))}openScanDialog(n){let o=JSON.parse(JSON.stringify(this.searchFilter));o.ChannelID=g.g.GuidEMpty,this.dialog.open(Z.j,{data:{filter:o,Channel:n.Options.Channel},width:"40%"}).afterClosed().pipe((0,d.h)(i=>g.g.IsNotEmpty(i))).subscribe(i=>{this.searchFilter.ChannelID=i.ChannelID,this.searchFilter.ScanFull=i.ScanFull,this.searchFilter.UpdatedProduct=i.UpdatedProduct,this.refreshChannel(n)})}refreshChannel(n){const o=this.productService.findChannelById(this.searchFilter.ChannelID,n.Options.Channel);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct).subscribe(()=>{this.initPageLoader(),this.toastr.success(`Successfully scanned from ${o?.Name}`,"Success")})}updateStock(n){let i=this.productService.selectedVariantProduct(n).map(c=>({ID:c.ID,ChannelID:c.Channel[0].ChannelID,Code:c.Code,Price:c.UnitPrice})),l={ListChannelID:[this.searchFilter.ChannelID],ListPrice:i};this.http.post("/api/Price/UpdateChannel",l).subscribe(()=>{this.search(),this.toastr.success(`Successfully updated ${l.ListPrice.length} variants in ${l.ListChannelID.length} channels`,"Success")})}refreshPrice(n){this.http.post("/api/Price/RefreshPriceChannel",{ChannelItemID:n?.Channel[0].ChannelItemID,ChannelVariationID:n?.Channel[0]?.ChannelVariationID,ChannelID:n?.Channel[0]?.ChannelID,VariantID:n.ID}).subscribe(i=>{this.toastr.success("Successfully updated","Success"),this.search()})}search(){this.paginationService.resetToFirstPage(this.searchFilter)}getRowCount(){this.paginationService.hideCount=!1,this.allDataCount$=this.http.post(`/API/${this.allDataCountEndpoint}`,this.searchFilter)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){this.http.post(`/API/${this.allDataCountEndpoint}`,this.searchFilter).subscribe({next:n=>{this.paginationService.getAllData(this.searchFilter,n.Total)}})}openTableDialog(n,o,i){this.dialog.open(re.k,{data:{Name:o.Name,Variant:n,ChannelID:n?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:n?.Channel[0]?.ChannelItemID}}).afterClosed().pipe((0,d.h)(c=>c)).subscribe(c=>{this.updateItemAfterDialog(c,i)})}updateItemAfterDialog(n,o){const i=this.productService.findChannelById(this.searchFilter.ChannelID,o.Options.Channel);let l={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:parseFloat(n.Price),VariantID:n.ID,SKU:n.Sku};this.http.post("/api/Price/UpdatePriceByID",l).subscribe(c=>{this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) inventory in ${i.Name} to ${l.Price}`,"Success")})}onSelectAllSKU(n,o){o=o.map(i=>(i.Variants=i.Variants.map(l=>(l.selected=n,l)),i))}ngOnDestroy(){this.paginationService.destroy()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.O),e.Y36(A.b),e.Y36(x._W),e.Y36(P.uw),e.Y36(b.M))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-price-single-channel"]],decls:2,vars:3,consts:[[3,"headerTitle","text","textChange","onSubmit",4,"ngIf"],[3,"headerTitle","text","textChange","onSubmit"],["container",""],["type","number",3,"ngModel","ngModelChange"],[4,"ngIf"],[1,"d-flex"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-3",3,"click",4,"ngIf"],["class","btn btn-success",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModel","ngModelChange","toggleChange"],[1,"fw-bold"],[1,"text-start"],[1,"text-end",2,"width","20%"],["type","checkbox",1,"me-3",3,"change"],[1,"text-end"],["name","channelOption",3,"clearable","ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[2,"width","4%"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],["class","btn-group",4,"ngIf"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"align-middle"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-end",3,"ngClass"],["class","row justify-content-end me-0",4,"ngIf"],[1,"row"],[1,"col-12","ps-0","d-flex","justify-content-between"],["target","_blank",2,"color","#333333",3,"href"],[1,"fas","custom-size","fa-lg","fa-external-link-alt"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",3,"click"],[1,"fas","custom-size","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-start"],["type","checkbox","class","me-3",3,"ngModel","ngModelChange",4,"ngIf"],["class","border rounded w-img","style","margin-left: 20px",3,"src",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox",1,"me-3",3,"ngModel","ngModelChange"],[1,"border","rounded","w-img",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"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"row","justify-content-end","me-0"],[1,"col-8","ps-0","pe-12","text-end",2,"cursor","pointer",3,"click"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load more for 20 products",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load all products",3,"click",4,"ngIf"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(n,o){1&n&&(e.YNc(0,we,11,9,"mainpanel",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,o.loader$))},dependencies:[s.mk,s.sg,s.O5,p.Fj,p.wV,p.Wl,p.JJ,p.On,u.p,C.w9,C.jq,D.Rr,U.gM,s.Ov,s.JJ],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"]}),t})();var T=r(8063);const Fe=[{path:"",component:J,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",component:G,canActivate:[T.a],data:{title:"Global Price Comparison"}},{path:"OutletPrice",component:ce,canActivate:[T.a],data:{title:"Outlet Price Comparison"}},{path:"SingleChannel",component:Ae,canActivate:[T.a],data:{title:"Price Single Channel Comparison"}}]}];let Me=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[s.ez,m.Bz.forChild(Fe)]}),t})();var De=r(6709);let Ue=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[s.ez,p.u5,v.Z,u.R,m.Bz,C.A0,Me,p.UX,D.rP,L,De.p9,M.U,U.AV]}),t})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[882],{8231:(U,I,a)=>{a.d(I,{j:()=>x});var c=a(5412),m=a(3154),g=a(9694),t=a(4650),D=a(6895),u=a(4006),h=a(1948),d=a(9549),e=a(4385),n=a(3238),l=a(266);function s(v,_){if(1&v&&(t.TgZ(0,"mat-option",11)(1,"div",12),t._UZ(2,"img",13),t.TgZ(3,"span"),t._uU(4),t.qZA()()()),2&v){const o=_.$implicit;t.Q6J("value",o.ID)("disabled",o.disabled),t.xp6(1),t.Q6J("matTooltip",o.disabled?"Single Product Scan disabled for this type of Channel":null),t.xp6(1),t.Q6J("src",o.Img,t.LSH),t.xp6(2),t.Oqu(o.Name)}}function f(v,_){if(1&v){const o=t.EpF();t.TgZ(0,"div")(1,"h5",2),t._uU(2,"Scan Type"),t.qZA(),t.TgZ(3,"mat-radio-group",14),t.NdJ("ngModelChange",function(T){t.CHM(o);const P=t.oxw();return t.KtG(P.filter.ScanFull=T)}),t.TgZ(4,"mat-radio-button",15),t._uU(5," Full (Include Inactive Products) "),t.qZA(),t.TgZ(6,"mat-radio-button",16),t._uU(7," Active "),t.qZA()()()}if(2&v){const o=t.oxw();t.xp6(3),t.Q6J("ngModel",o.filter.ScanFull),t.xp6(1),t.Q6J("value",!0),t.xp6(2),t.Q6J("value",!1)}}function A(v,_){if(1&v){const o=t.EpF();t.TgZ(0,"div",17)(1,"h5",2),t._uU(2),t.ALo(3,"date"),t.qZA(),t.TgZ(4,"mat-radio-group",18),t.NdJ("ngModelChange",function(T){t.CHM(o);const P=t.oxw();return t.KtG(P.filter.UpdatedProduct=T)}),t.TgZ(5,"mat-radio-button",19),t._uU(6," Scan All Products "),t.qZA(),t.TgZ(7,"mat-radio-button",20),t._uU(8," Scan Updated Products "),t.qZA()()()}if(2&v){const o=t.oxw();t.xp6(2),t.hij(" Last Scan: ",t.xi3(3,5,o.selectedChannel.LastSync,"dd MMMM yyyy HH:mm")," "),t.xp6(2),t.Q6J("ngModel",o.filter.UpdatedProduct)("disabled",o.isTokopedia),t.xp6(1),t.Q6J("value",!1),t.xp6(2),t.Q6J("value",!0)}}let x=(()=>{class v{constructor(o,i){this.dialogRef=o,this.data=i,this.channelType=g.x,this.filter={ChannelID:m.g.GuidEMpty,ScanFull:!0,UpdatedProduct:!1},this.isSingleChannel=!!m.g.IsNotEmpty(i.isSingleChannel)&&this.data.isSingleChannel}ngOnInit(){this.initChannelOptions(),this.initFilter(),this.onSelectChannel(this.data?.filter?.ChannelID)}initFilter(){this.filter.ChannelID=this.data?.filter?.ChannelID,this.filter.ScanFull=!1,1==this.channelOptions.length&&(this.filter.ChannelID=this.data.Channel[0].ID,this.selectedChannel=this.data.Channel[0])}initChannelOptions(){this.channelOptions=JSON.parse(JSON.stringify(this.data.Channel)),this.isSingleChannel&&(this.channelOptions=this.channelOptions.map(o=>(o.disabled=!0,(o.TypeID==g.x.Tiktok||o.TypeID==g.x.Tokopedia)&&(o.disabled=!1),o)).sort(o=>o.disabled?1:-1))}onSelectChannel(o){let i=this.filterChannelById(o);this.selectedChannel=i,i&&i.TypeID==g.x.Tokopedia?(this.filter.ScanFull=!0,this.isTokopedia=!0):(this.filter.ScanFull=!1,this.isTokopedia=!1),this.setDefaultConfigUpdate()}setDefaultConfigUpdate(){this.filter.UpdatedProduct=!1,this.selectedChannel&&m.g.IsNotEmpty(this.selectedChannel.LastSync)&&(this.selectedChannel.TypeID==g.x.ShopeeV2||this.selectedChannel.TypeID==g.x.Tiktok)&&(this.filter.UpdatedProduct=!0)}filterChannelById(o){let i;return this.channelOptions&&(i=this.channelOptions.find(T=>T.ID==o)),i}submit(){this.dialogRef.close(this.filter)}isNotEmpty(o){return m.g.IsNotEmpty(o)}onClose(){this.dialogRef.close()}}return v.\u0275fac=function(o){return new(o||v)(t.Y36(c.so),t.Y36(c.WI))},v.\u0275cmp=t.Xpm({type:v,selectors:[["app-scan-dialog"]],decls:16,vars:5,consts:[["mat-dialog-title","",1,"pt-2","pb-3"],[1,"py-5","mt-4","mx-0","border-top","border-bottom"],[1,"mb-3","fw-normal"],["appearance","outline"],["name","channelid","placeholder","Channel",3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"justify-content-end","mx-4"],["mat-button","",1,"btn","btn-light","mx-3",3,"click"],["mat-button","","data-cy","scan",1,"btn","btn-success","mx-3",3,"disabled","click"],[3,"value","disabled"],["matTooltipClass","my-custom-tooltip",3,"matTooltip"],[2,"width","18px","margin-right","10px",3,"src"],["name","scanType",1,"form-control","h-100","pt-5","round",3,"ngModel","ngModelChange"],["data-toggle","tooltip","title","Full Scan Product",1,"me-5",3,"value"],["data-toggle","tooltip","title","Only Active Product",1,"me-5",3,"value"],[1,"mt-8"],["name","ScanFull",1,"form-control","h-100","pt-5","round",3,"ngModel","disabled","ngModelChange"],["data-toggle","tooltip","title","Scan product from beginning ( use this if you haven't scanned at all)",1,"me-5",3,"value"],["data-toggle","tooltip","title","Scan only products that have been updated since the last channel scan",1,"me-5",3,"value"]],template:function(o,i){1&o&&(t.TgZ(0,"h1",0),t._uU(1,"Scan Marketplace"),t.qZA(),t.TgZ(2,"mat-dialog-content",1)(3,"div")(4,"h5",2),t._uU(5,"Select a Channel"),t.qZA(),t.TgZ(6,"mat-form-field",3)(7,"mat-select",4),t.NdJ("ngModelChange",function(P){return i.filter.ChannelID=P})("ngModelChange",function(P){return i.onSelectChannel(P)}),t.YNc(8,s,5,5,"mat-option",5),t.qZA()()(),t.YNc(9,f,8,3,"div",6),t.YNc(10,A,9,8,"div",7),t.qZA(),t.TgZ(11,"mat-dialog-actions",8)(12,"button",9),t.NdJ("click",function(){return i.onClose()}),t._uU(13," Cancel "),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return i.submit()}),t._uU(15," Scan "),t.qZA()()),2&o&&(t.xp6(7),t.Q6J("ngModel",i.filter.ChannelID),t.xp6(1),t.Q6J("ngForOf",i.channelOptions),t.xp6(1),t.Q6J("ngIf",!i.isSingleChannel&&!i.isTokopedia&&!i.isSingleChannel&&i.isNotEmpty(i.filter.ChannelID)),t.xp6(1),t.Q6J("ngIf",((null==i.selectedChannel?null:i.selectedChannel.TypeID)==i.channelType.ShopeeV2||(null==i.selectedChannel?null:i.selectedChannel.TypeID)==i.channelType.Tiktok)&&(null==i.selectedChannel?null:i.selectedChannel.LastSync)&&!i.isSingleChannel),t.xp6(4),t.Q6J("disabled",!i.isNotEmpty(i.filter.ChannelID)))},dependencies:[D.sg,D.O5,u.JJ,u.On,c.uh,c.xY,c.H8,h.VQ,h.U0,d.KE,e.gD,n.ey,l.gM,D.uU],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:60px}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]}),v})()},7398:(U,I,a)=>{a.d(I,{Z:()=>h,e:()=>u});var c=a(6895),m=a(266),g=a(8252),t=a(4650);function D(d,e){if(1&d&&(t.TgZ(0,"li",2)(1,"a",3),t._uU(2),t.qZA()()),2&d){const n=e.$implicit;t.xp6(1),t.s9C("routerLink",n.Url),t.Q6J("title",n.Description?n.Description:""),t.xp6(1),t.hij(" ",n.Title," ")}}let u=(()=>{class d{}return d.\u0275fac=function(n){return new(n||d)},d.\u0275cmp=t.Xpm({type:d,selectors:[["nav-tab"]],inputs:{Tabs:"Tabs"},decls:2,vars:1,consts:[[1,"nav","navbar-nav","navbar-left","nav-tab-arrow"],["routerLinkActive","active","class","nav-item me-6",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"nav-item","me-6"],[1,"nav-link","nav-link-arrow","mb-0",3,"routerLink","title"]],template:function(n,l){1&n&&(t.TgZ(0,"ul",0),t.YNc(1,D,3,3,"li",1),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",l.Tabs))},dependencies:[c.sg,g.yS,g.Od]}),d})(),h=(()=>{class d{}return d.\u0275fac=function(n){return new(n||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[c.ez,g.Bz,m.AV]}),d})()},3154:(U,I,a)=>{a.d(I,{g:()=>g});var c=(()=>{return(t=c||(c={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",t.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",t.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",t.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",t.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",c;var t})(),m=a(9694);let g=(()=>{class t{static IsNotEmpty(u){return""!=u&&u!=t.GuidEMpty&&null!=u&&null!=u}static IsEmpty(u){return""==u||null==u||null==u||u==t.GuidEMpty}static getChannelLogoByTypeId(u){let h;switch(u){case m.x.Tokopedia:h=c.TOKOPEDIA;break;case m.x.ShopeeV2:h=c.SHOOPE;break;case m.x.WooCommerce:h=c.WOOCOMMERCE;break;case m.x.Lazada:h=c.LAZADA;break;case m.x.Tiktok:h=c.TIKTOK}return h}}return t.GuidEMpty="00000000-0000-0000-0000-000000000000",t})()},7287:(U,I,a)=>{a.d(I,{b:()=>P});var c=a(4482),m=a(5403),g=a(8421),t=a(4671),D=a(5032),u=a(3269),d=a(4707),e=a(3099),l=a(1135),s=a(7579),f=a(2722),A=a(9300),x=a(4351),v=a(4004),_=a(5026),o=a(8505),i=a(4650),T=a(1318);let P=(()=>{class C{constructor(r){this.http=r,this.pagination$=new l.X(null),this.destroy$=new s.x,this.data$=this.paginationFunction()}onNextPage(r){r.PageNumber+=1,this.pagination$.next(r)}setPageNumberFooter(r){this.footerPageNumber=r.PageNumber}setPaginationButtonState(r,p){this.disableNextButton=0==p||!(p<r.RowCount*r.PageNumber)}resetToFirstPage(r){r.PageNumber=1,this.pagination$.next(r),this.hideCount=!0,this.goToLastPage=!1}getAllData(r,p){r.RowCount=p,this.pagination$.next(r),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new l.X(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe((0,f.R)(this.destroy$),(0,A.h)(r=>null!=r),(0,x.b)(r=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(r)).pipe((0,v.U)(p=>p.Data))),function h(...C){const y=(0,u.jO)(C);return(0,c.e)((r,p)=>{const M=C.length,O=new Array(M);let E=C.map(()=>!1),N=!1;for(let S=0;S<M;S++)(0,g.Xf)(C[S]).subscribe((0,m.x)(p,b=>{O[S]=b,!N&&!E[S]&&(E[S]=!0,(N=E.every(t.y))&&(E=null))},D.Z));r.subscribe((0,m.x)(p,S=>{if(N){const b=[S,...O];p.next(y?y(...b):b)}}))})}(this.pagination$),(0,_.R)((r,p)=>{const[M,O]=r,[E]=p;return 1==O.PageNumber?[E,O]:[M.concat(E),O]}),(0,o.b)(([r,p])=>{this.setPageNumberFooter(p),this.setPaginationButtonState(p,r.length)}),(0,v.U)(([r])=>r),function n(C,y,r){let p,M=!1;return C&&"object"==typeof C?({bufferSize:p=1/0,windowTime:y=1/0,refCount:M=!1,scheduler:r}=C):p=C??1/0,(0,e.B)({connector:()=>new d.t(p,y,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:M})}())}}return C.\u0275fac=function(r){return new(r||C)(i.LFG(T.O))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},6082:(U,I,a)=>{a.d(I,{M:()=>u});var c=a(8505),m=a(9694),g=a(4650),t=a(1318),D=a(7185);let u=(()=>{class h{constructor(e,n){this.httpService=e,this.toastrService=n}loader(){return this.httpService.post("/api/product/Load",{})}filterChannelByTypeId(e,n){return e.filter(l=>-1!==n.findIndex(s=>l.TypeID==s))}uploadToMultipleChannel(e,n){return this.httpService.post("api/product/UploadMultipleChannelToMarketplace",{Channel:n,Products:e})}uploadMultipleProduct(e,n,l){return this.httpService.post("/api/product/UploadToMarketplace",{ChannelID:n,Products:e,CategoryID:l||0})}scanSingle(e,n){return this.httpService.post("/api/product/ScanSingle",{ID:e,SKU:n})}scanNotInChannel(e){return this.httpService.post("/api/product/ScanNotinChannel",{ID:e})}findAllSoldInChannel(e){return this.httpService.post("/api/product/GetSoldInChannel",e)}scanAll(e,n,l){return this.httpService.post("/api/product/ScanOptimized",{ID:e,ScanFull:n,UpdatedProduct:l})}getVariantCodesProduct(e){return e.Variants.map(l=>l.Code)}downloadMultipleProduct(e){let n=e.map(l=>({ChannelItemID:l.ChannelItemID,ChannelID:l.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",n).pipe((0,c.b)(()=>{this.toastrService.success("Retrieved Product successfully!","Success")}))}downloadProduct(e){return this.httpService.post("/api/product/DownloadProductFromChannel",{ChannelItemID:e.ChannelItemID,ChannelID:e.ChannelID}).pipe((0,c.b)(()=>{this.toastrService.success("Retrieved Product successfully!","Success")}))}getVariantCodesProducts(e=[]){let n=[];return e.forEach(l=>{l.Variants.forEach(s=>{n=[...n,s.Code]})}),n}filterUnselectedChannel(e,n){let l;return l=e.Channel&&0!=e.Channel.length?n.filter(s=>-1===e.Channel.findIndex(f=>f.ChannelID==s.ID)):n,l}findChannelById(e,n){return n.find(l=>l.ID==e)}sortChannel(e=[]){return e.sort((n,l)=>n.TypeID<l.TypeID?1:n.TypeID===l.TypeID?0:-1)}hasSelection(e=[]){return this.selectedProduct(e).length>0}selectedProduct(e=[]){return e.filter(n=>n.selected)}hasSelectionVariant(e){return this.selectedVariantProduct(e).length>0}selectedVariantProduct(e){let n=[];return e.forEach(l=>{n=[...n,...l.Variants.filter(s=>s.selected)]}),n}getChannelProduct(e){const n=e.Variants;let l=[];for(let s of n)if(null!=s.Channel)for(let f of s.Channel)0==l.filter(A=>A.ChannelID==f.ChannelID).length&&l.push(f);return this.sortChannel(l)}successToastrScanAllProduct(e,n,l){if(l){const s=e?.NotInPOS?.Product?e?.NotInPOS?.Product:0,f=e?.InChannel?.Product?e?.InChannel?.Product:0;this.toastrService.success(`\n ${s+f} found in ${n.Name} </br>\n (${f} In POS + ${s} Not In Pos)\n `,"Scan Complete!",{enableHtml:!0})}else this.toastrService.success(`${e.InChannel?e.InChannel.Product:0} product updates in ${n.Name} </br> \n since ${e.LastUpdate}`,"Scan Complete!",{enableHtml:!0})}checkProductHasScanButton(e,n){let l,s;return e.map(f=>(f.Channel=this.getChannelProduct(f),l=this.filterUnselectedChannel(f,n),s=this.filterChannelByTypeId(l,[m.x.Tiktok,m.x.Tokopedia]),f.hasScan=s.length>0,f))}checkProductHasUploadBtn(e,n){let l;return e.map(s=>(s.Channel=this.getChannelProduct(s),l=this.filterUnselectedChannel(s,n),s.hasUpload=l.length>0,s))}}return h.\u0275fac=function(e){return new(e||h)(g.LFG(t.O),g.LFG(D._W))},h.\u0275prov=g.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[592],{4810:(d,u,i)=>{i.d(u,{T:()=>e});var l=i(4650);let e=(()=>{class r{constructor(){}getBrowserName(){const a=window.navigator.userAgent.toLowerCase();switch(!0){case a.indexOf("edge")>-1||a.indexOf("edg")>-1:return"edge";case a.indexOf("opr")>-1:return"opera";case a.indexOf("chrome")>-1:return"chrome";case a.indexOf("trident")>-1:return"ie";case a.indexOf("firefox")>-1:return"firefox";case a.indexOf("safari")>-1:return"safari";default:return"other"}}}return r.\u0275fac=function(a){return new(a||r)},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},2594:(d,u,i)=>{i.d(u,{K:()=>g,n:()=>a});var l=i(6895),e=i(4650);function r(t,s){if(1&t){const o=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(o);const c=e.oxw();return c.getTotal(),e.KtG(c.hasClicked=!0)}),e.TgZ(1,"i",11),e._uU(2,"?"),e.qZA()()}}function p(t,s){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&t){const o=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,o.paginationTotal))}}let a=(()=>{class t{constructor(){this.get=new e.vpe,this.change=new e.vpe,this.next=new e.vpe,this.previous=new e.vpe,this.total=new e.vpe,this.hasClicked=!1}changePage(o){this.filter.PageNumber=o.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-mat-paginator-no-count"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},decls:13,vars:10,consts:[[1,"d-flex","justify-content-end","mt-5"],[1,"d-sm-block","collapse","mt-3","me-5"],[1,"text-dark","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary","btn-sm","me-3","border-0",3,"disabled","click"],[1,"fas","fa-chevron-left"],["role","button",1,"btn","btn-outline-secondary","btn-sm","border-0",3,"disabled","click"],[1,"fas","fa-chevron-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3),e.ALo(4,"number"),e.ALo(5,"number"),e.YNc(6,r,3,0,"span",3),e.YNc(7,p,3,3,"span",4),e.qZA()(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return n.PreviousPage()}),e._UZ(10,"i",7),e.qZA(),e.TgZ(11,"button",8),e.NdJ("click",function(){return n.NextPage()}),e._UZ(12,"i",9),e.qZA()()()),2&o&&(e.xp6(3),e.AsE(" Showing ",e.lcZ(4,6,n.filter.PageSize*(n.filter.PageNumber-1)+1)," - ",e.lcZ(5,8,n.filter.PageSize*(n.filter.PageNumber-1)+n.totaldata)," of "),e.xp6(3),e.Q6J("ngIf",!n.hasClicked),e.xp6(1),e.Q6J("ngIf",n.hasClicked),e.xp6(2),e.Q6J("disabled",1==n.filter.PageNumber),e.xp6(2),e.Q6J("disabled",n.filter.PageSize*(n.filter.PageNumber-1)+n.totaldata==n.paginationTotal||n.totaldata<n.filter.PageSize))},dependencies:[l.O5,l.JJ]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[l.ez]}),t})()}}]);
|