dealpos 25.35.1 → 25.35.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 (136) hide show
  1. package/browser/{chunk-4XFWA7EK.js → chunk-22OO6V42.js} +1 -1
  2. package/browser/chunk-2BRCOLHG.js +1 -0
  3. package/browser/{chunk-ANESQVY4.js → chunk-2ULGMZHE.js} +1 -1
  4. package/browser/{chunk-3GFJDGM7.js → chunk-33JZH2UR.js} +1 -1
  5. package/browser/{chunk-RTW7YEDM.js → chunk-37ZQRASR.js} +1 -1
  6. package/browser/{chunk-M7DLH62Y.js → chunk-3GB5DSK3.js} +1 -1
  7. package/browser/{chunk-CLHWSB6Y.js → chunk-3USDNSPA.js} +1 -1
  8. package/browser/{chunk-C7JM4PAG.js → chunk-3VKLFFAF.js} +1 -1
  9. package/browser/{chunk-IPT2M2BI.js → chunk-45Q3TR52.js} +1 -1
  10. package/browser/chunk-47MDCKEY.js +1 -0
  11. package/browser/{chunk-HLM7W5YP.js → chunk-4BQ6OFGZ.js} +1 -1
  12. package/browser/{chunk-QNRJHTV4.js → chunk-4DIUJNZF.js} +2 -2
  13. package/browser/{chunk-OP7PZ5VN.js → chunk-4L4E5MG3.js} +1 -1
  14. package/browser/{chunk-MTTYVYZR.js → chunk-4YAMWP7V.js} +1 -1
  15. package/browser/{chunk-SUQPLO6J.js → chunk-4YPJAUSY.js} +1 -1
  16. package/browser/{chunk-G7L27PFY.js → chunk-5IG3NZVF.js} +1 -1
  17. package/browser/{chunk-3ZDDH7CJ.js → chunk-5IY3H7NG.js} +1 -1
  18. package/browser/{chunk-DZR4HR3V.js → chunk-5MGHIIE6.js} +3 -3
  19. package/browser/{chunk-2LURESKM.js → chunk-5VFKAJV6.js} +1 -1
  20. package/browser/{chunk-4JJZP56N.js → chunk-66WXWMUG.js} +1 -1
  21. package/browser/{chunk-LPQODANI.js → chunk-677WPFLK.js} +1 -1
  22. package/browser/{chunk-KXXXUEET.js → chunk-6CUC5ZVY.js} +1 -1
  23. package/browser/{chunk-BIA32MUQ.js → chunk-6E4UKP3I.js} +3 -3
  24. package/browser/{chunk-CMLHFJBB.js → chunk-6V2AFFCL.js} +1 -1
  25. package/browser/{chunk-6BK25JQ2.js → chunk-73ESQDPI.js} +1 -1
  26. package/browser/{chunk-Y4TUJFQT.js → chunk-7B7ON5E6.js} +1 -1
  27. package/browser/{chunk-PL3QR7IJ.js → chunk-7HI7DCIJ.js} +1 -1
  28. package/browser/chunk-7NMXZ55P.js +56 -0
  29. package/browser/{chunk-IPEY3FYO.js → chunk-7VKHUEU6.js} +1 -1
  30. package/browser/{chunk-4MY4AG7R.js → chunk-A477JKU4.js} +1 -1
  31. package/browser/{chunk-AFM7PYUZ.js → chunk-AVWEAAID.js} +1 -1
  32. package/browser/{chunk-IJQPLU7Y.js → chunk-AW3VIYPK.js} +1 -1
  33. package/browser/{chunk-GVVAZDAH.js → chunk-AYEQLVMX.js} +1 -1
  34. package/browser/{chunk-5W7J67BI.js → chunk-BBRBME3A.js} +1 -1
  35. package/browser/{chunk-4D6GJ33W.js → chunk-BMNZHUI6.js} +1 -1
  36. package/browser/{chunk-UABTP3I3.js → chunk-CGTCYQPU.js} +1 -1
  37. package/browser/{chunk-HMYXRXMU.js → chunk-CNY7II6H.js} +1 -1
  38. package/browser/{chunk-7OHS7GGR.js → chunk-CZTNOFUC.js} +1 -1
  39. package/browser/{chunk-LOSWTT66.js → chunk-DXROSW6B.js} +1 -1
  40. package/browser/{chunk-A2UILJ3G.js → chunk-E5UK2WMM.js} +1 -1
  41. package/browser/{chunk-NU2RYCZP.js → chunk-ETHIPTBJ.js} +1 -1
  42. package/browser/{chunk-UGSSRWE7.js → chunk-EXCJNRRJ.js} +1 -1
  43. package/browser/{chunk-43V3SW6V.js → chunk-F3ZJVCRK.js} +1 -1
  44. package/browser/{chunk-ORQNNEMX.js → chunk-FBTUV7TY.js} +1 -1
  45. package/browser/{chunk-AVT77M2O.js → chunk-FIS6Q5OG.js} +1 -1
  46. package/browser/{chunk-CURU3EKI.js → chunk-FLCMFLQ7.js} +1 -1
  47. package/browser/{chunk-E6WAWCVM.js → chunk-FOVCORMR.js} +1 -1
  48. package/browser/{chunk-U7EUKGWA.js → chunk-FWDPAH4G.js} +1 -1
  49. package/browser/{chunk-ZV673CNQ.js → chunk-FY4JABYL.js} +1 -1
  50. package/browser/{chunk-AVAYKWYL.js → chunk-GE53XQ2Q.js} +1 -1
  51. package/browser/{chunk-WLWH7QQ2.js → chunk-GEWY5VWO.js} +1 -1
  52. package/browser/{chunk-YXO5HYS3.js → chunk-GFDEHNOL.js} +1 -1
  53. package/browser/{chunk-BFYXXJX5.js → chunk-GFFJDDRS.js} +1 -1
  54. package/browser/{chunk-34QCNJH3.js → chunk-GK45LVUY.js} +1 -1
  55. package/browser/{chunk-DZ2WZ4PS.js → chunk-GOQ3ZCDK.js} +1 -1
  56. package/browser/{chunk-OH7LXBVM.js → chunk-HNBLWEAJ.js} +1 -1
  57. package/browser/{chunk-HC43XRYO.js → chunk-HV7GI3KE.js} +1 -1
  58. package/browser/chunk-INDKSR3O.js +3 -0
  59. package/browser/{chunk-TDF4PRYA.js → chunk-IUXGZNAZ.js} +1 -1
  60. package/browser/{chunk-XOH52E2X.js → chunk-J4SLL7XI.js} +1 -1
  61. package/browser/{chunk-V4NC35JB.js → chunk-JFAIF63Q.js} +1 -1
  62. package/browser/{chunk-JSKQCGK6.js → chunk-K6OQJCJ6.js} +1 -1
  63. package/browser/{chunk-2766CBQU.js → chunk-K76G23WC.js} +1 -1
  64. package/browser/{chunk-YNYOCDRR.js → chunk-KVPIGIZJ.js} +1 -1
  65. package/browser/{chunk-2454AQDI.js → chunk-L2RZWAX3.js} +1 -1
  66. package/browser/{chunk-ABFSF4MS.js → chunk-L755Z2UU.js} +1 -1
  67. package/browser/{chunk-Q72OT36E.js → chunk-LFRQUM6J.js} +1 -1
  68. package/browser/{chunk-YYJNV6JB.js → chunk-LG5UTNBU.js} +1 -1
  69. package/browser/{chunk-P2KAE5YM.js → chunk-LHGABVF6.js} +6 -6
  70. package/browser/chunk-LI3MYO4W.js +1 -0
  71. package/browser/{chunk-DTIWIZAF.js → chunk-LKZE2HD4.js} +1 -1
  72. package/browser/{chunk-QND5TRRL.js → chunk-LXZS75G2.js} +1 -1
  73. package/browser/{chunk-X64V2BD6.js → chunk-LYGTJSME.js} +1 -1
  74. package/browser/{chunk-ZHO5KMQM.js → chunk-LYOMQKFY.js} +1 -1
  75. package/browser/{chunk-7LVND3SO.js → chunk-M2DBAY4P.js} +1 -1
  76. package/browser/{chunk-SY6SLHJE.js → chunk-M4GPXLRN.js} +1 -1
  77. package/browser/{chunk-5WVV2KSZ.js → chunk-M6C7J4PM.js} +1 -1
  78. package/browser/{chunk-7S2SHB7E.js → chunk-M7KP6PSY.js} +1 -1
  79. package/browser/{chunk-HEQZDBHW.js → chunk-MDXFAEYC.js} +1 -1
  80. package/browser/{chunk-SJAXFGTZ.js → chunk-NI6KAEXM.js} +1 -1
  81. package/browser/{chunk-3O4GNGWN.js → chunk-NPHAQCON.js} +1 -1
  82. package/browser/{chunk-6BQ5KQE5.js → chunk-NT4HXAUQ.js} +1 -1
  83. package/browser/chunk-O7H6QE5A.js +1 -0
  84. package/browser/{chunk-KOCUT2HX.js → chunk-OBH4MNSM.js} +1 -1
  85. package/browser/{chunk-E53GH46E.js → chunk-OZOAAIBM.js} +1 -1
  86. package/browser/{chunk-IJB4UV6O.js → chunk-P5KSSZK7.js} +1 -1
  87. package/browser/{chunk-OTWLEF6F.js → chunk-PDHJSRKI.js} +1 -1
  88. package/browser/{chunk-O2PQYOQB.js → chunk-Q5AWNSSD.js} +1 -1
  89. package/browser/{chunk-PEJQ3PAR.js → chunk-Q5YFG526.js} +1 -1
  90. package/browser/{chunk-GX2FRFKJ.js → chunk-Q76KX5JJ.js} +1 -1
  91. package/browser/{chunk-DDTETSNL.js → chunk-QLFKPTZA.js} +1 -1
  92. package/browser/{chunk-FATMOWTQ.js → chunk-QMPKHU2W.js} +1 -1
  93. package/browser/{chunk-FZ6OXVRF.js → chunk-R3IC3THI.js} +1 -1
  94. package/browser/{chunk-UFP57RZZ.js → chunk-R5W6OHJL.js} +1 -1
  95. package/browser/{chunk-Y7HFAPAX.js → chunk-RXY2UMNO.js} +1 -1
  96. package/browser/{chunk-57JQC2LG.js → chunk-SJIEANJU.js} +1 -1
  97. package/browser/{chunk-B4MIOMFY.js → chunk-SO3WWYN3.js} +1 -1
  98. package/browser/chunk-SVW3DCFV.js +3 -0
  99. package/browser/{chunk-2SKWRTTM.js → chunk-SZKR6UME.js} +1 -1
  100. package/browser/{chunk-FXF3CZHR.js → chunk-U7VNF37P.js} +1 -1
  101. package/browser/{chunk-O7PVACKM.js → chunk-UBWK4RWH.js} +1 -1
  102. package/browser/chunk-UZKYLAUE.js +1 -0
  103. package/browser/{chunk-TLB32ZLG.js → chunk-V4OYKDE2.js} +4 -4
  104. package/browser/{chunk-3XSCHJBQ.js → chunk-VDKUDQZO.js} +1 -1
  105. package/browser/{chunk-T3UD2BIM.js → chunk-VJWRLXE4.js} +1 -1
  106. package/browser/{chunk-7YRDPDDJ.js → chunk-VMIXOKE7.js} +1 -1
  107. package/browser/{chunk-PYE7OONS.js → chunk-W64M5WBH.js} +1 -1
  108. package/browser/{chunk-53T5DMNY.js → chunk-WDIJOVDQ.js} +1 -1
  109. package/browser/{chunk-PJ3GC36H.js → chunk-WDS6MTSX.js} +2 -2
  110. package/browser/{chunk-GNWZZTUM.js → chunk-WOBW4V44.js} +1 -1
  111. package/browser/{chunk-P6Q27V2V.js → chunk-WQRN2UCW.js} +1 -1
  112. package/browser/{chunk-AE2H6ZIP.js → chunk-WZEGUTUH.js} +1 -1
  113. package/browser/{chunk-2FSZUUQP.js → chunk-X4VB4DKS.js} +1 -1
  114. package/browser/chunk-XGQGO4PE.js +1 -0
  115. package/browser/{chunk-QN43EVQB.js → chunk-XP2OIGWH.js} +1 -1
  116. package/browser/{chunk-65FW3CDB.js → chunk-XVFIUKXR.js} +1 -1
  117. package/browser/{chunk-RWHZGR5I.js → chunk-XXGDZ22Y.js} +1 -1
  118. package/browser/{chunk-RGIQPHTM.js → chunk-XY7FDLSK.js} +1 -1
  119. package/browser/{chunk-P5XJTUWS.js → chunk-YQCR57JN.js} +1 -1
  120. package/browser/{chunk-X3556GFF.js → chunk-YWF2JYRN.js} +1 -1
  121. package/browser/{chunk-M3GDT4VK.js → chunk-Z7WYC46Q.js} +1 -1
  122. package/browser/{chunk-3DFVMZGU.js → chunk-ZCKT34V7.js} +1 -1
  123. package/browser/{chunk-FU4B6BUR.js → chunk-ZR4YNJBZ.js} +1 -1
  124. package/browser/{chunk-E4IRTOK5.js → chunk-ZWEHXDXR.js} +1 -1
  125. package/browser/{chunk-JPZQ6WUN.js → chunk-ZYTLUHOS.js} +1 -1
  126. package/browser/index.html +2 -2
  127. package/browser/{main-7OQ7F5EZ.js → main-WYOICQDK.js} +2 -2
  128. package/package.json +1 -1
  129. package/browser/chunk-6HI5Q42V.js +0 -1
  130. package/browser/chunk-7SNT6DIY.js +0 -56
  131. package/browser/chunk-AM4K7VSL.js +0 -1
  132. package/browser/chunk-G6YDN74M.js +0 -3
  133. package/browser/chunk-HX4MQJ5S.js +0 -1
  134. package/browser/chunk-JADCHWZ7.js +0 -1
  135. package/browser/chunk-O7SLYO56.js +0 -3
  136. package/browser/chunk-SBVMIOJI.js +0 -1
@@ -1 +1 @@
1
- import{a as nt}from"./chunk-5VAXIJEW.js";import{c as Je,d as et,e as tt}from"./chunk-RGIQPHTM.js";import{a as pe}from"./chunk-MV3QRRW6.js";import{c as Xe}from"./chunk-CIBQBSM6.js";import{O as it}from"./chunk-2454AQDI.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-P7HKWFZT.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-XY7FDLSK.js";import{a as pe}from"./chunk-MV3QRRW6.js";import{c as Xe}from"./chunk-CIBQBSM6.js";import{O as it}from"./chunk-L2RZWAX3.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-P7HKWFZT.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 O}from"./chunk-M3GDT4VK.js";import{h as Q,i as z}from"./chunk-B4MIOMFY.js";import"./chunk-NU2RYCZP.js";import{b as H}from"./chunk-7S2SHB7E.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import"./chunk-LPQODANI.js";import{b as j,c as q}from"./chunk-CIBQBSM6.js";import"./chunk-2454AQDI.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import{a as S}from"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import{D as B,c as k,h as F,o as L}from"./chunk-P7HKWFZT.js";import"./chunk-HC43XRYO.js";import"./chunk-ZHO5KMQM.js";import"./chunk-AHCRE4GP.js";import"./chunk-MTTYVYZR.js";import{$a as s,$b as b,Ib as n,Jb as o,Ma as _,Ob as w,Od as P,Qb as v,Rb as l,Vd as V,Wc as R,Yd as N,Zb as y,Zc as A,_b as D,db as g,dc as M,ec as r,jc as u,jd as E,kb as T,kc as h,lc as f,ob as W,qb as C,rc as I,va as m,vb as d,wa as c}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,x){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,x){if(p&1&&(n(0,"div",25),C(1,J,2,0,"small",26),o()),p&2){let t=l(2);s(),d("ngIf",t.textReceiptInvalidState())}}function X(p,x){if(p&1){let t=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"button",3),v("click",function(){m(t);let e=l();return c(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"input",11),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),c(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",9)(20,"div",12)(21,"input",13),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),c(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",8)(25,"div",9)(26,"div",14)(27,"input",15),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),c(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",9)(31,"div",16)(32,"input",17),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),c(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",5)(36,"div",6)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",18),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",7)(45,"div",8)(46,"div",19)(47,"div",20)(48,"textarea",21,0),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),c(e)}),v("ngModelChange",function(){m(t);let e=l();return c(e.onTextReceiptChange())}),o(),n(50,"label",22),r(51,"Customize E-Receipt Template"),o(),n(52,"div",23),C(53,K,2,1,"div",24),o()()()()()()()()()}if(p&2){let t=M(49),i=l();d("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),d("disabled",i.textReceiptInvalidState()),s(14),u("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),u("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),u("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),u("ngModel",i.formData.WhatsappConfig.From),s(16),u("ngModel",i.formData.WhatsappConfig.TextReceipt),d("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),d("ngIf",(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,S.Warning):this.toaster.success("Config has been updated succesfully!",S.Success)}static \u0275fac=function(i){return new(i||p)(g(H),g(N),g(P),g(V))};static \u0275cmp=T({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&y(Y,5),i&2){let a;D(a=b())&&(e.textReceiptCtrl=a.first)}},features:[W],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){i&1&&C(0,X,54,13,"mainpanel-cmp",1),i&2&&d("ngIf",e.formData)},dependencies:[E,R,A,z,Q,B,k,F,L,q,j],encapsulation:2})};export{U as WhatsappComponent};
1
+ import{a as O}from"./chunk-Z7WYC46Q.js";import{h as Q,i as z}from"./chunk-SO3WWYN3.js";import"./chunk-ETHIPTBJ.js";import{b as H}from"./chunk-M7KP6PSY.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import"./chunk-677WPFLK.js";import{b as j,c as q}from"./chunk-CIBQBSM6.js";import"./chunk-L2RZWAX3.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import{a as S}from"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import{D as B,c as k,h as F,o as L}from"./chunk-P7HKWFZT.js";import"./chunk-HV7GI3KE.js";import"./chunk-LYOMQKFY.js";import"./chunk-AHCRE4GP.js";import"./chunk-4YAMWP7V.js";import{$a as s,$b as b,Ib as n,Jb as o,Ma as _,Ob as w,Od as P,Qb as v,Rb as l,Vd as V,Wc as R,Yd as N,Zb as y,Zc as A,_b as D,db as g,dc as M,ec as r,jc as u,jd as E,kb as T,kc as h,lc as f,ob as W,qb as C,rc as I,va as m,vb as d,wa as c}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,x){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,x){if(p&1&&(n(0,"div",25),C(1,J,2,0,"small",26),o()),p&2){let t=l(2);s(),d("ngIf",t.textReceiptInvalidState())}}function X(p,x){if(p&1){let t=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"button",3),v("click",function(){m(t);let e=l();return c(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"input",11),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),c(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",9)(20,"div",12)(21,"input",13),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),c(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",8)(25,"div",9)(26,"div",14)(27,"input",15),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),c(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",9)(31,"div",16)(32,"input",17),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),c(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",5)(36,"div",6)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",18),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",7)(45,"div",8)(46,"div",19)(47,"div",20)(48,"textarea",21,0),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),c(e)}),v("ngModelChange",function(){m(t);let e=l();return c(e.onTextReceiptChange())}),o(),n(50,"label",22),r(51,"Customize E-Receipt Template"),o(),n(52,"div",23),C(53,K,2,1,"div",24),o()()()()()()()()()}if(p&2){let t=M(49),i=l();d("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),d("disabled",i.textReceiptInvalidState()),s(14),u("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),u("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),u("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),u("ngModel",i.formData.WhatsappConfig.From),s(16),u("ngModel",i.formData.WhatsappConfig.TextReceipt),d("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),d("ngIf",(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,S.Warning):this.toaster.success("Config has been updated succesfully!",S.Success)}static \u0275fac=function(i){return new(i||p)(g(H),g(N),g(P),g(V))};static \u0275cmp=T({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&y(Y,5),i&2){let a;D(a=b())&&(e.textReceiptCtrl=a.first)}},features:[W],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){i&1&&C(0,X,54,13,"mainpanel-cmp",1),i&2&&d("ngIf",e.formData)},dependencies:[E,R,A,z,Q,B,k,F,L,q,j],encapsulation:2})};export{U as WhatsappComponent};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-EXCJNRRJ.js";import"./chunk-VJWRLXE4.js";import"./chunk-KUUYZ5UQ.js";import"./chunk-7B7ON5E6.js";import"./chunk-B7E3DL2Y.js";import"./chunk-H6BFHXJX.js";import"./chunk-VYUMNVGD.js";import"./chunk-3J6SPHP2.js";import"./chunk-XVFIUKXR.js";import"./chunk-AVWEAAID.js";import"./chunk-LXZS75G2.js";import"./chunk-2ULGMZHE.js";import"./chunk-IQO7F652.js";import"./chunk-YQCR57JN.js";import"./chunk-MHBOKOSN.js";import"./chunk-S6TMUVGC.js";import"./chunk-PPWHSAY6.js";import"./chunk-FD5YMPRL.js";import"./chunk-MV3QRRW6.js";import"./chunk-6ZOGADBZ.js";import"./chunk-7ENHJR7R.js";import"./chunk-3AY3BZNI.js";import"./chunk-SO3WWYN3.js";import"./chunk-ETHIPTBJ.js";import"./chunk-M7KP6PSY.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import"./chunk-L2RZWAX3.js";import"./chunk-ZT4RBJMM.js";import"./chunk-GIKR6Y2K.js";import"./chunk-VMY3JQDA.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-WEJYVCCX.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import"./chunk-P7HKWFZT.js";import"./chunk-HV7GI3KE.js";import"./chunk-LYOMQKFY.js";import"./chunk-AHCRE4GP.js";import"./chunk-4YAMWP7V.js";import"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";export{a as CompositeInventoryComponent};
@@ -1,2 +1,2 @@
1
- import{a as Ve}from"./chunk-L2EDFSBR.js";import{a as De,b as Ie}from"./chunk-JKYTSC2D.js";import{a as we}from"./chunk-FD5YMPRL.js";import{k as ke,l as xe,o as Te,p as Ae,q as Ee,r as Re,s as Fe,t as Y}from"./chunk-LPQODANI.js";import{$ as q,A as ve,C as be,D as G,F as Ce,J as Oe,K as Me,_ as z,aa as H,ba as Se,ea as Q,w as ge,y as ye,z as I}from"./chunk-567HXZXC.js";import{e as me,g as ue,k as _e,t as fe}from"./chunk-P7HKWFZT.js";import{$ as E,$a as h,$b as u,Ab as le,Ca as ee,D as O,Db as L,E as A,Fa as S,Ib as o,Jb as p,Ka as te,Kb as se,Kc as he,Mc as c,N as U,Nc as B,Ob as P,Qa as ie,Qb as b,Rb as v,Sb as oe,Tb as W,Wc as pe,Yb as x,Zb as D,_b as m,aa as R,cb as ae,d as C,da as f,dc as ce,ec as N,fc as K,ka as $,kb as re,la as M,lb as ne,na as l,pc as de,qb as w,t as T,ua as J,ub as k,va as g,vb as F,wa as y,xa as Z,xb as V,y as X}from"./chunk-DZT5XHBQ.js";var He=["trigger"],Qe=["panel"],Ye=[[["mat-select-trigger"]],"*"],je=["mat-select-trigger","*"];function Xe(r,_){if(r&1&&(o(0,"span",4),N(1),p()),r&2){let e=v();h(),K(e.placeholder)}}function Ue(r,_){r&1&&W(0)}function $e(r,_){if(r&1&&(o(0,"span",11),N(1),p()),r&2){let e=v(2);h(),K(e.triggerValue)}}function Je(r,_){if(r&1&&(o(0,"span",5),w(1,Ue,1,0)(2,$e,2,1,"span",11),p()),r&2){let e=v();h(),L(e.customTrigger?1:2)}}function Ze(r,_){if(r&1){let e=P();o(0,"div",12,1),b("keydown",function(i){g(e);let a=v();return y(a._handleKeydown(i))}),W(2,1),p()}if(r&2){let e=v();le("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),V("mat-select-panel-animations-enabled",!e._animationsDisabled),F("ngClass",e.panelClass),k("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Ke=new M("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=l(z);return()=>r.scrollStrategies.reposition()}});function et(r){return()=>r.scrollStrategies.reposition()}var tt=new M("MAT_SELECT_CONFIG"),it={provide:Ke,deps:[z],useFactory:et},at=new M("MatSelectTrigger"),j=class{source;value;constructor(_,e){this.source=_,this.value=e}},Ft=(()=>{class r{_viewportRuler=l(Oe);_changeDetectorRef=l(he);_elementRef=l(te);_dir=l(Ce,{optional:!0});_idGenerator=l(ye);_renderer=l(ae);_parentFormField=l(xe,{optional:!0});ngControl=l(ue,{self:!0,optional:!0});_liveAnnouncer=l(ge);_defaultOptions=l(tt,{optional:!0});_animationsDisabled=l(ie,{optional:!0})==="NoopAnimations";_initialized=new C;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Re(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Fe(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new j(this,e)}_scrollStrategyFactory=l(Ke);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(me.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=X(()=>{let e=this.options;return e?e.changes.pipe(E(e),R(()=>O(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(R(()=>this.optionSelectionChanges))});openedChange=new S;_openedStream=this.openedChange.pipe(A(e=>e),T(()=>{}));_closedStream=this.openedChange.pipe(A(e=>!e),T(()=>{}));selectionChange=new S;valueChange=new S;constructor(){let e=l(De),t=l(_e,{optional:!0}),i=l(fe,{optional:!0}),a=l(new ee("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Ie(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new we(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(f(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(f(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(E(null),f(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(U(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&G(this._trackedModal,"aria-owns",t),be(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;G(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!I(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let d=this.selected;n.onKeydown(e);let s=this.selected;s&&d!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!I(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let d=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(d?s.select():s.deselect())})}else{let d=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==d&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!I(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return(i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof q?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new ve(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=O(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(f(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),O(...this.options.map(t=>t._stateChanges)).pipe(f(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=re({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(x(a,at,5),x(a,Ee,5),x(a,Ae,5)),t&2){let n;m(n=u())&&(i.customTrigger=n.first),m(n=u())&&(i.options=n),m(n=u())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(D(He,5),D(Qe,5),D(H,5)),t&2){let a;m(a=u())&&(i.trigger=a.first),m(a=u())&&(i.panel=a.first),m(a=u())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&b("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(k("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),V("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",c],disableRipple:[2,"disableRipple","disableRipple",c],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:B(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c],placeholder:"placeholder",required:[2,"required","required",c],multiple:[2,"multiple","multiple",c],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",c],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",B],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",c]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[de([{provide:ke,useExisting:r},{provide:Te,useExisting:r}]),J],ngContentSelectors:je,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=P();oe(Ye),o(0,"div",2,0),b("click",function(){return g(a),y(i.open())}),o(3,"div",3),w(4,Xe,2,1,"span",4)(5,Je,3,1,"span",5),p(),o(6,"div",6)(7,"div",7),Z(),o(8,"svg",8),se(9,"path",9),p()()()(),w(10,Ze,3,10,"ng-template",10),b("detach",function(){return g(a),y(i.close())})("backdropClick",function(){return g(a),y(i.close())})("overlayKeydown",function(d){return g(a),y(i._handleOverlayKeydown(d))})}if(t&2){let a=ce(1);h(3),k("id",i._valueId),h(),L(i.empty?4:5),h(6),F("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[q,H,pe],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
1
+ import{a as Ve}from"./chunk-L2EDFSBR.js";import{a as De,b as Ie}from"./chunk-JKYTSC2D.js";import{a as we}from"./chunk-FD5YMPRL.js";import{k as ke,l as xe,o as Te,p as Ae,q as Ee,r as Re,s as Fe,t as Y}from"./chunk-677WPFLK.js";import{$ as q,A as ve,C as be,D as G,F as Ce,J as Oe,K as Me,_ as z,aa as H,ba as Se,ea as Q,w as ge,y as ye,z as I}from"./chunk-567HXZXC.js";import{e as me,g as ue,k as _e,t as fe}from"./chunk-P7HKWFZT.js";import{$ as E,$a as h,$b as u,Ab as le,Ca as ee,D as O,Db as L,E as A,Fa as S,Ib as o,Jb as p,Ka as te,Kb as se,Kc as he,Mc as c,N as U,Nc as B,Ob as P,Qa as ie,Qb as b,Rb as v,Sb as oe,Tb as W,Wc as pe,Yb as x,Zb as D,_b as m,aa as R,cb as ae,d as C,da as f,dc as ce,ec as N,fc as K,ka as $,kb as re,la as M,lb as ne,na as l,pc as de,qb as w,t as T,ua as J,ub as k,va as g,vb as F,wa as y,xa as Z,xb as V,y as X}from"./chunk-DZT5XHBQ.js";var He=["trigger"],Qe=["panel"],Ye=[[["mat-select-trigger"]],"*"],je=["mat-select-trigger","*"];function Xe(r,_){if(r&1&&(o(0,"span",4),N(1),p()),r&2){let e=v();h(),K(e.placeholder)}}function Ue(r,_){r&1&&W(0)}function $e(r,_){if(r&1&&(o(0,"span",11),N(1),p()),r&2){let e=v(2);h(),K(e.triggerValue)}}function Je(r,_){if(r&1&&(o(0,"span",5),w(1,Ue,1,0)(2,$e,2,1,"span",11),p()),r&2){let e=v();h(),L(e.customTrigger?1:2)}}function Ze(r,_){if(r&1){let e=P();o(0,"div",12,1),b("keydown",function(i){g(e);let a=v();return y(a._handleKeydown(i))}),W(2,1),p()}if(r&2){let e=v();le("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),V("mat-select-panel-animations-enabled",!e._animationsDisabled),F("ngClass",e.panelClass),k("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Ke=new M("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=l(z);return()=>r.scrollStrategies.reposition()}});function et(r){return()=>r.scrollStrategies.reposition()}var tt=new M("MAT_SELECT_CONFIG"),it={provide:Ke,deps:[z],useFactory:et},at=new M("MatSelectTrigger"),j=class{source;value;constructor(_,e){this.source=_,this.value=e}},Ft=(()=>{class r{_viewportRuler=l(Oe);_changeDetectorRef=l(he);_elementRef=l(te);_dir=l(Ce,{optional:!0});_idGenerator=l(ye);_renderer=l(ae);_parentFormField=l(xe,{optional:!0});ngControl=l(ue,{self:!0,optional:!0});_liveAnnouncer=l(ge);_defaultOptions=l(tt,{optional:!0});_animationsDisabled=l(ie,{optional:!0})==="NoopAnimations";_initialized=new C;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Re(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Fe(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new j(this,e)}_scrollStrategyFactory=l(Ke);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(me.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=X(()=>{let e=this.options;return e?e.changes.pipe(E(e),R(()=>O(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(R(()=>this.optionSelectionChanges))});openedChange=new S;_openedStream=this.openedChange.pipe(A(e=>e),T(()=>{}));_closedStream=this.openedChange.pipe(A(e=>!e),T(()=>{}));selectionChange=new S;valueChange=new S;constructor(){let e=l(De),t=l(_e,{optional:!0}),i=l(fe,{optional:!0}),a=l(new ee("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Ie(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new we(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(f(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(f(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(E(null),f(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(U(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&G(this._trackedModal,"aria-owns",t),be(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;G(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!I(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let d=this.selected;n.onKeydown(e);let s=this.selected;s&&d!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!I(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let d=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(d?s.select():s.deselect())})}else{let d=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==d&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!I(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return(i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof q?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new ve(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=O(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(f(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),O(...this.options.map(t=>t._stateChanges)).pipe(f(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=re({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(x(a,at,5),x(a,Ee,5),x(a,Ae,5)),t&2){let n;m(n=u())&&(i.customTrigger=n.first),m(n=u())&&(i.options=n),m(n=u())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(D(He,5),D(Qe,5),D(H,5)),t&2){let a;m(a=u())&&(i.trigger=a.first),m(a=u())&&(i.panel=a.first),m(a=u())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&b("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(k("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),V("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",c],disableRipple:[2,"disableRipple","disableRipple",c],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:B(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c],placeholder:"placeholder",required:[2,"required","required",c],multiple:[2,"multiple","multiple",c],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",c],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",B],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",c]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[de([{provide:ke,useExisting:r},{provide:Te,useExisting:r}]),J],ngContentSelectors:je,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=P();oe(Ye),o(0,"div",2,0),b("click",function(){return g(a),y(i.open())}),o(3,"div",3),w(4,Xe,2,1,"span",4)(5,Je,3,1,"span",5),p(),o(6,"div",6)(7,"div",7),Z(),o(8,"svg",8),se(9,"path",9),p()()()(),w(10,Ze,3,10,"ng-template",10),b("detach",function(){return g(a),y(i.close())})("backdropClick",function(){return g(a),y(i.close())})("overlayKeydown",function(d){return g(a),y(i._handleOverlayKeydown(d))})}if(t&2){let a=ce(1);h(3),k("id",i._valueId),h(),L(i.empty?4:5),h(6),F("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[q,H,pe],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
2
2
  `],encapsulation:2,changeDetection:0})}return r})();var Vt=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=$({providers:[it],imports:[Se,Y,Q,Me,Ve,Y,Q]})}return r})();export{Ft as a,Vt as b};
@@ -1 +1 @@
1
- import{a as ee,b as te,c as ie}from"./chunk-P5XJTUWS.js";import{a as le,b as ge}from"./chunk-7ENHJR7R.js";import{u as pe,v as se,w as me}from"./chunk-LPQODANI.js";import{b as Y,c as Z}from"./chunk-CIBQBSM6.js";import{a as re,e as ae}from"./chunk-VMY3JQDA.js";import{e as oe,f as ne}from"./chunk-D35OBUDE.js";import{D as Q,c as $,h as q,o as K}from"./chunk-P7HKWFZT.js";import{$a as a,Ac as E,Ib as l,Jb as p,Kb as u,Lb as b,Mb as T,Ob as M,Qb as C,Rb as g,Y as L,Yc as z,Yd as S,Zc as B,aa as P,cd as G,d as F,db as _,ec as m,fa as O,fc as I,gc as X,gd as W,hc as H,ja as V,jc as R,jd as U,kb as k,kc as N,lc as D,ma as J,qb as x,t as y,va as f,vb as s,wa as h,zb as j,zc as v}from"./chunk-DZT5XHBQ.js";import{a as c,b as d}from"./chunk-7DCB7DB2.js";var w=class o{constructor(t){this.http=t}exportCSV(t,e){let i=d(c({},e),{Export:!0,FormatType:0});this.downloadFile(t,i)}exportCustom(t,e,i){let r=d(c({},e),{Export:!0,FormatType:i});this.downloadFile(t,r)}exportCSVIds(t,e){this.downloadFile(t,e)}exportXlsx(t,e){let i=d(c({},e),{FormatType:1});this.downloadFile(t,i)}downloadFile(t,e){this.http.postFile(`/api/${t}`,e).subscribe(i=>{let r=window.URL.createObjectURL(i.file),n=document.createElement("a");n.download=this.getFilenameFromContentDisposition(i.title),n.href=r,n.click(),URL.revokeObjectURL(r),n.remove()})}getFilenameFromContentDisposition(t){let i=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t);return i!=null&&i[1]?i[1].replace(/['"]/g,""):""}exportJSON(t,e,i){this.http.post(`/api/${t}`,i).subscribe(r=>{var n=JSON.stringify(r,null," ");this.downloadJSON(n,e+".json")})}downloadJSON(t,e){var i=new Blob([t],{type:"data:application/json;charset=utf-8"}),r=document.createElement("a");r.setAttribute("href",window.URL.createObjectURL(i)),r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r)}static \u0275fac=function(e){return new(e||o)(J(S))};static \u0275prov=V({token:o,factory:o.\u0275fac,providedIn:"root"})};function fe(o,t){if(o&1&&(l(0,"div",15),m(1),p()),o&2){let e=t.item;s("matTooltip",e.Tooltip),a(),X(" ",e.Value," ")}}function he(o,t){if(o&1){let e=M();b(0),l(1,"div",11),m(2," Columns "),p(),l(3,"div",12)(4,"ng-select",13),D("ngModelChange",function(r){f(e);let n=g();return N(n.exportType,r)||(n.exportType=r),h(r)}),C("change",function(r){f(e);let n=g();return h(n.onChangeExportType(r))}),x(5,fe,2,2,"ng-template",14),p()(),T()}if(o&2){let e=g();a(4),s("items",e.exportTypes),R("ngModel",e.exportType)}}function _e(o,t){o&1&&(l(0,"mat-button-toggle",16),u(1,"i",17),m(2,"CSV"),p())}function Ce(o,t){o&1&&(l(0,"mat-button-toggle",18),u(1,"i",19),m(2,"XLSX"),p())}function ye(o,t){if(o&1&&(l(0,"mat-button-toggle",21),u(1,"i",22),m(2),p()),o&2){let e=g().$implicit;s("value",e.value),a(),j(e.icon),a(),I(e.label)}}function be(o,t){if(o&1&&(b(0),x(1,ye,3,4,"mat-button-toggle",20),T()),o&2){let e=g();a(),s("ngIf",e.allowTxtOption()||e.isTextOnly())}}function Te(o,t){o&1&&(l(0,"mat-button-toggle",23),u(1,"i",24),m(2,"JSON"),p())}function Me(o,t){if(o&1){let e=M();l(0,"i",32),C("click",function(){f(e);let r=g(3);return h(r.onGetAllDataLength())}),p()}}function ve(o,t){if(o&1&&(l(0,"span"),m(1,"of "),x(2,Me,1,0,"i",30),l(3,"span",31),m(4),v(5,"async"),p(),m(6," page(s)"),p()),o&2){let e=g(2);a(2),s("ngIf",!e.calledApiCount),a(2),I(e.calledApiCount?E(5,2,e.allDataLength$):"")}}function Ee(o,t){if(o&1){let e=M();b(0),l(1,"div",4),m(2," Page "),p(),l(3,"div",25)(4,"input",26),C("ngModelChange",function(r){f(e);let n=g();return h(n.pageNumber=r)}),p(),x(5,ve,7,4,"span",3),p(),l(6,"div",27)(7,"div",28),u(8,"i",29),m(9),v(10,"number"),v(11,"number"),p()(),T()}if(o&2){let e=g();a(4),s("ngModel",e.pageNumber),a(),s("ngIf",e.getAllDataLengthAPI),a(4),H(" Exporting data from ",E(10,4,e.displayedMinRangeRow)," - ",e.exportFormat=="JSON"?"1,000":E(11,6,e.displayedMaxRangeRow)," ")}}var ce=class o{constructor(t,e,i,r){this.data=t;this.dialogRef=e;this.exportHandler=r;this.config.title=`Export ${t.title}`,this.config.hideCancel=!0,this.config.customWidth="450px",this.exportTypes=t.exportTypes,this.exportType=this.exportTypes[0].ID,this.filterExport=t.filterExport,this.pagination=t.pagination,this.getAllDataLengthAPI=t.getAllDataLengthAPI,this.extraExportTypesOptions=t.extraExportTypesOptions,this.allDataLength$=this.onGetAllDataLength$.pipe(y(()=>this.exportTypes.find(n=>n.ID==this.exportType)?.Count??this.getAllDataLengthAPI),P(n=>i.post("/API/"+n,this.filterExport)),y(n=>typeof n=="number"?n:n.Count),O(n=>{n<this.displayedMaxRangeRow&&this.setMinMaxRangeDisplayedRow(n),this.calledApiCount=!0}),y(n=>{let A=this.exportFormat=="JSON"?1e3:this.pageSize;return Math.floor(n/A)+(n%A>0?1:0)}),L(1),O(console.log)),this.allDataLength$.subscribe()}pageNumber=1;pageSize=1e4;config=new pe;exportTypes=[];exportType;exportFormat="CSV";_onGetAllDataLength=new F;onGetAllDataLength$=this._onGetAllDataLength.asObservable();allDataLength$;calledApiCount=!1;filterExport;displayedMaxRangeRow=this.pageSize;displayedMinRangeRow=this.pageNumber;pagination;getAllDataLengthAPI="";extraExportTypesOptions=[];onOk(){this.filterExport=d(c({},this.filterExport),{Export:!0}),this.pagination&&(this.filterExport=d(c({},this.filterExport),{ExportPageNumber:this.pageNumber,ExportRowCount:this.pageSize})),this.exportFormat=="CSV"?this.exportHandler.exportCSV(this.exportType,this.filterExport):this.exportFormat=="XLSX"?this.exportHandler.exportXlsx(this.exportType,this.filterExport):this.exportFormat=="JSON"?this.exportHandler.exportJSON(this.data.JSONAPI,this.data.JSONFileName,d(c({},this.filterExport),{ExportRowCount:1e3})):this.exportHandler.exportCustom(this.exportType,this.filterExport,2),this.dialogRef.close()}onGetAllDataLength(){this._onGetAllDataLength.next()}onChangePageNumber(){this.setDisplayedMinMaxRangeRow()}setMinMaxRangeDisplayedRow(t){for(;this.displayedMaxRangeRow>t&&this.pageNumber>1;)this.pageNumber-=1,this.setDisplayedMinMaxRangeRow();this.displayedMaxRangeRow=t}setDisplayedMinMaxRangeRow(){this.displayedMinRangeRow=this.pageNumber*this.pageSize-this.pageSize+1,this.displayedMaxRangeRow=this.pageNumber*this.pageSize}isTextOnly(){return this.exportTypes.find(t=>t.ID==this.exportType)?.TxtOnly}isExludeJsonType(){return this.exportTypes.find(t=>t.ID==this.exportType)?.ExcludeJsonType}allowTxtOption(){return this.exportTypes.find(t=>t.ID==this.exportType)?.AllowTxtOption}onChangeExportType(t){this.calledApiCount=!1,this.displayedMaxRangeRow=this.pageSize,this.displayedMinRangeRow=this.pageNumber,this.isTextOnly()?this.exportFormat="TXT":this.exportFormat="CSV"}static \u0275fac=function(e){return new(e||o)(_(ne),_(oe),_(S),_(w))};static \u0275cmp=k({type:o,selectors:[["POS-modal-complex-export"]],decls:14,vars:8,consts:[[3,"onCancel","onClose","onOk","config"],[1,"container-fluid"],[1,"row"],[4,"ngIf"],[1,"col-3","fw-bold","mt-8",2,"display","flex","align-items","center"],[1,"col-9","mt-8"],[3,"ngModelChange","ngModel"],["value","CSV",4,"ngIf"],["value","XLSX",4,"ngIf"],[4,"ngFor","ngForOf"],["value","JSON",4,"ngIf"],[1,"col-3","fw-bold",2,"display","flex","align-items","center"],[1,"col-9"],["appendTo","body","bindLabel","Value","bindValue","ID",3,"ngModelChange","change","items","ngModel"],["ng-option-tmp",""],["matTooltipPosition","right",3,"matTooltip"],["value","CSV"],[1,"fa-solid","fa-file-csv","me-3","mb-1"],["value","XLSX"],[1,"fa-solid","fa-file-excel","me-3","mb-1"],[3,"value",4,"ngIf"],[3,"value"],[1,"me-3","mb-1"],["value","JSON"],[1,"fa-solid","fa-brackets-curly","me-3","mb-1"],[1,"col-9","mt-8",2,"display","flex","align-items","center","column-gap","10px"],["type","text","autoNum","","name","pageNumber","id","pageNumber",1,"form-control","text-center",2,"width","50px",3,"ngModelChange","ngModel"],[1,"col-12","mt-8"],[1,"p-3",2,"background-color","#add8e6","border-radius","4px"],[1,"fa-solid","fa-circle-exclamation","mx-3"],["class","fa-solid fa-circle-question mx-3",3,"click",4,"ngIf"],[1,"fw-bold"],[1,"fa-solid","fa-circle-question","mx-3",3,"click"]],template:function(e,i){e&1&&(l(0,"modal-material",0),C("onCancel",function(){return i.dialogRef.close()})("onClose",function(){return i.dialogRef.close()})("onOk",function(){return i.onOk()}),l(1,"content")(2,"div",1)(3,"div",2),x(4,he,6,2,"ng-container",3),l(5,"div",4),m(6," Format "),p(),l(7,"div",5)(8,"mat-button-toggle-group",6),D("ngModelChange",function(n){return N(i.exportFormat,n)||(i.exportFormat=n),n}),x(9,_e,3,0,"mat-button-toggle",7)(10,Ce,3,0,"mat-button-toggle",8)(11,be,2,1,"ng-container",9)(12,Te,3,0,"mat-button-toggle",10),p()(),x(13,Ee,12,8,"ng-container",3),p()()()()),e&2&&(s("config",i.config),a(4),s("ngIf",i.exportTypes.length>1),a(4),R("ngModel",i.exportFormat),a(),s("ngIf",!i.isTextOnly()),a(),s("ngIf",!i.isTextOnly()),a(),s("ngForOf",i.extraExportTypesOptions),a(),s("ngIf",i.data.JSONAPI&&!i.isTextOnly()&&!i.isExludeJsonType()),a(),s("ngIf",i.pagination))},dependencies:[me,se,ae,Q,$,q,K,U,z,B,G,W,le,ge,ie,ee,te,Z,Y,re],styles:[".general[_ngcontent-%COMP%], .page[_ngcontent-%COMP%]{border:1px solid #dcdcdc;border-radius:3px;padding:10px 8px;position:relative}.general[_ngcontent-%COMP%]{margin-bottom:15px}.floating-title[_ngcontent-%COMP%]{position:absolute;top:-10.5px;background:#fff;color:gray;font-size:14px}.select-header[_ngcontent-%COMP%]{line-height:36px}.input-header[_ngcontent-%COMP%]{line-height:36.6px}.form-control[_ngcontent-%COMP%]{height:max-content!important;padding:.375rem .75rem!important}"]})};export{w as a,ce as b};
1
+ import{a as ee,b as te,c as ie}from"./chunk-YQCR57JN.js";import{a as le,b as ge}from"./chunk-7ENHJR7R.js";import{u as pe,v as se,w as me}from"./chunk-677WPFLK.js";import{b as Y,c as Z}from"./chunk-CIBQBSM6.js";import{a as re,e as ae}from"./chunk-VMY3JQDA.js";import{e as oe,f as ne}from"./chunk-D35OBUDE.js";import{D as Q,c as $,h as q,o as K}from"./chunk-P7HKWFZT.js";import{$a as a,Ac as E,Ib as l,Jb as p,Kb as u,Lb as b,Mb as T,Ob as M,Qb as C,Rb as g,Y as L,Yc as z,Yd as S,Zc as B,aa as P,cd as G,d as F,db as _,ec as m,fa as O,fc as I,gc as X,gd as W,hc as H,ja as V,jc as R,jd as U,kb as k,kc as N,lc as D,ma as J,qb as x,t as y,va as f,vb as s,wa as h,zb as j,zc as v}from"./chunk-DZT5XHBQ.js";import{a as c,b as d}from"./chunk-7DCB7DB2.js";var w=class o{constructor(t){this.http=t}exportCSV(t,e){let i=d(c({},e),{Export:!0,FormatType:0});this.downloadFile(t,i)}exportCustom(t,e,i){let r=d(c({},e),{Export:!0,FormatType:i});this.downloadFile(t,r)}exportCSVIds(t,e){this.downloadFile(t,e)}exportXlsx(t,e){let i=d(c({},e),{FormatType:1});this.downloadFile(t,i)}downloadFile(t,e){this.http.postFile(`/api/${t}`,e).subscribe(i=>{let r=window.URL.createObjectURL(i.file),n=document.createElement("a");n.download=this.getFilenameFromContentDisposition(i.title),n.href=r,n.click(),URL.revokeObjectURL(r),n.remove()})}getFilenameFromContentDisposition(t){let i=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t);return i!=null&&i[1]?i[1].replace(/['"]/g,""):""}exportJSON(t,e,i){this.http.post(`/api/${t}`,i).subscribe(r=>{var n=JSON.stringify(r,null," ");this.downloadJSON(n,e+".json")})}downloadJSON(t,e){var i=new Blob([t],{type:"data:application/json;charset=utf-8"}),r=document.createElement("a");r.setAttribute("href",window.URL.createObjectURL(i)),r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r)}static \u0275fac=function(e){return new(e||o)(J(S))};static \u0275prov=V({token:o,factory:o.\u0275fac,providedIn:"root"})};function fe(o,t){if(o&1&&(l(0,"div",15),m(1),p()),o&2){let e=t.item;s("matTooltip",e.Tooltip),a(),X(" ",e.Value," ")}}function he(o,t){if(o&1){let e=M();b(0),l(1,"div",11),m(2," Columns "),p(),l(3,"div",12)(4,"ng-select",13),D("ngModelChange",function(r){f(e);let n=g();return N(n.exportType,r)||(n.exportType=r),h(r)}),C("change",function(r){f(e);let n=g();return h(n.onChangeExportType(r))}),x(5,fe,2,2,"ng-template",14),p()(),T()}if(o&2){let e=g();a(4),s("items",e.exportTypes),R("ngModel",e.exportType)}}function _e(o,t){o&1&&(l(0,"mat-button-toggle",16),u(1,"i",17),m(2,"CSV"),p())}function Ce(o,t){o&1&&(l(0,"mat-button-toggle",18),u(1,"i",19),m(2,"XLSX"),p())}function ye(o,t){if(o&1&&(l(0,"mat-button-toggle",21),u(1,"i",22),m(2),p()),o&2){let e=g().$implicit;s("value",e.value),a(),j(e.icon),a(),I(e.label)}}function be(o,t){if(o&1&&(b(0),x(1,ye,3,4,"mat-button-toggle",20),T()),o&2){let e=g();a(),s("ngIf",e.allowTxtOption()||e.isTextOnly())}}function Te(o,t){o&1&&(l(0,"mat-button-toggle",23),u(1,"i",24),m(2,"JSON"),p())}function Me(o,t){if(o&1){let e=M();l(0,"i",32),C("click",function(){f(e);let r=g(3);return h(r.onGetAllDataLength())}),p()}}function ve(o,t){if(o&1&&(l(0,"span"),m(1,"of "),x(2,Me,1,0,"i",30),l(3,"span",31),m(4),v(5,"async"),p(),m(6," page(s)"),p()),o&2){let e=g(2);a(2),s("ngIf",!e.calledApiCount),a(2),I(e.calledApiCount?E(5,2,e.allDataLength$):"")}}function Ee(o,t){if(o&1){let e=M();b(0),l(1,"div",4),m(2," Page "),p(),l(3,"div",25)(4,"input",26),C("ngModelChange",function(r){f(e);let n=g();return h(n.pageNumber=r)}),p(),x(5,ve,7,4,"span",3),p(),l(6,"div",27)(7,"div",28),u(8,"i",29),m(9),v(10,"number"),v(11,"number"),p()(),T()}if(o&2){let e=g();a(4),s("ngModel",e.pageNumber),a(),s("ngIf",e.getAllDataLengthAPI),a(4),H(" Exporting data from ",E(10,4,e.displayedMinRangeRow)," - ",e.exportFormat=="JSON"?"1,000":E(11,6,e.displayedMaxRangeRow)," ")}}var ce=class o{constructor(t,e,i,r){this.data=t;this.dialogRef=e;this.exportHandler=r;this.config.title=`Export ${t.title}`,this.config.hideCancel=!0,this.config.customWidth="450px",this.exportTypes=t.exportTypes,this.exportType=this.exportTypes[0].ID,this.filterExport=t.filterExport,this.pagination=t.pagination,this.getAllDataLengthAPI=t.getAllDataLengthAPI,this.extraExportTypesOptions=t.extraExportTypesOptions,this.allDataLength$=this.onGetAllDataLength$.pipe(y(()=>this.exportTypes.find(n=>n.ID==this.exportType)?.Count??this.getAllDataLengthAPI),P(n=>i.post("/API/"+n,this.filterExport)),y(n=>typeof n=="number"?n:n.Count),O(n=>{n<this.displayedMaxRangeRow&&this.setMinMaxRangeDisplayedRow(n),this.calledApiCount=!0}),y(n=>{let A=this.exportFormat=="JSON"?1e3:this.pageSize;return Math.floor(n/A)+(n%A>0?1:0)}),L(1),O(console.log)),this.allDataLength$.subscribe()}pageNumber=1;pageSize=1e4;config=new pe;exportTypes=[];exportType;exportFormat="CSV";_onGetAllDataLength=new F;onGetAllDataLength$=this._onGetAllDataLength.asObservable();allDataLength$;calledApiCount=!1;filterExport;displayedMaxRangeRow=this.pageSize;displayedMinRangeRow=this.pageNumber;pagination;getAllDataLengthAPI="";extraExportTypesOptions=[];onOk(){this.filterExport=d(c({},this.filterExport),{Export:!0}),this.pagination&&(this.filterExport=d(c({},this.filterExport),{ExportPageNumber:this.pageNumber,ExportRowCount:this.pageSize})),this.exportFormat=="CSV"?this.exportHandler.exportCSV(this.exportType,this.filterExport):this.exportFormat=="XLSX"?this.exportHandler.exportXlsx(this.exportType,this.filterExport):this.exportFormat=="JSON"?this.exportHandler.exportJSON(this.data.JSONAPI,this.data.JSONFileName,d(c({},this.filterExport),{ExportRowCount:1e3})):this.exportHandler.exportCustom(this.exportType,this.filterExport,2),this.dialogRef.close()}onGetAllDataLength(){this._onGetAllDataLength.next()}onChangePageNumber(){this.setDisplayedMinMaxRangeRow()}setMinMaxRangeDisplayedRow(t){for(;this.displayedMaxRangeRow>t&&this.pageNumber>1;)this.pageNumber-=1,this.setDisplayedMinMaxRangeRow();this.displayedMaxRangeRow=t}setDisplayedMinMaxRangeRow(){this.displayedMinRangeRow=this.pageNumber*this.pageSize-this.pageSize+1,this.displayedMaxRangeRow=this.pageNumber*this.pageSize}isTextOnly(){return this.exportTypes.find(t=>t.ID==this.exportType)?.TxtOnly}isExludeJsonType(){return this.exportTypes.find(t=>t.ID==this.exportType)?.ExcludeJsonType}allowTxtOption(){return this.exportTypes.find(t=>t.ID==this.exportType)?.AllowTxtOption}onChangeExportType(t){this.calledApiCount=!1,this.displayedMaxRangeRow=this.pageSize,this.displayedMinRangeRow=this.pageNumber,this.isTextOnly()?this.exportFormat="TXT":this.exportFormat="CSV"}static \u0275fac=function(e){return new(e||o)(_(ne),_(oe),_(S),_(w))};static \u0275cmp=k({type:o,selectors:[["POS-modal-complex-export"]],decls:14,vars:8,consts:[[3,"onCancel","onClose","onOk","config"],[1,"container-fluid"],[1,"row"],[4,"ngIf"],[1,"col-3","fw-bold","mt-8",2,"display","flex","align-items","center"],[1,"col-9","mt-8"],[3,"ngModelChange","ngModel"],["value","CSV",4,"ngIf"],["value","XLSX",4,"ngIf"],[4,"ngFor","ngForOf"],["value","JSON",4,"ngIf"],[1,"col-3","fw-bold",2,"display","flex","align-items","center"],[1,"col-9"],["appendTo","body","bindLabel","Value","bindValue","ID",3,"ngModelChange","change","items","ngModel"],["ng-option-tmp",""],["matTooltipPosition","right",3,"matTooltip"],["value","CSV"],[1,"fa-solid","fa-file-csv","me-3","mb-1"],["value","XLSX"],[1,"fa-solid","fa-file-excel","me-3","mb-1"],[3,"value",4,"ngIf"],[3,"value"],[1,"me-3","mb-1"],["value","JSON"],[1,"fa-solid","fa-brackets-curly","me-3","mb-1"],[1,"col-9","mt-8",2,"display","flex","align-items","center","column-gap","10px"],["type","text","autoNum","","name","pageNumber","id","pageNumber",1,"form-control","text-center",2,"width","50px",3,"ngModelChange","ngModel"],[1,"col-12","mt-8"],[1,"p-3",2,"background-color","#add8e6","border-radius","4px"],[1,"fa-solid","fa-circle-exclamation","mx-3"],["class","fa-solid fa-circle-question mx-3",3,"click",4,"ngIf"],[1,"fw-bold"],[1,"fa-solid","fa-circle-question","mx-3",3,"click"]],template:function(e,i){e&1&&(l(0,"modal-material",0),C("onCancel",function(){return i.dialogRef.close()})("onClose",function(){return i.dialogRef.close()})("onOk",function(){return i.onOk()}),l(1,"content")(2,"div",1)(3,"div",2),x(4,he,6,2,"ng-container",3),l(5,"div",4),m(6," Format "),p(),l(7,"div",5)(8,"mat-button-toggle-group",6),D("ngModelChange",function(n){return N(i.exportFormat,n)||(i.exportFormat=n),n}),x(9,_e,3,0,"mat-button-toggle",7)(10,Ce,3,0,"mat-button-toggle",8)(11,be,2,1,"ng-container",9)(12,Te,3,0,"mat-button-toggle",10),p()(),x(13,Ee,12,8,"ng-container",3),p()()()()),e&2&&(s("config",i.config),a(4),s("ngIf",i.exportTypes.length>1),a(4),R("ngModel",i.exportFormat),a(),s("ngIf",!i.isTextOnly()),a(),s("ngIf",!i.isTextOnly()),a(),s("ngForOf",i.extraExportTypesOptions),a(),s("ngIf",i.data.JSONAPI&&!i.isTextOnly()&&!i.isExludeJsonType()),a(),s("ngIf",i.pagination))},dependencies:[me,se,ae,Q,$,q,K,U,z,B,G,W,le,ge,ie,ee,te,Z,Y,re],styles:[".general[_ngcontent-%COMP%], .page[_ngcontent-%COMP%]{border:1px solid #dcdcdc;border-radius:3px;padding:10px 8px;position:relative}.general[_ngcontent-%COMP%]{margin-bottom:15px}.floating-title[_ngcontent-%COMP%]{position:absolute;top:-10.5px;background:#fff;color:gray;font-size:14px}.select-header[_ngcontent-%COMP%]{line-height:36px}.input-header[_ngcontent-%COMP%]{line-height:36.6px}.form-control[_ngcontent-%COMP%]{height:max-content!important;padding:.375rem .75rem!important}"]})};export{w as a,ce as b};