dealpos 25.48.6 → 25.48.7
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/browser/{chunk-AZHKO7UJ.js → chunk-24DOPC75.js} +1 -1
- package/browser/{chunk-JTQ2DJ3S.js → chunk-26JEGQVT.js} +1 -1
- package/browser/{chunk-332USX7W.js → chunk-26TQYDK4.js} +2 -2
- package/browser/{chunk-N5RGMLD2.js → chunk-32N5MU7O.js} +1 -1
- package/browser/{chunk-XZCKUF3K.js → chunk-45Z3LEE3.js} +1 -1
- package/browser/{chunk-WT3FMUO2.js → chunk-4K7JEM4G.js} +1 -1
- package/browser/{chunk-Q3N7QXAE.js → chunk-4LWL6ONS.js} +1 -1
- package/browser/{chunk-3HW5OYRU.js → chunk-4WQO2RHS.js} +1 -1
- package/browser/{chunk-PHFXJNIZ.js → chunk-4YYRY527.js} +1 -1
- package/browser/{chunk-F7DQLZDB.js → chunk-5QX6TGZZ.js} +1 -1
- package/browser/{chunk-VPCX5SL3.js → chunk-6CHPLSZP.js} +1 -1
- package/browser/{chunk-5S3ODP72.js → chunk-6QO2C3FF.js} +2 -2
- package/browser/{chunk-BF3MVRGL.js → chunk-7ZVJ7VXX.js} +1 -1
- package/browser/{chunk-ZEUW2FNU.js → chunk-B4QLMLCR.js} +1 -1
- package/browser/{chunk-PVEBGKGT.js → chunk-BBFPPEV4.js} +1 -1
- package/browser/{chunk-ZP5JY3GX.js → chunk-BBPEWU6Z.js} +1 -1
- package/browser/{chunk-NEQHRQ56.js → chunk-BDNMLR2O.js} +1 -1
- package/browser/{chunk-O354RIVK.js → chunk-BKW3VOSO.js} +1 -1
- package/browser/{chunk-3KBVHDMW.js → chunk-BZY7P2HB.js} +1 -1
- package/browser/{chunk-WZOD5NOT.js → chunk-C7N5UCSH.js} +1 -1
- package/browser/{chunk-E4O357Z5.js → chunk-CCVWJVWL.js} +1 -1
- package/browser/{chunk-C3OTQN4T.js → chunk-CFHFWDLT.js} +1 -1
- package/browser/{chunk-TWDVQAYI.js → chunk-CSMVZBFP.js} +1 -1
- package/browser/{chunk-5MIYFDIU.js → chunk-DNVNIL4V.js} +1 -1
- package/browser/{chunk-VDEYY3ZP.js → chunk-E3YCEPQG.js} +1 -1
- package/browser/{chunk-N5DU5K47.js → chunk-F5DCGUT4.js} +1 -1
- package/browser/{chunk-VBQ3XDAA.js → chunk-FIRDK7WN.js} +1 -1
- package/browser/{chunk-ZQ3KZRWR.js → chunk-FTFKZAV7.js} +1 -1
- package/browser/{chunk-L4N6SUWU.js → chunk-FW6W4LMW.js} +1 -1
- package/browser/{chunk-TCX4QJVI.js → chunk-G5UYTGCC.js} +1 -1
- package/browser/{chunk-76AAF2XH.js → chunk-GSW52TMP.js} +1 -1
- package/browser/{chunk-7DAOMPKT.js → chunk-GZYOK3YI.js} +1 -1
- package/browser/{chunk-KOB6YLFK.js → chunk-H3DQVRZH.js} +1 -1
- package/browser/{chunk-3ZZKFV67.js → chunk-HGP4PU2C.js} +1 -1
- package/browser/{chunk-WUYZJSXG.js → chunk-HLONXK6B.js} +2 -2
- package/browser/{chunk-QEP6RSHV.js → chunk-HPWNFFWA.js} +1 -1
- package/browser/{chunk-SXXWBS4Q.js → chunk-HRBW33P2.js} +1 -1
- package/browser/{chunk-M4SJ6QNM.js → chunk-IGL2MG7A.js} +1 -1
- package/browser/{chunk-CU53YQQD.js → chunk-IJX2MHXW.js} +1 -1
- package/browser/{chunk-XIYMH3JF.js → chunk-JGGEJZCY.js} +1 -1
- package/browser/{chunk-FH4Y2WG5.js → chunk-JP5SCOH5.js} +1 -1
- package/browser/{chunk-BYKK6PJ6.js → chunk-JPTLNVPA.js} +1 -1
- package/browser/{chunk-EOCYW77B.js → chunk-K7OVJIP4.js} +1 -1
- package/browser/{chunk-D7E53ETR.js → chunk-KX6ZFCRT.js} +1 -1
- package/browser/{chunk-AV6NQKIK.js → chunk-LLHHOUKK.js} +1 -1
- package/browser/{chunk-JEKBZZ5U.js → chunk-LRIVZJGT.js} +1 -1
- package/browser/{chunk-SZY2RG5Z.js → chunk-LTXELZQP.js} +1 -1
- package/browser/{chunk-XOGIPG34.js → chunk-NAB5XIWO.js} +1 -1
- package/browser/{chunk-KGDYUUZW.js → chunk-NKA2626Z.js} +1 -1
- package/browser/{chunk-M665M6PA.js → chunk-NQWQ3LN3.js} +1 -1
- package/browser/{chunk-CUXNQSG5.js → chunk-NVSS6R54.js} +1 -1
- package/browser/{chunk-US6O4OD4.js → chunk-O5HHJLJE.js} +1 -1
- package/browser/{chunk-KHJPKMJG.js → chunk-OKVDERZX.js} +1 -1
- package/browser/{chunk-ZNU6SF5X.js → chunk-P3CFEYTN.js} +1 -1
- package/browser/{chunk-N5ZHCZLF.js → chunk-P6AYULCX.js} +2 -2
- package/browser/{chunk-SMIPNG4O.js → chunk-P6YDBFVU.js} +1 -1
- package/browser/{chunk-7YT7VTC7.js → chunk-PG3N2D4L.js} +1 -1
- package/browser/{chunk-6GBWF2IE.js → chunk-PTQDVVYA.js} +1 -1
- package/browser/{chunk-3HJZRVBA.js → chunk-PVUSJSAF.js} +2 -2
- package/browser/{chunk-QK5RV2BD.js → chunk-QEPHDLMF.js} +1 -1
- package/browser/{chunk-COQRSZM6.js → chunk-QPONSJKG.js} +1 -1
- package/browser/{chunk-ALRWC3CB.js → chunk-R4PV6QMJ.js} +1 -1
- package/browser/{chunk-W6IXGY3Q.js → chunk-RFCRDKKT.js} +1 -1
- package/browser/{chunk-T5T2JDU6.js → chunk-RXCZRYLC.js} +2 -2
- package/browser/{chunk-DMMG2LPV.js → chunk-S7F4QRIF.js} +1 -1
- package/browser/{chunk-I4ZRPW56.js → chunk-TLFU5GQZ.js} +1 -1
- package/browser/{chunk-JR4YQHON.js → chunk-TQF5QQRO.js} +1 -1
- package/browser/{chunk-X7DJSHLD.js → chunk-URSM6NHE.js} +1 -1
- package/browser/{chunk-S65DCKKO.js → chunk-V2P26PYS.js} +1 -1
- package/browser/{chunk-FPGP3VWH.js → chunk-VFENVSIS.js} +1 -1
- package/browser/{chunk-M4CNRLAE.js → chunk-VQNTRDMH.js} +1 -1
- package/browser/{chunk-MKWUM2LV.js → chunk-W7QK25BA.js} +1 -1
- package/browser/{chunk-YAHJ37F6.js → chunk-WJP7UFC3.js} +1 -1
- package/browser/{chunk-7RNMAY2Q.js → chunk-WNXX3Q6C.js} +1 -1
- package/browser/{chunk-RZGFJCUE.js → chunk-WRBDENKA.js} +1 -1
- package/browser/{chunk-DW7WC4FH.js → chunk-XCAYOVJA.js} +2 -2
- package/browser/{chunk-MHI4CB7R.js → chunk-XUW464D2.js} +1 -1
- package/browser/{chunk-QK73Q7YA.js → chunk-Y3GVSEBK.js} +1 -1
- package/browser/{chunk-N2MEEQHJ.js → chunk-YCB2TTRU.js} +1 -1
- package/browser/{chunk-IQGTPKBQ.js → chunk-YOGLS63X.js} +1 -1
- package/browser/{chunk-V7QWHGJY.js → chunk-YZEZDT4J.js} +1 -1
- package/browser/{chunk-MKNNAGYJ.js → chunk-ZJM26VQN.js} +1 -1
- package/browser/{chunk-QOGVK4JI.js → chunk-ZUCFGG4P.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-O4YWLPG2.js → main-4XJPHTNG.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Pe}from"./chunk-JEKBZZ5U.js";import{a as Ce}from"./chunk-T7XU5W5A.js";import{a as _e}from"./chunk-PVEBGKGT.js";import{a as be}from"./chunk-BT7NN7PT.js";import{b as Se,c as Me}from"./chunk-JBS5UYZC.js";import{a as de}from"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-7P3L3ODB.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-DWZ5JTI2.js";import{a as T,c as f}from"./chunk-5MIYFDIU.js";import{a as ve}from"./chunk-C3OTQN4T.js";import"./chunk-36GWLMZX.js";import{b as I}from"./chunk-YVBGB3JF.js";import{a as M}from"./chunk-WUV22SZ4.js";import{a as pe}from"./chunk-AZHKO7UJ.js";import{p as ue}from"./chunk-LGOSIAUC.js";import{$ as q,Cb as j,Db as F,E,Eb as V,Fb as h,Fc as ie,Gb as o,Hb as s,Hc as ne,Ib as p,Md as ae,Od as se,Pd as b,Qd as le,Rd as ce,Sa as Y,Sb as C,Sd as G,Ub as Z,Xa as c,d as J,da as D,eb as v,ec as K,gc as $,gd as re,hc as m,ib as W,ic as B,jb as x,jc as z,la as d,ma as y,oa as _,pa as l,tc as X,vd as oe,wb as Q,yc as ee,zc as te}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=(N=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(f);menu=Oe;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof ae),q(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var L=class e{reportService=l(_e);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-XIYMH3JF.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-EOCYW77B.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-DW7WC4FH.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-57GKJ4WM.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-3ZZKFV67.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-RZGFJCUE.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-Q3N7QXAE.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-T5T2JDU6.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-ZEUW2FNU.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-QK5RV2BD.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-N5ZHCZLF.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-WUYZJSXG.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-3HJZRVBA.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-JR4YQHON.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-76AAF2XH.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-332USX7W.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-5S3ODP72.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-O354RIVK.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-V7QWHGJY.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-TCX4QJVI.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-M4CNRLAE.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-CU53YQQD.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-MHI4CB7R.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-6GBWF2IE.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-I4ZRPW56.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-VPCX5SL3.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-XOGIPG34.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
|
|
1
|
+
import{a as Pe}from"./chunk-LRIVZJGT.js";import{a as Ce}from"./chunk-T7XU5W5A.js";import{a as _e}from"./chunk-BBFPPEV4.js";import{a as be}from"./chunk-BT7NN7PT.js";import{b as Se,c as Me}from"./chunk-JBS5UYZC.js";import{a as de}from"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-7P3L3ODB.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-DWZ5JTI2.js";import{a as T,c as f}from"./chunk-DNVNIL4V.js";import{a as ve}from"./chunk-CFHFWDLT.js";import"./chunk-36GWLMZX.js";import{b as I}from"./chunk-YVBGB3JF.js";import{a as M}from"./chunk-WUV22SZ4.js";import{a as pe}from"./chunk-24DOPC75.js";import{p as ue}from"./chunk-LGOSIAUC.js";import{$ as q,Cb as j,Db as F,E,Eb as V,Fb as h,Fc as ie,Gb as o,Hb as s,Hc as ne,Ib as p,Md as ae,Od as se,Pd as b,Qd as le,Rd as ce,Sa as Y,Sb as C,Sd as G,Ub as Z,Xa as c,d as J,da as D,eb as v,ec as K,gc as $,gd as re,hc as m,ib as W,ic as B,jb as x,jc as z,la as d,ma as y,oa as _,pa as l,tc as X,vd as oe,wb as Q,yc as ee,zc as te}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=(N=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(f);menu=Oe;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof ae),q(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var L=class e{reportService=l(_e);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-JGGEJZCY.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-K7OVJIP4.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-XCAYOVJA.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-57GKJ4WM.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-HGP4PU2C.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-WRBDENKA.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-4LWL6ONS.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-RXCZRYLC.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-B4QLMLCR.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-QEPHDLMF.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-P6AYULCX.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-HLONXK6B.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-PVUSJSAF.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-TQF5QQRO.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-GSW52TMP.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-26TQYDK4.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-6QO2C3FF.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-BKW3VOSO.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-YZEZDT4J.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-G5UYTGCC.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-VQNTRDMH.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-IJX2MHXW.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-XUW464D2.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-PTQDVVYA.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-TLFU5GQZ.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-6CHPLSZP.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-NAB5XIWO.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ce}from"./chunk-VVYRPW2Y.js";import{a as ge}from"./chunk-JXXYVM7W.js";import"./chunk-ZMJLTU5O.js";import"./chunk-BYXBJQAS.js";import{a as te}from"./chunk-QZZ2NRA3.js";import{d as ue,e as _e}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as pe,e as me}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as se,b as ce}from"./chunk-4W3WYXI2.js";import{c as de}from"./chunk-
|
|
1
|
+
import{a as Ce}from"./chunk-VVYRPW2Y.js";import{a as ge}from"./chunk-JXXYVM7W.js";import"./chunk-ZMJLTU5O.js";import"./chunk-BYXBJQAS.js";import{a as te}from"./chunk-QZZ2NRA3.js";import{d as ue,e as _e}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as pe,e as me}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as se,b as ce}from"./chunk-4W3WYXI2.js";import{c as de}from"./chunk-YOGLS63X.js";import{b as ee}from"./chunk-VXPORXGI.js";import{a as Z}from"./chunk-HRBW33P2.js";import"./chunk-BBFPPEV4.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{e as ae,f as le}from"./chunk-JP5SCOH5.js";import"./chunk-LLHHOUKK.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-CSMVZBFP.js";import{b as ie}from"./chunk-V2P26PYS.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import{F as oe,G as re}from"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import{O as ne}from"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as $}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as Q,c as z,h as K,o as J}from"./chunk-DWZ5JTI2.js";import"./chunk-DNVNIL4V.js";import"./chunk-CFHFWDLT.js";import"./chunk-36GWLMZX.js";import{b as Y}from"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-24DOPC75.js";import{s as X}from"./chunk-LGOSIAUC.js";import{Ab as g,Bb as b,Ca as H,Db as O,Eb as L,Fb as u,Fc as f,Gb as t,Gc as I,Hb as i,Hc as w,Ib as N,Lc as U,Pb as P,Qd as q,Sb as h,Sd as G,Ub as d,Xa as a,eb as M,gc as k,hc as l,ib as T,ic as S,jc as D,jd as B,mb as V,mc as C,nc as x,ob as E,oc as y,pa as F,qd as R,sd as A,ta as s,ua as c,vd as j,xc as W,yb as _,yc as v}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var xe=o=>({ID:o}),fe=()=>["/menu/Contacts/Contact/Customers/Info"],Pe=o=>({"text-danger":o});function Se(o,m){if(o&1){let e=P();t(0,"button",15),h("click",function(){s(e);let n=d();return c(n.openExportModal())}),N(1,"i",16),l(2," Export "),i()}}function De(o,m){if(o&1){let e=P();t(0,"h6"),l(1,"User"),i(),t(2,"autocompleteV2",27),y("ngModelChange",function(n){s(e);let p=d(2);return x(p.pageData.Filter.UserID,n)||(p.pageData.Filter.UserID=n),c(n)}),i()}if(o&2){let e=d(2);a(2),C("ngModel",e.pageData.Filter.UserID)}}function he(o,m){if(o&1){let e=P();t(0,"div",17)(1,"h6"),l(2,"Outlets"),i(),t(3,"outlet-selector",18),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.ListOutletID,n)||(p.pageData.Filter.ListOutletID=n),c(n)}),i(),t(4,"h6"),l(5,"Customer"),i(),t(6,"autocompleteV2",19),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.CustomerID,n)||(p.pageData.Filter.CustomerID=n),c(n)}),i(),t(7,"h6"),l(8,"From - To"),i(),t(9,"div",20)(10,"div",21)(11,"datepicker",22),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.From,n)||(p.pageData.Filter.From=n),c(n)}),i()(),t(12,"div",23)(13,"datepicker",24),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.To,n)||(p.pageData.Filter.To=n),c(n)}),i()()(),t(14,"h6"),l(15,"Printed"),i(),t(16,"radio-options",25),y("modelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.Printed,n)||(p.pageData.Filter.Printed=n),c(n)}),i(),_(17,De,3,1),t(18,"h6"),l(19,"Page Size"),i(),t(20,"div")(21,"input",26),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.RowCount,n)||(p.pageData.Filter.RowCount=n),c(n)}),i()()()}if(o&2){let e=d();a(3),C("ngModel",e.pageData.Filter.ListOutletID),u("multiple",!0),a(3),C("ngModel",e.pageData.Filter.CustomerID),a(5),u("isFloatingLabel",!1),C("date",e.pageData.Filter.From),a(2),u("isFloatingLabel",!1),C("date",e.pageData.Filter.To),a(3),C("model",e.pageData.Filter.Printed),u("options",e.pageData.Options.PrintedOptions),a(),g(e.pageData.Filter.Printed!==0?17:-1),a(4),C("ngModel",e.pageData.Filter.RowCount)}}function we(o,m){o&1&&(t(0,"th",10),l(1,"Print By"),i())}function ve(o,m){o&1&&(t(0,"th",8),l(1,"Print Date"),i())}function Fe(o,m){o&1&&(t(0,"th",11),l(1,"Time"),i())}function Me(o,m){if(o&1&&(t(0,"td"),l(1),i()),o&2){let e=d().$implicit;a(),S(e.CreatorName)}}function Ee(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"dd MMM yyyy")," ")}}function Ie(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"HH:mm")," ")}}function He(o,m){if(o&1&&(t(0,"td",32),l(1),f(2,"amountFraction"),i()),o&2){let e=d().$implicit;k(v(5,Pe,e.InvoiceAmount<0)),a(),D(" ",I(2,3,e.InvoiceAmount)," ")}}function Te(o,m){if(o&1){let e=P();t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"a",28),l(5),i()(),t(6,"td")(7,"a",29),l(8),i()(),t(9,"td"),l(10),f(11,"date"),i(),t(12,"td"),l(13),f(14,"date"),i(),_(15,Me,2,1,"td"),_(16,Ee,3,4,"td"),_(17,Ie,3,4,"td"),E(18,He,3,7,"td",30),t(19,"td",31),h("click",function(){let n=s(e).$implicit,p=d();return c(p.onInvoiceCountClick(n))}),l(20),f(21,"number"),i()()}if(o&2){let e=m.$implicit,r=d();a(2),S(e.EntityName),a(2),u("queryParams",v(21,xe,e.InvoiceID)),a(),S(e.Number),a(2),u("routerLink",W(23,fe))("queryParams",v(24,xe,e.CustomerID)),a(),D(" ",e.CustomerName," "),a(2),S(w(11,13,e.InvoiceDate,"dd MMM yyyy")),a(3),S(w(14,16,e.InvoiceDueDate,"dd MMM")),a(2),g(r.isNotUnprintedOnly()?15:-1),a(),g(r.isNotUnprintedOnly()?16:-1),a(),g(r.isNotUnprintedOnly()?17:-1),a(),u("ngIf",r.roleService.sell.PriceVisible),a(2),D(" ",I(21,19,e.Count)," ")}}var ye=class o extends Z{roleService=F(Y);dialog=F($);isNotUnprintedOnly=H(!0);constructor(m,e){super(m,e,"invoice/GetPrintHistoryList","invoiceLoader/GetPrintHistoryList")}openExportModal(){this.pageData.Filter.Export=!0,this.dialog.open(ee,{data:{title:"Print History",exportTypes:[{ID:"invoice/GetPrintHistoryList",Value:"Default",FileName:"Print History"}],filterExport:this.pageData.Filter,pagination:!0}}).afterClosed().subscribe(()=>{this.pageData.Filter.Export=!1})}onSubmit(){let m=this.pageData.Filter.Printed!==0;this.isNotUnprintedOnly.set(m),this.getListData()}onInvoiceCountClick(m){let e=`${ne.InvoicePrintHistory}/${m.InvoiceID}`;this.httpService.get(e).subscribe(r=>{this.dialog.open(Ce,{data:r?.Data})})}static \u0275fac=function(e){return new(e||o)(M(ie),M(X))};static \u0275cmp=T({type:o,selectors:[["app-print-history"]],features:[V],decls:32,vars:10,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-5"],["matSort","",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","130px"],[2,"width","150px"],[2,"width","100px"],[2,"width","90px"],[2,"width","80px"],[2,"width","30px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","30px"],[3,"jumpToPage","previousPage","nextPage","total","totalAllData","pageData"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[3,"ngModelChange","ngModel","multiple"],["name","Key","requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Search Customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],[1,"row"],[1,"col-6","pe-2"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"col-6","ps-2"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"modelChange","model","options"],["type","text","placeholder","Page Size","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["requestUrl","/API/AC/GetUserSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info",1,"link-primary","cursor-pointer",3,"queryParams"],[1,"link-primary","cursor-pointer",3,"routerLink","queryParams"],["class","text-end",3,"class",4,"ngIf"],[1,"cursor-pointer","text-end","link-primary",3,"click"],[1,"text-end"]],template:function(e,r){if(e&1){let n=P();t(0,"mainpanel-cmp",1),h("onSubmit",function(){return s(n),c(r.onSubmit())}),t(1,"actions"),_(2,Se,3,0,"button",2),i(),t(3,"filters"),E(4,he,22,11,"ng-template",null,0,U),i(),t(6,"content")(7,"div",3)(8,"table",4)(9,"thead",5)(10,"tr")(11,"th",6),l(12,"Outlet"),i(),t(13,"th",7),l(14,"Number"),i(),t(15,"th"),l(16,"Customer"),i(),t(17,"th",8),l(18,"Date"),i(),t(19,"th",9),l(20,"Due"),i(),_(21,we,2,0,"th",10),_(22,ve,2,0,"th",8),_(23,Fe,2,0,"th",11),t(24,"th",12),l(25,"Amount"),i(),t(26,"th",13),l(27,"Count"),i()()(),t(28,"tbody"),O(29,Te,22,26,"tr",null,b),i()(),t(31,"POS-complex-pagination",14),h("jumpToPage",function(){return s(n),c(r.getListData())})("previousPage",function(){return s(n),c(r.getListData())})("nextPage",function(){return s(n),c(r.getListData())}),i()()()()}e&2&&(u("pageData",r.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),a(2),g(r.roleService.global.Export?2:-1),a(19),g(r.isNotUnprintedOnly()?21:-1),a(),g(r.isNotUnprintedOnly()?22:-1),a(),g(r.isNotUnprintedOnly()?23:-1),a(6),L(r.data==null?null:r.data.Data),a(2),u("total",r.data==null||r.data.Data==null?null:r.data.Data.length)("totalAllData",r.data==null?null:r.data.ListTotal)("pageData",r.pageData))},dependencies:[j,B,le,ae,de,Q,z,K,J,_e,ue,ce,se,ge,G,q,re,oe,me,pe,A,R,te],encapsulation:2})};export{ye as PrintHistoryComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-WUV22SZ4.js";import{a as t}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-WUV22SZ4.js";import{a as t}from"./chunk-24DOPC75.js";import{la as i}from"./chunk-IEVGW2RT.js";import{a}from"./chunk-SNAKHGZS.js";var n=class o{constructor(){}inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:t.intercom.appId,name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){localStorage.setItem("Intercom",JSON.stringify(e))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!0,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!1,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return c.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}static \u0275fac=function(r){return new(r||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunk-R2GUMKAU.js";import{c as ve,j as Se,k as C,l as _e}from"./chunk-FU2ZGMX4.js";import{X as xe,Y as ge,oa as Ce,pa as F,xa as ye}from"./chunk-SLX34TWD.js";import{a as me,g as ke}from"./chunk-DWZ5JTI2.js";import{a as be,c as fe}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-R2GUMKAU.js";import{c as ve,j as Se,k as C,l as _e}from"./chunk-FU2ZGMX4.js";import{X as xe,Y as ge,oa as Ce,pa as F,xa as ye}from"./chunk-SLX34TWD.js";import{a as me,g as ke}from"./chunk-DWZ5JTI2.js";import{a as be,c as fe}from"./chunk-DNVNIL4V.js";import{a as H}from"./chunk-WUV22SZ4.js";import{$c as g,Ab as J,Ca as Y,Fb as c,Gb as m,Hb as k,Ia as h,Ib as M,Lb as E,Mb as A,Nb as O,Oc as ae,Pb as W,Pd as ue,Qd as pe,Sb as ee,Sd as he,Tc as j,Ub as u,Xa as a,Xb as R,Ya as _,Yb as te,Zb as B,_b as w,ad as se,eb as I,fc as ne,gc as l,gd as D,hc as T,ib as d,jb as K,jc as ie,jd as le,ka as P,la as $,ma as q,mb as b,na as G,nb as X,nd as de,ob as x,pa as y,ta as v,ua as S,va as p,vd as N,wb as z,wc as oe,xc as ce,ya as U,yb as Z,yc as V,zc as re}from"./chunk-IEVGW2RT.js";var Ne=e=>({"pe-none":e}),Fe=()=>["/menu/Profile/Main/My_Subscription"],Le=e=>({"text-decoration-none":e}),ze=e=>({"text-capitalize":e});function Ae(e,o){if(e&1&&(m(0,"div",1)(1,"h5",2),T(2),m(3,"a",3)(4,"u",4)(5,"span",4),T(6,"please"),k(),T(7," process your payment! "),k()()()()),e&2){let t=u();l("alert rounded-0 mb-0 text-center border-bottom "+(t.subscriptionState==null?null:t.subscriptionState.class)),a(2),ie(" ",t.subscriptionState==null?null:t.subscriptionState.message," "),a(),c("ngClass",V(7,Ne,t.isMySubscriptionMenu))("routerLink",ce(9,Fe)),a(),c("ngClass",V(10,Le,t.isMySubscriptionMenu)),a(),c("ngClass",V(12,ze,t.isNotEmpty(t.currentSubStatus)&&t.currentSubStatus!=t.subsStatusEnum.OVERDUE))}}var Ie=class e{constructor(o,t,i){this.document=o;this.router=t;this.authService=i}subscriptionStatus;subscriptionState;currentSubStatus;subsStatusEnum=be;isMySubscriptionMenu;htmlStyleElement;htmlBodyElement;ngOnInit(){this.checkMySubscriptionMenu(),this.initSubscriptionStatus(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.overrideCssStickyHeader()}checkMySubscriptionMenu(){this.isMySubscriptionMenu=!1,this.router.url.includes("/Profile/Main/My_Subscription")&&(this.isMySubscriptionMenu=!0)}isNotEmpty(o){return H.IsNotEmpty(o)}overrideCssStickyHeader(){if(H.IsNotEmpty(this.currentSubStatus)&&this.currentSubStatus!==0){let o=`.sticky-top-thead th {
|
|
2
2
|
top: 100px !important;
|
|
3
3
|
z-index: 1020;
|
|
4
4
|
}`;this.htmlBodyElement=this.document.getElementsByTagName("body")[0],this.htmlStyleElement=this.document.createElement("style"),this.htmlStyleElement.appendChild(this.document.createTextNode(o)),this.htmlBodyElement.appendChild(this.htmlStyleElement)}}initSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus(),this.subscriptionStatus=[{status:1,class:"alert-warning",message:"Your subscription is overdue. To avoid suspension, "},{status:2,class:"alert-danger",message:"Your subscription is partially suspended."},{status:3,class:"alert-danger",message:"Your subscription is suspended."}],this.subscriptionState=this.subscriptionStatus.filter(o=>o.status==this.currentSubStatus)[0]}ngOnDestroy(){this.htmlBodyElement&&this.htmlBodyElement.removeChild(this.htmlStyleElement)}static \u0275fac=function(t){return new(t||e)(I(U),I(ue),I(fe))};static \u0275cmp=d({type:e,selectors:[["subscription-alert"]],decls:1,vars:1,consts:[["role","alert",3,"class"],["role","alert"],[1,"fw-normal"],[1,"alert-link",3,"ngClass","routerLink"],[3,"ngClass"]],template:function(t,i){t&1&&Z(0,Ae,8,14,"div",0),t&2&&J((i.subscriptionState==null?null:i.subscriptionState.status)==i.currentSubStatus&&i.isNotEmpty(i.currentSubStatus)?0:-1)},dependencies:[N,D,he,pe],encapsulation:2})};var Oe=["data-p-icon","check"],Me=(()=>{class e extends L{static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=d({type:e,selectors:[["","data-p-icon","check"]],features:[b],attrs:Oe,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(p(),E(0,"path",0))},encapsulation:2})}return e})();var Re=["data-p-icon","minus"],Ee=(()=>{class e extends L{static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=d({type:e,selectors:[["","data-p-icon","minus"]],features:[b],attrs:Re,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,n){i&1&&(p(),E(0,"path",0))},encapsulation:2})}return e})();var Be=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-CFHFWDLT.js";import{a as O}from"./chunk-36GWLMZX.js";import{b as R}from"./chunk-YVBGB3JF.js";import{a as f}from"./chunk-WUV22SZ4.js";import{s as h}from"./chunk-LGOSIAUC.js";import{Ma as v,Pd as C,fa as S,la as u,oa as p,pa as g,wd as N,ya as d}from"./chunk-IEVGW2RT.js";var k=(t=>(t[t.PAID=0]="PAID",t[t.OVERDUE=1]="OVERDUE",t[t.SELL_ONLY=2]="SELL_ONLY",t[t.SUSPENDED=3]="SUSPENDED",t))(k||{});var D=(()=>{let e=class e{constructor(){this.document=g(d),this.platformId=g(v),this.documentIsAccessible=N(this.platformId)}static getCookieRegExp(i){let t=i.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return this.documentIsAccessible?(i=encodeURIComponent(i),e.getCookieRegExp(i).test(this.document.cookie)):!1}get(i){if(this.check(i)){i=encodeURIComponent(i);let n=e.getCookieRegExp(i).exec(this.document.cookie);return n?.[1]?e.safeDecodeURIComponent(n[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let i={},t=this.document;return t.cookie&&t.cookie!==""&&t.cookie.split(";").forEach(n=>{let[s,c]=n.split("=");i[e.safeDecodeURIComponent(s.replace(/^ /,""))]=e.safeDecodeURIComponent(c)}),i}set(i,t,n,s,c,l,T,b){if(!this.documentIsAccessible)return;if(typeof n=="number"||n instanceof Date||s||c||l||T){let I={expires:n,path:s,domain:c,secure:l,sameSite:T||"Lax",partitioned:b};this.set(i,t,I);return}let a=encodeURIComponent(i)+"="+encodeURIComponent(t)+";",r=n||{};if(r.expires)if(typeof r.expires=="number"){let I=new Date(new Date().getTime()+r.expires*1e3*60*60*24);a+="expires="+I.toUTCString()+";"}else a+="expires="+r.expires.toUTCString()+";";r.path&&(a+="path="+r.path+";"),r.domain&&(a+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(a+="secure;"),r.sameSite||(r.sameSite="Lax"),a+="sameSite="+r.sameSite+";",r.partitioned&&(a+="Partitioned;"),this.document.cookie=a}delete(i,t,n,s,c="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(i,"",{expires:l,path:t,domain:n,secure:s,sameSite:c})}deleteAll(i,t,n,s="Lax"){if(!this.documentIsAccessible)return;let c=this.getAll();for(let l in c)c.hasOwnProperty(l)&&this.delete(l,i,t,n,s)}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u({token:e,factory:e.\u0275fac,providedIn:"root"});let m=e;return m})();var E=class m{constructor(e,o,i,t,n,s){this.httpService=e;this.cookieService=o;this.router=i;this.roleService=t;this.intercomService=n;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(e){this._returnUrl=e}get returnUrl(){return this._returnUrl}login(e){return this.httpService.post("/api/Login/Web",e).pipe(S(o=>{this._loginResponse=o,o.Type=="geo"||o.Type=="totp"||this.saveLoginConfigToStorage(o)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let e=this.getSubscriptionStatus(),o=this.getRedirectUrlByRole();return(e==2||e==3)&&(o="/menu/Profile/Main/My_Subscription"),o}getRedirectUrlByRole(){let e,o=this.roleService;return o.dashboard.View?e="/menu/Dashboard":o.product.View?e="/menu/Products":e="/menu/Sell",e}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(e=>{localStorage.removeItem("Token"),localStorage.setItem("Token",e.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let e=localStorage.getItem("Token");if(e){let o=f.parseJwt(e),i=this.convertUnixTimesTamp(o.exp),t=new Date;if(i.getTime()-t.getTime()>0)return!1}return!0}isInRole(e){e.forEach(o=>o(this.role))}convertUnixTimesTamp(e){return new Date(e*1e3)}saveLoginConfigToStorage(e){localStorage.setItem("quantityFraction",JSON.stringify(e.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(e.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(e.UIConfig.Fraction.Amount.Minimum,e.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(e.UIConfig.Fraction.Quantity.Minimum,e.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(e?.AccountInfo)),localStorage.setItem("Token",e?.Token),localStorage.setItem("TinyMCEPlugins",e?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(e?.Intercom),localStorage.setItem("CloudinaryConfig",e?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",e?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(e?.SubscriptionStatus));let o=this.getParseToken();f.IsNotEmpty(o?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",o?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let e=localStorage.getItem("Token");return e&&!this._jwtToken&&(this._jwtToken=f.parseJwt(e)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let e=localStorage.getItem("SubscriptionStatus");return e?parseInt(e):null}static \u0275fac=function(o){return new(o||m)(p(h),p(D),p(C),p(R),p(U),p(O))};static \u0275prov=u({token:m,factory:m.\u0275fac,providedIn:"root"})};export{k as a,D as b,E as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Re,b as Fe,c as Ae,d as Oe,e as Ue}from"./chunk-DTVCBHPA.js";import{a as je}from"./chunk-5USF4MRW.js";import{d as Qe}from"./chunk-
|
|
1
|
+
import{a as Re,b as Fe,c as Ae,d as Oe,e as Ue}from"./chunk-DTVCBHPA.js";import{a as je}from"./chunk-5USF4MRW.js";import{d as Qe}from"./chunk-LLHHOUKK.js";import{a as Ge}from"./chunk-2CL5FM3P.js";import{a as ze}from"./chunk-45E6XCHN.js";import{a as $e}from"./chunk-SIDUUVNA.js";import{a as Le,d as Ne}from"./chunk-S7FOJJP2.js";import{c as ae,d as Ee,k as E,l as Me}from"./chunk-FU2ZGMX4.js";import{I as De,oa as G,pa as U,xa as re}from"./chunk-SLX34TWD.js";import{F as Ve,a as Pe,g as ke,h as Be,o as Se}from"./chunk-DWZ5JTI2.js";import{$c as T,Fb as o,Gb as b,Hb as x,Ia as J,Ib as C,Mb as N,Nb as R,Ob as z,Oc as we,Pb as v,Sb as w,Tc as ye,Ub as l,Xa as u,Xb as S,Ya as O,Yb as _e,Zb as k,_b as B,ad as j,dc as he,eb as ge,gc as f,gd as Te,hc as Z,ib as H,ic as pe,id as Ce,jb as W,jc as fe,jd as te,ka as me,la as Q,ma as K,mb as X,mc as be,md as ve,na as q,nb as Y,nc as xe,nd as ne,ob as c,oc as Ie,pa as A,ta as m,ua as d,va as V,vd as ie,wb as P,wc as ee,xa as de,yc as $}from"./chunk-IEVGW2RT.js";import{a as ue,b as ce}from"./chunk-SNAKHGZS.js";var Ke=`
|
|
2
2
|
.p-inputnumber {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
position: relative;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{O as b}from"./chunk-TEGIL5RZ.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-
|
|
1
|
+
import{O as b}from"./chunk-TEGIL5RZ.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-24DOPC75.js";import{p as d,s as h}from"./chunk-LGOSIAUC.js";import{la as n,pa as c}from"./chunk-IEVGW2RT.js";import{k as l}from"./chunk-SNAKHGZS.js";var p=class a{constructor(){}copy(t){return new Promise((o,r)=>{try{if(navigator.clipboard)navigator.clipboard.writeText(t).then(o,r);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")?o():r(new Error("Failed to copy with execCommand"))}catch(i){r(i)}finally{document.body.removeChild(e)}}}catch(e){r(e)}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};var y=class a{toastr=c(d);httpService=c(h);copyToClipBoard=c(p);createCustomerFromNewNumberAndSendReceipt(t,o,r,e,i){r==0?this.httpService.post(b.CreateCustomerInvoice,{InvoiceID:e.ObjectID,Mobile:t}).subscribe(s=>l(this,null,function*(){this.toastr.success(s.Message,m.Success),yield this.sendReceiptToWhatsapp(t,e,o,i)})):this.toastr.info("WABA is not supported yet",m.Info)}createWhatsappReceipt(t,o,r){let e=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],i=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:g,InvoiceNumber:f}=t,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:e(g),Brand:i,Currency:o,Number:f,ReceiptLink:w},r)}convertWhatsappTemplateMessage(t,o){let r=o||u?.whatsappTemplateMessage,e=["Brand","Number","Currency","Amount","ReceiptLink"],i=r;return e.forEach(s=>i=i.replace(`{${s}}`,t[s])),i}redirectToWhatsapp(t,o){let r=t;r=r[0]==="0"?`62${r.slice(1)}`:r;let e=`whatsapp://send?phone=${r}&text=${encodeURIComponent(o)}`;window.location.href=e,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let t=!1;window.onblur=function(){t=!0},setTimeout(()=>{t||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
|
|
2
2
|
`,"WhatsApp not installed")},2e3)}copyToClipboard(t){return new Promise((o,r)=>this.copyToClipBoard.copy(t).then(()=>{this.toastr.info("Message copied to clipboard. If WhatsApp doesn't show the message, please paste it manually.","Receipt Ready",{timeOut:8e3}),o("Copied to clipboard")}).catch(e=>{console.log(e),this.toastr.warning("Could not copy message to clipboard","Clipboard Error",{timeOut:8e3}),r(e)}))}sendReceiptToWhatsapp(t,o,r,e){return l(this,null,function*(){try{let i=this.createWhatsappReceipt(o,r,e);try{yield this.copyToClipboard(i)}finally{this.redirectToWhatsapp(t,i)}}catch(i){console.warn(i),this.toastr.error("Failed to send receipt")}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac})};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as W}from"./chunk-FHB5KLDR.js";import{a as B}from"./chunk-
|
|
1
|
+
import{a as V,b as W}from"./chunk-FHB5KLDR.js";import{a as B}from"./chunk-OKVDERZX.js";import{e as J,f as q}from"./chunk-JP5SCOH5.js";import"./chunk-CSMVZBFP.js";import{b as I}from"./chunk-V2P26PYS.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as E,c as P}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import"./chunk-DWZ5JTI2.js";import"./chunk-DNVNIL4V.js";import"./chunk-CFHFWDLT.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-24DOPC75.js";import{s as T}from"./chunk-LGOSIAUC.js";import{Ab as S,Fb as r,Fc as d,Gb as o,Gc as D,Hb as t,Hc as C,Ib as c,Nd as M,Pb as j,Sb as v,Ub as b,Xa as l,eb as m,hc as a,ib as f,ic as L,jc as x,mb as y,qd as _,rd as k,sd as w,ta as u,ua as g,vd as R,yb as h}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function A(p,i){if(p&1){let e=j();o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h3"),a(8,"General"),t()(),o(9,"div",6)(10,"div",2)(11,"div",7),c(12,"floatinglabel",8),d(13,"date"),t(),o(14,"div",7),c(15,"floatinglabel",9),d(16,"number"),t()(),o(17,"div",2)(18,"div",7),c(19,"floatinglabel",10),t()()()()()(),o(20,"div",2)(21,"div",7)(22,"div",4)(23,"div",11)(24,"div",12)(25,"h3"),a(26,"Request"),t()(),o(27,"div",13)(28,"button",14),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),a(29,"Copy Request to Clipboard"),t()()(),o(30,"div",6)(31,"pre",15),a(32),d(33,"json"),t()()()(),o(34,"div",7)(35,"div",4)(36,"div",11)(37,"div",12)(38,"h3"),a(39,"Response"),t()(),o(40,"div",13)(41,"button",16),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),a(42,"Copy Response to Clipboard"),t()()(),o(43,"div",6)(44,"pre",17),a(45),d(46,"json"),t()()()()()()()()}if(p&2){let e=b();r("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),r("model",C(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),r("model",C(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),r("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),x('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class p extends B{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||p)(m(I),m(T),m(M))};static \u0275cmp=f({type:p,selectors:[["app-webhook-job-logs-detail"]],features:[y],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&h(0,A,47,20,"mainpanel-cmp",0),e&2&&S(s.jobLogsDetail?0:-1)},dependencies:[R,q,J,W,V,P,E,k,w,_],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ft,b as xt}from"./chunk-ZNU6SF5X.js";import"./chunk-ZKOARDC2.js";import{a as st}from"./chunk-BQUL7SGN.js";import{a as ut}from"./chunk-7YT7VTC7.js";import{a as Ct}from"./chunk-ZMJLTU5O.js";import"./chunk-PRVQ3NAP.js";import"./chunk-BYXBJQAS.js";import{a as tt}from"./chunk-363IDTE3.js";import{d as mt,e as _t}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as lt,e as ct}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as Y}from"./chunk-N5RGMLD2.js";import{b as pt}from"./chunk-4W3WYXI2.js";import{f as dt}from"./chunk-F7DQLZDB.js";import{b as $}from"./chunk-VXPORXGI.js";import"./chunk-SXXWBS4Q.js";import"./chunk-PVEBGKGT.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as it}from"./chunk-J6M7UWVR.js";import{e as at,f as rt}from"./chunk-FH4Y2WG5.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-TWDVQAYI.js";import{b as et}from"./chunk-S65DCKKO.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as J,c as X}from"./chunk-JBS5UYZC.js";import{N as ot,g as nt}from"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as Z}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as K}from"./chunk-DWZ5JTI2.js";import"./chunk-5MIYFDIU.js";import"./chunk-C3OTQN4T.js";import"./chunk-36GWLMZX.js";import{b as U}from"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-AZHKO7UJ.js";import{s as Q}from"./chunk-LGOSIAUC.js";import{Ab as p,Bb as N,Db as W,Eb as q,Fb as u,Fc as m,Gb as a,Gc as C,Hb as n,Hc as v,Ib as w,Jd as H,Lc as j,Pb as h,Qd as z,Sb as V,Ub as c,Xa as i,eb as S,hc as r,ib as L,ic as b,jc as f,jd as A,mb as O,mc as T,nc as g,ob as D,oc as I,sd as G,ta as x,ua as y,vd as R,wb as k,xc as E,yb as d,yc as P}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],B=e=>({ID:e}),Tt=()=>["/menu/Products/Catalog/Products/Info"],gt=()=>["/menu/Products/Catalog/Variants/Info"];function It(e,l){if(e&1){let t=h();a(0,"button",13),V("click",function(){x(t);let o=c();return y(o.openExportModal())}),w(1,"i",14),r(2," Export "),n()}}function St(e,l){if(e&1){let t=h();a(0,"div",15)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",16),I("selectedOutletGroupIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",17),I("selectedCategoryIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"h6"),r(8,"Search Type"),n(),a(9,"radio-options",18),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.ProductVariantSearchMode,o)||(s.pageData.Filter.ProductVariantSearchMode=o),y(o)}),V("modelChange",function(o){x(t);let s=c();return y(s.onChangeSearchType(o))}),n(),a(10,"autocompleteV3",19),I("modelNameChange",function(o){x(t);let s=c();return g(s.productVariantModel,o)||(s.productVariantModel=o),y(o)}),n(),a(11,"h6"),r(12,"From - To"),n(),a(13,"div")(14,"datepicker",20),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(15,"div",21)(16,"datepicker",22),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(17,"h6"),r(18,"Inventory Type"),n(),a(19,"radio-options",23),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),n(),a(20,"h6"),r(21,"Movement Type"),n(),a(22,"radio-options",24),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.MovementType,o)||(s.pageData.Filter.MovementType=o),y(o)}),n()()}if(e&2){let t=c();i(3),u("showClear",!0),T("selectedOutletGroupID",t.pageData.Filter.OutletGroupID),i(3),T("selectedCategoryID",t.pageData.Filter.CategoryID),u("showClear",!0),i(3),T("model",t.pageData.Filter.ProductVariantSearchMode),u("options",t.pageData.Options.ProductVariantSearchModes),i(),T("modelName",t.productVariantModel),u("placeholder",t.pageData.Filter.ProductVariantSearchMode===0?"Search Product":"Search Variant")("isShowEmptyMessage",!0)("emptyMessage",t.pageData.Filter.ProductVariantSearchMode===0?"No Product found":"No Variant found")("tooltipMessage",t.pageData.Filter.ProductVariantSearchMode===0?"Search by product name":"Search by variant name")("label",t.pageData.Filter.ProductVariantSearchMode===0?"Product to Analyze":"Variant to Analyze")("listDataEndpoint",t.pageData.Filter.ProductVariantSearchMode===0?"/api/ac/GetProductSuggestionByCodeNName":"/API/AC/GetVariantSuggestionByCodeNName")("valueField",t.pageData.Filter.ProductVariantSearchMode===0?"Name":"Value")("showThumbnail",!0)("thumbnailKey","ImageURL"),i(4),u("isFloatingLabel",!1),T("date",t.pageData.Filter.From),u("hidelClearBtn",!0),i(2),u("isFloatingLabel",!1),T("date",t.pageData.Filter.To),u("hidelClearBtn",!0),i(3),T("model",t.pageData.Filter.InventoryType),u("options",t.pageData.Options.InventoryTypes),i(3),T("model",t.pageData.Filter.MovementType),u("options",t.pageData.Options.MovementTypes)}}function ht(e,l){e&1&&(a(0,"th",9)(1,"span",25),r(2," P.Code "),n()())}function Vt(e,l){e&1&&(a(0,"th",10),r(1,"Code"),n())}function Ft(e,l){e&1&&(a(0,"th",11)(1,"span",26),r(2," Start "),n()())}function Dt(e,l){e&1&&(a(0,"th",11)(1,"span",27),r(2," Bought "),n()())}function wt(e,l){e&1&&(a(0,"th",11)(1,"span",28),r(2," Sold "),n()())}function Et(e,l){e&1&&(a(0,"th",11)(1,"span",29),r(2," T.In "),n()())}function Pt(e,l){e&1&&(a(0,"th",11)(1,"span",30),r(2," T.Out "),n()())}function bt(e,l){e&1&&(a(0,"th",11)(1,"span",31),r(2," Adjust "),n()())}function Bt(e,l){e&1&&(a(0,"th",11)(1,"span",32),r(2," End "),n()())}function Mt(e,l){e&1&&(a(0,"th",11)(1,"span",33),r(2," Now "),n()())}function Lt(e,l){e&1&&(a(0,"th",11)(1,"span",34),r(2," % "),n()())}function Ot(e,l){if(e&1&&(a(0,"td"),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.ProductCode," ")}}function kt(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.VariantCode," ")}}function Nt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Start),i(),f(" ",C(2,2,t.Start)," ")}}function Wt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Bought)," ")}}function qt(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Sold)," ")}}function jt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredIn)," ")}}function At(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredOut)," ")}}function Gt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Adjustment),i(),f(" ",t.Adjustment<0?t.Adjustment*-1:C(2,2,t.Adjustment)," ")}}function Rt(e,l){if(e&1&&(a(0,"td",37),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.End),i(),f(" ",t.End," ")}}function Ht(e,l){if(e&1&&(a(0,"td",37),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Now),i(),f(" ",t.Now," ")}}function zt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.SellTransferInRate)," ")}}function Kt(e,l){if(e&1&&(a(0,"tr")(1,"td")(2,"a",35),r(3),n()(),a(4,"td")(5,"a",35),r(6),n()(),d(7,Ot,2,1,"td"),a(8,"td")(9,"a",35),r(10),n()(),d(11,kt,2,1,"td",36),d(12,Nt,3,4,"td",37),d(13,Wt,3,3,"td",38),d(14,qt,3,3,"td",39),d(15,jt,3,3,"td",38),d(16,At,3,3,"td",39),d(17,Gt,3,4,"td",37),d(18,Rt,2,2,"td",37),d(19,Ht,2,2,"td",37),d(20,zt,3,3,"td",36),n()),e&2){let t=l.$implicit,_=c(2);i(2),u("routerLink",E(20,vt))("queryParams",P(21,B,t.OutletID)),i(),f(" ",t.OutletName," "),i(2),u("routerLink",E(23,Tt))("queryParams",P(24,B,t.ProductID)),i(),f(" ",t.ProductName," "),i(),p(_.column.productcode.selected?7:-1),i(2),u("routerLink",E(26,gt))("queryParams",P(27,B,t.VariantID)),i(),b(t.VariantName),i(),p(_.column.code.selected?11:-1),i(),p(_.column.start.selected?12:-1),i(),p(_.column.bought.selected?13:-1),i(),p(_.column.sold.selected?14:-1),i(),p(_.column.transferredIn.selected?15:-1),i(),p(_.column.transferredOut.selected?16:-1),i(),p(_.column.adjust.selected?17:-1),i(),p(_.column.end.selected?18:-1),i(),p(_.column.now.selected?19:-1),i(),p(_.column.percent.selected?20:-1)}}function Qt(e,l){if(e&1&&W(0,Kt,21,29,"tr",null,N),e&2){let t=c();q(t.infiniteList)}}function Ut(e,l){e&1&&(a(0,"tr")(1,"td",40),w(2,"app-empty-state"),n()())}function Jt(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Start"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Start"))," ")}}function Xt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Bought"))," ")}}function Yt(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Sold"))," ")}}function Zt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredIn"))," ")}}function $t(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredOut"))," ")}}function te(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Adjustment"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Adjustment"))," ")}}function ee(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"End"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"End"))," ")}}function ie(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Now"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Now"))," ")}}function ne(e,l){if(e&1&&(a(0,"tfoot")(1,"tr",41)(2,"th",42),r(3," Total: "),n(),d(4,Jt,6,12,"td",37),d(5,Xt,4,6,"td",38),d(6,Yt,4,6,"td",39),d(7,Zt,4,6,"td",38),d(8,$t,4,6,"td",39),d(9,te,6,12,"td",37),d(10,ee,6,12,"td",37),d(11,ie,6,12,"td",37),n()()),e&2){let t=c();i(2),k("colspan",t.column.code.selected?4:3),i(2),p(t.column.start.selected?4:-1),i(),p(t.column.bought.selected?5:-1),i(),p(t.column.sold.selected?6:-1),i(),p(t.column.transferredIn.selected?7:-1),i(),p(t.column.transferredOut.selected?8:-1),i(),p(t.column.adjust.selected?9:-1),i(),p(t.column.end.selected?10:-1),i(),p(t.column.now.selected?11:-1)}}function oe(e,l){if(e&1){let t=h();a(0,"span",49),V("click",function(){x(t);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountVariantInventoryTraffic"))}),a(1,"i",50),r(2,"?"),n()()}}function ae(e,l){if(e&1&&(a(0,"span"),r(1),m(2,"number"),n()),e&2){let t=c(2);i(),b(C(2,1,t.listTotal))}}function re(e,l){if(e&1){let t=h();a(0,"div",12)(1,"div",43)(2,"div",44),r(3),m(4,"number"),D(5,oe,3,0,"span",45)(6,ae,3,3,"span",46),r(7),n()(),a(8,"a",47),V("click",function(){x(t);let o=c();return y(o.NextPage(!0))}),w(9,"i",48),r(10," Next"),n()()}if(e&2){let t=c();i(3),f(" Showing 1 - ",C(4,4,t.infiniteList.length)," of "),i(2),u("ngIf",!t.pageData.HideStoreApiCount),i(),u("ngIf",t.pageData.HideStoreApiCount),i(),f(" records ~ ",t.pageData.Filter.PageNumber," Page ")}}var yt=class e extends Y{constructor(t,_,o,s,M,F,le){super(t,_,"inventory/GetVariantInventoryTraffic","inventoryloader/GetVariantInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=o;this.pageTitle=s;this.converter=M;this.roleService=F;this.matDialog=le;this.pageTitle.setTitle(this.menuData.T)}column={productcode:{selected:!1,name:"Product Code"},code:{selected:!0,name:"Variant Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!1,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!0,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open($,{data:{title:"Variant Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportVariantInventoryTraffic",Value:"Default",FileName:"Variant Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}onChangeSearchType(t){this.pageData.Filter.ListProductID=[],this.pageData.Filter.ListVariantID=[]}get productVariantModel(){return this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID:this.pageData.Filter.ListVariantID}set productVariantModel(t){this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID=t:this.pageData.Filter.ListVariantID=t}static \u0275fac=function(_){return new(_||e)(S(et),S(Q),S(it),S(H),S(st),S(U),S(Z))};static \u0275cmp=L({type:e,selectors:[["POS-variant-inventory-traffic"]],features:[O],decls:34,vars:20,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","180px"],[2,"width","150px"],[2,"width","80px"],[1,"text-end",2,"width","130px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","SearchType",3,"modelChange","model","options"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField","showThumbnail","thumbnailKey"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","InventoryType",3,"modelChange","model","options"],["name","MovementType",3,"modelChange","model","options"],["matTooltip","Product Code","matTooltipPosition","above"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","13"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(_,o){if(_&1){let s=h();a(0,"mainpanel-cmp",1),V("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),I("filterChange",function(F){return x(s),g(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),D(2,It,3,0,"button",2),n(),a(3,"filters"),D(4,St,23,26,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th",8),r(15,"Product"),n(),d(16,ht,3,0,"th",9),a(17,"th"),r(18,"Variant"),n(),d(19,Vt,2,0,"th",10),d(20,Ft,3,0,"th",11),d(21,Dt,3,0,"th",11),d(22,wt,3,0,"th",11),d(23,Et,3,0,"th",11),d(24,Pt,3,0,"th",11),d(25,bt,3,0,"th",11),d(26,Bt,3,0,"th",11),d(27,Mt,3,0,"th",11),d(28,Lt,3,0,"th",11),n()(),a(29,"tbody"),d(30,Qt,2,0)(31,Ut,3,0,"tr"),n(),d(32,ne,12,9,"tfoot"),n()(),d(33,re,11,6,"div",12),n()()()}_&2&&(u("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),T("filter",o.pageData.Filter),u("column",o.column),i(2),u("ngIf",o.roleService.global.Export),i(14),p(o.column.productcode.selected?16:-1),i(3),p(o.column.code.selected?19:-1),i(),p(o.column.start.selected?20:-1),i(),p(o.column.bought.selected?21:-1),i(),p(o.column.sold.selected?22:-1),i(),p(o.column.transferredIn.selected?23:-1),i(),p(o.column.transferredOut.selected?24:-1),i(),p(o.column.adjust.selected?25:-1),i(),p(o.column.end.selected?26:-1),i(),p(o.column.now.selected?27:-1),i(),p(o.column.percent.selected?28:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?30:31),i(2),p(o.infiniteList&&o.infiniteList.length>0?32:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?33:-1))},dependencies:[rt,at,R,A,K,ut,dt,ft,ot,z,_t,mt,ct,lt,Ct,pt,xt,X,J,G,nt,tt],encapsulation:2})};export{yt as Variant_Inventory_TrafficComponent};
|
|
1
|
+
import{a as ft,b as xt}from"./chunk-P3CFEYTN.js";import"./chunk-ZKOARDC2.js";import{a as st}from"./chunk-BQUL7SGN.js";import{a as ut}from"./chunk-PG3N2D4L.js";import{a as Ct}from"./chunk-ZMJLTU5O.js";import"./chunk-PRVQ3NAP.js";import"./chunk-BYXBJQAS.js";import{a as tt}from"./chunk-363IDTE3.js";import{d as mt,e as _t}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as lt,e as ct}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as Y}from"./chunk-32N5MU7O.js";import{b as pt}from"./chunk-4W3WYXI2.js";import{f as dt}from"./chunk-5QX6TGZZ.js";import{b as $}from"./chunk-VXPORXGI.js";import"./chunk-HRBW33P2.js";import"./chunk-BBFPPEV4.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as it}from"./chunk-J6M7UWVR.js";import{e as at,f as rt}from"./chunk-JP5SCOH5.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-CSMVZBFP.js";import{b as et}from"./chunk-V2P26PYS.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as J,c as X}from"./chunk-JBS5UYZC.js";import{N as ot,g as nt}from"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as Z}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as K}from"./chunk-DWZ5JTI2.js";import"./chunk-DNVNIL4V.js";import"./chunk-CFHFWDLT.js";import"./chunk-36GWLMZX.js";import{b as U}from"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-24DOPC75.js";import{s as Q}from"./chunk-LGOSIAUC.js";import{Ab as p,Bb as N,Db as W,Eb as q,Fb as u,Fc as m,Gb as a,Gc as C,Hb as n,Hc as v,Ib as w,Jd as H,Lc as j,Pb as h,Qd as z,Sb as V,Ub as c,Xa as i,eb as S,hc as r,ib as L,ic as b,jc as f,jd as A,mb as O,mc as T,nc as g,ob as D,oc as I,sd as G,ta as x,ua as y,vd as R,wb as k,xc as E,yb as d,yc as P}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],B=e=>({ID:e}),Tt=()=>["/menu/Products/Catalog/Products/Info"],gt=()=>["/menu/Products/Catalog/Variants/Info"];function It(e,l){if(e&1){let t=h();a(0,"button",13),V("click",function(){x(t);let o=c();return y(o.openExportModal())}),w(1,"i",14),r(2," Export "),n()}}function St(e,l){if(e&1){let t=h();a(0,"div",15)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",16),I("selectedOutletGroupIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",17),I("selectedCategoryIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"h6"),r(8,"Search Type"),n(),a(9,"radio-options",18),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.ProductVariantSearchMode,o)||(s.pageData.Filter.ProductVariantSearchMode=o),y(o)}),V("modelChange",function(o){x(t);let s=c();return y(s.onChangeSearchType(o))}),n(),a(10,"autocompleteV3",19),I("modelNameChange",function(o){x(t);let s=c();return g(s.productVariantModel,o)||(s.productVariantModel=o),y(o)}),n(),a(11,"h6"),r(12,"From - To"),n(),a(13,"div")(14,"datepicker",20),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(15,"div",21)(16,"datepicker",22),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(17,"h6"),r(18,"Inventory Type"),n(),a(19,"radio-options",23),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),n(),a(20,"h6"),r(21,"Movement Type"),n(),a(22,"radio-options",24),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.MovementType,o)||(s.pageData.Filter.MovementType=o),y(o)}),n()()}if(e&2){let t=c();i(3),u("showClear",!0),T("selectedOutletGroupID",t.pageData.Filter.OutletGroupID),i(3),T("selectedCategoryID",t.pageData.Filter.CategoryID),u("showClear",!0),i(3),T("model",t.pageData.Filter.ProductVariantSearchMode),u("options",t.pageData.Options.ProductVariantSearchModes),i(),T("modelName",t.productVariantModel),u("placeholder",t.pageData.Filter.ProductVariantSearchMode===0?"Search Product":"Search Variant")("isShowEmptyMessage",!0)("emptyMessage",t.pageData.Filter.ProductVariantSearchMode===0?"No Product found":"No Variant found")("tooltipMessage",t.pageData.Filter.ProductVariantSearchMode===0?"Search by product name":"Search by variant name")("label",t.pageData.Filter.ProductVariantSearchMode===0?"Product to Analyze":"Variant to Analyze")("listDataEndpoint",t.pageData.Filter.ProductVariantSearchMode===0?"/api/ac/GetProductSuggestionByCodeNName":"/API/AC/GetVariantSuggestionByCodeNName")("valueField",t.pageData.Filter.ProductVariantSearchMode===0?"Name":"Value")("showThumbnail",!0)("thumbnailKey","ImageURL"),i(4),u("isFloatingLabel",!1),T("date",t.pageData.Filter.From),u("hidelClearBtn",!0),i(2),u("isFloatingLabel",!1),T("date",t.pageData.Filter.To),u("hidelClearBtn",!0),i(3),T("model",t.pageData.Filter.InventoryType),u("options",t.pageData.Options.InventoryTypes),i(3),T("model",t.pageData.Filter.MovementType),u("options",t.pageData.Options.MovementTypes)}}function ht(e,l){e&1&&(a(0,"th",9)(1,"span",25),r(2," P.Code "),n()())}function Vt(e,l){e&1&&(a(0,"th",10),r(1,"Code"),n())}function Ft(e,l){e&1&&(a(0,"th",11)(1,"span",26),r(2," Start "),n()())}function Dt(e,l){e&1&&(a(0,"th",11)(1,"span",27),r(2," Bought "),n()())}function wt(e,l){e&1&&(a(0,"th",11)(1,"span",28),r(2," Sold "),n()())}function Et(e,l){e&1&&(a(0,"th",11)(1,"span",29),r(2," T.In "),n()())}function Pt(e,l){e&1&&(a(0,"th",11)(1,"span",30),r(2," T.Out "),n()())}function bt(e,l){e&1&&(a(0,"th",11)(1,"span",31),r(2," Adjust "),n()())}function Bt(e,l){e&1&&(a(0,"th",11)(1,"span",32),r(2," End "),n()())}function Mt(e,l){e&1&&(a(0,"th",11)(1,"span",33),r(2," Now "),n()())}function Lt(e,l){e&1&&(a(0,"th",11)(1,"span",34),r(2," % "),n()())}function Ot(e,l){if(e&1&&(a(0,"td"),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.ProductCode," ")}}function kt(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.VariantCode," ")}}function Nt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Start),i(),f(" ",C(2,2,t.Start)," ")}}function Wt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Bought)," ")}}function qt(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Sold)," ")}}function jt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredIn)," ")}}function At(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredOut)," ")}}function Gt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Adjustment),i(),f(" ",t.Adjustment<0?t.Adjustment*-1:C(2,2,t.Adjustment)," ")}}function Rt(e,l){if(e&1&&(a(0,"td",37),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.End),i(),f(" ",t.End," ")}}function Ht(e,l){if(e&1&&(a(0,"td",37),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Now),i(),f(" ",t.Now," ")}}function zt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.SellTransferInRate)," ")}}function Kt(e,l){if(e&1&&(a(0,"tr")(1,"td")(2,"a",35),r(3),n()(),a(4,"td")(5,"a",35),r(6),n()(),d(7,Ot,2,1,"td"),a(8,"td")(9,"a",35),r(10),n()(),d(11,kt,2,1,"td",36),d(12,Nt,3,4,"td",37),d(13,Wt,3,3,"td",38),d(14,qt,3,3,"td",39),d(15,jt,3,3,"td",38),d(16,At,3,3,"td",39),d(17,Gt,3,4,"td",37),d(18,Rt,2,2,"td",37),d(19,Ht,2,2,"td",37),d(20,zt,3,3,"td",36),n()),e&2){let t=l.$implicit,_=c(2);i(2),u("routerLink",E(20,vt))("queryParams",P(21,B,t.OutletID)),i(),f(" ",t.OutletName," "),i(2),u("routerLink",E(23,Tt))("queryParams",P(24,B,t.ProductID)),i(),f(" ",t.ProductName," "),i(),p(_.column.productcode.selected?7:-1),i(2),u("routerLink",E(26,gt))("queryParams",P(27,B,t.VariantID)),i(),b(t.VariantName),i(),p(_.column.code.selected?11:-1),i(),p(_.column.start.selected?12:-1),i(),p(_.column.bought.selected?13:-1),i(),p(_.column.sold.selected?14:-1),i(),p(_.column.transferredIn.selected?15:-1),i(),p(_.column.transferredOut.selected?16:-1),i(),p(_.column.adjust.selected?17:-1),i(),p(_.column.end.selected?18:-1),i(),p(_.column.now.selected?19:-1),i(),p(_.column.percent.selected?20:-1)}}function Qt(e,l){if(e&1&&W(0,Kt,21,29,"tr",null,N),e&2){let t=c();q(t.infiniteList)}}function Ut(e,l){e&1&&(a(0,"tr")(1,"td",40),w(2,"app-empty-state"),n()())}function Jt(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Start"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Start"))," ")}}function Xt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Bought"))," ")}}function Yt(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Sold"))," ")}}function Zt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredIn"))," ")}}function $t(e,l){if(e&1&&(a(0,"td",39),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredOut"))," ")}}function te(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Adjustment"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Adjustment"))," ")}}function ee(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"End"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"End"))," ")}}function ie(e,l){if(e&1&&(a(0,"td",37),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Now"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Now"))," ")}}function ne(e,l){if(e&1&&(a(0,"tfoot")(1,"tr",41)(2,"th",42),r(3," Total: "),n(),d(4,Jt,6,12,"td",37),d(5,Xt,4,6,"td",38),d(6,Yt,4,6,"td",39),d(7,Zt,4,6,"td",38),d(8,$t,4,6,"td",39),d(9,te,6,12,"td",37),d(10,ee,6,12,"td",37),d(11,ie,6,12,"td",37),n()()),e&2){let t=c();i(2),k("colspan",t.column.code.selected?4:3),i(2),p(t.column.start.selected?4:-1),i(),p(t.column.bought.selected?5:-1),i(),p(t.column.sold.selected?6:-1),i(),p(t.column.transferredIn.selected?7:-1),i(),p(t.column.transferredOut.selected?8:-1),i(),p(t.column.adjust.selected?9:-1),i(),p(t.column.end.selected?10:-1),i(),p(t.column.now.selected?11:-1)}}function oe(e,l){if(e&1){let t=h();a(0,"span",49),V("click",function(){x(t);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountVariantInventoryTraffic"))}),a(1,"i",50),r(2,"?"),n()()}}function ae(e,l){if(e&1&&(a(0,"span"),r(1),m(2,"number"),n()),e&2){let t=c(2);i(),b(C(2,1,t.listTotal))}}function re(e,l){if(e&1){let t=h();a(0,"div",12)(1,"div",43)(2,"div",44),r(3),m(4,"number"),D(5,oe,3,0,"span",45)(6,ae,3,3,"span",46),r(7),n()(),a(8,"a",47),V("click",function(){x(t);let o=c();return y(o.NextPage(!0))}),w(9,"i",48),r(10," Next"),n()()}if(e&2){let t=c();i(3),f(" Showing 1 - ",C(4,4,t.infiniteList.length)," of "),i(2),u("ngIf",!t.pageData.HideStoreApiCount),i(),u("ngIf",t.pageData.HideStoreApiCount),i(),f(" records ~ ",t.pageData.Filter.PageNumber," Page ")}}var yt=class e extends Y{constructor(t,_,o,s,M,F,le){super(t,_,"inventory/GetVariantInventoryTraffic","inventoryloader/GetVariantInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=o;this.pageTitle=s;this.converter=M;this.roleService=F;this.matDialog=le;this.pageTitle.setTitle(this.menuData.T)}column={productcode:{selected:!1,name:"Product Code"},code:{selected:!0,name:"Variant Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!1,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!0,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open($,{data:{title:"Variant Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportVariantInventoryTraffic",Value:"Default",FileName:"Variant Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}onChangeSearchType(t){this.pageData.Filter.ListProductID=[],this.pageData.Filter.ListVariantID=[]}get productVariantModel(){return this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID:this.pageData.Filter.ListVariantID}set productVariantModel(t){this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID=t:this.pageData.Filter.ListVariantID=t}static \u0275fac=function(_){return new(_||e)(S(et),S(Q),S(it),S(H),S(st),S(U),S(Z))};static \u0275cmp=L({type:e,selectors:[["POS-variant-inventory-traffic"]],features:[O],decls:34,vars:20,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","180px"],[2,"width","150px"],[2,"width","80px"],[1,"text-end",2,"width","130px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","SearchType",3,"modelChange","model","options"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField","showThumbnail","thumbnailKey"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","InventoryType",3,"modelChange","model","options"],["name","MovementType",3,"modelChange","model","options"],["matTooltip","Product Code","matTooltipPosition","above"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","13"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(_,o){if(_&1){let s=h();a(0,"mainpanel-cmp",1),V("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),I("filterChange",function(F){return x(s),g(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),D(2,It,3,0,"button",2),n(),a(3,"filters"),D(4,St,23,26,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th",8),r(15,"Product"),n(),d(16,ht,3,0,"th",9),a(17,"th"),r(18,"Variant"),n(),d(19,Vt,2,0,"th",10),d(20,Ft,3,0,"th",11),d(21,Dt,3,0,"th",11),d(22,wt,3,0,"th",11),d(23,Et,3,0,"th",11),d(24,Pt,3,0,"th",11),d(25,bt,3,0,"th",11),d(26,Bt,3,0,"th",11),d(27,Mt,3,0,"th",11),d(28,Lt,3,0,"th",11),n()(),a(29,"tbody"),d(30,Qt,2,0)(31,Ut,3,0,"tr"),n(),d(32,ne,12,9,"tfoot"),n()(),d(33,re,11,6,"div",12),n()()()}_&2&&(u("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),T("filter",o.pageData.Filter),u("column",o.column),i(2),u("ngIf",o.roleService.global.Export),i(14),p(o.column.productcode.selected?16:-1),i(3),p(o.column.code.selected?19:-1),i(),p(o.column.start.selected?20:-1),i(),p(o.column.bought.selected?21:-1),i(),p(o.column.sold.selected?22:-1),i(),p(o.column.transferredIn.selected?23:-1),i(),p(o.column.transferredOut.selected?24:-1),i(),p(o.column.adjust.selected?25:-1),i(),p(o.column.end.selected?26:-1),i(),p(o.column.now.selected?27:-1),i(),p(o.column.percent.selected?28:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?30:31),i(2),p(o.infiniteList&&o.infiniteList.length>0?32:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?33:-1))},dependencies:[rt,at,R,A,K,ut,dt,ft,ot,z,_t,mt,ct,lt,Ct,pt,xt,X,J,G,nt,tt],encapsulation:2})};export{yt as Variant_Inventory_TrafficComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re,b as ae}from"./chunk-B36P4U32.js";import"./chunk-BNNKSBQ6.js";import"./chunk-4CPRMZL6.js";import{a as ne}from"./chunk-4SRWAPD4.js";import"./chunk-4OEDK7YE.js";import"./chunk-GWKBJZYT.js";import"./chunk-B5IABJO5.js";import"./chunk-FAED643P.js";import{d as te,e as ie}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{e as $}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{c as ee}from"./chunk-
|
|
1
|
+
import{a as re,b as ae}from"./chunk-B36P4U32.js";import"./chunk-BNNKSBQ6.js";import"./chunk-4CPRMZL6.js";import{a as ne}from"./chunk-4SRWAPD4.js";import"./chunk-4OEDK7YE.js";import"./chunk-GWKBJZYT.js";import"./chunk-B5IABJO5.js";import"./chunk-FAED643P.js";import{d as te,e as ie}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{e as $}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{c as ee}from"./chunk-YOGLS63X.js";import{a as K}from"./chunk-HRBW33P2.js";import"./chunk-BBFPPEV4.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as J,e as Y,f as Z}from"./chunk-JP5SCOH5.js";import"./chunk-LLHHOUKK.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-6P2ASCNY.js";import"./chunk-CSMVZBFP.js";import{b as X}from"./chunk-V2P26PYS.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import{O as F}from"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import{d as Q}from"./chunk-THT6CY5E.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import{a as z}from"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as U,h as j,o as G}from"./chunk-DWZ5JTI2.js";import"./chunk-DNVNIL4V.js";import"./chunk-CFHFWDLT.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-24DOPC75.js";import{p as H,s as q}from"./chunk-LGOSIAUC.js";import{Ab as D,Bb as L,Ca as B,Db as V,Eb as W,Fb as m,Fc as b,Gb as r,Gc as x,Hb as a,Ib as S,Lc as O,Pb as y,Sb as w,Ub as s,Xa as c,Y as k,eb as h,fa as I,hc as u,ib as A,mb as M,mc as g,nc as _,ob as E,oc as f,od as N,pa as P,ta as l,ua as p,vd as R,yb as v}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function le(o,d){if(o&1){let t=y();r(0,"button",6),w("click",function(){l(t);let e=s();return p(e.onPrint())}),S(1,"i",7),r(2,"span"),u(3,"Print"),a()()}}function pe(o,d){if(o&1){let t=y();r(0,"div",8)(1,"h6"),u(2,"Outlet"),a(),r(3,"outlet-selector",9),f("ngModelChange",function(e){l(t);let i=s();return _(i.pageData.Filter.EntityID,e)||(i.pageData.Filter.EntityID=e),p(e)}),a(),r(4,"h6"),u(5,"Sales Order Tag"),a(),r(6,"ng-select",10),f("ngModelChange",function(e){l(t);let i=s();return _(i.pageData.Filter.SalesOrderTagID,e)||(i.pageData.Filter.SalesOrderTagID=e),p(e)}),a(),r(7,"h6"),u(8,"From"),a(),r(9,"div",11)(10,"div",12)(11,"datepicker",13),f("dateChange",function(e){l(t);let i=s();return _(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),p(e)}),a()(),r(12,"div",12)(13,"app-timepicker",14),f("timeChange",function(e){l(t);let i=s();return _(i.pageData.Filter.StartTime,e)||(i.pageData.Filter.StartTime=e),p(e)}),a()()(),r(14,"h6"),u(15,"To"),a(),r(16,"div",11)(17,"div",12)(18,"datepicker",15),f("dateChange",function(e){l(t);let i=s();return _(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),p(e)}),a()(),r(19,"div",12)(20,"app-timepicker",14),f("timeChange",function(e){l(t);let i=s();return _(i.pageData.Filter.EndTime,e)||(i.pageData.Filter.EndTime=e),p(e)}),a()()()()}if(o&2){let t=s();c(3),m("accessType",2),g("ngModel",t.pageData.Filter.EntityID),c(3),m("items",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.SalesOrderTags),g("ngModel",t.pageData.Filter.SalesOrderTagID),c(5),m("isFloatingLabel",!1),g("date",t.pageData.Filter.From),m("hidelClearBtn",!0),c(2),g("time",t.pageData.Filter.StartTime),m("fullWidth",!0),c(5),m("isFloatingLabel",!1)("hidelClearBtn",!0),g("date",t.pageData.Filter.To),c(2),g("time",t.pageData.Filter.EndTime),m("fullWidth",!0)}}function me(o,d){o&1&&(r(0,"div",19),u(1,"\xA0"),a())}function se(o,d){if(o&1&&(S(0,"pos-receipt-a4",16),r(1,"div",17),S(2,"div",18),a(),v(3,me,2,0,"div",19)),o&2){let t=d.$implicit,n=d.$index,e=s(),i=s();m("data",t)("printTemplate",i.printTemplates==null?null:i.printTemplates.get(t.PrintTemplateID))("config",e.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",e.StylesSheet),c(3),D(n!==(e.Data==null?null:e.Data.length)-1?3:-1)}}function ce(o,d){o&1&&V(0,se,4,7,null,null,L),o&2&&W(d.Data)}var oe=class o extends K{constructor(t,n,e){super(t,n,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=n;this.initPrintListener()}dialogFilter=P(J);receipts$;printTemplates;invoiceIds=B([]);preInitList(){this.pageData.Filter.From=new Date,this.pageData.Filter.To=new Date,this.pageData.Filter.StartTime="00:00",this.pageData.Filter.EndTime="23:59"}onFilter(){this.receipts$=this.httpService.post(F.GetBulkPrintA4,this.pageData.Filter).pipe(I(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",z.Info):this.generatePrintTemplate(t.PrintTemplates),this.invoiceIds.set(t.Data.map(n=>n?.Invoice?.ID))}),k(1))}generatePrintTemplate(t=[]){this.printTemplates=new Map(t.map(n=>[n.ID,n]))}onNewPrint(){this.dialogFilter.openDialog()}onPrint(){window.setTimeout(function(){window.print()},500)}initPrintListener(){window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{this.invoiceIds()?.length>0&&this.httpService.post(F.UpdateLastPrintByListID,{ListID:this.invoiceIds()}).subscribe()};ngOnDestroy(){window.removeEventListener("afterprint",this.handleAfterPrint)}static \u0275fac=function(n){return new(n||o)(h(X),h(q),h(H))};static \u0275cmp=A({type:o,selectors:[["bulk-invoice-A4"]],features:[M],decls:13,vars:10,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","pageData","hideSearchBox","text","hideSearchDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],[3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(n,e){if(n&1){let i=y();r(0,"mainpanel-cmp",1),f("textChange",function(T){return l(i),_(e.pageData.Filter.Number,T)||(e.pageData.Filter.Number=T),p(T)}),w("onSubmit",function(){return l(i),p(e.onFilter())}),r(1,"actions"),v(2,le,4,0,"button",2),b(3,"async"),r(4,"button",3),w("click",function(){return l(i),p(e.onNewPrint())}),u(5,"New"),a()(),r(6,"div",4),E(7,pe,21,14,"ng-template",null,0,O),a(),r(9,"content")(10,"div",5),v(11,ce,2,0),b(12,"async"),a()()()}if(n&2){let i,C;m("pageData",e.menuData)("hideSearchBox",!0),g("text",e.pageData.Filter.Number),m("hideSearchDropdown",!0),c(2),D(((i=x(3,6,e.receipts$))==null||i.Data==null?null:i.Data.length)>0?2:-1),c(9),D((C=x(12,8,e.printTemplates&&e.receipts$))?11:-1,C)}},dependencies:[R,ae,re,Z,Y,ee,Q,ie,te,$,U,j,G,ne,N],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"]})};export{oe as BulkInvoiceA4Component};
|