marketplacepos 5.46.0 → 5.46.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/Marketplace/{chunk-FPYZBABH.js → chunk-2O4IEGGR.js} +1 -1
  2. package/Marketplace/{chunk-RDJPSZRF.js → chunk-3434HH7H.js} +1 -1
  3. package/Marketplace/{chunk-Z3ZYINRX.js → chunk-3BALA33G.js} +1 -1
  4. package/Marketplace/{chunk-6RLISMEX.js → chunk-3GDM5JNY.js} +1 -1
  5. package/Marketplace/chunk-3GRC47DP.js +1 -0
  6. package/Marketplace/chunk-45FZJ4W3.js +1 -0
  7. package/Marketplace/{chunk-ZWEHKGL5.js → chunk-4DMKVXM7.js} +1 -1
  8. package/Marketplace/{chunk-LBXSZJDS.js → chunk-4G7SG2H6.js} +1 -1
  9. package/Marketplace/chunk-4JQLXONG.js +1 -0
  10. package/Marketplace/chunk-4NEKWRL7.js +1 -0
  11. package/Marketplace/chunk-4YRBARG2.js +1 -0
  12. package/Marketplace/{chunk-LDD4NVMB.js → chunk-5CKVZBHM.js} +1 -1
  13. package/Marketplace/{chunk-PFXOFSJG.js → chunk-67HPC5Y3.js} +1 -1
  14. package/Marketplace/{chunk-FFCWYWBW.js → chunk-6H2KAYSB.js} +6 -99
  15. package/Marketplace/{chunk-WLRPCY65.js → chunk-6OMSPZZC.js} +1 -1
  16. package/Marketplace/chunk-6RMBCW2O.js +1 -0
  17. package/Marketplace/chunk-6VZVNRUE.js +257 -0
  18. package/Marketplace/{chunk-WCVSETLP.js → chunk-72OHPB5Q.js} +2 -2
  19. package/Marketplace/chunk-77MWKV5I.js +158 -0
  20. package/Marketplace/chunk-7AZDAPB7.js +1 -0
  21. package/Marketplace/chunk-7F74QXF6.js +1 -0
  22. package/Marketplace/{chunk-DFGZ4L65.js → chunk-7G6GQTSH.js} +1 -1
  23. package/Marketplace/chunk-7VLMA7MW.js +1 -0
  24. package/Marketplace/chunk-A57T33JT.js +1 -0
  25. package/Marketplace/{chunk-BBQGPXDH.js → chunk-A6PXM4YX.js} +1 -1
  26. package/Marketplace/{chunk-HFCAD7GH.js → chunk-ABYG6YZT.js} +1 -1
  27. package/Marketplace/{chunk-3TYYN7ZX.js → chunk-AGZCB65X.js} +1 -1
  28. package/Marketplace/chunk-AMYZMAYI.js +15 -0
  29. package/Marketplace/chunk-B2WOBUES.js +1 -0
  30. package/Marketplace/{chunk-QHE3PKRD.js → chunk-BAXQ2L7B.js} +1 -1
  31. package/Marketplace/chunk-BDKGOINV.js +1 -0
  32. package/Marketplace/{chunk-2HNZ6XV3.js → chunk-BKRCW7SH.js} +1 -1
  33. package/Marketplace/{chunk-IQ4AFE6X.js → chunk-BMYBLBSP.js} +3 -3
  34. package/Marketplace/chunk-CBAQUD22.js +1 -0
  35. package/Marketplace/{chunk-F6HNCBQX.js → chunk-CBJR2A72.js} +1 -1
  36. package/Marketplace/chunk-CGEIIRYF.js +1 -0
  37. package/Marketplace/{chunk-MW6Q6DZF.js → chunk-CGOB6Y3X.js} +1 -1
  38. package/Marketplace/{chunk-LSCMIKJ2.js → chunk-CIPLCKUF.js} +1 -1
  39. package/Marketplace/{chunk-5X2WQKXH.js → chunk-CJ4F7QUO.js} +1 -1
  40. package/Marketplace/{chunk-NERXQ5KH.js → chunk-CVM573KF.js} +1 -1
  41. package/Marketplace/{chunk-QNM4JQ46.js → chunk-CWXOXH6M.js} +1 -1
  42. package/Marketplace/{chunk-ZDXNJIJA.js → chunk-DAXM2MPK.js} +1 -1
  43. package/Marketplace/{chunk-WKSCLDT7.js → chunk-EHBCYQSG.js} +1 -1
  44. package/Marketplace/{chunk-QP4C4R4W.js → chunk-EHUVS2VB.js} +1 -1
  45. package/Marketplace/chunk-EPBVNII2.js +51 -0
  46. package/Marketplace/{chunk-G7T42LFR.js → chunk-EYONZQ2W.js} +1 -1
  47. package/Marketplace/{chunk-VVX6LRMW.js → chunk-FGFIV3VO.js} +1 -1
  48. package/Marketplace/chunk-FGRPTNDB.js +234 -0
  49. package/Marketplace/{chunk-EBCTTFHD.js → chunk-FNU2TKTQ.js} +2 -2
  50. package/Marketplace/chunk-FYRDNKYT.js +1 -0
  51. package/Marketplace/chunk-GHVAGYK3.js +2 -0
  52. package/Marketplace/chunk-GPX77ZSI.js +1 -0
  53. package/Marketplace/{chunk-N6HMVYWS.js → chunk-GQXYHXWJ.js} +1 -1
  54. package/Marketplace/chunk-GRQD4D2I.js +1 -0
  55. package/Marketplace/{chunk-YIXZLIPA.js → chunk-GRYGUILI.js} +2 -2
  56. package/Marketplace/{chunk-BJUPMCEP.js → chunk-GZKOMS4T.js} +1 -1
  57. package/Marketplace/{chunk-W3JKSCRF.js → chunk-HERZ7KEM.js} +1 -1
  58. package/Marketplace/{chunk-PONMPAT5.js → chunk-HGZ5B6WR.js} +1 -1
  59. package/Marketplace/{chunk-3UN6FPMN.js → chunk-HIC5QC3Y.js} +1 -1
  60. package/Marketplace/{chunk-4VITMSIA.js → chunk-HITTNWB6.js} +1 -1
  61. package/Marketplace/{chunk-FO7G4GMY.js → chunk-HJXYT6MI.js} +3 -3
  62. package/Marketplace/{chunk-5LQRO4AI.js → chunk-IHSGQFDX.js} +2 -2
  63. package/Marketplace/chunk-II5QZVLR.js +1 -0
  64. package/Marketplace/{chunk-XXWBR6S5.js → chunk-IITU3NV6.js} +1 -1
  65. package/Marketplace/{chunk-LDPDLCRL.js → chunk-JBT7GBCM.js} +1 -1
  66. package/Marketplace/{chunk-VKFFHT27.js → chunk-JGEU4EJT.js} +1 -1
  67. package/Marketplace/{chunk-B67DSLBY.js → chunk-KS7ACI26.js} +6 -6
  68. package/Marketplace/{chunk-OK3LLCAK.js → chunk-KSHWHTCH.js} +1 -1
  69. package/Marketplace/{chunk-RNTPX24O.js → chunk-LBMUKJV5.js} +1 -1
  70. package/Marketplace/chunk-LCZ6SUUA.js +1 -0
  71. package/Marketplace/{chunk-UXPULNCR.js → chunk-LDL3A7NM.js} +1 -1
  72. package/Marketplace/chunk-LFGPYQCI.js +1 -0
  73. package/Marketplace/{chunk-DZYBXWL2.js → chunk-LYPHZP72.js} +1 -1
  74. package/Marketplace/{chunk-NNRBGHXB.js → chunk-MFQQEEHJ.js} +3 -3
  75. package/Marketplace/chunk-MX5SR3SR.js +94 -0
  76. package/Marketplace/chunk-NDLOPOFD.js +1 -0
  77. package/Marketplace/{chunk-CHWXOJDB.js → chunk-NNOI3AG4.js} +1 -1
  78. package/Marketplace/{chunk-I2Y5WJEO.js → chunk-NWWYOZ4V.js} +1 -1
  79. package/Marketplace/{chunk-OIEZ4JUJ.js → chunk-OE7TF7SI.js} +1 -1
  80. package/Marketplace/chunk-OEAOBG75.js +1 -0
  81. package/Marketplace/{chunk-X5KQU53P.js → chunk-OHSVQSCM.js} +1 -1
  82. package/Marketplace/{chunk-QK4BGDSS.js → chunk-OHVOVAKD.js} +1 -1
  83. package/Marketplace/chunk-OVPVQS4J.js +33 -0
  84. package/Marketplace/{chunk-UIFPDTMW.js → chunk-OXWPLJEW.js} +1 -1
  85. package/Marketplace/chunk-P5YM6T6I.js +1 -0
  86. package/Marketplace/chunk-PE4SWUEZ.js +7 -0
  87. package/Marketplace/{chunk-BQIB3N6V.js → chunk-PFY5UG5D.js} +1 -1
  88. package/Marketplace/{chunk-74ELVGDK.js → chunk-PHUHUFYL.js} +1 -1
  89. package/Marketplace/{chunk-AHLYED4C.js → chunk-PIBVGTHJ.js} +1 -1
  90. package/Marketplace/{chunk-FHH5BTG7.js → chunk-PL3Q6PGC.js} +1 -1
  91. package/Marketplace/{chunk-A6G2H7IF.js → chunk-PLHWGG4D.js} +2 -2
  92. package/Marketplace/{chunk-OFZOAEW5.js → chunk-PQQSREEC.js} +1 -1
  93. package/Marketplace/chunk-Q2B5GUDO.js +1 -0
  94. package/Marketplace/{chunk-QBL6V7QF.js → chunk-Q4N2QUV6.js} +1 -1
  95. package/Marketplace/{chunk-OXOTD33C.js → chunk-QOP7KZK7.js} +1 -1
  96. package/Marketplace/chunk-QSHR75ZI.js +2 -0
  97. package/Marketplace/chunk-QVP2CM7Y.js +5 -0
  98. package/Marketplace/{chunk-M7V7A7Z6.js → chunk-QW4EOJRM.js} +1 -1
  99. package/Marketplace/{chunk-WPELZYFP.js → chunk-QWISVEBT.js} +1 -1
  100. package/Marketplace/{chunk-4KHHGHFJ.js → chunk-RAQRGWCZ.js} +2 -2
  101. package/Marketplace/chunk-RC5PUUVM.js +193 -0
  102. package/Marketplace/{chunk-WWISWZF5.js → chunk-RGAKHXPF.js} +1 -1
  103. package/Marketplace/{chunk-ZBKUZ4CN.js → chunk-RGAWEFPQ.js} +1 -1
  104. package/Marketplace/{chunk-V5KHEF77.js → chunk-RJ5D24ZW.js} +1 -1
  105. package/Marketplace/chunk-RM2OSYMV.js +1 -0
  106. package/Marketplace/{chunk-KXEADFBM.js → chunk-RNNH3EZC.js} +1 -1
  107. package/Marketplace/{chunk-753FTTID.js → chunk-S3FZRSRP.js} +1 -1
  108. package/Marketplace/{chunk-FXVFO74P.js → chunk-SLEJQAL7.js} +1 -1
  109. package/Marketplace/chunk-SZGOLKC6.js +1 -0
  110. package/Marketplace/{chunk-UYLSZYOD.js → chunk-T2OSIFLN.js} +1 -1
  111. package/Marketplace/chunk-TM6DZ3ZF.js +1 -0
  112. package/Marketplace/chunk-UX3OTI5X.js +1 -0
  113. package/Marketplace/{chunk-WFT47MCY.js → chunk-UZWED4UK.js} +1 -1
  114. package/Marketplace/chunk-V6GFM5AQ.js +1 -0
  115. package/Marketplace/{chunk-LRUVI2Z3.js → chunk-VFATXJRG.js} +1 -1
  116. package/Marketplace/{chunk-FVORY74O.js → chunk-W3DTXPRM.js} +1 -1
  117. package/Marketplace/{chunk-7WG7VRYR.js → chunk-WAKKUK6E.js} +1 -1
  118. package/Marketplace/{chunk-6KBMGQMI.js → chunk-WAZXTB4X.js} +1 -1
  119. package/Marketplace/chunk-WEYKQCVQ.js +1 -0
  120. package/Marketplace/{chunk-W5L6FMO3.js → chunk-WN5DZGA4.js} +1 -1
  121. package/Marketplace/{chunk-A64VIOKR.js → chunk-WRJFUNM3.js} +1 -1
  122. package/Marketplace/chunk-WWLC64XZ.js +3 -0
  123. package/Marketplace/chunk-XPBMYV5W.js +1 -0
  124. package/Marketplace/{chunk-TYG67JH3.js → chunk-XPCRS7AL.js} +1 -1
  125. package/Marketplace/chunk-XXAV6VNB.js +1 -0
  126. package/Marketplace/{chunk-TH6VZX34.js → chunk-XXT6F2ZS.js} +1 -1
  127. package/Marketplace/chunk-YA3VMYDA.js +1 -0
  128. package/Marketplace/chunk-YFDFIBAG.js +1 -0
  129. package/Marketplace/{chunk-N2SPK2VI.js → chunk-YQLOB7IQ.js} +1 -1
  130. package/Marketplace/{chunk-PPHTN2H6.js → chunk-YTCIQBSO.js} +1 -1
  131. package/Marketplace/{chunk-3NHZEKEI.js → chunk-YXBR6VYQ.js} +1 -1
  132. package/Marketplace/chunk-Z3J3CSGS.js +1 -0
  133. package/Marketplace/chunk-Z67623R4.js +1 -0
  134. package/Marketplace/chunk-ZLNAFA4X.js +1 -0
  135. package/Marketplace/index.html +2 -2
  136. package/Marketplace/main-FUX6VJVF.js +1 -0
  137. package/package.json +1 -1
  138. package/Marketplace/chunk-2KDM4NDG.js +0 -266
  139. package/Marketplace/chunk-3NFS6ZDY.js +0 -1
  140. package/Marketplace/chunk-43E7L4CY.js +0 -1
  141. package/Marketplace/chunk-4UWGWYKJ.js +0 -1
  142. package/Marketplace/chunk-5QLKBL54.js +0 -1
  143. package/Marketplace/chunk-76XHGJE7.js +0 -1
  144. package/Marketplace/chunk-7AE3725T.js +0 -193
  145. package/Marketplace/chunk-A6PK5NP6.js +0 -1
  146. package/Marketplace/chunk-AKVBFSUI.js +0 -1
  147. package/Marketplace/chunk-AP24AK5A.js +0 -1
  148. package/Marketplace/chunk-DFFRRMPT.js +0 -1
  149. package/Marketplace/chunk-DLURPTQ3.js +0 -1
  150. package/Marketplace/chunk-DQ3XZQ7W.js +0 -7
  151. package/Marketplace/chunk-DUF425GC.js +0 -1
  152. package/Marketplace/chunk-EOLVRL5H.js +0 -2
  153. package/Marketplace/chunk-EWTJL2KE.js +0 -1
  154. package/Marketplace/chunk-FHPIPQMB.js +0 -15
  155. package/Marketplace/chunk-GVLJDP5K.js +0 -1
  156. package/Marketplace/chunk-I4WCZRNL.js +0 -1
  157. package/Marketplace/chunk-ID2YZPRH.js +0 -1
  158. package/Marketplace/chunk-IL2CPGYS.js +0 -1
  159. package/Marketplace/chunk-J53BPEDH.js +0 -1
  160. package/Marketplace/chunk-JL5DYPDV.js +0 -1
  161. package/Marketplace/chunk-K5XRGNWG.js +0 -1
  162. package/Marketplace/chunk-KVZ7LQSK.js +0 -1
  163. package/Marketplace/chunk-LFMEBDL2.js +0 -1
  164. package/Marketplace/chunk-MVBY6S4R.js +0 -1
  165. package/Marketplace/chunk-NFN7BQB3.js +0 -3
  166. package/Marketplace/chunk-OPKLFRVD.js +0 -1
  167. package/Marketplace/chunk-ORDCBJ4G.js +0 -2
  168. package/Marketplace/chunk-PFZOP2J7.js +0 -1
  169. package/Marketplace/chunk-QGK4LEFP.js +0 -1
  170. package/Marketplace/chunk-RTT3JVJM.js +0 -1
  171. package/Marketplace/chunk-SMRDRDSH.js +0 -1
  172. package/Marketplace/chunk-UBAADH47.js +0 -1
  173. package/Marketplace/chunk-UHTMVOX6.js +0 -1
  174. package/Marketplace/chunk-UUJWRGO4.js +0 -1
  175. package/Marketplace/chunk-V3CLQBGH.js +0 -1
  176. package/Marketplace/chunk-V4UHOZJ4.js +0 -1
  177. package/Marketplace/chunk-VCTMSNVC.js +0 -1
  178. package/Marketplace/chunk-VPFSU3X4.js +0 -1
  179. package/Marketplace/chunk-WHNSPPOH.js +0 -1
  180. package/Marketplace/chunk-WJAE4LW2.js +0 -51
  181. package/Marketplace/chunk-WVHSR3DQ.js +0 -5
  182. package/Marketplace/chunk-XB3CW7KH.js +0 -1
  183. package/Marketplace/chunk-XEBKP2KL.js +0 -1
  184. package/Marketplace/chunk-ZHDGR4XE.js +0 -1
  185. package/Marketplace/main-3TBM4ISM.js +0 -1
@@ -1,2 +1,2 @@
1
1
  import{a as h,o as je}from"./chunk-FXQKRJWU.js";import{$ as Me,Ea as N,G as Ie,Gb as ke,Hb as g,Ib as T,Ka as j,La as m,M as S,O as Ae,Pa as A,Q as Te,Qa as Q,Ra as Oe,Sa as q,Ua as B,Wa as we,Wb as Se,Ya as Fe,_ as x,a as pe,c as ge,ca as P,cb as Le,ea as Ce,ed as X,f as l,g as be,ja as c,ka as p,ma as _,od as J,pa as o,q as ve,sd as xe,td as Pe,ua as De,v as D,vb as Re,w as ye,xa as Ne,z as Ee}from"./chunk-OJMQBH6T.js";import{a as z}from"./chunk-66YHNWRR.js";function ee(t){return t.buttons===0||t.detail===0}function te(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var se;function Be(){if(se==null){let t=typeof document<"u"?document.head:null;se=!!(t&&(t.createShadowRoot||t.attachShadow))}return se}function ie(t){if(Be()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function ne(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}function O(t,i,e,s,n){let r=parseInt(X.major),a=parseInt(X.minor);return r>19||r===19&&a>0||r===0&&a===0?t.listen(i,e,s,n):(i.addEventListener(e,s,n),()=>{i.removeEventListener(e,s,n)})}var re;try{re=typeof Intl<"u"&&Intl.v8BreakIterator}catch{re=!1}var u=(()=>{class t{_platformId=o(we);isBrowser=this._platformId?je(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||re)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var w;function Ue(){if(w==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>w=!0}))}finally{w=w||!1}return w}function oe(t){return Ue()?t:!!t.capture}function _t(t,i=0){return Ke(t)?Number(t):arguments.length===2?i:0}function Ke(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function F(t){return t instanceof A?t.nativeElement:t}var Ve=new _("cdk-input-modality-detector-options"),He={ignoreKeys:[18,17,224,91,16]},We=650,ae={passive:!0,capture:!0},Ge=(()=>{class t{_platform=o(u);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new be(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(s=>s===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=v(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<We||(this._modality.next(ee(e)?"keyboard":"mouse"),this._mostRecentTarget=v(e))};_onTouchstart=e=>{if(te(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=v(e)};constructor(){let e=o(m),s=o(h),n=o(Ve,{optional:!0});if(this._options=z(z({},He),n),this.modalityDetected=this._modality.pipe(x(1)),this.modalityChanged=this.modalityDetected.pipe(Te()),this._platform.isBrowser){let r=o(Re).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[O(r,s,"keydown",this._onKeydown,ae),O(r,s,"mousedown",this._onMousedown,ae),O(r,s,"touchstart",this._onTouchstart,ae)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),L=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(L||{}),Ze=new _("cdk-focus-monitor-default-options"),U=oe({passive:!0,capture:!0}),$e=(()=>{class t{_ngZone=o(m);_platform=o(u);_inputModalityDetector=o(Ge);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=o(h,{optional:!0});_stopInputModalityDetector=new l;constructor(){let e=o(Ze,{optional:!0});this._detectionMode=e?.detectionMode||L.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let s=v(e);for(let n=s;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,s=!1){let n=F(e);if(!this._platform.isBrowser||n.nodeType!==1)return ve();let r=ie(n)||this._getDocument(),a=this._elementInfo.get(n);if(a)return s&&(a.checkChildren=!0),a.subject;let d={checkChildren:s,subject:new l,rootNode:r};return this._elementInfo.set(n,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let s=F(e),n=this._elementInfo.get(s);n&&(n.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(n))}focusVia(e,s,n){let r=F(e),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([d,I])=>this._originChanged(d,s,I)):(this._setOrigin(s),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===L.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,s){e.classList.toggle("cdk-focused",!!s),e.classList.toggle("cdk-touch-focused",s==="touch"),e.classList.toggle("cdk-keyboard-focused",s==="keyboard"),e.classList.toggle("cdk-mouse-focused",s==="mouse"),e.classList.toggle("cdk-program-focused",s==="program")}_setOrigin(e,s=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&s,this._detectionMode===L.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?We:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,s){let n=this._elementInfo.get(s),r=v(e);!n||!n.checkChildren&&s!==r||this._originChanged(s,this._getFocusOrigin(r),n)}_onBlur(e,s){let n=this._elementInfo.get(s);!n||n.checkChildren&&e.relatedTarget instanceof Node&&s.contains(e.relatedTarget)||(this._setClasses(s),this._emitOrigin(n,null))}_emitOrigin(e,s){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(s))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let s=e.rootNode,n=this._rootNodeFocusListenerCount.get(s)||0;n||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,U),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,U)}),this._rootNodeFocusListenerCount.set(s,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(P(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let s=e.rootNode;if(this._rootNodeFocusListenerCount.has(s)){let n=this._rootNodeFocusListenerCount.get(s);n>1?this._rootNodeFocusListenerCount.set(s,n-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,U),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,U),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,s,n){this._setClasses(e,s),this._emitOrigin(n,s),this._lastFocusOrigin=s}_getClosestElementsInfo(e){let s=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&s.push([r,n])}),s}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:s,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!s||s===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(s))return!0}return!1}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mt=(()=>{class t{_elementRef=o(A);_focusMonitor=o($e);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(s){return new(s||t)};static \u0275dir=T({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var K=new WeakMap,R=(()=>{class t{_appRef;_injector=o(N);_environmentInjector=o(De);load(e){let s=this._appRef=this._appRef||this._injector.get(Se),n=K.get(s);n||(n={loaders:new Set,refs:[]},K.set(s,n),s.onDestroy(()=>{K.get(s)?.refs.forEach(r=>r.destroy()),K.delete(s)})),n.loaders.has(e)||(n.loaders.add(e),n.refs.push(Pe(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var V=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275cmp=ke({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(s,n){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
2
- `],encapsulation:2,changeDetection:0})}return t})();function ce(t){return Array.isArray(t)?t:[t]}var pt=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ye=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({providers:[pt]})}return t})();var ze=new Set,y,gt=(()=>{class t{_platform=o(u);_nonce=o(Fe,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vt}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bt(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bt(t,i){if(!ze.has(t))try{y||(y=document.createElement("style"),i&&y.setAttribute("nonce",i),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {body{ }}`,0),ze.add(t))}catch(e){console.error(e)}}function vt(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var qe=(()=>{class t{_mediaMatcher=o(gt);_zone=o(m);_queries=new Map;_destroySubject=new l;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Qe(ce(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Qe(ce(e)).map(a=>this._registerQuery(a).observable),r=ye(n);return r=Ee(r.pipe(Ae(1)),r.pipe(x(1),S(0))),r.pipe(D(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:I,query:ft})=>{d.matches=d.matches||I,d.breakpoints[ft]=I}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let s=this._mediaMatcher.matchMedia(e),r={observable:new ge(a=>{let d=I=>this._zone.run(()=>a.next(I));return s.addListener(d),()=>{s.removeListener(d)}}).pipe(Me(s),D(({matches:a})=>({query:e,matches:a})),P(this._destroySubject)),mql:s};return this._queries.set(e,r),r}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qe(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var tt=(()=>{class t{_platform=o(u);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Et(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let s=yt(Ot(e));if(s&&(Xe(s)===-1||!this.isVisible(s)))return!1;let n=e.nodeName.toLowerCase(),r=Xe(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Dt(e)?!1:n==="audio"?e.hasAttribute("controls")?r!==-1:!1:n==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,s){return Nt(e)&&!this.isDisabled(e)&&(s?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yt(t){try{return t.frameElement}catch{return null}}function Et(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function It(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function At(t){return Mt(t)&&t.type=="hidden"}function Tt(t){return Ct(t)&&t.hasAttribute("href")}function Mt(t){return t.nodeName.toLowerCase()=="input"}function Ct(t){return t.nodeName.toLowerCase()=="a"}function st(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function Xe(t){if(!st(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Dt(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Nt(t){return At(t)?!1:It(t)||Tt(t)||t.hasAttribute("contenteditable")||st(t)}function Ot(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var H=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,s,n,r=!1,a){this._element=i,this._checker=e,this._ngZone=s,this._document=n,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let s=this._getFirstTabbableElement(e);return s?.focus(i),!!s}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=0;s<e.length;s++){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[s]):null;if(n)return n}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=e.length-1;s>=0;s--){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[s]):null;if(n)return n}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?Le(i,{injector:this._injector}):setTimeout(i)}},it=(()=>{class t{_checker=o(tt);_ngZone=o(m);_document=o(h);_injector=o(N);constructor(){o(R).load(V)}create(e,s=!1){return new H(e,this._checker,this._ngZone,this._document,s,this._injector)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wt=(()=>{class t{_elementRef=o(A);_focusTrapFactory=o(it);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){o(u).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let s=e.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ne(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(s){return new(s||t)};static \u0275dir=T({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",J],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",J]},exportAs:["cdkTrapFocus"],features:[Ne]})}return t})(),nt=new _("liveAnnouncerElement",{providedIn:"root",factory:rt});function rt(){return null}var ot=new _("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ft=0,Lt=(()=>{class t{_ngZone=o(m);_defaultOptions=o(ot,{optional:!0});_liveElement;_document=o(h);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(nt,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...s){let n=this._defaultOptions,r,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[r,a]=s,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",s=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<s.length;r++)s[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${Ft++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<s.length;n++){let r=s[n],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var b=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(b||{}),Je="cdk-high-contrast-black-on-white",et="cdk-high-contrast-white-on-black",de="cdk-high-contrast-active",W=(()=>{class t{_platform=o(u);_hasCheckedHighContrastMode;_document=o(h);_breakpointSubscription;constructor(){this._breakpointSubscription=o(qe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return b.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let s=this._document.defaultView||window,n=s&&s.getComputedStyle?s.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return b.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return b.BLACK_ON_WHITE}return b.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(de,Je,et),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===b.BLACK_ON_WHITE?e.add(de,Je):s===b.WHITE_ON_BLACK&&e.add(de,et)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[Ye]})}return t})();var kt=new _("cdk-dir-doc",{providedIn:"root",factory:St});function St(){return o(h)}var xt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function at(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?xt.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Pt=(()=>{class t{value="ltr";change=new j;constructor(){let e=o(kt,{optional:!0});if(e){let s=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=at(s||n||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var k=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(k||{}),G,E;function Xs(){if(E==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{let t=Element.prototype.scrollTo;t?E=!/\{\s*\[native code\]\s*\}/.test(t.toString()):E=!1}}return E}function Js(){if(typeof document!="object"||!document)return k.NORMAL;if(G==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),s=e.style;s.width="2px",s.height="1px",t.appendChild(e),document.body.appendChild(t),G=k.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G=t.scrollLeft===0?k.NEGATED:k.INVERTED),t.remove()}return G}var ue=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({})}return t})();var le={},jt=(()=>{class t{_appId=o(B);getId(e){return this._appId!=="ng"&&(e+=this._appId),le.hasOwnProperty(e)||(le[e]=0),`${e}${le[e]++}`}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ct(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Bt(t){return t!=null&&`${t}`!="false"}function ui(t){return t==null?"":typeof t=="string"?t:`${t}px`}function hi(t,i=/\s+/){let e=[];if(t!=null){let s=Array.isArray(t)?t:`${t}`.split(i);for(let n of s){let r=`${n}`.trim();r&&e.push(r)}}return e}var Ut=200,Z=class{_letterKeyStream=new l;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new l;selectedItem=this._selectedItem;constructor(i,e){let s=typeof e?.debounceInterval=="number"?e.debounceInterval:Ut;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(s)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ce(e=>this._pressedLetters.push(e)),S(i),Ie(()=>this._pressedLetters.length>0),D(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let s=1;s<this._items.length+1;s++){let n=(this._selectedItemIndex+s)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var M=class{_items;_activeItemIndex=-1;_activeItem=Oe(null);_wrap=!1;_typeaheadSubscription=pe.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof q?this._itemChangesSubscription=i.changes.subscribe(s=>this._itemsChanged(s.toArray())):Q(i)&&(this._effectRef=xe(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new l;change=new l;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Z(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:s=>this._skipPredicateFn(s)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(s=>{this.setActiveItem(s)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||ct(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),s=typeof i=="number"?i:e.indexOf(i),n=e[s];this._activeItem.set(n??null),this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let s=1;s<=e.length;s++){let n=(this._activeItemIndex+i*s+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){let s=this._getItemsArray();if(s[i]){for(;this._skipPredicateFn(s[i]);)if(i+=e,!s[i])return;this.setActiveItem(i)}}_getItemsArray(){return Q(this._items)?this._items():this._items instanceof q?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let s=i.indexOf(e);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s))}}};var he=class extends M{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var fe=class extends M{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var ut=" ";function Kt(t,i,e){let s=Y(t,i);e=e.trim(),!s.some(n=>n.trim()===e)&&(s.push(e),t.setAttribute(i,s.join(ut)))}function Vt(t,i,e){let s=Y(t,i);e=e.trim();let n=s.filter(r=>r!==e);n.length?t.setAttribute(i,n.join(ut)):t.removeAttribute(i)}function Y(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lt="cdk-describedby-message",$="cdk-describedby-host",me=0,Qi=(()=>{class t{_platform=o(u);_document=o(h);_messageRegistry=new Map;_messagesContainer=null;_id=`${me++}`;constructor(){o(R).load(V),this._id=o(B)+"-"+me++}describe(e,s,n){if(!this._canBeDescribed(e,s))return;let r=_e(s,n);typeof s!="string"?(dt(s,this._id),this._messageRegistry.set(r,{messageElement:s,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(s,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,s,n){if(!s||!this._isElementNode(e))return;let r=_e(s,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof s=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$}="${this._id}"]`);for(let s=0;s<e.length;s++)this._removeCdkDescribedByReferenceIds(e[s]),e[s].removeAttribute($);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,s){let n=this._document.createElement("div");dt(n,this._id),n.textContent=e,s&&n.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(n),this._messageRegistry.set(_e(e,s),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<s.length;r++)s[r].remove();let n=this._document.createElement("div");n.style.visibility="hidden",n.classList.add(e),n.classList.add("cdk-visually-hidden"),this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._messagesContainer=n}_removeCdkDescribedByReferenceIds(e){let s=Y(e,"aria-describedby").filter(n=>n.indexOf(lt)!=0);e.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(e,s){let n=this._messageRegistry.get(s);Kt(e,"aria-describedby",n.messageElement.id),e.setAttribute($,this._id),n.referenceCount++}_removeMessageReference(e,s){let n=this._messageRegistry.get(s);n.referenceCount--,Vt(e,"aria-describedby",n.messageElement.id),e.removeAttribute($)}_isElementDescribedByMessage(e,s){let n=Y(e,"aria-describedby"),r=this._messageRegistry.get(s),a=r&&r.messageElement.id;return!!a&&n.indexOf(a)!=-1}_canBeDescribed(e,s){if(!this._isElementNode(e))return!1;if(s&&typeof s=="object")return!0;let n=s==null?"":`${s}`.trim(),r=e.getAttribute("aria-label");return n?!r||r.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _e(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function dt(t,i){t.id||(t.id=`${lt}-${i}-${me++}`)}var dn=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[ue,ue]})}return t})();function ln(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var C,ht=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fn(){if(C)return C;if(typeof document!="object"||!document)return C=new Set(ht),C;let t=document.createElement("input");return C=new Set(ht.filter(i=>(t.setAttribute("type",i),t.type===i))),C}export{ee as a,te as b,ie as c,ne as d,v as e,O as f,u as g,oe as h,_t as i,F as j,$e as k,mt as l,R as m,V as n,ce as o,Ye as p,tt as q,it as r,wt as s,Lt as t,Rt as u,ln as v,ui as w,Pt as x,k as y,Xs as z,Js as A,ue as B,jt as C,ct as D,Bt as E,hi as F,fe as G,he as H,Kt as I,Vt as J,Qi as K,dn as L,fn as M};
2
+ `],encapsulation:2,changeDetection:0})}return t})();function ce(t){return Array.isArray(t)?t:[t]}var pt=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ye=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({providers:[pt]})}return t})();var ze=new Set,y,gt=(()=>{class t{_platform=o(u);_nonce=o(Fe,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vt}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bt(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bt(t,i){if(!ze.has(t))try{y||(y=document.createElement("style"),i&&y.setAttribute("nonce",i),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {body{ }}`,0),ze.add(t))}catch(e){console.error(e)}}function vt(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var qe=(()=>{class t{_mediaMatcher=o(gt);_zone=o(m);_queries=new Map;_destroySubject=new l;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Qe(ce(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Qe(ce(e)).map(a=>this._registerQuery(a).observable),r=ye(n);return r=Ee(r.pipe(Ae(1)),r.pipe(x(1),S(0))),r.pipe(D(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:I,query:ft})=>{d.matches=d.matches||I,d.breakpoints[ft]=I}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let s=this._mediaMatcher.matchMedia(e),r={observable:new ge(a=>{let d=I=>this._zone.run(()=>a.next(I));return s.addListener(d),()=>{s.removeListener(d)}}).pipe(Me(s),D(({matches:a})=>({query:e,matches:a})),P(this._destroySubject)),mql:s};return this._queries.set(e,r),r}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qe(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var tt=(()=>{class t{_platform=o(u);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Et(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let s=yt(Ot(e));if(s&&(Xe(s)===-1||!this.isVisible(s)))return!1;let n=e.nodeName.toLowerCase(),r=Xe(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Dt(e)?!1:n==="audio"?e.hasAttribute("controls")?r!==-1:!1:n==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,s){return Nt(e)&&!this.isDisabled(e)&&(s?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yt(t){try{return t.frameElement}catch{return null}}function Et(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function It(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function At(t){return Mt(t)&&t.type=="hidden"}function Tt(t){return Ct(t)&&t.hasAttribute("href")}function Mt(t){return t.nodeName.toLowerCase()=="input"}function Ct(t){return t.nodeName.toLowerCase()=="a"}function st(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function Xe(t){if(!st(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Dt(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Nt(t){return At(t)?!1:It(t)||Tt(t)||t.hasAttribute("contenteditable")||st(t)}function Ot(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var H=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,s,n,r=!1,a){this._element=i,this._checker=e,this._ngZone=s,this._document=n,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let s=this._getFirstTabbableElement(e);return s?.focus(i),!!s}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=0;s<e.length;s++){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[s]):null;if(n)return n}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=e.length-1;s>=0;s--){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[s]):null;if(n)return n}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?Le(i,{injector:this._injector}):setTimeout(i)}},it=(()=>{class t{_checker=o(tt);_ngZone=o(m);_document=o(h);_injector=o(N);constructor(){o(R).load(V)}create(e,s=!1){return new H(e,this._checker,this._ngZone,this._document,s,this._injector)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wt=(()=>{class t{_elementRef=o(A);_focusTrapFactory=o(it);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){o(u).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let s=e.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ne(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(s){return new(s||t)};static \u0275dir=T({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",J],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",J]},exportAs:["cdkTrapFocus"],features:[Ne]})}return t})(),nt=new _("liveAnnouncerElement",{providedIn:"root",factory:rt});function rt(){return null}var ot=new _("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ft=0,Lt=(()=>{class t{_ngZone=o(m);_defaultOptions=o(ot,{optional:!0});_liveElement;_document=o(h);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(nt,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...s){let n=this._defaultOptions,r,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[r,a]=s,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",s=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<s.length;r++)s[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${Ft++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<s.length;n++){let r=s[n],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var b=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(b||{}),Je="cdk-high-contrast-black-on-white",et="cdk-high-contrast-white-on-black",de="cdk-high-contrast-active",W=(()=>{class t{_platform=o(u);_hasCheckedHighContrastMode;_document=o(h);_breakpointSubscription;constructor(){this._breakpointSubscription=o(qe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return b.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let s=this._document.defaultView||window,n=s&&s.getComputedStyle?s.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return b.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return b.BLACK_ON_WHITE}return b.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(de,Je,et),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===b.BLACK_ON_WHITE?e.add(de,Je):s===b.WHITE_ON_BLACK&&e.add(de,et)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[Ye]})}return t})();var ue={},kt=(()=>{class t{_appId=o(B);getId(e){return this._appId!=="ng"&&(e+=this._appId),ue.hasOwnProperty(e)||(ue[e]=0),`${e}${ue[e]++}`}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var St=200,G=class{_letterKeyStream=new l;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new l;selectedItem=this._selectedItem;constructor(i,e){let s=typeof e?.debounceInterval=="number"?e.debounceInterval:St;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(s)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ce(e=>this._pressedLetters.push(e)),S(i),Ie(()=>this._pressedLetters.length>0),D(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let s=1;s<this._items.length+1;s++){let n=(this._selectedItemIndex+s)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};function at(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var M=class{_items;_activeItemIndex=-1;_activeItem=Oe(null);_wrap=!1;_typeaheadSubscription=pe.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof q?this._itemChangesSubscription=i.changes.subscribe(s=>this._itemsChanged(s.toArray())):Q(i)&&(this._effectRef=xe(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new l;change=new l;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new G(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:s=>this._skipPredicateFn(s)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(s=>{this.setActiveItem(s)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||at(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),s=typeof i=="number"?i:e.indexOf(i),n=e[s];this._activeItem.set(n??null),this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let s=1;s<=e.length;s++){let n=(this._activeItemIndex+i*s+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){let s=this._getItemsArray();if(s[i]){for(;this._skipPredicateFn(s[i]);)if(i+=e,!s[i])return;this.setActiveItem(i)}}_getItemsArray(){return Q(this._items)?this._items():this._items instanceof q?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let s=i.indexOf(e);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s))}}};var le=class extends M{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var he=class extends M{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var dt=" ";function xt(t,i,e){let s=$(t,i);e=e.trim(),!s.some(n=>n.trim()===e)&&(s.push(e),t.setAttribute(i,s.join(dt)))}function Pt(t,i,e){let s=$(t,i);e=e.trim();let n=s.filter(r=>r!==e);n.length?t.setAttribute(i,n.join(dt)):t.removeAttribute(i)}function $(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var ut="cdk-describedby-message",Z="cdk-describedby-host",_e=0,Li=(()=>{class t{_platform=o(u);_document=o(h);_messageRegistry=new Map;_messagesContainer=null;_id=`${_e++}`;constructor(){o(R).load(V),this._id=o(B)+"-"+_e++}describe(e,s,n){if(!this._canBeDescribed(e,s))return;let r=fe(s,n);typeof s!="string"?(ct(s,this._id),this._messageRegistry.set(r,{messageElement:s,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(s,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,s,n){if(!s||!this._isElementNode(e))return;let r=fe(s,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof s=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Z}="${this._id}"]`);for(let s=0;s<e.length;s++)this._removeCdkDescribedByReferenceIds(e[s]),e[s].removeAttribute(Z);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,s){let n=this._document.createElement("div");ct(n,this._id),n.textContent=e,s&&n.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(n),this._messageRegistry.set(fe(e,s),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<s.length;r++)s[r].remove();let n=this._document.createElement("div");n.style.visibility="hidden",n.classList.add(e),n.classList.add("cdk-visually-hidden"),this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._messagesContainer=n}_removeCdkDescribedByReferenceIds(e){let s=$(e,"aria-describedby").filter(n=>n.indexOf(ut)!=0);e.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(e,s){let n=this._messageRegistry.get(s);xt(e,"aria-describedby",n.messageElement.id),e.setAttribute(Z,this._id),n.referenceCount++}_removeMessageReference(e,s){let n=this._messageRegistry.get(s);n.referenceCount--,Pt(e,"aria-describedby",n.messageElement.id),e.removeAttribute(Z)}_isElementDescribedByMessage(e,s){let n=$(e,"aria-describedby"),r=this._messageRegistry.get(s),a=r&&r.messageElement.id;return!!a&&n.indexOf(a)!=-1}_canBeDescribed(e,s){if(!this._isElementNode(e))return!1;if(s&&typeof s=="object")return!0;let n=s==null?"":`${s}`.trim(),r=e.getAttribute("aria-label");return n?!r||r.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fe(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function ct(t,i){t.id||(t.id=`${ut}-${i}-${_e++}`)}var jt=new _("cdk-dir-doc",{providedIn:"root",factory:Bt});function Bt(){return o(h)}var Ut=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function lt(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?Ut.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Kt=(()=>{class t{value="ltr";change=new j;constructor(){let e=o(jt,{optional:!0});if(e){let s=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=lt(s||n||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var k=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(k||{}),Y,E;function Wi(){if(E==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{let t=Element.prototype.scrollTo;t?E=!/\{\s*\[native code\]\s*\}/.test(t.toString()):E=!1}}return E}function Gi(){if(typeof document!="object"||!document)return k.NORMAL;if(Y==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),s=e.style;s.width="2px",s.height="1px",t.appendChild(e),document.body.appendChild(t),Y=k.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Y=t.scrollLeft===0?k.NEGATED:k.INVERTED),t.remove()}return Y}var me=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({})}return t})();function Vt(t){return t!=null&&`${t}`!="false"}function Xi(t){return t==null?"":typeof t=="string"?t:`${t}px`}function en(t,i=/\s+/){let e=[];if(t!=null){let s=Array.isArray(t)?t:`${t}`.split(i);for(let n of s){let r=`${n}`.trim();r&&e.push(r)}}return e}function rn(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var C,ht=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function an(){if(C)return C;if(typeof document!="object"||!document)return C=new Set(ht),C;let t=document.createElement("input");return C=new Set(ht.filter(i=>(t.setAttribute("type",i),t.type===i))),C}var gn=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[me,me]})}return t})();export{ee as a,te as b,ie as c,ne as d,v as e,O as f,u as g,oe as h,_t as i,F as j,$e as k,mt as l,R as m,V as n,ce as o,Ye as p,tt as q,it as r,wt as s,Lt as t,Rt as u,kt as v,at as w,he as x,le as y,xt as z,Pt as A,Li as B,rn as C,Xi as D,Kt as E,k as F,Wi as G,Gi as H,me as I,Vt as J,en as K,an as L,gn as M};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-VKFFHT27.js";import{a as B}from"./chunk-UMP6ZMEJ.js";import"./chunk-MW6Q6DZF.js";import"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{m as j,n as H}from"./chunk-FO7G4GMY.js";import"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{b as $,c as k}from"./chunk-ERXVXBTU.js";import{r as z,s as N}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{H as A,J as L,j as O,n as w}from"./chunk-FXQKRJWU.js";import{$c as F,Gb as S,Gc as a,Hc as E,Mb as l,Nc as P,Oc as T,Pc as R,Qc as b,Sc as D,Yb as s,Z as f,ad as I,dc as h,ec as _,gc as x,hc as C,ic as i,jc as o,kc as y,lc as M,mc as g,pa as v,rb as r,uc as d}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var K=e=>[e];function U(e,p){e&1&&(M(0),i(1,"a",10),y(2,"i",11),a(3," Edit "),o(),g())}function V(e,p){if(e&1&&(i(0,"span",12),a(1),o()),e&2){let n=d().$implicit;r(),E(n.Value)}}function q(e,p){if(e&1&&l(0,V,2,1,"span",12),e&2){let n=p.$implicit;d();let t=R(0);h(n.Key==(t.Form==null?null:t.Form.AuthorizationMode)?0:-1)}}var se=(()=>{class e{constructor(){this.setupService=v(c),this.setupData$=this.setupService.getConfig().pipe(f(1)),this.userEditRole=B.UserEdit}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-setup-info"]],features:[b([c])],decls:19,vars:8,consts:[["headerTitle","Setup",3,"hideSearchBox","hideSearchDropdown"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5"],[1,"row","mt-4"],[1,"col-12"],[1,"card"],[1,"card-body","mt-8"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Select where Authentication and Roles are managed, Legacy (from POS) or Modern (from omni.dealpos.app)",1,"info-label-group"],["role","button","routerLink","/menu/users/setup/form",1,"btn","btn-outline-secondary"],[1,"fa","fa-edit","me-1"],["matTooltipPosition","above"]],template:function(t,u){if(t&1&&(P(0),F(1,"async"),i(2,"mainpanel",0)(3,"actions"),l(4,U,4,0,"ng-container",1),o(),i(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"label"),a(15,"Authorization Mode"),o(),i(16,"div"),x(17,q,1,1,null,null,_),o()()()()()()()()()()()),t&2){let m=T(I(1,3,u.setupData$));r(2),s("hideSearchBox",!0)("hideSearchDropdown",!0),r(2),s("ngxPermissionsOnly",D(6,K,u.userEditRole)),r(13),C(m==null||m.Options==null?null:m.Options.AuthorizationMode)}},dependencies:[w,O,H,j,N,z,L,A,k,$],encapsulation:2})}}return e})();export{se as SetupInfoComponent};
1
+ import{a as c}from"./chunk-JGEU4EJT.js";import{a as B}from"./chunk-UMP6ZMEJ.js";import"./chunk-CGOB6Y3X.js";import"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{m as j,n as H}from"./chunk-HJXYT6MI.js";import"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{b as $,c as k}from"./chunk-ERXVXBTU.js";import{r as z,s as N}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{H as A,J as L,j as O,n as w}from"./chunk-FXQKRJWU.js";import{$c as F,Gb as S,Gc as a,Hc as E,Mb as l,Nc as P,Oc as T,Pc as R,Qc as b,Sc as D,Yb as s,Z as f,ad as I,dc as h,ec as _,gc as x,hc as C,ic as i,jc as o,kc as y,lc as M,mc as g,pa as v,rb as r,uc as d}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var K=e=>[e];function U(e,p){e&1&&(M(0),i(1,"a",10),y(2,"i",11),a(3," Edit "),o(),g())}function V(e,p){if(e&1&&(i(0,"span",12),a(1),o()),e&2){let n=d().$implicit;r(),E(n.Value)}}function q(e,p){if(e&1&&l(0,V,2,1,"span",12),e&2){let n=p.$implicit;d();let t=R(0);h(n.Key==(t.Form==null?null:t.Form.AuthorizationMode)?0:-1)}}var se=(()=>{class e{constructor(){this.setupService=v(c),this.setupData$=this.setupService.getConfig().pipe(f(1)),this.userEditRole=B.UserEdit}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-setup-info"]],features:[b([c])],decls:19,vars:8,consts:[["headerTitle","Setup",3,"hideSearchBox","hideSearchDropdown"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5"],[1,"row","mt-4"],[1,"col-12"],[1,"card"],[1,"card-body","mt-8"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Select where Authentication and Roles are managed, Legacy (from POS) or Modern (from omni.dealpos.app)",1,"info-label-group"],["role","button","routerLink","/menu/users/setup/form",1,"btn","btn-outline-secondary"],[1,"fa","fa-edit","me-1"],["matTooltipPosition","above"]],template:function(t,u){if(t&1&&(P(0),F(1,"async"),i(2,"mainpanel",0)(3,"actions"),l(4,U,4,0,"ng-container",1),o(),i(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"label"),a(15,"Authorization Mode"),o(),i(16,"div"),x(17,q,1,1,null,null,_),o()()()()()()()()()()()),t&2){let m=T(I(1,3,u.setupData$));r(2),s("hideSearchBox",!0)("hideSearchDropdown",!0),r(2),s("ngxPermissionsOnly",D(6,K,u.userEditRole)),r(13),C(m==null||m.Options==null?null:m.Options.AuthorizationMode)}},dependencies:[w,O,H,j,N,z,L,A,k,$],encapsulation:2})}}return e})();export{se as SetupInfoComponent};
@@ -1 +1 @@
1
- import{a as be,b as ye}from"./chunk-I2Y5WJEO.js";import{a as fe,b as Te}from"./chunk-PPHTN2H6.js";import{b as he}from"./chunk-5LQRO4AI.js";import{a as xe}from"./chunk-3UN6FPMN.js";import{a as F}from"./chunk-UMP6ZMEJ.js";import{a as Ce}from"./chunk-3YP6ORBR.js";import{h as pe}from"./chunk-NFN7BQB3.js";import{c as z}from"./chunk-PW42BQIY.js";import{d as me,h as de}from"./chunk-FO7G4GMY.js";import{A as le,b as oe,h as re,m as ae}from"./chunk-5PS6ZS3N.js";import{a as ce,b as _e,c as se}from"./chunk-ERXVXBTU.js";import{r as ge,s as ue}from"./chunk-NNRBGHXB.js";import{d as J,f as Q,g as ee,i as te,m as ne,n as ie}from"./chunk-FXQKRJWU.js";import{$c as $,Fc as b,G as H,Gb as K,Gc as m,Hc as O,Ic as y,Ka as R,Kc as k,Lc as D,Mb as p,Mc as N,Oa as j,Ra as B,Sc as T,Tc as Y,Yb as s,ad as W,bd as G,ca as Z,cd as w,dc as S,ec as E,f as A,gc as M,hc as V,ic as c,jc as _,kc as I,lc as x,mc as h,nc as L,oc as C,pa as q,pb as v,rb as a,tc as f,uc as o,xb as P,xc as X,ya as d,za as g}from"./chunk-OJMQBH6T.js";var U=t=>[t],Se=t=>({"text-decoration-line-through":t}),Ie=t=>({"text-danger":t}),we=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function Fe(t,l){if(t&1){let e=C();c(0,"mat-slide-toggle",13),f("toggleChange",function(){d(e);let n=o();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),c(1,"small",14),m(2),_()()}if(t&2){let e=o();a(2),y(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function Pe(t,l){if(t&1){let e=C();c(0,"th")(1,"input",16),N("ngModelChange",function(n){d(e);let r=o(2);return D(r.checkboxState,n)||(r.checkboxState=n),g(n)}),f("ngModelChange",function(){d(e);let n=o(2);return g(n.onCheckboxStateChange())}),_()()}if(t&2){let e=o(2);a(),k("ngModel",e.checkboxState)}}function Ee(t,l){if(t&1&&(p(0,Pe,2,1,"ng-template",15),c(1,"th",11),m(2,"POS"),_()),t&2){let e=o();s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Me(t,l){if(t&1&&(x(0),c(1,"th",17)(2,"div",18)(3,"div",19),I(4,"img",20),c(5,"div",21),m(6),$(7,"stringLimit"),_()()()(),h()),t&2){let e=l.$implicit;a(3),s("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),a(),s("src",e==null?null:e.Img,v),a(2),y(" ",G(7,3,e.Name,20)," ")}}function Ve(t,l){t&1&&L(0)}function Oe(t,l){if(t&1&&p(0,Ve,1,0,"ng-container",33),t&2){o(2);let e=b(7);s("ngTemplateOutlet",e)}}function ke(t,l){if(t&1&&(x(0),p(1,Oe,1,1,"ng-template",15),h()),t&2){let e=o(4);a(),s("ngxPermissionsOnly",T(1,U,e.roleInventoryUpdate))}}function De(t,l){t&1&&L(0)}function Ne(t,l){if(t&1&&p(0,De,1,0,"ng-container",33),t&2){o(2);let e=b(7);s("ngTemplateOutlet",e)}}function $e(t,l){if(t&1&&p(0,Ne,1,1,"ng-template",15),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Ue(t,l){if(t&1){let e=C();x(0),c(1,"div")(2,"input",34),N("ngModelChange",function(n){d(e);let r=o(4).$implicit;return D(r.selected,n)||(r.selected=n),g(n)}),f("ngModelChange",function(){d(e);let n=o(4).$implicit,r=o();return g(r.onCheckboxStateProduct(n.ID))}),_()(),h()}if(t&2){let e=o(4).$implicit;a(2),k("ngModel",e.selected),s("disabled",!(e!=null&&e.Category))}}function Re(t,l){if(t&1&&p(0,Ue,3,2,"ng-container",22),t&2){let e=o(3).$implicit;s("ngIf",(e==null||e.Variants==null?null:e.Variants.length)>1)}}function je(t,l){if(t&1){let e=C();x(0),c(1,"img",35),f("click",function(n){d(e);let r=o(3).$implicit,u=o();return g(u.onZoomImage(n,r==null?null:r.ImageUrl))}),_(),h()}if(t&2){let e=o(3).$implicit;a(),X("src",e==null?null:e.ThumbnailUrl,v)}}function Be(t,l){t&1&&I(0,"img",36)}function Le(t,l){if(t&1&&(x(0),c(1,"td",28)(2,"div",29),p(3,ke,2,3,"ng-container",30)(4,$e,1,3,"ng-template",null,0,w)(6,Re,1,1,"ng-template",null,1,w),c(8,"div"),p(9,je,2,1,"ng-container",30)(10,Be,1,0,"ng-template",null,2,w),_()()(),c(12,"td",31)(13,"div"),m(14),_(),c(15,"small",32),m(16),_()(),h()),t&2){let e=b(5),i=b(11),n=o(2).$implicit,r=o();a(),s("rowSpan",n==null?null:n.Variants.length),a(2),s("ngIf",r.table=="inventory")("ngIfElse",e),a(6),s("ngIf",n==null?null:n.ThumbnailUrl)("ngIfElse",i),a(3),s("rowSpan",n==null?null:n.Variants.length),a(2),O(n==null?null:n.Name),a(),s("ngClass",T(9,Ie,!(n!=null&&n.Category))),a(),y("(",n!=null&&n.Category?n==null?null:n.Category:"Not Found In POS",")")}}function We(t,l){if(t&1&&(c(0,"a",27),I(1,"i",37),_()),t&2){let e=o().$implicit,i=o(2);s("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),v)}}function ze(t,l){if(t&1){let e=C();c(0,"input",40),N("ngModelChange",function(n){d(e);let r=o(3).$implicit;return D(r.selected,n)||(r.selected=n),g(n)}),_()}if(t&2){let e=o(3).$implicit,i=o().$implicit;k("ngModel",e.selected),s("disabled",!(i!=null&&i.Category))}}function Ae(t,l){if(t&1&&(c(0,"td",38),p(1,ze,1,2,"input",39),_()),t&2){let e=o(2).$implicit,i=o(2);a(),s("ngIf",i.printPOS(e)>=0||i.table=="price")}}function He(t,l){if(t&1&&(p(0,Ae,2,1,"ng-template",15),c(1,"td",24),m(2),$(3,"number"),_()),t&2){let e=o().$implicit,i=o(2);s("ngxPermissionsOnly",T(4,U,i.rolePriceEdit)),a(2),O(W(3,2,i.printPOS(e)))}}function Ze(t,l){if(t&1){let e=C();x(0),c(1,"td",41),f("click",function(){d(e);let n=o().$implicit,r=o().$implicit,u=o().$implicit,ve=o();return g(ve.onUpdateData(u.Name,r,n.ID,u.ChannelItemID))}),c(2,"div",42)(3,"div",43),m(4),$(5,"number"),_(),c(6,"a",44),f("click",function(n){return d(e),g(n==null?null:n.stopPropagation())}),I(7,"i",37),_()()(),h()}if(t&2){let e=l.$implicit,i=o(2).$implicit,n=o(2);a(),s("ngClass",Y(5,we,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table=="price"||n.hasInventoryEdit()&&n.table=="inventory")),a(3),y(" ",W(5,3,n.printItem(e))," "),a(2),s("href",e.Url,v)}}function qe(t,l){t&1&&(c(0,"td",45)(1,"div",42)(2,"span"),m(3,"X"),_()()())}function Ke(t,l){if(t&1&&p(0,Ze,8,8,"ng-container",30)(1,qe,4,0,"ng-template",null,3,w),t&2){let e=l.$implicit,i=b(2),n=o().$implicit,r=o(2);s("ngIf",r.getItemFromChannel(n,e))("ngIfElse",i)}}function Xe(t,l){if(t&1&&(c(0,"tr"),p(1,Le,17,11,"ng-container",22),c(2,"td",23),m(3),_(),c(4,"td",24)(5,"div",25)(6,"div",26),m(7),_(),c(8,"div",21),p(9,We,2,1,"a",27),_()()(),p(10,He,4,6),M(11,Ke,3,2,null,null,E),_()),t&2){let e=l.$implicit,i=l.$index,n=o().$implicit,r=o();a(),s("ngIf",i==0),a(2),O(e==null?null:e.Model),a(2),s("matTooltip",e.Discontinued?r.discontinuedVariantMsg:""),a(),s("ngClass",T(7,Se,e.Discontinued)),a(),y(" ",e.Code," "),a(2),S(n.Category?9:-1),a(),S(r.hiddenIPOSInventory()==!1?10:-1),a(),V(r.channel)}}function Ye(t,l){if(t&1&&(c(0,"tbody"),M(1,Xe,13,9,"tr",null,E),_()),t&2){let e=l.$implicit;a(),V(e.Variants)}}var vt=(()=>{class t{constructor(e,i,n){this.dialog=e,this.biggerPictureService=i,this.authService=n,this.permissionsService=q(ce),this.showProductToggle=!1,this.multiwarehouse=j(!1),this.hiddenIPOSInventory=j(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=F.PriceUpdate,this.roleInventoryUpdate=F.InventoryUpdate,this.hasPriceEdit=B(!1),this.hasInventoryEdit=B(!1),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.onSubmit=new R,this.destroy$=new A,this.toggle=new R,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles(),this.table=="inventory"?this.stockHeader="Stock":this.table=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(F.InventoryUpdate).then(e=>this.hasInventoryEdit.set(e)),this.permissionsService.hasPermission(F.PriceUpdate).then(e=>this.hasPriceEdit.set(e))}onCheckboxStateProduct(e){let i=this.data.filter(n=>n.ID==e);i.length>0&&(i=i.map(n=>(n.Variants=n.Variants.map(r=>(r.selected=n.selected,r)),n)))}onCheckboxStateChange(){this.data=this.data.map(e=>(e.Variants=e.Variants.map(i=>(i.selected=this.checkboxState,i)),e))}getItemFromChannel(e,i){return e.Channel.find(r=>z.IsNotEmpty(i.LocationID)?r.LocationID==i.LocationID:r.ChannelID==i.ID)}printItem(e){if(this.table=="inventory")return e.Inventory;if(this.table=="price")return e.Price}onUpdateData(e,i,n,r){this.hasPriceEdit()&&this.table=="price"&&this.onOpenDialogUpdate(e,i,n,r),this.hasInventoryEdit()&&this.table=="inventory"&&this.onOpenDialogUpdate(e,i,n,r)}onOpenDialogUpdate(e,i,n,r){this.dialog.open(be,{data:{Name:e,Variant:i,ChannelID:n,Table:this.table,ChannelItemID:r}}).afterClosed().pipe(H(u=>z.IsNotEmpty(u)),Z(this.destroy$)).subscribe(u=>{this.onSubmit.emit(u)})}printPOS(e){return this.table=="inventory"?e.Inventory?e.Inventory:0:this.table=="price"?e.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(e,i){this.biggerPictureService.openBiggerPicture(e,i)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(i){return new(i||t)(P(me),P(Ce),P(pe))}}static{this.\u0275cmp=K({type:t,selectors:[["app-table"]],inputs:{data:"data",table:"table",channel:"channel",showProductToggle:"showProductToggle",productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:17,vars:3,consts:[["PRICE",""],["checkbox_update",""],["elsePic",""],["elseCol",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],[4,"ngFor","ngForOf"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],["scope","col"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[4,"ngIf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"],[1,"table-white","text-center",2,"color","red"]],template:function(i,n){i&1&&(c(0,"div",4)(1,"table",5)(2,"thead",6)(3,"tr")(4,"th",7)(5,"div",8)(6,"div"),m(7,"Product"),_(),p(8,Fe,3,1,"mat-slide-toggle",9),_()(),c(9,"th",10),m(10,"Variant"),_(),c(11,"th",11),m(12,"SKU"),_(),p(13,Ee,3,3)(14,Me,8,6,"ng-container",12),_()(),M(15,Ye,3,0,"tbody",null,E),_()()),i&2&&(a(8),S(n.showProductToggle?8:-1),a(5),S(n.hiddenIPOSInventory()==!1?13:-1),a(),s("ngForOf",n.channel),a(),V(n.data))},dependencies:[ie,J,Q,ee,te,ne,le,oe,re,ae,Te,fe,de,xe,he,se,_e,ue,ge,ye],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]})}}return t})();export{vt as a};
1
+ import{a as be,b as ye}from"./chunk-NWWYOZ4V.js";import{a as fe,b as Te}from"./chunk-YTCIQBSO.js";import{b as he}from"./chunk-IHSGQFDX.js";import{a as xe}from"./chunk-HIC5QC3Y.js";import{a as F}from"./chunk-UMP6ZMEJ.js";import{a as Ce}from"./chunk-3YP6ORBR.js";import{i as pe}from"./chunk-WWLC64XZ.js";import{c as z}from"./chunk-PW42BQIY.js";import{d as ge,h as ue}from"./chunk-HJXYT6MI.js";import{A as le,b as oe,h as re,m as ae}from"./chunk-5PS6ZS3N.js";import{a as ce,b as _e,c as se}from"./chunk-ERXVXBTU.js";import{r as me,s as de}from"./chunk-MFQQEEHJ.js";import{d as J,f as Q,g as ee,i as te,m as ne,n as ie}from"./chunk-FXQKRJWU.js";import{$c as $,Fc as b,G as H,Gb as K,Gc as m,Hc as O,Ic as y,Ka as R,Kc as k,Lc as D,Mb as p,Mc as N,Oa as j,Ra as B,Sc as T,Tc as Y,Yb as s,ad as W,bd as G,ca as Z,cd as w,dc as S,ec as E,f as A,gc as M,hc as V,ic as c,jc as _,kc as I,lc as x,mc as h,nc as L,oc as C,pa as q,pb as v,rb as a,tc as f,uc as o,xb as P,xc as X,ya as d,za as g}from"./chunk-OJMQBH6T.js";var U=t=>[t],Se=t=>({"text-decoration-line-through":t}),Ie=t=>({"text-danger":t}),we=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function Fe(t,l){if(t&1){let e=C();c(0,"mat-slide-toggle",13),f("toggleChange",function(){d(e);let n=o();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),c(1,"small",14),m(2),_()()}if(t&2){let e=o();a(2),y(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function Pe(t,l){if(t&1){let e=C();c(0,"th")(1,"input",16),N("ngModelChange",function(n){d(e);let r=o(2);return D(r.checkboxState,n)||(r.checkboxState=n),g(n)}),f("ngModelChange",function(){d(e);let n=o(2);return g(n.onCheckboxStateChange())}),_()()}if(t&2){let e=o(2);a(),k("ngModel",e.checkboxState)}}function Ee(t,l){if(t&1&&(p(0,Pe,2,1,"ng-template",15),c(1,"th",11),m(2,"POS"),_()),t&2){let e=o();s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Me(t,l){if(t&1&&(x(0),c(1,"th",17)(2,"div",18)(3,"div",19),I(4,"img",20),c(5,"div",21),m(6),$(7,"stringLimit"),_()()()(),h()),t&2){let e=l.$implicit;a(3),s("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),a(),s("src",e==null?null:e.Img,v),a(2),y(" ",G(7,3,e.Name,20)," ")}}function Ve(t,l){t&1&&L(0)}function Oe(t,l){if(t&1&&p(0,Ve,1,0,"ng-container",33),t&2){o(2);let e=b(7);s("ngTemplateOutlet",e)}}function ke(t,l){if(t&1&&(x(0),p(1,Oe,1,1,"ng-template",15),h()),t&2){let e=o(4);a(),s("ngxPermissionsOnly",T(1,U,e.roleInventoryUpdate))}}function De(t,l){t&1&&L(0)}function Ne(t,l){if(t&1&&p(0,De,1,0,"ng-container",33),t&2){o(2);let e=b(7);s("ngTemplateOutlet",e)}}function $e(t,l){if(t&1&&p(0,Ne,1,1,"ng-template",15),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Ue(t,l){if(t&1){let e=C();x(0),c(1,"div")(2,"input",34),N("ngModelChange",function(n){d(e);let r=o(4).$implicit;return D(r.selected,n)||(r.selected=n),g(n)}),f("ngModelChange",function(){d(e);let n=o(4).$implicit,r=o();return g(r.onCheckboxStateProduct(n.ID))}),_()(),h()}if(t&2){let e=o(4).$implicit;a(2),k("ngModel",e.selected),s("disabled",!(e!=null&&e.Category))}}function Re(t,l){if(t&1&&p(0,Ue,3,2,"ng-container",22),t&2){let e=o(3).$implicit;s("ngIf",(e==null||e.Variants==null?null:e.Variants.length)>1)}}function je(t,l){if(t&1){let e=C();x(0),c(1,"img",35),f("click",function(n){d(e);let r=o(3).$implicit,u=o();return g(u.onZoomImage(n,r==null?null:r.ImageUrl))}),_(),h()}if(t&2){let e=o(3).$implicit;a(),X("src",e==null?null:e.ThumbnailUrl,v)}}function Be(t,l){t&1&&I(0,"img",36)}function Le(t,l){if(t&1&&(x(0),c(1,"td",28)(2,"div",29),p(3,ke,2,3,"ng-container",30)(4,$e,1,3,"ng-template",null,0,w)(6,Re,1,1,"ng-template",null,1,w),c(8,"div"),p(9,je,2,1,"ng-container",30)(10,Be,1,0,"ng-template",null,2,w),_()()(),c(12,"td",31)(13,"div"),m(14),_(),c(15,"small",32),m(16),_()(),h()),t&2){let e=b(5),i=b(11),n=o(2).$implicit,r=o();a(),s("rowSpan",n==null?null:n.Variants.length),a(2),s("ngIf",r.table=="inventory")("ngIfElse",e),a(6),s("ngIf",n==null?null:n.ThumbnailUrl)("ngIfElse",i),a(3),s("rowSpan",n==null?null:n.Variants.length),a(2),O(n==null?null:n.Name),a(),s("ngClass",T(9,Ie,!(n!=null&&n.Category))),a(),y("(",n!=null&&n.Category?n==null?null:n.Category:"Not Found In POS",")")}}function We(t,l){if(t&1&&(c(0,"a",27),I(1,"i",37),_()),t&2){let e=o().$implicit,i=o(2);s("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),v)}}function ze(t,l){if(t&1){let e=C();c(0,"input",40),N("ngModelChange",function(n){d(e);let r=o(3).$implicit;return D(r.selected,n)||(r.selected=n),g(n)}),_()}if(t&2){let e=o(3).$implicit,i=o().$implicit;k("ngModel",e.selected),s("disabled",!(i!=null&&i.Category))}}function Ae(t,l){if(t&1&&(c(0,"td",38),p(1,ze,1,2,"input",39),_()),t&2){let e=o(2).$implicit,i=o(2);a(),s("ngIf",i.printPOS(e)>=0||i.table=="price")}}function He(t,l){if(t&1&&(p(0,Ae,2,1,"ng-template",15),c(1,"td",24),m(2),$(3,"number"),_()),t&2){let e=o().$implicit,i=o(2);s("ngxPermissionsOnly",T(4,U,i.rolePriceEdit)),a(2),O(W(3,2,i.printPOS(e)))}}function Ze(t,l){if(t&1){let e=C();x(0),c(1,"td",41),f("click",function(){d(e);let n=o().$implicit,r=o().$implicit,u=o().$implicit,ve=o();return g(ve.onUpdateData(u.Name,r,n.ID,u.ChannelItemID))}),c(2,"div",42)(3,"div",43),m(4),$(5,"number"),_(),c(6,"a",44),f("click",function(n){return d(e),g(n==null?null:n.stopPropagation())}),I(7,"i",37),_()()(),h()}if(t&2){let e=l.$implicit,i=o(2).$implicit,n=o(2);a(),s("ngClass",Y(5,we,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table=="price"||n.hasInventoryEdit()&&n.table=="inventory")),a(3),y(" ",W(5,3,n.printItem(e))," "),a(2),s("href",e.Url,v)}}function qe(t,l){t&1&&(c(0,"td",45)(1,"div",42)(2,"span"),m(3,"X"),_()()())}function Ke(t,l){if(t&1&&p(0,Ze,8,8,"ng-container",30)(1,qe,4,0,"ng-template",null,3,w),t&2){let e=l.$implicit,i=b(2),n=o().$implicit,r=o(2);s("ngIf",r.getItemFromChannel(n,e))("ngIfElse",i)}}function Xe(t,l){if(t&1&&(c(0,"tr"),p(1,Le,17,11,"ng-container",22),c(2,"td",23),m(3),_(),c(4,"td",24)(5,"div",25)(6,"div",26),m(7),_(),c(8,"div",21),p(9,We,2,1,"a",27),_()()(),p(10,He,4,6),M(11,Ke,3,2,null,null,E),_()),t&2){let e=l.$implicit,i=l.$index,n=o().$implicit,r=o();a(),s("ngIf",i==0),a(2),O(e==null?null:e.Model),a(2),s("matTooltip",e.Discontinued?r.discontinuedVariantMsg:""),a(),s("ngClass",T(7,Se,e.Discontinued)),a(),y(" ",e.Code," "),a(2),S(n.Category?9:-1),a(),S(r.hiddenIPOSInventory()==!1?10:-1),a(),V(r.channel)}}function Ye(t,l){if(t&1&&(c(0,"tbody"),M(1,Xe,13,9,"tr",null,E),_()),t&2){let e=l.$implicit;a(),V(e.Variants)}}var vt=(()=>{class t{constructor(e,i,n){this.dialog=e,this.biggerPictureService=i,this.authService=n,this.permissionsService=q(ce),this.showProductToggle=!1,this.multiwarehouse=j(!1),this.hiddenIPOSInventory=j(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=F.PriceUpdate,this.roleInventoryUpdate=F.InventoryUpdate,this.hasPriceEdit=B(!1),this.hasInventoryEdit=B(!1),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.onSubmit=new R,this.destroy$=new A,this.toggle=new R,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles(),this.table=="inventory"?this.stockHeader="Stock":this.table=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(F.InventoryUpdate).then(e=>this.hasInventoryEdit.set(e)),this.permissionsService.hasPermission(F.PriceUpdate).then(e=>this.hasPriceEdit.set(e))}onCheckboxStateProduct(e){let i=this.data.filter(n=>n.ID==e);i.length>0&&(i=i.map(n=>(n.Variants=n.Variants.map(r=>(r.selected=n.selected,r)),n)))}onCheckboxStateChange(){this.data=this.data.map(e=>(e.Variants=e.Variants.map(i=>(i.selected=this.checkboxState,i)),e))}getItemFromChannel(e,i){return e.Channel.find(r=>z.IsNotEmpty(i.LocationID)?r.LocationID==i.LocationID:r.ChannelID==i.ID)}printItem(e){if(this.table=="inventory")return e.Inventory;if(this.table=="price")return e.Price}onUpdateData(e,i,n,r){this.hasPriceEdit()&&this.table=="price"&&this.onOpenDialogUpdate(e,i,n,r),this.hasInventoryEdit()&&this.table=="inventory"&&this.onOpenDialogUpdate(e,i,n,r)}onOpenDialogUpdate(e,i,n,r){this.dialog.open(be,{data:{Name:e,Variant:i,ChannelID:n,Table:this.table,ChannelItemID:r}}).afterClosed().pipe(H(u=>z.IsNotEmpty(u)),Z(this.destroy$)).subscribe(u=>{this.onSubmit.emit(u)})}printPOS(e){return this.table=="inventory"?e.Inventory?e.Inventory:0:this.table=="price"?e.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(e,i){this.biggerPictureService.openBiggerPicture(e,i)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(i){return new(i||t)(P(ge),P(Ce),P(pe))}}static{this.\u0275cmp=K({type:t,selectors:[["app-table"]],inputs:{data:"data",table:"table",channel:"channel",showProductToggle:"showProductToggle",productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:17,vars:3,consts:[["PRICE",""],["checkbox_update",""],["elsePic",""],["elseCol",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],[4,"ngFor","ngForOf"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],["scope","col"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[4,"ngIf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"],[1,"table-white","text-center",2,"color","red"]],template:function(i,n){i&1&&(c(0,"div",4)(1,"table",5)(2,"thead",6)(3,"tr")(4,"th",7)(5,"div",8)(6,"div"),m(7,"Product"),_(),p(8,Fe,3,1,"mat-slide-toggle",9),_()(),c(9,"th",10),m(10,"Variant"),_(),c(11,"th",11),m(12,"SKU"),_(),p(13,Ee,3,3)(14,Me,8,6,"ng-container",12),_()(),M(15,Ye,3,0,"tbody",null,E),_()()),i&2&&(a(8),S(n.showProductToggle?8:-1),a(5),S(n.hiddenIPOSInventory()==!1?13:-1),a(),s("ngForOf",n.channel),a(),V(n.data))},dependencies:[ie,J,Q,ee,te,ne,le,oe,re,ae,Te,fe,ue,xe,he,se,_e,de,me,ye],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]})}}return t})();export{vt as a};
@@ -1 +1 @@
1
- import{L as o,p as a}from"./chunk-BJUPMCEP.js";import{Hb as r,ka as t}from"./chunk-OJMQBH6T.js";var n=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=r({type:e});static \u0275inj=t({imports:[o,a,o]})}return e})();export{n as a};
1
+ import{M as o,p as a}from"./chunk-GZKOMS4T.js";import{Hb as r,ka as t}from"./chunk-OJMQBH6T.js";var n=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=r({type:e});static \u0275inj=t({imports:[o,a,o]})}return e})();export{n as a};