marketplacepos 2.4.0 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/102.00a16fb36f5a57f2.js +1 -0
- package/Marketplace/162.9784f9e579112c86.js +1 -0
- package/Marketplace/285.7583f3169c88c210.js +1 -0
- package/Marketplace/387.10f091023152d154.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +25 -0
- package/Marketplace/402.60951eab064c9706.js +1 -0
- package/Marketplace/455.fc7663306b753727.js +1 -0
- package/Marketplace/458.556f206f7d19bc29.js +1 -0
- package/Marketplace/585.9e916b668a91cc94.js +1 -0
- package/Marketplace/616.fb179a9605c3e98c.js +1 -0
- package/Marketplace/667.b7320f874219caa9.js +1 -0
- package/Marketplace/785.a0973529f8e8819e.js +1 -0
- package/Marketplace/796.d34bd45b5a924fca.js +1 -0
- package/Marketplace/832.40bafce037098f88.js +1 -0
- package/Marketplace/874.9879a8b9489c9845.js +1 -0
- package/Marketplace/882.5d3edc53a8e4c38e.js +1 -0
- package/Marketplace/assets/lbd/_sidebar-and-main-panel.scss +0 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.f30bf3b0f501021c.js +1 -0
- package/Marketplace/runtime.9cbc4802b0456746.js +1 -0
- package/Marketplace/scripts.09af772bfa77d50d.js +1 -0
- package/Marketplace/styles.f8366e17917068bd.css +20 -0
- package/package.json +1 -1
- package/Marketplace/146.bc63745556a7579e.js +0 -1
- package/Marketplace/285.1f547ef81e91fc15.js +0 -1
- package/Marketplace/288.9b236c96f7411cc2.js +0 -1
- package/Marketplace/327.72c9ed40548e876f.js +0 -1
- package/Marketplace/402.76aaae9b8dfdc4fd.js +0 -1
- package/Marketplace/458.175fffe756700561.js +0 -1
- package/Marketplace/466.02b13502d80588a2.js +0 -1
- package/Marketplace/472.2a25cc631023dd9d.js +0 -1
- package/Marketplace/585.c93552ac67f4550c.js +0 -1
- package/Marketplace/61.6bf2570c9c03e65d.js +0 -1
- package/Marketplace/616.507588c0a5d7b9e1.js +0 -1
- package/Marketplace/767.297995f3aba0da57.js +0 -1
- package/Marketplace/796.3be8ad424aad7864.js +0 -1
- package/Marketplace/970.3f4eb2182e0ed6ff.js +0 -1
- package/Marketplace/main.7b5711d2efb046b5.js +0 -1
- package/Marketplace/runtime.ec27a3ee2f27cef3.js +0 -1
- package/Marketplace/scripts.512baec01df5d79f.js +0 -1
- package/Marketplace/styles.84477c613818f650.css +0 -39
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[285],{4285:(te,C,s)=>{s.r(C),s.d(C,{ReportModule:()=>ee});var p=s(6895),v=s(7398),e=s(4650),h=s(8252);let Z=(()=>{class n{constructor(){this.ReportTabs=[{Title:"1 - New Order",Url:"/menu/report/order"},{Title:"2 - Ready to Ship",Url:"/menu/report/invoice"},{Title:"3 - Shipped",Url:"/menu/report/delivery"},{Title:"4 - Completed",Url:"/menu/report/payment"}]}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-report"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,o){1&t&&(e.TgZ(0,"nav",0)(1,"div",1)(2,"div"),e._UZ(3,"nav-tab",2),e.qZA()()(),e._UZ(4,"router-outlet")),2&t&&(e.xp6(3),e.Q6J("Tabs",o.ReportTabs))},dependencies:[v.e,h.lC]}),n})();class u{}var w=s(1318);let g=(()=>{class n{constructor(t){this.http=t}GetLoader(){return new Promise((t,o)=>{this.http.post("/api/Report/GetLoader",{}).subscribe(a=>{t(a)})})}GetSyncOrder(t){return new Promise((o,a)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(t)).subscribe(i=>{o(i)})})}GetSyncInvoice(t){return new Promise((o,a)=>{this.http.post("/api/Report/Invoice",JSON.stringify(t)).subscribe(i=>{o(i)})})}GetSyncDelivery(t){return new Promise((o,a)=>{this.http.post("/api/Report/Delivery",JSON.stringify(t)).subscribe(i=>{o(i)})})}GetSyncPayment(t){return new Promise((o,a)=>{this.http.post("/api/Report/Payment",JSON.stringify(t)).subscribe(i=>{o(i)})})}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(w.O))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var c=s(7481),S=s(4006),x=s(8277),R=s(4859),f=s(3238),d=s(9602),D=s(9549),O=s(4144),M=s(5585);function P(n,r){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"mat-date-range-picker-actions")(2,"button",7),e._uU(3,"Cancel"),e.qZA(),e.TgZ(4,"button",8),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onSelectDate())}),e._uU(5,"Search"),e.qZA()(),e.BQk()}}const b={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let T=(()=>{class n{constructor(){this.disabled=!1,this.widthClass="w-100",this.showButtonConfirm=!1,this.dateChange=new e.vpe}fromDateChange(t){let o=t.toDate();this.from=o}toDateChange(t){let o=t.toDate();this.to=o,this.showButtonConfirm||this.emitDateChange()}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-datepicker-range"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",date:"date",disabled:"disabled",minDate:"minDate",widthClass:"widthClass",showButtonConfirm:"showButtonConfirm",from:"from",to:"to"},outputs:{dateChange:"dateChange"},features:[e._Bn([{provide:f._A,useClass:x.t7,deps:[f.Ad]},{provide:f.sG,useValue:b}])],decls:8,vars:8,consts:[["appearance","outline"],["id","dates",3,"min","rangePicker"],["matStartDate","","placeholder","Start date",3,"value","dateChange","click"],["matEndDate","","placeholder","End date",3,"value","dateChange","click"],["matPrefix","",3,"for"],["picker",""],[4,"ngIf"],["mat-button","","matDateRangePickerCancel",""],["mat-raised-button","","color","primary","matDateRangePickerApply","",3,"click"]],template:function(t,o){if(1&t){const a=e.EpF();e.TgZ(0,"mat-form-field",0)(1,"mat-date-range-input",1)(2,"input",2),e.NdJ("dateChange",function(m){return o.fromDateChange(m.value)})("click",function(){e.CHM(a);const m=e.MAs(6);return e.KtG(m.open())}),e.qZA(),e.TgZ(3,"input",3),e.NdJ("dateChange",function(m){return o.toDateChange(m.value)})("click",function(){e.CHM(a);const m=e.MAs(6);return e.KtG(m.open())}),e.qZA()(),e._UZ(4,"mat-datepicker-toggle",4),e.TgZ(5,"mat-date-range-picker",null,5),e.YNc(7,P,6,0,"ng-container",6),e.qZA()()}if(2&t){const a=e.MAs(6);e.Tol(o.widthClass),e.xp6(1),e.Q6J("min",o.minDate)("rangePicker",a),e.xp6(1),e.Q6J("value",o.from),e.xp6(1),e.Q6J("value",o.to),e.xp6(1),e.Q6J("for",a),e.xp6(3),e.Q6J("ngIf",o.showButtonConfirm)}},dependencies:[d.nW,d.wx,d.zY,d.By,d._g,d.M5,d.dp,d.DK,D.KE,D.qo,R.lW],styles:["mat-date-range-input[_ngcontent-%COMP%]{font-size:.875rem}"]}),n})(),A=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[d.FA],imports:[f.XK,d.FA,D.lN,M.ZU,O.c,S.u5,R.ot]}),n})();var l=(()=>{return(n=l||(l={}))[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",l;var n})();function N(n,r){if(1&n&&(e.TgZ(0,"th",6)(1,"div",7)(2,"h4"),e._uU(3),e.qZA(),e.TgZ(4,"small",8),e._uU(5),e.qZA()()()),2&n){const t=r.$implicit,o=e.oxw();e.xp6(3),e.Oqu(t),e.xp6(1),e.Tol(o.getTextBgColor(t)),e.xp6(1),e.Oqu(o.getHeaderStatusDesc(t))}}function F(n,r){if(1&n&&(e.TgZ(0,"a",10),e._UZ(1,"img",12),e.qZA()),2&n){const t=e.oxw().$implicit;e.s9C("href",t.Url,e.LSH)}}function k(n,r){if(1&n&&(e.TgZ(0,"a",10),e._UZ(1,"img",13),e.qZA()),2&n){const t=e.oxw().$implicit;e.s9C("href",t.Url,e.LSH)}}function J(n,r){if(1&n&&(e.TgZ(0,"a",10),e._UZ(1,"img",14),e.qZA()),2&n){const t=e.oxw().$implicit;e.s9C("href",t.Url,e.LSH)}}function I(n,r){if(1&n&&(e.TgZ(0,"a",10),e._UZ(1,"img",15),e.qZA()),2&n){const t=e.oxw().$implicit;e.s9C("href",t.Url,e.LSH)}}function U(n,r){if(1&n&&(e.TgZ(0,"a",10),e._UZ(1,"img",16),e.qZA()),2&n){const t=e.oxw().$implicit;e.s9C("href",t.Url,e.LSH)}}function Y(n,r){if(1&n&&(e.TgZ(0,"a",10),e._UZ(1,"img",17),e.qZA()),2&n){const t=e.oxw().$implicit;e.s9C("href",t.Url,e.LSH)}}const L=function(){return["/menu/log/order"]},Q=function(n,r,t,o,a){return{responseCode:n,From:r,to:t,actionType:o,ChannelID:a}};function B(n,r){if(1&n&&(e.TgZ(0,"td",18)(1,"a",19),e._uU(2),e.qZA()()),2&n){const t=r.$implicit,o=e.oxw().$implicit,a=e.oxw();e.xp6(1),e.Q6J("routerLink",e.DdM(3,L))("queryParams",e.qbA(4,Q,t.Key,a.from,a.to,a.type,o.ChannelID)),e.xp6(1),e.hij(" ",t.Value," ")}}function E(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td"),e.YNc(2,F,2,1,"a",9),e.YNc(3,k,2,1,"a",9),e.YNc(4,J,2,1,"a",9),e.YNc(5,I,2,1,"a",9),e.YNc(6,U,2,1,"a",9),e.YNc(7,Y,2,1,"a",9),e.qZA(),e.TgZ(8,"td")(9,"div")(10,"a",10),e._uU(11),e.qZA()(),e.TgZ(12,"div"),e._uU(13),e.qZA()(),e.YNc(14,B,3,10,"td",11),e.qZA()),2&n){const t=r.$implicit;e.xp6(2),e.Q6J("ngIf",0==t.Type||5==t.Type),e.xp6(1),e.Q6J("ngIf",1==t.Type),e.xp6(1),e.Q6J("ngIf",2==t.Type),e.xp6(1),e.Q6J("ngIf",4==t.Type),e.xp6(1),e.Q6J("ngIf",6==t.Type),e.xp6(1),e.Q6J("ngIf",7==t.Type),e.xp6(3),e.s9C("href",t.Url,e.LSH),e.xp6(1),e.Oqu(t.Name),e.xp6(2),e.Oqu(t.Url),e.xp6(1),e.Q6J("ngForOf",t.list)}}let y=(()=>{class n{constructor(){this.headerStatus=l}getHeaderStatusDesc(t){let o=null;switch(t){case l.BAD_REQUEST:o="BAD REQUEST";break;case l.CONFLICT:o="CONFLICT";break;case l.INTERNAL_SERVER_ERROR:o="INTERNAL SERVER ERROR";break;default:o="OK"}return o}getTextBgColor(t){let o=null;switch(t){case l.OK:o="bg-success";break;case l.INTERNAL_SERVER_ERROR:o="bg-danger";break;default:o="bg-warning"}return o}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-table-report"]],inputs:{header:"header",result:"result",from:"from",to:"to",type:"type"},decls:9,vars:2,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","3%"],["class","text-start","style","width: 5%;",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"text-start",2,"width","5%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],["class","text-start",4,"ngFor","ngForOf"],["src","https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png"],["src","https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png"],["src","https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp"],["src","https://res.cloudinary.com/pos/image/upload/v1639725279/icons/marketplace_icons/kalcare.png"],["src","https://res.cloudinary.com/pos/image/upload/w_40/v1645761611/icons/Marketplace%20logo/tiktok.png"],["src","https://res.cloudinary.com/pos/image/upload/w_50/v1641528003/icons/marketplace_icons/lazada.png"],[1,"text-start"],[1,"h3","text-primary","fw-bold",3,"routerLink","queryParams"]],template:function(t,o){1&t&&(e.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),e._UZ(3,"th",2),e.TgZ(4,"th",3),e._uU(5,"Name"),e.qZA(),e.YNc(6,N,6,4,"th",4),e.qZA()(),e.TgZ(7,"tbody"),e.YNc(8,E,15,10,"tr",5),e.qZA()()),2&t&&(e.xp6(6),e.Q6J("ngForOf",o.header),e.xp6(2),e.Q6J("ngForOf",o.result))},dependencies:[p.sg,p.O5,h.yS],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]}),n})();function G(n,r){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e._UZ(2,"app-table-report",7),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("result",t.result)("header",t.header)("from",t.from)("to",t.to)("type",0)}}let q=(()=>{class n{constructor(t,o){this.http=t,this.datePipe=o,this.model=new u,this.PageTitle="New Order";let a=new Date;this.maxDate=a,this.minDate=this.addDays(a,6),this.model.From=a,this.model.To=a,this.updatePageTitle()}updatePageTitle(){const t=this.datePipe.transform(this.model.From,"dd MMM"),o=this.datePipe.transform(this.model.To,"dd MMM yyyy");this.PageTitle=`New Order (${t} - ${o})`}addDays(t,o){const a=new Date(Number(t));return a.setDate(t.getDate()-o),a}getDayDiff(t,o){return(o.getTime()-t.getTime())/864e5}ngOnInit(){this.Load()}Load(){this.http.GetLoader().then(t=>{this.model=t,this.from=this.model.From.toString(),this.to=this.model.To.toString(),this.http.GetSyncOrder(this.model).then(o=>{this.header=o.Header,this.result=o.Body})})}GetData(t){this.model.From=t.from,this.model.To=t.to,this.updatePageTitle(),this.http.GetSyncOrder(this.model).then(o=>{this.header=o.Header,this.result=o.Body,this.from=this.model.From.toJSON(),this.to=this.model.To.toJSON()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-sales-order"]],decls:7,vars:7,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],[1,"filterDate"],[3,"minDate","from","to","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,o){1&t&&(e.TgZ(0,"mainpanel",0)(1,"actions")(2,"div",1)(3,"app-datepicker-range",2),e.NdJ("dateChange",function(i){return o.GetData(i)}),e.qZA()()(),e.TgZ(4,"content")(5,"div",3),e.YNc(6,G,3,5,"div",4),e.qZA()()()),2&t&&(e.Q6J("headerTitle",o.PageTitle)("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(3),e.Q6J("minDate",o.minDate)("from",o.model.From)("to",o.model.To),e.xp6(3),e.Q6J("ngIf",o.result))},dependencies:[p.O5,c.p,T,y],styles:[".filterDate[_ngcontent-%COMP%]{position:absolute;right:10px;top:2px}"]}),n})();function $(n,r){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e._UZ(2,"app-table-report",7),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("result",t.result)("header",t.header)("from",t.from)("to",t.to)("type",1)}}let H=(()=>{class n{constructor(t,o){this.http=t,this.datePipe=o,this.model=new u,this.PageTitle="Ready to Ship";let a=new Date;this.maxDate=a,this.minDate=this.addDays(a,6),this.model.From=a,this.model.To=a,this.updatePageTitle()}updatePageTitle(){const t=this.datePipe.transform(this.model.From,"dd MMM"),o=this.datePipe.transform(this.model.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${t} - ${o})`}addDays(t,o){const a=new Date(Number(t));return a.setDate(t.getDate()-o),a}getDayDiff(t,o){return(o.getTime()-t.getTime())/864e5}ngOnInit(){this.Load()}Load(){this.http.GetLoader().then(t=>{this.model=t,this.from=this.model.From.toString(),this.to=this.model.To.toString(),this.http.GetSyncInvoice(this.model).then(o=>{this.header=o.Header,this.result=o.Body})})}GetData(t){this.model.From=t.from,this.model.To=t.to,this.updatePageTitle(),this.http.GetSyncInvoice(this.model).then(o=>{this.header=o.Header,this.result=o.Body,this.from=this.model.From.toJSON(),this.to=this.model.To.toJSON()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-invoice"]],decls:7,vars:7,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],[1,"filterDate"],[3,"minDate","from","to","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,o){1&t&&(e.TgZ(0,"mainpanel",0)(1,"actions")(2,"div",1)(3,"app-datepicker-range",2),e.NdJ("dateChange",function(i){return o.GetData(i)}),e.qZA()()(),e.TgZ(4,"content")(5,"div",3),e.YNc(6,$,3,5,"div",4),e.qZA()()()),2&t&&(e.Q6J("headerTitle",o.PageTitle)("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(3),e.Q6J("minDate",o.minDate)("from",o.model.From)("to",o.model.To),e.xp6(3),e.Q6J("ngIf",o.result))},dependencies:[p.O5,c.p,T,y],styles:[".filterDate[_ngcontent-%COMP%]{position:absolute;right:10px;top:2px}"]}),n})();function K(n,r){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e._UZ(2,"app-table-report",7),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("result",t.result)("header",t.header)("from",t.from)("to",t.to)("type",3)}}let j=(()=>{class n{constructor(t,o){this.http=t,this.datePipe=o,this.model=new u;let a=new Date;this.maxDate=a,this.minDate=this.addDays(a,6),this.model.From=a,this.model.To=a,this.updatePageTitle()}updatePageTitle(){const t=this.datePipe.transform(this.model.From,"dd MMM"),o=this.datePipe.transform(this.model.To,"dd MMM yyyy");this.PageTitle=`Shipped (${t} - ${o})`}addDays(t,o){const a=new Date(Number(t));return a.setDate(t.getDate()-o),a}getDayDiff(t,o){return(o.getTime()-t.getTime())/864e5}ngOnInit(){this.Load()}Load(){this.http.GetLoader().then(t=>{this.model=t,this.from=this.model.From.toString(),this.to=this.model.To.toString(),this.http.GetSyncDelivery(this.model).then(o=>{this.header=o.Header,this.result=o.Body})})}GetData(t){this.model.From=t.from,this.model.To=t.to,this.updatePageTitle(),this.http.GetSyncDelivery(this.model).then(o=>{this.header=o.Header,this.result=o.Body,this.from=this.model.From.toJSON(),this.to=this.model.To.toJSON()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delivery"]],decls:7,vars:7,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],[1,"filterDate"],[3,"minDate","from","to","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,o){1&t&&(e.TgZ(0,"mainpanel",0)(1,"actions")(2,"div",1)(3,"app-datepicker-range",2),e.NdJ("dateChange",function(i){return o.GetData(i)}),e.qZA()()(),e.TgZ(4,"content")(5,"div",3),e.YNc(6,K,3,5,"div",4),e.qZA()()()),2&t&&(e.Q6J("headerTitle",o.PageTitle)("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(3),e.Q6J("minDate",o.minDate)("from",o.model.From)("to",o.model.To),e.xp6(3),e.Q6J("ngIf",o.result))},dependencies:[p.O5,c.p,T,y],styles:[".filterDate[_ngcontent-%COMP%]{position:absolute;right:10px;top:2px}"]}),n})();function z(n,r){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e._UZ(2,"app-table-report",7),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("result",t.result)("header",t.header)("from",t.from)("to",t.to)("type",4)}}let X=(()=>{class n{constructor(t,o){this.http=t,this.datePipe=o,this.model=new u,this.PageTitle="Completed";let a=new Date;this.minDate=this.addDays(a,6),this.model.From=a,this.model.To=a,this.updatePageTitle()}updatePageTitle(){const t=this.datePipe.transform(this.model.From,"dd MMM"),o=this.datePipe.transform(this.model.To,"dd MMM yyyy");this.PageTitle=`Completed (${t} - ${o})`}addDays(t,o){const a=new Date(Number(t));return a.setDate(t.getDate()-o),a}getDayDiff(t,o){return(o.getTime()-t.getTime())/864e5}ngOnInit(){this.Load()}Load(){this.http.GetLoader().then(t=>{this.model=t,this.from=this.model.From.toString(),this.to=this.model.To.toString(),this.http.GetSyncPayment(this.model).then(o=>{this.header=o.Header,this.result=o.Body})})}GetData(t){this.model.From=t.from,this.model.To=t.to,this.updatePageTitle(),this.http.GetSyncPayment(this.model).then(o=>{this.header=o.Header,this.result=o.Body,this.from=this.model.From.toJSON(),this.to=this.model.To.toJSON()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-payment"]],decls:7,vars:7,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],[1,"filterDate"],[3,"minDate","from","to","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,o){1&t&&(e.TgZ(0,"mainpanel",0)(1,"actions")(2,"div",1)(3,"app-datepicker-range",2),e.NdJ("dateChange",function(i){return o.GetData(i)}),e.qZA()()(),e.TgZ(4,"content")(5,"div",3),e.YNc(6,z,3,5,"div",4),e.qZA()()()),2&t&&(e.Q6J("headerTitle",o.PageTitle)("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(3),e.Q6J("minDate",o.minDate)("from",o.model.From)("to",o.model.To),e.xp6(3),e.Q6J("ngIf",o.result))},dependencies:[p.O5,c.p,T,y],styles:[".filterDate[_ngcontent-%COMP%]{position:absolute;right:10px;top:2px}"]}),n})();var _=s(8063);const V=[{path:"",component:Z,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",component:q,canActivate:[_.a],data:{title:"Sync Order"}},{path:"invoice",component:H,canActivate:[_.a],data:{title:"Sync Invoice"}},{path:"delivery",component:j,canActivate:[_.a],data:{title:"Sync Delivery"}},{path:"payment",component:X,canActivate:[_.a],data:{title:"Sync Payment"}}]}];let W=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[p.ez,h.Bz.forChild(V)]}),n})(),ee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[p.ez,v.Z,W,S.u5,c.R,A,h.Bz]}),n})()}}]);
|