From c89ed24f4b9b6e5d439799587a53b21d43c77d55 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 12 Oct 2022 03:07:17 +0200 Subject: [PATCH] Updated webapp dist files --- platypush/backend/http/webapp/dist/index.html | 2 +- .../backend/http/webapp/dist/static/css/2107.3a08bbb5.css | 1 + .../backend/http/webapp/dist/static/css/3803.071120e4.css | 1 - .../dist/static/css/{4604.34b220bc.css => 4848.ae3af6a6.css} | 2 +- .../http/webapp/dist/static/js/1155-legacy.179db4ca.js | 2 -- .../http/webapp/dist/static/js/1155-legacy.179db4ca.js.map | 1 - .../http/webapp/dist/static/js/1155-legacy.3b386edd.js | 2 ++ .../http/webapp/dist/static/js/1155-legacy.3b386edd.js.map | 1 + platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js | 2 -- .../backend/http/webapp/dist/static/js/1155.1d3f7c87.js.map | 1 - platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js | 2 ++ .../backend/http/webapp/dist/static/js/1155.ae99e2b9.js.map | 1 + .../http/webapp/dist/static/js/1406-legacy.49afea8a.js | 2 ++ .../http/webapp/dist/static/js/1406-legacy.49afea8a.js.map | 1 + .../http/webapp/dist/static/js/1406-legacy.531be9a8.js | 2 -- .../http/webapp/dist/static/js/2790-legacy.2afcb92a.js | 2 -- .../http/webapp/dist/static/js/2790-legacy.2afcb92a.js.map | 1 - .../http/webapp/dist/static/js/2790-legacy.ea683344.js | 2 ++ .../http/webapp/dist/static/js/2790-legacy.ea683344.js.map | 1 + platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js | 2 -- .../backend/http/webapp/dist/static/js/2790.73c2ca0a.js.map | 1 - platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js | 2 ++ .../backend/http/webapp/dist/static/js/2790.7ce4bd1e.js.map | 1 + .../http/webapp/dist/static/js/4604-legacy.2f44612f.js | 2 -- .../http/webapp/dist/static/js/4604-legacy.2f44612f.js.map | 1 - platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js | 2 -- .../backend/http/webapp/dist/static/js/4604.78aed65e.js.map | 1 - .../http/webapp/dist/static/js/4658-legacy.2b32d64d.js | 2 -- .../http/webapp/dist/static/js/4658-legacy.2b32d64d.js.map | 1 - .../http/webapp/dist/static/js/4658-legacy.92eb441e.js | 2 ++ .../http/webapp/dist/static/js/4658-legacy.92eb441e.js.map | 1 + .../http/webapp/dist/static/js/4848-legacy.c406221e.js | 2 ++ .../http/webapp/dist/static/js/4848-legacy.c406221e.js.map | 1 + platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js | 2 ++ .../backend/http/webapp/dist/static/js/4848.b8cbdcae.js.map | 1 + platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js | 2 ++ .../backend/http/webapp/dist/static/js/5810.92a3694b.js.map | 1 + platypush/backend/http/webapp/dist/static/js/5810.d365373f.js | 2 -- .../backend/http/webapp/dist/static/js/5810.d365373f.js.map | 1 - .../http/webapp/dist/static/js/5824-legacy.a1aaa126.js.map | 1 - .../js/{5824-legacy.a1aaa126.js => 5824-legacy.c9733a88.js} | 4 ++-- .../http/webapp/dist/static/js/5824-legacy.c9733a88.js.map | 1 + .../dist/static/js/{5824.7f51ae20.js => 5824.50133e6d.js} | 4 ++-- .../backend/http/webapp/dist/static/js/5824.50133e6d.js.map | 1 + .../backend/http/webapp/dist/static/js/5824.7f51ae20.js.map | 1 - .../http/webapp/dist/static/js/7029-legacy.66663032.js.map | 1 - .../js/{7029-legacy.66663032.js => 7029-legacy.c3dab656.js} | 4 ++-- .../http/webapp/dist/static/js/7029-legacy.c3dab656.js.map | 1 + platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js | 2 ++ .../js/{1406-legacy.531be9a8.js.map => 747.0ee05dee.js.map} | 2 +- platypush/backend/http/webapp/dist/static/js/747.5f10a676.js | 2 -- .../backend/http/webapp/dist/static/js/747.5f10a676.js.map | 1 - .../js/{9892-legacy.4cf77440.js => 9892-legacy.6a0b2b51.js} | 4 ++-- ...892-legacy.4cf77440.js.map => 9892-legacy.6a0b2b51.js.map} | 2 +- .../dist/static/js/{9892.966b4879.js => 9892.dacb03d8.js} | 4 ++-- .../static/js/{9892.966b4879.js.map => 9892.dacb03d8.js.map} | 2 +- .../dist/static/js/{9978.e4c02542.js => 9978.9241f6a8.js} | 4 ++-- .../backend/http/webapp/dist/static/js/9978.9241f6a8.js.map | 1 + .../backend/http/webapp/dist/static/js/9978.e4c02542.js.map | 1 - .../js/{app-legacy.3e3e09b7.js => app-legacy.602f8c67.js} | 4 ++-- ...{app-legacy.3e3e09b7.js.map => app-legacy.602f8c67.js.map} | 2 +- .../dist/static/js/{app.257a2f22.js => app.0ecd5641.js} | 4 ++-- .../static/js/{app.257a2f22.js.map => app.0ecd5641.js.map} | 2 +- 63 files changed, 57 insertions(+), 57 deletions(-) create mode 100644 platypush/backend/http/webapp/dist/static/css/2107.3a08bbb5.css delete mode 100644 platypush/backend/http/webapp/dist/static/css/3803.071120e4.css rename platypush/backend/http/webapp/dist/static/css/{4604.34b220bc.css => 4848.ae3af6a6.css} (69%) delete mode 100644 platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386edd.js create mode 100644 platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386edd.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js create mode 100644 platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/1406-legacy.49afea8a.js create mode 100644 platypush/backend/http/webapp/dist/static/js/1406-legacy.49afea8a.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/1406-legacy.531be9a8.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/2790-legacy.2afcb92a.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/2790-legacy.2afcb92a.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/2790-legacy.ea683344.js create mode 100644 platypush/backend/http/webapp/dist/static/js/2790-legacy.ea683344.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js create mode 100644 platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/4658-legacy.2b32d64d.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/4658-legacy.2b32d64d.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/4658-legacy.92eb441e.js create mode 100644 platypush/backend/http/webapp/dist/static/js/4658-legacy.92eb441e.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js create mode 100644 platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js create mode 100644 platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js create mode 100644 platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/5810.d365373f.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/5810.d365373f.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/5824-legacy.a1aaa126.js.map rename platypush/backend/http/webapp/dist/static/js/{5824-legacy.a1aaa126.js => 5824-legacy.c9733a88.js} (77%) create mode 100644 platypush/backend/http/webapp/dist/static/js/5824-legacy.c9733a88.js.map rename platypush/backend/http/webapp/dist/static/js/{5824.7f51ae20.js => 5824.50133e6d.js} (60%) create mode 100644 platypush/backend/http/webapp/dist/static/js/5824.50133e6d.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/5824.7f51ae20.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/7029-legacy.66663032.js.map rename platypush/backend/http/webapp/dist/static/js/{7029-legacy.66663032.js => 7029-legacy.c3dab656.js} (66%) create mode 100644 platypush/backend/http/webapp/dist/static/js/7029-legacy.c3dab656.js.map create mode 100644 platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js rename platypush/backend/http/webapp/dist/static/js/{1406-legacy.531be9a8.js.map => 747.0ee05dee.js.map} (52%) delete mode 100644 platypush/backend/http/webapp/dist/static/js/747.5f10a676.js delete mode 100644 platypush/backend/http/webapp/dist/static/js/747.5f10a676.js.map rename platypush/backend/http/webapp/dist/static/js/{9892-legacy.4cf77440.js => 9892-legacy.6a0b2b51.js} (99%) rename platypush/backend/http/webapp/dist/static/js/{9892-legacy.4cf77440.js.map => 9892-legacy.6a0b2b51.js.map} (99%) rename platypush/backend/http/webapp/dist/static/js/{9892.966b4879.js => 9892.dacb03d8.js} (99%) rename platypush/backend/http/webapp/dist/static/js/{9892.966b4879.js.map => 9892.dacb03d8.js.map} (99%) rename platypush/backend/http/webapp/dist/static/js/{9978.e4c02542.js => 9978.9241f6a8.js} (66%) create mode 100644 platypush/backend/http/webapp/dist/static/js/9978.9241f6a8.js.map delete mode 100644 platypush/backend/http/webapp/dist/static/js/9978.e4c02542.js.map rename platypush/backend/http/webapp/dist/static/js/{app-legacy.3e3e09b7.js => app-legacy.602f8c67.js} (96%) rename platypush/backend/http/webapp/dist/static/js/{app-legacy.3e3e09b7.js.map => app-legacy.602f8c67.js.map} (98%) rename platypush/backend/http/webapp/dist/static/js/{app.257a2f22.js => app.0ecd5641.js} (96%) rename platypush/backend/http/webapp/dist/static/js/{app.257a2f22.js.map => app.0ecd5641.js.map} (98%) diff --git a/platypush/backend/http/webapp/dist/index.html b/platypush/backend/http/webapp/dist/index.html index 3c730a524..a368a1952 100644 --- a/platypush/backend/http/webapp/dist/index.html +++ b/platypush/backend/http/webapp/dist/index.html @@ -1 +1 @@ -platypush
\ No newline at end of file +platypush
\ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/css/2107.3a08bbb5.css b/platypush/backend/http/webapp/dist/static/css/2107.3a08bbb5.css new file mode 100644 index 000000000..1123a12b8 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/css/2107.3a08bbb5.css @@ -0,0 +1 @@ +.col-1[data-v-0359812c]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-1[data-v-0359812c]{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1[data-v-0359812c]:first-child{margin-left:8.6666666667%!important}.col-offset-1[data-v-0359812c]:not(first-child){margin-left:12.6666666667%!important}.col-2[data-v-0359812c]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-2[data-v-0359812c]{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2[data-v-0359812c]:first-child{margin-left:17.3333333333%!important}.col-offset-2[data-v-0359812c]:not(first-child){margin-left:21.3333333333%!important}.col-3[data-v-0359812c]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-3[data-v-0359812c]{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3[data-v-0359812c]:first-child{margin-left:26%!important}.col-offset-3[data-v-0359812c]:not(first-child){margin-left:30%!important}.col-4[data-v-0359812c]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-4[data-v-0359812c]{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4[data-v-0359812c]:first-child{margin-left:34.6666666667%!important}.col-offset-4[data-v-0359812c]:not(first-child){margin-left:38.6666666667%!important}.col-5[data-v-0359812c]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-5[data-v-0359812c]{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5[data-v-0359812c]:first-child{margin-left:43.3333333334%!important}.col-offset-5[data-v-0359812c]:not(first-child){margin-left:47.3333333334%!important}.col-6[data-v-0359812c]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-6[data-v-0359812c]{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6[data-v-0359812c]:first-child{margin-left:52%!important}.col-offset-6[data-v-0359812c]:not(first-child){margin-left:56%!important}.col-7[data-v-0359812c]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-7[data-v-0359812c]{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7[data-v-0359812c]:first-child{margin-left:60.6666666667%!important}.col-offset-7[data-v-0359812c]:not(first-child){margin-left:64.6666666667%!important}.col-8[data-v-0359812c]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-8[data-v-0359812c]{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8[data-v-0359812c]:first-child{margin-left:69.3333333334%!important}.col-offset-8[data-v-0359812c]:not(first-child){margin-left:73.3333333334%!important}.col-9[data-v-0359812c]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-9[data-v-0359812c]{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9[data-v-0359812c]:first-child{margin-left:78%!important}.col-offset-9[data-v-0359812c]:not(first-child){margin-left:82%!important}.col-10[data-v-0359812c]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-10[data-v-0359812c]{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10[data-v-0359812c]:first-child{margin-left:86.6666666667%!important}.col-offset-10[data-v-0359812c]:not(first-child){margin-left:90.6666666667%!important}.col-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11[data-v-0359812c]:first-child{margin-left:95.3333333334%!important}.col-offset-11[data-v-0359812c]:not(first-child){margin-left:99.3333333334%!important}.col-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-12[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1[data-v-0359812c]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-1[data-v-0359812c]{margin-left:8.6666666667%}.col-no-margin-s-1[data-v-0359812c]{float:left;box-sizing:border-box;width:8.3333333333%}.col-s-2[data-v-0359812c]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-s-2[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-2[data-v-0359812c]{margin-left:17.3333333333%}.col-no-margin-s-2[data-v-0359812c]{float:left;box-sizing:border-box;width:16.6666666667%}.col-s-3[data-v-0359812c]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-s-3[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-3[data-v-0359812c]{margin-left:26%}.col-no-margin-s-3[data-v-0359812c]{float:left;box-sizing:border-box;width:25%}.col-s-4[data-v-0359812c]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-s-4[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-4[data-v-0359812c]{margin-left:34.6666666667%}.col-no-margin-s-4[data-v-0359812c]{float:left;box-sizing:border-box;width:33.3333333333%}.col-s-5[data-v-0359812c]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-s-5[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-5[data-v-0359812c]{margin-left:43.3333333334%}.col-no-margin-s-5[data-v-0359812c]{float:left;box-sizing:border-box;width:41.6666666667%}.col-s-6[data-v-0359812c]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-s-6[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-6[data-v-0359812c]{margin-left:52%}.col-no-margin-s-6[data-v-0359812c]{float:left;box-sizing:border-box;width:50%}.col-s-7[data-v-0359812c]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-s-7[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-7[data-v-0359812c]{margin-left:60.6666666667%}.col-no-margin-s-7[data-v-0359812c]{float:left;box-sizing:border-box;width:58.3333333333%}.col-s-8[data-v-0359812c]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-s-8[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-8[data-v-0359812c]{margin-left:69.3333333334%}.col-no-margin-s-8[data-v-0359812c]{float:left;box-sizing:border-box;width:66.6666666667%}.col-s-9[data-v-0359812c]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-s-9[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-9[data-v-0359812c]{margin-left:78%}.col-no-margin-s-9[data-v-0359812c]{float:left;box-sizing:border-box;width:75%}.col-s-10[data-v-0359812c]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-s-10[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-10[data-v-0359812c]{margin-left:86.6666666667%}.col-no-margin-s-10[data-v-0359812c]{float:left;box-sizing:border-box;width:83.3333333333%}.col-s-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-s-11[data-v-0359812c]:first-child{margin-left:0}.col-offset-s-11[data-v-0359812c]{margin-left:95.3333333334%}.col-no-margin-s-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.6666666667%}.col-s-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-s-12[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-s-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%}.s-hidden[data-v-0359812c]{display:none!important}.s-visible[data-v-0359812c]{display:block!important}}@media screen and (min-width:769px){.col-m-1[data-v-0359812c]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-1[data-v-0359812c]{margin-left:8.6666666667%}.col-no-margin-m-1[data-v-0359812c]{float:left;box-sizing:border-box;width:8.3333333333%}.col-m-2[data-v-0359812c]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-m-2[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-2[data-v-0359812c]{margin-left:17.3333333333%}.col-no-margin-m-2[data-v-0359812c]{float:left;box-sizing:border-box;width:16.6666666667%}.col-m-3[data-v-0359812c]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-m-3[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-3[data-v-0359812c]{margin-left:26%}.col-no-margin-m-3[data-v-0359812c]{float:left;box-sizing:border-box;width:25%}.col-m-4[data-v-0359812c]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-m-4[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-4[data-v-0359812c]{margin-left:34.6666666667%}.col-no-margin-m-4[data-v-0359812c]{float:left;box-sizing:border-box;width:33.3333333333%}.col-m-5[data-v-0359812c]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-m-5[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-5[data-v-0359812c]{margin-left:43.3333333334%}.col-no-margin-m-5[data-v-0359812c]{float:left;box-sizing:border-box;width:41.6666666667%}.col-m-6[data-v-0359812c]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-m-6[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-6[data-v-0359812c]{margin-left:52%}.col-no-margin-m-6[data-v-0359812c]{float:left;box-sizing:border-box;width:50%}.col-m-7[data-v-0359812c]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-m-7[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-7[data-v-0359812c]{margin-left:60.6666666667%}.col-no-margin-m-7[data-v-0359812c]{float:left;box-sizing:border-box;width:58.3333333333%}.col-m-8[data-v-0359812c]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-m-8[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-8[data-v-0359812c]{margin-left:69.3333333334%}.col-no-margin-m-8[data-v-0359812c]{float:left;box-sizing:border-box;width:66.6666666667%}.col-m-9[data-v-0359812c]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-m-9[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-9[data-v-0359812c]{margin-left:78%}.col-no-margin-m-9[data-v-0359812c]{float:left;box-sizing:border-box;width:75%}.col-m-10[data-v-0359812c]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-m-10[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-10[data-v-0359812c]{margin-left:86.6666666667%}.col-no-margin-m-10[data-v-0359812c]{float:left;box-sizing:border-box;width:83.3333333333%}.col-m-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-m-11[data-v-0359812c]:first-child{margin-left:0}.col-offset-m-11[data-v-0359812c]{margin-left:95.3333333334%}.col-no-margin-m-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.6666666667%}.col-m-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-m-12[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-m-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%}.m-hidden[data-v-0359812c]{display:none!important}.m-visible[data-v-0359812c]{display:block!important}}@media screen and (min-width:1024px){.col-l-1[data-v-0359812c]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-1[data-v-0359812c]{margin-left:8.6666666667%}.col-no-margin-l-1[data-v-0359812c]{float:left;box-sizing:border-box;width:8.3333333333%}.col-l-2[data-v-0359812c]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-l-2[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-2[data-v-0359812c]{margin-left:17.3333333333%}.col-no-margin-l-2[data-v-0359812c]{float:left;box-sizing:border-box;width:16.6666666667%}.col-l-3[data-v-0359812c]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-l-3[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-3[data-v-0359812c]{margin-left:26%}.col-no-margin-l-3[data-v-0359812c]{float:left;box-sizing:border-box;width:25%}.col-l-4[data-v-0359812c]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-l-4[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-4[data-v-0359812c]{margin-left:34.6666666667%}.col-no-margin-l-4[data-v-0359812c]{float:left;box-sizing:border-box;width:33.3333333333%}.col-l-5[data-v-0359812c]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-l-5[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-5[data-v-0359812c]{margin-left:43.3333333334%}.col-no-margin-l-5[data-v-0359812c]{float:left;box-sizing:border-box;width:41.6666666667%}.col-l-6[data-v-0359812c]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-l-6[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-6[data-v-0359812c]{margin-left:52%}.col-no-margin-l-6[data-v-0359812c]{float:left;box-sizing:border-box;width:50%}.col-l-7[data-v-0359812c]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-l-7[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-7[data-v-0359812c]{margin-left:60.6666666667%}.col-no-margin-l-7[data-v-0359812c]{float:left;box-sizing:border-box;width:58.3333333333%}.col-l-8[data-v-0359812c]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-l-8[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-8[data-v-0359812c]{margin-left:69.3333333334%}.col-no-margin-l-8[data-v-0359812c]{float:left;box-sizing:border-box;width:66.6666666667%}.col-l-9[data-v-0359812c]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-l-9[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-9[data-v-0359812c]{margin-left:78%}.col-no-margin-l-9[data-v-0359812c]{float:left;box-sizing:border-box;width:75%}.col-l-10[data-v-0359812c]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-l-10[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-10[data-v-0359812c]{margin-left:86.6666666667%}.col-no-margin-l-10[data-v-0359812c]{float:left;box-sizing:border-box;width:83.3333333333%}.col-l-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-l-11[data-v-0359812c]:first-child{margin-left:0}.col-offset-l-11[data-v-0359812c]{margin-left:95.3333333334%}.col-no-margin-l-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.6666666667%}.col-l-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-l-12[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-l-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%}.l-hidden[data-v-0359812c]{display:none!important}.l-visible[data-v-0359812c]{display:block!important}}@media screen and (min-width:1216px){.col-xl-1[data-v-0359812c]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-1[data-v-0359812c]{margin-left:8.6666666667%}.col-no-margin-xl-1[data-v-0359812c]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xl-2[data-v-0359812c]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xl-2[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-2[data-v-0359812c]{margin-left:17.3333333333%}.col-no-margin-xl-2[data-v-0359812c]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xl-3[data-v-0359812c]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xl-3[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-3[data-v-0359812c]{margin-left:26%}.col-no-margin-xl-3[data-v-0359812c]{float:left;box-sizing:border-box;width:25%}.col-xl-4[data-v-0359812c]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xl-4[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-4[data-v-0359812c]{margin-left:34.6666666667%}.col-no-margin-xl-4[data-v-0359812c]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xl-5[data-v-0359812c]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xl-5[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-5[data-v-0359812c]{margin-left:43.3333333334%}.col-no-margin-xl-5[data-v-0359812c]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xl-6[data-v-0359812c]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xl-6[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-6[data-v-0359812c]{margin-left:52%}.col-no-margin-xl-6[data-v-0359812c]{float:left;box-sizing:border-box;width:50%}.col-xl-7[data-v-0359812c]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xl-7[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-7[data-v-0359812c]{margin-left:60.6666666667%}.col-no-margin-xl-7[data-v-0359812c]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xl-8[data-v-0359812c]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xl-8[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-8[data-v-0359812c]{margin-left:69.3333333334%}.col-no-margin-xl-8[data-v-0359812c]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xl-9[data-v-0359812c]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xl-9[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-9[data-v-0359812c]{margin-left:78%}.col-no-margin-xl-9[data-v-0359812c]{float:left;box-sizing:border-box;width:75%}.col-xl-10[data-v-0359812c]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xl-10[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-10[data-v-0359812c]{margin-left:86.6666666667%}.col-no-margin-xl-10[data-v-0359812c]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xl-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xl-11[data-v-0359812c]:first-child{margin-left:0}.col-offset-xl-11[data-v-0359812c]{margin-left:95.3333333334%}.col-no-margin-xl-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xl-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xl-12[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-xl-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%}.xl-hidden[data-v-0359812c]{display:none!important}.xl-visible[data-v-0359812c]{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1[data-v-0359812c]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-1[data-v-0359812c]{margin-left:8.6666666667%}.col-no-margin-xxl-1[data-v-0359812c]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xxl-2[data-v-0359812c]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xxl-2[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-2[data-v-0359812c]{margin-left:17.3333333333%}.col-no-margin-xxl-2[data-v-0359812c]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xxl-3[data-v-0359812c]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xxl-3[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-3[data-v-0359812c]{margin-left:26%}.col-no-margin-xxl-3[data-v-0359812c]{float:left;box-sizing:border-box;width:25%}.col-xxl-4[data-v-0359812c]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xxl-4[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-4[data-v-0359812c]{margin-left:34.6666666667%}.col-no-margin-xxl-4[data-v-0359812c]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xxl-5[data-v-0359812c]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xxl-5[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-5[data-v-0359812c]{margin-left:43.3333333334%}.col-no-margin-xxl-5[data-v-0359812c]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xxl-6[data-v-0359812c]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xxl-6[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-6[data-v-0359812c]{margin-left:52%}.col-no-margin-xxl-6[data-v-0359812c]{float:left;box-sizing:border-box;width:50%}.col-xxl-7[data-v-0359812c]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xxl-7[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-7[data-v-0359812c]{margin-left:60.6666666667%}.col-no-margin-xxl-7[data-v-0359812c]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xxl-8[data-v-0359812c]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xxl-8[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-8[data-v-0359812c]{margin-left:69.3333333334%}.col-no-margin-xxl-8[data-v-0359812c]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xxl-9[data-v-0359812c]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xxl-9[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-9[data-v-0359812c]{margin-left:78%}.col-no-margin-xxl-9[data-v-0359812c]{float:left;box-sizing:border-box;width:75%}.col-xxl-10[data-v-0359812c]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-10[data-v-0359812c]{margin-left:86.6666666667%}.col-no-margin-xxl-10[data-v-0359812c]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11[data-v-0359812c]:first-child{margin-left:0}.col-offset-xxl-11[data-v-0359812c]{margin-left:95.3333333334%}.col-no-margin-xxl-11[data-v-0359812c]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xxl-12[data-v-0359812c]:first-child{margin-left:0}.col-no-margin-xxl-12[data-v-0359812c]{float:left;box-sizing:border-box;width:100%}.xxl-hidden[data-v-0359812c]{display:none!important}.xxl-visible[data-v-0359812c]{display:block!important}}.vertical-center[data-v-0359812c]{display:flex;align-items:center}.horizontal-center[data-v-0359812c]{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right[data-v-0359812c]{text-align:right;float:right;justify-content:right}.hidden[data-v-0359812c]{display:none!important}.no-content[data-v-0359812c]{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn-default[data-v-0359812c],.btn[data-v-0359812c],button[data-v-0359812c]{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary[data-v-0359812c],.btn-default[type=submit][data-v-0359812c],.btn.btn-primary[data-v-0359812c],.btn[type=submit][data-v-0359812c],button.btn-primary[data-v-0359812c],button[type=submit][data-v-0359812c]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon[data-v-0359812c],.btn-default .icon[data-v-0359812c],button .icon[data-v-0359812c]{margin-right:.5em}input[type=password][data-v-0359812c],input[type=text][data-v-0359812c]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password][data-v-0359812c]:focus,input[type=text][data-v-0359812c]:focus{border:1px solid #35b870}button[data-v-0359812c],input[data-v-0359812c]{outline:none}input[type=text][data-v-0359812c]:hover,textarea[data-v-0359812c]:hover{border:1px solid #9cdfb0}ul[data-v-0359812c]{margin:0;padding:0;list-style:none}a[data-v-0359812c]{cursor:pointer;text-decoration:none}[data-v-0359812c]::-webkit-scrollbar{width:.75em}[data-v-0359812c]::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}[data-v-0359812c]::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body[data-v-0359812c]{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon[data-v-0359812c]{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number][data-v-0359812c],input[type=password][data-v-0359812c],input[type=search][data-v-0359812c],input[type=text][data-v-0359812c]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number][data-v-0359812c]:hover,input[type=password][data-v-0359812c]:hover,input[type=search][data-v-0359812c]:hover,input[type=text][data-v-0359812c]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number][data-v-0359812c]:focus,input[type=password][data-v-0359812c]:focus,input[type=search][data-v-0359812c]:focus,input[type=text][data-v-0359812c]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon[data-v-0359812c],input[type=password].with-icon[data-v-0359812c],input[type=search].with-icon[data-v-0359812c],input[type=text].with-icon[data-v-0359812c]{padding-left:.3em}input[type=search][data-v-0359812c],input[type=text][data-v-0359812c]{border-radius:1em;padding:.25em .5em}.fade-in[data-v-0359812c]{animation-fill-mode:both;animation-name:fadeIn-0359812c;-webkit-animation-name:fadeIn-0359812c}.fade-in[data-v-0359812c],.fade-out[data-v-0359812c]{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out[data-v-0359812c]{animation-fill-mode:both;animation-name:fadeOut-0359812c;-webkit-animation-name:fadeOut-0359812c}@keyframes fadeIn-0359812c{0%{opacity:0}to{opacity:1}}@keyframes fadeOut-0359812c{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi[data-v-0359812c]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-plex[data-v-0359812c]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin[data-v-0359812c]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.slider-wrapper[data-v-0359812c]{width:100%;display:flex;position:relative}.slider-wrapper .slider[data-v-0359812c]{width:100%;cursor:pointer;opacity:0}.slider-wrapper .slider[data-v-0359812c]::-ms-tooltip{display:none}.slider-wrapper .track[data-v-0359812c]{width:100%;height:.75em;background:#e4e4e4;position:absolute;top:50%;transform:translateY(-50%);border-radius:.5em;box-shadow:inset 1px 0 3px 0 #a5a2a2;pointer-events:none}.slider-wrapper .track .track-inner[data-v-0359812c]{width:0;height:100%;background:rgba(0,215,80,.5);border-radius:.5em 0 0 .5em}.slider-wrapper .track.with-label[data-v-0359812c]{width:calc(100% - 3em)}.slider-wrapper .thumb[data-v-0359812c]{width:1.25em;height:1.25em;background:#37d560;position:absolute;top:50%;left:0;transform:translateY(-50%);border-radius:50%;box-shadow:1px 0 2px 0 #475c40;pointer-events:none}.slider-wrapper .label[data-v-0359812c]{width:3em;position:relative;font-weight:400;text-align:center} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/css/3803.071120e4.css b/platypush/backend/http/webapp/dist/static/css/3803.071120e4.css deleted file mode 100644 index 2cd282aed..000000000 --- a/platypush/backend/http/webapp/dist/static/css/3803.071120e4.css +++ /dev/null @@ -1 +0,0 @@ -.col-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1[data-v-95edc28a]:first-child{margin-left:8.6666666667%!important}.col-offset-1[data-v-95edc28a]:not(first-child){margin-left:12.6666666667%!important}.col-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2[data-v-95edc28a]:first-child{margin-left:17.3333333333%!important}.col-offset-2[data-v-95edc28a]:not(first-child){margin-left:21.3333333333%!important}.col-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3[data-v-95edc28a]:first-child{margin-left:26%!important}.col-offset-3[data-v-95edc28a]:not(first-child){margin-left:30%!important}.col-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4[data-v-95edc28a]:first-child{margin-left:34.6666666667%!important}.col-offset-4[data-v-95edc28a]:not(first-child){margin-left:38.6666666667%!important}.col-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5[data-v-95edc28a]:first-child{margin-left:43.3333333334%!important}.col-offset-5[data-v-95edc28a]:not(first-child){margin-left:47.3333333334%!important}.col-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6[data-v-95edc28a]:first-child{margin-left:52%!important}.col-offset-6[data-v-95edc28a]:not(first-child){margin-left:56%!important}.col-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7[data-v-95edc28a]:first-child{margin-left:60.6666666667%!important}.col-offset-7[data-v-95edc28a]:not(first-child){margin-left:64.6666666667%!important}.col-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8[data-v-95edc28a]:first-child{margin-left:69.3333333334%!important}.col-offset-8[data-v-95edc28a]:not(first-child){margin-left:73.3333333334%!important}.col-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9[data-v-95edc28a]:first-child{margin-left:78%!important}.col-offset-9[data-v-95edc28a]:not(first-child){margin-left:82%!important}.col-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10[data-v-95edc28a]:first-child{margin-left:86.6666666667%!important}.col-offset-10[data-v-95edc28a]:not(first-child){margin-left:90.6666666667%!important}.col-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11[data-v-95edc28a]:first-child{margin-left:95.3333333334%!important}.col-offset-11[data-v-95edc28a]:not(first-child){margin-left:99.3333333334%!important}.col-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-12[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-1[data-v-95edc28a]{margin-left:8.6666666667%}.col-no-margin-s-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:8.3333333333%}.col-s-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-s-2[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-2[data-v-95edc28a]{margin-left:17.3333333333%}.col-no-margin-s-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:16.6666666667%}.col-s-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-s-3[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-3[data-v-95edc28a]{margin-left:26%}.col-no-margin-s-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:25%}.col-s-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-s-4[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-4[data-v-95edc28a]{margin-left:34.6666666667%}.col-no-margin-s-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:33.3333333333%}.col-s-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-s-5[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-5[data-v-95edc28a]{margin-left:43.3333333334%}.col-no-margin-s-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:41.6666666667%}.col-s-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-s-6[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-6[data-v-95edc28a]{margin-left:52%}.col-no-margin-s-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:50%}.col-s-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-s-7[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-7[data-v-95edc28a]{margin-left:60.6666666667%}.col-no-margin-s-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:58.3333333333%}.col-s-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-s-8[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-8[data-v-95edc28a]{margin-left:69.3333333334%}.col-no-margin-s-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:66.6666666667%}.col-s-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-s-9[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-9[data-v-95edc28a]{margin-left:78%}.col-no-margin-s-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:75%}.col-s-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-s-10[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-10[data-v-95edc28a]{margin-left:86.6666666667%}.col-no-margin-s-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:83.3333333333%}.col-s-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-s-11[data-v-95edc28a]:first-child{margin-left:0}.col-offset-s-11[data-v-95edc28a]{margin-left:95.3333333334%}.col-no-margin-s-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.6666666667%}.col-s-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-s-12[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-s-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%}.s-hidden[data-v-95edc28a]{display:none!important}.s-visible[data-v-95edc28a]{display:block!important}}@media screen and (min-width:769px){.col-m-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-1[data-v-95edc28a]{margin-left:8.6666666667%}.col-no-margin-m-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:8.3333333333%}.col-m-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-m-2[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-2[data-v-95edc28a]{margin-left:17.3333333333%}.col-no-margin-m-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:16.6666666667%}.col-m-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-m-3[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-3[data-v-95edc28a]{margin-left:26%}.col-no-margin-m-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:25%}.col-m-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-m-4[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-4[data-v-95edc28a]{margin-left:34.6666666667%}.col-no-margin-m-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:33.3333333333%}.col-m-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-m-5[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-5[data-v-95edc28a]{margin-left:43.3333333334%}.col-no-margin-m-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:41.6666666667%}.col-m-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-m-6[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-6[data-v-95edc28a]{margin-left:52%}.col-no-margin-m-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:50%}.col-m-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-m-7[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-7[data-v-95edc28a]{margin-left:60.6666666667%}.col-no-margin-m-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:58.3333333333%}.col-m-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-m-8[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-8[data-v-95edc28a]{margin-left:69.3333333334%}.col-no-margin-m-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:66.6666666667%}.col-m-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-m-9[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-9[data-v-95edc28a]{margin-left:78%}.col-no-margin-m-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:75%}.col-m-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-m-10[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-10[data-v-95edc28a]{margin-left:86.6666666667%}.col-no-margin-m-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:83.3333333333%}.col-m-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-m-11[data-v-95edc28a]:first-child{margin-left:0}.col-offset-m-11[data-v-95edc28a]{margin-left:95.3333333334%}.col-no-margin-m-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.6666666667%}.col-m-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-m-12[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-m-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%}.m-hidden[data-v-95edc28a]{display:none!important}.m-visible[data-v-95edc28a]{display:block!important}}@media screen and (min-width:1024px){.col-l-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-1[data-v-95edc28a]{margin-left:8.6666666667%}.col-no-margin-l-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:8.3333333333%}.col-l-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-l-2[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-2[data-v-95edc28a]{margin-left:17.3333333333%}.col-no-margin-l-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:16.6666666667%}.col-l-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-l-3[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-3[data-v-95edc28a]{margin-left:26%}.col-no-margin-l-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:25%}.col-l-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-l-4[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-4[data-v-95edc28a]{margin-left:34.6666666667%}.col-no-margin-l-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:33.3333333333%}.col-l-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-l-5[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-5[data-v-95edc28a]{margin-left:43.3333333334%}.col-no-margin-l-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:41.6666666667%}.col-l-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-l-6[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-6[data-v-95edc28a]{margin-left:52%}.col-no-margin-l-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:50%}.col-l-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-l-7[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-7[data-v-95edc28a]{margin-left:60.6666666667%}.col-no-margin-l-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:58.3333333333%}.col-l-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-l-8[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-8[data-v-95edc28a]{margin-left:69.3333333334%}.col-no-margin-l-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:66.6666666667%}.col-l-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-l-9[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-9[data-v-95edc28a]{margin-left:78%}.col-no-margin-l-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:75%}.col-l-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-l-10[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-10[data-v-95edc28a]{margin-left:86.6666666667%}.col-no-margin-l-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:83.3333333333%}.col-l-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-l-11[data-v-95edc28a]:first-child{margin-left:0}.col-offset-l-11[data-v-95edc28a]{margin-left:95.3333333334%}.col-no-margin-l-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.6666666667%}.col-l-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-l-12[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-l-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%}.l-hidden[data-v-95edc28a]{display:none!important}.l-visible[data-v-95edc28a]{display:block!important}}@media screen and (min-width:1216px){.col-xl-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-1[data-v-95edc28a]{margin-left:8.6666666667%}.col-no-margin-xl-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xl-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xl-2[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-2[data-v-95edc28a]{margin-left:17.3333333333%}.col-no-margin-xl-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xl-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xl-3[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-3[data-v-95edc28a]{margin-left:26%}.col-no-margin-xl-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:25%}.col-xl-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xl-4[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-4[data-v-95edc28a]{margin-left:34.6666666667%}.col-no-margin-xl-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xl-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xl-5[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-5[data-v-95edc28a]{margin-left:43.3333333334%}.col-no-margin-xl-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xl-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xl-6[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-6[data-v-95edc28a]{margin-left:52%}.col-no-margin-xl-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:50%}.col-xl-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xl-7[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-7[data-v-95edc28a]{margin-left:60.6666666667%}.col-no-margin-xl-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xl-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xl-8[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-8[data-v-95edc28a]{margin-left:69.3333333334%}.col-no-margin-xl-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xl-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xl-9[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-9[data-v-95edc28a]{margin-left:78%}.col-no-margin-xl-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:75%}.col-xl-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xl-10[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-10[data-v-95edc28a]{margin-left:86.6666666667%}.col-no-margin-xl-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xl-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xl-11[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xl-11[data-v-95edc28a]{margin-left:95.3333333334%}.col-no-margin-xl-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xl-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xl-12[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-xl-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%}.xl-hidden[data-v-95edc28a]{display:none!important}.xl-visible[data-v-95edc28a]{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-1[data-v-95edc28a]{margin-left:8.6666666667%}.col-no-margin-xxl-1[data-v-95edc28a]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xxl-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xxl-2[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-2[data-v-95edc28a]{margin-left:17.3333333333%}.col-no-margin-xxl-2[data-v-95edc28a]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xxl-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xxl-3[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-3[data-v-95edc28a]{margin-left:26%}.col-no-margin-xxl-3[data-v-95edc28a]{float:left;box-sizing:border-box;width:25%}.col-xxl-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xxl-4[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-4[data-v-95edc28a]{margin-left:34.6666666667%}.col-no-margin-xxl-4[data-v-95edc28a]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xxl-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xxl-5[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-5[data-v-95edc28a]{margin-left:43.3333333334%}.col-no-margin-xxl-5[data-v-95edc28a]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xxl-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xxl-6[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-6[data-v-95edc28a]{margin-left:52%}.col-no-margin-xxl-6[data-v-95edc28a]{float:left;box-sizing:border-box;width:50%}.col-xxl-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xxl-7[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-7[data-v-95edc28a]{margin-left:60.6666666667%}.col-no-margin-xxl-7[data-v-95edc28a]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xxl-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xxl-8[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-8[data-v-95edc28a]{margin-left:69.3333333334%}.col-no-margin-xxl-8[data-v-95edc28a]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xxl-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xxl-9[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-9[data-v-95edc28a]{margin-left:78%}.col-no-margin-xxl-9[data-v-95edc28a]{float:left;box-sizing:border-box;width:75%}.col-xxl-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-10[data-v-95edc28a]{margin-left:86.6666666667%}.col-no-margin-xxl-10[data-v-95edc28a]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11[data-v-95edc28a]:first-child{margin-left:0}.col-offset-xxl-11[data-v-95edc28a]{margin-left:95.3333333334%}.col-no-margin-xxl-11[data-v-95edc28a]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xxl-12[data-v-95edc28a]:first-child{margin-left:0}.col-no-margin-xxl-12[data-v-95edc28a]{float:left;box-sizing:border-box;width:100%}.xxl-hidden[data-v-95edc28a]{display:none!important}.xxl-visible[data-v-95edc28a]{display:block!important}}.vertical-center[data-v-95edc28a]{display:flex;align-items:center}.horizontal-center[data-v-95edc28a]{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right[data-v-95edc28a]{text-align:right;float:right;justify-content:right}.hidden[data-v-95edc28a]{display:none!important}.no-content[data-v-95edc28a]{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn-default[data-v-95edc28a],.btn[data-v-95edc28a],button[data-v-95edc28a]{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary[data-v-95edc28a],.btn-default[type=submit][data-v-95edc28a],.btn.btn-primary[data-v-95edc28a],.btn[type=submit][data-v-95edc28a],button.btn-primary[data-v-95edc28a],button[type=submit][data-v-95edc28a]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon[data-v-95edc28a],.btn-default .icon[data-v-95edc28a],button .icon[data-v-95edc28a]{margin-right:.5em}input[type=password][data-v-95edc28a],input[type=text][data-v-95edc28a]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password][data-v-95edc28a]:focus,input[type=text][data-v-95edc28a]:focus{border:1px solid #35b870}button[data-v-95edc28a],input[data-v-95edc28a]{outline:none}input[type=text][data-v-95edc28a]:hover,textarea[data-v-95edc28a]:hover{border:1px solid #9cdfb0}ul[data-v-95edc28a]{margin:0;padding:0;list-style:none}a[data-v-95edc28a]{cursor:pointer;text-decoration:none}[data-v-95edc28a]::-webkit-scrollbar{width:.75em}[data-v-95edc28a]::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}[data-v-95edc28a]::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body[data-v-95edc28a]{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon[data-v-95edc28a]{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number][data-v-95edc28a],input[type=password][data-v-95edc28a],input[type=search][data-v-95edc28a],input[type=text][data-v-95edc28a]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number][data-v-95edc28a]:hover,input[type=password][data-v-95edc28a]:hover,input[type=search][data-v-95edc28a]:hover,input[type=text][data-v-95edc28a]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number][data-v-95edc28a]:focus,input[type=password][data-v-95edc28a]:focus,input[type=search][data-v-95edc28a]:focus,input[type=text][data-v-95edc28a]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon[data-v-95edc28a],input[type=password].with-icon[data-v-95edc28a],input[type=search].with-icon[data-v-95edc28a],input[type=text].with-icon[data-v-95edc28a]{padding-left:.3em}input[type=search][data-v-95edc28a],input[type=text][data-v-95edc28a]{border-radius:1em;padding:.25em .5em}.fade-in[data-v-95edc28a]{animation-fill-mode:both;animation-name:fadeIn-95edc28a;-webkit-animation-name:fadeIn-95edc28a}.fade-in[data-v-95edc28a],.fade-out[data-v-95edc28a]{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out[data-v-95edc28a]{animation-fill-mode:both;animation-name:fadeOut-95edc28a;-webkit-animation-name:fadeOut-95edc28a}@keyframes fadeIn-95edc28a{0%{opacity:0}to{opacity:1}}@keyframes fadeOut-95edc28a{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi[data-v-95edc28a]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-plex[data-v-95edc28a]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin[data-v-95edc28a]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.slider-wrapper[data-v-95edc28a]{width:100%;display:flex;position:relative}.slider-wrapper .slider[data-v-95edc28a]{width:100%;cursor:pointer;opacity:0}.slider-wrapper .slider[data-v-95edc28a]::-ms-tooltip{display:none}.slider-wrapper .track[data-v-95edc28a]{width:100%;height:.75em;background:#e4e4e4;position:absolute;top:50%;transform:translateY(-50%);border-radius:.5em;box-shadow:inset 1px 0 3px 0 #a5a2a2;pointer-events:none}.slider-wrapper .track .track-inner[data-v-95edc28a]{width:0;height:100%;background:rgba(0,215,80,.5);border-radius:.5em 0 0 .5em}.slider-wrapper .thumb[data-v-95edc28a]{width:1.25em;height:1.25em;background:#37d560;position:absolute;top:50%;left:0;transform:translateY(-50%);border-radius:50%;box-shadow:1px 0 2px 0 #475c40;pointer-events:none}.slider-wrapper label[data-v-95edc28a]{position:relative}.slider-wrapper label .label[data-v-95edc28a]{font-weight:400;text-align:center} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/css/4604.34b220bc.css b/platypush/backend/http/webapp/dist/static/css/4848.ae3af6a6.css similarity index 69% rename from platypush/backend/http/webapp/dist/static/css/4604.34b220bc.css rename to platypush/backend/http/webapp/dist/static/css/4848.ae3af6a6.css index a2ae42f06..9f71b08c4 100644 --- a/platypush/backend/http/webapp/dist/static/css/4604.34b220bc.css +++ b/platypush/backend/http/webapp/dist/static/css/4848.ae3af6a6.css @@ -1 +1 @@ -.col-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1[data-v-b05d09fc]:first-child{margin-left:8.6666666667%!important}.col-offset-1[data-v-b05d09fc]:not(first-child){margin-left:12.6666666667%!important}.col-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2[data-v-b05d09fc]:first-child{margin-left:17.3333333333%!important}.col-offset-2[data-v-b05d09fc]:not(first-child){margin-left:21.3333333333%!important}.col-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3[data-v-b05d09fc]:first-child{margin-left:26%!important}.col-offset-3[data-v-b05d09fc]:not(first-child){margin-left:30%!important}.col-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4[data-v-b05d09fc]:first-child{margin-left:34.6666666667%!important}.col-offset-4[data-v-b05d09fc]:not(first-child){margin-left:38.6666666667%!important}.col-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5[data-v-b05d09fc]:first-child{margin-left:43.3333333334%!important}.col-offset-5[data-v-b05d09fc]:not(first-child){margin-left:47.3333333334%!important}.col-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6[data-v-b05d09fc]:first-child{margin-left:52%!important}.col-offset-6[data-v-b05d09fc]:not(first-child){margin-left:56%!important}.col-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7[data-v-b05d09fc]:first-child{margin-left:60.6666666667%!important}.col-offset-7[data-v-b05d09fc]:not(first-child){margin-left:64.6666666667%!important}.col-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8[data-v-b05d09fc]:first-child{margin-left:69.3333333334%!important}.col-offset-8[data-v-b05d09fc]:not(first-child){margin-left:73.3333333334%!important}.col-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9[data-v-b05d09fc]:first-child{margin-left:78%!important}.col-offset-9[data-v-b05d09fc]:not(first-child){margin-left:82%!important}.col-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10[data-v-b05d09fc]:first-child{margin-left:86.6666666667%!important}.col-offset-10[data-v-b05d09fc]:not(first-child){margin-left:90.6666666667%!important}.col-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11[data-v-b05d09fc]:first-child{margin-left:95.3333333334%!important}.col-offset-11[data-v-b05d09fc]:not(first-child){margin-left:99.3333333334%!important}.col-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-12[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-1[data-v-b05d09fc]{margin-left:8.6666666667%}.col-no-margin-s-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:8.3333333333%}.col-s-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-s-2[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-2[data-v-b05d09fc]{margin-left:17.3333333333%}.col-no-margin-s-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:16.6666666667%}.col-s-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-s-3[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-3[data-v-b05d09fc]{margin-left:26%}.col-no-margin-s-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:25%}.col-s-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-s-4[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-4[data-v-b05d09fc]{margin-left:34.6666666667%}.col-no-margin-s-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:33.3333333333%}.col-s-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-s-5[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-5[data-v-b05d09fc]{margin-left:43.3333333334%}.col-no-margin-s-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:41.6666666667%}.col-s-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-s-6[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-6[data-v-b05d09fc]{margin-left:52%}.col-no-margin-s-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:50%}.col-s-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-s-7[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-7[data-v-b05d09fc]{margin-left:60.6666666667%}.col-no-margin-s-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:58.3333333333%}.col-s-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-s-8[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-8[data-v-b05d09fc]{margin-left:69.3333333334%}.col-no-margin-s-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:66.6666666667%}.col-s-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-s-9[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-9[data-v-b05d09fc]{margin-left:78%}.col-no-margin-s-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:75%}.col-s-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-s-10[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-10[data-v-b05d09fc]{margin-left:86.6666666667%}.col-no-margin-s-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:83.3333333333%}.col-s-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-s-11[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-s-11[data-v-b05d09fc]{margin-left:95.3333333334%}.col-no-margin-s-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.6666666667%}.col-s-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-s-12[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-s-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%}.s-hidden[data-v-b05d09fc]{display:none!important}.s-visible[data-v-b05d09fc]{display:block!important}}@media screen and (min-width:769px){.col-m-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-1[data-v-b05d09fc]{margin-left:8.6666666667%}.col-no-margin-m-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:8.3333333333%}.col-m-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-m-2[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-2[data-v-b05d09fc]{margin-left:17.3333333333%}.col-no-margin-m-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:16.6666666667%}.col-m-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-m-3[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-3[data-v-b05d09fc]{margin-left:26%}.col-no-margin-m-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:25%}.col-m-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-m-4[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-4[data-v-b05d09fc]{margin-left:34.6666666667%}.col-no-margin-m-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:33.3333333333%}.col-m-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-m-5[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-5[data-v-b05d09fc]{margin-left:43.3333333334%}.col-no-margin-m-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:41.6666666667%}.col-m-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-m-6[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-6[data-v-b05d09fc]{margin-left:52%}.col-no-margin-m-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:50%}.col-m-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-m-7[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-7[data-v-b05d09fc]{margin-left:60.6666666667%}.col-no-margin-m-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:58.3333333333%}.col-m-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-m-8[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-8[data-v-b05d09fc]{margin-left:69.3333333334%}.col-no-margin-m-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:66.6666666667%}.col-m-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-m-9[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-9[data-v-b05d09fc]{margin-left:78%}.col-no-margin-m-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:75%}.col-m-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-m-10[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-10[data-v-b05d09fc]{margin-left:86.6666666667%}.col-no-margin-m-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:83.3333333333%}.col-m-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-m-11[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-m-11[data-v-b05d09fc]{margin-left:95.3333333334%}.col-no-margin-m-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.6666666667%}.col-m-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-m-12[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-m-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%}.m-hidden[data-v-b05d09fc]{display:none!important}.m-visible[data-v-b05d09fc]{display:block!important}}@media screen and (min-width:1024px){.col-l-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-1[data-v-b05d09fc]{margin-left:8.6666666667%}.col-no-margin-l-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:8.3333333333%}.col-l-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-l-2[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-2[data-v-b05d09fc]{margin-left:17.3333333333%}.col-no-margin-l-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:16.6666666667%}.col-l-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-l-3[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-3[data-v-b05d09fc]{margin-left:26%}.col-no-margin-l-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:25%}.col-l-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-l-4[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-4[data-v-b05d09fc]{margin-left:34.6666666667%}.col-no-margin-l-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:33.3333333333%}.col-l-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-l-5[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-5[data-v-b05d09fc]{margin-left:43.3333333334%}.col-no-margin-l-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:41.6666666667%}.col-l-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-l-6[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-6[data-v-b05d09fc]{margin-left:52%}.col-no-margin-l-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:50%}.col-l-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-l-7[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-7[data-v-b05d09fc]{margin-left:60.6666666667%}.col-no-margin-l-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:58.3333333333%}.col-l-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-l-8[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-8[data-v-b05d09fc]{margin-left:69.3333333334%}.col-no-margin-l-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:66.6666666667%}.col-l-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-l-9[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-9[data-v-b05d09fc]{margin-left:78%}.col-no-margin-l-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:75%}.col-l-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-l-10[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-10[data-v-b05d09fc]{margin-left:86.6666666667%}.col-no-margin-l-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:83.3333333333%}.col-l-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-l-11[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-l-11[data-v-b05d09fc]{margin-left:95.3333333334%}.col-no-margin-l-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.6666666667%}.col-l-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-l-12[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-l-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%}.l-hidden[data-v-b05d09fc]{display:none!important}.l-visible[data-v-b05d09fc]{display:block!important}}@media screen and (min-width:1216px){.col-xl-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-1[data-v-b05d09fc]{margin-left:8.6666666667%}.col-no-margin-xl-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xl-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xl-2[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-2[data-v-b05d09fc]{margin-left:17.3333333333%}.col-no-margin-xl-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xl-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xl-3[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-3[data-v-b05d09fc]{margin-left:26%}.col-no-margin-xl-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:25%}.col-xl-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xl-4[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-4[data-v-b05d09fc]{margin-left:34.6666666667%}.col-no-margin-xl-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xl-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xl-5[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-5[data-v-b05d09fc]{margin-left:43.3333333334%}.col-no-margin-xl-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xl-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xl-6[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-6[data-v-b05d09fc]{margin-left:52%}.col-no-margin-xl-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:50%}.col-xl-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xl-7[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-7[data-v-b05d09fc]{margin-left:60.6666666667%}.col-no-margin-xl-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xl-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xl-8[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-8[data-v-b05d09fc]{margin-left:69.3333333334%}.col-no-margin-xl-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xl-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xl-9[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-9[data-v-b05d09fc]{margin-left:78%}.col-no-margin-xl-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:75%}.col-xl-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xl-10[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-10[data-v-b05d09fc]{margin-left:86.6666666667%}.col-no-margin-xl-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xl-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xl-11[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xl-11[data-v-b05d09fc]{margin-left:95.3333333334%}.col-no-margin-xl-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xl-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xl-12[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-xl-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%}.xl-hidden[data-v-b05d09fc]{display:none!important}.xl-visible[data-v-b05d09fc]{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-1[data-v-b05d09fc]{margin-left:8.6666666667%}.col-no-margin-xxl-1[data-v-b05d09fc]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xxl-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xxl-2[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-2[data-v-b05d09fc]{margin-left:17.3333333333%}.col-no-margin-xxl-2[data-v-b05d09fc]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xxl-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xxl-3[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-3[data-v-b05d09fc]{margin-left:26%}.col-no-margin-xxl-3[data-v-b05d09fc]{float:left;box-sizing:border-box;width:25%}.col-xxl-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xxl-4[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-4[data-v-b05d09fc]{margin-left:34.6666666667%}.col-no-margin-xxl-4[data-v-b05d09fc]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xxl-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xxl-5[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-5[data-v-b05d09fc]{margin-left:43.3333333334%}.col-no-margin-xxl-5[data-v-b05d09fc]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xxl-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xxl-6[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-6[data-v-b05d09fc]{margin-left:52%}.col-no-margin-xxl-6[data-v-b05d09fc]{float:left;box-sizing:border-box;width:50%}.col-xxl-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xxl-7[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-7[data-v-b05d09fc]{margin-left:60.6666666667%}.col-no-margin-xxl-7[data-v-b05d09fc]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xxl-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xxl-8[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-8[data-v-b05d09fc]{margin-left:69.3333333334%}.col-no-margin-xxl-8[data-v-b05d09fc]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xxl-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xxl-9[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-9[data-v-b05d09fc]{margin-left:78%}.col-no-margin-xxl-9[data-v-b05d09fc]{float:left;box-sizing:border-box;width:75%}.col-xxl-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-10[data-v-b05d09fc]{margin-left:86.6666666667%}.col-no-margin-xxl-10[data-v-b05d09fc]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11[data-v-b05d09fc]:first-child{margin-left:0}.col-offset-xxl-11[data-v-b05d09fc]{margin-left:95.3333333334%}.col-no-margin-xxl-11[data-v-b05d09fc]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xxl-12[data-v-b05d09fc]:first-child{margin-left:0}.col-no-margin-xxl-12[data-v-b05d09fc]{float:left;box-sizing:border-box;width:100%}.xxl-hidden[data-v-b05d09fc]{display:none!important}.xxl-visible[data-v-b05d09fc]{display:block!important}}.vertical-center[data-v-b05d09fc]{display:flex;align-items:center}.horizontal-center[data-v-b05d09fc]{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right[data-v-b05d09fc]{text-align:right;float:right;justify-content:right}.hidden[data-v-b05d09fc]{display:none!important}.no-content[data-v-b05d09fc]{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn-default[data-v-b05d09fc],.btn[data-v-b05d09fc],button[data-v-b05d09fc]{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary[data-v-b05d09fc],.btn-default[type=submit][data-v-b05d09fc],.btn.btn-primary[data-v-b05d09fc],.btn[type=submit][data-v-b05d09fc],button.btn-primary[data-v-b05d09fc],button[type=submit][data-v-b05d09fc]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon[data-v-b05d09fc],.btn-default .icon[data-v-b05d09fc],button .icon[data-v-b05d09fc]{margin-right:.5em}input[type=password][data-v-b05d09fc],input[type=text][data-v-b05d09fc]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password][data-v-b05d09fc]:focus,input[type=text][data-v-b05d09fc]:focus{border:1px solid #35b870}button[data-v-b05d09fc],input[data-v-b05d09fc]{outline:none}input[type=text][data-v-b05d09fc]:hover,textarea[data-v-b05d09fc]:hover{border:1px solid #9cdfb0}ul[data-v-b05d09fc]{margin:0;padding:0;list-style:none}a[data-v-b05d09fc]{cursor:pointer;text-decoration:none}[data-v-b05d09fc]::-webkit-scrollbar{width:.75em}[data-v-b05d09fc]::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}[data-v-b05d09fc]::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body[data-v-b05d09fc]{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon[data-v-b05d09fc]{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number][data-v-b05d09fc],input[type=password][data-v-b05d09fc],input[type=search][data-v-b05d09fc],input[type=text][data-v-b05d09fc]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number][data-v-b05d09fc]:hover,input[type=password][data-v-b05d09fc]:hover,input[type=search][data-v-b05d09fc]:hover,input[type=text][data-v-b05d09fc]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number][data-v-b05d09fc]:focus,input[type=password][data-v-b05d09fc]:focus,input[type=search][data-v-b05d09fc]:focus,input[type=text][data-v-b05d09fc]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon[data-v-b05d09fc],input[type=password].with-icon[data-v-b05d09fc],input[type=search].with-icon[data-v-b05d09fc],input[type=text].with-icon[data-v-b05d09fc]{padding-left:.3em}input[type=search][data-v-b05d09fc],input[type=text][data-v-b05d09fc]{border-radius:1em;padding:.25em .5em}.fade-in[data-v-b05d09fc]{animation-fill-mode:both;animation-name:fadeIn-b05d09fc;-webkit-animation-name:fadeIn-b05d09fc}.fade-in[data-v-b05d09fc],.fade-out[data-v-b05d09fc]{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out[data-v-b05d09fc]{animation-fill-mode:both;animation-name:fadeOut-b05d09fc;-webkit-animation-name:fadeOut-b05d09fc}@keyframes fadeIn-b05d09fc{0%{opacity:0}to{opacity:1}}@keyframes fadeOut-b05d09fc{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi[data-v-b05d09fc]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-plex[data-v-b05d09fc]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin[data-v-b05d09fc]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.zigbee-container .info-body .row[data-v-b05d09fc]:nth-child(2n),.zigbee-container .params .row[data-v-b05d09fc]:nth-child(2n){background:#f0f0f0}.zigbee-container .info-body .row[data-v-b05d09fc]:nth-child(odd),.zigbee-container .params .row[data-v-b05d09fc]:nth-child(odd){background:#fff}.zigbee-container .info-body .row[data-v-b05d09fc],.zigbee-container .view .row[data-v-b05d09fc]{display:flex;align-items:center;border-radius:1em;padding:.3em}.zigbee-container .info-body .row[data-v-b05d09fc]:hover,.zigbee-container .view .row[data-v-b05d09fc]:hover{background:#bef6da}.zigbee-container .info-body .item.selected[data-v-b05d09fc],.zigbee-container .view .item.selected[data-v-b05d09fc]{box-shadow:0 2px 4px 0 #bbb}.zigbee-container .info-body .item .name.header[data-v-b05d09fc],.zigbee-container .view .item .name.header[data-v-b05d09fc]{padding:1em!important;cursor:pointer;text-transform:uppercase;letter-spacing:.06em}.zigbee-container .info-body .item .name.header.selected[data-v-b05d09fc],.zigbee-container .view .item .name.header.selected[data-v-b05d09fc]{border-radius:1.5em;background:#c8ffd0}.zigbee-container .info-body .item .title[data-v-b05d09fc],.zigbee-container .view .item .title[data-v-b05d09fc]{font-size:1.2em;padding-left:.5em}.zigbee-container .info-body .item .buttons[data-v-b05d09fc],.zigbee-container .view .item .buttons[data-v-b05d09fc]{margin:0}.zigbee-container .info-body .item[data-v-b05d09fc]:hover,.zigbee-container .view .item[data-v-b05d09fc]:hover{background:#bef6da}.zigbee-container .info-body .item:hover.selected[data-v-b05d09fc],.zigbee-container .view .item:hover.selected[data-v-b05d09fc]{background:#c8ffd0}.zigbee-container .info-body .item[data-v-b05d09fc]:not(:last-child),.zigbee-container .view .item[data-v-b05d09fc]:not(:last-child){border-bottom:1px solid #ddd}.zigbee-container .info-body .item[data-v-b05d09fc]:first-child,.zigbee-container .view .item[data-v-b05d09fc]:first-child{border-radius:1.5em 1.5em 0 0}.zigbee-container .info-body .item[data-v-b05d09fc]:last-child,.zigbee-container .view .item[data-v-b05d09fc]:last-child{border-radius:0 0 1.5em 1.5em}.zigbee-container .info-body .item .params .section[data-v-b05d09fc],.zigbee-container .view .item .params .section[data-v-b05d09fc]{padding:1.5em 0 0 0}.zigbee-container .info-body .item .value .param-name[data-v-b05d09fc],.zigbee-container .view .item .value .param-name[data-v-b05d09fc]{display:inline-block}.zigbee-container .info-body .item .value .param-name .name[data-v-b05d09fc],.zigbee-container .view .item .value .param-name .name[data-v-b05d09fc]{font-family:monospace;font-size:.8em;text-transform:unset;padding:0}.zigbee-container .info-body .item .value .param-name .name[data-v-b05d09fc]:before,.zigbee-container .view .item .value .param-name .name[data-v-b05d09fc]:before{content:"["}.zigbee-container .info-body .item .value .param-name .name[data-v-b05d09fc]:after,.zigbee-container .view .item .value .param-name .name[data-v-b05d09fc]:after{content:"]"}.zigbee-container .info-body .item .value .param-name .unit[data-v-b05d09fc],.zigbee-container .view .item .value .param-name .unit[data-v-b05d09fc]{font-size:.8em}.zigbee-container .info-body .item .value .param-name .unit[data-v-b05d09fc]:before,.zigbee-container .view .item .value .param-name .unit[data-v-b05d09fc]:before{content:" [unit: "}.zigbee-container .info-body .item .value .param-name .unit[data-v-b05d09fc]:after,.zigbee-container .view .item .value .param-name .unit[data-v-b05d09fc]:after{content:"]"}.zigbee-container .info-body .item .value .param-value label[data-v-b05d09fc],.zigbee-container .view .item .value .param-value label[data-v-b05d09fc]{width:90%}.zigbee-container .info-body .item .value .param-value input[data-v-b05d09fc],.zigbee-container .view .item .value .param-value input[data-v-b05d09fc]{width:100%}.zigbee-container .info-body .item button[data-v-b05d09fc],.zigbee-container .view .item button[data-v-b05d09fc]{border:0;background:none;padding:0 .5em}.zigbee-container .info-body .item button[data-v-b05d09fc]:hover,.zigbee-container .view .item button[data-v-b05d09fc]:hover{color:#35b870}@media screen and (max-width:769px){.zigbee-container .info-body .item .name-edit[data-v-b05d09fc],.zigbee-container .view .item .name-edit[data-v-b05d09fc]{justify-content:left}}@media screen and (min-width:769px){.zigbee-container .info-body .item .name-edit[data-v-b05d09fc],.zigbee-container .view .item .name-edit[data-v-b05d09fc]{justify-content:right}}.zigbee-container .info-body .item .name-edit[data-v-b05d09fc],.zigbee-container .view .item .name-edit[data-v-b05d09fc]{width:100%;display:inline-flex;align-items:center}.zigbee-container .info-body .item .name-edit form[data-v-b05d09fc],.zigbee-container .view .item .name-edit form[data-v-b05d09fc]{width:100%;display:inline-flex;align-items:center;justify-content:right;flex-direction:row}.zigbee-container .info-body .item .name-edit .buttons[data-v-b05d09fc],.zigbee-container .view .item .name-edit .buttons[data-v-b05d09fc]{display:inline-flex;justify-content:right;margin:0 0 0 .5em}.zigbee-container .info-body .item .name-edit form[data-v-b05d09fc],.zigbee-container .view .item .name-edit form[data-v-b05d09fc]{background:none;padding:0;border:none;box-shadow:none}.zigbee-container .row[data-v-b05d09fc]{display:flex;flex-wrap:wrap}@media screen and (max-width:769px){.zigbee-container .row .param-name[data-v-b05d09fc]{width:100%;font-weight:700}.zigbee-container .row .param-value[data-v-b05d09fc]{width:100%;margin-left:1%}}@media screen and (min-width:769px){.zigbee-container .row .param-name[data-v-b05d09fc]{width:40%}.zigbee-container .row .param-value[data-v-b05d09fc]{width:58%;justify-content:right}}.zigbee-container .row .param-name[data-v-b05d09fc]{display:inline-flex;margin-left:1%;vertical-align:top;letter-spacing:.04em}.zigbee-container .row .param-value[data-v-b05d09fc]{display:inline-flex;align-items:center}.zigbee-container .row .param-value .value-edit[data-v-b05d09fc]{display:flex;align-items:center}.zigbee-container .row .param-value .value-data[data-v-b05d09fc]{display:inline-block;font-weight:700}.zigbee-container .row .param-value .slider-container[data-v-b05d09fc]{display:flex;align-items:center}.zigbee-container .row .param-value .unit[data-v-b05d09fc]{font-size:.8em;margin-left:1em;display:inline}.zigbee-container .row .param-value select[data-v-b05d09fc]{width:100%}.zigbee-container .row .param-value .numeric input.slider[data-v-b05d09fc]{text-align:left}.zigbee-container .row .param-value .numeric input[type=text][data-v-b05d09fc]{text-align:right;width:100%}.zigbee-container .row .param-value .numeric .row[data-v-b05d09fc],.zigbee-container .row .param-value .numeric .row[data-v-b05d09fc]:hover{background:none}.zigbee-container .row .param-value .numeric .value-max[data-v-b05d09fc],.zigbee-container .row .param-value .numeric .value-min[data-v-b05d09fc]{width:50%;font-size:.85em;opacity:.75}.zigbee-container .row .param-value .numeric .value-min[data-v-b05d09fc]{text-align:left}.zigbee-container .row .param-value .numeric .value-max[data-v-b05d09fc]{text-align:right}.zigbee-container select[data-v-b05d09fc]{width:100%}.groups-modal .content[data-v-b05d09fc]{min-width:20em;margin:-2em;padding:0;border:none;box-shadow:none}.groups-modal .group[data-v-b05d09fc]{width:100%;display:flex;align-items:center;padding:.5em 1em!important}.groups-modal .group input[type=checkbox][data-v-b05d09fc]{margin-right:1em}.groups-modal .groups[data-v-b05d09fc]{width:100%;height:calc(100% - 3.5em);display:flex;justify-content:center;align-items:center;overflow:auto}.groups-modal .footer[data-v-b05d09fc]{width:100%;height:3.5em;display:flex;justify-content:right;align-items:center;padding:0;background:#f8f8f8;border-top:1px solid #ddd}@media screen and (max-width:769px){.section.actions .row[data-v-b05d09fc]{flex-direction:row-reverse;justify-content:left}.section.actions .row .param-name[data-v-b05d09fc]{width:auto}.section.actions .row .param-value[data-v-b05d09fc]{width:1.5em;margin-right:.5em}}.col-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1[data-v-7667f7ba]:first-child{margin-left:8.6666666667%!important}.col-offset-1[data-v-7667f7ba]:not(first-child){margin-left:12.6666666667%!important}.col-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2[data-v-7667f7ba]:first-child{margin-left:17.3333333333%!important}.col-offset-2[data-v-7667f7ba]:not(first-child){margin-left:21.3333333333%!important}.col-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3[data-v-7667f7ba]:first-child{margin-left:26%!important}.col-offset-3[data-v-7667f7ba]:not(first-child){margin-left:30%!important}.col-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4[data-v-7667f7ba]:first-child{margin-left:34.6666666667%!important}.col-offset-4[data-v-7667f7ba]:not(first-child){margin-left:38.6666666667%!important}.col-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5[data-v-7667f7ba]:first-child{margin-left:43.3333333334%!important}.col-offset-5[data-v-7667f7ba]:not(first-child){margin-left:47.3333333334%!important}.col-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6[data-v-7667f7ba]:first-child{margin-left:52%!important}.col-offset-6[data-v-7667f7ba]:not(first-child){margin-left:56%!important}.col-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7[data-v-7667f7ba]:first-child{margin-left:60.6666666667%!important}.col-offset-7[data-v-7667f7ba]:not(first-child){margin-left:64.6666666667%!important}.col-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8[data-v-7667f7ba]:first-child{margin-left:69.3333333334%!important}.col-offset-8[data-v-7667f7ba]:not(first-child){margin-left:73.3333333334%!important}.col-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9[data-v-7667f7ba]:first-child{margin-left:78%!important}.col-offset-9[data-v-7667f7ba]:not(first-child){margin-left:82%!important}.col-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10[data-v-7667f7ba]:first-child{margin-left:86.6666666667%!important}.col-offset-10[data-v-7667f7ba]:not(first-child){margin-left:90.6666666667%!important}.col-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11[data-v-7667f7ba]:first-child{margin-left:95.3333333334%!important}.col-offset-11[data-v-7667f7ba]:not(first-child){margin-left:99.3333333334%!important}.col-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-s-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-s-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-s-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-s-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-s-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-s-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-s-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-s-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-s-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-s-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-s-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-s-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-s-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-s-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-s-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-s-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-s-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-s-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-s-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-s-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-s-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-s-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-s-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-s-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-s-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-s-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-s-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-s-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-s-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-s-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-s-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-s-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-s-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-s-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.s-hidden[data-v-7667f7ba]{display:none!important}.s-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:769px){.col-m-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-m-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-m-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-m-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-m-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-m-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-m-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-m-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-m-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-m-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-m-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-m-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-m-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-m-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-m-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-m-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-m-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-m-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-m-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-m-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-m-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-m-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-m-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-m-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-m-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-m-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-m-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-m-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-m-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-m-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-m-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-m-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-m-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-m-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-m-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.m-hidden[data-v-7667f7ba]{display:none!important}.m-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:1024px){.col-l-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-l-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-l-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-l-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-l-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-l-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-l-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-l-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-l-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-l-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-l-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-l-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-l-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-l-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-l-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-l-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-l-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-l-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-l-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-l-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-l-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-l-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-l-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-l-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-l-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-l-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-l-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-l-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-l-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-l-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-l-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-l-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-l-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-l-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-l-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.l-hidden[data-v-7667f7ba]{display:none!important}.l-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:1216px){.col-xl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-xl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xl-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-xl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xl-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-xl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-xl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xl-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-xl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xl-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-xl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xl-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-xl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-xl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xl-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-xl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xl-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-xl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xl-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-xl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-xl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xl-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-xl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xl-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-xl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xl-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-xl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.xl-hidden[data-v-7667f7ba]{display:none!important}.xl-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-xxl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xxl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xxl-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-xxl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xxl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xxl-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-xxl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-xxl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xxl-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-xxl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xxl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xxl-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-xxl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xxl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xxl-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-xxl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-xxl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xxl-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-xxl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xxl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xxl-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-xxl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xxl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xxl-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-xxl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-xxl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-xxl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-xxl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xxl-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-xxl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.xxl-hidden[data-v-7667f7ba]{display:none!important}.xxl-visible[data-v-7667f7ba]{display:block!important}}.vertical-center[data-v-7667f7ba]{display:flex;align-items:center}.horizontal-center[data-v-7667f7ba]{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right[data-v-7667f7ba]{text-align:right;float:right;justify-content:right}.hidden[data-v-7667f7ba]{display:none!important}.no-content[data-v-7667f7ba]{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn-default[data-v-7667f7ba],.btn[data-v-7667f7ba],button[data-v-7667f7ba]{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary[data-v-7667f7ba],.btn-default[type=submit][data-v-7667f7ba],.btn.btn-primary[data-v-7667f7ba],.btn[type=submit][data-v-7667f7ba],button.btn-primary[data-v-7667f7ba],button[type=submit][data-v-7667f7ba]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon[data-v-7667f7ba],.btn-default .icon[data-v-7667f7ba],button .icon[data-v-7667f7ba]{margin-right:.5em}input[type=password][data-v-7667f7ba],input[type=text][data-v-7667f7ba]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password][data-v-7667f7ba]:focus,input[type=text][data-v-7667f7ba]:focus{border:1px solid #35b870}button[data-v-7667f7ba],input[data-v-7667f7ba]{outline:none}input[type=text][data-v-7667f7ba]:hover,textarea[data-v-7667f7ba]:hover{border:1px solid #9cdfb0}ul[data-v-7667f7ba]{margin:0;padding:0;list-style:none}a[data-v-7667f7ba]{cursor:pointer;text-decoration:none}[data-v-7667f7ba]::-webkit-scrollbar{width:.75em}[data-v-7667f7ba]::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}[data-v-7667f7ba]::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body[data-v-7667f7ba]{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon[data-v-7667f7ba]{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number][data-v-7667f7ba],input[type=password][data-v-7667f7ba],input[type=search][data-v-7667f7ba],input[type=text][data-v-7667f7ba]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number][data-v-7667f7ba]:hover,input[type=password][data-v-7667f7ba]:hover,input[type=search][data-v-7667f7ba]:hover,input[type=text][data-v-7667f7ba]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number][data-v-7667f7ba]:focus,input[type=password][data-v-7667f7ba]:focus,input[type=search][data-v-7667f7ba]:focus,input[type=text][data-v-7667f7ba]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon[data-v-7667f7ba],input[type=password].with-icon[data-v-7667f7ba],input[type=search].with-icon[data-v-7667f7ba],input[type=text].with-icon[data-v-7667f7ba]{padding-left:.3em}input[type=search][data-v-7667f7ba],input[type=text][data-v-7667f7ba]{border-radius:1em;padding:.25em .5em}.fade-in[data-v-7667f7ba]{animation-fill-mode:both;animation-name:fadeIn-7667f7ba;-webkit-animation-name:fadeIn-7667f7ba}.fade-in[data-v-7667f7ba],.fade-out[data-v-7667f7ba]{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out[data-v-7667f7ba]{animation-fill-mode:both;animation-name:fadeOut-7667f7ba;-webkit-animation-name:fadeOut-7667f7ba}@keyframes fadeIn-7667f7ba{0%{opacity:0}to{opacity:1}}@keyframes fadeOut-7667f7ba{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi[data-v-7667f7ba]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-plex[data-v-7667f7ba]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin[data-v-7667f7ba]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.zigbee-container .info-body .row[data-v-7667f7ba]:nth-child(2n),.zigbee-container .params .row[data-v-7667f7ba]:nth-child(2n){background:#f0f0f0}.zigbee-container .info-body .row[data-v-7667f7ba]:nth-child(odd),.zigbee-container .params .row[data-v-7667f7ba]:nth-child(odd){background:#fff}.zigbee-container .info-body .row[data-v-7667f7ba],.zigbee-container .view .row[data-v-7667f7ba]{display:flex;align-items:center;border-radius:1em;padding:.3em}.zigbee-container .info-body .row[data-v-7667f7ba]:hover,.zigbee-container .view .row[data-v-7667f7ba]:hover{background:#bef6da}.zigbee-container .info-body .item.selected[data-v-7667f7ba],.zigbee-container .view .item.selected[data-v-7667f7ba]{box-shadow:0 2px 4px 0 #bbb}.zigbee-container .info-body .item .name.header[data-v-7667f7ba],.zigbee-container .view .item .name.header[data-v-7667f7ba]{padding:1em!important;cursor:pointer;text-transform:uppercase;letter-spacing:.06em}.zigbee-container .info-body .item .name.header.selected[data-v-7667f7ba],.zigbee-container .view .item .name.header.selected[data-v-7667f7ba]{border-radius:1.5em;background:#c8ffd0}.zigbee-container .info-body .item .title[data-v-7667f7ba],.zigbee-container .view .item .title[data-v-7667f7ba]{font-size:1.2em;padding-left:.5em}.zigbee-container .info-body .item .buttons[data-v-7667f7ba],.zigbee-container .view .item .buttons[data-v-7667f7ba]{margin:0}.zigbee-container .info-body .item[data-v-7667f7ba]:hover,.zigbee-container .view .item[data-v-7667f7ba]:hover{background:#bef6da}.zigbee-container .info-body .item:hover.selected[data-v-7667f7ba],.zigbee-container .view .item:hover.selected[data-v-7667f7ba]{background:#c8ffd0}.zigbee-container .info-body .item[data-v-7667f7ba]:not(:last-child),.zigbee-container .view .item[data-v-7667f7ba]:not(:last-child){border-bottom:1px solid #ddd}.zigbee-container .info-body .item[data-v-7667f7ba]:first-child,.zigbee-container .view .item[data-v-7667f7ba]:first-child{border-radius:1.5em 1.5em 0 0}.zigbee-container .info-body .item[data-v-7667f7ba]:last-child,.zigbee-container .view .item[data-v-7667f7ba]:last-child{border-radius:0 0 1.5em 1.5em}.zigbee-container .info-body .item .params .section[data-v-7667f7ba],.zigbee-container .view .item .params .section[data-v-7667f7ba]{padding:1.5em 0 0 0}.zigbee-container .info-body .item .value .param-name[data-v-7667f7ba],.zigbee-container .view .item .value .param-name[data-v-7667f7ba]{display:inline-block}.zigbee-container .info-body .item .value .param-name .name[data-v-7667f7ba],.zigbee-container .view .item .value .param-name .name[data-v-7667f7ba]{font-family:monospace;font-size:.8em;text-transform:unset;padding:0}.zigbee-container .info-body .item .value .param-name .name[data-v-7667f7ba]:before,.zigbee-container .view .item .value .param-name .name[data-v-7667f7ba]:before{content:"["}.zigbee-container .info-body .item .value .param-name .name[data-v-7667f7ba]:after,.zigbee-container .view .item .value .param-name .name[data-v-7667f7ba]:after{content:"]"}.zigbee-container .info-body .item .value .param-name .unit[data-v-7667f7ba],.zigbee-container .view .item .value .param-name .unit[data-v-7667f7ba]{font-size:.8em}.zigbee-container .info-body .item .value .param-name .unit[data-v-7667f7ba]:before,.zigbee-container .view .item .value .param-name .unit[data-v-7667f7ba]:before{content:" [unit: "}.zigbee-container .info-body .item .value .param-name .unit[data-v-7667f7ba]:after,.zigbee-container .view .item .value .param-name .unit[data-v-7667f7ba]:after{content:"]"}.zigbee-container .info-body .item .value .param-value label[data-v-7667f7ba],.zigbee-container .view .item .value .param-value label[data-v-7667f7ba]{width:90%}.zigbee-container .info-body .item .value .param-value input[data-v-7667f7ba],.zigbee-container .view .item .value .param-value input[data-v-7667f7ba]{width:100%}.zigbee-container .info-body .item button[data-v-7667f7ba],.zigbee-container .view .item button[data-v-7667f7ba]{border:0;background:none;padding:0 .5em}.zigbee-container .info-body .item button[data-v-7667f7ba]:hover,.zigbee-container .view .item button[data-v-7667f7ba]:hover{color:#35b870}@media screen and (max-width:769px){.zigbee-container .info-body .item .name-edit[data-v-7667f7ba],.zigbee-container .view .item .name-edit[data-v-7667f7ba]{justify-content:left}}@media screen and (min-width:769px){.zigbee-container .info-body .item .name-edit[data-v-7667f7ba],.zigbee-container .view .item .name-edit[data-v-7667f7ba]{justify-content:right}}.zigbee-container .info-body .item .name-edit[data-v-7667f7ba],.zigbee-container .view .item .name-edit[data-v-7667f7ba]{width:100%;display:inline-flex;align-items:center}.zigbee-container .info-body .item .name-edit form[data-v-7667f7ba],.zigbee-container .view .item .name-edit form[data-v-7667f7ba]{width:100%;display:inline-flex;align-items:center;justify-content:right;flex-direction:row}.zigbee-container .info-body .item .name-edit .buttons[data-v-7667f7ba],.zigbee-container .view .item .name-edit .buttons[data-v-7667f7ba]{display:inline-flex;justify-content:right;margin:0 0 0 .5em}.zigbee-container .info-body .item .name-edit form[data-v-7667f7ba],.zigbee-container .view .item .name-edit form[data-v-7667f7ba]{background:none;padding:0;border:none;box-shadow:none}.zigbee-container .row[data-v-7667f7ba]{display:flex;flex-wrap:wrap}@media screen and (max-width:769px){.zigbee-container .row .param-name[data-v-7667f7ba]{width:100%;font-weight:700}.zigbee-container .row .param-value[data-v-7667f7ba]{width:100%;margin-left:1%}}@media screen and (min-width:769px){.zigbee-container .row .param-name[data-v-7667f7ba]{width:40%}.zigbee-container .row .param-value[data-v-7667f7ba]{width:58%;justify-content:right}}.zigbee-container .row .param-name[data-v-7667f7ba]{display:inline-flex;margin-left:1%;vertical-align:top;letter-spacing:.04em}.zigbee-container .row .param-value[data-v-7667f7ba]{display:inline-flex;align-items:center}.zigbee-container .row .param-value .value-edit[data-v-7667f7ba]{display:flex;align-items:center}.zigbee-container .row .param-value .value-data[data-v-7667f7ba]{display:inline-block;font-weight:700}.zigbee-container .row .param-value .slider-container[data-v-7667f7ba]{display:flex;align-items:center}.zigbee-container .row .param-value .unit[data-v-7667f7ba]{font-size:.8em;margin-left:1em;display:inline}.zigbee-container .row .param-value select[data-v-7667f7ba]{width:100%}.zigbee-container .row .param-value .numeric input.slider[data-v-7667f7ba]{text-align:left}.zigbee-container .row .param-value .numeric input[type=text][data-v-7667f7ba]{text-align:right;width:100%}.zigbee-container .row .param-value .numeric .row[data-v-7667f7ba],.zigbee-container .row .param-value .numeric .row[data-v-7667f7ba]:hover{background:none}.zigbee-container .row .param-value .numeric .value-max[data-v-7667f7ba],.zigbee-container .row .param-value .numeric .value-min[data-v-7667f7ba]{width:50%;font-size:.85em;opacity:.75}.zigbee-container .row .param-value .numeric .value-min[data-v-7667f7ba]{text-align:left}.zigbee-container .row .param-value .numeric .value-max[data-v-7667f7ba]{text-align:right}.zigbee-container select[data-v-7667f7ba]{width:100%}.section[data-v-7667f7ba]{padding-left:1em!important}form[data-v-7667f7ba]{margin:0;padding:0;border:none;box-shadow:none}form .row[data-v-7667f7ba]{background:none!important}form .row[data-v-7667f7ba]:hover{background:#bef6da!important}form .row .label[data-v-7667f7ba]{margin-left:.75em;font-weight:400}.col-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1:first-child{margin-left:0}.col-no-margin-1{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1:first-child{margin-left:8.6666666667%!important}.col-offset-1:not(first-child){margin-left:12.6666666667%!important}.col-2{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2:first-child{margin-left:0}.col-no-margin-2{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2:first-child{margin-left:17.3333333333%!important}.col-offset-2:not(first-child){margin-left:21.3333333333%!important}.col-3{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3:first-child{margin-left:0}.col-no-margin-3{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3:first-child{margin-left:26%!important}.col-offset-3:not(first-child){margin-left:30%!important}.col-4{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4:first-child{margin-left:0}.col-no-margin-4{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4:first-child{margin-left:34.6666666667%!important}.col-offset-4:not(first-child){margin-left:38.6666666667%!important}.col-5{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5:first-child{margin-left:0}.col-no-margin-5{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5:first-child{margin-left:43.3333333334%!important}.col-offset-5:not(first-child){margin-left:47.3333333334%!important}.col-6{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6:first-child{margin-left:0}.col-no-margin-6{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6:first-child{margin-left:52%!important}.col-offset-6:not(first-child){margin-left:56%!important}.col-7{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7:first-child{margin-left:0}.col-no-margin-7{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7:first-child{margin-left:60.6666666667%!important}.col-offset-7:not(first-child){margin-left:64.6666666667%!important}.col-8{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8:first-child{margin-left:0}.col-no-margin-8{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8:first-child{margin-left:69.3333333334%!important}.col-offset-8:not(first-child){margin-left:73.3333333334%!important}.col-9{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9:first-child{margin-left:0}.col-no-margin-9{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9:first-child{margin-left:78%!important}.col-offset-9:not(first-child){margin-left:82%!important}.col-10{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10:first-child{margin-left:0}.col-no-margin-10{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10:first-child{margin-left:86.6666666667%!important}.col-offset-10:not(first-child){margin-left:90.6666666667%!important}.col-11{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11:first-child{margin-left:0}.col-no-margin-11{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11:first-child{margin-left:95.3333333334%!important}.col-offset-11:not(first-child){margin-left:99.3333333334%!important}.col-12{float:left;box-sizing:border-box;width:100%}.col-12,.col-12:first-child{margin-left:0}.col-no-margin-12{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1:first-child{margin-left:0}.col-offset-s-1{margin-left:8.6666666667%}.col-no-margin-s-1{width:8.3333333333%}.col-no-margin-s-1,.col-s-2{float:left;box-sizing:border-box}.col-s-2{width:13.3333333333%;margin-left:4%}.col-s-2:first-child{margin-left:0}.col-offset-s-2{margin-left:17.3333333333%}.col-no-margin-s-2{width:16.6666666667%}.col-no-margin-s-2,.col-s-3{float:left;box-sizing:border-box}.col-s-3{width:22%;margin-left:4%}.col-s-3:first-child{margin-left:0}.col-offset-s-3{margin-left:26%}.col-no-margin-s-3{width:25%}.col-no-margin-s-3,.col-s-4{float:left;box-sizing:border-box}.col-s-4{width:30.6666666667%;margin-left:4%}.col-s-4:first-child{margin-left:0}.col-offset-s-4{margin-left:34.6666666667%}.col-no-margin-s-4{width:33.3333333333%}.col-no-margin-s-4,.col-s-5{float:left;box-sizing:border-box}.col-s-5{width:39.3333333334%;margin-left:4%}.col-s-5:first-child{margin-left:0}.col-offset-s-5{margin-left:43.3333333334%}.col-no-margin-s-5{width:41.6666666667%}.col-no-margin-s-5,.col-s-6{float:left;box-sizing:border-box}.col-s-6{width:48%;margin-left:4%}.col-s-6:first-child{margin-left:0}.col-offset-s-6{margin-left:52%}.col-no-margin-s-6{width:50%}.col-no-margin-s-6,.col-s-7{float:left;box-sizing:border-box}.col-s-7{width:56.6666666667%;margin-left:4%}.col-s-7:first-child{margin-left:0}.col-offset-s-7{margin-left:60.6666666667%}.col-no-margin-s-7{width:58.3333333333%}.col-no-margin-s-7,.col-s-8{float:left;box-sizing:border-box}.col-s-8{width:65.3333333334%;margin-left:4%}.col-s-8:first-child{margin-left:0}.col-offset-s-8{margin-left:69.3333333334%}.col-no-margin-s-8{width:66.6666666667%}.col-no-margin-s-8,.col-s-9{float:left;box-sizing:border-box}.col-s-9{width:74%;margin-left:4%}.col-s-9:first-child{margin-left:0}.col-offset-s-9{margin-left:78%}.col-no-margin-s-9{width:75%}.col-no-margin-s-9,.col-s-10{float:left;box-sizing:border-box}.col-s-10{width:82.6666666667%;margin-left:4%}.col-s-10:first-child{margin-left:0}.col-offset-s-10{margin-left:86.6666666667%}.col-no-margin-s-10{width:83.3333333333%}.col-no-margin-s-10,.col-s-11{float:left;box-sizing:border-box}.col-s-11{width:91.3333333334%;margin-left:4%}.col-s-11:first-child{margin-left:0}.col-offset-s-11{margin-left:95.3333333334%}.col-no-margin-s-11{width:91.6666666667%}.col-no-margin-s-11,.col-s-12{float:left;box-sizing:border-box}.col-s-12{width:100%}.col-s-12,.col-s-12:first-child{margin-left:0}.col-no-margin-s-12{float:left;box-sizing:border-box;width:100%}.s-hidden{display:none!important}.s-visible{display:block!important}}@media screen and (min-width:769px){.col-m-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1:first-child{margin-left:0}.col-offset-m-1{margin-left:8.6666666667%}.col-no-margin-m-1{width:8.3333333333%}.col-m-2,.col-no-margin-m-1{float:left;box-sizing:border-box}.col-m-2{width:13.3333333333%;margin-left:4%}.col-m-2:first-child{margin-left:0}.col-offset-m-2{margin-left:17.3333333333%}.col-no-margin-m-2{width:16.6666666667%}.col-m-3,.col-no-margin-m-2{float:left;box-sizing:border-box}.col-m-3{width:22%;margin-left:4%}.col-m-3:first-child{margin-left:0}.col-offset-m-3{margin-left:26%}.col-no-margin-m-3{width:25%}.col-m-4,.col-no-margin-m-3{float:left;box-sizing:border-box}.col-m-4{width:30.6666666667%;margin-left:4%}.col-m-4:first-child{margin-left:0}.col-offset-m-4{margin-left:34.6666666667%}.col-no-margin-m-4{width:33.3333333333%}.col-m-5,.col-no-margin-m-4{float:left;box-sizing:border-box}.col-m-5{width:39.3333333334%;margin-left:4%}.col-m-5:first-child{margin-left:0}.col-offset-m-5{margin-left:43.3333333334%}.col-no-margin-m-5{width:41.6666666667%}.col-m-6,.col-no-margin-m-5{float:left;box-sizing:border-box}.col-m-6{width:48%;margin-left:4%}.col-m-6:first-child{margin-left:0}.col-offset-m-6{margin-left:52%}.col-no-margin-m-6{width:50%}.col-m-7,.col-no-margin-m-6{float:left;box-sizing:border-box}.col-m-7{width:56.6666666667%;margin-left:4%}.col-m-7:first-child{margin-left:0}.col-offset-m-7{margin-left:60.6666666667%}.col-no-margin-m-7{width:58.3333333333%}.col-m-8,.col-no-margin-m-7{float:left;box-sizing:border-box}.col-m-8{width:65.3333333334%;margin-left:4%}.col-m-8:first-child{margin-left:0}.col-offset-m-8{margin-left:69.3333333334%}.col-no-margin-m-8{width:66.6666666667%}.col-m-9,.col-no-margin-m-8{float:left;box-sizing:border-box}.col-m-9{width:74%;margin-left:4%}.col-m-9:first-child{margin-left:0}.col-offset-m-9{margin-left:78%}.col-no-margin-m-9{width:75%}.col-m-10,.col-no-margin-m-9{float:left;box-sizing:border-box}.col-m-10{width:82.6666666667%;margin-left:4%}.col-m-10:first-child{margin-left:0}.col-offset-m-10{margin-left:86.6666666667%}.col-no-margin-m-10{width:83.3333333333%}.col-m-11,.col-no-margin-m-10{float:left;box-sizing:border-box}.col-m-11{width:91.3333333334%;margin-left:4%}.col-m-11:first-child{margin-left:0}.col-offset-m-11{margin-left:95.3333333334%}.col-no-margin-m-11{width:91.6666666667%}.col-m-12,.col-no-margin-m-11{float:left;box-sizing:border-box}.col-m-12{width:100%}.col-m-12,.col-m-12:first-child{margin-left:0}.col-no-margin-m-12{float:left;box-sizing:border-box;width:100%}.m-hidden{display:none!important}.m-visible{display:block!important}}@media screen and (min-width:1024px){.col-l-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1:first-child{margin-left:0}.col-offset-l-1{margin-left:8.6666666667%}.col-no-margin-l-1{width:8.3333333333%}.col-l-2,.col-no-margin-l-1{float:left;box-sizing:border-box}.col-l-2{width:13.3333333333%;margin-left:4%}.col-l-2:first-child{margin-left:0}.col-offset-l-2{margin-left:17.3333333333%}.col-no-margin-l-2{width:16.6666666667%}.col-l-3,.col-no-margin-l-2{float:left;box-sizing:border-box}.col-l-3{width:22%;margin-left:4%}.col-l-3:first-child{margin-left:0}.col-offset-l-3{margin-left:26%}.col-no-margin-l-3{width:25%}.col-l-4,.col-no-margin-l-3{float:left;box-sizing:border-box}.col-l-4{width:30.6666666667%;margin-left:4%}.col-l-4:first-child{margin-left:0}.col-offset-l-4{margin-left:34.6666666667%}.col-no-margin-l-4{width:33.3333333333%}.col-l-5,.col-no-margin-l-4{float:left;box-sizing:border-box}.col-l-5{width:39.3333333334%;margin-left:4%}.col-l-5:first-child{margin-left:0}.col-offset-l-5{margin-left:43.3333333334%}.col-no-margin-l-5{width:41.6666666667%}.col-l-6,.col-no-margin-l-5{float:left;box-sizing:border-box}.col-l-6{width:48%;margin-left:4%}.col-l-6:first-child{margin-left:0}.col-offset-l-6{margin-left:52%}.col-no-margin-l-6{width:50%}.col-l-7,.col-no-margin-l-6{float:left;box-sizing:border-box}.col-l-7{width:56.6666666667%;margin-left:4%}.col-l-7:first-child{margin-left:0}.col-offset-l-7{margin-left:60.6666666667%}.col-no-margin-l-7{width:58.3333333333%}.col-l-8,.col-no-margin-l-7{float:left;box-sizing:border-box}.col-l-8{width:65.3333333334%;margin-left:4%}.col-l-8:first-child{margin-left:0}.col-offset-l-8{margin-left:69.3333333334%}.col-no-margin-l-8{width:66.6666666667%}.col-l-9,.col-no-margin-l-8{float:left;box-sizing:border-box}.col-l-9{width:74%;margin-left:4%}.col-l-9:first-child{margin-left:0}.col-offset-l-9{margin-left:78%}.col-no-margin-l-9{width:75%}.col-l-10,.col-no-margin-l-9{float:left;box-sizing:border-box}.col-l-10{width:82.6666666667%;margin-left:4%}.col-l-10:first-child{margin-left:0}.col-offset-l-10{margin-left:86.6666666667%}.col-no-margin-l-10{width:83.3333333333%}.col-l-11,.col-no-margin-l-10{float:left;box-sizing:border-box}.col-l-11{width:91.3333333334%;margin-left:4%}.col-l-11:first-child{margin-left:0}.col-offset-l-11{margin-left:95.3333333334%}.col-no-margin-l-11{width:91.6666666667%}.col-l-12,.col-no-margin-l-11{float:left;box-sizing:border-box}.col-l-12{width:100%}.col-l-12,.col-l-12:first-child{margin-left:0}.col-no-margin-l-12{float:left;box-sizing:border-box;width:100%}.l-hidden{display:none!important}.l-visible{display:block!important}}@media screen and (min-width:1216px){.col-xl-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1:first-child{margin-left:0}.col-offset-xl-1{margin-left:8.6666666667%}.col-no-margin-xl-1{width:8.3333333333%}.col-no-margin-xl-1,.col-xl-2{float:left;box-sizing:border-box}.col-xl-2{width:13.3333333333%;margin-left:4%}.col-xl-2:first-child{margin-left:0}.col-offset-xl-2{margin-left:17.3333333333%}.col-no-margin-xl-2{width:16.6666666667%}.col-no-margin-xl-2,.col-xl-3{float:left;box-sizing:border-box}.col-xl-3{width:22%;margin-left:4%}.col-xl-3:first-child{margin-left:0}.col-offset-xl-3{margin-left:26%}.col-no-margin-xl-3{width:25%}.col-no-margin-xl-3,.col-xl-4{float:left;box-sizing:border-box}.col-xl-4{width:30.6666666667%;margin-left:4%}.col-xl-4:first-child{margin-left:0}.col-offset-xl-4{margin-left:34.6666666667%}.col-no-margin-xl-4{width:33.3333333333%}.col-no-margin-xl-4,.col-xl-5{float:left;box-sizing:border-box}.col-xl-5{width:39.3333333334%;margin-left:4%}.col-xl-5:first-child{margin-left:0}.col-offset-xl-5{margin-left:43.3333333334%}.col-no-margin-xl-5{width:41.6666666667%}.col-no-margin-xl-5,.col-xl-6{float:left;box-sizing:border-box}.col-xl-6{width:48%;margin-left:4%}.col-xl-6:first-child{margin-left:0}.col-offset-xl-6{margin-left:52%}.col-no-margin-xl-6{width:50%}.col-no-margin-xl-6,.col-xl-7{float:left;box-sizing:border-box}.col-xl-7{width:56.6666666667%;margin-left:4%}.col-xl-7:first-child{margin-left:0}.col-offset-xl-7{margin-left:60.6666666667%}.col-no-margin-xl-7{width:58.3333333333%}.col-no-margin-xl-7,.col-xl-8{float:left;box-sizing:border-box}.col-xl-8{width:65.3333333334%;margin-left:4%}.col-xl-8:first-child{margin-left:0}.col-offset-xl-8{margin-left:69.3333333334%}.col-no-margin-xl-8{width:66.6666666667%}.col-no-margin-xl-8,.col-xl-9{float:left;box-sizing:border-box}.col-xl-9{width:74%;margin-left:4%}.col-xl-9:first-child{margin-left:0}.col-offset-xl-9{margin-left:78%}.col-no-margin-xl-9{width:75%}.col-no-margin-xl-9,.col-xl-10{float:left;box-sizing:border-box}.col-xl-10{width:82.6666666667%;margin-left:4%}.col-xl-10:first-child{margin-left:0}.col-offset-xl-10{margin-left:86.6666666667%}.col-no-margin-xl-10{width:83.3333333333%}.col-no-margin-xl-10,.col-xl-11{float:left;box-sizing:border-box}.col-xl-11{width:91.3333333334%;margin-left:4%}.col-xl-11:first-child{margin-left:0}.col-offset-xl-11{margin-left:95.3333333334%}.col-no-margin-xl-11{width:91.6666666667%}.col-no-margin-xl-11,.col-xl-12{float:left;box-sizing:border-box}.col-xl-12{width:100%}.col-xl-12,.col-xl-12:first-child{margin-left:0}.col-no-margin-xl-12{float:left;box-sizing:border-box;width:100%}.xl-hidden{display:none!important}.xl-visible{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1:first-child{margin-left:0}.col-offset-xxl-1{margin-left:8.6666666667%}.col-no-margin-xxl-1{width:8.3333333333%}.col-no-margin-xxl-1,.col-xxl-2{float:left;box-sizing:border-box}.col-xxl-2{width:13.3333333333%;margin-left:4%}.col-xxl-2:first-child{margin-left:0}.col-offset-xxl-2{margin-left:17.3333333333%}.col-no-margin-xxl-2{width:16.6666666667%}.col-no-margin-xxl-2,.col-xxl-3{float:left;box-sizing:border-box}.col-xxl-3{width:22%;margin-left:4%}.col-xxl-3:first-child{margin-left:0}.col-offset-xxl-3{margin-left:26%}.col-no-margin-xxl-3{width:25%}.col-no-margin-xxl-3,.col-xxl-4{float:left;box-sizing:border-box}.col-xxl-4{width:30.6666666667%;margin-left:4%}.col-xxl-4:first-child{margin-left:0}.col-offset-xxl-4{margin-left:34.6666666667%}.col-no-margin-xxl-4{width:33.3333333333%}.col-no-margin-xxl-4,.col-xxl-5{float:left;box-sizing:border-box}.col-xxl-5{width:39.3333333334%;margin-left:4%}.col-xxl-5:first-child{margin-left:0}.col-offset-xxl-5{margin-left:43.3333333334%}.col-no-margin-xxl-5{width:41.6666666667%}.col-no-margin-xxl-5,.col-xxl-6{float:left;box-sizing:border-box}.col-xxl-6{width:48%;margin-left:4%}.col-xxl-6:first-child{margin-left:0}.col-offset-xxl-6{margin-left:52%}.col-no-margin-xxl-6{width:50%}.col-no-margin-xxl-6,.col-xxl-7{float:left;box-sizing:border-box}.col-xxl-7{width:56.6666666667%;margin-left:4%}.col-xxl-7:first-child{margin-left:0}.col-offset-xxl-7{margin-left:60.6666666667%}.col-no-margin-xxl-7{width:58.3333333333%}.col-no-margin-xxl-7,.col-xxl-8{float:left;box-sizing:border-box}.col-xxl-8{width:65.3333333334%;margin-left:4%}.col-xxl-8:first-child{margin-left:0}.col-offset-xxl-8{margin-left:69.3333333334%}.col-no-margin-xxl-8{width:66.6666666667%}.col-no-margin-xxl-8,.col-xxl-9{float:left;box-sizing:border-box}.col-xxl-9{width:74%;margin-left:4%}.col-xxl-9:first-child{margin-left:0}.col-offset-xxl-9{margin-left:78%}.col-no-margin-xxl-9{float:left;box-sizing:border-box;width:75%}.col-xxl-10{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10:first-child{margin-left:0}.col-offset-xxl-10{margin-left:86.6666666667%}.col-no-margin-xxl-10{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11:first-child{margin-left:0}.col-offset-xxl-11{margin-left:95.3333333334%}.col-no-margin-xxl-11{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12{float:left;box-sizing:border-box;width:100%}.col-xxl-12,.col-xxl-12:first-child{margin-left:0}.col-no-margin-xxl-12{float:left;box-sizing:border-box;width:100%}.xxl-hidden{display:none!important}.xxl-visible{display:block!important}}.vertical-center{display:flex;align-items:center}.horizontal-center{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right{text-align:right;float:right;justify-content:right}.hidden{display:none!important}.no-content{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn,.btn-default,button{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary,.btn-default[type=submit],.btn.btn-primary,.btn[type=submit],button.btn-primary,button[type=submit]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon,.btn-default .icon,button .icon{margin-right:.5em}input[type=password],input[type=text]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password]:focus,input[type=text]:focus{border:1px solid #35b870}button,input{outline:none}input[type=text]:hover,textarea:hover{border:1px solid #9cdfb0}ul{margin:0;padding:0;list-style:none}a{cursor:pointer;text-decoration:none}::-webkit-scrollbar{width:.75em}::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number],input[type=password],input[type=search],input[type=text]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number]:hover,input[type=password]:hover,input[type=search]:hover,input[type=text]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=text]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon,input[type=password].with-icon,input[type=search].with-icon,input[type=text].with-icon{padding-left:.3em}input[type=search],input[type=text]{border-radius:1em;padding:.25em .5em}.fade-in{animation-fill-mode:both;animation-name:fadeIn;-webkit-animation-name:fadeIn}.fade-in,.fade-out{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out{animation-fill-mode:both;animation-name:fadeOut;-webkit-animation-name:fadeOut}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi:before{background-size:1em 1em;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-kodi:before,.fa.fa-plex:before{content:" ";width:1em;height:1em;display:inline-block}.fa.fa-plex:before{background-size:1em 1em;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.zigbee-container .info-body .row:nth-child(2n),.zigbee-container .params .row:nth-child(2n){background:#f0f0f0}.zigbee-container .info-body .row:nth-child(odd),.zigbee-container .params .row:nth-child(odd){background:#fff}.zigbee-container .info-body .row,.zigbee-container .view .row{display:flex;align-items:center;border-radius:1em;padding:.3em}.zigbee-container .info-body .row:hover,.zigbee-container .view .row:hover{background:#bef6da}.zigbee-container .info-body .item.selected,.zigbee-container .view .item.selected{box-shadow:0 2px 4px 0 #bbb}.zigbee-container .info-body .item .name.header,.zigbee-container .view .item .name.header{padding:1em!important;cursor:pointer;text-transform:uppercase;letter-spacing:.06em}.zigbee-container .info-body .item .name.header.selected,.zigbee-container .view .item .name.header.selected{border-radius:1.5em;background:#c8ffd0}.zigbee-container .info-body .item .title,.zigbee-container .view .item .title{font-size:1.2em;padding-left:.5em}.zigbee-container .info-body .item .buttons,.zigbee-container .view .item .buttons{margin:0}.zigbee-container .info-body .item:hover,.zigbee-container .view .item:hover{background:#bef6da}.zigbee-container .info-body .item:hover.selected,.zigbee-container .view .item:hover.selected{background:#c8ffd0}.zigbee-container .info-body .item:not(:last-child),.zigbee-container .view .item:not(:last-child){border-bottom:1px solid #ddd}.zigbee-container .info-body .item:first-child,.zigbee-container .view .item:first-child{border-radius:1.5em 1.5em 0 0}.zigbee-container .info-body .item:last-child,.zigbee-container .view .item:last-child{border-radius:0 0 1.5em 1.5em}.zigbee-container .info-body .item .params .section,.zigbee-container .view .item .params .section{padding:1.5em 0 0 0}.zigbee-container .info-body .item .value .param-name,.zigbee-container .view .item .value .param-name{display:inline-block}.zigbee-container .info-body .item .value .param-name .name,.zigbee-container .view .item .value .param-name .name{font-family:monospace;font-size:.8em;text-transform:unset;padding:0}.zigbee-container .info-body .item .value .param-name .name:before,.zigbee-container .view .item .value .param-name .name:before{content:"["}.zigbee-container .info-body .item .value .param-name .name:after,.zigbee-container .view .item .value .param-name .name:after{content:"]"}.zigbee-container .info-body .item .value .param-name .unit,.zigbee-container .view .item .value .param-name .unit{font-size:.8em}.zigbee-container .info-body .item .value .param-name .unit:before,.zigbee-container .view .item .value .param-name .unit:before{content:" [unit: "}.zigbee-container .info-body .item .value .param-name .unit:after,.zigbee-container .view .item .value .param-name .unit:after{content:"]"}.zigbee-container .info-body .item .value .param-value label,.zigbee-container .view .item .value .param-value label{width:90%}.zigbee-container .info-body .item .value .param-value input,.zigbee-container .view .item .value .param-value input{width:100%}.zigbee-container .info-body .item button,.zigbee-container .view .item button{border:0;background:none;padding:0 .5em}.zigbee-container .info-body .item button:hover,.zigbee-container .view .item button:hover{color:#35b870}@media screen and (max-width:769px){.zigbee-container .info-body .item .name-edit,.zigbee-container .view .item .name-edit{justify-content:left}}@media screen and (min-width:769px){.zigbee-container .info-body .item .name-edit,.zigbee-container .view .item .name-edit{justify-content:right}}.zigbee-container .info-body .item .name-edit,.zigbee-container .view .item .name-edit{width:100%;display:inline-flex;align-items:center}.zigbee-container .info-body .item .name-edit form,.zigbee-container .view .item .name-edit form{width:100%;display:inline-flex;align-items:center;justify-content:right;flex-direction:row}.zigbee-container .info-body .item .name-edit .buttons,.zigbee-container .view .item .name-edit .buttons{display:inline-flex;justify-content:right;margin:0 0 0 .5em}.zigbee-container .info-body .item .name-edit form,.zigbee-container .view .item .name-edit form{background:none;padding:0;border:none;box-shadow:none}.zigbee-container .row{display:flex;flex-wrap:wrap}@media screen and (max-width:769px){.zigbee-container .row .param-name{width:100%;font-weight:700}.zigbee-container .row .param-value{width:100%;margin-left:1%}}@media screen and (min-width:769px){.zigbee-container .row .param-name{width:40%}.zigbee-container .row .param-value{width:58%;justify-content:right}}.zigbee-container .row .param-name{display:inline-flex;margin-left:1%;vertical-align:top;letter-spacing:.04em}.zigbee-container .row .param-value{display:inline-flex;align-items:center}.zigbee-container .row .param-value .value-edit{display:flex;align-items:center}.zigbee-container .row .param-value .value-data{display:inline-block;font-weight:700}.zigbee-container .row .param-value .slider-container{display:flex;align-items:center}.zigbee-container .row .param-value .unit{font-size:.8em;margin-left:1em;display:inline}.zigbee-container .row .param-value select{width:100%}.zigbee-container .row .param-value .numeric input.slider{text-align:left}.zigbee-container .row .param-value .numeric input[type=text]{text-align:right;width:100%}.zigbee-container .row .param-value .numeric .row,.zigbee-container .row .param-value .numeric .row:hover{background:none}.zigbee-container .row .param-value .numeric .value-max,.zigbee-container .row .param-value .numeric .value-min{width:50%;font-size:.85em;opacity:.75}.zigbee-container .row .param-value .numeric .value-min{text-align:left}.zigbee-container .row .param-value .numeric .value-max{text-align:right}.zigbee-container select{width:100%}.zigbee-container{width:100%;height:100%;padding:0;display:flex;flex-direction:column;align-items:center;overflow:auto}.zigbee-container .no-items{padding:2em;font-size:1.5em;color:#555;display:flex;align-items:center;justify-content:center}.zigbee-container .view-options{display:flex;width:100%;height:3.5em;justify-content:space-between;align-items:center;padding:0;background:#f9fafa;border-bottom:1px solid #ddd;box-shadow:0 3px 2px -1px silver}.zigbee-container .view-options .view-selector{display:inline-flex;padding-left:.5em}.zigbee-container .view-options .view-selector label{width:100%}.zigbee-container .view-options .buttons{display:inline-flex;margin:0}.zigbee-container .view-options .buttons button{background:none;border:none;padding:0 .75em}.zigbee-container .view-options .buttons button:hover{color:#35b870}.zigbee-container .view-options .buttons .dropdown .item{padding:.5em 2em .5em .5em}.zigbee-container .view-container{width:100%;height:calc(100% - 3.5em);display:flex;justify-content:center;overflow:auto}.zigbee-container .view{height:-moz-max-content;height:max-content;background:#fff;border:1px solid #d8d8d8;box-shadow:1px 2px 2px #ccc}@media screen and (max-width:769px){.zigbee-container .view{width:100%}}@media screen and (min-width:769px){.zigbee-container .view{width:100%}}@media screen and (min-width:1024px){.zigbee-container .view{min-width:400pt;max-width:750pt;border-radius:1.5em}.zigbee-container .view-container{padding-top:2em}}.zigbee-container .params{background:#fff;padding-bottom:1em}.zigbee-container .params .section{display:flex;flex-direction:column;padding:0 1em}.zigbee-container .params .section:not(:first-child){padding-top:1em}.zigbee-container .params .section .header{display:flex;align-items:center;font-weight:700;border-bottom:1px solid #e8e8e8}.zigbee-container .btn-value-name-edit{padding:0}.zigbee-container .modal .section .header{background:none;padding:.5em 0}.zigbee-container .modal .section .body{padding:0}.zigbee-container .modal .network-info{min-width:600pt}.zigbee-container .error{color:#a00}.zigbee-container .device .actions .row,.zigbee-container .group .actions .row{cursor:pointer}.zigbee-container .device form,.zigbee-container .group form{margin-bottom:0}.zigbee-container .device .param-value input[type=text],.zigbee-container .group .param-value input[type=text]{text-align:right}.zigbee-container .info-body{margin:-2em;padding:0}.zigbee-container .info-body .row{padding:1em .5em}.zigbee-container .info-body .row .param-name{font-weight:700}@media screen and (max-width:769px){.zigbee-container .info-body{width:100vw}}@media screen and (min-width:769px){.zigbee-container .info-body{width:80vw}}@media screen and (min-width:1024px){.zigbee-container .info-body{width:60vw;max-width:30em}} \ No newline at end of file +.col-1[data-v-6437b841]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-1[data-v-6437b841]{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1[data-v-6437b841]:first-child{margin-left:8.6666666667%!important}.col-offset-1[data-v-6437b841]:not(first-child){margin-left:12.6666666667%!important}.col-2[data-v-6437b841]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-2[data-v-6437b841]{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2[data-v-6437b841]:first-child{margin-left:17.3333333333%!important}.col-offset-2[data-v-6437b841]:not(first-child){margin-left:21.3333333333%!important}.col-3[data-v-6437b841]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-3[data-v-6437b841]{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3[data-v-6437b841]:first-child{margin-left:26%!important}.col-offset-3[data-v-6437b841]:not(first-child){margin-left:30%!important}.col-4[data-v-6437b841]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-4[data-v-6437b841]{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4[data-v-6437b841]:first-child{margin-left:34.6666666667%!important}.col-offset-4[data-v-6437b841]:not(first-child){margin-left:38.6666666667%!important}.col-5[data-v-6437b841]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-5[data-v-6437b841]{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5[data-v-6437b841]:first-child{margin-left:43.3333333334%!important}.col-offset-5[data-v-6437b841]:not(first-child){margin-left:47.3333333334%!important}.col-6[data-v-6437b841]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-6[data-v-6437b841]{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6[data-v-6437b841]:first-child{margin-left:52%!important}.col-offset-6[data-v-6437b841]:not(first-child){margin-left:56%!important}.col-7[data-v-6437b841]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-7[data-v-6437b841]{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7[data-v-6437b841]:first-child{margin-left:60.6666666667%!important}.col-offset-7[data-v-6437b841]:not(first-child){margin-left:64.6666666667%!important}.col-8[data-v-6437b841]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-8[data-v-6437b841]{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8[data-v-6437b841]:first-child{margin-left:69.3333333334%!important}.col-offset-8[data-v-6437b841]:not(first-child){margin-left:73.3333333334%!important}.col-9[data-v-6437b841]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-9[data-v-6437b841]{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9[data-v-6437b841]:first-child{margin-left:78%!important}.col-offset-9[data-v-6437b841]:not(first-child){margin-left:82%!important}.col-10[data-v-6437b841]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-10[data-v-6437b841]{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10[data-v-6437b841]:first-child{margin-left:86.6666666667%!important}.col-offset-10[data-v-6437b841]:not(first-child){margin-left:90.6666666667%!important}.col-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11[data-v-6437b841]:first-child{margin-left:95.3333333334%!important}.col-offset-11[data-v-6437b841]:not(first-child){margin-left:99.3333333334%!important}.col-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-12[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1[data-v-6437b841]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-1[data-v-6437b841]{margin-left:8.6666666667%}.col-no-margin-s-1[data-v-6437b841]{float:left;box-sizing:border-box;width:8.3333333333%}.col-s-2[data-v-6437b841]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-s-2[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-2[data-v-6437b841]{margin-left:17.3333333333%}.col-no-margin-s-2[data-v-6437b841]{float:left;box-sizing:border-box;width:16.6666666667%}.col-s-3[data-v-6437b841]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-s-3[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-3[data-v-6437b841]{margin-left:26%}.col-no-margin-s-3[data-v-6437b841]{float:left;box-sizing:border-box;width:25%}.col-s-4[data-v-6437b841]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-s-4[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-4[data-v-6437b841]{margin-left:34.6666666667%}.col-no-margin-s-4[data-v-6437b841]{float:left;box-sizing:border-box;width:33.3333333333%}.col-s-5[data-v-6437b841]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-s-5[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-5[data-v-6437b841]{margin-left:43.3333333334%}.col-no-margin-s-5[data-v-6437b841]{float:left;box-sizing:border-box;width:41.6666666667%}.col-s-6[data-v-6437b841]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-s-6[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-6[data-v-6437b841]{margin-left:52%}.col-no-margin-s-6[data-v-6437b841]{float:left;box-sizing:border-box;width:50%}.col-s-7[data-v-6437b841]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-s-7[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-7[data-v-6437b841]{margin-left:60.6666666667%}.col-no-margin-s-7[data-v-6437b841]{float:left;box-sizing:border-box;width:58.3333333333%}.col-s-8[data-v-6437b841]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-s-8[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-8[data-v-6437b841]{margin-left:69.3333333334%}.col-no-margin-s-8[data-v-6437b841]{float:left;box-sizing:border-box;width:66.6666666667%}.col-s-9[data-v-6437b841]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-s-9[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-9[data-v-6437b841]{margin-left:78%}.col-no-margin-s-9[data-v-6437b841]{float:left;box-sizing:border-box;width:75%}.col-s-10[data-v-6437b841]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-s-10[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-10[data-v-6437b841]{margin-left:86.6666666667%}.col-no-margin-s-10[data-v-6437b841]{float:left;box-sizing:border-box;width:83.3333333333%}.col-s-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-s-11[data-v-6437b841]:first-child{margin-left:0}.col-offset-s-11[data-v-6437b841]{margin-left:95.3333333334%}.col-no-margin-s-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.6666666667%}.col-s-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-s-12[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-s-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%}.s-hidden[data-v-6437b841]{display:none!important}.s-visible[data-v-6437b841]{display:block!important}}@media screen and (min-width:769px){.col-m-1[data-v-6437b841]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-1[data-v-6437b841]{margin-left:8.6666666667%}.col-no-margin-m-1[data-v-6437b841]{float:left;box-sizing:border-box;width:8.3333333333%}.col-m-2[data-v-6437b841]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-m-2[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-2[data-v-6437b841]{margin-left:17.3333333333%}.col-no-margin-m-2[data-v-6437b841]{float:left;box-sizing:border-box;width:16.6666666667%}.col-m-3[data-v-6437b841]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-m-3[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-3[data-v-6437b841]{margin-left:26%}.col-no-margin-m-3[data-v-6437b841]{float:left;box-sizing:border-box;width:25%}.col-m-4[data-v-6437b841]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-m-4[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-4[data-v-6437b841]{margin-left:34.6666666667%}.col-no-margin-m-4[data-v-6437b841]{float:left;box-sizing:border-box;width:33.3333333333%}.col-m-5[data-v-6437b841]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-m-5[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-5[data-v-6437b841]{margin-left:43.3333333334%}.col-no-margin-m-5[data-v-6437b841]{float:left;box-sizing:border-box;width:41.6666666667%}.col-m-6[data-v-6437b841]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-m-6[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-6[data-v-6437b841]{margin-left:52%}.col-no-margin-m-6[data-v-6437b841]{float:left;box-sizing:border-box;width:50%}.col-m-7[data-v-6437b841]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-m-7[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-7[data-v-6437b841]{margin-left:60.6666666667%}.col-no-margin-m-7[data-v-6437b841]{float:left;box-sizing:border-box;width:58.3333333333%}.col-m-8[data-v-6437b841]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-m-8[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-8[data-v-6437b841]{margin-left:69.3333333334%}.col-no-margin-m-8[data-v-6437b841]{float:left;box-sizing:border-box;width:66.6666666667%}.col-m-9[data-v-6437b841]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-m-9[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-9[data-v-6437b841]{margin-left:78%}.col-no-margin-m-9[data-v-6437b841]{float:left;box-sizing:border-box;width:75%}.col-m-10[data-v-6437b841]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-m-10[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-10[data-v-6437b841]{margin-left:86.6666666667%}.col-no-margin-m-10[data-v-6437b841]{float:left;box-sizing:border-box;width:83.3333333333%}.col-m-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-m-11[data-v-6437b841]:first-child{margin-left:0}.col-offset-m-11[data-v-6437b841]{margin-left:95.3333333334%}.col-no-margin-m-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.6666666667%}.col-m-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-m-12[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-m-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%}.m-hidden[data-v-6437b841]{display:none!important}.m-visible[data-v-6437b841]{display:block!important}}@media screen and (min-width:1024px){.col-l-1[data-v-6437b841]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-1[data-v-6437b841]{margin-left:8.6666666667%}.col-no-margin-l-1[data-v-6437b841]{float:left;box-sizing:border-box;width:8.3333333333%}.col-l-2[data-v-6437b841]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-l-2[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-2[data-v-6437b841]{margin-left:17.3333333333%}.col-no-margin-l-2[data-v-6437b841]{float:left;box-sizing:border-box;width:16.6666666667%}.col-l-3[data-v-6437b841]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-l-3[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-3[data-v-6437b841]{margin-left:26%}.col-no-margin-l-3[data-v-6437b841]{float:left;box-sizing:border-box;width:25%}.col-l-4[data-v-6437b841]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-l-4[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-4[data-v-6437b841]{margin-left:34.6666666667%}.col-no-margin-l-4[data-v-6437b841]{float:left;box-sizing:border-box;width:33.3333333333%}.col-l-5[data-v-6437b841]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-l-5[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-5[data-v-6437b841]{margin-left:43.3333333334%}.col-no-margin-l-5[data-v-6437b841]{float:left;box-sizing:border-box;width:41.6666666667%}.col-l-6[data-v-6437b841]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-l-6[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-6[data-v-6437b841]{margin-left:52%}.col-no-margin-l-6[data-v-6437b841]{float:left;box-sizing:border-box;width:50%}.col-l-7[data-v-6437b841]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-l-7[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-7[data-v-6437b841]{margin-left:60.6666666667%}.col-no-margin-l-7[data-v-6437b841]{float:left;box-sizing:border-box;width:58.3333333333%}.col-l-8[data-v-6437b841]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-l-8[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-8[data-v-6437b841]{margin-left:69.3333333334%}.col-no-margin-l-8[data-v-6437b841]{float:left;box-sizing:border-box;width:66.6666666667%}.col-l-9[data-v-6437b841]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-l-9[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-9[data-v-6437b841]{margin-left:78%}.col-no-margin-l-9[data-v-6437b841]{float:left;box-sizing:border-box;width:75%}.col-l-10[data-v-6437b841]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-l-10[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-10[data-v-6437b841]{margin-left:86.6666666667%}.col-no-margin-l-10[data-v-6437b841]{float:left;box-sizing:border-box;width:83.3333333333%}.col-l-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-l-11[data-v-6437b841]:first-child{margin-left:0}.col-offset-l-11[data-v-6437b841]{margin-left:95.3333333334%}.col-no-margin-l-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.6666666667%}.col-l-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-l-12[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-l-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%}.l-hidden[data-v-6437b841]{display:none!important}.l-visible[data-v-6437b841]{display:block!important}}@media screen and (min-width:1216px){.col-xl-1[data-v-6437b841]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-1[data-v-6437b841]{margin-left:8.6666666667%}.col-no-margin-xl-1[data-v-6437b841]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xl-2[data-v-6437b841]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xl-2[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-2[data-v-6437b841]{margin-left:17.3333333333%}.col-no-margin-xl-2[data-v-6437b841]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xl-3[data-v-6437b841]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xl-3[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-3[data-v-6437b841]{margin-left:26%}.col-no-margin-xl-3[data-v-6437b841]{float:left;box-sizing:border-box;width:25%}.col-xl-4[data-v-6437b841]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xl-4[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-4[data-v-6437b841]{margin-left:34.6666666667%}.col-no-margin-xl-4[data-v-6437b841]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xl-5[data-v-6437b841]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xl-5[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-5[data-v-6437b841]{margin-left:43.3333333334%}.col-no-margin-xl-5[data-v-6437b841]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xl-6[data-v-6437b841]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xl-6[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-6[data-v-6437b841]{margin-left:52%}.col-no-margin-xl-6[data-v-6437b841]{float:left;box-sizing:border-box;width:50%}.col-xl-7[data-v-6437b841]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xl-7[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-7[data-v-6437b841]{margin-left:60.6666666667%}.col-no-margin-xl-7[data-v-6437b841]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xl-8[data-v-6437b841]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xl-8[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-8[data-v-6437b841]{margin-left:69.3333333334%}.col-no-margin-xl-8[data-v-6437b841]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xl-9[data-v-6437b841]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xl-9[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-9[data-v-6437b841]{margin-left:78%}.col-no-margin-xl-9[data-v-6437b841]{float:left;box-sizing:border-box;width:75%}.col-xl-10[data-v-6437b841]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xl-10[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-10[data-v-6437b841]{margin-left:86.6666666667%}.col-no-margin-xl-10[data-v-6437b841]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xl-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xl-11[data-v-6437b841]:first-child{margin-left:0}.col-offset-xl-11[data-v-6437b841]{margin-left:95.3333333334%}.col-no-margin-xl-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xl-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xl-12[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-xl-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%}.xl-hidden[data-v-6437b841]{display:none!important}.xl-visible[data-v-6437b841]{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1[data-v-6437b841]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-1[data-v-6437b841]{margin-left:8.6666666667%}.col-no-margin-xxl-1[data-v-6437b841]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xxl-2[data-v-6437b841]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xxl-2[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-2[data-v-6437b841]{margin-left:17.3333333333%}.col-no-margin-xxl-2[data-v-6437b841]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xxl-3[data-v-6437b841]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xxl-3[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-3[data-v-6437b841]{margin-left:26%}.col-no-margin-xxl-3[data-v-6437b841]{float:left;box-sizing:border-box;width:25%}.col-xxl-4[data-v-6437b841]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xxl-4[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-4[data-v-6437b841]{margin-left:34.6666666667%}.col-no-margin-xxl-4[data-v-6437b841]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xxl-5[data-v-6437b841]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xxl-5[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-5[data-v-6437b841]{margin-left:43.3333333334%}.col-no-margin-xxl-5[data-v-6437b841]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xxl-6[data-v-6437b841]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xxl-6[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-6[data-v-6437b841]{margin-left:52%}.col-no-margin-xxl-6[data-v-6437b841]{float:left;box-sizing:border-box;width:50%}.col-xxl-7[data-v-6437b841]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xxl-7[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-7[data-v-6437b841]{margin-left:60.6666666667%}.col-no-margin-xxl-7[data-v-6437b841]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xxl-8[data-v-6437b841]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xxl-8[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-8[data-v-6437b841]{margin-left:69.3333333334%}.col-no-margin-xxl-8[data-v-6437b841]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xxl-9[data-v-6437b841]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xxl-9[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-9[data-v-6437b841]{margin-left:78%}.col-no-margin-xxl-9[data-v-6437b841]{float:left;box-sizing:border-box;width:75%}.col-xxl-10[data-v-6437b841]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-10[data-v-6437b841]{margin-left:86.6666666667%}.col-no-margin-xxl-10[data-v-6437b841]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11[data-v-6437b841]:first-child{margin-left:0}.col-offset-xxl-11[data-v-6437b841]{margin-left:95.3333333334%}.col-no-margin-xxl-11[data-v-6437b841]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xxl-12[data-v-6437b841]:first-child{margin-left:0}.col-no-margin-xxl-12[data-v-6437b841]{float:left;box-sizing:border-box;width:100%}.xxl-hidden[data-v-6437b841]{display:none!important}.xxl-visible[data-v-6437b841]{display:block!important}}.vertical-center[data-v-6437b841]{display:flex;align-items:center}.horizontal-center[data-v-6437b841]{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right[data-v-6437b841]{text-align:right;float:right;justify-content:right}.hidden[data-v-6437b841]{display:none!important}.no-content[data-v-6437b841]{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn-default[data-v-6437b841],.btn[data-v-6437b841],button[data-v-6437b841]{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary[data-v-6437b841],.btn-default[type=submit][data-v-6437b841],.btn.btn-primary[data-v-6437b841],.btn[type=submit][data-v-6437b841],button.btn-primary[data-v-6437b841],button[type=submit][data-v-6437b841]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon[data-v-6437b841],.btn-default .icon[data-v-6437b841],button .icon[data-v-6437b841]{margin-right:.5em}input[type=password][data-v-6437b841],input[type=text][data-v-6437b841]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password][data-v-6437b841]:focus,input[type=text][data-v-6437b841]:focus{border:1px solid #35b870}button[data-v-6437b841],input[data-v-6437b841]{outline:none}input[type=text][data-v-6437b841]:hover,textarea[data-v-6437b841]:hover{border:1px solid #9cdfb0}ul[data-v-6437b841]{margin:0;padding:0;list-style:none}a[data-v-6437b841]{cursor:pointer;text-decoration:none}[data-v-6437b841]::-webkit-scrollbar{width:.75em}[data-v-6437b841]::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}[data-v-6437b841]::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body[data-v-6437b841]{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon[data-v-6437b841]{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number][data-v-6437b841],input[type=password][data-v-6437b841],input[type=search][data-v-6437b841],input[type=text][data-v-6437b841]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number][data-v-6437b841]:hover,input[type=password][data-v-6437b841]:hover,input[type=search][data-v-6437b841]:hover,input[type=text][data-v-6437b841]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number][data-v-6437b841]:focus,input[type=password][data-v-6437b841]:focus,input[type=search][data-v-6437b841]:focus,input[type=text][data-v-6437b841]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon[data-v-6437b841],input[type=password].with-icon[data-v-6437b841],input[type=search].with-icon[data-v-6437b841],input[type=text].with-icon[data-v-6437b841]{padding-left:.3em}input[type=search][data-v-6437b841],input[type=text][data-v-6437b841]{border-radius:1em;padding:.25em .5em}.fade-in[data-v-6437b841]{animation-fill-mode:both;animation-name:fadeIn-6437b841;-webkit-animation-name:fadeIn-6437b841}.fade-in[data-v-6437b841],.fade-out[data-v-6437b841]{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out[data-v-6437b841]{animation-fill-mode:both;animation-name:fadeOut-6437b841;-webkit-animation-name:fadeOut-6437b841}@keyframes fadeIn-6437b841{0%{opacity:0}to{opacity:1}}@keyframes fadeOut-6437b841{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi[data-v-6437b841]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-plex[data-v-6437b841]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin[data-v-6437b841]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.zigbee-container .info-body .row[data-v-6437b841]:nth-child(2n),.zigbee-container .params .row[data-v-6437b841]:nth-child(2n){background:#f0f0f0}.zigbee-container .info-body .row[data-v-6437b841]:nth-child(odd),.zigbee-container .params .row[data-v-6437b841]:nth-child(odd){background:#fff}.zigbee-container .info-body .row[data-v-6437b841],.zigbee-container .view .row[data-v-6437b841]{display:flex;align-items:center;border-radius:1em;padding:.3em}.zigbee-container .info-body .row[data-v-6437b841]:hover,.zigbee-container .view .row[data-v-6437b841]:hover{background:#bef6da}.zigbee-container .info-body .item.selected[data-v-6437b841],.zigbee-container .view .item.selected[data-v-6437b841]{box-shadow:0 2px 4px 0 #bbb}.zigbee-container .info-body .item .name.header[data-v-6437b841],.zigbee-container .view .item .name.header[data-v-6437b841]{padding:1em!important;cursor:pointer;text-transform:uppercase;letter-spacing:.06em}.zigbee-container .info-body .item .name.header.selected[data-v-6437b841],.zigbee-container .view .item .name.header.selected[data-v-6437b841]{border-radius:1.5em;background:#c8ffd0}.zigbee-container .info-body .item .title[data-v-6437b841],.zigbee-container .view .item .title[data-v-6437b841]{font-size:1.2em;padding-left:.5em}.zigbee-container .info-body .item .buttons[data-v-6437b841],.zigbee-container .view .item .buttons[data-v-6437b841]{margin:0}.zigbee-container .info-body .item[data-v-6437b841]:hover,.zigbee-container .view .item[data-v-6437b841]:hover{background:#bef6da}.zigbee-container .info-body .item:hover.selected[data-v-6437b841],.zigbee-container .view .item:hover.selected[data-v-6437b841]{background:#c8ffd0}.zigbee-container .info-body .item[data-v-6437b841]:not(:last-child),.zigbee-container .view .item[data-v-6437b841]:not(:last-child){border-bottom:1px solid #ddd}.zigbee-container .info-body .item[data-v-6437b841]:first-child,.zigbee-container .view .item[data-v-6437b841]:first-child{border-radius:1.5em 1.5em 0 0}.zigbee-container .info-body .item[data-v-6437b841]:last-child,.zigbee-container .view .item[data-v-6437b841]:last-child{border-radius:0 0 1.5em 1.5em}.zigbee-container .info-body .item .params .section[data-v-6437b841],.zigbee-container .view .item .params .section[data-v-6437b841]{padding:1.5em 0 0 0}.zigbee-container .info-body .item .value .param-name[data-v-6437b841],.zigbee-container .view .item .value .param-name[data-v-6437b841]{display:inline-block}.zigbee-container .info-body .item .value .param-name .name[data-v-6437b841],.zigbee-container .view .item .value .param-name .name[data-v-6437b841]{font-family:monospace;font-size:.8em;text-transform:unset;padding:0}.zigbee-container .info-body .item .value .param-name .name[data-v-6437b841]:before,.zigbee-container .view .item .value .param-name .name[data-v-6437b841]:before{content:"["}.zigbee-container .info-body .item .value .param-name .name[data-v-6437b841]:after,.zigbee-container .view .item .value .param-name .name[data-v-6437b841]:after{content:"]"}.zigbee-container .info-body .item .value .param-name .unit[data-v-6437b841],.zigbee-container .view .item .value .param-name .unit[data-v-6437b841]{font-size:.8em}.zigbee-container .info-body .item .value .param-name .unit[data-v-6437b841]:before,.zigbee-container .view .item .value .param-name .unit[data-v-6437b841]:before{content:" [unit: "}.zigbee-container .info-body .item .value .param-name .unit[data-v-6437b841]:after,.zigbee-container .view .item .value .param-name .unit[data-v-6437b841]:after{content:"]"}.zigbee-container .info-body .item .value .param-value label[data-v-6437b841],.zigbee-container .view .item .value .param-value label[data-v-6437b841]{width:90%}.zigbee-container .info-body .item .value .param-value input[data-v-6437b841],.zigbee-container .view .item .value .param-value input[data-v-6437b841]{width:100%}.zigbee-container .info-body .item button[data-v-6437b841],.zigbee-container .view .item button[data-v-6437b841]{border:0;background:none;padding:0 .5em}.zigbee-container .info-body .item button[data-v-6437b841]:hover,.zigbee-container .view .item button[data-v-6437b841]:hover{color:#35b870}@media screen and (max-width:769px){.zigbee-container .info-body .item .name-edit[data-v-6437b841],.zigbee-container .view .item .name-edit[data-v-6437b841]{justify-content:left}}@media screen and (min-width:769px){.zigbee-container .info-body .item .name-edit[data-v-6437b841],.zigbee-container .view .item .name-edit[data-v-6437b841]{justify-content:right}}.zigbee-container .info-body .item .name-edit[data-v-6437b841],.zigbee-container .view .item .name-edit[data-v-6437b841]{width:100%;display:inline-flex;align-items:center}.zigbee-container .info-body .item .name-edit form[data-v-6437b841],.zigbee-container .view .item .name-edit form[data-v-6437b841]{width:100%;display:inline-flex;align-items:center;justify-content:right;flex-direction:row}.zigbee-container .info-body .item .name-edit .buttons[data-v-6437b841],.zigbee-container .view .item .name-edit .buttons[data-v-6437b841]{display:inline-flex;justify-content:right;margin:0 0 0 .5em}.zigbee-container .info-body .item .name-edit form[data-v-6437b841],.zigbee-container .view .item .name-edit form[data-v-6437b841]{background:none;padding:0;border:none;box-shadow:none}.zigbee-container .row[data-v-6437b841]{display:flex;flex-wrap:wrap}@media screen and (max-width:769px){.zigbee-container .row .param-name[data-v-6437b841]{width:100%;font-weight:700}.zigbee-container .row .param-value[data-v-6437b841]{width:100%;margin-left:1%}}@media screen and (min-width:769px){.zigbee-container .row .param-name[data-v-6437b841]{width:40%}.zigbee-container .row .param-value[data-v-6437b841]{width:58%;justify-content:right}}.zigbee-container .row .param-name[data-v-6437b841]{display:inline-flex;margin-left:1%;vertical-align:top;letter-spacing:.04em}.zigbee-container .row .param-value[data-v-6437b841]{display:inline-flex;align-items:center}.zigbee-container .row .param-value .value-edit[data-v-6437b841]{display:flex;align-items:center}.zigbee-container .row .param-value .value-data[data-v-6437b841]{display:inline-block;font-weight:700}.zigbee-container .row .param-value .slider-container[data-v-6437b841]{display:flex;align-items:center}.zigbee-container .row .param-value .unit[data-v-6437b841]{font-size:.8em;margin-left:1em;display:inline}.zigbee-container .row .param-value select[data-v-6437b841]{width:100%}.zigbee-container .row .param-value .numeric input.slider[data-v-6437b841]{text-align:left}.zigbee-container .row .param-value .numeric input[type=text][data-v-6437b841]{text-align:right;width:100%}.zigbee-container .row .param-value .numeric .row[data-v-6437b841],.zigbee-container .row .param-value .numeric .row[data-v-6437b841]:hover{background:none}.zigbee-container .row .param-value .numeric .value-max[data-v-6437b841],.zigbee-container .row .param-value .numeric .value-min[data-v-6437b841]{width:50%;font-size:.85em;opacity:.75}.zigbee-container .row .param-value .numeric .value-min[data-v-6437b841]{text-align:left}.zigbee-container .row .param-value .numeric .value-max[data-v-6437b841]{text-align:right}.zigbee-container select[data-v-6437b841]{width:100%}.groups-modal .content[data-v-6437b841]{min-width:20em;margin:-2em;padding:0;border:none;box-shadow:none}.groups-modal .group[data-v-6437b841]{width:100%;display:flex;align-items:center;padding:.5em 1em!important}.groups-modal .group input[type=checkbox][data-v-6437b841]{margin-right:1em}.groups-modal .groups[data-v-6437b841]{width:100%;height:calc(100% - 3.5em);display:flex;justify-content:center;align-items:center;overflow:auto}.groups-modal .footer[data-v-6437b841]{width:100%;height:3.5em;display:flex;justify-content:right;align-items:center;padding:0;background:#f8f8f8;border-top:1px solid #ddd}@media screen and (max-width:769px){.section.actions .row[data-v-6437b841]{flex-direction:row-reverse;justify-content:left}.section.actions .row .param-name[data-v-6437b841]{width:auto}.section.actions .row .param-value[data-v-6437b841]{width:1.5em;margin-right:.5em}}.col-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1[data-v-7667f7ba]:first-child{margin-left:8.6666666667%!important}.col-offset-1[data-v-7667f7ba]:not(first-child){margin-left:12.6666666667%!important}.col-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2[data-v-7667f7ba]:first-child{margin-left:17.3333333333%!important}.col-offset-2[data-v-7667f7ba]:not(first-child){margin-left:21.3333333333%!important}.col-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3[data-v-7667f7ba]:first-child{margin-left:26%!important}.col-offset-3[data-v-7667f7ba]:not(first-child){margin-left:30%!important}.col-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4[data-v-7667f7ba]:first-child{margin-left:34.6666666667%!important}.col-offset-4[data-v-7667f7ba]:not(first-child){margin-left:38.6666666667%!important}.col-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5[data-v-7667f7ba]:first-child{margin-left:43.3333333334%!important}.col-offset-5[data-v-7667f7ba]:not(first-child){margin-left:47.3333333334%!important}.col-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6[data-v-7667f7ba]:first-child{margin-left:52%!important}.col-offset-6[data-v-7667f7ba]:not(first-child){margin-left:56%!important}.col-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7[data-v-7667f7ba]:first-child{margin-left:60.6666666667%!important}.col-offset-7[data-v-7667f7ba]:not(first-child){margin-left:64.6666666667%!important}.col-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8[data-v-7667f7ba]:first-child{margin-left:69.3333333334%!important}.col-offset-8[data-v-7667f7ba]:not(first-child){margin-left:73.3333333334%!important}.col-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9[data-v-7667f7ba]:first-child{margin-left:78%!important}.col-offset-9[data-v-7667f7ba]:not(first-child){margin-left:82%!important}.col-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10[data-v-7667f7ba]:first-child{margin-left:86.6666666667%!important}.col-offset-10[data-v-7667f7ba]:not(first-child){margin-left:90.6666666667%!important}.col-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11[data-v-7667f7ba]:first-child{margin-left:95.3333333334%!important}.col-offset-11[data-v-7667f7ba]:not(first-child){margin-left:99.3333333334%!important}.col-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-s-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-s-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-s-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-s-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-s-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-s-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-s-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-s-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-s-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-s-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-s-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-s-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-s-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-s-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-s-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-s-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-s-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-s-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-s-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-s-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-s-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-s-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-s-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-s-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-s-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-s-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-s-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-s-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-s-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-s-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-s-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-s-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-s-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-s-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-s-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.s-hidden[data-v-7667f7ba]{display:none!important}.s-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:769px){.col-m-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-m-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-m-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-m-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-m-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-m-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-m-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-m-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-m-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-m-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-m-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-m-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-m-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-m-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-m-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-m-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-m-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-m-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-m-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-m-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-m-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-m-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-m-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-m-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-m-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-m-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-m-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-m-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-m-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-m-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-m-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-m-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-m-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-m-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-m-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-m-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.m-hidden[data-v-7667f7ba]{display:none!important}.m-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:1024px){.col-l-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-l-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-l-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-l-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-l-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-l-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-l-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-l-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-l-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-l-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-l-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-l-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-l-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-l-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-l-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-l-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-l-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-l-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-l-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-l-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-l-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-l-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-l-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-l-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-l-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-l-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-l-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-l-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-l-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-l-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-l-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-l-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-l-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-l-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-l-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-l-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.l-hidden[data-v-7667f7ba]{display:none!important}.l-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:1216px){.col-xl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-xl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xl-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-xl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xl-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-xl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-xl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xl-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-xl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xl-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-xl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xl-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-xl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-xl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xl-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-xl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xl-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-xl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xl-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-xl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-xl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xl-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-xl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xl-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xl-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-xl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xl-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-xl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.xl-hidden[data-v-7667f7ba]{display:none!important}.xl-visible[data-v-7667f7ba]{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-1[data-v-7667f7ba]{margin-left:8.6666666667%}.col-no-margin-xxl-1[data-v-7667f7ba]{float:left;box-sizing:border-box;width:8.3333333333%}.col-xxl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-xxl-2[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-2[data-v-7667f7ba]{margin-left:17.3333333333%}.col-no-margin-xxl-2[data-v-7667f7ba]{float:left;box-sizing:border-box;width:16.6666666667%}.col-xxl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-xxl-3[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-3[data-v-7667f7ba]{margin-left:26%}.col-no-margin-xxl-3[data-v-7667f7ba]{float:left;box-sizing:border-box;width:25%}.col-xxl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-xxl-4[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-4[data-v-7667f7ba]{margin-left:34.6666666667%}.col-no-margin-xxl-4[data-v-7667f7ba]{float:left;box-sizing:border-box;width:33.3333333333%}.col-xxl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-xxl-5[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-5[data-v-7667f7ba]{margin-left:43.3333333334%}.col-no-margin-xxl-5[data-v-7667f7ba]{float:left;box-sizing:border-box;width:41.6666666667%}.col-xxl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-xxl-6[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-6[data-v-7667f7ba]{margin-left:52%}.col-no-margin-xxl-6[data-v-7667f7ba]{float:left;box-sizing:border-box;width:50%}.col-xxl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-xxl-7[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-7[data-v-7667f7ba]{margin-left:60.6666666667%}.col-no-margin-xxl-7[data-v-7667f7ba]{float:left;box-sizing:border-box;width:58.3333333333%}.col-xxl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-xxl-8[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-8[data-v-7667f7ba]{margin-left:69.3333333334%}.col-no-margin-xxl-8[data-v-7667f7ba]{float:left;box-sizing:border-box;width:66.6666666667%}.col-xxl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-xxl-9[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-9[data-v-7667f7ba]{margin-left:78%}.col-no-margin-xxl-9[data-v-7667f7ba]{float:left;box-sizing:border-box;width:75%}.col-xxl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-10[data-v-7667f7ba]{margin-left:86.6666666667%}.col-no-margin-xxl-10[data-v-7667f7ba]{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11[data-v-7667f7ba]:first-child{margin-left:0}.col-offset-xxl-11[data-v-7667f7ba]{margin-left:95.3333333334%}.col-no-margin-xxl-11[data-v-7667f7ba]{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%;margin-left:0}.col-xxl-12[data-v-7667f7ba]:first-child{margin-left:0}.col-no-margin-xxl-12[data-v-7667f7ba]{float:left;box-sizing:border-box;width:100%}.xxl-hidden[data-v-7667f7ba]{display:none!important}.xxl-visible[data-v-7667f7ba]{display:block!important}}.vertical-center[data-v-7667f7ba]{display:flex;align-items:center}.horizontal-center[data-v-7667f7ba]{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right[data-v-7667f7ba]{text-align:right;float:right;justify-content:right}.hidden[data-v-7667f7ba]{display:none!important}.no-content[data-v-7667f7ba]{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn-default[data-v-7667f7ba],.btn[data-v-7667f7ba],button[data-v-7667f7ba]{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary[data-v-7667f7ba],.btn-default[type=submit][data-v-7667f7ba],.btn.btn-primary[data-v-7667f7ba],.btn[type=submit][data-v-7667f7ba],button.btn-primary[data-v-7667f7ba],button[type=submit][data-v-7667f7ba]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon[data-v-7667f7ba],.btn-default .icon[data-v-7667f7ba],button .icon[data-v-7667f7ba]{margin-right:.5em}input[type=password][data-v-7667f7ba],input[type=text][data-v-7667f7ba]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password][data-v-7667f7ba]:focus,input[type=text][data-v-7667f7ba]:focus{border:1px solid #35b870}button[data-v-7667f7ba],input[data-v-7667f7ba]{outline:none}input[type=text][data-v-7667f7ba]:hover,textarea[data-v-7667f7ba]:hover{border:1px solid #9cdfb0}ul[data-v-7667f7ba]{margin:0;padding:0;list-style:none}a[data-v-7667f7ba]{cursor:pointer;text-decoration:none}[data-v-7667f7ba]::-webkit-scrollbar{width:.75em}[data-v-7667f7ba]::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}[data-v-7667f7ba]::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body[data-v-7667f7ba]{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon[data-v-7667f7ba]{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number][data-v-7667f7ba],input[type=password][data-v-7667f7ba],input[type=search][data-v-7667f7ba],input[type=text][data-v-7667f7ba]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number][data-v-7667f7ba]:hover,input[type=password][data-v-7667f7ba]:hover,input[type=search][data-v-7667f7ba]:hover,input[type=text][data-v-7667f7ba]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number][data-v-7667f7ba]:focus,input[type=password][data-v-7667f7ba]:focus,input[type=search][data-v-7667f7ba]:focus,input[type=text][data-v-7667f7ba]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon[data-v-7667f7ba],input[type=password].with-icon[data-v-7667f7ba],input[type=search].with-icon[data-v-7667f7ba],input[type=text].with-icon[data-v-7667f7ba]{padding-left:.3em}input[type=search][data-v-7667f7ba],input[type=text][data-v-7667f7ba]{border-radius:1em;padding:.25em .5em}.fade-in[data-v-7667f7ba]{animation-fill-mode:both;animation-name:fadeIn-7667f7ba;-webkit-animation-name:fadeIn-7667f7ba}.fade-in[data-v-7667f7ba],.fade-out[data-v-7667f7ba]{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out[data-v-7667f7ba]{animation-fill-mode:both;animation-name:fadeOut-7667f7ba;-webkit-animation-name:fadeOut-7667f7ba}@keyframes fadeIn-7667f7ba{0%{opacity:0}to{opacity:1}}@keyframes fadeOut-7667f7ba{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi[data-v-7667f7ba]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-plex[data-v-7667f7ba]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin[data-v-7667f7ba]:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.zigbee-container .info-body .row[data-v-7667f7ba]:nth-child(2n),.zigbee-container .params .row[data-v-7667f7ba]:nth-child(2n){background:#f0f0f0}.zigbee-container .info-body .row[data-v-7667f7ba]:nth-child(odd),.zigbee-container .params .row[data-v-7667f7ba]:nth-child(odd){background:#fff}.zigbee-container .info-body .row[data-v-7667f7ba],.zigbee-container .view .row[data-v-7667f7ba]{display:flex;align-items:center;border-radius:1em;padding:.3em}.zigbee-container .info-body .row[data-v-7667f7ba]:hover,.zigbee-container .view .row[data-v-7667f7ba]:hover{background:#bef6da}.zigbee-container .info-body .item.selected[data-v-7667f7ba],.zigbee-container .view .item.selected[data-v-7667f7ba]{box-shadow:0 2px 4px 0 #bbb}.zigbee-container .info-body .item .name.header[data-v-7667f7ba],.zigbee-container .view .item .name.header[data-v-7667f7ba]{padding:1em!important;cursor:pointer;text-transform:uppercase;letter-spacing:.06em}.zigbee-container .info-body .item .name.header.selected[data-v-7667f7ba],.zigbee-container .view .item .name.header.selected[data-v-7667f7ba]{border-radius:1.5em;background:#c8ffd0}.zigbee-container .info-body .item .title[data-v-7667f7ba],.zigbee-container .view .item .title[data-v-7667f7ba]{font-size:1.2em;padding-left:.5em}.zigbee-container .info-body .item .buttons[data-v-7667f7ba],.zigbee-container .view .item .buttons[data-v-7667f7ba]{margin:0}.zigbee-container .info-body .item[data-v-7667f7ba]:hover,.zigbee-container .view .item[data-v-7667f7ba]:hover{background:#bef6da}.zigbee-container .info-body .item:hover.selected[data-v-7667f7ba],.zigbee-container .view .item:hover.selected[data-v-7667f7ba]{background:#c8ffd0}.zigbee-container .info-body .item[data-v-7667f7ba]:not(:last-child),.zigbee-container .view .item[data-v-7667f7ba]:not(:last-child){border-bottom:1px solid #ddd}.zigbee-container .info-body .item[data-v-7667f7ba]:first-child,.zigbee-container .view .item[data-v-7667f7ba]:first-child{border-radius:1.5em 1.5em 0 0}.zigbee-container .info-body .item[data-v-7667f7ba]:last-child,.zigbee-container .view .item[data-v-7667f7ba]:last-child{border-radius:0 0 1.5em 1.5em}.zigbee-container .info-body .item .params .section[data-v-7667f7ba],.zigbee-container .view .item .params .section[data-v-7667f7ba]{padding:1.5em 0 0 0}.zigbee-container .info-body .item .value .param-name[data-v-7667f7ba],.zigbee-container .view .item .value .param-name[data-v-7667f7ba]{display:inline-block}.zigbee-container .info-body .item .value .param-name .name[data-v-7667f7ba],.zigbee-container .view .item .value .param-name .name[data-v-7667f7ba]{font-family:monospace;font-size:.8em;text-transform:unset;padding:0}.zigbee-container .info-body .item .value .param-name .name[data-v-7667f7ba]:before,.zigbee-container .view .item .value .param-name .name[data-v-7667f7ba]:before{content:"["}.zigbee-container .info-body .item .value .param-name .name[data-v-7667f7ba]:after,.zigbee-container .view .item .value .param-name .name[data-v-7667f7ba]:after{content:"]"}.zigbee-container .info-body .item .value .param-name .unit[data-v-7667f7ba],.zigbee-container .view .item .value .param-name .unit[data-v-7667f7ba]{font-size:.8em}.zigbee-container .info-body .item .value .param-name .unit[data-v-7667f7ba]:before,.zigbee-container .view .item .value .param-name .unit[data-v-7667f7ba]:before{content:" [unit: "}.zigbee-container .info-body .item .value .param-name .unit[data-v-7667f7ba]:after,.zigbee-container .view .item .value .param-name .unit[data-v-7667f7ba]:after{content:"]"}.zigbee-container .info-body .item .value .param-value label[data-v-7667f7ba],.zigbee-container .view .item .value .param-value label[data-v-7667f7ba]{width:90%}.zigbee-container .info-body .item .value .param-value input[data-v-7667f7ba],.zigbee-container .view .item .value .param-value input[data-v-7667f7ba]{width:100%}.zigbee-container .info-body .item button[data-v-7667f7ba],.zigbee-container .view .item button[data-v-7667f7ba]{border:0;background:none;padding:0 .5em}.zigbee-container .info-body .item button[data-v-7667f7ba]:hover,.zigbee-container .view .item button[data-v-7667f7ba]:hover{color:#35b870}@media screen and (max-width:769px){.zigbee-container .info-body .item .name-edit[data-v-7667f7ba],.zigbee-container .view .item .name-edit[data-v-7667f7ba]{justify-content:left}}@media screen and (min-width:769px){.zigbee-container .info-body .item .name-edit[data-v-7667f7ba],.zigbee-container .view .item .name-edit[data-v-7667f7ba]{justify-content:right}}.zigbee-container .info-body .item .name-edit[data-v-7667f7ba],.zigbee-container .view .item .name-edit[data-v-7667f7ba]{width:100%;display:inline-flex;align-items:center}.zigbee-container .info-body .item .name-edit form[data-v-7667f7ba],.zigbee-container .view .item .name-edit form[data-v-7667f7ba]{width:100%;display:inline-flex;align-items:center;justify-content:right;flex-direction:row}.zigbee-container .info-body .item .name-edit .buttons[data-v-7667f7ba],.zigbee-container .view .item .name-edit .buttons[data-v-7667f7ba]{display:inline-flex;justify-content:right;margin:0 0 0 .5em}.zigbee-container .info-body .item .name-edit form[data-v-7667f7ba],.zigbee-container .view .item .name-edit form[data-v-7667f7ba]{background:none;padding:0;border:none;box-shadow:none}.zigbee-container .row[data-v-7667f7ba]{display:flex;flex-wrap:wrap}@media screen and (max-width:769px){.zigbee-container .row .param-name[data-v-7667f7ba]{width:100%;font-weight:700}.zigbee-container .row .param-value[data-v-7667f7ba]{width:100%;margin-left:1%}}@media screen and (min-width:769px){.zigbee-container .row .param-name[data-v-7667f7ba]{width:40%}.zigbee-container .row .param-value[data-v-7667f7ba]{width:58%;justify-content:right}}.zigbee-container .row .param-name[data-v-7667f7ba]{display:inline-flex;margin-left:1%;vertical-align:top;letter-spacing:.04em}.zigbee-container .row .param-value[data-v-7667f7ba]{display:inline-flex;align-items:center}.zigbee-container .row .param-value .value-edit[data-v-7667f7ba]{display:flex;align-items:center}.zigbee-container .row .param-value .value-data[data-v-7667f7ba]{display:inline-block;font-weight:700}.zigbee-container .row .param-value .slider-container[data-v-7667f7ba]{display:flex;align-items:center}.zigbee-container .row .param-value .unit[data-v-7667f7ba]{font-size:.8em;margin-left:1em;display:inline}.zigbee-container .row .param-value select[data-v-7667f7ba]{width:100%}.zigbee-container .row .param-value .numeric input.slider[data-v-7667f7ba]{text-align:left}.zigbee-container .row .param-value .numeric input[type=text][data-v-7667f7ba]{text-align:right;width:100%}.zigbee-container .row .param-value .numeric .row[data-v-7667f7ba],.zigbee-container .row .param-value .numeric .row[data-v-7667f7ba]:hover{background:none}.zigbee-container .row .param-value .numeric .value-max[data-v-7667f7ba],.zigbee-container .row .param-value .numeric .value-min[data-v-7667f7ba]{width:50%;font-size:.85em;opacity:.75}.zigbee-container .row .param-value .numeric .value-min[data-v-7667f7ba]{text-align:left}.zigbee-container .row .param-value .numeric .value-max[data-v-7667f7ba]{text-align:right}.zigbee-container select[data-v-7667f7ba]{width:100%}.section[data-v-7667f7ba]{padding-left:1em!important}form[data-v-7667f7ba]{margin:0;padding:0;border:none;box-shadow:none}form .row[data-v-7667f7ba]{background:none!important}form .row[data-v-7667f7ba]:hover{background:#bef6da!important}form .row .label[data-v-7667f7ba]{margin-left:.75em;font-weight:400}.col-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-1:first-child{margin-left:0}.col-no-margin-1{float:left;box-sizing:border-box;width:8.3333333333%;margin:0}.col-offset-1:first-child{margin-left:8.6666666667%!important}.col-offset-1:not(first-child){margin-left:12.6666666667%!important}.col-2{float:left;box-sizing:border-box;width:13.3333333333%;margin-left:4%}.col-2:first-child{margin-left:0}.col-no-margin-2{float:left;box-sizing:border-box;width:16.6666666667%;margin:0}.col-offset-2:first-child{margin-left:17.3333333333%!important}.col-offset-2:not(first-child){margin-left:21.3333333333%!important}.col-3{float:left;box-sizing:border-box;width:22%;margin-left:4%}.col-3:first-child{margin-left:0}.col-no-margin-3{float:left;box-sizing:border-box;width:25%;margin:0}.col-offset-3:first-child{margin-left:26%!important}.col-offset-3:not(first-child){margin-left:30%!important}.col-4{float:left;box-sizing:border-box;width:30.6666666667%;margin-left:4%}.col-4:first-child{margin-left:0}.col-no-margin-4{float:left;box-sizing:border-box;width:33.3333333333%;margin:0}.col-offset-4:first-child{margin-left:34.6666666667%!important}.col-offset-4:not(first-child){margin-left:38.6666666667%!important}.col-5{float:left;box-sizing:border-box;width:39.3333333334%;margin-left:4%}.col-5:first-child{margin-left:0}.col-no-margin-5{float:left;box-sizing:border-box;width:41.6666666667%;margin:0}.col-offset-5:first-child{margin-left:43.3333333334%!important}.col-offset-5:not(first-child){margin-left:47.3333333334%!important}.col-6{float:left;box-sizing:border-box;width:48%;margin-left:4%}.col-6:first-child{margin-left:0}.col-no-margin-6{float:left;box-sizing:border-box;width:50%;margin:0}.col-offset-6:first-child{margin-left:52%!important}.col-offset-6:not(first-child){margin-left:56%!important}.col-7{float:left;box-sizing:border-box;width:56.6666666667%;margin-left:4%}.col-7:first-child{margin-left:0}.col-no-margin-7{float:left;box-sizing:border-box;width:58.3333333333%;margin:0}.col-offset-7:first-child{margin-left:60.6666666667%!important}.col-offset-7:not(first-child){margin-left:64.6666666667%!important}.col-8{float:left;box-sizing:border-box;width:65.3333333334%;margin-left:4%}.col-8:first-child{margin-left:0}.col-no-margin-8{float:left;box-sizing:border-box;width:66.6666666667%;margin:0}.col-offset-8:first-child{margin-left:69.3333333334%!important}.col-offset-8:not(first-child){margin-left:73.3333333334%!important}.col-9{float:left;box-sizing:border-box;width:74%;margin-left:4%}.col-9:first-child{margin-left:0}.col-no-margin-9{float:left;box-sizing:border-box;width:75%;margin:0}.col-offset-9:first-child{margin-left:78%!important}.col-offset-9:not(first-child){margin-left:82%!important}.col-10{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-10:first-child{margin-left:0}.col-no-margin-10{float:left;box-sizing:border-box;width:83.3333333333%;margin:0}.col-offset-10:first-child{margin-left:86.6666666667%!important}.col-offset-10:not(first-child){margin-left:90.6666666667%!important}.col-11{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-11:first-child{margin-left:0}.col-no-margin-11{float:left;box-sizing:border-box;width:91.6666666667%;margin:0}.col-offset-11:first-child{margin-left:95.3333333334%!important}.col-offset-11:not(first-child){margin-left:99.3333333334%!important}.col-12{float:left;box-sizing:border-box;width:100%}.col-12,.col-12:first-child{margin-left:0}.col-no-margin-12{float:left;box-sizing:border-box;width:100%;margin:0}@media screen and (max-width:calc(769px - 1px)){.col-s-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-s-1:first-child{margin-left:0}.col-offset-s-1{margin-left:8.6666666667%}.col-no-margin-s-1{width:8.3333333333%}.col-no-margin-s-1,.col-s-2{float:left;box-sizing:border-box}.col-s-2{width:13.3333333333%;margin-left:4%}.col-s-2:first-child{margin-left:0}.col-offset-s-2{margin-left:17.3333333333%}.col-no-margin-s-2{width:16.6666666667%}.col-no-margin-s-2,.col-s-3{float:left;box-sizing:border-box}.col-s-3{width:22%;margin-left:4%}.col-s-3:first-child{margin-left:0}.col-offset-s-3{margin-left:26%}.col-no-margin-s-3{width:25%}.col-no-margin-s-3,.col-s-4{float:left;box-sizing:border-box}.col-s-4{width:30.6666666667%;margin-left:4%}.col-s-4:first-child{margin-left:0}.col-offset-s-4{margin-left:34.6666666667%}.col-no-margin-s-4{width:33.3333333333%}.col-no-margin-s-4,.col-s-5{float:left;box-sizing:border-box}.col-s-5{width:39.3333333334%;margin-left:4%}.col-s-5:first-child{margin-left:0}.col-offset-s-5{margin-left:43.3333333334%}.col-no-margin-s-5{width:41.6666666667%}.col-no-margin-s-5,.col-s-6{float:left;box-sizing:border-box}.col-s-6{width:48%;margin-left:4%}.col-s-6:first-child{margin-left:0}.col-offset-s-6{margin-left:52%}.col-no-margin-s-6{width:50%}.col-no-margin-s-6,.col-s-7{float:left;box-sizing:border-box}.col-s-7{width:56.6666666667%;margin-left:4%}.col-s-7:first-child{margin-left:0}.col-offset-s-7{margin-left:60.6666666667%}.col-no-margin-s-7{width:58.3333333333%}.col-no-margin-s-7,.col-s-8{float:left;box-sizing:border-box}.col-s-8{width:65.3333333334%;margin-left:4%}.col-s-8:first-child{margin-left:0}.col-offset-s-8{margin-left:69.3333333334%}.col-no-margin-s-8{width:66.6666666667%}.col-no-margin-s-8,.col-s-9{float:left;box-sizing:border-box}.col-s-9{width:74%;margin-left:4%}.col-s-9:first-child{margin-left:0}.col-offset-s-9{margin-left:78%}.col-no-margin-s-9{width:75%}.col-no-margin-s-9,.col-s-10{float:left;box-sizing:border-box}.col-s-10{width:82.6666666667%;margin-left:4%}.col-s-10:first-child{margin-left:0}.col-offset-s-10{margin-left:86.6666666667%}.col-no-margin-s-10{width:83.3333333333%}.col-no-margin-s-10,.col-s-11{float:left;box-sizing:border-box}.col-s-11{width:91.3333333334%;margin-left:4%}.col-s-11:first-child{margin-left:0}.col-offset-s-11{margin-left:95.3333333334%}.col-no-margin-s-11{width:91.6666666667%}.col-no-margin-s-11,.col-s-12{float:left;box-sizing:border-box}.col-s-12{width:100%}.col-s-12,.col-s-12:first-child{margin-left:0}.col-no-margin-s-12{float:left;box-sizing:border-box;width:100%}.s-hidden{display:none!important}.s-visible{display:block!important}}@media screen and (min-width:769px){.col-m-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-m-1:first-child{margin-left:0}.col-offset-m-1{margin-left:8.6666666667%}.col-no-margin-m-1{width:8.3333333333%}.col-m-2,.col-no-margin-m-1{float:left;box-sizing:border-box}.col-m-2{width:13.3333333333%;margin-left:4%}.col-m-2:first-child{margin-left:0}.col-offset-m-2{margin-left:17.3333333333%}.col-no-margin-m-2{width:16.6666666667%}.col-m-3,.col-no-margin-m-2{float:left;box-sizing:border-box}.col-m-3{width:22%;margin-left:4%}.col-m-3:first-child{margin-left:0}.col-offset-m-3{margin-left:26%}.col-no-margin-m-3{width:25%}.col-m-4,.col-no-margin-m-3{float:left;box-sizing:border-box}.col-m-4{width:30.6666666667%;margin-left:4%}.col-m-4:first-child{margin-left:0}.col-offset-m-4{margin-left:34.6666666667%}.col-no-margin-m-4{width:33.3333333333%}.col-m-5,.col-no-margin-m-4{float:left;box-sizing:border-box}.col-m-5{width:39.3333333334%;margin-left:4%}.col-m-5:first-child{margin-left:0}.col-offset-m-5{margin-left:43.3333333334%}.col-no-margin-m-5{width:41.6666666667%}.col-m-6,.col-no-margin-m-5{float:left;box-sizing:border-box}.col-m-6{width:48%;margin-left:4%}.col-m-6:first-child{margin-left:0}.col-offset-m-6{margin-left:52%}.col-no-margin-m-6{width:50%}.col-m-7,.col-no-margin-m-6{float:left;box-sizing:border-box}.col-m-7{width:56.6666666667%;margin-left:4%}.col-m-7:first-child{margin-left:0}.col-offset-m-7{margin-left:60.6666666667%}.col-no-margin-m-7{width:58.3333333333%}.col-m-8,.col-no-margin-m-7{float:left;box-sizing:border-box}.col-m-8{width:65.3333333334%;margin-left:4%}.col-m-8:first-child{margin-left:0}.col-offset-m-8{margin-left:69.3333333334%}.col-no-margin-m-8{width:66.6666666667%}.col-m-9,.col-no-margin-m-8{float:left;box-sizing:border-box}.col-m-9{width:74%;margin-left:4%}.col-m-9:first-child{margin-left:0}.col-offset-m-9{margin-left:78%}.col-no-margin-m-9{width:75%}.col-m-10,.col-no-margin-m-9{float:left;box-sizing:border-box}.col-m-10{width:82.6666666667%;margin-left:4%}.col-m-10:first-child{margin-left:0}.col-offset-m-10{margin-left:86.6666666667%}.col-no-margin-m-10{width:83.3333333333%}.col-m-11,.col-no-margin-m-10{float:left;box-sizing:border-box}.col-m-11{width:91.3333333334%;margin-left:4%}.col-m-11:first-child{margin-left:0}.col-offset-m-11{margin-left:95.3333333334%}.col-no-margin-m-11{width:91.6666666667%}.col-m-12,.col-no-margin-m-11{float:left;box-sizing:border-box}.col-m-12{width:100%}.col-m-12,.col-m-12:first-child{margin-left:0}.col-no-margin-m-12{float:left;box-sizing:border-box;width:100%}.m-hidden{display:none!important}.m-visible{display:block!important}}@media screen and (min-width:1024px){.col-l-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-l-1:first-child{margin-left:0}.col-offset-l-1{margin-left:8.6666666667%}.col-no-margin-l-1{width:8.3333333333%}.col-l-2,.col-no-margin-l-1{float:left;box-sizing:border-box}.col-l-2{width:13.3333333333%;margin-left:4%}.col-l-2:first-child{margin-left:0}.col-offset-l-2{margin-left:17.3333333333%}.col-no-margin-l-2{width:16.6666666667%}.col-l-3,.col-no-margin-l-2{float:left;box-sizing:border-box}.col-l-3{width:22%;margin-left:4%}.col-l-3:first-child{margin-left:0}.col-offset-l-3{margin-left:26%}.col-no-margin-l-3{width:25%}.col-l-4,.col-no-margin-l-3{float:left;box-sizing:border-box}.col-l-4{width:30.6666666667%;margin-left:4%}.col-l-4:first-child{margin-left:0}.col-offset-l-4{margin-left:34.6666666667%}.col-no-margin-l-4{width:33.3333333333%}.col-l-5,.col-no-margin-l-4{float:left;box-sizing:border-box}.col-l-5{width:39.3333333334%;margin-left:4%}.col-l-5:first-child{margin-left:0}.col-offset-l-5{margin-left:43.3333333334%}.col-no-margin-l-5{width:41.6666666667%}.col-l-6,.col-no-margin-l-5{float:left;box-sizing:border-box}.col-l-6{width:48%;margin-left:4%}.col-l-6:first-child{margin-left:0}.col-offset-l-6{margin-left:52%}.col-no-margin-l-6{width:50%}.col-l-7,.col-no-margin-l-6{float:left;box-sizing:border-box}.col-l-7{width:56.6666666667%;margin-left:4%}.col-l-7:first-child{margin-left:0}.col-offset-l-7{margin-left:60.6666666667%}.col-no-margin-l-7{width:58.3333333333%}.col-l-8,.col-no-margin-l-7{float:left;box-sizing:border-box}.col-l-8{width:65.3333333334%;margin-left:4%}.col-l-8:first-child{margin-left:0}.col-offset-l-8{margin-left:69.3333333334%}.col-no-margin-l-8{width:66.6666666667%}.col-l-9,.col-no-margin-l-8{float:left;box-sizing:border-box}.col-l-9{width:74%;margin-left:4%}.col-l-9:first-child{margin-left:0}.col-offset-l-9{margin-left:78%}.col-no-margin-l-9{width:75%}.col-l-10,.col-no-margin-l-9{float:left;box-sizing:border-box}.col-l-10{width:82.6666666667%;margin-left:4%}.col-l-10:first-child{margin-left:0}.col-offset-l-10{margin-left:86.6666666667%}.col-no-margin-l-10{width:83.3333333333%}.col-l-11,.col-no-margin-l-10{float:left;box-sizing:border-box}.col-l-11{width:91.3333333334%;margin-left:4%}.col-l-11:first-child{margin-left:0}.col-offset-l-11{margin-left:95.3333333334%}.col-no-margin-l-11{width:91.6666666667%}.col-l-12,.col-no-margin-l-11{float:left;box-sizing:border-box}.col-l-12{width:100%}.col-l-12,.col-l-12:first-child{margin-left:0}.col-no-margin-l-12{float:left;box-sizing:border-box;width:100%}.l-hidden{display:none!important}.l-visible{display:block!important}}@media screen and (min-width:1216px){.col-xl-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xl-1:first-child{margin-left:0}.col-offset-xl-1{margin-left:8.6666666667%}.col-no-margin-xl-1{width:8.3333333333%}.col-no-margin-xl-1,.col-xl-2{float:left;box-sizing:border-box}.col-xl-2{width:13.3333333333%;margin-left:4%}.col-xl-2:first-child{margin-left:0}.col-offset-xl-2{margin-left:17.3333333333%}.col-no-margin-xl-2{width:16.6666666667%}.col-no-margin-xl-2,.col-xl-3{float:left;box-sizing:border-box}.col-xl-3{width:22%;margin-left:4%}.col-xl-3:first-child{margin-left:0}.col-offset-xl-3{margin-left:26%}.col-no-margin-xl-3{width:25%}.col-no-margin-xl-3,.col-xl-4{float:left;box-sizing:border-box}.col-xl-4{width:30.6666666667%;margin-left:4%}.col-xl-4:first-child{margin-left:0}.col-offset-xl-4{margin-left:34.6666666667%}.col-no-margin-xl-4{width:33.3333333333%}.col-no-margin-xl-4,.col-xl-5{float:left;box-sizing:border-box}.col-xl-5{width:39.3333333334%;margin-left:4%}.col-xl-5:first-child{margin-left:0}.col-offset-xl-5{margin-left:43.3333333334%}.col-no-margin-xl-5{width:41.6666666667%}.col-no-margin-xl-5,.col-xl-6{float:left;box-sizing:border-box}.col-xl-6{width:48%;margin-left:4%}.col-xl-6:first-child{margin-left:0}.col-offset-xl-6{margin-left:52%}.col-no-margin-xl-6{width:50%}.col-no-margin-xl-6,.col-xl-7{float:left;box-sizing:border-box}.col-xl-7{width:56.6666666667%;margin-left:4%}.col-xl-7:first-child{margin-left:0}.col-offset-xl-7{margin-left:60.6666666667%}.col-no-margin-xl-7{width:58.3333333333%}.col-no-margin-xl-7,.col-xl-8{float:left;box-sizing:border-box}.col-xl-8{width:65.3333333334%;margin-left:4%}.col-xl-8:first-child{margin-left:0}.col-offset-xl-8{margin-left:69.3333333334%}.col-no-margin-xl-8{width:66.6666666667%}.col-no-margin-xl-8,.col-xl-9{float:left;box-sizing:border-box}.col-xl-9{width:74%;margin-left:4%}.col-xl-9:first-child{margin-left:0}.col-offset-xl-9{margin-left:78%}.col-no-margin-xl-9{width:75%}.col-no-margin-xl-9,.col-xl-10{float:left;box-sizing:border-box}.col-xl-10{width:82.6666666667%;margin-left:4%}.col-xl-10:first-child{margin-left:0}.col-offset-xl-10{margin-left:86.6666666667%}.col-no-margin-xl-10{width:83.3333333333%}.col-no-margin-xl-10,.col-xl-11{float:left;box-sizing:border-box}.col-xl-11{width:91.3333333334%;margin-left:4%}.col-xl-11:first-child{margin-left:0}.col-offset-xl-11{margin-left:95.3333333334%}.col-no-margin-xl-11{width:91.6666666667%}.col-no-margin-xl-11,.col-xl-12{float:left;box-sizing:border-box}.col-xl-12{width:100%}.col-xl-12,.col-xl-12:first-child{margin-left:0}.col-no-margin-xl-12{float:left;box-sizing:border-box;width:100%}.xl-hidden{display:none!important}.xl-visible{display:block!important}}@media screen and (min-width:1408px){.col-xxl-1{float:left;box-sizing:border-box;width:4.6666666667%;margin-left:4%}.col-xxl-1:first-child{margin-left:0}.col-offset-xxl-1{margin-left:8.6666666667%}.col-no-margin-xxl-1{width:8.3333333333%}.col-no-margin-xxl-1,.col-xxl-2{float:left;box-sizing:border-box}.col-xxl-2{width:13.3333333333%;margin-left:4%}.col-xxl-2:first-child{margin-left:0}.col-offset-xxl-2{margin-left:17.3333333333%}.col-no-margin-xxl-2{width:16.6666666667%}.col-no-margin-xxl-2,.col-xxl-3{float:left;box-sizing:border-box}.col-xxl-3{width:22%;margin-left:4%}.col-xxl-3:first-child{margin-left:0}.col-offset-xxl-3{margin-left:26%}.col-no-margin-xxl-3{width:25%}.col-no-margin-xxl-3,.col-xxl-4{float:left;box-sizing:border-box}.col-xxl-4{width:30.6666666667%;margin-left:4%}.col-xxl-4:first-child{margin-left:0}.col-offset-xxl-4{margin-left:34.6666666667%}.col-no-margin-xxl-4{width:33.3333333333%}.col-no-margin-xxl-4,.col-xxl-5{float:left;box-sizing:border-box}.col-xxl-5{width:39.3333333334%;margin-left:4%}.col-xxl-5:first-child{margin-left:0}.col-offset-xxl-5{margin-left:43.3333333334%}.col-no-margin-xxl-5{width:41.6666666667%}.col-no-margin-xxl-5,.col-xxl-6{float:left;box-sizing:border-box}.col-xxl-6{width:48%;margin-left:4%}.col-xxl-6:first-child{margin-left:0}.col-offset-xxl-6{margin-left:52%}.col-no-margin-xxl-6{width:50%}.col-no-margin-xxl-6,.col-xxl-7{float:left;box-sizing:border-box}.col-xxl-7{width:56.6666666667%;margin-left:4%}.col-xxl-7:first-child{margin-left:0}.col-offset-xxl-7{margin-left:60.6666666667%}.col-no-margin-xxl-7{width:58.3333333333%}.col-no-margin-xxl-7,.col-xxl-8{float:left;box-sizing:border-box}.col-xxl-8{width:65.3333333334%;margin-left:4%}.col-xxl-8:first-child{margin-left:0}.col-offset-xxl-8{margin-left:69.3333333334%}.col-no-margin-xxl-8{width:66.6666666667%}.col-no-margin-xxl-8,.col-xxl-9{float:left;box-sizing:border-box}.col-xxl-9{width:74%;margin-left:4%}.col-xxl-9:first-child{margin-left:0}.col-offset-xxl-9{margin-left:78%}.col-no-margin-xxl-9{float:left;box-sizing:border-box;width:75%}.col-xxl-10{float:left;box-sizing:border-box;width:82.6666666667%;margin-left:4%}.col-xxl-10:first-child{margin-left:0}.col-offset-xxl-10{margin-left:86.6666666667%}.col-no-margin-xxl-10{float:left;box-sizing:border-box;width:83.3333333333%}.col-xxl-11{float:left;box-sizing:border-box;width:91.3333333334%;margin-left:4%}.col-xxl-11:first-child{margin-left:0}.col-offset-xxl-11{margin-left:95.3333333334%}.col-no-margin-xxl-11{float:left;box-sizing:border-box;width:91.6666666667%}.col-xxl-12{float:left;box-sizing:border-box;width:100%}.col-xxl-12,.col-xxl-12:first-child{margin-left:0}.col-no-margin-xxl-12{float:left;box-sizing:border-box;width:100%}.xxl-hidden{display:none!important}.xxl-visible{display:block!important}}.vertical-center{display:flex;align-items:center}.horizontal-center{display:flex;justify-content:center;margin-left:auto;margin-right:auto}.pull-right{text-align:right;float:right;justify-content:right}.hidden{display:none!important}.no-content{display:flex;font-size:1.5em;align-items:center;justify-content:center}.btn,.btn-default,button{border:1px solid #ccc;cursor:pointer;padding:.5em 1em;letter-spacing:.05em}.btn-default.btn-primary,.btn-default[type=submit],.btn.btn-primary,.btn[type=submit],button.btn-primary,button[type=submit]{background:#c8ffd0;color:#32b646;border:1px solid #98cfa0}.btn .icon,.btn-default .icon,button .icon{margin-right:.5em}input[type=password],input[type=text]{border:1px solid #ccc;border-radius:1em;padding:.5em}input[type=password]:focus,input[type=text]:focus{border:1px solid #35b870}button,input{outline:none}input[type=text]:hover,textarea:hover{border:1px solid #9cdfb0}ul{margin:0;padding:0;list-style:none}a{cursor:pointer;text-decoration:none}::-webkit-scrollbar{width:.75em}::-webkit-scrollbar-track{background:#e4e4e4;box-shadow:inset 1px 0 3px 0 #a5a2a2}::-webkit-scrollbar-thumb{background:#a5a2a2;border-radius:1em;cursor:pointer}body{scrollbar-width:thin;scrollbar-color:#a5a2a2 #e4e4e4}.input-icon{position:absolute;min-width:.3em;padding:.1em;color:#888}input[type=number],input[type=password],input[type=search],input[type=text]{border:1px solid #ddd;border-radius:.5em;padding:.25em}input[type=number]:hover,input[type=password]:hover,input[type=search]:hover,input[type=text]:hover{border:1px solid rgba(159,180,152,.83)}input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=text]:focus{border:1px solid rgba(127,216,95,.83)}input[type=number].with-icon,input[type=password].with-icon,input[type=search].with-icon,input[type=text].with-icon{padding-left:.3em}input[type=search],input[type=text]{border-radius:1em;padding:.25em .5em}.fade-in{animation-fill-mode:both;animation-name:fadeIn;-webkit-animation-name:fadeIn}.fade-in,.fade-out{animation-duration:.5s;-webkit-animation-duration:.5s}.fade-out{animation-fill-mode:both;animation-name:fadeOut;-webkit-animation-name:fadeOut}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0;display:none}}.fa.fa-kodi:before{background-size:1em 1em;background:url(/static/img/kodi.d18f8d23.svg)}.fa.fa-kodi:before,.fa.fa-plex:before{content:" ";width:1em;height:1em;display:inline-block}.fa.fa-plex:before{background-size:1em 1em;background:url(/static/img/plex.7a4e22a6.svg)}.fa.fa-jellyfin:before{content:" ";background-size:1em 1em;width:1em;height:1em;display:inline-block;background:url(/static/img/jellyfin.7b53a541.svg)}.zigbee-container .info-body .row:nth-child(2n),.zigbee-container .params .row:nth-child(2n){background:#f0f0f0}.zigbee-container .info-body .row:nth-child(odd),.zigbee-container .params .row:nth-child(odd){background:#fff}.zigbee-container .info-body .row,.zigbee-container .view .row{display:flex;align-items:center;border-radius:1em;padding:.3em}.zigbee-container .info-body .row:hover,.zigbee-container .view .row:hover{background:#bef6da}.zigbee-container .info-body .item.selected,.zigbee-container .view .item.selected{box-shadow:0 2px 4px 0 #bbb}.zigbee-container .info-body .item .name.header,.zigbee-container .view .item .name.header{padding:1em!important;cursor:pointer;text-transform:uppercase;letter-spacing:.06em}.zigbee-container .info-body .item .name.header.selected,.zigbee-container .view .item .name.header.selected{border-radius:1.5em;background:#c8ffd0}.zigbee-container .info-body .item .title,.zigbee-container .view .item .title{font-size:1.2em;padding-left:.5em}.zigbee-container .info-body .item .buttons,.zigbee-container .view .item .buttons{margin:0}.zigbee-container .info-body .item:hover,.zigbee-container .view .item:hover{background:#bef6da}.zigbee-container .info-body .item:hover.selected,.zigbee-container .view .item:hover.selected{background:#c8ffd0}.zigbee-container .info-body .item:not(:last-child),.zigbee-container .view .item:not(:last-child){border-bottom:1px solid #ddd}.zigbee-container .info-body .item:first-child,.zigbee-container .view .item:first-child{border-radius:1.5em 1.5em 0 0}.zigbee-container .info-body .item:last-child,.zigbee-container .view .item:last-child{border-radius:0 0 1.5em 1.5em}.zigbee-container .info-body .item .params .section,.zigbee-container .view .item .params .section{padding:1.5em 0 0 0}.zigbee-container .info-body .item .value .param-name,.zigbee-container .view .item .value .param-name{display:inline-block}.zigbee-container .info-body .item .value .param-name .name,.zigbee-container .view .item .value .param-name .name{font-family:monospace;font-size:.8em;text-transform:unset;padding:0}.zigbee-container .info-body .item .value .param-name .name:before,.zigbee-container .view .item .value .param-name .name:before{content:"["}.zigbee-container .info-body .item .value .param-name .name:after,.zigbee-container .view .item .value .param-name .name:after{content:"]"}.zigbee-container .info-body .item .value .param-name .unit,.zigbee-container .view .item .value .param-name .unit{font-size:.8em}.zigbee-container .info-body .item .value .param-name .unit:before,.zigbee-container .view .item .value .param-name .unit:before{content:" [unit: "}.zigbee-container .info-body .item .value .param-name .unit:after,.zigbee-container .view .item .value .param-name .unit:after{content:"]"}.zigbee-container .info-body .item .value .param-value label,.zigbee-container .view .item .value .param-value label{width:90%}.zigbee-container .info-body .item .value .param-value input,.zigbee-container .view .item .value .param-value input{width:100%}.zigbee-container .info-body .item button,.zigbee-container .view .item button{border:0;background:none;padding:0 .5em}.zigbee-container .info-body .item button:hover,.zigbee-container .view .item button:hover{color:#35b870}@media screen and (max-width:769px){.zigbee-container .info-body .item .name-edit,.zigbee-container .view .item .name-edit{justify-content:left}}@media screen and (min-width:769px){.zigbee-container .info-body .item .name-edit,.zigbee-container .view .item .name-edit{justify-content:right}}.zigbee-container .info-body .item .name-edit,.zigbee-container .view .item .name-edit{width:100%;display:inline-flex;align-items:center}.zigbee-container .info-body .item .name-edit form,.zigbee-container .view .item .name-edit form{width:100%;display:inline-flex;align-items:center;justify-content:right;flex-direction:row}.zigbee-container .info-body .item .name-edit .buttons,.zigbee-container .view .item .name-edit .buttons{display:inline-flex;justify-content:right;margin:0 0 0 .5em}.zigbee-container .info-body .item .name-edit form,.zigbee-container .view .item .name-edit form{background:none;padding:0;border:none;box-shadow:none}.zigbee-container .row{display:flex;flex-wrap:wrap}@media screen and (max-width:769px){.zigbee-container .row .param-name{width:100%;font-weight:700}.zigbee-container .row .param-value{width:100%;margin-left:1%}}@media screen and (min-width:769px){.zigbee-container .row .param-name{width:40%}.zigbee-container .row .param-value{width:58%;justify-content:right}}.zigbee-container .row .param-name{display:inline-flex;margin-left:1%;vertical-align:top;letter-spacing:.04em}.zigbee-container .row .param-value{display:inline-flex;align-items:center}.zigbee-container .row .param-value .value-edit{display:flex;align-items:center}.zigbee-container .row .param-value .value-data{display:inline-block;font-weight:700}.zigbee-container .row .param-value .slider-container{display:flex;align-items:center}.zigbee-container .row .param-value .unit{font-size:.8em;margin-left:1em;display:inline}.zigbee-container .row .param-value select{width:100%}.zigbee-container .row .param-value .numeric input.slider{text-align:left}.zigbee-container .row .param-value .numeric input[type=text]{text-align:right;width:100%}.zigbee-container .row .param-value .numeric .row,.zigbee-container .row .param-value .numeric .row:hover{background:none}.zigbee-container .row .param-value .numeric .value-max,.zigbee-container .row .param-value .numeric .value-min{width:50%;font-size:.85em;opacity:.75}.zigbee-container .row .param-value .numeric .value-min{text-align:left}.zigbee-container .row .param-value .numeric .value-max{text-align:right}.zigbee-container select{width:100%}.zigbee-container{width:100%;height:100%;padding:0;display:flex;flex-direction:column;align-items:center;overflow:auto}.zigbee-container .no-items{padding:2em;font-size:1.5em;color:#555;display:flex;align-items:center;justify-content:center}.zigbee-container .view-options{display:flex;width:100%;height:3.5em;justify-content:space-between;align-items:center;padding:0;background:#f9fafa;border-bottom:1px solid #ddd;box-shadow:0 3px 2px -1px silver}.zigbee-container .view-options .view-selector{display:inline-flex;padding-left:.5em}.zigbee-container .view-options .view-selector label{width:100%}.zigbee-container .view-options .buttons{display:inline-flex;margin:0}.zigbee-container .view-options .buttons button{background:none;border:none;padding:0 .75em}.zigbee-container .view-options .buttons button:hover{color:#35b870}.zigbee-container .view-options .buttons .dropdown .item{padding:.5em 2em .5em .5em}.zigbee-container .view-container{width:100%;height:calc(100% - 3.5em);display:flex;justify-content:center;overflow:auto}.zigbee-container .view{height:-moz-max-content;height:max-content;background:#fff;border:1px solid #d8d8d8;box-shadow:1px 2px 2px #ccc}@media screen and (max-width:769px){.zigbee-container .view{width:100%}}@media screen and (min-width:769px){.zigbee-container .view{width:100%}}@media screen and (min-width:1024px){.zigbee-container .view{min-width:400pt;max-width:750pt;border-radius:1.5em}.zigbee-container .view-container{padding-top:2em}}.zigbee-container .params{background:#fff;padding-bottom:1em}.zigbee-container .params .section{display:flex;flex-direction:column;padding:0 1em}.zigbee-container .params .section:not(:first-child){padding-top:1em}.zigbee-container .params .section .header{display:flex;align-items:center;font-weight:700;border-bottom:1px solid #e8e8e8}.zigbee-container .btn-value-name-edit{padding:0}.zigbee-container .modal .section .header{background:none;padding:.5em 0}.zigbee-container .modal .section .body{padding:0}.zigbee-container .modal .network-info{min-width:600pt}.zigbee-container .error{color:#a00}.zigbee-container .device .actions .row,.zigbee-container .group .actions .row{cursor:pointer}.zigbee-container .device form,.zigbee-container .group form{margin-bottom:0}.zigbee-container .device .param-value input[type=text],.zigbee-container .group .param-value input[type=text]{text-align:right}.zigbee-container .info-body{margin:-2em;padding:0}.zigbee-container .info-body .row{padding:1em .5em}.zigbee-container .info-body .row .param-name{font-weight:700}@media screen and (max-width:769px){.zigbee-container .info-body{width:100vw}}@media screen and (min-width:769px){.zigbee-container .info-body{width:80vw}}@media screen and (min-width:1024px){.zigbee-container .info-body{width:60vw;max-width:30em}} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js b/platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js deleted file mode 100644 index d2dcce612..000000000 --- a/platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1155,3499],{634:function(e,t,n){n.d(t,{N:function(){return l}});var a=n(9584);n(1703);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n.5?u/(2-i-o):u/(i+o),i){case e:a=(t-n)/u+(ts&&l>u&&l>1?(u/=l,s/=l,l=1):u>s&&u>l&&u>1?(l/=u,s/=u,u=1):s>l&&s>u&&s>1&&(l/=s,u/=s,s=1),l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,s=s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055,l=Math.round(255*l),u=Math.round(255*u),s=Math.round(255*s),isNaN(l)&&(l=0),isNaN(u)&&(u=0),isNaN(s)&&(s=0),[l,u,s].map((function(e){return Math.min(Math.max(0,e),255)}))}},{key:"rgbToXY",value:function(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var a=.664511*e+.154324*t+.162028*n,r=.283881*e+.668433*t+.047685*n,i=88e-6*e+.07231*t+.986039*n,o=parseFloat((a/(a+r+i)).toFixed(4)),l=parseFloat((r/(a+r+i)).toFixed(4));return isNaN(o)&&(o=0),isNaN(l)&&(l=0),[o,l]}},{key:"rgbToBri",value:function(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}},{key:"getRGB",value:function(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}},{key:"getXY",value:function(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}},{key:"toRGB",value:function(e){var t=this.getRGB(e);if(t)return t;var n=this.getXY(e);return n&&e.bri?this.xyToRgb.apply(this,(0,a.Z)(n).concat([e.bri])):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}},{key:"toXY",value:function(e){var t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];var n=this.getRGB(e);if(n)return this.rgbToXY.apply(this,(0,a.Z)(n));if(e.hue&&e.sat&&e.bri){var r=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY.apply(this,(0,a.Z)(r))}console.debug("Could not determine color space"),console.debug(e)}},{key:"toHSL",value:function(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];var t=this.getRGB(e);if(t)return this.rgbToHsl.apply(this,(0,a.Z)(t));var n=this.getXY(e);if(n&&e.bri){var r=this.xyToRgb.apply(this,(0,a.Z)(n).concat([e.bri]));return this.rgbToHsl.apply(this,(0,a.Z)(r))}console.debug("Could not determine color space"),console.debug(e)}},{key:"hexToRgb",value:function(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((function(e){return parseInt(e,16)}))}},{key:"rgbToHex",value:function(e){return"#"+e.map((function(e){var t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}]),e}()},376:function(e,t,n){n.d(t,{Z:function(){return b}});var a=n(6252),r=n(9963),i=n(3577),o={class:"slider-wrapper"},l=["min","max","step","disabled","value"],u={class:"track"},s={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},p=["textContent"];function h(e,t,n,h,d,v){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:"slider",type:"range",ref:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,onInput:t[0]||(t[0]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"])),onChange:t[1]||(t[1]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"])),onMouseup:t[2]||(t[2]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"])),onMousedown:t[3]||(t[3]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"])),onTouchstart:t[4]||(t[4]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"])),onTouchend:t[5]||(t[5]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"])),onKeyup:t[6]||(t[6]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"])),onKeydown:t[7]||(t[7]=(0,r.iM)((function(){return v.onUpdate&&v.onUpdate.apply(v,arguments)}),["stop"]))},null,40,l),(0,a._)("div",u,[(0,a._)("div",s,null,512)]),(0,a._)("div",c,null,512),n.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,i.zw)(n.value)},null,8,p)):(0,a.kq)("",!0)])}var d=n(4648),v=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,d.Z)((0,d.Z)({},e),{},{target:(0,d.Z)((0,d.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left="".concat(t,"%"),this.$refs.thumb.style.transform="translate(-".concat(t,"%, -50%)"),this.$refs.track.style.width="".concat(t,"%")}},mounted:function(){null!=this.value&&this.update(this.value)}}),g=n(3744);const f=(0,g.Z)(v,[["render",h],["__scopeId","data-v-95edc28a"]]);var b=f},6:function(e,t,n){n.d(t,{Z:function(){return v}});var a=n(6252),r=n(3577),i=n(9963),o=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},l=["checked"],u=o((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),s={class:"label"};function c(e,t,n,o,c,p){return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,i.iM)((function(){return p.onInput&&p.onInput.apply(p,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,l),(0,a._)("label",null,[u,(0,a._)("span",s,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var p={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},h=n(3744);const d=(0,h.Z)(p,[["render",c],["__scopeId","data-v-a6396ae8"]]);var v=d},3499:function(e,t,n){n.r(t),n.d(t,{default:function(){return v}});var a=n(6252),r=n(3577),i=n(3540),o={key:0,src:i,class:"loading"},l={key:1,class:"fas fa-circle-exclamation error"};function u(e,t,n,i,u,s){var c=(0,a.up)("Icon");return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["entity-icon-container",{"with-color-fill":!!s.colorFill}]),style:(0,r.j5)(s.colorFillStyle)},[n.loading?((0,a.wg)(),(0,a.iD)("img",o)):n.error?((0,a.wg)(),(0,a.iD)("i",l)):((0,a.wg)(),(0,a.j4)(c,(0,r.vs)((0,a.dG)({key:2},s.computedIcon)),null,16))],6)}var s=n(4648),c=(n(7042),n(1478)),p={name:"EntityIcon",components:{Icon:c.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data:function(){return{component:null,modalVisible:!1}},computed:{colorFill:function(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle:function(){return this.colorFill?{background:this.colorFill}:{}},computedIcon:function(){var e=(0,s.Z)({},this.icon);return this.colorFill&&delete e.color,e},type:function(){var e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},h=n(3744);const d=(0,h.Z)(p,[["render",u],["__scopeId","data-v-6f83c443"]]);var v=d},1155:function(e,t,n){n.r(t),n.d(t,{default:function(){return L}});n(8309);var a=n(6252),r=n(3577),i=n(9963),o=function(e){return(0,a.dD)("data-v-18a5dc7b"),e=e(),(0,a.Cn)(),e},l={class:"entity light-container"},u={class:"col-1 icon"},s={class:"col-s-8 col-m-9 label"},c=["textContent"],p={class:"col-s-3 col-m-2 buttons pull-right"},h={key:0,class:"row"},d=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-palette"})],-1)})),v={class:"input"},g=["value"],f={key:1,class:"row"},b=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-sun"})],-1)})),m={class:"input"},y={key:2,class:"row"},_=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-droplet"})],-1)})),w={class:"input"},x={key:3,class:"row"},k=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-temperature-half"})],-1)})),C={class:"input"};function M(e,t,n,o,M,T){var Z=(0,a.up)("EntityIcon"),I=(0,a.up)("ToggleSwitch"),R=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)("div",l,[(0,a._)("div",{class:(0,r.C_)(["head",{expanded:M.expanded}])},[(0,a._)("div",u,[(0,a.Wm)(Z,{icon:T.icon,hasColorFill:!0,loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,a._)("div",s,[(0,a._)("div",{class:"name",textContent:(0,r.zw)(e.value.name)},null,8,c)]),(0,a._)("div",p,[(0,a.Wm)(I,{value:e.value.on,onInput:T.toggle,onClick:t[0]||(t[0]=(0,i.iM)((function(){}),["stop"])),disabled:e.loading||e.value.is_read_only},null,8,["value","onInput","disabled"]),(0,a._)("button",{onClick:t[1]||(t[1]=(0,i.iM)((function(e){return M.expanded=!M.expanded}),["stop"]))},[(0,a._)("i",{class:(0,r.C_)(["fas",{"fa-angle-up":M.expanded,"fa-angle-down":!M.expanded}])},null,2)])])],2),M.expanded?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"body",onClick:t[6]||(t[6]=(0,i.iM)((function(){return T.prevent&&T.prevent.apply(T,arguments)}),["stop"]))},[T.cssColor?((0,a.wg)(),(0,a.iD)("div",h,[d,(0,a._)("div",v,[(0,a._)("input",{type:"color",value:T.cssColor,onChange:t[2]||(t[2]=function(e){return T.setLight({color:e.target.value})})},null,40,g)])])):(0,a.kq)("",!0),e.value.brightness?((0,a.wg)(),(0,a.iD)("div",f,[b,(0,a._)("div",m,[(0,a.Wm)(R,{range:[e.value.brightness_min,e.value.brightness_max],value:e.value.brightness,onInput:t[3]||(t[3]=function(e){return T.setLight({brightness:e.target.value})})},null,8,["range","value"])])])):(0,a.kq)("",!0),e.value.saturation?((0,a.wg)(),(0,a.iD)("div",y,[_,(0,a._)("div",w,[(0,a.Wm)(R,{range:[e.value.saturation_min,e.value.saturation_max],value:e.value.saturation,onInput:t[4]||(t[4]=function(e){return T.setLight({saturation:e.target.value})})},null,8,["range","value"])])])):(0,a.kq)("",!0),e.value.temperature?((0,a.wg)(),(0,a.iD)("div",x,[k,(0,a._)("div",C,[(0,a.Wm)(R,{range:[e.value.temperature_min,e.value.temperature_max],value:e.value.temperature,onInput:t[5]||(t[5]=function(e){return T.setLight({temperature:e.target.value})})},null,8,["range","value"])])])):(0,a.kq)("",!0)])):(0,a.kq)("",!0)])}var T=n(6084),Z=n(9584),I=n(8534),R=n(4648),U=(n(5666),n(376)),F=n(6),D=n(7909),N=n(3499),B=n(634),S={name:"Light",components:{ToggleSwitch:F.Z,Slider:U.Z,EntityIcon:N["default"]},mixins:[D["default"]],data:function(){return{expanded:!1,colorConverter:null}},computed:{rgbColor:function(){var e,t;return null!==(e=this.value.meta)&&void 0!==e&&null!==(t=e.icon)&&void 0!==t&&t.color?this.value.meta.icon.color:this.colorConverter&&(null!=this.value.hue||null!=this.value.x&&null!=this.value.y)?this.value.x&&this.value.y?this.colorConverter.xyToRgb(this.value.x,this.value.y,this.value.brightness):this.colorConverter.hslToRgb(this.value.hue,this.value.saturation,this.value.brightness):void 0},cssColor:function(){var e=this.rgbColor;return e?this.colorConverter.rgbToHex(e):null},icon:function(){var e,t=(0,R.Z)({},(null===(e=this.value.meta)||void 0===e?void 0:e.icon)||{});return!t.color&&this.cssColor&&(t.color=this.cssColor),t}},methods:{prevent:function(e){return e.stopPropagation(),!1},toggle:function(e){var t=this;return(0,I.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.stopPropagation(),t.$emit("loading",!0),n.prev=2,n.next=5,t.request("entities.execute",{id:t.value.id,action:"toggle"});case 5:return n.prev=5,t.$emit("loading",!1),n.finish(5);case 8:case"end":return n.stop()}}),n,null,[[2,,5,8]])})))()},setLight:function(e){var t=this;return(0,I.Z)(regeneratorRuntime.mark((function n(){var a,r,i,o,l;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.color&&(a=t.colorConverter.hexToRgb(e.color),null!=t.value.x&&null!=t.value.y?(e.xy=(r=t.colorConverter).rgbToXY.apply(r,(0,Z.Z)(a)),delete e.color):null!=t.value.hue&&(o=(i=t.colorConverter).rgbToHsl.apply(i,(0,Z.Z)(a)),l=(0,T.Z)(o,3),e.hue=l[0],e.saturation=l[1],e.brightness=l[2],delete e.color)),t.execute({type:"request",action:t.value.plugin+".set_lights",args:(0,R.Z)({lights:[t.value.external_id]},e)});case 2:case"end":return n.stop()}}),n)})))()}},mounted:function(){var e={};this.value.hue&&(e.hue=[this.value.hue_min,this.value.hue_max]),this.value.saturation&&(e.sat=[this.value.saturation_min,this.value.saturation_max]),this.value.brightness&&(e.bri=[this.value.brightness_min,this.value.brightness_max]),this.value.temperature&&(e.ct=[this.value.temperature_min,this.value.temperature_max]),this.colorConverter=new B.N(e)}},q=n(3744);const z=(0,q.Z)(S,[["render",M],["__scopeId","data-v-18a5dc7b"]]);var L=z},3540:function(e,t,n){e.exports=n.p+"static/img/spinner.c0bee445.gif"}}]); -//# sourceMappingURL=1155-legacy.179db4ca.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js.map b/platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js.map deleted file mode 100644 index ef7ebde87..000000000 --- a/platypush/backend/http/webapp/dist/static/js/1155-legacy.179db4ca.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/1155-legacy.179db4ca.js","mappings":"4KAAe,SAASA,EAAgBC,EAAUC,GAChD,KAAMD,aAAoBC,GACxB,MAAM,IAAIC,UAAU,oCAEvB,CCJD,SAASC,EAAkBC,EAAQC,GACjC,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CACrC,IAAIE,EAAaH,EAAMC,GACvBE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B,GAAO,8JAChBA,EAAMtH,QACFwB,EAAM,EAAKsF,eAAeS,SAASD,EAAMtH,OAC3B,MAAhB,EAAK4C,MAAMzD,GAA6B,MAAhB,EAAKyD,MAAMpC,GACrC8G,EAAM7F,IAAK,IAAKqF,gBAAe9E,QAApB,gBAA+BR,WACnC8F,EAAMtH,OACc,MAAlB,EAAK4C,MAAM/D,MAAa,GACiB,IAAKiI,gBAAevF,SAApB,gBAAgCC,IADjD,eAChC8F,EAAMzI,IAD0B,KACrByI,EAAMnB,WADe,KACHmB,EAAM7G,WADH,YAE1B6G,EAAMtH,QAIjB,EAAKwH,QAAQ,CACXhF,KAAM,UACN6E,OAAQ,EAAKzE,MAAM6E,OAAS,cAC5BC,MAAM,QACJC,OAAQ,CAAC,EAAK/E,MAAMgF,cACjBN,KAjBa,4CAoBrB,GAGHrD,QAjGa,WAkGX,IAAMtF,EAAS,CAAC,EACZC,KAAKgE,MAAM/D,MACbF,EAAOE,IAAM,CAACD,KAAKgE,MAAMiF,QAASjJ,KAAKgE,MAAMkF,UAC3ClJ,KAAKgE,MAAMuD,aACbxH,EAAOG,IAAM,CAACF,KAAKgE,MAAMwD,eAAgBxH,KAAKgE,MAAMyD,iBAClDzH,KAAKgE,MAAMnC,aACb9B,EAAOI,IAAM,CAACH,KAAKgE,MAAMqD,eAAgBrH,KAAKgE,MAAMsD,iBAClDtH,KAAKgE,MAAM0D,cACb3H,EAAOK,GAAK,CAACJ,KAAKgE,MAAM2D,gBAAiB3H,KAAKgE,MAAM4D,kBAEtD5H,KAAKkI,eAAiB,IAAI,IAAenI,EAC1C,G,UC/KH,MAAMuF,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://platypush/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue?8abc","webpack://platypush/./src/components/panels/Entities/Light.vue","webpack://platypush/./src/components/panels/Entities/Light.vue?345c"],"sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EntityIcon.vue?vue&type=template&id=6f83c443&scoped=true\"\nimport script from \"./EntityIcon.vue?vue&type=script&lang=js\"\nexport * from \"./EntityIcon.vue?vue&type=script&lang=js\"\n\nimport \"./EntityIcon.vue?vue&type=style&index=0&id=6f83c443&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f83c443\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Light.vue?vue&type=template&id=18a5dc7b&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=18a5dc7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-18a5dc7b\"]])\n\nexport default __exports__"],"names":["_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","ColorConverter","ranges","this","hue","sat","bri","ct","keys","attr","x","xRange","yRange","h","s","l","normalize","a","Math","min","f","n","k","color","max","round","r","g","b","d","parseInt","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","parseFloat","rgbToHsl","rgb","xy","getRGB","getXY","xyToRgb","hslToRgb","console","debug","rgbToXY","hex","slice","_","toString","join","class","ref","type","range","step","disabled","value","onUpdate","withLabel","name","emits","Number","Boolean","default","Array","methods","event","update","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","src","colorFill","colorFillStyle","loading","error","computedIcon","components","Icon","icon","required","hasColorFill","data","component","modalVisible","computed","entityType","entity","charAt","toUpperCase","expanded","on","toggle","is_read_only","prevent","cssColor","setLight","$event","brightness_min","brightness_max","saturation","saturation_min","saturation_max","temperature","temperature_min","temperature_max","ToggleSwitch","Slider","EntityIcon","mixins","EntityMixin","colorConverter","rgbColor","meta","rgbToHex","stopPropagation","request","id","action","attrs","hexToRgb","execute","plugin","args","lights","external_id","hue_min","hue_max"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386edd.js b/platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386edd.js new file mode 100644 index 000000000..1cb253f71 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386edd.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1155,3499],{634:function(e,t,n){n.d(t,{N:function(){return l}});var a=n(9584);n(1703);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n.5?u/(2-i-o):u/(i+o),i){case e:a=(t-n)/u+(ts&&l>u&&l>1?(u/=l,s/=l,l=1):u>s&&u>l&&u>1?(l/=u,s/=u,u=1):s>l&&s>u&&s>1&&(l/=s,u/=s,s=1),l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,s=s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055,l=Math.round(255*l),u=Math.round(255*u),s=Math.round(255*s),isNaN(l)&&(l=0),isNaN(u)&&(u=0),isNaN(s)&&(s=0),[l,u,s].map((function(e){return Math.min(Math.max(0,e),255)}))}},{key:"rgbToXY",value:function(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var a=.664511*e+.154324*t+.162028*n,r=.283881*e+.668433*t+.047685*n,i=88e-6*e+.07231*t+.986039*n,o=parseFloat((a/(a+r+i)).toFixed(4)),l=parseFloat((r/(a+r+i)).toFixed(4));return isNaN(o)&&(o=0),isNaN(l)&&(l=0),[o,l]}},{key:"rgbToBri",value:function(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}},{key:"getRGB",value:function(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}},{key:"getXY",value:function(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}},{key:"toRGB",value:function(e){var t=this.getRGB(e);if(t)return t;var n=this.getXY(e);return n&&e.bri?this.xyToRgb.apply(this,(0,a.Z)(n).concat([e.bri])):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}},{key:"toXY",value:function(e){var t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];var n=this.getRGB(e);if(n)return this.rgbToXY.apply(this,(0,a.Z)(n));if(e.hue&&e.sat&&e.bri){var r=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY.apply(this,(0,a.Z)(r))}console.debug("Could not determine color space"),console.debug(e)}},{key:"toHSL",value:function(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];var t=this.getRGB(e);if(t)return this.rgbToHsl.apply(this,(0,a.Z)(t));var n=this.getXY(e);if(n&&e.bri){var r=this.xyToRgb.apply(this,(0,a.Z)(n).concat([e.bri]));return this.rgbToHsl.apply(this,(0,a.Z)(r))}console.debug("Could not determine color space"),console.debug(e)}},{key:"hexToRgb",value:function(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((function(e){return parseInt(e,16)}))}},{key:"rgbToHex",value:function(e){return"#"+e.map((function(e){var t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}]),e}()},8070:function(e,t,n){n.d(t,{Z:function(){return f}});var a=n(6252),r=n(3577),i=n(9963),o={class:"slider-wrapper"},l=["min","max","step","disabled","value"],u={class:"track-inner",ref:"track"},s={class:"thumb",ref:"thumb"},c=["textContent"];function p(e,t,n,p,h,d){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:(0,r.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:t[0]||(t[0]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"])),onChange:t[1]||(t[1]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"])),onMouseup:t[2]||(t[2]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"])),onMousedown:t[3]||(t[3]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"])),onTouchstart:t[4]||(t[4]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"])),onTouchend:t[5]||(t[5]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"])),onKeyup:t[6]||(t[6]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"])),onKeydown:t[7]||(t[7]=(0,i.iM)((function(){return d.onUpdate&&d.onUpdate.apply(d,arguments)}),["stop"]))},null,42,l),(0,a._)("div",{class:(0,r.C_)(["track",{"with-label":n.withLabel}])},[(0,a._)("div",u,null,512)],2),(0,a._)("div",s,null,512),n.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,r.zw)(n.value),ref:"label"},null,8,c)):(0,a.kq)("",!0)])}var h=n(4648),d=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,h.Z)((0,h.Z)({},e),{},{target:(0,h.Z)((0,h.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var t=this.$refs.range.clientWidth,n=(e-this.range[0])/(this.range[1]-this.range[0]),a=n*t,r=this.$refs.thumb;r.style.left="".concat(a-r.clientWidth/2,"px"),this.$refs.thumb.style.transform="translate(-".concat(n,"%, -50%)"),this.$refs.track.style.width="".concat(a,"px")}},mounted:function(){null!=this.value&&this.update(this.value)}}),v=n(3744);const g=(0,v.Z)(d,[["render",p],["__scopeId","data-v-0359812c"]]);var f=g},6:function(e,t,n){n.d(t,{Z:function(){return v}});var a=n(6252),r=n(3577),i=n(9963),o=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},l=["checked"],u=o((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),s={class:"label"};function c(e,t,n,o,c,p){return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,i.iM)((function(){return p.onInput&&p.onInput.apply(p,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,l),(0,a._)("label",null,[u,(0,a._)("span",s,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var p={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},h=n(3744);const d=(0,h.Z)(p,[["render",c],["__scopeId","data-v-a6396ae8"]]);var v=d},3499:function(e,t,n){n.r(t),n.d(t,{default:function(){return v}});var a=n(6252),r=n(3577),i=n(3540),o={key:0,src:i,class:"loading"},l={key:1,class:"fas fa-circle-exclamation error"};function u(e,t,n,i,u,s){var c=(0,a.up)("Icon");return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["entity-icon-container",{"with-color-fill":!!s.colorFill}]),style:(0,r.j5)(s.colorFillStyle)},[n.loading?((0,a.wg)(),(0,a.iD)("img",o)):n.error?((0,a.wg)(),(0,a.iD)("i",l)):((0,a.wg)(),(0,a.j4)(c,(0,r.vs)((0,a.dG)({key:2},s.computedIcon)),null,16))],6)}var s=n(4648),c=(n(7042),n(1478)),p={name:"EntityIcon",components:{Icon:c.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data:function(){return{component:null,modalVisible:!1}},computed:{colorFill:function(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle:function(){return this.colorFill?{background:this.colorFill}:{}},computedIcon:function(){var e=(0,s.Z)({},this.icon);return this.colorFill&&delete e.color,e},type:function(){var e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},h=n(3744);const d=(0,h.Z)(p,[["render",u],["__scopeId","data-v-6f83c443"]]);var v=d},1155:function(e,t,n){n.r(t),n.d(t,{default:function(){return q}});n(8309);var a=n(6252),r=n(3577),i=n(9963),o=function(e){return(0,a.dD)("data-v-18a5dc7b"),e=e(),(0,a.Cn)(),e},l={class:"entity light-container"},u={class:"col-1 icon"},s={class:"col-s-8 col-m-9 label"},c=["textContent"],p={class:"col-s-3 col-m-2 buttons pull-right"},h={key:0,class:"row"},d=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-palette"})],-1)})),v={class:"input"},g=["value"],f={key:1,class:"row"},b=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-sun"})],-1)})),m={class:"input"},y={key:2,class:"row"},_=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-droplet"})],-1)})),w={class:"input"},x={key:3,class:"row"},k=o((function(){return(0,a._)("div",{class:"icon"},[(0,a._)("i",{class:"fas fa-temperature-half"})],-1)})),C={class:"input"};function M(e,t,n,o,M,T){var Z=(0,a.up)("EntityIcon"),I=(0,a.up)("ToggleSwitch"),R=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)("div",l,[(0,a._)("div",{class:(0,r.C_)(["head",{expanded:M.expanded}])},[(0,a._)("div",u,[(0,a.Wm)(Z,{icon:T.icon,hasColorFill:!0,loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,a._)("div",s,[(0,a._)("div",{class:"name",textContent:(0,r.zw)(e.value.name)},null,8,c)]),(0,a._)("div",p,[(0,a.Wm)(I,{value:e.value.on,onInput:T.toggle,onClick:t[0]||(t[0]=(0,i.iM)((function(){}),["stop"])),disabled:e.loading||e.value.is_read_only},null,8,["value","onInput","disabled"]),(0,a._)("button",{onClick:t[1]||(t[1]=(0,i.iM)((function(e){return M.expanded=!M.expanded}),["stop"]))},[(0,a._)("i",{class:(0,r.C_)(["fas",{"fa-angle-up":M.expanded,"fa-angle-down":!M.expanded}])},null,2)])])],2),M.expanded?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"body",onClick:t[6]||(t[6]=(0,i.iM)((function(){return T.prevent&&T.prevent.apply(T,arguments)}),["stop"]))},[T.cssColor?((0,a.wg)(),(0,a.iD)("div",h,[d,(0,a._)("div",v,[(0,a._)("input",{type:"color",value:T.cssColor,onChange:t[2]||(t[2]=function(e){return T.setLight({color:e.target.value})})},null,40,g)])])):(0,a.kq)("",!0),e.value.brightness?((0,a.wg)(),(0,a.iD)("div",f,[b,(0,a._)("div",m,[(0,a.Wm)(R,{range:[e.value.brightness_min,e.value.brightness_max],value:e.value.brightness,onInput:t[3]||(t[3]=function(e){return T.setLight({brightness:e.target.value})})},null,8,["range","value"])])])):(0,a.kq)("",!0),e.value.saturation?((0,a.wg)(),(0,a.iD)("div",y,[_,(0,a._)("div",w,[(0,a.Wm)(R,{range:[e.value.saturation_min,e.value.saturation_max],value:e.value.saturation,onInput:t[4]||(t[4]=function(e){return T.setLight({saturation:e.target.value})})},null,8,["range","value"])])])):(0,a.kq)("",!0),e.value.temperature?((0,a.wg)(),(0,a.iD)("div",x,[k,(0,a._)("div",C,[(0,a.Wm)(R,{range:[e.value.temperature_min,e.value.temperature_max],value:e.value.temperature,onInput:t[5]||(t[5]=function(e){return T.setLight({temperature:e.target.value})})},null,8,["range","value"])])])):(0,a.kq)("",!0)])):(0,a.kq)("",!0)])}var T=n(6084),Z=n(9584),I=n(8534),R=n(4648),U=(n(5666),n(8070)),F=n(6),D=n(7909),N=n(3499),B=n(634),L={name:"Light",components:{ToggleSwitch:F.Z,Slider:U.Z,EntityIcon:N["default"]},mixins:[D["default"]],data:function(){return{expanded:!1,colorConverter:null}},computed:{rgbColor:function(){var e,t;return null!==(e=this.value.meta)&&void 0!==e&&null!==(t=e.icon)&&void 0!==t&&t.color?this.value.meta.icon.color:this.colorConverter&&(null!=this.value.hue||null!=this.value.x&&null!=this.value.y)?this.value.x&&this.value.y?this.colorConverter.xyToRgb(this.value.x,this.value.y,this.value.brightness):this.colorConverter.hslToRgb(this.value.hue,this.value.saturation,this.value.brightness):void 0},cssColor:function(){var e=this.rgbColor;return e?this.colorConverter.rgbToHex(e):null},icon:function(){var e,t=(0,R.Z)({},(null===(e=this.value.meta)||void 0===e?void 0:e.icon)||{});return!t.color&&this.cssColor&&(t.color=this.cssColor),t}},methods:{prevent:function(e){return e.stopPropagation(),!1},toggle:function(e){var t=this;return(0,I.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.stopPropagation(),t.$emit("loading",!0),n.prev=2,n.next=5,t.request("entities.execute",{id:t.value.id,action:"toggle"});case 5:return n.prev=5,t.$emit("loading",!1),n.finish(5);case 8:case"end":return n.stop()}}),n,null,[[2,,5,8]])})))()},setLight:function(e){var t=this;return(0,I.Z)(regeneratorRuntime.mark((function n(){var a,r,i,o,l;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.color&&(a=t.colorConverter.hexToRgb(e.color),null!=t.value.x&&null!=t.value.y?(e.xy=(r=t.colorConverter).rgbToXY.apply(r,(0,Z.Z)(a)),delete e.color):null!=t.value.hue&&(o=(i=t.colorConverter).rgbToHsl.apply(i,(0,Z.Z)(a)),l=(0,T.Z)(o,3),e.hue=l[0],e.saturation=l[1],e.brightness=l[2],delete e.color)),t.execute({type:"request",action:t.value.plugin+".set_lights",args:(0,R.Z)({lights:[t.value.external_id]},e)});case 2:case"end":return n.stop()}}),n)})))()}},mounted:function(){var e={};this.value.hue&&(e.hue=[this.value.hue_min,this.value.hue_max]),this.value.saturation&&(e.sat=[this.value.saturation_min,this.value.saturation_max]),this.value.brightness&&(e.bri=[this.value.brightness_min,this.value.brightness_max]),this.value.temperature&&(e.ct=[this.value.temperature_min,this.value.temperature_max]),this.colorConverter=new B.N(e)}},S=n(3744);const $=(0,S.Z)(L,[["render",M],["__scopeId","data-v-18a5dc7b"]]);var q=$},3540:function(e,t,n){e.exports=n.p+"static/img/spinner.c0bee445.gif"}}]); +//# sourceMappingURL=1155-legacy.3b386edd.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386edd.js.map b/platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386edd.js.map new file mode 100644 index 000000000..f9fe983da --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/1155-legacy.3b386ed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AACH,KAAKiE,MAAMuD,eAAgBxH,KAAKiE,MAAMwD,iBAClDzH,KAAKiE,MAAM4D,cACb9H,EAAOK,GAAK,CAACJ,KAAKiE,MAAM6D,gBAAiB9H,KAAKiE,MAAM8D,kBAEtD/H,KAAKqI,eAAiB,IAAI,IAAetI,EAC1C,G,UC/KH,MAAM0F,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://platypush/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue?8abc","webpack://platypush/./src/components/panels/Entities/Light.vue","webpack://platypush/./src/components/panels/Entities/Light.vue?345c"],"sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EntityIcon.vue?vue&type=template&id=6f83c443&scoped=true\"\nimport script from \"./EntityIcon.vue?vue&type=script&lang=js\"\nexport * from \"./EntityIcon.vue?vue&type=script&lang=js\"\n\nimport \"./EntityIcon.vue?vue&type=style&index=0&id=6f83c443&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f83c443\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Light.vue?vue&type=template&id=18a5dc7b&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=18a5dc7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-18a5dc7b\"]])\n\nexport default __exports__"],"names":["_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","ColorConverter","ranges","this","hue","sat","bri","ct","keys","attr","x","xRange","yRange","h","s","l","normalize","a","Math","min","f","n","k","color","max","round","r","g","b","d","parseInt","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","parseFloat","rgbToHsl","rgb","xy","getRGB","getXY","xyToRgb","hslToRgb","console","debug","rgbToXY","hex","slice","_","toString","join","class","ref","withLabel","type","range","step","disabled","value","onUpdate","name","emits","Number","Boolean","default","Array","methods","event","update","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","src","colorFill","colorFillStyle","loading","error","computedIcon","components","Icon","icon","required","hasColorFill","data","component","modalVisible","computed","entityType","entity","charAt","toUpperCase","expanded","on","toggle","is_read_only","prevent","cssColor","setLight","$event","brightness_min","brightness_max","saturation","saturation_min","saturation_max","temperature","temperature_min","temperature_max","ToggleSwitch","Slider","EntityIcon","mixins","EntityMixin","colorConverter","rgbColor","meta","rgbToHex","stopPropagation","request","id","action","attrs","hexToRgb","execute","plugin","args","lights","external_id","hue_min","hue_max"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js b/platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js deleted file mode 100644 index 276890bb1..000000000 --- a/platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1155,3499],{4212:function(e,t,a){a.d(t,{N:function(){return n}});class n{constructor(e){if(this.ranges={hue:[0,360],sat:[0,100],bri:[0,100],ct:[154,500]},e)for(const t of Object.keys(this.ranges))e[t]&&(this.ranges[t]=e[t])}normalize(e,t,a){return a[0]+(e-t[0])*(a[1]-a[0])/(t[1]-t[0])}hslToRgb(e,t,a){[e,t,a]=[this.normalize(e,this.ranges.hue,[0,360]),this.normalize(t,this.ranges.sat,[0,100]),this.normalize(a,this.ranges.bri,[0,100])],a/=100;const n=t*Math.min(a,1-a)/100,s=t=>{const s=(t+e/30)%12,o=a-n*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*o)};return[s(0),s(8),s(4)]}rgbToHsl(e,t,a){e/=255,t/=255,a/=255;const n=Math.max(e,t,a),s=Math.min(e,t,a);let o,i,l=(n+s)/2;if(n===s)o=i=0;else{const r=n-s;switch(i=l>.5?r/(2-n-s):r/(n+s),n){case e:o=(t-a)/r+(tu&&l>r&&l>1?(r/=l,u/=l,l=1):r>u&&r>l&&r>1?(l/=r,u/=r,r=1):u>l&&u>r&&u>1&&(l/=u,r/=u,u=1),l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,r=r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,l=Math.round(255*l),r=Math.round(255*r),u=Math.round(255*u),isNaN(l)&&(l=0),isNaN(r)&&(r=0),isNaN(u)&&(u=0),[l,r,u].map((e=>Math.min(Math.max(0,e),255)))}rgbToXY(e,t,a){e>1&&(e/=255),t>1&&(t/=255),a>1&&(a/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;const n=.664511*e+.154324*t+.162028*a,s=.283881*e+.668433*t+.047685*a,o=88e-6*e+.07231*t+.986039*a;let i=parseFloat((n/(n+s+o)).toFixed(4)),l=parseFloat((s/(n+s+o)).toFixed(4));return isNaN(i)&&(i=0),isNaN(l)&&(l=0),[i,l]}rgbToBri(e,t,a){return Math.min(2*this.rgbToHsl(e,t,a)[2],this.ranges.bri[1])}getRGB(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}getXY(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}toRGB(e){const t=this.getRGB(e);if(t)return t;const a=this.getXY(e);return a&&e.bri?this.xyToRgb(...a,e.bri):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}toXY(e){const t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];const a=this.getRGB(e);if(a)return this.rgbToXY(...a);if(e.hue&&e.sat&&e.bri){const t=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY(...t)}console.debug("Could not determine color space"),console.debug(e)}toHSL(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];const t=this.getRGB(e);if(t)return this.rgbToHsl(...t);const a=this.getXY(e);if(a&&e.bri){const t=this.xyToRgb(...a,e.bri);return this.rgbToHsl(...t)}console.debug("Could not determine color space"),console.debug(e)}hexToRgb(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((e=>parseInt(e,16)))}rgbToHex(e){return"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}},376:function(e,t,a){a.d(t,{Z:function(){return b}});var n=a(6252),s=a(9963),o=a(3577);const i={class:"slider-wrapper"},l=["min","max","step","disabled","value"],r={class:"track"},u={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},h=["textContent"];function d(e,t,a,d,p,g){return(0,n.wg)(),(0,n.iD)("label",i,[(0,n._)("input",{class:"slider",type:"range",ref:"range",min:a.range[0],max:a.range[1],step:a.step,disabled:a.disabled,value:a.value,onInput:t[0]||(t[0]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,s.iM)(((...e)=>g.onUpdate&&g.onUpdate(...e)),["stop"]))},null,40,l),(0,n._)("div",r,[(0,n._)("div",u,null,512)]),(0,n._)("div",c,null,512),a.withLabel?((0,n.wg)(),(0,n.iD)("span",{key:0,class:"label",textContent:(0,o.zw)(a.value)},null,8,h)):(0,n.kq)("",!0)])}var p={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left=`${t}%`,this.$refs.thumb.style.transform=`translate(-${t}%, -50%)`,this.$refs.track.style.width=`${t}%`}},mounted(){null!=this.value&&this.update(this.value)}},g=a(3744);const v=(0,g.Z)(p,[["render",d],["__scopeId","data-v-95edc28a"]]);var b=v},6:function(e,t,a){a.d(t,{Z:function(){return g}});var n=a(6252),s=a(3577),o=a(9963);const i=e=>((0,n.dD)("data-v-a6396ae8"),e=e(),(0,n.Cn)(),e),l=["checked"],r=i((()=>(0,n._)("div",{class:"switch"},[(0,n._)("div",{class:"dot"})],-1))),u={class:"label"};function c(e,t,a,i,c,h){return(0,n.wg)(),(0,n.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:a.disabled}]),onClick:t[0]||(t[0]=(0,o.iM)(((...e)=>h.onInput&&h.onInput(...e)),["stop"]))},[(0,n._)("input",{type:"checkbox",checked:a.value},null,8,l),(0,n._)("label",null,[r,(0,n._)("span",u,[(0,n.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var h={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},d=a(3744);const p=(0,d.Z)(h,[["render",c],["__scopeId","data-v-a6396ae8"]]);var g=p},3499:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var n=a(6252),s=a(3577),o=a(3540);const i={key:0,src:o,class:"loading"},l={key:1,class:"fas fa-circle-exclamation error"};function r(e,t,a,o,r,u){const c=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,s.C_)(["entity-icon-container",{"with-color-fill":!!u.colorFill}]),style:(0,s.j5)(u.colorFillStyle)},[a.loading?((0,n.wg)(),(0,n.iD)("img",i)):a.error?((0,n.wg)(),(0,n.iD)("i",l)):((0,n.wg)(),(0,n.j4)(c,(0,s.vs)((0,n.dG)({key:2},u.computedIcon)),null,16))],6)}var u=a(1478),c={name:"EntityIcon",components:{Icon:u.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data(){return{component:null,modalVisible:!1}},computed:{colorFill(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle(){return this.colorFill?{background:this.colorFill}:{}},computedIcon(){const e={...this.icon};return this.colorFill&&delete e.color,e},type(){let e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},h=a(3744);const d=(0,h.Z)(c,[["render",r],["__scopeId","data-v-6f83c443"]]);var p=d},1155:function(e,t,a){a.r(t),a.d(t,{default:function(){return $}});var n=a(6252),s=a(3577),o=a(9963);const i=e=>((0,n.dD)("data-v-18a5dc7b"),e=e(),(0,n.Cn)(),e),l={class:"entity light-container"},r={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},c=["textContent"],h={class:"col-s-3 col-m-2 buttons pull-right"},d={key:0,class:"row"},p=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-palette"})],-1))),g={class:"input"},v=["value"],b={key:1,class:"row"},m=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-sun"})],-1))),f={class:"input"},y={key:2,class:"row"},_=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-droplet"})],-1))),x={class:"input"},w={key:3,class:"row"},C=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-temperature-half"})],-1))),k={class:"input"};function M(e,t,a,i,M,T){const I=(0,n.up)("EntityIcon"),U=(0,n.up)("ToggleSwitch"),F=(0,n.up)("Slider");return(0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",{class:(0,s.C_)(["head",{expanded:M.expanded}])},[(0,n._)("div",r,[(0,n.Wm)(I,{icon:T.icon,hasColorFill:!0,loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,n._)("div",u,[(0,n._)("div",{class:"name",textContent:(0,s.zw)(e.value.name)},null,8,c)]),(0,n._)("div",h,[(0,n.Wm)(U,{value:e.value.on,onInput:T.toggle,onClick:t[0]||(t[0]=(0,o.iM)((()=>{}),["stop"])),disabled:e.loading||e.value.is_read_only},null,8,["value","onInput","disabled"]),(0,n._)("button",{onClick:t[1]||(t[1]=(0,o.iM)((e=>M.expanded=!M.expanded),["stop"]))},[(0,n._)("i",{class:(0,s.C_)(["fas",{"fa-angle-up":M.expanded,"fa-angle-down":!M.expanded}])},null,2)])])],2),M.expanded?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"body",onClick:t[6]||(t[6]=(0,o.iM)(((...e)=>T.prevent&&T.prevent(...e)),["stop"]))},[T.cssColor?((0,n.wg)(),(0,n.iD)("div",d,[p,(0,n._)("div",g,[(0,n._)("input",{type:"color",value:T.cssColor,onChange:t[2]||(t[2]=e=>T.setLight({color:e.target.value}))},null,40,v)])])):(0,n.kq)("",!0),e.value.brightness?((0,n.wg)(),(0,n.iD)("div",b,[m,(0,n._)("div",f,[(0,n.Wm)(F,{range:[e.value.brightness_min,e.value.brightness_max],value:e.value.brightness,onInput:t[3]||(t[3]=e=>T.setLight({brightness:e.target.value}))},null,8,["range","value"])])])):(0,n.kq)("",!0),e.value.saturation?((0,n.wg)(),(0,n.iD)("div",y,[_,(0,n._)("div",x,[(0,n.Wm)(F,{range:[e.value.saturation_min,e.value.saturation_max],value:e.value.saturation,onInput:t[4]||(t[4]=e=>T.setLight({saturation:e.target.value}))},null,8,["range","value"])])])):(0,n.kq)("",!0),e.value.temperature?((0,n.wg)(),(0,n.iD)("div",w,[C,(0,n._)("div",k,[(0,n.Wm)(F,{range:[e.value.temperature_min,e.value.temperature_max],value:e.value.temperature,onInput:t[5]||(t[5]=e=>T.setLight({temperature:e.target.value}))},null,8,["range","value"])])])):(0,n.kq)("",!0)])):(0,n.kq)("",!0)])}var T=a(376),I=a(6),U=a(7909),F=a(3499),R=a(4212),D={name:"Light",components:{ToggleSwitch:I.Z,Slider:T.Z,EntityIcon:F["default"]},mixins:[U["default"]],data(){return{expanded:!1,colorConverter:null}},computed:{rgbColor(){return this.value.meta?.icon?.color?this.value.meta.icon.color:this.colorConverter&&(null!=this.value.hue||null!=this.value.x&&null!=this.value.y)?this.value.x&&this.value.y?this.colorConverter.xyToRgb(this.value.x,this.value.y,this.value.brightness):this.colorConverter.hslToRgb(this.value.hue,this.value.saturation,this.value.brightness):void 0},cssColor(){const e=this.rgbColor;return e?this.colorConverter.rgbToHex(e):null},icon(){const e={...this.value.meta?.icon||{}};return!e.color&&this.cssColor&&(e.color=this.cssColor),e}},methods:{prevent(e){return e.stopPropagation(),!1},async toggle(e){e.stopPropagation(),this.$emit("loading",!0);try{await this.request("entities.execute",{id:this.value.id,action:"toggle"})}finally{this.$emit("loading",!1)}},async setLight(e){if(e.color){const t=this.colorConverter.hexToRgb(e.color);null!=this.value.x&&null!=this.value.y?(e.xy=this.colorConverter.rgbToXY(...t),delete e.color):null!=this.value.hue&&([e.hue,e.saturation,e.brightness]=this.colorConverter.rgbToHsl(...t),delete e.color)}this.execute({type:"request",action:this.value.plugin+".set_lights",args:{lights:[this.value.external_id],...e}})}},mounted(){const e={};this.value.hue&&(e.hue=[this.value.hue_min,this.value.hue_max]),this.value.saturation&&(e.sat=[this.value.saturation_min,this.value.saturation_max]),this.value.brightness&&(e.bri=[this.value.brightness_min,this.value.brightness_max]),this.value.temperature&&(e.ct=[this.value.temperature_min,this.value.temperature_max]),this.colorConverter=new R.N(e)}},N=a(3744);const B=(0,N.Z)(D,[["render",M],["__scopeId","data-v-18a5dc7b"]]);var $=B},3540:function(e,t,a){e.exports=a.p+"static/img/spinner.c0bee445.gif"}}]); -//# sourceMappingURL=1155.1d3f7c87.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js.map b/platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js.map deleted file mode 100644 index 7d6e53a46..000000000 --- a/platypush/backend/http/webapp/dist/static/js/1155.1d3f7c87.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/1155.1d3f7c87.js","mappings":"uJAAO,MAAMA,EACTC,YAAYC,GAQR,GAPAC,KAAKD,OAAS,CACVE,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,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ypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue?8abc","webpack://platypush/./src/components/panels/Entities/Light.vue","webpack://platypush/./src/components/panels/Entities/Light.vue?345c"],"sourcesContent":["export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EntityIcon.vue?vue&type=template&id=6f83c443&scoped=true\"\nimport script from \"./EntityIcon.vue?vue&type=script&lang=js\"\nexport * from \"./EntityIcon.vue?vue&type=script&lang=js\"\n\nimport \"./EntityIcon.vue?vue&type=style&index=0&id=6f83c443&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f83c443\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Light.vue?vue&type=template&id=18a5dc7b&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=18a5dc7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-18a5dc7b\"]])\n\nexport default __exports__"],"names":["ColorConverter","constructor","ranges","this","hue","sat","bri","ct","attr","Object","keys","normalize","x","xRange","yRange","hslToRgb","h","s","l","a","Math","min","f","n","k","color","max","round","rgbToHsl","r","g","b","d","parseInt","xyToRgb","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","rgbToXY","parseFloat","rgbToBri","getRGB","rgb","getXY","xy","toRGB","console","debug","toXY","toHSL","hexToRgb","hex","slice","_","rgbToHex","toString","length","join","class","ref","type","range","step","disabled","value","onUpdate","withLabel","name","emits","props","Number","Boolean","default","Array","methods","event","update","target","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","src","colorFill","colorFillStyle","loading","error","computedIcon","components","Icon","icon","required","hasColorFill","data","component","modalVisible","computed","entityType","entity","charAt","toUpperCase","expanded","on","toggle","is_read_only","prevent","cssColor","setLight","$event","brightness_min","brightness_max","saturation","saturation_min","saturation_max","temperature","temperature_min","temperature_max","ToggleSwitch","Slider","EntityIcon","mixins","EntityMixin","colorConverter","rgbColor","meta","stopPropagation","async","request","id","action","attrs","execute","plugin","args","lights","external_id","hue_min","hue_max"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js b/platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js new file mode 100644 index 000000000..cf91200c3 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1155,3499],{4212:function(e,t,a){a.d(t,{N:function(){return n}});class n{constructor(e){if(this.ranges={hue:[0,360],sat:[0,100],bri:[0,100],ct:[154,500]},e)for(const t of Object.keys(this.ranges))e[t]&&(this.ranges[t]=e[t])}normalize(e,t,a){return a[0]+(e-t[0])*(a[1]-a[0])/(t[1]-t[0])}hslToRgb(e,t,a){[e,t,a]=[this.normalize(e,this.ranges.hue,[0,360]),this.normalize(t,this.ranges.sat,[0,100]),this.normalize(a,this.ranges.bri,[0,100])],a/=100;const n=t*Math.min(a,1-a)/100,s=t=>{const s=(t+e/30)%12,o=a-n*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*o)};return[s(0),s(8),s(4)]}rgbToHsl(e,t,a){e/=255,t/=255,a/=255;const n=Math.max(e,t,a),s=Math.min(e,t,a);let o,i,l=(n+s)/2;if(n===s)o=i=0;else{const r=n-s;switch(i=l>.5?r/(2-n-s):r/(n+s),n){case e:o=(t-a)/r+(tu&&l>r&&l>1?(r/=l,u/=l,l=1):r>u&&r>l&&r>1?(l/=r,u/=r,r=1):u>l&&u>r&&u>1&&(l/=u,r/=u,u=1),l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,r=r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,l=Math.round(255*l),r=Math.round(255*r),u=Math.round(255*u),isNaN(l)&&(l=0),isNaN(r)&&(r=0),isNaN(u)&&(u=0),[l,r,u].map((e=>Math.min(Math.max(0,e),255)))}rgbToXY(e,t,a){e>1&&(e/=255),t>1&&(t/=255),a>1&&(a/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;const n=.664511*e+.154324*t+.162028*a,s=.283881*e+.668433*t+.047685*a,o=88e-6*e+.07231*t+.986039*a;let i=parseFloat((n/(n+s+o)).toFixed(4)),l=parseFloat((s/(n+s+o)).toFixed(4));return isNaN(i)&&(i=0),isNaN(l)&&(l=0),[i,l]}rgbToBri(e,t,a){return Math.min(2*this.rgbToHsl(e,t,a)[2],this.ranges.bri[1])}getRGB(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}getXY(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}toRGB(e){const t=this.getRGB(e);if(t)return t;const a=this.getXY(e);return a&&e.bri?this.xyToRgb(...a,e.bri):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}toXY(e){const t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];const a=this.getRGB(e);if(a)return this.rgbToXY(...a);if(e.hue&&e.sat&&e.bri){const t=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY(...t)}console.debug("Could not determine color space"),console.debug(e)}toHSL(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];const t=this.getRGB(e);if(t)return this.rgbToHsl(...t);const a=this.getXY(e);if(a&&e.bri){const t=this.xyToRgb(...a,e.bri);return this.rgbToHsl(...t)}console.debug("Could not determine color space"),console.debug(e)}hexToRgb(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((e=>parseInt(e,16)))}rgbToHex(e){return"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}},8070:function(e,t,a){a.d(t,{Z:function(){return v}});var n=a(6252),s=a(3577),o=a(9963);const i={class:"slider-wrapper"},l=["min","max","step","disabled","value"],r={class:"track-inner",ref:"track"},u={class:"thumb",ref:"thumb"},c=["textContent"];function h(e,t,a,h,d,p){return(0,n.wg)(),(0,n.iD)("label",i,[(0,n._)("input",{class:(0,s.C_)(["slider",{"with-label":a.withLabel}]),type:"range",min:a.range[0],max:a.range[1],step:a.step,disabled:a.disabled,value:a.value,ref:"range",onInput:t[0]||(t[0]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,o.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"]))},null,42,l),(0,n._)("div",{class:(0,s.C_)(["track",{"with-label":a.withLabel}])},[(0,n._)("div",r,null,512)],2),(0,n._)("div",u,null,512),a.withLabel?((0,n.wg)(),(0,n.iD)("span",{key:0,class:"label",textContent:(0,s.zw)(a.value),ref:"label"},null,8,c)):(0,n.kq)("",!0)])}var d={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,a=(e-this.range[0])/(this.range[1]-this.range[0]),n=a*t,s=this.$refs.thumb;s.style.left=n-s.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${a}%, -50%)`,this.$refs.track.style.width=`${n}px`}},mounted(){null!=this.value&&this.update(this.value)}},p=a(3744);const g=(0,p.Z)(d,[["render",h],["__scopeId","data-v-0359812c"]]);var v=g},6:function(e,t,a){a.d(t,{Z:function(){return g}});var n=a(6252),s=a(3577),o=a(9963);const i=e=>((0,n.dD)("data-v-a6396ae8"),e=e(),(0,n.Cn)(),e),l=["checked"],r=i((()=>(0,n._)("div",{class:"switch"},[(0,n._)("div",{class:"dot"})],-1))),u={class:"label"};function c(e,t,a,i,c,h){return(0,n.wg)(),(0,n.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:a.disabled}]),onClick:t[0]||(t[0]=(0,o.iM)(((...e)=>h.onInput&&h.onInput(...e)),["stop"]))},[(0,n._)("input",{type:"checkbox",checked:a.value},null,8,l),(0,n._)("label",null,[r,(0,n._)("span",u,[(0,n.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var h={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},d=a(3744);const p=(0,d.Z)(h,[["render",c],["__scopeId","data-v-a6396ae8"]]);var g=p},3499:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var n=a(6252),s=a(3577),o=a(3540);const i={key:0,src:o,class:"loading"},l={key:1,class:"fas fa-circle-exclamation error"};function r(e,t,a,o,r,u){const c=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,s.C_)(["entity-icon-container",{"with-color-fill":!!u.colorFill}]),style:(0,s.j5)(u.colorFillStyle)},[a.loading?((0,n.wg)(),(0,n.iD)("img",i)):a.error?((0,n.wg)(),(0,n.iD)("i",l)):((0,n.wg)(),(0,n.j4)(c,(0,s.vs)((0,n.dG)({key:2},u.computedIcon)),null,16))],6)}var u=a(1478),c={name:"EntityIcon",components:{Icon:u.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data(){return{component:null,modalVisible:!1}},computed:{colorFill(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle(){return this.colorFill?{background:this.colorFill}:{}},computedIcon(){const e={...this.icon};return this.colorFill&&delete e.color,e},type(){let e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},h=a(3744);const d=(0,h.Z)(c,[["render",r],["__scopeId","data-v-6f83c443"]]);var p=d},1155:function(e,t,a){a.r(t),a.d(t,{default:function(){return $}});var n=a(6252),s=a(3577),o=a(9963);const i=e=>((0,n.dD)("data-v-18a5dc7b"),e=e(),(0,n.Cn)(),e),l={class:"entity light-container"},r={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},c=["textContent"],h={class:"col-s-3 col-m-2 buttons pull-right"},d={key:0,class:"row"},p=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-palette"})],-1))),g={class:"input"},v=["value"],b={key:1,class:"row"},m=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-sun"})],-1))),f={class:"input"},y={key:2,class:"row"},_=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-droplet"})],-1))),x={class:"input"},w={key:3,class:"row"},C=i((()=>(0,n._)("div",{class:"icon"},[(0,n._)("i",{class:"fas fa-temperature-half"})],-1))),k={class:"input"};function M(e,t,a,i,M,T){const I=(0,n.up)("EntityIcon"),U=(0,n.up)("ToggleSwitch"),F=(0,n.up)("Slider");return(0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",{class:(0,s.C_)(["head",{expanded:M.expanded}])},[(0,n._)("div",r,[(0,n.Wm)(I,{icon:T.icon,hasColorFill:!0,loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,n._)("div",u,[(0,n._)("div",{class:"name",textContent:(0,s.zw)(e.value.name)},null,8,c)]),(0,n._)("div",h,[(0,n.Wm)(U,{value:e.value.on,onInput:T.toggle,onClick:t[0]||(t[0]=(0,o.iM)((()=>{}),["stop"])),disabled:e.loading||e.value.is_read_only},null,8,["value","onInput","disabled"]),(0,n._)("button",{onClick:t[1]||(t[1]=(0,o.iM)((e=>M.expanded=!M.expanded),["stop"]))},[(0,n._)("i",{class:(0,s.C_)(["fas",{"fa-angle-up":M.expanded,"fa-angle-down":!M.expanded}])},null,2)])])],2),M.expanded?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"body",onClick:t[6]||(t[6]=(0,o.iM)(((...e)=>T.prevent&&T.prevent(...e)),["stop"]))},[T.cssColor?((0,n.wg)(),(0,n.iD)("div",d,[p,(0,n._)("div",g,[(0,n._)("input",{type:"color",value:T.cssColor,onChange:t[2]||(t[2]=e=>T.setLight({color:e.target.value}))},null,40,v)])])):(0,n.kq)("",!0),e.value.brightness?((0,n.wg)(),(0,n.iD)("div",b,[m,(0,n._)("div",f,[(0,n.Wm)(F,{range:[e.value.brightness_min,e.value.brightness_max],value:e.value.brightness,onInput:t[3]||(t[3]=e=>T.setLight({brightness:e.target.value}))},null,8,["range","value"])])])):(0,n.kq)("",!0),e.value.saturation?((0,n.wg)(),(0,n.iD)("div",y,[_,(0,n._)("div",x,[(0,n.Wm)(F,{range:[e.value.saturation_min,e.value.saturation_max],value:e.value.saturation,onInput:t[4]||(t[4]=e=>T.setLight({saturation:e.target.value}))},null,8,["range","value"])])])):(0,n.kq)("",!0),e.value.temperature?((0,n.wg)(),(0,n.iD)("div",w,[C,(0,n._)("div",k,[(0,n.Wm)(F,{range:[e.value.temperature_min,e.value.temperature_max],value:e.value.temperature,onInput:t[5]||(t[5]=e=>T.setLight({temperature:e.target.value}))},null,8,["range","value"])])])):(0,n.kq)("",!0)])):(0,n.kq)("",!0)])}var T=a(8070),I=a(6),U=a(7909),F=a(3499),R=a(4212),D={name:"Light",components:{ToggleSwitch:I.Z,Slider:T.Z,EntityIcon:F["default"]},mixins:[U["default"]],data(){return{expanded:!1,colorConverter:null}},computed:{rgbColor(){return this.value.meta?.icon?.color?this.value.meta.icon.color:this.colorConverter&&(null!=this.value.hue||null!=this.value.x&&null!=this.value.y)?this.value.x&&this.value.y?this.colorConverter.xyToRgb(this.value.x,this.value.y,this.value.brightness):this.colorConverter.hslToRgb(this.value.hue,this.value.saturation,this.value.brightness):void 0},cssColor(){const e=this.rgbColor;return e?this.colorConverter.rgbToHex(e):null},icon(){const e={...this.value.meta?.icon||{}};return!e.color&&this.cssColor&&(e.color=this.cssColor),e}},methods:{prevent(e){return e.stopPropagation(),!1},async toggle(e){e.stopPropagation(),this.$emit("loading",!0);try{await this.request("entities.execute",{id:this.value.id,action:"toggle"})}finally{this.$emit("loading",!1)}},async setLight(e){if(e.color){const t=this.colorConverter.hexToRgb(e.color);null!=this.value.x&&null!=this.value.y?(e.xy=this.colorConverter.rgbToXY(...t),delete e.color):null!=this.value.hue&&([e.hue,e.saturation,e.brightness]=this.colorConverter.rgbToHsl(...t),delete e.color)}this.execute({type:"request",action:this.value.plugin+".set_lights",args:{lights:[this.value.external_id],...e}})}},mounted(){const e={};this.value.hue&&(e.hue=[this.value.hue_min,this.value.hue_max]),this.value.saturation&&(e.sat=[this.value.saturation_min,this.value.saturation_max]),this.value.brightness&&(e.bri=[this.value.brightness_min,this.value.brightness_max]),this.value.temperature&&(e.ct=[this.value.temperature_min,this.value.temperature_max]),this.colorConverter=new R.N(e)}},N=a(3744);const B=(0,N.Z)(D,[["render",M],["__scopeId","data-v-18a5dc7b"]]);var $=B},3540:function(e,t,a){e.exports=a.p+"static/img/spinner.c0bee445.gif"}}]); +//# sourceMappingURL=1155.ae99e2b9.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js.map b/platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js.map new file mode 100644 index 000000000..2873f6e83 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/1155.ae99e2b9.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1155.ae99e2b9.js","mappings":"uJAAO,MAAMA,EACTC,YAAYC,GAQR,GAPAC,KAAKD,OAAS,CACVE,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,GAAI,CAAC,IAAK,MAGVL,EACA,IAAK,MAAMM,KAAQC,OAAOC,KAAKP,KAAKD,QAC5BA,EAAOM,KACPL,KAAKD,OAAOM,GAAQN,EAAOM,GAC1C,CAEDG,UAAUC,EAAGC,EAAQC,GACjB,OAAOA,EAAO,IAAQF,EAAEC,EAAO,KAAOC,EAAO,GAAGA,EAAO,KAAQD,EAAO,GAAGA,EAAO,GACnF,CAEDE,SAASC,EAAGC,EAAGC,IACVF,EAAGC,EAAGC,GAAK,CACRf,KAAKQ,UAAUK,EAAGb,KAAKD,OAAOE,IAAK,CAAC,EAAG,MACvCD,KAAKQ,UAAUM,EAAGd,KAAKD,OAAOG,IAAK,CAAC,EAAG,MACvCF,KAAKQ,UAAUO,EAAGf,KAAKD,OAAOI,IAAK,CAAC,EAAG,OAG3CY,GAAK,IACL,MAAMC,EAAIF,EAAIG,KAAKC,IAAIH,EAAG,EAAIA,GAAK,IAC7BI,EAAIC,IACN,MAAMC,GAAKD,EAAIP,EAAI,IAAM,GACnBS,EAAQP,EAAIC,EAAIC,KAAKM,IAAIN,KAAKC,IAAIG,EAAI,EAAG,EAAIA,EAAG,IAAK,GAC3D,OAAOJ,KAAKO,MAAM,IAAMF,EAAxB,EAGJ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,MAAMmF,gBACjBL,IAGR,GAGHrD,UACE,MAAMnG,EAAS,CAAC,EACZC,KAAKyE,MAAMxE,MACbF,EAAOE,IAAM,CAACD,KAAKyE,MAAMoF,QAAS7J,KAAKyE,MAAMqF,UAC3C9J,KAAKyE,MAAM2D,aACbrI,EAAOG,IAAM,CAACF,KAAKyE,MAAM4D,eAAgBrI,KAAKyE,MAAM6D,iBAClDtI,KAAKyE,MAAMxC,aACblC,EAAOI,IAAM,CAACH,KAAKyE,MAAMyD,eAAgBlI,KAAKyE,MAAM0D,iBAClDnI,KAAKyE,MAAM8D,cACbxI,EAAOK,GAAK,CAACJ,KAAKyE,MAAM+D,gBAAiBxI,KAAKyE,MAAMgE,kBAEtDzI,KAAK+I,eAAiB,IAAI,IAAehJ,EAC1C,G,UC/KH,MAAMoG,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue?8abc","webpack://platypush/./src/components/panels/Entities/Light.vue","webpack://platypush/./src/components/panels/Entities/Light.vue?345c"],"sourcesContent":["export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EntityIcon.vue?vue&type=template&id=6f83c443&scoped=true\"\nimport script from \"./EntityIcon.vue?vue&type=script&lang=js\"\nexport * from \"./EntityIcon.vue?vue&type=script&lang=js\"\n\nimport \"./EntityIcon.vue?vue&type=style&index=0&id=6f83c443&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f83c443\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Light.vue?vue&type=template&id=18a5dc7b&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=18a5dc7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-18a5dc7b\"]])\n\nexport default __exports__"],"names":["ColorConverter","constructor","ranges","this","hue","sat","bri","ct","attr","Object","keys","normalize","x","xRange","yRange","hslToRgb","h","s","l","a","Math","min","f","n","k","color","max","round","rgbToHsl","r","g","b","d","parseInt","xyToRgb","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","rgbToXY","parseFloat","rgbToBri","getRGB","rgb","getXY","xy","toRGB","console","debug","toXY","toHSL","hexToRgb","hex","slice","_","rgbToHex","toString","length","join","class","ref","withLabel","type","range","step","disabled","value","onUpdate","name","emits","props","Number","Boolean","default","Array","methods","event","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","src","colorFill","colorFillStyle","loading","error","computedIcon","components","Icon","icon","required","hasColorFill","data","component","modalVisible","computed","entityType","entity","charAt","toUpperCase","expanded","on","toggle","is_read_only","prevent","cssColor","setLight","$event","brightness_min","brightness_max","saturation","saturation_min","saturation_max","temperature","temperature_min","temperature_max","ToggleSwitch","Slider","EntityIcon","mixins","EntityMixin","colorConverter","rgbColor","meta","stopPropagation","async","request","id","action","attrs","execute","plugin","args","lights","external_id","hue_min","hue_max"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1406-legacy.49afea8a.js b/platypush/backend/http/webapp/dist/static/js/1406-legacy.49afea8a.js new file mode 100644 index 000000000..b5c767cef --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/1406-legacy.49afea8a.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1406],{634:function(e,t,n){n.d(t,{N:function(){return l}});var o=n(9584);n(1703);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n.5?s/(2-r-a):s/(r+a),r){case e:o=(t-n)/s+(tu&&l>s&&l>1?(s/=l,u/=l,l=1):s>u&&s>l&&s>1?(l/=s,u/=s,s=1):u>l&&u>s&&u>1&&(l/=u,s/=u,u=1),l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,s=s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,l=Math.round(255*l),s=Math.round(255*s),u=Math.round(255*u),isNaN(l)&&(l=0),isNaN(s)&&(s=0),isNaN(u)&&(u=0),[l,s,u].map((function(e){return Math.min(Math.max(0,e),255)}))}},{key:"rgbToXY",value:function(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var o=.664511*e+.154324*t+.162028*n,i=.283881*e+.668433*t+.047685*n,r=88e-6*e+.07231*t+.986039*n,a=parseFloat((o/(o+i+r)).toFixed(4)),l=parseFloat((i/(o+i+r)).toFixed(4));return isNaN(a)&&(a=0),isNaN(l)&&(l=0),[a,l]}},{key:"rgbToBri",value:function(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}},{key:"getRGB",value:function(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}},{key:"getXY",value:function(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}},{key:"toRGB",value:function(e){var t=this.getRGB(e);if(t)return t;var n=this.getXY(e);return n&&e.bri?this.xyToRgb.apply(this,(0,o.Z)(n).concat([e.bri])):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}},{key:"toXY",value:function(e){var t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];var n=this.getRGB(e);if(n)return this.rgbToXY.apply(this,(0,o.Z)(n));if(e.hue&&e.sat&&e.bri){var i=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY.apply(this,(0,o.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"toHSL",value:function(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];var t=this.getRGB(e);if(t)return this.rgbToHsl.apply(this,(0,o.Z)(t));var n=this.getXY(e);if(n&&e.bri){var i=this.xyToRgb.apply(this,(0,o.Z)(n).concat([e.bri]));return this.rgbToHsl.apply(this,(0,o.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"hexToRgb",value:function(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((function(e){return parseInt(e,16)}))}},{key:"rgbToHex",value:function(e){return"#"+e.map((function(e){var t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}]),e}()},8070:function(e,t,n){n.d(t,{Z:function(){return f}});var o=n(6252),i=n(3577),r=n(9963),a={class:"slider-wrapper"},l=["min","max","step","disabled","value"],s={class:"track-inner",ref:"track"},u={class:"thumb",ref:"thumb"},c=["textContent"];function g(e,t,n,g,d,p){return(0,o.wg)(),(0,o.iD)("label",a,[(0,o._)("input",{class:(0,i.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:t[0]||(t[0]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onChange:t[1]||(t[1]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onMouseup:t[2]||(t[2]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onMousedown:t[3]||(t[3]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onTouchstart:t[4]||(t[4]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onTouchend:t[5]||(t[5]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onKeyup:t[6]||(t[6]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onKeydown:t[7]||(t[7]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"]))},null,42,l),(0,o._)("div",{class:(0,i.C_)(["track",{"with-label":n.withLabel}])},[(0,o._)("div",s,null,512)],2),(0,o._)("div",u,null,512),n.withLabel?((0,o.wg)(),(0,o.iD)("span",{key:0,class:"label",textContent:(0,i.zw)(n.value),ref:"label"},null,8,c)):(0,o.kq)("",!0)])}var d=n(4648),p=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,d.Z)((0,d.Z)({},e),{},{target:(0,d.Z)((0,d.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var t=this.$refs.range.clientWidth,n=(e-this.range[0])/(this.range[1]-this.range[0]),o=n*t,i=this.$refs.thumb;i.style.left="".concat(o-i.clientWidth/2,"px"),this.$refs.thumb.style.transform="translate(-".concat(n,"%, -50%)"),this.$refs.track.style.width="".concat(o,"px")}},mounted:function(){null!=this.value&&this.update(this.value)}}),h=n(3744);const v=(0,h.Z)(p,[["render",g],["__scopeId","data-v-0359812c"]]);var f=v},6:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(6252),i=n(3577),r=n(9963),a=function(e){return(0,o.dD)("data-v-a6396ae8"),e=e(),(0,o.Cn)(),e},l=["checked"],s=a((function(){return(0,o._)("div",{class:"switch"},[(0,o._)("div",{class:"dot"})],-1)})),u={class:"label"};function c(e,t,n,a,c,g){return(0,o.wg)(),(0,o.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,r.iM)((function(){return g.onInput&&g.onInput.apply(g,arguments)}),["stop"]))},[(0,o._)("input",{type:"checkbox",checked:n.value},null,8,l),(0,o._)("label",null,[s,(0,o._)("span",u,[(0,o.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var g={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},d=n(3744);const p=(0,d.Z)(g,[["render",c],["__scopeId","data-v-a6396ae8"]]);var h=p},1406:function(e,t,n){n.r(t),n.d(t,{default:function(){return Wt}});n(7941);var o=n(6252),i={class:"plugin lights-plugin"},r={key:0,class:"panel"},a={key:1,class:"panel"};function l(e,t,n,l,s,u){var c=(0,o.up)("Groups"),g=(0,o.up)("Group");return(0,o.wg)(),(0,o.iD)("div",i,[null==s.selectedGroup&&n.groups&&Object.keys(n.groups).length?((0,o.wg)(),(0,o.iD)("div",r,[(0,o.Wm)(c,{groups:n.groups,"loading-groups":n.loadingGroups,"color-converter":n.colorConverter,onSelect:t[0]||(t[0]=function(e){return s.selectedGroup=e}),onToggle:t[1]||(t[1]=function(t){return e.$emit("group-toggle",t)})},null,8,["groups","loading-groups","color-converter"])])):((0,o.wg)(),(0,o.iD)("div",a,[(0,o.Wm)(g,{group:n.groups[s.selectedGroup],lights:u.displayedLights,scenes:u.scenesByGroup[s.selectedGroup],"color-converter":n.colorConverter,animations:u.animationsByGroup[s.selectedGroup],onClose:t[2]||(t[2]=function(e){return s.selectedGroup=null}),onLightToggle:t[3]||(t[3]=function(t){return e.$emit("light-toggle",t)}),onGroupToggle:t[4]||(t[4]=function(t){return e.$emit("group-toggle",t)}),onSetLight:t[5]||(t[5]=function(t){return e.$emit("set-light",t)}),onSetGroup:t[6]||(t[6]=function(t){return e.$emit("set-group",{groupId:s.selectedGroup,value:t})}),onSelectScene:t[7]||(t[7]=function(t){return e.$emit("select-scene",{groupId:s.selectedGroup,sceneId:t})}),onStartAnimation:t[8]||(t[8]=function(t){return e.$emit("start-animation",t)}),onStopAnimation:t[9]||(t[9]=function(t){return e.$emit("stop-animation",t)})},null,8,["group","lights","scenes","color-converter","animations"])]))])}var s=n(4648),u=n(6084),c=(n(9653),n(1539),n(9720),n(4747),n(2479),n(6813)),g={name:"Panel",emits:["mounted"],props:{config:{type:Object,default:function(){}},pluginName:{type:String,required:!0}},data:function(){return{loading:!1}},mounted:function(){this.$emit("mounted",this)}};const d=g;var p=d,h=(n(8309),n(3577)),v=function(e){return(0,o.dD)("data-v-42318a2b"),e=e(),(0,o.Cn)(),e},f={class:"panel-row header"},m=v((function(){return(0,o._)("div",{class:"col-3"},[(0,o._)("i",{class:"icon fas fa-home"})],-1)})),b=v((function(){return(0,o._)("div",{class:"col-6 name"}," Rooms ",-1)})),y={class:"col-3 pull-right"},_=["onClick"],w={class:"name col-9"},k={class:"controls col-3 pull-right"};function C(e,t,n,i,r,a){var l=(0,o.up)("ToggleSwitch"),s=(0,o.up)("MenuPanel");return(0,o.wg)(),(0,o.j4)(s,null,{default:(0,o.w5)((function(){return[(0,o._)("div",f,[m,b,(0,o._)("div",y,[(0,o.Wm)(l,{value:a.anyLightsOn,onInput:t[0]||(t[0]=function(t){return e.$emit("toggle")})},null,8,["value"])])]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(a.groupsSorted,(function(t){return(0,o.wg)(),(0,o.iD)("div",{class:"panel-row row group",key:t.id,onClick:function(n){return e.$emit("select",t.id)}},[(0,o._)("span",w,(0,h.zw)(t.name||"[Group ".concat(t.id,"]")),1),(0,o._)("span",k,[(0,o.Wm)(l,{value:t.state.any_on,disabled:t.id in(n.loadingGroups||{}),onInput:function(n){return e.$emit("toggle",t)}},null,8,["value","disabled","onInput"])])],8,_)})),128))]})),_:1})}n(1249),n(2707);var S={class:"menu-panel"},j={class:"content"};function Z(e,t,n,i,r,a){return(0,o.wg)(),(0,o.iD)("div",S,[(0,o._)("div",j,[(0,o.WI)(e.$slots,"default")])])}var O={name:"MenuPanel"},M=n(3744);const L=(0,M.Z)(O,[["render",Z]]);var D=L,G=n(6),$=n(634),x={name:"Groups",components:{ToggleSwitch:G.Z,MenuPanel:D},emits:["select","toggle"],props:{groups:{type:Object,default:function(){}},loadingGroups:{type:Object,default:function(){}},colorConverter:{type:Object,default:function(){return new $.N}}},computed:{groupsSorted:function(){return Object.entries(this.groups).sort((function(e,t){return e[1].name.localeCompare(t[1].name)})).map((function(e){var t=(0,u.Z)(e,2),n=t[0],o=t[1];return(0,s.Z)((0,s.Z)({},o),{},{id:n})}))},anyLightsOn:function(){for(var e=0,t=Object.values(this.groups);e0}},methods:{toggleSelectAll:function(){var e=this,t=Object.values(this.selectedLights).filter((function(e){return e})).length {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n","import script from \"./Panel.vue?vue&type=script&lang=js\"\nexport * from \"./Panel.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./MenuPanel.vue?vue&type=template&id=02113104\"\nimport script from \"./MenuPanel.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPanel.vue?vue&type=script&lang=js\"\n\nimport \"./MenuPanel.vue?vue&type=style&index=0&id=02113104&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Groups.vue?vue&type=template&id=42318a2b&scoped=true\"\nimport script from \"./Groups.vue?vue&type=script&lang=js\"\nexport * from \"./Groups.vue?vue&type=script&lang=js\"\n\nimport \"./Groups.vue?vue&type=style&index=0&id=42318a2b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42318a2b\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=e2726892&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=e2726892&lang=scss&scoped=true\"\nimport \"./Controls.vue?vue&type=style&index=1&id=e2726892&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2726892\"]])\n\nexport default __exports__","import { render } from \"./Light.vue?vue&type=template&id=52168252&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=52168252&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-52168252\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Scene.vue?vue&type=template&id=6934d062\"\nimport script from \"./Scene.vue?vue&type=script&lang=js\"\nexport * from \"./Scene.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./RangeSlider.vue?vue&type=template&id=981c5de0&scoped=true\"\nimport script from \"./RangeSlider.vue?vue&type=script&lang=js\"\nexport * from \"./RangeSlider.vue?vue&type=script&lang=js\"\n\nimport \"./RangeSlider.vue?vue&type=style&index=0&id=981c5de0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-981c5de0\"]])\n\nexport default __exports__","import { render } from \"./Animate.vue?vue&type=template&id=1739aaba&scoped=true\"\nimport script from \"./Animate.vue?vue&type=script&lang=js\"\nexport * from \"./Animate.vue?vue&type=script&lang=js\"\n\nimport \"./Animate.vue?vue&type=style&index=0&id=1739aaba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1739aaba\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=4de1a560\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=4de1a560&lang=scss\"\nimport \"./Group.vue?vue&type=style&index=1&id=4de1a560&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=781dd72c&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=781dd72c&lang=scss&scoped=true\"\nimport \"./Index.vue?vue&type=style&index=1&id=781dd72c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-781dd72c\"]])\n\nexport default __exports__"],"names":["_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","ColorConverter","ranges","this","hue","sat","bri","ct","keys","attr","x","xRange","yRange","h","s","l","normalize","a","Math","min","f","n","k","color","max","round","r","g","b","d","parseInt","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","parseFloat","rgbToHsl","rgb","xy","getRGB","getXY","xyToRgb","hslToRgb","console","debug","rgbToXY","hex","slice","_","toString","join","class","ref","withLabel","type","range","step","disabled","value","onUpdate","name","emits","Number","Boolean","default","Array","methods","event","update","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","selectedGroup","groups","loadingGroups","colorConverter","$event","group","lights","displayedLights","scenes","scenesByGroup","animations","animationsByGroup","config","pluginName","String","required","data","loading","anyLightsOn","groupsSorted","id","state","any_on","components","ToggleSwitch","MenuPanel","computed","entries","sort","localeCompare","values","title","close","selectedView","lightsSorted","light","selectedLight","collapsed","scenesSorted","scene","selectedScene","onSceneSelected","expandToggle","on","stopPropagation","rgbColor","onColorSelect","Loading","Slider","avg","reduce","sum","obj","forEach","getColor","toRGB","split","t","hsl","rgbToBri","toXY","toHSL","Controls","onSelect","animationRunning","toggleAnimation","selectedAnimation","color_transition","hue_range","sat_range","bri_range","hue_step","sat_step","bri_step","transition_seconds","duration","selectedLights","filter","v","toggleSelectAll","input","mixins","Utils","RangeSlider","runningAnimations","animation","lightId","blink","select","eventType","warn","Animate","Light","Scene","groupName","sceneId","Group","Groups","Panel","loadingLights","initialGroup","initialized","groupsByLight","groupId","self","initSelectedGroup","unwatch","$watch","newVal","refresh","onLightChange","plugin_name","light_id","onAnimationChange","subscribe","unmounted","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1406-legacy.531be9a8.js b/platypush/backend/http/webapp/dist/static/js/1406-legacy.531be9a8.js deleted file mode 100644 index baadac5b4..000000000 --- a/platypush/backend/http/webapp/dist/static/js/1406-legacy.531be9a8.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1406],{634:function(e,t,n){n.d(t,{N:function(){return l}});var o=n(9584);n(1703);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n.5?s/(2-r-a):s/(r+a),r){case e:o=(t-n)/s+(tu&&l>s&&l>1?(s/=l,u/=l,l=1):s>u&&s>l&&s>1?(l/=s,u/=s,s=1):u>l&&u>s&&u>1&&(l/=u,s/=u,u=1),l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,s=s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,l=Math.round(255*l),s=Math.round(255*s),u=Math.round(255*u),isNaN(l)&&(l=0),isNaN(s)&&(s=0),isNaN(u)&&(u=0),[l,s,u].map((function(e){return Math.min(Math.max(0,e),255)}))}},{key:"rgbToXY",value:function(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var o=.664511*e+.154324*t+.162028*n,i=.283881*e+.668433*t+.047685*n,r=88e-6*e+.07231*t+.986039*n,a=parseFloat((o/(o+i+r)).toFixed(4)),l=parseFloat((i/(o+i+r)).toFixed(4));return isNaN(a)&&(a=0),isNaN(l)&&(l=0),[a,l]}},{key:"rgbToBri",value:function(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}},{key:"getRGB",value:function(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}},{key:"getXY",value:function(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}},{key:"toRGB",value:function(e){var t=this.getRGB(e);if(t)return t;var n=this.getXY(e);return n&&e.bri?this.xyToRgb.apply(this,(0,o.Z)(n).concat([e.bri])):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}},{key:"toXY",value:function(e){var t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];var n=this.getRGB(e);if(n)return this.rgbToXY.apply(this,(0,o.Z)(n));if(e.hue&&e.sat&&e.bri){var i=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY.apply(this,(0,o.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"toHSL",value:function(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];var t=this.getRGB(e);if(t)return this.rgbToHsl.apply(this,(0,o.Z)(t));var n=this.getXY(e);if(n&&e.bri){var i=this.xyToRgb.apply(this,(0,o.Z)(n).concat([e.bri]));return this.rgbToHsl.apply(this,(0,o.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"hexToRgb",value:function(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((function(e){return parseInt(e,16)}))}},{key:"rgbToHex",value:function(e){return"#"+e.map((function(e){var t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}]),e}()},376:function(e,t,n){n.d(t,{Z:function(){return m}});var o=n(6252),i=n(9963),r=n(3577),a={class:"slider-wrapper"},l=["min","max","step","disabled","value"],s={class:"track"},u={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},g=["textContent"];function d(e,t,n,d,p,h){return(0,o.wg)(),(0,o.iD)("label",a,[(0,o._)("input",{class:"slider",type:"range",ref:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,onInput:t[0]||(t[0]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"])),onChange:t[1]||(t[1]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"])),onMouseup:t[2]||(t[2]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"])),onMousedown:t[3]||(t[3]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"])),onTouchstart:t[4]||(t[4]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"])),onTouchend:t[5]||(t[5]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"])),onKeyup:t[6]||(t[6]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"])),onKeydown:t[7]||(t[7]=(0,i.iM)((function(){return h.onUpdate&&h.onUpdate.apply(h,arguments)}),["stop"]))},null,40,l),(0,o._)("div",s,[(0,o._)("div",u,null,512)]),(0,o._)("div",c,null,512),n.withLabel?((0,o.wg)(),(0,o.iD)("span",{key:0,class:"label",textContent:(0,r.zw)(n.value)},null,8,g)):(0,o.kq)("",!0)])}var p=n(4648),h=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,p.Z)((0,p.Z)({},e),{},{target:(0,p.Z)((0,p.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left="".concat(t,"%"),this.$refs.thumb.style.transform="translate(-".concat(t,"%, -50%)"),this.$refs.track.style.width="".concat(t,"%")}},mounted:function(){null!=this.value&&this.update(this.value)}}),v=n(3744);const f=(0,v.Z)(h,[["render",d],["__scopeId","data-v-95edc28a"]]);var m=f},6:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(6252),i=n(3577),r=n(9963),a=function(e){return(0,o.dD)("data-v-a6396ae8"),e=e(),(0,o.Cn)(),e},l=["checked"],s=a((function(){return(0,o._)("div",{class:"switch"},[(0,o._)("div",{class:"dot"})],-1)})),u={class:"label"};function c(e,t,n,a,c,g){return(0,o.wg)(),(0,o.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,r.iM)((function(){return g.onInput&&g.onInput.apply(g,arguments)}),["stop"]))},[(0,o._)("input",{type:"checkbox",checked:n.value},null,8,l),(0,o._)("label",null,[s,(0,o._)("span",u,[(0,o.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var g={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},d=n(3744);const p=(0,d.Z)(g,[["render",c],["__scopeId","data-v-a6396ae8"]]);var h=p},1406:function(e,t,n){n.r(t),n.d(t,{default:function(){return Rt}});n(7941);var o=n(6252),i={class:"plugin lights-plugin"},r={key:0,class:"panel"},a={key:1,class:"panel"};function l(e,t,n,l,s,u){var c=(0,o.up)("Groups"),g=(0,o.up)("Group");return(0,o.wg)(),(0,o.iD)("div",i,[null==s.selectedGroup&&n.groups&&Object.keys(n.groups).length?((0,o.wg)(),(0,o.iD)("div",r,[(0,o.Wm)(c,{groups:n.groups,"loading-groups":n.loadingGroups,"color-converter":n.colorConverter,onSelect:t[0]||(t[0]=function(e){return s.selectedGroup=e}),onToggle:t[1]||(t[1]=function(t){return e.$emit("group-toggle",t)})},null,8,["groups","loading-groups","color-converter"])])):((0,o.wg)(),(0,o.iD)("div",a,[(0,o.Wm)(g,{group:n.groups[s.selectedGroup],lights:u.displayedLights,scenes:u.scenesByGroup[s.selectedGroup],"color-converter":n.colorConverter,animations:u.animationsByGroup[s.selectedGroup],onClose:t[2]||(t[2]=function(e){return s.selectedGroup=null}),onLightToggle:t[3]||(t[3]=function(t){return e.$emit("light-toggle",t)}),onGroupToggle:t[4]||(t[4]=function(t){return e.$emit("group-toggle",t)}),onSetLight:t[5]||(t[5]=function(t){return e.$emit("set-light",t)}),onSetGroup:t[6]||(t[6]=function(t){return e.$emit("set-group",{groupId:s.selectedGroup,value:t})}),onSelectScene:t[7]||(t[7]=function(t){return e.$emit("select-scene",{groupId:s.selectedGroup,sceneId:t})}),onStartAnimation:t[8]||(t[8]=function(t){return e.$emit("start-animation",t)}),onStopAnimation:t[9]||(t[9]=function(t){return e.$emit("stop-animation",t)})},null,8,["group","lights","scenes","color-converter","animations"])]))])}var s=n(4648),u=n(6084),c=(n(9653),n(1539),n(9720),n(4747),n(2479),n(6813)),g={name:"Panel",emits:["mounted"],props:{config:{type:Object,default:function(){}},pluginName:{type:String,required:!0}},data:function(){return{loading:!1}},mounted:function(){this.$emit("mounted",this)}};const d=g;var p=d,h=(n(8309),n(3577)),v=function(e){return(0,o.dD)("data-v-42318a2b"),e=e(),(0,o.Cn)(),e},f={class:"panel-row header"},m=v((function(){return(0,o._)("div",{class:"col-3"},[(0,o._)("i",{class:"icon fas fa-home"})],-1)})),b=v((function(){return(0,o._)("div",{class:"col-6 name"}," Rooms ",-1)})),y={class:"col-3 pull-right"},_=["onClick"],w={class:"name col-9"},k={class:"controls col-3 pull-right"};function C(e,t,n,i,r,a){var l=(0,o.up)("ToggleSwitch"),s=(0,o.up)("MenuPanel");return(0,o.wg)(),(0,o.j4)(s,null,{default:(0,o.w5)((function(){return[(0,o._)("div",f,[m,b,(0,o._)("div",y,[(0,o.Wm)(l,{value:a.anyLightsOn,onInput:t[0]||(t[0]=function(t){return e.$emit("toggle")})},null,8,["value"])])]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(a.groupsSorted,(function(t){return(0,o.wg)(),(0,o.iD)("div",{class:"panel-row row group",key:t.id,onClick:function(n){return e.$emit("select",t.id)}},[(0,o._)("span",w,(0,h.zw)(t.name||"[Group ".concat(t.id,"]")),1),(0,o._)("span",k,[(0,o.Wm)(l,{value:t.state.any_on,disabled:t.id in(n.loadingGroups||{}),onInput:function(n){return e.$emit("toggle",t)}},null,8,["value","disabled","onInput"])])],8,_)})),128))]})),_:1})}n(1249),n(2707);var S={class:"menu-panel"},j={class:"content"};function Z(e,t,n,i,r,a){return(0,o.wg)(),(0,o.iD)("div",S,[(0,o._)("div",j,[(0,o.WI)(e.$slots,"default")])])}var O={name:"MenuPanel"},M=n(3744);const L=(0,M.Z)(O,[["render",Z]]);var D=L,G=n(6),$=n(634),I={name:"Groups",components:{ToggleSwitch:G.Z,MenuPanel:D},emits:["select","toggle"],props:{groups:{type:Object,default:function(){}},loadingGroups:{type:Object,default:function(){}},colorConverter:{type:Object,default:function(){return new $.N}}},computed:{groupsSorted:function(){return Object.entries(this.groups).sort((function(e,t){return e[1].name.localeCompare(t[1].name)})).map((function(e){var t=(0,u.Z)(e,2),n=t[0],o=t[1];return(0,s.Z)((0,s.Z)({},o),{},{id:n})}))},anyLightsOn:function(){for(var e=0,t=Object.values(this.groups);e0}},methods:{toggleSelectAll:function(){var e=this,t=Object.values(this.selectedLights).filter((function(e){return e})).length1?arguments[1]:void 0);while(t=t?t.next:n.first){s(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!w(this,e)}}),r(p,n?{get:function(e){var t=w(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&s(p,"size",{get:function(){return h(this).size}}),c},setStrong:function(e,t,n){var s=t+" Iterator",o=f(t),r=f(s);u(e,t,(function(e,t){m(this,{type:s,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},7710:function(e,t,n){"use strict";var s=n(2109),o=n(7854),r=n(1702),i=n(4705),l=n(8052),a=n(2423),u=n(408),c=n(5787),d=n(614),v=n(111),p=n(7293),m=n(7072),f=n(8003),h=n(9587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),_=g?"set":"add",C=o[e],y=C&&C.prototype,b=C,x={},k=function(e){var t=r(y[e]);l(y,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(w&&!v(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return w&&!v(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(w&&!v(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},H=i(e,!d(C)||!(w||y.forEach&&!p((function(){(new C).entries().next()}))));if(H)b=n.getConstructor(t,e,g,_),a.enable();else if(i(e,!0)){var S=new b,D=S[_](w?{}:-0,1)!=S,q=p((function(){S.has(1)})),z=m((function(e){new C(e)})),M=!w&&p((function(){var e=new C,t=5;while(t--)e[_](t,t);return!e.has(-0)}));z||(b=t((function(e,t){c(e,y);var n=h(new C,e,b);return void 0!=t&&u(t,n[_],{that:n,AS_ENTRIES:g}),n})),b.prototype=y,y.constructor=b),(q||M)&&(k("delete"),k("has"),g&&k("get")),(M||D)&&k(_),w&&y.clear&&delete y.clear}return x[e]=b,s({global:!0,constructor:!0,forced:b!=C},x),f(b,e),w||n.setStrong(b,e,g),b}},9190:function(e,t,n){var s=n(8052);e.exports=function(e,t,n){for(var o in t)s(e,o,t[o],n);return e}},6677:function(e,t,n){var s=n(7293);e.exports=!s((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2423:function(e,t,n){var s=n(2109),o=n(1702),r=n(3501),i=n(111),l=n(2597),a=n(3070).f,u=n(8006),c=n(1156),d=n(2050),v=n(9711),p=n(6677),m=!1,f=v("meta"),h=0,g=function(e){a(e,f,{value:{objectID:"O"+h++,weakData:{}}})},w=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l(e,f)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[f].objectID},_=function(e,t){if(!l(e,f)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[f].weakData},C=function(e){return p&&m&&d(e)&&!l(e,f)&&g(e),e},y=function(){b.enable=function(){},m=!0;var e=u.f,t=o([].splice),n={};n[f]=1,e(n).length&&(u.f=function(n){for(var s=e(n),o=0,r=s.length;o0?((0,s.wg)(),(0,s.iD)("div",Re,[Ie,((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.clients||{},(function(t,o){return(0,s.wg)(),(0,s.iD)("div",{class:"row",ref_for:!0,ref:"groupClients",key:o},[(0,s._)("label",{class:"client",for:"snapcast-client-"+t.id},[(0,s._)("input",{type:"checkbox",class:"client",id:"snapcast-client-".concat(t.id),value:t.id,checked:t.id in n.group.clients,disabled:n.loading,onInput:function(n){return e.$emit(n.target.checked?"add-client":"remove-client",t.id)}},null,40,$e),(0,s.Uk)(" "+(0,f.zw)(t.host.name),1)],8,Ue)])})),128))])):(0,s.kq)("",!0),null!==(u=n.group)&&void 0!==u&&u.stream_id?((0,s.wg)(),(0,s.iD)("div",Ee,[Ae,(0,s._)("div",Te,[Be,(0,s._)("div",Pe,[(0,s._)("label",null,[(0,s._)("select",{ref:"streamSelect",onChange:t[1]||(t[1]=function(t){return e.$emit("stream-change",t.target.value)})},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.streams,(function(e,t){return(0,s.wg)(),(0,s.iD)("option",{key:t,textContent:(0,f.zw)(n.streams[n.group.stream_id].id),name:e.id,value:e.id,disabled:n.loading,selected:e.id===n.group.stream_id},null,8,Ve)})),128))],544)])])]),null!==(c=n.streams)&&void 0!==c&&null!==(d=c[n.group.stream_id])&&void 0!==d&&d.status?((0,s.wg)(),(0,s.iD)("div",Ne,[Ke,(0,s._)("div",{class:"value col-m-9",textContent:(0,f.zw)(n.streams[n.group.stream_id].status)},null,8,We)])):(0,s.kq)("",!0),null!==(v=n.streams)&&void 0!==v&&null!==(p=v[null===(h=n.group)||void 0===h?void 0:h.stream_id])&&void 0!==p&&null!==(m=p.uri)&&void 0!==m&&m.host?((0,s.wg)(),(0,s.iD)("div",Fe,[Le,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.streams[n.group.stream_id].uri.host)},null,8,Ye)])):(0,s.kq)("",!0),null!==(g=n.streams)&&void 0!==g&&null!==(w=g[null===(C=n.group)||void 0===C?void 0:C.stream_id])&&void 0!==w&&null!==(_=w.uri)&&void 0!==_&&_.path?((0,s.wg)(),(0,s.iD)("div",Je,[Qe,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.streams[n.group.stream_id].uri.path)},null,8,Xe)])):(0,s.kq)("",!0),null!==(y=n.streams)&&void 0!==y&&null!==(b=y[null===(k=n.group)||void 0===k?void 0:k.stream_id])&&void 0!==b&&null!==(x=b.uri)&&void 0!==x&&x.raw?((0,s.wg)(),(0,s.iD)("div",et,[tt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.streams[n.group.stream_id].uri.raw)},null,8,nt)])):(0,s.kq)("",!0)])):(0,s.kq)("",!0)])}n(3210);var ot={name:"GroupModal",emits:["add-client","remove-client","stream-change","rename-group"],props:{loading:{type:Boolean,default:!1},group:{type:Object},clients:{type:Object},streams:{type:Object}},methods:{renameGroup:function(){var e=(prompt("New group name",this.group.name)||"").trim();null!==e&&void 0!==e&&e.length&&this.$emit("rename-group",e)}}};const rt=(0,I.Z)(ot,[["render",st],["__scopeId","data-v-353ffa58"]]);var it=rt,lt=function(e){return(0,s.dD)("data-v-0e55ac54"),e=e(),(0,s.Cn)(),e},at={class:"client-modal"},ut={key:0,class:"info"},ct={class:"row"},dt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"ID",-1)})),vt=["textContent"],pt={key:0,class:"row"},mt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Name",-1)})),ft={class:"value col-s-12 col-m-9"},ht=["textContent"],gt=lt((function(){return(0,s._)("i",{class:"fa fa-edit"},null,-1)})),wt=[gt],_t={class:"row"},Ct=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Connected",-1)})),yt=["textContent"],bt={class:"row"},xt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Volume",-1)})),kt={class:"value col-s-12 col-m-9"},Ht={class:"row"},St=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Muted",-1)})),Dt=["textContent"],qt={class:"row"},zt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Latency",-1)})),Mt=["textContent"],Zt={key:1,class:"row"},jt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"IP Address",-1)})),Gt=["textContent"],Ot={key:2,class:"row"},Rt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"MAC Address",-1)})),It=["textContent"],Ut={key:3,class:"row"},$t=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"OS",-1)})),Et=["textContent"],At={key:4,class:"row"},Tt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Architecture",-1)})),Bt=["textContent"],Pt={class:"row"},Vt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Client name",-1)})),Nt=["textContent"],Kt={class:"row"},Wt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Client version",-1)})),Ft=["textContent"],Lt={class:"row"},Yt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Protocol version",-1)})),Jt=["textContent"],Qt={class:"buttons"},Xt={class:"row"},en=["disabled"],tn=lt((function(){return(0,s._)("i",{class:"fas fa-trash"},null,-1)})),nn=lt((function(){return(0,s._)("span",{class:"name"},"Remove client",-1)})),sn=[tn,nn];function on(e,t,n,o,r,i){var l,a,u,c,d;return(0,s.wg)(),(0,s.iD)("div",at,[n.client?((0,s.wg)(),(0,s.iD)("div",ut,[(0,s._)("div",ct,[dt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.id)},null,8,vt)]),null!==(l=n.client.config)&&void 0!==l&&null!==(a=l.name)&&void 0!==a&&a.length||null!==(u=n.client.host)&&void 0!==u&&u.name?((0,s.wg)(),(0,s.iD)("div",pt,[mt,(0,s._)("div",ft,[(0,s._)("span",{class:"name",textContent:(0,f.zw)((null===(c=n.client.config)||void 0===c?void 0:c.name)||(null===(d=n.client.host)||void 0===d?void 0:d.name))},null,8,ht),(0,s._)("button",{title:"Rename",onClick:t[0]||(t[0]=function(){return i.renameClient&&i.renameClient.apply(i,arguments)})},wt)])])):(0,s.kq)("",!0),(0,s._)("div",_t,[Ct,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.connected)},null,8,yt)]),(0,s._)("div",bt,[xt,(0,s._)("div",kt,(0,f.zw)(n.client.config.volume.percent)+"%",1)]),(0,s._)("div",Ht,[St,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.config.volume.muted)},null,8,Dt)]),(0,s._)("div",qt,[zt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.config.latency)},null,8,Mt)]),n.client.host.ip&&n.client.host.ip.length?((0,s.wg)(),(0,s.iD)("div",Zt,[jt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.host.ip)},null,8,Gt)])):(0,s.kq)("",!0),n.client.host.mac&&n.client.host.mac.length?((0,s.wg)(),(0,s.iD)("div",Ot,[Rt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.host.mac)},null,8,It)])):(0,s.kq)("",!0),n.client.host.os&&n.client.host.os.length?((0,s.wg)(),(0,s.iD)("div",Ut,[$t,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.host.os)},null,8,Et)])):(0,s.kq)("",!0),n.client.host.arch&&n.client.host.arch.length?((0,s.wg)(),(0,s.iD)("div",At,[Tt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.host.arch)},null,8,Bt)])):(0,s.kq)("",!0),(0,s._)("div",Pt,[Vt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.snapclient.name)},null,8,Nt)]),(0,s._)("div",Kt,[Wt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.snapclient.version)},null,8,Ft)]),(0,s._)("div",Lt,[Yt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,f.zw)(n.client.snapclient.protocolVersion)},null,8,Jt)])])):(0,s.kq)("",!0),(0,s._)("div",Qt,[(0,s._)("div",Xt,[(0,s._)("button",{type:"button",disabled:n.loading,onClick:t[1]||(t[1]=function(){return i.removeClient&&i.removeClient.apply(i,arguments)})},sn,8,en)])])])}var rn={name:"ClientModal",emits:["remove-client","rename-client"],props:{loading:{type:Boolean,default:!1},client:{type:Object}},methods:{removeClient:function(){window.confirm("Are you sure that you want to remove this client?")&&this.$emit("remove-client")},renameClient:function(){var e,t=(window.prompt("New client name",null!==(e=this.client.config.name)&&void 0!==e&&e.length?this.client.config.name:this.client.host.name)||"").trim();t.length&&this.$emit("rename-client",t)}}};const ln=(0,I.Z)(rn,[["render",on],["__scopeId","data-v-0e55ac54"]]);var an=ln,un=n(1232),cn={name:"MusicSnapcast",mixins:[m.Z],components:{Loading:un.Z,Modal:p.Z,Host:V,ModalHost:He,ModalGroup:it,ModalClient:an},data:function(){return{loading:!1,hosts:{},ports:{},selectedHost:null,selectedGroup:null,selectedClient:null}},computed:{clientsByHost:function(){return Object.entries(this.hosts).reduce((function(e,t){var n=(0,v.Z)(t,2),s=n[0],o=n[1];return e[s]={},Object.values(o.groups).forEach((function(t){Object.entries(t.clients).forEach((function(t){var n=(0,v.Z)(t,2),o=n[0],r=n[1];e[s][o]=r}))})),e}),{})}},methods:{parseServerStatus:function(e){e.server.host.port=this.ports[e.server.host.name],this.hosts[e.server.host.name]=(0,d.Z)((0,d.Z)({},e),{},{groups:e.groups.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{clients:e.clients.reduce((function(e,t){return e[t.id]=t,e}),{})})})).reduce((function(e,t){return e[t.id]=t,e}),{}),streams:e.streams.reduce((function(e,t){return e[t.id]=t,e}),{})})},refresh:function(){var e=this;return(0,c.Z)(regeneratorRuntime.mark((function t(){var n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("music.snapcast.get_backend_hosts");case 4:return n=t.sent,t.next=7,Promise.all(Object.keys(n).map(function(){var t=(0,c.Z)(regeneratorRuntime.mark((function t(s){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",e.request("music.snapcast.status",{host:s,port:n[s]}));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 7:s=t.sent,e.hosts={},s.forEach((function(t){e.ports[t.server.host.name]=n[t.server.host.name],e.parseServerStatus(t)}));case 10:return t.prev=10,e.loading=!1,t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,,10,13]])})))()},refreshHost:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e in t.hosts){n.next=2;break}return n.abrupt("return");case 2:return n.t0=t,n.next=5,t.request("music.snapcast.status",{host:e,port:t.ports[e]});case 5:n.t1=n.sent,n.t0.parseServerStatus.call(n.t0,n.t1);case 7:case"end":return n.stop()}}),n)})))()},addClientToGroup:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedGroup&&e in t.clientsByHost[t.selectedHost]){n.next=4;break}return n.abrupt("return");case 4:return s=(0,u.Z)(new Set([e].concat((0,u.Z)(Object.keys(t.hosts[t.selectedHost].groups[t.selectedGroup].clients))))),n.next=7,t.request("music.snapcast.group_set_clients",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,clients:s});case 7:return n.next=9,t.refreshHost(t.selectedHost);case 9:return n.prev=9,t.loading=!1,n.finish(9);case 12:case"end":return n.stop()}}),n,null,[[1,,9,12]])})))()},removeClientFromGroup:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedGroup&&e in t.clientsByHost[t.selectedHost]){n.next=4;break}return n.abrupt("return");case 4:if(s=new Set((0,u.Z)(Object.keys(t.hosts[t.selectedHost].groups[t.selectedGroup].clients))),s.has(e)){n.next=7;break}return n.abrupt("return");case 7:return s.delete(e),n.next=10,t.request("music.snapcast.group_set_clients",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,clients:(0,u.Z)(s)});case 10:return n.next=12,t.refreshHost(t.selectedHost);case 12:return n.prev=12,t.loading=!1,n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[1,,12,15]])})))()},renameGroup:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedGroup){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,t.request("music.snapcast.set_group_name",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,name:e});case 6:return n.next=8,t.refreshHost(t.selectedHost);case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[1,,8,11]])})))()},renameClient:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedClient){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,t.request("music.snapcast.set_client_name",{host:t.selectedHost,port:t.ports[t.selectedHost],client:t.selectedClient,name:e});case 6:return n.next=8,t.refreshHost(t.selectedHost);case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[1,,8,11]])})))()},removeClient:function(){var e=this;return(0,c.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!0,t.prev=1,e.selectedHost&&e.selectedClient){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.request("music.snapcast.delete_client",{host:e.selectedHost,port:e.ports[e.selectedHost],client:e.selectedClient});case 6:return e.$refs.modalClient.close(),t.next=9,e.refreshHost(e.selectedHost);case 9:return t.prev=9,e.loading=!1,t.finish(9);case 12:case"end":return t.stop()}}),t,null,[[1,,9,12]])})))()},streamChange:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,n.next=4,t.request("music.snapcast.group_set_stream",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,stream_id:e});case 4:return n.next=6,t.refreshHost(t.selectedHost);case 6:return n.prev=6,t.loading=!1,n.finish(6);case 9:case"end":return n.stop()}}),n,null,[[1,,6,9]])})))()},onClientUpdate:function(e){var t=this;Object.keys(this.hosts[e.host].groups).forEach((function(n){e.client.id in t.hosts[e.host].groups[n].clients&&(t.hosts[e.host].groups[n].clients[e.client.id]=e.client)}))},onGroupStreamChange:function(e){this.hosts[e.host].groups[e.group].stream_id=e.stream},onServerUpdate:function(e){this.parseServerStatus(e.server)},onStreamUpdate:function(e){this.hosts[e.host].streams[e.stream.id]=e.stream},onClientVolumeChange:function(e){var t=this;Object.keys(this.hosts[e.host].groups).forEach((function(n){e.client in t.hosts[e.host].groups[n].clients&&(null!=e.volume&&(t.hosts[e.host].groups[n].clients[e.client].config.volume.percent=e.volume),null!=e.muted&&(t.hosts[e.host].groups[n].clients[e.client].config.volume.muted=e.muted))}))},onGroupMuteChange:function(e){this.hosts[e.host].groups[e.group].muted=e.muted},modalShow:function(e){switch(e.type){case"host":this.modal[e.type].info=this.hosts[e.host];break;case"group":this.modal[e.type].info.server=this.hosts[e.host].server,this.modal[e.type].info.group=this.hosts[e.host].groups[e.group],this.modal[e.type].info.streams=this.hosts[e.host].streams,this.modal[e.type].info.clients={};for(var t=0,n=Object.values(this.hosts[e.host].groups);t 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineProperty(Prototype, 'size', {\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return { value: undefined, done: true };\n }\n // return step by kind\n if (kind == 'keys') return { value: entry.key, done: false };\n if (kind == 'values') return { value: entry.value, done: false };\n return { value: [entry.key, entry.value], done: false };\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es-x/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.set.constructor');\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=12b0e65b&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=12b0e65b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-12b0e65b\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=748fccb4&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=748fccb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-748fccb4\"]])\n\nexport default __exports__","import { render } from \"./Host.vue?vue&type=template&id=7bce419a&scoped=true\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport \"./Host.vue?vue&type=style&index=0&id=7bce419a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7bce419a\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./Host.vue?vue&type=template&id=4b0dc9f8\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=353ffa58&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=353ffa58&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-353ffa58\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=0e55ac54&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=0e55ac54&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0e55ac54\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=40841f5a&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=40841f5a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40841f5a\"]])\n\nexport default __exports__"],"names":["fails","module","exports","ArrayBuffer","buffer","Object","isExtensible","defineProperty","value","create","defineBuiltIns","bind","anInstance","iterate","defineIterator","setSpecies","DESCRIPTORS","fastKey","InternalStateModule","setInternalState","set","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","IS_MAP","ADDER","Constructor","that","iterable","Prototype","type","index","first","undefined","last","size","AS_ENTRIES","prototype","getInternalState","define","key","previous","state","entry","getEntry","next","removed","clear","this","data","prev","forEach","callbackfn","boundFunction","arguments","length","has","get","add","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","target","done","$","global","uncurryThis","isForced","defineBuiltIn","InternalMetadataModule","isCallable","isObject","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","indexOf","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","uncurriedNativeMethod","REPLACE","entries","enable","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","constructor","forced","src","options","preventExtensions","hiddenKeys","hasOwn","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","id","setMetadata","it","objectID","weakData","getWeakData","onFreeze","meta","getOwnPropertyNames","f","splice","test","result","i","stat","classof","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","PROPER_FUNCTION_NAME","whitespaces","non","METHOD_NAME","name","collection","collectionStrong","init","$trim","forcedStringTrimMethod","proto","trim","class","ref","min","range","max","step","disabled","onUpdate","withLabel","emits","props","Number","Boolean","default","Array","methods","event","update","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","selectedHost","info","hosts","selectedGroup","group","groups","streams","clients","clientsByHost","addClientToGroup","removeClientFromGroup","streamChange","renameGroup","$event","selectedClient","client","removeClient","renameClient","host","server","groupMute","clientMute","clientSetVolume","onModalShow","collapsed","muted","stream","stream_id","status","config","connected","groupId","lastSeen","snapclient","volume","components","Slider","ToggleSwitch","required","String","Client","Group","ip","mac","port","os","arch","snapserver","version","protocolVersion","controlProtocolVersion","keys","for","selected","uri","path","raw","prompt","latency","window","confirm","mixins","Utils","Loading","Modal","Host","ModalHost","ModalGroup","ModalClient","ports","computed","reduce","values","clientId","parseServerStatus","map","refresh","request","Promise","all","statuses","refreshHost","Set","delete","modalClient","close","streamId","onClientUpdate","onGroupStreamChange","onServerUpdate","onStreamUpdate","onClientVolumeChange","onGroupMuteChange","modalShow","modal","visible","mute","modalHost","show","modalGroup","subscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/2790-legacy.ea683344.js b/platypush/backend/http/webapp/dist/static/js/2790-legacy.ea683344.js new file mode 100644 index 000000000..6fefb4571 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/2790-legacy.ea683344.js @@ -0,0 +1,2 @@ +(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2790],{7556:function(e,t,n){var s=n(7293);e.exports=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},5631:function(e,t,n){"use strict";var s=n(3070).f,o=n(30),r=n(9190),i=n(9974),l=n(5787),a=n(408),u=n(654),c=n(6340),d=n(9781),v=n(2423).fastKey,p=n(9909),m=p.set,h=p.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,s){l(e,p),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=s&&a(s,e[u],{that:e,AS_ENTRIES:n})})),p=c.prototype,f=h(t),g=function(e,t,n){var s,o,r=f(e),i=w(e,t);return i?i.value=n:(r.last=i={index:o=v(t,!0),key:t,value:n,previous:s=r.last,next:void 0,removed:!1},r.first||(r.first=i),s&&(s.next=i),d?r.size++:e.size++,"F"!==o&&(r.index[o]=i)),e},w=function(e,t){var n,s=f(e),o=v(t);if("F"!==o)return s.index[o];for(n=s.first;n;n=n.next)if(n.key==t)return n};return r(p,{clear:function(){var e=this,t=f(e),n=t.index,s=t.first;while(s)s.removed=!0,s.previous&&(s.previous=s.previous.next=void 0),delete n[s.index],s=s.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=f(t),s=w(t,e);if(s){var o=s.next,r=s.previous;delete n.index[s.index],s.removed=!0,r&&(r.next=o),o&&(o.previous=r),n.first==s&&(n.first=o),n.last==s&&(n.last=r),d?n.size--:t.size--}return!!s},forEach:function(e){var t,n=f(this),s=i(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){s(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!w(this,e)}}),r(p,n?{get:function(e){var t=w(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&s(p,"size",{get:function(){return f(this).size}}),c},setStrong:function(e,t,n){var s=t+" Iterator",o=h(t),r=h(s);u(e,t,(function(e,t){m(this,{type:s,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},7710:function(e,t,n){"use strict";var s=n(2109),o=n(7854),r=n(1702),i=n(4705),l=n(8052),a=n(2423),u=n(408),c=n(5787),d=n(614),v=n(111),p=n(7293),m=n(7072),h=n(8003),f=n(9587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),_=g?"set":"add",C=o[e],b=C&&C.prototype,y=C,x={},k=function(e){var t=r(b[e]);l(b,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(w&&!v(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return w&&!v(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(w&&!v(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},H=i(e,!d(C)||!(w||b.forEach&&!p((function(){(new C).entries().next()}))));if(H)y=n.getConstructor(t,e,g,_),a.enable();else if(i(e,!0)){var S=new y,D=S[_](w?{}:-0,1)!=S,q=p((function(){S.has(1)})),z=m((function(e){new C(e)})),M=!w&&p((function(){var e=new C,t=5;while(t--)e[_](t,t);return!e.has(-0)}));z||(y=t((function(e,t){c(e,b);var n=f(new C,e,y);return void 0!=t&&u(t,n[_],{that:n,AS_ENTRIES:g}),n})),y.prototype=b,b.constructor=y),(q||M)&&(k("delete"),k("has"),g&&k("get")),(M||D)&&k(_),w&&b.clear&&delete b.clear}return x[e]=y,s({global:!0,constructor:!0,forced:y!=C},x),h(y,e),w||n.setStrong(y,e,g),y}},9190:function(e,t,n){var s=n(8052);e.exports=function(e,t,n){for(var o in t)s(e,o,t[o],n);return e}},6677:function(e,t,n){var s=n(7293);e.exports=!s((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2423:function(e,t,n){var s=n(2109),o=n(1702),r=n(3501),i=n(111),l=n(2597),a=n(3070).f,u=n(8006),c=n(1156),d=n(2050),v=n(9711),p=n(6677),m=!1,h=v("meta"),f=0,g=function(e){a(e,h,{value:{objectID:"O"+f++,weakData:{}}})},w=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l(e,h)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[h].objectID},_=function(e,t){if(!l(e,h)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[h].weakData},C=function(e){return p&&m&&d(e)&&!l(e,h)&&g(e),e},b=function(){y.enable=function(){},m=!0;var e=u.f,t=o([].splice),n={};n[h]=1,e(n).length&&(u.f=function(n){for(var s=e(n),o=0,r=s.length;o0?((0,s.wg)(),(0,s.iD)("div",Re,[Ie,((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.clients||{},(function(t,o){return(0,s.wg)(),(0,s.iD)("div",{class:"row",ref_for:!0,ref:"groupClients",key:o},[(0,s._)("label",{class:"client",for:"snapcast-client-"+t.id},[(0,s._)("input",{type:"checkbox",class:"client",id:"snapcast-client-".concat(t.id),value:t.id,checked:t.id in n.group.clients,disabled:n.loading,onInput:function(n){return e.$emit(n.target.checked?"add-client":"remove-client",t.id)}},null,40,Ue),(0,s.Uk)(" "+(0,h.zw)(t.host.name),1)],8,$e)])})),128))])):(0,s.kq)("",!0),null!==(u=n.group)&&void 0!==u&&u.stream_id?((0,s.wg)(),(0,s.iD)("div",Ee,[Ae,(0,s._)("div",Te,[Be,(0,s._)("div",Pe,[(0,s._)("label",null,[(0,s._)("select",{ref:"streamSelect",onChange:t[1]||(t[1]=function(t){return e.$emit("stream-change",t.target.value)})},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.streams,(function(e,t){return(0,s.wg)(),(0,s.iD)("option",{key:t,textContent:(0,h.zw)(n.streams[n.group.stream_id].id),name:e.id,value:e.id,disabled:n.loading,selected:e.id===n.group.stream_id},null,8,Ve)})),128))],544)])])]),null!==(c=n.streams)&&void 0!==c&&null!==(d=c[n.group.stream_id])&&void 0!==d&&d.status?((0,s.wg)(),(0,s.iD)("div",Ne,[We,(0,s._)("div",{class:"value col-m-9",textContent:(0,h.zw)(n.streams[n.group.stream_id].status)},null,8,Ke)])):(0,s.kq)("",!0),null!==(v=n.streams)&&void 0!==v&&null!==(p=v[null===(f=n.group)||void 0===f?void 0:f.stream_id])&&void 0!==p&&null!==(m=p.uri)&&void 0!==m&&m.host?((0,s.wg)(),(0,s.iD)("div",Fe,[Le,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.streams[n.group.stream_id].uri.host)},null,8,Ye)])):(0,s.kq)("",!0),null!==(g=n.streams)&&void 0!==g&&null!==(w=g[null===(C=n.group)||void 0===C?void 0:C.stream_id])&&void 0!==w&&null!==(_=w.uri)&&void 0!==_&&_.path?((0,s.wg)(),(0,s.iD)("div",Je,[Qe,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.streams[n.group.stream_id].uri.path)},null,8,Xe)])):(0,s.kq)("",!0),null!==(b=n.streams)&&void 0!==b&&null!==(y=b[null===(k=n.group)||void 0===k?void 0:k.stream_id])&&void 0!==y&&null!==(x=y.uri)&&void 0!==x&&x.raw?((0,s.wg)(),(0,s.iD)("div",et,[tt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.streams[n.group.stream_id].uri.raw)},null,8,nt)])):(0,s.kq)("",!0)])):(0,s.kq)("",!0)])}n(3210);var ot={name:"GroupModal",emits:["add-client","remove-client","stream-change","rename-group"],props:{loading:{type:Boolean,default:!1},group:{type:Object},clients:{type:Object},streams:{type:Object}},methods:{renameGroup:function(){var e=(prompt("New group name",this.group.name)||"").trim();null!==e&&void 0!==e&&e.length&&this.$emit("rename-group",e)}}};const rt=(0,I.Z)(ot,[["render",st],["__scopeId","data-v-353ffa58"]]);var it=rt,lt=function(e){return(0,s.dD)("data-v-0e55ac54"),e=e(),(0,s.Cn)(),e},at={class:"client-modal"},ut={key:0,class:"info"},ct={class:"row"},dt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"ID",-1)})),vt=["textContent"],pt={key:0,class:"row"},mt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Name",-1)})),ht={class:"value col-s-12 col-m-9"},ft=["textContent"],gt=lt((function(){return(0,s._)("i",{class:"fa fa-edit"},null,-1)})),wt=[gt],_t={class:"row"},Ct=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Connected",-1)})),bt=["textContent"],yt={class:"row"},xt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Volume",-1)})),kt={class:"value col-s-12 col-m-9"},Ht={class:"row"},St=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Muted",-1)})),Dt=["textContent"],qt={class:"row"},zt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Latency",-1)})),Mt=["textContent"],Zt={key:1,class:"row"},jt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"IP Address",-1)})),Gt=["textContent"],Ot={key:2,class:"row"},Rt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"MAC Address",-1)})),It=["textContent"],$t={key:3,class:"row"},Ut=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"OS",-1)})),Et=["textContent"],At={key:4,class:"row"},Tt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Architecture",-1)})),Bt=["textContent"],Pt={class:"row"},Vt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Client name",-1)})),Nt=["textContent"],Wt={class:"row"},Kt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Client version",-1)})),Ft=["textContent"],Lt={class:"row"},Yt=lt((function(){return(0,s._)("div",{class:"label col-s-12 col-m-3"},"Protocol version",-1)})),Jt=["textContent"],Qt={class:"buttons"},Xt={class:"row"},en=["disabled"],tn=lt((function(){return(0,s._)("i",{class:"fas fa-trash"},null,-1)})),nn=lt((function(){return(0,s._)("span",{class:"name"},"Remove client",-1)})),sn=[tn,nn];function on(e,t,n,o,r,i){var l,a,u,c,d;return(0,s.wg)(),(0,s.iD)("div",at,[n.client?((0,s.wg)(),(0,s.iD)("div",ut,[(0,s._)("div",ct,[dt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.id)},null,8,vt)]),null!==(l=n.client.config)&&void 0!==l&&null!==(a=l.name)&&void 0!==a&&a.length||null!==(u=n.client.host)&&void 0!==u&&u.name?((0,s.wg)(),(0,s.iD)("div",pt,[mt,(0,s._)("div",ht,[(0,s._)("span",{class:"name",textContent:(0,h.zw)((null===(c=n.client.config)||void 0===c?void 0:c.name)||(null===(d=n.client.host)||void 0===d?void 0:d.name))},null,8,ft),(0,s._)("button",{title:"Rename",onClick:t[0]||(t[0]=function(){return i.renameClient&&i.renameClient.apply(i,arguments)})},wt)])])):(0,s.kq)("",!0),(0,s._)("div",_t,[Ct,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.connected)},null,8,bt)]),(0,s._)("div",yt,[xt,(0,s._)("div",kt,(0,h.zw)(n.client.config.volume.percent)+"%",1)]),(0,s._)("div",Ht,[St,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.config.volume.muted)},null,8,Dt)]),(0,s._)("div",qt,[zt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.config.latency)},null,8,Mt)]),n.client.host.ip&&n.client.host.ip.length?((0,s.wg)(),(0,s.iD)("div",Zt,[jt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.host.ip)},null,8,Gt)])):(0,s.kq)("",!0),n.client.host.mac&&n.client.host.mac.length?((0,s.wg)(),(0,s.iD)("div",Ot,[Rt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.host.mac)},null,8,It)])):(0,s.kq)("",!0),n.client.host.os&&n.client.host.os.length?((0,s.wg)(),(0,s.iD)("div",$t,[Ut,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.host.os)},null,8,Et)])):(0,s.kq)("",!0),n.client.host.arch&&n.client.host.arch.length?((0,s.wg)(),(0,s.iD)("div",At,[Tt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.host.arch)},null,8,Bt)])):(0,s.kq)("",!0),(0,s._)("div",Pt,[Vt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.snapclient.name)},null,8,Nt)]),(0,s._)("div",Wt,[Kt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.snapclient.version)},null,8,Ft)]),(0,s._)("div",Lt,[Yt,(0,s._)("div",{class:"value col-s-12 col-m-9",textContent:(0,h.zw)(n.client.snapclient.protocolVersion)},null,8,Jt)])])):(0,s.kq)("",!0),(0,s._)("div",Qt,[(0,s._)("div",Xt,[(0,s._)("button",{type:"button",disabled:n.loading,onClick:t[1]||(t[1]=function(){return i.removeClient&&i.removeClient.apply(i,arguments)})},sn,8,en)])])])}var rn={name:"ClientModal",emits:["remove-client","rename-client"],props:{loading:{type:Boolean,default:!1},client:{type:Object}},methods:{removeClient:function(){window.confirm("Are you sure that you want to remove this client?")&&this.$emit("remove-client")},renameClient:function(){var e,t=(window.prompt("New client name",null!==(e=this.client.config.name)&&void 0!==e&&e.length?this.client.config.name:this.client.host.name)||"").trim();t.length&&this.$emit("rename-client",t)}}};const ln=(0,I.Z)(rn,[["render",on],["__scopeId","data-v-0e55ac54"]]);var an=ln,un=n(1232),cn={name:"MusicSnapcast",mixins:[m.Z],components:{Loading:un.Z,Modal:p.Z,Host:V,ModalHost:He,ModalGroup:it,ModalClient:an},data:function(){return{loading:!1,hosts:{},ports:{},selectedHost:null,selectedGroup:null,selectedClient:null}},computed:{clientsByHost:function(){return Object.entries(this.hosts).reduce((function(e,t){var n=(0,v.Z)(t,2),s=n[0],o=n[1];return e[s]={},Object.values(o.groups).forEach((function(t){Object.entries(t.clients).forEach((function(t){var n=(0,v.Z)(t,2),o=n[0],r=n[1];e[s][o]=r}))})),e}),{})}},methods:{parseServerStatus:function(e){e.server.host.port=this.ports[e.server.host.name],this.hosts[e.server.host.name]=(0,d.Z)((0,d.Z)({},e),{},{groups:e.groups.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{clients:e.clients.reduce((function(e,t){return e[t.id]=t,e}),{})})})).reduce((function(e,t){return e[t.id]=t,e}),{}),streams:e.streams.reduce((function(e,t){return e[t.id]=t,e}),{})})},refresh:function(){var e=this;return(0,c.Z)(regeneratorRuntime.mark((function t(){var n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("music.snapcast.get_backend_hosts");case 4:return n=t.sent,t.next=7,Promise.all(Object.keys(n).map(function(){var t=(0,c.Z)(regeneratorRuntime.mark((function t(s){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",e.request("music.snapcast.status",{host:s,port:n[s]}));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 7:s=t.sent,e.hosts={},s.forEach((function(t){e.ports[t.server.host.name]=n[t.server.host.name],e.parseServerStatus(t)}));case 10:return t.prev=10,e.loading=!1,t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,,10,13]])})))()},refreshHost:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e in t.hosts){n.next=2;break}return n.abrupt("return");case 2:return n.t0=t,n.next=5,t.request("music.snapcast.status",{host:e,port:t.ports[e]});case 5:n.t1=n.sent,n.t0.parseServerStatus.call(n.t0,n.t1);case 7:case"end":return n.stop()}}),n)})))()},addClientToGroup:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedGroup&&e in t.clientsByHost[t.selectedHost]){n.next=4;break}return n.abrupt("return");case 4:return s=(0,u.Z)(new Set([e].concat((0,u.Z)(Object.keys(t.hosts[t.selectedHost].groups[t.selectedGroup].clients))))),n.next=7,t.request("music.snapcast.group_set_clients",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,clients:s});case 7:return n.next=9,t.refreshHost(t.selectedHost);case 9:return n.prev=9,t.loading=!1,n.finish(9);case 12:case"end":return n.stop()}}),n,null,[[1,,9,12]])})))()},removeClientFromGroup:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedGroup&&e in t.clientsByHost[t.selectedHost]){n.next=4;break}return n.abrupt("return");case 4:if(s=new Set((0,u.Z)(Object.keys(t.hosts[t.selectedHost].groups[t.selectedGroup].clients))),s.has(e)){n.next=7;break}return n.abrupt("return");case 7:return s.delete(e),n.next=10,t.request("music.snapcast.group_set_clients",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,clients:(0,u.Z)(s)});case 10:return n.next=12,t.refreshHost(t.selectedHost);case 12:return n.prev=12,t.loading=!1,n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[1,,12,15]])})))()},renameGroup:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedGroup){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,t.request("music.snapcast.set_group_name",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,name:e});case 6:return n.next=8,t.refreshHost(t.selectedHost);case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[1,,8,11]])})))()},renameClient:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.loading=!0,n.prev=1,t.selectedHost&&t.selectedClient){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,t.request("music.snapcast.set_client_name",{host:t.selectedHost,port:t.ports[t.selectedHost],client:t.selectedClient,name:e});case 6:return n.next=8,t.refreshHost(t.selectedHost);case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[1,,8,11]])})))()},removeClient:function(){var e=this;return(0,c.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!0,t.prev=1,e.selectedHost&&e.selectedClient){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.request("music.snapcast.delete_client",{host:e.selectedHost,port:e.ports[e.selectedHost],client:e.selectedClient});case 6:return e.$refs.modalClient.close(),t.next=9,e.refreshHost(e.selectedHost);case 9:return t.prev=9,e.loading=!1,t.finish(9);case 12:case"end":return t.stop()}}),t,null,[[1,,9,12]])})))()},streamChange:function(e){var t=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,n.next=4,t.request("music.snapcast.group_set_stream",{host:t.selectedHost,port:t.ports[t.selectedHost],group:t.selectedGroup,stream_id:e});case 4:return n.next=6,t.refreshHost(t.selectedHost);case 6:return n.prev=6,t.loading=!1,n.finish(6);case 9:case"end":return n.stop()}}),n,null,[[1,,6,9]])})))()},onClientUpdate:function(e){var t=this;Object.keys(this.hosts[e.host].groups).forEach((function(n){e.client.id in t.hosts[e.host].groups[n].clients&&(t.hosts[e.host].groups[n].clients[e.client.id]=e.client)}))},onGroupStreamChange:function(e){this.hosts[e.host].groups[e.group].stream_id=e.stream},onServerUpdate:function(e){this.parseServerStatus(e.server)},onStreamUpdate:function(e){this.hosts[e.host].streams[e.stream.id]=e.stream},onClientVolumeChange:function(e){var t=this;Object.keys(this.hosts[e.host].groups).forEach((function(n){e.client in t.hosts[e.host].groups[n].clients&&(null!=e.volume&&(t.hosts[e.host].groups[n].clients[e.client].config.volume.percent=e.volume),null!=e.muted&&(t.hosts[e.host].groups[n].clients[e.client].config.volume.muted=e.muted))}))},onGroupMuteChange:function(e){this.hosts[e.host].groups[e.group].muted=e.muted},modalShow:function(e){switch(e.type){case"host":this.modal[e.type].info=this.hosts[e.host];break;case"group":this.modal[e.type].info.server=this.hosts[e.host].server,this.modal[e.type].info.group=this.hosts[e.host].groups[e.group],this.modal[e.type].info.streams=this.hosts[e.host].streams,this.modal[e.type].info.clients={};for(var t=0,n=Object.values(this.hosts[e.host].groups);t 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineProperty(Prototype, 'size', {\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return { value: undefined, done: true };\n }\n // return step by kind\n if (kind == 'keys') return { value: entry.key, done: false };\n if (kind == 'values') return { value: entry.value, done: false };\n return { value: [entry.key, entry.value], done: false };\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es-x/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.set.constructor');\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=12b0e65b&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=12b0e65b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-12b0e65b\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=748fccb4&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=748fccb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-748fccb4\"]])\n\nexport default __exports__","import { render } from \"./Host.vue?vue&type=template&id=7bce419a&scoped=true\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport \"./Host.vue?vue&type=style&index=0&id=7bce419a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7bce419a\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./Host.vue?vue&type=template&id=4b0dc9f8\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=353ffa58&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=353ffa58&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-353ffa58\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=0e55ac54&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=0e55ac54&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0e55ac54\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=40841f5a&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=40841f5a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40841f5a\"]])\n\nexport default __exports__"],"names":["fails","module","exports","ArrayBuffer","buffer","Object","isExtensible","defineProperty","value","create","defineBuiltIns","bind","anInstance","iterate","defineIterator","setSpecies","DESCRIPTORS","fastKey","InternalStateModule","setInternalState","set","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","IS_MAP","ADDER","Constructor","that","iterable","Prototype","type","index","first","undefined","last","size","AS_ENTRIES","prototype","getInternalState","define","key","previous","state","entry","getEntry","next","removed","clear","this","data","prev","forEach","callbackfn","boundFunction","arguments","length","has","get","add","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","target","done","$","global","uncurryThis","isForced","defineBuiltIn","InternalMetadataModule","isCallable","isObject","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","indexOf","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","uncurriedNativeMethod","REPLACE","entries","enable","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","constructor","forced","src","options","preventExtensions","hiddenKeys","hasOwn","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","id","setMetadata","it","objectID","weakData","getWeakData","onFreeze","meta","getOwnPropertyNames","f","splice","test","result","i","stat","classof","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","PROPER_FUNCTION_NAME","whitespaces","non","METHOD_NAME","name","collection","collectionStrong","init","$trim","forcedStringTrimMethod","proto","trim","class","ref","withLabel","min","range","max","step","disabled","onUpdate","emits","props","Number","Boolean","default","Array","methods","event","update","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","selectedHost","info","hosts","selectedGroup","group","groups","streams","clients","clientsByHost","addClientToGroup","removeClientFromGroup","streamChange","renameGroup","$event","selectedClient","client","removeClient","renameClient","host","server","groupMute","clientMute","clientSetVolume","onModalShow","collapsed","muted","stream","stream_id","status","config","connected","groupId","lastSeen","snapclient","volume","components","Slider","ToggleSwitch","required","String","Client","Group","ip","mac","port","os","arch","snapserver","version","protocolVersion","controlProtocolVersion","keys","for","selected","uri","path","raw","prompt","latency","window","confirm","mixins","Utils","Loading","Modal","Host","ModalHost","ModalGroup","ModalClient","ports","computed","reduce","values","clientId","parseServerStatus","map","refresh","request","Promise","all","statuses","refreshHost","Set","delete","modalClient","close","streamId","onClientUpdate","onGroupStreamChange","onServerUpdate","onStreamUpdate","onClientVolumeChange","onGroupMuteChange","modalShow","modal","visible","mute","modalHost","show","modalGroup","subscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js b/platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js deleted file mode 100644 index dbdb17314..000000000 --- a/platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2790],{376:function(e,t,s){s.d(t,{Z:function(){return g}});var o=s(6252),l=s(9963),n=s(3577);const i={class:"slider-wrapper"},a=["min","max","step","disabled","value"],c={class:"track"},r={class:"track-inner",ref:"track"},u={class:"thumb",ref:"thumb"},d=["textContent"];function h(e,t,s,h,p,m){return(0,o.wg)(),(0,o.iD)("label",i,[(0,o._)("input",{class:"slider",type:"range",ref:"range",min:s.range[0],max:s.range[1],step:s.step,disabled:s.disabled,value:s.value,onInput:t[0]||(t[0]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,l.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"]))},null,40,a),(0,o._)("div",c,[(0,o._)("div",r,null,512)]),(0,o._)("div",u,null,512),s.withLabel?((0,o.wg)(),(0,o.iD)("span",{key:0,class:"label",textContent:(0,n.zw)(s.value)},null,8,d)):(0,o.kq)("",!0)])}var p={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left=`${t}%`,this.$refs.thumb.style.transform=`translate(-${t}%, -50%)`,this.$refs.track.style.width=`${t}%`}},mounted(){null!=this.value&&this.update(this.value)}},m=s(3744);const v=(0,m.Z)(p,[["render",h],["__scopeId","data-v-95edc28a"]]);var g=v},6:function(e,t,s){s.d(t,{Z:function(){return m}});var o=s(6252),l=s(3577),n=s(9963);const i=e=>((0,o.dD)("data-v-a6396ae8"),e=e(),(0,o.Cn)(),e),a=["checked"],c=i((()=>(0,o._)("div",{class:"switch"},[(0,o._)("div",{class:"dot"})],-1))),r={class:"label"};function u(e,t,s,i,u,d){return(0,o.wg)(),(0,o.iD)("div",{class:(0,l.C_)(["power-switch",{disabled:s.disabled}]),onClick:t[0]||(t[0]=(0,n.iM)(((...e)=>d.onInput&&d.onInput(...e)),["stop"]))},[(0,o._)("input",{type:"checkbox",checked:s.value},null,8,a),(0,o._)("label",null,[c,(0,o._)("span",r,[(0,o.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},h=s(3744);const p=(0,h.Z)(d,[["render",u],["__scopeId","data-v-a6396ae8"]]);var m=p},2790:function(e,t,s){s.r(t),s.d(t,{default:function(){return as}});var o=s(6252);const l={class:"music-snapcast-container"},n={class:"info"},i={class:"info"},a={class:"info"};function c(e,t,s,c,r,u){const d=(0,o.up)("Loading"),h=(0,o.up)("ModalHost"),p=(0,o.up)("Modal"),m=(0,o.up)("ModalGroup"),v=(0,o.up)("ModalClient"),g=(0,o.up)("Host");return(0,o.wg)(),(0,o.iD)("div",l,[e.loading?((0,o.wg)(),(0,o.j4)(d,{key:0})):(0,o.kq)("",!0),(0,o._)("div",n,[(0,o.Wm)(p,{title:"Server info",ref:"modalHost"},{default:(0,o.w5)((()=>[e.selectedHost?((0,o.wg)(),(0,o.j4)(h,{key:0,info:e.hosts[e.selectedHost]},null,8,["info"])):(0,o.kq)("",!0)])),_:1},512)]),(0,o._)("div",i,[(0,o.Wm)(p,{title:"Group info",ref:"modalGroup"},{default:(0,o.w5)((()=>[e.selectedGroup?((0,o.wg)(),(0,o.j4)(m,{key:0,group:e.hosts[e.selectedHost].groups[e.selectedGroup],streams:e.hosts[e.selectedHost].streams,clients:u.clientsByHost[e.selectedHost],loading:e.loading,onAddClient:u.addClientToGroup,onRemoveClient:u.removeClientFromGroup,onStreamChange:u.streamChange,onRenameGroup:t[0]||(t[0]=e=>u.renameGroup(e))},null,8,["group","streams","clients","loading","onAddClient","onRemoveClient","onStreamChange"])):(0,o.kq)("",!0)])),_:1},512)]),(0,o._)("div",a,[(0,o.Wm)(p,{title:"Client info",ref:"modalClient"},{default:(0,o.w5)((()=>[e.selectedClient?((0,o.wg)(),(0,o.j4)(v,{key:0,client:e.hosts[e.selectedHost].groups[e.selectedGroup].clients[e.selectedClient],loading:e.loading,onRemoveClient:u.removeClient,onRenameClient:t[1]||(t[1]=e=>u.renameClient(e))},null,8,["client","loading","onRemoveClient"])):(0,o.kq)("",!0)])),_:1},512)]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.hosts,((e,s)=>((0,o.wg)(),(0,o.j4)(g,{key:s,server:e.server,streams:e.streams,groups:e.groups,onGroupMuteToggle:t[2]||(t[2]=e=>u.groupMute(e)),onClientMuteToggle:t[3]||(t[3]=e=>u.clientMute(e)),onClientVolumeChange:t[4]||(t[4]=e=>u.clientSetVolume(e)),onModalShow:t[5]||(t[5]=e=>u.onModalShow(e))},null,8,["server","streams","groups"])))),128))])}var r=s(8453),u=s(6813),d=s(3577);const h=e=>((0,o.dD)("data-v-7bce419a"),e=e(),(0,o.Cn)(),e),p={class:"host"},m={class:"header"},v=h((()=>(0,o._)("i",{class:"icon fa fa-server"},null,-1))),g={class:"col-2 buttons pull-right"},w={key:0,class:"group-container"};function f(e,t,s,l,n,i){const a=(0,o.up)("Group");return(0,o.wg)(),(0,o.iD)("div",p,[(0,o._)("div",m,[(0,o._)("div",{class:"col-10 name",onClick:t[0]||(t[0]=t=>e.$emit("modal-show",{type:"host",host:s.server.host.name}))},[v,(0,o.Uk)(" "+(0,d.zw)(s.server.host.name),1)]),(0,o._)("div",g,[(0,o._)("button",{type:"button",onClick:t[1]||(t[1]=e=>n.collapsed=!n.collapsed)},[(0,o._)("i",{class:(0,d.C_)(["icon fa",{"fa-chevron-up":!n.collapsed,"fa-chevron-down":n.collapsed}])},null,2)])])]),n.collapsed?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("div",w,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.groups,((l,n)=>((0,o.wg)(),(0,o.j4)(a,{key:n,id:l.id,name:l.name,server:s.server.host,muted:l.muted,clients:l.clients,stream:s.streams[l.stream_id],onModalShow:t[2]||(t[2]=t=>e.$emit("modal-show",t)),onGroupMuteToggle:t[3]||(t[3]=t=>e.$emit("group-mute-toggle",t)),onClientMuteToggle:t[4]||(t[4]=t=>e.$emit("client-mute-toggle",t)),onClientVolumeChange:t[5]||(t[5]=t=>e.$emit("client-volume-change",t))},null,8,["id","name","server","muted","clients","stream"])))),128))]))])}const _={class:"group"},C={class:"head"},y={class:"col-2 switch pull-right"},b={class:"body"};function k(e,t,s,l,n,i){const a=(0,o.up)("ToggleSwitch"),c=(0,o.up)("Client");return(0,o.wg)(),(0,o.iD)("div",_,[(0,o._)("div",C,[(0,o._)("div",{class:"col-10 name",onClick:t[0]||(t[0]=t=>e.$emit("modal-show",{type:"group",group:s.id,host:s.server.name}))},[(0,o._)("i",{class:(0,d.C_)(["icon fa",{"fa-play":"playing"===s.stream.status,"fa-stop":"playing"!==s.stream.status}])},null,2),(0,o.Uk)(" "+(0,d.zw)(s.name||s.stream.id||s.id),1)]),(0,o._)("div",y,[(0,o.Wm)(a,{value:!s.muted,onInput:t[1]||(t[1]=t=>e.$emit("group-mute-toggle",{host:s.server.name,group:s.id,muted:!s.muted}))},null,8,["value"])])]),(0,o._)("div",b,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.clients,(l=>((0,o.wg)(),(0,o.j4)(c,{key:l.id,config:l.config,connected:l.connected,server:s.server,host:l.host,groupId:s.id,id:l.id,lastSeen:l.lastSeen,snapclient:l.snapclient,onModalShow:t[2]||(t[2]=t=>e.$emit("modal-show",t)),onVolumeChange:t[3]||(t[3]=t=>e.$emit("client-volume-change",t)),onMuteToggle:t[4]||(t[4]=t=>e.$emit("client-mute-toggle",t))},null,8,["config","connected","server","host","groupId","id","lastSeen","snapclient"])))),128))])])}var x=s(6);const H=["textContent"],S={class:"col-s-12 col-m-9 controls"},D={class:"col-10 slider-container"},q={class:"col-2 switch pull-right"};function M(e,t,s,l,n,i){const a=(0,o.up)("Slider"),c=(0,o.up)("ToggleSwitch");return(0,o.wg)(),(0,o.iD)("div",{class:(0,d.C_)(["row client",{offline:!s.connected}])},[(0,o._)("div",{class:"col-s-12 col-m-3 name",textContent:(0,d.zw)(s.config.name?.length?s.config.name:s.host.name),onClick:t[0]||(t[0]=t=>e.$emit("modal-show",{type:"client",client:s.id,group:s.groupId,host:s.server.name}))},null,8,H),(0,o._)("div",S,[(0,o._)("div",D,[(0,o.Wm)(a,{range:[0,100],value:s.config.volume.percent,onMouseup:t[1]||(t[1]=t=>e.$emit("volume-change",{host:s.server.name,client:s.id,volume:t.target.value}))},null,8,["value"])]),(0,o._)("div",q,[(0,o.Wm)(c,{value:!s.config.volume.muted,onInput:t[2]||(t[2]=t=>e.$emit("mute-toggle",{host:s.server.name,client:s.id,muted:!s.config.volume.muted}))},null,8,["value"])])])],2)}var G=s(376),j={name:"Client",components:{Slider:G.Z,ToggleSwitch:x.Z},emits:["volume-change","mute-toggle","modal-show"],props:{config:{type:Object,required:!0},connected:{type:Boolean,default:!1},host:{type:Object,required:!0},id:{type:String,required:!0},groupId:{type:String,required:!0},lastSeen:{type:Object,default:()=>{}},snapclient:{type:Object,required:!0},server:{type:Object,required:!0}}},z=s(3744);const $=(0,z.Z)(j,[["render",M],["__scopeId","data-v-12b0e65b"]]);var O=$,U={name:"Group",components:{Client:O,ToggleSwitch:x.Z},emits:["group-mute-toggle","modal-show","client-volume-change","client-mute-toggle"],props:{id:{type:String},clients:{type:Object,default:()=>{}},muted:{type:Boolean},name:{type:String},stream:{type:Object},server:{type:Object}}};const I=(0,z.Z)(U,[["render",k],["__scopeId","data-v-748fccb4"]]);var Z=I,T={name:"Host",emits:["modal-show","group-mute-toggle","client-mute-toggle","client-volume-change"],components:{Group:Z},props:{groups:{type:Object,default:()=>{}},server:{type:Object,default:()=>{}},streams:{type:Object,default:()=>{}}},data(){return{collapsed:!1}}};const V=(0,z.Z)(T,[["render",f],["__scopeId","data-v-7bce419a"]]);var E=V;const A={class:"info"},B={key:0,class:"row"},R=(0,o._)("div",{class:"label col-3"},"IP Address",-1),P=["textContent"],N={key:1,class:"row"},K=(0,o._)("div",{class:"label col-3"},"MAC Address",-1),W=["textContent"],L={key:2,class:"row"},Y=(0,o._)("div",{class:"label col-3"},"Name",-1),F=["textContent"],J={key:3,class:"row"},Q=(0,o._)("div",{class:"label col-3"},"Port",-1),X=["textContent"],ee={key:4,class:"row"},te=(0,o._)("div",{class:"label col-3"},"OS",-1),se=["textContent"],oe={key:5,class:"row"},le=(0,o._)("div",{class:"label col-3"},"Architecture",-1),ne=["textContent"],ie={key:6,class:"row"},ae=(0,o._)("div",{class:"label col-3"},"Server name",-1),ce=["textContent"],re={key:7,class:"row"},ue=(0,o._)("div",{class:"label col-3"},"Server version",-1),de=["textContent"],he={key:8,class:"row"},pe=(0,o._)("div",{class:"label col-3"},"Protocol version",-1),me=["textContent"],ve={key:9,class:"row"},ge=(0,o._)("div",{class:"label col-3"},"Control protocol version",-1),we=["textContent"];function fe(e,t,s,l,n,i){return(0,o.wg)(),(0,o.iD)("div",A,[s.info?.server?.host?.ip?.length?((0,o.wg)(),(0,o.iD)("div",B,[R,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.host.ip)},null,8,P)])):(0,o.kq)("",!0),s.info?.server?.host?.mac?.length?((0,o.wg)(),(0,o.iD)("div",N,[K,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.host.mac)},null,8,W)])):(0,o.kq)("",!0),s.info?.server?.host?.name?.length?((0,o.wg)(),(0,o.iD)("div",L,[Y,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.host.name)},null,8,F)])):(0,o.kq)("",!0),s.info?.server?.host?.port?((0,o.wg)(),(0,o.iD)("div",J,[Q,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.host.port)},null,8,X)])):(0,o.kq)("",!0),s.info?.server?.host?.os?.length?((0,o.wg)(),(0,o.iD)("div",ee,[te,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.host.os)},null,8,se)])):(0,o.kq)("",!0),s.info?.server?.host?.arch?.length?((0,o.wg)(),(0,o.iD)("div",oe,[le,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.host.arch)},null,8,ne)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.name?.length?((0,o.wg)(),(0,o.iD)("div",ie,[ae,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.snapserver.name)},null,8,ce)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.version?.length?((0,o.wg)(),(0,o.iD)("div",re,[ue,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.snapserver.version)},null,8,de)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.protocolVersion?((0,o.wg)(),(0,o.iD)("div",he,[pe,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.snapserver.protocolVersion)},null,8,me)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.controlProtocolVersion?((0,o.wg)(),(0,o.iD)("div",ve,[ge,(0,o._)("div",{class:"value col-9",textContent:(0,d.zw)(s.info.server.snapserver.controlProtocolVersion)},null,8,we)])):(0,o.kq)("",!0)])}var _e={name:"HostModal",props:{info:{type:Object,default:()=>{}}}};const Ce=(0,z.Z)(_e,[["render",fe]]);var ye=Ce;const be=e=>((0,o.dD)("data-v-353ffa58"),e=e(),(0,o.Cn)(),e),ke={class:"info"},xe={class:"section name"},He=be((()=>(0,o._)("div",{class:"title"},"Name",-1))),Se={class:"row"},De={class:"name-value"},qe=["textContent"],Me=be((()=>(0,o._)("i",{class:"fa fa-edit"},null,-1))),Ge=[Me],je={key:0,class:"section clients"},ze=be((()=>(0,o._)("div",{class:"title"},"Clients",-1))),$e=["for"],Oe=["id","value","checked","disabled","onInput"],Ue={key:1,class:"section streams"},Ie=be((()=>(0,o._)("div",{class:"title"},"Stream",-1))),Ze={class:"row"},Te=be((()=>(0,o._)("div",{class:"label col-3"},"ID",-1))),Ve={class:"value col-9"},Ee=["textContent","name","value","disabled","selected"],Ae={key:0,class:"row"},Be=be((()=>(0,o._)("div",{class:"label col-m-3"},"Status",-1))),Re=["textContent"],Pe={key:1,class:"row"},Ne=be((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Host",-1))),Ke=["textContent"],We={key:2,class:"row"},Le=be((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Path",-1))),Ye=["textContent"],Fe={key:3,class:"row"},Je=be((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"URI",-1))),Qe=["textContent"];function Xe(e,t,s,l,n,i){return(0,o.wg)(),(0,o.iD)("div",ke,[(0,o._)("div",xe,[He,(0,o._)("div",Se,[(0,o._)("div",De,[(0,o._)("span",{class:"name",textContent:(0,d.zw)(s.group.name?.length?s.group.name:"default")},null,8,qe),(0,o._)("button",{class:"pull-right",title:"Rename",onClick:t[0]||(t[0]=(...e)=>i.renameGroup&&i.renameGroup(...e))},Ge)])])]),Object.keys(s.group?.clients||{}).length>0?((0,o.wg)(),(0,o.iD)("div",je,[ze,((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.clients||{},((t,l)=>((0,o.wg)(),(0,o.iD)("div",{class:"row",ref_for:!0,ref:"groupClients",key:l},[(0,o._)("label",{class:"client",for:"snapcast-client-"+t.id},[(0,o._)("input",{type:"checkbox",class:"client",id:`snapcast-client-${t.id}`,value:t.id,checked:t.id in s.group.clients,disabled:s.loading,onInput:s=>e.$emit(s.target.checked?"add-client":"remove-client",t.id)},null,40,Oe),(0,o.Uk)(" "+(0,d.zw)(t.host.name),1)],8,$e)])))),128))])):(0,o.kq)("",!0),s.group?.stream_id?((0,o.wg)(),(0,o.iD)("div",Ue,[Ie,(0,o._)("div",Ze,[Te,(0,o._)("div",Ve,[(0,o._)("label",null,[(0,o._)("select",{ref:"streamSelect",onChange:t[1]||(t[1]=t=>e.$emit("stream-change",t.target.value))},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.streams,((e,t)=>((0,o.wg)(),(0,o.iD)("option",{key:t,textContent:(0,d.zw)(s.streams[s.group.stream_id].id),name:e.id,value:e.id,disabled:s.loading,selected:e.id===s.group.stream_id},null,8,Ee)))),128))],544)])])]),s.streams?.[s.group.stream_id]?.status?((0,o.wg)(),(0,o.iD)("div",Ae,[Be,(0,o._)("div",{class:"value col-m-9",textContent:(0,d.zw)(s.streams[s.group.stream_id].status)},null,8,Re)])):(0,o.kq)("",!0),s.streams?.[s.group?.stream_id]?.uri?.host?((0,o.wg)(),(0,o.iD)("div",Pe,[Ne,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.streams[s.group.stream_id].uri.host)},null,8,Ke)])):(0,o.kq)("",!0),s.streams?.[s.group?.stream_id]?.uri?.path?((0,o.wg)(),(0,o.iD)("div",We,[Le,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.streams[s.group.stream_id].uri.path)},null,8,Ye)])):(0,o.kq)("",!0),s.streams?.[s.group?.stream_id]?.uri?.raw?((0,o.wg)(),(0,o.iD)("div",Fe,[Je,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.streams[s.group.stream_id].uri.raw)},null,8,Qe)])):(0,o.kq)("",!0)])):(0,o.kq)("",!0)])}var et={name:"GroupModal",emits:["add-client","remove-client","stream-change","rename-group"],props:{loading:{type:Boolean,default:!1},group:{type:Object},clients:{type:Object},streams:{type:Object}},methods:{renameGroup(){const e=(prompt("New group name",this.group.name)||"").trim();e?.length&&this.$emit("rename-group",e)}}};const tt=(0,z.Z)(et,[["render",Xe],["__scopeId","data-v-353ffa58"]]);var st=tt;const ot=e=>((0,o.dD)("data-v-0e55ac54"),e=e(),(0,o.Cn)(),e),lt={class:"client-modal"},nt={key:0,class:"info"},it={class:"row"},at=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"ID",-1))),ct=["textContent"],rt={key:0,class:"row"},ut=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Name",-1))),dt={class:"value col-s-12 col-m-9"},ht=["textContent"],pt=ot((()=>(0,o._)("i",{class:"fa fa-edit"},null,-1))),mt=[pt],vt={class:"row"},gt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Connected",-1))),wt=["textContent"],ft={class:"row"},_t=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Volume",-1))),Ct={class:"value col-s-12 col-m-9"},yt={class:"row"},bt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Muted",-1))),kt=["textContent"],xt={class:"row"},Ht=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Latency",-1))),St=["textContent"],Dt={key:1,class:"row"},qt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"IP Address",-1))),Mt=["textContent"],Gt={key:2,class:"row"},jt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"MAC Address",-1))),zt=["textContent"],$t={key:3,class:"row"},Ot=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"OS",-1))),Ut=["textContent"],It={key:4,class:"row"},Zt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Architecture",-1))),Tt=["textContent"],Vt={class:"row"},Et=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Client name",-1))),At=["textContent"],Bt={class:"row"},Rt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Client version",-1))),Pt=["textContent"],Nt={class:"row"},Kt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Protocol version",-1))),Wt=["textContent"],Lt={class:"buttons"},Yt={class:"row"},Ft=["disabled"],Jt=ot((()=>(0,o._)("i",{class:"fas fa-trash"},null,-1))),Qt=ot((()=>(0,o._)("span",{class:"name"},"Remove client",-1))),Xt=[Jt,Qt];function es(e,t,s,l,n,i){return(0,o.wg)(),(0,o.iD)("div",lt,[s.client?((0,o.wg)(),(0,o.iD)("div",nt,[(0,o._)("div",it,[at,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.id)},null,8,ct)]),s.client.config?.name?.length||s.client.host?.name?((0,o.wg)(),(0,o.iD)("div",rt,[ut,(0,o._)("div",dt,[(0,o._)("span",{class:"name",textContent:(0,d.zw)(s.client.config?.name||s.client.host?.name)},null,8,ht),(0,o._)("button",{title:"Rename",onClick:t[0]||(t[0]=(...e)=>i.renameClient&&i.renameClient(...e))},mt)])])):(0,o.kq)("",!0),(0,o._)("div",vt,[gt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.connected)},null,8,wt)]),(0,o._)("div",ft,[_t,(0,o._)("div",Ct,(0,d.zw)(s.client.config.volume.percent)+"%",1)]),(0,o._)("div",yt,[bt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.config.volume.muted)},null,8,kt)]),(0,o._)("div",xt,[Ht,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.config.latency)},null,8,St)]),s.client.host.ip&&s.client.host.ip.length?((0,o.wg)(),(0,o.iD)("div",Dt,[qt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.host.ip)},null,8,Mt)])):(0,o.kq)("",!0),s.client.host.mac&&s.client.host.mac.length?((0,o.wg)(),(0,o.iD)("div",Gt,[jt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.host.mac)},null,8,zt)])):(0,o.kq)("",!0),s.client.host.os&&s.client.host.os.length?((0,o.wg)(),(0,o.iD)("div",$t,[Ot,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.host.os)},null,8,Ut)])):(0,o.kq)("",!0),s.client.host.arch&&s.client.host.arch.length?((0,o.wg)(),(0,o.iD)("div",It,[Zt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.host.arch)},null,8,Tt)])):(0,o.kq)("",!0),(0,o._)("div",Vt,[Et,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.snapclient.name)},null,8,At)]),(0,o._)("div",Bt,[Rt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.snapclient.version)},null,8,Pt)]),(0,o._)("div",Nt,[Kt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,d.zw)(s.client.snapclient.protocolVersion)},null,8,Wt)])])):(0,o.kq)("",!0),(0,o._)("div",Lt,[(0,o._)("div",Yt,[(0,o._)("button",{type:"button",disabled:s.loading,onClick:t[1]||(t[1]=(...e)=>i.removeClient&&i.removeClient(...e))},Xt,8,Ft)])])])}var ts={name:"ClientModal",emits:["remove-client","rename-client"],props:{loading:{type:Boolean,default:!1},client:{type:Object}},methods:{removeClient(){window.confirm("Are you sure that you want to remove this client?")&&this.$emit("remove-client")},renameClient(){const e=(window.prompt("New client name",this.client.config.name?.length?this.client.config.name:this.client.host.name)||"").trim();e.length&&this.$emit("rename-client",e)}}};const ss=(0,z.Z)(ts,[["render",es],["__scopeId","data-v-0e55ac54"]]);var os=ss,ls=s(1232),ns={name:"MusicSnapcast",mixins:[u.Z],components:{Loading:ls.Z,Modal:r.Z,Host:E,ModalHost:ye,ModalGroup:st,ModalClient:os},data:function(){return{loading:!1,hosts:{},ports:{},selectedHost:null,selectedGroup:null,selectedClient:null}},computed:{clientsByHost(){return Object.entries(this.hosts).reduce(((e,[t,s])=>(e[t]={},Object.values(s.groups).forEach((s=>{Object.entries(s.clients).forEach((([s,o])=>{e[t][s]=o}))})),e)),{})}},methods:{parseServerStatus(e){e.server.host.port=this.ports[e.server.host.name],this.hosts[e.server.host.name]={...e,groups:e.groups.map((e=>({...e,clients:e.clients.reduce(((e,t)=>(e[t.id]=t,e)),{})}))).reduce(((e,t)=>(e[t.id]=t,e)),{}),streams:e.streams.reduce(((e,t)=>(e[t.id]=t,e)),{})}},async refresh(){this.loading=!0;try{const e=await this.request("music.snapcast.get_backend_hosts"),t=await Promise.all(Object.keys(e).map((async t=>this.request("music.snapcast.status",{host:t,port:e[t]}))));this.hosts={},t.forEach((t=>{this.ports[t.server.host.name]=e[t.server.host.name],this.parseServerStatus(t)}))}finally{this.loading=!1}},async refreshHost(e){e in this.hosts&&this.parseServerStatus(await this.request("music.snapcast.status",{host:e,port:this.ports[e]}))},async addClientToGroup(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedGroup||!(e in this.clientsByHost[this.selectedHost]))return;const t=[...new Set([e,...Object.keys(this.hosts[this.selectedHost].groups[this.selectedGroup].clients)])];await this.request("music.snapcast.group_set_clients",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,clients:t}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async removeClientFromGroup(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedGroup||!(e in this.clientsByHost[this.selectedHost]))return;const t=new Set([...Object.keys(this.hosts[this.selectedHost].groups[this.selectedGroup].clients)]);if(!t.has(e))return;t.delete(e),await this.request("music.snapcast.group_set_clients",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,clients:[...t]}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async renameGroup(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedGroup)return;await this.request("music.snapcast.set_group_name",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,name:e}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async renameClient(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedClient)return;await this.request("music.snapcast.set_client_name",{host:this.selectedHost,port:this.ports[this.selectedHost],client:this.selectedClient,name:e}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async removeClient(){this.loading=!0;try{if(!this.selectedHost||!this.selectedClient)return;await this.request("music.snapcast.delete_client",{host:this.selectedHost,port:this.ports[this.selectedHost],client:this.selectedClient}),this.$refs.modalClient.close(),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async streamChange(e){this.loading=!0;try{await this.request("music.snapcast.group_set_stream",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,stream_id:e}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},onClientUpdate(e){Object.keys(this.hosts[e.host].groups).forEach((t=>{e.client.id in this.hosts[e.host].groups[t].clients&&(this.hosts[e.host].groups[t].clients[e.client.id]=e.client)}))},onGroupStreamChange(e){this.hosts[e.host].groups[e.group].stream_id=e.stream},onServerUpdate(e){this.parseServerStatus(e.server)},onStreamUpdate(e){this.hosts[e.host].streams[e.stream.id]=e.stream},onClientVolumeChange(e){Object.keys(this.hosts[e.host].groups).forEach((t=>{e.client in this.hosts[e.host].groups[t].clients&&(null!=e.volume&&(this.hosts[e.host].groups[t].clients[e.client].config.volume.percent=e.volume),null!=e.muted&&(this.hosts[e.host].groups[t].clients[e.client].config.volume.muted=e.muted))}))},onGroupMuteChange(e){this.hosts[e.host].groups[e.group].muted=e.muted},modalShow(e){switch(e.type){case"host":this.modal[e.type].info=this.hosts[e.host];break;case"group":this.modal[e.type].info.server=this.hosts[e.host].server,this.modal[e.type].info.group=this.hosts[e.host].groups[e.group],this.modal[e.type].info.streams=this.hosts[e.host].streams,this.modal[e.type].info.clients={};for(const t of Object.values(this.hosts[e.host].groups))for(const s of Object.values(t.clients))this.modal[e.type].info.clients[s.id]=s;break;case"client":this.modal[e.type].info=this.hosts[e.host].groups[e.group].clients[e.client],this.modal[e.type].info.server=this.hosts[e.host].server;break}this.modal[e.type].visible=!0},async groupMute(e){await this.request("music.snapcast.mute",{group:e.group,host:e.host,port:this.ports[e.host],mute:e.muted}),await this.refreshHost(e.host)},async clientMute(e){await this.request("music.snapcast.mute",{client:e.client,host:e.host,port:this.ports[e.host],mute:e.muted}),await this.refreshHost(e.host)},async clientSetVolume(e){await this.request("music.snapcast.volume",{client:e.client,host:e.host,port:this.ports[e.host],volume:e.volume}),await this.refreshHost(e.host)},onModalShow(e){switch(e.type){case"host":this.selectedHost=e.host,this.$refs.modalHost.show();break;case"group":this.selectedHost=e.host,this.selectedGroup=e.group,this.$refs.modalGroup.show();break;case"client":this.selectedHost=e.host,this.selectedGroup=e.group,this.selectedClient=e.client,this.$refs.modalClient.show();break}}},mounted(){this.refresh(),this.subscribe(this.onClientUpdate,null,"platypush.message.event.music.snapcast.ClientConnectedEvent","platypush.message.event.music.snapcast.ClientDisconnectedEvent","platypush.message.event.music.snapcast.ClientNameChangeEvent"),this.subscribe(this.onGroupStreamChange,null,"platypush.message.event.music.snapcast.GroupStreamChangeEvent"),this.subscribe(this.onServerUpdate,null,"platypush.message.event.music.snapcast.ServerUpdateEvent"),this.subscribe(this.onStreamUpdate,null,"platypush.message.event.music.snapcast.StreamUpdateEvent"),this.subscribe(this.onClientVolumeChange,null,"platypush.message.event.music.snapcast.ClientVolumeChangeEvent"),this.subscribe(this.onGroupMuteChange,null,"platypush.message.event.music.snapcast.GroupMuteChangeEvent")}};const is=(0,z.Z)(ns,[["render",c],["__scopeId","data-v-40841f5a"]]);var as=is}}]); -//# sourceMappingURL=2790.73c2ca0a.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js.map b/platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js.map deleted file mode 100644 index 0a345cf8a..000000000 --- a/platypush/backend/http/webapp/dist/static/js/2790.73c2ca0a.js.map +++ /dev/null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src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/MusicSnapcast/Index.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Host.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Group.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Client.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Client.vue?98bc","webpack://platypush/./src/components/panels/MusicSnapcast/Group.vue?12df","webpack://platypush/./src/components/panels/MusicSnapcast/Host.vue?8888","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Host.vue","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Host.vue?b4e2","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Group.vue","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Group.vue?b9ce","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Client.vue","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Client.vue?144d","webpack://platypush/./src/components/panels/MusicSnapcast/Index.vue?a513"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=12b0e65b&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=12b0e65b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-12b0e65b\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=748fccb4&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=748fccb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-748fccb4\"]])\n\nexport default __exports__","import { render } from \"./Host.vue?vue&type=template&id=7bce419a&scoped=true\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport \"./Host.vue?vue&type=style&index=0&id=7bce419a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7bce419a\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./Host.vue?vue&type=template&id=4b0dc9f8\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=353ffa58&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=353ffa58&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-353ffa58\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=0e55ac54&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=0e55ac54&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0e55ac54\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=40841f5a&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=40841f5a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40841f5a\"]])\n\nexport default __exports__"],"names":["class","ref","type","min","range","max","step","disabled","value","onUpdate","withLabel","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","selectedHost","info","hosts","selectedGroup","group","groups","streams","clients","clientsByHost","addClientToGroup","removeClientFromGroup","streamChange","renameGroup","$event","selectedClient","client","removeClient","renameClient","host","id","key","server","groupMute","clientMute","clientSetVolume","onModalShow","collapsed","muted","stream","stream_id","status","config","connected","groupId","lastSeen","snapclient","length","volume","components","Slider","ToggleSwitch","Object","required","String","Client","Group","data","ip","mac","port","os","arch","snapserver","version","protocolVersion","controlProtocolVersion","keys","for","selected","uri","path","raw","prompt","trim","latency","window","confirm","mixins","Utils","Loading","Modal","Host","ModalHost","ModalGroup","ModalClient","ports","computed","entries","reduce","values","forEach","clientId","parseServerStatus","map","async","request","statuses","Promise","all","Set","refreshHost","has","delete","modalClient","close","streamId","onClientUpdate","onGroupStreamChange","onServerUpdate","onStreamUpdate","onClientVolumeChange","onGroupMuteChange","modalShow","modal","visible","mute","modalHost","show","modalGroup","refresh","subscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js b/platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js new file mode 100644 index 000000000..a086bb43f --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2790],{8070:function(e,t,s){s.d(t,{Z:function(){return v}});var o=s(6252),l=s(3577),n=s(9963);const i={class:"slider-wrapper"},a=["min","max","step","disabled","value"],c={class:"track-inner",ref:"track"},r={class:"thumb",ref:"thumb"},d=["textContent"];function u(e,t,s,u,h,p){return(0,o.wg)(),(0,o.iD)("label",i,[(0,o._)("input",{class:(0,l.C_)(["slider",{"with-label":s.withLabel}]),type:"range",min:s.range[0],max:s.range[1],step:s.step,disabled:s.disabled,value:s.value,ref:"range",onInput:t[0]||(t[0]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"]))},null,42,a),(0,o._)("div",{class:(0,l.C_)(["track",{"with-label":s.withLabel}])},[(0,o._)("div",c,null,512)],2),(0,o._)("div",r,null,512),s.withLabel?((0,o.wg)(),(0,o.iD)("span",{key:0,class:"label",textContent:(0,l.zw)(s.value),ref:"label"},null,8,d)):(0,o.kq)("",!0)])}var h={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,s=(e-this.range[0])/(this.range[1]-this.range[0]),o=s*t,l=this.$refs.thumb;l.style.left=o-l.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${s}%, -50%)`,this.$refs.track.style.width=`${o}px`}},mounted(){null!=this.value&&this.update(this.value)}},p=s(3744);const m=(0,p.Z)(h,[["render",u],["__scopeId","data-v-0359812c"]]);var v=m},6:function(e,t,s){s.d(t,{Z:function(){return m}});var o=s(6252),l=s(3577),n=s(9963);const i=e=>((0,o.dD)("data-v-a6396ae8"),e=e(),(0,o.Cn)(),e),a=["checked"],c=i((()=>(0,o._)("div",{class:"switch"},[(0,o._)("div",{class:"dot"})],-1))),r={class:"label"};function d(e,t,s,i,d,u){return(0,o.wg)(),(0,o.iD)("div",{class:(0,l.C_)(["power-switch",{disabled:s.disabled}]),onClick:t[0]||(t[0]=(0,n.iM)(((...e)=>u.onInput&&u.onInput(...e)),["stop"]))},[(0,o._)("input",{type:"checkbox",checked:s.value},null,8,a),(0,o._)("label",null,[c,(0,o._)("span",r,[(0,o.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var u={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},h=s(3744);const p=(0,h.Z)(u,[["render",d],["__scopeId","data-v-a6396ae8"]]);var m=p},2790:function(e,t,s){s.r(t),s.d(t,{default:function(){return as}});var o=s(6252);const l={class:"music-snapcast-container"},n={class:"info"},i={class:"info"},a={class:"info"};function c(e,t,s,c,r,d){const u=(0,o.up)("Loading"),h=(0,o.up)("ModalHost"),p=(0,o.up)("Modal"),m=(0,o.up)("ModalGroup"),v=(0,o.up)("ModalClient"),g=(0,o.up)("Host");return(0,o.wg)(),(0,o.iD)("div",l,[e.loading?((0,o.wg)(),(0,o.j4)(u,{key:0})):(0,o.kq)("",!0),(0,o._)("div",n,[(0,o.Wm)(p,{title:"Server info",ref:"modalHost"},{default:(0,o.w5)((()=>[e.selectedHost?((0,o.wg)(),(0,o.j4)(h,{key:0,info:e.hosts[e.selectedHost]},null,8,["info"])):(0,o.kq)("",!0)])),_:1},512)]),(0,o._)("div",i,[(0,o.Wm)(p,{title:"Group info",ref:"modalGroup"},{default:(0,o.w5)((()=>[e.selectedGroup?((0,o.wg)(),(0,o.j4)(m,{key:0,group:e.hosts[e.selectedHost].groups[e.selectedGroup],streams:e.hosts[e.selectedHost].streams,clients:d.clientsByHost[e.selectedHost],loading:e.loading,onAddClient:d.addClientToGroup,onRemoveClient:d.removeClientFromGroup,onStreamChange:d.streamChange,onRenameGroup:t[0]||(t[0]=e=>d.renameGroup(e))},null,8,["group","streams","clients","loading","onAddClient","onRemoveClient","onStreamChange"])):(0,o.kq)("",!0)])),_:1},512)]),(0,o._)("div",a,[(0,o.Wm)(p,{title:"Client info",ref:"modalClient"},{default:(0,o.w5)((()=>[e.selectedClient?((0,o.wg)(),(0,o.j4)(v,{key:0,client:e.hosts[e.selectedHost].groups[e.selectedGroup].clients[e.selectedClient],loading:e.loading,onRemoveClient:d.removeClient,onRenameClient:t[1]||(t[1]=e=>d.renameClient(e))},null,8,["client","loading","onRemoveClient"])):(0,o.kq)("",!0)])),_:1},512)]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.hosts,((e,s)=>((0,o.wg)(),(0,o.j4)(g,{key:s,server:e.server,streams:e.streams,groups:e.groups,onGroupMuteToggle:t[2]||(t[2]=e=>d.groupMute(e)),onClientMuteToggle:t[3]||(t[3]=e=>d.clientMute(e)),onClientVolumeChange:t[4]||(t[4]=e=>d.clientSetVolume(e)),onModalShow:t[5]||(t[5]=e=>d.onModalShow(e))},null,8,["server","streams","groups"])))),128))])}var r=s(8453),d=s(6813),u=s(3577);const h=e=>((0,o.dD)("data-v-7bce419a"),e=e(),(0,o.Cn)(),e),p={class:"host"},m={class:"header"},v=h((()=>(0,o._)("i",{class:"icon fa fa-server"},null,-1))),g={class:"col-2 buttons pull-right"},w={key:0,class:"group-container"};function f(e,t,s,l,n,i){const a=(0,o.up)("Group");return(0,o.wg)(),(0,o.iD)("div",p,[(0,o._)("div",m,[(0,o._)("div",{class:"col-10 name",onClick:t[0]||(t[0]=t=>e.$emit("modal-show",{type:"host",host:s.server.host.name}))},[v,(0,o.Uk)(" "+(0,u.zw)(s.server.host.name),1)]),(0,o._)("div",g,[(0,o._)("button",{type:"button",onClick:t[1]||(t[1]=e=>n.collapsed=!n.collapsed)},[(0,o._)("i",{class:(0,u.C_)(["icon fa",{"fa-chevron-up":!n.collapsed,"fa-chevron-down":n.collapsed}])},null,2)])])]),n.collapsed?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("div",w,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.groups,((l,n)=>((0,o.wg)(),(0,o.j4)(a,{key:n,id:l.id,name:l.name,server:s.server.host,muted:l.muted,clients:l.clients,stream:s.streams[l.stream_id],onModalShow:t[2]||(t[2]=t=>e.$emit("modal-show",t)),onGroupMuteToggle:t[3]||(t[3]=t=>e.$emit("group-mute-toggle",t)),onClientMuteToggle:t[4]||(t[4]=t=>e.$emit("client-mute-toggle",t)),onClientVolumeChange:t[5]||(t[5]=t=>e.$emit("client-volume-change",t))},null,8,["id","name","server","muted","clients","stream"])))),128))]))])}const _={class:"group"},C={class:"head"},y={class:"col-2 switch pull-right"},b={class:"body"};function k(e,t,s,l,n,i){const a=(0,o.up)("ToggleSwitch"),c=(0,o.up)("Client");return(0,o.wg)(),(0,o.iD)("div",_,[(0,o._)("div",C,[(0,o._)("div",{class:"col-10 name",onClick:t[0]||(t[0]=t=>e.$emit("modal-show",{type:"group",group:s.id,host:s.server.name}))},[(0,o._)("i",{class:(0,u.C_)(["icon fa",{"fa-play":"playing"===s.stream.status,"fa-stop":"playing"!==s.stream.status}])},null,2),(0,o.Uk)(" "+(0,u.zw)(s.name||s.stream.id||s.id),1)]),(0,o._)("div",y,[(0,o.Wm)(a,{value:!s.muted,onInput:t[1]||(t[1]=t=>e.$emit("group-mute-toggle",{host:s.server.name,group:s.id,muted:!s.muted}))},null,8,["value"])])]),(0,o._)("div",b,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.clients,(l=>((0,o.wg)(),(0,o.j4)(c,{key:l.id,config:l.config,connected:l.connected,server:s.server,host:l.host,groupId:s.id,id:l.id,lastSeen:l.lastSeen,snapclient:l.snapclient,onModalShow:t[2]||(t[2]=t=>e.$emit("modal-show",t)),onVolumeChange:t[3]||(t[3]=t=>e.$emit("client-volume-change",t)),onMuteToggle:t[4]||(t[4]=t=>e.$emit("client-mute-toggle",t))},null,8,["config","connected","server","host","groupId","id","lastSeen","snapclient"])))),128))])])}var x=s(6);const H=["textContent"],S={class:"col-s-12 col-m-9 controls"},D={class:"col-10 slider-container"},q={class:"col-2 switch pull-right"};function M(e,t,s,l,n,i){const a=(0,o.up)("Slider"),c=(0,o.up)("ToggleSwitch");return(0,o.wg)(),(0,o.iD)("div",{class:(0,u.C_)(["row client",{offline:!s.connected}])},[(0,o._)("div",{class:"col-s-12 col-m-3 name",textContent:(0,u.zw)(s.config.name?.length?s.config.name:s.host.name),onClick:t[0]||(t[0]=t=>e.$emit("modal-show",{type:"client",client:s.id,group:s.groupId,host:s.server.name}))},null,8,H),(0,o._)("div",S,[(0,o._)("div",D,[(0,o.Wm)(a,{range:[0,100],value:s.config.volume.percent,onMouseup:t[1]||(t[1]=t=>e.$emit("volume-change",{host:s.server.name,client:s.id,volume:t.target.value}))},null,8,["value"])]),(0,o._)("div",q,[(0,o.Wm)(c,{value:!s.config.volume.muted,onInput:t[2]||(t[2]=t=>e.$emit("mute-toggle",{host:s.server.name,client:s.id,muted:!s.config.volume.muted}))},null,8,["value"])])])],2)}var G=s(8070),j={name:"Client",components:{Slider:G.Z,ToggleSwitch:x.Z},emits:["volume-change","mute-toggle","modal-show"],props:{config:{type:Object,required:!0},connected:{type:Boolean,default:!1},host:{type:Object,required:!0},id:{type:String,required:!0},groupId:{type:String,required:!0},lastSeen:{type:Object,default:()=>{}},snapclient:{type:Object,required:!0},server:{type:Object,required:!0}}},z=s(3744);const $=(0,z.Z)(j,[["render",M],["__scopeId","data-v-12b0e65b"]]);var O=$,U={name:"Group",components:{Client:O,ToggleSwitch:x.Z},emits:["group-mute-toggle","modal-show","client-volume-change","client-mute-toggle"],props:{id:{type:String},clients:{type:Object,default:()=>{}},muted:{type:Boolean},name:{type:String},stream:{type:Object},server:{type:Object}}};const I=(0,z.Z)(U,[["render",k],["__scopeId","data-v-748fccb4"]]);var Z=I,T={name:"Host",emits:["modal-show","group-mute-toggle","client-mute-toggle","client-volume-change"],components:{Group:Z},props:{groups:{type:Object,default:()=>{}},server:{type:Object,default:()=>{}},streams:{type:Object,default:()=>{}}},data(){return{collapsed:!1}}};const V=(0,z.Z)(T,[["render",f],["__scopeId","data-v-7bce419a"]]);var E=V;const A={class:"info"},B={key:0,class:"row"},R=(0,o._)("div",{class:"label col-3"},"IP Address",-1),P=["textContent"],W={key:1,class:"row"},N=(0,o._)("div",{class:"label col-3"},"MAC Address",-1),K=["textContent"],L={key:2,class:"row"},Y=(0,o._)("div",{class:"label col-3"},"Name",-1),F=["textContent"],J={key:3,class:"row"},Q=(0,o._)("div",{class:"label col-3"},"Port",-1),X=["textContent"],ee={key:4,class:"row"},te=(0,o._)("div",{class:"label col-3"},"OS",-1),se=["textContent"],oe={key:5,class:"row"},le=(0,o._)("div",{class:"label col-3"},"Architecture",-1),ne=["textContent"],ie={key:6,class:"row"},ae=(0,o._)("div",{class:"label col-3"},"Server name",-1),ce=["textContent"],re={key:7,class:"row"},de=(0,o._)("div",{class:"label col-3"},"Server version",-1),ue=["textContent"],he={key:8,class:"row"},pe=(0,o._)("div",{class:"label col-3"},"Protocol version",-1),me=["textContent"],ve={key:9,class:"row"},ge=(0,o._)("div",{class:"label col-3"},"Control protocol version",-1),we=["textContent"];function fe(e,t,s,l,n,i){return(0,o.wg)(),(0,o.iD)("div",A,[s.info?.server?.host?.ip?.length?((0,o.wg)(),(0,o.iD)("div",B,[R,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.host.ip)},null,8,P)])):(0,o.kq)("",!0),s.info?.server?.host?.mac?.length?((0,o.wg)(),(0,o.iD)("div",W,[N,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.host.mac)},null,8,K)])):(0,o.kq)("",!0),s.info?.server?.host?.name?.length?((0,o.wg)(),(0,o.iD)("div",L,[Y,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.host.name)},null,8,F)])):(0,o.kq)("",!0),s.info?.server?.host?.port?((0,o.wg)(),(0,o.iD)("div",J,[Q,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.host.port)},null,8,X)])):(0,o.kq)("",!0),s.info?.server?.host?.os?.length?((0,o.wg)(),(0,o.iD)("div",ee,[te,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.host.os)},null,8,se)])):(0,o.kq)("",!0),s.info?.server?.host?.arch?.length?((0,o.wg)(),(0,o.iD)("div",oe,[le,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.host.arch)},null,8,ne)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.name?.length?((0,o.wg)(),(0,o.iD)("div",ie,[ae,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.snapserver.name)},null,8,ce)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.version?.length?((0,o.wg)(),(0,o.iD)("div",re,[de,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.snapserver.version)},null,8,ue)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.protocolVersion?((0,o.wg)(),(0,o.iD)("div",he,[pe,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.snapserver.protocolVersion)},null,8,me)])):(0,o.kq)("",!0),s.info?.server?.snapserver?.controlProtocolVersion?((0,o.wg)(),(0,o.iD)("div",ve,[ge,(0,o._)("div",{class:"value col-9",textContent:(0,u.zw)(s.info.server.snapserver.controlProtocolVersion)},null,8,we)])):(0,o.kq)("",!0)])}var _e={name:"HostModal",props:{info:{type:Object,default:()=>{}}}};const Ce=(0,z.Z)(_e,[["render",fe]]);var ye=Ce;const be=e=>((0,o.dD)("data-v-353ffa58"),e=e(),(0,o.Cn)(),e),ke={class:"info"},xe={class:"section name"},He=be((()=>(0,o._)("div",{class:"title"},"Name",-1))),Se={class:"row"},De={class:"name-value"},qe=["textContent"],Me=be((()=>(0,o._)("i",{class:"fa fa-edit"},null,-1))),Ge=[Me],je={key:0,class:"section clients"},ze=be((()=>(0,o._)("div",{class:"title"},"Clients",-1))),$e=["for"],Oe=["id","value","checked","disabled","onInput"],Ue={key:1,class:"section streams"},Ie=be((()=>(0,o._)("div",{class:"title"},"Stream",-1))),Ze={class:"row"},Te=be((()=>(0,o._)("div",{class:"label col-3"},"ID",-1))),Ve={class:"value col-9"},Ee=["textContent","name","value","disabled","selected"],Ae={key:0,class:"row"},Be=be((()=>(0,o._)("div",{class:"label col-m-3"},"Status",-1))),Re=["textContent"],Pe={key:1,class:"row"},We=be((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Host",-1))),Ne=["textContent"],Ke={key:2,class:"row"},Le=be((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Path",-1))),Ye=["textContent"],Fe={key:3,class:"row"},Je=be((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"URI",-1))),Qe=["textContent"];function Xe(e,t,s,l,n,i){return(0,o.wg)(),(0,o.iD)("div",ke,[(0,o._)("div",xe,[He,(0,o._)("div",Se,[(0,o._)("div",De,[(0,o._)("span",{class:"name",textContent:(0,u.zw)(s.group.name?.length?s.group.name:"default")},null,8,qe),(0,o._)("button",{class:"pull-right",title:"Rename",onClick:t[0]||(t[0]=(...e)=>i.renameGroup&&i.renameGroup(...e))},Ge)])])]),Object.keys(s.group?.clients||{}).length>0?((0,o.wg)(),(0,o.iD)("div",je,[ze,((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.clients||{},((t,l)=>((0,o.wg)(),(0,o.iD)("div",{class:"row",ref_for:!0,ref:"groupClients",key:l},[(0,o._)("label",{class:"client",for:"snapcast-client-"+t.id},[(0,o._)("input",{type:"checkbox",class:"client",id:`snapcast-client-${t.id}`,value:t.id,checked:t.id in s.group.clients,disabled:s.loading,onInput:s=>e.$emit(s.target.checked?"add-client":"remove-client",t.id)},null,40,Oe),(0,o.Uk)(" "+(0,u.zw)(t.host.name),1)],8,$e)])))),128))])):(0,o.kq)("",!0),s.group?.stream_id?((0,o.wg)(),(0,o.iD)("div",Ue,[Ie,(0,o._)("div",Ze,[Te,(0,o._)("div",Ve,[(0,o._)("label",null,[(0,o._)("select",{ref:"streamSelect",onChange:t[1]||(t[1]=t=>e.$emit("stream-change",t.target.value))},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.streams,((e,t)=>((0,o.wg)(),(0,o.iD)("option",{key:t,textContent:(0,u.zw)(s.streams[s.group.stream_id].id),name:e.id,value:e.id,disabled:s.loading,selected:e.id===s.group.stream_id},null,8,Ee)))),128))],544)])])]),s.streams?.[s.group.stream_id]?.status?((0,o.wg)(),(0,o.iD)("div",Ae,[Be,(0,o._)("div",{class:"value col-m-9",textContent:(0,u.zw)(s.streams[s.group.stream_id].status)},null,8,Re)])):(0,o.kq)("",!0),s.streams?.[s.group?.stream_id]?.uri?.host?((0,o.wg)(),(0,o.iD)("div",Pe,[We,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.streams[s.group.stream_id].uri.host)},null,8,Ne)])):(0,o.kq)("",!0),s.streams?.[s.group?.stream_id]?.uri?.path?((0,o.wg)(),(0,o.iD)("div",Ke,[Le,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.streams[s.group.stream_id].uri.path)},null,8,Ye)])):(0,o.kq)("",!0),s.streams?.[s.group?.stream_id]?.uri?.raw?((0,o.wg)(),(0,o.iD)("div",Fe,[Je,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.streams[s.group.stream_id].uri.raw)},null,8,Qe)])):(0,o.kq)("",!0)])):(0,o.kq)("",!0)])}var et={name:"GroupModal",emits:["add-client","remove-client","stream-change","rename-group"],props:{loading:{type:Boolean,default:!1},group:{type:Object},clients:{type:Object},streams:{type:Object}},methods:{renameGroup(){const e=(prompt("New group name",this.group.name)||"").trim();e?.length&&this.$emit("rename-group",e)}}};const tt=(0,z.Z)(et,[["render",Xe],["__scopeId","data-v-353ffa58"]]);var st=tt;const ot=e=>((0,o.dD)("data-v-0e55ac54"),e=e(),(0,o.Cn)(),e),lt={class:"client-modal"},nt={key:0,class:"info"},it={class:"row"},at=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"ID",-1))),ct=["textContent"],rt={key:0,class:"row"},dt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Name",-1))),ut={class:"value col-s-12 col-m-9"},ht=["textContent"],pt=ot((()=>(0,o._)("i",{class:"fa fa-edit"},null,-1))),mt=[pt],vt={class:"row"},gt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Connected",-1))),wt=["textContent"],ft={class:"row"},_t=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Volume",-1))),Ct={class:"value col-s-12 col-m-9"},yt={class:"row"},bt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Muted",-1))),kt=["textContent"],xt={class:"row"},Ht=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Latency",-1))),St=["textContent"],Dt={key:1,class:"row"},qt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"IP Address",-1))),Mt=["textContent"],Gt={key:2,class:"row"},jt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"MAC Address",-1))),zt=["textContent"],$t={key:3,class:"row"},Ot=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"OS",-1))),Ut=["textContent"],It={key:4,class:"row"},Zt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Architecture",-1))),Tt=["textContent"],Vt={class:"row"},Et=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Client name",-1))),At=["textContent"],Bt={class:"row"},Rt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Client version",-1))),Pt=["textContent"],Wt={class:"row"},Nt=ot((()=>(0,o._)("div",{class:"label col-s-12 col-m-3"},"Protocol version",-1))),Kt=["textContent"],Lt={class:"buttons"},Yt={class:"row"},Ft=["disabled"],Jt=ot((()=>(0,o._)("i",{class:"fas fa-trash"},null,-1))),Qt=ot((()=>(0,o._)("span",{class:"name"},"Remove client",-1))),Xt=[Jt,Qt];function es(e,t,s,l,n,i){return(0,o.wg)(),(0,o.iD)("div",lt,[s.client?((0,o.wg)(),(0,o.iD)("div",nt,[(0,o._)("div",it,[at,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.id)},null,8,ct)]),s.client.config?.name?.length||s.client.host?.name?((0,o.wg)(),(0,o.iD)("div",rt,[dt,(0,o._)("div",ut,[(0,o._)("span",{class:"name",textContent:(0,u.zw)(s.client.config?.name||s.client.host?.name)},null,8,ht),(0,o._)("button",{title:"Rename",onClick:t[0]||(t[0]=(...e)=>i.renameClient&&i.renameClient(...e))},mt)])])):(0,o.kq)("",!0),(0,o._)("div",vt,[gt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.connected)},null,8,wt)]),(0,o._)("div",ft,[_t,(0,o._)("div",Ct,(0,u.zw)(s.client.config.volume.percent)+"%",1)]),(0,o._)("div",yt,[bt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.config.volume.muted)},null,8,kt)]),(0,o._)("div",xt,[Ht,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.config.latency)},null,8,St)]),s.client.host.ip&&s.client.host.ip.length?((0,o.wg)(),(0,o.iD)("div",Dt,[qt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.host.ip)},null,8,Mt)])):(0,o.kq)("",!0),s.client.host.mac&&s.client.host.mac.length?((0,o.wg)(),(0,o.iD)("div",Gt,[jt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.host.mac)},null,8,zt)])):(0,o.kq)("",!0),s.client.host.os&&s.client.host.os.length?((0,o.wg)(),(0,o.iD)("div",$t,[Ot,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.host.os)},null,8,Ut)])):(0,o.kq)("",!0),s.client.host.arch&&s.client.host.arch.length?((0,o.wg)(),(0,o.iD)("div",It,[Zt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.host.arch)},null,8,Tt)])):(0,o.kq)("",!0),(0,o._)("div",Vt,[Et,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.snapclient.name)},null,8,At)]),(0,o._)("div",Bt,[Rt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.snapclient.version)},null,8,Pt)]),(0,o._)("div",Wt,[Nt,(0,o._)("div",{class:"value col-s-12 col-m-9",textContent:(0,u.zw)(s.client.snapclient.protocolVersion)},null,8,Kt)])])):(0,o.kq)("",!0),(0,o._)("div",Lt,[(0,o._)("div",Yt,[(0,o._)("button",{type:"button",disabled:s.loading,onClick:t[1]||(t[1]=(...e)=>i.removeClient&&i.removeClient(...e))},Xt,8,Ft)])])])}var ts={name:"ClientModal",emits:["remove-client","rename-client"],props:{loading:{type:Boolean,default:!1},client:{type:Object}},methods:{removeClient(){window.confirm("Are you sure that you want to remove this client?")&&this.$emit("remove-client")},renameClient(){const e=(window.prompt("New client name",this.client.config.name?.length?this.client.config.name:this.client.host.name)||"").trim();e.length&&this.$emit("rename-client",e)}}};const ss=(0,z.Z)(ts,[["render",es],["__scopeId","data-v-0e55ac54"]]);var os=ss,ls=s(1232),ns={name:"MusicSnapcast",mixins:[d.Z],components:{Loading:ls.Z,Modal:r.Z,Host:E,ModalHost:ye,ModalGroup:st,ModalClient:os},data:function(){return{loading:!1,hosts:{},ports:{},selectedHost:null,selectedGroup:null,selectedClient:null}},computed:{clientsByHost(){return Object.entries(this.hosts).reduce(((e,[t,s])=>(e[t]={},Object.values(s.groups).forEach((s=>{Object.entries(s.clients).forEach((([s,o])=>{e[t][s]=o}))})),e)),{})}},methods:{parseServerStatus(e){e.server.host.port=this.ports[e.server.host.name],this.hosts[e.server.host.name]={...e,groups:e.groups.map((e=>({...e,clients:e.clients.reduce(((e,t)=>(e[t.id]=t,e)),{})}))).reduce(((e,t)=>(e[t.id]=t,e)),{}),streams:e.streams.reduce(((e,t)=>(e[t.id]=t,e)),{})}},async refresh(){this.loading=!0;try{const e=await this.request("music.snapcast.get_backend_hosts"),t=await Promise.all(Object.keys(e).map((async t=>this.request("music.snapcast.status",{host:t,port:e[t]}))));this.hosts={},t.forEach((t=>{this.ports[t.server.host.name]=e[t.server.host.name],this.parseServerStatus(t)}))}finally{this.loading=!1}},async refreshHost(e){e in this.hosts&&this.parseServerStatus(await this.request("music.snapcast.status",{host:e,port:this.ports[e]}))},async addClientToGroup(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedGroup||!(e in this.clientsByHost[this.selectedHost]))return;const t=[...new Set([e,...Object.keys(this.hosts[this.selectedHost].groups[this.selectedGroup].clients)])];await this.request("music.snapcast.group_set_clients",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,clients:t}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async removeClientFromGroup(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedGroup||!(e in this.clientsByHost[this.selectedHost]))return;const t=new Set([...Object.keys(this.hosts[this.selectedHost].groups[this.selectedGroup].clients)]);if(!t.has(e))return;t.delete(e),await this.request("music.snapcast.group_set_clients",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,clients:[...t]}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async renameGroup(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedGroup)return;await this.request("music.snapcast.set_group_name",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,name:e}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async renameClient(e){this.loading=!0;try{if(!this.selectedHost||!this.selectedClient)return;await this.request("music.snapcast.set_client_name",{host:this.selectedHost,port:this.ports[this.selectedHost],client:this.selectedClient,name:e}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async removeClient(){this.loading=!0;try{if(!this.selectedHost||!this.selectedClient)return;await this.request("music.snapcast.delete_client",{host:this.selectedHost,port:this.ports[this.selectedHost],client:this.selectedClient}),this.$refs.modalClient.close(),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},async streamChange(e){this.loading=!0;try{await this.request("music.snapcast.group_set_stream",{host:this.selectedHost,port:this.ports[this.selectedHost],group:this.selectedGroup,stream_id:e}),await this.refreshHost(this.selectedHost)}finally{this.loading=!1}},onClientUpdate(e){Object.keys(this.hosts[e.host].groups).forEach((t=>{e.client.id in this.hosts[e.host].groups[t].clients&&(this.hosts[e.host].groups[t].clients[e.client.id]=e.client)}))},onGroupStreamChange(e){this.hosts[e.host].groups[e.group].stream_id=e.stream},onServerUpdate(e){this.parseServerStatus(e.server)},onStreamUpdate(e){this.hosts[e.host].streams[e.stream.id]=e.stream},onClientVolumeChange(e){Object.keys(this.hosts[e.host].groups).forEach((t=>{e.client in this.hosts[e.host].groups[t].clients&&(null!=e.volume&&(this.hosts[e.host].groups[t].clients[e.client].config.volume.percent=e.volume),null!=e.muted&&(this.hosts[e.host].groups[t].clients[e.client].config.volume.muted=e.muted))}))},onGroupMuteChange(e){this.hosts[e.host].groups[e.group].muted=e.muted},modalShow(e){switch(e.type){case"host":this.modal[e.type].info=this.hosts[e.host];break;case"group":this.modal[e.type].info.server=this.hosts[e.host].server,this.modal[e.type].info.group=this.hosts[e.host].groups[e.group],this.modal[e.type].info.streams=this.hosts[e.host].streams,this.modal[e.type].info.clients={};for(const t of Object.values(this.hosts[e.host].groups))for(const s of Object.values(t.clients))this.modal[e.type].info.clients[s.id]=s;break;case"client":this.modal[e.type].info=this.hosts[e.host].groups[e.group].clients[e.client],this.modal[e.type].info.server=this.hosts[e.host].server;break}this.modal[e.type].visible=!0},async groupMute(e){await this.request("music.snapcast.mute",{group:e.group,host:e.host,port:this.ports[e.host],mute:e.muted}),await this.refreshHost(e.host)},async clientMute(e){await this.request("music.snapcast.mute",{client:e.client,host:e.host,port:this.ports[e.host],mute:e.muted}),await this.refreshHost(e.host)},async clientSetVolume(e){await this.request("music.snapcast.volume",{client:e.client,host:e.host,port:this.ports[e.host],volume:e.volume}),await this.refreshHost(e.host)},onModalShow(e){switch(e.type){case"host":this.selectedHost=e.host,this.$refs.modalHost.show();break;case"group":this.selectedHost=e.host,this.selectedGroup=e.group,this.$refs.modalGroup.show();break;case"client":this.selectedHost=e.host,this.selectedGroup=e.group,this.selectedClient=e.client,this.$refs.modalClient.show();break}}},mounted(){this.refresh(),this.subscribe(this.onClientUpdate,null,"platypush.message.event.music.snapcast.ClientConnectedEvent","platypush.message.event.music.snapcast.ClientDisconnectedEvent","platypush.message.event.music.snapcast.ClientNameChangeEvent"),this.subscribe(this.onGroupStreamChange,null,"platypush.message.event.music.snapcast.GroupStreamChangeEvent"),this.subscribe(this.onServerUpdate,null,"platypush.message.event.music.snapcast.ServerUpdateEvent"),this.subscribe(this.onStreamUpdate,null,"platypush.message.event.music.snapcast.StreamUpdateEvent"),this.subscribe(this.onClientVolumeChange,null,"platypush.message.event.music.snapcast.ClientVolumeChangeEvent"),this.subscribe(this.onGroupMuteChange,null,"platypush.message.event.music.snapcast.GroupMuteChangeEvent")}};const is=(0,z.Z)(ns,[["render",c],["__scopeId","data-v-40841f5a"]]);var as=is}}]); +//# sourceMappingURL=2790.7ce4bd1e.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js.map b/platypush/backend/http/webapp/dist/static/js/2790.7ce4bd1e.js.map new file mode 100644 index 000000000..9bdfe0573 --- /d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,UAAUpI,KAAK0H,qBAAsB,KAAM,kEAChD1H,KAAKoI,UAAUpI,KAAK2H,kBAAmB,KAAM,8DAC9C,GahYH,MAAM,IAA2B,OAAgB,GAAQ,CAAC,CAAC,SAAS1G,GAAQ,CAAC,YAAY,qBAEzF,S","sources":["webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/MusicSnapcast/Index.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Host.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Group.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Client.vue","webpack://platypush/./src/components/panels/MusicSnapcast/Client.vue?98bc","webpack://platypush/./src/components/panels/MusicSnapcast/Group.vue?12df","webpack://platypush/./src/components/panels/MusicSnapcast/Host.vue?8888","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Host.vue","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Host.vue?b4e2","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Group.vue","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Group.vue?b9ce","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Client.vue","webpack://platypush/./src/components/panels/MusicSnapcast/modals/Client.vue?144d","webpack://platypush/./src/components/panels/MusicSnapcast/Index.vue?a513"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=12b0e65b&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=12b0e65b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-12b0e65b\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=748fccb4&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=748fccb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-748fccb4\"]])\n\nexport default __exports__","import { render } from \"./Host.vue?vue&type=template&id=7bce419a&scoped=true\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport \"./Host.vue?vue&type=style&index=0&id=7bce419a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7bce419a\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./Host.vue?vue&type=template&id=4b0dc9f8\"\nimport script from \"./Host.vue?vue&type=script&lang=js\"\nexport * from \"./Host.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=353ffa58&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=353ffa58&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-353ffa58\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Client.vue?vue&type=template&id=0e55ac54&scoped=true\"\nimport script from \"./Client.vue?vue&type=script&lang=js\"\nexport * from \"./Client.vue?vue&type=script&lang=js\"\n\nimport \"./Client.vue?vue&type=style&index=0&id=0e55ac54&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0e55ac54\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=40841f5a&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=40841f5a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40841f5a\"]])\n\nexport default __exports__"],"names":["class","ref","withLabel","type","min","range","max","step","disabled","value","onUpdate","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","selectedHost","info","hosts","selectedGroup","group","groups","streams","clients","clientsByHost","addClientToGroup","removeClientFromGroup","streamChange","renameGroup","$event","selectedClient","client","removeClient","renameClient","host","id","key","server","groupMute","clientMute","clientSetVolume","onModalShow","collapsed","muted","stream","stream_id","status","config","connected","groupId","lastSeen","snapclient","length","volume","components","Slider","ToggleSwitch","Object","required","String","Client","Group","data","ip","mac","port","os","arch","snapserver","version","protocolVersion","controlProtocolVersion","keys","for","selected","uri","path","raw","prompt","trim","latency","window","confirm","mixins","Utils","Loading","Modal","Host","ModalHost","ModalGroup","ModalClient","ports","computed","entries","reduce","values","forEach","clientId","parseServerStatus","map","async","request","statuses","Promise","all","Set","refreshHost","has","delete","modalClient","close","streamId","onClientUpdate","onGroupStreamChange","onServerUpdate","onStreamUpdate","onClientVolumeChange","onGroupMuteChange","modalShow","modal","visible","mute","modalHost","show","modalGroup","refresh","subscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js b/platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js deleted file mode 100644 index 46b198be1..000000000 --- a/platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js +++ /dev/null @@ -1,2 +0,0 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4604],{7556:function(e,t,n){var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},5631:function(e,t,n){"use strict";var r=n(3070).f,i=n(30),a=n(9190),s=n(9974),o=n(5787),u=n(408),l=n(654),c=n(6340),d=n(9781),v=n(2423).fastKey,p=n(9909),f=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){o(e,p),f(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&u(r,e[l],{that:e,AS_ENTRIES:n})})),p=c.prototype,g=m(t),h=function(e,t,n){var r,i,a=g(e),s=b(e,t);return s?s.value=n:(a.last=s={index:i=v(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),d?a.size++:e.size++,"F"!==i&&(a.index[i]=s)),e},b=function(e,t){var n,r=g(e),i=v(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(p,{clear:function(){var e=this,t=g(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=g(t),r=b(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),d?n.size--:t.size--}return!!r},forEach:function(e){var t,n=g(this),r=s(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),a(p,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return h(this,0===e?0:e,t)}}:{add:function(e){return h(this,e=0===e?0:e,e)}}),d&&r(p,"size",{get:function(){return g(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),a=m(r);l(e,t,(function(e,t){f(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},7710:function(e,t,n){"use strict";var r=n(2109),i=n(7854),a=n(1702),s=n(4705),o=n(8052),u=n(2423),l=n(408),c=n(5787),d=n(614),v=n(111),p=n(7293),f=n(7072),m=n(8003),g=n(9587);e.exports=function(e,t,n){var h=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),y=h?"set":"add",w=i[e],_=w&&w.prototype,k=w,x={},q=function(e){var t=a(_[e]);o(_,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!v(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!v(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!v(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},z=s(e,!d(w)||!(b||_.forEach&&!p((function(){(new w).entries().next()}))));if(z)k=n.getConstructor(t,e,h,y),u.enable();else if(s(e,!0)){var C=new k,D=C[y](b?{}:-0,1)!=C,R=p((function(){C.has(1)})),Z=f((function(e){new w(e)})),M=!b&&p((function(){var e=new w,t=5;while(t--)e[y](t,t);return!e.has(-0)}));Z||(k=t((function(e,t){c(e,_);var n=g(new w,e,k);return void 0!=t&&l(t,n[y],{that:n,AS_ENTRIES:h}),n})),k.prototype=_,_.constructor=k),(R||M)&&(q("delete"),q("has"),h&&q("get")),(M||D)&&q(y),b&&_.clear&&delete _.clear}return x[e]=k,r({global:!0,constructor:!0,forced:k!=w},x),m(k,e),b||n.setStrong(k,e,h),k}},9190:function(e,t,n){var r=n(8052);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},6677:function(e,t,n){var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},647:function(e,t,n){var r=n(1702),i=n(7908),a=Math.floor,s=r("".charAt),o=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,v){var p=n+e.length,f=r.length,m=c;return void 0!==d&&(d=i(d),m=l),o(v,m,(function(i,o){var l;switch(s(o,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":l=d[u(o,1,-1)];break;default:var c=+o;if(0===c)return i;if(c>f){var v=a(c/10);return 0===v?i:v<=f?void 0===r[v-1]?s(o,1):r[v-1]+s(o,1):i}l=r[c-1]}return void 0===l?"":l}))}},2423:function(e,t,n){var r=n(2109),i=n(1702),a=n(3501),s=n(111),o=n(2597),u=n(3070).f,l=n(8006),c=n(1156),d=n(2050),v=n(9711),p=n(6677),f=!1,m=v("meta"),g=0,h=function(e){u(e,m,{value:{objectID:"O"+g++,weakData:{}}})},b=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,m)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[m].objectID},y=function(e,t){if(!o(e,m)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[m].weakData},w=function(e){return p&&f&&d(e)&&!o(e,m)&&h(e),e},_=function(){k.enable=function(){},f=!0;var e=l.f,t=i([].splice),n={};n[m]=1,e(n).length&&(l.f=function(n){for(var r=e(n),i=0,a=r.length;i")}));s("replace",(function(e,t,n){var a=R?"$":"$0";return[function(e,n){var r=p(this),a=void 0==e?void 0:m(e,y);return a?i(a,e,r,n):i(t,v(r),e,n)},function(e,i){var s=u(this),o=v(e);if("string"==typeof i&&-1===q(i,a)&&-1===q(i,"$<")){var p=n(t,s,o,i);if(p.done)return p.value}var m=l(i);m||(i=v(i));var b=s.global;if(b){var y=s.unicode;s.lastIndex=0}var D=[];while(1){var R=h(s,o);if(null===R)break;if(x(D,R),!b)break;var Z=v(R[0]);""===Z&&(s.lastIndex=f(o,d(s.lastIndex),y))}for(var M="",I=0,E=0;E=I&&(M+=z(o,I,j)+V,I=j+G.length)}return M+z(o,I)}]}),!Z||!D||R)},3210:function(e,t,n){"use strict";var r=n(2109),i=n(3111).trim,a=n(6091);r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return i(this)}})},634:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(9584);n(1703);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n.5?u/(2-a-s):u/(a+s),a){case e:r=(t-n)/u+(tl&&o>u&&o>1?(u/=o,l/=o,o=1):u>l&&u>o&&u>1?(o/=u,l/=u,u=1):l>o&&l>u&&l>1&&(o/=l,u/=l,l=1),o=o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,o=Math.round(255*o),u=Math.round(255*u),l=Math.round(255*l),isNaN(o)&&(o=0),isNaN(u)&&(u=0),isNaN(l)&&(l=0),[o,u,l].map((function(e){return Math.min(Math.max(0,e),255)}))}},{key:"rgbToXY",value:function(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.664511*e+.154324*t+.162028*n,i=.283881*e+.668433*t+.047685*n,a=88e-6*e+.07231*t+.986039*n,s=parseFloat((r/(r+i+a)).toFixed(4)),o=parseFloat((i/(r+i+a)).toFixed(4));return isNaN(s)&&(s=0),isNaN(o)&&(o=0),[s,o]}},{key:"rgbToBri",value:function(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}},{key:"getRGB",value:function(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}},{key:"getXY",value:function(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}},{key:"toRGB",value:function(e){var t=this.getRGB(e);if(t)return t;var n=this.getXY(e);return n&&e.bri?this.xyToRgb.apply(this,(0,r.Z)(n).concat([e.bri])):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}},{key:"toXY",value:function(e){var t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];var n=this.getRGB(e);if(n)return this.rgbToXY.apply(this,(0,r.Z)(n));if(e.hue&&e.sat&&e.bri){var i=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY.apply(this,(0,r.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"toHSL",value:function(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];var t=this.getRGB(e);if(t)return this.rgbToHsl.apply(this,(0,r.Z)(t));var n=this.getXY(e);if(n&&e.bri){var i=this.xyToRgb.apply(this,(0,r.Z)(n).concat([e.bri]));return this.rgbToHsl.apply(this,(0,r.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"hexToRgb",value:function(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((function(e){return parseInt(e,16)}))}},{key:"rgbToHex",value:function(e){return"#"+e.map((function(e){var t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}]),e}()},376:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(6252),i=n(9963),a=n(3577),s={class:"slider-wrapper"},o=["min","max","step","disabled","value"],u={class:"track"},l={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},d=["textContent"];function v(e,t,n,v,p,f){return(0,r.wg)(),(0,r.iD)("label",s,[(0,r._)("input",{class:"slider",type:"range",ref:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,onInput:t[0]||(t[0]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onChange:t[1]||(t[1]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onMouseup:t[2]||(t[2]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onMousedown:t[3]||(t[3]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onTouchstart:t[4]||(t[4]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onTouchend:t[5]||(t[5]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onKeyup:t[6]||(t[6]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onKeydown:t[7]||(t[7]=(0,i.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"]))},null,40,o),(0,r._)("div",u,[(0,r._)("div",l,null,512)]),(0,r._)("div",c,null,512),n.withLabel?((0,r.wg)(),(0,r.iD)("span",{key:0,class:"label",textContent:(0,a.zw)(n.value)},null,8,d)):(0,r.kq)("",!0)])}var p=n(4648),f=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,p.Z)((0,p.Z)({},e),{},{target:(0,p.Z)((0,p.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left="".concat(t,"%"),this.$refs.thumb.style.transform="translate(-".concat(t,"%, -50%)"),this.$refs.track.style.width="".concat(t,"%")}},mounted:function(){null!=this.value&&this.update(this.value)}}),m=n(3744);const g=(0,m.Z)(f,[["render",v],["__scopeId","data-v-95edc28a"]]);var h=g},6:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(6252),i=n(3577),a=n(9963),s=function(e){return(0,r.dD)("data-v-a6396ae8"),e=e(),(0,r.Cn)(),e},o=["checked"],u=s((function(){return(0,r._)("div",{class:"switch"},[(0,r._)("div",{class:"dot"})],-1)})),l={class:"label"};function c(e,t,n,s,c,d){return(0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,a.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,r._)("input",{type:"checkbox",checked:n.value},null,8,o),(0,r._)("label",null,[u,(0,r._)("span",l,[(0,r.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=n(3744);const p=(0,v.Z)(d,[["render",c],["__scopeId","data-v-a6396ae8"]]);var f=p},4604:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return bn}});n(4916),n(5306),n(7042),n(7941);var r=n(6252),i=n(3577),a={class:"zigbee-container"},s={key:0,class:"info-body"},o={class:"row"},u=(0,r._)("div",{class:"param-name"},"State",-1),l=["textContent"],c={class:"row"},d=(0,r._)("div",{class:"param-name"},"Permit Join",-1),v=["textContent"],p={key:0,class:"row"},f=(0,r._)("div",{class:"param-name"},"Network Channel",-1),m=["textContent"],g={class:"row"},h=(0,r._)("div",{class:"param-name"},"Zigbee2MQTT Version",-1),b=["textContent"],y={key:1,class:"row"},w=(0,r._)("div",{class:"param-name"},"MQTT Server",-1),_=["textContent"],k={key:2,class:"row"},x=(0,r._)("div",{class:"param-name"},"Serial Port",-1),q=["textContent"],z={key:3,class:"row"},C=(0,r._)("div",{class:"param-name"},"Firmware Type",-1),D=["textContent"],R={key:4,class:"row"},Z=(0,r._)("div",{class:"param-name"},"Firmware Version",-1),M={class:"param-value"},I={key:5,class:"row"},E=(0,r._)("div",{class:"param-name"},"Firmware Revision",-1),G=["textContent"],j={class:"view-options"},N={class:"view-selector col-s-8 col-m-9 col-l-10"},T=["value"],S=["textContent","selected","value"],O={class:"buttons"},V=["disabled"],A=(0,r._)("i",{class:"fa fa-plus"},null,-1),$=[A],U=["disabled"],F=(0,r._)("i",{class:"fa fa-sync-alt"},null,-1),B=[F],Y={class:"view-container"},P={key:0,class:"view devices"},L={key:0,class:"no-items"},H={key:0,class:"loading"},K={key:1,class:"empty"},W={key:1,class:"view groups"},X={key:0,class:"no-items"},J={key:0,class:"loading"},Q={key:1,class:"empty"};function ee(e,t,n,A,F,ee){var te=this,ne=(0,r.up)("Loading"),re=(0,r.up)("Modal"),ie=(0,r.up)("DropdownItem"),ae=(0,r.up)("Dropdown"),se=(0,r.up)("Device"),oe=(0,r.up)("Group");return(0,r.wg)(),(0,r.iD)("div",a,[F.loading?((0,r.wg)(),(0,r.j4)(ne,{key:0})):(0,r.kq)("",!0),(0,r.Wm)(re,{title:"Network Info",ref:"infoModal"},{default:(0,r.w5)((function(){var e,t,n,a,j;return[F.status.info?((0,r.wg)(),(0,r.iD)("div",s,[(0,r._)("div",o,[u,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.state)},null,8,l)]),(0,r._)("div",c,[d,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.permit_join)},null,8,v)]),F.status.info.network?((0,r.wg)(),(0,r.iD)("div",p,[f,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.network.channel)},null,8,m)])):(0,r.kq)("",!0),(0,r._)("div",g,[h,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.version)},null,8,b)]),null!==(e=F.status.info.config)&&void 0!==e&&e.mqtt?((0,r.wg)(),(0,r.iD)("div",y,[w,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.mqtt.server)},null,8,_)])):(0,r.kq)("",!0),null!==(t=F.status.info.config)&&void 0!==t&&t.serial?((0,r.wg)(),(0,r.iD)("div",k,[x,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.serial.port)},null,8,q)])):(0,r.kq)("",!0),null!==(n=F.status.info.coordinator)&&void 0!==n&&n.type?((0,r.wg)(),(0,r.iD)("div",z,[C,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.type)},null,8,D)])):(0,r.kq)("",!0),null!==(a=F.status.info.coordinator)&&void 0!==a&&a.meta?((0,r.wg)(),(0,r.iD)("div",R,[Z,(0,r._)("div",M,(0,i.zw)(F.status.info.coordinator.meta.maintrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.majorrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.minorrel),1)])):(0,r.kq)("",!0),null!==(j=F.status.info.coordinator)&&void 0!==j&&j.meta?((0,r.wg)(),(0,r.iD)("div",I,[E,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.meta.revision)},null,8,G)])):(0,r.kq)("",!0)])):(0,r.kq)("",!0)]})),_:1},512),(0,r._)("div",j,[(0,r._)("div",N,[(0,r._)("label",null,[(0,r._)("select",{value:F.selected.view,onChange:t[0]||(t[0]=function(e){return te.selected.view=e.target.value})},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(F.views,(function(e,t){return(0,r.wg)(),(0,r.iD)("option",{textContent:(0,i.zw)((t[0].toUpperCase()+t.slice(1)).replace("_"," ")),key:t,selected:e,value:t},null,8,S)})),128))],40,T)])]),(0,r._)("div",O,["groups"===F.selected.view?((0,r.wg)(),(0,r.iD)("button",{key:0,class:"btn btn-default",title:"Add Group",disabled:F.loading,onClick:t[1]||(t[1]=function(){return ee.addGroup&&ee.addGroup.apply(ee,arguments)})},$,8,V)):(0,r.kq)("",!0),(0,r.Wm)(ae,{ref:"networkCommandsDropdown","icon-class":"fa fa-cog",title:"Network commands"},{default:(0,r.w5)((function(){var n;return[(0,r.Wm)(ie,{text:"Network Info",disabled:F.loading,onClick:t[2]||(t[2]=function(t){return e.$refs.infoModal.show()})},null,8,["disabled"]),null!==(n=F.status.info)&&void 0!==n&&n.permit_join?((0,r.wg)(),(0,r.j4)(ie,{key:1,text:"Disable Join",disabled:F.loading,onClick:t[4]||(t[4]=function(e){return ee.permitJoin(!1)})},null,8,["disabled"])):((0,r.wg)(),(0,r.j4)(ie,{key:0,text:"Permit Join",disabled:F.loading,onClick:t[3]||(t[3]=function(e){return ee.permitJoin(!0)})},null,8,["disabled"])),(0,r.Wm)(ie,{text:"Factory Reset",disabled:F.loading,onClick:ee.factoryReset},null,8,["disabled","onClick"])]})),_:1},512),(0,r._)("button",{class:"btn btn-default",title:"Refresh network",disabled:F.loading,onClick:t[5]||(t[5]=function(){return ee.refresh&&ee.refresh.apply(ee,arguments)})},B,8,U)])]),(0,r._)("div",Y,["devices"===F.selected.view?((0,r.wg)(),(0,r.iD)("div",P,[Object.keys(F.devices).length?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",L,[F.loading?((0,r.wg)(),(0,r.iD)("div",H,"Loading devices...")):((0,r.wg)(),(0,r.iD)("div",K,"No devices found on the network"))])),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(F.devices,(function(e,t){return(0,r.wg)(),(0,r.j4)(se,{key:t,device:e,groups:F.groups,selected:F.selected.deviceId===t,onSelect:function(e){return F.selected.deviceId=F.selected.deviceId===t?null:t},onRename:ee.refreshDevices,onRemove:ee.refreshDevices,onGroupsEdit:ee.refreshGroups},null,8,["device","groups","selected","onSelect","onRename","onRemove","onGroupsEdit"])})),128))])):"groups"===F.selected.view?((0,r.wg)(),(0,r.iD)("div",W,[Object.keys(F.groups).length?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",X,[F.loading?((0,r.wg)(),(0,r.iD)("div",J,"Loading groups...")):((0,r.wg)(),(0,r.iD)("div",Q,"No groups available on the network"))])),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(F.groups,(function(e,t){return(0,r.wg)(),(0,r.j4)(oe,{key:t,group:e,devices:F.devices,selected:F.selected.groupId===t,onSelect:function(e){return F.selected.groupId=F.selected.groupId===t?null:t},onRename:ee.refreshGroups,onRemove:ee.refreshGroups,onEdit:ee.refreshGroups},null,8,["group","devices","selected","onSelect","onRename","onRemove","onEdit"])})),128))])):(0,r.kq)("",!0)])])}var te=n(4648),ne=n(8534),re=(n(5666),n(1539),n(3948),n(5771)),ie=n(9015),ae=n(1232),se=n(6813),oe=(n(2526),n(1817),n(9600),n(1249),n(9714),n(9653),n(9963)),ue=function(e){return(0,r.dD)("data-v-b05d09fc"),e=e(),(0,r.Cn)(),e},le={class:"groups"},ce=["value","checked"],de=["textContent"],ve=ue((function(){return(0,r._)("div",{class:"footer buttons"},[(0,r._)("button",{type:"submit"},"Save")],-1)})),pe=["textContent"],fe={key:1,class:"params"},me={class:"row"},ge=ue((function(){return(0,r._)("div",{class:"param-name"},"Name",-1)})),he={class:"param-value"},be=["value"],ye={class:"buttons"},we=ue((function(){return(0,r._)("i",{class:"fas fa-times"},null,-1)})),_e=[we],ke=ue((function(){return(0,r._)("button",{type:"submit",class:"btn btn-default"},[(0,r._)("i",{class:"fa fa-check"})],-1)})),xe=["textContent"],qe={class:"buttons"},ze=ue((function(){return(0,r._)("i",{class:"fa fa-edit"},null,-1)})),Ce=[ze],De={class:"row"},Re=ue((function(){return(0,r._)("div",{class:"param-name"},"IEEE Address",-1)})),Ze=["textContent"],Me={key:0,class:"row"},Ie=ue((function(){return(0,r._)("div",{class:"param-name"},"Network Address",-1)})),Ee=["textContent"],Ge={class:"row"},je=ue((function(){return(0,r._)("div",{class:"param-name"},"Type",-1)})),Ne=["textContent"],Te={key:1,class:"row"},Se=ue((function(){return(0,r._)("div",{class:"param-name"},"Vendor",-1)})),Oe={class:"param-value"},Ve={key:2,class:"row"},Ae=ue((function(){return(0,r._)("div",{class:"param-name"},"Model",-1)})),$e={class:"param-value"},Ue={key:3,class:"row"},Fe=ue((function(){return(0,r._)("div",{class:"param-name"},"Model ID",-1)})),Be={class:"param-value"},Ye={key:4,class:"row"},Pe=ue((function(){return(0,r._)("div",{class:"param-name"},"Description",-1)})),Le={class:"param-value"},He={key:5,class:"row"},Ke=ue((function(){return(0,r._)("div",{class:"param-name"},"Software Build ID",-1)})),We={class:"param-value"},Xe={key:6,class:"row"},Je=ue((function(){return(0,r._)("div",{class:"param-name"},"Date Code",-1)})),Qe={class:"param-value"},et={key:7,class:"row"},tt=ue((function(){return(0,r._)("div",{class:"param-name"},"Power Source",-1)})),nt={class:"param-value"},rt={key:8,class:"section values"},it=ue((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Values")],-1)})),at={class:"body"},st={class:"param-name"},ot={key:0,class:"text"},ut=["textContent"],lt=["textContent"],ct={class:"param-value"},dt={key:2},vt=["value","disabled","onChange"],pt={key:3},ft=["value","onChange"],mt={key:0},gt=["value","textContent","selected","disabled"],ht={key:4},bt=["onChange","value"],yt={key:5},wt=["disabled","value","onChange"],_t={class:"section actions"},kt=ue((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Actions")],-1)})),xt={class:"body"},qt=ue((function(){return(0,r._)("div",{class:"param-name"},"Manage groups",-1)})),zt=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-network-wired"})],-1)})),Ct=[qt,zt],Dt={key:0,class:"param-name"},Rt={key:1,class:"param-name"},Zt=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-sync-alt"})],-1)})),Mt=ue((function(){return(0,r._)("div",{class:"param-name"},"Remove Device",-1)})),It=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-trash"})],-1)})),Et=[Mt,It],Gt=ue((function(){return(0,r._)("div",{class:"param-name"},"Force Remove Device",-1)})),jt=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-trash"})],-1)})),Nt=[Gt,jt];function Tt(e,t,n,a,s,o){var u,l,c,d,v=(0,r.up)("Loading"),p=(0,r.up)("Modal"),f=(0,r.up)("ToggleSwitch"),m=(0,r.up)("Slider");return(0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(["item device",{selected:n.selected}])},[s.loading?((0,r.wg)(),(0,r.j4)(v,{key:0})):(0,r.kq)("",!0),(0,r.Wm)(p,{class:"groups-modal",ref:"groupsModal",title:"Device groups"},{default:(0,r.w5)((function(){return[s.loading?((0,r.wg)(),(0,r.j4)(v,{key:0})):(0,r.kq)("",!0),(0,r._)("form",{class:"content",onSubmit:t[0]||(t[0]=(0,oe.iM)((function(){return o.manageGroups&&o.manageGroups.apply(o,arguments)}),["prevent"]))},[(0,r._)("div",le,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.groups,(function(e,t){var n;return(0,r.wg)(),(0,r.iD)("label",{class:"row group",key:t},[(0,r._)("input",{type:"checkbox",value:t,checked:o.associatedGroups.has(parseInt(e.id))},null,8,ce),(0,r._)("span",{class:"name",textContent:(0,i.zw)(null!==(n=e.friendly_name)&&void 0!==n&&n.length?e.friendly_name:"[Group #".concat(e.id,"]"))},null,8,de)])})),128))]),ve],32)]})),_:1},512),(0,r._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,i.zw)(n.device.friendly_name||n.device.ieee_address),onClick:t[1]||(t[1]=function(t){return e.$emit("select")})},null,10,pe),n.selected?((0,r.wg)(),(0,r.iD)("div",fe,[(0,r._)("div",me,[ge,(0,r._)("div",he,[(0,r._)("div",{class:(0,i.C_)(["name-edit",{hidden:!s.editName}])},[(0,r._)("form",{onSubmit:t[3]||(t[3]=(0,oe.iM)((function(){return o.rename&&o.rename.apply(o,arguments)}),["prevent"]))},[(0,r._)("label",null,[(0,r._)("input",{type:"text",name:"name",ref:"name",value:n.device.friendly_name},null,8,be)]),(0,r._)("span",ye,[(0,r._)("button",{type:"button",class:"btn btn-default",onClick:t[2]||(t[2]=function(e){return s.editName=!1})},_e),ke])],32)],2),(0,r._)("div",{class:(0,i.C_)(["name-edit",{hidden:s.editName}])},[(0,r._)("span",{textContent:(0,i.zw)(n.device.friendly_name)},null,8,xe),(0,r._)("span",qe,[(0,r._)("button",{type:"button",class:"btn btn-default",onClick:t[4]||(t[4]=function(e){return s.editName=!0})},Ce)])],2)])]),(0,r._)("div",De,[Re,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(n.device.ieee_address)},null,8,Ze)]),n.device.network_address?((0,r.wg)(),(0,r.iD)("div",Me,[Ie,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(n.device.network_address)},null,8,Ee)])):(0,r.kq)("",!0),(0,r._)("div",Ge,[je,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(n.device.type)},null,8,Ne)]),null!==(u=n.device.definition)&&void 0!==u&&u.vendor?((0,r.wg)(),(0,r.iD)("div",Te,[Se,(0,r._)("div",Oe,(0,i.zw)(n.device.definition.vendor),1)])):(0,r.kq)("",!0),null!==(l=n.device.definition)&&void 0!==l&&l.model?((0,r.wg)(),(0,r.iD)("div",Ve,[Ae,(0,r._)("div",$e,(0,i.zw)(n.device.definition.model),1)])):(0,r.kq)("",!0),n.device.model_id?((0,r.wg)(),(0,r.iD)("div",Ue,[Fe,(0,r._)("div",Be,(0,i.zw)(n.device.model_id),1)])):(0,r.kq)("",!0),null!==(c=n.device.definition)&&void 0!==c&&c.description?((0,r.wg)(),(0,r.iD)("div",Ye,[Pe,(0,r._)("div",Le,(0,i.zw)(n.device.definition.description),1)])):(0,r.kq)("",!0),n.device.software_build_id?((0,r.wg)(),(0,r.iD)("div",He,[Ke,(0,r._)("div",We,(0,i.zw)(n.device.software_build_id),1)])):(0,r.kq)("",!0),null!==(d=n.device.definition)&&void 0!==d&&d.date_code?((0,r.wg)(),(0,r.iD)("div",Xe,[Je,(0,r._)("div",Qe,(0,i.zw)(n.device.definition.date_code),1)])):(0,r.kq)("",!0),n.device.power_source?((0,r.wg)(),(0,r.iD)("div",et,[tt,(0,r._)("div",nt,(0,i.zw)(n.device.power_source),1)])):(0,r.kq)("",!0),Object.keys(o.displayedValues).length?((0,r.wg)(),(0,r.iD)("div",rt,[it,(0,r._)("div",at,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.displayedValues,(function(e,t){var n,a,s,u,l,c,d,v;return(0,r.wg)(),(0,r.iD)("div",{class:"row value",key:t},[(0,r._)("div",st,[(0,r.Uk)((0,i.zw)(e.description)+" ",1),null!=o.rgbColor&&null!=(null===(n=e.value)||void 0===n?void 0:n.x)&&null!=(null===(a=e.value)||void 0===a?void 0:a.y)||null!=(null===(s=e.value)||void 0===s?void 0:s.hue)&&null!=(null===(u=e.value)||void 0===u?void 0:u.saturation)?((0,r.wg)(),(0,r.iD)("span",ot,"Color")):(0,r.kq)("",!0),e.property?((0,r.wg)(),(0,r.iD)("span",{key:1,class:"name",textContent:(0,i.zw)(e.property)},null,8,ut)):(0,r.kq)("",!0),e.unit?((0,r.wg)(),(0,r.iD)("span",{key:2,class:"unit",textContent:(0,i.zw)(e.unit)},null,8,lt)):(0,r.kq)("",!0)]),(0,r._)("div",ct,["binary"===e.type?((0,r.wg)(),(0,r.j4)(f,{key:0,value:null!=e.value_on?e.value===e.value_on:!!e.value,disabled:!e.writable,onInput:function(t){return o.setValue(e,t)}},null,8,["value","disabled","onInput"])):"numeric"===e.type&&null!=e.value_min&&null!=e.value_max?((0,r.wg)(),(0,r.j4)(m,{key:1,"with-label":!0,range:[e.value_min,e.value_max],value:e.value,disabled:!e.writable,onChange:function(t){return o.setValue(e,t)}},null,8,["range","value","disabled","onChange"])):"numeric"!==e.type||null!=e.value_min&&null!=e.value_max?"enum"===e.type?((0,r.wg)(),(0,r.iD)("label",pt,[(0,r._)("select",{value:e.readable&&null!=e.value?e.value:"",onChange:function(t){return o.setValue(e,t)}},[e.readable?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("option",mt)),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.values,(function(t){return(0,r.wg)(),(0,r.iD)("option",{key:t,value:t,textContent:(0,i.zw)(t),selected:e.readable&&e.value===t,disabled:!e.writable},null,8,gt)})),128))],40,ft)])):null!=o.rgbColor&&null!=(null===(l=e.value)||void 0===l?void 0:l.x)&&null!=(null===(c=e.value)||void 0===c?void 0:c.y)||null!=(null===(d=e.value)||void 0===d?void 0:d.hue)&&null!=(null===(v=e.value)||void 0===v?void 0:v.saturation)?((0,r.wg)(),(0,r.iD)("label",ht,[(0,r._)("input",{type:"color",onChange:(0,oe.iM)((function(t){return o.setValue(e,t)}),["stop"]),value:"#"+o.rgbColor.map((function(e){return e=Number(e).toString(16),1===e.length?"0"+e:e})).join("")},null,40,bt)])):((0,r.wg)(),(0,r.iD)("label",yt,[(0,r._)("input",{type:"text",disabled:!e.writable,value:e.value,onChange:function(t){return o.setValue(e,t)}},null,40,wt)])):((0,r.wg)(),(0,r.iD)("label",dt,[(0,r._)("input",{type:"number","with-label":!0,value:e.value,disabled:!e.writable,onChange:function(t){return o.setValue(e,t)}},null,40,vt)]))])])})),128))])])):(0,r.kq)("",!0),(0,r._)("div",_t,[kt,(0,r._)("div",xt,[(0,r._)("div",{class:"row",onClick:t[5]||(t[5]=function(t){return e.$refs.groupsModal.show()})},Ct),(0,r._)("div",{class:"row",onClick:t[6]||(t[6]=function(e){return s.otaUpdatesAvailable?o.installOtaUpdates():o.checkOtaUpdates()})},[s.otaUpdatesAvailable?((0,r.wg)(),(0,r.iD)("div",Rt,"Install updates")):((0,r.wg)(),(0,r.iD)("div",Dt,"Check for updates")),Zt]),(0,r._)("div",{class:"row",onClick:t[7]||(t[7]=function(e){return o.remove(!1)})},Et),(0,r._)("div",{class:"row error",onClick:t[8]||(t[8]=function(e){return o.remove(!0)})},Nt)])])])):(0,r.kq)("",!0)],2)}var St=n(9584),Ot=n(6084),Vt=n(6347),At=(n(7327),n(9720),n(189),n(8783),n(2479),n(3210),n(8309),n(3123),n(376)),$t=n(6),Ut=n(634),Ft=n(8453),Bt={name:"Device",components:{Modal:Ft.Z,ToggleSwitch:$t.Z,Slider:At.Z,Loading:ae.Z},mixins:[se.Z],emits:["select","rename","remove","groups-edit"],props:{device:{type:Object,required:!0},groups:{type:Object,default:function(){}},selected:{type:Boolean,default:!1}},data:function(){return{editName:!1,loading:!1,status:{},otaUpdatesAvailable:!1}},computed:{values:function(){var e;if(null===(e=this.device.definition)||void 0===e||!e.exposes)return{};var t=function(e){var t,n=function e(t,n){if(t.features){t.property&&(n[t.property]=n[t.property]||{},n=n[t.property]);var r,i=(0,Vt.Z)(t.features);try{for(i.s();!(r=i.n()).done;){var a=r.value;e(a,n)}}catch(s){i.e(s)}finally{i.f()}}else t.property&&(n[t.property]=t)},r={},i=(0,Vt.Z)(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;n(a,r)}}catch(s){i.e(s)}finally{i.f()}return r};return t(this.device.definition.exposes)},displayedValues:function(){var e=this,t={},n=function t(n,r){var i=(0,Ot.Z)(r,2),a=i[0],s=i[1];return a in e.status&&(s=(0,te.Z)((0,te.Z)({},s),{},{value:e.status[a]})),null!=s.access&&(s.readable=!!(1&s.access),s.writable=!!(2&s.access),delete s.access),n[a]=s,Object.entries(s).filter((function(e){return e[1]instanceof Object})).reduce(t,n[a]),n};return Object.entries(this.values).reduce(n,t),t},rgbColor:function(){var e;if(this.displayedValues.color){var t=null===(e=this.displayedValues.color)||void 0===e?void 0:e.value;if(t){if(null!=t.x&&null!=t.y){var n,r,i=new Ut.N({bri:[(null===(n=this.displayedValues.brightness)||void 0===n?void 0:n.value_min)||0,(null===(r=this.displayedValues.brightness)||void 0===r?void 0:r.value_max)||255]});return i.xyToRgb(t.x,t.y,this.displayedValues.brightness.value)}if(null!=t.hue&&(null!=t.saturation||null!=t.sat)){var a,s,o,u,l=null!=t.saturation?"saturation":"sat",c=new Ut.N({hue:[(null===(a=this.displayedValues.color.hue)||void 0===a?void 0:a.value_min)||0,this.displayedValues.color.hue.value_max||65535],sat:[(null===(s=this.displayedValues.color[l])||void 0===s?void 0:s.value_min)||0,this.displayedValues.color[l].value_max||255],bri:[(null===(o=this.displayedValues.brightness)||void 0===o?void 0:o.value_min)||0,(null===(u=this.displayedValues.brightness)||void 0===u?void 0:u.value_max)||255]});return c.hslToRgb(t.hue,t[l],this.displayedValues.brightness.value)}return null}}},associatedGroups:function(){var e=this;return new Set(Object.values(this.groups).filter((function(t){return new Set((t.members||[]).map((function(e){return e.ieee_address}))).has(e.device.ieee_address)})).map((function(e){return parseInt(e.id)})))}},methods:{refresh:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.device_get",{device:e.device.friendly_name||e.device.ieee_address});case 4:e.status=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},rename:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=(e.$refs.name.value||"").trim(),n.length&&n!==e.device.friendly_name){t.next=3;break}return t.abrupt("return");case 3:return e.loading=!0,t.prev=4,t.next=7,e.request("zigbee.mqtt.device_rename",{device:null!==(r=e.device.friendly_name)&&void 0!==r&&r.length?e.device.friendly_name:e.device.ieee_address,name:n});case 7:e.$emit("rename",{name:e.device.friendly_name,newName:n});case 8:return t.prev=8,e.editName=!1,e.loading=!1,t.finish(8);case 12:case"end":return t.stop()}}),t,null,[[4,,8,12]])})))()},remove:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(confirm("Are you really sure that you want to remove this device from the network?")){n.next=2;break}return n.abrupt("return");case 2:return e=!!e,t.loading=!0,n.prev=4,n.next=7,t.request("zigbee.mqtt.device_remove",{device:null!==(r=t.device.friendly_name)&&void 0!==r&&r.length?t.device.friendly_name:t.device.ieee_address,force:e});case 7:t.$emit("remove",{device:t.device.friendly_name||t.device.ieee_address});case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[4,,8,11]])})))()},setValue:function(e,t){var n=this;return(0,ne.Z)(regeneratorRuntime.mark((function r(){var i,a,s,o,u,l,c,d,v,p,f,m,g,h;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:a={device:n.device.friendly_name||n.device.ieee_address,property:e.property,value:null},r.t0=e.type,r.next="binary"===r.t0?4:"numeric"===r.t0?6:"enum"===r.t0?8:10;break;case 4:return e.value_toggle?a.value=e.value_toggle:e.value_on&&e.value_off?a.value=e.value===e.value_on?e.value_off:e.value_on:a.value=!e.value,r.abrupt("break",12);case 6:return a.value=parseFloat(t.target.value),r.abrupt("break",12);case 8:return null!==(i=t.target.value)&&void 0!==i&&i.length&&(a.value=t.target.value),r.abrupt("break",12);case 10:return(null!=e.x&&null!=e.y||null!=e.hue&&(null!=e.saturation||null!=e.sat))&&(a.property="color",s=t.target.value.slice(1).split(/([0-9a-fA-F]{2})/).filter((function(e,t){return t%2})).map((function(e){return parseInt(e,16)})),null!=e.x&&null!=e.y?(l=new Ut.N({bri:[(null===(o=n.displayedValues.brightness)||void 0===o?void 0:o.value_min)||0,(null===(u=n.displayedValues.brightness)||void 0===u?void 0:u.value_max)||255]}),c=l.rgbToXY.apply(l,(0,St.Z)(s)),a.value={color:{x:c[0],y:c[1]}}):(m=null!=n.displayedValues.color.saturation?"saturation":"sat",g=new Ut.N({hue:[(null===(d=n.displayedValues.color.hue)||void 0===d?void 0:d.value_min)||0,n.displayedValues.color.hue.value_max||65535],sat:[(null===(v=n.displayedValues.color[m])||void 0===v?void 0:v.value_min)||0,n.displayedValues.color[m].value_max||255],bri:[(null===(p=n.displayedValues.brightness)||void 0===p?void 0:p.value_min)||0,(null===(f=n.displayedValues.brightness)||void 0===f?void 0:f.value_max)||255]}),h=g.rgbToHsl.apply(g,(0,St.Z)(s)),a.value={brightness:h[2],color:{hue:h[0]}},a.value.color[m]=h[1])),r.abrupt("break",12);case 12:if(null!=a.value){r.next=14;break}return r.abrupt("return");case 14:return n.loading=!0,r.prev=15,r.next=18,n.request("zigbee.mqtt.device_set",a);case 18:return r.next=20,n.refresh();case 20:return r.prev=20,n.loading=!1,r.finish(20);case 23:case"end":return r.stop()}}),r,null,[[15,,20,23]])})))()},manageGroups:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=(0,St.Z)(e.target.querySelectorAll("input[type=checkbox]")).reduce((function(e,n){var r=parseInt(n.value);return n.checked&&!t.associatedGroups.has(r)?e.add.add(r):!n.checked&&t.associatedGroups.has(r)&&e.remove.add(r),e}),{add:new Set,remove:new Set}),i=function(){var e=(0,ne.Z)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all((0,St.Z)(r[n]).map(function(){var e=(0,ne.Z)(regeneratorRuntime.mark((function e(r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.request("zigbee.mqtt.group_".concat(n,"_device"),{group:t.groups[r].friendly_name,device:null!==(i=t.device.friendly_name)&&void 0!==i&&i.length?t.device.friendly_name:t.device.ieee_address});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.loading=!0,n.prev=3,n.next=6,Promise.all(Object.keys(r).map(i));case 6:t.$emit("groups-edit",r);case 7:return n.prev=7,t.loading=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[3,,7,10]])})))()},checkOtaUpdates:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.device_check_ota_updates",{device:null!==(n=e.device.friendly_name)&&void 0!==n&&n.length?e.device.friendly_name:e.device.ieee_address});case 4:e.otaUpdatesAvailable=t.sent.update_available,e.otaUpdatesAvailable?e.notify({text:"A firmware update is available for the device",image:{iconClass:"fa fa-sync-alt"}}):e.notify({text:"The device is up to date",image:{iconClass:"fa fa-check"}});case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()},installOtaUpdates:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.device_install_ota_updates",{device:null!==(n=e.device.friendly_name)&&void 0!==n&&n.length?e.device.friendly_name:e.device.ieee_address});case 4:return t.prev=4,e.loading=!1,t.finish(4);case 7:case"end":return t.stop()}}),t,null,[[1,,4,7]])})))()}},mounted:function(){var e=this;this.$watch((function(){return e.selected}),(function(t){t&&e.refresh()})),this.$watch((function(){return e.status.update_available}),(function(t){e.otaUpdatesAvailable=t})),this.subscribe((function(t){t.device!==e.device.friendly_name&&t.device!==e.device.ieee_address||(e.status=(0,te.Z)((0,te.Z)({},e.status),t.properties))}),"on-property-change-".concat(this.device.ieee_address),"platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePropertySetEvent")},unmounted:function(){this.unsubscribe("on-property-change-".concat(this.device.ieee_address))}},Yt=n(3744);const Pt=(0,Yt.Z)(Bt,[["render",Tt],["__scopeId","data-v-b05d09fc"]]);var Lt=Pt,Ht=function(e){return(0,r.dD)("data-v-7667f7ba"),e=e(),(0,r.Cn)(),e},Kt=["textContent"],Wt={key:1,class:"params"},Xt={class:"section devices"},Jt=Ht((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Devices")],-1)})),Qt={class:"body"},en=["checked","value","onChange"],tn=["textContent"],nn={class:"section actions"},rn=Ht((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Actions")],-1)})),an={class:"body"},sn=Ht((function(){return(0,r._)("div",{class:"col-10"},"Rename Group",-1)})),on=Ht((function(){return(0,r._)("div",{class:"buttons col-2 pull-right"},[(0,r._)("i",{class:"fa fa-edit"})],-1)})),un=[sn,on],ln=Ht((function(){return(0,r._)("div",{class:"col-10"},"Remove Group",-1)})),cn=Ht((function(){return(0,r._)("div",{class:"buttons col-2 pull-right"},[(0,r._)("i",{class:"fa fa-trash"})],-1)})),dn=[ln,cn];function vn(e,t,n,a,s,o){var u=(0,r.up)("Loading");return(0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(["item group",{selected:n.selected}])},[s.loading?((0,r.wg)(),(0,r.j4)(u,{key:0})):(0,r.kq)("",!0),(0,r._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,i.zw)(n.group.friendly_name),onClick:t[0]||(t[0]=function(t){return e.$emit("select")})},null,10,Kt),n.selected?((0,r.wg)(),(0,r.iD)("div",Wt,[(0,r._)("div",Xt,[Jt,(0,r._)("div",Qt,[(0,r._)("form",null,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.devices,(function(e,t){var n;return(0,r.wg)(),(0,r.iD)("label",{class:"row",key:t},[(0,r._)("input",{type:"checkbox",checked:o.members.has(e.ieee_address),value:e.ieee_address,onChange:function(t){return o.toggleDevice(e.ieee_address)}},null,40,en),(0,r._)("span",{class:"label",textContent:(0,i.zw)(null!==(n=e.friendly_name)&&void 0!==n&&n.length?e.friendly_name:e.ieee_address)},null,8,tn)])})),128))])])]),(0,r._)("div",nn,[rn,(0,r._)("div",an,[(0,r._)("div",{class:"row",onClick:t[1]||(t[1]=function(){return o.rename&&o.rename.apply(o,arguments)})},un),(0,r._)("div",{class:"row",onClick:t[2]||(t[2]=function(){return o.remove&&o.remove.apply(o,arguments)})},dn)])])])):(0,r.kq)("",!0)],2)}var pn={name:"Group",emits:["select","remove","edit"],mixins:[se.Z],components:{Loading:ae.Z},props:{group:{type:Object,required:!0},devices:{type:Object,default:function(){return{}}},selected:{type:Boolean,default:!1}},data:function(){return{loading:!1,values:{}}},computed:{devicesByAddress:function(){return Object.entries(this.devices).reduce((function(e,t){var n=t[1];return e[n.ieee_address]=n,e}),{})},members:function(){return new Set((this.group.members||[]).map((function(e){return e.ieee_address})))}},methods:{remove:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(confirm("Are you sure that you want to remove this group?")){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,t.prev=3,t.next=6,e.request("zigbee.mqtt.group_remove",{name:e.group.friendly_name});case 6:e.$emit("remove",{name:e.group.friendly_name});case 7:return t.prev=7,e.loading=!1,t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[3,,7,10]])})))()},rename:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=prompt("New group name",e.group.friendly_name),null!==(n=r)&&void 0!==n&&n.length){t.next=3;break}return t.abrupt("return");case 3:return r=r.trim(),e.loading=!0,t.prev=5,t.next=8,e.request("zigbee.mqtt.group_rename",{group:e.group.friendly_name||e.group.id,name:r});case 8:e.$emit("rename",{name:e.group.friendly_name,newName:r});case 9:return t.prev=9,e.loading=!1,t.finish(9);case 12:case"end":return t.stop()}}),t,null,[[5,,9,12]])})))()},toggleDevice:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r,i,a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.devicesByAddress[e],a=null!==(r=i.friendly_name)&&void 0!==r&&r.length?i.friendly_name:e,s=t.members.has(e)?"remove":"add",t.loading=!0,n.prev=4,n.next=7,t.request("zigbee.mqtt.group_".concat(s,"_device"),{group:t.group.friendly_name,device:a});case 7:t.$emit("edit",{device:a,method:s});case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[4,,8,11]])})))()}}};const fn=(0,Yt.Z)(pn,[["render",vn],["__scopeId","data-v-7667f7ba"]]);var mn=fn,gn={name:"ZigbeeMqtt",components:{Modal:Ft.Z,Dropdown:re.Z,DropdownItem:ie.Z,Loading:ae.Z,Device:Lt,Group:mn},mixins:[se.Z],data:function(){return{devices:{},groups:{},status:{},loading:!1,selected:{view:"devices",deviceId:void 0,groupId:void 0},views:{devices:!0,groups:!0},modal:{group:{visible:!1}}}},methods:{refreshDevices:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.devices");case 4:e.devices=t.sent.reduce((function(t,n){return n.friendly_name in e.devices&&(n=(0,te.Z)({values:e.devices[n.friendly_name].values||{}},e.devices[n.friendly_name])),t[n.friendly_name]=n,t}),{});case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},refreshGroups:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.groups");case 4:e.groups=t.sent.reduce((function(e,t){return e[t.id]=t,e}),{});case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},refreshInfo:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.info");case 4:e.status=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},refresh:function(){this.refreshDevices(),this.refreshGroups(),this.refreshInfo()},updateProperties:function(e,t){this.devices[e].values=t},addGroup:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=prompt("Group name"),n&&n.length){t.next=3;break}return t.abrupt("return");case 3:return e.loading=!0,t.prev=4,t.next=7,e.request("zigbee.mqtt.group_add",{name:n});case 7:return t.prev=7,e.loading=!1,t.finish(7);case 10:return t.next=12,e.refreshGroups();case 12:case"end":return t.stop()}}),t,null,[[4,,7,10]])})))()},permitJoin:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={permit:!!e},e&&(i=prompt("Join allow period in seconds (0 or empty for no time limits)","60"),r.seconds=i.length?parseInt(i):null),t.loading=!0,n.prev=3,n.next=6,t.request("zigbee.mqtt.permit_join",r);case 6:setTimeout(t.refreshInfo,1e3);case 7:return n.prev=7,t.loading=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[3,,7,10]])})))()},factoryReset:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(confirm("Are you SURE that you want to do a device factory reset?")){t.next=3;break}if(confirm("Are you REALLY sure? ALL network information and custom firmware will be lost!!")){t.next=3;break}return t.abrupt("return");case 3:return e.loading=!0,t.prev=4,t.next=7,e.request("zigbee.mqtt.factory_reset");case 7:return t.prev=7,e.loading=!1,t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[4,,7,10]])})))()},addToGroup:function(e,t){var n=this;return(0,ne.Z)(regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n.loading=!0,r.next=3,n.request("zigbee.mqtt.group_add_device",{device:e,group:t});case 3:n.loading=!1,i=n,setTimeout((function(){i.refresh(),i.refreshGroups()}),100);case 6:case"end":return r.stop()}}),r)})))()}},created:function(){var e=this;this.subscribe((function(){e.notify({text:"WARNING: The controller is offline",error:!0})}),"on-zigbee-offline","platypush.message.event.zigbee.mqtt.ZigbeeMqttOfflineEvent"),this.subscribe((function(){e.notify({text:"The controller is now online",iconClass:"fas fa-check"})}),"on-zigbee-online","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent"),this.subscribe((function(){e.notify({text:"Failed to remove the device",error:!0})}),"on-zigbee-device-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedFailedEvent"),this.subscribe((function(){e.notify({text:"Failed to add the group",error:!0})}),"on-zigbee-group-add-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedFailedEvent"),this.subscribe((function(){e.notify({text:"Failed to remove group",error:!0})}),"on-zigbee-group-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedFailedEvent"),this.subscribe((function(){e.notify({text:"Failed to remove the devices from group",error:!0})}),"on-zigbee-remove-all-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllFailedEvent"),this.subscribe((function(t){e.notify({text:t.error||"[Unknown error]",error:!0})}),"on-zigbee-error","platypush.message.event.zigbee.mqtt.ZigbeeMqttErrorEvent"),this.subscribe(this.refresh,"on-zigbee-device-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePairingEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceConnectedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBannedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceWhitelistedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRenamedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBindEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceUnbindEvent"),this.subscribe(this.refreshGroups,"on-zigbee-group-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllEvent")},mounted:function(){this.refresh()},unmounted:function(){this.unsubscribe("on-zigbee-error"),this.unsubscribe("on-zigbee-remove-all-failed"),this.unsubscribe("on-zigbee-group-remove-failed"),this.unsubscribe("on-zigbee-group-add-failed"),this.unsubscribe("on-zigbee-device-remove-failed"),this.unsubscribe("on-zigbee-online"),this.unsubscribe("on-zigbee-offline"),this.unsubscribe("on-zigbee-device-update"),this.unsubscribe("on-zigbee-group-update")}};const hn=(0,Yt.Z)(gn,[["render",ee]]);var bn=hn}}]); -//# sourceMappingURL=4604-legacy.2f44612f.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js.map b/platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js.map deleted file mode 100644 index 77312e18c..000000000 --- a/platypush/backend/http/webapp/dist/static/js/4604-legacy.2f44612f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/4604-legacy.2f44612f.js","mappings":"qGACA,IAAIA,EAAQ,EAAQ,MAEpBC,EAAOC,QAAUF,GAAM,WACrB,GAA0B,mBAAfG,YAA2B,CACpC,IAAIC,EAAS,IAAID,YAAY,GAEzBE,OAAOC,aAAaF,IAASC,OAAOE,eAAeH,EAAQ,IAAK,CAAEI,MAAO,GAC/E,CACF,G,oCCRA,IAAID,EAAiB,UACj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,kEACA,mEACA,uEACA,mEACA,gEACA,mEAGJ5R,KAAKmX,UAAUnX,KAAKiS,cAAe,yBAC/B,gEACA,kEACA,oEAEL,EAEDxC,QArNa,WAsNXzP,KAAK4R,SACN,EAEDyF,UAzNa,WA0NXrX,KAAKsX,YAAY,mBACjBtX,KAAKsX,YAAY,+BACjBtX,KAAKsX,YAAY,iCACjBtX,KAAKsX,YAAY,8BACjBtX,KAAKsX,YAAY,kCACjBtX,KAAKsX,YAAY,oBACjBtX,KAAKsX,YAAY,qBACjBtX,KAAKsX,YAAY,2BACjBtX,KAAKsX,YAAY,yBAClB,GKzVH,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAAS3H,MAEpE,S","sources":["webpack://platypush/./node_modules/core-js/internals/array-buffer-non-extensible.js","webpack://platypush/./node_modules/core-js/internals/collection-strong.js","webpack://platypush/./node_modules/core-js/internals/collection.js","webpack://platypush/./node_modules/core-js/internals/define-built-ins.js","webpack://platypush/./node_modules/core-js/internals/freezing.js","webpack://platypush/./node_modules/core-js/internals/get-substitution.js","webpack://platypush/./node_modules/core-js/internals/internal-metadata.js","webpack://platypush/./node_modules/core-js/internals/object-is-extensible.js","webpack://platypush/./node_modules/core-js/internals/string-trim-forced.js","webpack://platypush/./node_modules/core-js/modules/es.set.constructor.js","webpack://platypush/./node_modules/core-js/modules/es.set.js","webpack://platypush/./node_modules/core-js/modules/es.string.replace.js","webpack://platypush/./node_modules/core-js/modules/es.string.trim.js","webpack://platypush/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://platypush/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue?8b6d","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue?46cd","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue?dac0"],"sourcesContent":["// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar create = require('../internals/object-create');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/define-iterator');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineProperty(Prototype, 'size', {\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return { value: undefined, done: true };\n }\n // return step by kind\n if (kind == 'keys') return { value: entry.key, done: false };\n if (kind == 'values') return { value: entry.value, done: false };\n return { value: [entry.key, entry.value], done: false };\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es-x/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.set.constructor');\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar getMethod = require('../internals/get-method');\nvar getSubstitution = require('../internals/get-substitution');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar max = Math.max;\nvar min = Math.min;\nvar concat = uncurryThis([].concat);\nvar push = uncurryThis([].push);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar stringSlice = uncurryThis(''.slice);\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive\n return ''.replace(re, '$') !== '7';\n});\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);\n return replacer\n ? call(replacer, searchValue, O, replaceValue)\n : call(nativeReplace, toString(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (\n typeof replaceValue == 'string' &&\n stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&\n stringIndexOf(replaceValue, '$<') === -1\n ) {\n var res = maybeCallNative(nativeReplace, rx, S, replaceValue);\n if (res.done) return res.value;\n }\n\n var functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n push(results, result);\n if (!global) break;\n\n var matchStr = toString(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = toString(result[0]);\n var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = concat([matched], captures, position, S);\n if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);\n var replacement = toString(apply(replaceValue, undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + stringSlice(S, nextSourcePosition);\n }\n ];\n}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Device.vue?vue&type=template&id=b05d09fc&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=b05d09fc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b05d09fc\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=7667f7ba&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=7667f7ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7667f7ba\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=b15233ac\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=b15233ac&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["fails","module","exports","ArrayBuffer","buffer","Object","isExtensible","defineProperty","value","create","defineBuiltIns","bind","anInstance","iterate","defineIterator","setSpecies","DESCRIPTORS","fastKey","InternalStateModule","setInternalState","set","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","IS_MAP","ADDER","Constructor","that","iterable","Prototype","type","index","first","undefined","last","size","AS_ENTRIES","prototype","getInternalState","define","key","previous","state","entry","getEntry","next","removed","clear","this","data","prev","forEach","callbackfn","boundFunction","arguments","length","has","get","add","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","target","done","$","global","uncurryThis","isForced","defineBuiltIn","InternalMetadataModule","isCallable","isObject","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","indexOf","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","uncurriedNativeMethod","REPLACE","entries","enable","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","constructor","forced","src","options","preventExtensions","toObject","floor","Math","charAt","replace","stringSlice","slice","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","str","position","captures","namedCaptures","replacement","tailPos","m","symbols","match","ch","capture","n","f","hiddenKeys","hasOwn","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","id","setMetadata","it","objectID","weakData","getWeakData","onFreeze","meta","getOwnPropertyNames","splice","test","result","i","stat","classof","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","PROPER_FUNCTION_NAME","whitespaces","non","METHOD_NAME","name","collection","collectionStrong","init","apply","call","fixRegExpWellKnownSymbolLogic","anObject","toIntegerOrInfinity","toLength","toString","requireObjectCoercible","advanceStringIndex","getMethod","getSubstitution","regExpExec","wellKnownSymbol","max","min","concat","push","stringIndexOf","maybeToString","String","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","REPLACE_SUPPORTS_NAMED_GROUPS","re","exec","groups","a","_","nativeReplace","maybeCallNative","UNSAFE_SUBSTITUTE","searchValue","replaceValue","O","replacer","string","rx","S","res","functionalReplace","fullUnicode","unicode","lastIndex","results","matchStr","accumulatedResult","nextSourcePosition","j","replacerArgs","$trim","forcedStringTrimMethod","proto","trim","_classCallCheck","TypeError","_defineProperties","props","descriptor","enumerable","configurable","writable","_createClass","protoProps","staticProps","ColorConverter","ranges","hue","sat","bri","ct","keys","attr","x","xRange","yRange","h","s","l","normalize","k","color","round","r","g","b","d","parseInt","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","parseFloat","rgbToHsl","rgb","xy","getRGB","getXY","xyToRgb","hslToRgb","console","debug","rgbToXY","hex","join","class","ref","range","step","disabled","onUpdate","withLabel","emits","Number","Boolean","default","Array","methods","event","update","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","status","info","permit_join","network","channel","version","config","mqtt","server","serial","port","coordinator","maintrel","majorrel","minorrel","revision","selected","view","$event","views","enabled","toUpperCase","addGroup","text","infoModal","show","permitJoin","factoryReset","refresh","devices","device","deviceId","refreshDevices","refreshGroups","group","groupId","manageGroups","associatedGroups","friendly_name","ieee_address","editName","rename","network_address","definition","vendor","model","model_id","description","software_build_id","date_code","power_source","displayedValues","property","rgbColor","unit","value_on","setValue","value_min","value_max","readable","values","option","groupsModal","otaUpdatesAvailable","installOtaUpdates","checkOtaUpdates","remove","components","Modal","ToggleSwitch","Slider","Loading","mixins","Utils","required","computed","exposes","extractValues","extractValue","root","features","feature","ret","mergeValues","obj","access","filter","v","reduce","converter","saturation","satAttr","Set","members","member","request","newName","force","confirm","value_toggle","value_off","split","hsl","querySelectorAll","element","editGroups","action","Promise","all","update_available","notify","image","iconClass","$watch","newValue","subscribe","properties","unmounted","unsubscribe","toggleDevice","devicesByAddress","prompt","ieeeAddress","method","Dropdown","DropdownItem","Device","Group","modal","visible","refreshInfo","updateProperties","permit","args","seconds","setTimeout","addToGroup","self","created","error"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js b/platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js deleted file mode 100644 index 092506d77..000000000 --- a/platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4604],{4212:function(e,t,s){s.d(t,{N:function(){return a}});class a{constructor(e){if(this.ranges={hue:[0,360],sat:[0,100],bri:[0,100],ct:[154,500]},e)for(const t of Object.keys(this.ranges))e[t]&&(this.ranges[t]=e[t])}normalize(e,t,s){return s[0]+(e-t[0])*(s[1]-s[0])/(t[1]-t[0])}hslToRgb(e,t,s){[e,t,s]=[this.normalize(e,this.ranges.hue,[0,360]),this.normalize(t,this.ranges.sat,[0,100]),this.normalize(s,this.ranges.bri,[0,100])],s/=100;const a=t*Math.min(s,1-s)/100,i=t=>{const i=(t+e/30)%12,n=s-a*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*n)};return[i(0),i(8),i(4)]}rgbToHsl(e,t,s){e/=255,t/=255,s/=255;const a=Math.max(e,t,s),i=Math.min(e,t,s);let n,l,o=(a+i)/2;if(a===i)n=l=0;else{const r=a-i;switch(l=o>.5?r/(2-a-i):r/(a+i),a){case e:n=(t-s)/r+(td&&o>r&&o>1?(r/=o,d/=o,o=1):r>d&&r>o&&r>1?(o/=r,d/=r,r=1):d>o&&d>r&&d>1&&(o/=d,r/=d,d=1),o=o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055,r=r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055,d=d<=.0031308?12.92*d:1.055*Math.pow(d,1/2.4)-.055,o=Math.round(255*o),r=Math.round(255*r),d=Math.round(255*d),isNaN(o)&&(o=0),isNaN(r)&&(r=0),isNaN(d)&&(d=0),[o,r,d].map((e=>Math.min(Math.max(0,e),255)))}rgbToXY(e,t,s){e>1&&(e/=255),t>1&&(t/=255),s>1&&(s/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;const a=.664511*e+.154324*t+.162028*s,i=.283881*e+.668433*t+.047685*s,n=88e-6*e+.07231*t+.986039*s;let l=parseFloat((a/(a+i+n)).toFixed(4)),o=parseFloat((i/(a+i+n)).toFixed(4));return isNaN(l)&&(l=0),isNaN(o)&&(o=0),[l,o]}rgbToBri(e,t,s){return Math.min(2*this.rgbToHsl(e,t,s)[2],this.ranges.bri[1])}getRGB(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}getXY(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}toRGB(e){const t=this.getRGB(e);if(t)return t;const s=this.getXY(e);return s&&e.bri?this.xyToRgb(...s,e.bri):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}toXY(e){const t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];const s=this.getRGB(e);if(s)return this.rgbToXY(...s);if(e.hue&&e.sat&&e.bri){const t=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY(...t)}console.debug("Could not determine color space"),console.debug(e)}toHSL(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];const t=this.getRGB(e);if(t)return this.rgbToHsl(...t);const s=this.getXY(e);if(s&&e.bri){const t=this.xyToRgb(...s,e.bri);return this.rgbToHsl(...t)}console.debug("Could not determine color space"),console.debug(e)}hexToRgb(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((e=>parseInt(e,16)))}rgbToHex(e){return"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}},376:function(e,t,s){s.d(t,{Z:function(){return g}});var a=s(6252),i=s(9963),n=s(3577);const l={class:"slider-wrapper"},o=["min","max","step","disabled","value"],r={class:"track"},d={class:"track-inner",ref:"track"},u={class:"thumb",ref:"thumb"},c=["textContent"];function v(e,t,s,v,p,h){return(0,a.wg)(),(0,a.iD)("label",l,[(0,a._)("input",{class:"slider",type:"range",ref:"range",min:s.range[0],max:s.range[1],step:s.step,disabled:s.disabled,value:s.value,onInput:t[0]||(t[0]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,i.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"]))},null,40,o),(0,a._)("div",r,[(0,a._)("div",d,null,512)]),(0,a._)("div",u,null,512),s.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,n.zw)(s.value)},null,8,c)):(0,a.kq)("",!0)])}var p={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left=`${t}%`,this.$refs.thumb.style.transform=`translate(-${t}%, -50%)`,this.$refs.track.style.width=`${t}%`}},mounted(){null!=this.value&&this.update(this.value)}},h=s(3744);const m=(0,h.Z)(p,[["render",v],["__scopeId","data-v-95edc28a"]]);var g=m},6:function(e,t,s){s.d(t,{Z:function(){return h}});var a=s(6252),i=s(3577),n=s(9963);const l=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),o=["checked"],r=l((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),d={class:"label"};function u(e,t,s,l,u,c){return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:s.disabled}]),onClick:t[0]||(t[0]=(0,n.iM)(((...e)=>c.onInput&&c.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:s.value},null,8,o),(0,a._)("label",null,[r,(0,a._)("span",d,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var c={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=s(3744);const p=(0,v.Z)(c,[["render",u],["__scopeId","data-v-a6396ae8"]]);var h=p},4604:function(e,t,s){s.r(t),s.d(t,{default:function(){return vs}});var a=s(6252),i=s(3577);const n={class:"zigbee-container"},l={key:0,class:"info-body"},o={class:"row"},r=(0,a._)("div",{class:"param-name"},"State",-1),d=["textContent"],u={class:"row"},c=(0,a._)("div",{class:"param-name"},"Permit Join",-1),v=["textContent"],p={key:0,class:"row"},h=(0,a._)("div",{class:"param-name"},"Network Channel",-1),m=["textContent"],g={class:"row"},b=(0,a._)("div",{class:"param-name"},"Zigbee2MQTT Version",-1),y=["textContent"],f={key:1,class:"row"},_=(0,a._)("div",{class:"param-name"},"MQTT Server",-1),w=["textContent"],k={key:2,class:"row"},q=(0,a._)("div",{class:"param-name"},"Serial Port",-1),x=["textContent"],C={key:3,class:"row"},z=(0,a._)("div",{class:"param-name"},"Firmware Type",-1),D=["textContent"],M={key:4,class:"row"},G=(0,a._)("div",{class:"param-name"},"Firmware Version",-1),R={class:"param-value"},Z={key:5,class:"row"},I=(0,a._)("div",{class:"param-name"},"Firmware Revision",-1),N=["textContent"],T={class:"view-options"},V={class:"view-selector col-s-8 col-m-9 col-l-10"},U=["value"],j=["textContent","selected","value"],E={class:"buttons"},S=["disabled"],A=(0,a._)("i",{class:"fa fa-plus"},null,-1),$=[A],O=["disabled"],F=(0,a._)("i",{class:"fa fa-sync-alt"},null,-1),B=[F],Y={class:"view-container"},L={key:0,class:"view devices"},H={key:0,class:"no-items"},K={key:0,class:"loading"},P={key:1,class:"empty"},X={key:1,class:"view groups"},W={key:0,class:"no-items"},J={key:0,class:"loading"},Q={key:1,class:"empty"};function ee(e,t,s,A,F,ee){const te=(0,a.up)("Loading"),se=(0,a.up)("Modal"),ae=(0,a.up)("DropdownItem"),ie=(0,a.up)("Dropdown"),ne=(0,a.up)("Device"),le=(0,a.up)("Group");return(0,a.wg)(),(0,a.iD)("div",n,[F.loading?((0,a.wg)(),(0,a.j4)(te,{key:0})):(0,a.kq)("",!0),(0,a.Wm)(se,{title:"Network Info",ref:"infoModal"},{default:(0,a.w5)((()=>[F.status.info?((0,a.wg)(),(0,a.iD)("div",l,[(0,a._)("div",o,[r,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.state)},null,8,d)]),(0,a._)("div",u,[c,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.permit_join)},null,8,v)]),F.status.info.network?((0,a.wg)(),(0,a.iD)("div",p,[h,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.network.channel)},null,8,m)])):(0,a.kq)("",!0),(0,a._)("div",g,[b,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.version)},null,8,y)]),F.status.info.config?.mqtt?((0,a.wg)(),(0,a.iD)("div",f,[_,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.mqtt.server)},null,8,w)])):(0,a.kq)("",!0),F.status.info.config?.serial?((0,a.wg)(),(0,a.iD)("div",k,[q,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.serial.port)},null,8,x)])):(0,a.kq)("",!0),F.status.info.coordinator?.type?((0,a.wg)(),(0,a.iD)("div",C,[z,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.type)},null,8,D)])):(0,a.kq)("",!0),F.status.info.coordinator?.meta?((0,a.wg)(),(0,a.iD)("div",M,[G,(0,a._)("div",R,(0,i.zw)(F.status.info.coordinator.meta.maintrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.majorrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.minorrel),1)])):(0,a.kq)("",!0),F.status.info.coordinator?.meta?((0,a.wg)(),(0,a.iD)("div",Z,[I,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.meta.revision)},null,8,N)])):(0,a.kq)("",!0)])):(0,a.kq)("",!0)])),_:1},512),(0,a._)("div",T,[(0,a._)("div",V,[(0,a._)("label",null,[(0,a._)("select",{value:F.selected.view,onChange:t[0]||(t[0]=e=>this.selected.view=e.target.value)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(F.views,((e,t)=>((0,a.wg)(),(0,a.iD)("option",{textContent:(0,i.zw)((t[0].toUpperCase()+t.slice(1)).replace("_"," ")),key:t,selected:e,value:t},null,8,j)))),128))],40,U)])]),(0,a._)("div",E,["groups"===F.selected.view?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"btn btn-default",title:"Add Group",disabled:F.loading,onClick:t[1]||(t[1]=(...e)=>ee.addGroup&&ee.addGroup(...e))},$,8,S)):(0,a.kq)("",!0),(0,a.Wm)(ie,{ref:"networkCommandsDropdown","icon-class":"fa fa-cog",title:"Network commands"},{default:(0,a.w5)((()=>[(0,a.Wm)(ae,{text:"Network Info",disabled:F.loading,onClick:t[2]||(t[2]=t=>e.$refs.infoModal.show())},null,8,["disabled"]),F.status.info?.permit_join?((0,a.wg)(),(0,a.j4)(ae,{key:1,text:"Disable Join",disabled:F.loading,onClick:t[4]||(t[4]=e=>ee.permitJoin(!1))},null,8,["disabled"])):((0,a.wg)(),(0,a.j4)(ae,{key:0,text:"Permit Join",disabled:F.loading,onClick:t[3]||(t[3]=e=>ee.permitJoin(!0))},null,8,["disabled"])),(0,a.Wm)(ae,{text:"Factory Reset",disabled:F.loading,onClick:ee.factoryReset},null,8,["disabled","onClick"])])),_:1},512),(0,a._)("button",{class:"btn btn-default",title:"Refresh network",disabled:F.loading,onClick:t[5]||(t[5]=(...e)=>ee.refresh&&ee.refresh(...e))},B,8,O)])]),(0,a._)("div",Y,["devices"===F.selected.view?((0,a.wg)(),(0,a.iD)("div",L,[Object.keys(F.devices).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",H,[F.loading?((0,a.wg)(),(0,a.iD)("div",K,"Loading devices...")):((0,a.wg)(),(0,a.iD)("div",P,"No devices found on the network"))])),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(F.devices,((e,t)=>((0,a.wg)(),(0,a.j4)(ne,{key:t,device:e,groups:F.groups,selected:F.selected.deviceId===t,onSelect:e=>F.selected.deviceId=F.selected.deviceId===t?null:t,onRename:ee.refreshDevices,onRemove:ee.refreshDevices,onGroupsEdit:ee.refreshGroups},null,8,["device","groups","selected","onSelect","onRename","onRemove","onGroupsEdit"])))),128))])):"groups"===F.selected.view?((0,a.wg)(),(0,a.iD)("div",X,[Object.keys(F.groups).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",W,[F.loading?((0,a.wg)(),(0,a.iD)("div",J,"Loading groups...")):((0,a.wg)(),(0,a.iD)("div",Q,"No groups available on the network"))])),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(F.groups,((e,t)=>((0,a.wg)(),(0,a.j4)(le,{key:t,group:e,devices:F.devices,selected:F.selected.groupId===t,onSelect:e=>F.selected.groupId=F.selected.groupId===t?null:t,onRename:ee.refreshGroups,onRemove:ee.refreshGroups,onEdit:ee.refreshGroups},null,8,["group","devices","selected","onSelect","onRename","onRemove","onEdit"])))),128))])):(0,a.kq)("",!0)])])}var te=s(5771),se=s(9015),ae=s(1232),ie=s(6813),ne=s(9963);const le=e=>((0,a.dD)("data-v-b05d09fc"),e=e(),(0,a.Cn)(),e),oe={class:"groups"},re=["value","checked"],de=["textContent"],ue=le((()=>(0,a._)("div",{class:"footer buttons"},[(0,a._)("button",{type:"submit"},"Save")],-1))),ce=["textContent"],ve={key:1,class:"params"},pe={class:"row"},he=le((()=>(0,a._)("div",{class:"param-name"},"Name",-1))),me={class:"param-value"},ge=["value"],be={class:"buttons"},ye=le((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),fe=[ye],_e=le((()=>(0,a._)("button",{type:"submit",class:"btn btn-default"},[(0,a._)("i",{class:"fa fa-check"})],-1))),we=["textContent"],ke={class:"buttons"},qe=le((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),xe=[qe],Ce={class:"row"},ze=le((()=>(0,a._)("div",{class:"param-name"},"IEEE Address",-1))),De=["textContent"],Me={key:0,class:"row"},Ge=le((()=>(0,a._)("div",{class:"param-name"},"Network Address",-1))),Re=["textContent"],Ze={class:"row"},Ie=le((()=>(0,a._)("div",{class:"param-name"},"Type",-1))),Ne=["textContent"],Te={key:1,class:"row"},Ve=le((()=>(0,a._)("div",{class:"param-name"},"Vendor",-1))),Ue={class:"param-value"},je={key:2,class:"row"},Ee=le((()=>(0,a._)("div",{class:"param-name"},"Model",-1))),Se={class:"param-value"},Ae={key:3,class:"row"},$e=le((()=>(0,a._)("div",{class:"param-name"},"Model ID",-1))),Oe={class:"param-value"},Fe={key:4,class:"row"},Be=le((()=>(0,a._)("div",{class:"param-name"},"Description",-1))),Ye={class:"param-value"},Le={key:5,class:"row"},He=le((()=>(0,a._)("div",{class:"param-name"},"Software Build ID",-1))),Ke={class:"param-value"},Pe={key:6,class:"row"},Xe=le((()=>(0,a._)("div",{class:"param-name"},"Date Code",-1))),We={class:"param-value"},Je={key:7,class:"row"},Qe=le((()=>(0,a._)("div",{class:"param-name"},"Power Source",-1))),et={class:"param-value"},tt={key:8,class:"section values"},st=le((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Values")],-1))),at={class:"body"},it={class:"param-name"},nt={key:0,class:"text"},lt=["textContent"],ot=["textContent"],rt={class:"param-value"},dt={key:2},ut=["value","disabled","onChange"],ct={key:3},vt=["value","onChange"],pt={key:0},ht=["value","textContent","selected","disabled"],mt={key:4},gt=["onChange","value"],bt={key:5},yt=["disabled","value","onChange"],ft={class:"section actions"},_t=le((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1))),wt={class:"body"},kt=le((()=>(0,a._)("div",{class:"param-name"},"Manage groups",-1))),qt=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-network-wired"})],-1))),xt=[kt,qt],Ct={key:0,class:"param-name"},zt={key:1,class:"param-name"},Dt=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-sync-alt"})],-1))),Mt=le((()=>(0,a._)("div",{class:"param-name"},"Remove Device",-1))),Gt=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),Rt=[Mt,Gt],Zt=le((()=>(0,a._)("div",{class:"param-name"},"Force Remove Device",-1))),It=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),Nt=[Zt,It];function Tt(e,t,s,n,l,o){const r=(0,a.up)("Loading"),d=(0,a.up)("Modal"),u=(0,a.up)("ToggleSwitch"),c=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["item device",{selected:s.selected}])},[l.loading?((0,a.wg)(),(0,a.j4)(r,{key:0})):(0,a.kq)("",!0),(0,a.Wm)(d,{class:"groups-modal",ref:"groupsModal",title:"Device groups"},{default:(0,a.w5)((()=>[l.loading?((0,a.wg)(),(0,a.j4)(r,{key:0})):(0,a.kq)("",!0),(0,a._)("form",{class:"content",onSubmit:t[0]||(t[0]=(0,ne.iM)(((...e)=>o.manageGroups&&o.manageGroups(...e)),["prevent"]))},[(0,a._)("div",oe,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.groups,((e,t)=>((0,a.wg)(),(0,a.iD)("label",{class:"row group",key:t},[(0,a._)("input",{type:"checkbox",value:t,checked:o.associatedGroups.has(parseInt(e.id))},null,8,re),(0,a._)("span",{class:"name",textContent:(0,i.zw)(e.friendly_name?.length?e.friendly_name:`[Group #${e.id}]`)},null,8,de)])))),128))]),ue],32)])),_:1},512),(0,a._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:s.selected}]),textContent:(0,i.zw)(s.device.friendly_name||s.device.ieee_address),onClick:t[1]||(t[1]=t=>e.$emit("select"))},null,10,ce),s.selected?((0,a.wg)(),(0,a.iD)("div",ve,[(0,a._)("div",pe,[he,(0,a._)("div",me,[(0,a._)("div",{class:(0,i.C_)(["name-edit",{hidden:!l.editName}])},[(0,a._)("form",{onSubmit:t[3]||(t[3]=(0,ne.iM)(((...e)=>o.rename&&o.rename(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"name",ref:"name",value:s.device.friendly_name},null,8,ge)]),(0,a._)("span",be,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[2]||(t[2]=e=>l.editName=!1)},fe),_e])],32)],2),(0,a._)("div",{class:(0,i.C_)(["name-edit",{hidden:l.editName}])},[(0,a._)("span",{textContent:(0,i.zw)(s.device.friendly_name)},null,8,we),(0,a._)("span",ke,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[4]||(t[4]=e=>l.editName=!0)},xe)])],2)])]),(0,a._)("div",Ce,[ze,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(s.device.ieee_address)},null,8,De)]),s.device.network_address?((0,a.wg)(),(0,a.iD)("div",Me,[Ge,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(s.device.network_address)},null,8,Re)])):(0,a.kq)("",!0),(0,a._)("div",Ze,[Ie,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(s.device.type)},null,8,Ne)]),s.device.definition?.vendor?((0,a.wg)(),(0,a.iD)("div",Te,[Ve,(0,a._)("div",Ue,(0,i.zw)(s.device.definition.vendor),1)])):(0,a.kq)("",!0),s.device.definition?.model?((0,a.wg)(),(0,a.iD)("div",je,[Ee,(0,a._)("div",Se,(0,i.zw)(s.device.definition.model),1)])):(0,a.kq)("",!0),s.device.model_id?((0,a.wg)(),(0,a.iD)("div",Ae,[$e,(0,a._)("div",Oe,(0,i.zw)(s.device.model_id),1)])):(0,a.kq)("",!0),s.device.definition?.description?((0,a.wg)(),(0,a.iD)("div",Fe,[Be,(0,a._)("div",Ye,(0,i.zw)(s.device.definition.description),1)])):(0,a.kq)("",!0),s.device.software_build_id?((0,a.wg)(),(0,a.iD)("div",Le,[He,(0,a._)("div",Ke,(0,i.zw)(s.device.software_build_id),1)])):(0,a.kq)("",!0),s.device.definition?.date_code?((0,a.wg)(),(0,a.iD)("div",Pe,[Xe,(0,a._)("div",We,(0,i.zw)(s.device.definition.date_code),1)])):(0,a.kq)("",!0),s.device.power_source?((0,a.wg)(),(0,a.iD)("div",Je,[Qe,(0,a._)("div",et,(0,i.zw)(s.device.power_source),1)])):(0,a.kq)("",!0),Object.keys(o.displayedValues).length?((0,a.wg)(),(0,a.iD)("div",tt,[st,(0,a._)("div",at,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(o.displayedValues,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row value",key:t},[(0,a._)("div",it,[(0,a.Uk)((0,i.zw)(e.description)+" ",1),null!=o.rgbColor&&null!=e.value?.x&&null!=e.value?.y||null!=e.value?.hue&&null!=e.value?.saturation?((0,a.wg)(),(0,a.iD)("span",nt,"Color")):(0,a.kq)("",!0),e.property?((0,a.wg)(),(0,a.iD)("span",{key:1,class:"name",textContent:(0,i.zw)(e.property)},null,8,lt)):(0,a.kq)("",!0),e.unit?((0,a.wg)(),(0,a.iD)("span",{key:2,class:"unit",textContent:(0,i.zw)(e.unit)},null,8,ot)):(0,a.kq)("",!0)]),(0,a._)("div",rt,["binary"===e.type?((0,a.wg)(),(0,a.j4)(u,{key:0,value:null!=e.value_on?e.value===e.value_on:!!e.value,disabled:!e.writable,onInput:t=>o.setValue(e,t)},null,8,["value","disabled","onInput"])):"numeric"===e.type&&null!=e.value_min&&null!=e.value_max?((0,a.wg)(),(0,a.j4)(c,{key:1,"with-label":!0,range:[e.value_min,e.value_max],value:e.value,disabled:!e.writable,onChange:t=>o.setValue(e,t)},null,8,["range","value","disabled","onChange"])):"numeric"!==e.type||null!=e.value_min&&null!=e.value_max?"enum"===e.type?((0,a.wg)(),(0,a.iD)("label",ct,[(0,a._)("select",{value:e.readable&&null!=e.value?e.value:"",onChange:t=>o.setValue(e,t)},[e.readable?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("option",pt)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.values,(t=>((0,a.wg)(),(0,a.iD)("option",{key:t,value:t,textContent:(0,i.zw)(t),selected:e.readable&&e.value===t,disabled:!e.writable},null,8,ht)))),128))],40,vt)])):null!=o.rgbColor&&null!=e.value?.x&&null!=e.value?.y||null!=e.value?.hue&&null!=e.value?.saturation?((0,a.wg)(),(0,a.iD)("label",mt,[(0,a._)("input",{type:"color",onChange:(0,ne.iM)((t=>o.setValue(e,t)),["stop"]),value:"#"+o.rgbColor.map((e=>(e=Number(e).toString(16),1===e.length?"0"+e:e))).join("")},null,40,gt)])):((0,a.wg)(),(0,a.iD)("label",bt,[(0,a._)("input",{type:"text",disabled:!e.writable,value:e.value,onChange:t=>o.setValue(e,t)},null,40,yt)])):((0,a.wg)(),(0,a.iD)("label",dt,[(0,a._)("input",{type:"number","with-label":!0,value:e.value,disabled:!e.writable,onChange:t=>o.setValue(e,t)},null,40,ut)]))])])))),128))])])):(0,a.kq)("",!0),(0,a._)("div",ft,[_t,(0,a._)("div",wt,[(0,a._)("div",{class:"row",onClick:t[5]||(t[5]=t=>e.$refs.groupsModal.show())},xt),(0,a._)("div",{class:"row",onClick:t[6]||(t[6]=e=>l.otaUpdatesAvailable?o.installOtaUpdates():o.checkOtaUpdates())},[l.otaUpdatesAvailable?((0,a.wg)(),(0,a.iD)("div",zt,"Install updates")):((0,a.wg)(),(0,a.iD)("div",Ct,"Check for updates")),Dt]),(0,a._)("div",{class:"row",onClick:t[7]||(t[7]=e=>o.remove(!1))},Rt),(0,a._)("div",{class:"row error",onClick:t[8]||(t[8]=e=>o.remove(!0))},Nt)])])])):(0,a.kq)("",!0)],2)}var Vt=s(376),Ut=s(6),jt=s(4212),Et=s(8453),St={name:"Device",components:{Modal:Et.Z,ToggleSwitch:Ut.Z,Slider:Vt.Z,Loading:ae.Z},mixins:[ie.Z],emits:["select","rename","remove","groups-edit"],props:{device:{type:Object,required:!0},groups:{type:Object,default:()=>{}},selected:{type:Boolean,default:!1}},data(){return{editName:!1,loading:!1,status:{},otaUpdatesAvailable:!1}},computed:{values(){if(!this.device.definition?.exposes)return{};const e=e=>{const t=(e,s)=>{if(e.features){e.property&&(s[e.property]=s[e.property]||{},s=s[e.property]);for(const a of e.features)t(a,s)}else e.property&&(s[e.property]=e)},s={};for(const a of e)t(a,s);return s};return e(this.device.definition.exposes)},displayedValues(){const e={},t=(e,[s,a])=>(s in this.status&&(a={...a,value:this.status[s]}),null!=a.access&&(a.readable=!!(1&a.access),a.writable=!!(2&a.access),delete a.access),e[s]=a,Object.entries(a).filter((e=>e[1]instanceof Object)).reduce(t,e[s]),e);return Object.entries(this.values).reduce(t,e),e},rgbColor(){if(!this.displayedValues.color)return;const e=this.displayedValues.color?.value;if(e){if(null!=e.x&&null!=e.y){const t=new jt.N({bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]});return t.xyToRgb(e.x,e.y,this.displayedValues.brightness.value)}if(null!=e.hue&&(null!=e.saturation||null!=e.sat)){const t=null!=e.saturation?"saturation":"sat",s=new jt.N({hue:[this.displayedValues.color.hue?.value_min||0,this.displayedValues.color.hue.value_max||65535],sat:[this.displayedValues.color[t]?.value_min||0,this.displayedValues.color[t].value_max||255],bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]});return s.hslToRgb(e.hue,e[t],this.displayedValues.brightness.value)}return null}},associatedGroups(){return new Set(Object.values(this.groups).filter((e=>new Set((e.members||[]).map((e=>e.ieee_address))).has(this.device.ieee_address))).map((e=>parseInt(e.id))))}},methods:{async refresh(){this.loading=!0;try{this.status=await this.request("zigbee.mqtt.device_get",{device:this.device.friendly_name||this.device.ieee_address})}finally{this.loading=!1}},async rename(){const e=(this.$refs.name.value||"").trim();if(e.length&&e!==this.device.friendly_name){this.loading=!0;try{await this.request("zigbee.mqtt.device_rename",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address,name:e}),this.$emit("rename",{name:this.device.friendly_name,newName:e})}finally{this.editName=!1,this.loading=!1}}},async remove(e){if(confirm("Are you really sure that you want to remove this device from the network?")){e=!!e,this.loading=!0;try{await this.request("zigbee.mqtt.device_remove",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address,force:e}),this.$emit("remove",{device:this.device.friendly_name||this.device.ieee_address})}finally{this.loading=!1}}},async setValue(e,t){const s={device:this.device.friendly_name||this.device.ieee_address,property:e.property,value:null};switch(e.type){case"binary":e.value_toggle?s.value=e.value_toggle:e.value_on&&e.value_off?s.value=e.value===e.value_on?e.value_off:e.value_on:s.value=!e.value;break;case"numeric":s.value=parseFloat(t.target.value);break;case"enum":t.target.value?.length&&(s.value=t.target.value);break;default:if(null!=e.x&&null!=e.y||null!=e.hue&&(null!=e.saturation||null!=e.sat)){s.property="color";const a=t.target.value.slice(1).split(/([0-9a-fA-F]{2})/).filter(((e,t)=>t%2)).map((e=>parseInt(e,16)));if(null!=e.x&&null!=e.y){const e=new jt.N({bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]}),t=e.rgbToXY(...a);s.value={color:{x:t[0],y:t[1]}}}else{const e=null!=this.displayedValues.color.saturation?"saturation":"sat",t=new jt.N({hue:[this.displayedValues.color.hue?.value_min||0,this.displayedValues.color.hue.value_max||65535],sat:[this.displayedValues.color[e]?.value_min||0,this.displayedValues.color[e].value_max||255],bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]}),i=t.rgbToHsl(...a);s.value={brightness:i[2],color:{hue:i[0]}},s.value.color[e]=i[1]}}break}if(null!=s.value){this.loading=!0;try{await this.request("zigbee.mqtt.device_set",s),await this.refresh()}finally{this.loading=!1}}},async manageGroups(e){const t=[...e.target.querySelectorAll("input[type=checkbox]")].reduce(((e,t)=>{const s=parseInt(t.value);return t.checked&&!this.associatedGroups.has(s)?e.add.add(s):!t.checked&&this.associatedGroups.has(s)&&e.remove.add(s),e}),{add:new Set,remove:new Set}),s=async e=>{await Promise.all([...t[e]].map((async t=>{await this.request(`zigbee.mqtt.group_${e}_device`,{group:this.groups[t].friendly_name,device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address})})))};this.loading=!0;try{await Promise.all(Object.keys(t).map(s)),this.$emit("groups-edit",t)}finally{this.loading=!1}},async checkOtaUpdates(){this.loading=!0;try{this.otaUpdatesAvailable=(await this.request("zigbee.mqtt.device_check_ota_updates",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address})).update_available,this.otaUpdatesAvailable?this.notify({text:"A firmware update is available for the device",image:{iconClass:"fa fa-sync-alt"}}):this.notify({text:"The device is up to date",image:{iconClass:"fa fa-check"}})}finally{this.loading=!1}},async installOtaUpdates(){this.loading=!0;try{await this.request("zigbee.mqtt.device_install_ota_updates",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address})}finally{this.loading=!1}}},mounted(){this.$watch((()=>this.selected),(e=>{e&&this.refresh()})),this.$watch((()=>this.status.update_available),(e=>{this.otaUpdatesAvailable=e})),this.subscribe((e=>{e.device!==this.device.friendly_name&&e.device!==this.device.ieee_address||(this.status={...this.status,...e.properties})}),`on-property-change-${this.device.ieee_address}`,"platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePropertySetEvent")},unmounted(){this.unsubscribe(`on-property-change-${this.device.ieee_address}`)}},At=s(3744);const $t=(0,At.Z)(St,[["render",Tt],["__scopeId","data-v-b05d09fc"]]);var Ot=$t;const Ft=e=>((0,a.dD)("data-v-7667f7ba"),e=e(),(0,a.Cn)(),e),Bt=["textContent"],Yt={key:1,class:"params"},Lt={class:"section devices"},Ht=Ft((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Devices")],-1))),Kt={class:"body"},Pt=["checked","value","onChange"],Xt=["textContent"],Wt={class:"section actions"},Jt=Ft((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1))),Qt={class:"body"},es=Ft((()=>(0,a._)("div",{class:"col-10"},"Rename Group",-1))),ts=Ft((()=>(0,a._)("div",{class:"buttons col-2 pull-right"},[(0,a._)("i",{class:"fa fa-edit"})],-1))),ss=[es,ts],as=Ft((()=>(0,a._)("div",{class:"col-10"},"Remove Group",-1))),is=Ft((()=>(0,a._)("div",{class:"buttons col-2 pull-right"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),ns=[as,is];function ls(e,t,s,n,l,o){const r=(0,a.up)("Loading");return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["item group",{selected:s.selected}])},[l.loading?((0,a.wg)(),(0,a.j4)(r,{key:0})):(0,a.kq)("",!0),(0,a._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:s.selected}]),textContent:(0,i.zw)(s.group.friendly_name),onClick:t[0]||(t[0]=t=>e.$emit("select"))},null,10,Bt),s.selected?((0,a.wg)(),(0,a.iD)("div",Yt,[(0,a._)("div",Lt,[Ht,(0,a._)("div",Kt,[(0,a._)("form",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.devices,((e,t)=>((0,a.wg)(),(0,a.iD)("label",{class:"row",key:t},[(0,a._)("input",{type:"checkbox",checked:o.members.has(e.ieee_address),value:e.ieee_address,onChange:t=>o.toggleDevice(e.ieee_address)},null,40,Pt),(0,a._)("span",{class:"label",textContent:(0,i.zw)(e.friendly_name?.length?e.friendly_name:e.ieee_address)},null,8,Xt)])))),128))])])]),(0,a._)("div",Wt,[Jt,(0,a._)("div",Qt,[(0,a._)("div",{class:"row",onClick:t[1]||(t[1]=(...e)=>o.rename&&o.rename(...e))},ss),(0,a._)("div",{class:"row",onClick:t[2]||(t[2]=(...e)=>o.remove&&o.remove(...e))},ns)])])])):(0,a.kq)("",!0)],2)}var os={name:"Group",emits:["select","remove","edit"],mixins:[ie.Z],components:{Loading:ae.Z},props:{group:{type:Object,required:!0},devices:{type:Object,default:()=>({})},selected:{type:Boolean,default:!1}},data(){return{loading:!1,values:{}}},computed:{devicesByAddress(){return Object.entries(this.devices).reduce(((e,t)=>{const s=t[1];return e[s.ieee_address]=s,e}),{})},members(){return new Set((this.group.members||[]).map((e=>e.ieee_address)))}},methods:{async remove(){if(confirm("Are you sure that you want to remove this group?")){this.loading=!0;try{await this.request("zigbee.mqtt.group_remove",{name:this.group.friendly_name}),this.$emit("remove",{name:this.group.friendly_name})}finally{this.loading=!1}}},async rename(){let e=prompt("New group name",this.group.friendly_name);if(e?.length){e=e.trim(),this.loading=!0;try{await this.request("zigbee.mqtt.group_rename",{group:this.group.friendly_name||this.group.id,name:e}),this.$emit("rename",{name:this.group.friendly_name,newName:e})}finally{this.loading=!1}}},async toggleDevice(e){const t=this.devicesByAddress[e],s=t.friendly_name?.length?t.friendly_name:e,a=this.members.has(e)?"remove":"add";this.loading=!0;try{await this.request(`zigbee.mqtt.group_${a}_device`,{group:this.group.friendly_name,device:s}),this.$emit("edit",{device:s,method:a})}finally{this.loading=!1}}}};const rs=(0,At.Z)(os,[["render",ls],["__scopeId","data-v-7667f7ba"]]);var ds=rs,us={name:"ZigbeeMqtt",components:{Modal:Et.Z,Dropdown:te.Z,DropdownItem:se.Z,Loading:ae.Z,Device:Ot,Group:ds},mixins:[ie.Z],data(){return{devices:{},groups:{},status:{},loading:!1,selected:{view:"devices",deviceId:void 0,groupId:void 0},views:{devices:!0,groups:!0},modal:{group:{visible:!1}}}},methods:{async refreshDevices(){this.loading=!0;try{this.devices=(await this.request("zigbee.mqtt.devices")).reduce(((e,t)=>(t.friendly_name in this.devices&&(t={values:this.devices[t.friendly_name].values||{},...this.devices[t.friendly_name]}),e[t.friendly_name]=t,e)),{})}finally{this.loading=!1}},async refreshGroups(){this.loading=!0;try{this.groups=(await this.request("zigbee.mqtt.groups")).reduce(((e,t)=>(e[t.id]=t,e)),{})}finally{this.loading=!1}},async refreshInfo(){this.loading=!0;try{this.status=await this.request("zigbee.mqtt.info")}finally{this.loading=!1}},refresh(){this.refreshDevices(),this.refreshGroups(),this.refreshInfo()},updateProperties(e,t){this.devices[e].values=t},async addGroup(){const e=prompt("Group name");if(e&&e.length){this.loading=!0;try{await this.request("zigbee.mqtt.group_add",{name:e})}finally{this.loading=!1}await this.refreshGroups()}},async permitJoin(e){const t={permit:!!e};if(e){let e=prompt("Join allow period in seconds (0 or empty for no time limits)","60");t.seconds=e.length?parseInt(e):null}this.loading=!0;try{await this.request("zigbee.mqtt.permit_join",t),setTimeout(this.refreshInfo,1e3)}finally{this.loading=!1}},async factoryReset(){if(confirm("Are you SURE that you want to do a device factory reset?")||confirm("Are you REALLY sure? ALL network information and custom firmware will be lost!!")){this.loading=!0;try{await this.request("zigbee.mqtt.factory_reset")}finally{this.loading=!1}}},async addToGroup(e,t){this.loading=!0,await this.request("zigbee.mqtt.group_add_device",{device:e,group:t}),this.loading=!1;const s=this;setTimeout((()=>{s.refresh(),s.refreshGroups()}),100)}},created(){this.subscribe((()=>{this.notify({text:"WARNING: The controller is offline",error:!0})}),"on-zigbee-offline","platypush.message.event.zigbee.mqtt.ZigbeeMqttOfflineEvent"),this.subscribe((()=>{this.notify({text:"The controller is now online",iconClass:"fas fa-check"})}),"on-zigbee-online","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent"),this.subscribe((()=>{this.notify({text:"Failed to remove the device",error:!0})}),"on-zigbee-device-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedFailedEvent"),this.subscribe((()=>{this.notify({text:"Failed to add the group",error:!0})}),"on-zigbee-group-add-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedFailedEvent"),this.subscribe((()=>{this.notify({text:"Failed to remove group",error:!0})}),"on-zigbee-group-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedFailedEvent"),this.subscribe((()=>{this.notify({text:"Failed to remove the devices from group",error:!0})}),"on-zigbee-remove-all-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllFailedEvent"),this.subscribe((e=>{this.notify({text:e.error||"[Unknown error]",error:!0})}),"on-zigbee-error","platypush.message.event.zigbee.mqtt.ZigbeeMqttErrorEvent"),this.subscribe(this.refresh,"on-zigbee-device-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePairingEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceConnectedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBannedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceWhitelistedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRenamedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBindEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceUnbindEvent"),this.subscribe(this.refreshGroups,"on-zigbee-group-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllEvent")},mounted(){this.refresh()},unmounted(){this.unsubscribe("on-zigbee-error"),this.unsubscribe("on-zigbee-remove-all-failed"),this.unsubscribe("on-zigbee-group-remove-failed"),this.unsubscribe("on-zigbee-group-add-failed"),this.unsubscribe("on-zigbee-device-remove-failed"),this.unsubscribe("on-zigbee-online"),this.unsubscribe("on-zigbee-offline"),this.unsubscribe("on-zigbee-device-update"),this.unsubscribe("on-zigbee-group-update")}};const cs=(0,At.Z)(us,[["render",ee]]);var vs=cs}}]); -//# sourceMappingURL=4604.78aed65e.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js.map b/platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js.map deleted file mode 100644 index 6bb389298..000000000 --- a/platypush/backend/http/webapp/dist/static/js/4604.78aed65e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/4604.78aed65e.js","mappings":"kJAAO,MAAMA,EACTC,YAAYC,GAQR,GAPAC,KAAKD,OAAS,CACVE,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,GAAI,CAAC,IAAK,MAGVL,EACA,IAAK,MAAMM,KAAQC,OAAOC,KAAKP,KAAKD,QAC5BA,EAAOM,KACPL,KAAKD,OAAOM,GAAQN,EAAOM,GAC1C,CAEDG,UAAUC,EAAGC,EAAQC,GACjB,OAAOA,EAAO,IAAQF,EAAEC,EAAO,KAAOC,EAAO,GAAGA,EAAO,KAAQD,EAAO,GAAGA,EAAO,GACnF,CAEDE,SAASC,EAAGC,EAAGC,IACVF,EAAGC,EAAGC,GAAK,CACRf,KAAKQ,UAAUK,EAAGb,KAAKD,OAAOE,IAAK,CAAC,EAAG,MACvCD,KAAKQ,UAAUM,EAAGd,KAAKD,OAAOG,IAAK,CAAC,EAAG,MACvCF,KAAKQ,UAAUO,EAAGf,KAAKD,OAAOI,IAAK,CAAC,EAAG,OAG3CY,GAAK,IACL,MAAMC,EAAIF,EAAIG,KAAKC,IAAIH,EAAG,EAAIA,GAAK,IAC7BI,EAAIC,IACN,MAAMC,GAAKD,EAAIP,EAAI,IAAM,GACnBS,EAAQP,EAAIC,EAAIC,KAA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GAAQ,CAAC,CAAC,SAASzI,MAEpE,S","sources":["webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue?8b6d","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue?46cd","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue?dac0"],"sourcesContent":["export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Device.vue?vue&type=template&id=b05d09fc&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=b05d09fc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b05d09fc\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=7667f7ba&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=7667f7ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7667f7ba\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=b15233ac\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=b15233ac&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["ColorConverter","constructor","ranges","this","hue","sat","bri","ct","attr","Object","keys","normalize","x","xRange","yRange","hslToRgb","h","s","l","a","Math","min","f","n","k","color","max","round","rgbToHsl","r","g","b","d","parseInt","xyToRgb","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","rgbToXY","parseFloat","rgbToBri","getRGB","rgb","getXY","xy","toRGB","console","debug","toXY","toHSL","hexToRgb","hex","slice","_","rgbToHex","toString","length","join","class","ref","type","range","step","disabled","value","onUpdate","withLabel","name","emits","props","Number","Boolean","default","Array","methods","event","update","target","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","status","info","state","permit_join","network","channel","version","config","mqtt","server","serial","port","coordinator","meta","maintrel","majorrel","minorrel","revision","selected","view","$event","views","enabled","toUpperCase","replace","key","addGroup","text","infoModal","show","permitJoin","factoryReset","refresh","devices","device","id","groups","deviceId","refreshDevices","refreshGroups","group","groupId","manageGroups","associatedGroups","has","friendly_name","ieee_address","editName","rename","network_address","definition","vendor","model","model_id","description","software_build_id","date_code","power_source","displayedValues","property","rgbColor","unit","value_on","writable","setValue","value_min","value_max","readable","values","option","i","groupsModal","otaUpdatesAvailable","installOtaUpdates","checkOtaUpdates","remove","components","Modal","ToggleSwitch","Slider","Loading","mixins","Utils","required","data","computed","exposes","extractValues","extractValue","root","features","feature","ret","mergeValues","obj","access","entries","filter","v","reduce","converter","saturation","satAttr","Set","members","member","async","request","trim","newName","force","confirm","value_toggle","value_off","split","hsl","querySelectorAll","element","add","editGroups","Promise","all","action","update_available","notify","image","iconClass","$watch","newValue","subscribe","properties","unmounted","unsubscribe","toggleDevice","devicesByAddress","entry","prompt","ieeeAddress","method","Dropdown","DropdownItem","Device","Group","undefined","modal","visible","refreshInfo","updateProperties","permit","args","seconds","setTimeout","self","created","error"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4658-legacy.2b32d64d.js b/platypush/backend/http/webapp/dist/static/js/4658-legacy.2b32d64d.js deleted file mode 100644 index a14c3f882..000000000 --- a/platypush/backend/http/webapp/dist/static/js/4658-legacy.2b32d64d.js +++ /dev/null @@ -1,2 +0,0 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4658],{647:function(e,n,t){var a=t(1702),r=t(7908),s=Math.floor,o=a("".charAt),i=a("".replace),u=a("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,a,d,v){var m=t+e.length,p=a.length,f=c;return void 0!==d&&(d=r(d),f=l),i(v,f,(function(r,i){var l;switch(o(i,0)){case"$":return"$";case"&":return e;case"`":return u(n,0,t);case"'":return u(n,m);case"<":l=d[u(i,1,-1)];break;default:var c=+i;if(0===c)return r;if(c>p){var v=s(c/10);return 0===v?r:v<=p?void 0===a[v-1]?o(i,1):a[v-1]+o(i,1):r}l=a[c-1]}return void 0===l?"":l}))}},6091:function(e,n,t){var a=t(6530).PROPER,r=t(7293),s=t(1361),o="​…᠎";e.exports=function(e){return r((function(){return!!s[e]()||o[e]()!==o||a&&s[e].name!==e}))}},5306:function(e,n,t){"use strict";var a=t(2104),r=t(6916),s=t(1702),o=t(7007),i=t(7293),u=t(9670),l=t(614),c=t(9303),d=t(7466),v=t(1340),m=t(4488),p=t(1530),f=t(8173),w=t(647),g=t(7651),_=t(5112),h=_("replace"),k=Math.max,b=Math.min,x=s([].concat),y=s([].push),C=s("".indexOf),R=s("".slice),z=function(e){return void 0===e?e:String(e)},D=function(){return"$0"==="a".replace(/./,"$0")}(),N=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),q=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));o("replace",(function(e,n,t){var s=N?"$":"$0";return[function(e,t){var a=m(this),s=void 0==e?void 0:f(e,h);return s?r(s,e,a,t):r(n,v(a),e,t)},function(e,r){var o=u(this),i=v(e);if("string"==typeof r&&-1===C(r,s)&&-1===C(r,"$<")){var m=t(n,o,i,r);if(m.done)return m.value}var f=l(r);f||(r=v(r));var _=o.global;if(_){var h=o.unicode;o.lastIndex=0}var D=[];while(1){var N=g(o,i);if(null===N)break;if(y(D,N),!_)break;var q=v(N[0]);""===q&&(o.lastIndex=p(i,d(o.lastIndex),h))}for(var S="",I=0,Z=0;Z=I&&(S+=R(i,I,M)+U,I=M+j.length)}return S+R(i,I)}]}),!q||!D||N)},3210:function(e,n,t){"use strict";var a=t(2109),r=t(3111).trim,s=t(6091);a({target:"String",proto:!0,forced:s("trim")},{trim:function(){return r(this)}})},376:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var a=t(6252),r=t(9963),s=t(3577),o={class:"slider-wrapper"},i=["min","max","step","disabled","value"],u={class:"track"},l={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},d=["textContent"];function v(e,n,t,v,m,p){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:"slider",type:"range",ref:"range",min:t.range[0],max:t.range[1],step:t.step,disabled:t.disabled,value:t.value,onInput:n[0]||(n[0]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onChange:n[1]||(n[1]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onMouseup:n[2]||(n[2]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onMousedown:n[3]||(n[3]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onTouchstart:n[4]||(n[4]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onTouchend:n[5]||(n[5]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onKeyup:n[6]||(n[6]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onKeydown:n[7]||(n[7]=(0,r.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"]))},null,40,i),(0,a._)("div",u,[(0,a._)("div",l,null,512)]),(0,a._)("div",c,null,512),t.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,s.zw)(t.value)},null,8,d)):(0,a.kq)("",!0)])}var m=t(4648),p=(t(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,m.Z)((0,m.Z)({},e),{},{target:(0,m.Z)((0,m.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var n=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left="".concat(n,"%"),this.$refs.thumb.style.transform="translate(-".concat(n,"%, -50%)"),this.$refs.track.style.width="".concat(n,"%")}},mounted:function(){null!=this.value&&this.update(this.value)}}),f=t(3744);const w=(0,f.Z)(p,[["render",v],["__scopeId","data-v-95edc28a"]]);var g=w},6:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var a=t(6252),r=t(3577),s=t(9963),o=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},i=["checked"],u=o((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),l={class:"label"};function c(e,n,t,o,c,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,s.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:t.value},null,8,i),(0,a._)("label",null,[u,(0,a._)("span",l,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=t(3744);const m=(0,v.Z)(d,[["render",c],["__scopeId","data-v-a6396ae8"]]);var p=m},4658:function(e,n,t){"use strict";t.d(n,{Z:function(){return Mr}});t(7327),t(1539),t(2479),t(8309),t(4916),t(5306),t(7042),t(7941),t(1249),t(3948);var a=t(6252),r=t(3577),s={class:"zwave-container"},o={class:"network-info"},i={key:1,class:"params"},u={class:"row"},l=(0,a._)("div",{class:"param-name"},"State",-1),c=["textContent"],d={class:"row"},v=(0,a._)("div",{class:"param-name"},"Device",-1),m=["textContent"],p={class:"section"},f=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Statistics")],-1),w={class:"body"},g=["textContent"],_=["textContent"],h={class:"group-add"},k={class:"params"},b={class:"section"},x=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Select nodes to add")],-1),y={key:0,class:"body"},C=["onClick"],R=["textContent"],z={class:"view-options"},D={class:"view-selector col-s-6 col-m-8 col-l-9"},N=["textContent","selected","value"],q={class:"buttons col-s-6 col-m-4 col-l-3"},S=(0,a._)("i",{class:"fa fa-plus"},null,-1),I=[S],Z=(0,a._)("i",{class:"fa fa-sync-alt"},null,-1),j=[Z],M={class:"view-container"},V={key:0,class:"view nodes"},O={key:1,class:"no-items"},A=(0,a._)("div",{class:"empty"},"No nodes available on the network",-1),$=[A],U={key:1,class:"view groups"},T={key:1,class:"no-items"},E=(0,a._)("div",{class:"empty"},"No groups available on the network",-1),W=[E],F={key:2,class:"view scenes"},H={key:1,class:"no-items"},G=(0,a._)("div",{class:"empty"},"No scenes configured on the network",-1),K=[G],L=["textContent","onClick"],B={key:0,class:"params"},Y={class:"row"},P=(0,a._)("div",{class:"param-name"},"Scene ID",-1),J=["textContent"],Q={class:"row"},X=(0,a._)("div",{class:"param-name"},"Activate",-1),ee={class:"param-value"},ne={key:0,class:"section values"},te=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Values")],-1),ae={class:"body"},re={class:"param-name"},se={class:"param-value"},oe=["textContent"],ie={class:"buttons"},ue=["onClick"],le=(0,a._)("i",{class:"fa fa-trash"},null,-1),ce=[le],de={class:"section actions"},ve=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1),me={class:"body"},pe=["onClick"],fe=(0,a._)("div",{class:"param-name"},"Remove Scene",-1),we=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1),ge=[fe,we],_e=["onClick"],he=(0,a._)("div",{class:"param-name"},"Rename Scene",-1),ke=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-edit"})],-1),be=[he,ke],xe={key:3,class:"view values"},ye={key:1,class:"no-items"},Ce=(0,a._)("div",{class:"empty"},"No nodes found on the network",-1),Re=[Ce],ze=["textContent","onClick"],De={key:0,class:"params"},Ne={key:0,class:"value-display"};function qe(e,n,t,S,Z,A){var E=(0,a.up)("Loading"),G=(0,a.up)("Modal"),le=(0,a.up)("DropdownItem"),fe=(0,a.up)("Dropdown"),we=(0,a.up)("Node"),he=(0,a.up)("Group"),ke=(0,a.up)("ToggleSwitch"),Ce=(0,a.up)("Value");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a.Wm)(G,{title:"Network info",ref:"networkInfoModal"},{default:(0,a.w5)((function(){return[(0,a._)("div",o,[Z.loading.status?((0,a.wg)(),(0,a.j4)(E,{key:0})):((0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",u,[l,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(Z.status.state)},null,8,c)]),(0,a._)("div",d,[v,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(Z.status.device)},null,8,m)]),(0,a._)("div",p,[f,(0,a._)("div",w,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.status.stats,(function(e,n){return(0,a.wg)(),(0,a.iD)("div",{class:"row",key:n},[(0,a._)("div",{class:"param-name",textContent:(0,r.zw)(n)},null,8,g),(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(e)},null,8,_)])})),128))])])]))])]})),_:1},512),(0,a.Wm)(G,{title:"Add nodes to group",ref:"addNodesToGroupModal"},{default:(0,a.w5)((function(){return[(0,a._)("div",h,[(0,a._)("div",k,[(0,a._)("div",b,[x,null!=Z.selected.groupId?((0,a.wg)(),(0,a.iD)("div",y,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(Z.nodes||{}).filter((function(e){return Z.groups[Z.selected.groupId].associations.indexOf(e.node_id)<0})),(function(e){return(0,a.wg)(),(0,a.iD)("div",{class:"row clickable",onClick:function(n){return A.addToGroup(e.node_id,Z.selected.groupId)},key:e.node_id},[(0,a._)("div",{class:"param-name",textContent:(0,r.zw)(e.name)},null,8,R)],8,C)})),128))])):(0,a.kq)("",!0)])])])]})),_:1},512),(0,a._)("div",z,[(0,a._)("div",D,[(0,a._)("label",null,[(0,a._)("select",{onChange:n[0]||(n[0]=function(e){return Z.selected.view=e.target.value})},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.views,(function(e,n){return(0,a.wg)(),(0,a.iD)("option",{key:e,textContent:(0,r.zw)((n[0].toUpperCase()+n.slice(1)).replace("_"," ")),selected:n===Z.selected.view,value:n},null,8,N)})),128))],32)])]),(0,a._)("div",q,["scenes"===Z.selected.view?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"btn btn-default",title:"Create Scene",onClick:n[1]||(n[1]=function(){return A.addScene&&A.addScene.apply(A,arguments)})},I)):(0,a.kq)("",!0),(0,a.Wm)(fe,{title:"Network commands","icon-class":"fa fa-cog"},{default:(0,a.w5)((function(){return[(0,a.Wm)(le,{text:"Network Info",disabled:Z.commandRunning,onClick:A.networkInfoModalOpen},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Start Network",disabled:Z.commandRunning,onClick:A.startNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Stop Network",disabled:Z.commandRunning,onClick:A.stopNetwork},null,8,["disabled","onClick"]),"nodes"===Z.selected.view?((0,a.wg)(),(0,a.j4)(le,{key:0,text:"Add Node",disabled:Z.commandRunning,onClick:A.addNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),"nodes"===Z.selected.view?((0,a.wg)(),(0,a.j4)(le,{key:1,text:"Remove Node",disabled:Z.commandRunning,onClick:A.removeNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),(0,a.Wm)(le,{text:"Switch All On",disabled:Z.commandRunning,onClick:n[2]||(n[2]=function(e){return A.switchAll(!0)})},null,8,["disabled"]),(0,a.Wm)(le,{text:"Switch All Off",disabled:Z.commandRunning,onClick:n[3]||(n[3]=function(e){return A.switchAll(!1)})},null,8,["disabled"]),(0,a.Wm)(le,{text:"Cancel Command",disabled:Z.commandRunning,onClick:A.cancelCommand},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Kill Command",disabled:Z.commandRunning,onClick:A.killCommand},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Receive Configuration",disabled:Z.commandRunning,onClick:A.receiveConfiguration},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Create New Primary",disabled:Z.commandRunning,onClick:A.createNewPrimary},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Transfer Primary Role",disabled:Z.commandRunning,onClick:A.transferPrimaryRole},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Heal Network",disabled:Z.commandRunning,onClick:A.healNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Soft Reset",disabled:Z.commandRunning,onClick:A.softReset},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Hard Reset",disabled:Z.commandRunning,onClick:A.hardReset},null,8,["disabled","onClick"])]})),_:1}),(0,a._)("button",{class:"btn btn-default",title:"Refresh Network",onClick:n[4]||(n[4]=function(){return A.refresh&&A.refresh.apply(A,arguments)})},j)])]),(0,a._)("div",M,["nodes"===Z.selected.view?((0,a.wg)(),(0,a.iD)("div",V,[Z.loading.nodes?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",O,$)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.nodes,(function(n,t){return(0,a.wg)(),(0,a.j4)(we,{key:t,node:n,selected:Z.selected.nodeId===t,"plugin-name":e.pluginName,onSelect:function(e){return A.onNodeClick(t)}},null,8,["node","selected","plugin-name","onSelect"])})),128))])):"groups"===Z.selected.view?((0,a.wg)(),(0,a.iD)("div",U,[Z.loading.groups?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.groups||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",T,W)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.groups,(function(t,r){return(0,a.wg)(),(0,a.j4)(he,{key:r,group:t,selected:Z.selected.groupId===r,nodes:r in Z.groups?Z.groups[r].associations.map((function(e){return Z.nodes[e]})).reduce((function(e,n){return e[n.node_id]=n,e}),{}):{},owner:null!=t.node_id?Z.nodes[t.node_id]:null,"plugin-name":e.pluginName,onSelect:function(e){return Z.selected.groupId=r===Z.selected.groupId?void 0:r},onOpenAddNodesToGroup:n[5]||(n[5]=function(n){return e.$refs.addNodesToGroupModal.show()})},null,8,["group","selected","nodes","owner","plugin-name","onSelect"])})),128))])):"scenes"===Z.selected.view?((0,a.wg)(),(0,a.iD)("div",F,[Z.loading.scenes?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.scenes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",H,K)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.scenes,(function(e,n){var t;return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["item scene",{selected:Z.selected.sceneId===n}]),key:n},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:Z.selected.sceneId===n}]),textContent:(0,r.zw)(e.label),onClick:function(e){return Z.selected.sceneId=n===Z.selected.sceneId?void 0:n}},null,10,L),Z.selected.sceneId===n?((0,a.wg)(),(0,a.iD)("div",B,[(0,a._)("div",Y,[P,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(n)},null,8,J)]),(0,a._)("div",Q,[X,(0,a._)("div",ee,[(0,a.Wm)(ke,{value:!1,onInput:function(e){return A.activateScene(n)}},null,8,["onInput"])])]),null!==(t=Object.values(null===e||void 0===e?void 0:e.values))&&void 0!==t&&t.length?((0,a.wg)(),(0,a.iD)("div",ne,[te,(0,a._)("div",ae,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(e.values),(function(e){return(0,a.wg)(),(0,a.iD)("div",{class:"row",key:e.id_on_network},[(0,a._)("div",re,(0,r.zw)(Z.nodes[e.node_id].name)+" ⇨ "+(0,r.zw)(A.valuesMap[e.id_on_network].label),1),(0,a._)("div",se,[(0,a._)("span",{textContent:(0,r.zw)(e.data)},null,8,oe),(0,a._)("span",ie,[(0,a._)("button",{class:"btn btn-default",title:"Remove value",onClick:function(t){return A.removeValueFromScene({sceneId:n,valueId:e.id_on_network})}},ce,8,ue)])])])})),128))])])):(0,a.kq)("",!0),(0,a._)("div",de,[ve,(0,a._)("div",me,[(0,a._)("div",{class:"row",onClick:function(e){return A.removeScene(n)}},ge,8,pe),(0,a._)("div",{class:"row",onClick:function(e){return A.renameScene(n)}},be,8,_e)])])])):(0,a.kq)("",!0)],2)})),128))])):((0,a.wg)(),(0,a.iD)("div",xe,[Z.loading.nodes?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",ye,Re)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.nodes,(function(n,t){return(0,a.wg)(),(0,a.iD)("div",{class:"node-container",key:t},["values"===Z.selected.view||Object.values(n.values).filter((function(e){return e.id_on_network in Z.values[Z.selected.view]})).length>0?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,r.C_)(["item node",{selected:Z.selected.nodeId===t}])},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:Z.selected.nodeId===t}]),textContent:(0,r.zw)(n.name),onClick:function(e){return A.onNodeClick(t)}},null,10,ze),Z.selected.nodeId===t?((0,a.wg)(),(0,a.iD)("div",De,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.values,(function(t,r){return(0,a.wg)(),(0,a.iD)("div",{class:"value-container",key:r},[t.id_on_network&&("values"===Z.selected.view||t.id_on_network in Z.values[Z.selected.view])?((0,a.wg)(),(0,a.iD)("div",Ne,[(0,a.Wm)(Ce,{value:t,node:n,scenes:Z.scenes,onAddToScene:A.addValueToScene,onRemoveFromScene:A.removeValueFromScene,onRefresh:A.refreshNodes,"plugin-name":e.pluginName},null,8,["value","node","scenes","onAddToScene","onRemoveFromScene","onRefresh","plugin-name"])])):(0,a.kq)("",!0)])})),128))])):(0,a.kq)("",!0)],2)):(0,a.kq)("",!0)])})),128))]))])])}var Se=t(8534),Ie=(t(5666),t(3210),function(e){return(0,a.dD)("data-v-56458f8e"),e=e(),(0,a.Cn)(),e}),Ze=["textContent"],je={key:0,class:"params"},Me={key:0,class:"section owner"},Ve=Ie((function(){return(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Owner")],-1)})),Oe={class:"body"},Ae=["textContent"],$e={class:"section nodes"},Ue={class:"header"},Te=Ie((function(){return(0,a._)("div",{class:"title col-10"},"Nodes",-1)})),Ee={class:"buttons col-2"},We=Ie((function(){return(0,a._)("i",{class:"fa fa-plus"},null,-1)})),Fe=[We],He={class:"body"},Ge=["textContent"],Ke={class:"buttons col-2"},Le=["disabled","onClick"],Be=Ie((function(){return(0,a._)("i",{class:"fa fa-trash"},null,-1)})),Ye=[Be],Pe={class:"section config"},Je=Ie((function(){return(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Parameters")],-1)})),Qe={class:"body"},Xe={class:"row"},en=Ie((function(){return(0,a._)("div",{class:"param-name"},"Index",-1)})),nn=["textContent"],tn={class:"row"},an=Ie((function(){return(0,a._)("div",{class:"param-name"},"Max associations",-1)})),rn=["textContent"];function sn(e,n,t,s,o,i){return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["item group",{selected:t.selected}])},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:t.selected}]),textContent:(0,r.zw)(t.group.label),onClick:n[0]||(n[0]=function(n){return e.$emit("select",t.group.index)})},null,10,Ze),t.selected?((0,a.wg)(),(0,a.iD)("div",je,[t.owner&&Object.keys(t.owner).length?((0,a.wg)(),(0,a.iD)("div",Me,[Ve,(0,a._)("div",Oe,[(0,a._)("div",{class:"row",textContent:(0,r.zw)(t.owner.name)},null,8,Ae)])])):(0,a.kq)("",!0),(0,a._)("div",$e,[(0,a._)("div",Ue,[Te,(0,a._)("div",Ee,[!t.group.max_associations||Object.keys(t.nodes||{}).length"))},null,8,Ge),(0,a._)("div",Ke,[(0,a._)("button",{class:"btn btn-default",title:"Remove from group",disabled:o.commandRunning,onClick:function(n){return i.removeFromGroup(e.node_id)}},Ye,8,Le)])])})),128))])]),(0,a._)("div",Pe,[Je,(0,a._)("div",Qe,[(0,a._)("div",Xe,[en,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.group.index)},null,8,nn)]),(0,a._)("div",tn,[an,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.group.max_associations)},null,8,rn)])])])])):(0,a.kq)("",!0)],2)}t(2222);var on=t(6813),un={mixins:[on.Z],props:{pluginName:{type:String,required:!0}},methods:{zrequest:function(e,n){var t=this;return(0,Se.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.request("".concat(t.pluginName,".").concat(e),n);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}}),a)})))()}}},ln={name:"Group",emits:["select","open-add-nodes-to-group"],mixins:[un],props:{group:{type:Object,required:!0},owner:{type:Object},nodes:{type:Object,default:function(){return{}}},selected:{type:Boolean,default:!1}},data:function(){return{commandRunning:!1}},methods:{removeFromGroup:function(e){var n=this;return(0,Se.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(confirm("Are you sure that you want to remove this node from "+n.group.label+"?")){t.next=2;break}return t.abrupt("return");case 2:return n.commandRunning=!0,a={node_id:e},null!=n.group.group_id?a.group_id=n.group.group_id:a.group_index=n.group.index,t.prev=5,t.next=8,n.zrequest("remove_node_from_group",a);case 8:return t.prev=8,n.commandRunning=!1,t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[5,,8,11]])})))()}}},cn=t(3744);const dn=(0,cn.Z)(ln,[["render",sn],["__scopeId","data-v-56458f8e"]]);var vn=dn,mn=(t(9600),t(9714),t(9963)),pn=function(e){return(0,a.dD)("data-v-3da196a6"),e=e(),(0,a.Cn)(),e},fn=["textContent"],wn={key:0,class:"params"},gn={class:"row"},_n=pn((function(){return(0,a._)("div",{class:"param-name"},"Name",-1)})),hn={class:"param-value"},kn=["value","disabled"],bn={class:"buttons"},xn=pn((function(){return(0,a._)("i",{class:"fas fa-times"},null,-1)})),yn=[xn],Cn=["disabled"],Rn=pn((function(){return(0,a._)("i",{class:"fa fa-check"},null,-1)})),zn=[Rn],Dn=["textContent"],Nn={class:"buttons"},qn=["disabled"],Sn=pn((function(){return(0,a._)("i",{class:"fa fa-edit"},null,-1)})),In=[Sn],Zn={class:"row"},jn=pn((function(){return(0,a._)("div",{class:"param-name"},"Location",-1)})),Mn={class:"param-value"},Vn=["value","disabled"],On={class:"buttons"},An=pn((function(){return(0,a._)("i",{class:"fas fa-times"},null,-1)})),$n=[An],Un=["disabled"],Tn=pn((function(){return(0,a._)("i",{class:"fa fa-check"},null,-1)})),En=[Tn],Wn=["textContent"],Fn={class:"buttons"},Hn=["disabled"],Gn=pn((function(){return(0,a._)("i",{class:"fa fa-edit"},null,-1)})),Kn=[Gn],Ln={class:"row"},Bn=pn((function(){return(0,a._)("div",{class:"param-name"},"Type",-1)})),Yn=["textContent"],Pn={class:"row"},Jn=pn((function(){return(0,a._)("div",{class:"param-name"},"Role",-1)})),Qn=["textContent"],Xn={class:"row"},et=pn((function(){return(0,a._)("div",{class:"param-name"},"Node ID",-1)})),nt=["textContent"],tt={key:0,class:"row"},at=pn((function(){return(0,a._)("div",{class:"param-name"},"Neighbours",-1)})),rt={class:"param-value"},st=["textContent"],ot={class:"row"},it=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Ready",-1)})),ut=["textContent"],lt={class:"row"},ct=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Failed",-1)})),dt=["textContent"],vt={class:"row"},mt=pn((function(){return(0,a._)("div",{class:"param-name"},"Product ID",-1)})),pt=["textContent"],ft={class:"row"},wt=pn((function(){return(0,a._)("div",{class:"param-name"},"Product Type",-1)})),gt=["textContent"],_t={key:1,class:"row"},ht=pn((function(){return(0,a._)("div",{class:"param-name"},"Product Name",-1)})),kt=["textContent"],bt={class:"row"},xt=pn((function(){return(0,a._)("div",{class:"param-name"},"Manufacturer ID",-1)})),yt=["textContent"],Ct={key:2,class:"row"},Rt=pn((function(){return(0,a._)("div",{class:"param-name"},"Manufacturer Name",-1)})),zt=["textContent"],Dt={class:"row"},Nt=pn((function(){return(0,a._)("div",{class:"param-name"},"Capabilities",-1)})),qt=["textContent"],St={class:"row"},It=pn((function(){return(0,a._)("div",{class:"param-name"},"Command Classes",-1)})),Zt=["textContent"],jt={class:"row"},Mt=pn((function(){return(0,a._)("div",{class:"param-name"},"Groups",-1)})),Vt=["textContent"],Ot={key:3,class:"row"},At=pn((function(){return(0,a._)("div",{class:"param-name"},"Home ID",-1)})),$t=["textContent"],Ut={class:"row"},Tt=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Awake",-1)})),Et=["textContent"],Wt={key:4,class:"row"},Ft=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Locked",-1)})),Ht=["textContent"],Gt={key:5,class:"row"},Kt=pn((function(){return(0,a._)("div",{class:"param-name"},"Last Update",-1)})),Lt=["textContent"],Bt={key:6,class:"row"},Yt=pn((function(){return(0,a._)("div",{class:"param-name"},"Baud Rate",-1)})),Pt=["textContent"],Jt={key:7,class:"row"},Qt=pn((function(){return(0,a._)("div",{class:"param-name"},"Max Baud Rate",-1)})),Xt=["textContent"],ea={class:"section actions"},na=pn((function(){return(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1)})),ta={class:"body"},aa=pn((function(){return(0,a._)("div",{class:"param-name"},"Remove Failed Node",-1)})),ra=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1)})),sa=[aa,ra],oa=pn((function(){return(0,a._)("div",{class:"param-name"},"Replace Failed Node",-1)})),ia=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-sync-alt"})],-1)})),ua=[oa,ia],la=pn((function(){return(0,a._)("div",{class:"param-name"},"Heal Node",-1)})),ca=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wrench"})],-1)})),da=[la,ca],va=pn((function(){return(0,a._)("div",{class:"param-name"},"Replicate info to secondary controller",-1)})),ma=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-clone"})],-1)})),pa=[va,ma],fa=pn((function(){return(0,a._)("div",{class:"param-name"},"Request network update",-1)})),wa=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wifi"})],-1)})),ga=[fa,wa],_a=pn((function(){return(0,a._)("div",{class:"param-name"},"Request neighbours update",-1)})),ha=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-network-wired"})],-1)})),ka=[_a,ha];function ba(e,n,t,s,o,i){var u,l,c,d;return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["item node",{selected:t.selected}])},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:t.selected}]),textContent:(0,r.zw)(t.node.name&&t.node.name.length?t.node.name:"")),onClick:n[0]||(n[0]=function(n){return e.$emit("select")})},null,10,fn),t.selected?((0,a.wg)(),(0,a.iD)("div",wn,[(0,a._)("div",gn,[_n,(0,a._)("div",hn,[(0,a._)("div",{class:(0,r.C_)(["edit-cell",{hidden:!o.editMode.name}])},[(0,a._)("form",{ref:"nameForm",onSubmit:n[2]||(n[2]=(0,mn.iM)((function(){return i.editName&&i.editName.apply(i,arguments)}),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"name",value:t.node.name,disabled:o.commandRunning},null,8,kn)]),(0,a._)("span",bn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[1]||(n[1]=function(e){return o.editMode.name=!1})},yn),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},zn,8,Cn)])],544)],2),(0,a._)("div",{class:(0,r.C_)({hidden:o.editMode.name})},[(0,a._)("span",{textContent:(0,r.zw)(null!==(u=t.node.name)&&void 0!==u&&u.length?t.node.name:""))},null,8,Dn),(0,a._)("span",Nn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[3]||(n[3]=function(e){return i.onEditMode("name")}),disabled:o.commandRunning},In,8,qn)])],2)])]),(0,a._)("div",Zn,[jn,(0,a._)("div",Mn,[(0,a._)("div",{class:(0,r.C_)(["edit-cell",{hidden:!o.editMode.location}])},[(0,a._)("form",{ref:"locationForm",onSubmit:n[5]||(n[5]=(0,mn.iM)((function(){return i.editLocation&&i.editLocation.apply(i,arguments)}),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"location",value:t.node.location,disabled:o.commandRunning},null,8,Vn)]),(0,a._)("span",On,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[4]||(n[4]=function(e){return o.editMode.location=!1})},$n),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},En,8,Un)])],544)],2),(0,a._)("div",{class:(0,r.C_)({hidden:o.editMode.location})},[(0,a._)("span",{textContent:(0,r.zw)(null!==(l=t.node.location)&&void 0!==l&&l.length?t.node.location:"")},null,8,Wn),(0,a._)("span",Fn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[6]||(n[6]=function(e){return i.onEditMode("location")}),disabled:o.commandRunning},Kn,8,Hn)])],2)])]),(0,a._)("div",Ln,[Bn,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.type)},null,8,Yn)]),(0,a._)("div",Pn,[Jn,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.role)},null,8,Qn)]),(0,a._)("div",Xn,[et,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.node_id)},null,8,nt)]),t.node.neighbours.length?((0,a.wg)(),(0,a.iD)("div",tt,[at,(0,a._)("div",rt,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.node.neighbours,(function(e,n){return(0,a.wg)(),(0,a.iD)("div",{class:"row pull-right",key:n,textContent:(0,r.zw)(e)},null,8,st)})),128))])])):(0,a.kq)("",!0),(0,a._)("div",ot,[it,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_ready)},null,8,ut)]),(0,a._)("div",lt,[ct,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_failed)},null,8,dt)]),(0,a._)("div",vt,[mt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.manufacturer_id)},null,8,pt)]),(0,a._)("div",ft,[wt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.product_type)},null,8,gt)]),null!==(c=t.node.product_name)&&void 0!==c&&c.length?((0,a.wg)(),(0,a.iD)("div",_t,[ht,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.product_name)},null,8,kt)])):(0,a.kq)("",!0),(0,a._)("div",bt,[xt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.manufacturer_id)},null,8,yt)]),null!==(d=t.node.manufacturer_name)&&void 0!==d&&d.length?((0,a.wg)(),(0,a.iD)("div",Ct,[Rt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.manufacturer_name)},null,8,zt)])):(0,a.kq)("",!0),(0,a._)("div",Dt,[Nt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.capabilities.join(", "))},null,8,qt)]),(0,a._)("div",St,[It,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.command_classes.join(", "))},null,8,Zt)]),(0,a._)("div",jt,[Mt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(Object.values(t.node.groups).map((function(e){return e.label||""})).join(", "))},null,8,Vt)]),t.node.home_id?((0,a.wg)(),(0,a.iD)("div",Ot,[At,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.home_id.toString(16))},null,8,$t)])):(0,a.kq)("",!0),(0,a._)("div",Ut,[Tt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_awake)},null,8,Et)]),null!=t.node.is_locked?((0,a.wg)(),(0,a.iD)("div",Wt,[Ft,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_locked)},null,8,Ht)])):(0,a.kq)("",!0),t.node.last_update?((0,a.wg)(),(0,a.iD)("div",Gt,[Kt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(e.formatDateTime(t.node.last_update))},null,8,Lt)])):(0,a.kq)("",!0),t.node.baud_rate?((0,a.wg)(),(0,a.iD)("div",Bt,[Yt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.baud_rate)},null,8,Pt)])):(0,a.kq)("",!0),t.node.max_baud_rate?((0,a.wg)(),(0,a.iD)("div",Jt,[Qt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.max_baud_rate)},null,8,Xt)])):(0,a.kq)("",!0),(0,a._)("div",ea,[na,(0,a._)("div",ta,[t.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row error",onClick:n[7]||(n[7]=function(){return i.removeFailedNode&&i.removeFailedNode.apply(i,arguments)})},sa)):(0,a.kq)("",!0),t.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:1,class:"row error",onClick:n[8]||(n[8]=function(){return i.replaceFailedNode&&i.replaceFailedNode.apply(i,arguments)})},ua)):(0,a.kq)("",!0),(0,a._)("div",{class:"row",onClick:n[9]||(n[9]=function(){return i.heal&&i.heal.apply(i,arguments)})},da),(0,a._)("div",{class:"row",onClick:n[10]||(n[10]=function(){return i.replicationSend&&i.replicationSend.apply(i,arguments)})},pa),(0,a._)("div",{class:"row",onClick:n[11]||(n[11]=function(){return i.requestNetworkUpdate&&i.requestNetworkUpdate.apply(i,arguments)})},ga),(0,a._)("div",{class:"row",onClick:n[12]||(n[12]=function(){return i.requestNeighbourUpdate&&i.requestNeighbourUpdate.apply(i,arguments)})},ka)])])])):(0,a.kq)("",!0)],2)}var xa={name:"Node",emits:["select"],mixins:[un],props:{node:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data:function(){return{commandRunning:!1,editMode:{name:!1,location:!1}}},methods:{removeFailedNode:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:if(confirm("Are you sure that you want to remove this node?")){n.next=5;break}return n.abrupt("return");case 5:return e.commandRunning=!0,n.prev=6,n.next=9,e.zrequest("remove_node",{node_id:e.node.node_id});case 9:return n.prev=9,e.commandRunning=!1,n.finish(9);case 12:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},replaceFailedNode:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:if(confirm("Are you sure that you want to replace this node?")){n.next=5;break}return n.abrupt("return");case 5:return e.commandRunning=!0,n.prev=6,n.next=9,e.zrequest("replace_node",{node_id:e.node.node_id});case 9:return n.prev=9,e.commandRunning=!1,n.finish(9);case 12:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},replicationSend:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("replication_send",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()},requestNetworkUpdate:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("request_network_update",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()},requestNeighbourUpdate:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("request_node_neighbour_update",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()},onEditMode:function(e){this.editMode[e]=!0;var n=this.$refs[e+"Form"],t=n.querySelector("input[type=text]");setTimeout((function(){t.focus(),t.select()}),10)},editName:function(e){var n=this;return(0,Se.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.target.querySelector("input[name=name]").value,n.commandRunning=!0,t.prev=2,t.next=5,n.zrequest("set_node_name",{node_id:n.node.node_id,new_name:a});case 5:return t.prev=5,n.commandRunning=!1,t.finish(5);case 8:n.editMode.name=!1;case 9:case"end":return t.stop()}}),t,null,[[2,,5,8]])})))()},editLocation:function(e){var n=this;return(0,Se.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.target.querySelector("input[name=location]").value,n.commandRunning=!0,t.prev=2,t.next=5,n.zrequest("set_node_location",{node_id:n.node.node_id,location:a});case 5:return t.prev=5,n.commandRunning=!1,t.finish(5);case 8:n.editMode.location=!1;case 9:case"end":return t.stop()}}),t,null,[[2,,5,8]])})))()},heal:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return console.log("A command is already running"),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("node_heal",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()}}};const ya=(0,cn.Z)(xa,[["render",ba],["__scopeId","data-v-3da196a6"]]);var Ca=ya,Ra=t(8453),za=t(5771),Da=t(9015),Na=t(1232),qa=t(6);t(2526),t(1817),t(2165),t(8783);function Sa(e){return Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sa(e)}var Ia=function(e){return(0,a.dD)("data-v-0021cd76"),e=e(),(0,a.Cn)(),e},Za={class:"section value"},ja={class:"header"},Ma={class:"title"},Va=["disabled","data-id-on-network"],Oa=Ia((function(){return(0,a._)("i",{class:"fa fa-edit"},null,-1)})),Aa=[Oa],$a={class:"body"},Ua={class:"row"},Ta=Ia((function(){return(0,a._)("div",{class:"param-name"},"Value",-1)})),Ea={class:"param-value"},Wa={key:0,class:"value-view"},Fa=["textContent"],Ha=["textContent"],Ga={key:1,class:"value-edit"},Ka={key:0,class:"list"},La=["textContent","selected","value"],Ba={key:1,class:"numeric slider-container"},Ya={class:"col-10"},Pa={class:"row"},Ja=["textContent"],Qa=["textContent"],Xa={class:"row"},er={class:"col-2"},nr=["value"],tr={key:2,class:"boolean"},ar={key:3,class:"value-data"},rr=["value"],sr=["textContent"],or=Ia((function(){return(0,a._)("div",{class:"param-name"},"Remove From Scene",-1)})),ir=Ia((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1)})),ur=[or,ir],lr={key:1,class:"row",style:{cursor:"pointer"}},cr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Add To Scene",-1)})),dr={class:"param-value"},vr={key:2,class:"row"},mr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Help",-1)})),pr=["textContent"],fr={class:"row"},wr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Value ID",-1)})),gr=["textContent"],_r={key:3,class:"row"},hr=Ia((function(){return(0,a._)("div",{class:"param-name"},"ID on Network",-1)})),kr=["textContent"],br={class:"row"},xr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Command Class",-1)})),yr=["textContent"],Cr={key:4,class:"row"},Rr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Last Update",-1)})),zr=["textContent"];function Dr(e,n,t,s,o,i){var u,l,c,d,v,m=(0,a.up)("Slider"),p=(0,a.up)("ToggleSwitch"),f=(0,a.up)("DropdownItem"),w=(0,a.up)("Dropdown");return(0,a.wg)(),(0,a.iD)("div",Za,[(0,a._)("div",ja,[(0,a._)("div",Ma,[(0,a._)("button",{class:"btn btn-default btn-value-name-edit",title:"Edit value name",disabled:o.commandRunning,"data-id-on-network":t.value.id_on_network,onClick:n[0]||(n[0]=function(){return i.editName&&i.editName.apply(i,arguments)})},Aa,8,Va),(0,a.Uk)(" "+(0,r.zw)(t.value.label),1)])]),(0,a._)("div",$a,[(0,a._)("div",Ua,[Ta,(0,a._)("div",Ea,[t.value.is_read_only?((0,a.wg)(),(0,a.iD)("div",Wa,[(0,a._)("div",{class:"value-data",textContent:(0,r.zw)(t.value.data)},null,8,Fa),null!==(u=t.value.units)&&void 0!==u&&u.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"unit",textContent:(0,r.zw)(t.value.units)},null,8,Ha)):(0,a.kq)("",!0)])):((0,a.wg)(),(0,a.iD)("div",Ga,[(0,a._)("div",{class:(0,r.C_)(["col-"+(null!==(l=t.value.units)&&void 0!==l&&l.length?"11":"12")])},["List"===t.value.type?((0,a.wg)(),(0,a.iD)("div",Ka,[(0,a._)("label",null,[(0,a._)("select",{onChange:n[1]||(n[1]=function(){return i.onValueChange&&i.onValueChange.apply(i,arguments)})},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.value.data_items,(function(e,n){return(0,a.wg)(),(0,a.iD)("option",{textContent:(0,r.zw)("object"===Sa(e)?e.text:e),key:n,selected:"object"===Sa(e)?t.value.data===e.value:t.value.data===e,value:"object"===Sa(e)?e.value:n},null,8,La)})),128))],32)])])):["Int","Long","Byte","Decimal","Short"].indexOf(t.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",Ba,[(0,a._)("div",Ya,[(0,a._)("div",Pa,[(0,a._)("span",{class:"value-min",textContent:(0,r.zw)(t.value.min)},null,8,Ja),(0,a._)("span",{class:"value-max",textContent:(0,r.zw)(t.value.max)},null,8,Qa)]),(0,a._)("div",Xa,[(0,a._)("label",null,[(0,a.Wm)(m,{range:[t.value.min,t.value.max],value:t.value.data,onChange:i.onValueChange},null,8,["range","value","onChange"])])])]),(0,a._)("div",er,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:t.value.data,onChange:n[2]||(n[2]=function(){return i.onValueChange&&i.onValueChange.apply(i,arguments)})},null,40,nr)])])])):["Bool","Button"].indexOf(t.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",tr,[(0,a.Wm)(p,{value:t.value.data,onInput:n[3]||(n[3]=function(e){return i.onValueChange(e,!t.value.data)})},null,8,["value"])])):((0,a.wg)(),(0,a.iD)("div",ar,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:t.value.data,onChange:n[4]||(n[4]=function(){return i.onValueChange&&i.onValueChange.apply(i,arguments)})},null,40,rr)])]))],2),null!==(c=t.value.units)&&void 0!==c&&c.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"col-1 unit",textContent:(0,r.zw)(t.value.units)},null,8,sr)):(0,a.kq)("",!0)]))])]),null!=t.sceneId?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row",style:{cursor:"pointer"},onClick:n[5]||(n[5]=function(n){return e.$emit("remove-from-scene",{valueId:t.value.id_on_network,sceneId:t.sceneId})})},ur)):(0,a.kq)("",!0),null!==(d=i.addValueToSceneItems)&&void 0!==d&&d.length?((0,a.wg)(),(0,a.iD)("div",lr,[cr,(0,a._)("div",dr,[(0,a.Wm)(w,{title:"Add to scene","icon-class":"fa fa-plus"},{default:(0,a.w5)((function(){return[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(i.addValueToSceneItems,(function(n,r){return(0,a.wg)(),(0,a.j4)(f,{key:r,text:n.label,disabled:o.commandRunning,onClick:function(a){return e.$emit("add-to-scene",{sceneId:n.scene_id,valueId:t.value.id_on_network})}},null,8,["text","disabled","onClick"])})),128))]})),_:1})])])):(0,a.kq)("",!0),null!==(v=t.value.help)&&void 0!==v&&v.length?((0,a.wg)(),(0,a.iD)("div",vr,[mr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.help)},null,8,pr)])):(0,a.kq)("",!0),(0,a._)("div",fr,[wr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.value_id)},null,8,gr)]),t.value.value_id!==t.value.id_on_network?((0,a.wg)(),(0,a.iD)("div",_r,[hr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.id_on_network)},null,8,kr)])):(0,a.kq)("",!0),(0,a._)("div",br,[xr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.command_class_name||t.value.command_class)},null,8,yr)]),t.value.last_update?((0,a.wg)(),(0,a.iD)("div",Cr,[Rr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(e.formatDateTime(t.value.last_update))},null,8,zr)])):(0,a.kq)("",!0)])])}t(9653);var Nr=t(376),qr={name:"Value",components:{Slider:Nr.Z,Dropdown:za.Z,DropdownItem:Da.Z,ToggleSwitch:qa.Z},mixins:[un],emits:["remove-from-scene","add-to-scene","refresh"],props:{value:{type:Object,required:!0},node:{type:Object,required:!0},selected:{type:Boolean,default:!1},sceneId:{type:Number},scenes:{type:Object,default:function(){return{}}}},data:function(){return{commandRunning:!1}},computed:{addValueToSceneItems:function(){var e=this;return Object.values(this.scenes||{}).filter((function(n){return!(e.value.id_on_network in n.values)}))}},methods:{editName:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){var t,a,r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.node.values[e.value.id_on_network],s=prompt("New name",r.label),null!==(t=s)&&void 0!==t&&t.length&&(s=s.trim()),null!==(a=s)&&void 0!==a&&a.length&&s!==r.label){n.next=5;break}return n.abrupt("return");case 5:return e.commandRunning=!0,n.prev=6,n.next=9,e.zrequest("set_value_label",{id_on_network:r.id_on_network,new_label:s});case 9:return n.prev=9,e.commandRunning=!1,n.finish(9);case 12:e.$emit("refresh"),e.notify({text:"Value successfully renamed",image:{iconClass:"fa fa-check"}});case 14:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},onValueChange:function(e,n){var t=this;return(0,Se.Z)(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:r=e.target?e.target:e.event.target.parentElement,s=t.node.values[t.value.id_on_network],void 0===n&&(n=null!=r.value?r.value:e.value),a.t0=s.type,a.next="List"===a.t0?6:"Int"===a.t0||"Short"===a.t0||"Long"===a.t0||"Byte"===a.t0?8:"Decimal"===a.t0?10:12;break;case 6:return n=s.data_items[e.target.value],a.abrupt("break",12);case 8:return n=parseInt(n),a.abrupt("break",12);case 10:return n=parseFloat(n),a.abrupt("break",12);case 12:return"object"===Sa(n)&&(n=n.value),t.commandRunning=!0,a.prev=14,a.next=17,t.zrequest("set_value",{id_on_network:s.id_on_network,data:n});case 17:return a.prev=17,t.commandRunning=!1,a.finish(17);case 20:t.$emit("refresh"),t.notify({text:"Value successfully modified",image:{iconClass:"fa fa-check"}});case 22:case"end":return a.stop()}}),a,null,[[14,,17,20]])})))()}}};const Sr=(0,cn.Z)(qr,[["render",Dr],["__scopeId","data-v-0021cd76"]]);var Ir=Sr,Zr={name:"Zwave",components:{Value:Ir,ToggleSwitch:qa.Z,Loading:Na.Z,DropdownItem:Da.Z,Dropdown:za.Z,Modal:Ra.Z,Group:vn,Node:Ca},mixins:[un],data:function(){return{status:{},views:{},nodes:{},groups:{},scenes:{},commandRunning:!1,values:{switches:{},dimmers:{},sensors:{},battery_levels:{},power_levels:{},bulbs:{},doorlocks:{},usercodes:{},thermostats:{},protections:{}},selected:{view:"nodes",nodeId:void 0,groupId:void 0,sceneId:void 0,valueId:void 0},loading:{status:!1,nodes:!1,groups:!1,scenes:!1}}},computed:{valuesMap:function(){for(var e={},n=0,t=Object.values(this.nodes);n]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar getMethod = require('../internals/get-method');\nvar getSubstitution = require('../internals/get-substitution');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar max = Math.max;\nvar min = Math.min;\nvar concat = uncurryThis([].concat);\nvar push = uncurryThis([].push);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar stringSlice = uncurryThis(''.slice);\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive\n return ''.replace(re, '$') !== '7';\n});\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);\n return replacer\n ? call(replacer, searchValue, O, replaceValue)\n : call(nativeReplace, toString(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (\n typeof replaceValue == 'string' &&\n stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&\n stringIndexOf(replaceValue, '$<') === -1\n ) {\n var res = maybeCallNative(nativeReplace, rx, S, replaceValue);\n if (res.done) return res.value;\n }\n\n var functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n push(results, result);\n if (!global) break;\n\n var matchStr = toString(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = toString(result[0]);\n var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = concat([matched], captures, position, S);\n if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);\n var replacement = toString(apply(replaceValue, undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + stringSlice(S, nextSourcePosition);\n }\n ];\n}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n methods: {\n async zrequest(method, args) {\n return await this.request(`${this.pluginName}.${method}`, args)\n },\n }\n}\n","import { render } from \"./Group.vue?vue&type=template&id=56458f8e&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=56458f8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56458f8e\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Node.vue?vue&type=template&id=3da196a6&scoped=true\"\nimport script from \"./Node.vue?vue&type=script&lang=js\"\nexport * from \"./Node.vue?vue&type=script&lang=js\"\n\nimport \"./Node.vue?vue&type=style&index=0&id=3da196a6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3da196a6\"]])\n\nexport default __exports__","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","\n\n\n\n\n","import { render } from \"./Value.vue?vue&type=template&id=0021cd76&scoped=true\"\nimport script from \"./Value.vue?vue&type=script&lang=js\"\nexport * from \"./Value.vue?vue&type=script&lang=js\"\n\nimport \"./Value.vue?vue&type=style&index=0&id=0021cd76&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0021cd76\"]])\n\nexport default __exports__","import { render } from \"./Zwave.vue?vue&type=template&id=c573354c\"\nimport script from \"./Zwave.vue?vue&type=script&lang=js\"\nexport * from \"./Zwave.vue?vue&type=script&lang=js\"\n\nimport \"./Zwave.vue?vue&type=style&index=0&id=c573354c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["uncurryThis","toObject","floor","Math","charAt","replace","stringSlice","slice","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","module","exports","matched","str","position","captures","namedCaptures","replacement","tailPos","length","m","symbols","undefined","match","ch","capture","n","f","PROPER_FUNCTION_NAME","fails","whitespaces","non","METHOD_NAME","name","apply","call","fixRegExpWellKnownSymbolLogic","anObject","isCallable","toIntegerOrInfinity","toLength","toString","requireObjectCoercible","advanceStringIndex","getMethod","getSubstitution","regExpExec","wellKnownSymbol","REPLACE","max","min","concat","push","stringIndexOf","indexOf","maybeToString","it","String","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","REPLACE_SUPPORTS_NAMED_GROUPS","re","exec","result","groups","a","_","nativeReplace","maybeCallNative","UNSAFE_SUBSTITUTE","searchValue","replaceValue","O","this","replacer","string","rx","S","res","done","value","functionalReplace","global","fullUnicode","unicode","lastIndex","results","matchStr","accumulatedResult","nextSourcePosition","i","index","j","replacerArgs","$","$trim","forcedStringTrimMethod","target","proto","forced","trim","class","ref","type","range","step","disabled","onUpdate","withLabel","emits","props","Number","Boolean","default","Array","methods","event","update","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","title","loading","status","state","device","stats","key","selected","groupId","Object","values","nodes","filter","node","addToGroup","node_id","view","$event","views","id","toUpperCase","addScene","text","commandRunning","networkInfoModalOpen","startNetwork","stopNetwork","addNode","removeNode","switchAll","cancelCommand","killCommand","receiveConfiguration","createNewPrimary","transferPrimaryRole","healNetwork","softReset","hardReset","refresh","keys","nodeId","pluginName","onNodeClick","group","associations","map","owner","addNodesToGroupModal","show","scenes","scene","sceneId","label","activateScene","id_on_network","valuesMap","data","removeValueFromScene","removeScene","renameScene","valueId","addValueToScene","refreshNodes","max_associations","removeFromGroup","mixins","Utils","required","zrequest","method","args","request","mixin","confirm","group_id","group_index","editMode","editName","onEditMode","location","editLocation","role","neighbours","neighbour","is_ready","is_failed","manufacturer_id","product_type","product_name","manufacturer_name","capabilities","join","command_classes","g","home_id","is_awake","is_locked","last_update","baud_rate","max_baud_rate","removeFailedNode","replaceFailedNode","heal","replicationSend","requestNetworkUpdate","requestNeighbourUpdate","notify","mode","form","input","querySelector","setTimeout","focus","select","new_name","console","log","_typeof","obj","Symbol","iterator","constructor","prototype","is_read_only","units","onValueChange","data_items","addValueToSceneItems","scene_id","help","value_id","command_class_name","command_class","components","Slider","Dropdown","DropdownItem","ToggleSwitch","computed","prompt","new_label","image","iconClass","parentElement","parseInt","parseFloat","Value","Loading","Modal","Group","Node","switches","dimmers","sensors","battery_levels","power_levels","bulbs","doorlocks","usercodes","thermostats","protections","refreshGroups","reduce","refreshScenes","refreshValues","item","refreshStatus","onNodeUpdate","networkInfoModal","onCommandEvent","error","state_description","error_description","subscribe","unmounted","forEach","eventType","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4658-legacy.92eb441e.js b/platypush/backend/http/webapp/dist/static/js/4658-legacy.92eb441e.js new file mode 100644 index 000000000..c8c7832b5 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/4658-legacy.92eb441e.js @@ -0,0 +1,2 @@ +(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4658],{647:function(e,n,t){var a=t(1702),r=t(7908),s=Math.floor,o=a("".charAt),i=a("".replace),u=a("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,a,d,v){var m=t+e.length,p=a.length,f=c;return void 0!==d&&(d=r(d),f=l),i(v,f,(function(r,i){var l;switch(o(i,0)){case"$":return"$";case"&":return e;case"`":return u(n,0,t);case"'":return u(n,m);case"<":l=d[u(i,1,-1)];break;default:var c=+i;if(0===c)return r;if(c>p){var v=s(c/10);return 0===v?r:v<=p?void 0===a[v-1]?o(i,1):a[v-1]+o(i,1):r}l=a[c-1]}return void 0===l?"":l}))}},6091:function(e,n,t){var a=t(6530).PROPER,r=t(7293),s=t(1361),o="​…᠎";e.exports=function(e){return r((function(){return!!s[e]()||o[e]()!==o||a&&s[e].name!==e}))}},5306:function(e,n,t){"use strict";var a=t(2104),r=t(6916),s=t(1702),o=t(7007),i=t(7293),u=t(9670),l=t(614),c=t(9303),d=t(7466),v=t(1340),m=t(4488),p=t(1530),f=t(8173),w=t(647),g=t(7651),_=t(5112),h=_("replace"),k=Math.max,b=Math.min,x=s([].concat),y=s([].push),C=s("".indexOf),R=s("".slice),z=function(e){return void 0===e?e:String(e)},D=function(){return"$0"==="a".replace(/./,"$0")}(),N=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),q=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));o("replace",(function(e,n,t){var s=N?"$":"$0";return[function(e,t){var a=m(this),s=void 0==e?void 0:f(e,h);return s?r(s,e,a,t):r(n,v(a),e,t)},function(e,r){var o=u(this),i=v(e);if("string"==typeof r&&-1===C(r,s)&&-1===C(r,"$<")){var m=t(n,o,i,r);if(m.done)return m.value}var f=l(r);f||(r=v(r));var _=o.global;if(_){var h=o.unicode;o.lastIndex=0}var D=[];while(1){var N=g(o,i);if(null===N)break;if(y(D,N),!_)break;var q=v(N[0]);""===q&&(o.lastIndex=p(i,d(o.lastIndex),h))}for(var S="",I=0,Z=0;Z=I&&(S+=R(i,I,M)+U,I=M+j.length)}return S+R(i,I)}]}),!q||!D||N)},3210:function(e,n,t){"use strict";var a=t(2109),r=t(3111).trim,s=t(6091);a({target:"String",proto:!0,forced:s("trim")},{trim:function(){return r(this)}})},8070:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var a=t(6252),r=t(3577),s=t(9963),o={class:"slider-wrapper"},i=["min","max","step","disabled","value"],u={class:"track-inner",ref:"track"},l={class:"thumb",ref:"thumb"},c=["textContent"];function d(e,n,t,d,v,m){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:(0,r.C_)(["slider",{"with-label":t.withLabel}]),type:"range",min:t.range[0],max:t.range[1],step:t.step,disabled:t.disabled,value:t.value,ref:"range",onInput:n[0]||(n[0]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onChange:n[1]||(n[1]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onMouseup:n[2]||(n[2]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onMousedown:n[3]||(n[3]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onTouchstart:n[4]||(n[4]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onTouchend:n[5]||(n[5]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onKeyup:n[6]||(n[6]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onKeydown:n[7]||(n[7]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"]))},null,42,i),(0,a._)("div",{class:(0,r.C_)(["track",{"with-label":t.withLabel}])},[(0,a._)("div",u,null,512)],2),(0,a._)("div",l,null,512),t.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,r.zw)(t.value),ref:"label"},null,8,c)):(0,a.kq)("",!0)])}var v=t(4648),m=(t(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,v.Z)((0,v.Z)({},e),{},{target:(0,v.Z)((0,v.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var n=this.$refs.range.clientWidth,t=(e-this.range[0])/(this.range[1]-this.range[0]),a=t*n,r=this.$refs.thumb;r.style.left="".concat(a-r.clientWidth/2,"px"),this.$refs.thumb.style.transform="translate(-".concat(t,"%, -50%)"),this.$refs.track.style.width="".concat(a,"px")}},mounted:function(){null!=this.value&&this.update(this.value)}}),p=t(3744);const f=(0,p.Z)(m,[["render",d],["__scopeId","data-v-0359812c"]]);var w=f},6:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var a=t(6252),r=t(3577),s=t(9963),o=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},i=["checked"],u=o((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),l={class:"label"};function c(e,n,t,o,c,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,s.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:t.value},null,8,i),(0,a._)("label",null,[u,(0,a._)("span",l,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=t(3744);const m=(0,v.Z)(d,[["render",c],["__scopeId","data-v-a6396ae8"]]);var p=m},4658:function(e,n,t){"use strict";t.d(n,{Z:function(){return Mr}});t(7327),t(1539),t(2479),t(8309),t(4916),t(5306),t(7042),t(7941),t(1249),t(3948);var a=t(6252),r=t(3577),s={class:"zwave-container"},o={class:"network-info"},i={key:1,class:"params"},u={class:"row"},l=(0,a._)("div",{class:"param-name"},"State",-1),c=["textContent"],d={class:"row"},v=(0,a._)("div",{class:"param-name"},"Device",-1),m=["textContent"],p={class:"section"},f=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Statistics")],-1),w={class:"body"},g=["textContent"],_=["textContent"],h={class:"group-add"},k={class:"params"},b={class:"section"},x=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Select nodes to add")],-1),y={key:0,class:"body"},C=["onClick"],R=["textContent"],z={class:"view-options"},D={class:"view-selector col-s-6 col-m-8 col-l-9"},N=["textContent","selected","value"],q={class:"buttons col-s-6 col-m-4 col-l-3"},S=(0,a._)("i",{class:"fa fa-plus"},null,-1),I=[S],Z=(0,a._)("i",{class:"fa fa-sync-alt"},null,-1),j=[Z],M={class:"view-container"},V={key:0,class:"view nodes"},O={key:1,class:"no-items"},A=(0,a._)("div",{class:"empty"},"No nodes available on the network",-1),$=[A],U={key:1,class:"view groups"},T={key:1,class:"no-items"},E=(0,a._)("div",{class:"empty"},"No groups available on the network",-1),W=[E],F={key:2,class:"view scenes"},H={key:1,class:"no-items"},L=(0,a._)("div",{class:"empty"},"No scenes configured on the network",-1),G=[L],K=["textContent","onClick"],B={key:0,class:"params"},Y={class:"row"},P=(0,a._)("div",{class:"param-name"},"Scene ID",-1),J=["textContent"],Q={class:"row"},X=(0,a._)("div",{class:"param-name"},"Activate",-1),ee={class:"param-value"},ne={key:0,class:"section values"},te=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Values")],-1),ae={class:"body"},re={class:"param-name"},se={class:"param-value"},oe=["textContent"],ie={class:"buttons"},ue=["onClick"],le=(0,a._)("i",{class:"fa fa-trash"},null,-1),ce=[le],de={class:"section actions"},ve=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1),me={class:"body"},pe=["onClick"],fe=(0,a._)("div",{class:"param-name"},"Remove Scene",-1),we=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1),ge=[fe,we],_e=["onClick"],he=(0,a._)("div",{class:"param-name"},"Rename Scene",-1),ke=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-edit"})],-1),be=[he,ke],xe={key:3,class:"view values"},ye={key:1,class:"no-items"},Ce=(0,a._)("div",{class:"empty"},"No nodes found on the network",-1),Re=[Ce],ze=["textContent","onClick"],De={key:0,class:"params"},Ne={key:0,class:"value-display"};function qe(e,n,t,S,Z,A){var E=(0,a.up)("Loading"),L=(0,a.up)("Modal"),le=(0,a.up)("DropdownItem"),fe=(0,a.up)("Dropdown"),we=(0,a.up)("Node"),he=(0,a.up)("Group"),ke=(0,a.up)("ToggleSwitch"),Ce=(0,a.up)("Value");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a.Wm)(L,{title:"Network info",ref:"networkInfoModal"},{default:(0,a.w5)((function(){return[(0,a._)("div",o,[Z.loading.status?((0,a.wg)(),(0,a.j4)(E,{key:0})):((0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",u,[l,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(Z.status.state)},null,8,c)]),(0,a._)("div",d,[v,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(Z.status.device)},null,8,m)]),(0,a._)("div",p,[f,(0,a._)("div",w,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.status.stats,(function(e,n){return(0,a.wg)(),(0,a.iD)("div",{class:"row",key:n},[(0,a._)("div",{class:"param-name",textContent:(0,r.zw)(n)},null,8,g),(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(e)},null,8,_)])})),128))])])]))])]})),_:1},512),(0,a.Wm)(L,{title:"Add nodes to group",ref:"addNodesToGroupModal"},{default:(0,a.w5)((function(){return[(0,a._)("div",h,[(0,a._)("div",k,[(0,a._)("div",b,[x,null!=Z.selected.groupId?((0,a.wg)(),(0,a.iD)("div",y,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(Z.nodes||{}).filter((function(e){return Z.groups[Z.selected.groupId].associations.indexOf(e.node_id)<0})),(function(e){return(0,a.wg)(),(0,a.iD)("div",{class:"row clickable",onClick:function(n){return A.addToGroup(e.node_id,Z.selected.groupId)},key:e.node_id},[(0,a._)("div",{class:"param-name",textContent:(0,r.zw)(e.name)},null,8,R)],8,C)})),128))])):(0,a.kq)("",!0)])])])]})),_:1},512),(0,a._)("div",z,[(0,a._)("div",D,[(0,a._)("label",null,[(0,a._)("select",{onChange:n[0]||(n[0]=function(e){return Z.selected.view=e.target.value})},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.views,(function(e,n){return(0,a.wg)(),(0,a.iD)("option",{key:e,textContent:(0,r.zw)((n[0].toUpperCase()+n.slice(1)).replace("_"," ")),selected:n===Z.selected.view,value:n},null,8,N)})),128))],32)])]),(0,a._)("div",q,["scenes"===Z.selected.view?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"btn btn-default",title:"Create Scene",onClick:n[1]||(n[1]=function(){return A.addScene&&A.addScene.apply(A,arguments)})},I)):(0,a.kq)("",!0),(0,a.Wm)(fe,{title:"Network commands","icon-class":"fa fa-cog"},{default:(0,a.w5)((function(){return[(0,a.Wm)(le,{text:"Network Info",disabled:Z.commandRunning,onClick:A.networkInfoModalOpen},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Start Network",disabled:Z.commandRunning,onClick:A.startNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Stop Network",disabled:Z.commandRunning,onClick:A.stopNetwork},null,8,["disabled","onClick"]),"nodes"===Z.selected.view?((0,a.wg)(),(0,a.j4)(le,{key:0,text:"Add Node",disabled:Z.commandRunning,onClick:A.addNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),"nodes"===Z.selected.view?((0,a.wg)(),(0,a.j4)(le,{key:1,text:"Remove Node",disabled:Z.commandRunning,onClick:A.removeNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),(0,a.Wm)(le,{text:"Switch All On",disabled:Z.commandRunning,onClick:n[2]||(n[2]=function(e){return A.switchAll(!0)})},null,8,["disabled"]),(0,a.Wm)(le,{text:"Switch All Off",disabled:Z.commandRunning,onClick:n[3]||(n[3]=function(e){return A.switchAll(!1)})},null,8,["disabled"]),(0,a.Wm)(le,{text:"Cancel Command",disabled:Z.commandRunning,onClick:A.cancelCommand},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Kill Command",disabled:Z.commandRunning,onClick:A.killCommand},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Receive Configuration",disabled:Z.commandRunning,onClick:A.receiveConfiguration},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Create New Primary",disabled:Z.commandRunning,onClick:A.createNewPrimary},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Transfer Primary Role",disabled:Z.commandRunning,onClick:A.transferPrimaryRole},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Heal Network",disabled:Z.commandRunning,onClick:A.healNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Soft Reset",disabled:Z.commandRunning,onClick:A.softReset},null,8,["disabled","onClick"]),(0,a.Wm)(le,{text:"Hard Reset",disabled:Z.commandRunning,onClick:A.hardReset},null,8,["disabled","onClick"])]})),_:1}),(0,a._)("button",{class:"btn btn-default",title:"Refresh Network",onClick:n[4]||(n[4]=function(){return A.refresh&&A.refresh.apply(A,arguments)})},j)])]),(0,a._)("div",M,["nodes"===Z.selected.view?((0,a.wg)(),(0,a.iD)("div",V,[Z.loading.nodes?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",O,$)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.nodes,(function(n,t){return(0,a.wg)(),(0,a.j4)(we,{key:t,node:n,selected:Z.selected.nodeId===t,"plugin-name":e.pluginName,onSelect:function(e){return A.onNodeClick(t)}},null,8,["node","selected","plugin-name","onSelect"])})),128))])):"groups"===Z.selected.view?((0,a.wg)(),(0,a.iD)("div",U,[Z.loading.groups?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.groups||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",T,W)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.groups,(function(t,r){return(0,a.wg)(),(0,a.j4)(he,{key:r,group:t,selected:Z.selected.groupId===r,nodes:r in Z.groups?Z.groups[r].associations.map((function(e){return Z.nodes[e]})).reduce((function(e,n){return e[n.node_id]=n,e}),{}):{},owner:null!=t.node_id?Z.nodes[t.node_id]:null,"plugin-name":e.pluginName,onSelect:function(e){return Z.selected.groupId=r===Z.selected.groupId?void 0:r},onOpenAddNodesToGroup:n[5]||(n[5]=function(n){return e.$refs.addNodesToGroupModal.show()})},null,8,["group","selected","nodes","owner","plugin-name","onSelect"])})),128))])):"scenes"===Z.selected.view?((0,a.wg)(),(0,a.iD)("div",F,[Z.loading.scenes?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.scenes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",H,G)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.scenes,(function(e,n){var t;return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["item scene",{selected:Z.selected.sceneId===n}]),key:n},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:Z.selected.sceneId===n}]),textContent:(0,r.zw)(e.label),onClick:function(e){return Z.selected.sceneId=n===Z.selected.sceneId?void 0:n}},null,10,K),Z.selected.sceneId===n?((0,a.wg)(),(0,a.iD)("div",B,[(0,a._)("div",Y,[P,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(n)},null,8,J)]),(0,a._)("div",Q,[X,(0,a._)("div",ee,[(0,a.Wm)(ke,{value:!1,onInput:function(e){return A.activateScene(n)}},null,8,["onInput"])])]),null!==(t=Object.values(null===e||void 0===e?void 0:e.values))&&void 0!==t&&t.length?((0,a.wg)(),(0,a.iD)("div",ne,[te,(0,a._)("div",ae,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(e.values),(function(e){return(0,a.wg)(),(0,a.iD)("div",{class:"row",key:e.id_on_network},[(0,a._)("div",re,(0,r.zw)(Z.nodes[e.node_id].name)+" ⇨ "+(0,r.zw)(A.valuesMap[e.id_on_network].label),1),(0,a._)("div",se,[(0,a._)("span",{textContent:(0,r.zw)(e.data)},null,8,oe),(0,a._)("span",ie,[(0,a._)("button",{class:"btn btn-default",title:"Remove value",onClick:function(t){return A.removeValueFromScene({sceneId:n,valueId:e.id_on_network})}},ce,8,ue)])])])})),128))])])):(0,a.kq)("",!0),(0,a._)("div",de,[ve,(0,a._)("div",me,[(0,a._)("div",{class:"row",onClick:function(e){return A.removeScene(n)}},ge,8,pe),(0,a._)("div",{class:"row",onClick:function(e){return A.renameScene(n)}},be,8,_e)])])])):(0,a.kq)("",!0)],2)})),128))])):((0,a.wg)(),(0,a.iD)("div",xe,[Z.loading.nodes?((0,a.wg)(),(0,a.j4)(E,{key:0})):Object.keys(Z.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",ye,Re)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Z.nodes,(function(n,t){return(0,a.wg)(),(0,a.iD)("div",{class:"node-container",key:t},["values"===Z.selected.view||Object.values(n.values).filter((function(e){return e.id_on_network in Z.values[Z.selected.view]})).length>0?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,r.C_)(["item node",{selected:Z.selected.nodeId===t}])},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:Z.selected.nodeId===t}]),textContent:(0,r.zw)(n.name),onClick:function(e){return A.onNodeClick(t)}},null,10,ze),Z.selected.nodeId===t?((0,a.wg)(),(0,a.iD)("div",De,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.values,(function(t,r){return(0,a.wg)(),(0,a.iD)("div",{class:"value-container",key:r},[t.id_on_network&&("values"===Z.selected.view||t.id_on_network in Z.values[Z.selected.view])?((0,a.wg)(),(0,a.iD)("div",Ne,[(0,a.Wm)(Ce,{value:t,node:n,scenes:Z.scenes,onAddToScene:A.addValueToScene,onRemoveFromScene:A.removeValueFromScene,onRefresh:A.refreshNodes,"plugin-name":e.pluginName},null,8,["value","node","scenes","onAddToScene","onRemoveFromScene","onRefresh","plugin-name"])])):(0,a.kq)("",!0)])})),128))])):(0,a.kq)("",!0)],2)):(0,a.kq)("",!0)])})),128))]))])])}var Se=t(8534),Ie=(t(5666),t(3210),function(e){return(0,a.dD)("data-v-56458f8e"),e=e(),(0,a.Cn)(),e}),Ze=["textContent"],je={key:0,class:"params"},Me={key:0,class:"section owner"},Ve=Ie((function(){return(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Owner")],-1)})),Oe={class:"body"},Ae=["textContent"],$e={class:"section nodes"},Ue={class:"header"},Te=Ie((function(){return(0,a._)("div",{class:"title col-10"},"Nodes",-1)})),Ee={class:"buttons col-2"},We=Ie((function(){return(0,a._)("i",{class:"fa fa-plus"},null,-1)})),Fe=[We],He={class:"body"},Le=["textContent"],Ge={class:"buttons col-2"},Ke=["disabled","onClick"],Be=Ie((function(){return(0,a._)("i",{class:"fa fa-trash"},null,-1)})),Ye=[Be],Pe={class:"section config"},Je=Ie((function(){return(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Parameters")],-1)})),Qe={class:"body"},Xe={class:"row"},en=Ie((function(){return(0,a._)("div",{class:"param-name"},"Index",-1)})),nn=["textContent"],tn={class:"row"},an=Ie((function(){return(0,a._)("div",{class:"param-name"},"Max associations",-1)})),rn=["textContent"];function sn(e,n,t,s,o,i){return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["item group",{selected:t.selected}])},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:t.selected}]),textContent:(0,r.zw)(t.group.label),onClick:n[0]||(n[0]=function(n){return e.$emit("select",t.group.index)})},null,10,Ze),t.selected?((0,a.wg)(),(0,a.iD)("div",je,[t.owner&&Object.keys(t.owner).length?((0,a.wg)(),(0,a.iD)("div",Me,[Ve,(0,a._)("div",Oe,[(0,a._)("div",{class:"row",textContent:(0,r.zw)(t.owner.name)},null,8,Ae)])])):(0,a.kq)("",!0),(0,a._)("div",$e,[(0,a._)("div",Ue,[Te,(0,a._)("div",Ee,[!t.group.max_associations||Object.keys(t.nodes||{}).length"))},null,8,Le),(0,a._)("div",Ge,[(0,a._)("button",{class:"btn btn-default",title:"Remove from group",disabled:o.commandRunning,onClick:function(n){return i.removeFromGroup(e.node_id)}},Ye,8,Ke)])])})),128))])]),(0,a._)("div",Pe,[Je,(0,a._)("div",Qe,[(0,a._)("div",Xe,[en,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.group.index)},null,8,nn)]),(0,a._)("div",tn,[an,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.group.max_associations)},null,8,rn)])])])])):(0,a.kq)("",!0)],2)}t(2222);var on=t(6813),un={mixins:[on.Z],props:{pluginName:{type:String,required:!0}},methods:{zrequest:function(e,n){var t=this;return(0,Se.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.request("".concat(t.pluginName,".").concat(e),n);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}}),a)})))()}}},ln={name:"Group",emits:["select","open-add-nodes-to-group"],mixins:[un],props:{group:{type:Object,required:!0},owner:{type:Object},nodes:{type:Object,default:function(){return{}}},selected:{type:Boolean,default:!1}},data:function(){return{commandRunning:!1}},methods:{removeFromGroup:function(e){var n=this;return(0,Se.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(confirm("Are you sure that you want to remove this node from "+n.group.label+"?")){t.next=2;break}return t.abrupt("return");case 2:return n.commandRunning=!0,a={node_id:e},null!=n.group.group_id?a.group_id=n.group.group_id:a.group_index=n.group.index,t.prev=5,t.next=8,n.zrequest("remove_node_from_group",a);case 8:return t.prev=8,n.commandRunning=!1,t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[5,,8,11]])})))()}}},cn=t(3744);const dn=(0,cn.Z)(ln,[["render",sn],["__scopeId","data-v-56458f8e"]]);var vn=dn,mn=(t(9600),t(9714),t(9963)),pn=function(e){return(0,a.dD)("data-v-3da196a6"),e=e(),(0,a.Cn)(),e},fn=["textContent"],wn={key:0,class:"params"},gn={class:"row"},_n=pn((function(){return(0,a._)("div",{class:"param-name"},"Name",-1)})),hn={class:"param-value"},kn=["value","disabled"],bn={class:"buttons"},xn=pn((function(){return(0,a._)("i",{class:"fas fa-times"},null,-1)})),yn=[xn],Cn=["disabled"],Rn=pn((function(){return(0,a._)("i",{class:"fa fa-check"},null,-1)})),zn=[Rn],Dn=["textContent"],Nn={class:"buttons"},qn=["disabled"],Sn=pn((function(){return(0,a._)("i",{class:"fa fa-edit"},null,-1)})),In=[Sn],Zn={class:"row"},jn=pn((function(){return(0,a._)("div",{class:"param-name"},"Location",-1)})),Mn={class:"param-value"},Vn=["value","disabled"],On={class:"buttons"},An=pn((function(){return(0,a._)("i",{class:"fas fa-times"},null,-1)})),$n=[An],Un=["disabled"],Tn=pn((function(){return(0,a._)("i",{class:"fa fa-check"},null,-1)})),En=[Tn],Wn=["textContent"],Fn={class:"buttons"},Hn=["disabled"],Ln=pn((function(){return(0,a._)("i",{class:"fa fa-edit"},null,-1)})),Gn=[Ln],Kn={class:"row"},Bn=pn((function(){return(0,a._)("div",{class:"param-name"},"Type",-1)})),Yn=["textContent"],Pn={class:"row"},Jn=pn((function(){return(0,a._)("div",{class:"param-name"},"Role",-1)})),Qn=["textContent"],Xn={class:"row"},et=pn((function(){return(0,a._)("div",{class:"param-name"},"Node ID",-1)})),nt=["textContent"],tt={key:0,class:"row"},at=pn((function(){return(0,a._)("div",{class:"param-name"},"Neighbours",-1)})),rt={class:"param-value"},st=["textContent"],ot={class:"row"},it=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Ready",-1)})),ut=["textContent"],lt={class:"row"},ct=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Failed",-1)})),dt=["textContent"],vt={class:"row"},mt=pn((function(){return(0,a._)("div",{class:"param-name"},"Product ID",-1)})),pt=["textContent"],ft={class:"row"},wt=pn((function(){return(0,a._)("div",{class:"param-name"},"Product Type",-1)})),gt=["textContent"],_t={key:1,class:"row"},ht=pn((function(){return(0,a._)("div",{class:"param-name"},"Product Name",-1)})),kt=["textContent"],bt={class:"row"},xt=pn((function(){return(0,a._)("div",{class:"param-name"},"Manufacturer ID",-1)})),yt=["textContent"],Ct={key:2,class:"row"},Rt=pn((function(){return(0,a._)("div",{class:"param-name"},"Manufacturer Name",-1)})),zt=["textContent"],Dt={class:"row"},Nt=pn((function(){return(0,a._)("div",{class:"param-name"},"Capabilities",-1)})),qt=["textContent"],St={class:"row"},It=pn((function(){return(0,a._)("div",{class:"param-name"},"Command Classes",-1)})),Zt=["textContent"],jt={class:"row"},Mt=pn((function(){return(0,a._)("div",{class:"param-name"},"Groups",-1)})),Vt=["textContent"],Ot={key:3,class:"row"},At=pn((function(){return(0,a._)("div",{class:"param-name"},"Home ID",-1)})),$t=["textContent"],Ut={class:"row"},Tt=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Awake",-1)})),Et=["textContent"],Wt={key:4,class:"row"},Ft=pn((function(){return(0,a._)("div",{class:"param-name"},"Is Locked",-1)})),Ht=["textContent"],Lt={key:5,class:"row"},Gt=pn((function(){return(0,a._)("div",{class:"param-name"},"Last Update",-1)})),Kt=["textContent"],Bt={key:6,class:"row"},Yt=pn((function(){return(0,a._)("div",{class:"param-name"},"Baud Rate",-1)})),Pt=["textContent"],Jt={key:7,class:"row"},Qt=pn((function(){return(0,a._)("div",{class:"param-name"},"Max Baud Rate",-1)})),Xt=["textContent"],ea={class:"section actions"},na=pn((function(){return(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1)})),ta={class:"body"},aa=pn((function(){return(0,a._)("div",{class:"param-name"},"Remove Failed Node",-1)})),ra=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1)})),sa=[aa,ra],oa=pn((function(){return(0,a._)("div",{class:"param-name"},"Replace Failed Node",-1)})),ia=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-sync-alt"})],-1)})),ua=[oa,ia],la=pn((function(){return(0,a._)("div",{class:"param-name"},"Heal Node",-1)})),ca=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wrench"})],-1)})),da=[la,ca],va=pn((function(){return(0,a._)("div",{class:"param-name"},"Replicate info to secondary controller",-1)})),ma=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-clone"})],-1)})),pa=[va,ma],fa=pn((function(){return(0,a._)("div",{class:"param-name"},"Request network update",-1)})),wa=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wifi"})],-1)})),ga=[fa,wa],_a=pn((function(){return(0,a._)("div",{class:"param-name"},"Request neighbours update",-1)})),ha=pn((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-network-wired"})],-1)})),ka=[_a,ha];function ba(e,n,t,s,o,i){var u,l,c,d;return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["item node",{selected:t.selected}])},[(0,a._)("div",{class:(0,r.C_)(["row name header vertical-center",{selected:t.selected}]),textContent:(0,r.zw)(t.node.name&&t.node.name.length?t.node.name:"")),onClick:n[0]||(n[0]=function(n){return e.$emit("select")})},null,10,fn),t.selected?((0,a.wg)(),(0,a.iD)("div",wn,[(0,a._)("div",gn,[_n,(0,a._)("div",hn,[(0,a._)("div",{class:(0,r.C_)(["edit-cell",{hidden:!o.editMode.name}])},[(0,a._)("form",{ref:"nameForm",onSubmit:n[2]||(n[2]=(0,mn.iM)((function(){return i.editName&&i.editName.apply(i,arguments)}),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"name",value:t.node.name,disabled:o.commandRunning},null,8,kn)]),(0,a._)("span",bn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[1]||(n[1]=function(e){return o.editMode.name=!1})},yn),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},zn,8,Cn)])],544)],2),(0,a._)("div",{class:(0,r.C_)({hidden:o.editMode.name})},[(0,a._)("span",{textContent:(0,r.zw)(null!==(u=t.node.name)&&void 0!==u&&u.length?t.node.name:""))},null,8,Dn),(0,a._)("span",Nn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[3]||(n[3]=function(e){return i.onEditMode("name")}),disabled:o.commandRunning},In,8,qn)])],2)])]),(0,a._)("div",Zn,[jn,(0,a._)("div",Mn,[(0,a._)("div",{class:(0,r.C_)(["edit-cell",{hidden:!o.editMode.location}])},[(0,a._)("form",{ref:"locationForm",onSubmit:n[5]||(n[5]=(0,mn.iM)((function(){return i.editLocation&&i.editLocation.apply(i,arguments)}),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"location",value:t.node.location,disabled:o.commandRunning},null,8,Vn)]),(0,a._)("span",On,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[4]||(n[4]=function(e){return o.editMode.location=!1})},$n),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},En,8,Un)])],544)],2),(0,a._)("div",{class:(0,r.C_)({hidden:o.editMode.location})},[(0,a._)("span",{textContent:(0,r.zw)(null!==(l=t.node.location)&&void 0!==l&&l.length?t.node.location:"")},null,8,Wn),(0,a._)("span",Fn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[6]||(n[6]=function(e){return i.onEditMode("location")}),disabled:o.commandRunning},Gn,8,Hn)])],2)])]),(0,a._)("div",Kn,[Bn,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.type)},null,8,Yn)]),(0,a._)("div",Pn,[Jn,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.role)},null,8,Qn)]),(0,a._)("div",Xn,[et,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.node_id)},null,8,nt)]),t.node.neighbours.length?((0,a.wg)(),(0,a.iD)("div",tt,[at,(0,a._)("div",rt,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.node.neighbours,(function(e,n){return(0,a.wg)(),(0,a.iD)("div",{class:"row pull-right",key:n,textContent:(0,r.zw)(e)},null,8,st)})),128))])])):(0,a.kq)("",!0),(0,a._)("div",ot,[it,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_ready)},null,8,ut)]),(0,a._)("div",lt,[ct,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_failed)},null,8,dt)]),(0,a._)("div",vt,[mt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.manufacturer_id)},null,8,pt)]),(0,a._)("div",ft,[wt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.product_type)},null,8,gt)]),null!==(c=t.node.product_name)&&void 0!==c&&c.length?((0,a.wg)(),(0,a.iD)("div",_t,[ht,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.product_name)},null,8,kt)])):(0,a.kq)("",!0),(0,a._)("div",bt,[xt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.manufacturer_id)},null,8,yt)]),null!==(d=t.node.manufacturer_name)&&void 0!==d&&d.length?((0,a.wg)(),(0,a.iD)("div",Ct,[Rt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.manufacturer_name)},null,8,zt)])):(0,a.kq)("",!0),(0,a._)("div",Dt,[Nt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.capabilities.join(", "))},null,8,qt)]),(0,a._)("div",St,[It,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.command_classes.join(", "))},null,8,Zt)]),(0,a._)("div",jt,[Mt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(Object.values(t.node.groups).map((function(e){return e.label||""})).join(", "))},null,8,Vt)]),t.node.home_id?((0,a.wg)(),(0,a.iD)("div",Ot,[At,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.home_id.toString(16))},null,8,$t)])):(0,a.kq)("",!0),(0,a._)("div",Ut,[Tt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_awake)},null,8,Et)]),null!=t.node.is_locked?((0,a.wg)(),(0,a.iD)("div",Wt,[Ft,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.is_locked)},null,8,Ht)])):(0,a.kq)("",!0),t.node.last_update?((0,a.wg)(),(0,a.iD)("div",Lt,[Gt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(e.formatDateTime(t.node.last_update))},null,8,Kt)])):(0,a.kq)("",!0),t.node.baud_rate?((0,a.wg)(),(0,a.iD)("div",Bt,[Yt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.baud_rate)},null,8,Pt)])):(0,a.kq)("",!0),t.node.max_baud_rate?((0,a.wg)(),(0,a.iD)("div",Jt,[Qt,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.node.max_baud_rate)},null,8,Xt)])):(0,a.kq)("",!0),(0,a._)("div",ea,[na,(0,a._)("div",ta,[t.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row error",onClick:n[7]||(n[7]=function(){return i.removeFailedNode&&i.removeFailedNode.apply(i,arguments)})},sa)):(0,a.kq)("",!0),t.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:1,class:"row error",onClick:n[8]||(n[8]=function(){return i.replaceFailedNode&&i.replaceFailedNode.apply(i,arguments)})},ua)):(0,a.kq)("",!0),(0,a._)("div",{class:"row",onClick:n[9]||(n[9]=function(){return i.heal&&i.heal.apply(i,arguments)})},da),(0,a._)("div",{class:"row",onClick:n[10]||(n[10]=function(){return i.replicationSend&&i.replicationSend.apply(i,arguments)})},pa),(0,a._)("div",{class:"row",onClick:n[11]||(n[11]=function(){return i.requestNetworkUpdate&&i.requestNetworkUpdate.apply(i,arguments)})},ga),(0,a._)("div",{class:"row",onClick:n[12]||(n[12]=function(){return i.requestNeighbourUpdate&&i.requestNeighbourUpdate.apply(i,arguments)})},ka)])])])):(0,a.kq)("",!0)],2)}var xa={name:"Node",emits:["select"],mixins:[un],props:{node:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data:function(){return{commandRunning:!1,editMode:{name:!1,location:!1}}},methods:{removeFailedNode:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:if(confirm("Are you sure that you want to remove this node?")){n.next=5;break}return n.abrupt("return");case 5:return e.commandRunning=!0,n.prev=6,n.next=9,e.zrequest("remove_node",{node_id:e.node.node_id});case 9:return n.prev=9,e.commandRunning=!1,n.finish(9);case 12:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},replaceFailedNode:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:if(confirm("Are you sure that you want to replace this node?")){n.next=5;break}return n.abrupt("return");case 5:return e.commandRunning=!0,n.prev=6,n.next=9,e.zrequest("replace_node",{node_id:e.node.node_id});case 9:return n.prev=9,e.commandRunning=!1,n.finish(9);case 12:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},replicationSend:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("replication_send",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()},requestNetworkUpdate:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("request_network_update",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()},requestNeighbourUpdate:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return e.notify({text:"A command is already running"}),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("request_node_neighbour_update",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()},onEditMode:function(e){this.editMode[e]=!0;var n=this.$refs[e+"Form"],t=n.querySelector("input[type=text]");setTimeout((function(){t.focus(),t.select()}),10)},editName:function(e){var n=this;return(0,Se.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.target.querySelector("input[name=name]").value,n.commandRunning=!0,t.prev=2,t.next=5,n.zrequest("set_node_name",{node_id:n.node.node_id,new_name:a});case 5:return t.prev=5,n.commandRunning=!1,t.finish(5);case 8:n.editMode.name=!1;case 9:case"end":return t.stop()}}),t,null,[[2,,5,8]])})))()},editLocation:function(e){var n=this;return(0,Se.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.target.querySelector("input[name=location]").value,n.commandRunning=!0,t.prev=2,t.next=5,n.zrequest("set_node_location",{node_id:n.node.node_id,location:a});case 5:return t.prev=5,n.commandRunning=!1,t.finish(5);case 8:n.editMode.location=!1;case 9:case"end":return t.stop()}}),t,null,[[2,,5,8]])})))()},heal:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.commandRunning){n.next=3;break}return console.log("A command is already running"),n.abrupt("return");case 3:return e.commandRunning=!0,n.prev=4,n.next=7,e.zrequest("node_heal",{node_id:e.node.node_id});case 7:return n.prev=7,e.commandRunning=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[4,,7,10]])})))()}}};const ya=(0,cn.Z)(xa,[["render",ba],["__scopeId","data-v-3da196a6"]]);var Ca=ya,Ra=t(8453),za=t(5771),Da=t(9015),Na=t(1232),qa=t(6);t(2526),t(1817),t(2165),t(8783);function Sa(e){return Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sa(e)}var Ia=function(e){return(0,a.dD)("data-v-0021cd76"),e=e(),(0,a.Cn)(),e},Za={class:"section value"},ja={class:"header"},Ma={class:"title"},Va=["disabled","data-id-on-network"],Oa=Ia((function(){return(0,a._)("i",{class:"fa fa-edit"},null,-1)})),Aa=[Oa],$a={class:"body"},Ua={class:"row"},Ta=Ia((function(){return(0,a._)("div",{class:"param-name"},"Value",-1)})),Ea={class:"param-value"},Wa={key:0,class:"value-view"},Fa=["textContent"],Ha=["textContent"],La={key:1,class:"value-edit"},Ga={key:0,class:"list"},Ka=["textContent","selected","value"],Ba={key:1,class:"numeric slider-container"},Ya={class:"col-10"},Pa={class:"row"},Ja=["textContent"],Qa=["textContent"],Xa={class:"row"},er={class:"col-2"},nr=["value"],tr={key:2,class:"boolean"},ar={key:3,class:"value-data"},rr=["value"],sr=["textContent"],or=Ia((function(){return(0,a._)("div",{class:"param-name"},"Remove From Scene",-1)})),ir=Ia((function(){return(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1)})),ur=[or,ir],lr={key:1,class:"row",style:{cursor:"pointer"}},cr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Add To Scene",-1)})),dr={class:"param-value"},vr={key:2,class:"row"},mr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Help",-1)})),pr=["textContent"],fr={class:"row"},wr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Value ID",-1)})),gr=["textContent"],_r={key:3,class:"row"},hr=Ia((function(){return(0,a._)("div",{class:"param-name"},"ID on Network",-1)})),kr=["textContent"],br={class:"row"},xr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Command Class",-1)})),yr=["textContent"],Cr={key:4,class:"row"},Rr=Ia((function(){return(0,a._)("div",{class:"param-name"},"Last Update",-1)})),zr=["textContent"];function Dr(e,n,t,s,o,i){var u,l,c,d,v,m=(0,a.up)("Slider"),p=(0,a.up)("ToggleSwitch"),f=(0,a.up)("DropdownItem"),w=(0,a.up)("Dropdown");return(0,a.wg)(),(0,a.iD)("div",Za,[(0,a._)("div",ja,[(0,a._)("div",Ma,[(0,a._)("button",{class:"btn btn-default btn-value-name-edit",title:"Edit value name",disabled:o.commandRunning,"data-id-on-network":t.value.id_on_network,onClick:n[0]||(n[0]=function(){return i.editName&&i.editName.apply(i,arguments)})},Aa,8,Va),(0,a.Uk)(" "+(0,r.zw)(t.value.label),1)])]),(0,a._)("div",$a,[(0,a._)("div",Ua,[Ta,(0,a._)("div",Ea,[t.value.is_read_only?((0,a.wg)(),(0,a.iD)("div",Wa,[(0,a._)("div",{class:"value-data",textContent:(0,r.zw)(t.value.data)},null,8,Fa),null!==(u=t.value.units)&&void 0!==u&&u.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"unit",textContent:(0,r.zw)(t.value.units)},null,8,Ha)):(0,a.kq)("",!0)])):((0,a.wg)(),(0,a.iD)("div",La,[(0,a._)("div",{class:(0,r.C_)(["col-"+(null!==(l=t.value.units)&&void 0!==l&&l.length?"11":"12")])},["List"===t.value.type?((0,a.wg)(),(0,a.iD)("div",Ga,[(0,a._)("label",null,[(0,a._)("select",{onChange:n[1]||(n[1]=function(){return i.onValueChange&&i.onValueChange.apply(i,arguments)})},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.value.data_items,(function(e,n){return(0,a.wg)(),(0,a.iD)("option",{textContent:(0,r.zw)("object"===Sa(e)?e.text:e),key:n,selected:"object"===Sa(e)?t.value.data===e.value:t.value.data===e,value:"object"===Sa(e)?e.value:n},null,8,Ka)})),128))],32)])])):["Int","Long","Byte","Decimal","Short"].indexOf(t.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",Ba,[(0,a._)("div",Ya,[(0,a._)("div",Pa,[(0,a._)("span",{class:"value-min",textContent:(0,r.zw)(t.value.min)},null,8,Ja),(0,a._)("span",{class:"value-max",textContent:(0,r.zw)(t.value.max)},null,8,Qa)]),(0,a._)("div",Xa,[(0,a._)("label",null,[(0,a.Wm)(m,{range:[t.value.min,t.value.max],value:t.value.data,onChange:i.onValueChange},null,8,["range","value","onChange"])])])]),(0,a._)("div",er,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:t.value.data,onChange:n[2]||(n[2]=function(){return i.onValueChange&&i.onValueChange.apply(i,arguments)})},null,40,nr)])])])):["Bool","Button"].indexOf(t.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",tr,[(0,a.Wm)(p,{value:t.value.data,onInput:n[3]||(n[3]=function(e){return i.onValueChange(e,!t.value.data)})},null,8,["value"])])):((0,a.wg)(),(0,a.iD)("div",ar,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:t.value.data,onChange:n[4]||(n[4]=function(){return i.onValueChange&&i.onValueChange.apply(i,arguments)})},null,40,rr)])]))],2),null!==(c=t.value.units)&&void 0!==c&&c.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"col-1 unit",textContent:(0,r.zw)(t.value.units)},null,8,sr)):(0,a.kq)("",!0)]))])]),null!=t.sceneId?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row",style:{cursor:"pointer"},onClick:n[5]||(n[5]=function(n){return e.$emit("remove-from-scene",{valueId:t.value.id_on_network,sceneId:t.sceneId})})},ur)):(0,a.kq)("",!0),null!==(d=i.addValueToSceneItems)&&void 0!==d&&d.length?((0,a.wg)(),(0,a.iD)("div",lr,[cr,(0,a._)("div",dr,[(0,a.Wm)(w,{title:"Add to scene","icon-class":"fa fa-plus"},{default:(0,a.w5)((function(){return[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(i.addValueToSceneItems,(function(n,r){return(0,a.wg)(),(0,a.j4)(f,{key:r,text:n.label,disabled:o.commandRunning,onClick:function(a){return e.$emit("add-to-scene",{sceneId:n.scene_id,valueId:t.value.id_on_network})}},null,8,["text","disabled","onClick"])})),128))]})),_:1})])])):(0,a.kq)("",!0),null!==(v=t.value.help)&&void 0!==v&&v.length?((0,a.wg)(),(0,a.iD)("div",vr,[mr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.help)},null,8,pr)])):(0,a.kq)("",!0),(0,a._)("div",fr,[wr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.value_id)},null,8,gr)]),t.value.value_id!==t.value.id_on_network?((0,a.wg)(),(0,a.iD)("div",_r,[hr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.id_on_network)},null,8,kr)])):(0,a.kq)("",!0),(0,a._)("div",br,[xr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(t.value.command_class_name||t.value.command_class)},null,8,yr)]),t.value.last_update?((0,a.wg)(),(0,a.iD)("div",Cr,[Rr,(0,a._)("div",{class:"param-value",textContent:(0,r.zw)(e.formatDateTime(t.value.last_update))},null,8,zr)])):(0,a.kq)("",!0)])])}t(9653);var Nr=t(8070),qr={name:"Value",components:{Slider:Nr.Z,Dropdown:za.Z,DropdownItem:Da.Z,ToggleSwitch:qa.Z},mixins:[un],emits:["remove-from-scene","add-to-scene","refresh"],props:{value:{type:Object,required:!0},node:{type:Object,required:!0},selected:{type:Boolean,default:!1},sceneId:{type:Number},scenes:{type:Object,default:function(){return{}}}},data:function(){return{commandRunning:!1}},computed:{addValueToSceneItems:function(){var e=this;return Object.values(this.scenes||{}).filter((function(n){return!(e.value.id_on_network in n.values)}))}},methods:{editName:function(){var e=this;return(0,Se.Z)(regeneratorRuntime.mark((function n(){var t,a,r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.node.values[e.value.id_on_network],s=prompt("New name",r.label),null!==(t=s)&&void 0!==t&&t.length&&(s=s.trim()),null!==(a=s)&&void 0!==a&&a.length&&s!==r.label){n.next=5;break}return n.abrupt("return");case 5:return e.commandRunning=!0,n.prev=6,n.next=9,e.zrequest("set_value_label",{id_on_network:r.id_on_network,new_label:s});case 9:return n.prev=9,e.commandRunning=!1,n.finish(9);case 12:e.$emit("refresh"),e.notify({text:"Value successfully renamed",image:{iconClass:"fa fa-check"}});case 14:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},onValueChange:function(e,n){var t=this;return(0,Se.Z)(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:r=e.target?e.target:e.event.target.parentElement,s=t.node.values[t.value.id_on_network],void 0===n&&(n=null!=r.value?r.value:e.value),a.t0=s.type,a.next="List"===a.t0?6:"Int"===a.t0||"Short"===a.t0||"Long"===a.t0||"Byte"===a.t0?8:"Decimal"===a.t0?10:12;break;case 6:return n=s.data_items[e.target.value],a.abrupt("break",12);case 8:return n=parseInt(n),a.abrupt("break",12);case 10:return n=parseFloat(n),a.abrupt("break",12);case 12:return"object"===Sa(n)&&(n=n.value),t.commandRunning=!0,a.prev=14,a.next=17,t.zrequest("set_value",{id_on_network:s.id_on_network,data:n});case 17:return a.prev=17,t.commandRunning=!1,a.finish(17);case 20:t.$emit("refresh"),t.notify({text:"Value successfully modified",image:{iconClass:"fa fa-check"}});case 22:case"end":return a.stop()}}),a,null,[[14,,17,20]])})))()}}};const Sr=(0,cn.Z)(qr,[["render",Dr],["__scopeId","data-v-0021cd76"]]);var Ir=Sr,Zr={name:"Zwave",components:{Value:Ir,ToggleSwitch:qa.Z,Loading:Na.Z,DropdownItem:Da.Z,Dropdown:za.Z,Modal:Ra.Z,Group:vn,Node:Ca},mixins:[un],data:function(){return{status:{},views:{},nodes:{},groups:{},scenes:{},commandRunning:!1,values:{switches:{},dimmers:{},sensors:{},battery_levels:{},power_levels:{},bulbs:{},doorlocks:{},usercodes:{},thermostats:{},protections:{}},selected:{view:"nodes",nodeId:void 0,groupId:void 0,sceneId:void 0,valueId:void 0},loading:{status:!1,nodes:!1,groups:!1,scenes:!1}}},computed:{valuesMap:function(){for(var e={},n=0,t=Object.values(this.nodes);n]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar getMethod = require('../internals/get-method');\nvar getSubstitution = require('../internals/get-substitution');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar max = Math.max;\nvar min = Math.min;\nvar concat = uncurryThis([].concat);\nvar push = uncurryThis([].push);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar stringSlice = uncurryThis(''.slice);\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive\n return ''.replace(re, '$') !== '7';\n});\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);\n return replacer\n ? call(replacer, searchValue, O, replaceValue)\n : call(nativeReplace, toString(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (\n typeof replaceValue == 'string' &&\n stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&\n stringIndexOf(replaceValue, '$<') === -1\n ) {\n var res = maybeCallNative(nativeReplace, rx, S, replaceValue);\n if (res.done) return res.value;\n }\n\n var functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n push(results, result);\n if (!global) break;\n\n var matchStr = toString(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = toString(result[0]);\n var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = concat([matched], captures, position, S);\n if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);\n var replacement = toString(apply(replaceValue, undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + stringSlice(S, nextSourcePosition);\n }\n ];\n}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n methods: {\n async zrequest(method, args) {\n return await this.request(`${this.pluginName}.${method}`, args)\n },\n }\n}\n","import { render } from \"./Group.vue?vue&type=template&id=56458f8e&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=56458f8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56458f8e\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Node.vue?vue&type=template&id=3da196a6&scoped=true\"\nimport script from \"./Node.vue?vue&type=script&lang=js\"\nexport * from \"./Node.vue?vue&type=script&lang=js\"\n\nimport \"./Node.vue?vue&type=style&index=0&id=3da196a6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3da196a6\"]])\n\nexport default __exports__","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","\n\n\n\n\n","import { render } from \"./Value.vue?vue&type=template&id=0021cd76&scoped=true\"\nimport script from \"./Value.vue?vue&type=script&lang=js\"\nexport * from \"./Value.vue?vue&type=script&lang=js\"\n\nimport \"./Value.vue?vue&type=style&index=0&id=0021cd76&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0021cd76\"]])\n\nexport default __exports__","import { render } from \"./Zwave.vue?vue&type=template&id=c573354c\"\nimport script from \"./Zwave.vue?vue&type=script&lang=js\"\nexport * from \"./Zwave.vue?vue&type=script&lang=js\"\n\nimport \"./Zwave.vue?vue&type=style&index=0&id=c573354c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["uncurryThis","toObject","floor","Math","charAt","replace","stringSlice","slice","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","module","exports","matched","str","position","captures","namedCaptures","replacement","tailPos","length","m","symbols","undefined","match","ch","capture","n","f","PROPER_FUNCTION_NAME","fails","whitespaces","non","METHOD_NAME","name","apply","call","fixRegExpWellKnownSymbolLogic","anObject","isCallable","toIntegerOrInfinity","toLength","toString","requireObjectCoercible","advanceStringIndex","getMethod","getSubstitution","regExpExec","wellKnownSymbol","REPLACE","max","min","concat","push","stringIndexOf","indexOf","maybeToString","it","String","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","REPLACE_SUPPORTS_NAMED_GROUPS","re","exec","result","groups","a","_","nativeReplace","maybeCallNative","UNSAFE_SUBSTITUTE","searchValue","replaceValue","O","this","replacer","string","rx","S","res","done","value","functionalReplace","global","fullUnicode","unicode","lastIndex","results","matchStr","accumulatedResult","nextSourcePosition","i","index","j","replacerArgs","$","$trim","forcedStringTrimMethod","target","proto","forced","trim","class","ref","withLabel","type","range","step","disabled","onUpdate","emits","props","Number","Boolean","default","Array","methods","event","update","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","title","loading","status","state","device","stats","key","selected","groupId","Object","values","nodes","filter","node","addToGroup","node_id","view","$event","views","id","toUpperCase","addScene","text","commandRunning","networkInfoModalOpen","startNetwork","stopNetwork","addNode","removeNode","switchAll","cancelCommand","killCommand","receiveConfiguration","createNewPrimary","transferPrimaryRole","healNetwork","softReset","hardReset","refresh","keys","nodeId","pluginName","onNodeClick","group","associations","map","owner","addNodesToGroupModal","show","scenes","scene","sceneId","label","activateScene","id_on_network","valuesMap","data","removeValueFromScene","removeScene","renameScene","valueId","addValueToScene","refreshNodes","max_associations","removeFromGroup","mixins","Utils","required","zrequest","method","args","request","mixin","confirm","group_id","group_index","editMode","editName","onEditMode","location","editLocation","role","neighbours","neighbour","is_ready","is_failed","manufacturer_id","product_type","product_name","manufacturer_name","capabilities","join","command_classes","g","home_id","is_awake","is_locked","last_update","baud_rate","max_baud_rate","removeFailedNode","replaceFailedNode","heal","replicationSend","requestNetworkUpdate","requestNeighbourUpdate","notify","mode","form","input","querySelector","setTimeout","focus","select","new_name","console","log","_typeof","obj","Symbol","iterator","constructor","prototype","is_read_only","units","onValueChange","data_items","addValueToSceneItems","scene_id","help","value_id","command_class_name","command_class","components","Slider","Dropdown","DropdownItem","ToggleSwitch","computed","prompt","new_label","image","iconClass","parentElement","parseInt","parseFloat","Value","Loading","Modal","Group","Node","switches","dimmers","sensors","battery_levels","power_levels","bulbs","doorlocks","usercodes","thermostats","protections","refreshGroups","reduce","refreshScenes","refreshValues","item","refreshStatus","onNodeUpdate","networkInfoModal","onCommandEvent","error","state_description","error_description","subscribe","unmounted","forEach","eventType","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js b/platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js new file mode 100644 index 000000000..aa276f384 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js @@ -0,0 +1,2 @@ +(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4848],{7556:function(e,t,n){var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},5631:function(e,t,n){"use strict";var r=n(3070).f,i=n(30),a=n(9190),s=n(9974),o=n(5787),u=n(408),l=n(654),c=n(6340),d=n(9781),v=n(2423).fastKey,p=n(9909),f=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){o(e,p),f(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&u(r,e[l],{that:e,AS_ENTRIES:n})})),p=c.prototype,g=m(t),h=function(e,t,n){var r,i,a=g(e),s=b(e,t);return s?s.value=n:(a.last=s={index:i=v(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),d?a.size++:e.size++,"F"!==i&&(a.index[i]=s)),e},b=function(e,t){var n,r=g(e),i=v(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(p,{clear:function(){var e=this,t=g(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=g(t),r=b(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),d?n.size--:t.size--}return!!r},forEach:function(e){var t,n=g(this),r=s(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),a(p,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return h(this,0===e?0:e,t)}}:{add:function(e){return h(this,e=0===e?0:e,e)}}),d&&r(p,"size",{get:function(){return g(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),a=m(r);l(e,t,(function(e,t){f(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},7710:function(e,t,n){"use strict";var r=n(2109),i=n(7854),a=n(1702),s=n(4705),o=n(8052),u=n(2423),l=n(408),c=n(5787),d=n(614),v=n(111),p=n(7293),f=n(7072),m=n(8003),g=n(9587);e.exports=function(e,t,n){var h=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),y=h?"set":"add",w=i[e],_=w&&w.prototype,k=w,x={},q=function(e){var t=a(_[e]);o(_,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!v(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!v(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!v(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},C=s(e,!d(w)||!(b||_.forEach&&!p((function(){(new w).entries().next()}))));if(C)k=n.getConstructor(t,e,h,y),u.enable();else if(s(e,!0)){var z=new k,D=z[y](b?{}:-0,1)!=z,R=p((function(){z.has(1)})),Z=f((function(e){new w(e)})),M=!b&&p((function(){var e=new w,t=5;while(t--)e[y](t,t);return!e.has(-0)}));Z||(k=t((function(e,t){c(e,_);var n=g(new w,e,k);return void 0!=t&&l(t,n[y],{that:n,AS_ENTRIES:h}),n})),k.prototype=_,_.constructor=k),(R||M)&&(q("delete"),q("has"),h&&q("get")),(M||D)&&q(y),b&&_.clear&&delete _.clear}return x[e]=k,r({global:!0,constructor:!0,forced:k!=w},x),m(k,e),b||n.setStrong(k,e,h),k}},9190:function(e,t,n){var r=n(8052);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},6677:function(e,t,n){var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},647:function(e,t,n){var r=n(1702),i=n(7908),a=Math.floor,s=r("".charAt),o=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,v){var p=n+e.length,f=r.length,m=c;return void 0!==d&&(d=i(d),m=l),o(v,m,(function(i,o){var l;switch(s(o,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":l=d[u(o,1,-1)];break;default:var c=+o;if(0===c)return i;if(c>f){var v=a(c/10);return 0===v?i:v<=f?void 0===r[v-1]?s(o,1):r[v-1]+s(o,1):i}l=r[c-1]}return void 0===l?"":l}))}},2423:function(e,t,n){var r=n(2109),i=n(1702),a=n(3501),s=n(111),o=n(2597),u=n(3070).f,l=n(8006),c=n(1156),d=n(2050),v=n(9711),p=n(6677),f=!1,m=v("meta"),g=0,h=function(e){u(e,m,{value:{objectID:"O"+g++,weakData:{}}})},b=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,m)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[m].objectID},y=function(e,t){if(!o(e,m)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[m].weakData},w=function(e){return p&&f&&d(e)&&!o(e,m)&&h(e),e},_=function(){k.enable=function(){},f=!0;var e=l.f,t=i([].splice),n={};n[m]=1,e(n).length&&(l.f=function(n){for(var r=e(n),i=0,a=r.length;i")}));s("replace",(function(e,t,n){var a=R?"$":"$0";return[function(e,n){var r=p(this),a=void 0==e?void 0:m(e,y);return a?i(a,e,r,n):i(t,v(r),e,n)},function(e,i){var s=u(this),o=v(e);if("string"==typeof i&&-1===q(i,a)&&-1===q(i,"$<")){var p=n(t,s,o,i);if(p.done)return p.value}var m=l(i);m||(i=v(i));var b=s.global;if(b){var y=s.unicode;s.lastIndex=0}var D=[];while(1){var R=h(s,o);if(null===R)break;if(x(D,R),!b)break;var Z=v(R[0]);""===Z&&(s.lastIndex=f(o,d(s.lastIndex),y))}for(var M="",I=0,E=0;E=I&&(M+=C(o,I,j)+V,I=j+G.length)}return M+C(o,I)}]}),!Z||!D||R)},3210:function(e,t,n){"use strict";var r=n(2109),i=n(3111).trim,a=n(6091);r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return i(this)}})},634:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(9584);n(1703);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n.5?u/(2-a-s):u/(a+s),a){case e:r=(t-n)/u+(tl&&o>u&&o>1?(u/=o,l/=o,o=1):u>l&&u>o&&u>1?(o/=u,l/=u,u=1):l>o&&l>u&&l>1&&(o/=l,u/=l,l=1),o=o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,l=l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055,o=Math.round(255*o),u=Math.round(255*u),l=Math.round(255*l),isNaN(o)&&(o=0),isNaN(u)&&(u=0),isNaN(l)&&(l=0),[o,u,l].map((function(e){return Math.min(Math.max(0,e),255)}))}},{key:"rgbToXY",value:function(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.664511*e+.154324*t+.162028*n,i=.283881*e+.668433*t+.047685*n,a=88e-6*e+.07231*t+.986039*n,s=parseFloat((r/(r+i+a)).toFixed(4)),o=parseFloat((i/(r+i+a)).toFixed(4));return isNaN(s)&&(s=0),isNaN(o)&&(o=0),[s,o]}},{key:"rgbToBri",value:function(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}},{key:"getRGB",value:function(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}},{key:"getXY",value:function(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}},{key:"toRGB",value:function(e){var t=this.getRGB(e);if(t)return t;var n=this.getXY(e);return n&&e.bri?this.xyToRgb.apply(this,(0,r.Z)(n).concat([e.bri])):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}},{key:"toXY",value:function(e){var t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];var n=this.getRGB(e);if(n)return this.rgbToXY.apply(this,(0,r.Z)(n));if(e.hue&&e.sat&&e.bri){var i=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY.apply(this,(0,r.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"toHSL",value:function(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];var t=this.getRGB(e);if(t)return this.rgbToHsl.apply(this,(0,r.Z)(t));var n=this.getXY(e);if(n&&e.bri){var i=this.xyToRgb.apply(this,(0,r.Z)(n).concat([e.bri]));return this.rgbToHsl.apply(this,(0,r.Z)(i))}console.debug("Could not determine color space"),console.debug(e)}},{key:"hexToRgb",value:function(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((function(e){return parseInt(e,16)}))}},{key:"rgbToHex",value:function(e){return"#"+e.map((function(e){var t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}]),e}()},8070:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(6252),i=n(3577),a=n(9963),s={class:"slider-wrapper"},o=["min","max","step","disabled","value"],u={class:"track-inner",ref:"track"},l={class:"thumb",ref:"thumb"},c=["textContent"];function d(e,t,n,d,v,p){return(0,r.wg)(),(0,r.iD)("label",s,[(0,r._)("input",{class:(0,i.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:t[0]||(t[0]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onChange:t[1]||(t[1]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onMouseup:t[2]||(t[2]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onMousedown:t[3]||(t[3]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onTouchstart:t[4]||(t[4]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onTouchend:t[5]||(t[5]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onKeyup:t[6]||(t[6]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"])),onKeydown:t[7]||(t[7]=(0,a.iM)((function(){return p.onUpdate&&p.onUpdate.apply(p,arguments)}),["stop"]))},null,42,o),(0,r._)("div",{class:(0,i.C_)(["track",{"with-label":n.withLabel}])},[(0,r._)("div",u,null,512)],2),(0,r._)("div",l,null,512),n.withLabel?((0,r.wg)(),(0,r.iD)("span",{key:0,class:"label",textContent:(0,i.zw)(n.value),ref:"label"},null,8,c)):(0,r.kq)("",!0)])}var v=n(4648),p=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(e){this.update(e.target.value),this.$emit(e.type,(0,v.Z)((0,v.Z)({},e),{},{target:(0,v.Z)((0,v.Z)({},e.target),{},{value:this.$refs.range.value})}))},update:function(e){var t=this.$refs.range.clientWidth,n=(e-this.range[0])/(this.range[1]-this.range[0]),r=n*t,i=this.$refs.thumb;i.style.left="".concat(r-i.clientWidth/2,"px"),this.$refs.thumb.style.transform="translate(-".concat(n,"%, -50%)"),this.$refs.track.style.width="".concat(r,"px")}},mounted:function(){null!=this.value&&this.update(this.value)}}),f=n(3744);const m=(0,f.Z)(p,[["render",d],["__scopeId","data-v-0359812c"]]);var g=m},6:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(6252),i=n(3577),a=n(9963),s=function(e){return(0,r.dD)("data-v-a6396ae8"),e=e(),(0,r.Cn)(),e},o=["checked"],u=s((function(){return(0,r._)("div",{class:"switch"},[(0,r._)("div",{class:"dot"})],-1)})),l={class:"label"};function c(e,t,n,s,c,d){return(0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,a.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,r._)("input",{type:"checkbox",checked:n.value},null,8,o),(0,r._)("label",null,[u,(0,r._)("span",l,[(0,r.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=n(3744);const p=(0,v.Z)(d,[["render",c],["__scopeId","data-v-a6396ae8"]]);var f=p},4848:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return bn}});n(4916),n(5306),n(7042),n(7941);var r=n(6252),i=n(3577),a={class:"zigbee-container"},s={key:0,class:"info-body"},o={class:"row"},u=(0,r._)("div",{class:"param-name"},"State",-1),l=["textContent"],c={class:"row"},d=(0,r._)("div",{class:"param-name"},"Permit Join",-1),v=["textContent"],p={key:0,class:"row"},f=(0,r._)("div",{class:"param-name"},"Network Channel",-1),m=["textContent"],g={class:"row"},h=(0,r._)("div",{class:"param-name"},"Zigbee2MQTT Version",-1),b=["textContent"],y={key:1,class:"row"},w=(0,r._)("div",{class:"param-name"},"MQTT Server",-1),_=["textContent"],k={key:2,class:"row"},x=(0,r._)("div",{class:"param-name"},"Serial Port",-1),q=["textContent"],C={key:3,class:"row"},z=(0,r._)("div",{class:"param-name"},"Firmware Type",-1),D=["textContent"],R={key:4,class:"row"},Z=(0,r._)("div",{class:"param-name"},"Firmware Version",-1),M={class:"param-value"},I={key:5,class:"row"},E=(0,r._)("div",{class:"param-name"},"Firmware Revision",-1),G=["textContent"],j={class:"view-options"},N={class:"view-selector col-s-8 col-m-9 col-l-10"},T=["value"],S=["textContent","selected","value"],O={class:"buttons"},V=["disabled"],A=(0,r._)("i",{class:"fa fa-plus"},null,-1),$=[A],U=["disabled"],F=(0,r._)("i",{class:"fa fa-sync-alt"},null,-1),B=[F],L={class:"view-container"},Y={key:0,class:"view devices"},P={key:0,class:"no-items"},H={key:0,class:"loading"},W={key:1,class:"empty"},K={key:1,class:"view groups"},X={key:0,class:"no-items"},J={key:0,class:"loading"},Q={key:1,class:"empty"};function ee(e,t,n,A,F,ee){var te=this,ne=(0,r.up)("Loading"),re=(0,r.up)("Modal"),ie=(0,r.up)("DropdownItem"),ae=(0,r.up)("Dropdown"),se=(0,r.up)("Device"),oe=(0,r.up)("Group");return(0,r.wg)(),(0,r.iD)("div",a,[F.loading?((0,r.wg)(),(0,r.j4)(ne,{key:0})):(0,r.kq)("",!0),(0,r.Wm)(re,{title:"Network Info",ref:"infoModal"},{default:(0,r.w5)((function(){var e,t,n,a,j;return[F.status.info?((0,r.wg)(),(0,r.iD)("div",s,[(0,r._)("div",o,[u,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.state)},null,8,l)]),(0,r._)("div",c,[d,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.permit_join)},null,8,v)]),F.status.info.network?((0,r.wg)(),(0,r.iD)("div",p,[f,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.network.channel)},null,8,m)])):(0,r.kq)("",!0),(0,r._)("div",g,[h,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.version)},null,8,b)]),null!==(e=F.status.info.config)&&void 0!==e&&e.mqtt?((0,r.wg)(),(0,r.iD)("div",y,[w,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.mqtt.server)},null,8,_)])):(0,r.kq)("",!0),null!==(t=F.status.info.config)&&void 0!==t&&t.serial?((0,r.wg)(),(0,r.iD)("div",k,[x,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.serial.port)},null,8,q)])):(0,r.kq)("",!0),null!==(n=F.status.info.coordinator)&&void 0!==n&&n.type?((0,r.wg)(),(0,r.iD)("div",C,[z,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.type)},null,8,D)])):(0,r.kq)("",!0),null!==(a=F.status.info.coordinator)&&void 0!==a&&a.meta?((0,r.wg)(),(0,r.iD)("div",R,[Z,(0,r._)("div",M,(0,i.zw)(F.status.info.coordinator.meta.maintrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.majorrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.minorrel),1)])):(0,r.kq)("",!0),null!==(j=F.status.info.coordinator)&&void 0!==j&&j.meta?((0,r.wg)(),(0,r.iD)("div",I,[E,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.meta.revision)},null,8,G)])):(0,r.kq)("",!0)])):(0,r.kq)("",!0)]})),_:1},512),(0,r._)("div",j,[(0,r._)("div",N,[(0,r._)("label",null,[(0,r._)("select",{value:F.selected.view,onChange:t[0]||(t[0]=function(e){return te.selected.view=e.target.value})},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(F.views,(function(e,t){return(0,r.wg)(),(0,r.iD)("option",{textContent:(0,i.zw)((t[0].toUpperCase()+t.slice(1)).replace("_"," ")),key:t,selected:e,value:t},null,8,S)})),128))],40,T)])]),(0,r._)("div",O,["groups"===F.selected.view?((0,r.wg)(),(0,r.iD)("button",{key:0,class:"btn btn-default",title:"Add Group",disabled:F.loading,onClick:t[1]||(t[1]=function(){return ee.addGroup&&ee.addGroup.apply(ee,arguments)})},$,8,V)):(0,r.kq)("",!0),(0,r.Wm)(ae,{ref:"networkCommandsDropdown","icon-class":"fa fa-cog",title:"Network commands"},{default:(0,r.w5)((function(){var n;return[(0,r.Wm)(ie,{text:"Network Info",disabled:F.loading,onClick:t[2]||(t[2]=function(t){return e.$refs.infoModal.show()})},null,8,["disabled"]),null!==(n=F.status.info)&&void 0!==n&&n.permit_join?((0,r.wg)(),(0,r.j4)(ie,{key:1,text:"Disable Join",disabled:F.loading,onClick:t[4]||(t[4]=function(e){return ee.permitJoin(!1)})},null,8,["disabled"])):((0,r.wg)(),(0,r.j4)(ie,{key:0,text:"Permit Join",disabled:F.loading,onClick:t[3]||(t[3]=function(e){return ee.permitJoin(!0)})},null,8,["disabled"])),(0,r.Wm)(ie,{text:"Factory Reset",disabled:F.loading,onClick:ee.factoryReset},null,8,["disabled","onClick"])]})),_:1},512),(0,r._)("button",{class:"btn btn-default",title:"Refresh network",disabled:F.loading,onClick:t[5]||(t[5]=function(){return ee.refresh&&ee.refresh.apply(ee,arguments)})},B,8,U)])]),(0,r._)("div",L,["devices"===F.selected.view?((0,r.wg)(),(0,r.iD)("div",Y,[Object.keys(F.devices).length?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",P,[F.loading?((0,r.wg)(),(0,r.iD)("div",H,"Loading devices...")):((0,r.wg)(),(0,r.iD)("div",W,"No devices found on the network"))])),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(F.devices,(function(e,t){return(0,r.wg)(),(0,r.j4)(se,{key:t,device:e,groups:F.groups,selected:F.selected.deviceId===t,onSelect:function(e){return F.selected.deviceId=F.selected.deviceId===t?null:t},onRename:ee.refreshDevices,onRemove:ee.refreshDevices,onGroupsEdit:ee.refreshGroups},null,8,["device","groups","selected","onSelect","onRename","onRemove","onGroupsEdit"])})),128))])):"groups"===F.selected.view?((0,r.wg)(),(0,r.iD)("div",K,[Object.keys(F.groups).length?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",X,[F.loading?((0,r.wg)(),(0,r.iD)("div",J,"Loading groups...")):((0,r.wg)(),(0,r.iD)("div",Q,"No groups available on the network"))])),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(F.groups,(function(e,t){return(0,r.wg)(),(0,r.j4)(oe,{key:t,group:e,devices:F.devices,selected:F.selected.groupId===t,onSelect:function(e){return F.selected.groupId=F.selected.groupId===t?null:t},onRename:ee.refreshGroups,onRemove:ee.refreshGroups,onEdit:ee.refreshGroups},null,8,["group","devices","selected","onSelect","onRename","onRemove","onEdit"])})),128))])):(0,r.kq)("",!0)])])}var te=n(4648),ne=n(8534),re=(n(5666),n(1539),n(3948),n(5771)),ie=n(9015),ae=n(1232),se=n(6813),oe=(n(2526),n(1817),n(9600),n(1249),n(9714),n(9653),n(9963)),ue=function(e){return(0,r.dD)("data-v-6437b841"),e=e(),(0,r.Cn)(),e},le={class:"groups"},ce=["value","checked"],de=["textContent"],ve=ue((function(){return(0,r._)("div",{class:"footer buttons"},[(0,r._)("button",{type:"submit"},"Save")],-1)})),pe=["textContent"],fe={key:1,class:"params"},me={class:"row"},ge=ue((function(){return(0,r._)("div",{class:"param-name"},"Name",-1)})),he={class:"param-value"},be=["value"],ye={class:"buttons"},we=ue((function(){return(0,r._)("i",{class:"fas fa-times"},null,-1)})),_e=[we],ke=ue((function(){return(0,r._)("button",{type:"submit",class:"btn btn-default"},[(0,r._)("i",{class:"fa fa-check"})],-1)})),xe=["textContent"],qe={class:"buttons"},Ce=ue((function(){return(0,r._)("i",{class:"fa fa-edit"},null,-1)})),ze=[Ce],De={class:"row"},Re=ue((function(){return(0,r._)("div",{class:"param-name"},"IEEE Address",-1)})),Ze=["textContent"],Me={key:0,class:"row"},Ie=ue((function(){return(0,r._)("div",{class:"param-name"},"Network Address",-1)})),Ee=["textContent"],Ge={class:"row"},je=ue((function(){return(0,r._)("div",{class:"param-name"},"Type",-1)})),Ne=["textContent"],Te={key:1,class:"row"},Se=ue((function(){return(0,r._)("div",{class:"param-name"},"Vendor",-1)})),Oe={class:"param-value"},Ve={key:2,class:"row"},Ae=ue((function(){return(0,r._)("div",{class:"param-name"},"Model",-1)})),$e={class:"param-value"},Ue={key:3,class:"row"},Fe=ue((function(){return(0,r._)("div",{class:"param-name"},"Model ID",-1)})),Be={class:"param-value"},Le={key:4,class:"row"},Ye=ue((function(){return(0,r._)("div",{class:"param-name"},"Description",-1)})),Pe={class:"param-value"},He={key:5,class:"row"},We=ue((function(){return(0,r._)("div",{class:"param-name"},"Software Build ID",-1)})),Ke={class:"param-value"},Xe={key:6,class:"row"},Je=ue((function(){return(0,r._)("div",{class:"param-name"},"Date Code",-1)})),Qe={class:"param-value"},et={key:7,class:"row"},tt=ue((function(){return(0,r._)("div",{class:"param-name"},"Power Source",-1)})),nt={class:"param-value"},rt={key:8,class:"section values"},it=ue((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Values")],-1)})),at={class:"body"},st={class:"param-name"},ot={key:0,class:"text"},ut=["textContent"],lt=["textContent"],ct={class:"param-value"},dt={key:2},vt=["value","disabled","onChange"],pt={key:3},ft=["value","onChange"],mt={key:0},gt=["value","textContent","selected","disabled"],ht={key:4},bt=["onChange","value"],yt={key:5},wt=["disabled","value","onChange"],_t={class:"section actions"},kt=ue((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Actions")],-1)})),xt={class:"body"},qt=ue((function(){return(0,r._)("div",{class:"param-name"},"Manage groups",-1)})),Ct=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-network-wired"})],-1)})),zt=[qt,Ct],Dt={key:0,class:"param-name"},Rt={key:1,class:"param-name"},Zt=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-sync-alt"})],-1)})),Mt=ue((function(){return(0,r._)("div",{class:"param-name"},"Remove Device",-1)})),It=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-trash"})],-1)})),Et=[Mt,It],Gt=ue((function(){return(0,r._)("div",{class:"param-name"},"Force Remove Device",-1)})),jt=ue((function(){return(0,r._)("div",{class:"param-value"},[(0,r._)("i",{class:"fa fa-trash"})],-1)})),Nt=[Gt,jt];function Tt(e,t,n,a,s,o){var u,l,c,d,v=(0,r.up)("Loading"),p=(0,r.up)("Modal"),f=(0,r.up)("ToggleSwitch"),m=(0,r.up)("Slider");return(0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(["item device",{selected:n.selected}])},[s.loading?((0,r.wg)(),(0,r.j4)(v,{key:0})):(0,r.kq)("",!0),(0,r.Wm)(p,{class:"groups-modal",ref:"groupsModal",title:"Device groups"},{default:(0,r.w5)((function(){return[s.loading?((0,r.wg)(),(0,r.j4)(v,{key:0})):(0,r.kq)("",!0),(0,r._)("form",{class:"content",onSubmit:t[0]||(t[0]=(0,oe.iM)((function(){return o.manageGroups&&o.manageGroups.apply(o,arguments)}),["prevent"]))},[(0,r._)("div",le,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.groups,(function(e,t){var n;return(0,r.wg)(),(0,r.iD)("label",{class:"row group",key:t},[(0,r._)("input",{type:"checkbox",value:t,checked:o.associatedGroups.has(parseInt(e.id))},null,8,ce),(0,r._)("span",{class:"name",textContent:(0,i.zw)(null!==(n=e.friendly_name)&&void 0!==n&&n.length?e.friendly_name:"[Group #".concat(e.id,"]"))},null,8,de)])})),128))]),ve],32)]})),_:1},512),(0,r._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,i.zw)(n.device.friendly_name||n.device.ieee_address),onClick:t[1]||(t[1]=function(t){return e.$emit("select")})},null,10,pe),n.selected?((0,r.wg)(),(0,r.iD)("div",fe,[(0,r._)("div",me,[ge,(0,r._)("div",he,[(0,r._)("div",{class:(0,i.C_)(["name-edit",{hidden:!s.editName}])},[(0,r._)("form",{onSubmit:t[3]||(t[3]=(0,oe.iM)((function(){return o.rename&&o.rename.apply(o,arguments)}),["prevent"]))},[(0,r._)("label",null,[(0,r._)("input",{type:"text",name:"name",ref:"name",value:n.device.friendly_name},null,8,be)]),(0,r._)("span",ye,[(0,r._)("button",{type:"button",class:"btn btn-default",onClick:t[2]||(t[2]=function(e){return s.editName=!1})},_e),ke])],32)],2),(0,r._)("div",{class:(0,i.C_)(["name-edit",{hidden:s.editName}])},[(0,r._)("span",{textContent:(0,i.zw)(n.device.friendly_name)},null,8,xe),(0,r._)("span",qe,[(0,r._)("button",{type:"button",class:"btn btn-default",onClick:t[4]||(t[4]=function(e){return s.editName=!0})},ze)])],2)])]),(0,r._)("div",De,[Re,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(n.device.ieee_address)},null,8,Ze)]),n.device.network_address?((0,r.wg)(),(0,r.iD)("div",Me,[Ie,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(n.device.network_address)},null,8,Ee)])):(0,r.kq)("",!0),(0,r._)("div",Ge,[je,(0,r._)("div",{class:"param-value",textContent:(0,i.zw)(n.device.type)},null,8,Ne)]),null!==(u=n.device.definition)&&void 0!==u&&u.vendor?((0,r.wg)(),(0,r.iD)("div",Te,[Se,(0,r._)("div",Oe,(0,i.zw)(n.device.definition.vendor),1)])):(0,r.kq)("",!0),null!==(l=n.device.definition)&&void 0!==l&&l.model?((0,r.wg)(),(0,r.iD)("div",Ve,[Ae,(0,r._)("div",$e,(0,i.zw)(n.device.definition.model),1)])):(0,r.kq)("",!0),n.device.model_id?((0,r.wg)(),(0,r.iD)("div",Ue,[Fe,(0,r._)("div",Be,(0,i.zw)(n.device.model_id),1)])):(0,r.kq)("",!0),null!==(c=n.device.definition)&&void 0!==c&&c.description?((0,r.wg)(),(0,r.iD)("div",Le,[Ye,(0,r._)("div",Pe,(0,i.zw)(n.device.definition.description),1)])):(0,r.kq)("",!0),n.device.software_build_id?((0,r.wg)(),(0,r.iD)("div",He,[We,(0,r._)("div",Ke,(0,i.zw)(n.device.software_build_id),1)])):(0,r.kq)("",!0),null!==(d=n.device.definition)&&void 0!==d&&d.date_code?((0,r.wg)(),(0,r.iD)("div",Xe,[Je,(0,r._)("div",Qe,(0,i.zw)(n.device.definition.date_code),1)])):(0,r.kq)("",!0),n.device.power_source?((0,r.wg)(),(0,r.iD)("div",et,[tt,(0,r._)("div",nt,(0,i.zw)(n.device.power_source),1)])):(0,r.kq)("",!0),Object.keys(o.displayedValues).length?((0,r.wg)(),(0,r.iD)("div",rt,[it,(0,r._)("div",at,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.displayedValues,(function(e,t){var n,a,s,u,l,c,d,v;return(0,r.wg)(),(0,r.iD)("div",{class:"row value",key:t},[(0,r._)("div",st,[(0,r.Uk)((0,i.zw)(e.description)+" ",1),null!=o.rgbColor&&null!=(null===(n=e.value)||void 0===n?void 0:n.x)&&null!=(null===(a=e.value)||void 0===a?void 0:a.y)||null!=(null===(s=e.value)||void 0===s?void 0:s.hue)&&null!=(null===(u=e.value)||void 0===u?void 0:u.saturation)?((0,r.wg)(),(0,r.iD)("span",ot,"Color")):(0,r.kq)("",!0),e.property?((0,r.wg)(),(0,r.iD)("span",{key:1,class:"name",textContent:(0,i.zw)(e.property)},null,8,ut)):(0,r.kq)("",!0),e.unit?((0,r.wg)(),(0,r.iD)("span",{key:2,class:"unit",textContent:(0,i.zw)(e.unit)},null,8,lt)):(0,r.kq)("",!0)]),(0,r._)("div",ct,["binary"===e.type?((0,r.wg)(),(0,r.j4)(f,{key:0,value:null!=e.value_on?e.value===e.value_on:!!e.value,disabled:!e.writable,onInput:function(t){return o.setValue(e,t)}},null,8,["value","disabled","onInput"])):"numeric"===e.type&&null!=e.value_min&&null!=e.value_max?((0,r.wg)(),(0,r.j4)(m,{key:1,"with-label":!0,range:[e.value_min,e.value_max],value:e.value,disabled:!e.writable,onChange:function(t){return o.setValue(e,t)}},null,8,["range","value","disabled","onChange"])):"numeric"!==e.type||null!=e.value_min&&null!=e.value_max?"enum"===e.type?((0,r.wg)(),(0,r.iD)("label",pt,[(0,r._)("select",{value:e.readable&&null!=e.value?e.value:"",onChange:function(t){return o.setValue(e,t)}},[e.readable?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("option",mt)),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.values,(function(t){return(0,r.wg)(),(0,r.iD)("option",{key:t,value:t,textContent:(0,i.zw)(t),selected:e.readable&&e.value===t,disabled:!e.writable},null,8,gt)})),128))],40,ft)])):null!=o.rgbColor&&null!=(null===(l=e.value)||void 0===l?void 0:l.x)&&null!=(null===(c=e.value)||void 0===c?void 0:c.y)||null!=(null===(d=e.value)||void 0===d?void 0:d.hue)&&null!=(null===(v=e.value)||void 0===v?void 0:v.saturation)?((0,r.wg)(),(0,r.iD)("label",ht,[(0,r._)("input",{type:"color",onChange:(0,oe.iM)((function(t){return o.setValue(e,t)}),["stop"]),value:"#"+o.rgbColor.map((function(e){return e=Number(e).toString(16),1===e.length?"0"+e:e})).join("")},null,40,bt)])):((0,r.wg)(),(0,r.iD)("label",yt,[(0,r._)("input",{type:"text",disabled:!e.writable,value:e.value,onChange:function(t){return o.setValue(e,t)}},null,40,wt)])):((0,r.wg)(),(0,r.iD)("label",dt,[(0,r._)("input",{type:"number","with-label":!0,value:e.value,disabled:!e.writable,onChange:function(t){return o.setValue(e,t)}},null,40,vt)]))])])})),128))])])):(0,r.kq)("",!0),(0,r._)("div",_t,[kt,(0,r._)("div",xt,[(0,r._)("div",{class:"row",onClick:t[5]||(t[5]=function(t){return e.$refs.groupsModal.show()})},zt),(0,r._)("div",{class:"row",onClick:t[6]||(t[6]=function(e){return s.otaUpdatesAvailable?o.installOtaUpdates():o.checkOtaUpdates()})},[s.otaUpdatesAvailable?((0,r.wg)(),(0,r.iD)("div",Rt,"Install updates")):((0,r.wg)(),(0,r.iD)("div",Dt,"Check for updates")),Zt]),(0,r._)("div",{class:"row",onClick:t[7]||(t[7]=function(e){return o.remove(!1)})},Et),(0,r._)("div",{class:"row error",onClick:t[8]||(t[8]=function(e){return o.remove(!0)})},Nt)])])])):(0,r.kq)("",!0)],2)}var St=n(9584),Ot=n(6084),Vt=n(6347),At=(n(7327),n(9720),n(189),n(8783),n(2479),n(3210),n(8309),n(3123),n(8070)),$t=n(6),Ut=n(634),Ft=n(8453),Bt={name:"Device",components:{Modal:Ft.Z,ToggleSwitch:$t.Z,Slider:At.Z,Loading:ae.Z},mixins:[se.Z],emits:["select","rename","remove","groups-edit"],props:{device:{type:Object,required:!0},groups:{type:Object,default:function(){}},selected:{type:Boolean,default:!1}},data:function(){return{editName:!1,loading:!1,status:{},otaUpdatesAvailable:!1}},computed:{values:function(){var e;if(null===(e=this.device.definition)||void 0===e||!e.exposes)return{};var t=function(e){var t,n=function e(t,n){if(t.features){t.property&&(n[t.property]=n[t.property]||{},n=n[t.property]);var r,i=(0,Vt.Z)(t.features);try{for(i.s();!(r=i.n()).done;){var a=r.value;e(a,n)}}catch(s){i.e(s)}finally{i.f()}}else t.property&&(n[t.property]=t)},r={},i=(0,Vt.Z)(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;n(a,r)}}catch(s){i.e(s)}finally{i.f()}return r};return t(this.device.definition.exposes)},displayedValues:function(){var e=this,t={},n=function t(n,r){var i=(0,Ot.Z)(r,2),a=i[0],s=i[1];return a in e.status&&(s=(0,te.Z)((0,te.Z)({},s),{},{value:e.status[a]})),null!=s.access&&(s.readable=!!(1&s.access),s.writable=!!(2&s.access),delete s.access),n[a]=s,Object.entries(s).filter((function(e){return e[1]instanceof Object})).reduce(t,n[a]),n};return Object.entries(this.values).reduce(n,t),t},rgbColor:function(){var e;if(this.displayedValues.color){var t=null===(e=this.displayedValues.color)||void 0===e?void 0:e.value;if(t){if(null!=t.x&&null!=t.y){var n,r,i=new Ut.N({bri:[(null===(n=this.displayedValues.brightness)||void 0===n?void 0:n.value_min)||0,(null===(r=this.displayedValues.brightness)||void 0===r?void 0:r.value_max)||255]});return i.xyToRgb(t.x,t.y,this.displayedValues.brightness.value)}if(null!=t.hue&&(null!=t.saturation||null!=t.sat)){var a,s,o,u,l=null!=t.saturation?"saturation":"sat",c=new Ut.N({hue:[(null===(a=this.displayedValues.color.hue)||void 0===a?void 0:a.value_min)||0,this.displayedValues.color.hue.value_max||65535],sat:[(null===(s=this.displayedValues.color[l])||void 0===s?void 0:s.value_min)||0,this.displayedValues.color[l].value_max||255],bri:[(null===(o=this.displayedValues.brightness)||void 0===o?void 0:o.value_min)||0,(null===(u=this.displayedValues.brightness)||void 0===u?void 0:u.value_max)||255]});return c.hslToRgb(t.hue,t[l],this.displayedValues.brightness.value)}return null}}},associatedGroups:function(){var e=this;return new Set(Object.values(this.groups).filter((function(t){return new Set((t.members||[]).map((function(e){return e.ieee_address}))).has(e.device.ieee_address)})).map((function(e){return parseInt(e.id)})))}},methods:{refresh:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.device_get",{device:e.device.friendly_name||e.device.ieee_address});case 4:e.status=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},rename:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=(e.$refs.name.value||"").trim(),n.length&&n!==e.device.friendly_name){t.next=3;break}return t.abrupt("return");case 3:return e.loading=!0,t.prev=4,t.next=7,e.request("zigbee.mqtt.device_rename",{device:null!==(r=e.device.friendly_name)&&void 0!==r&&r.length?e.device.friendly_name:e.device.ieee_address,name:n});case 7:e.$emit("rename",{name:e.device.friendly_name,newName:n});case 8:return t.prev=8,e.editName=!1,e.loading=!1,t.finish(8);case 12:case"end":return t.stop()}}),t,null,[[4,,8,12]])})))()},remove:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(confirm("Are you really sure that you want to remove this device from the network?")){n.next=2;break}return n.abrupt("return");case 2:return e=!!e,t.loading=!0,n.prev=4,n.next=7,t.request("zigbee.mqtt.device_remove",{device:null!==(r=t.device.friendly_name)&&void 0!==r&&r.length?t.device.friendly_name:t.device.ieee_address,force:e});case 7:t.$emit("remove",{device:t.device.friendly_name||t.device.ieee_address});case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[4,,8,11]])})))()},setValue:function(e,t){var n=this;return(0,ne.Z)(regeneratorRuntime.mark((function r(){var i,a,s,o,u,l,c,d,v,p,f,m,g,h;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:a={device:n.device.friendly_name||n.device.ieee_address,property:e.property,value:null},r.t0=e.type,r.next="binary"===r.t0?4:"numeric"===r.t0?6:"enum"===r.t0?8:10;break;case 4:return e.value_toggle?a.value=e.value_toggle:e.value_on&&e.value_off?a.value=e.value===e.value_on?e.value_off:e.value_on:a.value=!e.value,r.abrupt("break",12);case 6:return a.value=parseFloat(t.target.value),r.abrupt("break",12);case 8:return null!==(i=t.target.value)&&void 0!==i&&i.length&&(a.value=t.target.value),r.abrupt("break",12);case 10:return(null!=e.x&&null!=e.y||null!=e.hue&&(null!=e.saturation||null!=e.sat))&&(a.property="color",s=t.target.value.slice(1).split(/([0-9a-fA-F]{2})/).filter((function(e,t){return t%2})).map((function(e){return parseInt(e,16)})),null!=e.x&&null!=e.y?(l=new Ut.N({bri:[(null===(o=n.displayedValues.brightness)||void 0===o?void 0:o.value_min)||0,(null===(u=n.displayedValues.brightness)||void 0===u?void 0:u.value_max)||255]}),c=l.rgbToXY.apply(l,(0,St.Z)(s)),a.value={x:c[0],y:c[1]}):(m=null!=n.displayedValues.color.saturation?"saturation":"sat",g=new Ut.N({hue:[(null===(d=n.displayedValues.color.hue)||void 0===d?void 0:d.value_min)||0,n.displayedValues.color.hue.value_max||65535],sat:[(null===(v=n.displayedValues.color[m])||void 0===v?void 0:v.value_min)||0,n.displayedValues.color[m].value_max||255],bri:[(null===(p=n.displayedValues.brightness)||void 0===p?void 0:p.value_min)||0,(null===(f=n.displayedValues.brightness)||void 0===f?void 0:f.value_max)||255]}),h=g.rgbToHsl.apply(g,(0,St.Z)(s)),a.value={hue:h[0]},a.value[m]=h[1])),r.abrupt("break",12);case 12:if(null!=a.value){r.next=14;break}return r.abrupt("return");case 14:return n.loading=!0,r.prev=15,r.next=18,n.request("zigbee.mqtt.device_set",a);case 18:return r.next=20,n.refresh();case 20:return r.prev=20,n.loading=!1,r.finish(20);case 23:case"end":return r.stop()}}),r,null,[[15,,20,23]])})))()},manageGroups:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=(0,St.Z)(e.target.querySelectorAll("input[type=checkbox]")).reduce((function(e,n){var r=parseInt(n.value);return n.checked&&!t.associatedGroups.has(r)?e.add.add(r):!n.checked&&t.associatedGroups.has(r)&&e.remove.add(r),e}),{add:new Set,remove:new Set}),i=function(){var e=(0,ne.Z)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all((0,St.Z)(r[n]).map(function(){var e=(0,ne.Z)(regeneratorRuntime.mark((function e(r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.request("zigbee.mqtt.group_".concat(n,"_device"),{group:t.groups[r].friendly_name,device:null!==(i=t.device.friendly_name)&&void 0!==i&&i.length?t.device.friendly_name:t.device.ieee_address});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.loading=!0,n.prev=3,n.next=6,Promise.all(Object.keys(r).map(i));case 6:t.$emit("groups-edit",r);case 7:return n.prev=7,t.loading=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[3,,7,10]])})))()},checkOtaUpdates:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.device_check_ota_updates",{device:null!==(n=e.device.friendly_name)&&void 0!==n&&n.length?e.device.friendly_name:e.device.ieee_address});case 4:e.otaUpdatesAvailable=t.sent.update_available,e.otaUpdatesAvailable?e.notify({text:"A firmware update is available for the device",image:{iconClass:"fa fa-sync-alt"}}):e.notify({text:"The device is up to date",image:{iconClass:"fa fa-check"}});case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()},installOtaUpdates:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.device_install_ota_updates",{device:null!==(n=e.device.friendly_name)&&void 0!==n&&n.length?e.device.friendly_name:e.device.ieee_address});case 4:return t.prev=4,e.loading=!1,t.finish(4);case 7:case"end":return t.stop()}}),t,null,[[1,,4,7]])})))()}},mounted:function(){var e=this;this.$watch((function(){return e.selected}),(function(t){t&&e.refresh()})),this.$watch((function(){return e.status.update_available}),(function(t){e.otaUpdatesAvailable=t})),this.subscribe((function(t){t.device!==e.device.friendly_name&&t.device!==e.device.ieee_address||(e.status=(0,te.Z)((0,te.Z)({},e.status),t.properties))}),"on-property-change-".concat(this.device.ieee_address),"platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePropertySetEvent")},unmounted:function(){this.unsubscribe("on-property-change-".concat(this.device.ieee_address))}},Lt=n(3744);const Yt=(0,Lt.Z)(Bt,[["render",Tt],["__scopeId","data-v-6437b841"]]);var Pt=Yt,Ht=function(e){return(0,r.dD)("data-v-7667f7ba"),e=e(),(0,r.Cn)(),e},Wt=["textContent"],Kt={key:1,class:"params"},Xt={class:"section devices"},Jt=Ht((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Devices")],-1)})),Qt={class:"body"},en=["checked","value","onChange"],tn=["textContent"],nn={class:"section actions"},rn=Ht((function(){return(0,r._)("div",{class:"header"},[(0,r._)("div",{class:"title"},"Actions")],-1)})),an={class:"body"},sn=Ht((function(){return(0,r._)("div",{class:"col-10"},"Rename Group",-1)})),on=Ht((function(){return(0,r._)("div",{class:"buttons col-2 pull-right"},[(0,r._)("i",{class:"fa fa-edit"})],-1)})),un=[sn,on],ln=Ht((function(){return(0,r._)("div",{class:"col-10"},"Remove Group",-1)})),cn=Ht((function(){return(0,r._)("div",{class:"buttons col-2 pull-right"},[(0,r._)("i",{class:"fa fa-trash"})],-1)})),dn=[ln,cn];function vn(e,t,n,a,s,o){var u=(0,r.up)("Loading");return(0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(["item group",{selected:n.selected}])},[s.loading?((0,r.wg)(),(0,r.j4)(u,{key:0})):(0,r.kq)("",!0),(0,r._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,i.zw)(n.group.friendly_name),onClick:t[0]||(t[0]=function(t){return e.$emit("select")})},null,10,Wt),n.selected?((0,r.wg)(),(0,r.iD)("div",Kt,[(0,r._)("div",Xt,[Jt,(0,r._)("div",Qt,[(0,r._)("form",null,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.devices,(function(e,t){var n;return(0,r.wg)(),(0,r.iD)("label",{class:"row",key:t},[(0,r._)("input",{type:"checkbox",checked:o.members.has(e.ieee_address),value:e.ieee_address,onChange:function(t){return o.toggleDevice(e.ieee_address)}},null,40,en),(0,r._)("span",{class:"label",textContent:(0,i.zw)(null!==(n=e.friendly_name)&&void 0!==n&&n.length?e.friendly_name:e.ieee_address)},null,8,tn)])})),128))])])]),(0,r._)("div",nn,[rn,(0,r._)("div",an,[(0,r._)("div",{class:"row",onClick:t[1]||(t[1]=function(){return o.rename&&o.rename.apply(o,arguments)})},un),(0,r._)("div",{class:"row",onClick:t[2]||(t[2]=function(){return o.remove&&o.remove.apply(o,arguments)})},dn)])])])):(0,r.kq)("",!0)],2)}var pn={name:"Group",emits:["select","remove","edit"],mixins:[se.Z],components:{Loading:ae.Z},props:{group:{type:Object,required:!0},devices:{type:Object,default:function(){return{}}},selected:{type:Boolean,default:!1}},data:function(){return{loading:!1,values:{}}},computed:{devicesByAddress:function(){return Object.entries(this.devices).reduce((function(e,t){var n=t[1];return e[n.ieee_address]=n,e}),{})},members:function(){return new Set((this.group.members||[]).map((function(e){return e.ieee_address})))}},methods:{remove:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(confirm("Are you sure that you want to remove this group?")){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,t.prev=3,t.next=6,e.request("zigbee.mqtt.group_remove",{name:e.group.friendly_name});case 6:e.$emit("remove",{name:e.group.friendly_name});case 7:return t.prev=7,e.loading=!1,t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[3,,7,10]])})))()},rename:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=prompt("New group name",e.group.friendly_name),null!==(n=r)&&void 0!==n&&n.length){t.next=3;break}return t.abrupt("return");case 3:return r=r.trim(),e.loading=!0,t.prev=5,t.next=8,e.request("zigbee.mqtt.group_rename",{group:e.group.friendly_name||e.group.id,name:r});case 8:e.$emit("rename",{name:e.group.friendly_name,newName:r});case 9:return t.prev=9,e.loading=!1,t.finish(9);case 12:case"end":return t.stop()}}),t,null,[[5,,9,12]])})))()},toggleDevice:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r,i,a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.devicesByAddress[e],a=null!==(r=i.friendly_name)&&void 0!==r&&r.length?i.friendly_name:e,s=t.members.has(e)?"remove":"add",t.loading=!0,n.prev=4,n.next=7,t.request("zigbee.mqtt.group_".concat(s,"_device"),{group:t.group.friendly_name,device:a});case 7:t.$emit("edit",{device:a,method:s});case 8:return n.prev=8,t.loading=!1,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[4,,8,11]])})))()}}};const fn=(0,Lt.Z)(pn,[["render",vn],["__scopeId","data-v-7667f7ba"]]);var mn=fn,gn={name:"ZigbeeMqtt",components:{Modal:Ft.Z,Dropdown:re.Z,DropdownItem:ie.Z,Loading:ae.Z,Device:Pt,Group:mn},mixins:[se.Z],data:function(){return{devices:{},groups:{},status:{},loading:!1,selected:{view:"devices",deviceId:void 0,groupId:void 0},views:{devices:!0,groups:!0},modal:{group:{visible:!1}}}},methods:{refreshDevices:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.devices");case 4:e.devices=t.sent.reduce((function(t,n){return n.friendly_name in e.devices&&(n=(0,te.Z)({values:e.devices[n.friendly_name].values||{}},e.devices[n.friendly_name])),t[n.friendly_name]=n,t}),{});case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},refreshGroups:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.groups");case 4:e.groups=t.sent.reduce((function(e,t){return e[t.id]=t,e}),{});case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},refreshInfo:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("zigbee.mqtt.info");case 4:e.status=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},refresh:function(){this.refreshDevices(),this.refreshGroups(),this.refreshInfo()},updateProperties:function(e,t){this.devices[e].values=t},addGroup:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=prompt("Group name"),n&&n.length){t.next=3;break}return t.abrupt("return");case 3:return e.loading=!0,t.prev=4,t.next=7,e.request("zigbee.mqtt.group_add",{name:n});case 7:return t.prev=7,e.loading=!1,t.finish(7);case 10:return t.next=12,e.refreshGroups();case 12:case"end":return t.stop()}}),t,null,[[4,,7,10]])})))()},permitJoin:function(e){var t=this;return(0,ne.Z)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={permit:!!e},e&&(i=prompt("Join allow period in seconds (0 or empty for no time limits)","60"),r.seconds=i.length?parseInt(i):null),t.loading=!0,n.prev=3,n.next=6,t.request("zigbee.mqtt.permit_join",r);case 6:setTimeout(t.refreshInfo,1e3);case 7:return n.prev=7,t.loading=!1,n.finish(7);case 10:case"end":return n.stop()}}),n,null,[[3,,7,10]])})))()},factoryReset:function(){var e=this;return(0,ne.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(confirm("Are you SURE that you want to do a device factory reset?")){t.next=3;break}if(confirm("Are you REALLY sure? ALL network information and custom firmware will be lost!!")){t.next=3;break}return t.abrupt("return");case 3:return e.loading=!0,t.prev=4,t.next=7,e.request("zigbee.mqtt.factory_reset");case 7:return t.prev=7,e.loading=!1,t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[4,,7,10]])})))()},addToGroup:function(e,t){var n=this;return(0,ne.Z)(regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n.loading=!0,r.next=3,n.request("zigbee.mqtt.group_add_device",{device:e,group:t});case 3:n.loading=!1,i=n,setTimeout((function(){i.refresh(),i.refreshGroups()}),100);case 6:case"end":return r.stop()}}),r)})))()}},created:function(){var e=this;this.subscribe((function(){e.notify({text:"WARNING: The controller is offline",error:!0})}),"on-zigbee-offline","platypush.message.event.zigbee.mqtt.ZigbeeMqttOfflineEvent"),this.subscribe((function(){e.notify({text:"The controller is now online",iconClass:"fas fa-check"})}),"on-zigbee-online","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent"),this.subscribe((function(){e.notify({text:"Failed to remove the device",error:!0})}),"on-zigbee-device-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedFailedEvent"),this.subscribe((function(){e.notify({text:"Failed to add the group",error:!0})}),"on-zigbee-group-add-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedFailedEvent"),this.subscribe((function(){e.notify({text:"Failed to remove group",error:!0})}),"on-zigbee-group-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedFailedEvent"),this.subscribe((function(){e.notify({text:"Failed to remove the devices from group",error:!0})}),"on-zigbee-remove-all-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllFailedEvent"),this.subscribe((function(t){e.notify({text:t.error||"[Unknown error]",error:!0})}),"on-zigbee-error","platypush.message.event.zigbee.mqtt.ZigbeeMqttErrorEvent"),this.subscribe(this.refresh,"on-zigbee-device-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePairingEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceConnectedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBannedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceWhitelistedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRenamedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBindEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceUnbindEvent"),this.subscribe(this.refreshGroups,"on-zigbee-group-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllEvent")},mounted:function(){this.refresh()},unmounted:function(){this.unsubscribe("on-zigbee-error"),this.unsubscribe("on-zigbee-remove-all-failed"),this.unsubscribe("on-zigbee-group-remove-failed"),this.unsubscribe("on-zigbee-group-add-failed"),this.unsubscribe("on-zigbee-device-remove-failed"),this.unsubscribe("on-zigbee-online"),this.unsubscribe("on-zigbee-offline"),this.unsubscribe("on-zigbee-device-update"),this.unsubscribe("on-zigbee-group-update")}};const hn=(0,Lt.Z)(gn,[["render",ee]]);var bn=hn}}]); +//# sourceMappingURL=4848-legacy.c406221e.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js.map b/platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js.map new file mode 100644 index 000000000..b7a5e2d97 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/4848-legacy.c406221e.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4848-legacy.c406221e.js","mappings":"qGACA,IAAIA,EAAQ,EAAQ,MAEpBC,EAAOC,QAAUF,GAAM,WACrB,GAA0B,mBAAfG,YAA2B,CACpC,IAAIC,EAAS,IAAID,YAAY,GAEzBE,OAAOC,aAAaF,IAASC,OAAOE,eAAeH,EAAQ,IAAK,CAAEI,MAAO,GAC/E,CACF,G,oCCRA,IAAID,EAAiB,UACjBE,EAAS,EAAQ,IACjBC,EAAiB,EAAQ,MACzBC,EAAO,EAAQ,MACfC,EAAa,EAAQ,MACrBC,EAAU,EAAQ,KAClBC,EAAiB,EAAQ,KACzBC,EAAa,EAAQ,MACrBC,EAAc,EAAQ,MACtBC,EAAU,gBACVC,EAAsB,EAAQ,MAE9BC,EAAmBD,EAAoBE,IACvCC,EAAyBH,EAAoBI,UAEjDrB,EAAOC,QAAU,CACfqB,eAAgB,SAAUC,EAASC,EAAkBC,EAAQC,GAC3D,IAAIC,EAAcJ,GAAQ,SAAUK,EAAMC,GACxClB,EAAWiB,EAAME,GACjBZ,EAAiBU,EAAM,CACrBG,KAAMP,EACNQ,MAAOxB,EAAO,MACdyB,WAAOC,EACPC,UAAMD,EACNE,KAAM,IAEHrB,IAAaa,EAAKQ,KAAO,QACdF,GAAZL,GAAuBjB,EAAQiB,EAAUD,EAAKF,GAAQ,CAAEE,KAAMA,EAAMS,WAAYZ,GACtF,IAEIK,EAAYH,EAAYW,UAExBC,EAAmBnB,EAAuBI,GAE1CgB,EAAS,SAAUZ,EAAMa,E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V,GAAE,oBAAqB,8DAExB9Y,KAAKsX,WAAU,WACb,EAAKL,OAAO,CACVvF,KAAM,+BACNyF,UAAW,gBAEd,GAAE,mBAAoB,6DAEvBnX,KAAKsX,WAAU,WACb,EAAKL,OAAO,CACVvF,KAAM,8BACNoH,OAAO,GAEV,GAAE,iCAAkC,0EAErC9Y,KAAKsX,WAAU,WACb,EAAKL,OAAO,CACVvF,KAAM,0BACNoH,OAAO,GAEV,GAAE,6BAA8B,uEAEjC9Y,KAAKsX,WAAU,WACb,EAAKL,OAAO,CACVvF,KAAM,yBACNoH,OAAO,GAEV,GAAE,gCAAiC,yEAEpC9Y,KAAKsX,WAAU,WACb,EAAKL,OAAO,CACVvF,KAAM,0CACNoH,OAAO,GAEV,GAAE,8BACC,2EAEJ9Y,KAAKsX,WAAU,SAACxI,GACd,EAAKmI,OAAO,CACVvF,KAAM5C,EAAMgK,OAAS,kBACrBA,OAAO,GAEV,GAAE,kBAAmB,4DAEtB9Y,KAAKsX,UAAUtX,KAAK+R,QAAS,0BACzB,4DACA,mEACA,qEACA,kEACA,mEACA,uEACA,mEACA,gEACA,mEAGJ/R,KAAKsX,UAAUtX,KAAKoS,cAAe,yBAC/B,gEACA,kEACA,oEAEL,EAEDxC,QArNa,WAsNX5P,KAAK+R,SACN,EAEDyF,UAzNa,WA0NXxX,KAAKyX,YAAY,mBACjBzX,KAAKyX,YAAY,+BACjBzX,KAAKyX,YAAY,iCACjBzX,KAAKyX,YAAY,8BACjBzX,KAAKyX,YAAY,kCACjBzX,KAAKyX,YAAY,oBACjBzX,KAAKyX,YAAY,qBACjBzX,KAAKyX,YAAY,2BACjBzX,KAAKyX,YAAY,yBAClB,GKzVH,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAAS3H,MAEpE,S","sources":["webpack://platypush/./node_modules/core-js/internals/array-buffer-non-extensible.js","webpack://platypush/./node_modules/core-js/internals/collection-strong.js","webpack://platypush/./node_modules/core-js/internals/collection.js","webpack://platypush/./node_modules/core-js/internals/define-built-ins.js","webpack://platypush/./node_modules/core-js/internals/freezing.js","webpack://platypush/./node_modules/core-js/internals/get-substitution.js","webpack://platypush/./node_modules/core-js/internals/internal-metadata.js","webpack://platypush/./node_modules/core-js/internals/object-is-extensible.js","webpack://platypush/./node_modules/core-js/internals/string-trim-forced.js","webpack://platypush/./node_modules/core-js/modules/es.set.constructor.js","webpack://platypush/./node_modules/core-js/modules/es.set.js","webpack://platypush/./node_modules/core-js/modules/es.string.replace.js","webpack://platypush/./node_modules/core-js/modules/es.string.trim.js","webpack://platypush/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://platypush/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue?8b6d","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue?46cd","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue?dac0"],"sourcesContent":["// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar create = require('../internals/object-create');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/define-iterator');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineProperty(Prototype, 'size', {\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return { value: undefined, done: true };\n }\n // return step by kind\n if (kind == 'keys') return { value: entry.key, done: false };\n if (kind == 'values') return { value: entry.value, done: false };\n return { value: [entry.key, entry.value], done: false };\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es-x/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.set.constructor');\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar getMethod = require('../internals/get-method');\nvar getSubstitution = require('../internals/get-substitution');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar max = Math.max;\nvar min = Math.min;\nvar concat = uncurryThis([].concat);\nvar push = uncurryThis([].push);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar stringSlice = uncurryThis(''.slice);\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive\n return ''.replace(re, '$') !== '7';\n});\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);\n return replacer\n ? call(replacer, searchValue, O, replaceValue)\n : call(nativeReplace, toString(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (\n typeof replaceValue == 'string' &&\n stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&\n stringIndexOf(replaceValue, '$<') === -1\n ) {\n var res = maybeCallNative(nativeReplace, rx, S, replaceValue);\n if (res.done) return res.value;\n }\n\n var functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n push(results, result);\n if (!global) break;\n\n var matchStr = toString(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = toString(result[0]);\n var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = concat([matched], captures, position, S);\n if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);\n var replacement = toString(apply(replaceValue, undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + stringSlice(S, nextSourcePosition);\n }\n ];\n}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Device.vue?vue&type=template&id=6437b841&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=6437b841&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6437b841\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=7667f7ba&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=7667f7ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7667f7ba\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=b15233ac\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=b15233ac&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["fails","module","exports","ArrayBuffer","buffer","Object","isExtensible","defineProperty","value","create","defineBuiltIns","bind","anInstance","iterate","defineIterator","setSpecies","DESCRIPTORS","fastKey","InternalStateModule","setInternalState","set","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","IS_MAP","ADDER","Constructor","that","iterable","Prototype","type","index","first","undefined","last","size","AS_ENTRIES","prototype","getInternalState","define","key","previous","state","entry","getEntry","next","removed","clear","this","data","prev","forEach","callbackfn","boundFunction","arguments","length","has","get","add","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","target","done","$","global","uncurryThis","isForced","defineBuiltIn","InternalMetadataModule","isCallable","isObject","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","indexOf","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","uncurriedNativeMethod","REPLACE","entries","enable","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","constructor","forced","src","options","preventExtensions","toObject","floor","Math","charAt","replace","stringSlice","slice","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","str","position","captures","namedCaptures","replacement","tailPos","m","symbols","match","ch","capture","n","f","hiddenKeys","hasOwn","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","id","setMetadata","it","objectID","weakData","getWeakData","onFreeze","meta","getOwnPropertyNames","splice","test","result","i","stat","classof","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","PROPER_FUNCTION_NAME","whitespaces","non","METHOD_NAME","name","collection","collectionStrong","init","apply","call","fixRegExpWellKnownSymbolLogic","anObject","toIntegerOrInfinity","toLength","toString","requireObjectCoercible","advanceStringIndex","getMethod","getSubstitution","regExpExec","wellKnownSymbol","max","min","concat","push","stringIndexOf","maybeToString","String","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","REPLACE_SUPPORTS_NAMED_GROUPS","re","exec","groups","a","_","nativeReplace","maybeCallNative","UNSAFE_SUBSTITUTE","searchValue","replaceValue","O","replacer","string","rx","S","res","functionalReplace","fullUnicode","unicode","lastIndex","results","matchStr","accumulatedResult","nextSourcePosition","j","replacerArgs","$trim","forcedStringTrimMethod","proto","trim","_classCallCheck","TypeError","_defineProperties","props","descriptor","enumerable","configurable","writable","_createClass","protoProps","staticProps","ColorConverter","ranges","hue","sat","bri","ct","keys","attr","x","xRange","yRange","h","s","l","normalize","k","color","round","r","g","b","d","parseInt","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","parseFloat","rgbToHsl","rgb","xy","getRGB","getXY","xyToRgb","hslToRgb","console","debug","rgbToXY","hex","join","class","ref","withLabel","range","step","disabled","onUpdate","emits","Number","Boolean","default","Array","methods","event","update","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","status","info","permit_join","network","channel","version","config","mqtt","server","serial","port","coordinator","maintrel","majorrel","minorrel","revision","selected","view","$event","views","enabled","toUpperCase","addGroup","text","infoModal","show","permitJoin","factoryReset","refresh","devices","device","deviceId","refreshDevices","refreshGroups","group","groupId","manageGroups","associatedGroups","friendly_name","ieee_address","editName","rename","network_address","definition","vendor","model","model_id","description","software_build_id","date_code","power_source","displayedValues","property","rgbColor","unit","value_on","setValue","value_min","value_max","readable","values","option","groupsModal","otaUpdatesAvailable","installOtaUpdates","checkOtaUpdates","remove","components","Modal","ToggleSwitch","Slider","Loading","mixins","Utils","required","computed","exposes","extractValues","extractValue","root","features","feature","ret","mergeValues","obj","access","filter","v","reduce","converter","saturation","satAttr","Set","members","member","request","newName","force","confirm","value_toggle","value_off","split","hsl","querySelectorAll","element","editGroups","action","Promise","all","update_available","notify","image","iconClass","$watch","newValue","subscribe","properties","unmounted","unsubscribe","toggleDevice","devicesByAddress","prompt","ieeeAddress","method","Dropdown","DropdownItem","Device","Group","modal","visible","refreshInfo","updateProperties","permit","args","seconds","setTimeout","addToGroup","self","created","error"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js b/platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js new file mode 100644 index 000000000..306318371 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4848],{4212:function(e,t,s){s.d(t,{N:function(){return a}});class a{constructor(e){if(this.ranges={hue:[0,360],sat:[0,100],bri:[0,100],ct:[154,500]},e)for(const t of Object.keys(this.ranges))e[t]&&(this.ranges[t]=e[t])}normalize(e,t,s){return s[0]+(e-t[0])*(s[1]-s[0])/(t[1]-t[0])}hslToRgb(e,t,s){[e,t,s]=[this.normalize(e,this.ranges.hue,[0,360]),this.normalize(t,this.ranges.sat,[0,100]),this.normalize(s,this.ranges.bri,[0,100])],s/=100;const a=t*Math.min(s,1-s)/100,i=t=>{const i=(t+e/30)%12,n=s-a*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*n)};return[i(0),i(8),i(4)]}rgbToHsl(e,t,s){e/=255,t/=255,s/=255;const a=Math.max(e,t,s),i=Math.min(e,t,s);let n,l,o=(a+i)/2;if(a===i)n=l=0;else{const r=a-i;switch(l=o>.5?r/(2-a-i):r/(a+i),a){case e:n=(t-s)/r+(td&&o>r&&o>1?(r/=o,d/=o,o=1):r>d&&r>o&&r>1?(o/=r,d/=r,r=1):d>o&&d>r&&d>1&&(o/=d,r/=d,d=1),o=o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055,r=r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055,d=d<=.0031308?12.92*d:1.055*Math.pow(d,1/2.4)-.055,o=Math.round(255*o),r=Math.round(255*r),d=Math.round(255*d),isNaN(o)&&(o=0),isNaN(r)&&(r=0),isNaN(d)&&(d=0),[o,r,d].map((e=>Math.min(Math.max(0,e),255)))}rgbToXY(e,t,s){e>1&&(e/=255),t>1&&(t/=255),s>1&&(s/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;const a=.664511*e+.154324*t+.162028*s,i=.283881*e+.668433*t+.047685*s,n=88e-6*e+.07231*t+.986039*s;let l=parseFloat((a/(a+i+n)).toFixed(4)),o=parseFloat((i/(a+i+n)).toFixed(4));return isNaN(l)&&(l=0),isNaN(o)&&(o=0),[l,o]}rgbToBri(e,t,s){return Math.min(2*this.rgbToHsl(e,t,s)[2],this.ranges.bri[1])}getRGB(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}getXY(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}toRGB(e){const t=this.getRGB(e);if(t)return t;const s=this.getXY(e);return s&&e.bri?this.xyToRgb(...s,e.bri):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}toXY(e){const t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];const s=this.getRGB(e);if(s)return this.rgbToXY(...s);if(e.hue&&e.sat&&e.bri){const t=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY(...t)}console.debug("Could not determine color space"),console.debug(e)}toHSL(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];const t=this.getRGB(e);if(t)return this.rgbToHsl(...t);const s=this.getXY(e);if(s&&e.bri){const t=this.xyToRgb(...s,e.bri);return this.rgbToHsl(...t)}console.debug("Could not determine color space"),console.debug(e)}hexToRgb(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((e=>parseInt(e,16)))}rgbToHex(e){return"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}},8070:function(e,t,s){s.d(t,{Z:function(){return m}});var a=s(6252),i=s(3577),n=s(9963);const l={class:"slider-wrapper"},o=["min","max","step","disabled","value"],r={class:"track-inner",ref:"track"},d={class:"thumb",ref:"thumb"},u=["textContent"];function c(e,t,s,c,v,p){return(0,a.wg)(),(0,a.iD)("label",l,[(0,a._)("input",{class:(0,i.C_)(["slider",{"with-label":s.withLabel}]),type:"range",min:s.range[0],max:s.range[1],step:s.step,disabled:s.disabled,value:s.value,ref:"range",onInput:t[0]||(t[0]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,n.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"]))},null,42,o),(0,a._)("div",{class:(0,i.C_)(["track",{"with-label":s.withLabel}])},[(0,a._)("div",r,null,512)],2),(0,a._)("div",d,null,512),s.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,i.zw)(s.value),ref:"label"},null,8,u)):(0,a.kq)("",!0)])}var v={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,s=(e-this.range[0])/(this.range[1]-this.range[0]),a=s*t,i=this.$refs.thumb;i.style.left=a-i.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${s}%, -50%)`,this.$refs.track.style.width=`${a}px`}},mounted(){null!=this.value&&this.update(this.value)}},p=s(3744);const h=(0,p.Z)(v,[["render",c],["__scopeId","data-v-0359812c"]]);var m=h},6:function(e,t,s){s.d(t,{Z:function(){return h}});var a=s(6252),i=s(3577),n=s(9963);const l=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),o=["checked"],r=l((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),d={class:"label"};function u(e,t,s,l,u,c){return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:s.disabled}]),onClick:t[0]||(t[0]=(0,n.iM)(((...e)=>c.onInput&&c.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:s.value},null,8,o),(0,a._)("label",null,[r,(0,a._)("span",d,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var c={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=s(3744);const p=(0,v.Z)(c,[["render",u],["__scopeId","data-v-a6396ae8"]]);var h=p},4848:function(e,t,s){s.r(t),s.d(t,{default:function(){return vs}});var a=s(6252),i=s(3577);const n={class:"zigbee-container"},l={key:0,class:"info-body"},o={class:"row"},r=(0,a._)("div",{class:"param-name"},"State",-1),d=["textContent"],u={class:"row"},c=(0,a._)("div",{class:"param-name"},"Permit Join",-1),v=["textContent"],p={key:0,class:"row"},h=(0,a._)("div",{class:"param-name"},"Network Channel",-1),m=["textContent"],g={class:"row"},b=(0,a._)("div",{class:"param-name"},"Zigbee2MQTT Version",-1),y=["textContent"],f={key:1,class:"row"},_=(0,a._)("div",{class:"param-name"},"MQTT Server",-1),w=["textContent"],k={key:2,class:"row"},q=(0,a._)("div",{class:"param-name"},"Serial Port",-1),x=["textContent"],C={key:3,class:"row"},z=(0,a._)("div",{class:"param-name"},"Firmware Type",-1),D=["textContent"],M={key:4,class:"row"},G=(0,a._)("div",{class:"param-name"},"Firmware Version",-1),R={class:"param-value"},Z={key:5,class:"row"},I=(0,a._)("div",{class:"param-name"},"Firmware Revision",-1),N=["textContent"],T={class:"view-options"},V={class:"view-selector col-s-8 col-m-9 col-l-10"},U=["value"],j=["textContent","selected","value"],E={class:"buttons"},S=["disabled"],A=(0,a._)("i",{class:"fa fa-plus"},null,-1),$=[A],O=["disabled"],F=(0,a._)("i",{class:"fa fa-sync-alt"},null,-1),B=[F],L={class:"view-container"},Y={key:0,class:"view devices"},H={key:0,class:"no-items"},W={key:0,class:"loading"},K={key:1,class:"empty"},P={key:1,class:"view groups"},X={key:0,class:"no-items"},J={key:0,class:"loading"},Q={key:1,class:"empty"};function ee(e,t,s,A,F,ee){const te=(0,a.up)("Loading"),se=(0,a.up)("Modal"),ae=(0,a.up)("DropdownItem"),ie=(0,a.up)("Dropdown"),ne=(0,a.up)("Device"),le=(0,a.up)("Group");return(0,a.wg)(),(0,a.iD)("div",n,[F.loading?((0,a.wg)(),(0,a.j4)(te,{key:0})):(0,a.kq)("",!0),(0,a.Wm)(se,{title:"Network Info",ref:"infoModal"},{default:(0,a.w5)((()=>[F.status.info?((0,a.wg)(),(0,a.iD)("div",l,[(0,a._)("div",o,[r,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.state)},null,8,d)]),(0,a._)("div",u,[c,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.permit_join)},null,8,v)]),F.status.info.network?((0,a.wg)(),(0,a.iD)("div",p,[h,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.network.channel)},null,8,m)])):(0,a.kq)("",!0),(0,a._)("div",g,[b,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.version)},null,8,y)]),F.status.info.config?.mqtt?((0,a.wg)(),(0,a.iD)("div",f,[_,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.mqtt.server)},null,8,w)])):(0,a.kq)("",!0),F.status.info.config?.serial?((0,a.wg)(),(0,a.iD)("div",k,[q,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.config.serial.port)},null,8,x)])):(0,a.kq)("",!0),F.status.info.coordinator?.type?((0,a.wg)(),(0,a.iD)("div",C,[z,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.type)},null,8,D)])):(0,a.kq)("",!0),F.status.info.coordinator?.meta?((0,a.wg)(),(0,a.iD)("div",M,[G,(0,a._)("div",R,(0,i.zw)(F.status.info.coordinator.meta.maintrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.majorrel)+"."+(0,i.zw)(F.status.info.coordinator.meta.minorrel),1)])):(0,a.kq)("",!0),F.status.info.coordinator?.meta?((0,a.wg)(),(0,a.iD)("div",Z,[I,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(F.status.info.coordinator.meta.revision)},null,8,N)])):(0,a.kq)("",!0)])):(0,a.kq)("",!0)])),_:1},512),(0,a._)("div",T,[(0,a._)("div",V,[(0,a._)("label",null,[(0,a._)("select",{value:F.selected.view,onChange:t[0]||(t[0]=e=>this.selected.view=e.target.value)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(F.views,((e,t)=>((0,a.wg)(),(0,a.iD)("option",{textContent:(0,i.zw)((t[0].toUpperCase()+t.slice(1)).replace("_"," ")),key:t,selected:e,value:t},null,8,j)))),128))],40,U)])]),(0,a._)("div",E,["groups"===F.selected.view?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"btn btn-default",title:"Add Group",disabled:F.loading,onClick:t[1]||(t[1]=(...e)=>ee.addGroup&&ee.addGroup(...e))},$,8,S)):(0,a.kq)("",!0),(0,a.Wm)(ie,{ref:"networkCommandsDropdown","icon-class":"fa fa-cog",title:"Network commands"},{default:(0,a.w5)((()=>[(0,a.Wm)(ae,{text:"Network Info",disabled:F.loading,onClick:t[2]||(t[2]=t=>e.$refs.infoModal.show())},null,8,["disabled"]),F.status.info?.permit_join?((0,a.wg)(),(0,a.j4)(ae,{key:1,text:"Disable Join",disabled:F.loading,onClick:t[4]||(t[4]=e=>ee.permitJoin(!1))},null,8,["disabled"])):((0,a.wg)(),(0,a.j4)(ae,{key:0,text:"Permit Join",disabled:F.loading,onClick:t[3]||(t[3]=e=>ee.permitJoin(!0))},null,8,["disabled"])),(0,a.Wm)(ae,{text:"Factory Reset",disabled:F.loading,onClick:ee.factoryReset},null,8,["disabled","onClick"])])),_:1},512),(0,a._)("button",{class:"btn btn-default",title:"Refresh network",disabled:F.loading,onClick:t[5]||(t[5]=(...e)=>ee.refresh&&ee.refresh(...e))},B,8,O)])]),(0,a._)("div",L,["devices"===F.selected.view?((0,a.wg)(),(0,a.iD)("div",Y,[Object.keys(F.devices).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",H,[F.loading?((0,a.wg)(),(0,a.iD)("div",W,"Loading devices...")):((0,a.wg)(),(0,a.iD)("div",K,"No devices found on the network"))])),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(F.devices,((e,t)=>((0,a.wg)(),(0,a.j4)(ne,{key:t,device:e,groups:F.groups,selected:F.selected.deviceId===t,onSelect:e=>F.selected.deviceId=F.selected.deviceId===t?null:t,onRename:ee.refreshDevices,onRemove:ee.refreshDevices,onGroupsEdit:ee.refreshGroups},null,8,["device","groups","selected","onSelect","onRename","onRemove","onGroupsEdit"])))),128))])):"groups"===F.selected.view?((0,a.wg)(),(0,a.iD)("div",P,[Object.keys(F.groups).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",X,[F.loading?((0,a.wg)(),(0,a.iD)("div",J,"Loading groups...")):((0,a.wg)(),(0,a.iD)("div",Q,"No groups available on the network"))])),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(F.groups,((e,t)=>((0,a.wg)(),(0,a.j4)(le,{key:t,group:e,devices:F.devices,selected:F.selected.groupId===t,onSelect:e=>F.selected.groupId=F.selected.groupId===t?null:t,onRename:ee.refreshGroups,onRemove:ee.refreshGroups,onEdit:ee.refreshGroups},null,8,["group","devices","selected","onSelect","onRename","onRemove","onEdit"])))),128))])):(0,a.kq)("",!0)])])}var te=s(5771),se=s(9015),ae=s(1232),ie=s(6813),ne=s(9963);const le=e=>((0,a.dD)("data-v-6437b841"),e=e(),(0,a.Cn)(),e),oe={class:"groups"},re=["value","checked"],de=["textContent"],ue=le((()=>(0,a._)("div",{class:"footer buttons"},[(0,a._)("button",{type:"submit"},"Save")],-1))),ce=["textContent"],ve={key:1,class:"params"},pe={class:"row"},he=le((()=>(0,a._)("div",{class:"param-name"},"Name",-1))),me={class:"param-value"},ge=["value"],be={class:"buttons"},ye=le((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),fe=[ye],_e=le((()=>(0,a._)("button",{type:"submit",class:"btn btn-default"},[(0,a._)("i",{class:"fa fa-check"})],-1))),we=["textContent"],ke={class:"buttons"},qe=le((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),xe=[qe],Ce={class:"row"},ze=le((()=>(0,a._)("div",{class:"param-name"},"IEEE Address",-1))),De=["textContent"],Me={key:0,class:"row"},Ge=le((()=>(0,a._)("div",{class:"param-name"},"Network Address",-1))),Re=["textContent"],Ze={class:"row"},Ie=le((()=>(0,a._)("div",{class:"param-name"},"Type",-1))),Ne=["textContent"],Te={key:1,class:"row"},Ve=le((()=>(0,a._)("div",{class:"param-name"},"Vendor",-1))),Ue={class:"param-value"},je={key:2,class:"row"},Ee=le((()=>(0,a._)("div",{class:"param-name"},"Model",-1))),Se={class:"param-value"},Ae={key:3,class:"row"},$e=le((()=>(0,a._)("div",{class:"param-name"},"Model ID",-1))),Oe={class:"param-value"},Fe={key:4,class:"row"},Be=le((()=>(0,a._)("div",{class:"param-name"},"Description",-1))),Le={class:"param-value"},Ye={key:5,class:"row"},He=le((()=>(0,a._)("div",{class:"param-name"},"Software Build ID",-1))),We={class:"param-value"},Ke={key:6,class:"row"},Pe=le((()=>(0,a._)("div",{class:"param-name"},"Date Code",-1))),Xe={class:"param-value"},Je={key:7,class:"row"},Qe=le((()=>(0,a._)("div",{class:"param-name"},"Power Source",-1))),et={class:"param-value"},tt={key:8,class:"section values"},st=le((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Values")],-1))),at={class:"body"},it={class:"param-name"},nt={key:0,class:"text"},lt=["textContent"],ot=["textContent"],rt={class:"param-value"},dt={key:2},ut=["value","disabled","onChange"],ct={key:3},vt=["value","onChange"],pt={key:0},ht=["value","textContent","selected","disabled"],mt={key:4},gt=["onChange","value"],bt={key:5},yt=["disabled","value","onChange"],ft={class:"section actions"},_t=le((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1))),wt={class:"body"},kt=le((()=>(0,a._)("div",{class:"param-name"},"Manage groups",-1))),qt=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-network-wired"})],-1))),xt=[kt,qt],Ct={key:0,class:"param-name"},zt={key:1,class:"param-name"},Dt=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-sync-alt"})],-1))),Mt=le((()=>(0,a._)("div",{class:"param-name"},"Remove Device",-1))),Gt=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),Rt=[Mt,Gt],Zt=le((()=>(0,a._)("div",{class:"param-name"},"Force Remove Device",-1))),It=le((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),Nt=[Zt,It];function Tt(e,t,s,n,l,o){const r=(0,a.up)("Loading"),d=(0,a.up)("Modal"),u=(0,a.up)("ToggleSwitch"),c=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["item device",{selected:s.selected}])},[l.loading?((0,a.wg)(),(0,a.j4)(r,{key:0})):(0,a.kq)("",!0),(0,a.Wm)(d,{class:"groups-modal",ref:"groupsModal",title:"Device groups"},{default:(0,a.w5)((()=>[l.loading?((0,a.wg)(),(0,a.j4)(r,{key:0})):(0,a.kq)("",!0),(0,a._)("form",{class:"content",onSubmit:t[0]||(t[0]=(0,ne.iM)(((...e)=>o.manageGroups&&o.manageGroups(...e)),["prevent"]))},[(0,a._)("div",oe,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.groups,((e,t)=>((0,a.wg)(),(0,a.iD)("label",{class:"row group",key:t},[(0,a._)("input",{type:"checkbox",value:t,checked:o.associatedGroups.has(parseInt(e.id))},null,8,re),(0,a._)("span",{class:"name",textContent:(0,i.zw)(e.friendly_name?.length?e.friendly_name:`[Group #${e.id}]`)},null,8,de)])))),128))]),ue],32)])),_:1},512),(0,a._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:s.selected}]),textContent:(0,i.zw)(s.device.friendly_name||s.device.ieee_address),onClick:t[1]||(t[1]=t=>e.$emit("select"))},null,10,ce),s.selected?((0,a.wg)(),(0,a.iD)("div",ve,[(0,a._)("div",pe,[he,(0,a._)("div",me,[(0,a._)("div",{class:(0,i.C_)(["name-edit",{hidden:!l.editName}])},[(0,a._)("form",{onSubmit:t[3]||(t[3]=(0,ne.iM)(((...e)=>o.rename&&o.rename(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"name",ref:"name",value:s.device.friendly_name},null,8,ge)]),(0,a._)("span",be,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[2]||(t[2]=e=>l.editName=!1)},fe),_e])],32)],2),(0,a._)("div",{class:(0,i.C_)(["name-edit",{hidden:l.editName}])},[(0,a._)("span",{textContent:(0,i.zw)(s.device.friendly_name)},null,8,we),(0,a._)("span",ke,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[4]||(t[4]=e=>l.editName=!0)},xe)])],2)])]),(0,a._)("div",Ce,[ze,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(s.device.ieee_address)},null,8,De)]),s.device.network_address?((0,a.wg)(),(0,a.iD)("div",Me,[Ge,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(s.device.network_address)},null,8,Re)])):(0,a.kq)("",!0),(0,a._)("div",Ze,[Ie,(0,a._)("div",{class:"param-value",textContent:(0,i.zw)(s.device.type)},null,8,Ne)]),s.device.definition?.vendor?((0,a.wg)(),(0,a.iD)("div",Te,[Ve,(0,a._)("div",Ue,(0,i.zw)(s.device.definition.vendor),1)])):(0,a.kq)("",!0),s.device.definition?.model?((0,a.wg)(),(0,a.iD)("div",je,[Ee,(0,a._)("div",Se,(0,i.zw)(s.device.definition.model),1)])):(0,a.kq)("",!0),s.device.model_id?((0,a.wg)(),(0,a.iD)("div",Ae,[$e,(0,a._)("div",Oe,(0,i.zw)(s.device.model_id),1)])):(0,a.kq)("",!0),s.device.definition?.description?((0,a.wg)(),(0,a.iD)("div",Fe,[Be,(0,a._)("div",Le,(0,i.zw)(s.device.definition.description),1)])):(0,a.kq)("",!0),s.device.software_build_id?((0,a.wg)(),(0,a.iD)("div",Ye,[He,(0,a._)("div",We,(0,i.zw)(s.device.software_build_id),1)])):(0,a.kq)("",!0),s.device.definition?.date_code?((0,a.wg)(),(0,a.iD)("div",Ke,[Pe,(0,a._)("div",Xe,(0,i.zw)(s.device.definition.date_code),1)])):(0,a.kq)("",!0),s.device.power_source?((0,a.wg)(),(0,a.iD)("div",Je,[Qe,(0,a._)("div",et,(0,i.zw)(s.device.power_source),1)])):(0,a.kq)("",!0),Object.keys(o.displayedValues).length?((0,a.wg)(),(0,a.iD)("div",tt,[st,(0,a._)("div",at,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(o.displayedValues,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row value",key:t},[(0,a._)("div",it,[(0,a.Uk)((0,i.zw)(e.description)+" ",1),null!=o.rgbColor&&null!=e.value?.x&&null!=e.value?.y||null!=e.value?.hue&&null!=e.value?.saturation?((0,a.wg)(),(0,a.iD)("span",nt,"Color")):(0,a.kq)("",!0),e.property?((0,a.wg)(),(0,a.iD)("span",{key:1,class:"name",textContent:(0,i.zw)(e.property)},null,8,lt)):(0,a.kq)("",!0),e.unit?((0,a.wg)(),(0,a.iD)("span",{key:2,class:"unit",textContent:(0,i.zw)(e.unit)},null,8,ot)):(0,a.kq)("",!0)]),(0,a._)("div",rt,["binary"===e.type?((0,a.wg)(),(0,a.j4)(u,{key:0,value:null!=e.value_on?e.value===e.value_on:!!e.value,disabled:!e.writable,onInput:t=>o.setValue(e,t)},null,8,["value","disabled","onInput"])):"numeric"===e.type&&null!=e.value_min&&null!=e.value_max?((0,a.wg)(),(0,a.j4)(c,{key:1,"with-label":!0,range:[e.value_min,e.value_max],value:e.value,disabled:!e.writable,onChange:t=>o.setValue(e,t)},null,8,["range","value","disabled","onChange"])):"numeric"!==e.type||null!=e.value_min&&null!=e.value_max?"enum"===e.type?((0,a.wg)(),(0,a.iD)("label",ct,[(0,a._)("select",{value:e.readable&&null!=e.value?e.value:"",onChange:t=>o.setValue(e,t)},[e.readable?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("option",pt)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.values,(t=>((0,a.wg)(),(0,a.iD)("option",{key:t,value:t,textContent:(0,i.zw)(t),selected:e.readable&&e.value===t,disabled:!e.writable},null,8,ht)))),128))],40,vt)])):null!=o.rgbColor&&null!=e.value?.x&&null!=e.value?.y||null!=e.value?.hue&&null!=e.value?.saturation?((0,a.wg)(),(0,a.iD)("label",mt,[(0,a._)("input",{type:"color",onChange:(0,ne.iM)((t=>o.setValue(e,t)),["stop"]),value:"#"+o.rgbColor.map((e=>(e=Number(e).toString(16),1===e.length?"0"+e:e))).join("")},null,40,gt)])):((0,a.wg)(),(0,a.iD)("label",bt,[(0,a._)("input",{type:"text",disabled:!e.writable,value:e.value,onChange:t=>o.setValue(e,t)},null,40,yt)])):((0,a.wg)(),(0,a.iD)("label",dt,[(0,a._)("input",{type:"number","with-label":!0,value:e.value,disabled:!e.writable,onChange:t=>o.setValue(e,t)},null,40,ut)]))])])))),128))])])):(0,a.kq)("",!0),(0,a._)("div",ft,[_t,(0,a._)("div",wt,[(0,a._)("div",{class:"row",onClick:t[5]||(t[5]=t=>e.$refs.groupsModal.show())},xt),(0,a._)("div",{class:"row",onClick:t[6]||(t[6]=e=>l.otaUpdatesAvailable?o.installOtaUpdates():o.checkOtaUpdates())},[l.otaUpdatesAvailable?((0,a.wg)(),(0,a.iD)("div",zt,"Install updates")):((0,a.wg)(),(0,a.iD)("div",Ct,"Check for updates")),Dt]),(0,a._)("div",{class:"row",onClick:t[7]||(t[7]=e=>o.remove(!1))},Rt),(0,a._)("div",{class:"row error",onClick:t[8]||(t[8]=e=>o.remove(!0))},Nt)])])])):(0,a.kq)("",!0)],2)}var Vt=s(8070),Ut=s(6),jt=s(4212),Et=s(8453),St={name:"Device",components:{Modal:Et.Z,ToggleSwitch:Ut.Z,Slider:Vt.Z,Loading:ae.Z},mixins:[ie.Z],emits:["select","rename","remove","groups-edit"],props:{device:{type:Object,required:!0},groups:{type:Object,default:()=>{}},selected:{type:Boolean,default:!1}},data(){return{editName:!1,loading:!1,status:{},otaUpdatesAvailable:!1}},computed:{values(){if(!this.device.definition?.exposes)return{};const e=e=>{const t=(e,s)=>{if(e.features){e.property&&(s[e.property]=s[e.property]||{},s=s[e.property]);for(const a of e.features)t(a,s)}else e.property&&(s[e.property]=e)},s={};for(const a of e)t(a,s);return s};return e(this.device.definition.exposes)},displayedValues(){const e={},t=(e,[s,a])=>(s in this.status&&(a={...a,value:this.status[s]}),null!=a.access&&(a.readable=!!(1&a.access),a.writable=!!(2&a.access),delete a.access),e[s]=a,Object.entries(a).filter((e=>e[1]instanceof Object)).reduce(t,e[s]),e);return Object.entries(this.values).reduce(t,e),e},rgbColor(){if(!this.displayedValues.color)return;const e=this.displayedValues.color?.value;if(e){if(null!=e.x&&null!=e.y){const t=new jt.N({bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]});return t.xyToRgb(e.x,e.y,this.displayedValues.brightness.value)}if(null!=e.hue&&(null!=e.saturation||null!=e.sat)){const t=null!=e.saturation?"saturation":"sat",s=new jt.N({hue:[this.displayedValues.color.hue?.value_min||0,this.displayedValues.color.hue.value_max||65535],sat:[this.displayedValues.color[t]?.value_min||0,this.displayedValues.color[t].value_max||255],bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]});return s.hslToRgb(e.hue,e[t],this.displayedValues.brightness.value)}return null}},associatedGroups(){return new Set(Object.values(this.groups).filter((e=>new Set((e.members||[]).map((e=>e.ieee_address))).has(this.device.ieee_address))).map((e=>parseInt(e.id))))}},methods:{async refresh(){this.loading=!0;try{this.status=await this.request("zigbee.mqtt.device_get",{device:this.device.friendly_name||this.device.ieee_address})}finally{this.loading=!1}},async rename(){const e=(this.$refs.name.value||"").trim();if(e.length&&e!==this.device.friendly_name){this.loading=!0;try{await this.request("zigbee.mqtt.device_rename",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address,name:e}),this.$emit("rename",{name:this.device.friendly_name,newName:e})}finally{this.editName=!1,this.loading=!1}}},async remove(e){if(confirm("Are you really sure that you want to remove this device from the network?")){e=!!e,this.loading=!0;try{await this.request("zigbee.mqtt.device_remove",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address,force:e}),this.$emit("remove",{device:this.device.friendly_name||this.device.ieee_address})}finally{this.loading=!1}}},async setValue(e,t){const s={device:this.device.friendly_name||this.device.ieee_address,property:e.property,value:null};switch(e.type){case"binary":e.value_toggle?s.value=e.value_toggle:e.value_on&&e.value_off?s.value=e.value===e.value_on?e.value_off:e.value_on:s.value=!e.value;break;case"numeric":s.value=parseFloat(t.target.value);break;case"enum":t.target.value?.length&&(s.value=t.target.value);break;default:if(null!=e.x&&null!=e.y||null!=e.hue&&(null!=e.saturation||null!=e.sat)){s.property="color";const a=t.target.value.slice(1).split(/([0-9a-fA-F]{2})/).filter(((e,t)=>t%2)).map((e=>parseInt(e,16)));if(null!=e.x&&null!=e.y){const e=new jt.N({bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]}),t=e.rgbToXY(...a);s.value={x:t[0],y:t[1]}}else{const e=null!=this.displayedValues.color.saturation?"saturation":"sat",t=new jt.N({hue:[this.displayedValues.color.hue?.value_min||0,this.displayedValues.color.hue.value_max||65535],sat:[this.displayedValues.color[e]?.value_min||0,this.displayedValues.color[e].value_max||255],bri:[this.displayedValues.brightness?.value_min||0,this.displayedValues.brightness?.value_max||255]}),i=t.rgbToHsl(...a);s.value={hue:i[0]},s.value[e]=i[1]}}break}if(null!=s.value){this.loading=!0;try{await this.request("zigbee.mqtt.device_set",s),await this.refresh()}finally{this.loading=!1}}},async manageGroups(e){const t=[...e.target.querySelectorAll("input[type=checkbox]")].reduce(((e,t)=>{const s=parseInt(t.value);return t.checked&&!this.associatedGroups.has(s)?e.add.add(s):!t.checked&&this.associatedGroups.has(s)&&e.remove.add(s),e}),{add:new Set,remove:new Set}),s=async e=>{await Promise.all([...t[e]].map((async t=>{await this.request(`zigbee.mqtt.group_${e}_device`,{group:this.groups[t].friendly_name,device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address})})))};this.loading=!0;try{await Promise.all(Object.keys(t).map(s)),this.$emit("groups-edit",t)}finally{this.loading=!1}},async checkOtaUpdates(){this.loading=!0;try{this.otaUpdatesAvailable=(await this.request("zigbee.mqtt.device_check_ota_updates",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address})).update_available,this.otaUpdatesAvailable?this.notify({text:"A firmware update is available for the device",image:{iconClass:"fa fa-sync-alt"}}):this.notify({text:"The device is up to date",image:{iconClass:"fa fa-check"}})}finally{this.loading=!1}},async installOtaUpdates(){this.loading=!0;try{await this.request("zigbee.mqtt.device_install_ota_updates",{device:this.device.friendly_name?.length?this.device.friendly_name:this.device.ieee_address})}finally{this.loading=!1}}},mounted(){this.$watch((()=>this.selected),(e=>{e&&this.refresh()})),this.$watch((()=>this.status.update_available),(e=>{this.otaUpdatesAvailable=e})),this.subscribe((e=>{e.device!==this.device.friendly_name&&e.device!==this.device.ieee_address||(this.status={...this.status,...e.properties})}),`on-property-change-${this.device.ieee_address}`,"platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePropertySetEvent")},unmounted(){this.unsubscribe(`on-property-change-${this.device.ieee_address}`)}},At=s(3744);const $t=(0,At.Z)(St,[["render",Tt],["__scopeId","data-v-6437b841"]]);var Ot=$t;const Ft=e=>((0,a.dD)("data-v-7667f7ba"),e=e(),(0,a.Cn)(),e),Bt=["textContent"],Lt={key:1,class:"params"},Yt={class:"section devices"},Ht=Ft((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Devices")],-1))),Wt={class:"body"},Kt=["checked","value","onChange"],Pt=["textContent"],Xt={class:"section actions"},Jt=Ft((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1))),Qt={class:"body"},es=Ft((()=>(0,a._)("div",{class:"col-10"},"Rename Group",-1))),ts=Ft((()=>(0,a._)("div",{class:"buttons col-2 pull-right"},[(0,a._)("i",{class:"fa fa-edit"})],-1))),ss=[es,ts],as=Ft((()=>(0,a._)("div",{class:"col-10"},"Remove Group",-1))),is=Ft((()=>(0,a._)("div",{class:"buttons col-2 pull-right"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),ns=[as,is];function ls(e,t,s,n,l,o){const r=(0,a.up)("Loading");return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["item group",{selected:s.selected}])},[l.loading?((0,a.wg)(),(0,a.j4)(r,{key:0})):(0,a.kq)("",!0),(0,a._)("div",{class:(0,i.C_)(["row name header vertical-center",{selected:s.selected}]),textContent:(0,i.zw)(s.group.friendly_name),onClick:t[0]||(t[0]=t=>e.$emit("select"))},null,10,Bt),s.selected?((0,a.wg)(),(0,a.iD)("div",Lt,[(0,a._)("div",Yt,[Ht,(0,a._)("div",Wt,[(0,a._)("form",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.devices,((e,t)=>((0,a.wg)(),(0,a.iD)("label",{class:"row",key:t},[(0,a._)("input",{type:"checkbox",checked:o.members.has(e.ieee_address),value:e.ieee_address,onChange:t=>o.toggleDevice(e.ieee_address)},null,40,Kt),(0,a._)("span",{class:"label",textContent:(0,i.zw)(e.friendly_name?.length?e.friendly_name:e.ieee_address)},null,8,Pt)])))),128))])])]),(0,a._)("div",Xt,[Jt,(0,a._)("div",Qt,[(0,a._)("div",{class:"row",onClick:t[1]||(t[1]=(...e)=>o.rename&&o.rename(...e))},ss),(0,a._)("div",{class:"row",onClick:t[2]||(t[2]=(...e)=>o.remove&&o.remove(...e))},ns)])])])):(0,a.kq)("",!0)],2)}var os={name:"Group",emits:["select","remove","edit"],mixins:[ie.Z],components:{Loading:ae.Z},props:{group:{type:Object,required:!0},devices:{type:Object,default:()=>({})},selected:{type:Boolean,default:!1}},data(){return{loading:!1,values:{}}},computed:{devicesByAddress(){return Object.entries(this.devices).reduce(((e,t)=>{const s=t[1];return e[s.ieee_address]=s,e}),{})},members(){return new Set((this.group.members||[]).map((e=>e.ieee_address)))}},methods:{async remove(){if(confirm("Are you sure that you want to remove this group?")){this.loading=!0;try{await this.request("zigbee.mqtt.group_remove",{name:this.group.friendly_name}),this.$emit("remove",{name:this.group.friendly_name})}finally{this.loading=!1}}},async rename(){let e=prompt("New group name",this.group.friendly_name);if(e?.length){e=e.trim(),this.loading=!0;try{await this.request("zigbee.mqtt.group_rename",{group:this.group.friendly_name||this.group.id,name:e}),this.$emit("rename",{name:this.group.friendly_name,newName:e})}finally{this.loading=!1}}},async toggleDevice(e){const t=this.devicesByAddress[e],s=t.friendly_name?.length?t.friendly_name:e,a=this.members.has(e)?"remove":"add";this.loading=!0;try{await this.request(`zigbee.mqtt.group_${a}_device`,{group:this.group.friendly_name,device:s}),this.$emit("edit",{device:s,method:a})}finally{this.loading=!1}}}};const rs=(0,At.Z)(os,[["render",ls],["__scopeId","data-v-7667f7ba"]]);var ds=rs,us={name:"ZigbeeMqtt",components:{Modal:Et.Z,Dropdown:te.Z,DropdownItem:se.Z,Loading:ae.Z,Device:Ot,Group:ds},mixins:[ie.Z],data(){return{devices:{},groups:{},status:{},loading:!1,selected:{view:"devices",deviceId:void 0,groupId:void 0},views:{devices:!0,groups:!0},modal:{group:{visible:!1}}}},methods:{async refreshDevices(){this.loading=!0;try{this.devices=(await this.request("zigbee.mqtt.devices")).reduce(((e,t)=>(t.friendly_name in this.devices&&(t={values:this.devices[t.friendly_name].values||{},...this.devices[t.friendly_name]}),e[t.friendly_name]=t,e)),{})}finally{this.loading=!1}},async refreshGroups(){this.loading=!0;try{this.groups=(await this.request("zigbee.mqtt.groups")).reduce(((e,t)=>(e[t.id]=t,e)),{})}finally{this.loading=!1}},async refreshInfo(){this.loading=!0;try{this.status=await this.request("zigbee.mqtt.info")}finally{this.loading=!1}},refresh(){this.refreshDevices(),this.refreshGroups(),this.refreshInfo()},updateProperties(e,t){this.devices[e].values=t},async addGroup(){const e=prompt("Group name");if(e&&e.length){this.loading=!0;try{await this.request("zigbee.mqtt.group_add",{name:e})}finally{this.loading=!1}await this.refreshGroups()}},async permitJoin(e){const t={permit:!!e};if(e){let e=prompt("Join allow period in seconds (0 or empty for no time limits)","60");t.seconds=e.length?parseInt(e):null}this.loading=!0;try{await this.request("zigbee.mqtt.permit_join",t),setTimeout(this.refreshInfo,1e3)}finally{this.loading=!1}},async factoryReset(){if(confirm("Are you SURE that you want to do a device factory reset?")||confirm("Are you REALLY sure? ALL network information and custom firmware will be lost!!")){this.loading=!0;try{await this.request("zigbee.mqtt.factory_reset")}finally{this.loading=!1}}},async addToGroup(e,t){this.loading=!0,await this.request("zigbee.mqtt.group_add_device",{device:e,group:t}),this.loading=!1;const s=this;setTimeout((()=>{s.refresh(),s.refreshGroups()}),100)}},created(){this.subscribe((()=>{this.notify({text:"WARNING: The controller is offline",error:!0})}),"on-zigbee-offline","platypush.message.event.zigbee.mqtt.ZigbeeMqttOfflineEvent"),this.subscribe((()=>{this.notify({text:"The controller is now online",iconClass:"fas fa-check"})}),"on-zigbee-online","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent"),this.subscribe((()=>{this.notify({text:"Failed to remove the device",error:!0})}),"on-zigbee-device-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedFailedEvent"),this.subscribe((()=>{this.notify({text:"Failed to add the group",error:!0})}),"on-zigbee-group-add-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedFailedEvent"),this.subscribe((()=>{this.notify({text:"Failed to remove group",error:!0})}),"on-zigbee-group-remove-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedFailedEvent"),this.subscribe((()=>{this.notify({text:"Failed to remove the devices from group",error:!0})}),"on-zigbee-remove-all-failed","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllFailedEvent"),this.subscribe((e=>{this.notify({text:e.error||"[Unknown error]",error:!0})}),"on-zigbee-error","platypush.message.event.zigbee.mqtt.ZigbeeMqttErrorEvent"),this.subscribe(this.refresh,"on-zigbee-device-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDevicePairingEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceConnectedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBannedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceWhitelistedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceRenamedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceBindEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttDeviceUnbindEvent"),this.subscribe(this.refreshGroups,"on-zigbee-group-update","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupAddedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemovedEvent","platypush.message.event.zigbee.mqtt.ZigbeeMqttGroupRemoveAllEvent")},mounted(){this.refresh()},unmounted(){this.unsubscribe("on-zigbee-error"),this.unsubscribe("on-zigbee-remove-all-failed"),this.unsubscribe("on-zigbee-group-remove-failed"),this.unsubscribe("on-zigbee-group-add-failed"),this.unsubscribe("on-zigbee-device-remove-failed"),this.unsubscribe("on-zigbee-online"),this.unsubscribe("on-zigbee-offline"),this.unsubscribe("on-zigbee-device-update"),this.unsubscribe("on-zigbee-group-update")}};const cs=(0,At.Z)(us,[["render",ee]]);var vs=cs}}]); +//# sourceMappingURL=4848.b8cbdcae.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js.map b/platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js.map new file mode 100644 index 000000000..0a704c453 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/4848.b8cbdcae.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4848.b8cbdcae.js","mappings":"kJAAO,MAAMA,EACTC,YAAYC,GAQ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AAU,KACb1O,KAAKqO,OAAO,CACVjG,KAAM,8BACN+H,OAAO,GAFT,GAIC,iCAAkC,0EAErCnQ,KAAK0O,WAAU,KACb1O,KAAKqO,OAAO,CACVjG,KAAM,0BACN+H,OAAO,GAFT,GAIC,6BAA8B,uEAEjCnQ,KAAK0O,WAAU,KACb1O,KAAKqO,OAAO,CACVjG,KAAM,yBACN+H,OAAO,GAFT,GAIC,gCAAiC,yEAEpCnQ,KAAK0O,WAAU,KACb1O,KAAKqO,OAAO,CACVjG,KAAM,0CACN+H,OAAO,GAFT,GAIC,8BACC,2EAEJnQ,KAAK0O,WAAWvJ,IACdnF,KAAKqO,OAAO,CACVjG,KAAMjD,EAAMgL,OAAS,kBACrBA,OAAO,GAFT,GAIC,kBAAmB,4DAEtBnQ,KAAK0O,UAAU1O,KAAKyI,QAAS,0BACzB,4DACA,mEACA,qEACA,kEACA,mEACA,uEACA,mEACA,gEACA,mEAGJzI,KAAK0O,UAAU1O,KAAKgJ,cAAe,yBAC/B,gEACA,kEACA,oEAEL,EAED9C,UACElG,KAAKyI,SACN,EAEDmG,YACE5O,KAAK6O,YAAY,mBACjB7O,KAAK6O,YAAY,+BACjB7O,KAAK6O,YAAY,iCACjB7O,KAAK6O,YAAY,8BACjB7O,KAAK6O,YAAY,kCACjB7O,KAAK6O,YAAY,oBACjB7O,KAAK6O,YAAY,qBACjB7O,KAAK6O,YAAY,2BACjB7O,KAAK6O,YAAY,yBAClB,GKzVH,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASzI,MAEpE,S","sources":["webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Device.vue?8b6d","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue","webpack://platypush/./src/components/panels/ZigbeeMqtt/Group.vue?46cd","webpack://platypush/./src/components/panels/ZigbeeMqtt/Index.vue?dac0"],"sourcesContent":["export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Device.vue?vue&type=template&id=6437b841&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=6437b841&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6437b841\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Group.vue?vue&type=template&id=7667f7ba&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=7667f7ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7667f7ba\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=b15233ac\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=b15233ac&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["ColorConverter","constructor","ranges","this","hue","sat","bri","ct","attr","Object","keys","normalize","x","xRange","yRange","hslToRgb","h","s","l","a","Math","min","f","n","k","color","max","round","rgbToHsl","r","g","b","d","parseInt","xyToRgb","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","rgbToXY","parseFloat","rgbToBri","getRGB","rgb","getXY","xy","toRGB","console","debug","toXY","toHSL","hexToRgb","hex","slice","_","rgbToHex","toString","length","join","class","ref","withLabel","type","range","step","disabled","value","onUpdate","name","emits","props","Number","Boolean","default","Array","methods","event","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","loading","title","status","info","state","permit_join","network","channel","version","config","mqtt","server","serial","port","coordinator","meta","maintrel","majorrel","minorrel","revision","selected","view","$event","views","enabled","toUpperCase","replace","key","addGroup","text","infoModal","show","permitJoin","factoryReset","refresh","devices","device","id","groups","deviceId","refreshDevices","refreshGroups","group","groupId","manageGroups","associatedGroups","has","friendly_name","ieee_address","editName","rename","network_address","definition","vendor","model","model_id","description","software_build_id","date_code","power_source","displayedValues","property","rgbColor","unit","value_on","writable","setValue","value_min","value_max","readable","values","option","i","groupsModal","otaUpdatesAvailable","installOtaUpdates","checkOtaUpdates","remove","components","Modal","ToggleSwitch","Slider","Loading","mixins","Utils","required","data","computed","exposes","extractValues","extractValue","root","features","feature","ret","mergeValues","obj","access","entries","filter","v","reduce","converter","saturation","satAttr","Set","members","member","async","request","trim","newName","force","confirm","value_toggle","value_off","split","hsl","querySelectorAll","element","add","editGroups","Promise","all","action","update_available","notify","image","iconClass","$watch","newValue","subscribe","properties","unmounted","unsubscribe","toggleDevice","devicesByAddress","entry","prompt","ieeeAddress","method","Dropdown","DropdownItem","Device","Group","undefined","modal","visible","refreshInfo","updateProperties","permit","args","seconds","setTimeout","self","created","error"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js b/platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js new file mode 100644 index 000000000..db4102248 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5810],{8070:function(e,n,t){t.d(n,{Z:function(){return p}});var a=t(6252),s=t(3577),l=t(9963);const i={class:"slider-wrapper"},o=["min","max","step","disabled","value"],d={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},r=["textContent"];function u(e,n,t,u,m,v){return(0,a.wg)(),(0,a.iD)("label",i,[(0,a._)("input",{class:(0,s.C_)(["slider",{"with-label":t.withLabel}]),type:"range",min:t.range[0],max:t.range[1],step:t.step,disabled:t.disabled,value:t.value,ref:"range",onInput:n[0]||(n[0]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"])),onChange:n[1]||(n[1]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"])),onMouseup:n[2]||(n[2]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"])),onMousedown:n[3]||(n[3]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"])),onTouchstart:n[4]||(n[4]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"])),onTouchend:n[5]||(n[5]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"])),onKeyup:n[6]||(n[6]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"])),onKeydown:n[7]||(n[7]=(0,l.iM)(((...e)=>v.onUpdate&&v.onUpdate(...e)),["stop"]))},null,42,o),(0,a._)("div",{class:(0,s.C_)(["track",{"with-label":t.withLabel}])},[(0,a._)("div",d,null,512)],2),(0,a._)("div",c,null,512),t.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,s.zw)(t.value),ref:"label"},null,8,r)):(0,a.kq)("",!0)])}var m={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const n=this.$refs.range.clientWidth,t=(e-this.range[0])/(this.range[1]-this.range[0]),a=t*n,s=this.$refs.thumb;s.style.left=a-s.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${t}%, -50%)`,this.$refs.track.style.width=`${a}px`}},mounted(){null!=this.value&&this.update(this.value)}},v=t(3744);const _=(0,v.Z)(m,[["render",u],["__scopeId","data-v-0359812c"]]);var p=_},6:function(e,n,t){t.d(n,{Z:function(){return _}});var a=t(6252),s=t(3577),l=t(9963);const i=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),o=["checked"],d=i((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),c={class:"label"};function r(e,n,t,i,r,u){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,l.iM)(((...e)=>u.onInput&&u.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:t.value},null,8,o),(0,a._)("label",null,[d,(0,a._)("span",c,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var u={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},m=t(3744);const v=(0,m.Z)(u,[["render",r],["__scopeId","data-v-a6396ae8"]]);var _=v},5810:function(e,n,t){t.d(n,{Z:function(){return js}});var a=t(6252),s=t(3577);const l={class:"zwave-container"},i={class:"network-info"},o={key:1,class:"params"},d={class:"row"},c=(0,a._)("div",{class:"param-name"},"State",-1),r=["textContent"],u={class:"row"},m=(0,a._)("div",{class:"param-name"},"Device",-1),v=["textContent"],_={class:"section"},p=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Statistics")],-1),h={class:"body"},w=["textContent"],g=["textContent"],y={class:"group-add"},f={class:"params"},k={class:"section"},b=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Select nodes to add")],-1),C={key:0,class:"body"},x=["onClick"],R=["textContent"],z={class:"view-options"},D={class:"view-selector col-s-6 col-m-8 col-l-9"},N=["textContent","selected","value"],q={class:"buttons col-s-6 col-m-4 col-l-3"},I=(0,a._)("i",{class:"fa fa-plus"},null,-1),S=[I],j=(0,a._)("i",{class:"fa fa-sync-alt"},null,-1),M=[j],V={class:"view-container"},O={key:0,class:"view nodes"},Z={key:1,class:"no-items"},A=(0,a._)("div",{class:"empty"},"No nodes available on the network",-1),U=[A],T={key:1,class:"view groups"},E={key:1,class:"no-items"},$=(0,a._)("div",{class:"empty"},"No groups available on the network",-1),W=[$],F={key:2,class:"view scenes"},H={key:1,class:"no-items"},L=(0,a._)("div",{class:"empty"},"No scenes configured on the network",-1),G=[L],K=["textContent","onClick"],B={key:0,class:"params"},Y={class:"row"},P=(0,a._)("div",{class:"param-name"},"Scene ID",-1),J=["textContent"],Q={class:"row"},X=(0,a._)("div",{class:"param-name"},"Activate",-1),ee={class:"param-value"},ne={key:0,class:"section values"},te=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Values")],-1),ae={class:"body"},se={class:"param-name"},le={class:"param-value"},ie=["textContent"],oe={class:"buttons"},de=["onClick"],ce=(0,a._)("i",{class:"fa fa-trash"},null,-1),re=[ce],ue={class:"section actions"},me=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1),ve={class:"body"},_e=["onClick"],pe=(0,a._)("div",{class:"param-name"},"Remove Scene",-1),he=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1),we=[pe,he],ge=["onClick"],ye=(0,a._)("div",{class:"param-name"},"Rename Scene",-1),fe=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-edit"})],-1),ke=[ye,fe],be={key:3,class:"view values"},Ce={key:1,class:"no-items"},xe=(0,a._)("div",{class:"empty"},"No nodes found on the network",-1),Re=[xe],ze=["textContent","onClick"],De={key:0,class:"params"},Ne={key:0,class:"value-display"};function qe(e,n,t,I,j,A){const $=(0,a.up)("Loading"),L=(0,a.up)("Modal"),ce=(0,a.up)("DropdownItem"),pe=(0,a.up)("Dropdown"),he=(0,a.up)("Node"),ye=(0,a.up)("Group"),fe=(0,a.up)("ToggleSwitch"),xe=(0,a.up)("Value");return(0,a.wg)(),(0,a.iD)("div",l,[(0,a.Wm)(L,{title:"Network info",ref:"networkInfoModal"},{default:(0,a.w5)((()=>[(0,a._)("div",i,[j.loading.status?((0,a.wg)(),(0,a.j4)($,{key:0})):((0,a.wg)(),(0,a.iD)("div",o,[(0,a._)("div",d,[c,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(j.status.state)},null,8,r)]),(0,a._)("div",u,[m,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(j.status.device)},null,8,v)]),(0,a._)("div",_,[p,(0,a._)("div",h,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(j.status.stats,((e,n)=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:n},[(0,a._)("div",{class:"param-name",textContent:(0,s.zw)(n)},null,8,w),(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e)},null,8,g)])))),128))])])]))])])),_:1},512),(0,a.Wm)(L,{title:"Add nodes to group",ref:"addNodesToGroupModal"},{default:(0,a.w5)((()=>[(0,a._)("div",y,[(0,a._)("div",f,[(0,a._)("div",k,[b,null!=j.selected.groupId?((0,a.wg)(),(0,a.iD)("div",C,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(j.nodes||{}).filter((e=>j.groups[j.selected.groupId].associations.indexOf(e.node_id)<0)),(e=>((0,a.wg)(),(0,a.iD)("div",{class:"row clickable",onClick:n=>A.addToGroup(e.node_id,j.selected.groupId),key:e.node_id},[(0,a._)("div",{class:"param-name",textContent:(0,s.zw)(e.name)},null,8,R)],8,x)))),128))])):(0,a.kq)("",!0)])])])])),_:1},512),(0,a._)("div",z,[(0,a._)("div",D,[(0,a._)("label",null,[(0,a._)("select",{onChange:n[0]||(n[0]=e=>j.selected.view=e.target.value)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(j.views,((e,n)=>((0,a.wg)(),(0,a.iD)("option",{key:e,textContent:(0,s.zw)((n[0].toUpperCase()+n.slice(1)).replace("_"," ")),selected:n===j.selected.view,value:n},null,8,N)))),128))],32)])]),(0,a._)("div",q,["scenes"===j.selected.view?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"btn btn-default",title:"Create Scene",onClick:n[1]||(n[1]=(...e)=>A.addScene&&A.addScene(...e))},S)):(0,a.kq)("",!0),(0,a.Wm)(pe,{title:"Network commands","icon-class":"fa fa-cog"},{default:(0,a.w5)((()=>[(0,a.Wm)(ce,{text:"Network Info",disabled:j.commandRunning,onClick:A.networkInfoModalOpen},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Start Network",disabled:j.commandRunning,onClick:A.startNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Stop Network",disabled:j.commandRunning,onClick:A.stopNetwork},null,8,["disabled","onClick"]),"nodes"===j.selected.view?((0,a.wg)(),(0,a.j4)(ce,{key:0,text:"Add Node",disabled:j.commandRunning,onClick:A.addNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),"nodes"===j.selected.view?((0,a.wg)(),(0,a.j4)(ce,{key:1,text:"Remove Node",disabled:j.commandRunning,onClick:A.removeNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),(0,a.Wm)(ce,{text:"Switch All On",disabled:j.commandRunning,onClick:n[2]||(n[2]=e=>A.switchAll(!0))},null,8,["disabled"]),(0,a.Wm)(ce,{text:"Switch All Off",disabled:j.commandRunning,onClick:n[3]||(n[3]=e=>A.switchAll(!1))},null,8,["disabled"]),(0,a.Wm)(ce,{text:"Cancel Command",disabled:j.commandRunning,onClick:A.cancelCommand},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Kill Command",disabled:j.commandRunning,onClick:A.killCommand},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Receive Configuration",disabled:j.commandRunning,onClick:A.receiveConfiguration},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Create New Primary",disabled:j.commandRunning,onClick:A.createNewPrimary},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Transfer Primary Role",disabled:j.commandRunning,onClick:A.transferPrimaryRole},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Heal Network",disabled:j.commandRunning,onClick:A.healNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Soft Reset",disabled:j.commandRunning,onClick:A.softReset},null,8,["disabled","onClick"]),(0,a.Wm)(ce,{text:"Hard Reset",disabled:j.commandRunning,onClick:A.hardReset},null,8,["disabled","onClick"])])),_:1}),(0,a._)("button",{class:"btn btn-default",title:"Refresh Network",onClick:n[4]||(n[4]=(...e)=>A.refresh&&A.refresh(...e))},M)])]),(0,a._)("div",V,["nodes"===j.selected.view?((0,a.wg)(),(0,a.iD)("div",O,[j.loading.nodes?((0,a.wg)(),(0,a.j4)($,{key:0})):Object.keys(j.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",Z,U)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(j.nodes,((n,t)=>((0,a.wg)(),(0,a.j4)(he,{key:t,node:n,selected:j.selected.nodeId===t,"plugin-name":e.pluginName,onSelect:e=>A.onNodeClick(t)},null,8,["node","selected","plugin-name","onSelect"])))),128))])):"groups"===j.selected.view?((0,a.wg)(),(0,a.iD)("div",T,[j.loading.groups?((0,a.wg)(),(0,a.j4)($,{key:0})):Object.keys(j.groups||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",E,W)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(j.groups,((t,s)=>((0,a.wg)(),(0,a.j4)(ye,{key:s,group:t,selected:j.selected.groupId===s,nodes:s in j.groups?j.groups[s].associations.map((e=>j.nodes[e])).reduce(((e,n)=>(e[n.node_id]=n,e)),{}):{},owner:null!=t.node_id?j.nodes[t.node_id]:null,"plugin-name":e.pluginName,onSelect:e=>j.selected.groupId=s===j.selected.groupId?void 0:s,onOpenAddNodesToGroup:n[5]||(n[5]=n=>e.$refs.addNodesToGroupModal.show())},null,8,["group","selected","nodes","owner","plugin-name","onSelect"])))),128))])):"scenes"===j.selected.view?((0,a.wg)(),(0,a.iD)("div",F,[j.loading.scenes?((0,a.wg)(),(0,a.j4)($,{key:0})):Object.keys(j.scenes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",H,G)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(j.scenes,((e,n)=>((0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item scene",{selected:j.selected.sceneId===n}]),key:n},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:j.selected.sceneId===n}]),textContent:(0,s.zw)(e.label),onClick:e=>j.selected.sceneId=n===j.selected.sceneId?void 0:n},null,10,K),j.selected.sceneId===n?((0,a.wg)(),(0,a.iD)("div",B,[(0,a._)("div",Y,[P,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n)},null,8,J)]),(0,a._)("div",Q,[X,(0,a._)("div",ee,[(0,a.Wm)(fe,{value:!1,onInput:e=>A.activateScene(n)},null,8,["onInput"])])]),Object.values(e?.values)?.length?((0,a.wg)(),(0,a.iD)("div",ne,[te,(0,a._)("div",ae,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(e.values),(e=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:e.id_on_network},[(0,a._)("div",se,(0,s.zw)(j.nodes[e.node_id].name)+" ⇨ "+(0,s.zw)(A.valuesMap[e.id_on_network].label),1),(0,a._)("div",le,[(0,a._)("span",{textContent:(0,s.zw)(e.data)},null,8,ie),(0,a._)("span",oe,[(0,a._)("button",{class:"btn btn-default",title:"Remove value",onClick:t=>A.removeValueFromScene({sceneId:n,valueId:e.id_on_network})},re,8,de)])])])))),128))])])):(0,a.kq)("",!0),(0,a._)("div",ue,[me,(0,a._)("div",ve,[(0,a._)("div",{class:"row",onClick:e=>A.removeScene(n)},we,8,_e),(0,a._)("div",{class:"row",onClick:e=>A.renameScene(n)},ke,8,ge)])])])):(0,a.kq)("",!0)],2)))),128))])):((0,a.wg)(),(0,a.iD)("div",be,[j.loading.nodes?((0,a.wg)(),(0,a.j4)($,{key:0})):Object.keys(j.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",Ce,Re)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(j.nodes,((n,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"node-container",key:t},["values"===j.selected.view||Object.values(n.values).filter((e=>e.id_on_network in j.values[j.selected.view])).length>0?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,s.C_)(["item node",{selected:j.selected.nodeId===t}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:j.selected.nodeId===t}]),textContent:(0,s.zw)(n.name),onClick:e=>A.onNodeClick(t)},null,10,ze),j.selected.nodeId===t?((0,a.wg)(),(0,a.iD)("div",De,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.values,((t,s)=>((0,a.wg)(),(0,a.iD)("div",{class:"value-container",key:s},[t.id_on_network&&("values"===j.selected.view||t.id_on_network in j.values[j.selected.view])?((0,a.wg)(),(0,a.iD)("div",Ne,[(0,a.Wm)(xe,{value:t,node:n,scenes:j.scenes,onAddToScene:A.addValueToScene,onRemoveFromScene:A.removeValueFromScene,onRefresh:A.refreshNodes,"plugin-name":e.pluginName},null,8,["value","node","scenes","onAddToScene","onRemoveFromScene","onRefresh","plugin-name"])])):(0,a.kq)("",!0)])))),128))])):(0,a.kq)("",!0)],2)):(0,a.kq)("",!0)])))),128))]))])])}const Ie=e=>((0,a.dD)("data-v-56458f8e"),e=e(),(0,a.Cn)(),e),Se=["textContent"],je={key:0,class:"params"},Me={key:0,class:"section owner"},Ve=Ie((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Owner")],-1))),Oe={class:"body"},Ze=["textContent"],Ae={class:"section nodes"},Ue={class:"header"},Te=Ie((()=>(0,a._)("div",{class:"title col-10"},"Nodes",-1))),Ee={class:"buttons col-2"},$e=Ie((()=>(0,a._)("i",{class:"fa fa-plus"},null,-1))),We=[$e],Fe={class:"body"},He=["textContent"],Le={class:"buttons col-2"},Ge=["disabled","onClick"],Ke=Ie((()=>(0,a._)("i",{class:"fa fa-trash"},null,-1))),Be=[Ke],Ye={class:"section config"},Pe=Ie((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Parameters")],-1))),Je={class:"body"},Qe={class:"row"},Xe=Ie((()=>(0,a._)("div",{class:"param-name"},"Index",-1))),en=["textContent"],nn={class:"row"},tn=Ie((()=>(0,a._)("div",{class:"param-name"},"Max associations",-1))),an=["textContent"];function sn(e,n,t,l,i,o){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item group",{selected:t.selected}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:t.selected}]),textContent:(0,s.zw)(t.group.label),onClick:n[0]||(n[0]=n=>e.$emit("select",t.group.index))},null,10,Se),t.selected?((0,a.wg)(),(0,a.iD)("div",je,[t.owner&&Object.keys(t.owner).length?((0,a.wg)(),(0,a.iD)("div",Me,[Ve,(0,a._)("div",Oe,[(0,a._)("div",{class:"row",textContent:(0,s.zw)(t.owner.name)},null,8,Ze)])])):(0,a.kq)("",!0),(0,a._)("div",Ae,[(0,a._)("div",Ue,[Te,(0,a._)("div",Ee,[!t.group.max_associations||Object.keys(t.nodes||{}).lengthe.$emit("open-add-nodes-to-group",t.group.index))},We)):(0,a.kq)("",!0)])]),(0,a._)("div",Fe,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.nodes,((e,n)=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:n},[(0,a._)("div",{class:"col-10",textContent:(0,s.zw)(e.name?.length?e.name:``)},null,8,He),(0,a._)("div",Le,[(0,a._)("button",{class:"btn btn-default",title:"Remove from group",disabled:i.commandRunning,onClick:n=>o.removeFromGroup(e.node_id)},Be,8,Ge)])])))),128))])]),(0,a._)("div",Ye,[Pe,(0,a._)("div",Je,[(0,a._)("div",Qe,[Xe,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.group.index)},null,8,en)]),(0,a._)("div",nn,[tn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.group.max_associations)},null,8,an)])])])])):(0,a.kq)("",!0)],2)}var ln=t(6813),on={mixins:[ln.Z],props:{pluginName:{type:String,required:!0}},methods:{async zrequest(e,n){return await this.request(`${this.pluginName}.${e}`,n)}}},dn={name:"Group",emits:["select","open-add-nodes-to-group"],mixins:[on],props:{group:{type:Object,required:!0},owner:{type:Object},nodes:{type:Object,default:()=>({})},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1}},methods:{async removeFromGroup(e){if(!confirm("Are you sure that you want to remove this node from "+this.group.label+"?"))return;this.commandRunning=!0;const n={node_id:e};null!=this.group.group_id?n.group_id=this.group.group_id:n.group_index=this.group.index;try{await this.zrequest("remove_node_from_group",n)}finally{this.commandRunning=!1}}}},cn=t(3744);const rn=(0,cn.Z)(dn,[["render",sn],["__scopeId","data-v-56458f8e"]]);var un=rn,mn=t(9963);const vn=e=>((0,a.dD)("data-v-3da196a6"),e=e(),(0,a.Cn)(),e),_n=["textContent"],pn={key:0,class:"params"},hn={class:"row"},wn=vn((()=>(0,a._)("div",{class:"param-name"},"Name",-1))),gn={class:"param-value"},yn=["value","disabled"],fn={class:"buttons"},kn=vn((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),bn=[kn],Cn=["disabled"],xn=vn((()=>(0,a._)("i",{class:"fa fa-check"},null,-1))),Rn=[xn],zn=["textContent"],Dn={class:"buttons"},Nn=["disabled"],qn=vn((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),In=[qn],Sn={class:"row"},jn=vn((()=>(0,a._)("div",{class:"param-name"},"Location",-1))),Mn={class:"param-value"},Vn=["value","disabled"],On={class:"buttons"},Zn=vn((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),An=[Zn],Un=["disabled"],Tn=vn((()=>(0,a._)("i",{class:"fa fa-check"},null,-1))),En=[Tn],$n=["textContent"],Wn={class:"buttons"},Fn=["disabled"],Hn=vn((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),Ln=[Hn],Gn={class:"row"},Kn=vn((()=>(0,a._)("div",{class:"param-name"},"Type",-1))),Bn=["textContent"],Yn={class:"row"},Pn=vn((()=>(0,a._)("div",{class:"param-name"},"Role",-1))),Jn=["textContent"],Qn={class:"row"},Xn=vn((()=>(0,a._)("div",{class:"param-name"},"Node ID",-1))),et=["textContent"],nt={key:0,class:"row"},tt=vn((()=>(0,a._)("div",{class:"param-name"},"Neighbours",-1))),at={class:"param-value"},st=["textContent"],lt={class:"row"},it=vn((()=>(0,a._)("div",{class:"param-name"},"Is Ready",-1))),ot=["textContent"],dt={class:"row"},ct=vn((()=>(0,a._)("div",{class:"param-name"},"Is Failed",-1))),rt=["textContent"],ut={class:"row"},mt=vn((()=>(0,a._)("div",{class:"param-name"},"Product ID",-1))),vt=["textContent"],_t={class:"row"},pt=vn((()=>(0,a._)("div",{class:"param-name"},"Product Type",-1))),ht=["textContent"],wt={key:1,class:"row"},gt=vn((()=>(0,a._)("div",{class:"param-name"},"Product Name",-1))),yt=["textContent"],ft={class:"row"},kt=vn((()=>(0,a._)("div",{class:"param-name"},"Manufacturer ID",-1))),bt=["textContent"],Ct={key:2,class:"row"},xt=vn((()=>(0,a._)("div",{class:"param-name"},"Manufacturer Name",-1))),Rt=["textContent"],zt={class:"row"},Dt=vn((()=>(0,a._)("div",{class:"param-name"},"Capabilities",-1))),Nt=["textContent"],qt={class:"row"},It=vn((()=>(0,a._)("div",{class:"param-name"},"Command Classes",-1))),St=["textContent"],jt={class:"row"},Mt=vn((()=>(0,a._)("div",{class:"param-name"},"Groups",-1))),Vt=["textContent"],Ot={key:3,class:"row"},Zt=vn((()=>(0,a._)("div",{class:"param-name"},"Home ID",-1))),At=["textContent"],Ut={class:"row"},Tt=vn((()=>(0,a._)("div",{class:"param-name"},"Is Awake",-1))),Et=["textContent"],$t={key:4,class:"row"},Wt=vn((()=>(0,a._)("div",{class:"param-name"},"Is Locked",-1))),Ft=["textContent"],Ht={key:5,class:"row"},Lt=vn((()=>(0,a._)("div",{class:"param-name"},"Last Update",-1))),Gt=["textContent"],Kt={key:6,class:"row"},Bt=vn((()=>(0,a._)("div",{class:"param-name"},"Baud Rate",-1))),Yt=["textContent"],Pt={key:7,class:"row"},Jt=vn((()=>(0,a._)("div",{class:"param-name"},"Max Baud Rate",-1))),Qt=["textContent"],Xt={class:"section actions"},ea=vn((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1))),na={class:"body"},ta=vn((()=>(0,a._)("div",{class:"param-name"},"Remove Failed Node",-1))),aa=vn((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),sa=[ta,aa],la=vn((()=>(0,a._)("div",{class:"param-name"},"Replace Failed Node",-1))),ia=vn((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-sync-alt"})],-1))),oa=[la,ia],da=vn((()=>(0,a._)("div",{class:"param-name"},"Heal Node",-1))),ca=vn((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wrench"})],-1))),ra=[da,ca],ua=vn((()=>(0,a._)("div",{class:"param-name"},"Replicate info to secondary controller",-1))),ma=vn((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-clone"})],-1))),va=[ua,ma],_a=vn((()=>(0,a._)("div",{class:"param-name"},"Request network update",-1))),pa=vn((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wifi"})],-1))),ha=[_a,pa],wa=vn((()=>(0,a._)("div",{class:"param-name"},"Request neighbours update",-1))),ga=vn((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-network-wired"})],-1))),ya=[wa,ga];function fa(e,n,t,l,i,o){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item node",{selected:t.selected}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:t.selected}]),textContent:(0,s.zw)(t.node.name&&t.node.name.length?t.node.name:``),onClick:n[0]||(n[0]=n=>e.$emit("select"))},null,10,_n),t.selected?((0,a.wg)(),(0,a.iD)("div",pn,[(0,a._)("div",hn,[wn,(0,a._)("div",gn,[(0,a._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!i.editMode.name}])},[(0,a._)("form",{ref:"nameForm",onSubmit:n[2]||(n[2]=(0,mn.iM)(((...e)=>o.editName&&o.editName(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"name",value:t.node.name,disabled:i.commandRunning},null,8,yn)]),(0,a._)("span",fn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[1]||(n[1]=e=>i.editMode.name=!1)},bn),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:i.commandRunning},Rn,8,Cn)])],544)],2),(0,a._)("div",{class:(0,s.C_)({hidden:i.editMode.name})},[(0,a._)("span",{textContent:(0,s.zw)(t.node.name?.length?t.node.name:``)},null,8,zn),(0,a._)("span",Dn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[3]||(n[3]=e=>o.onEditMode("name")),disabled:i.commandRunning},In,8,Nn)])],2)])]),(0,a._)("div",Sn,[jn,(0,a._)("div",Mn,[(0,a._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!i.editMode.location}])},[(0,a._)("form",{ref:"locationForm",onSubmit:n[5]||(n[5]=(0,mn.iM)(((...e)=>o.editLocation&&o.editLocation(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"location",value:t.node.location,disabled:i.commandRunning},null,8,Vn)]),(0,a._)("span",On,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[4]||(n[4]=e=>i.editMode.location=!1)},An),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:i.commandRunning},En,8,Un)])],544)],2),(0,a._)("div",{class:(0,s.C_)({hidden:i.editMode.location})},[(0,a._)("span",{textContent:(0,s.zw)(t.node.location?.length?t.node.location:"")},null,8,$n),(0,a._)("span",Wn,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:n[6]||(n[6]=e=>o.onEditMode("location")),disabled:i.commandRunning},Ln,8,Fn)])],2)])]),(0,a._)("div",Gn,[Kn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.type)},null,8,Bn)]),(0,a._)("div",Yn,[Pn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.role)},null,8,Jn)]),(0,a._)("div",Qn,[Xn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.node_id)},null,8,et)]),t.node.neighbours.length?((0,a.wg)(),(0,a.iD)("div",nt,[tt,(0,a._)("div",at,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.node.neighbours,((e,n)=>((0,a.wg)(),(0,a.iD)("div",{class:"row pull-right",key:n,textContent:(0,s.zw)(e)},null,8,st)))),128))])])):(0,a.kq)("",!0),(0,a._)("div",lt,[it,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.is_ready)},null,8,ot)]),(0,a._)("div",dt,[ct,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.is_failed)},null,8,rt)]),(0,a._)("div",ut,[mt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.manufacturer_id)},null,8,vt)]),(0,a._)("div",_t,[pt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.product_type)},null,8,ht)]),t.node.product_name?.length?((0,a.wg)(),(0,a.iD)("div",wt,[gt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.product_name)},null,8,yt)])):(0,a.kq)("",!0),(0,a._)("div",ft,[kt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.manufacturer_id)},null,8,bt)]),t.node.manufacturer_name?.length?((0,a.wg)(),(0,a.iD)("div",Ct,[xt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.manufacturer_name)},null,8,Rt)])):(0,a.kq)("",!0),(0,a._)("div",zt,[Dt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.capabilities.join(", "))},null,8,Nt)]),(0,a._)("div",qt,[It,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.command_classes.join(", "))},null,8,St)]),(0,a._)("div",jt,[Mt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(Object.values(t.node.groups).map((e=>e.label||"")).join(", "))},null,8,Vt)]),t.node.home_id?((0,a.wg)(),(0,a.iD)("div",Ot,[Zt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.home_id.toString(16))},null,8,At)])):(0,a.kq)("",!0),(0,a._)("div",Ut,[Tt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.is_awake)},null,8,Et)]),null!=t.node.is_locked?((0,a.wg)(),(0,a.iD)("div",$t,[Wt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.is_locked)},null,8,Ft)])):(0,a.kq)("",!0),t.node.last_update?((0,a.wg)(),(0,a.iD)("div",Ht,[Lt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(t.node.last_update))},null,8,Gt)])):(0,a.kq)("",!0),t.node.baud_rate?((0,a.wg)(),(0,a.iD)("div",Kt,[Bt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.baud_rate)},null,8,Yt)])):(0,a.kq)("",!0),t.node.max_baud_rate?((0,a.wg)(),(0,a.iD)("div",Pt,[Jt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.node.max_baud_rate)},null,8,Qt)])):(0,a.kq)("",!0),(0,a._)("div",Xt,[ea,(0,a._)("div",na,[t.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row error",onClick:n[7]||(n[7]=(...e)=>o.removeFailedNode&&o.removeFailedNode(...e))},sa)):(0,a.kq)("",!0),t.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:1,class:"row error",onClick:n[8]||(n[8]=(...e)=>o.replaceFailedNode&&o.replaceFailedNode(...e))},oa)):(0,a.kq)("",!0),(0,a._)("div",{class:"row",onClick:n[9]||(n[9]=(...e)=>o.heal&&o.heal(...e))},ra),(0,a._)("div",{class:"row",onClick:n[10]||(n[10]=(...e)=>o.replicationSend&&o.replicationSend(...e))},va),(0,a._)("div",{class:"row",onClick:n[11]||(n[11]=(...e)=>o.requestNetworkUpdate&&o.requestNetworkUpdate(...e))},ha),(0,a._)("div",{class:"row",onClick:n[12]||(n[12]=(...e)=>o.requestNeighbourUpdate&&o.requestNeighbourUpdate(...e))},ya)])])])):(0,a.kq)("",!0)],2)}var ka={name:"Node",emits:["select"],mixins:[on],props:{node:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1,editMode:{name:!1,location:!1}}},methods:{async removeFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to remove this node?")){this.commandRunning=!0;try{await this.zrequest("remove_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replaceFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to replace this node?")){this.commandRunning=!0;try{await this.zrequest("replace_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replicationSend(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("replication_send",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNetworkUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_network_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNeighbourUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_node_neighbour_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},onEditMode(e){this.editMode[e]=!0;const n=this.$refs[e+"Form"],t=n.querySelector("input[type=text]");setTimeout((()=>{t.focus(),t.select()}),10)},async editName(e){const n=e.target.querySelector("input[name=name]").value;this.commandRunning=!0;try{await this.zrequest("set_node_name",{node_id:this.node.node_id,new_name:n})}finally{this.commandRunning=!1}this.editMode.name=!1},async editLocation(e){const n=e.target.querySelector("input[name=location]").value;this.commandRunning=!0;try{await this.zrequest("set_node_location",{node_id:this.node.node_id,location:n})}finally{this.commandRunning=!1}this.editMode.location=!1},async heal(){if(this.commandRunning)console.log("A command is already running");else{this.commandRunning=!0;try{await this.zrequest("node_heal",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}}}};const ba=(0,cn.Z)(ka,[["render",fa],["__scopeId","data-v-3da196a6"]]);var Ca=ba,xa=t(8453),Ra=t(5771),za=t(9015),Da=t(1232),Na=t(6);const qa=e=>((0,a.dD)("data-v-0021cd76"),e=e(),(0,a.Cn)(),e),Ia={class:"section value"},Sa={class:"header"},ja={class:"title"},Ma=["disabled","data-id-on-network"],Va=qa((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),Oa=[Va],Za={class:"body"},Aa={class:"row"},Ua=qa((()=>(0,a._)("div",{class:"param-name"},"Value",-1))),Ta={class:"param-value"},Ea={key:0,class:"value-view"},$a=["textContent"],Wa=["textContent"],Fa={key:1,class:"value-edit"},Ha={key:0,class:"list"},La=["textContent","selected","value"],Ga={key:1,class:"numeric slider-container"},Ka={class:"col-10"},Ba={class:"row"},Ya=["textContent"],Pa=["textContent"],Ja={class:"row"},Qa={class:"col-2"},Xa=["value"],es={key:2,class:"boolean"},ns={key:3,class:"value-data"},ts=["value"],as=["textContent"],ss=qa((()=>(0,a._)("div",{class:"param-name"},"Remove From Scene",-1))),ls=qa((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),is=[ss,ls],os={key:1,class:"row",style:{cursor:"pointer"}},ds=qa((()=>(0,a._)("div",{class:"param-name"},"Add To Scene",-1))),cs={class:"param-value"},rs={key:2,class:"row"},us=qa((()=>(0,a._)("div",{class:"param-name"},"Help",-1))),ms=["textContent"],vs={class:"row"},_s=qa((()=>(0,a._)("div",{class:"param-name"},"Value ID",-1))),ps=["textContent"],hs={key:3,class:"row"},ws=qa((()=>(0,a._)("div",{class:"param-name"},"ID on Network",-1))),gs=["textContent"],ys={class:"row"},fs=qa((()=>(0,a._)("div",{class:"param-name"},"Command Class",-1))),ks=["textContent"],bs={key:4,class:"row"},Cs=qa((()=>(0,a._)("div",{class:"param-name"},"Last Update",-1))),xs=["textContent"];function Rs(e,n,t,l,i,o){const d=(0,a.up)("Slider"),c=(0,a.up)("ToggleSwitch"),r=(0,a.up)("DropdownItem"),u=(0,a.up)("Dropdown");return(0,a.wg)(),(0,a.iD)("div",Ia,[(0,a._)("div",Sa,[(0,a._)("div",ja,[(0,a._)("button",{class:"btn btn-default btn-value-name-edit",title:"Edit value name",disabled:i.commandRunning,"data-id-on-network":t.value.id_on_network,onClick:n[0]||(n[0]=(...e)=>o.editName&&o.editName(...e))},Oa,8,Ma),(0,a.Uk)(" "+(0,s.zw)(t.value.label),1)])]),(0,a._)("div",Za,[(0,a._)("div",Aa,[Ua,(0,a._)("div",Ta,[t.value.is_read_only?((0,a.wg)(),(0,a.iD)("div",Ea,[(0,a._)("div",{class:"value-data",textContent:(0,s.zw)(t.value.data)},null,8,$a),t.value.units?.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"unit",textContent:(0,s.zw)(t.value.units)},null,8,Wa)):(0,a.kq)("",!0)])):((0,a.wg)(),(0,a.iD)("div",Fa,[(0,a._)("div",{class:(0,s.C_)(["col-"+(t.value.units?.length?"11":"12")])},["List"===t.value.type?((0,a.wg)(),(0,a.iD)("div",Ha,[(0,a._)("label",null,[(0,a._)("select",{onChange:n[1]||(n[1]=(...e)=>o.onValueChange&&o.onValueChange(...e))},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.value.data_items,((e,n)=>((0,a.wg)(),(0,a.iD)("option",{textContent:(0,s.zw)("object"===typeof e?e.text:e),key:n,selected:"object"===typeof e?t.value.data===e.value:t.value.data===e,value:"object"===typeof e?e.value:n},null,8,La)))),128))],32)])])):["Int","Long","Byte","Decimal","Short"].indexOf(t.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",Ga,[(0,a._)("div",Ka,[(0,a._)("div",Ba,[(0,a._)("span",{class:"value-min",textContent:(0,s.zw)(t.value.min)},null,8,Ya),(0,a._)("span",{class:"value-max",textContent:(0,s.zw)(t.value.max)},null,8,Pa)]),(0,a._)("div",Ja,[(0,a._)("label",null,[(0,a.Wm)(d,{range:[t.value.min,t.value.max],value:t.value.data,onChange:o.onValueChange},null,8,["range","value","onChange"])])])]),(0,a._)("div",Qa,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:t.value.data,onChange:n[2]||(n[2]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,Xa)])])])):["Bool","Button"].indexOf(t.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",es,[(0,a.Wm)(c,{value:t.value.data,onInput:n[3]||(n[3]=e=>o.onValueChange(e,!t.value.data))},null,8,["value"])])):((0,a.wg)(),(0,a.iD)("div",ns,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:t.value.data,onChange:n[4]||(n[4]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,ts)])]))],2),t.value.units?.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"col-1 unit",textContent:(0,s.zw)(t.value.units)},null,8,as)):(0,a.kq)("",!0)]))])]),null!=t.sceneId?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row",style:{cursor:"pointer"},onClick:n[5]||(n[5]=n=>e.$emit("remove-from-scene",{valueId:t.value.id_on_network,sceneId:t.sceneId}))},is)):(0,a.kq)("",!0),o.addValueToSceneItems?.length?((0,a.wg)(),(0,a.iD)("div",os,[ds,(0,a._)("div",cs,[(0,a.Wm)(u,{title:"Add to scene","icon-class":"fa fa-plus"},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(o.addValueToSceneItems,((n,s)=>((0,a.wg)(),(0,a.j4)(r,{key:s,text:n.label,disabled:i.commandRunning,onClick:a=>e.$emit("add-to-scene",{sceneId:n.scene_id,valueId:t.value.id_on_network})},null,8,["text","disabled","onClick"])))),128))])),_:1})])])):(0,a.kq)("",!0),t.value.help?.length?((0,a.wg)(),(0,a.iD)("div",rs,[us,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.value.help)},null,8,ms)])):(0,a.kq)("",!0),(0,a._)("div",vs,[_s,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.value.value_id)},null,8,ps)]),t.value.value_id!==t.value.id_on_network?((0,a.wg)(),(0,a.iD)("div",hs,[ws,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.value.id_on_network)},null,8,gs)])):(0,a.kq)("",!0),(0,a._)("div",ys,[fs,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t.value.command_class_name||t.value.command_class)},null,8,ks)]),t.value.last_update?((0,a.wg)(),(0,a.iD)("div",bs,[Cs,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(t.value.last_update))},null,8,xs)])):(0,a.kq)("",!0)])])}var zs=t(8070),Ds={name:"Value",components:{Slider:zs.Z,Dropdown:Ra.Z,DropdownItem:za.Z,ToggleSwitch:Na.Z},mixins:[on],emits:["remove-from-scene","add-to-scene","refresh"],props:{value:{type:Object,required:!0},node:{type:Object,required:!0},selected:{type:Boolean,default:!1},sceneId:{type:Number},scenes:{type:Object,default:()=>({})}},data(){return{commandRunning:!1}},computed:{addValueToSceneItems(){return Object.values(this.scenes||{}).filter((e=>!(this.value.id_on_network in e.values)))}},methods:{async editName(){const e=this.node.values[this.value.id_on_network];let n=prompt("New name",e.label);if(n?.length&&(n=n.trim()),n?.length&&n!==e.label){this.commandRunning=!0;try{await this.zrequest("set_value_label",{id_on_network:e.id_on_network,new_label:n})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully renamed",image:{iconClass:"fa fa-check"}})}},async onValueChange(e,n){const t=e.target?e.target:e.event.target.parentElement,a=this.node.values[this.value.id_on_network];switch(void 0===n&&(n=null!=t.value?t.value:e.value),a.type){case"List":n=a.data_items[e.target.value];break;case"Int":case"Short":case"Long":case"Byte":n=parseInt(n);break;case"Decimal":n=parseFloat(n);break}"object"===typeof n&&(n=n.value),this.commandRunning=!0;try{await this.zrequest("set_value",{id_on_network:a.id_on_network,data:n})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully modified",image:{iconClass:"fa fa-check"}})}}};const Ns=(0,cn.Z)(Ds,[["render",Rs],["__scopeId","data-v-0021cd76"]]);var qs=Ns,Is={name:"Zwave",components:{Value:qs,ToggleSwitch:Na.Z,Loading:Da.Z,DropdownItem:za.Z,Dropdown:Ra.Z,Modal:xa.Z,Group:un,Node:Ca},mixins:[on],data(){return{status:{},views:{},nodes:{},groups:{},scenes:{},commandRunning:!1,values:{switches:{},dimmers:{},sensors:{},battery_levels:{},power_levels:{},bulbs:{},doorlocks:{},usercodes:{},thermostats:{},protections:{}},selected:{view:"nodes",nodeId:void 0,groupId:void 0,sceneId:void 0,valueId:void 0},loading:{status:!1,nodes:!1,groups:!1,scenes:!1}}},computed:{valuesMap(){const e={};for(const n of Object.values(this.nodes))for(const t of Object.values(n.values))e[t.id_on_network]=t;return e}},methods:{async refreshNodes(){this.loading.nodes=!0;try{this.nodes=await this.zrequest("get_nodes")}finally{this.loading.nodes=!1}Object.keys(this.nodes||{}).length&&(this.views.values=!0)},async refreshGroups(){this.loading.groups=!0;try{this.groups=Object.values(await this.zrequest("get_groups")).filter((e=>e.index)).reduce(((e,n)=>{const t=n.group_id||n.index;return e[t]=n,e}),{})}finally{this.loading.groups=!1}Object.keys(this.groups||{}).length&&(this.views.groups=!0)},async refreshScenes(){this.loading.scenes=!0;try{this.scenes=Object.values(await this.zrequest("get_scenes")).filter((e=>e.scene_id)).reduce(((e,n)=>(e[n.scene_id]=n,e)),{})}finally{this.loading.scenes=!1}Object.keys(this.scenes||{}).length&&(this.views.values=!0)},async refreshValues(e){this.loading.values=!0;try{this.values[e]=Object.values(await this.zrequest("get_"+e)).filter((e=>e.id_on_network)).reduce(((e,n)=>(e[n.id_on_network]=!0,e)),{})}finally{this.loading.values=!1}Object.keys(this.values[e]).length&&(this.views[e]=!0)},async refreshStatus(){this.loading.status=!0;try{this.status=await this.zrequest("controller_status")}finally{this.loading.status=!1}},refresh(){this.views={nodes:!0,scenes:!0},this.refreshNodes(),this.refreshGroups(),this.refreshScenes(),this.refreshValues("switches"),this.refreshValues("dimmers"),this.refreshValues("sensors"),this.refreshValues("bulbs"),this.refreshValues("doorlocks"),this.refreshValues("usercodes"),this.refreshValues("thermostats"),this.refreshValues("protections"),this.refreshValues("battery_levels"),this.refreshValues("power_levels"),this.refreshValues("node_config"),this.refreshStatus()},async addScene(){let e=prompt("Scene name");if(e?.length&&(e=e.trim()),e?.length){this.commandRunning=!0;try{await this.zrequest("create_scene",{label:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},async removeScene(e){if(confirm("Are you sure that you want to delete this scene?")){this.commandRunning=!0;try{await this.zrequest("remove_scene",{scene_id:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},onNodeUpdate(e){this.nodes[e.node.node_id]=e.node,e.value&&(this.nodes[e.node.node_id].values[e.value.id_on_network]=e.value)},onNodeClick(e){this.selected.nodeId=e===this.selected.nodeId?void 0:e},networkInfoModalOpen(){this.refreshStatus(),this.$refs.networkInfoModal.show()},onCommandEvent(e){e.error&&e.error.length&&this.notify({text:e.state_description+": "+e.error_description,error:!0})},async addNode(){this.commandRunning=!0;try{await this.zrequest("add_node")}finally{this.commandRunning=!1}await this.refreshNodes()},async addToGroup(e,n){this.commandRunning=!0;try{await this.zrequest("add_node_to_group",{node_id:e,group_index:n})}finally{this.commandRunning=!1}await this.refreshGroups()},async removeNode(){this.commandRunning=!0;try{await this.zrequest("remove_node")}finally{this.commandRunning=!1}await this.refreshNodes()},async removeValueFromScene(e){if(confirm("Are you sure that you want to remove this value from the scene?")){this.commandRunning=!0;try{await this.zrequest("scene_remove_value",{id_on_network:e.valueId,scene_id:e.sceneId})}finally{this.commandRunning=!1}await this.refreshScenes()}},async renameScene(e){const n=this.scenes[e];let t=prompt("New name",n.label);if(t&&(t=t.trim()),t?.length&&t!==n.label){this.commandRunning=!0;try{await this.zrequest("set_scene_label",{new_label:t,scene_id:e})}finally{this.commandRunning=!1}await this.refreshScenes()}},async startNetwork(){this.commandRunning=!0;try{await this.zrequest("start_network")}finally{this.commandRunning=!1}},async stopNetwork(){this.commandRunning=!0;try{await this.zrequest("stop_network")}finally{this.commandRunning=!1}},async switchAll(e){this.commandRunning=!0;try{await this.zrequest("switch_all",{state:e}),this.refresh()}finally{this.commandRunning=!1}},async cancelCommand(){this.commandRunning=!0;try{await this.zrequest("cancel_command")}finally{this.commandRunning=!1}},async killCommand(){this.commandRunning=!0;try{await this.zrequest("kill_command")}finally{this.commandRunning=!1}},async receiveConfiguration(){this.commandRunning=!0;try{await this.zrequest("receive_configuration")}finally{this.commandRunning=!1}this.refresh()},async createNewPrimary(){this.commandRunning=!0;try{await this.zrequest("create_new_primary")}finally{this.commandRunning=!1}this.refresh()},async transferPrimaryRole(){this.commandRunning=!0;try{await this.zrequest("transfer_primary_role")}finally{this.commandRunning=!1}this.refresh()},async healNetwork(){this.commandRunning=!0;try{await this.zrequest("heal")}finally{this.commandRunning=!1}this.refresh()},async softReset(){confirm("Are you sure that you want to do a device soft reset? This won't lose network information")&&await this.zrequest("soft_reset")},async hardReset(){confirm("Are you sure that you want to do a device soft reset? All network information will be LOST!")&&await this.zrequest("hard_reset")},async activateScene(e){this.commandRunning=!0;try{await this.zrequest("activate_scene",{scene_id:e})}finally{this.commandRunning=!1}},async addValueToScene(e){this.commandRunning=!0;try{await this.zrequest("scene_add_value",{id_on_network:e.valueId,scene_id:e.sceneId,data:this.valuesMap[e.valueId].data})}finally{this.commandRunning=!1}this.refresh()}},mounted(){this.refresh(),this.subscribe(this.refreshGroups,"on-zwave-node-group-event","platypush.message.event.zwave.ZwaveNodeGroupEvent"),this.subscribe(this.refreshScenes,"on-zwave-node-scene-event","platypush.message.event.zwave.ZwaveNodeSceneEvent"),this.subscribe(this.refreshNodes,"on-zwave-node-removed-event","platypush.message.event.zwave.ZwaveNodeRemovedEvent"),this.subscribe(this.onCommandEvent,"on-zwave-command-event","platypush.message.event.zwave.ZwaveCommandEvent"),this.subscribe(this.refreshStatus,"on-zwave-network-event","platypush.message.event.zwave.ZwaveNetworkReadyEvent","platypush.message.event.zwave.ZwaveNetworkStoppedEvent","platypush.message.event.zwave.ZwaveNetworkErrorEvent","platypush.message.event.zwave.ZwaveNetworkResetEvent"),this.subscribe(this.onNodeUpdate,"on-zwave-node-update-event","platypush.message.event.zwave.ZwaveNodeEvent","platypush.message.event.zwave.ZwaveNodeAddedEvent","platypush.message.event.zwave.ZwaveNodeRenamedEvent","platypush.message.event.zwave.ZwaveNodeReadyEvent","platypush.message.event.zwave.ZwaveValueAddedEvent","platypush.message.event.zwave.ZwaveValueChangedEvent","platypush.message.event.zwave.ZwaveValueRemovedEvent","platypush.message.event.zwave.ZwaveValueRefreshedEvent")},unmounted(){["on-zwave-node-group-event","on-zwave-node-scene-event","on-zwave-node-removed-event","on-zwave-command-event","on-zwave-network-event","on-zwave-node-update-event"].forEach((e=>this.unsubscribe(e)))}};const Ss=(0,cn.Z)(Is,[["render",qe]]);var js=Ss}}]); +//# sourceMappingURL=5810.92a3694b.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js.map b/platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js.map new file mode 100644 index 000000000..bfb1ead1c --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/5810.92a3694b.js.map @@ -0,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ACzF,yBAA0B,8BAC1BC,SAASC,GAAc1M,KAAK2M,YAAYD,IAC3C,GQjqBH,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASzL,MAEpE,S","sources":["webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Zwave/Zwave.vue","webpack://platypush/./src/components/panels/Zwave/Group.vue","webpack://platypush/./src/components/panels/Zwave/mixin.js","webpack://platypush/./src/components/panels/Zwave/Group.vue?d37f","webpack://platypush/./src/components/panels/Zwave/Node.vue","webpack://platypush/./src/components/panels/Zwave/Node.vue?4a32","webpack://platypush/./src/components/panels/Zwave/Value.vue","webpack://platypush/./src/components/panels/Zwave/Value.vue?c87f","webpack://platypush/./src/components/panels/Zwave/Zwave.vue?dac2"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n methods: {\n async zrequest(method, args) {\n return await this.request(`${this.pluginName}.${method}`, args)\n },\n }\n}\n","import { render } from \"./Group.vue?vue&type=template&id=56458f8e&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=56458f8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56458f8e\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Node.vue?vue&type=template&id=3da196a6&scoped=true\"\nimport script from \"./Node.vue?vue&type=script&lang=js\"\nexport * from \"./Node.vue?vue&type=script&lang=js\"\n\nimport \"./Node.vue?vue&type=style&index=0&id=3da196a6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3da196a6\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Value.vue?vue&type=template&id=0021cd76&scoped=true\"\nimport script from \"./Value.vue?vue&type=script&lang=js\"\nexport * from \"./Value.vue?vue&type=script&lang=js\"\n\nimport \"./Value.vue?vue&type=style&index=0&id=0021cd76&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0021cd76\"]])\n\nexport default __exports__","import { render } from \"./Zwave.vue?vue&type=template&id=c573354c\"\nimport script from \"./Zwave.vue?vue&type=script&lang=js\"\nexport * from \"./Zwave.vue?vue&type=script&lang=js\"\n\nimport \"./Zwave.vue?vue&type=style&index=0&id=c573354c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","withLabel","type","min","range","max","step","disabled","value","onUpdate","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","title","loading","status","state","device","stats","key","selected","groupId","Object","values","nodes","filter","node","addToGroup","node_id","view","$event","views","id","toUpperCase","slice","replace","addScene","text","commandRunning","networkInfoModalOpen","startNetwork","stopNetwork","addNode","removeNode","switchAll","cancelCommand","killCommand","receiveConfiguration","createNewPrimary","transferPrimaryRole","healNetwork","softReset","hardReset","refresh","keys","length","nodeId","pluginName","onNodeClick","groups","group","associations","map","owner","undefined","addNodesToGroupModal","show","scenes","scene","sceneId","label","activateScene","id_on_network","valuesMap","data","removeValueFromScene","removeScene","renameScene","valueId","addValueToScene","refreshNodes","index","max_associations","i","removeFromGroup","mixins","Utils","String","required","async","method","args","request","mixin","confirm","group_id","group_index","zrequest","editMode","editName","onEditMode","location","editLocation","role","neighbours","neighbour","is_ready","is_failed","manufacturer_id","product_type","product_name","manufacturer_name","capabilities","join","command_classes","g","home_id","toString","is_awake","is_locked","last_update","baud_rate","max_baud_rate","removeFailedNode","replaceFailedNode","heal","replicationSend","requestNetworkUpdate","requestNeighbourUpdate","notify","mode","form","input","querySelector","setTimeout","focus","select","new_name","console","log","is_read_only","units","onValueChange","data_items","indexOf","addValueToSceneItems","scene_id","help","value_id","command_class_name","command_class","components","Slider","Dropdown","DropdownItem","ToggleSwitch","computed","prompt","trim","new_label","image","iconClass","parentElement","parseInt","parseFloat","Value","Loading","Modal","Group","Node","switches","dimmers","sensors","battery_levels","power_levels","bulbs","doorlocks","usercodes","thermostats","protections","reduce","item","refreshGroups","refreshScenes","refreshValues","refreshStatus","onNodeUpdate","networkInfoModal","onCommandEvent","error","state_description","error_description","subscribe","unmounted","forEach","eventType","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5810.d365373f.js b/platypush/backend/http/webapp/dist/static/js/5810.d365373f.js deleted file mode 100644 index ff3e0d1a7..000000000 --- a/platypush/backend/http/webapp/dist/static/js/5810.d365373f.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5810],{376:function(e,n,a){a.d(n,{Z:function(){return h}});var t=a(6252),s=a(9963),l=a(3577);const i={class:"slider-wrapper"},o=["min","max","step","disabled","value"],d={class:"track"},c={class:"track-inner",ref:"track"},r={class:"thumb",ref:"thumb"},u=["textContent"];function m(e,n,a,m,v,_){return(0,t.wg)(),(0,t.iD)("label",i,[(0,t._)("input",{class:"slider",type:"range",ref:"range",min:a.range[0],max:a.range[1],step:a.step,disabled:a.disabled,value:a.value,onInput:n[0]||(n[0]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onChange:n[1]||(n[1]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onMouseup:n[2]||(n[2]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onMousedown:n[3]||(n[3]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onTouchstart:n[4]||(n[4]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onTouchend:n[5]||(n[5]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onKeyup:n[6]||(n[6]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onKeydown:n[7]||(n[7]=(0,s.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"]))},null,40,o),(0,t._)("div",d,[(0,t._)("div",c,null,512)]),(0,t._)("div",r,null,512),a.withLabel?((0,t.wg)(),(0,t.iD)("span",{key:0,class:"label",textContent:(0,l.zw)(a.value)},null,8,u)):(0,t.kq)("",!0)])}var v={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const n=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left=`${n}%`,this.$refs.thumb.style.transform=`translate(-${n}%, -50%)`,this.$refs.track.style.width=`${n}%`}},mounted(){null!=this.value&&this.update(this.value)}},_=a(3744);const p=(0,_.Z)(v,[["render",m],["__scopeId","data-v-95edc28a"]]);var h=p},6:function(e,n,a){a.d(n,{Z:function(){return _}});var t=a(6252),s=a(3577),l=a(9963);const i=e=>((0,t.dD)("data-v-a6396ae8"),e=e(),(0,t.Cn)(),e),o=["checked"],d=i((()=>(0,t._)("div",{class:"switch"},[(0,t._)("div",{class:"dot"})],-1))),c={class:"label"};function r(e,n,a,i,r,u){return(0,t.wg)(),(0,t.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:a.disabled}]),onClick:n[0]||(n[0]=(0,l.iM)(((...e)=>u.onInput&&u.onInput(...e)),["stop"]))},[(0,t._)("input",{type:"checkbox",checked:a.value},null,8,o),(0,t._)("label",null,[d,(0,t._)("span",c,[(0,t.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var u={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},m=a(3744);const v=(0,m.Z)(u,[["render",r],["__scopeId","data-v-a6396ae8"]]);var _=v},5810:function(e,n,a){a.d(n,{Z:function(){return js}});var t=a(6252),s=a(3577);const l={class:"zwave-container"},i={class:"network-info"},o={key:1,class:"params"},d={class:"row"},c=(0,t._)("div",{class:"param-name"},"State",-1),r=["textContent"],u={class:"row"},m=(0,t._)("div",{class:"param-name"},"Device",-1),v=["textContent"],_={class:"section"},p=(0,t._)("div",{class:"header"},[(0,t._)("div",{class:"title"},"Statistics")],-1),h={class:"body"},w=["textContent"],g=["textContent"],y={class:"group-add"},f={class:"params"},k={class:"section"},b=(0,t._)("div",{class:"header"},[(0,t._)("div",{class:"title"},"Select nodes to add")],-1),C={key:0,class:"body"},x=["onClick"],R=["textContent"],z={class:"view-options"},D={class:"view-selector col-s-6 col-m-8 col-l-9"},N=["textContent","selected","value"],q={class:"buttons col-s-6 col-m-4 col-l-3"},I=(0,t._)("i",{class:"fa fa-plus"},null,-1),S=[I],j=(0,t._)("i",{class:"fa fa-sync-alt"},null,-1),M=[j],V={class:"view-container"},O={key:0,class:"view nodes"},Z={key:1,class:"no-items"},A=(0,t._)("div",{class:"empty"},"No nodes available on the network",-1),U=[A],T={key:1,class:"view groups"},E={key:1,class:"no-items"},$=(0,t._)("div",{class:"empty"},"No groups available on the network",-1),W=[$],F={key:2,class:"view scenes"},H={key:1,class:"no-items"},G=(0,t._)("div",{class:"empty"},"No scenes configured on the network",-1),K=[G],L=["textContent","onClick"],B={key:0,class:"params"},Y={class:"row"},P=(0,t._)("div",{class:"param-name"},"Scene ID",-1),J=["textContent"],Q={class:"row"},X=(0,t._)("div",{class:"param-name"},"Activate",-1),ee={class:"param-value"},ne={key:0,class:"section values"},ae=(0,t._)("div",{class:"header"},[(0,t._)("div",{class:"title"},"Values")],-1),te={class:"body"},se={class:"param-name"},le={class:"param-value"},ie=["textContent"],oe={class:"buttons"},de=["onClick"],ce=(0,t._)("i",{class:"fa fa-trash"},null,-1),re=[ce],ue={class:"section actions"},me=(0,t._)("div",{class:"header"},[(0,t._)("div",{class:"title"},"Actions")],-1),ve={class:"body"},_e=["onClick"],pe=(0,t._)("div",{class:"param-name"},"Remove Scene",-1),he=(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fa fa-trash"})],-1),we=[pe,he],ge=["onClick"],ye=(0,t._)("div",{class:"param-name"},"Rename Scene",-1),fe=(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fa fa-edit"})],-1),ke=[ye,fe],be={key:3,class:"view values"},Ce={key:1,class:"no-items"},xe=(0,t._)("div",{class:"empty"},"No nodes found on the network",-1),Re=[xe],ze=["textContent","onClick"],De={key:0,class:"params"},Ne={key:0,class:"value-display"};function qe(e,n,a,I,j,A){const $=(0,t.up)("Loading"),G=(0,t.up)("Modal"),ce=(0,t.up)("DropdownItem"),pe=(0,t.up)("Dropdown"),he=(0,t.up)("Node"),ye=(0,t.up)("Group"),fe=(0,t.up)("ToggleSwitch"),xe=(0,t.up)("Value");return(0,t.wg)(),(0,t.iD)("div",l,[(0,t.Wm)(G,{title:"Network info",ref:"networkInfoModal"},{default:(0,t.w5)((()=>[(0,t._)("div",i,[j.loading.status?((0,t.wg)(),(0,t.j4)($,{key:0})):((0,t.wg)(),(0,t.iD)("div",o,[(0,t._)("div",d,[c,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(j.status.state)},null,8,r)]),(0,t._)("div",u,[m,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(j.status.device)},null,8,v)]),(0,t._)("div",_,[p,(0,t._)("div",h,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(j.status.stats,((e,n)=>((0,t.wg)(),(0,t.iD)("div",{class:"row",key:n},[(0,t._)("div",{class:"param-name",textContent:(0,s.zw)(n)},null,8,w),(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(e)},null,8,g)])))),128))])])]))])])),_:1},512),(0,t.Wm)(G,{title:"Add nodes to group",ref:"addNodesToGroupModal"},{default:(0,t.w5)((()=>[(0,t._)("div",y,[(0,t._)("div",f,[(0,t._)("div",k,[b,null!=j.selected.groupId?((0,t.wg)(),(0,t.iD)("div",C,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(Object.values(j.nodes||{}).filter((e=>j.groups[j.selected.groupId].associations.indexOf(e.node_id)<0)),(e=>((0,t.wg)(),(0,t.iD)("div",{class:"row clickable",onClick:n=>A.addToGroup(e.node_id,j.selected.groupId),key:e.node_id},[(0,t._)("div",{class:"param-name",textContent:(0,s.zw)(e.name)},null,8,R)],8,x)))),128))])):(0,t.kq)("",!0)])])])])),_:1},512),(0,t._)("div",z,[(0,t._)("div",D,[(0,t._)("label",null,[(0,t._)("select",{onChange:n[0]||(n[0]=e=>j.selected.view=e.target.value)},[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(j.views,((e,n)=>((0,t.wg)(),(0,t.iD)("option",{key:e,textContent:(0,s.zw)((n[0].toUpperCase()+n.slice(1)).replace("_"," ")),selected:n===j.selected.view,value:n},null,8,N)))),128))],32)])]),(0,t._)("div",q,["scenes"===j.selected.view?((0,t.wg)(),(0,t.iD)("button",{key:0,class:"btn btn-default",title:"Create Scene",onClick:n[1]||(n[1]=(...e)=>A.addScene&&A.addScene(...e))},S)):(0,t.kq)("",!0),(0,t.Wm)(pe,{title:"Network commands","icon-class":"fa fa-cog"},{default:(0,t.w5)((()=>[(0,t.Wm)(ce,{text:"Network Info",disabled:j.commandRunning,onClick:A.networkInfoModalOpen},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Start Network",disabled:j.commandRunning,onClick:A.startNetwork},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Stop Network",disabled:j.commandRunning,onClick:A.stopNetwork},null,8,["disabled","onClick"]),"nodes"===j.selected.view?((0,t.wg)(),(0,t.j4)(ce,{key:0,text:"Add Node",disabled:j.commandRunning,onClick:A.addNode},null,8,["disabled","onClick"])):(0,t.kq)("",!0),"nodes"===j.selected.view?((0,t.wg)(),(0,t.j4)(ce,{key:1,text:"Remove Node",disabled:j.commandRunning,onClick:A.removeNode},null,8,["disabled","onClick"])):(0,t.kq)("",!0),(0,t.Wm)(ce,{text:"Switch All On",disabled:j.commandRunning,onClick:n[2]||(n[2]=e=>A.switchAll(!0))},null,8,["disabled"]),(0,t.Wm)(ce,{text:"Switch All Off",disabled:j.commandRunning,onClick:n[3]||(n[3]=e=>A.switchAll(!1))},null,8,["disabled"]),(0,t.Wm)(ce,{text:"Cancel Command",disabled:j.commandRunning,onClick:A.cancelCommand},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Kill Command",disabled:j.commandRunning,onClick:A.killCommand},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Receive Configuration",disabled:j.commandRunning,onClick:A.receiveConfiguration},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Create New Primary",disabled:j.commandRunning,onClick:A.createNewPrimary},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Transfer Primary Role",disabled:j.commandRunning,onClick:A.transferPrimaryRole},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Heal Network",disabled:j.commandRunning,onClick:A.healNetwork},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Soft Reset",disabled:j.commandRunning,onClick:A.softReset},null,8,["disabled","onClick"]),(0,t.Wm)(ce,{text:"Hard Reset",disabled:j.commandRunning,onClick:A.hardReset},null,8,["disabled","onClick"])])),_:1}),(0,t._)("button",{class:"btn btn-default",title:"Refresh Network",onClick:n[4]||(n[4]=(...e)=>A.refresh&&A.refresh(...e))},M)])]),(0,t._)("div",V,["nodes"===j.selected.view?((0,t.wg)(),(0,t.iD)("div",O,[j.loading.nodes?((0,t.wg)(),(0,t.j4)($,{key:0})):Object.keys(j.nodes||{}).length?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("div",Z,U)),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(j.nodes,((n,a)=>((0,t.wg)(),(0,t.j4)(he,{key:a,node:n,selected:j.selected.nodeId===a,"plugin-name":e.pluginName,onSelect:e=>A.onNodeClick(a)},null,8,["node","selected","plugin-name","onSelect"])))),128))])):"groups"===j.selected.view?((0,t.wg)(),(0,t.iD)("div",T,[j.loading.groups?((0,t.wg)(),(0,t.j4)($,{key:0})):Object.keys(j.groups||{}).length?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("div",E,W)),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(j.groups,((a,s)=>((0,t.wg)(),(0,t.j4)(ye,{key:s,group:a,selected:j.selected.groupId===s,nodes:s in j.groups?j.groups[s].associations.map((e=>j.nodes[e])).reduce(((e,n)=>(e[n.node_id]=n,e)),{}):{},owner:null!=a.node_id?j.nodes[a.node_id]:null,"plugin-name":e.pluginName,onSelect:e=>j.selected.groupId=s===j.selected.groupId?void 0:s,onOpenAddNodesToGroup:n[5]||(n[5]=n=>e.$refs.addNodesToGroupModal.show())},null,8,["group","selected","nodes","owner","plugin-name","onSelect"])))),128))])):"scenes"===j.selected.view?((0,t.wg)(),(0,t.iD)("div",F,[j.loading.scenes?((0,t.wg)(),(0,t.j4)($,{key:0})):Object.keys(j.scenes||{}).length?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("div",H,K)),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(j.scenes,((e,n)=>((0,t.wg)(),(0,t.iD)("div",{class:(0,s.C_)(["item scene",{selected:j.selected.sceneId===n}]),key:n},[(0,t._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:j.selected.sceneId===n}]),textContent:(0,s.zw)(e.label),onClick:e=>j.selected.sceneId=n===j.selected.sceneId?void 0:n},null,10,L),j.selected.sceneId===n?((0,t.wg)(),(0,t.iD)("div",B,[(0,t._)("div",Y,[P,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(n)},null,8,J)]),(0,t._)("div",Q,[X,(0,t._)("div",ee,[(0,t.Wm)(fe,{value:!1,onInput:e=>A.activateScene(n)},null,8,["onInput"])])]),Object.values(e?.values)?.length?((0,t.wg)(),(0,t.iD)("div",ne,[ae,(0,t._)("div",te,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(Object.values(e.values),(e=>((0,t.wg)(),(0,t.iD)("div",{class:"row",key:e.id_on_network},[(0,t._)("div",se,(0,s.zw)(j.nodes[e.node_id].name)+" ⇨ "+(0,s.zw)(A.valuesMap[e.id_on_network].label),1),(0,t._)("div",le,[(0,t._)("span",{textContent:(0,s.zw)(e.data)},null,8,ie),(0,t._)("span",oe,[(0,t._)("button",{class:"btn btn-default",title:"Remove value",onClick:a=>A.removeValueFromScene({sceneId:n,valueId:e.id_on_network})},re,8,de)])])])))),128))])])):(0,t.kq)("",!0),(0,t._)("div",ue,[me,(0,t._)("div",ve,[(0,t._)("div",{class:"row",onClick:e=>A.removeScene(n)},we,8,_e),(0,t._)("div",{class:"row",onClick:e=>A.renameScene(n)},ke,8,ge)])])])):(0,t.kq)("",!0)],2)))),128))])):((0,t.wg)(),(0,t.iD)("div",be,[j.loading.nodes?((0,t.wg)(),(0,t.j4)($,{key:0})):Object.keys(j.nodes||{}).length?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("div",Ce,Re)),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(j.nodes,((n,a)=>((0,t.wg)(),(0,t.iD)("div",{class:"node-container",key:a},["values"===j.selected.view||Object.values(n.values).filter((e=>e.id_on_network in j.values[j.selected.view])).length>0?((0,t.wg)(),(0,t.iD)("div",{key:0,class:(0,s.C_)(["item node",{selected:j.selected.nodeId===a}])},[(0,t._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:j.selected.nodeId===a}]),textContent:(0,s.zw)(n.name),onClick:e=>A.onNodeClick(a)},null,10,ze),j.selected.nodeId===a?((0,t.wg)(),(0,t.iD)("div",De,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(n.values,((a,s)=>((0,t.wg)(),(0,t.iD)("div",{class:"value-container",key:s},[a.id_on_network&&("values"===j.selected.view||a.id_on_network in j.values[j.selected.view])?((0,t.wg)(),(0,t.iD)("div",Ne,[(0,t.Wm)(xe,{value:a,node:n,scenes:j.scenes,onAddToScene:A.addValueToScene,onRemoveFromScene:A.removeValueFromScene,onRefresh:A.refreshNodes,"plugin-name":e.pluginName},null,8,["value","node","scenes","onAddToScene","onRemoveFromScene","onRefresh","plugin-name"])])):(0,t.kq)("",!0)])))),128))])):(0,t.kq)("",!0)],2)):(0,t.kq)("",!0)])))),128))]))])])}const Ie=e=>((0,t.dD)("data-v-56458f8e"),e=e(),(0,t.Cn)(),e),Se=["textContent"],je={key:0,class:"params"},Me={key:0,class:"section owner"},Ve=Ie((()=>(0,t._)("div",{class:"header"},[(0,t._)("div",{class:"title"},"Owner")],-1))),Oe={class:"body"},Ze=["textContent"],Ae={class:"section nodes"},Ue={class:"header"},Te=Ie((()=>(0,t._)("div",{class:"title col-10"},"Nodes",-1))),Ee={class:"buttons col-2"},$e=Ie((()=>(0,t._)("i",{class:"fa fa-plus"},null,-1))),We=[$e],Fe={class:"body"},He=["textContent"],Ge={class:"buttons col-2"},Ke=["disabled","onClick"],Le=Ie((()=>(0,t._)("i",{class:"fa fa-trash"},null,-1))),Be=[Le],Ye={class:"section config"},Pe=Ie((()=>(0,t._)("div",{class:"header"},[(0,t._)("div",{class:"title"},"Parameters")],-1))),Je={class:"body"},Qe={class:"row"},Xe=Ie((()=>(0,t._)("div",{class:"param-name"},"Index",-1))),en=["textContent"],nn={class:"row"},an=Ie((()=>(0,t._)("div",{class:"param-name"},"Max associations",-1))),tn=["textContent"];function sn(e,n,a,l,i,o){return(0,t.wg)(),(0,t.iD)("div",{class:(0,s.C_)(["item group",{selected:a.selected}])},[(0,t._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:a.selected}]),textContent:(0,s.zw)(a.group.label),onClick:n[0]||(n[0]=n=>e.$emit("select",a.group.index))},null,10,Se),a.selected?((0,t.wg)(),(0,t.iD)("div",je,[a.owner&&Object.keys(a.owner).length?((0,t.wg)(),(0,t.iD)("div",Me,[Ve,(0,t._)("div",Oe,[(0,t._)("div",{class:"row",textContent:(0,s.zw)(a.owner.name)},null,8,Ze)])])):(0,t.kq)("",!0),(0,t._)("div",Ae,[(0,t._)("div",Ue,[Te,(0,t._)("div",Ee,[!a.group.max_associations||Object.keys(a.nodes||{}).lengthe.$emit("open-add-nodes-to-group",a.group.index))},We)):(0,t.kq)("",!0)])]),(0,t._)("div",Fe,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.nodes,((e,n)=>((0,t.wg)(),(0,t.iD)("div",{class:"row",key:n},[(0,t._)("div",{class:"col-10",textContent:(0,s.zw)(e.name?.length?e.name:``)},null,8,He),(0,t._)("div",Ge,[(0,t._)("button",{class:"btn btn-default",title:"Remove from group",disabled:i.commandRunning,onClick:n=>o.removeFromGroup(e.node_id)},Be,8,Ke)])])))),128))])]),(0,t._)("div",Ye,[Pe,(0,t._)("div",Je,[(0,t._)("div",Qe,[Xe,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.group.index)},null,8,en)]),(0,t._)("div",nn,[an,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.group.max_associations)},null,8,tn)])])])])):(0,t.kq)("",!0)],2)}var ln=a(6813),on={mixins:[ln.Z],props:{pluginName:{type:String,required:!0}},methods:{async zrequest(e,n){return await this.request(`${this.pluginName}.${e}`,n)}}},dn={name:"Group",emits:["select","open-add-nodes-to-group"],mixins:[on],props:{group:{type:Object,required:!0},owner:{type:Object},nodes:{type:Object,default:()=>({})},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1}},methods:{async removeFromGroup(e){if(!confirm("Are you sure that you want to remove this node from "+this.group.label+"?"))return;this.commandRunning=!0;const n={node_id:e};null!=this.group.group_id?n.group_id=this.group.group_id:n.group_index=this.group.index;try{await this.zrequest("remove_node_from_group",n)}finally{this.commandRunning=!1}}}},cn=a(3744);const rn=(0,cn.Z)(dn,[["render",sn],["__scopeId","data-v-56458f8e"]]);var un=rn,mn=a(9963);const vn=e=>((0,t.dD)("data-v-3da196a6"),e=e(),(0,t.Cn)(),e),_n=["textContent"],pn={key:0,class:"params"},hn={class:"row"},wn=vn((()=>(0,t._)("div",{class:"param-name"},"Name",-1))),gn={class:"param-value"},yn=["value","disabled"],fn={class:"buttons"},kn=vn((()=>(0,t._)("i",{class:"fas fa-times"},null,-1))),bn=[kn],Cn=["disabled"],xn=vn((()=>(0,t._)("i",{class:"fa fa-check"},null,-1))),Rn=[xn],zn=["textContent"],Dn={class:"buttons"},Nn=["disabled"],qn=vn((()=>(0,t._)("i",{class:"fa fa-edit"},null,-1))),In=[qn],Sn={class:"row"},jn=vn((()=>(0,t._)("div",{class:"param-name"},"Location",-1))),Mn={class:"param-value"},Vn=["value","disabled"],On={class:"buttons"},Zn=vn((()=>(0,t._)("i",{class:"fas fa-times"},null,-1))),An=[Zn],Un=["disabled"],Tn=vn((()=>(0,t._)("i",{class:"fa fa-check"},null,-1))),En=[Tn],$n=["textContent"],Wn={class:"buttons"},Fn=["disabled"],Hn=vn((()=>(0,t._)("i",{class:"fa fa-edit"},null,-1))),Gn=[Hn],Kn={class:"row"},Ln=vn((()=>(0,t._)("div",{class:"param-name"},"Type",-1))),Bn=["textContent"],Yn={class:"row"},Pn=vn((()=>(0,t._)("div",{class:"param-name"},"Role",-1))),Jn=["textContent"],Qn={class:"row"},Xn=vn((()=>(0,t._)("div",{class:"param-name"},"Node ID",-1))),ea=["textContent"],na={key:0,class:"row"},aa=vn((()=>(0,t._)("div",{class:"param-name"},"Neighbours",-1))),ta={class:"param-value"},sa=["textContent"],la={class:"row"},ia=vn((()=>(0,t._)("div",{class:"param-name"},"Is Ready",-1))),oa=["textContent"],da={class:"row"},ca=vn((()=>(0,t._)("div",{class:"param-name"},"Is Failed",-1))),ra=["textContent"],ua={class:"row"},ma=vn((()=>(0,t._)("div",{class:"param-name"},"Product ID",-1))),va=["textContent"],_a={class:"row"},pa=vn((()=>(0,t._)("div",{class:"param-name"},"Product Type",-1))),ha=["textContent"],wa={key:1,class:"row"},ga=vn((()=>(0,t._)("div",{class:"param-name"},"Product Name",-1))),ya=["textContent"],fa={class:"row"},ka=vn((()=>(0,t._)("div",{class:"param-name"},"Manufacturer ID",-1))),ba=["textContent"],Ca={key:2,class:"row"},xa=vn((()=>(0,t._)("div",{class:"param-name"},"Manufacturer Name",-1))),Ra=["textContent"],za={class:"row"},Da=vn((()=>(0,t._)("div",{class:"param-name"},"Capabilities",-1))),Na=["textContent"],qa={class:"row"},Ia=vn((()=>(0,t._)("div",{class:"param-name"},"Command Classes",-1))),Sa=["textContent"],ja={class:"row"},Ma=vn((()=>(0,t._)("div",{class:"param-name"},"Groups",-1))),Va=["textContent"],Oa={key:3,class:"row"},Za=vn((()=>(0,t._)("div",{class:"param-name"},"Home ID",-1))),Aa=["textContent"],Ua={class:"row"},Ta=vn((()=>(0,t._)("div",{class:"param-name"},"Is Awake",-1))),Ea=["textContent"],$a={key:4,class:"row"},Wa=vn((()=>(0,t._)("div",{class:"param-name"},"Is Locked",-1))),Fa=["textContent"],Ha={key:5,class:"row"},Ga=vn((()=>(0,t._)("div",{class:"param-name"},"Last Update",-1))),Ka=["textContent"],La={key:6,class:"row"},Ba=vn((()=>(0,t._)("div",{class:"param-name"},"Baud Rate",-1))),Ya=["textContent"],Pa={key:7,class:"row"},Ja=vn((()=>(0,t._)("div",{class:"param-name"},"Max Baud Rate",-1))),Qa=["textContent"],Xa={class:"section actions"},et=vn((()=>(0,t._)("div",{class:"header"},[(0,t._)("div",{class:"title"},"Actions")],-1))),nt={class:"body"},at=vn((()=>(0,t._)("div",{class:"param-name"},"Remove Failed Node",-1))),tt=vn((()=>(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fa fa-trash"})],-1))),st=[at,tt],lt=vn((()=>(0,t._)("div",{class:"param-name"},"Replace Failed Node",-1))),it=vn((()=>(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fa fa-sync-alt"})],-1))),ot=[lt,it],dt=vn((()=>(0,t._)("div",{class:"param-name"},"Heal Node",-1))),ct=vn((()=>(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fas fa-wrench"})],-1))),rt=[dt,ct],ut=vn((()=>(0,t._)("div",{class:"param-name"},"Replicate info to secondary controller",-1))),mt=vn((()=>(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fa fa-clone"})],-1))),vt=[ut,mt],_t=vn((()=>(0,t._)("div",{class:"param-name"},"Request network update",-1))),pt=vn((()=>(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fas fa-wifi"})],-1))),ht=[_t,pt],wt=vn((()=>(0,t._)("div",{class:"param-name"},"Request neighbours update",-1))),gt=vn((()=>(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fas fa-network-wired"})],-1))),yt=[wt,gt];function ft(e,n,a,l,i,o){return(0,t.wg)(),(0,t.iD)("div",{class:(0,s.C_)(["item node",{selected:a.selected}])},[(0,t._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:a.selected}]),textContent:(0,s.zw)(a.node.name&&a.node.name.length?a.node.name:``),onClick:n[0]||(n[0]=n=>e.$emit("select"))},null,10,_n),a.selected?((0,t.wg)(),(0,t.iD)("div",pn,[(0,t._)("div",hn,[wn,(0,t._)("div",gn,[(0,t._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!i.editMode.name}])},[(0,t._)("form",{ref:"nameForm",onSubmit:n[2]||(n[2]=(0,mn.iM)(((...e)=>o.editName&&o.editName(...e)),["prevent"]))},[(0,t._)("label",null,[(0,t._)("input",{type:"text",name:"name",value:a.node.name,disabled:i.commandRunning},null,8,yn)]),(0,t._)("span",fn,[(0,t._)("button",{type:"button",class:"btn btn-default",onClick:n[1]||(n[1]=e=>i.editMode.name=!1)},bn),(0,t._)("button",{type:"submit",class:"btn btn-default",disabled:i.commandRunning},Rn,8,Cn)])],544)],2),(0,t._)("div",{class:(0,s.C_)({hidden:i.editMode.name})},[(0,t._)("span",{textContent:(0,s.zw)(a.node.name?.length?a.node.name:``)},null,8,zn),(0,t._)("span",Dn,[(0,t._)("button",{type:"button",class:"btn btn-default",onClick:n[3]||(n[3]=e=>o.onEditMode("name")),disabled:i.commandRunning},In,8,Nn)])],2)])]),(0,t._)("div",Sn,[jn,(0,t._)("div",Mn,[(0,t._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!i.editMode.location}])},[(0,t._)("form",{ref:"locationForm",onSubmit:n[5]||(n[5]=(0,mn.iM)(((...e)=>o.editLocation&&o.editLocation(...e)),["prevent"]))},[(0,t._)("label",null,[(0,t._)("input",{type:"text",name:"location",value:a.node.location,disabled:i.commandRunning},null,8,Vn)]),(0,t._)("span",On,[(0,t._)("button",{type:"button",class:"btn btn-default",onClick:n[4]||(n[4]=e=>i.editMode.location=!1)},An),(0,t._)("button",{type:"submit",class:"btn btn-default",disabled:i.commandRunning},En,8,Un)])],544)],2),(0,t._)("div",{class:(0,s.C_)({hidden:i.editMode.location})},[(0,t._)("span",{textContent:(0,s.zw)(a.node.location?.length?a.node.location:"")},null,8,$n),(0,t._)("span",Wn,[(0,t._)("button",{type:"button",class:"btn btn-default",onClick:n[6]||(n[6]=e=>o.onEditMode("location")),disabled:i.commandRunning},Gn,8,Fn)])],2)])]),(0,t._)("div",Kn,[Ln,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.type)},null,8,Bn)]),(0,t._)("div",Yn,[Pn,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.role)},null,8,Jn)]),(0,t._)("div",Qn,[Xn,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.node_id)},null,8,ea)]),a.node.neighbours.length?((0,t.wg)(),(0,t.iD)("div",na,[aa,(0,t._)("div",ta,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.node.neighbours,((e,n)=>((0,t.wg)(),(0,t.iD)("div",{class:"row pull-right",key:n,textContent:(0,s.zw)(e)},null,8,sa)))),128))])])):(0,t.kq)("",!0),(0,t._)("div",la,[ia,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.is_ready)},null,8,oa)]),(0,t._)("div",da,[ca,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.is_failed)},null,8,ra)]),(0,t._)("div",ua,[ma,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.manufacturer_id)},null,8,va)]),(0,t._)("div",_a,[pa,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.product_type)},null,8,ha)]),a.node.product_name?.length?((0,t.wg)(),(0,t.iD)("div",wa,[ga,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.product_name)},null,8,ya)])):(0,t.kq)("",!0),(0,t._)("div",fa,[ka,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.manufacturer_id)},null,8,ba)]),a.node.manufacturer_name?.length?((0,t.wg)(),(0,t.iD)("div",Ca,[xa,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.manufacturer_name)},null,8,Ra)])):(0,t.kq)("",!0),(0,t._)("div",za,[Da,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.capabilities.join(", "))},null,8,Na)]),(0,t._)("div",qa,[Ia,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.command_classes.join(", "))},null,8,Sa)]),(0,t._)("div",ja,[Ma,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(Object.values(a.node.groups).map((e=>e.label||"")).join(", "))},null,8,Va)]),a.node.home_id?((0,t.wg)(),(0,t.iD)("div",Oa,[Za,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.home_id.toString(16))},null,8,Aa)])):(0,t.kq)("",!0),(0,t._)("div",Ua,[Ta,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.is_awake)},null,8,Ea)]),null!=a.node.is_locked?((0,t.wg)(),(0,t.iD)("div",$a,[Wa,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.is_locked)},null,8,Fa)])):(0,t.kq)("",!0),a.node.last_update?((0,t.wg)(),(0,t.iD)("div",Ha,[Ga,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(a.node.last_update))},null,8,Ka)])):(0,t.kq)("",!0),a.node.baud_rate?((0,t.wg)(),(0,t.iD)("div",La,[Ba,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.baud_rate)},null,8,Ya)])):(0,t.kq)("",!0),a.node.max_baud_rate?((0,t.wg)(),(0,t.iD)("div",Pa,[Ja,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.node.max_baud_rate)},null,8,Qa)])):(0,t.kq)("",!0),(0,t._)("div",Xa,[et,(0,t._)("div",nt,[a.node.is_failed?((0,t.wg)(),(0,t.iD)("div",{key:0,class:"row error",onClick:n[7]||(n[7]=(...e)=>o.removeFailedNode&&o.removeFailedNode(...e))},st)):(0,t.kq)("",!0),a.node.is_failed?((0,t.wg)(),(0,t.iD)("div",{key:1,class:"row error",onClick:n[8]||(n[8]=(...e)=>o.replaceFailedNode&&o.replaceFailedNode(...e))},ot)):(0,t.kq)("",!0),(0,t._)("div",{class:"row",onClick:n[9]||(n[9]=(...e)=>o.heal&&o.heal(...e))},rt),(0,t._)("div",{class:"row",onClick:n[10]||(n[10]=(...e)=>o.replicationSend&&o.replicationSend(...e))},vt),(0,t._)("div",{class:"row",onClick:n[11]||(n[11]=(...e)=>o.requestNetworkUpdate&&o.requestNetworkUpdate(...e))},ht),(0,t._)("div",{class:"row",onClick:n[12]||(n[12]=(...e)=>o.requestNeighbourUpdate&&o.requestNeighbourUpdate(...e))},yt)])])])):(0,t.kq)("",!0)],2)}var kt={name:"Node",emits:["select"],mixins:[on],props:{node:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1,editMode:{name:!1,location:!1}}},methods:{async removeFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to remove this node?")){this.commandRunning=!0;try{await this.zrequest("remove_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replaceFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to replace this node?")){this.commandRunning=!0;try{await this.zrequest("replace_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replicationSend(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("replication_send",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNetworkUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_network_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNeighbourUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_node_neighbour_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},onEditMode(e){this.editMode[e]=!0;const n=this.$refs[e+"Form"],a=n.querySelector("input[type=text]");setTimeout((()=>{a.focus(),a.select()}),10)},async editName(e){const n=e.target.querySelector("input[name=name]").value;this.commandRunning=!0;try{await this.zrequest("set_node_name",{node_id:this.node.node_id,new_name:n})}finally{this.commandRunning=!1}this.editMode.name=!1},async editLocation(e){const n=e.target.querySelector("input[name=location]").value;this.commandRunning=!0;try{await this.zrequest("set_node_location",{node_id:this.node.node_id,location:n})}finally{this.commandRunning=!1}this.editMode.location=!1},async heal(){if(this.commandRunning)console.log("A command is already running");else{this.commandRunning=!0;try{await this.zrequest("node_heal",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}}}};const bt=(0,cn.Z)(kt,[["render",ft],["__scopeId","data-v-3da196a6"]]);var Ct=bt,xt=a(8453),Rt=a(5771),zt=a(9015),Dt=a(1232),Nt=a(6);const qt=e=>((0,t.dD)("data-v-0021cd76"),e=e(),(0,t.Cn)(),e),It={class:"section value"},St={class:"header"},jt={class:"title"},Mt=["disabled","data-id-on-network"],Vt=qt((()=>(0,t._)("i",{class:"fa fa-edit"},null,-1))),Ot=[Vt],Zt={class:"body"},At={class:"row"},Ut=qt((()=>(0,t._)("div",{class:"param-name"},"Value",-1))),Tt={class:"param-value"},Et={key:0,class:"value-view"},$t=["textContent"],Wt=["textContent"],Ft={key:1,class:"value-edit"},Ht={key:0,class:"list"},Gt=["textContent","selected","value"],Kt={key:1,class:"numeric slider-container"},Lt={class:"col-10"},Bt={class:"row"},Yt=["textContent"],Pt=["textContent"],Jt={class:"row"},Qt={class:"col-2"},Xt=["value"],es={key:2,class:"boolean"},ns={key:3,class:"value-data"},as=["value"],ts=["textContent"],ss=qt((()=>(0,t._)("div",{class:"param-name"},"Remove From Scene",-1))),ls=qt((()=>(0,t._)("div",{class:"param-value"},[(0,t._)("i",{class:"fa fa-trash"})],-1))),is=[ss,ls],os={key:1,class:"row",style:{cursor:"pointer"}},ds=qt((()=>(0,t._)("div",{class:"param-name"},"Add To Scene",-1))),cs={class:"param-value"},rs={key:2,class:"row"},us=qt((()=>(0,t._)("div",{class:"param-name"},"Help",-1))),ms=["textContent"],vs={class:"row"},_s=qt((()=>(0,t._)("div",{class:"param-name"},"Value ID",-1))),ps=["textContent"],hs={key:3,class:"row"},ws=qt((()=>(0,t._)("div",{class:"param-name"},"ID on Network",-1))),gs=["textContent"],ys={class:"row"},fs=qt((()=>(0,t._)("div",{class:"param-name"},"Command Class",-1))),ks=["textContent"],bs={key:4,class:"row"},Cs=qt((()=>(0,t._)("div",{class:"param-name"},"Last Update",-1))),xs=["textContent"];function Rs(e,n,a,l,i,o){const d=(0,t.up)("Slider"),c=(0,t.up)("ToggleSwitch"),r=(0,t.up)("DropdownItem"),u=(0,t.up)("Dropdown");return(0,t.wg)(),(0,t.iD)("div",It,[(0,t._)("div",St,[(0,t._)("div",jt,[(0,t._)("button",{class:"btn btn-default btn-value-name-edit",title:"Edit value name",disabled:i.commandRunning,"data-id-on-network":a.value.id_on_network,onClick:n[0]||(n[0]=(...e)=>o.editName&&o.editName(...e))},Ot,8,Mt),(0,t.Uk)(" "+(0,s.zw)(a.value.label),1)])]),(0,t._)("div",Zt,[(0,t._)("div",At,[Ut,(0,t._)("div",Tt,[a.value.is_read_only?((0,t.wg)(),(0,t.iD)("div",Et,[(0,t._)("div",{class:"value-data",textContent:(0,s.zw)(a.value.data)},null,8,$t),a.value.units?.length?((0,t.wg)(),(0,t.iD)("div",{key:0,class:"unit",textContent:(0,s.zw)(a.value.units)},null,8,Wt)):(0,t.kq)("",!0)])):((0,t.wg)(),(0,t.iD)("div",Ft,[(0,t._)("div",{class:(0,s.C_)(["col-"+(a.value.units?.length?"11":"12")])},["List"===a.value.type?((0,t.wg)(),(0,t.iD)("div",Ht,[(0,t._)("label",null,[(0,t._)("select",{onChange:n[1]||(n[1]=(...e)=>o.onValueChange&&o.onValueChange(...e))},[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.value.data_items,((e,n)=>((0,t.wg)(),(0,t.iD)("option",{textContent:(0,s.zw)("object"===typeof e?e.text:e),key:n,selected:"object"===typeof e?a.value.data===e.value:a.value.data===e,value:"object"===typeof e?e.value:n},null,8,Gt)))),128))],32)])])):["Int","Long","Byte","Decimal","Short"].indexOf(a.value.type)>=0?((0,t.wg)(),(0,t.iD)("div",Kt,[(0,t._)("div",Lt,[(0,t._)("div",Bt,[(0,t._)("span",{class:"value-min",textContent:(0,s.zw)(a.value.min)},null,8,Yt),(0,t._)("span",{class:"value-max",textContent:(0,s.zw)(a.value.max)},null,8,Pt)]),(0,t._)("div",Jt,[(0,t._)("label",null,[(0,t.Wm)(d,{range:[a.value.min,a.value.max],value:a.value.data,onChange:o.onValueChange},null,8,["range","value","onChange"])])])]),(0,t._)("div",Qt,[(0,t._)("label",null,[(0,t._)("input",{type:"text",value:a.value.data,onChange:n[2]||(n[2]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,Xt)])])])):["Bool","Button"].indexOf(a.value.type)>=0?((0,t.wg)(),(0,t.iD)("div",es,[(0,t.Wm)(c,{value:a.value.data,onInput:n[3]||(n[3]=e=>o.onValueChange(e,!a.value.data))},null,8,["value"])])):((0,t.wg)(),(0,t.iD)("div",ns,[(0,t._)("label",null,[(0,t._)("input",{type:"text",value:a.value.data,onChange:n[4]||(n[4]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,as)])]))],2),a.value.units?.length?((0,t.wg)(),(0,t.iD)("div",{key:0,class:"col-1 unit",textContent:(0,s.zw)(a.value.units)},null,8,ts)):(0,t.kq)("",!0)]))])]),null!=a.sceneId?((0,t.wg)(),(0,t.iD)("div",{key:0,class:"row",style:{cursor:"pointer"},onClick:n[5]||(n[5]=n=>e.$emit("remove-from-scene",{valueId:a.value.id_on_network,sceneId:a.sceneId}))},is)):(0,t.kq)("",!0),o.addValueToSceneItems?.length?((0,t.wg)(),(0,t.iD)("div",os,[ds,(0,t._)("div",cs,[(0,t.Wm)(u,{title:"Add to scene","icon-class":"fa fa-plus"},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(o.addValueToSceneItems,((n,s)=>((0,t.wg)(),(0,t.j4)(r,{key:s,text:n.label,disabled:i.commandRunning,onClick:t=>e.$emit("add-to-scene",{sceneId:n.scene_id,valueId:a.value.id_on_network})},null,8,["text","disabled","onClick"])))),128))])),_:1})])])):(0,t.kq)("",!0),a.value.help?.length?((0,t.wg)(),(0,t.iD)("div",rs,[us,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.value.help)},null,8,ms)])):(0,t.kq)("",!0),(0,t._)("div",vs,[_s,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.value.value_id)},null,8,ps)]),a.value.value_id!==a.value.id_on_network?((0,t.wg)(),(0,t.iD)("div",hs,[ws,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.value.id_on_network)},null,8,gs)])):(0,t.kq)("",!0),(0,t._)("div",ys,[fs,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(a.value.command_class_name||a.value.command_class)},null,8,ks)]),a.value.last_update?((0,t.wg)(),(0,t.iD)("div",bs,[Cs,(0,t._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(a.value.last_update))},null,8,xs)])):(0,t.kq)("",!0)])])}var zs=a(376),Ds={name:"Value",components:{Slider:zs.Z,Dropdown:Rt.Z,DropdownItem:zt.Z,ToggleSwitch:Nt.Z},mixins:[on],emits:["remove-from-scene","add-to-scene","refresh"],props:{value:{type:Object,required:!0},node:{type:Object,required:!0},selected:{type:Boolean,default:!1},sceneId:{type:Number},scenes:{type:Object,default:()=>({})}},data(){return{commandRunning:!1}},computed:{addValueToSceneItems(){return Object.values(this.scenes||{}).filter((e=>!(this.value.id_on_network in e.values)))}},methods:{async editName(){const e=this.node.values[this.value.id_on_network];let n=prompt("New name",e.label);if(n?.length&&(n=n.trim()),n?.length&&n!==e.label){this.commandRunning=!0;try{await this.zrequest("set_value_label",{id_on_network:e.id_on_network,new_label:n})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully renamed",image:{iconClass:"fa fa-check"}})}},async onValueChange(e,n){const a=e.target?e.target:e.event.target.parentElement,t=this.node.values[this.value.id_on_network];switch(void 0===n&&(n=null!=a.value?a.value:e.value),t.type){case"List":n=t.data_items[e.target.value];break;case"Int":case"Short":case"Long":case"Byte":n=parseInt(n);break;case"Decimal":n=parseFloat(n);break}"object"===typeof n&&(n=n.value),this.commandRunning=!0;try{await this.zrequest("set_value",{id_on_network:t.id_on_network,data:n})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully modified",image:{iconClass:"fa fa-check"}})}}};const Ns=(0,cn.Z)(Ds,[["render",Rs],["__scopeId","data-v-0021cd76"]]);var qs=Ns,Is={name:"Zwave",components:{Value:qs,ToggleSwitch:Nt.Z,Loading:Dt.Z,DropdownItem:zt.Z,Dropdown:Rt.Z,Modal:xt.Z,Group:un,Node:Ct},mixins:[on],data(){return{status:{},views:{},nodes:{},groups:{},scenes:{},commandRunning:!1,values:{switches:{},dimmers:{},sensors:{},battery_levels:{},power_levels:{},bulbs:{},doorlocks:{},usercodes:{},thermostats:{},protections:{}},selected:{view:"nodes",nodeId:void 0,groupId:void 0,sceneId:void 0,valueId:void 0},loading:{status:!1,nodes:!1,groups:!1,scenes:!1}}},computed:{valuesMap(){const e={};for(const n of Object.values(this.nodes))for(const a of Object.values(n.values))e[a.id_on_network]=a;return e}},methods:{async refreshNodes(){this.loading.nodes=!0;try{this.nodes=await this.zrequest("get_nodes")}finally{this.loading.nodes=!1}Object.keys(this.nodes||{}).length&&(this.views.values=!0)},async refreshGroups(){this.loading.groups=!0;try{this.groups=Object.values(await this.zrequest("get_groups")).filter((e=>e.index)).reduce(((e,n)=>{const a=n.group_id||n.index;return e[a]=n,e}),{})}finally{this.loading.groups=!1}Object.keys(this.groups||{}).length&&(this.views.groups=!0)},async refreshScenes(){this.loading.scenes=!0;try{this.scenes=Object.values(await this.zrequest("get_scenes")).filter((e=>e.scene_id)).reduce(((e,n)=>(e[n.scene_id]=n,e)),{})}finally{this.loading.scenes=!1}Object.keys(this.scenes||{}).length&&(this.views.values=!0)},async refreshValues(e){this.loading.values=!0;try{this.values[e]=Object.values(await this.zrequest("get_"+e)).filter((e=>e.id_on_network)).reduce(((e,n)=>(e[n.id_on_network]=!0,e)),{})}finally{this.loading.values=!1}Object.keys(this.values[e]).length&&(this.views[e]=!0)},async refreshStatus(){this.loading.status=!0;try{this.status=await this.zrequest("controller_status")}finally{this.loading.status=!1}},refresh(){this.views={nodes:!0,scenes:!0},this.refreshNodes(),this.refreshGroups(),this.refreshScenes(),this.refreshValues("switches"),this.refreshValues("dimmers"),this.refreshValues("sensors"),this.refreshValues("bulbs"),this.refreshValues("doorlocks"),this.refreshValues("usercodes"),this.refreshValues("thermostats"),this.refreshValues("protections"),this.refreshValues("battery_levels"),this.refreshValues("power_levels"),this.refreshValues("node_config"),this.refreshStatus()},async addScene(){let e=prompt("Scene name");if(e?.length&&(e=e.trim()),e?.length){this.commandRunning=!0;try{await this.zrequest("create_scene",{label:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},async removeScene(e){if(confirm("Are you sure that you want to delete this scene?")){this.commandRunning=!0;try{await this.zrequest("remove_scene",{scene_id:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},onNodeUpdate(e){this.nodes[e.node.node_id]=e.node,e.value&&(this.nodes[e.node.node_id].values[e.value.id_on_network]=e.value)},onNodeClick(e){this.selected.nodeId=e===this.selected.nodeId?void 0:e},networkInfoModalOpen(){this.refreshStatus(),this.$refs.networkInfoModal.show()},onCommandEvent(e){e.error&&e.error.length&&this.notify({text:e.state_description+": "+e.error_description,error:!0})},async addNode(){this.commandRunning=!0;try{await this.zrequest("add_node")}finally{this.commandRunning=!1}await this.refreshNodes()},async addToGroup(e,n){this.commandRunning=!0;try{await this.zrequest("add_node_to_group",{node_id:e,group_index:n})}finally{this.commandRunning=!1}await this.refreshGroups()},async removeNode(){this.commandRunning=!0;try{await this.zrequest("remove_node")}finally{this.commandRunning=!1}await this.refreshNodes()},async removeValueFromScene(e){if(confirm("Are you sure that you want to remove this value from the scene?")){this.commandRunning=!0;try{await this.zrequest("scene_remove_value",{id_on_network:e.valueId,scene_id:e.sceneId})}finally{this.commandRunning=!1}await this.refreshScenes()}},async renameScene(e){const n=this.scenes[e];let a=prompt("New name",n.label);if(a&&(a=a.trim()),a?.length&&a!==n.label){this.commandRunning=!0;try{await this.zrequest("set_scene_label",{new_label:a,scene_id:e})}finally{this.commandRunning=!1}await this.refreshScenes()}},async startNetwork(){this.commandRunning=!0;try{await this.zrequest("start_network")}finally{this.commandRunning=!1}},async stopNetwork(){this.commandRunning=!0;try{await this.zrequest("stop_network")}finally{this.commandRunning=!1}},async switchAll(e){this.commandRunning=!0;try{await this.zrequest("switch_all",{state:e}),this.refresh()}finally{this.commandRunning=!1}},async cancelCommand(){this.commandRunning=!0;try{await this.zrequest("cancel_command")}finally{this.commandRunning=!1}},async killCommand(){this.commandRunning=!0;try{await this.zrequest("kill_command")}finally{this.commandRunning=!1}},async receiveConfiguration(){this.commandRunning=!0;try{await this.zrequest("receive_configuration")}finally{this.commandRunning=!1}this.refresh()},async createNewPrimary(){this.commandRunning=!0;try{await this.zrequest("create_new_primary")}finally{this.commandRunning=!1}this.refresh()},async transferPrimaryRole(){this.commandRunning=!0;try{await this.zrequest("transfer_primary_role")}finally{this.commandRunning=!1}this.refresh()},async healNetwork(){this.commandRunning=!0;try{await this.zrequest("heal")}finally{this.commandRunning=!1}this.refresh()},async softReset(){confirm("Are you sure that you want to do a device soft reset? This won't lose network information")&&await this.zrequest("soft_reset")},async hardReset(){confirm("Are you sure that you want to do a device soft reset? All network information will be LOST!")&&await this.zrequest("hard_reset")},async activateScene(e){this.commandRunning=!0;try{await this.zrequest("activate_scene",{scene_id:e})}finally{this.commandRunning=!1}},async addValueToScene(e){this.commandRunning=!0;try{await this.zrequest("scene_add_value",{id_on_network:e.valueId,scene_id:e.sceneId,data:this.valuesMap[e.valueId].data})}finally{this.commandRunning=!1}this.refresh()}},mounted(){this.refresh(),this.subscribe(this.refreshGroups,"on-zwave-node-group-event","platypush.message.event.zwave.ZwaveNodeGroupEvent"),this.subscribe(this.refreshScenes,"on-zwave-node-scene-event","platypush.message.event.zwave.ZwaveNodeSceneEvent"),this.subscribe(this.refreshNodes,"on-zwave-node-removed-event","platypush.message.event.zwave.ZwaveNodeRemovedEvent"),this.subscribe(this.onCommandEvent,"on-zwave-command-event","platypush.message.event.zwave.ZwaveCommandEvent"),this.subscribe(this.refreshStatus,"on-zwave-network-event","platypush.message.event.zwave.ZwaveNetworkReadyEvent","platypush.message.event.zwave.ZwaveNetworkStoppedEvent","platypush.message.event.zwave.ZwaveNetworkErrorEvent","platypush.message.event.zwave.ZwaveNetworkResetEvent"),this.subscribe(this.onNodeUpdate,"on-zwave-node-update-event","platypush.message.event.zwave.ZwaveNodeEvent","platypush.message.event.zwave.ZwaveNodeAddedEvent","platypush.message.event.zwave.ZwaveNodeRenamedEvent","platypush.message.event.zwave.ZwaveNodeReadyEvent","platypush.message.event.zwave.ZwaveValueAddedEvent","platypush.message.event.zwave.ZwaveValueChangedEvent","platypush.message.event.zwave.ZwaveValueRemovedEvent","platypush.message.event.zwave.ZwaveValueRefreshedEvent")},unmounted(){["on-zwave-node-group-event","on-zwave-node-scene-event","on-zwave-node-removed-event","on-zwave-command-event","on-zwave-network-event","on-zwave-node-update-event"].forEach((e=>this.unsubscribe(e)))}};const Ss=(0,cn.Z)(Is,[["render",qe]]);var js=Ss}}]); -//# sourceMappingURL=5810.d365373f.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5810.d365373f.js.map b/platypush/backend/http/webapp/dist/static/js/5810.d365373f.js.map deleted file mode 100644 index 1d60a6dd1..000000000 --- a/platypush/backend/http/webapp/dist/static/js/5810.d365373f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/5810.d365373f.js","mappings":"4LACSA,MAAM,kB,6CAYPA,MAAM,S,GACJA,MAAM,cAAcC,IAAI,S,GAE1BD,MAAM,QAAQC,IAAI,S,4DAfxB,QAiBQ,QAjBR,EAiBQ,EAhBN,OASgC,SATzBD,MAAM,SAASE,KAAK,QAAQD,IAAI,QAASE,IAAK,EAAAC,MAAK,GAAMC,IAAK,EAAAD,MAAK,GAClEE,KAAM,EAAAA,KAAOC,SAAU,EAAAA,SAAWC,MAAO,EAAAA,MACzC,QAAK,8BAAO,EAAAC,UAAA,EAAAA,YAAA,IAAQ,WACpB,SAAM,8BAAO,EAAAA,UAAA,EAAAA,YAAA,IAAQ,WACrB,UAAO,8BAAO,EAAAA,UAAA,EAAAA,YAAA,IAAQ,WACtB,YAAS,8BAAO,EAAAA,UAAA,EAAAA,YAAA,IAAQ,WACxB,aAAU,8BAAO,EAAAA,UAAA,EAAAA,YAAA,IAAQ,WACz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OE9E,KAAK0C,gBAAiB,CACxB,CAEA1C,KAAKyD,SACN,GAGH7C,UACEZ,KAAKyD,UAELzD,KAAKoM,UAAUpM,KAAK0L,cAAe,4BAC/B,qDAEJ1L,KAAKoM,UAAUpM,KAAK2L,cAAe,4BAC/B,qDAEJ3L,KAAKoM,UAAUpM,KAAKoF,aAAc,8BAC9B,uDAEJpF,KAAKoM,UAAUpM,KAAKgM,eAAgB,yBAChC,mDAEJhM,KAAKoM,UAAUpM,KAAK6L,cAAe,yBAC/B,uDACA,yDACA,uDACA,wDAEJ7L,KAAKoM,UAAUpM,KAAK8L,aAAc,6BAC9B,+CACA,oDACA,sDACA,oDACA,qDACA,uDACA,uDACA,yDACL,EAEDO,YACE,CACE,4BAA6B,4BAA6B,8BAA+B,yBACzF,yBAA0B,8BAC1BC,SAASC,GAAcvM,KAAKwM,YAAYD,IAC3C,GQjqBH,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASzL,MAEpE,S","sources":["webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Zwave/Zwave.vue","webpack://platypush/./src/components/panels/Zwave/Group.vue","webpack://platypush/./src/components/panels/Zwave/mixin.js","webpack://platypush/./src/components/panels/Zwave/Group.vue?d37f","webpack://platypush/./src/components/panels/Zwave/Node.vue","webpack://platypush/./src/components/panels/Zwave/Node.vue?4a32","webpack://platypush/./src/components/panels/Zwave/Value.vue","webpack://platypush/./src/components/panels/Zwave/Value.vue?c87f","webpack://platypush/./src/components/panels/Zwave/Zwave.vue?dac2"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n methods: {\n async zrequest(method, args) {\n return await this.request(`${this.pluginName}.${method}`, args)\n },\n }\n}\n","import { render } from \"./Group.vue?vue&type=template&id=56458f8e&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=56458f8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56458f8e\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Node.vue?vue&type=template&id=3da196a6&scoped=true\"\nimport script from \"./Node.vue?vue&type=script&lang=js\"\nexport * from \"./Node.vue?vue&type=script&lang=js\"\n\nimport \"./Node.vue?vue&type=style&index=0&id=3da196a6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3da196a6\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Value.vue?vue&type=template&id=0021cd76&scoped=true\"\nimport script from \"./Value.vue?vue&type=script&lang=js\"\nexport * from \"./Value.vue?vue&type=script&lang=js\"\n\nimport \"./Value.vue?vue&type=style&index=0&id=0021cd76&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0021cd76\"]])\n\nexport default __exports__","import { render } from \"./Zwave.vue?vue&type=template&id=c573354c\"\nimport script from \"./Zwave.vue?vue&type=script&lang=js\"\nexport * from \"./Zwave.vue?vue&type=script&lang=js\"\n\nimport \"./Zwave.vue?vue&type=style&index=0&id=c573354c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","type","min","range","max","step","disabled","value","onUpdate","withLabel","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","title","loading","status","state","device","stats","key","selected","groupId","Object","values","nodes","filter","node","addToGroup","node_id","view","$event","views","id","toUpperCase","slice","replace","addScene","text","commandRunning","networkInfoModalOpen","startNetwork","stopNetwork","addNode","removeNode","switchAll","cancelCommand","killCommand","receiveConfiguration","createNewPrimary","transferPrimaryRole","healNetwork","softReset","hardReset","refresh","keys","length","nodeId","pluginName","onNodeClick","groups","group","associations","map","owner","undefined","addNodesToGroupModal","show","scenes","scene","sceneId","label","activateScene","id_on_network","valuesMap","data","removeValueFromScene","removeScene","renameScene","valueId","addValueToScene","refreshNodes","index","max_associations","i","removeFromGroup","mixins","Utils","String","required","async","method","args","request","mixin","confirm","group_id","group_index","zrequest","editMode","editName","onEditMode","location","editLocation","role","neighbours","neighbour","is_ready","is_failed","manufacturer_id","product_type","product_name","manufacturer_name","capabilities","join","command_classes","g","home_id","toString","is_awake","is_locked","last_update","baud_rate","max_baud_rate","removeFailedNode","replaceFailedNode","heal","replicationSend","requestNetworkUpdate","requestNeighbourUpdate","notify","mode","form","input","querySelector","setTimeout","focus","select","new_name","console","log","is_read_only","units","onValueChange","data_items","indexOf","addValueToSceneItems","scene_id","help","value_id","command_class_name","command_class","components","Slider","Dropdown","DropdownItem","ToggleSwitch","computed","prompt","trim","new_label","image","iconClass","parentElement","parseInt","parseFloat","Value","Loading","Modal","Group","Node","switches","dimmers","sensors","battery_levels","power_levels","bulbs","doorlocks","usercodes","thermostats","protections","reduce","item","refreshGroups","refreshScenes","refreshValues","refreshStatus","onNodeUpdate","networkInfoModal","onCommandEvent","error","state_description","error_description","subscribe","unmounted","forEach","eventType","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5824-legacy.a1aaa126.js.map b/platypush/backend/http/webapp/dist/static/js/5824-legacy.a1aaa126.js.map deleted file mode 100644 index ae784864d..000000000 --- a/platypush/backend/http/webapp/dist/static/js/5824-legacy.a1aaa126.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/5824-legacy.a1aaa126.js","mappings":"qGAAA,IAAIA,EAAuB,eACvBC,EAAQ,EAAQ,MAChBC,EAAc,EAAQ,MAEtBC,EAAM,MAIVC,EAAOC,QAAU,SAAUC,GACzB,OAAOL,GAAM,WACX,QAASC,EAAYI,MAChBH,EAAIG,OAAmBH,GACtBH,GAAwBE,EAAYI,GAAaC,OAASD,CAClE,GACF,C,oCCbA,IAAIE,EAAI,EAAQ,MAC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W,EAAA3H,UAAA,WAAf,QAA0B,aAA1B,gBACA,OAAyC,MAAzC,EAAyC,W,yBeI7C,MAAM6G,GAA2B,OAAgB,IAAQ,CAAC,CAAC,SAASnC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./node_modules/core-js/internals/string-trim-forced.js","webpack://platypush/./node_modules/core-js/modules/es.string.trim.js","webpack://platypush/./src/components/widgets/Component/Index.vue","webpack://platypush/./src/components/widgets/Component/components/mixins.js","webpack://platypush/./src/components/widgets/Component/components/Run.vue","webpack://platypush/./src/components/widgets/Component/components/Run.vue?73ce","webpack://platypush/./src/components/widgets/Component/components/Sensor.vue","webpack://platypush/./src/components/widgets/Component/components/Sensor.vue?66dc","webpack://platypush/./src/components/widgets/Component/components/Slider.vue","webpack://platypush/./src/components/widgets/Component/components/Slider.vue?fc3e","webpack://platypush/./src/components/widgets/Component/components/Switch.vue","webpack://platypush/./src/components/widgets/Component/components/Switch.vue?ce7f","webpack://platypush/./src/components/widgets/Component/index.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/widgets/Component/Index.vue?276d"],"sourcesContent":["var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n /**\n * Component name\n */\n name: {\n type: String,\n default: '[Unnamed sensor]',\n },\n\n /**\n * Action (FontAwesome) icon class (default: `fa fa-play`)\n */\n iconClass: {\n type: String,\n },\n\n /**\n * Action icon URL (default: `fa fa-play`)\n */\n iconUrl: {\n type: String,\n },\n\n /**\n * Action icon color override, for FontAwesome icons\n */\n iconColor: {\n type: String,\n },\n\n /**\n * Actions to run upon interaction with the widget. Format:\n *\n * [\n * {\n * \"action\": \"light.hue.toggle\",\n * \"args\": {\n * \"lights\": [\"Bulb 1\", \"Bulb 2\"]\n * }\n * },\n * {\n * \"action\": \"music.mpd.pause\"\n * }\n * ]\n */\n actions: {\n type: Array,\n default: () => { return [] },\n },\n\n /**\n * Map of variables used by this component, in the form\n * variable_name -> variable_value.\n */\n _vars: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Map of handlers, in the form of event_type -> functions.\n * Supported event handler types:\n *\n * - mounted: Function to execute when the component is mounted.\n * - beforeActions: Function to execute before the component action is run.\n * - afterActions: Function to execute after the component action is run.\n * - refresh: Function to be called at startup (if mounted is also specified\n * then refresh will be called after mounted when the component is\n * first mounted) and at regular intervals defined on the\n * interval property (default: 10 seconds).\n * - events: This is a mapping of functions that react to Platypush\n * platform events published on the websocket (e.g. lights or\n * switches toggles, media events etc.). The form is\n * platypush_event_type -> function.\n */\n handlers: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Event bus\n */\n bus: {\n type: Object,\n },\n },\n\n data() {\n return {\n vars: {...(this._vars || {})},\n _interval: undefined,\n refresh: null,\n refreshInterval: null,\n value: null,\n loading: false,\n }\n },\n\n computed: {\n iconStyle() {\n if (!this.iconClass?.length && this.iconColor?.length)\n return\n\n return {'color': this.iconColor}\n },\n\n hasIcon() {\n return this.iconUrl?.length || this.iconClass?.length\n },\n },\n\n methods: {\n async run() {\n if (this.handlers.input)\n return this.handlers.input(this)(this.value)\n\n if (this.handlers.beforeActions)\n await this.handlers.beforeActions(this)\n for (const action of this.actions)\n await this.request_(action)\n if (this.handlers.afterActions) {\n await this.handlers.afterActions(this)\n }\n },\n\n async request_(action) {\n const args = Object.entries(action.args).reduce((args, [key, value]) => {\n if (value.trim) {\n value = value.trim()\n const m = value.match(/^{{\\s*(.*)\\s*}}/)\n if (m) {\n value = eval(`// noinspection JSUnusedLocalSymbols\n (function (self) {\n return ${m[1]}\n })`)(this)\n }\n }\n\n args[key] = value\n return args\n }, {})\n\n await this.request(action.action, args)\n },\n\n async processEvent(event) {\n const hndl = (this.handlers.events || {})[event.type]\n if (hndl)\n await hndl(this)(event)\n },\n },\n\n async mounted() {\n this.$root.bus.on('event', this.processEvent)\n\n if (this.handlers.mounted)\n await this.handlers.mounted(this)\n\n if (this.handlers.refresh) {\n this.refreshInterval = (this.handlers.refresh?.interval || 0) * 1000\n this.refresh = () => {\n this.handlers.refresh.handler(this)\n }\n\n await this.refresh()\n if (this.refreshInterval) {\n const self = this\n const wrapper = () => { return self.refresh() }\n this._interval = setInterval(wrapper, this.refreshInterval)\n }\n }\n },\n\n unmounted() {\n if (this._interval)\n clearInterval(this._interval)\n }\n}\n","\n\n\n\n\n","import { render } from \"./Run.vue?vue&type=template&id=7478b72d&scoped=true\"\nimport script from \"./Run.vue?vue&type=script&lang=js\"\nexport * from \"./Run.vue?vue&type=script&lang=js\"\n\nimport \"./Run.vue?vue&type=style&index=0&id=7478b72d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7478b72d\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Sensor.vue?vue&type=template&id=53594122&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=53594122&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-53594122\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=772cf288&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=772cf288&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-772cf288\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Switch.vue?vue&type=template&id=97d3a936&scoped=true\"\nimport script from \"./Switch.vue?vue&type=script&lang=js\"\nexport * from \"./Switch.vue?vue&type=script&lang=js\"\n\nimport \"./Switch.vue?vue&type=style&index=0&id=97d3a936&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-97d3a936\"]])\n\nexport default __exports__","import Run from './components/Run'\nimport Sensor from \"./components/Sensor\";\nimport Slider from './components/Slider'\nimport Switch from './components/Switch'\n\nexport default {\n Run,\n Sensor,\n Slider,\n Switch,\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=450fcab1&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=450fcab1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-450fcab1\"]])\n\nexport default __exports__"],"names":["PROPER_FUNCTION_NAME","fails","whitespaces","non","module","exports","METHOD_NAME","name","$","$trim","forcedStringTrimMethod","target","proto","forced","trim","this","bus","components","Loading","mixins","props","content","type","String","data","loading","unwatch","methods","_parseActions","element","actionsTags","children","filter","node","tagName","toLowerCase","length","actionTags","map","actionTag","action","attributes","value","args","reduce","obj","arg","undefined","JSON","parse","innerText","e","_parseVars","varsTags","vars","varTag","_parseHandlers","handlers","parseHndlScript","hndlText","app","eval","parseEventHndl","event","hndlTags","mounted","refresh","handler","interval","events","hndlTag","beforeActionsTags","beforeActions","afterActionsTags","afterActions","_parseProps","attr","propagateEvent","emit","_addEventHandler","subscribe","_removeEventHandler","$refs","container","innerHTML","Object","entries","forEach","component","$options","getElementsByTagName","actions","_vars","newEl","document","createElement","setAttribute","parentNode","replaceChild","render","h","mount","removeChild","unmounted","Utils","default","iconClass","iconUrl","iconColor","Array","_interval","refreshInterval","computed","iconStyle","hasIcon","run","input","request_","key","m","match","request","processEvent","hndl","$root","on","self","wrapper","setInterval","clearInterval","class","src","alt","style","__exports__","unit","range","parseFloat","min","max","SliderElement","Slider","Number","required","ToggleSwitch","Run","Sensor","Switch","ref","step","disabled","onUpdate","withLabel","emits","Boolean","update","$emit","percent","thumb","left","transform","track","width","onInput","checked"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5824-legacy.a1aaa126.js b/platypush/backend/http/webapp/dist/static/js/5824-legacy.c9733a88.js similarity index 77% rename from platypush/backend/http/webapp/dist/static/js/5824-legacy.a1aaa126.js rename to platypush/backend/http/webapp/dist/static/js/5824-legacy.c9733a88.js index 4df3b4907..112199631 100644 --- a/platypush/backend/http/webapp/dist/static/js/5824-legacy.a1aaa126.js +++ b/platypush/backend/http/webapp/dist/static/js/5824-legacy.c9733a88.js @@ -1,2 +1,2 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5824],{6091:function(e,_,t){var n=t(6530).PROPER,r=t(7293),a=t(1361),s="​…᠎";e.exports=function(e){return r((function(){return!!a[e]()||s[e]()!==s||n&&a[e].name!==e}))}},3210:function(e,_,t){"use strict";var n=t(2109),r=t(3111).trim,a=t(6091);n({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},3275:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6084),_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9584),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7327),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1539),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1249),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8309),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4747),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9720),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_7__),_Utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6813),_components_Loading__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(1232),_index__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9016),vue__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9963),vue__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(6252),mitt__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9652),bus=(0,mitt__WEBPACK_IMPORTED_MODULE_11__.Z)();__webpack_exports__["Z"]={name:"Elements",components:{Loading:_components_Loading__WEBPACK_IMPORTED_MODULE_9__.Z},mixins:[_Utils__WEBPACK_IMPORTED_MODULE_8__.Z],props:{content:{type:String}},data:function(){return{loading:!1,unwatch:null}},methods:{_parseActions:function(e){var _=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.children).filter((function(e){var _;return"actions"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())})),t=null!==_&&void 0!==_&&_.length?_[0].children:e.children,n=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(t).filter((function(e){var _;return"action"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==n&&void 0!==n&&n.length)return(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(n).map((function(e){return{action:e.attributes.name.value,args:(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.children).reduce((function(e,_){var t=void 0;try{t=JSON.parse(_.innerText)}catch(r){var n;null!==(n=_.innerText)&&void 0!==n&&n.length&&(t=_.innerText)}return e[_.tagName.toLowerCase()]=t,e}),{})}}))},_parseVars:function(e){var _=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.children).filter((function(e){var _;return"vars"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==_&&void 0!==_&&_.length)return(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(_[0].children).reduce((function(e,_){var t=void 0;try{t=JSON.parse(_.innerText)}catch(r){var n;null!==(n=_.innerText)&&void 0!==n&&n.length&&(t=_.innerText)}return e[_.tagName.toLowerCase()]=t,e}),{})},_parseHandlers:function _parseHandlers(element){var handlers={},parseHndlScript=function parseHndlScript(hndlText){return function(app){return eval("// noinspection JSUnusedLocalSymbols\n (async function (self) {\n ".concat(hndlText,"\n })"))(app)}},parseEventHndl=function parseEventHndl(hndlText){return function(app){return function(event){return eval("// noinspection JSUnusedLocalSymbols\n (async function (self, event) {\n ".concat(hndlText,"\n })"))(app,event)}}},hndlTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(element.children).filter((function(e){var _;return"handlers"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==hndlTags&&void 0!==hndlTags&&hndlTags.length){var mounted=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(hndlTags[0].children).filter((function(e){var _;return"mounted"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==mounted&&void 0!==mounted&&mounted.length&&(handlers.mounted=parseHndlScript(mounted[0].innerText));var refresh=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(hndlTags[0].children).filter((function(e){var _;return"refresh"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())})),_refresh$0$attributes;if(null!==refresh&&void 0!==refresh&&refresh.length)handlers.refresh={handler:parseHndlScript(refresh[0].innerText),interval:(null===(_refresh$0$attributes=refresh[0].attributes.interval)||void 0===_refresh$0$attributes?void 0:_refresh$0$attributes.value)||10};var events=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(hndlTags[0].children).filter((function(e){var _;return"event"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==events&&void 0!==events&&events.length&&(handlers.events=events.reduce((function(e,_){return e[_.attributes.type.value]=parseEventHndl(_.innerText),e}),{}))}var actionsTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(element.children).filter((function(e){var _;return"actions"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==actionsTags&&void 0!==actionsTags&&actionsTags.length){var beforeActionsTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(actionsTags[0].children).filter((function(e){var _;return"before"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==beforeActionsTags&&void 0!==beforeActionsTags&&beforeActionsTags.length&&(handlers.beforeActions=parseHndlScript(beforeActionsTags[0].innerText));var afterActionsTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(actionsTags[0].children).filter((function(e){var _;return"after"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==afterActionsTags&&void 0!==afterActionsTags&&afterActionsTags.length&&(handlers.afterActions=parseHndlScript(afterActionsTags[0].innerText))}return handlers},_parseProps:function(e){return(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.attributes).reduce((function(e,_){return e[_.name]=_.value,e}),{})},propagateEvent:function(e){bus.emit("event",e)},_addEventHandler:function(){this.unwatch=this.subscribe((function(e){bus.emit("event",e)}))},_removeEventHandler:function(){this.unwatch&&(this.unwatch(),this.unwatch=null)}},mounted:function(){var e=this;this.loading=!0,this._addEventHandler();try{this.$refs.container.innerHTML=this.content,Object.entries(_index__WEBPACK_IMPORTED_MODULE_10__.Z).forEach((function(_){var t=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__.Z)(_,2),n=t[0],r=t[1];e.$options.components[n]=r,(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.$refs.container.getElementsByTagName(n)).forEach((function(_){var t=e._parseProps(_);t.actions=e._parseActions(_),t.handlers=e._parseHandlers(_),t._vars=e._parseVars(_);var n=document.createElement("div");n.setAttribute("class","component"),n.innerHTML=_.innerHTML,_.parentNode.replaceChild(n,_),(0,vue__WEBPACK_IMPORTED_MODULE_12__.ri)({render:function(){return(0,vue__WEBPACK_IMPORTED_MODULE_13__.h)(r,t)},data:function(){return{bus:bus}}}).mount(n)}))}));for(var _=0,t=["handlers","actions","vars"];_\n
\n \n
\n
\n\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n /**\n * Component name\n */\n name: {\n type: String,\n default: '[Unnamed sensor]',\n },\n\n /**\n * Action (FontAwesome) icon class (default: `fa fa-play`)\n */\n iconClass: {\n type: String,\n },\n\n /**\n * Action icon URL (default: `fa fa-play`)\n */\n iconUrl: {\n type: String,\n },\n\n /**\n * Action icon color override, for FontAwesome icons\n */\n iconColor: {\n type: String,\n },\n\n /**\n * Actions to run upon interaction with the widget. Format:\n *\n * [\n * {\n * \"action\": \"light.hue.toggle\",\n * \"args\": {\n * \"lights\": [\"Bulb 1\", \"Bulb 2\"]\n * }\n * },\n * {\n * \"action\": \"music.mpd.pause\"\n * }\n * ]\n */\n actions: {\n type: Array,\n default: () => { return [] },\n },\n\n /**\n * Map of variables used by this component, in the form\n * variable_name -> variable_value.\n */\n _vars: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Map of handlers, in the form of event_type -> functions.\n * Supported event handler types:\n *\n * - mounted: Function to execute when the component is mounted.\n * - beforeActions: Function to execute before the component action is run.\n * - afterActions: Function to execute after the component action is run.\n * - refresh: Function to be called at startup (if mounted is also specified\n * then refresh will be called after mounted when the component is\n * first mounted) and at regular intervals defined on the\n * interval property (default: 10 seconds).\n * - events: This is a mapping of functions that react to Platypush\n * platform events published on the websocket (e.g. lights or\n * switches toggles, media events etc.). The form is\n * platypush_event_type -> function.\n */\n handlers: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Event bus\n */\n bus: {\n type: Object,\n },\n },\n\n data() {\n return {\n vars: {...(this._vars || {})},\n _interval: undefined,\n refresh: null,\n refreshInterval: null,\n value: null,\n loading: false,\n }\n },\n\n computed: {\n iconStyle() {\n if (!this.iconClass?.length && this.iconColor?.length)\n return\n\n return {'color': this.iconColor}\n },\n\n hasIcon() {\n return this.iconUrl?.length || this.iconClass?.length\n },\n },\n\n methods: {\n async run() {\n if (this.handlers.input)\n return this.handlers.input(this)(this.value)\n\n if (this.handlers.beforeActions)\n await this.handlers.beforeActions(this)\n for (const action of this.actions)\n await this.request_(action)\n if (this.handlers.afterActions) {\n await this.handlers.afterActions(this)\n }\n },\n\n async request_(action) {\n const args = Object.entries(action.args).reduce((args, [key, value]) => {\n if (value.trim) {\n value = value.trim()\n const m = value.match(/^{{\\s*(.*)\\s*}}/)\n if (m) {\n value = eval(`// noinspection JSUnusedLocalSymbols\n (function (self) {\n return ${m[1]}\n })`)(this)\n }\n }\n\n args[key] = value\n return args\n }, {})\n\n await this.request(action.action, args)\n },\n\n async processEvent(event) {\n const hndl = (this.handlers.events || {})[event.type]\n if (hndl)\n await hndl(this)(event)\n },\n },\n\n async mounted() {\n this.$root.bus.on('event', this.processEvent)\n\n if (this.handlers.mounted)\n await this.handlers.mounted(this)\n\n if (this.handlers.refresh) {\n this.refreshInterval = (this.handlers.refresh?.interval || 0) * 1000\n this.refresh = () => {\n this.handlers.refresh.handler(this)\n }\n\n await this.refresh()\n if (this.refreshInterval) {\n const self = this\n const wrapper = () => { return self.refresh() }\n this._interval = setInterval(wrapper, this.refreshInterval)\n }\n }\n },\n\n unmounted() {\n if (this._interval)\n clearInterval(this._interval)\n }\n}\n","\n\n\n\n\n","import { render } from \"./Run.vue?vue&type=template&id=7478b72d&scoped=true\"\nimport script from \"./Run.vue?vue&type=script&lang=js\"\nexport * from \"./Run.vue?vue&type=script&lang=js\"\n\nimport \"./Run.vue?vue&type=style&index=0&id=7478b72d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7478b72d\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Sensor.vue?vue&type=template&id=53594122&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=53594122&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-53594122\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=772cf288&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=772cf288&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-772cf288\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Switch.vue?vue&type=template&id=97d3a936&scoped=true\"\nimport script from \"./Switch.vue?vue&type=script&lang=js\"\nexport * from \"./Switch.vue?vue&type=script&lang=js\"\n\nimport \"./Switch.vue?vue&type=style&index=0&id=97d3a936&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-97d3a936\"]])\n\nexport default __exports__","import Run from './components/Run'\nimport Sensor from \"./components/Sensor\";\nimport Slider from './components/Slider'\nimport Switch from './components/Switch'\n\nexport default {\n Run,\n Sensor,\n Slider,\n Switch,\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=450fcab1&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=450fcab1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-450fcab1\"]])\n\nexport default __exports__"],"names":["PROPER_FUNCTION_NAME","fails","whitespaces","non","module","exports","METHOD_NAME","name","$","$trim","forcedStringTrimMethod","target","proto","forced","trim","this","bus","components","Loading","mixins","props","content","type","String","data","loading","unwatch","methods","_parseActions","element","actionsTags","children","filter","node","tagName","toLowerCase","length","actionTags","map","actionTag","action","attributes","value","args","reduce","obj","arg","undefined","JSON","parse","innerText","e","_parseVars","varsTags","vars","varTag","_parseHandlers","handlers","parseHndlScript","hndlText","app","eval","parseEventHndl","event","hndlTags","mounted","refresh","handler","interval","events","hndlTag","beforeActionsTags","beforeActions","afterActionsTags","afterActions","_parseProps","attr","propagateEvent","emit","_addEventHandler","subscribe","_removeEventHandler","$refs","container","innerHTML","Object","entries","forEach","component","$options","getElementsByTagName","actions","_vars","newEl","document","createElement","setAttribute","parentNode","replaceChild","render","h","mount","removeChild","unmounted","Utils","default","iconClass","iconUrl","iconColor","Array","_interval","refreshInterval","computed","iconStyle","hasIcon","run","input","request_","key","m","match","request","processEvent","hndl","$root","on","self","wrapper","setInterval","clearInterval","class","src","alt","style","__exports__","unit","range","parseFloat","min","max","SliderElement","Slider","Number","required","ToggleSwitch","Run","Sensor","Switch","ref","withLabel","step","disabled","onUpdate","emits","Boolean","update","$emit","sliderWidth","clientWidth","percent","innerWidth","thumb","left","transform","track","width","onInput","checked"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5824.7f51ae20.js b/platypush/backend/http/webapp/dist/static/js/5824.50133e6d.js similarity index 60% rename from platypush/backend/http/webapp/dist/static/js/5824.7f51ae20.js rename to platypush/backend/http/webapp/dist/static/js/5824.50133e6d.js index 0fe53fcaf..f5b84db40 100644 --- a/platypush/backend/http/webapp/dist/static/js/5824.7f51ae20.js +++ b/platypush/backend/http/webapp/dist/static/js/5824.50133e6d.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5824],{3275:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _Utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6813),_components_Loading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1232),_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9016),vue__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9963),vue__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6252),mitt__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9652);const bus=(0,mitt__WEBPACK_IMPORTED_MODULE_3__.Z)();__webpack_exports__["Z"]={name:"Elements",components:{Loading:_components_Loading__WEBPACK_IMPORTED_MODULE_1__.Z},mixins:[_Utils__WEBPACK_IMPORTED_MODULE_0__.Z],props:{content:{type:String}},data(){return{loading:!1,unwatch:null}},methods:{_parseActions(e){const t=[...e.children].filter((e=>"actions"===e.tagName?.toLowerCase())),n=t?.length?t[0].children:e.children,s=[...n].filter((e=>"action"===e.tagName?.toLowerCase()));if(s?.length)return[...s].map((e=>({action:e.attributes.name.value,args:[...e.children].reduce(((e,t)=>{let n;try{n=JSON.parse(t.innerText)}catch(s){t.innerText?.length&&(n=t.innerText)}return e[t.tagName.toLowerCase()]=n,e}),{})})))},_parseVars(e){const t=[...e.children].filter((e=>"vars"===e.tagName?.toLowerCase()));if(t?.length)return[...t[0].children].reduce(((e,t)=>{let n;try{n=JSON.parse(t.innerText)}catch(s){t.innerText?.length&&(n=t.innerText)}return e[t.tagName.toLowerCase()]=n,e}),{})},_parseHandlers(element){const handlers={},parseHndlScript=hndlText=>app=>eval(`// noinspection JSUnusedLocalSymbols\n (async function (self) {\n ${hndlText}\n })`)(app),parseEventHndl=hndlText=>app=>event=>eval(`// noinspection JSUnusedLocalSymbols\n (async function (self, event) {\n ${hndlText}\n })`)(app,event),hndlTags=[...element.children].filter((e=>"handlers"===e.tagName?.toLowerCase()));if(hndlTags?.length){const e=[...hndlTags[0].children].filter((e=>"mounted"===e.tagName?.toLowerCase()));e?.length&&(handlers.mounted=parseHndlScript(e[0].innerText));const t=[...hndlTags[0].children].filter((e=>"refresh"===e.tagName?.toLowerCase()));t?.length&&(handlers.refresh={handler:parseHndlScript(t[0].innerText),interval:t[0].attributes.interval?.value||10});const n=[...hndlTags[0].children].filter((e=>"event"===e.tagName?.toLowerCase()));n?.length&&(handlers.events=n.reduce(((e,t)=>(e[t.attributes.type.value]=parseEventHndl(t.innerText),e)),{}))}const actionsTags=[...element.children].filter((e=>"actions"===e.tagName?.toLowerCase()));if(actionsTags?.length){const e=[...actionsTags[0].children].filter((e=>"before"===e.tagName?.toLowerCase()));e?.length&&(handlers.beforeActions=parseHndlScript(e[0].innerText));const t=[...actionsTags[0].children].filter((e=>"after"===e.tagName?.toLowerCase()));t?.length&&(handlers.afterActions=parseHndlScript(t[0].innerText))}return handlers},_parseProps(e){return[...e.attributes].reduce(((e,t)=>(e[t.name]=t.value,e)),{})},propagateEvent(e){bus.emit("event",e)},_addEventHandler(){this.unwatch=this.subscribe((e=>{bus.emit("event",e)}))},_removeEventHandler(){this.unwatch&&(this.unwatch(),this.unwatch=null)}},mounted(){this.loading=!0,this._addEventHandler();try{this.$refs.container.innerHTML=this.content,Object.entries(_index__WEBPACK_IMPORTED_MODULE_2__.Z).forEach((([e,t])=>{this.$options.components[e]=t,[...this.$refs.container.getElementsByTagName(e)].forEach((e=>{const n=this._parseProps(e);n.actions=this._parseActions(e),n.handlers=this._parseHandlers(e),n._vars=this._parseVars(e);const s=document.createElement("div");s.setAttribute("class","component"),s.innerHTML=e.innerHTML,e.parentNode.replaceChild(s,e),(0,vue__WEBPACK_IMPORTED_MODULE_4__.ri)({render(){return(0,vue__WEBPACK_IMPORTED_MODULE_5__.h)(t,n)},data(){return{bus:bus}}}).mount(s)}))}));for(const e of["handlers","actions","vars"])this.$refs.container.getElementsByTagName(e).forEach((e=>{e.parentNode.removeChild(e)}))}finally{this.loading=!1}},unmounted(){this._removeEventHandler()}}},7105:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _Utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6813);__webpack_exports__["Z"]={mixins:[_Utils__WEBPACK_IMPORTED_MODULE_0__.Z],props:{name:{type:String,default:"[Unnamed sensor]"},iconClass:{type:String},iconUrl:{type:String},iconColor:{type:String},actions:{type:Array,default:()=>[]},_vars:{type:Object,default:()=>({})},handlers:{type:Object,default:()=>({})},bus:{type:Object}},data(){return{vars:{...this._vars||{}},_interval:void 0,refresh:null,refreshInterval:null,value:null,loading:!1}},computed:{iconStyle(){if(this.iconClass?.length||!this.iconColor?.length)return{color:this.iconColor}},hasIcon(){return this.iconUrl?.length||this.iconClass?.length}},methods:{async run(){if(this.handlers.input)return this.handlers.input(this)(this.value);this.handlers.beforeActions&&await this.handlers.beforeActions(this);for(const e of this.actions)await this.request_(e);this.handlers.afterActions&&await this.handlers.afterActions(this)},async request_(action){const args=Object.entries(action.args).reduce(((args,[key,value])=>{if(value.trim){value=value.trim();const m=value.match(/^{{\s*(.*)\s*}}/);m&&(value=eval(`// noinspection JSUnusedLocalSymbols\n (function (self) {\n return ${m[1]}\n })`)(this))}return args[key]=value,args}),{});await this.request(action.action,args)},async processEvent(e){const t=(this.handlers.events||{})[e.type];t&&await t(this)(e)}},async mounted(){if(this.$root.bus.on("event",this.processEvent),this.handlers.mounted&&await this.handlers.mounted(this),this.handlers.refresh&&(this.refreshInterval=1e3*(this.handlers.refresh?.interval||0),this.refresh=()=>{this.handlers.refresh.handler(this)},await this.refresh(),this.refreshInterval)){const e=this,t=()=>e.refresh();this._interval=setInterval(t,this.refreshInterval)}},unmounted(){this._interval&&clearInterval(this._interval)}}},9016:function(e,t,n){n.d(t,{Z:function(){return z}});var s=n(6252),a=n(3577);const r={key:0,class:"col-1 icon-container"},i=["src","alt"],o=["textContent"];function l(e,t,n,l,c,u){return(0,s.wg)(),(0,s.iD)("div",{class:"run component-row",onClick:t[0]||(t[0]=(...t)=>e.run&&e.run(...t))},[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",r,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,i)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-11":e.hasIcon,"col-12":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,o)])}var c=n(7105),u={name:"Run",mixins:[c.Z]},d=n(3744);const _=(0,d.Z)(u,[["render",l],["__scopeId","data-v-7478b72d"]]);var h=_;const p={key:0,class:"col-1 icon-container"},v=["src","alt"],m=["textContent"],g={class:"col-3 value-container"},f={class:"value"},w=["textContent"];function y(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("div",{class:"sensor component-row",onClick:t[0]||(t[0]=(...e)=>o.run&&o.run(...e))},[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",p,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,v)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-8":e.hasIcon,"col-9":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,m),(0,s._)("div",g,[(0,s._)("div",f,[(0,s.Uk)((0,a.zw)(e.value)+" ",1),n.unit?((0,s.wg)(),(0,s.iD)("span",{key:0,textContent:(0,a.zw)(n.unit)},null,8,w)):(0,s.kq)("",!0)])])])}var b={name:"Sensor",mixins:[c.Z],props:{unit:{type:String}},methods:{async run(){if(this.handlers.beforeActions&&await this.handlers.beforeActions(this),this.actions?.length)for(const e of this.actions)await this.request_(e);else await this.refresh();this.handlers.afterActions&&await this.handlers.afterActions(this)}}};const C=(0,d.Z)(b,[["render",y],["__scopeId","data-v-53594122"]]);var E=C;const k={class:"slider-root component-row"},D={key:0,class:"col-1 icon-container"},U=["src","alt"],T=["textContent"],I={class:"col-5 slider-container"},M={class:"slider"};function x(e,t,n,r,i,o){const l=(0,s.up)("SliderElement");return(0,s.wg)(),(0,s.iD)("div",k,[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",D,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,U)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-6":e.hasIcon,"col-7":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,T),(0,s._)("div",I,[(0,s._)("div",M,[(0,s.Wm)(l,{value:e.value,range:[parseFloat(n.min),parseFloat(n.max)],onMouseup:o.run},null,8,["value","range","onMouseup"])])])])}var L=n(376),S={name:"Slider",components:{SliderElement:L.Z},mixins:[c.Z],props:{min:{type:[String,Number],default:0},max:{type:[String,Number],required:!0}},methods:{async run(e){this.value=parseFloat(e.target.value),this.handlers.beforeActions&&await this.handlers.beforeActions(this);for(const t of this.actions)await this.request_(t);this.handlers.afterActions&&await this.handlers.afterActions(this)}}};const O=(0,d.Z)(S,[["render",x],["__scopeId","data-v-772cf288"]]);var A=O,P=n(9963);const Z={key:0,class:"col-1 icon-container"},q=["src","alt"],N=["textContent"],B={class:"col-2 toggle-container"},$={class:"toggle"};function W(e,t,n,r,i,o){const l=(0,s.up)("ToggleSwitch");return(0,s.wg)(),(0,s.iD)("div",{class:"switch component-row",onClick:t[0]||(t[0]=(...t)=>e.run&&e.run(...t))},[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",Z,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,q)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-9":e.hasIcon,"col-10":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,N),(0,s._)("div",B,[(0,s._)("div",$,[(0,s.Wm)(l,{value:e.value,onInput:(0,P.iM)(e.run,["stop"])},null,8,["value","onInput"])])])])}var H=n(6),K={name:"Switch",components:{ToggleSwitch:H.Z},mixins:[c.Z]};const R=(0,d.Z)(K,[["render",W],["__scopeId","data-v-97d3a936"]]);var j=R,z={Run:h,Sensor:E,Slider:A,Switch:j}},376:function(e,t,n){n.d(t,{Z:function(){return m}});var s=n(6252),a=n(9963),r=n(3577);const i={class:"slider-wrapper"},o=["min","max","step","disabled","value"],l={class:"track"},c={class:"track-inner",ref:"track"},u={class:"thumb",ref:"thumb"},d=["textContent"];function _(e,t,n,_,h,p){return(0,s.wg)(),(0,s.iD)("label",i,[(0,s._)("input",{class:"slider",type:"range",ref:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,onInput:t[0]||(t[0]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,a.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"]))},null,40,o),(0,s._)("div",l,[(0,s._)("div",c,null,512)]),(0,s._)("div",u,null,512),n.withLabel?((0,s.wg)(),(0,s.iD)("span",{key:0,class:"label",textContent:(0,r.zw)(n.value)},null,8,d)):(0,s.kq)("",!0)])}var h={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left=`${t}%`,this.$refs.thumb.style.transform=`translate(-${t}%, -50%)`,this.$refs.track.style.width=`${t}%`}},mounted(){null!=this.value&&this.update(this.value)}},p=n(3744);const v=(0,p.Z)(h,[["render",_],["__scopeId","data-v-95edc28a"]]);var m=v},6:function(e,t,n){n.d(t,{Z:function(){return p}});var s=n(6252),a=n(3577),r=n(9963);const i=e=>((0,s.dD)("data-v-a6396ae8"),e=e(),(0,s.Cn)(),e),o=["checked"],l=i((()=>(0,s._)("div",{class:"switch"},[(0,s._)("div",{class:"dot"})],-1))),c={class:"label"};function u(e,t,n,i,u,d){return(0,s.wg)(),(0,s.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,r.iM)(((...e)=>d.onInput&&d.onInput(...e)),["stop"]))},[(0,s._)("input",{type:"checkbox",checked:n.value},null,8,o),(0,s._)("label",null,[l,(0,s._)("span",c,[(0,s.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},_=n(3744);const h=(0,_.Z)(d,[["render",u],["__scopeId","data-v-a6396ae8"]]);var p=h},5824:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var s=n(6252);const a={class:"component-widget"},r={class:"container",ref:"container"};function i(e,t,n,i,o,l){const c=(0,s.up)("Loading");return(0,s.wg)(),(0,s.iD)("div",a,[o.loading?((0,s.wg)(),(0,s.j4)(c,{key:0})):(0,s.kq)("",!0),(0,s._)("div",r,null,512)])}var o=n(3275),l=n(3744);const c=(0,l.Z)(o.Z,[["render",i],["__scopeId","data-v-450fcab1"]]);var u=c}}]); -//# sourceMappingURL=5824.7f51ae20.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5824],{3275:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _Utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6813),_components_Loading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1232),_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9016),vue__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9963),vue__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6252),mitt__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9652);const bus=(0,mitt__WEBPACK_IMPORTED_MODULE_3__.Z)();__webpack_exports__["Z"]={name:"Elements",components:{Loading:_components_Loading__WEBPACK_IMPORTED_MODULE_1__.Z},mixins:[_Utils__WEBPACK_IMPORTED_MODULE_0__.Z],props:{content:{type:String}},data(){return{loading:!1,unwatch:null}},methods:{_parseActions(e){const t=[...e.children].filter((e=>"actions"===e.tagName?.toLowerCase())),n=t?.length?t[0].children:e.children,s=[...n].filter((e=>"action"===e.tagName?.toLowerCase()));if(s?.length)return[...s].map((e=>({action:e.attributes.name.value,args:[...e.children].reduce(((e,t)=>{let n;try{n=JSON.parse(t.innerText)}catch(s){t.innerText?.length&&(n=t.innerText)}return e[t.tagName.toLowerCase()]=n,e}),{})})))},_parseVars(e){const t=[...e.children].filter((e=>"vars"===e.tagName?.toLowerCase()));if(t?.length)return[...t[0].children].reduce(((e,t)=>{let n;try{n=JSON.parse(t.innerText)}catch(s){t.innerText?.length&&(n=t.innerText)}return e[t.tagName.toLowerCase()]=n,e}),{})},_parseHandlers(element){const handlers={},parseHndlScript=hndlText=>app=>eval(`// noinspection JSUnusedLocalSymbols\n (async function (self) {\n ${hndlText}\n })`)(app),parseEventHndl=hndlText=>app=>event=>eval(`// noinspection JSUnusedLocalSymbols\n (async function (self, event) {\n ${hndlText}\n })`)(app,event),hndlTags=[...element.children].filter((e=>"handlers"===e.tagName?.toLowerCase()));if(hndlTags?.length){const e=[...hndlTags[0].children].filter((e=>"mounted"===e.tagName?.toLowerCase()));e?.length&&(handlers.mounted=parseHndlScript(e[0].innerText));const t=[...hndlTags[0].children].filter((e=>"refresh"===e.tagName?.toLowerCase()));t?.length&&(handlers.refresh={handler:parseHndlScript(t[0].innerText),interval:t[0].attributes.interval?.value||10});const n=[...hndlTags[0].children].filter((e=>"event"===e.tagName?.toLowerCase()));n?.length&&(handlers.events=n.reduce(((e,t)=>(e[t.attributes.type.value]=parseEventHndl(t.innerText),e)),{}))}const actionsTags=[...element.children].filter((e=>"actions"===e.tagName?.toLowerCase()));if(actionsTags?.length){const e=[...actionsTags[0].children].filter((e=>"before"===e.tagName?.toLowerCase()));e?.length&&(handlers.beforeActions=parseHndlScript(e[0].innerText));const t=[...actionsTags[0].children].filter((e=>"after"===e.tagName?.toLowerCase()));t?.length&&(handlers.afterActions=parseHndlScript(t[0].innerText))}return handlers},_parseProps(e){return[...e.attributes].reduce(((e,t)=>(e[t.name]=t.value,e)),{})},propagateEvent(e){bus.emit("event",e)},_addEventHandler(){this.unwatch=this.subscribe((e=>{bus.emit("event",e)}))},_removeEventHandler(){this.unwatch&&(this.unwatch(),this.unwatch=null)}},mounted(){this.loading=!0,this._addEventHandler();try{this.$refs.container.innerHTML=this.content,Object.entries(_index__WEBPACK_IMPORTED_MODULE_2__.Z).forEach((([e,t])=>{this.$options.components[e]=t,[...this.$refs.container.getElementsByTagName(e)].forEach((e=>{const n=this._parseProps(e);n.actions=this._parseActions(e),n.handlers=this._parseHandlers(e),n._vars=this._parseVars(e);const s=document.createElement("div");s.setAttribute("class","component"),s.innerHTML=e.innerHTML,e.parentNode.replaceChild(s,e),(0,vue__WEBPACK_IMPORTED_MODULE_4__.ri)({render(){return(0,vue__WEBPACK_IMPORTED_MODULE_5__.h)(t,n)},data(){return{bus:bus}}}).mount(s)}))}));for(const e of["handlers","actions","vars"])this.$refs.container.getElementsByTagName(e).forEach((e=>{e.parentNode.removeChild(e)}))}finally{this.loading=!1}},unmounted(){this._removeEventHandler()}}},7105:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _Utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6813);__webpack_exports__["Z"]={mixins:[_Utils__WEBPACK_IMPORTED_MODULE_0__.Z],props:{name:{type:String,default:"[Unnamed sensor]"},iconClass:{type:String},iconUrl:{type:String},iconColor:{type:String},actions:{type:Array,default:()=>[]},_vars:{type:Object,default:()=>({})},handlers:{type:Object,default:()=>({})},bus:{type:Object}},data(){return{vars:{...this._vars||{}},_interval:void 0,refresh:null,refreshInterval:null,value:null,loading:!1}},computed:{iconStyle(){if(this.iconClass?.length||!this.iconColor?.length)return{color:this.iconColor}},hasIcon(){return this.iconUrl?.length||this.iconClass?.length}},methods:{async run(){if(this.handlers.input)return this.handlers.input(this)(this.value);this.handlers.beforeActions&&await this.handlers.beforeActions(this);for(const e of this.actions)await this.request_(e);this.handlers.afterActions&&await this.handlers.afterActions(this)},async request_(action){const args=Object.entries(action.args).reduce(((args,[key,value])=>{if(value.trim){value=value.trim();const m=value.match(/^{{\s*(.*)\s*}}/);m&&(value=eval(`// noinspection JSUnusedLocalSymbols\n (function (self) {\n return ${m[1]}\n })`)(this))}return args[key]=value,args}),{});await this.request(action.action,args)},async processEvent(e){const t=(this.handlers.events||{})[e.type];t&&await t(this)(e)}},async mounted(){if(this.$root.bus.on("event",this.processEvent),this.handlers.mounted&&await this.handlers.mounted(this),this.handlers.refresh&&(this.refreshInterval=1e3*(this.handlers.refresh?.interval||0),this.refresh=()=>{this.handlers.refresh.handler(this)},await this.refresh(),this.refreshInterval)){const e=this,t=()=>e.refresh();this._interval=setInterval(t,this.refreshInterval)}},unmounted(){this._interval&&clearInterval(this._interval)}}},9016:function(e,t,n){n.d(t,{Z:function(){return z}});var s=n(6252),a=n(3577);const r={key:0,class:"col-1 icon-container"},i=["src","alt"],o=["textContent"];function l(e,t,n,l,c,u){return(0,s.wg)(),(0,s.iD)("div",{class:"run component-row",onClick:t[0]||(t[0]=(...t)=>e.run&&e.run(...t))},[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",r,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,i)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-11":e.hasIcon,"col-12":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,o)])}var c=n(7105),u={name:"Run",mixins:[c.Z]},d=n(3744);const h=(0,d.Z)(u,[["render",l],["__scopeId","data-v-7478b72d"]]);var _=h;const p={key:0,class:"col-1 icon-container"},v=["src","alt"],g=["textContent"],m={class:"col-3 value-container"},f={class:"value"},w=["textContent"];function y(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("div",{class:"sensor component-row",onClick:t[0]||(t[0]=(...e)=>o.run&&o.run(...e))},[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",p,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,v)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-8":e.hasIcon,"col-9":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,g),(0,s._)("div",m,[(0,s._)("div",f,[(0,s.Uk)((0,a.zw)(e.value)+" ",1),n.unit?((0,s.wg)(),(0,s.iD)("span",{key:0,textContent:(0,a.zw)(n.unit)},null,8,w)):(0,s.kq)("",!0)])])])}var b={name:"Sensor",mixins:[c.Z],props:{unit:{type:String}},methods:{async run(){if(this.handlers.beforeActions&&await this.handlers.beforeActions(this),this.actions?.length)for(const e of this.actions)await this.request_(e);else await this.refresh();this.handlers.afterActions&&await this.handlers.afterActions(this)}}};const C=(0,d.Z)(b,[["render",y],["__scopeId","data-v-53594122"]]);var E=C;const k={class:"slider-root component-row"},D={key:0,class:"col-1 icon-container"},U=["src","alt"],T=["textContent"],I={class:"col-5 slider-container"},x={class:"slider"};function M(e,t,n,r,i,o){const l=(0,s.up)("SliderElement");return(0,s.wg)(),(0,s.iD)("div",k,[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",D,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,U)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-6":e.hasIcon,"col-7":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,T),(0,s._)("div",I,[(0,s._)("div",x,[(0,s.Wm)(l,{value:e.value,range:[parseFloat(n.min),parseFloat(n.max)],onMouseup:o.run},null,8,["value","range","onMouseup"])])])])}var L=n(8070),S={name:"Slider",components:{SliderElement:L.Z},mixins:[c.Z],props:{min:{type:[String,Number],default:0},max:{type:[String,Number],required:!0}},methods:{async run(e){this.value=parseFloat(e.target.value),this.handlers.beforeActions&&await this.handlers.beforeActions(this);for(const t of this.actions)await this.request_(t);this.handlers.afterActions&&await this.handlers.afterActions(this)}}};const O=(0,d.Z)(S,[["render",M],["__scopeId","data-v-772cf288"]]);var A=O,P=n(9963);const Z={key:0,class:"col-1 icon-container"},q=["src","alt"],N=["textContent"],B={class:"col-2 toggle-container"},W={class:"toggle"};function $(e,t,n,r,i,o){const l=(0,s.up)("ToggleSwitch");return(0,s.wg)(),(0,s.iD)("div",{class:"switch component-row",onClick:t[0]||(t[0]=(...t)=>e.run&&e.run(...t))},[e.hasIcon?((0,s.wg)(),(0,s.iD)("div",Z,[e.iconUrl?.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:e.iconUrl,alt:e.name},null,8,q)):((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,a.C_)(["icon",e.iconClass]),style:(0,a.j5)(e.iconStyle)},null,6))])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,a.C_)({"col-9":e.hasIcon,"col-10":!e.hasIcon}),textContent:(0,a.zw)(e.name)},null,10,N),(0,s._)("div",B,[(0,s._)("div",W,[(0,s.Wm)(l,{value:e.value,onInput:(0,P.iM)(e.run,["stop"])},null,8,["value","onInput"])])])])}var H=n(6),K={name:"Switch",components:{ToggleSwitch:H.Z},mixins:[c.Z]};const R=(0,d.Z)(K,[["render",$],["__scopeId","data-v-97d3a936"]]);var j=R,z={Run:_,Sensor:E,Slider:A,Switch:j}},8070:function(e,t,n){n.d(t,{Z:function(){return v}});var s=n(6252),a=n(3577),r=n(9963);const i={class:"slider-wrapper"},o=["min","max","step","disabled","value"],l={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},u=["textContent"];function d(e,t,n,d,h,_){return(0,s.wg)(),(0,s.iD)("label",i,[(0,s._)("input",{class:(0,a.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:t[0]||(t[0]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,r.iM)(((...e)=>_.onUpdate&&_.onUpdate(...e)),["stop"]))},null,42,o),(0,s._)("div",{class:(0,a.C_)(["track",{"with-label":n.withLabel}])},[(0,s._)("div",l,null,512)],2),(0,s._)("div",c,null,512),n.withLabel?((0,s.wg)(),(0,s.iD)("span",{key:0,class:"label",textContent:(0,a.zw)(n.value),ref:"label"},null,8,u)):(0,s.kq)("",!0)])}var h={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,n=(e-this.range[0])/(this.range[1]-this.range[0]),s=n*t,a=this.$refs.thumb;a.style.left=s-a.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${n}%, -50%)`,this.$refs.track.style.width=`${s}px`}},mounted(){null!=this.value&&this.update(this.value)}},_=n(3744);const p=(0,_.Z)(h,[["render",d],["__scopeId","data-v-0359812c"]]);var v=p},6:function(e,t,n){n.d(t,{Z:function(){return p}});var s=n(6252),a=n(3577),r=n(9963);const i=e=>((0,s.dD)("data-v-a6396ae8"),e=e(),(0,s.Cn)(),e),o=["checked"],l=i((()=>(0,s._)("div",{class:"switch"},[(0,s._)("div",{class:"dot"})],-1))),c={class:"label"};function u(e,t,n,i,u,d){return(0,s.wg)(),(0,s.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,r.iM)(((...e)=>d.onInput&&d.onInput(...e)),["stop"]))},[(0,s._)("input",{type:"checkbox",checked:n.value},null,8,o),(0,s._)("label",null,[l,(0,s._)("span",c,[(0,s.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},h=n(3744);const _=(0,h.Z)(d,[["render",u],["__scopeId","data-v-a6396ae8"]]);var p=_},5824:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var s=n(6252);const a={class:"component-widget"},r={class:"container",ref:"container"};function i(e,t,n,i,o,l){const c=(0,s.up)("Loading");return(0,s.wg)(),(0,s.iD)("div",a,[o.loading?((0,s.wg)(),(0,s.j4)(c,{key:0})):(0,s.kq)("",!0),(0,s._)("div",r,null,512)])}var o=n(3275),l=n(3744);const c=(0,l.Z)(o.Z,[["render",i],["__scopeId","data-v-450fcab1"]]);var u=c}}]); +//# sourceMappingURL=5824.50133e6d.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5824.50133e6d.js.map b/platypush/backend/http/webapp/dist/static/js/5824.50133e6d.js.map new file mode 100644 index 000000000..835c93397 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/5824.50133e6d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5824.50133e6d.js","mappings":"yiBAcA,MAAMA,KAAM,yCAEZ,0BACEC,KAAM,WACNC,WAAY,CAACC,QAAO,oDACpBC,OAAQ,CAAC,uCACTC,MAAO,CACLC,QAAS,CACPC,KAAMC,SAIVC,OACE,MAAO,CACLC,SAAS,EACTC,QAAS,KAEZ,EAEDC,QAAS,CACPC,cAAcC,GACZ,MAAMC,EAAc,IAAID,EAAQE,UAAUC,QAAQC,GAAyC,YAAhCA,EAAKC,SAASC,gBACnEJ,EAAWD,GAAaM,OAASN,EAAY,GAAGC,SAAWF,EAAQE,SACnEM,EAAa,IAAIN,GAAUC,QAAQC,GAAyC,WAAhCA,EAAKC,SAASC,gBAEhE,GAAKE,GAAYD,OAGjB,MAAO,IAAIC,GACNC,KAAKC,IACG,CACLC,OAAQD,EAAUE,WAAWzB,KAAK0B,MAClCC,KAAM,IAAIJ,EAAUR,UAAUa,QAAO,CAACC,EAAKC,KACzC,IAAIJ,EACJ,IACEA,EAAQK,KAAKC,MAAMF,EAAIG,UAIzB,CAHE,MAAOC,GACHJ,EAAIG,WAAWb,SACjBM,EAAQI,EAAIG,UAChB,CAGA,OADAJ,EAAIC,EAAIZ,QAAQC,eAAiBO,EAC1BG,CAAP,GACC,CAAC,MAGb,EAEDM,WAAWtB,GACT,MAAMuB,EAAW,IAAIvB,EAAQE,UAAUC,QAAQC,GAAyC,SAAhCA,EAAKC,SAASC,gBACtE,GAAKiB,GAAUhB,OAGf,MAAO,IAAIgB,EA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ACA,OAAyC,MAAzC,EAAyC,W,yBeI7C,MAAMgH,GAA2B,OAAgB,IAAQ,CAAC,CAAC,SAAStC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Component/Index.vue","webpack://platypush/./src/components/widgets/Component/components/mixins.js","webpack://platypush/./src/components/widgets/Component/components/Run.vue","webpack://platypush/./src/components/widgets/Component/components/Run.vue?73ce","webpack://platypush/./src/components/widgets/Component/components/Sensor.vue","webpack://platypush/./src/components/widgets/Component/components/Sensor.vue?66dc","webpack://platypush/./src/components/widgets/Component/components/Slider.vue","webpack://platypush/./src/components/widgets/Component/components/Slider.vue?fc3e","webpack://platypush/./src/components/widgets/Component/components/Switch.vue","webpack://platypush/./src/components/widgets/Component/components/Switch.vue?ce7f","webpack://platypush/./src/components/widgets/Component/index.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/widgets/Component/Index.vue?276d"],"sourcesContent":["\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n /**\n * Component name\n */\n name: {\n type: String,\n default: '[Unnamed sensor]',\n },\n\n /**\n * Action (FontAwesome) icon class (default: `fa fa-play`)\n */\n iconClass: {\n type: String,\n },\n\n /**\n * Action icon URL (default: `fa fa-play`)\n */\n iconUrl: {\n type: String,\n },\n\n /**\n * Action icon color override, for FontAwesome icons\n */\n iconColor: {\n type: String,\n },\n\n /**\n * Actions to run upon interaction with the widget. Format:\n *\n * [\n * {\n * \"action\": \"light.hue.toggle\",\n * \"args\": {\n * \"lights\": [\"Bulb 1\", \"Bulb 2\"]\n * }\n * },\n * {\n * \"action\": \"music.mpd.pause\"\n * }\n * ]\n */\n actions: {\n type: Array,\n default: () => { return [] },\n },\n\n /**\n * Map of variables used by this component, in the form\n * variable_name -> variable_value.\n */\n _vars: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Map of handlers, in the form of event_type -> functions.\n * Supported event handler types:\n *\n * - mounted: Function to execute when the component is mounted.\n * - beforeActions: Function to execute before the component action is run.\n * - afterActions: Function to execute after the component action is run.\n * - refresh: Function to be called at startup (if mounted is also specified\n * then refresh will be called after mounted when the component is\n * first mounted) and at regular intervals defined on the\n * interval property (default: 10 seconds).\n * - events: This is a mapping of functions that react to Platypush\n * platform events published on the websocket (e.g. lights or\n * switches toggles, media events etc.). The form is\n * platypush_event_type -> function.\n */\n handlers: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Event bus\n */\n bus: {\n type: Object,\n },\n },\n\n data() {\n return {\n vars: {...(this._vars || {})},\n _interval: undefined,\n refresh: null,\n refreshInterval: null,\n value: null,\n loading: false,\n }\n },\n\n computed: {\n iconStyle() {\n if (!this.iconClass?.length && this.iconColor?.length)\n return\n\n return {'color': this.iconColor}\n },\n\n hasIcon() {\n return this.iconUrl?.length || this.iconClass?.length\n },\n },\n\n methods: {\n async run() {\n if (this.handlers.input)\n return this.handlers.input(this)(this.value)\n\n if (this.handlers.beforeActions)\n await this.handlers.beforeActions(this)\n for (const action of this.actions)\n await this.request_(action)\n if (this.handlers.afterActions) {\n await this.handlers.afterActions(this)\n }\n },\n\n async request_(action) {\n const args = Object.entries(action.args).reduce((args, [key, value]) => {\n if (value.trim) {\n value = value.trim()\n const m = value.match(/^{{\\s*(.*)\\s*}}/)\n if (m) {\n value = eval(`// noinspection JSUnusedLocalSymbols\n (function (self) {\n return ${m[1]}\n })`)(this)\n }\n }\n\n args[key] = value\n return args\n }, {})\n\n await this.request(action.action, args)\n },\n\n async processEvent(event) {\n const hndl = (this.handlers.events || {})[event.type]\n if (hndl)\n await hndl(this)(event)\n },\n },\n\n async mounted() {\n this.$root.bus.on('event', this.processEvent)\n\n if (this.handlers.mounted)\n await this.handlers.mounted(this)\n\n if (this.handlers.refresh) {\n this.refreshInterval = (this.handlers.refresh?.interval || 0) * 1000\n this.refresh = () => {\n this.handlers.refresh.handler(this)\n }\n\n await this.refresh()\n if (this.refreshInterval) {\n const self = this\n const wrapper = () => { return self.refresh() }\n this._interval = setInterval(wrapper, this.refreshInterval)\n }\n }\n },\n\n unmounted() {\n if (this._interval)\n clearInterval(this._interval)\n }\n}\n","\n\n\n\n\n","import { render } from \"./Run.vue?vue&type=template&id=7478b72d&scoped=true\"\nimport script from \"./Run.vue?vue&type=script&lang=js\"\nexport * from \"./Run.vue?vue&type=script&lang=js\"\n\nimport \"./Run.vue?vue&type=style&index=0&id=7478b72d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7478b72d\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Sensor.vue?vue&type=template&id=53594122&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=53594122&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-53594122\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=772cf288&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=772cf288&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-772cf288\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Switch.vue?vue&type=template&id=97d3a936&scoped=true\"\nimport script from \"./Switch.vue?vue&type=script&lang=js\"\nexport * from \"./Switch.vue?vue&type=script&lang=js\"\n\nimport \"./Switch.vue?vue&type=style&index=0&id=97d3a936&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-97d3a936\"]])\n\nexport default __exports__","import Run from './components/Run'\nimport Sensor from \"./components/Sensor\";\nimport Slider from './components/Slider'\nimport Switch from './components/Switch'\n\nexport default {\n Run,\n Sensor,\n Slider,\n Switch,\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=450fcab1&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=450fcab1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-450fcab1\"]])\n\nexport default __exports__"],"names":["bus","name","components","Loading","mixins","props","content","type","String","data","loading","unwatch","methods","_parseActions","element","actionsTags","children","filter","node","tagName","toLowerCase","length","actionTags","map","actionTag","action","attributes","value","args","reduce","obj","arg","JSON","parse","innerText","e","_parseVars","varsTags","vars","varTag","_parseHandlers","handlers","parseHndlScript","hndlText","app","eval","parseEventHndl","event","hndlTags","mounted","refresh","handler","interval","events","hndlTag","beforeActionsTags","beforeActions","afterActionsTags","afterActions","_parseProps","attr","propagateEvent","emit","_addEventHandler","this","subscribe","_removeEventHandler","$refs","container","innerHTML","Object","entries","forEach","component","$options","getElementsByTagName","actions","_vars","newEl","document","createElement","setAttribute","parentNode","replaceChild","render","h","mount","removeChild","unmounted","Utils","default","iconClass","iconUrl","iconColor","Array","_interval","undefined","refreshInterval","computed","iconStyle","hasIcon","async","input","request_","key","trim","m","match","request","hndl","$root","on","processEvent","self","wrapper","setInterval","clearInterval","class","run","src","alt","style","__exports__","unit","range","parseFloat","min","max","SliderElement","Number","required","target","ToggleSwitch","Run","Sensor","Slider","Switch","ref","withLabel","step","disabled","onUpdate","emits","Boolean","update","$emit","sliderWidth","clientWidth","percent","innerWidth","thumb","left","transform","track","width","onInput","checked"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/5824.7f51ae20.js.map b/platypush/backend/http/webapp/dist/static/js/5824.7f51ae20.js.map deleted file mode 100644 index 6a782f37b..000000000 --- a/platypush/backend/http/webapp/dist/static/js/5824.7f51ae20.js.map +++ /dev/null @@ -1 +0,0 @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qBAEzF,O,0KCHM,OAEM,OAFDiC,MAAM,UAAQ,EACjB,OAAmB,OAAdA,MAAM,UADb,K,GAGMA,MAAM,S,0CARhB,QAYM,OAZDA,OAAK,SAAC,eAAc,UAAoB,EAAAsB,YAAY,QAAK,8BAAO,EAAAa,SAAA,EAAAA,WAAA,IAAO,YAA5E,EAEE,OAAwC,SAAjCjJ,KAAK,WAAYkJ,QAAS,EAAA9H,OAAjC,WACA,OAQQ,cANN,GAGA,OAEO,OAFP,EAEO,EADL,QAAQ,sCATd,E,CAgBF,OACE1B,KAAM,eACN6I,MAAO,CAAC,SACRzI,MAAO,CACLsB,MAAO,CACLpB,KAAMwI,QACNrD,SAAS,GAGXiD,SAAU,CACRpI,KAAMwI,QACNrD,SAAS,IAIb9E,QAAS,CACP4I,QAAQzG,GACN,GAAIiB,KAAK2E,SACP,OAAO,EAET3E,KAAKiF,MAAM,QAASlG,EACrB,I,UC/BL,MAAM2E,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAAStC,GAAQ,CAAC,YAAY,qBAEzF,O,2FdROiC,MAAM,oB,GAEJA,MAAM,YAAYoB,IAAI,a,sEAF7B,QAGM,MAHN,EAGM,CAFW,EAAA/H,UAAA,WAAf,QAA0B,aAA1B,gBACA,OAAyC,MAAzC,EAAyC,W,yBeI7C,MAAMgH,GAA2B,OAAgB,IAAQ,CAAC,CAAC,SAAStC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Component/Index.vue","webpack://platypush/./src/components/widgets/Component/components/mixins.js","webpack://platypush/./src/components/widgets/Component/components/Run.vue","webpack://platypush/./src/components/widgets/Component/components/Run.vue?73ce","webpack://platypush/./src/components/widgets/Component/components/Sensor.vue","webpack://platypush/./src/components/widgets/Component/components/Sensor.vue?66dc","webpack://platypush/./src/components/widgets/Component/components/Slider.vue","webpack://platypush/./src/components/widgets/Component/components/Slider.vue?fc3e","webpack://platypush/./src/components/widgets/Component/components/Switch.vue","webpack://platypush/./src/components/widgets/Component/components/Switch.vue?ce7f","webpack://platypush/./src/components/widgets/Component/index.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/widgets/Component/Index.vue?276d"],"sourcesContent":["\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n /**\n * Component name\n */\n name: {\n type: String,\n default: '[Unnamed sensor]',\n },\n\n /**\n * Action (FontAwesome) icon class (default: `fa fa-play`)\n */\n iconClass: {\n type: String,\n },\n\n /**\n * Action icon URL (default: `fa fa-play`)\n */\n iconUrl: {\n type: String,\n },\n\n /**\n * Action icon color override, for FontAwesome icons\n */\n iconColor: {\n type: String,\n },\n\n /**\n * Actions to run upon interaction with the widget. Format:\n *\n * [\n * {\n * \"action\": \"light.hue.toggle\",\n * \"args\": {\n * \"lights\": [\"Bulb 1\", \"Bulb 2\"]\n * }\n * },\n * {\n * \"action\": \"music.mpd.pause\"\n * }\n * ]\n */\n actions: {\n type: Array,\n default: () => { return [] },\n },\n\n /**\n * Map of variables used by this component, in the form\n * variable_name -> variable_value.\n */\n _vars: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Map of handlers, in the form of event_type -> functions.\n * Supported event handler types:\n *\n * - mounted: Function to execute when the component is mounted.\n * - beforeActions: Function to execute before the component action is run.\n * - afterActions: Function to execute after the component action is run.\n * - refresh: Function to be called at startup (if mounted is also specified\n * then refresh will be called after mounted when the component is\n * first mounted) and at regular intervals defined on the\n * interval property (default: 10 seconds).\n * - events: This is a mapping of functions that react to Platypush\n * platform events published on the websocket (e.g. lights or\n * switches toggles, media events etc.). The form is\n * platypush_event_type -> function.\n */\n handlers: {\n type: Object,\n default: () => { return {} },\n },\n\n /**\n * Event bus\n */\n bus: {\n type: Object,\n },\n },\n\n data() {\n return {\n vars: {...(this._vars || {})},\n _interval: undefined,\n refresh: null,\n refreshInterval: null,\n value: null,\n loading: false,\n }\n },\n\n computed: {\n iconStyle() {\n if (!this.iconClass?.length && this.iconColor?.length)\n return\n\n return {'color': this.iconColor}\n },\n\n hasIcon() {\n return this.iconUrl?.length || this.iconClass?.length\n },\n },\n\n methods: {\n async run() {\n if (this.handlers.input)\n return this.handlers.input(this)(this.value)\n\n if (this.handlers.beforeActions)\n await this.handlers.beforeActions(this)\n for (const action of this.actions)\n await this.request_(action)\n if (this.handlers.afterActions) {\n await this.handlers.afterActions(this)\n }\n },\n\n async request_(action) {\n const args = Object.entries(action.args).reduce((args, [key, value]) => {\n if (value.trim) {\n value = value.trim()\n const m = value.match(/^{{\\s*(.*)\\s*}}/)\n if (m) {\n value = eval(`// noinspection JSUnusedLocalSymbols\n (function (self) {\n return ${m[1]}\n })`)(this)\n }\n }\n\n args[key] = value\n return args\n }, {})\n\n await this.request(action.action, args)\n },\n\n async processEvent(event) {\n const hndl = (this.handlers.events || {})[event.type]\n if (hndl)\n await hndl(this)(event)\n },\n },\n\n async mounted() {\n this.$root.bus.on('event', this.processEvent)\n\n if (this.handlers.mounted)\n await this.handlers.mounted(this)\n\n if (this.handlers.refresh) {\n this.refreshInterval = (this.handlers.refresh?.interval || 0) * 1000\n this.refresh = () => {\n this.handlers.refresh.handler(this)\n }\n\n await this.refresh()\n if (this.refreshInterval) {\n const self = this\n const wrapper = () => { return self.refresh() }\n this._interval = setInterval(wrapper, this.refreshInterval)\n }\n }\n },\n\n unmounted() {\n if (this._interval)\n clearInterval(this._interval)\n }\n}\n","\n\n\n\n\n","import { render } from \"./Run.vue?vue&type=template&id=7478b72d&scoped=true\"\nimport script from \"./Run.vue?vue&type=script&lang=js\"\nexport * from \"./Run.vue?vue&type=script&lang=js\"\n\nimport \"./Run.vue?vue&type=style&index=0&id=7478b72d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7478b72d\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Sensor.vue?vue&type=template&id=53594122&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=53594122&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-53594122\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=772cf288&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=772cf288&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-772cf288\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Switch.vue?vue&type=template&id=97d3a936&scoped=true\"\nimport script from \"./Switch.vue?vue&type=script&lang=js\"\nexport * from \"./Switch.vue?vue&type=script&lang=js\"\n\nimport \"./Switch.vue?vue&type=style&index=0&id=97d3a936&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-97d3a936\"]])\n\nexport default __exports__","import Run from './components/Run'\nimport Sensor from \"./components/Sensor\";\nimport Slider from './components/Slider'\nimport Switch from './components/Switch'\n\nexport default {\n Run,\n Sensor,\n Slider,\n Switch,\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=450fcab1&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=450fcab1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-450fcab1\"]])\n\nexport default __exports__"],"names":["bus","name","components","Loading","mixins","props","content","type","String","data","loading","unwatch","methods","_parseActions","element","actionsTags","children","filter","node","tagName","toLowerCase","length","actionTags","map","actionTag","action","attributes","value","args","reduce","obj","arg","JSON","parse","innerText","e","_parseVars","varsTags","vars","varTag","_parseHandlers","handlers","parseHndlScript","hndlText","app","eval","parseEventHndl","event","hndlTags","mounted","refresh","handler","interval","events","hndlTag","beforeActionsTags","beforeActions","afterActionsTags","afterActions","_parseProps","attr","propagateEvent","emit","_addEventHandler","this","subscribe","_removeEventHandler","$refs","container","innerHTML","Object","entries","forEach","component","$options","getElementsByTagName","actions","_vars","newEl","document","createElement","setAttribute","parentNode","replaceChild","render","h","mount","removeChild","unmounted","Utils","default","iconClass","iconUrl","iconColor","Array","_interval","undefined","refreshInterval","computed","iconStyle","hasIcon","async","input","request_","key","trim","m","match","request","hndl","$root","on","processEvent","self","wrapper","setInterval","clearInterval","class","run","src","alt","style","__exports__","unit","range","parseFloat","min","max","SliderElement","Number","required","target","ToggleSwitch","Run","Sensor","Slider","Switch","ref","step","disabled","onUpdate","withLabel","emits","Boolean","update","$emit","percent","thumb","left","transform","track","width","onInput","checked"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7029-legacy.66663032.js.map b/platypush/backend/http/webapp/dist/static/js/7029-legacy.66663032.js.map deleted file mode 100644 index 03811e17b..000000000 --- a/platypush/backend/http/webapp/dist/static/js/7029-legacy.66663032.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/7029-legacy.66663032.js","mappings":"iGAGAA,EAAOC,QAAUC,OAAOC,IAAM,SAAYC,EAAGC,GAE3C,OAAOD,IAAMC,EAAU,IAAND,GAAW,EAAIA,IAAM,EAAIC,EAAID,GAAKA,GAAKC,GAAKA,CAC/D,C,uBCNA,IAAIC,EAAI,EAAQ,MACZC,EAAS,EAAQ,MAIrBD,EAAE,CAAEE,OAAQ,SAAUC,OAAO,GAAQ,CACnCF,OAAQA,G,oCCLV,IAAIG,EAAO,EAAQ,MACfC,EAAgC,EAAQ,MACxCC,EAAW,EAAQ,MACnBC,EAAyB,EAAQ,MACjCC,EAAY,EAAQ,MACpBC,EAAW,EAAQ,MACnBC,EAAY,EAAQ,MACpBC,EAAa,EAAQ,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AyB,QAAc,EAAD,QAAlD,4B,eAKH,G,QAAA,CACE8B,KAAM,SACNK,MAAO,CAAC,QAAS,SAAU,UAAW,YAAa,aAAc,WAAY,QAAS,WACtFC,MAAO,CACLzC,MAAO,CACL0C,KAAM6B,QAGRrD,SAAU,CACRwB,KAAM8B,QACN7B,SAAS,GAGXtB,MAAO,CACLqB,KAAME,MACND,QAAS,iBAAM,CAAC,EAAG,IAAV,GAGXyB,KAAM,CACJ1B,KAAM6B,OACN5B,QAAS,GAGX2B,UAAW,CACT5B,KAAM8B,QACN7B,SAAS,IAIbO,QAAS,CACPmB,SADO,SACEI,GACPlF,KAAKmF,OAAOD,EAAMjG,OAAOwB,OACzBT,KAAKkB,MAAMgE,EAAM/B,MAAjB,kBACK+B,GADL,IAEEjG,QAAQ,kBACHiG,EAAMjG,QADL,IAEJwB,MAAOT,KAAKoF,MAAMtD,MAAMrB,UAG7B,EAED0E,OAZO,SAYA1E,GACL,IAAM4E,EAAqC,KAAzB5E,EAAQT,KAAK8B,MAAM,KAAc9B,KAAK8B,MAAM,GAAK9B,KAAK8B,MAAM,IAC9E9B,KAAKoF,MAAME,MAAMC,MAAMC,KAAvB,UAAiCH,EAAjC,KACArF,KAAKoF,MAAME,MAAMC,MAAME,UAAvB,qBAAiDJ,EAAjD,YACArF,KAAKoF,MAAMpE,MAAMuE,MAAMG,MAAvB,UAAkCL,EAAlC,IACD,GAGHvB,QAjDa,WAkDO,MAAd9D,KAAKS,OACPT,KAAKmF,OAAOnF,KAAKS,MACpB,I,UCnEH,MAAM2D,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASK,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./node_modules/core-js/internals/same-value.js","webpack://platypush/./node_modules/core-js/modules/es.string.repeat.js","webpack://platypush/./node_modules/core-js/modules/es.string.search.js","webpack://platypush/./src/components/Media/View.vue","webpack://platypush/./src/components/Media/Controls.vue","webpack://platypush/./src/components/Media/Controls.vue?3032","webpack://platypush/./src/components/Media/View.vue?78ca","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f"],"sourcesContent":["// `SameValue` abstract operation\n// https://tc39.es/ecma262/#sec-samevalue\n// eslint-disable-next-line es-x/no-object-is -- safe\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n","var $ = require('../internals/export');\nvar repeat = require('../internals/string-repeat');\n\n// `String.prototype.repeat` method\n// https://tc39.es/ecma262/#sec-string.prototype.repeat\n$({ target: 'String', proto: true }, {\n repeat: repeat\n});\n","'use strict';\nvar call = require('../internals/function-call');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar sameValue = require('../internals/same-value');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@search logic\nfixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {\n return [\n // `String.prototype.search` method\n // https://tc39.es/ecma262/#sec-string.prototype.search\n function search(regexp) {\n var O = requireObjectCoercible(this);\n var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);\n return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));\n },\n // `RegExp.prototype[@@search]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@search\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeSearch, rx, S);\n\n if (res.done) return res.value;\n\n var previousLastIndex = rx.lastIndex;\n if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;\n var result = regExpExec(rx, S);\n if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;\n return result === null ? -1 : result.index;\n }\n ];\n});\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=8db4988a&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=8db4988a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8db4988a\"]])\n\nexport default __exports__","import { render } from \"./View.vue?vue&type=template&id=70d7a7df&scoped=true\"\nimport script from \"./View.vue?vue&type=script&lang=js\"\nexport * from \"./View.vue?vue&type=script&lang=js\"\n\nimport \"./View.vue?vue&type=style&index=0&id=70d7a7df&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70d7a7df\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__"],"names":["module","exports","Object","is","x","y","$","repeat","target","proto","call","fixRegExpWellKnownSymbolLogic","anObject","requireObjectCoercible","sameValue","toString","getMethod","regExpExec","SEARCH","nativeSearch","maybeCallNative","regexp","O","this","searcher","undefined","RegExp","string","rx","S","res","done","value","previousLastIndex","lastIndex","result","index","class","status","track","buttons","$emit","$event","expanded","buttons_","previous","title","stop","state","next","disabled","muted","volume","range","volumeRange","consume","random","convertTime","elapsed","duration","album","href","$route","fullPath","length","artist","url","name","components","Slider","mixins","Utils","emits","props","type","default","Array","data","keys","lastSync","position","computed","methods","getTime","Date","mounted","self","$watch","setInterval","Math","round","__exports__","Controls","pluginName","String","required","render","ref","min","max","step","onUpdate","withLabel","Number","Boolean","event","update","$refs","percent","thumb","style","left","transform","width"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7029-legacy.66663032.js b/platypush/backend/http/webapp/dist/static/js/7029-legacy.c3dab656.js similarity index 66% rename from platypush/backend/http/webapp/dist/static/js/7029-legacy.66663032.js rename to platypush/backend/http/webapp/dist/static/js/7029-legacy.c3dab656.js index 31030f2dc..e1c6e814e 100644 --- a/platypush/backend/http/webapp/dist/static/js/7029-legacy.66663032.js +++ b/platypush/backend/http/webapp/dist/static/js/7029-legacy.c3dab656.js @@ -1,2 +1,2 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7029],{1150:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},2481:function(t,e,n){var a=n(2109),s=n(8415);a({target:"String",proto:!0},{repeat:s})},4765:function(t,e,n){"use strict";var a=n(6916),s=n(7007),u=n(9670),o=n(4488),l=n(1150),i=n(1340),r=n(8173),c=n(7651);s("search",(function(t,e,n){return[function(e){var n=o(this),s=void 0==e?void 0:r(e,t);return s?a(s,e,n):new RegExp(e)[t](i(n))},function(t){var a=u(this),s=i(t),o=n(e,a,s);if(o.done)return o.value;var r=a.lastIndex;l(r,0)||(a.lastIndex=0);var d=c(a,s);return l(a.lastIndex,r)||(a.lastIndex=r),null===d?-1:d.index}]}))},9978:function(t,e,n){"use strict";n.d(e,{Z:function(){return Kt}});var a=n(6252),s={class:"media-container"},u={class:"view-container"},o={class:"controls-container"};function l(t,e,n,l,i,r){var c=(0,a.up)("Controls");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("div",u,[(0,a.WI)(t.$slots,"default",{},void 0,!0)]),(0,a._)("div",o,[(0,a.Wm)(c,{status:n.status,track:n.track,buttons:n.buttons,onPlay:e[0]||(e[0]=function(e){return t.$emit("play",e)}),onPause:e[1]||(e[1]=function(e){return t.$emit("pause",e)}),onStop:e[2]||(e[2]=function(e){return t.$emit("stop")}),onPrevious:e[3]||(e[3]=function(e){return t.$emit("previous")}),onNext:e[4]||(e[4]=function(e){return t.$emit("next")}),onSeek:e[5]||(e[5]=function(e){return t.$emit("seek",e)}),onSetVolume:e[6]||(e[6]=function(e){return t.$emit("set-volume",e)}),onConsume:e[7]||(e[7]=function(e){return t.$emit("consume",e)}),onRepeat:e[8]||(e[8]=function(e){return t.$emit("repeat",e)}),onRandom:e[9]||(e[9]=function(e){return t.$emit("random",e)}),onSearch:e[10]||(e[10]=function(e){return t.$emit("search",e)})},null,8,["status","track","buttons"])])])}n(2481);var i=n(3577),r=n(9963),c=function(t){return(0,a.dD)("data-v-8db4988a"),t=t(),(0,a.Cn)(),t},d={class:"row"},p=c((function(){return(0,a._)("div",{class:"col-3"},null,-1)})),f={class:"col-6"},m={class:"buttons"},v=c((function(){return(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1)})),k=[v],b=c((function(){return(0,a._)("i",{class:"icon fa fa-stop"},null,-1)})),y=[b],_=c((function(){return(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1)})),g=[_],h=c((function(){return(0,a._)("div",{class:"col-3"},null,-1)})),w={class:"row"},C={class:"col-9 volume-container"},x={class:"col-1"},$=["disabled"],D=c((function(){return(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1)})),T=[D],q={class:"col-11 volume-slider"},M={class:"col-3 list-controls"},S=c((function(){return(0,a._)("i",{class:"icon fa fa-utensils"},null,-1)})),U=[S],P=c((function(){return(0,a._)("i",{class:"icon fa fa-random"},null,-1)})),Z=[P],I=c((function(){return(0,a._)("i",{class:"icon fa fa-redo"},null,-1)})),z=[I],j={class:"row"},O={class:"col-s-2 col-m-1 time"},N=["textContent"],R={class:"col-s-8 col-m-10 time-bar"},W={class:"col-s-2 col-m-1 time"},A=["textContent"],B={class:"controls"},H={class:"playback-controls mobile tablet col-2"},K=["title"],L={key:0,class:"icon play-pause fa fa-pause"},V={key:1,class:"icon play-pause fa fa-play"},E={class:"track-container col-s-8 col-m-8 col-l-3"},Y={key:0,class:"track-info"},F={key:0,class:"title"},G=["href","textContent"],J=["href","textContent"],Q=["textContent"],X={key:1,class:"artist"},tt=["href","textContent"],et={class:"playback-controls desktop col-6"},nt={class:"row buttons"},at=c((function(){return(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1)})),st=[at],ut=["title"],ot={key:0,class:"icon play-pause fa fa-pause"},lt={key:1,class:"icon play-pause fa fa-play"},it=c((function(){return(0,a._)("i",{class:"icon fa fa-stop"},null,-1)})),rt=[it],ct=c((function(){return(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1)})),dt=[ct],pt={class:"row"},ft={class:"col-1 time"},mt=["textContent"],vt={class:"col-10"},kt={class:"col-1 time"},bt=["textContent"],yt={class:"col-2 pull-right mobile tablet right-buttons"},_t=["title"],gt={class:"col-3 pull-right desktop"},ht={class:"row list-controls"},wt=c((function(){return(0,a._)("i",{class:"icon fa fa-utensils"},null,-1)})),Ct=[wt],xt=c((function(){return(0,a._)("i",{class:"icon fa fa-random"},null,-1)})),$t=[xt],Dt=c((function(){return(0,a._)("i",{class:"icon fa fa-redo"},null,-1)})),Tt=[Dt],qt={class:"row volume-container"},Mt={class:"col-2"},St=["disabled"],Ut=c((function(){return(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1)})),Pt=[Ut],Zt={class:"col-10"};function It(t,e,n,s,u,o){var l,c,v,b,_,D=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a._)("div",{class:(0,i.C_)(["extension fade-in",{hidden:!u.expanded}])},[(0,a._)("div",d,[p,(0,a._)("div",f,[(0,a._)("div",m,[u.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[0]||(e[0]=function(e){return t.$emit("previous")}),title:"Play previous track"},k)):(0,a.kq)("",!0),u.buttons_.stop&&"stop"!==n.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[1]||(e[1]=function(e){return t.$emit("stop")}),title:"Stop playback"},y)):(0,a.kq)("",!0),u.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[2]||(e[2]=function(e){return t.$emit("next")}),title:"Play next track"},g)):(0,a.kq)("",!0)])]),h]),(0,a._)("div",w,[(0,a._)("div",C,[(0,a._)("div",x,[(0,a._)("button",{disabled:null==n.status.muted,onClick:e[3]||(e[3]=function(e){return t.$emit(n.status.muted?"unmute":"mute")})},T,8,$)]),(0,a._)("div",q,[(0,a.Wm)(D,{value:n.status.volume,range:n.volumeRange,disabled:null==n.status.volume,onMouseup:e[4]||(e[4]=function(e){return t.$emit("set-volume",e.target.value)})},null,8,["value","range","disabled"])])]),(0,a._)("div",M,[u.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[5]||(e[5]=function(e){return t.$emit("consume",!n.status.consume)}),class:(0,i.C_)({enabled:n.status.consume}),title:"Toggle consume mode"},U,2)):(0,a.kq)("",!0),u.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[6]||(e[6]=function(e){return t.$emit("random",!n.status.random)}),class:(0,i.C_)({enabled:n.status.random}),title:"Toggle shuffle"},Z,2)):(0,a.kq)("",!0),u.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[7]||(e[7]=function(e){return t.$emit("repeat",!n.status.repeat)}),class:(0,i.C_)({enabled:n.status.repeat}),title:"Toggle repeat"},z,2)):(0,a.kq)("",!0)])]),(0,a._)("div",j,[(0,a._)("div",O,[(0,a._)("span",{class:"elapsed-time",textContent:(0,i.zw)(null==u.elapsed||"play"!==n.status.state&&"pause"!==n.status.state?"-:--":t.convertTime(u.elapsed))},null,8,N)]),(0,a._)("div",R,[(0,a.Wm)(D,{value:u.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===n.status.state,onMouseup:e[8]||(e[8]=function(e){return t.$emit("seek",e.target.value)})},null,8,["value","range","disabled"])]),(0,a._)("div",W,[(0,a._)("span",{class:"total-time",textContent:(0,i.zw)(o.duration&&"stop"!==n.status.state?t.convertTime(o.duration):"-:--")},null,8,A)])])],2),(0,a._)("div",B,[(0,a._)("div",H,[(0,a._)("button",{onClick:e[9]||(e[9]=function(e){return t.$emit("play"===n.status.state?"pause":"play")}),title:"play"===n.status.state?"Pause":"Play"},["play"===n.status.state?((0,a.wg)(),(0,a.iD)("i",L)):((0,a.wg)(),(0,a.iD)("i",V))],8,K)]),(0,a._)("div",E,[n.track&&"stop"!==(null===(l=n.status)||void 0===l?void 0:l.state)?((0,a.wg)(),(0,a.iD)("div",Y,["play"===n.status.state||"pause"===n.status.state?((0,a.wg)(),(0,a.iD)("div",F,[n.track.album?((0,a.wg)(),(0,a.iD)("a",{key:0,href:t.$route.fullPath,textContent:(0,i.zw)(null!==(c=n.track.title)&&void 0!==c&&c.length?n.track.title:"[No Title]"),onClick:e[10]||(e[10]=(0,r.iM)((function(e){return t.$emit("search",{artist:n.track.artist,album:n.track.album})}),["prevent"]))},null,8,G)):n.track.url?((0,a.wg)(),(0,a.iD)("a",{key:1,href:n.track.url,textContent:(0,i.zw)(null!==(v=n.track.title)&&void 0!==v&&v.length?n.track.title:"[No Title]")},null,8,J)):((0,a.wg)(),(0,a.iD)("span",{key:2,textContent:(0,i.zw)(null!==(b=n.track.title)&&void 0!==b&&b.length?n.track.title:"[No Title]")},null,8,Q))])):(0,a.kq)("",!0),null===(_=n.track.artist)||void 0===_||!_.length||"play"!==n.status.state&&"pause"!==n.status.state?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",X,[(0,a._)("a",{href:t.$route.fullPath,textContent:(0,i.zw)(n.track.artist),onClick:e[11]||(e[11]=(0,r.iM)((function(e){return t.$emit("search",{artist:n.track.artist})}),["prevent"]))},null,8,tt)]))])):(0,a.kq)("",!0)]),(0,a._)("div",et,[(0,a._)("div",nt,[u.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[12]||(e[12]=function(e){return t.$emit("previous")}),title:"Play previous track"},st)):(0,a.kq)("",!0),(0,a._)("button",{onClick:e[13]||(e[13]=function(e){return t.$emit("play"===n.status.state?"pause":"play")}),title:"play"===n.status.state?"Pause":"Play"},["play"===n.status.state?((0,a.wg)(),(0,a.iD)("i",ot)):((0,a.wg)(),(0,a.iD)("i",lt))],8,ut),u.buttons_.stop&&"stop"!==n.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[14]||(e[14]=function(e){return t.$emit("stop")}),title:"Stop playback"},rt)):(0,a.kq)("",!0),u.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[15]||(e[15]=function(e){return t.$emit("next")}),title:"Play next track"},dt)):(0,a.kq)("",!0)]),(0,a._)("div",pt,[(0,a._)("div",ft,[(0,a._)("span",{class:"elapsed-time",textContent:(0,i.zw)(null==u.elapsed||"play"!==n.status.state&&"pause"!==n.status.state?"-:--":t.convertTime(u.elapsed))},null,8,mt)]),(0,a._)("div",vt,[(0,a.Wm)(D,{value:u.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===n.status.state,onMouseup:e[16]||(e[16]=function(e){return t.$emit("seek",e.target.value)})},null,8,["value","range","disabled"])]),(0,a._)("div",kt,[(0,a._)("span",{class:"total-time",textContent:(0,i.zw)(o.duration&&"stop"!==n.status.state?t.convertTime(o.duration):"-:--")},null,8,bt)])])]),(0,a._)("div",yt,[(0,a._)("button",{onClick:e[17]||(e[17]=function(t){return u.expanded=!u.expanded}),title:u.expanded?"Show more controls":"Hide extra controls"},[(0,a._)("i",{class:(0,i.C_)(["fas",["fa-chevron-".concat(u.expanded?"down":"up")]])},null,2)],8,_t)]),(0,a._)("div",gt,[(0,a._)("div",ht,[u.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[18]||(e[18]=function(e){return t.$emit("consume")}),class:(0,i.C_)({enabled:n.status.consume}),title:"Toggle consume mode"},Ct,2)):(0,a.kq)("",!0),u.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[19]||(e[19]=function(e){return t.$emit("random")}),class:(0,i.C_)({enabled:n.status.random}),title:"Toggle shuffle"},$t,2)):(0,a.kq)("",!0),u.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[20]||(e[20]=function(e){return t.$emit("repeat")}),class:(0,i.C_)({enabled:n.status.repeat}),title:"Toggle repeat"},Tt,2)):(0,a.kq)("",!0)]),(0,a._)("div",qt,[(0,a._)("div",Mt,[(0,a._)("button",{disabled:null==n.status.muted,onClick:e[21]||(e[21]=function(e){return t.$emit(n.status.muted?"unmute":"mute")})},Pt,8,St)]),(0,a._)("div",Zt,[(0,a.Wm)(D,{value:n.status.volume,range:n.volumeRange,disabled:null==n.status.volume,onMouseup:e[22]||(e[22]=function(e){return t.$emit("set-volume",e.target.value)})},null,8,["value","range","disabled"])])])])])],64)}n(7941);var zt=n(6813),jt=n(8337),Ot=n(376),Nt={name:"Controls",components:{Slider:Ot.Z},mixins:[zt.Z,jt.Z],emits:["search","previous","next","play","pause","stop","seek","consume","random","repeat","set-volume","mute","unmute"],props:{track:{type:Object},status:{type:Object,default:function(){}},buttons:{type:Object,default:function(){return{previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0}}},volumeRange:{type:Array,default:function(){return[0,100]}}},data:function(){var t,e,n,a=null!==(t=Object.keys(this.buttons))&&void 0!==t&&t.length?this.buttons:{previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0};return{expanded:!1,lastSync:0,elapsed:(null===(e=this.status)||void 0===e?void 0:e.elapsed)||(null===(n=this.status)||void 0===n?void 0:n.position),buttons_:a}},computed:{duration:function(){var t,e;return null!=(null===(t=this.status)||void 0===t?void 0:t.duration)?this.status.duration:null===(e=this.track)||void 0===e?void 0:e.duration}},methods:{getTime:function(){return(new Date).getTime()/1e3}},mounted:function(){var t=this,e=this;this.lastSync=this.getTime(),this.$watch((function(){return t.track}),(function(n){var a;n&&"play"===(null===(a=e.status)||void 0===a?void 0:a.state)||(e.lastSync=t.getTime())})),this.$watch((function(){return t.status}),(function(){e.lastSync=t.getTime()})),setInterval((function(){var n,a,s,u;"stop"!==(null===(n=e.status)||void 0===n?void 0:n.state)&&(e.elapsed=(null===(a=e.status)||void 0===a?void 0:a.elapsed)||(null===(s=e.status)||void 0===s?void 0:s.position)||0,"play"===(null===(u=e.status)||void 0===u?void 0:u.state)&&(e.elapsed+=Math.round(t.getTime()-e.lastSync)))}),1e3)}},Rt=n(3744);const Wt=(0,Rt.Z)(Nt,[["render",It],["__scopeId","data-v-8db4988a"]]);var At=Wt,Bt={name:"View",components:{Controls:At},emits:["play","pause","stop","next","previous","set-volume","seek","consume","random","repeat","search"],props:{pluginName:{type:String,required:!0},status:{type:Object,default:function(){}},track:{type:Object},buttons:{type:Object}}};const Ht=(0,Rt.Z)(Bt,[["render",l],["__scopeId","data-v-70d7a7df"]]);var Kt=Ht},376:function(t,e,n){"use strict";n.d(e,{Z:function(){return b}});var a=n(6252),s=n(9963),u=n(3577),o={class:"slider-wrapper"},l=["min","max","step","disabled","value"],i={class:"track"},r={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},d=["textContent"];function p(t,e,n,p,f,m){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:"slider",type:"range",ref:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,onInput:e[0]||(e[0]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onChange:e[1]||(e[1]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onMouseup:e[2]||(e[2]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onMousedown:e[3]||(e[3]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onTouchstart:e[4]||(e[4]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onTouchend:e[5]||(e[5]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onKeyup:e[6]||(e[6]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"])),onKeydown:e[7]||(e[7]=(0,s.iM)((function(){return m.onUpdate&&m.onUpdate.apply(m,arguments)}),["stop"]))},null,40,l),(0,a._)("div",i,[(0,a._)("div",r,null,512)]),(0,a._)("div",c,null,512),n.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,u.zw)(n.value)},null,8,d)):(0,a.kq)("",!0)])}var f=n(4648),m=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(t){this.update(t.target.value),this.$emit(t.type,(0,f.Z)((0,f.Z)({},t),{},{target:(0,f.Z)((0,f.Z)({},t.target),{},{value:this.$refs.range.value})}))},update:function(t){var e=100*(t-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left="".concat(e,"%"),this.$refs.thumb.style.transform="translate(-".concat(e,"%, -50%)"),this.$refs.track.style.width="".concat(e,"%")}},mounted:function(){null!=this.value&&this.update(this.value)}}),v=n(3744);const k=(0,v.Z)(m,[["render",p],["__scopeId","data-v-95edc28a"]]);var b=k}}]); -//# sourceMappingURL=7029-legacy.66663032.js.map \ No newline at end of file +(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7029],{1150:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},2481:function(t,e,n){var a=n(2109),s=n(8415);a({target:"String",proto:!0},{repeat:s})},4765:function(t,e,n){"use strict";var a=n(6916),s=n(7007),u=n(9670),o=n(4488),l=n(1150),i=n(1340),r=n(8173),c=n(7651);s("search",(function(t,e,n){return[function(e){var n=o(this),s=void 0==e?void 0:r(e,t);return s?a(s,e,n):new RegExp(e)[t](i(n))},function(t){var a=u(this),s=i(t),o=n(e,a,s);if(o.done)return o.value;var r=a.lastIndex;l(r,0)||(a.lastIndex=0);var d=c(a,s);return l(a.lastIndex,r)||(a.lastIndex=r),null===d?-1:d.index}]}))},9978:function(t,e,n){"use strict";n.d(e,{Z:function(){return Ht}});var a=n(6252),s={class:"media-container"},u={class:"view-container"},o={class:"controls-container"};function l(t,e,n,l,i,r){var c=(0,a.up)("Controls");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("div",u,[(0,a.WI)(t.$slots,"default",{},void 0,!0)]),(0,a._)("div",o,[(0,a.Wm)(c,{status:n.status,track:n.track,buttons:n.buttons,onPlay:e[0]||(e[0]=function(e){return t.$emit("play",e)}),onPause:e[1]||(e[1]=function(e){return t.$emit("pause",e)}),onStop:e[2]||(e[2]=function(e){return t.$emit("stop")}),onPrevious:e[3]||(e[3]=function(e){return t.$emit("previous")}),onNext:e[4]||(e[4]=function(e){return t.$emit("next")}),onSeek:e[5]||(e[5]=function(e){return t.$emit("seek",e)}),onSetVolume:e[6]||(e[6]=function(e){return t.$emit("set-volume",e)}),onConsume:e[7]||(e[7]=function(e){return t.$emit("consume",e)}),onRepeat:e[8]||(e[8]=function(e){return t.$emit("repeat",e)}),onRandom:e[9]||(e[9]=function(e){return t.$emit("random",e)}),onSearch:e[10]||(e[10]=function(e){return t.$emit("search",e)})},null,8,["status","track","buttons"])])])}n(2481);var i=n(3577),r=n(9963),c=function(t){return(0,a.dD)("data-v-8db4988a"),t=t(),(0,a.Cn)(),t},d={class:"row"},p=c((function(){return(0,a._)("div",{class:"col-3"},null,-1)})),f={class:"col-6"},m={class:"buttons"},v=c((function(){return(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1)})),k=[v],b=c((function(){return(0,a._)("i",{class:"icon fa fa-stop"},null,-1)})),y=[b],_=c((function(){return(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1)})),g=[_],h=c((function(){return(0,a._)("div",{class:"col-3"},null,-1)})),w={class:"row"},C={class:"col-9 volume-container"},x={class:"col-1"},$=["disabled"],D=c((function(){return(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1)})),T=[D],q={class:"col-11 volume-slider"},M={class:"col-3 list-controls"},S=c((function(){return(0,a._)("i",{class:"icon fa fa-utensils"},null,-1)})),U=[S],P=c((function(){return(0,a._)("i",{class:"icon fa fa-random"},null,-1)})),Z=[P],I=c((function(){return(0,a._)("i",{class:"icon fa fa-redo"},null,-1)})),z=[I],j={class:"row"},O={class:"col-s-2 col-m-1 time"},W=["textContent"],N={class:"col-s-8 col-m-10 time-bar"},R={class:"col-s-2 col-m-1 time"},L=["textContent"],A={class:"controls"},B={class:"playback-controls mobile tablet col-2"},H=["title"],K={key:0,class:"icon play-pause fa fa-pause"},V={key:1,class:"icon play-pause fa fa-play"},E={class:"track-container col-s-8 col-m-8 col-l-3"},Y={key:0,class:"track-info"},F={key:0,class:"title"},G=["href","textContent"],J=["href","textContent"],Q=["textContent"],X={key:1,class:"artist"},tt=["href","textContent"],et={class:"playback-controls desktop col-6"},nt={class:"row buttons"},at=c((function(){return(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1)})),st=[at],ut=["title"],ot={key:0,class:"icon play-pause fa fa-pause"},lt={key:1,class:"icon play-pause fa fa-play"},it=c((function(){return(0,a._)("i",{class:"icon fa fa-stop"},null,-1)})),rt=[it],ct=c((function(){return(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1)})),dt=[ct],pt={class:"row"},ft={class:"col-1 time"},mt=["textContent"],vt={class:"col-10"},kt={class:"col-1 time"},bt=["textContent"],yt={class:"col-2 pull-right mobile tablet right-buttons"},_t=["title"],gt={class:"col-3 pull-right desktop"},ht={class:"row list-controls"},wt=c((function(){return(0,a._)("i",{class:"icon fa fa-utensils"},null,-1)})),Ct=[wt],xt=c((function(){return(0,a._)("i",{class:"icon fa fa-random"},null,-1)})),$t=[xt],Dt=c((function(){return(0,a._)("i",{class:"icon fa fa-redo"},null,-1)})),Tt=[Dt],qt={class:"row volume-container"},Mt={class:"col-2"},St=["disabled"],Ut=c((function(){return(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1)})),Pt=[Ut],Zt={class:"col-10"};function It(t,e,n,s,u,o){var l,c,v,b,_,D=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a._)("div",{class:(0,i.C_)(["extension fade-in",{hidden:!u.expanded}])},[(0,a._)("div",d,[p,(0,a._)("div",f,[(0,a._)("div",m,[u.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[0]||(e[0]=function(e){return t.$emit("previous")}),title:"Play previous track"},k)):(0,a.kq)("",!0),u.buttons_.stop&&"stop"!==n.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[1]||(e[1]=function(e){return t.$emit("stop")}),title:"Stop playback"},y)):(0,a.kq)("",!0),u.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[2]||(e[2]=function(e){return t.$emit("next")}),title:"Play next track"},g)):(0,a.kq)("",!0)])]),h]),(0,a._)("div",w,[(0,a._)("div",C,[(0,a._)("div",x,[(0,a._)("button",{disabled:null==n.status.muted,onClick:e[3]||(e[3]=function(e){return t.$emit(n.status.muted?"unmute":"mute")})},T,8,$)]),(0,a._)("div",q,[(0,a.Wm)(D,{value:n.status.volume,range:n.volumeRange,disabled:null==n.status.volume,onMouseup:e[4]||(e[4]=function(e){return t.$emit("set-volume",e.target.value)})},null,8,["value","range","disabled"])])]),(0,a._)("div",M,[u.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[5]||(e[5]=function(e){return t.$emit("consume",!n.status.consume)}),class:(0,i.C_)({enabled:n.status.consume}),title:"Toggle consume mode"},U,2)):(0,a.kq)("",!0),u.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[6]||(e[6]=function(e){return t.$emit("random",!n.status.random)}),class:(0,i.C_)({enabled:n.status.random}),title:"Toggle shuffle"},Z,2)):(0,a.kq)("",!0),u.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[7]||(e[7]=function(e){return t.$emit("repeat",!n.status.repeat)}),class:(0,i.C_)({enabled:n.status.repeat}),title:"Toggle repeat"},z,2)):(0,a.kq)("",!0)])]),(0,a._)("div",j,[(0,a._)("div",O,[(0,a._)("span",{class:"elapsed-time",textContent:(0,i.zw)(null==u.elapsed||"play"!==n.status.state&&"pause"!==n.status.state?"-:--":t.convertTime(u.elapsed))},null,8,W)]),(0,a._)("div",N,[(0,a.Wm)(D,{value:u.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===n.status.state,onMouseup:e[8]||(e[8]=function(e){return t.$emit("seek",e.target.value)})},null,8,["value","range","disabled"])]),(0,a._)("div",R,[(0,a._)("span",{class:"total-time",textContent:(0,i.zw)(o.duration&&"stop"!==n.status.state?t.convertTime(o.duration):"-:--")},null,8,L)])])],2),(0,a._)("div",A,[(0,a._)("div",B,[(0,a._)("button",{onClick:e[9]||(e[9]=function(e){return t.$emit("play"===n.status.state?"pause":"play")}),title:"play"===n.status.state?"Pause":"Play"},["play"===n.status.state?((0,a.wg)(),(0,a.iD)("i",K)):((0,a.wg)(),(0,a.iD)("i",V))],8,H)]),(0,a._)("div",E,[n.track&&"stop"!==(null===(l=n.status)||void 0===l?void 0:l.state)?((0,a.wg)(),(0,a.iD)("div",Y,["play"===n.status.state||"pause"===n.status.state?((0,a.wg)(),(0,a.iD)("div",F,[n.track.album?((0,a.wg)(),(0,a.iD)("a",{key:0,href:t.$route.fullPath,textContent:(0,i.zw)(null!==(c=n.track.title)&&void 0!==c&&c.length?n.track.title:"[No Title]"),onClick:e[10]||(e[10]=(0,r.iM)((function(e){return t.$emit("search",{artist:n.track.artist,album:n.track.album})}),["prevent"]))},null,8,G)):n.track.url?((0,a.wg)(),(0,a.iD)("a",{key:1,href:n.track.url,textContent:(0,i.zw)(null!==(v=n.track.title)&&void 0!==v&&v.length?n.track.title:"[No Title]")},null,8,J)):((0,a.wg)(),(0,a.iD)("span",{key:2,textContent:(0,i.zw)(null!==(b=n.track.title)&&void 0!==b&&b.length?n.track.title:"[No Title]")},null,8,Q))])):(0,a.kq)("",!0),null===(_=n.track.artist)||void 0===_||!_.length||"play"!==n.status.state&&"pause"!==n.status.state?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",X,[(0,a._)("a",{href:t.$route.fullPath,textContent:(0,i.zw)(n.track.artist),onClick:e[11]||(e[11]=(0,r.iM)((function(e){return t.$emit("search",{artist:n.track.artist})}),["prevent"]))},null,8,tt)]))])):(0,a.kq)("",!0)]),(0,a._)("div",et,[(0,a._)("div",nt,[u.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[12]||(e[12]=function(e){return t.$emit("previous")}),title:"Play previous track"},st)):(0,a.kq)("",!0),(0,a._)("button",{onClick:e[13]||(e[13]=function(e){return t.$emit("play"===n.status.state?"pause":"play")}),title:"play"===n.status.state?"Pause":"Play"},["play"===n.status.state?((0,a.wg)(),(0,a.iD)("i",ot)):((0,a.wg)(),(0,a.iD)("i",lt))],8,ut),u.buttons_.stop&&"stop"!==n.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[14]||(e[14]=function(e){return t.$emit("stop")}),title:"Stop playback"},rt)):(0,a.kq)("",!0),u.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[15]||(e[15]=function(e){return t.$emit("next")}),title:"Play next track"},dt)):(0,a.kq)("",!0)]),(0,a._)("div",pt,[(0,a._)("div",ft,[(0,a._)("span",{class:"elapsed-time",textContent:(0,i.zw)(null==u.elapsed||"play"!==n.status.state&&"pause"!==n.status.state?"-:--":t.convertTime(u.elapsed))},null,8,mt)]),(0,a._)("div",vt,[(0,a.Wm)(D,{value:u.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===n.status.state,onMouseup:e[16]||(e[16]=function(e){return t.$emit("seek",e.target.value)})},null,8,["value","range","disabled"])]),(0,a._)("div",kt,[(0,a._)("span",{class:"total-time",textContent:(0,i.zw)(o.duration&&"stop"!==n.status.state?t.convertTime(o.duration):"-:--")},null,8,bt)])])]),(0,a._)("div",yt,[(0,a._)("button",{onClick:e[17]||(e[17]=function(t){return u.expanded=!u.expanded}),title:u.expanded?"Show more controls":"Hide extra controls"},[(0,a._)("i",{class:(0,i.C_)(["fas",["fa-chevron-".concat(u.expanded?"down":"up")]])},null,2)],8,_t)]),(0,a._)("div",gt,[(0,a._)("div",ht,[u.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[18]||(e[18]=function(e){return t.$emit("consume")}),class:(0,i.C_)({enabled:n.status.consume}),title:"Toggle consume mode"},Ct,2)):(0,a.kq)("",!0),u.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[19]||(e[19]=function(e){return t.$emit("random")}),class:(0,i.C_)({enabled:n.status.random}),title:"Toggle shuffle"},$t,2)):(0,a.kq)("",!0),u.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[20]||(e[20]=function(e){return t.$emit("repeat")}),class:(0,i.C_)({enabled:n.status.repeat}),title:"Toggle repeat"},Tt,2)):(0,a.kq)("",!0)]),(0,a._)("div",qt,[(0,a._)("div",Mt,[(0,a._)("button",{disabled:null==n.status.muted,onClick:e[21]||(e[21]=function(e){return t.$emit(n.status.muted?"unmute":"mute")})},Pt,8,St)]),(0,a._)("div",Zt,[(0,a.Wm)(D,{value:n.status.volume,range:n.volumeRange,disabled:null==n.status.volume,onMouseup:e[22]||(e[22]=function(e){return t.$emit("set-volume",e.target.value)})},null,8,["value","range","disabled"])])])])])],64)}n(7941);var zt=n(6813),jt=n(8337),Ot=n(8070),Wt={name:"Controls",components:{Slider:Ot.Z},mixins:[zt.Z,jt.Z],emits:["search","previous","next","play","pause","stop","seek","consume","random","repeat","set-volume","mute","unmute"],props:{track:{type:Object},status:{type:Object,default:function(){}},buttons:{type:Object,default:function(){return{previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0}}},volumeRange:{type:Array,default:function(){return[0,100]}}},data:function(){var t,e,n,a=null!==(t=Object.keys(this.buttons))&&void 0!==t&&t.length?this.buttons:{previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0};return{expanded:!1,lastSync:0,elapsed:(null===(e=this.status)||void 0===e?void 0:e.elapsed)||(null===(n=this.status)||void 0===n?void 0:n.position),buttons_:a}},computed:{duration:function(){var t,e;return null!=(null===(t=this.status)||void 0===t?void 0:t.duration)?this.status.duration:null===(e=this.track)||void 0===e?void 0:e.duration}},methods:{getTime:function(){return(new Date).getTime()/1e3}},mounted:function(){var t=this,e=this;this.lastSync=this.getTime(),this.$watch((function(){return t.track}),(function(n){var a;n&&"play"===(null===(a=e.status)||void 0===a?void 0:a.state)||(e.lastSync=t.getTime())})),this.$watch((function(){return t.status}),(function(){e.lastSync=t.getTime()})),setInterval((function(){var n,a,s,u;"stop"!==(null===(n=e.status)||void 0===n?void 0:n.state)&&(e.elapsed=(null===(a=e.status)||void 0===a?void 0:a.elapsed)||(null===(s=e.status)||void 0===s?void 0:s.position)||0,"play"===(null===(u=e.status)||void 0===u?void 0:u.state)&&(e.elapsed+=Math.round(t.getTime()-e.lastSync)))}),1e3)}},Nt=n(3744);const Rt=(0,Nt.Z)(Wt,[["render",It],["__scopeId","data-v-8db4988a"]]);var Lt=Rt,At={name:"View",components:{Controls:Lt},emits:["play","pause","stop","next","previous","set-volume","seek","consume","random","repeat","search"],props:{pluginName:{type:String,required:!0},status:{type:Object,default:function(){}},track:{type:Object},buttons:{type:Object}}};const Bt=(0,Nt.Z)(At,[["render",l],["__scopeId","data-v-70d7a7df"]]);var Ht=Bt},8070:function(t,e,n){"use strict";n.d(e,{Z:function(){return k}});var a=n(6252),s=n(3577),u=n(9963),o={class:"slider-wrapper"},l=["min","max","step","disabled","value"],i={class:"track-inner",ref:"track"},r={class:"thumb",ref:"thumb"},c=["textContent"];function d(t,e,n,d,p,f){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:(0,s.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:e[0]||(e[0]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onChange:e[1]||(e[1]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onMouseup:e[2]||(e[2]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onMousedown:e[3]||(e[3]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onTouchstart:e[4]||(e[4]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onTouchend:e[5]||(e[5]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onKeyup:e[6]||(e[6]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"])),onKeydown:e[7]||(e[7]=(0,u.iM)((function(){return f.onUpdate&&f.onUpdate.apply(f,arguments)}),["stop"]))},null,42,l),(0,a._)("div",{class:(0,s.C_)(["track",{"with-label":n.withLabel}])},[(0,a._)("div",i,null,512)],2),(0,a._)("div",r,null,512),n.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,s.zw)(n.value),ref:"label"},null,8,c)):(0,a.kq)("",!0)])}var p=n(4648),f=(n(9653),{name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:function(){return[0,100]}},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate:function(t){this.update(t.target.value),this.$emit(t.type,(0,p.Z)((0,p.Z)({},t),{},{target:(0,p.Z)((0,p.Z)({},t.target),{},{value:this.$refs.range.value})}))},update:function(t){var e=this.$refs.range.clientWidth,n=(t-this.range[0])/(this.range[1]-this.range[0]),a=n*e,s=this.$refs.thumb;s.style.left="".concat(a-s.clientWidth/2,"px"),this.$refs.thumb.style.transform="translate(-".concat(n,"%, -50%)"),this.$refs.track.style.width="".concat(a,"px")}},mounted:function(){null!=this.value&&this.update(this.value)}}),m=n(3744);const v=(0,m.Z)(f,[["render",d],["__scopeId","data-v-0359812c"]]);var k=v}}]); +//# sourceMappingURL=7029-legacy.c3dab656.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7029-legacy.c3dab656.js.map b/platypush/backend/http/webapp/dist/static/js/7029-legacy.c3dab656.js.map new file mode 100644 index 000000000..827930021 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/7029-legacy.c3dab656.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/7029-legacy.c3dab656.js","mappings":"iGAGAA,EAAOC,QAAUC,OAAOC,IAAM,SAAYC,EAAGC,GAE3C,OAAOD,IAAMC,EAAU,IAAND,GAAW,EAAIA,IAAM,EAAIC,EAAID,GAAKA,GAAKC,GAAKA,CAC/D,C,uBCNA,IAAIC,EAAI,EAAQ,MACZC,EAAS,EAAQ,MAIrBD,EAAE,CAAEE,OAAQ,SAAUC,OAAO,GAAQ,CACnCF,OAAQA,G,oCCLV,IAAIG,EAAO,EAAQ,MACfC,EAAgC,EAAQ,MACxCC,EAAW,EAAQ,MACnBC,EAAyB,EAAQ,MACjCC,EAAY,EAAQ,MACpBC,EAAW,EAAQ,MACnBC,EAAY,EAAQ,MACpBC,EAAa,EAAQ,MAGz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pack://platypush/./node_modules/core-js/modules/es.string.repeat.js","webpack://platypush/./node_modules/core-js/modules/es.string.search.js","webpack://platypush/./src/components/Media/View.vue","webpack://platypush/./src/components/Media/Controls.vue","webpack://platypush/./src/components/Media/Controls.vue?3032","webpack://platypush/./src/components/Media/View.vue?78ca","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f"],"sourcesContent":["// `SameValue` abstract operation\n// https://tc39.es/ecma262/#sec-samevalue\n// eslint-disable-next-line es-x/no-object-is -- safe\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n","var $ = require('../internals/export');\nvar repeat = require('../internals/string-repeat');\n\n// `String.prototype.repeat` method\n// https://tc39.es/ecma262/#sec-string.prototype.repeat\n$({ target: 'String', proto: true }, {\n repeat: repeat\n});\n","'use strict';\nvar call = require('../internals/function-call');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar sameValue = require('../internals/same-value');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@search logic\nfixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {\n return [\n // `String.prototype.search` method\n // https://tc39.es/ecma262/#sec-string.prototype.search\n function search(regexp) {\n var O = requireObjectCoercible(this);\n var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);\n return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));\n },\n // `RegExp.prototype[@@search]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@search\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeSearch, rx, S);\n\n if (res.done) return res.value;\n\n var previousLastIndex = rx.lastIndex;\n if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;\n var result = regExpExec(rx, S);\n if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;\n return result === null ? -1 : result.index;\n }\n ];\n});\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=8db4988a&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=8db4988a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8db4988a\"]])\n\nexport default __exports__","import { render } from \"./View.vue?vue&type=template&id=70d7a7df&scoped=true\"\nimport script from \"./View.vue?vue&type=script&lang=js\"\nexport * from \"./View.vue?vue&type=script&lang=js\"\n\nimport \"./View.vue?vue&type=style&index=0&id=70d7a7df&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70d7a7df\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__"],"names":["module","exports","Object","is","x","y","$","repeat","target","proto","call","fixRegExpWellKnownSymbolLogic","anObject","requireObjectCoercible","sameValue","toString","getMethod","regExpExec","SEARCH","nativeSearch","maybeCallNative","regexp","O","this","searcher","undefined","RegExp","string","rx","S","res","done","value","previousLastIndex","lastIndex","result","index","class","status","track","buttons","$emit","$event","expanded","buttons_","previous","title","stop","state","next","disabled","muted","volume","range","volumeRange","consume","random","convertTime","elapsed","duration","album","href","$route","fullPath","length","artist","url","name","components","Slider","mixins","Utils","emits","props","type","default","Array","data","keys","lastSync","position","computed","methods","getTime","Date","mounted","self","$watch","setInterval","Math","round","__exports__","Controls","pluginName","String","required","render","ref","withLabel","min","max","step","onUpdate","Number","Boolean","event","update","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","width"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js b/platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js new file mode 100644 index 000000000..7ccd752fe --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[747],{4212:function(e,t,n){n.d(t,{N:function(){return o}});class o{constructor(e){if(this.ranges={hue:[0,360],sat:[0,100],bri:[0,100],ct:[154,500]},e)for(const t of Object.keys(this.ranges))e[t]&&(this.ranges[t]=e[t])}normalize(e,t,n){return n[0]+(e-t[0])*(n[1]-n[0])/(t[1]-t[0])}hslToRgb(e,t,n){[e,t,n]=[this.normalize(e,this.ranges.hue,[0,360]),this.normalize(t,this.ranges.sat,[0,100]),this.normalize(n,this.ranges.bri,[0,100])],n/=100;const o=t*Math.min(n,1-n)/100,s=t=>{const s=(t+e/30)%12,i=n-o*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*i)};return[s(0),s(8),s(4)]}rgbToHsl(e,t,n){e/=255,t/=255,n/=255;const o=Math.max(e,t,n),s=Math.min(e,t,n);let i,l,a=(o+s)/2;if(o===s)i=l=0;else{const r=o-s;switch(l=a>.5?r/(2-o-s):r/(o+s),o){case e:i=(t-n)/r+(tc&&a>r&&a>1?(r/=a,c/=a,a=1):r>c&&r>a&&r>1?(a/=r,c/=r,r=1):c>a&&c>r&&c>1&&(a/=c,r/=c,c=1),a=a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055,r=r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055,c=c<=.0031308?12.92*c:1.055*Math.pow(c,1/2.4)-.055,a=Math.round(255*a),r=Math.round(255*r),c=Math.round(255*c),isNaN(a)&&(a=0),isNaN(r)&&(r=0),isNaN(c)&&(c=0),[a,r,c].map((e=>Math.min(Math.max(0,e),255)))}rgbToXY(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;const o=.664511*e+.154324*t+.162028*n,s=.283881*e+.668433*t+.047685*n,i=88e-6*e+.07231*t+.986039*n;let l=parseFloat((o/(o+s+i)).toFixed(4)),a=parseFloat((s/(o+s+i)).toFixed(4));return isNaN(l)&&(l=0),isNaN(a)&&(a=0),[l,a]}rgbToBri(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}getRGB(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}getXY(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}toRGB(e){const t=this.getRGB(e);if(t)return t;const n=this.getXY(e);return n&&e.bri?this.xyToRgb(...n,e.bri):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}toXY(e){const t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];const n=this.getRGB(e);if(n)return this.rgbToXY(...n);if(e.hue&&e.sat&&e.bri){const t=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY(...t)}console.debug("Could not determine color space"),console.debug(e)}toHSL(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];const t=this.getRGB(e);if(t)return this.rgbToHsl(...t);const n=this.getXY(e);if(n&&e.bri){const t=this.xyToRgb(...n,e.bri);return this.rgbToHsl(...t)}console.debug("Could not determine color space"),console.debug(e)}hexToRgb(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((e=>parseInt(e,16)))}rgbToHex(e){return"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}},8070:function(e,t,n){n.d(t,{Z:function(){return m}});var o=n(6252),s=n(3577),i=n(9963);const l={class:"slider-wrapper"},a=["min","max","step","disabled","value"],r={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},u=["textContent"];function g(e,t,n,g,d,p){return(0,o.wg)(),(0,o.iD)("label",l,[(0,o._)("input",{class:(0,s.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:t[0]||(t[0]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,i.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"]))},null,42,a),(0,o._)("div",{class:(0,s.C_)(["track",{"with-label":n.withLabel}])},[(0,o._)("div",r,null,512)],2),(0,o._)("div",c,null,512),n.withLabel?((0,o.wg)(),(0,o.iD)("span",{key:0,class:"label",textContent:(0,s.zw)(n.value),ref:"label"},null,8,u)):(0,o.kq)("",!0)])}var d={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,n=(e-this.range[0])/(this.range[1]-this.range[0]),o=n*t,s=this.$refs.thumb;s.style.left=o-s.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${n}%, -50%)`,this.$refs.track.style.width=`${o}px`}},mounted(){null!=this.value&&this.update(this.value)}},p=n(3744);const h=(0,p.Z)(d,[["render",g],["__scopeId","data-v-0359812c"]]);var m=h},6:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(6252),s=n(3577),i=n(9963);const l=e=>((0,o.dD)("data-v-a6396ae8"),e=e(),(0,o.Cn)(),e),a=["checked"],r=l((()=>(0,o._)("div",{class:"switch"},[(0,o._)("div",{class:"dot"})],-1))),c={class:"label"};function u(e,t,n,l,u,g){return(0,o.wg)(),(0,o.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,i.iM)(((...e)=>g.onInput&&g.onInput(...e)),["stop"]))},[(0,o._)("input",{type:"checkbox",checked:n.value},null,8,a),(0,o._)("label",null,[r,(0,o._)("span",c,[(0,o.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var g={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},d=n(3744);const p=(0,d.Z)(g,[["render",u],["__scopeId","data-v-a6396ae8"]]);var h=p},747:function(e,t,n){n.r(t),n.d(t,{default:function(){return Bt}});var o=n(6252);const s={class:"plugin lights-plugin"},i={key:0,class:"panel"},l={key:1,class:"panel"};function a(e,t,n,a,r,c){const u=(0,o.up)("Groups"),g=(0,o.up)("Group");return(0,o.wg)(),(0,o.iD)("div",s,[null==r.selectedGroup&&n.groups&&Object.keys(n.groups).length?((0,o.wg)(),(0,o.iD)("div",i,[(0,o.Wm)(u,{groups:n.groups,"loading-groups":n.loadingGroups,"color-converter":n.colorConverter,onSelect:t[0]||(t[0]=e=>r.selectedGroup=e),onToggle:t[1]||(t[1]=t=>e.$emit("group-toggle",t))},null,8,["groups","loading-groups","color-converter"])])):((0,o.wg)(),(0,o.iD)("div",l,[(0,o.Wm)(g,{group:n.groups[r.selectedGroup],lights:c.displayedLights,scenes:c.scenesByGroup[r.selectedGroup],"color-converter":n.colorConverter,animations:c.animationsByGroup[r.selectedGroup],onClose:t[2]||(t[2]=e=>r.selectedGroup=null),onLightToggle:t[3]||(t[3]=t=>e.$emit("light-toggle",t)),onGroupToggle:t[4]||(t[4]=t=>e.$emit("group-toggle",t)),onSetLight:t[5]||(t[5]=t=>e.$emit("set-light",t)),onSetGroup:t[6]||(t[6]=t=>e.$emit("set-group",{groupId:r.selectedGroup,value:t})),onSelectScene:t[7]||(t[7]=t=>e.$emit("select-scene",{groupId:r.selectedGroup,sceneId:t})),onStartAnimation:t[8]||(t[8]=t=>e.$emit("start-animation",t)),onStopAnimation:t[9]||(t[9]=t=>e.$emit("stop-animation",t))},null,8,["group","lights","scenes","color-converter","animations"])]))])}var r=n(6813),c={name:"Panel",emits:["mounted"],props:{config:{type:Object,default:()=>{}},pluginName:{type:String,required:!0}},data(){return{loading:!1}},mounted(){this.$emit("mounted",this)}};const u=c;var g=u,d=n(3577);const p=e=>((0,o.dD)("data-v-42318a2b"),e=e(),(0,o.Cn)(),e),h={class:"panel-row header"},m=p((()=>(0,o._)("div",{class:"col-3"},[(0,o._)("i",{class:"icon fas fa-home"})],-1))),v=p((()=>(0,o._)("div",{class:"col-6 name"}," Rooms ",-1))),b={class:"col-3 pull-right"},_=["onClick"],w={class:"name col-9"},y={class:"controls col-3 pull-right"};function f(e,t,n,s,i,l){const a=(0,o.up)("ToggleSwitch"),r=(0,o.up)("MenuPanel");return(0,o.wg)(),(0,o.j4)(r,null,{default:(0,o.w5)((()=>[(0,o._)("div",h,[m,v,(0,o._)("div",b,[(0,o.Wm)(a,{value:l.anyLightsOn,onInput:t[0]||(t[0]=t=>e.$emit("toggle"))},null,8,["value"])])]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(l.groupsSorted,(t=>((0,o.wg)(),(0,o.iD)("div",{class:"panel-row row group",key:t.id,onClick:n=>e.$emit("select",t.id)},[(0,o._)("span",w,(0,d.zw)(t.name||`[Group ${t.id}]`),1),(0,o._)("span",y,[(0,o.Wm)(a,{value:t.state.any_on,disabled:t.id in(n.loadingGroups||{}),onInput:n=>e.$emit("toggle",t)},null,8,["value","disabled","onInput"])])],8,_)))),128))])),_:1})}const C={class:"menu-panel"},k={class:"content"};function S(e,t,n,s,i,l){return(0,o.wg)(),(0,o.iD)("div",C,[(0,o._)("div",k,[(0,o.WI)(e.$slots,"default")])])}var j={name:"MenuPanel"},O=n(3744);const M=(0,O.Z)(j,[["render",S]]);var L=M,$=n(6),D=n(4212),G={name:"Groups",components:{ToggleSwitch:$.Z,MenuPanel:L},emits:["select","toggle"],props:{groups:{type:Object,default:()=>{}},loadingGroups:{type:Object,default:()=>{}},colorConverter:{type:Object,default:()=>new D.N}},computed:{groupsSorted(){return Object.entries(this.groups).sort(((e,t)=>e[1].name.localeCompare(t[1].name))).map((([e,t])=>({...t,id:e})))},anyLightsOn(){for(const e of Object.values(this.groups))if(e?.state?.any_on)return!0;return!1}}};const x=(0,O.Z)(G,[["render",f],["__scopeId","data-v-42318a2b"]]);var I=x;const T={class:"light-group-container"},U={class:"panel-row header"},A={key:0,class:"col-3"},B=(0,o._)("i",{class:"fas fa-chevron-left"},null,-1),N=[B],W=["textContent"],R={key:1,class:"col-3 pull-right"},Z={key:0,class:"no-lights"},q={key:1,class:"lights-view"},z={class:"row view-selector"},H=(0,o._)("i",{class:"icon fas fa-lightbulb"},null,-1),V=[H],Y=(0,o._)("i",{class:"icon far fa-image"},null,-1),F=[Y],X=(0,o._)("i",{class:"icon fas fa-video"},null,-1),K=[X],P={key:0,class:"view fade-in"},E=["onClick"],J={key:1,class:"view fade-in"},Q=["onClick"],ee={key:2,class:"view group-controls fade-in"},te={key:3,class:"view group-controls fade-in"};function ne(e,t,n,s,i,l){const a=(0,o.up)("ToggleSwitch"),r=(0,o.up)("Light"),c=(0,o.up)("Scene"),u=(0,o.up)("Controls"),g=(0,o.up)("Animate"),p=(0,o.up)("MenuPanel");return(0,o.wg)(),(0,o.iD)("div",T,[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o._)("div",U,[n.group?((0,o.wg)(),(0,o.iD)("div",A,[(0,o._)("button",{class:"back-btn",title:"Back",onClick:t[0]||(t[0]=(...e)=>l.close&&l.close(...e))},N)])):(0,o.kq)("",!0),(0,o._)("div",{class:(0,d.C_)(["col-6 name",{selected:"group"===i.selectedView}]),textContent:(0,d.zw)(l.groupName),onClick:t[1]||(t[1]=e=>i.selectedView="group"===i.selectedView?null:"group")},null,10,W),n.group?((0,o.wg)(),(0,o.iD)("div",R,[(0,o.Wm)(a,{value:n.group.state.any_on,onInput:t[2]||(t[2]=t=>e.$emit("group-toggle",n.group))},null,8,["value"])])):(0,o.kq)("",!0)]),n.lights&&Object.keys(n.lights).length?((0,o.wg)(),(0,o.iD)("div",q,[(0,o._)("div",z,[(0,o._)("button",{class:(0,d.C_)({selected:"lights"===i.selectedView}),title:"Lights",onClick:t[3]||(t[3]=e=>i.selectedView="lights")},V,2),(0,o._)("button",{class:(0,d.C_)({selected:"scenes"===i.selectedView}),title:"Scenes",onClick:t[4]||(t[4]=e=>i.selectedView="scenes")},F,2),(0,o._)("button",{class:(0,d.C_)({selected:"animate"===i.selectedView}),title:"Animate",onClick:t[5]||(t[5]=e=>i.selectedView="animate")},K,2)]),"lights"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",P,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(l.lightsSorted,((t,s)=>((0,o.wg)(),(0,o.iD)("div",{class:(0,d.C_)(["panel-row row",{expanded:t.id===i.selectedLight}]),key:s,onClick:e=>i.selectedLight=i.selectedLight===t.id?null:t.id},[(0,o.Wm)(r,{light:t,group:n.group,collapsed:t.id!==i.selectedLight,"color-converter":n.colorConverter,onToggle:n=>e.$emit("light-toggle",t),onSetLight:n=>e.$emit("set-light",{light:t,value:n})},null,8,["light","group","collapsed","color-converter","onToggle","onSetLight"])],10,E)))),128))],1024))])):"scenes"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",J,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(l.scenesSorted,((e,t)=>((0,o.wg)(),(0,o.iD)("div",{class:(0,d.C_)(["panel-row row",{selected:e.id===i.selectedScene}]),key:t,onClick:t=>l.onSceneSelected(e.id)},[(0,o.Wm)(c,{scene:e,group:n.group},null,8,["scene","group"])],10,Q)))),128))],1024))])):"group"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",ee,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[(0,o.Wm)(u,{group:n.group,lights:n.lights,"color-converter":n.colorConverter,onSetGroup:t[6]||(t[6]=t=>e.$emit("set-group",t))},null,8,["group","lights","color-converter"])],1024))])):"animate"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",te,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[(0,o.Wm)(g,{group:n.group,lights:n.lights,"color-converter":n.colorConverter,"running-animations":n.animations,onStart:t[7]||(t[7]=t=>e.$emit("start-animation",t)),onStop:t[8]||(t[8]=t=>e.$emit("stop-animation",t))},null,8,["group","lights","color-converter","running-animations"])],1024))])):(0,o.kq)("",!0)])):((0,o.wg)(),(0,o.iD)("div",Z," No lights found "))])),_:1})])}const oe={class:"row"},se={class:"toggle col-3 pull-right"},ie={key:0,class:"row fade-in"};function le(e,t,n,s,i,l){const a=(0,o.up)("ToggleSwitch"),r=(0,o.up)("Controls");return(0,o.wg)(),(0,o.iD)("div",{class:(0,d.C_)(["light",{expanded:!n.collapsed}]),ref:"element"},[(0,o._)("div",oe,[(0,o._)("span",{class:"name col-9",onClick:t[0]||(t[0]=(...e)=>l.expandToggle&&l.expandToggle(...e))},(0,d.zw)(n.light.name||`[Light ${n.light.id}]`),1),(0,o._)("span",se,[(0,o.Wm)(a,{value:n.light.state.on,disabled:n.loading,onInput:t[1]||(t[1]=t=>e.$emit("toggle",n.light))},null,8,["value","disabled"])])]),n.collapsed?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("div",ie,[(0,o.Wm)(r,{light:n.light,loading:n.loading,"color-converter":n.colorConverter,onSetLight:t[2]||(t[2]=t=>e.$emit("set-light",t))},null,8,["light","loading","color-converter"])]))],2)}var ae=n(9963);const re=e=>((0,o.dD)("data-v-e2726892"),e=e(),(0,o.Cn)(),e),ce={key:1,class:"row"},ue=re((()=>(0,o._)("div",{class:"col-1 icon"},[(0,o._)("i",{class:"fas fa-sun"})],-1))),ge={class:"col-11 control"},de={key:2,class:"row"},pe=re((()=>(0,o._)("div",{class:"col-1 icon"},[(0,o._)("i",{class:"fas fa-thermometer-half"})],-1))),he={class:"col-11 control"},me={key:3,class:"row"},ve=re((()=>(0,o._)("span",{class:"col-1 icon"},[(0,o._)("i",{class:"fas fa-palette"})],-1))),be={class:"col-11 control"},_e=["value"];function we(e,t,n,s,i,l){const a=(0,o.up)("Loading"),r=(0,o.up)("Slider");return(0,o.wg)(),(0,o.iD)("div",{class:"controls light-controls",onClick:t[3]||(t[3]=e=>e.stopPropagation())},[n.loading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),null!=l.state.bri?((0,o.wg)(),(0,o.iD)("div",ce,[ue,(0,o._)("div",ge,[(0,o.Wm)(r,{range:n.colorConverter.ranges.bri,disabled:n.loading,value:l.state.bri,onMouseup:t[0]||(t[0]=(0,ae.iM)((t=>e.$emit(n.light?"set-light":"set-group",{brightness:parseInt(t.target.value)})),["stop"]))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),null!=l.state.ct?((0,o.wg)(),(0,o.iD)("div",de,[pe,(0,o._)("div",he,[(0,o.Wm)(r,{range:n.colorConverter.ranges.ct,disabled:n.loading,value:l.state.ct,onMouseup:t[1]||(t[1]=(0,ae.iM)((t=>e.$emit(n.light?"set-light":"set-group",{temperature:parseInt(t.target.value)})),["stop"]))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),l.rgbColor?((0,o.wg)(),(0,o.iD)("label",me,[ve,(0,o._)("span",be,[(0,o._)("input",{type:"color",value:l.rgbColor,onChange:t[2]||(t[2]=(0,ae.iM)(((...e)=>l.onColorSelect&&l.onColorSelect(...e)),["stop"]))},null,40,_e)])])):(0,o.kq)("",!0)])}var ye=n(8070),fe=n(1232),Ce={name:"Controls",components:{Loading:fe.Z,Slider:ye.Z},emits:["set-light","set-group"],props:{light:{type:Object},lights:{type:Object},group:{type:Object},loading:{type:Boolean,default:!1},colorConverter:{type:Object,default:()=>new D.N}},computed:{state(){if(this.light?.state)return this.light.state;const e=this.group?.state||{};if(!this.lights)return e;const t=e=>e&&e.length?e[0]instanceof Array?[...e[0].keys()].map((n=>t(e.map((e=>e[n]))))):e.reduce(((e,t)=>e+t),0)/e.length:0;return{...e,...Object.entries(Object.values(this.lights).reduce(((e,t)=>(["bri","hue","sat","rgb","xy","red","green","blue","ct"].forEach((n=>{null!=t.state?.[n]&&(e[n]=[...e[n]||[],t.state[n]])})),e)),{})).reduce(((e,[n,o])=>(e[n]=t(o),e)),{})}},color(){return this.getColor(this.state)},rgbColor(){const e=this.colorConverter.toRGB(this.state);return e?"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join(""):null}},methods:{onColorSelect(e){const t=e.target.value.slice(1).split(/(?=(?:..)*$)/).map((e=>parseInt(`0x${e}`)));this.$emit(this.light?"set-light":"set-group",{rgb:t,xy:this.colorConverter.rgbToXY(...t),hsl:this.colorConverter.rgbToHsl(...t),brightness:this.colorConverter.rgbToBri(...t)})},getColor(e){return{rgb:this.colorConverter.toRGB(e),xy:this.colorConverter.toXY(e),hsl:this.colorConverter.toHSL(e)}}}};const ke=(0,O.Z)(Ce,[["render",we],["__scopeId","data-v-e2726892"]]);var Se=ke,je={name:"Light",components:{Controls:Se,ToggleSwitch:$.Z},emits:["toggle","set-light","collapsed","expanded"],props:{light:{type:Object,default:()=>{}},group:{type:Object,default:()=>{}},loading:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!0},colorConverter:{type:Object,default:()=>new D.N}},methods:{expandToggle(){this.$emit(this.collapsed?"expanded":"collapsed")}}};const Oe=(0,O.Z)(je,[["render",le],["__scopeId","data-v-52168252"]]);var Me=Oe;function Le(e,t,n,s,i,l){const a=(0,o.up)("Loading");return(0,o.wg)(),(0,o.iD)(o.HY,null,[n.loading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),(0,o._)("div",{class:"scene row name",onClick:t[0]||(t[0]=(...e)=>l.onSelect&&l.onSelect(...e))},(0,d.zw)(n.scene.name||`[Scene ${n.scene.id}]`),1)],64)}var $e={name:"Light",emits:["select"],props:{scene:{type:Object,default:()=>{}},group:{type:Object,default:()=>{}},loading:{type:Boolean,default:!1}},methods:{onSelect(){if(this.loading)return!1;this.$emit("select")}}};const De=(0,O.Z)($e,[["render",Le]]);var Ge=De;const xe=e=>((0,o.dD)("data-v-1739aaba"),e=e(),(0,o.Cn)(),e),Ie={class:"animation-container"},Te={class:"animation-header"},Ue={class:"row"},Ae=xe((()=>(0,o._)("div",{class:"col-3"}," Run Animation ",-1))),Be={class:"col-9"},Ne={class:"row"},We=xe((()=>(0,o._)("div",{class:"col-3"},"Animation",-1))),Re={class:"col-9"},Ze=xe((()=>(0,o._)("option",{value:"color_transition"},"Color transition",-1))),qe=xe((()=>(0,o._)("option",{value:"blink"},"Blink",-1))),ze=[Ze,qe],He={class:"animation"},Ve={key:0,class:"row"},Ye=xe((()=>(0,o._)("div",{class:"col-3"}," Hue range ",-1))),Fe={class:"col-9"},Xe={key:1,class:"row"},Ke=xe((()=>(0,o._)("div",{class:"col-3"}," Sat range ",-1))),Pe={class:"col-9"},Ee={key:2,class:"row"},Je=xe((()=>(0,o._)("div",{class:"col-3"}," Bri range ",-1))),Qe={class:"col-9"},et={key:3,class:"row"},tt=xe((()=>(0,o._)("div",{class:"col-3"}," Hue step ",-1))),nt={class:"col-9"},ot={key:4,class:"row"},st=xe((()=>(0,o._)("div",{class:"col-3"}," Sat step ",-1))),it={class:"col-9"},lt={key:5,class:"row"},at=xe((()=>(0,o._)("div",{class:"col-3"}," Bri step ",-1))),rt={class:"col-9"},ct={class:"row"},ut=xe((()=>(0,o._)("div",{class:"col-3"}," Refresh seconds ",-1))),gt={class:"col-9"},dt=["value"],pt={class:"row"},ht=xe((()=>(0,o._)("div",{class:"col-3"}," Duration (seconds) ",-1))),mt={class:"col-9"},vt=["value"],bt={class:"lights"},_t={class:"row"},wt=["checked"],yt=(0,o.Uk)(" Select all lights "),ft=["onUpdate:modelValue","onInput"];function Ct(e,t,n,s,i,l){const a=(0,o.up)("Loading"),r=(0,o.up)("ToggleSwitch"),c=(0,o.up)("RangeSlider"),u=(0,o.up)("Slider");return(0,o.wg)(),(0,o.iD)("div",{class:"controls animation-controls",onClick:t[10]||(t[10]=e=>e.stopPropagation())},[n.loading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),(0,o._)("div",Ie,[(0,o._)("div",Te,[(0,o._)("div",Ue,[Ae,(0,o._)("div",Be,[(0,o.Wm)(r,{value:l.animationRunning,onInput:l.toggleAnimation},null,8,["value","onInput"])])]),(0,o._)("div",Ne,[We,(0,o._)("div",Re,[(0,o._)("label",null,[(0,o._)("select",{class:"selector",onClick:t[0]||(t[0]=e=>i.selectedAnimation=e.target.value)},ze)])])])]),(0,o._)("div",He,["color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",Ve,[Ye,(0,o._)("div",Fe,[(0,o.Wm)(c,{range:n.colorConverter.ranges.hue,disabled:n.loading,value:i.animations.color_transition.hue_range,onMouseup:t[1]||(t[1]=e=>i.animations.color_transition.hue_range=e.target.value)},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",Xe,[Ke,(0,o._)("div",Pe,[(0,o.Wm)(c,{range:n.colorConverter.ranges.sat,disabled:n.loading,value:i.animations.color_transition.sat_range,onMouseup:t[2]||(t[2]=e=>i.animations.color_transition.sat_range=e.target.value)},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",Ee,[Je,(0,o._)("div",Qe,[(0,o.Wm)(c,{range:n.colorConverter.ranges.sat,disabled:n.loading,value:i.animations.color_transition.bri_range,onMouseup:t[3]||(t[3]=e=>i.animations.color_transition.bri_range=e.target.value)},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",et,[tt,(0,o._)("div",nt,[(0,o.Wm)(u,{range:n.colorConverter.ranges.hue,disabled:n.loading,value:i.animations.color_transition.hue_step,onMouseup:t[4]||(t[4]=e=>i.animations.color_transition.hue_step=parseFloat(e.target.value))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",ot,[st,(0,o._)("div",it,[(0,o.Wm)(u,{range:n.colorConverter.ranges.sat,disabled:n.loading,value:i.animations.color_transition.sat_step,onMouseup:t[5]||(t[5]=e=>i.animations.color_transition.sat_step=parseFloat(e.target.value))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",lt,[at,(0,o._)("div",rt,[(0,o.Wm)(u,{range:n.colorConverter.ranges.bri,disabled:n.loading,value:i.animations.color_transition.bri_step,onMouseup:t[6]||(t[6]=e=>i.animations.color_transition.bri_step=parseFloat(e.target.value))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),(0,o._)("div",ct,[ut,(0,o._)("div",gt,[(0,o._)("label",null,[(0,o._)("input",{type:"number",value:i.animations[i.selectedAnimation].transition_seconds,step:"0.1",onInput:t[7]||(t[7]=e=>i.animations[i.selectedAnimation].transition_seconds=parseFloat(e.target.value))},null,40,dt)])])]),(0,o._)("div",pt,[ht,(0,o._)("div",mt,[(0,o._)("label",null,[(0,o._)("input",{type:"number",value:i.animations[i.selectedAnimation].duration,step:"5",onInput:t[8]||(t[8]=e=>i.animations[i.selectedAnimation].duration=e.target.value?.length?parseFloat(e.target.value):null)},null,40,vt)])])])])]),(0,o._)("div",bt,[(0,o._)("div",_t,[(0,o._)("label",null,[(0,o._)("input",{type:"checkbox",checked:Object.keys(n.lights).length===Object.values(i.selectedLights).filter((e=>e)).length,onClick:t[9]||(t[9]=(...e)=>l.toggleSelectAll&&l.toggleSelectAll(...e))},null,8,wt),yt])]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(n.lights,((e,t)=>((0,o.wg)(),(0,o.iD)("div",{class:"row",key:t},[(0,o._)("label",null,[(0,o.wy)((0,o._)("input",{type:"checkbox","onUpdate:modelValue":e=>i.selectedLights[t]=e,onInput:e=>i.selectedLights[t]=!i.selectedLights[t]},null,40,ft),[[ae.e8,i.selectedLights[t]]]),(0,o.Uk)(" "+(0,d.zw)(e.name),1)])])))),128))])])}const kt={class:"range-wrapper"},St=["value","min","max","step","disabled"];function jt(e,t,n,s,i,l){return(0,o.wg)(),(0,o.iD)("div",kt,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(n.value,((e,s)=>((0,o.wg)(),(0,o.iD)("input",{class:"slider",type:"range",value:e,min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,ref_for:!0,ref:"ranges",onInput:t[0]||(t[0]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),key:s},null,40,St)))),128))])}var Ot={name:"RangeSlider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},value:{type:Array,default:()=>[0,100]}},methods:{onUpdate(e){this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.ranges.map((e=>parseFloat(e.value))).sort()}})}}};const Mt=(0,O.Z)(Ot,[["render",jt],["__scopeId","data-v-981c5de0"]]);var Lt=Mt,$t={name:"Animate",mixins:[r.Z],components:{ToggleSwitch:$.Z,Slider:ye.Z,RangeSlider:Lt,Loading:fe.Z},emits:["start","stop"],props:{lights:{type:Object},group:{type:Object},loading:{type:Boolean,default:!1},colorConverter:{type:Object,default:()=>new D.N},runningAnimations:{type:Object,default:()=>{}}},data(){return{selectedAnimation:"color_transition",animation:{},selectedLights:Object.keys(this.lights).reduce(((e,t)=>(e[t]=!0,e)),{}),animations:{color_transition:{hue_range:this.colorConverter.ranges.hue,sat_range:[parseInt((this.colorConverter.ranges.sat[1]-this.colorConverter.ranges.sat[0])/2),this.colorConverter.ranges.sat[1]],bri_range:[parseInt(.75*(this.colorConverter.ranges.bri[1]-this.colorConverter.ranges.bri[0])),this.colorConverter.ranges.bri[1]],hue_step:parseInt((this.colorConverter.ranges.hue[1]-this.colorConverter.ranges.hue[0])/25),sat_step:parseInt((this.colorConverter.ranges.sat[1]-this.colorConverter.ranges.sat[0])/50),bri_step:parseInt((this.colorConverter.ranges.bri[1]-this.colorConverter.ranges.bri[0])/50),transition_seconds:1,duration:null},blink:{transition_seconds:1,duration:null}}}},computed:{animationRunning(){return Object.keys(this.runningAnimations).length>0}},methods:{toggleSelectAll(){const e=Object.values(this.selectedLights).filter((e=>e)).length{this.selectedLights[t]=e}))},toggleAnimation(){const e=this.animationRunning?"stop":"start",t=Object.entries(this.selectedLights).filter((e=>e[1])).map((e=>e[0]));t.length?this.$emit(e,{lights:t,animation:{...this.animations[this.selectedAnimation],animation:this.selectedAnimation}}):this.warn("No lights have been selected")}}};const Dt=(0,O.Z)($t,[["render",Ct],["__scopeId","data-v-1739aaba"]]);var Gt=Dt,xt={name:"Group",emits:["close","group-toggle","light-toggle","set-light","select-scene","start-animation","stop-animation"],components:{Animate:Gt,ToggleSwitch:$.Z,MenuPanel:L,Light:Me,Scene:Ge,Controls:Se},props:{lights:{type:Object},group:{type:Object},scenes:{type:Object},animations:{type:Object,default:()=>{}},colorConverter:{type:Object,default:()=>new D.N}},data(){return{selectedLight:null,selectedScene:null,selectedView:"lights"}},computed:{lightsSorted(){return this.lights?Object.entries(this.lights).sort(((e,t)=>e[1].name.localeCompare(t[1].name))).map((([e,t])=>({...t,id:e}))):[]},scenesSorted(){return this.scenes?Object.entries(this.scenes).sort(((e,t)=>e[1].name.localeCompare(t[1].name))).map((([e,t])=>({...t,id:e}))):[]},groupName(){return this.group?.name?this.group.name:null!=this.group?.id?`[Group ${this.group.id}]`:"Lights"}},methods:{close(e){e.stopPropagation(),this.$emit("close")},onSceneSelected(e){this.selectedScene=e,this.$emit("select-scene",e)}}};const It=(0,O.Z)(xt,[["render",ne]]);var Tt=It,Ut={name:"Light",components:{Group:Tt,Groups:I},mixins:[r.Z,g],emits:["group-toggle","light-toggle","set-light","set-group","select-scene","start-animation","stop-animation","refresh","light-changed"],props:{lights:{type:Object},groups:{type:Object},scenes:{type:Object},animations:{type:Object},colorConverter:{type:Object,default:()=>new D.N},loadingLights:{type:Object,default:()=>{}},loadingGroups:{type:Object,default:()=>{}},pluginName:{type:String},initialGroup:{type:[Number,String]}},data(){return{selectedGroup:null,initialized:!1}},computed:{displayedLights(){const e=this.selectedGroup||this.initialGroup;return null==e?this.lights:this.groups[e].lights.reduce(((e,t)=>(e[t]=this.lights[t],e)),{})},groupsByLight(){return this.groups?Object.entries(this.groups).reduce(((e,[t,n])=>(n.lights.forEach((o=>{e[o]||(e[o]={}),e[o][t]=n})),e)),{}):{}},scenesByGroup(){if(!this.scenes)return{};const e=this;return Object.entries(this.scenes).reduce(((t,[n,o])=>(o.lights.forEach((s=>{Object.keys(e.groupsByLight[s]).forEach((e=>{t[e]||(t[e]={}),t[e][n]=o}))})),t)),{})},animationsByGroup(){const e=this,t=Object.entries(this.animations?.groups||{}).reduce(((e,[t,n])=>(e[t]={},n&&(e[t][null]=n),e)),{});return{...t,...Object.entries(this.animations?.lights||{}).reduce(((t,[n,o])=>{const s=Object.values(e.groupsByLight[n])?.[0];return s&&o&&null!=s.id&&(t[s.id]||(t[s.id]={}),t[s.id][n]=o),t}),{})}}},methods:{initSelectedGroup(){const e=this,t=this.$watch((()=>e.initialGroup),(n=>{e.initialized||(e.initialized=!0,t(),null==e.selectedGroup&&null!=n&&(e.selectedGroup=e.initialGroup))}))},refresh(){this.$emit("refresh")},onLightChange(e){if(e.plugin_name!==this.pluginName)return;if(!this.lights[e.light_id])return void this.refresh();const t={...e},n=t.light_id;delete t.light_id,delete t.type,delete t.plugin_name,this.$emit("light-changed",{id:n,state:t})},onAnimationChange(e){e.plugin_name===this.pluginName&&this.refresh()}},mounted(){this.subscribe(this.onLightChange,"on-light-change","platypush.message.event.light.LightStatusChangeEvent"),this.subscribe(this.onAnimationChange,"on-animation-change","platypush.message.event.light.LightAnimationStartedEvent","platypush.message.event.light.LightAnimationStoppedEvent"),this.initSelectedGroup()},unmounted(){this.unsubscribe("on-light-change"),this.unsubscribe("on-animation-change")}};const At=(0,O.Z)(Ut,[["render",a],["__scopeId","data-v-781dd72c"]]);var Bt=At}}]); +//# sourceMappingURL=747.0ee05dee.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/1406-legacy.531be9a8.js.map b/platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js.map similarity index 52% rename from platypush/backend/http/webapp/dist/static/js/1406-legacy.531be9a8.js.map rename to platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js.map index adf965cda..f144ee50f 100644 --- a/platypush/backend/http/webapp/dist/static/js/1406-legacy.531be9a8.js.map +++ b/platypush/backend/http/webapp/dist/static/js/747.0ee05dee.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/1406-legacy.531be9a8.js","mappings":"uKAAe,SAASA,EAAgBC,EAAUC,GAChD,KAAMD,aAAoBC,GACxB,MAAM,IAAIC,UAAU,oCAEvB,CCJD,SAASC,EAAkBC,EAAQC,GACjC,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CACrC,IAAIE,EAAaH,EAAMC,GACvBE,EAAWC,WAAaD,EAAWC,aAAc,EACjDD,EAAWE,cAAe,EACtB,UAAWF,IAAYA,EAAWG,UAAW,GACjDC,O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sG,EAAUjE,EAAM2F,gBACf3F,EAAM2F,gBACN3F,EAAMnD,YACNmD,EAAM0F,YAEbzM,KAAK4E,MAAM,gBAAiB,CAC1BkC,GAAIkE,EACJjE,MAAOA,GAVT,MAFE/G,KAAKuM,SAcR,EAEDI,kBAvCO,SAuCWjI,GACZA,EAAM+H,cAAgBzM,KAAKuG,YAG/BvG,KAAKuM,SACN,GAGHlH,QAhLa,WAiLXrF,KAAK4M,UAAU5M,KAAKwM,cAAe,kBAC/B,wDACJxM,KAAK4M,UAAU5M,KAAK2M,kBAAmB,sBACnC,2DACA,4DAEJ3M,KAAKmM,mBACN,EAEDU,UA1La,WA2LX7M,KAAK8M,YAAY,mBACjB9M,KAAK8M,YAAY,sBAClB,GmBjNH,MAAM,IAA2B,OAAgB,GAAQ,CAAC,CAAC,SAASvH,GAAQ,CAAC,YAAY,qBAEzF,S","sources":["webpack://platypush/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://platypush/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Light/Index.vue","webpack://platypush/./src/components/panels/Panel.vue","webpack://platypush/./src/components/panels/Panel.vue?40a7","webpack://platypush/./src/components/Light/Groups.vue","webpack://platypush/./src/components/MenuPanel.vue","webpack://platypush/./src/components/MenuPanel.vue?e8bb","webpack://platypush/./src/components/Light/Groups.vue?f495","webpack://platypush/./src/components/Light/Group.vue","webpack://platypush/./src/components/Light/Light.vue","webpack://platypush/./src/components/Light/Controls.vue","webpack://platypush/./src/components/Light/Controls.vue?5766","webpack://platypush/./src/components/Light/Light.vue?eed6","webpack://platypush/./src/components/Light/Scene.vue","webpack://platypush/./src/components/Light/Scene.vue?87a4","webpack://platypush/./src/components/Light/Animate.vue","webpack://platypush/./src/components/elements/RangeSlider.vue","webpack://platypush/./src/components/elements/RangeSlider.vue?500a","webpack://platypush/./src/components/Light/Animate.vue?a3c2","webpack://platypush/./src/components/Light/Group.vue?06ce","webpack://platypush/./src/components/panels/Light/Index.vue?36e9"],"sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n","import script from \"./Panel.vue?vue&type=script&lang=js\"\nexport * from \"./Panel.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./MenuPanel.vue?vue&type=template&id=02113104\"\nimport script from \"./MenuPanel.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPanel.vue?vue&type=script&lang=js\"\n\nimport \"./MenuPanel.vue?vue&type=style&index=0&id=02113104&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Groups.vue?vue&type=template&id=42318a2b&scoped=true\"\nimport script from \"./Groups.vue?vue&type=script&lang=js\"\nexport * from \"./Groups.vue?vue&type=script&lang=js\"\n\nimport \"./Groups.vue?vue&type=style&index=0&id=42318a2b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42318a2b\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=e2726892&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=e2726892&lang=scss&scoped=true\"\nimport \"./Controls.vue?vue&type=style&index=1&id=e2726892&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2726892\"]])\n\nexport default __exports__","import { render } from \"./Light.vue?vue&type=template&id=52168252&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=52168252&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-52168252\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Scene.vue?vue&type=template&id=6934d062\"\nimport script from \"./Scene.vue?vue&type=script&lang=js\"\nexport * from \"./Scene.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./RangeSlider.vue?vue&type=template&id=981c5de0&scoped=true\"\nimport script from \"./RangeSlider.vue?vue&type=script&lang=js\"\nexport * from \"./RangeSlider.vue?vue&type=script&lang=js\"\n\nimport \"./RangeSlider.vue?vue&type=style&index=0&id=981c5de0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-981c5de0\"]])\n\nexport default __exports__","import { render } from \"./Animate.vue?vue&type=template&id=1739aaba&scoped=true\"\nimport script from \"./Animate.vue?vue&type=script&lang=js\"\nexport * from \"./Animate.vue?vue&type=script&lang=js\"\n\nimport \"./Animate.vue?vue&type=style&index=0&id=1739aaba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1739aaba\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=4de1a560\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=4de1a560&lang=scss\"\nimport \"./Group.vue?vue&type=style&index=1&id=4de1a560&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=781dd72c&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=781dd72c&lang=scss&scoped=true\"\nimport \"./Index.vue?vue&type=style&index=1&id=781dd72c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-781dd72c\"]])\n\nexport default __exports__"],"names":["_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","ColorConverter","ranges","this","hue","sat","bri","ct","keys","attr","x","xRange","yRange","h","s","l","normalize","a","Math","min","f","n","k","color","max","round","r","g","b","d","parseInt","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","parseFloat","rgbToHsl","rgb","xy","getRGB","getXY","xyToRgb","hslToRgb","console","debug","rgbToXY","hex","slice","_","toString","join","class","ref","type","range","step","disabled","value","onUpdate","withLabel","name","emits","Number","Boolean","default","Array","methods","event","update","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","selectedGroup","groups","loadingGroups","colorConverter","$event","group","lights","displayedLights","scenes","scenesByGroup","animations","animationsByGroup","config","pluginName","String","required","data","loading","anyLightsOn","groupsSorted","id","state","any_on","components","ToggleSwitch","MenuPanel","computed","entries","sort","localeCompare","values","title","close","selectedView","lightsSorted","light","selectedLight","collapsed","scenesSorted","scene","selectedScene","onSceneSelected","expandToggle","on","stopPropagation","rgbColor","onColorSelect","Loading","Slider","avg","reduce","sum","obj","forEach","getColor","toRGB","split","t","hsl","rgbToBri","toXY","toHSL","Controls","onSelect","animationRunning","toggleAnimation","selectedAnimation","color_transition","hue_range","sat_range","bri_range","hue_step","sat_step","bri_step","transition_seconds","duration","selectedLights","filter","v","toggleSelectAll","input","mixins","Utils","RangeSlider","runningAnimations","animation","lightId","blink","select","eventType","warn","Animate","Light","Scene","groupName","sceneId","Group","Groups","Panel","loadingLights","initialGroup","initialized","groupsByLight","groupId","self","initSelectedGroup","unwatch","$watch","newVal","refresh","onLightChange","plugin_name","light_id","onAnimationChange","subscribe","unmounted","unsubscribe"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/747.0ee05dee.js","mappings":"iJAAO,MAAMA,EACTC,YAAYC,GAQR,GAPAC,KAAKD,OAAS,CACVE,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,GAAI,CAAC,IAAK,MAGVL,EACA,IAAK,MAAMM,KAAQC,OAAOC,KAAKP,KAAKD,QAC5BA,EAAOM,KACPL,KAAKD,OAAOM,GAAQN,EAAOM,GAC1C,CAEDG,UAAUC,EA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J9D,MAAOA,GAEV,EAEDyF,kBAAkBnI,GACZA,EAAMiI,cAAgBpN,KAAKoH,YAG/BpH,KAAKkN,SACN,GAGHhH,UACElG,KAAKuN,UAAUvN,KAAKmN,cAAe,kBAC/B,wDACJnN,KAAKuN,UAAUvN,KAAKsN,kBAAmB,sBACnC,2DACA,4DAEJtN,KAAK8M,mBACN,EAEDU,YACExN,KAAKyN,YAAY,mBACjBzN,KAAKyN,YAAY,sBAClB,GmBjNH,MAAM,IAA2B,OAAgB,GAAQ,CAAC,CAAC,SAASrH,GAAQ,CAAC,YAAY,qBAEzF,S","sources":["webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Light/Index.vue","webpack://platypush/./src/components/panels/Panel.vue","webpack://platypush/./src/components/panels/Panel.vue?40a7","webpack://platypush/./src/components/Light/Groups.vue","webpack://platypush/./src/components/MenuPanel.vue","webpack://platypush/./src/components/MenuPanel.vue?e8bb","webpack://platypush/./src/components/Light/Groups.vue?f495","webpack://platypush/./src/components/Light/Group.vue","webpack://platypush/./src/components/Light/Light.vue","webpack://platypush/./src/components/Light/Controls.vue","webpack://platypush/./src/components/Light/Controls.vue?5766","webpack://platypush/./src/components/Light/Light.vue?eed6","webpack://platypush/./src/components/Light/Scene.vue","webpack://platypush/./src/components/Light/Scene.vue?87a4","webpack://platypush/./src/components/Light/Animate.vue","webpack://platypush/./src/components/elements/RangeSlider.vue","webpack://platypush/./src/components/elements/RangeSlider.vue?500a","webpack://platypush/./src/components/Light/Animate.vue?a3c2","webpack://platypush/./src/components/Light/Group.vue?06ce","webpack://platypush/./src/components/panels/Light/Index.vue?36e9"],"sourcesContent":["export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n","import script from \"./Panel.vue?vue&type=script&lang=js\"\nexport * from \"./Panel.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./MenuPanel.vue?vue&type=template&id=02113104\"\nimport script from \"./MenuPanel.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPanel.vue?vue&type=script&lang=js\"\n\nimport \"./MenuPanel.vue?vue&type=style&index=0&id=02113104&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Groups.vue?vue&type=template&id=42318a2b&scoped=true\"\nimport script from \"./Groups.vue?vue&type=script&lang=js\"\nexport * from \"./Groups.vue?vue&type=script&lang=js\"\n\nimport \"./Groups.vue?vue&type=style&index=0&id=42318a2b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42318a2b\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=e2726892&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=e2726892&lang=scss&scoped=true\"\nimport \"./Controls.vue?vue&type=style&index=1&id=e2726892&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2726892\"]])\n\nexport default __exports__","import { render } from \"./Light.vue?vue&type=template&id=52168252&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=52168252&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-52168252\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Scene.vue?vue&type=template&id=6934d062\"\nimport script from \"./Scene.vue?vue&type=script&lang=js\"\nexport * from \"./Scene.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./RangeSlider.vue?vue&type=template&id=981c5de0&scoped=true\"\nimport script from \"./RangeSlider.vue?vue&type=script&lang=js\"\nexport * from \"./RangeSlider.vue?vue&type=script&lang=js\"\n\nimport \"./RangeSlider.vue?vue&type=style&index=0&id=981c5de0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-981c5de0\"]])\n\nexport default __exports__","import { render } from \"./Animate.vue?vue&type=template&id=1739aaba&scoped=true\"\nimport script from \"./Animate.vue?vue&type=script&lang=js\"\nexport * from \"./Animate.vue?vue&type=script&lang=js\"\n\nimport \"./Animate.vue?vue&type=style&index=0&id=1739aaba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1739aaba\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=4de1a560\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=4de1a560&lang=scss\"\nimport \"./Group.vue?vue&type=style&index=1&id=4de1a560&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=781dd72c&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=781dd72c&lang=scss&scoped=true\"\nimport \"./Index.vue?vue&type=style&index=1&id=781dd72c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-781dd72c\"]])\n\nexport default __exports__"],"names":["ColorConverter","constructor","ranges","this","hue","sat","bri","ct","attr","Object","keys","normalize","x","xRange","yRange","hslToRgb","h","s","l","a","Math","min","f","n","k","color","max","round","rgbToHsl","r","g","b","d","parseInt","xyToRgb","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","rgbToXY","parseFloat","rgbToBri","getRGB","rgb","getXY","xy","toRGB","console","debug","toXY","toHSL","hexToRgb","hex","slice","_","rgbToHex","toString","length","join","class","ref","withLabel","type","range","step","disabled","value","onUpdate","name","emits","props","Number","Boolean","default","Array","methods","event","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","selectedGroup","groups","loadingGroups","colorConverter","$event","group","lights","displayedLights","scenes","scenesByGroup","animations","animationsByGroup","config","pluginName","String","required","data","loading","anyLightsOn","groupsSorted","key","id","state","any_on","components","ToggleSwitch","MenuPanel","computed","entries","sort","localeCompare","values","title","close","selectedView","lightsSorted","light","selectedLight","collapsed","scenesSorted","scene","selectedScene","onSceneSelected","expandToggle","on","stopPropagation","rgbColor","onColorSelect","Loading","Slider","avg","i","reduce","sum","obj","forEach","getColor","split","t","hsl","Controls","onSelect","animationRunning","toggleAnimation","selectedAnimation","color_transition","hue_range","sat_range","bri_range","hue_step","sat_step","bri_step","transition_seconds","duration","selectedLights","filter","v","toggleSelectAll","input","mixins","Utils","RangeSlider","runningAnimations","animation","lightId","blink","select","eventType","warn","Animate","Light","Scene","groupName","sceneId","Group","Groups","Panel","loadingLights","initialGroup","initialized","groupsByLight","groupId","self","initSelectedGroup","unwatch","$watch","newVal","refresh","onLightChange","plugin_name","light_id","onAnimationChange","subscribe","unmounted","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/747.5f10a676.js b/platypush/backend/http/webapp/dist/static/js/747.5f10a676.js deleted file mode 100644 index d16ff1de4..000000000 --- a/platypush/backend/http/webapp/dist/static/js/747.5f10a676.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[747],{4212:function(e,t,n){n.d(t,{N:function(){return o}});class o{constructor(e){if(this.ranges={hue:[0,360],sat:[0,100],bri:[0,100],ct:[154,500]},e)for(const t of Object.keys(this.ranges))e[t]&&(this.ranges[t]=e[t])}normalize(e,t,n){return n[0]+(e-t[0])*(n[1]-n[0])/(t[1]-t[0])}hslToRgb(e,t,n){[e,t,n]=[this.normalize(e,this.ranges.hue,[0,360]),this.normalize(t,this.ranges.sat,[0,100]),this.normalize(n,this.ranges.bri,[0,100])],n/=100;const o=t*Math.min(n,1-n)/100,s=t=>{const s=(t+e/30)%12,i=n-o*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*i)};return[s(0),s(8),s(4)]}rgbToHsl(e,t,n){e/=255,t/=255,n/=255;const o=Math.max(e,t,n),s=Math.min(e,t,n);let i,l,a=(o+s)/2;if(o===s)i=l=0;else{const r=o-s;switch(l=a>.5?r/(2-o-s):r/(o+s),o){case e:i=(t-n)/r+(tc&&a>r&&a>1?(r/=a,c/=a,a=1):r>c&&r>a&&r>1?(a/=r,c/=r,r=1):c>a&&c>r&&c>1&&(a/=c,r/=c,c=1),a=a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055,r=r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055,c=c<=.0031308?12.92*c:1.055*Math.pow(c,1/2.4)-.055,a=Math.round(255*a),r=Math.round(255*r),c=Math.round(255*c),isNaN(a)&&(a=0),isNaN(r)&&(r=0),isNaN(c)&&(c=0),[a,r,c].map((e=>Math.min(Math.max(0,e),255)))}rgbToXY(e,t,n){e>1&&(e/=255),t>1&&(t/=255),n>1&&(n/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;const o=.664511*e+.154324*t+.162028*n,s=.283881*e+.668433*t+.047685*n,i=88e-6*e+.07231*t+.986039*n;let l=parseFloat((o/(o+s+i)).toFixed(4)),a=parseFloat((s/(o+s+i)).toFixed(4));return isNaN(l)&&(l=0),isNaN(a)&&(a=0),[l,a]}rgbToBri(e,t,n){return Math.min(2*this.rgbToHsl(e,t,n)[2],this.ranges.bri[1])}getRGB(e){return null!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void 0}getXY(e){return null!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void 0}toRGB(e){const t=this.getRGB(e);if(t)return t;const n=this.getXY(e);return n&&e.bri?this.xyToRgb(...n,e.bri):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),void console.debug(e))}toXY(e){const t=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];const n=this.getRGB(e);if(n)return this.rgbToXY(...n);if(e.hue&&e.sat&&e.bri){const t=this.hslToRgb(e.hue,e.sat,e.bri);return this.rgbToXY(...t)}console.debug("Could not determine color space"),console.debug(e)}toHSL(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];const t=this.getRGB(e);if(t)return this.rgbToHsl(...t);const n=this.getXY(e);if(n&&e.bri){const t=this.xyToRgb(...n,e.bri);return this.rgbToHsl(...t)}console.debug("Could not determine color space"),console.debug(e)}hexToRgb(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((e=>parseInt(e,16)))}rgbToHex(e){return"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join("")}}},376:function(e,t,n){n.d(t,{Z:function(){return v}});var o=n(6252),s=n(9963),i=n(3577);const l={class:"slider-wrapper"},a=["min","max","step","disabled","value"],r={class:"track"},c={class:"track-inner",ref:"track"},u={class:"thumb",ref:"thumb"},g=["textContent"];function d(e,t,n,d,p,h){return(0,o.wg)(),(0,o.iD)("label",l,[(0,o._)("input",{class:"slider",type:"range",ref:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,onInput:t[0]||(t[0]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,s.iM)(((...e)=>h.onUpdate&&h.onUpdate(...e)),["stop"]))},null,40,a),(0,o._)("div",r,[(0,o._)("div",c,null,512)]),(0,o._)("div",u,null,512),n.withLabel?((0,o.wg)(),(0,o.iD)("span",{key:0,class:"label",textContent:(0,i.zw)(n.value)},null,8,g)):(0,o.kq)("",!0)])}var p={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=100*(e-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left=`${t}%`,this.$refs.thumb.style.transform=`translate(-${t}%, -50%)`,this.$refs.track.style.width=`${t}%`}},mounted(){null!=this.value&&this.update(this.value)}},h=n(3744);const m=(0,h.Z)(p,[["render",d],["__scopeId","data-v-95edc28a"]]);var v=m},6:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(6252),s=n(3577),i=n(9963);const l=e=>((0,o.dD)("data-v-a6396ae8"),e=e(),(0,o.Cn)(),e),a=["checked"],r=l((()=>(0,o._)("div",{class:"switch"},[(0,o._)("div",{class:"dot"})],-1))),c={class:"label"};function u(e,t,n,l,u,g){return(0,o.wg)(),(0,o.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,i.iM)(((...e)=>g.onInput&&g.onInput(...e)),["stop"]))},[(0,o._)("input",{type:"checkbox",checked:n.value},null,8,a),(0,o._)("label",null,[r,(0,o._)("span",c,[(0,o.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var g={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},d=n(3744);const p=(0,d.Z)(g,[["render",u],["__scopeId","data-v-a6396ae8"]]);var h=p},747:function(e,t,n){n.r(t),n.d(t,{default:function(){return Bt}});var o=n(6252);const s={class:"plugin lights-plugin"},i={key:0,class:"panel"},l={key:1,class:"panel"};function a(e,t,n,a,r,c){const u=(0,o.up)("Groups"),g=(0,o.up)("Group");return(0,o.wg)(),(0,o.iD)("div",s,[null==r.selectedGroup&&n.groups&&Object.keys(n.groups).length?((0,o.wg)(),(0,o.iD)("div",i,[(0,o.Wm)(u,{groups:n.groups,"loading-groups":n.loadingGroups,"color-converter":n.colorConverter,onSelect:t[0]||(t[0]=e=>r.selectedGroup=e),onToggle:t[1]||(t[1]=t=>e.$emit("group-toggle",t))},null,8,["groups","loading-groups","color-converter"])])):((0,o.wg)(),(0,o.iD)("div",l,[(0,o.Wm)(g,{group:n.groups[r.selectedGroup],lights:c.displayedLights,scenes:c.scenesByGroup[r.selectedGroup],"color-converter":n.colorConverter,animations:c.animationsByGroup[r.selectedGroup],onClose:t[2]||(t[2]=e=>r.selectedGroup=null),onLightToggle:t[3]||(t[3]=t=>e.$emit("light-toggle",t)),onGroupToggle:t[4]||(t[4]=t=>e.$emit("group-toggle",t)),onSetLight:t[5]||(t[5]=t=>e.$emit("set-light",t)),onSetGroup:t[6]||(t[6]=t=>e.$emit("set-group",{groupId:r.selectedGroup,value:t})),onSelectScene:t[7]||(t[7]=t=>e.$emit("select-scene",{groupId:r.selectedGroup,sceneId:t})),onStartAnimation:t[8]||(t[8]=t=>e.$emit("start-animation",t)),onStopAnimation:t[9]||(t[9]=t=>e.$emit("stop-animation",t))},null,8,["group","lights","scenes","color-converter","animations"])]))])}var r=n(6813),c={name:"Panel",emits:["mounted"],props:{config:{type:Object,default:()=>{}},pluginName:{type:String,required:!0}},data(){return{loading:!1}},mounted(){this.$emit("mounted",this)}};const u=c;var g=u,d=n(3577);const p=e=>((0,o.dD)("data-v-42318a2b"),e=e(),(0,o.Cn)(),e),h={class:"panel-row header"},m=p((()=>(0,o._)("div",{class:"col-3"},[(0,o._)("i",{class:"icon fas fa-home"})],-1))),v=p((()=>(0,o._)("div",{class:"col-6 name"}," Rooms ",-1))),b={class:"col-3 pull-right"},_=["onClick"],w={class:"name col-9"},y={class:"controls col-3 pull-right"};function f(e,t,n,s,i,l){const a=(0,o.up)("ToggleSwitch"),r=(0,o.up)("MenuPanel");return(0,o.wg)(),(0,o.j4)(r,null,{default:(0,o.w5)((()=>[(0,o._)("div",h,[m,v,(0,o._)("div",b,[(0,o.Wm)(a,{value:l.anyLightsOn,onInput:t[0]||(t[0]=t=>e.$emit("toggle"))},null,8,["value"])])]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(l.groupsSorted,(t=>((0,o.wg)(),(0,o.iD)("div",{class:"panel-row row group",key:t.id,onClick:n=>e.$emit("select",t.id)},[(0,o._)("span",w,(0,d.zw)(t.name||`[Group ${t.id}]`),1),(0,o._)("span",y,[(0,o.Wm)(a,{value:t.state.any_on,disabled:t.id in(n.loadingGroups||{}),onInput:n=>e.$emit("toggle",t)},null,8,["value","disabled","onInput"])])],8,_)))),128))])),_:1})}const C={class:"menu-panel"},k={class:"content"};function S(e,t,n,s,i,l){return(0,o.wg)(),(0,o.iD)("div",C,[(0,o._)("div",k,[(0,o.WI)(e.$slots,"default")])])}var j={name:"MenuPanel"},O=n(3744);const M=(0,O.Z)(j,[["render",S]]);var $=M,L=n(6),D=n(4212),G={name:"Groups",components:{ToggleSwitch:L.Z,MenuPanel:$},emits:["select","toggle"],props:{groups:{type:Object,default:()=>{}},loadingGroups:{type:Object,default:()=>{}},colorConverter:{type:Object,default:()=>new D.N}},computed:{groupsSorted(){return Object.entries(this.groups).sort(((e,t)=>e[1].name.localeCompare(t[1].name))).map((([e,t])=>({...t,id:e})))},anyLightsOn(){for(const e of Object.values(this.groups))if(e?.state?.any_on)return!0;return!1}}};const I=(0,O.Z)(G,[["render",f],["__scopeId","data-v-42318a2b"]]);var T=I;const x={class:"light-group-container"},U={class:"panel-row header"},A={key:0,class:"col-3"},B=(0,o._)("i",{class:"fas fa-chevron-left"},null,-1),N=[B],R=["textContent"],W={key:1,class:"col-3 pull-right"},Z={key:0,class:"no-lights"},q={key:1,class:"lights-view"},z={class:"row view-selector"},H=(0,o._)("i",{class:"icon fas fa-lightbulb"},null,-1),V=[H],Y=(0,o._)("i",{class:"icon far fa-image"},null,-1),F=[Y],X=(0,o._)("i",{class:"icon fas fa-video"},null,-1),K=[X],P={key:0,class:"view fade-in"},E=["onClick"],J={key:1,class:"view fade-in"},Q=["onClick"],ee={key:2,class:"view group-controls fade-in"},te={key:3,class:"view group-controls fade-in"};function ne(e,t,n,s,i,l){const a=(0,o.up)("ToggleSwitch"),r=(0,o.up)("Light"),c=(0,o.up)("Scene"),u=(0,o.up)("Controls"),g=(0,o.up)("Animate"),p=(0,o.up)("MenuPanel");return(0,o.wg)(),(0,o.iD)("div",x,[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o._)("div",U,[n.group?((0,o.wg)(),(0,o.iD)("div",A,[(0,o._)("button",{class:"back-btn",title:"Back",onClick:t[0]||(t[0]=(...e)=>l.close&&l.close(...e))},N)])):(0,o.kq)("",!0),(0,o._)("div",{class:(0,d.C_)(["col-6 name",{selected:"group"===i.selectedView}]),textContent:(0,d.zw)(l.groupName),onClick:t[1]||(t[1]=e=>i.selectedView="group"===i.selectedView?null:"group")},null,10,R),n.group?((0,o.wg)(),(0,o.iD)("div",W,[(0,o.Wm)(a,{value:n.group.state.any_on,onInput:t[2]||(t[2]=t=>e.$emit("group-toggle",n.group))},null,8,["value"])])):(0,o.kq)("",!0)]),n.lights&&Object.keys(n.lights).length?((0,o.wg)(),(0,o.iD)("div",q,[(0,o._)("div",z,[(0,o._)("button",{class:(0,d.C_)({selected:"lights"===i.selectedView}),title:"Lights",onClick:t[3]||(t[3]=e=>i.selectedView="lights")},V,2),(0,o._)("button",{class:(0,d.C_)({selected:"scenes"===i.selectedView}),title:"Scenes",onClick:t[4]||(t[4]=e=>i.selectedView="scenes")},F,2),(0,o._)("button",{class:(0,d.C_)({selected:"animate"===i.selectedView}),title:"Animate",onClick:t[5]||(t[5]=e=>i.selectedView="animate")},K,2)]),"lights"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",P,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(l.lightsSorted,((t,s)=>((0,o.wg)(),(0,o.iD)("div",{class:(0,d.C_)(["panel-row row",{expanded:t.id===i.selectedLight}]),key:s,onClick:e=>i.selectedLight=i.selectedLight===t.id?null:t.id},[(0,o.Wm)(r,{light:t,group:n.group,collapsed:t.id!==i.selectedLight,"color-converter":n.colorConverter,onToggle:n=>e.$emit("light-toggle",t),onSetLight:n=>e.$emit("set-light",{light:t,value:n})},null,8,["light","group","collapsed","color-converter","onToggle","onSetLight"])],10,E)))),128))],1024))])):"scenes"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",J,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(l.scenesSorted,((e,t)=>((0,o.wg)(),(0,o.iD)("div",{class:(0,d.C_)(["panel-row row",{selected:e.id===i.selectedScene}]),key:t,onClick:t=>l.onSceneSelected(e.id)},[(0,o.Wm)(c,{scene:e,group:n.group},null,8,["scene","group"])],10,Q)))),128))],1024))])):"group"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",ee,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[(0,o.Wm)(u,{group:n.group,lights:n.lights,"color-converter":n.colorConverter,onSetGroup:t[6]||(t[6]=t=>e.$emit("set-group",t))},null,8,["group","lights","color-converter"])],1024))])):"animate"===i.selectedView?((0,o.wg)(),(0,o.iD)("div",te,[((0,o.wg)(),(0,o.j4)(o.Ob,null,[(0,o.Wm)(g,{group:n.group,lights:n.lights,"color-converter":n.colorConverter,"running-animations":n.animations,onStart:t[7]||(t[7]=t=>e.$emit("start-animation",t)),onStop:t[8]||(t[8]=t=>e.$emit("stop-animation",t))},null,8,["group","lights","color-converter","running-animations"])],1024))])):(0,o.kq)("",!0)])):((0,o.wg)(),(0,o.iD)("div",Z," No lights found "))])),_:1})])}const oe={class:"row"},se={class:"toggle col-3 pull-right"},ie={key:0,class:"row fade-in"};function le(e,t,n,s,i,l){const a=(0,o.up)("ToggleSwitch"),r=(0,o.up)("Controls");return(0,o.wg)(),(0,o.iD)("div",{class:(0,d.C_)(["light",{expanded:!n.collapsed}]),ref:"element"},[(0,o._)("div",oe,[(0,o._)("span",{class:"name col-9",onClick:t[0]||(t[0]=(...e)=>l.expandToggle&&l.expandToggle(...e))},(0,d.zw)(n.light.name||`[Light ${n.light.id}]`),1),(0,o._)("span",se,[(0,o.Wm)(a,{value:n.light.state.on,disabled:n.loading,onInput:t[1]||(t[1]=t=>e.$emit("toggle",n.light))},null,8,["value","disabled"])])]),n.collapsed?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("div",ie,[(0,o.Wm)(r,{light:n.light,loading:n.loading,"color-converter":n.colorConverter,onSetLight:t[2]||(t[2]=t=>e.$emit("set-light",t))},null,8,["light","loading","color-converter"])]))],2)}var ae=n(9963);const re=e=>((0,o.dD)("data-v-e2726892"),e=e(),(0,o.Cn)(),e),ce={key:1,class:"row"},ue=re((()=>(0,o._)("div",{class:"col-1 icon"},[(0,o._)("i",{class:"fas fa-sun"})],-1))),ge={class:"col-11 control"},de={key:2,class:"row"},pe=re((()=>(0,o._)("div",{class:"col-1 icon"},[(0,o._)("i",{class:"fas fa-thermometer-half"})],-1))),he={class:"col-11 control"},me={key:3,class:"row"},ve=re((()=>(0,o._)("span",{class:"col-1 icon"},[(0,o._)("i",{class:"fas fa-palette"})],-1))),be={class:"col-11 control"},_e=["value"];function we(e,t,n,s,i,l){const a=(0,o.up)("Loading"),r=(0,o.up)("Slider");return(0,o.wg)(),(0,o.iD)("div",{class:"controls light-controls",onClick:t[3]||(t[3]=e=>e.stopPropagation())},[n.loading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),null!=l.state.bri?((0,o.wg)(),(0,o.iD)("div",ce,[ue,(0,o._)("div",ge,[(0,o.Wm)(r,{range:n.colorConverter.ranges.bri,disabled:n.loading,value:l.state.bri,onMouseup:t[0]||(t[0]=(0,ae.iM)((t=>e.$emit(n.light?"set-light":"set-group",{brightness:parseInt(t.target.value)})),["stop"]))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),null!=l.state.ct?((0,o.wg)(),(0,o.iD)("div",de,[pe,(0,o._)("div",he,[(0,o.Wm)(r,{range:n.colorConverter.ranges.ct,disabled:n.loading,value:l.state.ct,onMouseup:t[1]||(t[1]=(0,ae.iM)((t=>e.$emit(n.light?"set-light":"set-group",{temperature:parseInt(t.target.value)})),["stop"]))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),l.rgbColor?((0,o.wg)(),(0,o.iD)("label",me,[ve,(0,o._)("span",be,[(0,o._)("input",{type:"color",value:l.rgbColor,onChange:t[2]||(t[2]=(0,ae.iM)(((...e)=>l.onColorSelect&&l.onColorSelect(...e)),["stop"]))},null,40,_e)])])):(0,o.kq)("",!0)])}var ye=n(376),fe=n(1232),Ce={name:"Controls",components:{Loading:fe.Z,Slider:ye.Z},emits:["set-light","set-group"],props:{light:{type:Object},lights:{type:Object},group:{type:Object},loading:{type:Boolean,default:!1},colorConverter:{type:Object,default:()=>new D.N}},computed:{state(){if(this.light?.state)return this.light.state;const e=this.group?.state||{};if(!this.lights)return e;const t=e=>e&&e.length?e[0]instanceof Array?[...e[0].keys()].map((n=>t(e.map((e=>e[n]))))):e.reduce(((e,t)=>e+t),0)/e.length:0;return{...e,...Object.entries(Object.values(this.lights).reduce(((e,t)=>(["bri","hue","sat","rgb","xy","red","green","blue","ct"].forEach((n=>{null!=t.state?.[n]&&(e[n]=[...e[n]||[],t.state[n]])})),e)),{})).reduce(((e,[n,o])=>(e[n]=t(o),e)),{})}},color(){return this.getColor(this.state)},rgbColor(){const e=this.colorConverter.toRGB(this.state);return e?"#"+e.map((e=>{let t=e.toString(16);return t.length<2&&(t="0"+t),t})).join(""):null}},methods:{onColorSelect(e){const t=e.target.value.slice(1).split(/(?=(?:..)*$)/).map((e=>parseInt(`0x${e}`)));this.$emit(this.light?"set-light":"set-group",{rgb:t,xy:this.colorConverter.rgbToXY(...t),hsl:this.colorConverter.rgbToHsl(...t),brightness:this.colorConverter.rgbToBri(...t)})},getColor(e){return{rgb:this.colorConverter.toRGB(e),xy:this.colorConverter.toXY(e),hsl:this.colorConverter.toHSL(e)}}}};const ke=(0,O.Z)(Ce,[["render",we],["__scopeId","data-v-e2726892"]]);var Se=ke,je={name:"Light",components:{Controls:Se,ToggleSwitch:L.Z},emits:["toggle","set-light","collapsed","expanded"],props:{light:{type:Object,default:()=>{}},group:{type:Object,default:()=>{}},loading:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!0},colorConverter:{type:Object,default:()=>new D.N}},methods:{expandToggle(){this.$emit(this.collapsed?"expanded":"collapsed")}}};const Oe=(0,O.Z)(je,[["render",le],["__scopeId","data-v-52168252"]]);var Me=Oe;function $e(e,t,n,s,i,l){const a=(0,o.up)("Loading");return(0,o.wg)(),(0,o.iD)(o.HY,null,[n.loading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),(0,o._)("div",{class:"scene row name",onClick:t[0]||(t[0]=(...e)=>l.onSelect&&l.onSelect(...e))},(0,d.zw)(n.scene.name||`[Scene ${n.scene.id}]`),1)],64)}var Le={name:"Light",emits:["select"],props:{scene:{type:Object,default:()=>{}},group:{type:Object,default:()=>{}},loading:{type:Boolean,default:!1}},methods:{onSelect(){if(this.loading)return!1;this.$emit("select")}}};const De=(0,O.Z)(Le,[["render",$e]]);var Ge=De;const Ie=e=>((0,o.dD)("data-v-1739aaba"),e=e(),(0,o.Cn)(),e),Te={class:"animation-container"},xe={class:"animation-header"},Ue={class:"row"},Ae=Ie((()=>(0,o._)("div",{class:"col-3"}," Run Animation ",-1))),Be={class:"col-9"},Ne={class:"row"},Re=Ie((()=>(0,o._)("div",{class:"col-3"},"Animation",-1))),We={class:"col-9"},Ze=Ie((()=>(0,o._)("option",{value:"color_transition"},"Color transition",-1))),qe=Ie((()=>(0,o._)("option",{value:"blink"},"Blink",-1))),ze=[Ze,qe],He={class:"animation"},Ve={key:0,class:"row"},Ye=Ie((()=>(0,o._)("div",{class:"col-3"}," Hue range ",-1))),Fe={class:"col-9"},Xe={key:1,class:"row"},Ke=Ie((()=>(0,o._)("div",{class:"col-3"}," Sat range ",-1))),Pe={class:"col-9"},Ee={key:2,class:"row"},Je=Ie((()=>(0,o._)("div",{class:"col-3"}," Bri range ",-1))),Qe={class:"col-9"},et={key:3,class:"row"},tt=Ie((()=>(0,o._)("div",{class:"col-3"}," Hue step ",-1))),nt={class:"col-9"},ot={key:4,class:"row"},st=Ie((()=>(0,o._)("div",{class:"col-3"}," Sat step ",-1))),it={class:"col-9"},lt={key:5,class:"row"},at=Ie((()=>(0,o._)("div",{class:"col-3"}," Bri step ",-1))),rt={class:"col-9"},ct={class:"row"},ut=Ie((()=>(0,o._)("div",{class:"col-3"}," Refresh seconds ",-1))),gt={class:"col-9"},dt=["value"],pt={class:"row"},ht=Ie((()=>(0,o._)("div",{class:"col-3"}," Duration (seconds) ",-1))),mt={class:"col-9"},vt=["value"],bt={class:"lights"},_t={class:"row"},wt=["checked"],yt=(0,o.Uk)(" Select all lights "),ft=["onUpdate:modelValue","onInput"];function Ct(e,t,n,s,i,l){const a=(0,o.up)("Loading"),r=(0,o.up)("ToggleSwitch"),c=(0,o.up)("RangeSlider"),u=(0,o.up)("Slider");return(0,o.wg)(),(0,o.iD)("div",{class:"controls animation-controls",onClick:t[10]||(t[10]=e=>e.stopPropagation())},[n.loading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),(0,o._)("div",Te,[(0,o._)("div",xe,[(0,o._)("div",Ue,[Ae,(0,o._)("div",Be,[(0,o.Wm)(r,{value:l.animationRunning,onInput:l.toggleAnimation},null,8,["value","onInput"])])]),(0,o._)("div",Ne,[Re,(0,o._)("div",We,[(0,o._)("label",null,[(0,o._)("select",{class:"selector",onClick:t[0]||(t[0]=e=>i.selectedAnimation=e.target.value)},ze)])])])]),(0,o._)("div",He,["color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",Ve,[Ye,(0,o._)("div",Fe,[(0,o.Wm)(c,{range:n.colorConverter.ranges.hue,disabled:n.loading,value:i.animations.color_transition.hue_range,onMouseup:t[1]||(t[1]=e=>i.animations.color_transition.hue_range=e.target.value)},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",Xe,[Ke,(0,o._)("div",Pe,[(0,o.Wm)(c,{range:n.colorConverter.ranges.sat,disabled:n.loading,value:i.animations.color_transition.sat_range,onMouseup:t[2]||(t[2]=e=>i.animations.color_transition.sat_range=e.target.value)},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",Ee,[Je,(0,o._)("div",Qe,[(0,o.Wm)(c,{range:n.colorConverter.ranges.sat,disabled:n.loading,value:i.animations.color_transition.bri_range,onMouseup:t[3]||(t[3]=e=>i.animations.color_transition.bri_range=e.target.value)},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",et,[tt,(0,o._)("div",nt,[(0,o.Wm)(u,{range:n.colorConverter.ranges.hue,disabled:n.loading,value:i.animations.color_transition.hue_step,onMouseup:t[4]||(t[4]=e=>i.animations.color_transition.hue_step=parseFloat(e.target.value))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",ot,[st,(0,o._)("div",it,[(0,o.Wm)(u,{range:n.colorConverter.ranges.sat,disabled:n.loading,value:i.animations.color_transition.sat_step,onMouseup:t[5]||(t[5]=e=>i.animations.color_transition.sat_step=parseFloat(e.target.value))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),"color_transition"===i.selectedAnimation?((0,o.wg)(),(0,o.iD)("div",lt,[at,(0,o._)("div",rt,[(0,o.Wm)(u,{range:n.colorConverter.ranges.bri,disabled:n.loading,value:i.animations.color_transition.bri_step,onMouseup:t[6]||(t[6]=e=>i.animations.color_transition.bri_step=parseFloat(e.target.value))},null,8,["range","disabled","value"])])])):(0,o.kq)("",!0),(0,o._)("div",ct,[ut,(0,o._)("div",gt,[(0,o._)("label",null,[(0,o._)("input",{type:"number",value:i.animations[i.selectedAnimation].transition_seconds,step:"0.1",onInput:t[7]||(t[7]=e=>i.animations[i.selectedAnimation].transition_seconds=parseFloat(e.target.value))},null,40,dt)])])]),(0,o._)("div",pt,[ht,(0,o._)("div",mt,[(0,o._)("label",null,[(0,o._)("input",{type:"number",value:i.animations[i.selectedAnimation].duration,step:"5",onInput:t[8]||(t[8]=e=>i.animations[i.selectedAnimation].duration=e.target.value?.length?parseFloat(e.target.value):null)},null,40,vt)])])])])]),(0,o._)("div",bt,[(0,o._)("div",_t,[(0,o._)("label",null,[(0,o._)("input",{type:"checkbox",checked:Object.keys(n.lights).length===Object.values(i.selectedLights).filter((e=>e)).length,onClick:t[9]||(t[9]=(...e)=>l.toggleSelectAll&&l.toggleSelectAll(...e))},null,8,wt),yt])]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(n.lights,((e,t)=>((0,o.wg)(),(0,o.iD)("div",{class:"row",key:t},[(0,o._)("label",null,[(0,o.wy)((0,o._)("input",{type:"checkbox","onUpdate:modelValue":e=>i.selectedLights[t]=e,onInput:e=>i.selectedLights[t]=!i.selectedLights[t]},null,40,ft),[[ae.e8,i.selectedLights[t]]]),(0,o.Uk)(" "+(0,d.zw)(e.name),1)])])))),128))])])}const kt={class:"range-wrapper"},St=["value","min","max","step","disabled"];function jt(e,t,n,s,i,l){return(0,o.wg)(),(0,o.iD)("div",kt,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(n.value,((e,s)=>((0,o.wg)(),(0,o.iD)("input",{class:"slider",type:"range",value:e,min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,ref_for:!0,ref:"ranges",onInput:t[0]||(t[0]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onMouseup:t[2]||(t[2]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onMousedown:t[3]||(t[3]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onTouchstart:t[4]||(t[4]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onTouchend:t[5]||(t[5]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onKeyup:t[6]||(t[6]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),onKeydown:t[7]||(t[7]=(0,ae.iM)(((...e)=>l.onUpdate&&l.onUpdate(...e)),["stop"])),key:s},null,40,St)))),128))])}var Ot={name:"RangeSlider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},value:{type:Array,default:()=>[0,100]}},methods:{onUpdate(e){this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.ranges.map((e=>parseFloat(e.value))).sort()}})}}};const Mt=(0,O.Z)(Ot,[["render",jt],["__scopeId","data-v-981c5de0"]]);var $t=Mt,Lt={name:"Animate",mixins:[r.Z],components:{ToggleSwitch:L.Z,Slider:ye.Z,RangeSlider:$t,Loading:fe.Z},emits:["start","stop"],props:{lights:{type:Object},group:{type:Object},loading:{type:Boolean,default:!1},colorConverter:{type:Object,default:()=>new D.N},runningAnimations:{type:Object,default:()=>{}}},data(){return{selectedAnimation:"color_transition",animation:{},selectedLights:Object.keys(this.lights).reduce(((e,t)=>(e[t]=!0,e)),{}),animations:{color_transition:{hue_range:this.colorConverter.ranges.hue,sat_range:[parseInt((this.colorConverter.ranges.sat[1]-this.colorConverter.ranges.sat[0])/2),this.colorConverter.ranges.sat[1]],bri_range:[parseInt(.75*(this.colorConverter.ranges.bri[1]-this.colorConverter.ranges.bri[0])),this.colorConverter.ranges.bri[1]],hue_step:parseInt((this.colorConverter.ranges.hue[1]-this.colorConverter.ranges.hue[0])/25),sat_step:parseInt((this.colorConverter.ranges.sat[1]-this.colorConverter.ranges.sat[0])/50),bri_step:parseInt((this.colorConverter.ranges.bri[1]-this.colorConverter.ranges.bri[0])/50),transition_seconds:1,duration:null},blink:{transition_seconds:1,duration:null}}}},computed:{animationRunning(){return Object.keys(this.runningAnimations).length>0}},methods:{toggleSelectAll(){const e=Object.values(this.selectedLights).filter((e=>e)).length{this.selectedLights[t]=e}))},toggleAnimation(){const e=this.animationRunning?"stop":"start",t=Object.entries(this.selectedLights).filter((e=>e[1])).map((e=>e[0]));t.length?this.$emit(e,{lights:t,animation:{...this.animations[this.selectedAnimation],animation:this.selectedAnimation}}):this.warn("No lights have been selected")}}};const Dt=(0,O.Z)(Lt,[["render",Ct],["__scopeId","data-v-1739aaba"]]);var Gt=Dt,It={name:"Group",emits:["close","group-toggle","light-toggle","set-light","select-scene","start-animation","stop-animation"],components:{Animate:Gt,ToggleSwitch:L.Z,MenuPanel:$,Light:Me,Scene:Ge,Controls:Se},props:{lights:{type:Object},group:{type:Object},scenes:{type:Object},animations:{type:Object,default:()=>{}},colorConverter:{type:Object,default:()=>new D.N}},data(){return{selectedLight:null,selectedScene:null,selectedView:"lights"}},computed:{lightsSorted(){return this.lights?Object.entries(this.lights).sort(((e,t)=>e[1].name.localeCompare(t[1].name))).map((([e,t])=>({...t,id:e}))):[]},scenesSorted(){return this.scenes?Object.entries(this.scenes).sort(((e,t)=>e[1].name.localeCompare(t[1].name))).map((([e,t])=>({...t,id:e}))):[]},groupName(){return this.group?.name?this.group.name:null!=this.group?.id?`[Group ${this.group.id}]`:"Lights"}},methods:{close(e){e.stopPropagation(),this.$emit("close")},onSceneSelected(e){this.selectedScene=e,this.$emit("select-scene",e)}}};const Tt=(0,O.Z)(It,[["render",ne]]);var xt=Tt,Ut={name:"Light",components:{Group:xt,Groups:T},mixins:[r.Z,g],emits:["group-toggle","light-toggle","set-light","set-group","select-scene","start-animation","stop-animation","refresh","light-changed"],props:{lights:{type:Object},groups:{type:Object},scenes:{type:Object},animations:{type:Object},colorConverter:{type:Object,default:()=>new D.N},loadingLights:{type:Object,default:()=>{}},loadingGroups:{type:Object,default:()=>{}},pluginName:{type:String},initialGroup:{type:[Number,String]}},data(){return{selectedGroup:null,initialized:!1}},computed:{displayedLights(){const e=this.selectedGroup||this.initialGroup;return null==e?this.lights:this.groups[e].lights.reduce(((e,t)=>(e[t]=this.lights[t],e)),{})},groupsByLight(){return this.groups?Object.entries(this.groups).reduce(((e,[t,n])=>(n.lights.forEach((o=>{e[o]||(e[o]={}),e[o][t]=n})),e)),{}):{}},scenesByGroup(){if(!this.scenes)return{};const e=this;return Object.entries(this.scenes).reduce(((t,[n,o])=>(o.lights.forEach((s=>{Object.keys(e.groupsByLight[s]).forEach((e=>{t[e]||(t[e]={}),t[e][n]=o}))})),t)),{})},animationsByGroup(){const e=this,t=Object.entries(this.animations?.groups||{}).reduce(((e,[t,n])=>(e[t]={},n&&(e[t][null]=n),e)),{});return{...t,...Object.entries(this.animations?.lights||{}).reduce(((t,[n,o])=>{const s=Object.values(e.groupsByLight[n])?.[0];return s&&o&&null!=s.id&&(t[s.id]||(t[s.id]={}),t[s.id][n]=o),t}),{})}}},methods:{initSelectedGroup(){const e=this,t=this.$watch((()=>e.initialGroup),(n=>{e.initialized||(e.initialized=!0,t(),null==e.selectedGroup&&null!=n&&(e.selectedGroup=e.initialGroup))}))},refresh(){this.$emit("refresh")},onLightChange(e){if(e.plugin_name!==this.pluginName)return;if(!this.lights[e.light_id])return void this.refresh();const t={...e},n=t.light_id;delete t.light_id,delete t.type,delete t.plugin_name,this.$emit("light-changed",{id:n,state:t})},onAnimationChange(e){e.plugin_name===this.pluginName&&this.refresh()}},mounted(){this.subscribe(this.onLightChange,"on-light-change","platypush.message.event.light.LightStatusChangeEvent"),this.subscribe(this.onAnimationChange,"on-animation-change","platypush.message.event.light.LightAnimationStartedEvent","platypush.message.event.light.LightAnimationStoppedEvent"),this.initSelectedGroup()},unmounted(){this.unsubscribe("on-light-change"),this.unsubscribe("on-animation-change")}};const At=(0,O.Z)(Ut,[["render",a],["__scopeId","data-v-781dd72c"]]);var Bt=At}}]); -//# sourceMappingURL=747.5f10a676.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/747.5f10a676.js.map b/platypush/backend/http/webapp/dist/static/js/747.5f10a676.js.map deleted file mode 100644 index 0dc0d29fc..000000000 --- a/platypush/backend/http/webapp/dist/static/js/747.5f10a676.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/747.5f10a676.js","mappings":"iJAAO,MAAMA,EACTC,YAAYC,GAQR,GAPAC,KAAKD,OAAS,CACVE,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,IAAK,CAAC,EAAG,KACTC,GAAI,CAAC,IAAK,MAGVL,EACA,IAAK,MAAMM,KAAQC,OAAOC,KAAKP,KAAKD,QAC5BA,EAAOM,KACPL,KAAKD,OAAOM,GAAQN,EAAOM,GAC1C,CAEDG,UAAUC,EAAGC,EAAQC,GACjB,OAAOA,EAAO,IAAQF,EAAEC,EAAO,KAAOC,EAAO,GAAGA,EAAO,KAAQD,EAAO,GAAGA,EAAO,GACnF,CAEDE,SAASC,EAAGC,EAAGC,IACVF,EAAGC,EAAGC,GAAK,CACRf,KAAKQ,UAAUK,EAAGb,KAAKD,OAAOE,IAAK,CAAC,EAAG,MACvCD,KAAKQ,UAAUM,EAAGd,KAAKD,OAAOG,IAAK,CAAC,EAAG,MACvCF,KAAKQ,UAAUO,EAAGf,KAAKD,OAAOI,IAAK,CAAC,EAAG,OAG3CY,GAAK,IACL,MAAMC,EAAIF,EAAIG,KAAKC,IAAIH,EAAG,EAAIA,GAAK,IAC7BI,EAAIC,IACN,MAAMC,GAAKD,EAAIP,EAAI,IAAM,GACnBS,EAAQP,EAAIC,EA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,oBACE,MAAMD,EAAO1M,KACP4M,EAAU5M,KAAK6M,QAAO,IAAMH,EAAKJ,eAAeQ,IAC/CJ,EAAKH,cACRG,EAAKH,aAAc,EACnBK,IAC0B,MAAtBF,EAAKtG,eAAmC,MAAV0G,IAChCJ,EAAKtG,cAAgBsG,EAAKJ,cAE9B,GAEH,EAEDS,UACE/M,KAAKsF,MAAM,UACZ,EAED0H,cAAc7H,GACZ,GAAIA,EAAM8H,cAAgBjN,KAAKiH,WAC7B,OAEF,IAAKjH,KAAK0G,OAAOvB,EAAM+H,UAErB,YADAlN,KAAK+M,UAIP,MAAMrF,EAAQ,IAAIvC,GACZqG,EAAU9D,EAAMwF,gBACfxF,EAAMwF,gBACNxF,EAAMtD,YACNsD,EAAMuF,YAEbjN,KAAKsF,MAAM,gBAAiB,CAC1BmC,GAAI+D,EACJ9D,MAAOA,GAEV,EAEDyF,kBAAkBhI,GACZA,EAAM8H,cAAgBjN,KAAKiH,YAG/BjH,KAAK+M,SACN,GAGHhH,UACE/F,KAAKoN,UAAUpN,KAAKgN,cAAe,kBAC/B,wDACJhN,KAAKoN,UAAUpN,KAAKmN,kBAAmB,sBACnC,2DACA,4DAEJnN,KAAK2M,mBACN,EAEDU,YACErN,KAAKsN,YAAY,mBACjBtN,KAAKsN,YAAY,sBAClB,GmBjNH,MAAM,IAA2B,OAAgB,GAAQ,CAAC,CAAC,SAASrH,GAAQ,CAAC,YAAY,qBAEzF,S","sources":["webpack://platypush/./src/components/panels/Light/color.js","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Light/Index.vue","webpack://platypush/./src/components/panels/Panel.vue","webpack://platypush/./src/components/panels/Panel.vue?40a7","webpack://platypush/./src/components/Light/Groups.vue","webpack://platypush/./src/components/MenuPanel.vue","webpack://platypush/./src/components/MenuPanel.vue?e8bb","webpack://platypush/./src/components/Light/Groups.vue?f495","webpack://platypush/./src/components/Light/Group.vue","webpack://platypush/./src/components/Light/Light.vue","webpack://platypush/./src/components/Light/Controls.vue","webpack://platypush/./src/components/Light/Controls.vue?5766","webpack://platypush/./src/components/Light/Light.vue?eed6","webpack://platypush/./src/components/Light/Scene.vue","webpack://platypush/./src/components/Light/Scene.vue?87a4","webpack://platypush/./src/components/Light/Animate.vue","webpack://platypush/./src/components/elements/RangeSlider.vue","webpack://platypush/./src/components/elements/RangeSlider.vue?500a","webpack://platypush/./src/components/Light/Animate.vue?a3c2","webpack://platypush/./src/components/Light/Group.vue?06ce","webpack://platypush/./src/components/panels/Light/Index.vue?36e9"],"sourcesContent":["export class ColorConverter {\n constructor(ranges) {\n this.ranges = {\n hue: [0, 360],\n sat: [0, 100],\n bri: [0, 100],\n ct: [154, 500],\n }\n\n if (ranges)\n for (const attr of Object.keys(this.ranges))\n if (ranges[attr])\n this.ranges[attr] = ranges[attr]\n }\n\n normalize(x, xRange, yRange) {\n return yRange[0] + (((x-xRange[0]) * (yRange[1]-yRange[0])) / (xRange[1]-xRange[0]))\n }\n\n hslToRgb(h, s, l) {\n [h, s, l] = [\n this.normalize(h, this.ranges.hue, [0, 360]),\n this.normalize(s, this.ranges.sat, [0, 100]),\n this.normalize(l, this.ranges.bri, [0, 100]),\n ]\n\n l /= 100\n const a = s * Math.min(l, 1 - l) / 100\n const f = n => {\n const k = (n + h / 30) % 12\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1)\n return Math.round(255 * color)\n }\n\n return [f(0), f(8), f(4)]\n }\n\n rgbToHsl(r, g, b){\n r /= 255\n g /= 255\n b /= 255;\n const max = Math.max(r, g, b), min = Math.min(r, g, b);\n let h, s, l = (max + min) / 2;\n\n if(max === min){\n h = s = 0; // achromatic\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [\n parseInt(this.normalize(h, [0, 1], this.ranges.hue)),\n parseInt(this.normalize(s, [0, 1], this.ranges.sat)),\n parseInt(this.normalize(l, [0, 1], this.ranges.bri)),\n ]\n }\n\n xyToRgb(x, y, brightness) {\n // Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)\n if (brightness == null)\n brightness = this.ranges.bri[1];\n\n const z = 1.0 - x - y;\n const Y = (brightness / (this.ranges.bri[1]-1)).toFixed(2);\n const X = (Y / y) * x;\n const Z = (Y / y) * z;\n\n //Convert to RGB using Wide RGB D65 conversion\n let red \t= X * 1.656492 - Y * 0.354851 - Z * 0.255038;\n let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;\n let blue \t= X * 0.051713 - Y * 0.121364 + Z * 1.011530;\n\n //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0\n if (red > blue && red > green && red > 1.0) {\n green = green / red;\n blue = blue / red;\n red = 1.0;\n } else if (green > blue && green > red && green > 1.0) {\n red = red / green;\n blue = blue / green;\n green = 1.0;\n } else if (blue > red && blue > green && blue > 1.0) {\n red = red / blue;\n green = green / blue;\n blue = 1.0;\n }\n\n //Reverse gamma correction\n red \t= red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;\n green \t= green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;\n blue \t= blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;\n\n //Convert normalized decimal to decimal\n red \t= Math.round(red * 255);\n green \t= Math.round(green * 255);\n blue \t= Math.round(blue * 255);\n\n if (isNaN(red))\n red = 0;\n if (isNaN(green))\n green = 0;\n if (isNaN(blue))\n blue = 0;\n\n return [red, green, blue].map(\n (c) => Math.min(Math.max(0, c), 255)) // lgtm [js/automatic-semicolon-insertion]\n }\n\n rgbToXY(red, green, blue) {\n if (red > 1) { red /= 255; }\n if (green > 1) { green /= 255; }\n if (blue > 1) { blue /= 255; }\n\n //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device\n red \t= (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);\n green \t= (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);\n blue \t= (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);\n\n //RGB values to XYZ using the Wide RGB D65 conversion formula\n const X \t\t= red * 0.664511 + green * 0.154324 + blue * 0.162028;\n const Y \t\t= red * 0.283881 + green * 0.668433 + blue * 0.047685;\n const Z \t\t= red * 0.000088 + green * 0.072310 + blue * 0.986039;\n\n //Calculate the xy values from the XYZ values\n let x \t\t= parseFloat((X / (X + Y + Z)).toFixed(4));\n let y \t\t= parseFloat((Y / (X + Y + Z)).toFixed(4));\n\n if (isNaN(x))\n x = 0;\n if (isNaN(y))\n y = 0;\n\n return [x, y];\n }\n\n rgbToBri(red, green, blue) {\n return Math.min(2 * this.rgbToHsl(red, green, blue)[2], this.ranges.bri[1])\n }\n\n getRGB(color) {\n if (color.red != null && color.green != null && color.blue != null)\n return [color.red, color.green, color.blue]\n if (color.r != null && color.g != null && color.b != null)\n return [color.r, color.g, color.b]\n if (color.rgb)\n return color.rgb\n }\n\n getXY(color) {\n if (color.x != null && color.y != null)\n return [color.x, color.y]\n if (color.xy)\n return color.xy\n }\n\n toRGB(color) {\n const rgb = this.getRGB(color)\n if (rgb)\n return rgb\n\n const xy = this.getXY(color)\n if (xy && color.bri)\n return this.xyToRgb(...xy, color.bri)\n if (color.hue && color.sat && color.bri)\n return this.hslToRgb(color.hue, color.sat, color.bri)\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toXY(color) {\n const xy = this.getXY(color)\n if (xy && color.bri)\n return [xy[0], xy[1], color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToXY(...rgb)\n\n if (color.hue && color.sat && color.bri) {\n const rgb = this.hslToRgb(color.hue, color.sat, color.bri)\n return this.rgbToXY(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n toHSL(color) {\n if (color.hue && color.sat && color.bri)\n return [color.hue, color.sat, color.bri]\n\n const rgb = this.getRGB(color)\n if (rgb)\n return this.rgbToHsl(...rgb)\n\n const xy = this.getXY(color)\n if (xy && color.bri) {\n const rgb = this.xyToRgb(...xy, color.bri)\n return this.rgbToHsl(...rgb)\n }\n\n console.debug('Could not determine color space')\n console.debug(color)\n }\n\n hexToRgb(hex) {\n return [\n hex.slice(1, 3),\n hex.slice(3, 5),\n hex.slice(5, 7),\n ].map(_ => parseInt(_, 16))\n }\n\n rgbToHex(rgb) {\n return '#' + rgb.map((x) => {\n let hex = x.toString(16)\n if (hex.length < 2)\n hex = '0' + hex\n return hex\n }).join('')\n }\n}\n","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n","import script from \"./Panel.vue?vue&type=script&lang=js\"\nexport * from \"./Panel.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./MenuPanel.vue?vue&type=template&id=02113104\"\nimport script from \"./MenuPanel.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPanel.vue?vue&type=script&lang=js\"\n\nimport \"./MenuPanel.vue?vue&type=style&index=0&id=02113104&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Groups.vue?vue&type=template&id=42318a2b&scoped=true\"\nimport script from \"./Groups.vue?vue&type=script&lang=js\"\nexport * from \"./Groups.vue?vue&type=script&lang=js\"\n\nimport \"./Groups.vue?vue&type=style&index=0&id=42318a2b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42318a2b\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=e2726892&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=e2726892&lang=scss&scoped=true\"\nimport \"./Controls.vue?vue&type=style&index=1&id=e2726892&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2726892\"]])\n\nexport default __exports__","import { render } from \"./Light.vue?vue&type=template&id=52168252&scoped=true\"\nimport script from \"./Light.vue?vue&type=script&lang=js\"\nexport * from \"./Light.vue?vue&type=script&lang=js\"\n\nimport \"./Light.vue?vue&type=style&index=0&id=52168252&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-52168252\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Scene.vue?vue&type=template&id=6934d062\"\nimport script from \"./Scene.vue?vue&type=script&lang=js\"\nexport * from \"./Scene.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./RangeSlider.vue?vue&type=template&id=981c5de0&scoped=true\"\nimport script from \"./RangeSlider.vue?vue&type=script&lang=js\"\nexport * from \"./RangeSlider.vue?vue&type=script&lang=js\"\n\nimport \"./RangeSlider.vue?vue&type=style&index=0&id=981c5de0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-981c5de0\"]])\n\nexport default __exports__","import { render } from \"./Animate.vue?vue&type=template&id=1739aaba&scoped=true\"\nimport script from \"./Animate.vue?vue&type=script&lang=js\"\nexport * from \"./Animate.vue?vue&type=script&lang=js\"\n\nimport \"./Animate.vue?vue&type=style&index=0&id=1739aaba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1739aaba\"]])\n\nexport default __exports__","import { render } from \"./Group.vue?vue&type=template&id=4de1a560\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=4de1a560&lang=scss\"\nimport \"./Group.vue?vue&type=style&index=1&id=4de1a560&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=781dd72c&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=781dd72c&lang=scss&scoped=true\"\nimport \"./Index.vue?vue&type=style&index=1&id=781dd72c&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-781dd72c\"]])\n\nexport default __exports__"],"names":["ColorConverter","constructor","ranges","this","hue","sat","bri","ct","attr","Object","keys","normalize","x","xRange","yRange","hslToRgb","h","s","l","a","Math","min","f","n","k","color","max","round","rgbToHsl","r","g","b","d","parseInt","xyToRgb","y","brightness","z","Y","toFixed","X","Z","red","green","blue","pow","isNaN","map","c","rgbToXY","parseFloat","rgbToBri","getRGB","rgb","getXY","xy","toRGB","console","debug","toXY","toHSL","hexToRgb","hex","slice","_","rgbToHex","toString","length","join","class","ref","type","range","step","disabled","value","onUpdate","withLabel","name","emits","props","Number","Boolean","default","Array","methods","event","update","target","$emit","$refs","percent","thumb","style","left","transform","track","width","mounted","__exports__","render","onInput","checked","selectedGroup","groups","loadingGroups","colorConverter","$event","group","lights","displayedLights","scenes","scenesByGroup","animations","animationsByGroup","config","pluginName","String","required","data","loading","anyLightsOn","groupsSorted","key","id","state","any_on","components","ToggleSwitch","MenuPanel","computed","entries","sort","localeCompare","values","title","close","selectedView","lightsSorted","light","selectedLight","collapsed","scenesSorted","scene","selectedScene","onSceneSelected","expandToggle","on","stopPropagation","rgbColor","onColorSelect","Loading","Slider","avg","i","reduce","sum","obj","forEach","getColor","split","t","hsl","Controls","onSelect","animationRunning","toggleAnimation","selectedAnimation","color_transition","hue_range","sat_range","bri_range","hue_step","sat_step","bri_step","transition_seconds","duration","selectedLights","filter","v","toggleSelectAll","input","mixins","Utils","RangeSlider","runningAnimations","animation","lightId","blink","select","eventType","warn","Animate","Light","Scene","groupName","sceneId","Group","Groups","Panel","loadingLights","initialGroup","initialized","groupsByLight","groupId","self","initSelectedGroup","unwatch","$watch","newVal","refresh","onLightChange","plugin_name","light_id","onAnimationChange","subscribe","unmounted","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9892-legacy.4cf77440.js b/platypush/backend/http/webapp/dist/static/js/9892-legacy.6a0b2b51.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/9892-legacy.4cf77440.js rename to platypush/backend/http/webapp/dist/static/js/9892-legacy.6a0b2b51.js index b16cf51e3..f97aa3a40 100644 --- a/platypush/backend/http/webapp/dist/static/js/9892-legacy.4cf77440.js +++ b/platypush/backend/http/webapp/dist/static/js/9892-legacy.6a0b2b51.js @@ -1,2 +1,2 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9892],{4964:function(t,e,n){var i=n(5112),r=i("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(i){}}return!1}},3929:function(t,e,n){var i=n(7850),r=TypeError;t.exports=function(t){if(i(t))throw r("The method doesn't accept regular expressions");return t}},6755:function(t,e,n){"use strict";var i=n(2109),r=n(1702),o=n(1236).f,u=n(7466),l=n(1340),s=n(3929),a=n(4488),c=n(4964),d=n(1913),f=r("".startsWith),p=r("".slice),v=Math.min,m=c("startsWith"),h=!d&&!m&&!!function(){var t=o(String.prototype,"startsWith");return t&&!t.writable}();i({target:"String",proto:!0,forced:!h&&!m},{startsWith:function(t){var e=l(a(this));s(t);var n=u(v(arguments.length>1?arguments[1]:void 0,e.length)),i=l(t);return f?f(e,i,n):p(e,n,n+i.length)===i}})},9892:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return c}});var i=n(6252),r={class:"row item entity-container"};function o(t,e,n,o,u,l){var s;return(0,i.wg)(),(0,i.iD)("div",r,[((0,i.wg)(),(0,i.j4)((0,i.LL)(u.component),{value:t.value,loading:t.loading,error:t.error||0==(null===(s=t.value)||void 0===s?void 0:s.reachable),onInput:e[0]||(e[0]=function(e){return t.$emit("input",e)}),onLoading:e[1]||(e[1]=function(e){return t.$emit("loading",e)})},null,8,["value","loading","error"]))])}n(1539),n(8783),n(3948);var u=n(7909),l={name:"Entity",mixins:[u["default"]],emits:["input","loading"],data:function(){return{component:null}},mounted:function(){var t=this;"Entity"!==this.type&&(this.component=(0,i.RC)((function(){return n(7243)("./".concat(t.type))})))}},s=n(3744);const a=(0,s.Z)(l,[["render",o],["__scopeId","data-v-3c242632"]]);var c=a},7909:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u}});n(7042);var i=n(6813),r={name:"EntityMixin",mixins:[i.Z],emits:["input"],props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{type:Object,required:!0}},data:function(){return{modalVisible:!1}},computed:{type:function(){var t=this.value.type||"";return t.charAt(0).toUpperCase()+t.slice(1)}}};const o=r;var u=o},914:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return A}});n(7941),n(8309);var i=n(6252),r=n(3577),o=function(t){return(0,i.dD)("data-v-fef021ee"),t=t(),(0,i.Cn)(),t},u={class:"row plugin entities-container"},l={class:"col-11 left"},s={class:"col-1 right"},a=o((function(){return(0,i._)("i",{class:"fa fa-sync-alt"},null,-1)})),c=[a],d={class:"groups-canvas"},f=(0,i.Uk)("No entities found"),p={key:2,class:"groups-container"},v={class:"frame"},m={class:"header"},h={class:"section left"},y={class:"section center"},g=["textContent"],w=["textContent"],_={class:"section right"},b=["onClick"],k=o((function(){return(0,i._)("i",{class:"fa fa-sync-alt"},null,-1)})),E=[k],x={class:"body"},C=["onClick"];function I(t,e,n,o,a,k){var I,D=(0,i.up)("Loading"),G=(0,i.up)("Selector"),T=(0,i.up)("EntityModal"),Z=(0,i.up)("NoItems"),j=(0,i.up)("Icon"),S=(0,i.up)("Entity");return(0,i.wg)(),(0,i.iD)("div",u,[a.loading?((0,i.wg)(),(0,i.j4)(D,{key:0})):(0,i.kq)("",!0),(0,i._)("header",null,[(0,i._)("div",l,[(0,i.Wm)(G,{"entity-groups":k.entityGroups,value:a.selector,onInput:e[0]||(e[0]=function(t){return a.selector=t})},null,8,["entity-groups","value"])]),(0,i._)("div",s,[(0,i._)("button",{title:"Refresh",onClick:e[1]||(e[1]=function(t){return k.refresh(null)})},c)])]),(0,i._)("div",d,[a.modalEntityId?((0,i.wg)(),(0,i.j4)(T,{key:0,entity:a.entities[a.modalEntityId],visible:a.modalVisible,onClose:e[2]||(e[2]=function(t){return k.onEntityModal(null)})},null,8,["entity","visible"])):(0,i.kq)("",!0),null!==(I=Object.keys(k.displayGroups||{}))&&void 0!==I&&I.length?((0,i.wg)(),(0,i.iD)("div",p,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(k.displayGroups,(function(t){var e,n;return(0,i.wg)(),(0,i.iD)("div",{class:"group fade-in",key:t.name},[(0,i._)("div",v,[(0,i._)("div",m,[(0,i._)("span",h,["type"===a.selector.grouping&&k.entitiesMeta[t.name]?((0,i.wg)(),(0,i.j4)(j,(0,r.vs)((0,i.dG)({key:0},k.entitiesMeta[t.name].icon||{})),null,16)):"plugin"===a.selector.grouping&&k.pluginIcons[t.name]?((0,i.wg)(),(0,i.j4)(j,{key:1,class:(0,r.C_)(null===(e=k.pluginIcons[t.name])||void 0===e?void 0:e.class),url:null===(n=k.pluginIcons[t.name])||void 0===n?void 0:n.imgUrl},null,8,["class","url"])):(0,i.kq)("",!0)]),(0,i._)("span",y,["type"===a.selector.grouping&&k.entitiesMeta[t.name]?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"title",textContent:(0,r.zw)(k.entitiesMeta[t.name].name_plural)},null,8,g)):"plugin"===a.selector.grouping?((0,i.wg)(),(0,i.iD)("div",{key:1,class:"title",textContent:(0,r.zw)(t.name)},null,8,w)):(0,i.kq)("",!0)]),(0,i._)("span",_,[(0,i._)("button",{title:"Refresh",onClick:function(e){return k.refresh(t)}},E,8,b)])]),(0,i._)("div",x,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.entities,(function(t){return(0,i.wg)(),(0,i.iD)("div",{class:"entity-frame",onClick:function(e){return k.onEntityModal(t.id)},key:t.id},[(0,i.Wm)(S,{value:t,onInput:k.onEntityInput,error:!!a.errorEntities[t.id],loading:!!a.loadingEntities[t.id],onLoading:function(e){return a.loadingEntities[t.id]=e}},null,8,["value","onInput","error","loading","onLoading"])],8,C)})),128))])])])})),128))])):((0,i.wg)(),(0,i.j4)(Z,{key:1},{default:(0,i.w5)((function(){return[f]})),_:1}))])])}var D=n(4648),G=n(8534),T=n(6084),Z=(n(5666),n(9653),n(1539),n(9720),n(1249),n(2707),n(7327),n(2479),n(6813)),j=n(1232),S=n(1478),O={class:"no-items-container"},q={class:"no-items fade-in"};function M(t,e,n,r,o,u){return(0,i.wg)(),(0,i.iD)("div",O,[(0,i._)("div",q,[(0,i.WI)(t.$slots,"default",{},void 0,!0)])])}var U={name:"NoItems"},R=n(3744);const N=(0,R.Z)(U,[["render",M],["__scopeId","data-v-6fec32b5"]]);var $=N,L=n(9892),z=n(6647),W=n(6243),F=n(1359),V=n(7369),B={name:"Entities",components:{Loading:j.Z,Icon:S.Z,Entity:L["default"],Selector:z["default"],NoItems:$,EntityModal:W["default"]},mixins:[Z.Z],props:{entityScanTimeout:{type:Number,default:30}},data:function(){return{loading:!1,loadingEntities:{},errorEntities:{},entityTimeouts:{},entities:{},modalEntityId:null,modalVisible:!1,selector:{grouping:"type",selectedEntities:{}}}},computed:{entitiesMeta:function(){return V},pluginIcons:function(){return F},entityGroups:function(){return{id:Object.entries(this.groupEntities("id")).reduce((function(t,e){var n=(0,T.Z)(e,2),i=n[0],r=n[1];return t[i]=r[0],t}),{}),type:this.groupEntities("type"),plugin:this.groupEntities("plugin")}},displayGroups:function(){var t=this;return Object.entries(this.entityGroups[this.selector.grouping]).filter((function(e){return e[1].filter((function(e){return!!t.selector.selectedEntities[e.id]})).length>0})).sort((function(t,e){return t[0].localeCompare(e[0])})).map((function(e){var n=(0,T.Z)(e,2),i=n[0],r=n[1];return{name:i,entities:r.filter((function(e){return e.id in t.selector.selectedEntities}))}}))}},methods:{groupEntities:function(t){return Object.values(this.entities).reduce((function(e,n){var i=e[n[t]]||{};return i[n.id]=n,e[n[t]]=Object.values(i).sort((function(t,e){return t.name.localeCompare(e.name)})),e}),{})},refresh:function(t){var e=this;return(0,G.Z)(regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=(t?t.entities:e.entities)||{},r={},t&&(r.plugins=Object.keys(i.reduce((function(t,e){return t[e.plugin]=!0,t}),{}))),e.loadingEntities=Object.values(i).reduce((function(t,n){var i=e,r=n.id;return e.entityTimeouts[r]&&clearTimeout(e.entityTimeouts[r]),e.entityTimeouts[r]=setTimeout((function(){i.loadingEntities[r]&&delete i.loadingEntities[r],i.entityTimeouts[r]&&delete i.entityTimeouts[r],i.errorEntities[r]=n,i.notify({error:!0,title:n.plugin,text:"Scan timeout for ".concat(n.name)})}),1e3*e.entityScanTimeout),t[r]=!0,t}),{}),n.next=6,e.request("entities.scan",r);case 6:case"end":return n.stop()}}),n)})))()},sync:function(){var t=this;return(0,G.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,t.request("entities.get");case 4:t.entities=e.sent.reduce((function(t,e){var n;return e.name=(null===e||void 0===e||null===(n=e.meta)||void 0===n?void 0:n.name_override)||e.name,e.meta=(0,D.Z)((0,D.Z)({},V[e.type]||{}),e.meta||{}),t[e.id]=e,t}),{}),t.selector.selectedEntities=t.entityGroups.id;case 6:return e.prev=6,t.loading=!1,e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})))()},clearEntityTimeouts:function(t){this.errorEntities[t]&&delete this.errorEntities[t],this.loadingEntities[t]&&delete this.loadingEntities[t],this.entityTimeouts[t]&&(clearTimeout(this.entityTimeouts[t]),delete this.entityTimeouts[t])},onEntityInput:function(t){this.entities[t.id]=t,this.clearEntityTimeouts(t.id),this.loadingEntities[t.id]&&delete this.loadingEntities[t.id]},onEntityUpdate:function(t){var e,n,i,r,o,u,l,s,a,c,d,f=t.entity.id;if(null!=f){this.clearEntityTimeouts(f);var p=(0,D.Z)({},t.entity);null==(null===(e=t.entity)||void 0===e?void 0:e.state)&&(p.state=null===(n=this.entities[f])||void 0===n?void 0:n.state),null!==(i=p.meta)&&void 0!==i&&null!==(r=i.name_override)&&void 0!==r&&r.length?p.name=p.meta.name_override:null!==(o=this.entities[f])&&void 0!==o&&null!==(u=o.meta)&&void 0!==u&&null!==(l=u.name_override)&&void 0!==l&&l.length?p.name=this.entities[f].meta.name_override:p.name=(null===(s=t.entity)||void 0===s?void 0:s.name)||(null===(a=this.entities[f])||void 0===a?void 0:a.name),p.meta=(0,D.Z)((0,D.Z)((0,D.Z)({},V[t.entity.type]||{}),(null===(c=this.entities[f])||void 0===c?void 0:c.meta)||{}),(null===(d=t.entity)||void 0===d?void 0:d.meta)||{}),this.entities[f]=p}},onEntityDelete:function(t){var e,n=null===(e=t.entity)||void 0===e?void 0:e.id;null!=n&&(n===this.modalEntityId&&(this.modalEntityId=null),this.entities[n]&&delete this.entities[n])},onEntityModal:function(t){t?(this.modalEntityId=t,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},mounted:function(){var t=this;return(0,G.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.subscribe(t.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),t.subscribe(t.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),e.next=4,t.sync();case 4:return e.next=6,t.refresh();case 6:case"end":return e.stop()}}),e)})))()}};const K=(0,R.Z)(B,[["render",I],["__scopeId","data-v-fef021ee"]]);var A=K},6243:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Lt}});n(8309),n(2526),n(1817);var i=n(6252),r=n(3577),o=function(t){return(0,i.dD)("data-v-628ff73f"),t=t(),(0,i.Cn)(),t},u=(0,i.Uk)(" Are you "),l=o((function(){return(0,i._)("b",null,"sure",-1)})),s=(0,i.Uk)(" that you want to delete this entity? "),a=o((function(){return(0,i._)("br",null,null,-1)})),c=o((function(){return(0,i._)("br",null,null,-1)})),d=(0,i.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),f=o((function(){return(0,i._)("br",null,null,-1)})),p=o((function(){return(0,i._)("br",null,null,-1)})),v=(0,i.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),m={class:"table-row"},h={class:"title"},y=(0,i.Uk)(" Name "),g={class:"value"},w=["textContent"],_={class:"table-row"},b={class:"title"},k=(0,i.Uk)(" Icon "),E={class:"value icon-canvas"},x={key:0,class:"icon-editor"},C=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),I=[C],D=o((function(){return(0,i._)("span",{class:"help"},[(0,i.Uk)(" Supported: image URLs or "),(0,i._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,i.Uk)(". ")],-1)})),G={class:"table-row"},T=o((function(){return(0,i._)("div",{class:"title"}," Icon color ",-1)})),Z={class:"value icon-color-picker"},j=["value"],S=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),O=[S],q={class:"table-row"},M=o((function(){return(0,i._)("div",{class:"title"},"Plugin",-1)})),U=["textContent"],R={class:"table-row"},N=o((function(){return(0,i._)("div",{class:"title"},"Internal ID",-1)})),$=["textContent"],L={key:0,class:"table-row"},z=o((function(){return(0,i._)("div",{class:"title"},"External ID",-1)})),W=["textContent"],F={key:1,class:"table-row"},V=o((function(){return(0,i._)("div",{class:"title"},"Description",-1)})),B=["textContent"],K={key:0,class:"table-row"},A=["textContent"],H=["textContent"],Y={key:2,class:"table-row"},P=o((function(){return(0,i._)("div",{class:"title"},"Created at",-1)})),J=["textContent"],Q={key:3,class:"table-row"},X=o((function(){return(0,i._)("div",{class:"title"},"Updated at",-1)})),tt=["textContent"],et={class:"table-row delete-entity-container"},nt=o((function(){return(0,i._)("div",{class:"title"},"Delete Entity",-1)})),it={class:"value"},rt=o((function(){return(0,i._)("i",{class:"fas fa-trash"},null,-1)})),ot=[rt];function ut(t,e,n,o,C,S){var rt=(0,i.up)("ConfirmDialog"),ut=(0,i.up)("EditButton"),lt=(0,i.up)("NameEditor"),st=(0,i.up)("Icon"),at=(0,i.up)("Modal",!0);return(0,i.wg)(),(0,i.j4)(at,{visible:n.visible,class:"entity-modal",title:n.entity.name||n.entity.external_id},{default:(0,i.w5)((function(){var o,at,ct,dt,ft,pt,vt,mt;return[(0,i.Wm)(rt,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:S.onDelete},{default:(0,i.w5)((function(){return[u,l,s,a,c,d,f,p,v]})),_:1},8,["onInput"]),(0,i._)("div",m,[(0,i._)("div",h,[y,C.editName?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ut,{key:0,onClick:e[0]||(e[0]=function(t){return C.editName=!0})}))]),(0,i._)("div",g,[C.editName?((0,i.wg)(),(0,i.j4)(lt,{key:0,value:n.entity.name,onInput:S.onRename,onCancel:e[1]||(e[1]=function(t){return C.editName=!1}),disabled:C.loading},null,8,["value","onInput","disabled"])):((0,i.wg)(),(0,i.iD)("span",{key:1,textContent:(0,r.zw)(n.entity.name)},null,8,w))])]),(0,i._)("div",_,[(0,i._)("div",b,[k,C.editIcon?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ut,{key:0,onClick:e[2]||(e[2]=function(t){return C.editIcon=!0})}))]),(0,i._)("div",E,[C.editIcon?((0,i.wg)(),(0,i.iD)("span",x,[(0,i.Wm)(lt,{value:(null===(o=n.entity.meta)||void 0===o||null===(at=o.icon)||void 0===at?void 0:at.class)||(null===(ct=n.entity.meta)||void 0===ct||null===(dt=ct.icon)||void 0===dt?void 0:dt.url),onInput:S.onIconEdit,onCancel:e[5]||(e[5]=function(t){return C.editIcon=!1}),disabled:C.loading},{default:(0,i.w5)((function(){return[(0,i._)("button",{type:"button",title:"Reset",onClick:e[3]||(e[3]=function(t){return S.onIconEdit(null)}),onTouch:e[4]||(e[4]=function(t){return S.onIconEdit(null)})},I,32)]})),_:1},8,["value","onInput","disabled"]),D])):((0,i.wg)(),(0,i.j4)(st,(0,r.vs)((0,i.dG)({key:1},(null===(ft=n.entity)||void 0===ft||null===(pt=ft.meta)||void 0===pt?void 0:pt.icon)||{})),null,16))])]),(0,i._)("div",G,[T,(0,i._)("div",Z,[(0,i._)("input",{type:"color",value:null===(vt=n.entity.meta)||void 0===vt||null===(mt=vt.icon)||void 0===mt?void 0:mt.color,onChange:e[6]||(e[6]=function(){return S.onIconColorEdit&&S.onIconColorEdit.apply(S,arguments)})},null,40,j),(0,i._)("button",{type:"button",title:"Reset",onClick:e[7]||(e[7]=function(t){return S.onIconColorEdit(null)}),onTouch:e[8]||(e[8]=function(t){return S.onIconColorEdit(null)})},O,32)])]),(0,i._)("div",q,[M,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.plugin)},null,8,U)]),(0,i._)("div",R,[N,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.id)},null,8,$)]),n.entity.external_id?((0,i.wg)(),(0,i.iD)("div",L,[z,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.external_id)},null,8,W)])):(0,i.kq)("",!0),n.entity.description?((0,i.wg)(),(0,i.iD)("div",F,[V,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.description)},null,8,B)])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.entity.data||{},(function(e,n){return(0,i.wg)(),(0,i.iD)("div",{key:n},[null!=e?((0,i.wg)(),(0,i.iD)("div",K,[(0,i._)("div",{class:"title",textContent:(0,r.zw)(t.prettify(n))},null,8,A),(0,i._)("div",{class:"value",textContent:(0,r.zw)(""+e)},null,8,H)])):(0,i.kq)("",!0)])})),128)),n.entity.created_at?((0,i.wg)(),(0,i.iD)("div",Y,[P,(0,i._)("div",{class:"value",textContent:(0,r.zw)(t.formatDateTime(n.entity.created_at))},null,8,J)])):(0,i.kq)("",!0),n.entity.updated_at?((0,i.wg)(),(0,i.iD)("div",Q,[X,(0,i._)("div",{class:"value",textContent:(0,r.zw)(t.formatDateTime(n.entity.updated_at))},null,8,tt)])):(0,i.kq)("",!0),(0,i._)("div",et,[nt,(0,i._)("div",it,[(0,i._)("button",{onClick:e[9]||(e[9]=function(e){return t.$refs.deleteConfirmDiag.show()})},ot)])])]})),_:1},8,["visible","title"])}var lt=n(8534),st=(n(6755),n(5666),n(8453)),at=n(1478),ct=n(9963),dt=function(t){return(0,i.dD)("data-v-d543b3e4"),t=t(),(0,i.Cn)(),t},ft={class:"dialog-content"},pt=dt((function(){return(0,i._)("i",{class:"fas fa-check"},null,-1)})),vt=dt((function(){return(0,i._)("i",{class:"fas fa-xmark"},null,-1)}));function mt(t,e,n,o,u,l){var s=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(s,{ref:"modal",title:n.title},{default:(0,i.w5)((function(){return[(0,i._)("div",ft,[(0,i.WI)(t.$slots,"default",{},void 0,!0)]),(0,i._)("form",{class:"buttons",onSubmit:e[4]||(e[4]=(0,ct.iM)((function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),["prevent"]))},[(0,i._)("button",{type:"submit",class:"ok-btn",onClick:e[0]||(e[0]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),onTouch:e[1]||(e[1]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)})},[pt,(0,i.Uk)("   "+(0,r.zw)(n.confirmText),1)],32),(0,i._)("button",{type:"button",class:"cancel-btn",onClick:e[2]||(e[2]=function(){return l.close&&l.close.apply(l,arguments)}),onTouch:e[3]||(e[3]=function(){return l.close&&l.close.apply(l,arguments)})},[vt,(0,i.Uk)("   "+(0,r.zw)(n.cancelText),1)],32)],32)]})),_:3},8,["title"])}var ht={emits:["input","click","touch"],components:{Modal:st.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm:function(){this.$emit("input"),this.close()},show:function(){this.$refs.modal.show()},close:function(){this.$refs.modal.hide()}}},yt=n(3744);const gt=(0,yt.Z)(ht,[["render",mt],["__scopeId","data-v-d543b3e4"]]);var wt=gt,_t=function(t){return(0,i.dD)("data-v-3344f2bf"),t=t(),(0,i.Cn)(),t},bt=_t((function(){return(0,i._)("i",{class:"fas fa-pen-to-square"},null,-1)})),kt=[bt];function Et(t,e,n,r,o,u){return(0,i.wg)(),(0,i.iD)("button",{class:"edit-btn",onClick:e[0]||(e[0]=function(t){return u.proxy(t)}),onTouch:e[1]||(e[1]=function(t){return u.proxy(t)}),onInput:e[2]||(e[2]=function(t){return u.proxy(t)})},kt,32)}var xt={emits:["input","click","touch"],methods:{proxy:function(t){this.$emit(t.type,t)}}};const Ct=(0,yt.Z)(xt,[["render",Et],["__scopeId","data-v-3344f2bf"]]);var It=Ct,Dt=function(t){return(0,i.dD)("data-v-1405d90f"),t=t(),(0,i.Cn)(),t},Gt=["disabled"],Tt=Dt((function(){return(0,i._)("button",{type:"submit"},[(0,i._)("i",{class:"fas fa-circle-check"})],-1)})),Zt=Dt((function(){return(0,i._)("i",{class:"fas fa-ban"},null,-1)})),jt=[Zt];function St(t,e,n,r,o,u){return(0,i.wg)(),(0,i.iD)("form",{onSubmit:e[3]||(e[3]=(0,ct.iM)((function(){return u.submit&&u.submit.apply(u,arguments)}),["prevent"])),class:"name-editor"},[(0,i.wy)((0,i._)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=function(t){return o.text=t}),disabled:n.disabled},null,8,Gt),[[ct.nr,o.text]]),Tt,(0,i._)("button",{class:"cancel",onClick:e[1]||(e[1]=function(e){return t.$emit("cancel")}),onTouch:e[2]||(e[2]=function(e){return t.$emit("cancel")})},jt,32),(0,i.WI)(t.$slots,"default",{},void 0,!0)],32)}var Ot={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data:function(){return{text:null}},methods:{proxy:function(t){this.$emit(t.type,t)},submit:function(){return this.$emit("input",this.text),!1}},mounted:function(){this.text=this.value}};const qt=(0,yt.Z)(Ot,[["render",St],["__scopeId","data-v-1405d90f"]]);var Mt=qt,Ut=n(6813),Rt=n(7369),Nt={name:"Entity",components:{Modal:st.Z,EditButton:It,NameEditor:Mt,Icon:at.Z,ConfirmDialog:wt},mixins:[Ut.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1}},data:function(){return{loading:!1,editName:!1,editIcon:!1}},methods:{onRename:function(t){var e=this;return(0,lt.Z)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,i={},i[e.entity.id]=t,n.next=6,e.request("entities.rename",i);case 6:return n.prev=6,e.loading=!1,e.editName=!1,n.finish(6);case 10:case"end":return n.stop()}}),n,null,[[1,,6,10]])})))()},onDelete:function(){var t=this;return(0,lt.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,t.request("entities.delete",[t.entity.id]);case 4:return e.prev=4,t.loading=!1,e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[1,,4,7]])})))()},onIconEdit:function(t){var e=this;return(0,lt.Z)(regeneratorRuntime.mark((function n(){var i,r,o,u,l,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,i={url:null,class:null},null!==t&&void 0!==t&&t.length?t.startsWith("http")?i.url=t:i.class=t:(i.url=null===(r=Rt[e.entity.type]||{})||void 0===r||null===(o=r.icon)||void 0===o?void 0:o.url,i.class=null===(u=Rt[e.entity.type]||{})||void 0===u||null===(l=u.icon)||void 0===l?void 0:l["class"]),s={},s[e.entity.id]={icon:i},n.next=8,e.request("entities.set_meta",s);case 8:return n.prev=8,e.loading=!1,e.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()},onIconColorEdit:function(t){var e=this;return(0,lt.Z)(regeneratorRuntime.mark((function n(){var i,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,r=(null===(i=e.entity.meta)||void 0===i?void 0:i.icon)||{},r.color=t?t.target.value:null,o={},o[e.entity.id]={icon:r},n.next=8,e.request("entities.set_meta",o);case 8:return n.prev=8,e.loading=!1,e.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()}}};const $t=(0,yt.Z)(Nt,[["render",ut],["__scopeId","data-v-628ff73f"]]);var Lt=$t},6647:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});n(7941);var i=n(6252),r=n(3577),o=n(9963),u={class:"entities-selectors-container"},l={class:"selector"},s={key:1,class:"selector"};function a(t,e,n,a,c,d){var f,p=(0,i.up)("DropdownItem"),v=(0,i.up)("Dropdown");return(0,i.wg)(),(0,i.iD)("div",u,[(0,i._)("div",l,[(0,i.Wm)(v,{title:"Group by","icon-class":"fas fa-eye",ref:"groupingSelector"},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.visibleGroupings,(function(t){var e;return(0,i.wg)(),(0,i.j4)(p,{key:t,text:d.prettifyGroupingName(t),"item-class":{selected:(null===(e=n.value)||void 0===e?void 0:e.grouping)===t},onClick:function(e){return d.onGroupingChanged(t)}},null,8,["text","item-class","onClick"])})),128))]})),_:1},512)]),null!==(f=n.value)&&void 0!==f&&f.grouping?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,r.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,i.Wm)(v,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.sortedGroups,(function(t){return(0,i.wg)(),(0,i.j4)(p,(0,i.dG)({key:t,text:t},d.iconForGroup(t),{"item-class":{selected:!!c.selectedGroups[t]},onClick:(0,o.iM)((function(e){return d.toggleGroup(t)}),["stop"])}),null,16,["text","item-class","onClick"])})),128))]})),_:1},512)],2)):(0,i.kq)("",!0),Object.keys(n.entityGroups.id||{}).length?((0,i.wg)(),(0,i.iD)("div",s,[(0,i.wy)((0,i._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":e[0]||(e[0]=function(t){return c.searchTerm=t})},null,512),[[o.nr,c.searchTerm]])])):(0,i.kq)("",!0)])}var c=n(4648),d=(n(7327),n(1539),n(2707),n(2479),n(8309),n(9714),n(6813)),f=n(5771),p=n(9015),v=n(7369),m=n(1359),h={name:"Selector",emits:["input"],mixins:[d.Z],components:{Dropdown:f.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data:function(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings:function(){return Object.keys(this.entityGroups).filter((function(t){return"id"!==t}))},sortedGroups:function(){var t;return Object.keys(this.entityGroups[null===(t=this.value)||void 0===t?void 0:t.grouping]||{}).sort()},typesMeta:function(){return v},isGroupFilterActive:function(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities:function(){var t=this;return Object.values(this.entityGroups.id).filter((function(e){var n,i;if(!t.selectedGroups[e[null===(n=t.value)||void 0===n?void 0:n.grouping]])return!1;if(null!==(i=t.searchTerm)&&void 0!==i&&i.length){var r=t.searchTerm.toLowerCase();return(e.name||"").toLowerCase().indexOf(r)>=0||(e.plugin||"").toLowerCase().indexOf(r)>=0||(e.external_id||"").toLowerCase().indexOf(r)>=0||(e.id||0).toString()==r}return!0})).reduce((function(t,e){return t[e.id]=e,t}),{})}},methods:{prettifyGroupingName:function(t){return t?this.prettify(t)+"s":""},iconForGroup:function(t){if("plugin"===this.value.grouping&&m[t]){var e,n,i=m[t];return{"icon-class":null!==(e=i["class"])&&void 0!==e&&e.length||null===(n=i.imgUrl)||void 0===n||!n.length?i["class"]:"fas fa-gears","icon-url":i.imgUrl}}return{}},synchronizeSelectedEntities:function(){var t=(0,c.Z)({},this.value);t.selectedEntities=this.selectedEntities,this.$emit("input",t)},updateSearchTerm:function(){var t=(0,c.Z)({},this.value);t.searchTerm=this.searchTerm,t.selectedEntities=this.selectedEntities,this.$emit("input",t)},refreshGroupFilter:function(t){var e;if(t)this.selectedGroups=Object.keys(this.entityGroups[null===(e=this.value)||void 0===e?void 0:e.grouping]||{}).reduce((function(t,e){return t[e]=!0,t}),{});else for(var n=0,i=Object.keys(this.entityGroups[null===(r=this.value)||void 0===r?void 0:r.grouping]);n1?arguments[1]:void 0,e.length)),i=l(t);return f?f(e,i,n):p(e,n,n+i.length)===i}})},9892:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return c}});var i=n(6252),r={class:"row item entity-container"};function o(t,e,n,o,u,l){var s;return(0,i.wg)(),(0,i.iD)("div",r,[((0,i.wg)(),(0,i.j4)((0,i.LL)(u.component),{value:t.value,loading:t.loading,error:t.error||0==(null===(s=t.value)||void 0===s?void 0:s.reachable),onInput:e[0]||(e[0]=function(e){return t.$emit("input",e)}),onLoading:e[1]||(e[1]=function(e){return t.$emit("loading",e)})},null,8,["value","loading","error"]))])}n(1539),n(8783),n(3948);var u=n(7909),l={name:"Entity",mixins:[u["default"]],emits:["input","loading"],data:function(){return{component:null}},mounted:function(){var t=this;"Entity"!==this.type&&(this.component=(0,i.RC)((function(){return n(7243)("./".concat(t.type))})))}},s=n(3744);const a=(0,s.Z)(l,[["render",o],["__scopeId","data-v-3c242632"]]);var c=a},7909:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u}});n(7042);var i=n(6813),r={name:"EntityMixin",mixins:[i.Z],emits:["input"],props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{type:Object,required:!0}},data:function(){return{modalVisible:!1}},computed:{type:function(){var t=this.value.type||"";return t.charAt(0).toUpperCase()+t.slice(1)}}};const o=r;var u=o},914:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return A}});n(7941),n(8309);var i=n(6252),r=n(3577),o=function(t){return(0,i.dD)("data-v-fef021ee"),t=t(),(0,i.Cn)(),t},u={class:"row plugin entities-container"},l={class:"col-11 left"},s={class:"col-1 right"},a=o((function(){return(0,i._)("i",{class:"fa fa-sync-alt"},null,-1)})),c=[a],d={class:"groups-canvas"},f=(0,i.Uk)("No entities found"),p={key:2,class:"groups-container"},v={class:"frame"},m={class:"header"},h={class:"section left"},y={class:"section center"},g=["textContent"],w=["textContent"],_={class:"section right"},b=["onClick"],k=o((function(){return(0,i._)("i",{class:"fa fa-sync-alt"},null,-1)})),E=[k],x={class:"body"},C=["onClick"];function I(t,e,n,o,a,k){var I,D=(0,i.up)("Loading"),G=(0,i.up)("Selector"),T=(0,i.up)("EntityModal"),Z=(0,i.up)("NoItems"),j=(0,i.up)("Icon"),S=(0,i.up)("Entity");return(0,i.wg)(),(0,i.iD)("div",u,[a.loading?((0,i.wg)(),(0,i.j4)(D,{key:0})):(0,i.kq)("",!0),(0,i._)("header",null,[(0,i._)("div",l,[(0,i.Wm)(G,{"entity-groups":k.entityGroups,value:a.selector,onInput:e[0]||(e[0]=function(t){return a.selector=t})},null,8,["entity-groups","value"])]),(0,i._)("div",s,[(0,i._)("button",{title:"Refresh",onClick:e[1]||(e[1]=function(t){return k.refresh(null)})},c)])]),(0,i._)("div",d,[a.modalEntityId?((0,i.wg)(),(0,i.j4)(T,{key:0,entity:a.entities[a.modalEntityId],visible:a.modalVisible,onClose:e[2]||(e[2]=function(t){return k.onEntityModal(null)})},null,8,["entity","visible"])):(0,i.kq)("",!0),null!==(I=Object.keys(k.displayGroups||{}))&&void 0!==I&&I.length?((0,i.wg)(),(0,i.iD)("div",p,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(k.displayGroups,(function(t){var e,n;return(0,i.wg)(),(0,i.iD)("div",{class:"group fade-in",key:t.name},[(0,i._)("div",v,[(0,i._)("div",m,[(0,i._)("span",h,["type"===a.selector.grouping&&k.entitiesMeta[t.name]?((0,i.wg)(),(0,i.j4)(j,(0,r.vs)((0,i.dG)({key:0},k.entitiesMeta[t.name].icon||{})),null,16)):"plugin"===a.selector.grouping&&k.pluginIcons[t.name]?((0,i.wg)(),(0,i.j4)(j,{key:1,class:(0,r.C_)(null===(e=k.pluginIcons[t.name])||void 0===e?void 0:e.class),url:null===(n=k.pluginIcons[t.name])||void 0===n?void 0:n.imgUrl},null,8,["class","url"])):(0,i.kq)("",!0)]),(0,i._)("span",y,["type"===a.selector.grouping&&k.entitiesMeta[t.name]?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"title",textContent:(0,r.zw)(k.entitiesMeta[t.name].name_plural)},null,8,g)):"plugin"===a.selector.grouping?((0,i.wg)(),(0,i.iD)("div",{key:1,class:"title",textContent:(0,r.zw)(t.name)},null,8,w)):(0,i.kq)("",!0)]),(0,i._)("span",_,[(0,i._)("button",{title:"Refresh",onClick:function(e){return k.refresh(t)}},E,8,b)])]),(0,i._)("div",x,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.entities,(function(t){return(0,i.wg)(),(0,i.iD)("div",{class:"entity-frame",onClick:function(e){return k.onEntityModal(t.id)},key:t.id},[(0,i.Wm)(S,{value:t,onInput:k.onEntityInput,error:!!a.errorEntities[t.id],loading:!!a.loadingEntities[t.id],onLoading:function(e){return a.loadingEntities[t.id]=e}},null,8,["value","onInput","error","loading","onLoading"])],8,C)})),128))])])])})),128))])):((0,i.wg)(),(0,i.j4)(Z,{key:1},{default:(0,i.w5)((function(){return[f]})),_:1}))])])}var D=n(4648),G=n(8534),T=n(6084),Z=(n(5666),n(9653),n(1539),n(9720),n(1249),n(2707),n(7327),n(2479),n(6813)),j=n(1232),S=n(1478),O={class:"no-items-container"},q={class:"no-items fade-in"};function M(t,e,n,r,o,u){return(0,i.wg)(),(0,i.iD)("div",O,[(0,i._)("div",q,[(0,i.WI)(t.$slots,"default",{},void 0,!0)])])}var U={name:"NoItems"},R=n(3744);const N=(0,R.Z)(U,[["render",M],["__scopeId","data-v-6fec32b5"]]);var $=N,L=n(9892),z=n(6647),W=n(6243),F=n(1359),V=n(7369),B={name:"Entities",components:{Loading:j.Z,Icon:S.Z,Entity:L["default"],Selector:z["default"],NoItems:$,EntityModal:W["default"]},mixins:[Z.Z],props:{entityScanTimeout:{type:Number,default:30}},data:function(){return{loading:!1,loadingEntities:{},errorEntities:{},entityTimeouts:{},entities:{},modalEntityId:null,modalVisible:!1,selector:{grouping:"type",selectedEntities:{}}}},computed:{entitiesMeta:function(){return V},pluginIcons:function(){return F},entityGroups:function(){return{id:Object.entries(this.groupEntities("id")).reduce((function(t,e){var n=(0,T.Z)(e,2),i=n[0],r=n[1];return t[i]=r[0],t}),{}),type:this.groupEntities("type"),plugin:this.groupEntities("plugin")}},displayGroups:function(){var t=this;return Object.entries(this.entityGroups[this.selector.grouping]).filter((function(e){return e[1].filter((function(e){return!!t.selector.selectedEntities[e.id]})).length>0})).sort((function(t,e){return t[0].localeCompare(e[0])})).map((function(e){var n=(0,T.Z)(e,2),i=n[0],r=n[1];return{name:i,entities:r.filter((function(e){return e.id in t.selector.selectedEntities}))}}))}},methods:{groupEntities:function(t){return Object.values(this.entities).reduce((function(e,n){var i=e[n[t]]||{};return i[n.id]=n,e[n[t]]=Object.values(i).sort((function(t,e){return t.name.localeCompare(e.name)})),e}),{})},refresh:function(t){var e=this;return(0,G.Z)(regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=(t?t.entities:e.entities)||{},r={},t&&(r.plugins=Object.keys(i.reduce((function(t,e){return t[e.plugin]=!0,t}),{}))),e.loadingEntities=Object.values(i).reduce((function(t,n){var i=e,r=n.id;return e.entityTimeouts[r]&&clearTimeout(e.entityTimeouts[r]),e.entityTimeouts[r]=setTimeout((function(){i.loadingEntities[r]&&delete i.loadingEntities[r],i.entityTimeouts[r]&&delete i.entityTimeouts[r],i.errorEntities[r]=n,i.notify({error:!0,title:n.plugin,text:"Scan timeout for ".concat(n.name)})}),1e3*e.entityScanTimeout),t[r]=!0,t}),{}),n.next=6,e.request("entities.scan",r);case 6:case"end":return n.stop()}}),n)})))()},sync:function(){var t=this;return(0,G.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,t.request("entities.get");case 4:t.entities=e.sent.reduce((function(t,e){var n;return e.name=(null===e||void 0===e||null===(n=e.meta)||void 0===n?void 0:n.name_override)||e.name,e.meta=(0,D.Z)((0,D.Z)({},V[e.type]||{}),e.meta||{}),t[e.id]=e,t}),{}),t.selector.selectedEntities=t.entityGroups.id;case 6:return e.prev=6,t.loading=!1,e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})))()},clearEntityTimeouts:function(t){this.errorEntities[t]&&delete this.errorEntities[t],this.loadingEntities[t]&&delete this.loadingEntities[t],this.entityTimeouts[t]&&(clearTimeout(this.entityTimeouts[t]),delete this.entityTimeouts[t])},onEntityInput:function(t){this.entities[t.id]=t,this.clearEntityTimeouts(t.id),this.loadingEntities[t.id]&&delete this.loadingEntities[t.id]},onEntityUpdate:function(t){var e,n,i,r,o,u,l,s,a,c,d,f=t.entity.id;if(null!=f){this.clearEntityTimeouts(f);var p=(0,D.Z)({},t.entity);null==(null===(e=t.entity)||void 0===e?void 0:e.state)&&(p.state=null===(n=this.entities[f])||void 0===n?void 0:n.state),null!==(i=p.meta)&&void 0!==i&&null!==(r=i.name_override)&&void 0!==r&&r.length?p.name=p.meta.name_override:null!==(o=this.entities[f])&&void 0!==o&&null!==(u=o.meta)&&void 0!==u&&null!==(l=u.name_override)&&void 0!==l&&l.length?p.name=this.entities[f].meta.name_override:p.name=(null===(s=t.entity)||void 0===s?void 0:s.name)||(null===(a=this.entities[f])||void 0===a?void 0:a.name),p.meta=(0,D.Z)((0,D.Z)((0,D.Z)({},V[t.entity.type]||{}),(null===(c=this.entities[f])||void 0===c?void 0:c.meta)||{}),(null===(d=t.entity)||void 0===d?void 0:d.meta)||{}),this.entities[f]=p}},onEntityDelete:function(t){var e,n=null===(e=t.entity)||void 0===e?void 0:e.id;null!=n&&(n===this.modalEntityId&&(this.modalEntityId=null),this.entities[n]&&delete this.entities[n])},onEntityModal:function(t){t?(this.modalEntityId=t,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},mounted:function(){var t=this;return(0,G.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.subscribe(t.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),t.subscribe(t.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),e.next=4,t.sync();case 4:return e.next=6,t.refresh();case 6:case"end":return e.stop()}}),e)})))()}};const K=(0,R.Z)(B,[["render",I],["__scopeId","data-v-fef021ee"]]);var A=K},6243:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Lt}});n(8309),n(2526),n(1817);var i=n(6252),r=n(3577),o=function(t){return(0,i.dD)("data-v-628ff73f"),t=t(),(0,i.Cn)(),t},u=(0,i.Uk)(" Are you "),l=o((function(){return(0,i._)("b",null,"sure",-1)})),s=(0,i.Uk)(" that you want to delete this entity? "),a=o((function(){return(0,i._)("br",null,null,-1)})),c=o((function(){return(0,i._)("br",null,null,-1)})),d=(0,i.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),f=o((function(){return(0,i._)("br",null,null,-1)})),p=o((function(){return(0,i._)("br",null,null,-1)})),v=(0,i.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),m={class:"table-row"},h={class:"title"},y=(0,i.Uk)(" Name "),g={class:"value"},w=["textContent"],_={class:"table-row"},b={class:"title"},k=(0,i.Uk)(" Icon "),E={class:"value icon-canvas"},x={key:0,class:"icon-editor"},C=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),I=[C],D=o((function(){return(0,i._)("span",{class:"help"},[(0,i.Uk)(" Supported: image URLs or "),(0,i._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,i.Uk)(". ")],-1)})),G={class:"table-row"},T=o((function(){return(0,i._)("div",{class:"title"}," Icon color ",-1)})),Z={class:"value icon-color-picker"},j=["value"],S=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),O=[S],q={class:"table-row"},M=o((function(){return(0,i._)("div",{class:"title"},"Plugin",-1)})),U=["textContent"],R={class:"table-row"},N=o((function(){return(0,i._)("div",{class:"title"},"Internal ID",-1)})),$=["textContent"],L={key:0,class:"table-row"},z=o((function(){return(0,i._)("div",{class:"title"},"External ID",-1)})),W=["textContent"],F={key:1,class:"table-row"},V=o((function(){return(0,i._)("div",{class:"title"},"Description",-1)})),B=["textContent"],K={key:0,class:"table-row"},A=["textContent"],H=["textContent"],Y={key:2,class:"table-row"},P=o((function(){return(0,i._)("div",{class:"title"},"Created at",-1)})),J=["textContent"],Q={key:3,class:"table-row"},X=o((function(){return(0,i._)("div",{class:"title"},"Updated at",-1)})),tt=["textContent"],et={class:"table-row delete-entity-container"},nt=o((function(){return(0,i._)("div",{class:"title"},"Delete Entity",-1)})),it={class:"value"},rt=o((function(){return(0,i._)("i",{class:"fas fa-trash"},null,-1)})),ot=[rt];function ut(t,e,n,o,C,S){var rt=(0,i.up)("ConfirmDialog"),ut=(0,i.up)("EditButton"),lt=(0,i.up)("NameEditor"),st=(0,i.up)("Icon"),at=(0,i.up)("Modal",!0);return(0,i.wg)(),(0,i.j4)(at,{visible:n.visible,class:"entity-modal",title:n.entity.name||n.entity.external_id},{default:(0,i.w5)((function(){var o,at,ct,dt,ft,pt,vt,mt;return[(0,i.Wm)(rt,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:S.onDelete},{default:(0,i.w5)((function(){return[u,l,s,a,c,d,f,p,v]})),_:1},8,["onInput"]),(0,i._)("div",m,[(0,i._)("div",h,[y,C.editName?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ut,{key:0,onClick:e[0]||(e[0]=function(t){return C.editName=!0})}))]),(0,i._)("div",g,[C.editName?((0,i.wg)(),(0,i.j4)(lt,{key:0,value:n.entity.name,onInput:S.onRename,onCancel:e[1]||(e[1]=function(t){return C.editName=!1}),disabled:C.loading},null,8,["value","onInput","disabled"])):((0,i.wg)(),(0,i.iD)("span",{key:1,textContent:(0,r.zw)(n.entity.name)},null,8,w))])]),(0,i._)("div",_,[(0,i._)("div",b,[k,C.editIcon?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ut,{key:0,onClick:e[2]||(e[2]=function(t){return C.editIcon=!0})}))]),(0,i._)("div",E,[C.editIcon?((0,i.wg)(),(0,i.iD)("span",x,[(0,i.Wm)(lt,{value:(null===(o=n.entity.meta)||void 0===o||null===(at=o.icon)||void 0===at?void 0:at.class)||(null===(ct=n.entity.meta)||void 0===ct||null===(dt=ct.icon)||void 0===dt?void 0:dt.url),onInput:S.onIconEdit,onCancel:e[5]||(e[5]=function(t){return C.editIcon=!1}),disabled:C.loading},{default:(0,i.w5)((function(){return[(0,i._)("button",{type:"button",title:"Reset",onClick:e[3]||(e[3]=function(t){return S.onIconEdit(null)}),onTouch:e[4]||(e[4]=function(t){return S.onIconEdit(null)})},I,32)]})),_:1},8,["value","onInput","disabled"]),D])):((0,i.wg)(),(0,i.j4)(st,(0,r.vs)((0,i.dG)({key:1},(null===(ft=n.entity)||void 0===ft||null===(pt=ft.meta)||void 0===pt?void 0:pt.icon)||{})),null,16))])]),(0,i._)("div",G,[T,(0,i._)("div",Z,[(0,i._)("input",{type:"color",value:null===(vt=n.entity.meta)||void 0===vt||null===(mt=vt.icon)||void 0===mt?void 0:mt.color,onChange:e[6]||(e[6]=function(){return S.onIconColorEdit&&S.onIconColorEdit.apply(S,arguments)})},null,40,j),(0,i._)("button",{type:"button",title:"Reset",onClick:e[7]||(e[7]=function(t){return S.onIconColorEdit(null)}),onTouch:e[8]||(e[8]=function(t){return S.onIconColorEdit(null)})},O,32)])]),(0,i._)("div",q,[M,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.plugin)},null,8,U)]),(0,i._)("div",R,[N,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.id)},null,8,$)]),n.entity.external_id?((0,i.wg)(),(0,i.iD)("div",L,[z,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.external_id)},null,8,W)])):(0,i.kq)("",!0),n.entity.description?((0,i.wg)(),(0,i.iD)("div",F,[V,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.description)},null,8,B)])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.entity.data||{},(function(e,n){return(0,i.wg)(),(0,i.iD)("div",{key:n},[null!=e?((0,i.wg)(),(0,i.iD)("div",K,[(0,i._)("div",{class:"title",textContent:(0,r.zw)(t.prettify(n))},null,8,A),(0,i._)("div",{class:"value",textContent:(0,r.zw)(""+e)},null,8,H)])):(0,i.kq)("",!0)])})),128)),n.entity.created_at?((0,i.wg)(),(0,i.iD)("div",Y,[P,(0,i._)("div",{class:"value",textContent:(0,r.zw)(t.formatDateTime(n.entity.created_at))},null,8,J)])):(0,i.kq)("",!0),n.entity.updated_at?((0,i.wg)(),(0,i.iD)("div",Q,[X,(0,i._)("div",{class:"value",textContent:(0,r.zw)(t.formatDateTime(n.entity.updated_at))},null,8,tt)])):(0,i.kq)("",!0),(0,i._)("div",et,[nt,(0,i._)("div",it,[(0,i._)("button",{onClick:e[9]||(e[9]=function(e){return t.$refs.deleteConfirmDiag.show()})},ot)])])]})),_:1},8,["visible","title"])}var lt=n(8534),st=(n(6755),n(5666),n(8453)),at=n(1478),ct=n(9963),dt=function(t){return(0,i.dD)("data-v-d543b3e4"),t=t(),(0,i.Cn)(),t},ft={class:"dialog-content"},pt=dt((function(){return(0,i._)("i",{class:"fas fa-check"},null,-1)})),vt=dt((function(){return(0,i._)("i",{class:"fas fa-xmark"},null,-1)}));function mt(t,e,n,o,u,l){var s=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(s,{ref:"modal",title:n.title},{default:(0,i.w5)((function(){return[(0,i._)("div",ft,[(0,i.WI)(t.$slots,"default",{},void 0,!0)]),(0,i._)("form",{class:"buttons",onSubmit:e[4]||(e[4]=(0,ct.iM)((function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),["prevent"]))},[(0,i._)("button",{type:"submit",class:"ok-btn",onClick:e[0]||(e[0]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),onTouch:e[1]||(e[1]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)})},[pt,(0,i.Uk)("   "+(0,r.zw)(n.confirmText),1)],32),(0,i._)("button",{type:"button",class:"cancel-btn",onClick:e[2]||(e[2]=function(){return l.close&&l.close.apply(l,arguments)}),onTouch:e[3]||(e[3]=function(){return l.close&&l.close.apply(l,arguments)})},[vt,(0,i.Uk)("   "+(0,r.zw)(n.cancelText),1)],32)],32)]})),_:3},8,["title"])}var ht={emits:["input","click","touch"],components:{Modal:st.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm:function(){this.$emit("input"),this.close()},show:function(){this.$refs.modal.show()},close:function(){this.$refs.modal.hide()}}},yt=n(3744);const gt=(0,yt.Z)(ht,[["render",mt],["__scopeId","data-v-d543b3e4"]]);var wt=gt,_t=function(t){return(0,i.dD)("data-v-3344f2bf"),t=t(),(0,i.Cn)(),t},bt=_t((function(){return(0,i._)("i",{class:"fas fa-pen-to-square"},null,-1)})),kt=[bt];function Et(t,e,n,r,o,u){return(0,i.wg)(),(0,i.iD)("button",{class:"edit-btn",onClick:e[0]||(e[0]=function(t){return u.proxy(t)}),onTouch:e[1]||(e[1]=function(t){return u.proxy(t)}),onInput:e[2]||(e[2]=function(t){return u.proxy(t)})},kt,32)}var xt={emits:["input","click","touch"],methods:{proxy:function(t){this.$emit(t.type,t)}}};const Ct=(0,yt.Z)(xt,[["render",Et],["__scopeId","data-v-3344f2bf"]]);var It=Ct,Dt=function(t){return(0,i.dD)("data-v-1405d90f"),t=t(),(0,i.Cn)(),t},Gt=["disabled"],Tt=Dt((function(){return(0,i._)("button",{type:"submit"},[(0,i._)("i",{class:"fas fa-circle-check"})],-1)})),Zt=Dt((function(){return(0,i._)("i",{class:"fas fa-ban"},null,-1)})),jt=[Zt];function St(t,e,n,r,o,u){return(0,i.wg)(),(0,i.iD)("form",{onSubmit:e[3]||(e[3]=(0,ct.iM)((function(){return u.submit&&u.submit.apply(u,arguments)}),["prevent"])),class:"name-editor"},[(0,i.wy)((0,i._)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=function(t){return o.text=t}),disabled:n.disabled},null,8,Gt),[[ct.nr,o.text]]),Tt,(0,i._)("button",{class:"cancel",onClick:e[1]||(e[1]=function(e){return t.$emit("cancel")}),onTouch:e[2]||(e[2]=function(e){return t.$emit("cancel")})},jt,32),(0,i.WI)(t.$slots,"default",{},void 0,!0)],32)}var Ot={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data:function(){return{text:null}},methods:{proxy:function(t){this.$emit(t.type,t)},submit:function(){return this.$emit("input",this.text),!1}},mounted:function(){this.text=this.value}};const qt=(0,yt.Z)(Ot,[["render",St],["__scopeId","data-v-1405d90f"]]);var Mt=qt,Ut=n(6813),Rt=n(7369),Nt={name:"Entity",components:{Modal:st.Z,EditButton:It,NameEditor:Mt,Icon:at.Z,ConfirmDialog:wt},mixins:[Ut.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1}},data:function(){return{loading:!1,editName:!1,editIcon:!1}},methods:{onRename:function(t){var e=this;return(0,lt.Z)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,i={},i[e.entity.id]=t,n.next=6,e.request("entities.rename",i);case 6:return n.prev=6,e.loading=!1,e.editName=!1,n.finish(6);case 10:case"end":return n.stop()}}),n,null,[[1,,6,10]])})))()},onDelete:function(){var t=this;return(0,lt.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,t.request("entities.delete",[t.entity.id]);case 4:return e.prev=4,t.loading=!1,e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[1,,4,7]])})))()},onIconEdit:function(t){var e=this;return(0,lt.Z)(regeneratorRuntime.mark((function n(){var i,r,o,u,l,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,i={url:null,class:null},null!==t&&void 0!==t&&t.length?t.startsWith("http")?i.url=t:i.class=t:(i.url=null===(r=Rt[e.entity.type]||{})||void 0===r||null===(o=r.icon)||void 0===o?void 0:o.url,i.class=null===(u=Rt[e.entity.type]||{})||void 0===u||null===(l=u.icon)||void 0===l?void 0:l["class"]),s={},s[e.entity.id]={icon:i},n.next=8,e.request("entities.set_meta",s);case 8:return n.prev=8,e.loading=!1,e.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()},onIconColorEdit:function(t){var e=this;return(0,lt.Z)(regeneratorRuntime.mark((function n(){var i,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,r=(null===(i=e.entity.meta)||void 0===i?void 0:i.icon)||{},r.color=t?t.target.value:null,o={},o[e.entity.id]={icon:r},n.next=8,e.request("entities.set_meta",o);case 8:return n.prev=8,e.loading=!1,e.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()}}};const $t=(0,yt.Z)(Nt,[["render",ut],["__scopeId","data-v-628ff73f"]]);var Lt=$t},6647:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});n(7941);var i=n(6252),r=n(3577),o=n(9963),u={class:"entities-selectors-container"},l={class:"selector"},s={key:1,class:"selector"};function a(t,e,n,a,c,d){var f,p=(0,i.up)("DropdownItem"),v=(0,i.up)("Dropdown");return(0,i.wg)(),(0,i.iD)("div",u,[(0,i._)("div",l,[(0,i.Wm)(v,{title:"Group by","icon-class":"fas fa-eye",ref:"groupingSelector"},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.visibleGroupings,(function(t){var e;return(0,i.wg)(),(0,i.j4)(p,{key:t,text:d.prettifyGroupingName(t),"item-class":{selected:(null===(e=n.value)||void 0===e?void 0:e.grouping)===t},onClick:function(e){return d.onGroupingChanged(t)}},null,8,["text","item-class","onClick"])})),128))]})),_:1},512)]),null!==(f=n.value)&&void 0!==f&&f.grouping?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,r.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,i.Wm)(v,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.sortedGroups,(function(t){return(0,i.wg)(),(0,i.j4)(p,(0,i.dG)({key:t,text:t},d.iconForGroup(t),{"item-class":{selected:!!c.selectedGroups[t]},onClick:(0,o.iM)((function(e){return d.toggleGroup(t)}),["stop"])}),null,16,["text","item-class","onClick"])})),128))]})),_:1},512)],2)):(0,i.kq)("",!0),Object.keys(n.entityGroups.id||{}).length?((0,i.wg)(),(0,i.iD)("div",s,[(0,i.wy)((0,i._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":e[0]||(e[0]=function(t){return c.searchTerm=t})},null,512),[[o.nr,c.searchTerm]])])):(0,i.kq)("",!0)])}var c=n(4648),d=(n(7327),n(1539),n(2707),n(2479),n(8309),n(9714),n(6813)),f=n(5771),p=n(9015),v=n(7369),m=n(1359),h={name:"Selector",emits:["input"],mixins:[d.Z],components:{Dropdown:f.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data:function(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings:function(){return Object.keys(this.entityGroups).filter((function(t){return"id"!==t}))},sortedGroups:function(){var t;return Object.keys(this.entityGroups[null===(t=this.value)||void 0===t?void 0:t.grouping]||{}).sort()},typesMeta:function(){return v},isGroupFilterActive:function(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities:function(){var t=this;return Object.values(this.entityGroups.id).filter((function(e){var n,i;if(!t.selectedGroups[e[null===(n=t.value)||void 0===n?void 0:n.grouping]])return!1;if(null!==(i=t.searchTerm)&&void 0!==i&&i.length){var r=t.searchTerm.toLowerCase();return(e.name||"").toLowerCase().indexOf(r)>=0||(e.plugin||"").toLowerCase().indexOf(r)>=0||(e.external_id||"").toLowerCase().indexOf(r)>=0||(e.id||0).toString()==r}return!0})).reduce((function(t,e){return t[e.id]=e,t}),{})}},methods:{prettifyGroupingName:function(t){return t?this.prettify(t)+"s":""},iconForGroup:function(t){if("plugin"===this.value.grouping&&m[t]){var e,n,i=m[t];return{"icon-class":null!==(e=i["class"])&&void 0!==e&&e.length||null===(n=i.imgUrl)||void 0===n||!n.length?i["class"]:"fas fa-gears","icon-url":i.imgUrl}}return{}},synchronizeSelectedEntities:function(){var t=(0,c.Z)({},this.value);t.selectedEntities=this.selectedEntities,this.$emit("input",t)},updateSearchTerm:function(){var t=(0,c.Z)({},this.value);t.searchTerm=this.searchTerm,t.selectedEntities=this.selectedEntities,this.$emit("input",t)},refreshGroupFilter:function(t){var e;if(t)this.selectedGroups=Object.keys(this.entityGroups[null===(e=this.value)||void 0===e?void 0:e.grouping]||{}).reduce((function(t,e){return t[e]=!0,t}),{});else for(var n=0,i=Object.keys(this.entityGroups[null===(r=this.value)||void 0===r?void 0:r.grouping]);n 1 ? arguments[1] : undefined, that.length));\n var search = toString(searchString);\n return un$StartsWith\n ? un$StartsWith(that, search, index)\n : stringSlice(that, index, index + search.length) === search;\n }\n});\n","\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=3c242632&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=3c242632&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c242632\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=fef021ee&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=fef021ee&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fef021ee\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&scoped=true\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\n\nimport \"./ConfirmDialog.vue?vue&type=style&index=0&id=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=628ff73f&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=js\"\nexport * from \"./Modal.vue?vue&type=script&lang=js\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=628ff73f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-628ff73f\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=63b80935&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=63b80935&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-63b80935\"]])\n\nexport default __exports__","var map = {\n\t\"./Entity\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./Index\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t3803,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Light.vue\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t3803,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Modal\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Selector\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Switch\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./Switch.vue\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["wellKnownSymbol","MATCH","module","exports","METHOD_NAME","regexp","error1","error2","isRegExp","$TypeError","TypeError","it","$","uncurryThis","getOwnPropertyDescriptor","toLength","toString","notARegExp","requireObjectCoercible","correctIsRegExpLogic","IS_PURE","un$StartsWith","startsWith","stringSlice","slice","min","Math","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","descriptor","String","prototype","writable","target","proto","forced","searchString","that","this","index","arguments","length","undefined","search","class","component","value","loading","error","reachable","$emit","$event","name","mixins","EntityMixin","emits","data","mounted","type","__exports__","render","Utils","props","Boolean","default","Object","required","modalVisible","computed","entityType","charAt","toUpperCase","entityGroups","selector","title","refresh","modalEntityId","entity","entities","visible","onEntityModal","keys","displayGroups","group","key","grouping","entitiesMeta","icon","pluginIcons","url","imgUrl","name_plural","id","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","Number","entityTimeouts","selectedEntities","meta","icons","entries","groupEntities","reduce","obj","filter","entry","e","sort","a","b","localeCompare","map","methods","attr","values","args","plugins","plugin","self","clearTimeout","setTimeout","notify","text","request","sync","name_override","clearEntityTimeouts","entityId","onEntityUpdate","event","state","onEntityDelete","subscribe","href","external_id","ref","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","created_at","updated_at","$refs","deleteConfirmDiag","show","onConfirm","confirmText","close","cancelText","Modal","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","newName","req","newIcon","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","prettify","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","$watch","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all","t"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9892-legacy.6a0b2b51.js","mappings":"qGAAA,IAAIA,EAAkB,EAAQ,MAE1BC,EAAQD,EAAgB,SAE5BE,EAAOC,QAAU,SAAUC,GACzB,IAAIC,EAAS,IACb,IACE,MAAMD,GAAaC,EAMrB,CALE,MAAOC,GACP,IAEE,OADAD,EAAOJ,IAAS,EACT,MAAMG,GAAaC,EACG,CAA7B,MAAOE,GAAsB,CACjC,CAAE,OAAO,CACX,C,uBCdA,IAAIC,EAAW,EAAQ,MAEnBC,EAAaC,UAEjBR,EAAOC,QAAU,SAAUQ,GACzB,GAAIH,EAASG,GACX,MAAMF,EAAW,iDACjB,OAAOE,CACX,C,oCCPA,IAAIC,EAAI,EAAQ,MACZC,EAAc,EAAQ,MACtBC,EAA2B,UAC3BC,EAAW,EAAQ,MACnBC,EAAW,EAAQ,MACnBC,EAAa,EAAQ,MACrBC,EAAyB,EAAQ,MACjCC,EAAuB,EAAQ,MAC/BC,EAAU,EAAQ,MAGlBC,EAAgBR,EAAY,GAAGS,YAC/BC,EAAcV,EAAY,GAAGW,OAC7BC,EAAMC,KAAKD,IAEXE,EAA0BR,EAAqB,cAE/CS,GAAoBR,IAAYO,KAA6B,WAC/D,IAAIE,EAAaf,EAAyBgB,OAAOC,UAAW,cAC5D,OAAOF,IAAeA,EAAWG,QACnC,CAHiE,GAOjEpB,EAAE,CAAEqB,OAAQ,SAAUC,OAAO,EAAMC,QAASP,IAAqBD,GAA2B,CAC1FL,WAAY,SAAoBc,GAC9B,IAAIC,EAAOrB,EAASE,EAAuBoB,OAC3CrB,EAAWmB,GACX,IAAIG,E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MAED,UAAW,CACV,KACA,GAED,cAAe,CACd,KACA,GAED,aAAc,CACb,KACA,GAED,iBAAkB,CACjB,KACA,GAED,WAAY,CACX,IACA,EACA,KACA,KACA,KAED,eAAgB,CACf,IACA,EACA,KACA,KACA,KAED,gBAAiB,CAChB,GACA,EACA,KACA,IAED,SAAU,CACT,KACA,GAED,cAAe,CACd,KACA,GAED,cAAe,CACd,KACA,EACA,KACA,OAGF,SAAS6E,EAAoBxB,GAC5B,IAAIyB,EAAoBC,EAAE/E,EAAKqD,GAC9B,OAAO2B,QAAQC,UAAUC,MAAK,WAC7B,IAAIvF,EAAI,IAAIwF,MAAM,uBAAyB9B,EAAM,KAEjD,MADA1D,EAAEyF,KAAO,mBACHzF,CACP,IAGD,IAAI0F,EAAMrF,EAAIqD,GAAMjF,EAAKiH,EAAI,GAC7B,OAAOL,QAAQM,IAAID,EAAIrL,MAAM,GAAGgG,IAAI8E,EAAoBnF,IAAIuF,MAAK,WAChE,OAAOJ,EAAoBS,EAAEnH,EAAa,GAATiH,EAAI,GACtC,GACD,CACAR,EAAoBpH,KAAO,WAAa,OAAOhB,OAAOgB,KAAKuC,EAAM,EACjE6E,EAAoBzG,GAAK,KACzB1F,EAAOC,QAAUkM,C","sources":["webpack://platypush/./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack://platypush/./node_modules/core-js/internals/not-a-regexp.js","webpack://platypush/./node_modules/core-js/modules/es.string.starts-with.js","webpack://platypush/./src/components/panels/Entities/Entity.vue","webpack://platypush/./src/components/panels/Entities/Entity.vue?6f8a","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue?a9b3","webpack://platypush/./src/components/panels/Entities/Index.vue","webpack://platypush/./src/components/elements/NoItems.vue","webpack://platypush/./src/components/elements/NoItems.vue?70de","webpack://platypush/./src/components/panels/Entities/Index.vue?4523","webpack://platypush/./src/components/panels/Entities/Modal.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue?f384","webpack://platypush/./src/components/elements/EditButton.vue","webpack://platypush/./src/components/elements/EditButton.vue?fb20","webpack://platypush/./src/components/elements/NameEditor.vue","webpack://platypush/./src/components/elements/NameEditor.vue?34cf","webpack://platypush/./src/components/panels/Entities/Modal.vue?d45a","webpack://platypush/./src/components/panels/Entities/Selector.vue","webpack://platypush/./src/components/panels/Entities/Selector.vue?bf8b","webpack://platypush/./src/components/panels/Entities|lazy|/^\\.\\/.*$/|groupOptions: {}|namespace object"],"sourcesContent":["var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe\nvar un$StartsWith = uncurryThis(''.startsWith);\nvar stringSlice = uncurryThis(''.slice);\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = toString(searchString);\n return un$StartsWith\n ? un$StartsWith(that, search, index)\n : stringSlice(that, index, index + search.length) === search;\n }\n});\n","\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=3c242632&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=3c242632&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c242632\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=fef021ee&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=fef021ee&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fef021ee\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&scoped=true\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\n\nimport \"./ConfirmDialog.vue?vue&type=style&index=0&id=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=628ff73f&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=js\"\nexport * from \"./Modal.vue?vue&type=script&lang=js\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=628ff73f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-628ff73f\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=63b80935&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=63b80935&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-63b80935\"]])\n\nexport default __exports__","var map = {\n\t\"./Entity\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./Index\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t2107,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Light.vue\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t2107,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Modal\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Selector\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Switch\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./Switch.vue\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["wellKnownSymbol","MATCH","module","exports","METHOD_NAME","regexp","error1","error2","isRegExp","$TypeError","TypeError","it","$","uncurryThis","getOwnPropertyDescriptor","toLength","toString","notARegExp","requireObjectCoercible","correctIsRegExpLogic","IS_PURE","un$StartsWith","startsWith","stringSlice","slice","min","Math","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","descriptor","String","prototype","writable","target","proto","forced","searchString","that","this","index","arguments","length","undefined","search","class","component","value","loading","error","reachable","$emit","$event","name","mixins","EntityMixin","emits","data","mounted","type","__exports__","render","Utils","props","Boolean","default","Object","required","modalVisible","computed","entityType","charAt","toUpperCase","entityGroups","selector","title","refresh","modalEntityId","entity","entities","visible","onEntityModal","keys","displayGroups","group","key","grouping","entitiesMeta","icon","pluginIcons","url","imgUrl","name_plural","id","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","Number","entityTimeouts","selectedEntities","meta","icons","entries","groupEntities","reduce","obj","filter","entry","e","sort","a","b","localeCompare","map","methods","attr","values","args","plugins","plugin","self","clearTimeout","setTimeout","notify","text","request","sync","name_override","clearEntityTimeouts","entityId","onEntityUpdate","event","state","onEntityDelete","subscribe","href","external_id","ref","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","created_at","updated_at","$refs","deleteConfirmDiag","show","onConfirm","confirmText","close","cancelText","Modal","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","newName","req","newIcon","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","prettify","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","$watch","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all","t"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9892.966b4879.js b/platypush/backend/http/webapp/dist/static/js/9892.dacb03d8.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/9892.966b4879.js rename to platypush/backend/http/webapp/dist/static/js/9892.dacb03d8.js index 0716386d7..2b3fb4274 100644 --- a/platypush/backend/http/webapp/dist/static/js/9892.966b4879.js +++ b/platypush/backend/http/webapp/dist/static/js/9892.dacb03d8.js @@ -1,2 +1,2 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9892],{9892:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var n=i(6252);const s={class:"row item entity-container"};function l(t,e,i,l,o,a){return(0,n.wg)(),(0,n.iD)("div",s,[((0,n.wg)(),(0,n.j4)((0,n.LL)(o.component),{value:t.value,loading:t.loading,error:t.error||0==t.value?.reachable,onInput:e[0]||(e[0]=e=>t.$emit("input",e)),onLoading:e[1]||(e[1]=e=>t.$emit("loading",e))},null,8,["value","loading","error"]))])}var o=i(7909),a={name:"Entity",mixins:[o["default"]],emits:["input","loading"],data(){return{component:null}},mounted(){"Entity"!==this.type&&(this.component=(0,n.RC)((()=>i(7243)(`./${this.type}`))))}},r=i(3744);const u=(0,r.Z)(a,[["render",l],["__scopeId","data-v-3c242632"]]);var c=u},7909:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return o}});var n=i(6813),s={name:"EntityMixin",mixins:[n.Z],emits:["input"],props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{type:Object,required:!0}},data(){return{modalVisible:!1}},computed:{type(){let t=this.value.type||"";return t.charAt(0).toUpperCase()+t.slice(1)}}};const l=s;var o=l},914:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return V}});var n=i(6252),s=i(3577);const l=t=>((0,n.dD)("data-v-fef021ee"),t=t(),(0,n.Cn)(),t),o={class:"row plugin entities-container"},a={class:"col-11 left"},r={class:"col-1 right"},u=l((()=>(0,n._)("i",{class:"fa fa-sync-alt"},null,-1))),c=[u],d={class:"groups-canvas"},p=(0,n.Uk)("No entities found"),h={key:2,class:"groups-container"},m={class:"frame"},y={class:"header"},g={class:"section left"},f={class:"section center"},v=["textContent"],_=["textContent"],w={class:"section right"},b=["onClick"],k=l((()=>(0,n._)("i",{class:"fa fa-sync-alt"},null,-1))),E=[k],C={class:"body"},I=["onClick"];function x(t,e,i,l,u,k){const x=(0,n.up)("Loading"),D=(0,n.up)("Selector"),G=(0,n.up)("EntityModal"),T=(0,n.up)("NoItems"),j=(0,n.up)("Icon"),O=(0,n.up)("Entity");return(0,n.wg)(),(0,n.iD)("div",o,[u.loading?((0,n.wg)(),(0,n.j4)(x,{key:0})):(0,n.kq)("",!0),(0,n._)("header",null,[(0,n._)("div",a,[(0,n.Wm)(D,{"entity-groups":k.entityGroups,value:u.selector,onInput:e[0]||(e[0]=t=>u.selector=t)},null,8,["entity-groups","value"])]),(0,n._)("div",r,[(0,n._)("button",{title:"Refresh",onClick:e[1]||(e[1]=t=>k.refresh(null))},c)])]),(0,n._)("div",d,[u.modalEntityId?((0,n.wg)(),(0,n.j4)(G,{key:0,entity:u.entities[u.modalEntityId],visible:u.modalVisible,onClose:e[2]||(e[2]=t=>k.onEntityModal(null))},null,8,["entity","visible"])):(0,n.kq)("",!0),Object.keys(k.displayGroups||{})?.length?((0,n.wg)(),(0,n.iD)("div",h,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(k.displayGroups,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"group fade-in",key:t.name},[(0,n._)("div",m,[(0,n._)("div",y,[(0,n._)("span",g,["type"===u.selector.grouping&&k.entitiesMeta[t.name]?((0,n.wg)(),(0,n.j4)(j,(0,s.vs)((0,n.dG)({key:0},k.entitiesMeta[t.name].icon||{})),null,16)):"plugin"===u.selector.grouping&&k.pluginIcons[t.name]?((0,n.wg)(),(0,n.j4)(j,{key:1,class:(0,s.C_)(k.pluginIcons[t.name]?.class),url:k.pluginIcons[t.name]?.imgUrl},null,8,["class","url"])):(0,n.kq)("",!0)]),(0,n._)("span",f,["type"===u.selector.grouping&&k.entitiesMeta[t.name]?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"title",textContent:(0,s.zw)(k.entitiesMeta[t.name].name_plural)},null,8,v)):"plugin"===u.selector.grouping?((0,n.wg)(),(0,n.iD)("div",{key:1,class:"title",textContent:(0,s.zw)(t.name)},null,8,_)):(0,n.kq)("",!0)]),(0,n._)("span",w,[(0,n._)("button",{title:"Refresh",onClick:e=>k.refresh(t)},E,8,b)])]),(0,n._)("div",C,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t.entities,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"entity-frame",onClick:e=>k.onEntityModal(t.id),key:t.id},[(0,n.Wm)(O,{value:t,onInput:k.onEntityInput,error:!!u.errorEntities[t.id],loading:!!u.loadingEntities[t.id],onLoading:e=>u.loadingEntities[t.id]=e},null,8,["value","onInput","error","loading","onLoading"])],8,I)))),128))])])])))),128))])):((0,n.wg)(),(0,n.j4)(T,{key:1},{default:(0,n.w5)((()=>[p])),_:1}))])])}var D=i(6813),G=i(1232),T=i(1478);const j={class:"no-items-container"},O={class:"no-items fade-in"};function S(t,e,i,s,l,o){return(0,n.wg)(),(0,n.iD)("div",j,[(0,n._)("div",O,[(0,n.WI)(t.$slots,"default",{},void 0,!0)])])}var q={name:"NoItems"},M=i(3744);const U=(0,M.Z)(q,[["render",S],["__scopeId","data-v-6fec32b5"]]);var $=U,N=i(9892),Z=i(6647),L=i(6243),z=i(1359),F=i(7369),W={name:"Entities",components:{Loading:G.Z,Icon:T.Z,Entity:N["default"],Selector:Z["default"],NoItems:$,EntityModal:L["default"]},mixins:[D.Z],props:{entityScanTimeout:{type:Number,default:30}},data(){return{loading:!1,loadingEntities:{},errorEntities:{},entityTimeouts:{},entities:{},modalEntityId:null,modalVisible:!1,selector:{grouping:"type",selectedEntities:{}}}},computed:{entitiesMeta(){return F},pluginIcons(){return z},entityGroups(){return{id:Object.entries(this.groupEntities("id")).reduce(((t,[e,i])=>(t[e]=i[0],t)),{}),type:this.groupEntities("type"),plugin:this.groupEntities("plugin")}},displayGroups(){return Object.entries(this.entityGroups[this.selector.grouping]).filter((t=>t[1].filter((t=>!!this.selector.selectedEntities[t.id])).length>0)).sort(((t,e)=>t[0].localeCompare(e[0]))).map((([t,e])=>({name:t,entities:e.filter((t=>t.id in this.selector.selectedEntities))})))}},methods:{groupEntities(t){return Object.values(this.entities).reduce(((e,i)=>{const n=e[i[t]]||{};return n[i.id]=i,e[i[t]]=Object.values(n).sort(((t,e)=>t.name.localeCompare(e.name))),e}),{})},async refresh(t){const e=(t?t.entities:this.entities)||{},i={};t&&(i.plugins=Object.keys(e.reduce(((t,e)=>(t[e.plugin]=!0,t)),{}))),this.loadingEntities=Object.values(e).reduce(((t,e)=>{const i=this,n=e.id;return this.entityTimeouts[n]&&clearTimeout(this.entityTimeouts[n]),this.entityTimeouts[n]=setTimeout((()=>{i.loadingEntities[n]&&delete i.loadingEntities[n],i.entityTimeouts[n]&&delete i.entityTimeouts[n],i.errorEntities[n]=e,i.notify({error:!0,title:e.plugin,text:`Scan timeout for ${e.name}`})}),1e3*this.entityScanTimeout),t[n]=!0,t}),{}),await this.request("entities.scan",i)},async sync(){this.loading=!0;try{this.entities=(await this.request("entities.get")).reduce(((t,e)=>(e.name=e?.meta?.name_override||e.name,e.meta={...F[e.type]||{},...e.meta||{}},t[e.id]=e,t)),{}),this.selector.selectedEntities=this.entityGroups.id}finally{this.loading=!1}},clearEntityTimeouts(t){this.errorEntities[t]&&delete this.errorEntities[t],this.loadingEntities[t]&&delete this.loadingEntities[t],this.entityTimeouts[t]&&(clearTimeout(this.entityTimeouts[t]),delete this.entityTimeouts[t])},onEntityInput(t){this.entities[t.id]=t,this.clearEntityTimeouts(t.id),this.loadingEntities[t.id]&&delete this.loadingEntities[t.id]},onEntityUpdate(t){const e=t.entity.id;if(null==e)return;this.clearEntityTimeouts(e);const i={...t.entity};null==t.entity?.state&&(i.state=this.entities[e]?.state),i.meta?.name_override?.length?i.name=i.meta.name_override:this.entities[e]?.meta?.name_override?.length?i.name=this.entities[e].meta.name_override:i.name=t.entity?.name||this.entities[e]?.name,i.meta={...F[t.entity.type]||{},...this.entities[e]?.meta||{},...t.entity?.meta||{}},this.entities[e]=i},onEntityDelete(t){const e=t.entity?.id;null!=e&&(e===this.modalEntityId&&(this.modalEntityId=null),this.entities[e]&&delete this.entities[e])},onEntityModal(t){t?(this.modalEntityId=t,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},async mounted(){this.subscribe(this.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),this.subscribe(this.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),await this.sync(),await this.refresh()}};const R=(0,M.Z)(W,[["render",x],["__scopeId","data-v-fef021ee"]]);var V=R},6243:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return Lt}});var n=i(6252),s=i(3577);const l=t=>((0,n.dD)("data-v-628ff73f"),t=t(),(0,n.Cn)(),t),o=(0,n.Uk)(" Are you "),a=l((()=>(0,n._)("b",null,"sure",-1))),r=(0,n.Uk)(" that you want to delete this entity? "),u=l((()=>(0,n._)("br",null,null,-1))),c=l((()=>(0,n._)("br",null,null,-1))),d=(0,n.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),p=l((()=>(0,n._)("br",null,null,-1))),h=l((()=>(0,n._)("br",null,null,-1))),m=(0,n.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),y={class:"table-row"},g={class:"title"},f=(0,n.Uk)(" Name "),v={class:"value"},_=["textContent"],w={class:"table-row"},b={class:"title"},k=(0,n.Uk)(" Icon "),E={class:"value icon-canvas"},C={key:0,class:"icon-editor"},I=l((()=>(0,n._)("i",{class:"fas fa-rotate-left"},null,-1))),x=[I],D=l((()=>(0,n._)("span",{class:"help"},[(0,n.Uk)(" Supported: image URLs or "),(0,n._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,n.Uk)(". ")],-1))),G={class:"table-row"},T=l((()=>(0,n._)("div",{class:"title"}," Icon color ",-1))),j={class:"value icon-color-picker"},O=["value"],S=l((()=>(0,n._)("i",{class:"fas fa-rotate-left"},null,-1))),q=[S],M={class:"table-row"},U=l((()=>(0,n._)("div",{class:"title"},"Plugin",-1))),$=["textContent"],N={class:"table-row"},Z=l((()=>(0,n._)("div",{class:"title"},"Internal ID",-1))),L=["textContent"],z={key:0,class:"table-row"},F=l((()=>(0,n._)("div",{class:"title"},"External ID",-1))),W=["textContent"],R={key:1,class:"table-row"},V=l((()=>(0,n._)("div",{class:"title"},"Description",-1))),B=["textContent"],K={key:0,class:"table-row"},A=["textContent"],H=["textContent"],Y={key:2,class:"table-row"},P=l((()=>(0,n._)("div",{class:"title"},"Created at",-1))),J=["textContent"],Q={key:3,class:"table-row"},X=l((()=>(0,n._)("div",{class:"title"},"Updated at",-1))),tt=["textContent"],et={class:"table-row delete-entity-container"},it=l((()=>(0,n._)("div",{class:"title"},"Delete Entity",-1))),nt={class:"value"},st=l((()=>(0,n._)("i",{class:"fas fa-trash"},null,-1))),lt=[st];function ot(t,e,i,l,I,S){const st=(0,n.up)("ConfirmDialog"),ot=(0,n.up)("EditButton"),at=(0,n.up)("NameEditor"),rt=(0,n.up)("Icon"),ut=(0,n.up)("Modal",!0);return(0,n.wg)(),(0,n.j4)(ut,{visible:i.visible,class:"entity-modal",title:i.entity.name||i.entity.external_id},{default:(0,n.w5)((()=>[(0,n.Wm)(st,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:S.onDelete},{default:(0,n.w5)((()=>[o,a,r,u,c,d,p,h,m])),_:1},8,["onInput"]),(0,n._)("div",y,[(0,n._)("div",g,[f,I.editName?(0,n.kq)("",!0):((0,n.wg)(),(0,n.j4)(ot,{key:0,onClick:e[0]||(e[0]=t=>I.editName=!0)}))]),(0,n._)("div",v,[I.editName?((0,n.wg)(),(0,n.j4)(at,{key:0,value:i.entity.name,onInput:S.onRename,onCancel:e[1]||(e[1]=t=>I.editName=!1),disabled:I.loading},null,8,["value","onInput","disabled"])):((0,n.wg)(),(0,n.iD)("span",{key:1,textContent:(0,s.zw)(i.entity.name)},null,8,_))])]),(0,n._)("div",w,[(0,n._)("div",b,[k,I.editIcon?(0,n.kq)("",!0):((0,n.wg)(),(0,n.j4)(ot,{key:0,onClick:e[2]||(e[2]=t=>I.editIcon=!0)}))]),(0,n._)("div",E,[I.editIcon?((0,n.wg)(),(0,n.iD)("span",C,[(0,n.Wm)(at,{value:i.entity.meta?.icon?.class||i.entity.meta?.icon?.url,onInput:S.onIconEdit,onCancel:e[5]||(e[5]=t=>I.editIcon=!1),disabled:I.loading},{default:(0,n.w5)((()=>[(0,n._)("button",{type:"button",title:"Reset",onClick:e[3]||(e[3]=t=>S.onIconEdit(null)),onTouch:e[4]||(e[4]=t=>S.onIconEdit(null))},x,32)])),_:1},8,["value","onInput","disabled"]),D])):((0,n.wg)(),(0,n.j4)(rt,(0,s.vs)((0,n.dG)({key:1},i.entity?.meta?.icon||{})),null,16))])]),(0,n._)("div",G,[T,(0,n._)("div",j,[(0,n._)("input",{type:"color",value:i.entity.meta?.icon?.color,onChange:e[6]||(e[6]=(...t)=>S.onIconColorEdit&&S.onIconColorEdit(...t))},null,40,O),(0,n._)("button",{type:"button",title:"Reset",onClick:e[7]||(e[7]=t=>S.onIconColorEdit(null)),onTouch:e[8]||(e[8]=t=>S.onIconColorEdit(null))},q,32)])]),(0,n._)("div",M,[U,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.plugin)},null,8,$)]),(0,n._)("div",N,[Z,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.id)},null,8,L)]),i.entity.external_id?((0,n.wg)(),(0,n.iD)("div",z,[F,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.external_id)},null,8,W)])):(0,n.kq)("",!0),i.entity.description?((0,n.wg)(),(0,n.iD)("div",R,[V,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.description)},null,8,B)])):(0,n.kq)("",!0),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(i.entity.data||{},((e,i)=>((0,n.wg)(),(0,n.iD)("div",{key:i},[null!=e?((0,n.wg)(),(0,n.iD)("div",K,[(0,n._)("div",{class:"title",textContent:(0,s.zw)(t.prettify(i))},null,8,A),(0,n._)("div",{class:"value",textContent:(0,s.zw)(""+e)},null,8,H)])):(0,n.kq)("",!0)])))),128)),i.entity.created_at?((0,n.wg)(),(0,n.iD)("div",Y,[P,(0,n._)("div",{class:"value",textContent:(0,s.zw)(t.formatDateTime(i.entity.created_at))},null,8,J)])):(0,n.kq)("",!0),i.entity.updated_at?((0,n.wg)(),(0,n.iD)("div",Q,[X,(0,n._)("div",{class:"value",textContent:(0,s.zw)(t.formatDateTime(i.entity.updated_at))},null,8,tt)])):(0,n.kq)("",!0),(0,n._)("div",et,[it,(0,n._)("div",nt,[(0,n._)("button",{onClick:e[9]||(e[9]=e=>t.$refs.deleteConfirmDiag.show())},lt)])])])),_:1},8,["visible","title"])}var at=i(8453),rt=i(1478),ut=i(9963);const ct=t=>((0,n.dD)("data-v-d543b3e4"),t=t(),(0,n.Cn)(),t),dt={class:"dialog-content"},pt=ct((()=>(0,n._)("i",{class:"fas fa-check"},null,-1))),ht=ct((()=>(0,n._)("i",{class:"fas fa-xmark"},null,-1)));function mt(t,e,i,l,o,a){const r=(0,n.up)("Modal");return(0,n.wg)(),(0,n.j4)(r,{ref:"modal",title:i.title},{default:(0,n.w5)((()=>[(0,n._)("div",dt,[(0,n.WI)(t.$slots,"default",{},void 0,!0)]),(0,n._)("form",{class:"buttons",onSubmit:e[4]||(e[4]=(0,ut.iM)(((...t)=>a.onConfirm&&a.onConfirm(...t)),["prevent"]))},[(0,n._)("button",{type:"submit",class:"ok-btn",onClick:e[0]||(e[0]=(...t)=>a.onConfirm&&a.onConfirm(...t)),onTouch:e[1]||(e[1]=(...t)=>a.onConfirm&&a.onConfirm(...t))},[pt,(0,n.Uk)("   "+(0,s.zw)(i.confirmText),1)],32),(0,n._)("button",{type:"button",class:"cancel-btn",onClick:e[2]||(e[2]=(...t)=>a.close&&a.close(...t)),onTouch:e[3]||(e[3]=(...t)=>a.close&&a.close(...t))},[ht,(0,n.Uk)("   "+(0,s.zw)(i.cancelText),1)],32)],32)])),_:3},8,["title"])}var yt={emits:["input","click","touch"],components:{Modal:at.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm(){this.$emit("input"),this.close()},show(){this.$refs.modal.show()},close(){this.$refs.modal.hide()}}},gt=i(3744);const ft=(0,gt.Z)(yt,[["render",mt],["__scopeId","data-v-d543b3e4"]]);var vt=ft;const _t=t=>((0,n.dD)("data-v-3344f2bf"),t=t(),(0,n.Cn)(),t),wt=_t((()=>(0,n._)("i",{class:"fas fa-pen-to-square"},null,-1))),bt=[wt];function kt(t,e,i,s,l,o){return(0,n.wg)(),(0,n.iD)("button",{class:"edit-btn",onClick:e[0]||(e[0]=t=>o.proxy(t)),onTouch:e[1]||(e[1]=t=>o.proxy(t)),onInput:e[2]||(e[2]=t=>o.proxy(t))},bt,32)}var Et={emits:["input","click","touch"],methods:{proxy(t){this.$emit(t.type,t)}}};const Ct=(0,gt.Z)(Et,[["render",kt],["__scopeId","data-v-3344f2bf"]]);var It=Ct;const xt=t=>((0,n.dD)("data-v-1405d90f"),t=t(),(0,n.Cn)(),t),Dt=["disabled"],Gt=xt((()=>(0,n._)("button",{type:"submit"},[(0,n._)("i",{class:"fas fa-circle-check"})],-1))),Tt=xt((()=>(0,n._)("i",{class:"fas fa-ban"},null,-1))),jt=[Tt];function Ot(t,e,i,s,l,o){return(0,n.wg)(),(0,n.iD)("form",{onSubmit:e[3]||(e[3]=(0,ut.iM)(((...t)=>o.submit&&o.submit(...t)),["prevent"])),class:"name-editor"},[(0,n.wy)((0,n._)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=t=>l.text=t),disabled:i.disabled},null,8,Dt),[[ut.nr,l.text]]),Gt,(0,n._)("button",{class:"cancel",onClick:e[1]||(e[1]=e=>t.$emit("cancel")),onTouch:e[2]||(e[2]=e=>t.$emit("cancel"))},jt,32),(0,n.WI)(t.$slots,"default",{},void 0,!0)],32)}var St={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data(){return{text:null}},methods:{proxy(t){this.$emit(t.type,t)},submit(){return this.$emit("input",this.text),!1}},mounted(){this.text=this.value}};const qt=(0,gt.Z)(St,[["render",Ot],["__scopeId","data-v-1405d90f"]]);var Mt=qt,Ut=i(6813),$t=i(7369),Nt={name:"Entity",components:{Modal:at.Z,EditButton:It,NameEditor:Mt,Icon:rt.Z,ConfirmDialog:vt},mixins:[Ut.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1}},data(){return{loading:!1,editName:!1,editIcon:!1}},methods:{async onRename(t){this.loading=!0;try{const e={};e[this.entity.id]=t,await this.request("entities.rename",e)}finally{this.loading=!1,this.editName=!1}},async onDelete(){this.loading=!0;try{await this.request("entities.delete",[this.entity.id])}finally{this.loading=!1}},async onIconEdit(t){this.loading=!0;try{const e={url:null,class:null};t?.length?t.startsWith("http")?e.url=t:e.class=t:(e.url=($t[this.entity.type]||{})?.icon?.url,e.class=($t[this.entity.type]||{})?.icon?.["class"]);const i={};i[this.entity.id]={icon:e},await this.request("entities.set_meta",i)}finally{this.loading=!1,this.editIcon=!1}},async onIconColorEdit(t){this.loading=!0;try{const e=this.entity.meta?.icon||{};e.color=t?t.target.value:null;const i={};i[this.entity.id]={icon:e},await this.request("entities.set_meta",i)}finally{this.loading=!1,this.editIcon=!1}}}};const Zt=(0,gt.Z)(Nt,[["render",ot],["__scopeId","data-v-628ff73f"]]);var Lt=Zt},6647:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return v}});var n=i(6252),s=i(3577),l=i(9963);const o={class:"entities-selectors-container"},a={class:"selector"},r={key:1,class:"selector"};function u(t,e,i,u,c,d){const p=(0,n.up)("DropdownItem"),h=(0,n.up)("Dropdown");return(0,n.wg)(),(0,n.iD)("div",o,[(0,n._)("div",a,[(0,n.Wm)(h,{title:"Group by","icon-class":"fas fa-eye",ref:"groupingSelector"},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(d.visibleGroupings,(t=>((0,n.wg)(),(0,n.j4)(p,{key:t,text:d.prettifyGroupingName(t),"item-class":{selected:i.value?.grouping===t},onClick:e=>d.onGroupingChanged(t)},null,8,["text","item-class","onClick"])))),128))])),_:1},512)]),i.value?.grouping?((0,n.wg)(),(0,n.iD)("div",{key:0,class:(0,s.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,n.Wm)(h,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(d.sortedGroups,(t=>((0,n.wg)(),(0,n.j4)(p,(0,n.dG)({key:t,text:t},d.iconForGroup(t),{"item-class":{selected:!!c.selectedGroups[t]},onClick:(0,l.iM)((e=>d.toggleGroup(t)),["stop"])}),null,16,["text","item-class","onClick"])))),128))])),_:1},512)],2)):(0,n.kq)("",!0),Object.keys(i.entityGroups.id||{}).length?((0,n.wg)(),(0,n.iD)("div",r,[(0,n.wy)((0,n._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":e[0]||(e[0]=t=>c.searchTerm=t)},null,512),[[l.nr,c.searchTerm]])])):(0,n.kq)("",!0)])}var c=i(6813),d=i(5771),p=i(9015),h=i(7369),m=i(1359),y={name:"Selector",emits:["input"],mixins:[c.Z],components:{Dropdown:d.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings(){return Object.keys(this.entityGroups).filter((t=>"id"!==t))},sortedGroups(){return Object.keys(this.entityGroups[this.value?.grouping]||{}).sort()},typesMeta(){return h},isGroupFilterActive(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities(){return Object.values(this.entityGroups.id).filter((t=>{if(!this.selectedGroups[t[this.value?.grouping]])return!1;if(this.searchTerm?.length){const e=this.searchTerm.toLowerCase();return(t.name||"").toLowerCase().indexOf(e)>=0||(t.plugin||"").toLowerCase().indexOf(e)>=0||(t.external_id||"").toLowerCase().indexOf(e)>=0||(t.id||0).toString()==e}return!0})).reduce(((t,e)=>(t[e.id]=e,t)),{})}},methods:{prettifyGroupingName(t){return t?this.prettify(t)+"s":""},iconForGroup(t){if("plugin"===this.value.grouping&&m[t]){const e=m[t];return{"icon-class":e["class"]?.length||!e.imgUrl?.length?e["class"]:"fas fa-gears","icon-url":e.imgUrl}}return{}},synchronizeSelectedEntities(){const t={...this.value};t.selectedEntities=this.selectedEntities,this.$emit("input",t)},updateSearchTerm(){const t={...this.value};t.searchTerm=this.searchTerm,t.selectedEntities=this.selectedEntities,this.$emit("input",t)},refreshGroupFilter(t){if(t)this.selectedGroups=Object.keys(this.entityGroups[this.value?.grouping]||{}).reduce(((t,e)=>(t[e]=!0,t)),{});else for(const e of Object.keys(this.entityGroups[this.value?.grouping]))null==this.selectedGroups[e]&&(this.selectedGroups[e]=!0);this.synchronizeSelectedEntities()},toggleGroup(t){this.selectedGroups[t]=!this.selectedGroups[t],this.synchronizeSelectedEntities()},onGroupingChanged(t){if(!this.entityGroups[t]||t===this.value?.grouping)return!1;const e={...this.value};e.grouping=t,this.$emit("input",e)}},mounted(){this.refreshGroupFilter(!0),this.$watch((()=>this.value?.grouping),(()=>{this.refreshGroupFilter(!0)})),this.$watch((()=>this.searchTerm),this.updateSearchTerm),this.$watch((()=>this.entityGroups),(()=>{this.refreshGroupFilter(!1)}))}},g=i(3744);const f=(0,g.Z)(y,[["render",u],["__scopeId","data-v-63b80935"]]);var v=f},7243:function(t,e,i){var n={"./Entity":[9892,9],"./Entity.vue":[9892,9],"./EntityIcon":[3499,9,8729,3499],"./EntityIcon.vue":[3499,9,8729,3499],"./EntityMixin":[7909,9],"./EntityMixin.vue":[7909,9],"./Index":[914,9],"./Index.vue":[914,9],"./Light":[1155,9,3490,3803,8729,1155],"./Light.vue":[1155,9,3490,3803,8729,1155],"./Modal":[6243,9],"./Modal.vue":[6243,9],"./Selector":[6647,9],"./Selector.vue":[6647,9],"./Switch":[518,9,3490,8729,518],"./Switch.vue":[518,9,3490,8729,518],"./common.scss":[65,9,4981,65],"./meta":[7369,3],"./meta.json":[7369,3],"./vars.scss":[5207,9,4981,5207]};function s(t){if(!i.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],s=e[0];return Promise.all(e.slice(2).map(i.e)).then((function(){return i.t(s,16|e[1])}))}s.keys=function(){return Object.keys(n)},s.id=7243,t.exports=s},7369:function(t){"use strict";t.exports=JSON.parse('{"entity":{"name":"Entity","name_plural":"Entities","icon":{"class":"fas fa-circle-question"}},"device":{"name":"Device","name_plural":"Devices","icon":{"class":"fas fa-gear"}},"switch":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-toggle-on"}},"light":{"name":"Light","name_plural":"Lights","icon":{"class":"fas fa-lightbulb"}}}')}}]); -//# sourceMappingURL=9892.966b4879.js.map \ No newline at end of file +(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9892],{9892:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var n=i(6252);const s={class:"row item entity-container"};function l(t,e,i,l,o,a){return(0,n.wg)(),(0,n.iD)("div",s,[((0,n.wg)(),(0,n.j4)((0,n.LL)(o.component),{value:t.value,loading:t.loading,error:t.error||0==t.value?.reachable,onInput:e[0]||(e[0]=e=>t.$emit("input",e)),onLoading:e[1]||(e[1]=e=>t.$emit("loading",e))},null,8,["value","loading","error"]))])}var o=i(7909),a={name:"Entity",mixins:[o["default"]],emits:["input","loading"],data(){return{component:null}},mounted(){"Entity"!==this.type&&(this.component=(0,n.RC)((()=>i(7243)(`./${this.type}`))))}},r=i(3744);const u=(0,r.Z)(a,[["render",l],["__scopeId","data-v-3c242632"]]);var c=u},7909:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return o}});var n=i(6813),s={name:"EntityMixin",mixins:[n.Z],emits:["input"],props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{type:Object,required:!0}},data(){return{modalVisible:!1}},computed:{type(){let t=this.value.type||"";return t.charAt(0).toUpperCase()+t.slice(1)}}};const l=s;var o=l},914:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return V}});var n=i(6252),s=i(3577);const l=t=>((0,n.dD)("data-v-fef021ee"),t=t(),(0,n.Cn)(),t),o={class:"row plugin entities-container"},a={class:"col-11 left"},r={class:"col-1 right"},u=l((()=>(0,n._)("i",{class:"fa fa-sync-alt"},null,-1))),c=[u],d={class:"groups-canvas"},p=(0,n.Uk)("No entities found"),h={key:2,class:"groups-container"},m={class:"frame"},y={class:"header"},g={class:"section left"},f={class:"section center"},v=["textContent"],_=["textContent"],w={class:"section right"},b=["onClick"],k=l((()=>(0,n._)("i",{class:"fa fa-sync-alt"},null,-1))),E=[k],C={class:"body"},I=["onClick"];function x(t,e,i,l,u,k){const x=(0,n.up)("Loading"),D=(0,n.up)("Selector"),G=(0,n.up)("EntityModal"),T=(0,n.up)("NoItems"),j=(0,n.up)("Icon"),O=(0,n.up)("Entity");return(0,n.wg)(),(0,n.iD)("div",o,[u.loading?((0,n.wg)(),(0,n.j4)(x,{key:0})):(0,n.kq)("",!0),(0,n._)("header",null,[(0,n._)("div",a,[(0,n.Wm)(D,{"entity-groups":k.entityGroups,value:u.selector,onInput:e[0]||(e[0]=t=>u.selector=t)},null,8,["entity-groups","value"])]),(0,n._)("div",r,[(0,n._)("button",{title:"Refresh",onClick:e[1]||(e[1]=t=>k.refresh(null))},c)])]),(0,n._)("div",d,[u.modalEntityId?((0,n.wg)(),(0,n.j4)(G,{key:0,entity:u.entities[u.modalEntityId],visible:u.modalVisible,onClose:e[2]||(e[2]=t=>k.onEntityModal(null))},null,8,["entity","visible"])):(0,n.kq)("",!0),Object.keys(k.displayGroups||{})?.length?((0,n.wg)(),(0,n.iD)("div",h,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(k.displayGroups,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"group fade-in",key:t.name},[(0,n._)("div",m,[(0,n._)("div",y,[(0,n._)("span",g,["type"===u.selector.grouping&&k.entitiesMeta[t.name]?((0,n.wg)(),(0,n.j4)(j,(0,s.vs)((0,n.dG)({key:0},k.entitiesMeta[t.name].icon||{})),null,16)):"plugin"===u.selector.grouping&&k.pluginIcons[t.name]?((0,n.wg)(),(0,n.j4)(j,{key:1,class:(0,s.C_)(k.pluginIcons[t.name]?.class),url:k.pluginIcons[t.name]?.imgUrl},null,8,["class","url"])):(0,n.kq)("",!0)]),(0,n._)("span",f,["type"===u.selector.grouping&&k.entitiesMeta[t.name]?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"title",textContent:(0,s.zw)(k.entitiesMeta[t.name].name_plural)},null,8,v)):"plugin"===u.selector.grouping?((0,n.wg)(),(0,n.iD)("div",{key:1,class:"title",textContent:(0,s.zw)(t.name)},null,8,_)):(0,n.kq)("",!0)]),(0,n._)("span",w,[(0,n._)("button",{title:"Refresh",onClick:e=>k.refresh(t)},E,8,b)])]),(0,n._)("div",C,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t.entities,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"entity-frame",onClick:e=>k.onEntityModal(t.id),key:t.id},[(0,n.Wm)(O,{value:t,onInput:k.onEntityInput,error:!!u.errorEntities[t.id],loading:!!u.loadingEntities[t.id],onLoading:e=>u.loadingEntities[t.id]=e},null,8,["value","onInput","error","loading","onLoading"])],8,I)))),128))])])])))),128))])):((0,n.wg)(),(0,n.j4)(T,{key:1},{default:(0,n.w5)((()=>[p])),_:1}))])])}var D=i(6813),G=i(1232),T=i(1478);const j={class:"no-items-container"},O={class:"no-items fade-in"};function S(t,e,i,s,l,o){return(0,n.wg)(),(0,n.iD)("div",j,[(0,n._)("div",O,[(0,n.WI)(t.$slots,"default",{},void 0,!0)])])}var q={name:"NoItems"},M=i(3744);const U=(0,M.Z)(q,[["render",S],["__scopeId","data-v-6fec32b5"]]);var $=U,N=i(9892),Z=i(6647),L=i(6243),z=i(1359),F=i(7369),W={name:"Entities",components:{Loading:G.Z,Icon:T.Z,Entity:N["default"],Selector:Z["default"],NoItems:$,EntityModal:L["default"]},mixins:[D.Z],props:{entityScanTimeout:{type:Number,default:30}},data(){return{loading:!1,loadingEntities:{},errorEntities:{},entityTimeouts:{},entities:{},modalEntityId:null,modalVisible:!1,selector:{grouping:"type",selectedEntities:{}}}},computed:{entitiesMeta(){return F},pluginIcons(){return z},entityGroups(){return{id:Object.entries(this.groupEntities("id")).reduce(((t,[e,i])=>(t[e]=i[0],t)),{}),type:this.groupEntities("type"),plugin:this.groupEntities("plugin")}},displayGroups(){return Object.entries(this.entityGroups[this.selector.grouping]).filter((t=>t[1].filter((t=>!!this.selector.selectedEntities[t.id])).length>0)).sort(((t,e)=>t[0].localeCompare(e[0]))).map((([t,e])=>({name:t,entities:e.filter((t=>t.id in this.selector.selectedEntities))})))}},methods:{groupEntities(t){return Object.values(this.entities).reduce(((e,i)=>{const n=e[i[t]]||{};return n[i.id]=i,e[i[t]]=Object.values(n).sort(((t,e)=>t.name.localeCompare(e.name))),e}),{})},async refresh(t){const e=(t?t.entities:this.entities)||{},i={};t&&(i.plugins=Object.keys(e.reduce(((t,e)=>(t[e.plugin]=!0,t)),{}))),this.loadingEntities=Object.values(e).reduce(((t,e)=>{const i=this,n=e.id;return this.entityTimeouts[n]&&clearTimeout(this.entityTimeouts[n]),this.entityTimeouts[n]=setTimeout((()=>{i.loadingEntities[n]&&delete i.loadingEntities[n],i.entityTimeouts[n]&&delete i.entityTimeouts[n],i.errorEntities[n]=e,i.notify({error:!0,title:e.plugin,text:`Scan timeout for ${e.name}`})}),1e3*this.entityScanTimeout),t[n]=!0,t}),{}),await this.request("entities.scan",i)},async sync(){this.loading=!0;try{this.entities=(await this.request("entities.get")).reduce(((t,e)=>(e.name=e?.meta?.name_override||e.name,e.meta={...F[e.type]||{},...e.meta||{}},t[e.id]=e,t)),{}),this.selector.selectedEntities=this.entityGroups.id}finally{this.loading=!1}},clearEntityTimeouts(t){this.errorEntities[t]&&delete this.errorEntities[t],this.loadingEntities[t]&&delete this.loadingEntities[t],this.entityTimeouts[t]&&(clearTimeout(this.entityTimeouts[t]),delete this.entityTimeouts[t])},onEntityInput(t){this.entities[t.id]=t,this.clearEntityTimeouts(t.id),this.loadingEntities[t.id]&&delete this.loadingEntities[t.id]},onEntityUpdate(t){const e=t.entity.id;if(null==e)return;this.clearEntityTimeouts(e);const i={...t.entity};null==t.entity?.state&&(i.state=this.entities[e]?.state),i.meta?.name_override?.length?i.name=i.meta.name_override:this.entities[e]?.meta?.name_override?.length?i.name=this.entities[e].meta.name_override:i.name=t.entity?.name||this.entities[e]?.name,i.meta={...F[t.entity.type]||{},...this.entities[e]?.meta||{},...t.entity?.meta||{}},this.entities[e]=i},onEntityDelete(t){const e=t.entity?.id;null!=e&&(e===this.modalEntityId&&(this.modalEntityId=null),this.entities[e]&&delete this.entities[e])},onEntityModal(t){t?(this.modalEntityId=t,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},async mounted(){this.subscribe(this.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),this.subscribe(this.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),await this.sync(),await this.refresh()}};const R=(0,M.Z)(W,[["render",x],["__scopeId","data-v-fef021ee"]]);var V=R},6243:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return Lt}});var n=i(6252),s=i(3577);const l=t=>((0,n.dD)("data-v-628ff73f"),t=t(),(0,n.Cn)(),t),o=(0,n.Uk)(" Are you "),a=l((()=>(0,n._)("b",null,"sure",-1))),r=(0,n.Uk)(" that you want to delete this entity? "),u=l((()=>(0,n._)("br",null,null,-1))),c=l((()=>(0,n._)("br",null,null,-1))),d=(0,n.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),p=l((()=>(0,n._)("br",null,null,-1))),h=l((()=>(0,n._)("br",null,null,-1))),m=(0,n.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),y={class:"table-row"},g={class:"title"},f=(0,n.Uk)(" Name "),v={class:"value"},_=["textContent"],w={class:"table-row"},b={class:"title"},k=(0,n.Uk)(" Icon "),E={class:"value icon-canvas"},C={key:0,class:"icon-editor"},I=l((()=>(0,n._)("i",{class:"fas fa-rotate-left"},null,-1))),x=[I],D=l((()=>(0,n._)("span",{class:"help"},[(0,n.Uk)(" Supported: image URLs or "),(0,n._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,n.Uk)(". ")],-1))),G={class:"table-row"},T=l((()=>(0,n._)("div",{class:"title"}," Icon color ",-1))),j={class:"value icon-color-picker"},O=["value"],S=l((()=>(0,n._)("i",{class:"fas fa-rotate-left"},null,-1))),q=[S],M={class:"table-row"},U=l((()=>(0,n._)("div",{class:"title"},"Plugin",-1))),$=["textContent"],N={class:"table-row"},Z=l((()=>(0,n._)("div",{class:"title"},"Internal ID",-1))),L=["textContent"],z={key:0,class:"table-row"},F=l((()=>(0,n._)("div",{class:"title"},"External ID",-1))),W=["textContent"],R={key:1,class:"table-row"},V=l((()=>(0,n._)("div",{class:"title"},"Description",-1))),B=["textContent"],K={key:0,class:"table-row"},A=["textContent"],H=["textContent"],Y={key:2,class:"table-row"},P=l((()=>(0,n._)("div",{class:"title"},"Created at",-1))),J=["textContent"],Q={key:3,class:"table-row"},X=l((()=>(0,n._)("div",{class:"title"},"Updated at",-1))),tt=["textContent"],et={class:"table-row delete-entity-container"},it=l((()=>(0,n._)("div",{class:"title"},"Delete Entity",-1))),nt={class:"value"},st=l((()=>(0,n._)("i",{class:"fas fa-trash"},null,-1))),lt=[st];function ot(t,e,i,l,I,S){const st=(0,n.up)("ConfirmDialog"),ot=(0,n.up)("EditButton"),at=(0,n.up)("NameEditor"),rt=(0,n.up)("Icon"),ut=(0,n.up)("Modal",!0);return(0,n.wg)(),(0,n.j4)(ut,{visible:i.visible,class:"entity-modal",title:i.entity.name||i.entity.external_id},{default:(0,n.w5)((()=>[(0,n.Wm)(st,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:S.onDelete},{default:(0,n.w5)((()=>[o,a,r,u,c,d,p,h,m])),_:1},8,["onInput"]),(0,n._)("div",y,[(0,n._)("div",g,[f,I.editName?(0,n.kq)("",!0):((0,n.wg)(),(0,n.j4)(ot,{key:0,onClick:e[0]||(e[0]=t=>I.editName=!0)}))]),(0,n._)("div",v,[I.editName?((0,n.wg)(),(0,n.j4)(at,{key:0,value:i.entity.name,onInput:S.onRename,onCancel:e[1]||(e[1]=t=>I.editName=!1),disabled:I.loading},null,8,["value","onInput","disabled"])):((0,n.wg)(),(0,n.iD)("span",{key:1,textContent:(0,s.zw)(i.entity.name)},null,8,_))])]),(0,n._)("div",w,[(0,n._)("div",b,[k,I.editIcon?(0,n.kq)("",!0):((0,n.wg)(),(0,n.j4)(ot,{key:0,onClick:e[2]||(e[2]=t=>I.editIcon=!0)}))]),(0,n._)("div",E,[I.editIcon?((0,n.wg)(),(0,n.iD)("span",C,[(0,n.Wm)(at,{value:i.entity.meta?.icon?.class||i.entity.meta?.icon?.url,onInput:S.onIconEdit,onCancel:e[5]||(e[5]=t=>I.editIcon=!1),disabled:I.loading},{default:(0,n.w5)((()=>[(0,n._)("button",{type:"button",title:"Reset",onClick:e[3]||(e[3]=t=>S.onIconEdit(null)),onTouch:e[4]||(e[4]=t=>S.onIconEdit(null))},x,32)])),_:1},8,["value","onInput","disabled"]),D])):((0,n.wg)(),(0,n.j4)(rt,(0,s.vs)((0,n.dG)({key:1},i.entity?.meta?.icon||{})),null,16))])]),(0,n._)("div",G,[T,(0,n._)("div",j,[(0,n._)("input",{type:"color",value:i.entity.meta?.icon?.color,onChange:e[6]||(e[6]=(...t)=>S.onIconColorEdit&&S.onIconColorEdit(...t))},null,40,O),(0,n._)("button",{type:"button",title:"Reset",onClick:e[7]||(e[7]=t=>S.onIconColorEdit(null)),onTouch:e[8]||(e[8]=t=>S.onIconColorEdit(null))},q,32)])]),(0,n._)("div",M,[U,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.plugin)},null,8,$)]),(0,n._)("div",N,[Z,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.id)},null,8,L)]),i.entity.external_id?((0,n.wg)(),(0,n.iD)("div",z,[F,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.external_id)},null,8,W)])):(0,n.kq)("",!0),i.entity.description?((0,n.wg)(),(0,n.iD)("div",R,[V,(0,n._)("div",{class:"value",textContent:(0,s.zw)(i.entity.description)},null,8,B)])):(0,n.kq)("",!0),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(i.entity.data||{},((e,i)=>((0,n.wg)(),(0,n.iD)("div",{key:i},[null!=e?((0,n.wg)(),(0,n.iD)("div",K,[(0,n._)("div",{class:"title",textContent:(0,s.zw)(t.prettify(i))},null,8,A),(0,n._)("div",{class:"value",textContent:(0,s.zw)(""+e)},null,8,H)])):(0,n.kq)("",!0)])))),128)),i.entity.created_at?((0,n.wg)(),(0,n.iD)("div",Y,[P,(0,n._)("div",{class:"value",textContent:(0,s.zw)(t.formatDateTime(i.entity.created_at))},null,8,J)])):(0,n.kq)("",!0),i.entity.updated_at?((0,n.wg)(),(0,n.iD)("div",Q,[X,(0,n._)("div",{class:"value",textContent:(0,s.zw)(t.formatDateTime(i.entity.updated_at))},null,8,tt)])):(0,n.kq)("",!0),(0,n._)("div",et,[it,(0,n._)("div",nt,[(0,n._)("button",{onClick:e[9]||(e[9]=e=>t.$refs.deleteConfirmDiag.show())},lt)])])])),_:1},8,["visible","title"])}var at=i(8453),rt=i(1478),ut=i(9963);const ct=t=>((0,n.dD)("data-v-d543b3e4"),t=t(),(0,n.Cn)(),t),dt={class:"dialog-content"},pt=ct((()=>(0,n._)("i",{class:"fas fa-check"},null,-1))),ht=ct((()=>(0,n._)("i",{class:"fas fa-xmark"},null,-1)));function mt(t,e,i,l,o,a){const r=(0,n.up)("Modal");return(0,n.wg)(),(0,n.j4)(r,{ref:"modal",title:i.title},{default:(0,n.w5)((()=>[(0,n._)("div",dt,[(0,n.WI)(t.$slots,"default",{},void 0,!0)]),(0,n._)("form",{class:"buttons",onSubmit:e[4]||(e[4]=(0,ut.iM)(((...t)=>a.onConfirm&&a.onConfirm(...t)),["prevent"]))},[(0,n._)("button",{type:"submit",class:"ok-btn",onClick:e[0]||(e[0]=(...t)=>a.onConfirm&&a.onConfirm(...t)),onTouch:e[1]||(e[1]=(...t)=>a.onConfirm&&a.onConfirm(...t))},[pt,(0,n.Uk)("   "+(0,s.zw)(i.confirmText),1)],32),(0,n._)("button",{type:"button",class:"cancel-btn",onClick:e[2]||(e[2]=(...t)=>a.close&&a.close(...t)),onTouch:e[3]||(e[3]=(...t)=>a.close&&a.close(...t))},[ht,(0,n.Uk)("   "+(0,s.zw)(i.cancelText),1)],32)],32)])),_:3},8,["title"])}var yt={emits:["input","click","touch"],components:{Modal:at.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm(){this.$emit("input"),this.close()},show(){this.$refs.modal.show()},close(){this.$refs.modal.hide()}}},gt=i(3744);const ft=(0,gt.Z)(yt,[["render",mt],["__scopeId","data-v-d543b3e4"]]);var vt=ft;const _t=t=>((0,n.dD)("data-v-3344f2bf"),t=t(),(0,n.Cn)(),t),wt=_t((()=>(0,n._)("i",{class:"fas fa-pen-to-square"},null,-1))),bt=[wt];function kt(t,e,i,s,l,o){return(0,n.wg)(),(0,n.iD)("button",{class:"edit-btn",onClick:e[0]||(e[0]=t=>o.proxy(t)),onTouch:e[1]||(e[1]=t=>o.proxy(t)),onInput:e[2]||(e[2]=t=>o.proxy(t))},bt,32)}var Et={emits:["input","click","touch"],methods:{proxy(t){this.$emit(t.type,t)}}};const Ct=(0,gt.Z)(Et,[["render",kt],["__scopeId","data-v-3344f2bf"]]);var It=Ct;const xt=t=>((0,n.dD)("data-v-1405d90f"),t=t(),(0,n.Cn)(),t),Dt=["disabled"],Gt=xt((()=>(0,n._)("button",{type:"submit"},[(0,n._)("i",{class:"fas fa-circle-check"})],-1))),Tt=xt((()=>(0,n._)("i",{class:"fas fa-ban"},null,-1))),jt=[Tt];function Ot(t,e,i,s,l,o){return(0,n.wg)(),(0,n.iD)("form",{onSubmit:e[3]||(e[3]=(0,ut.iM)(((...t)=>o.submit&&o.submit(...t)),["prevent"])),class:"name-editor"},[(0,n.wy)((0,n._)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=t=>l.text=t),disabled:i.disabled},null,8,Dt),[[ut.nr,l.text]]),Gt,(0,n._)("button",{class:"cancel",onClick:e[1]||(e[1]=e=>t.$emit("cancel")),onTouch:e[2]||(e[2]=e=>t.$emit("cancel"))},jt,32),(0,n.WI)(t.$slots,"default",{},void 0,!0)],32)}var St={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data(){return{text:null}},methods:{proxy(t){this.$emit(t.type,t)},submit(){return this.$emit("input",this.text),!1}},mounted(){this.text=this.value}};const qt=(0,gt.Z)(St,[["render",Ot],["__scopeId","data-v-1405d90f"]]);var Mt=qt,Ut=i(6813),$t=i(7369),Nt={name:"Entity",components:{Modal:at.Z,EditButton:It,NameEditor:Mt,Icon:rt.Z,ConfirmDialog:vt},mixins:[Ut.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1}},data(){return{loading:!1,editName:!1,editIcon:!1}},methods:{async onRename(t){this.loading=!0;try{const e={};e[this.entity.id]=t,await this.request("entities.rename",e)}finally{this.loading=!1,this.editName=!1}},async onDelete(){this.loading=!0;try{await this.request("entities.delete",[this.entity.id])}finally{this.loading=!1}},async onIconEdit(t){this.loading=!0;try{const e={url:null,class:null};t?.length?t.startsWith("http")?e.url=t:e.class=t:(e.url=($t[this.entity.type]||{})?.icon?.url,e.class=($t[this.entity.type]||{})?.icon?.["class"]);const i={};i[this.entity.id]={icon:e},await this.request("entities.set_meta",i)}finally{this.loading=!1,this.editIcon=!1}},async onIconColorEdit(t){this.loading=!0;try{const e=this.entity.meta?.icon||{};e.color=t?t.target.value:null;const i={};i[this.entity.id]={icon:e},await this.request("entities.set_meta",i)}finally{this.loading=!1,this.editIcon=!1}}}};const Zt=(0,gt.Z)(Nt,[["render",ot],["__scopeId","data-v-628ff73f"]]);var Lt=Zt},6647:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return v}});var n=i(6252),s=i(3577),l=i(9963);const o={class:"entities-selectors-container"},a={class:"selector"},r={key:1,class:"selector"};function u(t,e,i,u,c,d){const p=(0,n.up)("DropdownItem"),h=(0,n.up)("Dropdown");return(0,n.wg)(),(0,n.iD)("div",o,[(0,n._)("div",a,[(0,n.Wm)(h,{title:"Group by","icon-class":"fas fa-eye",ref:"groupingSelector"},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(d.visibleGroupings,(t=>((0,n.wg)(),(0,n.j4)(p,{key:t,text:d.prettifyGroupingName(t),"item-class":{selected:i.value?.grouping===t},onClick:e=>d.onGroupingChanged(t)},null,8,["text","item-class","onClick"])))),128))])),_:1},512)]),i.value?.grouping?((0,n.wg)(),(0,n.iD)("div",{key:0,class:(0,s.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,n.Wm)(h,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(d.sortedGroups,(t=>((0,n.wg)(),(0,n.j4)(p,(0,n.dG)({key:t,text:t},d.iconForGroup(t),{"item-class":{selected:!!c.selectedGroups[t]},onClick:(0,l.iM)((e=>d.toggleGroup(t)),["stop"])}),null,16,["text","item-class","onClick"])))),128))])),_:1},512)],2)):(0,n.kq)("",!0),Object.keys(i.entityGroups.id||{}).length?((0,n.wg)(),(0,n.iD)("div",r,[(0,n.wy)((0,n._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":e[0]||(e[0]=t=>c.searchTerm=t)},null,512),[[l.nr,c.searchTerm]])])):(0,n.kq)("",!0)])}var c=i(6813),d=i(5771),p=i(9015),h=i(7369),m=i(1359),y={name:"Selector",emits:["input"],mixins:[c.Z],components:{Dropdown:d.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings(){return Object.keys(this.entityGroups).filter((t=>"id"!==t))},sortedGroups(){return Object.keys(this.entityGroups[this.value?.grouping]||{}).sort()},typesMeta(){return h},isGroupFilterActive(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities(){return Object.values(this.entityGroups.id).filter((t=>{if(!this.selectedGroups[t[this.value?.grouping]])return!1;if(this.searchTerm?.length){const e=this.searchTerm.toLowerCase();return(t.name||"").toLowerCase().indexOf(e)>=0||(t.plugin||"").toLowerCase().indexOf(e)>=0||(t.external_id||"").toLowerCase().indexOf(e)>=0||(t.id||0).toString()==e}return!0})).reduce(((t,e)=>(t[e.id]=e,t)),{})}},methods:{prettifyGroupingName(t){return t?this.prettify(t)+"s":""},iconForGroup(t){if("plugin"===this.value.grouping&&m[t]){const e=m[t];return{"icon-class":e["class"]?.length||!e.imgUrl?.length?e["class"]:"fas fa-gears","icon-url":e.imgUrl}}return{}},synchronizeSelectedEntities(){const t={...this.value};t.selectedEntities=this.selectedEntities,this.$emit("input",t)},updateSearchTerm(){const t={...this.value};t.searchTerm=this.searchTerm,t.selectedEntities=this.selectedEntities,this.$emit("input",t)},refreshGroupFilter(t){if(t)this.selectedGroups=Object.keys(this.entityGroups[this.value?.grouping]||{}).reduce(((t,e)=>(t[e]=!0,t)),{});else for(const e of Object.keys(this.entityGroups[this.value?.grouping]))null==this.selectedGroups[e]&&(this.selectedGroups[e]=!0);this.synchronizeSelectedEntities()},toggleGroup(t){this.selectedGroups[t]=!this.selectedGroups[t],this.synchronizeSelectedEntities()},onGroupingChanged(t){if(!this.entityGroups[t]||t===this.value?.grouping)return!1;const e={...this.value};e.grouping=t,this.$emit("input",e)}},mounted(){this.refreshGroupFilter(!0),this.$watch((()=>this.value?.grouping),(()=>{this.refreshGroupFilter(!0)})),this.$watch((()=>this.searchTerm),this.updateSearchTerm),this.$watch((()=>this.entityGroups),(()=>{this.refreshGroupFilter(!1)}))}},g=i(3744);const f=(0,g.Z)(y,[["render",u],["__scopeId","data-v-63b80935"]]);var v=f},7243:function(t,e,i){var n={"./Entity":[9892,9],"./Entity.vue":[9892,9],"./EntityIcon":[3499,9,8729,3499],"./EntityIcon.vue":[3499,9,8729,3499],"./EntityMixin":[7909,9],"./EntityMixin.vue":[7909,9],"./Index":[914,9],"./Index.vue":[914,9],"./Light":[1155,9,3490,2107,8729,1155],"./Light.vue":[1155,9,3490,2107,8729,1155],"./Modal":[6243,9],"./Modal.vue":[6243,9],"./Selector":[6647,9],"./Selector.vue":[6647,9],"./Switch":[518,9,3490,8729,518],"./Switch.vue":[518,9,3490,8729,518],"./common.scss":[65,9,4981,65],"./meta":[7369,3],"./meta.json":[7369,3],"./vars.scss":[5207,9,4981,5207]};function s(t){if(!i.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],s=e[0];return Promise.all(e.slice(2).map(i.e)).then((function(){return i.t(s,16|e[1])}))}s.keys=function(){return Object.keys(n)},s.id=7243,t.exports=s},7369:function(t){"use strict";t.exports=JSON.parse('{"entity":{"name":"Entity","name_plural":"Entities","icon":{"class":"fas fa-circle-question"}},"device":{"name":"Device","name_plural":"Devices","icon":{"class":"fas fa-gear"}},"switch":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-toggle-on"}},"light":{"name":"Light","name_plural":"Lights","icon":{"class":"fas fa-lightbulb"}}}')}}]); +//# sourceMappingURL=9892.dacb03d8.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9892.966b4879.js.map b/platypush/backend/http/webapp/dist/static/js/9892.dacb03d8.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/9892.966b4879.js.map rename to platypush/backend/http/webapp/dist/static/js/9892.dacb03d8.js.map index e4024de2d..ceedaeec2 100644 --- a/platypush/backend/http/webapp/dist/static/js/9892.966b4879.js.map +++ b/platypush/backend/http/webapp/dist/static/js/9892.dacb03d8.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9892.966b4879.js","mappings":"sLACOA,MAAM,6B,0CAAX,QAQM,MARN,EAQM,cAPJ,SAME,QANc,EAAAC,WAAS,CACtBC,MAAO,EAAAA,MACPC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAAyB,GAAhB,EAAAF,OAAOG,UACvB,QAAK,eAAE,EAAAC,MAAK,QAAUC,IACtB,UAAO,eAAE,EAAAD,MAAK,UAAYC,KAL7B,sC,eAcJ,GACEC,KAAM,SACNC,OAAQ,CAACC,EAAA,YACTC,MAAO,CAAC,QAAS,WAEjBC,OACE,MAAO,CACLX,UAAW,KAEd,EAEDY,UACoB,WAAdC,KAAKC,OACPD,KAAKb,WAAY,SACf,IAAM,QAAQ,KAA+Ba,KAAKC,UAEvD,G,UCzBH,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O,+FCNA,GACET,KAAM,cACNC,OAAQ,CAACS,EAAA,GACTP,MAAO,CAAC,SACRQ,MAAO,CACLhB,QAAS,CACPY,KAAMK,QACNC,SAAS,GAGXjB,MAAO,CACLW,KAAMK,QACNC,SAAS,GAGXnB,MAAO,CACLa,KAAMO,OACNC,UAAU,IAIdX,OACE,MAAO,CACLY,cAAc,EA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AASkF,EAAoB1B,GAC5B,IAAI2B,EAAoBC,EAAEpF,EAAKwD,GAC9B,OAAO6B,QAAQC,UAAUC,MAAK,WAC7B,IAAI5F,EAAI,IAAI6F,MAAM,uBAAyBhC,EAAM,KAEjD,MADA7D,EAAE8F,KAAO,mBACH9F,CACP,IAGD,IAAI+F,EAAM1F,EAAIwD,GAAMpF,EAAKsH,EAAI,GAC7B,OAAOL,QAAQM,IAAID,EAAI5I,MAAM,GAAGkD,IAAImF,EAAoBxF,IAAI4F,MAAK,WAChE,OAAOJ,EAAoBS,EAAExH,EAAa,GAATsH,EAAI,GACtC,GACD,CACAR,EAAoB1H,KAAO,WAAa,OAAOjB,OAAOiB,KAAKwC,EAAM,EACjEkF,EAAoB9G,GAAK,KACzByH,EAAOC,QAAUZ,C","sources":["webpack://platypush/./src/components/panels/Entities/Entity.vue","webpack://platypush/./src/components/panels/Entities/Entity.vue?6f8a","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue?a9b3","webpack://platypush/./src/components/panels/Entities/Index.vue","webpack://platypush/./src/components/elements/NoItems.vue","webpack://platypush/./src/components/elements/NoItems.vue?70de","webpack://platypush/./src/components/panels/Entities/Index.vue?4523","webpack://platypush/./src/components/panels/Entities/Modal.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue?f384","webpack://platypush/./src/components/elements/EditButton.vue","webpack://platypush/./src/components/elements/EditButton.vue?fb20","webpack://platypush/./src/components/elements/NameEditor.vue","webpack://platypush/./src/components/elements/NameEditor.vue?34cf","webpack://platypush/./src/components/panels/Entities/Modal.vue?d45a","webpack://platypush/./src/components/panels/Entities/Selector.vue","webpack://platypush/./src/components/panels/Entities/Selector.vue?bf8b","webpack://platypush/./src/components/panels/Entities|lazy|/^\\.\\/.*$/|groupOptions: {}|namespace object"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=3c242632&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=3c242632&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c242632\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=fef021ee&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=fef021ee&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fef021ee\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&scoped=true\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\n\nimport \"./ConfirmDialog.vue?vue&type=style&index=0&id=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=628ff73f&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=js\"\nexport * from \"./Modal.vue?vue&type=script&lang=js\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=628ff73f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-628ff73f\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=63b80935&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=63b80935&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-63b80935\"]])\n\nexport default __exports__","var map = {\n\t\"./Entity\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./Index\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t3803,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Light.vue\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t3803,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Modal\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Selector\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Switch\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./Switch.vue\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["class","component","value","loading","error","reachable","$emit","$event","name","mixins","EntityMixin","emits","data","mounted","this","type","__exports__","render","Utils","props","Boolean","default","Object","required","modalVisible","computed","entityType","charAt","toUpperCase","slice","entityGroups","selector","title","refresh","modalEntityId","entity","entities","visible","onEntityModal","keys","displayGroups","length","group","key","grouping","entitiesMeta","icon","pluginIcons","url","imgUrl","name_plural","id","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","Number","entityTimeouts","selectedEntities","meta","icons","entries","groupEntities","reduce","obj","filter","entry","e","sort","a","b","localeCompare","map","methods","attr","values","async","args","plugins","plugin","self","clearTimeout","setTimeout","notify","text","request","name_override","clearEntityTimeouts","entityId","onEntityUpdate","event","state","onEntityDelete","subscribe","sync","href","target","external_id","ref","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","created_at","updated_at","$refs","deleteConfirmDiag","show","onConfirm","confirmText","close","cancelText","Modal","String","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","newName","req","newIcon","startsWith","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","toString","prettify","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","$watch","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all","t","module","exports"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9892.dacb03d8.js","mappings":"sLACOA,MAAM,6B,0CAAX,QAQM,MARN,EAQM,cAPJ,SAME,QANc,EAAAC,WAAS,CACtBC,MAAO,EAAAA,MACPC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAAyB,GAAhB,EAAAF,OAAOG,UACvB,QAAK,eAAE,EAAAC,MAAK,QAAUC,IACtB,UAAO,eAAE,EAAAD,MAAK,UAAYC,KAL7B,sC,eAcJ,GACEC,KAAM,SACNC,OAAQ,CAACC,EAAA,YACTC,MAAO,CAAC,QAAS,WAEjBC,OACE,MAAO,CACLX,UAAW,KAEd,EAEDY,UACoB,WAAdC,KAAKC,OACPD,KAAKb,WAAY,SACf,IAAM,QAAQ,KAA+Ba,KAAKC,UAEvD,G,UCzBH,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O,+FCNA,GACET,KAAM,cACNC,OAAQ,CAACS,EAAA,GACTP,MAAO,CAAC,SACRQ,MAAO,CACLhB,QAAS,CACPY,KAAMK,QACNC,SAAS,GAGXjB,MAAO,CACLW,KAAMK,QACNC,SAAS,GAGXnB,MAAO,CACLa,KAAMO,OACNC,UAAU,IAIdX,OACE,MAAO,CACLY,cAAc,EAEjB,EAEDC,SAAU,CACRV,OACE,IAAIW,EAAcZ,KAAKZ,MAAMa,MAAQ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AO6B,QAAQC,UAAUC,MAAK,WAC7B,IAAI5F,EAAI,IAAI6F,MAAM,uBAAyBhC,EAAM,KAEjD,MADA7D,EAAE8F,KAAO,mBACH9F,CACP,IAGD,IAAI+F,EAAM1F,EAAIwD,GAAMpF,EAAKsH,EAAI,GAC7B,OAAOL,QAAQM,IAAID,EAAI5I,MAAM,GAAGkD,IAAImF,EAAoBxF,IAAI4F,MAAK,WAChE,OAAOJ,EAAoBS,EAAExH,EAAa,GAATsH,EAAI,GACtC,GACD,CACAR,EAAoB1H,KAAO,WAAa,OAAOjB,OAAOiB,KAAKwC,EAAM,EACjEkF,EAAoB9G,GAAK,KACzByH,EAAOC,QAAUZ,C","sources":["webpack://platypush/./src/components/panels/Entities/Entity.vue","webpack://platypush/./src/components/panels/Entities/Entity.vue?6f8a","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue?a9b3","webpack://platypush/./src/components/panels/Entities/Index.vue","webpack://platypush/./src/components/elements/NoItems.vue","webpack://platypush/./src/components/elements/NoItems.vue?70de","webpack://platypush/./src/components/panels/Entities/Index.vue?4523","webpack://platypush/./src/components/panels/Entities/Modal.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue?f384","webpack://platypush/./src/components/elements/EditButton.vue","webpack://platypush/./src/components/elements/EditButton.vue?fb20","webpack://platypush/./src/components/elements/NameEditor.vue","webpack://platypush/./src/components/elements/NameEditor.vue?34cf","webpack://platypush/./src/components/panels/Entities/Modal.vue?d45a","webpack://platypush/./src/components/panels/Entities/Selector.vue","webpack://platypush/./src/components/panels/Entities/Selector.vue?bf8b","webpack://platypush/./src/components/panels/Entities|lazy|/^\\.\\/.*$/|groupOptions: {}|namespace object"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=3c242632&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=3c242632&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c242632\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=fef021ee&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=fef021ee&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fef021ee\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&scoped=true\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\n\nimport \"./ConfirmDialog.vue?vue&type=style&index=0&id=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=628ff73f&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=js\"\nexport * from \"./Modal.vue?vue&type=script&lang=js\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=628ff73f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-628ff73f\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=63b80935&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=63b80935&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-63b80935\"]])\n\nexport default __exports__","var map = {\n\t\"./Entity\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t9892,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3499,\n\t\t9,\n\t\t8729,\n\t\t3499\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./Index\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t914,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t2107,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Light.vue\": [\n\t\t1155,\n\t\t9,\n\t\t3490,\n\t\t2107,\n\t\t8729,\n\t\t1155\n\t],\n\t\"./Modal\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t6243,\n\t\t9\n\t],\n\t\"./Selector\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6647,\n\t\t9\n\t],\n\t\"./Switch\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./Switch.vue\": [\n\t\t518,\n\t\t9,\n\t\t3490,\n\t\t8729,\n\t\t518\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["class","component","value","loading","error","reachable","$emit","$event","name","mixins","EntityMixin","emits","data","mounted","this","type","__exports__","render","Utils","props","Boolean","default","Object","required","modalVisible","computed","entityType","charAt","toUpperCase","slice","entityGroups","selector","title","refresh","modalEntityId","entity","entities","visible","onEntityModal","keys","displayGroups","length","group","key","grouping","entitiesMeta","icon","pluginIcons","url","imgUrl","name_plural","id","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","Number","entityTimeouts","selectedEntities","meta","icons","entries","groupEntities","reduce","obj","filter","entry","e","sort","a","b","localeCompare","map","methods","attr","values","async","args","plugins","plugin","self","clearTimeout","setTimeout","notify","text","request","name_override","clearEntityTimeouts","entityId","onEntityUpdate","event","state","onEntityDelete","subscribe","sync","href","target","external_id","ref","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","created_at","updated_at","$refs","deleteConfirmDiag","show","onConfirm","confirmText","close","cancelText","Modal","String","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","newName","req","newIcon","startsWith","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","toString","prettify","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","$watch","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all","t","module","exports"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9978.e4c02542.js b/platypush/backend/http/webapp/dist/static/js/9978.9241f6a8.js similarity index 66% rename from platypush/backend/http/webapp/dist/static/js/9978.e4c02542.js rename to platypush/backend/http/webapp/dist/static/js/9978.9241f6a8.js index 4b1de75f3..801262382 100644 --- a/platypush/backend/http/webapp/dist/static/js/9978.e4c02542.js +++ b/platypush/backend/http/webapp/dist/static/js/9978.9241f6a8.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9978],{8337:function(t,e,s){s.d(e,{Z:function(){return o}});var a=s(6813),n={name:"Utils",mixins:[a.Z],computed:{audioExtensions(){return new Set(["3gp","aa","aac","aax","act","aiff","amr","ape","au","awb","dct","dss","dvf","flac","gsm","iklax","ivs","m4a","m4b","m4p","mmf","mp3","mpc","msv","nmf","nsf","ogg,","opus","ra,","raw","sln","tta","vox","wav","wma","wv","webm","8svx"])},videoExtensions(){return new Set(["webm","mkv","flv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mts","m2ts","mov","qt","wmv","yuv","rm","rmvb","asf","amv","mp4","m4p","m4v","mpg","mp2","mpeg","mpe","mpv","mpg","mpeg","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","flv","f4v","f4p","f4a","f4b"])},mediaExtensions(){return new Set([...this.videoExtensions,...this.audioExtensions])}},methods:{convertTime(t){t=parseFloat(t);const e={};e.h=""+parseInt(t/3600),e.m=""+parseInt(t/60-60*e.h),e.s=""+parseInt(t-(3600*e.h+60*e.m));for(const a of["m","s"])parseInt(e[a])<10&&(e[a]="0"+e[a]);const s=[];return parseInt(e.h)&&s.push(e.h),s.push(e.m,e.s),s.join(":")},async startStreaming(t,e=!1){let s=t,a=null;t instanceof Object?(s=t.url,a=t.subtitles):t={url:s};const n=await this.request("media.start_streaming",{media:s,subtitles:a,download:e});return{...t,...n}},async stopStreaming(t){await this.request("media.stop_streaming",{media_id:t})}}};const l=n;var o=l},9978:function(t,e,s){s.d(e,{Z:function(){return Ht}});var a=s(6252);const n={class:"media-container"},l={class:"view-container"},o={class:"controls-container"};function i(t,e,s,i,u,r){const c=(0,a.up)("Controls");return(0,a.wg)(),(0,a.iD)("div",n,[(0,a._)("div",l,[(0,a.WI)(t.$slots,"default",{},void 0,!0)]),(0,a._)("div",o,[(0,a.Wm)(c,{status:s.status,track:s.track,buttons:s.buttons,onPlay:e[0]||(e[0]=e=>t.$emit("play",e)),onPause:e[1]||(e[1]=e=>t.$emit("pause",e)),onStop:e[2]||(e[2]=e=>t.$emit("stop")),onPrevious:e[3]||(e[3]=e=>t.$emit("previous")),onNext:e[4]||(e[4]=e=>t.$emit("next")),onSeek:e[5]||(e[5]=e=>t.$emit("seek",e)),onSetVolume:e[6]||(e[6]=e=>t.$emit("set-volume",e)),onConsume:e[7]||(e[7]=e=>t.$emit("consume",e)),onRepeat:e[8]||(e[8]=e=>t.$emit("repeat",e)),onRandom:e[9]||(e[9]=e=>t.$emit("random",e)),onSearch:e[10]||(e[10]=e=>t.$emit("search",e))},null,8,["status","track","buttons"])])])}var u=s(3577),r=s(9963);const c=t=>((0,a.dD)("data-v-8db4988a"),t=t(),(0,a.Cn)(),t),p={class:"row"},d=c((()=>(0,a._)("div",{class:"col-3"},null,-1))),m={class:"col-6"},v={class:"buttons"},k=c((()=>(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1))),b=[k],f=c((()=>(0,a._)("i",{class:"icon fa fa-stop"},null,-1))),g=[f],y=c((()=>(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1))),h=[y],_=c((()=>(0,a._)("div",{class:"col-3"},null,-1))),w={class:"row"},C={class:"col-9 volume-container"},x={class:"col-1"},$=["disabled"],D=c((()=>(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1))),T=[D],q={class:"col-11 volume-slider"},S={class:"col-3 list-controls"},U=c((()=>(0,a._)("i",{class:"icon fa fa-utensils"},null,-1))),M=[U],P=c((()=>(0,a._)("i",{class:"icon fa fa-random"},null,-1))),I=[P],Z=c((()=>(0,a._)("i",{class:"icon fa fa-redo"},null,-1))),j=[Z],z={class:"row"},O={class:"col-s-2 col-m-1 time"},N=["textContent"],W={class:"col-s-8 col-m-10 time-bar"},E={class:"col-s-2 col-m-1 time"},R=["textContent"],A={class:"controls"},B={class:"playback-controls mobile tablet col-2"},H=["title"],K={key:0,class:"icon play-pause fa fa-pause"},L={key:1,class:"icon play-pause fa fa-play"},V={class:"track-container col-s-8 col-m-8 col-l-3"},F={key:0,class:"track-info"},Y={key:0,class:"title"},G=["href","textContent"],J=["href","textContent"],Q=["textContent"],X={key:1,class:"artist"},tt=["href","textContent"],et={class:"playback-controls desktop col-6"},st={class:"row buttons"},at=c((()=>(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1))),nt=[at],lt=["title"],ot={key:0,class:"icon play-pause fa fa-pause"},it={key:1,class:"icon play-pause fa fa-play"},ut=c((()=>(0,a._)("i",{class:"icon fa fa-stop"},null,-1))),rt=[ut],ct=c((()=>(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1))),pt=[ct],dt={class:"row"},mt={class:"col-1 time"},vt=["textContent"],kt={class:"col-10"},bt={class:"col-1 time"},ft=["textContent"],gt={class:"col-2 pull-right mobile tablet right-buttons"},yt=["title"],ht={class:"col-3 pull-right desktop"},_t={class:"row list-controls"},wt=c((()=>(0,a._)("i",{class:"icon fa fa-utensils"},null,-1))),Ct=[wt],xt=c((()=>(0,a._)("i",{class:"icon fa fa-random"},null,-1))),$t=[xt],Dt=c((()=>(0,a._)("i",{class:"icon fa fa-redo"},null,-1))),Tt=[Dt],qt={class:"row volume-container"},St={class:"col-2"},Ut=["disabled"],Mt=c((()=>(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1))),Pt=[Mt],It={class:"col-10"};function Zt(t,e,s,n,l,o){const i=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a._)("div",{class:(0,u.C_)(["extension fade-in",{hidden:!l.expanded}])},[(0,a._)("div",p,[d,(0,a._)("div",m,[(0,a._)("div",v,[l.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[0]||(e[0]=e=>t.$emit("previous")),title:"Play previous track"},b)):(0,a.kq)("",!0),l.buttons_.stop&&"stop"!==s.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[1]||(e[1]=e=>t.$emit("stop")),title:"Stop playback"},g)):(0,a.kq)("",!0),l.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[2]||(e[2]=e=>t.$emit("next")),title:"Play next track"},h)):(0,a.kq)("",!0)])]),_]),(0,a._)("div",w,[(0,a._)("div",C,[(0,a._)("div",x,[(0,a._)("button",{disabled:null==s.status.muted,onClick:e[3]||(e[3]=e=>t.$emit(s.status.muted?"unmute":"mute"))},T,8,$)]),(0,a._)("div",q,[(0,a.Wm)(i,{value:s.status.volume,range:s.volumeRange,disabled:null==s.status.volume,onMouseup:e[4]||(e[4]=e=>t.$emit("set-volume",e.target.value))},null,8,["value","range","disabled"])])]),(0,a._)("div",S,[l.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[5]||(e[5]=e=>t.$emit("consume",!s.status.consume)),class:(0,u.C_)({enabled:s.status.consume}),title:"Toggle consume mode"},M,2)):(0,a.kq)("",!0),l.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[6]||(e[6]=e=>t.$emit("random",!s.status.random)),class:(0,u.C_)({enabled:s.status.random}),title:"Toggle shuffle"},I,2)):(0,a.kq)("",!0),l.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[7]||(e[7]=e=>t.$emit("repeat",!s.status.repeat)),class:(0,u.C_)({enabled:s.status.repeat}),title:"Toggle repeat"},j,2)):(0,a.kq)("",!0)])]),(0,a._)("div",z,[(0,a._)("div",O,[(0,a._)("span",{class:"elapsed-time",textContent:(0,u.zw)(null==l.elapsed||"play"!==s.status.state&&"pause"!==s.status.state?"-:--":t.convertTime(l.elapsed))},null,8,N)]),(0,a._)("div",W,[(0,a.Wm)(i,{value:l.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===s.status.state,onMouseup:e[8]||(e[8]=e=>t.$emit("seek",e.target.value))},null,8,["value","range","disabled"])]),(0,a._)("div",E,[(0,a._)("span",{class:"total-time",textContent:(0,u.zw)(o.duration&&"stop"!==s.status.state?t.convertTime(o.duration):"-:--")},null,8,R)])])],2),(0,a._)("div",A,[(0,a._)("div",B,[(0,a._)("button",{onClick:e[9]||(e[9]=e=>t.$emit("play"===s.status.state?"pause":"play")),title:"play"===s.status.state?"Pause":"Play"},["play"===s.status.state?((0,a.wg)(),(0,a.iD)("i",K)):((0,a.wg)(),(0,a.iD)("i",L))],8,H)]),(0,a._)("div",V,[s.track&&"stop"!==s.status?.state?((0,a.wg)(),(0,a.iD)("div",F,["play"===s.status.state||"pause"===s.status.state?((0,a.wg)(),(0,a.iD)("div",Y,[s.track.album?((0,a.wg)(),(0,a.iD)("a",{key:0,href:t.$route.fullPath,textContent:(0,u.zw)(s.track.title?.length?s.track.title:"[No Title]"),onClick:e[10]||(e[10]=(0,r.iM)((e=>t.$emit("search",{artist:s.track.artist,album:s.track.album})),["prevent"]))},null,8,G)):s.track.url?((0,a.wg)(),(0,a.iD)("a",{key:1,href:s.track.url,textContent:(0,u.zw)(s.track.title?.length?s.track.title:"[No Title]")},null,8,J)):((0,a.wg)(),(0,a.iD)("span",{key:2,textContent:(0,u.zw)(s.track.title?.length?s.track.title:"[No Title]")},null,8,Q))])):(0,a.kq)("",!0),!s.track.artist?.length||"play"!==s.status.state&&"pause"!==s.status.state?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",X,[(0,a._)("a",{href:t.$route.fullPath,textContent:(0,u.zw)(s.track.artist),onClick:e[11]||(e[11]=(0,r.iM)((e=>t.$emit("search",{artist:s.track.artist})),["prevent"]))},null,8,tt)]))])):(0,a.kq)("",!0)]),(0,a._)("div",et,[(0,a._)("div",st,[l.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[12]||(e[12]=e=>t.$emit("previous")),title:"Play previous track"},nt)):(0,a.kq)("",!0),(0,a._)("button",{onClick:e[13]||(e[13]=e=>t.$emit("play"===s.status.state?"pause":"play")),title:"play"===s.status.state?"Pause":"Play"},["play"===s.status.state?((0,a.wg)(),(0,a.iD)("i",ot)):((0,a.wg)(),(0,a.iD)("i",it))],8,lt),l.buttons_.stop&&"stop"!==s.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[14]||(e[14]=e=>t.$emit("stop")),title:"Stop playback"},rt)):(0,a.kq)("",!0),l.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[15]||(e[15]=e=>t.$emit("next")),title:"Play next track"},pt)):(0,a.kq)("",!0)]),(0,a._)("div",dt,[(0,a._)("div",mt,[(0,a._)("span",{class:"elapsed-time",textContent:(0,u.zw)(null==l.elapsed||"play"!==s.status.state&&"pause"!==s.status.state?"-:--":t.convertTime(l.elapsed))},null,8,vt)]),(0,a._)("div",kt,[(0,a.Wm)(i,{value:l.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===s.status.state,onMouseup:e[16]||(e[16]=e=>t.$emit("seek",e.target.value))},null,8,["value","range","disabled"])]),(0,a._)("div",bt,[(0,a._)("span",{class:"total-time",textContent:(0,u.zw)(o.duration&&"stop"!==s.status.state?t.convertTime(o.duration):"-:--")},null,8,ft)])])]),(0,a._)("div",gt,[(0,a._)("button",{onClick:e[17]||(e[17]=t=>l.expanded=!l.expanded),title:l.expanded?"Show more controls":"Hide extra controls"},[(0,a._)("i",{class:(0,u.C_)(["fas",["fa-chevron-"+(l.expanded?"down":"up")]])},null,2)],8,yt)]),(0,a._)("div",ht,[(0,a._)("div",_t,[l.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[18]||(e[18]=e=>t.$emit("consume")),class:(0,u.C_)({enabled:s.status.consume}),title:"Toggle consume mode"},Ct,2)):(0,a.kq)("",!0),l.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[19]||(e[19]=e=>t.$emit("random")),class:(0,u.C_)({enabled:s.status.random}),title:"Toggle shuffle"},$t,2)):(0,a.kq)("",!0),l.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[20]||(e[20]=e=>t.$emit("repeat")),class:(0,u.C_)({enabled:s.status.repeat}),title:"Toggle repeat"},Tt,2)):(0,a.kq)("",!0)]),(0,a._)("div",qt,[(0,a._)("div",St,[(0,a._)("button",{disabled:null==s.status.muted,onClick:e[21]||(e[21]=e=>t.$emit(s.status.muted?"unmute":"mute"))},Pt,8,Ut)]),(0,a._)("div",It,[(0,a.Wm)(i,{value:s.status.volume,range:s.volumeRange,disabled:null==s.status.volume,onMouseup:e[22]||(e[22]=e=>t.$emit("set-volume",e.target.value))},null,8,["value","range","disabled"])])])])])],64)}var jt=s(6813),zt=s(8337),Ot=s(376),Nt={name:"Controls",components:{Slider:Ot.Z},mixins:[jt.Z,zt.Z],emits:["search","previous","next","play","pause","stop","seek","consume","random","repeat","set-volume","mute","unmute"],props:{track:{type:Object},status:{type:Object,default:()=>{}},buttons:{type:Object,default:()=>({previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0})},volumeRange:{type:Array,default:()=>[0,100]}},data(){const t=Object.keys(this.buttons)?.length?this.buttons:{previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0};return{expanded:!1,lastSync:0,elapsed:this.status?.elapsed||this.status?.position,buttons_:t}},computed:{duration(){return null!=this.status?.duration?this.status.duration:this.track?.duration}},methods:{getTime(){return(new Date).getTime()/1e3}},mounted(){const t=this;this.lastSync=this.getTime(),this.$watch((()=>this.track),(e=>{e&&"play"===t.status?.state||(t.lastSync=this.getTime())})),this.$watch((()=>this.status),(()=>{t.lastSync=this.getTime()})),setInterval((()=>{"stop"!==t.status?.state&&(t.elapsed=t.status?.elapsed||t.status?.position||0,"play"===t.status?.state&&(t.elapsed+=Math.round(this.getTime()-t.lastSync)))}),1e3)}},Wt=s(3744);const Et=(0,Wt.Z)(Nt,[["render",Zt],["__scopeId","data-v-8db4988a"]]);var Rt=Et,At={name:"View",components:{Controls:Rt},emits:["play","pause","stop","next","previous","set-volume","seek","consume","random","repeat","search"],props:{pluginName:{type:String,required:!0},status:{type:Object,default:()=>{}},track:{type:Object},buttons:{type:Object}}};const Bt=(0,Wt.Z)(At,[["render",i],["__scopeId","data-v-70d7a7df"]]);var Ht=Bt},376:function(t,e,s){s.d(e,{Z:function(){return b}});var a=s(6252),n=s(9963),l=s(3577);const o={class:"slider-wrapper"},i=["min","max","step","disabled","value"],u={class:"track"},r={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},p=["textContent"];function d(t,e,s,d,m,v){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:"slider",type:"range",ref:"range",min:s.range[0],max:s.range[1],step:s.step,disabled:s.disabled,value:s.value,onInput:e[0]||(e[0]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"])),onChange:e[1]||(e[1]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"])),onMouseup:e[2]||(e[2]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"])),onMousedown:e[3]||(e[3]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"])),onTouchstart:e[4]||(e[4]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"])),onTouchend:e[5]||(e[5]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"])),onKeyup:e[6]||(e[6]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"])),onKeydown:e[7]||(e[7]=(0,n.iM)(((...t)=>v.onUpdate&&v.onUpdate(...t)),["stop"]))},null,40,i),(0,a._)("div",u,[(0,a._)("div",r,null,512)]),(0,a._)("div",c,null,512),s.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,l.zw)(s.value)},null,8,p)):(0,a.kq)("",!0)])}var m={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(t){this.update(t.target.value),this.$emit(t.type,{...t,target:{...t.target,value:this.$refs.range.value}})},update(t){const e=100*(t-this.range[0])/(this.range[1]-this.range[0]);this.$refs.thumb.style.left=`${e}%`,this.$refs.thumb.style.transform=`translate(-${e}%, -50%)`,this.$refs.track.style.width=`${e}%`}},mounted(){null!=this.value&&this.update(this.value)}},v=s(3744);const k=(0,v.Z)(m,[["render",d],["__scopeId","data-v-95edc28a"]]);var b=k}}]); -//# sourceMappingURL=9978.e4c02542.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9978],{8337:function(t,e,s){s.d(e,{Z:function(){return o}});var a=s(6813),n={name:"Utils",mixins:[a.Z],computed:{audioExtensions(){return new Set(["3gp","aa","aac","aax","act","aiff","amr","ape","au","awb","dct","dss","dvf","flac","gsm","iklax","ivs","m4a","m4b","m4p","mmf","mp3","mpc","msv","nmf","nsf","ogg,","opus","ra,","raw","sln","tta","vox","wav","wma","wv","webm","8svx"])},videoExtensions(){return new Set(["webm","mkv","flv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mts","m2ts","mov","qt","wmv","yuv","rm","rmvb","asf","amv","mp4","m4p","m4v","mpg","mp2","mpeg","mpe","mpv","mpg","mpeg","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","flv","f4v","f4p","f4a","f4b"])},mediaExtensions(){return new Set([...this.videoExtensions,...this.audioExtensions])}},methods:{convertTime(t){t=parseFloat(t);const e={};e.h=""+parseInt(t/3600),e.m=""+parseInt(t/60-60*e.h),e.s=""+parseInt(t-(3600*e.h+60*e.m));for(const a of["m","s"])parseInt(e[a])<10&&(e[a]="0"+e[a]);const s=[];return parseInt(e.h)&&s.push(e.h),s.push(e.m,e.s),s.join(":")},async startStreaming(t,e=!1){let s=t,a=null;t instanceof Object?(s=t.url,a=t.subtitles):t={url:s};const n=await this.request("media.start_streaming",{media:s,subtitles:a,download:e});return{...t,...n}},async stopStreaming(t){await this.request("media.stop_streaming",{media_id:t})}}};const l=n;var o=l},9978:function(t,e,s){s.d(e,{Z:function(){return Bt}});var a=s(6252);const n={class:"media-container"},l={class:"view-container"},o={class:"controls-container"};function i(t,e,s,i,u,r){const c=(0,a.up)("Controls");return(0,a.wg)(),(0,a.iD)("div",n,[(0,a._)("div",l,[(0,a.WI)(t.$slots,"default",{},void 0,!0)]),(0,a._)("div",o,[(0,a.Wm)(c,{status:s.status,track:s.track,buttons:s.buttons,onPlay:e[0]||(e[0]=e=>t.$emit("play",e)),onPause:e[1]||(e[1]=e=>t.$emit("pause",e)),onStop:e[2]||(e[2]=e=>t.$emit("stop")),onPrevious:e[3]||(e[3]=e=>t.$emit("previous")),onNext:e[4]||(e[4]=e=>t.$emit("next")),onSeek:e[5]||(e[5]=e=>t.$emit("seek",e)),onSetVolume:e[6]||(e[6]=e=>t.$emit("set-volume",e)),onConsume:e[7]||(e[7]=e=>t.$emit("consume",e)),onRepeat:e[8]||(e[8]=e=>t.$emit("repeat",e)),onRandom:e[9]||(e[9]=e=>t.$emit("random",e)),onSearch:e[10]||(e[10]=e=>t.$emit("search",e))},null,8,["status","track","buttons"])])])}var u=s(3577),r=s(9963);const c=t=>((0,a.dD)("data-v-8db4988a"),t=t(),(0,a.Cn)(),t),p={class:"row"},d=c((()=>(0,a._)("div",{class:"col-3"},null,-1))),m={class:"col-6"},v={class:"buttons"},k=c((()=>(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1))),b=[k],f=c((()=>(0,a._)("i",{class:"icon fa fa-stop"},null,-1))),g=[f],h=c((()=>(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1))),_=[h],y=c((()=>(0,a._)("div",{class:"col-3"},null,-1))),w={class:"row"},C={class:"col-9 volume-container"},x={class:"col-1"},$=["disabled"],D=c((()=>(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1))),T=[D],q={class:"col-11 volume-slider"},S={class:"col-3 list-controls"},U=c((()=>(0,a._)("i",{class:"icon fa fa-utensils"},null,-1))),M=[U],P=c((()=>(0,a._)("i",{class:"icon fa fa-random"},null,-1))),I=[P],Z=c((()=>(0,a._)("i",{class:"icon fa fa-redo"},null,-1))),j=[Z],z={class:"row"},O={class:"col-s-2 col-m-1 time"},W=["textContent"],N={class:"col-s-8 col-m-10 time-bar"},E={class:"col-s-2 col-m-1 time"},R=["textContent"],L={class:"controls"},A={class:"playback-controls mobile tablet col-2"},B=["title"],H={key:0,class:"icon play-pause fa fa-pause"},K={key:1,class:"icon play-pause fa fa-play"},V={class:"track-container col-s-8 col-m-8 col-l-3"},F={key:0,class:"track-info"},Y={key:0,class:"title"},G=["href","textContent"],J=["href","textContent"],Q=["textContent"],X={key:1,class:"artist"},tt=["href","textContent"],et={class:"playback-controls desktop col-6"},st={class:"row buttons"},at=c((()=>(0,a._)("i",{class:"icon fa fa-step-backward"},null,-1))),nt=[at],lt=["title"],ot={key:0,class:"icon play-pause fa fa-pause"},it={key:1,class:"icon play-pause fa fa-play"},ut=c((()=>(0,a._)("i",{class:"icon fa fa-stop"},null,-1))),rt=[ut],ct=c((()=>(0,a._)("i",{class:"icon fa fa-step-forward"},null,-1))),pt=[ct],dt={class:"row"},mt={class:"col-1 time"},vt=["textContent"],kt={class:"col-10"},bt={class:"col-1 time"},ft=["textContent"],gt={class:"col-2 pull-right mobile tablet right-buttons"},ht=["title"],_t={class:"col-3 pull-right desktop"},yt={class:"row list-controls"},wt=c((()=>(0,a._)("i",{class:"icon fa fa-utensils"},null,-1))),Ct=[wt],xt=c((()=>(0,a._)("i",{class:"icon fa fa-random"},null,-1))),$t=[xt],Dt=c((()=>(0,a._)("i",{class:"icon fa fa-redo"},null,-1))),Tt=[Dt],qt={class:"row volume-container"},St={class:"col-2"},Ut=["disabled"],Mt=c((()=>(0,a._)("i",{class:"icon fa fa-volume-up"},null,-1))),Pt=[Mt],It={class:"col-10"};function Zt(t,e,s,n,l,o){const i=(0,a.up)("Slider");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a._)("div",{class:(0,u.C_)(["extension fade-in",{hidden:!l.expanded}])},[(0,a._)("div",p,[d,(0,a._)("div",m,[(0,a._)("div",v,[l.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[0]||(e[0]=e=>t.$emit("previous")),title:"Play previous track"},b)):(0,a.kq)("",!0),l.buttons_.stop&&"stop"!==s.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[1]||(e[1]=e=>t.$emit("stop")),title:"Stop playback"},g)):(0,a.kq)("",!0),l.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[2]||(e[2]=e=>t.$emit("next")),title:"Play next track"},_)):(0,a.kq)("",!0)])]),y]),(0,a._)("div",w,[(0,a._)("div",C,[(0,a._)("div",x,[(0,a._)("button",{disabled:null==s.status.muted,onClick:e[3]||(e[3]=e=>t.$emit(s.status.muted?"unmute":"mute"))},T,8,$)]),(0,a._)("div",q,[(0,a.Wm)(i,{value:s.status.volume,range:s.volumeRange,disabled:null==s.status.volume,onMouseup:e[4]||(e[4]=e=>t.$emit("set-volume",e.target.value))},null,8,["value","range","disabled"])])]),(0,a._)("div",S,[l.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[5]||(e[5]=e=>t.$emit("consume",!s.status.consume)),class:(0,u.C_)({enabled:s.status.consume}),title:"Toggle consume mode"},M,2)):(0,a.kq)("",!0),l.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[6]||(e[6]=e=>t.$emit("random",!s.status.random)),class:(0,u.C_)({enabled:s.status.random}),title:"Toggle shuffle"},I,2)):(0,a.kq)("",!0),l.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[7]||(e[7]=e=>t.$emit("repeat",!s.status.repeat)),class:(0,u.C_)({enabled:s.status.repeat}),title:"Toggle repeat"},j,2)):(0,a.kq)("",!0)])]),(0,a._)("div",z,[(0,a._)("div",O,[(0,a._)("span",{class:"elapsed-time",textContent:(0,u.zw)(null==l.elapsed||"play"!==s.status.state&&"pause"!==s.status.state?"-:--":t.convertTime(l.elapsed))},null,8,W)]),(0,a._)("div",N,[(0,a.Wm)(i,{value:l.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===s.status.state,onMouseup:e[8]||(e[8]=e=>t.$emit("seek",e.target.value))},null,8,["value","range","disabled"])]),(0,a._)("div",E,[(0,a._)("span",{class:"total-time",textContent:(0,u.zw)(o.duration&&"stop"!==s.status.state?t.convertTime(o.duration):"-:--")},null,8,R)])])],2),(0,a._)("div",L,[(0,a._)("div",A,[(0,a._)("button",{onClick:e[9]||(e[9]=e=>t.$emit("play"===s.status.state?"pause":"play")),title:"play"===s.status.state?"Pause":"Play"},["play"===s.status.state?((0,a.wg)(),(0,a.iD)("i",H)):((0,a.wg)(),(0,a.iD)("i",K))],8,B)]),(0,a._)("div",V,[s.track&&"stop"!==s.status?.state?((0,a.wg)(),(0,a.iD)("div",F,["play"===s.status.state||"pause"===s.status.state?((0,a.wg)(),(0,a.iD)("div",Y,[s.track.album?((0,a.wg)(),(0,a.iD)("a",{key:0,href:t.$route.fullPath,textContent:(0,u.zw)(s.track.title?.length?s.track.title:"[No Title]"),onClick:e[10]||(e[10]=(0,r.iM)((e=>t.$emit("search",{artist:s.track.artist,album:s.track.album})),["prevent"]))},null,8,G)):s.track.url?((0,a.wg)(),(0,a.iD)("a",{key:1,href:s.track.url,textContent:(0,u.zw)(s.track.title?.length?s.track.title:"[No Title]")},null,8,J)):((0,a.wg)(),(0,a.iD)("span",{key:2,textContent:(0,u.zw)(s.track.title?.length?s.track.title:"[No Title]")},null,8,Q))])):(0,a.kq)("",!0),!s.track.artist?.length||"play"!==s.status.state&&"pause"!==s.status.state?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",X,[(0,a._)("a",{href:t.$route.fullPath,textContent:(0,u.zw)(s.track.artist),onClick:e[11]||(e[11]=(0,r.iM)((e=>t.$emit("search",{artist:s.track.artist})),["prevent"]))},null,8,tt)]))])):(0,a.kq)("",!0)]),(0,a._)("div",et,[(0,a._)("div",st,[l.buttons_.previous?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[12]||(e[12]=e=>t.$emit("previous")),title:"Play previous track"},nt)):(0,a.kq)("",!0),(0,a._)("button",{onClick:e[13]||(e[13]=e=>t.$emit("play"===s.status.state?"pause":"play")),title:"play"===s.status.state?"Pause":"Play"},["play"===s.status.state?((0,a.wg)(),(0,a.iD)("i",ot)):((0,a.wg)(),(0,a.iD)("i",it))],8,lt),l.buttons_.stop&&"stop"!==s.status.state?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[14]||(e[14]=e=>t.$emit("stop")),title:"Stop playback"},rt)):(0,a.kq)("",!0),l.buttons_.next?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[15]||(e[15]=e=>t.$emit("next")),title:"Play next track"},pt)):(0,a.kq)("",!0)]),(0,a._)("div",dt,[(0,a._)("div",mt,[(0,a._)("span",{class:"elapsed-time",textContent:(0,u.zw)(null==l.elapsed||"play"!==s.status.state&&"pause"!==s.status.state?"-:--":t.convertTime(l.elapsed))},null,8,vt)]),(0,a._)("div",kt,[(0,a.Wm)(i,{value:l.elapsed,range:[0,o.duration],disabled:!o.duration||"stop"===s.status.state,onMouseup:e[16]||(e[16]=e=>t.$emit("seek",e.target.value))},null,8,["value","range","disabled"])]),(0,a._)("div",bt,[(0,a._)("span",{class:"total-time",textContent:(0,u.zw)(o.duration&&"stop"!==s.status.state?t.convertTime(o.duration):"-:--")},null,8,ft)])])]),(0,a._)("div",gt,[(0,a._)("button",{onClick:e[17]||(e[17]=t=>l.expanded=!l.expanded),title:l.expanded?"Show more controls":"Hide extra controls"},[(0,a._)("i",{class:(0,u.C_)(["fas",["fa-chevron-"+(l.expanded?"down":"up")]])},null,2)],8,ht)]),(0,a._)("div",_t,[(0,a._)("div",yt,[l.buttons_.consume?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e[18]||(e[18]=e=>t.$emit("consume")),class:(0,u.C_)({enabled:s.status.consume}),title:"Toggle consume mode"},Ct,2)):(0,a.kq)("",!0),l.buttons_.random?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:e[19]||(e[19]=e=>t.$emit("random")),class:(0,u.C_)({enabled:s.status.random}),title:"Toggle shuffle"},$t,2)):(0,a.kq)("",!0),l.buttons_.repeat?((0,a.wg)(),(0,a.iD)("button",{key:2,onClick:e[20]||(e[20]=e=>t.$emit("repeat")),class:(0,u.C_)({enabled:s.status.repeat}),title:"Toggle repeat"},Tt,2)):(0,a.kq)("",!0)]),(0,a._)("div",qt,[(0,a._)("div",St,[(0,a._)("button",{disabled:null==s.status.muted,onClick:e[21]||(e[21]=e=>t.$emit(s.status.muted?"unmute":"mute"))},Pt,8,Ut)]),(0,a._)("div",It,[(0,a.Wm)(i,{value:s.status.volume,range:s.volumeRange,disabled:null==s.status.volume,onMouseup:e[22]||(e[22]=e=>t.$emit("set-volume",e.target.value))},null,8,["value","range","disabled"])])])])])],64)}var jt=s(6813),zt=s(8337),Ot=s(8070),Wt={name:"Controls",components:{Slider:Ot.Z},mixins:[jt.Z,zt.Z],emits:["search","previous","next","play","pause","stop","seek","consume","random","repeat","set-volume","mute","unmute"],props:{track:{type:Object},status:{type:Object,default:()=>{}},buttons:{type:Object,default:()=>({previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0})},volumeRange:{type:Array,default:()=>[0,100]}},data(){const t=Object.keys(this.buttons)?.length?this.buttons:{previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0};return{expanded:!1,lastSync:0,elapsed:this.status?.elapsed||this.status?.position,buttons_:t}},computed:{duration(){return null!=this.status?.duration?this.status.duration:this.track?.duration}},methods:{getTime(){return(new Date).getTime()/1e3}},mounted(){const t=this;this.lastSync=this.getTime(),this.$watch((()=>this.track),(e=>{e&&"play"===t.status?.state||(t.lastSync=this.getTime())})),this.$watch((()=>this.status),(()=>{t.lastSync=this.getTime()})),setInterval((()=>{"stop"!==t.status?.state&&(t.elapsed=t.status?.elapsed||t.status?.position||0,"play"===t.status?.state&&(t.elapsed+=Math.round(this.getTime()-t.lastSync)))}),1e3)}},Nt=s(3744);const Et=(0,Nt.Z)(Wt,[["render",Zt],["__scopeId","data-v-8db4988a"]]);var Rt=Et,Lt={name:"View",components:{Controls:Rt},emits:["play","pause","stop","next","previous","set-volume","seek","consume","random","repeat","search"],props:{pluginName:{type:String,required:!0},status:{type:Object,default:()=>{}},track:{type:Object},buttons:{type:Object}}};const At=(0,Nt.Z)(Lt,[["render",i],["__scopeId","data-v-70d7a7df"]]);var Bt=At},8070:function(t,e,s){s.d(e,{Z:function(){return k}});var a=s(6252),n=s(3577),l=s(9963);const o={class:"slider-wrapper"},i=["min","max","step","disabled","value"],u={class:"track-inner",ref:"track"},r={class:"thumb",ref:"thumb"},c=["textContent"];function p(t,e,s,p,d,m){return(0,a.wg)(),(0,a.iD)("label",o,[(0,a._)("input",{class:(0,n.C_)(["slider",{"with-label":s.withLabel}]),type:"range",min:s.range[0],max:s.range[1],step:s.step,disabled:s.disabled,value:s.value,ref:"range",onInput:e[0]||(e[0]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"])),onChange:e[1]||(e[1]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"])),onMouseup:e[2]||(e[2]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"])),onMousedown:e[3]||(e[3]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"])),onTouchstart:e[4]||(e[4]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"])),onTouchend:e[5]||(e[5]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"])),onKeyup:e[6]||(e[6]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"])),onKeydown:e[7]||(e[7]=(0,l.iM)(((...t)=>m.onUpdate&&m.onUpdate(...t)),["stop"]))},null,42,i),(0,a._)("div",{class:(0,n.C_)(["track",{"with-label":s.withLabel}])},[(0,a._)("div",u,null,512)],2),(0,a._)("div",r,null,512),s.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,n.zw)(s.value),ref:"label"},null,8,c)):(0,a.kq)("",!0)])}var d={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1}},methods:{onUpdate(t){this.update(t.target.value),this.$emit(t.type,{...t,target:{...t.target,value:this.$refs.range.value}})},update(t){const e=this.$refs.range.clientWidth,s=(t-this.range[0])/(this.range[1]-this.range[0]),a=s*e,n=this.$refs.thumb;n.style.left=a-n.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${s}%, -50%)`,this.$refs.track.style.width=`${a}px`}},mounted(){null!=this.value&&this.update(this.value)}},m=s(3744);const v=(0,m.Z)(d,[["render",p],["__scopeId","data-v-0359812c"]]);var k=v}}]); +//# sourceMappingURL=9978.9241f6a8.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9978.9241f6a8.js.map b/platypush/backend/http/webapp/dist/static/js/9978.9241f6a8.js.map new file mode 100644 index 000000000..7e344cc82 --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/9978.9241f6a8.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/9978.9241f6a8.js","mappings":"gKAGA,GACEA,KAAM,QACNC,OAAQ,CAACC,EAAA,GAETC,SAAU,CACRC,kBACE,OAAO,IAAIC,IAAI,CACb,MAAO,KAAM,MAAO,MAAO,MAAO,OAAQ,MAAO,MAAO,KACxD,MAAO,MAAO,MAAO,MAAO,OAAQ,MAAO,QAAS,MACpD,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MACxD,OAAQ,OAAQ,MAAO,MAAO,MAAO,MAAO,MAAO,MACnD,MAAO,KAAM,OAAQ,QAExB,EAEDC,kBACE,OAAO,IAAID,IAAI,CACb,OAAQ,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MACzD,OAAQ,MAAO,MAAO,MAAO,OAAQ,MAAO,KAAM,MAAO,MACzD,KAAM,OAAQ,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MACxD,OAAQ,MAAO,MAAO,MAAO,OAAQ,MAAO,MAAO,MACnD,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OAElE,EAEDE,kBACE,OAAO,IAAIF,IAAI,IAAIG,KAAKF,mBAAoBE,KAAKJ,iBAClD,GAGHK,QAAS,CACPC,YAAYC,GACVA,EAAOC,WAAWD,GAClB,MAAME,EAAI,CAAC,EACXA,EAAEC,EAAI,GAAKC,SAASJ,EAAK,MACzBE,EAAEG,EAAI,GAAKD,SAASJ,EAAK,GAAS,GAAJE,EAAEC,GAChCD,EAAEI,EAAI,GAAKF,SAASJ,GAAY,KAAJE,EAAEC,EAA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AG7B,EAEDiD,OAAOjD,GACL,MAAMmD,EAAc3F,KAAK0F,MAAMhD,MAAMkD,YAC/BC,GAAWrD,EAAQxC,KAAK0C,MAAM,KAAO1C,KAAK0C,MAAM,GAAK1C,KAAK0C,MAAM,IAChEoD,EAAaD,EAAUF,EACvBI,EAAQ/F,KAAK0F,MAAMK,MAEzBA,EAAMC,MAAMC,KAAUH,EAAaC,EAAMH,YAAc,EAAnC,KACpB5F,KAAK0F,MAAMK,MAAMC,MAAME,UAAa,cAAaL,YACjD7F,KAAK0F,MAAM/D,MAAMqE,MAAMG,MAAS,GAAEL,KACnC,GAGHzB,UACoB,MAAdrE,KAAKwC,OACPxC,KAAKyF,OAAOzF,KAAKwC,MACpB,G,UC9EH,MAAMhB,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASuD,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/Media/Utils.vue","webpack://platypush/./src/components/Media/Utils.vue?af63","webpack://platypush/./src/components/Media/View.vue","webpack://platypush/./src/components/Media/Controls.vue","webpack://platypush/./src/components/Media/Controls.vue?3032","webpack://platypush/./src/components/Media/View.vue?78ca","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f"],"sourcesContent":["\n","import script from \"./Utils.vue?vue&type=script&lang=js\"\nexport * from \"./Utils.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=8db4988a&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=8db4988a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8db4988a\"]])\n\nexport default __exports__","import { render } from \"./View.vue?vue&type=template&id=70d7a7df&scoped=true\"\nimport script from \"./View.vue?vue&type=script&lang=js\"\nexport * from \"./View.vue?vue&type=script&lang=js\"\n\nimport \"./View.vue?vue&type=style&index=0&id=70d7a7df&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70d7a7df\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=0359812c&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=0359812c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0359812c\"]])\n\nexport default __exports__"],"names":["name","mixins","Utils","computed","audioExtensions","Set","videoExtensions","mediaExtensions","this","methods","convertTime","time","parseFloat","t","h","parseInt","m","s","attr","ret","push","join","async","resource","download","url","subtitles","Object","request","media","mediaId","media_id","__exports__","class","status","track","buttons","$emit","$event","expanded","buttons_","previous","title","stop","state","next","disabled","muted","value","volume","range","volumeRange","target","consume","random","repeat","elapsed","duration","album","href","$route","fullPath","length","artist","components","Slider","emits","props","type","default","Array","data","keys","lastSync","position","getTime","Date","mounted","self","$watch","setInterval","Math","round","Controls","pluginName","String","required","render","ref","withLabel","min","max","step","onUpdate","Number","Boolean","event","update","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","width"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9978.e4c02542.js.map b/platypush/backend/http/webapp/dist/static/js/9978.e4c02542.js.map deleted file mode 100644 index 40a9ae96a..000000000 --- a/platypush/backend/http/webapp/dist/static/js/9978.e4c02542.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/9978.e4c02542.js","mappings":"gKAGA,GACEA,KAAM,QACNC,OAAQ,CAACC,EAAA,GAETC,SAAU,CACRC,kBACE,OAAO,IAAIC,IAAI,CACb,MAAO,KAAM,MAAO,MAAO,MAAO,OAAQ,MAAO,MAAO,KACxD,MAAO,MAAO,MAAO,MAAO,OAAQ,MAAO,QAAS,MACpD,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MACxD,OAAQ,OAAQ,MAAO,MAAO,MAAO,MAAO,MAAO,MACnD,MAAO,KAAM,OAAQ,QAExB,EAEDC,kBACE,OAAO,IAAID,IAAI,CACb,OAAQ,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MACzD,OAAQ,MAAO,MAAO,MAAO,OAAQ,MAAO,KAAM,MAAO,MACzD,KAAM,OAAQ,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MACxD,OAAQ,MAAO,MAAO,MAAO,OAAQ,MAAO,MAAO,MACnD,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OAElE,EAEDE,kBACE,OAAO,IAAIF,IAAI,IAAIG,KAAKF,mBAAoBE,KAAKJ,iBAClD,GAGHK,QAAS,CACPC,YAAYC,GACVA,EAAOC,WAAWD,GAClB,MAAME,EAAI,CAAC,EACXA,EAAEC,EAAI,GAAKC,SAASJ,EAAK,MACzBE,EAAEG,EAAI,GAAKD,SAASJ,EAAK,GAAS,GAAJE,EAAEC,GAChCD,EAAEI,EAAI,GAAKF,SAASJ,GAAY,KAAJE,EAAEC,EAAa,GAAJD,EAAEG,IAEzC,IAAK,MAAME,IAAQ,CAAC,IAAI,KAClBH,SAASF,EAAEK,IAAS,KACtBL,EAAEK,GAAQ,IAAML,EAAEK,IAItB,MAAMC,EAAM,GAMZ,OALIJ,SAASF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jD3F,KAAK0F,MAAM/D,MAAMkE,MAAMG,MAAS,GAAEL,IACnC,GAGHtB,UACoB,MAAdrE,KAAKwC,OACPxC,KAAKyF,OAAOzF,KAAKwC,MACpB,G,UCnEH,MAAMhB,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASuD,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/Media/Utils.vue","webpack://platypush/./src/components/Media/Utils.vue?af63","webpack://platypush/./src/components/Media/View.vue","webpack://platypush/./src/components/Media/Controls.vue","webpack://platypush/./src/components/Media/Controls.vue?3032","webpack://platypush/./src/components/Media/View.vue?78ca","webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f"],"sourcesContent":["\n","import script from \"./Utils.vue?vue&type=script&lang=js\"\nexport * from \"./Utils.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Controls.vue?vue&type=template&id=8db4988a&scoped=true\"\nimport script from \"./Controls.vue?vue&type=script&lang=js\"\nexport * from \"./Controls.vue?vue&type=script&lang=js\"\n\nimport \"./Controls.vue?vue&type=style&index=0&id=8db4988a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8db4988a\"]])\n\nexport default __exports__","import { render } from \"./View.vue?vue&type=template&id=70d7a7df&scoped=true\"\nimport script from \"./View.vue?vue&type=script&lang=js\"\nexport * from \"./View.vue?vue&type=script&lang=js\"\n\nimport \"./View.vue?vue&type=style&index=0&id=70d7a7df&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70d7a7df\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=95edc28a&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=95edc28a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-95edc28a\"]])\n\nexport default __exports__"],"names":["name","mixins","Utils","computed","audioExtensions","Set","videoExtensions","mediaExtensions","this","methods","convertTime","time","parseFloat","t","h","parseInt","m","s","attr","ret","push","join","async","resource","download","url","subtitles","Object","request","media","mediaId","media_id","__exports__","class","status","track","buttons","$emit","$event","expanded","buttons_","previous","title","stop","state","next","disabled","muted","value","volume","range","volumeRange","target","consume","random","repeat","elapsed","duration","album","href","$route","fullPath","length","artist","components","Slider","emits","props","type","default","Array","data","keys","lastSync","position","getTime","Date","mounted","self","$watch","setInterval","Math","round","Controls","pluginName","String","required","render","ref","min","max","step","onUpdate","withLabel","Number","Boolean","event","update","$refs","percent","thumb","style","left","transform","width"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/app-legacy.3e3e09b7.js b/platypush/backend/http/webapp/dist/static/js/app-legacy.602f8c67.js similarity index 96% rename from platypush/backend/http/webapp/dist/static/js/app-legacy.3e3e09b7.js rename to platypush/backend/http/webapp/dist/static/js/app-legacy.602f8c67.js index a0daf8097..5bed32f73 100644 --- a/platypush/backend/http/webapp/dist/static/js/app-legacy.3e3e09b7.js +++ b/platypush/backend/http/webapp/dist/static/js/app-legacy.602f8c67.js @@ -1,2 +1,2 @@ -(function(){var e={5250:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var s=n(9652),i=(0,s.Z)()},5736:function(e,t,n){"use strict";n(6992),n(8674),n(9601),n(7727);var s=n(9963),i=n(6252);function r(e,t,n,s,r,a){var o=(0,i.up)("Events"),c=(0,i.up)("Notifications"),l=(0,i.up)("VoiceAssistant"),u=(0,i.up)("Pushbullet"),d=(0,i.up)("Ntfy"),f=(0,i.up)("router-view");return(0,i.wg)(),(0,i.iD)(i.HY,null,[a.hasWebsocket?((0,i.wg)(),(0,i.j4)(o,{key:0,ref:"events","ws-port":r.config["backend.http"].websocket_port},null,8,["ws-port"])):(0,i.kq)("",!0),(0,i.Wm)(c,{ref:"notifications"},null,512),a.hasAssistant?((0,i.wg)(),(0,i.j4)(l,{key:1,ref:"voice-assistant"},null,512)):(0,i.kq)("",!0),a.hasPushbullet?((0,i.wg)(),(0,i.j4)(u,{key:2,ref:"pushbullet"},null,512)):(0,i.kq)("",!0),a.hasNtfy?((0,i.wg)(),(0,i.j4)(d,{key:3,ref:"ntfy"},null,512)):(0,i.kq)("",!0),(0,i.Wm)(f)],64)}var a=n(8534),o=(n(5666),n(9254),{class:"notifications"});function c(e,t,n,s,r,a){var c=(0,i.up)("Notification");return(0,i.wg)(),(0,i.iD)("div",o,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.notifications,(function(e,t,n){return(0,i.wg)(),(0,i.j4)(c,{key:n,id:t,text:e.text,html:e.html,title:e.title,link:e.link,image:e.image,warning:e.warning,error:e.error,onClicked:a.destroy},null,8,["id","text","html","title","link","image","warning","error","onClicked"])})),128))])}n(9653);var l=n(3577),u=["textContent"],d={class:"body"},f={key:0,class:"image col-3"},p={class:"row"},h=["src"],m={key:3,class:"fa fa-exclamation"},g={key:4,class:"fa fa-times"},v=["textContent"],w=["innerHTML"],b=["textContent"],y=["innerHTML"];function k(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div",{class:(0,l.C_)(["notification fade-in",{warning:n.warning,error:n.error}]),onClick:t[0]||(t[0]=function(){return a.clicked&&a.clicked.apply(a,arguments)})},[n.title?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"title",textContent:(0,l.zw)(n.title)},null,8,u)):(0,i.kq)("",!0),(0,i._)("div",d,[n.image||n.warning||n.error?((0,i.wg)(),(0,i.iD)("div",f,[(0,i._)("div",p,[n.image&&n.image.src?((0,i.wg)(),(0,i.iD)("img",{key:0,src:n.image.src,alt:""},null,8,h)):n.image&&n.image.icon?((0,i.wg)(),(0,i.iD)("i",{key:1,class:(0,l.C_)(["fa","fa-"+n.image.icon]),style:(0,l.j5)(n.image.color?"--color: "+n.image.color:"")},null,6)):n.image&&n.image.iconClass?((0,i.wg)(),(0,i.iD)("i",{key:2,class:(0,l.C_)(n.image.iconClass),style:(0,l.j5)(n.image.color?"--color: "+n.image.color:"")},null,6)):n.warning?((0,i.wg)(),(0,i.iD)("i",m)):n.error?((0,i.wg)(),(0,i.iD)("i",g)):(0,i.kq)("",!0)])])):(0,i.kq)("",!0),n.text&&n.image?((0,i.wg)(),(0,i.iD)("div",{key:1,class:"text col-9",textContent:(0,l.zw)(n.text)},null,8,v)):(0,i.kq)("",!0),n.html&&n.image?((0,i.wg)(),(0,i.iD)("div",{key:2,class:"text col-9",innerHTML:n.html},null,8,w)):(0,i.kq)("",!0),n.text&&!n.image?((0,i.wg)(),(0,i.iD)("div",{key:3,class:"text row horizontal-center",textContent:(0,l.zw)(n.text)},null,8,b)):(0,i.kq)("",!0),n.html&&!n.image?((0,i.wg)(),(0,i.iD)("div",{key:4,class:"text row horizontal-center",innerHTML:n.html},null,8,y)):(0,i.kq)("",!0)])],2)}var x={name:"Notification",props:["id","text","html","title","image","link","error","warning"],methods:{clicked:function(){this.link&&window.open(this.link,"_blank"),this.$emit("clicked",this.id)}}},_=n(3744);const C=(0,_.Z)(x,[["render",k],["__scopeId","data-v-7646705e"]]);var D=C,I={name:"Notifications",components:{Notification:D},props:{duration:{type:Number,default:1e4}},data:function(){return{index:0,notifications:{},timeouts:{}}},methods:{create:function(e){var t=this.index++;this.notifications[t]=e,null==e.duration&&(e.duration=this.duration);var n=e.duration?parseInt(e.duration):0;n&&(this.timeouts[t]=setTimeout(this.destroy.bind(null,t),n))},destroy:function(e){delete this.notifications[e],delete this.timeouts[e]}}};const S=(0,_.Z)(I,[["render",c],["__scopeId","data-v-6dc8bebc"]]);var T=S,Z=n(6813);function U(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div")}var R=n(6347),P=n(9584),M=(n(2479),n(2222),n(7941),n(5250)),N={name:"Events",props:{wsPort:{type:Number,default:8009}},data:function(){return{ws:null,initialized:!1,pending:!1,opened:!1,timeout:null,reconnectMsecs:3e4,handlers:{},handlerNameToEventTypes:{}}},methods:{onWebsocketTimeout:function(){console.log("Websocket reconnection timed out, retrying"),this.pending=!1,this.ws&&this.ws.close(),this.onClose()},onMessage:function(e){var t=[];if(e=e.data,"string"===typeof e)try{e=JSON.parse(e)}catch(r){console.warn("Received invalid non-JSON event"),console.warn(e)}if(console.debug(e),"event"===e.type){null in this.handlers&&t.push(this.handlers[null]),e.args.type in this.handlers&&t.push.apply(t,(0,P.Z)(Object.values(this.handlers[e.args.type])));for(var n=0,s=t;nPlatypush
',3),Oe={key:0,class:"row"},je=Pe((function(){return(0,i._)("label",null,[(0,i._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password"})],-1)})),$e=[je],Ee={class:"row buttons"},ze=["value"],We=Pe((function(){return(0,i._)("div",{class:"row pull-right"},[(0,i._)("label",{class:"checkbox"},[(0,i._)("input",{type:"checkbox",name:"remember"}),(0,i.Uk)("  Keep me logged in on this device   ")])],-1)}));function Le(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div",Me,[(0,i._)("form",Ne,[qe,a._register?((0,i.wg)(),(0,i.iD)("div",Oe,$e)):(0,i.kq)("",!0),(0,i._)("div",Ee,[(0,i._)("input",{type:"submit",class:"btn btn-primary",value:a._register?"Register":"Login"},null,8,ze)]),We])])}var Ae={name:"Login",mixins:[Z.Z],props:{register:{type:Boolean,required:!1,default:!1}},computed:{_register:function(){return this.parseBoolean(this.register)}}};const Ve=(0,_.Z)(Ae,[["render",Le],["__scopeId","data-v-16cef6aa"]]);var He=Ve;function Fe(e,t,n,s,r,a){var o=(0,i.up)("Login");return(0,i.wg)(),(0,i.j4)(o,{register:!0})}var Be={name:"Register",mixins:[He],components:{Login:He},props:{register:{type:Boolean,required:!1,default:!0}}};const Ye=(0,_.Z)(Be,[["render",Fe]]);var Ke=Ye,Ge={key:2,class:"canvas"},Je={class:"panel"},Xe={key:3,class:"canvas"};function Qe(e,t,n,s,r,a){var o=(0,i.up)("Loading"),c=(0,i.up)("Nav"),u=(0,i.up)("Settings");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.j4)(c,{key:1,panels:r.components,"selected-panel":r.selectedPanel,hostname:r.hostname,onSelect:t[0]||(t[0]=function(e){return r.selectedPanel=e})},null,8,["panels","selected-panel","hostname"])),"settings"===r.selectedPanel?((0,i.wg)(),(0,i.iD)("div",Ge,[(0,i._)("div",Je,[(0,i.Wm)(u)])])):((0,i.wg)(),(0,i.iD)("div",Xe,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.components,(function(e,t){return(0,i.wg)(),(0,i.iD)("div",{class:(0,l.C_)(["panel",{hidden:t!==r.selectedPanel}]),key:t},[t===r.selectedPanel?((0,i.wg)(),(0,i.j4)((0,i.LL)(e.component),{key:0,config:e.config,"plugin-name":t},null,8,["config","plugin-name"])):(0,i.kq)("",!0)],2)})),128))]))])}var et=n(6084),tt=(n(4723),n(4747),n(9720),n(9600),n(7042),function(e){return(0,i.dD)("data-v-69a507f4"),e=e(),(0,i.Cn)(),e}),nt=tt((function(){return(0,i._)("i",{class:"fas fa-bars"},null,-1)})),st=["textContent"],it={class:"plugins"},rt=["title","onClick"],at=["href"],ot={class:"icon"},ct=["src"],lt={key:2,class:"fas fa-puzzle-piece"},ut=["textContent"],dt={class:"footer"},ft={href:"/#settings"},pt=tt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fa fa-cog"})],-1)})),ht={key:0,class:"name"},mt={href:"/logout"},gt=tt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fas fa-sign-out-alt"})],-1)})),vt={key:0,class:"name"};function wt(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("nav",{class:(0,l.C_)({collapsed:r.collapsed})},[(0,i._)("div",{class:"toggler",onClick:t[0]||(t[0]=function(e){return r.collapsed=!r.collapsed})},[nt,n.hostname?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"hostname",textContent:(0,l.zw)(n.hostname)},null,8,st)):(0,i.kq)("",!0)]),(0,i._)("ul",it,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(a.panelNames,(function(e){var t,s;return(0,i.wg)(),(0,i.iD)("li",{key:e,class:(0,l.C_)(["entry",{selected:e===n.selectedPanel}]),title:e,onClick:function(t){return a.onItemClick(e)}},[(0,i._)("a",{href:"/#".concat(e)},[(0,i._)("span",ot,[null!==(t=r.icons[e])&&void 0!==t&&t.class?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,l.C_)(r.icons[e].class)},null,2)):null!==(s=r.icons[e])&&void 0!==s&&s.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:r.icons[e].imgUrl,alt:"name"},null,8,ct)):((0,i.wg)(),(0,i.iD)("i",lt))]),r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",{key:0,class:"name",textContent:(0,l.zw)("entities"==e?"Home":e)},null,8,ut))],8,at)],10,rt)})),128))]),(0,i._)("ul",dt,[(0,i._)("li",{class:(0,l.C_)({selected:"settings"===n.selectedPanel}),title:"Settings",onClick:t[1]||(t[1]=function(e){return a.onItemClick("settings")})},[(0,i._)("a",ft,[pt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",ht,"Settings"))])],2),(0,i._)("li",{title:"Logout",onClick:t[2]||(t[2]=function(e){return a.onItemClick("logout")})},[(0,i._)("a",mt,[gt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",vt,"Logout"))])])])],2)}n(2707);var bt=n(1359),yt={name:"Nav",emits:["select"],mixins:[Z.Z],props:{panels:{type:Object,required:!0},selectedPanel:{type:String},hostname:{type:String}},computed:{panelNames:function(){var e=Object.keys(this.panels),t=e.indexOf("entities");return t>=0?["entities"].concat(e.slice(0,t).concat(e.slice(t+1)).sort()):e.sort()}},methods:{onItemClick:function(e){this.$emit("select",e),this.collapsed=!0}},data:function(){return{collapsed:!0,icons:bt,host:null}}};const kt=(0,_.Z)(yt,[["render",wt],["__scopeId","data-v-69a507f4"]]);var xt=kt,_t=n(5392),Ct={name:"Panel",mixins:[Z.Z],components:{Settings:_t["default"],Nav:xt,Loading:ge.Z},data:function(){return{loading:!1,plugins:{},backends:{},procedures:{},components:{},hostname:void 0,selectedPanel:void 0}},methods:{initSelectedPanel:function(){var e=this.$route.hash.match("#?([a-zA-Z0-9.]+)[?]?(.*)"),t=e?e[1]:"entities";null!==t&&void 0!==t&&t.length&&(this.selectedPanel=t)},initPanels:function(){var e=this;this.components={},Object.entries(this.plugins).forEach(function(){var t=(0,a.Z)(regeneratorRuntime.mark((function t(s){var r,o,c,l,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=(0,et.Z)(s,2),o=r[0],c=r[1],l=o.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),u=null,t.prev=3,t.next=6,n(3379)("./".concat(l,"/Index"));case 6:u=t.sent,t.next=12;break;case 9:return t.prev=9,t.t0=t["catch"](3),t.abrupt("return");case 12:d=(0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",u);case 1:case"end":return e.stop()}}),e)})))),e.$options.components[o]=d,e.components[o]={component:d,pluginName:o,config:c};case 15:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e){return t.apply(this,arguments)}}())},parseConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.request("config.get_plugins"),e.request("config.get_backends"),e.request("config.get_procedures"),e.request("config.get_device_id")]);case 2:n=t.sent,s=(0,et.Z)(n,4),e.plugins=s[0],e.backends=s[1],e.procedures=s[2],e.hostname=s[3],e.initializeDefaultViews();case 9:case"end":return t.stop()}}),t)})))()},initializeDefaultViews:function(){this.plugins.execute={},this.plugins.entities={}}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.parseConfig();case 4:e.initPanels(),e.initSelectedPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const Dt=(0,_.Z)(Ct,[["render",Qe],["__scopeId","data-v-344b6d1a"]]);var It=Dt,St={key:1,class:"canvas"};function Tt(e,t,n,s,r,a){var o=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.iD)("div",St,[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.component),{config:r.config,"plugin-name":a.pluginName},null,8,["config","plugin-name"]))]))])}n(9714);var Zt={name:"Panel",mixins:[Z.Z],components:{Settings:_t["default"],Nav:xt,Loading:ge.Z},data:function(){return{loading:!1,config:{},plugins:{},backends:{},procedures:{},component:void 0,hostname:void 0,selectedPanel:void 0}},computed:{pluginName:function(){return this.$route.params.plugin}},methods:{initPanel:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.pluginName.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),r=null,t.prev=2,t.next=5,n(3379)("./".concat(s,"/Index"));case 5:r=t.sent,t.next=13;break;case 8:return t.prev=8,t.t0=t["catch"](2),console.error(t.t0),e.notify({error:!0,title:"Cannot load plugin ".concat(e.pluginName),text:t.t0.toString()}),t.abrupt("return");case 13:e.component=(0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}}),e)})))),e.$options.components[name]=e.component;case 15:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.request("config.get");case 2:return n=t.sent,e.config=n[e.pluginName]||{},t.next=6,e.request("config.get_device_id");case 6:e.hostname=t.sent;case 7:case"end":return t.stop()}}),t)})))()}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.initConfig();case 4:return t.next=6,e.initPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const Ut=(0,_.Z)(Zt,[["render",Tt],["__scopeId","data-v-67571c94"]]);var Rt=Ut,Pt=[{path:"/",name:"Panel",component:It},{path:"/dashboard/:name",name:"Dashboard",component:Se},{path:"/plugin/:plugin",name:"Plugin",component:Rt},{path:"/login",name:"Login",component:He},{path:"/register",name:"Register",component:Ke},{path:"/:catchAll(.*)",component:Re}],Mt=(0,pe.p7)({history:(0,pe.PO)(),routes:Pt}),Nt=Mt,qt=(0,s.ri)(fe);qt.config.globalProperties._config=window.config,qt.use(Nt).mount("#app")},6813:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});n(1539);var s=n(9669),i=n.n(s),r={name:"Api",methods:{execute:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r={};return"target"in e&&e["target"]||(e["target"]="localhost"),"type"in e&&e["type"]||(e["type"]="request"),n&&(r.timeout=n),new Promise((function(n,a){i().post("/execute",e,r).then((function(e){var s;if(e=e.data.response,null!==(s=e.errors)&&void 0!==s&&s.length){var i,r=(null===(i=e.errors)||void 0===i?void 0:i[0])||e;t.notify({text:r,error:!0}),a(r)}else n(e.output)})).catch((function(e){s&&t.notify({text:e,error:!0}),a(e)}))}))},request:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.execute({type:"request",action:e,args:t},n,s)}}};const a=r;var o=a,c=n(6084),l=(n(4916),n(3123),{name:"Cookies",methods:{getCookies:function(){return document.cookie.split(/;\s*/).reduce((function(e,t){var n=t.split("="),s=(0,c.Z)(n,2),i=s[0],r=s[1];return e[i]=r,e}),{})}}});const u=l;var d=u,f=(n(2222),{name:"DateTime",methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toDateString().substring(0,t?15:10)},formatTime:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toTimeString().substring(0,t?8:5)},formatDateTime:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"string"===typeof e&&(e=new Date(Date.parse(e))),"".concat(this.formatDate(e,t),", ").concat(this.formatTime(e,n))}}});const p=f;var h=p,m=n(9584),g=(n(7714),n(2801),n(1174),n(1249),n(3948),n(5250)),v={name:"Events",computed:{_eventsReady:function(){var e;return null===(e=this.$root.$refs.events)||void 0===e?void 0:e.initialized}},methods:{subscribe:function(e,t){for(var n=this,s=arguments.length,i=new Array(s>2?s-2:0),r=2;r1024&&(i===n.length-1?t=s:e/=1024)})),"".concat(e.toFixed(2)," ").concat(t)}}});const U=Z;var R=U,P={name:"Utils",mixins:[o,d,x,b,h,D,T,R]};const M=P;var N=M},1232:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var s=n(6252),i={class:"loading"},r={class:"icon"};function a(e,t){return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[((0,s.wg)(),(0,s.iD)(s.HY,null,(0,s.Ko)(4,(function(e){return(0,s._)("div",{key:e})})),64))])])}var o=n(3744);const c={},l=(0,o.Z)(c,[["render",a],["__scopeId","data-v-4d9c871b"]]);var u=l},8453:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(6252),i=n(3577),r=["id"],a=["textContent"],o={class:"body"};function c(e,t,n,c,l,u){return(0,s.wg)(),(0,s.iD)("div",{class:(0,i.C_)(["modal-container fade-in",{hidden:!l.isVisible}]),id:n.id,style:(0,i.j5)({"--z-index":u.zIndex}),onClick:t[2]||(t[2]=function(){return u.close&&u.close.apply(u,arguments)})},[(0,s._)("div",{class:(0,i.C_)(["modal",e.$attrs.class])},[(0,s._)("div",{class:"content",style:(0,i.j5)({"--width":n.width,"--height":n.height}),onClick:t[1]||(t[1]=function(e){return e.stopPropagation()})},[n.title?((0,s.wg)(),(0,s.iD)("div",{key:0,class:"header",textContent:(0,i.zw)(n.title)},null,8,a)):(0,s.kq)("",!0),(0,s._)("div",o,[(0,s.WI)(e.$slots,"default",{onModalClose:t[0]||(t[0]=function(){return u.close&&u.close.apply(u,arguments)})},void 0,!0)])],4)],2)],14,r)}var l=n(6347),u=(n(9653),{name:"Modal",emits:["close","open"],props:{id:{type:String},title:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},visible:{type:Boolean,default:!1},timeout:{type:[Number,String]},level:{type:Number,default:1}},data:function(){return{timeoutId:void 0,prevVisible:this.visible,isVisible:this.visible}},computed:{zIndex:function(){return 500+this.level}},methods:{close:function(){this.prevVisible=this.isVisible,this.isVisible=!1},hide:function(){this.close()},show:function(){this.prevVisible=this.isVisible,this.isVisible=!0},toggle:function(){this.isVisible?this.close():this.show()}},mounted:function(){var e=this,t=this,n=function(e){e?t.$emit("open"):t.$emit("close"),t.isVisible=e};this.$watch((function(){return e.visible}),n),this.$watch((function(){return e.isVisible}),n)},updated:function(){if(this.prevVisible=this.isVisible,this.isVisible){var e,t=parseInt(getComputedStyle(this.$el).zIndex),n=[],s=(0,l.Z)(document.querySelectorAll(".modal-container:not(.hidden)"));try{for(s.s();!(e=s.n()).done;){var i=e.value,r=parseInt(getComputedStyle(i).zIndex);r>t?(t=r,n=[i]):r===t&&n.push(i)}}catch(o){s.e(o)}finally{s.f()}(n.indexOf(this.$el)<0||n.length>1)&&(this.$el.style.zIndex=t+1)}if(this.isVisible&&this.timeout&&!this.timeoutId){var a=function(e){return function(){e.close(),e.timeoutId=void 0}};this.timeoutId=setTimeout(a(this),0+this.timeout)}}}),d=n(3744);const f=(0,d.Z)(u,[["render",c],["__scopeId","data-v-7d1f6e8b"]]);var p=f},5771:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var s=n(6252),i=n(9963),r=n(3577),a={class:"dropdown-container",ref:"container"},o=["title"],c=["textContent"],l=["id"];function u(e,t,n,u,d,f){return(0,s.wg)(),(0,s.iD)("div",a,[(0,s._)("button",{title:n.title,ref:"button",onClick:t[0]||(t[0]=(0,i.iM)((function(e){return f.toggle(e)}),["stop"]))},[n.iconClass?((0,s.wg)(),(0,s.iD)("i",{key:0,class:(0,r.C_)(["icon",n.iconClass])},null,2)):(0,s.kq)("",!0),n.text?((0,s.wg)(),(0,s.iD)("span",{key:1,class:"text",textContent:(0,r.zw)(n.text)},null,8,c)):(0,s.kq)("",!0)],8,o),(0,s._)("div",{class:(0,r.C_)(["dropdown fade-in",{hidden:!d.visible}]),id:n.id,ref:"dropdown"},[(0,s.WI)(e.$slots,"default",{},void 0,!0)],10,l)],512)}var d={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:function(){return[]}},iconClass:{type:String,default:"fa fa-ellipsis-h"},text:{type:String},title:{type:String},keepOpenOnItemClick:{type:Boolean,default:!1}},data:function(){return{visible:!1}},methods:{documentClickHndl:function(e){if(this.visible){var t=e.target;while(t){if(!this.$refs.dropdown)break;if(t===this.$refs.dropdown.element)return;t=t.parentElement}this.close()}},close:function(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open:function(){var e=this;document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((function(){var t=e.$refs.dropdown;t.style.left=0,t.style.top=parseFloat(getComputedStyle(e.$refs.button).height)+"px",t.getBoundingClientRect().left>window.innerWidth/2&&(t.style.left=-t.clientWidth+parseFloat(getComputedStyle(e.$refs.button).width)+"px"),t.getBoundingClientRect().top>window.innerHeight/2&&(t.style.top=-t.clientHeight+parseFloat(getComputedStyle(e.$refs.button).height)+"px")}),10)},toggle:function(e){e.stopPropagation(),this.$emit("click"),this.visible?this.close():this.open()}}},f=n(3744);const p=(0,f.Z)(d,[["render",u],["__scopeId","data-v-21bf0316"]]);var h=p},9015:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var s=n(6252),i=n(3577),r={key:0,class:"col-1 icon"},a=["textContent"];function o(e,t,n,o,c,l){var u,d,f=(0,s.up)("Icon");return(0,s.wg)(),(0,s.iD)("div",{class:(0,i.C_)(["row item",n.itemClass]),onClick:t[0]||(t[0]=function(){return l.clicked&&l.clicked.apply(l,arguments)})},[null!==(u=n.iconClass)&&void 0!==u&&u.length||null!==(d=n.iconUrl)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("div",r,[(0,s.Wm)(f,{class:(0,i.C_)(n.iconClass),url:n.iconUrl},null,8,["class","url"])])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,i.C_)(["text",{"col-11":null!=n.iconClass}]),textContent:(0,i.zw)(n.text)},null,10,a)],2)}var c=n(1478),l={name:"DropdownItem",components:{Icon:c.Z},props:{iconClass:{type:String},iconUrl:{type:String},text:{type:String},disabled:{type:Boolean,default:!1},itemClass:{type:String}},methods:{clicked:function(e){if(this.disabled)return!1;this.$parent.$emit("click",e),this.$parent.keepOpenOnItemClick||(this.$parent.visible=!1)}}},u=n(3744);const d=(0,u.Z)(l,[["render",o],["__scopeId","data-v-0a3cac88"]]);var f=d},1478:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(6252),i=n(3577),r={class:"icon-container"},a=["src","alt"];function o(e,t,n,o,c,l){var u,d;return(0,s.wg)(),(0,s.iD)("div",r,[null!==(u=n.url)&&void 0!==u&&u.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:n.url,alt:n.alt},null,8,a)):null!==(d=l.className)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,i.C_)(["icon",l.className]),style:(0,i.j5)({color:n.color})},null,6)):(0,s.kq)("",!0)])}var c={props:{class:{type:String},url:{type:String},color:{type:String,default:""},alt:{type:String,default:""}},computed:{className:function(){return this.class}}},l=n(3744);const u=(0,l.Z)(c,[["render",o],["__scopeId","data-v-706a3bd1"]]);var d=u},5392:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ie}});var s=n(6252),i={class:"settings-container"},r={class:"col-8"},a=["selected"],o=["selected"],c={class:"col-4 pull-right"},l=(0,s._)("i",{class:"fa fa-plus"},null,-1),u=[l];function d(e,t,n,l,d,f){var p=(0,s.up)("Users"),h=(0,s.up)("Token");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("header",null,[(0,s._)("div",r,[(0,s._)("select",{title:"View",onChange:t[0]||(t[0]=function(e){return d.selectedView=e.target.value})},[(0,s._)("option",{value:"users",selected:"users"===d.selectedView},"Users",8,a),(0,s._)("option",{value:"token",selected:"token"===d.selectedView},"Generate Token",8,o)],32)]),(0,s._)("div",c,["users"===d.selectedView?((0,s.wg)(),(0,s.iD)("button",{key:0,title:"Add User",onClick:t[1]||(t[1]=function(t){return e.$refs.usersView.$refs.addUserModal.show()})},u)):(0,s.kq)("",!0)])]),(0,s._)("main",null,["users"===d.selectedView?((0,s.wg)(),(0,s.j4)(p,{key:0,"session-token":d.sessionToken,"current-user":d.currentUser,ref:"usersView"},null,8,["session-token","current-user"])):"token"===d.selectedView?((0,s.wg)(),(0,s.j4)(h,{key:1,"session-token":d.sessionToken,"current-user":d.currentUser,ref:"tokenView"},null,8,["session-token","current-user"])):(0,s.kq)("",!0)])])}var f=n(8534),p=(n(5666),n(3577)),h=n(9963),m={class:"token-container"},g={class:"token-container"},v=(0,s.Uk)(" This is your generated token. Treat it carefully and do not share it with untrusted parties."),w=(0,s._)("br",null,null,-1),b=(0,s.Uk)(" Also, make sure to save it - it WILL NOT be displayed again. "),y=["textContent"],k={class:"body"},x={class:"description"},_=(0,s.Uk)("Generate a JWT authentication token that can be used for API calls to the "),C=(0,s.Uk)("/execute"),D=(0,s.Uk)(" endpoint."),I=(0,s._)("br",null,null,-1),S=(0,s._)("p",null,"You can include the token in your requests in any of the following ways:",-1),T=(0,s.Uk)("Specify it on the "),Z=(0,s.Uk)("Authorization: Bearer"),U=(0,s.Uk)(" header;"),R=(0,s.Uk)("Specify it on the "),P=(0,s.Uk)("X-Token"),M=(0,s.Uk)(" header;"),N=(0,s.Uk)("Specify it as a URL parameter: "),q=(0,s.Uk)("http://site:8008/execute?token=..."),O=(0,s.Uk)(";"),j=(0,s.Uk)("Specify it on the body of your JSON request: "),$=(0,s.Uk)('{"type":"request", "action", "...", "token":"..."}'),E=(0,s.Uk)("."),z=(0,s.Uk)(" Confirm your credentials in order to generate a new token. "),W={class:"form-container"},L=(0,s.Uk)(" Username "),A=["value"],V=(0,s._)("label",null,[(0,s.Uk)(" Password "),(0,s._)("input",{type:"password",name:"password"})],-1),H=(0,s._)("label",null,[(0,s.Uk)(" Token validity in days "),(0,s._)("input",{type:"text",name:"validityDays"}),(0,s._)("span",{class:"note"},[(0,s.Uk)(" Decimal values are also supported (e.g. "),(0,s._)("i",null,"0.5"),(0,s.Uk)(" to identify 6 hours). An empty or zero value means that the token has no expiry date. ")])],-1),F=(0,s._)("input",{type:"submit",value:"Generate token"},null,-1);function B(e,t,n,i,r,a){var o=(0,s.up)("Loading"),c=(0,s.up)("Modal"),l=(0,s.up)("tt");return(0,s.wg)(),(0,s.iD)("div",m,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(c,{ref:"tokenModal"},{default:(0,s.w5)((function(){return[(0,s._)("div",g,[(0,s._)("label",null,[v,w,b,(0,s._)("textarea",{class:"token",textContent:(0,p.zw)(r.token),onFocus:t[0]||(t[0]=function(){return a.onTokenSelect&&a.onTokenSelect.apply(a,arguments)})},null,40,y)])])]})),_:1},512),(0,s._)("div",k,[(0,s._)("div",x,[(0,s._)("p",null,[_,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[C]})),_:1}),D]),I,S,(0,s._)("ul",null,[(0,s._)("li",null,[T,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[Z]})),_:1}),U]),(0,s._)("li",null,[R,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[P]})),_:1}),M]),(0,s._)("li",null,[N,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[q]})),_:1}),O]),(0,s._)("li",null,[j,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[$]})),_:1}),E])]),z]),(0,s._)("div",W,[(0,s._)("form",{onSubmit:t[1]||(t[1]=(0,h.iM)((function(){return a.generateToken&&a.generateToken.apply(a,arguments)}),["prevent"])),ref:"generateTokenForm"},[(0,s._)("label",null,[L,(0,s._)("input",{type:"text",name:"username",value:n.currentUser.username,disabled:""},null,8,A)]),V,H,F],544)])])])}n(1539),n(9714);var Y=n(9669),K=n.n(Y),G=n(1232),J=n(6813),X=n(8453),Q={name:"Token",components:{Modal:X.Z,Loading:G.Z},mixins:[J.Z],props:{currentUser:{type:Object,required:!0}},data:function(){return{loading:!1,token:null}},methods:{generateToken:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){var s,i,r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.currentUser.username,r=e.target.password.value,a=null!==(s=e.target.validityDays)&&void 0!==s&&s.length?parseInt(e.target.validityDays.value):0,a||(a=null),t.loading=!0,n.prev=5,n.next=8,K().post("/auth",{username:i,password:r,expiry_days:a});case 8:t.token=n.sent.data.token,null!==(o=t.token)&&void 0!==o&&o.length&&t.$refs.tokenModal.show(),n.next=16;break;case 12:n.prev=12,n.t0=n["catch"](5),console.error(n.t0.toString()),t.notify({text:n.t0.toString(),error:!0});case 16:return n.prev=16,t.loading=!1,n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[5,12,16,19]])})))()},onTokenSelect:function(e){e.target.select(),document.execCommand("copy"),this.notify({text:"Token copied to clipboard",image:{iconClass:"fa fa-check"}})}}},ee=n(3744);const te=(0,ee.Z)(Q,[["render",B]]);var ne=te,se=["disabled"],ie=["disabled"],re=["disabled"],ae=["disabled"],oe=["value"],ce=["disabled"],le=["disabled"],ue=["disabled"],de=["disabled"],fe={class:"body"},pe={class:"users-list"},he=["onClick"],me=["textContent"],ge={class:"actions pull-right col-4"};function ve(e,t,n,i,r,a){var o=(0,s.up)("Loading"),c=(0,s.up)("Modal"),l=(0,s.up)("DropdownItem"),u=(0,s.up)("Dropdown");return(0,s.wg)(),(0,s.iD)(s.HY,null,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(c,{ref:"addUserModal",title:"Add User"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"addUserForm",onSubmit:t[0]||(t[0]=function(){return a.createUser&&a.createUser.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",disabled:r.commandRunning},null,8,se)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Password",disabled:r.commandRunning},null,8,ie)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password",disabled:r.commandRunning},null,8,re)]),(0,s._)("input",{type:"submit",value:"Create User",disabled:r.commandRunning},null,8,ae)],544)]})),_:1},512),(0,s.Wm)(c,{ref:"changePasswordModal",title:"Change Password"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"changePasswordForm",onSubmit:t[1]||(t[1]=function(){return a.changePassword&&a.changePassword.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",value:r.selectedUser,disabled:"disabled"},null,8,oe)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Current password",disabled:r.commandRunning},null,8,ce)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"new_password",placeholder:"New password",disabled:r.commandRunning},null,8,le)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_new_password",placeholder:"Confirm new password",disabled:r.commandRunning},null,8,ue)]),(0,s._)("input",{type:"submit",value:"Change Password",disabled:r.commandRunning},null,8,de)],544)]})),_:1},512),(0,s._)("div",fe,[(0,s._)("ul",pe,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(r.users,(function(t){return(0,s.wg)(),(0,s.iD)("li",{key:t.user_id,class:"item user",onClick:function(e){return r.selectedUser=t.username}},[(0,s._)("div",{class:"name col-8",textContent:(0,p.zw)(t.username)},null,8,me),(0,s._)("div",ge,[(0,s.Wm)(u,{title:"User Actions","icon-class":"fa fa-cog"},{default:(0,s.w5)((function(){return[(0,s.Wm)(l,{text:"Change Password",disabled:r.commandRunning,"icon-class":"fa fa-key",onClick:function(n){r.selectedUser=t.username,e.$refs.changePasswordModal.show()}},null,8,["disabled","onClick"]),(0,s.Wm)(l,{text:"Delete User",disabled:r.commandRunning,"icon-class":"fa fa-trash",onClick:function(e){return a.deleteUser(t)}},null,8,["disabled","onClick"])]})),_:2},1024)])],8,he)})),128))])])],64)}var we=n(9584),be=(n(8309),n(5771)),ye=n(9015),ke={name:"Users",components:{DropdownItem:ye.Z,Loading:G.Z,Modal:X.Z,Dropdown:be.Z},mixins:[J.Z],props:{sessionToken:{type:String,required:!0},currentUser:{type:Object,required:!0}},data:function(){return{users:[],commandRunning:!1,loading:!1,selectedUser:null}},methods:{refresh:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("user.get_users");case 4:e.users=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},createUser:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.addUserForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.password===s.confirm_password){n.next=5;break}return t.notify({title:"Unable to create user",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,n.prev=6,n.next=9,t.request("user.create_user",{username:s.username,password:s.password,session_token:t.sessionToken});case 9:return n.prev=9,t.commandRunning=!1,n.finish(9);case 12:return t.notify({text:"User "+s.username+" created",image:{iconClass:"fas fa-check"}}),t.$refs.addUserModal.close(),n.next=16,t.refresh();case 16:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},changePassword:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){var s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.changePasswordForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.new_password===s.confirm_new_password){n.next=5;break}return t.notify({title:"Unable to update password",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,i=!1,n.prev=7,n.next=10,t.request("user.update_password",{username:s.username,old_password:s.password,new_password:s.new_password});case 10:i=n.sent;case 11:return n.prev=11,t.commandRunning=!1,n.finish(11);case 14:i?(t.$refs.changePasswordModal.close(),t.notify({text:"Password successfully updated",image:{iconClass:"fas fa-check"}})):t.notify({title:"Unable to update password",text:"The current password is incorrect",error:!0,image:{iconClass:"fas fa-times"}});case 15:case"end":return n.stop()}}),n,null,[[7,,11,14]])})))()},deleteUser:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(confirm("Are you sure that you want to remove the user "+e.username+"?")){n.next=2;break}return n.abrupt("return");case 2:return t.commandRunning=!0,n.prev=3,n.next=6,t.request("user.delete_user",{username:e.username,session_token:t.sessionToken});case 6:return n.prev=6,t.commandRunning=!1,n.finish(6);case 9:return t.notify({text:"User "+e.username+" removed",image:{iconClass:"fas fa-check"}}),n.next=12,t.refresh();case 12:case"end":return n.stop()}}),n,null,[[3,,6,9]])})))()}},mounted:function(){this.refresh()}};const xe=(0,ee.Z)(ke,[["render",ve]]);var _e=xe,Ce={name:"Settings",components:{Users:_e,Token:ne},mixins:[J.Z],data:function(){return{selectedView:"users",currentUser:null,sessionToken:null}},methods:{refresh:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.sessionToken=e.getCookies()["session_token"],t.next=3,e.request("user.get_user_by_session",{session_token:e.sessionToken});case 3:e.currentUser=t.sent;case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.refresh()}};const De=(0,ee.Z)(Ce,[["render",d]]);var Ie=De},3379:function(e,t,n){var s={"./Camera/Index":[5528,5528],"./CameraAndroidIpcam/Index":[6739,6739],"./CameraCv/Index":[8184,5528,8184],"./CameraFfmpeg/Index":[5111,5528,5111],"./CameraGstreamer/Index":[699,5528,699],"./CameraIrMlx90640/Index":[9895,5528,9895],"./CameraPi/Index":[4548,5528,4548],"./Entities/Index":[914,9892],"./Execute/Index":[7643,7643],"./Light/Index":[1406,3490,3803,1406],"./LightHue/Index":[3674,3490,3803,1406,3674],"./Media/Index":[4196,3803,8337,7029,779,4196],"./MediaMplayer/Index":[6509,3803,8337,7029,779,4196,6509],"./MediaMpv/Index":[5895,3803,8337,7029,779,4196,5895],"./MediaOmxplayer/Index":[9633,3803,8337,7029,779,4196,9633],"./MediaVlc/Index":[767,3803,8337,7029,779,4196,767],"./Music/Index":[5781,3803,8337,7029,6833],"./MusicMpd/Index":[2957,3803,8337,7029,6833,2957],"./MusicSnapcast/Index":[2790,3490,3803,2790],"./MusicSpotify/Index":[7196,3803,8337,7029,6833,7196],"./Rtorrent/Index":[2820,8337,779,6162,2820],"./Settings/Index":[5392],"./Sound/Index":[5193,5193],"./Switches/Index":[4276,4276],"./Switches/LightHue/Index":[2844,3490,6590,2844],"./Switches/Smartthings/Index":[9196,3490,6590,9196],"./Switches/SwitchTplink/Index":[3785,3490,6590,3785],"./Switches/SwitchWemo/Index":[5210,3490,6590,5210],"./Switches/Switchbot/Index":[9694,3490,6590,9694],"./Switches/SwitchbotBluetooth/Index":[9694,3490,6590,9694],"./Switches/ZigbeeMqtt/Index":[5466,3490,6590,5466],"./Switches/Zwave/Index":[7262,3490,6590,7262],"./Switches/ZwaveMqtt/Index":[2380,3490,6590,2380],"./Torrent/Index":[9299,8337,779,6162,9299],"./Tts/Index":[2466,4021,2466],"./TtsGoogle/Index":[1938,4021,1938],"./TvSamsungWs/Index":[615,615],"./ZigbeeMqtt/Index":[4604,3490,3803,4604],"./Zwave/Index":[8586,3490,3803,4658,6027],"./ZwaveMqtt/Index":[2362,3490,3803,4658,2362]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=3379,e.exports=i},6725:function(e,t,n){var s={"./Calendar/Index":[345,345],"./Camera/Index":[2346,2346],"./Component/Index":[5824,3490,3803,5824],"./DateTime/Index":[1595,9575,1595],"./DateTimeWeather/Index":[5779,1798,9575,5779],"./ImageCarousel/Index":[6003,1798,9575,6003],"./Music/Index":[6013,6013],"./Plugin/Index":[4826,4826],"./RssNews/Index":[7420,7420],"./Weather/Index":[1798,1798]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=6725,e.exports=i},1359:function(e){"use strict";e.exports=JSON.parse('{"camera.android.ipcam":{"class":"fab fa-android"},"camera.cv":{"class":"fas fa-camera"},"camera.ffmpeg":{"class":"fas fa-camera"},"camera.gstreamer":{"class":"fas fa-camera"},"camera.ir.mlx90640":{"class":"fas fa-sun"},"camera.pi":{"class":"fas fa-camera"},"entities":{"class":"fa fa-home"},"execute":{"class":"fa fa-play"},"light.hue":{"class":"fas fa-lightbulb"},"media.jellyfin":{"imgUrl":"/icons/jellyfin.svg"},"media.kodi":{"imgUrl":"/icons/kodi.svg"},"media.omxplayer":{"class":"fa fa-film"},"media.mplayer":{"class":"fa fa-film"},"media.mpv":{"class":"fa fa-film"},"media.plex":{"imgUrl":"/icons/plex.svg"},"media.vlc":{"class":"fa fa-film"},"music.mpd":{"class":"fas fa-music"},"music.snapcast":{"class":"fa fa-volume-up"},"music.spotify":{"class":"fab fa-spotify"},"torrent":{"class":"fa fa-magnet"},"rtorrent":{"class":"fa fa-magnet"},"smartthings":{"imgUrl":"/icons/smartthings.png"},"switches":{"class":"fas fa-toggle-on"},"switch.switchbot":{"class":"fas fa-toggle-on"},"switch.tplink":{"class":"fas fa-toggle-on"},"switchbot":{"class":"fas fa-toggle-on"},"sound":{"class":"fa fa-microphone"},"tts":{"class":"far fa-comment"},"tts.google":{"class":"fas fa-comment"},"tv.samsung.ws":{"class":"fas fa-tv"},"zigbee.mqtt":{"imgUrl":"/icons/zigbee.svg"},"zwave":{"imgUrl":"/icons/z-wave.png"},"zwave.mqtt":{"imgUrl":"/icons/z-wave.png"}}')}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.m=e,function(){var e=[];n.O=function(t,s,i,r){if(!s){var a=1/0;for(u=0;u=r)&&Object.keys(n.O).every((function(e){return n.O[e](s[c])}))?s.splice(c--,1):(o=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[s,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(s,i){if(1&i&&(s=this(s)),8&i)return s;if("object"===typeof s&&s){if(4&i&&s.__esModule)return s;if(16&i&&"function"===typeof s.then)return s}var r=Object.create(null);n.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&s;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((function(e){a[e]=function(){return s[e]}}));return a["default"]=function(){return s},n.d(r,a),r}}(),function(){n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,s){return n.f[s](e,t),t}),[]))}}(),function(){n.u=function(e){return"static/js/"+e+"-legacy."+{65:"a4e6662a",345:"dcb6e74e",518:"e665a841",615:"fba0e1b5",699:"cb1ccfbb",767:"f33d812b",779:"b22c1cc7",1155:"179db4ca",1406:"531be9a8",1595:"69aea4ae",1798:"b42f39d9",1938:"e350f72d",2346:"4845c2ae",2362:"6b95b958",2380:"0d05fcbd",2466:"b6981a49",2790:"2afcb92a",2820:"869be689",2844:"b3683bc2",2957:"a0d5f651",3490:"d482e29b",3499:"90eae609",3674:"1f20942d",3785:"5ec00494",3803:"9202f4bf",4021:"a3380d38",4196:"b3577e2e",4276:"18787ca7",4548:"e2883bdd",4604:"2f44612f",4658:"2b32d64d",4826:"f73c82f0",4981:"c4835180",5111:"262ea3c5",5193:"d8c2e027",5207:"b6625280",5210:"e39ce8e4",5466:"ba464f70",5528:"5b7db199",5779:"8c634228",5824:"a1aaa126",5895:"e1ce8e90",6003:"f3446996",6013:"b02eb716",6027:"1e7fc2ce",6162:"bf13f6e2",6509:"ab6d64c3",6590:"a024a679",6739:"c665b953",6833:"00db1080",7029:"66663032",7196:"a47a2493",7262:"13af887b",7420:"a57de4be",7643:"5b846090",8184:"702db0b7",8337:"fcf13df8",8729:"19ca396b",9196:"1cf345e1",9299:"adb4a75b",9575:"fb8eab70",9633:"8a00fadb",9694:"a11c42e2",9892:"4cf77440",9895:"acee9428"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"static/css/"+e+"."+{65:"d6cbc229",345:"0d938275",518:"44f63b6e",615:"be187f79",779:"459f0f41",1155:"3c072b53",1406:"3c45f7ef",1798:"5047113b",2346:"f042c092",2380:"7e6cb2ed",2790:"8a938bab",2844:"fa1de455",3490:"3516cb6e",3785:"5ed5a4df",3803:"071120e4",4021:"0331be37",4196:"f1fcf8f5",4276:"07502cf2",4604:"34b220bc",4658:"0aa0c9b4",4826:"437fa334",4981:"8830c3ce",5193:"7f3c2173",5207:"831746a7",5210:"435161f9",5466:"fb0c1b5f",5528:"a4270756",5779:"b285a776",5824:"f9f7ad29",6003:"0868fde4",6013:"2141ef7f",6162:"f3d46bda",6590:"778aa4c7",6739:"649d4b27",6833:"c53bec53",7029:"13387da1",7262:"7ac2a7a5",7420:"e42d1496",7643:"e25374a8",8729:"f98d84da",9196:"18347c3c",9575:"eba29f96",9694:"509f8cb5",9892:"68b29dbb"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="platypush:";n.l=function(s,i,r,a){if(e[s])e[s].push(i);else{var o,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;uPlatypush
',3),Oe={key:0,class:"row"},je=Pe((function(){return(0,i._)("label",null,[(0,i._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password"})],-1)})),$e=[je],Ee={class:"row buttons"},ze=["value"],We=Pe((function(){return(0,i._)("div",{class:"row pull-right"},[(0,i._)("label",{class:"checkbox"},[(0,i._)("input",{type:"checkbox",name:"remember"}),(0,i.Uk)("  Keep me logged in on this device   ")])],-1)}));function Le(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div",Me,[(0,i._)("form",Ne,[qe,a._register?((0,i.wg)(),(0,i.iD)("div",Oe,$e)):(0,i.kq)("",!0),(0,i._)("div",Ee,[(0,i._)("input",{type:"submit",class:"btn btn-primary",value:a._register?"Register":"Login"},null,8,ze)]),We])])}var Ae={name:"Login",mixins:[Z.Z],props:{register:{type:Boolean,required:!1,default:!1}},computed:{_register:function(){return this.parseBoolean(this.register)}}};const Ve=(0,_.Z)(Ae,[["render",Le],["__scopeId","data-v-16cef6aa"]]);var He=Ve;function Fe(e,t,n,s,r,a){var o=(0,i.up)("Login");return(0,i.wg)(),(0,i.j4)(o,{register:!0})}var Be={name:"Register",mixins:[He],components:{Login:He},props:{register:{type:Boolean,required:!1,default:!0}}};const Ye=(0,_.Z)(Be,[["render",Fe]]);var Ke=Ye,Ge={key:2,class:"canvas"},Je={class:"panel"},Xe={key:3,class:"canvas"};function Qe(e,t,n,s,r,a){var o=(0,i.up)("Loading"),c=(0,i.up)("Nav"),u=(0,i.up)("Settings");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.j4)(c,{key:1,panels:r.components,"selected-panel":r.selectedPanel,hostname:r.hostname,onSelect:t[0]||(t[0]=function(e){return r.selectedPanel=e})},null,8,["panels","selected-panel","hostname"])),"settings"===r.selectedPanel?((0,i.wg)(),(0,i.iD)("div",Ge,[(0,i._)("div",Je,[(0,i.Wm)(u)])])):((0,i.wg)(),(0,i.iD)("div",Xe,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.components,(function(e,t){return(0,i.wg)(),(0,i.iD)("div",{class:(0,l.C_)(["panel",{hidden:t!==r.selectedPanel}]),key:t},[t===r.selectedPanel?((0,i.wg)(),(0,i.j4)((0,i.LL)(e.component),{key:0,config:e.config,"plugin-name":t},null,8,["config","plugin-name"])):(0,i.kq)("",!0)],2)})),128))]))])}var et=n(6084),tt=(n(4723),n(4747),n(9720),n(9600),n(7042),function(e){return(0,i.dD)("data-v-69a507f4"),e=e(),(0,i.Cn)(),e}),nt=tt((function(){return(0,i._)("i",{class:"fas fa-bars"},null,-1)})),st=["textContent"],it={class:"plugins"},rt=["title","onClick"],at=["href"],ot={class:"icon"},ct=["src"],lt={key:2,class:"fas fa-puzzle-piece"},ut=["textContent"],dt={class:"footer"},ft={href:"/#settings"},pt=tt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fa fa-cog"})],-1)})),ht={key:0,class:"name"},mt={href:"/logout"},gt=tt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fas fa-sign-out-alt"})],-1)})),vt={key:0,class:"name"};function wt(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("nav",{class:(0,l.C_)({collapsed:r.collapsed})},[(0,i._)("div",{class:"toggler",onClick:t[0]||(t[0]=function(e){return r.collapsed=!r.collapsed})},[nt,n.hostname?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"hostname",textContent:(0,l.zw)(n.hostname)},null,8,st)):(0,i.kq)("",!0)]),(0,i._)("ul",it,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(a.panelNames,(function(e){var t,s;return(0,i.wg)(),(0,i.iD)("li",{key:e,class:(0,l.C_)(["entry",{selected:e===n.selectedPanel}]),title:e,onClick:function(t){return a.onItemClick(e)}},[(0,i._)("a",{href:"/#".concat(e)},[(0,i._)("span",ot,[null!==(t=r.icons[e])&&void 0!==t&&t.class?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,l.C_)(r.icons[e].class)},null,2)):null!==(s=r.icons[e])&&void 0!==s&&s.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:r.icons[e].imgUrl,alt:"name"},null,8,ct)):((0,i.wg)(),(0,i.iD)("i",lt))]),r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",{key:0,class:"name",textContent:(0,l.zw)("entities"==e?"Home":e)},null,8,ut))],8,at)],10,rt)})),128))]),(0,i._)("ul",dt,[(0,i._)("li",{class:(0,l.C_)({selected:"settings"===n.selectedPanel}),title:"Settings",onClick:t[1]||(t[1]=function(e){return a.onItemClick("settings")})},[(0,i._)("a",ft,[pt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",ht,"Settings"))])],2),(0,i._)("li",{title:"Logout",onClick:t[2]||(t[2]=function(e){return a.onItemClick("logout")})},[(0,i._)("a",mt,[gt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",vt,"Logout"))])])])],2)}n(2707);var bt=n(1359),yt={name:"Nav",emits:["select"],mixins:[Z.Z],props:{panels:{type:Object,required:!0},selectedPanel:{type:String},hostname:{type:String}},computed:{panelNames:function(){var e=Object.keys(this.panels),t=e.indexOf("entities");return t>=0?["entities"].concat(e.slice(0,t).concat(e.slice(t+1)).sort()):e.sort()}},methods:{onItemClick:function(e){this.$emit("select",e),this.collapsed=!0}},data:function(){return{collapsed:!0,icons:bt,host:null}}};const kt=(0,_.Z)(yt,[["render",wt],["__scopeId","data-v-69a507f4"]]);var xt=kt,_t=n(5392),Ct={name:"Panel",mixins:[Z.Z],components:{Settings:_t["default"],Nav:xt,Loading:ge.Z},data:function(){return{loading:!1,plugins:{},backends:{},procedures:{},components:{},hostname:void 0,selectedPanel:void 0}},methods:{initSelectedPanel:function(){var e=this.$route.hash.match("#?([a-zA-Z0-9.]+)[?]?(.*)"),t=e?e[1]:"entities";null!==t&&void 0!==t&&t.length&&(this.selectedPanel=t)},initPanels:function(){var e=this;this.components={},Object.entries(this.plugins).forEach(function(){var t=(0,a.Z)(regeneratorRuntime.mark((function t(s){var r,o,c,l,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=(0,et.Z)(s,2),o=r[0],c=r[1],l=o.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),u=null,t.prev=3,t.next=6,n(3379)("./".concat(l,"/Index"));case 6:u=t.sent,t.next=12;break;case 9:return t.prev=9,t.t0=t["catch"](3),t.abrupt("return");case 12:d=(0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",u);case 1:case"end":return e.stop()}}),e)})))),e.$options.components[o]=d,e.components[o]={component:d,pluginName:o,config:c};case 15:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e){return t.apply(this,arguments)}}())},parseConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.request("config.get_plugins"),e.request("config.get_backends"),e.request("config.get_procedures"),e.request("config.get_device_id")]);case 2:n=t.sent,s=(0,et.Z)(n,4),e.plugins=s[0],e.backends=s[1],e.procedures=s[2],e.hostname=s[3],e.initializeDefaultViews();case 9:case"end":return t.stop()}}),t)})))()},initializeDefaultViews:function(){this.plugins.execute={},this.plugins.entities={}}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.parseConfig();case 4:e.initPanels(),e.initSelectedPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const Dt=(0,_.Z)(Ct,[["render",Qe],["__scopeId","data-v-344b6d1a"]]);var It=Dt,St={key:1,class:"canvas"};function Tt(e,t,n,s,r,a){var o=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.iD)("div",St,[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.component),{config:r.config,"plugin-name":a.pluginName},null,8,["config","plugin-name"]))]))])}n(9714);var Zt={name:"Panel",mixins:[Z.Z],components:{Settings:_t["default"],Nav:xt,Loading:ge.Z},data:function(){return{loading:!1,config:{},plugins:{},backends:{},procedures:{},component:void 0,hostname:void 0,selectedPanel:void 0}},computed:{pluginName:function(){return this.$route.params.plugin}},methods:{initPanel:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.pluginName.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),r=null,t.prev=2,t.next=5,n(3379)("./".concat(s,"/Index"));case 5:r=t.sent,t.next=13;break;case 8:return t.prev=8,t.t0=t["catch"](2),console.error(t.t0),e.notify({error:!0,title:"Cannot load plugin ".concat(e.pluginName),text:t.t0.toString()}),t.abrupt("return");case 13:e.component=(0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}}),e)})))),e.$options.components[name]=e.component;case 15:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.request("config.get");case 2:return n=t.sent,e.config=n[e.pluginName]||{},t.next=6,e.request("config.get_device_id");case 6:e.hostname=t.sent;case 7:case"end":return t.stop()}}),t)})))()}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.initConfig();case 4:return t.next=6,e.initPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const Ut=(0,_.Z)(Zt,[["render",Tt],["__scopeId","data-v-67571c94"]]);var Rt=Ut,Pt=[{path:"/",name:"Panel",component:It},{path:"/dashboard/:name",name:"Dashboard",component:Se},{path:"/plugin/:plugin",name:"Plugin",component:Rt},{path:"/login",name:"Login",component:He},{path:"/register",name:"Register",component:Ke},{path:"/:catchAll(.*)",component:Re}],Mt=(0,pe.p7)({history:(0,pe.PO)(),routes:Pt}),Nt=Mt,qt=(0,s.ri)(fe);qt.config.globalProperties._config=window.config,qt.use(Nt).mount("#app")},6813:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});n(1539);var s=n(9669),i=n.n(s),r={name:"Api",methods:{execute:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r={};return"target"in e&&e["target"]||(e["target"]="localhost"),"type"in e&&e["type"]||(e["type"]="request"),n&&(r.timeout=n),new Promise((function(n,a){i().post("/execute",e,r).then((function(e){var s;if(e=e.data.response,null!==(s=e.errors)&&void 0!==s&&s.length){var i,r=(null===(i=e.errors)||void 0===i?void 0:i[0])||e;t.notify({text:r,error:!0}),a(r)}else n(e.output)})).catch((function(e){s&&t.notify({text:e,error:!0}),a(e)}))}))},request:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.execute({type:"request",action:e,args:t},n,s)}}};const a=r;var o=a,c=n(6084),l=(n(4916),n(3123),{name:"Cookies",methods:{getCookies:function(){return document.cookie.split(/;\s*/).reduce((function(e,t){var n=t.split("="),s=(0,c.Z)(n,2),i=s[0],r=s[1];return e[i]=r,e}),{})}}});const u=l;var d=u,f=(n(2222),{name:"DateTime",methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toDateString().substring(0,t?15:10)},formatTime:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toTimeString().substring(0,t?8:5)},formatDateTime:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"string"===typeof e&&(e=new Date(Date.parse(e))),"".concat(this.formatDate(e,t),", ").concat(this.formatTime(e,n))}}});const p=f;var h=p,m=n(9584),g=(n(7714),n(2801),n(1174),n(1249),n(3948),n(5250)),v={name:"Events",computed:{_eventsReady:function(){var e;return null===(e=this.$root.$refs.events)||void 0===e?void 0:e.initialized}},methods:{subscribe:function(e,t){for(var n=this,s=arguments.length,i=new Array(s>2?s-2:0),r=2;r1024&&(i===n.length-1?t=s:e/=1024)})),"".concat(e.toFixed(2)," ").concat(t)}}});const U=Z;var R=U,P={name:"Utils",mixins:[o,d,x,b,h,D,T,R]};const M=P;var N=M},1232:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var s=n(6252),i={class:"loading"},r={class:"icon"};function a(e,t){return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[((0,s.wg)(),(0,s.iD)(s.HY,null,(0,s.Ko)(4,(function(e){return(0,s._)("div",{key:e})})),64))])])}var o=n(3744);const c={},l=(0,o.Z)(c,[["render",a],["__scopeId","data-v-4d9c871b"]]);var u=l},8453:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(6252),i=n(3577),r=["id"],a=["textContent"],o={class:"body"};function c(e,t,n,c,l,u){return(0,s.wg)(),(0,s.iD)("div",{class:(0,i.C_)(["modal-container fade-in",{hidden:!l.isVisible}]),id:n.id,style:(0,i.j5)({"--z-index":u.zIndex}),onClick:t[2]||(t[2]=function(){return u.close&&u.close.apply(u,arguments)})},[(0,s._)("div",{class:(0,i.C_)(["modal",e.$attrs.class])},[(0,s._)("div",{class:"content",style:(0,i.j5)({"--width":n.width,"--height":n.height}),onClick:t[1]||(t[1]=function(e){return e.stopPropagation()})},[n.title?((0,s.wg)(),(0,s.iD)("div",{key:0,class:"header",textContent:(0,i.zw)(n.title)},null,8,a)):(0,s.kq)("",!0),(0,s._)("div",o,[(0,s.WI)(e.$slots,"default",{onModalClose:t[0]||(t[0]=function(){return u.close&&u.close.apply(u,arguments)})},void 0,!0)])],4)],2)],14,r)}var l=n(6347),u=(n(9653),{name:"Modal",emits:["close","open"],props:{id:{type:String},title:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},visible:{type:Boolean,default:!1},timeout:{type:[Number,String]},level:{type:Number,default:1}},data:function(){return{timeoutId:void 0,prevVisible:this.visible,isVisible:this.visible}},computed:{zIndex:function(){return 500+this.level}},methods:{close:function(){this.prevVisible=this.isVisible,this.isVisible=!1},hide:function(){this.close()},show:function(){this.prevVisible=this.isVisible,this.isVisible=!0},toggle:function(){this.isVisible?this.close():this.show()}},mounted:function(){var e=this,t=this,n=function(e){e?t.$emit("open"):t.$emit("close"),t.isVisible=e};this.$watch((function(){return e.visible}),n),this.$watch((function(){return e.isVisible}),n)},updated:function(){if(this.prevVisible=this.isVisible,this.isVisible){var e,t=parseInt(getComputedStyle(this.$el).zIndex),n=[],s=(0,l.Z)(document.querySelectorAll(".modal-container:not(.hidden)"));try{for(s.s();!(e=s.n()).done;){var i=e.value,r=parseInt(getComputedStyle(i).zIndex);r>t?(t=r,n=[i]):r===t&&n.push(i)}}catch(o){s.e(o)}finally{s.f()}(n.indexOf(this.$el)<0||n.length>1)&&(this.$el.style.zIndex=t+1)}if(this.isVisible&&this.timeout&&!this.timeoutId){var a=function(e){return function(){e.close(),e.timeoutId=void 0}};this.timeoutId=setTimeout(a(this),0+this.timeout)}}}),d=n(3744);const f=(0,d.Z)(u,[["render",c],["__scopeId","data-v-7d1f6e8b"]]);var p=f},5771:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var s=n(6252),i=n(9963),r=n(3577),a={class:"dropdown-container",ref:"container"},o=["title"],c=["textContent"],l=["id"];function u(e,t,n,u,d,f){return(0,s.wg)(),(0,s.iD)("div",a,[(0,s._)("button",{title:n.title,ref:"button",onClick:t[0]||(t[0]=(0,i.iM)((function(e){return f.toggle(e)}),["stop"]))},[n.iconClass?((0,s.wg)(),(0,s.iD)("i",{key:0,class:(0,r.C_)(["icon",n.iconClass])},null,2)):(0,s.kq)("",!0),n.text?((0,s.wg)(),(0,s.iD)("span",{key:1,class:"text",textContent:(0,r.zw)(n.text)},null,8,c)):(0,s.kq)("",!0)],8,o),(0,s._)("div",{class:(0,r.C_)(["dropdown fade-in",{hidden:!d.visible}]),id:n.id,ref:"dropdown"},[(0,s.WI)(e.$slots,"default",{},void 0,!0)],10,l)],512)}var d={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:function(){return[]}},iconClass:{type:String,default:"fa fa-ellipsis-h"},text:{type:String},title:{type:String},keepOpenOnItemClick:{type:Boolean,default:!1}},data:function(){return{visible:!1}},methods:{documentClickHndl:function(e){if(this.visible){var t=e.target;while(t){if(!this.$refs.dropdown)break;if(t===this.$refs.dropdown.element)return;t=t.parentElement}this.close()}},close:function(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open:function(){var e=this;document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((function(){var t=e.$refs.dropdown;t.style.left=0,t.style.top=parseFloat(getComputedStyle(e.$refs.button).height)+"px",t.getBoundingClientRect().left>window.innerWidth/2&&(t.style.left=-t.clientWidth+parseFloat(getComputedStyle(e.$refs.button).width)+"px"),t.getBoundingClientRect().top>window.innerHeight/2&&(t.style.top=-t.clientHeight+parseFloat(getComputedStyle(e.$refs.button).height)+"px")}),10)},toggle:function(e){e.stopPropagation(),this.$emit("click"),this.visible?this.close():this.open()}}},f=n(3744);const p=(0,f.Z)(d,[["render",u],["__scopeId","data-v-21bf0316"]]);var h=p},9015:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var s=n(6252),i=n(3577),r={key:0,class:"col-1 icon"},a=["textContent"];function o(e,t,n,o,c,l){var u,d,f=(0,s.up)("Icon");return(0,s.wg)(),(0,s.iD)("div",{class:(0,i.C_)(["row item",n.itemClass]),onClick:t[0]||(t[0]=function(){return l.clicked&&l.clicked.apply(l,arguments)})},[null!==(u=n.iconClass)&&void 0!==u&&u.length||null!==(d=n.iconUrl)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("div",r,[(0,s.Wm)(f,{class:(0,i.C_)(n.iconClass),url:n.iconUrl},null,8,["class","url"])])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,i.C_)(["text",{"col-11":null!=n.iconClass}]),textContent:(0,i.zw)(n.text)},null,10,a)],2)}var c=n(1478),l={name:"DropdownItem",components:{Icon:c.Z},props:{iconClass:{type:String},iconUrl:{type:String},text:{type:String},disabled:{type:Boolean,default:!1},itemClass:{type:String}},methods:{clicked:function(e){if(this.disabled)return!1;this.$parent.$emit("click",e),this.$parent.keepOpenOnItemClick||(this.$parent.visible=!1)}}},u=n(3744);const d=(0,u.Z)(l,[["render",o],["__scopeId","data-v-0a3cac88"]]);var f=d},1478:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(6252),i=n(3577),r={class:"icon-container"},a=["src","alt"];function o(e,t,n,o,c,l){var u,d;return(0,s.wg)(),(0,s.iD)("div",r,[null!==(u=n.url)&&void 0!==u&&u.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:n.url,alt:n.alt},null,8,a)):null!==(d=l.className)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,i.C_)(["icon",l.className]),style:(0,i.j5)({color:n.color})},null,6)):(0,s.kq)("",!0)])}var c={props:{class:{type:String},url:{type:String},color:{type:String,default:""},alt:{type:String,default:""}},computed:{className:function(){return this.class}}},l=n(3744);const u=(0,l.Z)(c,[["render",o],["__scopeId","data-v-706a3bd1"]]);var d=u},5392:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ie}});var s=n(6252),i={class:"settings-container"},r={class:"col-8"},a=["selected"],o=["selected"],c={class:"col-4 pull-right"},l=(0,s._)("i",{class:"fa fa-plus"},null,-1),u=[l];function d(e,t,n,l,d,f){var p=(0,s.up)("Users"),h=(0,s.up)("Token");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("header",null,[(0,s._)("div",r,[(0,s._)("select",{title:"View",onChange:t[0]||(t[0]=function(e){return d.selectedView=e.target.value})},[(0,s._)("option",{value:"users",selected:"users"===d.selectedView},"Users",8,a),(0,s._)("option",{value:"token",selected:"token"===d.selectedView},"Generate Token",8,o)],32)]),(0,s._)("div",c,["users"===d.selectedView?((0,s.wg)(),(0,s.iD)("button",{key:0,title:"Add User",onClick:t[1]||(t[1]=function(t){return e.$refs.usersView.$refs.addUserModal.show()})},u)):(0,s.kq)("",!0)])]),(0,s._)("main",null,["users"===d.selectedView?((0,s.wg)(),(0,s.j4)(p,{key:0,"session-token":d.sessionToken,"current-user":d.currentUser,ref:"usersView"},null,8,["session-token","current-user"])):"token"===d.selectedView?((0,s.wg)(),(0,s.j4)(h,{key:1,"session-token":d.sessionToken,"current-user":d.currentUser,ref:"tokenView"},null,8,["session-token","current-user"])):(0,s.kq)("",!0)])])}var f=n(8534),p=(n(5666),n(3577)),h=n(9963),m={class:"token-container"},g={class:"token-container"},v=(0,s.Uk)(" This is your generated token. Treat it carefully and do not share it with untrusted parties."),w=(0,s._)("br",null,null,-1),b=(0,s.Uk)(" Also, make sure to save it - it WILL NOT be displayed again. "),y=["textContent"],k={class:"body"},x={class:"description"},_=(0,s.Uk)("Generate a JWT authentication token that can be used for API calls to the "),C=(0,s.Uk)("/execute"),D=(0,s.Uk)(" endpoint."),I=(0,s._)("br",null,null,-1),S=(0,s._)("p",null,"You can include the token in your requests in any of the following ways:",-1),T=(0,s.Uk)("Specify it on the "),Z=(0,s.Uk)("Authorization: Bearer"),U=(0,s.Uk)(" header;"),R=(0,s.Uk)("Specify it on the "),P=(0,s.Uk)("X-Token"),M=(0,s.Uk)(" header;"),N=(0,s.Uk)("Specify it as a URL parameter: "),q=(0,s.Uk)("http://site:8008/execute?token=..."),O=(0,s.Uk)(";"),j=(0,s.Uk)("Specify it on the body of your JSON request: "),$=(0,s.Uk)('{"type":"request", "action", "...", "token":"..."}'),E=(0,s.Uk)("."),z=(0,s.Uk)(" Confirm your credentials in order to generate a new token. "),W={class:"form-container"},L=(0,s.Uk)(" Username "),A=["value"],V=(0,s._)("label",null,[(0,s.Uk)(" Password "),(0,s._)("input",{type:"password",name:"password"})],-1),H=(0,s._)("label",null,[(0,s.Uk)(" Token validity in days "),(0,s._)("input",{type:"text",name:"validityDays"}),(0,s._)("span",{class:"note"},[(0,s.Uk)(" Decimal values are also supported (e.g. "),(0,s._)("i",null,"0.5"),(0,s.Uk)(" to identify 6 hours). An empty or zero value means that the token has no expiry date. ")])],-1),F=(0,s._)("input",{type:"submit",value:"Generate token"},null,-1);function B(e,t,n,i,r,a){var o=(0,s.up)("Loading"),c=(0,s.up)("Modal"),l=(0,s.up)("tt");return(0,s.wg)(),(0,s.iD)("div",m,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(c,{ref:"tokenModal"},{default:(0,s.w5)((function(){return[(0,s._)("div",g,[(0,s._)("label",null,[v,w,b,(0,s._)("textarea",{class:"token",textContent:(0,p.zw)(r.token),onFocus:t[0]||(t[0]=function(){return a.onTokenSelect&&a.onTokenSelect.apply(a,arguments)})},null,40,y)])])]})),_:1},512),(0,s._)("div",k,[(0,s._)("div",x,[(0,s._)("p",null,[_,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[C]})),_:1}),D]),I,S,(0,s._)("ul",null,[(0,s._)("li",null,[T,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[Z]})),_:1}),U]),(0,s._)("li",null,[R,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[P]})),_:1}),M]),(0,s._)("li",null,[N,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[q]})),_:1}),O]),(0,s._)("li",null,[j,(0,s.Wm)(l,null,{default:(0,s.w5)((function(){return[$]})),_:1}),E])]),z]),(0,s._)("div",W,[(0,s._)("form",{onSubmit:t[1]||(t[1]=(0,h.iM)((function(){return a.generateToken&&a.generateToken.apply(a,arguments)}),["prevent"])),ref:"generateTokenForm"},[(0,s._)("label",null,[L,(0,s._)("input",{type:"text",name:"username",value:n.currentUser.username,disabled:""},null,8,A)]),V,H,F],544)])])])}n(1539),n(9714);var Y=n(9669),K=n.n(Y),G=n(1232),J=n(6813),X=n(8453),Q={name:"Token",components:{Modal:X.Z,Loading:G.Z},mixins:[J.Z],props:{currentUser:{type:Object,required:!0}},data:function(){return{loading:!1,token:null}},methods:{generateToken:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){var s,i,r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.currentUser.username,r=e.target.password.value,a=null!==(s=e.target.validityDays)&&void 0!==s&&s.length?parseInt(e.target.validityDays.value):0,a||(a=null),t.loading=!0,n.prev=5,n.next=8,K().post("/auth",{username:i,password:r,expiry_days:a});case 8:t.token=n.sent.data.token,null!==(o=t.token)&&void 0!==o&&o.length&&t.$refs.tokenModal.show(),n.next=16;break;case 12:n.prev=12,n.t0=n["catch"](5),console.error(n.t0.toString()),t.notify({text:n.t0.toString(),error:!0});case 16:return n.prev=16,t.loading=!1,n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[5,12,16,19]])})))()},onTokenSelect:function(e){e.target.select(),document.execCommand("copy"),this.notify({text:"Token copied to clipboard",image:{iconClass:"fa fa-check"}})}}},ee=n(3744);const te=(0,ee.Z)(Q,[["render",B]]);var ne=te,se=["disabled"],ie=["disabled"],re=["disabled"],ae=["disabled"],oe=["value"],ce=["disabled"],le=["disabled"],ue=["disabled"],de=["disabled"],fe={class:"body"},pe={class:"users-list"},he=["onClick"],me=["textContent"],ge={class:"actions pull-right col-4"};function ve(e,t,n,i,r,a){var o=(0,s.up)("Loading"),c=(0,s.up)("Modal"),l=(0,s.up)("DropdownItem"),u=(0,s.up)("Dropdown");return(0,s.wg)(),(0,s.iD)(s.HY,null,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(c,{ref:"addUserModal",title:"Add User"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"addUserForm",onSubmit:t[0]||(t[0]=function(){return a.createUser&&a.createUser.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",disabled:r.commandRunning},null,8,se)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Password",disabled:r.commandRunning},null,8,ie)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password",disabled:r.commandRunning},null,8,re)]),(0,s._)("input",{type:"submit",value:"Create User",disabled:r.commandRunning},null,8,ae)],544)]})),_:1},512),(0,s.Wm)(c,{ref:"changePasswordModal",title:"Change Password"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"changePasswordForm",onSubmit:t[1]||(t[1]=function(){return a.changePassword&&a.changePassword.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",value:r.selectedUser,disabled:"disabled"},null,8,oe)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Current password",disabled:r.commandRunning},null,8,ce)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"new_password",placeholder:"New password",disabled:r.commandRunning},null,8,le)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_new_password",placeholder:"Confirm new password",disabled:r.commandRunning},null,8,ue)]),(0,s._)("input",{type:"submit",value:"Change Password",disabled:r.commandRunning},null,8,de)],544)]})),_:1},512),(0,s._)("div",fe,[(0,s._)("ul",pe,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(r.users,(function(t){return(0,s.wg)(),(0,s.iD)("li",{key:t.user_id,class:"item user",onClick:function(e){return r.selectedUser=t.username}},[(0,s._)("div",{class:"name col-8",textContent:(0,p.zw)(t.username)},null,8,me),(0,s._)("div",ge,[(0,s.Wm)(u,{title:"User Actions","icon-class":"fa fa-cog"},{default:(0,s.w5)((function(){return[(0,s.Wm)(l,{text:"Change Password",disabled:r.commandRunning,"icon-class":"fa fa-key",onClick:function(n){r.selectedUser=t.username,e.$refs.changePasswordModal.show()}},null,8,["disabled","onClick"]),(0,s.Wm)(l,{text:"Delete User",disabled:r.commandRunning,"icon-class":"fa fa-trash",onClick:function(e){return a.deleteUser(t)}},null,8,["disabled","onClick"])]})),_:2},1024)])],8,he)})),128))])])],64)}var we=n(9584),be=(n(8309),n(5771)),ye=n(9015),ke={name:"Users",components:{DropdownItem:ye.Z,Loading:G.Z,Modal:X.Z,Dropdown:be.Z},mixins:[J.Z],props:{sessionToken:{type:String,required:!0},currentUser:{type:Object,required:!0}},data:function(){return{users:[],commandRunning:!1,loading:!1,selectedUser:null}},methods:{refresh:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("user.get_users");case 4:e.users=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},createUser:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.addUserForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.password===s.confirm_password){n.next=5;break}return t.notify({title:"Unable to create user",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,n.prev=6,n.next=9,t.request("user.create_user",{username:s.username,password:s.password,session_token:t.sessionToken});case 9:return n.prev=9,t.commandRunning=!1,n.finish(9);case 12:return t.notify({text:"User "+s.username+" created",image:{iconClass:"fas fa-check"}}),t.$refs.addUserModal.close(),n.next=16,t.refresh();case 16:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},changePassword:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){var s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.changePasswordForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.new_password===s.confirm_new_password){n.next=5;break}return t.notify({title:"Unable to update password",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,i=!1,n.prev=7,n.next=10,t.request("user.update_password",{username:s.username,old_password:s.password,new_password:s.new_password});case 10:i=n.sent;case 11:return n.prev=11,t.commandRunning=!1,n.finish(11);case 14:i?(t.$refs.changePasswordModal.close(),t.notify({text:"Password successfully updated",image:{iconClass:"fas fa-check"}})):t.notify({title:"Unable to update password",text:"The current password is incorrect",error:!0,image:{iconClass:"fas fa-times"}});case 15:case"end":return n.stop()}}),n,null,[[7,,11,14]])})))()},deleteUser:function(e){var t=this;return(0,f.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(confirm("Are you sure that you want to remove the user "+e.username+"?")){n.next=2;break}return n.abrupt("return");case 2:return t.commandRunning=!0,n.prev=3,n.next=6,t.request("user.delete_user",{username:e.username,session_token:t.sessionToken});case 6:return n.prev=6,t.commandRunning=!1,n.finish(6);case 9:return t.notify({text:"User "+e.username+" removed",image:{iconClass:"fas fa-check"}}),n.next=12,t.refresh();case 12:case"end":return n.stop()}}),n,null,[[3,,6,9]])})))()}},mounted:function(){this.refresh()}};const xe=(0,ee.Z)(ke,[["render",ve]]);var _e=xe,Ce={name:"Settings",components:{Users:_e,Token:ne},mixins:[J.Z],data:function(){return{selectedView:"users",currentUser:null,sessionToken:null}},methods:{refresh:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.sessionToken=e.getCookies()["session_token"],t.next=3,e.request("user.get_user_by_session",{session_token:e.sessionToken});case 3:e.currentUser=t.sent;case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.refresh()}};const De=(0,ee.Z)(Ce,[["render",d]]);var Ie=De},3379:function(e,t,n){var s={"./Camera/Index":[5528,5528],"./CameraAndroidIpcam/Index":[6739,6739],"./CameraCv/Index":[8184,5528,8184],"./CameraFfmpeg/Index":[5111,5528,5111],"./CameraGstreamer/Index":[699,5528,699],"./CameraIrMlx90640/Index":[9895,5528,9895],"./CameraPi/Index":[4548,5528,4548],"./Entities/Index":[914,9892],"./Execute/Index":[7643,7643],"./Light/Index":[1406,3490,2107,1406],"./LightHue/Index":[3674,3490,2107,1406,3674],"./Media/Index":[4196,2107,8337,7029,779,4196],"./MediaMplayer/Index":[6509,2107,8337,7029,779,4196,6509],"./MediaMpv/Index":[5895,2107,8337,7029,779,4196,5895],"./MediaOmxplayer/Index":[9633,2107,8337,7029,779,4196,9633],"./MediaVlc/Index":[767,2107,8337,7029,779,4196,767],"./Music/Index":[5781,2107,8337,7029,6833],"./MusicMpd/Index":[2957,2107,8337,7029,6833,2957],"./MusicSnapcast/Index":[2790,3490,2107,2790],"./MusicSpotify/Index":[7196,2107,8337,7029,6833,7196],"./Rtorrent/Index":[2820,8337,779,6162,2820],"./Settings/Index":[5392],"./Sound/Index":[5193,5193],"./Switches/Index":[4276,4276],"./Switches/LightHue/Index":[2844,3490,6590,2844],"./Switches/Smartthings/Index":[9196,3490,6590,9196],"./Switches/SwitchTplink/Index":[3785,3490,6590,3785],"./Switches/SwitchWemo/Index":[5210,3490,6590,5210],"./Switches/Switchbot/Index":[9694,3490,6590,9694],"./Switches/SwitchbotBluetooth/Index":[9694,3490,6590,9694],"./Switches/ZigbeeMqtt/Index":[5466,3490,6590,5466],"./Switches/Zwave/Index":[7262,3490,6590,7262],"./Switches/ZwaveMqtt/Index":[2380,3490,6590,2380],"./Torrent/Index":[9299,8337,779,6162,9299],"./Tts/Index":[2466,4021,2466],"./TtsGoogle/Index":[1938,4021,1938],"./TvSamsungWs/Index":[615,615],"./ZigbeeMqtt/Index":[4848,3490,2107,4848],"./Zwave/Index":[8586,3490,2107,4658,6027],"./ZwaveMqtt/Index":[2362,3490,2107,4658,2362]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=3379,e.exports=i},6725:function(e,t,n){var s={"./Calendar/Index":[345,345],"./Camera/Index":[2346,2346],"./Component/Index":[5824,3490,2107,5824],"./DateTime/Index":[1595,9575,1595],"./DateTimeWeather/Index":[5779,1798,9575,5779],"./ImageCarousel/Index":[6003,1798,9575,6003],"./Music/Index":[6013,6013],"./Plugin/Index":[4826,4826],"./RssNews/Index":[7420,7420],"./Weather/Index":[1798,1798]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=6725,e.exports=i},1359:function(e){"use strict";e.exports=JSON.parse('{"camera.android.ipcam":{"class":"fab fa-android"},"camera.cv":{"class":"fas fa-camera"},"camera.ffmpeg":{"class":"fas fa-camera"},"camera.gstreamer":{"class":"fas fa-camera"},"camera.ir.mlx90640":{"class":"fas fa-sun"},"camera.pi":{"class":"fas fa-camera"},"entities":{"class":"fa fa-home"},"execute":{"class":"fa fa-play"},"light.hue":{"class":"fas fa-lightbulb"},"media.jellyfin":{"imgUrl":"/icons/jellyfin.svg"},"media.kodi":{"imgUrl":"/icons/kodi.svg"},"media.omxplayer":{"class":"fa fa-film"},"media.mplayer":{"class":"fa fa-film"},"media.mpv":{"class":"fa fa-film"},"media.plex":{"imgUrl":"/icons/plex.svg"},"media.vlc":{"class":"fa fa-film"},"music.mpd":{"class":"fas fa-music"},"music.snapcast":{"class":"fa fa-volume-up"},"music.spotify":{"class":"fab fa-spotify"},"torrent":{"class":"fa fa-magnet"},"rtorrent":{"class":"fa fa-magnet"},"smartthings":{"imgUrl":"/icons/smartthings.png"},"switches":{"class":"fas fa-toggle-on"},"switch.switchbot":{"class":"fas fa-toggle-on"},"switch.tplink":{"class":"fas fa-toggle-on"},"switchbot":{"class":"fas fa-toggle-on"},"sound":{"class":"fa fa-microphone"},"tts":{"class":"far fa-comment"},"tts.google":{"class":"fas fa-comment"},"tv.samsung.ws":{"class":"fas fa-tv"},"zigbee.mqtt":{"imgUrl":"/icons/zigbee.svg"},"zwave":{"imgUrl":"/icons/z-wave.png"},"zwave.mqtt":{"imgUrl":"/icons/z-wave.png"}}')}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.m=e,function(){var e=[];n.O=function(t,s,i,r){if(!s){var a=1/0;for(u=0;u=r)&&Object.keys(n.O).every((function(e){return n.O[e](s[c])}))?s.splice(c--,1):(o=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[s,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(s,i){if(1&i&&(s=this(s)),8&i)return s;if("object"===typeof s&&s){if(4&i&&s.__esModule)return s;if(16&i&&"function"===typeof s.then)return s}var r=Object.create(null);n.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&s;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((function(e){a[e]=function(){return s[e]}}));return a["default"]=function(){return s},n.d(r,a),r}}(),function(){n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,s){return n.f[s](e,t),t}),[]))}}(),function(){n.u=function(e){return"static/js/"+e+"-legacy."+{65:"a4e6662a",345:"dcb6e74e",518:"e665a841",615:"fba0e1b5",699:"cb1ccfbb",767:"f33d812b",779:"b22c1cc7",1155:"3b386edd",1406:"49afea8a",1595:"69aea4ae",1798:"b42f39d9",1938:"e350f72d",2107:"d79fdb71",2346:"4845c2ae",2362:"6b95b958",2380:"0d05fcbd",2466:"b6981a49",2790:"ea683344",2820:"869be689",2844:"b3683bc2",2957:"a0d5f651",3490:"d482e29b",3499:"90eae609",3674:"1f20942d",3785:"5ec00494",4021:"a3380d38",4196:"b3577e2e",4276:"18787ca7",4548:"e2883bdd",4658:"92eb441e",4826:"f73c82f0",4848:"c406221e",4981:"c4835180",5111:"262ea3c5",5193:"d8c2e027",5207:"b6625280",5210:"e39ce8e4",5466:"ba464f70",5528:"5b7db199",5779:"8c634228",5824:"c9733a88",5895:"e1ce8e90",6003:"f3446996",6013:"b02eb716",6027:"1e7fc2ce",6162:"bf13f6e2",6509:"ab6d64c3",6590:"a024a679",6739:"c665b953",6833:"00db1080",7029:"c3dab656",7196:"a47a2493",7262:"13af887b",7420:"a57de4be",7643:"5b846090",8184:"702db0b7",8337:"fcf13df8",8729:"19ca396b",9196:"1cf345e1",9299:"adb4a75b",9575:"fb8eab70",9633:"8a00fadb",9694:"a11c42e2",9892:"6a0b2b51",9895:"acee9428"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"static/css/"+e+"."+{65:"d6cbc229",345:"0d938275",518:"44f63b6e",615:"be187f79",779:"459f0f41",1155:"3c072b53",1406:"3c45f7ef",1798:"5047113b",2107:"3a08bbb5",2346:"f042c092",2380:"7e6cb2ed",2790:"8a938bab",2844:"fa1de455",3490:"3516cb6e",3785:"5ed5a4df",4021:"0331be37",4196:"f1fcf8f5",4276:"07502cf2",4658:"0aa0c9b4",4826:"437fa334",4848:"ae3af6a6",4981:"8830c3ce",5193:"7f3c2173",5207:"831746a7",5210:"435161f9",5466:"fb0c1b5f",5528:"a4270756",5779:"b285a776",5824:"f9f7ad29",6003:"0868fde4",6013:"2141ef7f",6162:"f3d46bda",6590:"778aa4c7",6739:"649d4b27",6833:"c53bec53",7029:"13387da1",7262:"7ac2a7a5",7420:"e42d1496",7643:"e25374a8",8729:"f98d84da",9196:"18347c3c",9575:"eba29f96",9694:"509f8cb5",9892:"68b29dbb"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="platypush:";n.l=function(s,i,r,a){if(e[s])e[s].push(i);else{var o,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u\n \n \n \n \n \n\n \n\n\n\n\n\n\n","\n\n\n\n","\n\n\n\n","import { render } from \"./Notification.vue?vue&type=template&id=7646705e&scoped=true\"\nimport script from \"./Notification.vue?vue&type=script&lang=js\"\nexport * from \"./Notification.vue?vue&type=script&lang=js\"\n\nimport \"./Notification.vue?vue&type=style&index=0&id=7646705e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7646705e\"]])\n\nexport default __exports__","import { render } from \"./Notifications.vue?vue&type=template&id=6dc8bebc&scoped=true\"\nimport script from \"./Notifications.vue?vue&type=script&lang=js\"\nexport * from \"./Notifications.vue?vue&type=script&lang=js\"\n\nimport \"./Notifications.vue?vue&type=style&index=0&id=6dc8bebc&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6dc8bebc\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Events.vue?vue&type=template&id=26b9b70f\"\nimport script from \"./Events.vue?vue&type=script&lang=js\"\nexport * from \"./Events.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./VoiceAssistant.vue?vue&type=template&id=3f009270\"\nimport script from \"./VoiceAssistant.vue?vue&type=script&lang=js\"\nexport * from \"./VoiceAssistant.vue?vue&type=script&lang=js\"\n\nimport \"./VoiceAssistant.vue?vue&type=style&index=0&id=3f009270&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Ntfy.vue?vue&type=template&id=1c4a4708\"\nimport script from \"./Ntfy.vue?vue&type=script&lang=js\"\nexport * from \"./Ntfy.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Pushbullet.vue?vue&type=template&id=bf9869d4\"\nimport script from \"./Pushbullet.vue?vue&type=script&lang=js\"\nexport * from \"./Pushbullet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=8d9fac48\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=8d9fac48&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./Row.vue?vue&type=template&id=1b4663f2&scoped=true\"\nimport script from \"./Row.vue?vue&type=script&lang=js\"\nexport * from \"./Row.vue?vue&type=script&lang=js\"\n\nimport \"./Row.vue?vue&type=style&index=0&id=1b4663f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1b4663f2\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Widget.vue?vue&type=template&id=5df52982&scoped=true\"\nimport script from \"./Widget.vue?vue&type=script&lang=js\"\nexport * from \"./Widget.vue?vue&type=script&lang=js\"\n\nimport \"./Widget.vue?vue&type=style&index=0&id=5df52982&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5df52982\"]])\n\nexport default __exports__","import { render } from \"./Dashboard.vue?vue&type=template&id=cefcfdfc&scoped=true\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=js\"\nexport * from \"./Dashboard.vue?vue&type=script&lang=js\"\n\nimport \"./Dashboard.vue?vue&type=style&index=0&id=cefcfdfc&lang=scss&scoped=true\"\nimport \"./Dashboard.vue?vue&type=style&index=1&id=cefcfdfc&lang=css\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cefcfdfc\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./NotFound.vue?vue&type=template&id=49501f4d\"\nimport script from \"./NotFound.vue?vue&type=script&lang=js\"\nexport * from \"./NotFound.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Login.vue?vue&type=template&id=16cef6aa&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\n\nimport \"./Login.vue?vue&type=style&index=0&id=16cef6aa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-16cef6aa\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Register.vue?vue&type=template&id=1244b238\"\nimport script from \"./Register.vue?vue&type=script&lang=js\"\nexport * from \"./Register.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./Nav.vue?vue&type=template&id=69a507f4&scoped=true\"\nimport script from \"./Nav.vue?vue&type=script&lang=js\"\nexport * from \"./Nav.vue?vue&type=script&lang=js\"\n\nimport \"./Nav.vue?vue&type=style&index=0&id=69a507f4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69a507f4\"]])\n\nexport default __exports__","import { render } from \"./Panel.vue?vue&type=template&id=344b6d1a&scoped=true\"\nimport script from \"./Panel.vue?vue&type=script&lang=js\"\nexport * from \"./Panel.vue?vue&type=script&lang=js\"\n\nimport \"./Panel.vue?vue&type=style&index=0&id=344b6d1a&lang=scss&scoped=true\"\nimport \"./Panel.vue?vue&type=style&index=1&id=344b6d1a&lang=css\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-344b6d1a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./Plugin.vue?vue&type=template&id=67571c94&scoped=true\"\nimport script from \"./Plugin.vue?vue&type=script&lang=js\"\nexport * from \"./Plugin.vue?vue&type=script&lang=js\"\n\nimport \"./Plugin.vue?vue&type=style&index=0&id=67571c94&lang=scss&scoped=true\"\nimport \"./Plugin.vue?vue&type=style&index=1&id=67571c94&lang=css\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-67571c94\"]])\n\nexport default __exports__","import { createWebHistory, createRouter } from \"vue-router\";\nimport Dashboard from \"@/views/Dashboard.vue\";\nimport NotFound from \"@/views/NotFound\";\nimport Login from \"@/views/Login\";\nimport Register from \"@/views/Register\";\nimport Panel from \"@/views/Panel\";\nimport Plugin from \"@/views/Plugin\";\n\nconst routes = [\n {\n path: \"/\",\n name: \"Panel\",\n component: Panel,\n },\n\n {\n path: \"/dashboard/:name\",\n name: \"Dashboard\",\n component: Dashboard,\n },\n\n {\n path: \"/plugin/:plugin\",\n name: \"Plugin\",\n component: Plugin,\n },\n\n {\n path: \"/login\",\n name: \"Login\",\n component: Login,\n },\n\n {\n path: \"/register\",\n name: \"Register\",\n component: Register,\n },\n\n {\n path: \"/:catchAll(.*)\",\n component: NotFound,\n },\n];\n\nconst router = createRouter({\n history: createWebHistory(),\n routes,\n});\n\nexport default router;\n","import { createApp } from 'vue'\nimport App from '@/App.vue'\nimport router from '@/router'\n\nconst app = createApp(App)\napp.config.globalProperties._config = window.config\napp.use(router).mount('#app')\n","\n\n","import script from \"./Api.vue?vue&type=script&lang=js\"\nexport * from \"./Api.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Cookies.vue?vue&type=script&lang=js\"\nexport * from \"./Cookies.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./DateTime.vue?vue&type=script&lang=js\"\nexport * from \"./DateTime.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Events.vue?vue&type=script&lang=js\"\nexport * from \"./Events.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Notification.vue?vue&type=script&lang=js\"\nexport * from \"./Notification.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Screen.vue?vue&type=script&lang=js\"\nexport * from \"./Screen.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Text.vue?vue&type=script&lang=js\"\nexport * from \"./Text.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Types.vue?vue&type=script&lang=js\"\nexport * from \"./Types.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Utils.vue?vue&type=script&lang=js\"\nexport * from \"./Utils.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n","import { render } from \"./Loading.vue?vue&type=template&id=4d9c871b&scoped=true\"\nconst script = {}\n\nimport \"./Loading.vue?vue&type=style&index=0&id=4d9c871b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4d9c871b\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Modal.vue?vue&type=template&id=7d1f6e8b&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=js\"\nexport * from \"./Modal.vue?vue&type=script&lang=js\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=7d1f6e8b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7d1f6e8b\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Dropdown.vue?vue&type=template&id=21bf0316&scoped=true\"\nimport script from \"./Dropdown.vue?vue&type=script&lang=js\"\nexport * from \"./Dropdown.vue?vue&type=script&lang=js\"\n\nimport \"./Dropdown.vue?vue&type=style&index=0&id=21bf0316&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-21bf0316\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./DropdownItem.vue?vue&type=template&id=0a3cac88&scoped=true\"\nimport script from \"./DropdownItem.vue?vue&type=script&lang=js\"\nexport * from \"./DropdownItem.vue?vue&type=script&lang=js\"\n\nimport \"./DropdownItem.vue?vue&type=style&index=0&id=0a3cac88&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0a3cac88\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Icon.vue?vue&type=template&id=706a3bd1&scoped=true\"\nimport script from \"./Icon.vue?vue&type=script&lang=js\"\nexport * from \"./Icon.vue?vue&type=script&lang=js\"\n\nimport \"./Icon.vue?vue&type=style&index=0&id=706a3bd1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-706a3bd1\"]])\n\nexport default __exports__","\n\n\n\n\n","