@3dwayfinder/wayfinder-vue-components 1.0.87 → 1.0.91

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.
@@ -1873,6 +1873,10 @@ const __vue_component__$e = /*#__PURE__*/normalizeComponent({
1873
1873
  var script$d = {
1874
1874
  name: 'GroupsMenu',
1875
1875
  props: {
1876
+ parent: {
1877
+ type: Object,
1878
+ default: null
1879
+ },
1876
1880
  showPOICount: {
1877
1881
  type: Boolean,
1878
1882
  default: false
@@ -1888,6 +1892,30 @@ var script$d = {
1888
1892
  showPOIs: {
1889
1893
  type: Boolean,
1890
1894
  default: false
1895
+ },
1896
+ showPOILogo: {
1897
+ type: Boolean,
1898
+ default: false
1899
+ },
1900
+ showPOIName: {
1901
+ type: Boolean,
1902
+ default: true
1903
+ },
1904
+ showPOIPathButton: {
1905
+ type: Boolean,
1906
+ default: false
1907
+ },
1908
+ showPOIDescription: {
1909
+ type: Boolean,
1910
+ default: false
1911
+ },
1912
+ showPOIRoomID: {
1913
+ type: Boolean,
1914
+ default: false
1915
+ },
1916
+ showPOIFloor: {
1917
+ type: Boolean,
1918
+ default: false
1891
1919
  }
1892
1920
  },
1893
1921
 
@@ -1903,9 +1931,17 @@ var script$d = {
1903
1931
  let arr = []; // Copy arr for sorting
1904
1932
 
1905
1933
  let topic;
1934
+ let groups = this.poiGroups;
1935
+
1936
+ if (this.parent && this.parent.id) {
1937
+
1938
+ if (this.poiGroups[this.parent.id]) {
1939
+ this.poiGroups[this.parent.id];
1940
+ }
1941
+ }
1906
1942
 
1907
- for (let i in this.poiGroups) {
1908
- topic = this.poiGroups[i];
1943
+ for (let i in groups) {
1944
+ topic = groups[i];
1909
1945
 
1910
1946
  if (topic && topic.getShowInMenu() && topic.getName(this.language)) {
1911
1947
  arr.push(topic);
@@ -1988,7 +2024,7 @@ var __vue_render__$d = function () {
1988
2024
 
1989
2025
  return _c('div', {
1990
2026
  staticClass: "wf-component topics-menu"
1991
- }, [_vm.current ? _c('h2', [_vm._v(_vm._s(_vm.current.getName("et")))]) : _vm._e(), _vm._v(" "), _c('ul', {
2027
+ }, [_c('ul', {
1992
2028
  staticClass: "list"
1993
2029
  }, _vm._l(_vm.sortedGroups, function (topic) {
1994
2030
  return _c('li', {
@@ -2006,14 +2042,18 @@ var __vue_render__$d = function () {
2006
2042
  arg: "tap"
2007
2043
  }],
2008
2044
  staticClass: "item-content"
2009
- }, [_c('label', {
2010
- staticClass: "name",
2011
- domProps: {
2012
- "innerHTML": _vm._s(topic.getName(_vm.language))
2013
- }
2014
- }), _vm._v(" "), _vm.showPOICount ? _c('label', {
2015
- staticClass: "count"
2016
- }, [_vm._v(_vm._s(topic.pois.length))]) : _vm._e()]), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
2045
+ }, [_vm._t("default", function () {
2046
+ return [_c('label', {
2047
+ staticClass: "name",
2048
+ domProps: {
2049
+ "innerHTML": _vm._s(topic.getName(_vm.language))
2050
+ }
2051
+ }), _vm._v(" "), _vm.showPOICount ? _c('label', {
2052
+ staticClass: "count"
2053
+ }, [_vm._v(_vm._s(topic.pois.length))]) : _vm._e()];
2054
+ }, {
2055
+ "group": topic
2056
+ })], 2), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
2017
2057
  directives: [{
2018
2058
  name: "show",
2019
2059
  rawName: "v-show",
@@ -2023,14 +2063,18 @@ var __vue_render__$d = function () {
2023
2063
  }, _vm._l(_vm.subGroups(topic.childGroups), function (subtopic) {
2024
2064
  return _c('li', {
2025
2065
  key: subtopic.id
2026
- }, [_c('label', {
2027
- staticClass: "name",
2028
- domProps: {
2029
- "innerHTML": _vm._s(subtopic.getName(_vm.language))
2030
- }
2031
- }), _vm._v(" "), _vm.showPOICount ? _c('label', {
2032
- staticClass: "count"
2033
- }, [_vm._v(_vm._s(subtopic.pois.length))]) : _vm._e()]);
2066
+ }, [_vm._t("subgroup", function () {
2067
+ return [_c('label', {
2068
+ staticClass: "name",
2069
+ domProps: {
2070
+ "innerHTML": _vm._s(subtopic.getName(_vm.language))
2071
+ }
2072
+ }), _vm._v(" "), _vm.showPOICount ? _c('label', {
2073
+ staticClass: "count"
2074
+ }, [_vm._v(_vm._s(subtopic.pois.length))]) : _vm._e()];
2075
+ }, {
2076
+ "group": subtopic
2077
+ })], 2);
2034
2078
  }), 0) : _vm._e(), _vm._v(" "), topic.pois.length > 0 && _vm.showPOIs ? _c('ul', {
2035
2079
  directives: [{
2036
2080
  name: "show",
@@ -2050,12 +2094,21 @@ var __vue_render__$d = function () {
2050
2094
  }],
2051
2095
  key: poi.id,
2052
2096
  staticClass: "item list-item"
2053
- }, [_c('label', {
2054
- staticClass: "name",
2055
- domProps: {
2056
- "innerHTML": _vm._s(poi.getName(_vm.language))
2057
- }
2058
- })]);
2097
+ }, [_vm._t("poi", function () {
2098
+ return [_c('POI', {
2099
+ attrs: {
2100
+ "poi": poi,
2101
+ "showLogo": _vm.showPOILogo,
2102
+ "showName": _vm.showPOIName,
2103
+ "showPathButton": _vm.showPOIPathButton,
2104
+ "showDescription": _vm.showPOIDescription,
2105
+ "showRoomID": _vm.showPOIRoomID,
2106
+ "showFloor": _vm.showPOIFloor
2107
+ }
2108
+ })];
2109
+ }, {
2110
+ "poi": poi
2111
+ })], 2);
2059
2112
  }), 0) : _vm._e()]);
2060
2113
  }), 0)]);
2061
2114
  };
@@ -2065,8 +2118,8 @@ var __vue_staticRenderFns__$d = [];
2065
2118
 
2066
2119
  const __vue_inject_styles__$d = function (inject) {
2067
2120
  if (!inject) return;
2068
- inject("data-v-e2495120_0", {
2069
- source: ".az-menu[data-v-e2495120]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-e2495120]{list-style:none}.az-menu ul[data-v-e2495120]{margin:0;padding:0}",
2121
+ inject("data-v-70b88472_0", {
2122
+ source: ".az-menu[data-v-70b88472]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-70b88472]{list-style:none}.az-menu ul[data-v-70b88472]{margin:0;padding:0}",
2070
2123
  map: undefined,
2071
2124
  media: undefined
2072
2125
  });
@@ -2074,7 +2127,7 @@ const __vue_inject_styles__$d = function (inject) {
2074
2127
  /* scoped */
2075
2128
 
2076
2129
 
2077
- const __vue_scope_id__$d = "data-v-e2495120";
2130
+ const __vue_scope_id__$d = "data-v-70b88472";
2078
2131
  /* module identifier */
2079
2132
 
2080
2133
  const __vue_module_identifier__$d = undefined;
@@ -2962,98 +3015,405 @@ const __vue_component__$6 = /*#__PURE__*/normalizeComponent({
2962
3015
  staticRenderFns: __vue_staticRenderFns__$6
2963
3016
  }, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, createInjector, undefined, undefined);
2964
3017
 
2965
- /*!
2966
- * better-scroll / core
2967
- * (c) 2016-2019 ustbhuangyi
2968
- * Released under the MIT License.
2969
- */
2970
- /*! *****************************************************************************
2971
- Copyright (c) Microsoft Corporation. All rights reserved.
2972
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
2973
- this file except in compliance with the License. You may obtain a copy of the
2974
- License at http://www.apache.org/licenses/LICENSE-2.0
3018
+ //
3019
+ //
3020
+ //
3021
+ //
3022
+ //
3023
+ //
3024
+ //
3025
+ //
3026
+ var script$5 = {
3027
+ name: 'Tabs',
3028
+ props: {
3029
+ activeTab: '',
3030
+ animate: {
3031
+ type: String,
3032
+ default: "none"
3033
+ }
3034
+ },
3035
+ data: () => ({
3036
+ tabs: [],
3037
+ activeTabIndex: 0,
3038
+ currentTab: null
3039
+ }),
2975
3040
 
2976
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
2977
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
2978
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
2979
- MERCHANTABLITY OR NON-INFRINGEMENT.
3041
+ created() {
3042
+ this.tabs = this.$children;
3043
+ },
2980
3044
 
2981
- See the Apache Version 2.0 License for specific language governing permissions
2982
- and limitations under the License.
2983
- ***************************************************************************** */
2984
- /* global Reflect, Promise */
3045
+ mounted() {
3046
+ if (this.$props.activeTab) {
3047
+ this.activate(this.$props.activeTab);
3048
+ } else {
3049
+ console.log('no active tab');
3050
+ }
3051
+ },
2985
3052
 
2986
- var extendStatics = function(d, b) {
2987
- extendStatics = Object.setPrototypeOf ||
2988
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2989
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2990
- return extendStatics(d, b);
3053
+ watch: {
3054
+ activeTab: function (newVal) {
3055
+ // watch it
3056
+ if (newVal) {
3057
+ this.activate(newVal);
3058
+ }
3059
+ }
3060
+ },
3061
+ methods: {
3062
+ activate() {
3063
+ this.currentTab = null;
3064
+
3065
+ for (var tab in this.tabs) {
3066
+ if (this.tabs[tab].name == this.$props.activeTab) {
3067
+ this.tabs[tab].isActive = true;
3068
+ this.$emit('tabChanged', this.tabs[tab]);
3069
+ this.currentTab = this.tabs[tab];
3070
+ this.activeTabIndex = tab;
3071
+ } else {
3072
+ this.tabs[tab].isActive = false;
3073
+ }
3074
+ }
3075
+ }
3076
+
3077
+ }
2991
3078
  };
2992
3079
 
2993
- function __extends(d, b) {
2994
- extendStatics(d, b);
2995
- function __() { this.constructor = d; }
2996
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2997
- }
3080
+ /* script */
3081
+ const __vue_script__$5 = script$5;
3082
+ /* template */
2998
3083
 
2999
- var __assign = function() {
3000
- __assign = Object.assign || function __assign(t) {
3001
- for (var s, i = 1, n = arguments.length; i < n; i++) {
3002
- s = arguments[i];
3003
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3004
- }
3005
- return t;
3006
- };
3007
- return __assign.apply(this, arguments);
3084
+ var __vue_render__$5 = function () {
3085
+ var _vm = this;
3086
+
3087
+ var _h = _vm.$createElement;
3088
+
3089
+ var _c = _vm._self._c || _h;
3090
+
3091
+ return _c('div', {
3092
+ ref: "tabs",
3093
+ staticClass: "wf-component tabs",
3094
+ class: ['tabs-' + _vm.activeTab, 'tabs-index-' + _vm.activeTabIndex, 'tabs-animate-' + _vm.animate]
3095
+ }, [_c('div', {
3096
+ staticClass: "tabs-content"
3097
+ }, [_vm._t("default")], 2)]);
3008
3098
  };
3009
3099
 
3010
- function warn$2(msg) {
3011
- console.error("[BScroll warn]: " + msg);
3012
- }
3100
+ var __vue_staticRenderFns__$5 = [];
3101
+ /* style */
3013
3102
 
3014
- // ssr support
3015
- var inBrowser$2 = typeof window !== 'undefined';
3016
- var ua$2 = inBrowser$2 && navigator.userAgent.toLowerCase();
3017
- ua$2 && /wechatdevtools/.test(ua$2);
3018
- var isAndroid = ua$2 && ua$2.indexOf('android') > 0;
3103
+ const __vue_inject_styles__$5 = function (inject) {
3104
+ if (!inject) return;
3105
+ inject("data-v-38607192_0", {
3106
+ source: ".tabs[data-v-38607192]{overflow:hidden;position:relative;width:100%;height:100%}.tabs-content[data-v-38607192]{height:100%;width:auto;display:flex;flex-direction:row;margin-left:0;transform:translateX(0) translateY(0)}.tabs.tabs-animate-vertical .tabs-content[data-v-38607192]{flex-direction:column}.tab[data-v-38607192]{opacity:0;transition:opacity .3s ease-out .5s}.tab.active[data-v-38607192]{opacity:1;transition:opacity .3s ease-in}.tabs.tabs-animate-horisontal .tabs-content[data-v-38607192],.tabs.tabs-animate-vertical .tabs-content[data-v-38607192]{transition:transform .5s ease-in-out .2s}.tabs-index-1 .tabs-content[data-v-38607192]{transform:translateX(-100%)}.tabs-index-2 .tabs-content[data-v-38607192]{transform:translateX(-200%)}.tabs-index-3 .tabs-content[data-v-38607192]{transform:translateX(-300%)}.tabs-index-4 .tabs-content[data-v-38607192]{transform:translateX(-400%)}.tabs-index-5 .tabs-content[data-v-38607192]{transform:translateX(-500%)}.tabs.tabs-animate-vertical.tabs-index-1 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-100%)!important}.tabs.tabs-animate-vertical.tabs-index-2 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-200%)!important}.tabs.tabs-animate-vertical.tabs-index-3 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-300%)!important}.tabs.tabs-animate-vertical.tabs-index-4 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-400%)!important}.tabs.tabs-animate-vertical.tabs-index-5 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-500%)!important}",
3107
+ map: undefined,
3108
+ media: undefined
3109
+ });
3110
+ };
3111
+ /* scoped */
3019
3112
 
3020
- function getNow() {
3021
- return window.performance && window.performance.now
3022
- ? window.performance.now() + window.performance.timing.navigationStart
3023
- : +new Date();
3024
- }
3025
- function extend$1(target) {
3026
- var rest = [];
3027
- for (var _i = 1; _i < arguments.length; _i++) {
3028
- rest[_i - 1] = arguments[_i];
3029
- }
3030
- for (var i = 0; i < rest.length; i++) {
3031
- var source = rest[i];
3032
- for (var key in source) {
3033
- target[key] = source[key];
3034
- }
3035
- }
3036
- return target;
3037
- }
3038
- function isUndef(v) {
3039
- return v === undefined || v === null;
3040
- }
3041
3113
 
3042
- var elementStyle$2 = (inBrowser$2 &&
3043
- document.createElement('div').style);
3044
- var vendor$2 = (function () {
3045
- if (!inBrowser$2) {
3046
- return false;
3114
+ const __vue_scope_id__$5 = "data-v-38607192";
3115
+ /* module identifier */
3116
+
3117
+ const __vue_module_identifier__$5 = undefined;
3118
+ /* functional template */
3119
+
3120
+ const __vue_is_functional_template__$5 = false;
3121
+ /* style inject SSR */
3122
+
3123
+ /* style inject shadow dom */
3124
+
3125
+ const __vue_component__$5 = /*#__PURE__*/normalizeComponent({
3126
+ render: __vue_render__$5,
3127
+ staticRenderFns: __vue_staticRenderFns__$5
3128
+ }, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, createInjector, undefined, undefined);
3129
+
3130
+ //
3131
+ //
3132
+ //
3133
+ //
3134
+ //
3135
+ //
3136
+ var script$4 = {
3137
+ name: 'Tab',
3138
+ props: {
3139
+ name: ''
3140
+ },
3141
+ data: () => ({
3142
+ isActive: false,
3143
+ isVisible: true
3144
+ }),
3145
+
3146
+ created() {},
3147
+
3148
+ methods: {}
3149
+ };
3150
+
3151
+ /* script */
3152
+ const __vue_script__$4 = script$4;
3153
+ /* template */
3154
+
3155
+ var __vue_render__$4 = function () {
3156
+ var _vm = this;
3157
+
3158
+ var _h = _vm.$createElement;
3159
+
3160
+ var _c = _vm._self._c || _h;
3161
+
3162
+ return _c('section', {
3163
+ staticClass: "wf-component tab",
3164
+ class: {
3165
+ 'active': _vm.isActive
3047
3166
  }
3048
- var transformNames = {
3049
- webkit: 'webkitTransform',
3050
- Moz: 'MozTransform',
3051
- O: 'OTransform',
3052
- ms: 'msTransform',
3053
- standard: 'transform'
3054
- };
3055
- for (var key in transformNames) {
3056
- if (elementStyle$2[transformNames[key]] !== undefined) {
3167
+ }, [_vm._t("default")], 2);
3168
+ };
3169
+
3170
+ var __vue_staticRenderFns__$4 = [];
3171
+ /* style */
3172
+
3173
+ const __vue_inject_styles__$4 = function (inject) {
3174
+ if (!inject) return;
3175
+ inject("data-v-d4663578_0", {
3176
+ source: ".tab[data-v-d4663578]{width:100%;height:100%;overflow:hidden;flex-grow:1;flex-shrink:0}",
3177
+ map: undefined,
3178
+ media: undefined
3179
+ });
3180
+ };
3181
+ /* scoped */
3182
+
3183
+
3184
+ const __vue_scope_id__$4 = "data-v-d4663578";
3185
+ /* module identifier */
3186
+
3187
+ const __vue_module_identifier__$4 = undefined;
3188
+ /* functional template */
3189
+
3190
+ const __vue_is_functional_template__$4 = false;
3191
+ /* style inject SSR */
3192
+
3193
+ /* style inject shadow dom */
3194
+
3195
+ const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
3196
+ render: __vue_render__$4,
3197
+ staticRenderFns: __vue_staticRenderFns__$4
3198
+ }, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, createInjector, undefined, undefined);
3199
+
3200
+ //
3201
+ var script$3 = {
3202
+ name: 'Tabs',
3203
+ computed: { ...mapState(['currentTab', 'searchVisible', 'mobile', 'landscape', 'shortcuts', 'language'])
3204
+ },
3205
+
3206
+ data() {
3207
+ return {
3208
+ toilet: false,
3209
+ toiletsIcon: false
3210
+ };
3211
+ },
3212
+
3213
+ methods: {
3214
+ switchTab(tab) {
3215
+ this.$emit('switchTab', tab);
3216
+ }
3217
+
3218
+ }
3219
+ };
3220
+
3221
+ /* script */
3222
+ const __vue_script__$3 = script$3;
3223
+ /* template */
3224
+
3225
+ var __vue_render__$3 = function () {
3226
+ var _vm = this;
3227
+
3228
+ var _h = _vm.$createElement;
3229
+
3230
+ var _c = _vm._self._c || _h;
3231
+
3232
+ return _c('div', {
3233
+ staticClass: "wf-component tab-buttons"
3234
+ }, [_c('div', {
3235
+ directives: [{
3236
+ name: "show",
3237
+ rawName: "v-show",
3238
+ value: _vm.mobile && !_vm.landscape,
3239
+ expression: "mobile && !landscape"
3240
+ }],
3241
+ staticClass: "item tab-map",
3242
+ class: {
3243
+ active: _vm.currentTab == 'map'
3244
+ },
3245
+ attrs: {
3246
+ "data-translation-element": "map"
3247
+ },
3248
+ on: {
3249
+ "click": function ($event) {
3250
+ return _vm.switchTab('map');
3251
+ }
3252
+ }
3253
+ }), _vm._v(" "), _c('div', {
3254
+ staticClass: "item tab-topics",
3255
+ class: {
3256
+ active: _vm.currentTab == 'groups' || _vm.currentTab == 'group-pois'
3257
+ },
3258
+ attrs: {
3259
+ "data-translation-element": "topics"
3260
+ },
3261
+ on: {
3262
+ "click": function ($event) {
3263
+ return _vm.switchTab('groups');
3264
+ }
3265
+ }
3266
+ }), _vm._v(" "), _c('div', {
3267
+ staticClass: "item tab-az",
3268
+ class: {
3269
+ active: _vm.currentTab == 'az'
3270
+ },
3271
+ attrs: {
3272
+ "data-translation-element": "az"
3273
+ },
3274
+ on: {
3275
+ "click": function ($event) {
3276
+ return _vm.switchTab('az');
3277
+ }
3278
+ }
3279
+ }), _vm._v(" "), _c('div', {
3280
+ staticClass: "item tab-search",
3281
+ class: {
3282
+ active: _vm.currentTab == 'search'
3283
+ },
3284
+ attrs: {
3285
+ "data-translation-element": "search"
3286
+ },
3287
+ on: {
3288
+ "click": function ($event) {
3289
+ return _vm.switchTab('search');
3290
+ }
3291
+ }
3292
+ })]);
3293
+ };
3294
+
3295
+ var __vue_staticRenderFns__$3 = [];
3296
+ /* style */
3297
+
3298
+ const __vue_inject_styles__$3 = function (inject) {
3299
+ if (!inject) return;
3300
+ inject("data-v-d346ebf2_0", {
3301
+ source: ".tab-buttons[data-v-d346ebf2]{display:flex;align-content:stretch;justify-content:space-between}.tab-buttons .item[data-v-d346ebf2]{background-size:auto 30%;background-repeat:no-repeat}",
3302
+ map: undefined,
3303
+ media: undefined
3304
+ });
3305
+ };
3306
+ /* scoped */
3307
+
3308
+
3309
+ const __vue_scope_id__$3 = "data-v-d346ebf2";
3310
+ /* module identifier */
3311
+
3312
+ const __vue_module_identifier__$3 = undefined;
3313
+ /* functional template */
3314
+
3315
+ const __vue_is_functional_template__$3 = false;
3316
+ /* style inject SSR */
3317
+
3318
+ /* style inject shadow dom */
3319
+
3320
+ const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
3321
+ render: __vue_render__$3,
3322
+ staticRenderFns: __vue_staticRenderFns__$3
3323
+ }, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, createInjector, undefined, undefined);
3324
+
3325
+ /*!
3326
+ * better-scroll / core
3327
+ * (c) 2016-2019 ustbhuangyi
3328
+ * Released under the MIT License.
3329
+ */
3330
+ /*! *****************************************************************************
3331
+ Copyright (c) Microsoft Corporation. All rights reserved.
3332
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
3333
+ this file except in compliance with the License. You may obtain a copy of the
3334
+ License at http://www.apache.org/licenses/LICENSE-2.0
3335
+
3336
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
3337
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
3338
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
3339
+ MERCHANTABLITY OR NON-INFRINGEMENT.
3340
+
3341
+ See the Apache Version 2.0 License for specific language governing permissions
3342
+ and limitations under the License.
3343
+ ***************************************************************************** */
3344
+ /* global Reflect, Promise */
3345
+
3346
+ var extendStatics = function(d, b) {
3347
+ extendStatics = Object.setPrototypeOf ||
3348
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3349
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
3350
+ return extendStatics(d, b);
3351
+ };
3352
+
3353
+ function __extends(d, b) {
3354
+ extendStatics(d, b);
3355
+ function __() { this.constructor = d; }
3356
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3357
+ }
3358
+
3359
+ var __assign = function() {
3360
+ __assign = Object.assign || function __assign(t) {
3361
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
3362
+ s = arguments[i];
3363
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3364
+ }
3365
+ return t;
3366
+ };
3367
+ return __assign.apply(this, arguments);
3368
+ };
3369
+
3370
+ function warn$2(msg) {
3371
+ console.error("[BScroll warn]: " + msg);
3372
+ }
3373
+
3374
+ // ssr support
3375
+ var inBrowser$2 = typeof window !== 'undefined';
3376
+ var ua$2 = inBrowser$2 && navigator.userAgent.toLowerCase();
3377
+ ua$2 && /wechatdevtools/.test(ua$2);
3378
+ var isAndroid = ua$2 && ua$2.indexOf('android') > 0;
3379
+
3380
+ function getNow() {
3381
+ return window.performance && window.performance.now
3382
+ ? window.performance.now() + window.performance.timing.navigationStart
3383
+ : +new Date();
3384
+ }
3385
+ function extend$1(target) {
3386
+ var rest = [];
3387
+ for (var _i = 1; _i < arguments.length; _i++) {
3388
+ rest[_i - 1] = arguments[_i];
3389
+ }
3390
+ for (var i = 0; i < rest.length; i++) {
3391
+ var source = rest[i];
3392
+ for (var key in source) {
3393
+ target[key] = source[key];
3394
+ }
3395
+ }
3396
+ return target;
3397
+ }
3398
+ function isUndef(v) {
3399
+ return v === undefined || v === null;
3400
+ }
3401
+
3402
+ var elementStyle$2 = (inBrowser$2 &&
3403
+ document.createElement('div').style);
3404
+ var vendor$2 = (function () {
3405
+ if (!inBrowser$2) {
3406
+ return false;
3407
+ }
3408
+ var transformNames = {
3409
+ webkit: 'webkitTransform',
3410
+ Moz: 'MozTransform',
3411
+ O: 'OTransform',
3412
+ ms: 'msTransform',
3413
+ standard: 'transform'
3414
+ };
3415
+ for (var key in transformNames) {
3416
+ if (elementStyle$2[transformNames[key]] !== undefined) {
3057
3417
  return key;
3058
3418
  }
3059
3419
  }
@@ -6021,354 +6381,6 @@ var MouseWheel = /** @class */ (function () {
6021
6381
  return MouseWheel;
6022
6382
  }());
6023
6383
 
6024
- //
6025
- BScroll.use(ScrollBar);
6026
- BScroll.use(MouseWheel);
6027
- var script$5 = {
6028
- name: 'Tabs',
6029
- props: {
6030
- activeTab: ''
6031
- },
6032
- data: () => ({
6033
- tabs: [],
6034
- activeTabIndex: 0,
6035
- currentTab: null,
6036
- scroll: null,
6037
- scrollOptions: {
6038
- scrollbar: {
6039
- fade: false,
6040
- interactive: true
6041
- },
6042
- click: true,
6043
- mouseWheel: {
6044
- speed: 20,
6045
- invert: false
6046
- }
6047
- }
6048
- }),
6049
-
6050
- created() {
6051
- this.tabs = this.$children;
6052
- },
6053
-
6054
- updated() {
6055
- this.$nextTick(() => {
6056
- if (this.scroll && this.currentTab != null) {
6057
- this.scroll.refresh();
6058
- }
6059
- });
6060
- },
6061
-
6062
- mounted() {
6063
- if (this.$props.activeTab) {
6064
- this.activate(this.$props.activeTab);
6065
- } else {
6066
- console.log('no active tab');
6067
- }
6068
-
6069
- this.$nextTick(() => {
6070
- if (this.currentTab != null) {
6071
- this.scroll = new BScroll(this.$refs.tabs, this.scrollOptions);
6072
- }
6073
- });
6074
- },
6075
-
6076
- watch: {
6077
- activeTab: function (newVal) {
6078
- // watch it
6079
- if (newVal) {
6080
- this.activate(newVal);
6081
- }
6082
- }
6083
- },
6084
- methods: {
6085
- activate() {
6086
- this.currentTab = null;
6087
-
6088
- for (var tab in this.tabs) {
6089
- console.log('tab', tab);
6090
-
6091
- if (this.tabs[tab].name == this.$props.activeTab) {
6092
- this.tabs[tab].isActive = true;
6093
- this.$emit('tabChanged', this.tabs[tab]);
6094
- this.currentTab = this.tabs[tab];
6095
- this.activeTabIndex = tab;
6096
- } else {
6097
- this.tabs[tab].isActive = false;
6098
- }
6099
- }
6100
-
6101
- if (this.$props.activeTab !== "search") {
6102
- this.makeScroll();
6103
- }
6104
- },
6105
-
6106
- makeScroll() {
6107
- this.$nextTick(() => {
6108
- this.$nextTick(() => {
6109
- if (this.scroll) {
6110
- this.scroll.destroy();
6111
- this.scroll = null;
6112
- }
6113
-
6114
- if (this.currentTab != null) {
6115
- this.scroll = new BScroll(this.$refs.tabs, this.scrollOptions);
6116
- }
6117
- });
6118
- });
6119
- },
6120
-
6121
- move() {//console.log('move');
6122
- }
6123
-
6124
- }
6125
- };
6126
-
6127
- /* script */
6128
- const __vue_script__$5 = script$5;
6129
- /* template */
6130
-
6131
- var __vue_render__$5 = function () {
6132
- var _vm = this;
6133
-
6134
- var _h = _vm.$createElement;
6135
-
6136
- var _c = _vm._self._c || _h;
6137
-
6138
- return _c('div', {
6139
- ref: "tabs",
6140
- staticClass: "wf-component tabs",
6141
- class: ['tabs-' + _vm.activeTab, 'tabs-index-' + _vm.activeTabIndex]
6142
- }, [_c('div', {
6143
- staticClass: "tabs-content"
6144
- }, [_vm._t("default")], 2)]);
6145
- };
6146
-
6147
- var __vue_staticRenderFns__$5 = [];
6148
- /* style */
6149
-
6150
- const __vue_inject_styles__$5 = function (inject) {
6151
- if (!inject) return;
6152
- inject("data-v-31904bda_0", {
6153
- source: ".tabs[data-v-31904bda]{overflow:hidden;position:relative;width:100%;height:100%}.tabs-content[data-v-31904bda]{height:100%;width:auto;display:flex;flex-direction:row;margin-left:0;transform:translateX(0);transition:transform .5s ease-in-out}.tabs-index-1 .tabs-content[data-v-31904bda]{transform:translateX(-100%)}.tabs-index-2 .tabs-content[data-v-31904bda]{transform:translateX(-200%)}.tabs-index-3 .tabs-content[data-v-31904bda]{transform:translateX(-300%)}.tabs-index-4 .tabs-content[data-v-31904bda]{transform:translateX(-400%)}.tabs-index-5 .tabs-content[data-v-31904bda]{transform:translateX(-500%)}",
6154
- map: undefined,
6155
- media: undefined
6156
- });
6157
- };
6158
- /* scoped */
6159
-
6160
-
6161
- const __vue_scope_id__$5 = "data-v-31904bda";
6162
- /* module identifier */
6163
-
6164
- const __vue_module_identifier__$5 = undefined;
6165
- /* functional template */
6166
-
6167
- const __vue_is_functional_template__$5 = false;
6168
- /* style inject SSR */
6169
-
6170
- /* style inject shadow dom */
6171
-
6172
- const __vue_component__$5 = /*#__PURE__*/normalizeComponent({
6173
- render: __vue_render__$5,
6174
- staticRenderFns: __vue_staticRenderFns__$5
6175
- }, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, createInjector, undefined, undefined);
6176
-
6177
- //
6178
- //
6179
- //
6180
- //
6181
- //
6182
- //
6183
- var script$4 = {
6184
- name: 'Tab',
6185
- props: {
6186
- name: ''
6187
- },
6188
- data: () => ({
6189
- isActive: false,
6190
- isVisible: true
6191
- }),
6192
-
6193
- created() {},
6194
-
6195
- methods: {}
6196
- };
6197
-
6198
- /* script */
6199
- const __vue_script__$4 = script$4;
6200
- /* template */
6201
-
6202
- var __vue_render__$4 = function () {
6203
- var _vm = this;
6204
-
6205
- var _h = _vm.$createElement;
6206
-
6207
- var _c = _vm._self._c || _h;
6208
-
6209
- return _c('section', {
6210
- staticClass: "wf-component tab",
6211
- class: {
6212
- 'active': _vm.isActive
6213
- }
6214
- }, [_vm._t("default")], 2);
6215
- };
6216
-
6217
- var __vue_staticRenderFns__$4 = [];
6218
- /* style */
6219
-
6220
- const __vue_inject_styles__$4 = function (inject) {
6221
- if (!inject) return;
6222
- inject("data-v-d4663578_0", {
6223
- source: ".tab[data-v-d4663578]{width:100%;height:100%;overflow:hidden;flex-grow:1;flex-shrink:0}",
6224
- map: undefined,
6225
- media: undefined
6226
- });
6227
- };
6228
- /* scoped */
6229
-
6230
-
6231
- const __vue_scope_id__$4 = "data-v-d4663578";
6232
- /* module identifier */
6233
-
6234
- const __vue_module_identifier__$4 = undefined;
6235
- /* functional template */
6236
-
6237
- const __vue_is_functional_template__$4 = false;
6238
- /* style inject SSR */
6239
-
6240
- /* style inject shadow dom */
6241
-
6242
- const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
6243
- render: __vue_render__$4,
6244
- staticRenderFns: __vue_staticRenderFns__$4
6245
- }, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, createInjector, undefined, undefined);
6246
-
6247
- //
6248
- var script$3 = {
6249
- name: 'Tabs',
6250
- computed: { ...mapState(['currentTab', 'searchVisible', 'mobile', 'landscape', 'shortcuts', 'language'])
6251
- },
6252
-
6253
- data() {
6254
- return {
6255
- toilet: false,
6256
- toiletsIcon: false
6257
- };
6258
- },
6259
-
6260
- methods: {
6261
- switchTab(tab) {
6262
- this.$emit('switchTab', tab);
6263
- }
6264
-
6265
- }
6266
- };
6267
-
6268
- /* script */
6269
- const __vue_script__$3 = script$3;
6270
- /* template */
6271
-
6272
- var __vue_render__$3 = function () {
6273
- var _vm = this;
6274
-
6275
- var _h = _vm.$createElement;
6276
-
6277
- var _c = _vm._self._c || _h;
6278
-
6279
- return _c('div', {
6280
- staticClass: "wf-component tab-buttons"
6281
- }, [_c('div', {
6282
- directives: [{
6283
- name: "show",
6284
- rawName: "v-show",
6285
- value: _vm.mobile && !_vm.landscape,
6286
- expression: "mobile && !landscape"
6287
- }],
6288
- staticClass: "item tab-map",
6289
- class: {
6290
- active: _vm.currentTab == 'map'
6291
- },
6292
- attrs: {
6293
- "data-translation-element": "map"
6294
- },
6295
- on: {
6296
- "click": function ($event) {
6297
- return _vm.switchTab('map');
6298
- }
6299
- }
6300
- }), _vm._v(" "), _c('div', {
6301
- staticClass: "item tab-topics",
6302
- class: {
6303
- active: _vm.currentTab == 'groups' || _vm.currentTab == 'group-pois'
6304
- },
6305
- attrs: {
6306
- "data-translation-element": "topics"
6307
- },
6308
- on: {
6309
- "click": function ($event) {
6310
- return _vm.switchTab('groups');
6311
- }
6312
- }
6313
- }), _vm._v(" "), _c('div', {
6314
- staticClass: "item tab-az",
6315
- class: {
6316
- active: _vm.currentTab == 'az'
6317
- },
6318
- attrs: {
6319
- "data-translation-element": "az"
6320
- },
6321
- on: {
6322
- "click": function ($event) {
6323
- return _vm.switchTab('az');
6324
- }
6325
- }
6326
- }), _vm._v(" "), _c('div', {
6327
- staticClass: "item tab-search",
6328
- class: {
6329
- active: _vm.currentTab == 'search'
6330
- },
6331
- attrs: {
6332
- "data-translation-element": "search"
6333
- },
6334
- on: {
6335
- "click": function ($event) {
6336
- return _vm.switchTab('search');
6337
- }
6338
- }
6339
- })]);
6340
- };
6341
-
6342
- var __vue_staticRenderFns__$3 = [];
6343
- /* style */
6344
-
6345
- const __vue_inject_styles__$3 = function (inject) {
6346
- if (!inject) return;
6347
- inject("data-v-d346ebf2_0", {
6348
- source: ".tab-buttons[data-v-d346ebf2]{display:flex;align-content:stretch;justify-content:space-between}.tab-buttons .item[data-v-d346ebf2]{background-size:auto 30%;background-repeat:no-repeat}",
6349
- map: undefined,
6350
- media: undefined
6351
- });
6352
- };
6353
- /* scoped */
6354
-
6355
-
6356
- const __vue_scope_id__$3 = "data-v-d346ebf2";
6357
- /* module identifier */
6358
-
6359
- const __vue_module_identifier__$3 = undefined;
6360
- /* functional template */
6361
-
6362
- const __vue_is_functional_template__$3 = false;
6363
- /* style inject SSR */
6364
-
6365
- /* style inject shadow dom */
6366
-
6367
- const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
6368
- render: __vue_render__$3,
6369
- staticRenderFns: __vue_staticRenderFns__$3
6370
- }, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, createInjector, undefined, undefined);
6371
-
6372
6384
  //
6373
6385
  BScroll.use(ScrollBar);
6374
6386
  BScroll.use(MouseWheel);
@@ -6848,8 +6860,8 @@ var __vue_staticRenderFns__ = [];
6848
6860
 
6849
6861
  const __vue_inject_styles__ = function (inject) {
6850
6862
  if (!inject) return;
6851
- inject("data-v-22dc94ab_0", {
6852
- source: ".wf-browser iframe{width:100%;height:100%;border:none}",
6863
+ inject("data-v-3de4e776_0", {
6864
+ source: ".wf-browser,.wf-browser iframe{width:100%;height:100%;border:none}",
6853
6865
  map: undefined,
6854
6866
  media: undefined
6855
6867
  });