dealpos 26.31.0 → 26.31.2

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 (111) hide show
  1. package/browser/{chunk-XALVSMGQ.js → chunk-2D2XTHX5.js} +1 -1
  2. package/browser/{chunk-ETDYG2J5.js → chunk-2KMZR2FQ.js} +1 -1
  3. package/browser/{chunk-J73TSKVV.js → chunk-2RW4GYO7.js} +1 -1
  4. package/browser/{chunk-ZZDRAZCM.js → chunk-2YYLJWM3.js} +1 -1
  5. package/browser/{chunk-AJJU5NE6.js → chunk-3KNBMMHW.js} +1 -1
  6. package/browser/{chunk-URLHVA3K.js → chunk-3KWW6NCH.js} +2 -2
  7. package/browser/{chunk-UH45JQFW.js → chunk-4QFVTPWB.js} +1 -1
  8. package/browser/{chunk-4GCGSX3X.js → chunk-4QOTBAUH.js} +1 -1
  9. package/browser/{chunk-3U25V6PH.js → chunk-5GRWGDKS.js} +1 -1
  10. package/browser/{chunk-UY7W3VST.js → chunk-5I54KU3Z.js} +1 -1
  11. package/browser/{chunk-GXDAX47K.js → chunk-5IDDQT6Q.js} +1 -1
  12. package/browser/{chunk-I7ZCG2TG.js → chunk-5J7J3ST2.js} +1 -1
  13. package/browser/{chunk-RZNXYYU4.js → chunk-63ZAXFQX.js} +1 -1
  14. package/browser/{chunk-WVCWNJVE.js → chunk-6CVWPBUM.js} +1 -1
  15. package/browser/{chunk-4JLDI7DQ.js → chunk-6EHRM4I3.js} +1 -1
  16. package/browser/{chunk-VL7MP6GS.js → chunk-6HHTVTMK.js} +1 -1
  17. package/browser/{chunk-MA62A6KM.js → chunk-6VDBR2VF.js} +1 -1
  18. package/browser/chunk-6ZCY42RQ.js +1 -0
  19. package/browser/{chunk-2QIGWW43.js → chunk-75QDHX34.js} +1 -1
  20. package/browser/{chunk-3GS5ABER.js → chunk-76YPQ4UU.js} +1 -1
  21. package/browser/{chunk-NKIKTXSW.js → chunk-AHWFDIKW.js} +1 -1
  22. package/browser/{chunk-575CYRDE.js → chunk-APP64NKL.js} +1 -1
  23. package/browser/{chunk-4C3GYGTD.js → chunk-BAWPJVRQ.js} +1 -1
  24. package/browser/{chunk-AAFS6YC6.js → chunk-BJX2SA4C.js} +1 -1
  25. package/browser/{chunk-YUQ2EWJO.js → chunk-BWWJIUH6.js} +1 -1
  26. package/browser/{chunk-5YL4USA5.js → chunk-C2TKFZPS.js} +1 -1
  27. package/browser/{chunk-R5QAZOF5.js → chunk-C5CVS3GK.js} +1 -1
  28. package/browser/{chunk-U7RWZRR7.js → chunk-CAZIYF2Z.js} +1 -1
  29. package/browser/{chunk-EQJQI7TN.js → chunk-CCEVRRR3.js} +1 -1
  30. package/browser/{chunk-CPOEJ67T.js → chunk-CPS3GH6A.js} +1 -1
  31. package/browser/{chunk-5GEX2FT5.js → chunk-CPWNEOZT.js} +1 -1
  32. package/browser/{chunk-YE46KXRM.js → chunk-CRC2J4QR.js} +1 -1
  33. package/browser/{chunk-TTRNQK3Q.js → chunk-CZPTOUVZ.js} +1 -1
  34. package/browser/{chunk-73S3MXHS.js → chunk-DLXQDMIM.js} +1 -1
  35. package/browser/{chunk-UGJVCKVC.js → chunk-DNETJ3VB.js} +1 -1
  36. package/browser/{chunk-RJ44OWD6.js → chunk-DV2JKE7A.js} +1 -1
  37. package/browser/{chunk-MUKBV7YU.js → chunk-E5RIJTAA.js} +1 -1
  38. package/browser/{chunk-TMOXSWNS.js → chunk-EESLPH7M.js} +1 -1
  39. package/browser/{chunk-LVZUW3VF.js → chunk-EJVYQZZQ.js} +1 -1
  40. package/browser/{chunk-KAYPUZEP.js → chunk-ESKDMCP7.js} +4 -4
  41. package/browser/{chunk-6E6FPR4Y.js → chunk-FHX3FOWJ.js} +1 -1
  42. package/browser/{chunk-ZCVGGCAR.js → chunk-FJURCASJ.js} +1 -1
  43. package/browser/{chunk-7TQNUC3J.js → chunk-HXEIOQQJ.js} +1 -1
  44. package/browser/{chunk-YXQZEAVK.js → chunk-IAQWAJGU.js} +1 -1
  45. package/browser/{chunk-JKWJ3BIA.js → chunk-IBYZW56U.js} +1 -1
  46. package/browser/{chunk-UKXT34RB.js → chunk-IXS7JCOU.js} +1 -1
  47. package/browser/{chunk-6UVI2XFB.js → chunk-J2YSVKFZ.js} +1 -1
  48. package/browser/{chunk-QCOLWAAQ.js → chunk-JAPORYEE.js} +1 -1
  49. package/browser/{chunk-VY4KDK4Y.js → chunk-JV3OBBBH.js} +1 -1
  50. package/browser/{chunk-LRRKN5A4.js → chunk-JXRB4UXW.js} +2 -2
  51. package/browser/{chunk-MORMYLN7.js → chunk-K3UZFSFE.js} +1 -1
  52. package/browser/{chunk-DSIQQJN7.js → chunk-KGSVHK3Y.js} +1 -1
  53. package/browser/{chunk-7WLVKERE.js → chunk-L7MNXV4J.js} +1 -1
  54. package/browser/{chunk-3ASMROV3.js → chunk-LN5GPX2G.js} +1 -1
  55. package/browser/{chunk-IYIN4OIQ.js → chunk-LPPRCRLR.js} +1 -1
  56. package/browser/{chunk-Y62YHBIZ.js → chunk-M43DOPB3.js} +1 -1
  57. package/browser/{chunk-7D4G6V2H.js → chunk-MBTM4VZP.js} +1 -1
  58. package/browser/{chunk-33O4QQRL.js → chunk-MHV2DDPD.js} +1 -1
  59. package/browser/{chunk-BRVVU4SG.js → chunk-MMFIIPL3.js} +1 -1
  60. package/browser/{chunk-TAUNFQ64.js → chunk-MN3ZDFC6.js} +1 -1
  61. package/browser/{chunk-WAZRGEYO.js → chunk-MPBAL72O.js} +1 -1
  62. package/browser/{chunk-D5H67RWP.js → chunk-NJISQHEN.js} +1 -1
  63. package/browser/{chunk-OKKECXDA.js → chunk-NUVDVWF6.js} +1 -1
  64. package/browser/{chunk-4P7MRESV.js → chunk-OBYMB3OY.js} +1 -1
  65. package/browser/{chunk-ZZJYDC2B.js → chunk-PAD5WWIX.js} +2 -2
  66. package/browser/{chunk-MJART4IX.js → chunk-PC6KMKB6.js} +1 -1
  67. package/browser/{chunk-BPB75XCK.js → chunk-PWW6WJXY.js} +1 -1
  68. package/browser/{chunk-J2COGSK3.js → chunk-QPSVLU4G.js} +1 -1
  69. package/browser/{chunk-ZAVMDJW5.js → chunk-QRXCSHBN.js} +1 -1
  70. package/browser/{chunk-T2ES5FDV.js → chunk-QUHRGAHV.js} +1 -1
  71. package/browser/{chunk-Z7GDLDZ5.js → chunk-R2SZJX7H.js} +1 -1
  72. package/browser/{chunk-WQHLV644.js → chunk-RKLZUX6N.js} +1 -1
  73. package/browser/{chunk-WTB5F6CT.js → chunk-S3JVKA4R.js} +1 -1
  74. package/browser/{chunk-TYQO445A.js → chunk-SANXT2J4.js} +2 -2
  75. package/browser/{chunk-KNIYBAF6.js → chunk-SCCAPYCC.js} +1 -1
  76. package/browser/{chunk-5AFVAOCA.js → chunk-SFY3SQOM.js} +1 -1
  77. package/browser/{chunk-FCBH4LII.js → chunk-SJCVCLEI.js} +1 -1
  78. package/browser/{chunk-P3HM2RVD.js → chunk-T27WXEVA.js} +2 -2
  79. package/browser/{chunk-353HNLXY.js → chunk-T2BTYG4O.js} +1 -1
  80. package/browser/{chunk-TPJ66GFB.js → chunk-TK5UX4Z7.js} +1 -1
  81. package/browser/{chunk-LDNP3T7G.js → chunk-TKFYBJHP.js} +1 -1
  82. package/browser/{chunk-U2CIPLFX.js → chunk-TY23MB5Q.js} +1 -1
  83. package/browser/{chunk-Z25K5S4B.js → chunk-UEYUGNPL.js} +1 -1
  84. package/browser/{chunk-7UGHEMWE.js → chunk-UKH23FAA.js} +1 -1
  85. package/browser/{chunk-DCO3RYIL.js → chunk-UKOCBRO7.js} +1 -1
  86. package/browser/{chunk-DIFBMJV5.js → chunk-UZCDTXEN.js} +1 -1
  87. package/browser/{chunk-TNYM2XZG.js → chunk-V26NSTVU.js} +1 -1
  88. package/browser/{chunk-NVGLKZON.js → chunk-V7TPRT7B.js} +1 -1
  89. package/browser/{chunk-FBN2RAF3.js → chunk-VAREGQEI.js} +1 -1
  90. package/browser/{chunk-LXDU5DY2.js → chunk-VEC6WZRR.js} +1 -1
  91. package/browser/{chunk-UWK5MYAB.js → chunk-VQIUTLMW.js} +1 -1
  92. package/browser/{chunk-O5NLFQAN.js → chunk-VZI23TLG.js} +1 -1
  93. package/browser/{chunk-Q2TH7DLT.js → chunk-WHXE6ADU.js} +1 -1
  94. package/browser/{chunk-GTZQGFBL.js → chunk-WI7FIDPI.js} +2 -2
  95. package/browser/{chunk-LXM37VXO.js → chunk-XFCSKGHI.js} +1 -1
  96. package/browser/{chunk-YXEMQE64.js → chunk-XKEUQRAW.js} +1 -1
  97. package/browser/{chunk-7WC2YI3Z.js → chunk-XRLUES2P.js} +1 -1
  98. package/browser/{chunk-J7BODO56.js → chunk-XSEJ2JC4.js} +1 -1
  99. package/browser/{chunk-7JREOOJ6.js → chunk-XZAU3X45.js} +1 -1
  100. package/browser/{chunk-SG7AFOMG.js → chunk-Y6LQZATD.js} +1 -1
  101. package/browser/{chunk-ZS53GFZS.js → chunk-YTV37PR3.js} +1 -1
  102. package/browser/{chunk-FKEWW5VI.js → chunk-YVSIU6ID.js} +1 -1
  103. package/browser/{chunk-WAAEMOOW.js → chunk-ZDITRPNK.js} +1 -1
  104. package/browser/{chunk-57GG77ZP.js → chunk-ZTBEPFPB.js} +1 -1
  105. package/browser/{chunk-2Q3WAVZC.js → chunk-ZTXLGZTV.js} +1 -1
  106. package/browser/{chunk-Y3VLGOQQ.js → chunk-ZUXKS7OU.js} +1 -1
  107. package/browser/{chunk-GVDHOHK2.js → chunk-ZZY6QZJS.js} +1 -1
  108. package/browser/index.html +2 -2
  109. package/browser/{main-PCTZXRWB.js → main-PSBEISMC.js} +1 -1
  110. package/package.json +1 -1
  111. package/browser/chunk-V4YTTXLR.js +0 -2
@@ -1 +1 @@
1
- import{b as c}from"./chunk-3ASMROV3.js";import{ja as r,na as s}from"./chunk-DUSKF5IQ.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
1
+ import{b as c}from"./chunk-LN5GPX2G.js";import{ja as r,na as s}from"./chunk-DUSKF5IQ.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
@@ -1 +1 @@
1
- import{a as oe,b as le,c as ne}from"./chunk-UXZTZFCB.js";import{a as ee}from"./chunk-ORJAUIF4.js";import{b as te,c as ie}from"./chunk-VU5DCR4V.js";import{a as Z}from"./chunk-KNIYBAF6.js";import{E as Y,a as J,h as K,o as X}from"./chunk-R36OIJC7.js";import{q as U}from"./chunk-ETYXTCKV.js";import{$ as P,Ba as B,Db as p,Eb as d,Fb as m,Fc as f,Gc as S,Pb as g,Sb as u,Sc as z,Tc as c,Ua as x,Ub as n,X as F,Yb as H,Zb as L,_ as N,_b as T,aa as D,d as w,da as b,db as $,fa as R,hc as I,ia as E,ic as q,ja as j,l as k,ma as W,mc as v,na as C,nc as y,oc as h,od as A,r as _,ra as a,sa as s,vd as G,wb as M,wc as Q,yb as V}from"./chunk-DUSKF5IQ.js";var O=class l{signalRClient=C(Z);outlets$;_onOpenNgSelect=new w;onOpenNgSelect$=this._onOpenNgSelect.asObservable();_accessOutlet=new w;accessOutlet$=this._accessOutlet.asObservable();constructor(i){this.outlets$=this.accessOutlet$.pipe(P(e=>this.onOpenNgSelect$.pipe(_(()=>e))),R(this.signalRClient.recacheOutlet$),D((e,[o,t])=>t||!e.data.get(o)?.length&&e.accessType!==o?(this.signalRClient.resetOutletCache(),i.get(`/api/Outlet/SelectOptions/${o}`).pipe(b(r=>e.data.set(o,r)),_(()=>({data:e.data,accessType:o})))):k({data:e.data,accessType:e.accessType}),{data:new Map,accessType:-1}),_(e=>e.data.get(e.accessType)),F(1))}onOpenNgSelect(){this._onOpenNgSelect.next(!1)}forceLoadOutlets(){this._onOpenNgSelect.next(!0)}accessOutlet(i){this._accessOutlet.next(i)}static \u0275fac=function(e){return new(e||l)(W(U))};static \u0275prov=j({token:l,factory:l.\u0275fac,providedIn:"root"})};var ce=["multiSelect"],pe=["select"];function ue(l,i){if(l&1){let e=g();d(0,"p-floatlabel",3)(1,"p-multiselect",5,0),f(3,"async"),u("click",function(){a(e);let t=n(2);return s(t.onClickSelect())})("onChange",function(){a(e);let t=n(2);return s(t.onSelectChange())}),h("ngModelChange",function(t){a(e);let r=n(2);return y(r.value,t)||(r.value=t),s(t)}),u("onFilter",function(){a(e);let t=n(2);return s(t.onFilterChange())}),m(),d(4,"label",6),I(5),m()()}if(l&2){let e=n(2);x(),p("options",S(3,7,e.outlets$)),v("ngModel",e.value),p("disabled",e.disabled())("maxSelectedLabels",e.maxSelectedLabels())("showClear",!0)("autofocusFilter",!0),x(4),q(e.placeholder())}}function de(l,i){if(l&1){let e=g();d(0,"p-multiselect",7,0),f(2,"async"),u("click",function(){a(e);let t=n(2);return s(t.onClickSelect())})("onChange",function(){a(e);let t=n(2);return s(t.onSelectChange())}),h("ngModelChange",function(t){a(e);let r=n(2);return y(r.value,t)||(r.value=t),s(t)}),u("onFilter",function(){a(e);let t=n(2);return s(t.onFilterChange())}),m()}if(l&2){let e=n(2);p("options",S(2,7,e.outlets$))("placeholder",e.placeholder()),v("ngModel",e.value),p("disabled",e.disabled())("maxSelectedLabels",e.maxSelectedLabels())("showClear",!0)("autofocusFilter",!0)}}function me(l,i){if(l&1&&M(0,ue,6,9,"p-floatlabel",3)(1,de,3,9,"p-multiselect",4),l&2){let e=n();V(e.isFloatLabel()?0:1)}}function _e(l,i){if(l&1){let e=g();d(0,"p-select",8,1),f(2,"async"),u("click",function(){a(e);let t=n();return s(t.onClickSelect())})("onChange",function(){a(e);let t=n();return s(t.onSelectChange())}),h("ngModelChange",function(t){a(e);let r=n();return y(r.value,t)||(r.value=t),s(t)}),m()}if(l&2){let e=n();p("options",S(2,7,e.outlets$))("placeholder",e.placeholder()),v("ngModel",e.value),p("disabled",e.disabled())("filter",e.filter())("showClear",!0)("autofocusFilter",!0)}}var re=class l{outletService=C(O);accessType=c(4);multiple=c(!1);outlets=c([]);isFloatLabel=c(!1);placeholder=c("Select Outlet");maxSelectedLabels=c(4);disabled=c(!1);filter=c(!0);outlets$;onListOutlets=z();multiSelect;select;top=B(0);overlayObserver;constructor(){this.outlets$=this.outletService.outlets$.pipe(N(this.outlets()),b(i=>this.onListOutlets.emit(i)))}ngAfterViewInit(){this.initTopPosition(),this.multiple()?this.multiSelect.onClick.emit():this.select.onClick.emit()}ngOnDestroy(){this.stopOverlayObserver()}initTopPosition(){let i=document.querySelector("body");this.top.set(i.getBoundingClientRect()?.top*-1)}onClickSelect(){try{setTimeout(()=>{this.adjustOverlayPosition(),this.startOverlayObserver()},0)}catch(i){console.error("Error adjusting top position:",i)}finally{this.outletService.accessOutlet(this.accessType()),this.outletService.onOpenNgSelect()}}adjustOverlayPosition(){let i=document.querySelector(".p-overlay.p-component");if(!i)return;let e=i.getBoundingClientRect(),o=this.top()+e.top;i.style.setProperty("top",`${o}px`,"important"),getComputedStyle(i).position!=="fixed"&&i.style.setProperty("position","fixed","important")}startOverlayObserver(){let i=document.querySelector(".p-overlay.p-component");i&&(this.stopOverlayObserver(),this.overlayObserver=new MutationObserver(e=>{let o=e[0];if(o&&o.type==="attributes"&&o.attributeName==="style"){let t=o.target,r=getComputedStyle(t).display,ae=getComputedStyle(t).visibility;(r==="none"||ae==="hidden")&&(t.style.setProperty("display","block","important"),t.style.setProperty("visibility","visible","important"),t.style.setProperty("position","fixed","important"))}}),this.overlayObserver.observe(i,{attributes:!0,attributeFilter:["style"]}))}stopOverlayObserver(){this.overlayObserver&&(this.overlayObserver.disconnect(),this.overlayObserver=void 0)}onFilterChange(){setTimeout(()=>{document.querySelector(".p-overlay.p-component")&&!this.overlayObserver&&this.startOverlayObserver()},0)}value=null;onChange=()=>{};onTouched=()=>{};writeValue(i){this.value=i,i&&this.onClickSelect()}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}onSelectChange(){this.onChange(this.value)}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=$({type:l,selectors:[["outlet-selector"]],viewQuery:function(e,o){if(e&1&&H(ce,5)(pe,5),e&2){let t;L(t=T())&&(o.multiSelect=t.first),L(t=T())&&(o.select=t.first)}},inputs:{accessType:[1,"accessType"],multiple:[1,"multiple"],outlets:[1,"outlets"],isFloatLabel:[1,"isFloatLabel"],placeholder:[1,"placeholder"],maxSelectedLabels:[1,"maxSelectedLabels"],disabled:[1,"disabled"],filter:[1,"filter"]},outputs:{onListOutlets:"onListOutlets"},features:[Q([{provide:J,useExisting:E(()=>l),multi:!0},oe])],decls:2,vars:1,consts:[["multiSelect",""],["select",""],["optionLabel","v","optionValue","k","appendTo","body",1,"w-100",3,"options","placeholder","ngModel","disabled","filter","showClear","autofocusFilter"],["variant","on",1,"w-100"],["optionLabel","v","optionValue","k","display","chip","id","multiSelect","appendTo","body",1,"w-100",3,"options","placeholder","ngModel","disabled","maxSelectedLabels","showClear","autofocusFilter"],["optionLabel","v","optionValue","k","display","chip","id","multiSelect","appendTo","body",1,"w-100",3,"click","onChange","ngModelChange","onFilter","options","ngModel","disabled","maxSelectedLabels","showClear","autofocusFilter"],["for","multiSelect"],["optionLabel","v","optionValue","k","display","chip","id","multiSelect","appendTo","body",1,"w-100",3,"click","onChange","ngModelChange","onFilter","options","placeholder","ngModel","disabled","maxSelectedLabels","showClear","autofocusFilter"],["optionLabel","v","optionValue","k","appendTo","body",1,"w-100",3,"click","onChange","ngModelChange","options","placeholder","ngModel","disabled","filter","showClear","autofocusFilter"]],template:function(e,o){e&1&&M(0,me,2,1)(1,_e,3,9,"p-select",2),e&2&&V(o.multiple()?0:1)},dependencies:[G,ne,le,Y,K,X,ie,te,ee,A],styles:["[_nghost-%COMP%] .p-multiselect .p-overlay{width:-moz-available;width:-webkit-fill-available;width:fill-available}[_nghost-%COMP%] .p-select .p-overlay{width:-moz-available;width:-webkit-fill-available;width:fill-available}"]})};export{re as a};
1
+ import{a as oe,b as le,c as ne}from"./chunk-UXZTZFCB.js";import{a as ee}from"./chunk-ORJAUIF4.js";import{b as te,c as ie}from"./chunk-VU5DCR4V.js";import{a as Z}from"./chunk-SCCAPYCC.js";import{E as Y,a as J,h as K,o as X}from"./chunk-R36OIJC7.js";import{q as U}from"./chunk-ETYXTCKV.js";import{$ as P,Ba as B,Db as p,Eb as d,Fb as m,Fc as f,Gc as S,Pb as g,Sb as u,Sc as z,Tc as c,Ua as x,Ub as n,X as F,Yb as H,Zb as L,_ as N,_b as T,aa as D,d as w,da as b,db as $,fa as R,hc as I,ia as E,ic as q,ja as j,l as k,ma as W,mc as v,na as C,nc as y,oc as h,od as A,r as _,ra as a,sa as s,vd as G,wb as M,wc as Q,yb as V}from"./chunk-DUSKF5IQ.js";var O=class l{signalRClient=C(Z);outlets$;_onOpenNgSelect=new w;onOpenNgSelect$=this._onOpenNgSelect.asObservable();_accessOutlet=new w;accessOutlet$=this._accessOutlet.asObservable();constructor(i){this.outlets$=this.accessOutlet$.pipe(P(e=>this.onOpenNgSelect$.pipe(_(()=>e))),R(this.signalRClient.recacheOutlet$),D((e,[o,t])=>t||!e.data.get(o)?.length&&e.accessType!==o?(this.signalRClient.resetOutletCache(),i.get(`/api/Outlet/SelectOptions/${o}`).pipe(b(r=>e.data.set(o,r)),_(()=>({data:e.data,accessType:o})))):k({data:e.data,accessType:e.accessType}),{data:new Map,accessType:-1}),_(e=>e.data.get(e.accessType)),F(1))}onOpenNgSelect(){this._onOpenNgSelect.next(!1)}forceLoadOutlets(){this._onOpenNgSelect.next(!0)}accessOutlet(i){this._accessOutlet.next(i)}static \u0275fac=function(e){return new(e||l)(W(U))};static \u0275prov=j({token:l,factory:l.\u0275fac,providedIn:"root"})};var ce=["multiSelect"],pe=["select"];function ue(l,i){if(l&1){let e=g();d(0,"p-floatlabel",3)(1,"p-multiselect",5,0),f(3,"async"),u("click",function(){a(e);let t=n(2);return s(t.onClickSelect())})("onChange",function(){a(e);let t=n(2);return s(t.onSelectChange())}),h("ngModelChange",function(t){a(e);let r=n(2);return y(r.value,t)||(r.value=t),s(t)}),u("onFilter",function(){a(e);let t=n(2);return s(t.onFilterChange())}),m(),d(4,"label",6),I(5),m()()}if(l&2){let e=n(2);x(),p("options",S(3,7,e.outlets$)),v("ngModel",e.value),p("disabled",e.disabled())("maxSelectedLabels",e.maxSelectedLabels())("showClear",!0)("autofocusFilter",!0),x(4),q(e.placeholder())}}function de(l,i){if(l&1){let e=g();d(0,"p-multiselect",7,0),f(2,"async"),u("click",function(){a(e);let t=n(2);return s(t.onClickSelect())})("onChange",function(){a(e);let t=n(2);return s(t.onSelectChange())}),h("ngModelChange",function(t){a(e);let r=n(2);return y(r.value,t)||(r.value=t),s(t)}),u("onFilter",function(){a(e);let t=n(2);return s(t.onFilterChange())}),m()}if(l&2){let e=n(2);p("options",S(2,7,e.outlets$))("placeholder",e.placeholder()),v("ngModel",e.value),p("disabled",e.disabled())("maxSelectedLabels",e.maxSelectedLabels())("showClear",!0)("autofocusFilter",!0)}}function me(l,i){if(l&1&&M(0,ue,6,9,"p-floatlabel",3)(1,de,3,9,"p-multiselect",4),l&2){let e=n();V(e.isFloatLabel()?0:1)}}function _e(l,i){if(l&1){let e=g();d(0,"p-select",8,1),f(2,"async"),u("click",function(){a(e);let t=n();return s(t.onClickSelect())})("onChange",function(){a(e);let t=n();return s(t.onSelectChange())}),h("ngModelChange",function(t){a(e);let r=n();return y(r.value,t)||(r.value=t),s(t)}),m()}if(l&2){let e=n();p("options",S(2,7,e.outlets$))("placeholder",e.placeholder()),v("ngModel",e.value),p("disabled",e.disabled())("filter",e.filter())("showClear",!0)("autofocusFilter",!0)}}var re=class l{outletService=C(O);accessType=c(4);multiple=c(!1);outlets=c([]);isFloatLabel=c(!1);placeholder=c("Select Outlet");maxSelectedLabels=c(4);disabled=c(!1);filter=c(!0);outlets$;onListOutlets=z();multiSelect;select;top=B(0);overlayObserver;constructor(){this.outlets$=this.outletService.outlets$.pipe(N(this.outlets()),b(i=>this.onListOutlets.emit(i)))}ngAfterViewInit(){this.initTopPosition(),this.multiple()?this.multiSelect.onClick.emit():this.select.onClick.emit()}ngOnDestroy(){this.stopOverlayObserver()}initTopPosition(){let i=document.querySelector("body");this.top.set(i.getBoundingClientRect()?.top*-1)}onClickSelect(){try{setTimeout(()=>{this.adjustOverlayPosition(),this.startOverlayObserver()},0)}catch(i){console.error("Error adjusting top position:",i)}finally{this.outletService.accessOutlet(this.accessType()),this.outletService.onOpenNgSelect()}}adjustOverlayPosition(){let i=document.querySelector(".p-overlay.p-component");if(!i)return;let e=i.getBoundingClientRect(),o=this.top()+e.top;i.style.setProperty("top",`${o}px`,"important"),getComputedStyle(i).position!=="fixed"&&i.style.setProperty("position","fixed","important")}startOverlayObserver(){let i=document.querySelector(".p-overlay.p-component");i&&(this.stopOverlayObserver(),this.overlayObserver=new MutationObserver(e=>{let o=e[0];if(o&&o.type==="attributes"&&o.attributeName==="style"){let t=o.target,r=getComputedStyle(t).display,ae=getComputedStyle(t).visibility;(r==="none"||ae==="hidden")&&(t.style.setProperty("display","block","important"),t.style.setProperty("visibility","visible","important"),t.style.setProperty("position","fixed","important"))}}),this.overlayObserver.observe(i,{attributes:!0,attributeFilter:["style"]}))}stopOverlayObserver(){this.overlayObserver&&(this.overlayObserver.disconnect(),this.overlayObserver=void 0)}onFilterChange(){setTimeout(()=>{document.querySelector(".p-overlay.p-component")&&!this.overlayObserver&&this.startOverlayObserver()},0)}value=null;onChange=()=>{};onTouched=()=>{};writeValue(i){this.value=i,i&&this.onClickSelect()}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}onSelectChange(){this.onChange(this.value)}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=$({type:l,selectors:[["outlet-selector"]],viewQuery:function(e,o){if(e&1&&H(ce,5)(pe,5),e&2){let t;L(t=T())&&(o.multiSelect=t.first),L(t=T())&&(o.select=t.first)}},inputs:{accessType:[1,"accessType"],multiple:[1,"multiple"],outlets:[1,"outlets"],isFloatLabel:[1,"isFloatLabel"],placeholder:[1,"placeholder"],maxSelectedLabels:[1,"maxSelectedLabels"],disabled:[1,"disabled"],filter:[1,"filter"]},outputs:{onListOutlets:"onListOutlets"},features:[Q([{provide:J,useExisting:E(()=>l),multi:!0},oe])],decls:2,vars:1,consts:[["multiSelect",""],["select",""],["optionLabel","v","optionValue","k","appendTo","body",1,"w-100",3,"options","placeholder","ngModel","disabled","filter","showClear","autofocusFilter"],["variant","on",1,"w-100"],["optionLabel","v","optionValue","k","display","chip","id","multiSelect","appendTo","body",1,"w-100",3,"options","placeholder","ngModel","disabled","maxSelectedLabels","showClear","autofocusFilter"],["optionLabel","v","optionValue","k","display","chip","id","multiSelect","appendTo","body",1,"w-100",3,"click","onChange","ngModelChange","onFilter","options","ngModel","disabled","maxSelectedLabels","showClear","autofocusFilter"],["for","multiSelect"],["optionLabel","v","optionValue","k","display","chip","id","multiSelect","appendTo","body",1,"w-100",3,"click","onChange","ngModelChange","onFilter","options","placeholder","ngModel","disabled","maxSelectedLabels","showClear","autofocusFilter"],["optionLabel","v","optionValue","k","appendTo","body",1,"w-100",3,"click","onChange","ngModelChange","options","placeholder","ngModel","disabled","filter","showClear","autofocusFilter"]],template:function(e,o){e&1&&M(0,me,2,1)(1,_e,3,9,"p-select",2),e&2&&V(o.multiple()?0:1)},dependencies:[G,ne,le,Y,K,X,ie,te,ee,A],styles:["[_nghost-%COMP%] .p-multiselect .p-overlay{width:-moz-available;width:-webkit-fill-available;width:fill-available}[_nghost-%COMP%] .p-select .p-overlay{width:-moz-available;width:-webkit-fill-available;width:fill-available}"]})};export{re as a};
@@ -1 +1 @@
1
- import{a as w}from"./chunk-VUC4E73K.js";import{a as C}from"./chunk-2QIGWW43.js";import{Ba as d,Hb as b,Ib as g,Jb as S,Oc as _,Pb as y,Tb as v,Ub as i,db as f,ea as s,ec as T,ja as a,na as r,ra as p,sa as m,wb as u,y as c,yb as h}from"./chunk-DUSKF5IQ.js";var t=class e{_scrollY=d(0);scrollY=this._scrollY.asReadonly();showScrollTop=_(()=>this._scrollY()>300);constructor(){c(window,"scroll",{passive:!0}).pipe(s(100),w()).subscribe(()=>{this._scrollY.set(window.scrollY)})}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static \u0275fac=function(o){return new(o||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})};function I(e,n){if(e&1){let o=y();b(0,"button",1),v("click",function(){p(o);let D=i();return m(D.scrollTopService.scrollToTop())}),S(1,"i",2),g()}if(e&2){let o=i();T("isIntercomLauncherShown",o.isLauncherHidden()===!1)}}var x=class e{scrollTopService=r(t);intercomService=r(C);isLauncherHidden=this.intercomService.isLauncherHidden;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=f({type:e,selectors:[["POS-scroll-top"]],decls:1,vars:1,consts:[["aria-label","Scroll to top",1,"scroll-top-btn",3,"isIntercomLauncherShown"],["aria-label","Scroll to top",1,"scroll-top-btn",3,"click"],[1,"fa-regular","fa-arrow-up-long-to-line"]],template:function(o,l){o&1&&u(0,I,2,2,"button",0),o&2&&h(l.scrollTopService.showScrollTop()?0:-1)},styles:["[_nghost-%COMP%]{display:contents}.scroll-top-btn[_ngcontent-%COMP%]{position:fixed;bottom:1.5rem;right:1.5rem;display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;border:1px solid #0071b2;border-radius:8px;background:#fff;color:#0071b2;font-size:1rem;cursor:pointer;box-shadow:0 2px 6px #0000001f;transition:all .15s ease;z-index:1000}.scroll-top-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{line-height:1;pointer-events:none}.scroll-top-btn.isIntercomLauncherShown[_ngcontent-%COMP%]{bottom:5rem!important}"],changeDetection:0})};export{x as a};
1
+ import{a as w}from"./chunk-VUC4E73K.js";import{a as C}from"./chunk-75QDHX34.js";import{Ba as d,Hb as b,Ib as g,Jb as S,Oc as _,Pb as y,Tb as v,Ub as i,db as f,ea as s,ec as T,ja as a,na as r,ra as p,sa as m,wb as u,y as c,yb as h}from"./chunk-DUSKF5IQ.js";var t=class e{_scrollY=d(0);scrollY=this._scrollY.asReadonly();showScrollTop=_(()=>this._scrollY()>300);constructor(){c(window,"scroll",{passive:!0}).pipe(s(100),w()).subscribe(()=>{this._scrollY.set(window.scrollY)})}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static \u0275fac=function(o){return new(o||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})};function I(e,n){if(e&1){let o=y();b(0,"button",1),v("click",function(){p(o);let D=i();return m(D.scrollTopService.scrollToTop())}),S(1,"i",2),g()}if(e&2){let o=i();T("isIntercomLauncherShown",o.isLauncherHidden()===!1)}}var x=class e{scrollTopService=r(t);intercomService=r(C);isLauncherHidden=this.intercomService.isLauncherHidden;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=f({type:e,selectors:[["POS-scroll-top"]],decls:1,vars:1,consts:[["aria-label","Scroll to top",1,"scroll-top-btn",3,"isIntercomLauncherShown"],["aria-label","Scroll to top",1,"scroll-top-btn",3,"click"],[1,"fa-regular","fa-arrow-up-long-to-line"]],template:function(o,l){o&1&&u(0,I,2,2,"button",0),o&2&&h(l.scrollTopService.showScrollTop()?0:-1)},styles:["[_nghost-%COMP%]{display:contents}.scroll-top-btn[_ngcontent-%COMP%]{position:fixed;bottom:1.5rem;right:1.5rem;display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;border:1px solid #0071b2;border-radius:8px;background:#fff;color:#0071b2;font-size:1rem;cursor:pointer;box-shadow:0 2px 6px #0000001f;transition:all .15s ease;z-index:1000}.scroll-top-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{line-height:1;pointer-events:none}.scroll-top-btn.isIntercomLauncherShown[_ngcontent-%COMP%]{bottom:5rem!important}"],changeDetection:0})};export{x as a};
@@ -1 +1 @@
1
- import{b as D}from"./chunk-EPUVTA4V.js";import{a as P}from"./chunk-N4KD7EQC.js";import{e as f}from"./chunk-E7AVQYKT.js";import{c as d,d as I}from"./chunk-K2BCWJSV.js";import{d as g}from"./chunk-7GBU7E7F.js";import{c as e}from"./chunk-VU5DCR4V.js";import{c as y}from"./chunk-4GCGSX3X.js";import{b as l}from"./chunk-Z7UCI72M.js";import{N as M}from"./chunk-7OCVKGLK.js";import{d as C}from"./chunk-ULWLSYED.js";import{h as b}from"./chunk-LCBHD53Y.js";import{c}from"./chunk-KXQJYBG5.js";import{E as u}from"./chunk-R36OIJC7.js";import{q as s}from"./chunk-ETYXTCKV.js";import{eb as a,ja as n,ka as i,na as m,vd as p}from"./chunk-DUSKF5IQ.js";var v=class t{http=m(s);constructor(){}getProductSuggestionByCodeName(r){let o=[{key:"Prefix",value:r},{key:"Count",value:100}];return this.http.get("/API/AC/GetProductSuggestionByCodeNName",o)}deleteImage(r){let o={ID:r};return this.http.post("/api/catalog/variant/DeleteImage",o)}updateImage(r,o){let V={ID:r,ImageURL:o};return this.http.post("/api/catalog/variant/UpdateVariantImage",V)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};var T=class{ID;Code;CostCurrencyID=1;Discontinued=!1;LoyaltyPoint=!0;Model;Name;OrderPriceDiscount;PackSize=1;PaymentTypeID=0;PriceCurrencyID=1;PriceDiscount;ProductID;SalesCommission;Taxable=!0;TypeID;UOM;UnitCost;UnitPrice=0;Weight;ComponentID;UOMName;Description;UnitQuantity;ProductIndex;UOMQ;MeasurementID;Image;OrderPrice;PaymentTypeString;SellPriceTypeString;UnitExpense;LandedCost;UnitPriceMinimum;MaxOrderPrice;CostCurrencySymbol;VariantType;VariantImageVisible;DisplayImage};var N=class{ParentName;ParentID;Ratio},S=class{BaseUnitID;Code;ID;Model;ProductName;Ratio};var O=class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({imports:[p,u,f,l,g,b,d,D,C,I,P,e,M,e,c,y]})};export{v as a,T as b,N as c,S as d,O as e};
1
+ import{b as D}from"./chunk-EPUVTA4V.js";import{a as P}from"./chunk-N4KD7EQC.js";import{e as f}from"./chunk-E7AVQYKT.js";import{c as d,d as I}from"./chunk-K2BCWJSV.js";import{d as g}from"./chunk-7GBU7E7F.js";import{c as e}from"./chunk-VU5DCR4V.js";import{c as y}from"./chunk-4QOTBAUH.js";import{b as l}from"./chunk-Z7UCI72M.js";import{N as M}from"./chunk-7OCVKGLK.js";import{d as C}from"./chunk-ULWLSYED.js";import{h as b}from"./chunk-LCBHD53Y.js";import{c}from"./chunk-KXQJYBG5.js";import{E as u}from"./chunk-R36OIJC7.js";import{q as s}from"./chunk-ETYXTCKV.js";import{eb as a,ja as n,ka as i,na as m,vd as p}from"./chunk-DUSKF5IQ.js";var v=class t{http=m(s);constructor(){}getProductSuggestionByCodeName(r){let o=[{key:"Prefix",value:r},{key:"Count",value:100}];return this.http.get("/API/AC/GetProductSuggestionByCodeNName",o)}deleteImage(r){let o={ID:r};return this.http.post("/api/catalog/variant/DeleteImage",o)}updateImage(r,o){let V={ID:r,ImageURL:o};return this.http.post("/api/catalog/variant/UpdateVariantImage",V)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};var T=class{ID;Code;CostCurrencyID=1;Discontinued=!1;LoyaltyPoint=!0;Model;Name;OrderPriceDiscount;PackSize=1;PaymentTypeID=0;PriceCurrencyID=1;PriceDiscount;ProductID;SalesCommission;Taxable=!0;TypeID;UOM;UnitCost;UnitPrice=0;Weight;ComponentID;UOMName;Description;UnitQuantity;ProductIndex;UOMQ;MeasurementID;Image;OrderPrice;PaymentTypeString;SellPriceTypeString;UnitExpense;LandedCost;UnitPriceMinimum;MaxOrderPrice;CostCurrencySymbol;VariantType;VariantImageVisible;DisplayImage};var N=class{ParentName;ParentID;Ratio},S=class{BaseUnitID;Code;ID;Model;ProductName;Ratio};var O=class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({imports:[p,u,f,l,g,b,d,D,C,I,P,e,M,e,c,y]})};export{v as a,T as b,N as c,S as d,O as e};
@@ -1 +1 @@
1
- import{a as de}from"./chunk-G3OKW7RE.js";import{a as le}from"./chunk-J7D4A2JN.js";import"./chunk-BYXBJQAS.js";import{g as ae,h as se}from"./chunk-353HNLXY.js";import"./chunk-SLMXA7HD.js";import"./chunk-U2CIPLFX.js";import{a as re}from"./chunk-RJ44OWD6.js";import"./chunk-JI7J6USO.js";import"./chunk-KIONH5BK.js";import"./chunk-4GCGSX3X.js";import"./chunk-W7I2IWJP.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-WVCWNJVE.js";import{a as oe,b as ie,c as ne}from"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as V}from"./chunk-DUAKLYOO.js";import{b as ee,c as te}from"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import{E as W,F as X,c as G,h as J,o as Q}from"./chunk-R36OIJC7.js";import"./chunk-3ASMROV3.js";import"./chunk-2QIGWW43.js";import"./chunk-AGPZGAMV.js";import{b as Z}from"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-575CYRDE.js";import{n as q,q as z}from"./chunk-ETYXTCKV.js";import{$a as f,Ba as b,Bb as C,Cb as v,D as T,Db as _,Eb as i,Fb as a,Gb as H,Kb as A,Lb as N,Lc as $,Mb as K,Nd as Y,Oc as L,Pb as M,Sb as m,Ua as l,Ub as u,cc as j,db as k,hc as d,ib as F,ic as O,jb as E,kc as B,mc as S,na as h,nc as x,nd as U,oc as w,ra as c,sa as p,vd as R,wb as I,yb as P,zb as g}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function he(n,r){if(n&1){let e=M();i(0,"tr")(1,"td")(2,"div",11)(3,"i",15),m("click",function(){let t=c(e).$index,s=u();return p(s.onRemoveHeader(t))}),a()()(),i(4,"td")(5,"input",16),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Key,t)||(s.Key=t),p(t)}),a()(),i(6,"td")(7,"input",17),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Value,t)||(s.Value=t),p(t)}),a()()()}if(n&2){let e=r.$implicit;l(5),S("ngModel",e.Key),l(2),S("ngModel",e.Value)}}var y=class n{dialogRef=h(oe);toastr=h(q);config;headers=b([{Value:"",Key:""}]);host=b("");data=h(ie);lastHeader=L(()=>this.headers()[this.headers()?.length-1]);constructor(){this.initModalConfig(),this.data&&(this.host.set(this.data.Host),this.headers.set(this.data.Headers))}initModalConfig(){this.config=new ee,this.config.title="Host Request Header",this.config.customWidth="600px"}onRemoveHeader(r){let e=this.headers();e.splice(r,1),this.headers.set([...e])}onSave(){if(!this.validateForm())return;let r={Host:this.host(),Headers:this.headers()};this.dialogRef.close(r)}validateForm(){let r=!0;return this.host()||(this.toastr.error("Host is required","Invalid Host"),r=!1),this.headers().length===0&&r&&(this.toastr.error("At least one header is required","No Headers"),r=!1),this.headers().forEach((e,o)=>{(!e.Key||!e.Value)&&r&&(this.toastr.error(`Header ${o+1} is incomplete`,"Invalid Header"),r=!1)}),r}onClose(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=k({type:n,selectors:[["app-modal-webhook-request-header"]],decls:25,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","pt-4"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mb-8"],["type","text","id","host","name","host","placeholder","Host",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["for","host"],[1,"card-title"],[1,"table","table-bordered","custom-table"],[1,"thead-light","sticky-top-thead-webhook-request-header"],[2,"width","20px"],[1,"d-flex","justify-content-center"],["type","button",1,"btn","btn-outline-dark","btn-sm","bg-white","text-black",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-plus"],[2,"width","100px"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],["type","text","id","key","name","key","placeholder","Key",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["type","text","id","value","name","value","placeholder","Value",1,"form-control","bg-white",3,"ngModelChange","ngModel"]],template:function(e,o){if(e&1&&(i(0,"modal-material",0),m("onOk",function(){return o.onSave()})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"input",5),w("ngModelChange",function(s){return x(o.host,s)||(o.host=s),s}),a(),i(7,"label",6),d(8,"Host"),a()(),i(9,"h5",7),d(10,"Headers"),a(),i(11,"table",8)(12,"thead",9)(13,"tr")(14,"th",10)(15,"div",11)(16,"button",12),m("click",function(){return o.headers.set([...o.headers(),{Key:"",Value:""}])}),H(17,"i",13),a()()(),i(18,"th",14),d(19,"Key"),a(),i(20,"th"),d(21,"Value"),a()()(),i(22,"tbody"),C(23,he,8,2,"tr",null,g),a()()()()()()()),e&2){let t;_("config",o.config),l(6),S("ngModel",o.host),l(10),_("disabled",(!((t=o.lastHeader())!=null&&t.Key)||!((t=o.lastHeader())!=null&&t.Value))&&o.headers().length>0),l(7),v(o.headers())}},dependencies:[R,X,G,J,te,W,Q],styles:[".sticky-top-thead-webhook-request-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky!important;top:-16px!important;z-index:1020!important}"]})};function fe(n,r){if(n&1&&(i(0,"div"),d(1),a()),n&2){let e=r.$implicit;l(),B(" ",e.Key," : ",e.Value," ")}}function _e(n,r){if(n&1){let e=M();i(0,"tr",11),m("click",function(){let t=c(e),s=t.$implicit,D=t.$index,ce=u(2);return p(ce.onUpdateHost(s,D))}),i(1,"td")(2,"div",12)(3,"i",13),m("click",function(){let t=c(e).$index,s=u(2);return p(s.onRemoveHeader(t))}),a()()(),i(4,"td"),d(5),a(),i(6,"td"),C(7,fe,2,2,"div",null,g),a()()}if(n&2){let e=r.$implicit;l(5),O(e.Host),l(2),v(e.Headers)}}function be(n,r){if(n&1&&C(0,_e,9,1,"tr",10,g),n&2){let e=u();v(e.host())}}function ge(n,r){n&1&&K(0)}function Ce(n,r){if(n&1&&E(0,ge,1,0,"ng-container",14),n&2){u();let e=j(20);_("ngTemplateOutlet",e)}}function ve(n,r){n&1&&(i(0,"tr",15)(1,"td",16),H(2,"empty-state-table"),a()())}var me=class n extends de{constructor(e,o,t,s,D){super(e,o,V.WebhookRequestCustomHeaderLoader,t);this.activatedRoute=t;this.role=s;this.dialog=D}activatedRoute;role;dialog;host=b([]);toastr=h(q);postBindForm(e){let o=e.Form?.CustomHeaders;this.host.set(o)}addCustomHeader(){this.dialog.open(y).afterClosed().pipe(T(e=>!!e)).subscribe(e=>{if(e){let o=[...this.host(),e];this.saveHost(o)}})}onUpdateHost(e,o){this.dialog.open(y,{data:e}).afterClosed().pipe(T(t=>!!t)).subscribe(t=>{if(t){let s=[...this.host()];s[o]=t,this.saveHost(s)}})}onRemoveHeader(e){let o=this.host();o.splice(e,1);let t=[...o];this.saveHost(t)}saveHost(e){this.httpService.post(V.WebhookRequestCustomHeaderSave,e).subscribe({next:()=>{this.host.set(e),this.toastr.success("Host and headers saved successfully","Success")}})}static \u0275fac=function(o){return new(o||n)(f(re),f(z),f(Y),f(Z),f(ne))};static \u0275cmp=k({type:n,selectors:[["app-webhook-request-header"]],features:[F],decls:21,vars:4,consts:[["EMPTY_STATE",""],[3,"pageData","hideSearchDropdown","hideSearchBox"],["ngProjectAs","actions",5,["actions"]],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","mt-6"],[1,"row"],[1,"col-12"],[1,"table","table-stripped","custom-table"],[1,"thead-light","sticky-top-thead"],["width","30"],[1,"cursor-pointer"],[1,"cursor-pointer",3,"click"],[1,"d-flex","justify-content-center"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","3"]],template:function(o,t){o&1&&(i(0,"mainpanel-cmp",1),A(1,2),i(2,"button",3),m("click",function(){return t.addCustomHeader()}),d(3," Add "),a(),N(),i(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"table",7)(9,"thead",8)(10,"tr"),H(11,"th",9),i(12,"th"),d(13,"Host"),a(),i(14,"th"),d(15,"Headers"),a()()(),i(16,"tbody"),I(17,be,2,0)(18,Ce,1,1,"ng-container"),a()()()()(),E(19,ve,3,0,"ng-template",null,0,$),a()()),o&2&&(_("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(17),P(t.host().length>0?17:18))},dependencies:[R,U,se,ae,W,le],encapsulation:2})};export{me as WebhookRequestHeaderComponent};
1
+ import{a as de}from"./chunk-G3OKW7RE.js";import{a as le}from"./chunk-J7D4A2JN.js";import"./chunk-BYXBJQAS.js";import{g as ae,h as se}from"./chunk-T2BTYG4O.js";import"./chunk-SLMXA7HD.js";import"./chunk-TY23MB5Q.js";import{a as re}from"./chunk-DV2JKE7A.js";import"./chunk-JI7J6USO.js";import"./chunk-KIONH5BK.js";import"./chunk-4QOTBAUH.js";import"./chunk-W7I2IWJP.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-6CVWPBUM.js";import{a as oe,b as ie,c as ne}from"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as V}from"./chunk-DUAKLYOO.js";import{b as ee,c as te}from"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import{E as W,F as X,c as G,h as J,o as Q}from"./chunk-R36OIJC7.js";import"./chunk-LN5GPX2G.js";import"./chunk-75QDHX34.js";import"./chunk-AGPZGAMV.js";import{b as Z}from"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-APP64NKL.js";import{n as q,q as z}from"./chunk-ETYXTCKV.js";import{$a as f,Ba as b,Bb as C,Cb as v,D as T,Db as _,Eb as i,Fb as a,Gb as H,Kb as A,Lb as N,Lc as $,Mb as K,Nd as Y,Oc as L,Pb as M,Sb as m,Ua as l,Ub as u,cc as j,db as k,hc as d,ib as F,ic as O,jb as E,kc as B,mc as S,na as h,nc as x,nd as U,oc as w,ra as c,sa as p,vd as R,wb as I,yb as P,zb as g}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function he(n,r){if(n&1){let e=M();i(0,"tr")(1,"td")(2,"div",11)(3,"i",15),m("click",function(){let t=c(e).$index,s=u();return p(s.onRemoveHeader(t))}),a()()(),i(4,"td")(5,"input",16),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Key,t)||(s.Key=t),p(t)}),a()(),i(6,"td")(7,"input",17),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Value,t)||(s.Value=t),p(t)}),a()()()}if(n&2){let e=r.$implicit;l(5),S("ngModel",e.Key),l(2),S("ngModel",e.Value)}}var y=class n{dialogRef=h(oe);toastr=h(q);config;headers=b([{Value:"",Key:""}]);host=b("");data=h(ie);lastHeader=L(()=>this.headers()[this.headers()?.length-1]);constructor(){this.initModalConfig(),this.data&&(this.host.set(this.data.Host),this.headers.set(this.data.Headers))}initModalConfig(){this.config=new ee,this.config.title="Host Request Header",this.config.customWidth="600px"}onRemoveHeader(r){let e=this.headers();e.splice(r,1),this.headers.set([...e])}onSave(){if(!this.validateForm())return;let r={Host:this.host(),Headers:this.headers()};this.dialogRef.close(r)}validateForm(){let r=!0;return this.host()||(this.toastr.error("Host is required","Invalid Host"),r=!1),this.headers().length===0&&r&&(this.toastr.error("At least one header is required","No Headers"),r=!1),this.headers().forEach((e,o)=>{(!e.Key||!e.Value)&&r&&(this.toastr.error(`Header ${o+1} is incomplete`,"Invalid Header"),r=!1)}),r}onClose(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=k({type:n,selectors:[["app-modal-webhook-request-header"]],decls:25,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","pt-4"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mb-8"],["type","text","id","host","name","host","placeholder","Host",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["for","host"],[1,"card-title"],[1,"table","table-bordered","custom-table"],[1,"thead-light","sticky-top-thead-webhook-request-header"],[2,"width","20px"],[1,"d-flex","justify-content-center"],["type","button",1,"btn","btn-outline-dark","btn-sm","bg-white","text-black",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-plus"],[2,"width","100px"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],["type","text","id","key","name","key","placeholder","Key",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["type","text","id","value","name","value","placeholder","Value",1,"form-control","bg-white",3,"ngModelChange","ngModel"]],template:function(e,o){if(e&1&&(i(0,"modal-material",0),m("onOk",function(){return o.onSave()})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"input",5),w("ngModelChange",function(s){return x(o.host,s)||(o.host=s),s}),a(),i(7,"label",6),d(8,"Host"),a()(),i(9,"h5",7),d(10,"Headers"),a(),i(11,"table",8)(12,"thead",9)(13,"tr")(14,"th",10)(15,"div",11)(16,"button",12),m("click",function(){return o.headers.set([...o.headers(),{Key:"",Value:""}])}),H(17,"i",13),a()()(),i(18,"th",14),d(19,"Key"),a(),i(20,"th"),d(21,"Value"),a()()(),i(22,"tbody"),C(23,he,8,2,"tr",null,g),a()()()()()()()),e&2){let t;_("config",o.config),l(6),S("ngModel",o.host),l(10),_("disabled",(!((t=o.lastHeader())!=null&&t.Key)||!((t=o.lastHeader())!=null&&t.Value))&&o.headers().length>0),l(7),v(o.headers())}},dependencies:[R,X,G,J,te,W,Q],styles:[".sticky-top-thead-webhook-request-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky!important;top:-16px!important;z-index:1020!important}"]})};function fe(n,r){if(n&1&&(i(0,"div"),d(1),a()),n&2){let e=r.$implicit;l(),B(" ",e.Key," : ",e.Value," ")}}function _e(n,r){if(n&1){let e=M();i(0,"tr",11),m("click",function(){let t=c(e),s=t.$implicit,D=t.$index,ce=u(2);return p(ce.onUpdateHost(s,D))}),i(1,"td")(2,"div",12)(3,"i",13),m("click",function(){let t=c(e).$index,s=u(2);return p(s.onRemoveHeader(t))}),a()()(),i(4,"td"),d(5),a(),i(6,"td"),C(7,fe,2,2,"div",null,g),a()()}if(n&2){let e=r.$implicit;l(5),O(e.Host),l(2),v(e.Headers)}}function be(n,r){if(n&1&&C(0,_e,9,1,"tr",10,g),n&2){let e=u();v(e.host())}}function ge(n,r){n&1&&K(0)}function Ce(n,r){if(n&1&&E(0,ge,1,0,"ng-container",14),n&2){u();let e=j(20);_("ngTemplateOutlet",e)}}function ve(n,r){n&1&&(i(0,"tr",15)(1,"td",16),H(2,"empty-state-table"),a()())}var me=class n extends de{constructor(e,o,t,s,D){super(e,o,V.WebhookRequestCustomHeaderLoader,t);this.activatedRoute=t;this.role=s;this.dialog=D}activatedRoute;role;dialog;host=b([]);toastr=h(q);postBindForm(e){let o=e.Form?.CustomHeaders;this.host.set(o)}addCustomHeader(){this.dialog.open(y).afterClosed().pipe(T(e=>!!e)).subscribe(e=>{if(e){let o=[...this.host(),e];this.saveHost(o)}})}onUpdateHost(e,o){this.dialog.open(y,{data:e}).afterClosed().pipe(T(t=>!!t)).subscribe(t=>{if(t){let s=[...this.host()];s[o]=t,this.saveHost(s)}})}onRemoveHeader(e){let o=this.host();o.splice(e,1);let t=[...o];this.saveHost(t)}saveHost(e){this.httpService.post(V.WebhookRequestCustomHeaderSave,e).subscribe({next:()=>{this.host.set(e),this.toastr.success("Host and headers saved successfully","Success")}})}static \u0275fac=function(o){return new(o||n)(f(re),f(z),f(Y),f(Z),f(ne))};static \u0275cmp=k({type:n,selectors:[["app-webhook-request-header"]],features:[F],decls:21,vars:4,consts:[["EMPTY_STATE",""],[3,"pageData","hideSearchDropdown","hideSearchBox"],["ngProjectAs","actions",5,["actions"]],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","mt-6"],[1,"row"],[1,"col-12"],[1,"table","table-stripped","custom-table"],[1,"thead-light","sticky-top-thead"],["width","30"],[1,"cursor-pointer"],[1,"cursor-pointer",3,"click"],[1,"d-flex","justify-content-center"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","3"]],template:function(o,t){o&1&&(i(0,"mainpanel-cmp",1),A(1,2),i(2,"button",3),m("click",function(){return t.addCustomHeader()}),d(3," Add "),a(),N(),i(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"table",7)(9,"thead",8)(10,"tr"),H(11,"th",9),i(12,"th"),d(13,"Host"),a(),i(14,"th"),d(15,"Headers"),a()()(),i(16,"tbody"),I(17,be,2,0)(18,Ce,1,1,"ng-container"),a()()()()(),E(19,ve,3,0,"ng-template",null,0,$),a()()),o&2&&(_("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(17),P(t.host().length>0?17:18))},dependencies:[R,U,se,ae,W,le],encapsulation:2})};export{me as WebhookRequestHeaderComponent};