@3dwayfinder/wayfinder-vue-components 1.0.86 → 1.0.90

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