homebridge-config-ui-x 5.0.0-beta.19 → 5.0.0-beta.20

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 (115) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/dist/modules/plugins/plugins.service.js +3 -6
  3. package/dist/modules/plugins/plugins.service.js.map +1 -1
  4. package/package.json +10 -10
  5. package/public/{chunk-TAQPTNH3.js → chunk-36FQKUVO.js} +1 -1
  6. package/public/chunk-3JSZEZ3P.js +1 -0
  7. package/public/{chunk-5R3LEKWW.js → chunk-3ZNB4KKY.js} +1 -1
  8. package/public/{chunk-T5OJYFIY.js → chunk-44XAYR34.js} +1 -1
  9. package/public/chunk-5VRFWVIF.js +1 -0
  10. package/public/chunk-5YTQFCTZ.js +1 -0
  11. package/public/{chunk-SG7JRJFU.js → chunk-66LHN73V.js} +1 -1
  12. package/public/{chunk-6UXA5CDA.js → chunk-6MDI4RNQ.js} +1 -1
  13. package/public/chunk-6NCLI3EG.js +1 -0
  14. package/public/chunk-6W3XOJBR.js +1 -0
  15. package/public/{chunk-4F545BYA.js → chunk-7TSUSJHK.js} +1 -1
  16. package/public/{chunk-DOTDPU6I.js → chunk-B7ASQGIT.js} +1 -1
  17. package/public/{chunk-6BFW4QGM.js → chunk-BCTZLT7T.js} +1 -1
  18. package/public/{chunk-L44VK4MX.js → chunk-BJW3EYCN.js} +1 -1
  19. package/public/{chunk-J7PFU54S.js → chunk-BWVQQ7XD.js} +1 -1
  20. package/public/{chunk-I6JQZB5O.js → chunk-BZVO3JIQ.js} +1 -1
  21. package/public/{chunk-H7QNI4SL.js → chunk-CK234OHO.js} +1 -1
  22. package/public/chunk-DTITJSDU.js +1 -0
  23. package/public/{chunk-CAAIHLOW.js → chunk-EFBNPDVN.js} +1 -1
  24. package/public/{chunk-LHHSRBQN.js → chunk-EIKIGJGT.js} +1 -1
  25. package/public/chunk-EXPDB5CJ.js +1 -0
  26. package/public/{chunk-KGKHFXTV.js → chunk-EXVHFPLG.js} +1 -1
  27. package/public/{chunk-MXGYFXAQ.js → chunk-F46ML4GE.js} +1 -1
  28. package/public/{chunk-Q2PBTNVX.js → chunk-F4QKTMKG.js} +1 -1
  29. package/public/{chunk-NFM5TL2D.js → chunk-F5SS6TN7.js} +1 -1
  30. package/public/{chunk-ZEWKZT52.js → chunk-F7BNBUEW.js} +1 -1
  31. package/public/chunk-G3NT5LV6.js +1 -0
  32. package/public/{chunk-B7UYTZXL.js → chunk-GGHFQZAJ.js} +1 -1
  33. package/public/{chunk-TLTUEKJ3.js → chunk-GJHKJW7G.js} +1 -1
  34. package/public/chunk-GMP35WWF.js +1 -0
  35. package/public/{chunk-AQ3L5HNX.js → chunk-GMZ6O3I5.js} +1 -1
  36. package/public/{chunk-UKMABQF7.js → chunk-H3E4T6KH.js} +1 -1
  37. package/public/{chunk-GNCZMUYC.js → chunk-HBGENGOA.js} +1 -1
  38. package/public/{chunk-CLZKKYED.js → chunk-HMOW3VNR.js} +1 -1
  39. package/public/{chunk-KUSRTUPV.js → chunk-IAJBS4F3.js} +1 -1
  40. package/public/chunk-IJSNG5L7.js +1 -0
  41. package/public/chunk-IUHGKF4I.js +1 -0
  42. package/public/{chunk-PBQ7WARI.js → chunk-IUUJYZCY.js} +1 -1
  43. package/public/chunk-JPYKH7ON.js +1 -0
  44. package/public/{chunk-BHRTYERJ.js → chunk-JTNCJAJL.js} +1 -1
  45. package/public/chunk-JXHVIG4U.js +1 -0
  46. package/public/{chunk-OLUE6FKW.js → chunk-JY3ZZB5T.js} +1 -1
  47. package/public/chunk-KDJPDALB.js +7 -0
  48. package/public/{chunk-3EZNSBTT.js → chunk-KE67UEME.js} +1 -1
  49. package/public/{chunk-DOTHLAFP.js → chunk-KFM3IHPE.js} +1 -1
  50. package/public/{chunk-ZBISXPRT.js → chunk-KKE3XVCS.js} +1 -1
  51. package/public/{chunk-RC3EKF6L.js → chunk-KPI7JWRK.js} +1 -1
  52. package/public/chunk-KY3LSONF.js +1 -0
  53. package/public/chunk-M43OLMXJ.js +1 -0
  54. package/public/{chunk-BNFAGA2J.js → chunk-MDS6CJQC.js} +1 -1
  55. package/public/{chunk-GRKWTRPO.js → chunk-MMPQXC6H.js} +1 -1
  56. package/public/chunk-NBLWBPNU.js +1 -0
  57. package/public/{chunk-UKDRSQGK.js → chunk-NIGZKKLM.js} +1 -1
  58. package/public/chunk-NZEAIDME.js +1 -0
  59. package/public/{chunk-OLI7NXK6.js → chunk-OJZZVAQX.js} +1 -1
  60. package/public/{chunk-Z2WU6CI5.js → chunk-OZTQT47N.js} +1 -1
  61. package/public/{chunk-7H6DGXSK.js → chunk-P5WCYSBI.js} +1 -1
  62. package/public/{chunk-UQGUDBNN.js → chunk-QHHRJOCD.js} +2 -2
  63. package/public/chunk-QIUCYAO6.js +1 -0
  64. package/public/chunk-R2GI3M3R.js +1 -0
  65. package/public/chunk-RKAF37ZJ.js +1 -0
  66. package/public/{chunk-2NGWCZ7G.js → chunk-RMFHCCDM.js} +1 -1
  67. package/public/{chunk-JYSWXJEM.js → chunk-RXIWNBGC.js} +1 -1
  68. package/public/chunk-S7XHKMB6.js +1 -0
  69. package/public/{chunk-PEPJJ2S2.js → chunk-SEKLEPJD.js} +1 -1
  70. package/public/{chunk-OIU3EPA6.js → chunk-SPCVBENU.js} +1 -1
  71. package/public/{chunk-O62BQ7X6.js → chunk-SU7PCFCE.js} +1 -1
  72. package/public/chunk-SZQRABYM.js +1 -0
  73. package/public/{chunk-VY4T3ANP.js → chunk-T6FYP7FJ.js} +1 -1
  74. package/public/chunk-TKD3NDAB.js +1 -0
  75. package/public/{chunk-CIBCOHRI.js → chunk-UFSVM3Q4.js} +1 -1
  76. package/public/{chunk-6TBAEXXH.js → chunk-UTT43ABZ.js} +1 -1
  77. package/public/chunk-WBM3J7G6.js +1 -0
  78. package/public/{chunk-QRCM4ROA.js → chunk-WNRNIYIE.js} +1 -1
  79. package/public/chunk-WX6C5G2Y.js +1 -0
  80. package/public/{chunk-YWPSQFVI.js → chunk-X2J4XMUB.js} +1 -1
  81. package/public/chunk-XH4UDTMW.js +1 -0
  82. package/public/{chunk-KKLXPAWX.js → chunk-XKW7UNZ7.js} +1 -1
  83. package/public/chunk-XMJ3TLM7.js +1 -0
  84. package/public/{chunk-Q7ULBWII.js → chunk-Z4CHNCHA.js} +1 -1
  85. package/public/{chunk-NSNJSM3H.js → chunk-ZRYCN4PM.js} +1 -1
  86. package/public/index.html +1 -1
  87. package/public/{main-2LOLR6YW.js → main-FN3FPYBU.js} +1 -1
  88. package/public/chunk-2FONRXNS.js +0 -1
  89. package/public/chunk-6VNED2B7.js +0 -1
  90. package/public/chunk-ABMCCQFK.js +0 -1
  91. package/public/chunk-BBUNHZZ2.js +0 -1
  92. package/public/chunk-C2OH5ZWH.js +0 -1
  93. package/public/chunk-CSV74HQ4.js +0 -1
  94. package/public/chunk-DGXFIYFL.js +0 -7
  95. package/public/chunk-DICSCOX4.js +0 -1
  96. package/public/chunk-FS7AUYFB.js +0 -1
  97. package/public/chunk-H42YQB2K.js +0 -1
  98. package/public/chunk-JYQW2TF2.js +0 -1
  99. package/public/chunk-M5RQZ44G.js +0 -1
  100. package/public/chunk-MRFSUELJ.js +0 -1
  101. package/public/chunk-NA3KDDIG.js +0 -1
  102. package/public/chunk-OAFAQ3O5.js +0 -1
  103. package/public/chunk-PKWCYS5H.js +0 -1
  104. package/public/chunk-PNDAULNN.js +0 -1
  105. package/public/chunk-PZ4AQXXH.js +0 -1
  106. package/public/chunk-QNF4CL6Z.js +0 -1
  107. package/public/chunk-RSJZPDIB.js +0 -1
  108. package/public/chunk-S7HHJZJG.js +0 -1
  109. package/public/chunk-SLORZQP7.js +0 -1
  110. package/public/chunk-TZVL2MQA.js +0 -1
  111. package/public/chunk-V6L575MT.js +0 -1
  112. package/public/chunk-W5V5ZZ2E.js +0 -1
  113. package/public/chunk-WFNGQHXX.js +0 -1
  114. package/public/chunk-XVS3HSWR.js +0 -1
  115. package/public/chunk-ZC3HEO3K.js +0 -1
@@ -1 +1 @@
1
- import{b as S}from"./chunk-UKMABQF7.js";import{Bb as v,Bc as i,Cc as n,Lb as o,Mb as b,Rb as f,Wb as t,Xb as a,Yb as p,ad as g,cc as h,ib as e,nc as r,oc as d,pc as l,ub as x}from"./chunk-DGXFIYFL.js";function B(s,w){s&1&&(t(0,"ul",6)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",12),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",14),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",15),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",16),i(43,"translate"),p(44,"i",13),a()()()),s&2&&(e(3),l(" ",n(4,12,"support.links.documentation"),""),e(4),d(n(8,14,"support.links.documentation_sub")),e(2),o("aria-label",n(10,16,"support.links.documentation")),e(5),l(" ",n(15,18,"support.links.issue"),""),e(4),d(n(19,20,"support.links.issue_sub")),e(2),o("aria-label",n(21,22,"support.links.issue")),e(5),l(" ",n(26,24,"support.links.discord"),""),e(4),d(n(30,26,"support.links.discord_sub")),e(2),o("aria-label",n(32,28,"support.links.discord")),e(5),l(" ",n(37,30,"support.links.reddit"),""),e(4),d(n(41,32,"support.links.reddit_sub")),e(2),o("aria-label",n(43,34,"support.links.reddit")))}function k(s,w){s&1&&(t(0,"ul",8)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",17),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",18),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",19),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",20),i(43,"translate"),p(44,"i",13),a()(),t(45,"li",9)(46,"span",10),r(47),i(48,"translate"),p(49,"br"),t(50,"small",11),r(51),i(52,"translate"),a()(),t(53,"a",20),i(54,"translate"),p(55,"i",13),a()()()),s&2&&(e(3),l(" ",n(4,15,"support.dev.item_swagger"),""),e(4),l(" ",n(8,17,"support.dev.item_swagger_sub")," "),e(2),o("aria-label",n(10,19,"support.dev.item_swagger")),e(5),l(" ",n(15,21,"support.dev.api"),""),e(4),d(n(19,23,"support.dev.api_sub")),e(2),o("aria-label",n(21,25,"support.dev.api")),e(5),l(" ",n(26,27,"support.dev.api_hap"),""),e(4),d(n(30,29,"support.dev.api_hap_sub")),e(2),o("aria-label",n(32,31,"support.dev.api_hap")),e(5),l(" ",n(37,33,"support.dev.template"),""),e(4),l(" ",n(41,35,"support.dev.template_sub")," "),e(2),o("aria-label",n(43,37,"support.dev.template")),e(5),l(" ",n(48,39,"support.dev.verified"),""),e(4),d(n(52,41,"support.dev.verified_sub")),e(2),o("aria-label",n(54,43,"support.dev.verified")))}var C=(()=>{class s{showFields={general:!0,dev:!0};constructor(){}toggleSection(u){this.showFields[u]=!this.showFields[u]}static \u0275fac=function(c){return new(c||s)};static \u0275cmp=x({type:s,selectors:[["ng-component"]],decls:18,vars:17,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"mb-4"],["role","button","tabindex","0",1,"mt-3","hover-pointer",3,"click"],[1,"primary-text"],[1,"fa","fa-fw",3,"ngClass"],["id","fieldsGeneral",1,"list-group","list-group-box","mt-2","mx-0"],[1,"pb-3"],["id","fieldsDev",1,"list-group","list-group-box","mt-2","mx-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"pr-2"],[1,"grey-text","pr-2"],["href","https://github.com/homebridge/homebridge/wiki","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],[1,"fas","fa-fw","fa-external-link-alt"],["href","https://github.com/homebridge/homebridge-config-ui-x/issues/new/choose","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://discord.gg/C87Pvq3","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://www.reddit.com/r/homebridge/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","/swagger","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/#/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/HAP-NodeJS/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://github.com/homebridge/homebridge-plugin-template","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"]],template:function(c,m){c&1&&(t(0,"div",0)(1,"h3",1),r(2),i(3,"translate"),a()(),t(4,"div",2)(5,"div",3),h("click",function(){return m.toggleSection("general")}),t(6,"h5",4),p(7,"i",5),r(8),i(9,"translate"),a()(),v(10,B,45,36,"ul",6),a(),t(11,"div",7)(12,"div",3),h("click",function(){return m.toggleSection("dev")}),t(13,"h5",4),p(14,"i",5),r(15),i(16,"translate"),a()(),v(17,k,56,45,"ul",8),a()),c&2&&(e(2),d(n(3,11,"support.title")),e(3),o("aria-expanded",m.showFields.general?"true":"false")("aria-controls","fieldsGeneral"),e(2),b("ngClass",m.showFields.general?"fa-chevron-down":"fa-chevron-right"),e(),l(" ",n(9,13,"support.links.title")," "),e(2),f(m.showFields.general?10:-1),e(2),o("aria-expanded",m.showFields.dev?"true":"false")("aria-controls","fieldsDev"),e(2),b("ngClass",m.showFields.dev?"fa-chevron-down":"fa-chevron-right"),e(),l(" ",n(16,15,"support.dev.title")," "),e(2),f(m.showFields.dev?17:-1))},dependencies:[g,S],encapsulation:2})}return s})();export{C as a};
1
+ import{b as S}from"./chunk-H3E4T6KH.js";import{Bb as v,Bc as i,Cc as n,Lb as o,Mb as b,Rb as f,Wb as t,Xb as a,Yb as p,ad as g,cc as h,ib as e,nc as r,oc as d,pc as l,ub as x}from"./chunk-KDJPDALB.js";function B(s,w){s&1&&(t(0,"ul",6)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",12),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",14),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",15),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",16),i(43,"translate"),p(44,"i",13),a()()()),s&2&&(e(3),l(" ",n(4,12,"support.links.documentation"),""),e(4),d(n(8,14,"support.links.documentation_sub")),e(2),o("aria-label",n(10,16,"support.links.documentation")),e(5),l(" ",n(15,18,"support.links.issue"),""),e(4),d(n(19,20,"support.links.issue_sub")),e(2),o("aria-label",n(21,22,"support.links.issue")),e(5),l(" ",n(26,24,"support.links.discord"),""),e(4),d(n(30,26,"support.links.discord_sub")),e(2),o("aria-label",n(32,28,"support.links.discord")),e(5),l(" ",n(37,30,"support.links.reddit"),""),e(4),d(n(41,32,"support.links.reddit_sub")),e(2),o("aria-label",n(43,34,"support.links.reddit")))}function k(s,w){s&1&&(t(0,"ul",8)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",17),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",18),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",19),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",20),i(43,"translate"),p(44,"i",13),a()(),t(45,"li",9)(46,"span",10),r(47),i(48,"translate"),p(49,"br"),t(50,"small",11),r(51),i(52,"translate"),a()(),t(53,"a",20),i(54,"translate"),p(55,"i",13),a()()()),s&2&&(e(3),l(" ",n(4,15,"support.dev.item_swagger"),""),e(4),l(" ",n(8,17,"support.dev.item_swagger_sub")," "),e(2),o("aria-label",n(10,19,"support.dev.item_swagger")),e(5),l(" ",n(15,21,"support.dev.api"),""),e(4),d(n(19,23,"support.dev.api_sub")),e(2),o("aria-label",n(21,25,"support.dev.api")),e(5),l(" ",n(26,27,"support.dev.api_hap"),""),e(4),d(n(30,29,"support.dev.api_hap_sub")),e(2),o("aria-label",n(32,31,"support.dev.api_hap")),e(5),l(" ",n(37,33,"support.dev.template"),""),e(4),l(" ",n(41,35,"support.dev.template_sub")," "),e(2),o("aria-label",n(43,37,"support.dev.template")),e(5),l(" ",n(48,39,"support.dev.verified"),""),e(4),d(n(52,41,"support.dev.verified_sub")),e(2),o("aria-label",n(54,43,"support.dev.verified")))}var C=(()=>{class s{showFields={general:!0,dev:!0};constructor(){}toggleSection(u){this.showFields[u]=!this.showFields[u]}static \u0275fac=function(c){return new(c||s)};static \u0275cmp=x({type:s,selectors:[["ng-component"]],decls:18,vars:17,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"mb-4"],["role","button","tabindex","0",1,"mt-3","hover-pointer",3,"click"],[1,"primary-text"],[1,"fa","fa-fw",3,"ngClass"],["id","fieldsGeneral",1,"list-group","list-group-box","mt-2","mx-0"],[1,"pb-3"],["id","fieldsDev",1,"list-group","list-group-box","mt-2","mx-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"pr-2"],[1,"grey-text","pr-2"],["href","https://github.com/homebridge/homebridge/wiki","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],[1,"fas","fa-fw","fa-external-link-alt"],["href","https://github.com/homebridge/homebridge-config-ui-x/issues/new/choose","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://discord.gg/C87Pvq3","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://www.reddit.com/r/homebridge/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","/swagger","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/#/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/HAP-NodeJS/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://github.com/homebridge/homebridge-plugin-template","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"]],template:function(c,m){c&1&&(t(0,"div",0)(1,"h3",1),r(2),i(3,"translate"),a()(),t(4,"div",2)(5,"div",3),h("click",function(){return m.toggleSection("general")}),t(6,"h5",4),p(7,"i",5),r(8),i(9,"translate"),a()(),v(10,B,45,36,"ul",6),a(),t(11,"div",7)(12,"div",3),h("click",function(){return m.toggleSection("dev")}),t(13,"h5",4),p(14,"i",5),r(15),i(16,"translate"),a()(),v(17,k,56,45,"ul",8),a()),c&2&&(e(2),d(n(3,11,"support.title")),e(3),o("aria-expanded",m.showFields.general?"true":"false")("aria-controls","fieldsGeneral"),e(2),b("ngClass",m.showFields.general?"fa-chevron-down":"fa-chevron-right"),e(),l(" ",n(9,13,"support.links.title")," "),e(2),f(m.showFields.general?10:-1),e(2),o("aria-expanded",m.showFields.dev?"true":"false")("aria-controls","fieldsDev"),e(2),b("ngClass",m.showFields.dev?"fa-chevron-down":"fa-chevron-right"),e(),l(" ",n(16,15,"support.dev.title")," "),e(2),f(m.showFields.dev?17:-1))},dependencies:[g,S],encapsulation:2})}return s})();export{C as a};
@@ -1 +1 @@
1
- import{a as _,b as D}from"./chunk-LHHSRBQN.js";import{a as l,b as S}from"./chunk-DICSCOX4.js";import{f as x}from"./chunk-UQGUDBNN.js";import{C as v,Sc as I,g as O,h as a,ha as h,ia as E,ka as y,ma as c,na as f,r as p,vb as j,w as d,x as T,z as w}from"./chunk-DGXFIYFL.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(c(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(c(g),c(m),c(I))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(c(r,12))},r.\u0275mod=j({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(l.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(l.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(l.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(l.jwt.tokenKey);e&&this.validateToken(e)})}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(l.jwt.tokenKey),this.token=null,!1}}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{m as a,F as b,q as c};
1
+ import{a as _,b as D}from"./chunk-EIKIGJGT.js";import{a as l,b as S}from"./chunk-G3NT5LV6.js";import{f as x}from"./chunk-QHHRJOCD.js";import{C as v,Sc as I,g as O,h as a,ha as h,ia as E,ka as y,ma as c,na as f,r as p,vb as j,w as d,x as T,z as w}from"./chunk-KDJPDALB.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(c(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(c(g),c(m),c(I))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(c(r,12))},r.\u0275mod=j({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(l.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(l.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(l.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(l.jwt.tokenKey);e&&this.validateToken(e)})}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(l.jwt.tokenKey),this.token=null,!1}}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{m as a,F as b,q as c};