marketplacepos 5.43.2 → 5.43.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/Marketplace/3rdpartylicenses.txt +106 -106
  2. package/Marketplace/{chunk-DV6CR4ON.js → chunk-227LB3XT.js} +1 -1
  3. package/Marketplace/chunk-2CBZOVID.js +1 -0
  4. package/Marketplace/{chunk-EWP765EH.js → chunk-2EOAYJGX.js} +1 -1
  5. package/Marketplace/{chunk-F4H4L2MZ.js → chunk-2IDDYNBR.js} +1 -1
  6. package/Marketplace/{chunk-LS372KQR.js → chunk-2YTIJJIP.js} +1 -1
  7. package/Marketplace/{chunk-AG6WVG43.js → chunk-32WYK3BN.js} +1 -1
  8. package/Marketplace/{chunk-GFZNLP7T.js → chunk-3ASK736S.js} +1 -1
  9. package/Marketplace/{chunk-SXLKJLAE.js → chunk-3BT5DR3X.js} +1 -1
  10. package/Marketplace/{chunk-SIYMMMKQ.js → chunk-3LRWABHB.js} +1 -1
  11. package/Marketplace/{chunk-WBH4HJM5.js → chunk-3NMM37H7.js} +1 -1
  12. package/Marketplace/chunk-43XFDAKY.js +1 -0
  13. package/Marketplace/chunk-53FUEOBJ.js +1 -0
  14. package/Marketplace/chunk-5DODHGO5.js +1 -0
  15. package/Marketplace/{chunk-CNAOOCHA.js → chunk-5JVEEL2T.js} +1 -1
  16. package/Marketplace/{chunk-4CTORK4F.js → chunk-5KS4WK6H.js} +1 -1
  17. package/Marketplace/{chunk-OKAPL3YZ.js → chunk-5OHRA4AS.js} +1 -1
  18. package/Marketplace/{chunk-AEMYBJSZ.js → chunk-5TIGE5UP.js} +8 -8
  19. package/Marketplace/{chunk-QG5FNL4B.js → chunk-64IHCPTX.js} +1 -1
  20. package/Marketplace/chunk-66MLRB2J.js +5 -0
  21. package/Marketplace/{chunk-N2NHN3VW.js → chunk-67N4UGA5.js} +1 -1
  22. package/Marketplace/{chunk-SLZOAGEK.js → chunk-6FY74YFQ.js} +1 -1
  23. package/Marketplace/{chunk-PAUX3XL6.js → chunk-6LN62T32.js} +1 -1
  24. package/Marketplace/{chunk-PLKN56KI.js → chunk-6QYD6NIJ.js} +1 -1
  25. package/Marketplace/{chunk-7YWCBMKG.js → chunk-6W6DKFRE.js} +1 -1
  26. package/Marketplace/{chunk-U5DJKOE4.js → chunk-722SRHLY.js} +1 -1
  27. package/Marketplace/{chunk-ODP5RBKW.js → chunk-74FAXIJ6.js} +1 -1
  28. package/Marketplace/{chunk-WHZ44BAL.js → chunk-74IXJYWO.js} +1 -1
  29. package/Marketplace/{chunk-M5IQRAHV.js → chunk-7SVF5UPT.js} +1 -1
  30. package/Marketplace/{chunk-55OI2SUF.js → chunk-7UHCDGAA.js} +1 -1
  31. package/Marketplace/{chunk-NUGAU26U.js → chunk-7UWULSSK.js} +1 -1
  32. package/Marketplace/{chunk-X2RRI4VD.js → chunk-7ZXNQAAU.js} +1 -1
  33. package/Marketplace/{chunk-SLQA5QBT.js → chunk-A4BNLR77.js} +1 -1
  34. package/Marketplace/chunk-ADDTLV5D.js +2 -0
  35. package/Marketplace/chunk-AEOSNAHH.js +1 -0
  36. package/Marketplace/chunk-AQTXFEBA.js +1 -0
  37. package/Marketplace/{chunk-MZI5AYCE.js → chunk-ATZ475FN.js} +1 -1
  38. package/Marketplace/{chunk-LR4UZ2OS.js → chunk-AYPY47VM.js} +1 -1
  39. package/Marketplace/{chunk-2SXRC4IG.js → chunk-B5VBBEEN.js} +1 -1
  40. package/Marketplace/{chunk-OZ77CAJD.js → chunk-B73M3AMU.js} +1 -1
  41. package/Marketplace/{chunk-JS55A2RS.js → chunk-B7KTCPKC.js} +3 -3
  42. package/Marketplace/{chunk-IUE63ICJ.js → chunk-BFU7VKO3.js} +1 -1
  43. package/Marketplace/chunk-BLXMX3JN.js +1 -0
  44. package/Marketplace/{chunk-F2Z5B5F7.js → chunk-BTHDOSGS.js} +1 -1
  45. package/Marketplace/{chunk-HV6V6JHY.js → chunk-C4XFI4J7.js} +1 -1
  46. package/Marketplace/{chunk-ZYOC4667.js → chunk-CATX24UZ.js} +1 -1
  47. package/Marketplace/{chunk-HSKNABGC.js → chunk-CIIO2CJ6.js} +1 -1
  48. package/Marketplace/{chunk-QUKSBWYY.js → chunk-CLER2MX6.js} +1 -1
  49. package/Marketplace/{chunk-HPYTL6TX.js → chunk-CMTBBXR5.js} +1 -1
  50. package/Marketplace/{chunk-JRWFZQ5K.js → chunk-CROPN4YC.js} +1 -1
  51. package/Marketplace/chunk-CSBEB66Y.js +1 -0
  52. package/Marketplace/{chunk-JOBWFOGC.js → chunk-DDV4X5WD.js} +1 -1
  53. package/Marketplace/{chunk-FWG4H3QG.js → chunk-DRHWRRQV.js} +1 -1
  54. package/Marketplace/{chunk-O52OUAO2.js → chunk-DYWTLXMP.js} +1 -1
  55. package/Marketplace/{chunk-WGXUKTYP.js → chunk-E3ROEHBW.js} +1 -1
  56. package/Marketplace/{chunk-W2T2IE6B.js → chunk-E6XWD6WX.js} +1 -1
  57. package/Marketplace/{chunk-VRI3CYGG.js → chunk-ECRWEMEV.js} +1 -1
  58. package/Marketplace/{chunk-IUXKVT25.js → chunk-EH6HWI3G.js} +1 -1
  59. package/Marketplace/{chunk-GOH4NFHB.js → chunk-EK4VKN7N.js} +1 -1
  60. package/Marketplace/{chunk-E2CS7ZMC.js → chunk-EPVCMYCI.js} +1 -1
  61. package/Marketplace/{chunk-VB4FJ2II.js → chunk-FNEDIIIS.js} +1 -1
  62. package/Marketplace/chunk-FTGUKCA5.js +1 -0
  63. package/Marketplace/chunk-G47XGOST.js +1 -0
  64. package/Marketplace/{chunk-JTOYNS32.js → chunk-G6X5CZ34.js} +1 -1
  65. package/Marketplace/{chunk-ZWBIPCRI.js → chunk-GA7T6FWT.js} +1 -1
  66. package/Marketplace/{chunk-O7ADIUFO.js → chunk-GS3A2D4O.js} +1 -1
  67. package/Marketplace/{chunk-FBZW4Y3J.js → chunk-GSZJGR7K.js} +1 -1
  68. package/Marketplace/{chunk-O6U5QCHJ.js → chunk-H3IVI3LN.js} +1 -1
  69. package/Marketplace/{chunk-2IBGS5NP.js → chunk-H3J5OAIG.js} +1 -1
  70. package/Marketplace/{chunk-FQPTE3NE.js → chunk-H4OBICY5.js} +1 -1
  71. package/Marketplace/{chunk-TNKPTRB3.js → chunk-HYJVHRMN.js} +1 -1
  72. package/Marketplace/{chunk-JV4MMNGD.js → chunk-IA6KOBDJ.js} +1 -1
  73. package/Marketplace/chunk-IGXU4VAO.js +1 -0
  74. package/Marketplace/{chunk-2TZBEYNY.js → chunk-IL5JIRWJ.js} +1 -1
  75. package/Marketplace/chunk-IRK2APYZ.js +1 -0
  76. package/Marketplace/chunk-ISRFFTGW.js +1 -0
  77. package/Marketplace/{chunk-MQXPOHBV.js → chunk-J2KWRDVH.js} +1 -1
  78. package/Marketplace/{chunk-6LH7FSOW.js → chunk-JDIBETL5.js} +1 -1
  79. package/Marketplace/chunk-JFUCAI5X.js +1 -0
  80. package/Marketplace/{chunk-QNVCH6O7.js → chunk-JHEGROJF.js} +1 -1
  81. package/Marketplace/{chunk-CQP2B2TM.js → chunk-JILE74BG.js} +1 -1
  82. package/Marketplace/{chunk-EH44DQPL.js → chunk-JTIFX4RL.js} +2 -2
  83. package/Marketplace/chunk-JWARXDWM.js +1 -0
  84. package/Marketplace/{chunk-4M63ID5T.js → chunk-JXSBFTQM.js} +1 -1
  85. package/Marketplace/{chunk-SZECT5VQ.js → chunk-K2GYNGBL.js} +1 -1
  86. package/Marketplace/chunk-KDEVWOVI.js +1 -0
  87. package/Marketplace/{chunk-XEMNZHW6.js → chunk-L7K5HOBY.js} +1 -1
  88. package/Marketplace/{chunk-25OT4I3W.js → chunk-LA6B2JGP.js} +1 -1
  89. package/Marketplace/chunk-LUVP4A3V.js +1 -0
  90. package/Marketplace/{chunk-AVEGIEYT.js → chunk-LZCEM2PC.js} +1 -1
  91. package/Marketplace/{chunk-MTUIRWOB.js → chunk-M2FCTYGU.js} +1 -1
  92. package/Marketplace/{chunk-TCR2MYFZ.js → chunk-M5JQ7BGW.js} +1 -1
  93. package/Marketplace/{chunk-4CWRB5AG.js → chunk-M5XGP4SG.js} +1 -1
  94. package/Marketplace/{chunk-KX5AWR75.js → chunk-M7NQID2Z.js} +1 -1
  95. package/Marketplace/{chunk-USOWXH7U.js → chunk-MHCAI6KP.js} +1 -1
  96. package/Marketplace/chunk-MQD5HJA6.js +5 -0
  97. package/Marketplace/{chunk-AQ6ECUX3.js → chunk-MQQD4OJO.js} +1 -1
  98. package/Marketplace/{chunk-ZNDU44GH.js → chunk-NS46QSCM.js} +1 -1
  99. package/Marketplace/{chunk-KWQS4KX7.js → chunk-OAOQONOA.js} +1 -1
  100. package/Marketplace/{chunk-UF26HAKV.js → chunk-OC2FBL33.js} +1 -1
  101. package/Marketplace/{chunk-RM6R233Y.js → chunk-OLOIQI4D.js} +1 -1
  102. package/Marketplace/{chunk-KPW2PAKY.js → chunk-ONLHWPKX.js} +1 -1
  103. package/Marketplace/chunk-ORD5Z4XI.js +1 -0
  104. package/Marketplace/{chunk-UO4C5CL2.js → chunk-P42VFND7.js} +1 -1
  105. package/Marketplace/{chunk-KXS76PRS.js → chunk-PAEIUO2F.js} +1 -1
  106. package/Marketplace/{chunk-AP4EF2UL.js → chunk-PFB7XEYZ.js} +1 -1
  107. package/Marketplace/{chunk-IKPRRD5D.js → chunk-PFIBU2IX.js} +1 -1
  108. package/Marketplace/{chunk-W74FHQHW.js → chunk-PP3PVKNQ.js} +1 -1
  109. package/Marketplace/{chunk-5C44SGF2.js → chunk-PVY6MYHG.js} +1 -1
  110. package/Marketplace/{chunk-37J5GG7B.js → chunk-Q2U3MMNW.js} +1 -1
  111. package/Marketplace/{chunk-BXOEDDVZ.js → chunk-Q6TBOHRA.js} +1 -1
  112. package/Marketplace/{chunk-Y4M43RCV.js → chunk-QWHPQWPM.js} +1 -1
  113. package/Marketplace/chunk-R4GAF5EA.js +1 -0
  114. package/Marketplace/{chunk-GZXQUJKX.js → chunk-RECNBAEB.js} +1 -1
  115. package/Marketplace/{chunk-YSRNSXDO.js → chunk-RMCAWPWK.js} +1 -1
  116. package/Marketplace/{chunk-ANNMHZZT.js → chunk-RZU7PSKG.js} +1 -1
  117. package/Marketplace/chunk-S2HNMEC2.js +1 -0
  118. package/Marketplace/chunk-S5SDX7ZG.js +3 -0
  119. package/Marketplace/{chunk-NTW6FBP5.js → chunk-SB7NWPDS.js} +1 -1
  120. package/Marketplace/{chunk-F4GMWHYJ.js → chunk-SM3P57SO.js} +1 -1
  121. package/Marketplace/{chunk-WLKXZBL7.js → chunk-SN4AOGQK.js} +1 -1
  122. package/Marketplace/{chunk-VHALYIP4.js → chunk-SRVGUGY2.js} +1 -1
  123. package/Marketplace/{chunk-UJYSVGLV.js → chunk-SWQXSJ7O.js} +1 -1
  124. package/Marketplace/{chunk-SH7KN2AS.js → chunk-SYUFPF3D.js} +1 -1
  125. package/Marketplace/chunk-T6SBAKYS.js +1 -0
  126. package/Marketplace/{chunk-FIJNFHLO.js → chunk-UDIDZKN6.js} +1 -1
  127. package/Marketplace/{chunk-UF4FKEE7.js → chunk-UEPQYAWE.js} +1 -1
  128. package/Marketplace/{chunk-W2JHOFCS.js → chunk-UWIHXA2S.js} +1 -1
  129. package/Marketplace/{chunk-2BUABOHG.js → chunk-V5BKQSAT.js} +1 -1
  130. package/Marketplace/{chunk-KYIY3VQ6.js → chunk-VIMB2VWB.js} +1 -1
  131. package/Marketplace/{chunk-4OE3MMMX.js → chunk-VKMFDXJJ.js} +1 -1
  132. package/Marketplace/chunk-VYIEJVSJ.js +1 -0
  133. package/Marketplace/{chunk-5EQNOCXP.js → chunk-WPW3D4MQ.js} +1 -1
  134. package/Marketplace/{chunk-LWSRD5LF.js → chunk-WUHNNJ2C.js} +1 -1
  135. package/Marketplace/{chunk-CYWMBHSL.js → chunk-WW22F76D.js} +1 -1
  136. package/Marketplace/{chunk-GHBGGQNM.js → chunk-XUL4LU4R.js} +1 -1
  137. package/Marketplace/chunk-Y2QG7YNG.js +2 -0
  138. package/Marketplace/chunk-YB65PX7S.js +1 -0
  139. package/Marketplace/{chunk-HFKKITEW.js → chunk-YCH6HHU3.js} +1 -1
  140. package/Marketplace/{chunk-CZTCB6IN.js → chunk-YHKEECJR.js} +1 -1
  141. package/Marketplace/{chunk-2N2I6BF2.js → chunk-YMMOJKVP.js} +1 -1
  142. package/Marketplace/{chunk-PFUTB4ID.js → chunk-YRFZDTXH.js} +1 -1
  143. package/Marketplace/{chunk-WDF2BOO6.js → chunk-YT3P3EBI.js} +1 -1
  144. package/Marketplace/{chunk-K2AEH6J2.js → chunk-YUCD4HRB.js} +1 -1
  145. package/Marketplace/{chunk-CZVDXGFV.js → chunk-YZKPQRLO.js} +1 -1
  146. package/Marketplace/chunk-ZHZMT7GZ.js +1 -0
  147. package/Marketplace/index.html +2 -2
  148. package/Marketplace/main-ZMGZIM3D.js +1 -0
  149. package/package.json +1 -1
  150. package/Marketplace/chunk-2OBP7IGO.js +0 -1
  151. package/Marketplace/chunk-2SCFZLQO.js +0 -1
  152. package/Marketplace/chunk-2YV6WOL3.js +0 -1
  153. package/Marketplace/chunk-2ZTDLZVZ.js +0 -1
  154. package/Marketplace/chunk-36RDOY5Y.js +0 -2
  155. package/Marketplace/chunk-3FHLYPLG.js +0 -5
  156. package/Marketplace/chunk-4K4ZKRRO.js +0 -1
  157. package/Marketplace/chunk-4MOAWEAS.js +0 -1
  158. package/Marketplace/chunk-6ZS2L5PN.js +0 -2
  159. package/Marketplace/chunk-AROCRZ77.js +0 -1
  160. package/Marketplace/chunk-CKPC5U5G.js +0 -1
  161. package/Marketplace/chunk-DJILLV4M.js +0 -1
  162. package/Marketplace/chunk-ETSGUVUY.js +0 -1
  163. package/Marketplace/chunk-GJBLRYGL.js +0 -1
  164. package/Marketplace/chunk-JBRMFKFP.js +0 -1
  165. package/Marketplace/chunk-KM7AK6CM.js +0 -1
  166. package/Marketplace/chunk-KSJM72K6.js +0 -2
  167. package/Marketplace/chunk-LUKM5MU6.js +0 -4
  168. package/Marketplace/chunk-OQZUWV6H.js +0 -1
  169. package/Marketplace/chunk-POYJI64B.js +0 -1
  170. package/Marketplace/chunk-R54A2XXE.js +0 -1
  171. package/Marketplace/chunk-SCDRAKE5.js +0 -1
  172. package/Marketplace/chunk-SJPCH5QW.js +0 -1
  173. package/Marketplace/chunk-SXWLDBET.js +0 -1
  174. package/Marketplace/chunk-TTKODGQ5.js +0 -3
  175. package/Marketplace/chunk-TV4AND7E.js +0 -1
  176. package/Marketplace/chunk-VHON4PKV.js +0 -1
  177. package/Marketplace/chunk-YXWPKMEG.js +0 -1
  178. package/Marketplace/main-2VAZARFN.js +0 -1
@@ -1 +1 @@
1
- import{a as D}from"./chunk-JTOYNS32.js";import{a as fe}from"./chunk-ZNDU44GH.js";import"./chunk-F4GMWHYJ.js";import{a as U}from"./chunk-5DIRXS7I.js";import"./chunk-VRI3CYGG.js";import"./chunk-AVEGIEYT.js";import{a as re}from"./chunk-Z3ITXK3D.js";import{a as pe}from"./chunk-ACIMXBIC.js";import"./chunk-V3NCYRCF.js";import{b as ae}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import{c as oe}from"./chunk-PW42BQIY.js";import{m as me,n as ue}from"./chunk-QUKSBWYY.js";import{A as ie}from"./chunk-PLKN56KI.js";import"./chunk-MZI5AYCE.js";import{b as le,c as se}from"./chunk-UJYSVGLV.js";import{r as de,s as ce}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{E as Y,G as ee,H as te,J as ne,d as K,g as Q,j as W,m as X,n as P}from"./chunk-MTUIRWOB.js";import{$c as _,Gb as x,Gc as s,Hc as h,Ic as z,Jb as L,Mb as m,Nc as q,Oc as $,Pc as C,Qc as j,Sc as I,Tc as J,Yb as p,Z as V,aa as w,ac as S,ad as y,dc as T,ec as k,gc as A,hc as H,ic as a,jc as l,kc as u,lc as g,mc as v,ob as F,oc as B,pa as b,rb as r,rd as Z,tc as G,uc as c,v as M,ya as N,za as R}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import{a as E,b as O}from"./chunk-66YHNWRR.js";var ge=(()=>{class t{transform(e){return typeof e=="number"&&(e=e.toString()),e!=null?e.replace(/\n/g,"<br />"):e}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=L({name:"newlines",type:t,pure:!0})}}return t})();var Ce=t=>({disabled:t}),_e=(t,d)=>({labelFilledInput:t,labelEmptyInput:d});function ye(t,d){if(t&1&&(a(0,"p"),s(1),_(2,"number"),l()),t&2){let e=c();r(),h(e.inputValueType()==="number"?y(2,1,e.inputValue):e.inputValue)}}function xe(t,d){if(t&1&&(u(0,"p",3),_(1,"newlines")),t&2){let e=c();p("innerHTML",y(1,1,e.inputValue),F)}}function Ie(t,d){if(t&1&&(g(0),s(1),v()),t&2){let e=c();r(),z(" ",e.labelValue," ")}}var ve=(()=>{class t{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=pe.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(o,n){o&1&&(a(0,"div",0),m(1,ye,3,3,"p",1)(2,xe,2,3,"p",2),a(3,"label"),m(4,Ie,2,1,"ng-container",1),l()()),o&2&&(S(n.class),p("ngClass",I(9,Ce,n.disabled))("matTooltip",n.tooltip),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),r(),S(J(11,_e,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),r(),p("ngIf",n.labelVisible))},dependencies:[P,K,Q,X,ge,ce,de],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return t})();var Pe=t=>({ID:t});function Me(t,d){if(t&1){let e=B();a(0,"button",24),G("click",function(){N(e);let n=c(2),i=C(0);return R(n.onDeleteUser(i==null||i.selectedUser==null?null:i.selectedUser.ID))}),u(1,"i",25),s(2," Delete "),l()}}function Se(t,d){if(t&1&&(g(0),m(1,Me,3,0,"button",23),v()),t&2){let e,o=c(),n=C(0);r(),T((n==null||n.selectedUser==null?null:n.selectedUser.Name)!==((e=o.currentLoginUser())==null?null:e.username)?1:-1)}}function Te(t,d){if(t&1&&(g(0),a(1,"a",26),u(2,"i",27),s(3," Edit "),l(),v()),t&2){c();let e=C(0);r(),p("queryParams",I(1,Pe,e==null||e.selectedUser==null?null:e.selectedUser.ID))}}function Ue(t,d){t&1&&(a(0,"div",20),s(1," All channels assigned to this user "),l())}function De(t,d){if(t&1&&u(0,"p-chip",28),t&2){let e=d.$implicit;p("label",e.Name)("image",e.logo)("alt",e.Name)}}function Ee(t,d){if(t&1&&A(0,De,1,3,"p-chip",28,k),t&2){c();let e=C(0);H(e==null?null:e.selectedChannels)}}var ot=(()=>{class t{constructor(){this.userService=b(D),this.activatedRoute=b(Y),this.toastService=b(ae),this.router=b(ee),this.userLoader$=this.activatedRoute.queryParams.pipe(w(e=>{let o=e.ID||null;return this.userService.getUserFormLoader(o).pipe(V(1),M(n=>(n.Options.Channels=oe.assignChannelLogo(n.Options.Channels),n)))}),M(e=>{let o=e.Options.Users.find(f=>f.ID===e.Form?.ID),n=e.Options.Groups.find(f=>f.ID===e.Form?.GroupID),i=e.Options.Channels.filter(f=>e.UserChannels?.includes(f.ID));return O(E({},e),{selectedUser:o||null,selectedGroup:n||null,selectedChannels:i||[],DownloadOrderDaysRange:e.Form?.DownloadOrderDaysRange||"0"})})),this.userEditRole=U.UserEdit,this.userDeleteRole=U.UserDelete,this.currentLoginUser=Z(()=>{let e=localStorage.getItem(re.AUTHORIZATION);return e?JSON.parse(e):null})}onDeleteUser(e){confirm("Are you sure you want to delete this user?")&&this.userService.deleteUsers([e]).subscribe({next:()=>{this.router.navigate(["/menu/users/users"]),this.toastService.success("User deleted successfully","Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-user-info"]],features:[j([D])],decls:50,vars:12,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5","bg-light-gray"],[1,"row","mt-8"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8","pb-4"],[1,"row"],[1,"col-6"],[1,"info-label-group"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","channel-tab","data-bs-toggle","tab","data-bs-target","#channel-tab-pane","type","button","role","tab","aria-controls","channel-tab-pane","aria-selected","true",1,"nav-link","active"],["id","restriction-tab","data-bs-toggle","tab","data-bs-target","#restriction-tab-pane","type","button","role","tab","aria-controls","restriction-tab-pane","aria-selected","false",1,"nav-link"],[1,"card","rounded-0","border-top-0"],[1,"card-body","pb-4"],["id","myTabContent",1,"tab-content"],["id","channel-tab-pane","role","tabpanel","aria-labelledby","channel-tab","tabindex","0",1,"tab-pane","fade","show","active"],[1,"text-center","fs-5","opacity-50"],["id","restriction-tab-pane","role","tabpanel","aria-labelledby","restriction-tab-pane","tabindex","1",1,"tab-pane","fade"],["tooltip","How many days of past orders this user can download.","labelValue","Download Order Days Range","inputType","input",3,"inputValue"],[1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"]],template:function(o,n){if(o&1&&(q(0),_(1,"async"),a(2,"mainpanel",0)(3,"actions")(4,"div",1),m(5,Se,2,1,"ng-container",2)(6,Te,4,3,"ng-container",2),l()(),a(7,"content")(8,"div",3)(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"h3"),s(14,"User Information"),l()(),a(15,"div",8)(16,"div",9)(17,"div",10)(18,"div",11)(19,"label"),s(20,"Selected User"),l(),a(21,"div")(22,"span"),s(23),l()()()(),a(24,"div",10)(25,"div",11)(26,"label"),s(27,"Selected Group"),l(),a(28,"div")(29,"span"),s(30),l()()()()()()()()(),a(31,"div",9)(32,"div",5)(33,"ul",12)(34,"li",13)(35,"button",14),s(36," Channels Filter "),l()(),a(37,"li",13)(38,"button",15),s(39," Restriction "),l()()(),a(40,"div",16)(41,"div",17)(42,"div",18)(43,"div",19),m(44,Ue,2,0,"div",20)(45,Ee,2,0),l(),a(46,"div",21)(47,"div",9)(48,"div",10),u(49,"lib-info-page-input",22),l()()()()()()()()()()()),o&2){let i=$(y(1,9,n.userLoader$));r(2),p("headerTitle",(i==null||i.selectedUser==null?null:i.selectedUser.Name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),r(3),p("ngxPermissionsOnly",n.userDeleteRole),r(),p("ngxPermissionsOnly",n.userEditRole),r(17),h(i==null||i.selectedUser==null?null:i.selectedUser.Name),r(7),h(i==null||i.selectedGroup==null?null:i.selectedGroup.Name),r(14),T((i==null||i.selectedChannels==null?null:i.selectedChannels.length)===0?44:45),r(5),p("inputValue",i==null?null:i.DownloadOrderDaysRange)}},dependencies:[P,W,ue,me,ie,ne,te,fe,se,le,ve],styles:[".nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:focus, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff}"]})}}return t})();export{ot as UserInfoComponent};
1
+ import{a as D}from"./chunk-G6X5CZ34.js";import{a as fe}from"./chunk-NS46QSCM.js";import"./chunk-SM3P57SO.js";import{a as U}from"./chunk-5DIRXS7I.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as re}from"./chunk-Z3ITXK3D.js";import{a as pe}from"./chunk-ACIMXBIC.js";import"./chunk-V3NCYRCF.js";import{c as oe}from"./chunk-PW42BQIY.js";import{b as le,c as se}from"./chunk-SWQXSJ7O.js";import{b as ae}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as me,n as ue}from"./chunk-CLER2MX6.js";import{A as ie}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as de,s as ce}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{E as Y,G as ee,H as te,J as ne,d as K,g as Q,j as W,m as X,n as P}from"./chunk-M2FCTYGU.js";import{$c as _,Gb as x,Gc as s,Hc as h,Ic as z,Jb as L,Mb as m,Nc as q,Oc as $,Pc as C,Qc as j,Sc as I,Tc as J,Yb as p,Z as V,aa as w,ac as S,ad as y,dc as T,ec as k,gc as A,hc as H,ic as a,jc as l,kc as u,lc as g,mc as v,ob as F,oc as B,pa as b,rb as r,rd as Z,tc as G,uc as c,v as M,ya as N,za as R}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as E,b as O}from"./chunk-66YHNWRR.js";var ge=(()=>{class t{transform(e){return typeof e=="number"&&(e=e.toString()),e!=null?e.replace(/\n/g,"<br />"):e}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=L({name:"newlines",type:t,pure:!0})}}return t})();var Ce=t=>({disabled:t}),_e=(t,d)=>({labelFilledInput:t,labelEmptyInput:d});function ye(t,d){if(t&1&&(a(0,"p"),s(1),_(2,"number"),l()),t&2){let e=c();r(),h(e.inputValueType()==="number"?y(2,1,e.inputValue):e.inputValue)}}function xe(t,d){if(t&1&&(u(0,"p",3),_(1,"newlines")),t&2){let e=c();p("innerHTML",y(1,1,e.inputValue),F)}}function Ie(t,d){if(t&1&&(g(0),s(1),v()),t&2){let e=c();r(),z(" ",e.labelValue," ")}}var ve=(()=>{class t{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=pe.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(o,n){o&1&&(a(0,"div",0),m(1,ye,3,3,"p",1)(2,xe,2,3,"p",2),a(3,"label"),m(4,Ie,2,1,"ng-container",1),l()()),o&2&&(S(n.class),p("ngClass",I(9,Ce,n.disabled))("matTooltip",n.tooltip),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),r(),S(J(11,_e,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),r(),p("ngIf",n.labelVisible))},dependencies:[P,K,Q,X,ge,ce,de],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return t})();var Pe=t=>({ID:t});function Me(t,d){if(t&1){let e=B();a(0,"button",24),G("click",function(){N(e);let n=c(2),i=C(0);return R(n.onDeleteUser(i==null||i.selectedUser==null?null:i.selectedUser.ID))}),u(1,"i",25),s(2," Delete "),l()}}function Se(t,d){if(t&1&&(g(0),m(1,Me,3,0,"button",23),v()),t&2){let e,o=c(),n=C(0);r(),T((n==null||n.selectedUser==null?null:n.selectedUser.Name)!==((e=o.currentLoginUser())==null?null:e.username)?1:-1)}}function Te(t,d){if(t&1&&(g(0),a(1,"a",26),u(2,"i",27),s(3," Edit "),l(),v()),t&2){c();let e=C(0);r(),p("queryParams",I(1,Pe,e==null||e.selectedUser==null?null:e.selectedUser.ID))}}function Ue(t,d){t&1&&(a(0,"div",20),s(1," All channels assigned to this user "),l())}function De(t,d){if(t&1&&u(0,"p-chip",28),t&2){let e=d.$implicit;p("label",e.Name)("image",e.logo)("alt",e.Name)}}function Ee(t,d){if(t&1&&A(0,De,1,3,"p-chip",28,k),t&2){c();let e=C(0);H(e==null?null:e.selectedChannels)}}var ot=(()=>{class t{constructor(){this.userService=b(D),this.activatedRoute=b(Y),this.toastService=b(ae),this.router=b(ee),this.userLoader$=this.activatedRoute.queryParams.pipe(w(e=>{let o=e.ID||null;return this.userService.getUserFormLoader(o).pipe(V(1),M(n=>(n.Options.Channels=oe.assignChannelLogo(n.Options.Channels),n)))}),M(e=>{let o=e.Options.Users.find(f=>f.ID===e.Form?.ID),n=e.Options.Groups.find(f=>f.ID===e.Form?.GroupID),i=e.Options.Channels.filter(f=>e.UserChannels?.includes(f.ID));return O(E({},e),{selectedUser:o||null,selectedGroup:n||null,selectedChannels:i||[],DownloadOrderDaysRange:e.Form?.DownloadOrderDaysRange||"0"})})),this.userEditRole=U.UserEdit,this.userDeleteRole=U.UserDelete,this.currentLoginUser=Z(()=>{let e=localStorage.getItem(re.AUTHORIZATION);return e?JSON.parse(e):null})}onDeleteUser(e){confirm("Are you sure you want to delete this user?")&&this.userService.deleteUsers([e]).subscribe({next:()=>{this.router.navigate(["/menu/users/users"]),this.toastService.success("User deleted successfully","Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-user-info"]],features:[j([D])],decls:50,vars:12,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5","bg-light-gray"],[1,"row","mt-8"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8","pb-4"],[1,"row"],[1,"col-6"],[1,"info-label-group"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","channel-tab","data-bs-toggle","tab","data-bs-target","#channel-tab-pane","type","button","role","tab","aria-controls","channel-tab-pane","aria-selected","true",1,"nav-link","active"],["id","restriction-tab","data-bs-toggle","tab","data-bs-target","#restriction-tab-pane","type","button","role","tab","aria-controls","restriction-tab-pane","aria-selected","false",1,"nav-link"],[1,"card","rounded-0","border-top-0"],[1,"card-body","pb-4"],["id","myTabContent",1,"tab-content"],["id","channel-tab-pane","role","tabpanel","aria-labelledby","channel-tab","tabindex","0",1,"tab-pane","fade","show","active"],[1,"text-center","fs-5","opacity-50"],["id","restriction-tab-pane","role","tabpanel","aria-labelledby","restriction-tab-pane","tabindex","1",1,"tab-pane","fade"],["tooltip","How many days of past orders this user can download.","labelValue","Download Order Days Range","inputType","input",3,"inputValue"],[1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"]],template:function(o,n){if(o&1&&(q(0),_(1,"async"),a(2,"mainpanel",0)(3,"actions")(4,"div",1),m(5,Se,2,1,"ng-container",2)(6,Te,4,3,"ng-container",2),l()(),a(7,"content")(8,"div",3)(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"h3"),s(14,"User Information"),l()(),a(15,"div",8)(16,"div",9)(17,"div",10)(18,"div",11)(19,"label"),s(20,"Selected User"),l(),a(21,"div")(22,"span"),s(23),l()()()(),a(24,"div",10)(25,"div",11)(26,"label"),s(27,"Selected Group"),l(),a(28,"div")(29,"span"),s(30),l()()()()()()()()(),a(31,"div",9)(32,"div",5)(33,"ul",12)(34,"li",13)(35,"button",14),s(36," Channels Filter "),l()(),a(37,"li",13)(38,"button",15),s(39," Restriction "),l()()(),a(40,"div",16)(41,"div",17)(42,"div",18)(43,"div",19),m(44,Ue,2,0,"div",20)(45,Ee,2,0),l(),a(46,"div",21)(47,"div",9)(48,"div",10),u(49,"lib-info-page-input",22),l()()()()()()()()()()()),o&2){let i=$(y(1,9,n.userLoader$));r(2),p("headerTitle",(i==null||i.selectedUser==null?null:i.selectedUser.Name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),r(3),p("ngxPermissionsOnly",n.userDeleteRole),r(),p("ngxPermissionsOnly",n.userEditRole),r(17),h(i==null||i.selectedUser==null?null:i.selectedUser.Name),r(7),h(i==null||i.selectedGroup==null?null:i.selectedGroup.Name),r(14),T((i==null||i.selectedChannels==null?null:i.selectedChannels.length)===0?44:45),r(5),p("inputValue",i==null?null:i.DownloadOrderDaysRange)}},dependencies:[P,W,ue,me,ie,ne,te,fe,se,le,ve],styles:[".nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:focus, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff}"]})}}return t})();export{ot as UserInfoComponent};
@@ -1 +1 @@
1
- import{c as E}from"./chunk-PW42BQIY.js";import{n as b}from"./chunk-MTUIRWOB.js";import{Gb as v,Gc as r,Hc as T,Ic as d,Jb as D,Mb as _,Oa as f,Yb as g,dc as h,ec as C,gc as w,hc as y,ic as a,jc as i,kc as m,pb as u,rb as n,uc as x}from"./chunk-JS55A2RS.js";var L=(()=>{class t{transform(e){return E.getChannelLogoByTypeId(e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=D({name:"channelImage",type:t,pure:!0})}}return t})();function S(t,l){if(t&1&&m(0,"img",8),t&2){let e=x().$implicit;g("src",e==null?null:e.ThumbnailURL,u)}}function V(t,l){t&1&&m(0,"img",9)}function F(t,l){if(t&1&&_(0,S,1,1,"img",8)(1,V,1,0,"img",9),t&2){let e=l.$implicit;h(e!=null&&e.ThumbnailURL?0:1)}}function j(t,l){if(t&1&&m(0,"img",12),t&2){let e=x().$implicit;g("src",e==null?null:e.ThumbnailURL,u)}}function P(t,l){t&1&&m(0,"img",13)}function q(t,l){if(t&1&&(a(0,"div",15),r(1),i()),t&2){let e=x().$implicit;n(),d("x",e.Quantity,"")}}function U(t,l){if(t&1&&(a(0,"li")(1,"div",10)(2,"div",11),_(3,j,1,1,"img",12)(4,P,1,0,"img",13),a(5,"div",14)(6,"div",15),r(7),i(),a(8,"div",16),r(9),i()()(),_(10,q,2,1,"div",15),i()()),t&2){let e=l.$implicit;n(3),h(e!=null&&e.ThumbnailURL?3:4),n(4),T(e.Name),n(2),T(e.Code),n(),h(e.Quantity>1?10:-1)}}var B=(()=>{class t{constructor(){this.variants=f()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=v({type:t,selectors:[["variants-dropdown"]],inputs:{variants:[1,"variants"]},decls:15,vars:2,consts:[[1,"dropdown","pe-6"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","dropdown-toggle","border-0","d-flex","align-items-center","justify-content-between","gap-4","w-100",2,"padding","0px"],[1,"text-start"],[1,"fs-6"],[1,"d-flex","align-items-center","gap-2"],[1,"fa-regular","fa-angle-down"],[1,"dropdown-menu","p-3"],[1,"ms-6","mt-3","text-black"],[1,"thumb-square","border","border-opacity-10",3,"src"],["src","https://cdn.dealpos.app/template/products_thumb.png",1,"border","border-opacity-10","thumb-square"],[1,"dropdown-item","d-flex","align-items-center","gap-5","justify-content-between",2,"padding-left","8px","padding-right","8px"],[1,"d-flex","align-items-center","justify-content-start","gap-5"],[1,"thumb-square-lg","border","border-opacity-10",3,"src"],["src","https://cdn.dealpos.app/template/products_thumb.png",1,"thumb-square-lg","border","border-opacity-10"],[1,"lh-base"],[1,"text-black"],[1,"text-muted"]],template:function(o,p){if(o&1&&(a(0,"div",0)(1,"button",1)(2,"div",2)(3,"div",3),r(4),i(),a(5,"div",4),w(6,F,2,1,null,null,C),i()(),a(8,"div"),m(9,"i",5),i()(),a(10,"ul",6)(11,"h5",7),r(12),i(),w(13,U,11,4,"li",null,C),i()()),o&2){let s,c;n(4),d("",(s=p.variants())==null?null:s.length," items"),n(2),y(p.variants()),n(6),d("",(c=p.variants())==null?null:c.length," Items"),n(),y(p.variants())}},dependencies:[b],styles:[".dropdown-toggle[_ngcontent-%COMP%]:after{display:none!important}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}.thumb-square[_ngcontent-%COMP%]{width:26px;height:26px;object-fit:contain;object-position:center}.thumb-square-lg[_ngcontent-%COMP%]{width:50px;height:50px;object-fit:contain;object-position:center}"]})}}return t})();var G=(()=>{class t{constructor(){this.variant=f()}ngOnInit(){}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=v({type:t,selectors:[["variant-with-image"]],inputs:{variant:[1,"variant"]},decls:8,vars:3,consts:[[1,"d-flex","align-items-center","gap-5"],[1,"thumb-square-lg","border","border-opacity-10",3,"src"],[1,"lh-base"],[1,"text-black"],[1,"text-muted"]],template:function(o,p){if(o&1&&(a(0,"div",0)(1,"div"),m(2,"img",1),i(),a(3,"div",2)(4,"div",3),r(5),i(),a(6,"div",4),r(7),i()()()),o&2){let s,c,I;n(2),g("src",((s=p.variant())==null?null:s.ThumbnailURL)||"https://cdn.dealpos.app/template/products_thumb.png",u),n(3),d(" ",(c=p.variant())==null?null:c.Name," "),n(2),d(" ",(I=p.variant())==null?null:I.Code," ")}},dependencies:[b],styles:[".thumb-square-lg[_ngcontent-%COMP%]{width:50px;height:50px;object-fit:contain;object-position:center}"]})}}return t})();export{L as a,B as b,G as c};
1
+ import{c as E}from"./chunk-PW42BQIY.js";import{n as b}from"./chunk-M2FCTYGU.js";import{Gb as v,Gc as r,Hc as T,Ic as d,Jb as D,Mb as _,Oa as f,Yb as g,dc as h,ec as C,gc as w,hc as y,ic as a,jc as i,kc as m,pb as u,rb as n,uc as x}from"./chunk-B7KTCPKC.js";var L=(()=>{class t{transform(e){return E.getChannelLogoByTypeId(e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=D({name:"channelImage",type:t,pure:!0})}}return t})();function S(t,l){if(t&1&&m(0,"img",8),t&2){let e=x().$implicit;g("src",e==null?null:e.ThumbnailURL,u)}}function V(t,l){t&1&&m(0,"img",9)}function F(t,l){if(t&1&&_(0,S,1,1,"img",8)(1,V,1,0,"img",9),t&2){let e=l.$implicit;h(e!=null&&e.ThumbnailURL?0:1)}}function j(t,l){if(t&1&&m(0,"img",12),t&2){let e=x().$implicit;g("src",e==null?null:e.ThumbnailURL,u)}}function P(t,l){t&1&&m(0,"img",13)}function q(t,l){if(t&1&&(a(0,"div",15),r(1),i()),t&2){let e=x().$implicit;n(),d("x",e.Quantity,"")}}function U(t,l){if(t&1&&(a(0,"li")(1,"div",10)(2,"div",11),_(3,j,1,1,"img",12)(4,P,1,0,"img",13),a(5,"div",14)(6,"div",15),r(7),i(),a(8,"div",16),r(9),i()()(),_(10,q,2,1,"div",15),i()()),t&2){let e=l.$implicit;n(3),h(e!=null&&e.ThumbnailURL?3:4),n(4),T(e.Name),n(2),T(e.Code),n(),h(e.Quantity>1?10:-1)}}var B=(()=>{class t{constructor(){this.variants=f()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=v({type:t,selectors:[["variants-dropdown"]],inputs:{variants:[1,"variants"]},decls:15,vars:2,consts:[[1,"dropdown","pe-6"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","dropdown-toggle","border-0","d-flex","align-items-center","justify-content-between","gap-4","w-100",2,"padding","0px"],[1,"text-start"],[1,"fs-6"],[1,"d-flex","align-items-center","gap-2"],[1,"fa-regular","fa-angle-down"],[1,"dropdown-menu","p-3"],[1,"ms-6","mt-3","text-black"],[1,"thumb-square","border","border-opacity-10",3,"src"],["src","https://cdn.dealpos.app/template/products_thumb.png",1,"border","border-opacity-10","thumb-square"],[1,"dropdown-item","d-flex","align-items-center","gap-5","justify-content-between",2,"padding-left","8px","padding-right","8px"],[1,"d-flex","align-items-center","justify-content-start","gap-5"],[1,"thumb-square-lg","border","border-opacity-10",3,"src"],["src","https://cdn.dealpos.app/template/products_thumb.png",1,"thumb-square-lg","border","border-opacity-10"],[1,"lh-base"],[1,"text-black"],[1,"text-muted"]],template:function(o,p){if(o&1&&(a(0,"div",0)(1,"button",1)(2,"div",2)(3,"div",3),r(4),i(),a(5,"div",4),w(6,F,2,1,null,null,C),i()(),a(8,"div"),m(9,"i",5),i()(),a(10,"ul",6)(11,"h5",7),r(12),i(),w(13,U,11,4,"li",null,C),i()()),o&2){let s,c;n(4),d("",(s=p.variants())==null?null:s.length," items"),n(2),y(p.variants()),n(6),d("",(c=p.variants())==null?null:c.length," Items"),n(),y(p.variants())}},dependencies:[b],styles:[".dropdown-toggle[_ngcontent-%COMP%]:after{display:none!important}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}.thumb-square[_ngcontent-%COMP%]{width:26px;height:26px;object-fit:contain;object-position:center}.thumb-square-lg[_ngcontent-%COMP%]{width:50px;height:50px;object-fit:contain;object-position:center}"]})}}return t})();var G=(()=>{class t{constructor(){this.variant=f()}ngOnInit(){}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=v({type:t,selectors:[["variant-with-image"]],inputs:{variant:[1,"variant"]},decls:8,vars:3,consts:[[1,"d-flex","align-items-center","gap-5"],[1,"thumb-square-lg","border","border-opacity-10",3,"src"],[1,"lh-base"],[1,"text-black"],[1,"text-muted"]],template:function(o,p){if(o&1&&(a(0,"div",0)(1,"div"),m(2,"img",1),i(),a(3,"div",2)(4,"div",3),r(5),i(),a(6,"div",4),r(7),i()()()),o&2){let s,c,I;n(2),g("src",((s=p.variant())==null?null:s.ThumbnailURL)||"https://cdn.dealpos.app/template/products_thumb.png",u),n(3),d(" ",(c=p.variant())==null?null:c.Name," "),n(2),d(" ",(I=p.variant())==null?null:I.Code," ")}},dependencies:[b],styles:[".thumb-square-lg[_ngcontent-%COMP%]{width:50px;height:50px;object-fit:contain;object-position:center}"]})}}return t})();export{L as a,B as b,G as c};
@@ -1,4 +1,4 @@
1
- import{a as ft}from"./chunk-2SXRC4IG.js";import{a as ht}from"./chunk-WGXUKTYP.js";import{a as J,b as vt}from"./chunk-LR4UZ2OS.js";import{a as $}from"./chunk-VRI3CYGG.js";import{D as F,G as W,Q as U,Y as ut,ba as pt,ia as dt,ja as G,k as lt,q as ct,r as bt,s as L,z as q}from"./chunk-AVEGIEYT.js";import{d as st,i as rt,n as k,o as z}from"./chunk-MTUIRWOB.js";import{Ac as x,Bb as R,Bc as l,Ca as h,Cc as c,Gb as g,Hb as tt,Kb as m,Lb as et,Mb as u,Oa as d,Pa as Z,Qc as nt,Ra as P,Sc as it,Xb as r,Yb as M,_b as _,dc as y,ia as B,ic as D,ja as X,jc as N,ka as Y,kc as S,nc as j,oc as A,od as C,pa as p,pd as at,rb as v,rd as s,sd as ot,tc as I,uc as f,vc as T,wc as w,ya as O,za as V,zc as Q}from"./chunk-JS55A2RS.js";var _t=["previcon"],yt=["nexticon"],Tt=["content"],wt=["prevButton"],xt=["nextButton"],Ct=["inkbar"],kt=["tabs"],E=["*"],$t=e=>({"p-tablist-viewport":e});function Bt(e,b){e&1&&j(0)}function Dt(e,b){if(e&1&&u(0,Bt,1,0,"ng-container",11),e&2){let t=f(2);M("ngTemplateOutlet",t.prevIconTemplate||t._prevIconTemplate)}}function It(e,b){e&1&&S(0,"ChevronLeftIcon")}function Lt(e,b){if(e&1){let t=A();D(0,"button",10,3),I("click",function(){O(t);let n=f();return V(n.onPrevButtonClick())}),u(2,Dt,1,1,"ng-container")(3,It,1,0,"ChevronLeftIcon"),N()}if(e&2){let t=f();r("aria-label",t.prevButtonAriaLabel)("tabindex",t.tabindex())("data-pc-group-section","navigator"),v(2),y(t.prevIconTemplate||t._prevIconTemplate?2:3)}}function Ft(e,b){e&1&&j(0)}function Et(e,b){if(e&1&&u(0,Ft,1,0,"ng-container",11),e&2){let t=f(2);M("ngTemplateOutlet",t.nextIconTemplate||t._nextIconTemplate)}}function Ot(e,b){e&1&&S(0,"ChevronRightIcon")}function Vt(e,b){if(e&1){let t=A();D(0,"button",12,4),I("click",function(){O(t);let n=f();return V(n.onNextButtonClick())}),u(2,Et,1,1,"ng-container")(3,Ot,1,0,"ChevronRightIcon"),N()}if(e&2){let t=f();r("aria-label",t.nextButtonAriaLabel)("tabindex",t.tabindex())("data-pc-group-section","navigator"),v(2),y(t.nextIconTemplate||t._nextIconTemplate?2:3)}}function Pt(e,b){e&1&&w(0)}var Rt=({dt:e})=>`
1
+ import{a as ft}from"./chunk-B5VBBEEN.js";import{a as ht}from"./chunk-E3ROEHBW.js";import{a as J,b as vt}from"./chunk-AYPY47VM.js";import{a as $}from"./chunk-ECRWEMEV.js";import{D as F,G as W,Q as U,Y as ut,ba as pt,ia as dt,ja as G,k as lt,q as ct,r as bt,s as L,z as q}from"./chunk-LZCEM2PC.js";import{d as st,i as rt,n as k,o as z}from"./chunk-M2FCTYGU.js";import{Ac as x,Bb as R,Bc as l,Ca as h,Cc as c,Gb as g,Hb as tt,Kb as m,Lb as et,Mb as u,Oa as d,Pa as Z,Qc as nt,Ra as P,Sc as it,Xb as r,Yb as M,_b as _,dc as y,ia as B,ic as D,ja as X,jc as N,ka as Y,kc as S,nc as j,oc as A,od as C,pa as p,pd as at,rb as v,rd as s,sd as ot,tc as I,uc as f,vc as T,wc as w,ya as O,za as V,zc as Q}from"./chunk-B7KTCPKC.js";var _t=["previcon"],yt=["nexticon"],Tt=["content"],wt=["prevButton"],xt=["nextButton"],Ct=["inkbar"],kt=["tabs"],E=["*"],$t=e=>({"p-tablist-viewport":e});function Bt(e,b){e&1&&j(0)}function Dt(e,b){if(e&1&&u(0,Bt,1,0,"ng-container",11),e&2){let t=f(2);M("ngTemplateOutlet",t.prevIconTemplate||t._prevIconTemplate)}}function It(e,b){e&1&&S(0,"ChevronLeftIcon")}function Lt(e,b){if(e&1){let t=A();D(0,"button",10,3),I("click",function(){O(t);let n=f();return V(n.onPrevButtonClick())}),u(2,Dt,1,1,"ng-container")(3,It,1,0,"ChevronLeftIcon"),N()}if(e&2){let t=f();r("aria-label",t.prevButtonAriaLabel)("tabindex",t.tabindex())("data-pc-group-section","navigator"),v(2),y(t.prevIconTemplate||t._prevIconTemplate?2:3)}}function Ft(e,b){e&1&&j(0)}function Et(e,b){if(e&1&&u(0,Ft,1,0,"ng-container",11),e&2){let t=f(2);M("ngTemplateOutlet",t.nextIconTemplate||t._nextIconTemplate)}}function Ot(e,b){e&1&&S(0,"ChevronRightIcon")}function Vt(e,b){if(e&1){let t=A();D(0,"button",12,4),I("click",function(){O(t);let n=f();return V(n.onNextButtonClick())}),u(2,Et,1,1,"ng-container")(3,Ot,1,0,"ChevronRightIcon"),N()}if(e&2){let t=f();r("aria-label",t.nextButtonAriaLabel)("tabindex",t.tabindex())("data-pc-group-section","navigator"),v(2),y(t.nextIconTemplate||t._nextIconTemplate?2:3)}}function Pt(e,b){e&1&&w(0)}var Rt=({dt:e})=>`
2
2
  .p-tabs {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1 +1 @@
1
- import{a as R,b as E,c as B}from"./chunk-USOWXH7U.js";import{A as T,a as v,h as y,m as P}from"./chunk-PLKN56KI.js";import{r as x,s as F}from"./chunk-HFKKITEW.js";import{f as M,n as O}from"./chunk-MTUIRWOB.js";import{$b as u,Gb as c,Gc as _,Ic as b,Ka as s,Mb as p,Qc as C,Tc as f,Yb as a,ia as m,ic as d,jc as l,rb as r,tc as g,uc as h}from"./chunk-JS55A2RS.js";var V=(o,n)=>({color:o,"font-weight":n});function k(o,n){if(o&1&&(d(0,"mat-radio-button",2),_(1),l()),o&2){let t=n.$implicit,i=n.index,e=h();u(f(7,V,e.model==t.Key&&e.activeBold?"#0976b4":"",e.model==t.Key&&e.activeBold?"700":"")),a("disabled",e.exception==t.Value)("matTooltip",e.title.length>0?e.title[i]:"")("value",t.Key)("name",e.name),r(),b("",t.Value," ")}}var H=(()=>{class o{constructor(){this.model=null,this.disabled=!1,this.modelChange=new s,this.options=[{Key:!1,Value:"No"},{Key:!0,Value:"Yes"}],this.border=!1,this.name="",this.title=[],this.exception="",this.activeBold="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){this.model=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}change(t){let i=t&&t.value!==void 0?t.value:t;this.model=i,this.modelChange.emit(i),this.onChange(i),this.onTouched()}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275cmp=c({type:o,selectors:[["lib-radio-options"]],inputs:{model:"model",disabled:"disabled",options:"options",border:"border",name:"name",title:"title",exception:"exception",activeBold:"activeBold"},outputs:{modelChange:"modelChange"},features:[C([{provide:v,useExisting:m(()=>o),multi:!0}])],decls:2,vars:3,consts:[["color","primary",3,"ngModelChange","disabled","ngModel"],["matTooltipPosition","above","class","me-4 mt-1",3,"style","disabled","matTooltip","value","name",4,"ngFor","ngForOf"],["matTooltipPosition","above",1,"me-4","mt-1",3,"disabled","matTooltip","value","name"]],template:function(i,e){i&1&&(d(0,"mat-radio-group",0),g("ngModelChange",function(S){return e.change(S)}),p(1,k,2,10,"mat-radio-button",1),l()),i&2&&(a("disabled",e.disabled)("ngModel",e.model),r(),a("ngForOf",e.options))},dependencies:[O,M,B,R,E,T,y,P,F,x],styles:["html[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 36px}html[_ngcontent-%COMP%]{--mat-radio-touch-target-display: block}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled:checked + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__outer-circle[_ngcontent-%COMP%]{border-color:#0976b4!important}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__inner-circle[_ngcontent-%COMP%]{background-color:#0976b4!important;border-color:#0976b4!important}"]})}}return o})();export{H as a};
1
+ import{a as R,b as E,c as B}from"./chunk-MHCAI6KP.js";import{A as T,a as v,h as y,m as P}from"./chunk-6QYD6NIJ.js";import{r as x,s as F}from"./chunk-YCH6HHU3.js";import{f as M,n as O}from"./chunk-M2FCTYGU.js";import{$b as u,Gb as c,Gc as _,Ic as b,Ka as s,Mb as p,Qc as C,Tc as f,Yb as a,ia as m,ic as d,jc as l,rb as r,tc as g,uc as h}from"./chunk-B7KTCPKC.js";var V=(o,n)=>({color:o,"font-weight":n});function k(o,n){if(o&1&&(d(0,"mat-radio-button",2),_(1),l()),o&2){let t=n.$implicit,i=n.index,e=h();u(f(7,V,e.model==t.Key&&e.activeBold?"#0976b4":"",e.model==t.Key&&e.activeBold?"700":"")),a("disabled",e.exception==t.Value)("matTooltip",e.title.length>0?e.title[i]:"")("value",t.Key)("name",e.name),r(),b("",t.Value," ")}}var H=(()=>{class o{constructor(){this.model=null,this.disabled=!1,this.modelChange=new s,this.options=[{Key:!1,Value:"No"},{Key:!0,Value:"Yes"}],this.border=!1,this.name="",this.title=[],this.exception="",this.activeBold="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){this.model=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}change(t){let i=t&&t.value!==void 0?t.value:t;this.model=i,this.modelChange.emit(i),this.onChange(i),this.onTouched()}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275cmp=c({type:o,selectors:[["lib-radio-options"]],inputs:{model:"model",disabled:"disabled",options:"options",border:"border",name:"name",title:"title",exception:"exception",activeBold:"activeBold"},outputs:{modelChange:"modelChange"},features:[C([{provide:v,useExisting:m(()=>o),multi:!0}])],decls:2,vars:3,consts:[["color","primary",3,"ngModelChange","disabled","ngModel"],["matTooltipPosition","above","class","me-4 mt-1",3,"style","disabled","matTooltip","value","name",4,"ngFor","ngForOf"],["matTooltipPosition","above",1,"me-4","mt-1",3,"disabled","matTooltip","value","name"]],template:function(i,e){i&1&&(d(0,"mat-radio-group",0),g("ngModelChange",function(S){return e.change(S)}),p(1,k,2,10,"mat-radio-button",1),l()),i&2&&(a("disabled",e.disabled)("ngModel",e.model),r(),a("ngForOf",e.options))},dependencies:[O,M,B,R,E,T,y,P,F,x],styles:["html[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 36px}html[_ngcontent-%COMP%]{--mat-radio-touch-target-display: block}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled:checked + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__outer-circle[_ngcontent-%COMP%]{border-color:#0976b4!important}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__inner-circle[_ngcontent-%COMP%]{background-color:#0976b4!important;border-color:#0976b4!important}"]})}}return o})();export{H as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-227LB3XT.js";import{a as C}from"./chunk-5KS4WK6H.js";import{a as h,b as y}from"./chunk-HYJVHRMN.js";import"./chunk-S5SDX7ZG.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-V3NCYRCF.js";import"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import"./chunk-ATZ475FN.js";import"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{F as v,J as o,n}from"./chunk-M2FCTYGU.js";import{Gb as l,Hb as s,Qc as f,Yb as u,ic as c,jc as d,ka as m,kc as i,rb as p}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var M=(()=>{class e{constructor(){this.inventoryTabs=[{Title:"Single Channel Comparison",Url:"/menu/inventory/bychannel"},{Title:"Multi Channel Comparison",Url:"/menu/inventory/pos"},{Title:"Different Inventory",Url:"/menu/inventory/channel_summary"}]}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=l({type:e,selectors:[["app-inventory"]],features:[f([C])],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,b){t&1&&(c(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),d()()(),i(4,"router-outlet")),t&2&&(p(3),u("Tabs",b.inventoryTabs))},dependencies:[n,y,h,o,v],encapsulation:2})}}return e})();var g=[{path:"",component:M,children:[{path:"",redirectTo:"bychannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-R4GAF5EA.js").then(e=>e.MultiChannelComparison)},canActivate:[r],data:{title:"Inventory Comparison"}},{path:"bychannel",loadComponent(){return import("./chunk-Y2QG7YNG.js").then(e=>e.SingleChannelComparisonComponent)},canActivate:[r],data:{title:"Inventory Comparison"}},{path:"channel_summary",loadComponent(){return import("./chunk-74FAXIJ6.js").then(e=>e.ChannelSummaryComponent)},canActivate:[r],data:{title:"Different Inventory"}}]}],E=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=s({type:e})}static{this.\u0275inj=m({imports:[n,o.forChild(g)]})}}return e})();export{E as InventoryRoutingModule};
@@ -1 +1 @@
1
- import{e as R}from"./chunk-4M63ID5T.js";import{j as V,m as B,n as E}from"./chunk-MTUIRWOB.js";import{$c as s,Gb as y,Gc as a,Hc as S,Ic as A,Jc as N,Ka as m,Mb as x,Nc as T,Oa as h,Yb as C,Z as _,ad as p,dc as k,ic as r,jc as l,kc as g,oc as w,pa as v,rb as o,tc as f,uc as b,v as P,ya as d,za as c}from"./chunk-JS55A2RS.js";function z(e,I){if(e&1){let i=w();r(0,"span",9),f("click",function(){d(i);let t=b();return c(t.onShowTotal())}),r(1,"i",10),a(2,"?"),l()()}}function D(e,I){if(e&1&&(r(0,"span"),a(1),s(2,"async"),s(3,"number"),l()),e&2){let i=b();o(),S(i.rowCountApi()?p(2,1,i.rowCount$):p(3,3,i.paginationTotal))}}var K=(()=>{class e{constructor(){this.httpService=v(R),this.nextButtonAlwaysVisible=h(!1),this.next=new m,this.filterChange=new m,this.previous=new m,this.total=new m,this.hasClicked=!1,this.rowCountApi=h(null),this.rowCount$=null}initRowCount(){this.rowCountApi()&&(this.hasClicked=!0,this.rowCount$=this.httpService.post(this.rowCountApi(),this.filter).pipe(P(i=>i.Count),_(1)))}onShowTotal(){this.total.emit(),this.initRowCount()}onPreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.filterChange.emit(this.filter),this.previous.emit()}onNextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.filterChange.emit(this.filter),this.next.emit()}static{this.\u0275fac=function(u){return new(u||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-custom-paginator"]],inputs:{nextButtonAlwaysVisible:[1,"nextButtonAlwaysVisible"],filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked",rowCountApi:[1,"rowCountApi"]},outputs:{next:"next",filterChange:"filterChange",previous:"previous",total:"total"},decls:18,vars:12,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(u,t){if(u&1){let n=w();T(0),r(1,"div",0)(2,"div",1)(3,"div",2),a(4),s(5,"number"),s(6,"number"),x(7,z,3,0,"span",3)(8,D,4,5,"span"),a(9),l()(),r(10,"div",4)(11,"a",5),f("click",function(){return d(n),c(t.onPreviousPage())}),g(12,"i",6),a(13," Prev"),l(),r(14,"a",7),s(15,"async"),f("click",function(){return d(n),c(t.onNextPage())}),g(16,"i",8),a(17," Next"),l()()()}if(u&2){let n=t.filter.PageSize!=null?t.filter.PageSize:t.filter.RowCount;o(4),N(" Showing ",p(5,6,n*(t.filter.PageNumber-1)+1)," - ",p(6,8,n*(t.filter.PageNumber-1)+t.totaldata)," of "),o(3),k(t.hasClicked?8:7),o(2),A(" records ~ ",t.filter.PageNumber," Page "),o(2),C("hidden",t.filter.PageNumber==1),o(3),C("hidden",(n*(t.filter.PageNumber-1)+t.totaldata==(t.rowCountApi()?p(15,10,t.rowCount$):t.paginationTotal)||t.totaldata<n)&&!t.nextButtonAlwaysVisible())}},dependencies:[E,V,B],encapsulation:2})}}return e})();export{K as a};
1
+ import{e as R}from"./chunk-JXSBFTQM.js";import{j as V,m as B,n as E}from"./chunk-M2FCTYGU.js";import{$c as s,Gb as y,Gc as a,Hc as S,Ic as A,Jc as N,Ka as m,Mb as x,Nc as T,Oa as h,Yb as C,Z as _,ad as p,dc as k,ic as r,jc as l,kc as g,oc as w,pa as v,rb as o,tc as f,uc as b,v as P,ya as d,za as c}from"./chunk-B7KTCPKC.js";function z(e,I){if(e&1){let i=w();r(0,"span",9),f("click",function(){d(i);let t=b();return c(t.onShowTotal())}),r(1,"i",10),a(2,"?"),l()()}}function D(e,I){if(e&1&&(r(0,"span"),a(1),s(2,"async"),s(3,"number"),l()),e&2){let i=b();o(),S(i.rowCountApi()?p(2,1,i.rowCount$):p(3,3,i.paginationTotal))}}var K=(()=>{class e{constructor(){this.httpService=v(R),this.nextButtonAlwaysVisible=h(!1),this.next=new m,this.filterChange=new m,this.previous=new m,this.total=new m,this.hasClicked=!1,this.rowCountApi=h(null),this.rowCount$=null}initRowCount(){this.rowCountApi()&&(this.hasClicked=!0,this.rowCount$=this.httpService.post(this.rowCountApi(),this.filter).pipe(P(i=>i.Count),_(1)))}onShowTotal(){this.total.emit(),this.initRowCount()}onPreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.filterChange.emit(this.filter),this.previous.emit()}onNextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.filterChange.emit(this.filter),this.next.emit()}static{this.\u0275fac=function(u){return new(u||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-custom-paginator"]],inputs:{nextButtonAlwaysVisible:[1,"nextButtonAlwaysVisible"],filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked",rowCountApi:[1,"rowCountApi"]},outputs:{next:"next",filterChange:"filterChange",previous:"previous",total:"total"},decls:18,vars:12,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(u,t){if(u&1){let n=w();T(0),r(1,"div",0)(2,"div",1)(3,"div",2),a(4),s(5,"number"),s(6,"number"),x(7,z,3,0,"span",3)(8,D,4,5,"span"),a(9),l()(),r(10,"div",4)(11,"a",5),f("click",function(){return d(n),c(t.onPreviousPage())}),g(12,"i",6),a(13," Prev"),l(),r(14,"a",7),s(15,"async"),f("click",function(){return d(n),c(t.onNextPage())}),g(16,"i",8),a(17," Next"),l()()()}if(u&2){let n=t.filter.PageSize!=null?t.filter.PageSize:t.filter.RowCount;o(4),N(" Showing ",p(5,6,n*(t.filter.PageNumber-1)+1)," - ",p(6,8,n*(t.filter.PageNumber-1)+t.totaldata)," of "),o(3),k(t.hasClicked?8:7),o(2),A(" records ~ ",t.filter.PageNumber," Page "),o(2),C("hidden",t.filter.PageNumber==1),o(3),C("hidden",(n*(t.filter.PageNumber-1)+t.totaldata==(t.rowCountApi()?p(15,10,t.rowCount$):t.paginationTotal)||t.totaldata<n)&&!t.nextButtonAlwaysVisible())}},dependencies:[E,V,B],encapsulation:2})}}return e})();export{K as a};
@@ -1 +1 @@
1
- import{a as C}from"./chunk-F4GMWHYJ.js";import{Aa as a,Ca as o,Gb as r,Kb as l,Xb as s,ac as c,ic as m,jc as d,kc as p}from"./chunk-JS55A2RS.js";var h=(()=>{class t extends C{static \u0275fac=(()=>{let i;return function(e){return(i||(i=o(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["AngleRightIcon"]],features:[l],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,e){n&1&&(a(),m(0,"svg",0),p(1,"path",1),d()),n&2&&(c(e.getClassNames()),s("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{h as a};
1
+ import{a as C}from"./chunk-SM3P57SO.js";import{Aa as a,Ca as o,Gb as r,Kb as l,Xb as s,ac as c,ic as m,jc as d,kc as p}from"./chunk-B7KTCPKC.js";var h=(()=>{class t extends C{static \u0275fac=(()=>{let i;return function(e){return(i||(i=o(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["AngleRightIcon"]],features:[l],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,e){n&1&&(a(),m(0,"svg",0),p(1,"path",1),d()),n&2&&(c(e.getClassNames()),s("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{h as a};
@@ -1,4 +1,4 @@
1
- import{a as bt}from"./chunk-2SXRC4IG.js";import{a as mt}from"./chunk-WGXUKTYP.js";import{a as gt,b as vt}from"./chunk-WLKXZBL7.js";import{a as Fe,c as _t,d as ft}from"./chunk-NTW6FBP5.js";import{a as Be}from"./chunk-LR4UZ2OS.js";import{a as Oe}from"./chunk-F4GMWHYJ.js";import{b as ht,e as xe}from"./chunk-OZ7LWNOK.js";import{a as de}from"./chunk-VRI3CYGG.js";import{H as dt,L as ut,M as ke,O as ye,V as we,Y as Re,a as N,b as ge,ba as ce,c as ot,e as rt,fa as pt,i as at,ia as Ee,j as st,ja as R,k as fe,ka as j,l as lt,m as ct,p as X,q as F,t as Ne,x as ve}from"./chunk-AVEGIEYT.js";import{c as it,d as be,f as ie,g as nt,i as me}from"./chunk-K5XRGNWG.js";import{a as tt}from"./chunk-PLKN56KI.js";import{d as $e,f as et,g as Me,h as Ve,i as Pe,n as te}from"./chunk-MTUIRWOB.js";import{$b as Ge,Aa as De,Ac as Se,Bc as S,Ca as L,Cc as $,Fc as Je,Gb as K,Gc as C,Hb as se,Hc as H,Ic as G,Jc as Xe,Ka as O,Kb as W,La as qe,Mb as h,Oa as ee,Qc as le,Sc as A,Tc as _e,Xb as T,Yb as c,Zb as Ze,ac as z,ia as We,ic as b,ja as oe,jc as _,ka as re,kc as I,lc as P,mc as E,nc as Z,oc as B,od as k,pa as ae,pd as J,rb as l,rd as Ae,tc as D,uc as s,vc as Ie,wc as he,xa as ze,xb as Le,ya as d,za as u,zc as V}from"./chunk-JS55A2RS.js";var Mt=({dt:t})=>`
1
+ import{a as bt}from"./chunk-B5VBBEEN.js";import{a as mt}from"./chunk-E3ROEHBW.js";import{a as gt,b as vt}from"./chunk-SN4AOGQK.js";import{a as Fe,c as _t,d as ft}from"./chunk-SB7NWPDS.js";import{a as Be}from"./chunk-AYPY47VM.js";import{a as Oe}from"./chunk-SM3P57SO.js";import{b as ht,e as xe}from"./chunk-OZ7LWNOK.js";import{a as de}from"./chunk-ECRWEMEV.js";import{H as dt,L as ut,M as ke,O as ye,V as we,Y as Re,a as N,b as ge,ba as ce,c as ot,e as rt,fa as pt,i as at,ia as Ee,j as st,ja as R,k as fe,ka as j,l as lt,m as ct,p as X,q as F,t as Ne,x as ve}from"./chunk-LZCEM2PC.js";import{c as it,d as be,f as ie,g as nt,i as me}from"./chunk-K5XRGNWG.js";import{a as tt}from"./chunk-6QYD6NIJ.js";import{d as $e,f as et,g as Me,h as Ve,i as Pe,n as te}from"./chunk-M2FCTYGU.js";import{$b as Ge,Aa as De,Ac as Se,Bc as S,Ca as L,Cc as $,Fc as Je,Gb as K,Gc as C,Hb as se,Hc as H,Ic as G,Jc as Xe,Ka as O,Kb as W,La as qe,Mb as h,Oa as ee,Qc as le,Sc as A,Tc as _e,Xb as T,Yb as c,Zb as Ze,ac as z,ia as We,ic as b,ja as oe,jc as _,ka as re,kc as I,lc as P,mc as E,nc as Z,oc as B,od as k,pa as ae,pd as J,rb as l,rd as Ae,tc as D,uc as s,vc as Ie,wc as he,xa as ze,xb as Le,ya as d,za as u,zc as V}from"./chunk-B7KTCPKC.js";var Mt=({dt:t})=>`
2
2
  .p-badge {
3
3
  display: inline-flex;
4
4
  border-radius: ${t("badge.border.radius")};
@@ -1 +1 @@
1
- import{g as k,m as N,n as T}from"./chunk-MTUIRWOB.js";import{$c as c,Gb as b,Gc as m,Hc as v,Jc as P,Ka as o,Mb as C,Yb as s,ad as d,ic as a,jc as r,kc as u,oc as _,rb as n,tc as p,uc as g,ya as f,za as h}from"./chunk-JS55A2RS.js";function S(t,w){if(t&1){let i=_();a(0,"span",10),p("click",function(){f(i);let e=g();return e.getTotal(),h(e.hasClicked=!0)}),a(1,"i",11),m(2,"?"),r()()}}function x(t,w){if(t&1&&(a(0,"span"),m(1),c(2,"number"),r()),t&2){let i=g();n(),v(d(2,1,i.paginationTotal))}}var j=(()=>{class t{constructor(){this.get=new o,this.change=new o,this.next=new o,this.previous=new o,this.total=new o,this.hasClicked=!1}changePage(i){this.filter.PageNumber=i.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-mat-paginator-no-count"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},decls:13,vars:10,consts:[[1,"d-flex","justify-content-end","mt-5"],[1,"d-sm-block","collapse","mt-3","me-5"],[1,"text-dark","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary","btn-sm","me-3","border-0",3,"click","disabled"],[1,"fa-solid","fa-chevron-left"],["role","button",1,"btn","btn-outline-secondary","btn-sm","border-0",3,"click","disabled"],[1,"fa-solid","fa-chevron-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(l,e){l&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),m(3),c(4,"number"),c(5,"number"),C(6,S,3,0,"span",3)(7,x,3,3,"span",4),r()(),a(8,"div",5)(9,"button",6),p("click",function(){return e.PreviousPage()}),u(10,"i",7),r(),a(11,"button",8),p("click",function(){return e.NextPage()}),u(12,"i",9),r()()()),l&2&&(n(3),P(" Showing ",d(4,6,e.filter.PageSize*(e.filter.PageNumber-1)+1)," - ",d(5,8,e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata)," of "),n(3),s("ngIf",!e.hasClicked),n(),s("ngIf",e.hasClicked),n(2),s("disabled",e.filter.PageNumber==1),n(2),s("disabled",e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata==e.paginationTotal||e.totaldata<e.filter.PageSize))},dependencies:[T,k,N],encapsulation:2})}}return t})();export{j as a};
1
+ import{g as k,m as N,n as T}from"./chunk-M2FCTYGU.js";import{$c as c,Gb as b,Gc as m,Hc as v,Jc as P,Ka as o,Mb as C,Yb as s,ad as d,ic as a,jc as r,kc as u,oc as _,rb as n,tc as p,uc as g,ya as f,za as h}from"./chunk-B7KTCPKC.js";function S(t,w){if(t&1){let i=_();a(0,"span",10),p("click",function(){f(i);let e=g();return e.getTotal(),h(e.hasClicked=!0)}),a(1,"i",11),m(2,"?"),r()()}}function x(t,w){if(t&1&&(a(0,"span"),m(1),c(2,"number"),r()),t&2){let i=g();n(),v(d(2,1,i.paginationTotal))}}var j=(()=>{class t{constructor(){this.get=new o,this.change=new o,this.next=new o,this.previous=new o,this.total=new o,this.hasClicked=!1}changePage(i){this.filter.PageNumber=i.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-mat-paginator-no-count"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},decls:13,vars:10,consts:[[1,"d-flex","justify-content-end","mt-5"],[1,"d-sm-block","collapse","mt-3","me-5"],[1,"text-dark","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary","btn-sm","me-3","border-0",3,"click","disabled"],[1,"fa-solid","fa-chevron-left"],["role","button",1,"btn","btn-outline-secondary","btn-sm","border-0",3,"click","disabled"],[1,"fa-solid","fa-chevron-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(l,e){l&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),m(3),c(4,"number"),c(5,"number"),C(6,S,3,0,"span",3)(7,x,3,3,"span",4),r()(),a(8,"div",5)(9,"button",6),p("click",function(){return e.PreviousPage()}),u(10,"i",7),r(),a(11,"button",8),p("click",function(){return e.NextPage()}),u(12,"i",9),r()()()),l&2&&(n(3),P(" Showing ",d(4,6,e.filter.PageSize*(e.filter.PageNumber-1)+1)," - ",d(5,8,e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata)," of "),n(3),s("ngIf",!e.hasClicked),n(),s("ngIf",e.hasClicked),n(2),s("disabled",e.filter.PageNumber==1),n(2),s("disabled",e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata==e.paginationTotal||e.totaldata<e.filter.PageSize))},dependencies:[T,k,N],encapsulation:2})}}return t})();export{j as a};
@@ -0,0 +1,2 @@
1
+ import{a as L}from"./chunk-C4XFI4J7.js";import{b as Re}from"./chunk-RMCAWPWK.js";import"./chunk-3LRWABHB.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import{a as Be}from"./chunk-SRVGUGY2.js";import{a as K}from"./chunk-XHAXYWZ7.js";import{a as Ne,b as Le,c as Ae,d as Y}from"./chunk-UDIDZKN6.js";import"./chunk-M5XGP4SG.js";import{a as De,b as ke}from"./chunk-CIIO2CJ6.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-OC2FBL33.js";import"./chunk-NS46QSCM.js";import{a as Ve}from"./chunk-DDV4X5WD.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import{a as Me}from"./chunk-SYUFPF3D.js";import"./chunk-5OHRA4AS.js";import"./chunk-3BT5DR3X.js";import"./chunk-EH6HWI3G.js";import"./chunk-E3ROEHBW.js";import"./chunk-OLOIQI4D.js";import"./chunk-IA6KOBDJ.js";import"./chunk-RECNBAEB.js";import"./chunk-SN4AOGQK.js";import"./chunk-SB7NWPDS.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import"./chunk-5KS4WK6H.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import{a as H}from"./chunk-5DIRXS7I.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as Te,b as Ee,c as Pe}from"./chunk-GSZJGR7K.js";import"./chunk-CMTBBXR5.js";import{h as fe}from"./chunk-S5SDX7ZG.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-V3NCYRCF.js";import{e as Se}from"./chunk-5JVEEL2T.js";import{c as f}from"./chunk-PW42BQIY.js";import{a as Ce,b as ge,c as xe}from"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import{b as ue,e as he}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{d as Ie,l as we,m as be,n as Fe}from"./chunk-CLER2MX6.js";import{A as de,b as se,c as ce,h as pe,m as me,o as _e}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as ve,s as ye}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{d as te,g as ie,j as oe,k as ae,m as le,n as re}from"./chunk-M2FCTYGU.js";import{$c as g,Fc as z,G as q,Gb as X,Gc as p,Hc as k,Ic as V,Kc as w,Lc as b,Mb as u,Mc as F,Qc as ne,Ra as R,Sc as M,Yb as m,Z as $,ac as J,ad as v,bd as N,cd as G,dc as y,ea as O,ec as W,gc as j,hc as Q,ic as a,jc as r,kc as x,lc as E,mc as P,oc as S,pa as U,pb as D,rb as s,tc as h,uc as l,v as B,xb as I,xc as ee,ya as _,za as d}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as A}from"./chunk-66YHNWRR.js";var Z=t=>[t],Ue=t=>({"text-decoration-line-through":t}),We=t=>({"me-10":t}),je=t=>({"bg-gradient-warning":t}),Qe=t=>({cursor:t});function ze(t,c){if(t&1){let e=S();a(0,"button",39),h("click",function(){_(e);let n=l().ngIf,i=l(2);return d(i.onScanInventory(n))}),x(1,"i",40),p(2,"Refresh "),r()}}function Ge(t,c){if(t&1){let e=S();a(0,"div",37)(1,"button",41),h("click",function(){_(e);let n=l().ngIf,i=l(2);return d(i.updateStock(n))}),x(2,"i",42),p(3," Update "),r(),x(4,"button",43),a(5,"ul",44)(6,"a",45),h("click",function(){_(e);let n=l(3);return d(n.openExportDialog())}),x(7,"i",46),a(8,"span"),p(9,"Export"),r()()()()}}function He(t,c){if(t&1){let e=S();a(0,"button",47),h("click",function(){_(e);let n=l(3);return d(n.openExportDialog())}),x(1,"i",46),a(2,"span"),p(3,"Export"),r()()}}function Ye(t,c){if(t&1&&(a(0,"div"),u(1,ze,3,0,"button",36)(2,Ge,10,0,"div",37)(3,He,4,0,"button",38),r()),t&2){let e=c.ngIf,o=l(2);s(),m("ngIf",o.productService.hasSelectionVariant(e)),s(),y(o.productService.hasSelectionVariant(e)?2:3)}}function Ke(t,c){t&1&&(a(0,"div",48)(1,"span"),p(2," showing only different stock, please press next to populate more data "),r()())}function Ze(t,c){if(t&1){let e=S();a(0,"th")(1,"input",49),F("ngModelChange",function(n){_(e);let i=l(3);return b(i.checkboxState,n)||(i.checkboxState=n),d(n)}),h("ngModelChange",function(){let n=_(e).ngIf,i=l(3);return d(i.onCheckboxStateChange(n))}),r()()}if(t&2){let e=l(3);s(),w("ngModel",e.checkboxState)}}function qe(t,c){if(t&1&&(E(0),u(1,Ze,2,1,"th",5),g(2,"async"),P()),t&2){let e=l(2);s(),m("ngIf",v(2,1,e.products$))}}function Xe(t,c){t&1&&(a(0,"th",33),p(1," Reserved "),r())}function Je(t,c){if(t&1){let e=S();a(0,"input",65),F("ngModelChange",function(n){_(e);let i=l(4).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),h("ngModelChange",function(){_(e);let n=l(4).$implicit,i=l(2);return d(i.onCheckboxStateProduct(n))}),r()}if(t&2){let e=l(4).$implicit;w("ngModel",e.selected)}}function en(t,c){if(t&1&&(E(0),a(1,"div",63),u(2,Je,1,1,"input",64),r(),P()),t&2){let e=l(3).$implicit;s(),m("ngClass",M(2,We,e.Variants.length<=1)),s(),y(e.Variants.length>1?2:-1)}}function nn(t,c){if(t&1){let e=S();a(0,"img",66),h("click",function(n){_(e);let i=l(3).$implicit,C=l(2);return d(C.onZoomImage(n,i==null?null:i.ImageUrl))}),r()}if(t&2){let e=l(3).$implicit;ee("src",e==null?null:e.ThumbnailUrl,D)}}function tn(t,c){t&1&&x(0,"img",60)}function on(t,c){if(t&1&&(x(0,"br"),a(1,"div",67),x(2,"i",68),a(3,"small"),p(4),r()()),t&2){let e=l(3).$implicit;s(4),V("(",e==null?null:e.Category,")")}}function an(t,c){if(t&1&&(a(0,"td",58)(1,"div",14),u(2,en,3,4,"ng-container",27),a(3,"div"),u(4,nn,1,1,"img",59)(5,tn,1,0,"img",60),r()()(),a(6,"td",61)(7,"span",62),p(8),r(),u(9,on,5,1),r()),t&2){let e=l(2).$implicit,o=l(2);m("rowSpan",e==null?null:e.Variants.length),s(2),m("ngxPermissionsOnly",M(6,Z,o.inventoryUpdateRole)),s(2),y(e!=null&&e.ThumbnailUrl?4:5),s(2),m("rowSpan",e==null?null:e.Variants.length),s(2),k(e==null?null:e.Name),s(),y(e.CategoryID!==null&&e.CategoryID!=o.guidEmpty?9:-1)}}function ln(t,c){if(t&1){let e=S();a(0,"input",49),F("ngModelChange",function(n){_(e);let i=l(3).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),r()}if(t&2){let e=l(3).$implicit;w("ngModel",e.selected)}}function rn(t,c){if(t&1&&u(0,ln,1,1,"input",70),t&2){let e=l(2).$implicit;y((e==null?null:e.Inventory)<=1e5?0:-1)}}function sn(t,c){if(t&1){let e=S();a(0,"input",49),F("ngModelChange",function(n){_(e);let i=l(2).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),r()}if(t&2){let e=l(2).$implicit;w("ngModel",e.selected)}}function cn(t,c){if(t&1&&(E(0),a(1,"td",69),u(2,rn,1,1)(3,sn,1,1,"input",70),r(),P()),t&2){let e=l().$implicit;s(2),y((e==null?null:e.Channel[0].TypeID)==1?2:(e==null?null:e.Inventory)>=0?3:-1)}}function pn(t,c){t&1&&(a(0,"div",71),p(1," Not Found "),r())}function mn(t,c){if(t&1&&(a(0,"div")(1,"span",72),p(2),g(3,"number"),r(),p(4," => "),a(5,"span",73),p(6),g(7,"number"),r()()),t&2){let e=l().$implicit;s(2),V(" ",v(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),k(v(7,4,e==null?null:e.Inventory))}}function _n(t,c){if(t&1&&(p(0),g(1,"number")),t&2){let e=l().$implicit;V(" ",v(1,1,e==null?null:e.Inventory)," ")}}function dn(t,c){if(t&1&&(E(0),a(1,"div",74)(2,"a",75),x(3,"i",76),r()(),P()),t&2){let e=l().$implicit,o=l(3);s(2),m("href",o.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),D)}}function un(t,c){if(t&1){let e=S();a(0,"span",81),h("click",function(){_(e);let n=l(2).$implicit,i=l().$implicit,C=l(2);return d(C.openTableDialog(i,n))}),p(1),g(2,"number"),r()}if(t&2){let e=l(2).$implicit,o=l(3);J(M(5,Qe,o.hasInventoryEdit())),s(),V(" ",v(2,3,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function hn(t,c){if(t&1){let e=S();a(0,"td",77)(1,"div",53)(2,"div"),u(3,un,3,7,"span",78),g(4,"async"),r(),a(5,"div",74)(6,"a",75),x(7,"i",76),r()(),a(8,"div",74)(9,"span",79),h("click",function(){_(e);let n=l().$implicit,i=l(3);return d(i.refreshInventory(n==null||n.Channel[0]==null?null:n.Channel[0].ChannelItemID,n==null||n.Channel[0]==null?null:n.Channel[0].ChannelVariationID,n==null||n.Channel[0]==null?null:n.Channel[0].ChannelID,n==null?null:n.ID))}),x(10,"i",80),r()()()()}if(t&2){let e=l().$implicit,o=l(3);m("ngClass",M(5,je,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),m("ngIf",v(4,3,o.products$)),s(3),m("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,D)}}function Cn(t,c){if(t&1&&(E(0),a(1,"span",82),p(2),g(3,"number"),r(),P()),t&2){let e=l(2).$implicit;s(2),V(" (",v(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function gn(t,c){t&1&&p(0," - ")}function xn(t,c){if(t&1&&(E(0),a(1,"td",51),u(2,Cn,4,3,"ng-container",57)(3,gn,1,0,"ng-template",null,1,G),r(),P()),t&2){let e=z(4),o=l().$implicit;s(2),m("ngIf",o==null||o.Channel[0]==null?null:o.Channel[0].InventoryReserved)("ngIfElse",e)}}function fn(t,c){t&1&&(E(0),p(1," - "),P())}function Sn(t,c){if(t&1&&(a(0,"span",83),g(1,"date"),p(2),g(3,"date"),r()),t&2){let e=l().$implicit;m("matTooltip",N(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),V(" ",N(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function vn(t,c){if(t&1&&(a(0,"tr"),u(1,an,10,8),a(2,"td",50),p(3),r(),a(4,"td",51)(5,"span",52),p(6),r()(),u(7,cn,4,1,"ng-container",27),a(8,"td")(9,"div",53),u(10,pn,2,0,"div",54)(11,mn,8,6,"div")(12,_n,2,3)(13,dn,4,1,"ng-container",5),r()(),u(14,hn,11,7,"td",55)(15,xn,5,2,"ng-container",5),a(16,"td",56),u(17,fn,2,0,"ng-container",57)(18,Sn,4,8,"ng-template",null,0,G),r()()),t&2){let e=c.$implicit,o=c.$index,n=z(19),i=l(3);s(),y(o==0?1:-1),s(2),k(e==null?null:e.Model),s(2),m("matTooltip",e.Discontinued?i.discontinuedVariantMsg:"")("ngClass",M(14,Ue,e.Discontinued)),s(),k(e==null?null:e.Code),s(),m("ngxPermissionsOnly",M(16,Z,i.inventoryUpdateRole)),s(3),m("ngIf",(e==null?null:e.I)==null),s(),y((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?11:-1),s(),y((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?12:-1),s(),m("ngIf",(e==null?null:e.I)!=null),s(),m("ngIf",e==null?null:e.Channel),s(),m("ngIf",i.isShowReservedColumn),s(2),m("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==i.minDate)("ngIfElse",n)}}function yn(t,c){if(t&1&&(a(0,"tbody"),j(1,vn,20,18,"tr",null,W),r()),t&2){let e=c.$implicit;s(),Q(e.Variants)}}function In(t,c){if(t&1){let e=S();a(0,"mainpanel",3),h("onSubmit",function(n){_(e);let i=l();return d(i.onSearch(n))}),a(1,"actions")(2,"div",4),u(3,Ye,4,2,"div",5),g(4,"async"),r()(),a(5,"filters")(6,"div")(7,"label",6),p(8,"Channel"),r(),a(9,"multiwarehouse-tree-select",7),h("onChannelChange",function(n){_(e);let i=l();return d(i.onChannelChange(n))}),r()(),a(10,"div",8)(11,"label",9),p(12,"PageNumber"),r(),a(13,"input",10),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.PageNumber,n)||(i.searchFilter.PageNumber=n),d(n)}),r()(),a(14,"div",8)(15,"label",11),p(16,"Page Size"),r(),a(17,"input",12),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.RowCount,n)||(i.searchFilter.RowCount=n),d(n)}),r()(),a(18,"div",8)(19,"label",13),p(20,"Quantity From - To"),r(),a(21,"div",14)(22,"input",15),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.QuantityFrom,n)||(i.searchFilter.QuantityFrom=n),d(n)}),r(),p(23," - "),a(24,"input",16),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.QuantityTo,n)||(i.searchFilter.QuantityTo=n),d(n)}),r()()()(),a(25,"content")(26,"div",17)(27,"div",18)(28,"div",19),u(29,Ke,3,0,"div",20),a(30,"table",21),h("matSortChange",function(n){_(e);let i=l();return d(i.onSortVariant(n))}),a(31,"thead",22)(32,"tr")(33,"th",23),p(34," Product "),x(35,"br"),a(36,"mat-slide-toggle",24),h("toggleChange",function(){_(e);let n=l();return n.showDifferenceStock=!n.showDifferenceStock,d(n.onShowDifferenceStock())}),a(37,"small",13),p(38,"FILTER DIFFERENT INVENTORY"),r()()(),a(39,"th",25),p(40,"Variant"),r(),a(41,"th",26),p(42,"SKU"),r(),u(43,qe,3,3,"ng-container",27),a(44,"th",28),p(45," POS "),r(),a(46,"th",29)(47,"div",30),h("click",function(){_(e);let n=l();return d(n.openModalFilter())}),x(48,"img",31),a(49,"span",32),p(50),g(51,"stringLimit"),r()()(),u(52,Xe,2,0,"th",33),a(53,"th",34),p(54,"Last Sync"),r()()(),j(55,yn,3,0,"tbody",null,W),g(57,"async"),r(),a(58,"infinite-paginator",35),g(59,"async"),h("onNextPage",function(){_(e);let n=l();return d(n.infinitePagination.onNextPage(n.searchFilter))})("onLastPage",function(){_(e);let n=l();return d(n.infinitePagination.onLastPage(n.searchFilter))})("onGetRowCount",function(){_(e);let n=l();return d(n.infinitePagination.getRowCount(n.searchFilter))}),r()()()()()()}if(t&2){let e,o,n,i=l();m("headerTitle","Inventory Comparison")("pageData",i.pageData)("hideSearchBox",!1),s(3),m("ngIf",v(4,21,i.products$)),s(6),m("ngModel",(i.searchFilter==null?null:i.searchFilter.LocationID)||(i.searchFilter==null?null:i.searchFilter.ChannelID)),s(4),w("ngModel",i.searchFilter.PageNumber),s(4),w("ngModel",i.searchFilter.RowCount),s(5),w("ngModel",i.searchFilter.QuantityFrom),s(2),w("ngModel",i.searchFilter.QuantityTo),s(5),m("ngIf",(i.searchFilter==null?null:i.searchFilter.filterModel)==3),s(14),m("ngxPermissionsOnly",M(30,Z,i.inventoryUpdateRole)),s(4),m("matTooltip",((e=i.channelIdentity())==null||e.label==null?null:e.label.length)>13?(e=i.channelIdentity())==null?null:e.label:""),s(),m("src",(o=i.channelIdentity())==null?null:o.img,D),s(2),V(" ",N(51,23,(n=i.channelIdentity())==null?null:n.label,13)," "),s(2),y(i.isShowReservedColumn?52:-1),s(3),Q(v(57,26,i.products$)),s(3),m("totalData",i.infinitePagination.totalData())("hideCount",i.infinitePagination.hideCount())("rowCount",v(59,28,i.infinitePagination.totalRowCount$))("pageNumber",i.infinitePagination.pageNumber())("disableNextButton",i.infinitePagination.disableNextButton())("goToLastPage",i.infinitePagination.isLastPage())}}var st=(()=>{class t{constructor(e,o,n,i,C,T,$e,Oe){this.http=e,this.toastr=o,this.dialog=n,this.productService=i,this.authService=C,this.biggerPictureService=T,this.inventoryService=$e,this.mainPanelService=Oe,this.infinitePagination=U(Y),this.ngxPermissionsService=U(Ce),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=f.MinDate,this.isShowReservedColumn=!0,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.guidEmpty=f.GuidEMpty,this.selectedChannel=R(null),this.channelIdentity=R({img:null,label:null}),this.inventoryUpdateRole=H.InventoryUpdate,this.hasInventoryEdit=R(!0),this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.initRoles(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.sourceObs$=this.infinitePagination.data$.pipe(O(e=>{this.checkShowReservedColumn(e)}),B(e=>(e=this.calculateAvailableStock(e),e)),$(1)),this.products$=this.sourceObs$}initRoles(){this.ngxPermissionsService.hasPermission(H.InventoryUpdate).then(e=>this.hasInventoryEdit.set(e))}calculateAvailableStock(e){return e.map(n=>(n.totalAvailable=n.Variants.reduce((i,C)=>(i+=C.I?.Available||0,i),0),n))}checkShowReservedColumn(e){let o=0,n;e.forEach(i=>{n=i.Variants.find(C=>f.IsNotEmpty(C?.Channel[0]?.InventoryReserved)),n&&(o+=1)}),this.isShowReservedColumn=o>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe($(1),O(e=>{this.searchFilter={RowCount:e.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:e.Filter.ChannelID,LocationID:e.Filter.LocationID},this.initReloadData(),this.showToastrMarketplaceInactive(!e.Filter.IsMarketplaceAppActive)}))}onChannelChange(e){let o=Object.assign({},e);this.selectedChannel.set(o),f.IsEmpty(this.channelIdentity()?.label)&&this.setChannelFilter()}setChannelFilter(){if(this.selectedChannel()){let e=Object.assign({},this.selectedChannel());f.IsNotEmpty(e.parent)?(this.searchFilter.LocationID=e.id,this.searchFilter.ChannelID=e?.parent?.id,e.label=e?.parent?.label+" - "+e?.label,e.img=f.getChannelLogoByTypeId(e?.parent?.typeid)):(this.searchFilter.LocationID=null,e.img=f.getChannelLogoByTypeId(e?.typeid),this.searchFilter.ChannelID=e?.id,this.selectedChannel.set(e)),this.channelIdentity.update(()=>({img:e.img,label:e.label}))}}initReloadData(){this.infinitePagination.reloadPagination(this.searchFilter)}showToastrMarketplaceInactive(e){e&&this.toastr.warning(`Automatic inventory sync disabled.
2
+ Please enable Dealpos X Marketplace Apps integration in POS Configuration`,"Warning")}onSearch(e){this.searchFilter.text=e,this.setChannelFilter(),this.initReloadData()}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(e){let o=this.productService.selectedVariantProduct(e);if(o.length>0){let n=this.searchFilter.LocationID,i=o.map(T=>A({ID:T.ID,Code:T.Code,Inventory:T.Inventory},f.IsNotEmpty(n)&&{LocationID:n})),C={ListChannelID:[this.searchFilter.ChannelID],List:i};this.http.post("/api/Inventory/UpdateChannel",C).subscribe(T=>{this.initReloadData(),this.checkboxState=!1,this.handlingUpdateStock(T)})}}handlingUpdateStock(e){if(e[0]?.Response){let o=e[0]?.Response?.Fail_list,n=e[0]?.Response?.Success_list;this.inventoryService.showToastrUpdateInventory("Stock",n,o)}else this.toastr.error(e[0]?.Exception,"Error")}refreshInventory(e,o,n,i){let C={ChannelItemID:e,ChannelVariationID:o,ChannelID:n,VariantID:i};this.http.post("/api/Inventory/RefreshInventoryChannel",C).subscribe(T=>{this.toastr.success("Successfully updated","Success"),this.initReloadData()})}onCheckboxStateProduct(e){e.Variants=e.Variants.map(o=>(o.Inventory>=0&&(o.selected=e.selected),o))}onCheckboxStateChange(e){e=e.map(o=>(o.Variants=o.Variants.map(n=>(n.selected=this.checkboxState,n)),o))}openTableDialog(e,o){this.hasInventoryEdit()&&this.dialog.open(Ne,{data:{Name:e.Name,Variant:o,ChannelID:o?.Channel[0].ChannelID,Table:"inventory",ChannelItemID:e.ChannelItemID}}).afterClosed().pipe(q(i=>f.IsNotEmpty(i))).subscribe(i=>{this.updateItemAfterDialog(i)})}updateItemAfterDialog(e){let o=this.searchFilter.LocationID,n=A({ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,NewQuantity:parseFloat(e.Inventory),VariantID:e.ID,SKU:e.Sku},f.IsNotEmpty(o)&&{LocationID:o});this.http.post("/api/Inventory/UpdateQuantityByItem",n).subscribe(i=>{this.searchFilter.PageNumber=1,this.initReloadData(),this.handlingUpdateStock([i])})}onScanInventory(e){let o=this.productService.selectedVariantProduct(e);this.inventoryService.refreshInventory(o).subscribe(()=>{this.initReloadData(),this.toastr.success("Inventory refreshed successfully","Success")})}openExportDialog(){this.dialog.open(Re,{data:{title:"Export Inventory Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,QuantityFrom:this.searchFilter.QuantityFrom,QuantityTo:this.searchFilter.QuantityTo,exportApi:"Inventory/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}onShowDifferenceStock(){this.showDifferenceStock?this.searchFilter.filterModel=K.DIFFERENCE:this.searchFilter.filterModel=K.ALL,this.initReloadData()}onZoomImage(e,o){this.biggerPictureService.openBiggerPicture(e,o)}onSortVariant(e){if(e.direction==""){this.products$=this.sourceObs$;return}this.products$=this.products$.pipe(B(o=>o.map(n=>(n.Variants=n.Variants.sort((i,C)=>f.compare(i.I?.Available,C.I?.Available,e.direction==="asc")),n)).sort((n,i)=>f.compare(n.totalAvailable,i.totalAvailable,e.direction==="asc"))))}static{this.\u0275fac=function(o){return new(o||t)(I(he),I(ue),I(Ie),I(Ve),I(fe),I(Me),I(L),I(we))}}static{this.\u0275cmp=X({type:t,selectors:[["app-single-channel-comparison"]],features:[ne([Y,L])],decls:2,vars:3,consts:[["SYNCDATE",""],["EMPTY_RESERVED",""],["textButton","Search",3,"headerTitle","pageData","hideSearchBox","onSubmit",4,"ngIf"],["textButton","Search",3,"onSubmit","headerTitle","pageData","hideSearchBox"],[1,"d-flex"],[4,"ngIf"],["for","channelOptions",1,"fw-bold","mb-2"],["id","channelOptions",3,"onChannelChange","ngModel"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],[1,"fw-bold"],[1,"d-flex","align-items-center","justify-content-start"],["type","number","name","QuantityFrom",1,"w-25","me-2","mt-3","form-control",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"w-25","ms-2","form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","ps-12",2,"width","25%"],[3,"toggleChange"],["scope","col",1,"text-start"],["scope","col",1,"text-end",2,"width","10%"],[4,"ngxPermissionsOnly"],["scope","col","mat-sort-header","Available","arrowPosition","before",1,"text-end","w-10",2,"width","8%"],[1,"text-end",2,"width","150px"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],["matTooltip","Reserved Stock","matTooltipPosition","above",1,"text-end",2,"width","80px"],[1,"text-center",2,"width","145px"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["class","btn btn-outline-dark me-3","matTooltip","Fetch the latest stock directly from the channel",3,"click",4,"ngIf"],[1,"btn-group"],[1,"btn","btn-outline-secondary","shadow","rounded"],["matTooltip","Fetch the latest stock directly from the channel",1,"btn","btn-outline-dark","me-3",3,"click"],[1,"fa-solid","fa-arrows-rotate","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-success","btn-sm","dropdown-toggle","border-start"],[1,"dropdown-menu","dropdown-menu-end","pointer"],["role","button",1,"dropdown-item","cursor-pointer","fs-5",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"d-flex","align-items-center","justify-content-end"],["class","text-danger","matTooltip","This product is no longer available in POS","matTooltipPosition","above",4,"ngIf"],["class","text-end",3,"ngClass",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"width","0%",3,"rowSpan"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],[3,"ngClass"],["type","checkbox",1,"me-3",3,"ngModel"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"click","src"],[1,"d-flex","align-items-center"],["title","Category",1,"fa-solid","fa-tags","me-2",2,"opacity","60%"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],["title","Stock Available"],["title","Inventory below minimum inventory"],[1,"ms-3"],["target","_blank",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-end",3,"ngClass"],[3,"class","click",4,"ngIf"],["matTooltip","Refresh stock according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","fa-sync","fa-lg","external-link-custom","pt-1"],[3,"click"],[1,"text-danger"],["matTooltipShowDelay","500",3,"matTooltip"]],template:function(o,n){o&1&&(u(0,In,60,32,"mainpanel",2),g(1,"async")),o&2&&m("ngIf",v(1,1,n.loader$))},dependencies:[re,te,ie,oe,le,ae,Fe,be,Se,de,ce,_e,se,pe,me,Le,Ae,xe,ge,ke,De,ye,ve,Pe,Te,Ee,Be],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}"]})}}return t})();export{st as SingleChannelComparisonComponent};
@@ -0,0 +1 @@
1
+ import{a as w}from"./chunk-32WYK3BN.js";import"./chunk-AEOSNAHH.js";import"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as k,n as B}from"./chunk-CLER2MX6.js";import"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{E as P,H as T,J as R,g as D,j as C,k as b,m as y,n as M}from"./chunk-M2FCTYGU.js";import{$c as c,Gb as h,Gc as n,Hc as d,Ic as _,Mb as s,Yb as m,aa as I,ad as E,bd as x,ic as i,jc as t,lc as f,mc as u,rb as o,uc as S,v as g,xb as v}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function N(a,p){if(a&1&&(i(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),n(4,"Perflog"),t()(),i(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),n(9),t()()()()()()),a&2){let e=S().ngIf;o(9),d(e.Perflog)}}function L(a,p){if(a&1&&(f(0),i(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),n(5,"StackTrace"),t()(),i(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),n(10),t()()()()()(),u()),a&2){let e=S().ngIf;o(10),d(e==null?null:e.StackTrace)}}function A(a,p){if(a&1&&(f(0),i(1,"mainpanel",1)(2,"actions")(3,"a",2),n(4,"Back"),t()(),i(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),n(12,"General"),t()(),i(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),n(18,"Created Date"),t(),i(19,"div")(20,"span"),n(21),c(22,"date"),t()()()(),i(23,"div",10)(24,"div",11)(25,"label"),n(26,"Status"),t(),i(27,"div")(28,"span"),n(29),t()()()()(),i(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),n(34,"Duration"),t(),i(35,"div")(36,"span"),n(37),c(38,"number"),t()()()(),i(39,"div",10)(40,"div",11)(41,"label"),n(42,"Label"),t(),i(43,"div")(44,"span"),n(45),t()()()()()()()()(),i(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),n(51,"Message"),t()(),i(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),n(56),t()()()()()(),s(57,N,10,1,"div",16)(58,L,11,1,"ng-container",0),t()()()(),u()),a&2){let e=p.ngIf;o(),m("headerTitle","Notification "+e.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),o(20),d(x(22,10,e.Created,"dd MMM yyyy HH:mm:ss")),o(8),d(e.StatusLabel),o(8),_("",x(38,13,e.DurationInSecond,"1.1-1")," s"),o(8),d(e.Label),o(11),d(e.Message),o(),m("ngIf",e==null?null:e.Perflog),o(),m("ngIf",e==null?null:e.StackTrace)}}var K=(()=>{class a{constructor(e,r){this.activatedRoute=e,this.notificationService=r}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(I(e=>{let r=e.ID;return this.notificationService.getNotificationDetail(r).pipe(g(l=>(l.DurationInSecond=parseInt(l.Duration)/1e3,l)))}))}static{this.\u0275fac=function(r){return new(r||a)(v(P),v(w))}}static{this.\u0275cmp=h({type:a,selectors:[["app-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(r,l){r&1&&(s(0,A,59,16,"ng-container",0),c(1,"async")),r&2&&m("ngIf",E(1,1,l.notification$))},dependencies:[M,D,C,y,b,B,k,R,T],encapsulation:2})}}return a})();export{K as DetailComponent};
@@ -1,3 +1,3 @@
1
- import{B as _e,C as At,D as f,E as F,F as z,G as ct,H as Y,I as U,J as It,M as Lt,e as at,f as G,g as P,h as ce,i as lt,j as de,k as fe,m as Tt,o as Mt,u as pe,v as ue,w as ht}from"./chunk-OZ77CAJD.js";import{a as y,c as le,d as he}from"./chunk-MTUIRWOB.js";import{Ac as Dt,Bc as Et,Ca as it,Cb as St,Cc as Pt,Ea as A,F as $t,G as tt,Gb as Z,Gc as se,Hb as D,Hc as ne,I as wt,Ib as E,Ka as k,Kb as Rt,La as m,Pa as v,Wb as ee,Xa as ot,Yb as ie,_b as nt,a as T,bb as Jt,c as Gt,ca as w,cb as N,da as Kt,f as u,ic as rt,ja as b,jc as Ot,jd as xt,ka as O,ma as B,oc as oe,od as M,pa as a,q as Ut,qd as re,rb as Ct,tb as st,tc as kt,td as ae,ua as et,vb as I,wb as te,xa as bt,ya as qt,za as Qt,zb as L}from"./chunk-JS55A2RS.js";import{a as R,b as Zt}from"./chunk-66YHNWRR.js";var ze=20,j=(()=>{class s{_ngZone=a(m);_platform=a(P);_renderer=a(I).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new u;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=ze){return this._platform.isBrowser?new Gt(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(wt(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Ut()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){let o=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(tt(n=>!n||o.indexOf(n)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((o,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_scrollableContainsElement(t,e){let o=de(e),n=t.getElementRef().nativeElement;do if(o==n)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ye=(()=>{class s{elementRef=a(v);scrollDispatcher=a(j);ngZone=a(m);dir=a(F,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new u;_renderer=a(te);_cleanupScroll;_elementScrolled=new u;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let e=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),o&&Y()!=z.NORMAL?(t.left!=null&&(t.right=e.scrollWidth-e.clientWidth-t.left),Y()==z.INVERTED?t.left=t.right:Y()==z.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let e=this.elementRef.nativeElement;ct()?e.scrollTo(t):(t.top!=null&&(e.scrollTop=t.top),t.left!=null&&(e.scrollLeft=t.left))}measureScrollOffset(t){let e="left",o="right",n=this.elementRef.nativeElement;if(t=="top")return n.scrollTop;if(t=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:e:t=="end"&&(t=r?e:o),r&&Y()==z.INVERTED?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:r&&Y()==z.NEGATED?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}static \u0275fac=function(e){return new(e||s)};static \u0275dir=E({type:s,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return s})(),je=20,dt=(()=>{class s{_platform=a(P);_listeners;_viewportSize;_change=new u;_document=a(y,{optional:!0});constructor(){let t=a(m),e=a(I).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=n=>this._change.next(n);this._listeners=[e.listen("window","resize",o),e.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+e,height:o,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,e=this._getWindow(),o=t.documentElement,n=o.getBoundingClientRect(),r=-n.top||t.body.scrollTop||e.scrollY||o.scrollTop||0,l=-n.left||t.body.scrollLeft||e.scrollX||o.scrollLeft||0;return{top:r,left:l}}change(t=je){return t>0?this._change.pipe(wt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var $=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({})}return s})(),Vt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({imports:[U,$,U,$]})}return s})();var H=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},X=class extends H{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,t,e,o,n){super(),this.component=i,this.viewContainerRef=t,this.injector=e,this.projectableNodes=n}},W=class extends H{templateRef;viewContainerRef;context;injector;constructor(i,t,e,o){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ft=class extends H{element;constructor(i){super(),this.element=i instanceof v?i.nativeElement:i}},K=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof X)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof W)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ft)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var q=class extends K{outletElement;_appRef;_defaultInjector;_document;constructor(i,t,e,o,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=o,this._document=n}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,o=e.get(St,null,{optional:!0})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let e=this._appRef,o=i.injector||this._defaultInjector||A.NULL,n=o.get(et,e.injector);t=ae(i.component,{elementInjector:o,environmentInjector:n,projectableNodes:i.projectableNodes||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return e.rootNodes.forEach(o=>this.outletElement.appendChild(o)),e.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(e);o!==-1&&t.remove(o)}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this._document.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var He=(()=>{class s extends K{_moduleRef=a(St,{optional:!0});_document=a(y);_viewContainerRef=a(L);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}attached=new k;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let e=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=e.createComponent(t.component,{index:e.length,injector:t.injector||e.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}attachDomPortal=t=>{let e=t.element;e.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(o,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(e,o)})};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=function(e){return new(e||s)};static \u0275dir=E({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Rt]})}return s})();var Bt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({})}return s})();var ge=ct(),pt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,t){this._viewportRuler=i,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=f(-this._previousScrollPosition.left),i.style.top=f(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,o=t.style,n=e.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),ge&&(e.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ge&&(e.scrollBehavior=n,o.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};var ut=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,t,e,o){this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(tt(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Q=class{enable(){}disable(){}attach(){}};function Nt(s,i){return i.some(t=>{let e=s.bottom<t.top,o=s.top>t.bottom,n=s.right<t.left,r=s.left>t.right;return e||o||n||r})}function me(s,i){return i.some(t=>{let e=s.top<t.top,o=s.bottom>t.bottom,n=s.left<t.left,r=s.right>t.right;return e||o||n||r})}var _t=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,o){this._scrollDispatcher=i,this._viewportRuler=t,this._ngZone=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:o}=this._viewportRuler.getViewportSize();Nt(t,[{width:e,height:o,bottom:o,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Re=(()=>{class s{_scrollDispatcher=a(j);_viewportRuler=a(dt);_ngZone=a(m);_document=a(y);constructor(){}noop=()=>new Q;close=t=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,t);block=()=>new pt(this._viewportRuler,this._document);reposition=t=>new _t(this._scrollDispatcher,this._viewportRuler,this._ngZone,t);static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),J=class{positionStrategy;scrollStrategy=new Q;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e])}}};var gt=class{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t}};var Oe=(()=>{class s{_attachedOverlays=[];_document=a(y);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ke=(()=>{class s extends Oe{_ngZone=a(m);_renderer=a(I).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let e=this._attachedOverlays;for(let o=e.length-1;o>-1;o--)if(e[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>e[o]._keydownEvents.next(t));break}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),De=(()=>{class s extends Oe{_platform=a(P);_ngZone=a(m);_renderer=a(I).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,o={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[G(this._renderer,e,"pointerdown",this._pointerDownListener,o),G(this._renderer,e,"click",this._clickListener,o),G(this._renderer,e,"auxclick",this._clickListener,o),G(this._renderer,e,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=at(t)};_clickListener=t=>{let e=at(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){let l=n[r];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(ve(l.overlayElement,e)||ve(l.overlayElement,o))break;let c=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t)}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function ve(s,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===s)return!0;e=t&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var Ee=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275cmp=Z({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
1
+ import{B as _e,C as At,D as f,E as F,F as z,G as ct,H as Y,I as U,J as It,M as Lt,e as at,f as G,g as P,h as ce,i as lt,j as de,k as fe,m as Tt,o as Mt,u as pe,v as ue,w as ht}from"./chunk-B73M3AMU.js";import{a as y,c as le,d as he}from"./chunk-M2FCTYGU.js";import{Ac as Dt,Bc as Et,Ca as it,Cb as St,Cc as Pt,Ea as A,F as $t,G as tt,Gb as Z,Gc as se,Hb as D,Hc as ne,I as wt,Ib as E,Ka as k,Kb as Rt,La as m,Pa as v,Wb as ee,Xa as ot,Yb as ie,_b as nt,a as T,bb as Jt,c as Gt,ca as w,cb as N,da as Kt,f as u,ic as rt,ja as b,jc as Ot,jd as xt,ka as O,ma as B,oc as oe,od as M,pa as a,q as Ut,qd as re,rb as Ct,tb as st,tc as kt,td as ae,ua as et,vb as I,wb as te,xa as bt,ya as qt,za as Qt,zb as L}from"./chunk-B7KTCPKC.js";import{a as R,b as Zt}from"./chunk-66YHNWRR.js";var ze=20,j=(()=>{class s{_ngZone=a(m);_platform=a(P);_renderer=a(I).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new u;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=ze){return this._platform.isBrowser?new Gt(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(wt(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Ut()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){let o=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(tt(n=>!n||o.indexOf(n)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((o,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_scrollableContainsElement(t,e){let o=de(e),n=t.getElementRef().nativeElement;do if(o==n)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ye=(()=>{class s{elementRef=a(v);scrollDispatcher=a(j);ngZone=a(m);dir=a(F,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new u;_renderer=a(te);_cleanupScroll;_elementScrolled=new u;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let e=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),o&&Y()!=z.NORMAL?(t.left!=null&&(t.right=e.scrollWidth-e.clientWidth-t.left),Y()==z.INVERTED?t.left=t.right:Y()==z.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let e=this.elementRef.nativeElement;ct()?e.scrollTo(t):(t.top!=null&&(e.scrollTop=t.top),t.left!=null&&(e.scrollLeft=t.left))}measureScrollOffset(t){let e="left",o="right",n=this.elementRef.nativeElement;if(t=="top")return n.scrollTop;if(t=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:e:t=="end"&&(t=r?e:o),r&&Y()==z.INVERTED?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:r&&Y()==z.NEGATED?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}static \u0275fac=function(e){return new(e||s)};static \u0275dir=E({type:s,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return s})(),je=20,dt=(()=>{class s{_platform=a(P);_listeners;_viewportSize;_change=new u;_document=a(y,{optional:!0});constructor(){let t=a(m),e=a(I).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=n=>this._change.next(n);this._listeners=[e.listen("window","resize",o),e.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+e,height:o,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,e=this._getWindow(),o=t.documentElement,n=o.getBoundingClientRect(),r=-n.top||t.body.scrollTop||e.scrollY||o.scrollTop||0,l=-n.left||t.body.scrollLeft||e.scrollX||o.scrollLeft||0;return{top:r,left:l}}change(t=je){return t>0?this._change.pipe(wt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var $=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({})}return s})(),Vt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({imports:[U,$,U,$]})}return s})();var H=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},X=class extends H{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,t,e,o,n){super(),this.component=i,this.viewContainerRef=t,this.injector=e,this.projectableNodes=n}},W=class extends H{templateRef;viewContainerRef;context;injector;constructor(i,t,e,o){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ft=class extends H{element;constructor(i){super(),this.element=i instanceof v?i.nativeElement:i}},K=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof X)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof W)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ft)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var q=class extends K{outletElement;_appRef;_defaultInjector;_document;constructor(i,t,e,o,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=o,this._document=n}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,o=e.get(St,null,{optional:!0})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let e=this._appRef,o=i.injector||this._defaultInjector||A.NULL,n=o.get(et,e.injector);t=ae(i.component,{elementInjector:o,environmentInjector:n,projectableNodes:i.projectableNodes||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return e.rootNodes.forEach(o=>this.outletElement.appendChild(o)),e.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(e);o!==-1&&t.remove(o)}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this._document.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var He=(()=>{class s extends K{_moduleRef=a(St,{optional:!0});_document=a(y);_viewContainerRef=a(L);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}attached=new k;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let e=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=e.createComponent(t.component,{index:e.length,injector:t.injector||e.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}attachDomPortal=t=>{let e=t.element;e.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(o,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(e,o)})};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=function(e){return new(e||s)};static \u0275dir=E({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Rt]})}return s})();var Bt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({})}return s})();var ge=ct(),pt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,t){this._viewportRuler=i,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=f(-this._previousScrollPosition.left),i.style.top=f(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,o=t.style,n=e.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),ge&&(e.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ge&&(e.scrollBehavior=n,o.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};var ut=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,t,e,o){this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(tt(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Q=class{enable(){}disable(){}attach(){}};function Nt(s,i){return i.some(t=>{let e=s.bottom<t.top,o=s.top>t.bottom,n=s.right<t.left,r=s.left>t.right;return e||o||n||r})}function me(s,i){return i.some(t=>{let e=s.top<t.top,o=s.bottom>t.bottom,n=s.left<t.left,r=s.right>t.right;return e||o||n||r})}var _t=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,o){this._scrollDispatcher=i,this._viewportRuler=t,this._ngZone=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:o}=this._viewportRuler.getViewportSize();Nt(t,[{width:e,height:o,bottom:o,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Re=(()=>{class s{_scrollDispatcher=a(j);_viewportRuler=a(dt);_ngZone=a(m);_document=a(y);constructor(){}noop=()=>new Q;close=t=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,t);block=()=>new pt(this._viewportRuler,this._document);reposition=t=>new _t(this._scrollDispatcher,this._viewportRuler,this._ngZone,t);static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),J=class{positionStrategy;scrollStrategy=new Q;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e])}}};var gt=class{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t}};var Oe=(()=>{class s{_attachedOverlays=[];_document=a(y);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ke=(()=>{class s extends Oe{_ngZone=a(m);_renderer=a(I).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let e=this._attachedOverlays;for(let o=e.length-1;o>-1;o--)if(e[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>e[o]._keydownEvents.next(t));break}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),De=(()=>{class s extends Oe{_platform=a(P);_ngZone=a(m);_renderer=a(I).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,o={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[G(this._renderer,e,"pointerdown",this._pointerDownListener,o),G(this._renderer,e,"click",this._clickListener,o),G(this._renderer,e,"auxclick",this._clickListener,o),G(this._renderer,e,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=at(t)};_clickListener=t=>{let e=at(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){let l=n[r];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(ve(l.overlayElement,e)||ve(l.overlayElement,o))break;let c=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t)}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function ve(s,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===s)return!0;e=t&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var Ee=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275cmp=Z({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
2
2
  `],encapsulation:2,changeDetection:0})}return s})(),Pe=(()=>{class s{_platform=a(P);_containerElement;_document=a(y);_styleLoader=a(Tt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||At()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let n=0;n<o.length;n++)o[n].remove()}let e=this._document.createElement("div");e.classList.add(t),At()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}_loadStyles(){this._styleLoader.load(Ee)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),zt=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,t,e,o){this._renderer=t,this._ngZone=e,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o)}detach(){this._ngZone.runOutsideAngular(()=>{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},mt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new u;_attachments=new u;_detachments=new u;_positionStrategy;_scrollStrategy;_locationChanges=T.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new u;_outsidePointerEvents=new u;_renders=new u;_afterRenderRef;_afterNextRenderRef;constructor(i,t,e,o,n,r,l,c,d,h=!1,p,S){this._portalOutlet=i,this._host=t,this._pane=e,this._config=o,this._ngZone=n,this._keyboardDispatcher=r,this._document=l,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._injector=p,this._renderer=S,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=re(()=>Jt(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=N(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=R(R({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Zt(R({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=f(this._config.width),i.height=f(this._config.height),i.minWidth=f(this._config.minWidth),i.minHeight=f(this._config.minHeight),i.maxWidth=f(this._config.maxWidth),i.maxHeight=f(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new zt(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,t,e){let o=Mt(t||[]).filter(n=>!!n);o.length&&(e?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let i=this._renders.pipe(w($t(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},ye="cdk-overlay-connected-position-bounding-box",Xe=/([A-Za-z%]+)$/,vt=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new u;_resizeSubscription=T.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,t,e,o,n){this._viewportRuler=t,this._document=e,this._platform=o,this._overlayContainer=n,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(ye),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,t=this._overlayRect,e=this._viewportRect,o=this._containerRect,n=[],r;for(let l of this._preferredPositions){let c=this._getOriginPoint(i,o,l),d=this._getOverlayPoint(c,t,l),h=this._getOverlayFit(d,t,e,l);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(l,c);return}if(this._canFitWithFlexibleDimensions(h,d,e)){n.push({position:l,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,l)});continue}(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:d,originPoint:c,position:l,overlayRect:t})}if(n.length){let l=null,c=-1;for(let d of n){let h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>c&&(c=h,l=d)}this._isPushed=!1,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&V(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ye),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,t)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,t,e){let o;if(e.originX=="center")o=i.left+i.width/2;else{let r=this._isRtl()?i.right:i.left,l=this._isRtl()?i.left:i.right;o=e.originX=="start"?r:l}t.left<0&&(o-=t.left);let n;return e.originY=="center"?n=i.top+i.height/2:n=e.originY=="top"?i.top:i.bottom,t.top<0&&(n-=t.top),{x:o,y:n}}_getOverlayPoint(i,t,e){let o;e.overlayX=="center"?o=-t.width/2:e.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let n;return e.overlayY=="center"?n=-t.height/2:n=e.overlayY=="top"?0:-t.height,{x:i.x+o,y:i.y+n}}_getOverlayFit(i,t,e,o){let n=be(t),{x:r,y:l}=i,c=this._getOffset(o,"x"),d=this._getOffset(o,"y");c&&(r+=c),d&&(l+=d);let h=0-r,p=r+n.width-e.width,S=0-l,g=l+n.height-e.height,_=this._subtractOverflows(n.width,h,p),C=this._subtractOverflows(n.height,S,g),Wt=_*C;return{visibleArea:Wt,isCompletelyWithinViewport:n.width*n.height===Wt,fitsInViewportVertically:C===n.height,fitsInViewportHorizontally:_==n.width}}_canFitWithFlexibleDimensions(i,t,e){if(this._hasFlexibleDimensions){let o=e.bottom-t.y,n=e.right-t.x,r=we(this._overlayRef.getConfig().minHeight),l=we(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||r!=null&&r<=o,d=i.fitsInViewportHorizontally||l!=null&&l<=n;return c&&d}return!1}_pushOverlayOnScreen(i,t,e){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=be(t),n=this._viewportRect,r=Math.max(i.x+o.width-n.width,0),l=Math.max(i.y+o.height-n.height,0),c=Math.max(n.top-e.top-i.y,0),d=Math.max(n.left-e.left-i.x,0),h=0,p=0;return o.width<=n.width?h=d||-r:h=i.x<this._viewportMargin?n.left-e.left-i.x:0,o.height<=n.height?p=c||-l:p=i.y<this._viewportMargin?n.top-e.top-i.y:0,this._previousPushAmount={x:h,y:p},{x:i.x+h,y:i.y+p}}_applyPosition(i,t){if(this._setTransformOrigin(i),this._setOverlayElementStyles(t,i),this._setBoundingBoxStyles(t,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!We(this._lastScrollVisibility,e)){let o=new gt(i,e);this._positionChanges.next(o)}this._lastScrollVisibility=e}this._lastPosition=i,this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,o=i.overlayY;i.overlayX==="center"?e="center":this._isRtl()?e=i.overlayX==="start"?"right":"left":e=i.overlayX==="start"?"left":"right";for(let n=0;n<t.length;n++)t[n].style.transformOrigin=`${e} ${o}`}_calculateBoundingBoxRect(i,t){let e=this._viewportRect,o=this._isRtl(),n,r,l;if(t.overlayY==="top")r=i.y,n=e.height-r+this._viewportMargin;else if(t.overlayY==="bottom")l=e.height-i.y+this._viewportMargin*2,n=e.height-l+this._viewportMargin;else{let g=Math.min(e.bottom-i.y+e.top,i.y),_=this._lastBoundingBoxSize.height;n=g*2,r=i.y-g,n>_&&!this._isInitialRender&&!this._growAfterOpen&&(r=i.y-_/2)}let c=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,d=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,h,p,S;if(d)S=e.width-i.x+this._viewportMargin*2,h=i.x-this._viewportMargin;else if(c)p=i.x,h=e.right-i.x;else{let g=Math.min(e.right-i.x+e.left,i.x),_=this._lastBoundingBoxSize.width;h=g*2,p=i.x-g,h>_&&!this._isInitialRender&&!this._growAfterOpen&&(p=i.x-_/2)}return{top:r,left:p,bottom:l,right:S,width:h,height:n}}_setBoundingBoxStyles(i,t){let e=this._calculateBoundingBoxRect(i,t);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.height=f(e.height),o.top=f(e.top),o.bottom=f(e.bottom),o.width=f(e.width),o.left=f(e.left),o.right=f(e.right),t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",n&&(o.maxHeight=f(n)),r&&(o.maxWidth=f(r))}this._lastBoundingBoxSize=e,V(this._boundingBox.style,o)}_resetBoundingBoxStyles(){V(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){V(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,t){let e={},o=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();V(e,this._getExactOverlayY(t,i,h)),V(e,this._getExactOverlayX(t,i,h))}else e.position="static";let l="",c=this._getOffset(t,"x"),d=this._getOffset(t,"y");c&&(l+=`translateX(${c}px) `),d&&(l+=`translateY(${d}px)`),e.transform=l.trim(),r.maxHeight&&(o?e.maxHeight=f(r.maxHeight):n&&(e.maxHeight="")),r.maxWidth&&(o?e.maxWidth=f(r.maxWidth):n&&(e.maxWidth="")),V(this._pane.style,e)}_getExactOverlayY(i,t,e){let o={top:"",bottom:""},n=this._getOverlayPoint(t,this._overlayRect,i);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e)),i.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;o.bottom=`${r-(n.y+this._overlayRect.height)}px`}else o.top=f(n.y);return o}_getExactOverlayX(i,t,e){let o={left:"",right:""},n=this._getOverlayPoint(t,this._overlayRect,i);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e));let r;if(this._isRtl()?r=i.overlayX==="end"?"left":"right":r=i.overlayX==="end"?"right":"left",r==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(n.x+this._overlayRect.width)}px`}else o.left=f(n.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),t=this._pane.getBoundingClientRect(),e=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:me(i,e),isOriginOutsideView:Nt(i,e),isOverlayClipped:me(t,e),isOverlayOutsideView:Nt(t,e)}}_subtractOverflows(i,...t){return t.reduce((e,o)=>e-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+i-this._viewportMargin,bottom:e.top+t-this._viewportMargin,width:i-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,t){return t==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Mt(i).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof v)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let t=i.width||0,e=i.height||0;return{top:i.y,bottom:i.y+e,left:i.x,right:i.x+t,height:e,width:t}}};function V(s,i){for(let t in i)i.hasOwnProperty(t)&&(s[t]=i[t]);return s}function we(s){if(typeof s!="number"&&s!=null){let[i,t]=s.split(Xe);return!t||t==="px"?parseFloat(i):null}return s||null}function be(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}function We(s,i){return s===i?!0:s.isOriginClipped===i.isOriginClipped&&s.isOriginOutsideView===i.isOriginOutsideView&&s.isOverlayClipped===i.isOverlayClipped&&s.isOverlayOutsideView===i.isOverlayOutsideView}var Ce="cdk-global-overlay-wrapper",yt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let t=i.getConfig();this._overlayRef=i,this._width&&!t.width&&i.updateSize({width:this._width}),this._height&&!t.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Ce),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:o,height:n,maxWidth:r,maxHeight:l}=e,c=(o==="100%"||o==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!l||l==="100%"||l==="100vh"),h=this._xPosition,p=this._xOffset,S=this._overlayRef.getConfig().direction==="rtl",g="",_="",C="";c?C="flex-start":h==="center"?(C="center",S?_=p:g=p):S?h==="left"||h==="end"?(C="flex-end",g=p):(h==="right"||h==="start")&&(C="flex-start",_=p):h==="left"||h==="start"?(C="flex-start",g=p):(h==="right"||h==="end")&&(C="flex-end",_=p),i.position=this._cssPosition,i.marginLeft=c?"0":g,i.marginTop=d?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":_,t.justifyContent=C,t.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,e=t.style;t.classList.remove(Ce),e.justifyContent=e.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},xe=(()=>{class s{_viewportRuler=a(dt);_document=a(y);_platform=a(P);_overlayContainer=a(Pe);constructor(){}global(){return new yt}flexibleConnectedTo(t){return new vt(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),x=(()=>{class s{scrollStrategies=a(Re);_overlayContainer=a(Pe);_positionBuilder=a(xe);_keyboardDispatcher=a(ke);_injector=a(A);_ngZone=a(m);_document=a(y);_directionality=a(F);_location=a(le);_outsideClickDispatcher=a(De);_animationsModuleType=a(ot,{optional:!0});_idGenerator=a(ue);_renderer=a(I).createRenderer(null,null);_appRef;_styleLoader=a(Tt);constructor(){}create(t){this._styleLoader.load(Ee);let e=this._createHostElement(),o=this._createPaneElement(e),n=this._createPortalOutlet(o),r=new J(t);return r.direction=r.direction||this._directionality.value,new mt(n,e,o,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(et),this._renderer)}position(){return this._positionBuilder}_createPaneElement(t){let e=this._document.createElement("div");return e.id=this._idGenerator.getId("cdk-overlay-"),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ee)),new q(t,null,this._appRef,this._injector,this._document)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ze=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Te=new B("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let s=a(x);return()=>s.scrollStrategies.reposition()}}),Yt=(()=>{class s{elementRef=a(v);constructor(){}static \u0275fac=function(e){return new(e||s)};static \u0275dir=E({type:s,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return s})(),Ge=(()=>{class s{_overlay=a(x);_dir=a(F,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=T.EMPTY;_attachSubscription=T.EMPTY;_detachSubscription=T.EMPTY;_positionSubscription=T.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=a(Te);_disposeOnNavigation=!1;_ngZone=a(m);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}backdropClick=new k;positionChange=new k;attach=new k;detach=new k;overlayKeydown=new k;overlayOutsideClick=new k;constructor(){let t=a(st),e=a(L);this._templatePortal=new W(t,e),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ze);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),e.keyCode===27&&!this.disableClose&&!ht(e)&&(e.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{let o=this._getOriginElement(),n=at(e);(!o||o!==n&&!o.contains(n))&&this.overlayOutsideClick.next(e)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new J({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(e.width=this.width),(this.height||this.height===0)&&(e.height=this.height),(this.minWidth||this.minWidth===0)&&(e.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){let e=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Yt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Yt?this.origin.elementRef.nativeElement:this.origin instanceof v?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Kt(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(e){return new(e||s)};static \u0275dir=E({type:s,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",M],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",M],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",M],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",M],push:[2,"cdkConnectedOverlayPush","push",M],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",M]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[bt]})}return s})();function Ue(s){return()=>s.scrollStrategies.reposition()}var $e={provide:Te,deps:[x],useFactory:Ue},jt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({providers:[x,$e],imports:[U,Bt,Vt,Vt]})}return s})();var Ke=["tooltip"],Ht=20;var Xt=new B("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let s=a(x);return()=>s.scrollStrategies.reposition({scrollThrottle:Ht})}});function Ie(s){return()=>s.scrollStrategies.reposition({scrollThrottle:Ht})}var Le={provide:Xt,deps:[x],useFactory:Ie};function Fe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var Ve=new B("mat-tooltip-default-options",{providedIn:"root",factory:Fe});var Me="tooltip-panel",Ae=ce({passive:!0}),qe=8,Qe=8,Je=24,ti=200,ei=(()=>{class s{_elementRef=a(v);_ngZone=a(m);_platform=a(P);_ariaDescriber=a(_e);_focusMonitor=a(fe);_dir=a(F);_injector=a(A);_viewContainerRef=a(L);_defaultOptions=a(Ve,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Be;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=It(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=It(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=lt(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=lt(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new u;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=qe}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(w(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,o])=>{t.removeEventListener(e,o,Ae)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(e);this._detach(),this._portal=this._portal||new X(this._tooltipComponent,this._viewContainerRef);let n=this._tooltipInstance=o.attach(this._portal).instance;n._triggerElement=this._elementRef.nativeElement,n._mouseLeaveHideDelay=this._hideDelay,n.afterHidden().pipe(w(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),n.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&r._origin instanceof v)return this._overlayRef;this._detach()}let e=this._injector.get(j).getAncestorScrollContainers(this._elementRef),o=this._injector.get(x),n=o.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return n.positionChanges.pipe(w(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=o.create({direction:this._dir,positionStrategy:n,panelClass:`${this._cssClassPrefix}-${Me}`,scrollStrategy:this._injector.get(Xt)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(w(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(w(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(w(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&r.keyCode===27&&!ht(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(w(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,o=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(R(R({},o.main),n.main)),this._addOffset(R(R({},o.fallback),n.fallback))])}_addOffset(t){let e=Qe,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=o?-e:e:t.originX==="end"&&(t.offsetX=o?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,o;e=="above"||e=="below"?o={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?o={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:n,y:r}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:n,originY:r}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,o;e=="above"?o={overlayX:"center",overlayY:"bottom"}:e=="below"?o={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:n,y:r}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:n,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),N(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:o,originY:n}=t,r;if(e==="center"?this._dir&&this._dir.value==="rtl"?r=o==="end"?"left":"right":r=o==="start"?"left":"right":r=e==="bottom"&&n==="top"?"above":"below",r!==this._currentPosition){let l=this._overlayRef;if(l){let c=`${this._cssClassPrefix}-${Me}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let e=t.targetTouches?.[0],o=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let n=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??n)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",e=>{let o=e.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",e=>this._wheelListener(e)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([e,o])=>{this._elementRef.nativeElement.addEventListener(e,o,Ae)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let e=this._injector.get(y).elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;e!==o&&!o.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,o=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!e.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||N({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(e){return new(e||s)};static \u0275dir=E({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,o){e&2&&nt("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return s})(),Be=(()=>{class s{_changeDetectorRef=a(xt);_elementRef=a(v);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new u;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let t=a(ot,{optional:!0});this._animationsDisabled=t==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>Je&&t.width>=ti}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,o=this._showAnimation,n=this._hideAnimation;if(e.classList.remove(t?n:o),e.classList.add(t?o:n),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let r=getComputedStyle(e);(r.getPropertyValue("animation-duration")==="0s"||r.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=Z({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,o){if(e&1&&Dt(Ke,7),e&2){let n;Et(n=Pt())&&(o._tooltip=n.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,o){e&1&&kt("mouseleave",function(r){return o._handleMouseLeave(r)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,o){if(e&1){let n=oe();rt(0,"div",1,0),kt("animationend",function(l){return qt(n),Qt(o._handleAnimationEnd(l))}),rt(2,"div",2),se(3),Ot()()}e&2&&(nt("mdc-tooltip--multiline",o._isMultiline),ie("ngClass",o.tooltipClass),Ct(3),ne(o.message))},dependencies:[he],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}
3
3
  `],encapsulation:2,changeDetection:0})}return s})(),ii=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=D({type:s});static \u0275inj=O({providers:[Le],imports:[pe,jt,Lt,Lt,$]})}return s})();export{j as a,Ye as b,dt as c,$ as d,X as e,W as f,K as g,He as h,Bt as i,J as j,Pe as k,mt as l,vt as m,x as n,Yt as o,Ge as p,jt as q,ei as r,ii as s};