dealpos 25.34.4 → 25.34.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/browser/{chunk-4BIPBWXK.js → chunk-2E2FEDGV.js} +1 -1
  2. package/browser/{chunk-HDDXTR2Z.js → chunk-2TVB2IPZ.js} +1 -1
  3. package/browser/{chunk-MNCZ2RPZ.js → chunk-35ZLE2UU.js} +1 -1
  4. package/browser/{chunk-QXI253AP.js → chunk-3DXG5C5M.js} +1 -1
  5. package/browser/{chunk-PFE3HLUT.js → chunk-3PTMGIYB.js} +2 -2
  6. package/browser/{chunk-L4CVBDO7.js → chunk-46ZGAGF5.js} +1 -1
  7. package/browser/{chunk-V4WUT4XA.js → chunk-4FKKQUCO.js} +2 -2
  8. package/browser/{chunk-YQIWKZTQ.js → chunk-4Q234WXI.js} +1 -1
  9. package/browser/chunk-4S5OFARE.js +3 -0
  10. package/browser/{chunk-Y6BWZWFM.js → chunk-6HD5GTKP.js} +1 -1
  11. package/browser/{chunk-ECA3EVX2.js → chunk-6ISB5JIM.js} +1 -1
  12. package/browser/{chunk-Q3ZDIQDI.js → chunk-6KMSJFBU.js} +1 -1
  13. package/browser/{chunk-XBRPIGRU.js → chunk-7POAHUK6.js} +1 -1
  14. package/browser/{chunk-ELDBGILD.js → chunk-7VH4SNOA.js} +1 -1
  15. package/browser/{chunk-GXMW7P6N.js → chunk-A5KYEA4V.js} +1 -1
  16. package/browser/{chunk-CK3MQEJ5.js → chunk-ACY564QZ.js} +1 -1
  17. package/browser/{chunk-MJWW5H2I.js → chunk-AQ7F6NQC.js} +1 -1
  18. package/browser/{chunk-EH44QIFA.js → chunk-AUN2RXEL.js} +1 -1
  19. package/browser/{chunk-BXF5QMVN.js → chunk-BCH7QPBR.js} +2 -2
  20. package/browser/{chunk-D6YDPUTQ.js → chunk-BJ4UMOO2.js} +1 -1
  21. package/browser/{chunk-KF4IOF5W.js → chunk-BSQFNN2Z.js} +1 -1
  22. package/browser/{chunk-RJ3CJLTB.js → chunk-CZ5TA52J.js} +1 -1
  23. package/browser/{chunk-AN6UR4L4.js → chunk-DTKX7CVM.js} +1 -1
  24. package/browser/{chunk-5QYPWYAV.js → chunk-DWDREHDP.js} +1 -1
  25. package/browser/{chunk-LLS6UIQ5.js → chunk-EUTXJIHP.js} +1 -1
  26. package/browser/{chunk-MDCN55M5.js → chunk-EZDTV4JZ.js} +1 -1
  27. package/browser/{chunk-YBVSUFBE.js → chunk-FDNGTQW3.js} +1 -1
  28. package/browser/{chunk-EGQ65RXY.js → chunk-FJKZAPB4.js} +1 -1
  29. package/browser/{chunk-MASRFCTE.js → chunk-FQLJ3GH3.js} +1 -1
  30. package/browser/{chunk-YPKWMQQP.js → chunk-FSA5XCKS.js} +1 -1
  31. package/browser/{chunk-MDZEZEYW.js → chunk-FYUQBYZZ.js} +1 -1
  32. package/browser/{chunk-P3DCBSHZ.js → chunk-G3QCYT5R.js} +2 -2
  33. package/browser/{chunk-2OYGNGHC.js → chunk-HFASEI3M.js} +1 -1
  34. package/browser/{chunk-LJLU6XYG.js → chunk-IO5A63OH.js} +2 -2
  35. package/browser/{chunk-65RMCTJI.js → chunk-JEM3RGVW.js} +1 -1
  36. package/browser/{chunk-LQRGIRSP.js → chunk-JG7XX5SD.js} +1 -1
  37. package/browser/{chunk-PWHRQQRI.js → chunk-KN4AHVNG.js} +1 -1
  38. package/browser/{chunk-4IU2ZEUU.js → chunk-KUIEYENB.js} +1 -1
  39. package/browser/{chunk-SVCXZ2PY.js → chunk-KXU337DB.js} +1 -1
  40. package/browser/{chunk-4VQ5GLNN.js → chunk-LN6CZ6Q4.js} +1 -1
  41. package/browser/{chunk-KYHS2CJZ.js → chunk-LN7YRUSX.js} +1 -1
  42. package/browser/{chunk-CDHJAJ53.js → chunk-LNA32X2K.js} +1 -1
  43. package/browser/{chunk-LWRXAK2V.js → chunk-MB5D7D7A.js} +1 -1
  44. package/browser/{chunk-P4MENAJZ.js → chunk-MHPSAHPC.js} +1 -1
  45. package/browser/{chunk-NOZ4GZOK.js → chunk-NFJHVYGZ.js} +1 -1
  46. package/browser/{chunk-JEYZ4MG7.js → chunk-O3VYDM3W.js} +1 -1
  47. package/browser/{chunk-VJ7UBEZH.js → chunk-OOEG4CXK.js} +1 -1
  48. package/browser/{chunk-M4EMBMOR.js → chunk-P6FQU6GR.js} +1 -1
  49. package/browser/{chunk-6GI4DW2S.js → chunk-PMZ3WFVN.js} +1 -1
  50. package/browser/{chunk-JI57WYRP.js → chunk-QEQSQCN6.js} +1 -1
  51. package/browser/{chunk-MEXCDOMA.js → chunk-QMWSDUTK.js} +1 -1
  52. package/browser/{chunk-OGTR6Z3J.js → chunk-QSUGHI2G.js} +1 -1
  53. package/browser/{chunk-O7SDDIM3.js → chunk-RDJZBMPC.js} +1 -1
  54. package/browser/{chunk-X6GORUFS.js → chunk-RIE6WKAW.js} +1 -1
  55. package/browser/{chunk-4YJV6ZKG.js → chunk-SCS7KWNR.js} +1 -1
  56. package/browser/{chunk-75GHVR5F.js → chunk-SIHABS6N.js} +1 -1
  57. package/browser/{chunk-AHA5FKZI.js → chunk-SNJIS6MA.js} +1 -1
  58. package/browser/{chunk-YD7P7WKB.js → chunk-STCI56JC.js} +2 -2
  59. package/browser/{chunk-ITY36HS4.js → chunk-SU4G2MVP.js} +1 -1
  60. package/browser/{chunk-2CLZ55PR.js → chunk-SVGNNFGJ.js} +1 -1
  61. package/browser/{chunk-DLZ76QDF.js → chunk-TFUIK6WN.js} +1 -1
  62. package/browser/{chunk-UII2B2EJ.js → chunk-TU66YO6N.js} +1 -1
  63. package/browser/{chunk-LKWUTMZ6.js → chunk-TZDP6R7B.js} +1 -1
  64. package/browser/{chunk-WVQHR44O.js → chunk-UCVIX3T3.js} +1 -1
  65. package/browser/{chunk-2SX5WN7D.js → chunk-UI4WTZHN.js} +1 -1
  66. package/browser/{chunk-BPQCWDU6.js → chunk-UWNQYBKP.js} +1 -1
  67. package/browser/{chunk-KXCTT4OG.js → chunk-V2Y3QBCD.js} +1 -1
  68. package/browser/{chunk-UJDXTTYT.js → chunk-XEOJXRVM.js} +1 -1
  69. package/browser/{chunk-X6A62VXJ.js → chunk-XZJLG5M4.js} +1 -1
  70. package/browser/{chunk-V3HRCU62.js → chunk-YFFOBVKI.js} +1 -1
  71. package/browser/{chunk-CQNMQTJR.js → chunk-ZHKQQXBP.js} +1 -1
  72. package/browser/index.html +2 -2
  73. package/browser/{main-H7Z7N2XV.js → main-27LMYZA7.js} +2 -2
  74. package/package.json +1 -1
  75. package/browser/chunk-QE6KT65K.js +0 -3
@@ -1 +1 @@
1
- import{a as Ce}from"./chunk-UII2B2EJ.js";import{a as Me}from"./chunk-UD6LJYER.js";import{a as Pe}from"./chunk-AN6UR4L4.js";import{a as ve}from"./chunk-AFTCPQ2Z.js";import{ga as be,ha as Se}from"./chunk-H34CGBCE.js";import{a as ue}from"./chunk-IXGNTK76.js";import"./chunk-GIKR6Y2K.js";import{D as he,b as de,h as me,o as fe}from"./chunk-K2RY2UAW.js";import{a as T,c as h}from"./chunk-KF4IOF5W.js";import{a as ge}from"./chunk-YPKWMQQP.js";import{a as M,d as I}from"./chunk-7JSHH4R2.js";import{a as ce}from"./chunk-4IU2ZEUU.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.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.getCurrentNavigation().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)(_(h),_(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=R=>{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)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{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(h);menu=_e;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 Oe=[{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(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.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}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.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 oe),H(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="//res.cloudinary.com/pos/image/upload/v1657006791/icons/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(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,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"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[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",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["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),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],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 Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().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(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);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 U=class e{reportService=l(Pe);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 je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-CDHJAJ53.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-LQRGIRSP.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-LJLU6XYG.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-Y5C2OLQY.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-YBVSUFBE.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-AHA5FKZI.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-2SX5WN7D.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-QXI253AP.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-RJ3CJLTB.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-VJ7UBEZH.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-YD7P7WKB.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-4YJV6ZKG.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-PFE3HLUT.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-MDCN55M5.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-2OYGNGHC.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-V4WUT4XA.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-P3DCBSHZ.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-SVCXZ2PY.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-Q3ZDIQDI.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-ITY36HS4.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-P4MENAJZ.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-X6GORUFS.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-BXF5QMVN.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-MASRFCTE.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-QE6KT65K.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-XBRPIGRU.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-D6YDPUTQ.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
1
+ import{a as Ce}from"./chunk-TU66YO6N.js";import{a as Me}from"./chunk-UD6LJYER.js";import{a as Pe}from"./chunk-DTKX7CVM.js";import{a as ve}from"./chunk-AFTCPQ2Z.js";import{ga as be,ha as Se}from"./chunk-H34CGBCE.js";import{a as ue}from"./chunk-IXGNTK76.js";import"./chunk-GIKR6Y2K.js";import{D as he,b as de,h as me,o as fe}from"./chunk-K2RY2UAW.js";import{a as T,c as h}from"./chunk-BSQFNN2Z.js";import{a as ge}from"./chunk-FSA5XCKS.js";import{a as M,d as I}from"./chunk-7JSHH4R2.js";import{a as ce}from"./chunk-KUIEYENB.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.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.getCurrentNavigation().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)(_(h),_(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=R=>{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)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{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(h);menu=_e;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 Oe=[{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(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.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}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.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 oe),H(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="//res.cloudinary.com/pos/image/upload/v1657006791/icons/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(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,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"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[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",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["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),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],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 Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().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(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);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 U=class e{reportService=l(Pe);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 je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-LNA32X2K.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-JG7XX5SD.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-IO5A63OH.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-Y5C2OLQY.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-FDNGTQW3.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-SNJIS6MA.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-UI4WTZHN.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-3DXG5C5M.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-CZ5TA52J.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-OOEG4CXK.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-STCI56JC.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-SCS7KWNR.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-3PTMGIYB.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-EZDTV4JZ.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-HFASEI3M.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-4FKKQUCO.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-G3QCYT5R.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-KXU337DB.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-6KMSJFBU.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-SU4G2MVP.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-MHPSAHPC.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-RIE6WKAW.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-BCH7QPBR.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-FQLJ3GH3.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-4S5OFARE.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-7POAHUK6.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-BJ4UMOO2.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
@@ -1 +1 @@
1
- import{a}from"./chunk-65RMCTJI.js";import"./chunk-YKAH43AJ.js";import"./chunk-2EJP5IOY.js";import"./chunk-OEP3LYTH.js";import"./chunk-YK5T2UAX.js";import"./chunk-3RK6DDJD.js";import"./chunk-ZW6IATXM.js";import"./chunk-DWJWACWY.js";import"./chunk-SCGWHTH7.js";import"./chunk-YZNN2TWC.js";import"./chunk-LIZXMNGH.js";import"./chunk-ZRO2AZMB.js";import"./chunk-MNCZ2RPZ.js";import"./chunk-AN6UR4L4.js";import"./chunk-VJPD6EYA.js";import"./chunk-PILVBZE6.js";import"./chunk-EXXHAXIE.js";import"./chunk-75GHVR5F.js";import"./chunk-O7SDDIM3.js";import"./chunk-L4CVBDO7.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-6Y6JUUIW.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import"./chunk-K2RY2UAW.js";import"./chunk-KF4IOF5W.js";import"./chunk-YPKWMQQP.js";import"./chunk-7JSHH4R2.js";import"./chunk-4IU2ZEUU.js";import"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";export{a as WebhookJobLogsComponent};
1
+ import{a}from"./chunk-JEM3RGVW.js";import"./chunk-YKAH43AJ.js";import"./chunk-2EJP5IOY.js";import"./chunk-OEP3LYTH.js";import"./chunk-YK5T2UAX.js";import"./chunk-3RK6DDJD.js";import"./chunk-ZW6IATXM.js";import"./chunk-DWJWACWY.js";import"./chunk-SCGWHTH7.js";import"./chunk-YZNN2TWC.js";import"./chunk-LIZXMNGH.js";import"./chunk-ZRO2AZMB.js";import"./chunk-35ZLE2UU.js";import"./chunk-DTKX7CVM.js";import"./chunk-VJPD6EYA.js";import"./chunk-PILVBZE6.js";import"./chunk-EXXHAXIE.js";import"./chunk-SIHABS6N.js";import"./chunk-RDJZBMPC.js";import"./chunk-46ZGAGF5.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-6Y6JUUIW.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import"./chunk-K2RY2UAW.js";import"./chunk-BSQFNN2Z.js";import"./chunk-FSA5XCKS.js";import"./chunk-7JSHH4R2.js";import"./chunk-KUIEYENB.js";import"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";export{a as WebhookJobLogsComponent};
@@ -1 +1 @@
1
- import{a as O}from"./chunk-6GI4DW2S.js";import{h as Q,i as z}from"./chunk-75GHVR5F.js";import"./chunk-O7SDDIM3.js";import{b as H}from"./chunk-L4CVBDO7.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import{ga as j,ha as q}from"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import{a as S}from"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as B,c as k,h as F,o as L}from"./chunk-K2RY2UAW.js";import"./chunk-KF4IOF5W.js";import"./chunk-YPKWMQQP.js";import"./chunk-7JSHH4R2.js";import"./chunk-4IU2ZEUU.js";import{$a as s,$b as b,Ib as n,Jb as o,Ma as _,Ob as w,Od as P,Qb as v,Rb as l,Vd as V,Wc as R,Yd as N,Zb as y,Zc as A,_b as D,db as g,dc as M,ec as r,jc as u,jd as E,kb as T,kc as h,lc as f,ob as W,qb as C,rc as I,va as m,vb as d,wa as c}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,x){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,x){if(p&1&&(n(0,"div",25),C(1,J,2,0,"small",26),o()),p&2){let t=l(2);s(),d("ngIf",t.textReceiptInvalidState())}}function X(p,x){if(p&1){let t=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"button",3),v("click",function(){m(t);let e=l();return c(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"input",11),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),c(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",9)(20,"div",12)(21,"input",13),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),c(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",8)(25,"div",9)(26,"div",14)(27,"input",15),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),c(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",9)(31,"div",16)(32,"input",17),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),c(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",5)(36,"div",6)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",18),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",7)(45,"div",8)(46,"div",19)(47,"div",20)(48,"textarea",21,0),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),c(e)}),v("ngModelChange",function(){m(t);let e=l();return c(e.onTextReceiptChange())}),o(),n(50,"label",22),r(51,"Customize E-Receipt Template"),o(),n(52,"div",23),C(53,K,2,1,"div",24),o()()()()()()()()()}if(p&2){let t=M(49),i=l();d("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),d("disabled",i.textReceiptInvalidState()),s(14),u("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),u("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),u("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),u("ngModel",i.formData.WhatsappConfig.From),s(16),u("ngModel",i.formData.WhatsappConfig.TextReceipt),d("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),d("ngIf",(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,S.Warning):this.toaster.success("Config has been updated succesfully!",S.Success)}static \u0275fac=function(i){return new(i||p)(g(H),g(N),g(P),g(V))};static \u0275cmp=T({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&y(Y,5),i&2){let a;D(a=b())&&(e.textReceiptCtrl=a.first)}},features:[W],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){i&1&&C(0,X,54,13,"mainpanel-cmp",1),i&2&&d("ngIf",e.formData)},dependencies:[E,R,A,z,Q,B,k,F,L,q,j],encapsulation:2})};export{U as WhatsappComponent};
1
+ import{a as O}from"./chunk-PMZ3WFVN.js";import{h as Q,i as z}from"./chunk-SIHABS6N.js";import"./chunk-RDJZBMPC.js";import{b as H}from"./chunk-46ZGAGF5.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import{ga as j,ha as q}from"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import{a as S}from"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as B,c as k,h as F,o as L}from"./chunk-K2RY2UAW.js";import"./chunk-BSQFNN2Z.js";import"./chunk-FSA5XCKS.js";import"./chunk-7JSHH4R2.js";import"./chunk-KUIEYENB.js";import{$a as s,$b as b,Ib as n,Jb as o,Ma as _,Ob as w,Od as P,Qb as v,Rb as l,Vd as V,Wc as R,Yd as N,Zb as y,Zc as A,_b as D,db as g,dc as M,ec as r,jc as u,jd as E,kb as T,kc as h,lc as f,ob as W,qb as C,rc as I,va as m,vb as d,wa as c}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,x){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,x){if(p&1&&(n(0,"div",25),C(1,J,2,0,"small",26),o()),p&2){let t=l(2);s(),d("ngIf",t.textReceiptInvalidState())}}function X(p,x){if(p&1){let t=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"button",3),v("click",function(){m(t);let e=l();return c(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"input",11),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),c(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",9)(20,"div",12)(21,"input",13),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),c(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",8)(25,"div",9)(26,"div",14)(27,"input",15),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),c(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",9)(31,"div",16)(32,"input",17),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),c(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",5)(36,"div",6)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",18),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",7)(45,"div",8)(46,"div",19)(47,"div",20)(48,"textarea",21,0),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),c(e)}),v("ngModelChange",function(){m(t);let e=l();return c(e.onTextReceiptChange())}),o(),n(50,"label",22),r(51,"Customize E-Receipt Template"),o(),n(52,"div",23),C(53,K,2,1,"div",24),o()()()()()()()()()}if(p&2){let t=M(49),i=l();d("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),d("disabled",i.textReceiptInvalidState()),s(14),u("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),u("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),u("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),u("ngModel",i.formData.WhatsappConfig.From),s(16),u("ngModel",i.formData.WhatsappConfig.TextReceipt),d("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),d("ngIf",(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,S.Warning):this.toaster.success("Config has been updated succesfully!",S.Success)}static \u0275fac=function(i){return new(i||p)(g(H),g(N),g(P),g(V))};static \u0275cmp=T({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&y(Y,5),i&2){let a;D(a=b())&&(e.textReceiptCtrl=a.first)}},features:[W],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){i&1&&C(0,X,54,13,"mainpanel-cmp",1),i&2&&d("ngIf",e.formData)},dependencies:[E,R,A,z,Q,B,k,F,L,q,j],encapsulation:2})};export{U as WhatsappComponent};
@@ -1,4 +1,4 @@
1
- import{a as Le,b as De,c as Ne,d as Pe,e as Ve}from"./chunk-VLGOLBLH.js";import{c as mt,d as bt}from"./chunk-ELDBGILD.js";import{d as Oe}from"./chunk-YKM33JR5.js";import{a as Me,b as Fe}from"./chunk-3LN2ZQ5M.js";import{a as Re,b as ft}from"./chunk-GF3LE5GG.js";import{b as ht,c as ut,d as gt}from"./chunk-75GHVR5F.js";import{a as Ee,b as ze}from"./chunk-SDIK6O2Z.js";import{A as X,C as Z,P as Ie,S as st,T as z,U as xe,a as Te,b as we,ba as ct,d as Ce,fa as dt,ja as ae,ka as ke,n as ot,o as ve,p as nt,r as j,s as S,sa as pt,t as re,u as Se,y as rt,z as at}from"./chunk-4SXNNKVU.js";import{D as lt}from"./chunk-K2RY2UAW.js";import{$a as s,$b as u,Fa as C,Fc as oe,Ga as W,Ib as T,Jb as v,Ka as he,Kb as k,Kc as be,Lb as P,Mb as V,Mc as _,Nb as b,Nc as F,Ob as le,Pa as je,Qb as O,Rb as g,Wc as _e,Yb as f,Yc as tt,Zb as I,Zc as A,_b as h,ad as ye,bd as U,cb as qe,d as K,db as x,dc as me,ja as de,jd as it,ka as Ae,kb as B,kd as ne,lb as Ge,mb as ue,na as G,ob as ge,pc as Xe,qb as d,qc as Ze,rc as L,sc as Q,ua as Ue,ub as $,uc as Ye,va as te,vb as a,wa as ie,wb as We,wc as et,xb as Je,yb as fe,za as pe,zb as J}from"./chunk-4JRXN7L6.js";import{a as H,b as Qe}from"./chunk-7DCB7DB2.js";var Ct=["colgroup"],vt=["caption"],St=["header"],It=["body"],xt=["footer"],kt=["summary"],Et=["emptymessage"],zt=["paginatorleft"],Lt=["paginatorright"],Dt=["paginatordropdownitem"],Mt=["frozenheader"],Rt=["frozenbody"],Nt=["frozenfooter"],Pt=["frozencolgroup"],Vt=["loadingicon"],Ft=["reorderindicatorupicon"],Ot=["reorderindicatordownicon"],Ht=["sorticon"],Kt=["checkboxicon"],Bt=["headercheckboxicon"],$t=["togglericon"],Qt=["paginatorfirstpagelinkicon"],At=["paginatorlastpagelinkicon"],Ut=["paginatorpreviouspagelinkicon"],jt=["paginatornextpagelinkicon"],qt=["loader"],Gt=["container"],Wt=["resizeHelper"],Jt=["reorderIndicatorUp"],Xt=["reorderIndicatorDown"],Zt=["table"],Yt=["scrollableView"],ei=["scrollableFrozenView"],ti=(t,r,e,l,i,o)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":l,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":o}),N=t=>({$implicit:t}),ii=(t,r)=>({left:t,width:r}),li=t=>({width:t});function oi(t,r){if(t&1&&k(0,"i"),t&2){let e=g(2);J("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function ni(t,r){t&1&&k(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function ri(t,r){}function ai(t,r){t&1&&d(0,ri,0,0,"ng-template")}function si(t,r){if(t&1&&(T(0,"span",25),d(1,ai,1,0,null,26),v()),t&2){let e=g(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ci(t,r){if(t&1&&(P(0),d(1,ni,1,2,"SpinnerIcon",22)(2,si,2,1,"span",23),V()),t&2){let e=g(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function di(t,r){if(t&1&&(T(0,"div",18)(1,"div",19),d(2,oi,1,2,"i",20)(3,ci,3,2,"ng-container",21),v()()),t&2){let e=g();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function pi(t,r){t&1&&b(0)}function hi(t,r){if(t&1&&(T(0,"div",27),d(1,pi,1,0,"ng-container",26),v()),t&2){let e=g();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function ui(t,r){t&1&&b(0)}function gi(t,r){if(t&1&&d(0,ui,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function fi(t,r){t&1&&d(0,gi,1,1,"ng-template",29)}function mi(t,r){t&1&&b(0)}function bi(t,r){if(t&1&&d(0,mi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function _i(t,r){t&1&&d(0,bi,1,1,"ng-template",30)}function yi(t,r){t&1&&b(0)}function Ti(t,r){if(t&1&&d(0,yi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function wi(t,r){t&1&&d(0,Ti,1,1,"ng-template",31)}function Ci(t,r){t&1&&b(0)}function vi(t,r){if(t&1&&d(0,Ci,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Si(t,r){t&1&&d(0,vi,1,1,"ng-template",32)}function Ii(t,r){if(t&1){let e=le();T(0,"p-paginator",28),O("onPageChange",function(i){te(e);let o=g();return ie(o.onPageChange(i))}),d(1,fi,1,0,null,21)(2,_i,1,0,null,21)(3,wi,1,0,null,21)(4,Si,1,0,null,21),v()}if(t&2){let e,l,i,o=g();a("rows",o.rows)("first",o.first)("totalRecords",o.totalRecords)("pageLinkSize",o.pageLinks)("alwaysShow",o.alwaysShowPaginator)("rowsPerPageOptions",o.rowsPerPageOptions)("templateLeft",(e=o.paginatorLeftTemplate)!==null&&e!==void 0?e:o._paginatorLeftTemplate)("templateRight",(l=o.paginatorRightTemplate)!==null&&l!==void 0?l:o._paginatorRightTemplate)("dropdownAppendTo",o.paginatorDropdownAppendTo)("currentPageReportTemplate",o.currentPageReportTemplate)("showFirstLastIcon",o.showFirstLastIcon)("dropdownItemTemplate",(i=o.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:o._paginatorDropdownItemTemplate)("showCurrentPageReport",o.showCurrentPageReport)("showJumpToPageDropdown",o.showJumpToPageDropdown)("showPageLinks",o.showPageLinks)("styleClass",o.paginatorStyleClass)("locale",o.paginatorLocale),s(),a("ngIf",o.paginatorFirstPageLinkIconTemplate||o._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",o.paginatorPreviousPageLinkIconTemplate||o._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",o.paginatorLastPageLinkIconTemplate||o._paginatorLastPageLinkIconTemplate),s(),a("ngIf",o.paginatorNextPageLinkIconTemplate||o._paginatorNextPageLinkIconTemplate)}}function xi(t,r){t&1&&b(0)}function ki(t,r){t&1&&b(0)}function Ei(t,r){t&1&&b(0)}function zi(t,r){if(t&1&&(T(0,"div",33)(1,"table",34,1),d(3,xi,1,0,"ng-container",35),T(4,"thead",36),d(5,ki,1,0,"ng-container",35),v(),k(6,"tbody",37),T(7,"tfoot",38),d(8,Ei,1,0,"ng-container",35),v()()()),t&2){let e,l=g();s(),a("ngClass",l.tableStyleClass)("ngStyle",l.tableStyle),s(2),a("ngTemplateOutlet",l.colGroupTemplate||l._colGroupTemplate)("ngTemplateOutletContext",L(10,N,l.columns)),s(2),a("ngTemplateOutlet",l.headerTemplate||l._headerTemplate)("ngTemplateOutletContext",L(12,N,l.columns)),s(),a("pTreeTableBody",l.columns)("pTreeTableBodyTemplate",(e=l.bodyTemplate)!==null&&e!==void 0?e:l._bodyTemplate),s(2),a("ngTemplateOutlet",l.footerTemplate||l._footerTemplate)("ngTemplateOutletContext",L(14,N,l.columns))}}function Li(t,r){if(t&1&&k(0,"div",42,3),t&2){let e=g(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",L(4,li,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function Di(t,r){if(t&1&&(T(0,"div",39),d(1,Li,2,6,"div",40),k(2,"div",41,2),v()),t&2){let e=g();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",Q(5,ii,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Mi(t,r){t&1&&b(0)}function Ri(t,r){if(t&1&&d(0,Mi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Ni(t,r){t&1&&d(0,Ri,1,1,"ng-template",29)}function Pi(t,r){t&1&&b(0)}function Vi(t,r){if(t&1&&d(0,Pi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Fi(t,r){t&1&&d(0,Vi,1,1,"ng-template",30)}function Oi(t,r){t&1&&b(0)}function Hi(t,r){if(t&1&&d(0,Oi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Ki(t,r){t&1&&d(0,Hi,1,1,"ng-template",31)}function Bi(t,r){t&1&&b(0)}function $i(t,r){if(t&1&&d(0,Bi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Qi(t,r){t&1&&d(0,$i,1,1,"ng-template",32)}function Ai(t,r){if(t&1){let e=le();T(0,"p-paginator",43),O("onPageChange",function(i){te(e);let o=g();return ie(o.onPageChange(i))}),d(1,Ni,1,0,null,21)(2,Fi,1,0,null,21)(3,Ki,1,0,null,21)(4,Qi,1,0,null,21),v()}if(t&2){let e,l,i,o=g();a("rows",o.rows)("first",o.first)("totalRecords",o.totalRecords)("pageLinkSize",o.pageLinks)("alwaysShow",o.alwaysShowPaginator)("rowsPerPageOptions",o.rowsPerPageOptions)("templateLeft",(e=o.paginatorLeftTemplate)!==null&&e!==void 0?e:o._paginatorLeftTemplate)("templateRight",(l=o.paginatorRightTemplate)!==null&&l!==void 0?l:o._paginatorRightTemplate)("dropdownAppendTo",o.paginatorDropdownAppendTo)("currentPageReportTemplate",o.currentPageReportTemplate)("showFirstLastIcon",o.showFirstLastIcon)("dropdownItemTemplate",(i=o.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:o._paginatorDropdownItemTemplate)("showCurrentPageReport",o.showCurrentPageReport)("showJumpToPageDropdown",o.showJumpToPageDropdown)("showPageLinks",o.showPageLinks)("styleClass",o.paginatorStyleClass)("locale",o.paginatorLocale),s(),a("ngIf",o.paginatorFirstPageLinkIconTemplate||o._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",o.paginatorPreviousPageLinkIconTemplate||o._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",o.paginatorLastPageLinkIconTemplate||o._paginatorLastPageLinkIconTemplate),s(),a("ngIf",o.paginatorNextPageLinkIconTemplate||o._paginatorNextPageLinkIconTemplate)}}function Ui(t,r){t&1&&b(0)}function ji(t,r){if(t&1&&(T(0,"div",44),d(1,Ui,1,0,"ng-container",26),v()),t&2){let e=g();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function qi(t,r){t&1&&k(0,"div",45,4)}function Gi(t,r){t&1&&k(0,"ArrowDownIcon")}function Wi(t,r){}function Ji(t,r){t&1&&d(0,Wi,0,0,"ng-template")}function Xi(t,r){if(t&1&&(T(0,"span",46,5),d(2,Gi,1,0,"ArrowDownIcon",21)(3,Ji,1,0,null,26),v()),t&2){let e=g();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Zi(t,r){t&1&&k(0,"ArrowUpIcon")}function Yi(t,r){}function el(t,r){t&1&&d(0,Yi,0,0,"ng-template")}function tl(t,r){if(t&1&&(T(0,"span",47,6),d(2,Zi,1,0,"ArrowUpIcon",21)(3,el,1,0,null,26),v()),t&2){let e=g();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var il=["pTreeTableBody",""],ll=(t,r,e,l)=>({$implicit:t,node:r,rowData:e,columns:l}),ol=(t,r)=>({$implicit:t,frozen:r});function nl(t,r){t&1&&b(0)}function rl(t,r){if(t&1&&(P(0),d(1,nl,1,0,"ng-container",2),V()),t&2){let e=g().$implicit,l=g();s(),a("ngTemplateOutlet",l.template)("ngTemplateOutletContext",Ye(2,ll,e,e.node,e.node.data,l.columns))}}function al(t,r){if(t&1&&d(0,rl,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function sl(t,r){t&1&&b(0)}function cl(t,r){if(t&1&&(P(0),d(1,sl,1,0,"ng-container",2),V()),t&2){let e=g();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",Q(2,ol,e.columns,e.frozen))}}var dl=["scrollHeader"],pl=["scrollHeaderBox"],hl=["scrollBody"],ul=["scrollTable"],gl=["loadingTable"],fl=["scrollFooter"],ml=["scrollFooterBox"],bl=["scrollableAligner"],_l=["scroller"],yl=["ttScrollableView",""],Tl=t=>({height:t}),yt=(t,r)=>({$implicit:t,options:r}),wl=t=>({options:t}),Cl=(t,r)=>({"max-height":t,"overflow-y":r}),vl=()=>({});function Sl(t,r){t&1&&b(0)}function Il(t,r){t&1&&b(0)}function xl(t,r){t&1&&b(0)}function kl(t,r){if(t&1&&d(0,xl,1,0,"ng-container",14),t&2){let e=r.$implicit,l=r.options;g(2);let i=me(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",Q(2,yt,e,l))}}function El(t,r){t&1&&b(0)}function zl(t,r){if(t&1&&d(0,El,1,0,"ng-container",14),t&2){let e=r.options,l=g(3);a("ngTemplateOutlet",l.tt.loaderTemplate||l.tt._loaderTemplate)("ngTemplateOutletContext",L(2,wl,e))}}function Ll(t,r){t&1&&(P(0),d(1,zl,1,4,"ng-template",null,5,oe),V())}function Dl(t,r){if(t&1){let e=le();T(0,"p-scroller",19,3),O("onLazyLoad",function(i){te(e);let o=g();return ie(o.tt.onLazyItemLoad(i))}),d(2,kl,1,5,"ng-template",null,4,oe)(4,Ll,3,0,"ng-container",17),v()}if(t&2){let e=g();fe(L(8,Tl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Ml(t,r){t&1&&b(0)}function Rl(t,r){if(t&1&&(P(0),T(1,"div",20,6),d(3,Ml,1,0,"ng-container",14),v(),V()),t&2){let e=g(),l=me(11);s(),a("ngStyle",Q(3,Cl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",l)("ngTemplateOutletContext",Q(7,yt,e.serializedValue,Ze(6,vl)))}}function Nl(t,r){t&1&&b(0)}function Pl(t,r){t&1&&k(0,"div",24,8)}function Vl(t,r){if(t&1&&(T(0,"table",21,7),d(2,Nl,1,0,"ng-container",14),k(3,"tbody",22),v(),d(4,Pl,2,0,"div",23)),t&2){let e=r.$implicit,l=r.options,i=g();fe(l.contentStyle),J(i.tt.tableStyleClass),a("ngClass",l.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",L(13,N,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Fl(t,r){t&1&&b(0)}function Ol(t,r){t&1&&b(0)}function Hl(t,r){if(t&1&&(T(0,"div",25,9)(2,"div",26,10)(4,"table",27),d(5,Fl,1,0,"ng-container",14),T(6,"tfoot",28),d(7,Ol,1,0,"ng-container",14),v()()()()),t&2){let e=g();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",L(6,N,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",L(8,N,e.columns))}}function Kl(t,r){t&1&&k(0,"SortAltIcon",3),t&2&&a("styleClass","p-sortable-column-icon")}function Bl(t,r){t&1&&k(0,"SortAmountUpAltIcon",3),t&2&&a("styleClass","p-sortable-column-icon")}function $l(t,r){t&1&&k(0,"SortAmountDownIcon",3),t&2&&a("styleClass","p-sortable-column-icon")}function Ql(t,r){if(t&1&&(P(0),d(1,Kl,1,1,"SortAltIcon",2)(2,Bl,1,1,"SortAmountUpAltIcon",2)(3,$l,1,1,"SortAmountDownIcon",2),V()),t&2){let e=g();s(),a("ngIf",e.sortOrder===0),s(),a("ngIf",e.sortOrder===1),s(),a("ngIf",e.sortOrder===-1)}}function Al(t,r){}function Ul(t,r){t&1&&d(0,Al,0,0,"ng-template")}function jl(t,r){if(t&1&&(T(0,"span",4),d(1,Ul,1,0,null,5),v()),t&2){let e=g();s(),a("ngTemplateOutlet",e.tt.sortIconTemplate||e.tt._sortIconTemplate)("ngTemplateOutletContext",L(2,N,e.sortOrder))}}function ql(t,r){t&1&&k(0,"ChevronDownIcon"),t&2&&$("aria-hidden",!0)}function Gl(t,r){t&1&&k(0,"ChevronRightIcon"),t&2&&$("aria-hidden",!0)}function Wl(t,r){if(t&1&&(P(0),d(1,ql,1,1,"ChevronDownIcon",1)(2,Gl,1,1,"ChevronRightIcon",1),V()),t&2){let e=g();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Jl(t,r){}function Xl(t,r){t&1&&d(0,Jl,0,0,"ng-template")}var Zl=({dt:t})=>`
1
+ import{a as Le,b as De,c as Ne,d as Pe,e as Ve}from"./chunk-VLGOLBLH.js";import{c as mt,d as bt}from"./chunk-7VH4SNOA.js";import{d as Oe}from"./chunk-YKM33JR5.js";import{a as Me,b as Fe}from"./chunk-3LN2ZQ5M.js";import{a as Re,b as ft}from"./chunk-GF3LE5GG.js";import{b as ht,c as ut,d as gt}from"./chunk-SIHABS6N.js";import{a as Ee,b as ze}from"./chunk-SDIK6O2Z.js";import{A as X,C as Z,P as Ie,S as st,T as z,U as xe,a as Te,b as we,ba as ct,d as Ce,fa as dt,ja as ae,ka as ke,n as ot,o as ve,p as nt,r as j,s as S,sa as pt,t as re,u as Se,y as rt,z as at}from"./chunk-4SXNNKVU.js";import{D as lt}from"./chunk-K2RY2UAW.js";import{$a as s,$b as u,Fa as C,Fc as oe,Ga as W,Ib as T,Jb as v,Ka as he,Kb as k,Kc as be,Lb as P,Mb as V,Mc as _,Nb as b,Nc as F,Ob as le,Pa as je,Qb as O,Rb as g,Wc as _e,Yb as f,Yc as tt,Zb as I,Zc as A,_b as h,ad as ye,bd as U,cb as qe,d as K,db as x,dc as me,ja as de,jd as it,ka as Ae,kb as B,kd as ne,lb as Ge,mb as ue,na as G,ob as ge,pc as Xe,qb as d,qc as Ze,rc as L,sc as Q,ua as Ue,ub as $,uc as Ye,va as te,vb as a,wa as ie,wb as We,wc as et,xb as Je,yb as fe,za as pe,zb as J}from"./chunk-4JRXN7L6.js";import{a as H,b as Qe}from"./chunk-7DCB7DB2.js";var Ct=["colgroup"],vt=["caption"],St=["header"],It=["body"],xt=["footer"],kt=["summary"],Et=["emptymessage"],zt=["paginatorleft"],Lt=["paginatorright"],Dt=["paginatordropdownitem"],Mt=["frozenheader"],Rt=["frozenbody"],Nt=["frozenfooter"],Pt=["frozencolgroup"],Vt=["loadingicon"],Ft=["reorderindicatorupicon"],Ot=["reorderindicatordownicon"],Ht=["sorticon"],Kt=["checkboxicon"],Bt=["headercheckboxicon"],$t=["togglericon"],Qt=["paginatorfirstpagelinkicon"],At=["paginatorlastpagelinkicon"],Ut=["paginatorpreviouspagelinkicon"],jt=["paginatornextpagelinkicon"],qt=["loader"],Gt=["container"],Wt=["resizeHelper"],Jt=["reorderIndicatorUp"],Xt=["reorderIndicatorDown"],Zt=["table"],Yt=["scrollableView"],ei=["scrollableFrozenView"],ti=(t,r,e,l,i,o)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":l,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":o}),N=t=>({$implicit:t}),ii=(t,r)=>({left:t,width:r}),li=t=>({width:t});function oi(t,r){if(t&1&&k(0,"i"),t&2){let e=g(2);J("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function ni(t,r){t&1&&k(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function ri(t,r){}function ai(t,r){t&1&&d(0,ri,0,0,"ng-template")}function si(t,r){if(t&1&&(T(0,"span",25),d(1,ai,1,0,null,26),v()),t&2){let e=g(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ci(t,r){if(t&1&&(P(0),d(1,ni,1,2,"SpinnerIcon",22)(2,si,2,1,"span",23),V()),t&2){let e=g(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function di(t,r){if(t&1&&(T(0,"div",18)(1,"div",19),d(2,oi,1,2,"i",20)(3,ci,3,2,"ng-container",21),v()()),t&2){let e=g();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function pi(t,r){t&1&&b(0)}function hi(t,r){if(t&1&&(T(0,"div",27),d(1,pi,1,0,"ng-container",26),v()),t&2){let e=g();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function ui(t,r){t&1&&b(0)}function gi(t,r){if(t&1&&d(0,ui,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function fi(t,r){t&1&&d(0,gi,1,1,"ng-template",29)}function mi(t,r){t&1&&b(0)}function bi(t,r){if(t&1&&d(0,mi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function _i(t,r){t&1&&d(0,bi,1,1,"ng-template",30)}function yi(t,r){t&1&&b(0)}function Ti(t,r){if(t&1&&d(0,yi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function wi(t,r){t&1&&d(0,Ti,1,1,"ng-template",31)}function Ci(t,r){t&1&&b(0)}function vi(t,r){if(t&1&&d(0,Ci,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Si(t,r){t&1&&d(0,vi,1,1,"ng-template",32)}function Ii(t,r){if(t&1){let e=le();T(0,"p-paginator",28),O("onPageChange",function(i){te(e);let o=g();return ie(o.onPageChange(i))}),d(1,fi,1,0,null,21)(2,_i,1,0,null,21)(3,wi,1,0,null,21)(4,Si,1,0,null,21),v()}if(t&2){let e,l,i,o=g();a("rows",o.rows)("first",o.first)("totalRecords",o.totalRecords)("pageLinkSize",o.pageLinks)("alwaysShow",o.alwaysShowPaginator)("rowsPerPageOptions",o.rowsPerPageOptions)("templateLeft",(e=o.paginatorLeftTemplate)!==null&&e!==void 0?e:o._paginatorLeftTemplate)("templateRight",(l=o.paginatorRightTemplate)!==null&&l!==void 0?l:o._paginatorRightTemplate)("dropdownAppendTo",o.paginatorDropdownAppendTo)("currentPageReportTemplate",o.currentPageReportTemplate)("showFirstLastIcon",o.showFirstLastIcon)("dropdownItemTemplate",(i=o.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:o._paginatorDropdownItemTemplate)("showCurrentPageReport",o.showCurrentPageReport)("showJumpToPageDropdown",o.showJumpToPageDropdown)("showPageLinks",o.showPageLinks)("styleClass",o.paginatorStyleClass)("locale",o.paginatorLocale),s(),a("ngIf",o.paginatorFirstPageLinkIconTemplate||o._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",o.paginatorPreviousPageLinkIconTemplate||o._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",o.paginatorLastPageLinkIconTemplate||o._paginatorLastPageLinkIconTemplate),s(),a("ngIf",o.paginatorNextPageLinkIconTemplate||o._paginatorNextPageLinkIconTemplate)}}function xi(t,r){t&1&&b(0)}function ki(t,r){t&1&&b(0)}function Ei(t,r){t&1&&b(0)}function zi(t,r){if(t&1&&(T(0,"div",33)(1,"table",34,1),d(3,xi,1,0,"ng-container",35),T(4,"thead",36),d(5,ki,1,0,"ng-container",35),v(),k(6,"tbody",37),T(7,"tfoot",38),d(8,Ei,1,0,"ng-container",35),v()()()),t&2){let e,l=g();s(),a("ngClass",l.tableStyleClass)("ngStyle",l.tableStyle),s(2),a("ngTemplateOutlet",l.colGroupTemplate||l._colGroupTemplate)("ngTemplateOutletContext",L(10,N,l.columns)),s(2),a("ngTemplateOutlet",l.headerTemplate||l._headerTemplate)("ngTemplateOutletContext",L(12,N,l.columns)),s(),a("pTreeTableBody",l.columns)("pTreeTableBodyTemplate",(e=l.bodyTemplate)!==null&&e!==void 0?e:l._bodyTemplate),s(2),a("ngTemplateOutlet",l.footerTemplate||l._footerTemplate)("ngTemplateOutletContext",L(14,N,l.columns))}}function Li(t,r){if(t&1&&k(0,"div",42,3),t&2){let e=g(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",L(4,li,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function Di(t,r){if(t&1&&(T(0,"div",39),d(1,Li,2,6,"div",40),k(2,"div",41,2),v()),t&2){let e=g();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",Q(5,ii,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Mi(t,r){t&1&&b(0)}function Ri(t,r){if(t&1&&d(0,Mi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Ni(t,r){t&1&&d(0,Ri,1,1,"ng-template",29)}function Pi(t,r){t&1&&b(0)}function Vi(t,r){if(t&1&&d(0,Pi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Fi(t,r){t&1&&d(0,Vi,1,1,"ng-template",30)}function Oi(t,r){t&1&&b(0)}function Hi(t,r){if(t&1&&d(0,Oi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Ki(t,r){t&1&&d(0,Hi,1,1,"ng-template",31)}function Bi(t,r){t&1&&b(0)}function $i(t,r){if(t&1&&d(0,Bi,1,0,"ng-container",26),t&2){let e=g(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Qi(t,r){t&1&&d(0,$i,1,1,"ng-template",32)}function Ai(t,r){if(t&1){let e=le();T(0,"p-paginator",43),O("onPageChange",function(i){te(e);let o=g();return ie(o.onPageChange(i))}),d(1,Ni,1,0,null,21)(2,Fi,1,0,null,21)(3,Ki,1,0,null,21)(4,Qi,1,0,null,21),v()}if(t&2){let e,l,i,o=g();a("rows",o.rows)("first",o.first)("totalRecords",o.totalRecords)("pageLinkSize",o.pageLinks)("alwaysShow",o.alwaysShowPaginator)("rowsPerPageOptions",o.rowsPerPageOptions)("templateLeft",(e=o.paginatorLeftTemplate)!==null&&e!==void 0?e:o._paginatorLeftTemplate)("templateRight",(l=o.paginatorRightTemplate)!==null&&l!==void 0?l:o._paginatorRightTemplate)("dropdownAppendTo",o.paginatorDropdownAppendTo)("currentPageReportTemplate",o.currentPageReportTemplate)("showFirstLastIcon",o.showFirstLastIcon)("dropdownItemTemplate",(i=o.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:o._paginatorDropdownItemTemplate)("showCurrentPageReport",o.showCurrentPageReport)("showJumpToPageDropdown",o.showJumpToPageDropdown)("showPageLinks",o.showPageLinks)("styleClass",o.paginatorStyleClass)("locale",o.paginatorLocale),s(),a("ngIf",o.paginatorFirstPageLinkIconTemplate||o._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",o.paginatorPreviousPageLinkIconTemplate||o._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",o.paginatorLastPageLinkIconTemplate||o._paginatorLastPageLinkIconTemplate),s(),a("ngIf",o.paginatorNextPageLinkIconTemplate||o._paginatorNextPageLinkIconTemplate)}}function Ui(t,r){t&1&&b(0)}function ji(t,r){if(t&1&&(T(0,"div",44),d(1,Ui,1,0,"ng-container",26),v()),t&2){let e=g();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function qi(t,r){t&1&&k(0,"div",45,4)}function Gi(t,r){t&1&&k(0,"ArrowDownIcon")}function Wi(t,r){}function Ji(t,r){t&1&&d(0,Wi,0,0,"ng-template")}function Xi(t,r){if(t&1&&(T(0,"span",46,5),d(2,Gi,1,0,"ArrowDownIcon",21)(3,Ji,1,0,null,26),v()),t&2){let e=g();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Zi(t,r){t&1&&k(0,"ArrowUpIcon")}function Yi(t,r){}function el(t,r){t&1&&d(0,Yi,0,0,"ng-template")}function tl(t,r){if(t&1&&(T(0,"span",47,6),d(2,Zi,1,0,"ArrowUpIcon",21)(3,el,1,0,null,26),v()),t&2){let e=g();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var il=["pTreeTableBody",""],ll=(t,r,e,l)=>({$implicit:t,node:r,rowData:e,columns:l}),ol=(t,r)=>({$implicit:t,frozen:r});function nl(t,r){t&1&&b(0)}function rl(t,r){if(t&1&&(P(0),d(1,nl,1,0,"ng-container",2),V()),t&2){let e=g().$implicit,l=g();s(),a("ngTemplateOutlet",l.template)("ngTemplateOutletContext",Ye(2,ll,e,e.node,e.node.data,l.columns))}}function al(t,r){if(t&1&&d(0,rl,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function sl(t,r){t&1&&b(0)}function cl(t,r){if(t&1&&(P(0),d(1,sl,1,0,"ng-container",2),V()),t&2){let e=g();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",Q(2,ol,e.columns,e.frozen))}}var dl=["scrollHeader"],pl=["scrollHeaderBox"],hl=["scrollBody"],ul=["scrollTable"],gl=["loadingTable"],fl=["scrollFooter"],ml=["scrollFooterBox"],bl=["scrollableAligner"],_l=["scroller"],yl=["ttScrollableView",""],Tl=t=>({height:t}),yt=(t,r)=>({$implicit:t,options:r}),wl=t=>({options:t}),Cl=(t,r)=>({"max-height":t,"overflow-y":r}),vl=()=>({});function Sl(t,r){t&1&&b(0)}function Il(t,r){t&1&&b(0)}function xl(t,r){t&1&&b(0)}function kl(t,r){if(t&1&&d(0,xl,1,0,"ng-container",14),t&2){let e=r.$implicit,l=r.options;g(2);let i=me(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",Q(2,yt,e,l))}}function El(t,r){t&1&&b(0)}function zl(t,r){if(t&1&&d(0,El,1,0,"ng-container",14),t&2){let e=r.options,l=g(3);a("ngTemplateOutlet",l.tt.loaderTemplate||l.tt._loaderTemplate)("ngTemplateOutletContext",L(2,wl,e))}}function Ll(t,r){t&1&&(P(0),d(1,zl,1,4,"ng-template",null,5,oe),V())}function Dl(t,r){if(t&1){let e=le();T(0,"p-scroller",19,3),O("onLazyLoad",function(i){te(e);let o=g();return ie(o.tt.onLazyItemLoad(i))}),d(2,kl,1,5,"ng-template",null,4,oe)(4,Ll,3,0,"ng-container",17),v()}if(t&2){let e=g();fe(L(8,Tl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Ml(t,r){t&1&&b(0)}function Rl(t,r){if(t&1&&(P(0),T(1,"div",20,6),d(3,Ml,1,0,"ng-container",14),v(),V()),t&2){let e=g(),l=me(11);s(),a("ngStyle",Q(3,Cl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",l)("ngTemplateOutletContext",Q(7,yt,e.serializedValue,Ze(6,vl)))}}function Nl(t,r){t&1&&b(0)}function Pl(t,r){t&1&&k(0,"div",24,8)}function Vl(t,r){if(t&1&&(T(0,"table",21,7),d(2,Nl,1,0,"ng-container",14),k(3,"tbody",22),v(),d(4,Pl,2,0,"div",23)),t&2){let e=r.$implicit,l=r.options,i=g();fe(l.contentStyle),J(i.tt.tableStyleClass),a("ngClass",l.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",L(13,N,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Fl(t,r){t&1&&b(0)}function Ol(t,r){t&1&&b(0)}function Hl(t,r){if(t&1&&(T(0,"div",25,9)(2,"div",26,10)(4,"table",27),d(5,Fl,1,0,"ng-container",14),T(6,"tfoot",28),d(7,Ol,1,0,"ng-container",14),v()()()()),t&2){let e=g();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",L(6,N,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",L(8,N,e.columns))}}function Kl(t,r){t&1&&k(0,"SortAltIcon",3),t&2&&a("styleClass","p-sortable-column-icon")}function Bl(t,r){t&1&&k(0,"SortAmountUpAltIcon",3),t&2&&a("styleClass","p-sortable-column-icon")}function $l(t,r){t&1&&k(0,"SortAmountDownIcon",3),t&2&&a("styleClass","p-sortable-column-icon")}function Ql(t,r){if(t&1&&(P(0),d(1,Kl,1,1,"SortAltIcon",2)(2,Bl,1,1,"SortAmountUpAltIcon",2)(3,$l,1,1,"SortAmountDownIcon",2),V()),t&2){let e=g();s(),a("ngIf",e.sortOrder===0),s(),a("ngIf",e.sortOrder===1),s(),a("ngIf",e.sortOrder===-1)}}function Al(t,r){}function Ul(t,r){t&1&&d(0,Al,0,0,"ng-template")}function jl(t,r){if(t&1&&(T(0,"span",4),d(1,Ul,1,0,null,5),v()),t&2){let e=g();s(),a("ngTemplateOutlet",e.tt.sortIconTemplate||e.tt._sortIconTemplate)("ngTemplateOutletContext",L(2,N,e.sortOrder))}}function ql(t,r){t&1&&k(0,"ChevronDownIcon"),t&2&&$("aria-hidden",!0)}function Gl(t,r){t&1&&k(0,"ChevronRightIcon"),t&2&&$("aria-hidden",!0)}function Wl(t,r){if(t&1&&(P(0),d(1,ql,1,1,"ChevronDownIcon",1)(2,Gl,1,1,"ChevronRightIcon",1),V()),t&2){let e=g();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Jl(t,r){}function Xl(t,r){t&1&&d(0,Jl,0,0,"ng-template")}var Zl=({dt:t})=>`
2
2
  /* For PrimeNG */
3
3
  .p-treetable {
4
4
  position: relative;