@3dwayfinder/wayfinder-vue-components 1.2.9 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import Vue$1 from 'vue';
2
2
 
3
3
  //
4
4
  var wayfinder$1;
5
- var script$o = {
5
+ var script$p = {
6
6
  name: 'Map',
7
7
  props: {
8
8
  project: {
@@ -281,10 +281,10 @@ function addStyle(id, css) {
281
281
  }
282
282
 
283
283
  /* script */
284
- const __vue_script__$o = script$o;
284
+ const __vue_script__$p = script$p;
285
285
  /* template */
286
286
 
287
- var __vue_render__$o = function () {
287
+ var __vue_render__$p = function () {
288
288
  var _vm = this;
289
289
 
290
290
  var _h = _vm.$createElement;
@@ -314,10 +314,10 @@ var __vue_render__$o = function () {
314
314
  }, [_vm._v(_vm._s(_vm.pathText))])]);
315
315
  };
316
316
 
317
- var __vue_staticRenderFns__$o = [];
317
+ var __vue_staticRenderFns__$p = [];
318
318
  /* style */
319
319
 
320
- const __vue_inject_styles__$o = function (inject) {
320
+ const __vue_inject_styles__$p = function (inject) {
321
321
  if (!inject) return;
322
322
  inject("data-v-00d2773a_0", {
323
323
  source: ".wf-map-container[data-v-00d2773a]{position:relative;width:100%;height:100%}.wf-map-container canvas[data-v-00d2773a]{width:100%;height:100%}.wf-map-container .wf-map-path-text[data-v-00d2773a]{width:30ch;text-align:center;background-color:#fff;position:absolute;bottom:25%;margin:auto;left:50%;margin-left:-15ch;padding:.5em}",
@@ -328,21 +328,21 @@ const __vue_inject_styles__$o = function (inject) {
328
328
  /* scoped */
329
329
 
330
330
 
331
- const __vue_scope_id__$o = "data-v-00d2773a";
331
+ const __vue_scope_id__$p = "data-v-00d2773a";
332
332
  /* module identifier */
333
333
 
334
- const __vue_module_identifier__$o = undefined;
334
+ const __vue_module_identifier__$p = undefined;
335
335
  /* functional template */
336
336
 
337
- const __vue_is_functional_template__$o = false;
337
+ const __vue_is_functional_template__$p = false;
338
338
  /* style inject SSR */
339
339
 
340
340
  /* style inject shadow dom */
341
341
 
342
- const __vue_component__$o = /*#__PURE__*/normalizeComponent({
343
- render: __vue_render__$o,
344
- staticRenderFns: __vue_staticRenderFns__$o
345
- }, __vue_inject_styles__$o, __vue_script__$o, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, createInjector, undefined, undefined);
342
+ const __vue_component__$p = /*#__PURE__*/normalizeComponent({
343
+ render: __vue_render__$p,
344
+ staticRenderFns: __vue_staticRenderFns__$p
345
+ }, __vue_inject_styles__$p, __vue_script__$p, __vue_scope_id__$p, __vue_is_functional_template__$p, __vue_module_identifier__$p, false, createInjector, undefined, undefined);
346
346
 
347
347
  /*!
348
348
  * vuex v3.6.2
@@ -1161,7 +1161,7 @@ function getModuleByNamespace (store, helper, namespace) {
1161
1161
  }
1162
1162
 
1163
1163
  //
1164
- var script$n = {
1164
+ var script$o = {
1165
1165
  name: "POI",
1166
1166
  computed: { ...mapState('wf', ['language']),
1167
1167
 
@@ -1260,10 +1260,10 @@ var script$n = {
1260
1260
  };
1261
1261
 
1262
1262
  /* script */
1263
- const __vue_script__$n = script$n;
1263
+ const __vue_script__$o = script$o;
1264
1264
  /* template */
1265
1265
 
1266
- var __vue_render__$n = function () {
1266
+ var __vue_render__$o = function () {
1267
1267
  var _vm = this;
1268
1268
 
1269
1269
  var _h = _vm.$createElement;
@@ -1314,10 +1314,10 @@ var __vue_render__$n = function () {
1314
1314
  }) : _vm._e()]) : _vm._e();
1315
1315
  };
1316
1316
 
1317
- var __vue_staticRenderFns__$n = [];
1317
+ var __vue_staticRenderFns__$o = [];
1318
1318
  /* style */
1319
1319
 
1320
- const __vue_inject_styles__$n = function (inject) {
1320
+ const __vue_inject_styles__$o = function (inject) {
1321
1321
  if (!inject) return;
1322
1322
  inject("data-v-658b6c14_0", {
1323
1323
  source: ".layout-view[data-v-658b6c14]{display:flex;flex-direction:column;justify-content:space-between;height:100%}.poi-info[data-v-658b6c14]{padding:1rem}.poi-info h2[data-v-658b6c14]{text-align:center;margin-top:1.5rem;margin-bottom:1.5rem}.poi-body[data-v-658b6c14]{box-shadow:0 -2px 1px 0 rgba(0,0,0,.05);padding:1rem;flex-grow:1}.poi-image[data-v-658b6c14]{height:14rem;width:100%;background-position:50% 50%;background-size:contain;background-repeat:no-repeat}.poi-image.image-background[data-v-658b6c14]{background-size:cover}.show-path[data-v-658b6c14]{bottom:1rem;right:1rem;text-transform:uppercase;z-index:10;line-height:2.8rem;margin-bottom:1.5rem}.show-path button[data-v-658b6c14]{height:3rem;font-size:1.2rem;line-height:2.8rem;padding-left:2.5rem;padding-right:2.5rem;margin:auto;border:0;display:block}.poi-description[data-v-658b6c14]{line-height:1.2}.poi-contact .address[data-v-658b6c14]{font-weight:600;margin-bottom:.5rem}.poi-contact .address span[data-v-658b6c14]{padding-top:4px;vertical-align:top;display:inline-block}.poi-contact .address a[data-v-658b6c14]{text-decoration:none;display:block;line-height:1.5}.poi-contact .address .icon[data-v-658b6c14]:before{mix-blend-mode:initial;color:#fff}",
@@ -1328,27 +1328,27 @@ const __vue_inject_styles__$n = function (inject) {
1328
1328
  /* scoped */
1329
1329
 
1330
1330
 
1331
- const __vue_scope_id__$n = "data-v-658b6c14";
1331
+ const __vue_scope_id__$o = "data-v-658b6c14";
1332
1332
  /* module identifier */
1333
1333
 
1334
- const __vue_module_identifier__$n = undefined;
1334
+ const __vue_module_identifier__$o = undefined;
1335
1335
  /* functional template */
1336
1336
 
1337
- const __vue_is_functional_template__$n = false;
1337
+ const __vue_is_functional_template__$o = false;
1338
1338
  /* style inject SSR */
1339
1339
 
1340
1340
  /* style inject shadow dom */
1341
1341
 
1342
- const __vue_component__$n = /*#__PURE__*/normalizeComponent({
1343
- render: __vue_render__$n,
1344
- staticRenderFns: __vue_staticRenderFns__$n
1345
- }, __vue_inject_styles__$n, __vue_script__$n, __vue_scope_id__$n, __vue_is_functional_template__$n, __vue_module_identifier__$n, false, createInjector, undefined, undefined);
1342
+ const __vue_component__$o = /*#__PURE__*/normalizeComponent({
1343
+ render: __vue_render__$o,
1344
+ staticRenderFns: __vue_staticRenderFns__$o
1345
+ }, __vue_inject_styles__$o, __vue_script__$o, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, createInjector, undefined, undefined);
1346
1346
 
1347
1347
  //
1348
- var script$m = {
1348
+ var script$n = {
1349
1349
  name: 'AZMenu',
1350
1350
  components: {
1351
- POI: __vue_component__$n
1351
+ POI: __vue_component__$o
1352
1352
  },
1353
1353
  props: {
1354
1354
  showLogo: {
@@ -1418,10 +1418,10 @@ var script$m = {
1418
1418
  };
1419
1419
 
1420
1420
  /* script */
1421
- const __vue_script__$m = script$m;
1421
+ const __vue_script__$n = script$n;
1422
1422
  /* template */
1423
1423
 
1424
- var __vue_render__$m = function () {
1424
+ var __vue_render__$n = function () {
1425
1425
  var _vm = this;
1426
1426
 
1427
1427
  var _h = _vm.$createElement;
@@ -1470,10 +1470,10 @@ var __vue_render__$m = function () {
1470
1470
  }), 0)]);
1471
1471
  };
1472
1472
 
1473
- var __vue_staticRenderFns__$m = [];
1473
+ var __vue_staticRenderFns__$n = [];
1474
1474
  /* style */
1475
1475
 
1476
- const __vue_inject_styles__$m = function (inject) {
1476
+ const __vue_inject_styles__$n = function (inject) {
1477
1477
  if (!inject) return;
1478
1478
  inject("data-v-17afa634_0", {
1479
1479
  source: ".wf-list-item[data-v-17afa634]{list-style:none}",
@@ -1484,24 +1484,24 @@ const __vue_inject_styles__$m = function (inject) {
1484
1484
  /* scoped */
1485
1485
 
1486
1486
 
1487
- const __vue_scope_id__$m = "data-v-17afa634";
1487
+ const __vue_scope_id__$n = "data-v-17afa634";
1488
1488
  /* module identifier */
1489
1489
 
1490
- const __vue_module_identifier__$m = undefined;
1490
+ const __vue_module_identifier__$n = undefined;
1491
1491
  /* functional template */
1492
1492
 
1493
- const __vue_is_functional_template__$m = false;
1493
+ const __vue_is_functional_template__$n = false;
1494
1494
  /* style inject SSR */
1495
1495
 
1496
1496
  /* style inject shadow dom */
1497
1497
 
1498
- const __vue_component__$m = /*#__PURE__*/normalizeComponent({
1499
- render: __vue_render__$m,
1500
- staticRenderFns: __vue_staticRenderFns__$m
1501
- }, __vue_inject_styles__$m, __vue_script__$m, __vue_scope_id__$m, __vue_is_functional_template__$m, __vue_module_identifier__$m, false, createInjector, undefined, undefined);
1498
+ const __vue_component__$n = /*#__PURE__*/normalizeComponent({
1499
+ render: __vue_render__$n,
1500
+ staticRenderFns: __vue_staticRenderFns__$n
1501
+ }, __vue_inject_styles__$n, __vue_script__$n, __vue_scope_id__$n, __vue_is_functional_template__$n, __vue_module_identifier__$n, false, createInjector, undefined, undefined);
1502
1502
 
1503
1503
  //
1504
- var script$l = {
1504
+ var script$m = {
1505
1505
  name: 'FlagsMenu',
1506
1506
  computed: { ...mapState('wf', ['languages', 'language', 'reset']),
1507
1507
 
@@ -1550,10 +1550,10 @@ var script$l = {
1550
1550
  };
1551
1551
 
1552
1552
  /* script */
1553
- const __vue_script__$l = script$l;
1553
+ const __vue_script__$m = script$m;
1554
1554
  /* template */
1555
1555
 
1556
- var __vue_render__$l = function () {
1556
+ var __vue_render__$m = function () {
1557
1557
  var _vm = this;
1558
1558
 
1559
1559
  var _h = _vm.$createElement;
@@ -1589,10 +1589,10 @@ var __vue_render__$l = function () {
1589
1589
  }), 0)]);
1590
1590
  };
1591
1591
 
1592
- var __vue_staticRenderFns__$l = [];
1592
+ var __vue_staticRenderFns__$m = [];
1593
1593
  /* style */
1594
1594
 
1595
- const __vue_inject_styles__$l = function (inject) {
1595
+ const __vue_inject_styles__$m = function (inject) {
1596
1596
  if (!inject) return;
1597
1597
  inject("data-v-64144cc4_0", {
1598
1598
  source: ".languages-container.active[data-v-64144cc4]{height:fit-content;z-index:10}.languages-container.active .languages-container-select[data-v-64144cc4]{visibility:initial;opacity:1}.languages-container .languages-container-select[data-v-64144cc4]{opacity:0;padding-bottom:.5rem;margin:auto;text-align:center;transition:opacity .2s ease-in;overflow:hidden;height:1.5rem;font-size:1rem}.languages-container .language .flag[data-v-64144cc4]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.languages-container .language .active[data-v-64144cc4]{height:3.5rem;margin-bottom:1rem}.languages-container .language .display[data-v-64144cc4]{height:3.5rem;margin-bottom:1.5rem}",
@@ -1603,24 +1603,24 @@ const __vue_inject_styles__$l = function (inject) {
1603
1603
  /* scoped */
1604
1604
 
1605
1605
 
1606
- const __vue_scope_id__$l = "data-v-64144cc4";
1606
+ const __vue_scope_id__$m = "data-v-64144cc4";
1607
1607
  /* module identifier */
1608
1608
 
1609
- const __vue_module_identifier__$l = undefined;
1609
+ const __vue_module_identifier__$m = undefined;
1610
1610
  /* functional template */
1611
1611
 
1612
- const __vue_is_functional_template__$l = false;
1612
+ const __vue_is_functional_template__$m = false;
1613
1613
  /* style inject SSR */
1614
1614
 
1615
1615
  /* style inject shadow dom */
1616
1616
 
1617
- const __vue_component__$l = /*#__PURE__*/normalizeComponent({
1618
- render: __vue_render__$l,
1619
- staticRenderFns: __vue_staticRenderFns__$l
1620
- }, __vue_inject_styles__$l, __vue_script__$l, __vue_scope_id__$l, __vue_is_functional_template__$l, __vue_module_identifier__$l, false, createInjector, undefined, undefined);
1617
+ const __vue_component__$m = /*#__PURE__*/normalizeComponent({
1618
+ render: __vue_render__$m,
1619
+ staticRenderFns: __vue_staticRenderFns__$m
1620
+ }, __vue_inject_styles__$m, __vue_script__$m, __vue_scope_id__$m, __vue_is_functional_template__$m, __vue_module_identifier__$m, false, createInjector, undefined, undefined);
1621
1621
 
1622
1622
  //
1623
- var script$k = {
1623
+ var script$l = {
1624
1624
  name: 'LanguagesMenu',
1625
1625
  computed: { ...mapState('wf', ['languages', 'language', 'reset']),
1626
1626
 
@@ -1680,10 +1680,10 @@ var script$k = {
1680
1680
  };
1681
1681
 
1682
1682
  /* script */
1683
- const __vue_script__$k = script$k;
1683
+ const __vue_script__$l = script$l;
1684
1684
  /* template */
1685
1685
 
1686
- var __vue_render__$k = function () {
1686
+ var __vue_render__$l = function () {
1687
1687
  var _vm = this;
1688
1688
 
1689
1689
  var _h = _vm.$createElement;
@@ -1726,10 +1726,10 @@ var __vue_render__$k = function () {
1726
1726
  }), 0)]);
1727
1727
  };
1728
1728
 
1729
- var __vue_staticRenderFns__$k = [];
1729
+ var __vue_staticRenderFns__$l = [];
1730
1730
  /* style */
1731
1731
 
1732
- const __vue_inject_styles__$k = function (inject) {
1732
+ const __vue_inject_styles__$l = function (inject) {
1733
1733
  if (!inject) return;
1734
1734
  inject("data-v-2b86d0a6_0", {
1735
1735
  source: ".wf-languages-menu.active[data-v-2b86d0a6]{height:fit-content;z-index:10}.wf-languages-menu.active .wf-languages-title[data-v-2b86d0a6]{visibility:initial;opacity:1}.wf-languages-menu .wf-languages-title[data-v-2b86d0a6]{opacity:0;padding-bottom:.5rem;margin:auto;text-align:center;transition:opacity .2s ease-in;overflow:hidden}.wf-languages-menu .wf-language .wf-lang-flag[data-v-2b86d0a6]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.wf-languages-menu .wf-language .wf-active[data-v-2b86d0a6]{height:3.5rem;margin-bottom:1rem}.wf-languages-menu .wf-language .wf-display[data-v-2b86d0a6]{height:3.5rem;margin-bottom:1.5rem}",
@@ -1740,24 +1740,24 @@ const __vue_inject_styles__$k = function (inject) {
1740
1740
  /* scoped */
1741
1741
 
1742
1742
 
1743
- const __vue_scope_id__$k = "data-v-2b86d0a6";
1743
+ const __vue_scope_id__$l = "data-v-2b86d0a6";
1744
1744
  /* module identifier */
1745
1745
 
1746
- const __vue_module_identifier__$k = undefined;
1746
+ const __vue_module_identifier__$l = undefined;
1747
1747
  /* functional template */
1748
1748
 
1749
- const __vue_is_functional_template__$k = false;
1749
+ const __vue_is_functional_template__$l = false;
1750
1750
  /* style inject SSR */
1751
1751
 
1752
1752
  /* style inject shadow dom */
1753
1753
 
1754
- const __vue_component__$k = /*#__PURE__*/normalizeComponent({
1755
- render: __vue_render__$k,
1756
- staticRenderFns: __vue_staticRenderFns__$k
1757
- }, __vue_inject_styles__$k, __vue_script__$k, __vue_scope_id__$k, __vue_is_functional_template__$k, __vue_module_identifier__$k, false, createInjector, undefined, undefined);
1754
+ const __vue_component__$l = /*#__PURE__*/normalizeComponent({
1755
+ render: __vue_render__$l,
1756
+ staticRenderFns: __vue_staticRenderFns__$l
1757
+ }, __vue_inject_styles__$l, __vue_script__$l, __vue_scope_id__$l, __vue_is_functional_template__$l, __vue_module_identifier__$l, false, createInjector, undefined, undefined);
1758
1758
 
1759
1759
  //
1760
- var script$j = {
1760
+ var script$k = {
1761
1761
  name: "Group",
1762
1762
  computed: { ...mapState('wf', ['language'])
1763
1763
  },
@@ -1792,10 +1792,10 @@ var script$j = {
1792
1792
  };
1793
1793
 
1794
1794
  /* script */
1795
- const __vue_script__$j = script$j;
1795
+ const __vue_script__$k = script$k;
1796
1796
  /* template */
1797
1797
 
1798
- var __vue_render__$j = function () {
1798
+ var __vue_render__$k = function () {
1799
1799
  var _vm = this;
1800
1800
 
1801
1801
  var _h = _vm.$createElement;
@@ -1820,21 +1820,321 @@ var __vue_render__$j = function () {
1820
1820
  }) : _vm._e()]) : _vm._e();
1821
1821
  };
1822
1822
 
1823
+ var __vue_staticRenderFns__$k = [];
1824
+ /* style */
1825
+
1826
+ const __vue_inject_styles__$k = undefined;
1827
+ /* scoped */
1828
+
1829
+ const __vue_scope_id__$k = "data-v-077cd362";
1830
+ /* module identifier */
1831
+
1832
+ const __vue_module_identifier__$k = undefined;
1833
+ /* functional template */
1834
+
1835
+ const __vue_is_functional_template__$k = false;
1836
+ /* style inject */
1837
+
1838
+ /* style inject SSR */
1839
+
1840
+ /* style inject shadow dom */
1841
+
1842
+ const __vue_component__$k = /*#__PURE__*/normalizeComponent({
1843
+ render: __vue_render__$k,
1844
+ staticRenderFns: __vue_staticRenderFns__$k
1845
+ }, __vue_inject_styles__$k, __vue_script__$k, __vue_scope_id__$k, __vue_is_functional_template__$k, __vue_module_identifier__$k, false, undefined, undefined, undefined);
1846
+
1847
+ //
1848
+ var script$j = {
1849
+ name: 'GroupsMenu',
1850
+ components: {
1851
+ Group: __vue_component__$k,
1852
+ POI: __vue_component__$o
1853
+ },
1854
+ props: {
1855
+ parent: {
1856
+ type: Number,
1857
+ default: -1
1858
+ },
1859
+ showPOICount: {
1860
+ type: Boolean,
1861
+ default: false
1862
+ },
1863
+ az: {
1864
+ type: Boolean,
1865
+ default: false
1866
+ },
1867
+ order: {
1868
+ type: Boolean,
1869
+ default: false
1870
+ },
1871
+ showIcon: {
1872
+ type: Boolean,
1873
+ default: false
1874
+ },
1875
+ showSubGroups: {
1876
+ type: Boolean,
1877
+ default: true
1878
+ },
1879
+ showPOIs: {
1880
+ type: Boolean,
1881
+ default: false
1882
+ },
1883
+ showPOILogo: {
1884
+ type: Boolean,
1885
+ default: false
1886
+ },
1887
+ showPOIName: {
1888
+ type: Boolean,
1889
+ default: true
1890
+ },
1891
+ showPOIPathButton: {
1892
+ type: Boolean,
1893
+ default: false
1894
+ },
1895
+ showPOIDescription: {
1896
+ type: Boolean,
1897
+ default: false
1898
+ },
1899
+ showPOIRoomID: {
1900
+ type: Boolean,
1901
+ default: false
1902
+ },
1903
+ showPOIFloor: {
1904
+ type: Boolean,
1905
+ default: false
1906
+ },
1907
+ openGroup: {
1908
+ type: Boolean,
1909
+ default: true
1910
+ },
1911
+ sortPOIs: {
1912
+ type: Boolean,
1913
+ default: true
1914
+ }
1915
+ },
1916
+
1917
+ data() {
1918
+ return {
1919
+ current: null,
1920
+ count: 0
1921
+ };
1922
+ },
1923
+
1924
+ computed: { ...mapState('wf', ['poiGroups', 'currentGroup', 'language']),
1925
+
1926
+ sortedGroups() {
1927
+ let arr = []; // Copy arr for sorting
1928
+
1929
+ let topic;
1930
+ let groups = this.poiGroups;
1931
+
1932
+ for (let i in groups) {
1933
+ topic = groups[i];
1934
+
1935
+ if (topic && topic.getShowInMenu() && topic.getName(this.language)) {
1936
+ if (this.parent > -1 && parseInt(topic.parent_id) == this.parent) {
1937
+ arr.push(topic);
1938
+ } else if (this.parent === -1 && topic.parent_id === null) {
1939
+ arr.push(topic);
1940
+ }
1941
+ }
1942
+ }
1943
+
1944
+ if (this.az) {
1945
+ arr = arr.sort((a, b) => {
1946
+ if (a && a.getName(this.language) && b && b.getName(this.language)) {
1947
+ return a.getName(this.language).localeCompare(b.getName(this.language), this.language, {
1948
+ sensitivity: 'accent'
1949
+ });
1950
+ } else {
1951
+ return 0;
1952
+ }
1953
+ });
1954
+ } else if (this.order) {
1955
+ arr = arr.sort((a, b) => {
1956
+ if (a && b) {
1957
+ return a.order - b.order;
1958
+ }
1959
+
1960
+ return 0;
1961
+ });
1962
+ }
1963
+
1964
+ this.count = arr.length;
1965
+ return arr;
1966
+ }
1967
+
1968
+ },
1969
+ watch: {
1970
+ currentGroup: function () {
1971
+ this.current = this.currentGroup;
1972
+ }
1973
+ },
1974
+ methods: {
1975
+ onClick(group) {
1976
+ return () => {
1977
+ if (this.current == group) {
1978
+ this.current = null;
1979
+ } else {
1980
+ this.current = group;
1981
+ }
1982
+
1983
+ this.$emit('clicked', group);
1984
+ };
1985
+ },
1986
+
1987
+ onPOICLick(poi) {
1988
+ return () => {
1989
+ console.log('onPOICLick01', poi);
1990
+ this.$emit('poiClicked', poi);
1991
+ };
1992
+ },
1993
+
1994
+ reset() {
1995
+ this.$store.dispatch('wf/SET_CURRENT_GROUP', null);
1996
+ },
1997
+
1998
+ subGroups(subGroups) {
1999
+ if (subGroups) {
2000
+ let groups = [];
2001
+
2002
+ let _g;
2003
+
2004
+ for (let g in subGroups) {
2005
+ _g = parseInt(subGroups[g]);
2006
+
2007
+ if (this.poiGroups[_g] && this.poiGroups[_g].getShowInMenu()) {
2008
+ groups.push(this.poiGroups[_g]);
2009
+ }
2010
+ }
2011
+
2012
+ return groups;
2013
+ } else {
2014
+ return [];
2015
+ }
2016
+ },
2017
+
2018
+ sortedPOIs(pois) {
2019
+ let arr = pois.slice().filter(poi => {
2020
+ return poi && poi.getShowInMenu();
2021
+ }); // Copy and filter array
2022
+
2023
+ if (!this.sortPOIs) return arr;
2024
+ arr = arr.sort((a, b) => {
2025
+ if (a.getName(this.language) && b.getName(this.language)) {
2026
+ return a.getName(this.language).localeCompare(b.getName(this.language));
2027
+ } else {
2028
+ return 0;
2029
+ }
2030
+ });
2031
+ return arr;
2032
+ }
2033
+
2034
+ }
2035
+ };
2036
+
2037
+ /* script */
2038
+ const __vue_script__$j = script$j;
2039
+ /* template */
2040
+
2041
+ var __vue_render__$j = function () {
2042
+ var _vm = this;
2043
+
2044
+ var _h = _vm.$createElement;
2045
+
2046
+ var _c = _vm._self._c || _h;
2047
+
2048
+ return _c('div', {
2049
+ staticClass: "wf-component wf-groups-menu"
2050
+ }, [_c('ul', {
2051
+ staticClass: "wf-list",
2052
+ class: ['wf-list-count-' + _vm.count]
2053
+ }, _vm._l(_vm.sortedGroups, function (topic) {
2054
+ return _c('li', {
2055
+ key: topic.id,
2056
+ staticClass: "wf-list-item",
2057
+ class: {
2058
+ "active": _vm.current && topic.id == _vm.current.id
2059
+ }
2060
+ }, [_c('div', {
2061
+ directives: [{
2062
+ name: "touch",
2063
+ rawName: "v-touch:tap",
2064
+ value: _vm.onClick(topic),
2065
+ expression: "onClick(topic)",
2066
+ arg: "tap"
2067
+ }],
2068
+ staticClass: "wf-item-content"
2069
+ }, [_vm._t("default", function () {
2070
+ return [_c('Group', {
2071
+ attrs: {
2072
+ "group": topic,
2073
+ "showIcon": _vm.showIcon,
2074
+ "showPOICount": _vm.showPOICount
2075
+ }
2076
+ })];
2077
+ }, {
2078
+ "group": topic
2079
+ })], 2), _vm._v(" "), topic.pois.length > 0 && _vm.showPOIs ? _c('ul', {
2080
+ directives: [{
2081
+ name: "show",
2082
+ rawName: "v-show",
2083
+ value: _vm.current && topic.id == _vm.current.id,
2084
+ expression: "current && topic.id == current.id"
2085
+ }],
2086
+ staticClass: "wf-list wf-sublist"
2087
+ }, _vm._l(_vm.sortedPOIs(topic.pois), function (poi) {
2088
+ return _c('li', {
2089
+ directives: [{
2090
+ name: "touch",
2091
+ rawName: "v-touch:tap",
2092
+ value: _vm.onPOICLick(poi),
2093
+ expression: "onPOICLick(poi)",
2094
+ arg: "tap"
2095
+ }],
2096
+ key: poi.id,
2097
+ staticClass: "wf-list-item"
2098
+ }, [_vm._t("poi", function () {
2099
+ return [_c('POI', {
2100
+ attrs: {
2101
+ "poi": poi,
2102
+ "showLogo": _vm.showPOILogo,
2103
+ "showName": _vm.showPOIName,
2104
+ "showPathButton": _vm.showPOIPathButton,
2105
+ "showDescription": _vm.showPOIDescription,
2106
+ "showRoomID": _vm.showPOIRoomID,
2107
+ "showFloor": _vm.showPOIFloor
2108
+ }
2109
+ })];
2110
+ }, {
2111
+ "poi": poi
2112
+ })], 2);
2113
+ }), 0) : _vm._e()]);
2114
+ }), 0)]);
2115
+ };
2116
+
1823
2117
  var __vue_staticRenderFns__$j = [];
1824
2118
  /* style */
1825
2119
 
1826
- const __vue_inject_styles__$j = undefined;
2120
+ const __vue_inject_styles__$j = function (inject) {
2121
+ if (!inject) return;
2122
+ inject("data-v-0287fc8b_0", {
2123
+ source: ".wf-groups-menu .wf-list-item[data-v-0287fc8b]{list-style:none}.wf-groups-menu .wf-list[data-v-0287fc8b]{margin:0;padding:0}",
2124
+ map: undefined,
2125
+ media: undefined
2126
+ });
2127
+ };
1827
2128
  /* scoped */
1828
2129
 
1829
- const __vue_scope_id__$j = "data-v-077cd362";
2130
+
2131
+ const __vue_scope_id__$j = "data-v-0287fc8b";
1830
2132
  /* module identifier */
1831
2133
 
1832
2134
  const __vue_module_identifier__$j = undefined;
1833
2135
  /* functional template */
1834
2136
 
1835
2137
  const __vue_is_functional_template__$j = false;
1836
- /* style inject */
1837
-
1838
2138
  /* style inject SSR */
1839
2139
 
1840
2140
  /* style inject shadow dom */
@@ -1842,14 +2142,15 @@ const __vue_is_functional_template__$j = false;
1842
2142
  const __vue_component__$j = /*#__PURE__*/normalizeComponent({
1843
2143
  render: __vue_render__$j,
1844
2144
  staticRenderFns: __vue_staticRenderFns__$j
1845
- }, __vue_inject_styles__$j, __vue_script__$j, __vue_scope_id__$j, __vue_is_functional_template__$j, __vue_module_identifier__$j, false, undefined, undefined, undefined);
2145
+ }, __vue_inject_styles__$j, __vue_script__$j, __vue_scope_id__$j, __vue_is_functional_template__$j, __vue_module_identifier__$j, false, createInjector, undefined, undefined);
1846
2146
 
1847
2147
  //
1848
2148
  var script$i = {
1849
2149
  name: 'GroupsMenu',
1850
2150
  components: {
1851
- Group: __vue_component__$j,
1852
- POI: __vue_component__$n
2151
+ Group: __vue_component__$k,
2152
+ POI: __vue_component__$o,
2153
+ SubGroupMenu: __vue_component__$j
1853
2154
  },
1854
2155
  props: {
1855
2156
  parent: {
@@ -1990,6 +2291,10 @@ var script$i = {
1990
2291
  };
1991
2292
  },
1992
2293
 
2294
+ onSubPOICLick(poi) {
2295
+ this.$emit('poiClicked', poi);
2296
+ },
2297
+
1993
2298
  reset() {
1994
2299
  this.$store.dispatch('wf/SET_CURRENT_GROUP', null);
1995
2300
  },
@@ -1998,9 +2303,13 @@ var script$i = {
1998
2303
  if (subGroups) {
1999
2304
  let groups = [];
2000
2305
 
2306
+ let _g;
2307
+
2001
2308
  for (let g in subGroups) {
2002
- if (this.poiGroups[g] && this.poiGroups[g].getShowInMenu()) {
2003
- groups.push(this.poiGroups[g]);
2309
+ _g = parseInt(subGroups[g]);
2310
+
2311
+ if (this.poiGroups[_g] && this.poiGroups[_g].getShowInMenu()) {
2312
+ groups.push(this.poiGroups[_g]);
2004
2313
  }
2005
2314
  }
2006
2315
 
@@ -2071,28 +2380,27 @@ var __vue_render__$i = function () {
2071
2380
  })];
2072
2381
  }, {
2073
2382
  "group": topic
2074
- })], 2), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
2383
+ })], 2), _vm._v(" "), _c('ul', {
2075
2384
  directives: [{
2076
2385
  name: "show",
2077
2386
  rawName: "v-show",
2078
- value: _vm.current && topic.id == _vm.current.id,
2079
- expression: "current && topic.id == current.id"
2387
+ value: _vm.current && topic.id == _vm.current.id && _vm.subGroups(topic.childGroups).length > 0,
2388
+ expression: "current && topic.id == current.id && subGroups(topic.childGroups).length > 0"
2080
2389
  }]
2081
- }, _vm._l(_vm.subGroups(topic.childGroups), function (subtopic) {
2082
- return _c('li', {
2083
- key: subtopic.id
2084
- }, [_vm._t("subgroup", function () {
2085
- return [_c('Group', {
2086
- attrs: {
2087
- "group": subtopic,
2088
- "showIcon": _vm.showIcon,
2089
- "showPOICount": _vm.showPOICount
2090
- }
2091
- })];
2092
- }, {
2093
- "group": subtopic
2094
- })], 2);
2095
- }), 0) : _vm._e(), _vm._v(" "), topic.pois.length > 0 && _vm.showPOIs ? _c('ul', {
2390
+ }, [_c('SubGroupMenu', {
2391
+ attrs: {
2392
+ "parent": parseInt(topic.id),
2393
+ "showPOICount": _vm.showPOICount,
2394
+ "az": _vm.az,
2395
+ "order": _vm.order,
2396
+ "showIcon": _vm.showIcon,
2397
+ "showPOIs": _vm.showPOIs,
2398
+ "sortPOIs": _vm.sortPOIs
2399
+ },
2400
+ on: {
2401
+ "poiClicked": _vm.onSubPOICLick
2402
+ }
2403
+ })], 1), _vm._v(" "), topic.pois.length > 0 && _vm.showPOIs ? _c('ul', {
2096
2404
  directives: [{
2097
2405
  name: "show",
2098
2406
  rawName: "v-show",
@@ -2135,8 +2443,8 @@ var __vue_staticRenderFns__$i = [];
2135
2443
 
2136
2444
  const __vue_inject_styles__$i = function (inject) {
2137
2445
  if (!inject) return;
2138
- inject("data-v-13cecfd9_0", {
2139
- source: ".wf-groups-menu .wf-list-item[data-v-13cecfd9]{list-style:none}.wf-groups-menu .wf-list[data-v-13cecfd9]{margin:0;padding:0}",
2446
+ inject("data-v-0b585be8_0", {
2447
+ source: ".wf-groups-menu .wf-list-item[data-v-0b585be8]{list-style:none}.wf-groups-menu .wf-list[data-v-0b585be8]{margin:0;padding:0}",
2140
2448
  map: undefined,
2141
2449
  media: undefined
2142
2450
  });
@@ -2144,7 +2452,7 @@ const __vue_inject_styles__$i = function (inject) {
2144
2452
  /* scoped */
2145
2453
 
2146
2454
 
2147
- const __vue_scope_id__$i = "data-v-13cecfd9";
2455
+ const __vue_scope_id__$i = "data-v-0b585be8";
2148
2456
  /* module identifier */
2149
2457
 
2150
2458
  const __vue_module_identifier__$i = undefined;
@@ -2795,7 +3103,7 @@ const __vue_component__$c = /*#__PURE__*/normalizeComponent({
2795
3103
  var script$b = {
2796
3104
  name: 'FilteredMenu',
2797
3105
  components: {
2798
- POI: __vue_component__$n
3106
+ POI: __vue_component__$o
2799
3107
  },
2800
3108
 
2801
3109
  data() {
@@ -2965,7 +3273,7 @@ var script$a = {
2965
3273
  name: 'Search',
2966
3274
  components: {
2967
3275
  OSK: osk_common,
2968
- POI: __vue_component__$n
3276
+ POI: __vue_component__$o
2969
3277
  },
2970
3278
  computed: { ...mapState('wf', ['language', 'reset'])
2971
3279
  },
@@ -4118,14 +4426,18 @@ var script$3 = {
4118
4426
  overrideChar: {
4119
4427
  type: String,
4120
4428
  default: ""
4429
+ },
4430
+ showInMenu: {
4431
+ type: Boolean,
4432
+ default: true
4121
4433
  }
4122
4434
  },
4123
4435
 
4124
4436
  data() {
4125
4437
  return {
4126
- active: "topics",
4127
4438
  currentChar: "",
4128
- alphabet: []
4439
+ alphabet: [],
4440
+ poisWithChar: {}
4129
4441
  };
4130
4442
  },
4131
4443
 
@@ -4140,12 +4452,18 @@ var script$3 = {
4140
4452
  for (let p in this.pois) {
4141
4453
  poi = this.pois[p];
4142
4454
 
4143
- if (poi.getShowInMenu() && poi.getName(this.language) && poi.getName(this.language).length > 0) {
4455
+ if ((!this.showInMenu || poi.getShowInMenu()) && poi.getName(this.language) && poi.getName(this.language).length > 0) {
4144
4456
  char = poi.getName(this.language)[0].toLowerCase();
4145
4457
 
4146
4458
  if (letters.indexOf(char) == -1) {
4147
4459
  letters.push(char);
4148
4460
  }
4461
+
4462
+ if (!this.poisWithChar[char]) {
4463
+ this.poisWithChar[char] = [];
4464
+ }
4465
+
4466
+ this.poisWithChar[char].push(poi);
4149
4467
  }
4150
4468
  }
4151
4469
 
@@ -4161,9 +4479,9 @@ var script$3 = {
4161
4479
 
4162
4480
  },
4163
4481
  methods: {
4164
- onAZ(letter, pois) {
4482
+ onAZ(letter) {
4165
4483
  this.currentChar = letter;
4166
- this.$emit("clicked", letter, pois);
4484
+ this.$emit("clicked", letter, this.poisWithChar[letter]);
4167
4485
  }
4168
4486
 
4169
4487
  }
@@ -4182,13 +4500,13 @@ var __vue_render__$3 = function () {
4182
4500
 
4183
4501
  return _c('ul', {
4184
4502
  staticClass: "wf-component wf-alphabet-menu"
4185
- }, _vm._l(_vm.alphabet, function (l, pois) {
4503
+ }, _vm._l(_vm.alphabet, function (l) {
4186
4504
  return _c('li', {
4187
4505
  key: l,
4188
4506
  class: [_vm.currentChar == l ? 'wf-active' : ''],
4189
4507
  on: {
4190
4508
  "click": function ($event) {
4191
- return _vm.onAZ(l, pois);
4509
+ return _vm.onAZ(l);
4192
4510
  }
4193
4511
  }
4194
4512
  }, [_vm._v(_vm._s(l))]);
@@ -4200,7 +4518,7 @@ var __vue_staticRenderFns__$3 = [];
4200
4518
 
4201
4519
  const __vue_inject_styles__$3 = function (inject) {
4202
4520
  if (!inject) return;
4203
- inject("data-v-68d3e64c_0", {
4521
+ inject("data-v-54232f30_0", {
4204
4522
  source: ".wf-alphabet-menu{list-style:none;padding:0;margin:0}",
4205
4523
  map: undefined,
4206
4524
  media: undefined
@@ -4531,10 +4849,10 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
4531
4849
 
4532
4850
  var components = /*#__PURE__*/Object.freeze({
4533
4851
  __proto__: null,
4534
- WFMap: __vue_component__$o,
4535
- WFAZMenu: __vue_component__$m,
4536
- WFFlagsMenu: __vue_component__$l,
4537
- WFLanguagesMenu: __vue_component__$k,
4852
+ WFMap: __vue_component__$p,
4853
+ WFAZMenu: __vue_component__$n,
4854
+ WFFlagsMenu: __vue_component__$m,
4855
+ WFLanguagesMenu: __vue_component__$l,
4538
4856
  WFGroupsMenu: __vue_component__$i,
4539
4857
  WFGroupPOIsMenu: __vue_component__$h,
4540
4858
  WFBuildingLogo: __vue_component__$g,
@@ -4550,7 +4868,7 @@ var components = /*#__PURE__*/Object.freeze({
4550
4868
  WFBanner: __vue_component__$5,
4551
4869
  WFPageMenu: __vue_component__$4,
4552
4870
  WFAlphabet: __vue_component__$3,
4553
- WFPOI: __vue_component__$n,
4871
+ WFPOI: __vue_component__$o,
4554
4872
  WFPage: __vue_component__$1,
4555
4873
  WFYAH: __vue_component__$f,
4556
4874
  WFBrowser: __vue_component__
@@ -4681,7 +4999,6 @@ var store = {
4681
4999
  state.filteredPOIs = pois;
4682
5000
  },
4683
5001
  SET_PAGES: (state, pages) => {
4684
- console.log('SET_PAGES', pages);
4685
5002
  state.pages = pages;
4686
5003
  },
4687
5004
  RESET: (state, pois) => {
@@ -4721,8 +5038,6 @@ var store = {
4721
5038
  },
4722
5039
  LOAD_PAGES: context => {
4723
5040
  Logistics.getJSON(WayfinderAPI.getURL("pages", "getAll", []), null, function (data) {
4724
- console.log('data', data.data);
4725
-
4726
5041
  if (data && data.data) {
4727
5042
  context.commit('SET_PAGES', Object.freeze(data.data));
4728
5043
  }
@@ -4761,4 +5076,4 @@ const install = function installWayfinderVueComponents(Vue, store) {
4761
5076
  }; // Create module definition for Vue.use()
4762
5077
 
4763
5078
  export default install;
4764
- export { __vue_component__$m as WFAZMenu, __vue_component__$3 as WFAlphabet, __vue_component__$5 as WFBanner, __vue_component__ as WFBrowser, __vue_component__$g as WFBuildingLogo, __vue_component__$b as WFFilteredMenu, __vue_component__$l as WFFlagsMenu, __vue_component__$c as WFFloorsMenu, __vue_component__$h as WFGroupPOIsMenu, __vue_component__$i as WFGroupsMenu, __vue_component__$k as WFLanguagesMenu, __vue_component__$o as WFMap, __vue_component__$n as WFPOI, __vue_component__$1 as WFPage, __vue_component__$4 as WFPageMenu, __vue_component__$6 as WFScrollableArea, __vue_component__$a as WFSearch, __vue_component__$e as WFShortcutsMenu, __vue_component__$8 as WFTab, __vue_component__$7 as WFTabButtons, __vue_component__$9 as WFTabs, __vue_component__$f as WFYAH, __vue_component__$d as WFZoomMenu };
5079
+ export { __vue_component__$n as WFAZMenu, __vue_component__$3 as WFAlphabet, __vue_component__$5 as WFBanner, __vue_component__ as WFBrowser, __vue_component__$g as WFBuildingLogo, __vue_component__$b as WFFilteredMenu, __vue_component__$m as WFFlagsMenu, __vue_component__$c as WFFloorsMenu, __vue_component__$h as WFGroupPOIsMenu, __vue_component__$i as WFGroupsMenu, __vue_component__$l as WFLanguagesMenu, __vue_component__$p as WFMap, __vue_component__$o as WFPOI, __vue_component__$1 as WFPage, __vue_component__$4 as WFPageMenu, __vue_component__$6 as WFScrollableArea, __vue_component__$a as WFSearch, __vue_component__$e as WFShortcutsMenu, __vue_component__$8 as WFTab, __vue_component__$7 as WFTabButtons, __vue_component__$9 as WFTabs, __vue_component__$f as WFYAH, __vue_component__$d as WFZoomMenu };