dealpos 25.37.0 → 25.37.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 (131) hide show
  1. package/browser/{chunk-SNJEJYG2.js → chunk-2CJDU4L3.js} +1 -1
  2. package/browser/{chunk-FQVW7CGL.js → chunk-2LHNA5AI.js} +1 -1
  3. package/browser/chunk-2URCBLJ7.js +1 -0
  4. package/browser/{chunk-PKQIL6XI.js → chunk-2Z5J6Q7M.js} +1 -1
  5. package/browser/chunk-4ASACD3Q.js +1 -0
  6. package/browser/{chunk-ZCDMIPJU.js → chunk-4PBQC5P6.js} +1 -1
  7. package/browser/{chunk-AD6WDFXK.js → chunk-5432OTF7.js} +12 -12
  8. package/browser/{chunk-QZ3Q6NRS.js → chunk-5A5MC6CY.js} +1 -1
  9. package/browser/{chunk-QC47T2D6.js → chunk-5G6GUMV7.js} +1 -1
  10. package/browser/{chunk-RFWWJGW4.js → chunk-5MV4W4N6.js} +1 -1
  11. package/browser/{chunk-4WQSHRH2.js → chunk-5WG74DJT.js} +1 -1
  12. package/browser/{chunk-KH2UDF7R.js → chunk-5WHPKSFW.js} +1 -1
  13. package/browser/{chunk-OZURIMA5.js → chunk-5XLUITBY.js} +1 -1
  14. package/browser/{chunk-CHGBO35F.js → chunk-624G6F5C.js} +2 -2
  15. package/browser/{chunk-PNIMYMZP.js → chunk-6FKZY7NZ.js} +1 -1
  16. package/browser/chunk-6G2IT6WP.js +125 -0
  17. package/browser/{chunk-4DVZDOPA.js → chunk-6HQRARSZ.js} +1 -1
  18. package/browser/{chunk-O7KNQINR.js → chunk-6JCU4GNE.js} +1 -1
  19. package/browser/{chunk-BPRFPZEB.js → chunk-6WHOPHRH.js} +1 -1
  20. package/browser/{chunk-POVSBSKX.js → chunk-72KIMU7G.js} +1 -1
  21. package/browser/{chunk-UCICCJTH.js → chunk-76T3TRG4.js} +1 -1
  22. package/browser/{chunk-BVGEZF5R.js → chunk-7IFXHB4V.js} +1 -1
  23. package/browser/{chunk-XPQVQT3S.js → chunk-7ZD2267X.js} +1 -1
  24. package/browser/{chunk-TB75D3IU.js → chunk-A4RN7PGI.js} +1 -1
  25. package/browser/{chunk-UTZWX547.js → chunk-AASLGLOM.js} +1 -1
  26. package/browser/{chunk-TAJ6RGE7.js → chunk-ACGNZNFL.js} +1 -1
  27. package/browser/{chunk-RNTEPBDE.js → chunk-AHC27CIW.js} +1 -1
  28. package/browser/{chunk-EDWPAQ6M.js → chunk-AKPQZTEV.js} +1 -1
  29. package/browser/{chunk-2ROJZVYG.js → chunk-AQH2TWJK.js} +1 -1
  30. package/browser/{chunk-6VZV7MGQ.js → chunk-AUWH2QWX.js} +1 -1
  31. package/browser/{chunk-QHX47K74.js → chunk-AXEM33OC.js} +1 -1
  32. package/browser/{chunk-ODQBAQBJ.js → chunk-BO2Z4RGZ.js} +1 -1
  33. package/browser/{chunk-EWXIFMSD.js → chunk-BQJ7JR25.js} +1 -1
  34. package/browser/{chunk-V2XQVY7J.js → chunk-C2LSF7S2.js} +1 -1
  35. package/browser/{chunk-KRYHSAUY.js → chunk-CEOPBVEH.js} +1 -1
  36. package/browser/chunk-CFWQ2KY4.js +1 -0
  37. package/browser/{chunk-ZCFM5BQX.js → chunk-CJJZFHED.js} +1 -1
  38. package/browser/{chunk-7JQTRIEY.js → chunk-CZ2RXLZJ.js} +3 -3
  39. package/browser/{chunk-GTGAF77W.js → chunk-D5JRP2GG.js} +1 -1
  40. package/browser/{chunk-73LN2NNG.js → chunk-DGPCJB6P.js} +1 -1
  41. package/browser/{chunk-DJX5T4HW.js → chunk-DSIUUK4N.js} +1 -1
  42. package/browser/chunk-DSLMCH3G.js +1 -0
  43. package/browser/{chunk-5Y6LNGZI.js → chunk-DTFL44UO.js} +1 -1
  44. package/browser/{chunk-BJRHO7B6.js → chunk-DZ35QZ6L.js} +1 -1
  45. package/browser/{chunk-QZIRZTPY.js → chunk-E3GQ2VEU.js} +1 -1
  46. package/browser/{chunk-NZBTAJVH.js → chunk-E52CQ3NY.js} +1 -1
  47. package/browser/{chunk-SRND2A73.js → chunk-EANTJIRK.js} +1 -1
  48. package/browser/{chunk-AFOWQSNS.js → chunk-ELFCO6CE.js} +1 -1
  49. package/browser/{chunk-XZYKB3CY.js → chunk-EMYSF46P.js} +1 -1
  50. package/browser/{chunk-ZDC75EES.js → chunk-EQT4SGSU.js} +1 -1
  51. package/browser/{chunk-R2SCZAYC.js → chunk-FJULFWMX.js} +1 -1
  52. package/browser/{chunk-T3GW7VTG.js → chunk-FLEDIXNB.js} +1 -1
  53. package/browser/{chunk-ONUC6T7C.js → chunk-FY5VLGQC.js} +11 -11
  54. package/browser/chunk-G7B75J34.js +24 -0
  55. package/browser/{chunk-EBVXAICN.js → chunk-GAPY6IUE.js} +1 -1
  56. package/browser/{chunk-OYBCYKI3.js → chunk-GTRQV3VX.js} +1 -1
  57. package/browser/{chunk-O3BPVSF4.js → chunk-H4SCBKWD.js} +1 -1
  58. package/browser/{chunk-GW74DTO5.js → chunk-HHIBVND5.js} +1 -1
  59. package/browser/{chunk-JI5ZYBTO.js → chunk-HNX747EE.js} +1 -1
  60. package/browser/{chunk-LP34YRUB.js → chunk-HPGHC3LU.js} +1 -1
  61. package/browser/{chunk-UGMPRPX4.js → chunk-HUAA5QUE.js} +1 -1
  62. package/browser/{chunk-O2ZVYLBU.js → chunk-I3EBD4BM.js} +1 -1
  63. package/browser/{chunk-M7KCDBAN.js → chunk-IWIKKZRE.js} +1 -1
  64. package/browser/{chunk-YKOMJJTD.js → chunk-IWJJRPWB.js} +1 -1
  65. package/browser/{chunk-OQD6YPIV.js → chunk-J7WZSDR6.js} +1 -1
  66. package/browser/chunk-JDDFGHZC.js +1 -0
  67. package/browser/{chunk-USIHDJYD.js → chunk-JIYAVK6J.js} +1 -1
  68. package/browser/chunk-JZ7HH3AD.js +1 -0
  69. package/browser/{chunk-GRQCNGGD.js → chunk-K463QEUH.js} +1 -1
  70. package/browser/{chunk-M6LI6JL5.js → chunk-KEU6GUET.js} +1 -1
  71. package/browser/{chunk-TE4BS674.js → chunk-KOWDWAD2.js} +1 -1
  72. package/browser/{chunk-NF6DNR4C.js → chunk-KZU22HGO.js} +1 -1
  73. package/browser/{chunk-TKFYO4Z7.js → chunk-L4VLBO5X.js} +1 -1
  74. package/browser/{chunk-HN5FVXT3.js → chunk-L6G7INVR.js} +2 -2
  75. package/browser/{chunk-E5YR3WZZ.js → chunk-LD5LH2YH.js} +1 -1
  76. package/browser/{chunk-ZSHFCUED.js → chunk-LK3EGJFT.js} +1 -1
  77. package/browser/{chunk-NPQSMHJ5.js → chunk-LPFP4NOL.js} +1 -1
  78. package/browser/{chunk-D3PKJLSL.js → chunk-LUMOPVCB.js} +1 -1
  79. package/browser/{chunk-OJGFPN3S.js → chunk-M5R3Y6BD.js} +1 -1
  80. package/browser/{chunk-OPIK5VF5.js → chunk-MH3LXNOS.js} +2 -2
  81. package/browser/{chunk-46N7UCK4.js → chunk-N276B6EI.js} +1 -1
  82. package/browser/{chunk-L2BZNKXK.js → chunk-N2FNF62O.js} +1 -1
  83. package/browser/{chunk-CAB2DX2Y.js → chunk-N3XWBPCL.js} +1 -1
  84. package/browser/chunk-NDQYXKAN.js +1 -0
  85. package/browser/{chunk-CDHS2KPQ.js → chunk-ORFYFJKS.js} +1 -1
  86. package/browser/{chunk-BMXD4XFY.js → chunk-OXLXIWTF.js} +1 -1
  87. package/browser/{chunk-KC3ILZPL.js → chunk-PT4Y2VNN.js} +1 -1
  88. package/browser/{chunk-4PAT6OG2.js → chunk-PXNAXAQB.js} +1 -1
  89. package/browser/{chunk-UB3H2XOK.js → chunk-QRI23WCG.js} +1 -1
  90. package/browser/{chunk-5UVEMM3K.js → chunk-R5MMHEH6.js} +1 -1
  91. package/browser/{chunk-YFVKU4AG.js → chunk-RCW46J3Z.js} +1 -1
  92. package/browser/{chunk-2A2FK5LQ.js → chunk-SF3RHVSN.js} +1 -1
  93. package/browser/{chunk-N5LL2GVO.js → chunk-SOE2QU22.js} +1 -1
  94. package/browser/{chunk-KGEZPUKQ.js → chunk-SZDICN4P.js} +1 -1
  95. package/browser/{chunk-BWWLIKSO.js → chunk-TDMU55LA.js} +1 -1
  96. package/browser/{chunk-AIRALBLX.js → chunk-TOOIVKU3.js} +1 -1
  97. package/browser/{chunk-NCV64WUQ.js → chunk-TPDNCYEZ.js} +1 -1
  98. package/browser/{chunk-YTXPIPA3.js → chunk-UQKMHV26.js} +1 -1
  99. package/browser/{chunk-DTGBADKW.js → chunk-UR37FTL2.js} +1 -1
  100. package/browser/{chunk-VPYNMPI2.js → chunk-UTHVS7YI.js} +4 -4
  101. package/browser/{chunk-WNGIPTOJ.js → chunk-V55A6VFC.js} +1 -1
  102. package/browser/{chunk-4MQM5WKF.js → chunk-VGHP2OV6.js} +1 -1
  103. package/browser/{chunk-FSTU67H4.js → chunk-VWRUQ7XW.js} +1 -1
  104. package/browser/{chunk-YVLMNAFQ.js → chunk-VZLT2MGB.js} +1 -1
  105. package/browser/{chunk-6EYQ2WU4.js → chunk-WF6K2YER.js} +1 -1
  106. package/browser/{chunk-RQ6BETUF.js → chunk-WUZXIQKO.js} +1 -1
  107. package/browser/{chunk-5HPGSO2H.js → chunk-X3P7SVC6.js} +1 -1
  108. package/browser/{chunk-4SQ7LDSX.js → chunk-XNE22IC6.js} +2 -2
  109. package/browser/{chunk-BBBJXAJC.js → chunk-XOMO7AVU.js} +1 -1
  110. package/browser/{chunk-2N32YZ7F.js → chunk-XQCKNZ75.js} +2 -2
  111. package/browser/{chunk-R6DWCBDE.js → chunk-YFWHKWUO.js} +1 -1
  112. package/browser/{chunk-A6EXQHD5.js → chunk-YUSWA5RC.js} +1 -1
  113. package/browser/chunk-Z6TVE7B7.js +1 -0
  114. package/browser/{chunk-42GZELPL.js → chunk-ZAJBQGZU.js} +2 -2
  115. package/browser/{chunk-ZXBQDGF2.js → chunk-ZDJDS43F.js} +1 -1
  116. package/browser/{chunk-46YKB6FF.js → chunk-ZLGNHROO.js} +1 -1
  117. package/browser/{chunk-VTPT2NPM.js → chunk-ZWXGSLUJ.js} +1 -1
  118. package/browser/{chunk-D35OBUDE.js → chunk-ZZ7LHETD.js} +4 -4
  119. package/browser/index.html +2 -2
  120. package/browser/{main-ODGVJKPE.js → main-T6SFWIAO.js} +2 -2
  121. package/package.json +1 -1
  122. package/browser/chunk-24PZBJDX.js +0 -1
  123. package/browser/chunk-6GD3RYJT.js +0 -24
  124. package/browser/chunk-6KVSC3SY.js +0 -1
  125. package/browser/chunk-BAHRLYTL.js +0 -1
  126. package/browser/chunk-E7OGKKDF.js +0 -1
  127. package/browser/chunk-I7QI76VZ.js +0 -125
  128. package/browser/chunk-NKVJFEGS.js +0 -1
  129. package/browser/chunk-NMFTKX47.js +0 -1
  130. package/browser/chunk-X35FSHRI.js +0 -1
  131. package/browser/chunk-XQDOEZXX.js +0 -1
@@ -1,3 +1,3 @@
1
- import{a as Ge,b as Ue}from"./chunk-7BU64MD2.js";import{a as j}from"./chunk-JKYTSC2D.js";import{a as $e,e as je,f as qe}from"./chunk-ONUC6T7C.js";import{B as Le,F as He,G as Ne,N as Qe,R as Ve,S as Be,d as Te,ea as ae,g as ze,l as Oe,n as Re,o as Ae,y as Fe,z as Pe}from"./chunk-567HXZXC.js";import{f as ke}from"./chunk-2RSBMS36.js";import{$ as S,$a as s,$b as h,Ab as Me,Db as _,Fa as M,Fb as Q,Fc as Ee,Ga as ye,Gb as V,Hb as B,Ib as d,Jb as c,Ka as z,Kb as X,Kc as $,Ma as be,Mc as T,Na as O,Nb as I,Nc as we,Ob as De,Qa as xe,Qb as ee,Rb as p,Sb as A,Tb as F,Yb as v,Zb as P,_b as m,a as de,aa as he,ab as D,bd as re,cb as Ce,d as L,da as y,dc as te,ec as x,fb as Se,fc as C,ja as ue,ka as H,kb as E,la as fe,lb as N,mb as b,na as l,o as ce,ob as R,pa as _e,pc as ie,qa as ve,qb as f,sc as ne,t as me,ua as ge,ub as w,va as W,vb as u,wa as Y,wb as Ie,xb as k,za as Z,zb as J}from"./chunk-DZT5XHBQ.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Fe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Le(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Pe(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Te();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Oe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Re);e.load($e),e.load(Ae);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
1
+ import{a as Ge,b as Ue}from"./chunk-7BU64MD2.js";import{a as j}from"./chunk-JKYTSC2D.js";import{a as $e,e as je,f as qe}from"./chunk-FY5VLGQC.js";import{B as Le,F as He,G as Ne,N as Qe,R as Ve,S as Be,d as Te,ea as ae,g as ze,l as Oe,n as Re,o as Ae,y as Fe,z as Pe}from"./chunk-567HXZXC.js";import{f as ke}from"./chunk-2RSBMS36.js";import{$ as S,$a as s,$b as h,Ab as Me,Db as _,Fa as M,Fb as Q,Fc as Ee,Ga as ye,Gb as V,Hb as B,Ib as d,Jb as c,Ka as z,Kb as X,Kc as $,Ma as be,Mc as T,Na as O,Nb as I,Nc as we,Ob as De,Qa as xe,Qb as ee,Rb as p,Sb as A,Tb as F,Yb as v,Zb as P,_b as m,a as de,aa as he,ab as D,bd as re,cb as Ce,d as L,da as y,dc as te,ec as x,fb as Se,fc as C,ja as ue,ka as H,kb as E,la as fe,lb as N,mb as b,na as l,o as ce,ob as R,pa as _e,pc as ie,qa as ve,qb as f,sc as ne,t as me,ua as ge,ub as w,va as W,vb as u,wa as Y,wb as Ie,xb as k,za as Z,zb as J}from"./chunk-DZT5XHBQ.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Fe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Le(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Pe(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Te();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Oe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Re);e.load($e),e.load(Ae);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
2
2
  `],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{templateRef=l(D);name;constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return i})(),Dt=(()=>{class i{_template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepContent",""]]})}return i})(),Et=(()=>{class i extends q{_errorStateMatcher=l(j,{skipSelf:!0});_viewContainerRef=l(Se);_isSelected=de.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(he(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Qe(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let n=this._errorStateMatcher.isErrorState(e,t),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,le,5),v(r,Dt,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ie([{provide:j,useExisting:i},{provide:q,useExisting:i}]),R],ngContentSelectors:We,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,n){t&1&&(A(),f(0,ht,2,1,"ng-template"))},dependencies:[Ve],encapsulation:2,changeDetection:0})}return i})(),wt=(()=>{class i extends G{_ngZone=l(ye);_renderer=l(Ce);_animationsModule=l(xe,{optional:!0});_cleanupTransition;_isAnimating=be(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new O;_icons;animationDone=new M;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!l(ze).isBrowser;constructor(){super();let t=l(z).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(y(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(y(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsModule!=="NoopAnimations"&&setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(S(null),y(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this._animationsModule==="NoopAnimations"?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let t=e.target;if(!t)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&t.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&t.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(K=>K.nativeElement===t)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,Et,5),v(r,Mt,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(t,n){if(t&1&&(P(pe,5),P(ut,5)),t&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(t,n){t&2&&(w("aria-orientation",n.orientation),Ie("--mat-stepper-animation-duration",n._getAnimationDuration()),k("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom")("mat-stepper-animating",n._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ie([{provide:G,useExisting:i}]),R],ngContentSelectors:We,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,n){if(t&1&&(A(),f(0,ft,1,0)(1,yt,7,0,"div",2)(2,xt,2,0)(3,Ct,1,23,"ng-template",null,0,Ee)),t&2){let r;_(n._isServer?0:-1),s(),_((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[re,pe],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
3
3
  `],encapsulation:2,changeDetection:0})}return i})();var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({providers:[It,j],imports:[ae,Be,Ke,Ue,qe,wt,pe,ae]})}return i})();export{Ke as a,le as b,Mt as c,Dt as d,Et as e,wt as f,Di as g};
@@ -1 +1 @@
1
- import{c as U,d as W}from"./chunk-USIHDJYD.js";import{a as X,b as Y}from"./chunk-C73IEBHE.js";import{b as K,c as Q}from"./chunk-CIBQBSM6.js";import{a as A}from"./chunk-ZT4RBJMM.js";import{la as J}from"./chunk-TLOTIYIE.js";import{F as G,h as B,o as q}from"./chunk-2RSBMS36.js";import{a as C}from"./chunk-AHCRE4GP.js";import{$a as _,Ac as k,Db as H,Fa as M,Fc as F,Ib as c,Jb as m,Nb as L,Ob as V,Qb as j,Rb as n,Y as S,Yd as d,bd as N,ca as h,cd as P,d as x,db as b,dc as I,ec as v,fa as T,ga as u,gc as E,ja as w,jd as z,kb as $,ma as O,na as D,o as f,qb as a,va as p,vb as l,wa as g,zc as R}from"./chunk-DZT5XHBQ.js";var y=class o{signalRClient=D(A);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):f(e),[]),S(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):f(e),[]),S(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(d))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function ie(o,t){o&1&&L(0)}function re(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,ie,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ne(o,t){o&1&&L(0)}function ae(o,t){if(o&1&&a(0,ne,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function le(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),E(" ",e.selectedCategoryLabel," ")}}function ce(o,t){if(o&1){let e=V();c(0,"p-treeSelect",4),R(1,"async"),j("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,le,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",k(1,3,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)}}var Z=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(C.IsEmpty(this.selectedCategoryID)&&C.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel="Select Storage Location"}findSelectedCategory(t,e){if(C.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(d),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory","placeholder","Select Storage Location",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&a(0,re,4,1,"p-floatLabel",1)(1,ae,1,1,"ng-container")(2,ce,3,5,"ng-template",null,0,F),e&2&&H(i.showLabel?0:1)},dependencies:[z,N,P,Q,K,W,U,J,G,B,q,Y,X],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{Z as a};
1
+ import{c as U,d as W}from"./chunk-JIYAVK6J.js";import{a as X,b as Y}from"./chunk-C73IEBHE.js";import{b as K,c as Q}from"./chunk-CIBQBSM6.js";import{a as A}from"./chunk-ZT4RBJMM.js";import{la as J}from"./chunk-TLOTIYIE.js";import{F as G,h as B,o as q}from"./chunk-2RSBMS36.js";import{a as C}from"./chunk-AHCRE4GP.js";import{$a as _,Ac as k,Db as H,Fa as M,Fc as F,Ib as c,Jb as m,Nb as L,Ob as V,Qb as j,Rb as n,Y as S,Yd as d,bd as N,ca as h,cd as P,d as x,db as b,dc as I,ec as v,fa as T,ga as u,gc as E,ja as w,jd as z,kb as $,ma as O,na as D,o as f,qb as a,va as p,vb as l,wa as g,zc as R}from"./chunk-DZT5XHBQ.js";var y=class o{signalRClient=D(A);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):f(e),[]),S(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):f(e),[]),S(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(d))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function ie(o,t){o&1&&L(0)}function re(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,ie,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ne(o,t){o&1&&L(0)}function ae(o,t){if(o&1&&a(0,ne,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function le(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),E(" ",e.selectedCategoryLabel," ")}}function ce(o,t){if(o&1){let e=V();c(0,"p-treeSelect",4),R(1,"async"),j("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,le,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",k(1,3,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)}}var Z=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(C.IsEmpty(this.selectedCategoryID)&&C.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel="Select Storage Location"}findSelectedCategory(t,e){if(C.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(d),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory","placeholder","Select Storage Location",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&a(0,re,4,1,"p-floatLabel",1)(1,ae,1,1,"ng-container")(2,ce,3,5,"ng-template",null,0,F),e&2&&H(i.showLabel?0:1)},dependencies:[z,N,P,Q,K,W,U,J,G,B,q,Y,X],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{Z as a};
@@ -1 +1 @@
1
- import{b as P,c as V}from"./chunk-O3BPVSF4.js";import{u as N,v as G,w as L}from"./chunk-ONUC6T7C.js";import{e as A,f as j}from"./chunk-D35OBUDE.js";import{F as R}from"./chunk-2RSBMS36.js";import{$a as o,Ac as k,Bc as E,Db as C,Eb as s,Gb as p,Hb as _,Ib as a,Jb as r,Kb as x,Ma as d,Ob as $,Qb as M,Rb as l,db as T,ec as m,ed as O,fc as g,gc as h,gd as w,jd as B,kb as b,na as I,qb as u,rc as S,va as y,vb as f,wa as v,zb as F,zc as D}from"./chunk-DZT5XHBQ.js";var H=t=>({"text-end":t});function J(t,n){if(t&1&&(a(0,"th"),m(1),r()),t&2){let e=n.$implicit,i=n.$index,c=l();F(S(3,H,e.type=="number")),o(),h(" ",c.headers()[i]," ")}}function K(t,n){if(t&1&&(a(0,"td"),m(1),D(2,"date"),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(E(2,1,i[e.field],"dd MMM yyyy"))}}function Q(t,n){if(t&1&&(a(0,"td",7),m(1),D(2,"number"),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(k(2,1,i[e.field]))}}function U(t,n){if(t&1&&(a(0,"td"),m(1),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(i[e.field])}}function W(t,n){if(t&1&&u(0,K,3,4,"td")(1,Q,3,3,"td",7)(2,U,2,1,"td"),t&2){let e=n.$implicit;C(e.type=="date"?0:e.type=="number"?1:2)}}function X(t,n){if(t&1&&(a(0,"small",6),m(1),r()),t&2){let e=l(2);o(),h("(",e.actionTitle(),")")}}function Y(t,n){if(t&1){let e=$();a(0,"tr")(1,"td")(2,"mat-radio-button",5),M("change",function(){let c=y(e).$implicit,z=l();return v(z.selectedId.set(c.ID))}),r()(),p(3,W,3,1,null,null,s),a(5,"td"),u(6,X,2,1,"small",6),r()()}if(t&2){let e=n.$implicit,i=l();o(2),f("id",e.ID)("checked",i.selectedId()==e.ID)("name",e.ID)("value",e.ID),o(),_(i.columns()),o(3),C(i.selectedId()!=e.ID?6:-1)}}var q=class t{constructor(n){this.dialogData=n;this.data.set(n.data),this.columns.set(n.columns),this.headers.set(n.headers),this.selectedId.set(this.data()[0]?.ID),this.actionTitle.set(n.actionTitle?n.actionTitle:"Deleted"),this.config.title=n.title,this.config.bodyScrollable=!0}dialogRef=I(A);config=new N;selectedId=d(null);data=d([]);actionTitle=d("Deleted");columns=d([]);headers=d([]);onOk(){let n=this.data()?.filter(i=>i.ID!==this.selectedId())?.map(i=>i.ID),e={mergeTarget:this.selectedId(),deleted:n};this.dialogRef.close(e)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(e){return new(e||t)(T(j))};static \u0275cmp=b({type:t,selectors:[["app-merge-dialog"]],decls:12,vars:2,consts:[[3,"onOk","onCancel","onClose","config","dynamicValidated"],[1,"table"],[1,"thead-light"],[2,"width","5px"],[3,"class"],["color","primary",3,"change","id","checked","name","value"],[1,"fst-italic","ms-2","text-danger"],[1,"text-end"]],template:function(e,i){e&1&&(a(0,"modal-material",0),M("onOk",function(){return i.onOk()})("onCancel",function(){return i.onClose()})("onClose",function(){return i.onClose()}),a(1,"content")(2,"table",1)(3,"thead",2)(4,"tr"),x(5,"th",3),p(6,J,2,5,"th",4,s),x(8,"th"),r()(),a(9,"tbody"),p(10,Y,7,5,"tr",null,s),r()()()()),e&2&&(f("config",i.config)("dynamicValidated",i.selectedId()),o(6),_(i.columns()),o(4),_(i.data()))},dependencies:[B,w,O,L,G,V,P,R],styles:[".radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}"]})};export{q as a};
1
+ import{b as P,c as V}from"./chunk-H4SCBKWD.js";import{u as N,v as G,w as L}from"./chunk-FY5VLGQC.js";import{e as A,f as j}from"./chunk-ZZ7LHETD.js";import{F as R}from"./chunk-2RSBMS36.js";import{$a as o,Ac as k,Bc as E,Db as C,Eb as s,Gb as p,Hb as _,Ib as a,Jb as r,Kb as x,Ma as d,Ob as $,Qb as M,Rb as l,db as T,ec as m,ed as O,fc as g,gc as h,gd as w,jd as B,kb as b,na as I,qb as u,rc as S,va as y,vb as f,wa as v,zb as F,zc as D}from"./chunk-DZT5XHBQ.js";var H=t=>({"text-end":t});function J(t,n){if(t&1&&(a(0,"th"),m(1),r()),t&2){let e=n.$implicit,i=n.$index,c=l();F(S(3,H,e.type=="number")),o(),h(" ",c.headers()[i]," ")}}function K(t,n){if(t&1&&(a(0,"td"),m(1),D(2,"date"),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(E(2,1,i[e.field],"dd MMM yyyy"))}}function Q(t,n){if(t&1&&(a(0,"td",7),m(1),D(2,"number"),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(k(2,1,i[e.field]))}}function U(t,n){if(t&1&&(a(0,"td"),m(1),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(i[e.field])}}function W(t,n){if(t&1&&u(0,K,3,4,"td")(1,Q,3,3,"td",7)(2,U,2,1,"td"),t&2){let e=n.$implicit;C(e.type=="date"?0:e.type=="number"?1:2)}}function X(t,n){if(t&1&&(a(0,"small",6),m(1),r()),t&2){let e=l(2);o(),h("(",e.actionTitle(),")")}}function Y(t,n){if(t&1){let e=$();a(0,"tr")(1,"td")(2,"mat-radio-button",5),M("change",function(){let c=y(e).$implicit,z=l();return v(z.selectedId.set(c.ID))}),r()(),p(3,W,3,1,null,null,s),a(5,"td"),u(6,X,2,1,"small",6),r()()}if(t&2){let e=n.$implicit,i=l();o(2),f("id",e.ID)("checked",i.selectedId()==e.ID)("name",e.ID)("value",e.ID),o(),_(i.columns()),o(3),C(i.selectedId()!=e.ID?6:-1)}}var q=class t{constructor(n){this.dialogData=n;this.data.set(n.data),this.columns.set(n.columns),this.headers.set(n.headers),this.selectedId.set(this.data()[0]?.ID),this.actionTitle.set(n.actionTitle?n.actionTitle:"Deleted"),this.config.title=n.title,this.config.bodyScrollable=!0}dialogRef=I(A);config=new N;selectedId=d(null);data=d([]);actionTitle=d("Deleted");columns=d([]);headers=d([]);onOk(){let n=this.data()?.filter(i=>i.ID!==this.selectedId())?.map(i=>i.ID),e={mergeTarget:this.selectedId(),deleted:n};this.dialogRef.close(e)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(e){return new(e||t)(T(j))};static \u0275cmp=b({type:t,selectors:[["app-merge-dialog"]],decls:12,vars:2,consts:[[3,"onOk","onCancel","onClose","config","dynamicValidated"],[1,"table"],[1,"thead-light"],[2,"width","5px"],[3,"class"],["color","primary",3,"change","id","checked","name","value"],[1,"fst-italic","ms-2","text-danger"],[1,"text-end"]],template:function(e,i){e&1&&(a(0,"modal-material",0),M("onOk",function(){return i.onOk()})("onCancel",function(){return i.onClose()})("onClose",function(){return i.onClose()}),a(1,"content")(2,"table",1)(3,"thead",2)(4,"tr"),x(5,"th",3),p(6,J,2,5,"th",4,s),x(8,"th"),r()(),a(9,"tbody"),p(10,Y,7,5,"tr",null,s),r()()()()),e&2&&(f("config",i.config)("dynamicValidated",i.selectedId()),o(6),_(i.columns()),o(4),_(i.data()))},dependencies:[B,w,O,L,G,V,P,R],styles:[".radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}"]})};export{q as a};
@@ -1 +1 @@
1
- import{w as p}from"./chunk-ONUC6T7C.js";import{jd as f,ka as m,lb as n}from"./chunk-DZT5XHBQ.js";var c=class i{static \u0275fac=function(o){return new(o||i)};static \u0275mod=n({type:i});static \u0275inj=m({imports:[f,p]})};var s=(r=>(r[r.TYPE=0]="TYPE",r[r.NOTE=1]="NOTE",r[r.OTHER=2]="OTHER",r[r.LOGISTICS=3]="LOGISTICS",r[r.NUMBER=4]="NUMBER",r))(s||{});export{c as a,s as b};
1
+ import{w as p}from"./chunk-FY5VLGQC.js";import{jd as f,ka as m,lb as n}from"./chunk-DZT5XHBQ.js";var c=class i{static \u0275fac=function(o){return new(o||i)};static \u0275mod=n({type:i});static \u0275inj=m({imports:[f,p]})};var s=(r=>(r[r.TYPE=0]="TYPE",r[r.NOTE=1]="NOTE",r[r.OTHER=2]="OTHER",r[r.LOGISTICS=3]="LOGISTICS",r[r.NUMBER=4]="NUMBER",r))(s||{});export{c as a,s as b};
@@ -1 +1 @@
1
- import{a as me}from"./chunk-SE7OFLAL.js";import{a as le}from"./chunk-ZCDMIPJU.js";import{a as ie,c as ne,e as re,f as ae,g as oe}from"./chunk-UCICCJTH.js";import{a as Y}from"./chunk-L2EDFSBR.js";import{a as Z,c as ee}from"./chunk-LNVTHMH7.js";import{m as X}from"./chunk-ONUC6T7C.js";import{O as te}from"./chunk-IX5URHI7.js";import{d as T}from"./chunk-LPGMI3V2.js";import{a as J}from"./chunk-2FWFPV5I.js";import{F as z,c as G,h as U,o as q}from"./chunk-2RSBMS36.js";import{a as K}from"./chunk-AHCRE4GP.js";import{$a as m,Ac as F,Bc as Q,Fa as y,Fc as A,Ib as a,Jb as l,Kb as x,Lb as h,Mb as g,Ob as S,Qb as f,Rb as s,Vd as $,Y as D,Yc as H,Zc as W,cd as L,db as I,dc as C,ec as _,ed as j,fa as N,fc as k,gc as b,jc as v,jd as B,ka as O,kb as P,kc as E,lb as R,lc as w,qb as u,t as V,va as p,vb as c,wa as d,zc as M}from"./chunk-DZT5XHBQ.js";function de(i,t){i&1&&(h(0),a(1,"div",5)(2,"div",6),_(3,"Edit Serial is disabled during EDIT MODE"),l(),a(4,"div"),_(5," If you make a mistake, please delete the item and then add again "),l()(),g())}function _e(i,t){if(i&1){let e=S();a(0,"mat-chip-row",19),f("removed",function(){let r=p(e).$implicit,o=s(3);return d(o.onRemoveSerialChip(r))}),_(1),a(2,"button",20),x(3,"i",21),l()()}if(i&2){let e=t.$implicit;m(),b(" ",e," ")}}function ue(i,t){if(i&1){let e=S();h(0),a(1,"div",10)(2,"div",11)(3,"mat-form-field",12),f("keyup.enter",function(r){return p(e),d(r.stopPropagation())}),a(4,"mat-chip-grid",null,1),u(6,_e,4,1,"mat-chip-row",13),a(7,"input",14,2),f("matChipInputTokenEnd",function(r){p(e);let o=C(8),pe=s(2);return d(pe.addSerial(r,o))}),l()()()(),a(9,"div",15)(10,"button",16),f("click",function(){p(e);let r=C(8),o=s(2);return d(o.submitSerial(r))}),x(11,"i",17),a(12,"strong",18),_(13,"ADD"),l()()()(),g()}if(i&2){let e=C(5),n=s(2);m(6),c("ngForOf",n.serials),m(),c("matChipInputFor",e)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)}}function he(i,t){if(i&1){let e=S();a(0,"ng-select",22),M(1,"async"),w("ngModelChange",function(r){p(e);let o=s(2);return E(o.serials,r)||(o.serials=r),d(r)}),f("remove",function(r){p(e);let o=s(2);return d(o.onRemoveSerialFromOption(r.value))})("change",function(r){p(e);let o=s(2);return d(o.onSelectSerial(r))}),l()}if(i&2){let e=s(2);c("items",F(1,3,e.serials$)),v("ngModel",e.serials),c("multiple",!0)}}function ge(i,t){if(i&1&&(h(0),a(1,"div",7)(2,"div",8),u(3,ue,14,3,"ng-container",9)(4,he,2,5,"ng-template",null,0,A),l()(),g()),i&2){let e=C(5),n=s();m(3),c("ngIf",n.isReturn)("ngIfElse",e)}}function fe(i,t){i&1&&(h(0),x(1,"th",29),g())}function Se(i,t){i&1&&(h(0),a(1,"th",30),_(2,"Expiry Date"),l(),g())}function Ce(i,t){if(i&1){let e=S();h(0),a(1,"td",32)(2,"i",33),f("click",function(){p(e);let r=s().index,o=s(2);return d(o.onRemoveSerial(r))}),l()(),g()}}function xe(i,t){if(i&1&&(h(0),a(1,"td"),_(2),M(3,"date"),l(),g()),i&2){let e=s().$implicit;m(2),b(" ",e.ExpiryDate?Q(3,1,e.ExpiryDate,"dd MMM yyyy"):"-"," ")}}function ye(i,t){if(i&1){let e=S();a(0,"tr"),u(1,Ce,3,0,"ng-container",4),a(2,"td"),_(3),l(),u(4,xe,4,4,"ng-container",4),a(5,"td")(6,"input",31),w("ngModelChange",function(r){let o=p(e).$implicit;return E(o.Quantity,r)||(o.Quantity=r),d(r)}),f("change",function(){p(e);let r=s(2);return d(r.onChangeQty())}),l()()()}if(i&2){let e=t.$implicit,n=s(2);m(),c("ngIf",!n.disabled),m(2),k(e.Number),m(),c("ngIf",n.showExpiryDate),m(2),v("ngModel",e.Quantity),c("disabled",n.disabled)("decimalPlaces",0)}}function Ie(i,t){if(i&1&&(h(0),a(1,"div",23)(2,"div",8)(3,"table",24)(4,"thead",25)(5,"tr"),u(6,fe,2,0,"ng-container",4),a(7,"th",26),_(8,"Serial Number"),l(),u(9,Se,3,0,"ng-container",4),a(10,"th",27),_(11,"Quantity"),l()()(),a(12,"tbody"),u(13,ye,7,6,"tr",28),l()()()(),g()),i&2){let e=s();m(6),c("ngIf",!e.disabled),m(3),c("ngIf",e.showExpiryDate),m(4),c("ngForOf",e.selectedSerial)}}var se=class i{constructor(t,e){this.productService=t;this.toastr=e;this.cartItemChange=new y,this.serialsChange=new y}separatorKeysCodes=[13,188];_cartItem;isReturn=!1;disabled=!1;set cartItem(t){t&&(this._cartItem=t,this.initSelectedSerial(),t.Quantity<0?this.isReturn=!0:this.getSerialVariant())}get cartItem(){return this._cartItem}cartItemChange;entityId;serials;serialsChange;serials$;selectedSerial=[];showExpiryDate;ngOnDestroy(){this.serialsChange.emit([])}initSelectedSerial(){let t=this.cartItem.Serial;t&&t.length>0&&(this.selectedSerial=t,this.checkShowExpiryDate())}getSerialVariant(){let t=this.cartItem.VariantID,e;this.serials$=this.productService.getVariantSerial(this.entityId,t).pipe(V(n=>n.map(r=>(e=new me,e.Number=r.Number,e.Quantity=r.Quantity?r.Quantity:1,e.ExpiryDate=r.ExpiryDate,e))),N(()=>{this.isReturn||(this.serials=this.generateSerialCode(this.selectedSerial))}),D())}generateSerialCode(t=[]){return t.map(e=>e.Number)}onSelectSerial(t){let e=t.filter(n=>this.selectedSerial.findIndex(r=>r.Number==n.Number)==-1);e.length>0&&(e[0].Quantity=1,this.selectedSerial=[...this.selectedSerial,...e],this.updateCartItem())}onRemoveSerial(t){this.selectedSerial=this.selectedSerial.filter((e,n)=>n!==t),this.serials=this.generateSerialCode(this.selectedSerial),this.updateCartItem()}onRemoveSerialChip(t){this.serials=this.serials.filter(e=>e!==t),this.serialsChange.emit(this.serials)}onRemoveSerialFromOption(t){this.selectedSerial=this.selectedSerial.filter(e=>e.Number!==t.Number),this.serials=this.generateSerialCode(this.selectedSerial)}onChangeQty(){this.updateCartItem()}submitSerial(t){t.value.trim()&&(this.serials.push(t.value.trim()),t.value="");let e=this.generateSerialData();this.selectedSerial=[...this.selectedSerial,...e],this.serials=[],this.updateCartItem()}generateSerialData(){return this.serials.filter(e=>this.selectedSerial.findIndex(n=>n.Number==e)==-1).map(e=>({Number:e,Quantity:this.isReturn?-1:1,ExpiryDate:null}))}addSerial(t,e){let n=(t.value||"").trim();if(n)if(this.serials.find(r=>r==n)){e.value="",this.toastr.info("Serial already exists",J.Info);return}else this.serials.push(n),this.serialsChange.emit(this.serials);t.chipInput.clear()}updateCartItem(){this.cartItem.Serial=this.selectedSerial,this.checkShowExpiryDate(),this.calculateSerialQty(),this.cartItemChange.emit(this.cartItem)}calculateSerialQty(){let t=0;this.selectedSerial.forEach(e=>{t+=e.Quantity}),this.cartItem.Quantity=t}checkShowExpiryDate(){let t=0;this.selectedSerial.forEach(e=>{K.IsNotEmpty(e.ExpiryDate)&&(t+=1)}),this.showExpiryDate=t>0}static \u0275fac=function(e){return new(e||i)(I(le),I($))};static \u0275cmp=P({type:i,selectors:[["app-item-serial"]],inputs:{disabled:"disabled",cartItem:"cartItem",entityId:"entityId",serials:"serials"},outputs:{cartItemChange:"cartItemChange",serialsChange:"serialsChange"},standalone:!1,decls:4,vars:3,consts:[["NOT_RETURN",""],["chipGrid",""],["inputChip",""],[1,"my-8"],[4,"ngIf"],[1,"alert","alert-warning","text-center","my-5","py-3"],[1,"fw-bold"],[1,"row"],[1,"col-12"],[4,"ngIf","ngIfElse"],[1,"input-group","mb-3"],[1,"col"],["appearance","outline",1,"serial-chip",3,"keyup.enter"],[3,"removed",4,"ngFor","ngForOf"],["placeholder","E.g. Serial1 Serial2",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes"],[1,"col-auto"],["type","button",1,"btn","btn-outline-secondary","btn-sm","add-chip",3,"click"],["aria-hidden","true",1,"fa","fa-plus","me-1","fs-6"],[1,"headings-font-family","h6","font-weight-bold"],[3,"removed"],["matChipRemove",""],[1,"fa-solid","fa-circle-xmark"],["bindLabel","Number","appendTo","body","bindValue","Number","placeholder","Insert Number",1,"ng-select-multiple",3,"ngModelChange","remove","change","items","ngModel","multiple"],[1,"row","mt-8"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-end"],[1,"border-end","text-end",2,"width","60px"],[4,"ngFor","ngForOf"],[1,"border-end",2,"width","40px"],[1,"border-end",2,"width","100px"],["type","text","placeholder","Serial Quantity","autoNum","",1,"form-control","text-end",3,"ngModelChange","change","ngModel","disabled","decimalPlaces"],[1,"text-center"],["aria-hidden","true","title","Remove serial",1,"fa","fa-xmark","text-danger","cursor-pointer","fa-2x",3,"click"]],template:function(e,n){e&1&&(a(0,"div",3),u(1,de,6,0,"ng-container",4)(2,ge,6,2,"ng-container",4)(3,Ie,14,3,"ng-container",4),l()),e&2&&(m(),c("ngIf",n.disabled),m(),c("ngIf",!n.disabled),m(),c("ngIf",n.selectedSerial.length>0))},dependencies:()=>[H,W,T,G,U,q,ee,re,ae,ie,ne,X,L,j],styles:[".serial-chip[_ngcontent-%COMP%]{width:100%}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:40px!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading{border-color:#ccc!important}.serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.add-chip[_ngcontent-%COMP%]{height:calc(100% - 18.4px);margin-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}"]})},ce=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=R({type:i});static \u0275inj=O({imports:[B,te,T,z,Z,oe,Y]})};export{se as a,ce as b};
1
+ import{a as me}from"./chunk-SE7OFLAL.js";import{a as le}from"./chunk-4PBQC5P6.js";import{a as ie,c as ne,e as re,f as ae,g as oe}from"./chunk-76T3TRG4.js";import{a as Y}from"./chunk-L2EDFSBR.js";import{a as Z,c as ee}from"./chunk-LNVTHMH7.js";import{m as X}from"./chunk-FY5VLGQC.js";import{O as te}from"./chunk-IX5URHI7.js";import{d as T}from"./chunk-LPGMI3V2.js";import{a as J}from"./chunk-2FWFPV5I.js";import{F as z,c as G,h as U,o as q}from"./chunk-2RSBMS36.js";import{a as K}from"./chunk-AHCRE4GP.js";import{$a as m,Ac as F,Bc as Q,Fa as y,Fc as A,Ib as a,Jb as l,Kb as x,Lb as h,Mb as g,Ob as S,Qb as f,Rb as s,Vd as $,Y as D,Yc as H,Zc as W,cd as L,db as I,dc as C,ec as _,ed as j,fa as N,fc as k,gc as b,jc as v,jd as B,ka as O,kb as P,kc as E,lb as R,lc as w,qb as u,t as V,va as p,vb as c,wa as d,zc as M}from"./chunk-DZT5XHBQ.js";function de(i,t){i&1&&(h(0),a(1,"div",5)(2,"div",6),_(3,"Edit Serial is disabled during EDIT MODE"),l(),a(4,"div"),_(5," If you make a mistake, please delete the item and then add again "),l()(),g())}function _e(i,t){if(i&1){let e=S();a(0,"mat-chip-row",19),f("removed",function(){let r=p(e).$implicit,o=s(3);return d(o.onRemoveSerialChip(r))}),_(1),a(2,"button",20),x(3,"i",21),l()()}if(i&2){let e=t.$implicit;m(),b(" ",e," ")}}function ue(i,t){if(i&1){let e=S();h(0),a(1,"div",10)(2,"div",11)(3,"mat-form-field",12),f("keyup.enter",function(r){return p(e),d(r.stopPropagation())}),a(4,"mat-chip-grid",null,1),u(6,_e,4,1,"mat-chip-row",13),a(7,"input",14,2),f("matChipInputTokenEnd",function(r){p(e);let o=C(8),pe=s(2);return d(pe.addSerial(r,o))}),l()()()(),a(9,"div",15)(10,"button",16),f("click",function(){p(e);let r=C(8),o=s(2);return d(o.submitSerial(r))}),x(11,"i",17),a(12,"strong",18),_(13,"ADD"),l()()()(),g()}if(i&2){let e=C(5),n=s(2);m(6),c("ngForOf",n.serials),m(),c("matChipInputFor",e)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)}}function he(i,t){if(i&1){let e=S();a(0,"ng-select",22),M(1,"async"),w("ngModelChange",function(r){p(e);let o=s(2);return E(o.serials,r)||(o.serials=r),d(r)}),f("remove",function(r){p(e);let o=s(2);return d(o.onRemoveSerialFromOption(r.value))})("change",function(r){p(e);let o=s(2);return d(o.onSelectSerial(r))}),l()}if(i&2){let e=s(2);c("items",F(1,3,e.serials$)),v("ngModel",e.serials),c("multiple",!0)}}function ge(i,t){if(i&1&&(h(0),a(1,"div",7)(2,"div",8),u(3,ue,14,3,"ng-container",9)(4,he,2,5,"ng-template",null,0,A),l()(),g()),i&2){let e=C(5),n=s();m(3),c("ngIf",n.isReturn)("ngIfElse",e)}}function fe(i,t){i&1&&(h(0),x(1,"th",29),g())}function Se(i,t){i&1&&(h(0),a(1,"th",30),_(2,"Expiry Date"),l(),g())}function Ce(i,t){if(i&1){let e=S();h(0),a(1,"td",32)(2,"i",33),f("click",function(){p(e);let r=s().index,o=s(2);return d(o.onRemoveSerial(r))}),l()(),g()}}function xe(i,t){if(i&1&&(h(0),a(1,"td"),_(2),M(3,"date"),l(),g()),i&2){let e=s().$implicit;m(2),b(" ",e.ExpiryDate?Q(3,1,e.ExpiryDate,"dd MMM yyyy"):"-"," ")}}function ye(i,t){if(i&1){let e=S();a(0,"tr"),u(1,Ce,3,0,"ng-container",4),a(2,"td"),_(3),l(),u(4,xe,4,4,"ng-container",4),a(5,"td")(6,"input",31),w("ngModelChange",function(r){let o=p(e).$implicit;return E(o.Quantity,r)||(o.Quantity=r),d(r)}),f("change",function(){p(e);let r=s(2);return d(r.onChangeQty())}),l()()()}if(i&2){let e=t.$implicit,n=s(2);m(),c("ngIf",!n.disabled),m(2),k(e.Number),m(),c("ngIf",n.showExpiryDate),m(2),v("ngModel",e.Quantity),c("disabled",n.disabled)("decimalPlaces",0)}}function Ie(i,t){if(i&1&&(h(0),a(1,"div",23)(2,"div",8)(3,"table",24)(4,"thead",25)(5,"tr"),u(6,fe,2,0,"ng-container",4),a(7,"th",26),_(8,"Serial Number"),l(),u(9,Se,3,0,"ng-container",4),a(10,"th",27),_(11,"Quantity"),l()()(),a(12,"tbody"),u(13,ye,7,6,"tr",28),l()()()(),g()),i&2){let e=s();m(6),c("ngIf",!e.disabled),m(3),c("ngIf",e.showExpiryDate),m(4),c("ngForOf",e.selectedSerial)}}var se=class i{constructor(t,e){this.productService=t;this.toastr=e;this.cartItemChange=new y,this.serialsChange=new y}separatorKeysCodes=[13,188];_cartItem;isReturn=!1;disabled=!1;set cartItem(t){t&&(this._cartItem=t,this.initSelectedSerial(),t.Quantity<0?this.isReturn=!0:this.getSerialVariant())}get cartItem(){return this._cartItem}cartItemChange;entityId;serials;serialsChange;serials$;selectedSerial=[];showExpiryDate;ngOnDestroy(){this.serialsChange.emit([])}initSelectedSerial(){let t=this.cartItem.Serial;t&&t.length>0&&(this.selectedSerial=t,this.checkShowExpiryDate())}getSerialVariant(){let t=this.cartItem.VariantID,e;this.serials$=this.productService.getVariantSerial(this.entityId,t).pipe(V(n=>n.map(r=>(e=new me,e.Number=r.Number,e.Quantity=r.Quantity?r.Quantity:1,e.ExpiryDate=r.ExpiryDate,e))),N(()=>{this.isReturn||(this.serials=this.generateSerialCode(this.selectedSerial))}),D())}generateSerialCode(t=[]){return t.map(e=>e.Number)}onSelectSerial(t){let e=t.filter(n=>this.selectedSerial.findIndex(r=>r.Number==n.Number)==-1);e.length>0&&(e[0].Quantity=1,this.selectedSerial=[...this.selectedSerial,...e],this.updateCartItem())}onRemoveSerial(t){this.selectedSerial=this.selectedSerial.filter((e,n)=>n!==t),this.serials=this.generateSerialCode(this.selectedSerial),this.updateCartItem()}onRemoveSerialChip(t){this.serials=this.serials.filter(e=>e!==t),this.serialsChange.emit(this.serials)}onRemoveSerialFromOption(t){this.selectedSerial=this.selectedSerial.filter(e=>e.Number!==t.Number),this.serials=this.generateSerialCode(this.selectedSerial)}onChangeQty(){this.updateCartItem()}submitSerial(t){t.value.trim()&&(this.serials.push(t.value.trim()),t.value="");let e=this.generateSerialData();this.selectedSerial=[...this.selectedSerial,...e],this.serials=[],this.updateCartItem()}generateSerialData(){return this.serials.filter(e=>this.selectedSerial.findIndex(n=>n.Number==e)==-1).map(e=>({Number:e,Quantity:this.isReturn?-1:1,ExpiryDate:null}))}addSerial(t,e){let n=(t.value||"").trim();if(n)if(this.serials.find(r=>r==n)){e.value="",this.toastr.info("Serial already exists",J.Info);return}else this.serials.push(n),this.serialsChange.emit(this.serials);t.chipInput.clear()}updateCartItem(){this.cartItem.Serial=this.selectedSerial,this.checkShowExpiryDate(),this.calculateSerialQty(),this.cartItemChange.emit(this.cartItem)}calculateSerialQty(){let t=0;this.selectedSerial.forEach(e=>{t+=e.Quantity}),this.cartItem.Quantity=t}checkShowExpiryDate(){let t=0;this.selectedSerial.forEach(e=>{K.IsNotEmpty(e.ExpiryDate)&&(t+=1)}),this.showExpiryDate=t>0}static \u0275fac=function(e){return new(e||i)(I(le),I($))};static \u0275cmp=P({type:i,selectors:[["app-item-serial"]],inputs:{disabled:"disabled",cartItem:"cartItem",entityId:"entityId",serials:"serials"},outputs:{cartItemChange:"cartItemChange",serialsChange:"serialsChange"},standalone:!1,decls:4,vars:3,consts:[["NOT_RETURN",""],["chipGrid",""],["inputChip",""],[1,"my-8"],[4,"ngIf"],[1,"alert","alert-warning","text-center","my-5","py-3"],[1,"fw-bold"],[1,"row"],[1,"col-12"],[4,"ngIf","ngIfElse"],[1,"input-group","mb-3"],[1,"col"],["appearance","outline",1,"serial-chip",3,"keyup.enter"],[3,"removed",4,"ngFor","ngForOf"],["placeholder","E.g. Serial1 Serial2",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes"],[1,"col-auto"],["type","button",1,"btn","btn-outline-secondary","btn-sm","add-chip",3,"click"],["aria-hidden","true",1,"fa","fa-plus","me-1","fs-6"],[1,"headings-font-family","h6","font-weight-bold"],[3,"removed"],["matChipRemove",""],[1,"fa-solid","fa-circle-xmark"],["bindLabel","Number","appendTo","body","bindValue","Number","placeholder","Insert Number",1,"ng-select-multiple",3,"ngModelChange","remove","change","items","ngModel","multiple"],[1,"row","mt-8"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-end"],[1,"border-end","text-end",2,"width","60px"],[4,"ngFor","ngForOf"],[1,"border-end",2,"width","40px"],[1,"border-end",2,"width","100px"],["type","text","placeholder","Serial Quantity","autoNum","",1,"form-control","text-end",3,"ngModelChange","change","ngModel","disabled","decimalPlaces"],[1,"text-center"],["aria-hidden","true","title","Remove serial",1,"fa","fa-xmark","text-danger","cursor-pointer","fa-2x",3,"click"]],template:function(e,n){e&1&&(a(0,"div",3),u(1,de,6,0,"ng-container",4)(2,ge,6,2,"ng-container",4)(3,Ie,14,3,"ng-container",4),l()),e&2&&(m(),c("ngIf",n.disabled),m(),c("ngIf",!n.disabled),m(),c("ngIf",n.selectedSerial.length>0))},dependencies:()=>[H,W,T,G,U,q,ee,re,ae,ie,ne,X,L,j],styles:[".serial-chip[_ngcontent-%COMP%]{width:100%}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:40px!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading{border-color:#ccc!important}.serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.add-chip[_ngcontent-%COMP%]{height:calc(100% - 18.4px);margin-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}"]})},ce=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=R({type:i});static \u0275inj=O({imports:[B,te,T,z,Z,oe,Y]})};export{se as a,ce as b};
@@ -1 +1 @@
1
- import{a as nt}from"./chunk-5VAXIJEW.js";import{c as Je,d as et,e as tt}from"./chunk-M6LI6JL5.js";import{a as pe}from"./chunk-MV3QRRW6.js";import{c as Xe}from"./chunk-CIBQBSM6.js";import{O as it}from"./chunk-IX5URHI7.js";import{B as Ge,F as B,N as We,T as le,X as de,Y as Ze,_ as G,ba as $e,e as ae,k as ce,l as Ye,y as ue,z as g}from"./chunk-567HXZXC.js";import{a as ze}from"./chunk-2RSBMS36.js";import{$ as q,$a as u,$b as qe,Ba as ee,Cc as A,D as N,F as ve,Fa as I,Fc as K,Ga as Q,Ib as c,Jb as l,Ka as H,Kb as M,Kc as re,Lb as V,M as Ie,Ma as Fe,Mb as j,Mc as oe,O as Ce,Ob as w,Pb as ie,Pc as Qe,Q as xe,Qb as h,Rb as p,Rd as Ve,Td as je,Wa as te,Yb as Be,Yc as He,Z as Se,Zc as Le,_ as Te,_b as Ne,aa as Ee,cb as L,d as k,da as m,dc as F,ec as f,fb as Re,fc as R,gc as z,id as Ue,ja as Z,jd as Y,ka as Oe,kb as U,la as S,lb as Pe,mb as b,na as r,oa as $,ob as D,pa as X,pc as C,qa as J,qb as _,qc as ne,rc as se,ua as De,ub as T,v as be,va as E,vb as d,w as Me,wa as O,xb as Ae,za as we,zb as Ke,zc as P}from"./chunk-DZT5XHBQ.js";import{a as x,b as ye}from"./chunk-7DCB7DB2.js";var ot=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],gt=t=>({ID:t}),_t=t=>({OutletID:t});function ft(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function kt(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,ft,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function yt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Display,0,3))}}function bt(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(4);return O(o.onSelectQuickKeyItem(n))}),_(2,kt,4,1,"ng-container",7)(3,yt,5,5,"ng-template",null,2,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Display,0,36))}}function Mt(t,s){if(t&1&&(c(0,"mat-tab",11)(1,"div",12)(2,"div",13),_(3,bt,8,7,"div",14),c(4,"div",15)(5,"a",16),M(6,"i",17),l()()()()()),t&2){let e=s.$implicit,i=p(3);d("label",e.Name),u(3),d("ngForOf",e==null?null:e.Items),u(2),d("routerLink",ne(4,ot))("queryParams",se(5,gt,i.quickKey.ID))}}function vt(t,s){if(t&1){let e=w();c(0,"mat-tab-group",9),h("selectedIndexChange",function(n){E(e);let o=p(2);return O(o.onChangeTab(n))}),_(1,Mt,7,7,"mat-tab",10),l()}if(t&2){let e=p(2);d("disableRipple",!0)("selectedIndex",e.selectedTabIndex),u(),d("ngForOf",e.quickKey==null?null:e.quickKey.Groups)}}function It(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function Ct(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,It,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function xt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Model,0,3))}}function St(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(3);return O(o.onSelectVariant(n.ID))}),_(2,Ct,4,1,"ng-container",7)(3,xt,5,5,"ng-template",null,3,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Model,0,30))}}function Tt(t,s){if(t&1){let e=w();c(0,"div",25)(1,"div",26),h("click",function(){E(e);let n=p(2);return O(n.quickKeyState="QUICKKEY")}),M(2,"i",27),l(),c(3,"div",28)(4,"b"),f(5),l()()(),c(6,"div",12)(7,"div",13),_(8,St,8,7,"div",14),l()()}if(t&2){let e=p(2);u(5),z(" ",e.subQuickKeyPack.Display,""),u(3),d("ngForOf",e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Et(t,s){if(t&1&&(V(0),_(1,vt,2,3,"mat-tab-group",8)(2,Tt,9,2,"ng-template",null,1,K),j()),t&2){let e=F(3),i=p();u(),d("ngIf",i.quickKeyState=="QUICKKEY")("ngIfElse",e)}}function Ot(t,s){if(t&1&&(c(0,"div",29)(1,"a",30)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),l(),M(4,"i",31),c(5,"span"),f(6,"Click here to setup your Quick keys"),l()()()),t&2){let e=p();u(),d("routerLink",ne(2,ot))("queryParams",se(3,_t,e.outletID))}}var st=class t{sf=r(nt);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new I;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[C([{provide:ze,multi:!0,useExisting:t}])],decls:6,vars:2,consts:[["noQuickKey",""],["SUBQUICKEY",""],["BLANK_IMG",""],["BLANK_IMG_SUB",""],[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[4,"ngIf","ngIfElse"],["class","h-100 bgQuickkeyIllustration landscape",3,"disableRipple","selectedIndex","selectedIndexChange",4,"ngIf","ngIfElse"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column px-6",4,"ngFor","ngForOf"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column","px-6"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],["class","full-screen-image",3,"src",4,"ngIf"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],[1,"no-quick-key"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){if(e&1&&(c(0,"div",4)(1,"div",5)(2,"section",6),_(3,Et,4,2,"ng-container",7)(4,Ot,7,5,"ng-template",null,0,K),l()()()),e&2){let n=F(5);u(3),d("ngIf",i.quickKey&&i.quickKey.Groups)("ngIfElse",n)}},dependencies:[Y,He,Le,Ue,je,Ve,it,tt,Je,et],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[C([{provide:pe,useClass:pe}])]})}return t})(),_e=new S("cdk-menu"),v=function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t}(v||{}),y=new S("cdk-menu-stack"),wt={provide:y,deps:[[new X,new J,new $(y)]],useFactory:t=>t||new fe},Ft=t=>({provide:y,deps:[[new X,new J,new $(y)]],useFactory:s=>s||fe.inline(t)}),fe=(()=>{class t{id=r(ue).getId("cdk-menu-stack-");_elements=[];_close=new k;_empty=new k;_hasFocus=new k;closed=this._close;hasFocus=this._hasFocus.pipe(q(!1),Ie(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})(),W=new S("cdk-menu-trigger"),Rt=new S("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=r(G);return()=>t.scrollStrategies.reposition()}}),lt=(()=>{class t{injector=r(ee);viewContainerRef=r(Re);menuStack=r(y);menuScrollStrategy=r(Rt);menuPosition;opened=new I;closed=new I;menuTemplateRef;menuData;overlayRef=null;destroyed=new k;stopOutsideClicksListener=N(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new We(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||ee.create({providers:[{provide:W,useValue:this},{provide:y,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,hostVars:2,hostBindings:function(i,n){i&2&&T("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new S("cdk-menu-aim");function dt(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Pt=(()=>{class t extends lt{_elementRef=r(H);_overlay=r(G);_ngZone=r(Q);_changeDetectorRef=r(re);_inputModalityDetector=r(ce);_directionality=r(B,{optional:!0});_renderer=r(L);_cleanupMouseenter;_parentMenu=r(_e,{optional:!0});_menuAim=r(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||this._overlay.create(this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!g(e)&&!dt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:g(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:g(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:g(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new le({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?de:Ze)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ae(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&h("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&T("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[C([{provide:W,useExisting:t},wt]),D,De]})}return t})(),At=(()=>{class t{_dir=r(B,{optional:!0});_elementRef=r(H);_ngZone=r(Q);_inputModalityDetector=r(ce);_renderer=r(L);_cleanupMouseEnter;_menuAim=r(ke,{optional:!0});_menuStack=r(y);_parentMenu=r(_e,{optional:!0});_menuTrigger=r(Pt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new I;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new k;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!g(e)&&!dt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?v.previousItem:v.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:v.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(i,n){i&1&&h("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(){return n.trigger()})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabindex",n._tabindex),T("aria-disabled",n.disabled||null))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",oe],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ge=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new k;exited=new k;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(q(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Kt=(()=>{class t extends ut{_focusMonitor=r(Ye);ngZone=r(Q);_renderer=r(L);nativeElement=r(H).nativeElement;menuStack=r(y);menuAim=r(ke,{optional:!0,self:!0});dir=r(B,{optional:!0});id=r(ue).getId("cdk-menu-");items;orientation="vertical";isInline=!1;keyManager;destroyed=new k;triggerItem;pointerTracker;_menuStackHasFocus=Fe(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setKeyManager(){this.keyManager=new Ge(this.items).withWrap().withTypeAhead().withHomeAndEnd(),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=N(this.items.changes,this.destroyed);this.items.changes.pipe(q(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ce(n),m(e)))),Me(),Ee(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ge(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=we(t)))(n||t)}})();static \u0275dir=b({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,At,5),i&2){let a;Ne(a=qe())&&(n.items=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&h("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabindex",n._getTabIndex())("id",n.id),T("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[D]})}return t})(),vi=(()=>{class t extends Kt{_parentTrigger=r(W,{optional:!0});closed=new I;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:g(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:g(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:v.currentItem,focusParentTrigger:!0}));break;case 9:g(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case v.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case v.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case v.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&h("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&Ae("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[C([{provide:ut,useExisting:t},{provide:_e,useExisting:t},Ft("vertical")]),D]})}return t})();var Bt=de.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:s,offsetY:e})}),Nt=(()=>{class t{static _openContextMenuTrigger;update(e){t._openContextMenuTrigger!==e&&(t._openContextMenuTrigger?.close(),t._openContextMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ii=(()=>{class t extends lt{_overlay=r(G);_directionality=r(B,{optional:!0});_contextMenuTracker=r(Nt);_changeDetectorRef=r(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._contextMenuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new le({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return this._overlay.position().flexibleConnectedTo(e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Bt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=ve(i,({type:a})=>a==="auxclick");i=N(o.pipe(Te((a,mt)=>e.ctrlKey&&mt===0&&a.ctrlKey)),n.pipe(Se(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ae(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=this._overlay.create(this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&h("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&T("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",oe]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[C([{provide:W,useExisting:t},{provide:y,useClass:fe}]),D]})}return t})();var Ci=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Pe({type:t});static \u0275inj=Oe({imports:[$e]})}return t})();var pt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),M(3,"i",3),l(),c(4,"div",4),f(5),l()()()),e&2&&(u(3),Ke(i.icon),u(2),z(" ",i.label," "))},dependencies:[Y,Xe],encapsulation:2})};export{st as a,At as b,vi as c,Ii as d,Ci as e,pt as f};
1
+ import{a as nt}from"./chunk-5VAXIJEW.js";import{c as Je,d as et,e as tt}from"./chunk-KEU6GUET.js";import{a as pe}from"./chunk-MV3QRRW6.js";import{c as Xe}from"./chunk-CIBQBSM6.js";import{O as it}from"./chunk-IX5URHI7.js";import{B as Ge,F as B,N as We,T as le,X as de,Y as Ze,_ as G,ba as $e,e as ae,k as ce,l as Ye,y as ue,z as g}from"./chunk-567HXZXC.js";import{a as ze}from"./chunk-2RSBMS36.js";import{$ as q,$a as u,$b as qe,Ba as ee,Cc as A,D as N,F as ve,Fa as I,Fc as K,Ga as Q,Ib as c,Jb as l,Ka as H,Kb as M,Kc as re,Lb as V,M as Ie,Ma as Fe,Mb as j,Mc as oe,O as Ce,Ob as w,Pb as ie,Pc as Qe,Q as xe,Qb as h,Rb as p,Rd as Ve,Td as je,Wa as te,Yb as Be,Yc as He,Z as Se,Zc as Le,_ as Te,_b as Ne,aa as Ee,cb as L,d as k,da as m,dc as F,ec as f,fb as Re,fc as R,gc as z,id as Ue,ja as Z,jd as Y,ka as Oe,kb as U,la as S,lb as Pe,mb as b,na as r,oa as $,ob as D,pa as X,pc as C,qa as J,qb as _,qc as ne,rc as se,ua as De,ub as T,v as be,va as E,vb as d,w as Me,wa as O,xb as Ae,za as we,zb as Ke,zc as P}from"./chunk-DZT5XHBQ.js";import{a as x,b as ye}from"./chunk-7DCB7DB2.js";var ot=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],gt=t=>({ID:t}),_t=t=>({OutletID:t});function ft(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function kt(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,ft,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function yt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Display,0,3))}}function bt(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(4);return O(o.onSelectQuickKeyItem(n))}),_(2,kt,4,1,"ng-container",7)(3,yt,5,5,"ng-template",null,2,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Display,0,36))}}function Mt(t,s){if(t&1&&(c(0,"mat-tab",11)(1,"div",12)(2,"div",13),_(3,bt,8,7,"div",14),c(4,"div",15)(5,"a",16),M(6,"i",17),l()()()()()),t&2){let e=s.$implicit,i=p(3);d("label",e.Name),u(3),d("ngForOf",e==null?null:e.Items),u(2),d("routerLink",ne(4,ot))("queryParams",se(5,gt,i.quickKey.ID))}}function vt(t,s){if(t&1){let e=w();c(0,"mat-tab-group",9),h("selectedIndexChange",function(n){E(e);let o=p(2);return O(o.onChangeTab(n))}),_(1,Mt,7,7,"mat-tab",10),l()}if(t&2){let e=p(2);d("disableRipple",!0)("selectedIndex",e.selectedTabIndex),u(),d("ngForOf",e.quickKey==null?null:e.quickKey.Groups)}}function It(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function Ct(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,It,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function xt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Model,0,3))}}function St(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(3);return O(o.onSelectVariant(n.ID))}),_(2,Ct,4,1,"ng-container",7)(3,xt,5,5,"ng-template",null,3,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Model,0,30))}}function Tt(t,s){if(t&1){let e=w();c(0,"div",25)(1,"div",26),h("click",function(){E(e);let n=p(2);return O(n.quickKeyState="QUICKKEY")}),M(2,"i",27),l(),c(3,"div",28)(4,"b"),f(5),l()()(),c(6,"div",12)(7,"div",13),_(8,St,8,7,"div",14),l()()}if(t&2){let e=p(2);u(5),z(" ",e.subQuickKeyPack.Display,""),u(3),d("ngForOf",e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Et(t,s){if(t&1&&(V(0),_(1,vt,2,3,"mat-tab-group",8)(2,Tt,9,2,"ng-template",null,1,K),j()),t&2){let e=F(3),i=p();u(),d("ngIf",i.quickKeyState=="QUICKKEY")("ngIfElse",e)}}function Ot(t,s){if(t&1&&(c(0,"div",29)(1,"a",30)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),l(),M(4,"i",31),c(5,"span"),f(6,"Click here to setup your Quick keys"),l()()()),t&2){let e=p();u(),d("routerLink",ne(2,ot))("queryParams",se(3,_t,e.outletID))}}var st=class t{sf=r(nt);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new I;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[C([{provide:ze,multi:!0,useExisting:t}])],decls:6,vars:2,consts:[["noQuickKey",""],["SUBQUICKEY",""],["BLANK_IMG",""],["BLANK_IMG_SUB",""],[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[4,"ngIf","ngIfElse"],["class","h-100 bgQuickkeyIllustration landscape",3,"disableRipple","selectedIndex","selectedIndexChange",4,"ngIf","ngIfElse"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column px-6",4,"ngFor","ngForOf"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column","px-6"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],["class","full-screen-image",3,"src",4,"ngIf"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],[1,"no-quick-key"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){if(e&1&&(c(0,"div",4)(1,"div",5)(2,"section",6),_(3,Et,4,2,"ng-container",7)(4,Ot,7,5,"ng-template",null,0,K),l()()()),e&2){let n=F(5);u(3),d("ngIf",i.quickKey&&i.quickKey.Groups)("ngIfElse",n)}},dependencies:[Y,He,Le,Ue,je,Ve,it,tt,Je,et],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[C([{provide:pe,useClass:pe}])]})}return t})(),_e=new S("cdk-menu"),v=function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t}(v||{}),y=new S("cdk-menu-stack"),wt={provide:y,deps:[[new X,new J,new $(y)]],useFactory:t=>t||new fe},Ft=t=>({provide:y,deps:[[new X,new J,new $(y)]],useFactory:s=>s||fe.inline(t)}),fe=(()=>{class t{id=r(ue).getId("cdk-menu-stack-");_elements=[];_close=new k;_empty=new k;_hasFocus=new k;closed=this._close;hasFocus=this._hasFocus.pipe(q(!1),Ie(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})(),W=new S("cdk-menu-trigger"),Rt=new S("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=r(G);return()=>t.scrollStrategies.reposition()}}),lt=(()=>{class t{injector=r(ee);viewContainerRef=r(Re);menuStack=r(y);menuScrollStrategy=r(Rt);menuPosition;opened=new I;closed=new I;menuTemplateRef;menuData;overlayRef=null;destroyed=new k;stopOutsideClicksListener=N(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new We(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||ee.create({providers:[{provide:W,useValue:this},{provide:y,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,hostVars:2,hostBindings:function(i,n){i&2&&T("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new S("cdk-menu-aim");function dt(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Pt=(()=>{class t extends lt{_elementRef=r(H);_overlay=r(G);_ngZone=r(Q);_changeDetectorRef=r(re);_inputModalityDetector=r(ce);_directionality=r(B,{optional:!0});_renderer=r(L);_cleanupMouseenter;_parentMenu=r(_e,{optional:!0});_menuAim=r(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||this._overlay.create(this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!g(e)&&!dt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:g(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:g(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:g(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new le({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?de:Ze)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ae(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&h("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&T("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[C([{provide:W,useExisting:t},wt]),D,De]})}return t})(),At=(()=>{class t{_dir=r(B,{optional:!0});_elementRef=r(H);_ngZone=r(Q);_inputModalityDetector=r(ce);_renderer=r(L);_cleanupMouseEnter;_menuAim=r(ke,{optional:!0});_menuStack=r(y);_parentMenu=r(_e,{optional:!0});_menuTrigger=r(Pt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new I;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new k;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!g(e)&&!dt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?v.previousItem:v.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:v.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(i,n){i&1&&h("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(){return n.trigger()})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabindex",n._tabindex),T("aria-disabled",n.disabled||null))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",oe],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ge=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new k;exited=new k;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(q(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Kt=(()=>{class t extends ut{_focusMonitor=r(Ye);ngZone=r(Q);_renderer=r(L);nativeElement=r(H).nativeElement;menuStack=r(y);menuAim=r(ke,{optional:!0,self:!0});dir=r(B,{optional:!0});id=r(ue).getId("cdk-menu-");items;orientation="vertical";isInline=!1;keyManager;destroyed=new k;triggerItem;pointerTracker;_menuStackHasFocus=Fe(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setKeyManager(){this.keyManager=new Ge(this.items).withWrap().withTypeAhead().withHomeAndEnd(),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=N(this.items.changes,this.destroyed);this.items.changes.pipe(q(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ce(n),m(e)))),Me(),Ee(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ge(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=we(t)))(n||t)}})();static \u0275dir=b({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,At,5),i&2){let a;Ne(a=qe())&&(n.items=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&h("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabindex",n._getTabIndex())("id",n.id),T("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[D]})}return t})(),vi=(()=>{class t extends Kt{_parentTrigger=r(W,{optional:!0});closed=new I;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:g(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:g(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:v.currentItem,focusParentTrigger:!0}));break;case 9:g(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case v.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case v.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case v.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&h("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&Ae("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[C([{provide:ut,useExisting:t},{provide:_e,useExisting:t},Ft("vertical")]),D]})}return t})();var Bt=de.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:s,offsetY:e})}),Nt=(()=>{class t{static _openContextMenuTrigger;update(e){t._openContextMenuTrigger!==e&&(t._openContextMenuTrigger?.close(),t._openContextMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ii=(()=>{class t extends lt{_overlay=r(G);_directionality=r(B,{optional:!0});_contextMenuTracker=r(Nt);_changeDetectorRef=r(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._contextMenuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new le({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return this._overlay.position().flexibleConnectedTo(e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Bt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=ve(i,({type:a})=>a==="auxclick");i=N(o.pipe(Te((a,mt)=>e.ctrlKey&&mt===0&&a.ctrlKey)),n.pipe(Se(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ae(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=this._overlay.create(this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&h("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&T("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",oe]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[C([{provide:W,useExisting:t},{provide:y,useClass:fe}]),D]})}return t})();var Ci=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Pe({type:t});static \u0275inj=Oe({imports:[$e]})}return t})();var pt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),M(3,"i",3),l(),c(4,"div",4),f(5),l()()()),e&2&&(u(3),Ke(i.icon),u(2),z(" ",i.label," "))},dependencies:[Y,Xe],encapsulation:2})};export{st as a,At as b,vi as c,Ii as d,Ci as e,pt as f};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-2A2FK5LQ.js";var h=class extends r{constructor(t,i,a,e,n,s,o){super(t,i,a,e,n,s,o);this.httpService=i}toastrCount=0;nextPageDisabled=!1;extendData=!1;goToLast=!1;listTotal;infiniteList;originalData;StoreRowsCountAPIResult(t,i=!1){this.httpService.post("/api/"+t,this.pageData.Filter).subscribe(a=>{this.listTotal=a.Count,this.pageData.HideStoreApiCount=!0,i&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData())})}NextPage(t){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=t,this.getListData()}postInit(t){t?.Data?.length>0&&(this.toastrCount=0),t?.Data?.length===0&&this.toastrCount===0&&(this.toastrService?.info("No more data to load","Info"),this.toastrCount=1);let i=Array.isArray(t.Data?.hits),a=Array.isArray(t.Data?.[0]?.Variants);if(this.extendData){let e=this.infiniteList?.length?this.infiniteList[this.infiniteList.length-1]:null,n=t.Data.find(s=>s.ID===e?.ID);if(a&&e)if(e.ID===n?.ID){let s=t.Data.filter(o=>o.ID!=e?.ID);this.infiniteList[this.infiniteList.length-1].Variants=this.infiniteList[this.infiniteList.length-1].Variants.concat(n.Variants),this.infiniteList=this.infiniteList.concat(s)}else this.infiniteList=this.infiniteList.concat(t.Data);else this.infiniteList=this.infiniteList.concat(i?t.Data.hits:t.Data);this.postExtendData(t),this.extendData=!1}else this.infiniteList=i?t.Data.hits:t.Data,this.assignAggregate(t);this.nextPageDisabled=!((i?t.Data.hits.length:t.Data.length)<this.pageData.Filter.RowCount),this.originalData=[...this.infiniteList],this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(t)}afterPostInit(t){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(t){}assignAggregate(t){}};export{h as a};
1
+ import{a as r}from"./chunk-SF3RHVSN.js";var h=class extends r{constructor(t,i,a,e,n,s,o){super(t,i,a,e,n,s,o);this.httpService=i}toastrCount=0;nextPageDisabled=!1;extendData=!1;goToLast=!1;listTotal;infiniteList;originalData;StoreRowsCountAPIResult(t,i=!1){this.httpService.post("/api/"+t,this.pageData.Filter).subscribe(a=>{this.listTotal=a.Count,this.pageData.HideStoreApiCount=!0,i&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData())})}NextPage(t){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=t,this.getListData()}postInit(t){t?.Data?.length>0&&(this.toastrCount=0),t?.Data?.length===0&&this.toastrCount===0&&(this.toastrService?.info("No more data to load","Info"),this.toastrCount=1);let i=Array.isArray(t.Data?.hits),a=Array.isArray(t.Data?.[0]?.Variants);if(this.extendData){let e=this.infiniteList?.length?this.infiniteList[this.infiniteList.length-1]:null,n=t.Data.find(s=>s.ID===e?.ID);if(a&&e)if(e.ID===n?.ID){let s=t.Data.filter(o=>o.ID!=e?.ID);this.infiniteList[this.infiniteList.length-1].Variants=this.infiniteList[this.infiniteList.length-1].Variants.concat(n.Variants),this.infiniteList=this.infiniteList.concat(s)}else this.infiniteList=this.infiniteList.concat(t.Data);else this.infiniteList=this.infiniteList.concat(i?t.Data.hits:t.Data);this.postExtendData(t),this.extendData=!1}else this.infiniteList=i?t.Data.hits:t.Data,this.assignAggregate(t);this.nextPageDisabled=!((i?t.Data.hits.length:t.Data.length)<this.pageData.Filter.RowCount),this.originalData=[...this.infiniteList],this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(t)}afterPostInit(t){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(t){}assignAggregate(t){}};export{h as a};
@@ -1 +1 @@
1
- import{b as j}from"./chunk-5JZJ4OL3.js";import{a as H}from"./chunk-NOLQHNIQ.js";import{a as A}from"./chunk-WLRXTHLM.js";import{b as F}from"./chunk-YOKPVEGO.js";import{u as V,v as R,w as P}from"./chunk-ONUC6T7C.js";import{e as w,f as T}from"./chunk-D35OBUDE.js";import{$a as d,Fc as y,Ib as c,Jb as u,Lb as g,Ma as U,Mb as v,Ob as f,Qb as _,Rb as m,Vd as x,Yd as O,Zc as E,aa as S,d as h,da as I,db as p,jd as D,kb as M,qb as C,sd as b,va as r,vb as s,wa as l}from"./chunk-DZT5XHBQ.js";function N(i,t){if(i&1){let e=f();g(0),c(1,"POS-uppy",3),_("fileUploaded",function(o){r(e);let a=m(2);return l(a.assignFile(o))}),u(),v()}if(i&2){let e=m(2);d(),s("sampleUrl",e.sampleUrl)}}function $(i,t){if(i&1){let e=f();g(0),c(1,"POS-uppy",3),_("fileUploaded",function(o){r(e);let a=m(2);return l(a.assignFile(o))}),u(),v()}if(i&2){let e=m(2);d(),s("sampleUrl",e.sampleUrl)}}function L(i,t){if(i&1&&C(0,N,2,1,"ng-container",2)(1,$,2,1,"ng-container",2),i&2){let e=m();s("ngIf",e.uploadState()===e.uploadStateEnum.Idle||e.uploadState()===e.uploadStateEnum.Uploading),d(),s("ngIf",e.uploadState()===e.uploadStateEnum.Success||e.uploadState()===e.uploadStateEnum.Error)}}var k=class i{constructor(t,e,n,o,a){this.data=t;this.dialogRef=e;this.toastService=n;this.httpService=o;this.convertCsv=a}useUppy=!1;fileEndpoint="";modalConfig;sampleUrl;apiUploadCsv;outletID;fileInput;destroy$=new h;fileName;loadingVal$;uploadState=U(0);uploadStateEnum=A;timeoutID;ngOnInit(){this.initModalConfig(),this.initUpload()}initModalConfig(){this.modalConfig=new V,this.modalConfig.title="Import Items",this.modalConfig.customWidth=this.data.useUppy?"610px":"484px"}initUpload(){this.data&&(this.sampleUrl=this.data.sampleUrl,this.apiUploadCsv=this.data.API,this.outletID=this.data.outletID,this.useUppy=this.data.useUppy,this.fileEndpoint=this.data.fileEndpoint)}onOk(){if(this.fileInput)if(!this.useUppy)this.convertCsv.convert(this.fileInput).pipe(I(this.destroy$),S(t=>this.httpService.post(this.apiUploadCsv,this.outletID?{EntityID:this.outletID,CartItems:t}:t))).subscribe(t=>{this.dialogRef.close(t)});else{let t=new FormData;t.append("File",this.fileInput),t.append("EntityID",this.outletID),this.httpService.postFormData(this.fileEndpoint,t).subscribe({next:e=>{e&&(this.uploadState.set(2),this.dialogRef.close(e))},error:e=>{e instanceof b&&(console.error("error",e.error.Message),this.uploadState.set(3),this.timeoutID=setTimeout(()=>{this.uploadState.set(0)},100))}})}else this.uploadState.set(0),this.toastService.warning("Please drop a CSV file.","Warning")}onClose(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.timeoutID&&clearTimeout(this.timeoutID)}assignFile(t){this.uploadState.set(1),this.fileInput=t}static \u0275fac=function(e){return new(e||i)(p(T),p(w),p(x),p(O),p(H))};static \u0275cmp=M({type:i,selectors:[["POS-modal-upload"]],decls:3,vars:1,consts:[["modalContent",""],[3,"onOk","onCancel","onClose","config"],[4,"ngIf"],[3,"fileUploaded","sampleUrl"]],template:function(e,n){if(e&1){let o=f();c(0,"modal-material",1),_("onOk",function(){return r(o),l(n.onOk())})("onCancel",function(){return r(o),l(n.onClose())})("onClose",function(){return r(o),l(n.onClose())}),C(1,L,2,2,"ng-template",null,0,y),u()}e&2&&s("config",n.modalConfig)},dependencies:[D,E,P,R,j,F],encapsulation:2})};export{k as a};
1
+ import{b as j}from"./chunk-5JZJ4OL3.js";import{a as H}from"./chunk-NOLQHNIQ.js";import{a as A}from"./chunk-WLRXTHLM.js";import{b as F}from"./chunk-YOKPVEGO.js";import{u as V,v as R,w as P}from"./chunk-FY5VLGQC.js";import{e as w,f as T}from"./chunk-ZZ7LHETD.js";import{$a as d,Fc as y,Ib as c,Jb as u,Lb as g,Ma as U,Mb as v,Ob as f,Qb as _,Rb as m,Vd as x,Yd as O,Zc as E,aa as S,d as h,da as I,db as p,jd as D,kb as M,qb as C,sd as b,va as r,vb as s,wa as l}from"./chunk-DZT5XHBQ.js";function N(i,t){if(i&1){let e=f();g(0),c(1,"POS-uppy",3),_("fileUploaded",function(o){r(e);let a=m(2);return l(a.assignFile(o))}),u(),v()}if(i&2){let e=m(2);d(),s("sampleUrl",e.sampleUrl)}}function $(i,t){if(i&1){let e=f();g(0),c(1,"POS-uppy",3),_("fileUploaded",function(o){r(e);let a=m(2);return l(a.assignFile(o))}),u(),v()}if(i&2){let e=m(2);d(),s("sampleUrl",e.sampleUrl)}}function L(i,t){if(i&1&&C(0,N,2,1,"ng-container",2)(1,$,2,1,"ng-container",2),i&2){let e=m();s("ngIf",e.uploadState()===e.uploadStateEnum.Idle||e.uploadState()===e.uploadStateEnum.Uploading),d(),s("ngIf",e.uploadState()===e.uploadStateEnum.Success||e.uploadState()===e.uploadStateEnum.Error)}}var k=class i{constructor(t,e,n,o,a){this.data=t;this.dialogRef=e;this.toastService=n;this.httpService=o;this.convertCsv=a}useUppy=!1;fileEndpoint="";modalConfig;sampleUrl;apiUploadCsv;outletID;fileInput;destroy$=new h;fileName;loadingVal$;uploadState=U(0);uploadStateEnum=A;timeoutID;ngOnInit(){this.initModalConfig(),this.initUpload()}initModalConfig(){this.modalConfig=new V,this.modalConfig.title="Import Items",this.modalConfig.customWidth=this.data.useUppy?"610px":"484px"}initUpload(){this.data&&(this.sampleUrl=this.data.sampleUrl,this.apiUploadCsv=this.data.API,this.outletID=this.data.outletID,this.useUppy=this.data.useUppy,this.fileEndpoint=this.data.fileEndpoint)}onOk(){if(this.fileInput)if(!this.useUppy)this.convertCsv.convert(this.fileInput).pipe(I(this.destroy$),S(t=>this.httpService.post(this.apiUploadCsv,this.outletID?{EntityID:this.outletID,CartItems:t}:t))).subscribe(t=>{this.dialogRef.close(t)});else{let t=new FormData;t.append("File",this.fileInput),t.append("EntityID",this.outletID),this.httpService.postFormData(this.fileEndpoint,t).subscribe({next:e=>{e&&(this.uploadState.set(2),this.dialogRef.close(e))},error:e=>{e instanceof b&&(console.error("error",e.error.Message),this.uploadState.set(3),this.timeoutID=setTimeout(()=>{this.uploadState.set(0)},100))}})}else this.uploadState.set(0),this.toastService.warning("Please drop a CSV file.","Warning")}onClose(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.timeoutID&&clearTimeout(this.timeoutID)}assignFile(t){this.uploadState.set(1),this.fileInput=t}static \u0275fac=function(e){return new(e||i)(p(T),p(w),p(x),p(O),p(H))};static \u0275cmp=M({type:i,selectors:[["POS-modal-upload"]],decls:3,vars:1,consts:[["modalContent",""],[3,"onOk","onCancel","onClose","config"],[4,"ngIf"],[3,"fileUploaded","sampleUrl"]],template:function(e,n){if(e&1){let o=f();c(0,"modal-material",1),_("onOk",function(){return r(o),l(n.onOk())})("onCancel",function(){return r(o),l(n.onClose())})("onClose",function(){return r(o),l(n.onClose())}),C(1,L,2,2,"ng-template",null,0,y),u()}e&2&&s("config",n.modalConfig)},dependencies:[D,E,P,R,j,F],encapsulation:2})};export{k as a};