marketplacepos 3.11.5 → 3.11.7

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 (130) hide show
  1. package/Marketplace/3rdpartylicenses.txt +27 -27
  2. package/Marketplace/chunk-5LCXVQBT.js +1 -0
  3. package/Marketplace/chunk-5OSUE6B3.js +2 -0
  4. package/Marketplace/chunk-5ZUWMFL5.js +1 -0
  5. package/Marketplace/chunk-6B64VOO7.js +1 -0
  6. package/Marketplace/chunk-6DRNAUKE.js +8 -0
  7. package/Marketplace/chunk-6F6NSBIF.js +1 -0
  8. package/Marketplace/chunk-7QECCYLR.js +4 -0
  9. package/Marketplace/chunk-7TDQZKQC.js +5 -0
  10. package/Marketplace/chunk-AL67KXJV.js +2 -0
  11. package/Marketplace/chunk-BD2QQPDK.js +1 -0
  12. package/Marketplace/chunk-BMZAGAK3.js +1 -0
  13. package/Marketplace/chunk-CDAAQO6A.js +1 -0
  14. package/Marketplace/chunk-DEH6NGKQ.js +1 -0
  15. package/Marketplace/chunk-DT3B54LD.js +4 -0
  16. package/Marketplace/chunk-G5LCLRIW.js +1 -0
  17. package/Marketplace/chunk-GRMIXZTT.js +1 -0
  18. package/Marketplace/{chunk-TH6EVOI3.js → chunk-GSSZWMCP.js} +4 -4
  19. package/Marketplace/chunk-H5P5BX43.js +1 -0
  20. package/Marketplace/chunk-INNTQ5YN.js +1 -0
  21. package/Marketplace/chunk-JJ4ZOCSD.js +1 -0
  22. package/Marketplace/chunk-JM3LERUP.js +7 -0
  23. package/Marketplace/chunk-K3G6FMDF.js +1 -0
  24. package/Marketplace/chunk-KBYAFLE5.js +1 -0
  25. package/Marketplace/chunk-KUVW5SH2.js +1 -0
  26. package/Marketplace/chunk-L4Q4FQFW.js +47 -0
  27. package/Marketplace/chunk-LHJXLBHB.js +1 -0
  28. package/Marketplace/chunk-LHLYIKEW.js +1 -0
  29. package/Marketplace/chunk-MK34PW5S.js +1 -0
  30. package/Marketplace/{chunk-HZ3YSVLS.js → chunk-MSAVOLLA.js} +2 -2
  31. package/Marketplace/chunk-MSGMWJHN.js +1 -0
  32. package/Marketplace/chunk-MYMGWQRE.js +6 -0
  33. package/Marketplace/chunk-N4S3Q3EC.js +1 -0
  34. package/Marketplace/chunk-NQ3TJQ5O.js +1 -0
  35. package/Marketplace/chunk-NRVXDIHY.js +1 -0
  36. package/Marketplace/chunk-NSM4JDXS.js +1 -0
  37. package/Marketplace/chunk-PRYDCJG5.js +1 -0
  38. package/Marketplace/chunk-PTYBFE3S.js +1 -0
  39. package/Marketplace/chunk-PZOGC5DT.js +1 -0
  40. package/Marketplace/chunk-QBA3X367.js +1 -0
  41. package/Marketplace/chunk-QBVEDLRG.js +1 -0
  42. package/Marketplace/chunk-SP6QPE3M.js +1 -0
  43. package/Marketplace/chunk-SRYGE2HW.js +1 -0
  44. package/Marketplace/chunk-T4Y427M7.js +1 -0
  45. package/Marketplace/chunk-TCC7PQV3.js +1 -0
  46. package/Marketplace/chunk-TDHJ34QP.js +1 -0
  47. package/Marketplace/chunk-TDK2QBFI.js +1 -0
  48. package/Marketplace/chunk-THNYE3KI.js +1 -0
  49. package/Marketplace/chunk-U5YOE633.js +5 -0
  50. package/Marketplace/chunk-UILE7H6I.js +1 -0
  51. package/Marketplace/chunk-UUPUVGXL.js +2 -0
  52. package/Marketplace/chunk-W3EAYQL3.js +1 -0
  53. package/Marketplace/chunk-WQ7LUTQ2.js +1 -0
  54. package/Marketplace/chunk-WVXTWIP3.js +5 -0
  55. package/Marketplace/chunk-XDNW2F3I.js +3 -0
  56. package/Marketplace/chunk-XJNFT56V.js +3 -0
  57. package/Marketplace/chunk-YZ67XPSX.js +1 -0
  58. package/Marketplace/chunk-ZKBLXGXT.js +2 -0
  59. package/Marketplace/chunk-ZU7YBWGM.js +1 -0
  60. package/Marketplace/index.html +3 -2
  61. package/Marketplace/main-MFYZJGET.js +1 -0
  62. package/Marketplace/polyfills-Y3W47ZLP.js +2 -0
  63. package/Marketplace/scripts-TB7H6DN4.js +5 -0
  64. package/Marketplace/styles-STRQ65W6.css +1 -0
  65. package/package.json +1 -1
  66. package/Marketplace/chunk-26HLZRDA.js +0 -1
  67. package/Marketplace/chunk-2LVSLYBV.js +0 -1
  68. package/Marketplace/chunk-3G7XK5MI.js +0 -4
  69. package/Marketplace/chunk-4AXZQMAS.js +0 -1
  70. package/Marketplace/chunk-4BQPB4PL.js +0 -1
  71. package/Marketplace/chunk-5KH5BCQM.js +0 -1
  72. package/Marketplace/chunk-5RM66OVB.js +0 -1
  73. package/Marketplace/chunk-5ZM4XSQW.js +0 -1
  74. package/Marketplace/chunk-6HHZHN7P.js +0 -8
  75. package/Marketplace/chunk-7KGXTHIW.js +0 -1
  76. package/Marketplace/chunk-7NTKQFO6.js +0 -1
  77. package/Marketplace/chunk-A5TR5UHL.js +0 -3
  78. package/Marketplace/chunk-AALPQPNV.js +0 -1
  79. package/Marketplace/chunk-AI73JQCY.js +0 -1
  80. package/Marketplace/chunk-AOTR45SX.js +0 -1
  81. package/Marketplace/chunk-AS72XOBR.js +0 -5
  82. package/Marketplace/chunk-BIUR6K3C.js +0 -2
  83. package/Marketplace/chunk-BOSI3BJF.js +0 -1
  84. package/Marketplace/chunk-C2Z57PHM.js +0 -1
  85. package/Marketplace/chunk-CARHAIPY.js +0 -1
  86. package/Marketplace/chunk-CQZLPKQI.js +0 -7
  87. package/Marketplace/chunk-CRMU6PMW.js +0 -1
  88. package/Marketplace/chunk-EIZQWSOG.js +0 -3
  89. package/Marketplace/chunk-F4HOVOTI.js +0 -1
  90. package/Marketplace/chunk-FCNR3DL5.js +0 -1
  91. package/Marketplace/chunk-FTHF27YK.js +0 -1
  92. package/Marketplace/chunk-FY4ZBLX6.js +0 -1
  93. package/Marketplace/chunk-G4FCMEKS.js +0 -5
  94. package/Marketplace/chunk-GN6CGQMS.js +0 -4
  95. package/Marketplace/chunk-GS5L5VKE.js +0 -39
  96. package/Marketplace/chunk-GUPLRXO2.js +0 -1
  97. package/Marketplace/chunk-HL4F7T5B.js +0 -1
  98. package/Marketplace/chunk-I5I7UHHM.js +0 -2
  99. package/Marketplace/chunk-I7XIC4MV.js +0 -1
  100. package/Marketplace/chunk-IGEQKV42.js +0 -1
  101. package/Marketplace/chunk-J7NK7BJJ.js +0 -2
  102. package/Marketplace/chunk-JQQV3EN5.js +0 -1
  103. package/Marketplace/chunk-L2NFIVJZ.js +0 -1
  104. package/Marketplace/chunk-MAW5LNHT.js +0 -1
  105. package/Marketplace/chunk-MSVBBUIV.js +0 -1
  106. package/Marketplace/chunk-MZTR7GGF.js +0 -1
  107. package/Marketplace/chunk-O7LVIN5K.js +0 -1
  108. package/Marketplace/chunk-OCT7STGJ.js +0 -2
  109. package/Marketplace/chunk-ODO3ELDR.js +0 -1
  110. package/Marketplace/chunk-Q2XGZGLR.js +0 -1
  111. package/Marketplace/chunk-Q4BXCRYS.js +0 -1
  112. package/Marketplace/chunk-QD5AAOCO.js +0 -1
  113. package/Marketplace/chunk-QGF4YW5W.js +0 -6
  114. package/Marketplace/chunk-RJJQKBQ5.js +0 -1
  115. package/Marketplace/chunk-RQUHSBJQ.js +0 -1
  116. package/Marketplace/chunk-SQJ3P2ZT.js +0 -1
  117. package/Marketplace/chunk-SWXSUMBG.js +0 -1
  118. package/Marketplace/chunk-TCCG4TE3.js +0 -1
  119. package/Marketplace/chunk-V437EVZ3.js +0 -1
  120. package/Marketplace/chunk-VFKZICIZ.js +0 -5
  121. package/Marketplace/chunk-W4KXSHWG.js +0 -1
  122. package/Marketplace/chunk-WOQ45EJA.js +0 -1
  123. package/Marketplace/chunk-Y3YRRYBU.js +0 -1
  124. package/Marketplace/chunk-YDMBBOTQ.js +0 -1
  125. package/Marketplace/main-AEZ74UFT.js +0 -1
  126. package/Marketplace/polyfills-FDR4O7DA.js +0 -2
  127. package/Marketplace/scripts-M46NWPTC.js +0 -5
  128. package/Marketplace/styles-3TBI7YP7.css +0 -1
  129. /package/Marketplace/{chunk-6BSG6YUX.js → chunk-662E5VTA.js} +0 -0
  130. /package/Marketplace/{chunk-KB6IM3NP.js → chunk-IWVYX6KY.js} +0 -0
@@ -5,7 +5,7 @@ License: "MIT"
5
5
 
6
6
  The MIT License
7
7
 
8
- Copyright (c) 2023 Google LLC.
8
+ Copyright (c) 2024 Google LLC.
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -31,7 +31,7 @@ License: "MIT"
31
31
 
32
32
  The MIT License
33
33
 
34
- Copyright (c) 2023 Google LLC.
34
+ Copyright (c) 2024 Google LLC.
35
35
 
36
36
  Permission is hereby granted, free of charge, to any person obtaining a copy
37
37
  of this software and associated documentation files (the "Software"), to deal
@@ -94,7 +94,7 @@ License: "MIT"
94
94
 
95
95
  The MIT License
96
96
 
97
- Copyright (c) 2023 Google LLC.
97
+ Copyright (c) 2024 Google LLC.
98
98
 
99
99
  Permission is hereby granted, free of charge, to any person obtaining a copy
100
100
  of this software and associated documentation files (the "Software"), to deal
@@ -139,6 +139,16 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
139
139
  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
140
140
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
141
141
 
142
+ --------------------------------------------------------------------------------
143
+ Package: @angular/animations
144
+ License: "MIT"
145
+
146
+
147
+ --------------------------------------------------------------------------------
148
+ Package: @angular/platform-browser
149
+ License: "MIT"
150
+
151
+
142
152
  --------------------------------------------------------------------------------
143
153
  Package: highcharts
144
154
  License: "https://www.highcharts.com/license"
@@ -203,6 +213,16 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
203
213
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
204
214
  OTHER DEALINGS IN THE SOFTWARE.
205
215
 
216
+ --------------------------------------------------------------------------------
217
+ Package: bigger-picture
218
+ License: "MIT"
219
+
220
+
221
+ --------------------------------------------------------------------------------
222
+ Package: @ng-select/ng-select
223
+ License: "MIT"
224
+
225
+
206
226
  --------------------------------------------------------------------------------
207
227
  Package: firebase
208
228
  License: "Apache-2.0"
@@ -314,32 +334,17 @@ License: "Apache-2.0"
314
334
 
315
335
 
316
336
  --------------------------------------------------------------------------------
317
- Package: ngx-permissions
318
- License: "MIT"
319
-
320
-
321
- --------------------------------------------------------------------------------
322
- Package: bigger-picture
323
- License: "MIT"
324
-
325
-
326
- --------------------------------------------------------------------------------
327
- Package: @ng-select/ng-select
328
- License: "MIT"
329
-
330
-
331
- --------------------------------------------------------------------------------
332
- Package: @angular/platform-browser
337
+ Package: @angular/core
333
338
  License: "MIT"
334
339
 
335
340
 
336
341
  --------------------------------------------------------------------------------
337
- Package: @angular/animations
342
+ Package: @angular/forms
338
343
  License: "MIT"
339
344
 
340
345
 
341
346
  --------------------------------------------------------------------------------
342
- Package: @angular/forms
347
+ Package: ngx-permissions
343
348
  License: "MIT"
344
349
 
345
350
 
@@ -550,11 +555,6 @@ License: "Apache-2.0"
550
555
  limitations under the License.
551
556
 
552
557
 
553
- --------------------------------------------------------------------------------
554
- Package: @angular/core
555
- License: "MIT"
556
-
557
-
558
558
  --------------------------------------------------------------------------------
559
559
  Package: @angular/common
560
560
  License: "MIT"
@@ -587,7 +587,7 @@ License: "MIT"
587
587
 
588
588
  The MIT License
589
589
 
590
- Copyright (c) 2010-2023 Google LLC. https://angular.io/license
590
+ Copyright (c) 2010-2024 Google LLC. https://angular.io/license
591
591
 
592
592
  Permission is hereby granted, free of charge, to any person obtaining a copy
593
593
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1 @@
1
+ import{a as R}from"./chunk-MYMGWQRE.js";import{q as N,r as z}from"./chunk-ZKBLXGXT.js";import{u as F}from"./chunk-SP6QPE3M.js";import{c as V}from"./chunk-6F6NSBIF.js";import{Ab as g,Bb as w,Cb as I,Db as $,Ha as _,Ia as i,Ib as O,Ja as T,Kb as P,Ub as E,Wa as m,Xa as Z,Ya as c,fb as a,gb as l,ha as k,hb as s,ib as x,ic as M,jb as v,kc as U,lb as h,lc as D,ob as C,pa as u,qa as f,qb as p,sc as B,tb as L,vc as A,za as b,zb as S}from"./chunk-6DRNAUKE.js";var q=e=>({"me-3":e}),G=e=>({"border-bottom pb-2":e});function Q(e,o){if(e&1){let t=h();x(0),a(1,"img",19),C("click",function(n){u(t);let d=p();return f(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(),c("src",t.image,_)}}function X(e,o){e&1&&s(0,"img",20)}function Y(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),s(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,_)}}function ee(e,o){if(e&1&&(a(0,"div",21),s(1,"i",22),a(2,"span"),g(3),l(),m(4,Y,4,1,"ng-container",23),l()),e&2){let t=p();i(3),w(t.code),i(),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function te(e,o){if(e&1){let t=h();a(0,"div",27),C("click",function(){u(t);let n=p();return f(n.onEventDesc())}),s(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),w(t.description)}}function ne(e,o){if(e&1){let t=h();a(0,"div",29)(1,"input",30),C("change",function(n){u(t);let d=p();return f(d.onCheck(n.target.checked))}),l()()}}function ie(e,o){if(e&1){let t=h();a(0,"button",31),C("click",function(){u(t);let n=p();return f(n.onDownload())}),s(1,"i",32),g(2," Download "),l()}}function oe(e,o){if(e&1){let t=h();a(0,"button",31),C("click",function(){u(t);let n=p();return f(n.onUpload())}),s(1,"i",33),g(2," Upload "),l()}}function re(e,o){if(e&1){let t=h();a(0,"button",34),C("click",function(){u(t);let n=p();return f(n.onScan())}),s(1,"i",35),g(2," Scan "),l()}}function ae(e,o){if(e&1&&(x(0),a(1,"a",37),s(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(),L("href",t.Url,_),i(),c("ngClass",P(4,q,r!=n.channels.length-1))("src",n.getChannelLogo(t),_)("matTooltip",t.Title?t.Title:t.Name)}}function ce(e,o){if(e&1&&(x(0),m(1,ae,3,6,"ng-container",36),v()),e&2){let t=p();i(),c("ngForOf",t.channels)}}function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),s(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",P(4,G,r!=n.channels.length-1)),i(),c("href",t.Url,_),i(),c("src",n.getChannelLogo(t),_),i(2),w(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),m(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),I(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new b,this.onScanEvent=new b,this.checkBoxChange=new b,this.onDescEvent=new b,this.onDownloadEvent=new b}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[O],decls:26,vars:11,consts:[["elsePic",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1){let y=h();a(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),m(6,Q,2,1,"ng-container",8)(7,X,1,0,"ng-template",null,0,E),l()()(),a(9,"div",9)(10,"h4",10),C("click",function(){return u(y),f(d.onEventDesc())}),g(11),l(),m(12,ee,5,2,"div",11)(13,te,4,1,"div",12),l(),a(14,"div",13)(15,"div",14),m(16,ne,2,0,"div",15),l()()()(),a(17,"div",16)(18,"div"),m(19,ie,3,0,"button",17)(20,oe,3,0,"button",17)(21,re,3,0,"button",18),l(),a(22,"div"),m(23,ce,2,1,"ng-container",8)(24,de,5,2,"ng-template",null,1,E),l()()()}if(n&2){let y=S(8),j=S(25);i(6),c("ngIf",d.image)("ngIfElse",y),i(5),I(" ",d.title," "),i(),c("ngIf",d.code),i(),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(),c("ngIf",d.uploadButton),i(),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",j)}},dependencies:[B,M,U,D,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();var pe=e=>({"border-bottom-0":e}),se=e=>({"border-bottom":e});function me(e,o){if(e&1){let t=h();x(0),a(1,"img",14),C("click",function(n){u(t);let d=p();return f(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(),c("ngSrc",t.image)("fill",!0)}}function ge(e,o){e&1&&s(0,"img",15),e&2&&c("fill",!0)}function ue(e,o){if(e&1&&(a(0,"div",16),s(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),w(t.code)}}function fe(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),s(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(),c("ngClass",P(4,se,r!==(n==null?null:n.Variants.length)-1)),i(2),$(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,_)}}function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),s(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),m(9,fe,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",P(10,pe,n.channels.length-1==r)),i(),c("id","heading"+r+n.id),i(),Z("data-bs-target","#collapse"+r+n.id)("aria-controls","#collapse"+r+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),_),i(),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(),w(t.ChannelName),i(),c("id","collapse"+r+n.id),Z("aria-labelledby","heading"+r+n.id),i(2),c("ngForOf",t.Variants)}}var Me=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[O],decls:16,vars:5,consts:[["elsePic",""],[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),m(6,me,2,2,"ng-container",7)(7,ge,1,1,"ng-template",null,0,E),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),m(12,ue,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),m(15,_e,10,12,"div",13),l()()()),n&2){let y=S(8);i(6),c("ngIf",d.image)("ngIfElse",y),i(5),I(" ",d.title," "),i(),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[B,M,U,D,F,z,N,A],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Me as b};
@@ -0,0 +1,2 @@
1
+ import{a as xe,b as Oe}from"./chunk-G5LCLRIW.js";import{a as Ee}from"./chunk-5ZUWMFL5.js";import{g as we}from"./chunk-DT3B54LD.js";import{d as ve,e as Me}from"./chunk-AL67KXJV.js";import{f as Ie}from"./chunk-7QECCYLR.js";import{b as _e,e as ye}from"./chunk-K3G6FMDF.js";import{A as E,q as j,s as x,t as O,z as w}from"./chunk-ZKBLXGXT.js";import{U as De}from"./chunk-6B64VOO7.js";import{b as be,h as B,k as R,u as Te}from"./chunk-SP6QPE3M.js";import{b as p,c as y}from"./chunk-6F6NSBIF.js";import{$ as se,Ab as c,B as oe,Bb as b,Cb as T,Eb as P,Fb as V,Gb as N,H as le,Ha as M,Ia as s,Ja as f,K as re,Kb as me,Rb as $,Sb as Z,T as J,Tb as he,Ub as K,V as H,Wa as u,Xa as X,Xc as Se,Ya as d,Za as pe,aa as de,c as W,ca as q,fb as l,gb as r,ha as S,hb as _,ia as ce,ib as U,ic as fe,jb as F,kc as D,lb as k,lc as A,n as ie,ob as g,pa as I,pc as ge,q as ae,qa as v,qb as h,rc as ue,sc as Ce,za as Q,zb as G}from"./chunk-6DRNAUKE.js";function Le(o,n){if(o&1&&(l(0,"mat-option",9)(1,"div",10),_(2,"img",11),l(3,"span"),c(4),r()()()),o&2){let i=n.$implicit;d("value",i.ID)("disabled",i.disabled),s(),d("matTooltip",i.disabled?"Single Product Scan disabled for this type of Channel":null),s(),d("src",i.Img,M),s(2),b(i.Name)}}function Ue(o,n){if(o&1){let i=k();l(0,"div",12)(1,"label",13),c(2,"Scan Type"),r(),l(3,"mat-radio-group",14),N("ngModelChange",function(e){I(i);let a=h();return V(a.filter.ScanFull,e)||(a.filter.ScanFull=e),v(e)}),l(4,"mat-radio-button",15),c(5," Full (Include Inactive Products) "),r(),l(6,"mat-radio-button",16),c(7," Active "),r()()()}if(o&2){let i=h();s(3),P("ngModel",i.filter.ScanFull),s(),d("value",!0),s(2),d("value",!1)}}function Fe(o,n){if(o&1){let i=k();l(0,"div",17)(1,"label",3),c(2),$(3,"date"),r(),l(4,"mat-radio-group",18),N("ngModelChange",function(e){I(i);let a=h();return V(a.filter.UpdatedProduct,e)||(a.filter.UpdatedProduct=e),v(e)}),l(5,"mat-radio-button",19),c(6," Scan All Products "),r(),l(7,"mat-radio-button",20),c(8),r()()()}if(o&2){let i=h();s(2),T(" Last Scan: ",he(3,6,i.selectedChannel.LastSync,"dd MMMM yyyy HH:mm")," "),s(2),P("ngModel",i.filter.UpdatedProduct),s(),d("value",!1),s(2),d("value",!0)("matTooltip",i.selectedChannel.TypeID==i.channelType.Tokopedia?"Use Tokopedia URL for mapping SKU between POS and Tokopedia":"Scan only products that have been updated since the last channel scan"),s(),T(" ",i.selectedChannel.TypeID==i.channelType.Tokopedia?"Product Download By URL":"Scan Updated Products"," ")}}function Ae(o,n){if(o&1){let i=k();l(0,"div",17)(1,"label",3),c(2," Scan Option "),r(),l(3,"mat-radio-group",21),N("ngModelChange",function(e){I(i);let a=h();return V(a.filter.Async,e)||(a.filter.Async=e),v(e)}),l(4,"mat-radio-button",22),c(5," Asynchronous (Get Notified when Complete) "),r(),l(6,"mat-radio-button",23),c(7," Synchronous (Wait until Complete) "),r()()()}if(o&2){let i=h();s(3),P("ngModel",i.filter.Async),s(),d("value",!0),s(2),d("value",!1)}}var rt=(()=>{let n=class n{constructor(t,e,a){this.dialogRef=t,this.data=e,this.router=a,this.channelType=p,this.disabledChannelOption=!1,this.filter={ChannelID:y.GuidEMpty,ScanFull:!0,UpdatedProduct:!1,Async:!1},this.isSingleChannel=y.IsNotEmpty(e.isSingleChannel)?this.data.isSingleChannel:!1,this.disabledChannelOption=y.IsEmpty(e.disabledChannelOption)?!1:this.data.disabledChannelOption}ngOnInit(){this.initChannelOptions(),this.initFilter(),this.onSelectChannel(this.data?.filter?.ChannelID),this.initModalConfig()}initModalConfig(){this.modalConfig=new w,this.modalConfig.title="Scan Marketplace",this.modalConfig.bodyScrollable=!0}initFilter(){this.filter.ChannelID=this.data?.filter?.ChannelID,this.filter.ScanFull=!1}initChannelOptions(){this.channelOptions=JSON.parse(JSON.stringify(this.data.channelOptions)),this.isSingleChannel&&(this.channelOptions=this.channelOptions.map(t=>(t.disabled=!0,(t.TypeID==p.Tiktok||t.TypeID==p.Tokopedia||t.TypeID==p.Lazada||t.TypeID==p.WooCommerce)&&(t.disabled=!1),t)).sort(t=>t.disabled?1:-1))}onSelectChannel(t){let e=this.filterChannelById(t);this.selectedChannel=e,this.filter.Async=!0,this.iniHasScanUpdate(),this.setDefaultConfigUpdate()}setDefaultConfigUpdate(){this.filter.UpdatedProduct=!1,this.selectedChannel&&y.IsNotEmpty(this.selectedChannel.LastSync)&&(this.selectedChannel.TypeID==p.Shopee||this.selectedChannel.TypeID==p.Tiktok||this.selectedChannel.TypeID==p.Lazada)&&(this.filter.UpdatedProduct=!0)}iniHasScanUpdate(){this.selectedChannel?.TypeID!=p.WooCommerce&&this.selectedChannel?.TypeID!=p.KalCare&&this.selectedChannel?.TypeID!=p.None&&y.IsNotEmpty(this.selectedChannel?.LastSync)&&!this.isSingleChannel?this.hasScanUpdate=!0:this.hasScanUpdate=!1}filterChannelById(t){let e;return this.channelOptions&&(e=this.channelOptions.find(a=>a.ID==t)),e}submit(){this.selectedChannel.TypeID==p.Tokopedia&&this.filter.UpdatedProduct?this.router.navigate(["/menu/products/download/by-url"]).then(()=>{this.dialogRef.close()}):(this.beforeSubmit(),this.dialogRef.close(this.filter))}beforeSubmit(){this.filter.UpdatedProduct&&(this.filter.Async=!1)}isNotEmpty(t){return y.IsNotEmpty(t)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(e){return new(e||n)(f(x),f(O),f(Se))},n.\u0275cmp=S({type:n,selectors:[["app-scan-dialog"]],decls:11,vars:8,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[1,"mx-4"],[1,"mb-2","fw-bold"],["appearance","outline",1,"w-100"],["name","channelid","placeholder","Channel",1,"mat-select-channel",3,"ngModelChange","disabled","ngModel"],["class","channel-option",3,"value","disabled",4,"ngFor","ngForOf"],["class","mt-4",4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"channel-option",3,"value","disabled"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip",3,"matTooltip"],[2,"width","18px","margin-right","10px",3,"src"],[1,"mt-4"],[1,"mb-2","fw-bold","mt-3"],["name","scanType",1,"form-control","h-100","round",3,"ngModelChange","ngModel"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Full Scan Product",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Only Active Product",1,"me-5",3,"value"],[1,"mt-8"],["name","ScanFull",1,"form-control","h-100","round",2,"line-height","2",3,"ngModelChange","ngModel"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Scan product from beginning ( use this if you haven't scanned at all)",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above",1,"me-5",3,"value","matTooltip"],["name","Async",1,"form-control","h-100","round",2,"line-height","2",3,"ngModelChange","ngModel"],["matTooltipClass","custom-width-tooltip","matTooltip","Scan is running in the background, status will be visible in the notification menu","matTooltipPosition","above",1,"me-5",3,"value"],[1,"me-5",3,"value"]],template:function(e,a){e&1&&(l(0,"modal-material",0),g("onOk",function(){return a.submit()})("onClose",function(){return a.onClose()})("onCancel",function(){return a.onClose()}),l(1,"div",1)(2,"div",2)(3,"label",3),c(4,"Select a Channel"),r(),l(5,"mat-form-field",4)(6,"mat-select",5),N("ngModelChange",function(C){return V(a.filter.ChannelID,C)||(a.filter.ChannelID=C),C}),g("ngModelChange",function(C){return a.onSelectChannel(C)}),u(7,Le,5,5,"mat-option",6),r()(),u(8,Ue,8,3,"div",7)(9,Fe,9,9,"div",8)(10,Ae,8,3,"div",8),r()()()),e&2&&(d("dynamicValidated",a.isNotEmpty(a.filter.ChannelID))("config",a.modalConfig),s(6),d("disabled",a.disabledChannelOption),P("ngModel",a.filter.ChannelID),s(),d("ngForOf",a.channelOptions),s(),d("ngIf",!a.isSingleChannel&&a.isNotEmpty(a.filter.ChannelID)),s(),d("ngIf",a.hasScanUpdate),s(),d("ngIf",!(a.filter!=null&&a.filter.UpdatedProduct)&&!a.isSingleChannel&&a.isNotEmpty(a.filter.ChannelID)))},dependencies:[D,A,B,R,xe,Oe,we,Ee,De,j,E,ge],encapsulation:2});let o=n;return o})();var L=function(o){return o.Tokopedia="https://seller.tokopedia.com",o.Shoope="https://seller.shopee.co.id",o.Tiktok="https://seller-id.tiktok.com",o.WooCommerce="https://woocommerce.dealpos.app",o.Lazada="https://sellercenter.lazada.co.id",o}(L||{});var Be=o=>({"is-disabled":o});function Re(o,n){if(o&1&&(U(0),l(1,"tr")(2,"td",11),c(3),r(),l(4,"td",11),c(5),r(),l(6,"td",12)(7,"p",13),c(8,"Product Not in Channel!"),r()()(),F()),o&2){let i=h().$implicit;s(3),T(" ",i==null?null:i.Model,""),s(2),T(" ",i==null?null:i.Code,"")}}function je(o,n){if(o&1&&(l(0,"td",11),c(1),r()),o&2){let i=h(3).$implicit;X("rowspan",i.Channel.length),s(),T(" ",i==null?null:i.Model,"")}}function We(o,n){if(o&1&&(l(0,"td",11),c(1),r()),o&2){let i=h(3).$implicit;X("rowspan",i.Channel.length),s(),T(" ",i==null?null:i.Code,"")}}function $e(o,n){if(o&1&&(l(0,"tr"),u(1,je,2,2,"td",14)(2,We,2,2,"td",14),l(3,"td",11)(4,"div",15)(5,"a",16),_(6,"img",17),r(),l(7,"div",18),c(8),r()()(),l(9,"td",11),c(10),$(11,"number"),r(),l(12,"td",19),c(13),$(14,"number"),r(),l(15,"td",19)(16,"a",20),_(17,"i",21),l(18,"span",22),c(19,"Edit"),r()()()()),o&2){let i=n.$implicit,t=n.index,e=h(3);s(),d("ngIf",t==0),s(),d("ngIf",t==0),s(3),d("href",i.Url,M)("title",i.Title),s(),d("src",e.getChannelLogo(i.TypeID),M),s(),d("matTooltip",(i==null||i.Name==null?null:i.Name.length)>55?i==null?null:i.Name:""),s(),T(" ",i.Name," "),s(2),b(Z(11,12,i.Price)),s(3),b(Z(14,14,i.Inventory)),s(3),d("href",e.getHyperlinkSellerCenter(i),M)("ngClass",me(16,Be,i.TypeID==e.channelType.KalCare))("matTooltip",i.TypeID!=e.channelType.KalCare?"Edit this product in Seller Center, inventory changes must be done via DEALPOS":"")}}function ze(o,n){if(o&1&&u(0,$e,20,18,"tr",9),o&2){let i=h().$implicit;d("ngForOf",i==null?null:i.Channel)}}function He(o,n){if(o&1&&(U(0),u(1,Re,9,2,"ng-container",10)(2,ze,1,1,"ng-template",null,0,K),F()),o&2){let i=n.$implicit,t=G(3);s(),d("ngIf",!i.Channel||i.Channel.length<1)("ngIfElse",t)}}var gt=(()=>{let n=class n{constructor(t,e){this.data=t,this.dialogRef=e,this.channelType=p,this.variants=t.variants,this.title=t.title}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new w,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0,this.modalConfig.hideCancel=!0,this.modalConfig.hideOk=!0}getChannelLogo(t){return y.getChannelLogoByTypeId(t)}getHyperlinkSellerCenter(t){let e="javascript:void(0)";switch(t.TypeID){case p.Shopee:e=`${L.Shoope}/portal/product/${t.ChannelItemID}`;break;case p.Tiktok:e=`${L.Tiktok}/product/edit/${t.ChannelItemID}`;break;case p.Tokopedia:e=`${L.Tokopedia}/edit-product/${t.ChannelItemID}`;break;case p.WooCommerce:e=`${L.WooCommerce}/wp-admin/post.php?post=${t.ChannelItemID}&action=edit`;break;case p.Lazada:e=`${L.Lazada}/apps/product/publish?productId=${t.ChannelItemID}`;break}return e}};n.\u0275fac=function(e){return new(e||n)(f(O),f(x))},n.\u0275cmp=S({type:n,selectors:[["app-modal-variant"]],decls:22,vars:2,consts:[["printChannelModal",""],[3,"onCancel","config"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"text-start","sticky-top"],["matTooltip","Variant from POS",1,"fas","fa-info-circle","ms-1"],["matTooltip","Product and Variant from each Channel",1,"fas","fa-info-circle","ms-1"],[1,"text-start","sticky-top",2,"width","0%"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[1,"text-start"],["colspan","3",1,"text-center"],[1,"my-auto"],["class","text-start",4,"ngIf"],[1,"d-flex"],["target","_blank",1,"me-1",3,"href","title"],[2,"width","20px","height","20px",3,"src"],[1,"text-ellipsis","ps-2",2,"max-width","18vw",3,"matTooltip"],[1,"text-center"],["target","_blank",1,"btn","btn-small","btn-light","px-4","py-2",3,"href","ngClass","matTooltip"],[1,"fa-solid","fa-pencil","me-2",2,"font-size","10px"],[1,"fs-6"]],template:function(e,a){e&1&&(l(0,"modal-material",1),g("onCancel",function(){return a.dialogRef.close()}),l(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr")(5,"th",5),c(6," VARIANT "),l(7,"sup"),_(8,"i",6),r()(),l(9,"th",5),c(10,"SKU"),r(),l(11,"th",5),c(12," PRODUCT "),l(13,"sup"),_(14,"i",7),r()(),l(15,"th",5),c(16,"PRICE"),r(),l(17,"th",8),c(18,"INVENTORY"),r(),_(19,"th",5),r()(),l(20,"tbody"),u(21,He,4,2,"ng-container",9),r()()()()),e&2&&(d("config",a.modalConfig),s(21),d("ngForOf",a.variants))},dependencies:[fe,D,A,j,E,ue],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fff!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}a.is-disabled[_ngcontent-%COMP%]{color:gray;cursor:default}a.is-disabled[_ngcontent-%COMP%]:hover{text-decoration:none}"]});let o=n;return o})();var Y=class{constructor(){this._input$=new W,this._destroy$=new W,this._loading=!1,this._bufferSize=50,this.data=[]}onSearch(){this._input$.pipe(le(200),re(),ae(n=>(n&&(n=n.toLowerCase()),this.filterData(n))),oe(n=>n!==void 0),H(this._destroy$)).subscribe(n=>{this._dataBuffer=n.slice(0,this._bufferSize)})}onClear(){this._dataBuffer=this._data.slice(0,this._bufferSize)}filterData(n){let i=-1,t;return this._data.filter(a=>(t=JSON.stringify(a).toLowerCase(),i=t.indexOf(n),i!==-1||n==null))}get input$(){return this._input$}get bufferData(){return this._dataBuffer}get loading(){return this._loading}set data(n){this._data=n||[],this._dataBuffer=this._data.slice(0,this._bufferSize),this.onSearch()}initSelectedValue(n,i){if(y.IsNotEmpty(n)){let t=this._data.filter(e=>e[i].toString().toLowerCase().indexOf(n)!==-1);this._dataBuffer=t.slice(0,this._bufferSize)}}set bufferSize(n){this._bufferSize=n}onScrollToEnd(){this.fetchMore()}fetchMore(){let n=this._dataBuffer.length,i=this._data.slice(n,this._bufferSize+n);this._loading=!0,setTimeout(()=>{this._loading=!1,this._dataBuffer=this._dataBuffer.concat(i)},200)}destroy(){this._destroy$.next(!0),this._destroy$.complete()}};var Ve=(()=>{let n=class n{set items(t){this.ngSelectInfiniteScroll.data=t,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}get selected(){return this._selected}set selected(t){this._selected=t,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}constructor(){this.width="100%",this.clearable=!0,this.disabled=!1,this.ngSelectInfiniteScroll=new Y,this.selectedChange=new Q,this.selectedLabel=new Q}onSelectChange(t){t?(this.selectedChange.emit(t[this.bindValue]),this.selectedLabel.emit(t[this.bindLabel])):(this.selectedChange.emit(null),this.selectedLabel.emit(null))}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=S({type:n,selectors:[["ng-select-infinite"]],inputs:{placeholder:"placeholder",bindValue:"bindValue",bindLabel:"bindLabel",width:"width",clearable:"clearable",parent:"parent",disabled:"disabled",items:"items",selected:"selected"},outputs:{selectedChange:"selectedChange",selectedLabel:"selectedLabel"},decls:1,vars:12,consts:[[3,"clear","scrollToEnd","change","disabled","virtualScroll","typeahead","items","bindLabel","bindValue","placeholder","ngModel","clearable","appendTo"]],template:function(e,a){e&1&&(l(0,"ng-select",0),g("clear",function(){return a.ngSelectInfiniteScroll.onClear()})("scrollToEnd",function(){return a.ngSelectInfiniteScroll.onScrollToEnd()})("change",function(C){return a.onSelectChange(C)}),r()),e&2&&(pe("width",a.width),d("disabled",a.disabled)("virtualScroll",!0)("typeahead",a.ngSelectInfiniteScroll.input$)("items",a.ngSelectInfiniteScroll.bufferData)("bindLabel",a.bindLabel)("bindValue",a.bindValue)("placeholder",a.placeholder)("ngModel",a.selected)("clearable",a.clearable)("appendTo",a.parent))},dependencies:[ve,B,R]});let o=n;return o})(),kt=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ce({type:n}),n.\u0275inj=de({imports:[Ce,Me,Te]});let o=n;return o})();var Ne=(()=>{let n=class n{constructor(t,e){this.LocalData=t,this.httpService=e}getCategoriesByTypeId(t,e){return this.LocalData.getCategoriesByChannelType(t).pipe(J(a=>a!=null?ie(a):this._getCategoriesByTypeID(t,e)))}_getCategoriesByTypeID(t,e){let a={TypeID:t,ID:e};return this.httpService.post("/api/Channel/getCategoriesByTypeID",a).pipe(J(m=>this.LocalData.saveCategoriesByChannelType(m,t)))}};n.\u0275fac=function(e){return new(e||n)(q(Ie),q(ye))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();function Ye(o,n){if(o&1){let i=k();U(0),l(1,"ng-select-infinite",16),g("selectedChange",function(e){I(i);let a=h().index,m=h();return v(m.onSelectCategory(e,a))}),r(),F()}if(o&2){let i=h().$implicit;s(),d("items",i.Categories)("clearable",!1)}}function Je(o,n){if(o&1&&(l(0,"div",17),_(1,"input",18),r()),o&2){let i=h().$implicit,t=h();d("matTooltip",t.channelType.WooCommerce==i.TypeID||t.channelType.Shopify==i.TypeID?"":"Product Category is Harcoded, Please Change Product Category in Seller Center"),s(),d("placeholder",t.getChannelCategory(i.TypeID))}}function qe(o,n){if(o&1){let i=k();U(0),l(1,"tr")(2,"td",10)(3,"input",11),N("ngModelChange",function(e){let a=I(i).$implicit;return V(a.Selected,e)||(a.Selected=e),v(e)}),g("ngModelChange",function(){I(i);let e=h();return v(e.onSelectChannel())}),r()(),l(4,"td")(5,"div",12),_(6,"img",13),l(7,"span",14),c(8),r()()(),l(9,"td"),u(10,Ye,2,2,"ng-container",15)(11,Je,2,2,"ng-template",null,0,K),r()(),F()}if(o&2){let i=n.$implicit,t=G(12);s(3),P("ngModel",i.Selected),s(3),d("src",i==null?null:i.Img,M)("alt",i.Name),s(2),b(i.Name),s(2),d("ngIf",i.Categories.length>0)("ngIfElse",t)}}var Rt=(()=>{let n=class n{constructor(t,e,a,m){this.data=t,this.channelService=e,this.dialogRef=a,this.toastrService=m,this.channelOptions=[],this.uploadResponse=[],this.channelType=p,this.enableBtnOk=!1,this.destroy$=new W,this.uploadResponse=[],this.channels=this.data.channels,this.product=t.product}ngOnInit(){this.initModalConfig(),this.initChannelOptions(),this.initCategories()}initModalConfig(){this.modalConfig=new w,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0}initCategories(){this.filterChannelTypeId().forEach(e=>{this.channelService.getCategoriesByTypeId(e.channelType,e.channelId).pipe(H(this.destroy$)).subscribe(a=>{this.setCategoriesChannelOption(e.channelType,a)})})}setCategoriesChannelOption(t,e){this.channelOptions=this.channelOptions.map(a=>(a.TypeID==t&&(a.Categories=e),a))}initChannelOptions(){this.channelOptions=this.channels.map(t=>({Name:t.Name,Img:t.Img,ID:t.ID,Selected:!1,CategoryID:this.initDefaultChannelCategoryId(t.TypeID),TypeID:t.TypeID,Categories:[]}))}initDefaultChannelCategoryId(t){let e=0;switch(t){case p.Lazada:e=6509;break}return e}filterChannelTypeId(){return this.data.channels.map(e=>({channelType:e.TypeID,channelId:e.ID})).filter((e,a,m)=>m.findIndex(C=>e.channelType==C.channelType)==a).filter(e=>e.channelType==p.Tokopedia)}onSelectCategory(t,e){this.channelOptions[e].CategoryID=t,this.channelOptions[e].Selected=!0,this.onSelectChannel()}onSelectAllChannel(t){this.channelOptions=this.channelOptions.map(e=>(e.Selected=t,e)),this.enableBtnOk=t}onSelectChannel(){this.enableBtnOk=this.hasSelectedChannel()}hasSelectedChannel(){return this.channelOptions.findIndex(t=>t.Selected)!==-1}onClose(){this.dialogRef.close()}onSave(){if(!this.validateSelectedCategory()){this.toastrService.warning("Category is required","Warning!");return}let t=this.channelOptions.filter(e=>e.Selected).map(e=>({CategoryID:e.CategoryID,ChannelID:e.ID}));this.dialogRef.close(t)}validateSelectedCategory(){return this.channelOptions.filter(e=>e.Selected).filter(e=>e.TypeID==p.Tokopedia).findIndex(e=>e.CategoryID==0)==-1}getChannelCategory(t){let e;switch(t){case p.Shopee:e="Aksesoris Fashion";break;case p.Tiktok:e="Aksesoris Fashion - Aksesoris Pakaian";break;case p.WooCommerce:e=this.product?.Category?this.product?.Category:"Following the category in POS";break;case p.Lazada:e="Fashion Accessories / Women Accessories / Others";break;case p.Shopify:e=this.product?.Category?this.product?.Category:"Following the category in POS";break;default:e="Unavailable Category"}return e}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(e){return new(e||n)(f(O),f(Ne),f(x),f(_e))},n.\u0275cmp=S({type:n,selectors:[["app-modal-uploadMultiple-product"]],decls:15,vars:3,consts:[["EMPTY",""],[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[1,"table"],[1,"text-center",2,"width","6%"],["type","checkbox",3,"change"],[2,"width","30%"],[1,"fs-6"],[2,"width","60%"],[4,"ngFor","ngForOf"],[1,"text-center"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src","alt"],[1,"ms-3","fs-6"],[4,"ngIf","ngIfElse"],["bindValue","Key","bindLabel","Value","width","100%","parent","body","position","top","placeholder","Select Category",3,"selectedChange","items","clearable"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip",3,"matTooltip"],["type","text","disabled","",1,"form-control","rounded",2,"height","40px",3,"placeholder"]],template:function(e,a){e&1&&(l(0,"modal-material",1),g("onOk",function(){return a.onSave()})("onClose",function(){return a.onClose()})("onCancel",function(){return a.onClose()}),l(1,"div",2)(2,"table",3)(3,"thead")(4,"tr")(5,"th",4)(6,"input",5),g("change",function(C){return a.onSelectAllChannel(C.target.checked)}),r()(),l(7,"th",6)(8,"span",7),c(9,"CHANNEL"),r()(),l(10,"th",8)(11,"span",7),c(12,"CATEGORY"),r()()()(),l(13,"tbody"),u(14,qe,13,6,"ng-container",9),r()()()()),e&2&&(d("dynamicValidated",a.enableBtnOk)("config",a.modalConfig),s(14),d("ngForOf",a.channelOptions))},dependencies:[D,A,be,B,R,j,E,Ve],styles:[`input[type=checkbox]{width:15px;height:15px}table>thead>tr{border-top:none!important;border-left:none!important;border-right:none!important}
2
+ `],encapsulation:2});let o=n;return o})();function Qe(o,n){if(o&1&&(l(0,"tr")(1,"td"),c(2),r(),l(3,"td"),c(4),r()()),o&2){let i=n.$implicit;s(2),b(i==null?null:i.Name),s(2),b(i==null?null:i.ChannelVariationSKU)}}var zt=(()=>{let n=class n{constructor(t,e){this.data=t,this.dialogRef=e}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new w,this.modalConfig.title=this.data?.title,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0}};n.\u0275fac=function(e){return new(e||n)(f(O),f(x))},n.\u0275cmp=S({type:n,selectors:[["app-modal-variants"]],decls:11,vars:2,consts:[[3,"onCancel","config"],["content",""],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"]],template:function(e,a){e&1&&(l(0,"modal-material",0),g("onCancel",function(){return a.dialogRef.close()}),l(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th"),c(6,"Variant"),r(),l(7,"th"),c(8,"SKU"),r()()(),l(9,"tbody"),u(10,Qe,5,2,"tr",4),r()()()()),e&2&&(d("config",a.modalConfig),s(10),d("ngForOf",a.data.variants))},dependencies:[D,E],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]});let o=n;return o})();export{rt as a,gt as b,kt as c,Rt as d,zt as e};
@@ -0,0 +1 @@
1
+ import{d as Xe,e as Ue,h as $e}from"./chunk-DT3B54LD.js";import{b as We,e as je,f as Be,m as $,n as Z,o as J,p as He}from"./chunk-ZKBLXGXT.js";import{A as Pe,E as Le,I as ee,J as Ne,O as Ke,S as qe,T as ze,U as Qe,V as Ge,W as Ye,X as te,g as X,q as Fe,r as U,t as Ve}from"./chunk-6B64VOO7.js";import{e as Ae,g as De,j as Ee,n as Re}from"./chunk-SP6QPE3M.js";import{A as S,Ab as q,B as L,Bb as z,Hb as Oe,Hc as G,I as re,Ia as f,Ib as Me,Ic as Y,Ja as l,K as se,Lc as E,Mc as Ie,Oc as R,Pc as xe,Qa as ge,Qc as Te,S as W,T as j,V as u,Va as _e,Wa as x,Xa as T,Ya as B,_a as fe,aa as oe,ab as ye,ac as we,ba as k,bb as H,bc as O,c as M,cc as Q,da as le,fb as p,ga as h,gb as y,ha as ce,hb as ve,ia as de,ic as Se,lb as N,oa as he,ob as w,pa as g,q as P,qa as _,qb as v,ra as pe,rb as be,sb as K,sc as ke,ua as me,v as ne,vb as A,wb as D,xb as b,ya as ue,yb as C,za as I,zb as Ce}from"./chunk-6DRNAUKE.js";var pt=["trigger"],mt=["panel"],ut=[[["mat-select-trigger"]],"*"],gt=["mat-select-trigger","*"];function _t(n,r){if(n&1&&(p(0,"span",4),q(1),y()),n&2){let o=v();f(),z(o.placeholder)}}function ft(n,r){n&1&&K(0)}function yt(n,r){if(n&1&&(p(0,"span",11),q(1),y()),n&2){let o=v(2);f(),z(o.triggerValue)}}function vt(n,r){if(n&1&&(p(0,"span",10),x(1,ft,1,0)(2,yt,2,1),y()),n&2){let o=v();f(),H(1,o.customTrigger?1:2)}}function bt(n,r){if(n&1){let o=N();p(0,"div",12,1),w("@transformPanel.done",function(t){g(o);let i=v();return _(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){g(o);let i=v();return _(i._handleKeydown(t))}),K(2,1),y()}if(n&2){let o=v();ye("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),B("ngClass",o.panelClass)("@transformPanel","showing"),T("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var Ct={transformPanelWrap:G("transformPanelWrap",[R("* => void",Te("@transformPanel",[xe()],{optional:!0}))]),transformPanel:G("transformPanel",[Ie("void",E({opacity:0,transform:"scale(1, 0.8)"})),R("void => showing",Y("120ms cubic-bezier(0, 0, 0.2, 1)",E({opacity:1,transform:"scale(1, 1)"}))),R("* => void",Y("100ms linear",E({opacity:0})))])};var it=0,at=new k("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=le($);return()=>n.scrollStrategies.reposition()}});function Ot(n){return()=>n.scrollStrategies.reposition()}var Mt=new k("MAT_SELECT_CONFIG"),wt={provide:at,deps:[$],useFactory:Ot},St=new k("MatSelectTrigger"),ie=class{constructor(r,o){this.source=r,this.value=o}},si=(()=>{let r=class r{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Ge(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Ye(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new ie(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Ae.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}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)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,a,s,m,c,nt,rt,ae,st,ot,lt,F){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=m,this._parentFormField=rt,this.ngControl=ae,this._liveAnnouncer=lt,this._defaultOptions=F,this._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"}],this._panelOpen=!1,this._compareWith=(d,V)=>d===V,this._uid=`mat-select-${it++}`,this._triggerAriaLabelledBy=null,this._destroy=new M,this.stateChanges=new M,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${it++}`,this._panelDoneAnimatingStream=new M,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new M,this.optionSelectionChanges=ne(()=>{let d=this.options;return d?d.changes.pipe(W(d),j(()=>S(...d.map(V=>V.onSelectionChange)))):this._initialized.pipe(j(()=>this.optionSelectionChanges))}),this.openedChange=new I,this._openedStream=this.openedChange.pipe(L(d=>d),P(()=>{})),this._closedStream=this.openedChange.pipe(L(d=>!d),P(()=>{})),this.selectionChange=new I,this.valueChange=new I,this._trackedModal=null,this._skipPredicate=d=>this.panelOpen?!1:d.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),F?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=F.typeaheadDebounceInterval),this._errorStateTracker=new Ne(a,ae,nt,c,this.stateChanges),this._scrollStrategyFactory=ot,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(st)||0,this.id=this.id}ngOnInit(){this._selectionModel=new We(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(se(),u(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(u(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(u(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(W(null),u(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._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._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&U(this._trackedModal,"aria-owns",t),Fe(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;U(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}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,s=this._keyManager;if(!s.isTyping()&&a&&!X(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let m=this.selected;s.onKeydown(e);let c=this.selected;c&&m!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,s=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!X(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let m=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(m?c.select():c.deselect())})}else{let m=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==m&&t.activeItem._selectViaInteraction()}}_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())}_onAttached(){this._overlayDir.positionChange.pipe(re(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_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._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}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Z?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=S(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(u(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),S(...this.options.map(t=>t._stateChanges)).pipe(u(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);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}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),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(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(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}};r.\u0275fac=function(t){return new(t||r)(l(je),l(we),l(ge),l(Ke),l(ue),l(Le,8),l(Ee,8),l(Re,8),l(Ue,8),l(De,10),me("tabindex"),l(at),l(Pe),l(Mt,8))},r.\u0275cmp=ce({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,St,5),A(a,Qe,5),A(a,ze,5)),t&2){let s;b(s=C())&&(i.customTrigger=s.first),b(s=C())&&(i.options=s),b(s=C())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(D(pt,5),D(mt,5),D(J,5)),t&2){let a;b(a=C())&&(i.trigger=a.first),b(a=C())&&(i.panel=a.first),b(a=C())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&w("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(T("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()),fe("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:[h.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[h.HasDecoratorInputTransform,"disabled","disabled",O],disableRipple:[h.HasDecoratorInputTransform,"disableRipple","disableRipple",O],tabIndex:[h.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:Q(e)],hideSingleSelectionIndicator:[h.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",O],placeholder:"placeholder",required:[h.HasDecoratorInputTransform,"required","required",O],multiple:[h.HasDecoratorInputTransform,"multiple","multiple",O],disableOptionCentering:[h.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",O],compareWith:"compareWith",value:"value",ariaLabel:[h.None,"aria-label","ariaLabel"],ariaLabelledby:[h.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[h.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",Q],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Oe([{provide:Xe,useExisting:r},{provide:qe,useExisting:r}]),_e,he,Me],ngContentSelectors:gt,decls:11,vars:8,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-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,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=N();be(ut),p(0,"div",2,0),w("click",function(){return g(a),_(i.open())}),p(3,"div",3),x(4,_t,2,1,"span",4)(5,vt,3,1),y(),p(6,"div",5)(7,"div",6),pe(),p(8,"svg",7),ve(9,"path",8),y()()()(),x(10,bt,3,9,"ng-template",9),w("backdropClick",function(){return g(a),_(i.close())})("attach",function(){return g(a),_(i._onAttached())})("detach",function(){return g(a),_(i.close())})}if(t&2){let a=Ce(1);f(3),T("id",i._valueId),f(),H(4,i.empty?4:5),f(6),B("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[Z,J,Se],styles:['.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);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.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)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .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:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-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}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.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)}._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)}'],encapsulation:2,data:{animation:[Ct.transformPanel]},changeDetection:0});let n=r;return n})();var oi=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=de({type:r}),r.\u0275inj=oe({providers:[wt],imports:[ke,He,te,ee,Be,$e,te,ee]});let n=r;return n})();export{si as a,oi as b};
@@ -0,0 +1 @@
1
+ import{$ as h,Aa as fe,Ab as lt,B as Xe,Ba as it,Ca as nt,Cb as ht,Da as Q,Ea as st,H as $,I as z,Ia as P,Ib as ie,Ja as u,K as qe,Qa as I,R as G,S as Je,Sa as pe,V as Z,Va as B,Wa as ge,X as et,Xa as _e,Ya as X,_a as U,_b as ut,a as ze,aa as f,ac as mt,b as me,ba as p,bb as q,bc as V,c as w,ca as c,d as Ge,da as g,dc as ft,fb as be,ga as v,gb as ve,gc as y,ha as Y,hb as J,ia as _,ja as x,mb as ot,n as Ze,oa as tt,ob as rt,q as j,qb as ee,r as Ye,rb as ye,sb as te,tc as pt,u as Qe,wb as at,xb as ct,ya as D,yb as dt,za as F}from"./chunk-6DRNAUKE.js";import{a as m,b as $e}from"./chunk-GRMIXZTT.js";var Ie;try{Ie=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ie=!1}var b=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?pt(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Ie)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(c(nt))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var R,gt=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function kn(){if(R)return R;if(typeof document!="object"||!document)return R=new Set(gt),R;let n=document.createElement("input");return R=new Set(gt.filter(e=>(n.setAttribute("type",e),n.type===e))),R}var H;function Gt(){if(H==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>H=!0}))}finally{H=H||!1}return H}function L(n){return Gt()?n:!!n.capture}var M;function xn(){if(M==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return M=!1,M;if("scrollBehavior"in document.documentElement.style)M=!0;else{let n=Element.prototype.scrollTo;n?M=!/\{\s*\[native code\]\s*\}/.test(n.toString()):M=!1}}return M}var Ee;function Zt(){if(Ee==null){let n=typeof document<"u"?document.head:null;Ee=!!(n&&(n.createShadowRoot||n.attachShadow))}return Ee}function _t(n){if(Zt()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function bt(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function T(n){return n.composedPath?n.composedPath()[0]:n.target}function vt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ne(n,...e){return e.length?e.some(o=>n[o]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Yt(n){return n!=null&&`${n}`!="false"}function Qt(n,e=0){return Xt(n)?Number(n):e}function Xt(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function we(n){return Array.isArray(n)?n:[n]}function Nn(n){return n==null?"":typeof n=="string"?n:`${n}px`}function C(n){return n instanceof D?n.nativeElement:n}function On(n,e=/\s+/){let o=[];if(n!=null){let t=Array.isArray(n)?n:`${n}`.split(e);for(let i of t){let s=`${i}`.trim();s&&o.push(s)}}return o}var qt=(()=>{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var yt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=_({type:e}),e.\u0275inj=f({providers:[qt]});let n=e;return n})();var Et=new Set,N,Jt=(()=>{let e=class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ti}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&ei(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(i){return new(i||e)(c(b),c(st,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ei(n,e){if(!Et.has(n))try{N||(N=document.createElement("style"),e&&N.setAttribute("nonce",e),N.setAttribute("type","text/css"),document.head.appendChild(N)),N.sheet&&(N.sheet.insertRule(`@media ${n} {body{ }}`,0),Et.add(n))}catch(o){console.error(o)}}function ti(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var At=(()=>{let e=class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new w}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return It(we(t)).some(s=>this._registerQuery(s).mql.matches)}observe(t){let s=It(we(t)).map(a=>this._registerQuery(a).observable),r=Ye(s);return r=Qe(r.pipe(z(1)),r.pipe(G(1),$(0))),r.pipe(j(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:E,query:l})=>{d.matches=d.matches||E,d.breakpoints[l]=E}),d}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let i=this._mediaMatcher.matchMedia(t),r={observable:new me(a=>{let d=E=>this._zone.run(()=>a.next(E));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(Je(i),j(({matches:a})=>({query:t,matches:a})),Z(this._destroySubject)),mql:i};return this._queries.set(t,r),r}};e.\u0275fac=function(i){return new(i||e)(c(Jt),c(I))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function It(n){return n.map(e=>e.split(",")).reduce((e,o)=>e.concat(o)).map(e=>e.trim())}var Ct=" ";function yi(n,e,o){let t=ae(n,e);o=o.trim(),!t.some(i=>i.trim()===o)&&(t.push(o),n.setAttribute(e,t.join(Ct)))}function Ei(n,e,o){let t=ae(n,e);o=o.trim();let i=t.filter(s=>s!==o);i.length?n.setAttribute(e,i.join(Ct)):n.removeAttribute(e)}function ae(n,e){return n.getAttribute(e)?.match(/\S+/g)??[]}var Nt="cdk-describedby-message",se="cdk-describedby-host",ke=0,rs=(()=>{let e=class e{constructor(t,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${ke++}`,this._document=t,this._id=g(it)+"-"+ke++}describe(t,i,s){if(!this._canBeDescribed(t,i))return;let r=De(i,s);typeof i!="string"?(wt(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(t,r)||this._addMessageReference(t,r)}removeDescription(t,i,s){if(!i||!this._isElementNode(t))return;let r=De(i,s);if(this._isElementDescribedByMessage(t,r)&&this._removeMessageReference(t,r),typeof i=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${se}="${this._id}"]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(se);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,i){let s=this._document.createElement("div");wt(s,this._id),s.textContent=t,i&&s.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(s),this._messageRegistry.set(De(t,i),{messageElement:s,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();let s=this._document.createElement("div");s.style.visibility="hidden",s.classList.add(t),s.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&s.setAttribute("platform","server"),this._document.body.appendChild(s),this._messagesContainer=s}_removeCdkDescribedByReferenceIds(t){let i=ae(t,"aria-describedby").filter(s=>s.indexOf(Nt)!=0);t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){let s=this._messageRegistry.get(i);yi(t,"aria-describedby",s.messageElement.id),t.setAttribute(se,this._id),s.referenceCount++}_removeMessageReference(t,i){let s=this._messageRegistry.get(i);s.referenceCount--,Ei(t,"aria-describedby",s.messageElement.id),t.removeAttribute(se)}_isElementDescribedByMessage(t,i){let s=ae(t,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&s.indexOf(a)!=-1}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&typeof i=="object")return!0;let s=i==null?"":`${i}`.trim(),r=t.getAttribute("aria-label");return s?!r||r.trim()!==s:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(c(y),c(b))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function De(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function wt(n,e){n.id||(n.id=`${Nt}-${e}-${ke++}`)}var ce=class{constructor(e,o){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w,this._typeaheadSubscription=ze.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new w,this.change=new w,e instanceof fe?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):pe(e)&&(this._effectRef=ft(()=>this._itemsChanged(e()),{injector:o}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(et(o=>this._pressedLetters.push(o)),$(e),Xe(()=>this._pressedLetters.length>0),j(()=>this._pressedLetters.join(""))).subscribe(o=>{let t=this._getItemsArray();for(let i=1;i<t.length+1;i++){let s=(this._activeItemIndex+i)%t.length,r=t[s];if(!this._skipPredicateFn(r)&&r.getLabel().toUpperCase().trim().indexOf(o)===0){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,o=10){return this._pageUpAndDown={enabled:e,delta:o},this}setActiveItem(e){let o=this._activeItem;this.updateActiveItem(e),this._activeItem!==o&&this.change.next(this._activeItemIndex)}onKeydown(e){let o=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(o){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){let s=this._activeItemIndex+this._pageUpAndDown.delta,r=this._getItemsArray().length;this._setActiveItemByIndex(s<r?s:r-1,-1);break}else return;default:(i||ne(e,"shiftKey"))&&(e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(o>=65&&o<=90||o>=48&&o<=57)&&this._letterKeyStream.next(String.fromCharCode(o)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let o=this._getItemsArray(),t=typeof e=="number"?e:o.indexOf(e),i=o[t];this._activeItem=i??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let o=this._getItemsArray();for(let t=1;t<=o.length;t++){let i=(this._activeItemIndex+e*t+o.length)%o.length,s=o[i];if(!this._skipPredicateFn(s)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,o){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=o,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return pe(this._items)?this._items():this._items instanceof fe?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let o=e.indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}},Dt=class extends ce{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},Tt=class extends ce{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Ii=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return wi(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let i=Ai(Oi(t));if(i&&(kt(i)===-1||!this.isVisible(i)))return!1;let s=t.nodeName.toLowerCase(),r=kt(t);return t.hasAttribute("contenteditable")?r!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Ci(t)?!1:s==="audio"?t.hasAttribute("controls")?r!==-1:!1:s==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,i){return Ni(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(i){return new(i||e)(c(b))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ai(n){try{return n.frameElement}catch{return null}}function wi(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function Di(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Ti(n){return xi(n)&&n.type=="hidden"}function ki(n){return Mi(n)&&n.hasAttribute("href")}function xi(n){return n.nodeName.toLowerCase()=="input"}function Mi(n){return n.nodeName.toLowerCase()=="a"}function Ot(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function kt(n){if(!Ot(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Ci(n){let e=n.nodeName.toLowerCase(),o=e==="input"&&n.type;return o==="text"||o==="password"||e==="select"||e==="textarea"}function Ni(n){return Ti(n)?!1:Di(n)||ki(n)||n.hasAttribute("contenteditable")||Ot(n)}function Oi(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var xe=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,o,t,i,s=!1){this._element=e,this._checker=o,this._ngZone=t,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){let e=this._startAnchor,o=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),o&&(o.removeEventListener("focus",this.endAnchorListener),o.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(o=>{this._executeOnStable(()=>o(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(o=>{this._executeOnStable(()=>o(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(o=>{this._executeOnStable(()=>o(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let o=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?o.length?o[0]:this._getFirstTabbableElement(this._element):o.length?o[o.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let o=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(o){if(!this._checker.isFocusable(o)){let t=this._getFirstTabbableElement(o);return t?.focus(e),!!t}return o.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let o=this._getRegionBoundary("start");return o&&o.focus(e),!!o}focusLastTabbableElement(e){let o=this._getRegionBoundary("end");return o&&o.focus(e),!!o}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let o=e.children;for(let t=0;t<o.length;t++){let i=o[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(o[t]):null;if(i)return i}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let o=e.children;for(let t=o.length-1;t>=0;t--){let i=o[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(o[t]):null;if(i)return i}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,o){e?o.setAttribute("tabindex","0"):o.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(z(1)).subscribe(e)}},Fi=(()=>{let e=class e{constructor(t,i,s){this._checker=t,this._ngZone=i,this._document=s}create(t,i=!1){return new xe(t,this._checker,this._ngZone,this._document,i)}};e.\u0275fac=function(i){return new(i||e)(c(Ii),c(I),c(y))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),as=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}constructor(t,i,s){this._elementRef=t,this._focusTrapFactory=i,this._previouslyFocusedElement=null,g(b).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(t){let i=t.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=bt(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(i){return new(i||e)(u(D),u(Fi),u(y))},e.\u0275dir=x({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[v.HasDecoratorInputTransform,"cdkTrapFocus","enabled",V],autoCapture:[v.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",V]},exportAs:["cdkTrapFocus"],standalone:!0,features:[B,tt]});let n=e;return n})();function Me(n){return n.buttons===0||n.detail===0}function Ce(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var Ri=new p("cdk-input-modality-detector-options"),Li={ignoreKeys:[18,17,224,91,16]},Ft=650,S=L({passive:!0,capture:!0}),Si=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,i,s,r){this._platform=t,this._mostRecentTarget=null,this._modality=new Ge(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(d=>d===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=T(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<Ft||(this._modality.next(Me(a)?"keyboard":"mouse"),this._mostRecentTarget=T(a))},this._onTouchstart=a=>{if(Ce(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=T(a)},this._options=m(m({},Li),r),this.modalityDetected=this._modality.pipe(G(1)),this.modalityChanged=this.modalityDetected.pipe(qe()),t.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,S),s.addEventListener("mousedown",this._onMousedown,S),s.addEventListener("touchstart",this._onTouchstart,S)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,S),document.removeEventListener("mousedown",this._onMousedown,S),document.removeEventListener("touchstart",this._onTouchstart,S))}};e.\u0275fac=function(i){return new(i||e)(c(b),c(I),c(y),c(Ri,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ji=new p("liveAnnouncerElement",{providedIn:"root",factory:Pi});function Pi(){return null}var Bi=new p("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ui=0,cs=(()=>{let e=class e{constructor(t,i,s,r){this._ngZone=i,this._defaultOptions=r,this._document=s,this._liveElement=t||this._createLiveElement()}announce(t,...i){let s=this._defaultOptions,r,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=s&&s.politeness?s.politeness:"polite"),a==null&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",i=this._document.getElementsByClassName(t),s=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return s.classList.add(t),s.classList.add("cdk-visually-hidden"),s.setAttribute("aria-atomic","true"),s.setAttribute("aria-live","polite"),s.id=`cdk-live-announcer-${Ui++}`,this._document.body.appendChild(s),s}_exposeAnnouncerToModals(t){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s<i.length;s++){let r=i[s],a=r.getAttribute("aria-owns");a?a.indexOf(t)===-1&&r.setAttribute("aria-owns",a+" "+t):r.setAttribute("aria-owns",t)}}};e.\u0275fac=function(i){return new(i||e)(c(ji,8),c(I),c(y),c(Bi,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var re=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(re||{}),Vi=new p("cdk-focus-monitor-default-options"),oe=L({passive:!0,capture:!0}),Hi=(()=>{let e=class e{constructor(t,i,s,r,a){this._ngZone=t,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new w,this._rootNodeFocusAndBlurListener=d=>{let E=T(d);for(let l=E;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=r,this._detectionMode=a?.detectionMode||re.IMMEDIATE}monitor(t,i=!1){let s=C(t);if(!this._platform.isBrowser||s.nodeType!==1)return Ze();let r=_t(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return i&&(a.checkChildren=!0),a.subject;let d={checkChildren:i,subject:new w,rootNode:r};return this._elementInfo.set(s,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(t){let i=C(t),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(t,i,s){let r=C(t),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([d,E])=>this._originChanged(d,i,E)):(this._setOrigin(i),typeof r.focus=="function"&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===re.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused",i==="touch"),t.classList.toggle("cdk-keyboard-focused",i==="keyboard"),t.classList.toggle("cdk-mouse-focused",i==="mouse"),t.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&i,this._detectionMode===re.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?Ft:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(t,i){let s=this._elementInfo.get(i),r=T(t);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(t,i){let s=this._elementInfo.get(i);!s||s.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(s,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let i=t.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,oe),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,oe)}),this._rootNodeFocusListenerCount.set(i,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Z(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(t){let i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,oe),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,oe),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,s){this._setClasses(t,i),this._emitOrigin(s,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){let i=[];return this._elementInfo.forEach((s,r)=>{(r===t||s.checkChildren&&r.contains(t))&&i.push([r,s])}),i}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:i,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!i||i===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let r=t.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(i))return!0}return!1}};e.\u0275fac=function(i){return new(i||e)(c(I),c(b),c(Si),c(y,8),c(Vi,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ds=(()=>{let e=class e{constructor(t,i){this._elementRef=t,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new F}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(u(D),u(Hi))},e.\u0275dir=x({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let n=e;return n})(),O=function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n}(O||{}),xt="cdk-high-contrast-black-on-white",Mt="cdk-high-contrast-white-on-black",Te="cdk-high-contrast-active",Ne=(()=>{let e=class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=g(At).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return O.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(t):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(t.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return O.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return O.BLACK_ON_WHITE}return O.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Te,xt,Mt),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===O.BLACK_ON_WHITE?t.add(Te,xt):i===O.WHITE_ON_BLACK&&t.add(Te,Mt)}}};e.\u0275fac=function(i){return new(i||e)(c(b),c(y))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ls=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(c(Ne))},e.\u0275mod=_({type:e}),e.\u0275inj=f({imports:[yt]});let n=e;return n})();var $i=new p("cdk-dir-doc",{providedIn:"root",factory:zi});function zi(){return g(y)}var Gi=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Zi(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Gi.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Es=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new F,t){let i=t.body?t.body.dir:null,s=t.documentElement?t.documentElement.dir:null;this.value=Zi(i||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(c($i,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Oe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=_({type:e}),e.\u0275inj=f({});let n=e;return n})();var Xi=["text"],qi=[[["mat-icon"]],"*"],Ji=["mat-icon","*"];function en(n,e){if(n&1&&J(0,"mat-pseudo-checkbox",1),n&2){let o=ee();X("disabled",o.disabled)("state",o.selected?"checked":"unchecked")}}function tn(n,e){if(n&1&&J(0,"mat-pseudo-checkbox",3),n&2){let o=ee();X("disabled",o.disabled)}}function nn(n,e){if(n&1&&(be(0,"span",4),lt(1),ve()),n&2){let o=ee();P(),ht("(",o.group.label,")")}}var sn=["mat-internal-form-field",""],on=["*"];var Ks=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=e;return n})(),Ws=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let n=e;return n})();function rn(){return!0}var an=new p("mat-sanity-checks",{providedIn:"root",factory:rn}),le=(()=>{let e=class e{constructor(t,i,s){this._sanityChecks=i,this._document=s,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return vt()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(i){return new(i||e)(c(Ne),c(an,8),c(y))},e.\u0275mod=_({type:e}),e.\u0275inj=f({imports:[Oe,Oe]});let n=e;return n})();var Rt=class{constructor(e,o,t,i,s){this._defaultMatcher=e,this.ngControl=o,this._parentFormGroup=t,this._parentForm=i,this._stateChanges=s,this.errorState=!1}updateErrorState(){let e=this.errorState,o=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,s=t?.isErrorState(i,o)??!1;s!==e&&(this.errorState=s,this._stateChanges.next())}};var Lt=new p("MAT_DATE_LOCALE",{providedIn:"root",factory:cn});function cn(){return g(ut)}var he=class{constructor(){this._localeChanges=new w,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,o){return this.getYear(e)-this.getYear(o)||this.getMonth(e)-this.getMonth(o)||this.getDate(e)-this.getDate(o)}sameDate(e,o){if(e&&o){let t=this.isValid(e),i=this.isValid(o);return t&&i?!this.compareDate(e,o):t==i}return e==o}clampDate(e,o,t){return o&&this.compareDate(e,o)<0?o:t&&this.compareDate(e,t)>0?t:e}},dn=new p("mat-date-formats"),ln=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Fe(n,e){let o=Array(n);for(let t=0;t<n;t++)o[t]=e(t);return o}var hn=(()=>{let e=class e extends he{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=g(Lt,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let i=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Fe(12,s=>this._format(i,new Date(2017,s,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Fe(31,i=>this._format(t,new Date(2017,0,i+1)))}getDayOfWeekNames(t){let i=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Fe(7,s=>this._format(i,new Date(2017,0,s+1)))}getYearName(t){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,i,s){let r=this._createDateWithOverflow(t,i,s);return r.getMonth()!=i,r}today(){return new Date}parse(t,i){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,i){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let s=new Intl.DateTimeFormat(this.locale,$e(m({},i),{timeZone:"utc"}));return this._format(s,t)}addCalendarYears(t,i){return this.addCalendarMonths(t,i*12)}addCalendarMonths(t,i){let s=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+i,this.getDate(t));return this.getMonth(s)!=((this.getMonth(t)+i)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(t,i){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+i)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(ln.test(t)){let i=new Date(t);if(this.isValid(i))return i}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,i,s){let r=new Date;return r.setFullYear(t,i,s),r.setHours(0,0,0,0),r}_2digit(t){return("00"+t).slice(-2)}_format(t,i){let s=new Date;return s.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),s.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),t.format(s)}};e.\u0275fac=function(i){return new(i||e)(c(Lt,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac});let n=e;return n})(),un={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var $s=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=_({type:e}),e.\u0275inj=f({providers:[mn()]});let n=e;return n})();function mn(n=un){return[{provide:he,useClass:hn},{provide:dn,useValue:n}]}var zs=(()=>{let e=class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var A=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(A||{}),Se=class{constructor(e,o,t,i=!1){this._renderer=e,this.element=o,this.config=t,this._animationForciblyDisabledThroughCss=i,this.state=A.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},St=L({passive:!0,capture:!0}),je=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let o=T(e);o&&this._events.get(e.type)?.forEach((t,i)=>{(i===o||i.contains(o))&&t.forEach(s=>s.handleEvent(e))})}}addHandler(e,o,t,i){let s=this._events.get(o);if(s){let r=s.get(t);r?r.add(i):s.set(t,new Set([i]))}else this._events.set(o,new Map([[t,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,St)})}removeHandler(e,o,t){let i=this._events.get(e);if(!i)return;let s=i.get(o);s&&(s.delete(t),s.size===0&&i.delete(o),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,St)))}},jt={enterDuration:225,exitDuration:150},fn=800,Pt=L({passive:!0,capture:!0}),Bt=["mousedown","touchstart"],Ut=["mouseup","mouseleave","touchend","touchcancel"],W=class W{constructor(e,o,t,i){this._target=e,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=C(t))}fadeInRipple(e,o,t={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=m(m({},jt),t.animation);t.centered&&(e=i.left+i.width/2,o=i.top+i.height/2);let r=t.radius||pn(e,o,i),a=e-i.left,d=o-i.top,E=s.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-r}px`,l.style.top=`${d-r}px`,l.style.height=`${r*2}px`,l.style.width=`${r*2}px`,t.color!=null&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${E}ms`,this._containerElement.appendChild(l);let Ue=window.getComputedStyle(l),zt=Ue.transitionProperty,Ve=Ue.transitionDuration,ue=zt==="none"||Ve==="0s"||Ve==="0s, 0s"||i.width===0&&i.height===0,k=new Se(this,l,t,ue);l.style.transform="scale3d(1, 1, 1)",k.state=A.FADING_IN,t.persistent||(this._mostRecentTransientRipple=k);let He=null;return!ue&&(E||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Ke=()=>this._finishRippleTransition(k),We=()=>this._destroyRipple(k);l.addEventListener("transitionend",Ke),l.addEventListener("transitioncancel",We),He={onTransitionEnd:Ke,onTransitionCancel:We}}),this._activeRipples.set(k,He),(ue||!E)&&this._finishRippleTransition(k),k}fadeOutRipple(e){if(e.state===A.FADING_OUT||e.state===A.HIDDEN)return;let o=e.element,t=m(m({},jt),e.config.animation);o.style.transitionDuration=`${t.exitDuration}ms`,o.style.opacity="0",e.state=A.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let o=C(e);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,Bt.forEach(t=>{W._eventManager.addHandler(this._ngZone,t,o,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ut.forEach(o=>{this._triggerElement.addEventListener(o,this,Pt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===A.FADING_IN?this._startFadeOutTransition(e):e.state===A.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let o=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=A.VISIBLE,!t&&(!o||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let o=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=A.HIDDEN,o!==null&&(e.element.removeEventListener("transitionend",o.onTransitionEnd),e.element.removeEventListener("transitioncancel",o.onTransitionCancel)),e.element.remove()}_onMousedown(e){let o=Me(e),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+fn;!this._target.rippleDisabled&&!o&&!t&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Ce(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let o=e.changedTouches;if(o)for(let t=0;t<o.length;t++)this.fadeInRipple(o[t].clientX,o[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let o=e.state===A.VISIBLE||e.config.terminateOnPointerUp&&e.state===A.FADING_IN;!e.config.persistent&&o&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Bt.forEach(o=>W._eventManager.removeHandler(o,e,this)),this._pointerUpEventsRegistered&&(Ut.forEach(o=>e.removeEventListener(o,this,Pt)),this._pointerUpEventsRegistered=!1))}};W._eventManager=new je;var Pe=W;function pn(n,e,o){let t=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(e-o.top),Math.abs(e-o.bottom));return Math.sqrt(t*t+i*i)}var Wt=new p("mat-ripple-global-options"),$t=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,i,s,r,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Pe(this,i,t,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:m(m(m({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,s){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,i,m(m({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,m(m({},this.rippleConfig),t))}};e.\u0275fac=function(i){return new(i||e)(u(D),u(I),u(b),u(Wt,8),u(Q,8))},e.\u0275dir=x({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,s){i&2&&U("mat-ripple-unbounded",s.unbounded)},inputs:{color:[v.None,"matRippleColor","color"],unbounded:[v.None,"matRippleUnbounded","unbounded"],centered:[v.None,"matRippleCentered","centered"],radius:[v.None,"matRippleRadius","radius"],animation:[v.None,"matRippleAnimation","animation"],disabled:[v.None,"matRippleDisabled","disabled"],trigger:[v.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=e;return n})(),gn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=_({type:e}),e.\u0275inj=f({imports:[le,le]});let n=e;return n})(),_n=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(u(Q,8))},e.\u0275cmp=Y({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,s){i&2&&U("mat-pseudo-checkbox-indeterminate",s.state==="indeterminate")("mat-pseudo-checkbox-checked",s.state==="checked")("mat-pseudo-checkbox-disabled",s.disabled)("mat-pseudo-checkbox-minimal",s.appearance==="minimal")("mat-pseudo-checkbox-full",s.appearance==="full")("_mat-animation-noopable",s._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ie],decls:0,vars:0,template:function(i,s){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let n=e;return n})(),bn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=_({type:e}),e.\u0275inj=f({imports:[le]});let n=e;return n})(),vn=new p("MAT_OPTION_PARENT_COMPONENT");var yn=new p("MatOptgroup");var En=0,Be=class{constructor(e,o=!1){this.source=e,this.isUserInput=o}},Gs=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,i,s,r){this._element=t,this._changeDetectorRef=i,this._parent=s,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${En++}`,this.onSelectionChange=new F,this._stateChanges=new w}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,i){let s=this._getHostElement();typeof s.focus=="function"&&s.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!ne(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Be(this,t))}};e.\u0275fac=function(i){return new(i||e)(u(D),u(mt),u(vn,8),u(yn,8))},e.\u0275cmp=Y({type:e,selectors:[["mat-option"]],viewQuery:function(i,s){if(i&1&&at(Xi,7),i&2){let r;ct(r=dt())&&(s._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,s){i&1&&rt("click",function(){return s._selectViaInteraction()})("keydown",function(a){return s._handleKeydown(a)}),i&2&&(ot("id",s.id),_e("aria-selected",s.selected)("aria-disabled",s.disabled.toString()),U("mdc-list-item--selected",s.selected)("mat-mdc-option-multiple",s.multiple)("mat-mdc-option-active",s.active)("mdc-list-item--disabled",s.disabled))},inputs:{value:"value",id:"id",disabled:[v.HasDecoratorInputTransform,"disabled","disabled",V]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[B,ie],ngContentSelectors:Ji,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,s){i&1&&(ye(qi),ge(0,en,1,2,"mat-pseudo-checkbox",1),te(1),be(2,"span",2,0),te(4,1),ve(),ge(5,tn,1,1,"mat-pseudo-checkbox",3)(6,nn,2,1,"span",4),J(7,"div",5)),i&2&&(q(0,s.multiple?0:-1),P(5),q(5,!s.multiple&&s.selected&&!s.hideSingleSelectionIndicator?5:-1),P(),q(6,s.group&&s.group._inert?6:-1),P(),X("matRippleTrigger",s._getHostElement())("matRippleDisabled",s.disabled||s.disableRipple))},dependencies:[_n,$t],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();function Zs(n,e,o){if(o.length){let t=e.toArray(),i=o.toArray(),s=0;for(let r=0;r<n+1;r++)t[r].group&&t[r].group===i[s]&&s++;return s}return 0}function Ys(n,e,o,t){return n<o?n:n+e>o+t?Math.max(0,n-t+e):o}var Qs=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=_({type:e}),e.\u0275inj=f({imports:[gn,le,bn]});let n=e;return n})(),Vt={capture:!0},Ht=["focus","click","mouseenter","touchstart"],Re="mat-ripple-loader-uninitialized",Le="mat-ripple-loader-class-name",Kt="mat-ripple-loader-centered",de="mat-ripple-loader-disabled",Xs=(()=>{let e=class e{constructor(){this._document=g(y,{optional:!0}),this._animationMode=g(Q,{optional:!0}),this._globalRippleOptions=g(Wt,{optional:!0}),this._platform=g(b),this._ngZone=g(I),this._hosts=new Map,this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;let s=t.target.closest(`[${Re}]`);s&&this._createRipple(s)},this._ngZone.runOutsideAngular(()=>{for(let t of Ht)this._document?.addEventListener(t,this._onInteraction,Vt)})}ngOnDestroy(){let t=this._hosts.keys();for(let i of t)this.destroyRipple(i);for(let i of Ht)this._document?.removeEventListener(i,this._onInteraction,Vt)}configureRipple(t,i){t.setAttribute(Re,""),(i.className||!t.hasAttribute(Le))&&t.setAttribute(Le,i.className||""),i.centered&&t.setAttribute(Kt,""),i.disabled&&t.setAttribute(de,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,i){let s=this._hosts.get(t);if(s){s.disabled=i;return}i?t.setAttribute(de,""):t.removeAttribute(de)}_createRipple(t){if(!this._document)return;let i=this._hosts.get(t);if(i)return i;t.querySelector(".mat-ripple")?.remove();let s=this._document.createElement("span");s.classList.add("mat-ripple",t.getAttribute(Le)),t.append(s);let r=new $t(new D(s),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=t,r.centered=t.hasAttribute(Kt),r.disabled=t.hasAttribute(de),this.attachRipple(t,r),r}attachRipple(t,i){t.removeAttribute(Re),this._hosts.set(t,i)}destroyRipple(t){let i=this._hosts.get(t);i&&(i.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),qs=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Y({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,s){i&2&&U("mdc-form-field--align-end",s.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ie],attrs:sn,ngContentSelectors:on,decls:1,vars:0,template:function(i,s){i&1&&(ye(),te(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let n=e;return n})();export{Yt as a,Qt as b,we as c,Nn as d,C as e,On as f,ne as g,b as h,kn as i,L as j,xn as k,_t as l,bt as m,T as n,vt as o,yt as p,yi as q,Ei as r,rs as s,Dt as t,Tt as u,Ii as v,Fi as w,as as x,Me as y,Ce as z,cs as A,Hi as B,ds as C,ls as D,Es as E,Oe as F,Ks as G,Ws as H,le as I,Rt as J,Lt as K,he as L,dn as M,$s as N,zs as O,Wt as P,$t as Q,gn as R,vn as S,yn as T,Gs as U,Zs as V,Ys as W,Qs as X,Xs as Y,qs as Z};